libfsapfs-20190210/0000775000175000017500000000000013430101371016014 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libfsapfs.spec0000664000175000017500000000631113430101272020642 0ustar00lordyestalordyesta00000000000000Name: libfsapfs Version: 20190210 Release: 1 Summary: Library to access the Apple File System (APFS) format Group: System Environment/Libraries License: LGPL Source: %{name}-%{version}.tar.gz URL: https://github.com/libyal/libfsapfs BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: openssl zlib BuildRequires: gcc openssl-devel zlib-devel %description -n libfsapfs Library to access the Apple File System (APFS) format %package -n libfsapfs-static Summary: Library to access the Apple File System (APFS) format Group: Development/Libraries Requires: libfsapfs = %{version}-%{release} %description -n libfsapfs-static Static library version of libfsapfs. %package -n libfsapfs-devel Summary: Header files and libraries for developing applications for libfsapfs Group: Development/Libraries Requires: libfsapfs = %{version}-%{release} %description -n libfsapfs-devel Header files and libraries for developing applications for libfsapfs. %package -n libfsapfs-python2 Obsoletes: libfsapfs-python < %{version} Provides: libfsapfs-python = %{version} Summary: Python 2 bindings for libfsapfs Group: System Environment/Libraries Requires: libfsapfs = %{version}-%{release} python2 BuildRequires: python2-devel %description -n libfsapfs-python2 Python 2 bindings for libfsapfs %package -n libfsapfs-python3 Summary: Python 3 bindings for libfsapfs Group: System Environment/Libraries Requires: libfsapfs = %{version}-%{release} python3 BuildRequires: python3-devel %description -n libfsapfs-python3 Python 3 bindings for libfsapfs %package -n libfsapfs-tools Summary: Several tools for reading Apple File System (APFS) volumes Group: Applications/System Requires: libfsapfs = %{version}-%{release} fuse-libs BuildRequires: fuse-devel %description -n libfsapfs-tools Several tools for reading Apple File System (APFS) volumes %prep %setup -q %build %configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python2 --enable-python3 make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -n libfsapfs %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %attr(755,root,root) %{_libdir}/*.so.* %files -n libfsapfs-static %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %attr(755,root,root) %{_libdir}/*.a %files -n libfsapfs-devel %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/libfsapfs.pc %{_includedir}/* %{_mandir}/man3/* %files -n libfsapfs-python2 %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %{_libdir}/python2*/site-packages/*.a %{_libdir}/python2*/site-packages/*.la %{_libdir}/python2*/site-packages/*.so %files -n libfsapfs-python3 %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %{_libdir}/python3*/site-packages/*.a %{_libdir}/python3*/site-packages/*.la %{_libdir}/python3*/site-packages/*.so %files -n libfsapfs-tools %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/* %changelog * Sun Feb 10 2019 Joachim Metz 20190210-1 - Auto-generated libfsapfs-20190210/libfcache/0000775000175000017500000000000013430101370017713 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libfcache/libfcache_extern.h0000664000175000017500000000242213430101212023344 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_INTERNAL_EXTERN_H ) #define _LIBFCACHE_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBFCACHE for local use of libfcache */ #if !defined( HAVE_LOCAL_LIBFCACHE ) #include #define LIBFCACHE_EXTERN_VARIABLE LIBFCACHE_EXTERN #else #define LIBFCACHE_EXTERN /* extern */ #define LIBFCACHE_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBFCACHE ) */ #endif /* !defined( _LIBFCACHE_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libfcache/libfcache_types.h0000664000175000017500000000312513430101212023204 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_INTERNAL_TYPES_H ) #define _LIBFCACHE_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBFCACHE for local use of libfcache * The definitions in are copied here * for local use of libfcache */ #if defined( HAVE_LOCAL_LIBFCACHE ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libfcache_cache {} libfcache_cache_t; typedef struct libfcache_cache_value {} libfcache_cache_value_t; #else typedef intptr_t libfcache_cache_t; typedef intptr_t libfcache_cache_value_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBFCACHE ) */ #endif /* !defined( _LIBFCACHE_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libfcache/libfcache_cache.h0000664000175000017500000000710513430101212023105 0ustar00lordyestalordyesta00000000000000/* * The cache functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_CACHE_H ) #define _LIBFCACHE_CACHE_H #include #include #include "libfcache_cache_value.h" #include "libfcache_extern.h" #include "libfcache_libcdata.h" #include "libfcache_libcerror.h" #include "libfcache_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfcache_internal_cache libfcache_internal_cache_t; struct libfcache_internal_cache { /* The cache entries array */ libcdata_array_t *entries_array; /* The cache entries list */ libcdata_list_t *entries_list; /* The number of cache values */ int number_of_cache_values; }; LIBFCACHE_EXTERN \ int libfcache_cache_initialize( libfcache_cache_t **cache, int maximum_cache_entries, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_free( libfcache_cache_t **cache, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_empty( libfcache_cache_t *cache, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_clone( libfcache_cache_t **destination_cache, libfcache_cache_t *source_cache, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_resize( libfcache_cache_t *cache, int maximum_cache_entries, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_get_number_of_entries( libfcache_cache_t *cache, int *number_of_entries, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_get_number_of_cache_values( libfcache_cache_t *cache, int *number_of_values, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_get_value_by_identifier( libfcache_cache_t *cache, int file_index, off64_t offset, int64_t timestamp, libfcache_cache_value_t **cache_value, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_get_value_by_index( libfcache_cache_t *cache, int cache_entry_index, libfcache_cache_value_t **cache_value, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_set_value_by_identifier( libfcache_cache_t *cache, int file_index, off64_t offset, int64_t timestamp, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_set_value_by_index( libfcache_cache_t *cache, int cache_entry_index, int file_index, off64_t offset, int64_t timestamp, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFCACHE_CACHE_H ) */ libfsapfs-20190210/libfcache/libfcache_support.h0000664000175000017500000000233013430101212023551 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_SUPPORT_H ) #define _LIBFCACHE_SUPPORT_H #include #include #include "libfcache_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFCACHE ) LIBFCACHE_EXTERN \ const char *libfcache_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBFCACHE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFCACHE_SUPPORT_H ) */ libfsapfs-20190210/libfcache/libfcache_support.c0000664000175000017500000000223413430101212023547 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfcache_definitions.h" #include "libfcache_support.h" #if !defined( HAVE_LOCAL_LIBFCACHE ) /* Returns the library version as a string */ const char *libfcache_get_version( void ) { return( (const char *) LIBFCACHE_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBFCACHE ) */ libfsapfs-20190210/libfcache/Makefile.am0000664000175000017500000000151513430101212021744 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBFCACHE AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ noinst_LTLIBRARIES = libfcache.la libfcache_la_SOURCES = \ libfcache_cache.c libfcache_cache.h \ libfcache_cache_value.c libfcache_cache_value.h \ libfcache_date_time.c libfcache_date_time.h \ libfcache_definitions.h \ libfcache_error.c libfcache_error.h \ libfcache_extern.h \ libfcache_libcdata.h \ libfcache_libcerror.h \ libfcache_support.c libfcache_support.h \ libfcache_types.h \ libfcache_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfcache ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfcache_la_SOURCES) libfsapfs-20190210/libfcache/libfcache_libcdata.h0000664000175000017500000000302113430101212023576 0ustar00lordyestalordyesta00000000000000/* * The libcdata header wrapper * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_LIBCDATA_H ) #define _LIBFCACHE_LIBCDATA_H #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata */ #if defined( HAVE_LOCAL_LIBCDATA ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCDATA_DLL_IMPORT * before including libcdata.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCDATA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCDATA ) */ #endif /* !defined( _LIBFCACHE_LIBCDATA_H ) */ libfsapfs-20190210/libfcache/libfcache_unused.h0000664000175000017500000000255613430101212023352 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_INTERNAL_UNUSED_H ) #define _LIBFCACHE_INTERNAL_UNUSED_H #include #if !defined( LIBFCACHE_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBFCACHE_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBFCACHE_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBFCACHE_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBFCACHE_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBFCACHE_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libfcache/libfcache_libcerror.h0000664000175000017500000000264313430101212024027 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_LIBCERROR_H ) #define _LIBFCACHE_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBFCACHE_LIBCERROR_H ) */ libfsapfs-20190210/libfcache/libfcache_definitions.h0000664000175000017500000000306713430101212024360 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_INTERNAL_DEFINITIONS_H ) #define _LIBFCACHE_INTERNAL_DEFINITIONS_H #include /* Define HAVE_LOCAL_LIBFCACHE for local use of libfcache */ #if !defined( HAVE_LOCAL_LIBFCACHE ) #include /* The definitions in are copied here * for local use of libfcache */ #else #define LIBFCACHE_VERSION 20181011 /* The libfcache version string */ #define LIBFCACHE_VERSION_STRING "20181011" /* The cache value flags definitions */ enum LIBFCACHE_CACHE_VALUE_FLAGS { /* The cache value is not managed by the library */ LIBFCACHE_CACHE_VALUE_FLAG_NON_MANAGED = 0x00, /* The cache value is managed by the library */ LIBFCACHE_CACHE_VALUE_FLAG_MANAGED = 0x01 }; #endif #endif libfsapfs-20190210/libfcache/libfcache_cache_value.h0000664000175000017500000000613313430101212024301 0ustar00lordyestalordyesta00000000000000/* * Cache value functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_CACHE_VALUE_H ) #define _LIBFCACHE_CACHE_VALUE_H #include #include #include "libfcache_extern.h" #include "libfcache_libcerror.h" #include "libfcache_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfcache_internal_cache_value libfcache_internal_cache_value_t; struct libfcache_internal_cache_value { /* The cache index */ int cache_index; /* The file index */ int file_index; /* The offset */ off64_t offset; /* The timestamp */ int64_t timestamp; /* The value */ intptr_t *value; /* The value free function */ int (*value_free_function)( intptr_t **value, libcerror_error_t **error ); /* The flags */ uint8_t flags; }; int libfcache_cache_value_initialize( libfcache_cache_value_t **cache_value, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_value_free( libfcache_cache_value_t **cache_value, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_value_clear( libfcache_cache_value_t *cache_value, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_value_get_identifier( libfcache_cache_value_t *cache_value, int *file_index, off64_t *offset, int64_t *timestamp, libcerror_error_t **error ); int libfcache_cache_value_get_cache_index( libfcache_cache_value_t *cache_value, int *cache_index, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_value_set_identifier( libfcache_cache_value_t *cache_value, int file_index, off64_t offset, int64_t timestamp, libcerror_error_t **error ); int libfcache_cache_value_set_cache_index( libfcache_cache_value_t *cache_value, int cache_index, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_value_get_value( libfcache_cache_value_t *cache_value, intptr_t **value, libcerror_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_cache_value_set_value( libfcache_cache_value_t *cache_value, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFCACHE_CACHE_VALUE_H ) */ libfsapfs-20190210/libfcache/libfcache_cache_value.c0000664000175000017500000003014413430101212024273 0ustar00lordyestalordyesta00000000000000/* * Cache value functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfcache_cache_value.h" #include "libfcache_definitions.h" #include "libfcache_libcerror.h" #include "libfcache_types.h" /* Creates a cache value * Make sure the value cache_value is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfcache_cache_value_initialize( libfcache_cache_value_t **cache_value, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_initialize"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } if( *cache_value != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid cache value value already set.", function ); return( -1 ); } internal_cache_value = memory_allocate_structure( libfcache_internal_cache_value_t ); if( internal_cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create cache value.", function ); goto on_error; } if( memory_set( internal_cache_value, 0, sizeof( libfcache_internal_cache_value_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear cache value.", function ); goto on_error; } internal_cache_value->file_index = -1; internal_cache_value->offset = (off64_t) -1; *cache_value = (libfcache_cache_value_t *) internal_cache_value; return( 1 ); on_error: if( internal_cache_value != NULL ) { memory_free( internal_cache_value ); } return( -1 ); } /* Frees a cache value * Returns 1 if successful or -1 on error */ int libfcache_cache_value_free( libfcache_cache_value_t **cache_value, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_free"; int result = 1; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } if( *cache_value != NULL ) { internal_cache_value = (libfcache_internal_cache_value_t *) *cache_value; *cache_value = NULL; if( internal_cache_value->value != NULL ) { if( ( internal_cache_value->flags & LIBFCACHE_CACHE_VALUE_FLAG_MANAGED ) != 0 ) { if( internal_cache_value->value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid cache value - missing value free function.", function ); result = -1; } else if( internal_cache_value->value_free_function( &( internal_cache_value->value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free value.", function ); result = -1; } } } memory_free( internal_cache_value ); } return( result ); } /* Clears the cache value * This function does not free the value * Returns 1 if successful or -1 on error */ int libfcache_cache_value_clear( libfcache_cache_value_t *cache_value, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_free"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } internal_cache_value = (libfcache_internal_cache_value_t *) cache_value; if( memory_set( internal_cache_value, 0, sizeof( libfcache_internal_cache_value_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear cache value.", function ); return( -1 ); } internal_cache_value->file_index = -1; internal_cache_value->offset = (off64_t) -1; return( 1 ); } /* Retrieves the cache value identifier * Returns 1 if successful or -1 on error */ int libfcache_cache_value_get_identifier( libfcache_cache_value_t *cache_value, int *file_index, off64_t *offset, int64_t *timestamp, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_get_identifier"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } internal_cache_value = (libfcache_internal_cache_value_t *) cache_value; if( file_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file index.", function ); return( -1 ); } if( offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid offset.", function ); return( -1 ); } if( timestamp == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid timestamp.", function ); return( -1 ); } *file_index = internal_cache_value->file_index; *offset = internal_cache_value->offset; *timestamp = internal_cache_value->timestamp; return( 1 ); } /* Retrieves the cache value cache index * Returns 1 if successful or -1 on error */ int libfcache_cache_value_get_cache_index( libfcache_cache_value_t *cache_value, int *cache_index, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_get_cache_index"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } internal_cache_value = (libfcache_internal_cache_value_t *) cache_value; if( cache_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache index.", function ); return( -1 ); } *cache_index = internal_cache_value->cache_index; return( 1 ); } /* Sets the cache value identifier * Returns 1 if successful or -1 on error */ int libfcache_cache_value_set_identifier( libfcache_cache_value_t *cache_value, int file_index, off64_t offset, int64_t timestamp, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_set_identifier"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } internal_cache_value = (libfcache_internal_cache_value_t *) cache_value; internal_cache_value->file_index = file_index; internal_cache_value->offset = offset; internal_cache_value->timestamp = timestamp; return( 1 ); } /* Sets the cache value cache index * Returns 1 if successful or -1 on error */ int libfcache_cache_value_set_cache_index( libfcache_cache_value_t *cache_value, int cache_index, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_set_cache_index"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } internal_cache_value = (libfcache_internal_cache_value_t *) cache_value; internal_cache_value->cache_index = cache_index; return( 1 ); } /* Retrieves the cache value * Returns 1 if successful or -1 on error */ int libfcache_cache_value_get_value( libfcache_cache_value_t *cache_value, intptr_t **value, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_get_value"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } internal_cache_value = (libfcache_internal_cache_value_t *) cache_value; if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } *value = internal_cache_value->value; return( 1 ); } /* Sets the cache value * Returns 1 if successful or -1 on error */ int libfcache_cache_value_set_value( libfcache_cache_value_t *cache_value, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfcache_internal_cache_value_t *internal_cache_value = NULL; static char *function = "libfcache_cache_value_set_value"; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } internal_cache_value = (libfcache_internal_cache_value_t *) cache_value; if( value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value free function.", function ); return( -1 ); } if( ( internal_cache_value->flags & LIBFCACHE_CACHE_VALUE_FLAG_MANAGED ) != 0 ) { if( internal_cache_value->value != NULL ) { if( internal_cache_value->value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid cache value - missing free value function.", function ); return( -1 ); } if( internal_cache_value->value_free_function( &( internal_cache_value->value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free value.", function ); return( -1 ); } } internal_cache_value->flags &= ~( LIBFCACHE_CACHE_VALUE_FLAG_MANAGED ); } internal_cache_value->value = value; internal_cache_value->value_free_function = value_free_function; internal_cache_value->flags |= flags; return( 1 ); } libfsapfs-20190210/libfcache/Makefile.in0000664000175000017500000007650613430101254021777 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libfcache ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libfcache_la_LIBADD = am__libfcache_la_SOURCES_DIST = libfcache_cache.c libfcache_cache.h \ libfcache_cache_value.c libfcache_cache_value.h \ libfcache_date_time.c libfcache_date_time.h \ libfcache_definitions.h libfcache_error.c libfcache_error.h \ libfcache_extern.h libfcache_libcdata.h libfcache_libcerror.h \ libfcache_support.c libfcache_support.h libfcache_types.h \ libfcache_unused.h @HAVE_LOCAL_LIBFCACHE_TRUE@am_libfcache_la_OBJECTS = \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_cache.lo \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_cache_value.lo \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_date_time.lo \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_error.lo \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_support.lo libfcache_la_OBJECTS = $(am_libfcache_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBFCACHE_TRUE@am_libfcache_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libfcache_cache.Plo \ ./$(DEPDIR)/libfcache_cache_value.Plo \ ./$(DEPDIR)/libfcache_date_time.Plo \ ./$(DEPDIR)/libfcache_error.Plo \ ./$(DEPDIR)/libfcache_support.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libfcache_la_SOURCES) DIST_SOURCES = $(am__libfcache_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBFCACHE_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBFCACHE_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBFCACHE_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBFCACHE_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_LOCAL_LIBFCACHE_TRUE@ @LIBCTHREADS_CPPFLAGS@ \ @HAVE_LOCAL_LIBFCACHE_TRUE@ @LIBCDATA_CPPFLAGS@ \ @HAVE_LOCAL_LIBFCACHE_TRUE@ @PTHREAD_CPPFLAGS@ @HAVE_LOCAL_LIBFCACHE_TRUE@noinst_LTLIBRARIES = libfcache.la @HAVE_LOCAL_LIBFCACHE_TRUE@libfcache_la_SOURCES = \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_cache.c libfcache_cache.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_cache_value.c libfcache_cache_value.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_date_time.c libfcache_date_time.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_definitions.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_error.c libfcache_error.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_extern.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_libcdata.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_libcerror.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_support.c libfcache_support.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_types.h \ @HAVE_LOCAL_LIBFCACHE_TRUE@ libfcache_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfcache/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libfcache/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libfcache.la: $(libfcache_la_OBJECTS) $(libfcache_la_DEPENDENCIES) $(EXTRA_libfcache_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libfcache_la_rpath) $(libfcache_la_OBJECTS) $(libfcache_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfcache_cache.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfcache_cache_value.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfcache_date_time.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfcache_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfcache_support.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfcache_cache.Plo -rm -f ./$(DEPDIR)/libfcache_cache_value.Plo -rm -f ./$(DEPDIR)/libfcache_date_time.Plo -rm -f ./$(DEPDIR)/libfcache_error.Plo -rm -f ./$(DEPDIR)/libfcache_support.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfcache ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfcache_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libfcache/libfcache_error.c0000664000175000017500000000555613430101212023176 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfcache_error.h" #include "libfcache_libcerror.h" #if !defined( HAVE_LOCAL_LIBFCACHE ) /* Free an error and its elements */ void libfcache_error_free( libfcache_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfcache_error_fprint( libfcache_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfcache_error_sprint( libfcache_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfcache_error_backtrace_fprint( libfcache_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfcache_error_backtrace_sprint( libfcache_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBFCACHE ) */ libfsapfs-20190210/libfcache/libfcache_date_time.c0000664000175000017500000000444613430101212023775 0ustar00lordyestalordyesta00000000000000/* * Date and time functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #if defined( TIME_WITH_SYS_TIME ) #include #include #elif defined( HAVE_SYS_TIME_H ) #include #else #include #endif #include "libfcache_date_time.h" #include "libfcache_libcerror.h" #include "libfcache_types.h" /* Retrieves the cache value timestamp * Returns 1 if successful or -1 on error */ int libfcache_date_time_get_timestamp( int64_t *timestamp, libcerror_error_t **error ) { #if defined( HAVE_CLOCK_GETTIME ) struct timespec time_structure; #endif static char *function = "libfcache_date_time_get_timestamp"; if( timestamp == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid timestamp.", function ); return( -1 ); } #if defined( HAVE_CLOCK_GETTIME ) if( clock_gettime( CLOCK_REALTIME, &time_structure ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current time structure.", function ); return( -1 ); } *timestamp = ( (int64_t) time_structure.tv_sec * 1000000000 ) + time_structure.tv_nsec; #else *timestamp = (int64_t) time( NULL ); if( *timestamp == (time_t) -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current time.", function ); return( -1 ); } #endif /* defined( HAVE_CLOCK_GETTIME ) */ return( 1 ); } libfsapfs-20190210/libfcache/libfcache_cache.c0000664000175000017500000006042013430101212023077 0ustar00lordyestalordyesta00000000000000/* * The cache functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfcache_cache.h" #include "libfcache_cache_value.h" #include "libfcache_definitions.h" #include "libfcache_libcdata.h" #include "libfcache_libcerror.h" #include "libfcache_types.h" /* Creates a cache * Make sure the value cache is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfcache_cache_initialize( libfcache_cache_t **cache, int maximum_cache_entries, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_initialize"; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } if( *cache != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid cache value already set.", function ); return( -1 ); } if( maximum_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid maximum cache entries value zero or less.", function ); return( -1 ); } internal_cache = memory_allocate_structure( libfcache_internal_cache_t ); if( internal_cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create cache.", function ); goto on_error; } if( memory_set( internal_cache, 0, sizeof( libfcache_internal_cache_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear cache.", function ); memory_free( internal_cache ); return( -1 ); } if( libcdata_array_initialize( &( internal_cache->entries_array ), maximum_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create entries array.", function ); goto on_error; } if( libcdata_list_initialize( &( internal_cache->entries_list ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create entries list.", function ); goto on_error; } *cache = (libfcache_cache_t *) internal_cache; return( 1 ); on_error: if( internal_cache != NULL ) { if( internal_cache->entries_array != NULL ) { libcdata_array_free( &( internal_cache->entries_array ), NULL, NULL ); } memory_free( internal_cache ); } return( -1 ); } /* Frees a cache * Returns 1 if successful or -1 on error */ int libfcache_cache_free( libfcache_cache_t **cache, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_free"; int result = 1; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } if( *cache != NULL ) { internal_cache = (libfcache_internal_cache_t *) *cache; *cache = NULL; if( libcdata_list_free( &( internal_cache->entries_list ), NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the entries list.", function ); result = -1; } if( libcdata_array_free( &( internal_cache->entries_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfcache_cache_value_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the entries array.", function ); result = -1; } memory_free( internal_cache ); } return( result ); } /* Empties the cache * Returns 1 if successful or -1 on error */ int libfcache_cache_empty( libfcache_cache_t *cache, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_empty"; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( libcdata_list_empty( internal_cache->entries_list, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty entries list.", function ); return( -1 ); } if( libcdata_array_clear( internal_cache->entries_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfcache_cache_value_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clear entries array.", function ); return( -1 ); } internal_cache->number_of_cache_values = 0; return( 1 ); } /* Clones (duplicates) the cache, not the cache values * Returns 1 if successful or -1 on error */ int libfcache_cache_clone( libfcache_cache_t **destination_cache, libfcache_cache_t *source_cache, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_source_cache = NULL; static char *function = "libfcache_cache_clone"; int number_of_cache_entries = 0; if( destination_cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination cache.", function ); return( -1 ); } if( *destination_cache != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination cache already set.", function ); return( -1 ); } if( source_cache == NULL ) { *destination_cache = NULL; return( 1 ); } internal_source_cache = (libfcache_internal_cache_t *) source_cache; if( libcdata_array_get_number_of_entries( internal_source_cache->entries_array, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries from source entries array.", function ); return( -1 ); } if( libfcache_cache_initialize( destination_cache, number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination cache.", function ); return( -1 ); } return( 1 ); } /* Resizes the cache * Returns 1 if successful or -1 on error */ int libfcache_cache_resize( libfcache_cache_t *cache, int maximum_cache_entries, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_resize"; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( libcdata_array_resize( internal_cache->entries_array, maximum_cache_entries, (int (*)(intptr_t **, libcerror_error_t **)) &libfcache_cache_value_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize entries array.", function ); return( -1 ); } return( 1 ); } /* Retrieves the number of entries of the cache * Returns 1 if successful or -1 on error */ int libfcache_cache_get_number_of_entries( libfcache_cache_t *cache, int *number_of_entries, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_get_number_of_entries"; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( libcdata_array_get_number_of_entries( internal_cache->entries_array, number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from entries array.", function ); return( -1 ); } return( 1 ); } /* Retrieves the number of cache values * Returns 1 if successful or -1 on error */ int libfcache_cache_get_number_of_cache_values( libfcache_cache_t *cache, int *number_of_cache_values, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_get_number_of_cache_values"; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( libcdata_list_get_number_of_elements( internal_cache->entries_list, number_of_cache_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from entries list.", function ); return( -1 ); } return( 1 ); } /* Retrieves the cache value that matches the file index, offset and timestamp * Returns 1 if successful, 0 if no such value or -1 on error */ int libfcache_cache_get_value_by_identifier( libfcache_cache_t *cache, int file_index, off64_t offset, int64_t timestamp, libfcache_cache_value_t **cache_value, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; libfcache_cache_value_t *safe_cache_value = NULL; libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_get_value_by_identifier"; off64_t cache_value_offset = 0; int64_t cache_value_timestamp = 0; int cache_value_file_index = 0; int number_of_cache_values = 0; int result = 0; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( cache_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache value.", function ); return( -1 ); } *cache_value = NULL; if( libcdata_list_get_number_of_elements( internal_cache->entries_list, &number_of_cache_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from entries list.", function ); return( -1 ); } if( libcdata_list_get_first_element( internal_cache->entries_list, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first list element.", function ); return( -1 ); } while( list_element != NULL ) { if( libcdata_list_element_get_value( list_element, (intptr_t **) &safe_cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value from list element.", function ); return( -1 ); } if( libfcache_cache_value_get_identifier( safe_cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } if( ( cache_value_file_index == file_index ) && ( cache_value_offset == offset ) && ( cache_value_timestamp == timestamp ) ) { result = 1; break; } if( libcdata_list_element_get_next_element( list_element, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next list element.", function ); return( -1 ); } } if( ( result != 0 ) && ( number_of_cache_values > 0 ) ) { if( libcdata_list_remove_element( internal_cache->entries_list, list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove list element.", function ); return( -1 ); } if( libcdata_list_prepend_element( internal_cache->entries_list, list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend list element.", function ); return( -1 ); } *cache_value = safe_cache_value; } return( result ); } /* Retrieves the cache value for the specific index * Returns 1 if successful or -1 on error */ int libfcache_cache_get_value_by_index( libfcache_cache_t *cache, int cache_entry_index, libfcache_cache_value_t **cache_value, libcerror_error_t **error ) { libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_get_value_by_index"; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( libcdata_array_get_entry_by_index( internal_cache->entries_array, cache_entry_index, (intptr_t **) cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value: %d from entries array.", function, cache_entry_index ); return( -1 ); } return( 1 ); } /* Sets the cache value for the file index, offset and timestamp * Returns 1 if successful or -1 on error */ int libfcache_cache_set_value_by_identifier( libfcache_cache_t *cache, int file_index, off64_t offset, int64_t timestamp, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; libfcache_cache_value_t *cache_value = NULL; libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_set_value_by_identifier"; int cache_entry_index = 0; int number_of_cache_entries = 0; int number_of_cache_values = 0; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( libcdata_array_get_number_of_entries( internal_cache->entries_array, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries from entries array.", function ); return( -1 ); } if( libcdata_list_get_number_of_elements( internal_cache->entries_list, &number_of_cache_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from entries list.", function ); return( -1 ); } if( number_of_cache_values < number_of_cache_entries ) { cache_entry_index = number_of_cache_values; if( libfcache_cache_value_initialize( &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create cache value.", function ); return( -1 ); } if( libfcache_cache_value_set_cache_index( cache_value, cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set cache index in cache value.", function ); libfcache_cache_value_free( &cache_value, NULL ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_cache->entries_array, cache_entry_index, (intptr_t *) cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set cache value: %d in entries array.", function, cache_entry_index ); libfcache_cache_value_free( &cache_value, NULL ); return( -1 ); } if( libcdata_list_prepend_value( internal_cache->entries_list, (intptr_t *) cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend cache value: %d to entries list.", function ); return( -1 ); } } else { if( libcdata_list_get_last_element( internal_cache->entries_list, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last list element.", function ); return( -1 ); } if( libcdata_list_element_get_value( list_element, (intptr_t **) &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value from list element.", function ); return( -1 ); } if( libfcache_cache_value_get_cache_index( cache_value, &cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache index from cache value.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_cache->entries_array, cache_entry_index, (intptr_t **) &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value: %d from entries array.", function, cache_entry_index ); return( -1 ); } } if( libfcache_cache_value_set_identifier( cache_value, file_index, offset, timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set identifier in cache value.", function ); return( -1 ); } if( libfcache_cache_value_set_value( cache_value, value, value_free_function, flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache value.", function ); return( -1 ); } return( 1 ); } /* Sets the cache value for the specific index * Returns 1 if successful or -1 on error */ int libfcache_cache_set_value_by_index( libfcache_cache_t *cache, int cache_entry_index, int file_index, off64_t offset, int64_t timestamp, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfcache_internal_cache_t *internal_cache = NULL; static char *function = "libfcache_cache_set_value_by_index"; if( cache == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache.", function ); return( -1 ); } internal_cache = (libfcache_internal_cache_t *) cache; if( libcdata_array_get_entry_by_index( internal_cache->entries_array, cache_entry_index, (intptr_t **) &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value: %d from entries array.", function, cache_entry_index ); return( -1 ); } if( cache_value == NULL ) { if( libfcache_cache_value_initialize( &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create cache value.", function ); return( -1 ); } if( libfcache_cache_value_set_cache_index( cache_value, cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set cache index in cache value.", function ); libfcache_cache_value_free( &cache_value, NULL ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_cache->entries_array, cache_entry_index, (intptr_t *) cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set cache value: %d in entries array.", function, cache_entry_index ); libfcache_cache_value_free( &cache_value, NULL ); return( -1 ); } if( libcdata_list_prepend_value( internal_cache->entries_list, (intptr_t *) cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend cache value: %d to entries list.", function ); return( -1 ); } } if( libfcache_cache_value_set_value( cache_value, value, value_free_function, flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache value.", function ); return( -1 ); } if( libfcache_cache_value_set_identifier( cache_value, file_index, offset, timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set identifier in cache value.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfcache/libfcache_error.h0000664000175000017500000000343413430101212023174 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_INTERNAL_ERROR_H ) #define _LIBFCACHE_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBFCACHE ) #include #endif #include "libfcache_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFCACHE ) LIBFCACHE_EXTERN \ void libfcache_error_free( libfcache_error_t **error ); LIBFCACHE_EXTERN \ int libfcache_error_fprint( libfcache_error_t *error, FILE *stream ); LIBFCACHE_EXTERN \ int libfcache_error_sprint( libfcache_error_t *error, char *string, size_t size ); LIBFCACHE_EXTERN \ int libfcache_error_backtrace_fprint( libfcache_error_t *error, FILE *stream ); LIBFCACHE_EXTERN \ int libfcache_error_backtrace_sprint( libfcache_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBFCACHE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFCACHE_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libfcache/libfcache_date_time.h0000664000175000017500000000234413430101212023775 0ustar00lordyestalordyesta00000000000000/* * Date and time functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFCACHE_DATE_TIME_H ) #define _LIBFCACHE_DATE_TIME_H #include #include "libfcache_extern.h" #include "libfcache_libcerror.h" #include "libfcache_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBFCACHE_EXTERN \ int libfcache_date_time_get_timestamp( int64_t *timestamp, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFCACHE_DATE_TIME_H ) */ libfsapfs-20190210/common/0000775000175000017500000000000013430101366017310 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/common/config_msc.h0000664000175000017500000000220713426637445021612 0ustar00lordyestalordyesta00000000000000/* * Configuration for the Microsoft Visual Studio C++ compiler * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _CONFIG_MSC_H ) #define _CONFIG_MSC_H /* Disable warning C4127: conditional expression is constant */ #pragma warning( disable : 4127 ) /* Disable warning C4201: nonstandard extension used : nameless struct/union */ #pragma warning( disable : 4201 ) #endif /* !defined( _CONFIG_MSC_H ) */ libfsapfs-20190210/common/byte_stream.h0000664000175000017500000002430713426637445022026 0ustar00lordyestalordyesta00000000000000/* * Byte stream functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _BYTE_STREAM_H ) #define _BYTE_STREAM_H #include "common.h" #include "types.h" #if defined( __cplusplus ) extern "C" { #endif #define _BYTE_STREAM_HOST_IS_ENDIAN_BIG ( *((uint32_t *) "\x01\x02\x03\x04" ) == 0x01020304 ) #define _BYTE_STREAM_HOST_IS_ENDIAN_LITTLE ( *((uint32_t *) "\x01\x02\x03\x04" ) == 0x04030201 ) #define _BYTE_STREAM_HOST_IS_ENDIAN_MIDDLE ( *((uint32_t *) "\x01\x02\x03\x04" ) == 0x02010403 ) #define _BYTE_STREAM_ENDIAN_BIG (uint8_t) 'b' #define _BYTE_STREAM_ENDIAN_LITTLE (uint8_t) 'l' #define _BYTE_STREAM_ENDIAN_MIDDLE (uint8_t) 'm' typedef union byte_stream_float32 { float floating_point; uint32_t integer; } byte_stream_float32_t; typedef union byte_stream_float64 { double floating_point; uint64_t integer; } byte_stream_float64_t; #define byte_stream_copy_to_uint16_big_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 0 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; #define byte_stream_copy_to_uint16_little_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 0 ]; #define byte_stream_copy_to_uint24_big_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 0 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 2 ]; #define byte_stream_copy_to_uint24_little_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 2 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 0 ]; #define byte_stream_copy_to_uint32_big_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 0 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 2 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 3 ]; #define byte_stream_copy_to_uint32_little_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 3 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 2 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 0 ]; #define byte_stream_copy_to_uint48_big_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 0 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 2 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 3 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 4 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 5 ]; #define byte_stream_copy_to_uint48_little_endian( byte_stream, value ) \ ( value ) |= ( byte_stream )[ 5 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 4 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 3 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 2 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 0 ]; #define byte_stream_copy_to_uint64_big_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 0 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 2 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 3 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 4 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 5 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 6 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 7 ]; #define byte_stream_copy_to_uint64_little_endian( byte_stream, value ) \ ( value ) = ( byte_stream )[ 7 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 6 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 5 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 4 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 3 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 2 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 1 ]; \ ( value ) <<= 8; \ ( value ) |= ( byte_stream )[ 0 ]; #define byte_stream_copy_from_uint16_big_endian( byte_stream, value ) \ ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint16_little_endian( byte_stream, value ) \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint24_big_endian( byte_stream, value ) \ ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 2 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint24_little_endian( byte_stream, value ) \ ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint32_big_endian( byte_stream, value ) \ ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 3 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint32_little_endian( byte_stream, value ) \ ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \ ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint48_big_endian( byte_stream, value ) \ ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \ ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \ ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 5 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint48_little_endian( byte_stream, value ) \ ( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \ ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \ ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \ ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint64_big_endian( byte_stream, value ) \ ( byte_stream )[ 0 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \ ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \ ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \ ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \ ( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 7 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_copy_from_uint64_little_endian( byte_stream, value ) \ ( byte_stream )[ 7 ] = (uint8_t) ( ( ( value ) >> 56 ) & 0x0ff ); \ ( byte_stream )[ 6 ] = (uint8_t) ( ( ( value ) >> 48 ) & 0x0ff ); \ ( byte_stream )[ 5 ] = (uint8_t) ( ( ( value ) >> 40 ) & 0x0ff ); \ ( byte_stream )[ 4 ] = (uint8_t) ( ( ( value ) >> 32 ) & 0x0ff ); \ ( byte_stream )[ 3 ] = (uint8_t) ( ( ( value ) >> 24 ) & 0x0ff ); \ ( byte_stream )[ 2 ] = (uint8_t) ( ( ( value ) >> 16 ) & 0x0ff ); \ ( byte_stream )[ 1 ] = (uint8_t) ( ( ( value ) >> 8 ) & 0x0ff ); \ ( byte_stream )[ 0 ] = (uint8_t) ( ( value ) & 0x0ff ) #define byte_stream_bit_rotate_left_8bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 8 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_right_8bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 8 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_left_16bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 16 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_right_16bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 16 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_left_32bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 32 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_right_32bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 32 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_left_64bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) << ( number_of_bits ) ) | ( ( byte_stream ) >> ( 64 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_right_64bit( byte_stream, number_of_bits ) \ ( ( ( byte_stream ) >> ( number_of_bits ) ) | ( ( byte_stream ) << ( 64 - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_left( value, number_of_bits ) \ ( ( ( value ) << ( number_of_bits ) ) | ( ( value ) >> ( ( sizeof( value ) << 3 ) - ( number_of_bits ) ) ) ) #define byte_stream_bit_rotate_right( value, number_of_bits ) \ ( ( ( value ) >> ( number_of_bits ) ) | ( ( value ) << ( ( sizeof( value ) << 3 ) - ( number_of_bits ) ) ) ) #if defined( __cplusplus ) } #endif #endif /* !defined( _BYTE_STREAM_H ) */ libfsapfs-20190210/common/common.h0000664000175000017500000000234413426637445020775 0ustar00lordyestalordyesta00000000000000/* * Common include file * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _COMMON_H ) #define _COMMON_H #if defined( HAVE_CONFIG_H ) #include "config.h" #endif /* Include the Borland/CodeGear C++ Builder compiler specific configuration */ #if defined( __BORLANDC__ ) #include "config_borlandc.h" /* Include the Microsoft Visual Studio C++ compiler specific configuration */ #elif defined( _MSC_VER ) #include "config_msc.h" #endif #include "config_winapi.h" #endif /* !defined( _COMMON_H ) */ libfsapfs-20190210/common/system_string.h0000664000175000017500000001100513426637445022411 0ustar00lordyestalordyesta00000000000000/* * System character string functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _SYSTEM_STRING_H ) #define _SYSTEM_STRING_H #include "common.h" #include "narrow_string.h" #include "types.h" #include "wide_string.h" #if defined( _cplusplus ) extern "C" { #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) #if SIZEOF_WCHAR_T != 2 #error Unsupported wide system character size #endif /* Intermediate version of the macro required * for correct evaluation predefined string */ #define _SYSTEM_STRING_INTERMEDIATE( string ) \ L ## string #define _SYSTEM_STRING( string ) \ _SYSTEM_STRING_INTERMEDIATE( string ) #define system_string_allocate( size ) \ wide_string_allocate( size ) #define system_string_reallocate( string, size ) \ wide_string_reallocate( string, size ) #define system_string_compare( destination, source, size ) \ wide_string_compare( destination, source, size ) #define system_string_compare_no_case( destination, source, size ) \ wide_string_compare_no_case( destination, source, size ) #define system_string_copy( destination, source, size ) \ wide_string_copy( destination, source, size ) #define system_string_length( string ) \ wide_string_length( string ) #define system_string_search_character( string, character, size ) \ wide_string_search_character( string, character, size ) #define system_string_search_character_reverse( string, character, size ) \ wide_string_search_character_reverse( string, character, size ) #define system_string_search_string( string, substring, size ) \ wide_string_search_string( string, substring, size ) #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define system_string_sprintf \ wide_string_snwprintf #else #define system_string_sprintf( string, size, format, ... ) \ wide_string_snwprintf( string, size, format, __VA_ARGS__ ) #endif #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define system_string_vsnprintf \ wide_string_vsnwprintf #else #define system_string_vsnprintf( string, size, format, ... ) \ wide_string_vsnwprintf( string, size, format, __VA_ARGS__ ) #endif #else #define _SYSTEM_STRING( string ) \ string #define system_string_allocate( size ) \ narrow_string_allocate( size ) #define system_string_reallocate( string, size ) \ narrow_string_reallocate( string, size ) #define system_string_compare( destination, source, size ) \ narrow_string_compare( destination, source, size ) #define system_string_compare_no_case( destination, source, size ) \ narrow_string_compare_no_case( destination, source, size ) #define system_string_copy( destination, source, size ) \ narrow_string_copy( destination, source, size ) #define system_string_length( string ) \ narrow_string_length( string ) #define system_string_search_character( string, character, size ) \ narrow_string_search_character( string, character, size ) #define system_string_search_character_reverse( string, character, size ) \ narrow_string_search_character_reverse( string, character, size ) #define system_string_search_string( string, substring, size ) \ narrow_string_search_string( string, substring, size ) #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define system_string_sprintf \ narrow_string_snprintf #else #define system_string_sprintf( string, size, format, ... ) \ narrow_string_snprintf( string, size, format, __VA_ARGS__ ) #endif #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define system_string_vsnprintf \ narrow_string_vsnprintf #else #define system_string_vsnprintf( string, size, format, ... ) \ narrow_string_vsnprintf( string, size, format, __VA_ARGS__ ) #endif #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ /* For backwards compatibility */ #define system_string_vsprintf system_string_vsnprintf #if defined( _cplusplus ) } #endif #endif /* !defined( _SYSTEM_STRING_H ) */ libfsapfs-20190210/common/Makefile.am0000664000175000017500000000057213426637437021372 0ustar00lordyestalordyesta00000000000000AM_CPPFLAGS = -I$(top_srcdir)/include EXTRA_DIST = \ byte_stream.h \ common.h \ config.h \ config_borlandc.h \ config_msc.h \ config_winapi.h \ file_stream.h \ memory.h \ narrow_string.h \ system_string.h \ types.h \ types.h.in \ wide_string.h MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f config.h /bin/rm -f types.h /bin/rm -f Makefile libfsapfs-20190210/common/types.h0000664000175000017500000001542713430101272020632 0ustar00lordyestalordyesta00000000000000/* * Type and type-support defintions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _TYPES_H ) #define _TYPES_H #include "common.h" #if defined( HAVE_LIMITS_H ) || defined( WINAPI ) #include #endif /* Make sure to include inttypes.h or stdint.h before * PRI definitions are defined */ #include #if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) #define HAVE_WIDE_SYSTEM_CHARACTER 1 /* The system character type is wide * A system string contains either UTF-16 or UTF-32 */ typedef wchar_t system_character_t; typedef wint_t system_integer_t; #define PRIc_SYSTEM "lc" #define PRIs_SYSTEM "ls" #else /* The system character type is narrow * A system string contains either UTF-8 or extended ASCII with a codepage */ typedef char system_character_t; typedef int system_integer_t; #define PRIc_SYSTEM "c" #define PRIs_SYSTEM "s" #endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */ /* Fallback for systems without PRI definitions */ #if !defined( PRId8 ) #define PRId8 "d" #endif #if !defined( PRId16 ) #define PRId16 "d" #endif #if !defined( PRId32 ) #if defined( WINAPI ) #define PRId32 "I32d" #else #define PRId32 "d" #endif #endif /* !defined( PRId32 ) */ #if !defined( PRId64 ) #if defined( WINAPI ) #define PRId64 "I64d" #elif __WORDSIZE == 64 #define PRId64 "ld" #else #define PRId64 "lld" #endif #endif /* !defined( PRId64 ) */ #if !defined( PRIi8 ) #define PRIi8 "i" #endif #if !defined( PRIi16 ) #define PRIi16 "i" #endif #if !defined( PRIi32 ) #if defined( WINAPI ) #define PRIi32 "I32i" #else #define PRIi32 "i" #endif #endif /* !defined( PRIi32 ) */ #if !defined( PRIi64 ) #if defined( WINAPI ) #define PRIi64 "I64i" #elif __WORDSIZE == 64 #define PRIi64 "li" #else #define PRIi64 "lli" #endif #endif /* !defined( PRIi64 ) */ #if !defined( PRIu8 ) #define PRIu8 "u" #endif #if !defined( PRIu16 ) #define PRIu16 "u" #endif #if !defined( PRIu32 ) #if defined( WINAPI ) #define PRIu32 "I32u" #else #define PRIu32 "u" #endif #endif /* !defined( PRIu32 ) */ #if !defined( PRIu64 ) #if defined( WINAPI ) #define PRIu64 "I64u" #elif __WORDSIZE == 64 #define PRIu64 "lu" #else #define PRIu64 "llu" #endif #endif /* !defined( PRIu64 ) */ #if !defined( PRIo8 ) #define PRIo8 "o" #endif #if !defined( PRIo16 ) #define PRIo16 "o" #endif #if !defined( PRIo32 ) #if defined( WINAPI ) #define PRIo32 "I32o" #else #define PRIo32 "o" #endif #endif /* !defined( PRIo32 ) */ #if !defined( PRIo64 ) #if defined( WINAPI ) #define PRIo64 "I64o" #elif __WORDSIZE == 64 #define PRIo64 "lo" #else #define PRIo64 "llo" #endif #endif /* !defined( PRIo64 ) */ #if !defined( PRIx8 ) #define PRIx8 "x" #endif #if !defined( PRIx16 ) #define PRIx16 "x" #endif #if !defined( PRIx32 ) #if defined( WINAPI ) #define PRIx32 "I32x" #else #define PRIx32 "x" #endif #endif /* !defined( PRIx32 ) */ #if !defined( PRIx64 ) #if defined( WINAPI ) #define PRIx64 "I64x" #elif __WORDSIZE == 64 #define PRIx64 "lx" #else #define PRIx64 "llx" #endif #endif /*!defined( PRIx64 ) */ /* Fallback for systems without printf %jd definition */ #if defined( HAVE_PRINTF_JD ) #define PRIjd "jd" #define PRIji "ji" #define PRIju "ju" #define PRIjx "jx" #elif SIZEOF_OFF_T == 8 #define PRIjd PRId64 #define PRIji PRIi64 #define PRIju PRIu64 #define PRIjx PRIx64 #else #define PRIjd PRId32 #define PRIji PRIi32 #define PRIju PRIu32 #define PRIjx PRIx32 #endif /* defined( HAVE_PRINTF_JD ) */ /* Fallback for systems without printf %zd definition */ #if defined( HAVE_PRINTF_ZD ) #define PRIzd "zd" #define PRIzi "zi" #define PRIzu "zu" #define PRIzx "zx" #elif defined( _MSC_VER ) #define PRIzd "Id" #define PRIzi "Ii" #define PRIzu "Iu" #define PRIzx "Ix" #elif SIZEOF_SIZE_T == 8 #define PRIzd PRId64 #define PRIzi PRIi64 #define PRIzu PRIu64 #define PRIzx PRIx64 #else #define PRIzd PRId32 #define PRIzi PRIi32 #define PRIzu PRIu32 #define PRIzx PRIx32 #endif /* defined( HAVE_PRINTF_ZD ) */ /* Fallback for systems without (U)INTx_MAX definitions */ /* The maximum signed 8-bit integer is 127 (0x7f) */ #if !defined( INT8_MAX ) #define INT8_MAX (0x7f) #endif /* The maximum unsigned 8-bit integer is 256 (0xff) */ #if !defined( UINT8_MAX ) #define UINT8_MAX (0xff) #endif /* The maximum signed 16-bit integer is 32767 (0x7ffff) */ #if !defined( INT16_MAX ) #define INT16_MAX (0x7fff) #endif /* The maximum unsigned 16-bit integer is 65535 (0xffff) */ #if !defined( UINT16_MAX ) #define UINT16_MAX (0xffff) #endif /* The maximum signed 32-bit integer is 2147483647 (0x7fffffff) */ #if !defined( INT32_MAX ) #define INT32_MAX (0x7fffffffL) #endif /* The maximum unsigned 32-bit integer is 4294967295 (0xffffffff) */ #if !defined( UINT32_MAX ) #define UINT32_MAX (0xffffffffUL) #endif /* The maximum signed 64-bit integer is 9223372036854775807 (0x7fffffffffffffff) */ #if !defined( INT64_MAX ) #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define INT64_MAX (0x7fffffffffffffffUL) #else #define INT64_MAX (0x7fffffffffffffffULL) #endif #endif /* !defined( INT64_MAX ) */ /* The maximum unsigned 64-bit integer is 18446744073709551615 (0xffffffffffffffff) */ #if !defined( UINT64_MAX ) #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define UINT64_MAX (0xffffffffffffffffUL) #else #define UINT64_MAX (0xffffffffffffffffULL) #endif #endif /* !defined( UINT64_MAX ) */ /* The maximum signed integer */ #if !defined( INT_MAX ) #define INT_MAX INT32_MAX #endif /* The maximum unsigned integer */ #if !defined( UINT_MAX ) #define UINT_MAX UINT32_MAX #endif /* The maximum signed long integer */ #if !defined( LONG_MAX ) #define LONG_MAX INT32_MAX #endif /* The maximum unsigned long integer */ #if !defined( ULONG_MAX ) #define ULONG_MAX UINT32_MAX #endif /* The maximum signed size type is platform dependent */ #if !defined( SSIZE_MAX ) #if defined( WINAPI ) #if defined( _WIN64 ) #define SSIZE_MAX INT64_MAX #else #define SSIZE_MAX INT32_MAX #endif #else #if __WORDSIZE == 64 #define SSIZE_MAX INT64_MAX #else #define SSIZE_MAX INT32_MAX #endif #endif /* WINAPI */ #endif /* SSIZE_MAX */ #endif /* !defined( _TYPES_H ) */ libfsapfs-20190210/common/types.h.in0000664000175000017500000001542713426637445021264 0ustar00lordyestalordyesta00000000000000/* * Type and type-support defintions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _TYPES_H ) #define _TYPES_H #include "common.h" #if defined( HAVE_LIMITS_H ) || defined( WINAPI ) #include #endif /* Make sure to include inttypes.h or stdint.h before * PRI definitions are defined */ #include <@PACKAGE@/types.h> #if defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) #define HAVE_WIDE_SYSTEM_CHARACTER 1 /* The system character type is wide * A system string contains either UTF-16 or UTF-32 */ typedef wchar_t system_character_t; typedef wint_t system_integer_t; #define PRIc_SYSTEM "lc" #define PRIs_SYSTEM "ls" #else /* The system character type is narrow * A system string contains either UTF-8 or extended ASCII with a codepage */ typedef char system_character_t; typedef int system_integer_t; #define PRIc_SYSTEM "c" #define PRIs_SYSTEM "s" #endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */ /* Fallback for systems without PRI definitions */ #if !defined( PRId8 ) #define PRId8 "d" #endif #if !defined( PRId16 ) #define PRId16 "d" #endif #if !defined( PRId32 ) #if defined( WINAPI ) #define PRId32 "I32d" #else #define PRId32 "d" #endif #endif /* !defined( PRId32 ) */ #if !defined( PRId64 ) #if defined( WINAPI ) #define PRId64 "I64d" #elif __WORDSIZE == 64 #define PRId64 "ld" #else #define PRId64 "lld" #endif #endif /* !defined( PRId64 ) */ #if !defined( PRIi8 ) #define PRIi8 "i" #endif #if !defined( PRIi16 ) #define PRIi16 "i" #endif #if !defined( PRIi32 ) #if defined( WINAPI ) #define PRIi32 "I32i" #else #define PRIi32 "i" #endif #endif /* !defined( PRIi32 ) */ #if !defined( PRIi64 ) #if defined( WINAPI ) #define PRIi64 "I64i" #elif __WORDSIZE == 64 #define PRIi64 "li" #else #define PRIi64 "lli" #endif #endif /* !defined( PRIi64 ) */ #if !defined( PRIu8 ) #define PRIu8 "u" #endif #if !defined( PRIu16 ) #define PRIu16 "u" #endif #if !defined( PRIu32 ) #if defined( WINAPI ) #define PRIu32 "I32u" #else #define PRIu32 "u" #endif #endif /* !defined( PRIu32 ) */ #if !defined( PRIu64 ) #if defined( WINAPI ) #define PRIu64 "I64u" #elif __WORDSIZE == 64 #define PRIu64 "lu" #else #define PRIu64 "llu" #endif #endif /* !defined( PRIu64 ) */ #if !defined( PRIo8 ) #define PRIo8 "o" #endif #if !defined( PRIo16 ) #define PRIo16 "o" #endif #if !defined( PRIo32 ) #if defined( WINAPI ) #define PRIo32 "I32o" #else #define PRIo32 "o" #endif #endif /* !defined( PRIo32 ) */ #if !defined( PRIo64 ) #if defined( WINAPI ) #define PRIo64 "I64o" #elif __WORDSIZE == 64 #define PRIo64 "lo" #else #define PRIo64 "llo" #endif #endif /* !defined( PRIo64 ) */ #if !defined( PRIx8 ) #define PRIx8 "x" #endif #if !defined( PRIx16 ) #define PRIx16 "x" #endif #if !defined( PRIx32 ) #if defined( WINAPI ) #define PRIx32 "I32x" #else #define PRIx32 "x" #endif #endif /* !defined( PRIx32 ) */ #if !defined( PRIx64 ) #if defined( WINAPI ) #define PRIx64 "I64x" #elif __WORDSIZE == 64 #define PRIx64 "lx" #else #define PRIx64 "llx" #endif #endif /*!defined( PRIx64 ) */ /* Fallback for systems without printf %jd definition */ #if defined( HAVE_PRINTF_JD ) #define PRIjd "jd" #define PRIji "ji" #define PRIju "ju" #define PRIjx "jx" #elif SIZEOF_OFF_T == 8 #define PRIjd PRId64 #define PRIji PRIi64 #define PRIju PRIu64 #define PRIjx PRIx64 #else #define PRIjd PRId32 #define PRIji PRIi32 #define PRIju PRIu32 #define PRIjx PRIx32 #endif /* defined( HAVE_PRINTF_JD ) */ /* Fallback for systems without printf %zd definition */ #if defined( HAVE_PRINTF_ZD ) #define PRIzd "zd" #define PRIzi "zi" #define PRIzu "zu" #define PRIzx "zx" #elif defined( _MSC_VER ) #define PRIzd "Id" #define PRIzi "Ii" #define PRIzu "Iu" #define PRIzx "Ix" #elif SIZEOF_SIZE_T == 8 #define PRIzd PRId64 #define PRIzi PRIi64 #define PRIzu PRIu64 #define PRIzx PRIx64 #else #define PRIzd PRId32 #define PRIzi PRIi32 #define PRIzu PRIu32 #define PRIzx PRIx32 #endif /* defined( HAVE_PRINTF_ZD ) */ /* Fallback for systems without (U)INTx_MAX definitions */ /* The maximum signed 8-bit integer is 127 (0x7f) */ #if !defined( INT8_MAX ) #define INT8_MAX (0x7f) #endif /* The maximum unsigned 8-bit integer is 256 (0xff) */ #if !defined( UINT8_MAX ) #define UINT8_MAX (0xff) #endif /* The maximum signed 16-bit integer is 32767 (0x7ffff) */ #if !defined( INT16_MAX ) #define INT16_MAX (0x7fff) #endif /* The maximum unsigned 16-bit integer is 65535 (0xffff) */ #if !defined( UINT16_MAX ) #define UINT16_MAX (0xffff) #endif /* The maximum signed 32-bit integer is 2147483647 (0x7fffffff) */ #if !defined( INT32_MAX ) #define INT32_MAX (0x7fffffffL) #endif /* The maximum unsigned 32-bit integer is 4294967295 (0xffffffff) */ #if !defined( UINT32_MAX ) #define UINT32_MAX (0xffffffffUL) #endif /* The maximum signed 64-bit integer is 9223372036854775807 (0x7fffffffffffffff) */ #if !defined( INT64_MAX ) #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define INT64_MAX (0x7fffffffffffffffUL) #else #define INT64_MAX (0x7fffffffffffffffULL) #endif #endif /* !defined( INT64_MAX ) */ /* The maximum unsigned 64-bit integer is 18446744073709551615 (0xffffffffffffffff) */ #if !defined( UINT64_MAX ) #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define UINT64_MAX (0xffffffffffffffffUL) #else #define UINT64_MAX (0xffffffffffffffffULL) #endif #endif /* !defined( UINT64_MAX ) */ /* The maximum signed integer */ #if !defined( INT_MAX ) #define INT_MAX INT32_MAX #endif /* The maximum unsigned integer */ #if !defined( UINT_MAX ) #define UINT_MAX UINT32_MAX #endif /* The maximum signed long integer */ #if !defined( LONG_MAX ) #define LONG_MAX INT32_MAX #endif /* The maximum unsigned long integer */ #if !defined( ULONG_MAX ) #define ULONG_MAX UINT32_MAX #endif /* The maximum signed size type is platform dependent */ #if !defined( SSIZE_MAX ) #if defined( WINAPI ) #if defined( _WIN64 ) #define SSIZE_MAX INT64_MAX #else #define SSIZE_MAX INT32_MAX #endif #else #if __WORDSIZE == 64 #define SSIZE_MAX INT64_MAX #else #define SSIZE_MAX INT32_MAX #endif #endif /* WINAPI */ #endif /* SSIZE_MAX */ #endif /* !defined( _TYPES_H ) */ libfsapfs-20190210/common/config_winapi.h0000664000175000017500000000366213426637445022325 0ustar00lordyestalordyesta00000000000000/* * Configuration file for WINAPI * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _CONFIG_WINAPI_H ) #define _CONFIG_WINAPI_H /* Define the earliest supported WINAPI version #define WINVER 0x0501 */ /* If necessary make sure WINAPI is defined */ #if defined( HAVE_WINDOWS_H ) || defined( __BORLANDC__ ) || defined( _MSC_VER ) #include #endif #if defined( WINAPI ) /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "joachim.metz@gmail.com" /* Define the size of the wide character for WINAPI */ #if !defined( SIZEOF_WCHAR_T ) #define SIZEOF_WCHAR_T 2 #endif /* Enable the DllMain function */ #define HAVE_DLLMAIN 1 /* Enable verbose output #define HAVE_VERBOSE_OUTPUT 1 */ /* Enable debug output #define HAVE_DEBUG_OUTPUT 1 */ /* Enable both the narrow and wide character functions */ #if !defined( HAVE_WIDE_CHARACTER_TYPE ) #define HAVE_WIDE_CHARACTER_TYPE 1 #endif /* If not controlled by config.h enable multi-thread support */ #if !defined( HAVE_CONFIG_H ) && !defined( HAVE_MULTI_THREAD_SUPPORT ) #define HAVE_MULTI_THREAD_SUPPORT 1 #endif #endif /* defined( WINAPI ) */ #endif /* !defined( _CONFIG_WINAPI_H ) */ libfsapfs-20190210/common/memory.h0000664000175000017500000000607113426637445021016 0ustar00lordyestalordyesta00000000000000/* * Memory functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _MEMORY_H ) #define _MEMORY_H #include "common.h" #if defined( HAVE_GLIB_H ) #include #endif #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_STRING_H ) || defined( WINAPI ) #include #endif #if defined( __cplusplus ) extern "C" { #endif /* Memory allocation */ #if defined( HAVE_GLIB_H ) #define memory_allocate( size ) \ g_malloc( (gsize) size ) #elif defined( WINAPI ) #define memory_allocate( size ) \ HeapAlloc( GetProcessHeap(), 0, (SIZE_T) size ) #elif defined( HAVE_MALLOC ) #define memory_allocate( size ) \ malloc( size ) #endif #define memory_allocate_structure( type ) \ (type *) memory_allocate( sizeof( type ) ) #define memory_allocate_structure_as_value( type ) \ (intptr_t *) memory_allocate( sizeof( type ) ) /* Memory reallocation */ #if defined( HAVE_GLIB_H ) #define memory_reallocate( buffer, size ) \ g_realloc( (gpointer) buffer, (gsize) size ) #elif defined( WINAPI ) /* HeapReAlloc does not allocate empty (NULL) buffers as realloc does */ #define memory_reallocate( buffer, size ) \ ( buffer == NULL ) ? \ HeapAlloc( GetProcessHeap(), 0, (SIZE_T) size ) : \ HeapReAlloc( GetProcessHeap(), 0, (LPVOID) buffer, (SIZE_T) size ) #elif defined( HAVE_REALLOC ) #define memory_reallocate( buffer, size ) \ realloc( (void *) buffer, size ) #endif /* Memory free */ #if defined( HAVE_GLIB_H ) #define memory_free( buffer ) \ g_free( (gpointer) buffer ) #elif defined( WINAPI ) #define memory_free( buffer ) \ ( buffer == NULL ) ? TRUE : HeapFree( GetProcessHeap(), 0, (LPVOID) buffer ) #elif defined( HAVE_FREE ) #define memory_free( buffer ) \ free( (void *) buffer ) #endif /* Memory compare */ #if defined( HAVE_MEMCMP ) || defined( WINAPI ) #define memory_compare( buffer1, buffer2, size ) \ memcmp( (const void *) buffer1, (const void *) buffer2, size ) #endif /* Memory copy */ #if defined( HAVE_MEMCPY ) || defined( WINAPI ) #define memory_copy( destination, source, count ) \ memcpy( (void *) destination, (void *) source, count ) #endif /* Memory set */ #if defined( HAVE_MEMSET ) || defined( WINAPI ) #define memory_set( buffer, value, count ) \ memset( (void *) buffer, (int) value, count ) #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _MEMORY_H ) */ libfsapfs-20190210/common/config.h0000664000175000017500000004741113430100445020732 0ustar00lordyestalordyesta00000000000000/* common/config.h. Generated from config.h.in by configure. */ /* common/config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if translation of program messages to the user's native language is requested. */ #define ENABLE_NLS 1 /* Define to 1 if you have the `AES_cbc_encrypt' function". */ /* #undef HAVE_AES_CBC_ENCRYPT */ /* Define to 1 if you have the `AES_ecb_encrypt' function". */ /* #undef HAVE_AES_ECB_ENCRYPT */ /* Define to 1 if you have the `bindtextdomain' function. */ #define HAVE_BINDTEXTDOMAIN 1 /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ /* #undef HAVE_CFLOCALECOPYCURRENT */ /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ /* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ /* Define to 1 if you have the `chdir' function. */ #define HAVE_CHDIR 1 /* Define to 1 if you have the `clock_gettime' function. */ #define HAVE_CLOCK_GETTIME 1 /* Define to 1 if you have the `close' function. */ #define HAVE_CLOSE 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_CYGWIN_FS_H */ /* Define if the GNU dcgettext() function is already present or preinstalled. */ #define HAVE_DCGETTEXT 1 /* Define to 1 if debug output should be used. */ /* #undef HAVE_DEBUG_OUTPUT */ /* Define to 1 if you have the declaration of `memrchr', and to 0 if you don't. */ #define HAVE_DECL_MEMRCHR 0 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #define HAVE_DECL_STRERROR_R 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 to enable the DllMain function. */ /* #undef HAVE_DLLMAIN */ /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the `EVP_CIPHER_CTX_cleanup' function". */ /* #undef HAVE_EVP_CIPHER_CTX_CLEANUP */ /* Define to 1 if you have the `EVP_CIPHER_CTX_init' function". */ /* #undef HAVE_EVP_CIPHER_CTX_INIT */ /* Define to 1 if you have the `EVP_aes_128_cbc', `EVP_aes_192_cbc' and `EVP_aes_256_cbc' functions". */ #define HAVE_EVP_CRYPTO_AES_CBC 1 /* Define to 1 if you have the `EVP_aes_128_ecb', `EVP_aes_192_ecb' and `EVP_aes_256_ecb' functions". */ #define HAVE_EVP_CRYPTO_AES_ECB 1 /* Define to 1 if you have the `EVP_aes_128_xts' and `EVP_aes_256_xts' functions". */ #define HAVE_EVP_CRYPTO_AES_XTS 1 /* Define to 1 if you have the `EVP_md5' function". */ #define HAVE_EVP_MD5 1 /* Define to 1 if you have the `EVP_MD_CTX_cleanup' function". */ /* #undef HAVE_EVP_MD_CTX_CLEANUP */ /* Define to 1 if you have the `EVP_MD_CTX_init' function". */ /* #undef HAVE_EVP_MD_CTX_INIT */ /* Define to 1 if you have the `EVP_sha1' function". */ #define HAVE_EVP_SHA1 1 /* Define to 1 if you have the `EVP_sha224' function". */ #define HAVE_EVP_SHA224 1 /* Define to 1 if you have the `EVP_sha256' function". */ #define HAVE_EVP_SHA256 1 /* Define to 1 if you have the `EVP_sha512' function". */ #define HAVE_EVP_SHA512 1 /* Define to 1 if you have the `fclose' function. */ #define HAVE_FCLOSE 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `feof' function. */ #define HAVE_FEOF 1 /* Define to 1 if you have the `fgets' function. */ #define HAVE_FGETS 1 /* Define to 1 if you have the `fgetws' function. */ /* #undef HAVE_FGETWS */ /* Define to 1 if you have the `fmemopen' function. */ #define HAVE_FMEMOPEN 1 /* Define to 1 if you have the `fopen' function. */ #define HAVE_FOPEN 1 /* Define to 1 if you have the `fread' function. */ #define HAVE_FREAD 1 /* Define to 1 if you have the `free' function. */ #define HAVE_FREE 1 /* Define to 1 if you have the `fseeko' function. */ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fseeko64' function. */ #define HAVE_FSEEKO64 1 /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 /* Define to 1 if you have the `ftruncate' function. */ #define HAVE_FTRUNCATE 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_FUSE_H */ /* Define to 1 if you have the `fwrite' function. */ #define HAVE_FWRITE 1 /* Define to 1 if you have the `getcwd' function. */ #define HAVE_GETCWD 1 /* Define to 1 if you have the `getegid' function. */ #define HAVE_GETEGID 1 /* Define to 1 if you have the `getenv' function. */ #define HAVE_GETENV 1 /* Define to 1 if you have the `geteuid' function. */ #define HAVE_GETEUID 1 /* Define to 1 if you have the `getopt' function. */ #define HAVE_GETOPT 1 /* Define if the GNU gettext() function is already present or preinstalled. */ #define HAVE_GETTEXT 1 /* Define to 1 if dlsym function is available in GNU dl. */ #define HAVE_GNU_DL_DLSYM 1 /* Define if you have the iconv() function and it works. */ /* #undef HAVE_ICONV */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the `ioctl' function. */ #define HAVE_IOCTL 1 /* Define if nl_langinfo has CODESET support. */ #define HAVE_LANGINFO_CODESET 1 /* Define to 1 if you have the header file. */ #define HAVE_LANGINFO_H 1 /* Define to 1 if you have the `bfio' library (-lbfio). */ /* #undef HAVE_LIBBFIO */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBBFIO_H */ /* Define to 1 if you have the `caes' library (-lcaes). */ /* #undef HAVE_LIBCAES */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCAES_H */ /* Define to 1 if you have the `cdata' library (-lcdata). */ /* #undef HAVE_LIBCDATA */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCDATA_H */ /* Define to 1 if you have the `cerror' library (-lcerror). */ /* #undef HAVE_LIBCERROR */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCERROR_H */ /* Define to 1 if you have the `cfile' library (-lcfile). */ /* #undef HAVE_LIBCFILE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCFILE_H */ /* Define to 1 if you have the `clocale' library (-lclocale). */ /* #undef HAVE_LIBCLOCALE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCLOCALE_H */ /* Define to 1 if you have the `cnotify' library (-lcnotify). */ /* #undef HAVE_LIBCNOTIFY */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCNOTIFY_H */ /* Define to 1 if you have the `cpath' library (-lcpath). */ /* #undef HAVE_LIBCPATH */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCPATH_H */ /* Define to 1 if you have the 'crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1 /* Define to 1 if you have the `csplit' library (-lcsplit). */ /* #undef HAVE_LIBCSPLIT */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCSPLIT_H */ /* Define to 1 if you have the `cthreads' library (-lcthreads). */ /* #undef HAVE_LIBCTHREADS */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBCTHREADS_H */ /* Define to 1 if you have the `dl' library (-ldl). */ #define HAVE_LIBDL 1 /* Define to 1 if you have the `fcache' library (-lfcache). */ /* #undef HAVE_LIBFCACHE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBFCACHE_H */ /* Define to 1 if you have the `fdata' library (-lfdata). */ /* #undef HAVE_LIBFDATA */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBFDATA_H */ /* Define to 1 if you have the `fdatetime' library (-lfdatetime). */ /* #undef HAVE_LIBFDATETIME */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBFDATETIME_H */ /* Define to 1 if you have the `fguid' library (-lfguid). */ /* #undef HAVE_LIBFGUID */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBFGUID_H */ /* Define to 1 if you have the 'fuse' library (-lfuse). */ #define HAVE_LIBFUSE 1 /* Define to 1 if you have the `hmac' library (-lhmac). */ /* #undef HAVE_LIBHMAC */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBHMAC_H */ /* Define to 1 if you have the header file. */ #define HAVE_LIBINTL_H 1 /* Define to 1 if you have the 'osxfuse' library (-losxfuse). */ /* #undef HAVE_LIBOSXFUSE */ /* Define to 1 if you have the `una' library (-luna). */ /* #undef HAVE_LIBUNA */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LIBUNA_H */ /* Define to 1 if you have the `z' library (-lz). */ /* #undef HAVE_LIBZ */ /* Define to 1 if you have the header file. */ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_LINUX_FS_H 1 /* Define to 1 if you have the `localeconv' function. */ #define HAVE_LOCALECONV 1 /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 /* Define to 1 if the local version of libbfio is used. */ #define HAVE_LOCAL_LIBBFIO 1 /* Define to 1 if the local version of libcaes is used. */ #define HAVE_LOCAL_LIBCAES 1 /* Define to 1 if the local version of libcdata is used. */ #define HAVE_LOCAL_LIBCDATA 1 /* Define to 1 if the local version of libcerror is used. */ #define HAVE_LOCAL_LIBCERROR 1 /* Define to 1 if the local version of libcfile is used. */ #define HAVE_LOCAL_LIBCFILE 1 /* Define to 1 if the local version of libclocale is used. */ #define HAVE_LOCAL_LIBCLOCALE 1 /* Define to 1 if the local version of libcnotify is used. */ #define HAVE_LOCAL_LIBCNOTIFY 1 /* Define to 1 if the local version of libcpath is used. */ #define HAVE_LOCAL_LIBCPATH 1 /* Define to 1 if the local version of libcsplit is used. */ #define HAVE_LOCAL_LIBCSPLIT 1 /* Define to 1 if the local version of libcthreads is used. */ #define HAVE_LOCAL_LIBCTHREADS 1 /* Define to 1 if the local version of libfcache is used. */ #define HAVE_LOCAL_LIBFCACHE 1 /* Define to 1 if the local version of libfdata is used. */ #define HAVE_LOCAL_LIBFDATA 1 /* Define to 1 if the local version of libfdatetime is used. */ #define HAVE_LOCAL_LIBFDATETIME 1 /* Define to 1 if the local version of libfguid is used. */ #define HAVE_LOCAL_LIBFGUID 1 /* Define to 1 if the local version of libhmac is used. */ #define HAVE_LOCAL_LIBHMAC 1 /* Define to 1 if the local version of libuna is used. */ #define HAVE_LOCAL_LIBUNA 1 /* Define to 1 if you have the `lseek' function. */ #define HAVE_LSEEK 1 /* Define to 1 if you have the `malloc' function. */ #define HAVE_MALLOC 1 /* Define to 1 if you have the `memchr' function. */ #define HAVE_MEMCHR 1 /* Define to 1 if you have the `memcmp' function. */ #define HAVE_MEMCMP 1 /* Define to 1 if you have the `memcpy' function. */ #define HAVE_MEMCPY 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `memrchr' function. */ #define HAVE_MEMRCHR 1 /* Define to 1 if you have the `memset' function. */ #define HAVE_MEMSET 1 /* Define to 1 if you have the mkdir function. */ #define HAVE_MKDIR 1 /* Define to 1 if you have the mkdir function with a second mode argument. */ #define HAVE_MKDIR_MODE 1 /* Define to 1 if you have the `mkstemp' function. */ #define HAVE_MKSTEMP 1 /* Define to 1 if multi thread support should be used. */ #define HAVE_MULTI_THREAD_SUPPORT 1 /* Define to 1 if you have the `nl_langinfo' function. */ #define HAVE_NL_LANGINFO 1 /* Define to 1 if you have the `open' function. */ #define HAVE_OPEN 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_OPENSSL_AES_H */ /* Define to 1 if you have the header file. */ #define HAVE_OPENSSL_EVP_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_OPENSSL_MD5_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_OPENSSL_OPENSSLV_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_OPENSSL_SHA_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_OSXFUSE_FUSE_H */ /* Define to 1 if you have the posix_fadvise function. */ #define HAVE_POSIX_FADVISE 1 /* Define to 1 whether printf supports the conversion specifier "%jd". */ #define HAVE_PRINTF_JD 1 /* Define to 1 whether printf supports the conversion specifier "%zd". */ #define HAVE_PRINTF_ZD 1 /* Define to 1 if you have the 'pthread' library (-lpthread). */ #define HAVE_PTHREAD 1 /* Define to 1 if you have the header file. */ #define HAVE_PTHREAD_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_PYTHON_H */ /* Define to 1 if you have the `read' function. */ #define HAVE_READ 1 /* Define to 1 if you have the `realloc' function. */ #define HAVE_REALLOC 1 /* Define to 1 if you have the `setlocale' function. */ #define HAVE_SETLOCALE 1 /* Define to 1 if you have the `setvbuf' function. */ #define HAVE_SETVBUF 1 /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the `snprintf' function. */ #define HAVE_SNPRINTF 1 /* Define to 1 if you have the `sscanf' function. */ #define HAVE_SSCANF 1 /* Define to 1 if you have the `stat' function. */ #define HAVE_STAT 1 /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDIO_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strcasecmp' function. */ #define HAVE_STRCASECMP 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the `strerror' function. */ /* #undef HAVE_STRERROR */ /* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strlen' function. */ #define HAVE_STRLEN 1 /* Define to 1 if you have the `strncasecmp' function. */ #define HAVE_STRNCASECMP 1 /* Define to 1 if you have the `strncmp' function. */ #define HAVE_STRNCMP 1 /* Define to 1 if you have the `strncpy' function. */ #define HAVE_STRNCPY 1 /* Define to 1 if you have the `strnicmp' function. */ /* #undef HAVE_STRNICMP */ /* Define to 1 if you have the `strrchr' function. */ #define HAVE_STRRCHR 1 /* Define to 1 if you have the `strstr' function. */ #define HAVE_STRSTR 1 /* Define to 1 if you have the `swprintf' function. */ /* #undef HAVE_SWPRINTF */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_DISKLABEL_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_DISK_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_SYSLIMITS_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the `time' function. */ #define HAVE_TIME 1 /* Define to 1 if you have the `towlower' function. */ /* #undef HAVE_TOWLOWER */ /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `unlink' function. */ #define HAVE_UNLINK 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_VARARGS_H */ /* Define to 1 if verbose output should be used. */ /* #undef HAVE_VERBOSE_OUTPUT */ /* Define to 1 if you have the `vfprintf' function. */ #define HAVE_VFPRINTF 1 /* Define to 1 if you have the `vsnprintf' function. */ #define HAVE_VSNPRINTF 1 /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 /* Define to 1 if you have the `wcscasecmp' function. */ /* #undef HAVE_WCSCASECMP */ /* Define to 1 if you have the `wcschr' function. */ /* #undef HAVE_WCSCHR */ /* Define to 1 if you have the `wcslen' function. */ /* #undef HAVE_WCSLEN */ /* Define to 1 if you have the `wcsncasecmp' function. */ /* #undef HAVE_WCSNCASECMP */ /* Define to 1 if you have the `wcsncmp' function. */ /* #undef HAVE_WCSNCMP */ /* Define to 1 if you have the `wcsncpy' function. */ /* #undef HAVE_WCSNCPY */ /* Define to 1 if you have the `wcsnicmp' function. */ /* #undef HAVE_WCSNICMP */ /* Define to 1 if you have the `wcsrchr' function. */ /* #undef HAVE_WCSRCHR */ /* Define to 1 if you have the `wcsstr' function. */ /* #undef HAVE_WCSSTR */ /* Define to 1 if you have the `wcstombs' function. */ /* #undef HAVE_WCSTOMBS */ /* Define to 1 if you have the header file. */ #define HAVE_WCTYPE_H 1 /* Define to 1 if wide character type should be used. */ /* #undef HAVE_WIDE_CHARACTER_TYPE */ /* Define to 1 if you have the header file. */ /* #undef HAVE_WINDOWS_H */ /* Define to 1 if you have the `wmemchr' function. */ /* #undef HAVE_WMEMCHR */ /* Define to 1 if you have the `wmemcmp' function. */ /* #undef HAVE_WMEMCMP */ /* Define to 1 if you have the `wmemcpy' function. */ /* #undef HAVE_WMEMCPY */ /* Define to 1 if you have the `wmemrchr' function. */ /* #undef HAVE_WMEMRCHR */ /* Define to 1 if you have the `write' function. */ #define HAVE_WRITE 1 /* Define to 1 if you have the 'zlib' library (-lz). */ #define HAVE_ZLIB 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_ZLIB_H */ /* Define to 1 if you have the `uncompress' function. */ #define HAVE_ZLIB_UNCOMPRESS 1 /* Define to the sub-directory where libtool stores uninstalled libraries. */ #define LT_OBJDIR ".libs/" /* Name of package */ #define PACKAGE "libfsapfs" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "joachim.metz@gmail.com" /* Define to the full name of this package. */ #define PACKAGE_NAME "libfsapfs" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "libfsapfs 20190210" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "libfsapfs" /* Define to the home page for this package. */ #define PACKAGE_URL "" /* Define to the version of this package. */ #define PACKAGE_VERSION "20190210" /* The size of `int', as computed by sizeof. */ #define SIZEOF_INT 4 /* The size of `long', as computed by sizeof. */ #define SIZEOF_LONG 8 /* The size of `off_t', as computed by sizeof. */ #define SIZEOF_OFF_T 8 /* The size of `size_t', as computed by sizeof. */ #define SIZEOF_SIZE_T 8 /* The size of `wchar_t', as computed by sizeof. */ #define SIZEOF_WCHAR_T 4 /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ /* Define to 1 if you can safely include both and . */ #define TIME_WITH_SYS_TIME 1 /* Define to 1 if your declares `struct tm'. */ /* #undef TM_IN_SYS_TIME */ /* Version number of package */ #define VERSION "20190210" /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE # define _DARWIN_USE_64_BIT_INODE 1 #endif /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `int' if does not define. */ /* #undef mode_t */ /* Define to `long int' if does not define. */ /* #undef off_t */ /* Define to `unsigned int' if does not define. */ /* #undef size_t */ /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ /* #undef volatile */ libfsapfs-20190210/common/narrow_string.h0000664000175000017500000001233713426637445022406 0ustar00lordyestalordyesta00000000000000/* * Narrow character string functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _NARROW_STRING_H ) #define _NARROW_STRING_H #include "common.h" #include "memory.h" #include "types.h" #if defined( HAVE_GLIB_H ) #include #endif #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_STRING_H ) || defined( WINAPI ) #include #endif #if defined( __cplusplus ) extern "C" { #endif /* String allocation */ #define narrow_string_allocate( size ) \ (char *) memory_allocate( sizeof( char ) * ( size ) ) /* String reallocation */ #define narrow_string_reallocate( string, size ) \ (char *) memory_reallocate( string, ( sizeof( char ) * ( size ) ) ) /* String length */ #if defined( HAVE_STRLEN ) || defined( WINAPI ) #define narrow_string_length( string ) \ strlen( string ) #endif /* String compare */ #if defined( HAVE_MEMCMP ) || defined( WINAPI ) #define narrow_string_compare( string1, string2, size ) \ memcmp( (void *) string1, (void *) string2, size ) #elif defined( HAVE_STRNCMP ) #define narrow_string_compare( string1, string2, size ) \ strncmp( string1, string2, size ) #endif /* Caseless string compare */ #if defined( HAVE_GLIB_H ) #define narrow_string_compare_no_case( string1, string2, size ) \ g_ascii_strncasecmp( string1, string2, size ) #elif defined( _MSC_VER ) #define narrow_string_compare_no_case( string1, string2, size ) \ _strnicmp( string1, string2, size ) #elif ( defined( WINAPI ) && !defined( __CYGWIN__ ) ) || defined( HAVE_STRNICMP ) #define narrow_string_compare_no_case( string1, string2, size ) \ strnicmp( string1, string2, size ) #elif defined( HAVE_STRNCASECMP ) #define narrow_string_compare_no_case( string1, string2, size ) \ strncasecmp( string1, string2, size ) #elif defined( HAVE_STRCASECMP ) #define narrow_string_compare_no_case( string1, string2, size ) \ strcasecmp( string1, string2 ) #endif /* String copy */ #if defined( HAVE_MEMCPY ) || defined( WINAPI ) #define narrow_string_copy( destination, source, size ) \ (char *) memcpy( (void *) destination, (void *) source, size ) #elif defined( HAVE_STRNCPY ) #define narrow_string_copy( destination, source, size ) \ strncpy( destination, source, size ) #endif /* String character search */ #if defined( HAVE_MEMCHR ) || defined( WINAPI ) #define narrow_string_search_character( string, character, size ) \ (char *) memchr( (void *) string, (int) character, size ) #elif defined( HAVE_STRCHR ) #define narrow_string_search_character( string, character, size ) \ strchr( string, (int) character ) #endif /* String reverse character search */ #if defined( HAVE_MEMRCHR ) && ( HAVE_DECL_MEMRCHR == 1 ) #define narrow_string_search_character_reverse( string, character, size ) \ (char *) memrchr( (void *) string, (int) character, size ) #elif defined( HAVE_STRRCHR ) || defined( WINAPI ) #define narrow_string_search_character_reverse( string, character, size ) \ strrchr( string, (int) character ) #endif /* String sub-string search */ #if defined( HAVE_STRSTR ) || defined( WINAPI ) #define narrow_string_search_string( string, substring, size ) \ strstr( string, substring ) #endif /* String formatted print (snprintf) */ #if defined( HAVE_GLIB_H ) #define narrow_string_snprintf( target, size, ... ) \ g_snprintf( target, size, __VA_ARGS__ ) #elif defined( _MSC_VER ) #define narrow_string_snprintf( target, size, ... ) \ sprintf_s( target, size, __VA_ARGS__ ) #elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define narrow_string_snprintf \ snprintf #elif defined( HAVE_SNPRINTF ) || defined( WINAPI ) #define narrow_string_snprintf( target, size, ... ) \ snprintf( target, size, __VA_ARGS__ ) #endif /* String input conversion (sscanf) */ #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define narrow_string_sscanf \ sscanf #elif defined( HAVE_SSCANF ) || defined( WINAPI ) #define narrow_string_sscanf( string, format, ... ) \ sscanf( string, format, __VA_ARGS__ ) #endif /* Variable arguments formatted print to string function (vsnprintf) */ #if defined( HAVE_GLIB_H ) #define narrow_string_vsnprintf( string, size, format, ... ) \ g_vsnprintf( string, size, format, __VA_ARGS__ ) #elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define narrow_string_vsnprintf \ vsnprintf #elif defined( HAVE_VSNPRINTF ) || defined( WINAPI ) #define narrow_string_vsnprintf( string, size, format, ... ) \ vsnprintf( string, size, format, __VA_ARGS__ ) #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _NARROW_STRING_H ) */ libfsapfs-20190210/common/Makefile.in0000664000175000017500000006402013430101253021352 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = common ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = types.h CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/types.h.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ AM_CPPFLAGS = -I$(top_srcdir)/include EXTRA_DIST = \ byte_stream.h \ common.h \ config.h \ config_borlandc.h \ config_msc.h \ config_winapi.h \ file_stream.h \ memory.h \ narrow_string.h \ system_string.h \ types.h \ types.h.in \ wide_string.h MAINTAINERCLEANFILES = \ Makefile.in all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu common/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu common/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status common/config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 types.h: $(top_builddir)/config.status $(srcdir)/types.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile config.h installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool cscopelist-am ctags ctags-am distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f config.h /bin/rm -f types.h /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/common/file_stream.h0000664000175000017500000000745013426637445022002 0ustar00lordyestalordyesta00000000000000/* * FILE stream functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FILE_STREAM_H ) #define _FILE_STREAM_H #include "common.h" #if defined( HAVE_GLIB_H ) #include #include #endif #include #if defined( __cplusplus ) extern "C" { #endif #define FILE_STREAM_OPEN_APPEND "a" #define FILE_STREAM_OPEN_READ "r" #define FILE_STREAM_OPEN_WRITE "w" #if defined( WINAPI ) #define FILE_STREAM_BINARY_OPEN_APPEND "ab" #define FILE_STREAM_BINARY_OPEN_READ "rb" #define FILE_STREAM_BINARY_OPEN_WRITE "wb" #else #define FILE_STREAM_BINARY_OPEN_APPEND "a" #define FILE_STREAM_BINARY_OPEN_READ "r" #define FILE_STREAM_BINARY_OPEN_WRITE "w" #endif /* narrow character FILE stream open */ #if defined( HAVE_GLIB_H ) #define file_stream_open( filename, mode ) \ g_fopen( filename, mode ) #elif defined( HAVE_FOPEN ) || defined( WINAPI ) #define file_stream_open( filename, mode ) \ fopen( filename, mode ) #endif /* wide character FILE stream open */ #if defined( WINAPI ) #define file_stream_open_wide( filename, mode ) \ _wfopen( filename, mode ) #endif /* FILE stream close */ #if defined( HAVE_FCLOSE ) || defined( WINAPI ) #define file_stream_close( stream ) \ fclose( stream ) #endif /* FILE stream read */ #if defined( HAVE_FREAD ) || defined( WINAPI ) #define file_stream_read( stream, data, size ) \ fread( data, 1, size, stream ) #endif /* FILE stream write */ #if defined( HAVE_FWRITE ) || defined( WINAPI ) #define file_stream_write( stream, data, size ) \ fwrite( data, 1, size, stream ) #endif /* FILE stream seek */ #if defined( WINAPI ) #define file_stream_seek_offset( stream, offset, whence ) \ fseek( stream, offset, whence ) #elif defined( HAVE_FSEEKO ) #define file_stream_seek_offset( stream, offset, whence ) \ fseeko( stream, offset, whence ) #elif defined( HAVE_FSEEKO64 ) #define file_stream_seek_offset( stream, offset, whence ) \ fseeko64( stream, offset, whence ) #endif /* End of FILE stream */ #if defined( HAVE_FEOF ) || defined( WINAPI ) #define file_stream_at_end( stream ) \ feof( stream ) #endif /* Get narrow character string from FILE stream */ #if defined( HAVE_FGETS ) || defined( WINAPI ) #define file_stream_get_string( stream, string, size ) \ fgets( string, size, stream ) #endif /* Get wide characters string from FILE stream */ #if defined( HAVE_FGETWS ) || defined( WINAPI ) #define file_stream_get_string_wide( stream, string, size ) \ fgetws( string, size, stream ) #endif /* Variable arguments formatted print to stream function */ #if defined( HAVE_GLIB_H ) #define file_stream_vfprintf( stream, format, ... ) \ g_vfprintf( stream, format, __VA_ARGS__ ) /* Borland BCC previous to version 5.6.0 cannot handle the macro form: MACRO( ... ) */ #elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define file_stream_vfprintf \ vfprintf #elif defined( HAVE_VFPRINTF ) || defined( WINAPI ) #define file_stream_vfprintf( stream, format, ... ) \ vfprintf( stream, format, __VA_ARGS__ ) #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _FILE_STREAM_H ) */ libfsapfs-20190210/common/config_borlandc.h0000664000175000017500000000167713426637445022626 0ustar00lordyestalordyesta00000000000000/* * Configuration for the Borland/CodeGear C++ Builder compiler * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _CONFIG_BORLANDC_H ) #define _CONFIG_BORLANDC_H #endif /* !defined( _CONFIG_BORLANDC_H ) */ libfsapfs-20190210/common/config.h.in0000664000175000017500000004525613430101253021342 0ustar00lordyestalordyesta00000000000000/* common/config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have the `AES_cbc_encrypt' function". */ #undef HAVE_AES_CBC_ENCRYPT /* Define to 1 if you have the `AES_ecb_encrypt' function". */ #undef HAVE_AES_ECB_ENCRYPT /* Define to 1 if you have the `bindtextdomain' function. */ #undef HAVE_BINDTEXTDOMAIN /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define to 1 if you have the `chdir' function. */ #undef HAVE_CHDIR /* Define to 1 if you have the `clock_gettime' function. */ #undef HAVE_CLOCK_GETTIME /* Define to 1 if you have the `close' function. */ #undef HAVE_CLOSE /* Define to 1 if you have the header file. */ #undef HAVE_CYGWIN_FS_H /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if debug output should be used. */ #undef HAVE_DEBUG_OUTPUT /* Define to 1 if you have the declaration of `memrchr', and to 0 if you don't. */ #undef HAVE_DECL_MEMRCHR /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR_R /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 to enable the DllMain function. */ #undef HAVE_DLLMAIN /* Define to 1 if you have the header file. */ #undef HAVE_ERRNO_H /* Define to 1 if you have the `EVP_CIPHER_CTX_cleanup' function". */ #undef HAVE_EVP_CIPHER_CTX_CLEANUP /* Define to 1 if you have the `EVP_CIPHER_CTX_init' function". */ #undef HAVE_EVP_CIPHER_CTX_INIT /* Define to 1 if you have the `EVP_aes_128_cbc', `EVP_aes_192_cbc' and `EVP_aes_256_cbc' functions". */ #undef HAVE_EVP_CRYPTO_AES_CBC /* Define to 1 if you have the `EVP_aes_128_ecb', `EVP_aes_192_ecb' and `EVP_aes_256_ecb' functions". */ #undef HAVE_EVP_CRYPTO_AES_ECB /* Define to 1 if you have the `EVP_aes_128_xts' and `EVP_aes_256_xts' functions". */ #undef HAVE_EVP_CRYPTO_AES_XTS /* Define to 1 if you have the `EVP_md5' function". */ #undef HAVE_EVP_MD5 /* Define to 1 if you have the `EVP_MD_CTX_cleanup' function". */ #undef HAVE_EVP_MD_CTX_CLEANUP /* Define to 1 if you have the `EVP_MD_CTX_init' function". */ #undef HAVE_EVP_MD_CTX_INIT /* Define to 1 if you have the `EVP_sha1' function". */ #undef HAVE_EVP_SHA1 /* Define to 1 if you have the `EVP_sha224' function". */ #undef HAVE_EVP_SHA224 /* Define to 1 if you have the `EVP_sha256' function". */ #undef HAVE_EVP_SHA256 /* Define to 1 if you have the `EVP_sha512' function". */ #undef HAVE_EVP_SHA512 /* Define to 1 if you have the `fclose' function. */ #undef HAVE_FCLOSE /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `feof' function. */ #undef HAVE_FEOF /* Define to 1 if you have the `fgets' function. */ #undef HAVE_FGETS /* Define to 1 if you have the `fgetws' function. */ #undef HAVE_FGETWS /* Define to 1 if you have the `fmemopen' function. */ #undef HAVE_FMEMOPEN /* Define to 1 if you have the `fopen' function. */ #undef HAVE_FOPEN /* Define to 1 if you have the `fread' function. */ #undef HAVE_FREAD /* Define to 1 if you have the `free' function. */ #undef HAVE_FREE /* Define to 1 if you have the `fseeko' function. */ #undef HAVE_FSEEKO /* Define to 1 if you have the `fseeko64' function. */ #undef HAVE_FSEEKO64 /* Define to 1 if you have the `fstat' function. */ #undef HAVE_FSTAT /* Define to 1 if you have the `ftruncate' function. */ #undef HAVE_FTRUNCATE /* Define to 1 if you have the header file. */ #undef HAVE_FUSE_H /* Define to 1 if you have the `fwrite' function. */ #undef HAVE_FWRITE /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `getegid' function. */ #undef HAVE_GETEGID /* Define to 1 if you have the `getenv' function. */ #undef HAVE_GETENV /* Define to 1 if you have the `geteuid' function. */ #undef HAVE_GETEUID /* Define to 1 if you have the `getopt' function. */ #undef HAVE_GETOPT /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if dlsym function is available in GNU dl. */ #undef HAVE_GNU_DL_DLSYM /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `ioctl' function. */ #undef HAVE_IOCTL /* Define if nl_langinfo has CODESET support. */ #undef HAVE_LANGINFO_CODESET /* Define to 1 if you have the header file. */ #undef HAVE_LANGINFO_H /* Define to 1 if you have the `bfio' library (-lbfio). */ #undef HAVE_LIBBFIO /* Define to 1 if you have the header file. */ #undef HAVE_LIBBFIO_H /* Define to 1 if you have the `caes' library (-lcaes). */ #undef HAVE_LIBCAES /* Define to 1 if you have the header file. */ #undef HAVE_LIBCAES_H /* Define to 1 if you have the `cdata' library (-lcdata). */ #undef HAVE_LIBCDATA /* Define to 1 if you have the header file. */ #undef HAVE_LIBCDATA_H /* Define to 1 if you have the `cerror' library (-lcerror). */ #undef HAVE_LIBCERROR /* Define to 1 if you have the header file. */ #undef HAVE_LIBCERROR_H /* Define to 1 if you have the `cfile' library (-lcfile). */ #undef HAVE_LIBCFILE /* Define to 1 if you have the header file. */ #undef HAVE_LIBCFILE_H /* Define to 1 if you have the `clocale' library (-lclocale). */ #undef HAVE_LIBCLOCALE /* Define to 1 if you have the header file. */ #undef HAVE_LIBCLOCALE_H /* Define to 1 if you have the `cnotify' library (-lcnotify). */ #undef HAVE_LIBCNOTIFY /* Define to 1 if you have the header file. */ #undef HAVE_LIBCNOTIFY_H /* Define to 1 if you have the `cpath' library (-lcpath). */ #undef HAVE_LIBCPATH /* Define to 1 if you have the header file. */ #undef HAVE_LIBCPATH_H /* Define to 1 if you have the 'crypto' library (-lcrypto). */ #undef HAVE_LIBCRYPTO /* Define to 1 if you have the `csplit' library (-lcsplit). */ #undef HAVE_LIBCSPLIT /* Define to 1 if you have the header file. */ #undef HAVE_LIBCSPLIT_H /* Define to 1 if you have the `cthreads' library (-lcthreads). */ #undef HAVE_LIBCTHREADS /* Define to 1 if you have the header file. */ #undef HAVE_LIBCTHREADS_H /* Define to 1 if you have the `dl' library (-ldl). */ #undef HAVE_LIBDL /* Define to 1 if you have the `fcache' library (-lfcache). */ #undef HAVE_LIBFCACHE /* Define to 1 if you have the header file. */ #undef HAVE_LIBFCACHE_H /* Define to 1 if you have the `fdata' library (-lfdata). */ #undef HAVE_LIBFDATA /* Define to 1 if you have the header file. */ #undef HAVE_LIBFDATA_H /* Define to 1 if you have the `fdatetime' library (-lfdatetime). */ #undef HAVE_LIBFDATETIME /* Define to 1 if you have the header file. */ #undef HAVE_LIBFDATETIME_H /* Define to 1 if you have the `fguid' library (-lfguid). */ #undef HAVE_LIBFGUID /* Define to 1 if you have the header file. */ #undef HAVE_LIBFGUID_H /* Define to 1 if you have the 'fuse' library (-lfuse). */ #undef HAVE_LIBFUSE /* Define to 1 if you have the `hmac' library (-lhmac). */ #undef HAVE_LIBHMAC /* Define to 1 if you have the header file. */ #undef HAVE_LIBHMAC_H /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the 'osxfuse' library (-losxfuse). */ #undef HAVE_LIBOSXFUSE /* Define to 1 if you have the `una' library (-luna). */ #undef HAVE_LIBUNA /* Define to 1 if you have the header file. */ #undef HAVE_LIBUNA_H /* Define to 1 if you have the `z' library (-lz). */ #undef HAVE_LIBZ /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_FS_H /* Define to 1 if you have the `localeconv' function. */ #undef HAVE_LOCALECONV /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if the local version of libbfio is used. */ #undef HAVE_LOCAL_LIBBFIO /* Define to 1 if the local version of libcaes is used. */ #undef HAVE_LOCAL_LIBCAES /* Define to 1 if the local version of libcdata is used. */ #undef HAVE_LOCAL_LIBCDATA /* Define to 1 if the local version of libcerror is used. */ #undef HAVE_LOCAL_LIBCERROR /* Define to 1 if the local version of libcfile is used. */ #undef HAVE_LOCAL_LIBCFILE /* Define to 1 if the local version of libclocale is used. */ #undef HAVE_LOCAL_LIBCLOCALE /* Define to 1 if the local version of libcnotify is used. */ #undef HAVE_LOCAL_LIBCNOTIFY /* Define to 1 if the local version of libcpath is used. */ #undef HAVE_LOCAL_LIBCPATH /* Define to 1 if the local version of libcsplit is used. */ #undef HAVE_LOCAL_LIBCSPLIT /* Define to 1 if the local version of libcthreads is used. */ #undef HAVE_LOCAL_LIBCTHREADS /* Define to 1 if the local version of libfcache is used. */ #undef HAVE_LOCAL_LIBFCACHE /* Define to 1 if the local version of libfdata is used. */ #undef HAVE_LOCAL_LIBFDATA /* Define to 1 if the local version of libfdatetime is used. */ #undef HAVE_LOCAL_LIBFDATETIME /* Define to 1 if the local version of libfguid is used. */ #undef HAVE_LOCAL_LIBFGUID /* Define to 1 if the local version of libhmac is used. */ #undef HAVE_LOCAL_LIBHMAC /* Define to 1 if the local version of libuna is used. */ #undef HAVE_LOCAL_LIBUNA /* Define to 1 if you have the `lseek' function. */ #undef HAVE_LSEEK /* Define to 1 if you have the `malloc' function. */ #undef HAVE_MALLOC /* Define to 1 if you have the `memchr' function. */ #undef HAVE_MEMCHR /* Define to 1 if you have the `memcmp' function. */ #undef HAVE_MEMCMP /* Define to 1 if you have the `memcpy' function. */ #undef HAVE_MEMCPY /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memrchr' function. */ #undef HAVE_MEMRCHR /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the mkdir function. */ #undef HAVE_MKDIR /* Define to 1 if you have the mkdir function with a second mode argument. */ #undef HAVE_MKDIR_MODE /* Define to 1 if you have the `mkstemp' function. */ #undef HAVE_MKSTEMP /* Define to 1 if multi thread support should be used. */ #undef HAVE_MULTI_THREAD_SUPPORT /* Define to 1 if you have the `nl_langinfo' function. */ #undef HAVE_NL_LANGINFO /* Define to 1 if you have the `open' function. */ #undef HAVE_OPEN /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_AES_H /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_EVP_H /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_MD5_H /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_OPENSSLV_H /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_SHA_H /* Define to 1 if you have the header file. */ #undef HAVE_OSXFUSE_FUSE_H /* Define to 1 if you have the posix_fadvise function. */ #undef HAVE_POSIX_FADVISE /* Define to 1 whether printf supports the conversion specifier "%jd". */ #undef HAVE_PRINTF_JD /* Define to 1 whether printf supports the conversion specifier "%zd". */ #undef HAVE_PRINTF_ZD /* Define to 1 if you have the 'pthread' library (-lpthread). */ #undef HAVE_PTHREAD /* Define to 1 if you have the header file. */ #undef HAVE_PTHREAD_H /* Define to 1 if you have the header file. */ #undef HAVE_PYTHON_H /* Define to 1 if you have the `read' function. */ #undef HAVE_READ /* Define to 1 if you have the `realloc' function. */ #undef HAVE_REALLOC /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if you have the `setvbuf' function. */ #undef HAVE_SETVBUF /* Define to 1 if you have the header file. */ #undef HAVE_SIGNAL_H /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF /* Define to 1 if you have the `sscanf' function. */ #undef HAVE_SSCANF /* Define to 1 if you have the `stat' function. */ #undef HAVE_STAT /* Define to 1 if you have the header file. */ #undef HAVE_STDARG_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the `strerror_r' function. */ #undef HAVE_STRERROR_R /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strlen' function. */ #undef HAVE_STRLEN /* Define to 1 if you have the `strncasecmp' function. */ #undef HAVE_STRNCASECMP /* Define to 1 if you have the `strncmp' function. */ #undef HAVE_STRNCMP /* Define to 1 if you have the `strncpy' function. */ #undef HAVE_STRNCPY /* Define to 1 if you have the `strnicmp' function. */ #undef HAVE_STRNICMP /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the `swprintf' function. */ #undef HAVE_SWPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_SYS_DISKLABEL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_DISK_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SIGNAL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SYSLIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the `time' function. */ #undef HAVE_TIME /* Define to 1 if you have the `towlower' function. */ #undef HAVE_TOWLOWER /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `unlink' function. */ #undef HAVE_UNLINK /* Define to 1 if you have the header file. */ #undef HAVE_VARARGS_H /* Define to 1 if verbose output should be used. */ #undef HAVE_VERBOSE_OUTPUT /* Define to 1 if you have the `vfprintf' function. */ #undef HAVE_VFPRINTF /* Define to 1 if you have the `vsnprintf' function. */ #undef HAVE_VSNPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_WCHAR_H /* Define to 1 if you have the `wcscasecmp' function. */ #undef HAVE_WCSCASECMP /* Define to 1 if you have the `wcschr' function. */ #undef HAVE_WCSCHR /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN /* Define to 1 if you have the `wcsncasecmp' function. */ #undef HAVE_WCSNCASECMP /* Define to 1 if you have the `wcsncmp' function. */ #undef HAVE_WCSNCMP /* Define to 1 if you have the `wcsncpy' function. */ #undef HAVE_WCSNCPY /* Define to 1 if you have the `wcsnicmp' function. */ #undef HAVE_WCSNICMP /* Define to 1 if you have the `wcsrchr' function. */ #undef HAVE_WCSRCHR /* Define to 1 if you have the `wcsstr' function. */ #undef HAVE_WCSSTR /* Define to 1 if you have the `wcstombs' function. */ #undef HAVE_WCSTOMBS /* Define to 1 if you have the header file. */ #undef HAVE_WCTYPE_H /* Define to 1 if wide character type should be used. */ #undef HAVE_WIDE_CHARACTER_TYPE /* Define to 1 if you have the header file. */ #undef HAVE_WINDOWS_H /* Define to 1 if you have the `wmemchr' function. */ #undef HAVE_WMEMCHR /* Define to 1 if you have the `wmemcmp' function. */ #undef HAVE_WMEMCMP /* Define to 1 if you have the `wmemcpy' function. */ #undef HAVE_WMEMCPY /* Define to 1 if you have the `wmemrchr' function. */ #undef HAVE_WMEMRCHR /* Define to 1 if you have the `write' function. */ #undef HAVE_WRITE /* Define to 1 if you have the 'zlib' library (-lz). */ #undef HAVE_ZLIB /* Define to 1 if you have the header file. */ #undef HAVE_ZLIB_H /* Define to 1 if you have the `uncompress' function. */ #undef HAVE_ZLIB_UNCOMPRESS /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT /* The size of `long', as computed by sizeof. */ #undef SIZEOF_LONG /* The size of `off_t', as computed by sizeof. */ #undef SIZEOF_OFF_T /* The size of `size_t', as computed by sizeof. */ #undef SIZEOF_SIZE_T /* The size of `wchar_t', as computed by sizeof. */ #undef SIZEOF_WCHAR_T /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if strerror_r returns char *. */ #undef STRERROR_R_CHAR_P /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE # define _DARWIN_USE_64_BIT_INODE 1 #endif /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `int' if does not define. */ #undef mode_t /* Define to `long int' if does not define. */ #undef off_t /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ #undef volatile libfsapfs-20190210/common/wide_string.h0000664000175000017500000001157413426637445022030 0ustar00lordyestalordyesta00000000000000/* * Wide character string functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _WIDE_STRING_H ) #define _WIDE_STRING_H #include "common.h" #include "memory.h" #include "types.h" #if defined( HAVE_WCHAR_H ) || defined( WINAPI ) #include #endif #if defined( __cplusplus ) extern "C" { #endif /* Intermediate version of the macro required * for correct evaluation predefined string */ #define _WIDE_STRING_INTERMEDIATE( string ) \ L ## string #define _WIDE_STRING( string ) \ _WIDE_STRING_INTERMEDIATE( string ) /* String allocation */ #define wide_string_allocate( size ) \ (wchar_t *) memory_allocate( sizeof( wchar_t ) * ( size ) ) /* String reallocation */ #define wide_string_reallocate( string, size ) \ (wchar_t *) memory_reallocate( string, ( sizeof( wchar_t ) * ( size ) ) ) /* String length */ #if defined( HAVE_WCSLEN ) || defined( WINAPI ) #define wide_string_length( string ) \ wcslen( string ) #endif /* String compare */ #if defined( HAVE_WMEMCMP ) #define wide_string_compare( string1, string2, size ) \ wmemcmp( (void *) string1, (void *) string2, size ) #elif defined( HAVE_WCSNCMP ) || defined( WINAPI ) #define wide_string_compare( string1, string2, size ) \ wcsncmp( string1, string2, size ) #endif /* Caseless string compare */ #if defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ >= 0x0551 ) ) #define wide_string_compare_no_case( string1, string2, size ) \ _wcsnicmp( string1, string2, size ) #elif ( defined( WINAPI ) && !defined( __CYGWIN__ ) ) || defined( HAVE_WCSNICMP ) #define wide_string_compare_no_case( string1, string2, size ) \ wcsnicmp( string1, string2, size ) #elif defined( HAVE_WCSNCASECMP ) #define wide_string_compare_no_case( string1, string2, size ) \ wcsncasecmp( string1, string2, size ) #elif defined( HAVE_WCSCASECMP ) #define wide_string_compare_no_case( string1, string2, size ) \ wcscasecmp( string1, string2 ) #endif /* String copy */ #if defined( HAVE_WMEMCPY ) #define wide_string_copy( destination, source, size ) \ (wchar_t *) wmemcpy( (void *) destination, (void *) source, size ) #elif defined( HAVE_WCSNCPY ) || defined( WINAPI ) #define wide_string_copy( destination, source, size ) \ wcsncpy( destination, source, size ) #endif /* String character search */ #if defined( HAVE_WMEMCHR ) #define wide_string_search_character( string, character, size ) \ (wchar_t *) wmemchr( (void *) string, (wchar_t) character, size ) #elif defined( HAVE_WCSCHR ) || defined( WINAPI ) #define wide_string_search_character( string, character, size ) \ wcschr( string, (wchar_t) character ) #endif /* String reverse character search */ #if defined( HAVE_WMEMRCHR ) #define wide_string_search_character_reverse( string, character, size ) \ (wchar_t *) wmemrchr( (void *) string, (wchar_t) character, size ) #elif defined( HAVE_WCSRCHR ) || defined( WINAPI ) #define wide_string_search_character_reverse( string, character, size ) \ wcsrchr( string, (wchar_t) character ) #endif /* String sub-string search */ #if defined( HAVE_WCSSTR ) || defined( WINAPI ) #define wide_string_search_string( string, substring, size ) \ wcsstr( string, substring ) #endif /* String formatted print (snwprintf) */ #if defined( _MSC_VER ) #define wide_string_snwprintf( target, size, ... ) \ swprintf_s( target, size, __VA_ARGS__ ) #elif defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define wide_string_snwprintf \ snwprintf #elif defined( WINAPI ) #define wide_string_snwprintf( target, size, ... ) \ snwprintf( target, size, __VA_ARGS__ ) #elif defined( HAVE_SWPRINTF ) #define wide_string_snwprintf( target, size, ... ) \ swprintf( target, size, __VA_ARGS__ ) #endif /* Variable arguments formatted print to string function (vsnwprintf) */ #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) #define wide_string_vsnwprintf \ _vsnwprintf #elif defined( WINAPI ) #define wide_string_vsnwprintf( string, size, format, ... ) \ _vsnwprintf( string, size, format, __VA_ARGS__ ) #elif defined( HAVE_VSWPRINTF ) #define wide_string_vsnwprintf( string, size, format, ... ) \ vswprintf( string, size, format, __VA_ARGS__ ) #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _WIDE_STRING_H ) */ libfsapfs-20190210/pyfsapfs-python3/0000775000175000017500000000000013430101370021250 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/pyfsapfs-python3/Makefile.am0000664000175000017500000000377313426641654023341 0ustar00lordyestalordyesta00000000000000# Note that we cannot use: AUTOMAKE_OPTIONS = subdir-objects # subdir-objects will compile the source files to a single version of Python. # Since subdir-objects is being deprecated we copy the source files instead. am__installdirs = "$(DESTDIR)$(pyexecdir3)" pyexecdir = $(pyexecdir3) if HAVE_PYTHON3 AM_CFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBFSAPFS_DLL_IMPORT@ am_pyfsapfs_la_rpath = -rpath $(pyexecdir3) BUILT_SOURCES = \ pyfsapfs.c pyfsapfs.h \ pyfsapfs_container.c pyfsapfs_container.h \ pyfsapfs_datetime.c pyfsapfs_datetime.h \ pyfsapfs_error.c pyfsapfs_error.h \ pyfsapfs_extended_attribute.c pyfsapfs_extended_attribute.h \ pyfsapfs_extended_attributes.c pyfsapfs_extended_attributes.h \ pyfsapfs_file_entries.c pyfsapfs_file_entries.h \ pyfsapfs_file_entry.c pyfsapfs_file_entry.h \ pyfsapfs_file_object_io_handle.c pyfsapfs_file_object_io_handle.h \ pyfsapfs_guid.c pyfsapfs_guid.h \ pyfsapfs_integer.c pyfsapfs_integer.h \ pyfsapfs_libbfio.h \ pyfsapfs_libcerror.h \ pyfsapfs_libclocale.h \ pyfsapfs_libfguid.h \ pyfsapfs_libfsapfs.h \ pyfsapfs_python.h \ pyfsapfs_unused.h \ pyfsapfs_volume.c pyfsapfs_volume.h \ pyfsapfs_volumes.c pyfsapfs_volumes.h pyexec_LTLIBRARIES = pyfsapfs.la nodist_pyfsapfs_la_SOURCES = $(BUILT_SOURCES) pyfsapfs_la_LIBADD = \ @LIBCERROR_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCDATA_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBFGUID_LIBADD@ pyfsapfs_la_CPPFLAGS = $(PYTHON3_CPPFLAGS) pyfsapfs_la_LDFLAGS = -module -avoid-version $(PYTHON3_LDFLAGS) $(BUILT_SOURCES): /bin/cp -f $(top_srcdir)/pyfsapfs/$@ $@ endif MAINTAINERCLEANFILES = \ Makefile.in clean-local: /bin/rm -f pyfsapfs*.[ch] distclean: clean /bin/rm -f Makefile libfsapfs-20190210/pyfsapfs-python3/Makefile.in0000664000175000017500000015205013430101254023321 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pyfsapfs-python3 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } LTLIBRARIES = $(pyexec_LTLIBRARIES) @HAVE_PYTHON3_TRUE@pyfsapfs_la_DEPENDENCIES = \ @HAVE_PYTHON3_TRUE@ ../libfsapfs/libfsapfs.la @HAVE_PYTHON3_TRUE@am__objects_1 = pyfsapfs_la-pyfsapfs.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_container.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_datetime.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_error.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_extended_attribute.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_extended_attributes.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_file_entries.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_file_entry.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_file_object_io_handle.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_guid.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_integer.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_volume.lo \ @HAVE_PYTHON3_TRUE@ pyfsapfs_la-pyfsapfs_volumes.lo @HAVE_PYTHON3_TRUE@nodist_pyfsapfs_la_OBJECTS = $(am__objects_1) pyfsapfs_la_OBJECTS = $(nodist_pyfsapfs_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = pyfsapfs_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(pyfsapfs_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(nodist_pyfsapfs_la_SOURCES) DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = $(pyexecdir3) pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ # Note that we cannot use: AUTOMAKE_OPTIONS = subdir-objects # subdir-objects will compile the source files to a single version of Python. # Since subdir-objects is being deprecated we copy the source files instead. am__installdirs = "$(DESTDIR)$(pyexecdir3)" @HAVE_PYTHON3_TRUE@AM_CFLAGS = \ @HAVE_PYTHON3_TRUE@ -I$(top_srcdir)/include \ @HAVE_PYTHON3_TRUE@ -I$(top_srcdir)/common \ @HAVE_PYTHON3_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBCDATA_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBCLOCALE_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBCSPLIT_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBUNA_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBCFILE_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBCPATH_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBBFIO_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBFGUID_CPPFLAGS@ \ @HAVE_PYTHON3_TRUE@ @LIBFSAPFS_DLL_IMPORT@ @HAVE_PYTHON3_TRUE@am_pyfsapfs_la_rpath = -rpath $(pyexecdir3) @HAVE_PYTHON3_TRUE@BUILT_SOURCES = \ @HAVE_PYTHON3_TRUE@ pyfsapfs.c pyfsapfs.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_container.c pyfsapfs_container.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_datetime.c pyfsapfs_datetime.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_error.c pyfsapfs_error.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_extended_attribute.c pyfsapfs_extended_attribute.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_extended_attributes.c pyfsapfs_extended_attributes.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_file_entries.c pyfsapfs_file_entries.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_file_entry.c pyfsapfs_file_entry.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_file_object_io_handle.c pyfsapfs_file_object_io_handle.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_guid.c pyfsapfs_guid.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_integer.c pyfsapfs_integer.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_libbfio.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_libcerror.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_libclocale.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_libfguid.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_libfsapfs.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_python.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_unused.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_volume.c pyfsapfs_volume.h \ @HAVE_PYTHON3_TRUE@ pyfsapfs_volumes.c pyfsapfs_volumes.h @HAVE_PYTHON3_TRUE@pyexec_LTLIBRARIES = pyfsapfs.la @HAVE_PYTHON3_TRUE@nodist_pyfsapfs_la_SOURCES = $(BUILT_SOURCES) @HAVE_PYTHON3_TRUE@pyfsapfs_la_LIBADD = \ @HAVE_PYTHON3_TRUE@ @LIBCERROR_LIBADD@ \ @HAVE_PYTHON3_TRUE@ ../libfsapfs/libfsapfs.la \ @HAVE_PYTHON3_TRUE@ @LIBCDATA_LIBADD@ \ @HAVE_PYTHON3_TRUE@ @LIBCLOCALE_LIBADD@ \ @HAVE_PYTHON3_TRUE@ @LIBCSPLIT_LIBADD@ \ @HAVE_PYTHON3_TRUE@ @LIBUNA_LIBADD@ \ @HAVE_PYTHON3_TRUE@ @LIBCFILE_LIBADD@ \ @HAVE_PYTHON3_TRUE@ @LIBCPATH_LIBADD@ \ @HAVE_PYTHON3_TRUE@ @LIBBFIO_LIBADD@ \ @HAVE_PYTHON3_TRUE@ @LIBFGUID_LIBADD@ @HAVE_PYTHON3_TRUE@pyfsapfs_la_CPPFLAGS = $(PYTHON3_CPPFLAGS) @HAVE_PYTHON3_TRUE@pyfsapfs_la_LDFLAGS = -module -avoid-version $(PYTHON3_LDFLAGS) MAINTAINERCLEANFILES = \ Makefile.in all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pyfsapfs-python3/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu pyfsapfs-python3/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pyexecLTLIBRARIES: $(pyexec_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(pyexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pyexecdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pyexecdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pyexecdir)"; \ } uninstall-pyexecLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$f"; \ done clean-pyexecLTLIBRARIES: -test -z "$(pyexec_LTLIBRARIES)" || rm -f $(pyexec_LTLIBRARIES) @list='$(pyexec_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } pyfsapfs.la: $(pyfsapfs_la_OBJECTS) $(pyfsapfs_la_DEPENDENCIES) $(EXTRA_pyfsapfs_la_DEPENDENCIES) $(AM_V_CCLD)$(pyfsapfs_la_LINK) $(am_pyfsapfs_la_rpath) $(pyfsapfs_la_OBJECTS) $(pyfsapfs_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< pyfsapfs_la-pyfsapfs.lo: pyfsapfs.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs.Tpo -c -o pyfsapfs_la-pyfsapfs.lo `test -f 'pyfsapfs.c' || echo '$(srcdir)/'`pyfsapfs.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs.c' object='pyfsapfs_la-pyfsapfs.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs.lo `test -f 'pyfsapfs.c' || echo '$(srcdir)/'`pyfsapfs.c pyfsapfs_la-pyfsapfs_container.lo: pyfsapfs_container.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_container.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Tpo -c -o pyfsapfs_la-pyfsapfs_container.lo `test -f 'pyfsapfs_container.c' || echo '$(srcdir)/'`pyfsapfs_container.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_container.c' object='pyfsapfs_la-pyfsapfs_container.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_container.lo `test -f 'pyfsapfs_container.c' || echo '$(srcdir)/'`pyfsapfs_container.c pyfsapfs_la-pyfsapfs_datetime.lo: pyfsapfs_datetime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_datetime.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Tpo -c -o pyfsapfs_la-pyfsapfs_datetime.lo `test -f 'pyfsapfs_datetime.c' || echo '$(srcdir)/'`pyfsapfs_datetime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_datetime.c' object='pyfsapfs_la-pyfsapfs_datetime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_datetime.lo `test -f 'pyfsapfs_datetime.c' || echo '$(srcdir)/'`pyfsapfs_datetime.c pyfsapfs_la-pyfsapfs_error.lo: pyfsapfs_error.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_error.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Tpo -c -o pyfsapfs_la-pyfsapfs_error.lo `test -f 'pyfsapfs_error.c' || echo '$(srcdir)/'`pyfsapfs_error.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_error.c' object='pyfsapfs_la-pyfsapfs_error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_error.lo `test -f 'pyfsapfs_error.c' || echo '$(srcdir)/'`pyfsapfs_error.c pyfsapfs_la-pyfsapfs_extended_attribute.lo: pyfsapfs_extended_attribute.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_extended_attribute.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Tpo -c -o pyfsapfs_la-pyfsapfs_extended_attribute.lo `test -f 'pyfsapfs_extended_attribute.c' || echo '$(srcdir)/'`pyfsapfs_extended_attribute.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_extended_attribute.c' object='pyfsapfs_la-pyfsapfs_extended_attribute.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_extended_attribute.lo `test -f 'pyfsapfs_extended_attribute.c' || echo '$(srcdir)/'`pyfsapfs_extended_attribute.c pyfsapfs_la-pyfsapfs_extended_attributes.lo: pyfsapfs_extended_attributes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_extended_attributes.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Tpo -c -o pyfsapfs_la-pyfsapfs_extended_attributes.lo `test -f 'pyfsapfs_extended_attributes.c' || echo '$(srcdir)/'`pyfsapfs_extended_attributes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_extended_attributes.c' object='pyfsapfs_la-pyfsapfs_extended_attributes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_extended_attributes.lo `test -f 'pyfsapfs_extended_attributes.c' || echo '$(srcdir)/'`pyfsapfs_extended_attributes.c pyfsapfs_la-pyfsapfs_file_entries.lo: pyfsapfs_file_entries.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_entries.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Tpo -c -o pyfsapfs_la-pyfsapfs_file_entries.lo `test -f 'pyfsapfs_file_entries.c' || echo '$(srcdir)/'`pyfsapfs_file_entries.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_entries.c' object='pyfsapfs_la-pyfsapfs_file_entries.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_entries.lo `test -f 'pyfsapfs_file_entries.c' || echo '$(srcdir)/'`pyfsapfs_file_entries.c pyfsapfs_la-pyfsapfs_file_entry.lo: pyfsapfs_file_entry.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_entry.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Tpo -c -o pyfsapfs_la-pyfsapfs_file_entry.lo `test -f 'pyfsapfs_file_entry.c' || echo '$(srcdir)/'`pyfsapfs_file_entry.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_entry.c' object='pyfsapfs_la-pyfsapfs_file_entry.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_entry.lo `test -f 'pyfsapfs_file_entry.c' || echo '$(srcdir)/'`pyfsapfs_file_entry.c pyfsapfs_la-pyfsapfs_file_object_io_handle.lo: pyfsapfs_file_object_io_handle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_object_io_handle.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Tpo -c -o pyfsapfs_la-pyfsapfs_file_object_io_handle.lo `test -f 'pyfsapfs_file_object_io_handle.c' || echo '$(srcdir)/'`pyfsapfs_file_object_io_handle.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_object_io_handle.c' object='pyfsapfs_la-pyfsapfs_file_object_io_handle.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_object_io_handle.lo `test -f 'pyfsapfs_file_object_io_handle.c' || echo '$(srcdir)/'`pyfsapfs_file_object_io_handle.c pyfsapfs_la-pyfsapfs_guid.lo: pyfsapfs_guid.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_guid.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Tpo -c -o pyfsapfs_la-pyfsapfs_guid.lo `test -f 'pyfsapfs_guid.c' || echo '$(srcdir)/'`pyfsapfs_guid.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_guid.c' object='pyfsapfs_la-pyfsapfs_guid.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_guid.lo `test -f 'pyfsapfs_guid.c' || echo '$(srcdir)/'`pyfsapfs_guid.c pyfsapfs_la-pyfsapfs_integer.lo: pyfsapfs_integer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_integer.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Tpo -c -o pyfsapfs_la-pyfsapfs_integer.lo `test -f 'pyfsapfs_integer.c' || echo '$(srcdir)/'`pyfsapfs_integer.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_integer.c' object='pyfsapfs_la-pyfsapfs_integer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_integer.lo `test -f 'pyfsapfs_integer.c' || echo '$(srcdir)/'`pyfsapfs_integer.c pyfsapfs_la-pyfsapfs_volume.lo: pyfsapfs_volume.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_volume.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Tpo -c -o pyfsapfs_la-pyfsapfs_volume.lo `test -f 'pyfsapfs_volume.c' || echo '$(srcdir)/'`pyfsapfs_volume.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_volume.c' object='pyfsapfs_la-pyfsapfs_volume.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_volume.lo `test -f 'pyfsapfs_volume.c' || echo '$(srcdir)/'`pyfsapfs_volume.c pyfsapfs_la-pyfsapfs_volumes.lo: pyfsapfs_volumes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_volumes.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Tpo -c -o pyfsapfs_la-pyfsapfs_volumes.lo `test -f 'pyfsapfs_volumes.c' || echo '$(srcdir)/'`pyfsapfs_volumes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_volumes.c' object='pyfsapfs_la-pyfsapfs_volumes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_volumes.lo `test -f 'pyfsapfs_volumes.c' || echo '$(srcdir)/'`pyfsapfs_volumes.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(pyexecdir3)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-local \ clean-pyexecLTLIBRARIES mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-pyexecLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pyexecLTLIBRARIES .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-local \ clean-pyexecLTLIBRARIES cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-pyexecLTLIBRARIES install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-pyexecLTLIBRARIES .PRECIOUS: Makefile @HAVE_PYTHON3_TRUE@$(BUILT_SOURCES): @HAVE_PYTHON3_TRUE@ /bin/cp -f $(top_srcdir)/pyfsapfs/$@ $@ clean-local: /bin/rm -f pyfsapfs*.[ch] distclean: clean /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libfguid/0000775000175000017500000000000013430101370017600 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libfguid/libfguid_identifier.c0000664000175000017500000020376513430101221023743 0ustar00lordyestalordyesta00000000000000/* * GUID functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfguid_definitions.h" #include "libfguid_identifier.h" #include "libfguid_libcerror.h" #include "libfguid_types.h" /* Creates an identifier * Make sure the value identifier is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfguid_identifier_initialize( libfguid_identifier_t **identifier, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_initialize"; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } if( *identifier != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid identifier value already set.", function ); return( -1 ); } internal_identifier = memory_allocate_structure( libfguid_internal_identifier_t ); if( internal_identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create identifier.", function ); goto on_error; } if( memory_set( internal_identifier, 0, sizeof( libfguid_internal_identifier_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear identifier.", function ); goto on_error; } *identifier = (libfguid_identifier_t *) internal_identifier; return( 1 ); on_error: if( internal_identifier != NULL ) { memory_free( internal_identifier ); } return( -1 ); } /* Frees an identifier * Returns 1 if successful or -1 on error */ int libfguid_identifier_free( libfguid_identifier_t **identifier, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_free"; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } if( *identifier != NULL ) { internal_identifier = (libfguid_internal_identifier_t *) *identifier; *identifier = NULL; memory_free( internal_identifier ); } return( 1 ); } /* Copies the identifier from a byte stream * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_from_byte_stream( libfguid_identifier_t *identifier, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_from_byte_stream"; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFGUID_ENDIAN_BIG ) && ( byte_order != LIBFGUID_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBFGUID_ENDIAN_LITTLE ) { byte_stream_copy_to_uint32_little_endian( byte_stream, internal_identifier->time.lower ); byte_stream += 4; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_identifier->time.middle ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_identifier->time.upper ); byte_stream += 2; } else if( byte_order == LIBFGUID_ENDIAN_BIG ) { byte_stream_copy_to_uint32_big_endian( byte_stream, internal_identifier->time.lower ); byte_stream += 4; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_identifier->time.middle ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_identifier->time.upper ); byte_stream += 2; } internal_identifier->clock_sequence.upper = byte_stream[ 0 ]; internal_identifier->clock_sequence.lower = byte_stream[ 1 ]; internal_identifier->node[ 0 ] = byte_stream[ 2 ]; internal_identifier->node[ 1 ] = byte_stream[ 3 ]; internal_identifier->node[ 2 ] = byte_stream[ 4 ]; internal_identifier->node[ 3 ] = byte_stream[ 5 ]; internal_identifier->node[ 4 ] = byte_stream[ 6 ]; internal_identifier->node[ 5 ] = byte_stream[ 7 ]; return( 1 ); } /* Copies the identifier to a byte stream * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_to_byte_stream( libfguid_identifier_t *identifier, uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_to_byte_stream"; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFGUID_ENDIAN_BIG ) && ( byte_order != LIBFGUID_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBFGUID_ENDIAN_LITTLE ) { byte_stream_copy_from_uint32_little_endian( byte_stream, internal_identifier->time.lower ); byte_stream += 4; byte_stream_copy_from_uint16_little_endian( byte_stream, internal_identifier->time.middle ); byte_stream += 2; byte_stream_copy_from_uint16_little_endian( byte_stream, internal_identifier->time.upper ); byte_stream += 2; } else if( byte_order == LIBFGUID_ENDIAN_BIG ) { byte_stream_copy_from_uint32_big_endian( byte_stream, internal_identifier->time.lower ); byte_stream += 4; byte_stream_copy_from_uint16_big_endian( byte_stream, internal_identifier->time.middle ); byte_stream += 2; byte_stream_copy_from_uint16_big_endian( byte_stream, internal_identifier->time.upper ); byte_stream += 2; } byte_stream[ 0 ] = internal_identifier->clock_sequence.upper; byte_stream[ 1 ] = internal_identifier->clock_sequence.lower; byte_stream[ 2 ] = internal_identifier->node[ 0 ]; byte_stream[ 3 ] = internal_identifier->node[ 1 ]; byte_stream[ 4 ] = internal_identifier->node[ 2 ]; byte_stream[ 5 ] = internal_identifier->node[ 3 ]; byte_stream[ 6 ] = internal_identifier->node[ 4 ]; byte_stream[ 7 ] = internal_identifier->node[ 5 ]; return( 1 ); } /* Retrieves the size of an UTF-8 encoded string of the identifier * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfguid_identifier_get_string_size( libfguid_identifier_t *identifier, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfguid_identifier_get_string_size"; uint32_t required_flags = 0; uint32_t supported_flags = 0; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } required_flags = LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE; if( ( string_format_flags & required_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: missing string format flags.", function ); return( -1 ); } supported_flags = required_flags | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES; if( ( string_format_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } *string_size = 37; if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { *string_size += 2; } return( 1 ); } /* Copies the identifier from an UTF-8 encoded string * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_from_utf8_string( libfguid_identifier_t *identifier, const uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfguid_identifier_copy_from_utf8_string"; size_t utf8_string_index = 0; if( libfguid_identifier_copy_from_utf8_string_with_index( identifier, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy identifier from UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies the identifier from an UTF-8 encoded string * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_from_utf8_string_with_index( libfguid_identifier_t *identifier, const uint8_t *utf8_string, size_t utf8_string_length, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_from_utf8_string_with_index"; size_t byte_index = 0; size_t node_index = 0; size_t string_index = 0; size_t string_length = 0; uint32_t required_flags = 0; uint32_t supported_flags = 0; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 index.", function ); return( -1 ); } required_flags = LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE; if( ( string_format_flags & required_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: missing string format flags.", function ); return( -1 ); } supported_flags = required_flags | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES; if( ( string_format_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_length = 36; if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { string_length += 2; } string_index = *utf8_string_index; if( ( string_index + string_length ) > utf8_string_length ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { if( utf8_string[ string_index ] != (uint8_t) '{' ) { goto on_error; } string_index++; } for( byte_index = 0; byte_index < 8; byte_index++ ) { internal_identifier->time.lower <<= 4; if( ( utf8_string[ string_index ] >= (uint8_t) '0' ) && ( utf8_string[ string_index ] <= (uint8_t) '9' ) ) { internal_identifier->time.lower |= utf8_string[ string_index ] - (uint8_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'a' ) && ( utf8_string[ string_index ] <= (uint8_t) 'f' ) ) { internal_identifier->time.lower |= utf8_string[ string_index ] - (uint8_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'A' ) && ( utf8_string[ string_index ] <= (uint8_t) 'F' ) ) { internal_identifier->time.lower |= utf8_string[ string_index ] - (uint8_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf8_string[ string_index ] != (uint8_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 4; byte_index++ ) { internal_identifier->time.middle <<= 4; if( ( utf8_string[ string_index ] >= (uint8_t) '0' ) && ( utf8_string[ string_index ] <= (uint8_t) '9' ) ) { internal_identifier->time.middle |= utf8_string[ string_index ] - (uint8_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'a' ) && ( utf8_string[ string_index ] <= (uint8_t) 'f' ) ) { internal_identifier->time.middle |= utf8_string[ string_index ] - (uint8_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'A' ) && ( utf8_string[ string_index ] <= (uint8_t) 'F' ) ) { internal_identifier->time.middle |= utf8_string[ string_index ] - (uint8_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf8_string[ string_index ] != (uint8_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 4; byte_index++ ) { internal_identifier->time.upper <<= 4; if( ( utf8_string[ string_index ] >= (uint8_t) '0' ) && ( utf8_string[ string_index ] <= (uint8_t) '9' ) ) { internal_identifier->time.upper |= utf8_string[ string_index ] - (uint8_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'a' ) && ( utf8_string[ string_index ] <= (uint8_t) 'f' ) ) { internal_identifier->time.upper |= utf8_string[ string_index ] - (uint8_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'A' ) && ( utf8_string[ string_index ] <= (uint8_t) 'F' ) ) { internal_identifier->time.upper |= utf8_string[ string_index ] - (uint8_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf8_string[ string_index ] != (uint8_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 2; byte_index++ ) { internal_identifier->clock_sequence.upper <<= 4; if( ( utf8_string[ string_index ] >= (uint8_t) '0' ) && ( utf8_string[ string_index ] <= (uint8_t) '9' ) ) { internal_identifier->clock_sequence.upper |= utf8_string[ string_index ] - (uint8_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'a' ) && ( utf8_string[ string_index ] <= (uint8_t) 'f' ) ) { internal_identifier->clock_sequence.upper |= utf8_string[ string_index ] - (uint8_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'A' ) && ( utf8_string[ string_index ] <= (uint8_t) 'F' ) ) { internal_identifier->clock_sequence.upper |= utf8_string[ string_index ] - (uint8_t) 'A' + 10; } else { goto on_error; } string_index++; } for( byte_index = 0; byte_index < 2; byte_index++ ) { internal_identifier->clock_sequence.lower <<= 4; if( ( utf8_string[ string_index ] >= (uint8_t) '0' ) && ( utf8_string[ string_index ] <= (uint8_t) '9' ) ) { internal_identifier->clock_sequence.lower |= utf8_string[ string_index ] - (uint8_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'a' ) && ( utf8_string[ string_index ] <= (uint8_t) 'f' ) ) { internal_identifier->clock_sequence.lower |= utf8_string[ string_index ] - (uint8_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'A' ) && ( utf8_string[ string_index ] <= (uint8_t) 'F' ) ) { internal_identifier->clock_sequence.lower |= utf8_string[ string_index ] - (uint8_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf8_string[ string_index ] != (uint8_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 12; byte_index++ ) { node_index = byte_index / 2; internal_identifier->node[ node_index ] <<= 4; if( ( utf8_string[ string_index ] >= (uint8_t) '0' ) && ( utf8_string[ string_index ] <= (uint8_t) '9' ) ) { internal_identifier->node[ node_index ] |= utf8_string[ string_index ] - (uint8_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'a' ) && ( utf8_string[ string_index ] <= (uint8_t) 'f' ) ) { internal_identifier->node[ node_index ] |= utf8_string[ string_index ] - (uint8_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf8_string[ string_index ] >= (uint8_t) 'A' ) && ( utf8_string[ string_index ] <= (uint8_t) 'F' ) ) { internal_identifier->node[ node_index ] |= utf8_string[ string_index ] - (uint8_t) 'A' + 10; } else { goto on_error; } string_index++; } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { if( utf8_string[ string_index ] != (uint8_t) '}' ) { goto on_error; } string_index++; } *utf8_string_index = string_index; return( 1 ); on_error: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported character value: 0x%02" PRIx8 " at index: %d.", function, utf8_string[ string_index ], string_index ); return( -1 ); } /* Copies the identifier to an UTF-8 encoded string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_to_utf8_string( libfguid_identifier_t *identifier, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfguid_identifier_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfguid_identifier_copy_to_utf8_string_with_index( identifier, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy identifier to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies the identifier to an UTF-8 encoded string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_to_utf8_string_with_index( libfguid_identifier_t *identifier, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_to_utf8_string_with_index"; size_t string_index = 0; size_t string_size = 0; uint32_t required_flags = 0; uint32_t supported_flags = 0; uint8_t byte_value = 0; uint8_t node_index = 0; int8_t byte_shift = 0; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: UTF-8 string size exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 index.", function ); return( -1 ); } required_flags = LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE; if( ( string_format_flags & required_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: missing string format flags.", function ); return( -1 ); } supported_flags = required_flags | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES; if( ( string_format_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_size = 37; if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { string_size += 2; } string_index = *utf8_string_index; if( ( string_index + string_size ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) '{'; } byte_shift = 28; do { byte_value = ( internal_identifier->time.lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) 'A' + byte_value - 10; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) '-'; byte_shift = 12; do { byte_value = ( internal_identifier->time.middle >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) 'A' + byte_value - 10; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) '-'; byte_shift = 12; do { byte_value = ( internal_identifier->time.upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) 'A' + byte_value - 10; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) '-'; byte_shift = 4; do { byte_value = ( internal_identifier->clock_sequence.upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) 'A' + byte_value - 10; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); byte_shift = 4; do { byte_value = ( internal_identifier->clock_sequence.lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) 'A' + byte_value - 10; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) '-'; for( node_index = 0; node_index < 6; node_index++ ) { byte_shift = 4; do { byte_value = ( internal_identifier->node[ node_index ] >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) 'A' + byte_value - 10; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { utf8_string[ string_index++ ] = (uint8_t) '}'; } utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Copies the identifier from an UTF-16 encoded string * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_from_utf16_string( libfguid_identifier_t *identifier, const uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfguid_identifier_copy_from_utf16_string"; size_t utf16_string_index = 0; if( libfguid_identifier_copy_from_utf16_string_with_index( identifier, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy identifier from UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies the identifier from an UTF-16 encoded string * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_from_utf16_string_with_index( libfguid_identifier_t *identifier, const uint16_t *utf16_string, size_t utf16_string_length, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_from_utf16_string_with_index"; size_t byte_index = 0; size_t node_index = 0; size_t string_index = 0; size_t string_length = 0; uint32_t required_flags = 0; uint32_t supported_flags = 0; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 index.", function ); return( -1 ); } required_flags = LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE; if( ( string_format_flags & required_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: missing string format flags.", function ); return( -1 ); } supported_flags = required_flags | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES; if( ( string_format_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_length = 36; if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { string_length += 2; } string_index = *utf16_string_index; if( ( string_index + string_length ) > utf16_string_length ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { if( utf16_string[ string_index ] != (uint16_t) '{' ) { goto on_error; } string_index++; } for( byte_index = 0; byte_index < 8; byte_index++ ) { internal_identifier->time.lower <<= 4; if( ( utf16_string[ string_index ] >= (uint16_t) '0' ) && ( utf16_string[ string_index ] <= (uint16_t) '9' ) ) { internal_identifier->time.lower |= utf16_string[ string_index ] - (uint16_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'a' ) && ( utf16_string[ string_index ] <= (uint16_t) 'f' ) ) { internal_identifier->time.lower |= utf16_string[ string_index ] - (uint16_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'A' ) && ( utf16_string[ string_index ] <= (uint16_t) 'F' ) ) { internal_identifier->time.lower |= utf16_string[ string_index ] - (uint16_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf16_string[ string_index ] != (uint16_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 4; byte_index++ ) { internal_identifier->time.middle <<= 4; if( ( utf16_string[ string_index ] >= (uint16_t) '0' ) && ( utf16_string[ string_index ] <= (uint16_t) '9' ) ) { internal_identifier->time.middle |= utf16_string[ string_index ] - (uint16_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'a' ) && ( utf16_string[ string_index ] <= (uint16_t) 'f' ) ) { internal_identifier->time.middle |= utf16_string[ string_index ] - (uint16_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'A' ) && ( utf16_string[ string_index ] <= (uint16_t) 'F' ) ) { internal_identifier->time.middle |= utf16_string[ string_index ] - (uint16_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf16_string[ string_index ] != (uint16_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 4; byte_index++ ) { internal_identifier->time.upper <<= 4; if( ( utf16_string[ string_index ] >= (uint16_t) '0' ) && ( utf16_string[ string_index ] <= (uint16_t) '9' ) ) { internal_identifier->time.upper |= utf16_string[ string_index ] - (uint16_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'a' ) && ( utf16_string[ string_index ] <= (uint16_t) 'f' ) ) { internal_identifier->time.upper |= utf16_string[ string_index ] - (uint16_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'A' ) && ( utf16_string[ string_index ] <= (uint16_t) 'F' ) ) { internal_identifier->time.upper |= utf16_string[ string_index ] - (uint16_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf16_string[ string_index ] != (uint16_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 2; byte_index++ ) { internal_identifier->clock_sequence.upper <<= 4; if( ( utf16_string[ string_index ] >= (uint16_t) '0' ) && ( utf16_string[ string_index ] <= (uint16_t) '9' ) ) { internal_identifier->clock_sequence.upper |= utf16_string[ string_index ] - (uint16_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'a' ) && ( utf16_string[ string_index ] <= (uint16_t) 'f' ) ) { internal_identifier->clock_sequence.upper |= utf16_string[ string_index ] - (uint16_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'A' ) && ( utf16_string[ string_index ] <= (uint16_t) 'F' ) ) { internal_identifier->clock_sequence.upper |= utf16_string[ string_index ] - (uint16_t) 'A' + 10; } else { goto on_error; } string_index++; } for( byte_index = 0; byte_index < 2; byte_index++ ) { internal_identifier->clock_sequence.lower <<= 4; if( ( utf16_string[ string_index ] >= (uint16_t) '0' ) && ( utf16_string[ string_index ] <= (uint16_t) '9' ) ) { internal_identifier->clock_sequence.lower |= utf16_string[ string_index ] - (uint16_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'a' ) && ( utf16_string[ string_index ] <= (uint16_t) 'f' ) ) { internal_identifier->clock_sequence.lower |= utf16_string[ string_index ] - (uint16_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'A' ) && ( utf16_string[ string_index ] <= (uint16_t) 'F' ) ) { internal_identifier->clock_sequence.lower |= utf16_string[ string_index ] - (uint16_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf16_string[ string_index ] != (uint16_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 12; byte_index++ ) { node_index = byte_index / 2; internal_identifier->node[ node_index ] <<= 4; if( ( utf16_string[ string_index ] >= (uint16_t) '0' ) && ( utf16_string[ string_index ] <= (uint16_t) '9' ) ) { internal_identifier->node[ node_index ] |= utf16_string[ string_index ] - (uint16_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'a' ) && ( utf16_string[ string_index ] <= (uint16_t) 'f' ) ) { internal_identifier->node[ node_index ] |= utf16_string[ string_index ] - (uint16_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf16_string[ string_index ] >= (uint16_t) 'A' ) && ( utf16_string[ string_index ] <= (uint16_t) 'F' ) ) { internal_identifier->node[ node_index ] |= utf16_string[ string_index ] - (uint16_t) 'A' + 10; } else { goto on_error; } string_index++; } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { if( utf16_string[ string_index ] != (uint16_t) '}' ) { goto on_error; } string_index++; } *utf16_string_index = string_index; return( 1 ); on_error: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported character value: 0x%04" PRIx16 " at index: %d.", function, utf16_string[ string_index ], string_index ); return( -1 ); } /* Copies the identifier to an UTF-16 encoded string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_to_utf16_string( libfguid_identifier_t *identifier, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfguid_identifier_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfguid_identifier_copy_to_utf16_string_with_index( identifier, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy identifier to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies the identifier to an UTF-16 encoded string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_to_utf16_string_with_index( libfguid_identifier_t *identifier, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_to_utf16_string_with_index"; size_t string_index = 0; size_t string_size = 0; uint32_t required_flags = 0; uint32_t supported_flags = 0; uint8_t byte_value = 0; uint8_t node_index = 0; int8_t byte_shift = 0; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: UTF-16 string size exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 index.", function ); return( -1 ); } required_flags = LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE; if( ( string_format_flags & required_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: missing string format flags.", function ); return( -1 ); } supported_flags = required_flags | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES; if( ( string_format_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_size = 37; if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { string_size += 2; } string_index = *utf16_string_index; if( ( string_index + string_size ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) '{'; } byte_shift = 28; do { byte_value = ( internal_identifier->time.lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) 'A' + byte_value - 10; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) '-'; byte_shift = 12; do { byte_value = ( internal_identifier->time.middle >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) 'A' + byte_value - 10; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) '-'; byte_shift = 12; do { byte_value = ( internal_identifier->time.upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) 'A' + byte_value - 10; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) '-'; byte_shift = 4; do { byte_value = ( internal_identifier->clock_sequence.upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) 'A' + byte_value - 10; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); byte_shift = 4; do { byte_value = ( internal_identifier->clock_sequence.lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) 'A' + byte_value - 10; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) '-'; for( node_index = 0; node_index < 6; node_index++ ) { byte_shift = 4; do { byte_value = ( internal_identifier->node[ node_index ] >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) 'A' + byte_value - 10; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { utf16_string[ string_index++ ] = (uint16_t) '}'; } utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Copies the identifier from an UTF-32 encoded string * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_from_utf32_string( libfguid_identifier_t *identifier, const uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfguid_identifier_copy_from_utf32_string"; size_t utf32_string_index = 0; if( libfguid_identifier_copy_from_utf32_string_with_index( identifier, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy identifier from UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies the identifier from an UTF-32 encoded string * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_from_utf32_string_with_index( libfguid_identifier_t *identifier, const uint32_t *utf32_string, size_t utf32_string_length, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_from_utf32_string_with_index"; size_t byte_index = 0; size_t node_index = 0; size_t string_index = 0; size_t string_length = 0; uint32_t required_flags = 0; uint32_t supported_flags = 0; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 index.", function ); return( -1 ); } required_flags = LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE; if( ( string_format_flags & required_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: missing string format flags.", function ); return( -1 ); } supported_flags = required_flags | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES; if( ( string_format_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_length = 36; if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { string_length += 2; } string_index = *utf32_string_index; if( ( string_index + string_length ) > utf32_string_length ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { if( utf32_string[ string_index ] != (uint32_t) '{' ) { goto on_error; } string_index++; } for( byte_index = 0; byte_index < 8; byte_index++ ) { internal_identifier->time.lower <<= 4; if( ( utf32_string[ string_index ] >= (uint32_t) '0' ) && ( utf32_string[ string_index ] <= (uint32_t) '9' ) ) { internal_identifier->time.lower |= utf32_string[ string_index ] - (uint32_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'a' ) && ( utf32_string[ string_index ] <= (uint32_t) 'f' ) ) { internal_identifier->time.lower |= utf32_string[ string_index ] - (uint32_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'A' ) && ( utf32_string[ string_index ] <= (uint32_t) 'F' ) ) { internal_identifier->time.lower |= utf32_string[ string_index ] - (uint32_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf32_string[ string_index ] != (uint32_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 4; byte_index++ ) { internal_identifier->time.middle <<= 4; if( ( utf32_string[ string_index ] >= (uint32_t) '0' ) && ( utf32_string[ string_index ] <= (uint32_t) '9' ) ) { internal_identifier->time.middle |= utf32_string[ string_index ] - (uint32_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'a' ) && ( utf32_string[ string_index ] <= (uint32_t) 'f' ) ) { internal_identifier->time.middle |= utf32_string[ string_index ] - (uint32_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'A' ) && ( utf32_string[ string_index ] <= (uint32_t) 'F' ) ) { internal_identifier->time.middle |= utf32_string[ string_index ] - (uint32_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf32_string[ string_index ] != (uint32_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 4; byte_index++ ) { internal_identifier->time.upper <<= 4; if( ( utf32_string[ string_index ] >= (uint32_t) '0' ) && ( utf32_string[ string_index ] <= (uint32_t) '9' ) ) { internal_identifier->time.upper |= utf32_string[ string_index ] - (uint32_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'a' ) && ( utf32_string[ string_index ] <= (uint32_t) 'f' ) ) { internal_identifier->time.upper |= utf32_string[ string_index ] - (uint32_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'A' ) && ( utf32_string[ string_index ] <= (uint32_t) 'F' ) ) { internal_identifier->time.upper |= utf32_string[ string_index ] - (uint32_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf32_string[ string_index ] != (uint32_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 2; byte_index++ ) { internal_identifier->clock_sequence.upper <<= 4; if( ( utf32_string[ string_index ] >= (uint32_t) '0' ) && ( utf32_string[ string_index ] <= (uint32_t) '9' ) ) { internal_identifier->clock_sequence.upper |= utf32_string[ string_index ] - (uint32_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'a' ) && ( utf32_string[ string_index ] <= (uint32_t) 'f' ) ) { internal_identifier->clock_sequence.upper |= utf32_string[ string_index ] - (uint32_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'A' ) && ( utf32_string[ string_index ] <= (uint32_t) 'F' ) ) { internal_identifier->clock_sequence.upper |= utf32_string[ string_index ] - (uint32_t) 'A' + 10; } else { goto on_error; } string_index++; } for( byte_index = 0; byte_index < 2; byte_index++ ) { internal_identifier->clock_sequence.lower <<= 4; if( ( utf32_string[ string_index ] >= (uint32_t) '0' ) && ( utf32_string[ string_index ] <= (uint32_t) '9' ) ) { internal_identifier->clock_sequence.lower |= utf32_string[ string_index ] - (uint32_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'a' ) && ( utf32_string[ string_index ] <= (uint32_t) 'f' ) ) { internal_identifier->clock_sequence.lower |= utf32_string[ string_index ] - (uint32_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'A' ) && ( utf32_string[ string_index ] <= (uint32_t) 'F' ) ) { internal_identifier->clock_sequence.lower |= utf32_string[ string_index ] - (uint32_t) 'A' + 10; } else { goto on_error; } string_index++; } if( utf32_string[ string_index ] != (uint32_t) '-' ) { goto on_error; } string_index++; for( byte_index = 0; byte_index < 12; byte_index++ ) { node_index = byte_index / 2; internal_identifier->node[ node_index ] <<= 4; if( ( utf32_string[ string_index ] >= (uint32_t) '0' ) && ( utf32_string[ string_index ] <= (uint32_t) '9' ) ) { internal_identifier->node[ node_index ] |= utf32_string[ string_index ] - (uint32_t) '0'; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'a' ) && ( utf32_string[ string_index ] <= (uint32_t) 'f' ) ) { internal_identifier->node[ node_index ] |= utf32_string[ string_index ] - (uint32_t) 'a' + 10; } else if( ( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) && ( utf32_string[ string_index ] >= (uint32_t) 'A' ) && ( utf32_string[ string_index ] <= (uint32_t) 'F' ) ) { internal_identifier->node[ node_index ] |= utf32_string[ string_index ] - (uint32_t) 'A' + 10; } else { goto on_error; } string_index++; } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { if( utf32_string[ string_index ] != (uint32_t) '}' ) { goto on_error; } string_index++; } *utf32_string_index = string_index; return( 1 ); on_error: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported character value: 0x%08" PRIx32 " at index: %d.", function, utf32_string[ string_index ], string_index ); return( -1 ); } /* Copies the identifier to an UTF-32 encoded string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_to_utf32_string( libfguid_identifier_t *identifier, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfguid_identifier_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfguid_identifier_copy_to_utf32_string_with_index( identifier, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy identifier to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies the identifier to an UTF-32 encoded string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfguid_identifier_copy_to_utf32_string_with_index( libfguid_identifier_t *identifier, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfguid_internal_identifier_t *internal_identifier = NULL; static char *function = "libfguid_identifier_copy_to_utf32_string_with_index"; size_t string_index = 0; size_t string_size = 0; uint32_t required_flags = 0; uint32_t supported_flags = 0; uint8_t byte_value = 0; uint8_t node_index = 0; int8_t byte_shift = 0; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } internal_identifier = (libfguid_internal_identifier_t *) identifier; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: UTF-32 string size exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 index.", function ); return( -1 ); } required_flags = LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE; if( ( string_format_flags & required_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: missing string format flags.", function ); return( -1 ); } supported_flags = required_flags | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES; if( ( string_format_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_size = 37; if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { string_size += 2; } string_index = *utf32_string_index; if( ( string_index + string_size ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) '{'; } byte_shift = 28; do { byte_value = ( internal_identifier->time.lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) 'A' + byte_value - 10; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) '-'; byte_shift = 12; do { byte_value = ( internal_identifier->time.middle >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) 'A' + byte_value - 10; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) '-'; byte_shift = 12; do { byte_value = ( internal_identifier->time.upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) 'A' + byte_value - 10; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) '-'; byte_shift = 4; do { byte_value = ( internal_identifier->clock_sequence.upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) 'A' + byte_value - 10; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); byte_shift = 4; do { byte_value = ( internal_identifier->clock_sequence.lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) 'A' + byte_value - 10; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) '-'; for( node_index = 0; node_index < 6; node_index++ ) { byte_shift = 4; do { byte_value = ( internal_identifier->node[ node_index ] >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) 'A' + byte_value - 10; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); } if( ( string_format_flags & LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES ) != 0 ) { utf32_string[ string_index++ ] = (uint32_t) '}'; } utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } libfsapfs-20190210/libfguid/libfguid_support.c0000664000175000017500000000216013430101221023317 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfguid_definitions.h" #include "libfguid_support.h" #if !defined( HAVE_LOCAL_LIBFGUID ) /* Returns the library version as a string */ const char *libfguid_get_version( void ) { return( (const char *) LIBFGUID_VERSION_STRING ); } #endif libfsapfs-20190210/libfguid/Makefile.am0000664000175000017500000000120513430101221021625 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBFGUID AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libfguid.la libfguid_la_SOURCES = \ libfguid_definitions.h \ libfguid_extern.h \ libfguid_error.c libfguid_error.h \ libfguid_libcerror.h \ libfguid_identifier.c libfguid_identifier.h \ libfguid_support.c libfguid_support.h \ libfguid_types.h \ libfguid_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfguid ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfguid_la_SOURCES) libfsapfs-20190210/libfguid/libfguid_support.h0000664000175000017500000000225213430101221023326 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFGUID_SUPPORT_H ) #define _LIBFGUID_SUPPORT_H #include #include #include "libfguid_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFGUID ) LIBFGUID_EXTERN \ const char *libfguid_get_version( void ); #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFGUID_SUPPORT_H ) */ libfsapfs-20190210/libfguid/libfguid_definitions.h0000664000175000017500000000444713430101221024135 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBFGUID_INTERNAL_DEFINITIONS_H ) #define LIBFGUID_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBFGUID for local use of libfguid */ #if !defined( HAVE_LOCAL_LIBFGUID ) #include /* The definitions in are copied here * for local use of libfguid */ #else #include #define LIBFGUID_VERSION 20180724 /* The version string */ #define LIBFGUID_VERSION_STRING "20180724" /* The byte order definitions */ #define LIBFGUID_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG #define LIBFGUID_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE /* The GUID identifier version definitions */ enum LIBFGUID_IDENTIFIER_VERSIONS { LIBFGUID_IDENTIFIER_VERSION_TIME_BASED = 1, LIBFGUID_IDENTIFIER_VERSION_DCE = 2, LIBFGUID_IDENTIFIER_VERSION_NAME_BASED = 3, LIBFGUID_IDENTIFIER_VERSION_RANDOM_BASED = 4 }; /* The string format definition flags */ enum LIBFGUID_STRING_FORMAT_FLAGS { /* Format the using lower case */ LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE = 0x00000001UL, /* Format the using upper case */ LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE = 0x00000002UL, /* Format the using mixed case */ LIBFGUID_STRING_FORMAT_FLAG_USE_MIXED_CASE = 0x00000003UL, /* Format the using surrounding braces { GUID } */ LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES = 0x00000004UL }; #endif /* !defined( HAVE_LOCAL_LIBFGUID ) */ #endif /* !defined( LIBFGUID_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libfguid/libfguid_identifier.h0000664000175000017500000001307213430101221023736 0ustar00lordyestalordyesta00000000000000/* * Global (or Universal) Unique Identifier (GUID/UUID) functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_IDENTIFIER_H ) #define _LIBFGUID_INTERNAL_IDENTIFIER_H #include #include #include "libfguid_extern.h" #include "libfguid_libcerror.h" #include "libfguid_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfguid_internal_identifier libfguid_internal_identifier_t; /* The GUID is stored as: * uint32 - uint16 - uint16 - 8 byte array */ struct libfguid_internal_identifier { /* The 4 MSB of the time upper contain the version */ struct { uint32_t lower; uint16_t middle; uint16_t upper; } time; /* The clock sequence upper also contains the reserved */ struct { uint8_t upper; uint8_t lower; } clock_sequence; uint8_t node[ 6 ]; }; LIBFGUID_EXTERN \ int libfguid_identifier_initialize( libfguid_identifier_t **identifier, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_free( libfguid_identifier_t **identifier, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_from_byte_stream( libfguid_identifier_t *identifier, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_to_byte_stream( libfguid_identifier_t *identifier, uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_get_string_size( libfguid_identifier_t *identifier, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_from_utf8_string( libfguid_identifier_t *identifier, const uint8_t *utf8_string, size_t utf8_string_length, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_from_utf8_string_with_index( libfguid_identifier_t *identifier, const uint8_t *utf8_string, size_t utf8_string_length, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_to_utf8_string( libfguid_identifier_t *identifier, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_to_utf8_string_with_index( libfguid_identifier_t *identifier, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_from_utf16_string( libfguid_identifier_t *identifier, const uint16_t *utf16_string, size_t utf16_string_length, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_from_utf16_string_with_index( libfguid_identifier_t *identifier, const uint16_t *utf16_string, size_t utf16_string_length, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_to_utf16_string( libfguid_identifier_t *identifier, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_to_utf16_string_with_index( libfguid_identifier_t *identifier, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_from_utf32_string( libfguid_identifier_t *identifier, const uint32_t *utf32_string, size_t utf32_string_length, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_from_utf32_string_with_index( libfguid_identifier_t *identifier, const uint32_t *utf32_string, size_t utf32_string_length, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_to_utf32_string( libfguid_identifier_t *identifier, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFGUID_EXTERN \ int libfguid_identifier_copy_to_utf32_string_with_index( libfguid_identifier_t *identifier, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFGUID_INTERNAL_IDENTIFIER_H ) */ libfsapfs-20190210/libfguid/libfguid_unused.h0000664000175000017500000000254613430101221023123 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_UNUSED_H ) #define _LIBFGUID_INTERNAL_UNUSED_H #include #if !defined( LIBFGUID_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBFGUID_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBFGUID_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBFGUID_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBFGUID_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBFGUID_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libfguid/libfguid_error.h0000664000175000017500000000340513430101221022744 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_ERROR_H ) #define _LIBFGUID_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBFGUID ) #include #endif #include "libfguid_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFGUID ) LIBFGUID_EXTERN \ void libfguid_error_free( libfguid_error_t **error ); LIBFGUID_EXTERN \ int libfguid_error_fprint( libfguid_error_t *error, FILE *stream ); LIBFGUID_EXTERN \ int libfguid_error_sprint( libfguid_error_t *error, char *string, size_t size ); LIBFGUID_EXTERN \ int libfguid_error_backtrace_fprint( libfguid_error_t *error, FILE *stream ); LIBFGUID_EXTERN \ int libfguid_error_backtrace_sprint( libfguid_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBFGUID ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFGUID_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libfguid/libfguid_libcerror.h0000664000175000017500000000264013430101221023576 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFGUID_LIBCERROR_H ) #define _LIBFGUID_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBFGUID_LIBCERROR_H ) */ libfsapfs-20190210/libfguid/Makefile.in0000664000175000017500000007450013430101254021654 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libfguid ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libfguid_la_LIBADD = am__libfguid_la_SOURCES_DIST = libfguid_definitions.h \ libfguid_extern.h libfguid_error.c libfguid_error.h \ libfguid_libcerror.h libfguid_identifier.c \ libfguid_identifier.h libfguid_support.c libfguid_support.h \ libfguid_types.h libfguid_unused.h @HAVE_LOCAL_LIBFGUID_TRUE@am_libfguid_la_OBJECTS = libfguid_error.lo \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_identifier.lo \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_support.lo libfguid_la_OBJECTS = $(am_libfguid_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBFGUID_TRUE@am_libfguid_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libfguid_error.Plo \ ./$(DEPDIR)/libfguid_identifier.Plo \ ./$(DEPDIR)/libfguid_support.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libfguid_la_SOURCES) DIST_SOURCES = $(am__libfguid_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBFGUID_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBFGUID_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBFGUID_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBFGUID_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBFGUID_TRUE@noinst_LTLIBRARIES = libfguid.la @HAVE_LOCAL_LIBFGUID_TRUE@libfguid_la_SOURCES = \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_definitions.h \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_extern.h \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_error.c libfguid_error.h \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_libcerror.h \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_identifier.c libfguid_identifier.h \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_support.c libfguid_support.h \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_types.h \ @HAVE_LOCAL_LIBFGUID_TRUE@ libfguid_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfguid/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libfguid/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libfguid.la: $(libfguid_la_OBJECTS) $(libfguid_la_DEPENDENCIES) $(EXTRA_libfguid_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libfguid_la_rpath) $(libfguid_la_OBJECTS) $(libfguid_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfguid_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfguid_identifier.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfguid_support.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfguid_error.Plo -rm -f ./$(DEPDIR)/libfguid_identifier.Plo -rm -f ./$(DEPDIR)/libfguid_support.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfguid ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfguid_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libfguid/libfguid_error.c0000664000175000017500000000554013430101221022741 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfguid_error.h" #include "libfguid_libcerror.h" #if !defined( HAVE_LOCAL_LIBFGUID ) /* Free an error and its elements */ void libfguid_error_free( libfguid_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfguid_error_fprint( libfguid_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfguid_error_sprint( libfguid_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfguid_error_backtrace_fprint( libfguid_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfguid_error_backtrace_sprint( libfguid_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBFGUID ) */ libfsapfs-20190210/libfguid/libfguid_types.h0000664000175000017500000000275513430101221022766 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_TYPES_H ) #define _LIBFGUID_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBFGUID for local use of libfguid * The definitions in are copied here * for local use of libfguid */ #if defined( HAVE_LOCAL_LIBFGUID ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libfguid_identifier {} libfguid_identifier_t; #else typedef intptr_t libfguid_identifier_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBFGUID ) */ #endif /* !defined( _LIBFGUID_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libfguid/libfguid_extern.h0000664000175000017500000000270013430101221023115 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_EXTERN_H ) #define _LIBFGUID_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBFGUID for local use of libfguid */ #if !defined( HAVE_LOCAL_LIBFGUID ) /* If libtool DLL support is enabled set LIBFGUID_DLL_EXPORT * before including libfguid/extern.h */ #if defined( _WIN32 ) && defined( DLL_EXPORT ) #define LIBFGUID_DLL_EXPORT #endif #include #define LIBFGUID_EXTERN_VARIABLE LIBFGUID_EXTERN #else #define LIBFGUID_EXTERN /* extern */ #define LIBFGUID_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBFGUID ) */ #endif /* !defined( _LIBFGUID_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/tests/0000775000175000017500000000000013430101371017156 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/tests/fsapfs_test_libclocale.h0000664000175000017500000000267613426637447024063 0ustar00lordyestalordyesta00000000000000/* * The libclocale header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_LIBCLOCALE_H ) #define _FSAPFS_TEST_LIBCLOCALE_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if defined( HAVE_LOCAL_LIBCLOCALE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT * before including libclocale.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCLOCALE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _FSAPFS_TEST_LIBCLOCALE_H ) */ libfsapfs-20190210/tests/fsapfs_test_data_block.c0000664000175000017500000000515113426640002024014 0ustar00lordyestalordyesta00000000000000/* * Library data_block type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_data_block.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_data_block_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_data_block_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_data_block_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* TODO add tests for libfsapfs_data_block_initialize */ FSAPFS_TEST_RUN( "libfsapfs_data_block_free", fsapfs_test_data_block_free ); /* TODO add tests for libfsapfs_data_block_read */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_libfdata.h0000664000175000017500000000315313426637447023527 0ustar00lordyestalordyesta00000000000000/* * The libfdata header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_LIBFDATA_H ) #define _FSAPFS_TEST_LIBFDATA_H #include /* Define HAVE_LOCAL_LIBFDATA for local use of libfdata */ #if defined( HAVE_LOCAL_LIBFDATA ) #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBFDATA_DLL_IMPORT * before including libfdata.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBFDATA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFDATA ) */ #endif /* !defined( _FSAPFS_TEST_LIBFDATA_H ) */ libfsapfs-20190210/tests/fsapfs_test_checkpoint_map_entry.c0000664000175000017500000002326713426637447026171 0ustar00lordyestalordyesta00000000000000/* * Library checkpoint_map_entry type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_checkpoint_map_entry.h" uint8_t fsapfs_test_checkpoint_map_entry_data1[ 40 ] = { 0x05, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_checkpoint_map_entry_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_checkpoint_map_entry_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_checkpoint_map_entry_t *checkpoint_map_entry = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_checkpoint_map_entry_initialize( &checkpoint_map_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "checkpoint_map_entry", checkpoint_map_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_checkpoint_map_entry_free( &checkpoint_map_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map_entry", checkpoint_map_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_checkpoint_map_entry_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); checkpoint_map_entry = (libfsapfs_checkpoint_map_entry_t *) 0x12345678UL; result = libfsapfs_checkpoint_map_entry_initialize( &checkpoint_map_entry, &error ); checkpoint_map_entry = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_checkpoint_map_entry_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_checkpoint_map_entry_initialize( &checkpoint_map_entry, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( checkpoint_map_entry != NULL ) { libfsapfs_checkpoint_map_entry_free( &checkpoint_map_entry, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map_entry", checkpoint_map_entry ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_checkpoint_map_entry_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_checkpoint_map_entry_initialize( &checkpoint_map_entry, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( checkpoint_map_entry != NULL ) { libfsapfs_checkpoint_map_entry_free( &checkpoint_map_entry, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map_entry", checkpoint_map_entry ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( checkpoint_map_entry != NULL ) { libfsapfs_checkpoint_map_entry_free( &checkpoint_map_entry, NULL ); } return( 0 ); } /* Tests the libfsapfs_checkpoint_map_entry_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_checkpoint_map_entry_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_checkpoint_map_entry_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_checkpoint_map_entry_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_checkpoint_map_entry_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_checkpoint_map_entry_t *checkpoint_map_entry = NULL; int result = 0; /* Initialize test */ result = libfsapfs_checkpoint_map_entry_initialize( &checkpoint_map_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "checkpoint_map_entry", checkpoint_map_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_checkpoint_map_entry_read_data( checkpoint_map_entry, fsapfs_test_checkpoint_map_entry_data1, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_checkpoint_map_entry_read_data( NULL, fsapfs_test_checkpoint_map_entry_data1, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_entry_read_data( checkpoint_map_entry, NULL, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_entry_read_data( checkpoint_map_entry, fsapfs_test_checkpoint_map_entry_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_entry_read_data( checkpoint_map_entry, fsapfs_test_checkpoint_map_entry_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_checkpoint_map_entry_free( &checkpoint_map_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map_entry", checkpoint_map_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( checkpoint_map_entry != NULL ) { libfsapfs_checkpoint_map_entry_free( &checkpoint_map_entry, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_checkpoint_map_entry_initialize", fsapfs_test_checkpoint_map_entry_initialize ); FSAPFS_TEST_RUN( "libfsapfs_checkpoint_map_entry_free", fsapfs_test_checkpoint_map_entry_free ); FSAPFS_TEST_RUN( "libfsapfs_checkpoint_map_entry_read_data", fsapfs_test_checkpoint_map_entry_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_unused.h0000664000175000017500000000302413426637450023253 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_UNUSED_H ) #define _FSAPFS_TEST_UNUSED_H #include #if !defined( FSAPFS_TEST_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define FSAPFS_TEST_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define FSAPFS_TEST_ATTRIBUTE_UNUSED #endif /* defined( __GNUC__ ) && __GNUC__ >= 3 */ #endif /* !defined( FSAPFS_TEST_ATTRIBUTE_UNUSED ) */ #if defined( _MSC_VER ) #define FSAPFS_TEST_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define FSAPFS_TEST_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif /* defined( _MSC_VER ) */ #endif /* !defined( _FSAPFS_TEST_UNUSED_H ) */ libfsapfs-20190210/tests/fsapfs_test_inode.c0000664000175000017500000003011213426640002023022 0ustar00lordyestalordyesta00000000000000/* * Library inode type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_inode.h" uint8_t fsapfs_test_inode_key_data1[ 8 ] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30 }; uint8_t fsapfs_test_inode_value_data1[ 160 ] = { 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x35, 0xa8, 0x88, 0x4a, 0x54, 0x55, 0x52, 0x15, 0x40, 0x3f, 0x48, 0xfd, 0x55, 0x55, 0x52, 0x15, 0x6f, 0x74, 0x48, 0xfd, 0x55, 0x55, 0x52, 0x15, 0x40, 0x3f, 0x48, 0xfd, 0x55, 0x55, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x38, 0x00, 0x04, 0x02, 0x0f, 0x00, 0x08, 0x20, 0x28, 0x00, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x2d, 0x75, 0x75, 0x69, 0x64, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_inode_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_inode_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_inode_t *inode = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_inode_initialize( &inode, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_inode_free( &inode, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_inode_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); inode = (libfsapfs_inode_t *) 0x12345678UL; result = libfsapfs_inode_initialize( &inode, &error ); inode = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_inode_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_inode_initialize( &inode, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_inode_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_inode_initialize( &inode, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } return( 0 ); } /* Tests the libfsapfs_inode_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_inode_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_inode_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_inode_read_key_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_inode_read_key_data( void ) { libcerror_error_t *error = NULL; libfsapfs_inode_t *inode = NULL; int result = 0; /* Initialize test */ result = libfsapfs_inode_initialize( &inode, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_inode_read_key_data( inode, fsapfs_test_inode_key_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_inode_read_key_data( NULL, fsapfs_test_inode_key_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_inode_read_key_data( inode, NULL, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_inode_read_key_data( inode, fsapfs_test_inode_key_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_inode_read_key_data( inode, fsapfs_test_inode_key_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_inode_free( &inode, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } return( 0 ); } /* Tests the libfsapfs_inode_read_value_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_inode_read_value_data( void ) { libcerror_error_t *error = NULL; libfsapfs_inode_t *inode = NULL; int result = 0; /* Initialize test */ result = libfsapfs_inode_initialize( &inode, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_inode_read_value_data( inode, fsapfs_test_inode_value_data1, 160, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_inode_read_value_data( NULL, fsapfs_test_inode_value_data1, 160, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_inode_read_value_data( inode, NULL, 160, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_inode_read_value_data( inode, fsapfs_test_inode_value_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_inode_read_value_data( inode, fsapfs_test_inode_value_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_inode_free( &inode, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "inode", inode ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_inode_initialize", fsapfs_test_inode_initialize ); FSAPFS_TEST_RUN( "libfsapfs_inode_free", fsapfs_test_inode_free ); FSAPFS_TEST_RUN( "libfsapfs_inode_read_key_data", fsapfs_test_inode_read_key_data ); FSAPFS_TEST_RUN( "libfsapfs_inode_read_value_data", fsapfs_test_inode_read_value_data ); /* TODO add tests for libfsapfs_inode_get_identifier */ /* TODO add tests for libfsapfs_inode_get_data_stream_identifier */ /* TODO add tests for libfsapfs_inode_get_utf8_name_size */ /* TODO add tests for libfsapfs_inode_get_utf8_name */ /* TODO add tests for libfsapfs_inode_get_utf16_name_size */ /* TODO add tests for libfsapfs_inode_get_utf16_name */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/test_library.sh0000775000175000017500000001034613426640100022227 0ustar00lordyestalordyesta00000000000000#!/bin/bash # Tests C library functions and types. # # Version: 20190101 EXIT_SUCCESS=0; EXIT_FAILURE=1; EXIT_IGNORE=77; LIBRARY_TESTS="btree_entry btree_footer btree_node btree_node_header buffer_data_handle checkpoint_map checkpoint_map_entry checksum chunk_information_block container_data_handle container_key_bag container_reaper container_superblock compressed_data_handle compression data_block directory_record encryption_context error file_extent file_system_btree inode io_handle key_bag_entry key_bag_header key_encrypted_key name name_hash notify object object_map object_map_btree object_map_descriptor space_manager volume_key_bag"; LIBRARY_TESTS_WITH_INPUT="container support"; OPTION_SETS="offset password"; INPUT_GLOB="*"; run_test() { local TEST_NAME=$1; local TEST_DESCRIPTION="Testing: ${TEST_NAME}"; local TEST_EXECUTABLE="./fsapfs_test_${TEST_NAME}"; if ! test -x "${TEST_EXECUTABLE}"; then TEST_EXECUTABLE="${TEST_EXECUTABLE}.exe"; fi # TODO: add support for TEST_PROFILE and OPTION_SETS? run_test_with_arguments "${TEST_DESCRIPTION}" "${TEST_EXECUTABLE}"; local RESULT=$?; return ${RESULT}; } run_test_with_input() { local TEST_NAME=$1; local TEST_DESCRIPTION="Testing: ${TEST_NAME}"; local TEST_EXECUTABLE="./fsapfs_test_${TEST_NAME}"; if ! test -x "${TEST_EXECUTABLE}"; then TEST_EXECUTABLE="${TEST_EXECUTABLE}.exe"; fi if ! test -d "input"; then echo "Test input directory: input not found."; return ${EXIT_IGNORE}; fi local RESULT=`ls input/* | tr ' ' '\n' | wc -l`; if test ${RESULT} -eq ${EXIT_SUCCESS}; then echo "No files or directories found in the test input directory: input"; return ${EXIT_IGNORE}; fi local TEST_PROFILE_DIRECTORY=$(get_test_profile_directory "input" "libfsapfs"); local IGNORE_LIST=$(read_ignore_list "${TEST_PROFILE_DIRECTORY}"); RESULT=${EXIT_SUCCESS}; for TEST_SET_INPUT_DIRECTORY in input/*; do if ! test -d "${TEST_SET_INPUT_DIRECTORY}"; then continue; fi if check_for_directory_in_ignore_list "${TEST_SET_INPUT_DIRECTORY}" "${IGNORE_LIST}"; then continue; fi local TEST_SET_DIRECTORY=$(get_test_set_directory "${TEST_PROFILE_DIRECTORY}" "${TEST_SET_INPUT_DIRECTORY}"); local OLDIFS=${IFS}; # IFS="\n" is not supported by all platforms. IFS=" "; if test -f "${TEST_SET_DIRECTORY}/files"; then for INPUT_FILE in `cat ${TEST_SET_DIRECTORY}/files | sed "s?^?${TEST_SET_INPUT_DIRECTORY}/?"`; do if test "${OSTYPE}" = "msys"; then # A test executable built with MinGW expects a Windows path. INPUT_FILE=`echo ${INPUT_FILE} | sed 's?/?\\\\?g'`; fi run_test_on_input_file_with_options "${TEST_SET_DIRECTORY}" "${TEST_DESCRIPTION}" "default" "${OPTION_SETS}" "${TEST_EXECUTABLE}" "${INPUT_FILE}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done else for INPUT_FILE in `ls -1d ${TEST_SET_INPUT_DIRECTORY}/${INPUT_GLOB}`; do if test "${OSTYPE}" = "msys"; then # A test executable built with MinGW expects a Windows path. INPUT_FILE=`echo ${INPUT_FILE} | sed 's?/?\\\\?g'`; fi run_test_on_input_file_with_options "${TEST_SET_DIRECTORY}" "${TEST_DESCRIPTION}" "default" "${OPTION_SETS}" "${TEST_EXECUTABLE}" "${INPUT_FILE}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done fi IFS=${OLDIFS}; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done return ${RESULT}; } if ! test -z ${SKIP_LIBRARY_TESTS}; then exit ${EXIT_IGNORE}; fi TEST_RUNNER="tests/test_runner.sh"; if ! test -f "${TEST_RUNNER}"; then TEST_RUNNER="./test_runner.sh"; fi if ! test -f "${TEST_RUNNER}"; then echo "Missing test runner: ${TEST_RUNNER}"; exit ${EXIT_FAILURE}; fi source ${TEST_RUNNER}; RESULT=${EXIT_IGNORE}; for TEST_NAME in ${LIBRARY_TESTS}; do run_test "${TEST_NAME}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done if test ${RESULT} -ne ${EXIT_SUCCESS} && test ${RESULT} -ne ${EXIT_IGNORE}; then exit ${RESULT}; fi for TEST_NAME in ${LIBRARY_TESTS_WITH_INPUT}; do if test -d "input"; then run_test_with_input "${TEST_NAME}"; RESULT=$?; else run_test "${TEST_NAME}"; RESULT=$?; fi if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done exit ${RESULT}; libfsapfs-20190210/tests/fsapfs_test_libcnotify.h0000664000175000017500000000267313426637447024131 0ustar00lordyestalordyesta00000000000000/* * The libcnotify header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_LIBCNOTIFY_H ) #define _FSAPFS_TEST_LIBCNOTIFY_H #include /* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify */ #if defined( HAVE_LOCAL_LIBCNOTIFY ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT * before including libcnotify.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCNOTIFY_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */ #endif /* !defined( _FSAPFS_TEST_LIBCNOTIFY_H ) */ libfsapfs-20190210/tests/fsapfs_test_rwlock.h0000664000175000017500000000326413426637450023257 0ustar00lordyestalordyesta00000000000000/* * Read/Write lock functions for testing * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_RWLOCK_H ) #define _FSAPFS_TEST_RWLOCK_H #include #include "fsapfs_test_libfsapfs.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( LIBFSAPFS_HAVE_MULTI_THREAD_SUPPORT ) && defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) && !defined( __clang__ ) && !defined( __CYGWIN__ ) #define HAVE_FSAPFS_TEST_RWLOCK 1 #endif #if defined( HAVE_FSAPFS_TEST_RWLOCK ) extern int fsapfs_test_pthread_rwlock_init_attempts_before_fail; extern int fsapfs_test_pthread_rwlock_destroy_attempts_before_fail; extern int fsapfs_test_pthread_rwlock_rdlock_attempts_before_fail; extern int fsapfs_test_pthread_rwlock_wrlock_attempts_before_fail; extern int fsapfs_test_pthread_rwlock_unlock_attempts_before_fail; #endif /* defined( HAVE_FSAPFS_TEST_RWLOCK ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_TEST_RWLOCK_H ) */ libfsapfs-20190210/tests/fsapfs_test_error.c0000664000175000017500000000622013426637447023103 0ustar00lordyestalordyesta00000000000000/* * Library error functions test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_unused.h" /* Tests the libfsapfs_error_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_error_free( void ) { /* Test invocation of function only */ libfsapfs_error_free( NULL ); return( 1 ); } /* Tests the libfsapfs_error_fprint function * Returns 1 if successful or 0 if not */ int fsapfs_test_error_fprint( void ) { /* Test invocation of function only */ libfsapfs_error_fprint( NULL, NULL ); return( 1 ); } /* Tests the libfsapfs_error_sprint function * Returns 1 if successful or 0 if not */ int fsapfs_test_error_sprint( void ) { /* Test invocation of function only */ libfsapfs_error_sprint( NULL, NULL, 0 ); return( 1 ); } /* Tests the libfsapfs_error_backtrace_fprint function * Returns 1 if successful or 0 if not */ int fsapfs_test_error_backtrace_fprint( void ) { /* Test invocation of function only */ libfsapfs_error_backtrace_fprint( NULL, NULL ); return( 1 ); } /* Tests the libfsapfs_error_backtrace_sprint function * Returns 1 if successful or 0 if not */ int fsapfs_test_error_backtrace_sprint( void ) { /* Test invocation of function only */ libfsapfs_error_backtrace_sprint( NULL, NULL, 0 ); return( 1 ); } /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) FSAPFS_TEST_RUN( "libfsapfs_error_free", fsapfs_test_error_free ); FSAPFS_TEST_RUN( "libfsapfs_error_fprint", fsapfs_test_error_fprint ); FSAPFS_TEST_RUN( "libfsapfs_error_sprint", fsapfs_test_error_sprint ); FSAPFS_TEST_RUN( "libfsapfs_error_backtrace_fprint", fsapfs_test_error_backtrace_fprint ); FSAPFS_TEST_RUN( "libfsapfs_error_backtrace_sprint", fsapfs_test_error_backtrace_sprint ); return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_functions.c0000664000175000017500000003657613426637447024003 0ustar00lordyestalordyesta00000000000000/* * Functions for testing * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libbfio.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libclocale.h" #include "fsapfs_test_libuna.h" /* Retrieves source as a narrow string * Returns 1 if successful or -1 on error */ int fsapfs_test_get_narrow_source( const system_character_t *source, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ) { static char *function = "fsapfs_test_get_narrow_source"; size_t narrow_source_size = 0; size_t source_length = 0; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif if( source == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid source.", function ); return( -1 ); } if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } source_length = system_string_length( source ); if( source_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid source length value out of bounds.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) source, source_length + 1, &narrow_source_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) source, source_length + 1, &narrow_source_size, error ); #endif } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) source, source_length + 1, libclocale_codepage, &narrow_source_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) source, source_length + 1, libclocale_codepage, &narrow_source_size, error ); #endif } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow string size.", function ); return( -1 ); } #else narrow_source_size = source_length + 1; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ if( narrow_string_size < narrow_source_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: narrow string too small.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf32_character_t *) source, source_length + 1, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf16_character_t *) source, source_length + 1, error ); #endif } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf32_character_t *) source, source_length + 1, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf16_character_t *) source, source_length + 1, error ); #endif } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set narrow string.", function ); return( -1 ); } #else if( system_string_copy( narrow_string, source, source_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set narrow string.", function ); return( -1 ); } narrow_string[ source_length ] = 0; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Retrieves source as a wide string * Returns 1 if successful or -1 on error */ int fsapfs_test_get_wide_source( const system_character_t *source, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ) { static char *function = "fsapfs_test_get_wide_source"; size_t wide_source_size = 0; size_t source_length = 0; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif if( source == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid source.", function ); return( -1 ); } if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } source_length = system_string_length( source ); if( source_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid source length value out of bounds.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) wide_source_size = source_length + 1; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_utf8( (libuna_utf8_character_t *) source, source_length + 1, &wide_source_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_utf8( (libuna_utf8_character_t *) source, source_length + 1, &wide_source_size, error ); #endif } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_byte_stream( (uint8_t *) source, source_length + 1, libclocale_codepage, &wide_source_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_byte_stream( (uint8_t *) source, source_length + 1, libclocale_codepage, &wide_source_size, error ); #endif } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide string size.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ if( wide_string_size < wide_source_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: wide string too small.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string_copy( wide_string, source, source_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set wide string.", function ); return( -1 ); } wide_string[ source_length ] = 0; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_utf8( (libuna_utf32_character_t *) wide_string, wide_string_size, (uint8_t *) source, source_length + 1, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_utf8( (libuna_utf16_character_t *) wide_string, wide_string_size, (uint8_t *) source, source_length + 1, error ); #endif } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_byte_stream( (libuna_utf32_character_t *) wide_string, wide_string_size, (uint8_t *) source, source_length + 1, libclocale_codepage, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_byte_stream( (libuna_utf16_character_t *) wide_string, wide_string_size, (uint8_t *) source, source_length + 1, libclocale_codepage, error ); #endif } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set wide string.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Copies a string of a decimal value to a 64-bit value * Returns 1 if successful or -1 on error */ int fsapfs_test_system_string_copy_from_64_bit_in_decimal( const system_character_t *string, size_t string_size, uint64_t *value_64bit, libcerror_error_t **error ) { static char *function = "fsapfs_test_system_string_copy_from_64_bit_in_decimal"; size_t string_index = 0; system_character_t character_value = 0; uint8_t maximum_string_index = 20; int8_t sign = 1; if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string size value exceeds maximum.", function ); return( -1 ); } if( value_64bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value 64-bit.", function ); return( -1 ); } *value_64bit = 0; if( string[ string_index ] == (system_character_t) '-' ) { string_index++; maximum_string_index++; sign = -1; } else if( string[ string_index ] == (system_character_t) '+' ) { string_index++; maximum_string_index++; } while( string_index < string_size ) { if( string[ string_index ] == 0 ) { break; } if( string_index > (size_t) maximum_string_index ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_LARGE, "%s: string too large.", function ); return( -1 ); } *value_64bit *= 10; if( ( string[ string_index ] >= (system_character_t) '0' ) && ( string[ string_index ] <= (system_character_t) '9' ) ) { character_value = (system_character_t) ( string[ string_index ] - (system_character_t) '0' ); } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported character value: %" PRIc_SYSTEM " at index: %d.", function, string[ string_index ], string_index ); return( -1 ); } *value_64bit += character_value; string_index++; } if( sign == -1 ) { *value_64bit *= (uint64_t) -1; } return( 1 ); } /* Creates a file IO handle for test data * Returns 1 if successful or -1 on error */ int fsapfs_test_open_file_io_handle( libbfio_handle_t **file_io_handle, uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "fsapfs_test_open_file_io_handle"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libbfio_memory_range_initialize( file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } if( libbfio_memory_range_set( *file_io_handle, data, data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set memory range of file IO handle.", function ); goto on_error; } if( libbfio_handle_open( *file_io_handle, LIBBFIO_OPEN_READ, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file IO handle.", function ); goto on_error; } return( 1 ); on_error: if( *file_io_handle != NULL ) { libbfio_handle_free( file_io_handle, NULL ); } return( -1 ); } /* Closes a file IO handle for test data * Returns 0 if successful or -1 on error */ int fsapfs_test_close_file_io_handle( libbfio_handle_t **file_io_handle, libcerror_error_t **error ) { static char *function = "fsapfs_test_close_file_io_handle"; int result = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libbfio_handle_close( *file_io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close file IO handle.", function ); result = -1; } if( libbfio_handle_free( file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file IO handle.", function ); result = -1; } return( result ); } libfsapfs-20190210/tests/fsapfs_test_memory.h0000664000175000017500000000317713426637447023277 0ustar00lordyestalordyesta00000000000000/* * Memory allocation functions for testing * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_MEMORY_H ) #define _FSAPFS_TEST_MEMORY_H #include #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) && !defined( __arm__ ) && !defined( __clang__ ) && !defined( __CYGWIN__ ) && !defined( __hppa__ ) && !defined( __mips__ ) && !defined( __sparc__ ) && !defined( HAVE_ASAN ) #define HAVE_FSAPFS_TEST_MEMORY 1 #endif #if defined( HAVE_FSAPFS_TEST_MEMORY ) extern int fsapfs_test_malloc_attempts_before_fail; extern int fsapfs_test_memcpy_attempts_before_fail; extern int fsapfs_test_memset_attempts_before_fail; extern int fsapfs_test_realloc_attempts_before_fail; #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_TEST_MEMORY_H ) */ libfsapfs-20190210/tests/fsapfs_test_object_map_btree.c0000664000175000017500000007623713426640002025232 0ustar00lordyestalordyesta00000000000000/* * Library object_map_btree type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_object_map_btree.h" uint8_t fsapfs_test_object_map_btree_data1[ 4096 ] = { 0xa7, 0xc1, 0x94, 0x52, 0xbe, 0x2d, 0xc9, 0x5d, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x40, 0x0b, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xe0, 0x0d, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_object_map_btree_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_btree_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_object_map_btree_t *object_map_btree = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_object_map_btree_initialize( &object_map_btree, NULL, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object_map_btree", object_map_btree ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_object_map_btree_free( &object_map_btree, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_btree", object_map_btree ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_map_btree_initialize( NULL, NULL, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); object_map_btree = (libfsapfs_object_map_btree_t *) 0x12345678UL; result = libfsapfs_object_map_btree_initialize( &object_map_btree, NULL, NULL, 0, &error ); object_map_btree = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_object_map_btree_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_object_map_btree_initialize( &object_map_btree, NULL, NULL, 0, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( object_map_btree != NULL ) { libfsapfs_object_map_btree_free( &object_map_btree, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_btree", object_map_btree ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_object_map_btree_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_object_map_btree_initialize( &object_map_btree, NULL, NULL, 0, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( object_map_btree != NULL ) { libfsapfs_object_map_btree_free( &object_map_btree, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_btree", object_map_btree ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object_map_btree != NULL ) { libfsapfs_object_map_btree_free( &object_map_btree, NULL ); } return( 0 ); } /* Tests the libfsapfs_object_map_btree_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_btree_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_object_map_btree_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_object_map_btree_initialize", fsapfs_test_object_map_btree_initialize ); FSAPFS_TEST_RUN( "libfsapfs_object_map_btree_free", fsapfs_test_object_map_btree_free ); /* TODO add tests for libfsapfs_object_map_btree_get_root_node */ /* TODO add tests for libfsapfs_object_map_btree_get_sub_node */ /* TODO add tests for libfsapfs_object_map_btree_get_entry_from_node_by_identifier */ /* TODO add tests for libfsapfs_object_map_btree_get_descriptor_by_object_identifier */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_libfsapfs.h0000664000175000017500000000173713426637447023740 0ustar00lordyestalordyesta00000000000000/* * The libfsapfs header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_LIBFSAPFS_H ) #define _FSAPFS_TEST_LIBFSAPFS_H #include #include #endif /* !defined( _FSAPFS_TEST_LIBFSAPFS_H ) */ libfsapfs-20190210/tests/test_python_module.sh0000775000175000017500000000656513426637450023477 0ustar00lordyestalordyesta00000000000000#!/bin/bash # Tests Python module functions and types. # # Version: 20190101 EXIT_SUCCESS=0; EXIT_FAILURE=1; EXIT_IGNORE=77; TEST_FUNCTIONS="support"; TEST_FUNCTIONS_WITH_INPUT=""; OPTION_SETS="offset password"; TEST_TOOL_DIRECTORY="."; INPUT_GLOB="*"; test_python_function() { local TEST_FUNCTION=$1; local TEST_DESCRIPTION="Testing Python-bindings functions: ${TEST_FUNCTION}"; local TEST_SCRIPT="${TEST_TOOL_DIRECTORY}/pyfsapfs_test_${TEST_FUNCTION}.py"; run_test_with_arguments "${TEST_DESCRIPTION}" "${TEST_SCRIPT}"; local RESULT=$?; return ${RESULT}; } test_python_function_with_input() { local TEST_FUNCTION=$1; local TEST_DESCRIPTION="Testing Python-bindings functions: ${TEST_FUNCTION}"; local TEST_SCRIPT="${TEST_TOOL_DIRECTORY}/pyfsapfs_test_${TEST_FUNCTION}.py"; if ! test -d "input"; then echo "Test input directory: input not found."; return ${EXIT_IGNORE}; fi local RESULT=`ls input/* | tr ' ' '\n' | wc -l`; if test ${RESULT} -eq ${EXIT_SUCCESS}; then echo "No files or directories found in the test input directory: input"; return ${EXIT_IGNORE}; fi local TEST_PROFILE_DIRECTORY=$(get_test_profile_directory "input" "pyfsapfs"); local IGNORE_LIST=$(read_ignore_list "${TEST_PROFILE_DIRECTORY}"); RESULT=${EXIT_SUCCESS}; for TEST_SET_INPUT_DIRECTORY in input/*; do if ! test -d "${TEST_SET_INPUT_DIRECTORY}"; then continue; fi if check_for_directory_in_ignore_list "${TEST_SET_INPUT_DIRECTORY}" "${IGNORE_LIST}"; then continue; fi local TEST_SET_DIRECTORY=$(get_test_set_directory "${TEST_PROFILE_DIRECTORY}" "${TEST_SET_INPUT_DIRECTORY}"); local OLDIFS=${IFS}; # IFS="\n"; is not supported by all platforms. IFS=" "; if test -f "${TEST_SET_DIRECTORY}/files"; then for INPUT_FILE in `cat ${TEST_SET_DIRECTORY}/files | sed "s?^?${TEST_SET_INPUT_DIRECTORY}/?"`; do run_test_on_input_file_with_options "${TEST_SET_DIRECTORY}" "${TEST_DESCRIPTION}" "default" "${OPTION_SETS}" "${TEST_SCRIPT}" "${INPUT_FILE}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done else for INPUT_FILE in `ls -1d ${TEST_SET_INPUT_DIRECTORY}/${INPUT_GLOB}`; do run_test_on_input_file_with_options "${TEST_SET_DIRECTORY}" "${TEST_DESCRIPTION}" "default" "${OPTION_SETS}" "${TEST_SCRIPT}" "${INPUT_FILE}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done fi IFS=${OLDIFS}; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done return ${RESULT}; } if ! test -z ${SKIP_PYTHON_TESTS}; then exit ${EXIT_IGNORE}; fi TEST_RUNNER="tests/test_runner.sh"; if ! test -f "${TEST_RUNNER}"; then TEST_RUNNER="./test_runner.sh"; fi if ! test -f "${TEST_RUNNER}"; then echo "Missing test runner: ${TEST_RUNNER}"; exit ${EXIT_FAILURE}; fi source ${TEST_RUNNER}; RESULT=${EXIT_IGNORE}; for TEST_FUNCTION in ${TEST_FUNCTIONS}; do test_python_function "${TEST_FUNCTION}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done if test ${RESULT} -ne ${EXIT_SUCCESS} && test ${RESULT} -ne ${EXIT_IGNORE}; then exit ${RESULT}; fi for TEST_FUNCTION in ${TEST_FUNCTIONS_WITH_INPUT}; do if test -d "input"; then test_python_function_with_input "${TEST_FUNCTION}"; RESULT=$?; else test_python_function "${TEST_FUNCTION}"; RESULT=$?; fi if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done exit ${RESULT}; libfsapfs-20190210/tests/fsapfs_test_volume_key_bag.c0000664000175000017500000001460113426640002024721 0ustar00lordyestalordyesta00000000000000/* * Library volume_key_bag type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_volume_key_bag.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_volume_key_bag_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_key_bag_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_volume_key_bag_t *volume_key_bag = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_volume_key_bag_initialize( &volume_key_bag, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume_key_bag", volume_key_bag ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_key_bag_free( &volume_key_bag, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_key_bag", volume_key_bag ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_volume_key_bag_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); volume_key_bag = (libfsapfs_volume_key_bag_t *) 0x12345678UL; result = libfsapfs_volume_key_bag_initialize( &volume_key_bag, &error ); volume_key_bag = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_volume_key_bag_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_volume_key_bag_initialize( &volume_key_bag, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( volume_key_bag != NULL ) { libfsapfs_volume_key_bag_free( &volume_key_bag, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_key_bag", volume_key_bag ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_volume_key_bag_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_volume_key_bag_initialize( &volume_key_bag, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( volume_key_bag != NULL ) { libfsapfs_volume_key_bag_free( &volume_key_bag, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_key_bag", volume_key_bag ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume_key_bag != NULL ) { libfsapfs_volume_key_bag_free( &volume_key_bag, NULL ); } return( 0 ); } /* Tests the libfsapfs_volume_key_bag_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_key_bag_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_volume_key_bag_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_volume_key_bag_initialize", fsapfs_test_volume_key_bag_initialize ); FSAPFS_TEST_RUN( "libfsapfs_volume_key_bag_free", fsapfs_test_volume_key_bag_free ); /* TODO: add tests for libfsapfs_volume_key_bag_read_file_io_handle */ /* TODO: add tests for libfsapfs_volume_key_bag_read_data */ /* TODO: add tests for libfsapfs_volume_key_bag_get_volume_key_by_identifier */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/Makefile.am0000664000175000017500000004315613426640002021227 0ustar00lordyestalordyesta00000000000000AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFCACHE_CPPFLAGS@ \ @LIBFDATA_CPPFLAGS@ \ @LIBFDATETIME_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBCRYPTO_CPPFLAGS@ \ @LIBHMAC_CPPFLAGS@ \ @LIBCAES_CPPFLAGS@ \ @ZLIB_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ \ @LIBFSAPFS_DLL_IMPORT@ if HAVE_PYTHON_TESTS TESTS_PYFSAPFS = \ test_python_module.sh endif TESTS = \ test_library.sh \ test_fsapfsinfo.sh \ $(TESTS_PYFSAPFS) check_SCRIPTS = \ pyfsapfs_test_support.py \ test_fsapfsinfo.sh \ test_library.sh \ test_python_module.sh \ test_runner.sh EXTRA_DIST = \ $(check_SCRIPTS) check_PROGRAMS = \ fsapfs_test_btree_entry \ fsapfs_test_btree_footer \ fsapfs_test_btree_node \ fsapfs_test_btree_node_header \ fsapfs_test_buffer_data_handle \ fsapfs_test_checkpoint_map \ fsapfs_test_checkpoint_map_entry \ fsapfs_test_checksum \ fsapfs_test_chunk_information_block \ fsapfs_test_compressed_data_handle \ fsapfs_test_compression \ fsapfs_test_container \ fsapfs_test_container_data_handle \ fsapfs_test_container_key_bag \ fsapfs_test_container_reaper \ fsapfs_test_container_superblock \ fsapfs_test_data_block \ fsapfs_test_directory_record \ fsapfs_test_encryption_context \ fsapfs_test_error \ fsapfs_test_file_extent \ fsapfs_test_file_system_btree \ fsapfs_test_inode \ fsapfs_test_io_handle \ fsapfs_test_key_bag_entry \ fsapfs_test_key_bag_header \ fsapfs_test_key_encrypted_key \ fsapfs_test_name \ fsapfs_test_name_hash \ fsapfs_test_notify \ fsapfs_test_object \ fsapfs_test_object_map \ fsapfs_test_object_map_btree \ fsapfs_test_object_map_descriptor \ fsapfs_test_space_manager \ fsapfs_test_support \ fsapfs_test_volume \ fsapfs_test_volume_key_bag \ fsapfs_test_volume_superblock fsapfs_test_btree_entry_SOURCES = \ fsapfs_test_btree_entry.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_entry_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_btree_footer_SOURCES = \ fsapfs_test_btree_footer.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_footer_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_btree_node_SOURCES = \ fsapfs_test_btree_node.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_node_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_btree_node_header_SOURCES = \ fsapfs_test_btree_node_header.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_node_header_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_buffer_data_handle_SOURCES = \ fsapfs_test_buffer_data_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_buffer_data_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_checkpoint_map_SOURCES = \ fsapfs_test_checkpoint_map.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_checkpoint_map_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_checkpoint_map_entry_SOURCES = \ fsapfs_test_checkpoint_map_entry.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_checkpoint_map_entry_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_checksum_SOURCES = \ fsapfs_test_checksum.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_checksum_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_chunk_information_block_SOURCES = \ fsapfs_test_chunk_information_block.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_chunk_information_block_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_compressed_data_handle_SOURCES = \ fsapfs_test_compressed_data_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfdata.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_compressed_data_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_compression_SOURCES = \ fsapfs_test_compression.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_compression_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_SOURCES = \ fsapfs_test_container.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_getopt.c fsapfs_test_getopt.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libclocale.h \ fsapfs_test_libcnotify.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_rwlock.c fsapfs_test_rwlock.h \ fsapfs_test_unused.h fsapfs_test_container_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCTHREADS_LIBADD@ \ @LIBCERROR_LIBADD@ \ @PTHREAD_LIBADD@ fsapfs_test_container_data_handle_SOURCES = \ fsapfs_test_container_data_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_data_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_key_bag_SOURCES = \ fsapfs_test_container_key_bag.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_key_bag_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_reaper_SOURCES = \ fsapfs_test_container_reaper.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_reaper_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_superblock_SOURCES = \ fsapfs_test_container_superblock.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_superblock_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_data_block_SOURCES = \ fsapfs_test_data_block.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_data_block_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_directory_record_SOURCES = \ fsapfs_test_directory_record.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_directory_record_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_encryption_context_SOURCES = \ fsapfs_test_encryption_context.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_encryption_context_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_error_SOURCES = \ fsapfs_test_error.c \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_unused.h fsapfs_test_error_LDADD = \ ../libfsapfs/libfsapfs.la fsapfs_test_file_extent_SOURCES = \ fsapfs_test_file_extent.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_file_extent_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_file_system_btree_SOURCES = \ fsapfs_test_file_system_btree.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_file_system_btree_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_inode_SOURCES = \ fsapfs_test_inode.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_inode_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_io_handle_SOURCES = \ fsapfs_test_io_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_io_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_key_bag_entry_SOURCES = \ fsapfs_test_key_bag_entry.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_key_bag_entry_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_key_bag_header_SOURCES = \ fsapfs_test_key_bag_header.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_key_bag_header_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_key_encrypted_key_SOURCES = \ fsapfs_test_key_encrypted_key.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_key_encrypted_key_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_name_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_name.c \ fsapfs_test_types.h \ fsapfs_test_unicode_case_folding_mappings.h \ fsapfs_test_unicode_decomposition_mappings.h \ fsapfs_test_unused.h fsapfs_test_name_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_name_hash_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_name_hash.c \ fsapfs_test_unused.h fsapfs_test_name_hash_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_notify_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_notify.c \ fsapfs_test_unused.h fsapfs_test_notify_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object.c \ fsapfs_test_unused.h fsapfs_test_object_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_map_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object_map.c \ fsapfs_test_unused.h fsapfs_test_object_map_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_map_btree_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object_map_btree.c \ fsapfs_test_unused.h fsapfs_test_object_map_btree_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_map_descriptor_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object_map_descriptor.c \ fsapfs_test_unused.h fsapfs_test_object_map_descriptor_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_space_manager_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_space_manager.c \ fsapfs_test_unused.h fsapfs_test_space_manager_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_support_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_getopt.c fsapfs_test_getopt.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libclocale.h \ fsapfs_test_libcnotify.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_support.c \ fsapfs_test_unused.h fsapfs_test_support_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_volume_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_getopt.c fsapfs_test_getopt.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libclocale.h \ fsapfs_test_libcnotify.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_rwlock.c fsapfs_test_rwlock.h \ fsapfs_test_unused.h \ fsapfs_test_volume.c fsapfs_test_volume_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCTHREADS_LIBADD@ \ @LIBCERROR_LIBADD@ \ @PTHREAD_LIBADD@ fsapfs_test_volume_key_bag_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h \ fsapfs_test_volume_key_bag.c fsapfs_test_volume_key_bag_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_volume_superblock_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h \ fsapfs_test_volume_superblock.c fsapfs_test_volume_superblock_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile libfsapfs-20190210/tests/fsapfs_test_space_manager.c0000664000175000017500000011214513426640002024520 0ustar00lordyestalordyesta00000000000000/* * Library space_manager type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_space_manager.h" uint8_t fsapfs_test_space_manager_data1[ 4096 ] = { 0xca, 0x56, 0x9b, 0xf0, 0x49, 0xce, 0x1c, 0x8f, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, 0xfb, 0x01, 0x00, 0x00, 0xf6, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa1, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0f, 0x00, 0xd8, 0x09, 0x00, 0x00, 0xe0, 0x09, 0x00, 0x00, 0xe8, 0x09, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xd8, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0x00, 0x03, 0x00, 0x04, 0x00, 0x05, 0x00, 0x06, 0x00, 0x07, 0x00, 0x08, 0x00, 0x09, 0x00, 0x0a, 0x00, 0x0b, 0x00, 0x0c, 0x00, 0x0d, 0x00, 0x0e, 0x00, 0x0f, 0x00, 0xff, 0xff, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_space_manager_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_space_manager_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_space_manager_t *space_manager = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_space_manager_initialize( &space_manager, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_space_manager_free( &space_manager, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_space_manager_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); space_manager = (libfsapfs_space_manager_t *) 0x12345678UL; result = libfsapfs_space_manager_initialize( &space_manager, &error ); space_manager = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_space_manager_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_space_manager_initialize( &space_manager, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( space_manager != NULL ) { libfsapfs_space_manager_free( &space_manager, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_space_manager_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_space_manager_initialize( &space_manager, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( space_manager != NULL ) { libfsapfs_space_manager_free( &space_manager, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( space_manager != NULL ) { libfsapfs_space_manager_free( &space_manager, NULL ); } return( 0 ); } /* Tests the libfsapfs_space_manager_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_space_manager_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_space_manager_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_space_manager_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_space_manager_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_space_manager_t *space_manager = NULL; int result = 0; /* Initialize test */ result = libfsapfs_space_manager_initialize( &space_manager, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_space_manager_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_space_manager_read_file_io_handle( space_manager, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_space_manager_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_space_manager_read_file_io_handle( space_manager, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_space_manager_read_file_io_handle( space_manager, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_space_manager_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_space_manager_read_file_io_handle( space_manager, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_space_manager_free( &space_manager, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( space_manager != NULL ) { libfsapfs_space_manager_free( &space_manager, NULL ); } return( 0 ); } /* Tests the libfsapfs_space_manager_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_space_manager_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_space_manager_t *space_manager = NULL; int result = 0; /* Initialize test */ result = libfsapfs_space_manager_initialize( &space_manager, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_space_manager_read_data( space_manager, fsapfs_test_space_manager_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_space_manager_read_data( NULL, fsapfs_test_space_manager_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_space_manager_read_data( space_manager, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_space_manager_read_data( space_manager, fsapfs_test_space_manager_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_space_manager_read_data( space_manager, fsapfs_test_space_manager_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_space_manager_free( &space_manager, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "space_manager", space_manager ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( space_manager != NULL ) { libfsapfs_space_manager_free( &space_manager, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_space_manager_initialize", fsapfs_test_space_manager_initialize ); FSAPFS_TEST_RUN( "libfsapfs_space_manager_free", fsapfs_test_space_manager_free ); FSAPFS_TEST_RUN( "libfsapfs_space_manager_read_file_io_handle", fsapfs_test_space_manager_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_space_manager_read_data", fsapfs_test_space_manager_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_chunk_information_block.c0000664000175000017500000011450713426640002026626 0ustar00lordyestalordyesta00000000000000/* * Library chunk_information_block type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_chunk_information_block.h" uint8_t fsapfs_test_chunk_information_block_data1[ 4096 ] = { 0x0d, 0xcd, 0xdf, 0x3f, 0xcb, 0x2a, 0x20, 0x80, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf6, 0x03, 0x00, 0x00, 0x86, 0x03, 0x00, 0x00, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_chunk_information_block_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_chunk_information_block_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_chunk_information_block_t *chunk_information_block = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_chunk_information_block_initialize( &chunk_information_block, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_chunk_information_block_free( &chunk_information_block, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_chunk_information_block_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); chunk_information_block = (libfsapfs_chunk_information_block_t *) 0x12345678UL; result = libfsapfs_chunk_information_block_initialize( &chunk_information_block, &error ); chunk_information_block = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_chunk_information_block_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_chunk_information_block_initialize( &chunk_information_block, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( chunk_information_block != NULL ) { libfsapfs_chunk_information_block_free( &chunk_information_block, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_chunk_information_block_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_chunk_information_block_initialize( &chunk_information_block, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( chunk_information_block != NULL ) { libfsapfs_chunk_information_block_free( &chunk_information_block, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( chunk_information_block != NULL ) { libfsapfs_chunk_information_block_free( &chunk_information_block, NULL ); } return( 0 ); } /* Tests the libfsapfs_chunk_information_block_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_chunk_information_block_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_chunk_information_block_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_chunk_information_block_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_chunk_information_block_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_chunk_information_block_t *chunk_information_block = NULL; int result = 0; /* Initialize test */ result = libfsapfs_chunk_information_block_initialize( &chunk_information_block, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_chunk_information_block_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_chunk_information_block_read_file_io_handle( chunk_information_block, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_chunk_information_block_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_chunk_information_block_read_file_io_handle( chunk_information_block, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_chunk_information_block_read_file_io_handle( chunk_information_block, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_chunk_information_block_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_chunk_information_block_read_file_io_handle( chunk_information_block, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_chunk_information_block_free( &chunk_information_block, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( chunk_information_block != NULL ) { libfsapfs_chunk_information_block_free( &chunk_information_block, NULL ); } return( 0 ); } /* Tests the libfsapfs_chunk_information_block_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_chunk_information_block_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_chunk_information_block_t *chunk_information_block = NULL; int result = 0; /* Initialize test */ result = libfsapfs_chunk_information_block_initialize( &chunk_information_block, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_chunk_information_block_read_data( chunk_information_block, fsapfs_test_chunk_information_block_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_chunk_information_block_read_data( NULL, fsapfs_test_chunk_information_block_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_chunk_information_block_read_data( chunk_information_block, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_chunk_information_block_read_data( chunk_information_block, fsapfs_test_chunk_information_block_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_chunk_information_block_read_data( chunk_information_block, fsapfs_test_chunk_information_block_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_chunk_information_block_free( &chunk_information_block, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "chunk_information_block", chunk_information_block ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( chunk_information_block != NULL ) { libfsapfs_chunk_information_block_free( &chunk_information_block, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_chunk_information_block_initialize", fsapfs_test_chunk_information_block_initialize ); FSAPFS_TEST_RUN( "libfsapfs_chunk_information_block_free", fsapfs_test_chunk_information_block_free ); FSAPFS_TEST_RUN( "libfsapfs_chunk_information_block_read_file_io_handle", fsapfs_test_chunk_information_block_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_chunk_information_block_read_data", fsapfs_test_chunk_information_block_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_btree_entry.c0000664000175000017500000003651513426640002024263 0ustar00lordyestalordyesta00000000000000/* * Library btree_entry type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_btree_entry.h" uint8_t fsapfs_test_btree_entry_key_data1[ 23 ] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0b, 0x14, 0xbe, 0x9c, 0x2e, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x00 }; uint8_t fsapfs_test_btree_entry_value_data1[ 18 ] = { 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0xe3, 0x85, 0x4a, 0x54, 0x55, 0x52, 0x15, 0x04, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_btree_entry_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_entry_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_entry_t *btree_entry = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_btree_entry_free( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_entry_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); btree_entry = (libfsapfs_btree_entry_t *) 0x12345678UL; result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); btree_entry = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_btree_entry_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( btree_entry != NULL ) { libfsapfs_btree_entry_free( &btree_entry, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_btree_entry_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( btree_entry != NULL ) { libfsapfs_btree_entry_free( &btree_entry, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_entry != NULL ) { libfsapfs_btree_entry_free( &btree_entry, NULL ); } return( 0 ); } /* Tests the libfsapfs_btree_entry_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_entry_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_btree_entry_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_btree_entry_set_key_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_entry_set_key_data( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_entry_t *btree_entry = NULL; int result = 0; /* Initialize test */ result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_btree_entry_set_key_data( btree_entry, fsapfs_test_btree_entry_key_data1, 23, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_entry_set_key_data( btree_entry, fsapfs_test_btree_entry_key_data1, 23, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_btree_entry_free( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize test */ result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_entry_set_key_data( NULL, fsapfs_test_btree_entry_key_data1, 23, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_entry_set_key_data( btree_entry, NULL, 23, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_entry_set_key_data( btree_entry, fsapfs_test_btree_entry_key_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_btree_entry_set_key_data with malloc failing */ fsapfs_test_malloc_attempts_before_fail = 0; result = libfsapfs_btree_entry_set_key_data( btree_entry, fsapfs_test_btree_entry_key_data1, 23, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #if defined( OPTIMIZATION_DISABLED ) /* Test libfsapfs_btree_entry_set_key_data with memcpy failing */ fsapfs_test_memcpy_attempts_before_fail = 0; result = libfsapfs_btree_entry_set_key_data( btree_entry, fsapfs_test_btree_entry_key_data1, 23, &error ); if( fsapfs_test_memcpy_attempts_before_fail != -1 ) { fsapfs_test_memcpy_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( OPTIMIZATION_DISABLED ) */ #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ /* Clean up */ result = libfsapfs_btree_entry_free( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_entry != NULL ) { libfsapfs_btree_entry_free( &btree_entry, NULL ); } return( 0 ); } /* Tests the libfsapfs_btree_entry_set_value_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_entry_set_value_data( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_entry_t *btree_entry = NULL; int result = 0; /* Initialize test */ result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_btree_entry_set_value_data( btree_entry, fsapfs_test_btree_entry_value_data1, 18, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_entry_set_value_data( btree_entry, fsapfs_test_btree_entry_value_data1, 18, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_btree_entry_free( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize test */ result = libfsapfs_btree_entry_initialize( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_entry_set_value_data( NULL, fsapfs_test_btree_entry_value_data1, 18, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_entry_set_value_data( btree_entry, NULL, 18, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_entry_set_value_data( btree_entry, fsapfs_test_btree_entry_value_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_btree_entry_set_value_data with malloc failing */ fsapfs_test_malloc_attempts_before_fail = 0; result = libfsapfs_btree_entry_set_value_data( btree_entry, fsapfs_test_btree_entry_value_data1, 18, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #if defined( OPTIMIZATION_DISABLED ) /* Test libfsapfs_btree_entry_set_value_data with memcpy failing */ fsapfs_test_memcpy_attempts_before_fail = 0; result = libfsapfs_btree_entry_set_value_data( btree_entry, fsapfs_test_btree_entry_value_data1, 18, &error ); if( fsapfs_test_memcpy_attempts_before_fail != -1 ) { fsapfs_test_memcpy_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( OPTIMIZATION_DISABLED ) */ #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ /* Clean up */ result = libfsapfs_btree_entry_free( &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_entry", btree_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_entry != NULL ) { libfsapfs_btree_entry_free( &btree_entry, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_btree_entry_initialize", fsapfs_test_btree_entry_initialize ); FSAPFS_TEST_RUN( "libfsapfs_btree_entry_free", fsapfs_test_btree_entry_free ); FSAPFS_TEST_RUN( "libfsapfs_btree_entry_set_key_data", fsapfs_test_btree_entry_set_key_data ); FSAPFS_TEST_RUN( "libfsapfs_btree_entry_set_value_data", fsapfs_test_btree_entry_set_value_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_libuna.h0000664000175000017500000000332313426637447023232 0ustar00lordyestalordyesta00000000000000/* * The libuna header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_LIBUNA_H ) #define _FSAPFS_TEST_LIBUNA_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if defined( HAVE_LOCAL_LIBUNA ) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT * before including libuna.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBUNA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _FSAPFS_TEST_LIBUNA_H ) */ libfsapfs-20190210/tests/fsapfs_test_file_system_btree.c0000664000175000017500000010014013426640002025427 0ustar00lordyestalordyesta00000000000000/* * Library file_system_btree type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_file_system_btree.h" uint8_t fsapfs_test_file_system_btree_data1[ 4096 ] = { 0xf0, 0xac, 0xe4, 0x68, 0xe9, 0xb0, 0xe2, 0x5a, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x0d, 0x01, 0x5b, 0x07, 0xff, 0xff, 0x00, 0x00, 0xb8, 0x05, 0x74, 0x02, 0x19, 0x00, 0x18, 0x00, 0x90, 0x00, 0x12, 0x00, 0x00, 0x00, 0x11, 0x00, 0x12, 0x00, 0x12, 0x00, 0x11, 0x00, 0x08, 0x00, 0x7e, 0x00, 0x6c, 0x00, 0x39, 0x00, 0x17, 0x00, 0x16, 0x01, 0x12, 0x00, 0x31, 0x00, 0x08, 0x00, 0x04, 0x01, 0x74, 0x00, 0x50, 0x00, 0x08, 0x00, 0x8a, 0x01, 0x74, 0x00, 0x58, 0x00, 0x1b, 0x00, 0x9c, 0x01, 0x12, 0x00, 0x93, 0x00, 0x1d, 0x00, 0xd8, 0x02, 0x12, 0x00, 0xd0, 0x00, 0x1d, 0x00, 0x44, 0x04, 0x12, 0x00, 0x73, 0x00, 0x08, 0x00, 0x90, 0x03, 0xa0, 0x00, 0x7b, 0x00, 0x08, 0x00, 0x14, 0x02, 0x04, 0x00, 0x83, 0x00, 0x10, 0x00, 0x2c, 0x02, 0x18, 0x00, 0xb0, 0x00, 0x08, 0x00, 0x04, 0x05, 0xa8, 0x00, 0xb8, 0x00, 0x08, 0x00, 0x4a, 0x02, 0x04, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x46, 0x02, 0x18, 0x00, 0xed, 0x00, 0x08, 0x00, 0x78, 0x06, 0xa8, 0x00, 0xf5, 0x00, 0x08, 0x00, 0xb6, 0x03, 0x04, 0x00, 0xfd, 0x00, 0x10, 0x00, 0xb2, 0x03, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x05, 0xe4, 0x71, 0xb6, 0x72, 0x6f, 0x6f, 0x74, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0c, 0x8c, 0xa6, 0xac, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2d, 0x64, 0x69, 0x72, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0b, 0x14, 0xbe, 0x9c, 0x2e, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0f, 0x14, 0x12, 0x11, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x2d, 0x75, 0x75, 0x69, 0x64, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x11, 0x08, 0xef, 0x5f, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x37, 0x37, 0x37, 0x32, 0x30, 0x35, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x11, 0xec, 0xcb, 0xd5, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x37, 0x37, 0x37, 0x32, 0x30, 0x36, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xe1, 0x50, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xe1, 0x50, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x40, 0x00, 0x04, 0x02, 0x11, 0x00, 0x08, 0x20, 0x28, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x37, 0x37, 0x37, 0x32, 0x30, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x04, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x05, 0xb4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xe1, 0x50, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xe1, 0x50, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x48, 0x00, 0x04, 0x02, 0x11, 0x00, 0x08, 0x20, 0x28, 0x00, 0x05, 0x00, 0x08, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x37, 0x37, 0x37, 0x32, 0x30, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd4, 0x69, 0x40, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xe5, 0xa2, 0x42, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xe5, 0xa2, 0x42, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xd4, 0x69, 0x40, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x40, 0x00, 0x04, 0x02, 0x11, 0x00, 0x08, 0x20, 0x28, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x37, 0x37, 0x37, 0x32, 0x30, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x02, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x08, 0x00, 0x9a, 0x03, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xf3, 0x5e, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 0x04, 0x02, 0x11, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x37, 0x37, 0x37, 0x32, 0x30, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5c, 0x04, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0xc6, 0x73, 0x56, 0x55, 0x23, 0x52, 0x15, 0x40, 0xc1, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x1b, 0xf8, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x40, 0xc1, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x38, 0x00, 0x04, 0x02, 0x0f, 0x00, 0x08, 0x20, 0x28, 0x00, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x2d, 0x75, 0x75, 0x69, 0x64, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd4, 0x69, 0x40, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x08, 0x00, 0xf0, 0x02, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd4, 0x69, 0x40, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xd4, 0x69, 0x40, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xd4, 0x69, 0x40, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xd4, 0x69, 0x40, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 0x04, 0x02, 0x11, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x37, 0x37, 0x37, 0x32, 0x30, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0xff, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0xc6, 0x73, 0x56, 0x55, 0x23, 0x52, 0x15, 0x72, 0xc6, 0x73, 0x56, 0x55, 0x23, 0x52, 0x15, 0x72, 0xc6, 0x73, 0x56, 0x55, 0x23, 0x52, 0x15, 0x72, 0xc6, 0x73, 0x56, 0x55, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x80, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x04, 0x02, 0x0f, 0x00, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x2d, 0x75, 0x75, 0x69, 0x64, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0xc6, 0x73, 0x56, 0x55, 0x23, 0x52, 0x15, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0f, 0x71, 0x56, 0x55, 0x23, 0x52, 0x15, 0xfc, 0x68, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xfc, 0x68, 0x44, 0x06, 0x5a, 0x23, 0x52, 0x15, 0xc1, 0xd6, 0x73, 0x56, 0x55, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0xc0, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x04, 0x02, 0x0b, 0x00, 0x2e, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x0f, 0x71, 0x56, 0x55, 0x23, 0x52, 0x15, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6b, 0x5b, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x6b, 0x5b, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x6b, 0x5b, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x6b, 0x5b, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa4, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x04, 0x02, 0x0c, 0x00, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2d, 0x64, 0x69, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6b, 0x5b, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xda, 0x41, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x85, 0x2b, 0x71, 0x56, 0x55, 0x23, 0x52, 0x15, 0x85, 0x2b, 0x71, 0x56, 0x55, 0x23, 0x52, 0x15, 0xda, 0x41, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfd, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x04, 0x02, 0x05, 0x00, 0x72, 0x6f, 0x6f, 0x74, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xda, 0x41, 0xb8, 0x12, 0x55, 0x23, 0x52, 0x15, 0x04, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_file_system_btree_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_file_system_btree_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_file_system_btree_t *file_system_btree = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_file_system_btree_initialize( &file_system_btree, NULL, NULL, NULL, NULL, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_system_btree", file_system_btree ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_file_system_btree_free( &file_system_btree, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_system_btree", file_system_btree ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_file_system_btree_initialize( NULL, NULL, NULL, NULL, NULL, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); file_system_btree = (libfsapfs_file_system_btree_t *) 0x12345678UL; result = libfsapfs_file_system_btree_initialize( &file_system_btree, NULL, NULL, NULL, NULL, 0, 0, &error ); file_system_btree = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_file_system_btree_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_file_system_btree_initialize( &file_system_btree, NULL, NULL, NULL, NULL, 0, 0, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( file_system_btree != NULL ) { libfsapfs_file_system_btree_free( &file_system_btree, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_system_btree", file_system_btree ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_file_system_btree_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_file_system_btree_initialize( &file_system_btree, NULL, NULL, NULL, NULL, 0, 0, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( file_system_btree != NULL ) { libfsapfs_file_system_btree_free( &file_system_btree, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_system_btree", file_system_btree ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_system_btree != NULL ) { libfsapfs_file_system_btree_free( &file_system_btree, NULL ); } return( 0 ); } /* Tests the libfsapfs_file_system_btree_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_file_system_btree_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_file_system_btree_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_file_system_btree_initialize", fsapfs_test_file_system_btree_initialize ); FSAPFS_TEST_RUN( "libfsapfs_file_system_btree_free", fsapfs_test_file_system_btree_free ); /* TODO add tests for libfsapfs_file_system_btree_get_root_node */ /* TODO add tests for libfsapfs_file_system_btree_get_sub_node */ /* TODO add tests for libfsapfs_file_system_btree_get_entry_from_node_by_identifier */ /* TODO add tests for libfsapfs_file_system_btree_get_directory_record_from_node_by_utf8_name */ /* TODO add tests for libfsapfs_file_system_btree_get_directory_record_from_node_by_utf16_name */ /* TODO add tests for libfsapfs_file_system_btree_get_directory_entries */ /* TODO add tests for libfsapfs_file_system_btree_get_directory_entries_from_node */ /* TODO add tests for libfsapfs_file_system_btree_get_file_extents */ /* TODO add tests for libfsapfs_file_system_btree_get_file_extents_from_node */ /* TODO add tests for libfsapfs_file_system_btree_get_inode_by_identifier */ /* TODO add tests for libfsapfs_file_system_btree_get_inode_by_utf8_path */ /* TODO add tests for libfsapfs_file_system_btree_get_inode_by_utf16_path */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_macros.h0000664000175000017500000002025113426637447023243 0ustar00lordyestalordyesta00000000000000/* * Macros for testing * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_MACROS_H ) #define _FSAPFS_TEST_MACROS_H #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #define FSAPFS_TEST_ASSERT_EQUAL_INT( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%d) != %d\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( name, value, expected_value ) \ if( value == expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%d) == %d\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_GREATER_THAN_INT( name, value, expected_value ) \ if( value <= expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%d) <= %d\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_LESS_THAN_INT( name, value, expected_value ) \ if( value >= expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%d) >= %d\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_INTPTR( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (0x%08x" PRIjx ") != 0x%08x" PRIjx "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_NOT_EQUAL_INTPTR( name, value, expected_value ) \ if( value == expected_value ) \ { \ fprintf( stdout, "%s:%d %s (0x%08x" PRIjx ") == 0x%08x" PRIjx "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_FLOAT( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%f) != %f\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_NOT_EQUAL_FLOAT( name, value, expected_value ) \ if( value == expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%f) == %f\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_SIZE( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIzd ") != %" PRIzd "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_SSIZE( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIzd ") != %" PRIzd "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_INT8( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi8 ") != %" PRIi8 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_NOT_EQUAL_INT8( name, value, expected_value ) \ if( value == expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi8 ") == %" PRIi8 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_UINT8( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi8 ") != %" PRIu8 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_LESS_THAN_UINT8( name, value, expected_value ) \ if( value >= expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi8 ") >= %" PRIu8 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_INT16( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi16 ") != %" PRIi16 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_NOT_EQUAL_INT16( name, value, expected_value ) \ if( value == expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi16 ") == %" PRIi16 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_UINT16( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi16 ") != %" PRIu16 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_LESS_THAN_UINT16( name, value, expected_value ) \ if( value >= expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi16 ") >= %" PRIu16 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_INT32( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi32 ") != %" PRIi32 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_NOT_EQUAL_INT32( name, value, expected_value ) \ if( value == expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi32 ") == %" PRIi32 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_UINT32( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi32 ") != %" PRIu32 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_LESS_THAN_UINT32( name, value, expected_value ) \ if( value >= expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi32 ") >= %" PRIu32 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_INT64( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi64 ") != %" PRIi64 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_NOT_EQUAL_INT64( name, value, expected_value ) \ if( value == expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIi64 ") == %" PRIi64 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_EQUAL_UINT64( name, value, expected_value ) \ if( value != expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIu64 ") != %" PRIu64 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_LESS_THAN_UINT64( name, value, expected_value ) \ if( value >= expected_value ) \ { \ fprintf( stdout, "%s:%d %s (%" PRIu64 ") >= %" PRIu64 "\n", __FILE__, __LINE__, name, value, expected_value ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_IS_NOT_NULL( name, value ) \ if( value == NULL ) \ { \ fprintf( stdout, "%s:%d %s == NULL\n", __FILE__, __LINE__, name ); \ goto on_error; \ } #define FSAPFS_TEST_ASSERT_IS_NULL( name, value ) \ if( value != NULL ) \ { \ fprintf( stdout, "%s:%d %s != NULL\n", __FILE__, __LINE__, name ); \ goto on_error; \ } #define FSAPFS_TEST_RUN( name, function ) \ if( function() != 1 ) \ { \ fprintf( stdout, "Unable to run test: %s\n", name ); \ goto on_error; \ } #if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) #define FSAPFS_TEST_RUN_WITH_ARGS( name, function, ... ) \ if( function( __VA_ARGS__ ) != 1 ) \ { \ fprintf( stdout, "Unable to run test: %s\n", name ); \ goto on_error; \ } #endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */ #define FSAPFS_TEST_FPRINT_ERROR( error ) \ libcerror_error_backtrace_fprint( error, stdout ); #endif /* !defined( _FSAPFS_TEST_MACROS_H ) */ libfsapfs-20190210/tests/fsapfs_test_encryption_context.c0000664000175000017500000000526413426637447025717 0ustar00lordyestalordyesta00000000000000/* * Library encryption_context type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_encryption_context.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_encryption_context_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_encryption_context_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_encryption_context_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_encryption_context_free", fsapfs_test_encryption_context_free ); /* TODO: add tests for libfsapfs_encryption_context_set_keys */ /* TODO: add tests for libfsapfs_encryption_context_crypt */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_key_encrypted_key.c0000664000175000017500000001505513426640002025452 0ustar00lordyestalordyesta00000000000000/* * Library key_encrypted_key type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_key_encrypted_key.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_key_encrypted_key_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_encrypted_key_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_key_encrypted_key_t *key_encrypted_key = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_key_encrypted_key_initialize( &key_encrypted_key, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "key_encrypted_key", key_encrypted_key ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_key_encrypted_key_free( &key_encrypted_key, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_encrypted_key", key_encrypted_key ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_key_encrypted_key_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); key_encrypted_key = (libfsapfs_key_encrypted_key_t *) 0x12345678UL; result = libfsapfs_key_encrypted_key_initialize( &key_encrypted_key, &error ); key_encrypted_key = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_key_encrypted_key_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_key_encrypted_key_initialize( &key_encrypted_key, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( key_encrypted_key != NULL ) { libfsapfs_key_encrypted_key_free( &key_encrypted_key, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_encrypted_key", key_encrypted_key ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_key_encrypted_key_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_key_encrypted_key_initialize( &key_encrypted_key, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( key_encrypted_key != NULL ) { libfsapfs_key_encrypted_key_free( &key_encrypted_key, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_encrypted_key", key_encrypted_key ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( key_encrypted_key != NULL ) { libfsapfs_key_encrypted_key_free( &key_encrypted_key, NULL ); } return( 0 ); } /* Tests the libfsapfs_key_encrypted_key_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_encrypted_key_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_key_encrypted_key_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_key_encrypted_key_initialize", fsapfs_test_key_encrypted_key_initialize ); FSAPFS_TEST_RUN( "libfsapfs_key_encrypted_key_free", fsapfs_test_key_encrypted_key_free ); /* TODO: add tests for libfsapfs_key_encrypted_key_read_data */ /* TODO: add tests for libfsapfs_key_encrypted_key_unlock_with_password */ /* TODO: add tests for libfsapfs_key_encrypted_key_unlock_with_volume_key */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_object_map.c0000664000175000017500000011135613426640002024041 0ustar00lordyestalordyesta00000000000000/* * Library object_map type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_object_map.h" uint8_t fsapfs_test_object_map_data1[ 4096 ] = { 0x5b, 0x21, 0xfd, 0xff, 0xeb, 0xdd, 0x02, 0x40, 0x53, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_object_map_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_object_map_t *object_map = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_object_map_initialize( &object_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_object_map_free( &object_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_map_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); object_map = (libfsapfs_object_map_t *) 0x12345678UL; result = libfsapfs_object_map_initialize( &object_map, &error ); object_map = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_object_map_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_object_map_initialize( &object_map, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( object_map != NULL ) { libfsapfs_object_map_free( &object_map, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_object_map_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_object_map_initialize( &object_map, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( object_map != NULL ) { libfsapfs_object_map_free( &object_map, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object_map != NULL ) { libfsapfs_object_map_free( &object_map, NULL ); } return( 0 ); } /* Tests the libfsapfs_object_map_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_object_map_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_object_map_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_object_map_t *object_map = NULL; int result = 0; /* Initialize test */ result = libfsapfs_object_map_initialize( &object_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_object_map_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_object_map_read_file_io_handle( object_map, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_map_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_read_file_io_handle( object_map, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_read_file_io_handle( object_map, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_object_map_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_object_map_read_file_io_handle( object_map, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_object_map_free( &object_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( object_map != NULL ) { libfsapfs_object_map_free( &object_map, NULL ); } return( 0 ); } /* Tests the libfsapfs_object_map_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_object_map_t *object_map = NULL; int result = 0; /* Initialize test */ result = libfsapfs_object_map_initialize( &object_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_object_map_read_data( object_map, fsapfs_test_object_map_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_map_read_data( NULL, fsapfs_test_object_map_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_read_data( object_map, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_read_data( object_map, fsapfs_test_object_map_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_read_data( object_map, fsapfs_test_object_map_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_object_map_free( &object_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map", object_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object_map != NULL ) { libfsapfs_object_map_free( &object_map, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_object_map_initialize", fsapfs_test_object_map_initialize ); FSAPFS_TEST_RUN( "libfsapfs_object_map_free", fsapfs_test_object_map_free ); FSAPFS_TEST_RUN( "libfsapfs_object_map_read_file_io_handle", fsapfs_test_object_map_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_object_map_read_data", fsapfs_test_object_map_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/pyfsapfs_test_support.py0000664000175000017500000000225413426637450024242 0ustar00lordyestalordyesta00000000000000#!/usr/bin/env python # # Python-bindings support functions test script # # Copyright (C) 2018-2019, Joachim Metz # # Refer to AUTHORS for acknowledgements. # # This software is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This software is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this software. If not, see . import unittest import pyfsapfs class SupportFunctionsTests(unittest.TestCase): """Tests the support functions.""" def test_get_version(self): """Tests the get_version function.""" version = pyfsapfs.get_version() # TODO: check version. # self.assertEqual(version, "00000000") if __name__ == "__main__": unittest.main(verbosity=2) libfsapfs-20190210/tests/fsapfs_test_getopt.c0000664000175000017500000001067513426637447023265 0ustar00lordyestalordyesta00000000000000/* * GetOpt functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_getopt.h" #include "fsapfs_test_libcnotify.h" #if !defined( HAVE_GETOPT ) /* The option index * Start with argument 1 (argument 0 is the program name) */ int optind = 1; /* The current option argument */ system_character_t *optarg = NULL; /* Value to indicate the current option */ system_integer_t optopt = 0; /* The next option in a group */ system_character_t *next_option = NULL; /* Get the program options * Function for platforms that do not have the getopt function * Returns the option character processed, or -1 on error, * ? if the option was not in the options string, : if the option argument was missing */ system_integer_t fsapfs_test_getopt( int argument_count, system_character_t * const argument_values[], const system_character_t *options_string ) { system_character_t *argument_value = NULL; system_character_t *option_value = NULL; static char *function = "fsapfs_test_getopt"; size_t options_string_length = 0; if( next_option != NULL ) { argument_value = next_option; next_option = NULL; } else if( optind >= argument_count ) { return( (system_integer_t) -1 ); } else { argument_value = argument_values[ optind ]; /* Check if the argument value is not an empty string */ if( *argument_value == (system_character_t) '\0' ) { return( (system_integer_t) -1 ); } /* Check if the first character is a option marker '-' */ if( *argument_value != (system_character_t) '-' ) { return( (system_integer_t) -1 ); } argument_value++; /* Check if long options are provided '--' */ if( *argument_value == (system_character_t) '-' ) { optind++; return( (system_integer_t) -1 ); } } options_string_length = system_string_length( options_string ); optopt = *argument_value; option_value = system_string_search_character( options_string, optopt, options_string_length ); argument_value++; /* Check if an argument was specified or that the option was not found * in the option string */ if( ( optopt == (system_integer_t) ':' ) || ( option_value == NULL ) ) { if( *argument_value == (system_character_t) '\0' ) { optind++; } if( ( *options_string != (system_character_t) ':' ) && ( optopt != (system_integer_t) '?' ) ) { libcnotify_printf( "%s: no such option: %" PRIc_SYSTEM ".\n", function, optopt ); } return( (system_integer_t) '?' ); } option_value++; /* Check if no option argument is required */ if( *option_value != (system_character_t) ':' ) { optarg = NULL; if( *argument_value == (system_character_t) '\0' ) { optind++; } else { /* Multiple options are grouped */ next_option = argument_value; } } /* Check if the argument is right after the option flag with no space in between */ else if( *argument_value != (system_character_t) '\0' ) { optarg = argument_value; optind++; } else { optind++; /* Check if the argument was provided as the next argument value */ if( argument_count <= optind ) { if( *option_value == ':' ) { return( (system_integer_t) ':' ); } libcnotify_printf( "%s: option: %" PRIc_SYSTEM " requires an argument.\n", function, optopt ); return( (system_integer_t) '?' ); } optarg = argument_values[ optind ]; optind++; } return( optopt ); } #endif /* !defined( HAVE_GETOPT ) */ libfsapfs-20190210/tests/fsapfs_test_io_handle.c0000664000175000017500000001774413426637447023711 0ustar00lordyestalordyesta00000000000000/* * Library io_handle type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_io_handle.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_io_handle_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_io_handle_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_io_handle_t *io_handle = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_io_handle_initialize( &io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_io_handle_free( &io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_io_handle_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); io_handle = (libfsapfs_io_handle_t *) 0x12345678UL; result = libfsapfs_io_handle_initialize( &io_handle, &error ); io_handle = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_io_handle_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_io_handle_initialize( &io_handle, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( io_handle != NULL ) { libfsapfs_io_handle_free( &io_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_io_handle_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_io_handle_initialize( &io_handle, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( io_handle != NULL ) { libfsapfs_io_handle_free( &io_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( io_handle != NULL ) { libfsapfs_io_handle_free( &io_handle, NULL ); } return( 0 ); } /* Tests the libfsapfs_io_handle_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_io_handle_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_io_handle_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_io_handle_clear function * Returns 1 if successful or 0 if not */ int fsapfs_test_io_handle_clear( void ) { libcerror_error_t *error = NULL; libfsapfs_io_handle_t *io_handle = NULL; int result = 0; /* Initialize test */ result = libfsapfs_io_handle_initialize( &io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_io_handle_clear( io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_io_handle_clear( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_io_handle_clear with memset failing */ fsapfs_test_memset_attempts_before_fail = 0; result = libfsapfs_io_handle_clear( io_handle, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ /* Clean up */ result = libfsapfs_io_handle_free( &io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( io_handle != NULL ) { libfsapfs_io_handle_free( &io_handle, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_io_handle_initialize", fsapfs_test_io_handle_initialize ); FSAPFS_TEST_RUN( "libfsapfs_io_handle_free", fsapfs_test_io_handle_free ); FSAPFS_TEST_RUN( "libfsapfs_io_handle_clear", fsapfs_test_io_handle_clear ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_directory_record.c0000664000175000017500000003043713426640002025300 0ustar00lordyestalordyesta00000000000000/* * Library directory_record type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_directory_record.h" uint8_t fsapfs_test_directory_record_key_data1[ 23 ] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0b, 0x14, 0xbe, 0x9c, 0x2e, 0x66, 0x73, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x64, 0x00 }; uint8_t fsapfs_test_directory_record_value_data1[ 18 ] = { 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0xe3, 0x85, 0x4a, 0x54, 0x55, 0x52, 0x15, 0x04, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_directory_record_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_directory_record_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_directory_record_t *directory_record = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_directory_record_initialize( &directory_record, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_directory_record_free( &directory_record, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_directory_record_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); directory_record = (libfsapfs_directory_record_t *) 0x12345678UL; result = libfsapfs_directory_record_initialize( &directory_record, &error ); directory_record = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_directory_record_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_directory_record_initialize( &directory_record, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_directory_record_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_directory_record_initialize( &directory_record, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } return( 0 ); } /* Tests the libfsapfs_directory_record_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_directory_record_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_directory_record_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_directory_record_read_key_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_directory_record_read_key_data( void ) { libcerror_error_t *error = NULL; libfsapfs_directory_record_t *directory_record = NULL; int result = 0; /* Initialize test */ result = libfsapfs_directory_record_initialize( &directory_record, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_directory_record_read_key_data( directory_record, fsapfs_test_directory_record_key_data1, 23, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_directory_record_read_key_data( NULL, fsapfs_test_directory_record_key_data1, 23, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_directory_record_read_key_data( directory_record, NULL, 23, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_directory_record_read_key_data( directory_record, fsapfs_test_directory_record_key_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_directory_record_read_key_data( directory_record, fsapfs_test_directory_record_key_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_directory_record_free( &directory_record, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } return( 0 ); } /* Tests the libfsapfs_directory_record_read_value_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_directory_record_read_value_data( void ) { libcerror_error_t *error = NULL; libfsapfs_directory_record_t *directory_record = NULL; int result = 0; /* Initialize test */ result = libfsapfs_directory_record_initialize( &directory_record, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_directory_record_read_value_data( directory_record, fsapfs_test_directory_record_value_data1, 18, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_directory_record_read_value_data( NULL, fsapfs_test_directory_record_value_data1, 18, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_directory_record_read_value_data( directory_record, NULL, 18, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_directory_record_read_value_data( directory_record, fsapfs_test_directory_record_value_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_directory_record_read_value_data( directory_record, fsapfs_test_directory_record_value_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_directory_record_free( &directory_record, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "directory_record", directory_record ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_directory_record_initialize", fsapfs_test_directory_record_initialize ); FSAPFS_TEST_RUN( "libfsapfs_directory_record_free", fsapfs_test_directory_record_free ); FSAPFS_TEST_RUN( "libfsapfs_directory_record_read_key_data", fsapfs_test_directory_record_read_key_data ); FSAPFS_TEST_RUN( "libfsapfs_directory_record_read_value_data", fsapfs_test_directory_record_read_value_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_checkpoint_map.c0000664000175000017500000011247713426640002024727 0ustar00lordyestalordyesta00000000000000/* * Library checkpoint_map type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_checkpoint_map.h" uint8_t fsapfs_test_checkpoint_map_data1[ 4096 ] = { 0x96, 0xb2, 0x61, 0x3f, 0x2d, 0x25, 0x9e, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_checkpoint_map_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_checkpoint_map_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_checkpoint_map_t *checkpoint_map = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_checkpoint_map_initialize( &checkpoint_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_checkpoint_map_free( &checkpoint_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_checkpoint_map_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); checkpoint_map = (libfsapfs_checkpoint_map_t *) 0x12345678UL; result = libfsapfs_checkpoint_map_initialize( &checkpoint_map, &error ); checkpoint_map = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_checkpoint_map_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_checkpoint_map_initialize( &checkpoint_map, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( checkpoint_map != NULL ) { libfsapfs_checkpoint_map_free( &checkpoint_map, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_checkpoint_map_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_checkpoint_map_initialize( &checkpoint_map, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( checkpoint_map != NULL ) { libfsapfs_checkpoint_map_free( &checkpoint_map, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( checkpoint_map != NULL ) { libfsapfs_checkpoint_map_free( &checkpoint_map, NULL ); } return( 0 ); } /* Tests the libfsapfs_checkpoint_map_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_checkpoint_map_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_checkpoint_map_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_checkpoint_map_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_checkpoint_map_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_checkpoint_map_t *checkpoint_map = NULL; int result = 0; /* Initialize test */ result = libfsapfs_checkpoint_map_initialize( &checkpoint_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_checkpoint_map_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_checkpoint_map_read_file_io_handle( checkpoint_map, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_checkpoint_map_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_read_file_io_handle( checkpoint_map, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_read_file_io_handle( checkpoint_map, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_checkpoint_map_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_checkpoint_map_read_file_io_handle( checkpoint_map, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_checkpoint_map_free( &checkpoint_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( checkpoint_map != NULL ) { libfsapfs_checkpoint_map_free( &checkpoint_map, NULL ); } return( 0 ); } /* Tests the libfsapfs_checkpoint_map_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_checkpoint_map_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_checkpoint_map_t *checkpoint_map = NULL; int result = 0; /* Initialize test */ result = libfsapfs_checkpoint_map_initialize( &checkpoint_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_checkpoint_map_read_data( checkpoint_map, fsapfs_test_checkpoint_map_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_checkpoint_map_read_data( NULL, fsapfs_test_checkpoint_map_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_read_data( checkpoint_map, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_read_data( checkpoint_map, fsapfs_test_checkpoint_map_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checkpoint_map_read_data( checkpoint_map, fsapfs_test_checkpoint_map_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_checkpoint_map_free( &checkpoint_map, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "checkpoint_map", checkpoint_map ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( checkpoint_map != NULL ) { libfsapfs_checkpoint_map_free( &checkpoint_map, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_checkpoint_map_initialize", fsapfs_test_checkpoint_map_initialize ); FSAPFS_TEST_RUN( "libfsapfs_checkpoint_map_free", fsapfs_test_checkpoint_map_free ); FSAPFS_TEST_RUN( "libfsapfs_checkpoint_map_read_file_io_handle", fsapfs_test_checkpoint_map_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_checkpoint_map_read_data", fsapfs_test_checkpoint_map_read_data ); /* TODO add tests for libfsapfs_checkpoint_map_get_physical_address_by_object_identifier */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_name_hash.c0000664000175000017500000001673213426637450023700 0ustar00lordyestalordyesta00000000000000/* * Library name_hash functions test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_name_hash.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_name_hash_calculate_from_utf8_string function * Returns 1 if successful or 0 if not */ int fsapfs_test_name_hash_calculate_from_utf8_string( void ) { uint8_t nfc_utf8_string[ 5 ] = { 'T', 0xc3, 0xa9, 'S', 't' }; uint8_t nfd_utf8_string[ 6 ] = { 'T', 'e', 0xcc, 0x81, 'S', 't' }; uint8_t utf8_string[ 4 ] = { 'T', 'e', 'S', 't' }; libcerror_error_t *error = NULL; uint32_t name_hash = 0; int result = 0; /* Test regular cases */ name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf8_string( &name_hash, utf8_string, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_UINT32( "name_hash", name_hash, (uint32_t) 0x0000996aUL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf8_string( &name_hash, nfc_utf8_string, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_UINT32( "name_hash", name_hash, (uint32_t) 0x00190453UL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf8_string( &name_hash, nfd_utf8_string, 6, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_UINT32( "name_hash", name_hash, (uint32_t) 0x00190453UL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf8_string( NULL, utf8_string, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_hash_calculate_from_utf8_string( &name_hash, NULL, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_hash_calculate_from_utf8_string( &name_hash, utf8_string, (size_t) SSIZE_MAX + 1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_name_hash_calculate_from_utf16_string function * Returns 1 if successful or 0 if not */ int fsapfs_test_name_hash_calculate_from_utf16_string( void ) { uint16_t nfc_utf16_string[ 4 ] = { 'T', 0x00e9, 'S', 't' }; uint16_t nfd_utf16_string[ 5 ] = { 'T', 'e', 0x0301, 'S', 't' }; uint16_t utf16_string[ 4 ] = { 'T', 'e', 'S', 't' }; libcerror_error_t *error = NULL; uint32_t name_hash = 0; int result = 0; /* Test regular cases */ name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf16_string( &name_hash, utf16_string, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_UINT32( "name_hash", name_hash, (uint32_t) 0x0000996aUL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf16_string( &name_hash, nfc_utf16_string, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_UINT32( "name_hash", name_hash, (uint32_t) 0x00190453UL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf16_string( &name_hash, nfd_utf16_string, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_UINT32( "name_hash", name_hash, (uint32_t) 0x00190453UL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ name_hash = 0; result = libfsapfs_name_hash_calculate_from_utf16_string( NULL, utf16_string, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_hash_calculate_from_utf16_string( &name_hash, NULL, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_hash_calculate_from_utf16_string( &name_hash, utf16_string, (size_t) SSIZE_MAX + 1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_name_hash_calculate_from_utf8_string", fsapfs_test_name_hash_calculate_from_utf8_string ); FSAPFS_TEST_RUN( "libfsapfs_name_hash_calculate_from_utf16_string", fsapfs_test_name_hash_calculate_from_utf16_string ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_unicode_case_folding_mappings.h0000664000175000017500000011556713426637450030011 0ustar00lordyestalordyesta00000000000000/* * The Unicode case folding mappings definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_UNICODE_CASE_FOLDING_MAPPINGS_H ) #define _FSAPFS_TEST_UNICODE_CASE_FOLDING_MAPPINGS_H #include #include #include "fsapfs_test_types.h" #if defined( __cplusplus ) extern "C" { #endif /* The data below was derived from ftp://ftp.unicode.org/Public/9.0.0/ucd/CaseFolding.txt */ fsapfs_test_unicode_case_folding_mapping_t fsapfs_test_unicode_case_folding_mappings[ 1325 ] = { { 0x00000041, 0x00000061 }, { 0x00000042, 0x00000062 }, { 0x00000043, 0x00000063 }, { 0x00000044, 0x00000064 }, { 0x00000045, 0x00000065 }, { 0x00000046, 0x00000066 }, { 0x00000047, 0x00000067 }, { 0x00000048, 0x00000068 }, { 0x00000049, 0x00000069 }, { 0x0000004a, 0x0000006a }, { 0x0000004b, 0x0000006b }, { 0x0000004c, 0x0000006c }, { 0x0000004d, 0x0000006d }, { 0x0000004e, 0x0000006e }, { 0x0000004f, 0x0000006f }, { 0x00000050, 0x00000070 }, { 0x00000051, 0x00000071 }, { 0x00000052, 0x00000072 }, { 0x00000053, 0x00000073 }, { 0x00000054, 0x00000074 }, { 0x00000055, 0x00000075 }, { 0x00000056, 0x00000076 }, { 0x00000057, 0x00000077 }, { 0x00000058, 0x00000078 }, { 0x00000059, 0x00000079 }, { 0x0000005a, 0x0000007a }, { 0x000000b5, 0x000003bc }, { 0x000000c0, 0x000000e0 }, { 0x000000c1, 0x000000e1 }, { 0x000000c2, 0x000000e2 }, { 0x000000c3, 0x000000e3 }, { 0x000000c4, 0x000000e4 }, { 0x000000c5, 0x000000e5 }, { 0x000000c6, 0x000000e6 }, { 0x000000c7, 0x000000e7 }, { 0x000000c8, 0x000000e8 }, { 0x000000c9, 0x000000e9 }, { 0x000000ca, 0x000000ea }, { 0x000000cb, 0x000000eb }, { 0x000000cc, 0x000000ec }, { 0x000000cd, 0x000000ed }, { 0x000000ce, 0x000000ee }, { 0x000000cf, 0x000000ef }, { 0x000000d0, 0x000000f0 }, { 0x000000d1, 0x000000f1 }, { 0x000000d2, 0x000000f2 }, { 0x000000d3, 0x000000f3 }, { 0x000000d4, 0x000000f4 }, { 0x000000d5, 0x000000f5 }, { 0x000000d6, 0x000000f6 }, { 0x000000d8, 0x000000f8 }, { 0x000000d9, 0x000000f9 }, { 0x000000da, 0x000000fa }, { 0x000000db, 0x000000fb }, { 0x000000dc, 0x000000fc }, { 0x000000dd, 0x000000fd }, { 0x000000de, 0x000000fe }, { 0x00000100, 0x00000101 }, { 0x00000102, 0x00000103 }, { 0x00000104, 0x00000105 }, { 0x00000106, 0x00000107 }, { 0x00000108, 0x00000109 }, { 0x0000010a, 0x0000010b }, { 0x0000010c, 0x0000010d }, { 0x0000010e, 0x0000010f }, { 0x00000110, 0x00000111 }, { 0x00000112, 0x00000113 }, { 0x00000114, 0x00000115 }, { 0x00000116, 0x00000117 }, { 0x00000118, 0x00000119 }, { 0x0000011a, 0x0000011b }, { 0x0000011c, 0x0000011d }, { 0x0000011e, 0x0000011f }, { 0x00000120, 0x00000121 }, { 0x00000122, 0x00000123 }, { 0x00000124, 0x00000125 }, { 0x00000126, 0x00000127 }, { 0x00000128, 0x00000129 }, { 0x0000012a, 0x0000012b }, { 0x0000012c, 0x0000012d }, { 0x0000012e, 0x0000012f }, { 0x00000132, 0x00000133 }, { 0x00000134, 0x00000135 }, { 0x00000136, 0x00000137 }, { 0x00000139, 0x0000013a }, { 0x0000013b, 0x0000013c }, { 0x0000013d, 0x0000013e }, { 0x0000013f, 0x00000140 }, { 0x00000141, 0x00000142 }, { 0x00000143, 0x00000144 }, { 0x00000145, 0x00000146 }, { 0x00000147, 0x00000148 }, { 0x0000014a, 0x0000014b }, { 0x0000014c, 0x0000014d }, { 0x0000014e, 0x0000014f }, { 0x00000150, 0x00000151 }, { 0x00000152, 0x00000153 }, { 0x00000154, 0x00000155 }, { 0x00000156, 0x00000157 }, { 0x00000158, 0x00000159 }, { 0x0000015a, 0x0000015b }, { 0x0000015c, 0x0000015d }, { 0x0000015e, 0x0000015f }, { 0x00000160, 0x00000161 }, { 0x00000162, 0x00000163 }, { 0x00000164, 0x00000165 }, { 0x00000166, 0x00000167 }, { 0x00000168, 0x00000169 }, { 0x0000016a, 0x0000016b }, { 0x0000016c, 0x0000016d }, { 0x0000016e, 0x0000016f }, { 0x00000170, 0x00000171 }, { 0x00000172, 0x00000173 }, { 0x00000174, 0x00000175 }, { 0x00000176, 0x00000177 }, { 0x00000178, 0x000000ff }, { 0x00000179, 0x0000017a }, { 0x0000017b, 0x0000017c }, { 0x0000017d, 0x0000017e }, { 0x0000017f, 0x00000073 }, { 0x00000181, 0x00000253 }, { 0x00000182, 0x00000183 }, { 0x00000184, 0x00000185 }, { 0x00000186, 0x00000254 }, { 0x00000187, 0x00000188 }, { 0x00000189, 0x00000256 }, { 0x0000018a, 0x00000257 }, { 0x0000018b, 0x0000018c }, { 0x0000018e, 0x000001dd }, { 0x0000018f, 0x00000259 }, { 0x00000190, 0x0000025b }, { 0x00000191, 0x00000192 }, { 0x00000193, 0x00000260 }, { 0x00000194, 0x00000263 }, { 0x00000196, 0x00000269 }, { 0x00000197, 0x00000268 }, { 0x00000198, 0x00000199 }, { 0x0000019c, 0x0000026f }, { 0x0000019d, 0x00000272 }, { 0x0000019f, 0x00000275 }, { 0x000001a0, 0x000001a1 }, { 0x000001a2, 0x000001a3 }, { 0x000001a4, 0x000001a5 }, { 0x000001a6, 0x00000280 }, { 0x000001a7, 0x000001a8 }, { 0x000001a9, 0x00000283 }, { 0x000001ac, 0x000001ad }, { 0x000001ae, 0x00000288 }, { 0x000001af, 0x000001b0 }, { 0x000001b1, 0x0000028a }, { 0x000001b2, 0x0000028b }, { 0x000001b3, 0x000001b4 }, { 0x000001b5, 0x000001b6 }, { 0x000001b7, 0x00000292 }, { 0x000001b8, 0x000001b9 }, { 0x000001bc, 0x000001bd }, { 0x000001c4, 0x000001c6 }, { 0x000001c5, 0x000001c6 }, { 0x000001c7, 0x000001c9 }, { 0x000001c8, 0x000001c9 }, { 0x000001ca, 0x000001cc }, { 0x000001cb, 0x000001cc }, { 0x000001cd, 0x000001ce }, { 0x000001cf, 0x000001d0 }, { 0x000001d1, 0x000001d2 }, { 0x000001d3, 0x000001d4 }, { 0x000001d5, 0x000001d6 }, { 0x000001d7, 0x000001d8 }, { 0x000001d9, 0x000001da }, { 0x000001db, 0x000001dc }, { 0x000001de, 0x000001df }, { 0x000001e0, 0x000001e1 }, { 0x000001e2, 0x000001e3 }, { 0x000001e4, 0x000001e5 }, { 0x000001e6, 0x000001e7 }, { 0x000001e8, 0x000001e9 }, { 0x000001ea, 0x000001eb }, { 0x000001ec, 0x000001ed }, { 0x000001ee, 0x000001ef }, { 0x000001f1, 0x000001f3 }, { 0x000001f2, 0x000001f3 }, { 0x000001f4, 0x000001f5 }, { 0x000001f6, 0x00000195 }, { 0x000001f7, 0x000001bf }, { 0x000001f8, 0x000001f9 }, { 0x000001fa, 0x000001fb }, { 0x000001fc, 0x000001fd }, { 0x000001fe, 0x000001ff }, { 0x00000200, 0x00000201 }, { 0x00000202, 0x00000203 }, { 0x00000204, 0x00000205 }, { 0x00000206, 0x00000207 }, { 0x00000208, 0x00000209 }, { 0x0000020a, 0x0000020b }, { 0x0000020c, 0x0000020d }, { 0x0000020e, 0x0000020f }, { 0x00000210, 0x00000211 }, { 0x00000212, 0x00000213 }, { 0x00000214, 0x00000215 }, { 0x00000216, 0x00000217 }, { 0x00000218, 0x00000219 }, { 0x0000021a, 0x0000021b }, { 0x0000021c, 0x0000021d }, { 0x0000021e, 0x0000021f }, { 0x00000220, 0x0000019e }, { 0x00000222, 0x00000223 }, { 0x00000224, 0x00000225 }, { 0x00000226, 0x00000227 }, { 0x00000228, 0x00000229 }, { 0x0000022a, 0x0000022b }, { 0x0000022c, 0x0000022d }, { 0x0000022e, 0x0000022f }, { 0x00000230, 0x00000231 }, { 0x00000232, 0x00000233 }, { 0x0000023a, 0x00002c65 }, { 0x0000023b, 0x0000023c }, { 0x0000023d, 0x0000019a }, { 0x0000023e, 0x00002c66 }, { 0x00000241, 0x00000242 }, { 0x00000243, 0x00000180 }, { 0x00000244, 0x00000289 }, { 0x00000245, 0x0000028c }, { 0x00000246, 0x00000247 }, { 0x00000248, 0x00000249 }, { 0x0000024a, 0x0000024b }, { 0x0000024c, 0x0000024d }, { 0x0000024e, 0x0000024f }, { 0x00000345, 0x000003b9 }, { 0x00000370, 0x00000371 }, { 0x00000372, 0x00000373 }, { 0x00000376, 0x00000377 }, { 0x0000037f, 0x000003f3 }, { 0x00000386, 0x000003ac }, { 0x00000388, 0x000003ad }, { 0x00000389, 0x000003ae }, { 0x0000038a, 0x000003af }, { 0x0000038c, 0x000003cc }, { 0x0000038e, 0x000003cd }, { 0x0000038f, 0x000003ce }, { 0x00000391, 0x000003b1 }, { 0x00000392, 0x000003b2 }, { 0x00000393, 0x000003b3 }, { 0x00000394, 0x000003b4 }, { 0x00000395, 0x000003b5 }, { 0x00000396, 0x000003b6 }, { 0x00000397, 0x000003b7 }, { 0x00000398, 0x000003b8 }, { 0x00000399, 0x000003b9 }, { 0x0000039a, 0x000003ba }, { 0x0000039b, 0x000003bb }, { 0x0000039c, 0x000003bc }, { 0x0000039d, 0x000003bd }, { 0x0000039e, 0x000003be }, { 0x0000039f, 0x000003bf }, { 0x000003a0, 0x000003c0 }, { 0x000003a1, 0x000003c1 }, { 0x000003a3, 0x000003c3 }, { 0x000003a4, 0x000003c4 }, { 0x000003a5, 0x000003c5 }, { 0x000003a6, 0x000003c6 }, { 0x000003a7, 0x000003c7 }, { 0x000003a8, 0x000003c8 }, { 0x000003a9, 0x000003c9 }, { 0x000003aa, 0x000003ca }, { 0x000003ab, 0x000003cb }, { 0x000003c2, 0x000003c3 }, { 0x000003cf, 0x000003d7 }, { 0x000003d0, 0x000003b2 }, { 0x000003d1, 0x000003b8 }, { 0x000003d5, 0x000003c6 }, { 0x000003d6, 0x000003c0 }, { 0x000003d8, 0x000003d9 }, { 0x000003da, 0x000003db }, { 0x000003dc, 0x000003dd }, { 0x000003de, 0x000003df }, { 0x000003e0, 0x000003e1 }, { 0x000003e2, 0x000003e3 }, { 0x000003e4, 0x000003e5 }, { 0x000003e6, 0x000003e7 }, { 0x000003e8, 0x000003e9 }, { 0x000003ea, 0x000003eb }, { 0x000003ec, 0x000003ed }, { 0x000003ee, 0x000003ef }, { 0x000003f0, 0x000003ba }, { 0x000003f1, 0x000003c1 }, { 0x000003f4, 0x000003b8 }, { 0x000003f5, 0x000003b5 }, { 0x000003f7, 0x000003f8 }, { 0x000003f9, 0x000003f2 }, { 0x000003fa, 0x000003fb }, { 0x000003fd, 0x0000037b }, { 0x000003fe, 0x0000037c }, { 0x000003ff, 0x0000037d }, { 0x00000400, 0x00000450 }, { 0x00000401, 0x00000451 }, { 0x00000402, 0x00000452 }, { 0x00000403, 0x00000453 }, { 0x00000404, 0x00000454 }, { 0x00000405, 0x00000455 }, { 0x00000406, 0x00000456 }, { 0x00000407, 0x00000457 }, { 0x00000408, 0x00000458 }, { 0x00000409, 0x00000459 }, { 0x0000040a, 0x0000045a }, { 0x0000040b, 0x0000045b }, { 0x0000040c, 0x0000045c }, { 0x0000040d, 0x0000045d }, { 0x0000040e, 0x0000045e }, { 0x0000040f, 0x0000045f }, { 0x00000410, 0x00000430 }, { 0x00000411, 0x00000431 }, { 0x00000412, 0x00000432 }, { 0x00000413, 0x00000433 }, { 0x00000414, 0x00000434 }, { 0x00000415, 0x00000435 }, { 0x00000416, 0x00000436 }, { 0x00000417, 0x00000437 }, { 0x00000418, 0x00000438 }, { 0x00000419, 0x00000439 }, { 0x0000041a, 0x0000043a }, { 0x0000041b, 0x0000043b }, { 0x0000041c, 0x0000043c }, { 0x0000041d, 0x0000043d }, { 0x0000041e, 0x0000043e }, { 0x0000041f, 0x0000043f }, { 0x00000420, 0x00000440 }, { 0x00000421, 0x00000441 }, { 0x00000422, 0x00000442 }, { 0x00000423, 0x00000443 }, { 0x00000424, 0x00000444 }, { 0x00000425, 0x00000445 }, { 0x00000426, 0x00000446 }, { 0x00000427, 0x00000447 }, { 0x00000428, 0x00000448 }, { 0x00000429, 0x00000449 }, { 0x0000042a, 0x0000044a }, { 0x0000042b, 0x0000044b }, { 0x0000042c, 0x0000044c }, { 0x0000042d, 0x0000044d }, { 0x0000042e, 0x0000044e }, { 0x0000042f, 0x0000044f }, { 0x00000460, 0x00000461 }, { 0x00000462, 0x00000463 }, { 0x00000464, 0x00000465 }, { 0x00000466, 0x00000467 }, { 0x00000468, 0x00000469 }, { 0x0000046a, 0x0000046b }, { 0x0000046c, 0x0000046d }, { 0x0000046e, 0x0000046f }, { 0x00000470, 0x00000471 }, { 0x00000472, 0x00000473 }, { 0x00000474, 0x00000475 }, { 0x00000476, 0x00000477 }, { 0x00000478, 0x00000479 }, { 0x0000047a, 0x0000047b }, { 0x0000047c, 0x0000047d }, { 0x0000047e, 0x0000047f }, { 0x00000480, 0x00000481 }, { 0x0000048a, 0x0000048b }, { 0x0000048c, 0x0000048d }, { 0x0000048e, 0x0000048f }, { 0x00000490, 0x00000491 }, { 0x00000492, 0x00000493 }, { 0x00000494, 0x00000495 }, { 0x00000496, 0x00000497 }, { 0x00000498, 0x00000499 }, { 0x0000049a, 0x0000049b }, { 0x0000049c, 0x0000049d }, { 0x0000049e, 0x0000049f }, { 0x000004a0, 0x000004a1 }, { 0x000004a2, 0x000004a3 }, { 0x000004a4, 0x000004a5 }, { 0x000004a6, 0x000004a7 }, { 0x000004a8, 0x000004a9 }, { 0x000004aa, 0x000004ab }, { 0x000004ac, 0x000004ad }, { 0x000004ae, 0x000004af }, { 0x000004b0, 0x000004b1 }, { 0x000004b2, 0x000004b3 }, { 0x000004b4, 0x000004b5 }, { 0x000004b6, 0x000004b7 }, { 0x000004b8, 0x000004b9 }, { 0x000004ba, 0x000004bb }, { 0x000004bc, 0x000004bd }, { 0x000004be, 0x000004bf }, { 0x000004c0, 0x000004cf }, { 0x000004c1, 0x000004c2 }, { 0x000004c3, 0x000004c4 }, { 0x000004c5, 0x000004c6 }, { 0x000004c7, 0x000004c8 }, { 0x000004c9, 0x000004ca }, { 0x000004cb, 0x000004cc }, { 0x000004cd, 0x000004ce }, { 0x000004d0, 0x000004d1 }, { 0x000004d2, 0x000004d3 }, { 0x000004d4, 0x000004d5 }, { 0x000004d6, 0x000004d7 }, { 0x000004d8, 0x000004d9 }, { 0x000004da, 0x000004db }, { 0x000004dc, 0x000004dd }, { 0x000004de, 0x000004df }, { 0x000004e0, 0x000004e1 }, { 0x000004e2, 0x000004e3 }, { 0x000004e4, 0x000004e5 }, { 0x000004e6, 0x000004e7 }, { 0x000004e8, 0x000004e9 }, { 0x000004ea, 0x000004eb }, { 0x000004ec, 0x000004ed }, { 0x000004ee, 0x000004ef }, { 0x000004f0, 0x000004f1 }, { 0x000004f2, 0x000004f3 }, { 0x000004f4, 0x000004f5 }, { 0x000004f6, 0x000004f7 }, { 0x000004f8, 0x000004f9 }, { 0x000004fa, 0x000004fb }, { 0x000004fc, 0x000004fd }, { 0x000004fe, 0x000004ff }, { 0x00000500, 0x00000501 }, { 0x00000502, 0x00000503 }, { 0x00000504, 0x00000505 }, { 0x00000506, 0x00000507 }, { 0x00000508, 0x00000509 }, { 0x0000050a, 0x0000050b }, { 0x0000050c, 0x0000050d }, { 0x0000050e, 0x0000050f }, { 0x00000510, 0x00000511 }, { 0x00000512, 0x00000513 }, { 0x00000514, 0x00000515 }, { 0x00000516, 0x00000517 }, { 0x00000518, 0x00000519 }, { 0x0000051a, 0x0000051b }, { 0x0000051c, 0x0000051d }, { 0x0000051e, 0x0000051f }, { 0x00000520, 0x00000521 }, { 0x00000522, 0x00000523 }, { 0x00000524, 0x00000525 }, { 0x00000526, 0x00000527 }, { 0x00000528, 0x00000529 }, { 0x0000052a, 0x0000052b }, { 0x0000052c, 0x0000052d }, { 0x0000052e, 0x0000052f }, { 0x00000531, 0x00000561 }, { 0x00000532, 0x00000562 }, { 0x00000533, 0x00000563 }, { 0x00000534, 0x00000564 }, { 0x00000535, 0x00000565 }, { 0x00000536, 0x00000566 }, { 0x00000537, 0x00000567 }, { 0x00000538, 0x00000568 }, { 0x00000539, 0x00000569 }, { 0x0000053a, 0x0000056a }, { 0x0000053b, 0x0000056b }, { 0x0000053c, 0x0000056c }, { 0x0000053d, 0x0000056d }, { 0x0000053e, 0x0000056e }, { 0x0000053f, 0x0000056f }, { 0x00000540, 0x00000570 }, { 0x00000541, 0x00000571 }, { 0x00000542, 0x00000572 }, { 0x00000543, 0x00000573 }, { 0x00000544, 0x00000574 }, { 0x00000545, 0x00000575 }, { 0x00000546, 0x00000576 }, { 0x00000547, 0x00000577 }, { 0x00000548, 0x00000578 }, { 0x00000549, 0x00000579 }, { 0x0000054a, 0x0000057a }, { 0x0000054b, 0x0000057b }, { 0x0000054c, 0x0000057c }, { 0x0000054d, 0x0000057d }, { 0x0000054e, 0x0000057e }, { 0x0000054f, 0x0000057f }, { 0x00000550, 0x00000580 }, { 0x00000551, 0x00000581 }, { 0x00000552, 0x00000582 }, { 0x00000553, 0x00000583 }, { 0x00000554, 0x00000584 }, { 0x00000555, 0x00000585 }, { 0x00000556, 0x00000586 }, { 0x000010a0, 0x00002d00 }, { 0x000010a1, 0x00002d01 }, { 0x000010a2, 0x00002d02 }, { 0x000010a3, 0x00002d03 }, { 0x000010a4, 0x00002d04 }, { 0x000010a5, 0x00002d05 }, { 0x000010a6, 0x00002d06 }, { 0x000010a7, 0x00002d07 }, { 0x000010a8, 0x00002d08 }, { 0x000010a9, 0x00002d09 }, { 0x000010aa, 0x00002d0a }, { 0x000010ab, 0x00002d0b }, { 0x000010ac, 0x00002d0c }, { 0x000010ad, 0x00002d0d }, { 0x000010ae, 0x00002d0e }, { 0x000010af, 0x00002d0f }, { 0x000010b0, 0x00002d10 }, { 0x000010b1, 0x00002d11 }, { 0x000010b2, 0x00002d12 }, { 0x000010b3, 0x00002d13 }, { 0x000010b4, 0x00002d14 }, { 0x000010b5, 0x00002d15 }, { 0x000010b6, 0x00002d16 }, { 0x000010b7, 0x00002d17 }, { 0x000010b8, 0x00002d18 }, { 0x000010b9, 0x00002d19 }, { 0x000010ba, 0x00002d1a }, { 0x000010bb, 0x00002d1b }, { 0x000010bc, 0x00002d1c }, { 0x000010bd, 0x00002d1d }, { 0x000010be, 0x00002d1e }, { 0x000010bf, 0x00002d1f }, { 0x000010c0, 0x00002d20 }, { 0x000010c1, 0x00002d21 }, { 0x000010c2, 0x00002d22 }, { 0x000010c3, 0x00002d23 }, { 0x000010c4, 0x00002d24 }, { 0x000010c5, 0x00002d25 }, { 0x000010c7, 0x00002d27 }, { 0x000010cd, 0x00002d2d }, { 0x000013f8, 0x000013f0 }, { 0x000013f9, 0x000013f1 }, { 0x000013fa, 0x000013f2 }, { 0x000013fb, 0x000013f3 }, { 0x000013fc, 0x000013f4 }, { 0x000013fd, 0x000013f5 }, { 0x00001c80, 0x00000432 }, { 0x00001c81, 0x00000434 }, { 0x00001c82, 0x0000043e }, { 0x00001c83, 0x00000441 }, { 0x00001c84, 0x00000442 }, { 0x00001c85, 0x00000442 }, { 0x00001c86, 0x0000044a }, { 0x00001c87, 0x00000463 }, { 0x00001c88, 0x0000a64b }, { 0x00001e00, 0x00001e01 }, { 0x00001e02, 0x00001e03 }, { 0x00001e04, 0x00001e05 }, { 0x00001e06, 0x00001e07 }, { 0x00001e08, 0x00001e09 }, { 0x00001e0a, 0x00001e0b }, { 0x00001e0c, 0x00001e0d }, { 0x00001e0e, 0x00001e0f }, { 0x00001e10, 0x00001e11 }, { 0x00001e12, 0x00001e13 }, { 0x00001e14, 0x00001e15 }, { 0x00001e16, 0x00001e17 }, { 0x00001e18, 0x00001e19 }, { 0x00001e1a, 0x00001e1b }, { 0x00001e1c, 0x00001e1d }, { 0x00001e1e, 0x00001e1f }, { 0x00001e20, 0x00001e21 }, { 0x00001e22, 0x00001e23 }, { 0x00001e24, 0x00001e25 }, { 0x00001e26, 0x00001e27 }, { 0x00001e28, 0x00001e29 }, { 0x00001e2a, 0x00001e2b }, { 0x00001e2c, 0x00001e2d }, { 0x00001e2e, 0x00001e2f }, { 0x00001e30, 0x00001e31 }, { 0x00001e32, 0x00001e33 }, { 0x00001e34, 0x00001e35 }, { 0x00001e36, 0x00001e37 }, { 0x00001e38, 0x00001e39 }, { 0x00001e3a, 0x00001e3b }, { 0x00001e3c, 0x00001e3d }, { 0x00001e3e, 0x00001e3f }, { 0x00001e40, 0x00001e41 }, { 0x00001e42, 0x00001e43 }, { 0x00001e44, 0x00001e45 }, { 0x00001e46, 0x00001e47 }, { 0x00001e48, 0x00001e49 }, { 0x00001e4a, 0x00001e4b }, { 0x00001e4c, 0x00001e4d }, { 0x00001e4e, 0x00001e4f }, { 0x00001e50, 0x00001e51 }, { 0x00001e52, 0x00001e53 }, { 0x00001e54, 0x00001e55 }, { 0x00001e56, 0x00001e57 }, { 0x00001e58, 0x00001e59 }, { 0x00001e5a, 0x00001e5b }, { 0x00001e5c, 0x00001e5d }, { 0x00001e5e, 0x00001e5f }, { 0x00001e60, 0x00001e61 }, { 0x00001e62, 0x00001e63 }, { 0x00001e64, 0x00001e65 }, { 0x00001e66, 0x00001e67 }, { 0x00001e68, 0x00001e69 }, { 0x00001e6a, 0x00001e6b }, { 0x00001e6c, 0x00001e6d }, { 0x00001e6e, 0x00001e6f }, { 0x00001e70, 0x00001e71 }, { 0x00001e72, 0x00001e73 }, { 0x00001e74, 0x00001e75 }, { 0x00001e76, 0x00001e77 }, { 0x00001e78, 0x00001e79 }, { 0x00001e7a, 0x00001e7b }, { 0x00001e7c, 0x00001e7d }, { 0x00001e7e, 0x00001e7f }, { 0x00001e80, 0x00001e81 }, { 0x00001e82, 0x00001e83 }, { 0x00001e84, 0x00001e85 }, { 0x00001e86, 0x00001e87 }, { 0x00001e88, 0x00001e89 }, { 0x00001e8a, 0x00001e8b }, { 0x00001e8c, 0x00001e8d }, { 0x00001e8e, 0x00001e8f }, { 0x00001e90, 0x00001e91 }, { 0x00001e92, 0x00001e93 }, { 0x00001e94, 0x00001e95 }, { 0x00001e9b, 0x00001e61 }, { 0x00001e9e, 0x000000df }, { 0x00001ea0, 0x00001ea1 }, { 0x00001ea2, 0x00001ea3 }, { 0x00001ea4, 0x00001ea5 }, { 0x00001ea6, 0x00001ea7 }, { 0x00001ea8, 0x00001ea9 }, { 0x00001eaa, 0x00001eab }, { 0x00001eac, 0x00001ead }, { 0x00001eae, 0x00001eaf }, { 0x00001eb0, 0x00001eb1 }, { 0x00001eb2, 0x00001eb3 }, { 0x00001eb4, 0x00001eb5 }, { 0x00001eb6, 0x00001eb7 }, { 0x00001eb8, 0x00001eb9 }, { 0x00001eba, 0x00001ebb }, { 0x00001ebc, 0x00001ebd }, { 0x00001ebe, 0x00001ebf }, { 0x00001ec0, 0x00001ec1 }, { 0x00001ec2, 0x00001ec3 }, { 0x00001ec4, 0x00001ec5 }, { 0x00001ec6, 0x00001ec7 }, { 0x00001ec8, 0x00001ec9 }, { 0x00001eca, 0x00001ecb }, { 0x00001ecc, 0x00001ecd }, { 0x00001ece, 0x00001ecf }, { 0x00001ed0, 0x00001ed1 }, { 0x00001ed2, 0x00001ed3 }, { 0x00001ed4, 0x00001ed5 }, { 0x00001ed6, 0x00001ed7 }, { 0x00001ed8, 0x00001ed9 }, { 0x00001eda, 0x00001edb }, { 0x00001edc, 0x00001edd }, { 0x00001ede, 0x00001edf }, { 0x00001ee0, 0x00001ee1 }, { 0x00001ee2, 0x00001ee3 }, { 0x00001ee4, 0x00001ee5 }, { 0x00001ee6, 0x00001ee7 }, { 0x00001ee8, 0x00001ee9 }, { 0x00001eea, 0x00001eeb }, { 0x00001eec, 0x00001eed }, { 0x00001eee, 0x00001eef }, { 0x00001ef0, 0x00001ef1 }, { 0x00001ef2, 0x00001ef3 }, { 0x00001ef4, 0x00001ef5 }, { 0x00001ef6, 0x00001ef7 }, { 0x00001ef8, 0x00001ef9 }, { 0x00001efa, 0x00001efb }, { 0x00001efc, 0x00001efd }, { 0x00001efe, 0x00001eff }, { 0x00001f08, 0x00001f00 }, { 0x00001f09, 0x00001f01 }, { 0x00001f0a, 0x00001f02 }, { 0x00001f0b, 0x00001f03 }, { 0x00001f0c, 0x00001f04 }, { 0x00001f0d, 0x00001f05 }, { 0x00001f0e, 0x00001f06 }, { 0x00001f0f, 0x00001f07 }, { 0x00001f18, 0x00001f10 }, { 0x00001f19, 0x00001f11 }, { 0x00001f1a, 0x00001f12 }, { 0x00001f1b, 0x00001f13 }, { 0x00001f1c, 0x00001f14 }, { 0x00001f1d, 0x00001f15 }, { 0x00001f28, 0x00001f20 }, { 0x00001f29, 0x00001f21 }, { 0x00001f2a, 0x00001f22 }, { 0x00001f2b, 0x00001f23 }, { 0x00001f2c, 0x00001f24 }, { 0x00001f2d, 0x00001f25 }, { 0x00001f2e, 0x00001f26 }, { 0x00001f2f, 0x00001f27 }, { 0x00001f38, 0x00001f30 }, { 0x00001f39, 0x00001f31 }, { 0x00001f3a, 0x00001f32 }, { 0x00001f3b, 0x00001f33 }, { 0x00001f3c, 0x00001f34 }, { 0x00001f3d, 0x00001f35 }, { 0x00001f3e, 0x00001f36 }, { 0x00001f3f, 0x00001f37 }, { 0x00001f48, 0x00001f40 }, { 0x00001f49, 0x00001f41 }, { 0x00001f4a, 0x00001f42 }, { 0x00001f4b, 0x00001f43 }, { 0x00001f4c, 0x00001f44 }, { 0x00001f4d, 0x00001f45 }, { 0x00001f59, 0x00001f51 }, { 0x00001f5b, 0x00001f53 }, { 0x00001f5d, 0x00001f55 }, { 0x00001f5f, 0x00001f57 }, { 0x00001f68, 0x00001f60 }, { 0x00001f69, 0x00001f61 }, { 0x00001f6a, 0x00001f62 }, { 0x00001f6b, 0x00001f63 }, { 0x00001f6c, 0x00001f64 }, { 0x00001f6d, 0x00001f65 }, { 0x00001f6e, 0x00001f66 }, { 0x00001f6f, 0x00001f67 }, { 0x00001f88, 0x00001f80 }, { 0x00001f89, 0x00001f81 }, { 0x00001f8a, 0x00001f82 }, { 0x00001f8b, 0x00001f83 }, { 0x00001f8c, 0x00001f84 }, { 0x00001f8d, 0x00001f85 }, { 0x00001f8e, 0x00001f86 }, { 0x00001f8f, 0x00001f87 }, { 0x00001f98, 0x00001f90 }, { 0x00001f99, 0x00001f91 }, { 0x00001f9a, 0x00001f92 }, { 0x00001f9b, 0x00001f93 }, { 0x00001f9c, 0x00001f94 }, { 0x00001f9d, 0x00001f95 }, { 0x00001f9e, 0x00001f96 }, { 0x00001f9f, 0x00001f97 }, { 0x00001fa8, 0x00001fa0 }, { 0x00001fa9, 0x00001fa1 }, { 0x00001faa, 0x00001fa2 }, { 0x00001fab, 0x00001fa3 }, { 0x00001fac, 0x00001fa4 }, { 0x00001fad, 0x00001fa5 }, { 0x00001fae, 0x00001fa6 }, { 0x00001faf, 0x00001fa7 }, { 0x00001fb8, 0x00001fb0 }, { 0x00001fb9, 0x00001fb1 }, { 0x00001fba, 0x00001f70 }, { 0x00001fbb, 0x00001f71 }, { 0x00001fbc, 0x00001fb3 }, { 0x00001fbe, 0x000003b9 }, { 0x00001fc8, 0x00001f72 }, { 0x00001fc9, 0x00001f73 }, { 0x00001fca, 0x00001f74 }, { 0x00001fcb, 0x00001f75 }, { 0x00001fcc, 0x00001fc3 }, { 0x00001fd8, 0x00001fd0 }, { 0x00001fd9, 0x00001fd1 }, { 0x00001fda, 0x00001f76 }, { 0x00001fdb, 0x00001f77 }, { 0x00001fe8, 0x00001fe0 }, { 0x00001fe9, 0x00001fe1 }, { 0x00001fea, 0x00001f7a }, { 0x00001feb, 0x00001f7b }, { 0x00001fec, 0x00001fe5 }, { 0x00001ff8, 0x00001f78 }, { 0x00001ff9, 0x00001f79 }, { 0x00001ffa, 0x00001f7c }, { 0x00001ffb, 0x00001f7d }, { 0x00001ffc, 0x00001ff3 }, { 0x00002126, 0x000003c9 }, { 0x0000212a, 0x0000006b }, { 0x0000212b, 0x000000e5 }, { 0x00002132, 0x0000214e }, { 0x00002160, 0x00002170 }, { 0x00002161, 0x00002171 }, { 0x00002162, 0x00002172 }, { 0x00002163, 0x00002173 }, { 0x00002164, 0x00002174 }, { 0x00002165, 0x00002175 }, { 0x00002166, 0x00002176 }, { 0x00002167, 0x00002177 }, { 0x00002168, 0x00002178 }, { 0x00002169, 0x00002179 }, { 0x0000216a, 0x0000217a }, { 0x0000216b, 0x0000217b }, { 0x0000216c, 0x0000217c }, { 0x0000216d, 0x0000217d }, { 0x0000216e, 0x0000217e }, { 0x0000216f, 0x0000217f }, { 0x00002183, 0x00002184 }, { 0x000024b6, 0x000024d0 }, { 0x000024b7, 0x000024d1 }, { 0x000024b8, 0x000024d2 }, { 0x000024b9, 0x000024d3 }, { 0x000024ba, 0x000024d4 }, { 0x000024bb, 0x000024d5 }, { 0x000024bc, 0x000024d6 }, { 0x000024bd, 0x000024d7 }, { 0x000024be, 0x000024d8 }, { 0x000024bf, 0x000024d9 }, { 0x000024c0, 0x000024da }, { 0x000024c1, 0x000024db }, { 0x000024c2, 0x000024dc }, { 0x000024c3, 0x000024dd }, { 0x000024c4, 0x000024de }, { 0x000024c5, 0x000024df }, { 0x000024c6, 0x000024e0 }, { 0x000024c7, 0x000024e1 }, { 0x000024c8, 0x000024e2 }, { 0x000024c9, 0x000024e3 }, { 0x000024ca, 0x000024e4 }, { 0x000024cb, 0x000024e5 }, { 0x000024cc, 0x000024e6 }, { 0x000024cd, 0x000024e7 }, { 0x000024ce, 0x000024e8 }, { 0x000024cf, 0x000024e9 }, { 0x00002c00, 0x00002c30 }, { 0x00002c01, 0x00002c31 }, { 0x00002c02, 0x00002c32 }, { 0x00002c03, 0x00002c33 }, { 0x00002c04, 0x00002c34 }, { 0x00002c05, 0x00002c35 }, { 0x00002c06, 0x00002c36 }, { 0x00002c07, 0x00002c37 }, { 0x00002c08, 0x00002c38 }, { 0x00002c09, 0x00002c39 }, { 0x00002c0a, 0x00002c3a }, { 0x00002c0b, 0x00002c3b }, { 0x00002c0c, 0x00002c3c }, { 0x00002c0d, 0x00002c3d }, { 0x00002c0e, 0x00002c3e }, { 0x00002c0f, 0x00002c3f }, { 0x00002c10, 0x00002c40 }, { 0x00002c11, 0x00002c41 }, { 0x00002c12, 0x00002c42 }, { 0x00002c13, 0x00002c43 }, { 0x00002c14, 0x00002c44 }, { 0x00002c15, 0x00002c45 }, { 0x00002c16, 0x00002c46 }, { 0x00002c17, 0x00002c47 }, { 0x00002c18, 0x00002c48 }, { 0x00002c19, 0x00002c49 }, { 0x00002c1a, 0x00002c4a }, { 0x00002c1b, 0x00002c4b }, { 0x00002c1c, 0x00002c4c }, { 0x00002c1d, 0x00002c4d }, { 0x00002c1e, 0x00002c4e }, { 0x00002c1f, 0x00002c4f }, { 0x00002c20, 0x00002c50 }, { 0x00002c21, 0x00002c51 }, { 0x00002c22, 0x00002c52 }, { 0x00002c23, 0x00002c53 }, { 0x00002c24, 0x00002c54 }, { 0x00002c25, 0x00002c55 }, { 0x00002c26, 0x00002c56 }, { 0x00002c27, 0x00002c57 }, { 0x00002c28, 0x00002c58 }, { 0x00002c29, 0x00002c59 }, { 0x00002c2a, 0x00002c5a }, { 0x00002c2b, 0x00002c5b }, { 0x00002c2c, 0x00002c5c }, { 0x00002c2d, 0x00002c5d }, { 0x00002c2e, 0x00002c5e }, { 0x00002c60, 0x00002c61 }, { 0x00002c62, 0x0000026b }, { 0x00002c63, 0x00001d7d }, { 0x00002c64, 0x0000027d }, { 0x00002c67, 0x00002c68 }, { 0x00002c69, 0x00002c6a }, { 0x00002c6b, 0x00002c6c }, { 0x00002c6d, 0x00000251 }, { 0x00002c6e, 0x00000271 }, { 0x00002c6f, 0x00000250 }, { 0x00002c70, 0x00000252 }, { 0x00002c72, 0x00002c73 }, { 0x00002c75, 0x00002c76 }, { 0x00002c7e, 0x0000023f }, { 0x00002c7f, 0x00000240 }, { 0x00002c80, 0x00002c81 }, { 0x00002c82, 0x00002c83 }, { 0x00002c84, 0x00002c85 }, { 0x00002c86, 0x00002c87 }, { 0x00002c88, 0x00002c89 }, { 0x00002c8a, 0x00002c8b }, { 0x00002c8c, 0x00002c8d }, { 0x00002c8e, 0x00002c8f }, { 0x00002c90, 0x00002c91 }, { 0x00002c92, 0x00002c93 }, { 0x00002c94, 0x00002c95 }, { 0x00002c96, 0x00002c97 }, { 0x00002c98, 0x00002c99 }, { 0x00002c9a, 0x00002c9b }, { 0x00002c9c, 0x00002c9d }, { 0x00002c9e, 0x00002c9f }, { 0x00002ca0, 0x00002ca1 }, { 0x00002ca2, 0x00002ca3 }, { 0x00002ca4, 0x00002ca5 }, { 0x00002ca6, 0x00002ca7 }, { 0x00002ca8, 0x00002ca9 }, { 0x00002caa, 0x00002cab }, { 0x00002cac, 0x00002cad }, { 0x00002cae, 0x00002caf }, { 0x00002cb0, 0x00002cb1 }, { 0x00002cb2, 0x00002cb3 }, { 0x00002cb4, 0x00002cb5 }, { 0x00002cb6, 0x00002cb7 }, { 0x00002cb8, 0x00002cb9 }, { 0x00002cba, 0x00002cbb }, { 0x00002cbc, 0x00002cbd }, { 0x00002cbe, 0x00002cbf }, { 0x00002cc0, 0x00002cc1 }, { 0x00002cc2, 0x00002cc3 }, { 0x00002cc4, 0x00002cc5 }, { 0x00002cc6, 0x00002cc7 }, { 0x00002cc8, 0x00002cc9 }, { 0x00002cca, 0x00002ccb }, { 0x00002ccc, 0x00002ccd }, { 0x00002cce, 0x00002ccf }, { 0x00002cd0, 0x00002cd1 }, { 0x00002cd2, 0x00002cd3 }, { 0x00002cd4, 0x00002cd5 }, { 0x00002cd6, 0x00002cd7 }, { 0x00002cd8, 0x00002cd9 }, { 0x00002cda, 0x00002cdb }, { 0x00002cdc, 0x00002cdd }, { 0x00002cde, 0x00002cdf }, { 0x00002ce0, 0x00002ce1 }, { 0x00002ce2, 0x00002ce3 }, { 0x00002ceb, 0x00002cec }, { 0x00002ced, 0x00002cee }, { 0x00002cf2, 0x00002cf3 }, { 0x0000a640, 0x0000a641 }, { 0x0000a642, 0x0000a643 }, { 0x0000a644, 0x0000a645 }, { 0x0000a646, 0x0000a647 }, { 0x0000a648, 0x0000a649 }, { 0x0000a64a, 0x0000a64b }, { 0x0000a64c, 0x0000a64d }, { 0x0000a64e, 0x0000a64f }, { 0x0000a650, 0x0000a651 }, { 0x0000a652, 0x0000a653 }, { 0x0000a654, 0x0000a655 }, { 0x0000a656, 0x0000a657 }, { 0x0000a658, 0x0000a659 }, { 0x0000a65a, 0x0000a65b }, { 0x0000a65c, 0x0000a65d }, { 0x0000a65e, 0x0000a65f }, { 0x0000a660, 0x0000a661 }, { 0x0000a662, 0x0000a663 }, { 0x0000a664, 0x0000a665 }, { 0x0000a666, 0x0000a667 }, { 0x0000a668, 0x0000a669 }, { 0x0000a66a, 0x0000a66b }, { 0x0000a66c, 0x0000a66d }, { 0x0000a680, 0x0000a681 }, { 0x0000a682, 0x0000a683 }, { 0x0000a684, 0x0000a685 }, { 0x0000a686, 0x0000a687 }, { 0x0000a688, 0x0000a689 }, { 0x0000a68a, 0x0000a68b }, { 0x0000a68c, 0x0000a68d }, { 0x0000a68e, 0x0000a68f }, { 0x0000a690, 0x0000a691 }, { 0x0000a692, 0x0000a693 }, { 0x0000a694, 0x0000a695 }, { 0x0000a696, 0x0000a697 }, { 0x0000a698, 0x0000a699 }, { 0x0000a69a, 0x0000a69b }, { 0x0000a722, 0x0000a723 }, { 0x0000a724, 0x0000a725 }, { 0x0000a726, 0x0000a727 }, { 0x0000a728, 0x0000a729 }, { 0x0000a72a, 0x0000a72b }, { 0x0000a72c, 0x0000a72d }, { 0x0000a72e, 0x0000a72f }, { 0x0000a732, 0x0000a733 }, { 0x0000a734, 0x0000a735 }, { 0x0000a736, 0x0000a737 }, { 0x0000a738, 0x0000a739 }, { 0x0000a73a, 0x0000a73b }, { 0x0000a73c, 0x0000a73d }, { 0x0000a73e, 0x0000a73f }, { 0x0000a740, 0x0000a741 }, { 0x0000a742, 0x0000a743 }, { 0x0000a744, 0x0000a745 }, { 0x0000a746, 0x0000a747 }, { 0x0000a748, 0x0000a749 }, { 0x0000a74a, 0x0000a74b }, { 0x0000a74c, 0x0000a74d }, { 0x0000a74e, 0x0000a74f }, { 0x0000a750, 0x0000a751 }, { 0x0000a752, 0x0000a753 }, { 0x0000a754, 0x0000a755 }, { 0x0000a756, 0x0000a757 }, { 0x0000a758, 0x0000a759 }, { 0x0000a75a, 0x0000a75b }, { 0x0000a75c, 0x0000a75d }, { 0x0000a75e, 0x0000a75f }, { 0x0000a760, 0x0000a761 }, { 0x0000a762, 0x0000a763 }, { 0x0000a764, 0x0000a765 }, { 0x0000a766, 0x0000a767 }, { 0x0000a768, 0x0000a769 }, { 0x0000a76a, 0x0000a76b }, { 0x0000a76c, 0x0000a76d }, { 0x0000a76e, 0x0000a76f }, { 0x0000a779, 0x0000a77a }, { 0x0000a77b, 0x0000a77c }, { 0x0000a77d, 0x00001d79 }, { 0x0000a77e, 0x0000a77f }, { 0x0000a780, 0x0000a781 }, { 0x0000a782, 0x0000a783 }, { 0x0000a784, 0x0000a785 }, { 0x0000a786, 0x0000a787 }, { 0x0000a78b, 0x0000a78c }, { 0x0000a78d, 0x00000265 }, { 0x0000a790, 0x0000a791 }, { 0x0000a792, 0x0000a793 }, { 0x0000a796, 0x0000a797 }, { 0x0000a798, 0x0000a799 }, { 0x0000a79a, 0x0000a79b }, { 0x0000a79c, 0x0000a79d }, { 0x0000a79e, 0x0000a79f }, { 0x0000a7a0, 0x0000a7a1 }, { 0x0000a7a2, 0x0000a7a3 }, { 0x0000a7a4, 0x0000a7a5 }, { 0x0000a7a6, 0x0000a7a7 }, { 0x0000a7a8, 0x0000a7a9 }, { 0x0000a7aa, 0x00000266 }, { 0x0000a7ab, 0x0000025c }, { 0x0000a7ac, 0x00000261 }, { 0x0000a7ad, 0x0000026c }, { 0x0000a7ae, 0x0000026a }, { 0x0000a7b0, 0x0000029e }, { 0x0000a7b1, 0x00000287 }, { 0x0000a7b2, 0x0000029d }, { 0x0000a7b3, 0x0000ab53 }, { 0x0000a7b4, 0x0000a7b5 }, { 0x0000a7b6, 0x0000a7b7 }, { 0x0000ab70, 0x000013a0 }, { 0x0000ab71, 0x000013a1 }, { 0x0000ab72, 0x000013a2 }, { 0x0000ab73, 0x000013a3 }, { 0x0000ab74, 0x000013a4 }, { 0x0000ab75, 0x000013a5 }, { 0x0000ab76, 0x000013a6 }, { 0x0000ab77, 0x000013a7 }, { 0x0000ab78, 0x000013a8 }, { 0x0000ab79, 0x000013a9 }, { 0x0000ab7a, 0x000013aa }, { 0x0000ab7b, 0x000013ab }, { 0x0000ab7c, 0x000013ac }, { 0x0000ab7d, 0x000013ad }, { 0x0000ab7e, 0x000013ae }, { 0x0000ab7f, 0x000013af }, { 0x0000ab80, 0x000013b0 }, { 0x0000ab81, 0x000013b1 }, { 0x0000ab82, 0x000013b2 }, { 0x0000ab83, 0x000013b3 }, { 0x0000ab84, 0x000013b4 }, { 0x0000ab85, 0x000013b5 }, { 0x0000ab86, 0x000013b6 }, { 0x0000ab87, 0x000013b7 }, { 0x0000ab88, 0x000013b8 }, { 0x0000ab89, 0x000013b9 }, { 0x0000ab8a, 0x000013ba }, { 0x0000ab8b, 0x000013bb }, { 0x0000ab8c, 0x000013bc }, { 0x0000ab8d, 0x000013bd }, { 0x0000ab8e, 0x000013be }, { 0x0000ab8f, 0x000013bf }, { 0x0000ab90, 0x000013c0 }, { 0x0000ab91, 0x000013c1 }, { 0x0000ab92, 0x000013c2 }, { 0x0000ab93, 0x000013c3 }, { 0x0000ab94, 0x000013c4 }, { 0x0000ab95, 0x000013c5 }, { 0x0000ab96, 0x000013c6 }, { 0x0000ab97, 0x000013c7 }, { 0x0000ab98, 0x000013c8 }, { 0x0000ab99, 0x000013c9 }, { 0x0000ab9a, 0x000013ca }, { 0x0000ab9b, 0x000013cb }, { 0x0000ab9c, 0x000013cc }, { 0x0000ab9d, 0x000013cd }, { 0x0000ab9e, 0x000013ce }, { 0x0000ab9f, 0x000013cf }, { 0x0000aba0, 0x000013d0 }, { 0x0000aba1, 0x000013d1 }, { 0x0000aba2, 0x000013d2 }, { 0x0000aba3, 0x000013d3 }, { 0x0000aba4, 0x000013d4 }, { 0x0000aba5, 0x000013d5 }, { 0x0000aba6, 0x000013d6 }, { 0x0000aba7, 0x000013d7 }, { 0x0000aba8, 0x000013d8 }, { 0x0000aba9, 0x000013d9 }, { 0x0000abaa, 0x000013da }, { 0x0000abab, 0x000013db }, { 0x0000abac, 0x000013dc }, { 0x0000abad, 0x000013dd }, { 0x0000abae, 0x000013de }, { 0x0000abaf, 0x000013df }, { 0x0000abb0, 0x000013e0 }, { 0x0000abb1, 0x000013e1 }, { 0x0000abb2, 0x000013e2 }, { 0x0000abb3, 0x000013e3 }, { 0x0000abb4, 0x000013e4 }, { 0x0000abb5, 0x000013e5 }, { 0x0000abb6, 0x000013e6 }, { 0x0000abb7, 0x000013e7 }, { 0x0000abb8, 0x000013e8 }, { 0x0000abb9, 0x000013e9 }, { 0x0000abba, 0x000013ea }, { 0x0000abbb, 0x000013eb }, { 0x0000abbc, 0x000013ec }, { 0x0000abbd, 0x000013ed }, { 0x0000abbe, 0x000013ee }, { 0x0000abbf, 0x000013ef }, { 0x0000ff21, 0x0000ff41 }, { 0x0000ff22, 0x0000ff42 }, { 0x0000ff23, 0x0000ff43 }, { 0x0000ff24, 0x0000ff44 }, { 0x0000ff25, 0x0000ff45 }, { 0x0000ff26, 0x0000ff46 }, { 0x0000ff27, 0x0000ff47 }, { 0x0000ff28, 0x0000ff48 }, { 0x0000ff29, 0x0000ff49 }, { 0x0000ff2a, 0x0000ff4a }, { 0x0000ff2b, 0x0000ff4b }, { 0x0000ff2c, 0x0000ff4c }, { 0x0000ff2d, 0x0000ff4d }, { 0x0000ff2e, 0x0000ff4e }, { 0x0000ff2f, 0x0000ff4f }, { 0x0000ff30, 0x0000ff50 }, { 0x0000ff31, 0x0000ff51 }, { 0x0000ff32, 0x0000ff52 }, { 0x0000ff33, 0x0000ff53 }, { 0x0000ff34, 0x0000ff54 }, { 0x0000ff35, 0x0000ff55 }, { 0x0000ff36, 0x0000ff56 }, { 0x0000ff37, 0x0000ff57 }, { 0x0000ff38, 0x0000ff58 }, { 0x0000ff39, 0x0000ff59 }, { 0x0000ff3a, 0x0000ff5a }, { 0x00010400, 0x00010428 }, { 0x00010401, 0x00010429 }, { 0x00010402, 0x0001042a }, { 0x00010403, 0x0001042b }, { 0x00010404, 0x0001042c }, { 0x00010405, 0x0001042d }, { 0x00010406, 0x0001042e }, { 0x00010407, 0x0001042f }, { 0x00010408, 0x00010430 }, { 0x00010409, 0x00010431 }, { 0x0001040a, 0x00010432 }, { 0x0001040b, 0x00010433 }, { 0x0001040c, 0x00010434 }, { 0x0001040d, 0x00010435 }, { 0x0001040e, 0x00010436 }, { 0x0001040f, 0x00010437 }, { 0x00010410, 0x00010438 }, { 0x00010411, 0x00010439 }, { 0x00010412, 0x0001043a }, { 0x00010413, 0x0001043b }, { 0x00010414, 0x0001043c }, { 0x00010415, 0x0001043d }, { 0x00010416, 0x0001043e }, { 0x00010417, 0x0001043f }, { 0x00010418, 0x00010440 }, { 0x00010419, 0x00010441 }, { 0x0001041a, 0x00010442 }, { 0x0001041b, 0x00010443 }, { 0x0001041c, 0x00010444 }, { 0x0001041d, 0x00010445 }, { 0x0001041e, 0x00010446 }, { 0x0001041f, 0x00010447 }, { 0x00010420, 0x00010448 }, { 0x00010421, 0x00010449 }, { 0x00010422, 0x0001044a }, { 0x00010423, 0x0001044b }, { 0x00010424, 0x0001044c }, { 0x00010425, 0x0001044d }, { 0x00010426, 0x0001044e }, { 0x00010427, 0x0001044f }, { 0x000104b0, 0x000104d8 }, { 0x000104b1, 0x000104d9 }, { 0x000104b2, 0x000104da }, { 0x000104b3, 0x000104db }, { 0x000104b4, 0x000104dc }, { 0x000104b5, 0x000104dd }, { 0x000104b6, 0x000104de }, { 0x000104b7, 0x000104df }, { 0x000104b8, 0x000104e0 }, { 0x000104b9, 0x000104e1 }, { 0x000104ba, 0x000104e2 }, { 0x000104bb, 0x000104e3 }, { 0x000104bc, 0x000104e4 }, { 0x000104bd, 0x000104e5 }, { 0x000104be, 0x000104e6 }, { 0x000104bf, 0x000104e7 }, { 0x000104c0, 0x000104e8 }, { 0x000104c1, 0x000104e9 }, { 0x000104c2, 0x000104ea }, { 0x000104c3, 0x000104eb }, { 0x000104c4, 0x000104ec }, { 0x000104c5, 0x000104ed }, { 0x000104c6, 0x000104ee }, { 0x000104c7, 0x000104ef }, { 0x000104c8, 0x000104f0 }, { 0x000104c9, 0x000104f1 }, { 0x000104ca, 0x000104f2 }, { 0x000104cb, 0x000104f3 }, { 0x000104cc, 0x000104f4 }, { 0x000104cd, 0x000104f5 }, { 0x000104ce, 0x000104f6 }, { 0x000104cf, 0x000104f7 }, { 0x000104d0, 0x000104f8 }, { 0x000104d1, 0x000104f9 }, { 0x000104d2, 0x000104fa }, { 0x000104d3, 0x000104fb }, { 0x00010c80, 0x00010cc0 }, { 0x00010c81, 0x00010cc1 }, { 0x00010c82, 0x00010cc2 }, { 0x00010c83, 0x00010cc3 }, { 0x00010c84, 0x00010cc4 }, { 0x00010c85, 0x00010cc5 }, { 0x00010c86, 0x00010cc6 }, { 0x00010c87, 0x00010cc7 }, { 0x00010c88, 0x00010cc8 }, { 0x00010c89, 0x00010cc9 }, { 0x00010c8a, 0x00010cca }, { 0x00010c8b, 0x00010ccb }, { 0x00010c8c, 0x00010ccc }, { 0x00010c8d, 0x00010ccd }, { 0x00010c8e, 0x00010cce }, { 0x00010c8f, 0x00010ccf }, { 0x00010c90, 0x00010cd0 }, { 0x00010c91, 0x00010cd1 }, { 0x00010c92, 0x00010cd2 }, { 0x00010c93, 0x00010cd3 }, { 0x00010c94, 0x00010cd4 }, { 0x00010c95, 0x00010cd5 }, { 0x00010c96, 0x00010cd6 }, { 0x00010c97, 0x00010cd7 }, { 0x00010c98, 0x00010cd8 }, { 0x00010c99, 0x00010cd9 }, { 0x00010c9a, 0x00010cda }, { 0x00010c9b, 0x00010cdb }, { 0x00010c9c, 0x00010cdc }, { 0x00010c9d, 0x00010cdd }, { 0x00010c9e, 0x00010cde }, { 0x00010c9f, 0x00010cdf }, { 0x00010ca0, 0x00010ce0 }, { 0x00010ca1, 0x00010ce1 }, { 0x00010ca2, 0x00010ce2 }, { 0x00010ca3, 0x00010ce3 }, { 0x00010ca4, 0x00010ce4 }, { 0x00010ca5, 0x00010ce5 }, { 0x00010ca6, 0x00010ce6 }, { 0x00010ca7, 0x00010ce7 }, { 0x00010ca8, 0x00010ce8 }, { 0x00010ca9, 0x00010ce9 }, { 0x00010caa, 0x00010cea }, { 0x00010cab, 0x00010ceb }, { 0x00010cac, 0x00010cec }, { 0x00010cad, 0x00010ced }, { 0x00010cae, 0x00010cee }, { 0x00010caf, 0x00010cef }, { 0x00010cb0, 0x00010cf0 }, { 0x00010cb1, 0x00010cf1 }, { 0x00010cb2, 0x00010cf2 }, { 0x000118a0, 0x000118c0 }, { 0x000118a1, 0x000118c1 }, { 0x000118a2, 0x000118c2 }, { 0x000118a3, 0x000118c3 }, { 0x000118a4, 0x000118c4 }, { 0x000118a5, 0x000118c5 }, { 0x000118a6, 0x000118c6 }, { 0x000118a7, 0x000118c7 }, { 0x000118a8, 0x000118c8 }, { 0x000118a9, 0x000118c9 }, { 0x000118aa, 0x000118ca }, { 0x000118ab, 0x000118cb }, { 0x000118ac, 0x000118cc }, { 0x000118ad, 0x000118cd }, { 0x000118ae, 0x000118ce }, { 0x000118af, 0x000118cf }, { 0x000118b0, 0x000118d0 }, { 0x000118b1, 0x000118d1 }, { 0x000118b2, 0x000118d2 }, { 0x000118b3, 0x000118d3 }, { 0x000118b4, 0x000118d4 }, { 0x000118b5, 0x000118d5 }, { 0x000118b6, 0x000118d6 }, { 0x000118b7, 0x000118d7 }, { 0x000118b8, 0x000118d8 }, { 0x000118b9, 0x000118d9 }, { 0x000118ba, 0x000118da }, { 0x000118bb, 0x000118db }, { 0x000118bc, 0x000118dc }, { 0x000118bd, 0x000118dd }, { 0x000118be, 0x000118de }, { 0x000118bf, 0x000118df }, { 0x0001e900, 0x0001e922 }, { 0x0001e901, 0x0001e923 }, { 0x0001e902, 0x0001e924 }, { 0x0001e903, 0x0001e925 }, { 0x0001e904, 0x0001e926 }, { 0x0001e905, 0x0001e927 }, { 0x0001e906, 0x0001e928 }, { 0x0001e907, 0x0001e929 }, { 0x0001e908, 0x0001e92a }, { 0x0001e909, 0x0001e92b }, { 0x0001e90a, 0x0001e92c }, { 0x0001e90b, 0x0001e92d }, { 0x0001e90c, 0x0001e92e }, { 0x0001e90d, 0x0001e92f }, { 0x0001e90e, 0x0001e930 }, { 0x0001e90f, 0x0001e931 }, { 0x0001e910, 0x0001e932 }, { 0x0001e911, 0x0001e933 }, { 0x0001e912, 0x0001e934 }, { 0x0001e913, 0x0001e935 }, { 0x0001e914, 0x0001e936 }, { 0x0001e915, 0x0001e937 }, { 0x0001e916, 0x0001e938 }, { 0x0001e917, 0x0001e939 }, { 0x0001e918, 0x0001e93a }, { 0x0001e919, 0x0001e93b }, { 0x0001e91a, 0x0001e93c }, { 0x0001e91b, 0x0001e93d }, { 0x0001e91c, 0x0001e93e }, { 0x0001e91d, 0x0001e93f }, { 0x0001e91e, 0x0001e940 }, { 0x0001e91f, 0x0001e941 }, { 0x0001e920, 0x0001e942 }, { 0x0001e921, 0x0001e943 } }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_TEST_UNICODE_CASE_FOLDING_MAPPINGS_H ) */ libfsapfs-20190210/tests/fsapfs_test_key_bag_header.c0000664000175000017500000002200313426640002024635 0ustar00lordyestalordyesta00000000000000/* * Library key_bag_header type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_key_bag_header.h" uint8_t fsapfs_test_key_bag_header_data1[ 16 ] = { 0x02, 0x00, 0x02, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_key_bag_header_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_bag_header_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_key_bag_header_t *key_bag_header = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_key_bag_header_initialize( &key_bag_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "key_bag_header", key_bag_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_key_bag_header_free( &key_bag_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_header", key_bag_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_key_bag_header_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); key_bag_header = (libfsapfs_key_bag_header_t *) 0x12345678UL; result = libfsapfs_key_bag_header_initialize( &key_bag_header, &error ); key_bag_header = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_key_bag_header_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_key_bag_header_initialize( &key_bag_header, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( key_bag_header != NULL ) { libfsapfs_key_bag_header_free( &key_bag_header, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_header", key_bag_header ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_key_bag_header_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_key_bag_header_initialize( &key_bag_header, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( key_bag_header != NULL ) { libfsapfs_key_bag_header_free( &key_bag_header, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_header", key_bag_header ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( key_bag_header != NULL ) { libfsapfs_key_bag_header_free( &key_bag_header, NULL ); } return( 0 ); } /* Tests the libfsapfs_key_bag_header_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_bag_header_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_key_bag_header_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_key_bag_header_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_bag_header_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_key_bag_header_t *key_bag_header = NULL; int result = 0; /* Initialize test */ result = libfsapfs_key_bag_header_initialize( &key_bag_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "key_bag_header", key_bag_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_key_bag_header_read_data( key_bag_header, fsapfs_test_key_bag_header_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_key_bag_header_read_data( NULL, fsapfs_test_key_bag_header_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_key_bag_header_read_data( key_bag_header, NULL, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_key_bag_header_read_data( key_bag_header, fsapfs_test_key_bag_header_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_key_bag_header_read_data( key_bag_header, fsapfs_test_key_bag_header_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_key_bag_header_free( &key_bag_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_header", key_bag_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( key_bag_header != NULL ) { libfsapfs_key_bag_header_free( &key_bag_header, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_key_bag_header_initialize", fsapfs_test_key_bag_header_initialize ); FSAPFS_TEST_RUN( "libfsapfs_key_bag_header_free", fsapfs_test_key_bag_header_free ); FSAPFS_TEST_RUN( "libfsapfs_key_bag_header_read_data", fsapfs_test_key_bag_header_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_memory.c0000664000175000017500000001112713426637447023264 0ustar00lordyestalordyesta00000000000000/* * Memory allocation functions for testing * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) #define __USE_GNU #include #undef __USE_GNU #endif #include "fsapfs_test_memory.h" #if defined( HAVE_FSAPFS_TEST_MEMORY ) static void *(*fsapfs_test_real_malloc)(size_t) = NULL; static void *(*fsapfs_test_real_memcpy)(void *, void *, size_t) = NULL; static void *(*fsapfs_test_real_memset)(void *, int, size_t) = NULL; static void *(*fsapfs_test_real_realloc)(void *, size_t) = NULL; int fsapfs_test_malloc_attempts_before_fail = -1; int fsapfs_test_memcpy_attempts_before_fail = -1; int fsapfs_test_memset_attempts_before_fail = -1; int fsapfs_test_realloc_attempts_before_fail = -1; /* Custom malloc for testing memory error cases * Note this function might fail if compiled with optimation * Returns a pointer to newly allocated data or NULL */ void *malloc( size_t size ) { void *ptr = NULL; if( fsapfs_test_real_malloc == NULL ) { fsapfs_test_real_malloc = dlsym( RTLD_NEXT, "malloc" ); } if( fsapfs_test_malloc_attempts_before_fail == 0 ) { fsapfs_test_malloc_attempts_before_fail = -1; return( NULL ); } else if( fsapfs_test_malloc_attempts_before_fail > 0 ) { fsapfs_test_malloc_attempts_before_fail--; } ptr = fsapfs_test_real_malloc( size ); return( ptr ); } /* Custom memcpy for testing memory error cases * Note this function might fail if compiled with optimation and as a shared libary * Returns a pointer to newly allocated data or NULL */ void *memcpy( void *destination, void *source, size_t size ) { if( fsapfs_test_real_memcpy == NULL ) { fsapfs_test_real_memcpy = dlsym( RTLD_NEXT, "memcpy" ); } if( fsapfs_test_memcpy_attempts_before_fail == 0 ) { fsapfs_test_memcpy_attempts_before_fail = -1; return( NULL ); } else if( fsapfs_test_memcpy_attempts_before_fail > 0 ) { fsapfs_test_memcpy_attempts_before_fail--; } destination = fsapfs_test_real_memcpy( destination, source, size ); return( destination ); } /* Custom memset for testing memory error cases * Note this function might fail if compiled with optimation and as a shared libary * Returns a pointer to newly allocated data or NULL */ void *memset( void *ptr, int constant, size_t size ) { if( fsapfs_test_real_memset == NULL ) { fsapfs_test_real_memset = dlsym( RTLD_NEXT, "memset" ); } if( fsapfs_test_memset_attempts_before_fail == 0 ) { fsapfs_test_memset_attempts_before_fail = -1; return( NULL ); } else if( fsapfs_test_memset_attempts_before_fail > 0 ) { fsapfs_test_memset_attempts_before_fail--; } ptr = fsapfs_test_real_memset( ptr, constant, size ); return( ptr ); } /* Custom realloc for testing memory error cases * Note this function might fail if compiled with optimation * Returns a pointer to reallocated data or NULL */ void *realloc( void *ptr, size_t size ) { if( fsapfs_test_real_realloc == NULL ) { fsapfs_test_real_realloc = dlsym( RTLD_NEXT, "realloc" ); } if( fsapfs_test_realloc_attempts_before_fail == 0 ) { fsapfs_test_realloc_attempts_before_fail = -1; return( NULL ); } else if( fsapfs_test_realloc_attempts_before_fail > 0 ) { fsapfs_test_realloc_attempts_before_fail--; } ptr = fsapfs_test_real_realloc( ptr, size ); return( ptr ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ libfsapfs-20190210/tests/fsapfs_test_object_map_descriptor.c0000664000175000017500000003163113426640002026274 0ustar00lordyestalordyesta00000000000000/* * Library object_map_descriptor type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_object_map_descriptor.h" uint8_t fsapfs_test_object_map_descriptor_btree_key_data1[ 16 ] = { 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; uint8_t fsapfs_test_object_map_descriptor_btree_value_data1[ 16 ] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_object_map_descriptor_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_descriptor_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_object_map_descriptor_t *object_map_descriptor = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_object_map_descriptor_initialize( &object_map_descriptor, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_object_map_descriptor_free( &object_map_descriptor, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_map_descriptor_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); object_map_descriptor = (libfsapfs_object_map_descriptor_t *) 0x12345678UL; result = libfsapfs_object_map_descriptor_initialize( &object_map_descriptor, &error ); object_map_descriptor = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_object_map_descriptor_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_object_map_descriptor_initialize( &object_map_descriptor, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_object_map_descriptor_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_object_map_descriptor_initialize( &object_map_descriptor, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } return( 0 ); } /* Tests the libfsapfs_object_map_descriptor_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_descriptor_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_object_map_descriptor_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_object_map_descriptor_read_key_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_descriptor_read_key_data( void ) { libcerror_error_t *error = NULL; libfsapfs_object_map_descriptor_t *object_map_descriptor = NULL; int result = 0; /* Initialize test */ result = libfsapfs_object_map_descriptor_initialize( &object_map_descriptor, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_object_map_descriptor_read_key_data( object_map_descriptor, fsapfs_test_object_map_descriptor_btree_key_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_map_descriptor_read_key_data( NULL, fsapfs_test_object_map_descriptor_btree_key_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_descriptor_read_key_data( object_map_descriptor, NULL, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_descriptor_read_key_data( object_map_descriptor, fsapfs_test_object_map_descriptor_btree_key_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_descriptor_read_key_data( object_map_descriptor, fsapfs_test_object_map_descriptor_btree_key_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_object_map_descriptor_free( &object_map_descriptor, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } return( 0 ); } /* Tests the libfsapfs_object_map_descriptor_read_value_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_map_descriptor_read_value_data( void ) { libcerror_error_t *error = NULL; libfsapfs_object_map_descriptor_t *object_map_descriptor = NULL; int result = 0; /* Initialize test */ result = libfsapfs_object_map_descriptor_initialize( &object_map_descriptor, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_object_map_descriptor_read_value_data( object_map_descriptor, fsapfs_test_object_map_descriptor_btree_value_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_map_descriptor_read_value_data( NULL, fsapfs_test_object_map_descriptor_btree_value_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_descriptor_read_value_data( object_map_descriptor, NULL, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_descriptor_read_value_data( object_map_descriptor, fsapfs_test_object_map_descriptor_btree_value_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_map_descriptor_read_value_data( object_map_descriptor, fsapfs_test_object_map_descriptor_btree_value_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_object_map_descriptor_free( &object_map_descriptor, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object_map_descriptor", object_map_descriptor ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_object_map_descriptor_initialize", fsapfs_test_object_map_descriptor_initialize ); FSAPFS_TEST_RUN( "libfsapfs_object_map_descriptor_free", fsapfs_test_object_map_descriptor_free ); FSAPFS_TEST_RUN( "libfsapfs_object_map_descriptor_read_key_data", fsapfs_test_object_map_descriptor_read_key_data ); FSAPFS_TEST_RUN( "libfsapfs_object_map_descriptor_read_value_data", fsapfs_test_object_map_descriptor_read_value_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_container_superblock.c0000664000175000017500000011372013426640002026146 0ustar00lordyestalordyesta00000000000000/* * Library container_superblock type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_container_superblock.h" uint8_t fsapfs_test_container_superblock_data1[ 4096 ] = { 0x77, 0x1e, 0x2f, 0x59, 0xfd, 0xbc, 0x6d, 0xce, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x4e, 0x58, 0x53, 0x42, 0x00, 0x10, 0x00, 0x00, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x69, 0xa3, 0x3c, 0x65, 0xe6, 0x4d, 0xaf, 0xbd, 0x60, 0x08, 0x14, 0x93, 0xf9, 0x11, 0x16, 0x06, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_container_superblock_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_superblock_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_container_superblock_t *container_superblock = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_container_superblock_initialize( &container_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_superblock_free( &container_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_superblock_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); container_superblock = (libfsapfs_container_superblock_t *) 0x12345678UL; result = libfsapfs_container_superblock_initialize( &container_superblock, &error ); container_superblock = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_container_superblock_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_container_superblock_initialize( &container_superblock, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( container_superblock != NULL ) { libfsapfs_container_superblock_free( &container_superblock, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_container_superblock_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_container_superblock_initialize( &container_superblock, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( container_superblock != NULL ) { libfsapfs_container_superblock_free( &container_superblock, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container_superblock != NULL ) { libfsapfs_container_superblock_free( &container_superblock, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_superblock_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_superblock_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_container_superblock_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_container_superblock_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_superblock_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_container_superblock_t *container_superblock = NULL; int result = 0; /* Initialize test */ result = libfsapfs_container_superblock_initialize( &container_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_container_superblock_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_container_superblock_read_file_io_handle( container_superblock, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_superblock_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_superblock_read_file_io_handle( container_superblock, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_superblock_read_file_io_handle( container_superblock, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_container_superblock_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_superblock_read_file_io_handle( container_superblock, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_container_superblock_free( &container_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( container_superblock != NULL ) { libfsapfs_container_superblock_free( &container_superblock, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_superblock_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_superblock_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_container_superblock_t *container_superblock = NULL; int result = 0; /* Initialize test */ result = libfsapfs_container_superblock_initialize( &container_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_container_superblock_read_data( container_superblock, fsapfs_test_container_superblock_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_superblock_read_data( NULL, fsapfs_test_container_superblock_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_superblock_read_data( container_superblock, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_superblock_read_data( container_superblock, fsapfs_test_container_superblock_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_superblock_read_data( container_superblock, fsapfs_test_container_superblock_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_container_superblock_free( &container_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_superblock", container_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container_superblock != NULL ) { libfsapfs_container_superblock_free( &container_superblock, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_container_superblock_initialize", fsapfs_test_container_superblock_initialize ); FSAPFS_TEST_RUN( "libfsapfs_container_superblock_free", fsapfs_test_container_superblock_free ); FSAPFS_TEST_RUN( "libfsapfs_container_superblock_read_file_io_handle", fsapfs_test_container_superblock_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_container_superblock_read_data", fsapfs_test_container_superblock_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_compression.c0000664000175000017500000003016713426637447024322 0ustar00lordyestalordyesta00000000000000/* * Library compression type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_compression.h" #include "../libfsapfs/libfsapfs_definitions.h" uint8_t fsapfs_test_compression_deflate_compressed_data1[ 24 ] = { 0x78, 0x9c, 0x63, 0x60, 0x64, 0x62, 0x66, 0x61, 0x65, 0x63, 0xe7, 0xe0, 0xe4, 0xe2, 0xe6, 0xe1, 0xe5, 0xe3, 0x07, 0x00, 0x02, 0xb8, 0x00, 0x79 }; uint8_t fsapfs_test_compression_deflate_uncompressed_data1[ 17 ] = { 0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; uint8_t fsapfs_test_compression_lzvn_compressed_data1[ 19 ] = { 0xe0, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x06 }; uint8_t fsapfs_test_compression_lzvn_uncompressed_data1[ 17 ] = { 0x06, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; uint8_t fsapfs_test_compression_uncompressed_data1[ 16 ] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_decompress_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_decompress_data( void ) { uint8_t uncompressed_data[ 16 ]; libcerror_error_t *error = NULL; size_t uncompressed_data_size = 0; int result = 0; /* Test regular cases */ uncompressed_data_size = 16; result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_compressed_data1, 24, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_SIZE( "uncompressed_data_size", uncompressed_data_size, (size_t) 16 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = memory_compare( uncompressed_data, fsapfs_test_compression_uncompressed_data1, 16 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); uncompressed_data_size = 16; result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_SIZE( "uncompressed_data_size", uncompressed_data_size, (size_t) 16 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = memory_compare( uncompressed_data, fsapfs_test_compression_uncompressed_data1, 16 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); uncompressed_data_size = 16; result = libfsapfs_decompress_data( fsapfs_test_compression_lzvn_compressed_data1, 19, LIBFSAPFS_COMPRESSION_METHOD_LZVN, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_SIZE( "uncompressed_data_size", uncompressed_data_size, (size_t) 16 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = memory_compare( uncompressed_data, fsapfs_test_compression_uncompressed_data1, 16 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); uncompressed_data_size = 16; result = libfsapfs_decompress_data( fsapfs_test_compression_lzvn_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_LZVN, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_SIZE( "uncompressed_data_size", uncompressed_data_size, (size_t) 16 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = memory_compare( uncompressed_data, fsapfs_test_compression_uncompressed_data1, 16 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); /* Test error cases */ uncompressed_data_size = 16; result = libfsapfs_decompress_data( NULL, 24, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_decompress_data( uncompressed_data, 16, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_compressed_data1, 24, -1, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_compressed_data1, 24, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, NULL, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_compressed_data1, 24, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); uncompressed_data_size = 16; result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_uncompressed_data1, (size_t) SSIZE_MAX + 1, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); uncompressed_data_size = 0; result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); uncompressed_data_size = (size_t) SSIZE_MAX + 1; result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) && defined( OPTIMIZATION_DISABLED ) uncompressed_data_size = 16; /* Test libfsapfs_decompress_data with memcpy failing */ fsapfs_test_memcpy_attempts_before_fail = 0; result = libfsapfs_decompress_data( fsapfs_test_compression_deflate_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE, uncompressed_data, &uncompressed_data_size, &error ); if( fsapfs_test_memcpy_attempts_before_fail != -1 ) { fsapfs_test_memcpy_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) && defined( OPTIMIZATION_DISABLED ) */ uncompressed_data_size = 16; result = libfsapfs_decompress_data( fsapfs_test_compression_lzvn_uncompressed_data1, (size_t) SSIZE_MAX + 1, LIBFSAPFS_COMPRESSION_METHOD_LZVN, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); uncompressed_data_size = 0; result = libfsapfs_decompress_data( fsapfs_test_compression_lzvn_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_LZVN, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); uncompressed_data_size = (size_t) SSIZE_MAX + 1; result = libfsapfs_decompress_data( fsapfs_test_compression_lzvn_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_LZVN, uncompressed_data, &uncompressed_data_size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) && defined( OPTIMIZATION_DISABLED ) uncompressed_data_size = 16; /* Test libfsapfs_decompress_data with memcpy failing */ fsapfs_test_memcpy_attempts_before_fail = 0; result = libfsapfs_decompress_data( fsapfs_test_compression_lzvn_uncompressed_data1, 17, LIBFSAPFS_COMPRESSION_METHOD_LZVN, uncompressed_data, &uncompressed_data_size, &error ); if( fsapfs_test_memcpy_attempts_before_fail != -1 ) { fsapfs_test_memcpy_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) && defined( OPTIMIZATION_DISABLED ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_decompress_data", fsapfs_test_decompress_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_checksum.c0000664000175000017500000001013613426637447023555 0ustar00lordyestalordyesta00000000000000/* * Library checksum functions test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_checksum.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_checksum_initialize_crc32_table function * Returns 1 if successful or 0 if not */ int fsapfs_test_checksum_initialize_crc32_table( void ) { /* Test invocation of function only */ libfsapfs_checksum_initialize_crc32_table( 0x82f63b78UL ); return( 1 ); } /* Tests the libfsapfs_checksum_calculate_weak_crc32 function * Returns 1 if successful or 0 if not */ int fsapfs_test_checksum_calculate_weak_crc32( void ) { uint8_t data[ 16 ] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; libcerror_error_t *error = NULL; uint32_t checksum = 0; int result = 0; libfsapfs_checksum_crc32_table_computed = 0; /* Test regular cases */ result = libfsapfs_checksum_calculate_weak_crc32( &checksum, data, 16, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_UINT32( "checksum", checksum, (uint32_t) 0x9bb99201UL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_checksum_calculate_weak_crc32( NULL, data, 16, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checksum_calculate_weak_crc32( &checksum, NULL, 16, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_checksum_calculate_weak_crc32( &checksum, data, (size_t) SSIZE_MAX + 1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_checksum_initialize_crc32_table", fsapfs_test_checksum_initialize_crc32_table ); FSAPFS_TEST_RUN( "libfsapfs_checksum_calculate_weak_crc32", fsapfs_test_checksum_calculate_weak_crc32 ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_container_data_handle.c0000664000175000017500000001743313426640002026225 0ustar00lordyestalordyesta00000000000000/* * Library container_data_handle type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_container_data_handle.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_container_data_handle_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_data_handle_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_io_handle_t *io_handle = NULL; libfsapfs_container_data_handle_t *container_data_handle = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Initialize test */ result = libfsapfs_io_handle_initialize( &io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_container_data_handle_initialize( &container_data_handle, io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_data_handle", container_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_data_handle_free( &container_data_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_data_handle", container_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_data_handle_initialize( NULL, io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); container_data_handle = (libfsapfs_container_data_handle_t *) 0x12345678UL; result = libfsapfs_container_data_handle_initialize( &container_data_handle, io_handle, &error ); container_data_handle = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_data_handle_initialize( &container_data_handle, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_container_data_handle_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_container_data_handle_initialize( &container_data_handle, io_handle, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( container_data_handle != NULL ) { libfsapfs_container_data_handle_free( &container_data_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_data_handle", container_data_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_container_data_handle_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_container_data_handle_initialize( &container_data_handle, io_handle, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( container_data_handle != NULL ) { libfsapfs_container_data_handle_free( &container_data_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_data_handle", container_data_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ /* Clean up */ result = libfsapfs_io_handle_free( &io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "io_handle", io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container_data_handle != NULL ) { libfsapfs_container_data_handle_free( &container_data_handle, NULL ); } if( io_handle != NULL ) { libfsapfs_io_handle_free( &io_handle, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_data_handle_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_data_handle_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_container_data_handle_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_container_data_handle_initialize", fsapfs_test_container_data_handle_initialize ); FSAPFS_TEST_RUN( "libfsapfs_container_data_handle_free", fsapfs_test_container_data_handle_free ); /* TODO: add tests for libfsapfs_container_data_handle_set_volume_master_key */ /* TODO: add tests for libfsapfs_container_data_handle_read_sector */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_object.c0000664000175000017500000003035013426640002023176 0ustar00lordyestalordyesta00000000000000/* * Library object type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_object.h" uint8_t fsapfs_test_object_data1[ 32 ] = { 0x77, 0x1e, 0x2f, 0x59, 0xfd, 0xbc, 0x6d, 0xce, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_object_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_object_t *object = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_object_initialize( &object, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_object_free( &object, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); object = (libfsapfs_object_t *) 0x12345678UL; result = libfsapfs_object_initialize( &object, &error ); object = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_object_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_object_initialize( &object, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( object != NULL ) { libfsapfs_object_free( &object, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_object_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_object_initialize( &object, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( object != NULL ) { libfsapfs_object_free( &object, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object != NULL ) { libfsapfs_object_free( &object, NULL ); } return( 0 ); } /* Tests the libfsapfs_object_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_object_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_object_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_object_t *object = NULL; int result = 0; /* Initialize test */ result = libfsapfs_object_initialize( &object, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_object_data1, 32, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_object_read_file_io_handle( object, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_read_file_io_handle( object, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_read_file_io_handle( object, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_object_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_object_read_file_io_handle( object, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_object_free( &object, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( object != NULL ) { libfsapfs_object_free( &object, NULL ); } return( 0 ); } /* Tests the libfsapfs_object_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_object_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_object_t *object = NULL; int result = 0; /* Initialize test */ result = libfsapfs_object_initialize( &object, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_object_read_data( object, fsapfs_test_object_data1, 32, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_object_read_data( NULL, fsapfs_test_object_data1, 32, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_read_data( object, NULL, 32, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_read_data( object, fsapfs_test_object_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_object_read_data( object, fsapfs_test_object_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_object_free( &object, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "object", object ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( object != NULL ) { libfsapfs_object_free( &object, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_object_initialize", fsapfs_test_object_initialize ); FSAPFS_TEST_RUN( "libfsapfs_object_free", fsapfs_test_object_free ); FSAPFS_TEST_RUN( "libfsapfs_object_read_file_io_handle", fsapfs_test_object_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_object_read_data", fsapfs_test_object_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_file_extent.c0000664000175000017500000001420113426637447024256 0ustar00lordyestalordyesta00000000000000/* * Library file_extent type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_file_extent.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_file_extent_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_file_extent_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_file_extent_t *file_extent = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_file_extent_initialize( &file_extent, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_extent", file_extent ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_file_extent_free( &file_extent, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_extent", file_extent ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_file_extent_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); file_extent = (libfsapfs_file_extent_t *) 0x12345678UL; result = libfsapfs_file_extent_initialize( &file_extent, &error ); file_extent = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_file_extent_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_file_extent_initialize( &file_extent, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( file_extent != NULL ) { libfsapfs_file_extent_free( &file_extent, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_extent", file_extent ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_file_extent_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_file_extent_initialize( &file_extent, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( file_extent != NULL ) { libfsapfs_file_extent_free( &file_extent, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_extent", file_extent ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_extent != NULL ) { libfsapfs_file_extent_free( &file_extent, NULL ); } return( 0 ); } /* Tests the libfsapfs_file_extent_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_file_extent_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_file_extent_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_file_extent_initialize", fsapfs_test_file_extent_initialize ); FSAPFS_TEST_RUN( "libfsapfs_file_extent_free", fsapfs_test_file_extent_free ); /* TODO: add tests for libfsapfs_file_extent_read_key_data */ /* TODO: add tests for libfsapfs_file_extent_read_value_data */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_buffer_data_handle.c0000664000175000017500000003574613426640002025523 0ustar00lordyestalordyesta00000000000000/* * Library buffer_data_handle type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_buffer_data_handle.h" uint8_t fsapfs_test_buffer_data_handle_data1[ 16 ] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_buffer_data_handle_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_buffer_data_handle_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_buffer_data_handle_t *buffer_data_handle = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, fsapfs_test_buffer_data_handle_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_buffer_data_handle_free( &buffer_data_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_buffer_data_handle_initialize( NULL, fsapfs_test_buffer_data_handle_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); buffer_data_handle = (libfsapfs_buffer_data_handle_t *) 0x12345678UL; result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, fsapfs_test_buffer_data_handle_data1, 16, &error ); buffer_data_handle = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, NULL, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, fsapfs_test_buffer_data_handle_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_buffer_data_handle_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, fsapfs_test_buffer_data_handle_data1, 16, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( buffer_data_handle != NULL ) { libfsapfs_buffer_data_handle_free( &buffer_data_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_buffer_data_handle_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, fsapfs_test_buffer_data_handle_data1, 16, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( buffer_data_handle != NULL ) { libfsapfs_buffer_data_handle_free( &buffer_data_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( buffer_data_handle != NULL ) { libfsapfs_buffer_data_handle_free( &buffer_data_handle, NULL ); } return( 0 ); } /* Tests the libfsapfs_buffer_data_handle_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_buffer_data_handle_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_buffer_data_handle_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_buffer_data_handle_read_segment_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_buffer_data_handle_read_segment_data( void ) { uint8_t segment_data[ 16 ]; libcerror_error_t *error = NULL; libfsapfs_buffer_data_handle_t *buffer_data_handle = NULL; ssize_t read_count = 0; int result = 0; /* Initialize test */ result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, fsapfs_test_buffer_data_handle_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ read_count = libfsapfs_buffer_data_handle_read_segment_data( buffer_data_handle, NULL, 0, 0, segment_data, 12, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "read_count", read_count, (ssize_t) 12 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = memory_compare( segment_data, fsapfs_test_buffer_data_handle_data1, 12 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); read_count = libfsapfs_buffer_data_handle_read_segment_data( buffer_data_handle, NULL, 0, 0, segment_data, 8, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "read_count", read_count, (ssize_t) 4 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = memory_compare( segment_data, &( fsapfs_test_buffer_data_handle_data1[ 12 ] ), 4 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); read_count = libfsapfs_buffer_data_handle_read_segment_data( buffer_data_handle, NULL, 0, 0, segment_data, 16, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "read_count", read_count, (ssize_t) 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ read_count = libfsapfs_buffer_data_handle_read_segment_data( NULL, NULL, 0, 0, segment_data, 16, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "read_count", read_count, (ssize_t) -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); read_count = libfsapfs_buffer_data_handle_read_segment_data( buffer_data_handle, NULL, -1, 0, segment_data, 16, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "read_count", read_count, (ssize_t) -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); read_count = libfsapfs_buffer_data_handle_read_segment_data( buffer_data_handle, NULL, 0, 0, NULL, 16, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "read_count", read_count, (ssize_t) -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); read_count = libfsapfs_buffer_data_handle_read_segment_data( buffer_data_handle, NULL, 0, 0, segment_data, (size_t) SSIZE_MAX + 1, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "read_count", read_count, (ssize_t) -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_buffer_data_handle_free( &buffer_data_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( buffer_data_handle != NULL ) { libfsapfs_buffer_data_handle_free( &buffer_data_handle, NULL ); } return( 0 ); } /* Tests the libfsapfs_buffer_data_handle_seek_segment_offset function * Returns 1 if successful or 0 if not */ int fsapfs_test_buffer_data_handle_seek_segment_offset( void ) { libcerror_error_t *error = NULL; libfsapfs_buffer_data_handle_t *buffer_data_handle = NULL; off64_t offset = 0; int result = 0; /* Initialize test */ result = libfsapfs_buffer_data_handle_initialize( &buffer_data_handle, fsapfs_test_buffer_data_handle_data1, 16, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ offset = libfsapfs_buffer_data_handle_seek_segment_offset( buffer_data_handle, NULL, 0, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "offset", offset, (int64_t) 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ offset = libfsapfs_buffer_data_handle_seek_segment_offset( NULL, NULL, 0, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "offset", offset, (int64_t) -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); offset = libfsapfs_buffer_data_handle_seek_segment_offset( buffer_data_handle, NULL, -1, 0, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "offset", offset, (int64_t) -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); offset = libfsapfs_buffer_data_handle_seek_segment_offset( buffer_data_handle, NULL, 0, 0, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT64( "offset", offset, (int64_t) -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_buffer_data_handle_free( &buffer_data_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "buffer_data_handle", buffer_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( buffer_data_handle != NULL ) { libfsapfs_buffer_data_handle_free( &buffer_data_handle, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_buffer_data_handle_initialize", fsapfs_test_buffer_data_handle_initialize ); FSAPFS_TEST_RUN( "libfsapfs_buffer_data_handle_free", fsapfs_test_buffer_data_handle_free ); FSAPFS_TEST_RUN( "libfsapfs_buffer_data_handle_read_segment_data", fsapfs_test_buffer_data_handle_read_segment_data ); FSAPFS_TEST_RUN( "libfsapfs_buffer_data_handle_seek_segment_offset", fsapfs_test_buffer_data_handle_seek_segment_offset ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_notify.c0000664000175000017500000001042413426637450023255 0ustar00lordyestalordyesta00000000000000/* * Library notification functions test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_unused.h" /* Tests the libfsapfs_notify_set_verbose function * Returns 1 if successful or 0 if not */ int fsapfs_test_notify_set_verbose( void ) { /* Test invocation of function only */ libfsapfs_notify_set_verbose( 0 ); return( 1 ); } /* Tests the libfsapfs_notify_set_stream function * Returns 1 if successful or 0 if not */ int fsapfs_test_notify_set_stream( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_notify_set_stream( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ /* TODO test libcnotify_stream_set failure */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_notify_stream_open function * Returns 1 if successful or 0 if not */ int fsapfs_test_notify_stream_open( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_notify_stream_open( "notify_stream.log", &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_notify_stream_open( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_notify_stream_close( &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_notify_stream_close function * Returns 1 if successful or 0 if not */ int fsapfs_test_notify_stream_close( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_notify_stream_close( &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ /* TODO test libcnotify_stream_close failure */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) FSAPFS_TEST_RUN( "libfsapfs_notify_set_verbose", fsapfs_test_notify_set_verbose ) FSAPFS_TEST_RUN( "libfsapfs_notify_set_stream", fsapfs_test_notify_set_stream ) FSAPFS_TEST_RUN( "libfsapfs_notify_stream_open", fsapfs_test_notify_stream_open ) FSAPFS_TEST_RUN( "libfsapfs_notify_stream_close", fsapfs_test_notify_stream_close ) return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_btree_node.c0000664000175000017500000013024013426640002024035 0ustar00lordyestalordyesta00000000000000/* * Library btree_node type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_btree_node.h" #include "../libfsapfs/libfsapfs_btree_node_header.h" uint8_t fsapfs_test_btree_node_data1[ 4096 ] = { 0x2b, 0xd1, 0x61, 0x9d, 0xcc, 0x04, 0x11, 0xae, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x5e, 0x00, 0xd2, 0x0e, 0x38, 0x00, 0x10, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x08, 0x00, 0x08, 0x00, 0x47, 0x00, 0x16, 0x00, 0x20, 0x00, 0x08, 0x00, 0x18, 0x00, 0x08, 0x00, 0x10, 0x00, 0x08, 0x00, 0x20, 0x00, 0x08, 0x00, 0x18, 0x00, 0x08, 0x00, 0x28, 0x00, 0x08, 0x00, 0x28, 0x00, 0x08, 0x00, 0x30, 0x00, 0x08, 0x00, 0x30, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0c, 0x8c, 0xa6, 0xac, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2d, 0x64, 0x69, 0x72, 0x00, 0x1b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x75, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0xff, 0xff, 0x0e, 0x00, 0x74, 0x65, 0x73, 0x74, 0x66, 0x69, 0x6c, 0x65, 0x33, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0a, 0x6c, 0x6d, 0xaa, 0x74, 0x65, 0x73, 0x74, 0x66, 0x69, 0x6c, 0x65, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1d, 0x00, 0x00, 0x00, 0xb4, 0x00, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_btree_node_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_node_t *btree_node = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 2; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_btree_node_initialize( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_btree_node_free( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); btree_node = (libfsapfs_btree_node_t *) 0x12345678UL; result = libfsapfs_btree_node_initialize( &btree_node, &error ); btree_node = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_btree_node_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_btree_node_initialize( &btree_node, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( btree_node != NULL ) { libfsapfs_btree_node_free( &btree_node, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_btree_node_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_btree_node_initialize( &btree_node, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( btree_node != NULL ) { libfsapfs_btree_node_free( &btree_node, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_node != NULL ) { libfsapfs_btree_node_free( &btree_node, NULL ); } return( 0 ); } /* Tests the libfsapfs_btree_node_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_btree_node_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_btree_node_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_node_t *btree_node = NULL; int result = 0; /* Initialize test */ result = libfsapfs_btree_node_initialize( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_btree_node_free( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize test */ result = libfsapfs_btree_node_initialize( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_read_data( NULL, fsapfs_test_btree_node_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_read_data( btree_node, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_btree_node_read_data with malloc failing in libfsapfs_btree_node_header_initialize */ fsapfs_test_malloc_attempts_before_fail = 0; result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, 4096, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_btree_node_read_data with malloc failing in libfsapfs_btree_node_footer_initialize */ fsapfs_test_malloc_attempts_before_fail = 1; result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, 4096, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_btree_node_read_data with malloc failing in libfsapfs_btree_entry_initialize */ fsapfs_test_malloc_attempts_before_fail = 2; result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, 4096, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ /* Clean up */ result = libfsapfs_btree_node_free( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_node != NULL ) { libfsapfs_btree_node_free( &btree_node, NULL ); } return( 0 ); } /* Tests the libfsapfs_btree_node_read_object_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_read_object_data( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_node_t *btree_node = NULL; int result = 0; /* Initialize test */ result = libfsapfs_btree_node_initialize( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_btree_node_read_object_data( btree_node, fsapfs_test_btree_node_data1, 32, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_read_object_data( NULL, fsapfs_test_btree_node_data1, 32, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_read_object_data( btree_node, NULL, 32, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_read_object_data( btree_node, fsapfs_test_btree_node_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_read_object_data( btree_node, fsapfs_test_btree_node_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_btree_node_free( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_node != NULL ) { libfsapfs_btree_node_free( &btree_node, NULL ); } return( 0 ); } /* Tests the libfsapfs_btree_node_is_leaf_node function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_is_leaf_node( libfsapfs_btree_node_t *btree_node ) { libcerror_error_t *error = NULL; libfsapfs_btree_node_header_t *btree_node_header = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_btree_node_is_leaf_node( btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_is_leaf_node( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); btree_node_header = btree_node->node_header; btree_node->node_header = NULL; result = libfsapfs_btree_node_is_leaf_node( btree_node, &error ); btree_node->node_header = btree_node_header; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_btree_node_get_number_of_entries function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_get_number_of_entries( libfsapfs_btree_node_t *btree_node ) { libcerror_error_t *error = NULL; int number_of_entries = 0; int result = 0; /* Test regular cases */ result = libfsapfs_btree_node_get_number_of_entries( btree_node, &number_of_entries, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "number_of_entries", number_of_entries, 6 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_get_number_of_entries( NULL, &number_of_entries, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_get_number_of_entries( btree_node, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_btree_node_get_entry_by_index function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_get_entry_by_index( libfsapfs_btree_node_t *btree_node ) { libcerror_error_t *error = NULL; libfsapfs_btree_entry_t *btree_entry = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_btree_node_get_entry_by_index( btree_node, 0, &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_get_entry_by_index( NULL, 0, &btree_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_get_entry_by_index( btree_node, 0, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { libcerror_error_t *error = NULL; int result = 0; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) libfsapfs_btree_node_t *btree_node = NULL; #endif FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_btree_node_initialize", fsapfs_test_btree_node_initialize ); FSAPFS_TEST_RUN( "libfsapfs_btree_node_free", fsapfs_test_btree_node_free ); FSAPFS_TEST_RUN( "libfsapfs_btree_node_read_data", fsapfs_test_btree_node_read_data ); FSAPFS_TEST_RUN( "libfsapfs_btree_node_read_object_data", fsapfs_test_btree_node_read_object_data ); #if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) /* Initialize test */ result = libfsapfs_btree_node_initialize( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_btree_node_read_data( btree_node, fsapfs_test_btree_node_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_btree_node_is_leaf_node", fsapfs_test_btree_node_is_leaf_node, btree_node ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_btree_node_get_number_of_entries", fsapfs_test_btree_node_get_number_of_entries, btree_node ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_btree_node_get_entry_by_index", fsapfs_test_btree_node_get_entry_by_index, btree_node ); /* Clean up */ result = libfsapfs_btree_node_free( &btree_node, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node", btree_node ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); #endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) if( btree_node != NULL ) { libfsapfs_btree_node_free( &btree_node, NULL ); } #endif return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_container_key_bag.c0000664000175000017500000001527413426640002025403 0ustar00lordyestalordyesta00000000000000/* * Library container_key_bag type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_container_key_bag.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_container_key_bag_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_key_bag_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_container_key_bag_t *container_key_bag = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_container_key_bag_initialize( &container_key_bag, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_key_bag", container_key_bag ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_key_bag_free( &container_key_bag, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_key_bag", container_key_bag ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_key_bag_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); container_key_bag = (libfsapfs_container_key_bag_t *) 0x12345678UL; result = libfsapfs_container_key_bag_initialize( &container_key_bag, &error ); container_key_bag = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_container_key_bag_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_container_key_bag_initialize( &container_key_bag, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( container_key_bag != NULL ) { libfsapfs_container_key_bag_free( &container_key_bag, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_key_bag", container_key_bag ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_container_key_bag_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_container_key_bag_initialize( &container_key_bag, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( container_key_bag != NULL ) { libfsapfs_container_key_bag_free( &container_key_bag, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_key_bag", container_key_bag ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container_key_bag != NULL ) { libfsapfs_container_key_bag_free( &container_key_bag, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_key_bag_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_key_bag_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_container_key_bag_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_container_key_bag_initialize", fsapfs_test_container_key_bag_initialize ); FSAPFS_TEST_RUN( "libfsapfs_container_key_bag_free", fsapfs_test_container_key_bag_free ); /* TODO: add tests for libfsapfs_container_key_bag_read_file_io_handle */ /* TODO: add tests for libfsapfs_container_key_bag_read_data */ /* TODO: add tests for libfsapfs_container_key_bag_get_volume_key_bag_extent_by_identifier */ /* TODO: add tests for libfsapfs_container_key_bag_get_volume_master_key_by_identifier */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_unicode_decomposition_mappings.h0000664000175000017500000421113413426637450030237 0ustar00lordyestalordyesta00000000000000/* * The Unicode decomposition mappings definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_UNICODE_DECOMPOSITION_MAPPINGS_H ) #define _FSAPFS_TEST_UNICODE_DECOMPOSITION_MAPPINGS_H #include #include #include "fsapfs_test_types.h" #if defined( __cplusplus ) extern "C" { #endif /* The data below was derived from ftp://ftp.unicode.org/Public/9.0.0/ucd/UnicodeData.txt */ fsapfs_test_unicode_decomposition_mapping_t fsapfs_test_unicode_nfd_mappings[ 30592 ] = { { 0x00000000, 1, { 0x00000000 } }, { 0x00000001, 1, { 0x00000001 } }, { 0x00000002, 1, { 0x00000002 } }, { 0x00000003, 1, { 0x00000003 } }, { 0x00000004, 1, { 0x00000004 } }, { 0x00000005, 1, { 0x00000005 } }, { 0x00000006, 1, { 0x00000006 } }, { 0x00000007, 1, { 0x00000007 } }, { 0x00000008, 1, { 0x00000008 } }, { 0x00000009, 1, { 0x00000009 } }, { 0x0000000a, 1, { 0x0000000a } }, { 0x0000000b, 1, { 0x0000000b } }, { 0x0000000c, 1, { 0x0000000c } }, { 0x0000000d, 1, { 0x0000000d } }, { 0x0000000e, 1, { 0x0000000e } }, { 0x0000000f, 1, { 0x0000000f } }, { 0x00000010, 1, { 0x00000010 } }, { 0x00000011, 1, { 0x00000011 } }, { 0x00000012, 1, { 0x00000012 } }, { 0x00000013, 1, { 0x00000013 } }, { 0x00000014, 1, { 0x00000014 } }, { 0x00000015, 1, { 0x00000015 } }, { 0x00000016, 1, { 0x00000016 } }, { 0x00000017, 1, { 0x00000017 } }, { 0x00000018, 1, { 0x00000018 } }, { 0x00000019, 1, { 0x00000019 } }, { 0x0000001a, 1, { 0x0000001a } }, { 0x0000001b, 1, { 0x0000001b } }, { 0x0000001c, 1, { 0x0000001c } }, { 0x0000001d, 1, { 0x0000001d } }, { 0x0000001e, 1, { 0x0000001e } }, { 0x0000001f, 1, { 0x0000001f } }, { 0x00000020, 1, { 0x00000020 } }, { 0x00000021, 1, { 0x00000021 } }, { 0x00000022, 1, { 0x00000022 } }, { 0x00000023, 1, { 0x00000023 } }, { 0x00000024, 1, { 0x00000024 } }, { 0x00000025, 1, { 0x00000025 } }, { 0x00000026, 1, { 0x00000026 } }, { 0x00000027, 1, { 0x00000027 } }, { 0x00000028, 1, { 0x00000028 } }, { 0x00000029, 1, { 0x00000029 } }, { 0x0000002a, 1, { 0x0000002a } }, { 0x0000002b, 1, { 0x0000002b } }, { 0x0000002c, 1, { 0x0000002c } }, { 0x0000002d, 1, { 0x0000002d } }, { 0x0000002e, 1, { 0x0000002e } }, { 0x0000002f, 1, { 0x0000002f } }, { 0x00000030, 1, { 0x00000030 } }, { 0x00000031, 1, { 0x00000031 } }, { 0x00000032, 1, { 0x00000032 } }, { 0x00000033, 1, { 0x00000033 } }, { 0x00000034, 1, { 0x00000034 } }, { 0x00000035, 1, { 0x00000035 } }, { 0x00000036, 1, { 0x00000036 } }, { 0x00000037, 1, { 0x00000037 } }, { 0x00000038, 1, { 0x00000038 } }, { 0x00000039, 1, { 0x00000039 } }, { 0x0000003a, 1, { 0x0000003a } }, { 0x0000003b, 1, { 0x0000003b } }, { 0x0000003c, 1, { 0x0000003c } }, { 0x0000003d, 1, { 0x0000003d } }, { 0x0000003e, 1, { 0x0000003e } }, { 0x0000003f, 1, { 0x0000003f } }, { 0x00000040, 1, { 0x00000040 } }, { 0x00000041, 1, { 0x00000041 } }, { 0x00000042, 1, { 0x00000042 } }, { 0x00000043, 1, { 0x00000043 } }, { 0x00000044, 1, { 0x00000044 } }, { 0x00000045, 1, { 0x00000045 } }, { 0x00000046, 1, { 0x00000046 } }, { 0x00000047, 1, { 0x00000047 } }, { 0x00000048, 1, { 0x00000048 } }, { 0x00000049, 1, { 0x00000049 } }, { 0x0000004a, 1, { 0x0000004a } }, { 0x0000004b, 1, { 0x0000004b } }, { 0x0000004c, 1, { 0x0000004c } }, { 0x0000004d, 1, { 0x0000004d } }, { 0x0000004e, 1, { 0x0000004e } }, { 0x0000004f, 1, { 0x0000004f } }, { 0x00000050, 1, { 0x00000050 } }, { 0x00000051, 1, { 0x00000051 } }, { 0x00000052, 1, { 0x00000052 } }, { 0x00000053, 1, { 0x00000053 } }, { 0x00000054, 1, { 0x00000054 } }, { 0x00000055, 1, { 0x00000055 } }, { 0x00000056, 1, { 0x00000056 } }, { 0x00000057, 1, { 0x00000057 } }, { 0x00000058, 1, { 0x00000058 } }, { 0x00000059, 1, { 0x00000059 } }, { 0x0000005a, 1, { 0x0000005a } }, { 0x0000005b, 1, { 0x0000005b } }, { 0x0000005c, 1, { 0x0000005c } }, { 0x0000005d, 1, { 0x0000005d } }, { 0x0000005e, 1, { 0x0000005e } }, { 0x0000005f, 1, { 0x0000005f } }, { 0x00000060, 1, { 0x00000060 } }, { 0x00000061, 1, { 0x00000061 } }, { 0x00000062, 1, { 0x00000062 } }, { 0x00000063, 1, { 0x00000063 } }, { 0x00000064, 1, { 0x00000064 } }, { 0x00000065, 1, { 0x00000065 } }, { 0x00000066, 1, { 0x00000066 } }, { 0x00000067, 1, { 0x00000067 } }, { 0x00000068, 1, { 0x00000068 } }, { 0x00000069, 1, { 0x00000069 } }, { 0x0000006a, 1, { 0x0000006a } }, { 0x0000006b, 1, { 0x0000006b } }, { 0x0000006c, 1, { 0x0000006c } }, { 0x0000006d, 1, { 0x0000006d } }, { 0x0000006e, 1, { 0x0000006e } }, { 0x0000006f, 1, { 0x0000006f } }, { 0x00000070, 1, { 0x00000070 } }, { 0x00000071, 1, { 0x00000071 } }, { 0x00000072, 1, { 0x00000072 } }, { 0x00000073, 1, { 0x00000073 } }, { 0x00000074, 1, { 0x00000074 } }, { 0x00000075, 1, { 0x00000075 } }, { 0x00000076, 1, { 0x00000076 } }, { 0x00000077, 1, { 0x00000077 } }, { 0x00000078, 1, { 0x00000078 } }, { 0x00000079, 1, { 0x00000079 } }, { 0x0000007a, 1, { 0x0000007a } }, { 0x0000007b, 1, { 0x0000007b } }, { 0x0000007c, 1, { 0x0000007c } }, { 0x0000007d, 1, { 0x0000007d } }, { 0x0000007e, 1, { 0x0000007e } }, { 0x0000007f, 1, { 0x0000007f } }, { 0x00000080, 1, { 0x00000080 } }, { 0x00000081, 1, { 0x00000081 } }, { 0x00000082, 1, { 0x00000082 } }, { 0x00000083, 1, { 0x00000083 } }, { 0x00000084, 1, { 0x00000084 } }, { 0x00000085, 1, { 0x00000085 } }, { 0x00000086, 1, { 0x00000086 } }, { 0x00000087, 1, { 0x00000087 } }, { 0x00000088, 1, { 0x00000088 } }, { 0x00000089, 1, { 0x00000089 } }, { 0x0000008a, 1, { 0x0000008a } }, { 0x0000008b, 1, { 0x0000008b } }, { 0x0000008c, 1, { 0x0000008c } }, { 0x0000008d, 1, { 0x0000008d } }, { 0x0000008e, 1, { 0x0000008e } }, { 0x0000008f, 1, { 0x0000008f } }, { 0x00000090, 1, { 0x00000090 } }, { 0x00000091, 1, { 0x00000091 } }, { 0x00000092, 1, { 0x00000092 } }, { 0x00000093, 1, { 0x00000093 } }, { 0x00000094, 1, { 0x00000094 } }, { 0x00000095, 1, { 0x00000095 } }, { 0x00000096, 1, { 0x00000096 } }, { 0x00000097, 1, { 0x00000097 } }, { 0x00000098, 1, { 0x00000098 } }, { 0x00000099, 1, { 0x00000099 } }, { 0x0000009a, 1, { 0x0000009a } }, { 0x0000009b, 1, { 0x0000009b } }, { 0x0000009c, 1, { 0x0000009c } }, { 0x0000009d, 1, { 0x0000009d } }, { 0x0000009e, 1, { 0x0000009e } }, { 0x0000009f, 1, { 0x0000009f } }, { 0x000000a0, 1, { 0x000000a0 } }, { 0x000000a1, 1, { 0x000000a1 } }, { 0x000000a2, 1, { 0x000000a2 } }, { 0x000000a3, 1, { 0x000000a3 } }, { 0x000000a4, 1, { 0x000000a4 } }, { 0x000000a5, 1, { 0x000000a5 } }, { 0x000000a6, 1, { 0x000000a6 } }, { 0x000000a7, 1, { 0x000000a7 } }, { 0x000000a8, 1, { 0x000000a8 } }, { 0x000000a9, 1, { 0x000000a9 } }, { 0x000000aa, 1, { 0x000000aa } }, { 0x000000ab, 1, { 0x000000ab } }, { 0x000000ac, 1, { 0x000000ac } }, { 0x000000ad, 1, { 0x000000ad } }, { 0x000000ae, 1, { 0x000000ae } }, { 0x000000af, 1, { 0x000000af } }, { 0x000000b0, 1, { 0x000000b0 } }, { 0x000000b1, 1, { 0x000000b1 } }, { 0x000000b2, 1, { 0x000000b2 } }, { 0x000000b3, 1, { 0x000000b3 } }, { 0x000000b4, 1, { 0x000000b4 } }, { 0x000000b5, 1, { 0x000000b5 } }, { 0x000000b6, 1, { 0x000000b6 } }, { 0x000000b7, 1, { 0x000000b7 } }, { 0x000000b8, 1, { 0x000000b8 } }, { 0x000000b9, 1, { 0x000000b9 } }, { 0x000000ba, 1, { 0x000000ba } }, { 0x000000bb, 1, { 0x000000bb } }, { 0x000000bc, 1, { 0x000000bc } }, { 0x000000bd, 1, { 0x000000bd } }, { 0x000000be, 1, { 0x000000be } }, { 0x000000bf, 1, { 0x000000bf } }, { 0x000000c0, 2, { 0x00000041, 0x00000300 } }, { 0x000000c1, 2, { 0x00000041, 0x00000301 } }, { 0x000000c2, 2, { 0x00000041, 0x00000302 } }, { 0x000000c3, 2, { 0x00000041, 0x00000303 } }, { 0x000000c4, 2, { 0x00000041, 0x00000308 } }, { 0x000000c5, 2, { 0x00000041, 0x0000030a } }, { 0x000000c6, 1, { 0x000000c6 } }, { 0x000000c7, 2, { 0x00000043, 0x00000327 } }, { 0x000000c8, 2, { 0x00000045, 0x00000300 } }, { 0x000000c9, 2, { 0x00000045, 0x00000301 } }, { 0x000000ca, 2, { 0x00000045, 0x00000302 } }, { 0x000000cb, 2, { 0x00000045, 0x00000308 } }, { 0x000000cc, 2, { 0x00000049, 0x00000300 } }, { 0x000000cd, 2, { 0x00000049, 0x00000301 } }, { 0x000000ce, 2, { 0x00000049, 0x00000302 } }, { 0x000000cf, 2, { 0x00000049, 0x00000308 } }, { 0x000000d0, 1, { 0x000000d0 } }, { 0x000000d1, 2, { 0x0000004e, 0x00000303 } }, { 0x000000d2, 2, { 0x0000004f, 0x00000300 } }, { 0x000000d3, 2, { 0x0000004f, 0x00000301 } }, { 0x000000d4, 2, { 0x0000004f, 0x00000302 } }, { 0x000000d5, 2, { 0x0000004f, 0x00000303 } }, { 0x000000d6, 2, { 0x0000004f, 0x00000308 } }, { 0x000000d7, 1, { 0x000000d7 } }, { 0x000000d8, 1, { 0x000000d8 } }, { 0x000000d9, 2, { 0x00000055, 0x00000300 } }, { 0x000000da, 2, { 0x00000055, 0x00000301 } }, { 0x000000db, 2, { 0x00000055, 0x00000302 } }, { 0x000000dc, 2, { 0x00000055, 0x00000308 } }, { 0x000000dd, 2, { 0x00000059, 0x00000301 } }, { 0x000000de, 1, { 0x000000de } }, { 0x000000df, 1, { 0x000000df } }, { 0x000000e0, 2, { 0x00000061, 0x00000300 } }, { 0x000000e1, 2, { 0x00000061, 0x00000301 } }, { 0x000000e2, 2, { 0x00000061, 0x00000302 } }, { 0x000000e3, 2, { 0x00000061, 0x00000303 } }, { 0x000000e4, 2, { 0x00000061, 0x00000308 } }, { 0x000000e5, 2, { 0x00000061, 0x0000030a } }, { 0x000000e6, 1, { 0x000000e6 } }, { 0x000000e7, 2, { 0x00000063, 0x00000327 } }, { 0x000000e8, 2, { 0x00000065, 0x00000300 } }, { 0x000000e9, 2, { 0x00000065, 0x00000301 } }, { 0x000000ea, 2, { 0x00000065, 0x00000302 } }, { 0x000000eb, 2, { 0x00000065, 0x00000308 } }, { 0x000000ec, 2, { 0x00000069, 0x00000300 } }, { 0x000000ed, 2, { 0x00000069, 0x00000301 } }, { 0x000000ee, 2, { 0x00000069, 0x00000302 } }, { 0x000000ef, 2, { 0x00000069, 0x00000308 } }, { 0x000000f0, 1, { 0x000000f0 } }, { 0x000000f1, 2, { 0x0000006e, 0x00000303 } }, { 0x000000f2, 2, { 0x0000006f, 0x00000300 } }, { 0x000000f3, 2, { 0x0000006f, 0x00000301 } }, { 0x000000f4, 2, { 0x0000006f, 0x00000302 } }, { 0x000000f5, 2, { 0x0000006f, 0x00000303 } }, { 0x000000f6, 2, { 0x0000006f, 0x00000308 } }, { 0x000000f7, 1, { 0x000000f7 } }, { 0x000000f8, 1, { 0x000000f8 } }, { 0x000000f9, 2, { 0x00000075, 0x00000300 } }, { 0x000000fa, 2, { 0x00000075, 0x00000301 } }, { 0x000000fb, 2, { 0x00000075, 0x00000302 } }, { 0x000000fc, 2, { 0x00000075, 0x00000308 } }, { 0x000000fd, 2, { 0x00000079, 0x00000301 } }, { 0x000000fe, 1, { 0x000000fe } }, { 0x000000ff, 2, { 0x00000079, 0x00000308 } }, { 0x00000100, 2, { 0x00000041, 0x00000304 } }, { 0x00000101, 2, { 0x00000061, 0x00000304 } }, { 0x00000102, 2, { 0x00000041, 0x00000306 } }, { 0x00000103, 2, { 0x00000061, 0x00000306 } }, { 0x00000104, 2, { 0x00000041, 0x00000328 } }, { 0x00000105, 2, { 0x00000061, 0x00000328 } }, { 0x00000106, 2, { 0x00000043, 0x00000301 } }, { 0x00000107, 2, { 0x00000063, 0x00000301 } }, { 0x00000108, 2, { 0x00000043, 0x00000302 } }, { 0x00000109, 2, { 0x00000063, 0x00000302 } }, { 0x0000010a, 2, { 0x00000043, 0x00000307 } }, { 0x0000010b, 2, { 0x00000063, 0x00000307 } }, { 0x0000010c, 2, { 0x00000043, 0x0000030c } }, { 0x0000010d, 2, { 0x00000063, 0x0000030c } }, { 0x0000010e, 2, { 0x00000044, 0x0000030c } }, { 0x0000010f, 2, { 0x00000064, 0x0000030c } }, { 0x00000110, 1, { 0x00000110 } }, { 0x00000111, 1, { 0x00000111 } }, { 0x00000112, 2, { 0x00000045, 0x00000304 } }, { 0x00000113, 2, { 0x00000065, 0x00000304 } }, { 0x00000114, 2, { 0x00000045, 0x00000306 } }, { 0x00000115, 2, { 0x00000065, 0x00000306 } }, { 0x00000116, 2, { 0x00000045, 0x00000307 } }, { 0x00000117, 2, { 0x00000065, 0x00000307 } }, { 0x00000118, 2, { 0x00000045, 0x00000328 } }, { 0x00000119, 2, { 0x00000065, 0x00000328 } }, { 0x0000011a, 2, { 0x00000045, 0x0000030c } }, { 0x0000011b, 2, { 0x00000065, 0x0000030c } }, { 0x0000011c, 2, { 0x00000047, 0x00000302 } }, { 0x0000011d, 2, { 0x00000067, 0x00000302 } }, { 0x0000011e, 2, { 0x00000047, 0x00000306 } }, { 0x0000011f, 2, { 0x00000067, 0x00000306 } }, { 0x00000120, 2, { 0x00000047, 0x00000307 } }, { 0x00000121, 2, { 0x00000067, 0x00000307 } }, { 0x00000122, 2, { 0x00000047, 0x00000327 } }, { 0x00000123, 2, { 0x00000067, 0x00000327 } }, { 0x00000124, 2, { 0x00000048, 0x00000302 } }, { 0x00000125, 2, { 0x00000068, 0x00000302 } }, { 0x00000126, 1, { 0x00000126 } }, { 0x00000127, 1, { 0x00000127 } }, { 0x00000128, 2, { 0x00000049, 0x00000303 } }, { 0x00000129, 2, { 0x00000069, 0x00000303 } }, { 0x0000012a, 2, { 0x00000049, 0x00000304 } }, { 0x0000012b, 2, { 0x00000069, 0x00000304 } }, { 0x0000012c, 2, { 0x00000049, 0x00000306 } }, { 0x0000012d, 2, { 0x00000069, 0x00000306 } }, { 0x0000012e, 2, { 0x00000049, 0x00000328 } }, { 0x0000012f, 2, { 0x00000069, 0x00000328 } }, { 0x00000130, 2, { 0x00000049, 0x00000307 } }, { 0x00000131, 1, { 0x00000131 } }, { 0x00000132, 1, { 0x00000132 } }, { 0x00000133, 1, { 0x00000133 } }, { 0x00000134, 2, { 0x0000004a, 0x00000302 } }, { 0x00000135, 2, { 0x0000006a, 0x00000302 } }, { 0x00000136, 2, { 0x0000004b, 0x00000327 } }, { 0x00000137, 2, { 0x0000006b, 0x00000327 } }, { 0x00000138, 1, { 0x00000138 } }, { 0x00000139, 2, { 0x0000004c, 0x00000301 } }, { 0x0000013a, 2, { 0x0000006c, 0x00000301 } }, { 0x0000013b, 2, { 0x0000004c, 0x00000327 } }, { 0x0000013c, 2, { 0x0000006c, 0x00000327 } }, { 0x0000013d, 2, { 0x0000004c, 0x0000030c } }, { 0x0000013e, 2, { 0x0000006c, 0x0000030c } }, { 0x0000013f, 1, { 0x0000013f } }, { 0x00000140, 1, { 0x00000140 } }, { 0x00000141, 1, { 0x00000141 } }, { 0x00000142, 1, { 0x00000142 } }, { 0x00000143, 2, { 0x0000004e, 0x00000301 } }, { 0x00000144, 2, { 0x0000006e, 0x00000301 } }, { 0x00000145, 2, { 0x0000004e, 0x00000327 } }, { 0x00000146, 2, { 0x0000006e, 0x00000327 } }, { 0x00000147, 2, { 0x0000004e, 0x0000030c } }, { 0x00000148, 2, { 0x0000006e, 0x0000030c } }, { 0x00000149, 1, { 0x00000149 } }, { 0x0000014a, 1, { 0x0000014a } }, { 0x0000014b, 1, { 0x0000014b } }, { 0x0000014c, 2, { 0x0000004f, 0x00000304 } }, { 0x0000014d, 2, { 0x0000006f, 0x00000304 } }, { 0x0000014e, 2, { 0x0000004f, 0x00000306 } }, { 0x0000014f, 2, { 0x0000006f, 0x00000306 } }, { 0x00000150, 2, { 0x0000004f, 0x0000030b } }, { 0x00000151, 2, { 0x0000006f, 0x0000030b } }, { 0x00000152, 1, { 0x00000152 } }, { 0x00000153, 1, { 0x00000153 } }, { 0x00000154, 2, { 0x00000052, 0x00000301 } }, { 0x00000155, 2, { 0x00000072, 0x00000301 } }, { 0x00000156, 2, { 0x00000052, 0x00000327 } }, { 0x00000157, 2, { 0x00000072, 0x00000327 } }, { 0x00000158, 2, { 0x00000052, 0x0000030c } }, { 0x00000159, 2, { 0x00000072, 0x0000030c } }, { 0x0000015a, 2, { 0x00000053, 0x00000301 } }, { 0x0000015b, 2, { 0x00000073, 0x00000301 } }, { 0x0000015c, 2, { 0x00000053, 0x00000302 } }, { 0x0000015d, 2, { 0x00000073, 0x00000302 } }, { 0x0000015e, 2, { 0x00000053, 0x00000327 } }, { 0x0000015f, 2, { 0x00000073, 0x00000327 } }, { 0x00000160, 2, { 0x00000053, 0x0000030c } }, { 0x00000161, 2, { 0x00000073, 0x0000030c } }, { 0x00000162, 2, { 0x00000054, 0x00000327 } }, { 0x00000163, 2, { 0x00000074, 0x00000327 } }, { 0x00000164, 2, { 0x00000054, 0x0000030c } }, { 0x00000165, 2, { 0x00000074, 0x0000030c } }, { 0x00000166, 1, { 0x00000166 } }, { 0x00000167, 1, { 0x00000167 } }, { 0x00000168, 2, { 0x00000055, 0x00000303 } }, { 0x00000169, 2, { 0x00000075, 0x00000303 } }, { 0x0000016a, 2, { 0x00000055, 0x00000304 } }, { 0x0000016b, 2, { 0x00000075, 0x00000304 } }, { 0x0000016c, 2, { 0x00000055, 0x00000306 } }, { 0x0000016d, 2, { 0x00000075, 0x00000306 } }, { 0x0000016e, 2, { 0x00000055, 0x0000030a } }, { 0x0000016f, 2, { 0x00000075, 0x0000030a } }, { 0x00000170, 2, { 0x00000055, 0x0000030b } }, { 0x00000171, 2, { 0x00000075, 0x0000030b } }, { 0x00000172, 2, { 0x00000055, 0x00000328 } }, { 0x00000173, 2, { 0x00000075, 0x00000328 } }, { 0x00000174, 2, { 0x00000057, 0x00000302 } }, { 0x00000175, 2, { 0x00000077, 0x00000302 } }, { 0x00000176, 2, { 0x00000059, 0x00000302 } }, { 0x00000177, 2, { 0x00000079, 0x00000302 } }, { 0x00000178, 2, { 0x00000059, 0x00000308 } }, { 0x00000179, 2, { 0x0000005a, 0x00000301 } }, { 0x0000017a, 2, { 0x0000007a, 0x00000301 } }, { 0x0000017b, 2, { 0x0000005a, 0x00000307 } }, { 0x0000017c, 2, { 0x0000007a, 0x00000307 } }, { 0x0000017d, 2, { 0x0000005a, 0x0000030c } }, { 0x0000017e, 2, { 0x0000007a, 0x0000030c } }, { 0x0000017f, 1, { 0x0000017f } }, { 0x00000180, 1, { 0x00000180 } }, { 0x00000181, 1, { 0x00000181 } }, { 0x00000182, 1, { 0x00000182 } }, { 0x00000183, 1, { 0x00000183 } }, { 0x00000184, 1, { 0x00000184 } }, { 0x00000185, 1, { 0x00000185 } }, { 0x00000186, 1, { 0x00000186 } }, { 0x00000187, 1, { 0x00000187 } }, { 0x00000188, 1, { 0x00000188 } }, { 0x00000189, 1, { 0x00000189 } }, { 0x0000018a, 1, { 0x0000018a } }, { 0x0000018b, 1, { 0x0000018b } }, { 0x0000018c, 1, { 0x0000018c } }, { 0x0000018d, 1, { 0x0000018d } }, { 0x0000018e, 1, { 0x0000018e } }, { 0x0000018f, 1, { 0x0000018f } }, { 0x00000190, 1, { 0x00000190 } }, { 0x00000191, 1, { 0x00000191 } }, { 0x00000192, 1, { 0x00000192 } }, { 0x00000193, 1, { 0x00000193 } }, { 0x00000194, 1, { 0x00000194 } }, { 0x00000195, 1, { 0x00000195 } }, { 0x00000196, 1, { 0x00000196 } }, { 0x00000197, 1, { 0x00000197 } }, { 0x00000198, 1, { 0x00000198 } }, { 0x00000199, 1, { 0x00000199 } }, { 0x0000019a, 1, { 0x0000019a } }, { 0x0000019b, 1, { 0x0000019b } }, { 0x0000019c, 1, { 0x0000019c } }, { 0x0000019d, 1, { 0x0000019d } }, { 0x0000019e, 1, { 0x0000019e } }, { 0x0000019f, 1, { 0x0000019f } }, { 0x000001a0, 2, { 0x0000004f, 0x0000031b } }, { 0x000001a1, 2, { 0x0000006f, 0x0000031b } }, { 0x000001a2, 1, { 0x000001a2 } }, { 0x000001a3, 1, { 0x000001a3 } }, { 0x000001a4, 1, { 0x000001a4 } }, { 0x000001a5, 1, { 0x000001a5 } }, { 0x000001a6, 1, { 0x000001a6 } }, { 0x000001a7, 1, { 0x000001a7 } }, { 0x000001a8, 1, { 0x000001a8 } }, { 0x000001a9, 1, { 0x000001a9 } }, { 0x000001aa, 1, { 0x000001aa } }, { 0x000001ab, 1, { 0x000001ab } }, { 0x000001ac, 1, { 0x000001ac } }, { 0x000001ad, 1, { 0x000001ad } }, { 0x000001ae, 1, { 0x000001ae } }, { 0x000001af, 2, { 0x00000055, 0x0000031b } }, { 0x000001b0, 2, { 0x00000075, 0x0000031b } }, { 0x000001b1, 1, { 0x000001b1 } }, { 0x000001b2, 1, { 0x000001b2 } }, { 0x000001b3, 1, { 0x000001b3 } }, { 0x000001b4, 1, { 0x000001b4 } }, { 0x000001b5, 1, { 0x000001b5 } }, { 0x000001b6, 1, { 0x000001b6 } }, { 0x000001b7, 1, { 0x000001b7 } }, { 0x000001b8, 1, { 0x000001b8 } }, { 0x000001b9, 1, { 0x000001b9 } }, { 0x000001ba, 1, { 0x000001ba } }, { 0x000001bb, 1, { 0x000001bb } }, { 0x000001bc, 1, { 0x000001bc } }, { 0x000001bd, 1, { 0x000001bd } }, { 0x000001be, 1, { 0x000001be } }, { 0x000001bf, 1, { 0x000001bf } }, { 0x000001c0, 1, { 0x000001c0 } }, { 0x000001c1, 1, { 0x000001c1 } }, { 0x000001c2, 1, { 0x000001c2 } }, { 0x000001c3, 1, { 0x000001c3 } }, { 0x000001c4, 1, { 0x000001c4 } }, { 0x000001c5, 1, { 0x000001c5 } }, { 0x000001c6, 1, { 0x000001c6 } }, { 0x000001c7, 1, { 0x000001c7 } }, { 0x000001c8, 1, { 0x000001c8 } }, { 0x000001c9, 1, { 0x000001c9 } }, { 0x000001ca, 1, { 0x000001ca } }, { 0x000001cb, 1, { 0x000001cb } }, { 0x000001cc, 1, { 0x000001cc } }, { 0x000001cd, 2, { 0x00000041, 0x0000030c } }, { 0x000001ce, 2, { 0x00000061, 0x0000030c } }, { 0x000001cf, 2, { 0x00000049, 0x0000030c } }, { 0x000001d0, 2, { 0x00000069, 0x0000030c } }, { 0x000001d1, 2, { 0x0000004f, 0x0000030c } }, { 0x000001d2, 2, { 0x0000006f, 0x0000030c } }, { 0x000001d3, 2, { 0x00000055, 0x0000030c } }, { 0x000001d4, 2, { 0x00000075, 0x0000030c } }, { 0x000001d5, 3, { 0x00000055, 0x00000308, 0x00000304 } }, { 0x000001d6, 3, { 0x00000075, 0x00000308, 0x00000304 } }, { 0x000001d7, 3, { 0x00000055, 0x00000308, 0x00000301 } }, { 0x000001d8, 3, { 0x00000075, 0x00000308, 0x00000301 } }, { 0x000001d9, 3, { 0x00000055, 0x00000308, 0x0000030c } }, { 0x000001da, 3, { 0x00000075, 0x00000308, 0x0000030c } }, { 0x000001db, 3, { 0x00000055, 0x00000308, 0x00000300 } }, { 0x000001dc, 3, { 0x00000075, 0x00000308, 0x00000300 } }, { 0x000001dd, 1, { 0x000001dd } }, { 0x000001de, 3, { 0x00000041, 0x00000308, 0x00000304 } }, { 0x000001df, 3, { 0x00000061, 0x00000308, 0x00000304 } }, { 0x000001e0, 3, { 0x00000041, 0x00000307, 0x00000304 } }, { 0x000001e1, 3, { 0x00000061, 0x00000307, 0x00000304 } }, { 0x000001e2, 2, { 0x000000c6, 0x00000304 } }, { 0x000001e3, 2, { 0x000000e6, 0x00000304 } }, { 0x000001e4, 1, { 0x000001e4 } }, { 0x000001e5, 1, { 0x000001e5 } }, { 0x000001e6, 2, { 0x00000047, 0x0000030c } }, { 0x000001e7, 2, { 0x00000067, 0x0000030c } }, { 0x000001e8, 2, { 0x0000004b, 0x0000030c } }, { 0x000001e9, 2, { 0x0000006b, 0x0000030c } }, { 0x000001ea, 2, { 0x0000004f, 0x00000328 } }, { 0x000001eb, 2, { 0x0000006f, 0x00000328 } }, { 0x000001ec, 3, { 0x0000004f, 0x00000328, 0x00000304 } }, { 0x000001ed, 3, { 0x0000006f, 0x00000328, 0x00000304 } }, { 0x000001ee, 2, { 0x000001b7, 0x0000030c } }, { 0x000001ef, 2, { 0x00000292, 0x0000030c } }, { 0x000001f0, 2, { 0x0000006a, 0x0000030c } }, { 0x000001f1, 1, { 0x000001f1 } }, { 0x000001f2, 1, { 0x000001f2 } }, { 0x000001f3, 1, { 0x000001f3 } }, { 0x000001f4, 2, { 0x00000047, 0x00000301 } }, { 0x000001f5, 2, { 0x00000067, 0x00000301 } }, { 0x000001f6, 1, { 0x000001f6 } }, { 0x000001f7, 1, { 0x000001f7 } }, { 0x000001f8, 2, { 0x0000004e, 0x00000300 } }, { 0x000001f9, 2, { 0x0000006e, 0x00000300 } }, { 0x000001fa, 3, { 0x00000041, 0x0000030a, 0x00000301 } }, { 0x000001fb, 3, { 0x00000061, 0x0000030a, 0x00000301 } }, { 0x000001fc, 2, { 0x000000c6, 0x00000301 } }, { 0x000001fd, 2, { 0x000000e6, 0x00000301 } }, { 0x000001fe, 2, { 0x000000d8, 0x00000301 } }, { 0x000001ff, 2, { 0x000000f8, 0x00000301 } }, { 0x00000200, 2, { 0x00000041, 0x0000030f } }, { 0x00000201, 2, { 0x00000061, 0x0000030f } }, { 0x00000202, 2, { 0x00000041, 0x00000311 } }, { 0x00000203, 2, { 0x00000061, 0x00000311 } }, { 0x00000204, 2, { 0x00000045, 0x0000030f } }, { 0x00000205, 2, { 0x00000065, 0x0000030f } }, { 0x00000206, 2, { 0x00000045, 0x00000311 } }, { 0x00000207, 2, { 0x00000065, 0x00000311 } }, { 0x00000208, 2, { 0x00000049, 0x0000030f } }, { 0x00000209, 2, { 0x00000069, 0x0000030f } }, { 0x0000020a, 2, { 0x00000049, 0x00000311 } }, { 0x0000020b, 2, { 0x00000069, 0x00000311 } }, { 0x0000020c, 2, { 0x0000004f, 0x0000030f } }, { 0x0000020d, 2, { 0x0000006f, 0x0000030f } }, { 0x0000020e, 2, { 0x0000004f, 0x00000311 } }, { 0x0000020f, 2, { 0x0000006f, 0x00000311 } }, { 0x00000210, 2, { 0x00000052, 0x0000030f } }, { 0x00000211, 2, { 0x00000072, 0x0000030f } }, { 0x00000212, 2, { 0x00000052, 0x00000311 } }, { 0x00000213, 2, { 0x00000072, 0x00000311 } }, { 0x00000214, 2, { 0x00000055, 0x0000030f } }, { 0x00000215, 2, { 0x00000075, 0x0000030f } }, { 0x00000216, 2, { 0x00000055, 0x00000311 } }, { 0x00000217, 2, { 0x00000075, 0x00000311 } }, { 0x00000218, 2, { 0x00000053, 0x00000326 } }, { 0x00000219, 2, { 0x00000073, 0x00000326 } }, { 0x0000021a, 2, { 0x00000054, 0x00000326 } }, { 0x0000021b, 2, { 0x00000074, 0x00000326 } }, { 0x0000021c, 1, { 0x0000021c } }, { 0x0000021d, 1, { 0x0000021d } }, { 0x0000021e, 2, { 0x00000048, 0x0000030c } }, { 0x0000021f, 2, { 0x00000068, 0x0000030c } }, { 0x00000220, 1, { 0x00000220 } }, { 0x00000221, 1, { 0x00000221 } }, { 0x00000222, 1, { 0x00000222 } }, { 0x00000223, 1, { 0x00000223 } }, { 0x00000224, 1, { 0x00000224 } }, { 0x00000225, 1, { 0x00000225 } }, { 0x00000226, 2, { 0x00000041, 0x00000307 } }, { 0x00000227, 2, { 0x00000061, 0x00000307 } }, { 0x00000228, 2, { 0x00000045, 0x00000327 } }, { 0x00000229, 2, { 0x00000065, 0x00000327 } }, { 0x0000022a, 3, { 0x0000004f, 0x00000308, 0x00000304 } }, { 0x0000022b, 3, { 0x0000006f, 0x00000308, 0x00000304 } }, { 0x0000022c, 3, { 0x0000004f, 0x00000303, 0x00000304 } }, { 0x0000022d, 3, { 0x0000006f, 0x00000303, 0x00000304 } }, { 0x0000022e, 2, { 0x0000004f, 0x00000307 } }, { 0x0000022f, 2, { 0x0000006f, 0x00000307 } }, { 0x00000230, 3, { 0x0000004f, 0x00000307, 0x00000304 } }, { 0x00000231, 3, { 0x0000006f, 0x00000307, 0x00000304 } }, { 0x00000232, 2, { 0x00000059, 0x00000304 } }, { 0x00000233, 2, { 0x00000079, 0x00000304 } }, { 0x00000234, 1, { 0x00000234 } }, { 0x00000235, 1, { 0x00000235 } }, { 0x00000236, 1, { 0x00000236 } }, { 0x00000237, 1, { 0x00000237 } }, { 0x00000238, 1, { 0x00000238 } }, { 0x00000239, 1, { 0x00000239 } }, { 0x0000023a, 1, { 0x0000023a } }, { 0x0000023b, 1, { 0x0000023b } }, { 0x0000023c, 1, { 0x0000023c } }, { 0x0000023d, 1, { 0x0000023d } }, { 0x0000023e, 1, { 0x0000023e } }, { 0x0000023f, 1, { 0x0000023f } }, { 0x00000240, 1, { 0x00000240 } }, { 0x00000241, 1, { 0x00000241 } }, { 0x00000242, 1, { 0x00000242 } }, { 0x00000243, 1, { 0x00000243 } }, { 0x00000244, 1, { 0x00000244 } }, { 0x00000245, 1, { 0x00000245 } }, { 0x00000246, 1, { 0x00000246 } }, { 0x00000247, 1, { 0x00000247 } }, { 0x00000248, 1, { 0x00000248 } }, { 0x00000249, 1, { 0x00000249 } }, { 0x0000024a, 1, { 0x0000024a } }, { 0x0000024b, 1, { 0x0000024b } }, { 0x0000024c, 1, { 0x0000024c } }, { 0x0000024d, 1, { 0x0000024d } }, { 0x0000024e, 1, { 0x0000024e } }, { 0x0000024f, 1, { 0x0000024f } }, { 0x00000250, 1, { 0x00000250 } }, { 0x00000251, 1, { 0x00000251 } }, { 0x00000252, 1, { 0x00000252 } }, { 0x00000253, 1, { 0x00000253 } }, { 0x00000254, 1, { 0x00000254 } }, { 0x00000255, 1, { 0x00000255 } }, { 0x00000256, 1, { 0x00000256 } }, { 0x00000257, 1, { 0x00000257 } }, { 0x00000258, 1, { 0x00000258 } }, { 0x00000259, 1, { 0x00000259 } }, { 0x0000025a, 1, { 0x0000025a } }, { 0x0000025b, 1, { 0x0000025b } }, { 0x0000025c, 1, { 0x0000025c } }, { 0x0000025d, 1, { 0x0000025d } }, { 0x0000025e, 1, { 0x0000025e } }, { 0x0000025f, 1, { 0x0000025f } }, { 0x00000260, 1, { 0x00000260 } }, { 0x00000261, 1, { 0x00000261 } }, { 0x00000262, 1, { 0x00000262 } }, { 0x00000263, 1, { 0x00000263 } }, { 0x00000264, 1, { 0x00000264 } }, { 0x00000265, 1, { 0x00000265 } }, { 0x00000266, 1, { 0x00000266 } }, { 0x00000267, 1, { 0x00000267 } }, { 0x00000268, 1, { 0x00000268 } }, { 0x00000269, 1, { 0x00000269 } }, { 0x0000026a, 1, { 0x0000026a } }, { 0x0000026b, 1, { 0x0000026b } }, { 0x0000026c, 1, { 0x0000026c } }, { 0x0000026d, 1, { 0x0000026d } }, { 0x0000026e, 1, { 0x0000026e } }, { 0x0000026f, 1, { 0x0000026f } }, { 0x00000270, 1, { 0x00000270 } }, { 0x00000271, 1, { 0x00000271 } }, { 0x00000272, 1, { 0x00000272 } }, { 0x00000273, 1, { 0x00000273 } }, { 0x00000274, 1, { 0x00000274 } }, { 0x00000275, 1, { 0x00000275 } }, { 0x00000276, 1, { 0x00000276 } }, { 0x00000277, 1, { 0x00000277 } }, { 0x00000278, 1, { 0x00000278 } }, { 0x00000279, 1, { 0x00000279 } }, { 0x0000027a, 1, { 0x0000027a } }, { 0x0000027b, 1, { 0x0000027b } }, { 0x0000027c, 1, { 0x0000027c } }, { 0x0000027d, 1, { 0x0000027d } }, { 0x0000027e, 1, { 0x0000027e } }, { 0x0000027f, 1, { 0x0000027f } }, { 0x00000280, 1, { 0x00000280 } }, { 0x00000281, 1, { 0x00000281 } }, { 0x00000282, 1, { 0x00000282 } }, { 0x00000283, 1, { 0x00000283 } }, { 0x00000284, 1, { 0x00000284 } }, { 0x00000285, 1, { 0x00000285 } }, { 0x00000286, 1, { 0x00000286 } }, { 0x00000287, 1, { 0x00000287 } }, { 0x00000288, 1, { 0x00000288 } }, { 0x00000289, 1, { 0x00000289 } }, { 0x0000028a, 1, { 0x0000028a } }, { 0x0000028b, 1, { 0x0000028b } }, { 0x0000028c, 1, { 0x0000028c } }, { 0x0000028d, 1, { 0x0000028d } }, { 0x0000028e, 1, { 0x0000028e } }, { 0x0000028f, 1, { 0x0000028f } }, { 0x00000290, 1, { 0x00000290 } }, { 0x00000291, 1, { 0x00000291 } }, { 0x00000292, 1, { 0x00000292 } }, { 0x00000293, 1, { 0x00000293 } }, { 0x00000294, 1, { 0x00000294 } }, { 0x00000295, 1, { 0x00000295 } }, { 0x00000296, 1, { 0x00000296 } }, { 0x00000297, 1, { 0x00000297 } }, { 0x00000298, 1, { 0x00000298 } }, { 0x00000299, 1, { 0x00000299 } }, { 0x0000029a, 1, { 0x0000029a } }, { 0x0000029b, 1, { 0x0000029b } }, { 0x0000029c, 1, { 0x0000029c } }, { 0x0000029d, 1, { 0x0000029d } }, { 0x0000029e, 1, { 0x0000029e } }, { 0x0000029f, 1, { 0x0000029f } }, { 0x000002a0, 1, { 0x000002a0 } }, { 0x000002a1, 1, { 0x000002a1 } }, { 0x000002a2, 1, { 0x000002a2 } }, { 0x000002a3, 1, { 0x000002a3 } }, { 0x000002a4, 1, { 0x000002a4 } }, { 0x000002a5, 1, { 0x000002a5 } }, { 0x000002a6, 1, { 0x000002a6 } }, { 0x000002a7, 1, { 0x000002a7 } }, { 0x000002a8, 1, { 0x000002a8 } }, { 0x000002a9, 1, { 0x000002a9 } }, { 0x000002aa, 1, { 0x000002aa } }, { 0x000002ab, 1, { 0x000002ab } }, { 0x000002ac, 1, { 0x000002ac } }, { 0x000002ad, 1, { 0x000002ad } }, { 0x000002ae, 1, { 0x000002ae } }, { 0x000002af, 1, { 0x000002af } }, { 0x000002b0, 1, { 0x000002b0 } }, { 0x000002b1, 1, { 0x000002b1 } }, { 0x000002b2, 1, { 0x000002b2 } }, { 0x000002b3, 1, { 0x000002b3 } }, { 0x000002b4, 1, { 0x000002b4 } }, { 0x000002b5, 1, { 0x000002b5 } }, { 0x000002b6, 1, { 0x000002b6 } }, { 0x000002b7, 1, { 0x000002b7 } }, { 0x000002b8, 1, { 0x000002b8 } }, { 0x000002b9, 1, { 0x000002b9 } }, { 0x000002ba, 1, { 0x000002ba } }, { 0x000002bb, 1, { 0x000002bb } }, { 0x000002bc, 1, { 0x000002bc } }, { 0x000002bd, 1, { 0x000002bd } }, { 0x000002be, 1, { 0x000002be } }, { 0x000002bf, 1, { 0x000002bf } }, { 0x000002c0, 1, { 0x000002c0 } }, { 0x000002c1, 1, { 0x000002c1 } }, { 0x000002c2, 1, { 0x000002c2 } }, { 0x000002c3, 1, { 0x000002c3 } }, { 0x000002c4, 1, { 0x000002c4 } }, { 0x000002c5, 1, { 0x000002c5 } }, { 0x000002c6, 1, { 0x000002c6 } }, { 0x000002c7, 1, { 0x000002c7 } }, { 0x000002c8, 1, { 0x000002c8 } }, { 0x000002c9, 1, { 0x000002c9 } }, { 0x000002ca, 1, { 0x000002ca } }, { 0x000002cb, 1, { 0x000002cb } }, { 0x000002cc, 1, { 0x000002cc } }, { 0x000002cd, 1, { 0x000002cd } }, { 0x000002ce, 1, { 0x000002ce } }, { 0x000002cf, 1, { 0x000002cf } }, { 0x000002d0, 1, { 0x000002d0 } }, { 0x000002d1, 1, { 0x000002d1 } }, { 0x000002d2, 1, { 0x000002d2 } }, { 0x000002d3, 1, { 0x000002d3 } }, { 0x000002d4, 1, { 0x000002d4 } }, { 0x000002d5, 1, { 0x000002d5 } }, { 0x000002d6, 1, { 0x000002d6 } }, { 0x000002d7, 1, { 0x000002d7 } }, { 0x000002d8, 1, { 0x000002d8 } }, { 0x000002d9, 1, { 0x000002d9 } }, { 0x000002da, 1, { 0x000002da } }, { 0x000002db, 1, { 0x000002db } }, { 0x000002dc, 1, { 0x000002dc } }, { 0x000002dd, 1, { 0x000002dd } }, { 0x000002de, 1, { 0x000002de } }, { 0x000002df, 1, { 0x000002df } }, { 0x000002e0, 1, { 0x000002e0 } }, { 0x000002e1, 1, { 0x000002e1 } }, { 0x000002e2, 1, { 0x000002e2 } }, { 0x000002e3, 1, { 0x000002e3 } }, { 0x000002e4, 1, { 0x000002e4 } }, { 0x000002e5, 1, { 0x000002e5 } }, { 0x000002e6, 1, { 0x000002e6 } }, { 0x000002e7, 1, { 0x000002e7 } }, { 0x000002e8, 1, { 0x000002e8 } }, { 0x000002e9, 1, { 0x000002e9 } }, { 0x000002ea, 1, { 0x000002ea } }, { 0x000002eb, 1, { 0x000002eb } }, { 0x000002ec, 1, { 0x000002ec } }, { 0x000002ed, 1, { 0x000002ed } }, { 0x000002ee, 1, { 0x000002ee } }, { 0x000002ef, 1, { 0x000002ef } }, { 0x000002f0, 1, { 0x000002f0 } }, { 0x000002f1, 1, { 0x000002f1 } }, { 0x000002f2, 1, { 0x000002f2 } }, { 0x000002f3, 1, { 0x000002f3 } }, { 0x000002f4, 1, { 0x000002f4 } }, { 0x000002f5, 1, { 0x000002f5 } }, { 0x000002f6, 1, { 0x000002f6 } }, { 0x000002f7, 1, { 0x000002f7 } }, { 0x000002f8, 1, { 0x000002f8 } }, { 0x000002f9, 1, { 0x000002f9 } }, { 0x000002fa, 1, { 0x000002fa } }, { 0x000002fb, 1, { 0x000002fb } }, { 0x000002fc, 1, { 0x000002fc } }, { 0x000002fd, 1, { 0x000002fd } }, { 0x000002fe, 1, { 0x000002fe } }, { 0x000002ff, 1, { 0x000002ff } }, { 0x00000300, 1, { 0x00000300 } }, { 0x00000301, 1, { 0x00000301 } }, { 0x00000302, 1, { 0x00000302 } }, { 0x00000303, 1, { 0x00000303 } }, { 0x00000304, 1, { 0x00000304 } }, { 0x00000305, 1, { 0x00000305 } }, { 0x00000306, 1, { 0x00000306 } }, { 0x00000307, 1, { 0x00000307 } }, { 0x00000308, 1, { 0x00000308 } }, { 0x00000309, 1, { 0x00000309 } }, { 0x0000030a, 1, { 0x0000030a } }, { 0x0000030b, 1, { 0x0000030b } }, { 0x0000030c, 1, { 0x0000030c } }, { 0x0000030d, 1, { 0x0000030d } }, { 0x0000030e, 1, { 0x0000030e } }, { 0x0000030f, 1, { 0x0000030f } }, { 0x00000310, 1, { 0x00000310 } }, { 0x00000311, 1, { 0x00000311 } }, { 0x00000312, 1, { 0x00000312 } }, { 0x00000313, 1, { 0x00000313 } }, { 0x00000314, 1, { 0x00000314 } }, { 0x00000315, 1, { 0x00000315 } }, { 0x00000316, 1, { 0x00000316 } }, { 0x00000317, 1, { 0x00000317 } }, { 0x00000318, 1, { 0x00000318 } }, { 0x00000319, 1, { 0x00000319 } }, { 0x0000031a, 1, { 0x0000031a } }, { 0x0000031b, 1, { 0x0000031b } }, { 0x0000031c, 1, { 0x0000031c } }, { 0x0000031d, 1, { 0x0000031d } }, { 0x0000031e, 1, { 0x0000031e } }, { 0x0000031f, 1, { 0x0000031f } }, { 0x00000320, 1, { 0x00000320 } }, { 0x00000321, 1, { 0x00000321 } }, { 0x00000322, 1, { 0x00000322 } }, { 0x00000323, 1, { 0x00000323 } }, { 0x00000324, 1, { 0x00000324 } }, { 0x00000325, 1, { 0x00000325 } }, { 0x00000326, 1, { 0x00000326 } }, { 0x00000327, 1, { 0x00000327 } }, { 0x00000328, 1, { 0x00000328 } }, { 0x00000329, 1, { 0x00000329 } }, { 0x0000032a, 1, { 0x0000032a } }, { 0x0000032b, 1, { 0x0000032b } }, { 0x0000032c, 1, { 0x0000032c } }, { 0x0000032d, 1, { 0x0000032d } }, { 0x0000032e, 1, { 0x0000032e } }, { 0x0000032f, 1, { 0x0000032f } }, { 0x00000330, 1, { 0x00000330 } }, { 0x00000331, 1, { 0x00000331 } }, { 0x00000332, 1, { 0x00000332 } }, { 0x00000333, 1, { 0x00000333 } }, { 0x00000334, 1, { 0x00000334 } }, { 0x00000335, 1, { 0x00000335 } }, { 0x00000336, 1, { 0x00000336 } }, { 0x00000337, 1, { 0x00000337 } }, { 0x00000338, 1, { 0x00000338 } }, { 0x00000339, 1, { 0x00000339 } }, { 0x0000033a, 1, { 0x0000033a } }, { 0x0000033b, 1, { 0x0000033b } }, { 0x0000033c, 1, { 0x0000033c } }, { 0x0000033d, 1, { 0x0000033d } }, { 0x0000033e, 1, { 0x0000033e } }, { 0x0000033f, 1, { 0x0000033f } }, { 0x00000340, 1, { 0x00000300 } }, { 0x00000341, 1, { 0x00000301 } }, { 0x00000342, 1, { 0x00000342 } }, { 0x00000343, 1, { 0x00000313 } }, { 0x00000344, 2, { 0x00000308, 0x00000301 } }, { 0x00000345, 1, { 0x00000345 } }, { 0x00000346, 1, { 0x00000346 } }, { 0x00000347, 1, { 0x00000347 } }, { 0x00000348, 1, { 0x00000348 } }, { 0x00000349, 1, { 0x00000349 } }, { 0x0000034a, 1, { 0x0000034a } }, { 0x0000034b, 1, { 0x0000034b } }, { 0x0000034c, 1, { 0x0000034c } }, { 0x0000034d, 1, { 0x0000034d } }, { 0x0000034e, 1, { 0x0000034e } }, { 0x0000034f, 1, { 0x0000034f } }, { 0x00000350, 1, { 0x00000350 } }, { 0x00000351, 1, { 0x00000351 } }, { 0x00000352, 1, { 0x00000352 } }, { 0x00000353, 1, { 0x00000353 } }, { 0x00000354, 1, { 0x00000354 } }, { 0x00000355, 1, { 0x00000355 } }, { 0x00000356, 1, { 0x00000356 } }, { 0x00000357, 1, { 0x00000357 } }, { 0x00000358, 1, { 0x00000358 } }, { 0x00000359, 1, { 0x00000359 } }, { 0x0000035a, 1, { 0x0000035a } }, { 0x0000035b, 1, { 0x0000035b } }, { 0x0000035c, 1, { 0x0000035c } }, { 0x0000035d, 1, { 0x0000035d } }, { 0x0000035e, 1, { 0x0000035e } }, { 0x0000035f, 1, { 0x0000035f } }, { 0x00000360, 1, { 0x00000360 } }, { 0x00000361, 1, { 0x00000361 } }, { 0x00000362, 1, { 0x00000362 } }, { 0x00000363, 1, { 0x00000363 } }, { 0x00000364, 1, { 0x00000364 } }, { 0x00000365, 1, { 0x00000365 } }, { 0x00000366, 1, { 0x00000366 } }, { 0x00000367, 1, { 0x00000367 } }, { 0x00000368, 1, { 0x00000368 } }, { 0x00000369, 1, { 0x00000369 } }, { 0x0000036a, 1, { 0x0000036a } }, { 0x0000036b, 1, { 0x0000036b } }, { 0x0000036c, 1, { 0x0000036c } }, { 0x0000036d, 1, { 0x0000036d } }, { 0x0000036e, 1, { 0x0000036e } }, { 0x0000036f, 1, { 0x0000036f } }, { 0x00000370, 1, { 0x00000370 } }, { 0x00000371, 1, { 0x00000371 } }, { 0x00000372, 1, { 0x00000372 } }, { 0x00000373, 1, { 0x00000373 } }, { 0x00000374, 1, { 0x000002b9 } }, { 0x00000375, 1, { 0x00000375 } }, { 0x00000376, 1, { 0x00000376 } }, { 0x00000377, 1, { 0x00000377 } }, { 0x0000037a, 1, { 0x0000037a } }, { 0x0000037b, 1, { 0x0000037b } }, { 0x0000037c, 1, { 0x0000037c } }, { 0x0000037d, 1, { 0x0000037d } }, { 0x0000037e, 1, { 0x0000003b } }, { 0x0000037f, 1, { 0x0000037f } }, { 0x00000384, 1, { 0x00000384 } }, { 0x00000385, 2, { 0x000000a8, 0x00000301 } }, { 0x00000386, 2, { 0x00000391, 0x00000301 } }, { 0x00000387, 1, { 0x000000b7 } }, { 0x00000388, 2, { 0x00000395, 0x00000301 } }, { 0x00000389, 2, { 0x00000397, 0x00000301 } }, { 0x0000038a, 2, { 0x00000399, 0x00000301 } }, { 0x0000038c, 2, { 0x0000039f, 0x00000301 } }, { 0x0000038e, 2, { 0x000003a5, 0x00000301 } }, { 0x0000038f, 2, { 0x000003a9, 0x00000301 } }, { 0x00000390, 3, { 0x000003b9, 0x00000308, 0x00000301 } }, { 0x00000391, 1, { 0x00000391 } }, { 0x00000392, 1, { 0x00000392 } }, { 0x00000393, 1, { 0x00000393 } }, { 0x00000394, 1, { 0x00000394 } }, { 0x00000395, 1, { 0x00000395 } }, { 0x00000396, 1, { 0x00000396 } }, { 0x00000397, 1, { 0x00000397 } }, { 0x00000398, 1, { 0x00000398 } }, { 0x00000399, 1, { 0x00000399 } }, { 0x0000039a, 1, { 0x0000039a } }, { 0x0000039b, 1, { 0x0000039b } }, { 0x0000039c, 1, { 0x0000039c } }, { 0x0000039d, 1, { 0x0000039d } }, { 0x0000039e, 1, { 0x0000039e } }, { 0x0000039f, 1, { 0x0000039f } }, { 0x000003a0, 1, { 0x000003a0 } }, { 0x000003a1, 1, { 0x000003a1 } }, { 0x000003a3, 1, { 0x000003a3 } }, { 0x000003a4, 1, { 0x000003a4 } }, { 0x000003a5, 1, { 0x000003a5 } }, { 0x000003a6, 1, { 0x000003a6 } }, { 0x000003a7, 1, { 0x000003a7 } }, { 0x000003a8, 1, { 0x000003a8 } }, { 0x000003a9, 1, { 0x000003a9 } }, { 0x000003aa, 2, { 0x00000399, 0x00000308 } }, { 0x000003ab, 2, { 0x000003a5, 0x00000308 } }, { 0x000003ac, 2, { 0x000003b1, 0x00000301 } }, { 0x000003ad, 2, { 0x000003b5, 0x00000301 } }, { 0x000003ae, 2, { 0x000003b7, 0x00000301 } }, { 0x000003af, 2, { 0x000003b9, 0x00000301 } }, { 0x000003b0, 3, { 0x000003c5, 0x00000308, 0x00000301 } }, { 0x000003b1, 1, { 0x000003b1 } }, { 0x000003b2, 1, { 0x000003b2 } }, { 0x000003b3, 1, { 0x000003b3 } }, { 0x000003b4, 1, { 0x000003b4 } }, { 0x000003b5, 1, { 0x000003b5 } }, { 0x000003b6, 1, { 0x000003b6 } }, { 0x000003b7, 1, { 0x000003b7 } }, { 0x000003b8, 1, { 0x000003b8 } }, { 0x000003b9, 1, { 0x000003b9 } }, { 0x000003ba, 1, { 0x000003ba } }, { 0x000003bb, 1, { 0x000003bb } }, { 0x000003bc, 1, { 0x000003bc } }, { 0x000003bd, 1, { 0x000003bd } }, { 0x000003be, 1, { 0x000003be } }, { 0x000003bf, 1, { 0x000003bf } }, { 0x000003c0, 1, { 0x000003c0 } }, { 0x000003c1, 1, { 0x000003c1 } }, { 0x000003c2, 1, { 0x000003c2 } }, { 0x000003c3, 1, { 0x000003c3 } }, { 0x000003c4, 1, { 0x000003c4 } }, { 0x000003c5, 1, { 0x000003c5 } }, { 0x000003c6, 1, { 0x000003c6 } }, { 0x000003c7, 1, { 0x000003c7 } }, { 0x000003c8, 1, { 0x000003c8 } }, { 0x000003c9, 1, { 0x000003c9 } }, { 0x000003ca, 2, { 0x000003b9, 0x00000308 } }, { 0x000003cb, 2, { 0x000003c5, 0x00000308 } }, { 0x000003cc, 2, { 0x000003bf, 0x00000301 } }, { 0x000003cd, 2, { 0x000003c5, 0x00000301 } }, { 0x000003ce, 2, { 0x000003c9, 0x00000301 } }, { 0x000003cf, 1, { 0x000003cf } }, { 0x000003d0, 1, { 0x000003d0 } }, { 0x000003d1, 1, { 0x000003d1 } }, { 0x000003d2, 1, { 0x000003d2 } }, { 0x000003d3, 2, { 0x000003d2, 0x00000301 } }, { 0x000003d4, 2, { 0x000003d2, 0x00000308 } }, { 0x000003d5, 1, { 0x000003d5 } }, { 0x000003d6, 1, { 0x000003d6 } }, { 0x000003d7, 1, { 0x000003d7 } }, { 0x000003d8, 1, { 0x000003d8 } }, { 0x000003d9, 1, { 0x000003d9 } }, { 0x000003da, 1, { 0x000003da } }, { 0x000003db, 1, { 0x000003db } }, { 0x000003dc, 1, { 0x000003dc } }, { 0x000003dd, 1, { 0x000003dd } }, { 0x000003de, 1, { 0x000003de } }, { 0x000003df, 1, { 0x000003df } }, { 0x000003e0, 1, { 0x000003e0 } }, { 0x000003e1, 1, { 0x000003e1 } }, { 0x000003e2, 1, { 0x000003e2 } }, { 0x000003e3, 1, { 0x000003e3 } }, { 0x000003e4, 1, { 0x000003e4 } }, { 0x000003e5, 1, { 0x000003e5 } }, { 0x000003e6, 1, { 0x000003e6 } }, { 0x000003e7, 1, { 0x000003e7 } }, { 0x000003e8, 1, { 0x000003e8 } }, { 0x000003e9, 1, { 0x000003e9 } }, { 0x000003ea, 1, { 0x000003ea } }, { 0x000003eb, 1, { 0x000003eb } }, { 0x000003ec, 1, { 0x000003ec } }, { 0x000003ed, 1, { 0x000003ed } }, { 0x000003ee, 1, { 0x000003ee } }, { 0x000003ef, 1, { 0x000003ef } }, { 0x000003f0, 1, { 0x000003f0 } }, { 0x000003f1, 1, { 0x000003f1 } }, { 0x000003f2, 1, { 0x000003f2 } }, { 0x000003f3, 1, { 0x000003f3 } }, { 0x000003f4, 1, { 0x000003f4 } }, { 0x000003f5, 1, { 0x000003f5 } }, { 0x000003f6, 1, { 0x000003f6 } }, { 0x000003f7, 1, { 0x000003f7 } }, { 0x000003f8, 1, { 0x000003f8 } }, { 0x000003f9, 1, { 0x000003f9 } }, { 0x000003fa, 1, { 0x000003fa } }, { 0x000003fb, 1, { 0x000003fb } }, { 0x000003fc, 1, { 0x000003fc } }, { 0x000003fd, 1, { 0x000003fd } }, { 0x000003fe, 1, { 0x000003fe } }, { 0x000003ff, 1, { 0x000003ff } }, { 0x00000400, 2, { 0x00000415, 0x00000300 } }, { 0x00000401, 2, { 0x00000415, 0x00000308 } }, { 0x00000402, 1, { 0x00000402 } }, { 0x00000403, 2, { 0x00000413, 0x00000301 } }, { 0x00000404, 1, { 0x00000404 } }, { 0x00000405, 1, { 0x00000405 } }, { 0x00000406, 1, { 0x00000406 } }, { 0x00000407, 2, { 0x00000406, 0x00000308 } }, { 0x00000408, 1, { 0x00000408 } }, { 0x00000409, 1, { 0x00000409 } }, { 0x0000040a, 1, { 0x0000040a } }, { 0x0000040b, 1, { 0x0000040b } }, { 0x0000040c, 2, { 0x0000041a, 0x00000301 } }, { 0x0000040d, 2, { 0x00000418, 0x00000300 } }, { 0x0000040e, 2, { 0x00000423, 0x00000306 } }, { 0x0000040f, 1, { 0x0000040f } }, { 0x00000410, 1, { 0x00000410 } }, { 0x00000411, 1, { 0x00000411 } }, { 0x00000412, 1, { 0x00000412 } }, { 0x00000413, 1, { 0x00000413 } }, { 0x00000414, 1, { 0x00000414 } }, { 0x00000415, 1, { 0x00000415 } }, { 0x00000416, 1, { 0x00000416 } }, { 0x00000417, 1, { 0x00000417 } }, { 0x00000418, 1, { 0x00000418 } }, { 0x00000419, 2, { 0x00000418, 0x00000306 } }, { 0x0000041a, 1, { 0x0000041a } }, { 0x0000041b, 1, { 0x0000041b } }, { 0x0000041c, 1, { 0x0000041c } }, { 0x0000041d, 1, { 0x0000041d } }, { 0x0000041e, 1, { 0x0000041e } }, { 0x0000041f, 1, { 0x0000041f } }, { 0x00000420, 1, { 0x00000420 } }, { 0x00000421, 1, { 0x00000421 } }, { 0x00000422, 1, { 0x00000422 } }, { 0x00000423, 1, { 0x00000423 } }, { 0x00000424, 1, { 0x00000424 } }, { 0x00000425, 1, { 0x00000425 } }, { 0x00000426, 1, { 0x00000426 } }, { 0x00000427, 1, { 0x00000427 } }, { 0x00000428, 1, { 0x00000428 } }, { 0x00000429, 1, { 0x00000429 } }, { 0x0000042a, 1, { 0x0000042a } }, { 0x0000042b, 1, { 0x0000042b } }, { 0x0000042c, 1, { 0x0000042c } }, { 0x0000042d, 1, { 0x0000042d } }, { 0x0000042e, 1, { 0x0000042e } }, { 0x0000042f, 1, { 0x0000042f } }, { 0x00000430, 1, { 0x00000430 } }, { 0x00000431, 1, { 0x00000431 } }, { 0x00000432, 1, { 0x00000432 } }, { 0x00000433, 1, { 0x00000433 } }, { 0x00000434, 1, { 0x00000434 } }, { 0x00000435, 1, { 0x00000435 } }, { 0x00000436, 1, { 0x00000436 } }, { 0x00000437, 1, { 0x00000437 } }, { 0x00000438, 1, { 0x00000438 } }, { 0x00000439, 2, { 0x00000438, 0x00000306 } }, { 0x0000043a, 1, { 0x0000043a } }, { 0x0000043b, 1, { 0x0000043b } }, { 0x0000043c, 1, { 0x0000043c } }, { 0x0000043d, 1, { 0x0000043d } }, { 0x0000043e, 1, { 0x0000043e } }, { 0x0000043f, 1, { 0x0000043f } }, { 0x00000440, 1, { 0x00000440 } }, { 0x00000441, 1, { 0x00000441 } }, { 0x00000442, 1, { 0x00000442 } }, { 0x00000443, 1, { 0x00000443 } }, { 0x00000444, 1, { 0x00000444 } }, { 0x00000445, 1, { 0x00000445 } }, { 0x00000446, 1, { 0x00000446 } }, { 0x00000447, 1, { 0x00000447 } }, { 0x00000448, 1, { 0x00000448 } }, { 0x00000449, 1, { 0x00000449 } }, { 0x0000044a, 1, { 0x0000044a } }, { 0x0000044b, 1, { 0x0000044b } }, { 0x0000044c, 1, { 0x0000044c } }, { 0x0000044d, 1, { 0x0000044d } }, { 0x0000044e, 1, { 0x0000044e } }, { 0x0000044f, 1, { 0x0000044f } }, { 0x00000450, 2, { 0x00000435, 0x00000300 } }, { 0x00000451, 2, { 0x00000435, 0x00000308 } }, { 0x00000452, 1, { 0x00000452 } }, { 0x00000453, 2, { 0x00000433, 0x00000301 } }, { 0x00000454, 1, { 0x00000454 } }, { 0x00000455, 1, { 0x00000455 } }, { 0x00000456, 1, { 0x00000456 } }, { 0x00000457, 2, { 0x00000456, 0x00000308 } }, { 0x00000458, 1, { 0x00000458 } }, { 0x00000459, 1, { 0x00000459 } }, { 0x0000045a, 1, { 0x0000045a } }, { 0x0000045b, 1, { 0x0000045b } }, { 0x0000045c, 2, { 0x0000043a, 0x00000301 } }, { 0x0000045d, 2, { 0x00000438, 0x00000300 } }, { 0x0000045e, 2, { 0x00000443, 0x00000306 } }, { 0x0000045f, 1, { 0x0000045f } }, { 0x00000460, 1, { 0x00000460 } }, { 0x00000461, 1, { 0x00000461 } }, { 0x00000462, 1, { 0x00000462 } }, { 0x00000463, 1, { 0x00000463 } }, { 0x00000464, 1, { 0x00000464 } }, { 0x00000465, 1, { 0x00000465 } }, { 0x00000466, 1, { 0x00000466 } }, { 0x00000467, 1, { 0x00000467 } }, { 0x00000468, 1, { 0x00000468 } }, { 0x00000469, 1, { 0x00000469 } }, { 0x0000046a, 1, { 0x0000046a } }, { 0x0000046b, 1, { 0x0000046b } }, { 0x0000046c, 1, { 0x0000046c } }, { 0x0000046d, 1, { 0x0000046d } }, { 0x0000046e, 1, { 0x0000046e } }, { 0x0000046f, 1, { 0x0000046f } }, { 0x00000470, 1, { 0x00000470 } }, { 0x00000471, 1, { 0x00000471 } }, { 0x00000472, 1, { 0x00000472 } }, { 0x00000473, 1, { 0x00000473 } }, { 0x00000474, 1, { 0x00000474 } }, { 0x00000475, 1, { 0x00000475 } }, { 0x00000476, 2, { 0x00000474, 0x0000030f } }, { 0x00000477, 2, { 0x00000475, 0x0000030f } }, { 0x00000478, 1, { 0x00000478 } }, { 0x00000479, 1, { 0x00000479 } }, { 0x0000047a, 1, { 0x0000047a } }, { 0x0000047b, 1, { 0x0000047b } }, { 0x0000047c, 1, { 0x0000047c } }, { 0x0000047d, 1, { 0x0000047d } }, { 0x0000047e, 1, { 0x0000047e } }, { 0x0000047f, 1, { 0x0000047f } }, { 0x00000480, 1, { 0x00000480 } }, { 0x00000481, 1, { 0x00000481 } }, { 0x00000482, 1, { 0x00000482 } }, { 0x00000483, 1, { 0x00000483 } }, { 0x00000484, 1, { 0x00000484 } }, { 0x00000485, 1, { 0x00000485 } }, { 0x00000486, 1, { 0x00000486 } }, { 0x00000487, 1, { 0x00000487 } }, { 0x00000488, 1, { 0x00000488 } }, { 0x00000489, 1, { 0x00000489 } }, { 0x0000048a, 1, { 0x0000048a } }, { 0x0000048b, 1, { 0x0000048b } }, { 0x0000048c, 1, { 0x0000048c } }, { 0x0000048d, 1, { 0x0000048d } }, { 0x0000048e, 1, { 0x0000048e } }, { 0x0000048f, 1, { 0x0000048f } }, { 0x00000490, 1, { 0x00000490 } }, { 0x00000491, 1, { 0x00000491 } }, { 0x00000492, 1, { 0x00000492 } }, { 0x00000493, 1, { 0x00000493 } }, { 0x00000494, 1, { 0x00000494 } }, { 0x00000495, 1, { 0x00000495 } }, { 0x00000496, 1, { 0x00000496 } }, { 0x00000497, 1, { 0x00000497 } }, { 0x00000498, 1, { 0x00000498 } }, { 0x00000499, 1, { 0x00000499 } }, { 0x0000049a, 1, { 0x0000049a } }, { 0x0000049b, 1, { 0x0000049b } }, { 0x0000049c, 1, { 0x0000049c } }, { 0x0000049d, 1, { 0x0000049d } }, { 0x0000049e, 1, { 0x0000049e } }, { 0x0000049f, 1, { 0x0000049f } }, { 0x000004a0, 1, { 0x000004a0 } }, { 0x000004a1, 1, { 0x000004a1 } }, { 0x000004a2, 1, { 0x000004a2 } }, { 0x000004a3, 1, { 0x000004a3 } }, { 0x000004a4, 1, { 0x000004a4 } }, { 0x000004a5, 1, { 0x000004a5 } }, { 0x000004a6, 1, { 0x000004a6 } }, { 0x000004a7, 1, { 0x000004a7 } }, { 0x000004a8, 1, { 0x000004a8 } }, { 0x000004a9, 1, { 0x000004a9 } }, { 0x000004aa, 1, { 0x000004aa } }, { 0x000004ab, 1, { 0x000004ab } }, { 0x000004ac, 1, { 0x000004ac } }, { 0x000004ad, 1, { 0x000004ad } }, { 0x000004ae, 1, { 0x000004ae } }, { 0x000004af, 1, { 0x000004af } }, { 0x000004b0, 1, { 0x000004b0 } }, { 0x000004b1, 1, { 0x000004b1 } }, { 0x000004b2, 1, { 0x000004b2 } }, { 0x000004b3, 1, { 0x000004b3 } }, { 0x000004b4, 1, { 0x000004b4 } }, { 0x000004b5, 1, { 0x000004b5 } }, { 0x000004b6, 1, { 0x000004b6 } }, { 0x000004b7, 1, { 0x000004b7 } }, { 0x000004b8, 1, { 0x000004b8 } }, { 0x000004b9, 1, { 0x000004b9 } }, { 0x000004ba, 1, { 0x000004ba } }, { 0x000004bb, 1, { 0x000004bb } }, { 0x000004bc, 1, { 0x000004bc } }, { 0x000004bd, 1, { 0x000004bd } }, { 0x000004be, 1, { 0x000004be } }, { 0x000004bf, 1, { 0x000004bf } }, { 0x000004c0, 1, { 0x000004c0 } }, { 0x000004c1, 2, { 0x00000416, 0x00000306 } }, { 0x000004c2, 2, { 0x00000436, 0x00000306 } }, { 0x000004c3, 1, { 0x000004c3 } }, { 0x000004c4, 1, { 0x000004c4 } }, { 0x000004c5, 1, { 0x000004c5 } }, { 0x000004c6, 1, { 0x000004c6 } }, { 0x000004c7, 1, { 0x000004c7 } }, { 0x000004c8, 1, { 0x000004c8 } }, { 0x000004c9, 1, { 0x000004c9 } }, { 0x000004ca, 1, { 0x000004ca } }, { 0x000004cb, 1, { 0x000004cb } }, { 0x000004cc, 1, { 0x000004cc } }, { 0x000004cd, 1, { 0x000004cd } }, { 0x000004ce, 1, { 0x000004ce } }, { 0x000004cf, 1, { 0x000004cf } }, { 0x000004d0, 2, { 0x00000410, 0x00000306 } }, { 0x000004d1, 2, { 0x00000430, 0x00000306 } }, { 0x000004d2, 2, { 0x00000410, 0x00000308 } }, { 0x000004d3, 2, { 0x00000430, 0x00000308 } }, { 0x000004d4, 1, { 0x000004d4 } }, { 0x000004d5, 1, { 0x000004d5 } }, { 0x000004d6, 2, { 0x00000415, 0x00000306 } }, { 0x000004d7, 2, { 0x00000435, 0x00000306 } }, { 0x000004d8, 1, { 0x000004d8 } }, { 0x000004d9, 1, { 0x000004d9 } }, { 0x000004da, 2, { 0x000004d8, 0x00000308 } }, { 0x000004db, 2, { 0x000004d9, 0x00000308 } }, { 0x000004dc, 2, { 0x00000416, 0x00000308 } }, { 0x000004dd, 2, { 0x00000436, 0x00000308 } }, { 0x000004de, 2, { 0x00000417, 0x00000308 } }, { 0x000004df, 2, { 0x00000437, 0x00000308 } }, { 0x000004e0, 1, { 0x000004e0 } }, { 0x000004e1, 1, { 0x000004e1 } }, { 0x000004e2, 2, { 0x00000418, 0x00000304 } }, { 0x000004e3, 2, { 0x00000438, 0x00000304 } }, { 0x000004e4, 2, { 0x00000418, 0x00000308 } }, { 0x000004e5, 2, { 0x00000438, 0x00000308 } }, { 0x000004e6, 2, { 0x0000041e, 0x00000308 } }, { 0x000004e7, 2, { 0x0000043e, 0x00000308 } }, { 0x000004e8, 1, { 0x000004e8 } }, { 0x000004e9, 1, { 0x000004e9 } }, { 0x000004ea, 2, { 0x000004e8, 0x00000308 } }, { 0x000004eb, 2, { 0x000004e9, 0x00000308 } }, { 0x000004ec, 2, { 0x0000042d, 0x00000308 } }, { 0x000004ed, 2, { 0x0000044d, 0x00000308 } }, { 0x000004ee, 2, { 0x00000423, 0x00000304 } }, { 0x000004ef, 2, { 0x00000443, 0x00000304 } }, { 0x000004f0, 2, { 0x00000423, 0x00000308 } }, { 0x000004f1, 2, { 0x00000443, 0x00000308 } }, { 0x000004f2, 2, { 0x00000423, 0x0000030b } }, { 0x000004f3, 2, { 0x00000443, 0x0000030b } }, { 0x000004f4, 2, { 0x00000427, 0x00000308 } }, { 0x000004f5, 2, { 0x00000447, 0x00000308 } }, { 0x000004f6, 1, { 0x000004f6 } }, { 0x000004f7, 1, { 0x000004f7 } }, { 0x000004f8, 2, { 0x0000042b, 0x00000308 } }, { 0x000004f9, 2, { 0x0000044b, 0x00000308 } }, { 0x000004fa, 1, { 0x000004fa } }, { 0x000004fb, 1, { 0x000004fb } }, { 0x000004fc, 1, { 0x000004fc } }, { 0x000004fd, 1, { 0x000004fd } }, { 0x000004fe, 1, { 0x000004fe } }, { 0x000004ff, 1, { 0x000004ff } }, { 0x00000500, 1, { 0x00000500 } }, { 0x00000501, 1, { 0x00000501 } }, { 0x00000502, 1, { 0x00000502 } }, { 0x00000503, 1, { 0x00000503 } }, { 0x00000504, 1, { 0x00000504 } }, { 0x00000505, 1, { 0x00000505 } }, { 0x00000506, 1, { 0x00000506 } }, { 0x00000507, 1, { 0x00000507 } }, { 0x00000508, 1, { 0x00000508 } }, { 0x00000509, 1, { 0x00000509 } }, { 0x0000050a, 1, { 0x0000050a } }, { 0x0000050b, 1, { 0x0000050b } }, { 0x0000050c, 1, { 0x0000050c } }, { 0x0000050d, 1, { 0x0000050d } }, { 0x0000050e, 1, { 0x0000050e } }, { 0x0000050f, 1, { 0x0000050f } }, { 0x00000510, 1, { 0x00000510 } }, { 0x00000511, 1, { 0x00000511 } }, { 0x00000512, 1, { 0x00000512 } }, { 0x00000513, 1, { 0x00000513 } }, { 0x00000514, 1, { 0x00000514 } }, { 0x00000515, 1, { 0x00000515 } }, { 0x00000516, 1, { 0x00000516 } }, { 0x00000517, 1, { 0x00000517 } }, { 0x00000518, 1, { 0x00000518 } }, { 0x00000519, 1, { 0x00000519 } }, { 0x0000051a, 1, { 0x0000051a } }, { 0x0000051b, 1, { 0x0000051b } }, { 0x0000051c, 1, { 0x0000051c } }, { 0x0000051d, 1, { 0x0000051d } }, { 0x0000051e, 1, { 0x0000051e } }, { 0x0000051f, 1, { 0x0000051f } }, { 0x00000520, 1, { 0x00000520 } }, { 0x00000521, 1, { 0x00000521 } }, { 0x00000522, 1, { 0x00000522 } }, { 0x00000523, 1, { 0x00000523 } }, { 0x00000524, 1, { 0x00000524 } }, { 0x00000525, 1, { 0x00000525 } }, { 0x00000526, 1, { 0x00000526 } }, { 0x00000527, 1, { 0x00000527 } }, { 0x00000528, 1, { 0x00000528 } }, { 0x00000529, 1, { 0x00000529 } }, { 0x0000052a, 1, { 0x0000052a } }, { 0x0000052b, 1, { 0x0000052b } }, { 0x0000052c, 1, { 0x0000052c } }, { 0x0000052d, 1, { 0x0000052d } }, { 0x0000052e, 1, { 0x0000052e } }, { 0x0000052f, 1, { 0x0000052f } }, { 0x00000531, 1, { 0x00000531 } }, { 0x00000532, 1, { 0x00000532 } }, { 0x00000533, 1, { 0x00000533 } }, { 0x00000534, 1, { 0x00000534 } }, { 0x00000535, 1, { 0x00000535 } }, { 0x00000536, 1, { 0x00000536 } }, { 0x00000537, 1, { 0x00000537 } }, { 0x00000538, 1, { 0x00000538 } }, { 0x00000539, 1, { 0x00000539 } }, { 0x0000053a, 1, { 0x0000053a } }, { 0x0000053b, 1, { 0x0000053b } }, { 0x0000053c, 1, { 0x0000053c } }, { 0x0000053d, 1, { 0x0000053d } }, { 0x0000053e, 1, { 0x0000053e } }, { 0x0000053f, 1, { 0x0000053f } }, { 0x00000540, 1, { 0x00000540 } }, { 0x00000541, 1, { 0x00000541 } }, { 0x00000542, 1, { 0x00000542 } }, { 0x00000543, 1, { 0x00000543 } }, { 0x00000544, 1, { 0x00000544 } }, { 0x00000545, 1, { 0x00000545 } }, { 0x00000546, 1, { 0x00000546 } }, { 0x00000547, 1, { 0x00000547 } }, { 0x00000548, 1, { 0x00000548 } }, { 0x00000549, 1, { 0x00000549 } }, { 0x0000054a, 1, { 0x0000054a } }, { 0x0000054b, 1, { 0x0000054b } }, { 0x0000054c, 1, { 0x0000054c } }, { 0x0000054d, 1, { 0x0000054d } }, { 0x0000054e, 1, { 0x0000054e } }, { 0x0000054f, 1, { 0x0000054f } }, { 0x00000550, 1, { 0x00000550 } }, { 0x00000551, 1, { 0x00000551 } }, { 0x00000552, 1, { 0x00000552 } }, { 0x00000553, 1, { 0x00000553 } }, { 0x00000554, 1, { 0x00000554 } }, { 0x00000555, 1, { 0x00000555 } }, { 0x00000556, 1, { 0x00000556 } }, { 0x00000559, 1, { 0x00000559 } }, { 0x0000055a, 1, { 0x0000055a } }, { 0x0000055b, 1, { 0x0000055b } }, { 0x0000055c, 1, { 0x0000055c } }, { 0x0000055d, 1, { 0x0000055d } }, { 0x0000055e, 1, { 0x0000055e } }, { 0x0000055f, 1, { 0x0000055f } }, { 0x00000561, 1, { 0x00000561 } }, { 0x00000562, 1, { 0x00000562 } }, { 0x00000563, 1, { 0x00000563 } }, { 0x00000564, 1, { 0x00000564 } }, { 0x00000565, 1, { 0x00000565 } }, { 0x00000566, 1, { 0x00000566 } }, { 0x00000567, 1, { 0x00000567 } }, { 0x00000568, 1, { 0x00000568 } }, { 0x00000569, 1, { 0x00000569 } }, { 0x0000056a, 1, { 0x0000056a } }, { 0x0000056b, 1, { 0x0000056b } }, { 0x0000056c, 1, { 0x0000056c } }, { 0x0000056d, 1, { 0x0000056d } }, { 0x0000056e, 1, { 0x0000056e } }, { 0x0000056f, 1, { 0x0000056f } }, { 0x00000570, 1, { 0x00000570 } }, { 0x00000571, 1, { 0x00000571 } }, { 0x00000572, 1, { 0x00000572 } }, { 0x00000573, 1, { 0x00000573 } }, { 0x00000574, 1, { 0x00000574 } }, { 0x00000575, 1, { 0x00000575 } }, { 0x00000576, 1, { 0x00000576 } }, { 0x00000577, 1, { 0x00000577 } }, { 0x00000578, 1, { 0x00000578 } }, { 0x00000579, 1, { 0x00000579 } }, { 0x0000057a, 1, { 0x0000057a } }, { 0x0000057b, 1, { 0x0000057b } }, { 0x0000057c, 1, { 0x0000057c } }, { 0x0000057d, 1, { 0x0000057d } }, { 0x0000057e, 1, { 0x0000057e } }, { 0x0000057f, 1, { 0x0000057f } }, { 0x00000580, 1, { 0x00000580 } }, { 0x00000581, 1, { 0x00000581 } }, { 0x00000582, 1, { 0x00000582 } }, { 0x00000583, 1, { 0x00000583 } }, { 0x00000584, 1, { 0x00000584 } }, { 0x00000585, 1, { 0x00000585 } }, { 0x00000586, 1, { 0x00000586 } }, { 0x00000587, 1, { 0x00000587 } }, { 0x00000589, 1, { 0x00000589 } }, { 0x0000058a, 1, { 0x0000058a } }, { 0x0000058d, 1, { 0x0000058d } }, { 0x0000058e, 1, { 0x0000058e } }, { 0x0000058f, 1, { 0x0000058f } }, { 0x00000591, 1, { 0x00000591 } }, { 0x00000592, 1, { 0x00000592 } }, { 0x00000593, 1, { 0x00000593 } }, { 0x00000594, 1, { 0x00000594 } }, { 0x00000595, 1, { 0x00000595 } }, { 0x00000596, 1, { 0x00000596 } }, { 0x00000597, 1, { 0x00000597 } }, { 0x00000598, 1, { 0x00000598 } }, { 0x00000599, 1, { 0x00000599 } }, { 0x0000059a, 1, { 0x0000059a } }, { 0x0000059b, 1, { 0x0000059b } }, { 0x0000059c, 1, { 0x0000059c } }, { 0x0000059d, 1, { 0x0000059d } }, { 0x0000059e, 1, { 0x0000059e } }, { 0x0000059f, 1, { 0x0000059f } }, { 0x000005a0, 1, { 0x000005a0 } }, { 0x000005a1, 1, { 0x000005a1 } }, { 0x000005a2, 1, { 0x000005a2 } }, { 0x000005a3, 1, { 0x000005a3 } }, { 0x000005a4, 1, { 0x000005a4 } }, { 0x000005a5, 1, { 0x000005a5 } }, { 0x000005a6, 1, { 0x000005a6 } }, { 0x000005a7, 1, { 0x000005a7 } }, { 0x000005a8, 1, { 0x000005a8 } }, { 0x000005a9, 1, { 0x000005a9 } }, { 0x000005aa, 1, { 0x000005aa } }, { 0x000005ab, 1, { 0x000005ab } }, { 0x000005ac, 1, { 0x000005ac } }, { 0x000005ad, 1, { 0x000005ad } }, { 0x000005ae, 1, { 0x000005ae } }, { 0x000005af, 1, { 0x000005af } }, { 0x000005b0, 1, { 0x000005b0 } }, { 0x000005b1, 1, { 0x000005b1 } }, { 0x000005b2, 1, { 0x000005b2 } }, { 0x000005b3, 1, { 0x000005b3 } }, { 0x000005b4, 1, { 0x000005b4 } }, { 0x000005b5, 1, { 0x000005b5 } }, { 0x000005b6, 1, { 0x000005b6 } }, { 0x000005b7, 1, { 0x000005b7 } }, { 0x000005b8, 1, { 0x000005b8 } }, { 0x000005b9, 1, { 0x000005b9 } }, { 0x000005ba, 1, { 0x000005ba } }, { 0x000005bb, 1, { 0x000005bb } }, { 0x000005bc, 1, { 0x000005bc } }, { 0x000005bd, 1, { 0x000005bd } }, { 0x000005be, 1, { 0x000005be } }, { 0x000005bf, 1, { 0x000005bf } }, { 0x000005c0, 1, { 0x000005c0 } }, { 0x000005c1, 1, { 0x000005c1 } }, { 0x000005c2, 1, { 0x000005c2 } }, { 0x000005c3, 1, { 0x000005c3 } }, { 0x000005c4, 1, { 0x000005c4 } }, { 0x000005c5, 1, { 0x000005c5 } }, { 0x000005c6, 1, { 0x000005c6 } }, { 0x000005c7, 1, { 0x000005c7 } }, { 0x000005d0, 1, { 0x000005d0 } }, { 0x000005d1, 1, { 0x000005d1 } }, { 0x000005d2, 1, { 0x000005d2 } }, { 0x000005d3, 1, { 0x000005d3 } }, { 0x000005d4, 1, { 0x000005d4 } }, { 0x000005d5, 1, { 0x000005d5 } }, { 0x000005d6, 1, { 0x000005d6 } }, { 0x000005d7, 1, { 0x000005d7 } }, { 0x000005d8, 1, { 0x000005d8 } }, { 0x000005d9, 1, { 0x000005d9 } }, { 0x000005da, 1, { 0x000005da } }, { 0x000005db, 1, { 0x000005db } }, { 0x000005dc, 1, { 0x000005dc } }, { 0x000005dd, 1, { 0x000005dd } }, { 0x000005de, 1, { 0x000005de } }, { 0x000005df, 1, { 0x000005df } }, { 0x000005e0, 1, { 0x000005e0 } }, { 0x000005e1, 1, { 0x000005e1 } }, { 0x000005e2, 1, { 0x000005e2 } }, { 0x000005e3, 1, { 0x000005e3 } }, { 0x000005e4, 1, { 0x000005e4 } }, { 0x000005e5, 1, { 0x000005e5 } }, { 0x000005e6, 1, { 0x000005e6 } }, { 0x000005e7, 1, { 0x000005e7 } }, { 0x000005e8, 1, { 0x000005e8 } }, { 0x000005e9, 1, { 0x000005e9 } }, { 0x000005ea, 1, { 0x000005ea } }, { 0x000005f0, 1, { 0x000005f0 } }, { 0x000005f1, 1, { 0x000005f1 } }, { 0x000005f2, 1, { 0x000005f2 } }, { 0x000005f3, 1, { 0x000005f3 } }, { 0x000005f4, 1, { 0x000005f4 } }, { 0x00000600, 1, { 0x00000600 } }, { 0x00000601, 1, { 0x00000601 } }, { 0x00000602, 1, { 0x00000602 } }, { 0x00000603, 1, { 0x00000603 } }, { 0x00000604, 1, { 0x00000604 } }, { 0x00000605, 1, { 0x00000605 } }, { 0x00000606, 1, { 0x00000606 } }, { 0x00000607, 1, { 0x00000607 } }, { 0x00000608, 1, { 0x00000608 } }, { 0x00000609, 1, { 0x00000609 } }, { 0x0000060a, 1, { 0x0000060a } }, { 0x0000060b, 1, { 0x0000060b } }, { 0x0000060c, 1, { 0x0000060c } }, { 0x0000060d, 1, { 0x0000060d } }, { 0x0000060e, 1, { 0x0000060e } }, { 0x0000060f, 1, { 0x0000060f } }, { 0x00000610, 1, { 0x00000610 } }, { 0x00000611, 1, { 0x00000611 } }, { 0x00000612, 1, { 0x00000612 } }, { 0x00000613, 1, { 0x00000613 } }, { 0x00000614, 1, { 0x00000614 } }, { 0x00000615, 1, { 0x00000615 } }, { 0x00000616, 1, { 0x00000616 } }, { 0x00000617, 1, { 0x00000617 } }, { 0x00000618, 1, { 0x00000618 } }, { 0x00000619, 1, { 0x00000619 } }, { 0x0000061a, 1, { 0x0000061a } }, { 0x0000061b, 1, { 0x0000061b } }, { 0x0000061c, 1, { 0x0000061c } }, { 0x0000061e, 1, { 0x0000061e } }, { 0x0000061f, 1, { 0x0000061f } }, { 0x00000620, 1, { 0x00000620 } }, { 0x00000621, 1, { 0x00000621 } }, { 0x00000622, 2, { 0x00000627, 0x00000653 } }, { 0x00000623, 2, { 0x00000627, 0x00000654 } }, { 0x00000624, 2, { 0x00000648, 0x00000654 } }, { 0x00000625, 2, { 0x00000627, 0x00000655 } }, { 0x00000626, 2, { 0x0000064a, 0x00000654 } }, { 0x00000627, 1, { 0x00000627 } }, { 0x00000628, 1, { 0x00000628 } }, { 0x00000629, 1, { 0x00000629 } }, { 0x0000062a, 1, { 0x0000062a } }, { 0x0000062b, 1, { 0x0000062b } }, { 0x0000062c, 1, { 0x0000062c } }, { 0x0000062d, 1, { 0x0000062d } }, { 0x0000062e, 1, { 0x0000062e } }, { 0x0000062f, 1, { 0x0000062f } }, { 0x00000630, 1, { 0x00000630 } }, { 0x00000631, 1, { 0x00000631 } }, { 0x00000632, 1, { 0x00000632 } }, { 0x00000633, 1, { 0x00000633 } }, { 0x00000634, 1, { 0x00000634 } }, { 0x00000635, 1, { 0x00000635 } }, { 0x00000636, 1, { 0x00000636 } }, { 0x00000637, 1, { 0x00000637 } }, { 0x00000638, 1, { 0x00000638 } }, { 0x00000639, 1, { 0x00000639 } }, { 0x0000063a, 1, { 0x0000063a } }, { 0x0000063b, 1, { 0x0000063b } }, { 0x0000063c, 1, { 0x0000063c } }, { 0x0000063d, 1, { 0x0000063d } }, { 0x0000063e, 1, { 0x0000063e } }, { 0x0000063f, 1, { 0x0000063f } }, { 0x00000640, 1, { 0x00000640 } }, { 0x00000641, 1, { 0x00000641 } }, { 0x00000642, 1, { 0x00000642 } }, { 0x00000643, 1, { 0x00000643 } }, { 0x00000644, 1, { 0x00000644 } }, { 0x00000645, 1, { 0x00000645 } }, { 0x00000646, 1, { 0x00000646 } }, { 0x00000647, 1, { 0x00000647 } }, { 0x00000648, 1, { 0x00000648 } }, { 0x00000649, 1, { 0x00000649 } }, { 0x0000064a, 1, { 0x0000064a } }, { 0x0000064b, 1, { 0x0000064b } }, { 0x0000064c, 1, { 0x0000064c } }, { 0x0000064d, 1, { 0x0000064d } }, { 0x0000064e, 1, { 0x0000064e } }, { 0x0000064f, 1, { 0x0000064f } }, { 0x00000650, 1, { 0x00000650 } }, { 0x00000651, 1, { 0x00000651 } }, { 0x00000652, 1, { 0x00000652 } }, { 0x00000653, 1, { 0x00000653 } }, { 0x00000654, 1, { 0x00000654 } }, { 0x00000655, 1, { 0x00000655 } }, { 0x00000656, 1, { 0x00000656 } }, { 0x00000657, 1, { 0x00000657 } }, { 0x00000658, 1, { 0x00000658 } }, { 0x00000659, 1, { 0x00000659 } }, { 0x0000065a, 1, { 0x0000065a } }, { 0x0000065b, 1, { 0x0000065b } }, { 0x0000065c, 1, { 0x0000065c } }, { 0x0000065d, 1, { 0x0000065d } }, { 0x0000065e, 1, { 0x0000065e } }, { 0x0000065f, 1, { 0x0000065f } }, { 0x00000660, 1, { 0x00000660 } }, { 0x00000661, 1, { 0x00000661 } }, { 0x00000662, 1, { 0x00000662 } }, { 0x00000663, 1, { 0x00000663 } }, { 0x00000664, 1, { 0x00000664 } }, { 0x00000665, 1, { 0x00000665 } }, { 0x00000666, 1, { 0x00000666 } }, { 0x00000667, 1, { 0x00000667 } }, { 0x00000668, 1, { 0x00000668 } }, { 0x00000669, 1, { 0x00000669 } }, { 0x0000066a, 1, { 0x0000066a } }, { 0x0000066b, 1, { 0x0000066b } }, { 0x0000066c, 1, { 0x0000066c } }, { 0x0000066d, 1, { 0x0000066d } }, { 0x0000066e, 1, { 0x0000066e } }, { 0x0000066f, 1, { 0x0000066f } }, { 0x00000670, 1, { 0x00000670 } }, { 0x00000671, 1, { 0x00000671 } }, { 0x00000672, 1, { 0x00000672 } }, { 0x00000673, 1, { 0x00000673 } }, { 0x00000674, 1, { 0x00000674 } }, { 0x00000675, 1, { 0x00000675 } }, { 0x00000676, 1, { 0x00000676 } }, { 0x00000677, 1, { 0x00000677 } }, { 0x00000678, 1, { 0x00000678 } }, { 0x00000679, 1, { 0x00000679 } }, { 0x0000067a, 1, { 0x0000067a } }, { 0x0000067b, 1, { 0x0000067b } }, { 0x0000067c, 1, { 0x0000067c } }, { 0x0000067d, 1, { 0x0000067d } }, { 0x0000067e, 1, { 0x0000067e } }, { 0x0000067f, 1, { 0x0000067f } }, { 0x00000680, 1, { 0x00000680 } }, { 0x00000681, 1, { 0x00000681 } }, { 0x00000682, 1, { 0x00000682 } }, { 0x00000683, 1, { 0x00000683 } }, { 0x00000684, 1, { 0x00000684 } }, { 0x00000685, 1, { 0x00000685 } }, { 0x00000686, 1, { 0x00000686 } }, { 0x00000687, 1, { 0x00000687 } }, { 0x00000688, 1, { 0x00000688 } }, { 0x00000689, 1, { 0x00000689 } }, { 0x0000068a, 1, { 0x0000068a } }, { 0x0000068b, 1, { 0x0000068b } }, { 0x0000068c, 1, { 0x0000068c } }, { 0x0000068d, 1, { 0x0000068d } }, { 0x0000068e, 1, { 0x0000068e } }, { 0x0000068f, 1, { 0x0000068f } }, { 0x00000690, 1, { 0x00000690 } }, { 0x00000691, 1, { 0x00000691 } }, { 0x00000692, 1, { 0x00000692 } }, { 0x00000693, 1, { 0x00000693 } }, { 0x00000694, 1, { 0x00000694 } }, { 0x00000695, 1, { 0x00000695 } }, { 0x00000696, 1, { 0x00000696 } }, { 0x00000697, 1, { 0x00000697 } }, { 0x00000698, 1, { 0x00000698 } }, { 0x00000699, 1, { 0x00000699 } }, { 0x0000069a, 1, { 0x0000069a } }, { 0x0000069b, 1, { 0x0000069b } }, { 0x0000069c, 1, { 0x0000069c } }, { 0x0000069d, 1, { 0x0000069d } }, { 0x0000069e, 1, { 0x0000069e } }, { 0x0000069f, 1, { 0x0000069f } }, { 0x000006a0, 1, { 0x000006a0 } }, { 0x000006a1, 1, { 0x000006a1 } }, { 0x000006a2, 1, { 0x000006a2 } }, { 0x000006a3, 1, { 0x000006a3 } }, { 0x000006a4, 1, { 0x000006a4 } }, { 0x000006a5, 1, { 0x000006a5 } }, { 0x000006a6, 1, { 0x000006a6 } }, { 0x000006a7, 1, { 0x000006a7 } }, { 0x000006a8, 1, { 0x000006a8 } }, { 0x000006a9, 1, { 0x000006a9 } }, { 0x000006aa, 1, { 0x000006aa } }, { 0x000006ab, 1, { 0x000006ab } }, { 0x000006ac, 1, { 0x000006ac } }, { 0x000006ad, 1, { 0x000006ad } }, { 0x000006ae, 1, { 0x000006ae } }, { 0x000006af, 1, { 0x000006af } }, { 0x000006b0, 1, { 0x000006b0 } }, { 0x000006b1, 1, { 0x000006b1 } }, { 0x000006b2, 1, { 0x000006b2 } }, { 0x000006b3, 1, { 0x000006b3 } }, { 0x000006b4, 1, { 0x000006b4 } }, { 0x000006b5, 1, { 0x000006b5 } }, { 0x000006b6, 1, { 0x000006b6 } }, { 0x000006b7, 1, { 0x000006b7 } }, { 0x000006b8, 1, { 0x000006b8 } }, { 0x000006b9, 1, { 0x000006b9 } }, { 0x000006ba, 1, { 0x000006ba } }, { 0x000006bb, 1, { 0x000006bb } }, { 0x000006bc, 1, { 0x000006bc } }, { 0x000006bd, 1, { 0x000006bd } }, { 0x000006be, 1, { 0x000006be } }, { 0x000006bf, 1, { 0x000006bf } }, { 0x000006c0, 2, { 0x000006d5, 0x00000654 } }, { 0x000006c1, 1, { 0x000006c1 } }, { 0x000006c2, 2, { 0x000006c1, 0x00000654 } }, { 0x000006c3, 1, { 0x000006c3 } }, { 0x000006c4, 1, { 0x000006c4 } }, { 0x000006c5, 1, { 0x000006c5 } }, { 0x000006c6, 1, { 0x000006c6 } }, { 0x000006c7, 1, { 0x000006c7 } }, { 0x000006c8, 1, { 0x000006c8 } }, { 0x000006c9, 1, { 0x000006c9 } }, { 0x000006ca, 1, { 0x000006ca } }, { 0x000006cb, 1, { 0x000006cb } }, { 0x000006cc, 1, { 0x000006cc } }, { 0x000006cd, 1, { 0x000006cd } }, { 0x000006ce, 1, { 0x000006ce } }, { 0x000006cf, 1, { 0x000006cf } }, { 0x000006d0, 1, { 0x000006d0 } }, { 0x000006d1, 1, { 0x000006d1 } }, { 0x000006d2, 1, { 0x000006d2 } }, { 0x000006d3, 2, { 0x000006d2, 0x00000654 } }, { 0x000006d4, 1, { 0x000006d4 } }, { 0x000006d5, 1, { 0x000006d5 } }, { 0x000006d6, 1, { 0x000006d6 } }, { 0x000006d7, 1, { 0x000006d7 } }, { 0x000006d8, 1, { 0x000006d8 } }, { 0x000006d9, 1, { 0x000006d9 } }, { 0x000006da, 1, { 0x000006da } }, { 0x000006db, 1, { 0x000006db } }, { 0x000006dc, 1, { 0x000006dc } }, { 0x000006dd, 1, { 0x000006dd } }, { 0x000006de, 1, { 0x000006de } }, { 0x000006df, 1, { 0x000006df } }, { 0x000006e0, 1, { 0x000006e0 } }, { 0x000006e1, 1, { 0x000006e1 } }, { 0x000006e2, 1, { 0x000006e2 } }, { 0x000006e3, 1, { 0x000006e3 } }, { 0x000006e4, 1, { 0x000006e4 } }, { 0x000006e5, 1, { 0x000006e5 } }, { 0x000006e6, 1, { 0x000006e6 } }, { 0x000006e7, 1, { 0x000006e7 } }, { 0x000006e8, 1, { 0x000006e8 } }, { 0x000006e9, 1, { 0x000006e9 } }, { 0x000006ea, 1, { 0x000006ea } }, { 0x000006eb, 1, { 0x000006eb } }, { 0x000006ec, 1, { 0x000006ec } }, { 0x000006ed, 1, { 0x000006ed } }, { 0x000006ee, 1, { 0x000006ee } }, { 0x000006ef, 1, { 0x000006ef } }, { 0x000006f0, 1, { 0x000006f0 } }, { 0x000006f1, 1, { 0x000006f1 } }, { 0x000006f2, 1, { 0x000006f2 } }, { 0x000006f3, 1, { 0x000006f3 } }, { 0x000006f4, 1, { 0x000006f4 } }, { 0x000006f5, 1, { 0x000006f5 } }, { 0x000006f6, 1, { 0x000006f6 } }, { 0x000006f7, 1, { 0x000006f7 } }, { 0x000006f8, 1, { 0x000006f8 } }, { 0x000006f9, 1, { 0x000006f9 } }, { 0x000006fa, 1, { 0x000006fa } }, { 0x000006fb, 1, { 0x000006fb } }, { 0x000006fc, 1, { 0x000006fc } }, { 0x000006fd, 1, { 0x000006fd } }, { 0x000006fe, 1, { 0x000006fe } }, { 0x000006ff, 1, { 0x000006ff } }, { 0x00000700, 1, { 0x00000700 } }, { 0x00000701, 1, { 0x00000701 } }, { 0x00000702, 1, { 0x00000702 } }, { 0x00000703, 1, { 0x00000703 } }, { 0x00000704, 1, { 0x00000704 } }, { 0x00000705, 1, { 0x00000705 } }, { 0x00000706, 1, { 0x00000706 } }, { 0x00000707, 1, { 0x00000707 } }, { 0x00000708, 1, { 0x00000708 } }, { 0x00000709, 1, { 0x00000709 } }, { 0x0000070a, 1, { 0x0000070a } }, { 0x0000070b, 1, { 0x0000070b } }, { 0x0000070c, 1, { 0x0000070c } }, { 0x0000070d, 1, { 0x0000070d } }, { 0x0000070f, 1, { 0x0000070f } }, { 0x00000710, 1, { 0x00000710 } }, { 0x00000711, 1, { 0x00000711 } }, { 0x00000712, 1, { 0x00000712 } }, { 0x00000713, 1, { 0x00000713 } }, { 0x00000714, 1, { 0x00000714 } }, { 0x00000715, 1, { 0x00000715 } }, { 0x00000716, 1, { 0x00000716 } }, { 0x00000717, 1, { 0x00000717 } }, { 0x00000718, 1, { 0x00000718 } }, { 0x00000719, 1, { 0x00000719 } }, { 0x0000071a, 1, { 0x0000071a } }, { 0x0000071b, 1, { 0x0000071b } }, { 0x0000071c, 1, { 0x0000071c } }, { 0x0000071d, 1, { 0x0000071d } }, { 0x0000071e, 1, { 0x0000071e } }, { 0x0000071f, 1, { 0x0000071f } }, { 0x00000720, 1, { 0x00000720 } }, { 0x00000721, 1, { 0x00000721 } }, { 0x00000722, 1, { 0x00000722 } }, { 0x00000723, 1, { 0x00000723 } }, { 0x00000724, 1, { 0x00000724 } }, { 0x00000725, 1, { 0x00000725 } }, { 0x00000726, 1, { 0x00000726 } }, { 0x00000727, 1, { 0x00000727 } }, { 0x00000728, 1, { 0x00000728 } }, { 0x00000729, 1, { 0x00000729 } }, { 0x0000072a, 1, { 0x0000072a } }, { 0x0000072b, 1, { 0x0000072b } }, { 0x0000072c, 1, { 0x0000072c } }, { 0x0000072d, 1, { 0x0000072d } }, { 0x0000072e, 1, { 0x0000072e } }, { 0x0000072f, 1, { 0x0000072f } }, { 0x00000730, 1, { 0x00000730 } }, { 0x00000731, 1, { 0x00000731 } }, { 0x00000732, 1, { 0x00000732 } }, { 0x00000733, 1, { 0x00000733 } }, { 0x00000734, 1, { 0x00000734 } }, { 0x00000735, 1, { 0x00000735 } }, { 0x00000736, 1, { 0x00000736 } }, { 0x00000737, 1, { 0x00000737 } }, { 0x00000738, 1, { 0x00000738 } }, { 0x00000739, 1, { 0x00000739 } }, { 0x0000073a, 1, { 0x0000073a } }, { 0x0000073b, 1, { 0x0000073b } }, { 0x0000073c, 1, { 0x0000073c } }, { 0x0000073d, 1, { 0x0000073d } }, { 0x0000073e, 1, { 0x0000073e } }, { 0x0000073f, 1, { 0x0000073f } }, { 0x00000740, 1, { 0x00000740 } }, { 0x00000741, 1, { 0x00000741 } }, { 0x00000742, 1, { 0x00000742 } }, { 0x00000743, 1, { 0x00000743 } }, { 0x00000744, 1, { 0x00000744 } }, { 0x00000745, 1, { 0x00000745 } }, { 0x00000746, 1, { 0x00000746 } }, { 0x00000747, 1, { 0x00000747 } }, { 0x00000748, 1, { 0x00000748 } }, { 0x00000749, 1, { 0x00000749 } }, { 0x0000074a, 1, { 0x0000074a } }, { 0x0000074d, 1, { 0x0000074d } }, { 0x0000074e, 1, { 0x0000074e } }, { 0x0000074f, 1, { 0x0000074f } }, { 0x00000750, 1, { 0x00000750 } }, { 0x00000751, 1, { 0x00000751 } }, { 0x00000752, 1, { 0x00000752 } }, { 0x00000753, 1, { 0x00000753 } }, { 0x00000754, 1, { 0x00000754 } }, { 0x00000755, 1, { 0x00000755 } }, { 0x00000756, 1, { 0x00000756 } }, { 0x00000757, 1, { 0x00000757 } }, { 0x00000758, 1, { 0x00000758 } }, { 0x00000759, 1, { 0x00000759 } }, { 0x0000075a, 1, { 0x0000075a } }, { 0x0000075b, 1, { 0x0000075b } }, { 0x0000075c, 1, { 0x0000075c } }, { 0x0000075d, 1, { 0x0000075d } }, { 0x0000075e, 1, { 0x0000075e } }, { 0x0000075f, 1, { 0x0000075f } }, { 0x00000760, 1, { 0x00000760 } }, { 0x00000761, 1, { 0x00000761 } }, { 0x00000762, 1, { 0x00000762 } }, { 0x00000763, 1, { 0x00000763 } }, { 0x00000764, 1, { 0x00000764 } }, { 0x00000765, 1, { 0x00000765 } }, { 0x00000766, 1, { 0x00000766 } }, { 0x00000767, 1, { 0x00000767 } }, { 0x00000768, 1, { 0x00000768 } }, { 0x00000769, 1, { 0x00000769 } }, { 0x0000076a, 1, { 0x0000076a } }, { 0x0000076b, 1, { 0x0000076b } }, { 0x0000076c, 1, { 0x0000076c } }, { 0x0000076d, 1, { 0x0000076d } }, { 0x0000076e, 1, { 0x0000076e } }, { 0x0000076f, 1, { 0x0000076f } }, { 0x00000770, 1, { 0x00000770 } }, { 0x00000771, 1, { 0x00000771 } }, { 0x00000772, 1, { 0x00000772 } }, { 0x00000773, 1, { 0x00000773 } }, { 0x00000774, 1, { 0x00000774 } }, { 0x00000775, 1, { 0x00000775 } }, { 0x00000776, 1, { 0x00000776 } }, { 0x00000777, 1, { 0x00000777 } }, { 0x00000778, 1, { 0x00000778 } }, { 0x00000779, 1, { 0x00000779 } }, { 0x0000077a, 1, { 0x0000077a } }, { 0x0000077b, 1, { 0x0000077b } }, { 0x0000077c, 1, { 0x0000077c } }, { 0x0000077d, 1, { 0x0000077d } }, { 0x0000077e, 1, { 0x0000077e } }, { 0x0000077f, 1, { 0x0000077f } }, { 0x00000780, 1, { 0x00000780 } }, { 0x00000781, 1, { 0x00000781 } }, { 0x00000782, 1, { 0x00000782 } }, { 0x00000783, 1, { 0x00000783 } }, { 0x00000784, 1, { 0x00000784 } }, { 0x00000785, 1, { 0x00000785 } }, { 0x00000786, 1, { 0x00000786 } }, { 0x00000787, 1, { 0x00000787 } }, { 0x00000788, 1, { 0x00000788 } }, { 0x00000789, 1, { 0x00000789 } }, { 0x0000078a, 1, { 0x0000078a } }, { 0x0000078b, 1, { 0x0000078b } }, { 0x0000078c, 1, { 0x0000078c } }, { 0x0000078d, 1, { 0x0000078d } }, { 0x0000078e, 1, { 0x0000078e } }, { 0x0000078f, 1, { 0x0000078f } }, { 0x00000790, 1, { 0x00000790 } }, { 0x00000791, 1, { 0x00000791 } }, { 0x00000792, 1, { 0x00000792 } }, { 0x00000793, 1, { 0x00000793 } }, { 0x00000794, 1, { 0x00000794 } }, { 0x00000795, 1, { 0x00000795 } }, { 0x00000796, 1, { 0x00000796 } }, { 0x00000797, 1, { 0x00000797 } }, { 0x00000798, 1, { 0x00000798 } }, { 0x00000799, 1, { 0x00000799 } }, { 0x0000079a, 1, { 0x0000079a } }, { 0x0000079b, 1, { 0x0000079b } }, { 0x0000079c, 1, { 0x0000079c } }, { 0x0000079d, 1, { 0x0000079d } }, { 0x0000079e, 1, { 0x0000079e } }, { 0x0000079f, 1, { 0x0000079f } }, { 0x000007a0, 1, { 0x000007a0 } }, { 0x000007a1, 1, { 0x000007a1 } }, { 0x000007a2, 1, { 0x000007a2 } }, { 0x000007a3, 1, { 0x000007a3 } }, { 0x000007a4, 1, { 0x000007a4 } }, { 0x000007a5, 1, { 0x000007a5 } }, { 0x000007a6, 1, { 0x000007a6 } }, { 0x000007a7, 1, { 0x000007a7 } }, { 0x000007a8, 1, { 0x000007a8 } }, { 0x000007a9, 1, { 0x000007a9 } }, { 0x000007aa, 1, { 0x000007aa } }, { 0x000007ab, 1, { 0x000007ab } }, { 0x000007ac, 1, { 0x000007ac } }, { 0x000007ad, 1, { 0x000007ad } }, { 0x000007ae, 1, { 0x000007ae } }, { 0x000007af, 1, { 0x000007af } }, { 0x000007b0, 1, { 0x000007b0 } }, { 0x000007b1, 1, { 0x000007b1 } }, { 0x000007c0, 1, { 0x000007c0 } }, { 0x000007c1, 1, { 0x000007c1 } }, { 0x000007c2, 1, { 0x000007c2 } }, { 0x000007c3, 1, { 0x000007c3 } }, { 0x000007c4, 1, { 0x000007c4 } }, { 0x000007c5, 1, { 0x000007c5 } }, { 0x000007c6, 1, { 0x000007c6 } }, { 0x000007c7, 1, { 0x000007c7 } }, { 0x000007c8, 1, { 0x000007c8 } }, { 0x000007c9, 1, { 0x000007c9 } }, { 0x000007ca, 1, { 0x000007ca } }, { 0x000007cb, 1, { 0x000007cb } }, { 0x000007cc, 1, { 0x000007cc } }, { 0x000007cd, 1, { 0x000007cd } }, { 0x000007ce, 1, { 0x000007ce } }, { 0x000007cf, 1, { 0x000007cf } }, { 0x000007d0, 1, { 0x000007d0 } }, { 0x000007d1, 1, { 0x000007d1 } }, { 0x000007d2, 1, { 0x000007d2 } }, { 0x000007d3, 1, { 0x000007d3 } }, { 0x000007d4, 1, { 0x000007d4 } }, { 0x000007d5, 1, { 0x000007d5 } }, { 0x000007d6, 1, { 0x000007d6 } }, { 0x000007d7, 1, { 0x000007d7 } }, { 0x000007d8, 1, { 0x000007d8 } }, { 0x000007d9, 1, { 0x000007d9 } }, { 0x000007da, 1, { 0x000007da } }, { 0x000007db, 1, { 0x000007db } }, { 0x000007dc, 1, { 0x000007dc } }, { 0x000007dd, 1, { 0x000007dd } }, { 0x000007de, 1, { 0x000007de } }, { 0x000007df, 1, { 0x000007df } }, { 0x000007e0, 1, { 0x000007e0 } }, { 0x000007e1, 1, { 0x000007e1 } }, { 0x000007e2, 1, { 0x000007e2 } }, { 0x000007e3, 1, { 0x000007e3 } }, { 0x000007e4, 1, { 0x000007e4 } }, { 0x000007e5, 1, { 0x000007e5 } }, { 0x000007e6, 1, { 0x000007e6 } }, { 0x000007e7, 1, { 0x000007e7 } }, { 0x000007e8, 1, { 0x000007e8 } }, { 0x000007e9, 1, { 0x000007e9 } }, { 0x000007ea, 1, { 0x000007ea } }, { 0x000007eb, 1, { 0x000007eb } }, { 0x000007ec, 1, { 0x000007ec } }, { 0x000007ed, 1, { 0x000007ed } }, { 0x000007ee, 1, { 0x000007ee } }, { 0x000007ef, 1, { 0x000007ef } }, { 0x000007f0, 1, { 0x000007f0 } }, { 0x000007f1, 1, { 0x000007f1 } }, { 0x000007f2, 1, { 0x000007f2 } }, { 0x000007f3, 1, { 0x000007f3 } }, { 0x000007f4, 1, { 0x000007f4 } }, { 0x000007f5, 1, { 0x000007f5 } }, { 0x000007f6, 1, { 0x000007f6 } }, { 0x000007f7, 1, { 0x000007f7 } }, { 0x000007f8, 1, { 0x000007f8 } }, { 0x000007f9, 1, { 0x000007f9 } }, { 0x000007fa, 1, { 0x000007fa } }, { 0x00000800, 1, { 0x00000800 } }, { 0x00000801, 1, { 0x00000801 } }, { 0x00000802, 1, { 0x00000802 } }, { 0x00000803, 1, { 0x00000803 } }, { 0x00000804, 1, { 0x00000804 } }, { 0x00000805, 1, { 0x00000805 } }, { 0x00000806, 1, { 0x00000806 } }, { 0x00000807, 1, { 0x00000807 } }, { 0x00000808, 1, { 0x00000808 } }, { 0x00000809, 1, { 0x00000809 } }, { 0x0000080a, 1, { 0x0000080a } }, { 0x0000080b, 1, { 0x0000080b } }, { 0x0000080c, 1, { 0x0000080c } }, { 0x0000080d, 1, { 0x0000080d } }, { 0x0000080e, 1, { 0x0000080e } }, { 0x0000080f, 1, { 0x0000080f } }, { 0x00000810, 1, { 0x00000810 } }, { 0x00000811, 1, { 0x00000811 } }, { 0x00000812, 1, { 0x00000812 } }, { 0x00000813, 1, { 0x00000813 } }, { 0x00000814, 1, { 0x00000814 } }, { 0x00000815, 1, { 0x00000815 } }, { 0x00000816, 1, { 0x00000816 } }, { 0x00000817, 1, { 0x00000817 } }, { 0x00000818, 1, { 0x00000818 } }, { 0x00000819, 1, { 0x00000819 } }, { 0x0000081a, 1, { 0x0000081a } }, { 0x0000081b, 1, { 0x0000081b } }, { 0x0000081c, 1, { 0x0000081c } }, { 0x0000081d, 1, { 0x0000081d } }, { 0x0000081e, 1, { 0x0000081e } }, { 0x0000081f, 1, { 0x0000081f } }, { 0x00000820, 1, { 0x00000820 } }, { 0x00000821, 1, { 0x00000821 } }, { 0x00000822, 1, { 0x00000822 } }, { 0x00000823, 1, { 0x00000823 } }, { 0x00000824, 1, { 0x00000824 } }, { 0x00000825, 1, { 0x00000825 } }, { 0x00000826, 1, { 0x00000826 } }, { 0x00000827, 1, { 0x00000827 } }, { 0x00000828, 1, { 0x00000828 } }, { 0x00000829, 1, { 0x00000829 } }, { 0x0000082a, 1, { 0x0000082a } }, { 0x0000082b, 1, { 0x0000082b } }, { 0x0000082c, 1, { 0x0000082c } }, { 0x0000082d, 1, { 0x0000082d } }, { 0x00000830, 1, { 0x00000830 } }, { 0x00000831, 1, { 0x00000831 } }, { 0x00000832, 1, { 0x00000832 } }, { 0x00000833, 1, { 0x00000833 } }, { 0x00000834, 1, { 0x00000834 } }, { 0x00000835, 1, { 0x00000835 } }, { 0x00000836, 1, { 0x00000836 } }, { 0x00000837, 1, { 0x00000837 } }, { 0x00000838, 1, { 0x00000838 } }, { 0x00000839, 1, { 0x00000839 } }, { 0x0000083a, 1, { 0x0000083a } }, { 0x0000083b, 1, { 0x0000083b } }, { 0x0000083c, 1, { 0x0000083c } }, { 0x0000083d, 1, { 0x0000083d } }, { 0x0000083e, 1, { 0x0000083e } }, { 0x00000840, 1, { 0x00000840 } }, { 0x00000841, 1, { 0x00000841 } }, { 0x00000842, 1, { 0x00000842 } }, { 0x00000843, 1, { 0x00000843 } }, { 0x00000844, 1, { 0x00000844 } }, { 0x00000845, 1, { 0x00000845 } }, { 0x00000846, 1, { 0x00000846 } }, { 0x00000847, 1, { 0x00000847 } }, { 0x00000848, 1, { 0x00000848 } }, { 0x00000849, 1, { 0x00000849 } }, { 0x0000084a, 1, { 0x0000084a } }, { 0x0000084b, 1, { 0x0000084b } }, { 0x0000084c, 1, { 0x0000084c } }, { 0x0000084d, 1, { 0x0000084d } }, { 0x0000084e, 1, { 0x0000084e } }, { 0x0000084f, 1, { 0x0000084f } }, { 0x00000850, 1, { 0x00000850 } }, { 0x00000851, 1, { 0x00000851 } }, { 0x00000852, 1, { 0x00000852 } }, { 0x00000853, 1, { 0x00000853 } }, { 0x00000854, 1, { 0x00000854 } }, { 0x00000855, 1, { 0x00000855 } }, { 0x00000856, 1, { 0x00000856 } }, { 0x00000857, 1, { 0x00000857 } }, { 0x00000858, 1, { 0x00000858 } }, { 0x00000859, 1, { 0x00000859 } }, { 0x0000085a, 1, { 0x0000085a } }, { 0x0000085b, 1, { 0x0000085b } }, { 0x0000085e, 1, { 0x0000085e } }, { 0x000008a0, 1, { 0x000008a0 } }, { 0x000008a1, 1, { 0x000008a1 } }, { 0x000008a2, 1, { 0x000008a2 } }, { 0x000008a3, 1, { 0x000008a3 } }, { 0x000008a4, 1, { 0x000008a4 } }, { 0x000008a5, 1, { 0x000008a5 } }, { 0x000008a6, 1, { 0x000008a6 } }, { 0x000008a7, 1, { 0x000008a7 } }, { 0x000008a8, 1, { 0x000008a8 } }, { 0x000008a9, 1, { 0x000008a9 } }, { 0x000008aa, 1, { 0x000008aa } }, { 0x000008ab, 1, { 0x000008ab } }, { 0x000008ac, 1, { 0x000008ac } }, { 0x000008ad, 1, { 0x000008ad } }, { 0x000008ae, 1, { 0x000008ae } }, { 0x000008af, 1, { 0x000008af } }, { 0x000008b0, 1, { 0x000008b0 } }, { 0x000008b1, 1, { 0x000008b1 } }, { 0x000008b2, 1, { 0x000008b2 } }, { 0x000008b3, 1, { 0x000008b3 } }, { 0x000008b4, 1, { 0x000008b4 } }, { 0x000008b6, 1, { 0x000008b6 } }, { 0x000008b7, 1, { 0x000008b7 } }, { 0x000008b8, 1, { 0x000008b8 } }, { 0x000008b9, 1, { 0x000008b9 } }, { 0x000008ba, 1, { 0x000008ba } }, { 0x000008bb, 1, { 0x000008bb } }, { 0x000008bc, 1, { 0x000008bc } }, { 0x000008bd, 1, { 0x000008bd } }, { 0x000008d4, 1, { 0x000008d4 } }, { 0x000008d5, 1, { 0x000008d5 } }, { 0x000008d6, 1, { 0x000008d6 } }, { 0x000008d7, 1, { 0x000008d7 } }, { 0x000008d8, 1, { 0x000008d8 } }, { 0x000008d9, 1, { 0x000008d9 } }, { 0x000008da, 1, { 0x000008da } }, { 0x000008db, 1, { 0x000008db } }, { 0x000008dc, 1, { 0x000008dc } }, { 0x000008dd, 1, { 0x000008dd } }, { 0x000008de, 1, { 0x000008de } }, { 0x000008df, 1, { 0x000008df } }, { 0x000008e0, 1, { 0x000008e0 } }, { 0x000008e1, 1, { 0x000008e1 } }, { 0x000008e2, 1, { 0x000008e2 } }, { 0x000008e3, 1, { 0x000008e3 } }, { 0x000008e4, 1, { 0x000008e4 } }, { 0x000008e5, 1, { 0x000008e5 } }, { 0x000008e6, 1, { 0x000008e6 } }, { 0x000008e7, 1, { 0x000008e7 } }, { 0x000008e8, 1, { 0x000008e8 } }, { 0x000008e9, 1, { 0x000008e9 } }, { 0x000008ea, 1, { 0x000008ea } }, { 0x000008eb, 1, { 0x000008eb } }, { 0x000008ec, 1, { 0x000008ec } }, { 0x000008ed, 1, { 0x000008ed } }, { 0x000008ee, 1, { 0x000008ee } }, { 0x000008ef, 1, { 0x000008ef } }, { 0x000008f0, 1, { 0x000008f0 } }, { 0x000008f1, 1, { 0x000008f1 } }, { 0x000008f2, 1, { 0x000008f2 } }, { 0x000008f3, 1, { 0x000008f3 } }, { 0x000008f4, 1, { 0x000008f4 } }, { 0x000008f5, 1, { 0x000008f5 } }, { 0x000008f6, 1, { 0x000008f6 } }, { 0x000008f7, 1, { 0x000008f7 } }, { 0x000008f8, 1, { 0x000008f8 } }, { 0x000008f9, 1, { 0x000008f9 } }, { 0x000008fa, 1, { 0x000008fa } }, { 0x000008fb, 1, { 0x000008fb } }, { 0x000008fc, 1, { 0x000008fc } }, { 0x000008fd, 1, { 0x000008fd } }, { 0x000008fe, 1, { 0x000008fe } }, { 0x000008ff, 1, { 0x000008ff } }, { 0x00000900, 1, { 0x00000900 } }, { 0x00000901, 1, { 0x00000901 } }, { 0x00000902, 1, { 0x00000902 } }, { 0x00000903, 1, { 0x00000903 } }, { 0x00000904, 1, { 0x00000904 } }, { 0x00000905, 1, { 0x00000905 } }, { 0x00000906, 1, { 0x00000906 } }, { 0x00000907, 1, { 0x00000907 } }, { 0x00000908, 1, { 0x00000908 } }, { 0x00000909, 1, { 0x00000909 } }, { 0x0000090a, 1, { 0x0000090a } }, { 0x0000090b, 1, { 0x0000090b } }, { 0x0000090c, 1, { 0x0000090c } }, { 0x0000090d, 1, { 0x0000090d } }, { 0x0000090e, 1, { 0x0000090e } }, { 0x0000090f, 1, { 0x0000090f } }, { 0x00000910, 1, { 0x00000910 } }, { 0x00000911, 1, { 0x00000911 } }, { 0x00000912, 1, { 0x00000912 } }, { 0x00000913, 1, { 0x00000913 } }, { 0x00000914, 1, { 0x00000914 } }, { 0x00000915, 1, { 0x00000915 } }, { 0x00000916, 1, { 0x00000916 } }, { 0x00000917, 1, { 0x00000917 } }, { 0x00000918, 1, { 0x00000918 } }, { 0x00000919, 1, { 0x00000919 } }, { 0x0000091a, 1, { 0x0000091a } }, { 0x0000091b, 1, { 0x0000091b } }, { 0x0000091c, 1, { 0x0000091c } }, { 0x0000091d, 1, { 0x0000091d } }, { 0x0000091e, 1, { 0x0000091e } }, { 0x0000091f, 1, { 0x0000091f } }, { 0x00000920, 1, { 0x00000920 } }, { 0x00000921, 1, { 0x00000921 } }, { 0x00000922, 1, { 0x00000922 } }, { 0x00000923, 1, { 0x00000923 } }, { 0x00000924, 1, { 0x00000924 } }, { 0x00000925, 1, { 0x00000925 } }, { 0x00000926, 1, { 0x00000926 } }, { 0x00000927, 1, { 0x00000927 } }, { 0x00000928, 1, { 0x00000928 } }, { 0x00000929, 2, { 0x00000928, 0x0000093c } }, { 0x0000092a, 1, { 0x0000092a } }, { 0x0000092b, 1, { 0x0000092b } }, { 0x0000092c, 1, { 0x0000092c } }, { 0x0000092d, 1, { 0x0000092d } }, { 0x0000092e, 1, { 0x0000092e } }, { 0x0000092f, 1, { 0x0000092f } }, { 0x00000930, 1, { 0x00000930 } }, { 0x00000931, 2, { 0x00000930, 0x0000093c } }, { 0x00000932, 1, { 0x00000932 } }, { 0x00000933, 1, { 0x00000933 } }, { 0x00000934, 2, { 0x00000933, 0x0000093c } }, { 0x00000935, 1, { 0x00000935 } }, { 0x00000936, 1, { 0x00000936 } }, { 0x00000937, 1, { 0x00000937 } }, { 0x00000938, 1, { 0x00000938 } }, { 0x00000939, 1, { 0x00000939 } }, { 0x0000093a, 1, { 0x0000093a } }, { 0x0000093b, 1, { 0x0000093b } }, { 0x0000093c, 1, { 0x0000093c } }, { 0x0000093d, 1, { 0x0000093d } }, { 0x0000093e, 1, { 0x0000093e } }, { 0x0000093f, 1, { 0x0000093f } }, { 0x00000940, 1, { 0x00000940 } }, { 0x00000941, 1, { 0x00000941 } }, { 0x00000942, 1, { 0x00000942 } }, { 0x00000943, 1, { 0x00000943 } }, { 0x00000944, 1, { 0x00000944 } }, { 0x00000945, 1, { 0x00000945 } }, { 0x00000946, 1, { 0x00000946 } }, { 0x00000947, 1, { 0x00000947 } }, { 0x00000948, 1, { 0x00000948 } }, { 0x00000949, 1, { 0x00000949 } }, { 0x0000094a, 1, { 0x0000094a } }, { 0x0000094b, 1, { 0x0000094b } }, { 0x0000094c, 1, { 0x0000094c } }, { 0x0000094d, 1, { 0x0000094d } }, { 0x0000094e, 1, { 0x0000094e } }, { 0x0000094f, 1, { 0x0000094f } }, { 0x00000950, 1, { 0x00000950 } }, { 0x00000951, 1, { 0x00000951 } }, { 0x00000952, 1, { 0x00000952 } }, { 0x00000953, 1, { 0x00000953 } }, { 0x00000954, 1, { 0x00000954 } }, { 0x00000955, 1, { 0x00000955 } }, { 0x00000956, 1, { 0x00000956 } }, { 0x00000957, 1, { 0x00000957 } }, { 0x00000958, 2, { 0x00000915, 0x0000093c } }, { 0x00000959, 2, { 0x00000916, 0x0000093c } }, { 0x0000095a, 2, { 0x00000917, 0x0000093c } }, { 0x0000095b, 2, { 0x0000091c, 0x0000093c } }, { 0x0000095c, 2, { 0x00000921, 0x0000093c } }, { 0x0000095d, 2, { 0x00000922, 0x0000093c } }, { 0x0000095e, 2, { 0x0000092b, 0x0000093c } }, { 0x0000095f, 2, { 0x0000092f, 0x0000093c } }, { 0x00000960, 1, { 0x00000960 } }, { 0x00000961, 1, { 0x00000961 } }, { 0x00000962, 1, { 0x00000962 } }, { 0x00000963, 1, { 0x00000963 } }, { 0x00000964, 1, { 0x00000964 } }, { 0x00000965, 1, { 0x00000965 } }, { 0x00000966, 1, { 0x00000966 } }, { 0x00000967, 1, { 0x00000967 } }, { 0x00000968, 1, { 0x00000968 } }, { 0x00000969, 1, { 0x00000969 } }, { 0x0000096a, 1, { 0x0000096a } }, { 0x0000096b, 1, { 0x0000096b } }, { 0x0000096c, 1, { 0x0000096c } }, { 0x0000096d, 1, { 0x0000096d } }, { 0x0000096e, 1, { 0x0000096e } }, { 0x0000096f, 1, { 0x0000096f } }, { 0x00000970, 1, { 0x00000970 } }, { 0x00000971, 1, { 0x00000971 } }, { 0x00000972, 1, { 0x00000972 } }, { 0x00000973, 1, { 0x00000973 } }, { 0x00000974, 1, { 0x00000974 } }, { 0x00000975, 1, { 0x00000975 } }, { 0x00000976, 1, { 0x00000976 } }, { 0x00000977, 1, { 0x00000977 } }, { 0x00000978, 1, { 0x00000978 } }, { 0x00000979, 1, { 0x00000979 } }, { 0x0000097a, 1, { 0x0000097a } }, { 0x0000097b, 1, { 0x0000097b } }, { 0x0000097c, 1, { 0x0000097c } }, { 0x0000097d, 1, { 0x0000097d } }, { 0x0000097e, 1, { 0x0000097e } }, { 0x0000097f, 1, { 0x0000097f } }, { 0x00000980, 1, { 0x00000980 } }, { 0x00000981, 1, { 0x00000981 } }, { 0x00000982, 1, { 0x00000982 } }, { 0x00000983, 1, { 0x00000983 } }, { 0x00000985, 1, { 0x00000985 } }, { 0x00000986, 1, { 0x00000986 } }, { 0x00000987, 1, { 0x00000987 } }, { 0x00000988, 1, { 0x00000988 } }, { 0x00000989, 1, { 0x00000989 } }, { 0x0000098a, 1, { 0x0000098a } }, { 0x0000098b, 1, { 0x0000098b } }, { 0x0000098c, 1, { 0x0000098c } }, { 0x0000098f, 1, { 0x0000098f } }, { 0x00000990, 1, { 0x00000990 } }, { 0x00000993, 1, { 0x00000993 } }, { 0x00000994, 1, { 0x00000994 } }, { 0x00000995, 1, { 0x00000995 } }, { 0x00000996, 1, { 0x00000996 } }, { 0x00000997, 1, { 0x00000997 } }, { 0x00000998, 1, { 0x00000998 } }, { 0x00000999, 1, { 0x00000999 } }, { 0x0000099a, 1, { 0x0000099a } }, { 0x0000099b, 1, { 0x0000099b } }, { 0x0000099c, 1, { 0x0000099c } }, { 0x0000099d, 1, { 0x0000099d } }, { 0x0000099e, 1, { 0x0000099e } }, { 0x0000099f, 1, { 0x0000099f } }, { 0x000009a0, 1, { 0x000009a0 } }, { 0x000009a1, 1, { 0x000009a1 } }, { 0x000009a2, 1, { 0x000009a2 } }, { 0x000009a3, 1, { 0x000009a3 } }, { 0x000009a4, 1, { 0x000009a4 } }, { 0x000009a5, 1, { 0x000009a5 } }, { 0x000009a6, 1, { 0x000009a6 } }, { 0x000009a7, 1, { 0x000009a7 } }, { 0x000009a8, 1, { 0x000009a8 } }, { 0x000009aa, 1, { 0x000009aa } }, { 0x000009ab, 1, { 0x000009ab } }, { 0x000009ac, 1, { 0x000009ac } }, { 0x000009ad, 1, { 0x000009ad } }, { 0x000009ae, 1, { 0x000009ae } }, { 0x000009af, 1, { 0x000009af } }, { 0x000009b0, 1, { 0x000009b0 } }, { 0x000009b2, 1, { 0x000009b2 } }, { 0x000009b6, 1, { 0x000009b6 } }, { 0x000009b7, 1, { 0x000009b7 } }, { 0x000009b8, 1, { 0x000009b8 } }, { 0x000009b9, 1, { 0x000009b9 } }, { 0x000009bc, 1, { 0x000009bc } }, { 0x000009bd, 1, { 0x000009bd } }, { 0x000009be, 1, { 0x000009be } }, { 0x000009bf, 1, { 0x000009bf } }, { 0x000009c0, 1, { 0x000009c0 } }, { 0x000009c1, 1, { 0x000009c1 } }, { 0x000009c2, 1, { 0x000009c2 } }, { 0x000009c3, 1, { 0x000009c3 } }, { 0x000009c4, 1, { 0x000009c4 } }, { 0x000009c7, 1, { 0x000009c7 } }, { 0x000009c8, 1, { 0x000009c8 } }, { 0x000009cb, 2, { 0x000009c7, 0x000009be } }, { 0x000009cc, 2, { 0x000009c7, 0x000009d7 } }, { 0x000009cd, 1, { 0x000009cd } }, { 0x000009ce, 1, { 0x000009ce } }, { 0x000009d7, 1, { 0x000009d7 } }, { 0x000009dc, 2, { 0x000009a1, 0x000009bc } }, { 0x000009dd, 2, { 0x000009a2, 0x000009bc } }, { 0x000009df, 2, { 0x000009af, 0x000009bc } }, { 0x000009e0, 1, { 0x000009e0 } }, { 0x000009e1, 1, { 0x000009e1 } }, { 0x000009e2, 1, { 0x000009e2 } }, { 0x000009e3, 1, { 0x000009e3 } }, { 0x000009e6, 1, { 0x000009e6 } }, { 0x000009e7, 1, { 0x000009e7 } }, { 0x000009e8, 1, { 0x000009e8 } }, { 0x000009e9, 1, { 0x000009e9 } }, { 0x000009ea, 1, { 0x000009ea } }, { 0x000009eb, 1, { 0x000009eb } }, { 0x000009ec, 1, { 0x000009ec } }, { 0x000009ed, 1, { 0x000009ed } }, { 0x000009ee, 1, { 0x000009ee } }, { 0x000009ef, 1, { 0x000009ef } }, { 0x000009f0, 1, { 0x000009f0 } }, { 0x000009f1, 1, { 0x000009f1 } }, { 0x000009f2, 1, { 0x000009f2 } }, { 0x000009f3, 1, { 0x000009f3 } }, { 0x000009f4, 1, { 0x000009f4 } }, { 0x000009f5, 1, { 0x000009f5 } }, { 0x000009f6, 1, { 0x000009f6 } }, { 0x000009f7, 1, { 0x000009f7 } }, { 0x000009f8, 1, { 0x000009f8 } }, { 0x000009f9, 1, { 0x000009f9 } }, { 0x000009fa, 1, { 0x000009fa } }, { 0x000009fb, 1, { 0x000009fb } }, { 0x00000a01, 1, { 0x00000a01 } }, { 0x00000a02, 1, { 0x00000a02 } }, { 0x00000a03, 1, { 0x00000a03 } }, { 0x00000a05, 1, { 0x00000a05 } }, { 0x00000a06, 1, { 0x00000a06 } }, { 0x00000a07, 1, { 0x00000a07 } }, { 0x00000a08, 1, { 0x00000a08 } }, { 0x00000a09, 1, { 0x00000a09 } }, { 0x00000a0a, 1, { 0x00000a0a } }, { 0x00000a0f, 1, { 0x00000a0f } }, { 0x00000a10, 1, { 0x00000a10 } }, { 0x00000a13, 1, { 0x00000a13 } }, { 0x00000a14, 1, { 0x00000a14 } }, { 0x00000a15, 1, { 0x00000a15 } }, { 0x00000a16, 1, { 0x00000a16 } }, { 0x00000a17, 1, { 0x00000a17 } }, { 0x00000a18, 1, { 0x00000a18 } }, { 0x00000a19, 1, { 0x00000a19 } }, { 0x00000a1a, 1, { 0x00000a1a } }, { 0x00000a1b, 1, { 0x00000a1b } }, { 0x00000a1c, 1, { 0x00000a1c } }, { 0x00000a1d, 1, { 0x00000a1d } }, { 0x00000a1e, 1, { 0x00000a1e } }, { 0x00000a1f, 1, { 0x00000a1f } }, { 0x00000a20, 1, { 0x00000a20 } }, { 0x00000a21, 1, { 0x00000a21 } }, { 0x00000a22, 1, { 0x00000a22 } }, { 0x00000a23, 1, { 0x00000a23 } }, { 0x00000a24, 1, { 0x00000a24 } }, { 0x00000a25, 1, { 0x00000a25 } }, { 0x00000a26, 1, { 0x00000a26 } }, { 0x00000a27, 1, { 0x00000a27 } }, { 0x00000a28, 1, { 0x00000a28 } }, { 0x00000a2a, 1, { 0x00000a2a } }, { 0x00000a2b, 1, { 0x00000a2b } }, { 0x00000a2c, 1, { 0x00000a2c } }, { 0x00000a2d, 1, { 0x00000a2d } }, { 0x00000a2e, 1, { 0x00000a2e } }, { 0x00000a2f, 1, { 0x00000a2f } }, { 0x00000a30, 1, { 0x00000a30 } }, { 0x00000a32, 1, { 0x00000a32 } }, { 0x00000a33, 2, { 0x00000a32, 0x00000a3c } }, { 0x00000a35, 1, { 0x00000a35 } }, { 0x00000a36, 2, { 0x00000a38, 0x00000a3c } }, { 0x00000a38, 1, { 0x00000a38 } }, { 0x00000a39, 1, { 0x00000a39 } }, { 0x00000a3c, 1, { 0x00000a3c } }, { 0x00000a3e, 1, { 0x00000a3e } }, { 0x00000a3f, 1, { 0x00000a3f } }, { 0x00000a40, 1, { 0x00000a40 } }, { 0x00000a41, 1, { 0x00000a41 } }, { 0x00000a42, 1, { 0x00000a42 } }, { 0x00000a47, 1, { 0x00000a47 } }, { 0x00000a48, 1, { 0x00000a48 } }, { 0x00000a4b, 1, { 0x00000a4b } }, { 0x00000a4c, 1, { 0x00000a4c } }, { 0x00000a4d, 1, { 0x00000a4d } }, { 0x00000a51, 1, { 0x00000a51 } }, { 0x00000a59, 2, { 0x00000a16, 0x00000a3c } }, { 0x00000a5a, 2, { 0x00000a17, 0x00000a3c } }, { 0x00000a5b, 2, { 0x00000a1c, 0x00000a3c } }, { 0x00000a5c, 1, { 0x00000a5c } }, { 0x00000a5e, 2, { 0x00000a2b, 0x00000a3c } }, { 0x00000a66, 1, { 0x00000a66 } }, { 0x00000a67, 1, { 0x00000a67 } }, { 0x00000a68, 1, { 0x00000a68 } }, { 0x00000a69, 1, { 0x00000a69 } }, { 0x00000a6a, 1, { 0x00000a6a } }, { 0x00000a6b, 1, { 0x00000a6b } }, { 0x00000a6c, 1, { 0x00000a6c } }, { 0x00000a6d, 1, { 0x00000a6d } }, { 0x00000a6e, 1, { 0x00000a6e } }, { 0x00000a6f, 1, { 0x00000a6f } }, { 0x00000a70, 1, { 0x00000a70 } }, { 0x00000a71, 1, { 0x00000a71 } }, { 0x00000a72, 1, { 0x00000a72 } }, { 0x00000a73, 1, { 0x00000a73 } }, { 0x00000a74, 1, { 0x00000a74 } }, { 0x00000a75, 1, { 0x00000a75 } }, { 0x00000a81, 1, { 0x00000a81 } }, { 0x00000a82, 1, { 0x00000a82 } }, { 0x00000a83, 1, { 0x00000a83 } }, { 0x00000a85, 1, { 0x00000a85 } }, { 0x00000a86, 1, { 0x00000a86 } }, { 0x00000a87, 1, { 0x00000a87 } }, { 0x00000a88, 1, { 0x00000a88 } }, { 0x00000a89, 1, { 0x00000a89 } }, { 0x00000a8a, 1, { 0x00000a8a } }, { 0x00000a8b, 1, { 0x00000a8b } }, { 0x00000a8c, 1, { 0x00000a8c } }, { 0x00000a8d, 1, { 0x00000a8d } }, { 0x00000a8f, 1, { 0x00000a8f } }, { 0x00000a90, 1, { 0x00000a90 } }, { 0x00000a91, 1, { 0x00000a91 } }, { 0x00000a93, 1, { 0x00000a93 } }, { 0x00000a94, 1, { 0x00000a94 } }, { 0x00000a95, 1, { 0x00000a95 } }, { 0x00000a96, 1, { 0x00000a96 } }, { 0x00000a97, 1, { 0x00000a97 } }, { 0x00000a98, 1, { 0x00000a98 } }, { 0x00000a99, 1, { 0x00000a99 } }, { 0x00000a9a, 1, { 0x00000a9a } }, { 0x00000a9b, 1, { 0x00000a9b } }, { 0x00000a9c, 1, { 0x00000a9c } }, { 0x00000a9d, 1, { 0x00000a9d } }, { 0x00000a9e, 1, { 0x00000a9e } }, { 0x00000a9f, 1, { 0x00000a9f } }, { 0x00000aa0, 1, { 0x00000aa0 } }, { 0x00000aa1, 1, { 0x00000aa1 } }, { 0x00000aa2, 1, { 0x00000aa2 } }, { 0x00000aa3, 1, { 0x00000aa3 } }, { 0x00000aa4, 1, { 0x00000aa4 } }, { 0x00000aa5, 1, { 0x00000aa5 } }, { 0x00000aa6, 1, { 0x00000aa6 } }, { 0x00000aa7, 1, { 0x00000aa7 } }, { 0x00000aa8, 1, { 0x00000aa8 } }, { 0x00000aaa, 1, { 0x00000aaa } }, { 0x00000aab, 1, { 0x00000aab } }, { 0x00000aac, 1, { 0x00000aac } }, { 0x00000aad, 1, { 0x00000aad } }, { 0x00000aae, 1, { 0x00000aae } }, { 0x00000aaf, 1, { 0x00000aaf } }, { 0x00000ab0, 1, { 0x00000ab0 } }, { 0x00000ab2, 1, { 0x00000ab2 } }, { 0x00000ab3, 1, { 0x00000ab3 } }, { 0x00000ab5, 1, { 0x00000ab5 } }, { 0x00000ab6, 1, { 0x00000ab6 } }, { 0x00000ab7, 1, { 0x00000ab7 } }, { 0x00000ab8, 1, { 0x00000ab8 } }, { 0x00000ab9, 1, { 0x00000ab9 } }, { 0x00000abc, 1, { 0x00000abc } }, { 0x00000abd, 1, { 0x00000abd } }, { 0x00000abe, 1, { 0x00000abe } }, { 0x00000abf, 1, { 0x00000abf } }, { 0x00000ac0, 1, { 0x00000ac0 } }, { 0x00000ac1, 1, { 0x00000ac1 } }, { 0x00000ac2, 1, { 0x00000ac2 } }, { 0x00000ac3, 1, { 0x00000ac3 } }, { 0x00000ac4, 1, { 0x00000ac4 } }, { 0x00000ac5, 1, { 0x00000ac5 } }, { 0x00000ac7, 1, { 0x00000ac7 } }, { 0x00000ac8, 1, { 0x00000ac8 } }, { 0x00000ac9, 1, { 0x00000ac9 } }, { 0x00000acb, 1, { 0x00000acb } }, { 0x00000acc, 1, { 0x00000acc } }, { 0x00000acd, 1, { 0x00000acd } }, { 0x00000ad0, 1, { 0x00000ad0 } }, { 0x00000ae0, 1, { 0x00000ae0 } }, { 0x00000ae1, 1, { 0x00000ae1 } }, { 0x00000ae2, 1, { 0x00000ae2 } }, { 0x00000ae3, 1, { 0x00000ae3 } }, { 0x00000ae6, 1, { 0x00000ae6 } }, { 0x00000ae7, 1, { 0x00000ae7 } }, { 0x00000ae8, 1, { 0x00000ae8 } }, { 0x00000ae9, 1, { 0x00000ae9 } }, { 0x00000aea, 1, { 0x00000aea } }, { 0x00000aeb, 1, { 0x00000aeb } }, { 0x00000aec, 1, { 0x00000aec } }, { 0x00000aed, 1, { 0x00000aed } }, { 0x00000aee, 1, { 0x00000aee } }, { 0x00000aef, 1, { 0x00000aef } }, { 0x00000af0, 1, { 0x00000af0 } }, { 0x00000af1, 1, { 0x00000af1 } }, { 0x00000af9, 1, { 0x00000af9 } }, { 0x00000b01, 1, { 0x00000b01 } }, { 0x00000b02, 1, { 0x00000b02 } }, { 0x00000b03, 1, { 0x00000b03 } }, { 0x00000b05, 1, { 0x00000b05 } }, { 0x00000b06, 1, { 0x00000b06 } }, { 0x00000b07, 1, { 0x00000b07 } }, { 0x00000b08, 1, { 0x00000b08 } }, { 0x00000b09, 1, { 0x00000b09 } }, { 0x00000b0a, 1, { 0x00000b0a } }, { 0x00000b0b, 1, { 0x00000b0b } }, { 0x00000b0c, 1, { 0x00000b0c } }, { 0x00000b0f, 1, { 0x00000b0f } }, { 0x00000b10, 1, { 0x00000b10 } }, { 0x00000b13, 1, { 0x00000b13 } }, { 0x00000b14, 1, { 0x00000b14 } }, { 0x00000b15, 1, { 0x00000b15 } }, { 0x00000b16, 1, { 0x00000b16 } }, { 0x00000b17, 1, { 0x00000b17 } }, { 0x00000b18, 1, { 0x00000b18 } }, { 0x00000b19, 1, { 0x00000b19 } }, { 0x00000b1a, 1, { 0x00000b1a } }, { 0x00000b1b, 1, { 0x00000b1b } }, { 0x00000b1c, 1, { 0x00000b1c } }, { 0x00000b1d, 1, { 0x00000b1d } }, { 0x00000b1e, 1, { 0x00000b1e } }, { 0x00000b1f, 1, { 0x00000b1f } }, { 0x00000b20, 1, { 0x00000b20 } }, { 0x00000b21, 1, { 0x00000b21 } }, { 0x00000b22, 1, { 0x00000b22 } }, { 0x00000b23, 1, { 0x00000b23 } }, { 0x00000b24, 1, { 0x00000b24 } }, { 0x00000b25, 1, { 0x00000b25 } }, { 0x00000b26, 1, { 0x00000b26 } }, { 0x00000b27, 1, { 0x00000b27 } }, { 0x00000b28, 1, { 0x00000b28 } }, { 0x00000b2a, 1, { 0x00000b2a } }, { 0x00000b2b, 1, { 0x00000b2b } }, { 0x00000b2c, 1, { 0x00000b2c } }, { 0x00000b2d, 1, { 0x00000b2d } }, { 0x00000b2e, 1, { 0x00000b2e } }, { 0x00000b2f, 1, { 0x00000b2f } }, { 0x00000b30, 1, { 0x00000b30 } }, { 0x00000b32, 1, { 0x00000b32 } }, { 0x00000b33, 1, { 0x00000b33 } }, { 0x00000b35, 1, { 0x00000b35 } }, { 0x00000b36, 1, { 0x00000b36 } }, { 0x00000b37, 1, { 0x00000b37 } }, { 0x00000b38, 1, { 0x00000b38 } }, { 0x00000b39, 1, { 0x00000b39 } }, { 0x00000b3c, 1, { 0x00000b3c } }, { 0x00000b3d, 1, { 0x00000b3d } }, { 0x00000b3e, 1, { 0x00000b3e } }, { 0x00000b3f, 1, { 0x00000b3f } }, { 0x00000b40, 1, { 0x00000b40 } }, { 0x00000b41, 1, { 0x00000b41 } }, { 0x00000b42, 1, { 0x00000b42 } }, { 0x00000b43, 1, { 0x00000b43 } }, { 0x00000b44, 1, { 0x00000b44 } }, { 0x00000b47, 1, { 0x00000b47 } }, { 0x00000b48, 2, { 0x00000b47, 0x00000b56 } }, { 0x00000b4b, 2, { 0x00000b47, 0x00000b3e } }, { 0x00000b4c, 2, { 0x00000b47, 0x00000b57 } }, { 0x00000b4d, 1, { 0x00000b4d } }, { 0x00000b56, 1, { 0x00000b56 } }, { 0x00000b57, 1, { 0x00000b57 } }, { 0x00000b5c, 2, { 0x00000b21, 0x00000b3c } }, { 0x00000b5d, 2, { 0x00000b22, 0x00000b3c } }, { 0x00000b5f, 1, { 0x00000b5f } }, { 0x00000b60, 1, { 0x00000b60 } }, { 0x00000b61, 1, { 0x00000b61 } }, { 0x00000b62, 1, { 0x00000b62 } }, { 0x00000b63, 1, { 0x00000b63 } }, { 0x00000b66, 1, { 0x00000b66 } }, { 0x00000b67, 1, { 0x00000b67 } }, { 0x00000b68, 1, { 0x00000b68 } }, { 0x00000b69, 1, { 0x00000b69 } }, { 0x00000b6a, 1, { 0x00000b6a } }, { 0x00000b6b, 1, { 0x00000b6b } }, { 0x00000b6c, 1, { 0x00000b6c } }, { 0x00000b6d, 1, { 0x00000b6d } }, { 0x00000b6e, 1, { 0x00000b6e } }, { 0x00000b6f, 1, { 0x00000b6f } }, { 0x00000b70, 1, { 0x00000b70 } }, { 0x00000b71, 1, { 0x00000b71 } }, { 0x00000b72, 1, { 0x00000b72 } }, { 0x00000b73, 1, { 0x00000b73 } }, { 0x00000b74, 1, { 0x00000b74 } }, { 0x00000b75, 1, { 0x00000b75 } }, { 0x00000b76, 1, { 0x00000b76 } }, { 0x00000b77, 1, { 0x00000b77 } }, { 0x00000b82, 1, { 0x00000b82 } }, { 0x00000b83, 1, { 0x00000b83 } }, { 0x00000b85, 1, { 0x00000b85 } }, { 0x00000b86, 1, { 0x00000b86 } }, { 0x00000b87, 1, { 0x00000b87 } }, { 0x00000b88, 1, { 0x00000b88 } }, { 0x00000b89, 1, { 0x00000b89 } }, { 0x00000b8a, 1, { 0x00000b8a } }, { 0x00000b8e, 1, { 0x00000b8e } }, { 0x00000b8f, 1, { 0x00000b8f } }, { 0x00000b90, 1, { 0x00000b90 } }, { 0x00000b92, 1, { 0x00000b92 } }, { 0x00000b93, 1, { 0x00000b93 } }, { 0x00000b94, 2, { 0x00000b92, 0x00000bd7 } }, { 0x00000b95, 1, { 0x00000b95 } }, { 0x00000b99, 1, { 0x00000b99 } }, { 0x00000b9a, 1, { 0x00000b9a } }, { 0x00000b9c, 1, { 0x00000b9c } }, { 0x00000b9e, 1, { 0x00000b9e } }, { 0x00000b9f, 1, { 0x00000b9f } }, { 0x00000ba3, 1, { 0x00000ba3 } }, { 0x00000ba4, 1, { 0x00000ba4 } }, { 0x00000ba8, 1, { 0x00000ba8 } }, { 0x00000ba9, 1, { 0x00000ba9 } }, { 0x00000baa, 1, { 0x00000baa } }, { 0x00000bae, 1, { 0x00000bae } }, { 0x00000baf, 1, { 0x00000baf } }, { 0x00000bb0, 1, { 0x00000bb0 } }, { 0x00000bb1, 1, { 0x00000bb1 } }, { 0x00000bb2, 1, { 0x00000bb2 } }, { 0x00000bb3, 1, { 0x00000bb3 } }, { 0x00000bb4, 1, { 0x00000bb4 } }, { 0x00000bb5, 1, { 0x00000bb5 } }, { 0x00000bb6, 1, { 0x00000bb6 } }, { 0x00000bb7, 1, { 0x00000bb7 } }, { 0x00000bb8, 1, { 0x00000bb8 } }, { 0x00000bb9, 1, { 0x00000bb9 } }, { 0x00000bbe, 1, { 0x00000bbe } }, { 0x00000bbf, 1, { 0x00000bbf } }, { 0x00000bc0, 1, { 0x00000bc0 } }, { 0x00000bc1, 1, { 0x00000bc1 } }, { 0x00000bc2, 1, { 0x00000bc2 } }, { 0x00000bc6, 1, { 0x00000bc6 } }, { 0x00000bc7, 1, { 0x00000bc7 } }, { 0x00000bc8, 1, { 0x00000bc8 } }, { 0x00000bca, 2, { 0x00000bc6, 0x00000bbe } }, { 0x00000bcb, 2, { 0x00000bc7, 0x00000bbe } }, { 0x00000bcc, 2, { 0x00000bc6, 0x00000bd7 } }, { 0x00000bcd, 1, { 0x00000bcd } }, { 0x00000bd0, 1, { 0x00000bd0 } }, { 0x00000bd7, 1, { 0x00000bd7 } }, { 0x00000be6, 1, { 0x00000be6 } }, { 0x00000be7, 1, { 0x00000be7 } }, { 0x00000be8, 1, { 0x00000be8 } }, { 0x00000be9, 1, { 0x00000be9 } }, { 0x00000bea, 1, { 0x00000bea } }, { 0x00000beb, 1, { 0x00000beb } }, { 0x00000bec, 1, { 0x00000bec } }, { 0x00000bed, 1, { 0x00000bed } }, { 0x00000bee, 1, { 0x00000bee } }, { 0x00000bef, 1, { 0x00000bef } }, { 0x00000bf0, 1, { 0x00000bf0 } }, { 0x00000bf1, 1, { 0x00000bf1 } }, { 0x00000bf2, 1, { 0x00000bf2 } }, { 0x00000bf3, 1, { 0x00000bf3 } }, { 0x00000bf4, 1, { 0x00000bf4 } }, { 0x00000bf5, 1, { 0x00000bf5 } }, { 0x00000bf6, 1, { 0x00000bf6 } }, { 0x00000bf7, 1, { 0x00000bf7 } }, { 0x00000bf8, 1, { 0x00000bf8 } }, { 0x00000bf9, 1, { 0x00000bf9 } }, { 0x00000bfa, 1, { 0x00000bfa } }, { 0x00000c00, 1, { 0x00000c00 } }, { 0x00000c01, 1, { 0x00000c01 } }, { 0x00000c02, 1, { 0x00000c02 } }, { 0x00000c03, 1, { 0x00000c03 } }, { 0x00000c05, 1, { 0x00000c05 } }, { 0x00000c06, 1, { 0x00000c06 } }, { 0x00000c07, 1, { 0x00000c07 } }, { 0x00000c08, 1, { 0x00000c08 } }, { 0x00000c09, 1, { 0x00000c09 } }, { 0x00000c0a, 1, { 0x00000c0a } }, { 0x00000c0b, 1, { 0x00000c0b } }, { 0x00000c0c, 1, { 0x00000c0c } }, { 0x00000c0e, 1, { 0x00000c0e } }, { 0x00000c0f, 1, { 0x00000c0f } }, { 0x00000c10, 1, { 0x00000c10 } }, { 0x00000c12, 1, { 0x00000c12 } }, { 0x00000c13, 1, { 0x00000c13 } }, { 0x00000c14, 1, { 0x00000c14 } }, { 0x00000c15, 1, { 0x00000c15 } }, { 0x00000c16, 1, { 0x00000c16 } }, { 0x00000c17, 1, { 0x00000c17 } }, { 0x00000c18, 1, { 0x00000c18 } }, { 0x00000c19, 1, { 0x00000c19 } }, { 0x00000c1a, 1, { 0x00000c1a } }, { 0x00000c1b, 1, { 0x00000c1b } }, { 0x00000c1c, 1, { 0x00000c1c } }, { 0x00000c1d, 1, { 0x00000c1d } }, { 0x00000c1e, 1, { 0x00000c1e } }, { 0x00000c1f, 1, { 0x00000c1f } }, { 0x00000c20, 1, { 0x00000c20 } }, { 0x00000c21, 1, { 0x00000c21 } }, { 0x00000c22, 1, { 0x00000c22 } }, { 0x00000c23, 1, { 0x00000c23 } }, { 0x00000c24, 1, { 0x00000c24 } }, { 0x00000c25, 1, { 0x00000c25 } }, { 0x00000c26, 1, { 0x00000c26 } }, { 0x00000c27, 1, { 0x00000c27 } }, { 0x00000c28, 1, { 0x00000c28 } }, { 0x00000c2a, 1, { 0x00000c2a } }, { 0x00000c2b, 1, { 0x00000c2b } }, { 0x00000c2c, 1, { 0x00000c2c } }, { 0x00000c2d, 1, { 0x00000c2d } }, { 0x00000c2e, 1, { 0x00000c2e } }, { 0x00000c2f, 1, { 0x00000c2f } }, { 0x00000c30, 1, { 0x00000c30 } }, { 0x00000c31, 1, { 0x00000c31 } }, { 0x00000c32, 1, { 0x00000c32 } }, { 0x00000c33, 1, { 0x00000c33 } }, { 0x00000c34, 1, { 0x00000c34 } }, { 0x00000c35, 1, { 0x00000c35 } }, { 0x00000c36, 1, { 0x00000c36 } }, { 0x00000c37, 1, { 0x00000c37 } }, { 0x00000c38, 1, { 0x00000c38 } }, { 0x00000c39, 1, { 0x00000c39 } }, { 0x00000c3d, 1, { 0x00000c3d } }, { 0x00000c3e, 1, { 0x00000c3e } }, { 0x00000c3f, 1, { 0x00000c3f } }, { 0x00000c40, 1, { 0x00000c40 } }, { 0x00000c41, 1, { 0x00000c41 } }, { 0x00000c42, 1, { 0x00000c42 } }, { 0x00000c43, 1, { 0x00000c43 } }, { 0x00000c44, 1, { 0x00000c44 } }, { 0x00000c46, 1, { 0x00000c46 } }, { 0x00000c47, 1, { 0x00000c47 } }, { 0x00000c48, 2, { 0x00000c46, 0x00000c56 } }, { 0x00000c4a, 1, { 0x00000c4a } }, { 0x00000c4b, 1, { 0x00000c4b } }, { 0x00000c4c, 1, { 0x00000c4c } }, { 0x00000c4d, 1, { 0x00000c4d } }, { 0x00000c55, 1, { 0x00000c55 } }, { 0x00000c56, 1, { 0x00000c56 } }, { 0x00000c58, 1, { 0x00000c58 } }, { 0x00000c59, 1, { 0x00000c59 } }, { 0x00000c5a, 1, { 0x00000c5a } }, { 0x00000c60, 1, { 0x00000c60 } }, { 0x00000c61, 1, { 0x00000c61 } }, { 0x00000c62, 1, { 0x00000c62 } }, { 0x00000c63, 1, { 0x00000c63 } }, { 0x00000c66, 1, { 0x00000c66 } }, { 0x00000c67, 1, { 0x00000c67 } }, { 0x00000c68, 1, { 0x00000c68 } }, { 0x00000c69, 1, { 0x00000c69 } }, { 0x00000c6a, 1, { 0x00000c6a } }, { 0x00000c6b, 1, { 0x00000c6b } }, { 0x00000c6c, 1, { 0x00000c6c } }, { 0x00000c6d, 1, { 0x00000c6d } }, { 0x00000c6e, 1, { 0x00000c6e } }, { 0x00000c6f, 1, { 0x00000c6f } }, { 0x00000c78, 1, { 0x00000c78 } }, { 0x00000c79, 1, { 0x00000c79 } }, { 0x00000c7a, 1, { 0x00000c7a } }, { 0x00000c7b, 1, { 0x00000c7b } }, { 0x00000c7c, 1, { 0x00000c7c } }, { 0x00000c7d, 1, { 0x00000c7d } }, { 0x00000c7e, 1, { 0x00000c7e } }, { 0x00000c7f, 1, { 0x00000c7f } }, { 0x00000c80, 1, { 0x00000c80 } }, { 0x00000c81, 1, { 0x00000c81 } }, { 0x00000c82, 1, { 0x00000c82 } }, { 0x00000c83, 1, { 0x00000c83 } }, { 0x00000c85, 1, { 0x00000c85 } }, { 0x00000c86, 1, { 0x00000c86 } }, { 0x00000c87, 1, { 0x00000c87 } }, { 0x00000c88, 1, { 0x00000c88 } }, { 0x00000c89, 1, { 0x00000c89 } }, { 0x00000c8a, 1, { 0x00000c8a } }, { 0x00000c8b, 1, { 0x00000c8b } }, { 0x00000c8c, 1, { 0x00000c8c } }, { 0x00000c8e, 1, { 0x00000c8e } }, { 0x00000c8f, 1, { 0x00000c8f } }, { 0x00000c90, 1, { 0x00000c90 } }, { 0x00000c92, 1, { 0x00000c92 } }, { 0x00000c93, 1, { 0x00000c93 } }, { 0x00000c94, 1, { 0x00000c94 } }, { 0x00000c95, 1, { 0x00000c95 } }, { 0x00000c96, 1, { 0x00000c96 } }, { 0x00000c97, 1, { 0x00000c97 } }, { 0x00000c98, 1, { 0x00000c98 } }, { 0x00000c99, 1, { 0x00000c99 } }, { 0x00000c9a, 1, { 0x00000c9a } }, { 0x00000c9b, 1, { 0x00000c9b } }, { 0x00000c9c, 1, { 0x00000c9c } }, { 0x00000c9d, 1, { 0x00000c9d } }, { 0x00000c9e, 1, { 0x00000c9e } }, { 0x00000c9f, 1, { 0x00000c9f } }, { 0x00000ca0, 1, { 0x00000ca0 } }, { 0x00000ca1, 1, { 0x00000ca1 } }, { 0x00000ca2, 1, { 0x00000ca2 } }, { 0x00000ca3, 1, { 0x00000ca3 } }, { 0x00000ca4, 1, { 0x00000ca4 } }, { 0x00000ca5, 1, { 0x00000ca5 } }, { 0x00000ca6, 1, { 0x00000ca6 } }, { 0x00000ca7, 1, { 0x00000ca7 } }, { 0x00000ca8, 1, { 0x00000ca8 } }, { 0x00000caa, 1, { 0x00000caa } }, { 0x00000cab, 1, { 0x00000cab } }, { 0x00000cac, 1, { 0x00000cac } }, { 0x00000cad, 1, { 0x00000cad } }, { 0x00000cae, 1, { 0x00000cae } }, { 0x00000caf, 1, { 0x00000caf } }, { 0x00000cb0, 1, { 0x00000cb0 } }, { 0x00000cb1, 1, { 0x00000cb1 } }, { 0x00000cb2, 1, { 0x00000cb2 } }, { 0x00000cb3, 1, { 0x00000cb3 } }, { 0x00000cb5, 1, { 0x00000cb5 } }, { 0x00000cb6, 1, { 0x00000cb6 } }, { 0x00000cb7, 1, { 0x00000cb7 } }, { 0x00000cb8, 1, { 0x00000cb8 } }, { 0x00000cb9, 1, { 0x00000cb9 } }, { 0x00000cbc, 1, { 0x00000cbc } }, { 0x00000cbd, 1, { 0x00000cbd } }, { 0x00000cbe, 1, { 0x00000cbe } }, { 0x00000cbf, 1, { 0x00000cbf } }, { 0x00000cc0, 2, { 0x00000cbf, 0x00000cd5 } }, { 0x00000cc1, 1, { 0x00000cc1 } }, { 0x00000cc2, 1, { 0x00000cc2 } }, { 0x00000cc3, 1, { 0x00000cc3 } }, { 0x00000cc4, 1, { 0x00000cc4 } }, { 0x00000cc6, 1, { 0x00000cc6 } }, { 0x00000cc7, 2, { 0x00000cc6, 0x00000cd5 } }, { 0x00000cc8, 2, { 0x00000cc6, 0x00000cd6 } }, { 0x00000cca, 2, { 0x00000cc6, 0x00000cc2 } }, { 0x00000ccb, 3, { 0x00000cc6, 0x00000cc2, 0x00000cd5 } }, { 0x00000ccc, 1, { 0x00000ccc } }, { 0x00000ccd, 1, { 0x00000ccd } }, { 0x00000cd5, 1, { 0x00000cd5 } }, { 0x00000cd6, 1, { 0x00000cd6 } }, { 0x00000cde, 1, { 0x00000cde } }, { 0x00000ce0, 1, { 0x00000ce0 } }, { 0x00000ce1, 1, { 0x00000ce1 } }, { 0x00000ce2, 1, { 0x00000ce2 } }, { 0x00000ce3, 1, { 0x00000ce3 } }, { 0x00000ce6, 1, { 0x00000ce6 } }, { 0x00000ce7, 1, { 0x00000ce7 } }, { 0x00000ce8, 1, { 0x00000ce8 } }, { 0x00000ce9, 1, { 0x00000ce9 } }, { 0x00000cea, 1, { 0x00000cea } }, { 0x00000ceb, 1, { 0x00000ceb } }, { 0x00000cec, 1, { 0x00000cec } }, { 0x00000ced, 1, { 0x00000ced } }, { 0x00000cee, 1, { 0x00000cee } }, { 0x00000cef, 1, { 0x00000cef } }, { 0x00000cf1, 1, { 0x00000cf1 } }, { 0x00000cf2, 1, { 0x00000cf2 } }, { 0x00000d01, 1, { 0x00000d01 } }, { 0x00000d02, 1, { 0x00000d02 } }, { 0x00000d03, 1, { 0x00000d03 } }, { 0x00000d05, 1, { 0x00000d05 } }, { 0x00000d06, 1, { 0x00000d06 } }, { 0x00000d07, 1, { 0x00000d07 } }, { 0x00000d08, 1, { 0x00000d08 } }, { 0x00000d09, 1, { 0x00000d09 } }, { 0x00000d0a, 1, { 0x00000d0a } }, { 0x00000d0b, 1, { 0x00000d0b } }, { 0x00000d0c, 1, { 0x00000d0c } }, { 0x00000d0e, 1, { 0x00000d0e } }, { 0x00000d0f, 1, { 0x00000d0f } }, { 0x00000d10, 1, { 0x00000d10 } }, { 0x00000d12, 1, { 0x00000d12 } }, { 0x00000d13, 1, { 0x00000d13 } }, { 0x00000d14, 1, { 0x00000d14 } }, { 0x00000d15, 1, { 0x00000d15 } }, { 0x00000d16, 1, { 0x00000d16 } }, { 0x00000d17, 1, { 0x00000d17 } }, { 0x00000d18, 1, { 0x00000d18 } }, { 0x00000d19, 1, { 0x00000d19 } }, { 0x00000d1a, 1, { 0x00000d1a } }, { 0x00000d1b, 1, { 0x00000d1b } }, { 0x00000d1c, 1, { 0x00000d1c } }, { 0x00000d1d, 1, { 0x00000d1d } }, { 0x00000d1e, 1, { 0x00000d1e } }, { 0x00000d1f, 1, { 0x00000d1f } }, { 0x00000d20, 1, { 0x00000d20 } }, { 0x00000d21, 1, { 0x00000d21 } }, { 0x00000d22, 1, { 0x00000d22 } }, { 0x00000d23, 1, { 0x00000d23 } }, { 0x00000d24, 1, { 0x00000d24 } }, { 0x00000d25, 1, { 0x00000d25 } }, { 0x00000d26, 1, { 0x00000d26 } }, { 0x00000d27, 1, { 0x00000d27 } }, { 0x00000d28, 1, { 0x00000d28 } }, { 0x00000d29, 1, { 0x00000d29 } }, { 0x00000d2a, 1, { 0x00000d2a } }, { 0x00000d2b, 1, { 0x00000d2b } }, { 0x00000d2c, 1, { 0x00000d2c } }, { 0x00000d2d, 1, { 0x00000d2d } }, { 0x00000d2e, 1, { 0x00000d2e } }, { 0x00000d2f, 1, { 0x00000d2f } }, { 0x00000d30, 1, { 0x00000d30 } }, { 0x00000d31, 1, { 0x00000d31 } }, { 0x00000d32, 1, { 0x00000d32 } }, { 0x00000d33, 1, { 0x00000d33 } }, { 0x00000d34, 1, { 0x00000d34 } }, { 0x00000d35, 1, { 0x00000d35 } }, { 0x00000d36, 1, { 0x00000d36 } }, { 0x00000d37, 1, { 0x00000d37 } }, { 0x00000d38, 1, { 0x00000d38 } }, { 0x00000d39, 1, { 0x00000d39 } }, { 0x00000d3a, 1, { 0x00000d3a } }, { 0x00000d3d, 1, { 0x00000d3d } }, { 0x00000d3e, 1, { 0x00000d3e } }, { 0x00000d3f, 1, { 0x00000d3f } }, { 0x00000d40, 1, { 0x00000d40 } }, { 0x00000d41, 1, { 0x00000d41 } }, { 0x00000d42, 1, { 0x00000d42 } }, { 0x00000d43, 1, { 0x00000d43 } }, { 0x00000d44, 1, { 0x00000d44 } }, { 0x00000d46, 1, { 0x00000d46 } }, { 0x00000d47, 1, { 0x00000d47 } }, { 0x00000d48, 1, { 0x00000d48 } }, { 0x00000d4a, 2, { 0x00000d46, 0x00000d3e } }, { 0x00000d4b, 2, { 0x00000d47, 0x00000d3e } }, { 0x00000d4c, 2, { 0x00000d46, 0x00000d57 } }, { 0x00000d4d, 1, { 0x00000d4d } }, { 0x00000d4e, 1, { 0x00000d4e } }, { 0x00000d4f, 1, { 0x00000d4f } }, { 0x00000d54, 1, { 0x00000d54 } }, { 0x00000d55, 1, { 0x00000d55 } }, { 0x00000d56, 1, { 0x00000d56 } }, { 0x00000d57, 1, { 0x00000d57 } }, { 0x00000d58, 1, { 0x00000d58 } }, { 0x00000d59, 1, { 0x00000d59 } }, { 0x00000d5a, 1, { 0x00000d5a } }, { 0x00000d5b, 1, { 0x00000d5b } }, { 0x00000d5c, 1, { 0x00000d5c } }, { 0x00000d5d, 1, { 0x00000d5d } }, { 0x00000d5e, 1, { 0x00000d5e } }, { 0x00000d5f, 1, { 0x00000d5f } }, { 0x00000d60, 1, { 0x00000d60 } }, { 0x00000d61, 1, { 0x00000d61 } }, { 0x00000d62, 1, { 0x00000d62 } }, { 0x00000d63, 1, { 0x00000d63 } }, { 0x00000d66, 1, { 0x00000d66 } }, { 0x00000d67, 1, { 0x00000d67 } }, { 0x00000d68, 1, { 0x00000d68 } }, { 0x00000d69, 1, { 0x00000d69 } }, { 0x00000d6a, 1, { 0x00000d6a } }, { 0x00000d6b, 1, { 0x00000d6b } }, { 0x00000d6c, 1, { 0x00000d6c } }, { 0x00000d6d, 1, { 0x00000d6d } }, { 0x00000d6e, 1, { 0x00000d6e } }, { 0x00000d6f, 1, { 0x00000d6f } }, { 0x00000d70, 1, { 0x00000d70 } }, { 0x00000d71, 1, { 0x00000d71 } }, { 0x00000d72, 1, { 0x00000d72 } }, { 0x00000d73, 1, { 0x00000d73 } }, { 0x00000d74, 1, { 0x00000d74 } }, { 0x00000d75, 1, { 0x00000d75 } }, { 0x00000d76, 1, { 0x00000d76 } }, { 0x00000d77, 1, { 0x00000d77 } }, { 0x00000d78, 1, { 0x00000d78 } }, { 0x00000d79, 1, { 0x00000d79 } }, { 0x00000d7a, 1, { 0x00000d7a } }, { 0x00000d7b, 1, { 0x00000d7b } }, { 0x00000d7c, 1, { 0x00000d7c } }, { 0x00000d7d, 1, { 0x00000d7d } }, { 0x00000d7e, 1, { 0x00000d7e } }, { 0x00000d7f, 1, { 0x00000d7f } }, { 0x00000d82, 1, { 0x00000d82 } }, { 0x00000d83, 1, { 0x00000d83 } }, { 0x00000d85, 1, { 0x00000d85 } }, { 0x00000d86, 1, { 0x00000d86 } }, { 0x00000d87, 1, { 0x00000d87 } }, { 0x00000d88, 1, { 0x00000d88 } }, { 0x00000d89, 1, { 0x00000d89 } }, { 0x00000d8a, 1, { 0x00000d8a } }, { 0x00000d8b, 1, { 0x00000d8b } }, { 0x00000d8c, 1, { 0x00000d8c } }, { 0x00000d8d, 1, { 0x00000d8d } }, { 0x00000d8e, 1, { 0x00000d8e } }, { 0x00000d8f, 1, { 0x00000d8f } }, { 0x00000d90, 1, { 0x00000d90 } }, { 0x00000d91, 1, { 0x00000d91 } }, { 0x00000d92, 1, { 0x00000d92 } }, { 0x00000d93, 1, { 0x00000d93 } }, { 0x00000d94, 1, { 0x00000d94 } }, { 0x00000d95, 1, { 0x00000d95 } }, { 0x00000d96, 1, { 0x00000d96 } }, { 0x00000d9a, 1, { 0x00000d9a } }, { 0x00000d9b, 1, { 0x00000d9b } }, { 0x00000d9c, 1, { 0x00000d9c } }, { 0x00000d9d, 1, { 0x00000d9d } }, { 0x00000d9e, 1, { 0x00000d9e } }, { 0x00000d9f, 1, { 0x00000d9f } }, { 0x00000da0, 1, { 0x00000da0 } }, { 0x00000da1, 1, { 0x00000da1 } }, { 0x00000da2, 1, { 0x00000da2 } }, { 0x00000da3, 1, { 0x00000da3 } }, { 0x00000da4, 1, { 0x00000da4 } }, { 0x00000da5, 1, { 0x00000da5 } }, { 0x00000da6, 1, { 0x00000da6 } }, { 0x00000da7, 1, { 0x00000da7 } }, { 0x00000da8, 1, { 0x00000da8 } }, { 0x00000da9, 1, { 0x00000da9 } }, { 0x00000daa, 1, { 0x00000daa } }, { 0x00000dab, 1, { 0x00000dab } }, { 0x00000dac, 1, { 0x00000dac } }, { 0x00000dad, 1, { 0x00000dad } }, { 0x00000dae, 1, { 0x00000dae } }, { 0x00000daf, 1, { 0x00000daf } }, { 0x00000db0, 1, { 0x00000db0 } }, { 0x00000db1, 1, { 0x00000db1 } }, { 0x00000db3, 1, { 0x00000db3 } }, { 0x00000db4, 1, { 0x00000db4 } }, { 0x00000db5, 1, { 0x00000db5 } }, { 0x00000db6, 1, { 0x00000db6 } }, { 0x00000db7, 1, { 0x00000db7 } }, { 0x00000db8, 1, { 0x00000db8 } }, { 0x00000db9, 1, { 0x00000db9 } }, { 0x00000dba, 1, { 0x00000dba } }, { 0x00000dbb, 1, { 0x00000dbb } }, { 0x00000dbd, 1, { 0x00000dbd } }, { 0x00000dc0, 1, { 0x00000dc0 } }, { 0x00000dc1, 1, { 0x00000dc1 } }, { 0x00000dc2, 1, { 0x00000dc2 } }, { 0x00000dc3, 1, { 0x00000dc3 } }, { 0x00000dc4, 1, { 0x00000dc4 } }, { 0x00000dc5, 1, { 0x00000dc5 } }, { 0x00000dc6, 1, { 0x00000dc6 } }, { 0x00000dca, 1, { 0x00000dca } }, { 0x00000dcf, 1, { 0x00000dcf } }, { 0x00000dd0, 1, { 0x00000dd0 } }, { 0x00000dd1, 1, { 0x00000dd1 } }, { 0x00000dd2, 1, { 0x00000dd2 } }, { 0x00000dd3, 1, { 0x00000dd3 } }, { 0x00000dd4, 1, { 0x00000dd4 } }, { 0x00000dd6, 1, { 0x00000dd6 } }, { 0x00000dd8, 1, { 0x00000dd8 } }, { 0x00000dd9, 1, { 0x00000dd9 } }, { 0x00000dda, 2, { 0x00000dd9, 0x00000dca } }, { 0x00000ddb, 1, { 0x00000ddb } }, { 0x00000ddc, 2, { 0x00000dd9, 0x00000dcf } }, { 0x00000ddd, 3, { 0x00000dd9, 0x00000dcf, 0x00000dca } }, { 0x00000dde, 2, { 0x00000dd9, 0x00000ddf } }, { 0x00000ddf, 1, { 0x00000ddf } }, { 0x00000de6, 1, { 0x00000de6 } }, { 0x00000de7, 1, { 0x00000de7 } }, { 0x00000de8, 1, { 0x00000de8 } }, { 0x00000de9, 1, { 0x00000de9 } }, { 0x00000dea, 1, { 0x00000dea } }, { 0x00000deb, 1, { 0x00000deb } }, { 0x00000dec, 1, { 0x00000dec } }, { 0x00000ded, 1, { 0x00000ded } }, { 0x00000dee, 1, { 0x00000dee } }, { 0x00000def, 1, { 0x00000def } }, { 0x00000df2, 1, { 0x00000df2 } }, { 0x00000df3, 1, { 0x00000df3 } }, { 0x00000df4, 1, { 0x00000df4 } }, { 0x00000e01, 1, { 0x00000e01 } }, { 0x00000e02, 1, { 0x00000e02 } }, { 0x00000e03, 1, { 0x00000e03 } }, { 0x00000e04, 1, { 0x00000e04 } }, { 0x00000e05, 1, { 0x00000e05 } }, { 0x00000e06, 1, { 0x00000e06 } }, { 0x00000e07, 1, { 0x00000e07 } }, { 0x00000e08, 1, { 0x00000e08 } }, { 0x00000e09, 1, { 0x00000e09 } }, { 0x00000e0a, 1, { 0x00000e0a } }, { 0x00000e0b, 1, { 0x00000e0b } }, { 0x00000e0c, 1, { 0x00000e0c } }, { 0x00000e0d, 1, { 0x00000e0d } }, { 0x00000e0e, 1, { 0x00000e0e } }, { 0x00000e0f, 1, { 0x00000e0f } }, { 0x00000e10, 1, { 0x00000e10 } }, { 0x00000e11, 1, { 0x00000e11 } }, { 0x00000e12, 1, { 0x00000e12 } }, { 0x00000e13, 1, { 0x00000e13 } }, { 0x00000e14, 1, { 0x00000e14 } }, { 0x00000e15, 1, { 0x00000e15 } }, { 0x00000e16, 1, { 0x00000e16 } }, { 0x00000e17, 1, { 0x00000e17 } }, { 0x00000e18, 1, { 0x00000e18 } }, { 0x00000e19, 1, { 0x00000e19 } }, { 0x00000e1a, 1, { 0x00000e1a } }, { 0x00000e1b, 1, { 0x00000e1b } }, { 0x00000e1c, 1, { 0x00000e1c } }, { 0x00000e1d, 1, { 0x00000e1d } }, { 0x00000e1e, 1, { 0x00000e1e } }, { 0x00000e1f, 1, { 0x00000e1f } }, { 0x00000e20, 1, { 0x00000e20 } }, { 0x00000e21, 1, { 0x00000e21 } }, { 0x00000e22, 1, { 0x00000e22 } }, { 0x00000e23, 1, { 0x00000e23 } }, { 0x00000e24, 1, { 0x00000e24 } }, { 0x00000e25, 1, { 0x00000e25 } }, { 0x00000e26, 1, { 0x00000e26 } }, { 0x00000e27, 1, { 0x00000e27 } }, { 0x00000e28, 1, { 0x00000e28 } }, { 0x00000e29, 1, { 0x00000e29 } }, { 0x00000e2a, 1, { 0x00000e2a } }, { 0x00000e2b, 1, { 0x00000e2b } }, { 0x00000e2c, 1, { 0x00000e2c } }, { 0x00000e2d, 1, { 0x00000e2d } }, { 0x00000e2e, 1, { 0x00000e2e } }, { 0x00000e2f, 1, { 0x00000e2f } }, { 0x00000e30, 1, { 0x00000e30 } }, { 0x00000e31, 1, { 0x00000e31 } }, { 0x00000e32, 1, { 0x00000e32 } }, { 0x00000e33, 1, { 0x00000e33 } }, { 0x00000e34, 1, { 0x00000e34 } }, { 0x00000e35, 1, { 0x00000e35 } }, { 0x00000e36, 1, { 0x00000e36 } }, { 0x00000e37, 1, { 0x00000e37 } }, { 0x00000e38, 1, { 0x00000e38 } }, { 0x00000e39, 1, { 0x00000e39 } }, { 0x00000e3a, 1, { 0x00000e3a } }, { 0x00000e3f, 1, { 0x00000e3f } }, { 0x00000e40, 1, { 0x00000e40 } }, { 0x00000e41, 1, { 0x00000e41 } }, { 0x00000e42, 1, { 0x00000e42 } }, { 0x00000e43, 1, { 0x00000e43 } }, { 0x00000e44, 1, { 0x00000e44 } }, { 0x00000e45, 1, { 0x00000e45 } }, { 0x00000e46, 1, { 0x00000e46 } }, { 0x00000e47, 1, { 0x00000e47 } }, { 0x00000e48, 1, { 0x00000e48 } }, { 0x00000e49, 1, { 0x00000e49 } }, { 0x00000e4a, 1, { 0x00000e4a } }, { 0x00000e4b, 1, { 0x00000e4b } }, { 0x00000e4c, 1, { 0x00000e4c } }, { 0x00000e4d, 1, { 0x00000e4d } }, { 0x00000e4e, 1, { 0x00000e4e } }, { 0x00000e4f, 1, { 0x00000e4f } }, { 0x00000e50, 1, { 0x00000e50 } }, { 0x00000e51, 1, { 0x00000e51 } }, { 0x00000e52, 1, { 0x00000e52 } }, { 0x00000e53, 1, { 0x00000e53 } }, { 0x00000e54, 1, { 0x00000e54 } }, { 0x00000e55, 1, { 0x00000e55 } }, { 0x00000e56, 1, { 0x00000e56 } }, { 0x00000e57, 1, { 0x00000e57 } }, { 0x00000e58, 1, { 0x00000e58 } }, { 0x00000e59, 1, { 0x00000e59 } }, { 0x00000e5a, 1, { 0x00000e5a } }, { 0x00000e5b, 1, { 0x00000e5b } }, { 0x00000e81, 1, { 0x00000e81 } }, { 0x00000e82, 1, { 0x00000e82 } }, { 0x00000e84, 1, { 0x00000e84 } }, { 0x00000e87, 1, { 0x00000e87 } }, { 0x00000e88, 1, { 0x00000e88 } }, { 0x00000e8a, 1, { 0x00000e8a } }, { 0x00000e8d, 1, { 0x00000e8d } }, { 0x00000e94, 1, { 0x00000e94 } }, { 0x00000e95, 1, { 0x00000e95 } }, { 0x00000e96, 1, { 0x00000e96 } }, { 0x00000e97, 1, { 0x00000e97 } }, { 0x00000e99, 1, { 0x00000e99 } }, { 0x00000e9a, 1, { 0x00000e9a } }, { 0x00000e9b, 1, { 0x00000e9b } }, { 0x00000e9c, 1, { 0x00000e9c } }, { 0x00000e9d, 1, { 0x00000e9d } }, { 0x00000e9e, 1, { 0x00000e9e } }, { 0x00000e9f, 1, { 0x00000e9f } }, { 0x00000ea1, 1, { 0x00000ea1 } }, { 0x00000ea2, 1, { 0x00000ea2 } }, { 0x00000ea3, 1, { 0x00000ea3 } }, { 0x00000ea5, 1, { 0x00000ea5 } }, { 0x00000ea7, 1, { 0x00000ea7 } }, { 0x00000eaa, 1, { 0x00000eaa } }, { 0x00000eab, 1, { 0x00000eab } }, { 0x00000ead, 1, { 0x00000ead } }, { 0x00000eae, 1, { 0x00000eae } }, { 0x00000eaf, 1, { 0x00000eaf } }, { 0x00000eb0, 1, { 0x00000eb0 } }, { 0x00000eb1, 1, { 0x00000eb1 } }, { 0x00000eb2, 1, { 0x00000eb2 } }, { 0x00000eb3, 1, { 0x00000eb3 } }, { 0x00000eb4, 1, { 0x00000eb4 } }, { 0x00000eb5, 1, { 0x00000eb5 } }, { 0x00000eb6, 1, { 0x00000eb6 } }, { 0x00000eb7, 1, { 0x00000eb7 } }, { 0x00000eb8, 1, { 0x00000eb8 } }, { 0x00000eb9, 1, { 0x00000eb9 } }, { 0x00000ebb, 1, { 0x00000ebb } }, { 0x00000ebc, 1, { 0x00000ebc } }, { 0x00000ebd, 1, { 0x00000ebd } }, { 0x00000ec0, 1, { 0x00000ec0 } }, { 0x00000ec1, 1, { 0x00000ec1 } }, { 0x00000ec2, 1, { 0x00000ec2 } }, { 0x00000ec3, 1, { 0x00000ec3 } }, { 0x00000ec4, 1, { 0x00000ec4 } }, { 0x00000ec6, 1, { 0x00000ec6 } }, { 0x00000ec8, 1, { 0x00000ec8 } }, { 0x00000ec9, 1, { 0x00000ec9 } }, { 0x00000eca, 1, { 0x00000eca } }, { 0x00000ecb, 1, { 0x00000ecb } }, { 0x00000ecc, 1, { 0x00000ecc } }, { 0x00000ecd, 1, { 0x00000ecd } }, { 0x00000ed0, 1, { 0x00000ed0 } }, { 0x00000ed1, 1, { 0x00000ed1 } }, { 0x00000ed2, 1, { 0x00000ed2 } }, { 0x00000ed3, 1, { 0x00000ed3 } }, { 0x00000ed4, 1, { 0x00000ed4 } }, { 0x00000ed5, 1, { 0x00000ed5 } }, { 0x00000ed6, 1, { 0x00000ed6 } }, { 0x00000ed7, 1, { 0x00000ed7 } }, { 0x00000ed8, 1, { 0x00000ed8 } }, { 0x00000ed9, 1, { 0x00000ed9 } }, { 0x00000edc, 1, { 0x00000edc } }, { 0x00000edd, 1, { 0x00000edd } }, { 0x00000ede, 1, { 0x00000ede } }, { 0x00000edf, 1, { 0x00000edf } }, { 0x00000f00, 1, { 0x00000f00 } }, { 0x00000f01, 1, { 0x00000f01 } }, { 0x00000f02, 1, { 0x00000f02 } }, { 0x00000f03, 1, { 0x00000f03 } }, { 0x00000f04, 1, { 0x00000f04 } }, { 0x00000f05, 1, { 0x00000f05 } }, { 0x00000f06, 1, { 0x00000f06 } }, { 0x00000f07, 1, { 0x00000f07 } }, { 0x00000f08, 1, { 0x00000f08 } }, { 0x00000f09, 1, { 0x00000f09 } }, { 0x00000f0a, 1, { 0x00000f0a } }, { 0x00000f0b, 1, { 0x00000f0b } }, { 0x00000f0c, 1, { 0x00000f0c } }, { 0x00000f0d, 1, { 0x00000f0d } }, { 0x00000f0e, 1, { 0x00000f0e } }, { 0x00000f0f, 1, { 0x00000f0f } }, { 0x00000f10, 1, { 0x00000f10 } }, { 0x00000f11, 1, { 0x00000f11 } }, { 0x00000f12, 1, { 0x00000f12 } }, { 0x00000f13, 1, { 0x00000f13 } }, { 0x00000f14, 1, { 0x00000f14 } }, { 0x00000f15, 1, { 0x00000f15 } }, { 0x00000f16, 1, { 0x00000f16 } }, { 0x00000f17, 1, { 0x00000f17 } }, { 0x00000f18, 1, { 0x00000f18 } }, { 0x00000f19, 1, { 0x00000f19 } }, { 0x00000f1a, 1, { 0x00000f1a } }, { 0x00000f1b, 1, { 0x00000f1b } }, { 0x00000f1c, 1, { 0x00000f1c } }, { 0x00000f1d, 1, { 0x00000f1d } }, { 0x00000f1e, 1, { 0x00000f1e } }, { 0x00000f1f, 1, { 0x00000f1f } }, { 0x00000f20, 1, { 0x00000f20 } }, { 0x00000f21, 1, { 0x00000f21 } }, { 0x00000f22, 1, { 0x00000f22 } }, { 0x00000f23, 1, { 0x00000f23 } }, { 0x00000f24, 1, { 0x00000f24 } }, { 0x00000f25, 1, { 0x00000f25 } }, { 0x00000f26, 1, { 0x00000f26 } }, { 0x00000f27, 1, { 0x00000f27 } }, { 0x00000f28, 1, { 0x00000f28 } }, { 0x00000f29, 1, { 0x00000f29 } }, { 0x00000f2a, 1, { 0x00000f2a } }, { 0x00000f2b, 1, { 0x00000f2b } }, { 0x00000f2c, 1, { 0x00000f2c } }, { 0x00000f2d, 1, { 0x00000f2d } }, { 0x00000f2e, 1, { 0x00000f2e } }, { 0x00000f2f, 1, { 0x00000f2f } }, { 0x00000f30, 1, { 0x00000f30 } }, { 0x00000f31, 1, { 0x00000f31 } }, { 0x00000f32, 1, { 0x00000f32 } }, { 0x00000f33, 1, { 0x00000f33 } }, { 0x00000f34, 1, { 0x00000f34 } }, { 0x00000f35, 1, { 0x00000f35 } }, { 0x00000f36, 1, { 0x00000f36 } }, { 0x00000f37, 1, { 0x00000f37 } }, { 0x00000f38, 1, { 0x00000f38 } }, { 0x00000f39, 1, { 0x00000f39 } }, { 0x00000f3a, 1, { 0x00000f3a } }, { 0x00000f3b, 1, { 0x00000f3b } }, { 0x00000f3c, 1, { 0x00000f3c } }, { 0x00000f3d, 1, { 0x00000f3d } }, { 0x00000f3e, 1, { 0x00000f3e } }, { 0x00000f3f, 1, { 0x00000f3f } }, { 0x00000f40, 1, { 0x00000f40 } }, { 0x00000f41, 1, { 0x00000f41 } }, { 0x00000f42, 1, { 0x00000f42 } }, { 0x00000f43, 2, { 0x00000f42, 0x00000fb7 } }, { 0x00000f44, 1, { 0x00000f44 } }, { 0x00000f45, 1, { 0x00000f45 } }, { 0x00000f46, 1, { 0x00000f46 } }, { 0x00000f47, 1, { 0x00000f47 } }, { 0x00000f49, 1, { 0x00000f49 } }, { 0x00000f4a, 1, { 0x00000f4a } }, { 0x00000f4b, 1, { 0x00000f4b } }, { 0x00000f4c, 1, { 0x00000f4c } }, { 0x00000f4d, 2, { 0x00000f4c, 0x00000fb7 } }, { 0x00000f4e, 1, { 0x00000f4e } }, { 0x00000f4f, 1, { 0x00000f4f } }, { 0x00000f50, 1, { 0x00000f50 } }, { 0x00000f51, 1, { 0x00000f51 } }, { 0x00000f52, 2, { 0x00000f51, 0x00000fb7 } }, { 0x00000f53, 1, { 0x00000f53 } }, { 0x00000f54, 1, { 0x00000f54 } }, { 0x00000f55, 1, { 0x00000f55 } }, { 0x00000f56, 1, { 0x00000f56 } }, { 0x00000f57, 2, { 0x00000f56, 0x00000fb7 } }, { 0x00000f58, 1, { 0x00000f58 } }, { 0x00000f59, 1, { 0x00000f59 } }, { 0x00000f5a, 1, { 0x00000f5a } }, { 0x00000f5b, 1, { 0x00000f5b } }, { 0x00000f5c, 2, { 0x00000f5b, 0x00000fb7 } }, { 0x00000f5d, 1, { 0x00000f5d } }, { 0x00000f5e, 1, { 0x00000f5e } }, { 0x00000f5f, 1, { 0x00000f5f } }, { 0x00000f60, 1, { 0x00000f60 } }, { 0x00000f61, 1, { 0x00000f61 } }, { 0x00000f62, 1, { 0x00000f62 } }, { 0x00000f63, 1, { 0x00000f63 } }, { 0x00000f64, 1, { 0x00000f64 } }, { 0x00000f65, 1, { 0x00000f65 } }, { 0x00000f66, 1, { 0x00000f66 } }, { 0x00000f67, 1, { 0x00000f67 } }, { 0x00000f68, 1, { 0x00000f68 } }, { 0x00000f69, 2, { 0x00000f40, 0x00000fb5 } }, { 0x00000f6a, 1, { 0x00000f6a } }, { 0x00000f6b, 1, { 0x00000f6b } }, { 0x00000f6c, 1, { 0x00000f6c } }, { 0x00000f71, 1, { 0x00000f71 } }, { 0x00000f72, 1, { 0x00000f72 } }, { 0x00000f73, 2, { 0x00000f71, 0x00000f72 } }, { 0x00000f74, 1, { 0x00000f74 } }, { 0x00000f75, 2, { 0x00000f71, 0x00000f74 } }, { 0x00000f76, 2, { 0x00000fb2, 0x00000f80 } }, { 0x00000f77, 1, { 0x00000f77 } }, { 0x00000f78, 2, { 0x00000fb3, 0x00000f80 } }, { 0x00000f79, 1, { 0x00000f79 } }, { 0x00000f7a, 1, { 0x00000f7a } }, { 0x00000f7b, 1, { 0x00000f7b } }, { 0x00000f7c, 1, { 0x00000f7c } }, { 0x00000f7d, 1, { 0x00000f7d } }, { 0x00000f7e, 1, { 0x00000f7e } }, { 0x00000f7f, 1, { 0x00000f7f } }, { 0x00000f80, 1, { 0x00000f80 } }, { 0x00000f81, 2, { 0x00000f71, 0x00000f80 } }, { 0x00000f82, 1, { 0x00000f82 } }, { 0x00000f83, 1, { 0x00000f83 } }, { 0x00000f84, 1, { 0x00000f84 } }, { 0x00000f85, 1, { 0x00000f85 } }, { 0x00000f86, 1, { 0x00000f86 } }, { 0x00000f87, 1, { 0x00000f87 } }, { 0x00000f88, 1, { 0x00000f88 } }, { 0x00000f89, 1, { 0x00000f89 } }, { 0x00000f8a, 1, { 0x00000f8a } }, { 0x00000f8b, 1, { 0x00000f8b } }, { 0x00000f8c, 1, { 0x00000f8c } }, { 0x00000f8d, 1, { 0x00000f8d } }, { 0x00000f8e, 1, { 0x00000f8e } }, { 0x00000f8f, 1, { 0x00000f8f } }, { 0x00000f90, 1, { 0x00000f90 } }, { 0x00000f91, 1, { 0x00000f91 } }, { 0x00000f92, 1, { 0x00000f92 } }, { 0x00000f93, 2, { 0x00000f92, 0x00000fb7 } }, { 0x00000f94, 1, { 0x00000f94 } }, { 0x00000f95, 1, { 0x00000f95 } }, { 0x00000f96, 1, { 0x00000f96 } }, { 0x00000f97, 1, { 0x00000f97 } }, { 0x00000f99, 1, { 0x00000f99 } }, { 0x00000f9a, 1, { 0x00000f9a } }, { 0x00000f9b, 1, { 0x00000f9b } }, { 0x00000f9c, 1, { 0x00000f9c } }, { 0x00000f9d, 2, { 0x00000f9c, 0x00000fb7 } }, { 0x00000f9e, 1, { 0x00000f9e } }, { 0x00000f9f, 1, { 0x00000f9f } }, { 0x00000fa0, 1, { 0x00000fa0 } }, { 0x00000fa1, 1, { 0x00000fa1 } }, { 0x00000fa2, 2, { 0x00000fa1, 0x00000fb7 } }, { 0x00000fa3, 1, { 0x00000fa3 } }, { 0x00000fa4, 1, { 0x00000fa4 } }, { 0x00000fa5, 1, { 0x00000fa5 } }, { 0x00000fa6, 1, { 0x00000fa6 } }, { 0x00000fa7, 2, { 0x00000fa6, 0x00000fb7 } }, { 0x00000fa8, 1, { 0x00000fa8 } }, { 0x00000fa9, 1, { 0x00000fa9 } }, { 0x00000faa, 1, { 0x00000faa } }, { 0x00000fab, 1, { 0x00000fab } }, { 0x00000fac, 2, { 0x00000fab, 0x00000fb7 } }, { 0x00000fad, 1, { 0x00000fad } }, { 0x00000fae, 1, { 0x00000fae } }, { 0x00000faf, 1, { 0x00000faf } }, { 0x00000fb0, 1, { 0x00000fb0 } }, { 0x00000fb1, 1, { 0x00000fb1 } }, { 0x00000fb2, 1, { 0x00000fb2 } }, { 0x00000fb3, 1, { 0x00000fb3 } }, { 0x00000fb4, 1, { 0x00000fb4 } }, { 0x00000fb5, 1, { 0x00000fb5 } }, { 0x00000fb6, 1, { 0x00000fb6 } }, { 0x00000fb7, 1, { 0x00000fb7 } }, { 0x00000fb8, 1, { 0x00000fb8 } }, { 0x00000fb9, 2, { 0x00000f90, 0x00000fb5 } }, { 0x00000fba, 1, { 0x00000fba } }, { 0x00000fbb, 1, { 0x00000fbb } }, { 0x00000fbc, 1, { 0x00000fbc } }, { 0x00000fbe, 1, { 0x00000fbe } }, { 0x00000fbf, 1, { 0x00000fbf } }, { 0x00000fc0, 1, { 0x00000fc0 } }, { 0x00000fc1, 1, { 0x00000fc1 } }, { 0x00000fc2, 1, { 0x00000fc2 } }, { 0x00000fc3, 1, { 0x00000fc3 } }, { 0x00000fc4, 1, { 0x00000fc4 } }, { 0x00000fc5, 1, { 0x00000fc5 } }, { 0x00000fc6, 1, { 0x00000fc6 } }, { 0x00000fc7, 1, { 0x00000fc7 } }, { 0x00000fc8, 1, { 0x00000fc8 } }, { 0x00000fc9, 1, { 0x00000fc9 } }, { 0x00000fca, 1, { 0x00000fca } }, { 0x00000fcb, 1, { 0x00000fcb } }, { 0x00000fcc, 1, { 0x00000fcc } }, { 0x00000fce, 1, { 0x00000fce } }, { 0x00000fcf, 1, { 0x00000fcf } }, { 0x00000fd0, 1, { 0x00000fd0 } }, { 0x00000fd1, 1, { 0x00000fd1 } }, { 0x00000fd2, 1, { 0x00000fd2 } }, { 0x00000fd3, 1, { 0x00000fd3 } }, { 0x00000fd4, 1, { 0x00000fd4 } }, { 0x00000fd5, 1, { 0x00000fd5 } }, { 0x00000fd6, 1, { 0x00000fd6 } }, { 0x00000fd7, 1, { 0x00000fd7 } }, { 0x00000fd8, 1, { 0x00000fd8 } }, { 0x00000fd9, 1, { 0x00000fd9 } }, { 0x00000fda, 1, { 0x00000fda } }, { 0x00001000, 1, { 0x00001000 } }, { 0x00001001, 1, { 0x00001001 } }, { 0x00001002, 1, { 0x00001002 } }, { 0x00001003, 1, { 0x00001003 } }, { 0x00001004, 1, { 0x00001004 } }, { 0x00001005, 1, { 0x00001005 } }, { 0x00001006, 1, { 0x00001006 } }, { 0x00001007, 1, { 0x00001007 } }, { 0x00001008, 1, { 0x00001008 } }, { 0x00001009, 1, { 0x00001009 } }, { 0x0000100a, 1, { 0x0000100a } }, { 0x0000100b, 1, { 0x0000100b } }, { 0x0000100c, 1, { 0x0000100c } }, { 0x0000100d, 1, { 0x0000100d } }, { 0x0000100e, 1, { 0x0000100e } }, { 0x0000100f, 1, { 0x0000100f } }, { 0x00001010, 1, { 0x00001010 } }, { 0x00001011, 1, { 0x00001011 } }, { 0x00001012, 1, { 0x00001012 } }, { 0x00001013, 1, { 0x00001013 } }, { 0x00001014, 1, { 0x00001014 } }, { 0x00001015, 1, { 0x00001015 } }, { 0x00001016, 1, { 0x00001016 } }, { 0x00001017, 1, { 0x00001017 } }, { 0x00001018, 1, { 0x00001018 } }, { 0x00001019, 1, { 0x00001019 } }, { 0x0000101a, 1, { 0x0000101a } }, { 0x0000101b, 1, { 0x0000101b } }, { 0x0000101c, 1, { 0x0000101c } }, { 0x0000101d, 1, { 0x0000101d } }, { 0x0000101e, 1, { 0x0000101e } }, { 0x0000101f, 1, { 0x0000101f } }, { 0x00001020, 1, { 0x00001020 } }, { 0x00001021, 1, { 0x00001021 } }, { 0x00001022, 1, { 0x00001022 } }, { 0x00001023, 1, { 0x00001023 } }, { 0x00001024, 1, { 0x00001024 } }, { 0x00001025, 1, { 0x00001025 } }, { 0x00001026, 2, { 0x00001025, 0x0000102e } }, { 0x00001027, 1, { 0x00001027 } }, { 0x00001028, 1, { 0x00001028 } }, { 0x00001029, 1, { 0x00001029 } }, { 0x0000102a, 1, { 0x0000102a } }, { 0x0000102b, 1, { 0x0000102b } }, { 0x0000102c, 1, { 0x0000102c } }, { 0x0000102d, 1, { 0x0000102d } }, { 0x0000102e, 1, { 0x0000102e } }, { 0x0000102f, 1, { 0x0000102f } }, { 0x00001030, 1, { 0x00001030 } }, { 0x00001031, 1, { 0x00001031 } }, { 0x00001032, 1, { 0x00001032 } }, { 0x00001033, 1, { 0x00001033 } }, { 0x00001034, 1, { 0x00001034 } }, { 0x00001035, 1, { 0x00001035 } }, { 0x00001036, 1, { 0x00001036 } }, { 0x00001037, 1, { 0x00001037 } }, { 0x00001038, 1, { 0x00001038 } }, { 0x00001039, 1, { 0x00001039 } }, { 0x0000103a, 1, { 0x0000103a } }, { 0x0000103b, 1, { 0x0000103b } }, { 0x0000103c, 1, { 0x0000103c } }, { 0x0000103d, 1, { 0x0000103d } }, { 0x0000103e, 1, { 0x0000103e } }, { 0x0000103f, 1, { 0x0000103f } }, { 0x00001040, 1, { 0x00001040 } }, { 0x00001041, 1, { 0x00001041 } }, { 0x00001042, 1, { 0x00001042 } }, { 0x00001043, 1, { 0x00001043 } }, { 0x00001044, 1, { 0x00001044 } }, { 0x00001045, 1, { 0x00001045 } }, { 0x00001046, 1, { 0x00001046 } }, { 0x00001047, 1, { 0x00001047 } }, { 0x00001048, 1, { 0x00001048 } }, { 0x00001049, 1, { 0x00001049 } }, { 0x0000104a, 1, { 0x0000104a } }, { 0x0000104b, 1, { 0x0000104b } }, { 0x0000104c, 1, { 0x0000104c } }, { 0x0000104d, 1, { 0x0000104d } }, { 0x0000104e, 1, { 0x0000104e } }, { 0x0000104f, 1, { 0x0000104f } }, { 0x00001050, 1, { 0x00001050 } }, { 0x00001051, 1, { 0x00001051 } }, { 0x00001052, 1, { 0x00001052 } }, { 0x00001053, 1, { 0x00001053 } }, { 0x00001054, 1, { 0x00001054 } }, { 0x00001055, 1, { 0x00001055 } }, { 0x00001056, 1, { 0x00001056 } }, { 0x00001057, 1, { 0x00001057 } }, { 0x00001058, 1, { 0x00001058 } }, { 0x00001059, 1, { 0x00001059 } }, { 0x0000105a, 1, { 0x0000105a } }, { 0x0000105b, 1, { 0x0000105b } }, { 0x0000105c, 1, { 0x0000105c } }, { 0x0000105d, 1, { 0x0000105d } }, { 0x0000105e, 1, { 0x0000105e } }, { 0x0000105f, 1, { 0x0000105f } }, { 0x00001060, 1, { 0x00001060 } }, { 0x00001061, 1, { 0x00001061 } }, { 0x00001062, 1, { 0x00001062 } }, { 0x00001063, 1, { 0x00001063 } }, { 0x00001064, 1, { 0x00001064 } }, { 0x00001065, 1, { 0x00001065 } }, { 0x00001066, 1, { 0x00001066 } }, { 0x00001067, 1, { 0x00001067 } }, { 0x00001068, 1, { 0x00001068 } }, { 0x00001069, 1, { 0x00001069 } }, { 0x0000106a, 1, { 0x0000106a } }, { 0x0000106b, 1, { 0x0000106b } }, { 0x0000106c, 1, { 0x0000106c } }, { 0x0000106d, 1, { 0x0000106d } }, { 0x0000106e, 1, { 0x0000106e } }, { 0x0000106f, 1, { 0x0000106f } }, { 0x00001070, 1, { 0x00001070 } }, { 0x00001071, 1, { 0x00001071 } }, { 0x00001072, 1, { 0x00001072 } }, { 0x00001073, 1, { 0x00001073 } }, { 0x00001074, 1, { 0x00001074 } }, { 0x00001075, 1, { 0x00001075 } }, { 0x00001076, 1, { 0x00001076 } }, { 0x00001077, 1, { 0x00001077 } }, { 0x00001078, 1, { 0x00001078 } }, { 0x00001079, 1, { 0x00001079 } }, { 0x0000107a, 1, { 0x0000107a } }, { 0x0000107b, 1, { 0x0000107b } }, { 0x0000107c, 1, { 0x0000107c } }, { 0x0000107d, 1, { 0x0000107d } }, { 0x0000107e, 1, { 0x0000107e } }, { 0x0000107f, 1, { 0x0000107f } }, { 0x00001080, 1, { 0x00001080 } }, { 0x00001081, 1, { 0x00001081 } }, { 0x00001082, 1, { 0x00001082 } }, { 0x00001083, 1, { 0x00001083 } }, { 0x00001084, 1, { 0x00001084 } }, { 0x00001085, 1, { 0x00001085 } }, { 0x00001086, 1, { 0x00001086 } }, { 0x00001087, 1, { 0x00001087 } }, { 0x00001088, 1, { 0x00001088 } }, { 0x00001089, 1, { 0x00001089 } }, { 0x0000108a, 1, { 0x0000108a } }, { 0x0000108b, 1, { 0x0000108b } }, { 0x0000108c, 1, { 0x0000108c } }, { 0x0000108d, 1, { 0x0000108d } }, { 0x0000108e, 1, { 0x0000108e } }, { 0x0000108f, 1, { 0x0000108f } }, { 0x00001090, 1, { 0x00001090 } }, { 0x00001091, 1, { 0x00001091 } }, { 0x00001092, 1, { 0x00001092 } }, { 0x00001093, 1, { 0x00001093 } }, { 0x00001094, 1, { 0x00001094 } }, { 0x00001095, 1, { 0x00001095 } }, { 0x00001096, 1, { 0x00001096 } }, { 0x00001097, 1, { 0x00001097 } }, { 0x00001098, 1, { 0x00001098 } }, { 0x00001099, 1, { 0x00001099 } }, { 0x0000109a, 1, { 0x0000109a } }, { 0x0000109b, 1, { 0x0000109b } }, { 0x0000109c, 1, { 0x0000109c } }, { 0x0000109d, 1, { 0x0000109d } }, { 0x0000109e, 1, { 0x0000109e } }, { 0x0000109f, 1, { 0x0000109f } }, { 0x000010a0, 1, { 0x000010a0 } }, { 0x000010a1, 1, { 0x000010a1 } }, { 0x000010a2, 1, { 0x000010a2 } }, { 0x000010a3, 1, { 0x000010a3 } }, { 0x000010a4, 1, { 0x000010a4 } }, { 0x000010a5, 1, { 0x000010a5 } }, { 0x000010a6, 1, { 0x000010a6 } }, { 0x000010a7, 1, { 0x000010a7 } }, { 0x000010a8, 1, { 0x000010a8 } }, { 0x000010a9, 1, { 0x000010a9 } }, { 0x000010aa, 1, { 0x000010aa } }, { 0x000010ab, 1, { 0x000010ab } }, { 0x000010ac, 1, { 0x000010ac } }, { 0x000010ad, 1, { 0x000010ad } }, { 0x000010ae, 1, { 0x000010ae } }, { 0x000010af, 1, { 0x000010af } }, { 0x000010b0, 1, { 0x000010b0 } }, { 0x000010b1, 1, { 0x000010b1 } }, { 0x000010b2, 1, { 0x000010b2 } }, { 0x000010b3, 1, { 0x000010b3 } }, { 0x000010b4, 1, { 0x000010b4 } }, { 0x000010b5, 1, { 0x000010b5 } }, { 0x000010b6, 1, { 0x000010b6 } }, { 0x000010b7, 1, { 0x000010b7 } }, { 0x000010b8, 1, { 0x000010b8 } }, { 0x000010b9, 1, { 0x000010b9 } }, { 0x000010ba, 1, { 0x000010ba } }, { 0x000010bb, 1, { 0x000010bb } }, { 0x000010bc, 1, { 0x000010bc } }, { 0x000010bd, 1, { 0x000010bd } }, { 0x000010be, 1, { 0x000010be } }, { 0x000010bf, 1, { 0x000010bf } }, { 0x000010c0, 1, { 0x000010c0 } }, { 0x000010c1, 1, { 0x000010c1 } }, { 0x000010c2, 1, { 0x000010c2 } }, { 0x000010c3, 1, { 0x000010c3 } }, { 0x000010c4, 1, { 0x000010c4 } }, { 0x000010c5, 1, { 0x000010c5 } }, { 0x000010c7, 1, { 0x000010c7 } }, { 0x000010cd, 1, { 0x000010cd } }, { 0x000010d0, 1, { 0x000010d0 } }, { 0x000010d1, 1, { 0x000010d1 } }, { 0x000010d2, 1, { 0x000010d2 } }, { 0x000010d3, 1, { 0x000010d3 } }, { 0x000010d4, 1, { 0x000010d4 } }, { 0x000010d5, 1, { 0x000010d5 } }, { 0x000010d6, 1, { 0x000010d6 } }, { 0x000010d7, 1, { 0x000010d7 } }, { 0x000010d8, 1, { 0x000010d8 } }, { 0x000010d9, 1, { 0x000010d9 } }, { 0x000010da, 1, { 0x000010da } }, { 0x000010db, 1, { 0x000010db } }, { 0x000010dc, 1, { 0x000010dc } }, { 0x000010dd, 1, { 0x000010dd } }, { 0x000010de, 1, { 0x000010de } }, { 0x000010df, 1, { 0x000010df } }, { 0x000010e0, 1, { 0x000010e0 } }, { 0x000010e1, 1, { 0x000010e1 } }, { 0x000010e2, 1, { 0x000010e2 } }, { 0x000010e3, 1, { 0x000010e3 } }, { 0x000010e4, 1, { 0x000010e4 } }, { 0x000010e5, 1, { 0x000010e5 } }, { 0x000010e6, 1, { 0x000010e6 } }, { 0x000010e7, 1, { 0x000010e7 } }, { 0x000010e8, 1, { 0x000010e8 } }, { 0x000010e9, 1, { 0x000010e9 } }, { 0x000010ea, 1, { 0x000010ea } }, { 0x000010eb, 1, { 0x000010eb } }, { 0x000010ec, 1, { 0x000010ec } }, { 0x000010ed, 1, { 0x000010ed } }, { 0x000010ee, 1, { 0x000010ee } }, { 0x000010ef, 1, { 0x000010ef } }, { 0x000010f0, 1, { 0x000010f0 } }, { 0x000010f1, 1, { 0x000010f1 } }, { 0x000010f2, 1, { 0x000010f2 } }, { 0x000010f3, 1, { 0x000010f3 } }, { 0x000010f4, 1, { 0x000010f4 } }, { 0x000010f5, 1, { 0x000010f5 } }, { 0x000010f6, 1, { 0x000010f6 } }, { 0x000010f7, 1, { 0x000010f7 } }, { 0x000010f8, 1, { 0x000010f8 } }, { 0x000010f9, 1, { 0x000010f9 } }, { 0x000010fa, 1, { 0x000010fa } }, { 0x000010fb, 1, { 0x000010fb } }, { 0x000010fc, 1, { 0x000010fc } }, { 0x000010fd, 1, { 0x000010fd } }, { 0x000010fe, 1, { 0x000010fe } }, { 0x000010ff, 1, { 0x000010ff } }, { 0x00001100, 1, { 0x00001100 } }, { 0x00001101, 1, { 0x00001101 } }, { 0x00001102, 1, { 0x00001102 } }, { 0x00001103, 1, { 0x00001103 } }, { 0x00001104, 1, { 0x00001104 } }, { 0x00001105, 1, { 0x00001105 } }, { 0x00001106, 1, { 0x00001106 } }, { 0x00001107, 1, { 0x00001107 } }, { 0x00001108, 1, { 0x00001108 } }, { 0x00001109, 1, { 0x00001109 } }, { 0x0000110a, 1, { 0x0000110a } }, { 0x0000110b, 1, { 0x0000110b } }, { 0x0000110c, 1, { 0x0000110c } }, { 0x0000110d, 1, { 0x0000110d } }, { 0x0000110e, 1, { 0x0000110e } }, { 0x0000110f, 1, { 0x0000110f } }, { 0x00001110, 1, { 0x00001110 } }, { 0x00001111, 1, { 0x00001111 } }, { 0x00001112, 1, { 0x00001112 } }, { 0x00001113, 1, { 0x00001113 } }, { 0x00001114, 1, { 0x00001114 } }, { 0x00001115, 1, { 0x00001115 } }, { 0x00001116, 1, { 0x00001116 } }, { 0x00001117, 1, { 0x00001117 } }, { 0x00001118, 1, { 0x00001118 } }, { 0x00001119, 1, { 0x00001119 } }, { 0x0000111a, 1, { 0x0000111a } }, { 0x0000111b, 1, { 0x0000111b } }, { 0x0000111c, 1, { 0x0000111c } }, { 0x0000111d, 1, { 0x0000111d } }, { 0x0000111e, 1, { 0x0000111e } }, { 0x0000111f, 1, { 0x0000111f } }, { 0x00001120, 1, { 0x00001120 } }, { 0x00001121, 1, { 0x00001121 } }, { 0x00001122, 1, { 0x00001122 } }, { 0x00001123, 1, { 0x00001123 } }, { 0x00001124, 1, { 0x00001124 } }, { 0x00001125, 1, { 0x00001125 } }, { 0x00001126, 1, { 0x00001126 } }, { 0x00001127, 1, { 0x00001127 } }, { 0x00001128, 1, { 0x00001128 } }, { 0x00001129, 1, { 0x00001129 } }, { 0x0000112a, 1, { 0x0000112a } }, { 0x0000112b, 1, { 0x0000112b } }, { 0x0000112c, 1, { 0x0000112c } }, { 0x0000112d, 1, { 0x0000112d } }, { 0x0000112e, 1, { 0x0000112e } }, { 0x0000112f, 1, { 0x0000112f } }, { 0x00001130, 1, { 0x00001130 } }, { 0x00001131, 1, { 0x00001131 } }, { 0x00001132, 1, { 0x00001132 } }, { 0x00001133, 1, { 0x00001133 } }, { 0x00001134, 1, { 0x00001134 } }, { 0x00001135, 1, { 0x00001135 } }, { 0x00001136, 1, { 0x00001136 } }, { 0x00001137, 1, { 0x00001137 } }, { 0x00001138, 1, { 0x00001138 } }, { 0x00001139, 1, { 0x00001139 } }, { 0x0000113a, 1, { 0x0000113a } }, { 0x0000113b, 1, { 0x0000113b } }, { 0x0000113c, 1, { 0x0000113c } }, { 0x0000113d, 1, { 0x0000113d } }, { 0x0000113e, 1, { 0x0000113e } }, { 0x0000113f, 1, { 0x0000113f } }, { 0x00001140, 1, { 0x00001140 } }, { 0x00001141, 1, { 0x00001141 } }, { 0x00001142, 1, { 0x00001142 } }, { 0x00001143, 1, { 0x00001143 } }, { 0x00001144, 1, { 0x00001144 } }, { 0x00001145, 1, { 0x00001145 } }, { 0x00001146, 1, { 0x00001146 } }, { 0x00001147, 1, { 0x00001147 } }, { 0x00001148, 1, { 0x00001148 } }, { 0x00001149, 1, { 0x00001149 } }, { 0x0000114a, 1, { 0x0000114a } }, { 0x0000114b, 1, { 0x0000114b } }, { 0x0000114c, 1, { 0x0000114c } }, { 0x0000114d, 1, { 0x0000114d } }, { 0x0000114e, 1, { 0x0000114e } }, { 0x0000114f, 1, { 0x0000114f } }, { 0x00001150, 1, { 0x00001150 } }, { 0x00001151, 1, { 0x00001151 } }, { 0x00001152, 1, { 0x00001152 } }, { 0x00001153, 1, { 0x00001153 } }, { 0x00001154, 1, { 0x00001154 } }, { 0x00001155, 1, { 0x00001155 } }, { 0x00001156, 1, { 0x00001156 } }, { 0x00001157, 1, { 0x00001157 } }, { 0x00001158, 1, { 0x00001158 } }, { 0x00001159, 1, { 0x00001159 } }, { 0x0000115a, 1, { 0x0000115a } }, { 0x0000115b, 1, { 0x0000115b } }, { 0x0000115c, 1, { 0x0000115c } }, { 0x0000115d, 1, { 0x0000115d } }, { 0x0000115e, 1, { 0x0000115e } }, { 0x0000115f, 1, { 0x0000115f } }, { 0x00001160, 1, { 0x00001160 } }, { 0x00001161, 1, { 0x00001161 } }, { 0x00001162, 1, { 0x00001162 } }, { 0x00001163, 1, { 0x00001163 } }, { 0x00001164, 1, { 0x00001164 } }, { 0x00001165, 1, { 0x00001165 } }, { 0x00001166, 1, { 0x00001166 } }, { 0x00001167, 1, { 0x00001167 } }, { 0x00001168, 1, { 0x00001168 } }, { 0x00001169, 1, { 0x00001169 } }, { 0x0000116a, 1, { 0x0000116a } }, { 0x0000116b, 1, { 0x0000116b } }, { 0x0000116c, 1, { 0x0000116c } }, { 0x0000116d, 1, { 0x0000116d } }, { 0x0000116e, 1, { 0x0000116e } }, { 0x0000116f, 1, { 0x0000116f } }, { 0x00001170, 1, { 0x00001170 } }, { 0x00001171, 1, { 0x00001171 } }, { 0x00001172, 1, { 0x00001172 } }, { 0x00001173, 1, { 0x00001173 } }, { 0x00001174, 1, { 0x00001174 } }, { 0x00001175, 1, { 0x00001175 } }, { 0x00001176, 1, { 0x00001176 } }, { 0x00001177, 1, { 0x00001177 } }, { 0x00001178, 1, { 0x00001178 } }, { 0x00001179, 1, { 0x00001179 } }, { 0x0000117a, 1, { 0x0000117a } }, { 0x0000117b, 1, { 0x0000117b } }, { 0x0000117c, 1, { 0x0000117c } }, { 0x0000117d, 1, { 0x0000117d } }, { 0x0000117e, 1, { 0x0000117e } }, { 0x0000117f, 1, { 0x0000117f } }, { 0x00001180, 1, { 0x00001180 } }, { 0x00001181, 1, { 0x00001181 } }, { 0x00001182, 1, { 0x00001182 } }, { 0x00001183, 1, { 0x00001183 } }, { 0x00001184, 1, { 0x00001184 } }, { 0x00001185, 1, { 0x00001185 } }, { 0x00001186, 1, { 0x00001186 } }, { 0x00001187, 1, { 0x00001187 } }, { 0x00001188, 1, { 0x00001188 } }, { 0x00001189, 1, { 0x00001189 } }, { 0x0000118a, 1, { 0x0000118a } }, { 0x0000118b, 1, { 0x0000118b } }, { 0x0000118c, 1, { 0x0000118c } }, { 0x0000118d, 1, { 0x0000118d } }, { 0x0000118e, 1, { 0x0000118e } }, { 0x0000118f, 1, { 0x0000118f } }, { 0x00001190, 1, { 0x00001190 } }, { 0x00001191, 1, { 0x00001191 } }, { 0x00001192, 1, { 0x00001192 } }, { 0x00001193, 1, { 0x00001193 } }, { 0x00001194, 1, { 0x00001194 } }, { 0x00001195, 1, { 0x00001195 } }, { 0x00001196, 1, { 0x00001196 } }, { 0x00001197, 1, { 0x00001197 } }, { 0x00001198, 1, { 0x00001198 } }, { 0x00001199, 1, { 0x00001199 } }, { 0x0000119a, 1, { 0x0000119a } }, { 0x0000119b, 1, { 0x0000119b } }, { 0x0000119c, 1, { 0x0000119c } }, { 0x0000119d, 1, { 0x0000119d } }, { 0x0000119e, 1, { 0x0000119e } }, { 0x0000119f, 1, { 0x0000119f } }, { 0x000011a0, 1, { 0x000011a0 } }, { 0x000011a1, 1, { 0x000011a1 } }, { 0x000011a2, 1, { 0x000011a2 } }, { 0x000011a3, 1, { 0x000011a3 } }, { 0x000011a4, 1, { 0x000011a4 } }, { 0x000011a5, 1, { 0x000011a5 } }, { 0x000011a6, 1, { 0x000011a6 } }, { 0x000011a7, 1, { 0x000011a7 } }, { 0x000011a8, 1, { 0x000011a8 } }, { 0x000011a9, 1, { 0x000011a9 } }, { 0x000011aa, 1, { 0x000011aa } }, { 0x000011ab, 1, { 0x000011ab } }, { 0x000011ac, 1, { 0x000011ac } }, { 0x000011ad, 1, { 0x000011ad } }, { 0x000011ae, 1, { 0x000011ae } }, { 0x000011af, 1, { 0x000011af } }, { 0x000011b0, 1, { 0x000011b0 } }, { 0x000011b1, 1, { 0x000011b1 } }, { 0x000011b2, 1, { 0x000011b2 } }, { 0x000011b3, 1, { 0x000011b3 } }, { 0x000011b4, 1, { 0x000011b4 } }, { 0x000011b5, 1, { 0x000011b5 } }, { 0x000011b6, 1, { 0x000011b6 } }, { 0x000011b7, 1, { 0x000011b7 } }, { 0x000011b8, 1, { 0x000011b8 } }, { 0x000011b9, 1, { 0x000011b9 } }, { 0x000011ba, 1, { 0x000011ba } }, { 0x000011bb, 1, { 0x000011bb } }, { 0x000011bc, 1, { 0x000011bc } }, { 0x000011bd, 1, { 0x000011bd } }, { 0x000011be, 1, { 0x000011be } }, { 0x000011bf, 1, { 0x000011bf } }, { 0x000011c0, 1, { 0x000011c0 } }, { 0x000011c1, 1, { 0x000011c1 } }, { 0x000011c2, 1, { 0x000011c2 } }, { 0x000011c3, 1, { 0x000011c3 } }, { 0x000011c4, 1, { 0x000011c4 } }, { 0x000011c5, 1, { 0x000011c5 } }, { 0x000011c6, 1, { 0x000011c6 } }, { 0x000011c7, 1, { 0x000011c7 } }, { 0x000011c8, 1, { 0x000011c8 } }, { 0x000011c9, 1, { 0x000011c9 } }, { 0x000011ca, 1, { 0x000011ca } }, { 0x000011cb, 1, { 0x000011cb } }, { 0x000011cc, 1, { 0x000011cc } }, { 0x000011cd, 1, { 0x000011cd } }, { 0x000011ce, 1, { 0x000011ce } }, { 0x000011cf, 1, { 0x000011cf } }, { 0x000011d0, 1, { 0x000011d0 } }, { 0x000011d1, 1, { 0x000011d1 } }, { 0x000011d2, 1, { 0x000011d2 } }, { 0x000011d3, 1, { 0x000011d3 } }, { 0x000011d4, 1, { 0x000011d4 } }, { 0x000011d5, 1, { 0x000011d5 } }, { 0x000011d6, 1, { 0x000011d6 } }, { 0x000011d7, 1, { 0x000011d7 } }, { 0x000011d8, 1, { 0x000011d8 } }, { 0x000011d9, 1, { 0x000011d9 } }, { 0x000011da, 1, { 0x000011da } }, { 0x000011db, 1, { 0x000011db } }, { 0x000011dc, 1, { 0x000011dc } }, { 0x000011dd, 1, { 0x000011dd } }, { 0x000011de, 1, { 0x000011de } }, { 0x000011df, 1, { 0x000011df } }, { 0x000011e0, 1, { 0x000011e0 } }, { 0x000011e1, 1, { 0x000011e1 } }, { 0x000011e2, 1, { 0x000011e2 } }, { 0x000011e3, 1, { 0x000011e3 } }, { 0x000011e4, 1, { 0x000011e4 } }, { 0x000011e5, 1, { 0x000011e5 } }, { 0x000011e6, 1, { 0x000011e6 } }, { 0x000011e7, 1, { 0x000011e7 } }, { 0x000011e8, 1, { 0x000011e8 } }, { 0x000011e9, 1, { 0x000011e9 } }, { 0x000011ea, 1, { 0x000011ea } }, { 0x000011eb, 1, { 0x000011eb } }, { 0x000011ec, 1, { 0x000011ec } }, { 0x000011ed, 1, { 0x000011ed } }, { 0x000011ee, 1, { 0x000011ee } }, { 0x000011ef, 1, { 0x000011ef } }, { 0x000011f0, 1, { 0x000011f0 } }, { 0x000011f1, 1, { 0x000011f1 } }, { 0x000011f2, 1, { 0x000011f2 } }, { 0x000011f3, 1, { 0x000011f3 } }, { 0x000011f4, 1, { 0x000011f4 } }, { 0x000011f5, 1, { 0x000011f5 } }, { 0x000011f6, 1, { 0x000011f6 } }, { 0x000011f7, 1, { 0x000011f7 } }, { 0x000011f8, 1, { 0x000011f8 } }, { 0x000011f9, 1, { 0x000011f9 } }, { 0x000011fa, 1, { 0x000011fa } }, { 0x000011fb, 1, { 0x000011fb } }, { 0x000011fc, 1, { 0x000011fc } }, { 0x000011fd, 1, { 0x000011fd } }, { 0x000011fe, 1, { 0x000011fe } }, { 0x000011ff, 1, { 0x000011ff } }, { 0x00001200, 1, { 0x00001200 } }, { 0x00001201, 1, { 0x00001201 } }, { 0x00001202, 1, { 0x00001202 } }, { 0x00001203, 1, { 0x00001203 } }, { 0x00001204, 1, { 0x00001204 } }, { 0x00001205, 1, { 0x00001205 } }, { 0x00001206, 1, { 0x00001206 } }, { 0x00001207, 1, { 0x00001207 } }, { 0x00001208, 1, { 0x00001208 } }, { 0x00001209, 1, { 0x00001209 } }, { 0x0000120a, 1, { 0x0000120a } }, { 0x0000120b, 1, { 0x0000120b } }, { 0x0000120c, 1, { 0x0000120c } }, { 0x0000120d, 1, { 0x0000120d } }, { 0x0000120e, 1, { 0x0000120e } }, { 0x0000120f, 1, { 0x0000120f } }, { 0x00001210, 1, { 0x00001210 } }, { 0x00001211, 1, { 0x00001211 } }, { 0x00001212, 1, { 0x00001212 } }, { 0x00001213, 1, { 0x00001213 } }, { 0x00001214, 1, { 0x00001214 } }, { 0x00001215, 1, { 0x00001215 } }, { 0x00001216, 1, { 0x00001216 } }, { 0x00001217, 1, { 0x00001217 } }, { 0x00001218, 1, { 0x00001218 } }, { 0x00001219, 1, { 0x00001219 } }, { 0x0000121a, 1, { 0x0000121a } }, { 0x0000121b, 1, { 0x0000121b } }, { 0x0000121c, 1, { 0x0000121c } }, { 0x0000121d, 1, { 0x0000121d } }, { 0x0000121e, 1, { 0x0000121e } }, { 0x0000121f, 1, { 0x0000121f } }, { 0x00001220, 1, { 0x00001220 } }, { 0x00001221, 1, { 0x00001221 } }, { 0x00001222, 1, { 0x00001222 } }, { 0x00001223, 1, { 0x00001223 } }, { 0x00001224, 1, { 0x00001224 } }, { 0x00001225, 1, { 0x00001225 } }, { 0x00001226, 1, { 0x00001226 } }, { 0x00001227, 1, { 0x00001227 } }, { 0x00001228, 1, { 0x00001228 } }, { 0x00001229, 1, { 0x00001229 } }, { 0x0000122a, 1, { 0x0000122a } }, { 0x0000122b, 1, { 0x0000122b } }, { 0x0000122c, 1, { 0x0000122c } }, { 0x0000122d, 1, { 0x0000122d } }, { 0x0000122e, 1, { 0x0000122e } }, { 0x0000122f, 1, { 0x0000122f } }, { 0x00001230, 1, { 0x00001230 } }, { 0x00001231, 1, { 0x00001231 } }, { 0x00001232, 1, { 0x00001232 } }, { 0x00001233, 1, { 0x00001233 } }, { 0x00001234, 1, { 0x00001234 } }, { 0x00001235, 1, { 0x00001235 } }, { 0x00001236, 1, { 0x00001236 } }, { 0x00001237, 1, { 0x00001237 } }, { 0x00001238, 1, { 0x00001238 } }, { 0x00001239, 1, { 0x00001239 } }, { 0x0000123a, 1, { 0x0000123a } }, { 0x0000123b, 1, { 0x0000123b } }, { 0x0000123c, 1, { 0x0000123c } }, { 0x0000123d, 1, { 0x0000123d } }, { 0x0000123e, 1, { 0x0000123e } }, { 0x0000123f, 1, { 0x0000123f } }, { 0x00001240, 1, { 0x00001240 } }, { 0x00001241, 1, { 0x00001241 } }, { 0x00001242, 1, { 0x00001242 } }, { 0x00001243, 1, { 0x00001243 } }, { 0x00001244, 1, { 0x00001244 } }, { 0x00001245, 1, { 0x00001245 } }, { 0x00001246, 1, { 0x00001246 } }, { 0x00001247, 1, { 0x00001247 } }, { 0x00001248, 1, { 0x00001248 } }, { 0x0000124a, 1, { 0x0000124a } }, { 0x0000124b, 1, { 0x0000124b } }, { 0x0000124c, 1, { 0x0000124c } }, { 0x0000124d, 1, { 0x0000124d } }, { 0x00001250, 1, { 0x00001250 } }, { 0x00001251, 1, { 0x00001251 } }, { 0x00001252, 1, { 0x00001252 } }, { 0x00001253, 1, { 0x00001253 } }, { 0x00001254, 1, { 0x00001254 } }, { 0x00001255, 1, { 0x00001255 } }, { 0x00001256, 1, { 0x00001256 } }, { 0x00001258, 1, { 0x00001258 } }, { 0x0000125a, 1, { 0x0000125a } }, { 0x0000125b, 1, { 0x0000125b } }, { 0x0000125c, 1, { 0x0000125c } }, { 0x0000125d, 1, { 0x0000125d } }, { 0x00001260, 1, { 0x00001260 } }, { 0x00001261, 1, { 0x00001261 } }, { 0x00001262, 1, { 0x00001262 } }, { 0x00001263, 1, { 0x00001263 } }, { 0x00001264, 1, { 0x00001264 } }, { 0x00001265, 1, { 0x00001265 } }, { 0x00001266, 1, { 0x00001266 } }, { 0x00001267, 1, { 0x00001267 } }, { 0x00001268, 1, { 0x00001268 } }, { 0x00001269, 1, { 0x00001269 } }, { 0x0000126a, 1, { 0x0000126a } }, { 0x0000126b, 1, { 0x0000126b } }, { 0x0000126c, 1, { 0x0000126c } }, { 0x0000126d, 1, { 0x0000126d } }, { 0x0000126e, 1, { 0x0000126e } }, { 0x0000126f, 1, { 0x0000126f } }, { 0x00001270, 1, { 0x00001270 } }, { 0x00001271, 1, { 0x00001271 } }, { 0x00001272, 1, { 0x00001272 } }, { 0x00001273, 1, { 0x00001273 } }, { 0x00001274, 1, { 0x00001274 } }, { 0x00001275, 1, { 0x00001275 } }, { 0x00001276, 1, { 0x00001276 } }, { 0x00001277, 1, { 0x00001277 } }, { 0x00001278, 1, { 0x00001278 } }, { 0x00001279, 1, { 0x00001279 } }, { 0x0000127a, 1, { 0x0000127a } }, { 0x0000127b, 1, { 0x0000127b } }, { 0x0000127c, 1, { 0x0000127c } }, { 0x0000127d, 1, { 0x0000127d } }, { 0x0000127e, 1, { 0x0000127e } }, { 0x0000127f, 1, { 0x0000127f } }, { 0x00001280, 1, { 0x00001280 } }, { 0x00001281, 1, { 0x00001281 } }, { 0x00001282, 1, { 0x00001282 } }, { 0x00001283, 1, { 0x00001283 } }, { 0x00001284, 1, { 0x00001284 } }, { 0x00001285, 1, { 0x00001285 } }, { 0x00001286, 1, { 0x00001286 } }, { 0x00001287, 1, { 0x00001287 } }, { 0x00001288, 1, { 0x00001288 } }, { 0x0000128a, 1, { 0x0000128a } }, { 0x0000128b, 1, { 0x0000128b } }, { 0x0000128c, 1, { 0x0000128c } }, { 0x0000128d, 1, { 0x0000128d } }, { 0x00001290, 1, { 0x00001290 } }, { 0x00001291, 1, { 0x00001291 } }, { 0x00001292, 1, { 0x00001292 } }, { 0x00001293, 1, { 0x00001293 } }, { 0x00001294, 1, { 0x00001294 } }, { 0x00001295, 1, { 0x00001295 } }, { 0x00001296, 1, { 0x00001296 } }, { 0x00001297, 1, { 0x00001297 } }, { 0x00001298, 1, { 0x00001298 } }, { 0x00001299, 1, { 0x00001299 } }, { 0x0000129a, 1, { 0x0000129a } }, { 0x0000129b, 1, { 0x0000129b } }, { 0x0000129c, 1, { 0x0000129c } }, { 0x0000129d, 1, { 0x0000129d } }, { 0x0000129e, 1, { 0x0000129e } }, { 0x0000129f, 1, { 0x0000129f } }, { 0x000012a0, 1, { 0x000012a0 } }, { 0x000012a1, 1, { 0x000012a1 } }, { 0x000012a2, 1, { 0x000012a2 } }, { 0x000012a3, 1, { 0x000012a3 } }, { 0x000012a4, 1, { 0x000012a4 } }, { 0x000012a5, 1, { 0x000012a5 } }, { 0x000012a6, 1, { 0x000012a6 } }, { 0x000012a7, 1, { 0x000012a7 } }, { 0x000012a8, 1, { 0x000012a8 } }, { 0x000012a9, 1, { 0x000012a9 } }, { 0x000012aa, 1, { 0x000012aa } }, { 0x000012ab, 1, { 0x000012ab } }, { 0x000012ac, 1, { 0x000012ac } }, { 0x000012ad, 1, { 0x000012ad } }, { 0x000012ae, 1, { 0x000012ae } }, { 0x000012af, 1, { 0x000012af } }, { 0x000012b0, 1, { 0x000012b0 } }, { 0x000012b2, 1, { 0x000012b2 } }, { 0x000012b3, 1, { 0x000012b3 } }, { 0x000012b4, 1, { 0x000012b4 } }, { 0x000012b5, 1, { 0x000012b5 } }, { 0x000012b8, 1, { 0x000012b8 } }, { 0x000012b9, 1, { 0x000012b9 } }, { 0x000012ba, 1, { 0x000012ba } }, { 0x000012bb, 1, { 0x000012bb } }, { 0x000012bc, 1, { 0x000012bc } }, { 0x000012bd, 1, { 0x000012bd } }, { 0x000012be, 1, { 0x000012be } }, { 0x000012c0, 1, { 0x000012c0 } }, { 0x000012c2, 1, { 0x000012c2 } }, { 0x000012c3, 1, { 0x000012c3 } }, { 0x000012c4, 1, { 0x000012c4 } }, { 0x000012c5, 1, { 0x000012c5 } }, { 0x000012c8, 1, { 0x000012c8 } }, { 0x000012c9, 1, { 0x000012c9 } }, { 0x000012ca, 1, { 0x000012ca } }, { 0x000012cb, 1, { 0x000012cb } }, { 0x000012cc, 1, { 0x000012cc } }, { 0x000012cd, 1, { 0x000012cd } }, { 0x000012ce, 1, { 0x000012ce } }, { 0x000012cf, 1, { 0x000012cf } }, { 0x000012d0, 1, { 0x000012d0 } }, { 0x000012d1, 1, { 0x000012d1 } }, { 0x000012d2, 1, { 0x000012d2 } }, { 0x000012d3, 1, { 0x000012d3 } }, { 0x000012d4, 1, { 0x000012d4 } }, { 0x000012d5, 1, { 0x000012d5 } }, { 0x000012d6, 1, { 0x000012d6 } }, { 0x000012d8, 1, { 0x000012d8 } }, { 0x000012d9, 1, { 0x000012d9 } }, { 0x000012da, 1, { 0x000012da } }, { 0x000012db, 1, { 0x000012db } }, { 0x000012dc, 1, { 0x000012dc } }, { 0x000012dd, 1, { 0x000012dd } }, { 0x000012de, 1, { 0x000012de } }, { 0x000012df, 1, { 0x000012df } }, { 0x000012e0, 1, { 0x000012e0 } }, { 0x000012e1, 1, { 0x000012e1 } }, { 0x000012e2, 1, { 0x000012e2 } }, { 0x000012e3, 1, { 0x000012e3 } }, { 0x000012e4, 1, { 0x000012e4 } }, { 0x000012e5, 1, { 0x000012e5 } }, { 0x000012e6, 1, { 0x000012e6 } }, { 0x000012e7, 1, { 0x000012e7 } }, { 0x000012e8, 1, { 0x000012e8 } }, { 0x000012e9, 1, { 0x000012e9 } }, { 0x000012ea, 1, { 0x000012ea } }, { 0x000012eb, 1, { 0x000012eb } }, { 0x000012ec, 1, { 0x000012ec } }, { 0x000012ed, 1, { 0x000012ed } }, { 0x000012ee, 1, { 0x000012ee } }, { 0x000012ef, 1, { 0x000012ef } }, { 0x000012f0, 1, { 0x000012f0 } }, { 0x000012f1, 1, { 0x000012f1 } }, { 0x000012f2, 1, { 0x000012f2 } }, { 0x000012f3, 1, { 0x000012f3 } }, { 0x000012f4, 1, { 0x000012f4 } }, { 0x000012f5, 1, { 0x000012f5 } }, { 0x000012f6, 1, { 0x000012f6 } }, { 0x000012f7, 1, { 0x000012f7 } }, { 0x000012f8, 1, { 0x000012f8 } }, { 0x000012f9, 1, { 0x000012f9 } }, { 0x000012fa, 1, { 0x000012fa } }, { 0x000012fb, 1, { 0x000012fb } }, { 0x000012fc, 1, { 0x000012fc } }, { 0x000012fd, 1, { 0x000012fd } }, { 0x000012fe, 1, { 0x000012fe } }, { 0x000012ff, 1, { 0x000012ff } }, { 0x00001300, 1, { 0x00001300 } }, { 0x00001301, 1, { 0x00001301 } }, { 0x00001302, 1, { 0x00001302 } }, { 0x00001303, 1, { 0x00001303 } }, { 0x00001304, 1, { 0x00001304 } }, { 0x00001305, 1, { 0x00001305 } }, { 0x00001306, 1, { 0x00001306 } }, { 0x00001307, 1, { 0x00001307 } }, { 0x00001308, 1, { 0x00001308 } }, { 0x00001309, 1, { 0x00001309 } }, { 0x0000130a, 1, { 0x0000130a } }, { 0x0000130b, 1, { 0x0000130b } }, { 0x0000130c, 1, { 0x0000130c } }, { 0x0000130d, 1, { 0x0000130d } }, { 0x0000130e, 1, { 0x0000130e } }, { 0x0000130f, 1, { 0x0000130f } }, { 0x00001310, 1, { 0x00001310 } }, { 0x00001312, 1, { 0x00001312 } }, { 0x00001313, 1, { 0x00001313 } }, { 0x00001314, 1, { 0x00001314 } }, { 0x00001315, 1, { 0x00001315 } }, { 0x00001318, 1, { 0x00001318 } }, { 0x00001319, 1, { 0x00001319 } }, { 0x0000131a, 1, { 0x0000131a } }, { 0x0000131b, 1, { 0x0000131b } }, { 0x0000131c, 1, { 0x0000131c } }, { 0x0000131d, 1, { 0x0000131d } }, { 0x0000131e, 1, { 0x0000131e } }, { 0x0000131f, 1, { 0x0000131f } }, { 0x00001320, 1, { 0x00001320 } }, { 0x00001321, 1, { 0x00001321 } }, { 0x00001322, 1, { 0x00001322 } }, { 0x00001323, 1, { 0x00001323 } }, { 0x00001324, 1, { 0x00001324 } }, { 0x00001325, 1, { 0x00001325 } }, { 0x00001326, 1, { 0x00001326 } }, { 0x00001327, 1, { 0x00001327 } }, { 0x00001328, 1, { 0x00001328 } }, { 0x00001329, 1, { 0x00001329 } }, { 0x0000132a, 1, { 0x0000132a } }, { 0x0000132b, 1, { 0x0000132b } }, { 0x0000132c, 1, { 0x0000132c } }, { 0x0000132d, 1, { 0x0000132d } }, { 0x0000132e, 1, { 0x0000132e } }, { 0x0000132f, 1, { 0x0000132f } }, { 0x00001330, 1, { 0x00001330 } }, { 0x00001331, 1, { 0x00001331 } }, { 0x00001332, 1, { 0x00001332 } }, { 0x00001333, 1, { 0x00001333 } }, { 0x00001334, 1, { 0x00001334 } }, { 0x00001335, 1, { 0x00001335 } }, { 0x00001336, 1, { 0x00001336 } }, { 0x00001337, 1, { 0x00001337 } }, { 0x00001338, 1, { 0x00001338 } }, { 0x00001339, 1, { 0x00001339 } }, { 0x0000133a, 1, { 0x0000133a } }, { 0x0000133b, 1, { 0x0000133b } }, { 0x0000133c, 1, { 0x0000133c } }, { 0x0000133d, 1, { 0x0000133d } }, { 0x0000133e, 1, { 0x0000133e } }, { 0x0000133f, 1, { 0x0000133f } }, { 0x00001340, 1, { 0x00001340 } }, { 0x00001341, 1, { 0x00001341 } }, { 0x00001342, 1, { 0x00001342 } }, { 0x00001343, 1, { 0x00001343 } }, { 0x00001344, 1, { 0x00001344 } }, { 0x00001345, 1, { 0x00001345 } }, { 0x00001346, 1, { 0x00001346 } }, { 0x00001347, 1, { 0x00001347 } }, { 0x00001348, 1, { 0x00001348 } }, { 0x00001349, 1, { 0x00001349 } }, { 0x0000134a, 1, { 0x0000134a } }, { 0x0000134b, 1, { 0x0000134b } }, { 0x0000134c, 1, { 0x0000134c } }, { 0x0000134d, 1, { 0x0000134d } }, { 0x0000134e, 1, { 0x0000134e } }, { 0x0000134f, 1, { 0x0000134f } }, { 0x00001350, 1, { 0x00001350 } }, { 0x00001351, 1, { 0x00001351 } }, { 0x00001352, 1, { 0x00001352 } }, { 0x00001353, 1, { 0x00001353 } }, { 0x00001354, 1, { 0x00001354 } }, { 0x00001355, 1, { 0x00001355 } }, { 0x00001356, 1, { 0x00001356 } }, { 0x00001357, 1, { 0x00001357 } }, { 0x00001358, 1, { 0x00001358 } }, { 0x00001359, 1, { 0x00001359 } }, { 0x0000135a, 1, { 0x0000135a } }, { 0x0000135d, 1, { 0x0000135d } }, { 0x0000135e, 1, { 0x0000135e } }, { 0x0000135f, 1, { 0x0000135f } }, { 0x00001360, 1, { 0x00001360 } }, { 0x00001361, 1, { 0x00001361 } }, { 0x00001362, 1, { 0x00001362 } }, { 0x00001363, 1, { 0x00001363 } }, { 0x00001364, 1, { 0x00001364 } }, { 0x00001365, 1, { 0x00001365 } }, { 0x00001366, 1, { 0x00001366 } }, { 0x00001367, 1, { 0x00001367 } }, { 0x00001368, 1, { 0x00001368 } }, { 0x00001369, 1, { 0x00001369 } }, { 0x0000136a, 1, { 0x0000136a } }, { 0x0000136b, 1, { 0x0000136b } }, { 0x0000136c, 1, { 0x0000136c } }, { 0x0000136d, 1, { 0x0000136d } }, { 0x0000136e, 1, { 0x0000136e } }, { 0x0000136f, 1, { 0x0000136f } }, { 0x00001370, 1, { 0x00001370 } }, { 0x00001371, 1, { 0x00001371 } }, { 0x00001372, 1, { 0x00001372 } }, { 0x00001373, 1, { 0x00001373 } }, { 0x00001374, 1, { 0x00001374 } }, { 0x00001375, 1, { 0x00001375 } }, { 0x00001376, 1, { 0x00001376 } }, { 0x00001377, 1, { 0x00001377 } }, { 0x00001378, 1, { 0x00001378 } }, { 0x00001379, 1, { 0x00001379 } }, { 0x0000137a, 1, { 0x0000137a } }, { 0x0000137b, 1, { 0x0000137b } }, { 0x0000137c, 1, { 0x0000137c } }, { 0x00001380, 1, { 0x00001380 } }, { 0x00001381, 1, { 0x00001381 } }, { 0x00001382, 1, { 0x00001382 } }, { 0x00001383, 1, { 0x00001383 } }, { 0x00001384, 1, { 0x00001384 } }, { 0x00001385, 1, { 0x00001385 } }, { 0x00001386, 1, { 0x00001386 } }, { 0x00001387, 1, { 0x00001387 } }, { 0x00001388, 1, { 0x00001388 } }, { 0x00001389, 1, { 0x00001389 } }, { 0x0000138a, 1, { 0x0000138a } }, { 0x0000138b, 1, { 0x0000138b } }, { 0x0000138c, 1, { 0x0000138c } }, { 0x0000138d, 1, { 0x0000138d } }, { 0x0000138e, 1, { 0x0000138e } }, { 0x0000138f, 1, { 0x0000138f } }, { 0x00001390, 1, { 0x00001390 } }, { 0x00001391, 1, { 0x00001391 } }, { 0x00001392, 1, { 0x00001392 } }, { 0x00001393, 1, { 0x00001393 } }, { 0x00001394, 1, { 0x00001394 } }, { 0x00001395, 1, { 0x00001395 } }, { 0x00001396, 1, { 0x00001396 } }, { 0x00001397, 1, { 0x00001397 } }, { 0x00001398, 1, { 0x00001398 } }, { 0x00001399, 1, { 0x00001399 } }, { 0x000013a0, 1, { 0x000013a0 } }, { 0x000013a1, 1, { 0x000013a1 } }, { 0x000013a2, 1, { 0x000013a2 } }, { 0x000013a3, 1, { 0x000013a3 } }, { 0x000013a4, 1, { 0x000013a4 } }, { 0x000013a5, 1, { 0x000013a5 } }, { 0x000013a6, 1, { 0x000013a6 } }, { 0x000013a7, 1, { 0x000013a7 } }, { 0x000013a8, 1, { 0x000013a8 } }, { 0x000013a9, 1, { 0x000013a9 } }, { 0x000013aa, 1, { 0x000013aa } }, { 0x000013ab, 1, { 0x000013ab } }, { 0x000013ac, 1, { 0x000013ac } }, { 0x000013ad, 1, { 0x000013ad } }, { 0x000013ae, 1, { 0x000013ae } }, { 0x000013af, 1, { 0x000013af } }, { 0x000013b0, 1, { 0x000013b0 } }, { 0x000013b1, 1, { 0x000013b1 } }, { 0x000013b2, 1, { 0x000013b2 } }, { 0x000013b3, 1, { 0x000013b3 } }, { 0x000013b4, 1, { 0x000013b4 } }, { 0x000013b5, 1, { 0x000013b5 } }, { 0x000013b6, 1, { 0x000013b6 } }, { 0x000013b7, 1, { 0x000013b7 } }, { 0x000013b8, 1, { 0x000013b8 } }, { 0x000013b9, 1, { 0x000013b9 } }, { 0x000013ba, 1, { 0x000013ba } }, { 0x000013bb, 1, { 0x000013bb } }, { 0x000013bc, 1, { 0x000013bc } }, { 0x000013bd, 1, { 0x000013bd } }, { 0x000013be, 1, { 0x000013be } }, { 0x000013bf, 1, { 0x000013bf } }, { 0x000013c0, 1, { 0x000013c0 } }, { 0x000013c1, 1, { 0x000013c1 } }, { 0x000013c2, 1, { 0x000013c2 } }, { 0x000013c3, 1, { 0x000013c3 } }, { 0x000013c4, 1, { 0x000013c4 } }, { 0x000013c5, 1, { 0x000013c5 } }, { 0x000013c6, 1, { 0x000013c6 } }, { 0x000013c7, 1, { 0x000013c7 } }, { 0x000013c8, 1, { 0x000013c8 } }, { 0x000013c9, 1, { 0x000013c9 } }, { 0x000013ca, 1, { 0x000013ca } }, { 0x000013cb, 1, { 0x000013cb } }, { 0x000013cc, 1, { 0x000013cc } }, { 0x000013cd, 1, { 0x000013cd } }, { 0x000013ce, 1, { 0x000013ce } }, { 0x000013cf, 1, { 0x000013cf } }, { 0x000013d0, 1, { 0x000013d0 } }, { 0x000013d1, 1, { 0x000013d1 } }, { 0x000013d2, 1, { 0x000013d2 } }, { 0x000013d3, 1, { 0x000013d3 } }, { 0x000013d4, 1, { 0x000013d4 } }, { 0x000013d5, 1, { 0x000013d5 } }, { 0x000013d6, 1, { 0x000013d6 } }, { 0x000013d7, 1, { 0x000013d7 } }, { 0x000013d8, 1, { 0x000013d8 } }, { 0x000013d9, 1, { 0x000013d9 } }, { 0x000013da, 1, { 0x000013da } }, { 0x000013db, 1, { 0x000013db } }, { 0x000013dc, 1, { 0x000013dc } }, { 0x000013dd, 1, { 0x000013dd } }, { 0x000013de, 1, { 0x000013de } }, { 0x000013df, 1, { 0x000013df } }, { 0x000013e0, 1, { 0x000013e0 } }, { 0x000013e1, 1, { 0x000013e1 } }, { 0x000013e2, 1, { 0x000013e2 } }, { 0x000013e3, 1, { 0x000013e3 } }, { 0x000013e4, 1, { 0x000013e4 } }, { 0x000013e5, 1, { 0x000013e5 } }, { 0x000013e6, 1, { 0x000013e6 } }, { 0x000013e7, 1, { 0x000013e7 } }, { 0x000013e8, 1, { 0x000013e8 } }, { 0x000013e9, 1, { 0x000013e9 } }, { 0x000013ea, 1, { 0x000013ea } }, { 0x000013eb, 1, { 0x000013eb } }, { 0x000013ec, 1, { 0x000013ec } }, { 0x000013ed, 1, { 0x000013ed } }, { 0x000013ee, 1, { 0x000013ee } }, { 0x000013ef, 1, { 0x000013ef } }, { 0x000013f0, 1, { 0x000013f0 } }, { 0x000013f1, 1, { 0x000013f1 } }, { 0x000013f2, 1, { 0x000013f2 } }, { 0x000013f3, 1, { 0x000013f3 } }, { 0x000013f4, 1, { 0x000013f4 } }, { 0x000013f5, 1, { 0x000013f5 } }, { 0x000013f8, 1, { 0x000013f8 } }, { 0x000013f9, 1, { 0x000013f9 } }, { 0x000013fa, 1, { 0x000013fa } }, { 0x000013fb, 1, { 0x000013fb } }, { 0x000013fc, 1, { 0x000013fc } }, { 0x000013fd, 1, { 0x000013fd } }, { 0x00001400, 1, { 0x00001400 } }, { 0x00001401, 1, { 0x00001401 } }, { 0x00001402, 1, { 0x00001402 } }, { 0x00001403, 1, { 0x00001403 } }, { 0x00001404, 1, { 0x00001404 } }, { 0x00001405, 1, { 0x00001405 } }, { 0x00001406, 1, { 0x00001406 } }, { 0x00001407, 1, { 0x00001407 } }, { 0x00001408, 1, { 0x00001408 } }, { 0x00001409, 1, { 0x00001409 } }, { 0x0000140a, 1, { 0x0000140a } }, { 0x0000140b, 1, { 0x0000140b } }, { 0x0000140c, 1, { 0x0000140c } }, { 0x0000140d, 1, { 0x0000140d } }, { 0x0000140e, 1, { 0x0000140e } }, { 0x0000140f, 1, { 0x0000140f } }, { 0x00001410, 1, { 0x00001410 } }, { 0x00001411, 1, { 0x00001411 } }, { 0x00001412, 1, { 0x00001412 } }, { 0x00001413, 1, { 0x00001413 } }, { 0x00001414, 1, { 0x00001414 } }, { 0x00001415, 1, { 0x00001415 } }, { 0x00001416, 1, { 0x00001416 } }, { 0x00001417, 1, { 0x00001417 } }, { 0x00001418, 1, { 0x00001418 } }, { 0x00001419, 1, { 0x00001419 } }, { 0x0000141a, 1, { 0x0000141a } }, { 0x0000141b, 1, { 0x0000141b } }, { 0x0000141c, 1, { 0x0000141c } }, { 0x0000141d, 1, { 0x0000141d } }, { 0x0000141e, 1, { 0x0000141e } }, { 0x0000141f, 1, { 0x0000141f } }, { 0x00001420, 1, { 0x00001420 } }, { 0x00001421, 1, { 0x00001421 } }, { 0x00001422, 1, { 0x00001422 } }, { 0x00001423, 1, { 0x00001423 } }, { 0x00001424, 1, { 0x00001424 } }, { 0x00001425, 1, { 0x00001425 } }, { 0x00001426, 1, { 0x00001426 } }, { 0x00001427, 1, { 0x00001427 } }, { 0x00001428, 1, { 0x00001428 } }, { 0x00001429, 1, { 0x00001429 } }, { 0x0000142a, 1, { 0x0000142a } }, { 0x0000142b, 1, { 0x0000142b } }, { 0x0000142c, 1, { 0x0000142c } }, { 0x0000142d, 1, { 0x0000142d } }, { 0x0000142e, 1, { 0x0000142e } }, { 0x0000142f, 1, { 0x0000142f } }, { 0x00001430, 1, { 0x00001430 } }, { 0x00001431, 1, { 0x00001431 } }, { 0x00001432, 1, { 0x00001432 } }, { 0x00001433, 1, { 0x00001433 } }, { 0x00001434, 1, { 0x00001434 } }, { 0x00001435, 1, { 0x00001435 } }, { 0x00001436, 1, { 0x00001436 } }, { 0x00001437, 1, { 0x00001437 } }, { 0x00001438, 1, { 0x00001438 } }, { 0x00001439, 1, { 0x00001439 } }, { 0x0000143a, 1, { 0x0000143a } }, { 0x0000143b, 1, { 0x0000143b } }, { 0x0000143c, 1, { 0x0000143c } }, { 0x0000143d, 1, { 0x0000143d } }, { 0x0000143e, 1, { 0x0000143e } }, { 0x0000143f, 1, { 0x0000143f } }, { 0x00001440, 1, { 0x00001440 } }, { 0x00001441, 1, { 0x00001441 } }, { 0x00001442, 1, { 0x00001442 } }, { 0x00001443, 1, { 0x00001443 } }, { 0x00001444, 1, { 0x00001444 } }, { 0x00001445, 1, { 0x00001445 } }, { 0x00001446, 1, { 0x00001446 } }, { 0x00001447, 1, { 0x00001447 } }, { 0x00001448, 1, { 0x00001448 } }, { 0x00001449, 1, { 0x00001449 } }, { 0x0000144a, 1, { 0x0000144a } }, { 0x0000144b, 1, { 0x0000144b } }, { 0x0000144c, 1, { 0x0000144c } }, { 0x0000144d, 1, { 0x0000144d } }, { 0x0000144e, 1, { 0x0000144e } }, { 0x0000144f, 1, { 0x0000144f } }, { 0x00001450, 1, { 0x00001450 } }, { 0x00001451, 1, { 0x00001451 } }, { 0x00001452, 1, { 0x00001452 } }, { 0x00001453, 1, { 0x00001453 } }, { 0x00001454, 1, { 0x00001454 } }, { 0x00001455, 1, { 0x00001455 } }, { 0x00001456, 1, { 0x00001456 } }, { 0x00001457, 1, { 0x00001457 } }, { 0x00001458, 1, { 0x00001458 } }, { 0x00001459, 1, { 0x00001459 } }, { 0x0000145a, 1, { 0x0000145a } }, { 0x0000145b, 1, { 0x0000145b } }, { 0x0000145c, 1, { 0x0000145c } }, { 0x0000145d, 1, { 0x0000145d } }, { 0x0000145e, 1, { 0x0000145e } }, { 0x0000145f, 1, { 0x0000145f } }, { 0x00001460, 1, { 0x00001460 } }, { 0x00001461, 1, { 0x00001461 } }, { 0x00001462, 1, { 0x00001462 } }, { 0x00001463, 1, { 0x00001463 } }, { 0x00001464, 1, { 0x00001464 } }, { 0x00001465, 1, { 0x00001465 } }, { 0x00001466, 1, { 0x00001466 } }, { 0x00001467, 1, { 0x00001467 } }, { 0x00001468, 1, { 0x00001468 } }, { 0x00001469, 1, { 0x00001469 } }, { 0x0000146a, 1, { 0x0000146a } }, { 0x0000146b, 1, { 0x0000146b } }, { 0x0000146c, 1, { 0x0000146c } }, { 0x0000146d, 1, { 0x0000146d } }, { 0x0000146e, 1, { 0x0000146e } }, { 0x0000146f, 1, { 0x0000146f } }, { 0x00001470, 1, { 0x00001470 } }, { 0x00001471, 1, { 0x00001471 } }, { 0x00001472, 1, { 0x00001472 } }, { 0x00001473, 1, { 0x00001473 } }, { 0x00001474, 1, { 0x00001474 } }, { 0x00001475, 1, { 0x00001475 } }, { 0x00001476, 1, { 0x00001476 } }, { 0x00001477, 1, { 0x00001477 } }, { 0x00001478, 1, { 0x00001478 } }, { 0x00001479, 1, { 0x00001479 } }, { 0x0000147a, 1, { 0x0000147a } }, { 0x0000147b, 1, { 0x0000147b } }, { 0x0000147c, 1, { 0x0000147c } }, { 0x0000147d, 1, { 0x0000147d } }, { 0x0000147e, 1, { 0x0000147e } }, { 0x0000147f, 1, { 0x0000147f } }, { 0x00001480, 1, { 0x00001480 } }, { 0x00001481, 1, { 0x00001481 } }, { 0x00001482, 1, { 0x00001482 } }, { 0x00001483, 1, { 0x00001483 } }, { 0x00001484, 1, { 0x00001484 } }, { 0x00001485, 1, { 0x00001485 } }, { 0x00001486, 1, { 0x00001486 } }, { 0x00001487, 1, { 0x00001487 } }, { 0x00001488, 1, { 0x00001488 } }, { 0x00001489, 1, { 0x00001489 } }, { 0x0000148a, 1, { 0x0000148a } }, { 0x0000148b, 1, { 0x0000148b } }, { 0x0000148c, 1, { 0x0000148c } }, { 0x0000148d, 1, { 0x0000148d } }, { 0x0000148e, 1, { 0x0000148e } }, { 0x0000148f, 1, { 0x0000148f } }, { 0x00001490, 1, { 0x00001490 } }, { 0x00001491, 1, { 0x00001491 } }, { 0x00001492, 1, { 0x00001492 } }, { 0x00001493, 1, { 0x00001493 } }, { 0x00001494, 1, { 0x00001494 } }, { 0x00001495, 1, { 0x00001495 } }, { 0x00001496, 1, { 0x00001496 } }, { 0x00001497, 1, { 0x00001497 } }, { 0x00001498, 1, { 0x00001498 } }, { 0x00001499, 1, { 0x00001499 } }, { 0x0000149a, 1, { 0x0000149a } }, { 0x0000149b, 1, { 0x0000149b } }, { 0x0000149c, 1, { 0x0000149c } }, { 0x0000149d, 1, { 0x0000149d } }, { 0x0000149e, 1, { 0x0000149e } }, { 0x0000149f, 1, { 0x0000149f } }, { 0x000014a0, 1, { 0x000014a0 } }, { 0x000014a1, 1, { 0x000014a1 } }, { 0x000014a2, 1, { 0x000014a2 } }, { 0x000014a3, 1, { 0x000014a3 } }, { 0x000014a4, 1, { 0x000014a4 } }, { 0x000014a5, 1, { 0x000014a5 } }, { 0x000014a6, 1, { 0x000014a6 } }, { 0x000014a7, 1, { 0x000014a7 } }, { 0x000014a8, 1, { 0x000014a8 } }, { 0x000014a9, 1, { 0x000014a9 } }, { 0x000014aa, 1, { 0x000014aa } }, { 0x000014ab, 1, { 0x000014ab } }, { 0x000014ac, 1, { 0x000014ac } }, { 0x000014ad, 1, { 0x000014ad } }, { 0x000014ae, 1, { 0x000014ae } }, { 0x000014af, 1, { 0x000014af } }, { 0x000014b0, 1, { 0x000014b0 } }, { 0x000014b1, 1, { 0x000014b1 } }, { 0x000014b2, 1, { 0x000014b2 } }, { 0x000014b3, 1, { 0x000014b3 } }, { 0x000014b4, 1, { 0x000014b4 } }, { 0x000014b5, 1, { 0x000014b5 } }, { 0x000014b6, 1, { 0x000014b6 } }, { 0x000014b7, 1, { 0x000014b7 } }, { 0x000014b8, 1, { 0x000014b8 } }, { 0x000014b9, 1, { 0x000014b9 } }, { 0x000014ba, 1, { 0x000014ba } }, { 0x000014bb, 1, { 0x000014bb } }, { 0x000014bc, 1, { 0x000014bc } }, { 0x000014bd, 1, { 0x000014bd } }, { 0x000014be, 1, { 0x000014be } }, { 0x000014bf, 1, { 0x000014bf } }, { 0x000014c0, 1, { 0x000014c0 } }, { 0x000014c1, 1, { 0x000014c1 } }, { 0x000014c2, 1, { 0x000014c2 } }, { 0x000014c3, 1, { 0x000014c3 } }, { 0x000014c4, 1, { 0x000014c4 } }, { 0x000014c5, 1, { 0x000014c5 } }, { 0x000014c6, 1, { 0x000014c6 } }, { 0x000014c7, 1, { 0x000014c7 } }, { 0x000014c8, 1, { 0x000014c8 } }, { 0x000014c9, 1, { 0x000014c9 } }, { 0x000014ca, 1, { 0x000014ca } }, { 0x000014cb, 1, { 0x000014cb } }, { 0x000014cc, 1, { 0x000014cc } }, { 0x000014cd, 1, { 0x000014cd } }, { 0x000014ce, 1, { 0x000014ce } }, { 0x000014cf, 1, { 0x000014cf } }, { 0x000014d0, 1, { 0x000014d0 } }, { 0x000014d1, 1, { 0x000014d1 } }, { 0x000014d2, 1, { 0x000014d2 } }, { 0x000014d3, 1, { 0x000014d3 } }, { 0x000014d4, 1, { 0x000014d4 } }, { 0x000014d5, 1, { 0x000014d5 } }, { 0x000014d6, 1, { 0x000014d6 } }, { 0x000014d7, 1, { 0x000014d7 } }, { 0x000014d8, 1, { 0x000014d8 } }, { 0x000014d9, 1, { 0x000014d9 } }, { 0x000014da, 1, { 0x000014da } }, { 0x000014db, 1, { 0x000014db } }, { 0x000014dc, 1, { 0x000014dc } }, { 0x000014dd, 1, { 0x000014dd } }, { 0x000014de, 1, { 0x000014de } }, { 0x000014df, 1, { 0x000014df } }, { 0x000014e0, 1, { 0x000014e0 } }, { 0x000014e1, 1, { 0x000014e1 } }, { 0x000014e2, 1, { 0x000014e2 } }, { 0x000014e3, 1, { 0x000014e3 } }, { 0x000014e4, 1, { 0x000014e4 } }, { 0x000014e5, 1, { 0x000014e5 } }, { 0x000014e6, 1, { 0x000014e6 } }, { 0x000014e7, 1, { 0x000014e7 } }, { 0x000014e8, 1, { 0x000014e8 } }, { 0x000014e9, 1, { 0x000014e9 } }, { 0x000014ea, 1, { 0x000014ea } }, { 0x000014eb, 1, { 0x000014eb } }, { 0x000014ec, 1, { 0x000014ec } }, { 0x000014ed, 1, { 0x000014ed } }, { 0x000014ee, 1, { 0x000014ee } }, { 0x000014ef, 1, { 0x000014ef } }, { 0x000014f0, 1, { 0x000014f0 } }, { 0x000014f1, 1, { 0x000014f1 } }, { 0x000014f2, 1, { 0x000014f2 } }, { 0x000014f3, 1, { 0x000014f3 } }, { 0x000014f4, 1, { 0x000014f4 } }, { 0x000014f5, 1, { 0x000014f5 } }, { 0x000014f6, 1, { 0x000014f6 } }, { 0x000014f7, 1, { 0x000014f7 } }, { 0x000014f8, 1, { 0x000014f8 } }, { 0x000014f9, 1, { 0x000014f9 } }, { 0x000014fa, 1, { 0x000014fa } }, { 0x000014fb, 1, { 0x000014fb } }, { 0x000014fc, 1, { 0x000014fc } }, { 0x000014fd, 1, { 0x000014fd } }, { 0x000014fe, 1, { 0x000014fe } }, { 0x000014ff, 1, { 0x000014ff } }, { 0x00001500, 1, { 0x00001500 } }, { 0x00001501, 1, { 0x00001501 } }, { 0x00001502, 1, { 0x00001502 } }, { 0x00001503, 1, { 0x00001503 } }, { 0x00001504, 1, { 0x00001504 } }, { 0x00001505, 1, { 0x00001505 } }, { 0x00001506, 1, { 0x00001506 } }, { 0x00001507, 1, { 0x00001507 } }, { 0x00001508, 1, { 0x00001508 } }, { 0x00001509, 1, { 0x00001509 } }, { 0x0000150a, 1, { 0x0000150a } }, { 0x0000150b, 1, { 0x0000150b } }, { 0x0000150c, 1, { 0x0000150c } }, { 0x0000150d, 1, { 0x0000150d } }, { 0x0000150e, 1, { 0x0000150e } }, { 0x0000150f, 1, { 0x0000150f } }, { 0x00001510, 1, { 0x00001510 } }, { 0x00001511, 1, { 0x00001511 } }, { 0x00001512, 1, { 0x00001512 } }, { 0x00001513, 1, { 0x00001513 } }, { 0x00001514, 1, { 0x00001514 } }, { 0x00001515, 1, { 0x00001515 } }, { 0x00001516, 1, { 0x00001516 } }, { 0x00001517, 1, { 0x00001517 } }, { 0x00001518, 1, { 0x00001518 } }, { 0x00001519, 1, { 0x00001519 } }, { 0x0000151a, 1, { 0x0000151a } }, { 0x0000151b, 1, { 0x0000151b } }, { 0x0000151c, 1, { 0x0000151c } }, { 0x0000151d, 1, { 0x0000151d } }, { 0x0000151e, 1, { 0x0000151e } }, { 0x0000151f, 1, { 0x0000151f } }, { 0x00001520, 1, { 0x00001520 } }, { 0x00001521, 1, { 0x00001521 } }, { 0x00001522, 1, { 0x00001522 } }, { 0x00001523, 1, { 0x00001523 } }, { 0x00001524, 1, { 0x00001524 } }, { 0x00001525, 1, { 0x00001525 } }, { 0x00001526, 1, { 0x00001526 } }, { 0x00001527, 1, { 0x00001527 } }, { 0x00001528, 1, { 0x00001528 } }, { 0x00001529, 1, { 0x00001529 } }, { 0x0000152a, 1, { 0x0000152a } }, { 0x0000152b, 1, { 0x0000152b } }, { 0x0000152c, 1, { 0x0000152c } }, { 0x0000152d, 1, { 0x0000152d } }, { 0x0000152e, 1, { 0x0000152e } }, { 0x0000152f, 1, { 0x0000152f } }, { 0x00001530, 1, { 0x00001530 } }, { 0x00001531, 1, { 0x00001531 } }, { 0x00001532, 1, { 0x00001532 } }, { 0x00001533, 1, { 0x00001533 } }, { 0x00001534, 1, { 0x00001534 } }, { 0x00001535, 1, { 0x00001535 } }, { 0x00001536, 1, { 0x00001536 } }, { 0x00001537, 1, { 0x00001537 } }, { 0x00001538, 1, { 0x00001538 } }, { 0x00001539, 1, { 0x00001539 } }, { 0x0000153a, 1, { 0x0000153a } }, { 0x0000153b, 1, { 0x0000153b } }, { 0x0000153c, 1, { 0x0000153c } }, { 0x0000153d, 1, { 0x0000153d } }, { 0x0000153e, 1, { 0x0000153e } }, { 0x0000153f, 1, { 0x0000153f } }, { 0x00001540, 1, { 0x00001540 } }, { 0x00001541, 1, { 0x00001541 } }, { 0x00001542, 1, { 0x00001542 } }, { 0x00001543, 1, { 0x00001543 } }, { 0x00001544, 1, { 0x00001544 } }, { 0x00001545, 1, { 0x00001545 } }, { 0x00001546, 1, { 0x00001546 } }, { 0x00001547, 1, { 0x00001547 } }, { 0x00001548, 1, { 0x00001548 } }, { 0x00001549, 1, { 0x00001549 } }, { 0x0000154a, 1, { 0x0000154a } }, { 0x0000154b, 1, { 0x0000154b } }, { 0x0000154c, 1, { 0x0000154c } }, { 0x0000154d, 1, { 0x0000154d } }, { 0x0000154e, 1, { 0x0000154e } }, { 0x0000154f, 1, { 0x0000154f } }, { 0x00001550, 1, { 0x00001550 } }, { 0x00001551, 1, { 0x00001551 } }, { 0x00001552, 1, { 0x00001552 } }, { 0x00001553, 1, { 0x00001553 } }, { 0x00001554, 1, { 0x00001554 } }, { 0x00001555, 1, { 0x00001555 } }, { 0x00001556, 1, { 0x00001556 } }, { 0x00001557, 1, { 0x00001557 } }, { 0x00001558, 1, { 0x00001558 } }, { 0x00001559, 1, { 0x00001559 } }, { 0x0000155a, 1, { 0x0000155a } }, { 0x0000155b, 1, { 0x0000155b } }, { 0x0000155c, 1, { 0x0000155c } }, { 0x0000155d, 1, { 0x0000155d } }, { 0x0000155e, 1, { 0x0000155e } }, { 0x0000155f, 1, { 0x0000155f } }, { 0x00001560, 1, { 0x00001560 } }, { 0x00001561, 1, { 0x00001561 } }, { 0x00001562, 1, { 0x00001562 } }, { 0x00001563, 1, { 0x00001563 } }, { 0x00001564, 1, { 0x00001564 } }, { 0x00001565, 1, { 0x00001565 } }, { 0x00001566, 1, { 0x00001566 } }, { 0x00001567, 1, { 0x00001567 } }, { 0x00001568, 1, { 0x00001568 } }, { 0x00001569, 1, { 0x00001569 } }, { 0x0000156a, 1, { 0x0000156a } }, { 0x0000156b, 1, { 0x0000156b } }, { 0x0000156c, 1, { 0x0000156c } }, { 0x0000156d, 1, { 0x0000156d } }, { 0x0000156e, 1, { 0x0000156e } }, { 0x0000156f, 1, { 0x0000156f } }, { 0x00001570, 1, { 0x00001570 } }, { 0x00001571, 1, { 0x00001571 } }, { 0x00001572, 1, { 0x00001572 } }, { 0x00001573, 1, { 0x00001573 } }, { 0x00001574, 1, { 0x00001574 } }, { 0x00001575, 1, { 0x00001575 } }, { 0x00001576, 1, { 0x00001576 } }, { 0x00001577, 1, { 0x00001577 } }, { 0x00001578, 1, { 0x00001578 } }, { 0x00001579, 1, { 0x00001579 } }, { 0x0000157a, 1, { 0x0000157a } }, { 0x0000157b, 1, { 0x0000157b } }, { 0x0000157c, 1, { 0x0000157c } }, { 0x0000157d, 1, { 0x0000157d } }, { 0x0000157e, 1, { 0x0000157e } }, { 0x0000157f, 1, { 0x0000157f } }, { 0x00001580, 1, { 0x00001580 } }, { 0x00001581, 1, { 0x00001581 } }, { 0x00001582, 1, { 0x00001582 } }, { 0x00001583, 1, { 0x00001583 } }, { 0x00001584, 1, { 0x00001584 } }, { 0x00001585, 1, { 0x00001585 } }, { 0x00001586, 1, { 0x00001586 } }, { 0x00001587, 1, { 0x00001587 } }, { 0x00001588, 1, { 0x00001588 } }, { 0x00001589, 1, { 0x00001589 } }, { 0x0000158a, 1, { 0x0000158a } }, { 0x0000158b, 1, { 0x0000158b } }, { 0x0000158c, 1, { 0x0000158c } }, { 0x0000158d, 1, { 0x0000158d } }, { 0x0000158e, 1, { 0x0000158e } }, { 0x0000158f, 1, { 0x0000158f } }, { 0x00001590, 1, { 0x00001590 } }, { 0x00001591, 1, { 0x00001591 } }, { 0x00001592, 1, { 0x00001592 } }, { 0x00001593, 1, { 0x00001593 } }, { 0x00001594, 1, { 0x00001594 } }, { 0x00001595, 1, { 0x00001595 } }, { 0x00001596, 1, { 0x00001596 } }, { 0x00001597, 1, { 0x00001597 } }, { 0x00001598, 1, { 0x00001598 } }, { 0x00001599, 1, { 0x00001599 } }, { 0x0000159a, 1, { 0x0000159a } }, { 0x0000159b, 1, { 0x0000159b } }, { 0x0000159c, 1, { 0x0000159c } }, { 0x0000159d, 1, { 0x0000159d } }, { 0x0000159e, 1, { 0x0000159e } }, { 0x0000159f, 1, { 0x0000159f } }, { 0x000015a0, 1, { 0x000015a0 } }, { 0x000015a1, 1, { 0x000015a1 } }, { 0x000015a2, 1, { 0x000015a2 } }, { 0x000015a3, 1, { 0x000015a3 } }, { 0x000015a4, 1, { 0x000015a4 } }, { 0x000015a5, 1, { 0x000015a5 } }, { 0x000015a6, 1, { 0x000015a6 } }, { 0x000015a7, 1, { 0x000015a7 } }, { 0x000015a8, 1, { 0x000015a8 } }, { 0x000015a9, 1, { 0x000015a9 } }, { 0x000015aa, 1, { 0x000015aa } }, { 0x000015ab, 1, { 0x000015ab } }, { 0x000015ac, 1, { 0x000015ac } }, { 0x000015ad, 1, { 0x000015ad } }, { 0x000015ae, 1, { 0x000015ae } }, { 0x000015af, 1, { 0x000015af } }, { 0x000015b0, 1, { 0x000015b0 } }, { 0x000015b1, 1, { 0x000015b1 } }, { 0x000015b2, 1, { 0x000015b2 } }, { 0x000015b3, 1, { 0x000015b3 } }, { 0x000015b4, 1, { 0x000015b4 } }, { 0x000015b5, 1, { 0x000015b5 } }, { 0x000015b6, 1, { 0x000015b6 } }, { 0x000015b7, 1, { 0x000015b7 } }, { 0x000015b8, 1, { 0x000015b8 } }, { 0x000015b9, 1, { 0x000015b9 } }, { 0x000015ba, 1, { 0x000015ba } }, { 0x000015bb, 1, { 0x000015bb } }, { 0x000015bc, 1, { 0x000015bc } }, { 0x000015bd, 1, { 0x000015bd } }, { 0x000015be, 1, { 0x000015be } }, { 0x000015bf, 1, { 0x000015bf } }, { 0x000015c0, 1, { 0x000015c0 } }, { 0x000015c1, 1, { 0x000015c1 } }, { 0x000015c2, 1, { 0x000015c2 } }, { 0x000015c3, 1, { 0x000015c3 } }, { 0x000015c4, 1, { 0x000015c4 } }, { 0x000015c5, 1, { 0x000015c5 } }, { 0x000015c6, 1, { 0x000015c6 } }, { 0x000015c7, 1, { 0x000015c7 } }, { 0x000015c8, 1, { 0x000015c8 } }, { 0x000015c9, 1, { 0x000015c9 } }, { 0x000015ca, 1, { 0x000015ca } }, { 0x000015cb, 1, { 0x000015cb } }, { 0x000015cc, 1, { 0x000015cc } }, { 0x000015cd, 1, { 0x000015cd } }, { 0x000015ce, 1, { 0x000015ce } }, { 0x000015cf, 1, { 0x000015cf } }, { 0x000015d0, 1, { 0x000015d0 } }, { 0x000015d1, 1, { 0x000015d1 } }, { 0x000015d2, 1, { 0x000015d2 } }, { 0x000015d3, 1, { 0x000015d3 } }, { 0x000015d4, 1, { 0x000015d4 } }, { 0x000015d5, 1, { 0x000015d5 } }, { 0x000015d6, 1, { 0x000015d6 } }, { 0x000015d7, 1, { 0x000015d7 } }, { 0x000015d8, 1, { 0x000015d8 } }, { 0x000015d9, 1, { 0x000015d9 } }, { 0x000015da, 1, { 0x000015da } }, { 0x000015db, 1, { 0x000015db } }, { 0x000015dc, 1, { 0x000015dc } }, { 0x000015dd, 1, { 0x000015dd } }, { 0x000015de, 1, { 0x000015de } }, { 0x000015df, 1, { 0x000015df } }, { 0x000015e0, 1, { 0x000015e0 } }, { 0x000015e1, 1, { 0x000015e1 } }, { 0x000015e2, 1, { 0x000015e2 } }, { 0x000015e3, 1, { 0x000015e3 } }, { 0x000015e4, 1, { 0x000015e4 } }, { 0x000015e5, 1, { 0x000015e5 } }, { 0x000015e6, 1, { 0x000015e6 } }, { 0x000015e7, 1, { 0x000015e7 } }, { 0x000015e8, 1, { 0x000015e8 } }, { 0x000015e9, 1, { 0x000015e9 } }, { 0x000015ea, 1, { 0x000015ea } }, { 0x000015eb, 1, { 0x000015eb } }, { 0x000015ec, 1, { 0x000015ec } }, { 0x000015ed, 1, { 0x000015ed } }, { 0x000015ee, 1, { 0x000015ee } }, { 0x000015ef, 1, { 0x000015ef } }, { 0x000015f0, 1, { 0x000015f0 } }, { 0x000015f1, 1, { 0x000015f1 } }, { 0x000015f2, 1, { 0x000015f2 } }, { 0x000015f3, 1, { 0x000015f3 } }, { 0x000015f4, 1, { 0x000015f4 } }, { 0x000015f5, 1, { 0x000015f5 } }, { 0x000015f6, 1, { 0x000015f6 } }, { 0x000015f7, 1, { 0x000015f7 } }, { 0x000015f8, 1, { 0x000015f8 } }, { 0x000015f9, 1, { 0x000015f9 } }, { 0x000015fa, 1, { 0x000015fa } }, { 0x000015fb, 1, { 0x000015fb } }, { 0x000015fc, 1, { 0x000015fc } }, { 0x000015fd, 1, { 0x000015fd } }, { 0x000015fe, 1, { 0x000015fe } }, { 0x000015ff, 1, { 0x000015ff } }, { 0x00001600, 1, { 0x00001600 } }, { 0x00001601, 1, { 0x00001601 } }, { 0x00001602, 1, { 0x00001602 } }, { 0x00001603, 1, { 0x00001603 } }, { 0x00001604, 1, { 0x00001604 } }, { 0x00001605, 1, { 0x00001605 } }, { 0x00001606, 1, { 0x00001606 } }, { 0x00001607, 1, { 0x00001607 } }, { 0x00001608, 1, { 0x00001608 } }, { 0x00001609, 1, { 0x00001609 } }, { 0x0000160a, 1, { 0x0000160a } }, { 0x0000160b, 1, { 0x0000160b } }, { 0x0000160c, 1, { 0x0000160c } }, { 0x0000160d, 1, { 0x0000160d } }, { 0x0000160e, 1, { 0x0000160e } }, { 0x0000160f, 1, { 0x0000160f } }, { 0x00001610, 1, { 0x00001610 } }, { 0x00001611, 1, { 0x00001611 } }, { 0x00001612, 1, { 0x00001612 } }, { 0x00001613, 1, { 0x00001613 } }, { 0x00001614, 1, { 0x00001614 } }, { 0x00001615, 1, { 0x00001615 } }, { 0x00001616, 1, { 0x00001616 } }, { 0x00001617, 1, { 0x00001617 } }, { 0x00001618, 1, { 0x00001618 } }, { 0x00001619, 1, { 0x00001619 } }, { 0x0000161a, 1, { 0x0000161a } }, { 0x0000161b, 1, { 0x0000161b } }, { 0x0000161c, 1, { 0x0000161c } }, { 0x0000161d, 1, { 0x0000161d } }, { 0x0000161e, 1, { 0x0000161e } }, { 0x0000161f, 1, { 0x0000161f } }, { 0x00001620, 1, { 0x00001620 } }, { 0x00001621, 1, { 0x00001621 } }, { 0x00001622, 1, { 0x00001622 } }, { 0x00001623, 1, { 0x00001623 } }, { 0x00001624, 1, { 0x00001624 } }, { 0x00001625, 1, { 0x00001625 } }, { 0x00001626, 1, { 0x00001626 } }, { 0x00001627, 1, { 0x00001627 } }, { 0x00001628, 1, { 0x00001628 } }, { 0x00001629, 1, { 0x00001629 } }, { 0x0000162a, 1, { 0x0000162a } }, { 0x0000162b, 1, { 0x0000162b } }, { 0x0000162c, 1, { 0x0000162c } }, { 0x0000162d, 1, { 0x0000162d } }, { 0x0000162e, 1, { 0x0000162e } }, { 0x0000162f, 1, { 0x0000162f } }, { 0x00001630, 1, { 0x00001630 } }, { 0x00001631, 1, { 0x00001631 } }, { 0x00001632, 1, { 0x00001632 } }, { 0x00001633, 1, { 0x00001633 } }, { 0x00001634, 1, { 0x00001634 } }, { 0x00001635, 1, { 0x00001635 } }, { 0x00001636, 1, { 0x00001636 } }, { 0x00001637, 1, { 0x00001637 } }, { 0x00001638, 1, { 0x00001638 } }, { 0x00001639, 1, { 0x00001639 } }, { 0x0000163a, 1, { 0x0000163a } }, { 0x0000163b, 1, { 0x0000163b } }, { 0x0000163c, 1, { 0x0000163c } }, { 0x0000163d, 1, { 0x0000163d } }, { 0x0000163e, 1, { 0x0000163e } }, { 0x0000163f, 1, { 0x0000163f } }, { 0x00001640, 1, { 0x00001640 } }, { 0x00001641, 1, { 0x00001641 } }, { 0x00001642, 1, { 0x00001642 } }, { 0x00001643, 1, { 0x00001643 } }, { 0x00001644, 1, { 0x00001644 } }, { 0x00001645, 1, { 0x00001645 } }, { 0x00001646, 1, { 0x00001646 } }, { 0x00001647, 1, { 0x00001647 } }, { 0x00001648, 1, { 0x00001648 } }, { 0x00001649, 1, { 0x00001649 } }, { 0x0000164a, 1, { 0x0000164a } }, { 0x0000164b, 1, { 0x0000164b } }, { 0x0000164c, 1, { 0x0000164c } }, { 0x0000164d, 1, { 0x0000164d } }, { 0x0000164e, 1, { 0x0000164e } }, { 0x0000164f, 1, { 0x0000164f } }, { 0x00001650, 1, { 0x00001650 } }, { 0x00001651, 1, { 0x00001651 } }, { 0x00001652, 1, { 0x00001652 } }, { 0x00001653, 1, { 0x00001653 } }, { 0x00001654, 1, { 0x00001654 } }, { 0x00001655, 1, { 0x00001655 } }, { 0x00001656, 1, { 0x00001656 } }, { 0x00001657, 1, { 0x00001657 } }, { 0x00001658, 1, { 0x00001658 } }, { 0x00001659, 1, { 0x00001659 } }, { 0x0000165a, 1, { 0x0000165a } }, { 0x0000165b, 1, { 0x0000165b } }, { 0x0000165c, 1, { 0x0000165c } }, { 0x0000165d, 1, { 0x0000165d } }, { 0x0000165e, 1, { 0x0000165e } }, { 0x0000165f, 1, { 0x0000165f } }, { 0x00001660, 1, { 0x00001660 } }, { 0x00001661, 1, { 0x00001661 } }, { 0x00001662, 1, { 0x00001662 } }, { 0x00001663, 1, { 0x00001663 } }, { 0x00001664, 1, { 0x00001664 } }, { 0x00001665, 1, { 0x00001665 } }, { 0x00001666, 1, { 0x00001666 } }, { 0x00001667, 1, { 0x00001667 } }, { 0x00001668, 1, { 0x00001668 } }, { 0x00001669, 1, { 0x00001669 } }, { 0x0000166a, 1, { 0x0000166a } }, { 0x0000166b, 1, { 0x0000166b } }, { 0x0000166c, 1, { 0x0000166c } }, { 0x0000166d, 1, { 0x0000166d } }, { 0x0000166e, 1, { 0x0000166e } }, { 0x0000166f, 1, { 0x0000166f } }, { 0x00001670, 1, { 0x00001670 } }, { 0x00001671, 1, { 0x00001671 } }, { 0x00001672, 1, { 0x00001672 } }, { 0x00001673, 1, { 0x00001673 } }, { 0x00001674, 1, { 0x00001674 } }, { 0x00001675, 1, { 0x00001675 } }, { 0x00001676, 1, { 0x00001676 } }, { 0x00001677, 1, { 0x00001677 } }, { 0x00001678, 1, { 0x00001678 } }, { 0x00001679, 1, { 0x00001679 } }, { 0x0000167a, 1, { 0x0000167a } }, { 0x0000167b, 1, { 0x0000167b } }, { 0x0000167c, 1, { 0x0000167c } }, { 0x0000167d, 1, { 0x0000167d } }, { 0x0000167e, 1, { 0x0000167e } }, { 0x0000167f, 1, { 0x0000167f } }, { 0x00001680, 1, { 0x00001680 } }, { 0x00001681, 1, { 0x00001681 } }, { 0x00001682, 1, { 0x00001682 } }, { 0x00001683, 1, { 0x00001683 } }, { 0x00001684, 1, { 0x00001684 } }, { 0x00001685, 1, { 0x00001685 } }, { 0x00001686, 1, { 0x00001686 } }, { 0x00001687, 1, { 0x00001687 } }, { 0x00001688, 1, { 0x00001688 } }, { 0x00001689, 1, { 0x00001689 } }, { 0x0000168a, 1, { 0x0000168a } }, { 0x0000168b, 1, { 0x0000168b } }, { 0x0000168c, 1, { 0x0000168c } }, { 0x0000168d, 1, { 0x0000168d } }, { 0x0000168e, 1, { 0x0000168e } }, { 0x0000168f, 1, { 0x0000168f } }, { 0x00001690, 1, { 0x00001690 } }, { 0x00001691, 1, { 0x00001691 } }, { 0x00001692, 1, { 0x00001692 } }, { 0x00001693, 1, { 0x00001693 } }, { 0x00001694, 1, { 0x00001694 } }, { 0x00001695, 1, { 0x00001695 } }, { 0x00001696, 1, { 0x00001696 } }, { 0x00001697, 1, { 0x00001697 } }, { 0x00001698, 1, { 0x00001698 } }, { 0x00001699, 1, { 0x00001699 } }, { 0x0000169a, 1, { 0x0000169a } }, { 0x0000169b, 1, { 0x0000169b } }, { 0x0000169c, 1, { 0x0000169c } }, { 0x000016a0, 1, { 0x000016a0 } }, { 0x000016a1, 1, { 0x000016a1 } }, { 0x000016a2, 1, { 0x000016a2 } }, { 0x000016a3, 1, { 0x000016a3 } }, { 0x000016a4, 1, { 0x000016a4 } }, { 0x000016a5, 1, { 0x000016a5 } }, { 0x000016a6, 1, { 0x000016a6 } }, { 0x000016a7, 1, { 0x000016a7 } }, { 0x000016a8, 1, { 0x000016a8 } }, { 0x000016a9, 1, { 0x000016a9 } }, { 0x000016aa, 1, { 0x000016aa } }, { 0x000016ab, 1, { 0x000016ab } }, { 0x000016ac, 1, { 0x000016ac } }, { 0x000016ad, 1, { 0x000016ad } }, { 0x000016ae, 1, { 0x000016ae } }, { 0x000016af, 1, { 0x000016af } }, { 0x000016b0, 1, { 0x000016b0 } }, { 0x000016b1, 1, { 0x000016b1 } }, { 0x000016b2, 1, { 0x000016b2 } }, { 0x000016b3, 1, { 0x000016b3 } }, { 0x000016b4, 1, { 0x000016b4 } }, { 0x000016b5, 1, { 0x000016b5 } }, { 0x000016b6, 1, { 0x000016b6 } }, { 0x000016b7, 1, { 0x000016b7 } }, { 0x000016b8, 1, { 0x000016b8 } }, { 0x000016b9, 1, { 0x000016b9 } }, { 0x000016ba, 1, { 0x000016ba } }, { 0x000016bb, 1, { 0x000016bb } }, { 0x000016bc, 1, { 0x000016bc } }, { 0x000016bd, 1, { 0x000016bd } }, { 0x000016be, 1, { 0x000016be } }, { 0x000016bf, 1, { 0x000016bf } }, { 0x000016c0, 1, { 0x000016c0 } }, { 0x000016c1, 1, { 0x000016c1 } }, { 0x000016c2, 1, { 0x000016c2 } }, { 0x000016c3, 1, { 0x000016c3 } }, { 0x000016c4, 1, { 0x000016c4 } }, { 0x000016c5, 1, { 0x000016c5 } }, { 0x000016c6, 1, { 0x000016c6 } }, { 0x000016c7, 1, { 0x000016c7 } }, { 0x000016c8, 1, { 0x000016c8 } }, { 0x000016c9, 1, { 0x000016c9 } }, { 0x000016ca, 1, { 0x000016ca } }, { 0x000016cb, 1, { 0x000016cb } }, { 0x000016cc, 1, { 0x000016cc } }, { 0x000016cd, 1, { 0x000016cd } }, { 0x000016ce, 1, { 0x000016ce } }, { 0x000016cf, 1, { 0x000016cf } }, { 0x000016d0, 1, { 0x000016d0 } }, { 0x000016d1, 1, { 0x000016d1 } }, { 0x000016d2, 1, { 0x000016d2 } }, { 0x000016d3, 1, { 0x000016d3 } }, { 0x000016d4, 1, { 0x000016d4 } }, { 0x000016d5, 1, { 0x000016d5 } }, { 0x000016d6, 1, { 0x000016d6 } }, { 0x000016d7, 1, { 0x000016d7 } }, { 0x000016d8, 1, { 0x000016d8 } }, { 0x000016d9, 1, { 0x000016d9 } }, { 0x000016da, 1, { 0x000016da } }, { 0x000016db, 1, { 0x000016db } }, { 0x000016dc, 1, { 0x000016dc } }, { 0x000016dd, 1, { 0x000016dd } }, { 0x000016de, 1, { 0x000016de } }, { 0x000016df, 1, { 0x000016df } }, { 0x000016e0, 1, { 0x000016e0 } }, { 0x000016e1, 1, { 0x000016e1 } }, { 0x000016e2, 1, { 0x000016e2 } }, { 0x000016e3, 1, { 0x000016e3 } }, { 0x000016e4, 1, { 0x000016e4 } }, { 0x000016e5, 1, { 0x000016e5 } }, { 0x000016e6, 1, { 0x000016e6 } }, { 0x000016e7, 1, { 0x000016e7 } }, { 0x000016e8, 1, { 0x000016e8 } }, { 0x000016e9, 1, { 0x000016e9 } }, { 0x000016ea, 1, { 0x000016ea } }, { 0x000016eb, 1, { 0x000016eb } }, { 0x000016ec, 1, { 0x000016ec } }, { 0x000016ed, 1, { 0x000016ed } }, { 0x000016ee, 1, { 0x000016ee } }, { 0x000016ef, 1, { 0x000016ef } }, { 0x000016f0, 1, { 0x000016f0 } }, { 0x000016f1, 1, { 0x000016f1 } }, { 0x000016f2, 1, { 0x000016f2 } }, { 0x000016f3, 1, { 0x000016f3 } }, { 0x000016f4, 1, { 0x000016f4 } }, { 0x000016f5, 1, { 0x000016f5 } }, { 0x000016f6, 1, { 0x000016f6 } }, { 0x000016f7, 1, { 0x000016f7 } }, { 0x000016f8, 1, { 0x000016f8 } }, { 0x00001700, 1, { 0x00001700 } }, { 0x00001701, 1, { 0x00001701 } }, { 0x00001702, 1, { 0x00001702 } }, { 0x00001703, 1, { 0x00001703 } }, { 0x00001704, 1, { 0x00001704 } }, { 0x00001705, 1, { 0x00001705 } }, { 0x00001706, 1, { 0x00001706 } }, { 0x00001707, 1, { 0x00001707 } }, { 0x00001708, 1, { 0x00001708 } }, { 0x00001709, 1, { 0x00001709 } }, { 0x0000170a, 1, { 0x0000170a } }, { 0x0000170b, 1, { 0x0000170b } }, { 0x0000170c, 1, { 0x0000170c } }, { 0x0000170e, 1, { 0x0000170e } }, { 0x0000170f, 1, { 0x0000170f } }, { 0x00001710, 1, { 0x00001710 } }, { 0x00001711, 1, { 0x00001711 } }, { 0x00001712, 1, { 0x00001712 } }, { 0x00001713, 1, { 0x00001713 } }, { 0x00001714, 1, { 0x00001714 } }, { 0x00001720, 1, { 0x00001720 } }, { 0x00001721, 1, { 0x00001721 } }, { 0x00001722, 1, { 0x00001722 } }, { 0x00001723, 1, { 0x00001723 } }, { 0x00001724, 1, { 0x00001724 } }, { 0x00001725, 1, { 0x00001725 } }, { 0x00001726, 1, { 0x00001726 } }, { 0x00001727, 1, { 0x00001727 } }, { 0x00001728, 1, { 0x00001728 } }, { 0x00001729, 1, { 0x00001729 } }, { 0x0000172a, 1, { 0x0000172a } }, { 0x0000172b, 1, { 0x0000172b } }, { 0x0000172c, 1, { 0x0000172c } }, { 0x0000172d, 1, { 0x0000172d } }, { 0x0000172e, 1, { 0x0000172e } }, { 0x0000172f, 1, { 0x0000172f } }, { 0x00001730, 1, { 0x00001730 } }, { 0x00001731, 1, { 0x00001731 } }, { 0x00001732, 1, { 0x00001732 } }, { 0x00001733, 1, { 0x00001733 } }, { 0x00001734, 1, { 0x00001734 } }, { 0x00001735, 1, { 0x00001735 } }, { 0x00001736, 1, { 0x00001736 } }, { 0x00001740, 1, { 0x00001740 } }, { 0x00001741, 1, { 0x00001741 } }, { 0x00001742, 1, { 0x00001742 } }, { 0x00001743, 1, { 0x00001743 } }, { 0x00001744, 1, { 0x00001744 } }, { 0x00001745, 1, { 0x00001745 } }, { 0x00001746, 1, { 0x00001746 } }, { 0x00001747, 1, { 0x00001747 } }, { 0x00001748, 1, { 0x00001748 } }, { 0x00001749, 1, { 0x00001749 } }, { 0x0000174a, 1, { 0x0000174a } }, { 0x0000174b, 1, { 0x0000174b } }, { 0x0000174c, 1, { 0x0000174c } }, { 0x0000174d, 1, { 0x0000174d } }, { 0x0000174e, 1, { 0x0000174e } }, { 0x0000174f, 1, { 0x0000174f } }, { 0x00001750, 1, { 0x00001750 } }, { 0x00001751, 1, { 0x00001751 } }, { 0x00001752, 1, { 0x00001752 } }, { 0x00001753, 1, { 0x00001753 } }, { 0x00001760, 1, { 0x00001760 } }, { 0x00001761, 1, { 0x00001761 } }, { 0x00001762, 1, { 0x00001762 } }, { 0x00001763, 1, { 0x00001763 } }, { 0x00001764, 1, { 0x00001764 } }, { 0x00001765, 1, { 0x00001765 } }, { 0x00001766, 1, { 0x00001766 } }, { 0x00001767, 1, { 0x00001767 } }, { 0x00001768, 1, { 0x00001768 } }, { 0x00001769, 1, { 0x00001769 } }, { 0x0000176a, 1, { 0x0000176a } }, { 0x0000176b, 1, { 0x0000176b } }, { 0x0000176c, 1, { 0x0000176c } }, { 0x0000176e, 1, { 0x0000176e } }, { 0x0000176f, 1, { 0x0000176f } }, { 0x00001770, 1, { 0x00001770 } }, { 0x00001772, 1, { 0x00001772 } }, { 0x00001773, 1, { 0x00001773 } }, { 0x00001780, 1, { 0x00001780 } }, { 0x00001781, 1, { 0x00001781 } }, { 0x00001782, 1, { 0x00001782 } }, { 0x00001783, 1, { 0x00001783 } }, { 0x00001784, 1, { 0x00001784 } }, { 0x00001785, 1, { 0x00001785 } }, { 0x00001786, 1, { 0x00001786 } }, { 0x00001787, 1, { 0x00001787 } }, { 0x00001788, 1, { 0x00001788 } }, { 0x00001789, 1, { 0x00001789 } }, { 0x0000178a, 1, { 0x0000178a } }, { 0x0000178b, 1, { 0x0000178b } }, { 0x0000178c, 1, { 0x0000178c } }, { 0x0000178d, 1, { 0x0000178d } }, { 0x0000178e, 1, { 0x0000178e } }, { 0x0000178f, 1, { 0x0000178f } }, { 0x00001790, 1, { 0x00001790 } }, { 0x00001791, 1, { 0x00001791 } }, { 0x00001792, 1, { 0x00001792 } }, { 0x00001793, 1, { 0x00001793 } }, { 0x00001794, 1, { 0x00001794 } }, { 0x00001795, 1, { 0x00001795 } }, { 0x00001796, 1, { 0x00001796 } }, { 0x00001797, 1, { 0x00001797 } }, { 0x00001798, 1, { 0x00001798 } }, { 0x00001799, 1, { 0x00001799 } }, { 0x0000179a, 1, { 0x0000179a } }, { 0x0000179b, 1, { 0x0000179b } }, { 0x0000179c, 1, { 0x0000179c } }, { 0x0000179d, 1, { 0x0000179d } }, { 0x0000179e, 1, { 0x0000179e } }, { 0x0000179f, 1, { 0x0000179f } }, { 0x000017a0, 1, { 0x000017a0 } }, { 0x000017a1, 1, { 0x000017a1 } }, { 0x000017a2, 1, { 0x000017a2 } }, { 0x000017a3, 1, { 0x000017a3 } }, { 0x000017a4, 1, { 0x000017a4 } }, { 0x000017a5, 1, { 0x000017a5 } }, { 0x000017a6, 1, { 0x000017a6 } }, { 0x000017a7, 1, { 0x000017a7 } }, { 0x000017a8, 1, { 0x000017a8 } }, { 0x000017a9, 1, { 0x000017a9 } }, { 0x000017aa, 1, { 0x000017aa } }, { 0x000017ab, 1, { 0x000017ab } }, { 0x000017ac, 1, { 0x000017ac } }, { 0x000017ad, 1, { 0x000017ad } }, { 0x000017ae, 1, { 0x000017ae } }, { 0x000017af, 1, { 0x000017af } }, { 0x000017b0, 1, { 0x000017b0 } }, { 0x000017b1, 1, { 0x000017b1 } }, { 0x000017b2, 1, { 0x000017b2 } }, { 0x000017b3, 1, { 0x000017b3 } }, { 0x000017b4, 1, { 0x000017b4 } }, { 0x000017b5, 1, { 0x000017b5 } }, { 0x000017b6, 1, { 0x000017b6 } }, { 0x000017b7, 1, { 0x000017b7 } }, { 0x000017b8, 1, { 0x000017b8 } }, { 0x000017b9, 1, { 0x000017b9 } }, { 0x000017ba, 1, { 0x000017ba } }, { 0x000017bb, 1, { 0x000017bb } }, { 0x000017bc, 1, { 0x000017bc } }, { 0x000017bd, 1, { 0x000017bd } }, { 0x000017be, 1, { 0x000017be } }, { 0x000017bf, 1, { 0x000017bf } }, { 0x000017c0, 1, { 0x000017c0 } }, { 0x000017c1, 1, { 0x000017c1 } }, { 0x000017c2, 1, { 0x000017c2 } }, { 0x000017c3, 1, { 0x000017c3 } }, { 0x000017c4, 1, { 0x000017c4 } }, { 0x000017c5, 1, { 0x000017c5 } }, { 0x000017c6, 1, { 0x000017c6 } }, { 0x000017c7, 1, { 0x000017c7 } }, { 0x000017c8, 1, { 0x000017c8 } }, { 0x000017c9, 1, { 0x000017c9 } }, { 0x000017ca, 1, { 0x000017ca } }, { 0x000017cb, 1, { 0x000017cb } }, { 0x000017cc, 1, { 0x000017cc } }, { 0x000017cd, 1, { 0x000017cd } }, { 0x000017ce, 1, { 0x000017ce } }, { 0x000017cf, 1, { 0x000017cf } }, { 0x000017d0, 1, { 0x000017d0 } }, { 0x000017d1, 1, { 0x000017d1 } }, { 0x000017d2, 1, { 0x000017d2 } }, { 0x000017d3, 1, { 0x000017d3 } }, { 0x000017d4, 1, { 0x000017d4 } }, { 0x000017d5, 1, { 0x000017d5 } }, { 0x000017d6, 1, { 0x000017d6 } }, { 0x000017d7, 1, { 0x000017d7 } }, { 0x000017d8, 1, { 0x000017d8 } }, { 0x000017d9, 1, { 0x000017d9 } }, { 0x000017da, 1, { 0x000017da } }, { 0x000017db, 1, { 0x000017db } }, { 0x000017dc, 1, { 0x000017dc } }, { 0x000017dd, 1, { 0x000017dd } }, { 0x000017e0, 1, { 0x000017e0 } }, { 0x000017e1, 1, { 0x000017e1 } }, { 0x000017e2, 1, { 0x000017e2 } }, { 0x000017e3, 1, { 0x000017e3 } }, { 0x000017e4, 1, { 0x000017e4 } }, { 0x000017e5, 1, { 0x000017e5 } }, { 0x000017e6, 1, { 0x000017e6 } }, { 0x000017e7, 1, { 0x000017e7 } }, { 0x000017e8, 1, { 0x000017e8 } }, { 0x000017e9, 1, { 0x000017e9 } }, { 0x000017f0, 1, { 0x000017f0 } }, { 0x000017f1, 1, { 0x000017f1 } }, { 0x000017f2, 1, { 0x000017f2 } }, { 0x000017f3, 1, { 0x000017f3 } }, { 0x000017f4, 1, { 0x000017f4 } }, { 0x000017f5, 1, { 0x000017f5 } }, { 0x000017f6, 1, { 0x000017f6 } }, { 0x000017f7, 1, { 0x000017f7 } }, { 0x000017f8, 1, { 0x000017f8 } }, { 0x000017f9, 1, { 0x000017f9 } }, { 0x00001800, 1, { 0x00001800 } }, { 0x00001801, 1, { 0x00001801 } }, { 0x00001802, 1, { 0x00001802 } }, { 0x00001803, 1, { 0x00001803 } }, { 0x00001804, 1, { 0x00001804 } }, { 0x00001805, 1, { 0x00001805 } }, { 0x00001806, 1, { 0x00001806 } }, { 0x00001807, 1, { 0x00001807 } }, { 0x00001808, 1, { 0x00001808 } }, { 0x00001809, 1, { 0x00001809 } }, { 0x0000180a, 1, { 0x0000180a } }, { 0x0000180b, 1, { 0x0000180b } }, { 0x0000180c, 1, { 0x0000180c } }, { 0x0000180d, 1, { 0x0000180d } }, { 0x0000180e, 1, { 0x0000180e } }, { 0x00001810, 1, { 0x00001810 } }, { 0x00001811, 1, { 0x00001811 } }, { 0x00001812, 1, { 0x00001812 } }, { 0x00001813, 1, { 0x00001813 } }, { 0x00001814, 1, { 0x00001814 } }, { 0x00001815, 1, { 0x00001815 } }, { 0x00001816, 1, { 0x00001816 } }, { 0x00001817, 1, { 0x00001817 } }, { 0x00001818, 1, { 0x00001818 } }, { 0x00001819, 1, { 0x00001819 } }, { 0x00001820, 1, { 0x00001820 } }, { 0x00001821, 1, { 0x00001821 } }, { 0x00001822, 1, { 0x00001822 } }, { 0x00001823, 1, { 0x00001823 } }, { 0x00001824, 1, { 0x00001824 } }, { 0x00001825, 1, { 0x00001825 } }, { 0x00001826, 1, { 0x00001826 } }, { 0x00001827, 1, { 0x00001827 } }, { 0x00001828, 1, { 0x00001828 } }, { 0x00001829, 1, { 0x00001829 } }, { 0x0000182a, 1, { 0x0000182a } }, { 0x0000182b, 1, { 0x0000182b } }, { 0x0000182c, 1, { 0x0000182c } }, { 0x0000182d, 1, { 0x0000182d } }, { 0x0000182e, 1, { 0x0000182e } }, { 0x0000182f, 1, { 0x0000182f } }, { 0x00001830, 1, { 0x00001830 } }, { 0x00001831, 1, { 0x00001831 } }, { 0x00001832, 1, { 0x00001832 } }, { 0x00001833, 1, { 0x00001833 } }, { 0x00001834, 1, { 0x00001834 } }, { 0x00001835, 1, { 0x00001835 } }, { 0x00001836, 1, { 0x00001836 } }, { 0x00001837, 1, { 0x00001837 } }, { 0x00001838, 1, { 0x00001838 } }, { 0x00001839, 1, { 0x00001839 } }, { 0x0000183a, 1, { 0x0000183a } }, { 0x0000183b, 1, { 0x0000183b } }, { 0x0000183c, 1, { 0x0000183c } }, { 0x0000183d, 1, { 0x0000183d } }, { 0x0000183e, 1, { 0x0000183e } }, { 0x0000183f, 1, { 0x0000183f } }, { 0x00001840, 1, { 0x00001840 } }, { 0x00001841, 1, { 0x00001841 } }, { 0x00001842, 1, { 0x00001842 } }, { 0x00001843, 1, { 0x00001843 } }, { 0x00001844, 1, { 0x00001844 } }, { 0x00001845, 1, { 0x00001845 } }, { 0x00001846, 1, { 0x00001846 } }, { 0x00001847, 1, { 0x00001847 } }, { 0x00001848, 1, { 0x00001848 } }, { 0x00001849, 1, { 0x00001849 } }, { 0x0000184a, 1, { 0x0000184a } }, { 0x0000184b, 1, { 0x0000184b } }, { 0x0000184c, 1, { 0x0000184c } }, { 0x0000184d, 1, { 0x0000184d } }, { 0x0000184e, 1, { 0x0000184e } }, { 0x0000184f, 1, { 0x0000184f } }, { 0x00001850, 1, { 0x00001850 } }, { 0x00001851, 1, { 0x00001851 } }, { 0x00001852, 1, { 0x00001852 } }, { 0x00001853, 1, { 0x00001853 } }, { 0x00001854, 1, { 0x00001854 } }, { 0x00001855, 1, { 0x00001855 } }, { 0x00001856, 1, { 0x00001856 } }, { 0x00001857, 1, { 0x00001857 } }, { 0x00001858, 1, { 0x00001858 } }, { 0x00001859, 1, { 0x00001859 } }, { 0x0000185a, 1, { 0x0000185a } }, { 0x0000185b, 1, { 0x0000185b } }, { 0x0000185c, 1, { 0x0000185c } }, { 0x0000185d, 1, { 0x0000185d } }, { 0x0000185e, 1, { 0x0000185e } }, { 0x0000185f, 1, { 0x0000185f } }, { 0x00001860, 1, { 0x00001860 } }, { 0x00001861, 1, { 0x00001861 } }, { 0x00001862, 1, { 0x00001862 } }, { 0x00001863, 1, { 0x00001863 } }, { 0x00001864, 1, { 0x00001864 } }, { 0x00001865, 1, { 0x00001865 } }, { 0x00001866, 1, { 0x00001866 } }, { 0x00001867, 1, { 0x00001867 } }, { 0x00001868, 1, { 0x00001868 } }, { 0x00001869, 1, { 0x00001869 } }, { 0x0000186a, 1, { 0x0000186a } }, { 0x0000186b, 1, { 0x0000186b } }, { 0x0000186c, 1, { 0x0000186c } }, { 0x0000186d, 1, { 0x0000186d } }, { 0x0000186e, 1, { 0x0000186e } }, { 0x0000186f, 1, { 0x0000186f } }, { 0x00001870, 1, { 0x00001870 } }, { 0x00001871, 1, { 0x00001871 } }, { 0x00001872, 1, { 0x00001872 } }, { 0x00001873, 1, { 0x00001873 } }, { 0x00001874, 1, { 0x00001874 } }, { 0x00001875, 1, { 0x00001875 } }, { 0x00001876, 1, { 0x00001876 } }, { 0x00001877, 1, { 0x00001877 } }, { 0x00001880, 1, { 0x00001880 } }, { 0x00001881, 1, { 0x00001881 } }, { 0x00001882, 1, { 0x00001882 } }, { 0x00001883, 1, { 0x00001883 } }, { 0x00001884, 1, { 0x00001884 } }, { 0x00001885, 1, { 0x00001885 } }, { 0x00001886, 1, { 0x00001886 } }, { 0x00001887, 1, { 0x00001887 } }, { 0x00001888, 1, { 0x00001888 } }, { 0x00001889, 1, { 0x00001889 } }, { 0x0000188a, 1, { 0x0000188a } }, { 0x0000188b, 1, { 0x0000188b } }, { 0x0000188c, 1, { 0x0000188c } }, { 0x0000188d, 1, { 0x0000188d } }, { 0x0000188e, 1, { 0x0000188e } }, { 0x0000188f, 1, { 0x0000188f } }, { 0x00001890, 1, { 0x00001890 } }, { 0x00001891, 1, { 0x00001891 } }, { 0x00001892, 1, { 0x00001892 } }, { 0x00001893, 1, { 0x00001893 } }, { 0x00001894, 1, { 0x00001894 } }, { 0x00001895, 1, { 0x00001895 } }, { 0x00001896, 1, { 0x00001896 } }, { 0x00001897, 1, { 0x00001897 } }, { 0x00001898, 1, { 0x00001898 } }, { 0x00001899, 1, { 0x00001899 } }, { 0x0000189a, 1, { 0x0000189a } }, { 0x0000189b, 1, { 0x0000189b } }, { 0x0000189c, 1, { 0x0000189c } }, { 0x0000189d, 1, { 0x0000189d } }, { 0x0000189e, 1, { 0x0000189e } }, { 0x0000189f, 1, { 0x0000189f } }, { 0x000018a0, 1, { 0x000018a0 } }, { 0x000018a1, 1, { 0x000018a1 } }, { 0x000018a2, 1, { 0x000018a2 } }, { 0x000018a3, 1, { 0x000018a3 } }, { 0x000018a4, 1, { 0x000018a4 } }, { 0x000018a5, 1, { 0x000018a5 } }, { 0x000018a6, 1, { 0x000018a6 } }, { 0x000018a7, 1, { 0x000018a7 } }, { 0x000018a8, 1, { 0x000018a8 } }, { 0x000018a9, 1, { 0x000018a9 } }, { 0x000018aa, 1, { 0x000018aa } }, { 0x000018b0, 1, { 0x000018b0 } }, { 0x000018b1, 1, { 0x000018b1 } }, { 0x000018b2, 1, { 0x000018b2 } }, { 0x000018b3, 1, { 0x000018b3 } }, { 0x000018b4, 1, { 0x000018b4 } }, { 0x000018b5, 1, { 0x000018b5 } }, { 0x000018b6, 1, { 0x000018b6 } }, { 0x000018b7, 1, { 0x000018b7 } }, { 0x000018b8, 1, { 0x000018b8 } }, { 0x000018b9, 1, { 0x000018b9 } }, { 0x000018ba, 1, { 0x000018ba } }, { 0x000018bb, 1, { 0x000018bb } }, { 0x000018bc, 1, { 0x000018bc } }, { 0x000018bd, 1, { 0x000018bd } }, { 0x000018be, 1, { 0x000018be } }, { 0x000018bf, 1, { 0x000018bf } }, { 0x000018c0, 1, { 0x000018c0 } }, { 0x000018c1, 1, { 0x000018c1 } }, { 0x000018c2, 1, { 0x000018c2 } }, { 0x000018c3, 1, { 0x000018c3 } }, { 0x000018c4, 1, { 0x000018c4 } }, { 0x000018c5, 1, { 0x000018c5 } }, { 0x000018c6, 1, { 0x000018c6 } }, { 0x000018c7, 1, { 0x000018c7 } }, { 0x000018c8, 1, { 0x000018c8 } }, { 0x000018c9, 1, { 0x000018c9 } }, { 0x000018ca, 1, { 0x000018ca } }, { 0x000018cb, 1, { 0x000018cb } }, { 0x000018cc, 1, { 0x000018cc } }, { 0x000018cd, 1, { 0x000018cd } }, { 0x000018ce, 1, { 0x000018ce } }, { 0x000018cf, 1, { 0x000018cf } }, { 0x000018d0, 1, { 0x000018d0 } }, { 0x000018d1, 1, { 0x000018d1 } }, { 0x000018d2, 1, { 0x000018d2 } }, { 0x000018d3, 1, { 0x000018d3 } }, { 0x000018d4, 1, { 0x000018d4 } }, { 0x000018d5, 1, { 0x000018d5 } }, { 0x000018d6, 1, { 0x000018d6 } }, { 0x000018d7, 1, { 0x000018d7 } }, { 0x000018d8, 1, { 0x000018d8 } }, { 0x000018d9, 1, { 0x000018d9 } }, { 0x000018da, 1, { 0x000018da } }, { 0x000018db, 1, { 0x000018db } }, { 0x000018dc, 1, { 0x000018dc } }, { 0x000018dd, 1, { 0x000018dd } }, { 0x000018de, 1, { 0x000018de } }, { 0x000018df, 1, { 0x000018df } }, { 0x000018e0, 1, { 0x000018e0 } }, { 0x000018e1, 1, { 0x000018e1 } }, { 0x000018e2, 1, { 0x000018e2 } }, { 0x000018e3, 1, { 0x000018e3 } }, { 0x000018e4, 1, { 0x000018e4 } }, { 0x000018e5, 1, { 0x000018e5 } }, { 0x000018e6, 1, { 0x000018e6 } }, { 0x000018e7, 1, { 0x000018e7 } }, { 0x000018e8, 1, { 0x000018e8 } }, { 0x000018e9, 1, { 0x000018e9 } }, { 0x000018ea, 1, { 0x000018ea } }, { 0x000018eb, 1, { 0x000018eb } }, { 0x000018ec, 1, { 0x000018ec } }, { 0x000018ed, 1, { 0x000018ed } }, { 0x000018ee, 1, { 0x000018ee } }, { 0x000018ef, 1, { 0x000018ef } }, { 0x000018f0, 1, { 0x000018f0 } }, { 0x000018f1, 1, { 0x000018f1 } }, { 0x000018f2, 1, { 0x000018f2 } }, { 0x000018f3, 1, { 0x000018f3 } }, { 0x000018f4, 1, { 0x000018f4 } }, { 0x000018f5, 1, { 0x000018f5 } }, { 0x00001900, 1, { 0x00001900 } }, { 0x00001901, 1, { 0x00001901 } }, { 0x00001902, 1, { 0x00001902 } }, { 0x00001903, 1, { 0x00001903 } }, { 0x00001904, 1, { 0x00001904 } }, { 0x00001905, 1, { 0x00001905 } }, { 0x00001906, 1, { 0x00001906 } }, { 0x00001907, 1, { 0x00001907 } }, { 0x00001908, 1, { 0x00001908 } }, { 0x00001909, 1, { 0x00001909 } }, { 0x0000190a, 1, { 0x0000190a } }, { 0x0000190b, 1, { 0x0000190b } }, { 0x0000190c, 1, { 0x0000190c } }, { 0x0000190d, 1, { 0x0000190d } }, { 0x0000190e, 1, { 0x0000190e } }, { 0x0000190f, 1, { 0x0000190f } }, { 0x00001910, 1, { 0x00001910 } }, { 0x00001911, 1, { 0x00001911 } }, { 0x00001912, 1, { 0x00001912 } }, { 0x00001913, 1, { 0x00001913 } }, { 0x00001914, 1, { 0x00001914 } }, { 0x00001915, 1, { 0x00001915 } }, { 0x00001916, 1, { 0x00001916 } }, { 0x00001917, 1, { 0x00001917 } }, { 0x00001918, 1, { 0x00001918 } }, { 0x00001919, 1, { 0x00001919 } }, { 0x0000191a, 1, { 0x0000191a } }, { 0x0000191b, 1, { 0x0000191b } }, { 0x0000191c, 1, { 0x0000191c } }, { 0x0000191d, 1, { 0x0000191d } }, { 0x0000191e, 1, { 0x0000191e } }, { 0x00001920, 1, { 0x00001920 } }, { 0x00001921, 1, { 0x00001921 } }, { 0x00001922, 1, { 0x00001922 } }, { 0x00001923, 1, { 0x00001923 } }, { 0x00001924, 1, { 0x00001924 } }, { 0x00001925, 1, { 0x00001925 } }, { 0x00001926, 1, { 0x00001926 } }, { 0x00001927, 1, { 0x00001927 } }, { 0x00001928, 1, { 0x00001928 } }, { 0x00001929, 1, { 0x00001929 } }, { 0x0000192a, 1, { 0x0000192a } }, { 0x0000192b, 1, { 0x0000192b } }, { 0x00001930, 1, { 0x00001930 } }, { 0x00001931, 1, { 0x00001931 } }, { 0x00001932, 1, { 0x00001932 } }, { 0x00001933, 1, { 0x00001933 } }, { 0x00001934, 1, { 0x00001934 } }, { 0x00001935, 1, { 0x00001935 } }, { 0x00001936, 1, { 0x00001936 } }, { 0x00001937, 1, { 0x00001937 } }, { 0x00001938, 1, { 0x00001938 } }, { 0x00001939, 1, { 0x00001939 } }, { 0x0000193a, 1, { 0x0000193a } }, { 0x0000193b, 1, { 0x0000193b } }, { 0x00001940, 1, { 0x00001940 } }, { 0x00001944, 1, { 0x00001944 } }, { 0x00001945, 1, { 0x00001945 } }, { 0x00001946, 1, { 0x00001946 } }, { 0x00001947, 1, { 0x00001947 } }, { 0x00001948, 1, { 0x00001948 } }, { 0x00001949, 1, { 0x00001949 } }, { 0x0000194a, 1, { 0x0000194a } }, { 0x0000194b, 1, { 0x0000194b } }, { 0x0000194c, 1, { 0x0000194c } }, { 0x0000194d, 1, { 0x0000194d } }, { 0x0000194e, 1, { 0x0000194e } }, { 0x0000194f, 1, { 0x0000194f } }, { 0x00001950, 1, { 0x00001950 } }, { 0x00001951, 1, { 0x00001951 } }, { 0x00001952, 1, { 0x00001952 } }, { 0x00001953, 1, { 0x00001953 } }, { 0x00001954, 1, { 0x00001954 } }, { 0x00001955, 1, { 0x00001955 } }, { 0x00001956, 1, { 0x00001956 } }, { 0x00001957, 1, { 0x00001957 } }, { 0x00001958, 1, { 0x00001958 } }, { 0x00001959, 1, { 0x00001959 } }, { 0x0000195a, 1, { 0x0000195a } }, { 0x0000195b, 1, { 0x0000195b } }, { 0x0000195c, 1, { 0x0000195c } }, { 0x0000195d, 1, { 0x0000195d } }, { 0x0000195e, 1, { 0x0000195e } }, { 0x0000195f, 1, { 0x0000195f } }, { 0x00001960, 1, { 0x00001960 } }, { 0x00001961, 1, { 0x00001961 } }, { 0x00001962, 1, { 0x00001962 } }, { 0x00001963, 1, { 0x00001963 } }, { 0x00001964, 1, { 0x00001964 } }, { 0x00001965, 1, { 0x00001965 } }, { 0x00001966, 1, { 0x00001966 } }, { 0x00001967, 1, { 0x00001967 } }, { 0x00001968, 1, { 0x00001968 } }, { 0x00001969, 1, { 0x00001969 } }, { 0x0000196a, 1, { 0x0000196a } }, { 0x0000196b, 1, { 0x0000196b } }, { 0x0000196c, 1, { 0x0000196c } }, { 0x0000196d, 1, { 0x0000196d } }, { 0x00001970, 1, { 0x00001970 } }, { 0x00001971, 1, { 0x00001971 } }, { 0x00001972, 1, { 0x00001972 } }, { 0x00001973, 1, { 0x00001973 } }, { 0x00001974, 1, { 0x00001974 } }, { 0x00001980, 1, { 0x00001980 } }, { 0x00001981, 1, { 0x00001981 } }, { 0x00001982, 1, { 0x00001982 } }, { 0x00001983, 1, { 0x00001983 } }, { 0x00001984, 1, { 0x00001984 } }, { 0x00001985, 1, { 0x00001985 } }, { 0x00001986, 1, { 0x00001986 } }, { 0x00001987, 1, { 0x00001987 } }, { 0x00001988, 1, { 0x00001988 } }, { 0x00001989, 1, { 0x00001989 } }, { 0x0000198a, 1, { 0x0000198a } }, { 0x0000198b, 1, { 0x0000198b } }, { 0x0000198c, 1, { 0x0000198c } }, { 0x0000198d, 1, { 0x0000198d } }, { 0x0000198e, 1, { 0x0000198e } }, { 0x0000198f, 1, { 0x0000198f } }, { 0x00001990, 1, { 0x00001990 } }, { 0x00001991, 1, { 0x00001991 } }, { 0x00001992, 1, { 0x00001992 } }, { 0x00001993, 1, { 0x00001993 } }, { 0x00001994, 1, { 0x00001994 } }, { 0x00001995, 1, { 0x00001995 } }, { 0x00001996, 1, { 0x00001996 } }, { 0x00001997, 1, { 0x00001997 } }, { 0x00001998, 1, { 0x00001998 } }, { 0x00001999, 1, { 0x00001999 } }, { 0x0000199a, 1, { 0x0000199a } }, { 0x0000199b, 1, { 0x0000199b } }, { 0x0000199c, 1, { 0x0000199c } }, { 0x0000199d, 1, { 0x0000199d } }, { 0x0000199e, 1, { 0x0000199e } }, { 0x0000199f, 1, { 0x0000199f } }, { 0x000019a0, 1, { 0x000019a0 } }, { 0x000019a1, 1, { 0x000019a1 } }, { 0x000019a2, 1, { 0x000019a2 } }, { 0x000019a3, 1, { 0x000019a3 } }, { 0x000019a4, 1, { 0x000019a4 } }, { 0x000019a5, 1, { 0x000019a5 } }, { 0x000019a6, 1, { 0x000019a6 } }, { 0x000019a7, 1, { 0x000019a7 } }, { 0x000019a8, 1, { 0x000019a8 } }, { 0x000019a9, 1, { 0x000019a9 } }, { 0x000019aa, 1, { 0x000019aa } }, { 0x000019ab, 1, { 0x000019ab } }, { 0x000019b0, 1, { 0x000019b0 } }, { 0x000019b1, 1, { 0x000019b1 } }, { 0x000019b2, 1, { 0x000019b2 } }, { 0x000019b3, 1, { 0x000019b3 } }, { 0x000019b4, 1, { 0x000019b4 } }, { 0x000019b5, 1, { 0x000019b5 } }, { 0x000019b6, 1, { 0x000019b6 } }, { 0x000019b7, 1, { 0x000019b7 } }, { 0x000019b8, 1, { 0x000019b8 } }, { 0x000019b9, 1, { 0x000019b9 } }, { 0x000019ba, 1, { 0x000019ba } }, { 0x000019bb, 1, { 0x000019bb } }, { 0x000019bc, 1, { 0x000019bc } }, { 0x000019bd, 1, { 0x000019bd } }, { 0x000019be, 1, { 0x000019be } }, { 0x000019bf, 1, { 0x000019bf } }, { 0x000019c0, 1, { 0x000019c0 } }, { 0x000019c1, 1, { 0x000019c1 } }, { 0x000019c2, 1, { 0x000019c2 } }, { 0x000019c3, 1, { 0x000019c3 } }, { 0x000019c4, 1, { 0x000019c4 } }, { 0x000019c5, 1, { 0x000019c5 } }, { 0x000019c6, 1, { 0x000019c6 } }, { 0x000019c7, 1, { 0x000019c7 } }, { 0x000019c8, 1, { 0x000019c8 } }, { 0x000019c9, 1, { 0x000019c9 } }, { 0x000019d0, 1, { 0x000019d0 } }, { 0x000019d1, 1, { 0x000019d1 } }, { 0x000019d2, 1, { 0x000019d2 } }, { 0x000019d3, 1, { 0x000019d3 } }, { 0x000019d4, 1, { 0x000019d4 } }, { 0x000019d5, 1, { 0x000019d5 } }, { 0x000019d6, 1, { 0x000019d6 } }, { 0x000019d7, 1, { 0x000019d7 } }, { 0x000019d8, 1, { 0x000019d8 } }, { 0x000019d9, 1, { 0x000019d9 } }, { 0x000019da, 1, { 0x000019da } }, { 0x000019de, 1, { 0x000019de } }, { 0x000019df, 1, { 0x000019df } }, { 0x000019e0, 1, { 0x000019e0 } }, { 0x000019e1, 1, { 0x000019e1 } }, { 0x000019e2, 1, { 0x000019e2 } }, { 0x000019e3, 1, { 0x000019e3 } }, { 0x000019e4, 1, { 0x000019e4 } }, { 0x000019e5, 1, { 0x000019e5 } }, { 0x000019e6, 1, { 0x000019e6 } }, { 0x000019e7, 1, { 0x000019e7 } }, { 0x000019e8, 1, { 0x000019e8 } }, { 0x000019e9, 1, { 0x000019e9 } }, { 0x000019ea, 1, { 0x000019ea } }, { 0x000019eb, 1, { 0x000019eb } }, { 0x000019ec, 1, { 0x000019ec } }, { 0x000019ed, 1, { 0x000019ed } }, { 0x000019ee, 1, { 0x000019ee } }, { 0x000019ef, 1, { 0x000019ef } }, { 0x000019f0, 1, { 0x000019f0 } }, { 0x000019f1, 1, { 0x000019f1 } }, { 0x000019f2, 1, { 0x000019f2 } }, { 0x000019f3, 1, { 0x000019f3 } }, { 0x000019f4, 1, { 0x000019f4 } }, { 0x000019f5, 1, { 0x000019f5 } }, { 0x000019f6, 1, { 0x000019f6 } }, { 0x000019f7, 1, { 0x000019f7 } }, { 0x000019f8, 1, { 0x000019f8 } }, { 0x000019f9, 1, { 0x000019f9 } }, { 0x000019fa, 1, { 0x000019fa } }, { 0x000019fb, 1, { 0x000019fb } }, { 0x000019fc, 1, { 0x000019fc } }, { 0x000019fd, 1, { 0x000019fd } }, { 0x000019fe, 1, { 0x000019fe } }, { 0x000019ff, 1, { 0x000019ff } }, { 0x00001a00, 1, { 0x00001a00 } }, { 0x00001a01, 1, { 0x00001a01 } }, { 0x00001a02, 1, { 0x00001a02 } }, { 0x00001a03, 1, { 0x00001a03 } }, { 0x00001a04, 1, { 0x00001a04 } }, { 0x00001a05, 1, { 0x00001a05 } }, { 0x00001a06, 1, { 0x00001a06 } }, { 0x00001a07, 1, { 0x00001a07 } }, { 0x00001a08, 1, { 0x00001a08 } }, { 0x00001a09, 1, { 0x00001a09 } }, { 0x00001a0a, 1, { 0x00001a0a } }, { 0x00001a0b, 1, { 0x00001a0b } }, { 0x00001a0c, 1, { 0x00001a0c } }, { 0x00001a0d, 1, { 0x00001a0d } }, { 0x00001a0e, 1, { 0x00001a0e } }, { 0x00001a0f, 1, { 0x00001a0f } }, { 0x00001a10, 1, { 0x00001a10 } }, { 0x00001a11, 1, { 0x00001a11 } }, { 0x00001a12, 1, { 0x00001a12 } }, { 0x00001a13, 1, { 0x00001a13 } }, { 0x00001a14, 1, { 0x00001a14 } }, { 0x00001a15, 1, { 0x00001a15 } }, { 0x00001a16, 1, { 0x00001a16 } }, { 0x00001a17, 1, { 0x00001a17 } }, { 0x00001a18, 1, { 0x00001a18 } }, { 0x00001a19, 1, { 0x00001a19 } }, { 0x00001a1a, 1, { 0x00001a1a } }, { 0x00001a1b, 1, { 0x00001a1b } }, { 0x00001a1e, 1, { 0x00001a1e } }, { 0x00001a1f, 1, { 0x00001a1f } }, { 0x00001a20, 1, { 0x00001a20 } }, { 0x00001a21, 1, { 0x00001a21 } }, { 0x00001a22, 1, { 0x00001a22 } }, { 0x00001a23, 1, { 0x00001a23 } }, { 0x00001a24, 1, { 0x00001a24 } }, { 0x00001a25, 1, { 0x00001a25 } }, { 0x00001a26, 1, { 0x00001a26 } }, { 0x00001a27, 1, { 0x00001a27 } }, { 0x00001a28, 1, { 0x00001a28 } }, { 0x00001a29, 1, { 0x00001a29 } }, { 0x00001a2a, 1, { 0x00001a2a } }, { 0x00001a2b, 1, { 0x00001a2b } }, { 0x00001a2c, 1, { 0x00001a2c } }, { 0x00001a2d, 1, { 0x00001a2d } }, { 0x00001a2e, 1, { 0x00001a2e } }, { 0x00001a2f, 1, { 0x00001a2f } }, { 0x00001a30, 1, { 0x00001a30 } }, { 0x00001a31, 1, { 0x00001a31 } }, { 0x00001a32, 1, { 0x00001a32 } }, { 0x00001a33, 1, { 0x00001a33 } }, { 0x00001a34, 1, { 0x00001a34 } }, { 0x00001a35, 1, { 0x00001a35 } }, { 0x00001a36, 1, { 0x00001a36 } }, { 0x00001a37, 1, { 0x00001a37 } }, { 0x00001a38, 1, { 0x00001a38 } }, { 0x00001a39, 1, { 0x00001a39 } }, { 0x00001a3a, 1, { 0x00001a3a } }, { 0x00001a3b, 1, { 0x00001a3b } }, { 0x00001a3c, 1, { 0x00001a3c } }, { 0x00001a3d, 1, { 0x00001a3d } }, { 0x00001a3e, 1, { 0x00001a3e } }, { 0x00001a3f, 1, { 0x00001a3f } }, { 0x00001a40, 1, { 0x00001a40 } }, { 0x00001a41, 1, { 0x00001a41 } }, { 0x00001a42, 1, { 0x00001a42 } }, { 0x00001a43, 1, { 0x00001a43 } }, { 0x00001a44, 1, { 0x00001a44 } }, { 0x00001a45, 1, { 0x00001a45 } }, { 0x00001a46, 1, { 0x00001a46 } }, { 0x00001a47, 1, { 0x00001a47 } }, { 0x00001a48, 1, { 0x00001a48 } }, { 0x00001a49, 1, { 0x00001a49 } }, { 0x00001a4a, 1, { 0x00001a4a } }, { 0x00001a4b, 1, { 0x00001a4b } }, { 0x00001a4c, 1, { 0x00001a4c } }, { 0x00001a4d, 1, { 0x00001a4d } }, { 0x00001a4e, 1, { 0x00001a4e } }, { 0x00001a4f, 1, { 0x00001a4f } }, { 0x00001a50, 1, { 0x00001a50 } }, { 0x00001a51, 1, { 0x00001a51 } }, { 0x00001a52, 1, { 0x00001a52 } }, { 0x00001a53, 1, { 0x00001a53 } }, { 0x00001a54, 1, { 0x00001a54 } }, { 0x00001a55, 1, { 0x00001a55 } }, { 0x00001a56, 1, { 0x00001a56 } }, { 0x00001a57, 1, { 0x00001a57 } }, { 0x00001a58, 1, { 0x00001a58 } }, { 0x00001a59, 1, { 0x00001a59 } }, { 0x00001a5a, 1, { 0x00001a5a } }, { 0x00001a5b, 1, { 0x00001a5b } }, { 0x00001a5c, 1, { 0x00001a5c } }, { 0x00001a5d, 1, { 0x00001a5d } }, { 0x00001a5e, 1, { 0x00001a5e } }, { 0x00001a60, 1, { 0x00001a60 } }, { 0x00001a61, 1, { 0x00001a61 } }, { 0x00001a62, 1, { 0x00001a62 } }, { 0x00001a63, 1, { 0x00001a63 } }, { 0x00001a64, 1, { 0x00001a64 } }, { 0x00001a65, 1, { 0x00001a65 } }, { 0x00001a66, 1, { 0x00001a66 } }, { 0x00001a67, 1, { 0x00001a67 } }, { 0x00001a68, 1, { 0x00001a68 } }, { 0x00001a69, 1, { 0x00001a69 } }, { 0x00001a6a, 1, { 0x00001a6a } }, { 0x00001a6b, 1, { 0x00001a6b } }, { 0x00001a6c, 1, { 0x00001a6c } }, { 0x00001a6d, 1, { 0x00001a6d } }, { 0x00001a6e, 1, { 0x00001a6e } }, { 0x00001a6f, 1, { 0x00001a6f } }, { 0x00001a70, 1, { 0x00001a70 } }, { 0x00001a71, 1, { 0x00001a71 } }, { 0x00001a72, 1, { 0x00001a72 } }, { 0x00001a73, 1, { 0x00001a73 } }, { 0x00001a74, 1, { 0x00001a74 } }, { 0x00001a75, 1, { 0x00001a75 } }, { 0x00001a76, 1, { 0x00001a76 } }, { 0x00001a77, 1, { 0x00001a77 } }, { 0x00001a78, 1, { 0x00001a78 } }, { 0x00001a79, 1, { 0x00001a79 } }, { 0x00001a7a, 1, { 0x00001a7a } }, { 0x00001a7b, 1, { 0x00001a7b } }, { 0x00001a7c, 1, { 0x00001a7c } }, { 0x00001a7f, 1, { 0x00001a7f } }, { 0x00001a80, 1, { 0x00001a80 } }, { 0x00001a81, 1, { 0x00001a81 } }, { 0x00001a82, 1, { 0x00001a82 } }, { 0x00001a83, 1, { 0x00001a83 } }, { 0x00001a84, 1, { 0x00001a84 } }, { 0x00001a85, 1, { 0x00001a85 } }, { 0x00001a86, 1, { 0x00001a86 } }, { 0x00001a87, 1, { 0x00001a87 } }, { 0x00001a88, 1, { 0x00001a88 } }, { 0x00001a89, 1, { 0x00001a89 } }, { 0x00001a90, 1, { 0x00001a90 } }, { 0x00001a91, 1, { 0x00001a91 } }, { 0x00001a92, 1, { 0x00001a92 } }, { 0x00001a93, 1, { 0x00001a93 } }, { 0x00001a94, 1, { 0x00001a94 } }, { 0x00001a95, 1, { 0x00001a95 } }, { 0x00001a96, 1, { 0x00001a96 } }, { 0x00001a97, 1, { 0x00001a97 } }, { 0x00001a98, 1, { 0x00001a98 } }, { 0x00001a99, 1, { 0x00001a99 } }, { 0x00001aa0, 1, { 0x00001aa0 } }, { 0x00001aa1, 1, { 0x00001aa1 } }, { 0x00001aa2, 1, { 0x00001aa2 } }, { 0x00001aa3, 1, { 0x00001aa3 } }, { 0x00001aa4, 1, { 0x00001aa4 } }, { 0x00001aa5, 1, { 0x00001aa5 } }, { 0x00001aa6, 1, { 0x00001aa6 } }, { 0x00001aa7, 1, { 0x00001aa7 } }, { 0x00001aa8, 1, { 0x00001aa8 } }, { 0x00001aa9, 1, { 0x00001aa9 } }, { 0x00001aaa, 1, { 0x00001aaa } }, { 0x00001aab, 1, { 0x00001aab } }, { 0x00001aac, 1, { 0x00001aac } }, { 0x00001aad, 1, { 0x00001aad } }, { 0x00001ab0, 1, { 0x00001ab0 } }, { 0x00001ab1, 1, { 0x00001ab1 } }, { 0x00001ab2, 1, { 0x00001ab2 } }, { 0x00001ab3, 1, { 0x00001ab3 } }, { 0x00001ab4, 1, { 0x00001ab4 } }, { 0x00001ab5, 1, { 0x00001ab5 } }, { 0x00001ab6, 1, { 0x00001ab6 } }, { 0x00001ab7, 1, { 0x00001ab7 } }, { 0x00001ab8, 1, { 0x00001ab8 } }, { 0x00001ab9, 1, { 0x00001ab9 } }, { 0x00001aba, 1, { 0x00001aba } }, { 0x00001abb, 1, { 0x00001abb } }, { 0x00001abc, 1, { 0x00001abc } }, { 0x00001abd, 1, { 0x00001abd } }, { 0x00001abe, 1, { 0x00001abe } }, { 0x00001b00, 1, { 0x00001b00 } }, { 0x00001b01, 1, { 0x00001b01 } }, { 0x00001b02, 1, { 0x00001b02 } }, { 0x00001b03, 1, { 0x00001b03 } }, { 0x00001b04, 1, { 0x00001b04 } }, { 0x00001b05, 1, { 0x00001b05 } }, { 0x00001b06, 2, { 0x00001b05, 0x00001b35 } }, { 0x00001b07, 1, { 0x00001b07 } }, { 0x00001b08, 2, { 0x00001b07, 0x00001b35 } }, { 0x00001b09, 1, { 0x00001b09 } }, { 0x00001b0a, 2, { 0x00001b09, 0x00001b35 } }, { 0x00001b0b, 1, { 0x00001b0b } }, { 0x00001b0c, 2, { 0x00001b0b, 0x00001b35 } }, { 0x00001b0d, 1, { 0x00001b0d } }, { 0x00001b0e, 2, { 0x00001b0d, 0x00001b35 } }, { 0x00001b0f, 1, { 0x00001b0f } }, { 0x00001b10, 1, { 0x00001b10 } }, { 0x00001b11, 1, { 0x00001b11 } }, { 0x00001b12, 2, { 0x00001b11, 0x00001b35 } }, { 0x00001b13, 1, { 0x00001b13 } }, { 0x00001b14, 1, { 0x00001b14 } }, { 0x00001b15, 1, { 0x00001b15 } }, { 0x00001b16, 1, { 0x00001b16 } }, { 0x00001b17, 1, { 0x00001b17 } }, { 0x00001b18, 1, { 0x00001b18 } }, { 0x00001b19, 1, { 0x00001b19 } }, { 0x00001b1a, 1, { 0x00001b1a } }, { 0x00001b1b, 1, { 0x00001b1b } }, { 0x00001b1c, 1, { 0x00001b1c } }, { 0x00001b1d, 1, { 0x00001b1d } }, { 0x00001b1e, 1, { 0x00001b1e } }, { 0x00001b1f, 1, { 0x00001b1f } }, { 0x00001b20, 1, { 0x00001b20 } }, { 0x00001b21, 1, { 0x00001b21 } }, { 0x00001b22, 1, { 0x00001b22 } }, { 0x00001b23, 1, { 0x00001b23 } }, { 0x00001b24, 1, { 0x00001b24 } }, { 0x00001b25, 1, { 0x00001b25 } }, { 0x00001b26, 1, { 0x00001b26 } }, { 0x00001b27, 1, { 0x00001b27 } }, { 0x00001b28, 1, { 0x00001b28 } }, { 0x00001b29, 1, { 0x00001b29 } }, { 0x00001b2a, 1, { 0x00001b2a } }, { 0x00001b2b, 1, { 0x00001b2b } }, { 0x00001b2c, 1, { 0x00001b2c } }, { 0x00001b2d, 1, { 0x00001b2d } }, { 0x00001b2e, 1, { 0x00001b2e } }, { 0x00001b2f, 1, { 0x00001b2f } }, { 0x00001b30, 1, { 0x00001b30 } }, { 0x00001b31, 1, { 0x00001b31 } }, { 0x00001b32, 1, { 0x00001b32 } }, { 0x00001b33, 1, { 0x00001b33 } }, { 0x00001b34, 1, { 0x00001b34 } }, { 0x00001b35, 1, { 0x00001b35 } }, { 0x00001b36, 1, { 0x00001b36 } }, { 0x00001b37, 1, { 0x00001b37 } }, { 0x00001b38, 1, { 0x00001b38 } }, { 0x00001b39, 1, { 0x00001b39 } }, { 0x00001b3a, 1, { 0x00001b3a } }, { 0x00001b3b, 2, { 0x00001b3a, 0x00001b35 } }, { 0x00001b3c, 1, { 0x00001b3c } }, { 0x00001b3d, 2, { 0x00001b3c, 0x00001b35 } }, { 0x00001b3e, 1, { 0x00001b3e } }, { 0x00001b3f, 1, { 0x00001b3f } }, { 0x00001b40, 2, { 0x00001b3e, 0x00001b35 } }, { 0x00001b41, 2, { 0x00001b3f, 0x00001b35 } }, { 0x00001b42, 1, { 0x00001b42 } }, { 0x00001b43, 2, { 0x00001b42, 0x00001b35 } }, { 0x00001b44, 1, { 0x00001b44 } }, { 0x00001b45, 1, { 0x00001b45 } }, { 0x00001b46, 1, { 0x00001b46 } }, { 0x00001b47, 1, { 0x00001b47 } }, { 0x00001b48, 1, { 0x00001b48 } }, { 0x00001b49, 1, { 0x00001b49 } }, { 0x00001b4a, 1, { 0x00001b4a } }, { 0x00001b4b, 1, { 0x00001b4b } }, { 0x00001b50, 1, { 0x00001b50 } }, { 0x00001b51, 1, { 0x00001b51 } }, { 0x00001b52, 1, { 0x00001b52 } }, { 0x00001b53, 1, { 0x00001b53 } }, { 0x00001b54, 1, { 0x00001b54 } }, { 0x00001b55, 1, { 0x00001b55 } }, { 0x00001b56, 1, { 0x00001b56 } }, { 0x00001b57, 1, { 0x00001b57 } }, { 0x00001b58, 1, { 0x00001b58 } }, { 0x00001b59, 1, { 0x00001b59 } }, { 0x00001b5a, 1, { 0x00001b5a } }, { 0x00001b5b, 1, { 0x00001b5b } }, { 0x00001b5c, 1, { 0x00001b5c } }, { 0x00001b5d, 1, { 0x00001b5d } }, { 0x00001b5e, 1, { 0x00001b5e } }, { 0x00001b5f, 1, { 0x00001b5f } }, { 0x00001b60, 1, { 0x00001b60 } }, { 0x00001b61, 1, { 0x00001b61 } }, { 0x00001b62, 1, { 0x00001b62 } }, { 0x00001b63, 1, { 0x00001b63 } }, { 0x00001b64, 1, { 0x00001b64 } }, { 0x00001b65, 1, { 0x00001b65 } }, { 0x00001b66, 1, { 0x00001b66 } }, { 0x00001b67, 1, { 0x00001b67 } }, { 0x00001b68, 1, { 0x00001b68 } }, { 0x00001b69, 1, { 0x00001b69 } }, { 0x00001b6a, 1, { 0x00001b6a } }, { 0x00001b6b, 1, { 0x00001b6b } }, { 0x00001b6c, 1, { 0x00001b6c } }, { 0x00001b6d, 1, { 0x00001b6d } }, { 0x00001b6e, 1, { 0x00001b6e } }, { 0x00001b6f, 1, { 0x00001b6f } }, { 0x00001b70, 1, { 0x00001b70 } }, { 0x00001b71, 1, { 0x00001b71 } }, { 0x00001b72, 1, { 0x00001b72 } }, { 0x00001b73, 1, { 0x00001b73 } }, { 0x00001b74, 1, { 0x00001b74 } }, { 0x00001b75, 1, { 0x00001b75 } }, { 0x00001b76, 1, { 0x00001b76 } }, { 0x00001b77, 1, { 0x00001b77 } }, { 0x00001b78, 1, { 0x00001b78 } }, { 0x00001b79, 1, { 0x00001b79 } }, { 0x00001b7a, 1, { 0x00001b7a } }, { 0x00001b7b, 1, { 0x00001b7b } }, { 0x00001b7c, 1, { 0x00001b7c } }, { 0x00001b80, 1, { 0x00001b80 } }, { 0x00001b81, 1, { 0x00001b81 } }, { 0x00001b82, 1, { 0x00001b82 } }, { 0x00001b83, 1, { 0x00001b83 } }, { 0x00001b84, 1, { 0x00001b84 } }, { 0x00001b85, 1, { 0x00001b85 } }, { 0x00001b86, 1, { 0x00001b86 } }, { 0x00001b87, 1, { 0x00001b87 } }, { 0x00001b88, 1, { 0x00001b88 } }, { 0x00001b89, 1, { 0x00001b89 } }, { 0x00001b8a, 1, { 0x00001b8a } }, { 0x00001b8b, 1, { 0x00001b8b } }, { 0x00001b8c, 1, { 0x00001b8c } }, { 0x00001b8d, 1, { 0x00001b8d } }, { 0x00001b8e, 1, { 0x00001b8e } }, { 0x00001b8f, 1, { 0x00001b8f } }, { 0x00001b90, 1, { 0x00001b90 } }, { 0x00001b91, 1, { 0x00001b91 } }, { 0x00001b92, 1, { 0x00001b92 } }, { 0x00001b93, 1, { 0x00001b93 } }, { 0x00001b94, 1, { 0x00001b94 } }, { 0x00001b95, 1, { 0x00001b95 } }, { 0x00001b96, 1, { 0x00001b96 } }, { 0x00001b97, 1, { 0x00001b97 } }, { 0x00001b98, 1, { 0x00001b98 } }, { 0x00001b99, 1, { 0x00001b99 } }, { 0x00001b9a, 1, { 0x00001b9a } }, { 0x00001b9b, 1, { 0x00001b9b } }, { 0x00001b9c, 1, { 0x00001b9c } }, { 0x00001b9d, 1, { 0x00001b9d } }, { 0x00001b9e, 1, { 0x00001b9e } }, { 0x00001b9f, 1, { 0x00001b9f } }, { 0x00001ba0, 1, { 0x00001ba0 } }, { 0x00001ba1, 1, { 0x00001ba1 } }, { 0x00001ba2, 1, { 0x00001ba2 } }, { 0x00001ba3, 1, { 0x00001ba3 } }, { 0x00001ba4, 1, { 0x00001ba4 } }, { 0x00001ba5, 1, { 0x00001ba5 } }, { 0x00001ba6, 1, { 0x00001ba6 } }, { 0x00001ba7, 1, { 0x00001ba7 } }, { 0x00001ba8, 1, { 0x00001ba8 } }, { 0x00001ba9, 1, { 0x00001ba9 } }, { 0x00001baa, 1, { 0x00001baa } }, { 0x00001bab, 1, { 0x00001bab } }, { 0x00001bac, 1, { 0x00001bac } }, { 0x00001bad, 1, { 0x00001bad } }, { 0x00001bae, 1, { 0x00001bae } }, { 0x00001baf, 1, { 0x00001baf } }, { 0x00001bb0, 1, { 0x00001bb0 } }, { 0x00001bb1, 1, { 0x00001bb1 } }, { 0x00001bb2, 1, { 0x00001bb2 } }, { 0x00001bb3, 1, { 0x00001bb3 } }, { 0x00001bb4, 1, { 0x00001bb4 } }, { 0x00001bb5, 1, { 0x00001bb5 } }, { 0x00001bb6, 1, { 0x00001bb6 } }, { 0x00001bb7, 1, { 0x00001bb7 } }, { 0x00001bb8, 1, { 0x00001bb8 } }, { 0x00001bb9, 1, { 0x00001bb9 } }, { 0x00001bba, 1, { 0x00001bba } }, { 0x00001bbb, 1, { 0x00001bbb } }, { 0x00001bbc, 1, { 0x00001bbc } }, { 0x00001bbd, 1, { 0x00001bbd } }, { 0x00001bbe, 1, { 0x00001bbe } }, { 0x00001bbf, 1, { 0x00001bbf } }, { 0x00001bc0, 1, { 0x00001bc0 } }, { 0x00001bc1, 1, { 0x00001bc1 } }, { 0x00001bc2, 1, { 0x00001bc2 } }, { 0x00001bc3, 1, { 0x00001bc3 } }, { 0x00001bc4, 1, { 0x00001bc4 } }, { 0x00001bc5, 1, { 0x00001bc5 } }, { 0x00001bc6, 1, { 0x00001bc6 } }, { 0x00001bc7, 1, { 0x00001bc7 } }, { 0x00001bc8, 1, { 0x00001bc8 } }, { 0x00001bc9, 1, { 0x00001bc9 } }, { 0x00001bca, 1, { 0x00001bca } }, { 0x00001bcb, 1, { 0x00001bcb } }, { 0x00001bcc, 1, { 0x00001bcc } }, { 0x00001bcd, 1, { 0x00001bcd } }, { 0x00001bce, 1, { 0x00001bce } }, { 0x00001bcf, 1, { 0x00001bcf } }, { 0x00001bd0, 1, { 0x00001bd0 } }, { 0x00001bd1, 1, { 0x00001bd1 } }, { 0x00001bd2, 1, { 0x00001bd2 } }, { 0x00001bd3, 1, { 0x00001bd3 } }, { 0x00001bd4, 1, { 0x00001bd4 } }, { 0x00001bd5, 1, { 0x00001bd5 } }, { 0x00001bd6, 1, { 0x00001bd6 } }, { 0x00001bd7, 1, { 0x00001bd7 } }, { 0x00001bd8, 1, { 0x00001bd8 } }, { 0x00001bd9, 1, { 0x00001bd9 } }, { 0x00001bda, 1, { 0x00001bda } }, { 0x00001bdb, 1, { 0x00001bdb } }, { 0x00001bdc, 1, { 0x00001bdc } }, { 0x00001bdd, 1, { 0x00001bdd } }, { 0x00001bde, 1, { 0x00001bde } }, { 0x00001bdf, 1, { 0x00001bdf } }, { 0x00001be0, 1, { 0x00001be0 } }, { 0x00001be1, 1, { 0x00001be1 } }, { 0x00001be2, 1, { 0x00001be2 } }, { 0x00001be3, 1, { 0x00001be3 } }, { 0x00001be4, 1, { 0x00001be4 } }, { 0x00001be5, 1, { 0x00001be5 } }, { 0x00001be6, 1, { 0x00001be6 } }, { 0x00001be7, 1, { 0x00001be7 } }, { 0x00001be8, 1, { 0x00001be8 } }, { 0x00001be9, 1, { 0x00001be9 } }, { 0x00001bea, 1, { 0x00001bea } }, { 0x00001beb, 1, { 0x00001beb } }, { 0x00001bec, 1, { 0x00001bec } }, { 0x00001bed, 1, { 0x00001bed } }, { 0x00001bee, 1, { 0x00001bee } }, { 0x00001bef, 1, { 0x00001bef } }, { 0x00001bf0, 1, { 0x00001bf0 } }, { 0x00001bf1, 1, { 0x00001bf1 } }, { 0x00001bf2, 1, { 0x00001bf2 } }, { 0x00001bf3, 1, { 0x00001bf3 } }, { 0x00001bfc, 1, { 0x00001bfc } }, { 0x00001bfd, 1, { 0x00001bfd } }, { 0x00001bfe, 1, { 0x00001bfe } }, { 0x00001bff, 1, { 0x00001bff } }, { 0x00001c00, 1, { 0x00001c00 } }, { 0x00001c01, 1, { 0x00001c01 } }, { 0x00001c02, 1, { 0x00001c02 } }, { 0x00001c03, 1, { 0x00001c03 } }, { 0x00001c04, 1, { 0x00001c04 } }, { 0x00001c05, 1, { 0x00001c05 } }, { 0x00001c06, 1, { 0x00001c06 } }, { 0x00001c07, 1, { 0x00001c07 } }, { 0x00001c08, 1, { 0x00001c08 } }, { 0x00001c09, 1, { 0x00001c09 } }, { 0x00001c0a, 1, { 0x00001c0a } }, { 0x00001c0b, 1, { 0x00001c0b } }, { 0x00001c0c, 1, { 0x00001c0c } }, { 0x00001c0d, 1, { 0x00001c0d } }, { 0x00001c0e, 1, { 0x00001c0e } }, { 0x00001c0f, 1, { 0x00001c0f } }, { 0x00001c10, 1, { 0x00001c10 } }, { 0x00001c11, 1, { 0x00001c11 } }, { 0x00001c12, 1, { 0x00001c12 } }, { 0x00001c13, 1, { 0x00001c13 } }, { 0x00001c14, 1, { 0x00001c14 } }, { 0x00001c15, 1, { 0x00001c15 } }, { 0x00001c16, 1, { 0x00001c16 } }, { 0x00001c17, 1, { 0x00001c17 } }, { 0x00001c18, 1, { 0x00001c18 } }, { 0x00001c19, 1, { 0x00001c19 } }, { 0x00001c1a, 1, { 0x00001c1a } }, { 0x00001c1b, 1, { 0x00001c1b } }, { 0x00001c1c, 1, { 0x00001c1c } }, { 0x00001c1d, 1, { 0x00001c1d } }, { 0x00001c1e, 1, { 0x00001c1e } }, { 0x00001c1f, 1, { 0x00001c1f } }, { 0x00001c20, 1, { 0x00001c20 } }, { 0x00001c21, 1, { 0x00001c21 } }, { 0x00001c22, 1, { 0x00001c22 } }, { 0x00001c23, 1, { 0x00001c23 } }, { 0x00001c24, 1, { 0x00001c24 } }, { 0x00001c25, 1, { 0x00001c25 } }, { 0x00001c26, 1, { 0x00001c26 } }, { 0x00001c27, 1, { 0x00001c27 } }, { 0x00001c28, 1, { 0x00001c28 } }, { 0x00001c29, 1, { 0x00001c29 } }, { 0x00001c2a, 1, { 0x00001c2a } }, { 0x00001c2b, 1, { 0x00001c2b } }, { 0x00001c2c, 1, { 0x00001c2c } }, { 0x00001c2d, 1, { 0x00001c2d } }, { 0x00001c2e, 1, { 0x00001c2e } }, { 0x00001c2f, 1, { 0x00001c2f } }, { 0x00001c30, 1, { 0x00001c30 } }, { 0x00001c31, 1, { 0x00001c31 } }, { 0x00001c32, 1, { 0x00001c32 } }, { 0x00001c33, 1, { 0x00001c33 } }, { 0x00001c34, 1, { 0x00001c34 } }, { 0x00001c35, 1, { 0x00001c35 } }, { 0x00001c36, 1, { 0x00001c36 } }, { 0x00001c37, 1, { 0x00001c37 } }, { 0x00001c3b, 1, { 0x00001c3b } }, { 0x00001c3c, 1, { 0x00001c3c } }, { 0x00001c3d, 1, { 0x00001c3d } }, { 0x00001c3e, 1, { 0x00001c3e } }, { 0x00001c3f, 1, { 0x00001c3f } }, { 0x00001c40, 1, { 0x00001c40 } }, { 0x00001c41, 1, { 0x00001c41 } }, { 0x00001c42, 1, { 0x00001c42 } }, { 0x00001c43, 1, { 0x00001c43 } }, { 0x00001c44, 1, { 0x00001c44 } }, { 0x00001c45, 1, { 0x00001c45 } }, { 0x00001c46, 1, { 0x00001c46 } }, { 0x00001c47, 1, { 0x00001c47 } }, { 0x00001c48, 1, { 0x00001c48 } }, { 0x00001c49, 1, { 0x00001c49 } }, { 0x00001c4d, 1, { 0x00001c4d } }, { 0x00001c4e, 1, { 0x00001c4e } }, { 0x00001c4f, 1, { 0x00001c4f } }, { 0x00001c50, 1, { 0x00001c50 } }, { 0x00001c51, 1, { 0x00001c51 } }, { 0x00001c52, 1, { 0x00001c52 } }, { 0x00001c53, 1, { 0x00001c53 } }, { 0x00001c54, 1, { 0x00001c54 } }, { 0x00001c55, 1, { 0x00001c55 } }, { 0x00001c56, 1, { 0x00001c56 } }, { 0x00001c57, 1, { 0x00001c57 } }, { 0x00001c58, 1, { 0x00001c58 } }, { 0x00001c59, 1, { 0x00001c59 } }, { 0x00001c5a, 1, { 0x00001c5a } }, { 0x00001c5b, 1, { 0x00001c5b } }, { 0x00001c5c, 1, { 0x00001c5c } }, { 0x00001c5d, 1, { 0x00001c5d } }, { 0x00001c5e, 1, { 0x00001c5e } }, { 0x00001c5f, 1, { 0x00001c5f } }, { 0x00001c60, 1, { 0x00001c60 } }, { 0x00001c61, 1, { 0x00001c61 } }, { 0x00001c62, 1, { 0x00001c62 } }, { 0x00001c63, 1, { 0x00001c63 } }, { 0x00001c64, 1, { 0x00001c64 } }, { 0x00001c65, 1, { 0x00001c65 } }, { 0x00001c66, 1, { 0x00001c66 } }, { 0x00001c67, 1, { 0x00001c67 } }, { 0x00001c68, 1, { 0x00001c68 } }, { 0x00001c69, 1, { 0x00001c69 } }, { 0x00001c6a, 1, { 0x00001c6a } }, { 0x00001c6b, 1, { 0x00001c6b } }, { 0x00001c6c, 1, { 0x00001c6c } }, { 0x00001c6d, 1, { 0x00001c6d } }, { 0x00001c6e, 1, { 0x00001c6e } }, { 0x00001c6f, 1, { 0x00001c6f } }, { 0x00001c70, 1, { 0x00001c70 } }, { 0x00001c71, 1, { 0x00001c71 } }, { 0x00001c72, 1, { 0x00001c72 } }, { 0x00001c73, 1, { 0x00001c73 } }, { 0x00001c74, 1, { 0x00001c74 } }, { 0x00001c75, 1, { 0x00001c75 } }, { 0x00001c76, 1, { 0x00001c76 } }, { 0x00001c77, 1, { 0x00001c77 } }, { 0x00001c78, 1, { 0x00001c78 } }, { 0x00001c79, 1, { 0x00001c79 } }, { 0x00001c7a, 1, { 0x00001c7a } }, { 0x00001c7b, 1, { 0x00001c7b } }, { 0x00001c7c, 1, { 0x00001c7c } }, { 0x00001c7d, 1, { 0x00001c7d } }, { 0x00001c7e, 1, { 0x00001c7e } }, { 0x00001c7f, 1, { 0x00001c7f } }, { 0x00001c80, 1, { 0x00001c80 } }, { 0x00001c81, 1, { 0x00001c81 } }, { 0x00001c82, 1, { 0x00001c82 } }, { 0x00001c83, 1, { 0x00001c83 } }, { 0x00001c84, 1, { 0x00001c84 } }, { 0x00001c85, 1, { 0x00001c85 } }, { 0x00001c86, 1, { 0x00001c86 } }, { 0x00001c87, 1, { 0x00001c87 } }, { 0x00001c88, 1, { 0x00001c88 } }, { 0x00001cc0, 1, { 0x00001cc0 } }, { 0x00001cc1, 1, { 0x00001cc1 } }, { 0x00001cc2, 1, { 0x00001cc2 } }, { 0x00001cc3, 1, { 0x00001cc3 } }, { 0x00001cc4, 1, { 0x00001cc4 } }, { 0x00001cc5, 1, { 0x00001cc5 } }, { 0x00001cc6, 1, { 0x00001cc6 } }, { 0x00001cc7, 1, { 0x00001cc7 } }, { 0x00001cd0, 1, { 0x00001cd0 } }, { 0x00001cd1, 1, { 0x00001cd1 } }, { 0x00001cd2, 1, { 0x00001cd2 } }, { 0x00001cd3, 1, { 0x00001cd3 } }, { 0x00001cd4, 1, { 0x00001cd4 } }, { 0x00001cd5, 1, { 0x00001cd5 } }, { 0x00001cd6, 1, { 0x00001cd6 } }, { 0x00001cd7, 1, { 0x00001cd7 } }, { 0x00001cd8, 1, { 0x00001cd8 } }, { 0x00001cd9, 1, { 0x00001cd9 } }, { 0x00001cda, 1, { 0x00001cda } }, { 0x00001cdb, 1, { 0x00001cdb } }, { 0x00001cdc, 1, { 0x00001cdc } }, { 0x00001cdd, 1, { 0x00001cdd } }, { 0x00001cde, 1, { 0x00001cde } }, { 0x00001cdf, 1, { 0x00001cdf } }, { 0x00001ce0, 1, { 0x00001ce0 } }, { 0x00001ce1, 1, { 0x00001ce1 } }, { 0x00001ce2, 1, { 0x00001ce2 } }, { 0x00001ce3, 1, { 0x00001ce3 } }, { 0x00001ce4, 1, { 0x00001ce4 } }, { 0x00001ce5, 1, { 0x00001ce5 } }, { 0x00001ce6, 1, { 0x00001ce6 } }, { 0x00001ce7, 1, { 0x00001ce7 } }, { 0x00001ce8, 1, { 0x00001ce8 } }, { 0x00001ce9, 1, { 0x00001ce9 } }, { 0x00001cea, 1, { 0x00001cea } }, { 0x00001ceb, 1, { 0x00001ceb } }, { 0x00001cec, 1, { 0x00001cec } }, { 0x00001ced, 1, { 0x00001ced } }, { 0x00001cee, 1, { 0x00001cee } }, { 0x00001cef, 1, { 0x00001cef } }, { 0x00001cf0, 1, { 0x00001cf0 } }, { 0x00001cf1, 1, { 0x00001cf1 } }, { 0x00001cf2, 1, { 0x00001cf2 } }, { 0x00001cf3, 1, { 0x00001cf3 } }, { 0x00001cf4, 1, { 0x00001cf4 } }, { 0x00001cf5, 1, { 0x00001cf5 } }, { 0x00001cf6, 1, { 0x00001cf6 } }, { 0x00001cf8, 1, { 0x00001cf8 } }, { 0x00001cf9, 1, { 0x00001cf9 } }, { 0x00001d00, 1, { 0x00001d00 } }, { 0x00001d01, 1, { 0x00001d01 } }, { 0x00001d02, 1, { 0x00001d02 } }, { 0x00001d03, 1, { 0x00001d03 } }, { 0x00001d04, 1, { 0x00001d04 } }, { 0x00001d05, 1, { 0x00001d05 } }, { 0x00001d06, 1, { 0x00001d06 } }, { 0x00001d07, 1, { 0x00001d07 } }, { 0x00001d08, 1, { 0x00001d08 } }, { 0x00001d09, 1, { 0x00001d09 } }, { 0x00001d0a, 1, { 0x00001d0a } }, { 0x00001d0b, 1, { 0x00001d0b } }, { 0x00001d0c, 1, { 0x00001d0c } }, { 0x00001d0d, 1, { 0x00001d0d } }, { 0x00001d0e, 1, { 0x00001d0e } }, { 0x00001d0f, 1, { 0x00001d0f } }, { 0x00001d10, 1, { 0x00001d10 } }, { 0x00001d11, 1, { 0x00001d11 } }, { 0x00001d12, 1, { 0x00001d12 } }, { 0x00001d13, 1, { 0x00001d13 } }, { 0x00001d14, 1, { 0x00001d14 } }, { 0x00001d15, 1, { 0x00001d15 } }, { 0x00001d16, 1, { 0x00001d16 } }, { 0x00001d17, 1, { 0x00001d17 } }, { 0x00001d18, 1, { 0x00001d18 } }, { 0x00001d19, 1, { 0x00001d19 } }, { 0x00001d1a, 1, { 0x00001d1a } }, { 0x00001d1b, 1, { 0x00001d1b } }, { 0x00001d1c, 1, { 0x00001d1c } }, { 0x00001d1d, 1, { 0x00001d1d } }, { 0x00001d1e, 1, { 0x00001d1e } }, { 0x00001d1f, 1, { 0x00001d1f } }, { 0x00001d20, 1, { 0x00001d20 } }, { 0x00001d21, 1, { 0x00001d21 } }, { 0x00001d22, 1, { 0x00001d22 } }, { 0x00001d23, 1, { 0x00001d23 } }, { 0x00001d24, 1, { 0x00001d24 } }, { 0x00001d25, 1, { 0x00001d25 } }, { 0x00001d26, 1, { 0x00001d26 } }, { 0x00001d27, 1, { 0x00001d27 } }, { 0x00001d28, 1, { 0x00001d28 } }, { 0x00001d29, 1, { 0x00001d29 } }, { 0x00001d2a, 1, { 0x00001d2a } }, { 0x00001d2b, 1, { 0x00001d2b } }, { 0x00001d2c, 1, { 0x00001d2c } }, { 0x00001d2d, 1, { 0x00001d2d } }, { 0x00001d2e, 1, { 0x00001d2e } }, { 0x00001d2f, 1, { 0x00001d2f } }, { 0x00001d30, 1, { 0x00001d30 } }, { 0x00001d31, 1, { 0x00001d31 } }, { 0x00001d32, 1, { 0x00001d32 } }, { 0x00001d33, 1, { 0x00001d33 } }, { 0x00001d34, 1, { 0x00001d34 } }, { 0x00001d35, 1, { 0x00001d35 } }, { 0x00001d36, 1, { 0x00001d36 } }, { 0x00001d37, 1, { 0x00001d37 } }, { 0x00001d38, 1, { 0x00001d38 } }, { 0x00001d39, 1, { 0x00001d39 } }, { 0x00001d3a, 1, { 0x00001d3a } }, { 0x00001d3b, 1, { 0x00001d3b } }, { 0x00001d3c, 1, { 0x00001d3c } }, { 0x00001d3d, 1, { 0x00001d3d } }, { 0x00001d3e, 1, { 0x00001d3e } }, { 0x00001d3f, 1, { 0x00001d3f } }, { 0x00001d40, 1, { 0x00001d40 } }, { 0x00001d41, 1, { 0x00001d41 } }, { 0x00001d42, 1, { 0x00001d42 } }, { 0x00001d43, 1, { 0x00001d43 } }, { 0x00001d44, 1, { 0x00001d44 } }, { 0x00001d45, 1, { 0x00001d45 } }, { 0x00001d46, 1, { 0x00001d46 } }, { 0x00001d47, 1, { 0x00001d47 } }, { 0x00001d48, 1, { 0x00001d48 } }, { 0x00001d49, 1, { 0x00001d49 } }, { 0x00001d4a, 1, { 0x00001d4a } }, { 0x00001d4b, 1, { 0x00001d4b } }, { 0x00001d4c, 1, { 0x00001d4c } }, { 0x00001d4d, 1, { 0x00001d4d } }, { 0x00001d4e, 1, { 0x00001d4e } }, { 0x00001d4f, 1, { 0x00001d4f } }, { 0x00001d50, 1, { 0x00001d50 } }, { 0x00001d51, 1, { 0x00001d51 } }, { 0x00001d52, 1, { 0x00001d52 } }, { 0x00001d53, 1, { 0x00001d53 } }, { 0x00001d54, 1, { 0x00001d54 } }, { 0x00001d55, 1, { 0x00001d55 } }, { 0x00001d56, 1, { 0x00001d56 } }, { 0x00001d57, 1, { 0x00001d57 } }, { 0x00001d58, 1, { 0x00001d58 } }, { 0x00001d59, 1, { 0x00001d59 } }, { 0x00001d5a, 1, { 0x00001d5a } }, { 0x00001d5b, 1, { 0x00001d5b } }, { 0x00001d5c, 1, { 0x00001d5c } }, { 0x00001d5d, 1, { 0x00001d5d } }, { 0x00001d5e, 1, { 0x00001d5e } }, { 0x00001d5f, 1, { 0x00001d5f } }, { 0x00001d60, 1, { 0x00001d60 } }, { 0x00001d61, 1, { 0x00001d61 } }, { 0x00001d62, 1, { 0x00001d62 } }, { 0x00001d63, 1, { 0x00001d63 } }, { 0x00001d64, 1, { 0x00001d64 } }, { 0x00001d65, 1, { 0x00001d65 } }, { 0x00001d66, 1, { 0x00001d66 } }, { 0x00001d67, 1, { 0x00001d67 } }, { 0x00001d68, 1, { 0x00001d68 } }, { 0x00001d69, 1, { 0x00001d69 } }, { 0x00001d6a, 1, { 0x00001d6a } }, { 0x00001d6b, 1, { 0x00001d6b } }, { 0x00001d6c, 1, { 0x00001d6c } }, { 0x00001d6d, 1, { 0x00001d6d } }, { 0x00001d6e, 1, { 0x00001d6e } }, { 0x00001d6f, 1, { 0x00001d6f } }, { 0x00001d70, 1, { 0x00001d70 } }, { 0x00001d71, 1, { 0x00001d71 } }, { 0x00001d72, 1, { 0x00001d72 } }, { 0x00001d73, 1, { 0x00001d73 } }, { 0x00001d74, 1, { 0x00001d74 } }, { 0x00001d75, 1, { 0x00001d75 } }, { 0x00001d76, 1, { 0x00001d76 } }, { 0x00001d77, 1, { 0x00001d77 } }, { 0x00001d78, 1, { 0x00001d78 } }, { 0x00001d79, 1, { 0x00001d79 } }, { 0x00001d7a, 1, { 0x00001d7a } }, { 0x00001d7b, 1, { 0x00001d7b } }, { 0x00001d7c, 1, { 0x00001d7c } }, { 0x00001d7d, 1, { 0x00001d7d } }, { 0x00001d7e, 1, { 0x00001d7e } }, { 0x00001d7f, 1, { 0x00001d7f } }, { 0x00001d80, 1, { 0x00001d80 } }, { 0x00001d81, 1, { 0x00001d81 } }, { 0x00001d82, 1, { 0x00001d82 } }, { 0x00001d83, 1, { 0x00001d83 } }, { 0x00001d84, 1, { 0x00001d84 } }, { 0x00001d85, 1, { 0x00001d85 } }, { 0x00001d86, 1, { 0x00001d86 } }, { 0x00001d87, 1, { 0x00001d87 } }, { 0x00001d88, 1, { 0x00001d88 } }, { 0x00001d89, 1, { 0x00001d89 } }, { 0x00001d8a, 1, { 0x00001d8a } }, { 0x00001d8b, 1, { 0x00001d8b } }, { 0x00001d8c, 1, { 0x00001d8c } }, { 0x00001d8d, 1, { 0x00001d8d } }, { 0x00001d8e, 1, { 0x00001d8e } }, { 0x00001d8f, 1, { 0x00001d8f } }, { 0x00001d90, 1, { 0x00001d90 } }, { 0x00001d91, 1, { 0x00001d91 } }, { 0x00001d92, 1, { 0x00001d92 } }, { 0x00001d93, 1, { 0x00001d93 } }, { 0x00001d94, 1, { 0x00001d94 } }, { 0x00001d95, 1, { 0x00001d95 } }, { 0x00001d96, 1, { 0x00001d96 } }, { 0x00001d97, 1, { 0x00001d97 } }, { 0x00001d98, 1, { 0x00001d98 } }, { 0x00001d99, 1, { 0x00001d99 } }, { 0x00001d9a, 1, { 0x00001d9a } }, { 0x00001d9b, 1, { 0x00001d9b } }, { 0x00001d9c, 1, { 0x00001d9c } }, { 0x00001d9d, 1, { 0x00001d9d } }, { 0x00001d9e, 1, { 0x00001d9e } }, { 0x00001d9f, 1, { 0x00001d9f } }, { 0x00001da0, 1, { 0x00001da0 } }, { 0x00001da1, 1, { 0x00001da1 } }, { 0x00001da2, 1, { 0x00001da2 } }, { 0x00001da3, 1, { 0x00001da3 } }, { 0x00001da4, 1, { 0x00001da4 } }, { 0x00001da5, 1, { 0x00001da5 } }, { 0x00001da6, 1, { 0x00001da6 } }, { 0x00001da7, 1, { 0x00001da7 } }, { 0x00001da8, 1, { 0x00001da8 } }, { 0x00001da9, 1, { 0x00001da9 } }, { 0x00001daa, 1, { 0x00001daa } }, { 0x00001dab, 1, { 0x00001dab } }, { 0x00001dac, 1, { 0x00001dac } }, { 0x00001dad, 1, { 0x00001dad } }, { 0x00001dae, 1, { 0x00001dae } }, { 0x00001daf, 1, { 0x00001daf } }, { 0x00001db0, 1, { 0x00001db0 } }, { 0x00001db1, 1, { 0x00001db1 } }, { 0x00001db2, 1, { 0x00001db2 } }, { 0x00001db3, 1, { 0x00001db3 } }, { 0x00001db4, 1, { 0x00001db4 } }, { 0x00001db5, 1, { 0x00001db5 } }, { 0x00001db6, 1, { 0x00001db6 } }, { 0x00001db7, 1, { 0x00001db7 } }, { 0x00001db8, 1, { 0x00001db8 } }, { 0x00001db9, 1, { 0x00001db9 } }, { 0x00001dba, 1, { 0x00001dba } }, { 0x00001dbb, 1, { 0x00001dbb } }, { 0x00001dbc, 1, { 0x00001dbc } }, { 0x00001dbd, 1, { 0x00001dbd } }, { 0x00001dbe, 1, { 0x00001dbe } }, { 0x00001dbf, 1, { 0x00001dbf } }, { 0x00001dc0, 1, { 0x00001dc0 } }, { 0x00001dc1, 1, { 0x00001dc1 } }, { 0x00001dc2, 1, { 0x00001dc2 } }, { 0x00001dc3, 1, { 0x00001dc3 } }, { 0x00001dc4, 1, { 0x00001dc4 } }, { 0x00001dc5, 1, { 0x00001dc5 } }, { 0x00001dc6, 1, { 0x00001dc6 } }, { 0x00001dc7, 1, { 0x00001dc7 } }, { 0x00001dc8, 1, { 0x00001dc8 } }, { 0x00001dc9, 1, { 0x00001dc9 } }, { 0x00001dca, 1, { 0x00001dca } }, { 0x00001dcb, 1, { 0x00001dcb } }, { 0x00001dcc, 1, { 0x00001dcc } }, { 0x00001dcd, 1, { 0x00001dcd } }, { 0x00001dce, 1, { 0x00001dce } }, { 0x00001dcf, 1, { 0x00001dcf } }, { 0x00001dd0, 1, { 0x00001dd0 } }, { 0x00001dd1, 1, { 0x00001dd1 } }, { 0x00001dd2, 1, { 0x00001dd2 } }, { 0x00001dd3, 1, { 0x00001dd3 } }, { 0x00001dd4, 1, { 0x00001dd4 } }, { 0x00001dd5, 1, { 0x00001dd5 } }, { 0x00001dd6, 1, { 0x00001dd6 } }, { 0x00001dd7, 1, { 0x00001dd7 } }, { 0x00001dd8, 1, { 0x00001dd8 } }, { 0x00001dd9, 1, { 0x00001dd9 } }, { 0x00001dda, 1, { 0x00001dda } }, { 0x00001ddb, 1, { 0x00001ddb } }, { 0x00001ddc, 1, { 0x00001ddc } }, { 0x00001ddd, 1, { 0x00001ddd } }, { 0x00001dde, 1, { 0x00001dde } }, { 0x00001ddf, 1, { 0x00001ddf } }, { 0x00001de0, 1, { 0x00001de0 } }, { 0x00001de1, 1, { 0x00001de1 } }, { 0x00001de2, 1, { 0x00001de2 } }, { 0x00001de3, 1, { 0x00001de3 } }, { 0x00001de4, 1, { 0x00001de4 } }, { 0x00001de5, 1, { 0x00001de5 } }, { 0x00001de6, 1, { 0x00001de6 } }, { 0x00001de7, 1, { 0x00001de7 } }, { 0x00001de8, 1, { 0x00001de8 } }, { 0x00001de9, 1, { 0x00001de9 } }, { 0x00001dea, 1, { 0x00001dea } }, { 0x00001deb, 1, { 0x00001deb } }, { 0x00001dec, 1, { 0x00001dec } }, { 0x00001ded, 1, { 0x00001ded } }, { 0x00001dee, 1, { 0x00001dee } }, { 0x00001def, 1, { 0x00001def } }, { 0x00001df0, 1, { 0x00001df0 } }, { 0x00001df1, 1, { 0x00001df1 } }, { 0x00001df2, 1, { 0x00001df2 } }, { 0x00001df3, 1, { 0x00001df3 } }, { 0x00001df4, 1, { 0x00001df4 } }, { 0x00001df5, 1, { 0x00001df5 } }, { 0x00001dfb, 1, { 0x00001dfb } }, { 0x00001dfc, 1, { 0x00001dfc } }, { 0x00001dfd, 1, { 0x00001dfd } }, { 0x00001dfe, 1, { 0x00001dfe } }, { 0x00001dff, 1, { 0x00001dff } }, { 0x00001e00, 2, { 0x00000041, 0x00000325 } }, { 0x00001e01, 2, { 0x00000061, 0x00000325 } }, { 0x00001e02, 2, { 0x00000042, 0x00000307 } }, { 0x00001e03, 2, { 0x00000062, 0x00000307 } }, { 0x00001e04, 2, { 0x00000042, 0x00000323 } }, { 0x00001e05, 2, { 0x00000062, 0x00000323 } }, { 0x00001e06, 2, { 0x00000042, 0x00000331 } }, { 0x00001e07, 2, { 0x00000062, 0x00000331 } }, { 0x00001e08, 3, { 0x00000043, 0x00000327, 0x00000301 } }, { 0x00001e09, 3, { 0x00000063, 0x00000327, 0x00000301 } }, { 0x00001e0a, 2, { 0x00000044, 0x00000307 } }, { 0x00001e0b, 2, { 0x00000064, 0x00000307 } }, { 0x00001e0c, 2, { 0x00000044, 0x00000323 } }, { 0x00001e0d, 2, { 0x00000064, 0x00000323 } }, { 0x00001e0e, 2, { 0x00000044, 0x00000331 } }, { 0x00001e0f, 2, { 0x00000064, 0x00000331 } }, { 0x00001e10, 2, { 0x00000044, 0x00000327 } }, { 0x00001e11, 2, { 0x00000064, 0x00000327 } }, { 0x00001e12, 2, { 0x00000044, 0x0000032d } }, { 0x00001e13, 2, { 0x00000064, 0x0000032d } }, { 0x00001e14, 3, { 0x00000045, 0x00000304, 0x00000300 } }, { 0x00001e15, 3, { 0x00000065, 0x00000304, 0x00000300 } }, { 0x00001e16, 3, { 0x00000045, 0x00000304, 0x00000301 } }, { 0x00001e17, 3, { 0x00000065, 0x00000304, 0x00000301 } }, { 0x00001e18, 2, { 0x00000045, 0x0000032d } }, { 0x00001e19, 2, { 0x00000065, 0x0000032d } }, { 0x00001e1a, 2, { 0x00000045, 0x00000330 } }, { 0x00001e1b, 2, { 0x00000065, 0x00000330 } }, { 0x00001e1c, 3, { 0x00000045, 0x00000327, 0x00000306 } }, { 0x00001e1d, 3, { 0x00000065, 0x00000327, 0x00000306 } }, { 0x00001e1e, 2, { 0x00000046, 0x00000307 } }, { 0x00001e1f, 2, { 0x00000066, 0x00000307 } }, { 0x00001e20, 2, { 0x00000047, 0x00000304 } }, { 0x00001e21, 2, { 0x00000067, 0x00000304 } }, { 0x00001e22, 2, { 0x00000048, 0x00000307 } }, { 0x00001e23, 2, { 0x00000068, 0x00000307 } }, { 0x00001e24, 2, { 0x00000048, 0x00000323 } }, { 0x00001e25, 2, { 0x00000068, 0x00000323 } }, { 0x00001e26, 2, { 0x00000048, 0x00000308 } }, { 0x00001e27, 2, { 0x00000068, 0x00000308 } }, { 0x00001e28, 2, { 0x00000048, 0x00000327 } }, { 0x00001e29, 2, { 0x00000068, 0x00000327 } }, { 0x00001e2a, 2, { 0x00000048, 0x0000032e } }, { 0x00001e2b, 2, { 0x00000068, 0x0000032e } }, { 0x00001e2c, 2, { 0x00000049, 0x00000330 } }, { 0x00001e2d, 2, { 0x00000069, 0x00000330 } }, { 0x00001e2e, 3, { 0x00000049, 0x00000308, 0x00000301 } }, { 0x00001e2f, 3, { 0x00000069, 0x00000308, 0x00000301 } }, { 0x00001e30, 2, { 0x0000004b, 0x00000301 } }, { 0x00001e31, 2, { 0x0000006b, 0x00000301 } }, { 0x00001e32, 2, { 0x0000004b, 0x00000323 } }, { 0x00001e33, 2, { 0x0000006b, 0x00000323 } }, { 0x00001e34, 2, { 0x0000004b, 0x00000331 } }, { 0x00001e35, 2, { 0x0000006b, 0x00000331 } }, { 0x00001e36, 2, { 0x0000004c, 0x00000323 } }, { 0x00001e37, 2, { 0x0000006c, 0x00000323 } }, { 0x00001e38, 3, { 0x0000004c, 0x00000323, 0x00000304 } }, { 0x00001e39, 3, { 0x0000006c, 0x00000323, 0x00000304 } }, { 0x00001e3a, 2, { 0x0000004c, 0x00000331 } }, { 0x00001e3b, 2, { 0x0000006c, 0x00000331 } }, { 0x00001e3c, 2, { 0x0000004c, 0x0000032d } }, { 0x00001e3d, 2, { 0x0000006c, 0x0000032d } }, { 0x00001e3e, 2, { 0x0000004d, 0x00000301 } }, { 0x00001e3f, 2, { 0x0000006d, 0x00000301 } }, { 0x00001e40, 2, { 0x0000004d, 0x00000307 } }, { 0x00001e41, 2, { 0x0000006d, 0x00000307 } }, { 0x00001e42, 2, { 0x0000004d, 0x00000323 } }, { 0x00001e43, 2, { 0x0000006d, 0x00000323 } }, { 0x00001e44, 2, { 0x0000004e, 0x00000307 } }, { 0x00001e45, 2, { 0x0000006e, 0x00000307 } }, { 0x00001e46, 2, { 0x0000004e, 0x00000323 } }, { 0x00001e47, 2, { 0x0000006e, 0x00000323 } }, { 0x00001e48, 2, { 0x0000004e, 0x00000331 } }, { 0x00001e49, 2, { 0x0000006e, 0x00000331 } }, { 0x00001e4a, 2, { 0x0000004e, 0x0000032d } }, { 0x00001e4b, 2, { 0x0000006e, 0x0000032d } }, { 0x00001e4c, 3, { 0x0000004f, 0x00000303, 0x00000301 } }, { 0x00001e4d, 3, { 0x0000006f, 0x00000303, 0x00000301 } }, { 0x00001e4e, 3, { 0x0000004f, 0x00000303, 0x00000308 } }, { 0x00001e4f, 3, { 0x0000006f, 0x00000303, 0x00000308 } }, { 0x00001e50, 3, { 0x0000004f, 0x00000304, 0x00000300 } }, { 0x00001e51, 3, { 0x0000006f, 0x00000304, 0x00000300 } }, { 0x00001e52, 3, { 0x0000004f, 0x00000304, 0x00000301 } }, { 0x00001e53, 3, { 0x0000006f, 0x00000304, 0x00000301 } }, { 0x00001e54, 2, { 0x00000050, 0x00000301 } }, { 0x00001e55, 2, { 0x00000070, 0x00000301 } }, { 0x00001e56, 2, { 0x00000050, 0x00000307 } }, { 0x00001e57, 2, { 0x00000070, 0x00000307 } }, { 0x00001e58, 2, { 0x00000052, 0x00000307 } }, { 0x00001e59, 2, { 0x00000072, 0x00000307 } }, { 0x00001e5a, 2, { 0x00000052, 0x00000323 } }, { 0x00001e5b, 2, { 0x00000072, 0x00000323 } }, { 0x00001e5c, 3, { 0x00000052, 0x00000323, 0x00000304 } }, { 0x00001e5d, 3, { 0x00000072, 0x00000323, 0x00000304 } }, { 0x00001e5e, 2, { 0x00000052, 0x00000331 } }, { 0x00001e5f, 2, { 0x00000072, 0x00000331 } }, { 0x00001e60, 2, { 0x00000053, 0x00000307 } }, { 0x00001e61, 2, { 0x00000073, 0x00000307 } }, { 0x00001e62, 2, { 0x00000053, 0x00000323 } }, { 0x00001e63, 2, { 0x00000073, 0x00000323 } }, { 0x00001e64, 3, { 0x00000053, 0x00000301, 0x00000307 } }, { 0x00001e65, 3, { 0x00000073, 0x00000301, 0x00000307 } }, { 0x00001e66, 3, { 0x00000053, 0x0000030c, 0x00000307 } }, { 0x00001e67, 3, { 0x00000073, 0x0000030c, 0x00000307 } }, { 0x00001e68, 3, { 0x00000053, 0x00000323, 0x00000307 } }, { 0x00001e69, 3, { 0x00000073, 0x00000323, 0x00000307 } }, { 0x00001e6a, 2, { 0x00000054, 0x00000307 } }, { 0x00001e6b, 2, { 0x00000074, 0x00000307 } }, { 0x00001e6c, 2, { 0x00000054, 0x00000323 } }, { 0x00001e6d, 2, { 0x00000074, 0x00000323 } }, { 0x00001e6e, 2, { 0x00000054, 0x00000331 } }, { 0x00001e6f, 2, { 0x00000074, 0x00000331 } }, { 0x00001e70, 2, { 0x00000054, 0x0000032d } }, { 0x00001e71, 2, { 0x00000074, 0x0000032d } }, { 0x00001e72, 2, { 0x00000055, 0x00000324 } }, { 0x00001e73, 2, { 0x00000075, 0x00000324 } }, { 0x00001e74, 2, { 0x00000055, 0x00000330 } }, { 0x00001e75, 2, { 0x00000075, 0x00000330 } }, { 0x00001e76, 2, { 0x00000055, 0x0000032d } }, { 0x00001e77, 2, { 0x00000075, 0x0000032d } }, { 0x00001e78, 3, { 0x00000055, 0x00000303, 0x00000301 } }, { 0x00001e79, 3, { 0x00000075, 0x00000303, 0x00000301 } }, { 0x00001e7a, 3, { 0x00000055, 0x00000304, 0x00000308 } }, { 0x00001e7b, 3, { 0x00000075, 0x00000304, 0x00000308 } }, { 0x00001e7c, 2, { 0x00000056, 0x00000303 } }, { 0x00001e7d, 2, { 0x00000076, 0x00000303 } }, { 0x00001e7e, 2, { 0x00000056, 0x00000323 } }, { 0x00001e7f, 2, { 0x00000076, 0x00000323 } }, { 0x00001e80, 2, { 0x00000057, 0x00000300 } }, { 0x00001e81, 2, { 0x00000077, 0x00000300 } }, { 0x00001e82, 2, { 0x00000057, 0x00000301 } }, { 0x00001e83, 2, { 0x00000077, 0x00000301 } }, { 0x00001e84, 2, { 0x00000057, 0x00000308 } }, { 0x00001e85, 2, { 0x00000077, 0x00000308 } }, { 0x00001e86, 2, { 0x00000057, 0x00000307 } }, { 0x00001e87, 2, { 0x00000077, 0x00000307 } }, { 0x00001e88, 2, { 0x00000057, 0x00000323 } }, { 0x00001e89, 2, { 0x00000077, 0x00000323 } }, { 0x00001e8a, 2, { 0x00000058, 0x00000307 } }, { 0x00001e8b, 2, { 0x00000078, 0x00000307 } }, { 0x00001e8c, 2, { 0x00000058, 0x00000308 } }, { 0x00001e8d, 2, { 0x00000078, 0x00000308 } }, { 0x00001e8e, 2, { 0x00000059, 0x00000307 } }, { 0x00001e8f, 2, { 0x00000079, 0x00000307 } }, { 0x00001e90, 2, { 0x0000005a, 0x00000302 } }, { 0x00001e91, 2, { 0x0000007a, 0x00000302 } }, { 0x00001e92, 2, { 0x0000005a, 0x00000323 } }, { 0x00001e93, 2, { 0x0000007a, 0x00000323 } }, { 0x00001e94, 2, { 0x0000005a, 0x00000331 } }, { 0x00001e95, 2, { 0x0000007a, 0x00000331 } }, { 0x00001e96, 2, { 0x00000068, 0x00000331 } }, { 0x00001e97, 2, { 0x00000074, 0x00000308 } }, { 0x00001e98, 2, { 0x00000077, 0x0000030a } }, { 0x00001e99, 2, { 0x00000079, 0x0000030a } }, { 0x00001e9a, 1, { 0x00001e9a } }, { 0x00001e9b, 2, { 0x0000017f, 0x00000307 } }, { 0x00001e9c, 1, { 0x00001e9c } }, { 0x00001e9d, 1, { 0x00001e9d } }, { 0x00001e9e, 1, { 0x00001e9e } }, { 0x00001e9f, 1, { 0x00001e9f } }, { 0x00001ea0, 2, { 0x00000041, 0x00000323 } }, { 0x00001ea1, 2, { 0x00000061, 0x00000323 } }, { 0x00001ea2, 2, { 0x00000041, 0x00000309 } }, { 0x00001ea3, 2, { 0x00000061, 0x00000309 } }, { 0x00001ea4, 3, { 0x00000041, 0x00000302, 0x00000301 } }, { 0x00001ea5, 3, { 0x00000061, 0x00000302, 0x00000301 } }, { 0x00001ea6, 3, { 0x00000041, 0x00000302, 0x00000300 } }, { 0x00001ea7, 3, { 0x00000061, 0x00000302, 0x00000300 } }, { 0x00001ea8, 3, { 0x00000041, 0x00000302, 0x00000309 } }, { 0x00001ea9, 3, { 0x00000061, 0x00000302, 0x00000309 } }, { 0x00001eaa, 3, { 0x00000041, 0x00000302, 0x00000303 } }, { 0x00001eab, 3, { 0x00000061, 0x00000302, 0x00000303 } }, { 0x00001eac, 3, { 0x00000041, 0x00000323, 0x00000302 } }, { 0x00001ead, 3, { 0x00000061, 0x00000323, 0x00000302 } }, { 0x00001eae, 3, { 0x00000041, 0x00000306, 0x00000301 } }, { 0x00001eaf, 3, { 0x00000061, 0x00000306, 0x00000301 } }, { 0x00001eb0, 3, { 0x00000041, 0x00000306, 0x00000300 } }, { 0x00001eb1, 3, { 0x00000061, 0x00000306, 0x00000300 } }, { 0x00001eb2, 3, { 0x00000041, 0x00000306, 0x00000309 } }, { 0x00001eb3, 3, { 0x00000061, 0x00000306, 0x00000309 } }, { 0x00001eb4, 3, { 0x00000041, 0x00000306, 0x00000303 } }, { 0x00001eb5, 3, { 0x00000061, 0x00000306, 0x00000303 } }, { 0x00001eb6, 3, { 0x00000041, 0x00000323, 0x00000306 } }, { 0x00001eb7, 3, { 0x00000061, 0x00000323, 0x00000306 } }, { 0x00001eb8, 2, { 0x00000045, 0x00000323 } }, { 0x00001eb9, 2, { 0x00000065, 0x00000323 } }, { 0x00001eba, 2, { 0x00000045, 0x00000309 } }, { 0x00001ebb, 2, { 0x00000065, 0x00000309 } }, { 0x00001ebc, 2, { 0x00000045, 0x00000303 } }, { 0x00001ebd, 2, { 0x00000065, 0x00000303 } }, { 0x00001ebe, 3, { 0x00000045, 0x00000302, 0x00000301 } }, { 0x00001ebf, 3, { 0x00000065, 0x00000302, 0x00000301 } }, { 0x00001ec0, 3, { 0x00000045, 0x00000302, 0x00000300 } }, { 0x00001ec1, 3, { 0x00000065, 0x00000302, 0x00000300 } }, { 0x00001ec2, 3, { 0x00000045, 0x00000302, 0x00000309 } }, { 0x00001ec3, 3, { 0x00000065, 0x00000302, 0x00000309 } }, { 0x00001ec4, 3, { 0x00000045, 0x00000302, 0x00000303 } }, { 0x00001ec5, 3, { 0x00000065, 0x00000302, 0x00000303 } }, { 0x00001ec6, 3, { 0x00000045, 0x00000323, 0x00000302 } }, { 0x00001ec7, 3, { 0x00000065, 0x00000323, 0x00000302 } }, { 0x00001ec8, 2, { 0x00000049, 0x00000309 } }, { 0x00001ec9, 2, { 0x00000069, 0x00000309 } }, { 0x00001eca, 2, { 0x00000049, 0x00000323 } }, { 0x00001ecb, 2, { 0x00000069, 0x00000323 } }, { 0x00001ecc, 2, { 0x0000004f, 0x00000323 } }, { 0x00001ecd, 2, { 0x0000006f, 0x00000323 } }, { 0x00001ece, 2, { 0x0000004f, 0x00000309 } }, { 0x00001ecf, 2, { 0x0000006f, 0x00000309 } }, { 0x00001ed0, 3, { 0x0000004f, 0x00000302, 0x00000301 } }, { 0x00001ed1, 3, { 0x0000006f, 0x00000302, 0x00000301 } }, { 0x00001ed2, 3, { 0x0000004f, 0x00000302, 0x00000300 } }, { 0x00001ed3, 3, { 0x0000006f, 0x00000302, 0x00000300 } }, { 0x00001ed4, 3, { 0x0000004f, 0x00000302, 0x00000309 } }, { 0x00001ed5, 3, { 0x0000006f, 0x00000302, 0x00000309 } }, { 0x00001ed6, 3, { 0x0000004f, 0x00000302, 0x00000303 } }, { 0x00001ed7, 3, { 0x0000006f, 0x00000302, 0x00000303 } }, { 0x00001ed8, 3, { 0x0000004f, 0x00000323, 0x00000302 } }, { 0x00001ed9, 3, { 0x0000006f, 0x00000323, 0x00000302 } }, { 0x00001eda, 3, { 0x0000004f, 0x0000031b, 0x00000301 } }, { 0x00001edb, 3, { 0x0000006f, 0x0000031b, 0x00000301 } }, { 0x00001edc, 3, { 0x0000004f, 0x0000031b, 0x00000300 } }, { 0x00001edd, 3, { 0x0000006f, 0x0000031b, 0x00000300 } }, { 0x00001ede, 3, { 0x0000004f, 0x0000031b, 0x00000309 } }, { 0x00001edf, 3, { 0x0000006f, 0x0000031b, 0x00000309 } }, { 0x00001ee0, 3, { 0x0000004f, 0x0000031b, 0x00000303 } }, { 0x00001ee1, 3, { 0x0000006f, 0x0000031b, 0x00000303 } }, { 0x00001ee2, 3, { 0x0000004f, 0x0000031b, 0x00000323 } }, { 0x00001ee3, 3, { 0x0000006f, 0x0000031b, 0x00000323 } }, { 0x00001ee4, 2, { 0x00000055, 0x00000323 } }, { 0x00001ee5, 2, { 0x00000075, 0x00000323 } }, { 0x00001ee6, 2, { 0x00000055, 0x00000309 } }, { 0x00001ee7, 2, { 0x00000075, 0x00000309 } }, { 0x00001ee8, 3, { 0x00000055, 0x0000031b, 0x00000301 } }, { 0x00001ee9, 3, { 0x00000075, 0x0000031b, 0x00000301 } }, { 0x00001eea, 3, { 0x00000055, 0x0000031b, 0x00000300 } }, { 0x00001eeb, 3, { 0x00000075, 0x0000031b, 0x00000300 } }, { 0x00001eec, 3, { 0x00000055, 0x0000031b, 0x00000309 } }, { 0x00001eed, 3, { 0x00000075, 0x0000031b, 0x00000309 } }, { 0x00001eee, 3, { 0x00000055, 0x0000031b, 0x00000303 } }, { 0x00001eef, 3, { 0x00000075, 0x0000031b, 0x00000303 } }, { 0x00001ef0, 3, { 0x00000055, 0x0000031b, 0x00000323 } }, { 0x00001ef1, 3, { 0x00000075, 0x0000031b, 0x00000323 } }, { 0x00001ef2, 2, { 0x00000059, 0x00000300 } }, { 0x00001ef3, 2, { 0x00000079, 0x00000300 } }, { 0x00001ef4, 2, { 0x00000059, 0x00000323 } }, { 0x00001ef5, 2, { 0x00000079, 0x00000323 } }, { 0x00001ef6, 2, { 0x00000059, 0x00000309 } }, { 0x00001ef7, 2, { 0x00000079, 0x00000309 } }, { 0x00001ef8, 2, { 0x00000059, 0x00000303 } }, { 0x00001ef9, 2, { 0x00000079, 0x00000303 } }, { 0x00001efa, 1, { 0x00001efa } }, { 0x00001efb, 1, { 0x00001efb } }, { 0x00001efc, 1, { 0x00001efc } }, { 0x00001efd, 1, { 0x00001efd } }, { 0x00001efe, 1, { 0x00001efe } }, { 0x00001eff, 1, { 0x00001eff } }, { 0x00001f00, 2, { 0x000003b1, 0x00000313 } }, { 0x00001f01, 2, { 0x000003b1, 0x00000314 } }, { 0x00001f02, 3, { 0x000003b1, 0x00000313, 0x00000300 } }, { 0x00001f03, 3, { 0x000003b1, 0x00000314, 0x00000300 } }, { 0x00001f04, 3, { 0x000003b1, 0x00000313, 0x00000301 } }, { 0x00001f05, 3, { 0x000003b1, 0x00000314, 0x00000301 } }, { 0x00001f06, 3, { 0x000003b1, 0x00000313, 0x00000342 } }, { 0x00001f07, 3, { 0x000003b1, 0x00000314, 0x00000342 } }, { 0x00001f08, 2, { 0x00000391, 0x00000313 } }, { 0x00001f09, 2, { 0x00000391, 0x00000314 } }, { 0x00001f0a, 3, { 0x00000391, 0x00000313, 0x00000300 } }, { 0x00001f0b, 3, { 0x00000391, 0x00000314, 0x00000300 } }, { 0x00001f0c, 3, { 0x00000391, 0x00000313, 0x00000301 } }, { 0x00001f0d, 3, { 0x00000391, 0x00000314, 0x00000301 } }, { 0x00001f0e, 3, { 0x00000391, 0x00000313, 0x00000342 } }, { 0x00001f0f, 3, { 0x00000391, 0x00000314, 0x00000342 } }, { 0x00001f10, 2, { 0x000003b5, 0x00000313 } }, { 0x00001f11, 2, { 0x000003b5, 0x00000314 } }, { 0x00001f12, 3, { 0x000003b5, 0x00000313, 0x00000300 } }, { 0x00001f13, 3, { 0x000003b5, 0x00000314, 0x00000300 } }, { 0x00001f14, 3, { 0x000003b5, 0x00000313, 0x00000301 } }, { 0x00001f15, 3, { 0x000003b5, 0x00000314, 0x00000301 } }, { 0x00001f18, 2, { 0x00000395, 0x00000313 } }, { 0x00001f19, 2, { 0x00000395, 0x00000314 } }, { 0x00001f1a, 3, { 0x00000395, 0x00000313, 0x00000300 } }, { 0x00001f1b, 3, { 0x00000395, 0x00000314, 0x00000300 } }, { 0x00001f1c, 3, { 0x00000395, 0x00000313, 0x00000301 } }, { 0x00001f1d, 3, { 0x00000395, 0x00000314, 0x00000301 } }, { 0x00001f20, 2, { 0x000003b7, 0x00000313 } }, { 0x00001f21, 2, { 0x000003b7, 0x00000314 } }, { 0x00001f22, 3, { 0x000003b7, 0x00000313, 0x00000300 } }, { 0x00001f23, 3, { 0x000003b7, 0x00000314, 0x00000300 } }, { 0x00001f24, 3, { 0x000003b7, 0x00000313, 0x00000301 } }, { 0x00001f25, 3, { 0x000003b7, 0x00000314, 0x00000301 } }, { 0x00001f26, 3, { 0x000003b7, 0x00000313, 0x00000342 } }, { 0x00001f27, 3, { 0x000003b7, 0x00000314, 0x00000342 } }, { 0x00001f28, 2, { 0x00000397, 0x00000313 } }, { 0x00001f29, 2, { 0x00000397, 0x00000314 } }, { 0x00001f2a, 3, { 0x00000397, 0x00000313, 0x00000300 } }, { 0x00001f2b, 3, { 0x00000397, 0x00000314, 0x00000300 } }, { 0x00001f2c, 3, { 0x00000397, 0x00000313, 0x00000301 } }, { 0x00001f2d, 3, { 0x00000397, 0x00000314, 0x00000301 } }, { 0x00001f2e, 3, { 0x00000397, 0x00000313, 0x00000342 } }, { 0x00001f2f, 3, { 0x00000397, 0x00000314, 0x00000342 } }, { 0x00001f30, 2, { 0x000003b9, 0x00000313 } }, { 0x00001f31, 2, { 0x000003b9, 0x00000314 } }, { 0x00001f32, 3, { 0x000003b9, 0x00000313, 0x00000300 } }, { 0x00001f33, 3, { 0x000003b9, 0x00000314, 0x00000300 } }, { 0x00001f34, 3, { 0x000003b9, 0x00000313, 0x00000301 } }, { 0x00001f35, 3, { 0x000003b9, 0x00000314, 0x00000301 } }, { 0x00001f36, 3, { 0x000003b9, 0x00000313, 0x00000342 } }, { 0x00001f37, 3, { 0x000003b9, 0x00000314, 0x00000342 } }, { 0x00001f38, 2, { 0x00000399, 0x00000313 } }, { 0x00001f39, 2, { 0x00000399, 0x00000314 } }, { 0x00001f3a, 3, { 0x00000399, 0x00000313, 0x00000300 } }, { 0x00001f3b, 3, { 0x00000399, 0x00000314, 0x00000300 } }, { 0x00001f3c, 3, { 0x00000399, 0x00000313, 0x00000301 } }, { 0x00001f3d, 3, { 0x00000399, 0x00000314, 0x00000301 } }, { 0x00001f3e, 3, { 0x00000399, 0x00000313, 0x00000342 } }, { 0x00001f3f, 3, { 0x00000399, 0x00000314, 0x00000342 } }, { 0x00001f40, 2, { 0x000003bf, 0x00000313 } }, { 0x00001f41, 2, { 0x000003bf, 0x00000314 } }, { 0x00001f42, 3, { 0x000003bf, 0x00000313, 0x00000300 } }, { 0x00001f43, 3, { 0x000003bf, 0x00000314, 0x00000300 } }, { 0x00001f44, 3, { 0x000003bf, 0x00000313, 0x00000301 } }, { 0x00001f45, 3, { 0x000003bf, 0x00000314, 0x00000301 } }, { 0x00001f48, 2, { 0x0000039f, 0x00000313 } }, { 0x00001f49, 2, { 0x0000039f, 0x00000314 } }, { 0x00001f4a, 3, { 0x0000039f, 0x00000313, 0x00000300 } }, { 0x00001f4b, 3, { 0x0000039f, 0x00000314, 0x00000300 } }, { 0x00001f4c, 3, { 0x0000039f, 0x00000313, 0x00000301 } }, { 0x00001f4d, 3, { 0x0000039f, 0x00000314, 0x00000301 } }, { 0x00001f50, 2, { 0x000003c5, 0x00000313 } }, { 0x00001f51, 2, { 0x000003c5, 0x00000314 } }, { 0x00001f52, 3, { 0x000003c5, 0x00000313, 0x00000300 } }, { 0x00001f53, 3, { 0x000003c5, 0x00000314, 0x00000300 } }, { 0x00001f54, 3, { 0x000003c5, 0x00000313, 0x00000301 } }, { 0x00001f55, 3, { 0x000003c5, 0x00000314, 0x00000301 } }, { 0x00001f56, 3, { 0x000003c5, 0x00000313, 0x00000342 } }, { 0x00001f57, 3, { 0x000003c5, 0x00000314, 0x00000342 } }, { 0x00001f59, 2, { 0x000003a5, 0x00000314 } }, { 0x00001f5b, 3, { 0x000003a5, 0x00000314, 0x00000300 } }, { 0x00001f5d, 3, { 0x000003a5, 0x00000314, 0x00000301 } }, { 0x00001f5f, 3, { 0x000003a5, 0x00000314, 0x00000342 } }, { 0x00001f60, 2, { 0x000003c9, 0x00000313 } }, { 0x00001f61, 2, { 0x000003c9, 0x00000314 } }, { 0x00001f62, 3, { 0x000003c9, 0x00000313, 0x00000300 } }, { 0x00001f63, 3, { 0x000003c9, 0x00000314, 0x00000300 } }, { 0x00001f64, 3, { 0x000003c9, 0x00000313, 0x00000301 } }, { 0x00001f65, 3, { 0x000003c9, 0x00000314, 0x00000301 } }, { 0x00001f66, 3, { 0x000003c9, 0x00000313, 0x00000342 } }, { 0x00001f67, 3, { 0x000003c9, 0x00000314, 0x00000342 } }, { 0x00001f68, 2, { 0x000003a9, 0x00000313 } }, { 0x00001f69, 2, { 0x000003a9, 0x00000314 } }, { 0x00001f6a, 3, { 0x000003a9, 0x00000313, 0x00000300 } }, { 0x00001f6b, 3, { 0x000003a9, 0x00000314, 0x00000300 } }, { 0x00001f6c, 3, { 0x000003a9, 0x00000313, 0x00000301 } }, { 0x00001f6d, 3, { 0x000003a9, 0x00000314, 0x00000301 } }, { 0x00001f6e, 3, { 0x000003a9, 0x00000313, 0x00000342 } }, { 0x00001f6f, 3, { 0x000003a9, 0x00000314, 0x00000342 } }, { 0x00001f70, 2, { 0x000003b1, 0x00000300 } }, { 0x00001f71, 2, { 0x000003b1, 0x00000301 } }, { 0x00001f72, 2, { 0x000003b5, 0x00000300 } }, { 0x00001f73, 2, { 0x000003b5, 0x00000301 } }, { 0x00001f74, 2, { 0x000003b7, 0x00000300 } }, { 0x00001f75, 2, { 0x000003b7, 0x00000301 } }, { 0x00001f76, 2, { 0x000003b9, 0x00000300 } }, { 0x00001f77, 2, { 0x000003b9, 0x00000301 } }, { 0x00001f78, 2, { 0x000003bf, 0x00000300 } }, { 0x00001f79, 2, { 0x000003bf, 0x00000301 } }, { 0x00001f7a, 2, { 0x000003c5, 0x00000300 } }, { 0x00001f7b, 2, { 0x000003c5, 0x00000301 } }, { 0x00001f7c, 2, { 0x000003c9, 0x00000300 } }, { 0x00001f7d, 2, { 0x000003c9, 0x00000301 } }, { 0x00001f80, 3, { 0x000003b1, 0x00000313, 0x00000345 } }, { 0x00001f81, 3, { 0x000003b1, 0x00000314, 0x00000345 } }, { 0x00001f82, 4, { 0x000003b1, 0x00000313, 0x00000300, 0x00000345 } }, { 0x00001f83, 4, { 0x000003b1, 0x00000314, 0x00000300, 0x00000345 } }, { 0x00001f84, 4, { 0x000003b1, 0x00000313, 0x00000301, 0x00000345 } }, { 0x00001f85, 4, { 0x000003b1, 0x00000314, 0x00000301, 0x00000345 } }, { 0x00001f86, 4, { 0x000003b1, 0x00000313, 0x00000342, 0x00000345 } }, { 0x00001f87, 4, { 0x000003b1, 0x00000314, 0x00000342, 0x00000345 } }, { 0x00001f88, 3, { 0x00000391, 0x00000313, 0x00000345 } }, { 0x00001f89, 3, { 0x00000391, 0x00000314, 0x00000345 } }, { 0x00001f8a, 4, { 0x00000391, 0x00000313, 0x00000300, 0x00000345 } }, { 0x00001f8b, 4, { 0x00000391, 0x00000314, 0x00000300, 0x00000345 } }, { 0x00001f8c, 4, { 0x00000391, 0x00000313, 0x00000301, 0x00000345 } }, { 0x00001f8d, 4, { 0x00000391, 0x00000314, 0x00000301, 0x00000345 } }, { 0x00001f8e, 4, { 0x00000391, 0x00000313, 0x00000342, 0x00000345 } }, { 0x00001f8f, 4, { 0x00000391, 0x00000314, 0x00000342, 0x00000345 } }, { 0x00001f90, 3, { 0x000003b7, 0x00000313, 0x00000345 } }, { 0x00001f91, 3, { 0x000003b7, 0x00000314, 0x00000345 } }, { 0x00001f92, 4, { 0x000003b7, 0x00000313, 0x00000300, 0x00000345 } }, { 0x00001f93, 4, { 0x000003b7, 0x00000314, 0x00000300, 0x00000345 } }, { 0x00001f94, 4, { 0x000003b7, 0x00000313, 0x00000301, 0x00000345 } }, { 0x00001f95, 4, { 0x000003b7, 0x00000314, 0x00000301, 0x00000345 } }, { 0x00001f96, 4, { 0x000003b7, 0x00000313, 0x00000342, 0x00000345 } }, { 0x00001f97, 4, { 0x000003b7, 0x00000314, 0x00000342, 0x00000345 } }, { 0x00001f98, 3, { 0x00000397, 0x00000313, 0x00000345 } }, { 0x00001f99, 3, { 0x00000397, 0x00000314, 0x00000345 } }, { 0x00001f9a, 4, { 0x00000397, 0x00000313, 0x00000300, 0x00000345 } }, { 0x00001f9b, 4, { 0x00000397, 0x00000314, 0x00000300, 0x00000345 } }, { 0x00001f9c, 4, { 0x00000397, 0x00000313, 0x00000301, 0x00000345 } }, { 0x00001f9d, 4, { 0x00000397, 0x00000314, 0x00000301, 0x00000345 } }, { 0x00001f9e, 4, { 0x00000397, 0x00000313, 0x00000342, 0x00000345 } }, { 0x00001f9f, 4, { 0x00000397, 0x00000314, 0x00000342, 0x00000345 } }, { 0x00001fa0, 3, { 0x000003c9, 0x00000313, 0x00000345 } }, { 0x00001fa1, 3, { 0x000003c9, 0x00000314, 0x00000345 } }, { 0x00001fa2, 4, { 0x000003c9, 0x00000313, 0x00000300, 0x00000345 } }, { 0x00001fa3, 4, { 0x000003c9, 0x00000314, 0x00000300, 0x00000345 } }, { 0x00001fa4, 4, { 0x000003c9, 0x00000313, 0x00000301, 0x00000345 } }, { 0x00001fa5, 4, { 0x000003c9, 0x00000314, 0x00000301, 0x00000345 } }, { 0x00001fa6, 4, { 0x000003c9, 0x00000313, 0x00000342, 0x00000345 } }, { 0x00001fa7, 4, { 0x000003c9, 0x00000314, 0x00000342, 0x00000345 } }, { 0x00001fa8, 3, { 0x000003a9, 0x00000313, 0x00000345 } }, { 0x00001fa9, 3, { 0x000003a9, 0x00000314, 0x00000345 } }, { 0x00001faa, 4, { 0x000003a9, 0x00000313, 0x00000300, 0x00000345 } }, { 0x00001fab, 4, { 0x000003a9, 0x00000314, 0x00000300, 0x00000345 } }, { 0x00001fac, 4, { 0x000003a9, 0x00000313, 0x00000301, 0x00000345 } }, { 0x00001fad, 4, { 0x000003a9, 0x00000314, 0x00000301, 0x00000345 } }, { 0x00001fae, 4, { 0x000003a9, 0x00000313, 0x00000342, 0x00000345 } }, { 0x00001faf, 4, { 0x000003a9, 0x00000314, 0x00000342, 0x00000345 } }, { 0x00001fb0, 2, { 0x000003b1, 0x00000306 } }, { 0x00001fb1, 2, { 0x000003b1, 0x00000304 } }, { 0x00001fb2, 3, { 0x000003b1, 0x00000300, 0x00000345 } }, { 0x00001fb3, 2, { 0x000003b1, 0x00000345 } }, { 0x00001fb4, 3, { 0x000003b1, 0x00000301, 0x00000345 } }, { 0x00001fb6, 2, { 0x000003b1, 0x00000342 } }, { 0x00001fb7, 3, { 0x000003b1, 0x00000342, 0x00000345 } }, { 0x00001fb8, 2, { 0x00000391, 0x00000306 } }, { 0x00001fb9, 2, { 0x00000391, 0x00000304 } }, { 0x00001fba, 2, { 0x00000391, 0x00000300 } }, { 0x00001fbb, 2, { 0x00000391, 0x00000301 } }, { 0x00001fbc, 2, { 0x00000391, 0x00000345 } }, { 0x00001fbd, 1, { 0x00001fbd } }, { 0x00001fbe, 1, { 0x000003b9 } }, { 0x00001fbf, 1, { 0x00001fbf } }, { 0x00001fc0, 1, { 0x00001fc0 } }, { 0x00001fc1, 2, { 0x000000a8, 0x00000342 } }, { 0x00001fc2, 3, { 0x000003b7, 0x00000300, 0x00000345 } }, { 0x00001fc3, 2, { 0x000003b7, 0x00000345 } }, { 0x00001fc4, 3, { 0x000003b7, 0x00000301, 0x00000345 } }, { 0x00001fc6, 2, { 0x000003b7, 0x00000342 } }, { 0x00001fc7, 3, { 0x000003b7, 0x00000342, 0x00000345 } }, { 0x00001fc8, 2, { 0x00000395, 0x00000300 } }, { 0x00001fc9, 2, { 0x00000395, 0x00000301 } }, { 0x00001fca, 2, { 0x00000397, 0x00000300 } }, { 0x00001fcb, 2, { 0x00000397, 0x00000301 } }, { 0x00001fcc, 2, { 0x00000397, 0x00000345 } }, { 0x00001fcd, 2, { 0x00001fbf, 0x00000300 } }, { 0x00001fce, 2, { 0x00001fbf, 0x00000301 } }, { 0x00001fcf, 2, { 0x00001fbf, 0x00000342 } }, { 0x00001fd0, 2, { 0x000003b9, 0x00000306 } }, { 0x00001fd1, 2, { 0x000003b9, 0x00000304 } }, { 0x00001fd2, 3, { 0x000003b9, 0x00000308, 0x00000300 } }, { 0x00001fd3, 3, { 0x000003b9, 0x00000308, 0x00000301 } }, { 0x00001fd6, 2, { 0x000003b9, 0x00000342 } }, { 0x00001fd7, 3, { 0x000003b9, 0x00000308, 0x00000342 } }, { 0x00001fd8, 2, { 0x00000399, 0x00000306 } }, { 0x00001fd9, 2, { 0x00000399, 0x00000304 } }, { 0x00001fda, 2, { 0x00000399, 0x00000300 } }, { 0x00001fdb, 2, { 0x00000399, 0x00000301 } }, { 0x00001fdd, 2, { 0x00001ffe, 0x00000300 } }, { 0x00001fde, 2, { 0x00001ffe, 0x00000301 } }, { 0x00001fdf, 2, { 0x00001ffe, 0x00000342 } }, { 0x00001fe0, 2, { 0x000003c5, 0x00000306 } }, { 0x00001fe1, 2, { 0x000003c5, 0x00000304 } }, { 0x00001fe2, 3, { 0x000003c5, 0x00000308, 0x00000300 } }, { 0x00001fe3, 3, { 0x000003c5, 0x00000308, 0x00000301 } }, { 0x00001fe4, 2, { 0x000003c1, 0x00000313 } }, { 0x00001fe5, 2, { 0x000003c1, 0x00000314 } }, { 0x00001fe6, 2, { 0x000003c5, 0x00000342 } }, { 0x00001fe7, 3, { 0x000003c5, 0x00000308, 0x00000342 } }, { 0x00001fe8, 2, { 0x000003a5, 0x00000306 } }, { 0x00001fe9, 2, { 0x000003a5, 0x00000304 } }, { 0x00001fea, 2, { 0x000003a5, 0x00000300 } }, { 0x00001feb, 2, { 0x000003a5, 0x00000301 } }, { 0x00001fec, 2, { 0x000003a1, 0x00000314 } }, { 0x00001fed, 2, { 0x000000a8, 0x00000300 } }, { 0x00001fee, 2, { 0x000000a8, 0x00000301 } }, { 0x00001fef, 1, { 0x00000060 } }, { 0x00001ff2, 3, { 0x000003c9, 0x00000300, 0x00000345 } }, { 0x00001ff3, 2, { 0x000003c9, 0x00000345 } }, { 0x00001ff4, 3, { 0x000003c9, 0x00000301, 0x00000345 } }, { 0x00001ff6, 2, { 0x000003c9, 0x00000342 } }, { 0x00001ff7, 3, { 0x000003c9, 0x00000342, 0x00000345 } }, { 0x00001ff8, 2, { 0x0000039f, 0x00000300 } }, { 0x00001ff9, 2, { 0x0000039f, 0x00000301 } }, { 0x00001ffa, 2, { 0x000003a9, 0x00000300 } }, { 0x00001ffb, 2, { 0x000003a9, 0x00000301 } }, { 0x00001ffc, 2, { 0x000003a9, 0x00000345 } }, { 0x00001ffd, 1, { 0x000000b4 } }, { 0x00001ffe, 1, { 0x00001ffe } }, { 0x00002000, 1, { 0x00002002 } }, { 0x00002001, 1, { 0x00002003 } }, { 0x00002002, 1, { 0x00002002 } }, { 0x00002003, 1, { 0x00002003 } }, { 0x00002004, 1, { 0x00002004 } }, { 0x00002005, 1, { 0x00002005 } }, { 0x00002006, 1, { 0x00002006 } }, { 0x00002007, 1, { 0x00002007 } }, { 0x00002008, 1, { 0x00002008 } }, { 0x00002009, 1, { 0x00002009 } }, { 0x0000200a, 1, { 0x0000200a } }, { 0x0000200b, 1, { 0x0000200b } }, { 0x0000200c, 1, { 0x0000200c } }, { 0x0000200d, 1, { 0x0000200d } }, { 0x0000200e, 1, { 0x0000200e } }, { 0x0000200f, 1, { 0x0000200f } }, { 0x00002010, 1, { 0x00002010 } }, { 0x00002011, 1, { 0x00002011 } }, { 0x00002012, 1, { 0x00002012 } }, { 0x00002013, 1, { 0x00002013 } }, { 0x00002014, 1, { 0x00002014 } }, { 0x00002015, 1, { 0x00002015 } }, { 0x00002016, 1, { 0x00002016 } }, { 0x00002017, 1, { 0x00002017 } }, { 0x00002018, 1, { 0x00002018 } }, { 0x00002019, 1, { 0x00002019 } }, { 0x0000201a, 1, { 0x0000201a } }, { 0x0000201b, 1, { 0x0000201b } }, { 0x0000201c, 1, { 0x0000201c } }, { 0x0000201d, 1, { 0x0000201d } }, { 0x0000201e, 1, { 0x0000201e } }, { 0x0000201f, 1, { 0x0000201f } }, { 0x00002020, 1, { 0x00002020 } }, { 0x00002021, 1, { 0x00002021 } }, { 0x00002022, 1, { 0x00002022 } }, { 0x00002023, 1, { 0x00002023 } }, { 0x00002024, 1, { 0x00002024 } }, { 0x00002025, 1, { 0x00002025 } }, { 0x00002026, 1, { 0x00002026 } }, { 0x00002027, 1, { 0x00002027 } }, { 0x00002028, 1, { 0x00002028 } }, { 0x00002029, 1, { 0x00002029 } }, { 0x0000202a, 1, { 0x0000202a } }, { 0x0000202b, 1, { 0x0000202b } }, { 0x0000202c, 1, { 0x0000202c } }, { 0x0000202d, 1, { 0x0000202d } }, { 0x0000202e, 1, { 0x0000202e } }, { 0x0000202f, 1, { 0x0000202f } }, { 0x00002030, 1, { 0x00002030 } }, { 0x00002031, 1, { 0x00002031 } }, { 0x00002032, 1, { 0x00002032 } }, { 0x00002033, 1, { 0x00002033 } }, { 0x00002034, 1, { 0x00002034 } }, { 0x00002035, 1, { 0x00002035 } }, { 0x00002036, 1, { 0x00002036 } }, { 0x00002037, 1, { 0x00002037 } }, { 0x00002038, 1, { 0x00002038 } }, { 0x00002039, 1, { 0x00002039 } }, { 0x0000203a, 1, { 0x0000203a } }, { 0x0000203b, 1, { 0x0000203b } }, { 0x0000203c, 1, { 0x0000203c } }, { 0x0000203d, 1, { 0x0000203d } }, { 0x0000203e, 1, { 0x0000203e } }, { 0x0000203f, 1, { 0x0000203f } }, { 0x00002040, 1, { 0x00002040 } }, { 0x00002041, 1, { 0x00002041 } }, { 0x00002042, 1, { 0x00002042 } }, { 0x00002043, 1, { 0x00002043 } }, { 0x00002044, 1, { 0x00002044 } }, { 0x00002045, 1, { 0x00002045 } }, { 0x00002046, 1, { 0x00002046 } }, { 0x00002047, 1, { 0x00002047 } }, { 0x00002048, 1, { 0x00002048 } }, { 0x00002049, 1, { 0x00002049 } }, { 0x0000204a, 1, { 0x0000204a } }, { 0x0000204b, 1, { 0x0000204b } }, { 0x0000204c, 1, { 0x0000204c } }, { 0x0000204d, 1, { 0x0000204d } }, { 0x0000204e, 1, { 0x0000204e } }, { 0x0000204f, 1, { 0x0000204f } }, { 0x00002050, 1, { 0x00002050 } }, { 0x00002051, 1, { 0x00002051 } }, { 0x00002052, 1, { 0x00002052 } }, { 0x00002053, 1, { 0x00002053 } }, { 0x00002054, 1, { 0x00002054 } }, { 0x00002055, 1, { 0x00002055 } }, { 0x00002056, 1, { 0x00002056 } }, { 0x00002057, 1, { 0x00002057 } }, { 0x00002058, 1, { 0x00002058 } }, { 0x00002059, 1, { 0x00002059 } }, { 0x0000205a, 1, { 0x0000205a } }, { 0x0000205b, 1, { 0x0000205b } }, { 0x0000205c, 1, { 0x0000205c } }, { 0x0000205d, 1, { 0x0000205d } }, { 0x0000205e, 1, { 0x0000205e } }, { 0x0000205f, 1, { 0x0000205f } }, { 0x00002060, 1, { 0x00002060 } }, { 0x00002061, 1, { 0x00002061 } }, { 0x00002062, 1, { 0x00002062 } }, { 0x00002063, 1, { 0x00002063 } }, { 0x00002064, 1, { 0x00002064 } }, { 0x00002066, 1, { 0x00002066 } }, { 0x00002067, 1, { 0x00002067 } }, { 0x00002068, 1, { 0x00002068 } }, { 0x00002069, 1, { 0x00002069 } }, { 0x0000206a, 1, { 0x0000206a } }, { 0x0000206b, 1, { 0x0000206b } }, { 0x0000206c, 1, { 0x0000206c } }, { 0x0000206d, 1, { 0x0000206d } }, { 0x0000206e, 1, { 0x0000206e } }, { 0x0000206f, 1, { 0x0000206f } }, { 0x00002070, 1, { 0x00002070 } }, { 0x00002071, 1, { 0x00002071 } }, { 0x00002074, 1, { 0x00002074 } }, { 0x00002075, 1, { 0x00002075 } }, { 0x00002076, 1, { 0x00002076 } }, { 0x00002077, 1, { 0x00002077 } }, { 0x00002078, 1, { 0x00002078 } }, { 0x00002079, 1, { 0x00002079 } }, { 0x0000207a, 1, { 0x0000207a } }, { 0x0000207b, 1, { 0x0000207b } }, { 0x0000207c, 1, { 0x0000207c } }, { 0x0000207d, 1, { 0x0000207d } }, { 0x0000207e, 1, { 0x0000207e } }, { 0x0000207f, 1, { 0x0000207f } }, { 0x00002080, 1, { 0x00002080 } }, { 0x00002081, 1, { 0x00002081 } }, { 0x00002082, 1, { 0x00002082 } }, { 0x00002083, 1, { 0x00002083 } }, { 0x00002084, 1, { 0x00002084 } }, { 0x00002085, 1, { 0x00002085 } }, { 0x00002086, 1, { 0x00002086 } }, { 0x00002087, 1, { 0x00002087 } }, { 0x00002088, 1, { 0x00002088 } }, { 0x00002089, 1, { 0x00002089 } }, { 0x0000208a, 1, { 0x0000208a } }, { 0x0000208b, 1, { 0x0000208b } }, { 0x0000208c, 1, { 0x0000208c } }, { 0x0000208d, 1, { 0x0000208d } }, { 0x0000208e, 1, { 0x0000208e } }, { 0x00002090, 1, { 0x00002090 } }, { 0x00002091, 1, { 0x00002091 } }, { 0x00002092, 1, { 0x00002092 } }, { 0x00002093, 1, { 0x00002093 } }, { 0x00002094, 1, { 0x00002094 } }, { 0x00002095, 1, { 0x00002095 } }, { 0x00002096, 1, { 0x00002096 } }, { 0x00002097, 1, { 0x00002097 } }, { 0x00002098, 1, { 0x00002098 } }, { 0x00002099, 1, { 0x00002099 } }, { 0x0000209a, 1, { 0x0000209a } }, { 0x0000209b, 1, { 0x0000209b } }, { 0x0000209c, 1, { 0x0000209c } }, { 0x000020a0, 1, { 0x000020a0 } }, { 0x000020a1, 1, { 0x000020a1 } }, { 0x000020a2, 1, { 0x000020a2 } }, { 0x000020a3, 1, { 0x000020a3 } }, { 0x000020a4, 1, { 0x000020a4 } }, { 0x000020a5, 1, { 0x000020a5 } }, { 0x000020a6, 1, { 0x000020a6 } }, { 0x000020a7, 1, { 0x000020a7 } }, { 0x000020a8, 1, { 0x000020a8 } }, { 0x000020a9, 1, { 0x000020a9 } }, { 0x000020aa, 1, { 0x000020aa } }, { 0x000020ab, 1, { 0x000020ab } }, { 0x000020ac, 1, { 0x000020ac } }, { 0x000020ad, 1, { 0x000020ad } }, { 0x000020ae, 1, { 0x000020ae } }, { 0x000020af, 1, { 0x000020af } }, { 0x000020b0, 1, { 0x000020b0 } }, { 0x000020b1, 1, { 0x000020b1 } }, { 0x000020b2, 1, { 0x000020b2 } }, { 0x000020b3, 1, { 0x000020b3 } }, { 0x000020b4, 1, { 0x000020b4 } }, { 0x000020b5, 1, { 0x000020b5 } }, { 0x000020b6, 1, { 0x000020b6 } }, { 0x000020b7, 1, { 0x000020b7 } }, { 0x000020b8, 1, { 0x000020b8 } }, { 0x000020b9, 1, { 0x000020b9 } }, { 0x000020ba, 1, { 0x000020ba } }, { 0x000020bb, 1, { 0x000020bb } }, { 0x000020bc, 1, { 0x000020bc } }, { 0x000020bd, 1, { 0x000020bd } }, { 0x000020be, 1, { 0x000020be } }, { 0x000020d0, 1, { 0x000020d0 } }, { 0x000020d1, 1, { 0x000020d1 } }, { 0x000020d2, 1, { 0x000020d2 } }, { 0x000020d3, 1, { 0x000020d3 } }, { 0x000020d4, 1, { 0x000020d4 } }, { 0x000020d5, 1, { 0x000020d5 } }, { 0x000020d6, 1, { 0x000020d6 } }, { 0x000020d7, 1, { 0x000020d7 } }, { 0x000020d8, 1, { 0x000020d8 } }, { 0x000020d9, 1, { 0x000020d9 } }, { 0x000020da, 1, { 0x000020da } }, { 0x000020db, 1, { 0x000020db } }, { 0x000020dc, 1, { 0x000020dc } }, { 0x000020dd, 1, { 0x000020dd } }, { 0x000020de, 1, { 0x000020de } }, { 0x000020df, 1, { 0x000020df } }, { 0x000020e0, 1, { 0x000020e0 } }, { 0x000020e1, 1, { 0x000020e1 } }, { 0x000020e2, 1, { 0x000020e2 } }, { 0x000020e3, 1, { 0x000020e3 } }, { 0x000020e4, 1, { 0x000020e4 } }, { 0x000020e5, 1, { 0x000020e5 } }, { 0x000020e6, 1, { 0x000020e6 } }, { 0x000020e7, 1, { 0x000020e7 } }, { 0x000020e8, 1, { 0x000020e8 } }, { 0x000020e9, 1, { 0x000020e9 } }, { 0x000020ea, 1, { 0x000020ea } }, { 0x000020eb, 1, { 0x000020eb } }, { 0x000020ec, 1, { 0x000020ec } }, { 0x000020ed, 1, { 0x000020ed } }, { 0x000020ee, 1, { 0x000020ee } }, { 0x000020ef, 1, { 0x000020ef } }, { 0x000020f0, 1, { 0x000020f0 } }, { 0x00002100, 1, { 0x00002100 } }, { 0x00002101, 1, { 0x00002101 } }, { 0x00002102, 1, { 0x00002102 } }, { 0x00002103, 1, { 0x00002103 } }, { 0x00002104, 1, { 0x00002104 } }, { 0x00002105, 1, { 0x00002105 } }, { 0x00002106, 1, { 0x00002106 } }, { 0x00002107, 1, { 0x00002107 } }, { 0x00002108, 1, { 0x00002108 } }, { 0x00002109, 1, { 0x00002109 } }, { 0x0000210a, 1, { 0x0000210a } }, { 0x0000210b, 1, { 0x0000210b } }, { 0x0000210c, 1, { 0x0000210c } }, { 0x0000210d, 1, { 0x0000210d } }, { 0x0000210e, 1, { 0x0000210e } }, { 0x0000210f, 1, { 0x0000210f } }, { 0x00002110, 1, { 0x00002110 } }, { 0x00002111, 1, { 0x00002111 } }, { 0x00002112, 1, { 0x00002112 } }, { 0x00002113, 1, { 0x00002113 } }, { 0x00002114, 1, { 0x00002114 } }, { 0x00002115, 1, { 0x00002115 } }, { 0x00002116, 1, { 0x00002116 } }, { 0x00002117, 1, { 0x00002117 } }, { 0x00002118, 1, { 0x00002118 } }, { 0x00002119, 1, { 0x00002119 } }, { 0x0000211a, 1, { 0x0000211a } }, { 0x0000211b, 1, { 0x0000211b } }, { 0x0000211c, 1, { 0x0000211c } }, { 0x0000211d, 1, { 0x0000211d } }, { 0x0000211e, 1, { 0x0000211e } }, { 0x0000211f, 1, { 0x0000211f } }, { 0x00002120, 1, { 0x00002120 } }, { 0x00002121, 1, { 0x00002121 } }, { 0x00002122, 1, { 0x00002122 } }, { 0x00002123, 1, { 0x00002123 } }, { 0x00002124, 1, { 0x00002124 } }, { 0x00002125, 1, { 0x00002125 } }, { 0x00002126, 1, { 0x000003a9 } }, { 0x00002127, 1, { 0x00002127 } }, { 0x00002128, 1, { 0x00002128 } }, { 0x00002129, 1, { 0x00002129 } }, { 0x0000212a, 1, { 0x0000004b } }, { 0x0000212b, 2, { 0x00000041, 0x0000030a } }, { 0x0000212c, 1, { 0x0000212c } }, { 0x0000212d, 1, { 0x0000212d } }, { 0x0000212e, 1, { 0x0000212e } }, { 0x0000212f, 1, { 0x0000212f } }, { 0x00002130, 1, { 0x00002130 } }, { 0x00002131, 1, { 0x00002131 } }, { 0x00002132, 1, { 0x00002132 } }, { 0x00002133, 1, { 0x00002133 } }, { 0x00002134, 1, { 0x00002134 } }, { 0x00002135, 1, { 0x00002135 } }, { 0x00002136, 1, { 0x00002136 } }, { 0x00002137, 1, { 0x00002137 } }, { 0x00002138, 1, { 0x00002138 } }, { 0x00002139, 1, { 0x00002139 } }, { 0x0000213a, 1, { 0x0000213a } }, { 0x0000213b, 1, { 0x0000213b } }, { 0x0000213c, 1, { 0x0000213c } }, { 0x0000213d, 1, { 0x0000213d } }, { 0x0000213e, 1, { 0x0000213e } }, { 0x0000213f, 1, { 0x0000213f } }, { 0x00002140, 1, { 0x00002140 } }, { 0x00002141, 1, { 0x00002141 } }, { 0x00002142, 1, { 0x00002142 } }, { 0x00002143, 1, { 0x00002143 } }, { 0x00002144, 1, { 0x00002144 } }, { 0x00002145, 1, { 0x00002145 } }, { 0x00002146, 1, { 0x00002146 } }, { 0x00002147, 1, { 0x00002147 } }, { 0x00002148, 1, { 0x00002148 } }, { 0x00002149, 1, { 0x00002149 } }, { 0x0000214a, 1, { 0x0000214a } }, { 0x0000214b, 1, { 0x0000214b } }, { 0x0000214c, 1, { 0x0000214c } }, { 0x0000214d, 1, { 0x0000214d } }, { 0x0000214e, 1, { 0x0000214e } }, { 0x0000214f, 1, { 0x0000214f } }, { 0x00002150, 1, { 0x00002150 } }, { 0x00002151, 1, { 0x00002151 } }, { 0x00002152, 1, { 0x00002152 } }, { 0x00002153, 1, { 0x00002153 } }, { 0x00002154, 1, { 0x00002154 } }, { 0x00002155, 1, { 0x00002155 } }, { 0x00002156, 1, { 0x00002156 } }, { 0x00002157, 1, { 0x00002157 } }, { 0x00002158, 1, { 0x00002158 } }, { 0x00002159, 1, { 0x00002159 } }, { 0x0000215a, 1, { 0x0000215a } }, { 0x0000215b, 1, { 0x0000215b } }, { 0x0000215c, 1, { 0x0000215c } }, { 0x0000215d, 1, { 0x0000215d } }, { 0x0000215e, 1, { 0x0000215e } }, { 0x0000215f, 1, { 0x0000215f } }, { 0x00002160, 1, { 0x00002160 } }, { 0x00002161, 1, { 0x00002161 } }, { 0x00002162, 1, { 0x00002162 } }, { 0x00002163, 1, { 0x00002163 } }, { 0x00002164, 1, { 0x00002164 } }, { 0x00002165, 1, { 0x00002165 } }, { 0x00002166, 1, { 0x00002166 } }, { 0x00002167, 1, { 0x00002167 } }, { 0x00002168, 1, { 0x00002168 } }, { 0x00002169, 1, { 0x00002169 } }, { 0x0000216a, 1, { 0x0000216a } }, { 0x0000216b, 1, { 0x0000216b } }, { 0x0000216c, 1, { 0x0000216c } }, { 0x0000216d, 1, { 0x0000216d } }, { 0x0000216e, 1, { 0x0000216e } }, { 0x0000216f, 1, { 0x0000216f } }, { 0x00002170, 1, { 0x00002170 } }, { 0x00002171, 1, { 0x00002171 } }, { 0x00002172, 1, { 0x00002172 } }, { 0x00002173, 1, { 0x00002173 } }, { 0x00002174, 1, { 0x00002174 } }, { 0x00002175, 1, { 0x00002175 } }, { 0x00002176, 1, { 0x00002176 } }, { 0x00002177, 1, { 0x00002177 } }, { 0x00002178, 1, { 0x00002178 } }, { 0x00002179, 1, { 0x00002179 } }, { 0x0000217a, 1, { 0x0000217a } }, { 0x0000217b, 1, { 0x0000217b } }, { 0x0000217c, 1, { 0x0000217c } }, { 0x0000217d, 1, { 0x0000217d } }, { 0x0000217e, 1, { 0x0000217e } }, { 0x0000217f, 1, { 0x0000217f } }, { 0x00002180, 1, { 0x00002180 } }, { 0x00002181, 1, { 0x00002181 } }, { 0x00002182, 1, { 0x00002182 } }, { 0x00002183, 1, { 0x00002183 } }, { 0x00002184, 1, { 0x00002184 } }, { 0x00002185, 1, { 0x00002185 } }, { 0x00002186, 1, { 0x00002186 } }, { 0x00002187, 1, { 0x00002187 } }, { 0x00002188, 1, { 0x00002188 } }, { 0x00002189, 1, { 0x00002189 } }, { 0x0000218a, 1, { 0x0000218a } }, { 0x0000218b, 1, { 0x0000218b } }, { 0x00002190, 1, { 0x00002190 } }, { 0x00002191, 1, { 0x00002191 } }, { 0x00002192, 1, { 0x00002192 } }, { 0x00002193, 1, { 0x00002193 } }, { 0x00002194, 1, { 0x00002194 } }, { 0x00002195, 1, { 0x00002195 } }, { 0x00002196, 1, { 0x00002196 } }, { 0x00002197, 1, { 0x00002197 } }, { 0x00002198, 1, { 0x00002198 } }, { 0x00002199, 1, { 0x00002199 } }, { 0x0000219a, 2, { 0x00002190, 0x00000338 } }, { 0x0000219b, 2, { 0x00002192, 0x00000338 } }, { 0x0000219c, 1, { 0x0000219c } }, { 0x0000219d, 1, { 0x0000219d } }, { 0x0000219e, 1, { 0x0000219e } }, { 0x0000219f, 1, { 0x0000219f } }, { 0x000021a0, 1, { 0x000021a0 } }, { 0x000021a1, 1, { 0x000021a1 } }, { 0x000021a2, 1, { 0x000021a2 } }, { 0x000021a3, 1, { 0x000021a3 } }, { 0x000021a4, 1, { 0x000021a4 } }, { 0x000021a5, 1, { 0x000021a5 } }, { 0x000021a6, 1, { 0x000021a6 } }, { 0x000021a7, 1, { 0x000021a7 } }, { 0x000021a8, 1, { 0x000021a8 } }, { 0x000021a9, 1, { 0x000021a9 } }, { 0x000021aa, 1, { 0x000021aa } }, { 0x000021ab, 1, { 0x000021ab } }, { 0x000021ac, 1, { 0x000021ac } }, { 0x000021ad, 1, { 0x000021ad } }, { 0x000021ae, 2, { 0x00002194, 0x00000338 } }, { 0x000021af, 1, { 0x000021af } }, { 0x000021b0, 1, { 0x000021b0 } }, { 0x000021b1, 1, { 0x000021b1 } }, { 0x000021b2, 1, { 0x000021b2 } }, { 0x000021b3, 1, { 0x000021b3 } }, { 0x000021b4, 1, { 0x000021b4 } }, { 0x000021b5, 1, { 0x000021b5 } }, { 0x000021b6, 1, { 0x000021b6 } }, { 0x000021b7, 1, { 0x000021b7 } }, { 0x000021b8, 1, { 0x000021b8 } }, { 0x000021b9, 1, { 0x000021b9 } }, { 0x000021ba, 1, { 0x000021ba } }, { 0x000021bb, 1, { 0x000021bb } }, { 0x000021bc, 1, { 0x000021bc } }, { 0x000021bd, 1, { 0x000021bd } }, { 0x000021be, 1, { 0x000021be } }, { 0x000021bf, 1, { 0x000021bf } }, { 0x000021c0, 1, { 0x000021c0 } }, { 0x000021c1, 1, { 0x000021c1 } }, { 0x000021c2, 1, { 0x000021c2 } }, { 0x000021c3, 1, { 0x000021c3 } }, { 0x000021c4, 1, { 0x000021c4 } }, { 0x000021c5, 1, { 0x000021c5 } }, { 0x000021c6, 1, { 0x000021c6 } }, { 0x000021c7, 1, { 0x000021c7 } }, { 0x000021c8, 1, { 0x000021c8 } }, { 0x000021c9, 1, { 0x000021c9 } }, { 0x000021ca, 1, { 0x000021ca } }, { 0x000021cb, 1, { 0x000021cb } }, { 0x000021cc, 1, { 0x000021cc } }, { 0x000021cd, 2, { 0x000021d0, 0x00000338 } }, { 0x000021ce, 2, { 0x000021d4, 0x00000338 } }, { 0x000021cf, 2, { 0x000021d2, 0x00000338 } }, { 0x000021d0, 1, { 0x000021d0 } }, { 0x000021d1, 1, { 0x000021d1 } }, { 0x000021d2, 1, { 0x000021d2 } }, { 0x000021d3, 1, { 0x000021d3 } }, { 0x000021d4, 1, { 0x000021d4 } }, { 0x000021d5, 1, { 0x000021d5 } }, { 0x000021d6, 1, { 0x000021d6 } }, { 0x000021d7, 1, { 0x000021d7 } }, { 0x000021d8, 1, { 0x000021d8 } }, { 0x000021d9, 1, { 0x000021d9 } }, { 0x000021da, 1, { 0x000021da } }, { 0x000021db, 1, { 0x000021db } }, { 0x000021dc, 1, { 0x000021dc } }, { 0x000021dd, 1, { 0x000021dd } }, { 0x000021de, 1, { 0x000021de } }, { 0x000021df, 1, { 0x000021df } }, { 0x000021e0, 1, { 0x000021e0 } }, { 0x000021e1, 1, { 0x000021e1 } }, { 0x000021e2, 1, { 0x000021e2 } }, { 0x000021e3, 1, { 0x000021e3 } }, { 0x000021e4, 1, { 0x000021e4 } }, { 0x000021e5, 1, { 0x000021e5 } }, { 0x000021e6, 1, { 0x000021e6 } }, { 0x000021e7, 1, { 0x000021e7 } }, { 0x000021e8, 1, { 0x000021e8 } }, { 0x000021e9, 1, { 0x000021e9 } }, { 0x000021ea, 1, { 0x000021ea } }, { 0x000021eb, 1, { 0x000021eb } }, { 0x000021ec, 1, { 0x000021ec } }, { 0x000021ed, 1, { 0x000021ed } }, { 0x000021ee, 1, { 0x000021ee } }, { 0x000021ef, 1, { 0x000021ef } }, { 0x000021f0, 1, { 0x000021f0 } }, { 0x000021f1, 1, { 0x000021f1 } }, { 0x000021f2, 1, { 0x000021f2 } }, { 0x000021f3, 1, { 0x000021f3 } }, { 0x000021f4, 1, { 0x000021f4 } }, { 0x000021f5, 1, { 0x000021f5 } }, { 0x000021f6, 1, { 0x000021f6 } }, { 0x000021f7, 1, { 0x000021f7 } }, { 0x000021f8, 1, { 0x000021f8 } }, { 0x000021f9, 1, { 0x000021f9 } }, { 0x000021fa, 1, { 0x000021fa } }, { 0x000021fb, 1, { 0x000021fb } }, { 0x000021fc, 1, { 0x000021fc } }, { 0x000021fd, 1, { 0x000021fd } }, { 0x000021fe, 1, { 0x000021fe } }, { 0x000021ff, 1, { 0x000021ff } }, { 0x00002200, 1, { 0x00002200 } }, { 0x00002201, 1, { 0x00002201 } }, { 0x00002202, 1, { 0x00002202 } }, { 0x00002203, 1, { 0x00002203 } }, { 0x00002204, 2, { 0x00002203, 0x00000338 } }, { 0x00002205, 1, { 0x00002205 } }, { 0x00002206, 1, { 0x00002206 } }, { 0x00002207, 1, { 0x00002207 } }, { 0x00002208, 1, { 0x00002208 } }, { 0x00002209, 2, { 0x00002208, 0x00000338 } }, { 0x0000220a, 1, { 0x0000220a } }, { 0x0000220b, 1, { 0x0000220b } }, { 0x0000220c, 2, { 0x0000220b, 0x00000338 } }, { 0x0000220d, 1, { 0x0000220d } }, { 0x0000220e, 1, { 0x0000220e } }, { 0x0000220f, 1, { 0x0000220f } }, { 0x00002210, 1, { 0x00002210 } }, { 0x00002211, 1, { 0x00002211 } }, { 0x00002212, 1, { 0x00002212 } }, { 0x00002213, 1, { 0x00002213 } }, { 0x00002214, 1, { 0x00002214 } }, { 0x00002215, 1, { 0x00002215 } }, { 0x00002216, 1, { 0x00002216 } }, { 0x00002217, 1, { 0x00002217 } }, { 0x00002218, 1, { 0x00002218 } }, { 0x00002219, 1, { 0x00002219 } }, { 0x0000221a, 1, { 0x0000221a } }, { 0x0000221b, 1, { 0x0000221b } }, { 0x0000221c, 1, { 0x0000221c } }, { 0x0000221d, 1, { 0x0000221d } }, { 0x0000221e, 1, { 0x0000221e } }, { 0x0000221f, 1, { 0x0000221f } }, { 0x00002220, 1, { 0x00002220 } }, { 0x00002221, 1, { 0x00002221 } }, { 0x00002222, 1, { 0x00002222 } }, { 0x00002223, 1, { 0x00002223 } }, { 0x00002224, 2, { 0x00002223, 0x00000338 } }, { 0x00002225, 1, { 0x00002225 } }, { 0x00002226, 2, { 0x00002225, 0x00000338 } }, { 0x00002227, 1, { 0x00002227 } }, { 0x00002228, 1, { 0x00002228 } }, { 0x00002229, 1, { 0x00002229 } }, { 0x0000222a, 1, { 0x0000222a } }, { 0x0000222b, 1, { 0x0000222b } }, { 0x0000222c, 1, { 0x0000222c } }, { 0x0000222d, 1, { 0x0000222d } }, { 0x0000222e, 1, { 0x0000222e } }, { 0x0000222f, 1, { 0x0000222f } }, { 0x00002230, 1, { 0x00002230 } }, { 0x00002231, 1, { 0x00002231 } }, { 0x00002232, 1, { 0x00002232 } }, { 0x00002233, 1, { 0x00002233 } }, { 0x00002234, 1, { 0x00002234 } }, { 0x00002235, 1, { 0x00002235 } }, { 0x00002236, 1, { 0x00002236 } }, { 0x00002237, 1, { 0x00002237 } }, { 0x00002238, 1, { 0x00002238 } }, { 0x00002239, 1, { 0x00002239 } }, { 0x0000223a, 1, { 0x0000223a } }, { 0x0000223b, 1, { 0x0000223b } }, { 0x0000223c, 1, { 0x0000223c } }, { 0x0000223d, 1, { 0x0000223d } }, { 0x0000223e, 1, { 0x0000223e } }, { 0x0000223f, 1, { 0x0000223f } }, { 0x00002240, 1, { 0x00002240 } }, { 0x00002241, 2, { 0x0000223c, 0x00000338 } }, { 0x00002242, 1, { 0x00002242 } }, { 0x00002243, 1, { 0x00002243 } }, { 0x00002244, 2, { 0x00002243, 0x00000338 } }, { 0x00002245, 1, { 0x00002245 } }, { 0x00002246, 1, { 0x00002246 } }, { 0x00002247, 2, { 0x00002245, 0x00000338 } }, { 0x00002248, 1, { 0x00002248 } }, { 0x00002249, 2, { 0x00002248, 0x00000338 } }, { 0x0000224a, 1, { 0x0000224a } }, { 0x0000224b, 1, { 0x0000224b } }, { 0x0000224c, 1, { 0x0000224c } }, { 0x0000224d, 1, { 0x0000224d } }, { 0x0000224e, 1, { 0x0000224e } }, { 0x0000224f, 1, { 0x0000224f } }, { 0x00002250, 1, { 0x00002250 } }, { 0x00002251, 1, { 0x00002251 } }, { 0x00002252, 1, { 0x00002252 } }, { 0x00002253, 1, { 0x00002253 } }, { 0x00002254, 1, { 0x00002254 } }, { 0x00002255, 1, { 0x00002255 } }, { 0x00002256, 1, { 0x00002256 } }, { 0x00002257, 1, { 0x00002257 } }, { 0x00002258, 1, { 0x00002258 } }, { 0x00002259, 1, { 0x00002259 } }, { 0x0000225a, 1, { 0x0000225a } }, { 0x0000225b, 1, { 0x0000225b } }, { 0x0000225c, 1, { 0x0000225c } }, { 0x0000225d, 1, { 0x0000225d } }, { 0x0000225e, 1, { 0x0000225e } }, { 0x0000225f, 1, { 0x0000225f } }, { 0x00002260, 2, { 0x0000003d, 0x00000338 } }, { 0x00002261, 1, { 0x00002261 } }, { 0x00002262, 2, { 0x00002261, 0x00000338 } }, { 0x00002263, 1, { 0x00002263 } }, { 0x00002264, 1, { 0x00002264 } }, { 0x00002265, 1, { 0x00002265 } }, { 0x00002266, 1, { 0x00002266 } }, { 0x00002267, 1, { 0x00002267 } }, { 0x00002268, 1, { 0x00002268 } }, { 0x00002269, 1, { 0x00002269 } }, { 0x0000226a, 1, { 0x0000226a } }, { 0x0000226b, 1, { 0x0000226b } }, { 0x0000226c, 1, { 0x0000226c } }, { 0x0000226d, 2, { 0x0000224d, 0x00000338 } }, { 0x0000226e, 2, { 0x0000003c, 0x00000338 } }, { 0x0000226f, 2, { 0x0000003e, 0x00000338 } }, { 0x00002270, 2, { 0x00002264, 0x00000338 } }, { 0x00002271, 2, { 0x00002265, 0x00000338 } }, { 0x00002272, 1, { 0x00002272 } }, { 0x00002273, 1, { 0x00002273 } }, { 0x00002274, 2, { 0x00002272, 0x00000338 } }, { 0x00002275, 2, { 0x00002273, 0x00000338 } }, { 0x00002276, 1, { 0x00002276 } }, { 0x00002277, 1, { 0x00002277 } }, { 0x00002278, 2, { 0x00002276, 0x00000338 } }, { 0x00002279, 2, { 0x00002277, 0x00000338 } }, { 0x0000227a, 1, { 0x0000227a } }, { 0x0000227b, 1, { 0x0000227b } }, { 0x0000227c, 1, { 0x0000227c } }, { 0x0000227d, 1, { 0x0000227d } }, { 0x0000227e, 1, { 0x0000227e } }, { 0x0000227f, 1, { 0x0000227f } }, { 0x00002280, 2, { 0x0000227a, 0x00000338 } }, { 0x00002281, 2, { 0x0000227b, 0x00000338 } }, { 0x00002282, 1, { 0x00002282 } }, { 0x00002283, 1, { 0x00002283 } }, { 0x00002284, 2, { 0x00002282, 0x00000338 } }, { 0x00002285, 2, { 0x00002283, 0x00000338 } }, { 0x00002286, 1, { 0x00002286 } }, { 0x00002287, 1, { 0x00002287 } }, { 0x00002288, 2, { 0x00002286, 0x00000338 } }, { 0x00002289, 2, { 0x00002287, 0x00000338 } }, { 0x0000228a, 1, { 0x0000228a } }, { 0x0000228b, 1, { 0x0000228b } }, { 0x0000228c, 1, { 0x0000228c } }, { 0x0000228d, 1, { 0x0000228d } }, { 0x0000228e, 1, { 0x0000228e } }, { 0x0000228f, 1, { 0x0000228f } }, { 0x00002290, 1, { 0x00002290 } }, { 0x00002291, 1, { 0x00002291 } }, { 0x00002292, 1, { 0x00002292 } }, { 0x00002293, 1, { 0x00002293 } }, { 0x00002294, 1, { 0x00002294 } }, { 0x00002295, 1, { 0x00002295 } }, { 0x00002296, 1, { 0x00002296 } }, { 0x00002297, 1, { 0x00002297 } }, { 0x00002298, 1, { 0x00002298 } }, { 0x00002299, 1, { 0x00002299 } }, { 0x0000229a, 1, { 0x0000229a } }, { 0x0000229b, 1, { 0x0000229b } }, { 0x0000229c, 1, { 0x0000229c } }, { 0x0000229d, 1, { 0x0000229d } }, { 0x0000229e, 1, { 0x0000229e } }, { 0x0000229f, 1, { 0x0000229f } }, { 0x000022a0, 1, { 0x000022a0 } }, { 0x000022a1, 1, { 0x000022a1 } }, { 0x000022a2, 1, { 0x000022a2 } }, { 0x000022a3, 1, { 0x000022a3 } }, { 0x000022a4, 1, { 0x000022a4 } }, { 0x000022a5, 1, { 0x000022a5 } }, { 0x000022a6, 1, { 0x000022a6 } }, { 0x000022a7, 1, { 0x000022a7 } }, { 0x000022a8, 1, { 0x000022a8 } }, { 0x000022a9, 1, { 0x000022a9 } }, { 0x000022aa, 1, { 0x000022aa } }, { 0x000022ab, 1, { 0x000022ab } }, { 0x000022ac, 2, { 0x000022a2, 0x00000338 } }, { 0x000022ad, 2, { 0x000022a8, 0x00000338 } }, { 0x000022ae, 2, { 0x000022a9, 0x00000338 } }, { 0x000022af, 2, { 0x000022ab, 0x00000338 } }, { 0x000022b0, 1, { 0x000022b0 } }, { 0x000022b1, 1, { 0x000022b1 } }, { 0x000022b2, 1, { 0x000022b2 } }, { 0x000022b3, 1, { 0x000022b3 } }, { 0x000022b4, 1, { 0x000022b4 } }, { 0x000022b5, 1, { 0x000022b5 } }, { 0x000022b6, 1, { 0x000022b6 } }, { 0x000022b7, 1, { 0x000022b7 } }, { 0x000022b8, 1, { 0x000022b8 } }, { 0x000022b9, 1, { 0x000022b9 } }, { 0x000022ba, 1, { 0x000022ba } }, { 0x000022bb, 1, { 0x000022bb } }, { 0x000022bc, 1, { 0x000022bc } }, { 0x000022bd, 1, { 0x000022bd } }, { 0x000022be, 1, { 0x000022be } }, { 0x000022bf, 1, { 0x000022bf } }, { 0x000022c0, 1, { 0x000022c0 } }, { 0x000022c1, 1, { 0x000022c1 } }, { 0x000022c2, 1, { 0x000022c2 } }, { 0x000022c3, 1, { 0x000022c3 } }, { 0x000022c4, 1, { 0x000022c4 } }, { 0x000022c5, 1, { 0x000022c5 } }, { 0x000022c6, 1, { 0x000022c6 } }, { 0x000022c7, 1, { 0x000022c7 } }, { 0x000022c8, 1, { 0x000022c8 } }, { 0x000022c9, 1, { 0x000022c9 } }, { 0x000022ca, 1, { 0x000022ca } }, { 0x000022cb, 1, { 0x000022cb } }, { 0x000022cc, 1, { 0x000022cc } }, { 0x000022cd, 1, { 0x000022cd } }, { 0x000022ce, 1, { 0x000022ce } }, { 0x000022cf, 1, { 0x000022cf } }, { 0x000022d0, 1, { 0x000022d0 } }, { 0x000022d1, 1, { 0x000022d1 } }, { 0x000022d2, 1, { 0x000022d2 } }, { 0x000022d3, 1, { 0x000022d3 } }, { 0x000022d4, 1, { 0x000022d4 } }, { 0x000022d5, 1, { 0x000022d5 } }, { 0x000022d6, 1, { 0x000022d6 } }, { 0x000022d7, 1, { 0x000022d7 } }, { 0x000022d8, 1, { 0x000022d8 } }, { 0x000022d9, 1, { 0x000022d9 } }, { 0x000022da, 1, { 0x000022da } }, { 0x000022db, 1, { 0x000022db } }, { 0x000022dc, 1, { 0x000022dc } }, { 0x000022dd, 1, { 0x000022dd } }, { 0x000022de, 1, { 0x000022de } }, { 0x000022df, 1, { 0x000022df } }, { 0x000022e0, 2, { 0x0000227c, 0x00000338 } }, { 0x000022e1, 2, { 0x0000227d, 0x00000338 } }, { 0x000022e2, 2, { 0x00002291, 0x00000338 } }, { 0x000022e3, 2, { 0x00002292, 0x00000338 } }, { 0x000022e4, 1, { 0x000022e4 } }, { 0x000022e5, 1, { 0x000022e5 } }, { 0x000022e6, 1, { 0x000022e6 } }, { 0x000022e7, 1, { 0x000022e7 } }, { 0x000022e8, 1, { 0x000022e8 } }, { 0x000022e9, 1, { 0x000022e9 } }, { 0x000022ea, 2, { 0x000022b2, 0x00000338 } }, { 0x000022eb, 2, { 0x000022b3, 0x00000338 } }, { 0x000022ec, 2, { 0x000022b4, 0x00000338 } }, { 0x000022ed, 2, { 0x000022b5, 0x00000338 } }, { 0x000022ee, 1, { 0x000022ee } }, { 0x000022ef, 1, { 0x000022ef } }, { 0x000022f0, 1, { 0x000022f0 } }, { 0x000022f1, 1, { 0x000022f1 } }, { 0x000022f2, 1, { 0x000022f2 } }, { 0x000022f3, 1, { 0x000022f3 } }, { 0x000022f4, 1, { 0x000022f4 } }, { 0x000022f5, 1, { 0x000022f5 } }, { 0x000022f6, 1, { 0x000022f6 } }, { 0x000022f7, 1, { 0x000022f7 } }, { 0x000022f8, 1, { 0x000022f8 } }, { 0x000022f9, 1, { 0x000022f9 } }, { 0x000022fa, 1, { 0x000022fa } }, { 0x000022fb, 1, { 0x000022fb } }, { 0x000022fc, 1, { 0x000022fc } }, { 0x000022fd, 1, { 0x000022fd } }, { 0x000022fe, 1, { 0x000022fe } }, { 0x000022ff, 1, { 0x000022ff } }, { 0x00002300, 1, { 0x00002300 } }, { 0x00002301, 1, { 0x00002301 } }, { 0x00002302, 1, { 0x00002302 } }, { 0x00002303, 1, { 0x00002303 } }, { 0x00002304, 1, { 0x00002304 } }, { 0x00002305, 1, { 0x00002305 } }, { 0x00002306, 1, { 0x00002306 } }, { 0x00002307, 1, { 0x00002307 } }, { 0x00002308, 1, { 0x00002308 } }, { 0x00002309, 1, { 0x00002309 } }, { 0x0000230a, 1, { 0x0000230a } }, { 0x0000230b, 1, { 0x0000230b } }, { 0x0000230c, 1, { 0x0000230c } }, { 0x0000230d, 1, { 0x0000230d } }, { 0x0000230e, 1, { 0x0000230e } }, { 0x0000230f, 1, { 0x0000230f } }, { 0x00002310, 1, { 0x00002310 } }, { 0x00002311, 1, { 0x00002311 } }, { 0x00002312, 1, { 0x00002312 } }, { 0x00002313, 1, { 0x00002313 } }, { 0x00002314, 1, { 0x00002314 } }, { 0x00002315, 1, { 0x00002315 } }, { 0x00002316, 1, { 0x00002316 } }, { 0x00002317, 1, { 0x00002317 } }, { 0x00002318, 1, { 0x00002318 } }, { 0x00002319, 1, { 0x00002319 } }, { 0x0000231a, 1, { 0x0000231a } }, { 0x0000231b, 1, { 0x0000231b } }, { 0x0000231c, 1, { 0x0000231c } }, { 0x0000231d, 1, { 0x0000231d } }, { 0x0000231e, 1, { 0x0000231e } }, { 0x0000231f, 1, { 0x0000231f } }, { 0x00002320, 1, { 0x00002320 } }, { 0x00002321, 1, { 0x00002321 } }, { 0x00002322, 1, { 0x00002322 } }, { 0x00002323, 1, { 0x00002323 } }, { 0x00002324, 1, { 0x00002324 } }, { 0x00002325, 1, { 0x00002325 } }, { 0x00002326, 1, { 0x00002326 } }, { 0x00002327, 1, { 0x00002327 } }, { 0x00002328, 1, { 0x00002328 } }, { 0x00002329, 1, { 0x00003008 } }, { 0x0000232a, 1, { 0x00003009 } }, { 0x0000232b, 1, { 0x0000232b } }, { 0x0000232c, 1, { 0x0000232c } }, { 0x0000232d, 1, { 0x0000232d } }, { 0x0000232e, 1, { 0x0000232e } }, { 0x0000232f, 1, { 0x0000232f } }, { 0x00002330, 1, { 0x00002330 } }, { 0x00002331, 1, { 0x00002331 } }, { 0x00002332, 1, { 0x00002332 } }, { 0x00002333, 1, { 0x00002333 } }, { 0x00002334, 1, { 0x00002334 } }, { 0x00002335, 1, { 0x00002335 } }, { 0x00002336, 1, { 0x00002336 } }, { 0x00002337, 1, { 0x00002337 } }, { 0x00002338, 1, { 0x00002338 } }, { 0x00002339, 1, { 0x00002339 } }, { 0x0000233a, 1, { 0x0000233a } }, { 0x0000233b, 1, { 0x0000233b } }, { 0x0000233c, 1, { 0x0000233c } }, { 0x0000233d, 1, { 0x0000233d } }, { 0x0000233e, 1, { 0x0000233e } }, { 0x0000233f, 1, { 0x0000233f } }, { 0x00002340, 1, { 0x00002340 } }, { 0x00002341, 1, { 0x00002341 } }, { 0x00002342, 1, { 0x00002342 } }, { 0x00002343, 1, { 0x00002343 } }, { 0x00002344, 1, { 0x00002344 } }, { 0x00002345, 1, { 0x00002345 } }, { 0x00002346, 1, { 0x00002346 } }, { 0x00002347, 1, { 0x00002347 } }, { 0x00002348, 1, { 0x00002348 } }, { 0x00002349, 1, { 0x00002349 } }, { 0x0000234a, 1, { 0x0000234a } }, { 0x0000234b, 1, { 0x0000234b } }, { 0x0000234c, 1, { 0x0000234c } }, { 0x0000234d, 1, { 0x0000234d } }, { 0x0000234e, 1, { 0x0000234e } }, { 0x0000234f, 1, { 0x0000234f } }, { 0x00002350, 1, { 0x00002350 } }, { 0x00002351, 1, { 0x00002351 } }, { 0x00002352, 1, { 0x00002352 } }, { 0x00002353, 1, { 0x00002353 } }, { 0x00002354, 1, { 0x00002354 } }, { 0x00002355, 1, { 0x00002355 } }, { 0x00002356, 1, { 0x00002356 } }, { 0x00002357, 1, { 0x00002357 } }, { 0x00002358, 1, { 0x00002358 } }, { 0x00002359, 1, { 0x00002359 } }, { 0x0000235a, 1, { 0x0000235a } }, { 0x0000235b, 1, { 0x0000235b } }, { 0x0000235c, 1, { 0x0000235c } }, { 0x0000235d, 1, { 0x0000235d } }, { 0x0000235e, 1, { 0x0000235e } }, { 0x0000235f, 1, { 0x0000235f } }, { 0x00002360, 1, { 0x00002360 } }, { 0x00002361, 1, { 0x00002361 } }, { 0x00002362, 1, { 0x00002362 } }, { 0x00002363, 1, { 0x00002363 } }, { 0x00002364, 1, { 0x00002364 } }, { 0x00002365, 1, { 0x00002365 } }, { 0x00002366, 1, { 0x00002366 } }, { 0x00002367, 1, { 0x00002367 } }, { 0x00002368, 1, { 0x00002368 } }, { 0x00002369, 1, { 0x00002369 } }, { 0x0000236a, 1, { 0x0000236a } }, { 0x0000236b, 1, { 0x0000236b } }, { 0x0000236c, 1, { 0x0000236c } }, { 0x0000236d, 1, { 0x0000236d } }, { 0x0000236e, 1, { 0x0000236e } }, { 0x0000236f, 1, { 0x0000236f } }, { 0x00002370, 1, { 0x00002370 } }, { 0x00002371, 1, { 0x00002371 } }, { 0x00002372, 1, { 0x00002372 } }, { 0x00002373, 1, { 0x00002373 } }, { 0x00002374, 1, { 0x00002374 } }, { 0x00002375, 1, { 0x00002375 } }, { 0x00002376, 1, { 0x00002376 } }, { 0x00002377, 1, { 0x00002377 } }, { 0x00002378, 1, { 0x00002378 } }, { 0x00002379, 1, { 0x00002379 } }, { 0x0000237a, 1, { 0x0000237a } }, { 0x0000237b, 1, { 0x0000237b } }, { 0x0000237c, 1, { 0x0000237c } }, { 0x0000237d, 1, { 0x0000237d } }, { 0x0000237e, 1, { 0x0000237e } }, { 0x0000237f, 1, { 0x0000237f } }, { 0x00002380, 1, { 0x00002380 } }, { 0x00002381, 1, { 0x00002381 } }, { 0x00002382, 1, { 0x00002382 } }, { 0x00002383, 1, { 0x00002383 } }, { 0x00002384, 1, { 0x00002384 } }, { 0x00002385, 1, { 0x00002385 } }, { 0x00002386, 1, { 0x00002386 } }, { 0x00002387, 1, { 0x00002387 } }, { 0x00002388, 1, { 0x00002388 } }, { 0x00002389, 1, { 0x00002389 } }, { 0x0000238a, 1, { 0x0000238a } }, { 0x0000238b, 1, { 0x0000238b } }, { 0x0000238c, 1, { 0x0000238c } }, { 0x0000238d, 1, { 0x0000238d } }, { 0x0000238e, 1, { 0x0000238e } }, { 0x0000238f, 1, { 0x0000238f } }, { 0x00002390, 1, { 0x00002390 } }, { 0x00002391, 1, { 0x00002391 } }, { 0x00002392, 1, { 0x00002392 } }, { 0x00002393, 1, { 0x00002393 } }, { 0x00002394, 1, { 0x00002394 } }, { 0x00002395, 1, { 0x00002395 } }, { 0x00002396, 1, { 0x00002396 } }, { 0x00002397, 1, { 0x00002397 } }, { 0x00002398, 1, { 0x00002398 } }, { 0x00002399, 1, { 0x00002399 } }, { 0x0000239a, 1, { 0x0000239a } }, { 0x0000239b, 1, { 0x0000239b } }, { 0x0000239c, 1, { 0x0000239c } }, { 0x0000239d, 1, { 0x0000239d } }, { 0x0000239e, 1, { 0x0000239e } }, { 0x0000239f, 1, { 0x0000239f } }, { 0x000023a0, 1, { 0x000023a0 } }, { 0x000023a1, 1, { 0x000023a1 } }, { 0x000023a2, 1, { 0x000023a2 } }, { 0x000023a3, 1, { 0x000023a3 } }, { 0x000023a4, 1, { 0x000023a4 } }, { 0x000023a5, 1, { 0x000023a5 } }, { 0x000023a6, 1, { 0x000023a6 } }, { 0x000023a7, 1, { 0x000023a7 } }, { 0x000023a8, 1, { 0x000023a8 } }, { 0x000023a9, 1, { 0x000023a9 } }, { 0x000023aa, 1, { 0x000023aa } }, { 0x000023ab, 1, { 0x000023ab } }, { 0x000023ac, 1, { 0x000023ac } }, { 0x000023ad, 1, { 0x000023ad } }, { 0x000023ae, 1, { 0x000023ae } }, { 0x000023af, 1, { 0x000023af } }, { 0x000023b0, 1, { 0x000023b0 } }, { 0x000023b1, 1, { 0x000023b1 } }, { 0x000023b2, 1, { 0x000023b2 } }, { 0x000023b3, 1, { 0x000023b3 } }, { 0x000023b4, 1, { 0x000023b4 } }, { 0x000023b5, 1, { 0x000023b5 } }, { 0x000023b6, 1, { 0x000023b6 } }, { 0x000023b7, 1, { 0x000023b7 } }, { 0x000023b8, 1, { 0x000023b8 } }, { 0x000023b9, 1, { 0x000023b9 } }, { 0x000023ba, 1, { 0x000023ba } }, { 0x000023bb, 1, { 0x000023bb } }, { 0x000023bc, 1, { 0x000023bc } }, { 0x000023bd, 1, { 0x000023bd } }, { 0x000023be, 1, { 0x000023be } }, { 0x000023bf, 1, { 0x000023bf } }, { 0x000023c0, 1, { 0x000023c0 } }, { 0x000023c1, 1, { 0x000023c1 } }, { 0x000023c2, 1, { 0x000023c2 } }, { 0x000023c3, 1, { 0x000023c3 } }, { 0x000023c4, 1, { 0x000023c4 } }, { 0x000023c5, 1, { 0x000023c5 } }, { 0x000023c6, 1, { 0x000023c6 } }, { 0x000023c7, 1, { 0x000023c7 } }, { 0x000023c8, 1, { 0x000023c8 } }, { 0x000023c9, 1, { 0x000023c9 } }, { 0x000023ca, 1, { 0x000023ca } }, { 0x000023cb, 1, { 0x000023cb } }, { 0x000023cc, 1, { 0x000023cc } }, { 0x000023cd, 1, { 0x000023cd } }, { 0x000023ce, 1, { 0x000023ce } }, { 0x000023cf, 1, { 0x000023cf } }, { 0x000023d0, 1, { 0x000023d0 } }, { 0x000023d1, 1, { 0x000023d1 } }, { 0x000023d2, 1, { 0x000023d2 } }, { 0x000023d3, 1, { 0x000023d3 } }, { 0x000023d4, 1, { 0x000023d4 } }, { 0x000023d5, 1, { 0x000023d5 } }, { 0x000023d6, 1, { 0x000023d6 } }, { 0x000023d7, 1, { 0x000023d7 } }, { 0x000023d8, 1, { 0x000023d8 } }, { 0x000023d9, 1, { 0x000023d9 } }, { 0x000023da, 1, { 0x000023da } }, { 0x000023db, 1, { 0x000023db } }, { 0x000023dc, 1, { 0x000023dc } }, { 0x000023dd, 1, { 0x000023dd } }, { 0x000023de, 1, { 0x000023de } }, { 0x000023df, 1, { 0x000023df } }, { 0x000023e0, 1, { 0x000023e0 } }, { 0x000023e1, 1, { 0x000023e1 } }, { 0x000023e2, 1, { 0x000023e2 } }, { 0x000023e3, 1, { 0x000023e3 } }, { 0x000023e4, 1, { 0x000023e4 } }, { 0x000023e5, 1, { 0x000023e5 } }, { 0x000023e6, 1, { 0x000023e6 } }, { 0x000023e7, 1, { 0x000023e7 } }, { 0x000023e8, 1, { 0x000023e8 } }, { 0x000023e9, 1, { 0x000023e9 } }, { 0x000023ea, 1, { 0x000023ea } }, { 0x000023eb, 1, { 0x000023eb } }, { 0x000023ec, 1, { 0x000023ec } }, { 0x000023ed, 1, { 0x000023ed } }, { 0x000023ee, 1, { 0x000023ee } }, { 0x000023ef, 1, { 0x000023ef } }, { 0x000023f0, 1, { 0x000023f0 } }, { 0x000023f1, 1, { 0x000023f1 } }, { 0x000023f2, 1, { 0x000023f2 } }, { 0x000023f3, 1, { 0x000023f3 } }, { 0x000023f4, 1, { 0x000023f4 } }, { 0x000023f5, 1, { 0x000023f5 } }, { 0x000023f6, 1, { 0x000023f6 } }, { 0x000023f7, 1, { 0x000023f7 } }, { 0x000023f8, 1, { 0x000023f8 } }, { 0x000023f9, 1, { 0x000023f9 } }, { 0x000023fa, 1, { 0x000023fa } }, { 0x000023fb, 1, { 0x000023fb } }, { 0x000023fc, 1, { 0x000023fc } }, { 0x000023fd, 1, { 0x000023fd } }, { 0x000023fe, 1, { 0x000023fe } }, { 0x00002400, 1, { 0x00002400 } }, { 0x00002401, 1, { 0x00002401 } }, { 0x00002402, 1, { 0x00002402 } }, { 0x00002403, 1, { 0x00002403 } }, { 0x00002404, 1, { 0x00002404 } }, { 0x00002405, 1, { 0x00002405 } }, { 0x00002406, 1, { 0x00002406 } }, { 0x00002407, 1, { 0x00002407 } }, { 0x00002408, 1, { 0x00002408 } }, { 0x00002409, 1, { 0x00002409 } }, { 0x0000240a, 1, { 0x0000240a } }, { 0x0000240b, 1, { 0x0000240b } }, { 0x0000240c, 1, { 0x0000240c } }, { 0x0000240d, 1, { 0x0000240d } }, { 0x0000240e, 1, { 0x0000240e } }, { 0x0000240f, 1, { 0x0000240f } }, { 0x00002410, 1, { 0x00002410 } }, { 0x00002411, 1, { 0x00002411 } }, { 0x00002412, 1, { 0x00002412 } }, { 0x00002413, 1, { 0x00002413 } }, { 0x00002414, 1, { 0x00002414 } }, { 0x00002415, 1, { 0x00002415 } }, { 0x00002416, 1, { 0x00002416 } }, { 0x00002417, 1, { 0x00002417 } }, { 0x00002418, 1, { 0x00002418 } }, { 0x00002419, 1, { 0x00002419 } }, { 0x0000241a, 1, { 0x0000241a } }, { 0x0000241b, 1, { 0x0000241b } }, { 0x0000241c, 1, { 0x0000241c } }, { 0x0000241d, 1, { 0x0000241d } }, { 0x0000241e, 1, { 0x0000241e } }, { 0x0000241f, 1, { 0x0000241f } }, { 0x00002420, 1, { 0x00002420 } }, { 0x00002421, 1, { 0x00002421 } }, { 0x00002422, 1, { 0x00002422 } }, { 0x00002423, 1, { 0x00002423 } }, { 0x00002424, 1, { 0x00002424 } }, { 0x00002425, 1, { 0x00002425 } }, { 0x00002426, 1, { 0x00002426 } }, { 0x00002440, 1, { 0x00002440 } }, { 0x00002441, 1, { 0x00002441 } }, { 0x00002442, 1, { 0x00002442 } }, { 0x00002443, 1, { 0x00002443 } }, { 0x00002444, 1, { 0x00002444 } }, { 0x00002445, 1, { 0x00002445 } }, { 0x00002446, 1, { 0x00002446 } }, { 0x00002447, 1, { 0x00002447 } }, { 0x00002448, 1, { 0x00002448 } }, { 0x00002449, 1, { 0x00002449 } }, { 0x0000244a, 1, { 0x0000244a } }, { 0x00002460, 1, { 0x00002460 } }, { 0x00002461, 1, { 0x00002461 } }, { 0x00002462, 1, { 0x00002462 } }, { 0x00002463, 1, { 0x00002463 } }, { 0x00002464, 1, { 0x00002464 } }, { 0x00002465, 1, { 0x00002465 } }, { 0x00002466, 1, { 0x00002466 } }, { 0x00002467, 1, { 0x00002467 } }, { 0x00002468, 1, { 0x00002468 } }, { 0x00002469, 1, { 0x00002469 } }, { 0x0000246a, 1, { 0x0000246a } }, { 0x0000246b, 1, { 0x0000246b } }, { 0x0000246c, 1, { 0x0000246c } }, { 0x0000246d, 1, { 0x0000246d } }, { 0x0000246e, 1, { 0x0000246e } }, { 0x0000246f, 1, { 0x0000246f } }, { 0x00002470, 1, { 0x00002470 } }, { 0x00002471, 1, { 0x00002471 } }, { 0x00002472, 1, { 0x00002472 } }, { 0x00002473, 1, { 0x00002473 } }, { 0x00002474, 1, { 0x00002474 } }, { 0x00002475, 1, { 0x00002475 } }, { 0x00002476, 1, { 0x00002476 } }, { 0x00002477, 1, { 0x00002477 } }, { 0x00002478, 1, { 0x00002478 } }, { 0x00002479, 1, { 0x00002479 } }, { 0x0000247a, 1, { 0x0000247a } }, { 0x0000247b, 1, { 0x0000247b } }, { 0x0000247c, 1, { 0x0000247c } }, { 0x0000247d, 1, { 0x0000247d } }, { 0x0000247e, 1, { 0x0000247e } }, { 0x0000247f, 1, { 0x0000247f } }, { 0x00002480, 1, { 0x00002480 } }, { 0x00002481, 1, { 0x00002481 } }, { 0x00002482, 1, { 0x00002482 } }, { 0x00002483, 1, { 0x00002483 } }, { 0x00002484, 1, { 0x00002484 } }, { 0x00002485, 1, { 0x00002485 } }, { 0x00002486, 1, { 0x00002486 } }, { 0x00002487, 1, { 0x00002487 } }, { 0x00002488, 1, { 0x00002488 } }, { 0x00002489, 1, { 0x00002489 } }, { 0x0000248a, 1, { 0x0000248a } }, { 0x0000248b, 1, { 0x0000248b } }, { 0x0000248c, 1, { 0x0000248c } }, { 0x0000248d, 1, { 0x0000248d } }, { 0x0000248e, 1, { 0x0000248e } }, { 0x0000248f, 1, { 0x0000248f } }, { 0x00002490, 1, { 0x00002490 } }, { 0x00002491, 1, { 0x00002491 } }, { 0x00002492, 1, { 0x00002492 } }, { 0x00002493, 1, { 0x00002493 } }, { 0x00002494, 1, { 0x00002494 } }, { 0x00002495, 1, { 0x00002495 } }, { 0x00002496, 1, { 0x00002496 } }, { 0x00002497, 1, { 0x00002497 } }, { 0x00002498, 1, { 0x00002498 } }, { 0x00002499, 1, { 0x00002499 } }, { 0x0000249a, 1, { 0x0000249a } }, { 0x0000249b, 1, { 0x0000249b } }, { 0x0000249c, 1, { 0x0000249c } }, { 0x0000249d, 1, { 0x0000249d } }, { 0x0000249e, 1, { 0x0000249e } }, { 0x0000249f, 1, { 0x0000249f } }, { 0x000024a0, 1, { 0x000024a0 } }, { 0x000024a1, 1, { 0x000024a1 } }, { 0x000024a2, 1, { 0x000024a2 } }, { 0x000024a3, 1, { 0x000024a3 } }, { 0x000024a4, 1, { 0x000024a4 } }, { 0x000024a5, 1, { 0x000024a5 } }, { 0x000024a6, 1, { 0x000024a6 } }, { 0x000024a7, 1, { 0x000024a7 } }, { 0x000024a8, 1, { 0x000024a8 } }, { 0x000024a9, 1, { 0x000024a9 } }, { 0x000024aa, 1, { 0x000024aa } }, { 0x000024ab, 1, { 0x000024ab } }, { 0x000024ac, 1, { 0x000024ac } }, { 0x000024ad, 1, { 0x000024ad } }, { 0x000024ae, 1, { 0x000024ae } }, { 0x000024af, 1, { 0x000024af } }, { 0x000024b0, 1, { 0x000024b0 } }, { 0x000024b1, 1, { 0x000024b1 } }, { 0x000024b2, 1, { 0x000024b2 } }, { 0x000024b3, 1, { 0x000024b3 } }, { 0x000024b4, 1, { 0x000024b4 } }, { 0x000024b5, 1, { 0x000024b5 } }, { 0x000024b6, 1, { 0x000024b6 } }, { 0x000024b7, 1, { 0x000024b7 } }, { 0x000024b8, 1, { 0x000024b8 } }, { 0x000024b9, 1, { 0x000024b9 } }, { 0x000024ba, 1, { 0x000024ba } }, { 0x000024bb, 1, { 0x000024bb } }, { 0x000024bc, 1, { 0x000024bc } }, { 0x000024bd, 1, { 0x000024bd } }, { 0x000024be, 1, { 0x000024be } }, { 0x000024bf, 1, { 0x000024bf } }, { 0x000024c0, 1, { 0x000024c0 } }, { 0x000024c1, 1, { 0x000024c1 } }, { 0x000024c2, 1, { 0x000024c2 } }, { 0x000024c3, 1, { 0x000024c3 } }, { 0x000024c4, 1, { 0x000024c4 } }, { 0x000024c5, 1, { 0x000024c5 } }, { 0x000024c6, 1, { 0x000024c6 } }, { 0x000024c7, 1, { 0x000024c7 } }, { 0x000024c8, 1, { 0x000024c8 } }, { 0x000024c9, 1, { 0x000024c9 } }, { 0x000024ca, 1, { 0x000024ca } }, { 0x000024cb, 1, { 0x000024cb } }, { 0x000024cc, 1, { 0x000024cc } }, { 0x000024cd, 1, { 0x000024cd } }, { 0x000024ce, 1, { 0x000024ce } }, { 0x000024cf, 1, { 0x000024cf } }, { 0x000024d0, 1, { 0x000024d0 } }, { 0x000024d1, 1, { 0x000024d1 } }, { 0x000024d2, 1, { 0x000024d2 } }, { 0x000024d3, 1, { 0x000024d3 } }, { 0x000024d4, 1, { 0x000024d4 } }, { 0x000024d5, 1, { 0x000024d5 } }, { 0x000024d6, 1, { 0x000024d6 } }, { 0x000024d7, 1, { 0x000024d7 } }, { 0x000024d8, 1, { 0x000024d8 } }, { 0x000024d9, 1, { 0x000024d9 } }, { 0x000024da, 1, { 0x000024da } }, { 0x000024db, 1, { 0x000024db } }, { 0x000024dc, 1, { 0x000024dc } }, { 0x000024dd, 1, { 0x000024dd } }, { 0x000024de, 1, { 0x000024de } }, { 0x000024df, 1, { 0x000024df } }, { 0x000024e0, 1, { 0x000024e0 } }, { 0x000024e1, 1, { 0x000024e1 } }, { 0x000024e2, 1, { 0x000024e2 } }, { 0x000024e3, 1, { 0x000024e3 } }, { 0x000024e4, 1, { 0x000024e4 } }, { 0x000024e5, 1, { 0x000024e5 } }, { 0x000024e6, 1, { 0x000024e6 } }, { 0x000024e7, 1, { 0x000024e7 } }, { 0x000024e8, 1, { 0x000024e8 } }, { 0x000024e9, 1, { 0x000024e9 } }, { 0x000024ea, 1, { 0x000024ea } }, { 0x000024eb, 1, { 0x000024eb } }, { 0x000024ec, 1, { 0x000024ec } }, { 0x000024ed, 1, { 0x000024ed } }, { 0x000024ee, 1, { 0x000024ee } }, { 0x000024ef, 1, { 0x000024ef } }, { 0x000024f0, 1, { 0x000024f0 } }, { 0x000024f1, 1, { 0x000024f1 } }, { 0x000024f2, 1, { 0x000024f2 } }, { 0x000024f3, 1, { 0x000024f3 } }, { 0x000024f4, 1, { 0x000024f4 } }, { 0x000024f5, 1, { 0x000024f5 } }, { 0x000024f6, 1, { 0x000024f6 } }, { 0x000024f7, 1, { 0x000024f7 } }, { 0x000024f8, 1, { 0x000024f8 } }, { 0x000024f9, 1, { 0x000024f9 } }, { 0x000024fa, 1, { 0x000024fa } }, { 0x000024fb, 1, { 0x000024fb } }, { 0x000024fc, 1, { 0x000024fc } }, { 0x000024fd, 1, { 0x000024fd } }, { 0x000024fe, 1, { 0x000024fe } }, { 0x000024ff, 1, { 0x000024ff } }, { 0x00002500, 1, { 0x00002500 } }, { 0x00002501, 1, { 0x00002501 } }, { 0x00002502, 1, { 0x00002502 } }, { 0x00002503, 1, { 0x00002503 } }, { 0x00002504, 1, { 0x00002504 } }, { 0x00002505, 1, { 0x00002505 } }, { 0x00002506, 1, { 0x00002506 } }, { 0x00002507, 1, { 0x00002507 } }, { 0x00002508, 1, { 0x00002508 } }, { 0x00002509, 1, { 0x00002509 } }, { 0x0000250a, 1, { 0x0000250a } }, { 0x0000250b, 1, { 0x0000250b } }, { 0x0000250c, 1, { 0x0000250c } }, { 0x0000250d, 1, { 0x0000250d } }, { 0x0000250e, 1, { 0x0000250e } }, { 0x0000250f, 1, { 0x0000250f } }, { 0x00002510, 1, { 0x00002510 } }, { 0x00002511, 1, { 0x00002511 } }, { 0x00002512, 1, { 0x00002512 } }, { 0x00002513, 1, { 0x00002513 } }, { 0x00002514, 1, { 0x00002514 } }, { 0x00002515, 1, { 0x00002515 } }, { 0x00002516, 1, { 0x00002516 } }, { 0x00002517, 1, { 0x00002517 } }, { 0x00002518, 1, { 0x00002518 } }, { 0x00002519, 1, { 0x00002519 } }, { 0x0000251a, 1, { 0x0000251a } }, { 0x0000251b, 1, { 0x0000251b } }, { 0x0000251c, 1, { 0x0000251c } }, { 0x0000251d, 1, { 0x0000251d } }, { 0x0000251e, 1, { 0x0000251e } }, { 0x0000251f, 1, { 0x0000251f } }, { 0x00002520, 1, { 0x00002520 } }, { 0x00002521, 1, { 0x00002521 } }, { 0x00002522, 1, { 0x00002522 } }, { 0x00002523, 1, { 0x00002523 } }, { 0x00002524, 1, { 0x00002524 } }, { 0x00002525, 1, { 0x00002525 } }, { 0x00002526, 1, { 0x00002526 } }, { 0x00002527, 1, { 0x00002527 } }, { 0x00002528, 1, { 0x00002528 } }, { 0x00002529, 1, { 0x00002529 } }, { 0x0000252a, 1, { 0x0000252a } }, { 0x0000252b, 1, { 0x0000252b } }, { 0x0000252c, 1, { 0x0000252c } }, { 0x0000252d, 1, { 0x0000252d } }, { 0x0000252e, 1, { 0x0000252e } }, { 0x0000252f, 1, { 0x0000252f } }, { 0x00002530, 1, { 0x00002530 } }, { 0x00002531, 1, { 0x00002531 } }, { 0x00002532, 1, { 0x00002532 } }, { 0x00002533, 1, { 0x00002533 } }, { 0x00002534, 1, { 0x00002534 } }, { 0x00002535, 1, { 0x00002535 } }, { 0x00002536, 1, { 0x00002536 } }, { 0x00002537, 1, { 0x00002537 } }, { 0x00002538, 1, { 0x00002538 } }, { 0x00002539, 1, { 0x00002539 } }, { 0x0000253a, 1, { 0x0000253a } }, { 0x0000253b, 1, { 0x0000253b } }, { 0x0000253c, 1, { 0x0000253c } }, { 0x0000253d, 1, { 0x0000253d } }, { 0x0000253e, 1, { 0x0000253e } }, { 0x0000253f, 1, { 0x0000253f } }, { 0x00002540, 1, { 0x00002540 } }, { 0x00002541, 1, { 0x00002541 } }, { 0x00002542, 1, { 0x00002542 } }, { 0x00002543, 1, { 0x00002543 } }, { 0x00002544, 1, { 0x00002544 } }, { 0x00002545, 1, { 0x00002545 } }, { 0x00002546, 1, { 0x00002546 } }, { 0x00002547, 1, { 0x00002547 } }, { 0x00002548, 1, { 0x00002548 } }, { 0x00002549, 1, { 0x00002549 } }, { 0x0000254a, 1, { 0x0000254a } }, { 0x0000254b, 1, { 0x0000254b } }, { 0x0000254c, 1, { 0x0000254c } }, { 0x0000254d, 1, { 0x0000254d } }, { 0x0000254e, 1, { 0x0000254e } }, { 0x0000254f, 1, { 0x0000254f } }, { 0x00002550, 1, { 0x00002550 } }, { 0x00002551, 1, { 0x00002551 } }, { 0x00002552, 1, { 0x00002552 } }, { 0x00002553, 1, { 0x00002553 } }, { 0x00002554, 1, { 0x00002554 } }, { 0x00002555, 1, { 0x00002555 } }, { 0x00002556, 1, { 0x00002556 } }, { 0x00002557, 1, { 0x00002557 } }, { 0x00002558, 1, { 0x00002558 } }, { 0x00002559, 1, { 0x00002559 } }, { 0x0000255a, 1, { 0x0000255a } }, { 0x0000255b, 1, { 0x0000255b } }, { 0x0000255c, 1, { 0x0000255c } }, { 0x0000255d, 1, { 0x0000255d } }, { 0x0000255e, 1, { 0x0000255e } }, { 0x0000255f, 1, { 0x0000255f } }, { 0x00002560, 1, { 0x00002560 } }, { 0x00002561, 1, { 0x00002561 } }, { 0x00002562, 1, { 0x00002562 } }, { 0x00002563, 1, { 0x00002563 } }, { 0x00002564, 1, { 0x00002564 } }, { 0x00002565, 1, { 0x00002565 } }, { 0x00002566, 1, { 0x00002566 } }, { 0x00002567, 1, { 0x00002567 } }, { 0x00002568, 1, { 0x00002568 } }, { 0x00002569, 1, { 0x00002569 } }, { 0x0000256a, 1, { 0x0000256a } }, { 0x0000256b, 1, { 0x0000256b } }, { 0x0000256c, 1, { 0x0000256c } }, { 0x0000256d, 1, { 0x0000256d } }, { 0x0000256e, 1, { 0x0000256e } }, { 0x0000256f, 1, { 0x0000256f } }, { 0x00002570, 1, { 0x00002570 } }, { 0x00002571, 1, { 0x00002571 } }, { 0x00002572, 1, { 0x00002572 } }, { 0x00002573, 1, { 0x00002573 } }, { 0x00002574, 1, { 0x00002574 } }, { 0x00002575, 1, { 0x00002575 } }, { 0x00002576, 1, { 0x00002576 } }, { 0x00002577, 1, { 0x00002577 } }, { 0x00002578, 1, { 0x00002578 } }, { 0x00002579, 1, { 0x00002579 } }, { 0x0000257a, 1, { 0x0000257a } }, { 0x0000257b, 1, { 0x0000257b } }, { 0x0000257c, 1, { 0x0000257c } }, { 0x0000257d, 1, { 0x0000257d } }, { 0x0000257e, 1, { 0x0000257e } }, { 0x0000257f, 1, { 0x0000257f } }, { 0x00002580, 1, { 0x00002580 } }, { 0x00002581, 1, { 0x00002581 } }, { 0x00002582, 1, { 0x00002582 } }, { 0x00002583, 1, { 0x00002583 } }, { 0x00002584, 1, { 0x00002584 } }, { 0x00002585, 1, { 0x00002585 } }, { 0x00002586, 1, { 0x00002586 } }, { 0x00002587, 1, { 0x00002587 } }, { 0x00002588, 1, { 0x00002588 } }, { 0x00002589, 1, { 0x00002589 } }, { 0x0000258a, 1, { 0x0000258a } }, { 0x0000258b, 1, { 0x0000258b } }, { 0x0000258c, 1, { 0x0000258c } }, { 0x0000258d, 1, { 0x0000258d } }, { 0x0000258e, 1, { 0x0000258e } }, { 0x0000258f, 1, { 0x0000258f } }, { 0x00002590, 1, { 0x00002590 } }, { 0x00002591, 1, { 0x00002591 } }, { 0x00002592, 1, { 0x00002592 } }, { 0x00002593, 1, { 0x00002593 } }, { 0x00002594, 1, { 0x00002594 } }, { 0x00002595, 1, { 0x00002595 } }, { 0x00002596, 1, { 0x00002596 } }, { 0x00002597, 1, { 0x00002597 } }, { 0x00002598, 1, { 0x00002598 } }, { 0x00002599, 1, { 0x00002599 } }, { 0x0000259a, 1, { 0x0000259a } }, { 0x0000259b, 1, { 0x0000259b } }, { 0x0000259c, 1, { 0x0000259c } }, { 0x0000259d, 1, { 0x0000259d } }, { 0x0000259e, 1, { 0x0000259e } }, { 0x0000259f, 1, { 0x0000259f } }, { 0x000025a0, 1, { 0x000025a0 } }, { 0x000025a1, 1, { 0x000025a1 } }, { 0x000025a2, 1, { 0x000025a2 } }, { 0x000025a3, 1, { 0x000025a3 } }, { 0x000025a4, 1, { 0x000025a4 } }, { 0x000025a5, 1, { 0x000025a5 } }, { 0x000025a6, 1, { 0x000025a6 } }, { 0x000025a7, 1, { 0x000025a7 } }, { 0x000025a8, 1, { 0x000025a8 } }, { 0x000025a9, 1, { 0x000025a9 } }, { 0x000025aa, 1, { 0x000025aa } }, { 0x000025ab, 1, { 0x000025ab } }, { 0x000025ac, 1, { 0x000025ac } }, { 0x000025ad, 1, { 0x000025ad } }, { 0x000025ae, 1, { 0x000025ae } }, { 0x000025af, 1, { 0x000025af } }, { 0x000025b0, 1, { 0x000025b0 } }, { 0x000025b1, 1, { 0x000025b1 } }, { 0x000025b2, 1, { 0x000025b2 } }, { 0x000025b3, 1, { 0x000025b3 } }, { 0x000025b4, 1, { 0x000025b4 } }, { 0x000025b5, 1, { 0x000025b5 } }, { 0x000025b6, 1, { 0x000025b6 } }, { 0x000025b7, 1, { 0x000025b7 } }, { 0x000025b8, 1, { 0x000025b8 } }, { 0x000025b9, 1, { 0x000025b9 } }, { 0x000025ba, 1, { 0x000025ba } }, { 0x000025bb, 1, { 0x000025bb } }, { 0x000025bc, 1, { 0x000025bc } }, { 0x000025bd, 1, { 0x000025bd } }, { 0x000025be, 1, { 0x000025be } }, { 0x000025bf, 1, { 0x000025bf } }, { 0x000025c0, 1, { 0x000025c0 } }, { 0x000025c1, 1, { 0x000025c1 } }, { 0x000025c2, 1, { 0x000025c2 } }, { 0x000025c3, 1, { 0x000025c3 } }, { 0x000025c4, 1, { 0x000025c4 } }, { 0x000025c5, 1, { 0x000025c5 } }, { 0x000025c6, 1, { 0x000025c6 } }, { 0x000025c7, 1, { 0x000025c7 } }, { 0x000025c8, 1, { 0x000025c8 } }, { 0x000025c9, 1, { 0x000025c9 } }, { 0x000025ca, 1, { 0x000025ca } }, { 0x000025cb, 1, { 0x000025cb } }, { 0x000025cc, 1, { 0x000025cc } }, { 0x000025cd, 1, { 0x000025cd } }, { 0x000025ce, 1, { 0x000025ce } }, { 0x000025cf, 1, { 0x000025cf } }, { 0x000025d0, 1, { 0x000025d0 } }, { 0x000025d1, 1, { 0x000025d1 } }, { 0x000025d2, 1, { 0x000025d2 } }, { 0x000025d3, 1, { 0x000025d3 } }, { 0x000025d4, 1, { 0x000025d4 } }, { 0x000025d5, 1, { 0x000025d5 } }, { 0x000025d6, 1, { 0x000025d6 } }, { 0x000025d7, 1, { 0x000025d7 } }, { 0x000025d8, 1, { 0x000025d8 } }, { 0x000025d9, 1, { 0x000025d9 } }, { 0x000025da, 1, { 0x000025da } }, { 0x000025db, 1, { 0x000025db } }, { 0x000025dc, 1, { 0x000025dc } }, { 0x000025dd, 1, { 0x000025dd } }, { 0x000025de, 1, { 0x000025de } }, { 0x000025df, 1, { 0x000025df } }, { 0x000025e0, 1, { 0x000025e0 } }, { 0x000025e1, 1, { 0x000025e1 } }, { 0x000025e2, 1, { 0x000025e2 } }, { 0x000025e3, 1, { 0x000025e3 } }, { 0x000025e4, 1, { 0x000025e4 } }, { 0x000025e5, 1, { 0x000025e5 } }, { 0x000025e6, 1, { 0x000025e6 } }, { 0x000025e7, 1, { 0x000025e7 } }, { 0x000025e8, 1, { 0x000025e8 } }, { 0x000025e9, 1, { 0x000025e9 } }, { 0x000025ea, 1, { 0x000025ea } }, { 0x000025eb, 1, { 0x000025eb } }, { 0x000025ec, 1, { 0x000025ec } }, { 0x000025ed, 1, { 0x000025ed } }, { 0x000025ee, 1, { 0x000025ee } }, { 0x000025ef, 1, { 0x000025ef } }, { 0x000025f0, 1, { 0x000025f0 } }, { 0x000025f1, 1, { 0x000025f1 } }, { 0x000025f2, 1, { 0x000025f2 } }, { 0x000025f3, 1, { 0x000025f3 } }, { 0x000025f4, 1, { 0x000025f4 } }, { 0x000025f5, 1, { 0x000025f5 } }, { 0x000025f6, 1, { 0x000025f6 } }, { 0x000025f7, 1, { 0x000025f7 } }, { 0x000025f8, 1, { 0x000025f8 } }, { 0x000025f9, 1, { 0x000025f9 } }, { 0x000025fa, 1, { 0x000025fa } }, { 0x000025fb, 1, { 0x000025fb } }, { 0x000025fc, 1, { 0x000025fc } }, { 0x000025fd, 1, { 0x000025fd } }, { 0x000025fe, 1, { 0x000025fe } }, { 0x000025ff, 1, { 0x000025ff } }, { 0x00002600, 1, { 0x00002600 } }, { 0x00002601, 1, { 0x00002601 } }, { 0x00002602, 1, { 0x00002602 } }, { 0x00002603, 1, { 0x00002603 } }, { 0x00002604, 1, { 0x00002604 } }, { 0x00002605, 1, { 0x00002605 } }, { 0x00002606, 1, { 0x00002606 } }, { 0x00002607, 1, { 0x00002607 } }, { 0x00002608, 1, { 0x00002608 } }, { 0x00002609, 1, { 0x00002609 } }, { 0x0000260a, 1, { 0x0000260a } }, { 0x0000260b, 1, { 0x0000260b } }, { 0x0000260c, 1, { 0x0000260c } }, { 0x0000260d, 1, { 0x0000260d } }, { 0x0000260e, 1, { 0x0000260e } }, { 0x0000260f, 1, { 0x0000260f } }, { 0x00002610, 1, { 0x00002610 } }, { 0x00002611, 1, { 0x00002611 } }, { 0x00002612, 1, { 0x00002612 } }, { 0x00002613, 1, { 0x00002613 } }, { 0x00002614, 1, { 0x00002614 } }, { 0x00002615, 1, { 0x00002615 } }, { 0x00002616, 1, { 0x00002616 } }, { 0x00002617, 1, { 0x00002617 } }, { 0x00002618, 1, { 0x00002618 } }, { 0x00002619, 1, { 0x00002619 } }, { 0x0000261a, 1, { 0x0000261a } }, { 0x0000261b, 1, { 0x0000261b } }, { 0x0000261c, 1, { 0x0000261c } }, { 0x0000261d, 1, { 0x0000261d } }, { 0x0000261e, 1, { 0x0000261e } }, { 0x0000261f, 1, { 0x0000261f } }, { 0x00002620, 1, { 0x00002620 } }, { 0x00002621, 1, { 0x00002621 } }, { 0x00002622, 1, { 0x00002622 } }, { 0x00002623, 1, { 0x00002623 } }, { 0x00002624, 1, { 0x00002624 } }, { 0x00002625, 1, { 0x00002625 } }, { 0x00002626, 1, { 0x00002626 } }, { 0x00002627, 1, { 0x00002627 } }, { 0x00002628, 1, { 0x00002628 } }, { 0x00002629, 1, { 0x00002629 } }, { 0x0000262a, 1, { 0x0000262a } }, { 0x0000262b, 1, { 0x0000262b } }, { 0x0000262c, 1, { 0x0000262c } }, { 0x0000262d, 1, { 0x0000262d } }, { 0x0000262e, 1, { 0x0000262e } }, { 0x0000262f, 1, { 0x0000262f } }, { 0x00002630, 1, { 0x00002630 } }, { 0x00002631, 1, { 0x00002631 } }, { 0x00002632, 1, { 0x00002632 } }, { 0x00002633, 1, { 0x00002633 } }, { 0x00002634, 1, { 0x00002634 } }, { 0x00002635, 1, { 0x00002635 } }, { 0x00002636, 1, { 0x00002636 } }, { 0x00002637, 1, { 0x00002637 } }, { 0x00002638, 1, { 0x00002638 } }, { 0x00002639, 1, { 0x00002639 } }, { 0x0000263a, 1, { 0x0000263a } }, { 0x0000263b, 1, { 0x0000263b } }, { 0x0000263c, 1, { 0x0000263c } }, { 0x0000263d, 1, { 0x0000263d } }, { 0x0000263e, 1, { 0x0000263e } }, { 0x0000263f, 1, { 0x0000263f } }, { 0x00002640, 1, { 0x00002640 } }, { 0x00002641, 1, { 0x00002641 } }, { 0x00002642, 1, { 0x00002642 } }, { 0x00002643, 1, { 0x00002643 } }, { 0x00002644, 1, { 0x00002644 } }, { 0x00002645, 1, { 0x00002645 } }, { 0x00002646, 1, { 0x00002646 } }, { 0x00002647, 1, { 0x00002647 } }, { 0x00002648, 1, { 0x00002648 } }, { 0x00002649, 1, { 0x00002649 } }, { 0x0000264a, 1, { 0x0000264a } }, { 0x0000264b, 1, { 0x0000264b } }, { 0x0000264c, 1, { 0x0000264c } }, { 0x0000264d, 1, { 0x0000264d } }, { 0x0000264e, 1, { 0x0000264e } }, { 0x0000264f, 1, { 0x0000264f } }, { 0x00002650, 1, { 0x00002650 } }, { 0x00002651, 1, { 0x00002651 } }, { 0x00002652, 1, { 0x00002652 } }, { 0x00002653, 1, { 0x00002653 } }, { 0x00002654, 1, { 0x00002654 } }, { 0x00002655, 1, { 0x00002655 } }, { 0x00002656, 1, { 0x00002656 } }, { 0x00002657, 1, { 0x00002657 } }, { 0x00002658, 1, { 0x00002658 } }, { 0x00002659, 1, { 0x00002659 } }, { 0x0000265a, 1, { 0x0000265a } }, { 0x0000265b, 1, { 0x0000265b } }, { 0x0000265c, 1, { 0x0000265c } }, { 0x0000265d, 1, { 0x0000265d } }, { 0x0000265e, 1, { 0x0000265e } }, { 0x0000265f, 1, { 0x0000265f } }, { 0x00002660, 1, { 0x00002660 } }, { 0x00002661, 1, { 0x00002661 } }, { 0x00002662, 1, { 0x00002662 } }, { 0x00002663, 1, { 0x00002663 } }, { 0x00002664, 1, { 0x00002664 } }, { 0x00002665, 1, { 0x00002665 } }, { 0x00002666, 1, { 0x00002666 } }, { 0x00002667, 1, { 0x00002667 } }, { 0x00002668, 1, { 0x00002668 } }, { 0x00002669, 1, { 0x00002669 } }, { 0x0000266a, 1, { 0x0000266a } }, { 0x0000266b, 1, { 0x0000266b } }, { 0x0000266c, 1, { 0x0000266c } }, { 0x0000266d, 1, { 0x0000266d } }, { 0x0000266e, 1, { 0x0000266e } }, { 0x0000266f, 1, { 0x0000266f } }, { 0x00002670, 1, { 0x00002670 } }, { 0x00002671, 1, { 0x00002671 } }, { 0x00002672, 1, { 0x00002672 } }, { 0x00002673, 1, { 0x00002673 } }, { 0x00002674, 1, { 0x00002674 } }, { 0x00002675, 1, { 0x00002675 } }, { 0x00002676, 1, { 0x00002676 } }, { 0x00002677, 1, { 0x00002677 } }, { 0x00002678, 1, { 0x00002678 } }, { 0x00002679, 1, { 0x00002679 } }, { 0x0000267a, 1, { 0x0000267a } }, { 0x0000267b, 1, { 0x0000267b } }, { 0x0000267c, 1, { 0x0000267c } }, { 0x0000267d, 1, { 0x0000267d } }, { 0x0000267e, 1, { 0x0000267e } }, { 0x0000267f, 1, { 0x0000267f } }, { 0x00002680, 1, { 0x00002680 } }, { 0x00002681, 1, { 0x00002681 } }, { 0x00002682, 1, { 0x00002682 } }, { 0x00002683, 1, { 0x00002683 } }, { 0x00002684, 1, { 0x00002684 } }, { 0x00002685, 1, { 0x00002685 } }, { 0x00002686, 1, { 0x00002686 } }, { 0x00002687, 1, { 0x00002687 } }, { 0x00002688, 1, { 0x00002688 } }, { 0x00002689, 1, { 0x00002689 } }, { 0x0000268a, 1, { 0x0000268a } }, { 0x0000268b, 1, { 0x0000268b } }, { 0x0000268c, 1, { 0x0000268c } }, { 0x0000268d, 1, { 0x0000268d } }, { 0x0000268e, 1, { 0x0000268e } }, { 0x0000268f, 1, { 0x0000268f } }, { 0x00002690, 1, { 0x00002690 } }, { 0x00002691, 1, { 0x00002691 } }, { 0x00002692, 1, { 0x00002692 } }, { 0x00002693, 1, { 0x00002693 } }, { 0x00002694, 1, { 0x00002694 } }, { 0x00002695, 1, { 0x00002695 } }, { 0x00002696, 1, { 0x00002696 } }, { 0x00002697, 1, { 0x00002697 } }, { 0x00002698, 1, { 0x00002698 } }, { 0x00002699, 1, { 0x00002699 } }, { 0x0000269a, 1, { 0x0000269a } }, { 0x0000269b, 1, { 0x0000269b } }, { 0x0000269c, 1, { 0x0000269c } }, { 0x0000269d, 1, { 0x0000269d } }, { 0x0000269e, 1, { 0x0000269e } }, { 0x0000269f, 1, { 0x0000269f } }, { 0x000026a0, 1, { 0x000026a0 } }, { 0x000026a1, 1, { 0x000026a1 } }, { 0x000026a2, 1, { 0x000026a2 } }, { 0x000026a3, 1, { 0x000026a3 } }, { 0x000026a4, 1, { 0x000026a4 } }, { 0x000026a5, 1, { 0x000026a5 } }, { 0x000026a6, 1, { 0x000026a6 } }, { 0x000026a7, 1, { 0x000026a7 } }, { 0x000026a8, 1, { 0x000026a8 } }, { 0x000026a9, 1, { 0x000026a9 } }, { 0x000026aa, 1, { 0x000026aa } }, { 0x000026ab, 1, { 0x000026ab } }, { 0x000026ac, 1, { 0x000026ac } }, { 0x000026ad, 1, { 0x000026ad } }, { 0x000026ae, 1, { 0x000026ae } }, { 0x000026af, 1, { 0x000026af } }, { 0x000026b0, 1, { 0x000026b0 } }, { 0x000026b1, 1, { 0x000026b1 } }, { 0x000026b2, 1, { 0x000026b2 } }, { 0x000026b3, 1, { 0x000026b3 } }, { 0x000026b4, 1, { 0x000026b4 } }, { 0x000026b5, 1, { 0x000026b5 } }, { 0x000026b6, 1, { 0x000026b6 } }, { 0x000026b7, 1, { 0x000026b7 } }, { 0x000026b8, 1, { 0x000026b8 } }, { 0x000026b9, 1, { 0x000026b9 } }, { 0x000026ba, 1, { 0x000026ba } }, { 0x000026bb, 1, { 0x000026bb } }, { 0x000026bc, 1, { 0x000026bc } }, { 0x000026bd, 1, { 0x000026bd } }, { 0x000026be, 1, { 0x000026be } }, { 0x000026bf, 1, { 0x000026bf } }, { 0x000026c0, 1, { 0x000026c0 } }, { 0x000026c1, 1, { 0x000026c1 } }, { 0x000026c2, 1, { 0x000026c2 } }, { 0x000026c3, 1, { 0x000026c3 } }, { 0x000026c4, 1, { 0x000026c4 } }, { 0x000026c5, 1, { 0x000026c5 } }, { 0x000026c6, 1, { 0x000026c6 } }, { 0x000026c7, 1, { 0x000026c7 } }, { 0x000026c8, 1, { 0x000026c8 } }, { 0x000026c9, 1, { 0x000026c9 } }, { 0x000026ca, 1, { 0x000026ca } }, { 0x000026cb, 1, { 0x000026cb } }, { 0x000026cc, 1, { 0x000026cc } }, { 0x000026cd, 1, { 0x000026cd } }, { 0x000026ce, 1, { 0x000026ce } }, { 0x000026cf, 1, { 0x000026cf } }, { 0x000026d0, 1, { 0x000026d0 } }, { 0x000026d1, 1, { 0x000026d1 } }, { 0x000026d2, 1, { 0x000026d2 } }, { 0x000026d3, 1, { 0x000026d3 } }, { 0x000026d4, 1, { 0x000026d4 } }, { 0x000026d5, 1, { 0x000026d5 } }, { 0x000026d6, 1, { 0x000026d6 } }, { 0x000026d7, 1, { 0x000026d7 } }, { 0x000026d8, 1, { 0x000026d8 } }, { 0x000026d9, 1, { 0x000026d9 } }, { 0x000026da, 1, { 0x000026da } }, { 0x000026db, 1, { 0x000026db } }, { 0x000026dc, 1, { 0x000026dc } }, { 0x000026dd, 1, { 0x000026dd } }, { 0x000026de, 1, { 0x000026de } }, { 0x000026df, 1, { 0x000026df } }, { 0x000026e0, 1, { 0x000026e0 } }, { 0x000026e1, 1, { 0x000026e1 } }, { 0x000026e2, 1, { 0x000026e2 } }, { 0x000026e3, 1, { 0x000026e3 } }, { 0x000026e4, 1, { 0x000026e4 } }, { 0x000026e5, 1, { 0x000026e5 } }, { 0x000026e6, 1, { 0x000026e6 } }, { 0x000026e7, 1, { 0x000026e7 } }, { 0x000026e8, 1, { 0x000026e8 } }, { 0x000026e9, 1, { 0x000026e9 } }, { 0x000026ea, 1, { 0x000026ea } }, { 0x000026eb, 1, { 0x000026eb } }, { 0x000026ec, 1, { 0x000026ec } }, { 0x000026ed, 1, { 0x000026ed } }, { 0x000026ee, 1, { 0x000026ee } }, { 0x000026ef, 1, { 0x000026ef } }, { 0x000026f0, 1, { 0x000026f0 } }, { 0x000026f1, 1, { 0x000026f1 } }, { 0x000026f2, 1, { 0x000026f2 } }, { 0x000026f3, 1, { 0x000026f3 } }, { 0x000026f4, 1, { 0x000026f4 } }, { 0x000026f5, 1, { 0x000026f5 } }, { 0x000026f6, 1, { 0x000026f6 } }, { 0x000026f7, 1, { 0x000026f7 } }, { 0x000026f8, 1, { 0x000026f8 } }, { 0x000026f9, 1, { 0x000026f9 } }, { 0x000026fa, 1, { 0x000026fa } }, { 0x000026fb, 1, { 0x000026fb } }, { 0x000026fc, 1, { 0x000026fc } }, { 0x000026fd, 1, { 0x000026fd } }, { 0x000026fe, 1, { 0x000026fe } }, { 0x000026ff, 1, { 0x000026ff } }, { 0x00002700, 1, { 0x00002700 } }, { 0x00002701, 1, { 0x00002701 } }, { 0x00002702, 1, { 0x00002702 } }, { 0x00002703, 1, { 0x00002703 } }, { 0x00002704, 1, { 0x00002704 } }, { 0x00002705, 1, { 0x00002705 } }, { 0x00002706, 1, { 0x00002706 } }, { 0x00002707, 1, { 0x00002707 } }, { 0x00002708, 1, { 0x00002708 } }, { 0x00002709, 1, { 0x00002709 } }, { 0x0000270a, 1, { 0x0000270a } }, { 0x0000270b, 1, { 0x0000270b } }, { 0x0000270c, 1, { 0x0000270c } }, { 0x0000270d, 1, { 0x0000270d } }, { 0x0000270e, 1, { 0x0000270e } }, { 0x0000270f, 1, { 0x0000270f } }, { 0x00002710, 1, { 0x00002710 } }, { 0x00002711, 1, { 0x00002711 } }, { 0x00002712, 1, { 0x00002712 } }, { 0x00002713, 1, { 0x00002713 } }, { 0x00002714, 1, { 0x00002714 } }, { 0x00002715, 1, { 0x00002715 } }, { 0x00002716, 1, { 0x00002716 } }, { 0x00002717, 1, { 0x00002717 } }, { 0x00002718, 1, { 0x00002718 } }, { 0x00002719, 1, { 0x00002719 } }, { 0x0000271a, 1, { 0x0000271a } }, { 0x0000271b, 1, { 0x0000271b } }, { 0x0000271c, 1, { 0x0000271c } }, { 0x0000271d, 1, { 0x0000271d } }, { 0x0000271e, 1, { 0x0000271e } }, { 0x0000271f, 1, { 0x0000271f } }, { 0x00002720, 1, { 0x00002720 } }, { 0x00002721, 1, { 0x00002721 } }, { 0x00002722, 1, { 0x00002722 } }, { 0x00002723, 1, { 0x00002723 } }, { 0x00002724, 1, { 0x00002724 } }, { 0x00002725, 1, { 0x00002725 } }, { 0x00002726, 1, { 0x00002726 } }, { 0x00002727, 1, { 0x00002727 } }, { 0x00002728, 1, { 0x00002728 } }, { 0x00002729, 1, { 0x00002729 } }, { 0x0000272a, 1, { 0x0000272a } }, { 0x0000272b, 1, { 0x0000272b } }, { 0x0000272c, 1, { 0x0000272c } }, { 0x0000272d, 1, { 0x0000272d } }, { 0x0000272e, 1, { 0x0000272e } }, { 0x0000272f, 1, { 0x0000272f } }, { 0x00002730, 1, { 0x00002730 } }, { 0x00002731, 1, { 0x00002731 } }, { 0x00002732, 1, { 0x00002732 } }, { 0x00002733, 1, { 0x00002733 } }, { 0x00002734, 1, { 0x00002734 } }, { 0x00002735, 1, { 0x00002735 } }, { 0x00002736, 1, { 0x00002736 } }, { 0x00002737, 1, { 0x00002737 } }, { 0x00002738, 1, { 0x00002738 } }, { 0x00002739, 1, { 0x00002739 } }, { 0x0000273a, 1, { 0x0000273a } }, { 0x0000273b, 1, { 0x0000273b } }, { 0x0000273c, 1, { 0x0000273c } }, { 0x0000273d, 1, { 0x0000273d } }, { 0x0000273e, 1, { 0x0000273e } }, { 0x0000273f, 1, { 0x0000273f } }, { 0x00002740, 1, { 0x00002740 } }, { 0x00002741, 1, { 0x00002741 } }, { 0x00002742, 1, { 0x00002742 } }, { 0x00002743, 1, { 0x00002743 } }, { 0x00002744, 1, { 0x00002744 } }, { 0x00002745, 1, { 0x00002745 } }, { 0x00002746, 1, { 0x00002746 } }, { 0x00002747, 1, { 0x00002747 } }, { 0x00002748, 1, { 0x00002748 } }, { 0x00002749, 1, { 0x00002749 } }, { 0x0000274a, 1, { 0x0000274a } }, { 0x0000274b, 1, { 0x0000274b } }, { 0x0000274c, 1, { 0x0000274c } }, { 0x0000274d, 1, { 0x0000274d } }, { 0x0000274e, 1, { 0x0000274e } }, { 0x0000274f, 1, { 0x0000274f } }, { 0x00002750, 1, { 0x00002750 } }, { 0x00002751, 1, { 0x00002751 } }, { 0x00002752, 1, { 0x00002752 } }, { 0x00002753, 1, { 0x00002753 } }, { 0x00002754, 1, { 0x00002754 } }, { 0x00002755, 1, { 0x00002755 } }, { 0x00002756, 1, { 0x00002756 } }, { 0x00002757, 1, { 0x00002757 } }, { 0x00002758, 1, { 0x00002758 } }, { 0x00002759, 1, { 0x00002759 } }, { 0x0000275a, 1, { 0x0000275a } }, { 0x0000275b, 1, { 0x0000275b } }, { 0x0000275c, 1, { 0x0000275c } }, { 0x0000275d, 1, { 0x0000275d } }, { 0x0000275e, 1, { 0x0000275e } }, { 0x0000275f, 1, { 0x0000275f } }, { 0x00002760, 1, { 0x00002760 } }, { 0x00002761, 1, { 0x00002761 } }, { 0x00002762, 1, { 0x00002762 } }, { 0x00002763, 1, { 0x00002763 } }, { 0x00002764, 1, { 0x00002764 } }, { 0x00002765, 1, { 0x00002765 } }, { 0x00002766, 1, { 0x00002766 } }, { 0x00002767, 1, { 0x00002767 } }, { 0x00002768, 1, { 0x00002768 } }, { 0x00002769, 1, { 0x00002769 } }, { 0x0000276a, 1, { 0x0000276a } }, { 0x0000276b, 1, { 0x0000276b } }, { 0x0000276c, 1, { 0x0000276c } }, { 0x0000276d, 1, { 0x0000276d } }, { 0x0000276e, 1, { 0x0000276e } }, { 0x0000276f, 1, { 0x0000276f } }, { 0x00002770, 1, { 0x00002770 } }, { 0x00002771, 1, { 0x00002771 } }, { 0x00002772, 1, { 0x00002772 } }, { 0x00002773, 1, { 0x00002773 } }, { 0x00002774, 1, { 0x00002774 } }, { 0x00002775, 1, { 0x00002775 } }, { 0x00002776, 1, { 0x00002776 } }, { 0x00002777, 1, { 0x00002777 } }, { 0x00002778, 1, { 0x00002778 } }, { 0x00002779, 1, { 0x00002779 } }, { 0x0000277a, 1, { 0x0000277a } }, { 0x0000277b, 1, { 0x0000277b } }, { 0x0000277c, 1, { 0x0000277c } }, { 0x0000277d, 1, { 0x0000277d } }, { 0x0000277e, 1, { 0x0000277e } }, { 0x0000277f, 1, { 0x0000277f } }, { 0x00002780, 1, { 0x00002780 } }, { 0x00002781, 1, { 0x00002781 } }, { 0x00002782, 1, { 0x00002782 } }, { 0x00002783, 1, { 0x00002783 } }, { 0x00002784, 1, { 0x00002784 } }, { 0x00002785, 1, { 0x00002785 } }, { 0x00002786, 1, { 0x00002786 } }, { 0x00002787, 1, { 0x00002787 } }, { 0x00002788, 1, { 0x00002788 } }, { 0x00002789, 1, { 0x00002789 } }, { 0x0000278a, 1, { 0x0000278a } }, { 0x0000278b, 1, { 0x0000278b } }, { 0x0000278c, 1, { 0x0000278c } }, { 0x0000278d, 1, { 0x0000278d } }, { 0x0000278e, 1, { 0x0000278e } }, { 0x0000278f, 1, { 0x0000278f } }, { 0x00002790, 1, { 0x00002790 } }, { 0x00002791, 1, { 0x00002791 } }, { 0x00002792, 1, { 0x00002792 } }, { 0x00002793, 1, { 0x00002793 } }, { 0x00002794, 1, { 0x00002794 } }, { 0x00002795, 1, { 0x00002795 } }, { 0x00002796, 1, { 0x00002796 } }, { 0x00002797, 1, { 0x00002797 } }, { 0x00002798, 1, { 0x00002798 } }, { 0x00002799, 1, { 0x00002799 } }, { 0x0000279a, 1, { 0x0000279a } }, { 0x0000279b, 1, { 0x0000279b } }, { 0x0000279c, 1, { 0x0000279c } }, { 0x0000279d, 1, { 0x0000279d } }, { 0x0000279e, 1, { 0x0000279e } }, { 0x0000279f, 1, { 0x0000279f } }, { 0x000027a0, 1, { 0x000027a0 } }, { 0x000027a1, 1, { 0x000027a1 } }, { 0x000027a2, 1, { 0x000027a2 } }, { 0x000027a3, 1, { 0x000027a3 } }, { 0x000027a4, 1, { 0x000027a4 } }, { 0x000027a5, 1, { 0x000027a5 } }, { 0x000027a6, 1, { 0x000027a6 } }, { 0x000027a7, 1, { 0x000027a7 } }, { 0x000027a8, 1, { 0x000027a8 } }, { 0x000027a9, 1, { 0x000027a9 } }, { 0x000027aa, 1, { 0x000027aa } }, { 0x000027ab, 1, { 0x000027ab } }, { 0x000027ac, 1, { 0x000027ac } }, { 0x000027ad, 1, { 0x000027ad } }, { 0x000027ae, 1, { 0x000027ae } }, { 0x000027af, 1, { 0x000027af } }, { 0x000027b0, 1, { 0x000027b0 } }, { 0x000027b1, 1, { 0x000027b1 } }, { 0x000027b2, 1, { 0x000027b2 } }, { 0x000027b3, 1, { 0x000027b3 } }, { 0x000027b4, 1, { 0x000027b4 } }, { 0x000027b5, 1, { 0x000027b5 } }, { 0x000027b6, 1, { 0x000027b6 } }, { 0x000027b7, 1, { 0x000027b7 } }, { 0x000027b8, 1, { 0x000027b8 } }, { 0x000027b9, 1, { 0x000027b9 } }, { 0x000027ba, 1, { 0x000027ba } }, { 0x000027bb, 1, { 0x000027bb } }, { 0x000027bc, 1, { 0x000027bc } }, { 0x000027bd, 1, { 0x000027bd } }, { 0x000027be, 1, { 0x000027be } }, { 0x000027bf, 1, { 0x000027bf } }, { 0x000027c0, 1, { 0x000027c0 } }, { 0x000027c1, 1, { 0x000027c1 } }, { 0x000027c2, 1, { 0x000027c2 } }, { 0x000027c3, 1, { 0x000027c3 } }, { 0x000027c4, 1, { 0x000027c4 } }, { 0x000027c5, 1, { 0x000027c5 } }, { 0x000027c6, 1, { 0x000027c6 } }, { 0x000027c7, 1, { 0x000027c7 } }, { 0x000027c8, 1, { 0x000027c8 } }, { 0x000027c9, 1, { 0x000027c9 } }, { 0x000027ca, 1, { 0x000027ca } }, { 0x000027cb, 1, { 0x000027cb } }, { 0x000027cc, 1, { 0x000027cc } }, { 0x000027cd, 1, { 0x000027cd } }, { 0x000027ce, 1, { 0x000027ce } }, { 0x000027cf, 1, { 0x000027cf } }, { 0x000027d0, 1, { 0x000027d0 } }, { 0x000027d1, 1, { 0x000027d1 } }, { 0x000027d2, 1, { 0x000027d2 } }, { 0x000027d3, 1, { 0x000027d3 } }, { 0x000027d4, 1, { 0x000027d4 } }, { 0x000027d5, 1, { 0x000027d5 } }, { 0x000027d6, 1, { 0x000027d6 } }, { 0x000027d7, 1, { 0x000027d7 } }, { 0x000027d8, 1, { 0x000027d8 } }, { 0x000027d9, 1, { 0x000027d9 } }, { 0x000027da, 1, { 0x000027da } }, { 0x000027db, 1, { 0x000027db } }, { 0x000027dc, 1, { 0x000027dc } }, { 0x000027dd, 1, { 0x000027dd } }, { 0x000027de, 1, { 0x000027de } }, { 0x000027df, 1, { 0x000027df } }, { 0x000027e0, 1, { 0x000027e0 } }, { 0x000027e1, 1, { 0x000027e1 } }, { 0x000027e2, 1, { 0x000027e2 } }, { 0x000027e3, 1, { 0x000027e3 } }, { 0x000027e4, 1, { 0x000027e4 } }, { 0x000027e5, 1, { 0x000027e5 } }, { 0x000027e6, 1, { 0x000027e6 } }, { 0x000027e7, 1, { 0x000027e7 } }, { 0x000027e8, 1, { 0x000027e8 } }, { 0x000027e9, 1, { 0x000027e9 } }, { 0x000027ea, 1, { 0x000027ea } }, { 0x000027eb, 1, { 0x000027eb } }, { 0x000027ec, 1, { 0x000027ec } }, { 0x000027ed, 1, { 0x000027ed } }, { 0x000027ee, 1, { 0x000027ee } }, { 0x000027ef, 1, { 0x000027ef } }, { 0x000027f0, 1, { 0x000027f0 } }, { 0x000027f1, 1, { 0x000027f1 } }, { 0x000027f2, 1, { 0x000027f2 } }, { 0x000027f3, 1, { 0x000027f3 } }, { 0x000027f4, 1, { 0x000027f4 } }, { 0x000027f5, 1, { 0x000027f5 } }, { 0x000027f6, 1, { 0x000027f6 } }, { 0x000027f7, 1, { 0x000027f7 } }, { 0x000027f8, 1, { 0x000027f8 } }, { 0x000027f9, 1, { 0x000027f9 } }, { 0x000027fa, 1, { 0x000027fa } }, { 0x000027fb, 1, { 0x000027fb } }, { 0x000027fc, 1, { 0x000027fc } }, { 0x000027fd, 1, { 0x000027fd } }, { 0x000027fe, 1, { 0x000027fe } }, { 0x000027ff, 1, { 0x000027ff } }, { 0x00002800, 1, { 0x00002800 } }, { 0x00002801, 1, { 0x00002801 } }, { 0x00002802, 1, { 0x00002802 } }, { 0x00002803, 1, { 0x00002803 } }, { 0x00002804, 1, { 0x00002804 } }, { 0x00002805, 1, { 0x00002805 } }, { 0x00002806, 1, { 0x00002806 } }, { 0x00002807, 1, { 0x00002807 } }, { 0x00002808, 1, { 0x00002808 } }, { 0x00002809, 1, { 0x00002809 } }, { 0x0000280a, 1, { 0x0000280a } }, { 0x0000280b, 1, { 0x0000280b } }, { 0x0000280c, 1, { 0x0000280c } }, { 0x0000280d, 1, { 0x0000280d } }, { 0x0000280e, 1, { 0x0000280e } }, { 0x0000280f, 1, { 0x0000280f } }, { 0x00002810, 1, { 0x00002810 } }, { 0x00002811, 1, { 0x00002811 } }, { 0x00002812, 1, { 0x00002812 } }, { 0x00002813, 1, { 0x00002813 } }, { 0x00002814, 1, { 0x00002814 } }, { 0x00002815, 1, { 0x00002815 } }, { 0x00002816, 1, { 0x00002816 } }, { 0x00002817, 1, { 0x00002817 } }, { 0x00002818, 1, { 0x00002818 } }, { 0x00002819, 1, { 0x00002819 } }, { 0x0000281a, 1, { 0x0000281a } }, { 0x0000281b, 1, { 0x0000281b } }, { 0x0000281c, 1, { 0x0000281c } }, { 0x0000281d, 1, { 0x0000281d } }, { 0x0000281e, 1, { 0x0000281e } }, { 0x0000281f, 1, { 0x0000281f } }, { 0x00002820, 1, { 0x00002820 } }, { 0x00002821, 1, { 0x00002821 } }, { 0x00002822, 1, { 0x00002822 } }, { 0x00002823, 1, { 0x00002823 } }, { 0x00002824, 1, { 0x00002824 } }, { 0x00002825, 1, { 0x00002825 } }, { 0x00002826, 1, { 0x00002826 } }, { 0x00002827, 1, { 0x00002827 } }, { 0x00002828, 1, { 0x00002828 } }, { 0x00002829, 1, { 0x00002829 } }, { 0x0000282a, 1, { 0x0000282a } }, { 0x0000282b, 1, { 0x0000282b } }, { 0x0000282c, 1, { 0x0000282c } }, { 0x0000282d, 1, { 0x0000282d } }, { 0x0000282e, 1, { 0x0000282e } }, { 0x0000282f, 1, { 0x0000282f } }, { 0x00002830, 1, { 0x00002830 } }, { 0x00002831, 1, { 0x00002831 } }, { 0x00002832, 1, { 0x00002832 } }, { 0x00002833, 1, { 0x00002833 } }, { 0x00002834, 1, { 0x00002834 } }, { 0x00002835, 1, { 0x00002835 } }, { 0x00002836, 1, { 0x00002836 } }, { 0x00002837, 1, { 0x00002837 } }, { 0x00002838, 1, { 0x00002838 } }, { 0x00002839, 1, { 0x00002839 } }, { 0x0000283a, 1, { 0x0000283a } }, { 0x0000283b, 1, { 0x0000283b } }, { 0x0000283c, 1, { 0x0000283c } }, { 0x0000283d, 1, { 0x0000283d } }, { 0x0000283e, 1, { 0x0000283e } }, { 0x0000283f, 1, { 0x0000283f } }, { 0x00002840, 1, { 0x00002840 } }, { 0x00002841, 1, { 0x00002841 } }, { 0x00002842, 1, { 0x00002842 } }, { 0x00002843, 1, { 0x00002843 } }, { 0x00002844, 1, { 0x00002844 } }, { 0x00002845, 1, { 0x00002845 } }, { 0x00002846, 1, { 0x00002846 } }, { 0x00002847, 1, { 0x00002847 } }, { 0x00002848, 1, { 0x00002848 } }, { 0x00002849, 1, { 0x00002849 } }, { 0x0000284a, 1, { 0x0000284a } }, { 0x0000284b, 1, { 0x0000284b } }, { 0x0000284c, 1, { 0x0000284c } }, { 0x0000284d, 1, { 0x0000284d } }, { 0x0000284e, 1, { 0x0000284e } }, { 0x0000284f, 1, { 0x0000284f } }, { 0x00002850, 1, { 0x00002850 } }, { 0x00002851, 1, { 0x00002851 } }, { 0x00002852, 1, { 0x00002852 } }, { 0x00002853, 1, { 0x00002853 } }, { 0x00002854, 1, { 0x00002854 } }, { 0x00002855, 1, { 0x00002855 } }, { 0x00002856, 1, { 0x00002856 } }, { 0x00002857, 1, { 0x00002857 } }, { 0x00002858, 1, { 0x00002858 } }, { 0x00002859, 1, { 0x00002859 } }, { 0x0000285a, 1, { 0x0000285a } }, { 0x0000285b, 1, { 0x0000285b } }, { 0x0000285c, 1, { 0x0000285c } }, { 0x0000285d, 1, { 0x0000285d } }, { 0x0000285e, 1, { 0x0000285e } }, { 0x0000285f, 1, { 0x0000285f } }, { 0x00002860, 1, { 0x00002860 } }, { 0x00002861, 1, { 0x00002861 } }, { 0x00002862, 1, { 0x00002862 } }, { 0x00002863, 1, { 0x00002863 } }, { 0x00002864, 1, { 0x00002864 } }, { 0x00002865, 1, { 0x00002865 } }, { 0x00002866, 1, { 0x00002866 } }, { 0x00002867, 1, { 0x00002867 } }, { 0x00002868, 1, { 0x00002868 } }, { 0x00002869, 1, { 0x00002869 } }, { 0x0000286a, 1, { 0x0000286a } }, { 0x0000286b, 1, { 0x0000286b } }, { 0x0000286c, 1, { 0x0000286c } }, { 0x0000286d, 1, { 0x0000286d } }, { 0x0000286e, 1, { 0x0000286e } }, { 0x0000286f, 1, { 0x0000286f } }, { 0x00002870, 1, { 0x00002870 } }, { 0x00002871, 1, { 0x00002871 } }, { 0x00002872, 1, { 0x00002872 } }, { 0x00002873, 1, { 0x00002873 } }, { 0x00002874, 1, { 0x00002874 } }, { 0x00002875, 1, { 0x00002875 } }, { 0x00002876, 1, { 0x00002876 } }, { 0x00002877, 1, { 0x00002877 } }, { 0x00002878, 1, { 0x00002878 } }, { 0x00002879, 1, { 0x00002879 } }, { 0x0000287a, 1, { 0x0000287a } }, { 0x0000287b, 1, { 0x0000287b } }, { 0x0000287c, 1, { 0x0000287c } }, { 0x0000287d, 1, { 0x0000287d } }, { 0x0000287e, 1, { 0x0000287e } }, { 0x0000287f, 1, { 0x0000287f } }, { 0x00002880, 1, { 0x00002880 } }, { 0x00002881, 1, { 0x00002881 } }, { 0x00002882, 1, { 0x00002882 } }, { 0x00002883, 1, { 0x00002883 } }, { 0x00002884, 1, { 0x00002884 } }, { 0x00002885, 1, { 0x00002885 } }, { 0x00002886, 1, { 0x00002886 } }, { 0x00002887, 1, { 0x00002887 } }, { 0x00002888, 1, { 0x00002888 } }, { 0x00002889, 1, { 0x00002889 } }, { 0x0000288a, 1, { 0x0000288a } }, { 0x0000288b, 1, { 0x0000288b } }, { 0x0000288c, 1, { 0x0000288c } }, { 0x0000288d, 1, { 0x0000288d } }, { 0x0000288e, 1, { 0x0000288e } }, { 0x0000288f, 1, { 0x0000288f } }, { 0x00002890, 1, { 0x00002890 } }, { 0x00002891, 1, { 0x00002891 } }, { 0x00002892, 1, { 0x00002892 } }, { 0x00002893, 1, { 0x00002893 } }, { 0x00002894, 1, { 0x00002894 } }, { 0x00002895, 1, { 0x00002895 } }, { 0x00002896, 1, { 0x00002896 } }, { 0x00002897, 1, { 0x00002897 } }, { 0x00002898, 1, { 0x00002898 } }, { 0x00002899, 1, { 0x00002899 } }, { 0x0000289a, 1, { 0x0000289a } }, { 0x0000289b, 1, { 0x0000289b } }, { 0x0000289c, 1, { 0x0000289c } }, { 0x0000289d, 1, { 0x0000289d } }, { 0x0000289e, 1, { 0x0000289e } }, { 0x0000289f, 1, { 0x0000289f } }, { 0x000028a0, 1, { 0x000028a0 } }, { 0x000028a1, 1, { 0x000028a1 } }, { 0x000028a2, 1, { 0x000028a2 } }, { 0x000028a3, 1, { 0x000028a3 } }, { 0x000028a4, 1, { 0x000028a4 } }, { 0x000028a5, 1, { 0x000028a5 } }, { 0x000028a6, 1, { 0x000028a6 } }, { 0x000028a7, 1, { 0x000028a7 } }, { 0x000028a8, 1, { 0x000028a8 } }, { 0x000028a9, 1, { 0x000028a9 } }, { 0x000028aa, 1, { 0x000028aa } }, { 0x000028ab, 1, { 0x000028ab } }, { 0x000028ac, 1, { 0x000028ac } }, { 0x000028ad, 1, { 0x000028ad } }, { 0x000028ae, 1, { 0x000028ae } }, { 0x000028af, 1, { 0x000028af } }, { 0x000028b0, 1, { 0x000028b0 } }, { 0x000028b1, 1, { 0x000028b1 } }, { 0x000028b2, 1, { 0x000028b2 } }, { 0x000028b3, 1, { 0x000028b3 } }, { 0x000028b4, 1, { 0x000028b4 } }, { 0x000028b5, 1, { 0x000028b5 } }, { 0x000028b6, 1, { 0x000028b6 } }, { 0x000028b7, 1, { 0x000028b7 } }, { 0x000028b8, 1, { 0x000028b8 } }, { 0x000028b9, 1, { 0x000028b9 } }, { 0x000028ba, 1, { 0x000028ba } }, { 0x000028bb, 1, { 0x000028bb } }, { 0x000028bc, 1, { 0x000028bc } }, { 0x000028bd, 1, { 0x000028bd } }, { 0x000028be, 1, { 0x000028be } }, { 0x000028bf, 1, { 0x000028bf } }, { 0x000028c0, 1, { 0x000028c0 } }, { 0x000028c1, 1, { 0x000028c1 } }, { 0x000028c2, 1, { 0x000028c2 } }, { 0x000028c3, 1, { 0x000028c3 } }, { 0x000028c4, 1, { 0x000028c4 } }, { 0x000028c5, 1, { 0x000028c5 } }, { 0x000028c6, 1, { 0x000028c6 } }, { 0x000028c7, 1, { 0x000028c7 } }, { 0x000028c8, 1, { 0x000028c8 } }, { 0x000028c9, 1, { 0x000028c9 } }, { 0x000028ca, 1, { 0x000028ca } }, { 0x000028cb, 1, { 0x000028cb } }, { 0x000028cc, 1, { 0x000028cc } }, { 0x000028cd, 1, { 0x000028cd } }, { 0x000028ce, 1, { 0x000028ce } }, { 0x000028cf, 1, { 0x000028cf } }, { 0x000028d0, 1, { 0x000028d0 } }, { 0x000028d1, 1, { 0x000028d1 } }, { 0x000028d2, 1, { 0x000028d2 } }, { 0x000028d3, 1, { 0x000028d3 } }, { 0x000028d4, 1, { 0x000028d4 } }, { 0x000028d5, 1, { 0x000028d5 } }, { 0x000028d6, 1, { 0x000028d6 } }, { 0x000028d7, 1, { 0x000028d7 } }, { 0x000028d8, 1, { 0x000028d8 } }, { 0x000028d9, 1, { 0x000028d9 } }, { 0x000028da, 1, { 0x000028da } }, { 0x000028db, 1, { 0x000028db } }, { 0x000028dc, 1, { 0x000028dc } }, { 0x000028dd, 1, { 0x000028dd } }, { 0x000028de, 1, { 0x000028de } }, { 0x000028df, 1, { 0x000028df } }, { 0x000028e0, 1, { 0x000028e0 } }, { 0x000028e1, 1, { 0x000028e1 } }, { 0x000028e2, 1, { 0x000028e2 } }, { 0x000028e3, 1, { 0x000028e3 } }, { 0x000028e4, 1, { 0x000028e4 } }, { 0x000028e5, 1, { 0x000028e5 } }, { 0x000028e6, 1, { 0x000028e6 } }, { 0x000028e7, 1, { 0x000028e7 } }, { 0x000028e8, 1, { 0x000028e8 } }, { 0x000028e9, 1, { 0x000028e9 } }, { 0x000028ea, 1, { 0x000028ea } }, { 0x000028eb, 1, { 0x000028eb } }, { 0x000028ec, 1, { 0x000028ec } }, { 0x000028ed, 1, { 0x000028ed } }, { 0x000028ee, 1, { 0x000028ee } }, { 0x000028ef, 1, { 0x000028ef } }, { 0x000028f0, 1, { 0x000028f0 } }, { 0x000028f1, 1, { 0x000028f1 } }, { 0x000028f2, 1, { 0x000028f2 } }, { 0x000028f3, 1, { 0x000028f3 } }, { 0x000028f4, 1, { 0x000028f4 } }, { 0x000028f5, 1, { 0x000028f5 } }, { 0x000028f6, 1, { 0x000028f6 } }, { 0x000028f7, 1, { 0x000028f7 } }, { 0x000028f8, 1, { 0x000028f8 } }, { 0x000028f9, 1, { 0x000028f9 } }, { 0x000028fa, 1, { 0x000028fa } }, { 0x000028fb, 1, { 0x000028fb } }, { 0x000028fc, 1, { 0x000028fc } }, { 0x000028fd, 1, { 0x000028fd } }, { 0x000028fe, 1, { 0x000028fe } }, { 0x000028ff, 1, { 0x000028ff } }, { 0x00002900, 1, { 0x00002900 } }, { 0x00002901, 1, { 0x00002901 } }, { 0x00002902, 1, { 0x00002902 } }, { 0x00002903, 1, { 0x00002903 } }, { 0x00002904, 1, { 0x00002904 } }, { 0x00002905, 1, { 0x00002905 } }, { 0x00002906, 1, { 0x00002906 } }, { 0x00002907, 1, { 0x00002907 } }, { 0x00002908, 1, { 0x00002908 } }, { 0x00002909, 1, { 0x00002909 } }, { 0x0000290a, 1, { 0x0000290a } }, { 0x0000290b, 1, { 0x0000290b } }, { 0x0000290c, 1, { 0x0000290c } }, { 0x0000290d, 1, { 0x0000290d } }, { 0x0000290e, 1, { 0x0000290e } }, { 0x0000290f, 1, { 0x0000290f } }, { 0x00002910, 1, { 0x00002910 } }, { 0x00002911, 1, { 0x00002911 } }, { 0x00002912, 1, { 0x00002912 } }, { 0x00002913, 1, { 0x00002913 } }, { 0x00002914, 1, { 0x00002914 } }, { 0x00002915, 1, { 0x00002915 } }, { 0x00002916, 1, { 0x00002916 } }, { 0x00002917, 1, { 0x00002917 } }, { 0x00002918, 1, { 0x00002918 } }, { 0x00002919, 1, { 0x00002919 } }, { 0x0000291a, 1, { 0x0000291a } }, { 0x0000291b, 1, { 0x0000291b } }, { 0x0000291c, 1, { 0x0000291c } }, { 0x0000291d, 1, { 0x0000291d } }, { 0x0000291e, 1, { 0x0000291e } }, { 0x0000291f, 1, { 0x0000291f } }, { 0x00002920, 1, { 0x00002920 } }, { 0x00002921, 1, { 0x00002921 } }, { 0x00002922, 1, { 0x00002922 } }, { 0x00002923, 1, { 0x00002923 } }, { 0x00002924, 1, { 0x00002924 } }, { 0x00002925, 1, { 0x00002925 } }, { 0x00002926, 1, { 0x00002926 } }, { 0x00002927, 1, { 0x00002927 } }, { 0x00002928, 1, { 0x00002928 } }, { 0x00002929, 1, { 0x00002929 } }, { 0x0000292a, 1, { 0x0000292a } }, { 0x0000292b, 1, { 0x0000292b } }, { 0x0000292c, 1, { 0x0000292c } }, { 0x0000292d, 1, { 0x0000292d } }, { 0x0000292e, 1, { 0x0000292e } }, { 0x0000292f, 1, { 0x0000292f } }, { 0x00002930, 1, { 0x00002930 } }, { 0x00002931, 1, { 0x00002931 } }, { 0x00002932, 1, { 0x00002932 } }, { 0x00002933, 1, { 0x00002933 } }, { 0x00002934, 1, { 0x00002934 } }, { 0x00002935, 1, { 0x00002935 } }, { 0x00002936, 1, { 0x00002936 } }, { 0x00002937, 1, { 0x00002937 } }, { 0x00002938, 1, { 0x00002938 } }, { 0x00002939, 1, { 0x00002939 } }, { 0x0000293a, 1, { 0x0000293a } }, { 0x0000293b, 1, { 0x0000293b } }, { 0x0000293c, 1, { 0x0000293c } }, { 0x0000293d, 1, { 0x0000293d } }, { 0x0000293e, 1, { 0x0000293e } }, { 0x0000293f, 1, { 0x0000293f } }, { 0x00002940, 1, { 0x00002940 } }, { 0x00002941, 1, { 0x00002941 } }, { 0x00002942, 1, { 0x00002942 } }, { 0x00002943, 1, { 0x00002943 } }, { 0x00002944, 1, { 0x00002944 } }, { 0x00002945, 1, { 0x00002945 } }, { 0x00002946, 1, { 0x00002946 } }, { 0x00002947, 1, { 0x00002947 } }, { 0x00002948, 1, { 0x00002948 } }, { 0x00002949, 1, { 0x00002949 } }, { 0x0000294a, 1, { 0x0000294a } }, { 0x0000294b, 1, { 0x0000294b } }, { 0x0000294c, 1, { 0x0000294c } }, { 0x0000294d, 1, { 0x0000294d } }, { 0x0000294e, 1, { 0x0000294e } }, { 0x0000294f, 1, { 0x0000294f } }, { 0x00002950, 1, { 0x00002950 } }, { 0x00002951, 1, { 0x00002951 } }, { 0x00002952, 1, { 0x00002952 } }, { 0x00002953, 1, { 0x00002953 } }, { 0x00002954, 1, { 0x00002954 } }, { 0x00002955, 1, { 0x00002955 } }, { 0x00002956, 1, { 0x00002956 } }, { 0x00002957, 1, { 0x00002957 } }, { 0x00002958, 1, { 0x00002958 } }, { 0x00002959, 1, { 0x00002959 } }, { 0x0000295a, 1, { 0x0000295a } }, { 0x0000295b, 1, { 0x0000295b } }, { 0x0000295c, 1, { 0x0000295c } }, { 0x0000295d, 1, { 0x0000295d } }, { 0x0000295e, 1, { 0x0000295e } }, { 0x0000295f, 1, { 0x0000295f } }, { 0x00002960, 1, { 0x00002960 } }, { 0x00002961, 1, { 0x00002961 } }, { 0x00002962, 1, { 0x00002962 } }, { 0x00002963, 1, { 0x00002963 } }, { 0x00002964, 1, { 0x00002964 } }, { 0x00002965, 1, { 0x00002965 } }, { 0x00002966, 1, { 0x00002966 } }, { 0x00002967, 1, { 0x00002967 } }, { 0x00002968, 1, { 0x00002968 } }, { 0x00002969, 1, { 0x00002969 } }, { 0x0000296a, 1, { 0x0000296a } }, { 0x0000296b, 1, { 0x0000296b } }, { 0x0000296c, 1, { 0x0000296c } }, { 0x0000296d, 1, { 0x0000296d } }, { 0x0000296e, 1, { 0x0000296e } }, { 0x0000296f, 1, { 0x0000296f } }, { 0x00002970, 1, { 0x00002970 } }, { 0x00002971, 1, { 0x00002971 } }, { 0x00002972, 1, { 0x00002972 } }, { 0x00002973, 1, { 0x00002973 } }, { 0x00002974, 1, { 0x00002974 } }, { 0x00002975, 1, { 0x00002975 } }, { 0x00002976, 1, { 0x00002976 } }, { 0x00002977, 1, { 0x00002977 } }, { 0x00002978, 1, { 0x00002978 } }, { 0x00002979, 1, { 0x00002979 } }, { 0x0000297a, 1, { 0x0000297a } }, { 0x0000297b, 1, { 0x0000297b } }, { 0x0000297c, 1, { 0x0000297c } }, { 0x0000297d, 1, { 0x0000297d } }, { 0x0000297e, 1, { 0x0000297e } }, { 0x0000297f, 1, { 0x0000297f } }, { 0x00002980, 1, { 0x00002980 } }, { 0x00002981, 1, { 0x00002981 } }, { 0x00002982, 1, { 0x00002982 } }, { 0x00002983, 1, { 0x00002983 } }, { 0x00002984, 1, { 0x00002984 } }, { 0x00002985, 1, { 0x00002985 } }, { 0x00002986, 1, { 0x00002986 } }, { 0x00002987, 1, { 0x00002987 } }, { 0x00002988, 1, { 0x00002988 } }, { 0x00002989, 1, { 0x00002989 } }, { 0x0000298a, 1, { 0x0000298a } }, { 0x0000298b, 1, { 0x0000298b } }, { 0x0000298c, 1, { 0x0000298c } }, { 0x0000298d, 1, { 0x0000298d } }, { 0x0000298e, 1, { 0x0000298e } }, { 0x0000298f, 1, { 0x0000298f } }, { 0x00002990, 1, { 0x00002990 } }, { 0x00002991, 1, { 0x00002991 } }, { 0x00002992, 1, { 0x00002992 } }, { 0x00002993, 1, { 0x00002993 } }, { 0x00002994, 1, { 0x00002994 } }, { 0x00002995, 1, { 0x00002995 } }, { 0x00002996, 1, { 0x00002996 } }, { 0x00002997, 1, { 0x00002997 } }, { 0x00002998, 1, { 0x00002998 } }, { 0x00002999, 1, { 0x00002999 } }, { 0x0000299a, 1, { 0x0000299a } }, { 0x0000299b, 1, { 0x0000299b } }, { 0x0000299c, 1, { 0x0000299c } }, { 0x0000299d, 1, { 0x0000299d } }, { 0x0000299e, 1, { 0x0000299e } }, { 0x0000299f, 1, { 0x0000299f } }, { 0x000029a0, 1, { 0x000029a0 } }, { 0x000029a1, 1, { 0x000029a1 } }, { 0x000029a2, 1, { 0x000029a2 } }, { 0x000029a3, 1, { 0x000029a3 } }, { 0x000029a4, 1, { 0x000029a4 } }, { 0x000029a5, 1, { 0x000029a5 } }, { 0x000029a6, 1, { 0x000029a6 } }, { 0x000029a7, 1, { 0x000029a7 } }, { 0x000029a8, 1, { 0x000029a8 } }, { 0x000029a9, 1, { 0x000029a9 } }, { 0x000029aa, 1, { 0x000029aa } }, { 0x000029ab, 1, { 0x000029ab } }, { 0x000029ac, 1, { 0x000029ac } }, { 0x000029ad, 1, { 0x000029ad } }, { 0x000029ae, 1, { 0x000029ae } }, { 0x000029af, 1, { 0x000029af } }, { 0x000029b0, 1, { 0x000029b0 } }, { 0x000029b1, 1, { 0x000029b1 } }, { 0x000029b2, 1, { 0x000029b2 } }, { 0x000029b3, 1, { 0x000029b3 } }, { 0x000029b4, 1, { 0x000029b4 } }, { 0x000029b5, 1, { 0x000029b5 } }, { 0x000029b6, 1, { 0x000029b6 } }, { 0x000029b7, 1, { 0x000029b7 } }, { 0x000029b8, 1, { 0x000029b8 } }, { 0x000029b9, 1, { 0x000029b9 } }, { 0x000029ba, 1, { 0x000029ba } }, { 0x000029bb, 1, { 0x000029bb } }, { 0x000029bc, 1, { 0x000029bc } }, { 0x000029bd, 1, { 0x000029bd } }, { 0x000029be, 1, { 0x000029be } }, { 0x000029bf, 1, { 0x000029bf } }, { 0x000029c0, 1, { 0x000029c0 } }, { 0x000029c1, 1, { 0x000029c1 } }, { 0x000029c2, 1, { 0x000029c2 } }, { 0x000029c3, 1, { 0x000029c3 } }, { 0x000029c4, 1, { 0x000029c4 } }, { 0x000029c5, 1, { 0x000029c5 } }, { 0x000029c6, 1, { 0x000029c6 } }, { 0x000029c7, 1, { 0x000029c7 } }, { 0x000029c8, 1, { 0x000029c8 } }, { 0x000029c9, 1, { 0x000029c9 } }, { 0x000029ca, 1, { 0x000029ca } }, { 0x000029cb, 1, { 0x000029cb } }, { 0x000029cc, 1, { 0x000029cc } }, { 0x000029cd, 1, { 0x000029cd } }, { 0x000029ce, 1, { 0x000029ce } }, { 0x000029cf, 1, { 0x000029cf } }, { 0x000029d0, 1, { 0x000029d0 } }, { 0x000029d1, 1, { 0x000029d1 } }, { 0x000029d2, 1, { 0x000029d2 } }, { 0x000029d3, 1, { 0x000029d3 } }, { 0x000029d4, 1, { 0x000029d4 } }, { 0x000029d5, 1, { 0x000029d5 } }, { 0x000029d6, 1, { 0x000029d6 } }, { 0x000029d7, 1, { 0x000029d7 } }, { 0x000029d8, 1, { 0x000029d8 } }, { 0x000029d9, 1, { 0x000029d9 } }, { 0x000029da, 1, { 0x000029da } }, { 0x000029db, 1, { 0x000029db } }, { 0x000029dc, 1, { 0x000029dc } }, { 0x000029dd, 1, { 0x000029dd } }, { 0x000029de, 1, { 0x000029de } }, { 0x000029df, 1, { 0x000029df } }, { 0x000029e0, 1, { 0x000029e0 } }, { 0x000029e1, 1, { 0x000029e1 } }, { 0x000029e2, 1, { 0x000029e2 } }, { 0x000029e3, 1, { 0x000029e3 } }, { 0x000029e4, 1, { 0x000029e4 } }, { 0x000029e5, 1, { 0x000029e5 } }, { 0x000029e6, 1, { 0x000029e6 } }, { 0x000029e7, 1, { 0x000029e7 } }, { 0x000029e8, 1, { 0x000029e8 } }, { 0x000029e9, 1, { 0x000029e9 } }, { 0x000029ea, 1, { 0x000029ea } }, { 0x000029eb, 1, { 0x000029eb } }, { 0x000029ec, 1, { 0x000029ec } }, { 0x000029ed, 1, { 0x000029ed } }, { 0x000029ee, 1, { 0x000029ee } }, { 0x000029ef, 1, { 0x000029ef } }, { 0x000029f0, 1, { 0x000029f0 } }, { 0x000029f1, 1, { 0x000029f1 } }, { 0x000029f2, 1, { 0x000029f2 } }, { 0x000029f3, 1, { 0x000029f3 } }, { 0x000029f4, 1, { 0x000029f4 } }, { 0x000029f5, 1, { 0x000029f5 } }, { 0x000029f6, 1, { 0x000029f6 } }, { 0x000029f7, 1, { 0x000029f7 } }, { 0x000029f8, 1, { 0x000029f8 } }, { 0x000029f9, 1, { 0x000029f9 } }, { 0x000029fa, 1, { 0x000029fa } }, { 0x000029fb, 1, { 0x000029fb } }, { 0x000029fc, 1, { 0x000029fc } }, { 0x000029fd, 1, { 0x000029fd } }, { 0x000029fe, 1, { 0x000029fe } }, { 0x000029ff, 1, { 0x000029ff } }, { 0x00002a00, 1, { 0x00002a00 } }, { 0x00002a01, 1, { 0x00002a01 } }, { 0x00002a02, 1, { 0x00002a02 } }, { 0x00002a03, 1, { 0x00002a03 } }, { 0x00002a04, 1, { 0x00002a04 } }, { 0x00002a05, 1, { 0x00002a05 } }, { 0x00002a06, 1, { 0x00002a06 } }, { 0x00002a07, 1, { 0x00002a07 } }, { 0x00002a08, 1, { 0x00002a08 } }, { 0x00002a09, 1, { 0x00002a09 } }, { 0x00002a0a, 1, { 0x00002a0a } }, { 0x00002a0b, 1, { 0x00002a0b } }, { 0x00002a0c, 1, { 0x00002a0c } }, { 0x00002a0d, 1, { 0x00002a0d } }, { 0x00002a0e, 1, { 0x00002a0e } }, { 0x00002a0f, 1, { 0x00002a0f } }, { 0x00002a10, 1, { 0x00002a10 } }, { 0x00002a11, 1, { 0x00002a11 } }, { 0x00002a12, 1, { 0x00002a12 } }, { 0x00002a13, 1, { 0x00002a13 } }, { 0x00002a14, 1, { 0x00002a14 } }, { 0x00002a15, 1, { 0x00002a15 } }, { 0x00002a16, 1, { 0x00002a16 } }, { 0x00002a17, 1, { 0x00002a17 } }, { 0x00002a18, 1, { 0x00002a18 } }, { 0x00002a19, 1, { 0x00002a19 } }, { 0x00002a1a, 1, { 0x00002a1a } }, { 0x00002a1b, 1, { 0x00002a1b } }, { 0x00002a1c, 1, { 0x00002a1c } }, { 0x00002a1d, 1, { 0x00002a1d } }, { 0x00002a1e, 1, { 0x00002a1e } }, { 0x00002a1f, 1, { 0x00002a1f } }, { 0x00002a20, 1, { 0x00002a20 } }, { 0x00002a21, 1, { 0x00002a21 } }, { 0x00002a22, 1, { 0x00002a22 } }, { 0x00002a23, 1, { 0x00002a23 } }, { 0x00002a24, 1, { 0x00002a24 } }, { 0x00002a25, 1, { 0x00002a25 } }, { 0x00002a26, 1, { 0x00002a26 } }, { 0x00002a27, 1, { 0x00002a27 } }, { 0x00002a28, 1, { 0x00002a28 } }, { 0x00002a29, 1, { 0x00002a29 } }, { 0x00002a2a, 1, { 0x00002a2a } }, { 0x00002a2b, 1, { 0x00002a2b } }, { 0x00002a2c, 1, { 0x00002a2c } }, { 0x00002a2d, 1, { 0x00002a2d } }, { 0x00002a2e, 1, { 0x00002a2e } }, { 0x00002a2f, 1, { 0x00002a2f } }, { 0x00002a30, 1, { 0x00002a30 } }, { 0x00002a31, 1, { 0x00002a31 } }, { 0x00002a32, 1, { 0x00002a32 } }, { 0x00002a33, 1, { 0x00002a33 } }, { 0x00002a34, 1, { 0x00002a34 } }, { 0x00002a35, 1, { 0x00002a35 } }, { 0x00002a36, 1, { 0x00002a36 } }, { 0x00002a37, 1, { 0x00002a37 } }, { 0x00002a38, 1, { 0x00002a38 } }, { 0x00002a39, 1, { 0x00002a39 } }, { 0x00002a3a, 1, { 0x00002a3a } }, { 0x00002a3b, 1, { 0x00002a3b } }, { 0x00002a3c, 1, { 0x00002a3c } }, { 0x00002a3d, 1, { 0x00002a3d } }, { 0x00002a3e, 1, { 0x00002a3e } }, { 0x00002a3f, 1, { 0x00002a3f } }, { 0x00002a40, 1, { 0x00002a40 } }, { 0x00002a41, 1, { 0x00002a41 } }, { 0x00002a42, 1, { 0x00002a42 } }, { 0x00002a43, 1, { 0x00002a43 } }, { 0x00002a44, 1, { 0x00002a44 } }, { 0x00002a45, 1, { 0x00002a45 } }, { 0x00002a46, 1, { 0x00002a46 } }, { 0x00002a47, 1, { 0x00002a47 } }, { 0x00002a48, 1, { 0x00002a48 } }, { 0x00002a49, 1, { 0x00002a49 } }, { 0x00002a4a, 1, { 0x00002a4a } }, { 0x00002a4b, 1, { 0x00002a4b } }, { 0x00002a4c, 1, { 0x00002a4c } }, { 0x00002a4d, 1, { 0x00002a4d } }, { 0x00002a4e, 1, { 0x00002a4e } }, { 0x00002a4f, 1, { 0x00002a4f } }, { 0x00002a50, 1, { 0x00002a50 } }, { 0x00002a51, 1, { 0x00002a51 } }, { 0x00002a52, 1, { 0x00002a52 } }, { 0x00002a53, 1, { 0x00002a53 } }, { 0x00002a54, 1, { 0x00002a54 } }, { 0x00002a55, 1, { 0x00002a55 } }, { 0x00002a56, 1, { 0x00002a56 } }, { 0x00002a57, 1, { 0x00002a57 } }, { 0x00002a58, 1, { 0x00002a58 } }, { 0x00002a59, 1, { 0x00002a59 } }, { 0x00002a5a, 1, { 0x00002a5a } }, { 0x00002a5b, 1, { 0x00002a5b } }, { 0x00002a5c, 1, { 0x00002a5c } }, { 0x00002a5d, 1, { 0x00002a5d } }, { 0x00002a5e, 1, { 0x00002a5e } }, { 0x00002a5f, 1, { 0x00002a5f } }, { 0x00002a60, 1, { 0x00002a60 } }, { 0x00002a61, 1, { 0x00002a61 } }, { 0x00002a62, 1, { 0x00002a62 } }, { 0x00002a63, 1, { 0x00002a63 } }, { 0x00002a64, 1, { 0x00002a64 } }, { 0x00002a65, 1, { 0x00002a65 } }, { 0x00002a66, 1, { 0x00002a66 } }, { 0x00002a67, 1, { 0x00002a67 } }, { 0x00002a68, 1, { 0x00002a68 } }, { 0x00002a69, 1, { 0x00002a69 } }, { 0x00002a6a, 1, { 0x00002a6a } }, { 0x00002a6b, 1, { 0x00002a6b } }, { 0x00002a6c, 1, { 0x00002a6c } }, { 0x00002a6d, 1, { 0x00002a6d } }, { 0x00002a6e, 1, { 0x00002a6e } }, { 0x00002a6f, 1, { 0x00002a6f } }, { 0x00002a70, 1, { 0x00002a70 } }, { 0x00002a71, 1, { 0x00002a71 } }, { 0x00002a72, 1, { 0x00002a72 } }, { 0x00002a73, 1, { 0x00002a73 } }, { 0x00002a74, 1, { 0x00002a74 } }, { 0x00002a75, 1, { 0x00002a75 } }, { 0x00002a76, 1, { 0x00002a76 } }, { 0x00002a77, 1, { 0x00002a77 } }, { 0x00002a78, 1, { 0x00002a78 } }, { 0x00002a79, 1, { 0x00002a79 } }, { 0x00002a7a, 1, { 0x00002a7a } }, { 0x00002a7b, 1, { 0x00002a7b } }, { 0x00002a7c, 1, { 0x00002a7c } }, { 0x00002a7d, 1, { 0x00002a7d } }, { 0x00002a7e, 1, { 0x00002a7e } }, { 0x00002a7f, 1, { 0x00002a7f } }, { 0x00002a80, 1, { 0x00002a80 } }, { 0x00002a81, 1, { 0x00002a81 } }, { 0x00002a82, 1, { 0x00002a82 } }, { 0x00002a83, 1, { 0x00002a83 } }, { 0x00002a84, 1, { 0x00002a84 } }, { 0x00002a85, 1, { 0x00002a85 } }, { 0x00002a86, 1, { 0x00002a86 } }, { 0x00002a87, 1, { 0x00002a87 } }, { 0x00002a88, 1, { 0x00002a88 } }, { 0x00002a89, 1, { 0x00002a89 } }, { 0x00002a8a, 1, { 0x00002a8a } }, { 0x00002a8b, 1, { 0x00002a8b } }, { 0x00002a8c, 1, { 0x00002a8c } }, { 0x00002a8d, 1, { 0x00002a8d } }, { 0x00002a8e, 1, { 0x00002a8e } }, { 0x00002a8f, 1, { 0x00002a8f } }, { 0x00002a90, 1, { 0x00002a90 } }, { 0x00002a91, 1, { 0x00002a91 } }, { 0x00002a92, 1, { 0x00002a92 } }, { 0x00002a93, 1, { 0x00002a93 } }, { 0x00002a94, 1, { 0x00002a94 } }, { 0x00002a95, 1, { 0x00002a95 } }, { 0x00002a96, 1, { 0x00002a96 } }, { 0x00002a97, 1, { 0x00002a97 } }, { 0x00002a98, 1, { 0x00002a98 } }, { 0x00002a99, 1, { 0x00002a99 } }, { 0x00002a9a, 1, { 0x00002a9a } }, { 0x00002a9b, 1, { 0x00002a9b } }, { 0x00002a9c, 1, { 0x00002a9c } }, { 0x00002a9d, 1, { 0x00002a9d } }, { 0x00002a9e, 1, { 0x00002a9e } }, { 0x00002a9f, 1, { 0x00002a9f } }, { 0x00002aa0, 1, { 0x00002aa0 } }, { 0x00002aa1, 1, { 0x00002aa1 } }, { 0x00002aa2, 1, { 0x00002aa2 } }, { 0x00002aa3, 1, { 0x00002aa3 } }, { 0x00002aa4, 1, { 0x00002aa4 } }, { 0x00002aa5, 1, { 0x00002aa5 } }, { 0x00002aa6, 1, { 0x00002aa6 } }, { 0x00002aa7, 1, { 0x00002aa7 } }, { 0x00002aa8, 1, { 0x00002aa8 } }, { 0x00002aa9, 1, { 0x00002aa9 } }, { 0x00002aaa, 1, { 0x00002aaa } }, { 0x00002aab, 1, { 0x00002aab } }, { 0x00002aac, 1, { 0x00002aac } }, { 0x00002aad, 1, { 0x00002aad } }, { 0x00002aae, 1, { 0x00002aae } }, { 0x00002aaf, 1, { 0x00002aaf } }, { 0x00002ab0, 1, { 0x00002ab0 } }, { 0x00002ab1, 1, { 0x00002ab1 } }, { 0x00002ab2, 1, { 0x00002ab2 } }, { 0x00002ab3, 1, { 0x00002ab3 } }, { 0x00002ab4, 1, { 0x00002ab4 } }, { 0x00002ab5, 1, { 0x00002ab5 } }, { 0x00002ab6, 1, { 0x00002ab6 } }, { 0x00002ab7, 1, { 0x00002ab7 } }, { 0x00002ab8, 1, { 0x00002ab8 } }, { 0x00002ab9, 1, { 0x00002ab9 } }, { 0x00002aba, 1, { 0x00002aba } }, { 0x00002abb, 1, { 0x00002abb } }, { 0x00002abc, 1, { 0x00002abc } }, { 0x00002abd, 1, { 0x00002abd } }, { 0x00002abe, 1, { 0x00002abe } }, { 0x00002abf, 1, { 0x00002abf } }, { 0x00002ac0, 1, { 0x00002ac0 } }, { 0x00002ac1, 1, { 0x00002ac1 } }, { 0x00002ac2, 1, { 0x00002ac2 } }, { 0x00002ac3, 1, { 0x00002ac3 } }, { 0x00002ac4, 1, { 0x00002ac4 } }, { 0x00002ac5, 1, { 0x00002ac5 } }, { 0x00002ac6, 1, { 0x00002ac6 } }, { 0x00002ac7, 1, { 0x00002ac7 } }, { 0x00002ac8, 1, { 0x00002ac8 } }, { 0x00002ac9, 1, { 0x00002ac9 } }, { 0x00002aca, 1, { 0x00002aca } }, { 0x00002acb, 1, { 0x00002acb } }, { 0x00002acc, 1, { 0x00002acc } }, { 0x00002acd, 1, { 0x00002acd } }, { 0x00002ace, 1, { 0x00002ace } }, { 0x00002acf, 1, { 0x00002acf } }, { 0x00002ad0, 1, { 0x00002ad0 } }, { 0x00002ad1, 1, { 0x00002ad1 } }, { 0x00002ad2, 1, { 0x00002ad2 } }, { 0x00002ad3, 1, { 0x00002ad3 } }, { 0x00002ad4, 1, { 0x00002ad4 } }, { 0x00002ad5, 1, { 0x00002ad5 } }, { 0x00002ad6, 1, { 0x00002ad6 } }, { 0x00002ad7, 1, { 0x00002ad7 } }, { 0x00002ad8, 1, { 0x00002ad8 } }, { 0x00002ad9, 1, { 0x00002ad9 } }, { 0x00002ada, 1, { 0x00002ada } }, { 0x00002adb, 1, { 0x00002adb } }, { 0x00002adc, 2, { 0x00002add, 0x00000338 } }, { 0x00002add, 1, { 0x00002add } }, { 0x00002ade, 1, { 0x00002ade } }, { 0x00002adf, 1, { 0x00002adf } }, { 0x00002ae0, 1, { 0x00002ae0 } }, { 0x00002ae1, 1, { 0x00002ae1 } }, { 0x00002ae2, 1, { 0x00002ae2 } }, { 0x00002ae3, 1, { 0x00002ae3 } }, { 0x00002ae4, 1, { 0x00002ae4 } }, { 0x00002ae5, 1, { 0x00002ae5 } }, { 0x00002ae6, 1, { 0x00002ae6 } }, { 0x00002ae7, 1, { 0x00002ae7 } }, { 0x00002ae8, 1, { 0x00002ae8 } }, { 0x00002ae9, 1, { 0x00002ae9 } }, { 0x00002aea, 1, { 0x00002aea } }, { 0x00002aeb, 1, { 0x00002aeb } }, { 0x00002aec, 1, { 0x00002aec } }, { 0x00002aed, 1, { 0x00002aed } }, { 0x00002aee, 1, { 0x00002aee } }, { 0x00002aef, 1, { 0x00002aef } }, { 0x00002af0, 1, { 0x00002af0 } }, { 0x00002af1, 1, { 0x00002af1 } }, { 0x00002af2, 1, { 0x00002af2 } }, { 0x00002af3, 1, { 0x00002af3 } }, { 0x00002af4, 1, { 0x00002af4 } }, { 0x00002af5, 1, { 0x00002af5 } }, { 0x00002af6, 1, { 0x00002af6 } }, { 0x00002af7, 1, { 0x00002af7 } }, { 0x00002af8, 1, { 0x00002af8 } }, { 0x00002af9, 1, { 0x00002af9 } }, { 0x00002afa, 1, { 0x00002afa } }, { 0x00002afb, 1, { 0x00002afb } }, { 0x00002afc, 1, { 0x00002afc } }, { 0x00002afd, 1, { 0x00002afd } }, { 0x00002afe, 1, { 0x00002afe } }, { 0x00002aff, 1, { 0x00002aff } }, { 0x00002b00, 1, { 0x00002b00 } }, { 0x00002b01, 1, { 0x00002b01 } }, { 0x00002b02, 1, { 0x00002b02 } }, { 0x00002b03, 1, { 0x00002b03 } }, { 0x00002b04, 1, { 0x00002b04 } }, { 0x00002b05, 1, { 0x00002b05 } }, { 0x00002b06, 1, { 0x00002b06 } }, { 0x00002b07, 1, { 0x00002b07 } }, { 0x00002b08, 1, { 0x00002b08 } }, { 0x00002b09, 1, { 0x00002b09 } }, { 0x00002b0a, 1, { 0x00002b0a } }, { 0x00002b0b, 1, { 0x00002b0b } }, { 0x00002b0c, 1, { 0x00002b0c } }, { 0x00002b0d, 1, { 0x00002b0d } }, { 0x00002b0e, 1, { 0x00002b0e } }, { 0x00002b0f, 1, { 0x00002b0f } }, { 0x00002b10, 1, { 0x00002b10 } }, { 0x00002b11, 1, { 0x00002b11 } }, { 0x00002b12, 1, { 0x00002b12 } }, { 0x00002b13, 1, { 0x00002b13 } }, { 0x00002b14, 1, { 0x00002b14 } }, { 0x00002b15, 1, { 0x00002b15 } }, { 0x00002b16, 1, { 0x00002b16 } }, { 0x00002b17, 1, { 0x00002b17 } }, { 0x00002b18, 1, { 0x00002b18 } }, { 0x00002b19, 1, { 0x00002b19 } }, { 0x00002b1a, 1, { 0x00002b1a } }, { 0x00002b1b, 1, { 0x00002b1b } }, { 0x00002b1c, 1, { 0x00002b1c } }, { 0x00002b1d, 1, { 0x00002b1d } }, { 0x00002b1e, 1, { 0x00002b1e } }, { 0x00002b1f, 1, { 0x00002b1f } }, { 0x00002b20, 1, { 0x00002b20 } }, { 0x00002b21, 1, { 0x00002b21 } }, { 0x00002b22, 1, { 0x00002b22 } }, { 0x00002b23, 1, { 0x00002b23 } }, { 0x00002b24, 1, { 0x00002b24 } }, { 0x00002b25, 1, { 0x00002b25 } }, { 0x00002b26, 1, { 0x00002b26 } }, { 0x00002b27, 1, { 0x00002b27 } }, { 0x00002b28, 1, { 0x00002b28 } }, { 0x00002b29, 1, { 0x00002b29 } }, { 0x00002b2a, 1, { 0x00002b2a } }, { 0x00002b2b, 1, { 0x00002b2b } }, { 0x00002b2c, 1, { 0x00002b2c } }, { 0x00002b2d, 1, { 0x00002b2d } }, { 0x00002b2e, 1, { 0x00002b2e } }, { 0x00002b2f, 1, { 0x00002b2f } }, { 0x00002b30, 1, { 0x00002b30 } }, { 0x00002b31, 1, { 0x00002b31 } }, { 0x00002b32, 1, { 0x00002b32 } }, { 0x00002b33, 1, { 0x00002b33 } }, { 0x00002b34, 1, { 0x00002b34 } }, { 0x00002b35, 1, { 0x00002b35 } }, { 0x00002b36, 1, { 0x00002b36 } }, { 0x00002b37, 1, { 0x00002b37 } }, { 0x00002b38, 1, { 0x00002b38 } }, { 0x00002b39, 1, { 0x00002b39 } }, { 0x00002b3a, 1, { 0x00002b3a } }, { 0x00002b3b, 1, { 0x00002b3b } }, { 0x00002b3c, 1, { 0x00002b3c } }, { 0x00002b3d, 1, { 0x00002b3d } }, { 0x00002b3e, 1, { 0x00002b3e } }, { 0x00002b3f, 1, { 0x00002b3f } }, { 0x00002b40, 1, { 0x00002b40 } }, { 0x00002b41, 1, { 0x00002b41 } }, { 0x00002b42, 1, { 0x00002b42 } }, { 0x00002b43, 1, { 0x00002b43 } }, { 0x00002b44, 1, { 0x00002b44 } }, { 0x00002b45, 1, { 0x00002b45 } }, { 0x00002b46, 1, { 0x00002b46 } }, { 0x00002b47, 1, { 0x00002b47 } }, { 0x00002b48, 1, { 0x00002b48 } }, { 0x00002b49, 1, { 0x00002b49 } }, { 0x00002b4a, 1, { 0x00002b4a } }, { 0x00002b4b, 1, { 0x00002b4b } }, { 0x00002b4c, 1, { 0x00002b4c } }, { 0x00002b4d, 1, { 0x00002b4d } }, { 0x00002b4e, 1, { 0x00002b4e } }, { 0x00002b4f, 1, { 0x00002b4f } }, { 0x00002b50, 1, { 0x00002b50 } }, { 0x00002b51, 1, { 0x00002b51 } }, { 0x00002b52, 1, { 0x00002b52 } }, { 0x00002b53, 1, { 0x00002b53 } }, { 0x00002b54, 1, { 0x00002b54 } }, { 0x00002b55, 1, { 0x00002b55 } }, { 0x00002b56, 1, { 0x00002b56 } }, { 0x00002b57, 1, { 0x00002b57 } }, { 0x00002b58, 1, { 0x00002b58 } }, { 0x00002b59, 1, { 0x00002b59 } }, { 0x00002b5a, 1, { 0x00002b5a } }, { 0x00002b5b, 1, { 0x00002b5b } }, { 0x00002b5c, 1, { 0x00002b5c } }, { 0x00002b5d, 1, { 0x00002b5d } }, { 0x00002b5e, 1, { 0x00002b5e } }, { 0x00002b5f, 1, { 0x00002b5f } }, { 0x00002b60, 1, { 0x00002b60 } }, { 0x00002b61, 1, { 0x00002b61 } }, { 0x00002b62, 1, { 0x00002b62 } }, { 0x00002b63, 1, { 0x00002b63 } }, { 0x00002b64, 1, { 0x00002b64 } }, { 0x00002b65, 1, { 0x00002b65 } }, { 0x00002b66, 1, { 0x00002b66 } }, { 0x00002b67, 1, { 0x00002b67 } }, { 0x00002b68, 1, { 0x00002b68 } }, { 0x00002b69, 1, { 0x00002b69 } }, { 0x00002b6a, 1, { 0x00002b6a } }, { 0x00002b6b, 1, { 0x00002b6b } }, { 0x00002b6c, 1, { 0x00002b6c } }, { 0x00002b6d, 1, { 0x00002b6d } }, { 0x00002b6e, 1, { 0x00002b6e } }, { 0x00002b6f, 1, { 0x00002b6f } }, { 0x00002b70, 1, { 0x00002b70 } }, { 0x00002b71, 1, { 0x00002b71 } }, { 0x00002b72, 1, { 0x00002b72 } }, { 0x00002b73, 1, { 0x00002b73 } }, { 0x00002b76, 1, { 0x00002b76 } }, { 0x00002b77, 1, { 0x00002b77 } }, { 0x00002b78, 1, { 0x00002b78 } }, { 0x00002b79, 1, { 0x00002b79 } }, { 0x00002b7a, 1, { 0x00002b7a } }, { 0x00002b7b, 1, { 0x00002b7b } }, { 0x00002b7c, 1, { 0x00002b7c } }, { 0x00002b7d, 1, { 0x00002b7d } }, { 0x00002b7e, 1, { 0x00002b7e } }, { 0x00002b7f, 1, { 0x00002b7f } }, { 0x00002b80, 1, { 0x00002b80 } }, { 0x00002b81, 1, { 0x00002b81 } }, { 0x00002b82, 1, { 0x00002b82 } }, { 0x00002b83, 1, { 0x00002b83 } }, { 0x00002b84, 1, { 0x00002b84 } }, { 0x00002b85, 1, { 0x00002b85 } }, { 0x00002b86, 1, { 0x00002b86 } }, { 0x00002b87, 1, { 0x00002b87 } }, { 0x00002b88, 1, { 0x00002b88 } }, { 0x00002b89, 1, { 0x00002b89 } }, { 0x00002b8a, 1, { 0x00002b8a } }, { 0x00002b8b, 1, { 0x00002b8b } }, { 0x00002b8c, 1, { 0x00002b8c } }, { 0x00002b8d, 1, { 0x00002b8d } }, { 0x00002b8e, 1, { 0x00002b8e } }, { 0x00002b8f, 1, { 0x00002b8f } }, { 0x00002b90, 1, { 0x00002b90 } }, { 0x00002b91, 1, { 0x00002b91 } }, { 0x00002b92, 1, { 0x00002b92 } }, { 0x00002b93, 1, { 0x00002b93 } }, { 0x00002b94, 1, { 0x00002b94 } }, { 0x00002b95, 1, { 0x00002b95 } }, { 0x00002b98, 1, { 0x00002b98 } }, { 0x00002b99, 1, { 0x00002b99 } }, { 0x00002b9a, 1, { 0x00002b9a } }, { 0x00002b9b, 1, { 0x00002b9b } }, { 0x00002b9c, 1, { 0x00002b9c } }, { 0x00002b9d, 1, { 0x00002b9d } }, { 0x00002b9e, 1, { 0x00002b9e } }, { 0x00002b9f, 1, { 0x00002b9f } }, { 0x00002ba0, 1, { 0x00002ba0 } }, { 0x00002ba1, 1, { 0x00002ba1 } }, { 0x00002ba2, 1, { 0x00002ba2 } }, { 0x00002ba3, 1, { 0x00002ba3 } }, { 0x00002ba4, 1, { 0x00002ba4 } }, { 0x00002ba5, 1, { 0x00002ba5 } }, { 0x00002ba6, 1, { 0x00002ba6 } }, { 0x00002ba7, 1, { 0x00002ba7 } }, { 0x00002ba8, 1, { 0x00002ba8 } }, { 0x00002ba9, 1, { 0x00002ba9 } }, { 0x00002baa, 1, { 0x00002baa } }, { 0x00002bab, 1, { 0x00002bab } }, { 0x00002bac, 1, { 0x00002bac } }, { 0x00002bad, 1, { 0x00002bad } }, { 0x00002bae, 1, { 0x00002bae } }, { 0x00002baf, 1, { 0x00002baf } }, { 0x00002bb0, 1, { 0x00002bb0 } }, { 0x00002bb1, 1, { 0x00002bb1 } }, { 0x00002bb2, 1, { 0x00002bb2 } }, { 0x00002bb3, 1, { 0x00002bb3 } }, { 0x00002bb4, 1, { 0x00002bb4 } }, { 0x00002bb5, 1, { 0x00002bb5 } }, { 0x00002bb6, 1, { 0x00002bb6 } }, { 0x00002bb7, 1, { 0x00002bb7 } }, { 0x00002bb8, 1, { 0x00002bb8 } }, { 0x00002bb9, 1, { 0x00002bb9 } }, { 0x00002bbd, 1, { 0x00002bbd } }, { 0x00002bbe, 1, { 0x00002bbe } }, { 0x00002bbf, 1, { 0x00002bbf } }, { 0x00002bc0, 1, { 0x00002bc0 } }, { 0x00002bc1, 1, { 0x00002bc1 } }, { 0x00002bc2, 1, { 0x00002bc2 } }, { 0x00002bc3, 1, { 0x00002bc3 } }, { 0x00002bc4, 1, { 0x00002bc4 } }, { 0x00002bc5, 1, { 0x00002bc5 } }, { 0x00002bc6, 1, { 0x00002bc6 } }, { 0x00002bc7, 1, { 0x00002bc7 } }, { 0x00002bc8, 1, { 0x00002bc8 } }, { 0x00002bca, 1, { 0x00002bca } }, { 0x00002bcb, 1, { 0x00002bcb } }, { 0x00002bcc, 1, { 0x00002bcc } }, { 0x00002bcd, 1, { 0x00002bcd } }, { 0x00002bce, 1, { 0x00002bce } }, { 0x00002bcf, 1, { 0x00002bcf } }, { 0x00002bd0, 1, { 0x00002bd0 } }, { 0x00002bd1, 1, { 0x00002bd1 } }, { 0x00002bec, 1, { 0x00002bec } }, { 0x00002bed, 1, { 0x00002bed } }, { 0x00002bee, 1, { 0x00002bee } }, { 0x00002bef, 1, { 0x00002bef } }, { 0x00002c00, 1, { 0x00002c00 } }, { 0x00002c01, 1, { 0x00002c01 } }, { 0x00002c02, 1, { 0x00002c02 } }, { 0x00002c03, 1, { 0x00002c03 } }, { 0x00002c04, 1, { 0x00002c04 } }, { 0x00002c05, 1, { 0x00002c05 } }, { 0x00002c06, 1, { 0x00002c06 } }, { 0x00002c07, 1, { 0x00002c07 } }, { 0x00002c08, 1, { 0x00002c08 } }, { 0x00002c09, 1, { 0x00002c09 } }, { 0x00002c0a, 1, { 0x00002c0a } }, { 0x00002c0b, 1, { 0x00002c0b } }, { 0x00002c0c, 1, { 0x00002c0c } }, { 0x00002c0d, 1, { 0x00002c0d } }, { 0x00002c0e, 1, { 0x00002c0e } }, { 0x00002c0f, 1, { 0x00002c0f } }, { 0x00002c10, 1, { 0x00002c10 } }, { 0x00002c11, 1, { 0x00002c11 } }, { 0x00002c12, 1, { 0x00002c12 } }, { 0x00002c13, 1, { 0x00002c13 } }, { 0x00002c14, 1, { 0x00002c14 } }, { 0x00002c15, 1, { 0x00002c15 } }, { 0x00002c16, 1, { 0x00002c16 } }, { 0x00002c17, 1, { 0x00002c17 } }, { 0x00002c18, 1, { 0x00002c18 } }, { 0x00002c19, 1, { 0x00002c19 } }, { 0x00002c1a, 1, { 0x00002c1a } }, { 0x00002c1b, 1, { 0x00002c1b } }, { 0x00002c1c, 1, { 0x00002c1c } }, { 0x00002c1d, 1, { 0x00002c1d } }, { 0x00002c1e, 1, { 0x00002c1e } }, { 0x00002c1f, 1, { 0x00002c1f } }, { 0x00002c20, 1, { 0x00002c20 } }, { 0x00002c21, 1, { 0x00002c21 } }, { 0x00002c22, 1, { 0x00002c22 } }, { 0x00002c23, 1, { 0x00002c23 } }, { 0x00002c24, 1, { 0x00002c24 } }, { 0x00002c25, 1, { 0x00002c25 } }, { 0x00002c26, 1, { 0x00002c26 } }, { 0x00002c27, 1, { 0x00002c27 } }, { 0x00002c28, 1, { 0x00002c28 } }, { 0x00002c29, 1, { 0x00002c29 } }, { 0x00002c2a, 1, { 0x00002c2a } }, { 0x00002c2b, 1, { 0x00002c2b } }, { 0x00002c2c, 1, { 0x00002c2c } }, { 0x00002c2d, 1, { 0x00002c2d } }, { 0x00002c2e, 1, { 0x00002c2e } }, { 0x00002c30, 1, { 0x00002c30 } }, { 0x00002c31, 1, { 0x00002c31 } }, { 0x00002c32, 1, { 0x00002c32 } }, { 0x00002c33, 1, { 0x00002c33 } }, { 0x00002c34, 1, { 0x00002c34 } }, { 0x00002c35, 1, { 0x00002c35 } }, { 0x00002c36, 1, { 0x00002c36 } }, { 0x00002c37, 1, { 0x00002c37 } }, { 0x00002c38, 1, { 0x00002c38 } }, { 0x00002c39, 1, { 0x00002c39 } }, { 0x00002c3a, 1, { 0x00002c3a } }, { 0x00002c3b, 1, { 0x00002c3b } }, { 0x00002c3c, 1, { 0x00002c3c } }, { 0x00002c3d, 1, { 0x00002c3d } }, { 0x00002c3e, 1, { 0x00002c3e } }, { 0x00002c3f, 1, { 0x00002c3f } }, { 0x00002c40, 1, { 0x00002c40 } }, { 0x00002c41, 1, { 0x00002c41 } }, { 0x00002c42, 1, { 0x00002c42 } }, { 0x00002c43, 1, { 0x00002c43 } }, { 0x00002c44, 1, { 0x00002c44 } }, { 0x00002c45, 1, { 0x00002c45 } }, { 0x00002c46, 1, { 0x00002c46 } }, { 0x00002c47, 1, { 0x00002c47 } }, { 0x00002c48, 1, { 0x00002c48 } }, { 0x00002c49, 1, { 0x00002c49 } }, { 0x00002c4a, 1, { 0x00002c4a } }, { 0x00002c4b, 1, { 0x00002c4b } }, { 0x00002c4c, 1, { 0x00002c4c } }, { 0x00002c4d, 1, { 0x00002c4d } }, { 0x00002c4e, 1, { 0x00002c4e } }, { 0x00002c4f, 1, { 0x00002c4f } }, { 0x00002c50, 1, { 0x00002c50 } }, { 0x00002c51, 1, { 0x00002c51 } }, { 0x00002c52, 1, { 0x00002c52 } }, { 0x00002c53, 1, { 0x00002c53 } }, { 0x00002c54, 1, { 0x00002c54 } }, { 0x00002c55, 1, { 0x00002c55 } }, { 0x00002c56, 1, { 0x00002c56 } }, { 0x00002c57, 1, { 0x00002c57 } }, { 0x00002c58, 1, { 0x00002c58 } }, { 0x00002c59, 1, { 0x00002c59 } }, { 0x00002c5a, 1, { 0x00002c5a } }, { 0x00002c5b, 1, { 0x00002c5b } }, { 0x00002c5c, 1, { 0x00002c5c } }, { 0x00002c5d, 1, { 0x00002c5d } }, { 0x00002c5e, 1, { 0x00002c5e } }, { 0x00002c60, 1, { 0x00002c60 } }, { 0x00002c61, 1, { 0x00002c61 } }, { 0x00002c62, 1, { 0x00002c62 } }, { 0x00002c63, 1, { 0x00002c63 } }, { 0x00002c64, 1, { 0x00002c64 } }, { 0x00002c65, 1, { 0x00002c65 } }, { 0x00002c66, 1, { 0x00002c66 } }, { 0x00002c67, 1, { 0x00002c67 } }, { 0x00002c68, 1, { 0x00002c68 } }, { 0x00002c69, 1, { 0x00002c69 } }, { 0x00002c6a, 1, { 0x00002c6a } }, { 0x00002c6b, 1, { 0x00002c6b } }, { 0x00002c6c, 1, { 0x00002c6c } }, { 0x00002c6d, 1, { 0x00002c6d } }, { 0x00002c6e, 1, { 0x00002c6e } }, { 0x00002c6f, 1, { 0x00002c6f } }, { 0x00002c70, 1, { 0x00002c70 } }, { 0x00002c71, 1, { 0x00002c71 } }, { 0x00002c72, 1, { 0x00002c72 } }, { 0x00002c73, 1, { 0x00002c73 } }, { 0x00002c74, 1, { 0x00002c74 } }, { 0x00002c75, 1, { 0x00002c75 } }, { 0x00002c76, 1, { 0x00002c76 } }, { 0x00002c77, 1, { 0x00002c77 } }, { 0x00002c78, 1, { 0x00002c78 } }, { 0x00002c79, 1, { 0x00002c79 } }, { 0x00002c7a, 1, { 0x00002c7a } }, { 0x00002c7b, 1, { 0x00002c7b } }, { 0x00002c7c, 1, { 0x00002c7c } }, { 0x00002c7d, 1, { 0x00002c7d } }, { 0x00002c7e, 1, { 0x00002c7e } }, { 0x00002c7f, 1, { 0x00002c7f } }, { 0x00002c80, 1, { 0x00002c80 } }, { 0x00002c81, 1, { 0x00002c81 } }, { 0x00002c82, 1, { 0x00002c82 } }, { 0x00002c83, 1, { 0x00002c83 } }, { 0x00002c84, 1, { 0x00002c84 } }, { 0x00002c85, 1, { 0x00002c85 } }, { 0x00002c86, 1, { 0x00002c86 } }, { 0x00002c87, 1, { 0x00002c87 } }, { 0x00002c88, 1, { 0x00002c88 } }, { 0x00002c89, 1, { 0x00002c89 } }, { 0x00002c8a, 1, { 0x00002c8a } }, { 0x00002c8b, 1, { 0x00002c8b } }, { 0x00002c8c, 1, { 0x00002c8c } }, { 0x00002c8d, 1, { 0x00002c8d } }, { 0x00002c8e, 1, { 0x00002c8e } }, { 0x00002c8f, 1, { 0x00002c8f } }, { 0x00002c90, 1, { 0x00002c90 } }, { 0x00002c91, 1, { 0x00002c91 } }, { 0x00002c92, 1, { 0x00002c92 } }, { 0x00002c93, 1, { 0x00002c93 } }, { 0x00002c94, 1, { 0x00002c94 } }, { 0x00002c95, 1, { 0x00002c95 } }, { 0x00002c96, 1, { 0x00002c96 } }, { 0x00002c97, 1, { 0x00002c97 } }, { 0x00002c98, 1, { 0x00002c98 } }, { 0x00002c99, 1, { 0x00002c99 } }, { 0x00002c9a, 1, { 0x00002c9a } }, { 0x00002c9b, 1, { 0x00002c9b } }, { 0x00002c9c, 1, { 0x00002c9c } }, { 0x00002c9d, 1, { 0x00002c9d } }, { 0x00002c9e, 1, { 0x00002c9e } }, { 0x00002c9f, 1, { 0x00002c9f } }, { 0x00002ca0, 1, { 0x00002ca0 } }, { 0x00002ca1, 1, { 0x00002ca1 } }, { 0x00002ca2, 1, { 0x00002ca2 } }, { 0x00002ca3, 1, { 0x00002ca3 } }, { 0x00002ca4, 1, { 0x00002ca4 } }, { 0x00002ca5, 1, { 0x00002ca5 } }, { 0x00002ca6, 1, { 0x00002ca6 } }, { 0x00002ca7, 1, { 0x00002ca7 } }, { 0x00002ca8, 1, { 0x00002ca8 } }, { 0x00002ca9, 1, { 0x00002ca9 } }, { 0x00002caa, 1, { 0x00002caa } }, { 0x00002cab, 1, { 0x00002cab } }, { 0x00002cac, 1, { 0x00002cac } }, { 0x00002cad, 1, { 0x00002cad } }, { 0x00002cae, 1, { 0x00002cae } }, { 0x00002caf, 1, { 0x00002caf } }, { 0x00002cb0, 1, { 0x00002cb0 } }, { 0x00002cb1, 1, { 0x00002cb1 } }, { 0x00002cb2, 1, { 0x00002cb2 } }, { 0x00002cb3, 1, { 0x00002cb3 } }, { 0x00002cb4, 1, { 0x00002cb4 } }, { 0x00002cb5, 1, { 0x00002cb5 } }, { 0x00002cb6, 1, { 0x00002cb6 } }, { 0x00002cb7, 1, { 0x00002cb7 } }, { 0x00002cb8, 1, { 0x00002cb8 } }, { 0x00002cb9, 1, { 0x00002cb9 } }, { 0x00002cba, 1, { 0x00002cba } }, { 0x00002cbb, 1, { 0x00002cbb } }, { 0x00002cbc, 1, { 0x00002cbc } }, { 0x00002cbd, 1, { 0x00002cbd } }, { 0x00002cbe, 1, { 0x00002cbe } }, { 0x00002cbf, 1, { 0x00002cbf } }, { 0x00002cc0, 1, { 0x00002cc0 } }, { 0x00002cc1, 1, { 0x00002cc1 } }, { 0x00002cc2, 1, { 0x00002cc2 } }, { 0x00002cc3, 1, { 0x00002cc3 } }, { 0x00002cc4, 1, { 0x00002cc4 } }, { 0x00002cc5, 1, { 0x00002cc5 } }, { 0x00002cc6, 1, { 0x00002cc6 } }, { 0x00002cc7, 1, { 0x00002cc7 } }, { 0x00002cc8, 1, { 0x00002cc8 } }, { 0x00002cc9, 1, { 0x00002cc9 } }, { 0x00002cca, 1, { 0x00002cca } }, { 0x00002ccb, 1, { 0x00002ccb } }, { 0x00002ccc, 1, { 0x00002ccc } }, { 0x00002ccd, 1, { 0x00002ccd } }, { 0x00002cce, 1, { 0x00002cce } }, { 0x00002ccf, 1, { 0x00002ccf } }, { 0x00002cd0, 1, { 0x00002cd0 } }, { 0x00002cd1, 1, { 0x00002cd1 } }, { 0x00002cd2, 1, { 0x00002cd2 } }, { 0x00002cd3, 1, { 0x00002cd3 } }, { 0x00002cd4, 1, { 0x00002cd4 } }, { 0x00002cd5, 1, { 0x00002cd5 } }, { 0x00002cd6, 1, { 0x00002cd6 } }, { 0x00002cd7, 1, { 0x00002cd7 } }, { 0x00002cd8, 1, { 0x00002cd8 } }, { 0x00002cd9, 1, { 0x00002cd9 } }, { 0x00002cda, 1, { 0x00002cda } }, { 0x00002cdb, 1, { 0x00002cdb } }, { 0x00002cdc, 1, { 0x00002cdc } }, { 0x00002cdd, 1, { 0x00002cdd } }, { 0x00002cde, 1, { 0x00002cde } }, { 0x00002cdf, 1, { 0x00002cdf } }, { 0x00002ce0, 1, { 0x00002ce0 } }, { 0x00002ce1, 1, { 0x00002ce1 } }, { 0x00002ce2, 1, { 0x00002ce2 } }, { 0x00002ce3, 1, { 0x00002ce3 } }, { 0x00002ce4, 1, { 0x00002ce4 } }, { 0x00002ce5, 1, { 0x00002ce5 } }, { 0x00002ce6, 1, { 0x00002ce6 } }, { 0x00002ce7, 1, { 0x00002ce7 } }, { 0x00002ce8, 1, { 0x00002ce8 } }, { 0x00002ce9, 1, { 0x00002ce9 } }, { 0x00002cea, 1, { 0x00002cea } }, { 0x00002ceb, 1, { 0x00002ceb } }, { 0x00002cec, 1, { 0x00002cec } }, { 0x00002ced, 1, { 0x00002ced } }, { 0x00002cee, 1, { 0x00002cee } }, { 0x00002cef, 1, { 0x00002cef } }, { 0x00002cf0, 1, { 0x00002cf0 } }, { 0x00002cf1, 1, { 0x00002cf1 } }, { 0x00002cf2, 1, { 0x00002cf2 } }, { 0x00002cf3, 1, { 0x00002cf3 } }, { 0x00002cf9, 1, { 0x00002cf9 } }, { 0x00002cfa, 1, { 0x00002cfa } }, { 0x00002cfb, 1, { 0x00002cfb } }, { 0x00002cfc, 1, { 0x00002cfc } }, { 0x00002cfd, 1, { 0x00002cfd } }, { 0x00002cfe, 1, { 0x00002cfe } }, { 0x00002cff, 1, { 0x00002cff } }, { 0x00002d00, 1, { 0x00002d00 } }, { 0x00002d01, 1, { 0x00002d01 } }, { 0x00002d02, 1, { 0x00002d02 } }, { 0x00002d03, 1, { 0x00002d03 } }, { 0x00002d04, 1, { 0x00002d04 } }, { 0x00002d05, 1, { 0x00002d05 } }, { 0x00002d06, 1, { 0x00002d06 } }, { 0x00002d07, 1, { 0x00002d07 } }, { 0x00002d08, 1, { 0x00002d08 } }, { 0x00002d09, 1, { 0x00002d09 } }, { 0x00002d0a, 1, { 0x00002d0a } }, { 0x00002d0b, 1, { 0x00002d0b } }, { 0x00002d0c, 1, { 0x00002d0c } }, { 0x00002d0d, 1, { 0x00002d0d } }, { 0x00002d0e, 1, { 0x00002d0e } }, { 0x00002d0f, 1, { 0x00002d0f } }, { 0x00002d10, 1, { 0x00002d10 } }, { 0x00002d11, 1, { 0x00002d11 } }, { 0x00002d12, 1, { 0x00002d12 } }, { 0x00002d13, 1, { 0x00002d13 } }, { 0x00002d14, 1, { 0x00002d14 } }, { 0x00002d15, 1, { 0x00002d15 } }, { 0x00002d16, 1, { 0x00002d16 } }, { 0x00002d17, 1, { 0x00002d17 } }, { 0x00002d18, 1, { 0x00002d18 } }, { 0x00002d19, 1, { 0x00002d19 } }, { 0x00002d1a, 1, { 0x00002d1a } }, { 0x00002d1b, 1, { 0x00002d1b } }, { 0x00002d1c, 1, { 0x00002d1c } }, { 0x00002d1d, 1, { 0x00002d1d } }, { 0x00002d1e, 1, { 0x00002d1e } }, { 0x00002d1f, 1, { 0x00002d1f } }, { 0x00002d20, 1, { 0x00002d20 } }, { 0x00002d21, 1, { 0x00002d21 } }, { 0x00002d22, 1, { 0x00002d22 } }, { 0x00002d23, 1, { 0x00002d23 } }, { 0x00002d24, 1, { 0x00002d24 } }, { 0x00002d25, 1, { 0x00002d25 } }, { 0x00002d27, 1, { 0x00002d27 } }, { 0x00002d2d, 1, { 0x00002d2d } }, { 0x00002d30, 1, { 0x00002d30 } }, { 0x00002d31, 1, { 0x00002d31 } }, { 0x00002d32, 1, { 0x00002d32 } }, { 0x00002d33, 1, { 0x00002d33 } }, { 0x00002d34, 1, { 0x00002d34 } }, { 0x00002d35, 1, { 0x00002d35 } }, { 0x00002d36, 1, { 0x00002d36 } }, { 0x00002d37, 1, { 0x00002d37 } }, { 0x00002d38, 1, { 0x00002d38 } }, { 0x00002d39, 1, { 0x00002d39 } }, { 0x00002d3a, 1, { 0x00002d3a } }, { 0x00002d3b, 1, { 0x00002d3b } }, { 0x00002d3c, 1, { 0x00002d3c } }, { 0x00002d3d, 1, { 0x00002d3d } }, { 0x00002d3e, 1, { 0x00002d3e } }, { 0x00002d3f, 1, { 0x00002d3f } }, { 0x00002d40, 1, { 0x00002d40 } }, { 0x00002d41, 1, { 0x00002d41 } }, { 0x00002d42, 1, { 0x00002d42 } }, { 0x00002d43, 1, { 0x00002d43 } }, { 0x00002d44, 1, { 0x00002d44 } }, { 0x00002d45, 1, { 0x00002d45 } }, { 0x00002d46, 1, { 0x00002d46 } }, { 0x00002d47, 1, { 0x00002d47 } }, { 0x00002d48, 1, { 0x00002d48 } }, { 0x00002d49, 1, { 0x00002d49 } }, { 0x00002d4a, 1, { 0x00002d4a } }, { 0x00002d4b, 1, { 0x00002d4b } }, { 0x00002d4c, 1, { 0x00002d4c } }, { 0x00002d4d, 1, { 0x00002d4d } }, { 0x00002d4e, 1, { 0x00002d4e } }, { 0x00002d4f, 1, { 0x00002d4f } }, { 0x00002d50, 1, { 0x00002d50 } }, { 0x00002d51, 1, { 0x00002d51 } }, { 0x00002d52, 1, { 0x00002d52 } }, { 0x00002d53, 1, { 0x00002d53 } }, { 0x00002d54, 1, { 0x00002d54 } }, { 0x00002d55, 1, { 0x00002d55 } }, { 0x00002d56, 1, { 0x00002d56 } }, { 0x00002d57, 1, { 0x00002d57 } }, { 0x00002d58, 1, { 0x00002d58 } }, { 0x00002d59, 1, { 0x00002d59 } }, { 0x00002d5a, 1, { 0x00002d5a } }, { 0x00002d5b, 1, { 0x00002d5b } }, { 0x00002d5c, 1, { 0x00002d5c } }, { 0x00002d5d, 1, { 0x00002d5d } }, { 0x00002d5e, 1, { 0x00002d5e } }, { 0x00002d5f, 1, { 0x00002d5f } }, { 0x00002d60, 1, { 0x00002d60 } }, { 0x00002d61, 1, { 0x00002d61 } }, { 0x00002d62, 1, { 0x00002d62 } }, { 0x00002d63, 1, { 0x00002d63 } }, { 0x00002d64, 1, { 0x00002d64 } }, { 0x00002d65, 1, { 0x00002d65 } }, { 0x00002d66, 1, { 0x00002d66 } }, { 0x00002d67, 1, { 0x00002d67 } }, { 0x00002d6f, 1, { 0x00002d6f } }, { 0x00002d70, 1, { 0x00002d70 } }, { 0x00002d7f, 1, { 0x00002d7f } }, { 0x00002d80, 1, { 0x00002d80 } }, { 0x00002d81, 1, { 0x00002d81 } }, { 0x00002d82, 1, { 0x00002d82 } }, { 0x00002d83, 1, { 0x00002d83 } }, { 0x00002d84, 1, { 0x00002d84 } }, { 0x00002d85, 1, { 0x00002d85 } }, { 0x00002d86, 1, { 0x00002d86 } }, { 0x00002d87, 1, { 0x00002d87 } }, { 0x00002d88, 1, { 0x00002d88 } }, { 0x00002d89, 1, { 0x00002d89 } }, { 0x00002d8a, 1, { 0x00002d8a } }, { 0x00002d8b, 1, { 0x00002d8b } }, { 0x00002d8c, 1, { 0x00002d8c } }, { 0x00002d8d, 1, { 0x00002d8d } }, { 0x00002d8e, 1, { 0x00002d8e } }, { 0x00002d8f, 1, { 0x00002d8f } }, { 0x00002d90, 1, { 0x00002d90 } }, { 0x00002d91, 1, { 0x00002d91 } }, { 0x00002d92, 1, { 0x00002d92 } }, { 0x00002d93, 1, { 0x00002d93 } }, { 0x00002d94, 1, { 0x00002d94 } }, { 0x00002d95, 1, { 0x00002d95 } }, { 0x00002d96, 1, { 0x00002d96 } }, { 0x00002da0, 1, { 0x00002da0 } }, { 0x00002da1, 1, { 0x00002da1 } }, { 0x00002da2, 1, { 0x00002da2 } }, { 0x00002da3, 1, { 0x00002da3 } }, { 0x00002da4, 1, { 0x00002da4 } }, { 0x00002da5, 1, { 0x00002da5 } }, { 0x00002da6, 1, { 0x00002da6 } }, { 0x00002da8, 1, { 0x00002da8 } }, { 0x00002da9, 1, { 0x00002da9 } }, { 0x00002daa, 1, { 0x00002daa } }, { 0x00002dab, 1, { 0x00002dab } }, { 0x00002dac, 1, { 0x00002dac } }, { 0x00002dad, 1, { 0x00002dad } }, { 0x00002dae, 1, { 0x00002dae } }, { 0x00002db0, 1, { 0x00002db0 } }, { 0x00002db1, 1, { 0x00002db1 } }, { 0x00002db2, 1, { 0x00002db2 } }, { 0x00002db3, 1, { 0x00002db3 } }, { 0x00002db4, 1, { 0x00002db4 } }, { 0x00002db5, 1, { 0x00002db5 } }, { 0x00002db6, 1, { 0x00002db6 } }, { 0x00002db8, 1, { 0x00002db8 } }, { 0x00002db9, 1, { 0x00002db9 } }, { 0x00002dba, 1, { 0x00002dba } }, { 0x00002dbb, 1, { 0x00002dbb } }, { 0x00002dbc, 1, { 0x00002dbc } }, { 0x00002dbd, 1, { 0x00002dbd } }, { 0x00002dbe, 1, { 0x00002dbe } }, { 0x00002dc0, 1, { 0x00002dc0 } }, { 0x00002dc1, 1, { 0x00002dc1 } }, { 0x00002dc2, 1, { 0x00002dc2 } }, { 0x00002dc3, 1, { 0x00002dc3 } }, { 0x00002dc4, 1, { 0x00002dc4 } }, { 0x00002dc5, 1, { 0x00002dc5 } }, { 0x00002dc6, 1, { 0x00002dc6 } }, { 0x00002dc8, 1, { 0x00002dc8 } }, { 0x00002dc9, 1, { 0x00002dc9 } }, { 0x00002dca, 1, { 0x00002dca } }, { 0x00002dcb, 1, { 0x00002dcb } }, { 0x00002dcc, 1, { 0x00002dcc } }, { 0x00002dcd, 1, { 0x00002dcd } }, { 0x00002dce, 1, { 0x00002dce } }, { 0x00002dd0, 1, { 0x00002dd0 } }, { 0x00002dd1, 1, { 0x00002dd1 } }, { 0x00002dd2, 1, { 0x00002dd2 } }, { 0x00002dd3, 1, { 0x00002dd3 } }, { 0x00002dd4, 1, { 0x00002dd4 } }, { 0x00002dd5, 1, { 0x00002dd5 } }, { 0x00002dd6, 1, { 0x00002dd6 } }, { 0x00002dd8, 1, { 0x00002dd8 } }, { 0x00002dd9, 1, { 0x00002dd9 } }, { 0x00002dda, 1, { 0x00002dda } }, { 0x00002ddb, 1, { 0x00002ddb } }, { 0x00002ddc, 1, { 0x00002ddc } }, { 0x00002ddd, 1, { 0x00002ddd } }, { 0x00002dde, 1, { 0x00002dde } }, { 0x00002de0, 1, { 0x00002de0 } }, { 0x00002de1, 1, { 0x00002de1 } }, { 0x00002de2, 1, { 0x00002de2 } }, { 0x00002de3, 1, { 0x00002de3 } }, { 0x00002de4, 1, { 0x00002de4 } }, { 0x00002de5, 1, { 0x00002de5 } }, { 0x00002de6, 1, { 0x00002de6 } }, { 0x00002de7, 1, { 0x00002de7 } }, { 0x00002de8, 1, { 0x00002de8 } }, { 0x00002de9, 1, { 0x00002de9 } }, { 0x00002dea, 1, { 0x00002dea } }, { 0x00002deb, 1, { 0x00002deb } }, { 0x00002dec, 1, { 0x00002dec } }, { 0x00002ded, 1, { 0x00002ded } }, { 0x00002dee, 1, { 0x00002dee } }, { 0x00002def, 1, { 0x00002def } }, { 0x00002df0, 1, { 0x00002df0 } }, { 0x00002df1, 1, { 0x00002df1 } }, { 0x00002df2, 1, { 0x00002df2 } }, { 0x00002df3, 1, { 0x00002df3 } }, { 0x00002df4, 1, { 0x00002df4 } }, { 0x00002df5, 1, { 0x00002df5 } }, { 0x00002df6, 1, { 0x00002df6 } }, { 0x00002df7, 1, { 0x00002df7 } }, { 0x00002df8, 1, { 0x00002df8 } }, { 0x00002df9, 1, { 0x00002df9 } }, { 0x00002dfa, 1, { 0x00002dfa } }, { 0x00002dfb, 1, { 0x00002dfb } }, { 0x00002dfc, 1, { 0x00002dfc } }, { 0x00002dfd, 1, { 0x00002dfd } }, { 0x00002dfe, 1, { 0x00002dfe } }, { 0x00002dff, 1, { 0x00002dff } }, { 0x00002e00, 1, { 0x00002e00 } }, { 0x00002e01, 1, { 0x00002e01 } }, { 0x00002e02, 1, { 0x00002e02 } }, { 0x00002e03, 1, { 0x00002e03 } }, { 0x00002e04, 1, { 0x00002e04 } }, { 0x00002e05, 1, { 0x00002e05 } }, { 0x00002e06, 1, { 0x00002e06 } }, { 0x00002e07, 1, { 0x00002e07 } }, { 0x00002e08, 1, { 0x00002e08 } }, { 0x00002e09, 1, { 0x00002e09 } }, { 0x00002e0a, 1, { 0x00002e0a } }, { 0x00002e0b, 1, { 0x00002e0b } }, { 0x00002e0c, 1, { 0x00002e0c } }, { 0x00002e0d, 1, { 0x00002e0d } }, { 0x00002e0e, 1, { 0x00002e0e } }, { 0x00002e0f, 1, { 0x00002e0f } }, { 0x00002e10, 1, { 0x00002e10 } }, { 0x00002e11, 1, { 0x00002e11 } }, { 0x00002e12, 1, { 0x00002e12 } }, { 0x00002e13, 1, { 0x00002e13 } }, { 0x00002e14, 1, { 0x00002e14 } }, { 0x00002e15, 1, { 0x00002e15 } }, { 0x00002e16, 1, { 0x00002e16 } }, { 0x00002e17, 1, { 0x00002e17 } }, { 0x00002e18, 1, { 0x00002e18 } }, { 0x00002e19, 1, { 0x00002e19 } }, { 0x00002e1a, 1, { 0x00002e1a } }, { 0x00002e1b, 1, { 0x00002e1b } }, { 0x00002e1c, 1, { 0x00002e1c } }, { 0x00002e1d, 1, { 0x00002e1d } }, { 0x00002e1e, 1, { 0x00002e1e } }, { 0x00002e1f, 1, { 0x00002e1f } }, { 0x00002e20, 1, { 0x00002e20 } }, { 0x00002e21, 1, { 0x00002e21 } }, { 0x00002e22, 1, { 0x00002e22 } }, { 0x00002e23, 1, { 0x00002e23 } }, { 0x00002e24, 1, { 0x00002e24 } }, { 0x00002e25, 1, { 0x00002e25 } }, { 0x00002e26, 1, { 0x00002e26 } }, { 0x00002e27, 1, { 0x00002e27 } }, { 0x00002e28, 1, { 0x00002e28 } }, { 0x00002e29, 1, { 0x00002e29 } }, { 0x00002e2a, 1, { 0x00002e2a } }, { 0x00002e2b, 1, { 0x00002e2b } }, { 0x00002e2c, 1, { 0x00002e2c } }, { 0x00002e2d, 1, { 0x00002e2d } }, { 0x00002e2e, 1, { 0x00002e2e } }, { 0x00002e2f, 1, { 0x00002e2f } }, { 0x00002e30, 1, { 0x00002e30 } }, { 0x00002e31, 1, { 0x00002e31 } }, { 0x00002e32, 1, { 0x00002e32 } }, { 0x00002e33, 1, { 0x00002e33 } }, { 0x00002e34, 1, { 0x00002e34 } }, { 0x00002e35, 1, { 0x00002e35 } }, { 0x00002e36, 1, { 0x00002e36 } }, { 0x00002e37, 1, { 0x00002e37 } }, { 0x00002e38, 1, { 0x00002e38 } }, { 0x00002e39, 1, { 0x00002e39 } }, { 0x00002e3a, 1, { 0x00002e3a } }, { 0x00002e3b, 1, { 0x00002e3b } }, { 0x00002e3c, 1, { 0x00002e3c } }, { 0x00002e3d, 1, { 0x00002e3d } }, { 0x00002e3e, 1, { 0x00002e3e } }, { 0x00002e3f, 1, { 0x00002e3f } }, { 0x00002e40, 1, { 0x00002e40 } }, { 0x00002e41, 1, { 0x00002e41 } }, { 0x00002e42, 1, { 0x00002e42 } }, { 0x00002e43, 1, { 0x00002e43 } }, { 0x00002e44, 1, { 0x00002e44 } }, { 0x00002e80, 1, { 0x00002e80 } }, { 0x00002e81, 1, { 0x00002e81 } }, { 0x00002e82, 1, { 0x00002e82 } }, { 0x00002e83, 1, { 0x00002e83 } }, { 0x00002e84, 1, { 0x00002e84 } }, { 0x00002e85, 1, { 0x00002e85 } }, { 0x00002e86, 1, { 0x00002e86 } }, { 0x00002e87, 1, { 0x00002e87 } }, { 0x00002e88, 1, { 0x00002e88 } }, { 0x00002e89, 1, { 0x00002e89 } }, { 0x00002e8a, 1, { 0x00002e8a } }, { 0x00002e8b, 1, { 0x00002e8b } }, { 0x00002e8c, 1, { 0x00002e8c } }, { 0x00002e8d, 1, { 0x00002e8d } }, { 0x00002e8e, 1, { 0x00002e8e } }, { 0x00002e8f, 1, { 0x00002e8f } }, { 0x00002e90, 1, { 0x00002e90 } }, { 0x00002e91, 1, { 0x00002e91 } }, { 0x00002e92, 1, { 0x00002e92 } }, { 0x00002e93, 1, { 0x00002e93 } }, { 0x00002e94, 1, { 0x00002e94 } }, { 0x00002e95, 1, { 0x00002e95 } }, { 0x00002e96, 1, { 0x00002e96 } }, { 0x00002e97, 1, { 0x00002e97 } }, { 0x00002e98, 1, { 0x00002e98 } }, { 0x00002e99, 1, { 0x00002e99 } }, { 0x00002e9b, 1, { 0x00002e9b } }, { 0x00002e9c, 1, { 0x00002e9c } }, { 0x00002e9d, 1, { 0x00002e9d } }, { 0x00002e9e, 1, { 0x00002e9e } }, { 0x00002e9f, 1, { 0x00002e9f } }, { 0x00002ea0, 1, { 0x00002ea0 } }, { 0x00002ea1, 1, { 0x00002ea1 } }, { 0x00002ea2, 1, { 0x00002ea2 } }, { 0x00002ea3, 1, { 0x00002ea3 } }, { 0x00002ea4, 1, { 0x00002ea4 } }, { 0x00002ea5, 1, { 0x00002ea5 } }, { 0x00002ea6, 1, { 0x00002ea6 } }, { 0x00002ea7, 1, { 0x00002ea7 } }, { 0x00002ea8, 1, { 0x00002ea8 } }, { 0x00002ea9, 1, { 0x00002ea9 } }, { 0x00002eaa, 1, { 0x00002eaa } }, { 0x00002eab, 1, { 0x00002eab } }, { 0x00002eac, 1, { 0x00002eac } }, { 0x00002ead, 1, { 0x00002ead } }, { 0x00002eae, 1, { 0x00002eae } }, { 0x00002eaf, 1, { 0x00002eaf } }, { 0x00002eb0, 1, { 0x00002eb0 } }, { 0x00002eb1, 1, { 0x00002eb1 } }, { 0x00002eb2, 1, { 0x00002eb2 } }, { 0x00002eb3, 1, { 0x00002eb3 } }, { 0x00002eb4, 1, { 0x00002eb4 } }, { 0x00002eb5, 1, { 0x00002eb5 } }, { 0x00002eb6, 1, { 0x00002eb6 } }, { 0x00002eb7, 1, { 0x00002eb7 } }, { 0x00002eb8, 1, { 0x00002eb8 } }, { 0x00002eb9, 1, { 0x00002eb9 } }, { 0x00002eba, 1, { 0x00002eba } }, { 0x00002ebb, 1, { 0x00002ebb } }, { 0x00002ebc, 1, { 0x00002ebc } }, { 0x00002ebd, 1, { 0x00002ebd } }, { 0x00002ebe, 1, { 0x00002ebe } }, { 0x00002ebf, 1, { 0x00002ebf } }, { 0x00002ec0, 1, { 0x00002ec0 } }, { 0x00002ec1, 1, { 0x00002ec1 } }, { 0x00002ec2, 1, { 0x00002ec2 } }, { 0x00002ec3, 1, { 0x00002ec3 } }, { 0x00002ec4, 1, { 0x00002ec4 } }, { 0x00002ec5, 1, { 0x00002ec5 } }, { 0x00002ec6, 1, { 0x00002ec6 } }, { 0x00002ec7, 1, { 0x00002ec7 } }, { 0x00002ec8, 1, { 0x00002ec8 } }, { 0x00002ec9, 1, { 0x00002ec9 } }, { 0x00002eca, 1, { 0x00002eca } }, { 0x00002ecb, 1, { 0x00002ecb } }, { 0x00002ecc, 1, { 0x00002ecc } }, { 0x00002ecd, 1, { 0x00002ecd } }, { 0x00002ece, 1, { 0x00002ece } }, { 0x00002ecf, 1, { 0x00002ecf } }, { 0x00002ed0, 1, { 0x00002ed0 } }, { 0x00002ed1, 1, { 0x00002ed1 } }, { 0x00002ed2, 1, { 0x00002ed2 } }, { 0x00002ed3, 1, { 0x00002ed3 } }, { 0x00002ed4, 1, { 0x00002ed4 } }, { 0x00002ed5, 1, { 0x00002ed5 } }, { 0x00002ed6, 1, { 0x00002ed6 } }, { 0x00002ed7, 1, { 0x00002ed7 } }, { 0x00002ed8, 1, { 0x00002ed8 } }, { 0x00002ed9, 1, { 0x00002ed9 } }, { 0x00002eda, 1, { 0x00002eda } }, { 0x00002edb, 1, { 0x00002edb } }, { 0x00002edc, 1, { 0x00002edc } }, { 0x00002edd, 1, { 0x00002edd } }, { 0x00002ede, 1, { 0x00002ede } }, { 0x00002edf, 1, { 0x00002edf } }, { 0x00002ee0, 1, { 0x00002ee0 } }, { 0x00002ee1, 1, { 0x00002ee1 } }, { 0x00002ee2, 1, { 0x00002ee2 } }, { 0x00002ee3, 1, { 0x00002ee3 } }, { 0x00002ee4, 1, { 0x00002ee4 } }, { 0x00002ee5, 1, { 0x00002ee5 } }, { 0x00002ee6, 1, { 0x00002ee6 } }, { 0x00002ee7, 1, { 0x00002ee7 } }, { 0x00002ee8, 1, { 0x00002ee8 } }, { 0x00002ee9, 1, { 0x00002ee9 } }, { 0x00002eea, 1, { 0x00002eea } }, { 0x00002eeb, 1, { 0x00002eeb } }, { 0x00002eec, 1, { 0x00002eec } }, { 0x00002eed, 1, { 0x00002eed } }, { 0x00002eee, 1, { 0x00002eee } }, { 0x00002eef, 1, { 0x00002eef } }, { 0x00002ef0, 1, { 0x00002ef0 } }, { 0x00002ef1, 1, { 0x00002ef1 } }, { 0x00002ef2, 1, { 0x00002ef2 } }, { 0x00002ef3, 1, { 0x00002ef3 } }, { 0x00002f00, 1, { 0x00002f00 } }, { 0x00002f01, 1, { 0x00002f01 } }, { 0x00002f02, 1, { 0x00002f02 } }, { 0x00002f03, 1, { 0x00002f03 } }, { 0x00002f04, 1, { 0x00002f04 } }, { 0x00002f05, 1, { 0x00002f05 } }, { 0x00002f06, 1, { 0x00002f06 } }, { 0x00002f07, 1, { 0x00002f07 } }, { 0x00002f08, 1, { 0x00002f08 } }, { 0x00002f09, 1, { 0x00002f09 } }, { 0x00002f0a, 1, { 0x00002f0a } }, { 0x00002f0b, 1, { 0x00002f0b } }, { 0x00002f0c, 1, { 0x00002f0c } }, { 0x00002f0d, 1, { 0x00002f0d } }, { 0x00002f0e, 1, { 0x00002f0e } }, { 0x00002f0f, 1, { 0x00002f0f } }, { 0x00002f10, 1, { 0x00002f10 } }, { 0x00002f11, 1, { 0x00002f11 } }, { 0x00002f12, 1, { 0x00002f12 } }, { 0x00002f13, 1, { 0x00002f13 } }, { 0x00002f14, 1, { 0x00002f14 } }, { 0x00002f15, 1, { 0x00002f15 } }, { 0x00002f16, 1, { 0x00002f16 } }, { 0x00002f17, 1, { 0x00002f17 } }, { 0x00002f18, 1, { 0x00002f18 } }, { 0x00002f19, 1, { 0x00002f19 } }, { 0x00002f1a, 1, { 0x00002f1a } }, { 0x00002f1b, 1, { 0x00002f1b } }, { 0x00002f1c, 1, { 0x00002f1c } }, { 0x00002f1d, 1, { 0x00002f1d } }, { 0x00002f1e, 1, { 0x00002f1e } }, { 0x00002f1f, 1, { 0x00002f1f } }, { 0x00002f20, 1, { 0x00002f20 } }, { 0x00002f21, 1, { 0x00002f21 } }, { 0x00002f22, 1, { 0x00002f22 } }, { 0x00002f23, 1, { 0x00002f23 } }, { 0x00002f24, 1, { 0x00002f24 } }, { 0x00002f25, 1, { 0x00002f25 } }, { 0x00002f26, 1, { 0x00002f26 } }, { 0x00002f27, 1, { 0x00002f27 } }, { 0x00002f28, 1, { 0x00002f28 } }, { 0x00002f29, 1, { 0x00002f29 } }, { 0x00002f2a, 1, { 0x00002f2a } }, { 0x00002f2b, 1, { 0x00002f2b } }, { 0x00002f2c, 1, { 0x00002f2c } }, { 0x00002f2d, 1, { 0x00002f2d } }, { 0x00002f2e, 1, { 0x00002f2e } }, { 0x00002f2f, 1, { 0x00002f2f } }, { 0x00002f30, 1, { 0x00002f30 } }, { 0x00002f31, 1, { 0x00002f31 } }, { 0x00002f32, 1, { 0x00002f32 } }, { 0x00002f33, 1, { 0x00002f33 } }, { 0x00002f34, 1, { 0x00002f34 } }, { 0x00002f35, 1, { 0x00002f35 } }, { 0x00002f36, 1, { 0x00002f36 } }, { 0x00002f37, 1, { 0x00002f37 } }, { 0x00002f38, 1, { 0x00002f38 } }, { 0x00002f39, 1, { 0x00002f39 } }, { 0x00002f3a, 1, { 0x00002f3a } }, { 0x00002f3b, 1, { 0x00002f3b } }, { 0x00002f3c, 1, { 0x00002f3c } }, { 0x00002f3d, 1, { 0x00002f3d } }, { 0x00002f3e, 1, { 0x00002f3e } }, { 0x00002f3f, 1, { 0x00002f3f } }, { 0x00002f40, 1, { 0x00002f40 } }, { 0x00002f41, 1, { 0x00002f41 } }, { 0x00002f42, 1, { 0x00002f42 } }, { 0x00002f43, 1, { 0x00002f43 } }, { 0x00002f44, 1, { 0x00002f44 } }, { 0x00002f45, 1, { 0x00002f45 } }, { 0x00002f46, 1, { 0x00002f46 } }, { 0x00002f47, 1, { 0x00002f47 } }, { 0x00002f48, 1, { 0x00002f48 } }, { 0x00002f49, 1, { 0x00002f49 } }, { 0x00002f4a, 1, { 0x00002f4a } }, { 0x00002f4b, 1, { 0x00002f4b } }, { 0x00002f4c, 1, { 0x00002f4c } }, { 0x00002f4d, 1, { 0x00002f4d } }, { 0x00002f4e, 1, { 0x00002f4e } }, { 0x00002f4f, 1, { 0x00002f4f } }, { 0x00002f50, 1, { 0x00002f50 } }, { 0x00002f51, 1, { 0x00002f51 } }, { 0x00002f52, 1, { 0x00002f52 } }, { 0x00002f53, 1, { 0x00002f53 } }, { 0x00002f54, 1, { 0x00002f54 } }, { 0x00002f55, 1, { 0x00002f55 } }, { 0x00002f56, 1, { 0x00002f56 } }, { 0x00002f57, 1, { 0x00002f57 } }, { 0x00002f58, 1, { 0x00002f58 } }, { 0x00002f59, 1, { 0x00002f59 } }, { 0x00002f5a, 1, { 0x00002f5a } }, { 0x00002f5b, 1, { 0x00002f5b } }, { 0x00002f5c, 1, { 0x00002f5c } }, { 0x00002f5d, 1, { 0x00002f5d } }, { 0x00002f5e, 1, { 0x00002f5e } }, { 0x00002f5f, 1, { 0x00002f5f } }, { 0x00002f60, 1, { 0x00002f60 } }, { 0x00002f61, 1, { 0x00002f61 } }, { 0x00002f62, 1, { 0x00002f62 } }, { 0x00002f63, 1, { 0x00002f63 } }, { 0x00002f64, 1, { 0x00002f64 } }, { 0x00002f65, 1, { 0x00002f65 } }, { 0x00002f66, 1, { 0x00002f66 } }, { 0x00002f67, 1, { 0x00002f67 } }, { 0x00002f68, 1, { 0x00002f68 } }, { 0x00002f69, 1, { 0x00002f69 } }, { 0x00002f6a, 1, { 0x00002f6a } }, { 0x00002f6b, 1, { 0x00002f6b } }, { 0x00002f6c, 1, { 0x00002f6c } }, { 0x00002f6d, 1, { 0x00002f6d } }, { 0x00002f6e, 1, { 0x00002f6e } }, { 0x00002f6f, 1, { 0x00002f6f } }, { 0x00002f70, 1, { 0x00002f70 } }, { 0x00002f71, 1, { 0x00002f71 } }, { 0x00002f72, 1, { 0x00002f72 } }, { 0x00002f73, 1, { 0x00002f73 } }, { 0x00002f74, 1, { 0x00002f74 } }, { 0x00002f75, 1, { 0x00002f75 } }, { 0x00002f76, 1, { 0x00002f76 } }, { 0x00002f77, 1, { 0x00002f77 } }, { 0x00002f78, 1, { 0x00002f78 } }, { 0x00002f79, 1, { 0x00002f79 } }, { 0x00002f7a, 1, { 0x00002f7a } }, { 0x00002f7b, 1, { 0x00002f7b } }, { 0x00002f7c, 1, { 0x00002f7c } }, { 0x00002f7d, 1, { 0x00002f7d } }, { 0x00002f7e, 1, { 0x00002f7e } }, { 0x00002f7f, 1, { 0x00002f7f } }, { 0x00002f80, 1, { 0x00002f80 } }, { 0x00002f81, 1, { 0x00002f81 } }, { 0x00002f82, 1, { 0x00002f82 } }, { 0x00002f83, 1, { 0x00002f83 } }, { 0x00002f84, 1, { 0x00002f84 } }, { 0x00002f85, 1, { 0x00002f85 } }, { 0x00002f86, 1, { 0x00002f86 } }, { 0x00002f87, 1, { 0x00002f87 } }, { 0x00002f88, 1, { 0x00002f88 } }, { 0x00002f89, 1, { 0x00002f89 } }, { 0x00002f8a, 1, { 0x00002f8a } }, { 0x00002f8b, 1, { 0x00002f8b } }, { 0x00002f8c, 1, { 0x00002f8c } }, { 0x00002f8d, 1, { 0x00002f8d } }, { 0x00002f8e, 1, { 0x00002f8e } }, { 0x00002f8f, 1, { 0x00002f8f } }, { 0x00002f90, 1, { 0x00002f90 } }, { 0x00002f91, 1, { 0x00002f91 } }, { 0x00002f92, 1, { 0x00002f92 } }, { 0x00002f93, 1, { 0x00002f93 } }, { 0x00002f94, 1, { 0x00002f94 } }, { 0x00002f95, 1, { 0x00002f95 } }, { 0x00002f96, 1, { 0x00002f96 } }, { 0x00002f97, 1, { 0x00002f97 } }, { 0x00002f98, 1, { 0x00002f98 } }, { 0x00002f99, 1, { 0x00002f99 } }, { 0x00002f9a, 1, { 0x00002f9a } }, { 0x00002f9b, 1, { 0x00002f9b } }, { 0x00002f9c, 1, { 0x00002f9c } }, { 0x00002f9d, 1, { 0x00002f9d } }, { 0x00002f9e, 1, { 0x00002f9e } }, { 0x00002f9f, 1, { 0x00002f9f } }, { 0x00002fa0, 1, { 0x00002fa0 } }, { 0x00002fa1, 1, { 0x00002fa1 } }, { 0x00002fa2, 1, { 0x00002fa2 } }, { 0x00002fa3, 1, { 0x00002fa3 } }, { 0x00002fa4, 1, { 0x00002fa4 } }, { 0x00002fa5, 1, { 0x00002fa5 } }, { 0x00002fa6, 1, { 0x00002fa6 } }, { 0x00002fa7, 1, { 0x00002fa7 } }, { 0x00002fa8, 1, { 0x00002fa8 } }, { 0x00002fa9, 1, { 0x00002fa9 } }, { 0x00002faa, 1, { 0x00002faa } }, { 0x00002fab, 1, { 0x00002fab } }, { 0x00002fac, 1, { 0x00002fac } }, { 0x00002fad, 1, { 0x00002fad } }, { 0x00002fae, 1, { 0x00002fae } }, { 0x00002faf, 1, { 0x00002faf } }, { 0x00002fb0, 1, { 0x00002fb0 } }, { 0x00002fb1, 1, { 0x00002fb1 } }, { 0x00002fb2, 1, { 0x00002fb2 } }, { 0x00002fb3, 1, { 0x00002fb3 } }, { 0x00002fb4, 1, { 0x00002fb4 } }, { 0x00002fb5, 1, { 0x00002fb5 } }, { 0x00002fb6, 1, { 0x00002fb6 } }, { 0x00002fb7, 1, { 0x00002fb7 } }, { 0x00002fb8, 1, { 0x00002fb8 } }, { 0x00002fb9, 1, { 0x00002fb9 } }, { 0x00002fba, 1, { 0x00002fba } }, { 0x00002fbb, 1, { 0x00002fbb } }, { 0x00002fbc, 1, { 0x00002fbc } }, { 0x00002fbd, 1, { 0x00002fbd } }, { 0x00002fbe, 1, { 0x00002fbe } }, { 0x00002fbf, 1, { 0x00002fbf } }, { 0x00002fc0, 1, { 0x00002fc0 } }, { 0x00002fc1, 1, { 0x00002fc1 } }, { 0x00002fc2, 1, { 0x00002fc2 } }, { 0x00002fc3, 1, { 0x00002fc3 } }, { 0x00002fc4, 1, { 0x00002fc4 } }, { 0x00002fc5, 1, { 0x00002fc5 } }, { 0x00002fc6, 1, { 0x00002fc6 } }, { 0x00002fc7, 1, { 0x00002fc7 } }, { 0x00002fc8, 1, { 0x00002fc8 } }, { 0x00002fc9, 1, { 0x00002fc9 } }, { 0x00002fca, 1, { 0x00002fca } }, { 0x00002fcb, 1, { 0x00002fcb } }, { 0x00002fcc, 1, { 0x00002fcc } }, { 0x00002fcd, 1, { 0x00002fcd } }, { 0x00002fce, 1, { 0x00002fce } }, { 0x00002fcf, 1, { 0x00002fcf } }, { 0x00002fd0, 1, { 0x00002fd0 } }, { 0x00002fd1, 1, { 0x00002fd1 } }, { 0x00002fd2, 1, { 0x00002fd2 } }, { 0x00002fd3, 1, { 0x00002fd3 } }, { 0x00002fd4, 1, { 0x00002fd4 } }, { 0x00002fd5, 1, { 0x00002fd5 } }, { 0x00002ff0, 1, { 0x00002ff0 } }, { 0x00002ff1, 1, { 0x00002ff1 } }, { 0x00002ff2, 1, { 0x00002ff2 } }, { 0x00002ff3, 1, { 0x00002ff3 } }, { 0x00002ff4, 1, { 0x00002ff4 } }, { 0x00002ff5, 1, { 0x00002ff5 } }, { 0x00002ff6, 1, { 0x00002ff6 } }, { 0x00002ff7, 1, { 0x00002ff7 } }, { 0x00002ff8, 1, { 0x00002ff8 } }, { 0x00002ff9, 1, { 0x00002ff9 } }, { 0x00002ffa, 1, { 0x00002ffa } }, { 0x00002ffb, 1, { 0x00002ffb } }, { 0x00003000, 1, { 0x00003000 } }, { 0x00003001, 1, { 0x00003001 } }, { 0x00003002, 1, { 0x00003002 } }, { 0x00003003, 1, { 0x00003003 } }, { 0x00003004, 1, { 0x00003004 } }, { 0x00003005, 1, { 0x00003005 } }, { 0x00003006, 1, { 0x00003006 } }, { 0x00003007, 1, { 0x00003007 } }, { 0x00003008, 1, { 0x00003008 } }, { 0x00003009, 1, { 0x00003009 } }, { 0x0000300a, 1, { 0x0000300a } }, { 0x0000300b, 1, { 0x0000300b } }, { 0x0000300c, 1, { 0x0000300c } }, { 0x0000300d, 1, { 0x0000300d } }, { 0x0000300e, 1, { 0x0000300e } }, { 0x0000300f, 1, { 0x0000300f } }, { 0x00003010, 1, { 0x00003010 } }, { 0x00003011, 1, { 0x00003011 } }, { 0x00003012, 1, { 0x00003012 } }, { 0x00003013, 1, { 0x00003013 } }, { 0x00003014, 1, { 0x00003014 } }, { 0x00003015, 1, { 0x00003015 } }, { 0x00003016, 1, { 0x00003016 } }, { 0x00003017, 1, { 0x00003017 } }, { 0x00003018, 1, { 0x00003018 } }, { 0x00003019, 1, { 0x00003019 } }, { 0x0000301a, 1, { 0x0000301a } }, { 0x0000301b, 1, { 0x0000301b } }, { 0x0000301c, 1, { 0x0000301c } }, { 0x0000301d, 1, { 0x0000301d } }, { 0x0000301e, 1, { 0x0000301e } }, { 0x0000301f, 1, { 0x0000301f } }, { 0x00003020, 1, { 0x00003020 } }, { 0x00003021, 1, { 0x00003021 } }, { 0x00003022, 1, { 0x00003022 } }, { 0x00003023, 1, { 0x00003023 } }, { 0x00003024, 1, { 0x00003024 } }, { 0x00003025, 1, { 0x00003025 } }, { 0x00003026, 1, { 0x00003026 } }, { 0x00003027, 1, { 0x00003027 } }, { 0x00003028, 1, { 0x00003028 } }, { 0x00003029, 1, { 0x00003029 } }, { 0x0000302a, 1, { 0x0000302a } }, { 0x0000302b, 1, { 0x0000302b } }, { 0x0000302c, 1, { 0x0000302c } }, { 0x0000302d, 1, { 0x0000302d } }, { 0x0000302e, 1, { 0x0000302e } }, { 0x0000302f, 1, { 0x0000302f } }, { 0x00003030, 1, { 0x00003030 } }, { 0x00003031, 1, { 0x00003031 } }, { 0x00003032, 1, { 0x00003032 } }, { 0x00003033, 1, { 0x00003033 } }, { 0x00003034, 1, { 0x00003034 } }, { 0x00003035, 1, { 0x00003035 } }, { 0x00003036, 1, { 0x00003036 } }, { 0x00003037, 1, { 0x00003037 } }, { 0x00003038, 1, { 0x00003038 } }, { 0x00003039, 1, { 0x00003039 } }, { 0x0000303a, 1, { 0x0000303a } }, { 0x0000303b, 1, { 0x0000303b } }, { 0x0000303c, 1, { 0x0000303c } }, { 0x0000303d, 1, { 0x0000303d } }, { 0x0000303e, 1, { 0x0000303e } }, { 0x0000303f, 1, { 0x0000303f } }, { 0x00003041, 1, { 0x00003041 } }, { 0x00003042, 1, { 0x00003042 } }, { 0x00003043, 1, { 0x00003043 } }, { 0x00003044, 1, { 0x00003044 } }, { 0x00003045, 1, { 0x00003045 } }, { 0x00003046, 1, { 0x00003046 } }, { 0x00003047, 1, { 0x00003047 } }, { 0x00003048, 1, { 0x00003048 } }, { 0x00003049, 1, { 0x00003049 } }, { 0x0000304a, 1, { 0x0000304a } }, { 0x0000304b, 1, { 0x0000304b } }, { 0x0000304c, 2, { 0x0000304b, 0x00003099 } }, { 0x0000304d, 1, { 0x0000304d } }, { 0x0000304e, 2, { 0x0000304d, 0x00003099 } }, { 0x0000304f, 1, { 0x0000304f } }, { 0x00003050, 2, { 0x0000304f, 0x00003099 } }, { 0x00003051, 1, { 0x00003051 } }, { 0x00003052, 2, { 0x00003051, 0x00003099 } }, { 0x00003053, 1, { 0x00003053 } }, { 0x00003054, 2, { 0x00003053, 0x00003099 } }, { 0x00003055, 1, { 0x00003055 } }, { 0x00003056, 2, { 0x00003055, 0x00003099 } }, { 0x00003057, 1, { 0x00003057 } }, { 0x00003058, 2, { 0x00003057, 0x00003099 } }, { 0x00003059, 1, { 0x00003059 } }, { 0x0000305a, 2, { 0x00003059, 0x00003099 } }, { 0x0000305b, 1, { 0x0000305b } }, { 0x0000305c, 2, { 0x0000305b, 0x00003099 } }, { 0x0000305d, 1, { 0x0000305d } }, { 0x0000305e, 2, { 0x0000305d, 0x00003099 } }, { 0x0000305f, 1, { 0x0000305f } }, { 0x00003060, 2, { 0x0000305f, 0x00003099 } }, { 0x00003061, 1, { 0x00003061 } }, { 0x00003062, 2, { 0x00003061, 0x00003099 } }, { 0x00003063, 1, { 0x00003063 } }, { 0x00003064, 1, { 0x00003064 } }, { 0x00003065, 2, { 0x00003064, 0x00003099 } }, { 0x00003066, 1, { 0x00003066 } }, { 0x00003067, 2, { 0x00003066, 0x00003099 } }, { 0x00003068, 1, { 0x00003068 } }, { 0x00003069, 2, { 0x00003068, 0x00003099 } }, { 0x0000306a, 1, { 0x0000306a } }, { 0x0000306b, 1, { 0x0000306b } }, { 0x0000306c, 1, { 0x0000306c } }, { 0x0000306d, 1, { 0x0000306d } }, { 0x0000306e, 1, { 0x0000306e } }, { 0x0000306f, 1, { 0x0000306f } }, { 0x00003070, 2, { 0x0000306f, 0x00003099 } }, { 0x00003071, 2, { 0x0000306f, 0x0000309a } }, { 0x00003072, 1, { 0x00003072 } }, { 0x00003073, 2, { 0x00003072, 0x00003099 } }, { 0x00003074, 2, { 0x00003072, 0x0000309a } }, { 0x00003075, 1, { 0x00003075 } }, { 0x00003076, 2, { 0x00003075, 0x00003099 } }, { 0x00003077, 2, { 0x00003075, 0x0000309a } }, { 0x00003078, 1, { 0x00003078 } }, { 0x00003079, 2, { 0x00003078, 0x00003099 } }, { 0x0000307a, 2, { 0x00003078, 0x0000309a } }, { 0x0000307b, 1, { 0x0000307b } }, { 0x0000307c, 2, { 0x0000307b, 0x00003099 } }, { 0x0000307d, 2, { 0x0000307b, 0x0000309a } }, { 0x0000307e, 1, { 0x0000307e } }, { 0x0000307f, 1, { 0x0000307f } }, { 0x00003080, 1, { 0x00003080 } }, { 0x00003081, 1, { 0x00003081 } }, { 0x00003082, 1, { 0x00003082 } }, { 0x00003083, 1, { 0x00003083 } }, { 0x00003084, 1, { 0x00003084 } }, { 0x00003085, 1, { 0x00003085 } }, { 0x00003086, 1, { 0x00003086 } }, { 0x00003087, 1, { 0x00003087 } }, { 0x00003088, 1, { 0x00003088 } }, { 0x00003089, 1, { 0x00003089 } }, { 0x0000308a, 1, { 0x0000308a } }, { 0x0000308b, 1, { 0x0000308b } }, { 0x0000308c, 1, { 0x0000308c } }, { 0x0000308d, 1, { 0x0000308d } }, { 0x0000308e, 1, { 0x0000308e } }, { 0x0000308f, 1, { 0x0000308f } }, { 0x00003090, 1, { 0x00003090 } }, { 0x00003091, 1, { 0x00003091 } }, { 0x00003092, 1, { 0x00003092 } }, { 0x00003093, 1, { 0x00003093 } }, { 0x00003094, 2, { 0x00003046, 0x00003099 } }, { 0x00003095, 1, { 0x00003095 } }, { 0x00003096, 1, { 0x00003096 } }, { 0x00003099, 1, { 0x00003099 } }, { 0x0000309a, 1, { 0x0000309a } }, { 0x0000309b, 1, { 0x0000309b } }, { 0x0000309c, 1, { 0x0000309c } }, { 0x0000309d, 1, { 0x0000309d } }, { 0x0000309e, 2, { 0x0000309d, 0x00003099 } }, { 0x0000309f, 1, { 0x0000309f } }, { 0x000030a0, 1, { 0x000030a0 } }, { 0x000030a1, 1, { 0x000030a1 } }, { 0x000030a2, 1, { 0x000030a2 } }, { 0x000030a3, 1, { 0x000030a3 } }, { 0x000030a4, 1, { 0x000030a4 } }, { 0x000030a5, 1, { 0x000030a5 } }, { 0x000030a6, 1, { 0x000030a6 } }, { 0x000030a7, 1, { 0x000030a7 } }, { 0x000030a8, 1, { 0x000030a8 } }, { 0x000030a9, 1, { 0x000030a9 } }, { 0x000030aa, 1, { 0x000030aa } }, { 0x000030ab, 1, { 0x000030ab } }, { 0x000030ac, 2, { 0x000030ab, 0x00003099 } }, { 0x000030ad, 1, { 0x000030ad } }, { 0x000030ae, 2, { 0x000030ad, 0x00003099 } }, { 0x000030af, 1, { 0x000030af } }, { 0x000030b0, 2, { 0x000030af, 0x00003099 } }, { 0x000030b1, 1, { 0x000030b1 } }, { 0x000030b2, 2, { 0x000030b1, 0x00003099 } }, { 0x000030b3, 1, { 0x000030b3 } }, { 0x000030b4, 2, { 0x000030b3, 0x00003099 } }, { 0x000030b5, 1, { 0x000030b5 } }, { 0x000030b6, 2, { 0x000030b5, 0x00003099 } }, { 0x000030b7, 1, { 0x000030b7 } }, { 0x000030b8, 2, { 0x000030b7, 0x00003099 } }, { 0x000030b9, 1, { 0x000030b9 } }, { 0x000030ba, 2, { 0x000030b9, 0x00003099 } }, { 0x000030bb, 1, { 0x000030bb } }, { 0x000030bc, 2, { 0x000030bb, 0x00003099 } }, { 0x000030bd, 1, { 0x000030bd } }, { 0x000030be, 2, { 0x000030bd, 0x00003099 } }, { 0x000030bf, 1, { 0x000030bf } }, { 0x000030c0, 2, { 0x000030bf, 0x00003099 } }, { 0x000030c1, 1, { 0x000030c1 } }, { 0x000030c2, 2, { 0x000030c1, 0x00003099 } }, { 0x000030c3, 1, { 0x000030c3 } }, { 0x000030c4, 1, { 0x000030c4 } }, { 0x000030c5, 2, { 0x000030c4, 0x00003099 } }, { 0x000030c6, 1, { 0x000030c6 } }, { 0x000030c7, 2, { 0x000030c6, 0x00003099 } }, { 0x000030c8, 1, { 0x000030c8 } }, { 0x000030c9, 2, { 0x000030c8, 0x00003099 } }, { 0x000030ca, 1, { 0x000030ca } }, { 0x000030cb, 1, { 0x000030cb } }, { 0x000030cc, 1, { 0x000030cc } }, { 0x000030cd, 1, { 0x000030cd } }, { 0x000030ce, 1, { 0x000030ce } }, { 0x000030cf, 1, { 0x000030cf } }, { 0x000030d0, 2, { 0x000030cf, 0x00003099 } }, { 0x000030d1, 2, { 0x000030cf, 0x0000309a } }, { 0x000030d2, 1, { 0x000030d2 } }, { 0x000030d3, 2, { 0x000030d2, 0x00003099 } }, { 0x000030d4, 2, { 0x000030d2, 0x0000309a } }, { 0x000030d5, 1, { 0x000030d5 } }, { 0x000030d6, 2, { 0x000030d5, 0x00003099 } }, { 0x000030d7, 2, { 0x000030d5, 0x0000309a } }, { 0x000030d8, 1, { 0x000030d8 } }, { 0x000030d9, 2, { 0x000030d8, 0x00003099 } }, { 0x000030da, 2, { 0x000030d8, 0x0000309a } }, { 0x000030db, 1, { 0x000030db } }, { 0x000030dc, 2, { 0x000030db, 0x00003099 } }, { 0x000030dd, 2, { 0x000030db, 0x0000309a } }, { 0x000030de, 1, { 0x000030de } }, { 0x000030df, 1, { 0x000030df } }, { 0x000030e0, 1, { 0x000030e0 } }, { 0x000030e1, 1, { 0x000030e1 } }, { 0x000030e2, 1, { 0x000030e2 } }, { 0x000030e3, 1, { 0x000030e3 } }, { 0x000030e4, 1, { 0x000030e4 } }, { 0x000030e5, 1, { 0x000030e5 } }, { 0x000030e6, 1, { 0x000030e6 } }, { 0x000030e7, 1, { 0x000030e7 } }, { 0x000030e8, 1, { 0x000030e8 } }, { 0x000030e9, 1, { 0x000030e9 } }, { 0x000030ea, 1, { 0x000030ea } }, { 0x000030eb, 1, { 0x000030eb } }, { 0x000030ec, 1, { 0x000030ec } }, { 0x000030ed, 1, { 0x000030ed } }, { 0x000030ee, 1, { 0x000030ee } }, { 0x000030ef, 1, { 0x000030ef } }, { 0x000030f0, 1, { 0x000030f0 } }, { 0x000030f1, 1, { 0x000030f1 } }, { 0x000030f2, 1, { 0x000030f2 } }, { 0x000030f3, 1, { 0x000030f3 } }, { 0x000030f4, 2, { 0x000030a6, 0x00003099 } }, { 0x000030f5, 1, { 0x000030f5 } }, { 0x000030f6, 1, { 0x000030f6 } }, { 0x000030f7, 2, { 0x000030ef, 0x00003099 } }, { 0x000030f8, 2, { 0x000030f0, 0x00003099 } }, { 0x000030f9, 2, { 0x000030f1, 0x00003099 } }, { 0x000030fa, 2, { 0x000030f2, 0x00003099 } }, { 0x000030fb, 1, { 0x000030fb } }, { 0x000030fc, 1, { 0x000030fc } }, { 0x000030fd, 1, { 0x000030fd } }, { 0x000030fe, 2, { 0x000030fd, 0x00003099 } }, { 0x000030ff, 1, { 0x000030ff } }, { 0x00003105, 1, { 0x00003105 } }, { 0x00003106, 1, { 0x00003106 } }, { 0x00003107, 1, { 0x00003107 } }, { 0x00003108, 1, { 0x00003108 } }, { 0x00003109, 1, { 0x00003109 } }, { 0x0000310a, 1, { 0x0000310a } }, { 0x0000310b, 1, { 0x0000310b } }, { 0x0000310c, 1, { 0x0000310c } }, { 0x0000310d, 1, { 0x0000310d } }, { 0x0000310e, 1, { 0x0000310e } }, { 0x0000310f, 1, { 0x0000310f } }, { 0x00003110, 1, { 0x00003110 } }, { 0x00003111, 1, { 0x00003111 } }, { 0x00003112, 1, { 0x00003112 } }, { 0x00003113, 1, { 0x00003113 } }, { 0x00003114, 1, { 0x00003114 } }, { 0x00003115, 1, { 0x00003115 } }, { 0x00003116, 1, { 0x00003116 } }, { 0x00003117, 1, { 0x00003117 } }, { 0x00003118, 1, { 0x00003118 } }, { 0x00003119, 1, { 0x00003119 } }, { 0x0000311a, 1, { 0x0000311a } }, { 0x0000311b, 1, { 0x0000311b } }, { 0x0000311c, 1, { 0x0000311c } }, { 0x0000311d, 1, { 0x0000311d } }, { 0x0000311e, 1, { 0x0000311e } }, { 0x0000311f, 1, { 0x0000311f } }, { 0x00003120, 1, { 0x00003120 } }, { 0x00003121, 1, { 0x00003121 } }, { 0x00003122, 1, { 0x00003122 } }, { 0x00003123, 1, { 0x00003123 } }, { 0x00003124, 1, { 0x00003124 } }, { 0x00003125, 1, { 0x00003125 } }, { 0x00003126, 1, { 0x00003126 } }, { 0x00003127, 1, { 0x00003127 } }, { 0x00003128, 1, { 0x00003128 } }, { 0x00003129, 1, { 0x00003129 } }, { 0x0000312a, 1, { 0x0000312a } }, { 0x0000312b, 1, { 0x0000312b } }, { 0x0000312c, 1, { 0x0000312c } }, { 0x0000312d, 1, { 0x0000312d } }, { 0x00003131, 1, { 0x00003131 } }, { 0x00003132, 1, { 0x00003132 } }, { 0x00003133, 1, { 0x00003133 } }, { 0x00003134, 1, { 0x00003134 } }, { 0x00003135, 1, { 0x00003135 } }, { 0x00003136, 1, { 0x00003136 } }, { 0x00003137, 1, { 0x00003137 } }, { 0x00003138, 1, { 0x00003138 } }, { 0x00003139, 1, { 0x00003139 } }, { 0x0000313a, 1, { 0x0000313a } }, { 0x0000313b, 1, { 0x0000313b } }, { 0x0000313c, 1, { 0x0000313c } }, { 0x0000313d, 1, { 0x0000313d } }, { 0x0000313e, 1, { 0x0000313e } }, { 0x0000313f, 1, { 0x0000313f } }, { 0x00003140, 1, { 0x00003140 } }, { 0x00003141, 1, { 0x00003141 } }, { 0x00003142, 1, { 0x00003142 } }, { 0x00003143, 1, { 0x00003143 } }, { 0x00003144, 1, { 0x00003144 } }, { 0x00003145, 1, { 0x00003145 } }, { 0x00003146, 1, { 0x00003146 } }, { 0x00003147, 1, { 0x00003147 } }, { 0x00003148, 1, { 0x00003148 } }, { 0x00003149, 1, { 0x00003149 } }, { 0x0000314a, 1, { 0x0000314a } }, { 0x0000314b, 1, { 0x0000314b } }, { 0x0000314c, 1, { 0x0000314c } }, { 0x0000314d, 1, { 0x0000314d } }, { 0x0000314e, 1, { 0x0000314e } }, { 0x0000314f, 1, { 0x0000314f } }, { 0x00003150, 1, { 0x00003150 } }, { 0x00003151, 1, { 0x00003151 } }, { 0x00003152, 1, { 0x00003152 } }, { 0x00003153, 1, { 0x00003153 } }, { 0x00003154, 1, { 0x00003154 } }, { 0x00003155, 1, { 0x00003155 } }, { 0x00003156, 1, { 0x00003156 } }, { 0x00003157, 1, { 0x00003157 } }, { 0x00003158, 1, { 0x00003158 } }, { 0x00003159, 1, { 0x00003159 } }, { 0x0000315a, 1, { 0x0000315a } }, { 0x0000315b, 1, { 0x0000315b } }, { 0x0000315c, 1, { 0x0000315c } }, { 0x0000315d, 1, { 0x0000315d } }, { 0x0000315e, 1, { 0x0000315e } }, { 0x0000315f, 1, { 0x0000315f } }, { 0x00003160, 1, { 0x00003160 } }, { 0x00003161, 1, { 0x00003161 } }, { 0x00003162, 1, { 0x00003162 } }, { 0x00003163, 1, { 0x00003163 } }, { 0x00003164, 1, { 0x00003164 } }, { 0x00003165, 1, { 0x00003165 } }, { 0x00003166, 1, { 0x00003166 } }, { 0x00003167, 1, { 0x00003167 } }, { 0x00003168, 1, { 0x00003168 } }, { 0x00003169, 1, { 0x00003169 } }, { 0x0000316a, 1, { 0x0000316a } }, { 0x0000316b, 1, { 0x0000316b } }, { 0x0000316c, 1, { 0x0000316c } }, { 0x0000316d, 1, { 0x0000316d } }, { 0x0000316e, 1, { 0x0000316e } }, { 0x0000316f, 1, { 0x0000316f } }, { 0x00003170, 1, { 0x00003170 } }, { 0x00003171, 1, { 0x00003171 } }, { 0x00003172, 1, { 0x00003172 } }, { 0x00003173, 1, { 0x00003173 } }, { 0x00003174, 1, { 0x00003174 } }, { 0x00003175, 1, { 0x00003175 } }, { 0x00003176, 1, { 0x00003176 } }, { 0x00003177, 1, { 0x00003177 } }, { 0x00003178, 1, { 0x00003178 } }, { 0x00003179, 1, { 0x00003179 } }, { 0x0000317a, 1, { 0x0000317a } }, { 0x0000317b, 1, { 0x0000317b } }, { 0x0000317c, 1, { 0x0000317c } }, { 0x0000317d, 1, { 0x0000317d } }, { 0x0000317e, 1, { 0x0000317e } }, { 0x0000317f, 1, { 0x0000317f } }, { 0x00003180, 1, { 0x00003180 } }, { 0x00003181, 1, { 0x00003181 } }, { 0x00003182, 1, { 0x00003182 } }, { 0x00003183, 1, { 0x00003183 } }, { 0x00003184, 1, { 0x00003184 } }, { 0x00003185, 1, { 0x00003185 } }, { 0x00003186, 1, { 0x00003186 } }, { 0x00003187, 1, { 0x00003187 } }, { 0x00003188, 1, { 0x00003188 } }, { 0x00003189, 1, { 0x00003189 } }, { 0x0000318a, 1, { 0x0000318a } }, { 0x0000318b, 1, { 0x0000318b } }, { 0x0000318c, 1, { 0x0000318c } }, { 0x0000318d, 1, { 0x0000318d } }, { 0x0000318e, 1, { 0x0000318e } }, { 0x00003190, 1, { 0x00003190 } }, { 0x00003191, 1, { 0x00003191 } }, { 0x00003192, 1, { 0x00003192 } }, { 0x00003193, 1, { 0x00003193 } }, { 0x00003194, 1, { 0x00003194 } }, { 0x00003195, 1, { 0x00003195 } }, { 0x00003196, 1, { 0x00003196 } }, { 0x00003197, 1, { 0x00003197 } }, { 0x00003198, 1, { 0x00003198 } }, { 0x00003199, 1, { 0x00003199 } }, { 0x0000319a, 1, { 0x0000319a } }, { 0x0000319b, 1, { 0x0000319b } }, { 0x0000319c, 1, { 0x0000319c } }, { 0x0000319d, 1, { 0x0000319d } }, { 0x0000319e, 1, { 0x0000319e } }, { 0x0000319f, 1, { 0x0000319f } }, { 0x000031a0, 1, { 0x000031a0 } }, { 0x000031a1, 1, { 0x000031a1 } }, { 0x000031a2, 1, { 0x000031a2 } }, { 0x000031a3, 1, { 0x000031a3 } }, { 0x000031a4, 1, { 0x000031a4 } }, { 0x000031a5, 1, { 0x000031a5 } }, { 0x000031a6, 1, { 0x000031a6 } }, { 0x000031a7, 1, { 0x000031a7 } }, { 0x000031a8, 1, { 0x000031a8 } }, { 0x000031a9, 1, { 0x000031a9 } }, { 0x000031aa, 1, { 0x000031aa } }, { 0x000031ab, 1, { 0x000031ab } }, { 0x000031ac, 1, { 0x000031ac } }, { 0x000031ad, 1, { 0x000031ad } }, { 0x000031ae, 1, { 0x000031ae } }, { 0x000031af, 1, { 0x000031af } }, { 0x000031b0, 1, { 0x000031b0 } }, { 0x000031b1, 1, { 0x000031b1 } }, { 0x000031b2, 1, { 0x000031b2 } }, { 0x000031b3, 1, { 0x000031b3 } }, { 0x000031b4, 1, { 0x000031b4 } }, { 0x000031b5, 1, { 0x000031b5 } }, { 0x000031b6, 1, { 0x000031b6 } }, { 0x000031b7, 1, { 0x000031b7 } }, { 0x000031b8, 1, { 0x000031b8 } }, { 0x000031b9, 1, { 0x000031b9 } }, { 0x000031ba, 1, { 0x000031ba } }, { 0x000031c0, 1, { 0x000031c0 } }, { 0x000031c1, 1, { 0x000031c1 } }, { 0x000031c2, 1, { 0x000031c2 } }, { 0x000031c3, 1, { 0x000031c3 } }, { 0x000031c4, 1, { 0x000031c4 } }, { 0x000031c5, 1, { 0x000031c5 } }, { 0x000031c6, 1, { 0x000031c6 } }, { 0x000031c7, 1, { 0x000031c7 } }, { 0x000031c8, 1, { 0x000031c8 } }, { 0x000031c9, 1, { 0x000031c9 } }, { 0x000031ca, 1, { 0x000031ca } }, { 0x000031cb, 1, { 0x000031cb } }, { 0x000031cc, 1, { 0x000031cc } }, { 0x000031cd, 1, { 0x000031cd } }, { 0x000031ce, 1, { 0x000031ce } }, { 0x000031cf, 1, { 0x000031cf } }, { 0x000031d0, 1, { 0x000031d0 } }, { 0x000031d1, 1, { 0x000031d1 } }, { 0x000031d2, 1, { 0x000031d2 } }, { 0x000031d3, 1, { 0x000031d3 } }, { 0x000031d4, 1, { 0x000031d4 } }, { 0x000031d5, 1, { 0x000031d5 } }, { 0x000031d6, 1, { 0x000031d6 } }, { 0x000031d7, 1, { 0x000031d7 } }, { 0x000031d8, 1, { 0x000031d8 } }, { 0x000031d9, 1, { 0x000031d9 } }, { 0x000031da, 1, { 0x000031da } }, { 0x000031db, 1, { 0x000031db } }, { 0x000031dc, 1, { 0x000031dc } }, { 0x000031dd, 1, { 0x000031dd } }, { 0x000031de, 1, { 0x000031de } }, { 0x000031df, 1, { 0x000031df } }, { 0x000031e0, 1, { 0x000031e0 } }, { 0x000031e1, 1, { 0x000031e1 } }, { 0x000031e2, 1, { 0x000031e2 } }, { 0x000031e3, 1, { 0x000031e3 } }, { 0x000031f0, 1, { 0x000031f0 } }, { 0x000031f1, 1, { 0x000031f1 } }, { 0x000031f2, 1, { 0x000031f2 } }, { 0x000031f3, 1, { 0x000031f3 } }, { 0x000031f4, 1, { 0x000031f4 } }, { 0x000031f5, 1, { 0x000031f5 } }, { 0x000031f6, 1, { 0x000031f6 } }, { 0x000031f7, 1, { 0x000031f7 } }, { 0x000031f8, 1, { 0x000031f8 } }, { 0x000031f9, 1, { 0x000031f9 } }, { 0x000031fa, 1, { 0x000031fa } }, { 0x000031fb, 1, { 0x000031fb } }, { 0x000031fc, 1, { 0x000031fc } }, { 0x000031fd, 1, { 0x000031fd } }, { 0x000031fe, 1, { 0x000031fe } }, { 0x000031ff, 1, { 0x000031ff } }, { 0x00003200, 1, { 0x00003200 } }, { 0x00003201, 1, { 0x00003201 } }, { 0x00003202, 1, { 0x00003202 } }, { 0x00003203, 1, { 0x00003203 } }, { 0x00003204, 1, { 0x00003204 } }, { 0x00003205, 1, { 0x00003205 } }, { 0x00003206, 1, { 0x00003206 } }, { 0x00003207, 1, { 0x00003207 } }, { 0x00003208, 1, { 0x00003208 } }, { 0x00003209, 1, { 0x00003209 } }, { 0x0000320a, 1, { 0x0000320a } }, { 0x0000320b, 1, { 0x0000320b } }, { 0x0000320c, 1, { 0x0000320c } }, { 0x0000320d, 1, { 0x0000320d } }, { 0x0000320e, 1, { 0x0000320e } }, { 0x0000320f, 1, { 0x0000320f } }, { 0x00003210, 1, { 0x00003210 } }, { 0x00003211, 1, { 0x00003211 } }, { 0x00003212, 1, { 0x00003212 } }, { 0x00003213, 1, { 0x00003213 } }, { 0x00003214, 1, { 0x00003214 } }, { 0x00003215, 1, { 0x00003215 } }, { 0x00003216, 1, { 0x00003216 } }, { 0x00003217, 1, { 0x00003217 } }, { 0x00003218, 1, { 0x00003218 } }, { 0x00003219, 1, { 0x00003219 } }, { 0x0000321a, 1, { 0x0000321a } }, { 0x0000321b, 1, { 0x0000321b } }, { 0x0000321c, 1, { 0x0000321c } }, { 0x0000321d, 1, { 0x0000321d } }, { 0x0000321e, 1, { 0x0000321e } }, { 0x00003220, 1, { 0x00003220 } }, { 0x00003221, 1, { 0x00003221 } }, { 0x00003222, 1, { 0x00003222 } }, { 0x00003223, 1, { 0x00003223 } }, { 0x00003224, 1, { 0x00003224 } }, { 0x00003225, 1, { 0x00003225 } }, { 0x00003226, 1, { 0x00003226 } }, { 0x00003227, 1, { 0x00003227 } }, { 0x00003228, 1, { 0x00003228 } }, { 0x00003229, 1, { 0x00003229 } }, { 0x0000322a, 1, { 0x0000322a } }, { 0x0000322b, 1, { 0x0000322b } }, { 0x0000322c, 1, { 0x0000322c } }, { 0x0000322d, 1, { 0x0000322d } }, { 0x0000322e, 1, { 0x0000322e } }, { 0x0000322f, 1, { 0x0000322f } }, { 0x00003230, 1, { 0x00003230 } }, { 0x00003231, 1, { 0x00003231 } }, { 0x00003232, 1, { 0x00003232 } }, { 0x00003233, 1, { 0x00003233 } }, { 0x00003234, 1, { 0x00003234 } }, { 0x00003235, 1, { 0x00003235 } }, { 0x00003236, 1, { 0x00003236 } }, { 0x00003237, 1, { 0x00003237 } }, { 0x00003238, 1, { 0x00003238 } }, { 0x00003239, 1, { 0x00003239 } }, { 0x0000323a, 1, { 0x0000323a } }, { 0x0000323b, 1, { 0x0000323b } }, { 0x0000323c, 1, { 0x0000323c } }, { 0x0000323d, 1, { 0x0000323d } }, { 0x0000323e, 1, { 0x0000323e } }, { 0x0000323f, 1, { 0x0000323f } }, { 0x00003240, 1, { 0x00003240 } }, { 0x00003241, 1, { 0x00003241 } }, { 0x00003242, 1, { 0x00003242 } }, { 0x00003243, 1, { 0x00003243 } }, { 0x00003244, 1, { 0x00003244 } }, { 0x00003245, 1, { 0x00003245 } }, { 0x00003246, 1, { 0x00003246 } }, { 0x00003247, 1, { 0x00003247 } }, { 0x00003248, 1, { 0x00003248 } }, { 0x00003249, 1, { 0x00003249 } }, { 0x0000324a, 1, { 0x0000324a } }, { 0x0000324b, 1, { 0x0000324b } }, { 0x0000324c, 1, { 0x0000324c } }, { 0x0000324d, 1, { 0x0000324d } }, { 0x0000324e, 1, { 0x0000324e } }, { 0x0000324f, 1, { 0x0000324f } }, { 0x00003250, 1, { 0x00003250 } }, { 0x00003251, 1, { 0x00003251 } }, { 0x00003252, 1, { 0x00003252 } }, { 0x00003253, 1, { 0x00003253 } }, { 0x00003254, 1, { 0x00003254 } }, { 0x00003255, 1, { 0x00003255 } }, { 0x00003256, 1, { 0x00003256 } }, { 0x00003257, 1, { 0x00003257 } }, { 0x00003258, 1, { 0x00003258 } }, { 0x00003259, 1, { 0x00003259 } }, { 0x0000325a, 1, { 0x0000325a } }, { 0x0000325b, 1, { 0x0000325b } }, { 0x0000325c, 1, { 0x0000325c } }, { 0x0000325d, 1, { 0x0000325d } }, { 0x0000325e, 1, { 0x0000325e } }, { 0x0000325f, 1, { 0x0000325f } }, { 0x00003260, 1, { 0x00003260 } }, { 0x00003261, 1, { 0x00003261 } }, { 0x00003262, 1, { 0x00003262 } }, { 0x00003263, 1, { 0x00003263 } }, { 0x00003264, 1, { 0x00003264 } }, { 0x00003265, 1, { 0x00003265 } }, { 0x00003266, 1, { 0x00003266 } }, { 0x00003267, 1, { 0x00003267 } }, { 0x00003268, 1, { 0x00003268 } }, { 0x00003269, 1, { 0x00003269 } }, { 0x0000326a, 1, { 0x0000326a } }, { 0x0000326b, 1, { 0x0000326b } }, { 0x0000326c, 1, { 0x0000326c } }, { 0x0000326d, 1, { 0x0000326d } }, { 0x0000326e, 1, { 0x0000326e } }, { 0x0000326f, 1, { 0x0000326f } }, { 0x00003270, 1, { 0x00003270 } }, { 0x00003271, 1, { 0x00003271 } }, { 0x00003272, 1, { 0x00003272 } }, { 0x00003273, 1, { 0x00003273 } }, { 0x00003274, 1, { 0x00003274 } }, { 0x00003275, 1, { 0x00003275 } }, { 0x00003276, 1, { 0x00003276 } }, { 0x00003277, 1, { 0x00003277 } }, { 0x00003278, 1, { 0x00003278 } }, { 0x00003279, 1, { 0x00003279 } }, { 0x0000327a, 1, { 0x0000327a } }, { 0x0000327b, 1, { 0x0000327b } }, { 0x0000327c, 1, { 0x0000327c } }, { 0x0000327d, 1, { 0x0000327d } }, { 0x0000327e, 1, { 0x0000327e } }, { 0x0000327f, 1, { 0x0000327f } }, { 0x00003280, 1, { 0x00003280 } }, { 0x00003281, 1, { 0x00003281 } }, { 0x00003282, 1, { 0x00003282 } }, { 0x00003283, 1, { 0x00003283 } }, { 0x00003284, 1, { 0x00003284 } }, { 0x00003285, 1, { 0x00003285 } }, { 0x00003286, 1, { 0x00003286 } }, { 0x00003287, 1, { 0x00003287 } }, { 0x00003288, 1, { 0x00003288 } }, { 0x00003289, 1, { 0x00003289 } }, { 0x0000328a, 1, { 0x0000328a } }, { 0x0000328b, 1, { 0x0000328b } }, { 0x0000328c, 1, { 0x0000328c } }, { 0x0000328d, 1, { 0x0000328d } }, { 0x0000328e, 1, { 0x0000328e } }, { 0x0000328f, 1, { 0x0000328f } }, { 0x00003290, 1, { 0x00003290 } }, { 0x00003291, 1, { 0x00003291 } }, { 0x00003292, 1, { 0x00003292 } }, { 0x00003293, 1, { 0x00003293 } }, { 0x00003294, 1, { 0x00003294 } }, { 0x00003295, 1, { 0x00003295 } }, { 0x00003296, 1, { 0x00003296 } }, { 0x00003297, 1, { 0x00003297 } }, { 0x00003298, 1, { 0x00003298 } }, { 0x00003299, 1, { 0x00003299 } }, { 0x0000329a, 1, { 0x0000329a } }, { 0x0000329b, 1, { 0x0000329b } }, { 0x0000329c, 1, { 0x0000329c } }, { 0x0000329d, 1, { 0x0000329d } }, { 0x0000329e, 1, { 0x0000329e } }, { 0x0000329f, 1, { 0x0000329f } }, { 0x000032a0, 1, { 0x000032a0 } }, { 0x000032a1, 1, { 0x000032a1 } }, { 0x000032a2, 1, { 0x000032a2 } }, { 0x000032a3, 1, { 0x000032a3 } }, { 0x000032a4, 1, { 0x000032a4 } }, { 0x000032a5, 1, { 0x000032a5 } }, { 0x000032a6, 1, { 0x000032a6 } }, { 0x000032a7, 1, { 0x000032a7 } }, { 0x000032a8, 1, { 0x000032a8 } }, { 0x000032a9, 1, { 0x000032a9 } }, { 0x000032aa, 1, { 0x000032aa } }, { 0x000032ab, 1, { 0x000032ab } }, { 0x000032ac, 1, { 0x000032ac } }, { 0x000032ad, 1, { 0x000032ad } }, { 0x000032ae, 1, { 0x000032ae } }, { 0x000032af, 1, { 0x000032af } }, { 0x000032b0, 1, { 0x000032b0 } }, { 0x000032b1, 1, { 0x000032b1 } }, { 0x000032b2, 1, { 0x000032b2 } }, { 0x000032b3, 1, { 0x000032b3 } }, { 0x000032b4, 1, { 0x000032b4 } }, { 0x000032b5, 1, { 0x000032b5 } }, { 0x000032b6, 1, { 0x000032b6 } }, { 0x000032b7, 1, { 0x000032b7 } }, { 0x000032b8, 1, { 0x000032b8 } }, { 0x000032b9, 1, { 0x000032b9 } }, { 0x000032ba, 1, { 0x000032ba } }, { 0x000032bb, 1, { 0x000032bb } }, { 0x000032bc, 1, { 0x000032bc } }, { 0x000032bd, 1, { 0x000032bd } }, { 0x000032be, 1, { 0x000032be } }, { 0x000032bf, 1, { 0x000032bf } }, { 0x000032c0, 1, { 0x000032c0 } }, { 0x000032c1, 1, { 0x000032c1 } }, { 0x000032c2, 1, { 0x000032c2 } }, { 0x000032c3, 1, { 0x000032c3 } }, { 0x000032c4, 1, { 0x000032c4 } }, { 0x000032c5, 1, { 0x000032c5 } }, { 0x000032c6, 1, { 0x000032c6 } }, { 0x000032c7, 1, { 0x000032c7 } }, { 0x000032c8, 1, { 0x000032c8 } }, { 0x000032c9, 1, { 0x000032c9 } }, { 0x000032ca, 1, { 0x000032ca } }, { 0x000032cb, 1, { 0x000032cb } }, { 0x000032cc, 1, { 0x000032cc } }, { 0x000032cd, 1, { 0x000032cd } }, { 0x000032ce, 1, { 0x000032ce } }, { 0x000032cf, 1, { 0x000032cf } }, { 0x000032d0, 1, { 0x000032d0 } }, { 0x000032d1, 1, { 0x000032d1 } }, { 0x000032d2, 1, { 0x000032d2 } }, { 0x000032d3, 1, { 0x000032d3 } }, { 0x000032d4, 1, { 0x000032d4 } }, { 0x000032d5, 1, { 0x000032d5 } }, { 0x000032d6, 1, { 0x000032d6 } }, { 0x000032d7, 1, { 0x000032d7 } }, { 0x000032d8, 1, { 0x000032d8 } }, { 0x000032d9, 1, { 0x000032d9 } }, { 0x000032da, 1, { 0x000032da } }, { 0x000032db, 1, { 0x000032db } }, { 0x000032dc, 1, { 0x000032dc } }, { 0x000032dd, 1, { 0x000032dd } }, { 0x000032de, 1, { 0x000032de } }, { 0x000032df, 1, { 0x000032df } }, { 0x000032e0, 1, { 0x000032e0 } }, { 0x000032e1, 1, { 0x000032e1 } }, { 0x000032e2, 1, { 0x000032e2 } }, { 0x000032e3, 1, { 0x000032e3 } }, { 0x000032e4, 1, { 0x000032e4 } }, { 0x000032e5, 1, { 0x000032e5 } }, { 0x000032e6, 1, { 0x000032e6 } }, { 0x000032e7, 1, { 0x000032e7 } }, { 0x000032e8, 1, { 0x000032e8 } }, { 0x000032e9, 1, { 0x000032e9 } }, { 0x000032ea, 1, { 0x000032ea } }, { 0x000032eb, 1, { 0x000032eb } }, { 0x000032ec, 1, { 0x000032ec } }, { 0x000032ed, 1, { 0x000032ed } }, { 0x000032ee, 1, { 0x000032ee } }, { 0x000032ef, 1, { 0x000032ef } }, { 0x000032f0, 1, { 0x000032f0 } }, { 0x000032f1, 1, { 0x000032f1 } }, { 0x000032f2, 1, { 0x000032f2 } }, { 0x000032f3, 1, { 0x000032f3 } }, { 0x000032f4, 1, { 0x000032f4 } }, { 0x000032f5, 1, { 0x000032f5 } }, { 0x000032f6, 1, { 0x000032f6 } }, { 0x000032f7, 1, { 0x000032f7 } }, { 0x000032f8, 1, { 0x000032f8 } }, { 0x000032f9, 1, { 0x000032f9 } }, { 0x000032fa, 1, { 0x000032fa } }, { 0x000032fb, 1, { 0x000032fb } }, { 0x000032fc, 1, { 0x000032fc } }, { 0x000032fd, 1, { 0x000032fd } }, { 0x000032fe, 1, { 0x000032fe } }, { 0x00003300, 1, { 0x00003300 } }, { 0x00003301, 1, { 0x00003301 } }, { 0x00003302, 1, { 0x00003302 } }, { 0x00003303, 1, { 0x00003303 } }, { 0x00003304, 1, { 0x00003304 } }, { 0x00003305, 1, { 0x00003305 } }, { 0x00003306, 1, { 0x00003306 } }, { 0x00003307, 1, { 0x00003307 } }, { 0x00003308, 1, { 0x00003308 } }, { 0x00003309, 1, { 0x00003309 } }, { 0x0000330a, 1, { 0x0000330a } }, { 0x0000330b, 1, { 0x0000330b } }, { 0x0000330c, 1, { 0x0000330c } }, { 0x0000330d, 1, { 0x0000330d } }, { 0x0000330e, 1, { 0x0000330e } }, { 0x0000330f, 1, { 0x0000330f } }, { 0x00003310, 1, { 0x00003310 } }, { 0x00003311, 1, { 0x00003311 } }, { 0x00003312, 1, { 0x00003312 } }, { 0x00003313, 1, { 0x00003313 } }, { 0x00003314, 1, { 0x00003314 } }, { 0x00003315, 1, { 0x00003315 } }, { 0x00003316, 1, { 0x00003316 } }, { 0x00003317, 1, { 0x00003317 } }, { 0x00003318, 1, { 0x00003318 } }, { 0x00003319, 1, { 0x00003319 } }, { 0x0000331a, 1, { 0x0000331a } }, { 0x0000331b, 1, { 0x0000331b } }, { 0x0000331c, 1, { 0x0000331c } }, { 0x0000331d, 1, { 0x0000331d } }, { 0x0000331e, 1, { 0x0000331e } }, { 0x0000331f, 1, { 0x0000331f } }, { 0x00003320, 1, { 0x00003320 } }, { 0x00003321, 1, { 0x00003321 } }, { 0x00003322, 1, { 0x00003322 } }, { 0x00003323, 1, { 0x00003323 } }, { 0x00003324, 1, { 0x00003324 } }, { 0x00003325, 1, { 0x00003325 } }, { 0x00003326, 1, { 0x00003326 } }, { 0x00003327, 1, { 0x00003327 } }, { 0x00003328, 1, { 0x00003328 } }, { 0x00003329, 1, { 0x00003329 } }, { 0x0000332a, 1, { 0x0000332a } }, { 0x0000332b, 1, { 0x0000332b } }, { 0x0000332c, 1, { 0x0000332c } }, { 0x0000332d, 1, { 0x0000332d } }, { 0x0000332e, 1, { 0x0000332e } }, { 0x0000332f, 1, { 0x0000332f } }, { 0x00003330, 1, { 0x00003330 } }, { 0x00003331, 1, { 0x00003331 } }, { 0x00003332, 1, { 0x00003332 } }, { 0x00003333, 1, { 0x00003333 } }, { 0x00003334, 1, { 0x00003334 } }, { 0x00003335, 1, { 0x00003335 } }, { 0x00003336, 1, { 0x00003336 } }, { 0x00003337, 1, { 0x00003337 } }, { 0x00003338, 1, { 0x00003338 } }, { 0x00003339, 1, { 0x00003339 } }, { 0x0000333a, 1, { 0x0000333a } }, { 0x0000333b, 1, { 0x0000333b } }, { 0x0000333c, 1, { 0x0000333c } }, { 0x0000333d, 1, { 0x0000333d } }, { 0x0000333e, 1, { 0x0000333e } }, { 0x0000333f, 1, { 0x0000333f } }, { 0x00003340, 1, { 0x00003340 } }, { 0x00003341, 1, { 0x00003341 } }, { 0x00003342, 1, { 0x00003342 } }, { 0x00003343, 1, { 0x00003343 } }, { 0x00003344, 1, { 0x00003344 } }, { 0x00003345, 1, { 0x00003345 } }, { 0x00003346, 1, { 0x00003346 } }, { 0x00003347, 1, { 0x00003347 } }, { 0x00003348, 1, { 0x00003348 } }, { 0x00003349, 1, { 0x00003349 } }, { 0x0000334a, 1, { 0x0000334a } }, { 0x0000334b, 1, { 0x0000334b } }, { 0x0000334c, 1, { 0x0000334c } }, { 0x0000334d, 1, { 0x0000334d } }, { 0x0000334e, 1, { 0x0000334e } }, { 0x0000334f, 1, { 0x0000334f } }, { 0x00003350, 1, { 0x00003350 } }, { 0x00003351, 1, { 0x00003351 } }, { 0x00003352, 1, { 0x00003352 } }, { 0x00003353, 1, { 0x00003353 } }, { 0x00003354, 1, { 0x00003354 } }, { 0x00003355, 1, { 0x00003355 } }, { 0x00003356, 1, { 0x00003356 } }, { 0x00003357, 1, { 0x00003357 } }, { 0x00003358, 1, { 0x00003358 } }, { 0x00003359, 1, { 0x00003359 } }, { 0x0000335a, 1, { 0x0000335a } }, { 0x0000335b, 1, { 0x0000335b } }, { 0x0000335c, 1, { 0x0000335c } }, { 0x0000335d, 1, { 0x0000335d } }, { 0x0000335e, 1, { 0x0000335e } }, { 0x0000335f, 1, { 0x0000335f } }, { 0x00003360, 1, { 0x00003360 } }, { 0x00003361, 1, { 0x00003361 } }, { 0x00003362, 1, { 0x00003362 } }, { 0x00003363, 1, { 0x00003363 } }, { 0x00003364, 1, { 0x00003364 } }, { 0x00003365, 1, { 0x00003365 } }, { 0x00003366, 1, { 0x00003366 } }, { 0x00003367, 1, { 0x00003367 } }, { 0x00003368, 1, { 0x00003368 } }, { 0x00003369, 1, { 0x00003369 } }, { 0x0000336a, 1, { 0x0000336a } }, { 0x0000336b, 1, { 0x0000336b } }, { 0x0000336c, 1, { 0x0000336c } }, { 0x0000336d, 1, { 0x0000336d } }, { 0x0000336e, 1, { 0x0000336e } }, { 0x0000336f, 1, { 0x0000336f } }, { 0x00003370, 1, { 0x00003370 } }, { 0x00003371, 1, { 0x00003371 } }, { 0x00003372, 1, { 0x00003372 } }, { 0x00003373, 1, { 0x00003373 } }, { 0x00003374, 1, { 0x00003374 } }, { 0x00003375, 1, { 0x00003375 } }, { 0x00003376, 1, { 0x00003376 } }, { 0x00003377, 1, { 0x00003377 } }, { 0x00003378, 1, { 0x00003378 } }, { 0x00003379, 1, { 0x00003379 } }, { 0x0000337a, 1, { 0x0000337a } }, { 0x0000337b, 1, { 0x0000337b } }, { 0x0000337c, 1, { 0x0000337c } }, { 0x0000337d, 1, { 0x0000337d } }, { 0x0000337e, 1, { 0x0000337e } }, { 0x0000337f, 1, { 0x0000337f } }, { 0x00003380, 1, { 0x00003380 } }, { 0x00003381, 1, { 0x00003381 } }, { 0x00003382, 1, { 0x00003382 } }, { 0x00003383, 1, { 0x00003383 } }, { 0x00003384, 1, { 0x00003384 } }, { 0x00003385, 1, { 0x00003385 } }, { 0x00003386, 1, { 0x00003386 } }, { 0x00003387, 1, { 0x00003387 } }, { 0x00003388, 1, { 0x00003388 } }, { 0x00003389, 1, { 0x00003389 } }, { 0x0000338a, 1, { 0x0000338a } }, { 0x0000338b, 1, { 0x0000338b } }, { 0x0000338c, 1, { 0x0000338c } }, { 0x0000338d, 1, { 0x0000338d } }, { 0x0000338e, 1, { 0x0000338e } }, { 0x0000338f, 1, { 0x0000338f } }, { 0x00003390, 1, { 0x00003390 } }, { 0x00003391, 1, { 0x00003391 } }, { 0x00003392, 1, { 0x00003392 } }, { 0x00003393, 1, { 0x00003393 } }, { 0x00003394, 1, { 0x00003394 } }, { 0x00003395, 1, { 0x00003395 } }, { 0x00003396, 1, { 0x00003396 } }, { 0x00003397, 1, { 0x00003397 } }, { 0x00003398, 1, { 0x00003398 } }, { 0x00003399, 1, { 0x00003399 } }, { 0x0000339a, 1, { 0x0000339a } }, { 0x0000339b, 1, { 0x0000339b } }, { 0x0000339c, 1, { 0x0000339c } }, { 0x0000339d, 1, { 0x0000339d } }, { 0x0000339e, 1, { 0x0000339e } }, { 0x0000339f, 1, { 0x0000339f } }, { 0x000033a0, 1, { 0x000033a0 } }, { 0x000033a1, 1, { 0x000033a1 } }, { 0x000033a2, 1, { 0x000033a2 } }, { 0x000033a3, 1, { 0x000033a3 } }, { 0x000033a4, 1, { 0x000033a4 } }, { 0x000033a5, 1, { 0x000033a5 } }, { 0x000033a6, 1, { 0x000033a6 } }, { 0x000033a7, 1, { 0x000033a7 } }, { 0x000033a8, 1, { 0x000033a8 } }, { 0x000033a9, 1, { 0x000033a9 } }, { 0x000033aa, 1, { 0x000033aa } }, { 0x000033ab, 1, { 0x000033ab } }, { 0x000033ac, 1, { 0x000033ac } }, { 0x000033ad, 1, { 0x000033ad } }, { 0x000033ae, 1, { 0x000033ae } }, { 0x000033af, 1, { 0x000033af } }, { 0x000033b0, 1, { 0x000033b0 } }, { 0x000033b1, 1, { 0x000033b1 } }, { 0x000033b2, 1, { 0x000033b2 } }, { 0x000033b3, 1, { 0x000033b3 } }, { 0x000033b4, 1, { 0x000033b4 } }, { 0x000033b5, 1, { 0x000033b5 } }, { 0x000033b6, 1, { 0x000033b6 } }, { 0x000033b7, 1, { 0x000033b7 } }, { 0x000033b8, 1, { 0x000033b8 } }, { 0x000033b9, 1, { 0x000033b9 } }, { 0x000033ba, 1, { 0x000033ba } }, { 0x000033bb, 1, { 0x000033bb } }, { 0x000033bc, 1, { 0x000033bc } }, { 0x000033bd, 1, { 0x000033bd } }, { 0x000033be, 1, { 0x000033be } }, { 0x000033bf, 1, { 0x000033bf } }, { 0x000033c0, 1, { 0x000033c0 } }, { 0x000033c1, 1, { 0x000033c1 } }, { 0x000033c2, 1, { 0x000033c2 } }, { 0x000033c3, 1, { 0x000033c3 } }, { 0x000033c4, 1, { 0x000033c4 } }, { 0x000033c5, 1, { 0x000033c5 } }, { 0x000033c6, 1, { 0x000033c6 } }, { 0x000033c7, 1, { 0x000033c7 } }, { 0x000033c8, 1, { 0x000033c8 } }, { 0x000033c9, 1, { 0x000033c9 } }, { 0x000033ca, 1, { 0x000033ca } }, { 0x000033cb, 1, { 0x000033cb } }, { 0x000033cc, 1, { 0x000033cc } }, { 0x000033cd, 1, { 0x000033cd } }, { 0x000033ce, 1, { 0x000033ce } }, { 0x000033cf, 1, { 0x000033cf } }, { 0x000033d0, 1, { 0x000033d0 } }, { 0x000033d1, 1, { 0x000033d1 } }, { 0x000033d2, 1, { 0x000033d2 } }, { 0x000033d3, 1, { 0x000033d3 } }, { 0x000033d4, 1, { 0x000033d4 } }, { 0x000033d5, 1, { 0x000033d5 } }, { 0x000033d6, 1, { 0x000033d6 } }, { 0x000033d7, 1, { 0x000033d7 } }, { 0x000033d8, 1, { 0x000033d8 } }, { 0x000033d9, 1, { 0x000033d9 } }, { 0x000033da, 1, { 0x000033da } }, { 0x000033db, 1, { 0x000033db } }, { 0x000033dc, 1, { 0x000033dc } }, { 0x000033dd, 1, { 0x000033dd } }, { 0x000033de, 1, { 0x000033de } }, { 0x000033df, 1, { 0x000033df } }, { 0x000033e0, 1, { 0x000033e0 } }, { 0x000033e1, 1, { 0x000033e1 } }, { 0x000033e2, 1, { 0x000033e2 } }, { 0x000033e3, 1, { 0x000033e3 } }, { 0x000033e4, 1, { 0x000033e4 } }, { 0x000033e5, 1, { 0x000033e5 } }, { 0x000033e6, 1, { 0x000033e6 } }, { 0x000033e7, 1, { 0x000033e7 } }, { 0x000033e8, 1, { 0x000033e8 } }, { 0x000033e9, 1, { 0x000033e9 } }, { 0x000033ea, 1, { 0x000033ea } }, { 0x000033eb, 1, { 0x000033eb } }, { 0x000033ec, 1, { 0x000033ec } }, { 0x000033ed, 1, { 0x000033ed } }, { 0x000033ee, 1, { 0x000033ee } }, { 0x000033ef, 1, { 0x000033ef } }, { 0x000033f0, 1, { 0x000033f0 } }, { 0x000033f1, 1, { 0x000033f1 } }, { 0x000033f2, 1, { 0x000033f2 } }, { 0x000033f3, 1, { 0x000033f3 } }, { 0x000033f4, 1, { 0x000033f4 } }, { 0x000033f5, 1, { 0x000033f5 } }, { 0x000033f6, 1, { 0x000033f6 } }, { 0x000033f7, 1, { 0x000033f7 } }, { 0x000033f8, 1, { 0x000033f8 } }, { 0x000033f9, 1, { 0x000033f9 } }, { 0x000033fa, 1, { 0x000033fa } }, { 0x000033fb, 1, { 0x000033fb } }, { 0x000033fc, 1, { 0x000033fc } }, { 0x000033fd, 1, { 0x000033fd } }, { 0x000033fe, 1, { 0x000033fe } }, { 0x000033ff, 1, { 0x000033ff } }, { 0x00003400, 1, { 0x00003400 } }, { 0x00004db5, 1, { 0x00004db5 } }, { 0x00004dc0, 1, { 0x00004dc0 } }, { 0x00004dc1, 1, { 0x00004dc1 } }, { 0x00004dc2, 1, { 0x00004dc2 } }, { 0x00004dc3, 1, { 0x00004dc3 } }, { 0x00004dc4, 1, { 0x00004dc4 } }, { 0x00004dc5, 1, { 0x00004dc5 } }, { 0x00004dc6, 1, { 0x00004dc6 } }, { 0x00004dc7, 1, { 0x00004dc7 } }, { 0x00004dc8, 1, { 0x00004dc8 } }, { 0x00004dc9, 1, { 0x00004dc9 } }, { 0x00004dca, 1, { 0x00004dca } }, { 0x00004dcb, 1, { 0x00004dcb } }, { 0x00004dcc, 1, { 0x00004dcc } }, { 0x00004dcd, 1, { 0x00004dcd } }, { 0x00004dce, 1, { 0x00004dce } }, { 0x00004dcf, 1, { 0x00004dcf } }, { 0x00004dd0, 1, { 0x00004dd0 } }, { 0x00004dd1, 1, { 0x00004dd1 } }, { 0x00004dd2, 1, { 0x00004dd2 } }, { 0x00004dd3, 1, { 0x00004dd3 } }, { 0x00004dd4, 1, { 0x00004dd4 } }, { 0x00004dd5, 1, { 0x00004dd5 } }, { 0x00004dd6, 1, { 0x00004dd6 } }, { 0x00004dd7, 1, { 0x00004dd7 } }, { 0x00004dd8, 1, { 0x00004dd8 } }, { 0x00004dd9, 1, { 0x00004dd9 } }, { 0x00004dda, 1, { 0x00004dda } }, { 0x00004ddb, 1, { 0x00004ddb } }, { 0x00004ddc, 1, { 0x00004ddc } }, { 0x00004ddd, 1, { 0x00004ddd } }, { 0x00004dde, 1, { 0x00004dde } }, { 0x00004ddf, 1, { 0x00004ddf } }, { 0x00004de0, 1, { 0x00004de0 } }, { 0x00004de1, 1, { 0x00004de1 } }, { 0x00004de2, 1, { 0x00004de2 } }, { 0x00004de3, 1, { 0x00004de3 } }, { 0x00004de4, 1, { 0x00004de4 } }, { 0x00004de5, 1, { 0x00004de5 } }, { 0x00004de6, 1, { 0x00004de6 } }, { 0x00004de7, 1, { 0x00004de7 } }, { 0x00004de8, 1, { 0x00004de8 } }, { 0x00004de9, 1, { 0x00004de9 } }, { 0x00004dea, 1, { 0x00004dea } }, { 0x00004deb, 1, { 0x00004deb } }, { 0x00004dec, 1, { 0x00004dec } }, { 0x00004ded, 1, { 0x00004ded } }, { 0x00004dee, 1, { 0x00004dee } }, { 0x00004def, 1, { 0x00004def } }, { 0x00004df0, 1, { 0x00004df0 } }, { 0x00004df1, 1, { 0x00004df1 } }, { 0x00004df2, 1, { 0x00004df2 } }, { 0x00004df3, 1, { 0x00004df3 } }, { 0x00004df4, 1, { 0x00004df4 } }, { 0x00004df5, 1, { 0x00004df5 } }, { 0x00004df6, 1, { 0x00004df6 } }, { 0x00004df7, 1, { 0x00004df7 } }, { 0x00004df8, 1, { 0x00004df8 } }, { 0x00004df9, 1, { 0x00004df9 } }, { 0x00004dfa, 1, { 0x00004dfa } }, { 0x00004dfb, 1, { 0x00004dfb } }, { 0x00004dfc, 1, { 0x00004dfc } }, { 0x00004dfd, 1, { 0x00004dfd } }, { 0x00004dfe, 1, { 0x00004dfe } }, { 0x00004dff, 1, { 0x00004dff } }, { 0x00004e00, 1, { 0x00004e00 } }, { 0x00009fd5, 1, { 0x00009fd5 } }, { 0x0000a000, 1, { 0x0000a000 } }, { 0x0000a001, 1, { 0x0000a001 } }, { 0x0000a002, 1, { 0x0000a002 } }, { 0x0000a003, 1, { 0x0000a003 } }, { 0x0000a004, 1, { 0x0000a004 } }, { 0x0000a005, 1, { 0x0000a005 } }, { 0x0000a006, 1, { 0x0000a006 } }, { 0x0000a007, 1, { 0x0000a007 } }, { 0x0000a008, 1, { 0x0000a008 } }, { 0x0000a009, 1, { 0x0000a009 } }, { 0x0000a00a, 1, { 0x0000a00a } }, { 0x0000a00b, 1, { 0x0000a00b } }, { 0x0000a00c, 1, { 0x0000a00c } }, { 0x0000a00d, 1, { 0x0000a00d } }, { 0x0000a00e, 1, { 0x0000a00e } }, { 0x0000a00f, 1, { 0x0000a00f } }, { 0x0000a010, 1, { 0x0000a010 } }, { 0x0000a011, 1, { 0x0000a011 } }, { 0x0000a012, 1, { 0x0000a012 } }, { 0x0000a013, 1, { 0x0000a013 } }, { 0x0000a014, 1, { 0x0000a014 } }, { 0x0000a015, 1, { 0x0000a015 } }, { 0x0000a016, 1, { 0x0000a016 } }, { 0x0000a017, 1, { 0x0000a017 } }, { 0x0000a018, 1, { 0x0000a018 } }, { 0x0000a019, 1, { 0x0000a019 } }, { 0x0000a01a, 1, { 0x0000a01a } }, { 0x0000a01b, 1, { 0x0000a01b } }, { 0x0000a01c, 1, { 0x0000a01c } }, { 0x0000a01d, 1, { 0x0000a01d } }, { 0x0000a01e, 1, { 0x0000a01e } }, { 0x0000a01f, 1, { 0x0000a01f } }, { 0x0000a020, 1, { 0x0000a020 } }, { 0x0000a021, 1, { 0x0000a021 } }, { 0x0000a022, 1, { 0x0000a022 } }, { 0x0000a023, 1, { 0x0000a023 } }, { 0x0000a024, 1, { 0x0000a024 } }, { 0x0000a025, 1, { 0x0000a025 } }, { 0x0000a026, 1, { 0x0000a026 } }, { 0x0000a027, 1, { 0x0000a027 } }, { 0x0000a028, 1, { 0x0000a028 } }, { 0x0000a029, 1, { 0x0000a029 } }, { 0x0000a02a, 1, { 0x0000a02a } }, { 0x0000a02b, 1, { 0x0000a02b } }, { 0x0000a02c, 1, { 0x0000a02c } }, { 0x0000a02d, 1, { 0x0000a02d } }, { 0x0000a02e, 1, { 0x0000a02e } }, { 0x0000a02f, 1, { 0x0000a02f } }, { 0x0000a030, 1, { 0x0000a030 } }, { 0x0000a031, 1, { 0x0000a031 } }, { 0x0000a032, 1, { 0x0000a032 } }, { 0x0000a033, 1, { 0x0000a033 } }, { 0x0000a034, 1, { 0x0000a034 } }, { 0x0000a035, 1, { 0x0000a035 } }, { 0x0000a036, 1, { 0x0000a036 } }, { 0x0000a037, 1, { 0x0000a037 } }, { 0x0000a038, 1, { 0x0000a038 } }, { 0x0000a039, 1, { 0x0000a039 } }, { 0x0000a03a, 1, { 0x0000a03a } }, { 0x0000a03b, 1, { 0x0000a03b } }, { 0x0000a03c, 1, { 0x0000a03c } }, { 0x0000a03d, 1, { 0x0000a03d } }, { 0x0000a03e, 1, { 0x0000a03e } }, { 0x0000a03f, 1, { 0x0000a03f } }, { 0x0000a040, 1, { 0x0000a040 } }, { 0x0000a041, 1, { 0x0000a041 } }, { 0x0000a042, 1, { 0x0000a042 } }, { 0x0000a043, 1, { 0x0000a043 } }, { 0x0000a044, 1, { 0x0000a044 } }, { 0x0000a045, 1, { 0x0000a045 } }, { 0x0000a046, 1, { 0x0000a046 } }, { 0x0000a047, 1, { 0x0000a047 } }, { 0x0000a048, 1, { 0x0000a048 } }, { 0x0000a049, 1, { 0x0000a049 } }, { 0x0000a04a, 1, { 0x0000a04a } }, { 0x0000a04b, 1, { 0x0000a04b } }, { 0x0000a04c, 1, { 0x0000a04c } }, { 0x0000a04d, 1, { 0x0000a04d } }, { 0x0000a04e, 1, { 0x0000a04e } }, { 0x0000a04f, 1, { 0x0000a04f } }, { 0x0000a050, 1, { 0x0000a050 } }, { 0x0000a051, 1, { 0x0000a051 } }, { 0x0000a052, 1, { 0x0000a052 } }, { 0x0000a053, 1, { 0x0000a053 } }, { 0x0000a054, 1, { 0x0000a054 } }, { 0x0000a055, 1, { 0x0000a055 } }, { 0x0000a056, 1, { 0x0000a056 } }, { 0x0000a057, 1, { 0x0000a057 } }, { 0x0000a058, 1, { 0x0000a058 } }, { 0x0000a059, 1, { 0x0000a059 } }, { 0x0000a05a, 1, { 0x0000a05a } }, { 0x0000a05b, 1, { 0x0000a05b } }, { 0x0000a05c, 1, { 0x0000a05c } }, { 0x0000a05d, 1, { 0x0000a05d } }, { 0x0000a05e, 1, { 0x0000a05e } }, { 0x0000a05f, 1, { 0x0000a05f } }, { 0x0000a060, 1, { 0x0000a060 } }, { 0x0000a061, 1, { 0x0000a061 } }, { 0x0000a062, 1, { 0x0000a062 } }, { 0x0000a063, 1, { 0x0000a063 } }, { 0x0000a064, 1, { 0x0000a064 } }, { 0x0000a065, 1, { 0x0000a065 } }, { 0x0000a066, 1, { 0x0000a066 } }, { 0x0000a067, 1, { 0x0000a067 } }, { 0x0000a068, 1, { 0x0000a068 } }, { 0x0000a069, 1, { 0x0000a069 } }, { 0x0000a06a, 1, { 0x0000a06a } }, { 0x0000a06b, 1, { 0x0000a06b } }, { 0x0000a06c, 1, { 0x0000a06c } }, { 0x0000a06d, 1, { 0x0000a06d } }, { 0x0000a06e, 1, { 0x0000a06e } }, { 0x0000a06f, 1, { 0x0000a06f } }, { 0x0000a070, 1, { 0x0000a070 } }, { 0x0000a071, 1, { 0x0000a071 } }, { 0x0000a072, 1, { 0x0000a072 } }, { 0x0000a073, 1, { 0x0000a073 } }, { 0x0000a074, 1, { 0x0000a074 } }, { 0x0000a075, 1, { 0x0000a075 } }, { 0x0000a076, 1, { 0x0000a076 } }, { 0x0000a077, 1, { 0x0000a077 } }, { 0x0000a078, 1, { 0x0000a078 } }, { 0x0000a079, 1, { 0x0000a079 } }, { 0x0000a07a, 1, { 0x0000a07a } }, { 0x0000a07b, 1, { 0x0000a07b } }, { 0x0000a07c, 1, { 0x0000a07c } }, { 0x0000a07d, 1, { 0x0000a07d } }, { 0x0000a07e, 1, { 0x0000a07e } }, { 0x0000a07f, 1, { 0x0000a07f } }, { 0x0000a080, 1, { 0x0000a080 } }, { 0x0000a081, 1, { 0x0000a081 } }, { 0x0000a082, 1, { 0x0000a082 } }, { 0x0000a083, 1, { 0x0000a083 } }, { 0x0000a084, 1, { 0x0000a084 } }, { 0x0000a085, 1, { 0x0000a085 } }, { 0x0000a086, 1, { 0x0000a086 } }, { 0x0000a087, 1, { 0x0000a087 } }, { 0x0000a088, 1, { 0x0000a088 } }, { 0x0000a089, 1, { 0x0000a089 } }, { 0x0000a08a, 1, { 0x0000a08a } }, { 0x0000a08b, 1, { 0x0000a08b } }, { 0x0000a08c, 1, { 0x0000a08c } }, { 0x0000a08d, 1, { 0x0000a08d } }, { 0x0000a08e, 1, { 0x0000a08e } }, { 0x0000a08f, 1, { 0x0000a08f } }, { 0x0000a090, 1, { 0x0000a090 } }, { 0x0000a091, 1, { 0x0000a091 } }, { 0x0000a092, 1, { 0x0000a092 } }, { 0x0000a093, 1, { 0x0000a093 } }, { 0x0000a094, 1, { 0x0000a094 } }, { 0x0000a095, 1, { 0x0000a095 } }, { 0x0000a096, 1, { 0x0000a096 } }, { 0x0000a097, 1, { 0x0000a097 } }, { 0x0000a098, 1, { 0x0000a098 } }, { 0x0000a099, 1, { 0x0000a099 } }, { 0x0000a09a, 1, { 0x0000a09a } }, { 0x0000a09b, 1, { 0x0000a09b } }, { 0x0000a09c, 1, { 0x0000a09c } }, { 0x0000a09d, 1, { 0x0000a09d } }, { 0x0000a09e, 1, { 0x0000a09e } }, { 0x0000a09f, 1, { 0x0000a09f } }, { 0x0000a0a0, 1, { 0x0000a0a0 } }, { 0x0000a0a1, 1, { 0x0000a0a1 } }, { 0x0000a0a2, 1, { 0x0000a0a2 } }, { 0x0000a0a3, 1, { 0x0000a0a3 } }, { 0x0000a0a4, 1, { 0x0000a0a4 } }, { 0x0000a0a5, 1, { 0x0000a0a5 } }, { 0x0000a0a6, 1, { 0x0000a0a6 } }, { 0x0000a0a7, 1, { 0x0000a0a7 } }, { 0x0000a0a8, 1, { 0x0000a0a8 } }, { 0x0000a0a9, 1, { 0x0000a0a9 } }, { 0x0000a0aa, 1, { 0x0000a0aa } }, { 0x0000a0ab, 1, { 0x0000a0ab } }, { 0x0000a0ac, 1, { 0x0000a0ac } }, { 0x0000a0ad, 1, { 0x0000a0ad } }, { 0x0000a0ae, 1, { 0x0000a0ae } }, { 0x0000a0af, 1, { 0x0000a0af } }, { 0x0000a0b0, 1, { 0x0000a0b0 } }, { 0x0000a0b1, 1, { 0x0000a0b1 } }, { 0x0000a0b2, 1, { 0x0000a0b2 } }, { 0x0000a0b3, 1, { 0x0000a0b3 } }, { 0x0000a0b4, 1, { 0x0000a0b4 } }, { 0x0000a0b5, 1, { 0x0000a0b5 } }, { 0x0000a0b6, 1, { 0x0000a0b6 } }, { 0x0000a0b7, 1, { 0x0000a0b7 } }, { 0x0000a0b8, 1, { 0x0000a0b8 } }, { 0x0000a0b9, 1, { 0x0000a0b9 } }, { 0x0000a0ba, 1, { 0x0000a0ba } }, { 0x0000a0bb, 1, { 0x0000a0bb } }, { 0x0000a0bc, 1, { 0x0000a0bc } }, { 0x0000a0bd, 1, { 0x0000a0bd } }, { 0x0000a0be, 1, { 0x0000a0be } }, { 0x0000a0bf, 1, { 0x0000a0bf } }, { 0x0000a0c0, 1, { 0x0000a0c0 } }, { 0x0000a0c1, 1, { 0x0000a0c1 } }, { 0x0000a0c2, 1, { 0x0000a0c2 } }, { 0x0000a0c3, 1, { 0x0000a0c3 } }, { 0x0000a0c4, 1, { 0x0000a0c4 } }, { 0x0000a0c5, 1, { 0x0000a0c5 } }, { 0x0000a0c6, 1, { 0x0000a0c6 } }, { 0x0000a0c7, 1, { 0x0000a0c7 } }, { 0x0000a0c8, 1, { 0x0000a0c8 } }, { 0x0000a0c9, 1, { 0x0000a0c9 } }, { 0x0000a0ca, 1, { 0x0000a0ca } }, { 0x0000a0cb, 1, { 0x0000a0cb } }, { 0x0000a0cc, 1, { 0x0000a0cc } }, { 0x0000a0cd, 1, { 0x0000a0cd } }, { 0x0000a0ce, 1, { 0x0000a0ce } }, { 0x0000a0cf, 1, { 0x0000a0cf } }, { 0x0000a0d0, 1, { 0x0000a0d0 } }, { 0x0000a0d1, 1, { 0x0000a0d1 } }, { 0x0000a0d2, 1, { 0x0000a0d2 } }, { 0x0000a0d3, 1, { 0x0000a0d3 } }, { 0x0000a0d4, 1, { 0x0000a0d4 } }, { 0x0000a0d5, 1, { 0x0000a0d5 } }, { 0x0000a0d6, 1, { 0x0000a0d6 } }, { 0x0000a0d7, 1, { 0x0000a0d7 } }, { 0x0000a0d8, 1, { 0x0000a0d8 } }, { 0x0000a0d9, 1, { 0x0000a0d9 } }, { 0x0000a0da, 1, { 0x0000a0da } }, { 0x0000a0db, 1, { 0x0000a0db } }, { 0x0000a0dc, 1, { 0x0000a0dc } }, { 0x0000a0dd, 1, { 0x0000a0dd } }, { 0x0000a0de, 1, { 0x0000a0de } }, { 0x0000a0df, 1, { 0x0000a0df } }, { 0x0000a0e0, 1, { 0x0000a0e0 } }, { 0x0000a0e1, 1, { 0x0000a0e1 } }, { 0x0000a0e2, 1, { 0x0000a0e2 } }, { 0x0000a0e3, 1, { 0x0000a0e3 } }, { 0x0000a0e4, 1, { 0x0000a0e4 } }, { 0x0000a0e5, 1, { 0x0000a0e5 } }, { 0x0000a0e6, 1, { 0x0000a0e6 } }, { 0x0000a0e7, 1, { 0x0000a0e7 } }, { 0x0000a0e8, 1, { 0x0000a0e8 } }, { 0x0000a0e9, 1, { 0x0000a0e9 } }, { 0x0000a0ea, 1, { 0x0000a0ea } }, { 0x0000a0eb, 1, { 0x0000a0eb } }, { 0x0000a0ec, 1, { 0x0000a0ec } }, { 0x0000a0ed, 1, { 0x0000a0ed } }, { 0x0000a0ee, 1, { 0x0000a0ee } }, { 0x0000a0ef, 1, { 0x0000a0ef } }, { 0x0000a0f0, 1, { 0x0000a0f0 } }, { 0x0000a0f1, 1, { 0x0000a0f1 } }, { 0x0000a0f2, 1, { 0x0000a0f2 } }, { 0x0000a0f3, 1, { 0x0000a0f3 } }, { 0x0000a0f4, 1, { 0x0000a0f4 } }, { 0x0000a0f5, 1, { 0x0000a0f5 } }, { 0x0000a0f6, 1, { 0x0000a0f6 } }, { 0x0000a0f7, 1, { 0x0000a0f7 } }, { 0x0000a0f8, 1, { 0x0000a0f8 } }, { 0x0000a0f9, 1, { 0x0000a0f9 } }, { 0x0000a0fa, 1, { 0x0000a0fa } }, { 0x0000a0fb, 1, { 0x0000a0fb } }, { 0x0000a0fc, 1, { 0x0000a0fc } }, { 0x0000a0fd, 1, { 0x0000a0fd } }, { 0x0000a0fe, 1, { 0x0000a0fe } }, { 0x0000a0ff, 1, { 0x0000a0ff } }, { 0x0000a100, 1, { 0x0000a100 } }, { 0x0000a101, 1, { 0x0000a101 } }, { 0x0000a102, 1, { 0x0000a102 } }, { 0x0000a103, 1, { 0x0000a103 } }, { 0x0000a104, 1, { 0x0000a104 } }, { 0x0000a105, 1, { 0x0000a105 } }, { 0x0000a106, 1, { 0x0000a106 } }, { 0x0000a107, 1, { 0x0000a107 } }, { 0x0000a108, 1, { 0x0000a108 } }, { 0x0000a109, 1, { 0x0000a109 } }, { 0x0000a10a, 1, { 0x0000a10a } }, { 0x0000a10b, 1, { 0x0000a10b } }, { 0x0000a10c, 1, { 0x0000a10c } }, { 0x0000a10d, 1, { 0x0000a10d } }, { 0x0000a10e, 1, { 0x0000a10e } }, { 0x0000a10f, 1, { 0x0000a10f } }, { 0x0000a110, 1, { 0x0000a110 } }, { 0x0000a111, 1, { 0x0000a111 } }, { 0x0000a112, 1, { 0x0000a112 } }, { 0x0000a113, 1, { 0x0000a113 } }, { 0x0000a114, 1, { 0x0000a114 } }, { 0x0000a115, 1, { 0x0000a115 } }, { 0x0000a116, 1, { 0x0000a116 } }, { 0x0000a117, 1, { 0x0000a117 } }, { 0x0000a118, 1, { 0x0000a118 } }, { 0x0000a119, 1, { 0x0000a119 } }, { 0x0000a11a, 1, { 0x0000a11a } }, { 0x0000a11b, 1, { 0x0000a11b } }, { 0x0000a11c, 1, { 0x0000a11c } }, { 0x0000a11d, 1, { 0x0000a11d } }, { 0x0000a11e, 1, { 0x0000a11e } }, { 0x0000a11f, 1, { 0x0000a11f } }, { 0x0000a120, 1, { 0x0000a120 } }, { 0x0000a121, 1, { 0x0000a121 } }, { 0x0000a122, 1, { 0x0000a122 } }, { 0x0000a123, 1, { 0x0000a123 } }, { 0x0000a124, 1, { 0x0000a124 } }, { 0x0000a125, 1, { 0x0000a125 } }, { 0x0000a126, 1, { 0x0000a126 } }, { 0x0000a127, 1, { 0x0000a127 } }, { 0x0000a128, 1, { 0x0000a128 } }, { 0x0000a129, 1, { 0x0000a129 } }, { 0x0000a12a, 1, { 0x0000a12a } }, { 0x0000a12b, 1, { 0x0000a12b } }, { 0x0000a12c, 1, { 0x0000a12c } }, { 0x0000a12d, 1, { 0x0000a12d } }, { 0x0000a12e, 1, { 0x0000a12e } }, { 0x0000a12f, 1, { 0x0000a12f } }, { 0x0000a130, 1, { 0x0000a130 } }, { 0x0000a131, 1, { 0x0000a131 } }, { 0x0000a132, 1, { 0x0000a132 } }, { 0x0000a133, 1, { 0x0000a133 } }, { 0x0000a134, 1, { 0x0000a134 } }, { 0x0000a135, 1, { 0x0000a135 } }, { 0x0000a136, 1, { 0x0000a136 } }, { 0x0000a137, 1, { 0x0000a137 } }, { 0x0000a138, 1, { 0x0000a138 } }, { 0x0000a139, 1, { 0x0000a139 } }, { 0x0000a13a, 1, { 0x0000a13a } }, { 0x0000a13b, 1, { 0x0000a13b } }, { 0x0000a13c, 1, { 0x0000a13c } }, { 0x0000a13d, 1, { 0x0000a13d } }, { 0x0000a13e, 1, { 0x0000a13e } }, { 0x0000a13f, 1, { 0x0000a13f } }, { 0x0000a140, 1, { 0x0000a140 } }, { 0x0000a141, 1, { 0x0000a141 } }, { 0x0000a142, 1, { 0x0000a142 } }, { 0x0000a143, 1, { 0x0000a143 } }, { 0x0000a144, 1, { 0x0000a144 } }, { 0x0000a145, 1, { 0x0000a145 } }, { 0x0000a146, 1, { 0x0000a146 } }, { 0x0000a147, 1, { 0x0000a147 } }, { 0x0000a148, 1, { 0x0000a148 } }, { 0x0000a149, 1, { 0x0000a149 } }, { 0x0000a14a, 1, { 0x0000a14a } }, { 0x0000a14b, 1, { 0x0000a14b } }, { 0x0000a14c, 1, { 0x0000a14c } }, { 0x0000a14d, 1, { 0x0000a14d } }, { 0x0000a14e, 1, { 0x0000a14e } }, { 0x0000a14f, 1, { 0x0000a14f } }, { 0x0000a150, 1, { 0x0000a150 } }, { 0x0000a151, 1, { 0x0000a151 } }, { 0x0000a152, 1, { 0x0000a152 } }, { 0x0000a153, 1, { 0x0000a153 } }, { 0x0000a154, 1, { 0x0000a154 } }, { 0x0000a155, 1, { 0x0000a155 } }, { 0x0000a156, 1, { 0x0000a156 } }, { 0x0000a157, 1, { 0x0000a157 } }, { 0x0000a158, 1, { 0x0000a158 } }, { 0x0000a159, 1, { 0x0000a159 } }, { 0x0000a15a, 1, { 0x0000a15a } }, { 0x0000a15b, 1, { 0x0000a15b } }, { 0x0000a15c, 1, { 0x0000a15c } }, { 0x0000a15d, 1, { 0x0000a15d } }, { 0x0000a15e, 1, { 0x0000a15e } }, { 0x0000a15f, 1, { 0x0000a15f } }, { 0x0000a160, 1, { 0x0000a160 } }, { 0x0000a161, 1, { 0x0000a161 } }, { 0x0000a162, 1, { 0x0000a162 } }, { 0x0000a163, 1, { 0x0000a163 } }, { 0x0000a164, 1, { 0x0000a164 } }, { 0x0000a165, 1, { 0x0000a165 } }, { 0x0000a166, 1, { 0x0000a166 } }, { 0x0000a167, 1, { 0x0000a167 } }, { 0x0000a168, 1, { 0x0000a168 } }, { 0x0000a169, 1, { 0x0000a169 } }, { 0x0000a16a, 1, { 0x0000a16a } }, { 0x0000a16b, 1, { 0x0000a16b } }, { 0x0000a16c, 1, { 0x0000a16c } }, { 0x0000a16d, 1, { 0x0000a16d } }, { 0x0000a16e, 1, { 0x0000a16e } }, { 0x0000a16f, 1, { 0x0000a16f } }, { 0x0000a170, 1, { 0x0000a170 } }, { 0x0000a171, 1, { 0x0000a171 } }, { 0x0000a172, 1, { 0x0000a172 } }, { 0x0000a173, 1, { 0x0000a173 } }, { 0x0000a174, 1, { 0x0000a174 } }, { 0x0000a175, 1, { 0x0000a175 } }, { 0x0000a176, 1, { 0x0000a176 } }, { 0x0000a177, 1, { 0x0000a177 } }, { 0x0000a178, 1, { 0x0000a178 } }, { 0x0000a179, 1, { 0x0000a179 } }, { 0x0000a17a, 1, { 0x0000a17a } }, { 0x0000a17b, 1, { 0x0000a17b } }, { 0x0000a17c, 1, { 0x0000a17c } }, { 0x0000a17d, 1, { 0x0000a17d } }, { 0x0000a17e, 1, { 0x0000a17e } }, { 0x0000a17f, 1, { 0x0000a17f } }, { 0x0000a180, 1, { 0x0000a180 } }, { 0x0000a181, 1, { 0x0000a181 } }, { 0x0000a182, 1, { 0x0000a182 } }, { 0x0000a183, 1, { 0x0000a183 } }, { 0x0000a184, 1, { 0x0000a184 } }, { 0x0000a185, 1, { 0x0000a185 } }, { 0x0000a186, 1, { 0x0000a186 } }, { 0x0000a187, 1, { 0x0000a187 } }, { 0x0000a188, 1, { 0x0000a188 } }, { 0x0000a189, 1, { 0x0000a189 } }, { 0x0000a18a, 1, { 0x0000a18a } }, { 0x0000a18b, 1, { 0x0000a18b } }, { 0x0000a18c, 1, { 0x0000a18c } }, { 0x0000a18d, 1, { 0x0000a18d } }, { 0x0000a18e, 1, { 0x0000a18e } }, { 0x0000a18f, 1, { 0x0000a18f } }, { 0x0000a190, 1, { 0x0000a190 } }, { 0x0000a191, 1, { 0x0000a191 } }, { 0x0000a192, 1, { 0x0000a192 } }, { 0x0000a193, 1, { 0x0000a193 } }, { 0x0000a194, 1, { 0x0000a194 } }, { 0x0000a195, 1, { 0x0000a195 } }, { 0x0000a196, 1, { 0x0000a196 } }, { 0x0000a197, 1, { 0x0000a197 } }, { 0x0000a198, 1, { 0x0000a198 } }, { 0x0000a199, 1, { 0x0000a199 } }, { 0x0000a19a, 1, { 0x0000a19a } }, { 0x0000a19b, 1, { 0x0000a19b } }, { 0x0000a19c, 1, { 0x0000a19c } }, { 0x0000a19d, 1, { 0x0000a19d } }, { 0x0000a19e, 1, { 0x0000a19e } }, { 0x0000a19f, 1, { 0x0000a19f } }, { 0x0000a1a0, 1, { 0x0000a1a0 } }, { 0x0000a1a1, 1, { 0x0000a1a1 } }, { 0x0000a1a2, 1, { 0x0000a1a2 } }, { 0x0000a1a3, 1, { 0x0000a1a3 } }, { 0x0000a1a4, 1, { 0x0000a1a4 } }, { 0x0000a1a5, 1, { 0x0000a1a5 } }, { 0x0000a1a6, 1, { 0x0000a1a6 } }, { 0x0000a1a7, 1, { 0x0000a1a7 } }, { 0x0000a1a8, 1, { 0x0000a1a8 } }, { 0x0000a1a9, 1, { 0x0000a1a9 } }, { 0x0000a1aa, 1, { 0x0000a1aa } }, { 0x0000a1ab, 1, { 0x0000a1ab } }, { 0x0000a1ac, 1, { 0x0000a1ac } }, { 0x0000a1ad, 1, { 0x0000a1ad } }, { 0x0000a1ae, 1, { 0x0000a1ae } }, { 0x0000a1af, 1, { 0x0000a1af } }, { 0x0000a1b0, 1, { 0x0000a1b0 } }, { 0x0000a1b1, 1, { 0x0000a1b1 } }, { 0x0000a1b2, 1, { 0x0000a1b2 } }, { 0x0000a1b3, 1, { 0x0000a1b3 } }, { 0x0000a1b4, 1, { 0x0000a1b4 } }, { 0x0000a1b5, 1, { 0x0000a1b5 } }, { 0x0000a1b6, 1, { 0x0000a1b6 } }, { 0x0000a1b7, 1, { 0x0000a1b7 } }, { 0x0000a1b8, 1, { 0x0000a1b8 } }, { 0x0000a1b9, 1, { 0x0000a1b9 } }, { 0x0000a1ba, 1, { 0x0000a1ba } }, { 0x0000a1bb, 1, { 0x0000a1bb } }, { 0x0000a1bc, 1, { 0x0000a1bc } }, { 0x0000a1bd, 1, { 0x0000a1bd } }, { 0x0000a1be, 1, { 0x0000a1be } }, { 0x0000a1bf, 1, { 0x0000a1bf } }, { 0x0000a1c0, 1, { 0x0000a1c0 } }, { 0x0000a1c1, 1, { 0x0000a1c1 } }, { 0x0000a1c2, 1, { 0x0000a1c2 } }, { 0x0000a1c3, 1, { 0x0000a1c3 } }, { 0x0000a1c4, 1, { 0x0000a1c4 } }, { 0x0000a1c5, 1, { 0x0000a1c5 } }, { 0x0000a1c6, 1, { 0x0000a1c6 } }, { 0x0000a1c7, 1, { 0x0000a1c7 } }, { 0x0000a1c8, 1, { 0x0000a1c8 } }, { 0x0000a1c9, 1, { 0x0000a1c9 } }, { 0x0000a1ca, 1, { 0x0000a1ca } }, { 0x0000a1cb, 1, { 0x0000a1cb } }, { 0x0000a1cc, 1, { 0x0000a1cc } }, { 0x0000a1cd, 1, { 0x0000a1cd } }, { 0x0000a1ce, 1, { 0x0000a1ce } }, { 0x0000a1cf, 1, { 0x0000a1cf } }, { 0x0000a1d0, 1, { 0x0000a1d0 } }, { 0x0000a1d1, 1, { 0x0000a1d1 } }, { 0x0000a1d2, 1, { 0x0000a1d2 } }, { 0x0000a1d3, 1, { 0x0000a1d3 } }, { 0x0000a1d4, 1, { 0x0000a1d4 } }, { 0x0000a1d5, 1, { 0x0000a1d5 } }, { 0x0000a1d6, 1, { 0x0000a1d6 } }, { 0x0000a1d7, 1, { 0x0000a1d7 } }, { 0x0000a1d8, 1, { 0x0000a1d8 } }, { 0x0000a1d9, 1, { 0x0000a1d9 } }, { 0x0000a1da, 1, { 0x0000a1da } }, { 0x0000a1db, 1, { 0x0000a1db } }, { 0x0000a1dc, 1, { 0x0000a1dc } }, { 0x0000a1dd, 1, { 0x0000a1dd } }, { 0x0000a1de, 1, { 0x0000a1de } }, { 0x0000a1df, 1, { 0x0000a1df } }, { 0x0000a1e0, 1, { 0x0000a1e0 } }, { 0x0000a1e1, 1, { 0x0000a1e1 } }, { 0x0000a1e2, 1, { 0x0000a1e2 } }, { 0x0000a1e3, 1, { 0x0000a1e3 } }, { 0x0000a1e4, 1, { 0x0000a1e4 } }, { 0x0000a1e5, 1, { 0x0000a1e5 } }, { 0x0000a1e6, 1, { 0x0000a1e6 } }, { 0x0000a1e7, 1, { 0x0000a1e7 } }, { 0x0000a1e8, 1, { 0x0000a1e8 } }, { 0x0000a1e9, 1, { 0x0000a1e9 } }, { 0x0000a1ea, 1, { 0x0000a1ea } }, { 0x0000a1eb, 1, { 0x0000a1eb } }, { 0x0000a1ec, 1, { 0x0000a1ec } }, { 0x0000a1ed, 1, { 0x0000a1ed } }, { 0x0000a1ee, 1, { 0x0000a1ee } }, { 0x0000a1ef, 1, { 0x0000a1ef } }, { 0x0000a1f0, 1, { 0x0000a1f0 } }, { 0x0000a1f1, 1, { 0x0000a1f1 } }, { 0x0000a1f2, 1, { 0x0000a1f2 } }, { 0x0000a1f3, 1, { 0x0000a1f3 } }, { 0x0000a1f4, 1, { 0x0000a1f4 } }, { 0x0000a1f5, 1, { 0x0000a1f5 } }, { 0x0000a1f6, 1, { 0x0000a1f6 } }, { 0x0000a1f7, 1, { 0x0000a1f7 } }, { 0x0000a1f8, 1, { 0x0000a1f8 } }, { 0x0000a1f9, 1, { 0x0000a1f9 } }, { 0x0000a1fa, 1, { 0x0000a1fa } }, { 0x0000a1fb, 1, { 0x0000a1fb } }, { 0x0000a1fc, 1, { 0x0000a1fc } }, { 0x0000a1fd, 1, { 0x0000a1fd } }, { 0x0000a1fe, 1, { 0x0000a1fe } }, { 0x0000a1ff, 1, { 0x0000a1ff } }, { 0x0000a200, 1, { 0x0000a200 } }, { 0x0000a201, 1, { 0x0000a201 } }, { 0x0000a202, 1, { 0x0000a202 } }, { 0x0000a203, 1, { 0x0000a203 } }, { 0x0000a204, 1, { 0x0000a204 } }, { 0x0000a205, 1, { 0x0000a205 } }, { 0x0000a206, 1, { 0x0000a206 } }, { 0x0000a207, 1, { 0x0000a207 } }, { 0x0000a208, 1, { 0x0000a208 } }, { 0x0000a209, 1, { 0x0000a209 } }, { 0x0000a20a, 1, { 0x0000a20a } }, { 0x0000a20b, 1, { 0x0000a20b } }, { 0x0000a20c, 1, { 0x0000a20c } }, { 0x0000a20d, 1, { 0x0000a20d } }, { 0x0000a20e, 1, { 0x0000a20e } }, { 0x0000a20f, 1, { 0x0000a20f } }, { 0x0000a210, 1, { 0x0000a210 } }, { 0x0000a211, 1, { 0x0000a211 } }, { 0x0000a212, 1, { 0x0000a212 } }, { 0x0000a213, 1, { 0x0000a213 } }, { 0x0000a214, 1, { 0x0000a214 } }, { 0x0000a215, 1, { 0x0000a215 } }, { 0x0000a216, 1, { 0x0000a216 } }, { 0x0000a217, 1, { 0x0000a217 } }, { 0x0000a218, 1, { 0x0000a218 } }, { 0x0000a219, 1, { 0x0000a219 } }, { 0x0000a21a, 1, { 0x0000a21a } }, { 0x0000a21b, 1, { 0x0000a21b } }, { 0x0000a21c, 1, { 0x0000a21c } }, { 0x0000a21d, 1, { 0x0000a21d } }, { 0x0000a21e, 1, { 0x0000a21e } }, { 0x0000a21f, 1, { 0x0000a21f } }, { 0x0000a220, 1, { 0x0000a220 } }, { 0x0000a221, 1, { 0x0000a221 } }, { 0x0000a222, 1, { 0x0000a222 } }, { 0x0000a223, 1, { 0x0000a223 } }, { 0x0000a224, 1, { 0x0000a224 } }, { 0x0000a225, 1, { 0x0000a225 } }, { 0x0000a226, 1, { 0x0000a226 } }, { 0x0000a227, 1, { 0x0000a227 } }, { 0x0000a228, 1, { 0x0000a228 } }, { 0x0000a229, 1, { 0x0000a229 } }, { 0x0000a22a, 1, { 0x0000a22a } }, { 0x0000a22b, 1, { 0x0000a22b } }, { 0x0000a22c, 1, { 0x0000a22c } }, { 0x0000a22d, 1, { 0x0000a22d } }, { 0x0000a22e, 1, { 0x0000a22e } }, { 0x0000a22f, 1, { 0x0000a22f } }, { 0x0000a230, 1, { 0x0000a230 } }, { 0x0000a231, 1, { 0x0000a231 } }, { 0x0000a232, 1, { 0x0000a232 } }, { 0x0000a233, 1, { 0x0000a233 } }, { 0x0000a234, 1, { 0x0000a234 } }, { 0x0000a235, 1, { 0x0000a235 } }, { 0x0000a236, 1, { 0x0000a236 } }, { 0x0000a237, 1, { 0x0000a237 } }, { 0x0000a238, 1, { 0x0000a238 } }, { 0x0000a239, 1, { 0x0000a239 } }, { 0x0000a23a, 1, { 0x0000a23a } }, { 0x0000a23b, 1, { 0x0000a23b } }, { 0x0000a23c, 1, { 0x0000a23c } }, { 0x0000a23d, 1, { 0x0000a23d } }, { 0x0000a23e, 1, { 0x0000a23e } }, { 0x0000a23f, 1, { 0x0000a23f } }, { 0x0000a240, 1, { 0x0000a240 } }, { 0x0000a241, 1, { 0x0000a241 } }, { 0x0000a242, 1, { 0x0000a242 } }, { 0x0000a243, 1, { 0x0000a243 } }, { 0x0000a244, 1, { 0x0000a244 } }, { 0x0000a245, 1, { 0x0000a245 } }, { 0x0000a246, 1, { 0x0000a246 } }, { 0x0000a247, 1, { 0x0000a247 } }, { 0x0000a248, 1, { 0x0000a248 } }, { 0x0000a249, 1, { 0x0000a249 } }, { 0x0000a24a, 1, { 0x0000a24a } }, { 0x0000a24b, 1, { 0x0000a24b } }, { 0x0000a24c, 1, { 0x0000a24c } }, { 0x0000a24d, 1, { 0x0000a24d } }, { 0x0000a24e, 1, { 0x0000a24e } }, { 0x0000a24f, 1, { 0x0000a24f } }, { 0x0000a250, 1, { 0x0000a250 } }, { 0x0000a251, 1, { 0x0000a251 } }, { 0x0000a252, 1, { 0x0000a252 } }, { 0x0000a253, 1, { 0x0000a253 } }, { 0x0000a254, 1, { 0x0000a254 } }, { 0x0000a255, 1, { 0x0000a255 } }, { 0x0000a256, 1, { 0x0000a256 } }, { 0x0000a257, 1, { 0x0000a257 } }, { 0x0000a258, 1, { 0x0000a258 } }, { 0x0000a259, 1, { 0x0000a259 } }, { 0x0000a25a, 1, { 0x0000a25a } }, { 0x0000a25b, 1, { 0x0000a25b } }, { 0x0000a25c, 1, { 0x0000a25c } }, { 0x0000a25d, 1, { 0x0000a25d } }, { 0x0000a25e, 1, { 0x0000a25e } }, { 0x0000a25f, 1, { 0x0000a25f } }, { 0x0000a260, 1, { 0x0000a260 } }, { 0x0000a261, 1, { 0x0000a261 } }, { 0x0000a262, 1, { 0x0000a262 } }, { 0x0000a263, 1, { 0x0000a263 } }, { 0x0000a264, 1, { 0x0000a264 } }, { 0x0000a265, 1, { 0x0000a265 } }, { 0x0000a266, 1, { 0x0000a266 } }, { 0x0000a267, 1, { 0x0000a267 } }, { 0x0000a268, 1, { 0x0000a268 } }, { 0x0000a269, 1, { 0x0000a269 } }, { 0x0000a26a, 1, { 0x0000a26a } }, { 0x0000a26b, 1, { 0x0000a26b } }, { 0x0000a26c, 1, { 0x0000a26c } }, { 0x0000a26d, 1, { 0x0000a26d } }, { 0x0000a26e, 1, { 0x0000a26e } }, { 0x0000a26f, 1, { 0x0000a26f } }, { 0x0000a270, 1, { 0x0000a270 } }, { 0x0000a271, 1, { 0x0000a271 } }, { 0x0000a272, 1, { 0x0000a272 } }, { 0x0000a273, 1, { 0x0000a273 } }, { 0x0000a274, 1, { 0x0000a274 } }, { 0x0000a275, 1, { 0x0000a275 } }, { 0x0000a276, 1, { 0x0000a276 } }, { 0x0000a277, 1, { 0x0000a277 } }, { 0x0000a278, 1, { 0x0000a278 } }, { 0x0000a279, 1, { 0x0000a279 } }, { 0x0000a27a, 1, { 0x0000a27a } }, { 0x0000a27b, 1, { 0x0000a27b } }, { 0x0000a27c, 1, { 0x0000a27c } }, { 0x0000a27d, 1, { 0x0000a27d } }, { 0x0000a27e, 1, { 0x0000a27e } }, { 0x0000a27f, 1, { 0x0000a27f } }, { 0x0000a280, 1, { 0x0000a280 } }, { 0x0000a281, 1, { 0x0000a281 } }, { 0x0000a282, 1, { 0x0000a282 } }, { 0x0000a283, 1, { 0x0000a283 } }, { 0x0000a284, 1, { 0x0000a284 } }, { 0x0000a285, 1, { 0x0000a285 } }, { 0x0000a286, 1, { 0x0000a286 } }, { 0x0000a287, 1, { 0x0000a287 } }, { 0x0000a288, 1, { 0x0000a288 } }, { 0x0000a289, 1, { 0x0000a289 } }, { 0x0000a28a, 1, { 0x0000a28a } }, { 0x0000a28b, 1, { 0x0000a28b } }, { 0x0000a28c, 1, { 0x0000a28c } }, { 0x0000a28d, 1, { 0x0000a28d } }, { 0x0000a28e, 1, { 0x0000a28e } }, { 0x0000a28f, 1, { 0x0000a28f } }, { 0x0000a290, 1, { 0x0000a290 } }, { 0x0000a291, 1, { 0x0000a291 } }, { 0x0000a292, 1, { 0x0000a292 } }, { 0x0000a293, 1, { 0x0000a293 } }, { 0x0000a294, 1, { 0x0000a294 } }, { 0x0000a295, 1, { 0x0000a295 } }, { 0x0000a296, 1, { 0x0000a296 } }, { 0x0000a297, 1, { 0x0000a297 } }, { 0x0000a298, 1, { 0x0000a298 } }, { 0x0000a299, 1, { 0x0000a299 } }, { 0x0000a29a, 1, { 0x0000a29a } }, { 0x0000a29b, 1, { 0x0000a29b } }, { 0x0000a29c, 1, { 0x0000a29c } }, { 0x0000a29d, 1, { 0x0000a29d } }, { 0x0000a29e, 1, { 0x0000a29e } }, { 0x0000a29f, 1, { 0x0000a29f } }, { 0x0000a2a0, 1, { 0x0000a2a0 } }, { 0x0000a2a1, 1, { 0x0000a2a1 } }, { 0x0000a2a2, 1, { 0x0000a2a2 } }, { 0x0000a2a3, 1, { 0x0000a2a3 } }, { 0x0000a2a4, 1, { 0x0000a2a4 } }, { 0x0000a2a5, 1, { 0x0000a2a5 } }, { 0x0000a2a6, 1, { 0x0000a2a6 } }, { 0x0000a2a7, 1, { 0x0000a2a7 } }, { 0x0000a2a8, 1, { 0x0000a2a8 } }, { 0x0000a2a9, 1, { 0x0000a2a9 } }, { 0x0000a2aa, 1, { 0x0000a2aa } }, { 0x0000a2ab, 1, { 0x0000a2ab } }, { 0x0000a2ac, 1, { 0x0000a2ac } }, { 0x0000a2ad, 1, { 0x0000a2ad } }, { 0x0000a2ae, 1, { 0x0000a2ae } }, { 0x0000a2af, 1, { 0x0000a2af } }, { 0x0000a2b0, 1, { 0x0000a2b0 } }, { 0x0000a2b1, 1, { 0x0000a2b1 } }, { 0x0000a2b2, 1, { 0x0000a2b2 } }, { 0x0000a2b3, 1, { 0x0000a2b3 } }, { 0x0000a2b4, 1, { 0x0000a2b4 } }, { 0x0000a2b5, 1, { 0x0000a2b5 } }, { 0x0000a2b6, 1, { 0x0000a2b6 } }, { 0x0000a2b7, 1, { 0x0000a2b7 } }, { 0x0000a2b8, 1, { 0x0000a2b8 } }, { 0x0000a2b9, 1, { 0x0000a2b9 } }, { 0x0000a2ba, 1, { 0x0000a2ba } }, { 0x0000a2bb, 1, { 0x0000a2bb } }, { 0x0000a2bc, 1, { 0x0000a2bc } }, { 0x0000a2bd, 1, { 0x0000a2bd } }, { 0x0000a2be, 1, { 0x0000a2be } }, { 0x0000a2bf, 1, { 0x0000a2bf } }, { 0x0000a2c0, 1, { 0x0000a2c0 } }, { 0x0000a2c1, 1, { 0x0000a2c1 } }, { 0x0000a2c2, 1, { 0x0000a2c2 } }, { 0x0000a2c3, 1, { 0x0000a2c3 } }, { 0x0000a2c4, 1, { 0x0000a2c4 } }, { 0x0000a2c5, 1, { 0x0000a2c5 } }, { 0x0000a2c6, 1, { 0x0000a2c6 } }, { 0x0000a2c7, 1, { 0x0000a2c7 } }, { 0x0000a2c8, 1, { 0x0000a2c8 } }, { 0x0000a2c9, 1, { 0x0000a2c9 } }, { 0x0000a2ca, 1, { 0x0000a2ca } }, { 0x0000a2cb, 1, { 0x0000a2cb } }, { 0x0000a2cc, 1, { 0x0000a2cc } }, { 0x0000a2cd, 1, { 0x0000a2cd } }, { 0x0000a2ce, 1, { 0x0000a2ce } }, { 0x0000a2cf, 1, { 0x0000a2cf } }, { 0x0000a2d0, 1, { 0x0000a2d0 } }, { 0x0000a2d1, 1, { 0x0000a2d1 } }, { 0x0000a2d2, 1, { 0x0000a2d2 } }, { 0x0000a2d3, 1, { 0x0000a2d3 } }, { 0x0000a2d4, 1, { 0x0000a2d4 } }, { 0x0000a2d5, 1, { 0x0000a2d5 } }, { 0x0000a2d6, 1, { 0x0000a2d6 } }, { 0x0000a2d7, 1, { 0x0000a2d7 } }, { 0x0000a2d8, 1, { 0x0000a2d8 } }, { 0x0000a2d9, 1, { 0x0000a2d9 } }, { 0x0000a2da, 1, { 0x0000a2da } }, { 0x0000a2db, 1, { 0x0000a2db } }, { 0x0000a2dc, 1, { 0x0000a2dc } }, { 0x0000a2dd, 1, { 0x0000a2dd } }, { 0x0000a2de, 1, { 0x0000a2de } }, { 0x0000a2df, 1, { 0x0000a2df } }, { 0x0000a2e0, 1, { 0x0000a2e0 } }, { 0x0000a2e1, 1, { 0x0000a2e1 } }, { 0x0000a2e2, 1, { 0x0000a2e2 } }, { 0x0000a2e3, 1, { 0x0000a2e3 } }, { 0x0000a2e4, 1, { 0x0000a2e4 } }, { 0x0000a2e5, 1, { 0x0000a2e5 } }, { 0x0000a2e6, 1, { 0x0000a2e6 } }, { 0x0000a2e7, 1, { 0x0000a2e7 } }, { 0x0000a2e8, 1, { 0x0000a2e8 } }, { 0x0000a2e9, 1, { 0x0000a2e9 } }, { 0x0000a2ea, 1, { 0x0000a2ea } }, { 0x0000a2eb, 1, { 0x0000a2eb } }, { 0x0000a2ec, 1, { 0x0000a2ec } }, { 0x0000a2ed, 1, { 0x0000a2ed } }, { 0x0000a2ee, 1, { 0x0000a2ee } }, { 0x0000a2ef, 1, { 0x0000a2ef } }, { 0x0000a2f0, 1, { 0x0000a2f0 } }, { 0x0000a2f1, 1, { 0x0000a2f1 } }, { 0x0000a2f2, 1, { 0x0000a2f2 } }, { 0x0000a2f3, 1, { 0x0000a2f3 } }, { 0x0000a2f4, 1, { 0x0000a2f4 } }, { 0x0000a2f5, 1, { 0x0000a2f5 } }, { 0x0000a2f6, 1, { 0x0000a2f6 } }, { 0x0000a2f7, 1, { 0x0000a2f7 } }, { 0x0000a2f8, 1, { 0x0000a2f8 } }, { 0x0000a2f9, 1, { 0x0000a2f9 } }, { 0x0000a2fa, 1, { 0x0000a2fa } }, { 0x0000a2fb, 1, { 0x0000a2fb } }, { 0x0000a2fc, 1, { 0x0000a2fc } }, { 0x0000a2fd, 1, { 0x0000a2fd } }, { 0x0000a2fe, 1, { 0x0000a2fe } }, { 0x0000a2ff, 1, { 0x0000a2ff } }, { 0x0000a300, 1, { 0x0000a300 } }, { 0x0000a301, 1, { 0x0000a301 } }, { 0x0000a302, 1, { 0x0000a302 } }, { 0x0000a303, 1, { 0x0000a303 } }, { 0x0000a304, 1, { 0x0000a304 } }, { 0x0000a305, 1, { 0x0000a305 } }, { 0x0000a306, 1, { 0x0000a306 } }, { 0x0000a307, 1, { 0x0000a307 } }, { 0x0000a308, 1, { 0x0000a308 } }, { 0x0000a309, 1, { 0x0000a309 } }, { 0x0000a30a, 1, { 0x0000a30a } }, { 0x0000a30b, 1, { 0x0000a30b } }, { 0x0000a30c, 1, { 0x0000a30c } }, { 0x0000a30d, 1, { 0x0000a30d } }, { 0x0000a30e, 1, { 0x0000a30e } }, { 0x0000a30f, 1, { 0x0000a30f } }, { 0x0000a310, 1, { 0x0000a310 } }, { 0x0000a311, 1, { 0x0000a311 } }, { 0x0000a312, 1, { 0x0000a312 } }, { 0x0000a313, 1, { 0x0000a313 } }, { 0x0000a314, 1, { 0x0000a314 } }, { 0x0000a315, 1, { 0x0000a315 } }, { 0x0000a316, 1, { 0x0000a316 } }, { 0x0000a317, 1, { 0x0000a317 } }, { 0x0000a318, 1, { 0x0000a318 } }, { 0x0000a319, 1, { 0x0000a319 } }, { 0x0000a31a, 1, { 0x0000a31a } }, { 0x0000a31b, 1, { 0x0000a31b } }, { 0x0000a31c, 1, { 0x0000a31c } }, { 0x0000a31d, 1, { 0x0000a31d } }, { 0x0000a31e, 1, { 0x0000a31e } }, { 0x0000a31f, 1, { 0x0000a31f } }, { 0x0000a320, 1, { 0x0000a320 } }, { 0x0000a321, 1, { 0x0000a321 } }, { 0x0000a322, 1, { 0x0000a322 } }, { 0x0000a323, 1, { 0x0000a323 } }, { 0x0000a324, 1, { 0x0000a324 } }, { 0x0000a325, 1, { 0x0000a325 } }, { 0x0000a326, 1, { 0x0000a326 } }, { 0x0000a327, 1, { 0x0000a327 } }, { 0x0000a328, 1, { 0x0000a328 } }, { 0x0000a329, 1, { 0x0000a329 } }, { 0x0000a32a, 1, { 0x0000a32a } }, { 0x0000a32b, 1, { 0x0000a32b } }, { 0x0000a32c, 1, { 0x0000a32c } }, { 0x0000a32d, 1, { 0x0000a32d } }, { 0x0000a32e, 1, { 0x0000a32e } }, { 0x0000a32f, 1, { 0x0000a32f } }, { 0x0000a330, 1, { 0x0000a330 } }, { 0x0000a331, 1, { 0x0000a331 } }, { 0x0000a332, 1, { 0x0000a332 } }, { 0x0000a333, 1, { 0x0000a333 } }, { 0x0000a334, 1, { 0x0000a334 } }, { 0x0000a335, 1, { 0x0000a335 } }, { 0x0000a336, 1, { 0x0000a336 } }, { 0x0000a337, 1, { 0x0000a337 } }, { 0x0000a338, 1, { 0x0000a338 } }, { 0x0000a339, 1, { 0x0000a339 } }, { 0x0000a33a, 1, { 0x0000a33a } }, { 0x0000a33b, 1, { 0x0000a33b } }, { 0x0000a33c, 1, { 0x0000a33c } }, { 0x0000a33d, 1, { 0x0000a33d } }, { 0x0000a33e, 1, { 0x0000a33e } }, { 0x0000a33f, 1, { 0x0000a33f } }, { 0x0000a340, 1, { 0x0000a340 } }, { 0x0000a341, 1, { 0x0000a341 } }, { 0x0000a342, 1, { 0x0000a342 } }, { 0x0000a343, 1, { 0x0000a343 } }, { 0x0000a344, 1, { 0x0000a344 } }, { 0x0000a345, 1, { 0x0000a345 } }, { 0x0000a346, 1, { 0x0000a346 } }, { 0x0000a347, 1, { 0x0000a347 } }, { 0x0000a348, 1, { 0x0000a348 } }, { 0x0000a349, 1, { 0x0000a349 } }, { 0x0000a34a, 1, { 0x0000a34a } }, { 0x0000a34b, 1, { 0x0000a34b } }, { 0x0000a34c, 1, { 0x0000a34c } }, { 0x0000a34d, 1, { 0x0000a34d } }, { 0x0000a34e, 1, { 0x0000a34e } }, { 0x0000a34f, 1, { 0x0000a34f } }, { 0x0000a350, 1, { 0x0000a350 } }, { 0x0000a351, 1, { 0x0000a351 } }, { 0x0000a352, 1, { 0x0000a352 } }, { 0x0000a353, 1, { 0x0000a353 } }, { 0x0000a354, 1, { 0x0000a354 } }, { 0x0000a355, 1, { 0x0000a355 } }, { 0x0000a356, 1, { 0x0000a356 } }, { 0x0000a357, 1, { 0x0000a357 } }, { 0x0000a358, 1, { 0x0000a358 } }, { 0x0000a359, 1, { 0x0000a359 } }, { 0x0000a35a, 1, { 0x0000a35a } }, { 0x0000a35b, 1, { 0x0000a35b } }, { 0x0000a35c, 1, { 0x0000a35c } }, { 0x0000a35d, 1, { 0x0000a35d } }, { 0x0000a35e, 1, { 0x0000a35e } }, { 0x0000a35f, 1, { 0x0000a35f } }, { 0x0000a360, 1, { 0x0000a360 } }, { 0x0000a361, 1, { 0x0000a361 } }, { 0x0000a362, 1, { 0x0000a362 } }, { 0x0000a363, 1, { 0x0000a363 } }, { 0x0000a364, 1, { 0x0000a364 } }, { 0x0000a365, 1, { 0x0000a365 } }, { 0x0000a366, 1, { 0x0000a366 } }, { 0x0000a367, 1, { 0x0000a367 } }, { 0x0000a368, 1, { 0x0000a368 } }, { 0x0000a369, 1, { 0x0000a369 } }, { 0x0000a36a, 1, { 0x0000a36a } }, { 0x0000a36b, 1, { 0x0000a36b } }, { 0x0000a36c, 1, { 0x0000a36c } }, { 0x0000a36d, 1, { 0x0000a36d } }, { 0x0000a36e, 1, { 0x0000a36e } }, { 0x0000a36f, 1, { 0x0000a36f } }, { 0x0000a370, 1, { 0x0000a370 } }, { 0x0000a371, 1, { 0x0000a371 } }, { 0x0000a372, 1, { 0x0000a372 } }, { 0x0000a373, 1, { 0x0000a373 } }, { 0x0000a374, 1, { 0x0000a374 } }, { 0x0000a375, 1, { 0x0000a375 } }, { 0x0000a376, 1, { 0x0000a376 } }, { 0x0000a377, 1, { 0x0000a377 } }, { 0x0000a378, 1, { 0x0000a378 } }, { 0x0000a379, 1, { 0x0000a379 } }, { 0x0000a37a, 1, { 0x0000a37a } }, { 0x0000a37b, 1, { 0x0000a37b } }, { 0x0000a37c, 1, { 0x0000a37c } }, { 0x0000a37d, 1, { 0x0000a37d } }, { 0x0000a37e, 1, { 0x0000a37e } }, { 0x0000a37f, 1, { 0x0000a37f } }, { 0x0000a380, 1, { 0x0000a380 } }, { 0x0000a381, 1, { 0x0000a381 } }, { 0x0000a382, 1, { 0x0000a382 } }, { 0x0000a383, 1, { 0x0000a383 } }, { 0x0000a384, 1, { 0x0000a384 } }, { 0x0000a385, 1, { 0x0000a385 } }, { 0x0000a386, 1, { 0x0000a386 } }, { 0x0000a387, 1, { 0x0000a387 } }, { 0x0000a388, 1, { 0x0000a388 } }, { 0x0000a389, 1, { 0x0000a389 } }, { 0x0000a38a, 1, { 0x0000a38a } }, { 0x0000a38b, 1, { 0x0000a38b } }, { 0x0000a38c, 1, { 0x0000a38c } }, { 0x0000a38d, 1, { 0x0000a38d } }, { 0x0000a38e, 1, { 0x0000a38e } }, { 0x0000a38f, 1, { 0x0000a38f } }, { 0x0000a390, 1, { 0x0000a390 } }, { 0x0000a391, 1, { 0x0000a391 } }, { 0x0000a392, 1, { 0x0000a392 } }, { 0x0000a393, 1, { 0x0000a393 } }, { 0x0000a394, 1, { 0x0000a394 } }, { 0x0000a395, 1, { 0x0000a395 } }, { 0x0000a396, 1, { 0x0000a396 } }, { 0x0000a397, 1, { 0x0000a397 } }, { 0x0000a398, 1, { 0x0000a398 } }, { 0x0000a399, 1, { 0x0000a399 } }, { 0x0000a39a, 1, { 0x0000a39a } }, { 0x0000a39b, 1, { 0x0000a39b } }, { 0x0000a39c, 1, { 0x0000a39c } }, { 0x0000a39d, 1, { 0x0000a39d } }, { 0x0000a39e, 1, { 0x0000a39e } }, { 0x0000a39f, 1, { 0x0000a39f } }, { 0x0000a3a0, 1, { 0x0000a3a0 } }, { 0x0000a3a1, 1, { 0x0000a3a1 } }, { 0x0000a3a2, 1, { 0x0000a3a2 } }, { 0x0000a3a3, 1, { 0x0000a3a3 } }, { 0x0000a3a4, 1, { 0x0000a3a4 } }, { 0x0000a3a5, 1, { 0x0000a3a5 } }, { 0x0000a3a6, 1, { 0x0000a3a6 } }, { 0x0000a3a7, 1, { 0x0000a3a7 } }, { 0x0000a3a8, 1, { 0x0000a3a8 } }, { 0x0000a3a9, 1, { 0x0000a3a9 } }, { 0x0000a3aa, 1, { 0x0000a3aa } }, { 0x0000a3ab, 1, { 0x0000a3ab } }, { 0x0000a3ac, 1, { 0x0000a3ac } }, { 0x0000a3ad, 1, { 0x0000a3ad } }, { 0x0000a3ae, 1, { 0x0000a3ae } }, { 0x0000a3af, 1, { 0x0000a3af } }, { 0x0000a3b0, 1, { 0x0000a3b0 } }, { 0x0000a3b1, 1, { 0x0000a3b1 } }, { 0x0000a3b2, 1, { 0x0000a3b2 } }, { 0x0000a3b3, 1, { 0x0000a3b3 } }, { 0x0000a3b4, 1, { 0x0000a3b4 } }, { 0x0000a3b5, 1, { 0x0000a3b5 } }, { 0x0000a3b6, 1, { 0x0000a3b6 } }, { 0x0000a3b7, 1, { 0x0000a3b7 } }, { 0x0000a3b8, 1, { 0x0000a3b8 } }, { 0x0000a3b9, 1, { 0x0000a3b9 } }, { 0x0000a3ba, 1, { 0x0000a3ba } }, { 0x0000a3bb, 1, { 0x0000a3bb } }, { 0x0000a3bc, 1, { 0x0000a3bc } }, { 0x0000a3bd, 1, { 0x0000a3bd } }, { 0x0000a3be, 1, { 0x0000a3be } }, { 0x0000a3bf, 1, { 0x0000a3bf } }, { 0x0000a3c0, 1, { 0x0000a3c0 } }, { 0x0000a3c1, 1, { 0x0000a3c1 } }, { 0x0000a3c2, 1, { 0x0000a3c2 } }, { 0x0000a3c3, 1, { 0x0000a3c3 } }, { 0x0000a3c4, 1, { 0x0000a3c4 } }, { 0x0000a3c5, 1, { 0x0000a3c5 } }, { 0x0000a3c6, 1, { 0x0000a3c6 } }, { 0x0000a3c7, 1, { 0x0000a3c7 } }, { 0x0000a3c8, 1, { 0x0000a3c8 } }, { 0x0000a3c9, 1, { 0x0000a3c9 } }, { 0x0000a3ca, 1, { 0x0000a3ca } }, { 0x0000a3cb, 1, { 0x0000a3cb } }, { 0x0000a3cc, 1, { 0x0000a3cc } }, { 0x0000a3cd, 1, { 0x0000a3cd } }, { 0x0000a3ce, 1, { 0x0000a3ce } }, { 0x0000a3cf, 1, { 0x0000a3cf } }, { 0x0000a3d0, 1, { 0x0000a3d0 } }, { 0x0000a3d1, 1, { 0x0000a3d1 } }, { 0x0000a3d2, 1, { 0x0000a3d2 } }, { 0x0000a3d3, 1, { 0x0000a3d3 } }, { 0x0000a3d4, 1, { 0x0000a3d4 } }, { 0x0000a3d5, 1, { 0x0000a3d5 } }, { 0x0000a3d6, 1, { 0x0000a3d6 } }, { 0x0000a3d7, 1, { 0x0000a3d7 } }, { 0x0000a3d8, 1, { 0x0000a3d8 } }, { 0x0000a3d9, 1, { 0x0000a3d9 } }, { 0x0000a3da, 1, { 0x0000a3da } }, { 0x0000a3db, 1, { 0x0000a3db } }, { 0x0000a3dc, 1, { 0x0000a3dc } }, { 0x0000a3dd, 1, { 0x0000a3dd } }, { 0x0000a3de, 1, { 0x0000a3de } }, { 0x0000a3df, 1, { 0x0000a3df } }, { 0x0000a3e0, 1, { 0x0000a3e0 } }, { 0x0000a3e1, 1, { 0x0000a3e1 } }, { 0x0000a3e2, 1, { 0x0000a3e2 } }, { 0x0000a3e3, 1, { 0x0000a3e3 } }, { 0x0000a3e4, 1, { 0x0000a3e4 } }, { 0x0000a3e5, 1, { 0x0000a3e5 } }, { 0x0000a3e6, 1, { 0x0000a3e6 } }, { 0x0000a3e7, 1, { 0x0000a3e7 } }, { 0x0000a3e8, 1, { 0x0000a3e8 } }, { 0x0000a3e9, 1, { 0x0000a3e9 } }, { 0x0000a3ea, 1, { 0x0000a3ea } }, { 0x0000a3eb, 1, { 0x0000a3eb } }, { 0x0000a3ec, 1, { 0x0000a3ec } }, { 0x0000a3ed, 1, { 0x0000a3ed } }, { 0x0000a3ee, 1, { 0x0000a3ee } }, { 0x0000a3ef, 1, { 0x0000a3ef } }, { 0x0000a3f0, 1, { 0x0000a3f0 } }, { 0x0000a3f1, 1, { 0x0000a3f1 } }, { 0x0000a3f2, 1, { 0x0000a3f2 } }, { 0x0000a3f3, 1, { 0x0000a3f3 } }, { 0x0000a3f4, 1, { 0x0000a3f4 } }, { 0x0000a3f5, 1, { 0x0000a3f5 } }, { 0x0000a3f6, 1, { 0x0000a3f6 } }, { 0x0000a3f7, 1, { 0x0000a3f7 } }, { 0x0000a3f8, 1, { 0x0000a3f8 } }, { 0x0000a3f9, 1, { 0x0000a3f9 } }, { 0x0000a3fa, 1, { 0x0000a3fa } }, { 0x0000a3fb, 1, { 0x0000a3fb } }, { 0x0000a3fc, 1, { 0x0000a3fc } }, { 0x0000a3fd, 1, { 0x0000a3fd } }, { 0x0000a3fe, 1, { 0x0000a3fe } }, { 0x0000a3ff, 1, { 0x0000a3ff } }, { 0x0000a400, 1, { 0x0000a400 } }, { 0x0000a401, 1, { 0x0000a401 } }, { 0x0000a402, 1, { 0x0000a402 } }, { 0x0000a403, 1, { 0x0000a403 } }, { 0x0000a404, 1, { 0x0000a404 } }, { 0x0000a405, 1, { 0x0000a405 } }, { 0x0000a406, 1, { 0x0000a406 } }, { 0x0000a407, 1, { 0x0000a407 } }, { 0x0000a408, 1, { 0x0000a408 } }, { 0x0000a409, 1, { 0x0000a409 } }, { 0x0000a40a, 1, { 0x0000a40a } }, { 0x0000a40b, 1, { 0x0000a40b } }, { 0x0000a40c, 1, { 0x0000a40c } }, { 0x0000a40d, 1, { 0x0000a40d } }, { 0x0000a40e, 1, { 0x0000a40e } }, { 0x0000a40f, 1, { 0x0000a40f } }, { 0x0000a410, 1, { 0x0000a410 } }, { 0x0000a411, 1, { 0x0000a411 } }, { 0x0000a412, 1, { 0x0000a412 } }, { 0x0000a413, 1, { 0x0000a413 } }, { 0x0000a414, 1, { 0x0000a414 } }, { 0x0000a415, 1, { 0x0000a415 } }, { 0x0000a416, 1, { 0x0000a416 } }, { 0x0000a417, 1, { 0x0000a417 } }, { 0x0000a418, 1, { 0x0000a418 } }, { 0x0000a419, 1, { 0x0000a419 } }, { 0x0000a41a, 1, { 0x0000a41a } }, { 0x0000a41b, 1, { 0x0000a41b } }, { 0x0000a41c, 1, { 0x0000a41c } }, { 0x0000a41d, 1, { 0x0000a41d } }, { 0x0000a41e, 1, { 0x0000a41e } }, { 0x0000a41f, 1, { 0x0000a41f } }, { 0x0000a420, 1, { 0x0000a420 } }, { 0x0000a421, 1, { 0x0000a421 } }, { 0x0000a422, 1, { 0x0000a422 } }, { 0x0000a423, 1, { 0x0000a423 } }, { 0x0000a424, 1, { 0x0000a424 } }, { 0x0000a425, 1, { 0x0000a425 } }, { 0x0000a426, 1, { 0x0000a426 } }, { 0x0000a427, 1, { 0x0000a427 } }, { 0x0000a428, 1, { 0x0000a428 } }, { 0x0000a429, 1, { 0x0000a429 } }, { 0x0000a42a, 1, { 0x0000a42a } }, { 0x0000a42b, 1, { 0x0000a42b } }, { 0x0000a42c, 1, { 0x0000a42c } }, { 0x0000a42d, 1, { 0x0000a42d } }, { 0x0000a42e, 1, { 0x0000a42e } }, { 0x0000a42f, 1, { 0x0000a42f } }, { 0x0000a430, 1, { 0x0000a430 } }, { 0x0000a431, 1, { 0x0000a431 } }, { 0x0000a432, 1, { 0x0000a432 } }, { 0x0000a433, 1, { 0x0000a433 } }, { 0x0000a434, 1, { 0x0000a434 } }, { 0x0000a435, 1, { 0x0000a435 } }, { 0x0000a436, 1, { 0x0000a436 } }, { 0x0000a437, 1, { 0x0000a437 } }, { 0x0000a438, 1, { 0x0000a438 } }, { 0x0000a439, 1, { 0x0000a439 } }, { 0x0000a43a, 1, { 0x0000a43a } }, { 0x0000a43b, 1, { 0x0000a43b } }, { 0x0000a43c, 1, { 0x0000a43c } }, { 0x0000a43d, 1, { 0x0000a43d } }, { 0x0000a43e, 1, { 0x0000a43e } }, { 0x0000a43f, 1, { 0x0000a43f } }, { 0x0000a440, 1, { 0x0000a440 } }, { 0x0000a441, 1, { 0x0000a441 } }, { 0x0000a442, 1, { 0x0000a442 } }, { 0x0000a443, 1, { 0x0000a443 } }, { 0x0000a444, 1, { 0x0000a444 } }, { 0x0000a445, 1, { 0x0000a445 } }, { 0x0000a446, 1, { 0x0000a446 } }, { 0x0000a447, 1, { 0x0000a447 } }, { 0x0000a448, 1, { 0x0000a448 } }, { 0x0000a449, 1, { 0x0000a449 } }, { 0x0000a44a, 1, { 0x0000a44a } }, { 0x0000a44b, 1, { 0x0000a44b } }, { 0x0000a44c, 1, { 0x0000a44c } }, { 0x0000a44d, 1, { 0x0000a44d } }, { 0x0000a44e, 1, { 0x0000a44e } }, { 0x0000a44f, 1, { 0x0000a44f } }, { 0x0000a450, 1, { 0x0000a450 } }, { 0x0000a451, 1, { 0x0000a451 } }, { 0x0000a452, 1, { 0x0000a452 } }, { 0x0000a453, 1, { 0x0000a453 } }, { 0x0000a454, 1, { 0x0000a454 } }, { 0x0000a455, 1, { 0x0000a455 } }, { 0x0000a456, 1, { 0x0000a456 } }, { 0x0000a457, 1, { 0x0000a457 } }, { 0x0000a458, 1, { 0x0000a458 } }, { 0x0000a459, 1, { 0x0000a459 } }, { 0x0000a45a, 1, { 0x0000a45a } }, { 0x0000a45b, 1, { 0x0000a45b } }, { 0x0000a45c, 1, { 0x0000a45c } }, { 0x0000a45d, 1, { 0x0000a45d } }, { 0x0000a45e, 1, { 0x0000a45e } }, { 0x0000a45f, 1, { 0x0000a45f } }, { 0x0000a460, 1, { 0x0000a460 } }, { 0x0000a461, 1, { 0x0000a461 } }, { 0x0000a462, 1, { 0x0000a462 } }, { 0x0000a463, 1, { 0x0000a463 } }, { 0x0000a464, 1, { 0x0000a464 } }, { 0x0000a465, 1, { 0x0000a465 } }, { 0x0000a466, 1, { 0x0000a466 } }, { 0x0000a467, 1, { 0x0000a467 } }, { 0x0000a468, 1, { 0x0000a468 } }, { 0x0000a469, 1, { 0x0000a469 } }, { 0x0000a46a, 1, { 0x0000a46a } }, { 0x0000a46b, 1, { 0x0000a46b } }, { 0x0000a46c, 1, { 0x0000a46c } }, { 0x0000a46d, 1, { 0x0000a46d } }, { 0x0000a46e, 1, { 0x0000a46e } }, { 0x0000a46f, 1, { 0x0000a46f } }, { 0x0000a470, 1, { 0x0000a470 } }, { 0x0000a471, 1, { 0x0000a471 } }, { 0x0000a472, 1, { 0x0000a472 } }, { 0x0000a473, 1, { 0x0000a473 } }, { 0x0000a474, 1, { 0x0000a474 } }, { 0x0000a475, 1, { 0x0000a475 } }, { 0x0000a476, 1, { 0x0000a476 } }, { 0x0000a477, 1, { 0x0000a477 } }, { 0x0000a478, 1, { 0x0000a478 } }, { 0x0000a479, 1, { 0x0000a479 } }, { 0x0000a47a, 1, { 0x0000a47a } }, { 0x0000a47b, 1, { 0x0000a47b } }, { 0x0000a47c, 1, { 0x0000a47c } }, { 0x0000a47d, 1, { 0x0000a47d } }, { 0x0000a47e, 1, { 0x0000a47e } }, { 0x0000a47f, 1, { 0x0000a47f } }, { 0x0000a480, 1, { 0x0000a480 } }, { 0x0000a481, 1, { 0x0000a481 } }, { 0x0000a482, 1, { 0x0000a482 } }, { 0x0000a483, 1, { 0x0000a483 } }, { 0x0000a484, 1, { 0x0000a484 } }, { 0x0000a485, 1, { 0x0000a485 } }, { 0x0000a486, 1, { 0x0000a486 } }, { 0x0000a487, 1, { 0x0000a487 } }, { 0x0000a488, 1, { 0x0000a488 } }, { 0x0000a489, 1, { 0x0000a489 } }, { 0x0000a48a, 1, { 0x0000a48a } }, { 0x0000a48b, 1, { 0x0000a48b } }, { 0x0000a48c, 1, { 0x0000a48c } }, { 0x0000a490, 1, { 0x0000a490 } }, { 0x0000a491, 1, { 0x0000a491 } }, { 0x0000a492, 1, { 0x0000a492 } }, { 0x0000a493, 1, { 0x0000a493 } }, { 0x0000a494, 1, { 0x0000a494 } }, { 0x0000a495, 1, { 0x0000a495 } }, { 0x0000a496, 1, { 0x0000a496 } }, { 0x0000a497, 1, { 0x0000a497 } }, { 0x0000a498, 1, { 0x0000a498 } }, { 0x0000a499, 1, { 0x0000a499 } }, { 0x0000a49a, 1, { 0x0000a49a } }, { 0x0000a49b, 1, { 0x0000a49b } }, { 0x0000a49c, 1, { 0x0000a49c } }, { 0x0000a49d, 1, { 0x0000a49d } }, { 0x0000a49e, 1, { 0x0000a49e } }, { 0x0000a49f, 1, { 0x0000a49f } }, { 0x0000a4a0, 1, { 0x0000a4a0 } }, { 0x0000a4a1, 1, { 0x0000a4a1 } }, { 0x0000a4a2, 1, { 0x0000a4a2 } }, { 0x0000a4a3, 1, { 0x0000a4a3 } }, { 0x0000a4a4, 1, { 0x0000a4a4 } }, { 0x0000a4a5, 1, { 0x0000a4a5 } }, { 0x0000a4a6, 1, { 0x0000a4a6 } }, { 0x0000a4a7, 1, { 0x0000a4a7 } }, { 0x0000a4a8, 1, { 0x0000a4a8 } }, { 0x0000a4a9, 1, { 0x0000a4a9 } }, { 0x0000a4aa, 1, { 0x0000a4aa } }, { 0x0000a4ab, 1, { 0x0000a4ab } }, { 0x0000a4ac, 1, { 0x0000a4ac } }, { 0x0000a4ad, 1, { 0x0000a4ad } }, { 0x0000a4ae, 1, { 0x0000a4ae } }, { 0x0000a4af, 1, { 0x0000a4af } }, { 0x0000a4b0, 1, { 0x0000a4b0 } }, { 0x0000a4b1, 1, { 0x0000a4b1 } }, { 0x0000a4b2, 1, { 0x0000a4b2 } }, { 0x0000a4b3, 1, { 0x0000a4b3 } }, { 0x0000a4b4, 1, { 0x0000a4b4 } }, { 0x0000a4b5, 1, { 0x0000a4b5 } }, { 0x0000a4b6, 1, { 0x0000a4b6 } }, { 0x0000a4b7, 1, { 0x0000a4b7 } }, { 0x0000a4b8, 1, { 0x0000a4b8 } }, { 0x0000a4b9, 1, { 0x0000a4b9 } }, { 0x0000a4ba, 1, { 0x0000a4ba } }, { 0x0000a4bb, 1, { 0x0000a4bb } }, { 0x0000a4bc, 1, { 0x0000a4bc } }, { 0x0000a4bd, 1, { 0x0000a4bd } }, { 0x0000a4be, 1, { 0x0000a4be } }, { 0x0000a4bf, 1, { 0x0000a4bf } }, { 0x0000a4c0, 1, { 0x0000a4c0 } }, { 0x0000a4c1, 1, { 0x0000a4c1 } }, { 0x0000a4c2, 1, { 0x0000a4c2 } }, { 0x0000a4c3, 1, { 0x0000a4c3 } }, { 0x0000a4c4, 1, { 0x0000a4c4 } }, { 0x0000a4c5, 1, { 0x0000a4c5 } }, { 0x0000a4c6, 1, { 0x0000a4c6 } }, { 0x0000a4d0, 1, { 0x0000a4d0 } }, { 0x0000a4d1, 1, { 0x0000a4d1 } }, { 0x0000a4d2, 1, { 0x0000a4d2 } }, { 0x0000a4d3, 1, { 0x0000a4d3 } }, { 0x0000a4d4, 1, { 0x0000a4d4 } }, { 0x0000a4d5, 1, { 0x0000a4d5 } }, { 0x0000a4d6, 1, { 0x0000a4d6 } }, { 0x0000a4d7, 1, { 0x0000a4d7 } }, { 0x0000a4d8, 1, { 0x0000a4d8 } }, { 0x0000a4d9, 1, { 0x0000a4d9 } }, { 0x0000a4da, 1, { 0x0000a4da } }, { 0x0000a4db, 1, { 0x0000a4db } }, { 0x0000a4dc, 1, { 0x0000a4dc } }, { 0x0000a4dd, 1, { 0x0000a4dd } }, { 0x0000a4de, 1, { 0x0000a4de } }, { 0x0000a4df, 1, { 0x0000a4df } }, { 0x0000a4e0, 1, { 0x0000a4e0 } }, { 0x0000a4e1, 1, { 0x0000a4e1 } }, { 0x0000a4e2, 1, { 0x0000a4e2 } }, { 0x0000a4e3, 1, { 0x0000a4e3 } }, { 0x0000a4e4, 1, { 0x0000a4e4 } }, { 0x0000a4e5, 1, { 0x0000a4e5 } }, { 0x0000a4e6, 1, { 0x0000a4e6 } }, { 0x0000a4e7, 1, { 0x0000a4e7 } }, { 0x0000a4e8, 1, { 0x0000a4e8 } }, { 0x0000a4e9, 1, { 0x0000a4e9 } }, { 0x0000a4ea, 1, { 0x0000a4ea } }, { 0x0000a4eb, 1, { 0x0000a4eb } }, { 0x0000a4ec, 1, { 0x0000a4ec } }, { 0x0000a4ed, 1, { 0x0000a4ed } }, { 0x0000a4ee, 1, { 0x0000a4ee } }, { 0x0000a4ef, 1, { 0x0000a4ef } }, { 0x0000a4f0, 1, { 0x0000a4f0 } }, { 0x0000a4f1, 1, { 0x0000a4f1 } }, { 0x0000a4f2, 1, { 0x0000a4f2 } }, { 0x0000a4f3, 1, { 0x0000a4f3 } }, { 0x0000a4f4, 1, { 0x0000a4f4 } }, { 0x0000a4f5, 1, { 0x0000a4f5 } }, { 0x0000a4f6, 1, { 0x0000a4f6 } }, { 0x0000a4f7, 1, { 0x0000a4f7 } }, { 0x0000a4f8, 1, { 0x0000a4f8 } }, { 0x0000a4f9, 1, { 0x0000a4f9 } }, { 0x0000a4fa, 1, { 0x0000a4fa } }, { 0x0000a4fb, 1, { 0x0000a4fb } }, { 0x0000a4fc, 1, { 0x0000a4fc } }, { 0x0000a4fd, 1, { 0x0000a4fd } }, { 0x0000a4fe, 1, { 0x0000a4fe } }, { 0x0000a4ff, 1, { 0x0000a4ff } }, { 0x0000a500, 1, { 0x0000a500 } }, { 0x0000a501, 1, { 0x0000a501 } }, { 0x0000a502, 1, { 0x0000a502 } }, { 0x0000a503, 1, { 0x0000a503 } }, { 0x0000a504, 1, { 0x0000a504 } }, { 0x0000a505, 1, { 0x0000a505 } }, { 0x0000a506, 1, { 0x0000a506 } }, { 0x0000a507, 1, { 0x0000a507 } }, { 0x0000a508, 1, { 0x0000a508 } }, { 0x0000a509, 1, { 0x0000a509 } }, { 0x0000a50a, 1, { 0x0000a50a } }, { 0x0000a50b, 1, { 0x0000a50b } }, { 0x0000a50c, 1, { 0x0000a50c } }, { 0x0000a50d, 1, { 0x0000a50d } }, { 0x0000a50e, 1, { 0x0000a50e } }, { 0x0000a50f, 1, { 0x0000a50f } }, { 0x0000a510, 1, { 0x0000a510 } }, { 0x0000a511, 1, { 0x0000a511 } }, { 0x0000a512, 1, { 0x0000a512 } }, { 0x0000a513, 1, { 0x0000a513 } }, { 0x0000a514, 1, { 0x0000a514 } }, { 0x0000a515, 1, { 0x0000a515 } }, { 0x0000a516, 1, { 0x0000a516 } }, { 0x0000a517, 1, { 0x0000a517 } }, { 0x0000a518, 1, { 0x0000a518 } }, { 0x0000a519, 1, { 0x0000a519 } }, { 0x0000a51a, 1, { 0x0000a51a } }, { 0x0000a51b, 1, { 0x0000a51b } }, { 0x0000a51c, 1, { 0x0000a51c } }, { 0x0000a51d, 1, { 0x0000a51d } }, { 0x0000a51e, 1, { 0x0000a51e } }, { 0x0000a51f, 1, { 0x0000a51f } }, { 0x0000a520, 1, { 0x0000a520 } }, { 0x0000a521, 1, { 0x0000a521 } }, { 0x0000a522, 1, { 0x0000a522 } }, { 0x0000a523, 1, { 0x0000a523 } }, { 0x0000a524, 1, { 0x0000a524 } }, { 0x0000a525, 1, { 0x0000a525 } }, { 0x0000a526, 1, { 0x0000a526 } }, { 0x0000a527, 1, { 0x0000a527 } }, { 0x0000a528, 1, { 0x0000a528 } }, { 0x0000a529, 1, { 0x0000a529 } }, { 0x0000a52a, 1, { 0x0000a52a } }, { 0x0000a52b, 1, { 0x0000a52b } }, { 0x0000a52c, 1, { 0x0000a52c } }, { 0x0000a52d, 1, { 0x0000a52d } }, { 0x0000a52e, 1, { 0x0000a52e } }, { 0x0000a52f, 1, { 0x0000a52f } }, { 0x0000a530, 1, { 0x0000a530 } }, { 0x0000a531, 1, { 0x0000a531 } }, { 0x0000a532, 1, { 0x0000a532 } }, { 0x0000a533, 1, { 0x0000a533 } }, { 0x0000a534, 1, { 0x0000a534 } }, { 0x0000a535, 1, { 0x0000a535 } }, { 0x0000a536, 1, { 0x0000a536 } }, { 0x0000a537, 1, { 0x0000a537 } }, { 0x0000a538, 1, { 0x0000a538 } }, { 0x0000a539, 1, { 0x0000a539 } }, { 0x0000a53a, 1, { 0x0000a53a } }, { 0x0000a53b, 1, { 0x0000a53b } }, { 0x0000a53c, 1, { 0x0000a53c } }, { 0x0000a53d, 1, { 0x0000a53d } }, { 0x0000a53e, 1, { 0x0000a53e } }, { 0x0000a53f, 1, { 0x0000a53f } }, { 0x0000a540, 1, { 0x0000a540 } }, { 0x0000a541, 1, { 0x0000a541 } }, { 0x0000a542, 1, { 0x0000a542 } }, { 0x0000a543, 1, { 0x0000a543 } }, { 0x0000a544, 1, { 0x0000a544 } }, { 0x0000a545, 1, { 0x0000a545 } }, { 0x0000a546, 1, { 0x0000a546 } }, { 0x0000a547, 1, { 0x0000a547 } }, { 0x0000a548, 1, { 0x0000a548 } }, { 0x0000a549, 1, { 0x0000a549 } }, { 0x0000a54a, 1, { 0x0000a54a } }, { 0x0000a54b, 1, { 0x0000a54b } }, { 0x0000a54c, 1, { 0x0000a54c } }, { 0x0000a54d, 1, { 0x0000a54d } }, { 0x0000a54e, 1, { 0x0000a54e } }, { 0x0000a54f, 1, { 0x0000a54f } }, { 0x0000a550, 1, { 0x0000a550 } }, { 0x0000a551, 1, { 0x0000a551 } }, { 0x0000a552, 1, { 0x0000a552 } }, { 0x0000a553, 1, { 0x0000a553 } }, { 0x0000a554, 1, { 0x0000a554 } }, { 0x0000a555, 1, { 0x0000a555 } }, { 0x0000a556, 1, { 0x0000a556 } }, { 0x0000a557, 1, { 0x0000a557 } }, { 0x0000a558, 1, { 0x0000a558 } }, { 0x0000a559, 1, { 0x0000a559 } }, { 0x0000a55a, 1, { 0x0000a55a } }, { 0x0000a55b, 1, { 0x0000a55b } }, { 0x0000a55c, 1, { 0x0000a55c } }, { 0x0000a55d, 1, { 0x0000a55d } }, { 0x0000a55e, 1, { 0x0000a55e } }, { 0x0000a55f, 1, { 0x0000a55f } }, { 0x0000a560, 1, { 0x0000a560 } }, { 0x0000a561, 1, { 0x0000a561 } }, { 0x0000a562, 1, { 0x0000a562 } }, { 0x0000a563, 1, { 0x0000a563 } }, { 0x0000a564, 1, { 0x0000a564 } }, { 0x0000a565, 1, { 0x0000a565 } }, { 0x0000a566, 1, { 0x0000a566 } }, { 0x0000a567, 1, { 0x0000a567 } }, { 0x0000a568, 1, { 0x0000a568 } }, { 0x0000a569, 1, { 0x0000a569 } }, { 0x0000a56a, 1, { 0x0000a56a } }, { 0x0000a56b, 1, { 0x0000a56b } }, { 0x0000a56c, 1, { 0x0000a56c } }, { 0x0000a56d, 1, { 0x0000a56d } }, { 0x0000a56e, 1, { 0x0000a56e } }, { 0x0000a56f, 1, { 0x0000a56f } }, { 0x0000a570, 1, { 0x0000a570 } }, { 0x0000a571, 1, { 0x0000a571 } }, { 0x0000a572, 1, { 0x0000a572 } }, { 0x0000a573, 1, { 0x0000a573 } }, { 0x0000a574, 1, { 0x0000a574 } }, { 0x0000a575, 1, { 0x0000a575 } }, { 0x0000a576, 1, { 0x0000a576 } }, { 0x0000a577, 1, { 0x0000a577 } }, { 0x0000a578, 1, { 0x0000a578 } }, { 0x0000a579, 1, { 0x0000a579 } }, { 0x0000a57a, 1, { 0x0000a57a } }, { 0x0000a57b, 1, { 0x0000a57b } }, { 0x0000a57c, 1, { 0x0000a57c } }, { 0x0000a57d, 1, { 0x0000a57d } }, { 0x0000a57e, 1, { 0x0000a57e } }, { 0x0000a57f, 1, { 0x0000a57f } }, { 0x0000a580, 1, { 0x0000a580 } }, { 0x0000a581, 1, { 0x0000a581 } }, { 0x0000a582, 1, { 0x0000a582 } }, { 0x0000a583, 1, { 0x0000a583 } }, { 0x0000a584, 1, { 0x0000a584 } }, { 0x0000a585, 1, { 0x0000a585 } }, { 0x0000a586, 1, { 0x0000a586 } }, { 0x0000a587, 1, { 0x0000a587 } }, { 0x0000a588, 1, { 0x0000a588 } }, { 0x0000a589, 1, { 0x0000a589 } }, { 0x0000a58a, 1, { 0x0000a58a } }, { 0x0000a58b, 1, { 0x0000a58b } }, { 0x0000a58c, 1, { 0x0000a58c } }, { 0x0000a58d, 1, { 0x0000a58d } }, { 0x0000a58e, 1, { 0x0000a58e } }, { 0x0000a58f, 1, { 0x0000a58f } }, { 0x0000a590, 1, { 0x0000a590 } }, { 0x0000a591, 1, { 0x0000a591 } }, { 0x0000a592, 1, { 0x0000a592 } }, { 0x0000a593, 1, { 0x0000a593 } }, { 0x0000a594, 1, { 0x0000a594 } }, { 0x0000a595, 1, { 0x0000a595 } }, { 0x0000a596, 1, { 0x0000a596 } }, { 0x0000a597, 1, { 0x0000a597 } }, { 0x0000a598, 1, { 0x0000a598 } }, { 0x0000a599, 1, { 0x0000a599 } }, { 0x0000a59a, 1, { 0x0000a59a } }, { 0x0000a59b, 1, { 0x0000a59b } }, { 0x0000a59c, 1, { 0x0000a59c } }, { 0x0000a59d, 1, { 0x0000a59d } }, { 0x0000a59e, 1, { 0x0000a59e } }, { 0x0000a59f, 1, { 0x0000a59f } }, { 0x0000a5a0, 1, { 0x0000a5a0 } }, { 0x0000a5a1, 1, { 0x0000a5a1 } }, { 0x0000a5a2, 1, { 0x0000a5a2 } }, { 0x0000a5a3, 1, { 0x0000a5a3 } }, { 0x0000a5a4, 1, { 0x0000a5a4 } }, { 0x0000a5a5, 1, { 0x0000a5a5 } }, { 0x0000a5a6, 1, { 0x0000a5a6 } }, { 0x0000a5a7, 1, { 0x0000a5a7 } }, { 0x0000a5a8, 1, { 0x0000a5a8 } }, { 0x0000a5a9, 1, { 0x0000a5a9 } }, { 0x0000a5aa, 1, { 0x0000a5aa } }, { 0x0000a5ab, 1, { 0x0000a5ab } }, { 0x0000a5ac, 1, { 0x0000a5ac } }, { 0x0000a5ad, 1, { 0x0000a5ad } }, { 0x0000a5ae, 1, { 0x0000a5ae } }, { 0x0000a5af, 1, { 0x0000a5af } }, { 0x0000a5b0, 1, { 0x0000a5b0 } }, { 0x0000a5b1, 1, { 0x0000a5b1 } }, { 0x0000a5b2, 1, { 0x0000a5b2 } }, { 0x0000a5b3, 1, { 0x0000a5b3 } }, { 0x0000a5b4, 1, { 0x0000a5b4 } }, { 0x0000a5b5, 1, { 0x0000a5b5 } }, { 0x0000a5b6, 1, { 0x0000a5b6 } }, { 0x0000a5b7, 1, { 0x0000a5b7 } }, { 0x0000a5b8, 1, { 0x0000a5b8 } }, { 0x0000a5b9, 1, { 0x0000a5b9 } }, { 0x0000a5ba, 1, { 0x0000a5ba } }, { 0x0000a5bb, 1, { 0x0000a5bb } }, { 0x0000a5bc, 1, { 0x0000a5bc } }, { 0x0000a5bd, 1, { 0x0000a5bd } }, { 0x0000a5be, 1, { 0x0000a5be } }, { 0x0000a5bf, 1, { 0x0000a5bf } }, { 0x0000a5c0, 1, { 0x0000a5c0 } }, { 0x0000a5c1, 1, { 0x0000a5c1 } }, { 0x0000a5c2, 1, { 0x0000a5c2 } }, { 0x0000a5c3, 1, { 0x0000a5c3 } }, { 0x0000a5c4, 1, { 0x0000a5c4 } }, { 0x0000a5c5, 1, { 0x0000a5c5 } }, { 0x0000a5c6, 1, { 0x0000a5c6 } }, { 0x0000a5c7, 1, { 0x0000a5c7 } }, { 0x0000a5c8, 1, { 0x0000a5c8 } }, { 0x0000a5c9, 1, { 0x0000a5c9 } }, { 0x0000a5ca, 1, { 0x0000a5ca } }, { 0x0000a5cb, 1, { 0x0000a5cb } }, { 0x0000a5cc, 1, { 0x0000a5cc } }, { 0x0000a5cd, 1, { 0x0000a5cd } }, { 0x0000a5ce, 1, { 0x0000a5ce } }, { 0x0000a5cf, 1, { 0x0000a5cf } }, { 0x0000a5d0, 1, { 0x0000a5d0 } }, { 0x0000a5d1, 1, { 0x0000a5d1 } }, { 0x0000a5d2, 1, { 0x0000a5d2 } }, { 0x0000a5d3, 1, { 0x0000a5d3 } }, { 0x0000a5d4, 1, { 0x0000a5d4 } }, { 0x0000a5d5, 1, { 0x0000a5d5 } }, { 0x0000a5d6, 1, { 0x0000a5d6 } }, { 0x0000a5d7, 1, { 0x0000a5d7 } }, { 0x0000a5d8, 1, { 0x0000a5d8 } }, { 0x0000a5d9, 1, { 0x0000a5d9 } }, { 0x0000a5da, 1, { 0x0000a5da } }, { 0x0000a5db, 1, { 0x0000a5db } }, { 0x0000a5dc, 1, { 0x0000a5dc } }, { 0x0000a5dd, 1, { 0x0000a5dd } }, { 0x0000a5de, 1, { 0x0000a5de } }, { 0x0000a5df, 1, { 0x0000a5df } }, { 0x0000a5e0, 1, { 0x0000a5e0 } }, { 0x0000a5e1, 1, { 0x0000a5e1 } }, { 0x0000a5e2, 1, { 0x0000a5e2 } }, { 0x0000a5e3, 1, { 0x0000a5e3 } }, { 0x0000a5e4, 1, { 0x0000a5e4 } }, { 0x0000a5e5, 1, { 0x0000a5e5 } }, { 0x0000a5e6, 1, { 0x0000a5e6 } }, { 0x0000a5e7, 1, { 0x0000a5e7 } }, { 0x0000a5e8, 1, { 0x0000a5e8 } }, { 0x0000a5e9, 1, { 0x0000a5e9 } }, { 0x0000a5ea, 1, { 0x0000a5ea } }, { 0x0000a5eb, 1, { 0x0000a5eb } }, { 0x0000a5ec, 1, { 0x0000a5ec } }, { 0x0000a5ed, 1, { 0x0000a5ed } }, { 0x0000a5ee, 1, { 0x0000a5ee } }, { 0x0000a5ef, 1, { 0x0000a5ef } }, { 0x0000a5f0, 1, { 0x0000a5f0 } }, { 0x0000a5f1, 1, { 0x0000a5f1 } }, { 0x0000a5f2, 1, { 0x0000a5f2 } }, { 0x0000a5f3, 1, { 0x0000a5f3 } }, { 0x0000a5f4, 1, { 0x0000a5f4 } }, { 0x0000a5f5, 1, { 0x0000a5f5 } }, { 0x0000a5f6, 1, { 0x0000a5f6 } }, { 0x0000a5f7, 1, { 0x0000a5f7 } }, { 0x0000a5f8, 1, { 0x0000a5f8 } }, { 0x0000a5f9, 1, { 0x0000a5f9 } }, { 0x0000a5fa, 1, { 0x0000a5fa } }, { 0x0000a5fb, 1, { 0x0000a5fb } }, { 0x0000a5fc, 1, { 0x0000a5fc } }, { 0x0000a5fd, 1, { 0x0000a5fd } }, { 0x0000a5fe, 1, { 0x0000a5fe } }, { 0x0000a5ff, 1, { 0x0000a5ff } }, { 0x0000a600, 1, { 0x0000a600 } }, { 0x0000a601, 1, { 0x0000a601 } }, { 0x0000a602, 1, { 0x0000a602 } }, { 0x0000a603, 1, { 0x0000a603 } }, { 0x0000a604, 1, { 0x0000a604 } }, { 0x0000a605, 1, { 0x0000a605 } }, { 0x0000a606, 1, { 0x0000a606 } }, { 0x0000a607, 1, { 0x0000a607 } }, { 0x0000a608, 1, { 0x0000a608 } }, { 0x0000a609, 1, { 0x0000a609 } }, { 0x0000a60a, 1, { 0x0000a60a } }, { 0x0000a60b, 1, { 0x0000a60b } }, { 0x0000a60c, 1, { 0x0000a60c } }, { 0x0000a60d, 1, { 0x0000a60d } }, { 0x0000a60e, 1, { 0x0000a60e } }, { 0x0000a60f, 1, { 0x0000a60f } }, { 0x0000a610, 1, { 0x0000a610 } }, { 0x0000a611, 1, { 0x0000a611 } }, { 0x0000a612, 1, { 0x0000a612 } }, { 0x0000a613, 1, { 0x0000a613 } }, { 0x0000a614, 1, { 0x0000a614 } }, { 0x0000a615, 1, { 0x0000a615 } }, { 0x0000a616, 1, { 0x0000a616 } }, { 0x0000a617, 1, { 0x0000a617 } }, { 0x0000a618, 1, { 0x0000a618 } }, { 0x0000a619, 1, { 0x0000a619 } }, { 0x0000a61a, 1, { 0x0000a61a } }, { 0x0000a61b, 1, { 0x0000a61b } }, { 0x0000a61c, 1, { 0x0000a61c } }, { 0x0000a61d, 1, { 0x0000a61d } }, { 0x0000a61e, 1, { 0x0000a61e } }, { 0x0000a61f, 1, { 0x0000a61f } }, { 0x0000a620, 1, { 0x0000a620 } }, { 0x0000a621, 1, { 0x0000a621 } }, { 0x0000a622, 1, { 0x0000a622 } }, { 0x0000a623, 1, { 0x0000a623 } }, { 0x0000a624, 1, { 0x0000a624 } }, { 0x0000a625, 1, { 0x0000a625 } }, { 0x0000a626, 1, { 0x0000a626 } }, { 0x0000a627, 1, { 0x0000a627 } }, { 0x0000a628, 1, { 0x0000a628 } }, { 0x0000a629, 1, { 0x0000a629 } }, { 0x0000a62a, 1, { 0x0000a62a } }, { 0x0000a62b, 1, { 0x0000a62b } }, { 0x0000a640, 1, { 0x0000a640 } }, { 0x0000a641, 1, { 0x0000a641 } }, { 0x0000a642, 1, { 0x0000a642 } }, { 0x0000a643, 1, { 0x0000a643 } }, { 0x0000a644, 1, { 0x0000a644 } }, { 0x0000a645, 1, { 0x0000a645 } }, { 0x0000a646, 1, { 0x0000a646 } }, { 0x0000a647, 1, { 0x0000a647 } }, { 0x0000a648, 1, { 0x0000a648 } }, { 0x0000a649, 1, { 0x0000a649 } }, { 0x0000a64a, 1, { 0x0000a64a } }, { 0x0000a64b, 1, { 0x0000a64b } }, { 0x0000a64c, 1, { 0x0000a64c } }, { 0x0000a64d, 1, { 0x0000a64d } }, { 0x0000a64e, 1, { 0x0000a64e } }, { 0x0000a64f, 1, { 0x0000a64f } }, { 0x0000a650, 1, { 0x0000a650 } }, { 0x0000a651, 1, { 0x0000a651 } }, { 0x0000a652, 1, { 0x0000a652 } }, { 0x0000a653, 1, { 0x0000a653 } }, { 0x0000a654, 1, { 0x0000a654 } }, { 0x0000a655, 1, { 0x0000a655 } }, { 0x0000a656, 1, { 0x0000a656 } }, { 0x0000a657, 1, { 0x0000a657 } }, { 0x0000a658, 1, { 0x0000a658 } }, { 0x0000a659, 1, { 0x0000a659 } }, { 0x0000a65a, 1, { 0x0000a65a } }, { 0x0000a65b, 1, { 0x0000a65b } }, { 0x0000a65c, 1, { 0x0000a65c } }, { 0x0000a65d, 1, { 0x0000a65d } }, { 0x0000a65e, 1, { 0x0000a65e } }, { 0x0000a65f, 1, { 0x0000a65f } }, { 0x0000a660, 1, { 0x0000a660 } }, { 0x0000a661, 1, { 0x0000a661 } }, { 0x0000a662, 1, { 0x0000a662 } }, { 0x0000a663, 1, { 0x0000a663 } }, { 0x0000a664, 1, { 0x0000a664 } }, { 0x0000a665, 1, { 0x0000a665 } }, { 0x0000a666, 1, { 0x0000a666 } }, { 0x0000a667, 1, { 0x0000a667 } }, { 0x0000a668, 1, { 0x0000a668 } }, { 0x0000a669, 1, { 0x0000a669 } }, { 0x0000a66a, 1, { 0x0000a66a } }, { 0x0000a66b, 1, { 0x0000a66b } }, { 0x0000a66c, 1, { 0x0000a66c } }, { 0x0000a66d, 1, { 0x0000a66d } }, { 0x0000a66e, 1, { 0x0000a66e } }, { 0x0000a66f, 1, { 0x0000a66f } }, { 0x0000a670, 1, { 0x0000a670 } }, { 0x0000a671, 1, { 0x0000a671 } }, { 0x0000a672, 1, { 0x0000a672 } }, { 0x0000a673, 1, { 0x0000a673 } }, { 0x0000a674, 1, { 0x0000a674 } }, { 0x0000a675, 1, { 0x0000a675 } }, { 0x0000a676, 1, { 0x0000a676 } }, { 0x0000a677, 1, { 0x0000a677 } }, { 0x0000a678, 1, { 0x0000a678 } }, { 0x0000a679, 1, { 0x0000a679 } }, { 0x0000a67a, 1, { 0x0000a67a } }, { 0x0000a67b, 1, { 0x0000a67b } }, { 0x0000a67c, 1, { 0x0000a67c } }, { 0x0000a67d, 1, { 0x0000a67d } }, { 0x0000a67e, 1, { 0x0000a67e } }, { 0x0000a67f, 1, { 0x0000a67f } }, { 0x0000a680, 1, { 0x0000a680 } }, { 0x0000a681, 1, { 0x0000a681 } }, { 0x0000a682, 1, { 0x0000a682 } }, { 0x0000a683, 1, { 0x0000a683 } }, { 0x0000a684, 1, { 0x0000a684 } }, { 0x0000a685, 1, { 0x0000a685 } }, { 0x0000a686, 1, { 0x0000a686 } }, { 0x0000a687, 1, { 0x0000a687 } }, { 0x0000a688, 1, { 0x0000a688 } }, { 0x0000a689, 1, { 0x0000a689 } }, { 0x0000a68a, 1, { 0x0000a68a } }, { 0x0000a68b, 1, { 0x0000a68b } }, { 0x0000a68c, 1, { 0x0000a68c } }, { 0x0000a68d, 1, { 0x0000a68d } }, { 0x0000a68e, 1, { 0x0000a68e } }, { 0x0000a68f, 1, { 0x0000a68f } }, { 0x0000a690, 1, { 0x0000a690 } }, { 0x0000a691, 1, { 0x0000a691 } }, { 0x0000a692, 1, { 0x0000a692 } }, { 0x0000a693, 1, { 0x0000a693 } }, { 0x0000a694, 1, { 0x0000a694 } }, { 0x0000a695, 1, { 0x0000a695 } }, { 0x0000a696, 1, { 0x0000a696 } }, { 0x0000a697, 1, { 0x0000a697 } }, { 0x0000a698, 1, { 0x0000a698 } }, { 0x0000a699, 1, { 0x0000a699 } }, { 0x0000a69a, 1, { 0x0000a69a } }, { 0x0000a69b, 1, { 0x0000a69b } }, { 0x0000a69c, 1, { 0x0000a69c } }, { 0x0000a69d, 1, { 0x0000a69d } }, { 0x0000a69e, 1, { 0x0000a69e } }, { 0x0000a69f, 1, { 0x0000a69f } }, { 0x0000a6a0, 1, { 0x0000a6a0 } }, { 0x0000a6a1, 1, { 0x0000a6a1 } }, { 0x0000a6a2, 1, { 0x0000a6a2 } }, { 0x0000a6a3, 1, { 0x0000a6a3 } }, { 0x0000a6a4, 1, { 0x0000a6a4 } }, { 0x0000a6a5, 1, { 0x0000a6a5 } }, { 0x0000a6a6, 1, { 0x0000a6a6 } }, { 0x0000a6a7, 1, { 0x0000a6a7 } }, { 0x0000a6a8, 1, { 0x0000a6a8 } }, { 0x0000a6a9, 1, { 0x0000a6a9 } }, { 0x0000a6aa, 1, { 0x0000a6aa } }, { 0x0000a6ab, 1, { 0x0000a6ab } }, { 0x0000a6ac, 1, { 0x0000a6ac } }, { 0x0000a6ad, 1, { 0x0000a6ad } }, { 0x0000a6ae, 1, { 0x0000a6ae } }, { 0x0000a6af, 1, { 0x0000a6af } }, { 0x0000a6b0, 1, { 0x0000a6b0 } }, { 0x0000a6b1, 1, { 0x0000a6b1 } }, { 0x0000a6b2, 1, { 0x0000a6b2 } }, { 0x0000a6b3, 1, { 0x0000a6b3 } }, { 0x0000a6b4, 1, { 0x0000a6b4 } }, { 0x0000a6b5, 1, { 0x0000a6b5 } }, { 0x0000a6b6, 1, { 0x0000a6b6 } }, { 0x0000a6b7, 1, { 0x0000a6b7 } }, { 0x0000a6b8, 1, { 0x0000a6b8 } }, { 0x0000a6b9, 1, { 0x0000a6b9 } }, { 0x0000a6ba, 1, { 0x0000a6ba } }, { 0x0000a6bb, 1, { 0x0000a6bb } }, { 0x0000a6bc, 1, { 0x0000a6bc } }, { 0x0000a6bd, 1, { 0x0000a6bd } }, { 0x0000a6be, 1, { 0x0000a6be } }, { 0x0000a6bf, 1, { 0x0000a6bf } }, { 0x0000a6c0, 1, { 0x0000a6c0 } }, { 0x0000a6c1, 1, { 0x0000a6c1 } }, { 0x0000a6c2, 1, { 0x0000a6c2 } }, { 0x0000a6c3, 1, { 0x0000a6c3 } }, { 0x0000a6c4, 1, { 0x0000a6c4 } }, { 0x0000a6c5, 1, { 0x0000a6c5 } }, { 0x0000a6c6, 1, { 0x0000a6c6 } }, { 0x0000a6c7, 1, { 0x0000a6c7 } }, { 0x0000a6c8, 1, { 0x0000a6c8 } }, { 0x0000a6c9, 1, { 0x0000a6c9 } }, { 0x0000a6ca, 1, { 0x0000a6ca } }, { 0x0000a6cb, 1, { 0x0000a6cb } }, { 0x0000a6cc, 1, { 0x0000a6cc } }, { 0x0000a6cd, 1, { 0x0000a6cd } }, { 0x0000a6ce, 1, { 0x0000a6ce } }, { 0x0000a6cf, 1, { 0x0000a6cf } }, { 0x0000a6d0, 1, { 0x0000a6d0 } }, { 0x0000a6d1, 1, { 0x0000a6d1 } }, { 0x0000a6d2, 1, { 0x0000a6d2 } }, { 0x0000a6d3, 1, { 0x0000a6d3 } }, { 0x0000a6d4, 1, { 0x0000a6d4 } }, { 0x0000a6d5, 1, { 0x0000a6d5 } }, { 0x0000a6d6, 1, { 0x0000a6d6 } }, { 0x0000a6d7, 1, { 0x0000a6d7 } }, { 0x0000a6d8, 1, { 0x0000a6d8 } }, { 0x0000a6d9, 1, { 0x0000a6d9 } }, { 0x0000a6da, 1, { 0x0000a6da } }, { 0x0000a6db, 1, { 0x0000a6db } }, { 0x0000a6dc, 1, { 0x0000a6dc } }, { 0x0000a6dd, 1, { 0x0000a6dd } }, { 0x0000a6de, 1, { 0x0000a6de } }, { 0x0000a6df, 1, { 0x0000a6df } }, { 0x0000a6e0, 1, { 0x0000a6e0 } }, { 0x0000a6e1, 1, { 0x0000a6e1 } }, { 0x0000a6e2, 1, { 0x0000a6e2 } }, { 0x0000a6e3, 1, { 0x0000a6e3 } }, { 0x0000a6e4, 1, { 0x0000a6e4 } }, { 0x0000a6e5, 1, { 0x0000a6e5 } }, { 0x0000a6e6, 1, { 0x0000a6e6 } }, { 0x0000a6e7, 1, { 0x0000a6e7 } }, { 0x0000a6e8, 1, { 0x0000a6e8 } }, { 0x0000a6e9, 1, { 0x0000a6e9 } }, { 0x0000a6ea, 1, { 0x0000a6ea } }, { 0x0000a6eb, 1, { 0x0000a6eb } }, { 0x0000a6ec, 1, { 0x0000a6ec } }, { 0x0000a6ed, 1, { 0x0000a6ed } }, { 0x0000a6ee, 1, { 0x0000a6ee } }, { 0x0000a6ef, 1, { 0x0000a6ef } }, { 0x0000a6f0, 1, { 0x0000a6f0 } }, { 0x0000a6f1, 1, { 0x0000a6f1 } }, { 0x0000a6f2, 1, { 0x0000a6f2 } }, { 0x0000a6f3, 1, { 0x0000a6f3 } }, { 0x0000a6f4, 1, { 0x0000a6f4 } }, { 0x0000a6f5, 1, { 0x0000a6f5 } }, { 0x0000a6f6, 1, { 0x0000a6f6 } }, { 0x0000a6f7, 1, { 0x0000a6f7 } }, { 0x0000a700, 1, { 0x0000a700 } }, { 0x0000a701, 1, { 0x0000a701 } }, { 0x0000a702, 1, { 0x0000a702 } }, { 0x0000a703, 1, { 0x0000a703 } }, { 0x0000a704, 1, { 0x0000a704 } }, { 0x0000a705, 1, { 0x0000a705 } }, { 0x0000a706, 1, { 0x0000a706 } }, { 0x0000a707, 1, { 0x0000a707 } }, { 0x0000a708, 1, { 0x0000a708 } }, { 0x0000a709, 1, { 0x0000a709 } }, { 0x0000a70a, 1, { 0x0000a70a } }, { 0x0000a70b, 1, { 0x0000a70b } }, { 0x0000a70c, 1, { 0x0000a70c } }, { 0x0000a70d, 1, { 0x0000a70d } }, { 0x0000a70e, 1, { 0x0000a70e } }, { 0x0000a70f, 1, { 0x0000a70f } }, { 0x0000a710, 1, { 0x0000a710 } }, { 0x0000a711, 1, { 0x0000a711 } }, { 0x0000a712, 1, { 0x0000a712 } }, { 0x0000a713, 1, { 0x0000a713 } }, { 0x0000a714, 1, { 0x0000a714 } }, { 0x0000a715, 1, { 0x0000a715 } }, { 0x0000a716, 1, { 0x0000a716 } }, { 0x0000a717, 1, { 0x0000a717 } }, { 0x0000a718, 1, { 0x0000a718 } }, { 0x0000a719, 1, { 0x0000a719 } }, { 0x0000a71a, 1, { 0x0000a71a } }, { 0x0000a71b, 1, { 0x0000a71b } }, { 0x0000a71c, 1, { 0x0000a71c } }, { 0x0000a71d, 1, { 0x0000a71d } }, { 0x0000a71e, 1, { 0x0000a71e } }, { 0x0000a71f, 1, { 0x0000a71f } }, { 0x0000a720, 1, { 0x0000a720 } }, { 0x0000a721, 1, { 0x0000a721 } }, { 0x0000a722, 1, { 0x0000a722 } }, { 0x0000a723, 1, { 0x0000a723 } }, { 0x0000a724, 1, { 0x0000a724 } }, { 0x0000a725, 1, { 0x0000a725 } }, { 0x0000a726, 1, { 0x0000a726 } }, { 0x0000a727, 1, { 0x0000a727 } }, { 0x0000a728, 1, { 0x0000a728 } }, { 0x0000a729, 1, { 0x0000a729 } }, { 0x0000a72a, 1, { 0x0000a72a } }, { 0x0000a72b, 1, { 0x0000a72b } }, { 0x0000a72c, 1, { 0x0000a72c } }, { 0x0000a72d, 1, { 0x0000a72d } }, { 0x0000a72e, 1, { 0x0000a72e } }, { 0x0000a72f, 1, { 0x0000a72f } }, { 0x0000a730, 1, { 0x0000a730 } }, { 0x0000a731, 1, { 0x0000a731 } }, { 0x0000a732, 1, { 0x0000a732 } }, { 0x0000a733, 1, { 0x0000a733 } }, { 0x0000a734, 1, { 0x0000a734 } }, { 0x0000a735, 1, { 0x0000a735 } }, { 0x0000a736, 1, { 0x0000a736 } }, { 0x0000a737, 1, { 0x0000a737 } }, { 0x0000a738, 1, { 0x0000a738 } }, { 0x0000a739, 1, { 0x0000a739 } }, { 0x0000a73a, 1, { 0x0000a73a } }, { 0x0000a73b, 1, { 0x0000a73b } }, { 0x0000a73c, 1, { 0x0000a73c } }, { 0x0000a73d, 1, { 0x0000a73d } }, { 0x0000a73e, 1, { 0x0000a73e } }, { 0x0000a73f, 1, { 0x0000a73f } }, { 0x0000a740, 1, { 0x0000a740 } }, { 0x0000a741, 1, { 0x0000a741 } }, { 0x0000a742, 1, { 0x0000a742 } }, { 0x0000a743, 1, { 0x0000a743 } }, { 0x0000a744, 1, { 0x0000a744 } }, { 0x0000a745, 1, { 0x0000a745 } }, { 0x0000a746, 1, { 0x0000a746 } }, { 0x0000a747, 1, { 0x0000a747 } }, { 0x0000a748, 1, { 0x0000a748 } }, { 0x0000a749, 1, { 0x0000a749 } }, { 0x0000a74a, 1, { 0x0000a74a } }, { 0x0000a74b, 1, { 0x0000a74b } }, { 0x0000a74c, 1, { 0x0000a74c } }, { 0x0000a74d, 1, { 0x0000a74d } }, { 0x0000a74e, 1, { 0x0000a74e } }, { 0x0000a74f, 1, { 0x0000a74f } }, { 0x0000a750, 1, { 0x0000a750 } }, { 0x0000a751, 1, { 0x0000a751 } }, { 0x0000a752, 1, { 0x0000a752 } }, { 0x0000a753, 1, { 0x0000a753 } }, { 0x0000a754, 1, { 0x0000a754 } }, { 0x0000a755, 1, { 0x0000a755 } }, { 0x0000a756, 1, { 0x0000a756 } }, { 0x0000a757, 1, { 0x0000a757 } }, { 0x0000a758, 1, { 0x0000a758 } }, { 0x0000a759, 1, { 0x0000a759 } }, { 0x0000a75a, 1, { 0x0000a75a } }, { 0x0000a75b, 1, { 0x0000a75b } }, { 0x0000a75c, 1, { 0x0000a75c } }, { 0x0000a75d, 1, { 0x0000a75d } }, { 0x0000a75e, 1, { 0x0000a75e } }, { 0x0000a75f, 1, { 0x0000a75f } }, { 0x0000a760, 1, { 0x0000a760 } }, { 0x0000a761, 1, { 0x0000a761 } }, { 0x0000a762, 1, { 0x0000a762 } }, { 0x0000a763, 1, { 0x0000a763 } }, { 0x0000a764, 1, { 0x0000a764 } }, { 0x0000a765, 1, { 0x0000a765 } }, { 0x0000a766, 1, { 0x0000a766 } }, { 0x0000a767, 1, { 0x0000a767 } }, { 0x0000a768, 1, { 0x0000a768 } }, { 0x0000a769, 1, { 0x0000a769 } }, { 0x0000a76a, 1, { 0x0000a76a } }, { 0x0000a76b, 1, { 0x0000a76b } }, { 0x0000a76c, 1, { 0x0000a76c } }, { 0x0000a76d, 1, { 0x0000a76d } }, { 0x0000a76e, 1, { 0x0000a76e } }, { 0x0000a76f, 1, { 0x0000a76f } }, { 0x0000a770, 1, { 0x0000a770 } }, { 0x0000a771, 1, { 0x0000a771 } }, { 0x0000a772, 1, { 0x0000a772 } }, { 0x0000a773, 1, { 0x0000a773 } }, { 0x0000a774, 1, { 0x0000a774 } }, { 0x0000a775, 1, { 0x0000a775 } }, { 0x0000a776, 1, { 0x0000a776 } }, { 0x0000a777, 1, { 0x0000a777 } }, { 0x0000a778, 1, { 0x0000a778 } }, { 0x0000a779, 1, { 0x0000a779 } }, { 0x0000a77a, 1, { 0x0000a77a } }, { 0x0000a77b, 1, { 0x0000a77b } }, { 0x0000a77c, 1, { 0x0000a77c } }, { 0x0000a77d, 1, { 0x0000a77d } }, { 0x0000a77e, 1, { 0x0000a77e } }, { 0x0000a77f, 1, { 0x0000a77f } }, { 0x0000a780, 1, { 0x0000a780 } }, { 0x0000a781, 1, { 0x0000a781 } }, { 0x0000a782, 1, { 0x0000a782 } }, { 0x0000a783, 1, { 0x0000a783 } }, { 0x0000a784, 1, { 0x0000a784 } }, { 0x0000a785, 1, { 0x0000a785 } }, { 0x0000a786, 1, { 0x0000a786 } }, { 0x0000a787, 1, { 0x0000a787 } }, { 0x0000a788, 1, { 0x0000a788 } }, { 0x0000a789, 1, { 0x0000a789 } }, { 0x0000a78a, 1, { 0x0000a78a } }, { 0x0000a78b, 1, { 0x0000a78b } }, { 0x0000a78c, 1, { 0x0000a78c } }, { 0x0000a78d, 1, { 0x0000a78d } }, { 0x0000a78e, 1, { 0x0000a78e } }, { 0x0000a78f, 1, { 0x0000a78f } }, { 0x0000a790, 1, { 0x0000a790 } }, { 0x0000a791, 1, { 0x0000a791 } }, { 0x0000a792, 1, { 0x0000a792 } }, { 0x0000a793, 1, { 0x0000a793 } }, { 0x0000a794, 1, { 0x0000a794 } }, { 0x0000a795, 1, { 0x0000a795 } }, { 0x0000a796, 1, { 0x0000a796 } }, { 0x0000a797, 1, { 0x0000a797 } }, { 0x0000a798, 1, { 0x0000a798 } }, { 0x0000a799, 1, { 0x0000a799 } }, { 0x0000a79a, 1, { 0x0000a79a } }, { 0x0000a79b, 1, { 0x0000a79b } }, { 0x0000a79c, 1, { 0x0000a79c } }, { 0x0000a79d, 1, { 0x0000a79d } }, { 0x0000a79e, 1, { 0x0000a79e } }, { 0x0000a79f, 1, { 0x0000a79f } }, { 0x0000a7a0, 1, { 0x0000a7a0 } }, { 0x0000a7a1, 1, { 0x0000a7a1 } }, { 0x0000a7a2, 1, { 0x0000a7a2 } }, { 0x0000a7a3, 1, { 0x0000a7a3 } }, { 0x0000a7a4, 1, { 0x0000a7a4 } }, { 0x0000a7a5, 1, { 0x0000a7a5 } }, { 0x0000a7a6, 1, { 0x0000a7a6 } }, { 0x0000a7a7, 1, { 0x0000a7a7 } }, { 0x0000a7a8, 1, { 0x0000a7a8 } }, { 0x0000a7a9, 1, { 0x0000a7a9 } }, { 0x0000a7aa, 1, { 0x0000a7aa } }, { 0x0000a7ab, 1, { 0x0000a7ab } }, { 0x0000a7ac, 1, { 0x0000a7ac } }, { 0x0000a7ad, 1, { 0x0000a7ad } }, { 0x0000a7ae, 1, { 0x0000a7ae } }, { 0x0000a7b0, 1, { 0x0000a7b0 } }, { 0x0000a7b1, 1, { 0x0000a7b1 } }, { 0x0000a7b2, 1, { 0x0000a7b2 } }, { 0x0000a7b3, 1, { 0x0000a7b3 } }, { 0x0000a7b4, 1, { 0x0000a7b4 } }, { 0x0000a7b5, 1, { 0x0000a7b5 } }, { 0x0000a7b6, 1, { 0x0000a7b6 } }, { 0x0000a7b7, 1, { 0x0000a7b7 } }, { 0x0000a7f7, 1, { 0x0000a7f7 } }, { 0x0000a7f8, 1, { 0x0000a7f8 } }, { 0x0000a7f9, 1, { 0x0000a7f9 } }, { 0x0000a7fa, 1, { 0x0000a7fa } }, { 0x0000a7fb, 1, { 0x0000a7fb } }, { 0x0000a7fc, 1, { 0x0000a7fc } }, { 0x0000a7fd, 1, { 0x0000a7fd } }, { 0x0000a7fe, 1, { 0x0000a7fe } }, { 0x0000a7ff, 1, { 0x0000a7ff } }, { 0x0000a800, 1, { 0x0000a800 } }, { 0x0000a801, 1, { 0x0000a801 } }, { 0x0000a802, 1, { 0x0000a802 } }, { 0x0000a803, 1, { 0x0000a803 } }, { 0x0000a804, 1, { 0x0000a804 } }, { 0x0000a805, 1, { 0x0000a805 } }, { 0x0000a806, 1, { 0x0000a806 } }, { 0x0000a807, 1, { 0x0000a807 } }, { 0x0000a808, 1, { 0x0000a808 } }, { 0x0000a809, 1, { 0x0000a809 } }, { 0x0000a80a, 1, { 0x0000a80a } }, { 0x0000a80b, 1, { 0x0000a80b } }, { 0x0000a80c, 1, { 0x0000a80c } }, { 0x0000a80d, 1, { 0x0000a80d } }, { 0x0000a80e, 1, { 0x0000a80e } }, { 0x0000a80f, 1, { 0x0000a80f } }, { 0x0000a810, 1, { 0x0000a810 } }, { 0x0000a811, 1, { 0x0000a811 } }, { 0x0000a812, 1, { 0x0000a812 } }, { 0x0000a813, 1, { 0x0000a813 } }, { 0x0000a814, 1, { 0x0000a814 } }, { 0x0000a815, 1, { 0x0000a815 } }, { 0x0000a816, 1, { 0x0000a816 } }, { 0x0000a817, 1, { 0x0000a817 } }, { 0x0000a818, 1, { 0x0000a818 } }, { 0x0000a819, 1, { 0x0000a819 } }, { 0x0000a81a, 1, { 0x0000a81a } }, { 0x0000a81b, 1, { 0x0000a81b } }, { 0x0000a81c, 1, { 0x0000a81c } }, { 0x0000a81d, 1, { 0x0000a81d } }, { 0x0000a81e, 1, { 0x0000a81e } }, { 0x0000a81f, 1, { 0x0000a81f } }, { 0x0000a820, 1, { 0x0000a820 } }, { 0x0000a821, 1, { 0x0000a821 } }, { 0x0000a822, 1, { 0x0000a822 } }, { 0x0000a823, 1, { 0x0000a823 } }, { 0x0000a824, 1, { 0x0000a824 } }, { 0x0000a825, 1, { 0x0000a825 } }, { 0x0000a826, 1, { 0x0000a826 } }, { 0x0000a827, 1, { 0x0000a827 } }, { 0x0000a828, 1, { 0x0000a828 } }, { 0x0000a829, 1, { 0x0000a829 } }, { 0x0000a82a, 1, { 0x0000a82a } }, { 0x0000a82b, 1, { 0x0000a82b } }, { 0x0000a830, 1, { 0x0000a830 } }, { 0x0000a831, 1, { 0x0000a831 } }, { 0x0000a832, 1, { 0x0000a832 } }, { 0x0000a833, 1, { 0x0000a833 } }, { 0x0000a834, 1, { 0x0000a834 } }, { 0x0000a835, 1, { 0x0000a835 } }, { 0x0000a836, 1, { 0x0000a836 } }, { 0x0000a837, 1, { 0x0000a837 } }, { 0x0000a838, 1, { 0x0000a838 } }, { 0x0000a839, 1, { 0x0000a839 } }, { 0x0000a840, 1, { 0x0000a840 } }, { 0x0000a841, 1, { 0x0000a841 } }, { 0x0000a842, 1, { 0x0000a842 } }, { 0x0000a843, 1, { 0x0000a843 } }, { 0x0000a844, 1, { 0x0000a844 } }, { 0x0000a845, 1, { 0x0000a845 } }, { 0x0000a846, 1, { 0x0000a846 } }, { 0x0000a847, 1, { 0x0000a847 } }, { 0x0000a848, 1, { 0x0000a848 } }, { 0x0000a849, 1, { 0x0000a849 } }, { 0x0000a84a, 1, { 0x0000a84a } }, { 0x0000a84b, 1, { 0x0000a84b } }, { 0x0000a84c, 1, { 0x0000a84c } }, { 0x0000a84d, 1, { 0x0000a84d } }, { 0x0000a84e, 1, { 0x0000a84e } }, { 0x0000a84f, 1, { 0x0000a84f } }, { 0x0000a850, 1, { 0x0000a850 } }, { 0x0000a851, 1, { 0x0000a851 } }, { 0x0000a852, 1, { 0x0000a852 } }, { 0x0000a853, 1, { 0x0000a853 } }, { 0x0000a854, 1, { 0x0000a854 } }, { 0x0000a855, 1, { 0x0000a855 } }, { 0x0000a856, 1, { 0x0000a856 } }, { 0x0000a857, 1, { 0x0000a857 } }, { 0x0000a858, 1, { 0x0000a858 } }, { 0x0000a859, 1, { 0x0000a859 } }, { 0x0000a85a, 1, { 0x0000a85a } }, { 0x0000a85b, 1, { 0x0000a85b } }, { 0x0000a85c, 1, { 0x0000a85c } }, { 0x0000a85d, 1, { 0x0000a85d } }, { 0x0000a85e, 1, { 0x0000a85e } }, { 0x0000a85f, 1, { 0x0000a85f } }, { 0x0000a860, 1, { 0x0000a860 } }, { 0x0000a861, 1, { 0x0000a861 } }, { 0x0000a862, 1, { 0x0000a862 } }, { 0x0000a863, 1, { 0x0000a863 } }, { 0x0000a864, 1, { 0x0000a864 } }, { 0x0000a865, 1, { 0x0000a865 } }, { 0x0000a866, 1, { 0x0000a866 } }, { 0x0000a867, 1, { 0x0000a867 } }, { 0x0000a868, 1, { 0x0000a868 } }, { 0x0000a869, 1, { 0x0000a869 } }, { 0x0000a86a, 1, { 0x0000a86a } }, { 0x0000a86b, 1, { 0x0000a86b } }, { 0x0000a86c, 1, { 0x0000a86c } }, { 0x0000a86d, 1, { 0x0000a86d } }, { 0x0000a86e, 1, { 0x0000a86e } }, { 0x0000a86f, 1, { 0x0000a86f } }, { 0x0000a870, 1, { 0x0000a870 } }, { 0x0000a871, 1, { 0x0000a871 } }, { 0x0000a872, 1, { 0x0000a872 } }, { 0x0000a873, 1, { 0x0000a873 } }, { 0x0000a874, 1, { 0x0000a874 } }, { 0x0000a875, 1, { 0x0000a875 } }, { 0x0000a876, 1, { 0x0000a876 } }, { 0x0000a877, 1, { 0x0000a877 } }, { 0x0000a880, 1, { 0x0000a880 } }, { 0x0000a881, 1, { 0x0000a881 } }, { 0x0000a882, 1, { 0x0000a882 } }, { 0x0000a883, 1, { 0x0000a883 } }, { 0x0000a884, 1, { 0x0000a884 } }, { 0x0000a885, 1, { 0x0000a885 } }, { 0x0000a886, 1, { 0x0000a886 } }, { 0x0000a887, 1, { 0x0000a887 } }, { 0x0000a888, 1, { 0x0000a888 } }, { 0x0000a889, 1, { 0x0000a889 } }, { 0x0000a88a, 1, { 0x0000a88a } }, { 0x0000a88b, 1, { 0x0000a88b } }, { 0x0000a88c, 1, { 0x0000a88c } }, { 0x0000a88d, 1, { 0x0000a88d } }, { 0x0000a88e, 1, { 0x0000a88e } }, { 0x0000a88f, 1, { 0x0000a88f } }, { 0x0000a890, 1, { 0x0000a890 } }, { 0x0000a891, 1, { 0x0000a891 } }, { 0x0000a892, 1, { 0x0000a892 } }, { 0x0000a893, 1, { 0x0000a893 } }, { 0x0000a894, 1, { 0x0000a894 } }, { 0x0000a895, 1, { 0x0000a895 } }, { 0x0000a896, 1, { 0x0000a896 } }, { 0x0000a897, 1, { 0x0000a897 } }, { 0x0000a898, 1, { 0x0000a898 } }, { 0x0000a899, 1, { 0x0000a899 } }, { 0x0000a89a, 1, { 0x0000a89a } }, { 0x0000a89b, 1, { 0x0000a89b } }, { 0x0000a89c, 1, { 0x0000a89c } }, { 0x0000a89d, 1, { 0x0000a89d } }, { 0x0000a89e, 1, { 0x0000a89e } }, { 0x0000a89f, 1, { 0x0000a89f } }, { 0x0000a8a0, 1, { 0x0000a8a0 } }, { 0x0000a8a1, 1, { 0x0000a8a1 } }, { 0x0000a8a2, 1, { 0x0000a8a2 } }, { 0x0000a8a3, 1, { 0x0000a8a3 } }, { 0x0000a8a4, 1, { 0x0000a8a4 } }, { 0x0000a8a5, 1, { 0x0000a8a5 } }, { 0x0000a8a6, 1, { 0x0000a8a6 } }, { 0x0000a8a7, 1, { 0x0000a8a7 } }, { 0x0000a8a8, 1, { 0x0000a8a8 } }, { 0x0000a8a9, 1, { 0x0000a8a9 } }, { 0x0000a8aa, 1, { 0x0000a8aa } }, { 0x0000a8ab, 1, { 0x0000a8ab } }, { 0x0000a8ac, 1, { 0x0000a8ac } }, { 0x0000a8ad, 1, { 0x0000a8ad } }, { 0x0000a8ae, 1, { 0x0000a8ae } }, { 0x0000a8af, 1, { 0x0000a8af } }, { 0x0000a8b0, 1, { 0x0000a8b0 } }, { 0x0000a8b1, 1, { 0x0000a8b1 } }, { 0x0000a8b2, 1, { 0x0000a8b2 } }, { 0x0000a8b3, 1, { 0x0000a8b3 } }, { 0x0000a8b4, 1, { 0x0000a8b4 } }, { 0x0000a8b5, 1, { 0x0000a8b5 } }, { 0x0000a8b6, 1, { 0x0000a8b6 } }, { 0x0000a8b7, 1, { 0x0000a8b7 } }, { 0x0000a8b8, 1, { 0x0000a8b8 } }, { 0x0000a8b9, 1, { 0x0000a8b9 } }, { 0x0000a8ba, 1, { 0x0000a8ba } }, { 0x0000a8bb, 1, { 0x0000a8bb } }, { 0x0000a8bc, 1, { 0x0000a8bc } }, { 0x0000a8bd, 1, { 0x0000a8bd } }, { 0x0000a8be, 1, { 0x0000a8be } }, { 0x0000a8bf, 1, { 0x0000a8bf } }, { 0x0000a8c0, 1, { 0x0000a8c0 } }, { 0x0000a8c1, 1, { 0x0000a8c1 } }, { 0x0000a8c2, 1, { 0x0000a8c2 } }, { 0x0000a8c3, 1, { 0x0000a8c3 } }, { 0x0000a8c4, 1, { 0x0000a8c4 } }, { 0x0000a8c5, 1, { 0x0000a8c5 } }, { 0x0000a8ce, 1, { 0x0000a8ce } }, { 0x0000a8cf, 1, { 0x0000a8cf } }, { 0x0000a8d0, 1, { 0x0000a8d0 } }, { 0x0000a8d1, 1, { 0x0000a8d1 } }, { 0x0000a8d2, 1, { 0x0000a8d2 } }, { 0x0000a8d3, 1, { 0x0000a8d3 } }, { 0x0000a8d4, 1, { 0x0000a8d4 } }, { 0x0000a8d5, 1, { 0x0000a8d5 } }, { 0x0000a8d6, 1, { 0x0000a8d6 } }, { 0x0000a8d7, 1, { 0x0000a8d7 } }, { 0x0000a8d8, 1, { 0x0000a8d8 } }, { 0x0000a8d9, 1, { 0x0000a8d9 } }, { 0x0000a8e0, 1, { 0x0000a8e0 } }, { 0x0000a8e1, 1, { 0x0000a8e1 } }, { 0x0000a8e2, 1, { 0x0000a8e2 } }, { 0x0000a8e3, 1, { 0x0000a8e3 } }, { 0x0000a8e4, 1, { 0x0000a8e4 } }, { 0x0000a8e5, 1, { 0x0000a8e5 } }, { 0x0000a8e6, 1, { 0x0000a8e6 } }, { 0x0000a8e7, 1, { 0x0000a8e7 } }, { 0x0000a8e8, 1, { 0x0000a8e8 } }, { 0x0000a8e9, 1, { 0x0000a8e9 } }, { 0x0000a8ea, 1, { 0x0000a8ea } }, { 0x0000a8eb, 1, { 0x0000a8eb } }, { 0x0000a8ec, 1, { 0x0000a8ec } }, { 0x0000a8ed, 1, { 0x0000a8ed } }, { 0x0000a8ee, 1, { 0x0000a8ee } }, { 0x0000a8ef, 1, { 0x0000a8ef } }, { 0x0000a8f0, 1, { 0x0000a8f0 } }, { 0x0000a8f1, 1, { 0x0000a8f1 } }, { 0x0000a8f2, 1, { 0x0000a8f2 } }, { 0x0000a8f3, 1, { 0x0000a8f3 } }, { 0x0000a8f4, 1, { 0x0000a8f4 } }, { 0x0000a8f5, 1, { 0x0000a8f5 } }, { 0x0000a8f6, 1, { 0x0000a8f6 } }, { 0x0000a8f7, 1, { 0x0000a8f7 } }, { 0x0000a8f8, 1, { 0x0000a8f8 } }, { 0x0000a8f9, 1, { 0x0000a8f9 } }, { 0x0000a8fa, 1, { 0x0000a8fa } }, { 0x0000a8fb, 1, { 0x0000a8fb } }, { 0x0000a8fc, 1, { 0x0000a8fc } }, { 0x0000a8fd, 1, { 0x0000a8fd } }, { 0x0000a900, 1, { 0x0000a900 } }, { 0x0000a901, 1, { 0x0000a901 } }, { 0x0000a902, 1, { 0x0000a902 } }, { 0x0000a903, 1, { 0x0000a903 } }, { 0x0000a904, 1, { 0x0000a904 } }, { 0x0000a905, 1, { 0x0000a905 } }, { 0x0000a906, 1, { 0x0000a906 } }, { 0x0000a907, 1, { 0x0000a907 } }, { 0x0000a908, 1, { 0x0000a908 } }, { 0x0000a909, 1, { 0x0000a909 } }, { 0x0000a90a, 1, { 0x0000a90a } }, { 0x0000a90b, 1, { 0x0000a90b } }, { 0x0000a90c, 1, { 0x0000a90c } }, { 0x0000a90d, 1, { 0x0000a90d } }, { 0x0000a90e, 1, { 0x0000a90e } }, { 0x0000a90f, 1, { 0x0000a90f } }, { 0x0000a910, 1, { 0x0000a910 } }, { 0x0000a911, 1, { 0x0000a911 } }, { 0x0000a912, 1, { 0x0000a912 } }, { 0x0000a913, 1, { 0x0000a913 } }, { 0x0000a914, 1, { 0x0000a914 } }, { 0x0000a915, 1, { 0x0000a915 } }, { 0x0000a916, 1, { 0x0000a916 } }, { 0x0000a917, 1, { 0x0000a917 } }, { 0x0000a918, 1, { 0x0000a918 } }, { 0x0000a919, 1, { 0x0000a919 } }, { 0x0000a91a, 1, { 0x0000a91a } }, { 0x0000a91b, 1, { 0x0000a91b } }, { 0x0000a91c, 1, { 0x0000a91c } }, { 0x0000a91d, 1, { 0x0000a91d } }, { 0x0000a91e, 1, { 0x0000a91e } }, { 0x0000a91f, 1, { 0x0000a91f } }, { 0x0000a920, 1, { 0x0000a920 } }, { 0x0000a921, 1, { 0x0000a921 } }, { 0x0000a922, 1, { 0x0000a922 } }, { 0x0000a923, 1, { 0x0000a923 } }, { 0x0000a924, 1, { 0x0000a924 } }, { 0x0000a925, 1, { 0x0000a925 } }, { 0x0000a926, 1, { 0x0000a926 } }, { 0x0000a927, 1, { 0x0000a927 } }, { 0x0000a928, 1, { 0x0000a928 } }, { 0x0000a929, 1, { 0x0000a929 } }, { 0x0000a92a, 1, { 0x0000a92a } }, { 0x0000a92b, 1, { 0x0000a92b } }, { 0x0000a92c, 1, { 0x0000a92c } }, { 0x0000a92d, 1, { 0x0000a92d } }, { 0x0000a92e, 1, { 0x0000a92e } }, { 0x0000a92f, 1, { 0x0000a92f } }, { 0x0000a930, 1, { 0x0000a930 } }, { 0x0000a931, 1, { 0x0000a931 } }, { 0x0000a932, 1, { 0x0000a932 } }, { 0x0000a933, 1, { 0x0000a933 } }, { 0x0000a934, 1, { 0x0000a934 } }, { 0x0000a935, 1, { 0x0000a935 } }, { 0x0000a936, 1, { 0x0000a936 } }, { 0x0000a937, 1, { 0x0000a937 } }, { 0x0000a938, 1, { 0x0000a938 } }, { 0x0000a939, 1, { 0x0000a939 } }, { 0x0000a93a, 1, { 0x0000a93a } }, { 0x0000a93b, 1, { 0x0000a93b } }, { 0x0000a93c, 1, { 0x0000a93c } }, { 0x0000a93d, 1, { 0x0000a93d } }, { 0x0000a93e, 1, { 0x0000a93e } }, { 0x0000a93f, 1, { 0x0000a93f } }, { 0x0000a940, 1, { 0x0000a940 } }, { 0x0000a941, 1, { 0x0000a941 } }, { 0x0000a942, 1, { 0x0000a942 } }, { 0x0000a943, 1, { 0x0000a943 } }, { 0x0000a944, 1, { 0x0000a944 } }, { 0x0000a945, 1, { 0x0000a945 } }, { 0x0000a946, 1, { 0x0000a946 } }, { 0x0000a947, 1, { 0x0000a947 } }, { 0x0000a948, 1, { 0x0000a948 } }, { 0x0000a949, 1, { 0x0000a949 } }, { 0x0000a94a, 1, { 0x0000a94a } }, { 0x0000a94b, 1, { 0x0000a94b } }, { 0x0000a94c, 1, { 0x0000a94c } }, { 0x0000a94d, 1, { 0x0000a94d } }, { 0x0000a94e, 1, { 0x0000a94e } }, { 0x0000a94f, 1, { 0x0000a94f } }, { 0x0000a950, 1, { 0x0000a950 } }, { 0x0000a951, 1, { 0x0000a951 } }, { 0x0000a952, 1, { 0x0000a952 } }, { 0x0000a953, 1, { 0x0000a953 } }, { 0x0000a95f, 1, { 0x0000a95f } }, { 0x0000a960, 1, { 0x0000a960 } }, { 0x0000a961, 1, { 0x0000a961 } }, { 0x0000a962, 1, { 0x0000a962 } }, { 0x0000a963, 1, { 0x0000a963 } }, { 0x0000a964, 1, { 0x0000a964 } }, { 0x0000a965, 1, { 0x0000a965 } }, { 0x0000a966, 1, { 0x0000a966 } }, { 0x0000a967, 1, { 0x0000a967 } }, { 0x0000a968, 1, { 0x0000a968 } }, { 0x0000a969, 1, { 0x0000a969 } }, { 0x0000a96a, 1, { 0x0000a96a } }, { 0x0000a96b, 1, { 0x0000a96b } }, { 0x0000a96c, 1, { 0x0000a96c } }, { 0x0000a96d, 1, { 0x0000a96d } }, { 0x0000a96e, 1, { 0x0000a96e } }, { 0x0000a96f, 1, { 0x0000a96f } }, { 0x0000a970, 1, { 0x0000a970 } }, { 0x0000a971, 1, { 0x0000a971 } }, { 0x0000a972, 1, { 0x0000a972 } }, { 0x0000a973, 1, { 0x0000a973 } }, { 0x0000a974, 1, { 0x0000a974 } }, { 0x0000a975, 1, { 0x0000a975 } }, { 0x0000a976, 1, { 0x0000a976 } }, { 0x0000a977, 1, { 0x0000a977 } }, { 0x0000a978, 1, { 0x0000a978 } }, { 0x0000a979, 1, { 0x0000a979 } }, { 0x0000a97a, 1, { 0x0000a97a } }, { 0x0000a97b, 1, { 0x0000a97b } }, { 0x0000a97c, 1, { 0x0000a97c } }, { 0x0000a980, 1, { 0x0000a980 } }, { 0x0000a981, 1, { 0x0000a981 } }, { 0x0000a982, 1, { 0x0000a982 } }, { 0x0000a983, 1, { 0x0000a983 } }, { 0x0000a984, 1, { 0x0000a984 } }, { 0x0000a985, 1, { 0x0000a985 } }, { 0x0000a986, 1, { 0x0000a986 } }, { 0x0000a987, 1, { 0x0000a987 } }, { 0x0000a988, 1, { 0x0000a988 } }, { 0x0000a989, 1, { 0x0000a989 } }, { 0x0000a98a, 1, { 0x0000a98a } }, { 0x0000a98b, 1, { 0x0000a98b } }, { 0x0000a98c, 1, { 0x0000a98c } }, { 0x0000a98d, 1, { 0x0000a98d } }, { 0x0000a98e, 1, { 0x0000a98e } }, { 0x0000a98f, 1, { 0x0000a98f } }, { 0x0000a990, 1, { 0x0000a990 } }, { 0x0000a991, 1, { 0x0000a991 } }, { 0x0000a992, 1, { 0x0000a992 } }, { 0x0000a993, 1, { 0x0000a993 } }, { 0x0000a994, 1, { 0x0000a994 } }, { 0x0000a995, 1, { 0x0000a995 } }, { 0x0000a996, 1, { 0x0000a996 } }, { 0x0000a997, 1, { 0x0000a997 } }, { 0x0000a998, 1, { 0x0000a998 } }, { 0x0000a999, 1, { 0x0000a999 } }, { 0x0000a99a, 1, { 0x0000a99a } }, { 0x0000a99b, 1, { 0x0000a99b } }, { 0x0000a99c, 1, { 0x0000a99c } }, { 0x0000a99d, 1, { 0x0000a99d } }, { 0x0000a99e, 1, { 0x0000a99e } }, { 0x0000a99f, 1, { 0x0000a99f } }, { 0x0000a9a0, 1, { 0x0000a9a0 } }, { 0x0000a9a1, 1, { 0x0000a9a1 } }, { 0x0000a9a2, 1, { 0x0000a9a2 } }, { 0x0000a9a3, 1, { 0x0000a9a3 } }, { 0x0000a9a4, 1, { 0x0000a9a4 } }, { 0x0000a9a5, 1, { 0x0000a9a5 } }, { 0x0000a9a6, 1, { 0x0000a9a6 } }, { 0x0000a9a7, 1, { 0x0000a9a7 } }, { 0x0000a9a8, 1, { 0x0000a9a8 } }, { 0x0000a9a9, 1, { 0x0000a9a9 } }, { 0x0000a9aa, 1, { 0x0000a9aa } }, { 0x0000a9ab, 1, { 0x0000a9ab } }, { 0x0000a9ac, 1, { 0x0000a9ac } }, { 0x0000a9ad, 1, { 0x0000a9ad } }, { 0x0000a9ae, 1, { 0x0000a9ae } }, { 0x0000a9af, 1, { 0x0000a9af } }, { 0x0000a9b0, 1, { 0x0000a9b0 } }, { 0x0000a9b1, 1, { 0x0000a9b1 } }, { 0x0000a9b2, 1, { 0x0000a9b2 } }, { 0x0000a9b3, 1, { 0x0000a9b3 } }, { 0x0000a9b4, 1, { 0x0000a9b4 } }, { 0x0000a9b5, 1, { 0x0000a9b5 } }, { 0x0000a9b6, 1, { 0x0000a9b6 } }, { 0x0000a9b7, 1, { 0x0000a9b7 } }, { 0x0000a9b8, 1, { 0x0000a9b8 } }, { 0x0000a9b9, 1, { 0x0000a9b9 } }, { 0x0000a9ba, 1, { 0x0000a9ba } }, { 0x0000a9bb, 1, { 0x0000a9bb } }, { 0x0000a9bc, 1, { 0x0000a9bc } }, { 0x0000a9bd, 1, { 0x0000a9bd } }, { 0x0000a9be, 1, { 0x0000a9be } }, { 0x0000a9bf, 1, { 0x0000a9bf } }, { 0x0000a9c0, 1, { 0x0000a9c0 } }, { 0x0000a9c1, 1, { 0x0000a9c1 } }, { 0x0000a9c2, 1, { 0x0000a9c2 } }, { 0x0000a9c3, 1, { 0x0000a9c3 } }, { 0x0000a9c4, 1, { 0x0000a9c4 } }, { 0x0000a9c5, 1, { 0x0000a9c5 } }, { 0x0000a9c6, 1, { 0x0000a9c6 } }, { 0x0000a9c7, 1, { 0x0000a9c7 } }, { 0x0000a9c8, 1, { 0x0000a9c8 } }, { 0x0000a9c9, 1, { 0x0000a9c9 } }, { 0x0000a9ca, 1, { 0x0000a9ca } }, { 0x0000a9cb, 1, { 0x0000a9cb } }, { 0x0000a9cc, 1, { 0x0000a9cc } }, { 0x0000a9cd, 1, { 0x0000a9cd } }, { 0x0000a9cf, 1, { 0x0000a9cf } }, { 0x0000a9d0, 1, { 0x0000a9d0 } }, { 0x0000a9d1, 1, { 0x0000a9d1 } }, { 0x0000a9d2, 1, { 0x0000a9d2 } }, { 0x0000a9d3, 1, { 0x0000a9d3 } }, { 0x0000a9d4, 1, { 0x0000a9d4 } }, { 0x0000a9d5, 1, { 0x0000a9d5 } }, { 0x0000a9d6, 1, { 0x0000a9d6 } }, { 0x0000a9d7, 1, { 0x0000a9d7 } }, { 0x0000a9d8, 1, { 0x0000a9d8 } }, { 0x0000a9d9, 1, { 0x0000a9d9 } }, { 0x0000a9de, 1, { 0x0000a9de } }, { 0x0000a9df, 1, { 0x0000a9df } }, { 0x0000a9e0, 1, { 0x0000a9e0 } }, { 0x0000a9e1, 1, { 0x0000a9e1 } }, { 0x0000a9e2, 1, { 0x0000a9e2 } }, { 0x0000a9e3, 1, { 0x0000a9e3 } }, { 0x0000a9e4, 1, { 0x0000a9e4 } }, { 0x0000a9e5, 1, { 0x0000a9e5 } }, { 0x0000a9e6, 1, { 0x0000a9e6 } }, { 0x0000a9e7, 1, { 0x0000a9e7 } }, { 0x0000a9e8, 1, { 0x0000a9e8 } }, { 0x0000a9e9, 1, { 0x0000a9e9 } }, { 0x0000a9ea, 1, { 0x0000a9ea } }, { 0x0000a9eb, 1, { 0x0000a9eb } }, { 0x0000a9ec, 1, { 0x0000a9ec } }, { 0x0000a9ed, 1, { 0x0000a9ed } }, { 0x0000a9ee, 1, { 0x0000a9ee } }, { 0x0000a9ef, 1, { 0x0000a9ef } }, { 0x0000a9f0, 1, { 0x0000a9f0 } }, { 0x0000a9f1, 1, { 0x0000a9f1 } }, { 0x0000a9f2, 1, { 0x0000a9f2 } }, { 0x0000a9f3, 1, { 0x0000a9f3 } }, { 0x0000a9f4, 1, { 0x0000a9f4 } }, { 0x0000a9f5, 1, { 0x0000a9f5 } }, { 0x0000a9f6, 1, { 0x0000a9f6 } }, { 0x0000a9f7, 1, { 0x0000a9f7 } }, { 0x0000a9f8, 1, { 0x0000a9f8 } }, { 0x0000a9f9, 1, { 0x0000a9f9 } }, { 0x0000a9fa, 1, { 0x0000a9fa } }, { 0x0000a9fb, 1, { 0x0000a9fb } }, { 0x0000a9fc, 1, { 0x0000a9fc } }, { 0x0000a9fd, 1, { 0x0000a9fd } }, { 0x0000a9fe, 1, { 0x0000a9fe } }, { 0x0000aa00, 1, { 0x0000aa00 } }, { 0x0000aa01, 1, { 0x0000aa01 } }, { 0x0000aa02, 1, { 0x0000aa02 } }, { 0x0000aa03, 1, { 0x0000aa03 } }, { 0x0000aa04, 1, { 0x0000aa04 } }, { 0x0000aa05, 1, { 0x0000aa05 } }, { 0x0000aa06, 1, { 0x0000aa06 } }, { 0x0000aa07, 1, { 0x0000aa07 } }, { 0x0000aa08, 1, { 0x0000aa08 } }, { 0x0000aa09, 1, { 0x0000aa09 } }, { 0x0000aa0a, 1, { 0x0000aa0a } }, { 0x0000aa0b, 1, { 0x0000aa0b } }, { 0x0000aa0c, 1, { 0x0000aa0c } }, { 0x0000aa0d, 1, { 0x0000aa0d } }, { 0x0000aa0e, 1, { 0x0000aa0e } }, { 0x0000aa0f, 1, { 0x0000aa0f } }, { 0x0000aa10, 1, { 0x0000aa10 } }, { 0x0000aa11, 1, { 0x0000aa11 } }, { 0x0000aa12, 1, { 0x0000aa12 } }, { 0x0000aa13, 1, { 0x0000aa13 } }, { 0x0000aa14, 1, { 0x0000aa14 } }, { 0x0000aa15, 1, { 0x0000aa15 } }, { 0x0000aa16, 1, { 0x0000aa16 } }, { 0x0000aa17, 1, { 0x0000aa17 } }, { 0x0000aa18, 1, { 0x0000aa18 } }, { 0x0000aa19, 1, { 0x0000aa19 } }, { 0x0000aa1a, 1, { 0x0000aa1a } }, { 0x0000aa1b, 1, { 0x0000aa1b } }, { 0x0000aa1c, 1, { 0x0000aa1c } }, { 0x0000aa1d, 1, { 0x0000aa1d } }, { 0x0000aa1e, 1, { 0x0000aa1e } }, { 0x0000aa1f, 1, { 0x0000aa1f } }, { 0x0000aa20, 1, { 0x0000aa20 } }, { 0x0000aa21, 1, { 0x0000aa21 } }, { 0x0000aa22, 1, { 0x0000aa22 } }, { 0x0000aa23, 1, { 0x0000aa23 } }, { 0x0000aa24, 1, { 0x0000aa24 } }, { 0x0000aa25, 1, { 0x0000aa25 } }, { 0x0000aa26, 1, { 0x0000aa26 } }, { 0x0000aa27, 1, { 0x0000aa27 } }, { 0x0000aa28, 1, { 0x0000aa28 } }, { 0x0000aa29, 1, { 0x0000aa29 } }, { 0x0000aa2a, 1, { 0x0000aa2a } }, { 0x0000aa2b, 1, { 0x0000aa2b } }, { 0x0000aa2c, 1, { 0x0000aa2c } }, { 0x0000aa2d, 1, { 0x0000aa2d } }, { 0x0000aa2e, 1, { 0x0000aa2e } }, { 0x0000aa2f, 1, { 0x0000aa2f } }, { 0x0000aa30, 1, { 0x0000aa30 } }, { 0x0000aa31, 1, { 0x0000aa31 } }, { 0x0000aa32, 1, { 0x0000aa32 } }, { 0x0000aa33, 1, { 0x0000aa33 } }, { 0x0000aa34, 1, { 0x0000aa34 } }, { 0x0000aa35, 1, { 0x0000aa35 } }, { 0x0000aa36, 1, { 0x0000aa36 } }, { 0x0000aa40, 1, { 0x0000aa40 } }, { 0x0000aa41, 1, { 0x0000aa41 } }, { 0x0000aa42, 1, { 0x0000aa42 } }, { 0x0000aa43, 1, { 0x0000aa43 } }, { 0x0000aa44, 1, { 0x0000aa44 } }, { 0x0000aa45, 1, { 0x0000aa45 } }, { 0x0000aa46, 1, { 0x0000aa46 } }, { 0x0000aa47, 1, { 0x0000aa47 } }, { 0x0000aa48, 1, { 0x0000aa48 } }, { 0x0000aa49, 1, { 0x0000aa49 } }, { 0x0000aa4a, 1, { 0x0000aa4a } }, { 0x0000aa4b, 1, { 0x0000aa4b } }, { 0x0000aa4c, 1, { 0x0000aa4c } }, { 0x0000aa4d, 1, { 0x0000aa4d } }, { 0x0000aa50, 1, { 0x0000aa50 } }, { 0x0000aa51, 1, { 0x0000aa51 } }, { 0x0000aa52, 1, { 0x0000aa52 } }, { 0x0000aa53, 1, { 0x0000aa53 } }, { 0x0000aa54, 1, { 0x0000aa54 } }, { 0x0000aa55, 1, { 0x0000aa55 } }, { 0x0000aa56, 1, { 0x0000aa56 } }, { 0x0000aa57, 1, { 0x0000aa57 } }, { 0x0000aa58, 1, { 0x0000aa58 } }, { 0x0000aa59, 1, { 0x0000aa59 } }, { 0x0000aa5c, 1, { 0x0000aa5c } }, { 0x0000aa5d, 1, { 0x0000aa5d } }, { 0x0000aa5e, 1, { 0x0000aa5e } }, { 0x0000aa5f, 1, { 0x0000aa5f } }, { 0x0000aa60, 1, { 0x0000aa60 } }, { 0x0000aa61, 1, { 0x0000aa61 } }, { 0x0000aa62, 1, { 0x0000aa62 } }, { 0x0000aa63, 1, { 0x0000aa63 } }, { 0x0000aa64, 1, { 0x0000aa64 } }, { 0x0000aa65, 1, { 0x0000aa65 } }, { 0x0000aa66, 1, { 0x0000aa66 } }, { 0x0000aa67, 1, { 0x0000aa67 } }, { 0x0000aa68, 1, { 0x0000aa68 } }, { 0x0000aa69, 1, { 0x0000aa69 } }, { 0x0000aa6a, 1, { 0x0000aa6a } }, { 0x0000aa6b, 1, { 0x0000aa6b } }, { 0x0000aa6c, 1, { 0x0000aa6c } }, { 0x0000aa6d, 1, { 0x0000aa6d } }, { 0x0000aa6e, 1, { 0x0000aa6e } }, { 0x0000aa6f, 1, { 0x0000aa6f } }, { 0x0000aa70, 1, { 0x0000aa70 } }, { 0x0000aa71, 1, { 0x0000aa71 } }, { 0x0000aa72, 1, { 0x0000aa72 } }, { 0x0000aa73, 1, { 0x0000aa73 } }, { 0x0000aa74, 1, { 0x0000aa74 } }, { 0x0000aa75, 1, { 0x0000aa75 } }, { 0x0000aa76, 1, { 0x0000aa76 } }, { 0x0000aa77, 1, { 0x0000aa77 } }, { 0x0000aa78, 1, { 0x0000aa78 } }, { 0x0000aa79, 1, { 0x0000aa79 } }, { 0x0000aa7a, 1, { 0x0000aa7a } }, { 0x0000aa7b, 1, { 0x0000aa7b } }, { 0x0000aa7c, 1, { 0x0000aa7c } }, { 0x0000aa7d, 1, { 0x0000aa7d } }, { 0x0000aa7e, 1, { 0x0000aa7e } }, { 0x0000aa7f, 1, { 0x0000aa7f } }, { 0x0000aa80, 1, { 0x0000aa80 } }, { 0x0000aa81, 1, { 0x0000aa81 } }, { 0x0000aa82, 1, { 0x0000aa82 } }, { 0x0000aa83, 1, { 0x0000aa83 } }, { 0x0000aa84, 1, { 0x0000aa84 } }, { 0x0000aa85, 1, { 0x0000aa85 } }, { 0x0000aa86, 1, { 0x0000aa86 } }, { 0x0000aa87, 1, { 0x0000aa87 } }, { 0x0000aa88, 1, { 0x0000aa88 } }, { 0x0000aa89, 1, { 0x0000aa89 } }, { 0x0000aa8a, 1, { 0x0000aa8a } }, { 0x0000aa8b, 1, { 0x0000aa8b } }, { 0x0000aa8c, 1, { 0x0000aa8c } }, { 0x0000aa8d, 1, { 0x0000aa8d } }, { 0x0000aa8e, 1, { 0x0000aa8e } }, { 0x0000aa8f, 1, { 0x0000aa8f } }, { 0x0000aa90, 1, { 0x0000aa90 } }, { 0x0000aa91, 1, { 0x0000aa91 } }, { 0x0000aa92, 1, { 0x0000aa92 } }, { 0x0000aa93, 1, { 0x0000aa93 } }, { 0x0000aa94, 1, { 0x0000aa94 } }, { 0x0000aa95, 1, { 0x0000aa95 } }, { 0x0000aa96, 1, { 0x0000aa96 } }, { 0x0000aa97, 1, { 0x0000aa97 } }, { 0x0000aa98, 1, { 0x0000aa98 } }, { 0x0000aa99, 1, { 0x0000aa99 } }, { 0x0000aa9a, 1, { 0x0000aa9a } }, { 0x0000aa9b, 1, { 0x0000aa9b } }, { 0x0000aa9c, 1, { 0x0000aa9c } }, { 0x0000aa9d, 1, { 0x0000aa9d } }, { 0x0000aa9e, 1, { 0x0000aa9e } }, { 0x0000aa9f, 1, { 0x0000aa9f } }, { 0x0000aaa0, 1, { 0x0000aaa0 } }, { 0x0000aaa1, 1, { 0x0000aaa1 } }, { 0x0000aaa2, 1, { 0x0000aaa2 } }, { 0x0000aaa3, 1, { 0x0000aaa3 } }, { 0x0000aaa4, 1, { 0x0000aaa4 } }, { 0x0000aaa5, 1, { 0x0000aaa5 } }, { 0x0000aaa6, 1, { 0x0000aaa6 } }, { 0x0000aaa7, 1, { 0x0000aaa7 } }, { 0x0000aaa8, 1, { 0x0000aaa8 } }, { 0x0000aaa9, 1, { 0x0000aaa9 } }, { 0x0000aaaa, 1, { 0x0000aaaa } }, { 0x0000aaab, 1, { 0x0000aaab } }, { 0x0000aaac, 1, { 0x0000aaac } }, { 0x0000aaad, 1, { 0x0000aaad } }, { 0x0000aaae, 1, { 0x0000aaae } }, { 0x0000aaaf, 1, { 0x0000aaaf } }, { 0x0000aab0, 1, { 0x0000aab0 } }, { 0x0000aab1, 1, { 0x0000aab1 } }, { 0x0000aab2, 1, { 0x0000aab2 } }, { 0x0000aab3, 1, { 0x0000aab3 } }, { 0x0000aab4, 1, { 0x0000aab4 } }, { 0x0000aab5, 1, { 0x0000aab5 } }, { 0x0000aab6, 1, { 0x0000aab6 } }, { 0x0000aab7, 1, { 0x0000aab7 } }, { 0x0000aab8, 1, { 0x0000aab8 } }, { 0x0000aab9, 1, { 0x0000aab9 } }, { 0x0000aaba, 1, { 0x0000aaba } }, { 0x0000aabb, 1, { 0x0000aabb } }, { 0x0000aabc, 1, { 0x0000aabc } }, { 0x0000aabd, 1, { 0x0000aabd } }, { 0x0000aabe, 1, { 0x0000aabe } }, { 0x0000aabf, 1, { 0x0000aabf } }, { 0x0000aac0, 1, { 0x0000aac0 } }, { 0x0000aac1, 1, { 0x0000aac1 } }, { 0x0000aac2, 1, { 0x0000aac2 } }, { 0x0000aadb, 1, { 0x0000aadb } }, { 0x0000aadc, 1, { 0x0000aadc } }, { 0x0000aadd, 1, { 0x0000aadd } }, { 0x0000aade, 1, { 0x0000aade } }, { 0x0000aadf, 1, { 0x0000aadf } }, { 0x0000aae0, 1, { 0x0000aae0 } }, { 0x0000aae1, 1, { 0x0000aae1 } }, { 0x0000aae2, 1, { 0x0000aae2 } }, { 0x0000aae3, 1, { 0x0000aae3 } }, { 0x0000aae4, 1, { 0x0000aae4 } }, { 0x0000aae5, 1, { 0x0000aae5 } }, { 0x0000aae6, 1, { 0x0000aae6 } }, { 0x0000aae7, 1, { 0x0000aae7 } }, { 0x0000aae8, 1, { 0x0000aae8 } }, { 0x0000aae9, 1, { 0x0000aae9 } }, { 0x0000aaea, 1, { 0x0000aaea } }, { 0x0000aaeb, 1, { 0x0000aaeb } }, { 0x0000aaec, 1, { 0x0000aaec } }, { 0x0000aaed, 1, { 0x0000aaed } }, { 0x0000aaee, 1, { 0x0000aaee } }, { 0x0000aaef, 1, { 0x0000aaef } }, { 0x0000aaf0, 1, { 0x0000aaf0 } }, { 0x0000aaf1, 1, { 0x0000aaf1 } }, { 0x0000aaf2, 1, { 0x0000aaf2 } }, { 0x0000aaf3, 1, { 0x0000aaf3 } }, { 0x0000aaf4, 1, { 0x0000aaf4 } }, { 0x0000aaf5, 1, { 0x0000aaf5 } }, { 0x0000aaf6, 1, { 0x0000aaf6 } }, { 0x0000ab01, 1, { 0x0000ab01 } }, { 0x0000ab02, 1, { 0x0000ab02 } }, { 0x0000ab03, 1, { 0x0000ab03 } }, { 0x0000ab04, 1, { 0x0000ab04 } }, { 0x0000ab05, 1, { 0x0000ab05 } }, { 0x0000ab06, 1, { 0x0000ab06 } }, { 0x0000ab09, 1, { 0x0000ab09 } }, { 0x0000ab0a, 1, { 0x0000ab0a } }, { 0x0000ab0b, 1, { 0x0000ab0b } }, { 0x0000ab0c, 1, { 0x0000ab0c } }, { 0x0000ab0d, 1, { 0x0000ab0d } }, { 0x0000ab0e, 1, { 0x0000ab0e } }, { 0x0000ab11, 1, { 0x0000ab11 } }, { 0x0000ab12, 1, { 0x0000ab12 } }, { 0x0000ab13, 1, { 0x0000ab13 } }, { 0x0000ab14, 1, { 0x0000ab14 } }, { 0x0000ab15, 1, { 0x0000ab15 } }, { 0x0000ab16, 1, { 0x0000ab16 } }, { 0x0000ab20, 1, { 0x0000ab20 } }, { 0x0000ab21, 1, { 0x0000ab21 } }, { 0x0000ab22, 1, { 0x0000ab22 } }, { 0x0000ab23, 1, { 0x0000ab23 } }, { 0x0000ab24, 1, { 0x0000ab24 } }, { 0x0000ab25, 1, { 0x0000ab25 } }, { 0x0000ab26, 1, { 0x0000ab26 } }, { 0x0000ab28, 1, { 0x0000ab28 } }, { 0x0000ab29, 1, { 0x0000ab29 } }, { 0x0000ab2a, 1, { 0x0000ab2a } }, { 0x0000ab2b, 1, { 0x0000ab2b } }, { 0x0000ab2c, 1, { 0x0000ab2c } }, { 0x0000ab2d, 1, { 0x0000ab2d } }, { 0x0000ab2e, 1, { 0x0000ab2e } }, { 0x0000ab30, 1, { 0x0000ab30 } }, { 0x0000ab31, 1, { 0x0000ab31 } }, { 0x0000ab32, 1, { 0x0000ab32 } }, { 0x0000ab33, 1, { 0x0000ab33 } }, { 0x0000ab34, 1, { 0x0000ab34 } }, { 0x0000ab35, 1, { 0x0000ab35 } }, { 0x0000ab36, 1, { 0x0000ab36 } }, { 0x0000ab37, 1, { 0x0000ab37 } }, { 0x0000ab38, 1, { 0x0000ab38 } }, { 0x0000ab39, 1, { 0x0000ab39 } }, { 0x0000ab3a, 1, { 0x0000ab3a } }, { 0x0000ab3b, 1, { 0x0000ab3b } }, { 0x0000ab3c, 1, { 0x0000ab3c } }, { 0x0000ab3d, 1, { 0x0000ab3d } }, { 0x0000ab3e, 1, { 0x0000ab3e } }, { 0x0000ab3f, 1, { 0x0000ab3f } }, { 0x0000ab40, 1, { 0x0000ab40 } }, { 0x0000ab41, 1, { 0x0000ab41 } }, { 0x0000ab42, 1, { 0x0000ab42 } }, { 0x0000ab43, 1, { 0x0000ab43 } }, { 0x0000ab44, 1, { 0x0000ab44 } }, { 0x0000ab45, 1, { 0x0000ab45 } }, { 0x0000ab46, 1, { 0x0000ab46 } }, { 0x0000ab47, 1, { 0x0000ab47 } }, { 0x0000ab48, 1, { 0x0000ab48 } }, { 0x0000ab49, 1, { 0x0000ab49 } }, { 0x0000ab4a, 1, { 0x0000ab4a } }, { 0x0000ab4b, 1, { 0x0000ab4b } }, { 0x0000ab4c, 1, { 0x0000ab4c } }, { 0x0000ab4d, 1, { 0x0000ab4d } }, { 0x0000ab4e, 1, { 0x0000ab4e } }, { 0x0000ab4f, 1, { 0x0000ab4f } }, { 0x0000ab50, 1, { 0x0000ab50 } }, { 0x0000ab51, 1, { 0x0000ab51 } }, { 0x0000ab52, 1, { 0x0000ab52 } }, { 0x0000ab53, 1, { 0x0000ab53 } }, { 0x0000ab54, 1, { 0x0000ab54 } }, { 0x0000ab55, 1, { 0x0000ab55 } }, { 0x0000ab56, 1, { 0x0000ab56 } }, { 0x0000ab57, 1, { 0x0000ab57 } }, { 0x0000ab58, 1, { 0x0000ab58 } }, { 0x0000ab59, 1, { 0x0000ab59 } }, { 0x0000ab5a, 1, { 0x0000ab5a } }, { 0x0000ab5b, 1, { 0x0000ab5b } }, { 0x0000ab5c, 1, { 0x0000ab5c } }, { 0x0000ab5d, 1, { 0x0000ab5d } }, { 0x0000ab5e, 1, { 0x0000ab5e } }, { 0x0000ab5f, 1, { 0x0000ab5f } }, { 0x0000ab60, 1, { 0x0000ab60 } }, { 0x0000ab61, 1, { 0x0000ab61 } }, { 0x0000ab62, 1, { 0x0000ab62 } }, { 0x0000ab63, 1, { 0x0000ab63 } }, { 0x0000ab64, 1, { 0x0000ab64 } }, { 0x0000ab65, 1, { 0x0000ab65 } }, { 0x0000ab70, 1, { 0x0000ab70 } }, { 0x0000ab71, 1, { 0x0000ab71 } }, { 0x0000ab72, 1, { 0x0000ab72 } }, { 0x0000ab73, 1, { 0x0000ab73 } }, { 0x0000ab74, 1, { 0x0000ab74 } }, { 0x0000ab75, 1, { 0x0000ab75 } }, { 0x0000ab76, 1, { 0x0000ab76 } }, { 0x0000ab77, 1, { 0x0000ab77 } }, { 0x0000ab78, 1, { 0x0000ab78 } }, { 0x0000ab79, 1, { 0x0000ab79 } }, { 0x0000ab7a, 1, { 0x0000ab7a } }, { 0x0000ab7b, 1, { 0x0000ab7b } }, { 0x0000ab7c, 1, { 0x0000ab7c } }, { 0x0000ab7d, 1, { 0x0000ab7d } }, { 0x0000ab7e, 1, { 0x0000ab7e } }, { 0x0000ab7f, 1, { 0x0000ab7f } }, { 0x0000ab80, 1, { 0x0000ab80 } }, { 0x0000ab81, 1, { 0x0000ab81 } }, { 0x0000ab82, 1, { 0x0000ab82 } }, { 0x0000ab83, 1, { 0x0000ab83 } }, { 0x0000ab84, 1, { 0x0000ab84 } }, { 0x0000ab85, 1, { 0x0000ab85 } }, { 0x0000ab86, 1, { 0x0000ab86 } }, { 0x0000ab87, 1, { 0x0000ab87 } }, { 0x0000ab88, 1, { 0x0000ab88 } }, { 0x0000ab89, 1, { 0x0000ab89 } }, { 0x0000ab8a, 1, { 0x0000ab8a } }, { 0x0000ab8b, 1, { 0x0000ab8b } }, { 0x0000ab8c, 1, { 0x0000ab8c } }, { 0x0000ab8d, 1, { 0x0000ab8d } }, { 0x0000ab8e, 1, { 0x0000ab8e } }, { 0x0000ab8f, 1, { 0x0000ab8f } }, { 0x0000ab90, 1, { 0x0000ab90 } }, { 0x0000ab91, 1, { 0x0000ab91 } }, { 0x0000ab92, 1, { 0x0000ab92 } }, { 0x0000ab93, 1, { 0x0000ab93 } }, { 0x0000ab94, 1, { 0x0000ab94 } }, { 0x0000ab95, 1, { 0x0000ab95 } }, { 0x0000ab96, 1, { 0x0000ab96 } }, { 0x0000ab97, 1, { 0x0000ab97 } }, { 0x0000ab98, 1, { 0x0000ab98 } }, { 0x0000ab99, 1, { 0x0000ab99 } }, { 0x0000ab9a, 1, { 0x0000ab9a } }, { 0x0000ab9b, 1, { 0x0000ab9b } }, { 0x0000ab9c, 1, { 0x0000ab9c } }, { 0x0000ab9d, 1, { 0x0000ab9d } }, { 0x0000ab9e, 1, { 0x0000ab9e } }, { 0x0000ab9f, 1, { 0x0000ab9f } }, { 0x0000aba0, 1, { 0x0000aba0 } }, { 0x0000aba1, 1, { 0x0000aba1 } }, { 0x0000aba2, 1, { 0x0000aba2 } }, { 0x0000aba3, 1, { 0x0000aba3 } }, { 0x0000aba4, 1, { 0x0000aba4 } }, { 0x0000aba5, 1, { 0x0000aba5 } }, { 0x0000aba6, 1, { 0x0000aba6 } }, { 0x0000aba7, 1, { 0x0000aba7 } }, { 0x0000aba8, 1, { 0x0000aba8 } }, { 0x0000aba9, 1, { 0x0000aba9 } }, { 0x0000abaa, 1, { 0x0000abaa } }, { 0x0000abab, 1, { 0x0000abab } }, { 0x0000abac, 1, { 0x0000abac } }, { 0x0000abad, 1, { 0x0000abad } }, { 0x0000abae, 1, { 0x0000abae } }, { 0x0000abaf, 1, { 0x0000abaf } }, { 0x0000abb0, 1, { 0x0000abb0 } }, { 0x0000abb1, 1, { 0x0000abb1 } }, { 0x0000abb2, 1, { 0x0000abb2 } }, { 0x0000abb3, 1, { 0x0000abb3 } }, { 0x0000abb4, 1, { 0x0000abb4 } }, { 0x0000abb5, 1, { 0x0000abb5 } }, { 0x0000abb6, 1, { 0x0000abb6 } }, { 0x0000abb7, 1, { 0x0000abb7 } }, { 0x0000abb8, 1, { 0x0000abb8 } }, { 0x0000abb9, 1, { 0x0000abb9 } }, { 0x0000abba, 1, { 0x0000abba } }, { 0x0000abbb, 1, { 0x0000abbb } }, { 0x0000abbc, 1, { 0x0000abbc } }, { 0x0000abbd, 1, { 0x0000abbd } }, { 0x0000abbe, 1, { 0x0000abbe } }, { 0x0000abbf, 1, { 0x0000abbf } }, { 0x0000abc0, 1, { 0x0000abc0 } }, { 0x0000abc1, 1, { 0x0000abc1 } }, { 0x0000abc2, 1, { 0x0000abc2 } }, { 0x0000abc3, 1, { 0x0000abc3 } }, { 0x0000abc4, 1, { 0x0000abc4 } }, { 0x0000abc5, 1, { 0x0000abc5 } }, { 0x0000abc6, 1, { 0x0000abc6 } }, { 0x0000abc7, 1, { 0x0000abc7 } }, { 0x0000abc8, 1, { 0x0000abc8 } }, { 0x0000abc9, 1, { 0x0000abc9 } }, { 0x0000abca, 1, { 0x0000abca } }, { 0x0000abcb, 1, { 0x0000abcb } }, { 0x0000abcc, 1, { 0x0000abcc } }, { 0x0000abcd, 1, { 0x0000abcd } }, { 0x0000abce, 1, { 0x0000abce } }, { 0x0000abcf, 1, { 0x0000abcf } }, { 0x0000abd0, 1, { 0x0000abd0 } }, { 0x0000abd1, 1, { 0x0000abd1 } }, { 0x0000abd2, 1, { 0x0000abd2 } }, { 0x0000abd3, 1, { 0x0000abd3 } }, { 0x0000abd4, 1, { 0x0000abd4 } }, { 0x0000abd5, 1, { 0x0000abd5 } }, { 0x0000abd6, 1, { 0x0000abd6 } }, { 0x0000abd7, 1, { 0x0000abd7 } }, { 0x0000abd8, 1, { 0x0000abd8 } }, { 0x0000abd9, 1, { 0x0000abd9 } }, { 0x0000abda, 1, { 0x0000abda } }, { 0x0000abdb, 1, { 0x0000abdb } }, { 0x0000abdc, 1, { 0x0000abdc } }, { 0x0000abdd, 1, { 0x0000abdd } }, { 0x0000abde, 1, { 0x0000abde } }, { 0x0000abdf, 1, { 0x0000abdf } }, { 0x0000abe0, 1, { 0x0000abe0 } }, { 0x0000abe1, 1, { 0x0000abe1 } }, { 0x0000abe2, 1, { 0x0000abe2 } }, { 0x0000abe3, 1, { 0x0000abe3 } }, { 0x0000abe4, 1, { 0x0000abe4 } }, { 0x0000abe5, 1, { 0x0000abe5 } }, { 0x0000abe6, 1, { 0x0000abe6 } }, { 0x0000abe7, 1, { 0x0000abe7 } }, { 0x0000abe8, 1, { 0x0000abe8 } }, { 0x0000abe9, 1, { 0x0000abe9 } }, { 0x0000abea, 1, { 0x0000abea } }, { 0x0000abeb, 1, { 0x0000abeb } }, { 0x0000abec, 1, { 0x0000abec } }, { 0x0000abed, 1, { 0x0000abed } }, { 0x0000abf0, 1, { 0x0000abf0 } }, { 0x0000abf1, 1, { 0x0000abf1 } }, { 0x0000abf2, 1, { 0x0000abf2 } }, { 0x0000abf3, 1, { 0x0000abf3 } }, { 0x0000abf4, 1, { 0x0000abf4 } }, { 0x0000abf5, 1, { 0x0000abf5 } }, { 0x0000abf6, 1, { 0x0000abf6 } }, { 0x0000abf7, 1, { 0x0000abf7 } }, { 0x0000abf8, 1, { 0x0000abf8 } }, { 0x0000abf9, 1, { 0x0000abf9 } }, { 0x0000ac00, 1, { 0x0000ac00 } }, { 0x0000d7a3, 1, { 0x0000d7a3 } }, { 0x0000d7b0, 1, { 0x0000d7b0 } }, { 0x0000d7b1, 1, { 0x0000d7b1 } }, { 0x0000d7b2, 1, { 0x0000d7b2 } }, { 0x0000d7b3, 1, { 0x0000d7b3 } }, { 0x0000d7b4, 1, { 0x0000d7b4 } }, { 0x0000d7b5, 1, { 0x0000d7b5 } }, { 0x0000d7b6, 1, { 0x0000d7b6 } }, { 0x0000d7b7, 1, { 0x0000d7b7 } }, { 0x0000d7b8, 1, { 0x0000d7b8 } }, { 0x0000d7b9, 1, { 0x0000d7b9 } }, { 0x0000d7ba, 1, { 0x0000d7ba } }, { 0x0000d7bb, 1, { 0x0000d7bb } }, { 0x0000d7bc, 1, { 0x0000d7bc } }, { 0x0000d7bd, 1, { 0x0000d7bd } }, { 0x0000d7be, 1, { 0x0000d7be } }, { 0x0000d7bf, 1, { 0x0000d7bf } }, { 0x0000d7c0, 1, { 0x0000d7c0 } }, { 0x0000d7c1, 1, { 0x0000d7c1 } }, { 0x0000d7c2, 1, { 0x0000d7c2 } }, { 0x0000d7c3, 1, { 0x0000d7c3 } }, { 0x0000d7c4, 1, { 0x0000d7c4 } }, { 0x0000d7c5, 1, { 0x0000d7c5 } }, { 0x0000d7c6, 1, { 0x0000d7c6 } }, { 0x0000d7cb, 1, { 0x0000d7cb } }, { 0x0000d7cc, 1, { 0x0000d7cc } }, { 0x0000d7cd, 1, { 0x0000d7cd } }, { 0x0000d7ce, 1, { 0x0000d7ce } }, { 0x0000d7cf, 1, { 0x0000d7cf } }, { 0x0000d7d0, 1, { 0x0000d7d0 } }, { 0x0000d7d1, 1, { 0x0000d7d1 } }, { 0x0000d7d2, 1, { 0x0000d7d2 } }, { 0x0000d7d3, 1, { 0x0000d7d3 } }, { 0x0000d7d4, 1, { 0x0000d7d4 } }, { 0x0000d7d5, 1, { 0x0000d7d5 } }, { 0x0000d7d6, 1, { 0x0000d7d6 } }, { 0x0000d7d7, 1, { 0x0000d7d7 } }, { 0x0000d7d8, 1, { 0x0000d7d8 } }, { 0x0000d7d9, 1, { 0x0000d7d9 } }, { 0x0000d7da, 1, { 0x0000d7da } }, { 0x0000d7db, 1, { 0x0000d7db } }, { 0x0000d7dc, 1, { 0x0000d7dc } }, { 0x0000d7dd, 1, { 0x0000d7dd } }, { 0x0000d7de, 1, { 0x0000d7de } }, { 0x0000d7df, 1, { 0x0000d7df } }, { 0x0000d7e0, 1, { 0x0000d7e0 } }, { 0x0000d7e1, 1, { 0x0000d7e1 } }, { 0x0000d7e2, 1, { 0x0000d7e2 } }, { 0x0000d7e3, 1, { 0x0000d7e3 } }, { 0x0000d7e4, 1, { 0x0000d7e4 } }, { 0x0000d7e5, 1, { 0x0000d7e5 } }, { 0x0000d7e6, 1, { 0x0000d7e6 } }, { 0x0000d7e7, 1, { 0x0000d7e7 } }, { 0x0000d7e8, 1, { 0x0000d7e8 } }, { 0x0000d7e9, 1, { 0x0000d7e9 } }, { 0x0000d7ea, 1, { 0x0000d7ea } }, { 0x0000d7eb, 1, { 0x0000d7eb } }, { 0x0000d7ec, 1, { 0x0000d7ec } }, { 0x0000d7ed, 1, { 0x0000d7ed } }, { 0x0000d7ee, 1, { 0x0000d7ee } }, { 0x0000d7ef, 1, { 0x0000d7ef } }, { 0x0000d7f0, 1, { 0x0000d7f0 } }, { 0x0000d7f1, 1, { 0x0000d7f1 } }, { 0x0000d7f2, 1, { 0x0000d7f2 } }, { 0x0000d7f3, 1, { 0x0000d7f3 } }, { 0x0000d7f4, 1, { 0x0000d7f4 } }, { 0x0000d7f5, 1, { 0x0000d7f5 } }, { 0x0000d7f6, 1, { 0x0000d7f6 } }, { 0x0000d7f7, 1, { 0x0000d7f7 } }, { 0x0000d7f8, 1, { 0x0000d7f8 } }, { 0x0000d7f9, 1, { 0x0000d7f9 } }, { 0x0000d7fa, 1, { 0x0000d7fa } }, { 0x0000d7fb, 1, { 0x0000d7fb } }, { 0x0000d800, 1, { 0x0000d800 } }, { 0x0000db7f, 1, { 0x0000db7f } }, { 0x0000db80, 1, { 0x0000db80 } }, { 0x0000dbff, 1, { 0x0000dbff } }, { 0x0000dc00, 1, { 0x0000dc00 } }, { 0x0000dfff, 1, { 0x0000dfff } }, { 0x0000e000, 1, { 0x0000e000 } }, { 0x0000f8ff, 1, { 0x0000f8ff } }, { 0x0000f900, 1, { 0x00008c48 } }, { 0x0000f901, 1, { 0x000066f4 } }, { 0x0000f902, 1, { 0x00008eca } }, { 0x0000f903, 1, { 0x00008cc8 } }, { 0x0000f904, 1, { 0x00006ed1 } }, { 0x0000f905, 1, { 0x00004e32 } }, { 0x0000f906, 1, { 0x000053e5 } }, { 0x0000f907, 1, { 0x00009f9c } }, { 0x0000f908, 1, { 0x00009f9c } }, { 0x0000f909, 1, { 0x00005951 } }, { 0x0000f90a, 1, { 0x000091d1 } }, { 0x0000f90b, 1, { 0x00005587 } }, { 0x0000f90c, 1, { 0x00005948 } }, { 0x0000f90d, 1, { 0x000061f6 } }, { 0x0000f90e, 1, { 0x00007669 } }, { 0x0000f90f, 1, { 0x00007f85 } }, { 0x0000f910, 1, { 0x0000863f } }, { 0x0000f911, 1, { 0x000087ba } }, { 0x0000f912, 1, { 0x000088f8 } }, { 0x0000f913, 1, { 0x0000908f } }, { 0x0000f914, 1, { 0x00006a02 } }, { 0x0000f915, 1, { 0x00006d1b } }, { 0x0000f916, 1, { 0x000070d9 } }, { 0x0000f917, 1, { 0x000073de } }, { 0x0000f918, 1, { 0x0000843d } }, { 0x0000f919, 1, { 0x0000916a } }, { 0x0000f91a, 1, { 0x000099f1 } }, { 0x0000f91b, 1, { 0x00004e82 } }, { 0x0000f91c, 1, { 0x00005375 } }, { 0x0000f91d, 1, { 0x00006b04 } }, { 0x0000f91e, 1, { 0x0000721b } }, { 0x0000f91f, 1, { 0x0000862d } }, { 0x0000f920, 1, { 0x00009e1e } }, { 0x0000f921, 1, { 0x00005d50 } }, { 0x0000f922, 1, { 0x00006feb } }, { 0x0000f923, 1, { 0x000085cd } }, { 0x0000f924, 1, { 0x00008964 } }, { 0x0000f925, 1, { 0x000062c9 } }, { 0x0000f926, 1, { 0x000081d8 } }, { 0x0000f927, 1, { 0x0000881f } }, { 0x0000f928, 1, { 0x00005eca } }, { 0x0000f929, 1, { 0x00006717 } }, { 0x0000f92a, 1, { 0x00006d6a } }, { 0x0000f92b, 1, { 0x000072fc } }, { 0x0000f92c, 1, { 0x000090ce } }, { 0x0000f92d, 1, { 0x00004f86 } }, { 0x0000f92e, 1, { 0x000051b7 } }, { 0x0000f92f, 1, { 0x000052de } }, { 0x0000f930, 1, { 0x000064c4 } }, { 0x0000f931, 1, { 0x00006ad3 } }, { 0x0000f932, 1, { 0x00007210 } }, { 0x0000f933, 1, { 0x000076e7 } }, { 0x0000f934, 1, { 0x00008001 } }, { 0x0000f935, 1, { 0x00008606 } }, { 0x0000f936, 1, { 0x0000865c } }, { 0x0000f937, 1, { 0x00008def } }, { 0x0000f938, 1, { 0x00009732 } }, { 0x0000f939, 1, { 0x00009b6f } }, { 0x0000f93a, 1, { 0x00009dfa } }, { 0x0000f93b, 1, { 0x0000788c } }, { 0x0000f93c, 1, { 0x0000797f } }, { 0x0000f93d, 1, { 0x00007da0 } }, { 0x0000f93e, 1, { 0x000083c9 } }, { 0x0000f93f, 1, { 0x00009304 } }, { 0x0000f940, 1, { 0x00009e7f } }, { 0x0000f941, 1, { 0x00008ad6 } }, { 0x0000f942, 1, { 0x000058df } }, { 0x0000f943, 1, { 0x00005f04 } }, { 0x0000f944, 1, { 0x00007c60 } }, { 0x0000f945, 1, { 0x0000807e } }, { 0x0000f946, 1, { 0x00007262 } }, { 0x0000f947, 1, { 0x000078ca } }, { 0x0000f948, 1, { 0x00008cc2 } }, { 0x0000f949, 1, { 0x000096f7 } }, { 0x0000f94a, 1, { 0x000058d8 } }, { 0x0000f94b, 1, { 0x00005c62 } }, { 0x0000f94c, 1, { 0x00006a13 } }, { 0x0000f94d, 1, { 0x00006dda } }, { 0x0000f94e, 1, { 0x00006f0f } }, { 0x0000f94f, 1, { 0x00007d2f } }, { 0x0000f950, 1, { 0x00007e37 } }, { 0x0000f951, 1, { 0x0000964b } }, { 0x0000f952, 1, { 0x000052d2 } }, { 0x0000f953, 1, { 0x0000808b } }, { 0x0000f954, 1, { 0x000051dc } }, { 0x0000f955, 1, { 0x000051cc } }, { 0x0000f956, 1, { 0x00007a1c } }, { 0x0000f957, 1, { 0x00007dbe } }, { 0x0000f958, 1, { 0x000083f1 } }, { 0x0000f959, 1, { 0x00009675 } }, { 0x0000f95a, 1, { 0x00008b80 } }, { 0x0000f95b, 1, { 0x000062cf } }, { 0x0000f95c, 1, { 0x00006a02 } }, { 0x0000f95d, 1, { 0x00008afe } }, { 0x0000f95e, 1, { 0x00004e39 } }, { 0x0000f95f, 1, { 0x00005be7 } }, { 0x0000f960, 1, { 0x00006012 } }, { 0x0000f961, 1, { 0x00007387 } }, { 0x0000f962, 1, { 0x00007570 } }, { 0x0000f963, 1, { 0x00005317 } }, { 0x0000f964, 1, { 0x000078fb } }, { 0x0000f965, 1, { 0x00004fbf } }, { 0x0000f966, 1, { 0x00005fa9 } }, { 0x0000f967, 1, { 0x00004e0d } }, { 0x0000f968, 1, { 0x00006ccc } }, { 0x0000f969, 1, { 0x00006578 } }, { 0x0000f96a, 1, { 0x00007d22 } }, { 0x0000f96b, 1, { 0x000053c3 } }, { 0x0000f96c, 1, { 0x0000585e } }, { 0x0000f96d, 1, { 0x00007701 } }, { 0x0000f96e, 1, { 0x00008449 } }, { 0x0000f96f, 1, { 0x00008aaa } }, { 0x0000f970, 1, { 0x00006bba } }, { 0x0000f971, 1, { 0x00008fb0 } }, { 0x0000f972, 1, { 0x00006c88 } }, { 0x0000f973, 1, { 0x000062fe } }, { 0x0000f974, 1, { 0x000082e5 } }, { 0x0000f975, 1, { 0x000063a0 } }, { 0x0000f976, 1, { 0x00007565 } }, { 0x0000f977, 1, { 0x00004eae } }, { 0x0000f978, 1, { 0x00005169 } }, { 0x0000f979, 1, { 0x000051c9 } }, { 0x0000f97a, 1, { 0x00006881 } }, { 0x0000f97b, 1, { 0x00007ce7 } }, { 0x0000f97c, 1, { 0x0000826f } }, { 0x0000f97d, 1, { 0x00008ad2 } }, { 0x0000f97e, 1, { 0x000091cf } }, { 0x0000f97f, 1, { 0x000052f5 } }, { 0x0000f980, 1, { 0x00005442 } }, { 0x0000f981, 1, { 0x00005973 } }, { 0x0000f982, 1, { 0x00005eec } }, { 0x0000f983, 1, { 0x000065c5 } }, { 0x0000f984, 1, { 0x00006ffe } }, { 0x0000f985, 1, { 0x0000792a } }, { 0x0000f986, 1, { 0x000095ad } }, { 0x0000f987, 1, { 0x00009a6a } }, { 0x0000f988, 1, { 0x00009e97 } }, { 0x0000f989, 1, { 0x00009ece } }, { 0x0000f98a, 1, { 0x0000529b } }, { 0x0000f98b, 1, { 0x000066c6 } }, { 0x0000f98c, 1, { 0x00006b77 } }, { 0x0000f98d, 1, { 0x00008f62 } }, { 0x0000f98e, 1, { 0x00005e74 } }, { 0x0000f98f, 1, { 0x00006190 } }, { 0x0000f990, 1, { 0x00006200 } }, { 0x0000f991, 1, { 0x0000649a } }, { 0x0000f992, 1, { 0x00006f23 } }, { 0x0000f993, 1, { 0x00007149 } }, { 0x0000f994, 1, { 0x00007489 } }, { 0x0000f995, 1, { 0x000079ca } }, { 0x0000f996, 1, { 0x00007df4 } }, { 0x0000f997, 1, { 0x0000806f } }, { 0x0000f998, 1, { 0x00008f26 } }, { 0x0000f999, 1, { 0x000084ee } }, { 0x0000f99a, 1, { 0x00009023 } }, { 0x0000f99b, 1, { 0x0000934a } }, { 0x0000f99c, 1, { 0x00005217 } }, { 0x0000f99d, 1, { 0x000052a3 } }, { 0x0000f99e, 1, { 0x000054bd } }, { 0x0000f99f, 1, { 0x000070c8 } }, { 0x0000f9a0, 1, { 0x000088c2 } }, { 0x0000f9a1, 1, { 0x00008aaa } }, { 0x0000f9a2, 1, { 0x00005ec9 } }, { 0x0000f9a3, 1, { 0x00005ff5 } }, { 0x0000f9a4, 1, { 0x0000637b } }, { 0x0000f9a5, 1, { 0x00006bae } }, { 0x0000f9a6, 1, { 0x00007c3e } }, { 0x0000f9a7, 1, { 0x00007375 } }, { 0x0000f9a8, 1, { 0x00004ee4 } }, { 0x0000f9a9, 1, { 0x000056f9 } }, { 0x0000f9aa, 1, { 0x00005be7 } }, { 0x0000f9ab, 1, { 0x00005dba } }, { 0x0000f9ac, 1, { 0x0000601c } }, { 0x0000f9ad, 1, { 0x000073b2 } }, { 0x0000f9ae, 1, { 0x00007469 } }, { 0x0000f9af, 1, { 0x00007f9a } }, { 0x0000f9b0, 1, { 0x00008046 } }, { 0x0000f9b1, 1, { 0x00009234 } }, { 0x0000f9b2, 1, { 0x000096f6 } }, { 0x0000f9b3, 1, { 0x00009748 } }, { 0x0000f9b4, 1, { 0x00009818 } }, { 0x0000f9b5, 1, { 0x00004f8b } }, { 0x0000f9b6, 1, { 0x000079ae } }, { 0x0000f9b7, 1, { 0x000091b4 } }, { 0x0000f9b8, 1, { 0x000096b8 } }, { 0x0000f9b9, 1, { 0x000060e1 } }, { 0x0000f9ba, 1, { 0x00004e86 } }, { 0x0000f9bb, 1, { 0x000050da } }, { 0x0000f9bc, 1, { 0x00005bee } }, { 0x0000f9bd, 1, { 0x00005c3f } }, { 0x0000f9be, 1, { 0x00006599 } }, { 0x0000f9bf, 1, { 0x00006a02 } }, { 0x0000f9c0, 1, { 0x000071ce } }, { 0x0000f9c1, 1, { 0x00007642 } }, { 0x0000f9c2, 1, { 0x000084fc } }, { 0x0000f9c3, 1, { 0x0000907c } }, { 0x0000f9c4, 1, { 0x00009f8d } }, { 0x0000f9c5, 1, { 0x00006688 } }, { 0x0000f9c6, 1, { 0x0000962e } }, { 0x0000f9c7, 1, { 0x00005289 } }, { 0x0000f9c8, 1, { 0x0000677b } }, { 0x0000f9c9, 1, { 0x000067f3 } }, { 0x0000f9ca, 1, { 0x00006d41 } }, { 0x0000f9cb, 1, { 0x00006e9c } }, { 0x0000f9cc, 1, { 0x00007409 } }, { 0x0000f9cd, 1, { 0x00007559 } }, { 0x0000f9ce, 1, { 0x0000786b } }, { 0x0000f9cf, 1, { 0x00007d10 } }, { 0x0000f9d0, 1, { 0x0000985e } }, { 0x0000f9d1, 1, { 0x0000516d } }, { 0x0000f9d2, 1, { 0x0000622e } }, { 0x0000f9d3, 1, { 0x00009678 } }, { 0x0000f9d4, 1, { 0x0000502b } }, { 0x0000f9d5, 1, { 0x00005d19 } }, { 0x0000f9d6, 1, { 0x00006dea } }, { 0x0000f9d7, 1, { 0x00008f2a } }, { 0x0000f9d8, 1, { 0x00005f8b } }, { 0x0000f9d9, 1, { 0x00006144 } }, { 0x0000f9da, 1, { 0x00006817 } }, { 0x0000f9db, 1, { 0x00007387 } }, { 0x0000f9dc, 1, { 0x00009686 } }, { 0x0000f9dd, 1, { 0x00005229 } }, { 0x0000f9de, 1, { 0x0000540f } }, { 0x0000f9df, 1, { 0x00005c65 } }, { 0x0000f9e0, 1, { 0x00006613 } }, { 0x0000f9e1, 1, { 0x0000674e } }, { 0x0000f9e2, 1, { 0x000068a8 } }, { 0x0000f9e3, 1, { 0x00006ce5 } }, { 0x0000f9e4, 1, { 0x00007406 } }, { 0x0000f9e5, 1, { 0x000075e2 } }, { 0x0000f9e6, 1, { 0x00007f79 } }, { 0x0000f9e7, 1, { 0x000088cf } }, { 0x0000f9e8, 1, { 0x000088e1 } }, { 0x0000f9e9, 1, { 0x000091cc } }, { 0x0000f9ea, 1, { 0x000096e2 } }, { 0x0000f9eb, 1, { 0x0000533f } }, { 0x0000f9ec, 1, { 0x00006eba } }, { 0x0000f9ed, 1, { 0x0000541d } }, { 0x0000f9ee, 1, { 0x000071d0 } }, { 0x0000f9ef, 1, { 0x00007498 } }, { 0x0000f9f0, 1, { 0x000085fa } }, { 0x0000f9f1, 1, { 0x000096a3 } }, { 0x0000f9f2, 1, { 0x00009c57 } }, { 0x0000f9f3, 1, { 0x00009e9f } }, { 0x0000f9f4, 1, { 0x00006797 } }, { 0x0000f9f5, 1, { 0x00006dcb } }, { 0x0000f9f6, 1, { 0x000081e8 } }, { 0x0000f9f7, 1, { 0x00007acb } }, { 0x0000f9f8, 1, { 0x00007b20 } }, { 0x0000f9f9, 1, { 0x00007c92 } }, { 0x0000f9fa, 1, { 0x000072c0 } }, { 0x0000f9fb, 1, { 0x00007099 } }, { 0x0000f9fc, 1, { 0x00008b58 } }, { 0x0000f9fd, 1, { 0x00004ec0 } }, { 0x0000f9fe, 1, { 0x00008336 } }, { 0x0000f9ff, 1, { 0x0000523a } }, { 0x0000fa00, 1, { 0x00005207 } }, { 0x0000fa01, 1, { 0x00005ea6 } }, { 0x0000fa02, 1, { 0x000062d3 } }, { 0x0000fa03, 1, { 0x00007cd6 } }, { 0x0000fa04, 1, { 0x00005b85 } }, { 0x0000fa05, 1, { 0x00006d1e } }, { 0x0000fa06, 1, { 0x000066b4 } }, { 0x0000fa07, 1, { 0x00008f3b } }, { 0x0000fa08, 1, { 0x0000884c } }, { 0x0000fa09, 1, { 0x0000964d } }, { 0x0000fa0a, 1, { 0x0000898b } }, { 0x0000fa0b, 1, { 0x00005ed3 } }, { 0x0000fa0c, 1, { 0x00005140 } }, { 0x0000fa0d, 1, { 0x000055c0 } }, { 0x0000fa0e, 1, { 0x0000fa0e } }, { 0x0000fa0f, 1, { 0x0000fa0f } }, { 0x0000fa10, 1, { 0x0000585a } }, { 0x0000fa11, 1, { 0x0000fa11 } }, { 0x0000fa12, 1, { 0x00006674 } }, { 0x0000fa13, 1, { 0x0000fa13 } }, { 0x0000fa14, 1, { 0x0000fa14 } }, { 0x0000fa15, 1, { 0x000051de } }, { 0x0000fa16, 1, { 0x0000732a } }, { 0x0000fa17, 1, { 0x000076ca } }, { 0x0000fa18, 1, { 0x0000793c } }, { 0x0000fa19, 1, { 0x0000795e } }, { 0x0000fa1a, 1, { 0x00007965 } }, { 0x0000fa1b, 1, { 0x0000798f } }, { 0x0000fa1c, 1, { 0x00009756 } }, { 0x0000fa1d, 1, { 0x00007cbe } }, { 0x0000fa1e, 1, { 0x00007fbd } }, { 0x0000fa1f, 1, { 0x0000fa1f } }, { 0x0000fa20, 1, { 0x00008612 } }, { 0x0000fa21, 1, { 0x0000fa21 } }, { 0x0000fa22, 1, { 0x00008af8 } }, { 0x0000fa23, 1, { 0x0000fa23 } }, { 0x0000fa24, 1, { 0x0000fa24 } }, { 0x0000fa25, 1, { 0x00009038 } }, { 0x0000fa26, 1, { 0x000090fd } }, { 0x0000fa27, 1, { 0x0000fa27 } }, { 0x0000fa28, 1, { 0x0000fa28 } }, { 0x0000fa29, 1, { 0x0000fa29 } }, { 0x0000fa2a, 1, { 0x000098ef } }, { 0x0000fa2b, 1, { 0x000098fc } }, { 0x0000fa2c, 1, { 0x00009928 } }, { 0x0000fa2d, 1, { 0x00009db4 } }, { 0x0000fa2e, 1, { 0x000090de } }, { 0x0000fa2f, 1, { 0x000096b7 } }, { 0x0000fa30, 1, { 0x00004fae } }, { 0x0000fa31, 1, { 0x000050e7 } }, { 0x0000fa32, 1, { 0x0000514d } }, { 0x0000fa33, 1, { 0x000052c9 } }, { 0x0000fa34, 1, { 0x000052e4 } }, { 0x0000fa35, 1, { 0x00005351 } }, { 0x0000fa36, 1, { 0x0000559d } }, { 0x0000fa37, 1, { 0x00005606 } }, { 0x0000fa38, 1, { 0x00005668 } }, { 0x0000fa39, 1, { 0x00005840 } }, { 0x0000fa3a, 1, { 0x000058a8 } }, { 0x0000fa3b, 1, { 0x00005c64 } }, { 0x0000fa3c, 1, { 0x00005c6e } }, { 0x0000fa3d, 1, { 0x00006094 } }, { 0x0000fa3e, 1, { 0x00006168 } }, { 0x0000fa3f, 1, { 0x0000618e } }, { 0x0000fa40, 1, { 0x000061f2 } }, { 0x0000fa41, 1, { 0x0000654f } }, { 0x0000fa42, 1, { 0x000065e2 } }, { 0x0000fa43, 1, { 0x00006691 } }, { 0x0000fa44, 1, { 0x00006885 } }, { 0x0000fa45, 1, { 0x00006d77 } }, { 0x0000fa46, 1, { 0x00006e1a } }, { 0x0000fa47, 1, { 0x00006f22 } }, { 0x0000fa48, 1, { 0x0000716e } }, { 0x0000fa49, 1, { 0x0000722b } }, { 0x0000fa4a, 1, { 0x00007422 } }, { 0x0000fa4b, 1, { 0x00007891 } }, { 0x0000fa4c, 1, { 0x0000793e } }, { 0x0000fa4d, 1, { 0x00007949 } }, { 0x0000fa4e, 1, { 0x00007948 } }, { 0x0000fa4f, 1, { 0x00007950 } }, { 0x0000fa50, 1, { 0x00007956 } }, { 0x0000fa51, 1, { 0x0000795d } }, { 0x0000fa52, 1, { 0x0000798d } }, { 0x0000fa53, 1, { 0x0000798e } }, { 0x0000fa54, 1, { 0x00007a40 } }, { 0x0000fa55, 1, { 0x00007a81 } }, { 0x0000fa56, 1, { 0x00007bc0 } }, { 0x0000fa57, 1, { 0x00007df4 } }, { 0x0000fa58, 1, { 0x00007e09 } }, { 0x0000fa59, 1, { 0x00007e41 } }, { 0x0000fa5a, 1, { 0x00007f72 } }, { 0x0000fa5b, 1, { 0x00008005 } }, { 0x0000fa5c, 1, { 0x000081ed } }, { 0x0000fa5d, 1, { 0x00008279 } }, { 0x0000fa5e, 1, { 0x00008279 } }, { 0x0000fa5f, 1, { 0x00008457 } }, { 0x0000fa60, 1, { 0x00008910 } }, { 0x0000fa61, 1, { 0x00008996 } }, { 0x0000fa62, 1, { 0x00008b01 } }, { 0x0000fa63, 1, { 0x00008b39 } }, { 0x0000fa64, 1, { 0x00008cd3 } }, { 0x0000fa65, 1, { 0x00008d08 } }, { 0x0000fa66, 1, { 0x00008fb6 } }, { 0x0000fa67, 1, { 0x00009038 } }, { 0x0000fa68, 1, { 0x000096e3 } }, { 0x0000fa69, 1, { 0x000097ff } }, { 0x0000fa6a, 1, { 0x0000983b } }, { 0x0000fa6b, 1, { 0x00006075 } }, { 0x0000fa6c, 1, { 0x000242ee } }, { 0x0000fa6d, 1, { 0x00008218 } }, { 0x0000fa70, 1, { 0x00004e26 } }, { 0x0000fa71, 1, { 0x000051b5 } }, { 0x0000fa72, 1, { 0x00005168 } }, { 0x0000fa73, 1, { 0x00004f80 } }, { 0x0000fa74, 1, { 0x00005145 } }, { 0x0000fa75, 1, { 0x00005180 } }, { 0x0000fa76, 1, { 0x000052c7 } }, { 0x0000fa77, 1, { 0x000052fa } }, { 0x0000fa78, 1, { 0x0000559d } }, { 0x0000fa79, 1, { 0x00005555 } }, { 0x0000fa7a, 1, { 0x00005599 } }, { 0x0000fa7b, 1, { 0x000055e2 } }, { 0x0000fa7c, 1, { 0x0000585a } }, { 0x0000fa7d, 1, { 0x000058b3 } }, { 0x0000fa7e, 1, { 0x00005944 } }, { 0x0000fa7f, 1, { 0x00005954 } }, { 0x0000fa80, 1, { 0x00005a62 } }, { 0x0000fa81, 1, { 0x00005b28 } }, { 0x0000fa82, 1, { 0x00005ed2 } }, { 0x0000fa83, 1, { 0x00005ed9 } }, { 0x0000fa84, 1, { 0x00005f69 } }, { 0x0000fa85, 1, { 0x00005fad } }, { 0x0000fa86, 1, { 0x000060d8 } }, { 0x0000fa87, 1, { 0x0000614e } }, { 0x0000fa88, 1, { 0x00006108 } }, { 0x0000fa89, 1, { 0x0000618e } }, { 0x0000fa8a, 1, { 0x00006160 } }, { 0x0000fa8b, 1, { 0x000061f2 } }, { 0x0000fa8c, 1, { 0x00006234 } }, { 0x0000fa8d, 1, { 0x000063c4 } }, { 0x0000fa8e, 1, { 0x0000641c } }, { 0x0000fa8f, 1, { 0x00006452 } }, { 0x0000fa90, 1, { 0x00006556 } }, { 0x0000fa91, 1, { 0x00006674 } }, { 0x0000fa92, 1, { 0x00006717 } }, { 0x0000fa93, 1, { 0x0000671b } }, { 0x0000fa94, 1, { 0x00006756 } }, { 0x0000fa95, 1, { 0x00006b79 } }, { 0x0000fa96, 1, { 0x00006bba } }, { 0x0000fa97, 1, { 0x00006d41 } }, { 0x0000fa98, 1, { 0x00006edb } }, { 0x0000fa99, 1, { 0x00006ecb } }, { 0x0000fa9a, 1, { 0x00006f22 } }, { 0x0000fa9b, 1, { 0x0000701e } }, { 0x0000fa9c, 1, { 0x0000716e } }, { 0x0000fa9d, 1, { 0x000077a7 } }, { 0x0000fa9e, 1, { 0x00007235 } }, { 0x0000fa9f, 1, { 0x000072af } }, { 0x0000faa0, 1, { 0x0000732a } }, { 0x0000faa1, 1, { 0x00007471 } }, { 0x0000faa2, 1, { 0x00007506 } }, { 0x0000faa3, 1, { 0x0000753b } }, { 0x0000faa4, 1, { 0x0000761d } }, { 0x0000faa5, 1, { 0x0000761f } }, { 0x0000faa6, 1, { 0x000076ca } }, { 0x0000faa7, 1, { 0x000076db } }, { 0x0000faa8, 1, { 0x000076f4 } }, { 0x0000faa9, 1, { 0x0000774a } }, { 0x0000faaa, 1, { 0x00007740 } }, { 0x0000faab, 1, { 0x000078cc } }, { 0x0000faac, 1, { 0x00007ab1 } }, { 0x0000faad, 1, { 0x00007bc0 } }, { 0x0000faae, 1, { 0x00007c7b } }, { 0x0000faaf, 1, { 0x00007d5b } }, { 0x0000fab0, 1, { 0x00007df4 } }, { 0x0000fab1, 1, { 0x00007f3e } }, { 0x0000fab2, 1, { 0x00008005 } }, { 0x0000fab3, 1, { 0x00008352 } }, { 0x0000fab4, 1, { 0x000083ef } }, { 0x0000fab5, 1, { 0x00008779 } }, { 0x0000fab6, 1, { 0x00008941 } }, { 0x0000fab7, 1, { 0x00008986 } }, { 0x0000fab8, 1, { 0x00008996 } }, { 0x0000fab9, 1, { 0x00008abf } }, { 0x0000faba, 1, { 0x00008af8 } }, { 0x0000fabb, 1, { 0x00008acb } }, { 0x0000fabc, 1, { 0x00008b01 } }, { 0x0000fabd, 1, { 0x00008afe } }, { 0x0000fabe, 1, { 0x00008aed } }, { 0x0000fabf, 1, { 0x00008b39 } }, { 0x0000fac0, 1, { 0x00008b8a } }, { 0x0000fac1, 1, { 0x00008d08 } }, { 0x0000fac2, 1, { 0x00008f38 } }, { 0x0000fac3, 1, { 0x00009072 } }, { 0x0000fac4, 1, { 0x00009199 } }, { 0x0000fac5, 1, { 0x00009276 } }, { 0x0000fac6, 1, { 0x0000967c } }, { 0x0000fac7, 1, { 0x000096e3 } }, { 0x0000fac8, 1, { 0x00009756 } }, { 0x0000fac9, 1, { 0x000097db } }, { 0x0000faca, 1, { 0x000097ff } }, { 0x0000facb, 1, { 0x0000980b } }, { 0x0000facc, 1, { 0x0000983b } }, { 0x0000facd, 1, { 0x00009b12 } }, { 0x0000face, 1, { 0x00009f9c } }, { 0x0000facf, 1, { 0x0002284a } }, { 0x0000fad0, 1, { 0x00022844 } }, { 0x0000fad1, 1, { 0x000233d5 } }, { 0x0000fad2, 1, { 0x00003b9d } }, { 0x0000fad3, 1, { 0x00004018 } }, { 0x0000fad4, 1, { 0x00004039 } }, { 0x0000fad5, 1, { 0x00025249 } }, { 0x0000fad6, 1, { 0x00025cd0 } }, { 0x0000fad7, 1, { 0x00027ed3 } }, { 0x0000fad8, 1, { 0x00009f43 } }, { 0x0000fad9, 1, { 0x00009f8e } }, { 0x0000fb00, 1, { 0x0000fb00 } }, { 0x0000fb01, 1, { 0x0000fb01 } }, { 0x0000fb02, 1, { 0x0000fb02 } }, { 0x0000fb03, 1, { 0x0000fb03 } }, { 0x0000fb04, 1, { 0x0000fb04 } }, { 0x0000fb05, 1, { 0x0000fb05 } }, { 0x0000fb06, 1, { 0x0000fb06 } }, { 0x0000fb13, 1, { 0x0000fb13 } }, { 0x0000fb14, 1, { 0x0000fb14 } }, { 0x0000fb15, 1, { 0x0000fb15 } }, { 0x0000fb16, 1, { 0x0000fb16 } }, { 0x0000fb17, 1, { 0x0000fb17 } }, { 0x0000fb1d, 2, { 0x000005d9, 0x000005b4 } }, { 0x0000fb1e, 1, { 0x0000fb1e } }, { 0x0000fb1f, 2, { 0x000005f2, 0x000005b7 } }, { 0x0000fb20, 1, { 0x0000fb20 } }, { 0x0000fb21, 1, { 0x0000fb21 } }, { 0x0000fb22, 1, { 0x0000fb22 } }, { 0x0000fb23, 1, { 0x0000fb23 } }, { 0x0000fb24, 1, { 0x0000fb24 } }, { 0x0000fb25, 1, { 0x0000fb25 } }, { 0x0000fb26, 1, { 0x0000fb26 } }, { 0x0000fb27, 1, { 0x0000fb27 } }, { 0x0000fb28, 1, { 0x0000fb28 } }, { 0x0000fb29, 1, { 0x0000fb29 } }, { 0x0000fb2a, 2, { 0x000005e9, 0x000005c1 } }, { 0x0000fb2b, 2, { 0x000005e9, 0x000005c2 } }, { 0x0000fb2c, 3, { 0x000005e9, 0x000005bc, 0x000005c1 } }, { 0x0000fb2d, 3, { 0x000005e9, 0x000005bc, 0x000005c2 } }, { 0x0000fb2e, 2, { 0x000005d0, 0x000005b7 } }, { 0x0000fb2f, 2, { 0x000005d0, 0x000005b8 } }, { 0x0000fb30, 2, { 0x000005d0, 0x000005bc } }, { 0x0000fb31, 2, { 0x000005d1, 0x000005bc } }, { 0x0000fb32, 2, { 0x000005d2, 0x000005bc } }, { 0x0000fb33, 2, { 0x000005d3, 0x000005bc } }, { 0x0000fb34, 2, { 0x000005d4, 0x000005bc } }, { 0x0000fb35, 2, { 0x000005d5, 0x000005bc } }, { 0x0000fb36, 2, { 0x000005d6, 0x000005bc } }, { 0x0000fb38, 2, { 0x000005d8, 0x000005bc } }, { 0x0000fb39, 2, { 0x000005d9, 0x000005bc } }, { 0x0000fb3a, 2, { 0x000005da, 0x000005bc } }, { 0x0000fb3b, 2, { 0x000005db, 0x000005bc } }, { 0x0000fb3c, 2, { 0x000005dc, 0x000005bc } }, { 0x0000fb3e, 2, { 0x000005de, 0x000005bc } }, { 0x0000fb40, 2, { 0x000005e0, 0x000005bc } }, { 0x0000fb41, 2, { 0x000005e1, 0x000005bc } }, { 0x0000fb43, 2, { 0x000005e3, 0x000005bc } }, { 0x0000fb44, 2, { 0x000005e4, 0x000005bc } }, { 0x0000fb46, 2, { 0x000005e6, 0x000005bc } }, { 0x0000fb47, 2, { 0x000005e7, 0x000005bc } }, { 0x0000fb48, 2, { 0x000005e8, 0x000005bc } }, { 0x0000fb49, 2, { 0x000005e9, 0x000005bc } }, { 0x0000fb4a, 2, { 0x000005ea, 0x000005bc } }, { 0x0000fb4b, 2, { 0x000005d5, 0x000005b9 } }, { 0x0000fb4c, 2, { 0x000005d1, 0x000005bf } }, { 0x0000fb4d, 2, { 0x000005db, 0x000005bf } }, { 0x0000fb4e, 2, { 0x000005e4, 0x000005bf } }, { 0x0000fb4f, 1, { 0x0000fb4f } }, { 0x0000fb50, 1, { 0x0000fb50 } }, { 0x0000fb51, 1, { 0x0000fb51 } }, { 0x0000fb52, 1, { 0x0000fb52 } }, { 0x0000fb53, 1, { 0x0000fb53 } }, { 0x0000fb54, 1, { 0x0000fb54 } }, { 0x0000fb55, 1, { 0x0000fb55 } }, { 0x0000fb56, 1, { 0x0000fb56 } }, { 0x0000fb57, 1, { 0x0000fb57 } }, { 0x0000fb58, 1, { 0x0000fb58 } }, { 0x0000fb59, 1, { 0x0000fb59 } }, { 0x0000fb5a, 1, { 0x0000fb5a } }, { 0x0000fb5b, 1, { 0x0000fb5b } }, { 0x0000fb5c, 1, { 0x0000fb5c } }, { 0x0000fb5d, 1, { 0x0000fb5d } }, { 0x0000fb5e, 1, { 0x0000fb5e } }, { 0x0000fb5f, 1, { 0x0000fb5f } }, { 0x0000fb60, 1, { 0x0000fb60 } }, { 0x0000fb61, 1, { 0x0000fb61 } }, { 0x0000fb62, 1, { 0x0000fb62 } }, { 0x0000fb63, 1, { 0x0000fb63 } }, { 0x0000fb64, 1, { 0x0000fb64 } }, { 0x0000fb65, 1, { 0x0000fb65 } }, { 0x0000fb66, 1, { 0x0000fb66 } }, { 0x0000fb67, 1, { 0x0000fb67 } }, { 0x0000fb68, 1, { 0x0000fb68 } }, { 0x0000fb69, 1, { 0x0000fb69 } }, { 0x0000fb6a, 1, { 0x0000fb6a } }, { 0x0000fb6b, 1, { 0x0000fb6b } }, { 0x0000fb6c, 1, { 0x0000fb6c } }, { 0x0000fb6d, 1, { 0x0000fb6d } }, { 0x0000fb6e, 1, { 0x0000fb6e } }, { 0x0000fb6f, 1, { 0x0000fb6f } }, { 0x0000fb70, 1, { 0x0000fb70 } }, { 0x0000fb71, 1, { 0x0000fb71 } }, { 0x0000fb72, 1, { 0x0000fb72 } }, { 0x0000fb73, 1, { 0x0000fb73 } }, { 0x0000fb74, 1, { 0x0000fb74 } }, { 0x0000fb75, 1, { 0x0000fb75 } }, { 0x0000fb76, 1, { 0x0000fb76 } }, { 0x0000fb77, 1, { 0x0000fb77 } }, { 0x0000fb78, 1, { 0x0000fb78 } }, { 0x0000fb79, 1, { 0x0000fb79 } }, { 0x0000fb7a, 1, { 0x0000fb7a } }, { 0x0000fb7b, 1, { 0x0000fb7b } }, { 0x0000fb7c, 1, { 0x0000fb7c } }, { 0x0000fb7d, 1, { 0x0000fb7d } }, { 0x0000fb7e, 1, { 0x0000fb7e } }, { 0x0000fb7f, 1, { 0x0000fb7f } }, { 0x0000fb80, 1, { 0x0000fb80 } }, { 0x0000fb81, 1, { 0x0000fb81 } }, { 0x0000fb82, 1, { 0x0000fb82 } }, { 0x0000fb83, 1, { 0x0000fb83 } }, { 0x0000fb84, 1, { 0x0000fb84 } }, { 0x0000fb85, 1, { 0x0000fb85 } }, { 0x0000fb86, 1, { 0x0000fb86 } }, { 0x0000fb87, 1, { 0x0000fb87 } }, { 0x0000fb88, 1, { 0x0000fb88 } }, { 0x0000fb89, 1, { 0x0000fb89 } }, { 0x0000fb8a, 1, { 0x0000fb8a } }, { 0x0000fb8b, 1, { 0x0000fb8b } }, { 0x0000fb8c, 1, { 0x0000fb8c } }, { 0x0000fb8d, 1, { 0x0000fb8d } }, { 0x0000fb8e, 1, { 0x0000fb8e } }, { 0x0000fb8f, 1, { 0x0000fb8f } }, { 0x0000fb90, 1, { 0x0000fb90 } }, { 0x0000fb91, 1, { 0x0000fb91 } }, { 0x0000fb92, 1, { 0x0000fb92 } }, { 0x0000fb93, 1, { 0x0000fb93 } }, { 0x0000fb94, 1, { 0x0000fb94 } }, { 0x0000fb95, 1, { 0x0000fb95 } }, { 0x0000fb96, 1, { 0x0000fb96 } }, { 0x0000fb97, 1, { 0x0000fb97 } }, { 0x0000fb98, 1, { 0x0000fb98 } }, { 0x0000fb99, 1, { 0x0000fb99 } }, { 0x0000fb9a, 1, { 0x0000fb9a } }, { 0x0000fb9b, 1, { 0x0000fb9b } }, { 0x0000fb9c, 1, { 0x0000fb9c } }, { 0x0000fb9d, 1, { 0x0000fb9d } }, { 0x0000fb9e, 1, { 0x0000fb9e } }, { 0x0000fb9f, 1, { 0x0000fb9f } }, { 0x0000fba0, 1, { 0x0000fba0 } }, { 0x0000fba1, 1, { 0x0000fba1 } }, { 0x0000fba2, 1, { 0x0000fba2 } }, { 0x0000fba3, 1, { 0x0000fba3 } }, { 0x0000fba4, 1, { 0x0000fba4 } }, { 0x0000fba5, 1, { 0x0000fba5 } }, { 0x0000fba6, 1, { 0x0000fba6 } }, { 0x0000fba7, 1, { 0x0000fba7 } }, { 0x0000fba8, 1, { 0x0000fba8 } }, { 0x0000fba9, 1, { 0x0000fba9 } }, { 0x0000fbaa, 1, { 0x0000fbaa } }, { 0x0000fbab, 1, { 0x0000fbab } }, { 0x0000fbac, 1, { 0x0000fbac } }, { 0x0000fbad, 1, { 0x0000fbad } }, { 0x0000fbae, 1, { 0x0000fbae } }, { 0x0000fbaf, 1, { 0x0000fbaf } }, { 0x0000fbb0, 1, { 0x0000fbb0 } }, { 0x0000fbb1, 1, { 0x0000fbb1 } }, { 0x0000fbb2, 1, { 0x0000fbb2 } }, { 0x0000fbb3, 1, { 0x0000fbb3 } }, { 0x0000fbb4, 1, { 0x0000fbb4 } }, { 0x0000fbb5, 1, { 0x0000fbb5 } }, { 0x0000fbb6, 1, { 0x0000fbb6 } }, { 0x0000fbb7, 1, { 0x0000fbb7 } }, { 0x0000fbb8, 1, { 0x0000fbb8 } }, { 0x0000fbb9, 1, { 0x0000fbb9 } }, { 0x0000fbba, 1, { 0x0000fbba } }, { 0x0000fbbb, 1, { 0x0000fbbb } }, { 0x0000fbbc, 1, { 0x0000fbbc } }, { 0x0000fbbd, 1, { 0x0000fbbd } }, { 0x0000fbbe, 1, { 0x0000fbbe } }, { 0x0000fbbf, 1, { 0x0000fbbf } }, { 0x0000fbc0, 1, { 0x0000fbc0 } }, { 0x0000fbc1, 1, { 0x0000fbc1 } }, { 0x0000fbd3, 1, { 0x0000fbd3 } }, { 0x0000fbd4, 1, { 0x0000fbd4 } }, { 0x0000fbd5, 1, { 0x0000fbd5 } }, { 0x0000fbd6, 1, { 0x0000fbd6 } }, { 0x0000fbd7, 1, { 0x0000fbd7 } }, { 0x0000fbd8, 1, { 0x0000fbd8 } }, { 0x0000fbd9, 1, { 0x0000fbd9 } }, { 0x0000fbda, 1, { 0x0000fbda } }, { 0x0000fbdb, 1, { 0x0000fbdb } }, { 0x0000fbdc, 1, { 0x0000fbdc } }, { 0x0000fbdd, 1, { 0x0000fbdd } }, { 0x0000fbde, 1, { 0x0000fbde } }, { 0x0000fbdf, 1, { 0x0000fbdf } }, { 0x0000fbe0, 1, { 0x0000fbe0 } }, { 0x0000fbe1, 1, { 0x0000fbe1 } }, { 0x0000fbe2, 1, { 0x0000fbe2 } }, { 0x0000fbe3, 1, { 0x0000fbe3 } }, { 0x0000fbe4, 1, { 0x0000fbe4 } }, { 0x0000fbe5, 1, { 0x0000fbe5 } }, { 0x0000fbe6, 1, { 0x0000fbe6 } }, { 0x0000fbe7, 1, { 0x0000fbe7 } }, { 0x0000fbe8, 1, { 0x0000fbe8 } }, { 0x0000fbe9, 1, { 0x0000fbe9 } }, { 0x0000fbea, 1, { 0x0000fbea } }, { 0x0000fbeb, 1, { 0x0000fbeb } }, { 0x0000fbec, 1, { 0x0000fbec } }, { 0x0000fbed, 1, { 0x0000fbed } }, { 0x0000fbee, 1, { 0x0000fbee } }, { 0x0000fbef, 1, { 0x0000fbef } }, { 0x0000fbf0, 1, { 0x0000fbf0 } }, { 0x0000fbf1, 1, { 0x0000fbf1 } }, { 0x0000fbf2, 1, { 0x0000fbf2 } }, { 0x0000fbf3, 1, { 0x0000fbf3 } }, { 0x0000fbf4, 1, { 0x0000fbf4 } }, { 0x0000fbf5, 1, { 0x0000fbf5 } }, { 0x0000fbf6, 1, { 0x0000fbf6 } }, { 0x0000fbf7, 1, { 0x0000fbf7 } }, { 0x0000fbf8, 1, { 0x0000fbf8 } }, { 0x0000fbf9, 1, { 0x0000fbf9 } }, { 0x0000fbfa, 1, { 0x0000fbfa } }, { 0x0000fbfb, 1, { 0x0000fbfb } }, { 0x0000fbfc, 1, { 0x0000fbfc } }, { 0x0000fbfd, 1, { 0x0000fbfd } }, { 0x0000fbfe, 1, { 0x0000fbfe } }, { 0x0000fbff, 1, { 0x0000fbff } }, { 0x0000fc00, 1, { 0x0000fc00 } }, { 0x0000fc01, 1, { 0x0000fc01 } }, { 0x0000fc02, 1, { 0x0000fc02 } }, { 0x0000fc03, 1, { 0x0000fc03 } }, { 0x0000fc04, 1, { 0x0000fc04 } }, { 0x0000fc05, 1, { 0x0000fc05 } }, { 0x0000fc06, 1, { 0x0000fc06 } }, { 0x0000fc07, 1, { 0x0000fc07 } }, { 0x0000fc08, 1, { 0x0000fc08 } }, { 0x0000fc09, 1, { 0x0000fc09 } }, { 0x0000fc0a, 1, { 0x0000fc0a } }, { 0x0000fc0b, 1, { 0x0000fc0b } }, { 0x0000fc0c, 1, { 0x0000fc0c } }, { 0x0000fc0d, 1, { 0x0000fc0d } }, { 0x0000fc0e, 1, { 0x0000fc0e } }, { 0x0000fc0f, 1, { 0x0000fc0f } }, { 0x0000fc10, 1, { 0x0000fc10 } }, { 0x0000fc11, 1, { 0x0000fc11 } }, { 0x0000fc12, 1, { 0x0000fc12 } }, { 0x0000fc13, 1, { 0x0000fc13 } }, { 0x0000fc14, 1, { 0x0000fc14 } }, { 0x0000fc15, 1, { 0x0000fc15 } }, { 0x0000fc16, 1, { 0x0000fc16 } }, { 0x0000fc17, 1, { 0x0000fc17 } }, { 0x0000fc18, 1, { 0x0000fc18 } }, { 0x0000fc19, 1, { 0x0000fc19 } }, { 0x0000fc1a, 1, { 0x0000fc1a } }, { 0x0000fc1b, 1, { 0x0000fc1b } }, { 0x0000fc1c, 1, { 0x0000fc1c } }, { 0x0000fc1d, 1, { 0x0000fc1d } }, { 0x0000fc1e, 1, { 0x0000fc1e } }, { 0x0000fc1f, 1, { 0x0000fc1f } }, { 0x0000fc20, 1, { 0x0000fc20 } }, { 0x0000fc21, 1, { 0x0000fc21 } }, { 0x0000fc22, 1, { 0x0000fc22 } }, { 0x0000fc23, 1, { 0x0000fc23 } }, { 0x0000fc24, 1, { 0x0000fc24 } }, { 0x0000fc25, 1, { 0x0000fc25 } }, { 0x0000fc26, 1, { 0x0000fc26 } }, { 0x0000fc27, 1, { 0x0000fc27 } }, { 0x0000fc28, 1, { 0x0000fc28 } }, { 0x0000fc29, 1, { 0x0000fc29 } }, { 0x0000fc2a, 1, { 0x0000fc2a } }, { 0x0000fc2b, 1, { 0x0000fc2b } }, { 0x0000fc2c, 1, { 0x0000fc2c } }, { 0x0000fc2d, 1, { 0x0000fc2d } }, { 0x0000fc2e, 1, { 0x0000fc2e } }, { 0x0000fc2f, 1, { 0x0000fc2f } }, { 0x0000fc30, 1, { 0x0000fc30 } }, { 0x0000fc31, 1, { 0x0000fc31 } }, { 0x0000fc32, 1, { 0x0000fc32 } }, { 0x0000fc33, 1, { 0x0000fc33 } }, { 0x0000fc34, 1, { 0x0000fc34 } }, { 0x0000fc35, 1, { 0x0000fc35 } }, { 0x0000fc36, 1, { 0x0000fc36 } }, { 0x0000fc37, 1, { 0x0000fc37 } }, { 0x0000fc38, 1, { 0x0000fc38 } }, { 0x0000fc39, 1, { 0x0000fc39 } }, { 0x0000fc3a, 1, { 0x0000fc3a } }, { 0x0000fc3b, 1, { 0x0000fc3b } }, { 0x0000fc3c, 1, { 0x0000fc3c } }, { 0x0000fc3d, 1, { 0x0000fc3d } }, { 0x0000fc3e, 1, { 0x0000fc3e } }, { 0x0000fc3f, 1, { 0x0000fc3f } }, { 0x0000fc40, 1, { 0x0000fc40 } }, { 0x0000fc41, 1, { 0x0000fc41 } }, { 0x0000fc42, 1, { 0x0000fc42 } }, { 0x0000fc43, 1, { 0x0000fc43 } }, { 0x0000fc44, 1, { 0x0000fc44 } }, { 0x0000fc45, 1, { 0x0000fc45 } }, { 0x0000fc46, 1, { 0x0000fc46 } }, { 0x0000fc47, 1, { 0x0000fc47 } }, { 0x0000fc48, 1, { 0x0000fc48 } }, { 0x0000fc49, 1, { 0x0000fc49 } }, { 0x0000fc4a, 1, { 0x0000fc4a } }, { 0x0000fc4b, 1, { 0x0000fc4b } }, { 0x0000fc4c, 1, { 0x0000fc4c } }, { 0x0000fc4d, 1, { 0x0000fc4d } }, { 0x0000fc4e, 1, { 0x0000fc4e } }, { 0x0000fc4f, 1, { 0x0000fc4f } }, { 0x0000fc50, 1, { 0x0000fc50 } }, { 0x0000fc51, 1, { 0x0000fc51 } }, { 0x0000fc52, 1, { 0x0000fc52 } }, { 0x0000fc53, 1, { 0x0000fc53 } }, { 0x0000fc54, 1, { 0x0000fc54 } }, { 0x0000fc55, 1, { 0x0000fc55 } }, { 0x0000fc56, 1, { 0x0000fc56 } }, { 0x0000fc57, 1, { 0x0000fc57 } }, { 0x0000fc58, 1, { 0x0000fc58 } }, { 0x0000fc59, 1, { 0x0000fc59 } }, { 0x0000fc5a, 1, { 0x0000fc5a } }, { 0x0000fc5b, 1, { 0x0000fc5b } }, { 0x0000fc5c, 1, { 0x0000fc5c } }, { 0x0000fc5d, 1, { 0x0000fc5d } }, { 0x0000fc5e, 1, { 0x0000fc5e } }, { 0x0000fc5f, 1, { 0x0000fc5f } }, { 0x0000fc60, 1, { 0x0000fc60 } }, { 0x0000fc61, 1, { 0x0000fc61 } }, { 0x0000fc62, 1, { 0x0000fc62 } }, { 0x0000fc63, 1, { 0x0000fc63 } }, { 0x0000fc64, 1, { 0x0000fc64 } }, { 0x0000fc65, 1, { 0x0000fc65 } }, { 0x0000fc66, 1, { 0x0000fc66 } }, { 0x0000fc67, 1, { 0x0000fc67 } }, { 0x0000fc68, 1, { 0x0000fc68 } }, { 0x0000fc69, 1, { 0x0000fc69 } }, { 0x0000fc6a, 1, { 0x0000fc6a } }, { 0x0000fc6b, 1, { 0x0000fc6b } }, { 0x0000fc6c, 1, { 0x0000fc6c } }, { 0x0000fc6d, 1, { 0x0000fc6d } }, { 0x0000fc6e, 1, { 0x0000fc6e } }, { 0x0000fc6f, 1, { 0x0000fc6f } }, { 0x0000fc70, 1, { 0x0000fc70 } }, { 0x0000fc71, 1, { 0x0000fc71 } }, { 0x0000fc72, 1, { 0x0000fc72 } }, { 0x0000fc73, 1, { 0x0000fc73 } }, { 0x0000fc74, 1, { 0x0000fc74 } }, { 0x0000fc75, 1, { 0x0000fc75 } }, { 0x0000fc76, 1, { 0x0000fc76 } }, { 0x0000fc77, 1, { 0x0000fc77 } }, { 0x0000fc78, 1, { 0x0000fc78 } }, { 0x0000fc79, 1, { 0x0000fc79 } }, { 0x0000fc7a, 1, { 0x0000fc7a } }, { 0x0000fc7b, 1, { 0x0000fc7b } }, { 0x0000fc7c, 1, { 0x0000fc7c } }, { 0x0000fc7d, 1, { 0x0000fc7d } }, { 0x0000fc7e, 1, { 0x0000fc7e } }, { 0x0000fc7f, 1, { 0x0000fc7f } }, { 0x0000fc80, 1, { 0x0000fc80 } }, { 0x0000fc81, 1, { 0x0000fc81 } }, { 0x0000fc82, 1, { 0x0000fc82 } }, { 0x0000fc83, 1, { 0x0000fc83 } }, { 0x0000fc84, 1, { 0x0000fc84 } }, { 0x0000fc85, 1, { 0x0000fc85 } }, { 0x0000fc86, 1, { 0x0000fc86 } }, { 0x0000fc87, 1, { 0x0000fc87 } }, { 0x0000fc88, 1, { 0x0000fc88 } }, { 0x0000fc89, 1, { 0x0000fc89 } }, { 0x0000fc8a, 1, { 0x0000fc8a } }, { 0x0000fc8b, 1, { 0x0000fc8b } }, { 0x0000fc8c, 1, { 0x0000fc8c } }, { 0x0000fc8d, 1, { 0x0000fc8d } }, { 0x0000fc8e, 1, { 0x0000fc8e } }, { 0x0000fc8f, 1, { 0x0000fc8f } }, { 0x0000fc90, 1, { 0x0000fc90 } }, { 0x0000fc91, 1, { 0x0000fc91 } }, { 0x0000fc92, 1, { 0x0000fc92 } }, { 0x0000fc93, 1, { 0x0000fc93 } }, { 0x0000fc94, 1, { 0x0000fc94 } }, { 0x0000fc95, 1, { 0x0000fc95 } }, { 0x0000fc96, 1, { 0x0000fc96 } }, { 0x0000fc97, 1, { 0x0000fc97 } }, { 0x0000fc98, 1, { 0x0000fc98 } }, { 0x0000fc99, 1, { 0x0000fc99 } }, { 0x0000fc9a, 1, { 0x0000fc9a } }, { 0x0000fc9b, 1, { 0x0000fc9b } }, { 0x0000fc9c, 1, { 0x0000fc9c } }, { 0x0000fc9d, 1, { 0x0000fc9d } }, { 0x0000fc9e, 1, { 0x0000fc9e } }, { 0x0000fc9f, 1, { 0x0000fc9f } }, { 0x0000fca0, 1, { 0x0000fca0 } }, { 0x0000fca1, 1, { 0x0000fca1 } }, { 0x0000fca2, 1, { 0x0000fca2 } }, { 0x0000fca3, 1, { 0x0000fca3 } }, { 0x0000fca4, 1, { 0x0000fca4 } }, { 0x0000fca5, 1, { 0x0000fca5 } }, { 0x0000fca6, 1, { 0x0000fca6 } }, { 0x0000fca7, 1, { 0x0000fca7 } }, { 0x0000fca8, 1, { 0x0000fca8 } }, { 0x0000fca9, 1, { 0x0000fca9 } }, { 0x0000fcaa, 1, { 0x0000fcaa } }, { 0x0000fcab, 1, { 0x0000fcab } }, { 0x0000fcac, 1, { 0x0000fcac } }, { 0x0000fcad, 1, { 0x0000fcad } }, { 0x0000fcae, 1, { 0x0000fcae } }, { 0x0000fcaf, 1, { 0x0000fcaf } }, { 0x0000fcb0, 1, { 0x0000fcb0 } }, { 0x0000fcb1, 1, { 0x0000fcb1 } }, { 0x0000fcb2, 1, { 0x0000fcb2 } }, { 0x0000fcb3, 1, { 0x0000fcb3 } }, { 0x0000fcb4, 1, { 0x0000fcb4 } }, { 0x0000fcb5, 1, { 0x0000fcb5 } }, { 0x0000fcb6, 1, { 0x0000fcb6 } }, { 0x0000fcb7, 1, { 0x0000fcb7 } }, { 0x0000fcb8, 1, { 0x0000fcb8 } }, { 0x0000fcb9, 1, { 0x0000fcb9 } }, { 0x0000fcba, 1, { 0x0000fcba } }, { 0x0000fcbb, 1, { 0x0000fcbb } }, { 0x0000fcbc, 1, { 0x0000fcbc } }, { 0x0000fcbd, 1, { 0x0000fcbd } }, { 0x0000fcbe, 1, { 0x0000fcbe } }, { 0x0000fcbf, 1, { 0x0000fcbf } }, { 0x0000fcc0, 1, { 0x0000fcc0 } }, { 0x0000fcc1, 1, { 0x0000fcc1 } }, { 0x0000fcc2, 1, { 0x0000fcc2 } }, { 0x0000fcc3, 1, { 0x0000fcc3 } }, { 0x0000fcc4, 1, { 0x0000fcc4 } }, { 0x0000fcc5, 1, { 0x0000fcc5 } }, { 0x0000fcc6, 1, { 0x0000fcc6 } }, { 0x0000fcc7, 1, { 0x0000fcc7 } }, { 0x0000fcc8, 1, { 0x0000fcc8 } }, { 0x0000fcc9, 1, { 0x0000fcc9 } }, { 0x0000fcca, 1, { 0x0000fcca } }, { 0x0000fccb, 1, { 0x0000fccb } }, { 0x0000fccc, 1, { 0x0000fccc } }, { 0x0000fccd, 1, { 0x0000fccd } }, { 0x0000fcce, 1, { 0x0000fcce } }, { 0x0000fccf, 1, { 0x0000fccf } }, { 0x0000fcd0, 1, { 0x0000fcd0 } }, { 0x0000fcd1, 1, { 0x0000fcd1 } }, { 0x0000fcd2, 1, { 0x0000fcd2 } }, { 0x0000fcd3, 1, { 0x0000fcd3 } }, { 0x0000fcd4, 1, { 0x0000fcd4 } }, { 0x0000fcd5, 1, { 0x0000fcd5 } }, { 0x0000fcd6, 1, { 0x0000fcd6 } }, { 0x0000fcd7, 1, { 0x0000fcd7 } }, { 0x0000fcd8, 1, { 0x0000fcd8 } }, { 0x0000fcd9, 1, { 0x0000fcd9 } }, { 0x0000fcda, 1, { 0x0000fcda } }, { 0x0000fcdb, 1, { 0x0000fcdb } }, { 0x0000fcdc, 1, { 0x0000fcdc } }, { 0x0000fcdd, 1, { 0x0000fcdd } }, { 0x0000fcde, 1, { 0x0000fcde } }, { 0x0000fcdf, 1, { 0x0000fcdf } }, { 0x0000fce0, 1, { 0x0000fce0 } }, { 0x0000fce1, 1, { 0x0000fce1 } }, { 0x0000fce2, 1, { 0x0000fce2 } }, { 0x0000fce3, 1, { 0x0000fce3 } }, { 0x0000fce4, 1, { 0x0000fce4 } }, { 0x0000fce5, 1, { 0x0000fce5 } }, { 0x0000fce6, 1, { 0x0000fce6 } }, { 0x0000fce7, 1, { 0x0000fce7 } }, { 0x0000fce8, 1, { 0x0000fce8 } }, { 0x0000fce9, 1, { 0x0000fce9 } }, { 0x0000fcea, 1, { 0x0000fcea } }, { 0x0000fceb, 1, { 0x0000fceb } }, { 0x0000fcec, 1, { 0x0000fcec } }, { 0x0000fced, 1, { 0x0000fced } }, { 0x0000fcee, 1, { 0x0000fcee } }, { 0x0000fcef, 1, { 0x0000fcef } }, { 0x0000fcf0, 1, { 0x0000fcf0 } }, { 0x0000fcf1, 1, { 0x0000fcf1 } }, { 0x0000fcf2, 1, { 0x0000fcf2 } }, { 0x0000fcf3, 1, { 0x0000fcf3 } }, { 0x0000fcf4, 1, { 0x0000fcf4 } }, { 0x0000fcf5, 1, { 0x0000fcf5 } }, { 0x0000fcf6, 1, { 0x0000fcf6 } }, { 0x0000fcf7, 1, { 0x0000fcf7 } }, { 0x0000fcf8, 1, { 0x0000fcf8 } }, { 0x0000fcf9, 1, { 0x0000fcf9 } }, { 0x0000fcfa, 1, { 0x0000fcfa } }, { 0x0000fcfb, 1, { 0x0000fcfb } }, { 0x0000fcfc, 1, { 0x0000fcfc } }, { 0x0000fcfd, 1, { 0x0000fcfd } }, { 0x0000fcfe, 1, { 0x0000fcfe } }, { 0x0000fcff, 1, { 0x0000fcff } }, { 0x0000fd00, 1, { 0x0000fd00 } }, { 0x0000fd01, 1, { 0x0000fd01 } }, { 0x0000fd02, 1, { 0x0000fd02 } }, { 0x0000fd03, 1, { 0x0000fd03 } }, { 0x0000fd04, 1, { 0x0000fd04 } }, { 0x0000fd05, 1, { 0x0000fd05 } }, { 0x0000fd06, 1, { 0x0000fd06 } }, { 0x0000fd07, 1, { 0x0000fd07 } }, { 0x0000fd08, 1, { 0x0000fd08 } }, { 0x0000fd09, 1, { 0x0000fd09 } }, { 0x0000fd0a, 1, { 0x0000fd0a } }, { 0x0000fd0b, 1, { 0x0000fd0b } }, { 0x0000fd0c, 1, { 0x0000fd0c } }, { 0x0000fd0d, 1, { 0x0000fd0d } }, { 0x0000fd0e, 1, { 0x0000fd0e } }, { 0x0000fd0f, 1, { 0x0000fd0f } }, { 0x0000fd10, 1, { 0x0000fd10 } }, { 0x0000fd11, 1, { 0x0000fd11 } }, { 0x0000fd12, 1, { 0x0000fd12 } }, { 0x0000fd13, 1, { 0x0000fd13 } }, { 0x0000fd14, 1, { 0x0000fd14 } }, { 0x0000fd15, 1, { 0x0000fd15 } }, { 0x0000fd16, 1, { 0x0000fd16 } }, { 0x0000fd17, 1, { 0x0000fd17 } }, { 0x0000fd18, 1, { 0x0000fd18 } }, { 0x0000fd19, 1, { 0x0000fd19 } }, { 0x0000fd1a, 1, { 0x0000fd1a } }, { 0x0000fd1b, 1, { 0x0000fd1b } }, { 0x0000fd1c, 1, { 0x0000fd1c } }, { 0x0000fd1d, 1, { 0x0000fd1d } }, { 0x0000fd1e, 1, { 0x0000fd1e } }, { 0x0000fd1f, 1, { 0x0000fd1f } }, { 0x0000fd20, 1, { 0x0000fd20 } }, { 0x0000fd21, 1, { 0x0000fd21 } }, { 0x0000fd22, 1, { 0x0000fd22 } }, { 0x0000fd23, 1, { 0x0000fd23 } }, { 0x0000fd24, 1, { 0x0000fd24 } }, { 0x0000fd25, 1, { 0x0000fd25 } }, { 0x0000fd26, 1, { 0x0000fd26 } }, { 0x0000fd27, 1, { 0x0000fd27 } }, { 0x0000fd28, 1, { 0x0000fd28 } }, { 0x0000fd29, 1, { 0x0000fd29 } }, { 0x0000fd2a, 1, { 0x0000fd2a } }, { 0x0000fd2b, 1, { 0x0000fd2b } }, { 0x0000fd2c, 1, { 0x0000fd2c } }, { 0x0000fd2d, 1, { 0x0000fd2d } }, { 0x0000fd2e, 1, { 0x0000fd2e } }, { 0x0000fd2f, 1, { 0x0000fd2f } }, { 0x0000fd30, 1, { 0x0000fd30 } }, { 0x0000fd31, 1, { 0x0000fd31 } }, { 0x0000fd32, 1, { 0x0000fd32 } }, { 0x0000fd33, 1, { 0x0000fd33 } }, { 0x0000fd34, 1, { 0x0000fd34 } }, { 0x0000fd35, 1, { 0x0000fd35 } }, { 0x0000fd36, 1, { 0x0000fd36 } }, { 0x0000fd37, 1, { 0x0000fd37 } }, { 0x0000fd38, 1, { 0x0000fd38 } }, { 0x0000fd39, 1, { 0x0000fd39 } }, { 0x0000fd3a, 1, { 0x0000fd3a } }, { 0x0000fd3b, 1, { 0x0000fd3b } }, { 0x0000fd3c, 1, { 0x0000fd3c } }, { 0x0000fd3d, 1, { 0x0000fd3d } }, { 0x0000fd3e, 1, { 0x0000fd3e } }, { 0x0000fd3f, 1, { 0x0000fd3f } }, { 0x0000fd50, 1, { 0x0000fd50 } }, { 0x0000fd51, 1, { 0x0000fd51 } }, { 0x0000fd52, 1, { 0x0000fd52 } }, { 0x0000fd53, 1, { 0x0000fd53 } }, { 0x0000fd54, 1, { 0x0000fd54 } }, { 0x0000fd55, 1, { 0x0000fd55 } }, { 0x0000fd56, 1, { 0x0000fd56 } }, { 0x0000fd57, 1, { 0x0000fd57 } }, { 0x0000fd58, 1, { 0x0000fd58 } }, { 0x0000fd59, 1, { 0x0000fd59 } }, { 0x0000fd5a, 1, { 0x0000fd5a } }, { 0x0000fd5b, 1, { 0x0000fd5b } }, { 0x0000fd5c, 1, { 0x0000fd5c } }, { 0x0000fd5d, 1, { 0x0000fd5d } }, { 0x0000fd5e, 1, { 0x0000fd5e } }, { 0x0000fd5f, 1, { 0x0000fd5f } }, { 0x0000fd60, 1, { 0x0000fd60 } }, { 0x0000fd61, 1, { 0x0000fd61 } }, { 0x0000fd62, 1, { 0x0000fd62 } }, { 0x0000fd63, 1, { 0x0000fd63 } }, { 0x0000fd64, 1, { 0x0000fd64 } }, { 0x0000fd65, 1, { 0x0000fd65 } }, { 0x0000fd66, 1, { 0x0000fd66 } }, { 0x0000fd67, 1, { 0x0000fd67 } }, { 0x0000fd68, 1, { 0x0000fd68 } }, { 0x0000fd69, 1, { 0x0000fd69 } }, { 0x0000fd6a, 1, { 0x0000fd6a } }, { 0x0000fd6b, 1, { 0x0000fd6b } }, { 0x0000fd6c, 1, { 0x0000fd6c } }, { 0x0000fd6d, 1, { 0x0000fd6d } }, { 0x0000fd6e, 1, { 0x0000fd6e } }, { 0x0000fd6f, 1, { 0x0000fd6f } }, { 0x0000fd70, 1, { 0x0000fd70 } }, { 0x0000fd71, 1, { 0x0000fd71 } }, { 0x0000fd72, 1, { 0x0000fd72 } }, { 0x0000fd73, 1, { 0x0000fd73 } }, { 0x0000fd74, 1, { 0x0000fd74 } }, { 0x0000fd75, 1, { 0x0000fd75 } }, { 0x0000fd76, 1, { 0x0000fd76 } }, { 0x0000fd77, 1, { 0x0000fd77 } }, { 0x0000fd78, 1, { 0x0000fd78 } }, { 0x0000fd79, 1, { 0x0000fd79 } }, { 0x0000fd7a, 1, { 0x0000fd7a } }, { 0x0000fd7b, 1, { 0x0000fd7b } }, { 0x0000fd7c, 1, { 0x0000fd7c } }, { 0x0000fd7d, 1, { 0x0000fd7d } }, { 0x0000fd7e, 1, { 0x0000fd7e } }, { 0x0000fd7f, 1, { 0x0000fd7f } }, { 0x0000fd80, 1, { 0x0000fd80 } }, { 0x0000fd81, 1, { 0x0000fd81 } }, { 0x0000fd82, 1, { 0x0000fd82 } }, { 0x0000fd83, 1, { 0x0000fd83 } }, { 0x0000fd84, 1, { 0x0000fd84 } }, { 0x0000fd85, 1, { 0x0000fd85 } }, { 0x0000fd86, 1, { 0x0000fd86 } }, { 0x0000fd87, 1, { 0x0000fd87 } }, { 0x0000fd88, 1, { 0x0000fd88 } }, { 0x0000fd89, 1, { 0x0000fd89 } }, { 0x0000fd8a, 1, { 0x0000fd8a } }, { 0x0000fd8b, 1, { 0x0000fd8b } }, { 0x0000fd8c, 1, { 0x0000fd8c } }, { 0x0000fd8d, 1, { 0x0000fd8d } }, { 0x0000fd8e, 1, { 0x0000fd8e } }, { 0x0000fd8f, 1, { 0x0000fd8f } }, { 0x0000fd92, 1, { 0x0000fd92 } }, { 0x0000fd93, 1, { 0x0000fd93 } }, { 0x0000fd94, 1, { 0x0000fd94 } }, { 0x0000fd95, 1, { 0x0000fd95 } }, { 0x0000fd96, 1, { 0x0000fd96 } }, { 0x0000fd97, 1, { 0x0000fd97 } }, { 0x0000fd98, 1, { 0x0000fd98 } }, { 0x0000fd99, 1, { 0x0000fd99 } }, { 0x0000fd9a, 1, { 0x0000fd9a } }, { 0x0000fd9b, 1, { 0x0000fd9b } }, { 0x0000fd9c, 1, { 0x0000fd9c } }, { 0x0000fd9d, 1, { 0x0000fd9d } }, { 0x0000fd9e, 1, { 0x0000fd9e } }, { 0x0000fd9f, 1, { 0x0000fd9f } }, { 0x0000fda0, 1, { 0x0000fda0 } }, { 0x0000fda1, 1, { 0x0000fda1 } }, { 0x0000fda2, 1, { 0x0000fda2 } }, { 0x0000fda3, 1, { 0x0000fda3 } }, { 0x0000fda4, 1, { 0x0000fda4 } }, { 0x0000fda5, 1, { 0x0000fda5 } }, { 0x0000fda6, 1, { 0x0000fda6 } }, { 0x0000fda7, 1, { 0x0000fda7 } }, { 0x0000fda8, 1, { 0x0000fda8 } }, { 0x0000fda9, 1, { 0x0000fda9 } }, { 0x0000fdaa, 1, { 0x0000fdaa } }, { 0x0000fdab, 1, { 0x0000fdab } }, { 0x0000fdac, 1, { 0x0000fdac } }, { 0x0000fdad, 1, { 0x0000fdad } }, { 0x0000fdae, 1, { 0x0000fdae } }, { 0x0000fdaf, 1, { 0x0000fdaf } }, { 0x0000fdb0, 1, { 0x0000fdb0 } }, { 0x0000fdb1, 1, { 0x0000fdb1 } }, { 0x0000fdb2, 1, { 0x0000fdb2 } }, { 0x0000fdb3, 1, { 0x0000fdb3 } }, { 0x0000fdb4, 1, { 0x0000fdb4 } }, { 0x0000fdb5, 1, { 0x0000fdb5 } }, { 0x0000fdb6, 1, { 0x0000fdb6 } }, { 0x0000fdb7, 1, { 0x0000fdb7 } }, { 0x0000fdb8, 1, { 0x0000fdb8 } }, { 0x0000fdb9, 1, { 0x0000fdb9 } }, { 0x0000fdba, 1, { 0x0000fdba } }, { 0x0000fdbb, 1, { 0x0000fdbb } }, { 0x0000fdbc, 1, { 0x0000fdbc } }, { 0x0000fdbd, 1, { 0x0000fdbd } }, { 0x0000fdbe, 1, { 0x0000fdbe } }, { 0x0000fdbf, 1, { 0x0000fdbf } }, { 0x0000fdc0, 1, { 0x0000fdc0 } }, { 0x0000fdc1, 1, { 0x0000fdc1 } }, { 0x0000fdc2, 1, { 0x0000fdc2 } }, { 0x0000fdc3, 1, { 0x0000fdc3 } }, { 0x0000fdc4, 1, { 0x0000fdc4 } }, { 0x0000fdc5, 1, { 0x0000fdc5 } }, { 0x0000fdc6, 1, { 0x0000fdc6 } }, { 0x0000fdc7, 1, { 0x0000fdc7 } }, { 0x0000fdf0, 1, { 0x0000fdf0 } }, { 0x0000fdf1, 1, { 0x0000fdf1 } }, { 0x0000fdf2, 1, { 0x0000fdf2 } }, { 0x0000fdf3, 1, { 0x0000fdf3 } }, { 0x0000fdf4, 1, { 0x0000fdf4 } }, { 0x0000fdf5, 1, { 0x0000fdf5 } }, { 0x0000fdf6, 1, { 0x0000fdf6 } }, { 0x0000fdf7, 1, { 0x0000fdf7 } }, { 0x0000fdf8, 1, { 0x0000fdf8 } }, { 0x0000fdf9, 1, { 0x0000fdf9 } }, { 0x0000fdfa, 1, { 0x0000fdfa } }, { 0x0000fdfb, 1, { 0x0000fdfb } }, { 0x0000fdfc, 1, { 0x0000fdfc } }, { 0x0000fdfd, 1, { 0x0000fdfd } }, { 0x0000fe00, 1, { 0x0000fe00 } }, { 0x0000fe01, 1, { 0x0000fe01 } }, { 0x0000fe02, 1, { 0x0000fe02 } }, { 0x0000fe03, 1, { 0x0000fe03 } }, { 0x0000fe04, 1, { 0x0000fe04 } }, { 0x0000fe05, 1, { 0x0000fe05 } }, { 0x0000fe06, 1, { 0x0000fe06 } }, { 0x0000fe07, 1, { 0x0000fe07 } }, { 0x0000fe08, 1, { 0x0000fe08 } }, { 0x0000fe09, 1, { 0x0000fe09 } }, { 0x0000fe0a, 1, { 0x0000fe0a } }, { 0x0000fe0b, 1, { 0x0000fe0b } }, { 0x0000fe0c, 1, { 0x0000fe0c } }, { 0x0000fe0d, 1, { 0x0000fe0d } }, { 0x0000fe0e, 1, { 0x0000fe0e } }, { 0x0000fe0f, 1, { 0x0000fe0f } }, { 0x0000fe10, 1, { 0x0000fe10 } }, { 0x0000fe11, 1, { 0x0000fe11 } }, { 0x0000fe12, 1, { 0x0000fe12 } }, { 0x0000fe13, 1, { 0x0000fe13 } }, { 0x0000fe14, 1, { 0x0000fe14 } }, { 0x0000fe15, 1, { 0x0000fe15 } }, { 0x0000fe16, 1, { 0x0000fe16 } }, { 0x0000fe17, 1, { 0x0000fe17 } }, { 0x0000fe18, 1, { 0x0000fe18 } }, { 0x0000fe19, 1, { 0x0000fe19 } }, { 0x0000fe20, 1, { 0x0000fe20 } }, { 0x0000fe21, 1, { 0x0000fe21 } }, { 0x0000fe22, 1, { 0x0000fe22 } }, { 0x0000fe23, 1, { 0x0000fe23 } }, { 0x0000fe24, 1, { 0x0000fe24 } }, { 0x0000fe25, 1, { 0x0000fe25 } }, { 0x0000fe26, 1, { 0x0000fe26 } }, { 0x0000fe27, 1, { 0x0000fe27 } }, { 0x0000fe28, 1, { 0x0000fe28 } }, { 0x0000fe29, 1, { 0x0000fe29 } }, { 0x0000fe2a, 1, { 0x0000fe2a } }, { 0x0000fe2b, 1, { 0x0000fe2b } }, { 0x0000fe2c, 1, { 0x0000fe2c } }, { 0x0000fe2d, 1, { 0x0000fe2d } }, { 0x0000fe2e, 1, { 0x0000fe2e } }, { 0x0000fe2f, 1, { 0x0000fe2f } }, { 0x0000fe30, 1, { 0x0000fe30 } }, { 0x0000fe31, 1, { 0x0000fe31 } }, { 0x0000fe32, 1, { 0x0000fe32 } }, { 0x0000fe33, 1, { 0x0000fe33 } }, { 0x0000fe34, 1, { 0x0000fe34 } }, { 0x0000fe35, 1, { 0x0000fe35 } }, { 0x0000fe36, 1, { 0x0000fe36 } }, { 0x0000fe37, 1, { 0x0000fe37 } }, { 0x0000fe38, 1, { 0x0000fe38 } }, { 0x0000fe39, 1, { 0x0000fe39 } }, { 0x0000fe3a, 1, { 0x0000fe3a } }, { 0x0000fe3b, 1, { 0x0000fe3b } }, { 0x0000fe3c, 1, { 0x0000fe3c } }, { 0x0000fe3d, 1, { 0x0000fe3d } }, { 0x0000fe3e, 1, { 0x0000fe3e } }, { 0x0000fe3f, 1, { 0x0000fe3f } }, { 0x0000fe40, 1, { 0x0000fe40 } }, { 0x0000fe41, 1, { 0x0000fe41 } }, { 0x0000fe42, 1, { 0x0000fe42 } }, { 0x0000fe43, 1, { 0x0000fe43 } }, { 0x0000fe44, 1, { 0x0000fe44 } }, { 0x0000fe45, 1, { 0x0000fe45 } }, { 0x0000fe46, 1, { 0x0000fe46 } }, { 0x0000fe47, 1, { 0x0000fe47 } }, { 0x0000fe48, 1, { 0x0000fe48 } }, { 0x0000fe49, 1, { 0x0000fe49 } }, { 0x0000fe4a, 1, { 0x0000fe4a } }, { 0x0000fe4b, 1, { 0x0000fe4b } }, { 0x0000fe4c, 1, { 0x0000fe4c } }, { 0x0000fe4d, 1, { 0x0000fe4d } }, { 0x0000fe4e, 1, { 0x0000fe4e } }, { 0x0000fe4f, 1, { 0x0000fe4f } }, { 0x0000fe50, 1, { 0x0000fe50 } }, { 0x0000fe51, 1, { 0x0000fe51 } }, { 0x0000fe52, 1, { 0x0000fe52 } }, { 0x0000fe54, 1, { 0x0000fe54 } }, { 0x0000fe55, 1, { 0x0000fe55 } }, { 0x0000fe56, 1, { 0x0000fe56 } }, { 0x0000fe57, 1, { 0x0000fe57 } }, { 0x0000fe58, 1, { 0x0000fe58 } }, { 0x0000fe59, 1, { 0x0000fe59 } }, { 0x0000fe5a, 1, { 0x0000fe5a } }, { 0x0000fe5b, 1, { 0x0000fe5b } }, { 0x0000fe5c, 1, { 0x0000fe5c } }, { 0x0000fe5d, 1, { 0x0000fe5d } }, { 0x0000fe5e, 1, { 0x0000fe5e } }, { 0x0000fe5f, 1, { 0x0000fe5f } }, { 0x0000fe60, 1, { 0x0000fe60 } }, { 0x0000fe61, 1, { 0x0000fe61 } }, { 0x0000fe62, 1, { 0x0000fe62 } }, { 0x0000fe63, 1, { 0x0000fe63 } }, { 0x0000fe64, 1, { 0x0000fe64 } }, { 0x0000fe65, 1, { 0x0000fe65 } }, { 0x0000fe66, 1, { 0x0000fe66 } }, { 0x0000fe68, 1, { 0x0000fe68 } }, { 0x0000fe69, 1, { 0x0000fe69 } }, { 0x0000fe6a, 1, { 0x0000fe6a } }, { 0x0000fe6b, 1, { 0x0000fe6b } }, { 0x0000fe70, 1, { 0x0000fe70 } }, { 0x0000fe71, 1, { 0x0000fe71 } }, { 0x0000fe72, 1, { 0x0000fe72 } }, { 0x0000fe73, 1, { 0x0000fe73 } }, { 0x0000fe74, 1, { 0x0000fe74 } }, { 0x0000fe76, 1, { 0x0000fe76 } }, { 0x0000fe77, 1, { 0x0000fe77 } }, { 0x0000fe78, 1, { 0x0000fe78 } }, { 0x0000fe79, 1, { 0x0000fe79 } }, { 0x0000fe7a, 1, { 0x0000fe7a } }, { 0x0000fe7b, 1, { 0x0000fe7b } }, { 0x0000fe7c, 1, { 0x0000fe7c } }, { 0x0000fe7d, 1, { 0x0000fe7d } }, { 0x0000fe7e, 1, { 0x0000fe7e } }, { 0x0000fe7f, 1, { 0x0000fe7f } }, { 0x0000fe80, 1, { 0x0000fe80 } }, { 0x0000fe81, 1, { 0x0000fe81 } }, { 0x0000fe82, 1, { 0x0000fe82 } }, { 0x0000fe83, 1, { 0x0000fe83 } }, { 0x0000fe84, 1, { 0x0000fe84 } }, { 0x0000fe85, 1, { 0x0000fe85 } }, { 0x0000fe86, 1, { 0x0000fe86 } }, { 0x0000fe87, 1, { 0x0000fe87 } }, { 0x0000fe88, 1, { 0x0000fe88 } }, { 0x0000fe89, 1, { 0x0000fe89 } }, { 0x0000fe8a, 1, { 0x0000fe8a } }, { 0x0000fe8b, 1, { 0x0000fe8b } }, { 0x0000fe8c, 1, { 0x0000fe8c } }, { 0x0000fe8d, 1, { 0x0000fe8d } }, { 0x0000fe8e, 1, { 0x0000fe8e } }, { 0x0000fe8f, 1, { 0x0000fe8f } }, { 0x0000fe90, 1, { 0x0000fe90 } }, { 0x0000fe91, 1, { 0x0000fe91 } }, { 0x0000fe92, 1, { 0x0000fe92 } }, { 0x0000fe93, 1, { 0x0000fe93 } }, { 0x0000fe94, 1, { 0x0000fe94 } }, { 0x0000fe95, 1, { 0x0000fe95 } }, { 0x0000fe96, 1, { 0x0000fe96 } }, { 0x0000fe97, 1, { 0x0000fe97 } }, { 0x0000fe98, 1, { 0x0000fe98 } }, { 0x0000fe99, 1, { 0x0000fe99 } }, { 0x0000fe9a, 1, { 0x0000fe9a } }, { 0x0000fe9b, 1, { 0x0000fe9b } }, { 0x0000fe9c, 1, { 0x0000fe9c } }, { 0x0000fe9d, 1, { 0x0000fe9d } }, { 0x0000fe9e, 1, { 0x0000fe9e } }, { 0x0000fe9f, 1, { 0x0000fe9f } }, { 0x0000fea0, 1, { 0x0000fea0 } }, { 0x0000fea1, 1, { 0x0000fea1 } }, { 0x0000fea2, 1, { 0x0000fea2 } }, { 0x0000fea3, 1, { 0x0000fea3 } }, { 0x0000fea4, 1, { 0x0000fea4 } }, { 0x0000fea5, 1, { 0x0000fea5 } }, { 0x0000fea6, 1, { 0x0000fea6 } }, { 0x0000fea7, 1, { 0x0000fea7 } }, { 0x0000fea8, 1, { 0x0000fea8 } }, { 0x0000fea9, 1, { 0x0000fea9 } }, { 0x0000feaa, 1, { 0x0000feaa } }, { 0x0000feab, 1, { 0x0000feab } }, { 0x0000feac, 1, { 0x0000feac } }, { 0x0000fead, 1, { 0x0000fead } }, { 0x0000feae, 1, { 0x0000feae } }, { 0x0000feaf, 1, { 0x0000feaf } }, { 0x0000feb0, 1, { 0x0000feb0 } }, { 0x0000feb1, 1, { 0x0000feb1 } }, { 0x0000feb2, 1, { 0x0000feb2 } }, { 0x0000feb3, 1, { 0x0000feb3 } }, { 0x0000feb4, 1, { 0x0000feb4 } }, { 0x0000feb5, 1, { 0x0000feb5 } }, { 0x0000feb6, 1, { 0x0000feb6 } }, { 0x0000feb7, 1, { 0x0000feb7 } }, { 0x0000feb8, 1, { 0x0000feb8 } }, { 0x0000feb9, 1, { 0x0000feb9 } }, { 0x0000feba, 1, { 0x0000feba } }, { 0x0000febb, 1, { 0x0000febb } }, { 0x0000febc, 1, { 0x0000febc } }, { 0x0000febd, 1, { 0x0000febd } }, { 0x0000febe, 1, { 0x0000febe } }, { 0x0000febf, 1, { 0x0000febf } }, { 0x0000fec0, 1, { 0x0000fec0 } }, { 0x0000fec1, 1, { 0x0000fec1 } }, { 0x0000fec2, 1, { 0x0000fec2 } }, { 0x0000fec3, 1, { 0x0000fec3 } }, { 0x0000fec4, 1, { 0x0000fec4 } }, { 0x0000fec5, 1, { 0x0000fec5 } }, { 0x0000fec6, 1, { 0x0000fec6 } }, { 0x0000fec7, 1, { 0x0000fec7 } }, { 0x0000fec8, 1, { 0x0000fec8 } }, { 0x0000fec9, 1, { 0x0000fec9 } }, { 0x0000feca, 1, { 0x0000feca } }, { 0x0000fecb, 1, { 0x0000fecb } }, { 0x0000fecc, 1, { 0x0000fecc } }, { 0x0000fecd, 1, { 0x0000fecd } }, { 0x0000fece, 1, { 0x0000fece } }, { 0x0000fecf, 1, { 0x0000fecf } }, { 0x0000fed0, 1, { 0x0000fed0 } }, { 0x0000fed1, 1, { 0x0000fed1 } }, { 0x0000fed2, 1, { 0x0000fed2 } }, { 0x0000fed3, 1, { 0x0000fed3 } }, { 0x0000fed4, 1, { 0x0000fed4 } }, { 0x0000fed5, 1, { 0x0000fed5 } }, { 0x0000fed6, 1, { 0x0000fed6 } }, { 0x0000fed7, 1, { 0x0000fed7 } }, { 0x0000fed8, 1, { 0x0000fed8 } }, { 0x0000fed9, 1, { 0x0000fed9 } }, { 0x0000feda, 1, { 0x0000feda } }, { 0x0000fedb, 1, { 0x0000fedb } }, { 0x0000fedc, 1, { 0x0000fedc } }, { 0x0000fedd, 1, { 0x0000fedd } }, { 0x0000fede, 1, { 0x0000fede } }, { 0x0000fedf, 1, { 0x0000fedf } }, { 0x0000fee0, 1, { 0x0000fee0 } }, { 0x0000fee1, 1, { 0x0000fee1 } }, { 0x0000fee2, 1, { 0x0000fee2 } }, { 0x0000fee3, 1, { 0x0000fee3 } }, { 0x0000fee4, 1, { 0x0000fee4 } }, { 0x0000fee5, 1, { 0x0000fee5 } }, { 0x0000fee6, 1, { 0x0000fee6 } }, { 0x0000fee7, 1, { 0x0000fee7 } }, { 0x0000fee8, 1, { 0x0000fee8 } }, { 0x0000fee9, 1, { 0x0000fee9 } }, { 0x0000feea, 1, { 0x0000feea } }, { 0x0000feeb, 1, { 0x0000feeb } }, { 0x0000feec, 1, { 0x0000feec } }, { 0x0000feed, 1, { 0x0000feed } }, { 0x0000feee, 1, { 0x0000feee } }, { 0x0000feef, 1, { 0x0000feef } }, { 0x0000fef0, 1, { 0x0000fef0 } }, { 0x0000fef1, 1, { 0x0000fef1 } }, { 0x0000fef2, 1, { 0x0000fef2 } }, { 0x0000fef3, 1, { 0x0000fef3 } }, { 0x0000fef4, 1, { 0x0000fef4 } }, { 0x0000fef5, 1, { 0x0000fef5 } }, { 0x0000fef6, 1, { 0x0000fef6 } }, { 0x0000fef7, 1, { 0x0000fef7 } }, { 0x0000fef8, 1, { 0x0000fef8 } }, { 0x0000fef9, 1, { 0x0000fef9 } }, { 0x0000fefa, 1, { 0x0000fefa } }, { 0x0000fefb, 1, { 0x0000fefb } }, { 0x0000fefc, 1, { 0x0000fefc } }, { 0x0000feff, 1, { 0x0000feff } }, { 0x0000ff01, 1, { 0x0000ff01 } }, { 0x0000ff02, 1, { 0x0000ff02 } }, { 0x0000ff03, 1, { 0x0000ff03 } }, { 0x0000ff04, 1, { 0x0000ff04 } }, { 0x0000ff05, 1, { 0x0000ff05 } }, { 0x0000ff06, 1, { 0x0000ff06 } }, { 0x0000ff07, 1, { 0x0000ff07 } }, { 0x0000ff08, 1, { 0x0000ff08 } }, { 0x0000ff09, 1, { 0x0000ff09 } }, { 0x0000ff0a, 1, { 0x0000ff0a } }, { 0x0000ff0b, 1, { 0x0000ff0b } }, { 0x0000ff0c, 1, { 0x0000ff0c } }, { 0x0000ff0d, 1, { 0x0000ff0d } }, { 0x0000ff0e, 1, { 0x0000ff0e } }, { 0x0000ff0f, 1, { 0x0000ff0f } }, { 0x0000ff10, 1, { 0x0000ff10 } }, { 0x0000ff11, 1, { 0x0000ff11 } }, { 0x0000ff12, 1, { 0x0000ff12 } }, { 0x0000ff13, 1, { 0x0000ff13 } }, { 0x0000ff14, 1, { 0x0000ff14 } }, { 0x0000ff15, 1, { 0x0000ff15 } }, { 0x0000ff16, 1, { 0x0000ff16 } }, { 0x0000ff17, 1, { 0x0000ff17 } }, { 0x0000ff18, 1, { 0x0000ff18 } }, { 0x0000ff19, 1, { 0x0000ff19 } }, { 0x0000ff1a, 1, { 0x0000ff1a } }, { 0x0000ff1b, 1, { 0x0000ff1b } }, { 0x0000ff1c, 1, { 0x0000ff1c } }, { 0x0000ff1d, 1, { 0x0000ff1d } }, { 0x0000ff1e, 1, { 0x0000ff1e } }, { 0x0000ff1f, 1, { 0x0000ff1f } }, { 0x0000ff20, 1, { 0x0000ff20 } }, { 0x0000ff21, 1, { 0x0000ff21 } }, { 0x0000ff22, 1, { 0x0000ff22 } }, { 0x0000ff23, 1, { 0x0000ff23 } }, { 0x0000ff24, 1, { 0x0000ff24 } }, { 0x0000ff25, 1, { 0x0000ff25 } }, { 0x0000ff26, 1, { 0x0000ff26 } }, { 0x0000ff27, 1, { 0x0000ff27 } }, { 0x0000ff28, 1, { 0x0000ff28 } }, { 0x0000ff29, 1, { 0x0000ff29 } }, { 0x0000ff2a, 1, { 0x0000ff2a } }, { 0x0000ff2b, 1, { 0x0000ff2b } }, { 0x0000ff2c, 1, { 0x0000ff2c } }, { 0x0000ff2d, 1, { 0x0000ff2d } }, { 0x0000ff2e, 1, { 0x0000ff2e } }, { 0x0000ff2f, 1, { 0x0000ff2f } }, { 0x0000ff30, 1, { 0x0000ff30 } }, { 0x0000ff31, 1, { 0x0000ff31 } }, { 0x0000ff32, 1, { 0x0000ff32 } }, { 0x0000ff33, 1, { 0x0000ff33 } }, { 0x0000ff34, 1, { 0x0000ff34 } }, { 0x0000ff35, 1, { 0x0000ff35 } }, { 0x0000ff36, 1, { 0x0000ff36 } }, { 0x0000ff37, 1, { 0x0000ff37 } }, { 0x0000ff38, 1, { 0x0000ff38 } }, { 0x0000ff39, 1, { 0x0000ff39 } }, { 0x0000ff3a, 1, { 0x0000ff3a } }, { 0x0000ff3b, 1, { 0x0000ff3b } }, { 0x0000ff3c, 1, { 0x0000ff3c } }, { 0x0000ff3d, 1, { 0x0000ff3d } }, { 0x0000ff3e, 1, { 0x0000ff3e } }, { 0x0000ff3f, 1, { 0x0000ff3f } }, { 0x0000ff40, 1, { 0x0000ff40 } }, { 0x0000ff41, 1, { 0x0000ff41 } }, { 0x0000ff42, 1, { 0x0000ff42 } }, { 0x0000ff43, 1, { 0x0000ff43 } }, { 0x0000ff44, 1, { 0x0000ff44 } }, { 0x0000ff45, 1, { 0x0000ff45 } }, { 0x0000ff46, 1, { 0x0000ff46 } }, { 0x0000ff47, 1, { 0x0000ff47 } }, { 0x0000ff48, 1, { 0x0000ff48 } }, { 0x0000ff49, 1, { 0x0000ff49 } }, { 0x0000ff4a, 1, { 0x0000ff4a } }, { 0x0000ff4b, 1, { 0x0000ff4b } }, { 0x0000ff4c, 1, { 0x0000ff4c } }, { 0x0000ff4d, 1, { 0x0000ff4d } }, { 0x0000ff4e, 1, { 0x0000ff4e } }, { 0x0000ff4f, 1, { 0x0000ff4f } }, { 0x0000ff50, 1, { 0x0000ff50 } }, { 0x0000ff51, 1, { 0x0000ff51 } }, { 0x0000ff52, 1, { 0x0000ff52 } }, { 0x0000ff53, 1, { 0x0000ff53 } }, { 0x0000ff54, 1, { 0x0000ff54 } }, { 0x0000ff55, 1, { 0x0000ff55 } }, { 0x0000ff56, 1, { 0x0000ff56 } }, { 0x0000ff57, 1, { 0x0000ff57 } }, { 0x0000ff58, 1, { 0x0000ff58 } }, { 0x0000ff59, 1, { 0x0000ff59 } }, { 0x0000ff5a, 1, { 0x0000ff5a } }, { 0x0000ff5b, 1, { 0x0000ff5b } }, { 0x0000ff5c, 1, { 0x0000ff5c } }, { 0x0000ff5d, 1, { 0x0000ff5d } }, { 0x0000ff5e, 1, { 0x0000ff5e } }, { 0x0000ff5f, 1, { 0x0000ff5f } }, { 0x0000ff60, 1, { 0x0000ff60 } }, { 0x0000ff61, 1, { 0x0000ff61 } }, { 0x0000ff62, 1, { 0x0000ff62 } }, { 0x0000ff63, 1, { 0x0000ff63 } }, { 0x0000ff64, 1, { 0x0000ff64 } }, { 0x0000ff65, 1, { 0x0000ff65 } }, { 0x0000ff66, 1, { 0x0000ff66 } }, { 0x0000ff67, 1, { 0x0000ff67 } }, { 0x0000ff68, 1, { 0x0000ff68 } }, { 0x0000ff69, 1, { 0x0000ff69 } }, { 0x0000ff6a, 1, { 0x0000ff6a } }, { 0x0000ff6b, 1, { 0x0000ff6b } }, { 0x0000ff6c, 1, { 0x0000ff6c } }, { 0x0000ff6d, 1, { 0x0000ff6d } }, { 0x0000ff6e, 1, { 0x0000ff6e } }, { 0x0000ff6f, 1, { 0x0000ff6f } }, { 0x0000ff70, 1, { 0x0000ff70 } }, { 0x0000ff71, 1, { 0x0000ff71 } }, { 0x0000ff72, 1, { 0x0000ff72 } }, { 0x0000ff73, 1, { 0x0000ff73 } }, { 0x0000ff74, 1, { 0x0000ff74 } }, { 0x0000ff75, 1, { 0x0000ff75 } }, { 0x0000ff76, 1, { 0x0000ff76 } }, { 0x0000ff77, 1, { 0x0000ff77 } }, { 0x0000ff78, 1, { 0x0000ff78 } }, { 0x0000ff79, 1, { 0x0000ff79 } }, { 0x0000ff7a, 1, { 0x0000ff7a } }, { 0x0000ff7b, 1, { 0x0000ff7b } }, { 0x0000ff7c, 1, { 0x0000ff7c } }, { 0x0000ff7d, 1, { 0x0000ff7d } }, { 0x0000ff7e, 1, { 0x0000ff7e } }, { 0x0000ff7f, 1, { 0x0000ff7f } }, { 0x0000ff80, 1, { 0x0000ff80 } }, { 0x0000ff81, 1, { 0x0000ff81 } }, { 0x0000ff82, 1, { 0x0000ff82 } }, { 0x0000ff83, 1, { 0x0000ff83 } }, { 0x0000ff84, 1, { 0x0000ff84 } }, { 0x0000ff85, 1, { 0x0000ff85 } }, { 0x0000ff86, 1, { 0x0000ff86 } }, { 0x0000ff87, 1, { 0x0000ff87 } }, { 0x0000ff88, 1, { 0x0000ff88 } }, { 0x0000ff89, 1, { 0x0000ff89 } }, { 0x0000ff8a, 1, { 0x0000ff8a } }, { 0x0000ff8b, 1, { 0x0000ff8b } }, { 0x0000ff8c, 1, { 0x0000ff8c } }, { 0x0000ff8d, 1, { 0x0000ff8d } }, { 0x0000ff8e, 1, { 0x0000ff8e } }, { 0x0000ff8f, 1, { 0x0000ff8f } }, { 0x0000ff90, 1, { 0x0000ff90 } }, { 0x0000ff91, 1, { 0x0000ff91 } }, { 0x0000ff92, 1, { 0x0000ff92 } }, { 0x0000ff93, 1, { 0x0000ff93 } }, { 0x0000ff94, 1, { 0x0000ff94 } }, { 0x0000ff95, 1, { 0x0000ff95 } }, { 0x0000ff96, 1, { 0x0000ff96 } }, { 0x0000ff97, 1, { 0x0000ff97 } }, { 0x0000ff98, 1, { 0x0000ff98 } }, { 0x0000ff99, 1, { 0x0000ff99 } }, { 0x0000ff9a, 1, { 0x0000ff9a } }, { 0x0000ff9b, 1, { 0x0000ff9b } }, { 0x0000ff9c, 1, { 0x0000ff9c } }, { 0x0000ff9d, 1, { 0x0000ff9d } }, { 0x0000ff9e, 1, { 0x0000ff9e } }, { 0x0000ff9f, 1, { 0x0000ff9f } }, { 0x0000ffa0, 1, { 0x0000ffa0 } }, { 0x0000ffa1, 1, { 0x0000ffa1 } }, { 0x0000ffa2, 1, { 0x0000ffa2 } }, { 0x0000ffa3, 1, { 0x0000ffa3 } }, { 0x0000ffa4, 1, { 0x0000ffa4 } }, { 0x0000ffa5, 1, { 0x0000ffa5 } }, { 0x0000ffa6, 1, { 0x0000ffa6 } }, { 0x0000ffa7, 1, { 0x0000ffa7 } }, { 0x0000ffa8, 1, { 0x0000ffa8 } }, { 0x0000ffa9, 1, { 0x0000ffa9 } }, { 0x0000ffaa, 1, { 0x0000ffaa } }, { 0x0000ffab, 1, { 0x0000ffab } }, { 0x0000ffac, 1, { 0x0000ffac } }, { 0x0000ffad, 1, { 0x0000ffad } }, { 0x0000ffae, 1, { 0x0000ffae } }, { 0x0000ffaf, 1, { 0x0000ffaf } }, { 0x0000ffb0, 1, { 0x0000ffb0 } }, { 0x0000ffb1, 1, { 0x0000ffb1 } }, { 0x0000ffb2, 1, { 0x0000ffb2 } }, { 0x0000ffb3, 1, { 0x0000ffb3 } }, { 0x0000ffb4, 1, { 0x0000ffb4 } }, { 0x0000ffb5, 1, { 0x0000ffb5 } }, { 0x0000ffb6, 1, { 0x0000ffb6 } }, { 0x0000ffb7, 1, { 0x0000ffb7 } }, { 0x0000ffb8, 1, { 0x0000ffb8 } }, { 0x0000ffb9, 1, { 0x0000ffb9 } }, { 0x0000ffba, 1, { 0x0000ffba } }, { 0x0000ffbb, 1, { 0x0000ffbb } }, { 0x0000ffbc, 1, { 0x0000ffbc } }, { 0x0000ffbd, 1, { 0x0000ffbd } }, { 0x0000ffbe, 1, { 0x0000ffbe } }, { 0x0000ffc2, 1, { 0x0000ffc2 } }, { 0x0000ffc3, 1, { 0x0000ffc3 } }, { 0x0000ffc4, 1, { 0x0000ffc4 } }, { 0x0000ffc5, 1, { 0x0000ffc5 } }, { 0x0000ffc6, 1, { 0x0000ffc6 } }, { 0x0000ffc7, 1, { 0x0000ffc7 } }, { 0x0000ffca, 1, { 0x0000ffca } }, { 0x0000ffcb, 1, { 0x0000ffcb } }, { 0x0000ffcc, 1, { 0x0000ffcc } }, { 0x0000ffcd, 1, { 0x0000ffcd } }, { 0x0000ffce, 1, { 0x0000ffce } }, { 0x0000ffcf, 1, { 0x0000ffcf } }, { 0x0000ffd2, 1, { 0x0000ffd2 } }, { 0x0000ffd3, 1, { 0x0000ffd3 } }, { 0x0000ffd4, 1, { 0x0000ffd4 } }, { 0x0000ffd5, 1, { 0x0000ffd5 } }, { 0x0000ffd6, 1, { 0x0000ffd6 } }, { 0x0000ffd7, 1, { 0x0000ffd7 } }, { 0x0000ffda, 1, { 0x0000ffda } }, { 0x0000ffdb, 1, { 0x0000ffdb } }, { 0x0000ffdc, 1, { 0x0000ffdc } }, { 0x0000ffe0, 1, { 0x0000ffe0 } }, { 0x0000ffe1, 1, { 0x0000ffe1 } }, { 0x0000ffe2, 1, { 0x0000ffe2 } }, { 0x0000ffe3, 1, { 0x0000ffe3 } }, { 0x0000ffe4, 1, { 0x0000ffe4 } }, { 0x0000ffe5, 1, { 0x0000ffe5 } }, { 0x0000ffe6, 1, { 0x0000ffe6 } }, { 0x0000ffe8, 1, { 0x0000ffe8 } }, { 0x0000ffe9, 1, { 0x0000ffe9 } }, { 0x0000ffea, 1, { 0x0000ffea } }, { 0x0000ffeb, 1, { 0x0000ffeb } }, { 0x0000ffec, 1, { 0x0000ffec } }, { 0x0000ffed, 1, { 0x0000ffed } }, { 0x0000ffee, 1, { 0x0000ffee } }, { 0x0000fff9, 1, { 0x0000fff9 } }, { 0x0000fffa, 1, { 0x0000fffa } }, { 0x0000fffb, 1, { 0x0000fffb } }, { 0x0000fffc, 1, { 0x0000fffc } }, { 0x0000fffd, 1, { 0x0000fffd } }, { 0x00010000, 1, { 0x00010000 } }, { 0x00010001, 1, { 0x00010001 } }, { 0x00010002, 1, { 0x00010002 } }, { 0x00010003, 1, { 0x00010003 } }, { 0x00010004, 1, { 0x00010004 } }, { 0x00010005, 1, { 0x00010005 } }, { 0x00010006, 1, { 0x00010006 } }, { 0x00010007, 1, { 0x00010007 } }, { 0x00010008, 1, { 0x00010008 } }, { 0x00010009, 1, { 0x00010009 } }, { 0x0001000a, 1, { 0x0001000a } }, { 0x0001000b, 1, { 0x0001000b } }, { 0x0001000d, 1, { 0x0001000d } }, { 0x0001000e, 1, { 0x0001000e } }, { 0x0001000f, 1, { 0x0001000f } }, { 0x00010010, 1, { 0x00010010 } }, { 0x00010011, 1, { 0x00010011 } }, { 0x00010012, 1, { 0x00010012 } }, { 0x00010013, 1, { 0x00010013 } }, { 0x00010014, 1, { 0x00010014 } }, { 0x00010015, 1, { 0x00010015 } }, { 0x00010016, 1, { 0x00010016 } }, { 0x00010017, 1, { 0x00010017 } }, { 0x00010018, 1, { 0x00010018 } }, { 0x00010019, 1, { 0x00010019 } }, { 0x0001001a, 1, { 0x0001001a } }, { 0x0001001b, 1, { 0x0001001b } }, { 0x0001001c, 1, { 0x0001001c } }, { 0x0001001d, 1, { 0x0001001d } }, { 0x0001001e, 1, { 0x0001001e } }, { 0x0001001f, 1, { 0x0001001f } }, { 0x00010020, 1, { 0x00010020 } }, { 0x00010021, 1, { 0x00010021 } }, { 0x00010022, 1, { 0x00010022 } }, { 0x00010023, 1, { 0x00010023 } }, { 0x00010024, 1, { 0x00010024 } }, { 0x00010025, 1, { 0x00010025 } }, { 0x00010026, 1, { 0x00010026 } }, { 0x00010028, 1, { 0x00010028 } }, { 0x00010029, 1, { 0x00010029 } }, { 0x0001002a, 1, { 0x0001002a } }, { 0x0001002b, 1, { 0x0001002b } }, { 0x0001002c, 1, { 0x0001002c } }, { 0x0001002d, 1, { 0x0001002d } }, { 0x0001002e, 1, { 0x0001002e } }, { 0x0001002f, 1, { 0x0001002f } }, { 0x00010030, 1, { 0x00010030 } }, { 0x00010031, 1, { 0x00010031 } }, { 0x00010032, 1, { 0x00010032 } }, { 0x00010033, 1, { 0x00010033 } }, { 0x00010034, 1, { 0x00010034 } }, { 0x00010035, 1, { 0x00010035 } }, { 0x00010036, 1, { 0x00010036 } }, { 0x00010037, 1, { 0x00010037 } }, { 0x00010038, 1, { 0x00010038 } }, { 0x00010039, 1, { 0x00010039 } }, { 0x0001003a, 1, { 0x0001003a } }, { 0x0001003c, 1, { 0x0001003c } }, { 0x0001003d, 1, { 0x0001003d } }, { 0x0001003f, 1, { 0x0001003f } }, { 0x00010040, 1, { 0x00010040 } }, { 0x00010041, 1, { 0x00010041 } }, { 0x00010042, 1, { 0x00010042 } }, { 0x00010043, 1, { 0x00010043 } }, { 0x00010044, 1, { 0x00010044 } }, { 0x00010045, 1, { 0x00010045 } }, { 0x00010046, 1, { 0x00010046 } }, { 0x00010047, 1, { 0x00010047 } }, { 0x00010048, 1, { 0x00010048 } }, { 0x00010049, 1, { 0x00010049 } }, { 0x0001004a, 1, { 0x0001004a } }, { 0x0001004b, 1, { 0x0001004b } }, { 0x0001004c, 1, { 0x0001004c } }, { 0x0001004d, 1, { 0x0001004d } }, { 0x00010050, 1, { 0x00010050 } }, { 0x00010051, 1, { 0x00010051 } }, { 0x00010052, 1, { 0x00010052 } }, { 0x00010053, 1, { 0x00010053 } }, { 0x00010054, 1, { 0x00010054 } }, { 0x00010055, 1, { 0x00010055 } }, { 0x00010056, 1, { 0x00010056 } }, { 0x00010057, 1, { 0x00010057 } }, { 0x00010058, 1, { 0x00010058 } }, { 0x00010059, 1, { 0x00010059 } }, { 0x0001005a, 1, { 0x0001005a } }, { 0x0001005b, 1, { 0x0001005b } }, { 0x0001005c, 1, { 0x0001005c } }, { 0x0001005d, 1, { 0x0001005d } }, { 0x00010080, 1, { 0x00010080 } }, { 0x00010081, 1, { 0x00010081 } }, { 0x00010082, 1, { 0x00010082 } }, { 0x00010083, 1, { 0x00010083 } }, { 0x00010084, 1, { 0x00010084 } }, { 0x00010085, 1, { 0x00010085 } }, { 0x00010086, 1, { 0x00010086 } }, { 0x00010087, 1, { 0x00010087 } }, { 0x00010088, 1, { 0x00010088 } }, { 0x00010089, 1, { 0x00010089 } }, { 0x0001008a, 1, { 0x0001008a } }, { 0x0001008b, 1, { 0x0001008b } }, { 0x0001008c, 1, { 0x0001008c } }, { 0x0001008d, 1, { 0x0001008d } }, { 0x0001008e, 1, { 0x0001008e } }, { 0x0001008f, 1, { 0x0001008f } }, { 0x00010090, 1, { 0x00010090 } }, { 0x00010091, 1, { 0x00010091 } }, { 0x00010092, 1, { 0x00010092 } }, { 0x00010093, 1, { 0x00010093 } }, { 0x00010094, 1, { 0x00010094 } }, { 0x00010095, 1, { 0x00010095 } }, { 0x00010096, 1, { 0x00010096 } }, { 0x00010097, 1, { 0x00010097 } }, { 0x00010098, 1, { 0x00010098 } }, { 0x00010099, 1, { 0x00010099 } }, { 0x0001009a, 1, { 0x0001009a } }, { 0x0001009b, 1, { 0x0001009b } }, { 0x0001009c, 1, { 0x0001009c } }, { 0x0001009d, 1, { 0x0001009d } }, { 0x0001009e, 1, { 0x0001009e } }, { 0x0001009f, 1, { 0x0001009f } }, { 0x000100a0, 1, { 0x000100a0 } }, { 0x000100a1, 1, { 0x000100a1 } }, { 0x000100a2, 1, { 0x000100a2 } }, { 0x000100a3, 1, { 0x000100a3 } }, { 0x000100a4, 1, { 0x000100a4 } }, { 0x000100a5, 1, { 0x000100a5 } }, { 0x000100a6, 1, { 0x000100a6 } }, { 0x000100a7, 1, { 0x000100a7 } }, { 0x000100a8, 1, { 0x000100a8 } }, { 0x000100a9, 1, { 0x000100a9 } }, { 0x000100aa, 1, { 0x000100aa } }, { 0x000100ab, 1, { 0x000100ab } }, { 0x000100ac, 1, { 0x000100ac } }, { 0x000100ad, 1, { 0x000100ad } }, { 0x000100ae, 1, { 0x000100ae } }, { 0x000100af, 1, { 0x000100af } }, { 0x000100b0, 1, { 0x000100b0 } }, { 0x000100b1, 1, { 0x000100b1 } }, { 0x000100b2, 1, { 0x000100b2 } }, { 0x000100b3, 1, { 0x000100b3 } }, { 0x000100b4, 1, { 0x000100b4 } }, { 0x000100b5, 1, { 0x000100b5 } }, { 0x000100b6, 1, { 0x000100b6 } }, { 0x000100b7, 1, { 0x000100b7 } }, { 0x000100b8, 1, { 0x000100b8 } }, { 0x000100b9, 1, { 0x000100b9 } }, { 0x000100ba, 1, { 0x000100ba } }, { 0x000100bb, 1, { 0x000100bb } }, { 0x000100bc, 1, { 0x000100bc } }, { 0x000100bd, 1, { 0x000100bd } }, { 0x000100be, 1, { 0x000100be } }, { 0x000100bf, 1, { 0x000100bf } }, { 0x000100c0, 1, { 0x000100c0 } }, { 0x000100c1, 1, { 0x000100c1 } }, { 0x000100c2, 1, { 0x000100c2 } }, { 0x000100c3, 1, { 0x000100c3 } }, { 0x000100c4, 1, { 0x000100c4 } }, { 0x000100c5, 1, { 0x000100c5 } }, { 0x000100c6, 1, { 0x000100c6 } }, { 0x000100c7, 1, { 0x000100c7 } }, { 0x000100c8, 1, { 0x000100c8 } }, { 0x000100c9, 1, { 0x000100c9 } }, { 0x000100ca, 1, { 0x000100ca } }, { 0x000100cb, 1, { 0x000100cb } }, { 0x000100cc, 1, { 0x000100cc } }, { 0x000100cd, 1, { 0x000100cd } }, { 0x000100ce, 1, { 0x000100ce } }, { 0x000100cf, 1, { 0x000100cf } }, { 0x000100d0, 1, { 0x000100d0 } }, { 0x000100d1, 1, { 0x000100d1 } }, { 0x000100d2, 1, { 0x000100d2 } }, { 0x000100d3, 1, { 0x000100d3 } }, { 0x000100d4, 1, { 0x000100d4 } }, { 0x000100d5, 1, { 0x000100d5 } }, { 0x000100d6, 1, { 0x000100d6 } }, { 0x000100d7, 1, { 0x000100d7 } }, { 0x000100d8, 1, { 0x000100d8 } }, { 0x000100d9, 1, { 0x000100d9 } }, { 0x000100da, 1, { 0x000100da } }, { 0x000100db, 1, { 0x000100db } }, { 0x000100dc, 1, { 0x000100dc } }, { 0x000100dd, 1, { 0x000100dd } }, { 0x000100de, 1, { 0x000100de } }, { 0x000100df, 1, { 0x000100df } }, { 0x000100e0, 1, { 0x000100e0 } }, { 0x000100e1, 1, { 0x000100e1 } }, { 0x000100e2, 1, { 0x000100e2 } }, { 0x000100e3, 1, { 0x000100e3 } }, { 0x000100e4, 1, { 0x000100e4 } }, { 0x000100e5, 1, { 0x000100e5 } }, { 0x000100e6, 1, { 0x000100e6 } }, { 0x000100e7, 1, { 0x000100e7 } }, { 0x000100e8, 1, { 0x000100e8 } }, { 0x000100e9, 1, { 0x000100e9 } }, { 0x000100ea, 1, { 0x000100ea } }, { 0x000100eb, 1, { 0x000100eb } }, { 0x000100ec, 1, { 0x000100ec } }, { 0x000100ed, 1, { 0x000100ed } }, { 0x000100ee, 1, { 0x000100ee } }, { 0x000100ef, 1, { 0x000100ef } }, { 0x000100f0, 1, { 0x000100f0 } }, { 0x000100f1, 1, { 0x000100f1 } }, { 0x000100f2, 1, { 0x000100f2 } }, { 0x000100f3, 1, { 0x000100f3 } }, { 0x000100f4, 1, { 0x000100f4 } }, { 0x000100f5, 1, { 0x000100f5 } }, { 0x000100f6, 1, { 0x000100f6 } }, { 0x000100f7, 1, { 0x000100f7 } }, { 0x000100f8, 1, { 0x000100f8 } }, { 0x000100f9, 1, { 0x000100f9 } }, { 0x000100fa, 1, { 0x000100fa } }, { 0x00010100, 1, { 0x00010100 } }, { 0x00010101, 1, { 0x00010101 } }, { 0x00010102, 1, { 0x00010102 } }, { 0x00010107, 1, { 0x00010107 } }, { 0x00010108, 1, { 0x00010108 } }, { 0x00010109, 1, { 0x00010109 } }, { 0x0001010a, 1, { 0x0001010a } }, { 0x0001010b, 1, { 0x0001010b } }, { 0x0001010c, 1, { 0x0001010c } }, { 0x0001010d, 1, { 0x0001010d } }, { 0x0001010e, 1, { 0x0001010e } }, { 0x0001010f, 1, { 0x0001010f } }, { 0x00010110, 1, { 0x00010110 } }, { 0x00010111, 1, { 0x00010111 } }, { 0x00010112, 1, { 0x00010112 } }, { 0x00010113, 1, { 0x00010113 } }, { 0x00010114, 1, { 0x00010114 } }, { 0x00010115, 1, { 0x00010115 } }, { 0x00010116, 1, { 0x00010116 } }, { 0x00010117, 1, { 0x00010117 } }, { 0x00010118, 1, { 0x00010118 } }, { 0x00010119, 1, { 0x00010119 } }, { 0x0001011a, 1, { 0x0001011a } }, { 0x0001011b, 1, { 0x0001011b } }, { 0x0001011c, 1, { 0x0001011c } }, { 0x0001011d, 1, { 0x0001011d } }, { 0x0001011e, 1, { 0x0001011e } }, { 0x0001011f, 1, { 0x0001011f } }, { 0x00010120, 1, { 0x00010120 } }, { 0x00010121, 1, { 0x00010121 } }, { 0x00010122, 1, { 0x00010122 } }, { 0x00010123, 1, { 0x00010123 } }, { 0x00010124, 1, { 0x00010124 } }, { 0x00010125, 1, { 0x00010125 } }, { 0x00010126, 1, { 0x00010126 } }, { 0x00010127, 1, { 0x00010127 } }, { 0x00010128, 1, { 0x00010128 } }, { 0x00010129, 1, { 0x00010129 } }, { 0x0001012a, 1, { 0x0001012a } }, { 0x0001012b, 1, { 0x0001012b } }, { 0x0001012c, 1, { 0x0001012c } }, { 0x0001012d, 1, { 0x0001012d } }, { 0x0001012e, 1, { 0x0001012e } }, { 0x0001012f, 1, { 0x0001012f } }, { 0x00010130, 1, { 0x00010130 } }, { 0x00010131, 1, { 0x00010131 } }, { 0x00010132, 1, { 0x00010132 } }, { 0x00010133, 1, { 0x00010133 } }, { 0x00010137, 1, { 0x00010137 } }, { 0x00010138, 1, { 0x00010138 } }, { 0x00010139, 1, { 0x00010139 } }, { 0x0001013a, 1, { 0x0001013a } }, { 0x0001013b, 1, { 0x0001013b } }, { 0x0001013c, 1, { 0x0001013c } }, { 0x0001013d, 1, { 0x0001013d } }, { 0x0001013e, 1, { 0x0001013e } }, { 0x0001013f, 1, { 0x0001013f } }, { 0x00010140, 1, { 0x00010140 } }, { 0x00010141, 1, { 0x00010141 } }, { 0x00010142, 1, { 0x00010142 } }, { 0x00010143, 1, { 0x00010143 } }, { 0x00010144, 1, { 0x00010144 } }, { 0x00010145, 1, { 0x00010145 } }, { 0x00010146, 1, { 0x00010146 } }, { 0x00010147, 1, { 0x00010147 } }, { 0x00010148, 1, { 0x00010148 } }, { 0x00010149, 1, { 0x00010149 } }, { 0x0001014a, 1, { 0x0001014a } }, { 0x0001014b, 1, { 0x0001014b } }, { 0x0001014c, 1, { 0x0001014c } }, { 0x0001014d, 1, { 0x0001014d } }, { 0x0001014e, 1, { 0x0001014e } }, { 0x0001014f, 1, { 0x0001014f } }, { 0x00010150, 1, { 0x00010150 } }, { 0x00010151, 1, { 0x00010151 } }, { 0x00010152, 1, { 0x00010152 } }, { 0x00010153, 1, { 0x00010153 } }, { 0x00010154, 1, { 0x00010154 } }, { 0x00010155, 1, { 0x00010155 } }, { 0x00010156, 1, { 0x00010156 } }, { 0x00010157, 1, { 0x00010157 } }, { 0x00010158, 1, { 0x00010158 } }, { 0x00010159, 1, { 0x00010159 } }, { 0x0001015a, 1, { 0x0001015a } }, { 0x0001015b, 1, { 0x0001015b } }, { 0x0001015c, 1, { 0x0001015c } }, { 0x0001015d, 1, { 0x0001015d } }, { 0x0001015e, 1, { 0x0001015e } }, { 0x0001015f, 1, { 0x0001015f } }, { 0x00010160, 1, { 0x00010160 } }, { 0x00010161, 1, { 0x00010161 } }, { 0x00010162, 1, { 0x00010162 } }, { 0x00010163, 1, { 0x00010163 } }, { 0x00010164, 1, { 0x00010164 } }, { 0x00010165, 1, { 0x00010165 } }, { 0x00010166, 1, { 0x00010166 } }, { 0x00010167, 1, { 0x00010167 } }, { 0x00010168, 1, { 0x00010168 } }, { 0x00010169, 1, { 0x00010169 } }, { 0x0001016a, 1, { 0x0001016a } }, { 0x0001016b, 1, { 0x0001016b } }, { 0x0001016c, 1, { 0x0001016c } }, { 0x0001016d, 1, { 0x0001016d } }, { 0x0001016e, 1, { 0x0001016e } }, { 0x0001016f, 1, { 0x0001016f } }, { 0x00010170, 1, { 0x00010170 } }, { 0x00010171, 1, { 0x00010171 } }, { 0x00010172, 1, { 0x00010172 } }, { 0x00010173, 1, { 0x00010173 } }, { 0x00010174, 1, { 0x00010174 } }, { 0x00010175, 1, { 0x00010175 } }, { 0x00010176, 1, { 0x00010176 } }, { 0x00010177, 1, { 0x00010177 } }, { 0x00010178, 1, { 0x00010178 } }, { 0x00010179, 1, { 0x00010179 } }, { 0x0001017a, 1, { 0x0001017a } }, { 0x0001017b, 1, { 0x0001017b } }, { 0x0001017c, 1, { 0x0001017c } }, { 0x0001017d, 1, { 0x0001017d } }, { 0x0001017e, 1, { 0x0001017e } }, { 0x0001017f, 1, { 0x0001017f } }, { 0x00010180, 1, { 0x00010180 } }, { 0x00010181, 1, { 0x00010181 } }, { 0x00010182, 1, { 0x00010182 } }, { 0x00010183, 1, { 0x00010183 } }, { 0x00010184, 1, { 0x00010184 } }, { 0x00010185, 1, { 0x00010185 } }, { 0x00010186, 1, { 0x00010186 } }, { 0x00010187, 1, { 0x00010187 } }, { 0x00010188, 1, { 0x00010188 } }, { 0x00010189, 1, { 0x00010189 } }, { 0x0001018a, 1, { 0x0001018a } }, { 0x0001018b, 1, { 0x0001018b } }, { 0x0001018c, 1, { 0x0001018c } }, { 0x0001018d, 1, { 0x0001018d } }, { 0x0001018e, 1, { 0x0001018e } }, { 0x00010190, 1, { 0x00010190 } }, { 0x00010191, 1, { 0x00010191 } }, { 0x00010192, 1, { 0x00010192 } }, { 0x00010193, 1, { 0x00010193 } }, { 0x00010194, 1, { 0x00010194 } }, { 0x00010195, 1, { 0x00010195 } }, { 0x00010196, 1, { 0x00010196 } }, { 0x00010197, 1, { 0x00010197 } }, { 0x00010198, 1, { 0x00010198 } }, { 0x00010199, 1, { 0x00010199 } }, { 0x0001019a, 1, { 0x0001019a } }, { 0x0001019b, 1, { 0x0001019b } }, { 0x000101a0, 1, { 0x000101a0 } }, { 0x000101d0, 1, { 0x000101d0 } }, { 0x000101d1, 1, { 0x000101d1 } }, { 0x000101d2, 1, { 0x000101d2 } }, { 0x000101d3, 1, { 0x000101d3 } }, { 0x000101d4, 1, { 0x000101d4 } }, { 0x000101d5, 1, { 0x000101d5 } }, { 0x000101d6, 1, { 0x000101d6 } }, { 0x000101d7, 1, { 0x000101d7 } }, { 0x000101d8, 1, { 0x000101d8 } }, { 0x000101d9, 1, { 0x000101d9 } }, { 0x000101da, 1, { 0x000101da } }, { 0x000101db, 1, { 0x000101db } }, { 0x000101dc, 1, { 0x000101dc } }, { 0x000101dd, 1, { 0x000101dd } }, { 0x000101de, 1, { 0x000101de } }, { 0x000101df, 1, { 0x000101df } }, { 0x000101e0, 1, { 0x000101e0 } }, { 0x000101e1, 1, { 0x000101e1 } }, { 0x000101e2, 1, { 0x000101e2 } }, { 0x000101e3, 1, { 0x000101e3 } }, { 0x000101e4, 1, { 0x000101e4 } }, { 0x000101e5, 1, { 0x000101e5 } }, { 0x000101e6, 1, { 0x000101e6 } }, { 0x000101e7, 1, { 0x000101e7 } }, { 0x000101e8, 1, { 0x000101e8 } }, { 0x000101e9, 1, { 0x000101e9 } }, { 0x000101ea, 1, { 0x000101ea } }, { 0x000101eb, 1, { 0x000101eb } }, { 0x000101ec, 1, { 0x000101ec } }, { 0x000101ed, 1, { 0x000101ed } }, { 0x000101ee, 1, { 0x000101ee } }, { 0x000101ef, 1, { 0x000101ef } }, { 0x000101f0, 1, { 0x000101f0 } }, { 0x000101f1, 1, { 0x000101f1 } }, { 0x000101f2, 1, { 0x000101f2 } }, { 0x000101f3, 1, { 0x000101f3 } }, { 0x000101f4, 1, { 0x000101f4 } }, { 0x000101f5, 1, { 0x000101f5 } }, { 0x000101f6, 1, { 0x000101f6 } }, { 0x000101f7, 1, { 0x000101f7 } }, { 0x000101f8, 1, { 0x000101f8 } }, { 0x000101f9, 1, { 0x000101f9 } }, { 0x000101fa, 1, { 0x000101fa } }, { 0x000101fb, 1, { 0x000101fb } }, { 0x000101fc, 1, { 0x000101fc } }, { 0x000101fd, 1, { 0x000101fd } }, { 0x00010280, 1, { 0x00010280 } }, { 0x00010281, 1, { 0x00010281 } }, { 0x00010282, 1, { 0x00010282 } }, { 0x00010283, 1, { 0x00010283 } }, { 0x00010284, 1, { 0x00010284 } }, { 0x00010285, 1, { 0x00010285 } }, { 0x00010286, 1, { 0x00010286 } }, { 0x00010287, 1, { 0x00010287 } }, { 0x00010288, 1, { 0x00010288 } }, { 0x00010289, 1, { 0x00010289 } }, { 0x0001028a, 1, { 0x0001028a } }, { 0x0001028b, 1, { 0x0001028b } }, { 0x0001028c, 1, { 0x0001028c } }, { 0x0001028d, 1, { 0x0001028d } }, { 0x0001028e, 1, { 0x0001028e } }, { 0x0001028f, 1, { 0x0001028f } }, { 0x00010290, 1, { 0x00010290 } }, { 0x00010291, 1, { 0x00010291 } }, { 0x00010292, 1, { 0x00010292 } }, { 0x00010293, 1, { 0x00010293 } }, { 0x00010294, 1, { 0x00010294 } }, { 0x00010295, 1, { 0x00010295 } }, { 0x00010296, 1, { 0x00010296 } }, { 0x00010297, 1, { 0x00010297 } }, { 0x00010298, 1, { 0x00010298 } }, { 0x00010299, 1, { 0x00010299 } }, { 0x0001029a, 1, { 0x0001029a } }, { 0x0001029b, 1, { 0x0001029b } }, { 0x0001029c, 1, { 0x0001029c } }, { 0x000102a0, 1, { 0x000102a0 } }, { 0x000102a1, 1, { 0x000102a1 } }, { 0x000102a2, 1, { 0x000102a2 } }, { 0x000102a3, 1, { 0x000102a3 } }, { 0x000102a4, 1, { 0x000102a4 } }, { 0x000102a5, 1, { 0x000102a5 } }, { 0x000102a6, 1, { 0x000102a6 } }, { 0x000102a7, 1, { 0x000102a7 } }, { 0x000102a8, 1, { 0x000102a8 } }, { 0x000102a9, 1, { 0x000102a9 } }, { 0x000102aa, 1, { 0x000102aa } }, { 0x000102ab, 1, { 0x000102ab } }, { 0x000102ac, 1, { 0x000102ac } }, { 0x000102ad, 1, { 0x000102ad } }, { 0x000102ae, 1, { 0x000102ae } }, { 0x000102af, 1, { 0x000102af } }, { 0x000102b0, 1, { 0x000102b0 } }, { 0x000102b1, 1, { 0x000102b1 } }, { 0x000102b2, 1, { 0x000102b2 } }, { 0x000102b3, 1, { 0x000102b3 } }, { 0x000102b4, 1, { 0x000102b4 } }, { 0x000102b5, 1, { 0x000102b5 } }, { 0x000102b6, 1, { 0x000102b6 } }, { 0x000102b7, 1, { 0x000102b7 } }, { 0x000102b8, 1, { 0x000102b8 } }, { 0x000102b9, 1, { 0x000102b9 } }, { 0x000102ba, 1, { 0x000102ba } }, { 0x000102bb, 1, { 0x000102bb } }, { 0x000102bc, 1, { 0x000102bc } }, { 0x000102bd, 1, { 0x000102bd } }, { 0x000102be, 1, { 0x000102be } }, { 0x000102bf, 1, { 0x000102bf } }, { 0x000102c0, 1, { 0x000102c0 } }, { 0x000102c1, 1, { 0x000102c1 } }, { 0x000102c2, 1, { 0x000102c2 } }, { 0x000102c3, 1, { 0x000102c3 } }, { 0x000102c4, 1, { 0x000102c4 } }, { 0x000102c5, 1, { 0x000102c5 } }, { 0x000102c6, 1, { 0x000102c6 } }, { 0x000102c7, 1, { 0x000102c7 } }, { 0x000102c8, 1, { 0x000102c8 } }, { 0x000102c9, 1, { 0x000102c9 } }, { 0x000102ca, 1, { 0x000102ca } }, { 0x000102cb, 1, { 0x000102cb } }, { 0x000102cc, 1, { 0x000102cc } }, { 0x000102cd, 1, { 0x000102cd } }, { 0x000102ce, 1, { 0x000102ce } }, { 0x000102cf, 1, { 0x000102cf } }, { 0x000102d0, 1, { 0x000102d0 } }, { 0x000102e0, 1, { 0x000102e0 } }, { 0x000102e1, 1, { 0x000102e1 } }, { 0x000102e2, 1, { 0x000102e2 } }, { 0x000102e3, 1, { 0x000102e3 } }, { 0x000102e4, 1, { 0x000102e4 } }, { 0x000102e5, 1, { 0x000102e5 } }, { 0x000102e6, 1, { 0x000102e6 } }, { 0x000102e7, 1, { 0x000102e7 } }, { 0x000102e8, 1, { 0x000102e8 } }, { 0x000102e9, 1, { 0x000102e9 } }, { 0x000102ea, 1, { 0x000102ea } }, { 0x000102eb, 1, { 0x000102eb } }, { 0x000102ec, 1, { 0x000102ec } }, { 0x000102ed, 1, { 0x000102ed } }, { 0x000102ee, 1, { 0x000102ee } }, { 0x000102ef, 1, { 0x000102ef } }, { 0x000102f0, 1, { 0x000102f0 } }, { 0x000102f1, 1, { 0x000102f1 } }, { 0x000102f2, 1, { 0x000102f2 } }, { 0x000102f3, 1, { 0x000102f3 } }, { 0x000102f4, 1, { 0x000102f4 } }, { 0x000102f5, 1, { 0x000102f5 } }, { 0x000102f6, 1, { 0x000102f6 } }, { 0x000102f7, 1, { 0x000102f7 } }, { 0x000102f8, 1, { 0x000102f8 } }, { 0x000102f9, 1, { 0x000102f9 } }, { 0x000102fa, 1, { 0x000102fa } }, { 0x000102fb, 1, { 0x000102fb } }, { 0x00010300, 1, { 0x00010300 } }, { 0x00010301, 1, { 0x00010301 } }, { 0x00010302, 1, { 0x00010302 } }, { 0x00010303, 1, { 0x00010303 } }, { 0x00010304, 1, { 0x00010304 } }, { 0x00010305, 1, { 0x00010305 } }, { 0x00010306, 1, { 0x00010306 } }, { 0x00010307, 1, { 0x00010307 } }, { 0x00010308, 1, { 0x00010308 } }, { 0x00010309, 1, { 0x00010309 } }, { 0x0001030a, 1, { 0x0001030a } }, { 0x0001030b, 1, { 0x0001030b } }, { 0x0001030c, 1, { 0x0001030c } }, { 0x0001030d, 1, { 0x0001030d } }, { 0x0001030e, 1, { 0x0001030e } }, { 0x0001030f, 1, { 0x0001030f } }, { 0x00010310, 1, { 0x00010310 } }, { 0x00010311, 1, { 0x00010311 } }, { 0x00010312, 1, { 0x00010312 } }, { 0x00010313, 1, { 0x00010313 } }, { 0x00010314, 1, { 0x00010314 } }, { 0x00010315, 1, { 0x00010315 } }, { 0x00010316, 1, { 0x00010316 } }, { 0x00010317, 1, { 0x00010317 } }, { 0x00010318, 1, { 0x00010318 } }, { 0x00010319, 1, { 0x00010319 } }, { 0x0001031a, 1, { 0x0001031a } }, { 0x0001031b, 1, { 0x0001031b } }, { 0x0001031c, 1, { 0x0001031c } }, { 0x0001031d, 1, { 0x0001031d } }, { 0x0001031e, 1, { 0x0001031e } }, { 0x0001031f, 1, { 0x0001031f } }, { 0x00010320, 1, { 0x00010320 } }, { 0x00010321, 1, { 0x00010321 } }, { 0x00010322, 1, { 0x00010322 } }, { 0x00010323, 1, { 0x00010323 } }, { 0x00010330, 1, { 0x00010330 } }, { 0x00010331, 1, { 0x00010331 } }, { 0x00010332, 1, { 0x00010332 } }, { 0x00010333, 1, { 0x00010333 } }, { 0x00010334, 1, { 0x00010334 } }, { 0x00010335, 1, { 0x00010335 } }, { 0x00010336, 1, { 0x00010336 } }, { 0x00010337, 1, { 0x00010337 } }, { 0x00010338, 1, { 0x00010338 } }, { 0x00010339, 1, { 0x00010339 } }, { 0x0001033a, 1, { 0x0001033a } }, { 0x0001033b, 1, { 0x0001033b } }, { 0x0001033c, 1, { 0x0001033c } }, { 0x0001033d, 1, { 0x0001033d } }, { 0x0001033e, 1, { 0x0001033e } }, { 0x0001033f, 1, { 0x0001033f } }, { 0x00010340, 1, { 0x00010340 } }, { 0x00010341, 1, { 0x00010341 } }, { 0x00010342, 1, { 0x00010342 } }, { 0x00010343, 1, { 0x00010343 } }, { 0x00010344, 1, { 0x00010344 } }, { 0x00010345, 1, { 0x00010345 } }, { 0x00010346, 1, { 0x00010346 } }, { 0x00010347, 1, { 0x00010347 } }, { 0x00010348, 1, { 0x00010348 } }, { 0x00010349, 1, { 0x00010349 } }, { 0x0001034a, 1, { 0x0001034a } }, { 0x00010350, 1, { 0x00010350 } }, { 0x00010351, 1, { 0x00010351 } }, { 0x00010352, 1, { 0x00010352 } }, { 0x00010353, 1, { 0x00010353 } }, { 0x00010354, 1, { 0x00010354 } }, { 0x00010355, 1, { 0x00010355 } }, { 0x00010356, 1, { 0x00010356 } }, { 0x00010357, 1, { 0x00010357 } }, { 0x00010358, 1, { 0x00010358 } }, { 0x00010359, 1, { 0x00010359 } }, { 0x0001035a, 1, { 0x0001035a } }, { 0x0001035b, 1, { 0x0001035b } }, { 0x0001035c, 1, { 0x0001035c } }, { 0x0001035d, 1, { 0x0001035d } }, { 0x0001035e, 1, { 0x0001035e } }, { 0x0001035f, 1, { 0x0001035f } }, { 0x00010360, 1, { 0x00010360 } }, { 0x00010361, 1, { 0x00010361 } }, { 0x00010362, 1, { 0x00010362 } }, { 0x00010363, 1, { 0x00010363 } }, { 0x00010364, 1, { 0x00010364 } }, { 0x00010365, 1, { 0x00010365 } }, { 0x00010366, 1, { 0x00010366 } }, { 0x00010367, 1, { 0x00010367 } }, { 0x00010368, 1, { 0x00010368 } }, { 0x00010369, 1, { 0x00010369 } }, { 0x0001036a, 1, { 0x0001036a } }, { 0x0001036b, 1, { 0x0001036b } }, { 0x0001036c, 1, { 0x0001036c } }, { 0x0001036d, 1, { 0x0001036d } }, { 0x0001036e, 1, { 0x0001036e } }, { 0x0001036f, 1, { 0x0001036f } }, { 0x00010370, 1, { 0x00010370 } }, { 0x00010371, 1, { 0x00010371 } }, { 0x00010372, 1, { 0x00010372 } }, { 0x00010373, 1, { 0x00010373 } }, { 0x00010374, 1, { 0x00010374 } }, { 0x00010375, 1, { 0x00010375 } }, { 0x00010376, 1, { 0x00010376 } }, { 0x00010377, 1, { 0x00010377 } }, { 0x00010378, 1, { 0x00010378 } }, { 0x00010379, 1, { 0x00010379 } }, { 0x0001037a, 1, { 0x0001037a } }, { 0x00010380, 1, { 0x00010380 } }, { 0x00010381, 1, { 0x00010381 } }, { 0x00010382, 1, { 0x00010382 } }, { 0x00010383, 1, { 0x00010383 } }, { 0x00010384, 1, { 0x00010384 } }, { 0x00010385, 1, { 0x00010385 } }, { 0x00010386, 1, { 0x00010386 } }, { 0x00010387, 1, { 0x00010387 } }, { 0x00010388, 1, { 0x00010388 } }, { 0x00010389, 1, { 0x00010389 } }, { 0x0001038a, 1, { 0x0001038a } }, { 0x0001038b, 1, { 0x0001038b } }, { 0x0001038c, 1, { 0x0001038c } }, { 0x0001038d, 1, { 0x0001038d } }, { 0x0001038e, 1, { 0x0001038e } }, { 0x0001038f, 1, { 0x0001038f } }, { 0x00010390, 1, { 0x00010390 } }, { 0x00010391, 1, { 0x00010391 } }, { 0x00010392, 1, { 0x00010392 } }, { 0x00010393, 1, { 0x00010393 } }, { 0x00010394, 1, { 0x00010394 } }, { 0x00010395, 1, { 0x00010395 } }, { 0x00010396, 1, { 0x00010396 } }, { 0x00010397, 1, { 0x00010397 } }, { 0x00010398, 1, { 0x00010398 } }, { 0x00010399, 1, { 0x00010399 } }, { 0x0001039a, 1, { 0x0001039a } }, { 0x0001039b, 1, { 0x0001039b } }, { 0x0001039c, 1, { 0x0001039c } }, { 0x0001039d, 1, { 0x0001039d } }, { 0x0001039f, 1, { 0x0001039f } }, { 0x000103a0, 1, { 0x000103a0 } }, { 0x000103a1, 1, { 0x000103a1 } }, { 0x000103a2, 1, { 0x000103a2 } }, { 0x000103a3, 1, { 0x000103a3 } }, { 0x000103a4, 1, { 0x000103a4 } }, { 0x000103a5, 1, { 0x000103a5 } }, { 0x000103a6, 1, { 0x000103a6 } }, { 0x000103a7, 1, { 0x000103a7 } }, { 0x000103a8, 1, { 0x000103a8 } }, { 0x000103a9, 1, { 0x000103a9 } }, { 0x000103aa, 1, { 0x000103aa } }, { 0x000103ab, 1, { 0x000103ab } }, { 0x000103ac, 1, { 0x000103ac } }, { 0x000103ad, 1, { 0x000103ad } }, { 0x000103ae, 1, { 0x000103ae } }, { 0x000103af, 1, { 0x000103af } }, { 0x000103b0, 1, { 0x000103b0 } }, { 0x000103b1, 1, { 0x000103b1 } }, { 0x000103b2, 1, { 0x000103b2 } }, { 0x000103b3, 1, { 0x000103b3 } }, { 0x000103b4, 1, { 0x000103b4 } }, { 0x000103b5, 1, { 0x000103b5 } }, { 0x000103b6, 1, { 0x000103b6 } }, { 0x000103b7, 1, { 0x000103b7 } }, { 0x000103b8, 1, { 0x000103b8 } }, { 0x000103b9, 1, { 0x000103b9 } }, { 0x000103ba, 1, { 0x000103ba } }, { 0x000103bb, 1, { 0x000103bb } }, { 0x000103bc, 1, { 0x000103bc } }, { 0x000103bd, 1, { 0x000103bd } }, { 0x000103be, 1, { 0x000103be } }, { 0x000103bf, 1, { 0x000103bf } }, { 0x000103c0, 1, { 0x000103c0 } }, { 0x000103c1, 1, { 0x000103c1 } }, { 0x000103c2, 1, { 0x000103c2 } }, { 0x000103c3, 1, { 0x000103c3 } }, { 0x000103c8, 1, { 0x000103c8 } }, { 0x000103c9, 1, { 0x000103c9 } }, { 0x000103ca, 1, { 0x000103ca } }, { 0x000103cb, 1, { 0x000103cb } }, { 0x000103cc, 1, { 0x000103cc } }, { 0x000103cd, 1, { 0x000103cd } }, { 0x000103ce, 1, { 0x000103ce } }, { 0x000103cf, 1, { 0x000103cf } }, { 0x000103d0, 1, { 0x000103d0 } }, { 0x000103d1, 1, { 0x000103d1 } }, { 0x000103d2, 1, { 0x000103d2 } }, { 0x000103d3, 1, { 0x000103d3 } }, { 0x000103d4, 1, { 0x000103d4 } }, { 0x000103d5, 1, { 0x000103d5 } }, { 0x00010400, 1, { 0x00010400 } }, { 0x00010401, 1, { 0x00010401 } }, { 0x00010402, 1, { 0x00010402 } }, { 0x00010403, 1, { 0x00010403 } }, { 0x00010404, 1, { 0x00010404 } }, { 0x00010405, 1, { 0x00010405 } }, { 0x00010406, 1, { 0x00010406 } }, { 0x00010407, 1, { 0x00010407 } }, { 0x00010408, 1, { 0x00010408 } }, { 0x00010409, 1, { 0x00010409 } }, { 0x0001040a, 1, { 0x0001040a } }, { 0x0001040b, 1, { 0x0001040b } }, { 0x0001040c, 1, { 0x0001040c } }, { 0x0001040d, 1, { 0x0001040d } }, { 0x0001040e, 1, { 0x0001040e } }, { 0x0001040f, 1, { 0x0001040f } }, { 0x00010410, 1, { 0x00010410 } }, { 0x00010411, 1, { 0x00010411 } }, { 0x00010412, 1, { 0x00010412 } }, { 0x00010413, 1, { 0x00010413 } }, { 0x00010414, 1, { 0x00010414 } }, { 0x00010415, 1, { 0x00010415 } }, { 0x00010416, 1, { 0x00010416 } }, { 0x00010417, 1, { 0x00010417 } }, { 0x00010418, 1, { 0x00010418 } }, { 0x00010419, 1, { 0x00010419 } }, { 0x0001041a, 1, { 0x0001041a } }, { 0x0001041b, 1, { 0x0001041b } }, { 0x0001041c, 1, { 0x0001041c } }, { 0x0001041d, 1, { 0x0001041d } }, { 0x0001041e, 1, { 0x0001041e } }, { 0x0001041f, 1, { 0x0001041f } }, { 0x00010420, 1, { 0x00010420 } }, { 0x00010421, 1, { 0x00010421 } }, { 0x00010422, 1, { 0x00010422 } }, { 0x00010423, 1, { 0x00010423 } }, { 0x00010424, 1, { 0x00010424 } }, { 0x00010425, 1, { 0x00010425 } }, { 0x00010426, 1, { 0x00010426 } }, { 0x00010427, 1, { 0x00010427 } }, { 0x00010428, 1, { 0x00010428 } }, { 0x00010429, 1, { 0x00010429 } }, { 0x0001042a, 1, { 0x0001042a } }, { 0x0001042b, 1, { 0x0001042b } }, { 0x0001042c, 1, { 0x0001042c } }, { 0x0001042d, 1, { 0x0001042d } }, { 0x0001042e, 1, { 0x0001042e } }, { 0x0001042f, 1, { 0x0001042f } }, { 0x00010430, 1, { 0x00010430 } }, { 0x00010431, 1, { 0x00010431 } }, { 0x00010432, 1, { 0x00010432 } }, { 0x00010433, 1, { 0x00010433 } }, { 0x00010434, 1, { 0x00010434 } }, { 0x00010435, 1, { 0x00010435 } }, { 0x00010436, 1, { 0x00010436 } }, { 0x00010437, 1, { 0x00010437 } }, { 0x00010438, 1, { 0x00010438 } }, { 0x00010439, 1, { 0x00010439 } }, { 0x0001043a, 1, { 0x0001043a } }, { 0x0001043b, 1, { 0x0001043b } }, { 0x0001043c, 1, { 0x0001043c } }, { 0x0001043d, 1, { 0x0001043d } }, { 0x0001043e, 1, { 0x0001043e } }, { 0x0001043f, 1, { 0x0001043f } }, { 0x00010440, 1, { 0x00010440 } }, { 0x00010441, 1, { 0x00010441 } }, { 0x00010442, 1, { 0x00010442 } }, { 0x00010443, 1, { 0x00010443 } }, { 0x00010444, 1, { 0x00010444 } }, { 0x00010445, 1, { 0x00010445 } }, { 0x00010446, 1, { 0x00010446 } }, { 0x00010447, 1, { 0x00010447 } }, { 0x00010448, 1, { 0x00010448 } }, { 0x00010449, 1, { 0x00010449 } }, { 0x0001044a, 1, { 0x0001044a } }, { 0x0001044b, 1, { 0x0001044b } }, { 0x0001044c, 1, { 0x0001044c } }, { 0x0001044d, 1, { 0x0001044d } }, { 0x0001044e, 1, { 0x0001044e } }, { 0x0001044f, 1, { 0x0001044f } }, { 0x00010450, 1, { 0x00010450 } }, { 0x00010451, 1, { 0x00010451 } }, { 0x00010452, 1, { 0x00010452 } }, { 0x00010453, 1, { 0x00010453 } }, { 0x00010454, 1, { 0x00010454 } }, { 0x00010455, 1, { 0x00010455 } }, { 0x00010456, 1, { 0x00010456 } }, { 0x00010457, 1, { 0x00010457 } }, { 0x00010458, 1, { 0x00010458 } }, { 0x00010459, 1, { 0x00010459 } }, { 0x0001045a, 1, { 0x0001045a } }, { 0x0001045b, 1, { 0x0001045b } }, { 0x0001045c, 1, { 0x0001045c } }, { 0x0001045d, 1, { 0x0001045d } }, { 0x0001045e, 1, { 0x0001045e } }, { 0x0001045f, 1, { 0x0001045f } }, { 0x00010460, 1, { 0x00010460 } }, { 0x00010461, 1, { 0x00010461 } }, { 0x00010462, 1, { 0x00010462 } }, { 0x00010463, 1, { 0x00010463 } }, { 0x00010464, 1, { 0x00010464 } }, { 0x00010465, 1, { 0x00010465 } }, { 0x00010466, 1, { 0x00010466 } }, { 0x00010467, 1, { 0x00010467 } }, { 0x00010468, 1, { 0x00010468 } }, { 0x00010469, 1, { 0x00010469 } }, { 0x0001046a, 1, { 0x0001046a } }, { 0x0001046b, 1, { 0x0001046b } }, { 0x0001046c, 1, { 0x0001046c } }, { 0x0001046d, 1, { 0x0001046d } }, { 0x0001046e, 1, { 0x0001046e } }, { 0x0001046f, 1, { 0x0001046f } }, { 0x00010470, 1, { 0x00010470 } }, { 0x00010471, 1, { 0x00010471 } }, { 0x00010472, 1, { 0x00010472 } }, { 0x00010473, 1, { 0x00010473 } }, { 0x00010474, 1, { 0x00010474 } }, { 0x00010475, 1, { 0x00010475 } }, { 0x00010476, 1, { 0x00010476 } }, { 0x00010477, 1, { 0x00010477 } }, { 0x00010478, 1, { 0x00010478 } }, { 0x00010479, 1, { 0x00010479 } }, { 0x0001047a, 1, { 0x0001047a } }, { 0x0001047b, 1, { 0x0001047b } }, { 0x0001047c, 1, { 0x0001047c } }, { 0x0001047d, 1, { 0x0001047d } }, { 0x0001047e, 1, { 0x0001047e } }, { 0x0001047f, 1, { 0x0001047f } }, { 0x00010480, 1, { 0x00010480 } }, { 0x00010481, 1, { 0x00010481 } }, { 0x00010482, 1, { 0x00010482 } }, { 0x00010483, 1, { 0x00010483 } }, { 0x00010484, 1, { 0x00010484 } }, { 0x00010485, 1, { 0x00010485 } }, { 0x00010486, 1, { 0x00010486 } }, { 0x00010487, 1, { 0x00010487 } }, { 0x00010488, 1, { 0x00010488 } }, { 0x00010489, 1, { 0x00010489 } }, { 0x0001048a, 1, { 0x0001048a } }, { 0x0001048b, 1, { 0x0001048b } }, { 0x0001048c, 1, { 0x0001048c } }, { 0x0001048d, 1, { 0x0001048d } }, { 0x0001048e, 1, { 0x0001048e } }, { 0x0001048f, 1, { 0x0001048f } }, { 0x00010490, 1, { 0x00010490 } }, { 0x00010491, 1, { 0x00010491 } }, { 0x00010492, 1, { 0x00010492 } }, { 0x00010493, 1, { 0x00010493 } }, { 0x00010494, 1, { 0x00010494 } }, { 0x00010495, 1, { 0x00010495 } }, { 0x00010496, 1, { 0x00010496 } }, { 0x00010497, 1, { 0x00010497 } }, { 0x00010498, 1, { 0x00010498 } }, { 0x00010499, 1, { 0x00010499 } }, { 0x0001049a, 1, { 0x0001049a } }, { 0x0001049b, 1, { 0x0001049b } }, { 0x0001049c, 1, { 0x0001049c } }, { 0x0001049d, 1, { 0x0001049d } }, { 0x000104a0, 1, { 0x000104a0 } }, { 0x000104a1, 1, { 0x000104a1 } }, { 0x000104a2, 1, { 0x000104a2 } }, { 0x000104a3, 1, { 0x000104a3 } }, { 0x000104a4, 1, { 0x000104a4 } }, { 0x000104a5, 1, { 0x000104a5 } }, { 0x000104a6, 1, { 0x000104a6 } }, { 0x000104a7, 1, { 0x000104a7 } }, { 0x000104a8, 1, { 0x000104a8 } }, { 0x000104a9, 1, { 0x000104a9 } }, { 0x000104b0, 1, { 0x000104b0 } }, { 0x000104b1, 1, { 0x000104b1 } }, { 0x000104b2, 1, { 0x000104b2 } }, { 0x000104b3, 1, { 0x000104b3 } }, { 0x000104b4, 1, { 0x000104b4 } }, { 0x000104b5, 1, { 0x000104b5 } }, { 0x000104b6, 1, { 0x000104b6 } }, { 0x000104b7, 1, { 0x000104b7 } }, { 0x000104b8, 1, { 0x000104b8 } }, { 0x000104b9, 1, { 0x000104b9 } }, { 0x000104ba, 1, { 0x000104ba } }, { 0x000104bb, 1, { 0x000104bb } }, { 0x000104bc, 1, { 0x000104bc } }, { 0x000104bd, 1, { 0x000104bd } }, { 0x000104be, 1, { 0x000104be } }, { 0x000104bf, 1, { 0x000104bf } }, { 0x000104c0, 1, { 0x000104c0 } }, { 0x000104c1, 1, { 0x000104c1 } }, { 0x000104c2, 1, { 0x000104c2 } }, { 0x000104c3, 1, { 0x000104c3 } }, { 0x000104c4, 1, { 0x000104c4 } }, { 0x000104c5, 1, { 0x000104c5 } }, { 0x000104c6, 1, { 0x000104c6 } }, { 0x000104c7, 1, { 0x000104c7 } }, { 0x000104c8, 1, { 0x000104c8 } }, { 0x000104c9, 1, { 0x000104c9 } }, { 0x000104ca, 1, { 0x000104ca } }, { 0x000104cb, 1, { 0x000104cb } }, { 0x000104cc, 1, { 0x000104cc } }, { 0x000104cd, 1, { 0x000104cd } }, { 0x000104ce, 1, { 0x000104ce } }, { 0x000104cf, 1, { 0x000104cf } }, { 0x000104d0, 1, { 0x000104d0 } }, { 0x000104d1, 1, { 0x000104d1 } }, { 0x000104d2, 1, { 0x000104d2 } }, { 0x000104d3, 1, { 0x000104d3 } }, { 0x000104d8, 1, { 0x000104d8 } }, { 0x000104d9, 1, { 0x000104d9 } }, { 0x000104da, 1, { 0x000104da } }, { 0x000104db, 1, { 0x000104db } }, { 0x000104dc, 1, { 0x000104dc } }, { 0x000104dd, 1, { 0x000104dd } }, { 0x000104de, 1, { 0x000104de } }, { 0x000104df, 1, { 0x000104df } }, { 0x000104e0, 1, { 0x000104e0 } }, { 0x000104e1, 1, { 0x000104e1 } }, { 0x000104e2, 1, { 0x000104e2 } }, { 0x000104e3, 1, { 0x000104e3 } }, { 0x000104e4, 1, { 0x000104e4 } }, { 0x000104e5, 1, { 0x000104e5 } }, { 0x000104e6, 1, { 0x000104e6 } }, { 0x000104e7, 1, { 0x000104e7 } }, { 0x000104e8, 1, { 0x000104e8 } }, { 0x000104e9, 1, { 0x000104e9 } }, { 0x000104ea, 1, { 0x000104ea } }, { 0x000104eb, 1, { 0x000104eb } }, { 0x000104ec, 1, { 0x000104ec } }, { 0x000104ed, 1, { 0x000104ed } }, { 0x000104ee, 1, { 0x000104ee } }, { 0x000104ef, 1, { 0x000104ef } }, { 0x000104f0, 1, { 0x000104f0 } }, { 0x000104f1, 1, { 0x000104f1 } }, { 0x000104f2, 1, { 0x000104f2 } }, { 0x000104f3, 1, { 0x000104f3 } }, { 0x000104f4, 1, { 0x000104f4 } }, { 0x000104f5, 1, { 0x000104f5 } }, { 0x000104f6, 1, { 0x000104f6 } }, { 0x000104f7, 1, { 0x000104f7 } }, { 0x000104f8, 1, { 0x000104f8 } }, { 0x000104f9, 1, { 0x000104f9 } }, { 0x000104fa, 1, { 0x000104fa } }, { 0x000104fb, 1, { 0x000104fb } }, { 0x00010500, 1, { 0x00010500 } }, { 0x00010501, 1, { 0x00010501 } }, { 0x00010502, 1, { 0x00010502 } }, { 0x00010503, 1, { 0x00010503 } }, { 0x00010504, 1, { 0x00010504 } }, { 0x00010505, 1, { 0x00010505 } }, { 0x00010506, 1, { 0x00010506 } }, { 0x00010507, 1, { 0x00010507 } }, { 0x00010508, 1, { 0x00010508 } }, { 0x00010509, 1, { 0x00010509 } }, { 0x0001050a, 1, { 0x0001050a } }, { 0x0001050b, 1, { 0x0001050b } }, { 0x0001050c, 1, { 0x0001050c } }, { 0x0001050d, 1, { 0x0001050d } }, { 0x0001050e, 1, { 0x0001050e } }, { 0x0001050f, 1, { 0x0001050f } }, { 0x00010510, 1, { 0x00010510 } }, { 0x00010511, 1, { 0x00010511 } }, { 0x00010512, 1, { 0x00010512 } }, { 0x00010513, 1, { 0x00010513 } }, { 0x00010514, 1, { 0x00010514 } }, { 0x00010515, 1, { 0x00010515 } }, { 0x00010516, 1, { 0x00010516 } }, { 0x00010517, 1, { 0x00010517 } }, { 0x00010518, 1, { 0x00010518 } }, { 0x00010519, 1, { 0x00010519 } }, { 0x0001051a, 1, { 0x0001051a } }, { 0x0001051b, 1, { 0x0001051b } }, { 0x0001051c, 1, { 0x0001051c } }, { 0x0001051d, 1, { 0x0001051d } }, { 0x0001051e, 1, { 0x0001051e } }, { 0x0001051f, 1, { 0x0001051f } }, { 0x00010520, 1, { 0x00010520 } }, { 0x00010521, 1, { 0x00010521 } }, { 0x00010522, 1, { 0x00010522 } }, { 0x00010523, 1, { 0x00010523 } }, { 0x00010524, 1, { 0x00010524 } }, { 0x00010525, 1, { 0x00010525 } }, { 0x00010526, 1, { 0x00010526 } }, { 0x00010527, 1, { 0x00010527 } }, { 0x00010530, 1, { 0x00010530 } }, { 0x00010531, 1, { 0x00010531 } }, { 0x00010532, 1, { 0x00010532 } }, { 0x00010533, 1, { 0x00010533 } }, { 0x00010534, 1, { 0x00010534 } }, { 0x00010535, 1, { 0x00010535 } }, { 0x00010536, 1, { 0x00010536 } }, { 0x00010537, 1, { 0x00010537 } }, { 0x00010538, 1, { 0x00010538 } }, { 0x00010539, 1, { 0x00010539 } }, { 0x0001053a, 1, { 0x0001053a } }, { 0x0001053b, 1, { 0x0001053b } }, { 0x0001053c, 1, { 0x0001053c } }, { 0x0001053d, 1, { 0x0001053d } }, { 0x0001053e, 1, { 0x0001053e } }, { 0x0001053f, 1, { 0x0001053f } }, { 0x00010540, 1, { 0x00010540 } }, { 0x00010541, 1, { 0x00010541 } }, { 0x00010542, 1, { 0x00010542 } }, { 0x00010543, 1, { 0x00010543 } }, { 0x00010544, 1, { 0x00010544 } }, { 0x00010545, 1, { 0x00010545 } }, { 0x00010546, 1, { 0x00010546 } }, { 0x00010547, 1, { 0x00010547 } }, { 0x00010548, 1, { 0x00010548 } }, { 0x00010549, 1, { 0x00010549 } }, { 0x0001054a, 1, { 0x0001054a } }, { 0x0001054b, 1, { 0x0001054b } }, { 0x0001054c, 1, { 0x0001054c } }, { 0x0001054d, 1, { 0x0001054d } }, { 0x0001054e, 1, { 0x0001054e } }, { 0x0001054f, 1, { 0x0001054f } }, { 0x00010550, 1, { 0x00010550 } }, { 0x00010551, 1, { 0x00010551 } }, { 0x00010552, 1, { 0x00010552 } }, { 0x00010553, 1, { 0x00010553 } }, { 0x00010554, 1, { 0x00010554 } }, { 0x00010555, 1, { 0x00010555 } }, { 0x00010556, 1, { 0x00010556 } }, { 0x00010557, 1, { 0x00010557 } }, { 0x00010558, 1, { 0x00010558 } }, { 0x00010559, 1, { 0x00010559 } }, { 0x0001055a, 1, { 0x0001055a } }, { 0x0001055b, 1, { 0x0001055b } }, { 0x0001055c, 1, { 0x0001055c } }, { 0x0001055d, 1, { 0x0001055d } }, { 0x0001055e, 1, { 0x0001055e } }, { 0x0001055f, 1, { 0x0001055f } }, { 0x00010560, 1, { 0x00010560 } }, { 0x00010561, 1, { 0x00010561 } }, { 0x00010562, 1, { 0x00010562 } }, { 0x00010563, 1, { 0x00010563 } }, { 0x0001056f, 1, { 0x0001056f } }, { 0x00010600, 1, { 0x00010600 } }, { 0x00010601, 1, { 0x00010601 } }, { 0x00010602, 1, { 0x00010602 } }, { 0x00010603, 1, { 0x00010603 } }, { 0x00010604, 1, { 0x00010604 } }, { 0x00010605, 1, { 0x00010605 } }, { 0x00010606, 1, { 0x00010606 } }, { 0x00010607, 1, { 0x00010607 } }, { 0x00010608, 1, { 0x00010608 } }, { 0x00010609, 1, { 0x00010609 } }, { 0x0001060a, 1, { 0x0001060a } }, { 0x0001060b, 1, { 0x0001060b } }, { 0x0001060c, 1, { 0x0001060c } }, { 0x0001060d, 1, { 0x0001060d } }, { 0x0001060e, 1, { 0x0001060e } }, { 0x0001060f, 1, { 0x0001060f } }, { 0x00010610, 1, { 0x00010610 } }, { 0x00010611, 1, { 0x00010611 } }, { 0x00010612, 1, { 0x00010612 } }, { 0x00010613, 1, { 0x00010613 } }, { 0x00010614, 1, { 0x00010614 } }, { 0x00010615, 1, { 0x00010615 } }, { 0x00010616, 1, { 0x00010616 } }, { 0x00010617, 1, { 0x00010617 } }, { 0x00010618, 1, { 0x00010618 } }, { 0x00010619, 1, { 0x00010619 } }, { 0x0001061a, 1, { 0x0001061a } }, { 0x0001061b, 1, { 0x0001061b } }, { 0x0001061c, 1, { 0x0001061c } }, { 0x0001061d, 1, { 0x0001061d } }, { 0x0001061e, 1, { 0x0001061e } }, { 0x0001061f, 1, { 0x0001061f } }, { 0x00010620, 1, { 0x00010620 } }, { 0x00010621, 1, { 0x00010621 } }, { 0x00010622, 1, { 0x00010622 } }, { 0x00010623, 1, { 0x00010623 } }, { 0x00010624, 1, { 0x00010624 } }, { 0x00010625, 1, { 0x00010625 } }, { 0x00010626, 1, { 0x00010626 } }, { 0x00010627, 1, { 0x00010627 } }, { 0x00010628, 1, { 0x00010628 } }, { 0x00010629, 1, { 0x00010629 } }, { 0x0001062a, 1, { 0x0001062a } }, { 0x0001062b, 1, { 0x0001062b } }, { 0x0001062c, 1, { 0x0001062c } }, { 0x0001062d, 1, { 0x0001062d } }, { 0x0001062e, 1, { 0x0001062e } }, { 0x0001062f, 1, { 0x0001062f } }, { 0x00010630, 1, { 0x00010630 } }, { 0x00010631, 1, { 0x00010631 } }, { 0x00010632, 1, { 0x00010632 } }, { 0x00010633, 1, { 0x00010633 } }, { 0x00010634, 1, { 0x00010634 } }, { 0x00010635, 1, { 0x00010635 } }, { 0x00010636, 1, { 0x00010636 } }, { 0x00010637, 1, { 0x00010637 } }, { 0x00010638, 1, { 0x00010638 } }, { 0x00010639, 1, { 0x00010639 } }, { 0x0001063a, 1, { 0x0001063a } }, { 0x0001063b, 1, { 0x0001063b } }, { 0x0001063c, 1, { 0x0001063c } }, { 0x0001063d, 1, { 0x0001063d } }, { 0x0001063e, 1, { 0x0001063e } }, { 0x0001063f, 1, { 0x0001063f } }, { 0x00010640, 1, { 0x00010640 } }, { 0x00010641, 1, { 0x00010641 } }, { 0x00010642, 1, { 0x00010642 } }, { 0x00010643, 1, { 0x00010643 } }, { 0x00010644, 1, { 0x00010644 } }, { 0x00010645, 1, { 0x00010645 } }, { 0x00010646, 1, { 0x00010646 } }, { 0x00010647, 1, { 0x00010647 } }, { 0x00010648, 1, { 0x00010648 } }, { 0x00010649, 1, { 0x00010649 } }, { 0x0001064a, 1, { 0x0001064a } }, { 0x0001064b, 1, { 0x0001064b } }, { 0x0001064c, 1, { 0x0001064c } }, { 0x0001064d, 1, { 0x0001064d } }, { 0x0001064e, 1, { 0x0001064e } }, { 0x0001064f, 1, { 0x0001064f } }, { 0x00010650, 1, { 0x00010650 } }, { 0x00010651, 1, { 0x00010651 } }, { 0x00010652, 1, { 0x00010652 } }, { 0x00010653, 1, { 0x00010653 } }, { 0x00010654, 1, { 0x00010654 } }, { 0x00010655, 1, { 0x00010655 } }, { 0x00010656, 1, { 0x00010656 } }, { 0x00010657, 1, { 0x00010657 } }, { 0x00010658, 1, { 0x00010658 } }, { 0x00010659, 1, { 0x00010659 } }, { 0x0001065a, 1, { 0x0001065a } }, { 0x0001065b, 1, { 0x0001065b } }, { 0x0001065c, 1, { 0x0001065c } }, { 0x0001065d, 1, { 0x0001065d } }, { 0x0001065e, 1, { 0x0001065e } }, { 0x0001065f, 1, { 0x0001065f } }, { 0x00010660, 1, { 0x00010660 } }, { 0x00010661, 1, { 0x00010661 } }, { 0x00010662, 1, { 0x00010662 } }, { 0x00010663, 1, { 0x00010663 } }, { 0x00010664, 1, { 0x00010664 } }, { 0x00010665, 1, { 0x00010665 } }, { 0x00010666, 1, { 0x00010666 } }, { 0x00010667, 1, { 0x00010667 } }, { 0x00010668, 1, { 0x00010668 } }, { 0x00010669, 1, { 0x00010669 } }, { 0x0001066a, 1, { 0x0001066a } }, { 0x0001066b, 1, { 0x0001066b } }, { 0x0001066c, 1, { 0x0001066c } }, { 0x0001066d, 1, { 0x0001066d } }, { 0x0001066e, 1, { 0x0001066e } }, { 0x0001066f, 1, { 0x0001066f } }, { 0x00010670, 1, { 0x00010670 } }, { 0x00010671, 1, { 0x00010671 } }, { 0x00010672, 1, { 0x00010672 } }, { 0x00010673, 1, { 0x00010673 } }, { 0x00010674, 1, { 0x00010674 } }, { 0x00010675, 1, { 0x00010675 } }, { 0x00010676, 1, { 0x00010676 } }, { 0x00010677, 1, { 0x00010677 } }, { 0x00010678, 1, { 0x00010678 } }, { 0x00010679, 1, { 0x00010679 } }, { 0x0001067a, 1, { 0x0001067a } }, { 0x0001067b, 1, { 0x0001067b } }, { 0x0001067c, 1, { 0x0001067c } }, { 0x0001067d, 1, { 0x0001067d } }, { 0x0001067e, 1, { 0x0001067e } }, { 0x0001067f, 1, { 0x0001067f } }, { 0x00010680, 1, { 0x00010680 } }, { 0x00010681, 1, { 0x00010681 } }, { 0x00010682, 1, { 0x00010682 } }, { 0x00010683, 1, { 0x00010683 } }, { 0x00010684, 1, { 0x00010684 } }, { 0x00010685, 1, { 0x00010685 } }, { 0x00010686, 1, { 0x00010686 } }, { 0x00010687, 1, { 0x00010687 } }, { 0x00010688, 1, { 0x00010688 } }, { 0x00010689, 1, { 0x00010689 } }, { 0x0001068a, 1, { 0x0001068a } }, { 0x0001068b, 1, { 0x0001068b } }, { 0x0001068c, 1, { 0x0001068c } }, { 0x0001068d, 1, { 0x0001068d } }, { 0x0001068e, 1, { 0x0001068e } }, { 0x0001068f, 1, { 0x0001068f } }, { 0x00010690, 1, { 0x00010690 } }, { 0x00010691, 1, { 0x00010691 } }, { 0x00010692, 1, { 0x00010692 } }, { 0x00010693, 1, { 0x00010693 } }, { 0x00010694, 1, { 0x00010694 } }, { 0x00010695, 1, { 0x00010695 } }, { 0x00010696, 1, { 0x00010696 } }, { 0x00010697, 1, { 0x00010697 } }, { 0x00010698, 1, { 0x00010698 } }, { 0x00010699, 1, { 0x00010699 } }, { 0x0001069a, 1, { 0x0001069a } }, { 0x0001069b, 1, { 0x0001069b } }, { 0x0001069c, 1, { 0x0001069c } }, { 0x0001069d, 1, { 0x0001069d } }, { 0x0001069e, 1, { 0x0001069e } }, { 0x0001069f, 1, { 0x0001069f } }, { 0x000106a0, 1, { 0x000106a0 } }, { 0x000106a1, 1, { 0x000106a1 } }, { 0x000106a2, 1, { 0x000106a2 } }, { 0x000106a3, 1, { 0x000106a3 } }, { 0x000106a4, 1, { 0x000106a4 } }, { 0x000106a5, 1, { 0x000106a5 } }, { 0x000106a6, 1, { 0x000106a6 } }, { 0x000106a7, 1, { 0x000106a7 } }, { 0x000106a8, 1, { 0x000106a8 } }, { 0x000106a9, 1, { 0x000106a9 } }, { 0x000106aa, 1, { 0x000106aa } }, { 0x000106ab, 1, { 0x000106ab } }, { 0x000106ac, 1, { 0x000106ac } }, { 0x000106ad, 1, { 0x000106ad } }, { 0x000106ae, 1, { 0x000106ae } }, { 0x000106af, 1, { 0x000106af } }, { 0x000106b0, 1, { 0x000106b0 } }, { 0x000106b1, 1, { 0x000106b1 } }, { 0x000106b2, 1, { 0x000106b2 } }, { 0x000106b3, 1, { 0x000106b3 } }, { 0x000106b4, 1, { 0x000106b4 } }, { 0x000106b5, 1, { 0x000106b5 } }, { 0x000106b6, 1, { 0x000106b6 } }, { 0x000106b7, 1, { 0x000106b7 } }, { 0x000106b8, 1, { 0x000106b8 } }, { 0x000106b9, 1, { 0x000106b9 } }, { 0x000106ba, 1, { 0x000106ba } }, { 0x000106bb, 1, { 0x000106bb } }, { 0x000106bc, 1, { 0x000106bc } }, { 0x000106bd, 1, { 0x000106bd } }, { 0x000106be, 1, { 0x000106be } }, { 0x000106bf, 1, { 0x000106bf } }, { 0x000106c0, 1, { 0x000106c0 } }, { 0x000106c1, 1, { 0x000106c1 } }, { 0x000106c2, 1, { 0x000106c2 } }, { 0x000106c3, 1, { 0x000106c3 } }, { 0x000106c4, 1, { 0x000106c4 } }, { 0x000106c5, 1, { 0x000106c5 } }, { 0x000106c6, 1, { 0x000106c6 } }, { 0x000106c7, 1, { 0x000106c7 } }, { 0x000106c8, 1, { 0x000106c8 } }, { 0x000106c9, 1, { 0x000106c9 } }, { 0x000106ca, 1, { 0x000106ca } }, { 0x000106cb, 1, { 0x000106cb } }, { 0x000106cc, 1, { 0x000106cc } }, { 0x000106cd, 1, { 0x000106cd } }, { 0x000106ce, 1, { 0x000106ce } }, { 0x000106cf, 1, { 0x000106cf } }, { 0x000106d0, 1, { 0x000106d0 } }, { 0x000106d1, 1, { 0x000106d1 } }, { 0x000106d2, 1, { 0x000106d2 } }, { 0x000106d3, 1, { 0x000106d3 } }, { 0x000106d4, 1, { 0x000106d4 } }, { 0x000106d5, 1, { 0x000106d5 } }, { 0x000106d6, 1, { 0x000106d6 } }, { 0x000106d7, 1, { 0x000106d7 } }, { 0x000106d8, 1, { 0x000106d8 } }, { 0x000106d9, 1, { 0x000106d9 } }, { 0x000106da, 1, { 0x000106da } }, { 0x000106db, 1, { 0x000106db } }, { 0x000106dc, 1, { 0x000106dc } }, { 0x000106dd, 1, { 0x000106dd } }, { 0x000106de, 1, { 0x000106de } }, { 0x000106df, 1, { 0x000106df } }, { 0x000106e0, 1, { 0x000106e0 } }, { 0x000106e1, 1, { 0x000106e1 } }, { 0x000106e2, 1, { 0x000106e2 } }, { 0x000106e3, 1, { 0x000106e3 } }, { 0x000106e4, 1, { 0x000106e4 } }, { 0x000106e5, 1, { 0x000106e5 } }, { 0x000106e6, 1, { 0x000106e6 } }, { 0x000106e7, 1, { 0x000106e7 } }, { 0x000106e8, 1, { 0x000106e8 } }, { 0x000106e9, 1, { 0x000106e9 } }, { 0x000106ea, 1, { 0x000106ea } }, { 0x000106eb, 1, { 0x000106eb } }, { 0x000106ec, 1, { 0x000106ec } }, { 0x000106ed, 1, { 0x000106ed } }, { 0x000106ee, 1, { 0x000106ee } }, { 0x000106ef, 1, { 0x000106ef } }, { 0x000106f0, 1, { 0x000106f0 } }, { 0x000106f1, 1, { 0x000106f1 } }, { 0x000106f2, 1, { 0x000106f2 } }, { 0x000106f3, 1, { 0x000106f3 } }, { 0x000106f4, 1, { 0x000106f4 } }, { 0x000106f5, 1, { 0x000106f5 } }, { 0x000106f6, 1, { 0x000106f6 } }, { 0x000106f7, 1, { 0x000106f7 } }, { 0x000106f8, 1, { 0x000106f8 } }, { 0x000106f9, 1, { 0x000106f9 } }, { 0x000106fa, 1, { 0x000106fa } }, { 0x000106fb, 1, { 0x000106fb } }, { 0x000106fc, 1, { 0x000106fc } }, { 0x000106fd, 1, { 0x000106fd } }, { 0x000106fe, 1, { 0x000106fe } }, { 0x000106ff, 1, { 0x000106ff } }, { 0x00010700, 1, { 0x00010700 } }, { 0x00010701, 1, { 0x00010701 } }, { 0x00010702, 1, { 0x00010702 } }, { 0x00010703, 1, { 0x00010703 } }, { 0x00010704, 1, { 0x00010704 } }, { 0x00010705, 1, { 0x00010705 } }, { 0x00010706, 1, { 0x00010706 } }, { 0x00010707, 1, { 0x00010707 } }, { 0x00010708, 1, { 0x00010708 } }, { 0x00010709, 1, { 0x00010709 } }, { 0x0001070a, 1, { 0x0001070a } }, { 0x0001070b, 1, { 0x0001070b } }, { 0x0001070c, 1, { 0x0001070c } }, { 0x0001070d, 1, { 0x0001070d } }, { 0x0001070e, 1, { 0x0001070e } }, { 0x0001070f, 1, { 0x0001070f } }, { 0x00010710, 1, { 0x00010710 } }, { 0x00010711, 1, { 0x00010711 } }, { 0x00010712, 1, { 0x00010712 } }, { 0x00010713, 1, { 0x00010713 } }, { 0x00010714, 1, { 0x00010714 } }, { 0x00010715, 1, { 0x00010715 } }, { 0x00010716, 1, { 0x00010716 } }, { 0x00010717, 1, { 0x00010717 } }, { 0x00010718, 1, { 0x00010718 } }, { 0x00010719, 1, { 0x00010719 } }, { 0x0001071a, 1, { 0x0001071a } }, { 0x0001071b, 1, { 0x0001071b } }, { 0x0001071c, 1, { 0x0001071c } }, { 0x0001071d, 1, { 0x0001071d } }, { 0x0001071e, 1, { 0x0001071e } }, { 0x0001071f, 1, { 0x0001071f } }, { 0x00010720, 1, { 0x00010720 } }, { 0x00010721, 1, { 0x00010721 } }, { 0x00010722, 1, { 0x00010722 } }, { 0x00010723, 1, { 0x00010723 } }, { 0x00010724, 1, { 0x00010724 } }, { 0x00010725, 1, { 0x00010725 } }, { 0x00010726, 1, { 0x00010726 } }, { 0x00010727, 1, { 0x00010727 } }, { 0x00010728, 1, { 0x00010728 } }, { 0x00010729, 1, { 0x00010729 } }, { 0x0001072a, 1, { 0x0001072a } }, { 0x0001072b, 1, { 0x0001072b } }, { 0x0001072c, 1, { 0x0001072c } }, { 0x0001072d, 1, { 0x0001072d } }, { 0x0001072e, 1, { 0x0001072e } }, { 0x0001072f, 1, { 0x0001072f } }, { 0x00010730, 1, { 0x00010730 } }, { 0x00010731, 1, { 0x00010731 } }, { 0x00010732, 1, { 0x00010732 } }, { 0x00010733, 1, { 0x00010733 } }, { 0x00010734, 1, { 0x00010734 } }, { 0x00010735, 1, { 0x00010735 } }, { 0x00010736, 1, { 0x00010736 } }, { 0x00010740, 1, { 0x00010740 } }, { 0x00010741, 1, { 0x00010741 } }, { 0x00010742, 1, { 0x00010742 } }, { 0x00010743, 1, { 0x00010743 } }, { 0x00010744, 1, { 0x00010744 } }, { 0x00010745, 1, { 0x00010745 } }, { 0x00010746, 1, { 0x00010746 } }, { 0x00010747, 1, { 0x00010747 } }, { 0x00010748, 1, { 0x00010748 } }, { 0x00010749, 1, { 0x00010749 } }, { 0x0001074a, 1, { 0x0001074a } }, { 0x0001074b, 1, { 0x0001074b } }, { 0x0001074c, 1, { 0x0001074c } }, { 0x0001074d, 1, { 0x0001074d } }, { 0x0001074e, 1, { 0x0001074e } }, { 0x0001074f, 1, { 0x0001074f } }, { 0x00010750, 1, { 0x00010750 } }, { 0x00010751, 1, { 0x00010751 } }, { 0x00010752, 1, { 0x00010752 } }, { 0x00010753, 1, { 0x00010753 } }, { 0x00010754, 1, { 0x00010754 } }, { 0x00010755, 1, { 0x00010755 } }, { 0x00010760, 1, { 0x00010760 } }, { 0x00010761, 1, { 0x00010761 } }, { 0x00010762, 1, { 0x00010762 } }, { 0x00010763, 1, { 0x00010763 } }, { 0x00010764, 1, { 0x00010764 } }, { 0x00010765, 1, { 0x00010765 } }, { 0x00010766, 1, { 0x00010766 } }, { 0x00010767, 1, { 0x00010767 } }, { 0x00010800, 1, { 0x00010800 } }, { 0x00010801, 1, { 0x00010801 } }, { 0x00010802, 1, { 0x00010802 } }, { 0x00010803, 1, { 0x00010803 } }, { 0x00010804, 1, { 0x00010804 } }, { 0x00010805, 1, { 0x00010805 } }, { 0x00010808, 1, { 0x00010808 } }, { 0x0001080a, 1, { 0x0001080a } }, { 0x0001080b, 1, { 0x0001080b } }, { 0x0001080c, 1, { 0x0001080c } }, { 0x0001080d, 1, { 0x0001080d } }, { 0x0001080e, 1, { 0x0001080e } }, { 0x0001080f, 1, { 0x0001080f } }, { 0x00010810, 1, { 0x00010810 } }, { 0x00010811, 1, { 0x00010811 } }, { 0x00010812, 1, { 0x00010812 } }, { 0x00010813, 1, { 0x00010813 } }, { 0x00010814, 1, { 0x00010814 } }, { 0x00010815, 1, { 0x00010815 } }, { 0x00010816, 1, { 0x00010816 } }, { 0x00010817, 1, { 0x00010817 } }, { 0x00010818, 1, { 0x00010818 } }, { 0x00010819, 1, { 0x00010819 } }, { 0x0001081a, 1, { 0x0001081a } }, { 0x0001081b, 1, { 0x0001081b } }, { 0x0001081c, 1, { 0x0001081c } }, { 0x0001081d, 1, { 0x0001081d } }, { 0x0001081e, 1, { 0x0001081e } }, { 0x0001081f, 1, { 0x0001081f } }, { 0x00010820, 1, { 0x00010820 } }, { 0x00010821, 1, { 0x00010821 } }, { 0x00010822, 1, { 0x00010822 } }, { 0x00010823, 1, { 0x00010823 } }, { 0x00010824, 1, { 0x00010824 } }, { 0x00010825, 1, { 0x00010825 } }, { 0x00010826, 1, { 0x00010826 } }, { 0x00010827, 1, { 0x00010827 } }, { 0x00010828, 1, { 0x00010828 } }, { 0x00010829, 1, { 0x00010829 } }, { 0x0001082a, 1, { 0x0001082a } }, { 0x0001082b, 1, { 0x0001082b } }, { 0x0001082c, 1, { 0x0001082c } }, { 0x0001082d, 1, { 0x0001082d } }, { 0x0001082e, 1, { 0x0001082e } }, { 0x0001082f, 1, { 0x0001082f } }, { 0x00010830, 1, { 0x00010830 } }, { 0x00010831, 1, { 0x00010831 } }, { 0x00010832, 1, { 0x00010832 } }, { 0x00010833, 1, { 0x00010833 } }, { 0x00010834, 1, { 0x00010834 } }, { 0x00010835, 1, { 0x00010835 } }, { 0x00010837, 1, { 0x00010837 } }, { 0x00010838, 1, { 0x00010838 } }, { 0x0001083c, 1, { 0x0001083c } }, { 0x0001083f, 1, { 0x0001083f } }, { 0x00010840, 1, { 0x00010840 } }, { 0x00010841, 1, { 0x00010841 } }, { 0x00010842, 1, { 0x00010842 } }, { 0x00010843, 1, { 0x00010843 } }, { 0x00010844, 1, { 0x00010844 } }, { 0x00010845, 1, { 0x00010845 } }, { 0x00010846, 1, { 0x00010846 } }, { 0x00010847, 1, { 0x00010847 } }, { 0x00010848, 1, { 0x00010848 } }, { 0x00010849, 1, { 0x00010849 } }, { 0x0001084a, 1, { 0x0001084a } }, { 0x0001084b, 1, { 0x0001084b } }, { 0x0001084c, 1, { 0x0001084c } }, { 0x0001084d, 1, { 0x0001084d } }, { 0x0001084e, 1, { 0x0001084e } }, { 0x0001084f, 1, { 0x0001084f } }, { 0x00010850, 1, { 0x00010850 } }, { 0x00010851, 1, { 0x00010851 } }, { 0x00010852, 1, { 0x00010852 } }, { 0x00010853, 1, { 0x00010853 } }, { 0x00010854, 1, { 0x00010854 } }, { 0x00010855, 1, { 0x00010855 } }, { 0x00010857, 1, { 0x00010857 } }, { 0x00010858, 1, { 0x00010858 } }, { 0x00010859, 1, { 0x00010859 } }, { 0x0001085a, 1, { 0x0001085a } }, { 0x0001085b, 1, { 0x0001085b } }, { 0x0001085c, 1, { 0x0001085c } }, { 0x0001085d, 1, { 0x0001085d } }, { 0x0001085e, 1, { 0x0001085e } }, { 0x0001085f, 1, { 0x0001085f } }, { 0x00010860, 1, { 0x00010860 } }, { 0x00010861, 1, { 0x00010861 } }, { 0x00010862, 1, { 0x00010862 } }, { 0x00010863, 1, { 0x00010863 } }, { 0x00010864, 1, { 0x00010864 } }, { 0x00010865, 1, { 0x00010865 } }, { 0x00010866, 1, { 0x00010866 } }, { 0x00010867, 1, { 0x00010867 } }, { 0x00010868, 1, { 0x00010868 } }, { 0x00010869, 1, { 0x00010869 } }, { 0x0001086a, 1, { 0x0001086a } }, { 0x0001086b, 1, { 0x0001086b } }, { 0x0001086c, 1, { 0x0001086c } }, { 0x0001086d, 1, { 0x0001086d } }, { 0x0001086e, 1, { 0x0001086e } }, { 0x0001086f, 1, { 0x0001086f } }, { 0x00010870, 1, { 0x00010870 } }, { 0x00010871, 1, { 0x00010871 } }, { 0x00010872, 1, { 0x00010872 } }, { 0x00010873, 1, { 0x00010873 } }, { 0x00010874, 1, { 0x00010874 } }, { 0x00010875, 1, { 0x00010875 } }, { 0x00010876, 1, { 0x00010876 } }, { 0x00010877, 1, { 0x00010877 } }, { 0x00010878, 1, { 0x00010878 } }, { 0x00010879, 1, { 0x00010879 } }, { 0x0001087a, 1, { 0x0001087a } }, { 0x0001087b, 1, { 0x0001087b } }, { 0x0001087c, 1, { 0x0001087c } }, { 0x0001087d, 1, { 0x0001087d } }, { 0x0001087e, 1, { 0x0001087e } }, { 0x0001087f, 1, { 0x0001087f } }, { 0x00010880, 1, { 0x00010880 } }, { 0x00010881, 1, { 0x00010881 } }, { 0x00010882, 1, { 0x00010882 } }, { 0x00010883, 1, { 0x00010883 } }, { 0x00010884, 1, { 0x00010884 } }, { 0x00010885, 1, { 0x00010885 } }, { 0x00010886, 1, { 0x00010886 } }, { 0x00010887, 1, { 0x00010887 } }, { 0x00010888, 1, { 0x00010888 } }, { 0x00010889, 1, { 0x00010889 } }, { 0x0001088a, 1, { 0x0001088a } }, { 0x0001088b, 1, { 0x0001088b } }, { 0x0001088c, 1, { 0x0001088c } }, { 0x0001088d, 1, { 0x0001088d } }, { 0x0001088e, 1, { 0x0001088e } }, { 0x0001088f, 1, { 0x0001088f } }, { 0x00010890, 1, { 0x00010890 } }, { 0x00010891, 1, { 0x00010891 } }, { 0x00010892, 1, { 0x00010892 } }, { 0x00010893, 1, { 0x00010893 } }, { 0x00010894, 1, { 0x00010894 } }, { 0x00010895, 1, { 0x00010895 } }, { 0x00010896, 1, { 0x00010896 } }, { 0x00010897, 1, { 0x00010897 } }, { 0x00010898, 1, { 0x00010898 } }, { 0x00010899, 1, { 0x00010899 } }, { 0x0001089a, 1, { 0x0001089a } }, { 0x0001089b, 1, { 0x0001089b } }, { 0x0001089c, 1, { 0x0001089c } }, { 0x0001089d, 1, { 0x0001089d } }, { 0x0001089e, 1, { 0x0001089e } }, { 0x000108a7, 1, { 0x000108a7 } }, { 0x000108a8, 1, { 0x000108a8 } }, { 0x000108a9, 1, { 0x000108a9 } }, { 0x000108aa, 1, { 0x000108aa } }, { 0x000108ab, 1, { 0x000108ab } }, { 0x000108ac, 1, { 0x000108ac } }, { 0x000108ad, 1, { 0x000108ad } }, { 0x000108ae, 1, { 0x000108ae } }, { 0x000108af, 1, { 0x000108af } }, { 0x000108e0, 1, { 0x000108e0 } }, { 0x000108e1, 1, { 0x000108e1 } }, { 0x000108e2, 1, { 0x000108e2 } }, { 0x000108e3, 1, { 0x000108e3 } }, { 0x000108e4, 1, { 0x000108e4 } }, { 0x000108e5, 1, { 0x000108e5 } }, { 0x000108e6, 1, { 0x000108e6 } }, { 0x000108e7, 1, { 0x000108e7 } }, { 0x000108e8, 1, { 0x000108e8 } }, { 0x000108e9, 1, { 0x000108e9 } }, { 0x000108ea, 1, { 0x000108ea } }, { 0x000108eb, 1, { 0x000108eb } }, { 0x000108ec, 1, { 0x000108ec } }, { 0x000108ed, 1, { 0x000108ed } }, { 0x000108ee, 1, { 0x000108ee } }, { 0x000108ef, 1, { 0x000108ef } }, { 0x000108f0, 1, { 0x000108f0 } }, { 0x000108f1, 1, { 0x000108f1 } }, { 0x000108f2, 1, { 0x000108f2 } }, { 0x000108f4, 1, { 0x000108f4 } }, { 0x000108f5, 1, { 0x000108f5 } }, { 0x000108fb, 1, { 0x000108fb } }, { 0x000108fc, 1, { 0x000108fc } }, { 0x000108fd, 1, { 0x000108fd } }, { 0x000108fe, 1, { 0x000108fe } }, { 0x000108ff, 1, { 0x000108ff } }, { 0x00010900, 1, { 0x00010900 } }, { 0x00010901, 1, { 0x00010901 } }, { 0x00010902, 1, { 0x00010902 } }, { 0x00010903, 1, { 0x00010903 } }, { 0x00010904, 1, { 0x00010904 } }, { 0x00010905, 1, { 0x00010905 } }, { 0x00010906, 1, { 0x00010906 } }, { 0x00010907, 1, { 0x00010907 } }, { 0x00010908, 1, { 0x00010908 } }, { 0x00010909, 1, { 0x00010909 } }, { 0x0001090a, 1, { 0x0001090a } }, { 0x0001090b, 1, { 0x0001090b } }, { 0x0001090c, 1, { 0x0001090c } }, { 0x0001090d, 1, { 0x0001090d } }, { 0x0001090e, 1, { 0x0001090e } }, { 0x0001090f, 1, { 0x0001090f } }, { 0x00010910, 1, { 0x00010910 } }, { 0x00010911, 1, { 0x00010911 } }, { 0x00010912, 1, { 0x00010912 } }, { 0x00010913, 1, { 0x00010913 } }, { 0x00010914, 1, { 0x00010914 } }, { 0x00010915, 1, { 0x00010915 } }, { 0x00010916, 1, { 0x00010916 } }, { 0x00010917, 1, { 0x00010917 } }, { 0x00010918, 1, { 0x00010918 } }, { 0x00010919, 1, { 0x00010919 } }, { 0x0001091a, 1, { 0x0001091a } }, { 0x0001091b, 1, { 0x0001091b } }, { 0x0001091f, 1, { 0x0001091f } }, { 0x00010920, 1, { 0x00010920 } }, { 0x00010921, 1, { 0x00010921 } }, { 0x00010922, 1, { 0x00010922 } }, { 0x00010923, 1, { 0x00010923 } }, { 0x00010924, 1, { 0x00010924 } }, { 0x00010925, 1, { 0x00010925 } }, { 0x00010926, 1, { 0x00010926 } }, { 0x00010927, 1, { 0x00010927 } }, { 0x00010928, 1, { 0x00010928 } }, { 0x00010929, 1, { 0x00010929 } }, { 0x0001092a, 1, { 0x0001092a } }, { 0x0001092b, 1, { 0x0001092b } }, { 0x0001092c, 1, { 0x0001092c } }, { 0x0001092d, 1, { 0x0001092d } }, { 0x0001092e, 1, { 0x0001092e } }, { 0x0001092f, 1, { 0x0001092f } }, { 0x00010930, 1, { 0x00010930 } }, { 0x00010931, 1, { 0x00010931 } }, { 0x00010932, 1, { 0x00010932 } }, { 0x00010933, 1, { 0x00010933 } }, { 0x00010934, 1, { 0x00010934 } }, { 0x00010935, 1, { 0x00010935 } }, { 0x00010936, 1, { 0x00010936 } }, { 0x00010937, 1, { 0x00010937 } }, { 0x00010938, 1, { 0x00010938 } }, { 0x00010939, 1, { 0x00010939 } }, { 0x0001093f, 1, { 0x0001093f } }, { 0x00010980, 1, { 0x00010980 } }, { 0x00010981, 1, { 0x00010981 } }, { 0x00010982, 1, { 0x00010982 } }, { 0x00010983, 1, { 0x00010983 } }, { 0x00010984, 1, { 0x00010984 } }, { 0x00010985, 1, { 0x00010985 } }, { 0x00010986, 1, { 0x00010986 } }, { 0x00010987, 1, { 0x00010987 } }, { 0x00010988, 1, { 0x00010988 } }, { 0x00010989, 1, { 0x00010989 } }, { 0x0001098a, 1, { 0x0001098a } }, { 0x0001098b, 1, { 0x0001098b } }, { 0x0001098c, 1, { 0x0001098c } }, { 0x0001098d, 1, { 0x0001098d } }, { 0x0001098e, 1, { 0x0001098e } }, { 0x0001098f, 1, { 0x0001098f } }, { 0x00010990, 1, { 0x00010990 } }, { 0x00010991, 1, { 0x00010991 } }, { 0x00010992, 1, { 0x00010992 } }, { 0x00010993, 1, { 0x00010993 } }, { 0x00010994, 1, { 0x00010994 } }, { 0x00010995, 1, { 0x00010995 } }, { 0x00010996, 1, { 0x00010996 } }, { 0x00010997, 1, { 0x00010997 } }, { 0x00010998, 1, { 0x00010998 } }, { 0x00010999, 1, { 0x00010999 } }, { 0x0001099a, 1, { 0x0001099a } }, { 0x0001099b, 1, { 0x0001099b } }, { 0x0001099c, 1, { 0x0001099c } }, { 0x0001099d, 1, { 0x0001099d } }, { 0x0001099e, 1, { 0x0001099e } }, { 0x0001099f, 1, { 0x0001099f } }, { 0x000109a0, 1, { 0x000109a0 } }, { 0x000109a1, 1, { 0x000109a1 } }, { 0x000109a2, 1, { 0x000109a2 } }, { 0x000109a3, 1, { 0x000109a3 } }, { 0x000109a4, 1, { 0x000109a4 } }, { 0x000109a5, 1, { 0x000109a5 } }, { 0x000109a6, 1, { 0x000109a6 } }, { 0x000109a7, 1, { 0x000109a7 } }, { 0x000109a8, 1, { 0x000109a8 } }, { 0x000109a9, 1, { 0x000109a9 } }, { 0x000109aa, 1, { 0x000109aa } }, { 0x000109ab, 1, { 0x000109ab } }, { 0x000109ac, 1, { 0x000109ac } }, { 0x000109ad, 1, { 0x000109ad } }, { 0x000109ae, 1, { 0x000109ae } }, { 0x000109af, 1, { 0x000109af } }, { 0x000109b0, 1, { 0x000109b0 } }, { 0x000109b1, 1, { 0x000109b1 } }, { 0x000109b2, 1, { 0x000109b2 } }, { 0x000109b3, 1, { 0x000109b3 } }, { 0x000109b4, 1, { 0x000109b4 } }, { 0x000109b5, 1, { 0x000109b5 } }, { 0x000109b6, 1, { 0x000109b6 } }, { 0x000109b7, 1, { 0x000109b7 } }, { 0x000109bc, 1, { 0x000109bc } }, { 0x000109bd, 1, { 0x000109bd } }, { 0x000109be, 1, { 0x000109be } }, { 0x000109bf, 1, { 0x000109bf } }, { 0x000109c0, 1, { 0x000109c0 } }, { 0x000109c1, 1, { 0x000109c1 } }, { 0x000109c2, 1, { 0x000109c2 } }, { 0x000109c3, 1, { 0x000109c3 } }, { 0x000109c4, 1, { 0x000109c4 } }, { 0x000109c5, 1, { 0x000109c5 } }, { 0x000109c6, 1, { 0x000109c6 } }, { 0x000109c7, 1, { 0x000109c7 } }, { 0x000109c8, 1, { 0x000109c8 } }, { 0x000109c9, 1, { 0x000109c9 } }, { 0x000109ca, 1, { 0x000109ca } }, { 0x000109cb, 1, { 0x000109cb } }, { 0x000109cc, 1, { 0x000109cc } }, { 0x000109cd, 1, { 0x000109cd } }, { 0x000109ce, 1, { 0x000109ce } }, { 0x000109cf, 1, { 0x000109cf } }, { 0x000109d2, 1, { 0x000109d2 } }, { 0x000109d3, 1, { 0x000109d3 } }, { 0x000109d4, 1, { 0x000109d4 } }, { 0x000109d5, 1, { 0x000109d5 } }, { 0x000109d6, 1, { 0x000109d6 } }, { 0x000109d7, 1, { 0x000109d7 } }, { 0x000109d8, 1, { 0x000109d8 } }, { 0x000109d9, 1, { 0x000109d9 } }, { 0x000109da, 1, { 0x000109da } }, { 0x000109db, 1, { 0x000109db } }, { 0x000109dc, 1, { 0x000109dc } }, { 0x000109dd, 1, { 0x000109dd } }, { 0x000109de, 1, { 0x000109de } }, { 0x000109df, 1, { 0x000109df } }, { 0x000109e0, 1, { 0x000109e0 } }, { 0x000109e1, 1, { 0x000109e1 } }, { 0x000109e2, 1, { 0x000109e2 } }, { 0x000109e3, 1, { 0x000109e3 } }, { 0x000109e4, 1, { 0x000109e4 } }, { 0x000109e5, 1, { 0x000109e5 } }, { 0x000109e6, 1, { 0x000109e6 } }, { 0x000109e7, 1, { 0x000109e7 } }, { 0x000109e8, 1, { 0x000109e8 } }, { 0x000109e9, 1, { 0x000109e9 } }, { 0x000109ea, 1, { 0x000109ea } }, { 0x000109eb, 1, { 0x000109eb } }, { 0x000109ec, 1, { 0x000109ec } }, { 0x000109ed, 1, { 0x000109ed } }, { 0x000109ee, 1, { 0x000109ee } }, { 0x000109ef, 1, { 0x000109ef } }, { 0x000109f0, 1, { 0x000109f0 } }, { 0x000109f1, 1, { 0x000109f1 } }, { 0x000109f2, 1, { 0x000109f2 } }, { 0x000109f3, 1, { 0x000109f3 } }, { 0x000109f4, 1, { 0x000109f4 } }, { 0x000109f5, 1, { 0x000109f5 } }, { 0x000109f6, 1, { 0x000109f6 } }, { 0x000109f7, 1, { 0x000109f7 } }, { 0x000109f8, 1, { 0x000109f8 } }, { 0x000109f9, 1, { 0x000109f9 } }, { 0x000109fa, 1, { 0x000109fa } }, { 0x000109fb, 1, { 0x000109fb } }, { 0x000109fc, 1, { 0x000109fc } }, { 0x000109fd, 1, { 0x000109fd } }, { 0x000109fe, 1, { 0x000109fe } }, { 0x000109ff, 1, { 0x000109ff } }, { 0x00010a00, 1, { 0x00010a00 } }, { 0x00010a01, 1, { 0x00010a01 } }, { 0x00010a02, 1, { 0x00010a02 } }, { 0x00010a03, 1, { 0x00010a03 } }, { 0x00010a05, 1, { 0x00010a05 } }, { 0x00010a06, 1, { 0x00010a06 } }, { 0x00010a0c, 1, { 0x00010a0c } }, { 0x00010a0d, 1, { 0x00010a0d } }, { 0x00010a0e, 1, { 0x00010a0e } }, { 0x00010a0f, 1, { 0x00010a0f } }, { 0x00010a10, 1, { 0x00010a10 } }, { 0x00010a11, 1, { 0x00010a11 } }, { 0x00010a12, 1, { 0x00010a12 } }, { 0x00010a13, 1, { 0x00010a13 } }, { 0x00010a15, 1, { 0x00010a15 } }, { 0x00010a16, 1, { 0x00010a16 } }, { 0x00010a17, 1, { 0x00010a17 } }, { 0x00010a19, 1, { 0x00010a19 } }, { 0x00010a1a, 1, { 0x00010a1a } }, { 0x00010a1b, 1, { 0x00010a1b } }, { 0x00010a1c, 1, { 0x00010a1c } }, { 0x00010a1d, 1, { 0x00010a1d } }, { 0x00010a1e, 1, { 0x00010a1e } }, { 0x00010a1f, 1, { 0x00010a1f } }, { 0x00010a20, 1, { 0x00010a20 } }, { 0x00010a21, 1, { 0x00010a21 } }, { 0x00010a22, 1, { 0x00010a22 } }, { 0x00010a23, 1, { 0x00010a23 } }, { 0x00010a24, 1, { 0x00010a24 } }, { 0x00010a25, 1, { 0x00010a25 } }, { 0x00010a26, 1, { 0x00010a26 } }, { 0x00010a27, 1, { 0x00010a27 } }, { 0x00010a28, 1, { 0x00010a28 } }, { 0x00010a29, 1, { 0x00010a29 } }, { 0x00010a2a, 1, { 0x00010a2a } }, { 0x00010a2b, 1, { 0x00010a2b } }, { 0x00010a2c, 1, { 0x00010a2c } }, { 0x00010a2d, 1, { 0x00010a2d } }, { 0x00010a2e, 1, { 0x00010a2e } }, { 0x00010a2f, 1, { 0x00010a2f } }, { 0x00010a30, 1, { 0x00010a30 } }, { 0x00010a31, 1, { 0x00010a31 } }, { 0x00010a32, 1, { 0x00010a32 } }, { 0x00010a33, 1, { 0x00010a33 } }, { 0x00010a38, 1, { 0x00010a38 } }, { 0x00010a39, 1, { 0x00010a39 } }, { 0x00010a3a, 1, { 0x00010a3a } }, { 0x00010a3f, 1, { 0x00010a3f } }, { 0x00010a40, 1, { 0x00010a40 } }, { 0x00010a41, 1, { 0x00010a41 } }, { 0x00010a42, 1, { 0x00010a42 } }, { 0x00010a43, 1, { 0x00010a43 } }, { 0x00010a44, 1, { 0x00010a44 } }, { 0x00010a45, 1, { 0x00010a45 } }, { 0x00010a46, 1, { 0x00010a46 } }, { 0x00010a47, 1, { 0x00010a47 } }, { 0x00010a50, 1, { 0x00010a50 } }, { 0x00010a51, 1, { 0x00010a51 } }, { 0x00010a52, 1, { 0x00010a52 } }, { 0x00010a53, 1, { 0x00010a53 } }, { 0x00010a54, 1, { 0x00010a54 } }, { 0x00010a55, 1, { 0x00010a55 } }, { 0x00010a56, 1, { 0x00010a56 } }, { 0x00010a57, 1, { 0x00010a57 } }, { 0x00010a58, 1, { 0x00010a58 } }, { 0x00010a60, 1, { 0x00010a60 } }, { 0x00010a61, 1, { 0x00010a61 } }, { 0x00010a62, 1, { 0x00010a62 } }, { 0x00010a63, 1, { 0x00010a63 } }, { 0x00010a64, 1, { 0x00010a64 } }, { 0x00010a65, 1, { 0x00010a65 } }, { 0x00010a66, 1, { 0x00010a66 } }, { 0x00010a67, 1, { 0x00010a67 } }, { 0x00010a68, 1, { 0x00010a68 } }, { 0x00010a69, 1, { 0x00010a69 } }, { 0x00010a6a, 1, { 0x00010a6a } }, { 0x00010a6b, 1, { 0x00010a6b } }, { 0x00010a6c, 1, { 0x00010a6c } }, { 0x00010a6d, 1, { 0x00010a6d } }, { 0x00010a6e, 1, { 0x00010a6e } }, { 0x00010a6f, 1, { 0x00010a6f } }, { 0x00010a70, 1, { 0x00010a70 } }, { 0x00010a71, 1, { 0x00010a71 } }, { 0x00010a72, 1, { 0x00010a72 } }, { 0x00010a73, 1, { 0x00010a73 } }, { 0x00010a74, 1, { 0x00010a74 } }, { 0x00010a75, 1, { 0x00010a75 } }, { 0x00010a76, 1, { 0x00010a76 } }, { 0x00010a77, 1, { 0x00010a77 } }, { 0x00010a78, 1, { 0x00010a78 } }, { 0x00010a79, 1, { 0x00010a79 } }, { 0x00010a7a, 1, { 0x00010a7a } }, { 0x00010a7b, 1, { 0x00010a7b } }, { 0x00010a7c, 1, { 0x00010a7c } }, { 0x00010a7d, 1, { 0x00010a7d } }, { 0x00010a7e, 1, { 0x00010a7e } }, { 0x00010a7f, 1, { 0x00010a7f } }, { 0x00010a80, 1, { 0x00010a80 } }, { 0x00010a81, 1, { 0x00010a81 } }, { 0x00010a82, 1, { 0x00010a82 } }, { 0x00010a83, 1, { 0x00010a83 } }, { 0x00010a84, 1, { 0x00010a84 } }, { 0x00010a85, 1, { 0x00010a85 } }, { 0x00010a86, 1, { 0x00010a86 } }, { 0x00010a87, 1, { 0x00010a87 } }, { 0x00010a88, 1, { 0x00010a88 } }, { 0x00010a89, 1, { 0x00010a89 } }, { 0x00010a8a, 1, { 0x00010a8a } }, { 0x00010a8b, 1, { 0x00010a8b } }, { 0x00010a8c, 1, { 0x00010a8c } }, { 0x00010a8d, 1, { 0x00010a8d } }, { 0x00010a8e, 1, { 0x00010a8e } }, { 0x00010a8f, 1, { 0x00010a8f } }, { 0x00010a90, 1, { 0x00010a90 } }, { 0x00010a91, 1, { 0x00010a91 } }, { 0x00010a92, 1, { 0x00010a92 } }, { 0x00010a93, 1, { 0x00010a93 } }, { 0x00010a94, 1, { 0x00010a94 } }, { 0x00010a95, 1, { 0x00010a95 } }, { 0x00010a96, 1, { 0x00010a96 } }, { 0x00010a97, 1, { 0x00010a97 } }, { 0x00010a98, 1, { 0x00010a98 } }, { 0x00010a99, 1, { 0x00010a99 } }, { 0x00010a9a, 1, { 0x00010a9a } }, { 0x00010a9b, 1, { 0x00010a9b } }, { 0x00010a9c, 1, { 0x00010a9c } }, { 0x00010a9d, 1, { 0x00010a9d } }, { 0x00010a9e, 1, { 0x00010a9e } }, { 0x00010a9f, 1, { 0x00010a9f } }, { 0x00010ac0, 1, { 0x00010ac0 } }, { 0x00010ac1, 1, { 0x00010ac1 } }, { 0x00010ac2, 1, { 0x00010ac2 } }, { 0x00010ac3, 1, { 0x00010ac3 } }, { 0x00010ac4, 1, { 0x00010ac4 } }, { 0x00010ac5, 1, { 0x00010ac5 } }, { 0x00010ac6, 1, { 0x00010ac6 } }, { 0x00010ac7, 1, { 0x00010ac7 } }, { 0x00010ac8, 1, { 0x00010ac8 } }, { 0x00010ac9, 1, { 0x00010ac9 } }, { 0x00010aca, 1, { 0x00010aca } }, { 0x00010acb, 1, { 0x00010acb } }, { 0x00010acc, 1, { 0x00010acc } }, { 0x00010acd, 1, { 0x00010acd } }, { 0x00010ace, 1, { 0x00010ace } }, { 0x00010acf, 1, { 0x00010acf } }, { 0x00010ad0, 1, { 0x00010ad0 } }, { 0x00010ad1, 1, { 0x00010ad1 } }, { 0x00010ad2, 1, { 0x00010ad2 } }, { 0x00010ad3, 1, { 0x00010ad3 } }, { 0x00010ad4, 1, { 0x00010ad4 } }, { 0x00010ad5, 1, { 0x00010ad5 } }, { 0x00010ad6, 1, { 0x00010ad6 } }, { 0x00010ad7, 1, { 0x00010ad7 } }, { 0x00010ad8, 1, { 0x00010ad8 } }, { 0x00010ad9, 1, { 0x00010ad9 } }, { 0x00010ada, 1, { 0x00010ada } }, { 0x00010adb, 1, { 0x00010adb } }, { 0x00010adc, 1, { 0x00010adc } }, { 0x00010add, 1, { 0x00010add } }, { 0x00010ade, 1, { 0x00010ade } }, { 0x00010adf, 1, { 0x00010adf } }, { 0x00010ae0, 1, { 0x00010ae0 } }, { 0x00010ae1, 1, { 0x00010ae1 } }, { 0x00010ae2, 1, { 0x00010ae2 } }, { 0x00010ae3, 1, { 0x00010ae3 } }, { 0x00010ae4, 1, { 0x00010ae4 } }, { 0x00010ae5, 1, { 0x00010ae5 } }, { 0x00010ae6, 1, { 0x00010ae6 } }, { 0x00010aeb, 1, { 0x00010aeb } }, { 0x00010aec, 1, { 0x00010aec } }, { 0x00010aed, 1, { 0x00010aed } }, { 0x00010aee, 1, { 0x00010aee } }, { 0x00010aef, 1, { 0x00010aef } }, { 0x00010af0, 1, { 0x00010af0 } }, { 0x00010af1, 1, { 0x00010af1 } }, { 0x00010af2, 1, { 0x00010af2 } }, { 0x00010af3, 1, { 0x00010af3 } }, { 0x00010af4, 1, { 0x00010af4 } }, { 0x00010af5, 1, { 0x00010af5 } }, { 0x00010af6, 1, { 0x00010af6 } }, { 0x00010b00, 1, { 0x00010b00 } }, { 0x00010b01, 1, { 0x00010b01 } }, { 0x00010b02, 1, { 0x00010b02 } }, { 0x00010b03, 1, { 0x00010b03 } }, { 0x00010b04, 1, { 0x00010b04 } }, { 0x00010b05, 1, { 0x00010b05 } }, { 0x00010b06, 1, { 0x00010b06 } }, { 0x00010b07, 1, { 0x00010b07 } }, { 0x00010b08, 1, { 0x00010b08 } }, { 0x00010b09, 1, { 0x00010b09 } }, { 0x00010b0a, 1, { 0x00010b0a } }, { 0x00010b0b, 1, { 0x00010b0b } }, { 0x00010b0c, 1, { 0x00010b0c } }, { 0x00010b0d, 1, { 0x00010b0d } }, { 0x00010b0e, 1, { 0x00010b0e } }, { 0x00010b0f, 1, { 0x00010b0f } }, { 0x00010b10, 1, { 0x00010b10 } }, { 0x00010b11, 1, { 0x00010b11 } }, { 0x00010b12, 1, { 0x00010b12 } }, { 0x00010b13, 1, { 0x00010b13 } }, { 0x00010b14, 1, { 0x00010b14 } }, { 0x00010b15, 1, { 0x00010b15 } }, { 0x00010b16, 1, { 0x00010b16 } }, { 0x00010b17, 1, { 0x00010b17 } }, { 0x00010b18, 1, { 0x00010b18 } }, { 0x00010b19, 1, { 0x00010b19 } }, { 0x00010b1a, 1, { 0x00010b1a } }, { 0x00010b1b, 1, { 0x00010b1b } }, { 0x00010b1c, 1, { 0x00010b1c } }, { 0x00010b1d, 1, { 0x00010b1d } }, { 0x00010b1e, 1, { 0x00010b1e } }, { 0x00010b1f, 1, { 0x00010b1f } }, { 0x00010b20, 1, { 0x00010b20 } }, { 0x00010b21, 1, { 0x00010b21 } }, { 0x00010b22, 1, { 0x00010b22 } }, { 0x00010b23, 1, { 0x00010b23 } }, { 0x00010b24, 1, { 0x00010b24 } }, { 0x00010b25, 1, { 0x00010b25 } }, { 0x00010b26, 1, { 0x00010b26 } }, { 0x00010b27, 1, { 0x00010b27 } }, { 0x00010b28, 1, { 0x00010b28 } }, { 0x00010b29, 1, { 0x00010b29 } }, { 0x00010b2a, 1, { 0x00010b2a } }, { 0x00010b2b, 1, { 0x00010b2b } }, { 0x00010b2c, 1, { 0x00010b2c } }, { 0x00010b2d, 1, { 0x00010b2d } }, { 0x00010b2e, 1, { 0x00010b2e } }, { 0x00010b2f, 1, { 0x00010b2f } }, { 0x00010b30, 1, { 0x00010b30 } }, { 0x00010b31, 1, { 0x00010b31 } }, { 0x00010b32, 1, { 0x00010b32 } }, { 0x00010b33, 1, { 0x00010b33 } }, { 0x00010b34, 1, { 0x00010b34 } }, { 0x00010b35, 1, { 0x00010b35 } }, { 0x00010b39, 1, { 0x00010b39 } }, { 0x00010b3a, 1, { 0x00010b3a } }, { 0x00010b3b, 1, { 0x00010b3b } }, { 0x00010b3c, 1, { 0x00010b3c } }, { 0x00010b3d, 1, { 0x00010b3d } }, { 0x00010b3e, 1, { 0x00010b3e } }, { 0x00010b3f, 1, { 0x00010b3f } }, { 0x00010b40, 1, { 0x00010b40 } }, { 0x00010b41, 1, { 0x00010b41 } }, { 0x00010b42, 1, { 0x00010b42 } }, { 0x00010b43, 1, { 0x00010b43 } }, { 0x00010b44, 1, { 0x00010b44 } }, { 0x00010b45, 1, { 0x00010b45 } }, { 0x00010b46, 1, { 0x00010b46 } }, { 0x00010b47, 1, { 0x00010b47 } }, { 0x00010b48, 1, { 0x00010b48 } }, { 0x00010b49, 1, { 0x00010b49 } }, { 0x00010b4a, 1, { 0x00010b4a } }, { 0x00010b4b, 1, { 0x00010b4b } }, { 0x00010b4c, 1, { 0x00010b4c } }, { 0x00010b4d, 1, { 0x00010b4d } }, { 0x00010b4e, 1, { 0x00010b4e } }, { 0x00010b4f, 1, { 0x00010b4f } }, { 0x00010b50, 1, { 0x00010b50 } }, { 0x00010b51, 1, { 0x00010b51 } }, { 0x00010b52, 1, { 0x00010b52 } }, { 0x00010b53, 1, { 0x00010b53 } }, { 0x00010b54, 1, { 0x00010b54 } }, { 0x00010b55, 1, { 0x00010b55 } }, { 0x00010b58, 1, { 0x00010b58 } }, { 0x00010b59, 1, { 0x00010b59 } }, { 0x00010b5a, 1, { 0x00010b5a } }, { 0x00010b5b, 1, { 0x00010b5b } }, { 0x00010b5c, 1, { 0x00010b5c } }, { 0x00010b5d, 1, { 0x00010b5d } }, { 0x00010b5e, 1, { 0x00010b5e } }, { 0x00010b5f, 1, { 0x00010b5f } }, { 0x00010b60, 1, { 0x00010b60 } }, { 0x00010b61, 1, { 0x00010b61 } }, { 0x00010b62, 1, { 0x00010b62 } }, { 0x00010b63, 1, { 0x00010b63 } }, { 0x00010b64, 1, { 0x00010b64 } }, { 0x00010b65, 1, { 0x00010b65 } }, { 0x00010b66, 1, { 0x00010b66 } }, { 0x00010b67, 1, { 0x00010b67 } }, { 0x00010b68, 1, { 0x00010b68 } }, { 0x00010b69, 1, { 0x00010b69 } }, { 0x00010b6a, 1, { 0x00010b6a } }, { 0x00010b6b, 1, { 0x00010b6b } }, { 0x00010b6c, 1, { 0x00010b6c } }, { 0x00010b6d, 1, { 0x00010b6d } }, { 0x00010b6e, 1, { 0x00010b6e } }, { 0x00010b6f, 1, { 0x00010b6f } }, { 0x00010b70, 1, { 0x00010b70 } }, { 0x00010b71, 1, { 0x00010b71 } }, { 0x00010b72, 1, { 0x00010b72 } }, { 0x00010b78, 1, { 0x00010b78 } }, { 0x00010b79, 1, { 0x00010b79 } }, { 0x00010b7a, 1, { 0x00010b7a } }, { 0x00010b7b, 1, { 0x00010b7b } }, { 0x00010b7c, 1, { 0x00010b7c } }, { 0x00010b7d, 1, { 0x00010b7d } }, { 0x00010b7e, 1, { 0x00010b7e } }, { 0x00010b7f, 1, { 0x00010b7f } }, { 0x00010b80, 1, { 0x00010b80 } }, { 0x00010b81, 1, { 0x00010b81 } }, { 0x00010b82, 1, { 0x00010b82 } }, { 0x00010b83, 1, { 0x00010b83 } }, { 0x00010b84, 1, { 0x00010b84 } }, { 0x00010b85, 1, { 0x00010b85 } }, { 0x00010b86, 1, { 0x00010b86 } }, { 0x00010b87, 1, { 0x00010b87 } }, { 0x00010b88, 1, { 0x00010b88 } }, { 0x00010b89, 1, { 0x00010b89 } }, { 0x00010b8a, 1, { 0x00010b8a } }, { 0x00010b8b, 1, { 0x00010b8b } }, { 0x00010b8c, 1, { 0x00010b8c } }, { 0x00010b8d, 1, { 0x00010b8d } }, { 0x00010b8e, 1, { 0x00010b8e } }, { 0x00010b8f, 1, { 0x00010b8f } }, { 0x00010b90, 1, { 0x00010b90 } }, { 0x00010b91, 1, { 0x00010b91 } }, { 0x00010b99, 1, { 0x00010b99 } }, { 0x00010b9a, 1, { 0x00010b9a } }, { 0x00010b9b, 1, { 0x00010b9b } }, { 0x00010b9c, 1, { 0x00010b9c } }, { 0x00010ba9, 1, { 0x00010ba9 } }, { 0x00010baa, 1, { 0x00010baa } }, { 0x00010bab, 1, { 0x00010bab } }, { 0x00010bac, 1, { 0x00010bac } }, { 0x00010bad, 1, { 0x00010bad } }, { 0x00010bae, 1, { 0x00010bae } }, { 0x00010baf, 1, { 0x00010baf } }, { 0x00010c00, 1, { 0x00010c00 } }, { 0x00010c01, 1, { 0x00010c01 } }, { 0x00010c02, 1, { 0x00010c02 } }, { 0x00010c03, 1, { 0x00010c03 } }, { 0x00010c04, 1, { 0x00010c04 } }, { 0x00010c05, 1, { 0x00010c05 } }, { 0x00010c06, 1, { 0x00010c06 } }, { 0x00010c07, 1, { 0x00010c07 } }, { 0x00010c08, 1, { 0x00010c08 } }, { 0x00010c09, 1, { 0x00010c09 } }, { 0x00010c0a, 1, { 0x00010c0a } }, { 0x00010c0b, 1, { 0x00010c0b } }, { 0x00010c0c, 1, { 0x00010c0c } }, { 0x00010c0d, 1, { 0x00010c0d } }, { 0x00010c0e, 1, { 0x00010c0e } }, { 0x00010c0f, 1, { 0x00010c0f } }, { 0x00010c10, 1, { 0x00010c10 } }, { 0x00010c11, 1, { 0x00010c11 } }, { 0x00010c12, 1, { 0x00010c12 } }, { 0x00010c13, 1, { 0x00010c13 } }, { 0x00010c14, 1, { 0x00010c14 } }, { 0x00010c15, 1, { 0x00010c15 } }, { 0x00010c16, 1, { 0x00010c16 } }, { 0x00010c17, 1, { 0x00010c17 } }, { 0x00010c18, 1, { 0x00010c18 } }, { 0x00010c19, 1, { 0x00010c19 } }, { 0x00010c1a, 1, { 0x00010c1a } }, { 0x00010c1b, 1, { 0x00010c1b } }, { 0x00010c1c, 1, { 0x00010c1c } }, { 0x00010c1d, 1, { 0x00010c1d } }, { 0x00010c1e, 1, { 0x00010c1e } }, { 0x00010c1f, 1, { 0x00010c1f } }, { 0x00010c20, 1, { 0x00010c20 } }, { 0x00010c21, 1, { 0x00010c21 } }, { 0x00010c22, 1, { 0x00010c22 } }, { 0x00010c23, 1, { 0x00010c23 } }, { 0x00010c24, 1, { 0x00010c24 } }, { 0x00010c25, 1, { 0x00010c25 } }, { 0x00010c26, 1, { 0x00010c26 } }, { 0x00010c27, 1, { 0x00010c27 } }, { 0x00010c28, 1, { 0x00010c28 } }, { 0x00010c29, 1, { 0x00010c29 } }, { 0x00010c2a, 1, { 0x00010c2a } }, { 0x00010c2b, 1, { 0x00010c2b } }, { 0x00010c2c, 1, { 0x00010c2c } }, { 0x00010c2d, 1, { 0x00010c2d } }, { 0x00010c2e, 1, { 0x00010c2e } }, { 0x00010c2f, 1, { 0x00010c2f } }, { 0x00010c30, 1, { 0x00010c30 } }, { 0x00010c31, 1, { 0x00010c31 } }, { 0x00010c32, 1, { 0x00010c32 } }, { 0x00010c33, 1, { 0x00010c33 } }, { 0x00010c34, 1, { 0x00010c34 } }, { 0x00010c35, 1, { 0x00010c35 } }, { 0x00010c36, 1, { 0x00010c36 } }, { 0x00010c37, 1, { 0x00010c37 } }, { 0x00010c38, 1, { 0x00010c38 } }, { 0x00010c39, 1, { 0x00010c39 } }, { 0x00010c3a, 1, { 0x00010c3a } }, { 0x00010c3b, 1, { 0x00010c3b } }, { 0x00010c3c, 1, { 0x00010c3c } }, { 0x00010c3d, 1, { 0x00010c3d } }, { 0x00010c3e, 1, { 0x00010c3e } }, { 0x00010c3f, 1, { 0x00010c3f } }, { 0x00010c40, 1, { 0x00010c40 } }, { 0x00010c41, 1, { 0x00010c41 } }, { 0x00010c42, 1, { 0x00010c42 } }, { 0x00010c43, 1, { 0x00010c43 } }, { 0x00010c44, 1, { 0x00010c44 } }, { 0x00010c45, 1, { 0x00010c45 } }, { 0x00010c46, 1, { 0x00010c46 } }, { 0x00010c47, 1, { 0x00010c47 } }, { 0x00010c48, 1, { 0x00010c48 } }, { 0x00010c80, 1, { 0x00010c80 } }, { 0x00010c81, 1, { 0x00010c81 } }, { 0x00010c82, 1, { 0x00010c82 } }, { 0x00010c83, 1, { 0x00010c83 } }, { 0x00010c84, 1, { 0x00010c84 } }, { 0x00010c85, 1, { 0x00010c85 } }, { 0x00010c86, 1, { 0x00010c86 } }, { 0x00010c87, 1, { 0x00010c87 } }, { 0x00010c88, 1, { 0x00010c88 } }, { 0x00010c89, 1, { 0x00010c89 } }, { 0x00010c8a, 1, { 0x00010c8a } }, { 0x00010c8b, 1, { 0x00010c8b } }, { 0x00010c8c, 1, { 0x00010c8c } }, { 0x00010c8d, 1, { 0x00010c8d } }, { 0x00010c8e, 1, { 0x00010c8e } }, { 0x00010c8f, 1, { 0x00010c8f } }, { 0x00010c90, 1, { 0x00010c90 } }, { 0x00010c91, 1, { 0x00010c91 } }, { 0x00010c92, 1, { 0x00010c92 } }, { 0x00010c93, 1, { 0x00010c93 } }, { 0x00010c94, 1, { 0x00010c94 } }, { 0x00010c95, 1, { 0x00010c95 } }, { 0x00010c96, 1, { 0x00010c96 } }, { 0x00010c97, 1, { 0x00010c97 } }, { 0x00010c98, 1, { 0x00010c98 } }, { 0x00010c99, 1, { 0x00010c99 } }, { 0x00010c9a, 1, { 0x00010c9a } }, { 0x00010c9b, 1, { 0x00010c9b } }, { 0x00010c9c, 1, { 0x00010c9c } }, { 0x00010c9d, 1, { 0x00010c9d } }, { 0x00010c9e, 1, { 0x00010c9e } }, { 0x00010c9f, 1, { 0x00010c9f } }, { 0x00010ca0, 1, { 0x00010ca0 } }, { 0x00010ca1, 1, { 0x00010ca1 } }, { 0x00010ca2, 1, { 0x00010ca2 } }, { 0x00010ca3, 1, { 0x00010ca3 } }, { 0x00010ca4, 1, { 0x00010ca4 } }, { 0x00010ca5, 1, { 0x00010ca5 } }, { 0x00010ca6, 1, { 0x00010ca6 } }, { 0x00010ca7, 1, { 0x00010ca7 } }, { 0x00010ca8, 1, { 0x00010ca8 } }, { 0x00010ca9, 1, { 0x00010ca9 } }, { 0x00010caa, 1, { 0x00010caa } }, { 0x00010cab, 1, { 0x00010cab } }, { 0x00010cac, 1, { 0x00010cac } }, { 0x00010cad, 1, { 0x00010cad } }, { 0x00010cae, 1, { 0x00010cae } }, { 0x00010caf, 1, { 0x00010caf } }, { 0x00010cb0, 1, { 0x00010cb0 } }, { 0x00010cb1, 1, { 0x00010cb1 } }, { 0x00010cb2, 1, { 0x00010cb2 } }, { 0x00010cc0, 1, { 0x00010cc0 } }, { 0x00010cc1, 1, { 0x00010cc1 } }, { 0x00010cc2, 1, { 0x00010cc2 } }, { 0x00010cc3, 1, { 0x00010cc3 } }, { 0x00010cc4, 1, { 0x00010cc4 } }, { 0x00010cc5, 1, { 0x00010cc5 } }, { 0x00010cc6, 1, { 0x00010cc6 } }, { 0x00010cc7, 1, { 0x00010cc7 } }, { 0x00010cc8, 1, { 0x00010cc8 } }, { 0x00010cc9, 1, { 0x00010cc9 } }, { 0x00010cca, 1, { 0x00010cca } }, { 0x00010ccb, 1, { 0x00010ccb } }, { 0x00010ccc, 1, { 0x00010ccc } }, { 0x00010ccd, 1, { 0x00010ccd } }, { 0x00010cce, 1, { 0x00010cce } }, { 0x00010ccf, 1, { 0x00010ccf } }, { 0x00010cd0, 1, { 0x00010cd0 } }, { 0x00010cd1, 1, { 0x00010cd1 } }, { 0x00010cd2, 1, { 0x00010cd2 } }, { 0x00010cd3, 1, { 0x00010cd3 } }, { 0x00010cd4, 1, { 0x00010cd4 } }, { 0x00010cd5, 1, { 0x00010cd5 } }, { 0x00010cd6, 1, { 0x00010cd6 } }, { 0x00010cd7, 1, { 0x00010cd7 } }, { 0x00010cd8, 1, { 0x00010cd8 } }, { 0x00010cd9, 1, { 0x00010cd9 } }, { 0x00010cda, 1, { 0x00010cda } }, { 0x00010cdb, 1, { 0x00010cdb } }, { 0x00010cdc, 1, { 0x00010cdc } }, { 0x00010cdd, 1, { 0x00010cdd } }, { 0x00010cde, 1, { 0x00010cde } }, { 0x00010cdf, 1, { 0x00010cdf } }, { 0x00010ce0, 1, { 0x00010ce0 } }, { 0x00010ce1, 1, { 0x00010ce1 } }, { 0x00010ce2, 1, { 0x00010ce2 } }, { 0x00010ce3, 1, { 0x00010ce3 } }, { 0x00010ce4, 1, { 0x00010ce4 } }, { 0x00010ce5, 1, { 0x00010ce5 } }, { 0x00010ce6, 1, { 0x00010ce6 } }, { 0x00010ce7, 1, { 0x00010ce7 } }, { 0x00010ce8, 1, { 0x00010ce8 } }, { 0x00010ce9, 1, { 0x00010ce9 } }, { 0x00010cea, 1, { 0x00010cea } }, { 0x00010ceb, 1, { 0x00010ceb } }, { 0x00010cec, 1, { 0x00010cec } }, { 0x00010ced, 1, { 0x00010ced } }, { 0x00010cee, 1, { 0x00010cee } }, { 0x00010cef, 1, { 0x00010cef } }, { 0x00010cf0, 1, { 0x00010cf0 } }, { 0x00010cf1, 1, { 0x00010cf1 } }, { 0x00010cf2, 1, { 0x00010cf2 } }, { 0x00010cfa, 1, { 0x00010cfa } }, { 0x00010cfb, 1, { 0x00010cfb } }, { 0x00010cfc, 1, { 0x00010cfc } }, { 0x00010cfd, 1, { 0x00010cfd } }, { 0x00010cfe, 1, { 0x00010cfe } }, { 0x00010cff, 1, { 0x00010cff } }, { 0x00010e60, 1, { 0x00010e60 } }, { 0x00010e61, 1, { 0x00010e61 } }, { 0x00010e62, 1, { 0x00010e62 } }, { 0x00010e63, 1, { 0x00010e63 } }, { 0x00010e64, 1, { 0x00010e64 } }, { 0x00010e65, 1, { 0x00010e65 } }, { 0x00010e66, 1, { 0x00010e66 } }, { 0x00010e67, 1, { 0x00010e67 } }, { 0x00010e68, 1, { 0x00010e68 } }, { 0x00010e69, 1, { 0x00010e69 } }, { 0x00010e6a, 1, { 0x00010e6a } }, { 0x00010e6b, 1, { 0x00010e6b } }, { 0x00010e6c, 1, { 0x00010e6c } }, { 0x00010e6d, 1, { 0x00010e6d } }, { 0x00010e6e, 1, { 0x00010e6e } }, { 0x00010e6f, 1, { 0x00010e6f } }, { 0x00010e70, 1, { 0x00010e70 } }, { 0x00010e71, 1, { 0x00010e71 } }, { 0x00010e72, 1, { 0x00010e72 } }, { 0x00010e73, 1, { 0x00010e73 } }, { 0x00010e74, 1, { 0x00010e74 } }, { 0x00010e75, 1, { 0x00010e75 } }, { 0x00010e76, 1, { 0x00010e76 } }, { 0x00010e77, 1, { 0x00010e77 } }, { 0x00010e78, 1, { 0x00010e78 } }, { 0x00010e79, 1, { 0x00010e79 } }, { 0x00010e7a, 1, { 0x00010e7a } }, { 0x00010e7b, 1, { 0x00010e7b } }, { 0x00010e7c, 1, { 0x00010e7c } }, { 0x00010e7d, 1, { 0x00010e7d } }, { 0x00010e7e, 1, { 0x00010e7e } }, { 0x00011000, 1, { 0x00011000 } }, { 0x00011001, 1, { 0x00011001 } }, { 0x00011002, 1, { 0x00011002 } }, { 0x00011003, 1, { 0x00011003 } }, { 0x00011004, 1, { 0x00011004 } }, { 0x00011005, 1, { 0x00011005 } }, { 0x00011006, 1, { 0x00011006 } }, { 0x00011007, 1, { 0x00011007 } }, { 0x00011008, 1, { 0x00011008 } }, { 0x00011009, 1, { 0x00011009 } }, { 0x0001100a, 1, { 0x0001100a } }, { 0x0001100b, 1, { 0x0001100b } }, { 0x0001100c, 1, { 0x0001100c } }, { 0x0001100d, 1, { 0x0001100d } }, { 0x0001100e, 1, { 0x0001100e } }, { 0x0001100f, 1, { 0x0001100f } }, { 0x00011010, 1, { 0x00011010 } }, { 0x00011011, 1, { 0x00011011 } }, { 0x00011012, 1, { 0x00011012 } }, { 0x00011013, 1, { 0x00011013 } }, { 0x00011014, 1, { 0x00011014 } }, { 0x00011015, 1, { 0x00011015 } }, { 0x00011016, 1, { 0x00011016 } }, { 0x00011017, 1, { 0x00011017 } }, { 0x00011018, 1, { 0x00011018 } }, { 0x00011019, 1, { 0x00011019 } }, { 0x0001101a, 1, { 0x0001101a } }, { 0x0001101b, 1, { 0x0001101b } }, { 0x0001101c, 1, { 0x0001101c } }, { 0x0001101d, 1, { 0x0001101d } }, { 0x0001101e, 1, { 0x0001101e } }, { 0x0001101f, 1, { 0x0001101f } }, { 0x00011020, 1, { 0x00011020 } }, { 0x00011021, 1, { 0x00011021 } }, { 0x00011022, 1, { 0x00011022 } }, { 0x00011023, 1, { 0x00011023 } }, { 0x00011024, 1, { 0x00011024 } }, { 0x00011025, 1, { 0x00011025 } }, { 0x00011026, 1, { 0x00011026 } }, { 0x00011027, 1, { 0x00011027 } }, { 0x00011028, 1, { 0x00011028 } }, { 0x00011029, 1, { 0x00011029 } }, { 0x0001102a, 1, { 0x0001102a } }, { 0x0001102b, 1, { 0x0001102b } }, { 0x0001102c, 1, { 0x0001102c } }, { 0x0001102d, 1, { 0x0001102d } }, { 0x0001102e, 1, { 0x0001102e } }, { 0x0001102f, 1, { 0x0001102f } }, { 0x00011030, 1, { 0x00011030 } }, { 0x00011031, 1, { 0x00011031 } }, { 0x00011032, 1, { 0x00011032 } }, { 0x00011033, 1, { 0x00011033 } }, { 0x00011034, 1, { 0x00011034 } }, { 0x00011035, 1, { 0x00011035 } }, { 0x00011036, 1, { 0x00011036 } }, { 0x00011037, 1, { 0x00011037 } }, { 0x00011038, 1, { 0x00011038 } }, { 0x00011039, 1, { 0x00011039 } }, { 0x0001103a, 1, { 0x0001103a } }, { 0x0001103b, 1, { 0x0001103b } }, { 0x0001103c, 1, { 0x0001103c } }, { 0x0001103d, 1, { 0x0001103d } }, { 0x0001103e, 1, { 0x0001103e } }, { 0x0001103f, 1, { 0x0001103f } }, { 0x00011040, 1, { 0x00011040 } }, { 0x00011041, 1, { 0x00011041 } }, { 0x00011042, 1, { 0x00011042 } }, { 0x00011043, 1, { 0x00011043 } }, { 0x00011044, 1, { 0x00011044 } }, { 0x00011045, 1, { 0x00011045 } }, { 0x00011046, 1, { 0x00011046 } }, { 0x00011047, 1, { 0x00011047 } }, { 0x00011048, 1, { 0x00011048 } }, { 0x00011049, 1, { 0x00011049 } }, { 0x0001104a, 1, { 0x0001104a } }, { 0x0001104b, 1, { 0x0001104b } }, { 0x0001104c, 1, { 0x0001104c } }, { 0x0001104d, 1, { 0x0001104d } }, { 0x00011052, 1, { 0x00011052 } }, { 0x00011053, 1, { 0x00011053 } }, { 0x00011054, 1, { 0x00011054 } }, { 0x00011055, 1, { 0x00011055 } }, { 0x00011056, 1, { 0x00011056 } }, { 0x00011057, 1, { 0x00011057 } }, { 0x00011058, 1, { 0x00011058 } }, { 0x00011059, 1, { 0x00011059 } }, { 0x0001105a, 1, { 0x0001105a } }, { 0x0001105b, 1, { 0x0001105b } }, { 0x0001105c, 1, { 0x0001105c } }, { 0x0001105d, 1, { 0x0001105d } }, { 0x0001105e, 1, { 0x0001105e } }, { 0x0001105f, 1, { 0x0001105f } }, { 0x00011060, 1, { 0x00011060 } }, { 0x00011061, 1, { 0x00011061 } }, { 0x00011062, 1, { 0x00011062 } }, { 0x00011063, 1, { 0x00011063 } }, { 0x00011064, 1, { 0x00011064 } }, { 0x00011065, 1, { 0x00011065 } }, { 0x00011066, 1, { 0x00011066 } }, { 0x00011067, 1, { 0x00011067 } }, { 0x00011068, 1, { 0x00011068 } }, { 0x00011069, 1, { 0x00011069 } }, { 0x0001106a, 1, { 0x0001106a } }, { 0x0001106b, 1, { 0x0001106b } }, { 0x0001106c, 1, { 0x0001106c } }, { 0x0001106d, 1, { 0x0001106d } }, { 0x0001106e, 1, { 0x0001106e } }, { 0x0001106f, 1, { 0x0001106f } }, { 0x0001107f, 1, { 0x0001107f } }, { 0x00011080, 1, { 0x00011080 } }, { 0x00011081, 1, { 0x00011081 } }, { 0x00011082, 1, { 0x00011082 } }, { 0x00011083, 1, { 0x00011083 } }, { 0x00011084, 1, { 0x00011084 } }, { 0x00011085, 1, { 0x00011085 } }, { 0x00011086, 1, { 0x00011086 } }, { 0x00011087, 1, { 0x00011087 } }, { 0x00011088, 1, { 0x00011088 } }, { 0x00011089, 1, { 0x00011089 } }, { 0x0001108a, 1, { 0x0001108a } }, { 0x0001108b, 1, { 0x0001108b } }, { 0x0001108c, 1, { 0x0001108c } }, { 0x0001108d, 1, { 0x0001108d } }, { 0x0001108e, 1, { 0x0001108e } }, { 0x0001108f, 1, { 0x0001108f } }, { 0x00011090, 1, { 0x00011090 } }, { 0x00011091, 1, { 0x00011091 } }, { 0x00011092, 1, { 0x00011092 } }, { 0x00011093, 1, { 0x00011093 } }, { 0x00011094, 1, { 0x00011094 } }, { 0x00011095, 1, { 0x00011095 } }, { 0x00011096, 1, { 0x00011096 } }, { 0x00011097, 1, { 0x00011097 } }, { 0x00011098, 1, { 0x00011098 } }, { 0x00011099, 1, { 0x00011099 } }, { 0x0001109a, 2, { 0x00011099, 0x000110ba } }, { 0x0001109b, 1, { 0x0001109b } }, { 0x0001109c, 2, { 0x0001109b, 0x000110ba } }, { 0x0001109d, 1, { 0x0001109d } }, { 0x0001109e, 1, { 0x0001109e } }, { 0x0001109f, 1, { 0x0001109f } }, { 0x000110a0, 1, { 0x000110a0 } }, { 0x000110a1, 1, { 0x000110a1 } }, { 0x000110a2, 1, { 0x000110a2 } }, { 0x000110a3, 1, { 0x000110a3 } }, { 0x000110a4, 1, { 0x000110a4 } }, { 0x000110a5, 1, { 0x000110a5 } }, { 0x000110a6, 1, { 0x000110a6 } }, { 0x000110a7, 1, { 0x000110a7 } }, { 0x000110a8, 1, { 0x000110a8 } }, { 0x000110a9, 1, { 0x000110a9 } }, { 0x000110aa, 1, { 0x000110aa } }, { 0x000110ab, 2, { 0x000110a5, 0x000110ba } }, { 0x000110ac, 1, { 0x000110ac } }, { 0x000110ad, 1, { 0x000110ad } }, { 0x000110ae, 1, { 0x000110ae } }, { 0x000110af, 1, { 0x000110af } }, { 0x000110b0, 1, { 0x000110b0 } }, { 0x000110b1, 1, { 0x000110b1 } }, { 0x000110b2, 1, { 0x000110b2 } }, { 0x000110b3, 1, { 0x000110b3 } }, { 0x000110b4, 1, { 0x000110b4 } }, { 0x000110b5, 1, { 0x000110b5 } }, { 0x000110b6, 1, { 0x000110b6 } }, { 0x000110b7, 1, { 0x000110b7 } }, { 0x000110b8, 1, { 0x000110b8 } }, { 0x000110b9, 1, { 0x000110b9 } }, { 0x000110ba, 1, { 0x000110ba } }, { 0x000110bb, 1, { 0x000110bb } }, { 0x000110bc, 1, { 0x000110bc } }, { 0x000110bd, 1, { 0x000110bd } }, { 0x000110be, 1, { 0x000110be } }, { 0x000110bf, 1, { 0x000110bf } }, { 0x000110c0, 1, { 0x000110c0 } }, { 0x000110c1, 1, { 0x000110c1 } }, { 0x000110d0, 1, { 0x000110d0 } }, { 0x000110d1, 1, { 0x000110d1 } }, { 0x000110d2, 1, { 0x000110d2 } }, { 0x000110d3, 1, { 0x000110d3 } }, { 0x000110d4, 1, { 0x000110d4 } }, { 0x000110d5, 1, { 0x000110d5 } }, { 0x000110d6, 1, { 0x000110d6 } }, { 0x000110d7, 1, { 0x000110d7 } }, { 0x000110d8, 1, { 0x000110d8 } }, { 0x000110d9, 1, { 0x000110d9 } }, { 0x000110da, 1, { 0x000110da } }, { 0x000110db, 1, { 0x000110db } }, { 0x000110dc, 1, { 0x000110dc } }, { 0x000110dd, 1, { 0x000110dd } }, { 0x000110de, 1, { 0x000110de } }, { 0x000110df, 1, { 0x000110df } }, { 0x000110e0, 1, { 0x000110e0 } }, { 0x000110e1, 1, { 0x000110e1 } }, { 0x000110e2, 1, { 0x000110e2 } }, { 0x000110e3, 1, { 0x000110e3 } }, { 0x000110e4, 1, { 0x000110e4 } }, { 0x000110e5, 1, { 0x000110e5 } }, { 0x000110e6, 1, { 0x000110e6 } }, { 0x000110e7, 1, { 0x000110e7 } }, { 0x000110e8, 1, { 0x000110e8 } }, { 0x000110f0, 1, { 0x000110f0 } }, { 0x000110f1, 1, { 0x000110f1 } }, { 0x000110f2, 1, { 0x000110f2 } }, { 0x000110f3, 1, { 0x000110f3 } }, { 0x000110f4, 1, { 0x000110f4 } }, { 0x000110f5, 1, { 0x000110f5 } }, { 0x000110f6, 1, { 0x000110f6 } }, { 0x000110f7, 1, { 0x000110f7 } }, { 0x000110f8, 1, { 0x000110f8 } }, { 0x000110f9, 1, { 0x000110f9 } }, { 0x00011100, 1, { 0x00011100 } }, { 0x00011101, 1, { 0x00011101 } }, { 0x00011102, 1, { 0x00011102 } }, { 0x00011103, 1, { 0x00011103 } }, { 0x00011104, 1, { 0x00011104 } }, { 0x00011105, 1, { 0x00011105 } }, { 0x00011106, 1, { 0x00011106 } }, { 0x00011107, 1, { 0x00011107 } }, { 0x00011108, 1, { 0x00011108 } }, { 0x00011109, 1, { 0x00011109 } }, { 0x0001110a, 1, { 0x0001110a } }, { 0x0001110b, 1, { 0x0001110b } }, { 0x0001110c, 1, { 0x0001110c } }, { 0x0001110d, 1, { 0x0001110d } }, { 0x0001110e, 1, { 0x0001110e } }, { 0x0001110f, 1, { 0x0001110f } }, { 0x00011110, 1, { 0x00011110 } }, { 0x00011111, 1, { 0x00011111 } }, { 0x00011112, 1, { 0x00011112 } }, { 0x00011113, 1, { 0x00011113 } }, { 0x00011114, 1, { 0x00011114 } }, { 0x00011115, 1, { 0x00011115 } }, { 0x00011116, 1, { 0x00011116 } }, { 0x00011117, 1, { 0x00011117 } }, { 0x00011118, 1, { 0x00011118 } }, { 0x00011119, 1, { 0x00011119 } }, { 0x0001111a, 1, { 0x0001111a } }, { 0x0001111b, 1, { 0x0001111b } }, { 0x0001111c, 1, { 0x0001111c } }, { 0x0001111d, 1, { 0x0001111d } }, { 0x0001111e, 1, { 0x0001111e } }, { 0x0001111f, 1, { 0x0001111f } }, { 0x00011120, 1, { 0x00011120 } }, { 0x00011121, 1, { 0x00011121 } }, { 0x00011122, 1, { 0x00011122 } }, { 0x00011123, 1, { 0x00011123 } }, { 0x00011124, 1, { 0x00011124 } }, { 0x00011125, 1, { 0x00011125 } }, { 0x00011126, 1, { 0x00011126 } }, { 0x00011127, 1, { 0x00011127 } }, { 0x00011128, 1, { 0x00011128 } }, { 0x00011129, 1, { 0x00011129 } }, { 0x0001112a, 1, { 0x0001112a } }, { 0x0001112b, 1, { 0x0001112b } }, { 0x0001112c, 1, { 0x0001112c } }, { 0x0001112d, 1, { 0x0001112d } }, { 0x0001112e, 2, { 0x00011131, 0x00011127 } }, { 0x0001112f, 2, { 0x00011132, 0x00011127 } }, { 0x00011130, 1, { 0x00011130 } }, { 0x00011131, 1, { 0x00011131 } }, { 0x00011132, 1, { 0x00011132 } }, { 0x00011133, 1, { 0x00011133 } }, { 0x00011134, 1, { 0x00011134 } }, { 0x00011136, 1, { 0x00011136 } }, { 0x00011137, 1, { 0x00011137 } }, { 0x00011138, 1, { 0x00011138 } }, { 0x00011139, 1, { 0x00011139 } }, { 0x0001113a, 1, { 0x0001113a } }, { 0x0001113b, 1, { 0x0001113b } }, { 0x0001113c, 1, { 0x0001113c } }, { 0x0001113d, 1, { 0x0001113d } }, { 0x0001113e, 1, { 0x0001113e } }, { 0x0001113f, 1, { 0x0001113f } }, { 0x00011140, 1, { 0x00011140 } }, { 0x00011141, 1, { 0x00011141 } }, { 0x00011142, 1, { 0x00011142 } }, { 0x00011143, 1, { 0x00011143 } }, { 0x00011150, 1, { 0x00011150 } }, { 0x00011151, 1, { 0x00011151 } }, { 0x00011152, 1, { 0x00011152 } }, { 0x00011153, 1, { 0x00011153 } }, { 0x00011154, 1, { 0x00011154 } }, { 0x00011155, 1, { 0x00011155 } }, { 0x00011156, 1, { 0x00011156 } }, { 0x00011157, 1, { 0x00011157 } }, { 0x00011158, 1, { 0x00011158 } }, { 0x00011159, 1, { 0x00011159 } }, { 0x0001115a, 1, { 0x0001115a } }, { 0x0001115b, 1, { 0x0001115b } }, { 0x0001115c, 1, { 0x0001115c } }, { 0x0001115d, 1, { 0x0001115d } }, { 0x0001115e, 1, { 0x0001115e } }, { 0x0001115f, 1, { 0x0001115f } }, { 0x00011160, 1, { 0x00011160 } }, { 0x00011161, 1, { 0x00011161 } }, { 0x00011162, 1, { 0x00011162 } }, { 0x00011163, 1, { 0x00011163 } }, { 0x00011164, 1, { 0x00011164 } }, { 0x00011165, 1, { 0x00011165 } }, { 0x00011166, 1, { 0x00011166 } }, { 0x00011167, 1, { 0x00011167 } }, { 0x00011168, 1, { 0x00011168 } }, { 0x00011169, 1, { 0x00011169 } }, { 0x0001116a, 1, { 0x0001116a } }, { 0x0001116b, 1, { 0x0001116b } }, { 0x0001116c, 1, { 0x0001116c } }, { 0x0001116d, 1, { 0x0001116d } }, { 0x0001116e, 1, { 0x0001116e } }, { 0x0001116f, 1, { 0x0001116f } }, { 0x00011170, 1, { 0x00011170 } }, { 0x00011171, 1, { 0x00011171 } }, { 0x00011172, 1, { 0x00011172 } }, { 0x00011173, 1, { 0x00011173 } }, { 0x00011174, 1, { 0x00011174 } }, { 0x00011175, 1, { 0x00011175 } }, { 0x00011176, 1, { 0x00011176 } }, { 0x00011180, 1, { 0x00011180 } }, { 0x00011181, 1, { 0x00011181 } }, { 0x00011182, 1, { 0x00011182 } }, { 0x00011183, 1, { 0x00011183 } }, { 0x00011184, 1, { 0x00011184 } }, { 0x00011185, 1, { 0x00011185 } }, { 0x00011186, 1, { 0x00011186 } }, { 0x00011187, 1, { 0x00011187 } }, { 0x00011188, 1, { 0x00011188 } }, { 0x00011189, 1, { 0x00011189 } }, { 0x0001118a, 1, { 0x0001118a } }, { 0x0001118b, 1, { 0x0001118b } }, { 0x0001118c, 1, { 0x0001118c } }, { 0x0001118d, 1, { 0x0001118d } }, { 0x0001118e, 1, { 0x0001118e } }, { 0x0001118f, 1, { 0x0001118f } }, { 0x00011190, 1, { 0x00011190 } }, { 0x00011191, 1, { 0x00011191 } }, { 0x00011192, 1, { 0x00011192 } }, { 0x00011193, 1, { 0x00011193 } }, { 0x00011194, 1, { 0x00011194 } }, { 0x00011195, 1, { 0x00011195 } }, { 0x00011196, 1, { 0x00011196 } }, { 0x00011197, 1, { 0x00011197 } }, { 0x00011198, 1, { 0x00011198 } }, { 0x00011199, 1, { 0x00011199 } }, { 0x0001119a, 1, { 0x0001119a } }, { 0x0001119b, 1, { 0x0001119b } }, { 0x0001119c, 1, { 0x0001119c } }, { 0x0001119d, 1, { 0x0001119d } }, { 0x0001119e, 1, { 0x0001119e } }, { 0x0001119f, 1, { 0x0001119f } }, { 0x000111a0, 1, { 0x000111a0 } }, { 0x000111a1, 1, { 0x000111a1 } }, { 0x000111a2, 1, { 0x000111a2 } }, { 0x000111a3, 1, { 0x000111a3 } }, { 0x000111a4, 1, { 0x000111a4 } }, { 0x000111a5, 1, { 0x000111a5 } }, { 0x000111a6, 1, { 0x000111a6 } }, { 0x000111a7, 1, { 0x000111a7 } }, { 0x000111a8, 1, { 0x000111a8 } }, { 0x000111a9, 1, { 0x000111a9 } }, { 0x000111aa, 1, { 0x000111aa } }, { 0x000111ab, 1, { 0x000111ab } }, { 0x000111ac, 1, { 0x000111ac } }, { 0x000111ad, 1, { 0x000111ad } }, { 0x000111ae, 1, { 0x000111ae } }, { 0x000111af, 1, { 0x000111af } }, { 0x000111b0, 1, { 0x000111b0 } }, { 0x000111b1, 1, { 0x000111b1 } }, { 0x000111b2, 1, { 0x000111b2 } }, { 0x000111b3, 1, { 0x000111b3 } }, { 0x000111b4, 1, { 0x000111b4 } }, { 0x000111b5, 1, { 0x000111b5 } }, { 0x000111b6, 1, { 0x000111b6 } }, { 0x000111b7, 1, { 0x000111b7 } }, { 0x000111b8, 1, { 0x000111b8 } }, { 0x000111b9, 1, { 0x000111b9 } }, { 0x000111ba, 1, { 0x000111ba } }, { 0x000111bb, 1, { 0x000111bb } }, { 0x000111bc, 1, { 0x000111bc } }, { 0x000111bd, 1, { 0x000111bd } }, { 0x000111be, 1, { 0x000111be } }, { 0x000111bf, 1, { 0x000111bf } }, { 0x000111c0, 1, { 0x000111c0 } }, { 0x000111c1, 1, { 0x000111c1 } }, { 0x000111c2, 1, { 0x000111c2 } }, { 0x000111c3, 1, { 0x000111c3 } }, { 0x000111c4, 1, { 0x000111c4 } }, { 0x000111c5, 1, { 0x000111c5 } }, { 0x000111c6, 1, { 0x000111c6 } }, { 0x000111c7, 1, { 0x000111c7 } }, { 0x000111c8, 1, { 0x000111c8 } }, { 0x000111c9, 1, { 0x000111c9 } }, { 0x000111ca, 1, { 0x000111ca } }, { 0x000111cb, 1, { 0x000111cb } }, { 0x000111cc, 1, { 0x000111cc } }, { 0x000111cd, 1, { 0x000111cd } }, { 0x000111d0, 1, { 0x000111d0 } }, { 0x000111d1, 1, { 0x000111d1 } }, { 0x000111d2, 1, { 0x000111d2 } }, { 0x000111d3, 1, { 0x000111d3 } }, { 0x000111d4, 1, { 0x000111d4 } }, { 0x000111d5, 1, { 0x000111d5 } }, { 0x000111d6, 1, { 0x000111d6 } }, { 0x000111d7, 1, { 0x000111d7 } }, { 0x000111d8, 1, { 0x000111d8 } }, { 0x000111d9, 1, { 0x000111d9 } }, { 0x000111da, 1, { 0x000111da } }, { 0x000111db, 1, { 0x000111db } }, { 0x000111dc, 1, { 0x000111dc } }, { 0x000111dd, 1, { 0x000111dd } }, { 0x000111de, 1, { 0x000111de } }, { 0x000111df, 1, { 0x000111df } }, { 0x000111e1, 1, { 0x000111e1 } }, { 0x000111e2, 1, { 0x000111e2 } }, { 0x000111e3, 1, { 0x000111e3 } }, { 0x000111e4, 1, { 0x000111e4 } }, { 0x000111e5, 1, { 0x000111e5 } }, { 0x000111e6, 1, { 0x000111e6 } }, { 0x000111e7, 1, { 0x000111e7 } }, { 0x000111e8, 1, { 0x000111e8 } }, { 0x000111e9, 1, { 0x000111e9 } }, { 0x000111ea, 1, { 0x000111ea } }, { 0x000111eb, 1, { 0x000111eb } }, { 0x000111ec, 1, { 0x000111ec } }, { 0x000111ed, 1, { 0x000111ed } }, { 0x000111ee, 1, { 0x000111ee } }, { 0x000111ef, 1, { 0x000111ef } }, { 0x000111f0, 1, { 0x000111f0 } }, { 0x000111f1, 1, { 0x000111f1 } }, { 0x000111f2, 1, { 0x000111f2 } }, { 0x000111f3, 1, { 0x000111f3 } }, { 0x000111f4, 1, { 0x000111f4 } }, { 0x00011200, 1, { 0x00011200 } }, { 0x00011201, 1, { 0x00011201 } }, { 0x00011202, 1, { 0x00011202 } }, { 0x00011203, 1, { 0x00011203 } }, { 0x00011204, 1, { 0x00011204 } }, { 0x00011205, 1, { 0x00011205 } }, { 0x00011206, 1, { 0x00011206 } }, { 0x00011207, 1, { 0x00011207 } }, { 0x00011208, 1, { 0x00011208 } }, { 0x00011209, 1, { 0x00011209 } }, { 0x0001120a, 1, { 0x0001120a } }, { 0x0001120b, 1, { 0x0001120b } }, { 0x0001120c, 1, { 0x0001120c } }, { 0x0001120d, 1, { 0x0001120d } }, { 0x0001120e, 1, { 0x0001120e } }, { 0x0001120f, 1, { 0x0001120f } }, { 0x00011210, 1, { 0x00011210 } }, { 0x00011211, 1, { 0x00011211 } }, { 0x00011213, 1, { 0x00011213 } }, { 0x00011214, 1, { 0x00011214 } }, { 0x00011215, 1, { 0x00011215 } }, { 0x00011216, 1, { 0x00011216 } }, { 0x00011217, 1, { 0x00011217 } }, { 0x00011218, 1, { 0x00011218 } }, { 0x00011219, 1, { 0x00011219 } }, { 0x0001121a, 1, { 0x0001121a } }, { 0x0001121b, 1, { 0x0001121b } }, { 0x0001121c, 1, { 0x0001121c } }, { 0x0001121d, 1, { 0x0001121d } }, { 0x0001121e, 1, { 0x0001121e } }, { 0x0001121f, 1, { 0x0001121f } }, { 0x00011220, 1, { 0x00011220 } }, { 0x00011221, 1, { 0x00011221 } }, { 0x00011222, 1, { 0x00011222 } }, { 0x00011223, 1, { 0x00011223 } }, { 0x00011224, 1, { 0x00011224 } }, { 0x00011225, 1, { 0x00011225 } }, { 0x00011226, 1, { 0x00011226 } }, { 0x00011227, 1, { 0x00011227 } }, { 0x00011228, 1, { 0x00011228 } }, { 0x00011229, 1, { 0x00011229 } }, { 0x0001122a, 1, { 0x0001122a } }, { 0x0001122b, 1, { 0x0001122b } }, { 0x0001122c, 1, { 0x0001122c } }, { 0x0001122d, 1, { 0x0001122d } }, { 0x0001122e, 1, { 0x0001122e } }, { 0x0001122f, 1, { 0x0001122f } }, { 0x00011230, 1, { 0x00011230 } }, { 0x00011231, 1, { 0x00011231 } }, { 0x00011232, 1, { 0x00011232 } }, { 0x00011233, 1, { 0x00011233 } }, { 0x00011234, 1, { 0x00011234 } }, { 0x00011235, 1, { 0x00011235 } }, { 0x00011236, 1, { 0x00011236 } }, { 0x00011237, 1, { 0x00011237 } }, { 0x00011238, 1, { 0x00011238 } }, { 0x00011239, 1, { 0x00011239 } }, { 0x0001123a, 1, { 0x0001123a } }, { 0x0001123b, 1, { 0x0001123b } }, { 0x0001123c, 1, { 0x0001123c } }, { 0x0001123d, 1, { 0x0001123d } }, { 0x0001123e, 1, { 0x0001123e } }, { 0x00011280, 1, { 0x00011280 } }, { 0x00011281, 1, { 0x00011281 } }, { 0x00011282, 1, { 0x00011282 } }, { 0x00011283, 1, { 0x00011283 } }, { 0x00011284, 1, { 0x00011284 } }, { 0x00011285, 1, { 0x00011285 } }, { 0x00011286, 1, { 0x00011286 } }, { 0x00011288, 1, { 0x00011288 } }, { 0x0001128a, 1, { 0x0001128a } }, { 0x0001128b, 1, { 0x0001128b } }, { 0x0001128c, 1, { 0x0001128c } }, { 0x0001128d, 1, { 0x0001128d } }, { 0x0001128f, 1, { 0x0001128f } }, { 0x00011290, 1, { 0x00011290 } }, { 0x00011291, 1, { 0x00011291 } }, { 0x00011292, 1, { 0x00011292 } }, { 0x00011293, 1, { 0x00011293 } }, { 0x00011294, 1, { 0x00011294 } }, { 0x00011295, 1, { 0x00011295 } }, { 0x00011296, 1, { 0x00011296 } }, { 0x00011297, 1, { 0x00011297 } }, { 0x00011298, 1, { 0x00011298 } }, { 0x00011299, 1, { 0x00011299 } }, { 0x0001129a, 1, { 0x0001129a } }, { 0x0001129b, 1, { 0x0001129b } }, { 0x0001129c, 1, { 0x0001129c } }, { 0x0001129d, 1, { 0x0001129d } }, { 0x0001129f, 1, { 0x0001129f } }, { 0x000112a0, 1, { 0x000112a0 } }, { 0x000112a1, 1, { 0x000112a1 } }, { 0x000112a2, 1, { 0x000112a2 } }, { 0x000112a3, 1, { 0x000112a3 } }, { 0x000112a4, 1, { 0x000112a4 } }, { 0x000112a5, 1, { 0x000112a5 } }, { 0x000112a6, 1, { 0x000112a6 } }, { 0x000112a7, 1, { 0x000112a7 } }, { 0x000112a8, 1, { 0x000112a8 } }, { 0x000112a9, 1, { 0x000112a9 } }, { 0x000112b0, 1, { 0x000112b0 } }, { 0x000112b1, 1, { 0x000112b1 } }, { 0x000112b2, 1, { 0x000112b2 } }, { 0x000112b3, 1, { 0x000112b3 } }, { 0x000112b4, 1, { 0x000112b4 } }, { 0x000112b5, 1, { 0x000112b5 } }, { 0x000112b6, 1, { 0x000112b6 } }, { 0x000112b7, 1, { 0x000112b7 } }, { 0x000112b8, 1, { 0x000112b8 } }, { 0x000112b9, 1, { 0x000112b9 } }, { 0x000112ba, 1, { 0x000112ba } }, { 0x000112bb, 1, { 0x000112bb } }, { 0x000112bc, 1, { 0x000112bc } }, { 0x000112bd, 1, { 0x000112bd } }, { 0x000112be, 1, { 0x000112be } }, { 0x000112bf, 1, { 0x000112bf } }, { 0x000112c0, 1, { 0x000112c0 } }, { 0x000112c1, 1, { 0x000112c1 } }, { 0x000112c2, 1, { 0x000112c2 } }, { 0x000112c3, 1, { 0x000112c3 } }, { 0x000112c4, 1, { 0x000112c4 } }, { 0x000112c5, 1, { 0x000112c5 } }, { 0x000112c6, 1, { 0x000112c6 } }, { 0x000112c7, 1, { 0x000112c7 } }, { 0x000112c8, 1, { 0x000112c8 } }, { 0x000112c9, 1, { 0x000112c9 } }, { 0x000112ca, 1, { 0x000112ca } }, { 0x000112cb, 1, { 0x000112cb } }, { 0x000112cc, 1, { 0x000112cc } }, { 0x000112cd, 1, { 0x000112cd } }, { 0x000112ce, 1, { 0x000112ce } }, { 0x000112cf, 1, { 0x000112cf } }, { 0x000112d0, 1, { 0x000112d0 } }, { 0x000112d1, 1, { 0x000112d1 } }, { 0x000112d2, 1, { 0x000112d2 } }, { 0x000112d3, 1, { 0x000112d3 } }, { 0x000112d4, 1, { 0x000112d4 } }, { 0x000112d5, 1, { 0x000112d5 } }, { 0x000112d6, 1, { 0x000112d6 } }, { 0x000112d7, 1, { 0x000112d7 } }, { 0x000112d8, 1, { 0x000112d8 } }, { 0x000112d9, 1, { 0x000112d9 } }, { 0x000112da, 1, { 0x000112da } }, { 0x000112db, 1, { 0x000112db } }, { 0x000112dc, 1, { 0x000112dc } }, { 0x000112dd, 1, { 0x000112dd } }, { 0x000112de, 1, { 0x000112de } }, { 0x000112df, 1, { 0x000112df } }, { 0x000112e0, 1, { 0x000112e0 } }, { 0x000112e1, 1, { 0x000112e1 } }, { 0x000112e2, 1, { 0x000112e2 } }, { 0x000112e3, 1, { 0x000112e3 } }, { 0x000112e4, 1, { 0x000112e4 } }, { 0x000112e5, 1, { 0x000112e5 } }, { 0x000112e6, 1, { 0x000112e6 } }, { 0x000112e7, 1, { 0x000112e7 } }, { 0x000112e8, 1, { 0x000112e8 } }, { 0x000112e9, 1, { 0x000112e9 } }, { 0x000112ea, 1, { 0x000112ea } }, { 0x000112f0, 1, { 0x000112f0 } }, { 0x000112f1, 1, { 0x000112f1 } }, { 0x000112f2, 1, { 0x000112f2 } }, { 0x000112f3, 1, { 0x000112f3 } }, { 0x000112f4, 1, { 0x000112f4 } }, { 0x000112f5, 1, { 0x000112f5 } }, { 0x000112f6, 1, { 0x000112f6 } }, { 0x000112f7, 1, { 0x000112f7 } }, { 0x000112f8, 1, { 0x000112f8 } }, { 0x000112f9, 1, { 0x000112f9 } }, { 0x00011300, 1, { 0x00011300 } }, { 0x00011301, 1, { 0x00011301 } }, { 0x00011302, 1, { 0x00011302 } }, { 0x00011303, 1, { 0x00011303 } }, { 0x00011305, 1, { 0x00011305 } }, { 0x00011306, 1, { 0x00011306 } }, { 0x00011307, 1, { 0x00011307 } }, { 0x00011308, 1, { 0x00011308 } }, { 0x00011309, 1, { 0x00011309 } }, { 0x0001130a, 1, { 0x0001130a } }, { 0x0001130b, 1, { 0x0001130b } }, { 0x0001130c, 1, { 0x0001130c } }, { 0x0001130f, 1, { 0x0001130f } }, { 0x00011310, 1, { 0x00011310 } }, { 0x00011313, 1, { 0x00011313 } }, { 0x00011314, 1, { 0x00011314 } }, { 0x00011315, 1, { 0x00011315 } }, { 0x00011316, 1, { 0x00011316 } }, { 0x00011317, 1, { 0x00011317 } }, { 0x00011318, 1, { 0x00011318 } }, { 0x00011319, 1, { 0x00011319 } }, { 0x0001131a, 1, { 0x0001131a } }, { 0x0001131b, 1, { 0x0001131b } }, { 0x0001131c, 1, { 0x0001131c } }, { 0x0001131d, 1, { 0x0001131d } }, { 0x0001131e, 1, { 0x0001131e } }, { 0x0001131f, 1, { 0x0001131f } }, { 0x00011320, 1, { 0x00011320 } }, { 0x00011321, 1, { 0x00011321 } }, { 0x00011322, 1, { 0x00011322 } }, { 0x00011323, 1, { 0x00011323 } }, { 0x00011324, 1, { 0x00011324 } }, { 0x00011325, 1, { 0x00011325 } }, { 0x00011326, 1, { 0x00011326 } }, { 0x00011327, 1, { 0x00011327 } }, { 0x00011328, 1, { 0x00011328 } }, { 0x0001132a, 1, { 0x0001132a } }, { 0x0001132b, 1, { 0x0001132b } }, { 0x0001132c, 1, { 0x0001132c } }, { 0x0001132d, 1, { 0x0001132d } }, { 0x0001132e, 1, { 0x0001132e } }, { 0x0001132f, 1, { 0x0001132f } }, { 0x00011330, 1, { 0x00011330 } }, { 0x00011332, 1, { 0x00011332 } }, { 0x00011333, 1, { 0x00011333 } }, { 0x00011335, 1, { 0x00011335 } }, { 0x00011336, 1, { 0x00011336 } }, { 0x00011337, 1, { 0x00011337 } }, { 0x00011338, 1, { 0x00011338 } }, { 0x00011339, 1, { 0x00011339 } }, { 0x0001133c, 1, { 0x0001133c } }, { 0x0001133d, 1, { 0x0001133d } }, { 0x0001133e, 1, { 0x0001133e } }, { 0x0001133f, 1, { 0x0001133f } }, { 0x00011340, 1, { 0x00011340 } }, { 0x00011341, 1, { 0x00011341 } }, { 0x00011342, 1, { 0x00011342 } }, { 0x00011343, 1, { 0x00011343 } }, { 0x00011344, 1, { 0x00011344 } }, { 0x00011347, 1, { 0x00011347 } }, { 0x00011348, 1, { 0x00011348 } }, { 0x0001134b, 2, { 0x00011347, 0x0001133e } }, { 0x0001134c, 2, { 0x00011347, 0x00011357 } }, { 0x0001134d, 1, { 0x0001134d } }, { 0x00011350, 1, { 0x00011350 } }, { 0x00011357, 1, { 0x00011357 } }, { 0x0001135d, 1, { 0x0001135d } }, { 0x0001135e, 1, { 0x0001135e } }, { 0x0001135f, 1, { 0x0001135f } }, { 0x00011360, 1, { 0x00011360 } }, { 0x00011361, 1, { 0x00011361 } }, { 0x00011362, 1, { 0x00011362 } }, { 0x00011363, 1, { 0x00011363 } }, { 0x00011366, 1, { 0x00011366 } }, { 0x00011367, 1, { 0x00011367 } }, { 0x00011368, 1, { 0x00011368 } }, { 0x00011369, 1, { 0x00011369 } }, { 0x0001136a, 1, { 0x0001136a } }, { 0x0001136b, 1, { 0x0001136b } }, { 0x0001136c, 1, { 0x0001136c } }, { 0x00011370, 1, { 0x00011370 } }, { 0x00011371, 1, { 0x00011371 } }, { 0x00011372, 1, { 0x00011372 } }, { 0x00011373, 1, { 0x00011373 } }, { 0x00011374, 1, { 0x00011374 } }, { 0x00011400, 1, { 0x00011400 } }, { 0x00011401, 1, { 0x00011401 } }, { 0x00011402, 1, { 0x00011402 } }, { 0x00011403, 1, { 0x00011403 } }, { 0x00011404, 1, { 0x00011404 } }, { 0x00011405, 1, { 0x00011405 } }, { 0x00011406, 1, { 0x00011406 } }, { 0x00011407, 1, { 0x00011407 } }, { 0x00011408, 1, { 0x00011408 } }, { 0x00011409, 1, { 0x00011409 } }, { 0x0001140a, 1, { 0x0001140a } }, { 0x0001140b, 1, { 0x0001140b } }, { 0x0001140c, 1, { 0x0001140c } }, { 0x0001140d, 1, { 0x0001140d } }, { 0x0001140e, 1, { 0x0001140e } }, { 0x0001140f, 1, { 0x0001140f } }, { 0x00011410, 1, { 0x00011410 } }, { 0x00011411, 1, { 0x00011411 } }, { 0x00011412, 1, { 0x00011412 } }, { 0x00011413, 1, { 0x00011413 } }, { 0x00011414, 1, { 0x00011414 } }, { 0x00011415, 1, { 0x00011415 } }, { 0x00011416, 1, { 0x00011416 } }, { 0x00011417, 1, { 0x00011417 } }, { 0x00011418, 1, { 0x00011418 } }, { 0x00011419, 1, { 0x00011419 } }, { 0x0001141a, 1, { 0x0001141a } }, { 0x0001141b, 1, { 0x0001141b } }, { 0x0001141c, 1, { 0x0001141c } }, { 0x0001141d, 1, { 0x0001141d } }, { 0x0001141e, 1, { 0x0001141e } }, { 0x0001141f, 1, { 0x0001141f } }, { 0x00011420, 1, { 0x00011420 } }, { 0x00011421, 1, { 0x00011421 } }, { 0x00011422, 1, { 0x00011422 } }, { 0x00011423, 1, { 0x00011423 } }, { 0x00011424, 1, { 0x00011424 } }, { 0x00011425, 1, { 0x00011425 } }, { 0x00011426, 1, { 0x00011426 } }, { 0x00011427, 1, { 0x00011427 } }, { 0x00011428, 1, { 0x00011428 } }, { 0x00011429, 1, { 0x00011429 } }, { 0x0001142a, 1, { 0x0001142a } }, { 0x0001142b, 1, { 0x0001142b } }, { 0x0001142c, 1, { 0x0001142c } }, { 0x0001142d, 1, { 0x0001142d } }, { 0x0001142e, 1, { 0x0001142e } }, { 0x0001142f, 1, { 0x0001142f } }, { 0x00011430, 1, { 0x00011430 } }, { 0x00011431, 1, { 0x00011431 } }, { 0x00011432, 1, { 0x00011432 } }, { 0x00011433, 1, { 0x00011433 } }, { 0x00011434, 1, { 0x00011434 } }, { 0x00011435, 1, { 0x00011435 } }, { 0x00011436, 1, { 0x00011436 } }, { 0x00011437, 1, { 0x00011437 } }, { 0x00011438, 1, { 0x00011438 } }, { 0x00011439, 1, { 0x00011439 } }, { 0x0001143a, 1, { 0x0001143a } }, { 0x0001143b, 1, { 0x0001143b } }, { 0x0001143c, 1, { 0x0001143c } }, { 0x0001143d, 1, { 0x0001143d } }, { 0x0001143e, 1, { 0x0001143e } }, { 0x0001143f, 1, { 0x0001143f } }, { 0x00011440, 1, { 0x00011440 } }, { 0x00011441, 1, { 0x00011441 } }, { 0x00011442, 1, { 0x00011442 } }, { 0x00011443, 1, { 0x00011443 } }, { 0x00011444, 1, { 0x00011444 } }, { 0x00011445, 1, { 0x00011445 } }, { 0x00011446, 1, { 0x00011446 } }, { 0x00011447, 1, { 0x00011447 } }, { 0x00011448, 1, { 0x00011448 } }, { 0x00011449, 1, { 0x00011449 } }, { 0x0001144a, 1, { 0x0001144a } }, { 0x0001144b, 1, { 0x0001144b } }, { 0x0001144c, 1, { 0x0001144c } }, { 0x0001144d, 1, { 0x0001144d } }, { 0x0001144e, 1, { 0x0001144e } }, { 0x0001144f, 1, { 0x0001144f } }, { 0x00011450, 1, { 0x00011450 } }, { 0x00011451, 1, { 0x00011451 } }, { 0x00011452, 1, { 0x00011452 } }, { 0x00011453, 1, { 0x00011453 } }, { 0x00011454, 1, { 0x00011454 } }, { 0x00011455, 1, { 0x00011455 } }, { 0x00011456, 1, { 0x00011456 } }, { 0x00011457, 1, { 0x00011457 } }, { 0x00011458, 1, { 0x00011458 } }, { 0x00011459, 1, { 0x00011459 } }, { 0x0001145b, 1, { 0x0001145b } }, { 0x0001145d, 1, { 0x0001145d } }, { 0x00011480, 1, { 0x00011480 } }, { 0x00011481, 1, { 0x00011481 } }, { 0x00011482, 1, { 0x00011482 } }, { 0x00011483, 1, { 0x00011483 } }, { 0x00011484, 1, { 0x00011484 } }, { 0x00011485, 1, { 0x00011485 } }, { 0x00011486, 1, { 0x00011486 } }, { 0x00011487, 1, { 0x00011487 } }, { 0x00011488, 1, { 0x00011488 } }, { 0x00011489, 1, { 0x00011489 } }, { 0x0001148a, 1, { 0x0001148a } }, { 0x0001148b, 1, { 0x0001148b } }, { 0x0001148c, 1, { 0x0001148c } }, { 0x0001148d, 1, { 0x0001148d } }, { 0x0001148e, 1, { 0x0001148e } }, { 0x0001148f, 1, { 0x0001148f } }, { 0x00011490, 1, { 0x00011490 } }, { 0x00011491, 1, { 0x00011491 } }, { 0x00011492, 1, { 0x00011492 } }, { 0x00011493, 1, { 0x00011493 } }, { 0x00011494, 1, { 0x00011494 } }, { 0x00011495, 1, { 0x00011495 } }, { 0x00011496, 1, { 0x00011496 } }, { 0x00011497, 1, { 0x00011497 } }, { 0x00011498, 1, { 0x00011498 } }, { 0x00011499, 1, { 0x00011499 } }, { 0x0001149a, 1, { 0x0001149a } }, { 0x0001149b, 1, { 0x0001149b } }, { 0x0001149c, 1, { 0x0001149c } }, { 0x0001149d, 1, { 0x0001149d } }, { 0x0001149e, 1, { 0x0001149e } }, { 0x0001149f, 1, { 0x0001149f } }, { 0x000114a0, 1, { 0x000114a0 } }, { 0x000114a1, 1, { 0x000114a1 } }, { 0x000114a2, 1, { 0x000114a2 } }, { 0x000114a3, 1, { 0x000114a3 } }, { 0x000114a4, 1, { 0x000114a4 } }, { 0x000114a5, 1, { 0x000114a5 } }, { 0x000114a6, 1, { 0x000114a6 } }, { 0x000114a7, 1, { 0x000114a7 } }, { 0x000114a8, 1, { 0x000114a8 } }, { 0x000114a9, 1, { 0x000114a9 } }, { 0x000114aa, 1, { 0x000114aa } }, { 0x000114ab, 1, { 0x000114ab } }, { 0x000114ac, 1, { 0x000114ac } }, { 0x000114ad, 1, { 0x000114ad } }, { 0x000114ae, 1, { 0x000114ae } }, { 0x000114af, 1, { 0x000114af } }, { 0x000114b0, 1, { 0x000114b0 } }, { 0x000114b1, 1, { 0x000114b1 } }, { 0x000114b2, 1, { 0x000114b2 } }, { 0x000114b3, 1, { 0x000114b3 } }, { 0x000114b4, 1, { 0x000114b4 } }, { 0x000114b5, 1, { 0x000114b5 } }, { 0x000114b6, 1, { 0x000114b6 } }, { 0x000114b7, 1, { 0x000114b7 } }, { 0x000114b8, 1, { 0x000114b8 } }, { 0x000114b9, 1, { 0x000114b9 } }, { 0x000114ba, 1, { 0x000114ba } }, { 0x000114bb, 2, { 0x000114b9, 0x000114ba } }, { 0x000114bc, 2, { 0x000114b9, 0x000114b0 } }, { 0x000114bd, 1, { 0x000114bd } }, { 0x000114be, 2, { 0x000114b9, 0x000114bd } }, { 0x000114bf, 1, { 0x000114bf } }, { 0x000114c0, 1, { 0x000114c0 } }, { 0x000114c1, 1, { 0x000114c1 } }, { 0x000114c2, 1, { 0x000114c2 } }, { 0x000114c3, 1, { 0x000114c3 } }, { 0x000114c4, 1, { 0x000114c4 } }, { 0x000114c5, 1, { 0x000114c5 } }, { 0x000114c6, 1, { 0x000114c6 } }, { 0x000114c7, 1, { 0x000114c7 } }, { 0x000114d0, 1, { 0x000114d0 } }, { 0x000114d1, 1, { 0x000114d1 } }, { 0x000114d2, 1, { 0x000114d2 } }, { 0x000114d3, 1, { 0x000114d3 } }, { 0x000114d4, 1, { 0x000114d4 } }, { 0x000114d5, 1, { 0x000114d5 } }, { 0x000114d6, 1, { 0x000114d6 } }, { 0x000114d7, 1, { 0x000114d7 } }, { 0x000114d8, 1, { 0x000114d8 } }, { 0x000114d9, 1, { 0x000114d9 } }, { 0x00011580, 1, { 0x00011580 } }, { 0x00011581, 1, { 0x00011581 } }, { 0x00011582, 1, { 0x00011582 } }, { 0x00011583, 1, { 0x00011583 } }, { 0x00011584, 1, { 0x00011584 } }, { 0x00011585, 1, { 0x00011585 } }, { 0x00011586, 1, { 0x00011586 } }, { 0x00011587, 1, { 0x00011587 } }, { 0x00011588, 1, { 0x00011588 } }, { 0x00011589, 1, { 0x00011589 } }, { 0x0001158a, 1, { 0x0001158a } }, { 0x0001158b, 1, { 0x0001158b } }, { 0x0001158c, 1, { 0x0001158c } }, { 0x0001158d, 1, { 0x0001158d } }, { 0x0001158e, 1, { 0x0001158e } }, { 0x0001158f, 1, { 0x0001158f } }, { 0x00011590, 1, { 0x00011590 } }, { 0x00011591, 1, { 0x00011591 } }, { 0x00011592, 1, { 0x00011592 } }, { 0x00011593, 1, { 0x00011593 } }, { 0x00011594, 1, { 0x00011594 } }, { 0x00011595, 1, { 0x00011595 } }, { 0x00011596, 1, { 0x00011596 } }, { 0x00011597, 1, { 0x00011597 } }, { 0x00011598, 1, { 0x00011598 } }, { 0x00011599, 1, { 0x00011599 } }, { 0x0001159a, 1, { 0x0001159a } }, { 0x0001159b, 1, { 0x0001159b } }, { 0x0001159c, 1, { 0x0001159c } }, { 0x0001159d, 1, { 0x0001159d } }, { 0x0001159e, 1, { 0x0001159e } }, { 0x0001159f, 1, { 0x0001159f } }, { 0x000115a0, 1, { 0x000115a0 } }, { 0x000115a1, 1, { 0x000115a1 } }, { 0x000115a2, 1, { 0x000115a2 } }, { 0x000115a3, 1, { 0x000115a3 } }, { 0x000115a4, 1, { 0x000115a4 } }, { 0x000115a5, 1, { 0x000115a5 } }, { 0x000115a6, 1, { 0x000115a6 } }, { 0x000115a7, 1, { 0x000115a7 } }, { 0x000115a8, 1, { 0x000115a8 } }, { 0x000115a9, 1, { 0x000115a9 } }, { 0x000115aa, 1, { 0x000115aa } }, { 0x000115ab, 1, { 0x000115ab } }, { 0x000115ac, 1, { 0x000115ac } }, { 0x000115ad, 1, { 0x000115ad } }, { 0x000115ae, 1, { 0x000115ae } }, { 0x000115af, 1, { 0x000115af } }, { 0x000115b0, 1, { 0x000115b0 } }, { 0x000115b1, 1, { 0x000115b1 } }, { 0x000115b2, 1, { 0x000115b2 } }, { 0x000115b3, 1, { 0x000115b3 } }, { 0x000115b4, 1, { 0x000115b4 } }, { 0x000115b5, 1, { 0x000115b5 } }, { 0x000115b8, 1, { 0x000115b8 } }, { 0x000115b9, 1, { 0x000115b9 } }, { 0x000115ba, 2, { 0x000115b8, 0x000115af } }, { 0x000115bb, 2, { 0x000115b9, 0x000115af } }, { 0x000115bc, 1, { 0x000115bc } }, { 0x000115bd, 1, { 0x000115bd } }, { 0x000115be, 1, { 0x000115be } }, { 0x000115bf, 1, { 0x000115bf } }, { 0x000115c0, 1, { 0x000115c0 } }, { 0x000115c1, 1, { 0x000115c1 } }, { 0x000115c2, 1, { 0x000115c2 } }, { 0x000115c3, 1, { 0x000115c3 } }, { 0x000115c4, 1, { 0x000115c4 } }, { 0x000115c5, 1, { 0x000115c5 } }, { 0x000115c6, 1, { 0x000115c6 } }, { 0x000115c7, 1, { 0x000115c7 } }, { 0x000115c8, 1, { 0x000115c8 } }, { 0x000115c9, 1, { 0x000115c9 } }, { 0x000115ca, 1, { 0x000115ca } }, { 0x000115cb, 1, { 0x000115cb } }, { 0x000115cc, 1, { 0x000115cc } }, { 0x000115cd, 1, { 0x000115cd } }, { 0x000115ce, 1, { 0x000115ce } }, { 0x000115cf, 1, { 0x000115cf } }, { 0x000115d0, 1, { 0x000115d0 } }, { 0x000115d1, 1, { 0x000115d1 } }, { 0x000115d2, 1, { 0x000115d2 } }, { 0x000115d3, 1, { 0x000115d3 } }, { 0x000115d4, 1, { 0x000115d4 } }, { 0x000115d5, 1, { 0x000115d5 } }, { 0x000115d6, 1, { 0x000115d6 } }, { 0x000115d7, 1, { 0x000115d7 } }, { 0x000115d8, 1, { 0x000115d8 } }, { 0x000115d9, 1, { 0x000115d9 } }, { 0x000115da, 1, { 0x000115da } }, { 0x000115db, 1, { 0x000115db } }, { 0x000115dc, 1, { 0x000115dc } }, { 0x000115dd, 1, { 0x000115dd } }, { 0x00011600, 1, { 0x00011600 } }, { 0x00011601, 1, { 0x00011601 } }, { 0x00011602, 1, { 0x00011602 } }, { 0x00011603, 1, { 0x00011603 } }, { 0x00011604, 1, { 0x00011604 } }, { 0x00011605, 1, { 0x00011605 } }, { 0x00011606, 1, { 0x00011606 } }, { 0x00011607, 1, { 0x00011607 } }, { 0x00011608, 1, { 0x00011608 } }, { 0x00011609, 1, { 0x00011609 } }, { 0x0001160a, 1, { 0x0001160a } }, { 0x0001160b, 1, { 0x0001160b } }, { 0x0001160c, 1, { 0x0001160c } }, { 0x0001160d, 1, { 0x0001160d } }, { 0x0001160e, 1, { 0x0001160e } }, { 0x0001160f, 1, { 0x0001160f } }, { 0x00011610, 1, { 0x00011610 } }, { 0x00011611, 1, { 0x00011611 } }, { 0x00011612, 1, { 0x00011612 } }, { 0x00011613, 1, { 0x00011613 } }, { 0x00011614, 1, { 0x00011614 } }, { 0x00011615, 1, { 0x00011615 } }, { 0x00011616, 1, { 0x00011616 } }, { 0x00011617, 1, { 0x00011617 } }, { 0x00011618, 1, { 0x00011618 } }, { 0x00011619, 1, { 0x00011619 } }, { 0x0001161a, 1, { 0x0001161a } }, { 0x0001161b, 1, { 0x0001161b } }, { 0x0001161c, 1, { 0x0001161c } }, { 0x0001161d, 1, { 0x0001161d } }, { 0x0001161e, 1, { 0x0001161e } }, { 0x0001161f, 1, { 0x0001161f } }, { 0x00011620, 1, { 0x00011620 } }, { 0x00011621, 1, { 0x00011621 } }, { 0x00011622, 1, { 0x00011622 } }, { 0x00011623, 1, { 0x00011623 } }, { 0x00011624, 1, { 0x00011624 } }, { 0x00011625, 1, { 0x00011625 } }, { 0x00011626, 1, { 0x00011626 } }, { 0x00011627, 1, { 0x00011627 } }, { 0x00011628, 1, { 0x00011628 } }, { 0x00011629, 1, { 0x00011629 } }, { 0x0001162a, 1, { 0x0001162a } }, { 0x0001162b, 1, { 0x0001162b } }, { 0x0001162c, 1, { 0x0001162c } }, { 0x0001162d, 1, { 0x0001162d } }, { 0x0001162e, 1, { 0x0001162e } }, { 0x0001162f, 1, { 0x0001162f } }, { 0x00011630, 1, { 0x00011630 } }, { 0x00011631, 1, { 0x00011631 } }, { 0x00011632, 1, { 0x00011632 } }, { 0x00011633, 1, { 0x00011633 } }, { 0x00011634, 1, { 0x00011634 } }, { 0x00011635, 1, { 0x00011635 } }, { 0x00011636, 1, { 0x00011636 } }, { 0x00011637, 1, { 0x00011637 } }, { 0x00011638, 1, { 0x00011638 } }, { 0x00011639, 1, { 0x00011639 } }, { 0x0001163a, 1, { 0x0001163a } }, { 0x0001163b, 1, { 0x0001163b } }, { 0x0001163c, 1, { 0x0001163c } }, { 0x0001163d, 1, { 0x0001163d } }, { 0x0001163e, 1, { 0x0001163e } }, { 0x0001163f, 1, { 0x0001163f } }, { 0x00011640, 1, { 0x00011640 } }, { 0x00011641, 1, { 0x00011641 } }, { 0x00011642, 1, { 0x00011642 } }, { 0x00011643, 1, { 0x00011643 } }, { 0x00011644, 1, { 0x00011644 } }, { 0x00011650, 1, { 0x00011650 } }, { 0x00011651, 1, { 0x00011651 } }, { 0x00011652, 1, { 0x00011652 } }, { 0x00011653, 1, { 0x00011653 } }, { 0x00011654, 1, { 0x00011654 } }, { 0x00011655, 1, { 0x00011655 } }, { 0x00011656, 1, { 0x00011656 } }, { 0x00011657, 1, { 0x00011657 } }, { 0x00011658, 1, { 0x00011658 } }, { 0x00011659, 1, { 0x00011659 } }, { 0x00011660, 1, { 0x00011660 } }, { 0x00011661, 1, { 0x00011661 } }, { 0x00011662, 1, { 0x00011662 } }, { 0x00011663, 1, { 0x00011663 } }, { 0x00011664, 1, { 0x00011664 } }, { 0x00011665, 1, { 0x00011665 } }, { 0x00011666, 1, { 0x00011666 } }, { 0x00011667, 1, { 0x00011667 } }, { 0x00011668, 1, { 0x00011668 } }, { 0x00011669, 1, { 0x00011669 } }, { 0x0001166a, 1, { 0x0001166a } }, { 0x0001166b, 1, { 0x0001166b } }, { 0x0001166c, 1, { 0x0001166c } }, { 0x00011680, 1, { 0x00011680 } }, { 0x00011681, 1, { 0x00011681 } }, { 0x00011682, 1, { 0x00011682 } }, { 0x00011683, 1, { 0x00011683 } }, { 0x00011684, 1, { 0x00011684 } }, { 0x00011685, 1, { 0x00011685 } }, { 0x00011686, 1, { 0x00011686 } }, { 0x00011687, 1, { 0x00011687 } }, { 0x00011688, 1, { 0x00011688 } }, { 0x00011689, 1, { 0x00011689 } }, { 0x0001168a, 1, { 0x0001168a } }, { 0x0001168b, 1, { 0x0001168b } }, { 0x0001168c, 1, { 0x0001168c } }, { 0x0001168d, 1, { 0x0001168d } }, { 0x0001168e, 1, { 0x0001168e } }, { 0x0001168f, 1, { 0x0001168f } }, { 0x00011690, 1, { 0x00011690 } }, { 0x00011691, 1, { 0x00011691 } }, { 0x00011692, 1, { 0x00011692 } }, { 0x00011693, 1, { 0x00011693 } }, { 0x00011694, 1, { 0x00011694 } }, { 0x00011695, 1, { 0x00011695 } }, { 0x00011696, 1, { 0x00011696 } }, { 0x00011697, 1, { 0x00011697 } }, { 0x00011698, 1, { 0x00011698 } }, { 0x00011699, 1, { 0x00011699 } }, { 0x0001169a, 1, { 0x0001169a } }, { 0x0001169b, 1, { 0x0001169b } }, { 0x0001169c, 1, { 0x0001169c } }, { 0x0001169d, 1, { 0x0001169d } }, { 0x0001169e, 1, { 0x0001169e } }, { 0x0001169f, 1, { 0x0001169f } }, { 0x000116a0, 1, { 0x000116a0 } }, { 0x000116a1, 1, { 0x000116a1 } }, { 0x000116a2, 1, { 0x000116a2 } }, { 0x000116a3, 1, { 0x000116a3 } }, { 0x000116a4, 1, { 0x000116a4 } }, { 0x000116a5, 1, { 0x000116a5 } }, { 0x000116a6, 1, { 0x000116a6 } }, { 0x000116a7, 1, { 0x000116a7 } }, { 0x000116a8, 1, { 0x000116a8 } }, { 0x000116a9, 1, { 0x000116a9 } }, { 0x000116aa, 1, { 0x000116aa } }, { 0x000116ab, 1, { 0x000116ab } }, { 0x000116ac, 1, { 0x000116ac } }, { 0x000116ad, 1, { 0x000116ad } }, { 0x000116ae, 1, { 0x000116ae } }, { 0x000116af, 1, { 0x000116af } }, { 0x000116b0, 1, { 0x000116b0 } }, { 0x000116b1, 1, { 0x000116b1 } }, { 0x000116b2, 1, { 0x000116b2 } }, { 0x000116b3, 1, { 0x000116b3 } }, { 0x000116b4, 1, { 0x000116b4 } }, { 0x000116b5, 1, { 0x000116b5 } }, { 0x000116b6, 1, { 0x000116b6 } }, { 0x000116b7, 1, { 0x000116b7 } }, { 0x000116c0, 1, { 0x000116c0 } }, { 0x000116c1, 1, { 0x000116c1 } }, { 0x000116c2, 1, { 0x000116c2 } }, { 0x000116c3, 1, { 0x000116c3 } }, { 0x000116c4, 1, { 0x000116c4 } }, { 0x000116c5, 1, { 0x000116c5 } }, { 0x000116c6, 1, { 0x000116c6 } }, { 0x000116c7, 1, { 0x000116c7 } }, { 0x000116c8, 1, { 0x000116c8 } }, { 0x000116c9, 1, { 0x000116c9 } }, { 0x00011700, 1, { 0x00011700 } }, { 0x00011701, 1, { 0x00011701 } }, { 0x00011702, 1, { 0x00011702 } }, { 0x00011703, 1, { 0x00011703 } }, { 0x00011704, 1, { 0x00011704 } }, { 0x00011705, 1, { 0x00011705 } }, { 0x00011706, 1, { 0x00011706 } }, { 0x00011707, 1, { 0x00011707 } }, { 0x00011708, 1, { 0x00011708 } }, { 0x00011709, 1, { 0x00011709 } }, { 0x0001170a, 1, { 0x0001170a } }, { 0x0001170b, 1, { 0x0001170b } }, { 0x0001170c, 1, { 0x0001170c } }, { 0x0001170d, 1, { 0x0001170d } }, { 0x0001170e, 1, { 0x0001170e } }, { 0x0001170f, 1, { 0x0001170f } }, { 0x00011710, 1, { 0x00011710 } }, { 0x00011711, 1, { 0x00011711 } }, { 0x00011712, 1, { 0x00011712 } }, { 0x00011713, 1, { 0x00011713 } }, { 0x00011714, 1, { 0x00011714 } }, { 0x00011715, 1, { 0x00011715 } }, { 0x00011716, 1, { 0x00011716 } }, { 0x00011717, 1, { 0x00011717 } }, { 0x00011718, 1, { 0x00011718 } }, { 0x00011719, 1, { 0x00011719 } }, { 0x0001171d, 1, { 0x0001171d } }, { 0x0001171e, 1, { 0x0001171e } }, { 0x0001171f, 1, { 0x0001171f } }, { 0x00011720, 1, { 0x00011720 } }, { 0x00011721, 1, { 0x00011721 } }, { 0x00011722, 1, { 0x00011722 } }, { 0x00011723, 1, { 0x00011723 } }, { 0x00011724, 1, { 0x00011724 } }, { 0x00011725, 1, { 0x00011725 } }, { 0x00011726, 1, { 0x00011726 } }, { 0x00011727, 1, { 0x00011727 } }, { 0x00011728, 1, { 0x00011728 } }, { 0x00011729, 1, { 0x00011729 } }, { 0x0001172a, 1, { 0x0001172a } }, { 0x0001172b, 1, { 0x0001172b } }, { 0x00011730, 1, { 0x00011730 } }, { 0x00011731, 1, { 0x00011731 } }, { 0x00011732, 1, { 0x00011732 } }, { 0x00011733, 1, { 0x00011733 } }, { 0x00011734, 1, { 0x00011734 } }, { 0x00011735, 1, { 0x00011735 } }, { 0x00011736, 1, { 0x00011736 } }, { 0x00011737, 1, { 0x00011737 } }, { 0x00011738, 1, { 0x00011738 } }, { 0x00011739, 1, { 0x00011739 } }, { 0x0001173a, 1, { 0x0001173a } }, { 0x0001173b, 1, { 0x0001173b } }, { 0x0001173c, 1, { 0x0001173c } }, { 0x0001173d, 1, { 0x0001173d } }, { 0x0001173e, 1, { 0x0001173e } }, { 0x0001173f, 1, { 0x0001173f } }, { 0x000118a0, 1, { 0x000118a0 } }, { 0x000118a1, 1, { 0x000118a1 } }, { 0x000118a2, 1, { 0x000118a2 } }, { 0x000118a3, 1, { 0x000118a3 } }, { 0x000118a4, 1, { 0x000118a4 } }, { 0x000118a5, 1, { 0x000118a5 } }, { 0x000118a6, 1, { 0x000118a6 } }, { 0x000118a7, 1, { 0x000118a7 } }, { 0x000118a8, 1, { 0x000118a8 } }, { 0x000118a9, 1, { 0x000118a9 } }, { 0x000118aa, 1, { 0x000118aa } }, { 0x000118ab, 1, { 0x000118ab } }, { 0x000118ac, 1, { 0x000118ac } }, { 0x000118ad, 1, { 0x000118ad } }, { 0x000118ae, 1, { 0x000118ae } }, { 0x000118af, 1, { 0x000118af } }, { 0x000118b0, 1, { 0x000118b0 } }, { 0x000118b1, 1, { 0x000118b1 } }, { 0x000118b2, 1, { 0x000118b2 } }, { 0x000118b3, 1, { 0x000118b3 } }, { 0x000118b4, 1, { 0x000118b4 } }, { 0x000118b5, 1, { 0x000118b5 } }, { 0x000118b6, 1, { 0x000118b6 } }, { 0x000118b7, 1, { 0x000118b7 } }, { 0x000118b8, 1, { 0x000118b8 } }, { 0x000118b9, 1, { 0x000118b9 } }, { 0x000118ba, 1, { 0x000118ba } }, { 0x000118bb, 1, { 0x000118bb } }, { 0x000118bc, 1, { 0x000118bc } }, { 0x000118bd, 1, { 0x000118bd } }, { 0x000118be, 1, { 0x000118be } }, { 0x000118bf, 1, { 0x000118bf } }, { 0x000118c0, 1, { 0x000118c0 } }, { 0x000118c1, 1, { 0x000118c1 } }, { 0x000118c2, 1, { 0x000118c2 } }, { 0x000118c3, 1, { 0x000118c3 } }, { 0x000118c4, 1, { 0x000118c4 } }, { 0x000118c5, 1, { 0x000118c5 } }, { 0x000118c6, 1, { 0x000118c6 } }, { 0x000118c7, 1, { 0x000118c7 } }, { 0x000118c8, 1, { 0x000118c8 } }, { 0x000118c9, 1, { 0x000118c9 } }, { 0x000118ca, 1, { 0x000118ca } }, { 0x000118cb, 1, { 0x000118cb } }, { 0x000118cc, 1, { 0x000118cc } }, { 0x000118cd, 1, { 0x000118cd } }, { 0x000118ce, 1, { 0x000118ce } }, { 0x000118cf, 1, { 0x000118cf } }, { 0x000118d0, 1, { 0x000118d0 } }, { 0x000118d1, 1, { 0x000118d1 } }, { 0x000118d2, 1, { 0x000118d2 } }, { 0x000118d3, 1, { 0x000118d3 } }, { 0x000118d4, 1, { 0x000118d4 } }, { 0x000118d5, 1, { 0x000118d5 } }, { 0x000118d6, 1, { 0x000118d6 } }, { 0x000118d7, 1, { 0x000118d7 } }, { 0x000118d8, 1, { 0x000118d8 } }, { 0x000118d9, 1, { 0x000118d9 } }, { 0x000118da, 1, { 0x000118da } }, { 0x000118db, 1, { 0x000118db } }, { 0x000118dc, 1, { 0x000118dc } }, { 0x000118dd, 1, { 0x000118dd } }, { 0x000118de, 1, { 0x000118de } }, { 0x000118df, 1, { 0x000118df } }, { 0x000118e0, 1, { 0x000118e0 } }, { 0x000118e1, 1, { 0x000118e1 } }, { 0x000118e2, 1, { 0x000118e2 } }, { 0x000118e3, 1, { 0x000118e3 } }, { 0x000118e4, 1, { 0x000118e4 } }, { 0x000118e5, 1, { 0x000118e5 } }, { 0x000118e6, 1, { 0x000118e6 } }, { 0x000118e7, 1, { 0x000118e7 } }, { 0x000118e8, 1, { 0x000118e8 } }, { 0x000118e9, 1, { 0x000118e9 } }, { 0x000118ea, 1, { 0x000118ea } }, { 0x000118eb, 1, { 0x000118eb } }, { 0x000118ec, 1, { 0x000118ec } }, { 0x000118ed, 1, { 0x000118ed } }, { 0x000118ee, 1, { 0x000118ee } }, { 0x000118ef, 1, { 0x000118ef } }, { 0x000118f0, 1, { 0x000118f0 } }, { 0x000118f1, 1, { 0x000118f1 } }, { 0x000118f2, 1, { 0x000118f2 } }, { 0x000118ff, 1, { 0x000118ff } }, { 0x00011ac0, 1, { 0x00011ac0 } }, { 0x00011ac1, 1, { 0x00011ac1 } }, { 0x00011ac2, 1, { 0x00011ac2 } }, { 0x00011ac3, 1, { 0x00011ac3 } }, { 0x00011ac4, 1, { 0x00011ac4 } }, { 0x00011ac5, 1, { 0x00011ac5 } }, { 0x00011ac6, 1, { 0x00011ac6 } }, { 0x00011ac7, 1, { 0x00011ac7 } }, { 0x00011ac8, 1, { 0x00011ac8 } }, { 0x00011ac9, 1, { 0x00011ac9 } }, { 0x00011aca, 1, { 0x00011aca } }, { 0x00011acb, 1, { 0x00011acb } }, { 0x00011acc, 1, { 0x00011acc } }, { 0x00011acd, 1, { 0x00011acd } }, { 0x00011ace, 1, { 0x00011ace } }, { 0x00011acf, 1, { 0x00011acf } }, { 0x00011ad0, 1, { 0x00011ad0 } }, { 0x00011ad1, 1, { 0x00011ad1 } }, { 0x00011ad2, 1, { 0x00011ad2 } }, { 0x00011ad3, 1, { 0x00011ad3 } }, { 0x00011ad4, 1, { 0x00011ad4 } }, { 0x00011ad5, 1, { 0x00011ad5 } }, { 0x00011ad6, 1, { 0x00011ad6 } }, { 0x00011ad7, 1, { 0x00011ad7 } }, { 0x00011ad8, 1, { 0x00011ad8 } }, { 0x00011ad9, 1, { 0x00011ad9 } }, { 0x00011ada, 1, { 0x00011ada } }, { 0x00011adb, 1, { 0x00011adb } }, { 0x00011adc, 1, { 0x00011adc } }, { 0x00011add, 1, { 0x00011add } }, { 0x00011ade, 1, { 0x00011ade } }, { 0x00011adf, 1, { 0x00011adf } }, { 0x00011ae0, 1, { 0x00011ae0 } }, { 0x00011ae1, 1, { 0x00011ae1 } }, { 0x00011ae2, 1, { 0x00011ae2 } }, { 0x00011ae3, 1, { 0x00011ae3 } }, { 0x00011ae4, 1, { 0x00011ae4 } }, { 0x00011ae5, 1, { 0x00011ae5 } }, { 0x00011ae6, 1, { 0x00011ae6 } }, { 0x00011ae7, 1, { 0x00011ae7 } }, { 0x00011ae8, 1, { 0x00011ae8 } }, { 0x00011ae9, 1, { 0x00011ae9 } }, { 0x00011aea, 1, { 0x00011aea } }, { 0x00011aeb, 1, { 0x00011aeb } }, { 0x00011aec, 1, { 0x00011aec } }, { 0x00011aed, 1, { 0x00011aed } }, { 0x00011aee, 1, { 0x00011aee } }, { 0x00011aef, 1, { 0x00011aef } }, { 0x00011af0, 1, { 0x00011af0 } }, { 0x00011af1, 1, { 0x00011af1 } }, { 0x00011af2, 1, { 0x00011af2 } }, { 0x00011af3, 1, { 0x00011af3 } }, { 0x00011af4, 1, { 0x00011af4 } }, { 0x00011af5, 1, { 0x00011af5 } }, { 0x00011af6, 1, { 0x00011af6 } }, { 0x00011af7, 1, { 0x00011af7 } }, { 0x00011af8, 1, { 0x00011af8 } }, { 0x00011c00, 1, { 0x00011c00 } }, { 0x00011c01, 1, { 0x00011c01 } }, { 0x00011c02, 1, { 0x00011c02 } }, { 0x00011c03, 1, { 0x00011c03 } }, { 0x00011c04, 1, { 0x00011c04 } }, { 0x00011c05, 1, { 0x00011c05 } }, { 0x00011c06, 1, { 0x00011c06 } }, { 0x00011c07, 1, { 0x00011c07 } }, { 0x00011c08, 1, { 0x00011c08 } }, { 0x00011c0a, 1, { 0x00011c0a } }, { 0x00011c0b, 1, { 0x00011c0b } }, { 0x00011c0c, 1, { 0x00011c0c } }, { 0x00011c0d, 1, { 0x00011c0d } }, { 0x00011c0e, 1, { 0x00011c0e } }, { 0x00011c0f, 1, { 0x00011c0f } }, { 0x00011c10, 1, { 0x00011c10 } }, { 0x00011c11, 1, { 0x00011c11 } }, { 0x00011c12, 1, { 0x00011c12 } }, { 0x00011c13, 1, { 0x00011c13 } }, { 0x00011c14, 1, { 0x00011c14 } }, { 0x00011c15, 1, { 0x00011c15 } }, { 0x00011c16, 1, { 0x00011c16 } }, { 0x00011c17, 1, { 0x00011c17 } }, { 0x00011c18, 1, { 0x00011c18 } }, { 0x00011c19, 1, { 0x00011c19 } }, { 0x00011c1a, 1, { 0x00011c1a } }, { 0x00011c1b, 1, { 0x00011c1b } }, { 0x00011c1c, 1, { 0x00011c1c } }, { 0x00011c1d, 1, { 0x00011c1d } }, { 0x00011c1e, 1, { 0x00011c1e } }, { 0x00011c1f, 1, { 0x00011c1f } }, { 0x00011c20, 1, { 0x00011c20 } }, { 0x00011c21, 1, { 0x00011c21 } }, { 0x00011c22, 1, { 0x00011c22 } }, { 0x00011c23, 1, { 0x00011c23 } }, { 0x00011c24, 1, { 0x00011c24 } }, { 0x00011c25, 1, { 0x00011c25 } }, { 0x00011c26, 1, { 0x00011c26 } }, { 0x00011c27, 1, { 0x00011c27 } }, { 0x00011c28, 1, { 0x00011c28 } }, { 0x00011c29, 1, { 0x00011c29 } }, { 0x00011c2a, 1, { 0x00011c2a } }, { 0x00011c2b, 1, { 0x00011c2b } }, { 0x00011c2c, 1, { 0x00011c2c } }, { 0x00011c2d, 1, { 0x00011c2d } }, { 0x00011c2e, 1, { 0x00011c2e } }, { 0x00011c2f, 1, { 0x00011c2f } }, { 0x00011c30, 1, { 0x00011c30 } }, { 0x00011c31, 1, { 0x00011c31 } }, { 0x00011c32, 1, { 0x00011c32 } }, { 0x00011c33, 1, { 0x00011c33 } }, { 0x00011c34, 1, { 0x00011c34 } }, { 0x00011c35, 1, { 0x00011c35 } }, { 0x00011c36, 1, { 0x00011c36 } }, { 0x00011c38, 1, { 0x00011c38 } }, { 0x00011c39, 1, { 0x00011c39 } }, { 0x00011c3a, 1, { 0x00011c3a } }, { 0x00011c3b, 1, { 0x00011c3b } }, { 0x00011c3c, 1, { 0x00011c3c } }, { 0x00011c3d, 1, { 0x00011c3d } }, { 0x00011c3e, 1, { 0x00011c3e } }, { 0x00011c3f, 1, { 0x00011c3f } }, { 0x00011c40, 1, { 0x00011c40 } }, { 0x00011c41, 1, { 0x00011c41 } }, { 0x00011c42, 1, { 0x00011c42 } }, { 0x00011c43, 1, { 0x00011c43 } }, { 0x00011c44, 1, { 0x00011c44 } }, { 0x00011c45, 1, { 0x00011c45 } }, { 0x00011c50, 1, { 0x00011c50 } }, { 0x00011c51, 1, { 0x00011c51 } }, { 0x00011c52, 1, { 0x00011c52 } }, { 0x00011c53, 1, { 0x00011c53 } }, { 0x00011c54, 1, { 0x00011c54 } }, { 0x00011c55, 1, { 0x00011c55 } }, { 0x00011c56, 1, { 0x00011c56 } }, { 0x00011c57, 1, { 0x00011c57 } }, { 0x00011c58, 1, { 0x00011c58 } }, { 0x00011c59, 1, { 0x00011c59 } }, { 0x00011c5a, 1, { 0x00011c5a } }, { 0x00011c5b, 1, { 0x00011c5b } }, { 0x00011c5c, 1, { 0x00011c5c } }, { 0x00011c5d, 1, { 0x00011c5d } }, { 0x00011c5e, 1, { 0x00011c5e } }, { 0x00011c5f, 1, { 0x00011c5f } }, { 0x00011c60, 1, { 0x00011c60 } }, { 0x00011c61, 1, { 0x00011c61 } }, { 0x00011c62, 1, { 0x00011c62 } }, { 0x00011c63, 1, { 0x00011c63 } }, { 0x00011c64, 1, { 0x00011c64 } }, { 0x00011c65, 1, { 0x00011c65 } }, { 0x00011c66, 1, { 0x00011c66 } }, { 0x00011c67, 1, { 0x00011c67 } }, { 0x00011c68, 1, { 0x00011c68 } }, { 0x00011c69, 1, { 0x00011c69 } }, { 0x00011c6a, 1, { 0x00011c6a } }, { 0x00011c6b, 1, { 0x00011c6b } }, { 0x00011c6c, 1, { 0x00011c6c } }, { 0x00011c70, 1, { 0x00011c70 } }, { 0x00011c71, 1, { 0x00011c71 } }, { 0x00011c72, 1, { 0x00011c72 } }, { 0x00011c73, 1, { 0x00011c73 } }, { 0x00011c74, 1, { 0x00011c74 } }, { 0x00011c75, 1, { 0x00011c75 } }, { 0x00011c76, 1, { 0x00011c76 } }, { 0x00011c77, 1, { 0x00011c77 } }, { 0x00011c78, 1, { 0x00011c78 } }, { 0x00011c79, 1, { 0x00011c79 } }, { 0x00011c7a, 1, { 0x00011c7a } }, { 0x00011c7b, 1, { 0x00011c7b } }, { 0x00011c7c, 1, { 0x00011c7c } }, { 0x00011c7d, 1, { 0x00011c7d } }, { 0x00011c7e, 1, { 0x00011c7e } }, { 0x00011c7f, 1, { 0x00011c7f } }, { 0x00011c80, 1, { 0x00011c80 } }, { 0x00011c81, 1, { 0x00011c81 } }, { 0x00011c82, 1, { 0x00011c82 } }, { 0x00011c83, 1, { 0x00011c83 } }, { 0x00011c84, 1, { 0x00011c84 } }, { 0x00011c85, 1, { 0x00011c85 } }, { 0x00011c86, 1, { 0x00011c86 } }, { 0x00011c87, 1, { 0x00011c87 } }, { 0x00011c88, 1, { 0x00011c88 } }, { 0x00011c89, 1, { 0x00011c89 } }, { 0x00011c8a, 1, { 0x00011c8a } }, { 0x00011c8b, 1, { 0x00011c8b } }, { 0x00011c8c, 1, { 0x00011c8c } }, { 0x00011c8d, 1, { 0x00011c8d } }, { 0x00011c8e, 1, { 0x00011c8e } }, { 0x00011c8f, 1, { 0x00011c8f } }, { 0x00011c92, 1, { 0x00011c92 } }, { 0x00011c93, 1, { 0x00011c93 } }, { 0x00011c94, 1, { 0x00011c94 } }, { 0x00011c95, 1, { 0x00011c95 } }, { 0x00011c96, 1, { 0x00011c96 } }, { 0x00011c97, 1, { 0x00011c97 } }, { 0x00011c98, 1, { 0x00011c98 } }, { 0x00011c99, 1, { 0x00011c99 } }, { 0x00011c9a, 1, { 0x00011c9a } }, { 0x00011c9b, 1, { 0x00011c9b } }, { 0x00011c9c, 1, { 0x00011c9c } }, { 0x00011c9d, 1, { 0x00011c9d } }, { 0x00011c9e, 1, { 0x00011c9e } }, { 0x00011c9f, 1, { 0x00011c9f } }, { 0x00011ca0, 1, { 0x00011ca0 } }, { 0x00011ca1, 1, { 0x00011ca1 } }, { 0x00011ca2, 1, { 0x00011ca2 } }, { 0x00011ca3, 1, { 0x00011ca3 } }, { 0x00011ca4, 1, { 0x00011ca4 } }, { 0x00011ca5, 1, { 0x00011ca5 } }, { 0x00011ca6, 1, { 0x00011ca6 } }, { 0x00011ca7, 1, { 0x00011ca7 } }, { 0x00011ca9, 1, { 0x00011ca9 } }, { 0x00011caa, 1, { 0x00011caa } }, { 0x00011cab, 1, { 0x00011cab } }, { 0x00011cac, 1, { 0x00011cac } }, { 0x00011cad, 1, { 0x00011cad } }, { 0x00011cae, 1, { 0x00011cae } }, { 0x00011caf, 1, { 0x00011caf } }, { 0x00011cb0, 1, { 0x00011cb0 } }, { 0x00011cb1, 1, { 0x00011cb1 } }, { 0x00011cb2, 1, { 0x00011cb2 } }, { 0x00011cb3, 1, { 0x00011cb3 } }, { 0x00011cb4, 1, { 0x00011cb4 } }, { 0x00011cb5, 1, { 0x00011cb5 } }, { 0x00011cb6, 1, { 0x00011cb6 } }, { 0x00012000, 1, { 0x00012000 } }, { 0x00012001, 1, { 0x00012001 } }, { 0x00012002, 1, { 0x00012002 } }, { 0x00012003, 1, { 0x00012003 } }, { 0x00012004, 1, { 0x00012004 } }, { 0x00012005, 1, { 0x00012005 } }, { 0x00012006, 1, { 0x00012006 } }, { 0x00012007, 1, { 0x00012007 } }, { 0x00012008, 1, { 0x00012008 } }, { 0x00012009, 1, { 0x00012009 } }, { 0x0001200a, 1, { 0x0001200a } }, { 0x0001200b, 1, { 0x0001200b } }, { 0x0001200c, 1, { 0x0001200c } }, { 0x0001200d, 1, { 0x0001200d } }, { 0x0001200e, 1, { 0x0001200e } }, { 0x0001200f, 1, { 0x0001200f } }, { 0x00012010, 1, { 0x00012010 } }, { 0x00012011, 1, { 0x00012011 } }, { 0x00012012, 1, { 0x00012012 } }, { 0x00012013, 1, { 0x00012013 } }, { 0x00012014, 1, { 0x00012014 } }, { 0x00012015, 1, { 0x00012015 } }, { 0x00012016, 1, { 0x00012016 } }, { 0x00012017, 1, { 0x00012017 } }, { 0x00012018, 1, { 0x00012018 } }, { 0x00012019, 1, { 0x00012019 } }, { 0x0001201a, 1, { 0x0001201a } }, { 0x0001201b, 1, { 0x0001201b } }, { 0x0001201c, 1, { 0x0001201c } }, { 0x0001201d, 1, { 0x0001201d } }, { 0x0001201e, 1, { 0x0001201e } }, { 0x0001201f, 1, { 0x0001201f } }, { 0x00012020, 1, { 0x00012020 } }, { 0x00012021, 1, { 0x00012021 } }, { 0x00012022, 1, { 0x00012022 } }, { 0x00012023, 1, { 0x00012023 } }, { 0x00012024, 1, { 0x00012024 } }, { 0x00012025, 1, { 0x00012025 } }, { 0x00012026, 1, { 0x00012026 } }, { 0x00012027, 1, { 0x00012027 } }, { 0x00012028, 1, { 0x00012028 } }, { 0x00012029, 1, { 0x00012029 } }, { 0x0001202a, 1, { 0x0001202a } }, { 0x0001202b, 1, { 0x0001202b } }, { 0x0001202c, 1, { 0x0001202c } }, { 0x0001202d, 1, { 0x0001202d } }, { 0x0001202e, 1, { 0x0001202e } }, { 0x0001202f, 1, { 0x0001202f } }, { 0x00012030, 1, { 0x00012030 } }, { 0x00012031, 1, { 0x00012031 } }, { 0x00012032, 1, { 0x00012032 } }, { 0x00012033, 1, { 0x00012033 } }, { 0x00012034, 1, { 0x00012034 } }, { 0x00012035, 1, { 0x00012035 } }, { 0x00012036, 1, { 0x00012036 } }, { 0x00012037, 1, { 0x00012037 } }, { 0x00012038, 1, { 0x00012038 } }, { 0x00012039, 1, { 0x00012039 } }, { 0x0001203a, 1, { 0x0001203a } }, { 0x0001203b, 1, { 0x0001203b } }, { 0x0001203c, 1, { 0x0001203c } }, { 0x0001203d, 1, { 0x0001203d } }, { 0x0001203e, 1, { 0x0001203e } }, { 0x0001203f, 1, { 0x0001203f } }, { 0x00012040, 1, { 0x00012040 } }, { 0x00012041, 1, { 0x00012041 } }, { 0x00012042, 1, { 0x00012042 } }, { 0x00012043, 1, { 0x00012043 } }, { 0x00012044, 1, { 0x00012044 } }, { 0x00012045, 1, { 0x00012045 } }, { 0x00012046, 1, { 0x00012046 } }, { 0x00012047, 1, { 0x00012047 } }, { 0x00012048, 1, { 0x00012048 } }, { 0x00012049, 1, { 0x00012049 } }, { 0x0001204a, 1, { 0x0001204a } }, { 0x0001204b, 1, { 0x0001204b } }, { 0x0001204c, 1, { 0x0001204c } }, { 0x0001204d, 1, { 0x0001204d } }, { 0x0001204e, 1, { 0x0001204e } }, { 0x0001204f, 1, { 0x0001204f } }, { 0x00012050, 1, { 0x00012050 } }, { 0x00012051, 1, { 0x00012051 } }, { 0x00012052, 1, { 0x00012052 } }, { 0x00012053, 1, { 0x00012053 } }, { 0x00012054, 1, { 0x00012054 } }, { 0x00012055, 1, { 0x00012055 } }, { 0x00012056, 1, { 0x00012056 } }, { 0x00012057, 1, { 0x00012057 } }, { 0x00012058, 1, { 0x00012058 } }, { 0x00012059, 1, { 0x00012059 } }, { 0x0001205a, 1, { 0x0001205a } }, { 0x0001205b, 1, { 0x0001205b } }, { 0x0001205c, 1, { 0x0001205c } }, { 0x0001205d, 1, { 0x0001205d } }, { 0x0001205e, 1, { 0x0001205e } }, { 0x0001205f, 1, { 0x0001205f } }, { 0x00012060, 1, { 0x00012060 } }, { 0x00012061, 1, { 0x00012061 } }, { 0x00012062, 1, { 0x00012062 } }, { 0x00012063, 1, { 0x00012063 } }, { 0x00012064, 1, { 0x00012064 } }, { 0x00012065, 1, { 0x00012065 } }, { 0x00012066, 1, { 0x00012066 } }, { 0x00012067, 1, { 0x00012067 } }, { 0x00012068, 1, { 0x00012068 } }, { 0x00012069, 1, { 0x00012069 } }, { 0x0001206a, 1, { 0x0001206a } }, { 0x0001206b, 1, { 0x0001206b } }, { 0x0001206c, 1, { 0x0001206c } }, { 0x0001206d, 1, { 0x0001206d } }, { 0x0001206e, 1, { 0x0001206e } }, { 0x0001206f, 1, { 0x0001206f } }, { 0x00012070, 1, { 0x00012070 } }, { 0x00012071, 1, { 0x00012071 } }, { 0x00012072, 1, { 0x00012072 } }, { 0x00012073, 1, { 0x00012073 } }, { 0x00012074, 1, { 0x00012074 } }, { 0x00012075, 1, { 0x00012075 } }, { 0x00012076, 1, { 0x00012076 } }, { 0x00012077, 1, { 0x00012077 } }, { 0x00012078, 1, { 0x00012078 } }, { 0x00012079, 1, { 0x00012079 } }, { 0x0001207a, 1, { 0x0001207a } }, { 0x0001207b, 1, { 0x0001207b } }, { 0x0001207c, 1, { 0x0001207c } }, { 0x0001207d, 1, { 0x0001207d } }, { 0x0001207e, 1, { 0x0001207e } }, { 0x0001207f, 1, { 0x0001207f } }, { 0x00012080, 1, { 0x00012080 } }, { 0x00012081, 1, { 0x00012081 } }, { 0x00012082, 1, { 0x00012082 } }, { 0x00012083, 1, { 0x00012083 } }, { 0x00012084, 1, { 0x00012084 } }, { 0x00012085, 1, { 0x00012085 } }, { 0x00012086, 1, { 0x00012086 } }, { 0x00012087, 1, { 0x00012087 } }, { 0x00012088, 1, { 0x00012088 } }, { 0x00012089, 1, { 0x00012089 } }, { 0x0001208a, 1, { 0x0001208a } }, { 0x0001208b, 1, { 0x0001208b } }, { 0x0001208c, 1, { 0x0001208c } }, { 0x0001208d, 1, { 0x0001208d } }, { 0x0001208e, 1, { 0x0001208e } }, { 0x0001208f, 1, { 0x0001208f } }, { 0x00012090, 1, { 0x00012090 } }, { 0x00012091, 1, { 0x00012091 } }, { 0x00012092, 1, { 0x00012092 } }, { 0x00012093, 1, { 0x00012093 } }, { 0x00012094, 1, { 0x00012094 } }, { 0x00012095, 1, { 0x00012095 } }, { 0x00012096, 1, { 0x00012096 } }, { 0x00012097, 1, { 0x00012097 } }, { 0x00012098, 1, { 0x00012098 } }, { 0x00012099, 1, { 0x00012099 } }, { 0x0001209a, 1, { 0x0001209a } }, { 0x0001209b, 1, { 0x0001209b } }, { 0x0001209c, 1, { 0x0001209c } }, { 0x0001209d, 1, { 0x0001209d } }, { 0x0001209e, 1, { 0x0001209e } }, { 0x0001209f, 1, { 0x0001209f } }, { 0x000120a0, 1, { 0x000120a0 } }, { 0x000120a1, 1, { 0x000120a1 } }, { 0x000120a2, 1, { 0x000120a2 } }, { 0x000120a3, 1, { 0x000120a3 } }, { 0x000120a4, 1, { 0x000120a4 } }, { 0x000120a5, 1, { 0x000120a5 } }, { 0x000120a6, 1, { 0x000120a6 } }, { 0x000120a7, 1, { 0x000120a7 } }, { 0x000120a8, 1, { 0x000120a8 } }, { 0x000120a9, 1, { 0x000120a9 } }, { 0x000120aa, 1, { 0x000120aa } }, { 0x000120ab, 1, { 0x000120ab } }, { 0x000120ac, 1, { 0x000120ac } }, { 0x000120ad, 1, { 0x000120ad } }, { 0x000120ae, 1, { 0x000120ae } }, { 0x000120af, 1, { 0x000120af } }, { 0x000120b0, 1, { 0x000120b0 } }, { 0x000120b1, 1, { 0x000120b1 } }, { 0x000120b2, 1, { 0x000120b2 } }, { 0x000120b3, 1, { 0x000120b3 } }, { 0x000120b4, 1, { 0x000120b4 } }, { 0x000120b5, 1, { 0x000120b5 } }, { 0x000120b6, 1, { 0x000120b6 } }, { 0x000120b7, 1, { 0x000120b7 } }, { 0x000120b8, 1, { 0x000120b8 } }, { 0x000120b9, 1, { 0x000120b9 } }, { 0x000120ba, 1, { 0x000120ba } }, { 0x000120bb, 1, { 0x000120bb } }, { 0x000120bc, 1, { 0x000120bc } }, { 0x000120bd, 1, { 0x000120bd } }, { 0x000120be, 1, { 0x000120be } }, { 0x000120bf, 1, { 0x000120bf } }, { 0x000120c0, 1, { 0x000120c0 } }, { 0x000120c1, 1, { 0x000120c1 } }, { 0x000120c2, 1, { 0x000120c2 } }, { 0x000120c3, 1, { 0x000120c3 } }, { 0x000120c4, 1, { 0x000120c4 } }, { 0x000120c5, 1, { 0x000120c5 } }, { 0x000120c6, 1, { 0x000120c6 } }, { 0x000120c7, 1, { 0x000120c7 } }, { 0x000120c8, 1, { 0x000120c8 } }, { 0x000120c9, 1, { 0x000120c9 } }, { 0x000120ca, 1, { 0x000120ca } }, { 0x000120cb, 1, { 0x000120cb } }, { 0x000120cc, 1, { 0x000120cc } }, { 0x000120cd, 1, { 0x000120cd } }, { 0x000120ce, 1, { 0x000120ce } }, { 0x000120cf, 1, { 0x000120cf } }, { 0x000120d0, 1, { 0x000120d0 } }, { 0x000120d1, 1, { 0x000120d1 } }, { 0x000120d2, 1, { 0x000120d2 } }, { 0x000120d3, 1, { 0x000120d3 } }, { 0x000120d4, 1, { 0x000120d4 } }, { 0x000120d5, 1, { 0x000120d5 } }, { 0x000120d6, 1, { 0x000120d6 } }, { 0x000120d7, 1, { 0x000120d7 } }, { 0x000120d8, 1, { 0x000120d8 } }, { 0x000120d9, 1, { 0x000120d9 } }, { 0x000120da, 1, { 0x000120da } }, { 0x000120db, 1, { 0x000120db } }, { 0x000120dc, 1, { 0x000120dc } }, { 0x000120dd, 1, { 0x000120dd } }, { 0x000120de, 1, { 0x000120de } }, { 0x000120df, 1, { 0x000120df } }, { 0x000120e0, 1, { 0x000120e0 } }, { 0x000120e1, 1, { 0x000120e1 } }, { 0x000120e2, 1, { 0x000120e2 } }, { 0x000120e3, 1, { 0x000120e3 } }, { 0x000120e4, 1, { 0x000120e4 } }, { 0x000120e5, 1, { 0x000120e5 } }, { 0x000120e6, 1, { 0x000120e6 } }, { 0x000120e7, 1, { 0x000120e7 } }, { 0x000120e8, 1, { 0x000120e8 } }, { 0x000120e9, 1, { 0x000120e9 } }, { 0x000120ea, 1, { 0x000120ea } }, { 0x000120eb, 1, { 0x000120eb } }, { 0x000120ec, 1, { 0x000120ec } }, { 0x000120ed, 1, { 0x000120ed } }, { 0x000120ee, 1, { 0x000120ee } }, { 0x000120ef, 1, { 0x000120ef } }, { 0x000120f0, 1, { 0x000120f0 } }, { 0x000120f1, 1, { 0x000120f1 } }, { 0x000120f2, 1, { 0x000120f2 } }, { 0x000120f3, 1, { 0x000120f3 } }, { 0x000120f4, 1, { 0x000120f4 } }, { 0x000120f5, 1, { 0x000120f5 } }, { 0x000120f6, 1, { 0x000120f6 } }, { 0x000120f7, 1, { 0x000120f7 } }, { 0x000120f8, 1, { 0x000120f8 } }, { 0x000120f9, 1, { 0x000120f9 } }, { 0x000120fa, 1, { 0x000120fa } }, { 0x000120fb, 1, { 0x000120fb } }, { 0x000120fc, 1, { 0x000120fc } }, { 0x000120fd, 1, { 0x000120fd } }, { 0x000120fe, 1, { 0x000120fe } }, { 0x000120ff, 1, { 0x000120ff } }, { 0x00012100, 1, { 0x00012100 } }, { 0x00012101, 1, { 0x00012101 } }, { 0x00012102, 1, { 0x00012102 } }, { 0x00012103, 1, { 0x00012103 } }, { 0x00012104, 1, { 0x00012104 } }, { 0x00012105, 1, { 0x00012105 } }, { 0x00012106, 1, { 0x00012106 } }, { 0x00012107, 1, { 0x00012107 } }, { 0x00012108, 1, { 0x00012108 } }, { 0x00012109, 1, { 0x00012109 } }, { 0x0001210a, 1, { 0x0001210a } }, { 0x0001210b, 1, { 0x0001210b } }, { 0x0001210c, 1, { 0x0001210c } }, { 0x0001210d, 1, { 0x0001210d } }, { 0x0001210e, 1, { 0x0001210e } }, { 0x0001210f, 1, { 0x0001210f } }, { 0x00012110, 1, { 0x00012110 } }, { 0x00012111, 1, { 0x00012111 } }, { 0x00012112, 1, { 0x00012112 } }, { 0x00012113, 1, { 0x00012113 } }, { 0x00012114, 1, { 0x00012114 } }, { 0x00012115, 1, { 0x00012115 } }, { 0x00012116, 1, { 0x00012116 } }, { 0x00012117, 1, { 0x00012117 } }, { 0x00012118, 1, { 0x00012118 } }, { 0x00012119, 1, { 0x00012119 } }, { 0x0001211a, 1, { 0x0001211a } }, { 0x0001211b, 1, { 0x0001211b } }, { 0x0001211c, 1, { 0x0001211c } }, { 0x0001211d, 1, { 0x0001211d } }, { 0x0001211e, 1, { 0x0001211e } }, { 0x0001211f, 1, { 0x0001211f } }, { 0x00012120, 1, { 0x00012120 } }, { 0x00012121, 1, { 0x00012121 } }, { 0x00012122, 1, { 0x00012122 } }, { 0x00012123, 1, { 0x00012123 } }, { 0x00012124, 1, { 0x00012124 } }, { 0x00012125, 1, { 0x00012125 } }, { 0x00012126, 1, { 0x00012126 } }, { 0x00012127, 1, { 0x00012127 } }, { 0x00012128, 1, { 0x00012128 } }, { 0x00012129, 1, { 0x00012129 } }, { 0x0001212a, 1, { 0x0001212a } }, { 0x0001212b, 1, { 0x0001212b } }, { 0x0001212c, 1, { 0x0001212c } }, { 0x0001212d, 1, { 0x0001212d } }, { 0x0001212e, 1, { 0x0001212e } }, { 0x0001212f, 1, { 0x0001212f } }, { 0x00012130, 1, { 0x00012130 } }, { 0x00012131, 1, { 0x00012131 } }, { 0x00012132, 1, { 0x00012132 } }, { 0x00012133, 1, { 0x00012133 } }, { 0x00012134, 1, { 0x00012134 } }, { 0x00012135, 1, { 0x00012135 } }, { 0x00012136, 1, { 0x00012136 } }, { 0x00012137, 1, { 0x00012137 } }, { 0x00012138, 1, { 0x00012138 } }, { 0x00012139, 1, { 0x00012139 } }, { 0x0001213a, 1, { 0x0001213a } }, { 0x0001213b, 1, { 0x0001213b } }, { 0x0001213c, 1, { 0x0001213c } }, { 0x0001213d, 1, { 0x0001213d } }, { 0x0001213e, 1, { 0x0001213e } }, { 0x0001213f, 1, { 0x0001213f } }, { 0x00012140, 1, { 0x00012140 } }, { 0x00012141, 1, { 0x00012141 } }, { 0x00012142, 1, { 0x00012142 } }, { 0x00012143, 1, { 0x00012143 } }, { 0x00012144, 1, { 0x00012144 } }, { 0x00012145, 1, { 0x00012145 } }, { 0x00012146, 1, { 0x00012146 } }, { 0x00012147, 1, { 0x00012147 } }, { 0x00012148, 1, { 0x00012148 } }, { 0x00012149, 1, { 0x00012149 } }, { 0x0001214a, 1, { 0x0001214a } }, { 0x0001214b, 1, { 0x0001214b } }, { 0x0001214c, 1, { 0x0001214c } }, { 0x0001214d, 1, { 0x0001214d } }, { 0x0001214e, 1, { 0x0001214e } }, { 0x0001214f, 1, { 0x0001214f } }, { 0x00012150, 1, { 0x00012150 } }, { 0x00012151, 1, { 0x00012151 } }, { 0x00012152, 1, { 0x00012152 } }, { 0x00012153, 1, { 0x00012153 } }, { 0x00012154, 1, { 0x00012154 } }, { 0x00012155, 1, { 0x00012155 } }, { 0x00012156, 1, { 0x00012156 } }, { 0x00012157, 1, { 0x00012157 } }, { 0x00012158, 1, { 0x00012158 } }, { 0x00012159, 1, { 0x00012159 } }, { 0x0001215a, 1, { 0x0001215a } }, { 0x0001215b, 1, { 0x0001215b } }, { 0x0001215c, 1, { 0x0001215c } }, { 0x0001215d, 1, { 0x0001215d } }, { 0x0001215e, 1, { 0x0001215e } }, { 0x0001215f, 1, { 0x0001215f } }, { 0x00012160, 1, { 0x00012160 } }, { 0x00012161, 1, { 0x00012161 } }, { 0x00012162, 1, { 0x00012162 } }, { 0x00012163, 1, { 0x00012163 } }, { 0x00012164, 1, { 0x00012164 } }, { 0x00012165, 1, { 0x00012165 } }, { 0x00012166, 1, { 0x00012166 } }, { 0x00012167, 1, { 0x00012167 } }, { 0x00012168, 1, { 0x00012168 } }, { 0x00012169, 1, { 0x00012169 } }, { 0x0001216a, 1, { 0x0001216a } }, { 0x0001216b, 1, { 0x0001216b } }, { 0x0001216c, 1, { 0x0001216c } }, { 0x0001216d, 1, { 0x0001216d } }, { 0x0001216e, 1, { 0x0001216e } }, { 0x0001216f, 1, { 0x0001216f } }, { 0x00012170, 1, { 0x00012170 } }, { 0x00012171, 1, { 0x00012171 } }, { 0x00012172, 1, { 0x00012172 } }, { 0x00012173, 1, { 0x00012173 } }, { 0x00012174, 1, { 0x00012174 } }, { 0x00012175, 1, { 0x00012175 } }, { 0x00012176, 1, { 0x00012176 } }, { 0x00012177, 1, { 0x00012177 } }, { 0x00012178, 1, { 0x00012178 } }, { 0x00012179, 1, { 0x00012179 } }, { 0x0001217a, 1, { 0x0001217a } }, { 0x0001217b, 1, { 0x0001217b } }, { 0x0001217c, 1, { 0x0001217c } }, { 0x0001217d, 1, { 0x0001217d } }, { 0x0001217e, 1, { 0x0001217e } }, { 0x0001217f, 1, { 0x0001217f } }, { 0x00012180, 1, { 0x00012180 } }, { 0x00012181, 1, { 0x00012181 } }, { 0x00012182, 1, { 0x00012182 } }, { 0x00012183, 1, { 0x00012183 } }, { 0x00012184, 1, { 0x00012184 } }, { 0x00012185, 1, { 0x00012185 } }, { 0x00012186, 1, { 0x00012186 } }, { 0x00012187, 1, { 0x00012187 } }, { 0x00012188, 1, { 0x00012188 } }, { 0x00012189, 1, { 0x00012189 } }, { 0x0001218a, 1, { 0x0001218a } }, { 0x0001218b, 1, { 0x0001218b } }, { 0x0001218c, 1, { 0x0001218c } }, { 0x0001218d, 1, { 0x0001218d } }, { 0x0001218e, 1, { 0x0001218e } }, { 0x0001218f, 1, { 0x0001218f } }, { 0x00012190, 1, { 0x00012190 } }, { 0x00012191, 1, { 0x00012191 } }, { 0x00012192, 1, { 0x00012192 } }, { 0x00012193, 1, { 0x00012193 } }, { 0x00012194, 1, { 0x00012194 } }, { 0x00012195, 1, { 0x00012195 } }, { 0x00012196, 1, { 0x00012196 } }, { 0x00012197, 1, { 0x00012197 } }, { 0x00012198, 1, { 0x00012198 } }, { 0x00012199, 1, { 0x00012199 } }, { 0x0001219a, 1, { 0x0001219a } }, { 0x0001219b, 1, { 0x0001219b } }, { 0x0001219c, 1, { 0x0001219c } }, { 0x0001219d, 1, { 0x0001219d } }, { 0x0001219e, 1, { 0x0001219e } }, { 0x0001219f, 1, { 0x0001219f } }, { 0x000121a0, 1, { 0x000121a0 } }, { 0x000121a1, 1, { 0x000121a1 } }, { 0x000121a2, 1, { 0x000121a2 } }, { 0x000121a3, 1, { 0x000121a3 } }, { 0x000121a4, 1, { 0x000121a4 } }, { 0x000121a5, 1, { 0x000121a5 } }, { 0x000121a6, 1, { 0x000121a6 } }, { 0x000121a7, 1, { 0x000121a7 } }, { 0x000121a8, 1, { 0x000121a8 } }, { 0x000121a9, 1, { 0x000121a9 } }, { 0x000121aa, 1, { 0x000121aa } }, { 0x000121ab, 1, { 0x000121ab } }, { 0x000121ac, 1, { 0x000121ac } }, { 0x000121ad, 1, { 0x000121ad } }, { 0x000121ae, 1, { 0x000121ae } }, { 0x000121af, 1, { 0x000121af } }, { 0x000121b0, 1, { 0x000121b0 } }, { 0x000121b1, 1, { 0x000121b1 } }, { 0x000121b2, 1, { 0x000121b2 } }, { 0x000121b3, 1, { 0x000121b3 } }, { 0x000121b4, 1, { 0x000121b4 } }, { 0x000121b5, 1, { 0x000121b5 } }, { 0x000121b6, 1, { 0x000121b6 } }, { 0x000121b7, 1, { 0x000121b7 } }, { 0x000121b8, 1, { 0x000121b8 } }, { 0x000121b9, 1, { 0x000121b9 } }, { 0x000121ba, 1, { 0x000121ba } }, { 0x000121bb, 1, { 0x000121bb } }, { 0x000121bc, 1, { 0x000121bc } }, { 0x000121bd, 1, { 0x000121bd } }, { 0x000121be, 1, { 0x000121be } }, { 0x000121bf, 1, { 0x000121bf } }, { 0x000121c0, 1, { 0x000121c0 } }, { 0x000121c1, 1, { 0x000121c1 } }, { 0x000121c2, 1, { 0x000121c2 } }, { 0x000121c3, 1, { 0x000121c3 } }, { 0x000121c4, 1, { 0x000121c4 } }, { 0x000121c5, 1, { 0x000121c5 } }, { 0x000121c6, 1, { 0x000121c6 } }, { 0x000121c7, 1, { 0x000121c7 } }, { 0x000121c8, 1, { 0x000121c8 } }, { 0x000121c9, 1, { 0x000121c9 } }, { 0x000121ca, 1, { 0x000121ca } }, { 0x000121cb, 1, { 0x000121cb } }, { 0x000121cc, 1, { 0x000121cc } }, { 0x000121cd, 1, { 0x000121cd } }, { 0x000121ce, 1, { 0x000121ce } }, { 0x000121cf, 1, { 0x000121cf } }, { 0x000121d0, 1, { 0x000121d0 } }, { 0x000121d1, 1, { 0x000121d1 } }, { 0x000121d2, 1, { 0x000121d2 } }, { 0x000121d3, 1, { 0x000121d3 } }, { 0x000121d4, 1, { 0x000121d4 } }, { 0x000121d5, 1, { 0x000121d5 } }, { 0x000121d6, 1, { 0x000121d6 } }, { 0x000121d7, 1, { 0x000121d7 } }, { 0x000121d8, 1, { 0x000121d8 } }, { 0x000121d9, 1, { 0x000121d9 } }, { 0x000121da, 1, { 0x000121da } }, { 0x000121db, 1, { 0x000121db } }, { 0x000121dc, 1, { 0x000121dc } }, { 0x000121dd, 1, { 0x000121dd } }, { 0x000121de, 1, { 0x000121de } }, { 0x000121df, 1, { 0x000121df } }, { 0x000121e0, 1, { 0x000121e0 } }, { 0x000121e1, 1, { 0x000121e1 } }, { 0x000121e2, 1, { 0x000121e2 } }, { 0x000121e3, 1, { 0x000121e3 } }, { 0x000121e4, 1, { 0x000121e4 } }, { 0x000121e5, 1, { 0x000121e5 } }, { 0x000121e6, 1, { 0x000121e6 } }, { 0x000121e7, 1, { 0x000121e7 } }, { 0x000121e8, 1, { 0x000121e8 } }, { 0x000121e9, 1, { 0x000121e9 } }, { 0x000121ea, 1, { 0x000121ea } }, { 0x000121eb, 1, { 0x000121eb } }, { 0x000121ec, 1, { 0x000121ec } }, { 0x000121ed, 1, { 0x000121ed } }, { 0x000121ee, 1, { 0x000121ee } }, { 0x000121ef, 1, { 0x000121ef } }, { 0x000121f0, 1, { 0x000121f0 } }, { 0x000121f1, 1, { 0x000121f1 } }, { 0x000121f2, 1, { 0x000121f2 } }, { 0x000121f3, 1, { 0x000121f3 } }, { 0x000121f4, 1, { 0x000121f4 } }, { 0x000121f5, 1, { 0x000121f5 } }, { 0x000121f6, 1, { 0x000121f6 } }, { 0x000121f7, 1, { 0x000121f7 } }, { 0x000121f8, 1, { 0x000121f8 } }, { 0x000121f9, 1, { 0x000121f9 } }, { 0x000121fa, 1, { 0x000121fa } }, { 0x000121fb, 1, { 0x000121fb } }, { 0x000121fc, 1, { 0x000121fc } }, { 0x000121fd, 1, { 0x000121fd } }, { 0x000121fe, 1, { 0x000121fe } }, { 0x000121ff, 1, { 0x000121ff } }, { 0x00012200, 1, { 0x00012200 } }, { 0x00012201, 1, { 0x00012201 } }, { 0x00012202, 1, { 0x00012202 } }, { 0x00012203, 1, { 0x00012203 } }, { 0x00012204, 1, { 0x00012204 } }, { 0x00012205, 1, { 0x00012205 } }, { 0x00012206, 1, { 0x00012206 } }, { 0x00012207, 1, { 0x00012207 } }, { 0x00012208, 1, { 0x00012208 } }, { 0x00012209, 1, { 0x00012209 } }, { 0x0001220a, 1, { 0x0001220a } }, { 0x0001220b, 1, { 0x0001220b } }, { 0x0001220c, 1, { 0x0001220c } }, { 0x0001220d, 1, { 0x0001220d } }, { 0x0001220e, 1, { 0x0001220e } }, { 0x0001220f, 1, { 0x0001220f } }, { 0x00012210, 1, { 0x00012210 } }, { 0x00012211, 1, { 0x00012211 } }, { 0x00012212, 1, { 0x00012212 } }, { 0x00012213, 1, { 0x00012213 } }, { 0x00012214, 1, { 0x00012214 } }, { 0x00012215, 1, { 0x00012215 } }, { 0x00012216, 1, { 0x00012216 } }, { 0x00012217, 1, { 0x00012217 } }, { 0x00012218, 1, { 0x00012218 } }, { 0x00012219, 1, { 0x00012219 } }, { 0x0001221a, 1, { 0x0001221a } }, { 0x0001221b, 1, { 0x0001221b } }, { 0x0001221c, 1, { 0x0001221c } }, { 0x0001221d, 1, { 0x0001221d } }, { 0x0001221e, 1, { 0x0001221e } }, { 0x0001221f, 1, { 0x0001221f } }, { 0x00012220, 1, { 0x00012220 } }, { 0x00012221, 1, { 0x00012221 } }, { 0x00012222, 1, { 0x00012222 } }, { 0x00012223, 1, { 0x00012223 } }, { 0x00012224, 1, { 0x00012224 } }, { 0x00012225, 1, { 0x00012225 } }, { 0x00012226, 1, { 0x00012226 } }, { 0x00012227, 1, { 0x00012227 } }, { 0x00012228, 1, { 0x00012228 } }, { 0x00012229, 1, { 0x00012229 } }, { 0x0001222a, 1, { 0x0001222a } }, { 0x0001222b, 1, { 0x0001222b } }, { 0x0001222c, 1, { 0x0001222c } }, { 0x0001222d, 1, { 0x0001222d } }, { 0x0001222e, 1, { 0x0001222e } }, { 0x0001222f, 1, { 0x0001222f } }, { 0x00012230, 1, { 0x00012230 } }, { 0x00012231, 1, { 0x00012231 } }, { 0x00012232, 1, { 0x00012232 } }, { 0x00012233, 1, { 0x00012233 } }, { 0x00012234, 1, { 0x00012234 } }, { 0x00012235, 1, { 0x00012235 } }, { 0x00012236, 1, { 0x00012236 } }, { 0x00012237, 1, { 0x00012237 } }, { 0x00012238, 1, { 0x00012238 } }, { 0x00012239, 1, { 0x00012239 } }, { 0x0001223a, 1, { 0x0001223a } }, { 0x0001223b, 1, { 0x0001223b } }, { 0x0001223c, 1, { 0x0001223c } }, { 0x0001223d, 1, { 0x0001223d } }, { 0x0001223e, 1, { 0x0001223e } }, { 0x0001223f, 1, { 0x0001223f } }, { 0x00012240, 1, { 0x00012240 } }, { 0x00012241, 1, { 0x00012241 } }, { 0x00012242, 1, { 0x00012242 } }, { 0x00012243, 1, { 0x00012243 } }, { 0x00012244, 1, { 0x00012244 } }, { 0x00012245, 1, { 0x00012245 } }, { 0x00012246, 1, { 0x00012246 } }, { 0x00012247, 1, { 0x00012247 } }, { 0x00012248, 1, { 0x00012248 } }, { 0x00012249, 1, { 0x00012249 } }, { 0x0001224a, 1, { 0x0001224a } }, { 0x0001224b, 1, { 0x0001224b } }, { 0x0001224c, 1, { 0x0001224c } }, { 0x0001224d, 1, { 0x0001224d } }, { 0x0001224e, 1, { 0x0001224e } }, { 0x0001224f, 1, { 0x0001224f } }, { 0x00012250, 1, { 0x00012250 } }, { 0x00012251, 1, { 0x00012251 } }, { 0x00012252, 1, { 0x00012252 } }, { 0x00012253, 1, { 0x00012253 } }, { 0x00012254, 1, { 0x00012254 } }, { 0x00012255, 1, { 0x00012255 } }, { 0x00012256, 1, { 0x00012256 } }, { 0x00012257, 1, { 0x00012257 } }, { 0x00012258, 1, { 0x00012258 } }, { 0x00012259, 1, { 0x00012259 } }, { 0x0001225a, 1, { 0x0001225a } }, { 0x0001225b, 1, { 0x0001225b } }, { 0x0001225c, 1, { 0x0001225c } }, { 0x0001225d, 1, { 0x0001225d } }, { 0x0001225e, 1, { 0x0001225e } }, { 0x0001225f, 1, { 0x0001225f } }, { 0x00012260, 1, { 0x00012260 } }, { 0x00012261, 1, { 0x00012261 } }, { 0x00012262, 1, { 0x00012262 } }, { 0x00012263, 1, { 0x00012263 } }, { 0x00012264, 1, { 0x00012264 } }, { 0x00012265, 1, { 0x00012265 } }, { 0x00012266, 1, { 0x00012266 } }, { 0x00012267, 1, { 0x00012267 } }, { 0x00012268, 1, { 0x00012268 } }, { 0x00012269, 1, { 0x00012269 } }, { 0x0001226a, 1, { 0x0001226a } }, { 0x0001226b, 1, { 0x0001226b } }, { 0x0001226c, 1, { 0x0001226c } }, { 0x0001226d, 1, { 0x0001226d } }, { 0x0001226e, 1, { 0x0001226e } }, { 0x0001226f, 1, { 0x0001226f } }, { 0x00012270, 1, { 0x00012270 } }, { 0x00012271, 1, { 0x00012271 } }, { 0x00012272, 1, { 0x00012272 } }, { 0x00012273, 1, { 0x00012273 } }, { 0x00012274, 1, { 0x00012274 } }, { 0x00012275, 1, { 0x00012275 } }, { 0x00012276, 1, { 0x00012276 } }, { 0x00012277, 1, { 0x00012277 } }, { 0x00012278, 1, { 0x00012278 } }, { 0x00012279, 1, { 0x00012279 } }, { 0x0001227a, 1, { 0x0001227a } }, { 0x0001227b, 1, { 0x0001227b } }, { 0x0001227c, 1, { 0x0001227c } }, { 0x0001227d, 1, { 0x0001227d } }, { 0x0001227e, 1, { 0x0001227e } }, { 0x0001227f, 1, { 0x0001227f } }, { 0x00012280, 1, { 0x00012280 } }, { 0x00012281, 1, { 0x00012281 } }, { 0x00012282, 1, { 0x00012282 } }, { 0x00012283, 1, { 0x00012283 } }, { 0x00012284, 1, { 0x00012284 } }, { 0x00012285, 1, { 0x00012285 } }, { 0x00012286, 1, { 0x00012286 } }, { 0x00012287, 1, { 0x00012287 } }, { 0x00012288, 1, { 0x00012288 } }, { 0x00012289, 1, { 0x00012289 } }, { 0x0001228a, 1, { 0x0001228a } }, { 0x0001228b, 1, { 0x0001228b } }, { 0x0001228c, 1, { 0x0001228c } }, { 0x0001228d, 1, { 0x0001228d } }, { 0x0001228e, 1, { 0x0001228e } }, { 0x0001228f, 1, { 0x0001228f } }, { 0x00012290, 1, { 0x00012290 } }, { 0x00012291, 1, { 0x00012291 } }, { 0x00012292, 1, { 0x00012292 } }, { 0x00012293, 1, { 0x00012293 } }, { 0x00012294, 1, { 0x00012294 } }, { 0x00012295, 1, { 0x00012295 } }, { 0x00012296, 1, { 0x00012296 } }, { 0x00012297, 1, { 0x00012297 } }, { 0x00012298, 1, { 0x00012298 } }, { 0x00012299, 1, { 0x00012299 } }, { 0x0001229a, 1, { 0x0001229a } }, { 0x0001229b, 1, { 0x0001229b } }, { 0x0001229c, 1, { 0x0001229c } }, { 0x0001229d, 1, { 0x0001229d } }, { 0x0001229e, 1, { 0x0001229e } }, { 0x0001229f, 1, { 0x0001229f } }, { 0x000122a0, 1, { 0x000122a0 } }, { 0x000122a1, 1, { 0x000122a1 } }, { 0x000122a2, 1, { 0x000122a2 } }, { 0x000122a3, 1, { 0x000122a3 } }, { 0x000122a4, 1, { 0x000122a4 } }, { 0x000122a5, 1, { 0x000122a5 } }, { 0x000122a6, 1, { 0x000122a6 } }, { 0x000122a7, 1, { 0x000122a7 } }, { 0x000122a8, 1, { 0x000122a8 } }, { 0x000122a9, 1, { 0x000122a9 } }, { 0x000122aa, 1, { 0x000122aa } }, { 0x000122ab, 1, { 0x000122ab } }, { 0x000122ac, 1, { 0x000122ac } }, { 0x000122ad, 1, { 0x000122ad } }, { 0x000122ae, 1, { 0x000122ae } }, { 0x000122af, 1, { 0x000122af } }, { 0x000122b0, 1, { 0x000122b0 } }, { 0x000122b1, 1, { 0x000122b1 } }, { 0x000122b2, 1, { 0x000122b2 } }, { 0x000122b3, 1, { 0x000122b3 } }, { 0x000122b4, 1, { 0x000122b4 } }, { 0x000122b5, 1, { 0x000122b5 } }, { 0x000122b6, 1, { 0x000122b6 } }, { 0x000122b7, 1, { 0x000122b7 } }, { 0x000122b8, 1, { 0x000122b8 } }, { 0x000122b9, 1, { 0x000122b9 } }, { 0x000122ba, 1, { 0x000122ba } }, { 0x000122bb, 1, { 0x000122bb } }, { 0x000122bc, 1, { 0x000122bc } }, { 0x000122bd, 1, { 0x000122bd } }, { 0x000122be, 1, { 0x000122be } }, { 0x000122bf, 1, { 0x000122bf } }, { 0x000122c0, 1, { 0x000122c0 } }, { 0x000122c1, 1, { 0x000122c1 } }, { 0x000122c2, 1, { 0x000122c2 } }, { 0x000122c3, 1, { 0x000122c3 } }, { 0x000122c4, 1, { 0x000122c4 } }, { 0x000122c5, 1, { 0x000122c5 } }, { 0x000122c6, 1, { 0x000122c6 } }, { 0x000122c7, 1, { 0x000122c7 } }, { 0x000122c8, 1, { 0x000122c8 } }, { 0x000122c9, 1, { 0x000122c9 } }, { 0x000122ca, 1, { 0x000122ca } }, { 0x000122cb, 1, { 0x000122cb } }, { 0x000122cc, 1, { 0x000122cc } }, { 0x000122cd, 1, { 0x000122cd } }, { 0x000122ce, 1, { 0x000122ce } }, { 0x000122cf, 1, { 0x000122cf } }, { 0x000122d0, 1, { 0x000122d0 } }, { 0x000122d1, 1, { 0x000122d1 } }, { 0x000122d2, 1, { 0x000122d2 } }, { 0x000122d3, 1, { 0x000122d3 } }, { 0x000122d4, 1, { 0x000122d4 } }, { 0x000122d5, 1, { 0x000122d5 } }, { 0x000122d6, 1, { 0x000122d6 } }, { 0x000122d7, 1, { 0x000122d7 } }, { 0x000122d8, 1, { 0x000122d8 } }, { 0x000122d9, 1, { 0x000122d9 } }, { 0x000122da, 1, { 0x000122da } }, { 0x000122db, 1, { 0x000122db } }, { 0x000122dc, 1, { 0x000122dc } }, { 0x000122dd, 1, { 0x000122dd } }, { 0x000122de, 1, { 0x000122de } }, { 0x000122df, 1, { 0x000122df } }, { 0x000122e0, 1, { 0x000122e0 } }, { 0x000122e1, 1, { 0x000122e1 } }, { 0x000122e2, 1, { 0x000122e2 } }, { 0x000122e3, 1, { 0x000122e3 } }, { 0x000122e4, 1, { 0x000122e4 } }, { 0x000122e5, 1, { 0x000122e5 } }, { 0x000122e6, 1, { 0x000122e6 } }, { 0x000122e7, 1, { 0x000122e7 } }, { 0x000122e8, 1, { 0x000122e8 } }, { 0x000122e9, 1, { 0x000122e9 } }, { 0x000122ea, 1, { 0x000122ea } }, { 0x000122eb, 1, { 0x000122eb } }, { 0x000122ec, 1, { 0x000122ec } }, { 0x000122ed, 1, { 0x000122ed } }, { 0x000122ee, 1, { 0x000122ee } }, { 0x000122ef, 1, { 0x000122ef } }, { 0x000122f0, 1, { 0x000122f0 } }, { 0x000122f1, 1, { 0x000122f1 } }, { 0x000122f2, 1, { 0x000122f2 } }, { 0x000122f3, 1, { 0x000122f3 } }, { 0x000122f4, 1, { 0x000122f4 } }, { 0x000122f5, 1, { 0x000122f5 } }, { 0x000122f6, 1, { 0x000122f6 } }, { 0x000122f7, 1, { 0x000122f7 } }, { 0x000122f8, 1, { 0x000122f8 } }, { 0x000122f9, 1, { 0x000122f9 } }, { 0x000122fa, 1, { 0x000122fa } }, { 0x000122fb, 1, { 0x000122fb } }, { 0x000122fc, 1, { 0x000122fc } }, { 0x000122fd, 1, { 0x000122fd } }, { 0x000122fe, 1, { 0x000122fe } }, { 0x000122ff, 1, { 0x000122ff } }, { 0x00012300, 1, { 0x00012300 } }, { 0x00012301, 1, { 0x00012301 } }, { 0x00012302, 1, { 0x00012302 } }, { 0x00012303, 1, { 0x00012303 } }, { 0x00012304, 1, { 0x00012304 } }, { 0x00012305, 1, { 0x00012305 } }, { 0x00012306, 1, { 0x00012306 } }, { 0x00012307, 1, { 0x00012307 } }, { 0x00012308, 1, { 0x00012308 } }, { 0x00012309, 1, { 0x00012309 } }, { 0x0001230a, 1, { 0x0001230a } }, { 0x0001230b, 1, { 0x0001230b } }, { 0x0001230c, 1, { 0x0001230c } }, { 0x0001230d, 1, { 0x0001230d } }, { 0x0001230e, 1, { 0x0001230e } }, { 0x0001230f, 1, { 0x0001230f } }, { 0x00012310, 1, { 0x00012310 } }, { 0x00012311, 1, { 0x00012311 } }, { 0x00012312, 1, { 0x00012312 } }, { 0x00012313, 1, { 0x00012313 } }, { 0x00012314, 1, { 0x00012314 } }, { 0x00012315, 1, { 0x00012315 } }, { 0x00012316, 1, { 0x00012316 } }, { 0x00012317, 1, { 0x00012317 } }, { 0x00012318, 1, { 0x00012318 } }, { 0x00012319, 1, { 0x00012319 } }, { 0x0001231a, 1, { 0x0001231a } }, { 0x0001231b, 1, { 0x0001231b } }, { 0x0001231c, 1, { 0x0001231c } }, { 0x0001231d, 1, { 0x0001231d } }, { 0x0001231e, 1, { 0x0001231e } }, { 0x0001231f, 1, { 0x0001231f } }, { 0x00012320, 1, { 0x00012320 } }, { 0x00012321, 1, { 0x00012321 } }, { 0x00012322, 1, { 0x00012322 } }, { 0x00012323, 1, { 0x00012323 } }, { 0x00012324, 1, { 0x00012324 } }, { 0x00012325, 1, { 0x00012325 } }, { 0x00012326, 1, { 0x00012326 } }, { 0x00012327, 1, { 0x00012327 } }, { 0x00012328, 1, { 0x00012328 } }, { 0x00012329, 1, { 0x00012329 } }, { 0x0001232a, 1, { 0x0001232a } }, { 0x0001232b, 1, { 0x0001232b } }, { 0x0001232c, 1, { 0x0001232c } }, { 0x0001232d, 1, { 0x0001232d } }, { 0x0001232e, 1, { 0x0001232e } }, { 0x0001232f, 1, { 0x0001232f } }, { 0x00012330, 1, { 0x00012330 } }, { 0x00012331, 1, { 0x00012331 } }, { 0x00012332, 1, { 0x00012332 } }, { 0x00012333, 1, { 0x00012333 } }, { 0x00012334, 1, { 0x00012334 } }, { 0x00012335, 1, { 0x00012335 } }, { 0x00012336, 1, { 0x00012336 } }, { 0x00012337, 1, { 0x00012337 } }, { 0x00012338, 1, { 0x00012338 } }, { 0x00012339, 1, { 0x00012339 } }, { 0x0001233a, 1, { 0x0001233a } }, { 0x0001233b, 1, { 0x0001233b } }, { 0x0001233c, 1, { 0x0001233c } }, { 0x0001233d, 1, { 0x0001233d } }, { 0x0001233e, 1, { 0x0001233e } }, { 0x0001233f, 1, { 0x0001233f } }, { 0x00012340, 1, { 0x00012340 } }, { 0x00012341, 1, { 0x00012341 } }, { 0x00012342, 1, { 0x00012342 } }, { 0x00012343, 1, { 0x00012343 } }, { 0x00012344, 1, { 0x00012344 } }, { 0x00012345, 1, { 0x00012345 } }, { 0x00012346, 1, { 0x00012346 } }, { 0x00012347, 1, { 0x00012347 } }, { 0x00012348, 1, { 0x00012348 } }, { 0x00012349, 1, { 0x00012349 } }, { 0x0001234a, 1, { 0x0001234a } }, { 0x0001234b, 1, { 0x0001234b } }, { 0x0001234c, 1, { 0x0001234c } }, { 0x0001234d, 1, { 0x0001234d } }, { 0x0001234e, 1, { 0x0001234e } }, { 0x0001234f, 1, { 0x0001234f } }, { 0x00012350, 1, { 0x00012350 } }, { 0x00012351, 1, { 0x00012351 } }, { 0x00012352, 1, { 0x00012352 } }, { 0x00012353, 1, { 0x00012353 } }, { 0x00012354, 1, { 0x00012354 } }, { 0x00012355, 1, { 0x00012355 } }, { 0x00012356, 1, { 0x00012356 } }, { 0x00012357, 1, { 0x00012357 } }, { 0x00012358, 1, { 0x00012358 } }, { 0x00012359, 1, { 0x00012359 } }, { 0x0001235a, 1, { 0x0001235a } }, { 0x0001235b, 1, { 0x0001235b } }, { 0x0001235c, 1, { 0x0001235c } }, { 0x0001235d, 1, { 0x0001235d } }, { 0x0001235e, 1, { 0x0001235e } }, { 0x0001235f, 1, { 0x0001235f } }, { 0x00012360, 1, { 0x00012360 } }, { 0x00012361, 1, { 0x00012361 } }, { 0x00012362, 1, { 0x00012362 } }, { 0x00012363, 1, { 0x00012363 } }, { 0x00012364, 1, { 0x00012364 } }, { 0x00012365, 1, { 0x00012365 } }, { 0x00012366, 1, { 0x00012366 } }, { 0x00012367, 1, { 0x00012367 } }, { 0x00012368, 1, { 0x00012368 } }, { 0x00012369, 1, { 0x00012369 } }, { 0x0001236a, 1, { 0x0001236a } }, { 0x0001236b, 1, { 0x0001236b } }, { 0x0001236c, 1, { 0x0001236c } }, { 0x0001236d, 1, { 0x0001236d } }, { 0x0001236e, 1, { 0x0001236e } }, { 0x0001236f, 1, { 0x0001236f } }, { 0x00012370, 1, { 0x00012370 } }, { 0x00012371, 1, { 0x00012371 } }, { 0x00012372, 1, { 0x00012372 } }, { 0x00012373, 1, { 0x00012373 } }, { 0x00012374, 1, { 0x00012374 } }, { 0x00012375, 1, { 0x00012375 } }, { 0x00012376, 1, { 0x00012376 } }, { 0x00012377, 1, { 0x00012377 } }, { 0x00012378, 1, { 0x00012378 } }, { 0x00012379, 1, { 0x00012379 } }, { 0x0001237a, 1, { 0x0001237a } }, { 0x0001237b, 1, { 0x0001237b } }, { 0x0001237c, 1, { 0x0001237c } }, { 0x0001237d, 1, { 0x0001237d } }, { 0x0001237e, 1, { 0x0001237e } }, { 0x0001237f, 1, { 0x0001237f } }, { 0x00012380, 1, { 0x00012380 } }, { 0x00012381, 1, { 0x00012381 } }, { 0x00012382, 1, { 0x00012382 } }, { 0x00012383, 1, { 0x00012383 } }, { 0x00012384, 1, { 0x00012384 } }, { 0x00012385, 1, { 0x00012385 } }, { 0x00012386, 1, { 0x00012386 } }, { 0x00012387, 1, { 0x00012387 } }, { 0x00012388, 1, { 0x00012388 } }, { 0x00012389, 1, { 0x00012389 } }, { 0x0001238a, 1, { 0x0001238a } }, { 0x0001238b, 1, { 0x0001238b } }, { 0x0001238c, 1, { 0x0001238c } }, { 0x0001238d, 1, { 0x0001238d } }, { 0x0001238e, 1, { 0x0001238e } }, { 0x0001238f, 1, { 0x0001238f } }, { 0x00012390, 1, { 0x00012390 } }, { 0x00012391, 1, { 0x00012391 } }, { 0x00012392, 1, { 0x00012392 } }, { 0x00012393, 1, { 0x00012393 } }, { 0x00012394, 1, { 0x00012394 } }, { 0x00012395, 1, { 0x00012395 } }, { 0x00012396, 1, { 0x00012396 } }, { 0x00012397, 1, { 0x00012397 } }, { 0x00012398, 1, { 0x00012398 } }, { 0x00012399, 1, { 0x00012399 } }, { 0x00012400, 1, { 0x00012400 } }, { 0x00012401, 1, { 0x00012401 } }, { 0x00012402, 1, { 0x00012402 } }, { 0x00012403, 1, { 0x00012403 } }, { 0x00012404, 1, { 0x00012404 } }, { 0x00012405, 1, { 0x00012405 } }, { 0x00012406, 1, { 0x00012406 } }, { 0x00012407, 1, { 0x00012407 } }, { 0x00012408, 1, { 0x00012408 } }, { 0x00012409, 1, { 0x00012409 } }, { 0x0001240a, 1, { 0x0001240a } }, { 0x0001240b, 1, { 0x0001240b } }, { 0x0001240c, 1, { 0x0001240c } }, { 0x0001240d, 1, { 0x0001240d } }, { 0x0001240e, 1, { 0x0001240e } }, { 0x0001240f, 1, { 0x0001240f } }, { 0x00012410, 1, { 0x00012410 } }, { 0x00012411, 1, { 0x00012411 } }, { 0x00012412, 1, { 0x00012412 } }, { 0x00012413, 1, { 0x00012413 } }, { 0x00012414, 1, { 0x00012414 } }, { 0x00012415, 1, { 0x00012415 } }, { 0x00012416, 1, { 0x00012416 } }, { 0x00012417, 1, { 0x00012417 } }, { 0x00012418, 1, { 0x00012418 } }, { 0x00012419, 1, { 0x00012419 } }, { 0x0001241a, 1, { 0x0001241a } }, { 0x0001241b, 1, { 0x0001241b } }, { 0x0001241c, 1, { 0x0001241c } }, { 0x0001241d, 1, { 0x0001241d } }, { 0x0001241e, 1, { 0x0001241e } }, { 0x0001241f, 1, { 0x0001241f } }, { 0x00012420, 1, { 0x00012420 } }, { 0x00012421, 1, { 0x00012421 } }, { 0x00012422, 1, { 0x00012422 } }, { 0x00012423, 1, { 0x00012423 } }, { 0x00012424, 1, { 0x00012424 } }, { 0x00012425, 1, { 0x00012425 } }, { 0x00012426, 1, { 0x00012426 } }, { 0x00012427, 1, { 0x00012427 } }, { 0x00012428, 1, { 0x00012428 } }, { 0x00012429, 1, { 0x00012429 } }, { 0x0001242a, 1, { 0x0001242a } }, { 0x0001242b, 1, { 0x0001242b } }, { 0x0001242c, 1, { 0x0001242c } }, { 0x0001242d, 1, { 0x0001242d } }, { 0x0001242e, 1, { 0x0001242e } }, { 0x0001242f, 1, { 0x0001242f } }, { 0x00012430, 1, { 0x00012430 } }, { 0x00012431, 1, { 0x00012431 } }, { 0x00012432, 1, { 0x00012432 } }, { 0x00012433, 1, { 0x00012433 } }, { 0x00012434, 1, { 0x00012434 } }, { 0x00012435, 1, { 0x00012435 } }, { 0x00012436, 1, { 0x00012436 } }, { 0x00012437, 1, { 0x00012437 } }, { 0x00012438, 1, { 0x00012438 } }, { 0x00012439, 1, { 0x00012439 } }, { 0x0001243a, 1, { 0x0001243a } }, { 0x0001243b, 1, { 0x0001243b } }, { 0x0001243c, 1, { 0x0001243c } }, { 0x0001243d, 1, { 0x0001243d } }, { 0x0001243e, 1, { 0x0001243e } }, { 0x0001243f, 1, { 0x0001243f } }, { 0x00012440, 1, { 0x00012440 } }, { 0x00012441, 1, { 0x00012441 } }, { 0x00012442, 1, { 0x00012442 } }, { 0x00012443, 1, { 0x00012443 } }, { 0x00012444, 1, { 0x00012444 } }, { 0x00012445, 1, { 0x00012445 } }, { 0x00012446, 1, { 0x00012446 } }, { 0x00012447, 1, { 0x00012447 } }, { 0x00012448, 1, { 0x00012448 } }, { 0x00012449, 1, { 0x00012449 } }, { 0x0001244a, 1, { 0x0001244a } }, { 0x0001244b, 1, { 0x0001244b } }, { 0x0001244c, 1, { 0x0001244c } }, { 0x0001244d, 1, { 0x0001244d } }, { 0x0001244e, 1, { 0x0001244e } }, { 0x0001244f, 1, { 0x0001244f } }, { 0x00012450, 1, { 0x00012450 } }, { 0x00012451, 1, { 0x00012451 } }, { 0x00012452, 1, { 0x00012452 } }, { 0x00012453, 1, { 0x00012453 } }, { 0x00012454, 1, { 0x00012454 } }, { 0x00012455, 1, { 0x00012455 } }, { 0x00012456, 1, { 0x00012456 } }, { 0x00012457, 1, { 0x00012457 } }, { 0x00012458, 1, { 0x00012458 } }, { 0x00012459, 1, { 0x00012459 } }, { 0x0001245a, 1, { 0x0001245a } }, { 0x0001245b, 1, { 0x0001245b } }, { 0x0001245c, 1, { 0x0001245c } }, { 0x0001245d, 1, { 0x0001245d } }, { 0x0001245e, 1, { 0x0001245e } }, { 0x0001245f, 1, { 0x0001245f } }, { 0x00012460, 1, { 0x00012460 } }, { 0x00012461, 1, { 0x00012461 } }, { 0x00012462, 1, { 0x00012462 } }, { 0x00012463, 1, { 0x00012463 } }, { 0x00012464, 1, { 0x00012464 } }, { 0x00012465, 1, { 0x00012465 } }, { 0x00012466, 1, { 0x00012466 } }, { 0x00012467, 1, { 0x00012467 } }, { 0x00012468, 1, { 0x00012468 } }, { 0x00012469, 1, { 0x00012469 } }, { 0x0001246a, 1, { 0x0001246a } }, { 0x0001246b, 1, { 0x0001246b } }, { 0x0001246c, 1, { 0x0001246c } }, { 0x0001246d, 1, { 0x0001246d } }, { 0x0001246e, 1, { 0x0001246e } }, { 0x00012470, 1, { 0x00012470 } }, { 0x00012471, 1, { 0x00012471 } }, { 0x00012472, 1, { 0x00012472 } }, { 0x00012473, 1, { 0x00012473 } }, { 0x00012474, 1, { 0x00012474 } }, { 0x00012480, 1, { 0x00012480 } }, { 0x00012481, 1, { 0x00012481 } }, { 0x00012482, 1, { 0x00012482 } }, { 0x00012483, 1, { 0x00012483 } }, { 0x00012484, 1, { 0x00012484 } }, { 0x00012485, 1, { 0x00012485 } }, { 0x00012486, 1, { 0x00012486 } }, { 0x00012487, 1, { 0x00012487 } }, { 0x00012488, 1, { 0x00012488 } }, { 0x00012489, 1, { 0x00012489 } }, { 0x0001248a, 1, { 0x0001248a } }, { 0x0001248b, 1, { 0x0001248b } }, { 0x0001248c, 1, { 0x0001248c } }, { 0x0001248d, 1, { 0x0001248d } }, { 0x0001248e, 1, { 0x0001248e } }, { 0x0001248f, 1, { 0x0001248f } }, { 0x00012490, 1, { 0x00012490 } }, { 0x00012491, 1, { 0x00012491 } }, { 0x00012492, 1, { 0x00012492 } }, { 0x00012493, 1, { 0x00012493 } }, { 0x00012494, 1, { 0x00012494 } }, { 0x00012495, 1, { 0x00012495 } }, { 0x00012496, 1, { 0x00012496 } }, { 0x00012497, 1, { 0x00012497 } }, { 0x00012498, 1, { 0x00012498 } }, { 0x00012499, 1, { 0x00012499 } }, { 0x0001249a, 1, { 0x0001249a } }, { 0x0001249b, 1, { 0x0001249b } }, { 0x0001249c, 1, { 0x0001249c } }, { 0x0001249d, 1, { 0x0001249d } }, { 0x0001249e, 1, { 0x0001249e } }, { 0x0001249f, 1, { 0x0001249f } }, { 0x000124a0, 1, { 0x000124a0 } }, { 0x000124a1, 1, { 0x000124a1 } }, { 0x000124a2, 1, { 0x000124a2 } }, { 0x000124a3, 1, { 0x000124a3 } }, { 0x000124a4, 1, { 0x000124a4 } }, { 0x000124a5, 1, { 0x000124a5 } }, { 0x000124a6, 1, { 0x000124a6 } }, { 0x000124a7, 1, { 0x000124a7 } }, { 0x000124a8, 1, { 0x000124a8 } }, { 0x000124a9, 1, { 0x000124a9 } }, { 0x000124aa, 1, { 0x000124aa } }, { 0x000124ab, 1, { 0x000124ab } }, { 0x000124ac, 1, { 0x000124ac } }, { 0x000124ad, 1, { 0x000124ad } }, { 0x000124ae, 1, { 0x000124ae } }, { 0x000124af, 1, { 0x000124af } }, { 0x000124b0, 1, { 0x000124b0 } }, { 0x000124b1, 1, { 0x000124b1 } }, { 0x000124b2, 1, { 0x000124b2 } }, { 0x000124b3, 1, { 0x000124b3 } }, { 0x000124b4, 1, { 0x000124b4 } }, { 0x000124b5, 1, { 0x000124b5 } }, { 0x000124b6, 1, { 0x000124b6 } }, { 0x000124b7, 1, { 0x000124b7 } }, { 0x000124b8, 1, { 0x000124b8 } }, { 0x000124b9, 1, { 0x000124b9 } }, { 0x000124ba, 1, { 0x000124ba } }, { 0x000124bb, 1, { 0x000124bb } }, { 0x000124bc, 1, { 0x000124bc } }, { 0x000124bd, 1, { 0x000124bd } }, { 0x000124be, 1, { 0x000124be } }, { 0x000124bf, 1, { 0x000124bf } }, { 0x000124c0, 1, { 0x000124c0 } }, { 0x000124c1, 1, { 0x000124c1 } }, { 0x000124c2, 1, { 0x000124c2 } }, { 0x000124c3, 1, { 0x000124c3 } }, { 0x000124c4, 1, { 0x000124c4 } }, { 0x000124c5, 1, { 0x000124c5 } }, { 0x000124c6, 1, { 0x000124c6 } }, { 0x000124c7, 1, { 0x000124c7 } }, { 0x000124c8, 1, { 0x000124c8 } }, { 0x000124c9, 1, { 0x000124c9 } }, { 0x000124ca, 1, { 0x000124ca } }, { 0x000124cb, 1, { 0x000124cb } }, { 0x000124cc, 1, { 0x000124cc } }, { 0x000124cd, 1, { 0x000124cd } }, { 0x000124ce, 1, { 0x000124ce } }, { 0x000124cf, 1, { 0x000124cf } }, { 0x000124d0, 1, { 0x000124d0 } }, { 0x000124d1, 1, { 0x000124d1 } }, { 0x000124d2, 1, { 0x000124d2 } }, { 0x000124d3, 1, { 0x000124d3 } }, { 0x000124d4, 1, { 0x000124d4 } }, { 0x000124d5, 1, { 0x000124d5 } }, { 0x000124d6, 1, { 0x000124d6 } }, { 0x000124d7, 1, { 0x000124d7 } }, { 0x000124d8, 1, { 0x000124d8 } }, { 0x000124d9, 1, { 0x000124d9 } }, { 0x000124da, 1, { 0x000124da } }, { 0x000124db, 1, { 0x000124db } }, { 0x000124dc, 1, { 0x000124dc } }, { 0x000124dd, 1, { 0x000124dd } }, { 0x000124de, 1, { 0x000124de } }, { 0x000124df, 1, { 0x000124df } }, { 0x000124e0, 1, { 0x000124e0 } }, { 0x000124e1, 1, { 0x000124e1 } }, { 0x000124e2, 1, { 0x000124e2 } }, { 0x000124e3, 1, { 0x000124e3 } }, { 0x000124e4, 1, { 0x000124e4 } }, { 0x000124e5, 1, { 0x000124e5 } }, { 0x000124e6, 1, { 0x000124e6 } }, { 0x000124e7, 1, { 0x000124e7 } }, { 0x000124e8, 1, { 0x000124e8 } }, { 0x000124e9, 1, { 0x000124e9 } }, { 0x000124ea, 1, { 0x000124ea } }, { 0x000124eb, 1, { 0x000124eb } }, { 0x000124ec, 1, { 0x000124ec } }, { 0x000124ed, 1, { 0x000124ed } }, { 0x000124ee, 1, { 0x000124ee } }, { 0x000124ef, 1, { 0x000124ef } }, { 0x000124f0, 1, { 0x000124f0 } }, { 0x000124f1, 1, { 0x000124f1 } }, { 0x000124f2, 1, { 0x000124f2 } }, { 0x000124f3, 1, { 0x000124f3 } }, { 0x000124f4, 1, { 0x000124f4 } }, { 0x000124f5, 1, { 0x000124f5 } }, { 0x000124f6, 1, { 0x000124f6 } }, { 0x000124f7, 1, { 0x000124f7 } }, { 0x000124f8, 1, { 0x000124f8 } }, { 0x000124f9, 1, { 0x000124f9 } }, { 0x000124fa, 1, { 0x000124fa } }, { 0x000124fb, 1, { 0x000124fb } }, { 0x000124fc, 1, { 0x000124fc } }, { 0x000124fd, 1, { 0x000124fd } }, { 0x000124fe, 1, { 0x000124fe } }, { 0x000124ff, 1, { 0x000124ff } }, { 0x00012500, 1, { 0x00012500 } }, { 0x00012501, 1, { 0x00012501 } }, { 0x00012502, 1, { 0x00012502 } }, { 0x00012503, 1, { 0x00012503 } }, { 0x00012504, 1, { 0x00012504 } }, { 0x00012505, 1, { 0x00012505 } }, { 0x00012506, 1, { 0x00012506 } }, { 0x00012507, 1, { 0x00012507 } }, { 0x00012508, 1, { 0x00012508 } }, { 0x00012509, 1, { 0x00012509 } }, { 0x0001250a, 1, { 0x0001250a } }, { 0x0001250b, 1, { 0x0001250b } }, { 0x0001250c, 1, { 0x0001250c } }, { 0x0001250d, 1, { 0x0001250d } }, { 0x0001250e, 1, { 0x0001250e } }, { 0x0001250f, 1, { 0x0001250f } }, { 0x00012510, 1, { 0x00012510 } }, { 0x00012511, 1, { 0x00012511 } }, { 0x00012512, 1, { 0x00012512 } }, { 0x00012513, 1, { 0x00012513 } }, { 0x00012514, 1, { 0x00012514 } }, { 0x00012515, 1, { 0x00012515 } }, { 0x00012516, 1, { 0x00012516 } }, { 0x00012517, 1, { 0x00012517 } }, { 0x00012518, 1, { 0x00012518 } }, { 0x00012519, 1, { 0x00012519 } }, { 0x0001251a, 1, { 0x0001251a } }, { 0x0001251b, 1, { 0x0001251b } }, { 0x0001251c, 1, { 0x0001251c } }, { 0x0001251d, 1, { 0x0001251d } }, { 0x0001251e, 1, { 0x0001251e } }, { 0x0001251f, 1, { 0x0001251f } }, { 0x00012520, 1, { 0x00012520 } }, { 0x00012521, 1, { 0x00012521 } }, { 0x00012522, 1, { 0x00012522 } }, { 0x00012523, 1, { 0x00012523 } }, { 0x00012524, 1, { 0x00012524 } }, { 0x00012525, 1, { 0x00012525 } }, { 0x00012526, 1, { 0x00012526 } }, { 0x00012527, 1, { 0x00012527 } }, { 0x00012528, 1, { 0x00012528 } }, { 0x00012529, 1, { 0x00012529 } }, { 0x0001252a, 1, { 0x0001252a } }, { 0x0001252b, 1, { 0x0001252b } }, { 0x0001252c, 1, { 0x0001252c } }, { 0x0001252d, 1, { 0x0001252d } }, { 0x0001252e, 1, { 0x0001252e } }, { 0x0001252f, 1, { 0x0001252f } }, { 0x00012530, 1, { 0x00012530 } }, { 0x00012531, 1, { 0x00012531 } }, { 0x00012532, 1, { 0x00012532 } }, { 0x00012533, 1, { 0x00012533 } }, { 0x00012534, 1, { 0x00012534 } }, { 0x00012535, 1, { 0x00012535 } }, { 0x00012536, 1, { 0x00012536 } }, { 0x00012537, 1, { 0x00012537 } }, { 0x00012538, 1, { 0x00012538 } }, { 0x00012539, 1, { 0x00012539 } }, { 0x0001253a, 1, { 0x0001253a } }, { 0x0001253b, 1, { 0x0001253b } }, { 0x0001253c, 1, { 0x0001253c } }, { 0x0001253d, 1, { 0x0001253d } }, { 0x0001253e, 1, { 0x0001253e } }, { 0x0001253f, 1, { 0x0001253f } }, { 0x00012540, 1, { 0x00012540 } }, { 0x00012541, 1, { 0x00012541 } }, { 0x00012542, 1, { 0x00012542 } }, { 0x00012543, 1, { 0x00012543 } }, { 0x00013000, 1, { 0x00013000 } }, { 0x00013001, 1, { 0x00013001 } }, { 0x00013002, 1, { 0x00013002 } }, { 0x00013003, 1, { 0x00013003 } }, { 0x00013004, 1, { 0x00013004 } }, { 0x00013005, 1, { 0x00013005 } }, { 0x00013006, 1, { 0x00013006 } }, { 0x00013007, 1, { 0x00013007 } }, { 0x00013008, 1, { 0x00013008 } }, { 0x00013009, 1, { 0x00013009 } }, { 0x0001300a, 1, { 0x0001300a } }, { 0x0001300b, 1, { 0x0001300b } }, { 0x0001300c, 1, { 0x0001300c } }, { 0x0001300d, 1, { 0x0001300d } }, { 0x0001300e, 1, { 0x0001300e } }, { 0x0001300f, 1, { 0x0001300f } }, { 0x00013010, 1, { 0x00013010 } }, { 0x00013011, 1, { 0x00013011 } }, { 0x00013012, 1, { 0x00013012 } }, { 0x00013013, 1, { 0x00013013 } }, { 0x00013014, 1, { 0x00013014 } }, { 0x00013015, 1, { 0x00013015 } }, { 0x00013016, 1, { 0x00013016 } }, { 0x00013017, 1, { 0x00013017 } }, { 0x00013018, 1, { 0x00013018 } }, { 0x00013019, 1, { 0x00013019 } }, { 0x0001301a, 1, { 0x0001301a } }, { 0x0001301b, 1, { 0x0001301b } }, { 0x0001301c, 1, { 0x0001301c } }, { 0x0001301d, 1, { 0x0001301d } }, { 0x0001301e, 1, { 0x0001301e } }, { 0x0001301f, 1, { 0x0001301f } }, { 0x00013020, 1, { 0x00013020 } }, { 0x00013021, 1, { 0x00013021 } }, { 0x00013022, 1, { 0x00013022 } }, { 0x00013023, 1, { 0x00013023 } }, { 0x00013024, 1, { 0x00013024 } }, { 0x00013025, 1, { 0x00013025 } }, { 0x00013026, 1, { 0x00013026 } }, { 0x00013027, 1, { 0x00013027 } }, { 0x00013028, 1, { 0x00013028 } }, { 0x00013029, 1, { 0x00013029 } }, { 0x0001302a, 1, { 0x0001302a } }, { 0x0001302b, 1, { 0x0001302b } }, { 0x0001302c, 1, { 0x0001302c } }, { 0x0001302d, 1, { 0x0001302d } }, { 0x0001302e, 1, { 0x0001302e } }, { 0x0001302f, 1, { 0x0001302f } }, { 0x00013030, 1, { 0x00013030 } }, { 0x00013031, 1, { 0x00013031 } }, { 0x00013032, 1, { 0x00013032 } }, { 0x00013033, 1, { 0x00013033 } }, { 0x00013034, 1, { 0x00013034 } }, { 0x00013035, 1, { 0x00013035 } }, { 0x00013036, 1, { 0x00013036 } }, { 0x00013037, 1, { 0x00013037 } }, { 0x00013038, 1, { 0x00013038 } }, { 0x00013039, 1, { 0x00013039 } }, { 0x0001303a, 1, { 0x0001303a } }, { 0x0001303b, 1, { 0x0001303b } }, { 0x0001303c, 1, { 0x0001303c } }, { 0x0001303d, 1, { 0x0001303d } }, { 0x0001303e, 1, { 0x0001303e } }, { 0x0001303f, 1, { 0x0001303f } }, { 0x00013040, 1, { 0x00013040 } }, { 0x00013041, 1, { 0x00013041 } }, { 0x00013042, 1, { 0x00013042 } }, { 0x00013043, 1, { 0x00013043 } }, { 0x00013044, 1, { 0x00013044 } }, { 0x00013045, 1, { 0x00013045 } }, { 0x00013046, 1, { 0x00013046 } }, { 0x00013047, 1, { 0x00013047 } }, { 0x00013048, 1, { 0x00013048 } }, { 0x00013049, 1, { 0x00013049 } }, { 0x0001304a, 1, { 0x0001304a } }, { 0x0001304b, 1, { 0x0001304b } }, { 0x0001304c, 1, { 0x0001304c } }, { 0x0001304d, 1, { 0x0001304d } }, { 0x0001304e, 1, { 0x0001304e } }, { 0x0001304f, 1, { 0x0001304f } }, { 0x00013050, 1, { 0x00013050 } }, { 0x00013051, 1, { 0x00013051 } }, { 0x00013052, 1, { 0x00013052 } }, { 0x00013053, 1, { 0x00013053 } }, { 0x00013054, 1, { 0x00013054 } }, { 0x00013055, 1, { 0x00013055 } }, { 0x00013056, 1, { 0x00013056 } }, { 0x00013057, 1, { 0x00013057 } }, { 0x00013058, 1, { 0x00013058 } }, { 0x00013059, 1, { 0x00013059 } }, { 0x0001305a, 1, { 0x0001305a } }, { 0x0001305b, 1, { 0x0001305b } }, { 0x0001305c, 1, { 0x0001305c } }, { 0x0001305d, 1, { 0x0001305d } }, { 0x0001305e, 1, { 0x0001305e } }, { 0x0001305f, 1, { 0x0001305f } }, { 0x00013060, 1, { 0x00013060 } }, { 0x00013061, 1, { 0x00013061 } }, { 0x00013062, 1, { 0x00013062 } }, { 0x00013063, 1, { 0x00013063 } }, { 0x00013064, 1, { 0x00013064 } }, { 0x00013065, 1, { 0x00013065 } }, { 0x00013066, 1, { 0x00013066 } }, { 0x00013067, 1, { 0x00013067 } }, { 0x00013068, 1, { 0x00013068 } }, { 0x00013069, 1, { 0x00013069 } }, { 0x0001306a, 1, { 0x0001306a } }, { 0x0001306b, 1, { 0x0001306b } }, { 0x0001306c, 1, { 0x0001306c } }, { 0x0001306d, 1, { 0x0001306d } }, { 0x0001306e, 1, { 0x0001306e } }, { 0x0001306f, 1, { 0x0001306f } }, { 0x00013070, 1, { 0x00013070 } }, { 0x00013071, 1, { 0x00013071 } }, { 0x00013072, 1, { 0x00013072 } }, { 0x00013073, 1, { 0x00013073 } }, { 0x00013074, 1, { 0x00013074 } }, { 0x00013075, 1, { 0x00013075 } }, { 0x00013076, 1, { 0x00013076 } }, { 0x00013077, 1, { 0x00013077 } }, { 0x00013078, 1, { 0x00013078 } }, { 0x00013079, 1, { 0x00013079 } }, { 0x0001307a, 1, { 0x0001307a } }, { 0x0001307b, 1, { 0x0001307b } }, { 0x0001307c, 1, { 0x0001307c } }, { 0x0001307d, 1, { 0x0001307d } }, { 0x0001307e, 1, { 0x0001307e } }, { 0x0001307f, 1, { 0x0001307f } }, { 0x00013080, 1, { 0x00013080 } }, { 0x00013081, 1, { 0x00013081 } }, { 0x00013082, 1, { 0x00013082 } }, { 0x00013083, 1, { 0x00013083 } }, { 0x00013084, 1, { 0x00013084 } }, { 0x00013085, 1, { 0x00013085 } }, { 0x00013086, 1, { 0x00013086 } }, { 0x00013087, 1, { 0x00013087 } }, { 0x00013088, 1, { 0x00013088 } }, { 0x00013089, 1, { 0x00013089 } }, { 0x0001308a, 1, { 0x0001308a } }, { 0x0001308b, 1, { 0x0001308b } }, { 0x0001308c, 1, { 0x0001308c } }, { 0x0001308d, 1, { 0x0001308d } }, { 0x0001308e, 1, { 0x0001308e } }, { 0x0001308f, 1, { 0x0001308f } }, { 0x00013090, 1, { 0x00013090 } }, { 0x00013091, 1, { 0x00013091 } }, { 0x00013092, 1, { 0x00013092 } }, { 0x00013093, 1, { 0x00013093 } }, { 0x00013094, 1, { 0x00013094 } }, { 0x00013095, 1, { 0x00013095 } }, { 0x00013096, 1, { 0x00013096 } }, { 0x00013097, 1, { 0x00013097 } }, { 0x00013098, 1, { 0x00013098 } }, { 0x00013099, 1, { 0x00013099 } }, { 0x0001309a, 1, { 0x0001309a } }, { 0x0001309b, 1, { 0x0001309b } }, { 0x0001309c, 1, { 0x0001309c } }, { 0x0001309d, 1, { 0x0001309d } }, { 0x0001309e, 1, { 0x0001309e } }, { 0x0001309f, 1, { 0x0001309f } }, { 0x000130a0, 1, { 0x000130a0 } }, { 0x000130a1, 1, { 0x000130a1 } }, { 0x000130a2, 1, { 0x000130a2 } }, { 0x000130a3, 1, { 0x000130a3 } }, { 0x000130a4, 1, { 0x000130a4 } }, { 0x000130a5, 1, { 0x000130a5 } }, { 0x000130a6, 1, { 0x000130a6 } }, { 0x000130a7, 1, { 0x000130a7 } }, { 0x000130a8, 1, { 0x000130a8 } }, { 0x000130a9, 1, { 0x000130a9 } }, { 0x000130aa, 1, { 0x000130aa } }, { 0x000130ab, 1, { 0x000130ab } }, { 0x000130ac, 1, { 0x000130ac } }, { 0x000130ad, 1, { 0x000130ad } }, { 0x000130ae, 1, { 0x000130ae } }, { 0x000130af, 1, { 0x000130af } }, { 0x000130b0, 1, { 0x000130b0 } }, { 0x000130b1, 1, { 0x000130b1 } }, { 0x000130b2, 1, { 0x000130b2 } }, { 0x000130b3, 1, { 0x000130b3 } }, { 0x000130b4, 1, { 0x000130b4 } }, { 0x000130b5, 1, { 0x000130b5 } }, { 0x000130b6, 1, { 0x000130b6 } }, { 0x000130b7, 1, { 0x000130b7 } }, { 0x000130b8, 1, { 0x000130b8 } }, { 0x000130b9, 1, { 0x000130b9 } }, { 0x000130ba, 1, { 0x000130ba } }, { 0x000130bb, 1, { 0x000130bb } }, { 0x000130bc, 1, { 0x000130bc } }, { 0x000130bd, 1, { 0x000130bd } }, { 0x000130be, 1, { 0x000130be } }, { 0x000130bf, 1, { 0x000130bf } }, { 0x000130c0, 1, { 0x000130c0 } }, { 0x000130c1, 1, { 0x000130c1 } }, { 0x000130c2, 1, { 0x000130c2 } }, { 0x000130c3, 1, { 0x000130c3 } }, { 0x000130c4, 1, { 0x000130c4 } }, { 0x000130c5, 1, { 0x000130c5 } }, { 0x000130c6, 1, { 0x000130c6 } }, { 0x000130c7, 1, { 0x000130c7 } }, { 0x000130c8, 1, { 0x000130c8 } }, { 0x000130c9, 1, { 0x000130c9 } }, { 0x000130ca, 1, { 0x000130ca } }, { 0x000130cb, 1, { 0x000130cb } }, { 0x000130cc, 1, { 0x000130cc } }, { 0x000130cd, 1, { 0x000130cd } }, { 0x000130ce, 1, { 0x000130ce } }, { 0x000130cf, 1, { 0x000130cf } }, { 0x000130d0, 1, { 0x000130d0 } }, { 0x000130d1, 1, { 0x000130d1 } }, { 0x000130d2, 1, { 0x000130d2 } }, { 0x000130d3, 1, { 0x000130d3 } }, { 0x000130d4, 1, { 0x000130d4 } }, { 0x000130d5, 1, { 0x000130d5 } }, { 0x000130d6, 1, { 0x000130d6 } }, { 0x000130d7, 1, { 0x000130d7 } }, { 0x000130d8, 1, { 0x000130d8 } }, { 0x000130d9, 1, { 0x000130d9 } }, { 0x000130da, 1, { 0x000130da } }, { 0x000130db, 1, { 0x000130db } }, { 0x000130dc, 1, { 0x000130dc } }, { 0x000130dd, 1, { 0x000130dd } }, { 0x000130de, 1, { 0x000130de } }, { 0x000130df, 1, { 0x000130df } }, { 0x000130e0, 1, { 0x000130e0 } }, { 0x000130e1, 1, { 0x000130e1 } }, { 0x000130e2, 1, { 0x000130e2 } }, { 0x000130e3, 1, { 0x000130e3 } }, { 0x000130e4, 1, { 0x000130e4 } }, { 0x000130e5, 1, { 0x000130e5 } }, { 0x000130e6, 1, { 0x000130e6 } }, { 0x000130e7, 1, { 0x000130e7 } }, { 0x000130e8, 1, { 0x000130e8 } }, { 0x000130e9, 1, { 0x000130e9 } }, { 0x000130ea, 1, { 0x000130ea } }, { 0x000130eb, 1, { 0x000130eb } }, { 0x000130ec, 1, { 0x000130ec } }, { 0x000130ed, 1, { 0x000130ed } }, { 0x000130ee, 1, { 0x000130ee } }, { 0x000130ef, 1, { 0x000130ef } }, { 0x000130f0, 1, { 0x000130f0 } }, { 0x000130f1, 1, { 0x000130f1 } }, { 0x000130f2, 1, { 0x000130f2 } }, { 0x000130f3, 1, { 0x000130f3 } }, { 0x000130f4, 1, { 0x000130f4 } }, { 0x000130f5, 1, { 0x000130f5 } }, { 0x000130f6, 1, { 0x000130f6 } }, { 0x000130f7, 1, { 0x000130f7 } }, { 0x000130f8, 1, { 0x000130f8 } }, { 0x000130f9, 1, { 0x000130f9 } }, { 0x000130fa, 1, { 0x000130fa } }, { 0x000130fb, 1, { 0x000130fb } }, { 0x000130fc, 1, { 0x000130fc } }, { 0x000130fd, 1, { 0x000130fd } }, { 0x000130fe, 1, { 0x000130fe } }, { 0x000130ff, 1, { 0x000130ff } }, { 0x00013100, 1, { 0x00013100 } }, { 0x00013101, 1, { 0x00013101 } }, { 0x00013102, 1, { 0x00013102 } }, { 0x00013103, 1, { 0x00013103 } }, { 0x00013104, 1, { 0x00013104 } }, { 0x00013105, 1, { 0x00013105 } }, { 0x00013106, 1, { 0x00013106 } }, { 0x00013107, 1, { 0x00013107 } }, { 0x00013108, 1, { 0x00013108 } }, { 0x00013109, 1, { 0x00013109 } }, { 0x0001310a, 1, { 0x0001310a } }, { 0x0001310b, 1, { 0x0001310b } }, { 0x0001310c, 1, { 0x0001310c } }, { 0x0001310d, 1, { 0x0001310d } }, { 0x0001310e, 1, { 0x0001310e } }, { 0x0001310f, 1, { 0x0001310f } }, { 0x00013110, 1, { 0x00013110 } }, { 0x00013111, 1, { 0x00013111 } }, { 0x00013112, 1, { 0x00013112 } }, { 0x00013113, 1, { 0x00013113 } }, { 0x00013114, 1, { 0x00013114 } }, { 0x00013115, 1, { 0x00013115 } }, { 0x00013116, 1, { 0x00013116 } }, { 0x00013117, 1, { 0x00013117 } }, { 0x00013118, 1, { 0x00013118 } }, { 0x00013119, 1, { 0x00013119 } }, { 0x0001311a, 1, { 0x0001311a } }, { 0x0001311b, 1, { 0x0001311b } }, { 0x0001311c, 1, { 0x0001311c } }, { 0x0001311d, 1, { 0x0001311d } }, { 0x0001311e, 1, { 0x0001311e } }, { 0x0001311f, 1, { 0x0001311f } }, { 0x00013120, 1, { 0x00013120 } }, { 0x00013121, 1, { 0x00013121 } }, { 0x00013122, 1, { 0x00013122 } }, { 0x00013123, 1, { 0x00013123 } }, { 0x00013124, 1, { 0x00013124 } }, { 0x00013125, 1, { 0x00013125 } }, { 0x00013126, 1, { 0x00013126 } }, { 0x00013127, 1, { 0x00013127 } }, { 0x00013128, 1, { 0x00013128 } }, { 0x00013129, 1, { 0x00013129 } }, { 0x0001312a, 1, { 0x0001312a } }, { 0x0001312b, 1, { 0x0001312b } }, { 0x0001312c, 1, { 0x0001312c } }, { 0x0001312d, 1, { 0x0001312d } }, { 0x0001312e, 1, { 0x0001312e } }, { 0x0001312f, 1, { 0x0001312f } }, { 0x00013130, 1, { 0x00013130 } }, { 0x00013131, 1, { 0x00013131 } }, { 0x00013132, 1, { 0x00013132 } }, { 0x00013133, 1, { 0x00013133 } }, { 0x00013134, 1, { 0x00013134 } }, { 0x00013135, 1, { 0x00013135 } }, { 0x00013136, 1, { 0x00013136 } }, { 0x00013137, 1, { 0x00013137 } }, { 0x00013138, 1, { 0x00013138 } }, { 0x00013139, 1, { 0x00013139 } }, { 0x0001313a, 1, { 0x0001313a } }, { 0x0001313b, 1, { 0x0001313b } }, { 0x0001313c, 1, { 0x0001313c } }, { 0x0001313d, 1, { 0x0001313d } }, { 0x0001313e, 1, { 0x0001313e } }, { 0x0001313f, 1, { 0x0001313f } }, { 0x00013140, 1, { 0x00013140 } }, { 0x00013141, 1, { 0x00013141 } }, { 0x00013142, 1, { 0x00013142 } }, { 0x00013143, 1, { 0x00013143 } }, { 0x00013144, 1, { 0x00013144 } }, { 0x00013145, 1, { 0x00013145 } }, { 0x00013146, 1, { 0x00013146 } }, { 0x00013147, 1, { 0x00013147 } }, { 0x00013148, 1, { 0x00013148 } }, { 0x00013149, 1, { 0x00013149 } }, { 0x0001314a, 1, { 0x0001314a } }, { 0x0001314b, 1, { 0x0001314b } }, { 0x0001314c, 1, { 0x0001314c } }, { 0x0001314d, 1, { 0x0001314d } }, { 0x0001314e, 1, { 0x0001314e } }, { 0x0001314f, 1, { 0x0001314f } }, { 0x00013150, 1, { 0x00013150 } }, { 0x00013151, 1, { 0x00013151 } }, { 0x00013152, 1, { 0x00013152 } }, { 0x00013153, 1, { 0x00013153 } }, { 0x00013154, 1, { 0x00013154 } }, { 0x00013155, 1, { 0x00013155 } }, { 0x00013156, 1, { 0x00013156 } }, { 0x00013157, 1, { 0x00013157 } }, { 0x00013158, 1, { 0x00013158 } }, { 0x00013159, 1, { 0x00013159 } }, { 0x0001315a, 1, { 0x0001315a } }, { 0x0001315b, 1, { 0x0001315b } }, { 0x0001315c, 1, { 0x0001315c } }, { 0x0001315d, 1, { 0x0001315d } }, { 0x0001315e, 1, { 0x0001315e } }, { 0x0001315f, 1, { 0x0001315f } }, { 0x00013160, 1, { 0x00013160 } }, { 0x00013161, 1, { 0x00013161 } }, { 0x00013162, 1, { 0x00013162 } }, { 0x00013163, 1, { 0x00013163 } }, { 0x00013164, 1, { 0x00013164 } }, { 0x00013165, 1, { 0x00013165 } }, { 0x00013166, 1, { 0x00013166 } }, { 0x00013167, 1, { 0x00013167 } }, { 0x00013168, 1, { 0x00013168 } }, { 0x00013169, 1, { 0x00013169 } }, { 0x0001316a, 1, { 0x0001316a } }, { 0x0001316b, 1, { 0x0001316b } }, { 0x0001316c, 1, { 0x0001316c } }, { 0x0001316d, 1, { 0x0001316d } }, { 0x0001316e, 1, { 0x0001316e } }, { 0x0001316f, 1, { 0x0001316f } }, { 0x00013170, 1, { 0x00013170 } }, { 0x00013171, 1, { 0x00013171 } }, { 0x00013172, 1, { 0x00013172 } }, { 0x00013173, 1, { 0x00013173 } }, { 0x00013174, 1, { 0x00013174 } }, { 0x00013175, 1, { 0x00013175 } }, { 0x00013176, 1, { 0x00013176 } }, { 0x00013177, 1, { 0x00013177 } }, { 0x00013178, 1, { 0x00013178 } }, { 0x00013179, 1, { 0x00013179 } }, { 0x0001317a, 1, { 0x0001317a } }, { 0x0001317b, 1, { 0x0001317b } }, { 0x0001317c, 1, { 0x0001317c } }, { 0x0001317d, 1, { 0x0001317d } }, { 0x0001317e, 1, { 0x0001317e } }, { 0x0001317f, 1, { 0x0001317f } }, { 0x00013180, 1, { 0x00013180 } }, { 0x00013181, 1, { 0x00013181 } }, { 0x00013182, 1, { 0x00013182 } }, { 0x00013183, 1, { 0x00013183 } }, { 0x00013184, 1, { 0x00013184 } }, { 0x00013185, 1, { 0x00013185 } }, { 0x00013186, 1, { 0x00013186 } }, { 0x00013187, 1, { 0x00013187 } }, { 0x00013188, 1, { 0x00013188 } }, { 0x00013189, 1, { 0x00013189 } }, { 0x0001318a, 1, { 0x0001318a } }, { 0x0001318b, 1, { 0x0001318b } }, { 0x0001318c, 1, { 0x0001318c } }, { 0x0001318d, 1, { 0x0001318d } }, { 0x0001318e, 1, { 0x0001318e } }, { 0x0001318f, 1, { 0x0001318f } }, { 0x00013190, 1, { 0x00013190 } }, { 0x00013191, 1, { 0x00013191 } }, { 0x00013192, 1, { 0x00013192 } }, { 0x00013193, 1, { 0x00013193 } }, { 0x00013194, 1, { 0x00013194 } }, { 0x00013195, 1, { 0x00013195 } }, { 0x00013196, 1, { 0x00013196 } }, { 0x00013197, 1, { 0x00013197 } }, { 0x00013198, 1, { 0x00013198 } }, { 0x00013199, 1, { 0x00013199 } }, { 0x0001319a, 1, { 0x0001319a } }, { 0x0001319b, 1, { 0x0001319b } }, { 0x0001319c, 1, { 0x0001319c } }, { 0x0001319d, 1, { 0x0001319d } }, { 0x0001319e, 1, { 0x0001319e } }, { 0x0001319f, 1, { 0x0001319f } }, { 0x000131a0, 1, { 0x000131a0 } }, { 0x000131a1, 1, { 0x000131a1 } }, { 0x000131a2, 1, { 0x000131a2 } }, { 0x000131a3, 1, { 0x000131a3 } }, { 0x000131a4, 1, { 0x000131a4 } }, { 0x000131a5, 1, { 0x000131a5 } }, { 0x000131a6, 1, { 0x000131a6 } }, { 0x000131a7, 1, { 0x000131a7 } }, { 0x000131a8, 1, { 0x000131a8 } }, { 0x000131a9, 1, { 0x000131a9 } }, { 0x000131aa, 1, { 0x000131aa } }, { 0x000131ab, 1, { 0x000131ab } }, { 0x000131ac, 1, { 0x000131ac } }, { 0x000131ad, 1, { 0x000131ad } }, { 0x000131ae, 1, { 0x000131ae } }, { 0x000131af, 1, { 0x000131af } }, { 0x000131b0, 1, { 0x000131b0 } }, { 0x000131b1, 1, { 0x000131b1 } }, { 0x000131b2, 1, { 0x000131b2 } }, { 0x000131b3, 1, { 0x000131b3 } }, { 0x000131b4, 1, { 0x000131b4 } }, { 0x000131b5, 1, { 0x000131b5 } }, { 0x000131b6, 1, { 0x000131b6 } }, { 0x000131b7, 1, { 0x000131b7 } }, { 0x000131b8, 1, { 0x000131b8 } }, { 0x000131b9, 1, { 0x000131b9 } }, { 0x000131ba, 1, { 0x000131ba } }, { 0x000131bb, 1, { 0x000131bb } }, { 0x000131bc, 1, { 0x000131bc } }, { 0x000131bd, 1, { 0x000131bd } }, { 0x000131be, 1, { 0x000131be } }, { 0x000131bf, 1, { 0x000131bf } }, { 0x000131c0, 1, { 0x000131c0 } }, { 0x000131c1, 1, { 0x000131c1 } }, { 0x000131c2, 1, { 0x000131c2 } }, { 0x000131c3, 1, { 0x000131c3 } }, { 0x000131c4, 1, { 0x000131c4 } }, { 0x000131c5, 1, { 0x000131c5 } }, { 0x000131c6, 1, { 0x000131c6 } }, { 0x000131c7, 1, { 0x000131c7 } }, { 0x000131c8, 1, { 0x000131c8 } }, { 0x000131c9, 1, { 0x000131c9 } }, { 0x000131ca, 1, { 0x000131ca } }, { 0x000131cb, 1, { 0x000131cb } }, { 0x000131cc, 1, { 0x000131cc } }, { 0x000131cd, 1, { 0x000131cd } }, { 0x000131ce, 1, { 0x000131ce } }, { 0x000131cf, 1, { 0x000131cf } }, { 0x000131d0, 1, { 0x000131d0 } }, { 0x000131d1, 1, { 0x000131d1 } }, { 0x000131d2, 1, { 0x000131d2 } }, { 0x000131d3, 1, { 0x000131d3 } }, { 0x000131d4, 1, { 0x000131d4 } }, { 0x000131d5, 1, { 0x000131d5 } }, { 0x000131d6, 1, { 0x000131d6 } }, { 0x000131d7, 1, { 0x000131d7 } }, { 0x000131d8, 1, { 0x000131d8 } }, { 0x000131d9, 1, { 0x000131d9 } }, { 0x000131da, 1, { 0x000131da } }, { 0x000131db, 1, { 0x000131db } }, { 0x000131dc, 1, { 0x000131dc } }, { 0x000131dd, 1, { 0x000131dd } }, { 0x000131de, 1, { 0x000131de } }, { 0x000131df, 1, { 0x000131df } }, { 0x000131e0, 1, { 0x000131e0 } }, { 0x000131e1, 1, { 0x000131e1 } }, { 0x000131e2, 1, { 0x000131e2 } }, { 0x000131e3, 1, { 0x000131e3 } }, { 0x000131e4, 1, { 0x000131e4 } }, { 0x000131e5, 1, { 0x000131e5 } }, { 0x000131e6, 1, { 0x000131e6 } }, { 0x000131e7, 1, { 0x000131e7 } }, { 0x000131e8, 1, { 0x000131e8 } }, { 0x000131e9, 1, { 0x000131e9 } }, { 0x000131ea, 1, { 0x000131ea } }, { 0x000131eb, 1, { 0x000131eb } }, { 0x000131ec, 1, { 0x000131ec } }, { 0x000131ed, 1, { 0x000131ed } }, { 0x000131ee, 1, { 0x000131ee } }, { 0x000131ef, 1, { 0x000131ef } }, { 0x000131f0, 1, { 0x000131f0 } }, { 0x000131f1, 1, { 0x000131f1 } }, { 0x000131f2, 1, { 0x000131f2 } }, { 0x000131f3, 1, { 0x000131f3 } }, { 0x000131f4, 1, { 0x000131f4 } }, { 0x000131f5, 1, { 0x000131f5 } }, { 0x000131f6, 1, { 0x000131f6 } }, { 0x000131f7, 1, { 0x000131f7 } }, { 0x000131f8, 1, { 0x000131f8 } }, { 0x000131f9, 1, { 0x000131f9 } }, { 0x000131fa, 1, { 0x000131fa } }, { 0x000131fb, 1, { 0x000131fb } }, { 0x000131fc, 1, { 0x000131fc } }, { 0x000131fd, 1, { 0x000131fd } }, { 0x000131fe, 1, { 0x000131fe } }, { 0x000131ff, 1, { 0x000131ff } }, { 0x00013200, 1, { 0x00013200 } }, { 0x00013201, 1, { 0x00013201 } }, { 0x00013202, 1, { 0x00013202 } }, { 0x00013203, 1, { 0x00013203 } }, { 0x00013204, 1, { 0x00013204 } }, { 0x00013205, 1, { 0x00013205 } }, { 0x00013206, 1, { 0x00013206 } }, { 0x00013207, 1, { 0x00013207 } }, { 0x00013208, 1, { 0x00013208 } }, { 0x00013209, 1, { 0x00013209 } }, { 0x0001320a, 1, { 0x0001320a } }, { 0x0001320b, 1, { 0x0001320b } }, { 0x0001320c, 1, { 0x0001320c } }, { 0x0001320d, 1, { 0x0001320d } }, { 0x0001320e, 1, { 0x0001320e } }, { 0x0001320f, 1, { 0x0001320f } }, { 0x00013210, 1, { 0x00013210 } }, { 0x00013211, 1, { 0x00013211 } }, { 0x00013212, 1, { 0x00013212 } }, { 0x00013213, 1, { 0x00013213 } }, { 0x00013214, 1, { 0x00013214 } }, { 0x00013215, 1, { 0x00013215 } }, { 0x00013216, 1, { 0x00013216 } }, { 0x00013217, 1, { 0x00013217 } }, { 0x00013218, 1, { 0x00013218 } }, { 0x00013219, 1, { 0x00013219 } }, { 0x0001321a, 1, { 0x0001321a } }, { 0x0001321b, 1, { 0x0001321b } }, { 0x0001321c, 1, { 0x0001321c } }, { 0x0001321d, 1, { 0x0001321d } }, { 0x0001321e, 1, { 0x0001321e } }, { 0x0001321f, 1, { 0x0001321f } }, { 0x00013220, 1, { 0x00013220 } }, { 0x00013221, 1, { 0x00013221 } }, { 0x00013222, 1, { 0x00013222 } }, { 0x00013223, 1, { 0x00013223 } }, { 0x00013224, 1, { 0x00013224 } }, { 0x00013225, 1, { 0x00013225 } }, { 0x00013226, 1, { 0x00013226 } }, { 0x00013227, 1, { 0x00013227 } }, { 0x00013228, 1, { 0x00013228 } }, { 0x00013229, 1, { 0x00013229 } }, { 0x0001322a, 1, { 0x0001322a } }, { 0x0001322b, 1, { 0x0001322b } }, { 0x0001322c, 1, { 0x0001322c } }, { 0x0001322d, 1, { 0x0001322d } }, { 0x0001322e, 1, { 0x0001322e } }, { 0x0001322f, 1, { 0x0001322f } }, { 0x00013230, 1, { 0x00013230 } }, { 0x00013231, 1, { 0x00013231 } }, { 0x00013232, 1, { 0x00013232 } }, { 0x00013233, 1, { 0x00013233 } }, { 0x00013234, 1, { 0x00013234 } }, { 0x00013235, 1, { 0x00013235 } }, { 0x00013236, 1, { 0x00013236 } }, { 0x00013237, 1, { 0x00013237 } }, { 0x00013238, 1, { 0x00013238 } }, { 0x00013239, 1, { 0x00013239 } }, { 0x0001323a, 1, { 0x0001323a } }, { 0x0001323b, 1, { 0x0001323b } }, { 0x0001323c, 1, { 0x0001323c } }, { 0x0001323d, 1, { 0x0001323d } }, { 0x0001323e, 1, { 0x0001323e } }, { 0x0001323f, 1, { 0x0001323f } }, { 0x00013240, 1, { 0x00013240 } }, { 0x00013241, 1, { 0x00013241 } }, { 0x00013242, 1, { 0x00013242 } }, { 0x00013243, 1, { 0x00013243 } }, { 0x00013244, 1, { 0x00013244 } }, { 0x00013245, 1, { 0x00013245 } }, { 0x00013246, 1, { 0x00013246 } }, { 0x00013247, 1, { 0x00013247 } }, { 0x00013248, 1, { 0x00013248 } }, { 0x00013249, 1, { 0x00013249 } }, { 0x0001324a, 1, { 0x0001324a } }, { 0x0001324b, 1, { 0x0001324b } }, { 0x0001324c, 1, { 0x0001324c } }, { 0x0001324d, 1, { 0x0001324d } }, { 0x0001324e, 1, { 0x0001324e } }, { 0x0001324f, 1, { 0x0001324f } }, { 0x00013250, 1, { 0x00013250 } }, { 0x00013251, 1, { 0x00013251 } }, { 0x00013252, 1, { 0x00013252 } }, { 0x00013253, 1, { 0x00013253 } }, { 0x00013254, 1, { 0x00013254 } }, { 0x00013255, 1, { 0x00013255 } }, { 0x00013256, 1, { 0x00013256 } }, { 0x00013257, 1, { 0x00013257 } }, { 0x00013258, 1, { 0x00013258 } }, { 0x00013259, 1, { 0x00013259 } }, { 0x0001325a, 1, { 0x0001325a } }, { 0x0001325b, 1, { 0x0001325b } }, { 0x0001325c, 1, { 0x0001325c } }, { 0x0001325d, 1, { 0x0001325d } }, { 0x0001325e, 1, { 0x0001325e } }, { 0x0001325f, 1, { 0x0001325f } }, { 0x00013260, 1, { 0x00013260 } }, { 0x00013261, 1, { 0x00013261 } }, { 0x00013262, 1, { 0x00013262 } }, { 0x00013263, 1, { 0x00013263 } }, { 0x00013264, 1, { 0x00013264 } }, { 0x00013265, 1, { 0x00013265 } }, { 0x00013266, 1, { 0x00013266 } }, { 0x00013267, 1, { 0x00013267 } }, { 0x00013268, 1, { 0x00013268 } }, { 0x00013269, 1, { 0x00013269 } }, { 0x0001326a, 1, { 0x0001326a } }, { 0x0001326b, 1, { 0x0001326b } }, { 0x0001326c, 1, { 0x0001326c } }, { 0x0001326d, 1, { 0x0001326d } }, { 0x0001326e, 1, { 0x0001326e } }, { 0x0001326f, 1, { 0x0001326f } }, { 0x00013270, 1, { 0x00013270 } }, { 0x00013271, 1, { 0x00013271 } }, { 0x00013272, 1, { 0x00013272 } }, { 0x00013273, 1, { 0x00013273 } }, { 0x00013274, 1, { 0x00013274 } }, { 0x00013275, 1, { 0x00013275 } }, { 0x00013276, 1, { 0x00013276 } }, { 0x00013277, 1, { 0x00013277 } }, { 0x00013278, 1, { 0x00013278 } }, { 0x00013279, 1, { 0x00013279 } }, { 0x0001327a, 1, { 0x0001327a } }, { 0x0001327b, 1, { 0x0001327b } }, { 0x0001327c, 1, { 0x0001327c } }, { 0x0001327d, 1, { 0x0001327d } }, { 0x0001327e, 1, { 0x0001327e } }, { 0x0001327f, 1, { 0x0001327f } }, { 0x00013280, 1, { 0x00013280 } }, { 0x00013281, 1, { 0x00013281 } }, { 0x00013282, 1, { 0x00013282 } }, { 0x00013283, 1, { 0x00013283 } }, { 0x00013284, 1, { 0x00013284 } }, { 0x00013285, 1, { 0x00013285 } }, { 0x00013286, 1, { 0x00013286 } }, { 0x00013287, 1, { 0x00013287 } }, { 0x00013288, 1, { 0x00013288 } }, { 0x00013289, 1, { 0x00013289 } }, { 0x0001328a, 1, { 0x0001328a } }, { 0x0001328b, 1, { 0x0001328b } }, { 0x0001328c, 1, { 0x0001328c } }, { 0x0001328d, 1, { 0x0001328d } }, { 0x0001328e, 1, { 0x0001328e } }, { 0x0001328f, 1, { 0x0001328f } }, { 0x00013290, 1, { 0x00013290 } }, { 0x00013291, 1, { 0x00013291 } }, { 0x00013292, 1, { 0x00013292 } }, { 0x00013293, 1, { 0x00013293 } }, { 0x00013294, 1, { 0x00013294 } }, { 0x00013295, 1, { 0x00013295 } }, { 0x00013296, 1, { 0x00013296 } }, { 0x00013297, 1, { 0x00013297 } }, { 0x00013298, 1, { 0x00013298 } }, { 0x00013299, 1, { 0x00013299 } }, { 0x0001329a, 1, { 0x0001329a } }, { 0x0001329b, 1, { 0x0001329b } }, { 0x0001329c, 1, { 0x0001329c } }, { 0x0001329d, 1, { 0x0001329d } }, { 0x0001329e, 1, { 0x0001329e } }, { 0x0001329f, 1, { 0x0001329f } }, { 0x000132a0, 1, { 0x000132a0 } }, { 0x000132a1, 1, { 0x000132a1 } }, { 0x000132a2, 1, { 0x000132a2 } }, { 0x000132a3, 1, { 0x000132a3 } }, { 0x000132a4, 1, { 0x000132a4 } }, { 0x000132a5, 1, { 0x000132a5 } }, { 0x000132a6, 1, { 0x000132a6 } }, { 0x000132a7, 1, { 0x000132a7 } }, { 0x000132a8, 1, { 0x000132a8 } }, { 0x000132a9, 1, { 0x000132a9 } }, { 0x000132aa, 1, { 0x000132aa } }, { 0x000132ab, 1, { 0x000132ab } }, { 0x000132ac, 1, { 0x000132ac } }, { 0x000132ad, 1, { 0x000132ad } }, { 0x000132ae, 1, { 0x000132ae } }, { 0x000132af, 1, { 0x000132af } }, { 0x000132b0, 1, { 0x000132b0 } }, { 0x000132b1, 1, { 0x000132b1 } }, { 0x000132b2, 1, { 0x000132b2 } }, { 0x000132b3, 1, { 0x000132b3 } }, { 0x000132b4, 1, { 0x000132b4 } }, { 0x000132b5, 1, { 0x000132b5 } }, { 0x000132b6, 1, { 0x000132b6 } }, { 0x000132b7, 1, { 0x000132b7 } }, { 0x000132b8, 1, { 0x000132b8 } }, { 0x000132b9, 1, { 0x000132b9 } }, { 0x000132ba, 1, { 0x000132ba } }, { 0x000132bb, 1, { 0x000132bb } }, { 0x000132bc, 1, { 0x000132bc } }, { 0x000132bd, 1, { 0x000132bd } }, { 0x000132be, 1, { 0x000132be } }, { 0x000132bf, 1, { 0x000132bf } }, { 0x000132c0, 1, { 0x000132c0 } }, { 0x000132c1, 1, { 0x000132c1 } }, { 0x000132c2, 1, { 0x000132c2 } }, { 0x000132c3, 1, { 0x000132c3 } }, { 0x000132c4, 1, { 0x000132c4 } }, { 0x000132c5, 1, { 0x000132c5 } }, { 0x000132c6, 1, { 0x000132c6 } }, { 0x000132c7, 1, { 0x000132c7 } }, { 0x000132c8, 1, { 0x000132c8 } }, { 0x000132c9, 1, { 0x000132c9 } }, { 0x000132ca, 1, { 0x000132ca } }, { 0x000132cb, 1, { 0x000132cb } }, { 0x000132cc, 1, { 0x000132cc } }, { 0x000132cd, 1, { 0x000132cd } }, { 0x000132ce, 1, { 0x000132ce } }, { 0x000132cf, 1, { 0x000132cf } }, { 0x000132d0, 1, { 0x000132d0 } }, { 0x000132d1, 1, { 0x000132d1 } }, { 0x000132d2, 1, { 0x000132d2 } }, { 0x000132d3, 1, { 0x000132d3 } }, { 0x000132d4, 1, { 0x000132d4 } }, { 0x000132d5, 1, { 0x000132d5 } }, { 0x000132d6, 1, { 0x000132d6 } }, { 0x000132d7, 1, { 0x000132d7 } }, { 0x000132d8, 1, { 0x000132d8 } }, { 0x000132d9, 1, { 0x000132d9 } }, { 0x000132da, 1, { 0x000132da } }, { 0x000132db, 1, { 0x000132db } }, { 0x000132dc, 1, { 0x000132dc } }, { 0x000132dd, 1, { 0x000132dd } }, { 0x000132de, 1, { 0x000132de } }, { 0x000132df, 1, { 0x000132df } }, { 0x000132e0, 1, { 0x000132e0 } }, { 0x000132e1, 1, { 0x000132e1 } }, { 0x000132e2, 1, { 0x000132e2 } }, { 0x000132e3, 1, { 0x000132e3 } }, { 0x000132e4, 1, { 0x000132e4 } }, { 0x000132e5, 1, { 0x000132e5 } }, { 0x000132e6, 1, { 0x000132e6 } }, { 0x000132e7, 1, { 0x000132e7 } }, { 0x000132e8, 1, { 0x000132e8 } }, { 0x000132e9, 1, { 0x000132e9 } }, { 0x000132ea, 1, { 0x000132ea } }, { 0x000132eb, 1, { 0x000132eb } }, { 0x000132ec, 1, { 0x000132ec } }, { 0x000132ed, 1, { 0x000132ed } }, { 0x000132ee, 1, { 0x000132ee } }, { 0x000132ef, 1, { 0x000132ef } }, { 0x000132f0, 1, { 0x000132f0 } }, { 0x000132f1, 1, { 0x000132f1 } }, { 0x000132f2, 1, { 0x000132f2 } }, { 0x000132f3, 1, { 0x000132f3 } }, { 0x000132f4, 1, { 0x000132f4 } }, { 0x000132f5, 1, { 0x000132f5 } }, { 0x000132f6, 1, { 0x000132f6 } }, { 0x000132f7, 1, { 0x000132f7 } }, { 0x000132f8, 1, { 0x000132f8 } }, { 0x000132f9, 1, { 0x000132f9 } }, { 0x000132fa, 1, { 0x000132fa } }, { 0x000132fb, 1, { 0x000132fb } }, { 0x000132fc, 1, { 0x000132fc } }, { 0x000132fd, 1, { 0x000132fd } }, { 0x000132fe, 1, { 0x000132fe } }, { 0x000132ff, 1, { 0x000132ff } }, { 0x00013300, 1, { 0x00013300 } }, { 0x00013301, 1, { 0x00013301 } }, { 0x00013302, 1, { 0x00013302 } }, { 0x00013303, 1, { 0x00013303 } }, { 0x00013304, 1, { 0x00013304 } }, { 0x00013305, 1, { 0x00013305 } }, { 0x00013306, 1, { 0x00013306 } }, { 0x00013307, 1, { 0x00013307 } }, { 0x00013308, 1, { 0x00013308 } }, { 0x00013309, 1, { 0x00013309 } }, { 0x0001330a, 1, { 0x0001330a } }, { 0x0001330b, 1, { 0x0001330b } }, { 0x0001330c, 1, { 0x0001330c } }, { 0x0001330d, 1, { 0x0001330d } }, { 0x0001330e, 1, { 0x0001330e } }, { 0x0001330f, 1, { 0x0001330f } }, { 0x00013310, 1, { 0x00013310 } }, { 0x00013311, 1, { 0x00013311 } }, { 0x00013312, 1, { 0x00013312 } }, { 0x00013313, 1, { 0x00013313 } }, { 0x00013314, 1, { 0x00013314 } }, { 0x00013315, 1, { 0x00013315 } }, { 0x00013316, 1, { 0x00013316 } }, { 0x00013317, 1, { 0x00013317 } }, { 0x00013318, 1, { 0x00013318 } }, { 0x00013319, 1, { 0x00013319 } }, { 0x0001331a, 1, { 0x0001331a } }, { 0x0001331b, 1, { 0x0001331b } }, { 0x0001331c, 1, { 0x0001331c } }, { 0x0001331d, 1, { 0x0001331d } }, { 0x0001331e, 1, { 0x0001331e } }, { 0x0001331f, 1, { 0x0001331f } }, { 0x00013320, 1, { 0x00013320 } }, { 0x00013321, 1, { 0x00013321 } }, { 0x00013322, 1, { 0x00013322 } }, { 0x00013323, 1, { 0x00013323 } }, { 0x00013324, 1, { 0x00013324 } }, { 0x00013325, 1, { 0x00013325 } }, { 0x00013326, 1, { 0x00013326 } }, { 0x00013327, 1, { 0x00013327 } }, { 0x00013328, 1, { 0x00013328 } }, { 0x00013329, 1, { 0x00013329 } }, { 0x0001332a, 1, { 0x0001332a } }, { 0x0001332b, 1, { 0x0001332b } }, { 0x0001332c, 1, { 0x0001332c } }, { 0x0001332d, 1, { 0x0001332d } }, { 0x0001332e, 1, { 0x0001332e } }, { 0x0001332f, 1, { 0x0001332f } }, { 0x00013330, 1, { 0x00013330 } }, { 0x00013331, 1, { 0x00013331 } }, { 0x00013332, 1, { 0x00013332 } }, { 0x00013333, 1, { 0x00013333 } }, { 0x00013334, 1, { 0x00013334 } }, { 0x00013335, 1, { 0x00013335 } }, { 0x00013336, 1, { 0x00013336 } }, { 0x00013337, 1, { 0x00013337 } }, { 0x00013338, 1, { 0x00013338 } }, { 0x00013339, 1, { 0x00013339 } }, { 0x0001333a, 1, { 0x0001333a } }, { 0x0001333b, 1, { 0x0001333b } }, { 0x0001333c, 1, { 0x0001333c } }, { 0x0001333d, 1, { 0x0001333d } }, { 0x0001333e, 1, { 0x0001333e } }, { 0x0001333f, 1, { 0x0001333f } }, { 0x00013340, 1, { 0x00013340 } }, { 0x00013341, 1, { 0x00013341 } }, { 0x00013342, 1, { 0x00013342 } }, { 0x00013343, 1, { 0x00013343 } }, { 0x00013344, 1, { 0x00013344 } }, { 0x00013345, 1, { 0x00013345 } }, { 0x00013346, 1, { 0x00013346 } }, { 0x00013347, 1, { 0x00013347 } }, { 0x00013348, 1, { 0x00013348 } }, { 0x00013349, 1, { 0x00013349 } }, { 0x0001334a, 1, { 0x0001334a } }, { 0x0001334b, 1, { 0x0001334b } }, { 0x0001334c, 1, { 0x0001334c } }, { 0x0001334d, 1, { 0x0001334d } }, { 0x0001334e, 1, { 0x0001334e } }, { 0x0001334f, 1, { 0x0001334f } }, { 0x00013350, 1, { 0x00013350 } }, { 0x00013351, 1, { 0x00013351 } }, { 0x00013352, 1, { 0x00013352 } }, { 0x00013353, 1, { 0x00013353 } }, { 0x00013354, 1, { 0x00013354 } }, { 0x00013355, 1, { 0x00013355 } }, { 0x00013356, 1, { 0x00013356 } }, { 0x00013357, 1, { 0x00013357 } }, { 0x00013358, 1, { 0x00013358 } }, { 0x00013359, 1, { 0x00013359 } }, { 0x0001335a, 1, { 0x0001335a } }, { 0x0001335b, 1, { 0x0001335b } }, { 0x0001335c, 1, { 0x0001335c } }, { 0x0001335d, 1, { 0x0001335d } }, { 0x0001335e, 1, { 0x0001335e } }, { 0x0001335f, 1, { 0x0001335f } }, { 0x00013360, 1, { 0x00013360 } }, { 0x00013361, 1, { 0x00013361 } }, { 0x00013362, 1, { 0x00013362 } }, { 0x00013363, 1, { 0x00013363 } }, { 0x00013364, 1, { 0x00013364 } }, { 0x00013365, 1, { 0x00013365 } }, { 0x00013366, 1, { 0x00013366 } }, { 0x00013367, 1, { 0x00013367 } }, { 0x00013368, 1, { 0x00013368 } }, { 0x00013369, 1, { 0x00013369 } }, { 0x0001336a, 1, { 0x0001336a } }, { 0x0001336b, 1, { 0x0001336b } }, { 0x0001336c, 1, { 0x0001336c } }, { 0x0001336d, 1, { 0x0001336d } }, { 0x0001336e, 1, { 0x0001336e } }, { 0x0001336f, 1, { 0x0001336f } }, { 0x00013370, 1, { 0x00013370 } }, { 0x00013371, 1, { 0x00013371 } }, { 0x00013372, 1, { 0x00013372 } }, { 0x00013373, 1, { 0x00013373 } }, { 0x00013374, 1, { 0x00013374 } }, { 0x00013375, 1, { 0x00013375 } }, { 0x00013376, 1, { 0x00013376 } }, { 0x00013377, 1, { 0x00013377 } }, { 0x00013378, 1, { 0x00013378 } }, { 0x00013379, 1, { 0x00013379 } }, { 0x0001337a, 1, { 0x0001337a } }, { 0x0001337b, 1, { 0x0001337b } }, { 0x0001337c, 1, { 0x0001337c } }, { 0x0001337d, 1, { 0x0001337d } }, { 0x0001337e, 1, { 0x0001337e } }, { 0x0001337f, 1, { 0x0001337f } }, { 0x00013380, 1, { 0x00013380 } }, { 0x00013381, 1, { 0x00013381 } }, { 0x00013382, 1, { 0x00013382 } }, { 0x00013383, 1, { 0x00013383 } }, { 0x00013384, 1, { 0x00013384 } }, { 0x00013385, 1, { 0x00013385 } }, { 0x00013386, 1, { 0x00013386 } }, { 0x00013387, 1, { 0x00013387 } }, { 0x00013388, 1, { 0x00013388 } }, { 0x00013389, 1, { 0x00013389 } }, { 0x0001338a, 1, { 0x0001338a } }, { 0x0001338b, 1, { 0x0001338b } }, { 0x0001338c, 1, { 0x0001338c } }, { 0x0001338d, 1, { 0x0001338d } }, { 0x0001338e, 1, { 0x0001338e } }, { 0x0001338f, 1, { 0x0001338f } }, { 0x00013390, 1, { 0x00013390 } }, { 0x00013391, 1, { 0x00013391 } }, { 0x00013392, 1, { 0x00013392 } }, { 0x00013393, 1, { 0x00013393 } }, { 0x00013394, 1, { 0x00013394 } }, { 0x00013395, 1, { 0x00013395 } }, { 0x00013396, 1, { 0x00013396 } }, { 0x00013397, 1, { 0x00013397 } }, { 0x00013398, 1, { 0x00013398 } }, { 0x00013399, 1, { 0x00013399 } }, { 0x0001339a, 1, { 0x0001339a } }, { 0x0001339b, 1, { 0x0001339b } }, { 0x0001339c, 1, { 0x0001339c } }, { 0x0001339d, 1, { 0x0001339d } }, { 0x0001339e, 1, { 0x0001339e } }, { 0x0001339f, 1, { 0x0001339f } }, { 0x000133a0, 1, { 0x000133a0 } }, { 0x000133a1, 1, { 0x000133a1 } }, { 0x000133a2, 1, { 0x000133a2 } }, { 0x000133a3, 1, { 0x000133a3 } }, { 0x000133a4, 1, { 0x000133a4 } }, { 0x000133a5, 1, { 0x000133a5 } }, { 0x000133a6, 1, { 0x000133a6 } }, { 0x000133a7, 1, { 0x000133a7 } }, { 0x000133a8, 1, { 0x000133a8 } }, { 0x000133a9, 1, { 0x000133a9 } }, { 0x000133aa, 1, { 0x000133aa } }, { 0x000133ab, 1, { 0x000133ab } }, { 0x000133ac, 1, { 0x000133ac } }, { 0x000133ad, 1, { 0x000133ad } }, { 0x000133ae, 1, { 0x000133ae } }, { 0x000133af, 1, { 0x000133af } }, { 0x000133b0, 1, { 0x000133b0 } }, { 0x000133b1, 1, { 0x000133b1 } }, { 0x000133b2, 1, { 0x000133b2 } }, { 0x000133b3, 1, { 0x000133b3 } }, { 0x000133b4, 1, { 0x000133b4 } }, { 0x000133b5, 1, { 0x000133b5 } }, { 0x000133b6, 1, { 0x000133b6 } }, { 0x000133b7, 1, { 0x000133b7 } }, { 0x000133b8, 1, { 0x000133b8 } }, { 0x000133b9, 1, { 0x000133b9 } }, { 0x000133ba, 1, { 0x000133ba } }, { 0x000133bb, 1, { 0x000133bb } }, { 0x000133bc, 1, { 0x000133bc } }, { 0x000133bd, 1, { 0x000133bd } }, { 0x000133be, 1, { 0x000133be } }, { 0x000133bf, 1, { 0x000133bf } }, { 0x000133c0, 1, { 0x000133c0 } }, { 0x000133c1, 1, { 0x000133c1 } }, { 0x000133c2, 1, { 0x000133c2 } }, { 0x000133c3, 1, { 0x000133c3 } }, { 0x000133c4, 1, { 0x000133c4 } }, { 0x000133c5, 1, { 0x000133c5 } }, { 0x000133c6, 1, { 0x000133c6 } }, { 0x000133c7, 1, { 0x000133c7 } }, { 0x000133c8, 1, { 0x000133c8 } }, { 0x000133c9, 1, { 0x000133c9 } }, { 0x000133ca, 1, { 0x000133ca } }, { 0x000133cb, 1, { 0x000133cb } }, { 0x000133cc, 1, { 0x000133cc } }, { 0x000133cd, 1, { 0x000133cd } }, { 0x000133ce, 1, { 0x000133ce } }, { 0x000133cf, 1, { 0x000133cf } }, { 0x000133d0, 1, { 0x000133d0 } }, { 0x000133d1, 1, { 0x000133d1 } }, { 0x000133d2, 1, { 0x000133d2 } }, { 0x000133d3, 1, { 0x000133d3 } }, { 0x000133d4, 1, { 0x000133d4 } }, { 0x000133d5, 1, { 0x000133d5 } }, { 0x000133d6, 1, { 0x000133d6 } }, { 0x000133d7, 1, { 0x000133d7 } }, { 0x000133d8, 1, { 0x000133d8 } }, { 0x000133d9, 1, { 0x000133d9 } }, { 0x000133da, 1, { 0x000133da } }, { 0x000133db, 1, { 0x000133db } }, { 0x000133dc, 1, { 0x000133dc } }, { 0x000133dd, 1, { 0x000133dd } }, { 0x000133de, 1, { 0x000133de } }, { 0x000133df, 1, { 0x000133df } }, { 0x000133e0, 1, { 0x000133e0 } }, { 0x000133e1, 1, { 0x000133e1 } }, { 0x000133e2, 1, { 0x000133e2 } }, { 0x000133e3, 1, { 0x000133e3 } }, { 0x000133e4, 1, { 0x000133e4 } }, { 0x000133e5, 1, { 0x000133e5 } }, { 0x000133e6, 1, { 0x000133e6 } }, { 0x000133e7, 1, { 0x000133e7 } }, { 0x000133e8, 1, { 0x000133e8 } }, { 0x000133e9, 1, { 0x000133e9 } }, { 0x000133ea, 1, { 0x000133ea } }, { 0x000133eb, 1, { 0x000133eb } }, { 0x000133ec, 1, { 0x000133ec } }, { 0x000133ed, 1, { 0x000133ed } }, { 0x000133ee, 1, { 0x000133ee } }, { 0x000133ef, 1, { 0x000133ef } }, { 0x000133f0, 1, { 0x000133f0 } }, { 0x000133f1, 1, { 0x000133f1 } }, { 0x000133f2, 1, { 0x000133f2 } }, { 0x000133f3, 1, { 0x000133f3 } }, { 0x000133f4, 1, { 0x000133f4 } }, { 0x000133f5, 1, { 0x000133f5 } }, { 0x000133f6, 1, { 0x000133f6 } }, { 0x000133f7, 1, { 0x000133f7 } }, { 0x000133f8, 1, { 0x000133f8 } }, { 0x000133f9, 1, { 0x000133f9 } }, { 0x000133fa, 1, { 0x000133fa } }, { 0x000133fb, 1, { 0x000133fb } }, { 0x000133fc, 1, { 0x000133fc } }, { 0x000133fd, 1, { 0x000133fd } }, { 0x000133fe, 1, { 0x000133fe } }, { 0x000133ff, 1, { 0x000133ff } }, { 0x00013400, 1, { 0x00013400 } }, { 0x00013401, 1, { 0x00013401 } }, { 0x00013402, 1, { 0x00013402 } }, { 0x00013403, 1, { 0x00013403 } }, { 0x00013404, 1, { 0x00013404 } }, { 0x00013405, 1, { 0x00013405 } }, { 0x00013406, 1, { 0x00013406 } }, { 0x00013407, 1, { 0x00013407 } }, { 0x00013408, 1, { 0x00013408 } }, { 0x00013409, 1, { 0x00013409 } }, { 0x0001340a, 1, { 0x0001340a } }, { 0x0001340b, 1, { 0x0001340b } }, { 0x0001340c, 1, { 0x0001340c } }, { 0x0001340d, 1, { 0x0001340d } }, { 0x0001340e, 1, { 0x0001340e } }, { 0x0001340f, 1, { 0x0001340f } }, { 0x00013410, 1, { 0x00013410 } }, { 0x00013411, 1, { 0x00013411 } }, { 0x00013412, 1, { 0x00013412 } }, { 0x00013413, 1, { 0x00013413 } }, { 0x00013414, 1, { 0x00013414 } }, { 0x00013415, 1, { 0x00013415 } }, { 0x00013416, 1, { 0x00013416 } }, { 0x00013417, 1, { 0x00013417 } }, { 0x00013418, 1, { 0x00013418 } }, { 0x00013419, 1, { 0x00013419 } }, { 0x0001341a, 1, { 0x0001341a } }, { 0x0001341b, 1, { 0x0001341b } }, { 0x0001341c, 1, { 0x0001341c } }, { 0x0001341d, 1, { 0x0001341d } }, { 0x0001341e, 1, { 0x0001341e } }, { 0x0001341f, 1, { 0x0001341f } }, { 0x00013420, 1, { 0x00013420 } }, { 0x00013421, 1, { 0x00013421 } }, { 0x00013422, 1, { 0x00013422 } }, { 0x00013423, 1, { 0x00013423 } }, { 0x00013424, 1, { 0x00013424 } }, { 0x00013425, 1, { 0x00013425 } }, { 0x00013426, 1, { 0x00013426 } }, { 0x00013427, 1, { 0x00013427 } }, { 0x00013428, 1, { 0x00013428 } }, { 0x00013429, 1, { 0x00013429 } }, { 0x0001342a, 1, { 0x0001342a } }, { 0x0001342b, 1, { 0x0001342b } }, { 0x0001342c, 1, { 0x0001342c } }, { 0x0001342d, 1, { 0x0001342d } }, { 0x0001342e, 1, { 0x0001342e } }, { 0x00014400, 1, { 0x00014400 } }, { 0x00014401, 1, { 0x00014401 } }, { 0x00014402, 1, { 0x00014402 } }, { 0x00014403, 1, { 0x00014403 } }, { 0x00014404, 1, { 0x00014404 } }, { 0x00014405, 1, { 0x00014405 } }, { 0x00014406, 1, { 0x00014406 } }, { 0x00014407, 1, { 0x00014407 } }, { 0x00014408, 1, { 0x00014408 } }, { 0x00014409, 1, { 0x00014409 } }, { 0x0001440a, 1, { 0x0001440a } }, { 0x0001440b, 1, { 0x0001440b } }, { 0x0001440c, 1, { 0x0001440c } }, { 0x0001440d, 1, { 0x0001440d } }, { 0x0001440e, 1, { 0x0001440e } }, { 0x0001440f, 1, { 0x0001440f } }, { 0x00014410, 1, { 0x00014410 } }, { 0x00014411, 1, { 0x00014411 } }, { 0x00014412, 1, { 0x00014412 } }, { 0x00014413, 1, { 0x00014413 } }, { 0x00014414, 1, { 0x00014414 } }, { 0x00014415, 1, { 0x00014415 } }, { 0x00014416, 1, { 0x00014416 } }, { 0x00014417, 1, { 0x00014417 } }, { 0x00014418, 1, { 0x00014418 } }, { 0x00014419, 1, { 0x00014419 } }, { 0x0001441a, 1, { 0x0001441a } }, { 0x0001441b, 1, { 0x0001441b } }, { 0x0001441c, 1, { 0x0001441c } }, { 0x0001441d, 1, { 0x0001441d } }, { 0x0001441e, 1, { 0x0001441e } }, { 0x0001441f, 1, { 0x0001441f } }, { 0x00014420, 1, { 0x00014420 } }, { 0x00014421, 1, { 0x00014421 } }, { 0x00014422, 1, { 0x00014422 } }, { 0x00014423, 1, { 0x00014423 } }, { 0x00014424, 1, { 0x00014424 } }, { 0x00014425, 1, { 0x00014425 } }, { 0x00014426, 1, { 0x00014426 } }, { 0x00014427, 1, { 0x00014427 } }, { 0x00014428, 1, { 0x00014428 } }, { 0x00014429, 1, { 0x00014429 } }, { 0x0001442a, 1, { 0x0001442a } }, { 0x0001442b, 1, { 0x0001442b } }, { 0x0001442c, 1, { 0x0001442c } }, { 0x0001442d, 1, { 0x0001442d } }, { 0x0001442e, 1, { 0x0001442e } }, { 0x0001442f, 1, { 0x0001442f } }, { 0x00014430, 1, { 0x00014430 } }, { 0x00014431, 1, { 0x00014431 } }, { 0x00014432, 1, { 0x00014432 } }, { 0x00014433, 1, { 0x00014433 } }, { 0x00014434, 1, { 0x00014434 } }, { 0x00014435, 1, { 0x00014435 } }, { 0x00014436, 1, { 0x00014436 } }, { 0x00014437, 1, { 0x00014437 } }, { 0x00014438, 1, { 0x00014438 } }, { 0x00014439, 1, { 0x00014439 } }, { 0x0001443a, 1, { 0x0001443a } }, { 0x0001443b, 1, { 0x0001443b } }, { 0x0001443c, 1, { 0x0001443c } }, { 0x0001443d, 1, { 0x0001443d } }, { 0x0001443e, 1, { 0x0001443e } }, { 0x0001443f, 1, { 0x0001443f } }, { 0x00014440, 1, { 0x00014440 } }, { 0x00014441, 1, { 0x00014441 } }, { 0x00014442, 1, { 0x00014442 } }, { 0x00014443, 1, { 0x00014443 } }, { 0x00014444, 1, { 0x00014444 } }, { 0x00014445, 1, { 0x00014445 } }, { 0x00014446, 1, { 0x00014446 } }, { 0x00014447, 1, { 0x00014447 } }, { 0x00014448, 1, { 0x00014448 } }, { 0x00014449, 1, { 0x00014449 } }, { 0x0001444a, 1, { 0x0001444a } }, { 0x0001444b, 1, { 0x0001444b } }, { 0x0001444c, 1, { 0x0001444c } }, { 0x0001444d, 1, { 0x0001444d } }, { 0x0001444e, 1, { 0x0001444e } }, { 0x0001444f, 1, { 0x0001444f } }, { 0x00014450, 1, { 0x00014450 } }, { 0x00014451, 1, { 0x00014451 } }, { 0x00014452, 1, { 0x00014452 } }, { 0x00014453, 1, { 0x00014453 } }, { 0x00014454, 1, { 0x00014454 } }, { 0x00014455, 1, { 0x00014455 } }, { 0x00014456, 1, { 0x00014456 } }, { 0x00014457, 1, { 0x00014457 } }, { 0x00014458, 1, { 0x00014458 } }, { 0x00014459, 1, { 0x00014459 } }, { 0x0001445a, 1, { 0x0001445a } }, { 0x0001445b, 1, { 0x0001445b } }, { 0x0001445c, 1, { 0x0001445c } }, { 0x0001445d, 1, { 0x0001445d } }, { 0x0001445e, 1, { 0x0001445e } }, { 0x0001445f, 1, { 0x0001445f } }, { 0x00014460, 1, { 0x00014460 } }, { 0x00014461, 1, { 0x00014461 } }, { 0x00014462, 1, { 0x00014462 } }, { 0x00014463, 1, { 0x00014463 } }, { 0x00014464, 1, { 0x00014464 } }, { 0x00014465, 1, { 0x00014465 } }, { 0x00014466, 1, { 0x00014466 } }, { 0x00014467, 1, { 0x00014467 } }, { 0x00014468, 1, { 0x00014468 } }, { 0x00014469, 1, { 0x00014469 } }, { 0x0001446a, 1, { 0x0001446a } }, { 0x0001446b, 1, { 0x0001446b } }, { 0x0001446c, 1, { 0x0001446c } }, { 0x0001446d, 1, { 0x0001446d } }, { 0x0001446e, 1, { 0x0001446e } }, { 0x0001446f, 1, { 0x0001446f } }, { 0x00014470, 1, { 0x00014470 } }, { 0x00014471, 1, { 0x00014471 } }, { 0x00014472, 1, { 0x00014472 } }, { 0x00014473, 1, { 0x00014473 } }, { 0x00014474, 1, { 0x00014474 } }, { 0x00014475, 1, { 0x00014475 } }, { 0x00014476, 1, { 0x00014476 } }, { 0x00014477, 1, { 0x00014477 } }, { 0x00014478, 1, { 0x00014478 } }, { 0x00014479, 1, { 0x00014479 } }, { 0x0001447a, 1, { 0x0001447a } }, { 0x0001447b, 1, { 0x0001447b } }, { 0x0001447c, 1, { 0x0001447c } }, { 0x0001447d, 1, { 0x0001447d } }, { 0x0001447e, 1, { 0x0001447e } }, { 0x0001447f, 1, { 0x0001447f } }, { 0x00014480, 1, { 0x00014480 } }, { 0x00014481, 1, { 0x00014481 } }, { 0x00014482, 1, { 0x00014482 } }, { 0x00014483, 1, { 0x00014483 } }, { 0x00014484, 1, { 0x00014484 } }, { 0x00014485, 1, { 0x00014485 } }, { 0x00014486, 1, { 0x00014486 } }, { 0x00014487, 1, { 0x00014487 } }, { 0x00014488, 1, { 0x00014488 } }, { 0x00014489, 1, { 0x00014489 } }, { 0x0001448a, 1, { 0x0001448a } }, { 0x0001448b, 1, { 0x0001448b } }, { 0x0001448c, 1, { 0x0001448c } }, { 0x0001448d, 1, { 0x0001448d } }, { 0x0001448e, 1, { 0x0001448e } }, { 0x0001448f, 1, { 0x0001448f } }, { 0x00014490, 1, { 0x00014490 } }, { 0x00014491, 1, { 0x00014491 } }, { 0x00014492, 1, { 0x00014492 } }, { 0x00014493, 1, { 0x00014493 } }, { 0x00014494, 1, { 0x00014494 } }, { 0x00014495, 1, { 0x00014495 } }, { 0x00014496, 1, { 0x00014496 } }, { 0x00014497, 1, { 0x00014497 } }, { 0x00014498, 1, { 0x00014498 } }, { 0x00014499, 1, { 0x00014499 } }, { 0x0001449a, 1, { 0x0001449a } }, { 0x0001449b, 1, { 0x0001449b } }, { 0x0001449c, 1, { 0x0001449c } }, { 0x0001449d, 1, { 0x0001449d } }, { 0x0001449e, 1, { 0x0001449e } }, { 0x0001449f, 1, { 0x0001449f } }, { 0x000144a0, 1, { 0x000144a0 } }, { 0x000144a1, 1, { 0x000144a1 } }, { 0x000144a2, 1, { 0x000144a2 } }, { 0x000144a3, 1, { 0x000144a3 } }, { 0x000144a4, 1, { 0x000144a4 } }, { 0x000144a5, 1, { 0x000144a5 } }, { 0x000144a6, 1, { 0x000144a6 } }, { 0x000144a7, 1, { 0x000144a7 } }, { 0x000144a8, 1, { 0x000144a8 } }, { 0x000144a9, 1, { 0x000144a9 } }, { 0x000144aa, 1, { 0x000144aa } }, { 0x000144ab, 1, { 0x000144ab } }, { 0x000144ac, 1, { 0x000144ac } }, { 0x000144ad, 1, { 0x000144ad } }, { 0x000144ae, 1, { 0x000144ae } }, { 0x000144af, 1, { 0x000144af } }, { 0x000144b0, 1, { 0x000144b0 } }, { 0x000144b1, 1, { 0x000144b1 } }, { 0x000144b2, 1, { 0x000144b2 } }, { 0x000144b3, 1, { 0x000144b3 } }, { 0x000144b4, 1, { 0x000144b4 } }, { 0x000144b5, 1, { 0x000144b5 } }, { 0x000144b6, 1, { 0x000144b6 } }, { 0x000144b7, 1, { 0x000144b7 } }, { 0x000144b8, 1, { 0x000144b8 } }, { 0x000144b9, 1, { 0x000144b9 } }, { 0x000144ba, 1, { 0x000144ba } }, { 0x000144bb, 1, { 0x000144bb } }, { 0x000144bc, 1, { 0x000144bc } }, { 0x000144bd, 1, { 0x000144bd } }, { 0x000144be, 1, { 0x000144be } }, { 0x000144bf, 1, { 0x000144bf } }, { 0x000144c0, 1, { 0x000144c0 } }, { 0x000144c1, 1, { 0x000144c1 } }, { 0x000144c2, 1, { 0x000144c2 } }, { 0x000144c3, 1, { 0x000144c3 } }, { 0x000144c4, 1, { 0x000144c4 } }, { 0x000144c5, 1, { 0x000144c5 } }, { 0x000144c6, 1, { 0x000144c6 } }, { 0x000144c7, 1, { 0x000144c7 } }, { 0x000144c8, 1, { 0x000144c8 } }, { 0x000144c9, 1, { 0x000144c9 } }, { 0x000144ca, 1, { 0x000144ca } }, { 0x000144cb, 1, { 0x000144cb } }, { 0x000144cc, 1, { 0x000144cc } }, { 0x000144cd, 1, { 0x000144cd } }, { 0x000144ce, 1, { 0x000144ce } }, { 0x000144cf, 1, { 0x000144cf } }, { 0x000144d0, 1, { 0x000144d0 } }, { 0x000144d1, 1, { 0x000144d1 } }, { 0x000144d2, 1, { 0x000144d2 } }, { 0x000144d3, 1, { 0x000144d3 } }, { 0x000144d4, 1, { 0x000144d4 } }, { 0x000144d5, 1, { 0x000144d5 } }, { 0x000144d6, 1, { 0x000144d6 } }, { 0x000144d7, 1, { 0x000144d7 } }, { 0x000144d8, 1, { 0x000144d8 } }, { 0x000144d9, 1, { 0x000144d9 } }, { 0x000144da, 1, { 0x000144da } }, { 0x000144db, 1, { 0x000144db } }, { 0x000144dc, 1, { 0x000144dc } }, { 0x000144dd, 1, { 0x000144dd } }, { 0x000144de, 1, { 0x000144de } }, { 0x000144df, 1, { 0x000144df } }, { 0x000144e0, 1, { 0x000144e0 } }, { 0x000144e1, 1, { 0x000144e1 } }, { 0x000144e2, 1, { 0x000144e2 } }, { 0x000144e3, 1, { 0x000144e3 } }, { 0x000144e4, 1, { 0x000144e4 } }, { 0x000144e5, 1, { 0x000144e5 } }, { 0x000144e6, 1, { 0x000144e6 } }, { 0x000144e7, 1, { 0x000144e7 } }, { 0x000144e8, 1, { 0x000144e8 } }, { 0x000144e9, 1, { 0x000144e9 } }, { 0x000144ea, 1, { 0x000144ea } }, { 0x000144eb, 1, { 0x000144eb } }, { 0x000144ec, 1, { 0x000144ec } }, { 0x000144ed, 1, { 0x000144ed } }, { 0x000144ee, 1, { 0x000144ee } }, { 0x000144ef, 1, { 0x000144ef } }, { 0x000144f0, 1, { 0x000144f0 } }, { 0x000144f1, 1, { 0x000144f1 } }, { 0x000144f2, 1, { 0x000144f2 } }, { 0x000144f3, 1, { 0x000144f3 } }, { 0x000144f4, 1, { 0x000144f4 } }, { 0x000144f5, 1, { 0x000144f5 } }, { 0x000144f6, 1, { 0x000144f6 } }, { 0x000144f7, 1, { 0x000144f7 } }, { 0x000144f8, 1, { 0x000144f8 } }, { 0x000144f9, 1, { 0x000144f9 } }, { 0x000144fa, 1, { 0x000144fa } }, { 0x000144fb, 1, { 0x000144fb } }, { 0x000144fc, 1, { 0x000144fc } }, { 0x000144fd, 1, { 0x000144fd } }, { 0x000144fe, 1, { 0x000144fe } }, { 0x000144ff, 1, { 0x000144ff } }, { 0x00014500, 1, { 0x00014500 } }, { 0x00014501, 1, { 0x00014501 } }, { 0x00014502, 1, { 0x00014502 } }, { 0x00014503, 1, { 0x00014503 } }, { 0x00014504, 1, { 0x00014504 } }, { 0x00014505, 1, { 0x00014505 } }, { 0x00014506, 1, { 0x00014506 } }, { 0x00014507, 1, { 0x00014507 } }, { 0x00014508, 1, { 0x00014508 } }, { 0x00014509, 1, { 0x00014509 } }, { 0x0001450a, 1, { 0x0001450a } }, { 0x0001450b, 1, { 0x0001450b } }, { 0x0001450c, 1, { 0x0001450c } }, { 0x0001450d, 1, { 0x0001450d } }, { 0x0001450e, 1, { 0x0001450e } }, { 0x0001450f, 1, { 0x0001450f } }, { 0x00014510, 1, { 0x00014510 } }, { 0x00014511, 1, { 0x00014511 } }, { 0x00014512, 1, { 0x00014512 } }, { 0x00014513, 1, { 0x00014513 } }, { 0x00014514, 1, { 0x00014514 } }, { 0x00014515, 1, { 0x00014515 } }, { 0x00014516, 1, { 0x00014516 } }, { 0x00014517, 1, { 0x00014517 } }, { 0x00014518, 1, { 0x00014518 } }, { 0x00014519, 1, { 0x00014519 } }, { 0x0001451a, 1, { 0x0001451a } }, { 0x0001451b, 1, { 0x0001451b } }, { 0x0001451c, 1, { 0x0001451c } }, { 0x0001451d, 1, { 0x0001451d } }, { 0x0001451e, 1, { 0x0001451e } }, { 0x0001451f, 1, { 0x0001451f } }, { 0x00014520, 1, { 0x00014520 } }, { 0x00014521, 1, { 0x00014521 } }, { 0x00014522, 1, { 0x00014522 } }, { 0x00014523, 1, { 0x00014523 } }, { 0x00014524, 1, { 0x00014524 } }, { 0x00014525, 1, { 0x00014525 } }, { 0x00014526, 1, { 0x00014526 } }, { 0x00014527, 1, { 0x00014527 } }, { 0x00014528, 1, { 0x00014528 } }, { 0x00014529, 1, { 0x00014529 } }, { 0x0001452a, 1, { 0x0001452a } }, { 0x0001452b, 1, { 0x0001452b } }, { 0x0001452c, 1, { 0x0001452c } }, { 0x0001452d, 1, { 0x0001452d } }, { 0x0001452e, 1, { 0x0001452e } }, { 0x0001452f, 1, { 0x0001452f } }, { 0x00014530, 1, { 0x00014530 } }, { 0x00014531, 1, { 0x00014531 } }, { 0x00014532, 1, { 0x00014532 } }, { 0x00014533, 1, { 0x00014533 } }, { 0x00014534, 1, { 0x00014534 } }, { 0x00014535, 1, { 0x00014535 } }, { 0x00014536, 1, { 0x00014536 } }, { 0x00014537, 1, { 0x00014537 } }, { 0x00014538, 1, { 0x00014538 } }, { 0x00014539, 1, { 0x00014539 } }, { 0x0001453a, 1, { 0x0001453a } }, { 0x0001453b, 1, { 0x0001453b } }, { 0x0001453c, 1, { 0x0001453c } }, { 0x0001453d, 1, { 0x0001453d } }, { 0x0001453e, 1, { 0x0001453e } }, { 0x0001453f, 1, { 0x0001453f } }, { 0x00014540, 1, { 0x00014540 } }, { 0x00014541, 1, { 0x00014541 } }, { 0x00014542, 1, { 0x00014542 } }, { 0x00014543, 1, { 0x00014543 } }, { 0x00014544, 1, { 0x00014544 } }, { 0x00014545, 1, { 0x00014545 } }, { 0x00014546, 1, { 0x00014546 } }, { 0x00014547, 1, { 0x00014547 } }, { 0x00014548, 1, { 0x00014548 } }, { 0x00014549, 1, { 0x00014549 } }, { 0x0001454a, 1, { 0x0001454a } }, { 0x0001454b, 1, { 0x0001454b } }, { 0x0001454c, 1, { 0x0001454c } }, { 0x0001454d, 1, { 0x0001454d } }, { 0x0001454e, 1, { 0x0001454e } }, { 0x0001454f, 1, { 0x0001454f } }, { 0x00014550, 1, { 0x00014550 } }, { 0x00014551, 1, { 0x00014551 } }, { 0x00014552, 1, { 0x00014552 } }, { 0x00014553, 1, { 0x00014553 } }, { 0x00014554, 1, { 0x00014554 } }, { 0x00014555, 1, { 0x00014555 } }, { 0x00014556, 1, { 0x00014556 } }, { 0x00014557, 1, { 0x00014557 } }, { 0x00014558, 1, { 0x00014558 } }, { 0x00014559, 1, { 0x00014559 } }, { 0x0001455a, 1, { 0x0001455a } }, { 0x0001455b, 1, { 0x0001455b } }, { 0x0001455c, 1, { 0x0001455c } }, { 0x0001455d, 1, { 0x0001455d } }, { 0x0001455e, 1, { 0x0001455e } }, { 0x0001455f, 1, { 0x0001455f } }, { 0x00014560, 1, { 0x00014560 } }, { 0x00014561, 1, { 0x00014561 } }, { 0x00014562, 1, { 0x00014562 } }, { 0x00014563, 1, { 0x00014563 } }, { 0x00014564, 1, { 0x00014564 } }, { 0x00014565, 1, { 0x00014565 } }, { 0x00014566, 1, { 0x00014566 } }, { 0x00014567, 1, { 0x00014567 } }, { 0x00014568, 1, { 0x00014568 } }, { 0x00014569, 1, { 0x00014569 } }, { 0x0001456a, 1, { 0x0001456a } }, { 0x0001456b, 1, { 0x0001456b } }, { 0x0001456c, 1, { 0x0001456c } }, { 0x0001456d, 1, { 0x0001456d } }, { 0x0001456e, 1, { 0x0001456e } }, { 0x0001456f, 1, { 0x0001456f } }, { 0x00014570, 1, { 0x00014570 } }, { 0x00014571, 1, { 0x00014571 } }, { 0x00014572, 1, { 0x00014572 } }, { 0x00014573, 1, { 0x00014573 } }, { 0x00014574, 1, { 0x00014574 } }, { 0x00014575, 1, { 0x00014575 } }, { 0x00014576, 1, { 0x00014576 } }, { 0x00014577, 1, { 0x00014577 } }, { 0x00014578, 1, { 0x00014578 } }, { 0x00014579, 1, { 0x00014579 } }, { 0x0001457a, 1, { 0x0001457a } }, { 0x0001457b, 1, { 0x0001457b } }, { 0x0001457c, 1, { 0x0001457c } }, { 0x0001457d, 1, { 0x0001457d } }, { 0x0001457e, 1, { 0x0001457e } }, { 0x0001457f, 1, { 0x0001457f } }, { 0x00014580, 1, { 0x00014580 } }, { 0x00014581, 1, { 0x00014581 } }, { 0x00014582, 1, { 0x00014582 } }, { 0x00014583, 1, { 0x00014583 } }, { 0x00014584, 1, { 0x00014584 } }, { 0x00014585, 1, { 0x00014585 } }, { 0x00014586, 1, { 0x00014586 } }, { 0x00014587, 1, { 0x00014587 } }, { 0x00014588, 1, { 0x00014588 } }, { 0x00014589, 1, { 0x00014589 } }, { 0x0001458a, 1, { 0x0001458a } }, { 0x0001458b, 1, { 0x0001458b } }, { 0x0001458c, 1, { 0x0001458c } }, { 0x0001458d, 1, { 0x0001458d } }, { 0x0001458e, 1, { 0x0001458e } }, { 0x0001458f, 1, { 0x0001458f } }, { 0x00014590, 1, { 0x00014590 } }, { 0x00014591, 1, { 0x00014591 } }, { 0x00014592, 1, { 0x00014592 } }, { 0x00014593, 1, { 0x00014593 } }, { 0x00014594, 1, { 0x00014594 } }, { 0x00014595, 1, { 0x00014595 } }, { 0x00014596, 1, { 0x00014596 } }, { 0x00014597, 1, { 0x00014597 } }, { 0x00014598, 1, { 0x00014598 } }, { 0x00014599, 1, { 0x00014599 } }, { 0x0001459a, 1, { 0x0001459a } }, { 0x0001459b, 1, { 0x0001459b } }, { 0x0001459c, 1, { 0x0001459c } }, { 0x0001459d, 1, { 0x0001459d } }, { 0x0001459e, 1, { 0x0001459e } }, { 0x0001459f, 1, { 0x0001459f } }, { 0x000145a0, 1, { 0x000145a0 } }, { 0x000145a1, 1, { 0x000145a1 } }, { 0x000145a2, 1, { 0x000145a2 } }, { 0x000145a3, 1, { 0x000145a3 } }, { 0x000145a4, 1, { 0x000145a4 } }, { 0x000145a5, 1, { 0x000145a5 } }, { 0x000145a6, 1, { 0x000145a6 } }, { 0x000145a7, 1, { 0x000145a7 } }, { 0x000145a8, 1, { 0x000145a8 } }, { 0x000145a9, 1, { 0x000145a9 } }, { 0x000145aa, 1, { 0x000145aa } }, { 0x000145ab, 1, { 0x000145ab } }, { 0x000145ac, 1, { 0x000145ac } }, { 0x000145ad, 1, { 0x000145ad } }, { 0x000145ae, 1, { 0x000145ae } }, { 0x000145af, 1, { 0x000145af } }, { 0x000145b0, 1, { 0x000145b0 } }, { 0x000145b1, 1, { 0x000145b1 } }, { 0x000145b2, 1, { 0x000145b2 } }, { 0x000145b3, 1, { 0x000145b3 } }, { 0x000145b4, 1, { 0x000145b4 } }, { 0x000145b5, 1, { 0x000145b5 } }, { 0x000145b6, 1, { 0x000145b6 } }, { 0x000145b7, 1, { 0x000145b7 } }, { 0x000145b8, 1, { 0x000145b8 } }, { 0x000145b9, 1, { 0x000145b9 } }, { 0x000145ba, 1, { 0x000145ba } }, { 0x000145bb, 1, { 0x000145bb } }, { 0x000145bc, 1, { 0x000145bc } }, { 0x000145bd, 1, { 0x000145bd } }, { 0x000145be, 1, { 0x000145be } }, { 0x000145bf, 1, { 0x000145bf } }, { 0x000145c0, 1, { 0x000145c0 } }, { 0x000145c1, 1, { 0x000145c1 } }, { 0x000145c2, 1, { 0x000145c2 } }, { 0x000145c3, 1, { 0x000145c3 } }, { 0x000145c4, 1, { 0x000145c4 } }, { 0x000145c5, 1, { 0x000145c5 } }, { 0x000145c6, 1, { 0x000145c6 } }, { 0x000145c7, 1, { 0x000145c7 } }, { 0x000145c8, 1, { 0x000145c8 } }, { 0x000145c9, 1, { 0x000145c9 } }, { 0x000145ca, 1, { 0x000145ca } }, { 0x000145cb, 1, { 0x000145cb } }, { 0x000145cc, 1, { 0x000145cc } }, { 0x000145cd, 1, { 0x000145cd } }, { 0x000145ce, 1, { 0x000145ce } }, { 0x000145cf, 1, { 0x000145cf } }, { 0x000145d0, 1, { 0x000145d0 } }, { 0x000145d1, 1, { 0x000145d1 } }, { 0x000145d2, 1, { 0x000145d2 } }, { 0x000145d3, 1, { 0x000145d3 } }, { 0x000145d4, 1, { 0x000145d4 } }, { 0x000145d5, 1, { 0x000145d5 } }, { 0x000145d6, 1, { 0x000145d6 } }, { 0x000145d7, 1, { 0x000145d7 } }, { 0x000145d8, 1, { 0x000145d8 } }, { 0x000145d9, 1, { 0x000145d9 } }, { 0x000145da, 1, { 0x000145da } }, { 0x000145db, 1, { 0x000145db } }, { 0x000145dc, 1, { 0x000145dc } }, { 0x000145dd, 1, { 0x000145dd } }, { 0x000145de, 1, { 0x000145de } }, { 0x000145df, 1, { 0x000145df } }, { 0x000145e0, 1, { 0x000145e0 } }, { 0x000145e1, 1, { 0x000145e1 } }, { 0x000145e2, 1, { 0x000145e2 } }, { 0x000145e3, 1, { 0x000145e3 } }, { 0x000145e4, 1, { 0x000145e4 } }, { 0x000145e5, 1, { 0x000145e5 } }, { 0x000145e6, 1, { 0x000145e6 } }, { 0x000145e7, 1, { 0x000145e7 } }, { 0x000145e8, 1, { 0x000145e8 } }, { 0x000145e9, 1, { 0x000145e9 } }, { 0x000145ea, 1, { 0x000145ea } }, { 0x000145eb, 1, { 0x000145eb } }, { 0x000145ec, 1, { 0x000145ec } }, { 0x000145ed, 1, { 0x000145ed } }, { 0x000145ee, 1, { 0x000145ee } }, { 0x000145ef, 1, { 0x000145ef } }, { 0x000145f0, 1, { 0x000145f0 } }, { 0x000145f1, 1, { 0x000145f1 } }, { 0x000145f2, 1, { 0x000145f2 } }, { 0x000145f3, 1, { 0x000145f3 } }, { 0x000145f4, 1, { 0x000145f4 } }, { 0x000145f5, 1, { 0x000145f5 } }, { 0x000145f6, 1, { 0x000145f6 } }, { 0x000145f7, 1, { 0x000145f7 } }, { 0x000145f8, 1, { 0x000145f8 } }, { 0x000145f9, 1, { 0x000145f9 } }, { 0x000145fa, 1, { 0x000145fa } }, { 0x000145fb, 1, { 0x000145fb } }, { 0x000145fc, 1, { 0x000145fc } }, { 0x000145fd, 1, { 0x000145fd } }, { 0x000145fe, 1, { 0x000145fe } }, { 0x000145ff, 1, { 0x000145ff } }, { 0x00014600, 1, { 0x00014600 } }, { 0x00014601, 1, { 0x00014601 } }, { 0x00014602, 1, { 0x00014602 } }, { 0x00014603, 1, { 0x00014603 } }, { 0x00014604, 1, { 0x00014604 } }, { 0x00014605, 1, { 0x00014605 } }, { 0x00014606, 1, { 0x00014606 } }, { 0x00014607, 1, { 0x00014607 } }, { 0x00014608, 1, { 0x00014608 } }, { 0x00014609, 1, { 0x00014609 } }, { 0x0001460a, 1, { 0x0001460a } }, { 0x0001460b, 1, { 0x0001460b } }, { 0x0001460c, 1, { 0x0001460c } }, { 0x0001460d, 1, { 0x0001460d } }, { 0x0001460e, 1, { 0x0001460e } }, { 0x0001460f, 1, { 0x0001460f } }, { 0x00014610, 1, { 0x00014610 } }, { 0x00014611, 1, { 0x00014611 } }, { 0x00014612, 1, { 0x00014612 } }, { 0x00014613, 1, { 0x00014613 } }, { 0x00014614, 1, { 0x00014614 } }, { 0x00014615, 1, { 0x00014615 } }, { 0x00014616, 1, { 0x00014616 } }, { 0x00014617, 1, { 0x00014617 } }, { 0x00014618, 1, { 0x00014618 } }, { 0x00014619, 1, { 0x00014619 } }, { 0x0001461a, 1, { 0x0001461a } }, { 0x0001461b, 1, { 0x0001461b } }, { 0x0001461c, 1, { 0x0001461c } }, { 0x0001461d, 1, { 0x0001461d } }, { 0x0001461e, 1, { 0x0001461e } }, { 0x0001461f, 1, { 0x0001461f } }, { 0x00014620, 1, { 0x00014620 } }, { 0x00014621, 1, { 0x00014621 } }, { 0x00014622, 1, { 0x00014622 } }, { 0x00014623, 1, { 0x00014623 } }, { 0x00014624, 1, { 0x00014624 } }, { 0x00014625, 1, { 0x00014625 } }, { 0x00014626, 1, { 0x00014626 } }, { 0x00014627, 1, { 0x00014627 } }, { 0x00014628, 1, { 0x00014628 } }, { 0x00014629, 1, { 0x00014629 } }, { 0x0001462a, 1, { 0x0001462a } }, { 0x0001462b, 1, { 0x0001462b } }, { 0x0001462c, 1, { 0x0001462c } }, { 0x0001462d, 1, { 0x0001462d } }, { 0x0001462e, 1, { 0x0001462e } }, { 0x0001462f, 1, { 0x0001462f } }, { 0x00014630, 1, { 0x00014630 } }, { 0x00014631, 1, { 0x00014631 } }, { 0x00014632, 1, { 0x00014632 } }, { 0x00014633, 1, { 0x00014633 } }, { 0x00014634, 1, { 0x00014634 } }, { 0x00014635, 1, { 0x00014635 } }, { 0x00014636, 1, { 0x00014636 } }, { 0x00014637, 1, { 0x00014637 } }, { 0x00014638, 1, { 0x00014638 } }, { 0x00014639, 1, { 0x00014639 } }, { 0x0001463a, 1, { 0x0001463a } }, { 0x0001463b, 1, { 0x0001463b } }, { 0x0001463c, 1, { 0x0001463c } }, { 0x0001463d, 1, { 0x0001463d } }, { 0x0001463e, 1, { 0x0001463e } }, { 0x0001463f, 1, { 0x0001463f } }, { 0x00014640, 1, { 0x00014640 } }, { 0x00014641, 1, { 0x00014641 } }, { 0x00014642, 1, { 0x00014642 } }, { 0x00014643, 1, { 0x00014643 } }, { 0x00014644, 1, { 0x00014644 } }, { 0x00014645, 1, { 0x00014645 } }, { 0x00014646, 1, { 0x00014646 } }, { 0x00016800, 1, { 0x00016800 } }, { 0x00016801, 1, { 0x00016801 } }, { 0x00016802, 1, { 0x00016802 } }, { 0x00016803, 1, { 0x00016803 } }, { 0x00016804, 1, { 0x00016804 } }, { 0x00016805, 1, { 0x00016805 } }, { 0x00016806, 1, { 0x00016806 } }, { 0x00016807, 1, { 0x00016807 } }, { 0x00016808, 1, { 0x00016808 } }, { 0x00016809, 1, { 0x00016809 } }, { 0x0001680a, 1, { 0x0001680a } }, { 0x0001680b, 1, { 0x0001680b } }, { 0x0001680c, 1, { 0x0001680c } }, { 0x0001680d, 1, { 0x0001680d } }, { 0x0001680e, 1, { 0x0001680e } }, { 0x0001680f, 1, { 0x0001680f } }, { 0x00016810, 1, { 0x00016810 } }, { 0x00016811, 1, { 0x00016811 } }, { 0x00016812, 1, { 0x00016812 } }, { 0x00016813, 1, { 0x00016813 } }, { 0x00016814, 1, { 0x00016814 } }, { 0x00016815, 1, { 0x00016815 } }, { 0x00016816, 1, { 0x00016816 } }, { 0x00016817, 1, { 0x00016817 } }, { 0x00016818, 1, { 0x00016818 } }, { 0x00016819, 1, { 0x00016819 } }, { 0x0001681a, 1, { 0x0001681a } }, { 0x0001681b, 1, { 0x0001681b } }, { 0x0001681c, 1, { 0x0001681c } }, { 0x0001681d, 1, { 0x0001681d } }, { 0x0001681e, 1, { 0x0001681e } }, { 0x0001681f, 1, { 0x0001681f } }, { 0x00016820, 1, { 0x00016820 } }, { 0x00016821, 1, { 0x00016821 } }, { 0x00016822, 1, { 0x00016822 } }, { 0x00016823, 1, { 0x00016823 } }, { 0x00016824, 1, { 0x00016824 } }, { 0x00016825, 1, { 0x00016825 } }, { 0x00016826, 1, { 0x00016826 } }, { 0x00016827, 1, { 0x00016827 } }, { 0x00016828, 1, { 0x00016828 } }, { 0x00016829, 1, { 0x00016829 } }, { 0x0001682a, 1, { 0x0001682a } }, { 0x0001682b, 1, { 0x0001682b } }, { 0x0001682c, 1, { 0x0001682c } }, { 0x0001682d, 1, { 0x0001682d } }, { 0x0001682e, 1, { 0x0001682e } }, { 0x0001682f, 1, { 0x0001682f } }, { 0x00016830, 1, { 0x00016830 } }, { 0x00016831, 1, { 0x00016831 } }, { 0x00016832, 1, { 0x00016832 } }, { 0x00016833, 1, { 0x00016833 } }, { 0x00016834, 1, { 0x00016834 } }, { 0x00016835, 1, { 0x00016835 } }, { 0x00016836, 1, { 0x00016836 } }, { 0x00016837, 1, { 0x00016837 } }, { 0x00016838, 1, { 0x00016838 } }, { 0x00016839, 1, { 0x00016839 } }, { 0x0001683a, 1, { 0x0001683a } }, { 0x0001683b, 1, { 0x0001683b } }, { 0x0001683c, 1, { 0x0001683c } }, { 0x0001683d, 1, { 0x0001683d } }, { 0x0001683e, 1, { 0x0001683e } }, { 0x0001683f, 1, { 0x0001683f } }, { 0x00016840, 1, { 0x00016840 } }, { 0x00016841, 1, { 0x00016841 } }, { 0x00016842, 1, { 0x00016842 } }, { 0x00016843, 1, { 0x00016843 } }, { 0x00016844, 1, { 0x00016844 } }, { 0x00016845, 1, { 0x00016845 } }, { 0x00016846, 1, { 0x00016846 } }, { 0x00016847, 1, { 0x00016847 } }, { 0x00016848, 1, { 0x00016848 } }, { 0x00016849, 1, { 0x00016849 } }, { 0x0001684a, 1, { 0x0001684a } }, { 0x0001684b, 1, { 0x0001684b } }, { 0x0001684c, 1, { 0x0001684c } }, { 0x0001684d, 1, { 0x0001684d } }, { 0x0001684e, 1, { 0x0001684e } }, { 0x0001684f, 1, { 0x0001684f } }, { 0x00016850, 1, { 0x00016850 } }, { 0x00016851, 1, { 0x00016851 } }, { 0x00016852, 1, { 0x00016852 } }, { 0x00016853, 1, { 0x00016853 } }, { 0x00016854, 1, { 0x00016854 } }, { 0x00016855, 1, { 0x00016855 } }, { 0x00016856, 1, { 0x00016856 } }, { 0x00016857, 1, { 0x00016857 } }, { 0x00016858, 1, { 0x00016858 } }, { 0x00016859, 1, { 0x00016859 } }, { 0x0001685a, 1, { 0x0001685a } }, { 0x0001685b, 1, { 0x0001685b } }, { 0x0001685c, 1, { 0x0001685c } }, { 0x0001685d, 1, { 0x0001685d } }, { 0x0001685e, 1, { 0x0001685e } }, { 0x0001685f, 1, { 0x0001685f } }, { 0x00016860, 1, { 0x00016860 } }, { 0x00016861, 1, { 0x00016861 } }, { 0x00016862, 1, { 0x00016862 } }, { 0x00016863, 1, { 0x00016863 } }, { 0x00016864, 1, { 0x00016864 } }, { 0x00016865, 1, { 0x00016865 } }, { 0x00016866, 1, { 0x00016866 } }, { 0x00016867, 1, { 0x00016867 } }, { 0x00016868, 1, { 0x00016868 } }, { 0x00016869, 1, { 0x00016869 } }, { 0x0001686a, 1, { 0x0001686a } }, { 0x0001686b, 1, { 0x0001686b } }, { 0x0001686c, 1, { 0x0001686c } }, { 0x0001686d, 1, { 0x0001686d } }, { 0x0001686e, 1, { 0x0001686e } }, { 0x0001686f, 1, { 0x0001686f } }, { 0x00016870, 1, { 0x00016870 } }, { 0x00016871, 1, { 0x00016871 } }, { 0x00016872, 1, { 0x00016872 } }, { 0x00016873, 1, { 0x00016873 } }, { 0x00016874, 1, { 0x00016874 } }, { 0x00016875, 1, { 0x00016875 } }, { 0x00016876, 1, { 0x00016876 } }, { 0x00016877, 1, { 0x00016877 } }, { 0x00016878, 1, { 0x00016878 } }, { 0x00016879, 1, { 0x00016879 } }, { 0x0001687a, 1, { 0x0001687a } }, { 0x0001687b, 1, { 0x0001687b } }, { 0x0001687c, 1, { 0x0001687c } }, { 0x0001687d, 1, { 0x0001687d } }, { 0x0001687e, 1, { 0x0001687e } }, { 0x0001687f, 1, { 0x0001687f } }, { 0x00016880, 1, { 0x00016880 } }, { 0x00016881, 1, { 0x00016881 } }, { 0x00016882, 1, { 0x00016882 } }, { 0x00016883, 1, { 0x00016883 } }, { 0x00016884, 1, { 0x00016884 } }, { 0x00016885, 1, { 0x00016885 } }, { 0x00016886, 1, { 0x00016886 } }, { 0x00016887, 1, { 0x00016887 } }, { 0x00016888, 1, { 0x00016888 } }, { 0x00016889, 1, { 0x00016889 } }, { 0x0001688a, 1, { 0x0001688a } }, { 0x0001688b, 1, { 0x0001688b } }, { 0x0001688c, 1, { 0x0001688c } }, { 0x0001688d, 1, { 0x0001688d } }, { 0x0001688e, 1, { 0x0001688e } }, { 0x0001688f, 1, { 0x0001688f } }, { 0x00016890, 1, { 0x00016890 } }, { 0x00016891, 1, { 0x00016891 } }, { 0x00016892, 1, { 0x00016892 } }, { 0x00016893, 1, { 0x00016893 } }, { 0x00016894, 1, { 0x00016894 } }, { 0x00016895, 1, { 0x00016895 } }, { 0x00016896, 1, { 0x00016896 } }, { 0x00016897, 1, { 0x00016897 } }, { 0x00016898, 1, { 0x00016898 } }, { 0x00016899, 1, { 0x00016899 } }, { 0x0001689a, 1, { 0x0001689a } }, { 0x0001689b, 1, { 0x0001689b } }, { 0x0001689c, 1, { 0x0001689c } }, { 0x0001689d, 1, { 0x0001689d } }, { 0x0001689e, 1, { 0x0001689e } }, { 0x0001689f, 1, { 0x0001689f } }, { 0x000168a0, 1, { 0x000168a0 } }, { 0x000168a1, 1, { 0x000168a1 } }, { 0x000168a2, 1, { 0x000168a2 } }, { 0x000168a3, 1, { 0x000168a3 } }, { 0x000168a4, 1, { 0x000168a4 } }, { 0x000168a5, 1, { 0x000168a5 } }, { 0x000168a6, 1, { 0x000168a6 } }, { 0x000168a7, 1, { 0x000168a7 } }, { 0x000168a8, 1, { 0x000168a8 } }, { 0x000168a9, 1, { 0x000168a9 } }, { 0x000168aa, 1, { 0x000168aa } }, { 0x000168ab, 1, { 0x000168ab } }, { 0x000168ac, 1, { 0x000168ac } }, { 0x000168ad, 1, { 0x000168ad } }, { 0x000168ae, 1, { 0x000168ae } }, { 0x000168af, 1, { 0x000168af } }, { 0x000168b0, 1, { 0x000168b0 } }, { 0x000168b1, 1, { 0x000168b1 } }, { 0x000168b2, 1, { 0x000168b2 } }, { 0x000168b3, 1, { 0x000168b3 } }, { 0x000168b4, 1, { 0x000168b4 } }, { 0x000168b5, 1, { 0x000168b5 } }, { 0x000168b6, 1, { 0x000168b6 } }, { 0x000168b7, 1, { 0x000168b7 } }, { 0x000168b8, 1, { 0x000168b8 } }, { 0x000168b9, 1, { 0x000168b9 } }, { 0x000168ba, 1, { 0x000168ba } }, { 0x000168bb, 1, { 0x000168bb } }, { 0x000168bc, 1, { 0x000168bc } }, { 0x000168bd, 1, { 0x000168bd } }, { 0x000168be, 1, { 0x000168be } }, { 0x000168bf, 1, { 0x000168bf } }, { 0x000168c0, 1, { 0x000168c0 } }, { 0x000168c1, 1, { 0x000168c1 } }, { 0x000168c2, 1, { 0x000168c2 } }, { 0x000168c3, 1, { 0x000168c3 } }, { 0x000168c4, 1, { 0x000168c4 } }, { 0x000168c5, 1, { 0x000168c5 } }, { 0x000168c6, 1, { 0x000168c6 } }, { 0x000168c7, 1, { 0x000168c7 } }, { 0x000168c8, 1, { 0x000168c8 } }, { 0x000168c9, 1, { 0x000168c9 } }, { 0x000168ca, 1, { 0x000168ca } }, { 0x000168cb, 1, { 0x000168cb } }, { 0x000168cc, 1, { 0x000168cc } }, { 0x000168cd, 1, { 0x000168cd } }, { 0x000168ce, 1, { 0x000168ce } }, { 0x000168cf, 1, { 0x000168cf } }, { 0x000168d0, 1, { 0x000168d0 } }, { 0x000168d1, 1, { 0x000168d1 } }, { 0x000168d2, 1, { 0x000168d2 } }, { 0x000168d3, 1, { 0x000168d3 } }, { 0x000168d4, 1, { 0x000168d4 } }, { 0x000168d5, 1, { 0x000168d5 } }, { 0x000168d6, 1, { 0x000168d6 } }, { 0x000168d7, 1, { 0x000168d7 } }, { 0x000168d8, 1, { 0x000168d8 } }, { 0x000168d9, 1, { 0x000168d9 } }, { 0x000168da, 1, { 0x000168da } }, { 0x000168db, 1, { 0x000168db } }, { 0x000168dc, 1, { 0x000168dc } }, { 0x000168dd, 1, { 0x000168dd } }, { 0x000168de, 1, { 0x000168de } }, { 0x000168df, 1, { 0x000168df } }, { 0x000168e0, 1, { 0x000168e0 } }, { 0x000168e1, 1, { 0x000168e1 } }, { 0x000168e2, 1, { 0x000168e2 } }, { 0x000168e3, 1, { 0x000168e3 } }, { 0x000168e4, 1, { 0x000168e4 } }, { 0x000168e5, 1, { 0x000168e5 } }, { 0x000168e6, 1, { 0x000168e6 } }, { 0x000168e7, 1, { 0x000168e7 } }, { 0x000168e8, 1, { 0x000168e8 } }, { 0x000168e9, 1, { 0x000168e9 } }, { 0x000168ea, 1, { 0x000168ea } }, { 0x000168eb, 1, { 0x000168eb } }, { 0x000168ec, 1, { 0x000168ec } }, { 0x000168ed, 1, { 0x000168ed } }, { 0x000168ee, 1, { 0x000168ee } }, { 0x000168ef, 1, { 0x000168ef } }, { 0x000168f0, 1, { 0x000168f0 } }, { 0x000168f1, 1, { 0x000168f1 } }, { 0x000168f2, 1, { 0x000168f2 } }, { 0x000168f3, 1, { 0x000168f3 } }, { 0x000168f4, 1, { 0x000168f4 } }, { 0x000168f5, 1, { 0x000168f5 } }, { 0x000168f6, 1, { 0x000168f6 } }, { 0x000168f7, 1, { 0x000168f7 } }, { 0x000168f8, 1, { 0x000168f8 } }, { 0x000168f9, 1, { 0x000168f9 } }, { 0x000168fa, 1, { 0x000168fa } }, { 0x000168fb, 1, { 0x000168fb } }, { 0x000168fc, 1, { 0x000168fc } }, { 0x000168fd, 1, { 0x000168fd } }, { 0x000168fe, 1, { 0x000168fe } }, { 0x000168ff, 1, { 0x000168ff } }, { 0x00016900, 1, { 0x00016900 } }, { 0x00016901, 1, { 0x00016901 } }, { 0x00016902, 1, { 0x00016902 } }, { 0x00016903, 1, { 0x00016903 } }, { 0x00016904, 1, { 0x00016904 } }, { 0x00016905, 1, { 0x00016905 } }, { 0x00016906, 1, { 0x00016906 } }, { 0x00016907, 1, { 0x00016907 } }, { 0x00016908, 1, { 0x00016908 } }, { 0x00016909, 1, { 0x00016909 } }, { 0x0001690a, 1, { 0x0001690a } }, { 0x0001690b, 1, { 0x0001690b } }, { 0x0001690c, 1, { 0x0001690c } }, { 0x0001690d, 1, { 0x0001690d } }, { 0x0001690e, 1, { 0x0001690e } }, { 0x0001690f, 1, { 0x0001690f } }, { 0x00016910, 1, { 0x00016910 } }, { 0x00016911, 1, { 0x00016911 } }, { 0x00016912, 1, { 0x00016912 } }, { 0x00016913, 1, { 0x00016913 } }, { 0x00016914, 1, { 0x00016914 } }, { 0x00016915, 1, { 0x00016915 } }, { 0x00016916, 1, { 0x00016916 } }, { 0x00016917, 1, { 0x00016917 } }, { 0x00016918, 1, { 0x00016918 } }, { 0x00016919, 1, { 0x00016919 } }, { 0x0001691a, 1, { 0x0001691a } }, { 0x0001691b, 1, { 0x0001691b } }, { 0x0001691c, 1, { 0x0001691c } }, { 0x0001691d, 1, { 0x0001691d } }, { 0x0001691e, 1, { 0x0001691e } }, { 0x0001691f, 1, { 0x0001691f } }, { 0x00016920, 1, { 0x00016920 } }, { 0x00016921, 1, { 0x00016921 } }, { 0x00016922, 1, { 0x00016922 } }, { 0x00016923, 1, { 0x00016923 } }, { 0x00016924, 1, { 0x00016924 } }, { 0x00016925, 1, { 0x00016925 } }, { 0x00016926, 1, { 0x00016926 } }, { 0x00016927, 1, { 0x00016927 } }, { 0x00016928, 1, { 0x00016928 } }, { 0x00016929, 1, { 0x00016929 } }, { 0x0001692a, 1, { 0x0001692a } }, { 0x0001692b, 1, { 0x0001692b } }, { 0x0001692c, 1, { 0x0001692c } }, { 0x0001692d, 1, { 0x0001692d } }, { 0x0001692e, 1, { 0x0001692e } }, { 0x0001692f, 1, { 0x0001692f } }, { 0x00016930, 1, { 0x00016930 } }, { 0x00016931, 1, { 0x00016931 } }, { 0x00016932, 1, { 0x00016932 } }, { 0x00016933, 1, { 0x00016933 } }, { 0x00016934, 1, { 0x00016934 } }, { 0x00016935, 1, { 0x00016935 } }, { 0x00016936, 1, { 0x00016936 } }, { 0x00016937, 1, { 0x00016937 } }, { 0x00016938, 1, { 0x00016938 } }, { 0x00016939, 1, { 0x00016939 } }, { 0x0001693a, 1, { 0x0001693a } }, { 0x0001693b, 1, { 0x0001693b } }, { 0x0001693c, 1, { 0x0001693c } }, { 0x0001693d, 1, { 0x0001693d } }, { 0x0001693e, 1, { 0x0001693e } }, { 0x0001693f, 1, { 0x0001693f } }, { 0x00016940, 1, { 0x00016940 } }, { 0x00016941, 1, { 0x00016941 } }, { 0x00016942, 1, { 0x00016942 } }, { 0x00016943, 1, { 0x00016943 } }, { 0x00016944, 1, { 0x00016944 } }, { 0x00016945, 1, { 0x00016945 } }, { 0x00016946, 1, { 0x00016946 } }, { 0x00016947, 1, { 0x00016947 } }, { 0x00016948, 1, { 0x00016948 } }, { 0x00016949, 1, { 0x00016949 } }, { 0x0001694a, 1, { 0x0001694a } }, { 0x0001694b, 1, { 0x0001694b } }, { 0x0001694c, 1, { 0x0001694c } }, { 0x0001694d, 1, { 0x0001694d } }, { 0x0001694e, 1, { 0x0001694e } }, { 0x0001694f, 1, { 0x0001694f } }, { 0x00016950, 1, { 0x00016950 } }, { 0x00016951, 1, { 0x00016951 } }, { 0x00016952, 1, { 0x00016952 } }, { 0x00016953, 1, { 0x00016953 } }, { 0x00016954, 1, { 0x00016954 } }, { 0x00016955, 1, { 0x00016955 } }, { 0x00016956, 1, { 0x00016956 } }, { 0x00016957, 1, { 0x00016957 } }, { 0x00016958, 1, { 0x00016958 } }, { 0x00016959, 1, { 0x00016959 } }, { 0x0001695a, 1, { 0x0001695a } }, { 0x0001695b, 1, { 0x0001695b } }, { 0x0001695c, 1, { 0x0001695c } }, { 0x0001695d, 1, { 0x0001695d } }, { 0x0001695e, 1, { 0x0001695e } }, { 0x0001695f, 1, { 0x0001695f } }, { 0x00016960, 1, { 0x00016960 } }, { 0x00016961, 1, { 0x00016961 } }, { 0x00016962, 1, { 0x00016962 } }, { 0x00016963, 1, { 0x00016963 } }, { 0x00016964, 1, { 0x00016964 } }, { 0x00016965, 1, { 0x00016965 } }, { 0x00016966, 1, { 0x00016966 } }, { 0x00016967, 1, { 0x00016967 } }, { 0x00016968, 1, { 0x00016968 } }, { 0x00016969, 1, { 0x00016969 } }, { 0x0001696a, 1, { 0x0001696a } }, { 0x0001696b, 1, { 0x0001696b } }, { 0x0001696c, 1, { 0x0001696c } }, { 0x0001696d, 1, { 0x0001696d } }, { 0x0001696e, 1, { 0x0001696e } }, { 0x0001696f, 1, { 0x0001696f } }, { 0x00016970, 1, { 0x00016970 } }, { 0x00016971, 1, { 0x00016971 } }, { 0x00016972, 1, { 0x00016972 } }, { 0x00016973, 1, { 0x00016973 } }, { 0x00016974, 1, { 0x00016974 } }, { 0x00016975, 1, { 0x00016975 } }, { 0x00016976, 1, { 0x00016976 } }, { 0x00016977, 1, { 0x00016977 } }, { 0x00016978, 1, { 0x00016978 } }, { 0x00016979, 1, { 0x00016979 } }, { 0x0001697a, 1, { 0x0001697a } }, { 0x0001697b, 1, { 0x0001697b } }, { 0x0001697c, 1, { 0x0001697c } }, { 0x0001697d, 1, { 0x0001697d } }, { 0x0001697e, 1, { 0x0001697e } }, { 0x0001697f, 1, { 0x0001697f } }, { 0x00016980, 1, { 0x00016980 } }, { 0x00016981, 1, { 0x00016981 } }, { 0x00016982, 1, { 0x00016982 } }, { 0x00016983, 1, { 0x00016983 } }, { 0x00016984, 1, { 0x00016984 } }, { 0x00016985, 1, { 0x00016985 } }, { 0x00016986, 1, { 0x00016986 } }, { 0x00016987, 1, { 0x00016987 } }, { 0x00016988, 1, { 0x00016988 } }, { 0x00016989, 1, { 0x00016989 } }, { 0x0001698a, 1, { 0x0001698a } }, { 0x0001698b, 1, { 0x0001698b } }, { 0x0001698c, 1, { 0x0001698c } }, { 0x0001698d, 1, { 0x0001698d } }, { 0x0001698e, 1, { 0x0001698e } }, { 0x0001698f, 1, { 0x0001698f } }, { 0x00016990, 1, { 0x00016990 } }, { 0x00016991, 1, { 0x00016991 } }, { 0x00016992, 1, { 0x00016992 } }, { 0x00016993, 1, { 0x00016993 } }, { 0x00016994, 1, { 0x00016994 } }, { 0x00016995, 1, { 0x00016995 } }, { 0x00016996, 1, { 0x00016996 } }, { 0x00016997, 1, { 0x00016997 } }, { 0x00016998, 1, { 0x00016998 } }, { 0x00016999, 1, { 0x00016999 } }, { 0x0001699a, 1, { 0x0001699a } }, { 0x0001699b, 1, { 0x0001699b } }, { 0x0001699c, 1, { 0x0001699c } }, { 0x0001699d, 1, { 0x0001699d } }, { 0x0001699e, 1, { 0x0001699e } }, { 0x0001699f, 1, { 0x0001699f } }, { 0x000169a0, 1, { 0x000169a0 } }, { 0x000169a1, 1, { 0x000169a1 } }, { 0x000169a2, 1, { 0x000169a2 } }, { 0x000169a3, 1, { 0x000169a3 } }, { 0x000169a4, 1, { 0x000169a4 } }, { 0x000169a5, 1, { 0x000169a5 } }, { 0x000169a6, 1, { 0x000169a6 } }, { 0x000169a7, 1, { 0x000169a7 } }, { 0x000169a8, 1, { 0x000169a8 } }, { 0x000169a9, 1, { 0x000169a9 } }, { 0x000169aa, 1, { 0x000169aa } }, { 0x000169ab, 1, { 0x000169ab } }, { 0x000169ac, 1, { 0x000169ac } }, { 0x000169ad, 1, { 0x000169ad } }, { 0x000169ae, 1, { 0x000169ae } }, { 0x000169af, 1, { 0x000169af } }, { 0x000169b0, 1, { 0x000169b0 } }, { 0x000169b1, 1, { 0x000169b1 } }, { 0x000169b2, 1, { 0x000169b2 } }, { 0x000169b3, 1, { 0x000169b3 } }, { 0x000169b4, 1, { 0x000169b4 } }, { 0x000169b5, 1, { 0x000169b5 } }, { 0x000169b6, 1, { 0x000169b6 } }, { 0x000169b7, 1, { 0x000169b7 } }, { 0x000169b8, 1, { 0x000169b8 } }, { 0x000169b9, 1, { 0x000169b9 } }, { 0x000169ba, 1, { 0x000169ba } }, { 0x000169bb, 1, { 0x000169bb } }, { 0x000169bc, 1, { 0x000169bc } }, { 0x000169bd, 1, { 0x000169bd } }, { 0x000169be, 1, { 0x000169be } }, { 0x000169bf, 1, { 0x000169bf } }, { 0x000169c0, 1, { 0x000169c0 } }, { 0x000169c1, 1, { 0x000169c1 } }, { 0x000169c2, 1, { 0x000169c2 } }, { 0x000169c3, 1, { 0x000169c3 } }, { 0x000169c4, 1, { 0x000169c4 } }, { 0x000169c5, 1, { 0x000169c5 } }, { 0x000169c6, 1, { 0x000169c6 } }, { 0x000169c7, 1, { 0x000169c7 } }, { 0x000169c8, 1, { 0x000169c8 } }, { 0x000169c9, 1, { 0x000169c9 } }, { 0x000169ca, 1, { 0x000169ca } }, { 0x000169cb, 1, { 0x000169cb } }, { 0x000169cc, 1, { 0x000169cc } }, { 0x000169cd, 1, { 0x000169cd } }, { 0x000169ce, 1, { 0x000169ce } }, { 0x000169cf, 1, { 0x000169cf } }, { 0x000169d0, 1, { 0x000169d0 } }, { 0x000169d1, 1, { 0x000169d1 } }, { 0x000169d2, 1, { 0x000169d2 } }, { 0x000169d3, 1, { 0x000169d3 } }, { 0x000169d4, 1, { 0x000169d4 } }, { 0x000169d5, 1, { 0x000169d5 } }, { 0x000169d6, 1, { 0x000169d6 } }, { 0x000169d7, 1, { 0x000169d7 } }, { 0x000169d8, 1, { 0x000169d8 } }, { 0x000169d9, 1, { 0x000169d9 } }, { 0x000169da, 1, { 0x000169da } }, { 0x000169db, 1, { 0x000169db } }, { 0x000169dc, 1, { 0x000169dc } }, { 0x000169dd, 1, { 0x000169dd } }, { 0x000169de, 1, { 0x000169de } }, { 0x000169df, 1, { 0x000169df } }, { 0x000169e0, 1, { 0x000169e0 } }, { 0x000169e1, 1, { 0x000169e1 } }, { 0x000169e2, 1, { 0x000169e2 } }, { 0x000169e3, 1, { 0x000169e3 } }, { 0x000169e4, 1, { 0x000169e4 } }, { 0x000169e5, 1, { 0x000169e5 } }, { 0x000169e6, 1, { 0x000169e6 } }, { 0x000169e7, 1, { 0x000169e7 } }, { 0x000169e8, 1, { 0x000169e8 } }, { 0x000169e9, 1, { 0x000169e9 } }, { 0x000169ea, 1, { 0x000169ea } }, { 0x000169eb, 1, { 0x000169eb } }, { 0x000169ec, 1, { 0x000169ec } }, { 0x000169ed, 1, { 0x000169ed } }, { 0x000169ee, 1, { 0x000169ee } }, { 0x000169ef, 1, { 0x000169ef } }, { 0x000169f0, 1, { 0x000169f0 } }, { 0x000169f1, 1, { 0x000169f1 } }, { 0x000169f2, 1, { 0x000169f2 } }, { 0x000169f3, 1, { 0x000169f3 } }, { 0x000169f4, 1, { 0x000169f4 } }, { 0x000169f5, 1, { 0x000169f5 } }, { 0x000169f6, 1, { 0x000169f6 } }, { 0x000169f7, 1, { 0x000169f7 } }, { 0x000169f8, 1, { 0x000169f8 } }, { 0x000169f9, 1, { 0x000169f9 } }, { 0x000169fa, 1, { 0x000169fa } }, { 0x000169fb, 1, { 0x000169fb } }, { 0x000169fc, 1, { 0x000169fc } }, { 0x000169fd, 1, { 0x000169fd } }, { 0x000169fe, 1, { 0x000169fe } }, { 0x000169ff, 1, { 0x000169ff } }, { 0x00016a00, 1, { 0x00016a00 } }, { 0x00016a01, 1, { 0x00016a01 } }, { 0x00016a02, 1, { 0x00016a02 } }, { 0x00016a03, 1, { 0x00016a03 } }, { 0x00016a04, 1, { 0x00016a04 } }, { 0x00016a05, 1, { 0x00016a05 } }, { 0x00016a06, 1, { 0x00016a06 } }, { 0x00016a07, 1, { 0x00016a07 } }, { 0x00016a08, 1, { 0x00016a08 } }, { 0x00016a09, 1, { 0x00016a09 } }, { 0x00016a0a, 1, { 0x00016a0a } }, { 0x00016a0b, 1, { 0x00016a0b } }, { 0x00016a0c, 1, { 0x00016a0c } }, { 0x00016a0d, 1, { 0x00016a0d } }, { 0x00016a0e, 1, { 0x00016a0e } }, { 0x00016a0f, 1, { 0x00016a0f } }, { 0x00016a10, 1, { 0x00016a10 } }, { 0x00016a11, 1, { 0x00016a11 } }, { 0x00016a12, 1, { 0x00016a12 } }, { 0x00016a13, 1, { 0x00016a13 } }, { 0x00016a14, 1, { 0x00016a14 } }, { 0x00016a15, 1, { 0x00016a15 } }, { 0x00016a16, 1, { 0x00016a16 } }, { 0x00016a17, 1, { 0x00016a17 } }, { 0x00016a18, 1, { 0x00016a18 } }, { 0x00016a19, 1, { 0x00016a19 } }, { 0x00016a1a, 1, { 0x00016a1a } }, { 0x00016a1b, 1, { 0x00016a1b } }, { 0x00016a1c, 1, { 0x00016a1c } }, { 0x00016a1d, 1, { 0x00016a1d } }, { 0x00016a1e, 1, { 0x00016a1e } }, { 0x00016a1f, 1, { 0x00016a1f } }, { 0x00016a20, 1, { 0x00016a20 } }, { 0x00016a21, 1, { 0x00016a21 } }, { 0x00016a22, 1, { 0x00016a22 } }, { 0x00016a23, 1, { 0x00016a23 } }, { 0x00016a24, 1, { 0x00016a24 } }, { 0x00016a25, 1, { 0x00016a25 } }, { 0x00016a26, 1, { 0x00016a26 } }, { 0x00016a27, 1, { 0x00016a27 } }, { 0x00016a28, 1, { 0x00016a28 } }, { 0x00016a29, 1, { 0x00016a29 } }, { 0x00016a2a, 1, { 0x00016a2a } }, { 0x00016a2b, 1, { 0x00016a2b } }, { 0x00016a2c, 1, { 0x00016a2c } }, { 0x00016a2d, 1, { 0x00016a2d } }, { 0x00016a2e, 1, { 0x00016a2e } }, { 0x00016a2f, 1, { 0x00016a2f } }, { 0x00016a30, 1, { 0x00016a30 } }, { 0x00016a31, 1, { 0x00016a31 } }, { 0x00016a32, 1, { 0x00016a32 } }, { 0x00016a33, 1, { 0x00016a33 } }, { 0x00016a34, 1, { 0x00016a34 } }, { 0x00016a35, 1, { 0x00016a35 } }, { 0x00016a36, 1, { 0x00016a36 } }, { 0x00016a37, 1, { 0x00016a37 } }, { 0x00016a38, 1, { 0x00016a38 } }, { 0x00016a40, 1, { 0x00016a40 } }, { 0x00016a41, 1, { 0x00016a41 } }, { 0x00016a42, 1, { 0x00016a42 } }, { 0x00016a43, 1, { 0x00016a43 } }, { 0x00016a44, 1, { 0x00016a44 } }, { 0x00016a45, 1, { 0x00016a45 } }, { 0x00016a46, 1, { 0x00016a46 } }, { 0x00016a47, 1, { 0x00016a47 } }, { 0x00016a48, 1, { 0x00016a48 } }, { 0x00016a49, 1, { 0x00016a49 } }, { 0x00016a4a, 1, { 0x00016a4a } }, { 0x00016a4b, 1, { 0x00016a4b } }, { 0x00016a4c, 1, { 0x00016a4c } }, { 0x00016a4d, 1, { 0x00016a4d } }, { 0x00016a4e, 1, { 0x00016a4e } }, { 0x00016a4f, 1, { 0x00016a4f } }, { 0x00016a50, 1, { 0x00016a50 } }, { 0x00016a51, 1, { 0x00016a51 } }, { 0x00016a52, 1, { 0x00016a52 } }, { 0x00016a53, 1, { 0x00016a53 } }, { 0x00016a54, 1, { 0x00016a54 } }, { 0x00016a55, 1, { 0x00016a55 } }, { 0x00016a56, 1, { 0x00016a56 } }, { 0x00016a57, 1, { 0x00016a57 } }, { 0x00016a58, 1, { 0x00016a58 } }, { 0x00016a59, 1, { 0x00016a59 } }, { 0x00016a5a, 1, { 0x00016a5a } }, { 0x00016a5b, 1, { 0x00016a5b } }, { 0x00016a5c, 1, { 0x00016a5c } }, { 0x00016a5d, 1, { 0x00016a5d } }, { 0x00016a5e, 1, { 0x00016a5e } }, { 0x00016a60, 1, { 0x00016a60 } }, { 0x00016a61, 1, { 0x00016a61 } }, { 0x00016a62, 1, { 0x00016a62 } }, { 0x00016a63, 1, { 0x00016a63 } }, { 0x00016a64, 1, { 0x00016a64 } }, { 0x00016a65, 1, { 0x00016a65 } }, { 0x00016a66, 1, { 0x00016a66 } }, { 0x00016a67, 1, { 0x00016a67 } }, { 0x00016a68, 1, { 0x00016a68 } }, { 0x00016a69, 1, { 0x00016a69 } }, { 0x00016a6e, 1, { 0x00016a6e } }, { 0x00016a6f, 1, { 0x00016a6f } }, { 0x00016ad0, 1, { 0x00016ad0 } }, { 0x00016ad1, 1, { 0x00016ad1 } }, { 0x00016ad2, 1, { 0x00016ad2 } }, { 0x00016ad3, 1, { 0x00016ad3 } }, { 0x00016ad4, 1, { 0x00016ad4 } }, { 0x00016ad5, 1, { 0x00016ad5 } }, { 0x00016ad6, 1, { 0x00016ad6 } }, { 0x00016ad7, 1, { 0x00016ad7 } }, { 0x00016ad8, 1, { 0x00016ad8 } }, { 0x00016ad9, 1, { 0x00016ad9 } }, { 0x00016ada, 1, { 0x00016ada } }, { 0x00016adb, 1, { 0x00016adb } }, { 0x00016adc, 1, { 0x00016adc } }, { 0x00016add, 1, { 0x00016add } }, { 0x00016ade, 1, { 0x00016ade } }, { 0x00016adf, 1, { 0x00016adf } }, { 0x00016ae0, 1, { 0x00016ae0 } }, { 0x00016ae1, 1, { 0x00016ae1 } }, { 0x00016ae2, 1, { 0x00016ae2 } }, { 0x00016ae3, 1, { 0x00016ae3 } }, { 0x00016ae4, 1, { 0x00016ae4 } }, { 0x00016ae5, 1, { 0x00016ae5 } }, { 0x00016ae6, 1, { 0x00016ae6 } }, { 0x00016ae7, 1, { 0x00016ae7 } }, { 0x00016ae8, 1, { 0x00016ae8 } }, { 0x00016ae9, 1, { 0x00016ae9 } }, { 0x00016aea, 1, { 0x00016aea } }, { 0x00016aeb, 1, { 0x00016aeb } }, { 0x00016aec, 1, { 0x00016aec } }, { 0x00016aed, 1, { 0x00016aed } }, { 0x00016af0, 1, { 0x00016af0 } }, { 0x00016af1, 1, { 0x00016af1 } }, { 0x00016af2, 1, { 0x00016af2 } }, { 0x00016af3, 1, { 0x00016af3 } }, { 0x00016af4, 1, { 0x00016af4 } }, { 0x00016af5, 1, { 0x00016af5 } }, { 0x00016b00, 1, { 0x00016b00 } }, { 0x00016b01, 1, { 0x00016b01 } }, { 0x00016b02, 1, { 0x00016b02 } }, { 0x00016b03, 1, { 0x00016b03 } }, { 0x00016b04, 1, { 0x00016b04 } }, { 0x00016b05, 1, { 0x00016b05 } }, { 0x00016b06, 1, { 0x00016b06 } }, { 0x00016b07, 1, { 0x00016b07 } }, { 0x00016b08, 1, { 0x00016b08 } }, { 0x00016b09, 1, { 0x00016b09 } }, { 0x00016b0a, 1, { 0x00016b0a } }, { 0x00016b0b, 1, { 0x00016b0b } }, { 0x00016b0c, 1, { 0x00016b0c } }, { 0x00016b0d, 1, { 0x00016b0d } }, { 0x00016b0e, 1, { 0x00016b0e } }, { 0x00016b0f, 1, { 0x00016b0f } }, { 0x00016b10, 1, { 0x00016b10 } }, { 0x00016b11, 1, { 0x00016b11 } }, { 0x00016b12, 1, { 0x00016b12 } }, { 0x00016b13, 1, { 0x00016b13 } }, { 0x00016b14, 1, { 0x00016b14 } }, { 0x00016b15, 1, { 0x00016b15 } }, { 0x00016b16, 1, { 0x00016b16 } }, { 0x00016b17, 1, { 0x00016b17 } }, { 0x00016b18, 1, { 0x00016b18 } }, { 0x00016b19, 1, { 0x00016b19 } }, { 0x00016b1a, 1, { 0x00016b1a } }, { 0x00016b1b, 1, { 0x00016b1b } }, { 0x00016b1c, 1, { 0x00016b1c } }, { 0x00016b1d, 1, { 0x00016b1d } }, { 0x00016b1e, 1, { 0x00016b1e } }, { 0x00016b1f, 1, { 0x00016b1f } }, { 0x00016b20, 1, { 0x00016b20 } }, { 0x00016b21, 1, { 0x00016b21 } }, { 0x00016b22, 1, { 0x00016b22 } }, { 0x00016b23, 1, { 0x00016b23 } }, { 0x00016b24, 1, { 0x00016b24 } }, { 0x00016b25, 1, { 0x00016b25 } }, { 0x00016b26, 1, { 0x00016b26 } }, { 0x00016b27, 1, { 0x00016b27 } }, { 0x00016b28, 1, { 0x00016b28 } }, { 0x00016b29, 1, { 0x00016b29 } }, { 0x00016b2a, 1, { 0x00016b2a } }, { 0x00016b2b, 1, { 0x00016b2b } }, { 0x00016b2c, 1, { 0x00016b2c } }, { 0x00016b2d, 1, { 0x00016b2d } }, { 0x00016b2e, 1, { 0x00016b2e } }, { 0x00016b2f, 1, { 0x00016b2f } }, { 0x00016b30, 1, { 0x00016b30 } }, { 0x00016b31, 1, { 0x00016b31 } }, { 0x00016b32, 1, { 0x00016b32 } }, { 0x00016b33, 1, { 0x00016b33 } }, { 0x00016b34, 1, { 0x00016b34 } }, { 0x00016b35, 1, { 0x00016b35 } }, { 0x00016b36, 1, { 0x00016b36 } }, { 0x00016b37, 1, { 0x00016b37 } }, { 0x00016b38, 1, { 0x00016b38 } }, { 0x00016b39, 1, { 0x00016b39 } }, { 0x00016b3a, 1, { 0x00016b3a } }, { 0x00016b3b, 1, { 0x00016b3b } }, { 0x00016b3c, 1, { 0x00016b3c } }, { 0x00016b3d, 1, { 0x00016b3d } }, { 0x00016b3e, 1, { 0x00016b3e } }, { 0x00016b3f, 1, { 0x00016b3f } }, { 0x00016b40, 1, { 0x00016b40 } }, { 0x00016b41, 1, { 0x00016b41 } }, { 0x00016b42, 1, { 0x00016b42 } }, { 0x00016b43, 1, { 0x00016b43 } }, { 0x00016b44, 1, { 0x00016b44 } }, { 0x00016b45, 1, { 0x00016b45 } }, { 0x00016b50, 1, { 0x00016b50 } }, { 0x00016b51, 1, { 0x00016b51 } }, { 0x00016b52, 1, { 0x00016b52 } }, { 0x00016b53, 1, { 0x00016b53 } }, { 0x00016b54, 1, { 0x00016b54 } }, { 0x00016b55, 1, { 0x00016b55 } }, { 0x00016b56, 1, { 0x00016b56 } }, { 0x00016b57, 1, { 0x00016b57 } }, { 0x00016b58, 1, { 0x00016b58 } }, { 0x00016b59, 1, { 0x00016b59 } }, { 0x00016b5b, 1, { 0x00016b5b } }, { 0x00016b5c, 1, { 0x00016b5c } }, { 0x00016b5d, 1, { 0x00016b5d } }, { 0x00016b5e, 1, { 0x00016b5e } }, { 0x00016b5f, 1, { 0x00016b5f } }, { 0x00016b60, 1, { 0x00016b60 } }, { 0x00016b61, 1, { 0x00016b61 } }, { 0x00016b63, 1, { 0x00016b63 } }, { 0x00016b64, 1, { 0x00016b64 } }, { 0x00016b65, 1, { 0x00016b65 } }, { 0x00016b66, 1, { 0x00016b66 } }, { 0x00016b67, 1, { 0x00016b67 } }, { 0x00016b68, 1, { 0x00016b68 } }, { 0x00016b69, 1, { 0x00016b69 } }, { 0x00016b6a, 1, { 0x00016b6a } }, { 0x00016b6b, 1, { 0x00016b6b } }, { 0x00016b6c, 1, { 0x00016b6c } }, { 0x00016b6d, 1, { 0x00016b6d } }, { 0x00016b6e, 1, { 0x00016b6e } }, { 0x00016b6f, 1, { 0x00016b6f } }, { 0x00016b70, 1, { 0x00016b70 } }, { 0x00016b71, 1, { 0x00016b71 } }, { 0x00016b72, 1, { 0x00016b72 } }, { 0x00016b73, 1, { 0x00016b73 } }, { 0x00016b74, 1, { 0x00016b74 } }, { 0x00016b75, 1, { 0x00016b75 } }, { 0x00016b76, 1, { 0x00016b76 } }, { 0x00016b77, 1, { 0x00016b77 } }, { 0x00016b7d, 1, { 0x00016b7d } }, { 0x00016b7e, 1, { 0x00016b7e } }, { 0x00016b7f, 1, { 0x00016b7f } }, { 0x00016b80, 1, { 0x00016b80 } }, { 0x00016b81, 1, { 0x00016b81 } }, { 0x00016b82, 1, { 0x00016b82 } }, { 0x00016b83, 1, { 0x00016b83 } }, { 0x00016b84, 1, { 0x00016b84 } }, { 0x00016b85, 1, { 0x00016b85 } }, { 0x00016b86, 1, { 0x00016b86 } }, { 0x00016b87, 1, { 0x00016b87 } }, { 0x00016b88, 1, { 0x00016b88 } }, { 0x00016b89, 1, { 0x00016b89 } }, { 0x00016b8a, 1, { 0x00016b8a } }, { 0x00016b8b, 1, { 0x00016b8b } }, { 0x00016b8c, 1, { 0x00016b8c } }, { 0x00016b8d, 1, { 0x00016b8d } }, { 0x00016b8e, 1, { 0x00016b8e } }, { 0x00016b8f, 1, { 0x00016b8f } }, { 0x00016f00, 1, { 0x00016f00 } }, { 0x00016f01, 1, { 0x00016f01 } }, { 0x00016f02, 1, { 0x00016f02 } }, { 0x00016f03, 1, { 0x00016f03 } }, { 0x00016f04, 1, { 0x00016f04 } }, { 0x00016f05, 1, { 0x00016f05 } }, { 0x00016f06, 1, { 0x00016f06 } }, { 0x00016f07, 1, { 0x00016f07 } }, { 0x00016f08, 1, { 0x00016f08 } }, { 0x00016f09, 1, { 0x00016f09 } }, { 0x00016f0a, 1, { 0x00016f0a } }, { 0x00016f0b, 1, { 0x00016f0b } }, { 0x00016f0c, 1, { 0x00016f0c } }, { 0x00016f0d, 1, { 0x00016f0d } }, { 0x00016f0e, 1, { 0x00016f0e } }, { 0x00016f0f, 1, { 0x00016f0f } }, { 0x00016f10, 1, { 0x00016f10 } }, { 0x00016f11, 1, { 0x00016f11 } }, { 0x00016f12, 1, { 0x00016f12 } }, { 0x00016f13, 1, { 0x00016f13 } }, { 0x00016f14, 1, { 0x00016f14 } }, { 0x00016f15, 1, { 0x00016f15 } }, { 0x00016f16, 1, { 0x00016f16 } }, { 0x00016f17, 1, { 0x00016f17 } }, { 0x00016f18, 1, { 0x00016f18 } }, { 0x00016f19, 1, { 0x00016f19 } }, { 0x00016f1a, 1, { 0x00016f1a } }, { 0x00016f1b, 1, { 0x00016f1b } }, { 0x00016f1c, 1, { 0x00016f1c } }, { 0x00016f1d, 1, { 0x00016f1d } }, { 0x00016f1e, 1, { 0x00016f1e } }, { 0x00016f1f, 1, { 0x00016f1f } }, { 0x00016f20, 1, { 0x00016f20 } }, { 0x00016f21, 1, { 0x00016f21 } }, { 0x00016f22, 1, { 0x00016f22 } }, { 0x00016f23, 1, { 0x00016f23 } }, { 0x00016f24, 1, { 0x00016f24 } }, { 0x00016f25, 1, { 0x00016f25 } }, { 0x00016f26, 1, { 0x00016f26 } }, { 0x00016f27, 1, { 0x00016f27 } }, { 0x00016f28, 1, { 0x00016f28 } }, { 0x00016f29, 1, { 0x00016f29 } }, { 0x00016f2a, 1, { 0x00016f2a } }, { 0x00016f2b, 1, { 0x00016f2b } }, { 0x00016f2c, 1, { 0x00016f2c } }, { 0x00016f2d, 1, { 0x00016f2d } }, { 0x00016f2e, 1, { 0x00016f2e } }, { 0x00016f2f, 1, { 0x00016f2f } }, { 0x00016f30, 1, { 0x00016f30 } }, { 0x00016f31, 1, { 0x00016f31 } }, { 0x00016f32, 1, { 0x00016f32 } }, { 0x00016f33, 1, { 0x00016f33 } }, { 0x00016f34, 1, { 0x00016f34 } }, { 0x00016f35, 1, { 0x00016f35 } }, { 0x00016f36, 1, { 0x00016f36 } }, { 0x00016f37, 1, { 0x00016f37 } }, { 0x00016f38, 1, { 0x00016f38 } }, { 0x00016f39, 1, { 0x00016f39 } }, { 0x00016f3a, 1, { 0x00016f3a } }, { 0x00016f3b, 1, { 0x00016f3b } }, { 0x00016f3c, 1, { 0x00016f3c } }, { 0x00016f3d, 1, { 0x00016f3d } }, { 0x00016f3e, 1, { 0x00016f3e } }, { 0x00016f3f, 1, { 0x00016f3f } }, { 0x00016f40, 1, { 0x00016f40 } }, { 0x00016f41, 1, { 0x00016f41 } }, { 0x00016f42, 1, { 0x00016f42 } }, { 0x00016f43, 1, { 0x00016f43 } }, { 0x00016f44, 1, { 0x00016f44 } }, { 0x00016f50, 1, { 0x00016f50 } }, { 0x00016f51, 1, { 0x00016f51 } }, { 0x00016f52, 1, { 0x00016f52 } }, { 0x00016f53, 1, { 0x00016f53 } }, { 0x00016f54, 1, { 0x00016f54 } }, { 0x00016f55, 1, { 0x00016f55 } }, { 0x00016f56, 1, { 0x00016f56 } }, { 0x00016f57, 1, { 0x00016f57 } }, { 0x00016f58, 1, { 0x00016f58 } }, { 0x00016f59, 1, { 0x00016f59 } }, { 0x00016f5a, 1, { 0x00016f5a } }, { 0x00016f5b, 1, { 0x00016f5b } }, { 0x00016f5c, 1, { 0x00016f5c } }, { 0x00016f5d, 1, { 0x00016f5d } }, { 0x00016f5e, 1, { 0x00016f5e } }, { 0x00016f5f, 1, { 0x00016f5f } }, { 0x00016f60, 1, { 0x00016f60 } }, { 0x00016f61, 1, { 0x00016f61 } }, { 0x00016f62, 1, { 0x00016f62 } }, { 0x00016f63, 1, { 0x00016f63 } }, { 0x00016f64, 1, { 0x00016f64 } }, { 0x00016f65, 1, { 0x00016f65 } }, { 0x00016f66, 1, { 0x00016f66 } }, { 0x00016f67, 1, { 0x00016f67 } }, { 0x00016f68, 1, { 0x00016f68 } }, { 0x00016f69, 1, { 0x00016f69 } }, { 0x00016f6a, 1, { 0x00016f6a } }, { 0x00016f6b, 1, { 0x00016f6b } }, { 0x00016f6c, 1, { 0x00016f6c } }, { 0x00016f6d, 1, { 0x00016f6d } }, { 0x00016f6e, 1, { 0x00016f6e } }, { 0x00016f6f, 1, { 0x00016f6f } }, { 0x00016f70, 1, { 0x00016f70 } }, { 0x00016f71, 1, { 0x00016f71 } }, { 0x00016f72, 1, { 0x00016f72 } }, { 0x00016f73, 1, { 0x00016f73 } }, { 0x00016f74, 1, { 0x00016f74 } }, { 0x00016f75, 1, { 0x00016f75 } }, { 0x00016f76, 1, { 0x00016f76 } }, { 0x00016f77, 1, { 0x00016f77 } }, { 0x00016f78, 1, { 0x00016f78 } }, { 0x00016f79, 1, { 0x00016f79 } }, { 0x00016f7a, 1, { 0x00016f7a } }, { 0x00016f7b, 1, { 0x00016f7b } }, { 0x00016f7c, 1, { 0x00016f7c } }, { 0x00016f7d, 1, { 0x00016f7d } }, { 0x00016f7e, 1, { 0x00016f7e } }, { 0x00016f8f, 1, { 0x00016f8f } }, { 0x00016f90, 1, { 0x00016f90 } }, { 0x00016f91, 1, { 0x00016f91 } }, { 0x00016f92, 1, { 0x00016f92 } }, { 0x00016f93, 1, { 0x00016f93 } }, { 0x00016f94, 1, { 0x00016f94 } }, { 0x00016f95, 1, { 0x00016f95 } }, { 0x00016f96, 1, { 0x00016f96 } }, { 0x00016f97, 1, { 0x00016f97 } }, { 0x00016f98, 1, { 0x00016f98 } }, { 0x00016f99, 1, { 0x00016f99 } }, { 0x00016f9a, 1, { 0x00016f9a } }, { 0x00016f9b, 1, { 0x00016f9b } }, { 0x00016f9c, 1, { 0x00016f9c } }, { 0x00016f9d, 1, { 0x00016f9d } }, { 0x00016f9e, 1, { 0x00016f9e } }, { 0x00016f9f, 1, { 0x00016f9f } }, { 0x00016fe0, 1, { 0x00016fe0 } }, { 0x00017000, 1, { 0x00017000 } }, { 0x000187ec, 1, { 0x000187ec } }, { 0x00018800, 1, { 0x00018800 } }, { 0x00018801, 1, { 0x00018801 } }, { 0x00018802, 1, { 0x00018802 } }, { 0x00018803, 1, { 0x00018803 } }, { 0x00018804, 1, { 0x00018804 } }, { 0x00018805, 1, { 0x00018805 } }, { 0x00018806, 1, { 0x00018806 } }, { 0x00018807, 1, { 0x00018807 } }, { 0x00018808, 1, { 0x00018808 } }, { 0x00018809, 1, { 0x00018809 } }, { 0x0001880a, 1, { 0x0001880a } }, { 0x0001880b, 1, { 0x0001880b } }, { 0x0001880c, 1, { 0x0001880c } }, { 0x0001880d, 1, { 0x0001880d } }, { 0x0001880e, 1, { 0x0001880e } }, { 0x0001880f, 1, { 0x0001880f } }, { 0x00018810, 1, { 0x00018810 } }, { 0x00018811, 1, { 0x00018811 } }, { 0x00018812, 1, { 0x00018812 } }, { 0x00018813, 1, { 0x00018813 } }, { 0x00018814, 1, { 0x00018814 } }, { 0x00018815, 1, { 0x00018815 } }, { 0x00018816, 1, { 0x00018816 } }, { 0x00018817, 1, { 0x00018817 } }, { 0x00018818, 1, { 0x00018818 } }, { 0x00018819, 1, { 0x00018819 } }, { 0x0001881a, 1, { 0x0001881a } }, { 0x0001881b, 1, { 0x0001881b } }, { 0x0001881c, 1, { 0x0001881c } }, { 0x0001881d, 1, { 0x0001881d } }, { 0x0001881e, 1, { 0x0001881e } }, { 0x0001881f, 1, { 0x0001881f } }, { 0x00018820, 1, { 0x00018820 } }, { 0x00018821, 1, { 0x00018821 } }, { 0x00018822, 1, { 0x00018822 } }, { 0x00018823, 1, { 0x00018823 } }, { 0x00018824, 1, { 0x00018824 } }, { 0x00018825, 1, { 0x00018825 } }, { 0x00018826, 1, { 0x00018826 } }, { 0x00018827, 1, { 0x00018827 } }, { 0x00018828, 1, { 0x00018828 } }, { 0x00018829, 1, { 0x00018829 } }, { 0x0001882a, 1, { 0x0001882a } }, { 0x0001882b, 1, { 0x0001882b } }, { 0x0001882c, 1, { 0x0001882c } }, { 0x0001882d, 1, { 0x0001882d } }, { 0x0001882e, 1, { 0x0001882e } }, { 0x0001882f, 1, { 0x0001882f } }, { 0x00018830, 1, { 0x00018830 } }, { 0x00018831, 1, { 0x00018831 } }, { 0x00018832, 1, { 0x00018832 } }, { 0x00018833, 1, { 0x00018833 } }, { 0x00018834, 1, { 0x00018834 } }, { 0x00018835, 1, { 0x00018835 } }, { 0x00018836, 1, { 0x00018836 } }, { 0x00018837, 1, { 0x00018837 } }, { 0x00018838, 1, { 0x00018838 } }, { 0x00018839, 1, { 0x00018839 } }, { 0x0001883a, 1, { 0x0001883a } }, { 0x0001883b, 1, { 0x0001883b } }, { 0x0001883c, 1, { 0x0001883c } }, { 0x0001883d, 1, { 0x0001883d } }, { 0x0001883e, 1, { 0x0001883e } }, { 0x0001883f, 1, { 0x0001883f } }, { 0x00018840, 1, { 0x00018840 } }, { 0x00018841, 1, { 0x00018841 } }, { 0x00018842, 1, { 0x00018842 } }, { 0x00018843, 1, { 0x00018843 } }, { 0x00018844, 1, { 0x00018844 } }, { 0x00018845, 1, { 0x00018845 } }, { 0x00018846, 1, { 0x00018846 } }, { 0x00018847, 1, { 0x00018847 } }, { 0x00018848, 1, { 0x00018848 } }, { 0x00018849, 1, { 0x00018849 } }, { 0x0001884a, 1, { 0x0001884a } }, { 0x0001884b, 1, { 0x0001884b } }, { 0x0001884c, 1, { 0x0001884c } }, { 0x0001884d, 1, { 0x0001884d } }, { 0x0001884e, 1, { 0x0001884e } }, { 0x0001884f, 1, { 0x0001884f } }, { 0x00018850, 1, { 0x00018850 } }, { 0x00018851, 1, { 0x00018851 } }, { 0x00018852, 1, { 0x00018852 } }, { 0x00018853, 1, { 0x00018853 } }, { 0x00018854, 1, { 0x00018854 } }, { 0x00018855, 1, { 0x00018855 } }, { 0x00018856, 1, { 0x00018856 } }, { 0x00018857, 1, { 0x00018857 } }, { 0x00018858, 1, { 0x00018858 } }, { 0x00018859, 1, { 0x00018859 } }, { 0x0001885a, 1, { 0x0001885a } }, { 0x0001885b, 1, { 0x0001885b } }, { 0x0001885c, 1, { 0x0001885c } }, { 0x0001885d, 1, { 0x0001885d } }, { 0x0001885e, 1, { 0x0001885e } }, { 0x0001885f, 1, { 0x0001885f } }, { 0x00018860, 1, { 0x00018860 } }, { 0x00018861, 1, { 0x00018861 } }, { 0x00018862, 1, { 0x00018862 } }, { 0x00018863, 1, { 0x00018863 } }, { 0x00018864, 1, { 0x00018864 } }, { 0x00018865, 1, { 0x00018865 } }, { 0x00018866, 1, { 0x00018866 } }, { 0x00018867, 1, { 0x00018867 } }, { 0x00018868, 1, { 0x00018868 } }, { 0x00018869, 1, { 0x00018869 } }, { 0x0001886a, 1, { 0x0001886a } }, { 0x0001886b, 1, { 0x0001886b } }, { 0x0001886c, 1, { 0x0001886c } }, { 0x0001886d, 1, { 0x0001886d } }, { 0x0001886e, 1, { 0x0001886e } }, { 0x0001886f, 1, { 0x0001886f } }, { 0x00018870, 1, { 0x00018870 } }, { 0x00018871, 1, { 0x00018871 } }, { 0x00018872, 1, { 0x00018872 } }, { 0x00018873, 1, { 0x00018873 } }, { 0x00018874, 1, { 0x00018874 } }, { 0x00018875, 1, { 0x00018875 } }, { 0x00018876, 1, { 0x00018876 } }, { 0x00018877, 1, { 0x00018877 } }, { 0x00018878, 1, { 0x00018878 } }, { 0x00018879, 1, { 0x00018879 } }, { 0x0001887a, 1, { 0x0001887a } }, { 0x0001887b, 1, { 0x0001887b } }, { 0x0001887c, 1, { 0x0001887c } }, { 0x0001887d, 1, { 0x0001887d } }, { 0x0001887e, 1, { 0x0001887e } }, { 0x0001887f, 1, { 0x0001887f } }, { 0x00018880, 1, { 0x00018880 } }, { 0x00018881, 1, { 0x00018881 } }, { 0x00018882, 1, { 0x00018882 } }, { 0x00018883, 1, { 0x00018883 } }, { 0x00018884, 1, { 0x00018884 } }, { 0x00018885, 1, { 0x00018885 } }, { 0x00018886, 1, { 0x00018886 } }, { 0x00018887, 1, { 0x00018887 } }, { 0x00018888, 1, { 0x00018888 } }, { 0x00018889, 1, { 0x00018889 } }, { 0x0001888a, 1, { 0x0001888a } }, { 0x0001888b, 1, { 0x0001888b } }, { 0x0001888c, 1, { 0x0001888c } }, { 0x0001888d, 1, { 0x0001888d } }, { 0x0001888e, 1, { 0x0001888e } }, { 0x0001888f, 1, { 0x0001888f } }, { 0x00018890, 1, { 0x00018890 } }, { 0x00018891, 1, { 0x00018891 } }, { 0x00018892, 1, { 0x00018892 } }, { 0x00018893, 1, { 0x00018893 } }, { 0x00018894, 1, { 0x00018894 } }, { 0x00018895, 1, { 0x00018895 } }, { 0x00018896, 1, { 0x00018896 } }, { 0x00018897, 1, { 0x00018897 } }, { 0x00018898, 1, { 0x00018898 } }, { 0x00018899, 1, { 0x00018899 } }, { 0x0001889a, 1, { 0x0001889a } }, { 0x0001889b, 1, { 0x0001889b } }, { 0x0001889c, 1, { 0x0001889c } }, { 0x0001889d, 1, { 0x0001889d } }, { 0x0001889e, 1, { 0x0001889e } }, { 0x0001889f, 1, { 0x0001889f } }, { 0x000188a0, 1, { 0x000188a0 } }, { 0x000188a1, 1, { 0x000188a1 } }, { 0x000188a2, 1, { 0x000188a2 } }, { 0x000188a3, 1, { 0x000188a3 } }, { 0x000188a4, 1, { 0x000188a4 } }, { 0x000188a5, 1, { 0x000188a5 } }, { 0x000188a6, 1, { 0x000188a6 } }, { 0x000188a7, 1, { 0x000188a7 } }, { 0x000188a8, 1, { 0x000188a8 } }, { 0x000188a9, 1, { 0x000188a9 } }, { 0x000188aa, 1, { 0x000188aa } }, { 0x000188ab, 1, { 0x000188ab } }, { 0x000188ac, 1, { 0x000188ac } }, { 0x000188ad, 1, { 0x000188ad } }, { 0x000188ae, 1, { 0x000188ae } }, { 0x000188af, 1, { 0x000188af } }, { 0x000188b0, 1, { 0x000188b0 } }, { 0x000188b1, 1, { 0x000188b1 } }, { 0x000188b2, 1, { 0x000188b2 } }, { 0x000188b3, 1, { 0x000188b3 } }, { 0x000188b4, 1, { 0x000188b4 } }, { 0x000188b5, 1, { 0x000188b5 } }, { 0x000188b6, 1, { 0x000188b6 } }, { 0x000188b7, 1, { 0x000188b7 } }, { 0x000188b8, 1, { 0x000188b8 } }, { 0x000188b9, 1, { 0x000188b9 } }, { 0x000188ba, 1, { 0x000188ba } }, { 0x000188bb, 1, { 0x000188bb } }, { 0x000188bc, 1, { 0x000188bc } }, { 0x000188bd, 1, { 0x000188bd } }, { 0x000188be, 1, { 0x000188be } }, { 0x000188bf, 1, { 0x000188bf } }, { 0x000188c0, 1, { 0x000188c0 } }, { 0x000188c1, 1, { 0x000188c1 } }, { 0x000188c2, 1, { 0x000188c2 } }, { 0x000188c3, 1, { 0x000188c3 } }, { 0x000188c4, 1, { 0x000188c4 } }, { 0x000188c5, 1, { 0x000188c5 } }, { 0x000188c6, 1, { 0x000188c6 } }, { 0x000188c7, 1, { 0x000188c7 } }, { 0x000188c8, 1, { 0x000188c8 } }, { 0x000188c9, 1, { 0x000188c9 } }, { 0x000188ca, 1, { 0x000188ca } }, { 0x000188cb, 1, { 0x000188cb } }, { 0x000188cc, 1, { 0x000188cc } }, { 0x000188cd, 1, { 0x000188cd } }, { 0x000188ce, 1, { 0x000188ce } }, { 0x000188cf, 1, { 0x000188cf } }, { 0x000188d0, 1, { 0x000188d0 } }, { 0x000188d1, 1, { 0x000188d1 } }, { 0x000188d2, 1, { 0x000188d2 } }, { 0x000188d3, 1, { 0x000188d3 } }, { 0x000188d4, 1, { 0x000188d4 } }, { 0x000188d5, 1, { 0x000188d5 } }, { 0x000188d6, 1, { 0x000188d6 } }, { 0x000188d7, 1, { 0x000188d7 } }, { 0x000188d8, 1, { 0x000188d8 } }, { 0x000188d9, 1, { 0x000188d9 } }, { 0x000188da, 1, { 0x000188da } }, { 0x000188db, 1, { 0x000188db } }, { 0x000188dc, 1, { 0x000188dc } }, { 0x000188dd, 1, { 0x000188dd } }, { 0x000188de, 1, { 0x000188de } }, { 0x000188df, 1, { 0x000188df } }, { 0x000188e0, 1, { 0x000188e0 } }, { 0x000188e1, 1, { 0x000188e1 } }, { 0x000188e2, 1, { 0x000188e2 } }, { 0x000188e3, 1, { 0x000188e3 } }, { 0x000188e4, 1, { 0x000188e4 } }, { 0x000188e5, 1, { 0x000188e5 } }, { 0x000188e6, 1, { 0x000188e6 } }, { 0x000188e7, 1, { 0x000188e7 } }, { 0x000188e8, 1, { 0x000188e8 } }, { 0x000188e9, 1, { 0x000188e9 } }, { 0x000188ea, 1, { 0x000188ea } }, { 0x000188eb, 1, { 0x000188eb } }, { 0x000188ec, 1, { 0x000188ec } }, { 0x000188ed, 1, { 0x000188ed } }, { 0x000188ee, 1, { 0x000188ee } }, { 0x000188ef, 1, { 0x000188ef } }, { 0x000188f0, 1, { 0x000188f0 } }, { 0x000188f1, 1, { 0x000188f1 } }, { 0x000188f2, 1, { 0x000188f2 } }, { 0x000188f3, 1, { 0x000188f3 } }, { 0x000188f4, 1, { 0x000188f4 } }, { 0x000188f5, 1, { 0x000188f5 } }, { 0x000188f6, 1, { 0x000188f6 } }, { 0x000188f7, 1, { 0x000188f7 } }, { 0x000188f8, 1, { 0x000188f8 } }, { 0x000188f9, 1, { 0x000188f9 } }, { 0x000188fa, 1, { 0x000188fa } }, { 0x000188fb, 1, { 0x000188fb } }, { 0x000188fc, 1, { 0x000188fc } }, { 0x000188fd, 1, { 0x000188fd } }, { 0x000188fe, 1, { 0x000188fe } }, { 0x000188ff, 1, { 0x000188ff } }, { 0x00018900, 1, { 0x00018900 } }, { 0x00018901, 1, { 0x00018901 } }, { 0x00018902, 1, { 0x00018902 } }, { 0x00018903, 1, { 0x00018903 } }, { 0x00018904, 1, { 0x00018904 } }, { 0x00018905, 1, { 0x00018905 } }, { 0x00018906, 1, { 0x00018906 } }, { 0x00018907, 1, { 0x00018907 } }, { 0x00018908, 1, { 0x00018908 } }, { 0x00018909, 1, { 0x00018909 } }, { 0x0001890a, 1, { 0x0001890a } }, { 0x0001890b, 1, { 0x0001890b } }, { 0x0001890c, 1, { 0x0001890c } }, { 0x0001890d, 1, { 0x0001890d } }, { 0x0001890e, 1, { 0x0001890e } }, { 0x0001890f, 1, { 0x0001890f } }, { 0x00018910, 1, { 0x00018910 } }, { 0x00018911, 1, { 0x00018911 } }, { 0x00018912, 1, { 0x00018912 } }, { 0x00018913, 1, { 0x00018913 } }, { 0x00018914, 1, { 0x00018914 } }, { 0x00018915, 1, { 0x00018915 } }, { 0x00018916, 1, { 0x00018916 } }, { 0x00018917, 1, { 0x00018917 } }, { 0x00018918, 1, { 0x00018918 } }, { 0x00018919, 1, { 0x00018919 } }, { 0x0001891a, 1, { 0x0001891a } }, { 0x0001891b, 1, { 0x0001891b } }, { 0x0001891c, 1, { 0x0001891c } }, { 0x0001891d, 1, { 0x0001891d } }, { 0x0001891e, 1, { 0x0001891e } }, { 0x0001891f, 1, { 0x0001891f } }, { 0x00018920, 1, { 0x00018920 } }, { 0x00018921, 1, { 0x00018921 } }, { 0x00018922, 1, { 0x00018922 } }, { 0x00018923, 1, { 0x00018923 } }, { 0x00018924, 1, { 0x00018924 } }, { 0x00018925, 1, { 0x00018925 } }, { 0x00018926, 1, { 0x00018926 } }, { 0x00018927, 1, { 0x00018927 } }, { 0x00018928, 1, { 0x00018928 } }, { 0x00018929, 1, { 0x00018929 } }, { 0x0001892a, 1, { 0x0001892a } }, { 0x0001892b, 1, { 0x0001892b } }, { 0x0001892c, 1, { 0x0001892c } }, { 0x0001892d, 1, { 0x0001892d } }, { 0x0001892e, 1, { 0x0001892e } }, { 0x0001892f, 1, { 0x0001892f } }, { 0x00018930, 1, { 0x00018930 } }, { 0x00018931, 1, { 0x00018931 } }, { 0x00018932, 1, { 0x00018932 } }, { 0x00018933, 1, { 0x00018933 } }, { 0x00018934, 1, { 0x00018934 } }, { 0x00018935, 1, { 0x00018935 } }, { 0x00018936, 1, { 0x00018936 } }, { 0x00018937, 1, { 0x00018937 } }, { 0x00018938, 1, { 0x00018938 } }, { 0x00018939, 1, { 0x00018939 } }, { 0x0001893a, 1, { 0x0001893a } }, { 0x0001893b, 1, { 0x0001893b } }, { 0x0001893c, 1, { 0x0001893c } }, { 0x0001893d, 1, { 0x0001893d } }, { 0x0001893e, 1, { 0x0001893e } }, { 0x0001893f, 1, { 0x0001893f } }, { 0x00018940, 1, { 0x00018940 } }, { 0x00018941, 1, { 0x00018941 } }, { 0x00018942, 1, { 0x00018942 } }, { 0x00018943, 1, { 0x00018943 } }, { 0x00018944, 1, { 0x00018944 } }, { 0x00018945, 1, { 0x00018945 } }, { 0x00018946, 1, { 0x00018946 } }, { 0x00018947, 1, { 0x00018947 } }, { 0x00018948, 1, { 0x00018948 } }, { 0x00018949, 1, { 0x00018949 } }, { 0x0001894a, 1, { 0x0001894a } }, { 0x0001894b, 1, { 0x0001894b } }, { 0x0001894c, 1, { 0x0001894c } }, { 0x0001894d, 1, { 0x0001894d } }, { 0x0001894e, 1, { 0x0001894e } }, { 0x0001894f, 1, { 0x0001894f } }, { 0x00018950, 1, { 0x00018950 } }, { 0x00018951, 1, { 0x00018951 } }, { 0x00018952, 1, { 0x00018952 } }, { 0x00018953, 1, { 0x00018953 } }, { 0x00018954, 1, { 0x00018954 } }, { 0x00018955, 1, { 0x00018955 } }, { 0x00018956, 1, { 0x00018956 } }, { 0x00018957, 1, { 0x00018957 } }, { 0x00018958, 1, { 0x00018958 } }, { 0x00018959, 1, { 0x00018959 } }, { 0x0001895a, 1, { 0x0001895a } }, { 0x0001895b, 1, { 0x0001895b } }, { 0x0001895c, 1, { 0x0001895c } }, { 0x0001895d, 1, { 0x0001895d } }, { 0x0001895e, 1, { 0x0001895e } }, { 0x0001895f, 1, { 0x0001895f } }, { 0x00018960, 1, { 0x00018960 } }, { 0x00018961, 1, { 0x00018961 } }, { 0x00018962, 1, { 0x00018962 } }, { 0x00018963, 1, { 0x00018963 } }, { 0x00018964, 1, { 0x00018964 } }, { 0x00018965, 1, { 0x00018965 } }, { 0x00018966, 1, { 0x00018966 } }, { 0x00018967, 1, { 0x00018967 } }, { 0x00018968, 1, { 0x00018968 } }, { 0x00018969, 1, { 0x00018969 } }, { 0x0001896a, 1, { 0x0001896a } }, { 0x0001896b, 1, { 0x0001896b } }, { 0x0001896c, 1, { 0x0001896c } }, { 0x0001896d, 1, { 0x0001896d } }, { 0x0001896e, 1, { 0x0001896e } }, { 0x0001896f, 1, { 0x0001896f } }, { 0x00018970, 1, { 0x00018970 } }, { 0x00018971, 1, { 0x00018971 } }, { 0x00018972, 1, { 0x00018972 } }, { 0x00018973, 1, { 0x00018973 } }, { 0x00018974, 1, { 0x00018974 } }, { 0x00018975, 1, { 0x00018975 } }, { 0x00018976, 1, { 0x00018976 } }, { 0x00018977, 1, { 0x00018977 } }, { 0x00018978, 1, { 0x00018978 } }, { 0x00018979, 1, { 0x00018979 } }, { 0x0001897a, 1, { 0x0001897a } }, { 0x0001897b, 1, { 0x0001897b } }, { 0x0001897c, 1, { 0x0001897c } }, { 0x0001897d, 1, { 0x0001897d } }, { 0x0001897e, 1, { 0x0001897e } }, { 0x0001897f, 1, { 0x0001897f } }, { 0x00018980, 1, { 0x00018980 } }, { 0x00018981, 1, { 0x00018981 } }, { 0x00018982, 1, { 0x00018982 } }, { 0x00018983, 1, { 0x00018983 } }, { 0x00018984, 1, { 0x00018984 } }, { 0x00018985, 1, { 0x00018985 } }, { 0x00018986, 1, { 0x00018986 } }, { 0x00018987, 1, { 0x00018987 } }, { 0x00018988, 1, { 0x00018988 } }, { 0x00018989, 1, { 0x00018989 } }, { 0x0001898a, 1, { 0x0001898a } }, { 0x0001898b, 1, { 0x0001898b } }, { 0x0001898c, 1, { 0x0001898c } }, { 0x0001898d, 1, { 0x0001898d } }, { 0x0001898e, 1, { 0x0001898e } }, { 0x0001898f, 1, { 0x0001898f } }, { 0x00018990, 1, { 0x00018990 } }, { 0x00018991, 1, { 0x00018991 } }, { 0x00018992, 1, { 0x00018992 } }, { 0x00018993, 1, { 0x00018993 } }, { 0x00018994, 1, { 0x00018994 } }, { 0x00018995, 1, { 0x00018995 } }, { 0x00018996, 1, { 0x00018996 } }, { 0x00018997, 1, { 0x00018997 } }, { 0x00018998, 1, { 0x00018998 } }, { 0x00018999, 1, { 0x00018999 } }, { 0x0001899a, 1, { 0x0001899a } }, { 0x0001899b, 1, { 0x0001899b } }, { 0x0001899c, 1, { 0x0001899c } }, { 0x0001899d, 1, { 0x0001899d } }, { 0x0001899e, 1, { 0x0001899e } }, { 0x0001899f, 1, { 0x0001899f } }, { 0x000189a0, 1, { 0x000189a0 } }, { 0x000189a1, 1, { 0x000189a1 } }, { 0x000189a2, 1, { 0x000189a2 } }, { 0x000189a3, 1, { 0x000189a3 } }, { 0x000189a4, 1, { 0x000189a4 } }, { 0x000189a5, 1, { 0x000189a5 } }, { 0x000189a6, 1, { 0x000189a6 } }, { 0x000189a7, 1, { 0x000189a7 } }, { 0x000189a8, 1, { 0x000189a8 } }, { 0x000189a9, 1, { 0x000189a9 } }, { 0x000189aa, 1, { 0x000189aa } }, { 0x000189ab, 1, { 0x000189ab } }, { 0x000189ac, 1, { 0x000189ac } }, { 0x000189ad, 1, { 0x000189ad } }, { 0x000189ae, 1, { 0x000189ae } }, { 0x000189af, 1, { 0x000189af } }, { 0x000189b0, 1, { 0x000189b0 } }, { 0x000189b1, 1, { 0x000189b1 } }, { 0x000189b2, 1, { 0x000189b2 } }, { 0x000189b3, 1, { 0x000189b3 } }, { 0x000189b4, 1, { 0x000189b4 } }, { 0x000189b5, 1, { 0x000189b5 } }, { 0x000189b6, 1, { 0x000189b6 } }, { 0x000189b7, 1, { 0x000189b7 } }, { 0x000189b8, 1, { 0x000189b8 } }, { 0x000189b9, 1, { 0x000189b9 } }, { 0x000189ba, 1, { 0x000189ba } }, { 0x000189bb, 1, { 0x000189bb } }, { 0x000189bc, 1, { 0x000189bc } }, { 0x000189bd, 1, { 0x000189bd } }, { 0x000189be, 1, { 0x000189be } }, { 0x000189bf, 1, { 0x000189bf } }, { 0x000189c0, 1, { 0x000189c0 } }, { 0x000189c1, 1, { 0x000189c1 } }, { 0x000189c2, 1, { 0x000189c2 } }, { 0x000189c3, 1, { 0x000189c3 } }, { 0x000189c4, 1, { 0x000189c4 } }, { 0x000189c5, 1, { 0x000189c5 } }, { 0x000189c6, 1, { 0x000189c6 } }, { 0x000189c7, 1, { 0x000189c7 } }, { 0x000189c8, 1, { 0x000189c8 } }, { 0x000189c9, 1, { 0x000189c9 } }, { 0x000189ca, 1, { 0x000189ca } }, { 0x000189cb, 1, { 0x000189cb } }, { 0x000189cc, 1, { 0x000189cc } }, { 0x000189cd, 1, { 0x000189cd } }, { 0x000189ce, 1, { 0x000189ce } }, { 0x000189cf, 1, { 0x000189cf } }, { 0x000189d0, 1, { 0x000189d0 } }, { 0x000189d1, 1, { 0x000189d1 } }, { 0x000189d2, 1, { 0x000189d2 } }, { 0x000189d3, 1, { 0x000189d3 } }, { 0x000189d4, 1, { 0x000189d4 } }, { 0x000189d5, 1, { 0x000189d5 } }, { 0x000189d6, 1, { 0x000189d6 } }, { 0x000189d7, 1, { 0x000189d7 } }, { 0x000189d8, 1, { 0x000189d8 } }, { 0x000189d9, 1, { 0x000189d9 } }, { 0x000189da, 1, { 0x000189da } }, { 0x000189db, 1, { 0x000189db } }, { 0x000189dc, 1, { 0x000189dc } }, { 0x000189dd, 1, { 0x000189dd } }, { 0x000189de, 1, { 0x000189de } }, { 0x000189df, 1, { 0x000189df } }, { 0x000189e0, 1, { 0x000189e0 } }, { 0x000189e1, 1, { 0x000189e1 } }, { 0x000189e2, 1, { 0x000189e2 } }, { 0x000189e3, 1, { 0x000189e3 } }, { 0x000189e4, 1, { 0x000189e4 } }, { 0x000189e5, 1, { 0x000189e5 } }, { 0x000189e6, 1, { 0x000189e6 } }, { 0x000189e7, 1, { 0x000189e7 } }, { 0x000189e8, 1, { 0x000189e8 } }, { 0x000189e9, 1, { 0x000189e9 } }, { 0x000189ea, 1, { 0x000189ea } }, { 0x000189eb, 1, { 0x000189eb } }, { 0x000189ec, 1, { 0x000189ec } }, { 0x000189ed, 1, { 0x000189ed } }, { 0x000189ee, 1, { 0x000189ee } }, { 0x000189ef, 1, { 0x000189ef } }, { 0x000189f0, 1, { 0x000189f0 } }, { 0x000189f1, 1, { 0x000189f1 } }, { 0x000189f2, 1, { 0x000189f2 } }, { 0x000189f3, 1, { 0x000189f3 } }, { 0x000189f4, 1, { 0x000189f4 } }, { 0x000189f5, 1, { 0x000189f5 } }, { 0x000189f6, 1, { 0x000189f6 } }, { 0x000189f7, 1, { 0x000189f7 } }, { 0x000189f8, 1, { 0x000189f8 } }, { 0x000189f9, 1, { 0x000189f9 } }, { 0x000189fa, 1, { 0x000189fa } }, { 0x000189fb, 1, { 0x000189fb } }, { 0x000189fc, 1, { 0x000189fc } }, { 0x000189fd, 1, { 0x000189fd } }, { 0x000189fe, 1, { 0x000189fe } }, { 0x000189ff, 1, { 0x000189ff } }, { 0x00018a00, 1, { 0x00018a00 } }, { 0x00018a01, 1, { 0x00018a01 } }, { 0x00018a02, 1, { 0x00018a02 } }, { 0x00018a03, 1, { 0x00018a03 } }, { 0x00018a04, 1, { 0x00018a04 } }, { 0x00018a05, 1, { 0x00018a05 } }, { 0x00018a06, 1, { 0x00018a06 } }, { 0x00018a07, 1, { 0x00018a07 } }, { 0x00018a08, 1, { 0x00018a08 } }, { 0x00018a09, 1, { 0x00018a09 } }, { 0x00018a0a, 1, { 0x00018a0a } }, { 0x00018a0b, 1, { 0x00018a0b } }, { 0x00018a0c, 1, { 0x00018a0c } }, { 0x00018a0d, 1, { 0x00018a0d } }, { 0x00018a0e, 1, { 0x00018a0e } }, { 0x00018a0f, 1, { 0x00018a0f } }, { 0x00018a10, 1, { 0x00018a10 } }, { 0x00018a11, 1, { 0x00018a11 } }, { 0x00018a12, 1, { 0x00018a12 } }, { 0x00018a13, 1, { 0x00018a13 } }, { 0x00018a14, 1, { 0x00018a14 } }, { 0x00018a15, 1, { 0x00018a15 } }, { 0x00018a16, 1, { 0x00018a16 } }, { 0x00018a17, 1, { 0x00018a17 } }, { 0x00018a18, 1, { 0x00018a18 } }, { 0x00018a19, 1, { 0x00018a19 } }, { 0x00018a1a, 1, { 0x00018a1a } }, { 0x00018a1b, 1, { 0x00018a1b } }, { 0x00018a1c, 1, { 0x00018a1c } }, { 0x00018a1d, 1, { 0x00018a1d } }, { 0x00018a1e, 1, { 0x00018a1e } }, { 0x00018a1f, 1, { 0x00018a1f } }, { 0x00018a20, 1, { 0x00018a20 } }, { 0x00018a21, 1, { 0x00018a21 } }, { 0x00018a22, 1, { 0x00018a22 } }, { 0x00018a23, 1, { 0x00018a23 } }, { 0x00018a24, 1, { 0x00018a24 } }, { 0x00018a25, 1, { 0x00018a25 } }, { 0x00018a26, 1, { 0x00018a26 } }, { 0x00018a27, 1, { 0x00018a27 } }, { 0x00018a28, 1, { 0x00018a28 } }, { 0x00018a29, 1, { 0x00018a29 } }, { 0x00018a2a, 1, { 0x00018a2a } }, { 0x00018a2b, 1, { 0x00018a2b } }, { 0x00018a2c, 1, { 0x00018a2c } }, { 0x00018a2d, 1, { 0x00018a2d } }, { 0x00018a2e, 1, { 0x00018a2e } }, { 0x00018a2f, 1, { 0x00018a2f } }, { 0x00018a30, 1, { 0x00018a30 } }, { 0x00018a31, 1, { 0x00018a31 } }, { 0x00018a32, 1, { 0x00018a32 } }, { 0x00018a33, 1, { 0x00018a33 } }, { 0x00018a34, 1, { 0x00018a34 } }, { 0x00018a35, 1, { 0x00018a35 } }, { 0x00018a36, 1, { 0x00018a36 } }, { 0x00018a37, 1, { 0x00018a37 } }, { 0x00018a38, 1, { 0x00018a38 } }, { 0x00018a39, 1, { 0x00018a39 } }, { 0x00018a3a, 1, { 0x00018a3a } }, { 0x00018a3b, 1, { 0x00018a3b } }, { 0x00018a3c, 1, { 0x00018a3c } }, { 0x00018a3d, 1, { 0x00018a3d } }, { 0x00018a3e, 1, { 0x00018a3e } }, { 0x00018a3f, 1, { 0x00018a3f } }, { 0x00018a40, 1, { 0x00018a40 } }, { 0x00018a41, 1, { 0x00018a41 } }, { 0x00018a42, 1, { 0x00018a42 } }, { 0x00018a43, 1, { 0x00018a43 } }, { 0x00018a44, 1, { 0x00018a44 } }, { 0x00018a45, 1, { 0x00018a45 } }, { 0x00018a46, 1, { 0x00018a46 } }, { 0x00018a47, 1, { 0x00018a47 } }, { 0x00018a48, 1, { 0x00018a48 } }, { 0x00018a49, 1, { 0x00018a49 } }, { 0x00018a4a, 1, { 0x00018a4a } }, { 0x00018a4b, 1, { 0x00018a4b } }, { 0x00018a4c, 1, { 0x00018a4c } }, { 0x00018a4d, 1, { 0x00018a4d } }, { 0x00018a4e, 1, { 0x00018a4e } }, { 0x00018a4f, 1, { 0x00018a4f } }, { 0x00018a50, 1, { 0x00018a50 } }, { 0x00018a51, 1, { 0x00018a51 } }, { 0x00018a52, 1, { 0x00018a52 } }, { 0x00018a53, 1, { 0x00018a53 } }, { 0x00018a54, 1, { 0x00018a54 } }, { 0x00018a55, 1, { 0x00018a55 } }, { 0x00018a56, 1, { 0x00018a56 } }, { 0x00018a57, 1, { 0x00018a57 } }, { 0x00018a58, 1, { 0x00018a58 } }, { 0x00018a59, 1, { 0x00018a59 } }, { 0x00018a5a, 1, { 0x00018a5a } }, { 0x00018a5b, 1, { 0x00018a5b } }, { 0x00018a5c, 1, { 0x00018a5c } }, { 0x00018a5d, 1, { 0x00018a5d } }, { 0x00018a5e, 1, { 0x00018a5e } }, { 0x00018a5f, 1, { 0x00018a5f } }, { 0x00018a60, 1, { 0x00018a60 } }, { 0x00018a61, 1, { 0x00018a61 } }, { 0x00018a62, 1, { 0x00018a62 } }, { 0x00018a63, 1, { 0x00018a63 } }, { 0x00018a64, 1, { 0x00018a64 } }, { 0x00018a65, 1, { 0x00018a65 } }, { 0x00018a66, 1, { 0x00018a66 } }, { 0x00018a67, 1, { 0x00018a67 } }, { 0x00018a68, 1, { 0x00018a68 } }, { 0x00018a69, 1, { 0x00018a69 } }, { 0x00018a6a, 1, { 0x00018a6a } }, { 0x00018a6b, 1, { 0x00018a6b } }, { 0x00018a6c, 1, { 0x00018a6c } }, { 0x00018a6d, 1, { 0x00018a6d } }, { 0x00018a6e, 1, { 0x00018a6e } }, { 0x00018a6f, 1, { 0x00018a6f } }, { 0x00018a70, 1, { 0x00018a70 } }, { 0x00018a71, 1, { 0x00018a71 } }, { 0x00018a72, 1, { 0x00018a72 } }, { 0x00018a73, 1, { 0x00018a73 } }, { 0x00018a74, 1, { 0x00018a74 } }, { 0x00018a75, 1, { 0x00018a75 } }, { 0x00018a76, 1, { 0x00018a76 } }, { 0x00018a77, 1, { 0x00018a77 } }, { 0x00018a78, 1, { 0x00018a78 } }, { 0x00018a79, 1, { 0x00018a79 } }, { 0x00018a7a, 1, { 0x00018a7a } }, { 0x00018a7b, 1, { 0x00018a7b } }, { 0x00018a7c, 1, { 0x00018a7c } }, { 0x00018a7d, 1, { 0x00018a7d } }, { 0x00018a7e, 1, { 0x00018a7e } }, { 0x00018a7f, 1, { 0x00018a7f } }, { 0x00018a80, 1, { 0x00018a80 } }, { 0x00018a81, 1, { 0x00018a81 } }, { 0x00018a82, 1, { 0x00018a82 } }, { 0x00018a83, 1, { 0x00018a83 } }, { 0x00018a84, 1, { 0x00018a84 } }, { 0x00018a85, 1, { 0x00018a85 } }, { 0x00018a86, 1, { 0x00018a86 } }, { 0x00018a87, 1, { 0x00018a87 } }, { 0x00018a88, 1, { 0x00018a88 } }, { 0x00018a89, 1, { 0x00018a89 } }, { 0x00018a8a, 1, { 0x00018a8a } }, { 0x00018a8b, 1, { 0x00018a8b } }, { 0x00018a8c, 1, { 0x00018a8c } }, { 0x00018a8d, 1, { 0x00018a8d } }, { 0x00018a8e, 1, { 0x00018a8e } }, { 0x00018a8f, 1, { 0x00018a8f } }, { 0x00018a90, 1, { 0x00018a90 } }, { 0x00018a91, 1, { 0x00018a91 } }, { 0x00018a92, 1, { 0x00018a92 } }, { 0x00018a93, 1, { 0x00018a93 } }, { 0x00018a94, 1, { 0x00018a94 } }, { 0x00018a95, 1, { 0x00018a95 } }, { 0x00018a96, 1, { 0x00018a96 } }, { 0x00018a97, 1, { 0x00018a97 } }, { 0x00018a98, 1, { 0x00018a98 } }, { 0x00018a99, 1, { 0x00018a99 } }, { 0x00018a9a, 1, { 0x00018a9a } }, { 0x00018a9b, 1, { 0x00018a9b } }, { 0x00018a9c, 1, { 0x00018a9c } }, { 0x00018a9d, 1, { 0x00018a9d } }, { 0x00018a9e, 1, { 0x00018a9e } }, { 0x00018a9f, 1, { 0x00018a9f } }, { 0x00018aa0, 1, { 0x00018aa0 } }, { 0x00018aa1, 1, { 0x00018aa1 } }, { 0x00018aa2, 1, { 0x00018aa2 } }, { 0x00018aa3, 1, { 0x00018aa3 } }, { 0x00018aa4, 1, { 0x00018aa4 } }, { 0x00018aa5, 1, { 0x00018aa5 } }, { 0x00018aa6, 1, { 0x00018aa6 } }, { 0x00018aa7, 1, { 0x00018aa7 } }, { 0x00018aa8, 1, { 0x00018aa8 } }, { 0x00018aa9, 1, { 0x00018aa9 } }, { 0x00018aaa, 1, { 0x00018aaa } }, { 0x00018aab, 1, { 0x00018aab } }, { 0x00018aac, 1, { 0x00018aac } }, { 0x00018aad, 1, { 0x00018aad } }, { 0x00018aae, 1, { 0x00018aae } }, { 0x00018aaf, 1, { 0x00018aaf } }, { 0x00018ab0, 1, { 0x00018ab0 } }, { 0x00018ab1, 1, { 0x00018ab1 } }, { 0x00018ab2, 1, { 0x00018ab2 } }, { 0x00018ab3, 1, { 0x00018ab3 } }, { 0x00018ab4, 1, { 0x00018ab4 } }, { 0x00018ab5, 1, { 0x00018ab5 } }, { 0x00018ab6, 1, { 0x00018ab6 } }, { 0x00018ab7, 1, { 0x00018ab7 } }, { 0x00018ab8, 1, { 0x00018ab8 } }, { 0x00018ab9, 1, { 0x00018ab9 } }, { 0x00018aba, 1, { 0x00018aba } }, { 0x00018abb, 1, { 0x00018abb } }, { 0x00018abc, 1, { 0x00018abc } }, { 0x00018abd, 1, { 0x00018abd } }, { 0x00018abe, 1, { 0x00018abe } }, { 0x00018abf, 1, { 0x00018abf } }, { 0x00018ac0, 1, { 0x00018ac0 } }, { 0x00018ac1, 1, { 0x00018ac1 } }, { 0x00018ac2, 1, { 0x00018ac2 } }, { 0x00018ac3, 1, { 0x00018ac3 } }, { 0x00018ac4, 1, { 0x00018ac4 } }, { 0x00018ac5, 1, { 0x00018ac5 } }, { 0x00018ac6, 1, { 0x00018ac6 } }, { 0x00018ac7, 1, { 0x00018ac7 } }, { 0x00018ac8, 1, { 0x00018ac8 } }, { 0x00018ac9, 1, { 0x00018ac9 } }, { 0x00018aca, 1, { 0x00018aca } }, { 0x00018acb, 1, { 0x00018acb } }, { 0x00018acc, 1, { 0x00018acc } }, { 0x00018acd, 1, { 0x00018acd } }, { 0x00018ace, 1, { 0x00018ace } }, { 0x00018acf, 1, { 0x00018acf } }, { 0x00018ad0, 1, { 0x00018ad0 } }, { 0x00018ad1, 1, { 0x00018ad1 } }, { 0x00018ad2, 1, { 0x00018ad2 } }, { 0x00018ad3, 1, { 0x00018ad3 } }, { 0x00018ad4, 1, { 0x00018ad4 } }, { 0x00018ad5, 1, { 0x00018ad5 } }, { 0x00018ad6, 1, { 0x00018ad6 } }, { 0x00018ad7, 1, { 0x00018ad7 } }, { 0x00018ad8, 1, { 0x00018ad8 } }, { 0x00018ad9, 1, { 0x00018ad9 } }, { 0x00018ada, 1, { 0x00018ada } }, { 0x00018adb, 1, { 0x00018adb } }, { 0x00018adc, 1, { 0x00018adc } }, { 0x00018add, 1, { 0x00018add } }, { 0x00018ade, 1, { 0x00018ade } }, { 0x00018adf, 1, { 0x00018adf } }, { 0x00018ae0, 1, { 0x00018ae0 } }, { 0x00018ae1, 1, { 0x00018ae1 } }, { 0x00018ae2, 1, { 0x00018ae2 } }, { 0x00018ae3, 1, { 0x00018ae3 } }, { 0x00018ae4, 1, { 0x00018ae4 } }, { 0x00018ae5, 1, { 0x00018ae5 } }, { 0x00018ae6, 1, { 0x00018ae6 } }, { 0x00018ae7, 1, { 0x00018ae7 } }, { 0x00018ae8, 1, { 0x00018ae8 } }, { 0x00018ae9, 1, { 0x00018ae9 } }, { 0x00018aea, 1, { 0x00018aea } }, { 0x00018aeb, 1, { 0x00018aeb } }, { 0x00018aec, 1, { 0x00018aec } }, { 0x00018aed, 1, { 0x00018aed } }, { 0x00018aee, 1, { 0x00018aee } }, { 0x00018aef, 1, { 0x00018aef } }, { 0x00018af0, 1, { 0x00018af0 } }, { 0x00018af1, 1, { 0x00018af1 } }, { 0x00018af2, 1, { 0x00018af2 } }, { 0x0001b000, 1, { 0x0001b000 } }, { 0x0001b001, 1, { 0x0001b001 } }, { 0x0001bc00, 1, { 0x0001bc00 } }, { 0x0001bc01, 1, { 0x0001bc01 } }, { 0x0001bc02, 1, { 0x0001bc02 } }, { 0x0001bc03, 1, { 0x0001bc03 } }, { 0x0001bc04, 1, { 0x0001bc04 } }, { 0x0001bc05, 1, { 0x0001bc05 } }, { 0x0001bc06, 1, { 0x0001bc06 } }, { 0x0001bc07, 1, { 0x0001bc07 } }, { 0x0001bc08, 1, { 0x0001bc08 } }, { 0x0001bc09, 1, { 0x0001bc09 } }, { 0x0001bc0a, 1, { 0x0001bc0a } }, { 0x0001bc0b, 1, { 0x0001bc0b } }, { 0x0001bc0c, 1, { 0x0001bc0c } }, { 0x0001bc0d, 1, { 0x0001bc0d } }, { 0x0001bc0e, 1, { 0x0001bc0e } }, { 0x0001bc0f, 1, { 0x0001bc0f } }, { 0x0001bc10, 1, { 0x0001bc10 } }, { 0x0001bc11, 1, { 0x0001bc11 } }, { 0x0001bc12, 1, { 0x0001bc12 } }, { 0x0001bc13, 1, { 0x0001bc13 } }, { 0x0001bc14, 1, { 0x0001bc14 } }, { 0x0001bc15, 1, { 0x0001bc15 } }, { 0x0001bc16, 1, { 0x0001bc16 } }, { 0x0001bc17, 1, { 0x0001bc17 } }, { 0x0001bc18, 1, { 0x0001bc18 } }, { 0x0001bc19, 1, { 0x0001bc19 } }, { 0x0001bc1a, 1, { 0x0001bc1a } }, { 0x0001bc1b, 1, { 0x0001bc1b } }, { 0x0001bc1c, 1, { 0x0001bc1c } }, { 0x0001bc1d, 1, { 0x0001bc1d } }, { 0x0001bc1e, 1, { 0x0001bc1e } }, { 0x0001bc1f, 1, { 0x0001bc1f } }, { 0x0001bc20, 1, { 0x0001bc20 } }, { 0x0001bc21, 1, { 0x0001bc21 } }, { 0x0001bc22, 1, { 0x0001bc22 } }, { 0x0001bc23, 1, { 0x0001bc23 } }, { 0x0001bc24, 1, { 0x0001bc24 } }, { 0x0001bc25, 1, { 0x0001bc25 } }, { 0x0001bc26, 1, { 0x0001bc26 } }, { 0x0001bc27, 1, { 0x0001bc27 } }, { 0x0001bc28, 1, { 0x0001bc28 } }, { 0x0001bc29, 1, { 0x0001bc29 } }, { 0x0001bc2a, 1, { 0x0001bc2a } }, { 0x0001bc2b, 1, { 0x0001bc2b } }, { 0x0001bc2c, 1, { 0x0001bc2c } }, { 0x0001bc2d, 1, { 0x0001bc2d } }, { 0x0001bc2e, 1, { 0x0001bc2e } }, { 0x0001bc2f, 1, { 0x0001bc2f } }, { 0x0001bc30, 1, { 0x0001bc30 } }, { 0x0001bc31, 1, { 0x0001bc31 } }, { 0x0001bc32, 1, { 0x0001bc32 } }, { 0x0001bc33, 1, { 0x0001bc33 } }, { 0x0001bc34, 1, { 0x0001bc34 } }, { 0x0001bc35, 1, { 0x0001bc35 } }, { 0x0001bc36, 1, { 0x0001bc36 } }, { 0x0001bc37, 1, { 0x0001bc37 } }, { 0x0001bc38, 1, { 0x0001bc38 } }, { 0x0001bc39, 1, { 0x0001bc39 } }, { 0x0001bc3a, 1, { 0x0001bc3a } }, { 0x0001bc3b, 1, { 0x0001bc3b } }, { 0x0001bc3c, 1, { 0x0001bc3c } }, { 0x0001bc3d, 1, { 0x0001bc3d } }, { 0x0001bc3e, 1, { 0x0001bc3e } }, { 0x0001bc3f, 1, { 0x0001bc3f } }, { 0x0001bc40, 1, { 0x0001bc40 } }, { 0x0001bc41, 1, { 0x0001bc41 } }, { 0x0001bc42, 1, { 0x0001bc42 } }, { 0x0001bc43, 1, { 0x0001bc43 } }, { 0x0001bc44, 1, { 0x0001bc44 } }, { 0x0001bc45, 1, { 0x0001bc45 } }, { 0x0001bc46, 1, { 0x0001bc46 } }, { 0x0001bc47, 1, { 0x0001bc47 } }, { 0x0001bc48, 1, { 0x0001bc48 } }, { 0x0001bc49, 1, { 0x0001bc49 } }, { 0x0001bc4a, 1, { 0x0001bc4a } }, { 0x0001bc4b, 1, { 0x0001bc4b } }, { 0x0001bc4c, 1, { 0x0001bc4c } }, { 0x0001bc4d, 1, { 0x0001bc4d } }, { 0x0001bc4e, 1, { 0x0001bc4e } }, { 0x0001bc4f, 1, { 0x0001bc4f } }, { 0x0001bc50, 1, { 0x0001bc50 } }, { 0x0001bc51, 1, { 0x0001bc51 } }, { 0x0001bc52, 1, { 0x0001bc52 } }, { 0x0001bc53, 1, { 0x0001bc53 } }, { 0x0001bc54, 1, { 0x0001bc54 } }, { 0x0001bc55, 1, { 0x0001bc55 } }, { 0x0001bc56, 1, { 0x0001bc56 } }, { 0x0001bc57, 1, { 0x0001bc57 } }, { 0x0001bc58, 1, { 0x0001bc58 } }, { 0x0001bc59, 1, { 0x0001bc59 } }, { 0x0001bc5a, 1, { 0x0001bc5a } }, { 0x0001bc5b, 1, { 0x0001bc5b } }, { 0x0001bc5c, 1, { 0x0001bc5c } }, { 0x0001bc5d, 1, { 0x0001bc5d } }, { 0x0001bc5e, 1, { 0x0001bc5e } }, { 0x0001bc5f, 1, { 0x0001bc5f } }, { 0x0001bc60, 1, { 0x0001bc60 } }, { 0x0001bc61, 1, { 0x0001bc61 } }, { 0x0001bc62, 1, { 0x0001bc62 } }, { 0x0001bc63, 1, { 0x0001bc63 } }, { 0x0001bc64, 1, { 0x0001bc64 } }, { 0x0001bc65, 1, { 0x0001bc65 } }, { 0x0001bc66, 1, { 0x0001bc66 } }, { 0x0001bc67, 1, { 0x0001bc67 } }, { 0x0001bc68, 1, { 0x0001bc68 } }, { 0x0001bc69, 1, { 0x0001bc69 } }, { 0x0001bc6a, 1, { 0x0001bc6a } }, { 0x0001bc70, 1, { 0x0001bc70 } }, { 0x0001bc71, 1, { 0x0001bc71 } }, { 0x0001bc72, 1, { 0x0001bc72 } }, { 0x0001bc73, 1, { 0x0001bc73 } }, { 0x0001bc74, 1, { 0x0001bc74 } }, { 0x0001bc75, 1, { 0x0001bc75 } }, { 0x0001bc76, 1, { 0x0001bc76 } }, { 0x0001bc77, 1, { 0x0001bc77 } }, { 0x0001bc78, 1, { 0x0001bc78 } }, { 0x0001bc79, 1, { 0x0001bc79 } }, { 0x0001bc7a, 1, { 0x0001bc7a } }, { 0x0001bc7b, 1, { 0x0001bc7b } }, { 0x0001bc7c, 1, { 0x0001bc7c } }, { 0x0001bc80, 1, { 0x0001bc80 } }, { 0x0001bc81, 1, { 0x0001bc81 } }, { 0x0001bc82, 1, { 0x0001bc82 } }, { 0x0001bc83, 1, { 0x0001bc83 } }, { 0x0001bc84, 1, { 0x0001bc84 } }, { 0x0001bc85, 1, { 0x0001bc85 } }, { 0x0001bc86, 1, { 0x0001bc86 } }, { 0x0001bc87, 1, { 0x0001bc87 } }, { 0x0001bc88, 1, { 0x0001bc88 } }, { 0x0001bc90, 1, { 0x0001bc90 } }, { 0x0001bc91, 1, { 0x0001bc91 } }, { 0x0001bc92, 1, { 0x0001bc92 } }, { 0x0001bc93, 1, { 0x0001bc93 } }, { 0x0001bc94, 1, { 0x0001bc94 } }, { 0x0001bc95, 1, { 0x0001bc95 } }, { 0x0001bc96, 1, { 0x0001bc96 } }, { 0x0001bc97, 1, { 0x0001bc97 } }, { 0x0001bc98, 1, { 0x0001bc98 } }, { 0x0001bc99, 1, { 0x0001bc99 } }, { 0x0001bc9c, 1, { 0x0001bc9c } }, { 0x0001bc9d, 1, { 0x0001bc9d } }, { 0x0001bc9e, 1, { 0x0001bc9e } }, { 0x0001bc9f, 1, { 0x0001bc9f } }, { 0x0001bca0, 1, { 0x0001bca0 } }, { 0x0001bca1, 1, { 0x0001bca1 } }, { 0x0001bca2, 1, { 0x0001bca2 } }, { 0x0001bca3, 1, { 0x0001bca3 } }, { 0x0001d000, 1, { 0x0001d000 } }, { 0x0001d001, 1, { 0x0001d001 } }, { 0x0001d002, 1, { 0x0001d002 } }, { 0x0001d003, 1, { 0x0001d003 } }, { 0x0001d004, 1, { 0x0001d004 } }, { 0x0001d005, 1, { 0x0001d005 } }, { 0x0001d006, 1, { 0x0001d006 } }, { 0x0001d007, 1, { 0x0001d007 } }, { 0x0001d008, 1, { 0x0001d008 } }, { 0x0001d009, 1, { 0x0001d009 } }, { 0x0001d00a, 1, { 0x0001d00a } }, { 0x0001d00b, 1, { 0x0001d00b } }, { 0x0001d00c, 1, { 0x0001d00c } }, { 0x0001d00d, 1, { 0x0001d00d } }, { 0x0001d00e, 1, { 0x0001d00e } }, { 0x0001d00f, 1, { 0x0001d00f } }, { 0x0001d010, 1, { 0x0001d010 } }, { 0x0001d011, 1, { 0x0001d011 } }, { 0x0001d012, 1, { 0x0001d012 } }, { 0x0001d013, 1, { 0x0001d013 } }, { 0x0001d014, 1, { 0x0001d014 } }, { 0x0001d015, 1, { 0x0001d015 } }, { 0x0001d016, 1, { 0x0001d016 } }, { 0x0001d017, 1, { 0x0001d017 } }, { 0x0001d018, 1, { 0x0001d018 } }, { 0x0001d019, 1, { 0x0001d019 } }, { 0x0001d01a, 1, { 0x0001d01a } }, { 0x0001d01b, 1, { 0x0001d01b } }, { 0x0001d01c, 1, { 0x0001d01c } }, { 0x0001d01d, 1, { 0x0001d01d } }, { 0x0001d01e, 1, { 0x0001d01e } }, { 0x0001d01f, 1, { 0x0001d01f } }, { 0x0001d020, 1, { 0x0001d020 } }, { 0x0001d021, 1, { 0x0001d021 } }, { 0x0001d022, 1, { 0x0001d022 } }, { 0x0001d023, 1, { 0x0001d023 } }, { 0x0001d024, 1, { 0x0001d024 } }, { 0x0001d025, 1, { 0x0001d025 } }, { 0x0001d026, 1, { 0x0001d026 } }, { 0x0001d027, 1, { 0x0001d027 } }, { 0x0001d028, 1, { 0x0001d028 } }, { 0x0001d029, 1, { 0x0001d029 } }, { 0x0001d02a, 1, { 0x0001d02a } }, { 0x0001d02b, 1, { 0x0001d02b } }, { 0x0001d02c, 1, { 0x0001d02c } }, { 0x0001d02d, 1, { 0x0001d02d } }, { 0x0001d02e, 1, { 0x0001d02e } }, { 0x0001d02f, 1, { 0x0001d02f } }, { 0x0001d030, 1, { 0x0001d030 } }, { 0x0001d031, 1, { 0x0001d031 } }, { 0x0001d032, 1, { 0x0001d032 } }, { 0x0001d033, 1, { 0x0001d033 } }, { 0x0001d034, 1, { 0x0001d034 } }, { 0x0001d035, 1, { 0x0001d035 } }, { 0x0001d036, 1, { 0x0001d036 } }, { 0x0001d037, 1, { 0x0001d037 } }, { 0x0001d038, 1, { 0x0001d038 } }, { 0x0001d039, 1, { 0x0001d039 } }, { 0x0001d03a, 1, { 0x0001d03a } }, { 0x0001d03b, 1, { 0x0001d03b } }, { 0x0001d03c, 1, { 0x0001d03c } }, { 0x0001d03d, 1, { 0x0001d03d } }, { 0x0001d03e, 1, { 0x0001d03e } }, { 0x0001d03f, 1, { 0x0001d03f } }, { 0x0001d040, 1, { 0x0001d040 } }, { 0x0001d041, 1, { 0x0001d041 } }, { 0x0001d042, 1, { 0x0001d042 } }, { 0x0001d043, 1, { 0x0001d043 } }, { 0x0001d044, 1, { 0x0001d044 } }, { 0x0001d045, 1, { 0x0001d045 } }, { 0x0001d046, 1, { 0x0001d046 } }, { 0x0001d047, 1, { 0x0001d047 } }, { 0x0001d048, 1, { 0x0001d048 } }, { 0x0001d049, 1, { 0x0001d049 } }, { 0x0001d04a, 1, { 0x0001d04a } }, { 0x0001d04b, 1, { 0x0001d04b } }, { 0x0001d04c, 1, { 0x0001d04c } }, { 0x0001d04d, 1, { 0x0001d04d } }, { 0x0001d04e, 1, { 0x0001d04e } }, { 0x0001d04f, 1, { 0x0001d04f } }, { 0x0001d050, 1, { 0x0001d050 } }, { 0x0001d051, 1, { 0x0001d051 } }, { 0x0001d052, 1, { 0x0001d052 } }, { 0x0001d053, 1, { 0x0001d053 } }, { 0x0001d054, 1, { 0x0001d054 } }, { 0x0001d055, 1, { 0x0001d055 } }, { 0x0001d056, 1, { 0x0001d056 } }, { 0x0001d057, 1, { 0x0001d057 } }, { 0x0001d058, 1, { 0x0001d058 } }, { 0x0001d059, 1, { 0x0001d059 } }, { 0x0001d05a, 1, { 0x0001d05a } }, { 0x0001d05b, 1, { 0x0001d05b } }, { 0x0001d05c, 1, { 0x0001d05c } }, { 0x0001d05d, 1, { 0x0001d05d } }, { 0x0001d05e, 1, { 0x0001d05e } }, { 0x0001d05f, 1, { 0x0001d05f } }, { 0x0001d060, 1, { 0x0001d060 } }, { 0x0001d061, 1, { 0x0001d061 } }, { 0x0001d062, 1, { 0x0001d062 } }, { 0x0001d063, 1, { 0x0001d063 } }, { 0x0001d064, 1, { 0x0001d064 } }, { 0x0001d065, 1, { 0x0001d065 } }, { 0x0001d066, 1, { 0x0001d066 } }, { 0x0001d067, 1, { 0x0001d067 } }, { 0x0001d068, 1, { 0x0001d068 } }, { 0x0001d069, 1, { 0x0001d069 } }, { 0x0001d06a, 1, { 0x0001d06a } }, { 0x0001d06b, 1, { 0x0001d06b } }, { 0x0001d06c, 1, { 0x0001d06c } }, { 0x0001d06d, 1, { 0x0001d06d } }, { 0x0001d06e, 1, { 0x0001d06e } }, { 0x0001d06f, 1, { 0x0001d06f } }, { 0x0001d070, 1, { 0x0001d070 } }, { 0x0001d071, 1, { 0x0001d071 } }, { 0x0001d072, 1, { 0x0001d072 } }, { 0x0001d073, 1, { 0x0001d073 } }, { 0x0001d074, 1, { 0x0001d074 } }, { 0x0001d075, 1, { 0x0001d075 } }, { 0x0001d076, 1, { 0x0001d076 } }, { 0x0001d077, 1, { 0x0001d077 } }, { 0x0001d078, 1, { 0x0001d078 } }, { 0x0001d079, 1, { 0x0001d079 } }, { 0x0001d07a, 1, { 0x0001d07a } }, { 0x0001d07b, 1, { 0x0001d07b } }, { 0x0001d07c, 1, { 0x0001d07c } }, { 0x0001d07d, 1, { 0x0001d07d } }, { 0x0001d07e, 1, { 0x0001d07e } }, { 0x0001d07f, 1, { 0x0001d07f } }, { 0x0001d080, 1, { 0x0001d080 } }, { 0x0001d081, 1, { 0x0001d081 } }, { 0x0001d082, 1, { 0x0001d082 } }, { 0x0001d083, 1, { 0x0001d083 } }, { 0x0001d084, 1, { 0x0001d084 } }, { 0x0001d085, 1, { 0x0001d085 } }, { 0x0001d086, 1, { 0x0001d086 } }, { 0x0001d087, 1, { 0x0001d087 } }, { 0x0001d088, 1, { 0x0001d088 } }, { 0x0001d089, 1, { 0x0001d089 } }, { 0x0001d08a, 1, { 0x0001d08a } }, { 0x0001d08b, 1, { 0x0001d08b } }, { 0x0001d08c, 1, { 0x0001d08c } }, { 0x0001d08d, 1, { 0x0001d08d } }, { 0x0001d08e, 1, { 0x0001d08e } }, { 0x0001d08f, 1, { 0x0001d08f } }, { 0x0001d090, 1, { 0x0001d090 } }, { 0x0001d091, 1, { 0x0001d091 } }, { 0x0001d092, 1, { 0x0001d092 } }, { 0x0001d093, 1, { 0x0001d093 } }, { 0x0001d094, 1, { 0x0001d094 } }, { 0x0001d095, 1, { 0x0001d095 } }, { 0x0001d096, 1, { 0x0001d096 } }, { 0x0001d097, 1, { 0x0001d097 } }, { 0x0001d098, 1, { 0x0001d098 } }, { 0x0001d099, 1, { 0x0001d099 } }, { 0x0001d09a, 1, { 0x0001d09a } }, { 0x0001d09b, 1, { 0x0001d09b } }, { 0x0001d09c, 1, { 0x0001d09c } }, { 0x0001d09d, 1, { 0x0001d09d } }, { 0x0001d09e, 1, { 0x0001d09e } }, { 0x0001d09f, 1, { 0x0001d09f } }, { 0x0001d0a0, 1, { 0x0001d0a0 } }, { 0x0001d0a1, 1, { 0x0001d0a1 } }, { 0x0001d0a2, 1, { 0x0001d0a2 } }, { 0x0001d0a3, 1, { 0x0001d0a3 } }, { 0x0001d0a4, 1, { 0x0001d0a4 } }, { 0x0001d0a5, 1, { 0x0001d0a5 } }, { 0x0001d0a6, 1, { 0x0001d0a6 } }, { 0x0001d0a7, 1, { 0x0001d0a7 } }, { 0x0001d0a8, 1, { 0x0001d0a8 } }, { 0x0001d0a9, 1, { 0x0001d0a9 } }, { 0x0001d0aa, 1, { 0x0001d0aa } }, { 0x0001d0ab, 1, { 0x0001d0ab } }, { 0x0001d0ac, 1, { 0x0001d0ac } }, { 0x0001d0ad, 1, { 0x0001d0ad } }, { 0x0001d0ae, 1, { 0x0001d0ae } }, { 0x0001d0af, 1, { 0x0001d0af } }, { 0x0001d0b0, 1, { 0x0001d0b0 } }, { 0x0001d0b1, 1, { 0x0001d0b1 } }, { 0x0001d0b2, 1, { 0x0001d0b2 } }, { 0x0001d0b3, 1, { 0x0001d0b3 } }, { 0x0001d0b4, 1, { 0x0001d0b4 } }, { 0x0001d0b5, 1, { 0x0001d0b5 } }, { 0x0001d0b6, 1, { 0x0001d0b6 } }, { 0x0001d0b7, 1, { 0x0001d0b7 } }, { 0x0001d0b8, 1, { 0x0001d0b8 } }, { 0x0001d0b9, 1, { 0x0001d0b9 } }, { 0x0001d0ba, 1, { 0x0001d0ba } }, { 0x0001d0bb, 1, { 0x0001d0bb } }, { 0x0001d0bc, 1, { 0x0001d0bc } }, { 0x0001d0bd, 1, { 0x0001d0bd } }, { 0x0001d0be, 1, { 0x0001d0be } }, { 0x0001d0bf, 1, { 0x0001d0bf } }, { 0x0001d0c0, 1, { 0x0001d0c0 } }, { 0x0001d0c1, 1, { 0x0001d0c1 } }, { 0x0001d0c2, 1, { 0x0001d0c2 } }, { 0x0001d0c3, 1, { 0x0001d0c3 } }, { 0x0001d0c4, 1, { 0x0001d0c4 } }, { 0x0001d0c5, 1, { 0x0001d0c5 } }, { 0x0001d0c6, 1, { 0x0001d0c6 } }, { 0x0001d0c7, 1, { 0x0001d0c7 } }, { 0x0001d0c8, 1, { 0x0001d0c8 } }, { 0x0001d0c9, 1, { 0x0001d0c9 } }, { 0x0001d0ca, 1, { 0x0001d0ca } }, { 0x0001d0cb, 1, { 0x0001d0cb } }, { 0x0001d0cc, 1, { 0x0001d0cc } }, { 0x0001d0cd, 1, { 0x0001d0cd } }, { 0x0001d0ce, 1, { 0x0001d0ce } }, { 0x0001d0cf, 1, { 0x0001d0cf } }, { 0x0001d0d0, 1, { 0x0001d0d0 } }, { 0x0001d0d1, 1, { 0x0001d0d1 } }, { 0x0001d0d2, 1, { 0x0001d0d2 } }, { 0x0001d0d3, 1, { 0x0001d0d3 } }, { 0x0001d0d4, 1, { 0x0001d0d4 } }, { 0x0001d0d5, 1, { 0x0001d0d5 } }, { 0x0001d0d6, 1, { 0x0001d0d6 } }, { 0x0001d0d7, 1, { 0x0001d0d7 } }, { 0x0001d0d8, 1, { 0x0001d0d8 } }, { 0x0001d0d9, 1, { 0x0001d0d9 } }, { 0x0001d0da, 1, { 0x0001d0da } }, { 0x0001d0db, 1, { 0x0001d0db } }, { 0x0001d0dc, 1, { 0x0001d0dc } }, { 0x0001d0dd, 1, { 0x0001d0dd } }, { 0x0001d0de, 1, { 0x0001d0de } }, { 0x0001d0df, 1, { 0x0001d0df } }, { 0x0001d0e0, 1, { 0x0001d0e0 } }, { 0x0001d0e1, 1, { 0x0001d0e1 } }, { 0x0001d0e2, 1, { 0x0001d0e2 } }, { 0x0001d0e3, 1, { 0x0001d0e3 } }, { 0x0001d0e4, 1, { 0x0001d0e4 } }, { 0x0001d0e5, 1, { 0x0001d0e5 } }, { 0x0001d0e6, 1, { 0x0001d0e6 } }, { 0x0001d0e7, 1, { 0x0001d0e7 } }, { 0x0001d0e8, 1, { 0x0001d0e8 } }, { 0x0001d0e9, 1, { 0x0001d0e9 } }, { 0x0001d0ea, 1, { 0x0001d0ea } }, { 0x0001d0eb, 1, { 0x0001d0eb } }, { 0x0001d0ec, 1, { 0x0001d0ec } }, { 0x0001d0ed, 1, { 0x0001d0ed } }, { 0x0001d0ee, 1, { 0x0001d0ee } }, { 0x0001d0ef, 1, { 0x0001d0ef } }, { 0x0001d0f0, 1, { 0x0001d0f0 } }, { 0x0001d0f1, 1, { 0x0001d0f1 } }, { 0x0001d0f2, 1, { 0x0001d0f2 } }, { 0x0001d0f3, 1, { 0x0001d0f3 } }, { 0x0001d0f4, 1, { 0x0001d0f4 } }, { 0x0001d0f5, 1, { 0x0001d0f5 } }, { 0x0001d100, 1, { 0x0001d100 } }, { 0x0001d101, 1, { 0x0001d101 } }, { 0x0001d102, 1, { 0x0001d102 } }, { 0x0001d103, 1, { 0x0001d103 } }, { 0x0001d104, 1, { 0x0001d104 } }, { 0x0001d105, 1, { 0x0001d105 } }, { 0x0001d106, 1, { 0x0001d106 } }, { 0x0001d107, 1, { 0x0001d107 } }, { 0x0001d108, 1, { 0x0001d108 } }, { 0x0001d109, 1, { 0x0001d109 } }, { 0x0001d10a, 1, { 0x0001d10a } }, { 0x0001d10b, 1, { 0x0001d10b } }, { 0x0001d10c, 1, { 0x0001d10c } }, { 0x0001d10d, 1, { 0x0001d10d } }, { 0x0001d10e, 1, { 0x0001d10e } }, { 0x0001d10f, 1, { 0x0001d10f } }, { 0x0001d110, 1, { 0x0001d110 } }, { 0x0001d111, 1, { 0x0001d111 } }, { 0x0001d112, 1, { 0x0001d112 } }, { 0x0001d113, 1, { 0x0001d113 } }, { 0x0001d114, 1, { 0x0001d114 } }, { 0x0001d115, 1, { 0x0001d115 } }, { 0x0001d116, 1, { 0x0001d116 } }, { 0x0001d117, 1, { 0x0001d117 } }, { 0x0001d118, 1, { 0x0001d118 } }, { 0x0001d119, 1, { 0x0001d119 } }, { 0x0001d11a, 1, { 0x0001d11a } }, { 0x0001d11b, 1, { 0x0001d11b } }, { 0x0001d11c, 1, { 0x0001d11c } }, { 0x0001d11d, 1, { 0x0001d11d } }, { 0x0001d11e, 1, { 0x0001d11e } }, { 0x0001d11f, 1, { 0x0001d11f } }, { 0x0001d120, 1, { 0x0001d120 } }, { 0x0001d121, 1, { 0x0001d121 } }, { 0x0001d122, 1, { 0x0001d122 } }, { 0x0001d123, 1, { 0x0001d123 } }, { 0x0001d124, 1, { 0x0001d124 } }, { 0x0001d125, 1, { 0x0001d125 } }, { 0x0001d126, 1, { 0x0001d126 } }, { 0x0001d129, 1, { 0x0001d129 } }, { 0x0001d12a, 1, { 0x0001d12a } }, { 0x0001d12b, 1, { 0x0001d12b } }, { 0x0001d12c, 1, { 0x0001d12c } }, { 0x0001d12d, 1, { 0x0001d12d } }, { 0x0001d12e, 1, { 0x0001d12e } }, { 0x0001d12f, 1, { 0x0001d12f } }, { 0x0001d130, 1, { 0x0001d130 } }, { 0x0001d131, 1, { 0x0001d131 } }, { 0x0001d132, 1, { 0x0001d132 } }, { 0x0001d133, 1, { 0x0001d133 } }, { 0x0001d134, 1, { 0x0001d134 } }, { 0x0001d135, 1, { 0x0001d135 } }, { 0x0001d136, 1, { 0x0001d136 } }, { 0x0001d137, 1, { 0x0001d137 } }, { 0x0001d138, 1, { 0x0001d138 } }, { 0x0001d139, 1, { 0x0001d139 } }, { 0x0001d13a, 1, { 0x0001d13a } }, { 0x0001d13b, 1, { 0x0001d13b } }, { 0x0001d13c, 1, { 0x0001d13c } }, { 0x0001d13d, 1, { 0x0001d13d } }, { 0x0001d13e, 1, { 0x0001d13e } }, { 0x0001d13f, 1, { 0x0001d13f } }, { 0x0001d140, 1, { 0x0001d140 } }, { 0x0001d141, 1, { 0x0001d141 } }, { 0x0001d142, 1, { 0x0001d142 } }, { 0x0001d143, 1, { 0x0001d143 } }, { 0x0001d144, 1, { 0x0001d144 } }, { 0x0001d145, 1, { 0x0001d145 } }, { 0x0001d146, 1, { 0x0001d146 } }, { 0x0001d147, 1, { 0x0001d147 } }, { 0x0001d148, 1, { 0x0001d148 } }, { 0x0001d149, 1, { 0x0001d149 } }, { 0x0001d14a, 1, { 0x0001d14a } }, { 0x0001d14b, 1, { 0x0001d14b } }, { 0x0001d14c, 1, { 0x0001d14c } }, { 0x0001d14d, 1, { 0x0001d14d } }, { 0x0001d14e, 1, { 0x0001d14e } }, { 0x0001d14f, 1, { 0x0001d14f } }, { 0x0001d150, 1, { 0x0001d150 } }, { 0x0001d151, 1, { 0x0001d151 } }, { 0x0001d152, 1, { 0x0001d152 } }, { 0x0001d153, 1, { 0x0001d153 } }, { 0x0001d154, 1, { 0x0001d154 } }, { 0x0001d155, 1, { 0x0001d155 } }, { 0x0001d156, 1, { 0x0001d156 } }, { 0x0001d157, 1, { 0x0001d157 } }, { 0x0001d158, 1, { 0x0001d158 } }, { 0x0001d159, 1, { 0x0001d159 } }, { 0x0001d15a, 1, { 0x0001d15a } }, { 0x0001d15b, 1, { 0x0001d15b } }, { 0x0001d15c, 1, { 0x0001d15c } }, { 0x0001d15d, 1, { 0x0001d15d } }, { 0x0001d15e, 2, { 0x0001d157, 0x0001d165 } }, { 0x0001d15f, 2, { 0x0001d158, 0x0001d165 } }, { 0x0001d160, 3, { 0x0001d158, 0x0001d165, 0x0001d16e } }, { 0x0001d161, 3, { 0x0001d158, 0x0001d165, 0x0001d16f } }, { 0x0001d162, 3, { 0x0001d158, 0x0001d165, 0x0001d170 } }, { 0x0001d163, 3, { 0x0001d158, 0x0001d165, 0x0001d171 } }, { 0x0001d164, 3, { 0x0001d158, 0x0001d165, 0x0001d172 } }, { 0x0001d165, 1, { 0x0001d165 } }, { 0x0001d166, 1, { 0x0001d166 } }, { 0x0001d167, 1, { 0x0001d167 } }, { 0x0001d168, 1, { 0x0001d168 } }, { 0x0001d169, 1, { 0x0001d169 } }, { 0x0001d16a, 1, { 0x0001d16a } }, { 0x0001d16b, 1, { 0x0001d16b } }, { 0x0001d16c, 1, { 0x0001d16c } }, { 0x0001d16d, 1, { 0x0001d16d } }, { 0x0001d16e, 1, { 0x0001d16e } }, { 0x0001d16f, 1, { 0x0001d16f } }, { 0x0001d170, 1, { 0x0001d170 } }, { 0x0001d171, 1, { 0x0001d171 } }, { 0x0001d172, 1, { 0x0001d172 } }, { 0x0001d173, 1, { 0x0001d173 } }, { 0x0001d174, 1, { 0x0001d174 } }, { 0x0001d175, 1, { 0x0001d175 } }, { 0x0001d176, 1, { 0x0001d176 } }, { 0x0001d177, 1, { 0x0001d177 } }, { 0x0001d178, 1, { 0x0001d178 } }, { 0x0001d179, 1, { 0x0001d179 } }, { 0x0001d17a, 1, { 0x0001d17a } }, { 0x0001d17b, 1, { 0x0001d17b } }, { 0x0001d17c, 1, { 0x0001d17c } }, { 0x0001d17d, 1, { 0x0001d17d } }, { 0x0001d17e, 1, { 0x0001d17e } }, { 0x0001d17f, 1, { 0x0001d17f } }, { 0x0001d180, 1, { 0x0001d180 } }, { 0x0001d181, 1, { 0x0001d181 } }, { 0x0001d182, 1, { 0x0001d182 } }, { 0x0001d183, 1, { 0x0001d183 } }, { 0x0001d184, 1, { 0x0001d184 } }, { 0x0001d185, 1, { 0x0001d185 } }, { 0x0001d186, 1, { 0x0001d186 } }, { 0x0001d187, 1, { 0x0001d187 } }, { 0x0001d188, 1, { 0x0001d188 } }, { 0x0001d189, 1, { 0x0001d189 } }, { 0x0001d18a, 1, { 0x0001d18a } }, { 0x0001d18b, 1, { 0x0001d18b } }, { 0x0001d18c, 1, { 0x0001d18c } }, { 0x0001d18d, 1, { 0x0001d18d } }, { 0x0001d18e, 1, { 0x0001d18e } }, { 0x0001d18f, 1, { 0x0001d18f } }, { 0x0001d190, 1, { 0x0001d190 } }, { 0x0001d191, 1, { 0x0001d191 } }, { 0x0001d192, 1, { 0x0001d192 } }, { 0x0001d193, 1, { 0x0001d193 } }, { 0x0001d194, 1, { 0x0001d194 } }, { 0x0001d195, 1, { 0x0001d195 } }, { 0x0001d196, 1, { 0x0001d196 } }, { 0x0001d197, 1, { 0x0001d197 } }, { 0x0001d198, 1, { 0x0001d198 } }, { 0x0001d199, 1, { 0x0001d199 } }, { 0x0001d19a, 1, { 0x0001d19a } }, { 0x0001d19b, 1, { 0x0001d19b } }, { 0x0001d19c, 1, { 0x0001d19c } }, { 0x0001d19d, 1, { 0x0001d19d } }, { 0x0001d19e, 1, { 0x0001d19e } }, { 0x0001d19f, 1, { 0x0001d19f } }, { 0x0001d1a0, 1, { 0x0001d1a0 } }, { 0x0001d1a1, 1, { 0x0001d1a1 } }, { 0x0001d1a2, 1, { 0x0001d1a2 } }, { 0x0001d1a3, 1, { 0x0001d1a3 } }, { 0x0001d1a4, 1, { 0x0001d1a4 } }, { 0x0001d1a5, 1, { 0x0001d1a5 } }, { 0x0001d1a6, 1, { 0x0001d1a6 } }, { 0x0001d1a7, 1, { 0x0001d1a7 } }, { 0x0001d1a8, 1, { 0x0001d1a8 } }, { 0x0001d1a9, 1, { 0x0001d1a9 } }, { 0x0001d1aa, 1, { 0x0001d1aa } }, { 0x0001d1ab, 1, { 0x0001d1ab } }, { 0x0001d1ac, 1, { 0x0001d1ac } }, { 0x0001d1ad, 1, { 0x0001d1ad } }, { 0x0001d1ae, 1, { 0x0001d1ae } }, { 0x0001d1af, 1, { 0x0001d1af } }, { 0x0001d1b0, 1, { 0x0001d1b0 } }, { 0x0001d1b1, 1, { 0x0001d1b1 } }, { 0x0001d1b2, 1, { 0x0001d1b2 } }, { 0x0001d1b3, 1, { 0x0001d1b3 } }, { 0x0001d1b4, 1, { 0x0001d1b4 } }, { 0x0001d1b5, 1, { 0x0001d1b5 } }, { 0x0001d1b6, 1, { 0x0001d1b6 } }, { 0x0001d1b7, 1, { 0x0001d1b7 } }, { 0x0001d1b8, 1, { 0x0001d1b8 } }, { 0x0001d1b9, 1, { 0x0001d1b9 } }, { 0x0001d1ba, 1, { 0x0001d1ba } }, { 0x0001d1bb, 2, { 0x0001d1b9, 0x0001d165 } }, { 0x0001d1bc, 2, { 0x0001d1ba, 0x0001d165 } }, { 0x0001d1bd, 3, { 0x0001d1b9, 0x0001d165, 0x0001d16e } }, { 0x0001d1be, 3, { 0x0001d1ba, 0x0001d165, 0x0001d16e } }, { 0x0001d1bf, 3, { 0x0001d1b9, 0x0001d165, 0x0001d16f } }, { 0x0001d1c0, 3, { 0x0001d1ba, 0x0001d165, 0x0001d16f } }, { 0x0001d1c1, 1, { 0x0001d1c1 } }, { 0x0001d1c2, 1, { 0x0001d1c2 } }, { 0x0001d1c3, 1, { 0x0001d1c3 } }, { 0x0001d1c4, 1, { 0x0001d1c4 } }, { 0x0001d1c5, 1, { 0x0001d1c5 } }, { 0x0001d1c6, 1, { 0x0001d1c6 } }, { 0x0001d1c7, 1, { 0x0001d1c7 } }, { 0x0001d1c8, 1, { 0x0001d1c8 } }, { 0x0001d1c9, 1, { 0x0001d1c9 } }, { 0x0001d1ca, 1, { 0x0001d1ca } }, { 0x0001d1cb, 1, { 0x0001d1cb } }, { 0x0001d1cc, 1, { 0x0001d1cc } }, { 0x0001d1cd, 1, { 0x0001d1cd } }, { 0x0001d1ce, 1, { 0x0001d1ce } }, { 0x0001d1cf, 1, { 0x0001d1cf } }, { 0x0001d1d0, 1, { 0x0001d1d0 } }, { 0x0001d1d1, 1, { 0x0001d1d1 } }, { 0x0001d1d2, 1, { 0x0001d1d2 } }, { 0x0001d1d3, 1, { 0x0001d1d3 } }, { 0x0001d1d4, 1, { 0x0001d1d4 } }, { 0x0001d1d5, 1, { 0x0001d1d5 } }, { 0x0001d1d6, 1, { 0x0001d1d6 } }, { 0x0001d1d7, 1, { 0x0001d1d7 } }, { 0x0001d1d8, 1, { 0x0001d1d8 } }, { 0x0001d1d9, 1, { 0x0001d1d9 } }, { 0x0001d1da, 1, { 0x0001d1da } }, { 0x0001d1db, 1, { 0x0001d1db } }, { 0x0001d1dc, 1, { 0x0001d1dc } }, { 0x0001d1dd, 1, { 0x0001d1dd } }, { 0x0001d1de, 1, { 0x0001d1de } }, { 0x0001d1df, 1, { 0x0001d1df } }, { 0x0001d1e0, 1, { 0x0001d1e0 } }, { 0x0001d1e1, 1, { 0x0001d1e1 } }, { 0x0001d1e2, 1, { 0x0001d1e2 } }, { 0x0001d1e3, 1, { 0x0001d1e3 } }, { 0x0001d1e4, 1, { 0x0001d1e4 } }, { 0x0001d1e5, 1, { 0x0001d1e5 } }, { 0x0001d1e6, 1, { 0x0001d1e6 } }, { 0x0001d1e7, 1, { 0x0001d1e7 } }, { 0x0001d1e8, 1, { 0x0001d1e8 } }, { 0x0001d200, 1, { 0x0001d200 } }, { 0x0001d201, 1, { 0x0001d201 } }, { 0x0001d202, 1, { 0x0001d202 } }, { 0x0001d203, 1, { 0x0001d203 } }, { 0x0001d204, 1, { 0x0001d204 } }, { 0x0001d205, 1, { 0x0001d205 } }, { 0x0001d206, 1, { 0x0001d206 } }, { 0x0001d207, 1, { 0x0001d207 } }, { 0x0001d208, 1, { 0x0001d208 } }, { 0x0001d209, 1, { 0x0001d209 } }, { 0x0001d20a, 1, { 0x0001d20a } }, { 0x0001d20b, 1, { 0x0001d20b } }, { 0x0001d20c, 1, { 0x0001d20c } }, { 0x0001d20d, 1, { 0x0001d20d } }, { 0x0001d20e, 1, { 0x0001d20e } }, { 0x0001d20f, 1, { 0x0001d20f } }, { 0x0001d210, 1, { 0x0001d210 } }, { 0x0001d211, 1, { 0x0001d211 } }, { 0x0001d212, 1, { 0x0001d212 } }, { 0x0001d213, 1, { 0x0001d213 } }, { 0x0001d214, 1, { 0x0001d214 } }, { 0x0001d215, 1, { 0x0001d215 } }, { 0x0001d216, 1, { 0x0001d216 } }, { 0x0001d217, 1, { 0x0001d217 } }, { 0x0001d218, 1, { 0x0001d218 } }, { 0x0001d219, 1, { 0x0001d219 } }, { 0x0001d21a, 1, { 0x0001d21a } }, { 0x0001d21b, 1, { 0x0001d21b } }, { 0x0001d21c, 1, { 0x0001d21c } }, { 0x0001d21d, 1, { 0x0001d21d } }, { 0x0001d21e, 1, { 0x0001d21e } }, { 0x0001d21f, 1, { 0x0001d21f } }, { 0x0001d220, 1, { 0x0001d220 } }, { 0x0001d221, 1, { 0x0001d221 } }, { 0x0001d222, 1, { 0x0001d222 } }, { 0x0001d223, 1, { 0x0001d223 } }, { 0x0001d224, 1, { 0x0001d224 } }, { 0x0001d225, 1, { 0x0001d225 } }, { 0x0001d226, 1, { 0x0001d226 } }, { 0x0001d227, 1, { 0x0001d227 } }, { 0x0001d228, 1, { 0x0001d228 } }, { 0x0001d229, 1, { 0x0001d229 } }, { 0x0001d22a, 1, { 0x0001d22a } }, { 0x0001d22b, 1, { 0x0001d22b } }, { 0x0001d22c, 1, { 0x0001d22c } }, { 0x0001d22d, 1, { 0x0001d22d } }, { 0x0001d22e, 1, { 0x0001d22e } }, { 0x0001d22f, 1, { 0x0001d22f } }, { 0x0001d230, 1, { 0x0001d230 } }, { 0x0001d231, 1, { 0x0001d231 } }, { 0x0001d232, 1, { 0x0001d232 } }, { 0x0001d233, 1, { 0x0001d233 } }, { 0x0001d234, 1, { 0x0001d234 } }, { 0x0001d235, 1, { 0x0001d235 } }, { 0x0001d236, 1, { 0x0001d236 } }, { 0x0001d237, 1, { 0x0001d237 } }, { 0x0001d238, 1, { 0x0001d238 } }, { 0x0001d239, 1, { 0x0001d239 } }, { 0x0001d23a, 1, { 0x0001d23a } }, { 0x0001d23b, 1, { 0x0001d23b } }, { 0x0001d23c, 1, { 0x0001d23c } }, { 0x0001d23d, 1, { 0x0001d23d } }, { 0x0001d23e, 1, { 0x0001d23e } }, { 0x0001d23f, 1, { 0x0001d23f } }, { 0x0001d240, 1, { 0x0001d240 } }, { 0x0001d241, 1, { 0x0001d241 } }, { 0x0001d242, 1, { 0x0001d242 } }, { 0x0001d243, 1, { 0x0001d243 } }, { 0x0001d244, 1, { 0x0001d244 } }, { 0x0001d245, 1, { 0x0001d245 } }, { 0x0001d300, 1, { 0x0001d300 } }, { 0x0001d301, 1, { 0x0001d301 } }, { 0x0001d302, 1, { 0x0001d302 } }, { 0x0001d303, 1, { 0x0001d303 } }, { 0x0001d304, 1, { 0x0001d304 } }, { 0x0001d305, 1, { 0x0001d305 } }, { 0x0001d306, 1, { 0x0001d306 } }, { 0x0001d307, 1, { 0x0001d307 } }, { 0x0001d308, 1, { 0x0001d308 } }, { 0x0001d309, 1, { 0x0001d309 } }, { 0x0001d30a, 1, { 0x0001d30a } }, { 0x0001d30b, 1, { 0x0001d30b } }, { 0x0001d30c, 1, { 0x0001d30c } }, { 0x0001d30d, 1, { 0x0001d30d } }, { 0x0001d30e, 1, { 0x0001d30e } }, { 0x0001d30f, 1, { 0x0001d30f } }, { 0x0001d310, 1, { 0x0001d310 } }, { 0x0001d311, 1, { 0x0001d311 } }, { 0x0001d312, 1, { 0x0001d312 } }, { 0x0001d313, 1, { 0x0001d313 } }, { 0x0001d314, 1, { 0x0001d314 } }, { 0x0001d315, 1, { 0x0001d315 } }, { 0x0001d316, 1, { 0x0001d316 } }, { 0x0001d317, 1, { 0x0001d317 } }, { 0x0001d318, 1, { 0x0001d318 } }, { 0x0001d319, 1, { 0x0001d319 } }, { 0x0001d31a, 1, { 0x0001d31a } }, { 0x0001d31b, 1, { 0x0001d31b } }, { 0x0001d31c, 1, { 0x0001d31c } }, { 0x0001d31d, 1, { 0x0001d31d } }, { 0x0001d31e, 1, { 0x0001d31e } }, { 0x0001d31f, 1, { 0x0001d31f } }, { 0x0001d320, 1, { 0x0001d320 } }, { 0x0001d321, 1, { 0x0001d321 } }, { 0x0001d322, 1, { 0x0001d322 } }, { 0x0001d323, 1, { 0x0001d323 } }, { 0x0001d324, 1, { 0x0001d324 } }, { 0x0001d325, 1, { 0x0001d325 } }, { 0x0001d326, 1, { 0x0001d326 } }, { 0x0001d327, 1, { 0x0001d327 } }, { 0x0001d328, 1, { 0x0001d328 } }, { 0x0001d329, 1, { 0x0001d329 } }, { 0x0001d32a, 1, { 0x0001d32a } }, { 0x0001d32b, 1, { 0x0001d32b } }, { 0x0001d32c, 1, { 0x0001d32c } }, { 0x0001d32d, 1, { 0x0001d32d } }, { 0x0001d32e, 1, { 0x0001d32e } }, { 0x0001d32f, 1, { 0x0001d32f } }, { 0x0001d330, 1, { 0x0001d330 } }, { 0x0001d331, 1, { 0x0001d331 } }, { 0x0001d332, 1, { 0x0001d332 } }, { 0x0001d333, 1, { 0x0001d333 } }, { 0x0001d334, 1, { 0x0001d334 } }, { 0x0001d335, 1, { 0x0001d335 } }, { 0x0001d336, 1, { 0x0001d336 } }, { 0x0001d337, 1, { 0x0001d337 } }, { 0x0001d338, 1, { 0x0001d338 } }, { 0x0001d339, 1, { 0x0001d339 } }, { 0x0001d33a, 1, { 0x0001d33a } }, { 0x0001d33b, 1, { 0x0001d33b } }, { 0x0001d33c, 1, { 0x0001d33c } }, { 0x0001d33d, 1, { 0x0001d33d } }, { 0x0001d33e, 1, { 0x0001d33e } }, { 0x0001d33f, 1, { 0x0001d33f } }, { 0x0001d340, 1, { 0x0001d340 } }, { 0x0001d341, 1, { 0x0001d341 } }, { 0x0001d342, 1, { 0x0001d342 } }, { 0x0001d343, 1, { 0x0001d343 } }, { 0x0001d344, 1, { 0x0001d344 } }, { 0x0001d345, 1, { 0x0001d345 } }, { 0x0001d346, 1, { 0x0001d346 } }, { 0x0001d347, 1, { 0x0001d347 } }, { 0x0001d348, 1, { 0x0001d348 } }, { 0x0001d349, 1, { 0x0001d349 } }, { 0x0001d34a, 1, { 0x0001d34a } }, { 0x0001d34b, 1, { 0x0001d34b } }, { 0x0001d34c, 1, { 0x0001d34c } }, { 0x0001d34d, 1, { 0x0001d34d } }, { 0x0001d34e, 1, { 0x0001d34e } }, { 0x0001d34f, 1, { 0x0001d34f } }, { 0x0001d350, 1, { 0x0001d350 } }, { 0x0001d351, 1, { 0x0001d351 } }, { 0x0001d352, 1, { 0x0001d352 } }, { 0x0001d353, 1, { 0x0001d353 } }, { 0x0001d354, 1, { 0x0001d354 } }, { 0x0001d355, 1, { 0x0001d355 } }, { 0x0001d356, 1, { 0x0001d356 } }, { 0x0001d360, 1, { 0x0001d360 } }, { 0x0001d361, 1, { 0x0001d361 } }, { 0x0001d362, 1, { 0x0001d362 } }, { 0x0001d363, 1, { 0x0001d363 } }, { 0x0001d364, 1, { 0x0001d364 } }, { 0x0001d365, 1, { 0x0001d365 } }, { 0x0001d366, 1, { 0x0001d366 } }, { 0x0001d367, 1, { 0x0001d367 } }, { 0x0001d368, 1, { 0x0001d368 } }, { 0x0001d369, 1, { 0x0001d369 } }, { 0x0001d36a, 1, { 0x0001d36a } }, { 0x0001d36b, 1, { 0x0001d36b } }, { 0x0001d36c, 1, { 0x0001d36c } }, { 0x0001d36d, 1, { 0x0001d36d } }, { 0x0001d36e, 1, { 0x0001d36e } }, { 0x0001d36f, 1, { 0x0001d36f } }, { 0x0001d370, 1, { 0x0001d370 } }, { 0x0001d371, 1, { 0x0001d371 } }, { 0x0001d400, 1, { 0x0001d400 } }, { 0x0001d401, 1, { 0x0001d401 } }, { 0x0001d402, 1, { 0x0001d402 } }, { 0x0001d403, 1, { 0x0001d403 } }, { 0x0001d404, 1, { 0x0001d404 } }, { 0x0001d405, 1, { 0x0001d405 } }, { 0x0001d406, 1, { 0x0001d406 } }, { 0x0001d407, 1, { 0x0001d407 } }, { 0x0001d408, 1, { 0x0001d408 } }, { 0x0001d409, 1, { 0x0001d409 } }, { 0x0001d40a, 1, { 0x0001d40a } }, { 0x0001d40b, 1, { 0x0001d40b } }, { 0x0001d40c, 1, { 0x0001d40c } }, { 0x0001d40d, 1, { 0x0001d40d } }, { 0x0001d40e, 1, { 0x0001d40e } }, { 0x0001d40f, 1, { 0x0001d40f } }, { 0x0001d410, 1, { 0x0001d410 } }, { 0x0001d411, 1, { 0x0001d411 } }, { 0x0001d412, 1, { 0x0001d412 } }, { 0x0001d413, 1, { 0x0001d413 } }, { 0x0001d414, 1, { 0x0001d414 } }, { 0x0001d415, 1, { 0x0001d415 } }, { 0x0001d416, 1, { 0x0001d416 } }, { 0x0001d417, 1, { 0x0001d417 } }, { 0x0001d418, 1, { 0x0001d418 } }, { 0x0001d419, 1, { 0x0001d419 } }, { 0x0001d41a, 1, { 0x0001d41a } }, { 0x0001d41b, 1, { 0x0001d41b } }, { 0x0001d41c, 1, { 0x0001d41c } }, { 0x0001d41d, 1, { 0x0001d41d } }, { 0x0001d41e, 1, { 0x0001d41e } }, { 0x0001d41f, 1, { 0x0001d41f } }, { 0x0001d420, 1, { 0x0001d420 } }, { 0x0001d421, 1, { 0x0001d421 } }, { 0x0001d422, 1, { 0x0001d422 } }, { 0x0001d423, 1, { 0x0001d423 } }, { 0x0001d424, 1, { 0x0001d424 } }, { 0x0001d425, 1, { 0x0001d425 } }, { 0x0001d426, 1, { 0x0001d426 } }, { 0x0001d427, 1, { 0x0001d427 } }, { 0x0001d428, 1, { 0x0001d428 } }, { 0x0001d429, 1, { 0x0001d429 } }, { 0x0001d42a, 1, { 0x0001d42a } }, { 0x0001d42b, 1, { 0x0001d42b } }, { 0x0001d42c, 1, { 0x0001d42c } }, { 0x0001d42d, 1, { 0x0001d42d } }, { 0x0001d42e, 1, { 0x0001d42e } }, { 0x0001d42f, 1, { 0x0001d42f } }, { 0x0001d430, 1, { 0x0001d430 } }, { 0x0001d431, 1, { 0x0001d431 } }, { 0x0001d432, 1, { 0x0001d432 } }, { 0x0001d433, 1, { 0x0001d433 } }, { 0x0001d434, 1, { 0x0001d434 } }, { 0x0001d435, 1, { 0x0001d435 } }, { 0x0001d436, 1, { 0x0001d436 } }, { 0x0001d437, 1, { 0x0001d437 } }, { 0x0001d438, 1, { 0x0001d438 } }, { 0x0001d439, 1, { 0x0001d439 } }, { 0x0001d43a, 1, { 0x0001d43a } }, { 0x0001d43b, 1, { 0x0001d43b } }, { 0x0001d43c, 1, { 0x0001d43c } }, { 0x0001d43d, 1, { 0x0001d43d } }, { 0x0001d43e, 1, { 0x0001d43e } }, { 0x0001d43f, 1, { 0x0001d43f } }, { 0x0001d440, 1, { 0x0001d440 } }, { 0x0001d441, 1, { 0x0001d441 } }, { 0x0001d442, 1, { 0x0001d442 } }, { 0x0001d443, 1, { 0x0001d443 } }, { 0x0001d444, 1, { 0x0001d444 } }, { 0x0001d445, 1, { 0x0001d445 } }, { 0x0001d446, 1, { 0x0001d446 } }, { 0x0001d447, 1, { 0x0001d447 } }, { 0x0001d448, 1, { 0x0001d448 } }, { 0x0001d449, 1, { 0x0001d449 } }, { 0x0001d44a, 1, { 0x0001d44a } }, { 0x0001d44b, 1, { 0x0001d44b } }, { 0x0001d44c, 1, { 0x0001d44c } }, { 0x0001d44d, 1, { 0x0001d44d } }, { 0x0001d44e, 1, { 0x0001d44e } }, { 0x0001d44f, 1, { 0x0001d44f } }, { 0x0001d450, 1, { 0x0001d450 } }, { 0x0001d451, 1, { 0x0001d451 } }, { 0x0001d452, 1, { 0x0001d452 } }, { 0x0001d453, 1, { 0x0001d453 } }, { 0x0001d454, 1, { 0x0001d454 } }, { 0x0001d456, 1, { 0x0001d456 } }, { 0x0001d457, 1, { 0x0001d457 } }, { 0x0001d458, 1, { 0x0001d458 } }, { 0x0001d459, 1, { 0x0001d459 } }, { 0x0001d45a, 1, { 0x0001d45a } }, { 0x0001d45b, 1, { 0x0001d45b } }, { 0x0001d45c, 1, { 0x0001d45c } }, { 0x0001d45d, 1, { 0x0001d45d } }, { 0x0001d45e, 1, { 0x0001d45e } }, { 0x0001d45f, 1, { 0x0001d45f } }, { 0x0001d460, 1, { 0x0001d460 } }, { 0x0001d461, 1, { 0x0001d461 } }, { 0x0001d462, 1, { 0x0001d462 } }, { 0x0001d463, 1, { 0x0001d463 } }, { 0x0001d464, 1, { 0x0001d464 } }, { 0x0001d465, 1, { 0x0001d465 } }, { 0x0001d466, 1, { 0x0001d466 } }, { 0x0001d467, 1, { 0x0001d467 } }, { 0x0001d468, 1, { 0x0001d468 } }, { 0x0001d469, 1, { 0x0001d469 } }, { 0x0001d46a, 1, { 0x0001d46a } }, { 0x0001d46b, 1, { 0x0001d46b } }, { 0x0001d46c, 1, { 0x0001d46c } }, { 0x0001d46d, 1, { 0x0001d46d } }, { 0x0001d46e, 1, { 0x0001d46e } }, { 0x0001d46f, 1, { 0x0001d46f } }, { 0x0001d470, 1, { 0x0001d470 } }, { 0x0001d471, 1, { 0x0001d471 } }, { 0x0001d472, 1, { 0x0001d472 } }, { 0x0001d473, 1, { 0x0001d473 } }, { 0x0001d474, 1, { 0x0001d474 } }, { 0x0001d475, 1, { 0x0001d475 } }, { 0x0001d476, 1, { 0x0001d476 } }, { 0x0001d477, 1, { 0x0001d477 } }, { 0x0001d478, 1, { 0x0001d478 } }, { 0x0001d479, 1, { 0x0001d479 } }, { 0x0001d47a, 1, { 0x0001d47a } }, { 0x0001d47b, 1, { 0x0001d47b } }, { 0x0001d47c, 1, { 0x0001d47c } }, { 0x0001d47d, 1, { 0x0001d47d } }, { 0x0001d47e, 1, { 0x0001d47e } }, { 0x0001d47f, 1, { 0x0001d47f } }, { 0x0001d480, 1, { 0x0001d480 } }, { 0x0001d481, 1, { 0x0001d481 } }, { 0x0001d482, 1, { 0x0001d482 } }, { 0x0001d483, 1, { 0x0001d483 } }, { 0x0001d484, 1, { 0x0001d484 } }, { 0x0001d485, 1, { 0x0001d485 } }, { 0x0001d486, 1, { 0x0001d486 } }, { 0x0001d487, 1, { 0x0001d487 } }, { 0x0001d488, 1, { 0x0001d488 } }, { 0x0001d489, 1, { 0x0001d489 } }, { 0x0001d48a, 1, { 0x0001d48a } }, { 0x0001d48b, 1, { 0x0001d48b } }, { 0x0001d48c, 1, { 0x0001d48c } }, { 0x0001d48d, 1, { 0x0001d48d } }, { 0x0001d48e, 1, { 0x0001d48e } }, { 0x0001d48f, 1, { 0x0001d48f } }, { 0x0001d490, 1, { 0x0001d490 } }, { 0x0001d491, 1, { 0x0001d491 } }, { 0x0001d492, 1, { 0x0001d492 } }, { 0x0001d493, 1, { 0x0001d493 } }, { 0x0001d494, 1, { 0x0001d494 } }, { 0x0001d495, 1, { 0x0001d495 } }, { 0x0001d496, 1, { 0x0001d496 } }, { 0x0001d497, 1, { 0x0001d497 } }, { 0x0001d498, 1, { 0x0001d498 } }, { 0x0001d499, 1, { 0x0001d499 } }, { 0x0001d49a, 1, { 0x0001d49a } }, { 0x0001d49b, 1, { 0x0001d49b } }, { 0x0001d49c, 1, { 0x0001d49c } }, { 0x0001d49e, 1, { 0x0001d49e } }, { 0x0001d49f, 1, { 0x0001d49f } }, { 0x0001d4a2, 1, { 0x0001d4a2 } }, { 0x0001d4a5, 1, { 0x0001d4a5 } }, { 0x0001d4a6, 1, { 0x0001d4a6 } }, { 0x0001d4a9, 1, { 0x0001d4a9 } }, { 0x0001d4aa, 1, { 0x0001d4aa } }, { 0x0001d4ab, 1, { 0x0001d4ab } }, { 0x0001d4ac, 1, { 0x0001d4ac } }, { 0x0001d4ae, 1, { 0x0001d4ae } }, { 0x0001d4af, 1, { 0x0001d4af } }, { 0x0001d4b0, 1, { 0x0001d4b0 } }, { 0x0001d4b1, 1, { 0x0001d4b1 } }, { 0x0001d4b2, 1, { 0x0001d4b2 } }, { 0x0001d4b3, 1, { 0x0001d4b3 } }, { 0x0001d4b4, 1, { 0x0001d4b4 } }, { 0x0001d4b5, 1, { 0x0001d4b5 } }, { 0x0001d4b6, 1, { 0x0001d4b6 } }, { 0x0001d4b7, 1, { 0x0001d4b7 } }, { 0x0001d4b8, 1, { 0x0001d4b8 } }, { 0x0001d4b9, 1, { 0x0001d4b9 } }, { 0x0001d4bb, 1, { 0x0001d4bb } }, { 0x0001d4bd, 1, { 0x0001d4bd } }, { 0x0001d4be, 1, { 0x0001d4be } }, { 0x0001d4bf, 1, { 0x0001d4bf } }, { 0x0001d4c0, 1, { 0x0001d4c0 } }, { 0x0001d4c1, 1, { 0x0001d4c1 } }, { 0x0001d4c2, 1, { 0x0001d4c2 } }, { 0x0001d4c3, 1, { 0x0001d4c3 } }, { 0x0001d4c5, 1, { 0x0001d4c5 } }, { 0x0001d4c6, 1, { 0x0001d4c6 } }, { 0x0001d4c7, 1, { 0x0001d4c7 } }, { 0x0001d4c8, 1, { 0x0001d4c8 } }, { 0x0001d4c9, 1, { 0x0001d4c9 } }, { 0x0001d4ca, 1, { 0x0001d4ca } }, { 0x0001d4cb, 1, { 0x0001d4cb } }, { 0x0001d4cc, 1, { 0x0001d4cc } }, { 0x0001d4cd, 1, { 0x0001d4cd } }, { 0x0001d4ce, 1, { 0x0001d4ce } }, { 0x0001d4cf, 1, { 0x0001d4cf } }, { 0x0001d4d0, 1, { 0x0001d4d0 } }, { 0x0001d4d1, 1, { 0x0001d4d1 } }, { 0x0001d4d2, 1, { 0x0001d4d2 } }, { 0x0001d4d3, 1, { 0x0001d4d3 } }, { 0x0001d4d4, 1, { 0x0001d4d4 } }, { 0x0001d4d5, 1, { 0x0001d4d5 } }, { 0x0001d4d6, 1, { 0x0001d4d6 } }, { 0x0001d4d7, 1, { 0x0001d4d7 } }, { 0x0001d4d8, 1, { 0x0001d4d8 } }, { 0x0001d4d9, 1, { 0x0001d4d9 } }, { 0x0001d4da, 1, { 0x0001d4da } }, { 0x0001d4db, 1, { 0x0001d4db } }, { 0x0001d4dc, 1, { 0x0001d4dc } }, { 0x0001d4dd, 1, { 0x0001d4dd } }, { 0x0001d4de, 1, { 0x0001d4de } }, { 0x0001d4df, 1, { 0x0001d4df } }, { 0x0001d4e0, 1, { 0x0001d4e0 } }, { 0x0001d4e1, 1, { 0x0001d4e1 } }, { 0x0001d4e2, 1, { 0x0001d4e2 } }, { 0x0001d4e3, 1, { 0x0001d4e3 } }, { 0x0001d4e4, 1, { 0x0001d4e4 } }, { 0x0001d4e5, 1, { 0x0001d4e5 } }, { 0x0001d4e6, 1, { 0x0001d4e6 } }, { 0x0001d4e7, 1, { 0x0001d4e7 } }, { 0x0001d4e8, 1, { 0x0001d4e8 } }, { 0x0001d4e9, 1, { 0x0001d4e9 } }, { 0x0001d4ea, 1, { 0x0001d4ea } }, { 0x0001d4eb, 1, { 0x0001d4eb } }, { 0x0001d4ec, 1, { 0x0001d4ec } }, { 0x0001d4ed, 1, { 0x0001d4ed } }, { 0x0001d4ee, 1, { 0x0001d4ee } }, { 0x0001d4ef, 1, { 0x0001d4ef } }, { 0x0001d4f0, 1, { 0x0001d4f0 } }, { 0x0001d4f1, 1, { 0x0001d4f1 } }, { 0x0001d4f2, 1, { 0x0001d4f2 } }, { 0x0001d4f3, 1, { 0x0001d4f3 } }, { 0x0001d4f4, 1, { 0x0001d4f4 } }, { 0x0001d4f5, 1, { 0x0001d4f5 } }, { 0x0001d4f6, 1, { 0x0001d4f6 } }, { 0x0001d4f7, 1, { 0x0001d4f7 } }, { 0x0001d4f8, 1, { 0x0001d4f8 } }, { 0x0001d4f9, 1, { 0x0001d4f9 } }, { 0x0001d4fa, 1, { 0x0001d4fa } }, { 0x0001d4fb, 1, { 0x0001d4fb } }, { 0x0001d4fc, 1, { 0x0001d4fc } }, { 0x0001d4fd, 1, { 0x0001d4fd } }, { 0x0001d4fe, 1, { 0x0001d4fe } }, { 0x0001d4ff, 1, { 0x0001d4ff } }, { 0x0001d500, 1, { 0x0001d500 } }, { 0x0001d501, 1, { 0x0001d501 } }, { 0x0001d502, 1, { 0x0001d502 } }, { 0x0001d503, 1, { 0x0001d503 } }, { 0x0001d504, 1, { 0x0001d504 } }, { 0x0001d505, 1, { 0x0001d505 } }, { 0x0001d507, 1, { 0x0001d507 } }, { 0x0001d508, 1, { 0x0001d508 } }, { 0x0001d509, 1, { 0x0001d509 } }, { 0x0001d50a, 1, { 0x0001d50a } }, { 0x0001d50d, 1, { 0x0001d50d } }, { 0x0001d50e, 1, { 0x0001d50e } }, { 0x0001d50f, 1, { 0x0001d50f } }, { 0x0001d510, 1, { 0x0001d510 } }, { 0x0001d511, 1, { 0x0001d511 } }, { 0x0001d512, 1, { 0x0001d512 } }, { 0x0001d513, 1, { 0x0001d513 } }, { 0x0001d514, 1, { 0x0001d514 } }, { 0x0001d516, 1, { 0x0001d516 } }, { 0x0001d517, 1, { 0x0001d517 } }, { 0x0001d518, 1, { 0x0001d518 } }, { 0x0001d519, 1, { 0x0001d519 } }, { 0x0001d51a, 1, { 0x0001d51a } }, { 0x0001d51b, 1, { 0x0001d51b } }, { 0x0001d51c, 1, { 0x0001d51c } }, { 0x0001d51e, 1, { 0x0001d51e } }, { 0x0001d51f, 1, { 0x0001d51f } }, { 0x0001d520, 1, { 0x0001d520 } }, { 0x0001d521, 1, { 0x0001d521 } }, { 0x0001d522, 1, { 0x0001d522 } }, { 0x0001d523, 1, { 0x0001d523 } }, { 0x0001d524, 1, { 0x0001d524 } }, { 0x0001d525, 1, { 0x0001d525 } }, { 0x0001d526, 1, { 0x0001d526 } }, { 0x0001d527, 1, { 0x0001d527 } }, { 0x0001d528, 1, { 0x0001d528 } }, { 0x0001d529, 1, { 0x0001d529 } }, { 0x0001d52a, 1, { 0x0001d52a } }, { 0x0001d52b, 1, { 0x0001d52b } }, { 0x0001d52c, 1, { 0x0001d52c } }, { 0x0001d52d, 1, { 0x0001d52d } }, { 0x0001d52e, 1, { 0x0001d52e } }, { 0x0001d52f, 1, { 0x0001d52f } }, { 0x0001d530, 1, { 0x0001d530 } }, { 0x0001d531, 1, { 0x0001d531 } }, { 0x0001d532, 1, { 0x0001d532 } }, { 0x0001d533, 1, { 0x0001d533 } }, { 0x0001d534, 1, { 0x0001d534 } }, { 0x0001d535, 1, { 0x0001d535 } }, { 0x0001d536, 1, { 0x0001d536 } }, { 0x0001d537, 1, { 0x0001d537 } }, { 0x0001d538, 1, { 0x0001d538 } }, { 0x0001d539, 1, { 0x0001d539 } }, { 0x0001d53b, 1, { 0x0001d53b } }, { 0x0001d53c, 1, { 0x0001d53c } }, { 0x0001d53d, 1, { 0x0001d53d } }, { 0x0001d53e, 1, { 0x0001d53e } }, { 0x0001d540, 1, { 0x0001d540 } }, { 0x0001d541, 1, { 0x0001d541 } }, { 0x0001d542, 1, { 0x0001d542 } }, { 0x0001d543, 1, { 0x0001d543 } }, { 0x0001d544, 1, { 0x0001d544 } }, { 0x0001d546, 1, { 0x0001d546 } }, { 0x0001d54a, 1, { 0x0001d54a } }, { 0x0001d54b, 1, { 0x0001d54b } }, { 0x0001d54c, 1, { 0x0001d54c } }, { 0x0001d54d, 1, { 0x0001d54d } }, { 0x0001d54e, 1, { 0x0001d54e } }, { 0x0001d54f, 1, { 0x0001d54f } }, { 0x0001d550, 1, { 0x0001d550 } }, { 0x0001d552, 1, { 0x0001d552 } }, { 0x0001d553, 1, { 0x0001d553 } }, { 0x0001d554, 1, { 0x0001d554 } }, { 0x0001d555, 1, { 0x0001d555 } }, { 0x0001d556, 1, { 0x0001d556 } }, { 0x0001d557, 1, { 0x0001d557 } }, { 0x0001d558, 1, { 0x0001d558 } }, { 0x0001d559, 1, { 0x0001d559 } }, { 0x0001d55a, 1, { 0x0001d55a } }, { 0x0001d55b, 1, { 0x0001d55b } }, { 0x0001d55c, 1, { 0x0001d55c } }, { 0x0001d55d, 1, { 0x0001d55d } }, { 0x0001d55e, 1, { 0x0001d55e } }, { 0x0001d55f, 1, { 0x0001d55f } }, { 0x0001d560, 1, { 0x0001d560 } }, { 0x0001d561, 1, { 0x0001d561 } }, { 0x0001d562, 1, { 0x0001d562 } }, { 0x0001d563, 1, { 0x0001d563 } }, { 0x0001d564, 1, { 0x0001d564 } }, { 0x0001d565, 1, { 0x0001d565 } }, { 0x0001d566, 1, { 0x0001d566 } }, { 0x0001d567, 1, { 0x0001d567 } }, { 0x0001d568, 1, { 0x0001d568 } }, { 0x0001d569, 1, { 0x0001d569 } }, { 0x0001d56a, 1, { 0x0001d56a } }, { 0x0001d56b, 1, { 0x0001d56b } }, { 0x0001d56c, 1, { 0x0001d56c } }, { 0x0001d56d, 1, { 0x0001d56d } }, { 0x0001d56e, 1, { 0x0001d56e } }, { 0x0001d56f, 1, { 0x0001d56f } }, { 0x0001d570, 1, { 0x0001d570 } }, { 0x0001d571, 1, { 0x0001d571 } }, { 0x0001d572, 1, { 0x0001d572 } }, { 0x0001d573, 1, { 0x0001d573 } }, { 0x0001d574, 1, { 0x0001d574 } }, { 0x0001d575, 1, { 0x0001d575 } }, { 0x0001d576, 1, { 0x0001d576 } }, { 0x0001d577, 1, { 0x0001d577 } }, { 0x0001d578, 1, { 0x0001d578 } }, { 0x0001d579, 1, { 0x0001d579 } }, { 0x0001d57a, 1, { 0x0001d57a } }, { 0x0001d57b, 1, { 0x0001d57b } }, { 0x0001d57c, 1, { 0x0001d57c } }, { 0x0001d57d, 1, { 0x0001d57d } }, { 0x0001d57e, 1, { 0x0001d57e } }, { 0x0001d57f, 1, { 0x0001d57f } }, { 0x0001d580, 1, { 0x0001d580 } }, { 0x0001d581, 1, { 0x0001d581 } }, { 0x0001d582, 1, { 0x0001d582 } }, { 0x0001d583, 1, { 0x0001d583 } }, { 0x0001d584, 1, { 0x0001d584 } }, { 0x0001d585, 1, { 0x0001d585 } }, { 0x0001d586, 1, { 0x0001d586 } }, { 0x0001d587, 1, { 0x0001d587 } }, { 0x0001d588, 1, { 0x0001d588 } }, { 0x0001d589, 1, { 0x0001d589 } }, { 0x0001d58a, 1, { 0x0001d58a } }, { 0x0001d58b, 1, { 0x0001d58b } }, { 0x0001d58c, 1, { 0x0001d58c } }, { 0x0001d58d, 1, { 0x0001d58d } }, { 0x0001d58e, 1, { 0x0001d58e } }, { 0x0001d58f, 1, { 0x0001d58f } }, { 0x0001d590, 1, { 0x0001d590 } }, { 0x0001d591, 1, { 0x0001d591 } }, { 0x0001d592, 1, { 0x0001d592 } }, { 0x0001d593, 1, { 0x0001d593 } }, { 0x0001d594, 1, { 0x0001d594 } }, { 0x0001d595, 1, { 0x0001d595 } }, { 0x0001d596, 1, { 0x0001d596 } }, { 0x0001d597, 1, { 0x0001d597 } }, { 0x0001d598, 1, { 0x0001d598 } }, { 0x0001d599, 1, { 0x0001d599 } }, { 0x0001d59a, 1, { 0x0001d59a } }, { 0x0001d59b, 1, { 0x0001d59b } }, { 0x0001d59c, 1, { 0x0001d59c } }, { 0x0001d59d, 1, { 0x0001d59d } }, { 0x0001d59e, 1, { 0x0001d59e } }, { 0x0001d59f, 1, { 0x0001d59f } }, { 0x0001d5a0, 1, { 0x0001d5a0 } }, { 0x0001d5a1, 1, { 0x0001d5a1 } }, { 0x0001d5a2, 1, { 0x0001d5a2 } }, { 0x0001d5a3, 1, { 0x0001d5a3 } }, { 0x0001d5a4, 1, { 0x0001d5a4 } }, { 0x0001d5a5, 1, { 0x0001d5a5 } }, { 0x0001d5a6, 1, { 0x0001d5a6 } }, { 0x0001d5a7, 1, { 0x0001d5a7 } }, { 0x0001d5a8, 1, { 0x0001d5a8 } }, { 0x0001d5a9, 1, { 0x0001d5a9 } }, { 0x0001d5aa, 1, { 0x0001d5aa } }, { 0x0001d5ab, 1, { 0x0001d5ab } }, { 0x0001d5ac, 1, { 0x0001d5ac } }, { 0x0001d5ad, 1, { 0x0001d5ad } }, { 0x0001d5ae, 1, { 0x0001d5ae } }, { 0x0001d5af, 1, { 0x0001d5af } }, { 0x0001d5b0, 1, { 0x0001d5b0 } }, { 0x0001d5b1, 1, { 0x0001d5b1 } }, { 0x0001d5b2, 1, { 0x0001d5b2 } }, { 0x0001d5b3, 1, { 0x0001d5b3 } }, { 0x0001d5b4, 1, { 0x0001d5b4 } }, { 0x0001d5b5, 1, { 0x0001d5b5 } }, { 0x0001d5b6, 1, { 0x0001d5b6 } }, { 0x0001d5b7, 1, { 0x0001d5b7 } }, { 0x0001d5b8, 1, { 0x0001d5b8 } }, { 0x0001d5b9, 1, { 0x0001d5b9 } }, { 0x0001d5ba, 1, { 0x0001d5ba } }, { 0x0001d5bb, 1, { 0x0001d5bb } }, { 0x0001d5bc, 1, { 0x0001d5bc } }, { 0x0001d5bd, 1, { 0x0001d5bd } }, { 0x0001d5be, 1, { 0x0001d5be } }, { 0x0001d5bf, 1, { 0x0001d5bf } }, { 0x0001d5c0, 1, { 0x0001d5c0 } }, { 0x0001d5c1, 1, { 0x0001d5c1 } }, { 0x0001d5c2, 1, { 0x0001d5c2 } }, { 0x0001d5c3, 1, { 0x0001d5c3 } }, { 0x0001d5c4, 1, { 0x0001d5c4 } }, { 0x0001d5c5, 1, { 0x0001d5c5 } }, { 0x0001d5c6, 1, { 0x0001d5c6 } }, { 0x0001d5c7, 1, { 0x0001d5c7 } }, { 0x0001d5c8, 1, { 0x0001d5c8 } }, { 0x0001d5c9, 1, { 0x0001d5c9 } }, { 0x0001d5ca, 1, { 0x0001d5ca } }, { 0x0001d5cb, 1, { 0x0001d5cb } }, { 0x0001d5cc, 1, { 0x0001d5cc } }, { 0x0001d5cd, 1, { 0x0001d5cd } }, { 0x0001d5ce, 1, { 0x0001d5ce } }, { 0x0001d5cf, 1, { 0x0001d5cf } }, { 0x0001d5d0, 1, { 0x0001d5d0 } }, { 0x0001d5d1, 1, { 0x0001d5d1 } }, { 0x0001d5d2, 1, { 0x0001d5d2 } }, { 0x0001d5d3, 1, { 0x0001d5d3 } }, { 0x0001d5d4, 1, { 0x0001d5d4 } }, { 0x0001d5d5, 1, { 0x0001d5d5 } }, { 0x0001d5d6, 1, { 0x0001d5d6 } }, { 0x0001d5d7, 1, { 0x0001d5d7 } }, { 0x0001d5d8, 1, { 0x0001d5d8 } }, { 0x0001d5d9, 1, { 0x0001d5d9 } }, { 0x0001d5da, 1, { 0x0001d5da } }, { 0x0001d5db, 1, { 0x0001d5db } }, { 0x0001d5dc, 1, { 0x0001d5dc } }, { 0x0001d5dd, 1, { 0x0001d5dd } }, { 0x0001d5de, 1, { 0x0001d5de } }, { 0x0001d5df, 1, { 0x0001d5df } }, { 0x0001d5e0, 1, { 0x0001d5e0 } }, { 0x0001d5e1, 1, { 0x0001d5e1 } }, { 0x0001d5e2, 1, { 0x0001d5e2 } }, { 0x0001d5e3, 1, { 0x0001d5e3 } }, { 0x0001d5e4, 1, { 0x0001d5e4 } }, { 0x0001d5e5, 1, { 0x0001d5e5 } }, { 0x0001d5e6, 1, { 0x0001d5e6 } }, { 0x0001d5e7, 1, { 0x0001d5e7 } }, { 0x0001d5e8, 1, { 0x0001d5e8 } }, { 0x0001d5e9, 1, { 0x0001d5e9 } }, { 0x0001d5ea, 1, { 0x0001d5ea } }, { 0x0001d5eb, 1, { 0x0001d5eb } }, { 0x0001d5ec, 1, { 0x0001d5ec } }, { 0x0001d5ed, 1, { 0x0001d5ed } }, { 0x0001d5ee, 1, { 0x0001d5ee } }, { 0x0001d5ef, 1, { 0x0001d5ef } }, { 0x0001d5f0, 1, { 0x0001d5f0 } }, { 0x0001d5f1, 1, { 0x0001d5f1 } }, { 0x0001d5f2, 1, { 0x0001d5f2 } }, { 0x0001d5f3, 1, { 0x0001d5f3 } }, { 0x0001d5f4, 1, { 0x0001d5f4 } }, { 0x0001d5f5, 1, { 0x0001d5f5 } }, { 0x0001d5f6, 1, { 0x0001d5f6 } }, { 0x0001d5f7, 1, { 0x0001d5f7 } }, { 0x0001d5f8, 1, { 0x0001d5f8 } }, { 0x0001d5f9, 1, { 0x0001d5f9 } }, { 0x0001d5fa, 1, { 0x0001d5fa } }, { 0x0001d5fb, 1, { 0x0001d5fb } }, { 0x0001d5fc, 1, { 0x0001d5fc } }, { 0x0001d5fd, 1, { 0x0001d5fd } }, { 0x0001d5fe, 1, { 0x0001d5fe } }, { 0x0001d5ff, 1, { 0x0001d5ff } }, { 0x0001d600, 1, { 0x0001d600 } }, { 0x0001d601, 1, { 0x0001d601 } }, { 0x0001d602, 1, { 0x0001d602 } }, { 0x0001d603, 1, { 0x0001d603 } }, { 0x0001d604, 1, { 0x0001d604 } }, { 0x0001d605, 1, { 0x0001d605 } }, { 0x0001d606, 1, { 0x0001d606 } }, { 0x0001d607, 1, { 0x0001d607 } }, { 0x0001d608, 1, { 0x0001d608 } }, { 0x0001d609, 1, { 0x0001d609 } }, { 0x0001d60a, 1, { 0x0001d60a } }, { 0x0001d60b, 1, { 0x0001d60b } }, { 0x0001d60c, 1, { 0x0001d60c } }, { 0x0001d60d, 1, { 0x0001d60d } }, { 0x0001d60e, 1, { 0x0001d60e } }, { 0x0001d60f, 1, { 0x0001d60f } }, { 0x0001d610, 1, { 0x0001d610 } }, { 0x0001d611, 1, { 0x0001d611 } }, { 0x0001d612, 1, { 0x0001d612 } }, { 0x0001d613, 1, { 0x0001d613 } }, { 0x0001d614, 1, { 0x0001d614 } }, { 0x0001d615, 1, { 0x0001d615 } }, { 0x0001d616, 1, { 0x0001d616 } }, { 0x0001d617, 1, { 0x0001d617 } }, { 0x0001d618, 1, { 0x0001d618 } }, { 0x0001d619, 1, { 0x0001d619 } }, { 0x0001d61a, 1, { 0x0001d61a } }, { 0x0001d61b, 1, { 0x0001d61b } }, { 0x0001d61c, 1, { 0x0001d61c } }, { 0x0001d61d, 1, { 0x0001d61d } }, { 0x0001d61e, 1, { 0x0001d61e } }, { 0x0001d61f, 1, { 0x0001d61f } }, { 0x0001d620, 1, { 0x0001d620 } }, { 0x0001d621, 1, { 0x0001d621 } }, { 0x0001d622, 1, { 0x0001d622 } }, { 0x0001d623, 1, { 0x0001d623 } }, { 0x0001d624, 1, { 0x0001d624 } }, { 0x0001d625, 1, { 0x0001d625 } }, { 0x0001d626, 1, { 0x0001d626 } }, { 0x0001d627, 1, { 0x0001d627 } }, { 0x0001d628, 1, { 0x0001d628 } }, { 0x0001d629, 1, { 0x0001d629 } }, { 0x0001d62a, 1, { 0x0001d62a } }, { 0x0001d62b, 1, { 0x0001d62b } }, { 0x0001d62c, 1, { 0x0001d62c } }, { 0x0001d62d, 1, { 0x0001d62d } }, { 0x0001d62e, 1, { 0x0001d62e } }, { 0x0001d62f, 1, { 0x0001d62f } }, { 0x0001d630, 1, { 0x0001d630 } }, { 0x0001d631, 1, { 0x0001d631 } }, { 0x0001d632, 1, { 0x0001d632 } }, { 0x0001d633, 1, { 0x0001d633 } }, { 0x0001d634, 1, { 0x0001d634 } }, { 0x0001d635, 1, { 0x0001d635 } }, { 0x0001d636, 1, { 0x0001d636 } }, { 0x0001d637, 1, { 0x0001d637 } }, { 0x0001d638, 1, { 0x0001d638 } }, { 0x0001d639, 1, { 0x0001d639 } }, { 0x0001d63a, 1, { 0x0001d63a } }, { 0x0001d63b, 1, { 0x0001d63b } }, { 0x0001d63c, 1, { 0x0001d63c } }, { 0x0001d63d, 1, { 0x0001d63d } }, { 0x0001d63e, 1, { 0x0001d63e } }, { 0x0001d63f, 1, { 0x0001d63f } }, { 0x0001d640, 1, { 0x0001d640 } }, { 0x0001d641, 1, { 0x0001d641 } }, { 0x0001d642, 1, { 0x0001d642 } }, { 0x0001d643, 1, { 0x0001d643 } }, { 0x0001d644, 1, { 0x0001d644 } }, { 0x0001d645, 1, { 0x0001d645 } }, { 0x0001d646, 1, { 0x0001d646 } }, { 0x0001d647, 1, { 0x0001d647 } }, { 0x0001d648, 1, { 0x0001d648 } }, { 0x0001d649, 1, { 0x0001d649 } }, { 0x0001d64a, 1, { 0x0001d64a } }, { 0x0001d64b, 1, { 0x0001d64b } }, { 0x0001d64c, 1, { 0x0001d64c } }, { 0x0001d64d, 1, { 0x0001d64d } }, { 0x0001d64e, 1, { 0x0001d64e } }, { 0x0001d64f, 1, { 0x0001d64f } }, { 0x0001d650, 1, { 0x0001d650 } }, { 0x0001d651, 1, { 0x0001d651 } }, { 0x0001d652, 1, { 0x0001d652 } }, { 0x0001d653, 1, { 0x0001d653 } }, { 0x0001d654, 1, { 0x0001d654 } }, { 0x0001d655, 1, { 0x0001d655 } }, { 0x0001d656, 1, { 0x0001d656 } }, { 0x0001d657, 1, { 0x0001d657 } }, { 0x0001d658, 1, { 0x0001d658 } }, { 0x0001d659, 1, { 0x0001d659 } }, { 0x0001d65a, 1, { 0x0001d65a } }, { 0x0001d65b, 1, { 0x0001d65b } }, { 0x0001d65c, 1, { 0x0001d65c } }, { 0x0001d65d, 1, { 0x0001d65d } }, { 0x0001d65e, 1, { 0x0001d65e } }, { 0x0001d65f, 1, { 0x0001d65f } }, { 0x0001d660, 1, { 0x0001d660 } }, { 0x0001d661, 1, { 0x0001d661 } }, { 0x0001d662, 1, { 0x0001d662 } }, { 0x0001d663, 1, { 0x0001d663 } }, { 0x0001d664, 1, { 0x0001d664 } }, { 0x0001d665, 1, { 0x0001d665 } }, { 0x0001d666, 1, { 0x0001d666 } }, { 0x0001d667, 1, { 0x0001d667 } }, { 0x0001d668, 1, { 0x0001d668 } }, { 0x0001d669, 1, { 0x0001d669 } }, { 0x0001d66a, 1, { 0x0001d66a } }, { 0x0001d66b, 1, { 0x0001d66b } }, { 0x0001d66c, 1, { 0x0001d66c } }, { 0x0001d66d, 1, { 0x0001d66d } }, { 0x0001d66e, 1, { 0x0001d66e } }, { 0x0001d66f, 1, { 0x0001d66f } }, { 0x0001d670, 1, { 0x0001d670 } }, { 0x0001d671, 1, { 0x0001d671 } }, { 0x0001d672, 1, { 0x0001d672 } }, { 0x0001d673, 1, { 0x0001d673 } }, { 0x0001d674, 1, { 0x0001d674 } }, { 0x0001d675, 1, { 0x0001d675 } }, { 0x0001d676, 1, { 0x0001d676 } }, { 0x0001d677, 1, { 0x0001d677 } }, { 0x0001d678, 1, { 0x0001d678 } }, { 0x0001d679, 1, { 0x0001d679 } }, { 0x0001d67a, 1, { 0x0001d67a } }, { 0x0001d67b, 1, { 0x0001d67b } }, { 0x0001d67c, 1, { 0x0001d67c } }, { 0x0001d67d, 1, { 0x0001d67d } }, { 0x0001d67e, 1, { 0x0001d67e } }, { 0x0001d67f, 1, { 0x0001d67f } }, { 0x0001d680, 1, { 0x0001d680 } }, { 0x0001d681, 1, { 0x0001d681 } }, { 0x0001d682, 1, { 0x0001d682 } }, { 0x0001d683, 1, { 0x0001d683 } }, { 0x0001d684, 1, { 0x0001d684 } }, { 0x0001d685, 1, { 0x0001d685 } }, { 0x0001d686, 1, { 0x0001d686 } }, { 0x0001d687, 1, { 0x0001d687 } }, { 0x0001d688, 1, { 0x0001d688 } }, { 0x0001d689, 1, { 0x0001d689 } }, { 0x0001d68a, 1, { 0x0001d68a } }, { 0x0001d68b, 1, { 0x0001d68b } }, { 0x0001d68c, 1, { 0x0001d68c } }, { 0x0001d68d, 1, { 0x0001d68d } }, { 0x0001d68e, 1, { 0x0001d68e } }, { 0x0001d68f, 1, { 0x0001d68f } }, { 0x0001d690, 1, { 0x0001d690 } }, { 0x0001d691, 1, { 0x0001d691 } }, { 0x0001d692, 1, { 0x0001d692 } }, { 0x0001d693, 1, { 0x0001d693 } }, { 0x0001d694, 1, { 0x0001d694 } }, { 0x0001d695, 1, { 0x0001d695 } }, { 0x0001d696, 1, { 0x0001d696 } }, { 0x0001d697, 1, { 0x0001d697 } }, { 0x0001d698, 1, { 0x0001d698 } }, { 0x0001d699, 1, { 0x0001d699 } }, { 0x0001d69a, 1, { 0x0001d69a } }, { 0x0001d69b, 1, { 0x0001d69b } }, { 0x0001d69c, 1, { 0x0001d69c } }, { 0x0001d69d, 1, { 0x0001d69d } }, { 0x0001d69e, 1, { 0x0001d69e } }, { 0x0001d69f, 1, { 0x0001d69f } }, { 0x0001d6a0, 1, { 0x0001d6a0 } }, { 0x0001d6a1, 1, { 0x0001d6a1 } }, { 0x0001d6a2, 1, { 0x0001d6a2 } }, { 0x0001d6a3, 1, { 0x0001d6a3 } }, { 0x0001d6a4, 1, { 0x0001d6a4 } }, { 0x0001d6a5, 1, { 0x0001d6a5 } }, { 0x0001d6a8, 1, { 0x0001d6a8 } }, { 0x0001d6a9, 1, { 0x0001d6a9 } }, { 0x0001d6aa, 1, { 0x0001d6aa } }, { 0x0001d6ab, 1, { 0x0001d6ab } }, { 0x0001d6ac, 1, { 0x0001d6ac } }, { 0x0001d6ad, 1, { 0x0001d6ad } }, { 0x0001d6ae, 1, { 0x0001d6ae } }, { 0x0001d6af, 1, { 0x0001d6af } }, { 0x0001d6b0, 1, { 0x0001d6b0 } }, { 0x0001d6b1, 1, { 0x0001d6b1 } }, { 0x0001d6b2, 1, { 0x0001d6b2 } }, { 0x0001d6b3, 1, { 0x0001d6b3 } }, { 0x0001d6b4, 1, { 0x0001d6b4 } }, { 0x0001d6b5, 1, { 0x0001d6b5 } }, { 0x0001d6b6, 1, { 0x0001d6b6 } }, { 0x0001d6b7, 1, { 0x0001d6b7 } }, { 0x0001d6b8, 1, { 0x0001d6b8 } }, { 0x0001d6b9, 1, { 0x0001d6b9 } }, { 0x0001d6ba, 1, { 0x0001d6ba } }, { 0x0001d6bb, 1, { 0x0001d6bb } }, { 0x0001d6bc, 1, { 0x0001d6bc } }, { 0x0001d6bd, 1, { 0x0001d6bd } }, { 0x0001d6be, 1, { 0x0001d6be } }, { 0x0001d6bf, 1, { 0x0001d6bf } }, { 0x0001d6c0, 1, { 0x0001d6c0 } }, { 0x0001d6c1, 1, { 0x0001d6c1 } }, { 0x0001d6c2, 1, { 0x0001d6c2 } }, { 0x0001d6c3, 1, { 0x0001d6c3 } }, { 0x0001d6c4, 1, { 0x0001d6c4 } }, { 0x0001d6c5, 1, { 0x0001d6c5 } }, { 0x0001d6c6, 1, { 0x0001d6c6 } }, { 0x0001d6c7, 1, { 0x0001d6c7 } }, { 0x0001d6c8, 1, { 0x0001d6c8 } }, { 0x0001d6c9, 1, { 0x0001d6c9 } }, { 0x0001d6ca, 1, { 0x0001d6ca } }, { 0x0001d6cb, 1, { 0x0001d6cb } }, { 0x0001d6cc, 1, { 0x0001d6cc } }, { 0x0001d6cd, 1, { 0x0001d6cd } }, { 0x0001d6ce, 1, { 0x0001d6ce } }, { 0x0001d6cf, 1, { 0x0001d6cf } }, { 0x0001d6d0, 1, { 0x0001d6d0 } }, { 0x0001d6d1, 1, { 0x0001d6d1 } }, { 0x0001d6d2, 1, { 0x0001d6d2 } }, { 0x0001d6d3, 1, { 0x0001d6d3 } }, { 0x0001d6d4, 1, { 0x0001d6d4 } }, { 0x0001d6d5, 1, { 0x0001d6d5 } }, { 0x0001d6d6, 1, { 0x0001d6d6 } }, { 0x0001d6d7, 1, { 0x0001d6d7 } }, { 0x0001d6d8, 1, { 0x0001d6d8 } }, { 0x0001d6d9, 1, { 0x0001d6d9 } }, { 0x0001d6da, 1, { 0x0001d6da } }, { 0x0001d6db, 1, { 0x0001d6db } }, { 0x0001d6dc, 1, { 0x0001d6dc } }, { 0x0001d6dd, 1, { 0x0001d6dd } }, { 0x0001d6de, 1, { 0x0001d6de } }, { 0x0001d6df, 1, { 0x0001d6df } }, { 0x0001d6e0, 1, { 0x0001d6e0 } }, { 0x0001d6e1, 1, { 0x0001d6e1 } }, { 0x0001d6e2, 1, { 0x0001d6e2 } }, { 0x0001d6e3, 1, { 0x0001d6e3 } }, { 0x0001d6e4, 1, { 0x0001d6e4 } }, { 0x0001d6e5, 1, { 0x0001d6e5 } }, { 0x0001d6e6, 1, { 0x0001d6e6 } }, { 0x0001d6e7, 1, { 0x0001d6e7 } }, { 0x0001d6e8, 1, { 0x0001d6e8 } }, { 0x0001d6e9, 1, { 0x0001d6e9 } }, { 0x0001d6ea, 1, { 0x0001d6ea } }, { 0x0001d6eb, 1, { 0x0001d6eb } }, { 0x0001d6ec, 1, { 0x0001d6ec } }, { 0x0001d6ed, 1, { 0x0001d6ed } }, { 0x0001d6ee, 1, { 0x0001d6ee } }, { 0x0001d6ef, 1, { 0x0001d6ef } }, { 0x0001d6f0, 1, { 0x0001d6f0 } }, { 0x0001d6f1, 1, { 0x0001d6f1 } }, { 0x0001d6f2, 1, { 0x0001d6f2 } }, { 0x0001d6f3, 1, { 0x0001d6f3 } }, { 0x0001d6f4, 1, { 0x0001d6f4 } }, { 0x0001d6f5, 1, { 0x0001d6f5 } }, { 0x0001d6f6, 1, { 0x0001d6f6 } }, { 0x0001d6f7, 1, { 0x0001d6f7 } }, { 0x0001d6f8, 1, { 0x0001d6f8 } }, { 0x0001d6f9, 1, { 0x0001d6f9 } }, { 0x0001d6fa, 1, { 0x0001d6fa } }, { 0x0001d6fb, 1, { 0x0001d6fb } }, { 0x0001d6fc, 1, { 0x0001d6fc } }, { 0x0001d6fd, 1, { 0x0001d6fd } }, { 0x0001d6fe, 1, { 0x0001d6fe } }, { 0x0001d6ff, 1, { 0x0001d6ff } }, { 0x0001d700, 1, { 0x0001d700 } }, { 0x0001d701, 1, { 0x0001d701 } }, { 0x0001d702, 1, { 0x0001d702 } }, { 0x0001d703, 1, { 0x0001d703 } }, { 0x0001d704, 1, { 0x0001d704 } }, { 0x0001d705, 1, { 0x0001d705 } }, { 0x0001d706, 1, { 0x0001d706 } }, { 0x0001d707, 1, { 0x0001d707 } }, { 0x0001d708, 1, { 0x0001d708 } }, { 0x0001d709, 1, { 0x0001d709 } }, { 0x0001d70a, 1, { 0x0001d70a } }, { 0x0001d70b, 1, { 0x0001d70b } }, { 0x0001d70c, 1, { 0x0001d70c } }, { 0x0001d70d, 1, { 0x0001d70d } }, { 0x0001d70e, 1, { 0x0001d70e } }, { 0x0001d70f, 1, { 0x0001d70f } }, { 0x0001d710, 1, { 0x0001d710 } }, { 0x0001d711, 1, { 0x0001d711 } }, { 0x0001d712, 1, { 0x0001d712 } }, { 0x0001d713, 1, { 0x0001d713 } }, { 0x0001d714, 1, { 0x0001d714 } }, { 0x0001d715, 1, { 0x0001d715 } }, { 0x0001d716, 1, { 0x0001d716 } }, { 0x0001d717, 1, { 0x0001d717 } }, { 0x0001d718, 1, { 0x0001d718 } }, { 0x0001d719, 1, { 0x0001d719 } }, { 0x0001d71a, 1, { 0x0001d71a } }, { 0x0001d71b, 1, { 0x0001d71b } }, { 0x0001d71c, 1, { 0x0001d71c } }, { 0x0001d71d, 1, { 0x0001d71d } }, { 0x0001d71e, 1, { 0x0001d71e } }, { 0x0001d71f, 1, { 0x0001d71f } }, { 0x0001d720, 1, { 0x0001d720 } }, { 0x0001d721, 1, { 0x0001d721 } }, { 0x0001d722, 1, { 0x0001d722 } }, { 0x0001d723, 1, { 0x0001d723 } }, { 0x0001d724, 1, { 0x0001d724 } }, { 0x0001d725, 1, { 0x0001d725 } }, { 0x0001d726, 1, { 0x0001d726 } }, { 0x0001d727, 1, { 0x0001d727 } }, { 0x0001d728, 1, { 0x0001d728 } }, { 0x0001d729, 1, { 0x0001d729 } }, { 0x0001d72a, 1, { 0x0001d72a } }, { 0x0001d72b, 1, { 0x0001d72b } }, { 0x0001d72c, 1, { 0x0001d72c } }, { 0x0001d72d, 1, { 0x0001d72d } }, { 0x0001d72e, 1, { 0x0001d72e } }, { 0x0001d72f, 1, { 0x0001d72f } }, { 0x0001d730, 1, { 0x0001d730 } }, { 0x0001d731, 1, { 0x0001d731 } }, { 0x0001d732, 1, { 0x0001d732 } }, { 0x0001d733, 1, { 0x0001d733 } }, { 0x0001d734, 1, { 0x0001d734 } }, { 0x0001d735, 1, { 0x0001d735 } }, { 0x0001d736, 1, { 0x0001d736 } }, { 0x0001d737, 1, { 0x0001d737 } }, { 0x0001d738, 1, { 0x0001d738 } }, { 0x0001d739, 1, { 0x0001d739 } }, { 0x0001d73a, 1, { 0x0001d73a } }, { 0x0001d73b, 1, { 0x0001d73b } }, { 0x0001d73c, 1, { 0x0001d73c } }, { 0x0001d73d, 1, { 0x0001d73d } }, { 0x0001d73e, 1, { 0x0001d73e } }, { 0x0001d73f, 1, { 0x0001d73f } }, { 0x0001d740, 1, { 0x0001d740 } }, { 0x0001d741, 1, { 0x0001d741 } }, { 0x0001d742, 1, { 0x0001d742 } }, { 0x0001d743, 1, { 0x0001d743 } }, { 0x0001d744, 1, { 0x0001d744 } }, { 0x0001d745, 1, { 0x0001d745 } }, { 0x0001d746, 1, { 0x0001d746 } }, { 0x0001d747, 1, { 0x0001d747 } }, { 0x0001d748, 1, { 0x0001d748 } }, { 0x0001d749, 1, { 0x0001d749 } }, { 0x0001d74a, 1, { 0x0001d74a } }, { 0x0001d74b, 1, { 0x0001d74b } }, { 0x0001d74c, 1, { 0x0001d74c } }, { 0x0001d74d, 1, { 0x0001d74d } }, { 0x0001d74e, 1, { 0x0001d74e } }, { 0x0001d74f, 1, { 0x0001d74f } }, { 0x0001d750, 1, { 0x0001d750 } }, { 0x0001d751, 1, { 0x0001d751 } }, { 0x0001d752, 1, { 0x0001d752 } }, { 0x0001d753, 1, { 0x0001d753 } }, { 0x0001d754, 1, { 0x0001d754 } }, { 0x0001d755, 1, { 0x0001d755 } }, { 0x0001d756, 1, { 0x0001d756 } }, { 0x0001d757, 1, { 0x0001d757 } }, { 0x0001d758, 1, { 0x0001d758 } }, { 0x0001d759, 1, { 0x0001d759 } }, { 0x0001d75a, 1, { 0x0001d75a } }, { 0x0001d75b, 1, { 0x0001d75b } }, { 0x0001d75c, 1, { 0x0001d75c } }, { 0x0001d75d, 1, { 0x0001d75d } }, { 0x0001d75e, 1, { 0x0001d75e } }, { 0x0001d75f, 1, { 0x0001d75f } }, { 0x0001d760, 1, { 0x0001d760 } }, { 0x0001d761, 1, { 0x0001d761 } }, { 0x0001d762, 1, { 0x0001d762 } }, { 0x0001d763, 1, { 0x0001d763 } }, { 0x0001d764, 1, { 0x0001d764 } }, { 0x0001d765, 1, { 0x0001d765 } }, { 0x0001d766, 1, { 0x0001d766 } }, { 0x0001d767, 1, { 0x0001d767 } }, { 0x0001d768, 1, { 0x0001d768 } }, { 0x0001d769, 1, { 0x0001d769 } }, { 0x0001d76a, 1, { 0x0001d76a } }, { 0x0001d76b, 1, { 0x0001d76b } }, { 0x0001d76c, 1, { 0x0001d76c } }, { 0x0001d76d, 1, { 0x0001d76d } }, { 0x0001d76e, 1, { 0x0001d76e } }, { 0x0001d76f, 1, { 0x0001d76f } }, { 0x0001d770, 1, { 0x0001d770 } }, { 0x0001d771, 1, { 0x0001d771 } }, { 0x0001d772, 1, { 0x0001d772 } }, { 0x0001d773, 1, { 0x0001d773 } }, { 0x0001d774, 1, { 0x0001d774 } }, { 0x0001d775, 1, { 0x0001d775 } }, { 0x0001d776, 1, { 0x0001d776 } }, { 0x0001d777, 1, { 0x0001d777 } }, { 0x0001d778, 1, { 0x0001d778 } }, { 0x0001d779, 1, { 0x0001d779 } }, { 0x0001d77a, 1, { 0x0001d77a } }, { 0x0001d77b, 1, { 0x0001d77b } }, { 0x0001d77c, 1, { 0x0001d77c } }, { 0x0001d77d, 1, { 0x0001d77d } }, { 0x0001d77e, 1, { 0x0001d77e } }, { 0x0001d77f, 1, { 0x0001d77f } }, { 0x0001d780, 1, { 0x0001d780 } }, { 0x0001d781, 1, { 0x0001d781 } }, { 0x0001d782, 1, { 0x0001d782 } }, { 0x0001d783, 1, { 0x0001d783 } }, { 0x0001d784, 1, { 0x0001d784 } }, { 0x0001d785, 1, { 0x0001d785 } }, { 0x0001d786, 1, { 0x0001d786 } }, { 0x0001d787, 1, { 0x0001d787 } }, { 0x0001d788, 1, { 0x0001d788 } }, { 0x0001d789, 1, { 0x0001d789 } }, { 0x0001d78a, 1, { 0x0001d78a } }, { 0x0001d78b, 1, { 0x0001d78b } }, { 0x0001d78c, 1, { 0x0001d78c } }, { 0x0001d78d, 1, { 0x0001d78d } }, { 0x0001d78e, 1, { 0x0001d78e } }, { 0x0001d78f, 1, { 0x0001d78f } }, { 0x0001d790, 1, { 0x0001d790 } }, { 0x0001d791, 1, { 0x0001d791 } }, { 0x0001d792, 1, { 0x0001d792 } }, { 0x0001d793, 1, { 0x0001d793 } }, { 0x0001d794, 1, { 0x0001d794 } }, { 0x0001d795, 1, { 0x0001d795 } }, { 0x0001d796, 1, { 0x0001d796 } }, { 0x0001d797, 1, { 0x0001d797 } }, { 0x0001d798, 1, { 0x0001d798 } }, { 0x0001d799, 1, { 0x0001d799 } }, { 0x0001d79a, 1, { 0x0001d79a } }, { 0x0001d79b, 1, { 0x0001d79b } }, { 0x0001d79c, 1, { 0x0001d79c } }, { 0x0001d79d, 1, { 0x0001d79d } }, { 0x0001d79e, 1, { 0x0001d79e } }, { 0x0001d79f, 1, { 0x0001d79f } }, { 0x0001d7a0, 1, { 0x0001d7a0 } }, { 0x0001d7a1, 1, { 0x0001d7a1 } }, { 0x0001d7a2, 1, { 0x0001d7a2 } }, { 0x0001d7a3, 1, { 0x0001d7a3 } }, { 0x0001d7a4, 1, { 0x0001d7a4 } }, { 0x0001d7a5, 1, { 0x0001d7a5 } }, { 0x0001d7a6, 1, { 0x0001d7a6 } }, { 0x0001d7a7, 1, { 0x0001d7a7 } }, { 0x0001d7a8, 1, { 0x0001d7a8 } }, { 0x0001d7a9, 1, { 0x0001d7a9 } }, { 0x0001d7aa, 1, { 0x0001d7aa } }, { 0x0001d7ab, 1, { 0x0001d7ab } }, { 0x0001d7ac, 1, { 0x0001d7ac } }, { 0x0001d7ad, 1, { 0x0001d7ad } }, { 0x0001d7ae, 1, { 0x0001d7ae } }, { 0x0001d7af, 1, { 0x0001d7af } }, { 0x0001d7b0, 1, { 0x0001d7b0 } }, { 0x0001d7b1, 1, { 0x0001d7b1 } }, { 0x0001d7b2, 1, { 0x0001d7b2 } }, { 0x0001d7b3, 1, { 0x0001d7b3 } }, { 0x0001d7b4, 1, { 0x0001d7b4 } }, { 0x0001d7b5, 1, { 0x0001d7b5 } }, { 0x0001d7b6, 1, { 0x0001d7b6 } }, { 0x0001d7b7, 1, { 0x0001d7b7 } }, { 0x0001d7b8, 1, { 0x0001d7b8 } }, { 0x0001d7b9, 1, { 0x0001d7b9 } }, { 0x0001d7ba, 1, { 0x0001d7ba } }, { 0x0001d7bb, 1, { 0x0001d7bb } }, { 0x0001d7bc, 1, { 0x0001d7bc } }, { 0x0001d7bd, 1, { 0x0001d7bd } }, { 0x0001d7be, 1, { 0x0001d7be } }, { 0x0001d7bf, 1, { 0x0001d7bf } }, { 0x0001d7c0, 1, { 0x0001d7c0 } }, { 0x0001d7c1, 1, { 0x0001d7c1 } }, { 0x0001d7c2, 1, { 0x0001d7c2 } }, { 0x0001d7c3, 1, { 0x0001d7c3 } }, { 0x0001d7c4, 1, { 0x0001d7c4 } }, { 0x0001d7c5, 1, { 0x0001d7c5 } }, { 0x0001d7c6, 1, { 0x0001d7c6 } }, { 0x0001d7c7, 1, { 0x0001d7c7 } }, { 0x0001d7c8, 1, { 0x0001d7c8 } }, { 0x0001d7c9, 1, { 0x0001d7c9 } }, { 0x0001d7ca, 1, { 0x0001d7ca } }, { 0x0001d7cb, 1, { 0x0001d7cb } }, { 0x0001d7ce, 1, { 0x0001d7ce } }, { 0x0001d7cf, 1, { 0x0001d7cf } }, { 0x0001d7d0, 1, { 0x0001d7d0 } }, { 0x0001d7d1, 1, { 0x0001d7d1 } }, { 0x0001d7d2, 1, { 0x0001d7d2 } }, { 0x0001d7d3, 1, { 0x0001d7d3 } }, { 0x0001d7d4, 1, { 0x0001d7d4 } }, { 0x0001d7d5, 1, { 0x0001d7d5 } }, { 0x0001d7d6, 1, { 0x0001d7d6 } }, { 0x0001d7d7, 1, { 0x0001d7d7 } }, { 0x0001d7d8, 1, { 0x0001d7d8 } }, { 0x0001d7d9, 1, { 0x0001d7d9 } }, { 0x0001d7da, 1, { 0x0001d7da } }, { 0x0001d7db, 1, { 0x0001d7db } }, { 0x0001d7dc, 1, { 0x0001d7dc } }, { 0x0001d7dd, 1, { 0x0001d7dd } }, { 0x0001d7de, 1, { 0x0001d7de } }, { 0x0001d7df, 1, { 0x0001d7df } }, { 0x0001d7e0, 1, { 0x0001d7e0 } }, { 0x0001d7e1, 1, { 0x0001d7e1 } }, { 0x0001d7e2, 1, { 0x0001d7e2 } }, { 0x0001d7e3, 1, { 0x0001d7e3 } }, { 0x0001d7e4, 1, { 0x0001d7e4 } }, { 0x0001d7e5, 1, { 0x0001d7e5 } }, { 0x0001d7e6, 1, { 0x0001d7e6 } }, { 0x0001d7e7, 1, { 0x0001d7e7 } }, { 0x0001d7e8, 1, { 0x0001d7e8 } }, { 0x0001d7e9, 1, { 0x0001d7e9 } }, { 0x0001d7ea, 1, { 0x0001d7ea } }, { 0x0001d7eb, 1, { 0x0001d7eb } }, { 0x0001d7ec, 1, { 0x0001d7ec } }, { 0x0001d7ed, 1, { 0x0001d7ed } }, { 0x0001d7ee, 1, { 0x0001d7ee } }, { 0x0001d7ef, 1, { 0x0001d7ef } }, { 0x0001d7f0, 1, { 0x0001d7f0 } }, { 0x0001d7f1, 1, { 0x0001d7f1 } }, { 0x0001d7f2, 1, { 0x0001d7f2 } }, { 0x0001d7f3, 1, { 0x0001d7f3 } }, { 0x0001d7f4, 1, { 0x0001d7f4 } }, { 0x0001d7f5, 1, { 0x0001d7f5 } }, { 0x0001d7f6, 1, { 0x0001d7f6 } }, { 0x0001d7f7, 1, { 0x0001d7f7 } }, { 0x0001d7f8, 1, { 0x0001d7f8 } }, { 0x0001d7f9, 1, { 0x0001d7f9 } }, { 0x0001d7fa, 1, { 0x0001d7fa } }, { 0x0001d7fb, 1, { 0x0001d7fb } }, { 0x0001d7fc, 1, { 0x0001d7fc } }, { 0x0001d7fd, 1, { 0x0001d7fd } }, { 0x0001d7fe, 1, { 0x0001d7fe } }, { 0x0001d7ff, 1, { 0x0001d7ff } }, { 0x0001d800, 1, { 0x0001d800 } }, { 0x0001d801, 1, { 0x0001d801 } }, { 0x0001d802, 1, { 0x0001d802 } }, { 0x0001d803, 1, { 0x0001d803 } }, { 0x0001d804, 1, { 0x0001d804 } }, { 0x0001d805, 1, { 0x0001d805 } }, { 0x0001d806, 1, { 0x0001d806 } }, { 0x0001d807, 1, { 0x0001d807 } }, { 0x0001d808, 1, { 0x0001d808 } }, { 0x0001d809, 1, { 0x0001d809 } }, { 0x0001d80a, 1, { 0x0001d80a } }, { 0x0001d80b, 1, { 0x0001d80b } }, { 0x0001d80c, 1, { 0x0001d80c } }, { 0x0001d80d, 1, { 0x0001d80d } }, { 0x0001d80e, 1, { 0x0001d80e } }, { 0x0001d80f, 1, { 0x0001d80f } }, { 0x0001d810, 1, { 0x0001d810 } }, { 0x0001d811, 1, { 0x0001d811 } }, { 0x0001d812, 1, { 0x0001d812 } }, { 0x0001d813, 1, { 0x0001d813 } }, { 0x0001d814, 1, { 0x0001d814 } }, { 0x0001d815, 1, { 0x0001d815 } }, { 0x0001d816, 1, { 0x0001d816 } }, { 0x0001d817, 1, { 0x0001d817 } }, { 0x0001d818, 1, { 0x0001d818 } }, { 0x0001d819, 1, { 0x0001d819 } }, { 0x0001d81a, 1, { 0x0001d81a } }, { 0x0001d81b, 1, { 0x0001d81b } }, { 0x0001d81c, 1, { 0x0001d81c } }, { 0x0001d81d, 1, { 0x0001d81d } }, { 0x0001d81e, 1, { 0x0001d81e } }, { 0x0001d81f, 1, { 0x0001d81f } }, { 0x0001d820, 1, { 0x0001d820 } }, { 0x0001d821, 1, { 0x0001d821 } }, { 0x0001d822, 1, { 0x0001d822 } }, { 0x0001d823, 1, { 0x0001d823 } }, { 0x0001d824, 1, { 0x0001d824 } }, { 0x0001d825, 1, { 0x0001d825 } }, { 0x0001d826, 1, { 0x0001d826 } }, { 0x0001d827, 1, { 0x0001d827 } }, { 0x0001d828, 1, { 0x0001d828 } }, { 0x0001d829, 1, { 0x0001d829 } }, { 0x0001d82a, 1, { 0x0001d82a } }, { 0x0001d82b, 1, { 0x0001d82b } }, { 0x0001d82c, 1, { 0x0001d82c } }, { 0x0001d82d, 1, { 0x0001d82d } }, { 0x0001d82e, 1, { 0x0001d82e } }, { 0x0001d82f, 1, { 0x0001d82f } }, { 0x0001d830, 1, { 0x0001d830 } }, { 0x0001d831, 1, { 0x0001d831 } }, { 0x0001d832, 1, { 0x0001d832 } }, { 0x0001d833, 1, { 0x0001d833 } }, { 0x0001d834, 1, { 0x0001d834 } }, { 0x0001d835, 1, { 0x0001d835 } }, { 0x0001d836, 1, { 0x0001d836 } }, { 0x0001d837, 1, { 0x0001d837 } }, { 0x0001d838, 1, { 0x0001d838 } }, { 0x0001d839, 1, { 0x0001d839 } }, { 0x0001d83a, 1, { 0x0001d83a } }, { 0x0001d83b, 1, { 0x0001d83b } }, { 0x0001d83c, 1, { 0x0001d83c } }, { 0x0001d83d, 1, { 0x0001d83d } }, { 0x0001d83e, 1, { 0x0001d83e } }, { 0x0001d83f, 1, { 0x0001d83f } }, { 0x0001d840, 1, { 0x0001d840 } }, { 0x0001d841, 1, { 0x0001d841 } }, { 0x0001d842, 1, { 0x0001d842 } }, { 0x0001d843, 1, { 0x0001d843 } }, { 0x0001d844, 1, { 0x0001d844 } }, { 0x0001d845, 1, { 0x0001d845 } }, { 0x0001d846, 1, { 0x0001d846 } }, { 0x0001d847, 1, { 0x0001d847 } }, { 0x0001d848, 1, { 0x0001d848 } }, { 0x0001d849, 1, { 0x0001d849 } }, { 0x0001d84a, 1, { 0x0001d84a } }, { 0x0001d84b, 1, { 0x0001d84b } }, { 0x0001d84c, 1, { 0x0001d84c } }, { 0x0001d84d, 1, { 0x0001d84d } }, { 0x0001d84e, 1, { 0x0001d84e } }, { 0x0001d84f, 1, { 0x0001d84f } }, { 0x0001d850, 1, { 0x0001d850 } }, { 0x0001d851, 1, { 0x0001d851 } }, { 0x0001d852, 1, { 0x0001d852 } }, { 0x0001d853, 1, { 0x0001d853 } }, { 0x0001d854, 1, { 0x0001d854 } }, { 0x0001d855, 1, { 0x0001d855 } }, { 0x0001d856, 1, { 0x0001d856 } }, { 0x0001d857, 1, { 0x0001d857 } }, { 0x0001d858, 1, { 0x0001d858 } }, { 0x0001d859, 1, { 0x0001d859 } }, { 0x0001d85a, 1, { 0x0001d85a } }, { 0x0001d85b, 1, { 0x0001d85b } }, { 0x0001d85c, 1, { 0x0001d85c } }, { 0x0001d85d, 1, { 0x0001d85d } }, { 0x0001d85e, 1, { 0x0001d85e } }, { 0x0001d85f, 1, { 0x0001d85f } }, { 0x0001d860, 1, { 0x0001d860 } }, { 0x0001d861, 1, { 0x0001d861 } }, { 0x0001d862, 1, { 0x0001d862 } }, { 0x0001d863, 1, { 0x0001d863 } }, { 0x0001d864, 1, { 0x0001d864 } }, { 0x0001d865, 1, { 0x0001d865 } }, { 0x0001d866, 1, { 0x0001d866 } }, { 0x0001d867, 1, { 0x0001d867 } }, { 0x0001d868, 1, { 0x0001d868 } }, { 0x0001d869, 1, { 0x0001d869 } }, { 0x0001d86a, 1, { 0x0001d86a } }, { 0x0001d86b, 1, { 0x0001d86b } }, { 0x0001d86c, 1, { 0x0001d86c } }, { 0x0001d86d, 1, { 0x0001d86d } }, { 0x0001d86e, 1, { 0x0001d86e } }, { 0x0001d86f, 1, { 0x0001d86f } }, { 0x0001d870, 1, { 0x0001d870 } }, { 0x0001d871, 1, { 0x0001d871 } }, { 0x0001d872, 1, { 0x0001d872 } }, { 0x0001d873, 1, { 0x0001d873 } }, { 0x0001d874, 1, { 0x0001d874 } }, { 0x0001d875, 1, { 0x0001d875 } }, { 0x0001d876, 1, { 0x0001d876 } }, { 0x0001d877, 1, { 0x0001d877 } }, { 0x0001d878, 1, { 0x0001d878 } }, { 0x0001d879, 1, { 0x0001d879 } }, { 0x0001d87a, 1, { 0x0001d87a } }, { 0x0001d87b, 1, { 0x0001d87b } }, { 0x0001d87c, 1, { 0x0001d87c } }, { 0x0001d87d, 1, { 0x0001d87d } }, { 0x0001d87e, 1, { 0x0001d87e } }, { 0x0001d87f, 1, { 0x0001d87f } }, { 0x0001d880, 1, { 0x0001d880 } }, { 0x0001d881, 1, { 0x0001d881 } }, { 0x0001d882, 1, { 0x0001d882 } }, { 0x0001d883, 1, { 0x0001d883 } }, { 0x0001d884, 1, { 0x0001d884 } }, { 0x0001d885, 1, { 0x0001d885 } }, { 0x0001d886, 1, { 0x0001d886 } }, { 0x0001d887, 1, { 0x0001d887 } }, { 0x0001d888, 1, { 0x0001d888 } }, { 0x0001d889, 1, { 0x0001d889 } }, { 0x0001d88a, 1, { 0x0001d88a } }, { 0x0001d88b, 1, { 0x0001d88b } }, { 0x0001d88c, 1, { 0x0001d88c } }, { 0x0001d88d, 1, { 0x0001d88d } }, { 0x0001d88e, 1, { 0x0001d88e } }, { 0x0001d88f, 1, { 0x0001d88f } }, { 0x0001d890, 1, { 0x0001d890 } }, { 0x0001d891, 1, { 0x0001d891 } }, { 0x0001d892, 1, { 0x0001d892 } }, { 0x0001d893, 1, { 0x0001d893 } }, { 0x0001d894, 1, { 0x0001d894 } }, { 0x0001d895, 1, { 0x0001d895 } }, { 0x0001d896, 1, { 0x0001d896 } }, { 0x0001d897, 1, { 0x0001d897 } }, { 0x0001d898, 1, { 0x0001d898 } }, { 0x0001d899, 1, { 0x0001d899 } }, { 0x0001d89a, 1, { 0x0001d89a } }, { 0x0001d89b, 1, { 0x0001d89b } }, { 0x0001d89c, 1, { 0x0001d89c } }, { 0x0001d89d, 1, { 0x0001d89d } }, { 0x0001d89e, 1, { 0x0001d89e } }, { 0x0001d89f, 1, { 0x0001d89f } }, { 0x0001d8a0, 1, { 0x0001d8a0 } }, { 0x0001d8a1, 1, { 0x0001d8a1 } }, { 0x0001d8a2, 1, { 0x0001d8a2 } }, { 0x0001d8a3, 1, { 0x0001d8a3 } }, { 0x0001d8a4, 1, { 0x0001d8a4 } }, { 0x0001d8a5, 1, { 0x0001d8a5 } }, { 0x0001d8a6, 1, { 0x0001d8a6 } }, { 0x0001d8a7, 1, { 0x0001d8a7 } }, { 0x0001d8a8, 1, { 0x0001d8a8 } }, { 0x0001d8a9, 1, { 0x0001d8a9 } }, { 0x0001d8aa, 1, { 0x0001d8aa } }, { 0x0001d8ab, 1, { 0x0001d8ab } }, { 0x0001d8ac, 1, { 0x0001d8ac } }, { 0x0001d8ad, 1, { 0x0001d8ad } }, { 0x0001d8ae, 1, { 0x0001d8ae } }, { 0x0001d8af, 1, { 0x0001d8af } }, { 0x0001d8b0, 1, { 0x0001d8b0 } }, { 0x0001d8b1, 1, { 0x0001d8b1 } }, { 0x0001d8b2, 1, { 0x0001d8b2 } }, { 0x0001d8b3, 1, { 0x0001d8b3 } }, { 0x0001d8b4, 1, { 0x0001d8b4 } }, { 0x0001d8b5, 1, { 0x0001d8b5 } }, { 0x0001d8b6, 1, { 0x0001d8b6 } }, { 0x0001d8b7, 1, { 0x0001d8b7 } }, { 0x0001d8b8, 1, { 0x0001d8b8 } }, { 0x0001d8b9, 1, { 0x0001d8b9 } }, { 0x0001d8ba, 1, { 0x0001d8ba } }, { 0x0001d8bb, 1, { 0x0001d8bb } }, { 0x0001d8bc, 1, { 0x0001d8bc } }, { 0x0001d8bd, 1, { 0x0001d8bd } }, { 0x0001d8be, 1, { 0x0001d8be } }, { 0x0001d8bf, 1, { 0x0001d8bf } }, { 0x0001d8c0, 1, { 0x0001d8c0 } }, { 0x0001d8c1, 1, { 0x0001d8c1 } }, { 0x0001d8c2, 1, { 0x0001d8c2 } }, { 0x0001d8c3, 1, { 0x0001d8c3 } }, { 0x0001d8c4, 1, { 0x0001d8c4 } }, { 0x0001d8c5, 1, { 0x0001d8c5 } }, { 0x0001d8c6, 1, { 0x0001d8c6 } }, { 0x0001d8c7, 1, { 0x0001d8c7 } }, { 0x0001d8c8, 1, { 0x0001d8c8 } }, { 0x0001d8c9, 1, { 0x0001d8c9 } }, { 0x0001d8ca, 1, { 0x0001d8ca } }, { 0x0001d8cb, 1, { 0x0001d8cb } }, { 0x0001d8cc, 1, { 0x0001d8cc } }, { 0x0001d8cd, 1, { 0x0001d8cd } }, { 0x0001d8ce, 1, { 0x0001d8ce } }, { 0x0001d8cf, 1, { 0x0001d8cf } }, { 0x0001d8d0, 1, { 0x0001d8d0 } }, { 0x0001d8d1, 1, { 0x0001d8d1 } }, { 0x0001d8d2, 1, { 0x0001d8d2 } }, { 0x0001d8d3, 1, { 0x0001d8d3 } }, { 0x0001d8d4, 1, { 0x0001d8d4 } }, { 0x0001d8d5, 1, { 0x0001d8d5 } }, { 0x0001d8d6, 1, { 0x0001d8d6 } }, { 0x0001d8d7, 1, { 0x0001d8d7 } }, { 0x0001d8d8, 1, { 0x0001d8d8 } }, { 0x0001d8d9, 1, { 0x0001d8d9 } }, { 0x0001d8da, 1, { 0x0001d8da } }, { 0x0001d8db, 1, { 0x0001d8db } }, { 0x0001d8dc, 1, { 0x0001d8dc } }, { 0x0001d8dd, 1, { 0x0001d8dd } }, { 0x0001d8de, 1, { 0x0001d8de } }, { 0x0001d8df, 1, { 0x0001d8df } }, { 0x0001d8e0, 1, { 0x0001d8e0 } }, { 0x0001d8e1, 1, { 0x0001d8e1 } }, { 0x0001d8e2, 1, { 0x0001d8e2 } }, { 0x0001d8e3, 1, { 0x0001d8e3 } }, { 0x0001d8e4, 1, { 0x0001d8e4 } }, { 0x0001d8e5, 1, { 0x0001d8e5 } }, { 0x0001d8e6, 1, { 0x0001d8e6 } }, { 0x0001d8e7, 1, { 0x0001d8e7 } }, { 0x0001d8e8, 1, { 0x0001d8e8 } }, { 0x0001d8e9, 1, { 0x0001d8e9 } }, { 0x0001d8ea, 1, { 0x0001d8ea } }, { 0x0001d8eb, 1, { 0x0001d8eb } }, { 0x0001d8ec, 1, { 0x0001d8ec } }, { 0x0001d8ed, 1, { 0x0001d8ed } }, { 0x0001d8ee, 1, { 0x0001d8ee } }, { 0x0001d8ef, 1, { 0x0001d8ef } }, { 0x0001d8f0, 1, { 0x0001d8f0 } }, { 0x0001d8f1, 1, { 0x0001d8f1 } }, { 0x0001d8f2, 1, { 0x0001d8f2 } }, { 0x0001d8f3, 1, { 0x0001d8f3 } }, { 0x0001d8f4, 1, { 0x0001d8f4 } }, { 0x0001d8f5, 1, { 0x0001d8f5 } }, { 0x0001d8f6, 1, { 0x0001d8f6 } }, { 0x0001d8f7, 1, { 0x0001d8f7 } }, { 0x0001d8f8, 1, { 0x0001d8f8 } }, { 0x0001d8f9, 1, { 0x0001d8f9 } }, { 0x0001d8fa, 1, { 0x0001d8fa } }, { 0x0001d8fb, 1, { 0x0001d8fb } }, { 0x0001d8fc, 1, { 0x0001d8fc } }, { 0x0001d8fd, 1, { 0x0001d8fd } }, { 0x0001d8fe, 1, { 0x0001d8fe } }, { 0x0001d8ff, 1, { 0x0001d8ff } }, { 0x0001d900, 1, { 0x0001d900 } }, { 0x0001d901, 1, { 0x0001d901 } }, { 0x0001d902, 1, { 0x0001d902 } }, { 0x0001d903, 1, { 0x0001d903 } }, { 0x0001d904, 1, { 0x0001d904 } }, { 0x0001d905, 1, { 0x0001d905 } }, { 0x0001d906, 1, { 0x0001d906 } }, { 0x0001d907, 1, { 0x0001d907 } }, { 0x0001d908, 1, { 0x0001d908 } }, { 0x0001d909, 1, { 0x0001d909 } }, { 0x0001d90a, 1, { 0x0001d90a } }, { 0x0001d90b, 1, { 0x0001d90b } }, { 0x0001d90c, 1, { 0x0001d90c } }, { 0x0001d90d, 1, { 0x0001d90d } }, { 0x0001d90e, 1, { 0x0001d90e } }, { 0x0001d90f, 1, { 0x0001d90f } }, { 0x0001d910, 1, { 0x0001d910 } }, { 0x0001d911, 1, { 0x0001d911 } }, { 0x0001d912, 1, { 0x0001d912 } }, { 0x0001d913, 1, { 0x0001d913 } }, { 0x0001d914, 1, { 0x0001d914 } }, { 0x0001d915, 1, { 0x0001d915 } }, { 0x0001d916, 1, { 0x0001d916 } }, { 0x0001d917, 1, { 0x0001d917 } }, { 0x0001d918, 1, { 0x0001d918 } }, { 0x0001d919, 1, { 0x0001d919 } }, { 0x0001d91a, 1, { 0x0001d91a } }, { 0x0001d91b, 1, { 0x0001d91b } }, { 0x0001d91c, 1, { 0x0001d91c } }, { 0x0001d91d, 1, { 0x0001d91d } }, { 0x0001d91e, 1, { 0x0001d91e } }, { 0x0001d91f, 1, { 0x0001d91f } }, { 0x0001d920, 1, { 0x0001d920 } }, { 0x0001d921, 1, { 0x0001d921 } }, { 0x0001d922, 1, { 0x0001d922 } }, { 0x0001d923, 1, { 0x0001d923 } }, { 0x0001d924, 1, { 0x0001d924 } }, { 0x0001d925, 1, { 0x0001d925 } }, { 0x0001d926, 1, { 0x0001d926 } }, { 0x0001d927, 1, { 0x0001d927 } }, { 0x0001d928, 1, { 0x0001d928 } }, { 0x0001d929, 1, { 0x0001d929 } }, { 0x0001d92a, 1, { 0x0001d92a } }, { 0x0001d92b, 1, { 0x0001d92b } }, { 0x0001d92c, 1, { 0x0001d92c } }, { 0x0001d92d, 1, { 0x0001d92d } }, { 0x0001d92e, 1, { 0x0001d92e } }, { 0x0001d92f, 1, { 0x0001d92f } }, { 0x0001d930, 1, { 0x0001d930 } }, { 0x0001d931, 1, { 0x0001d931 } }, { 0x0001d932, 1, { 0x0001d932 } }, { 0x0001d933, 1, { 0x0001d933 } }, { 0x0001d934, 1, { 0x0001d934 } }, { 0x0001d935, 1, { 0x0001d935 } }, { 0x0001d936, 1, { 0x0001d936 } }, { 0x0001d937, 1, { 0x0001d937 } }, { 0x0001d938, 1, { 0x0001d938 } }, { 0x0001d939, 1, { 0x0001d939 } }, { 0x0001d93a, 1, { 0x0001d93a } }, { 0x0001d93b, 1, { 0x0001d93b } }, { 0x0001d93c, 1, { 0x0001d93c } }, { 0x0001d93d, 1, { 0x0001d93d } }, { 0x0001d93e, 1, { 0x0001d93e } }, { 0x0001d93f, 1, { 0x0001d93f } }, { 0x0001d940, 1, { 0x0001d940 } }, { 0x0001d941, 1, { 0x0001d941 } }, { 0x0001d942, 1, { 0x0001d942 } }, { 0x0001d943, 1, { 0x0001d943 } }, { 0x0001d944, 1, { 0x0001d944 } }, { 0x0001d945, 1, { 0x0001d945 } }, { 0x0001d946, 1, { 0x0001d946 } }, { 0x0001d947, 1, { 0x0001d947 } }, { 0x0001d948, 1, { 0x0001d948 } }, { 0x0001d949, 1, { 0x0001d949 } }, { 0x0001d94a, 1, { 0x0001d94a } }, { 0x0001d94b, 1, { 0x0001d94b } }, { 0x0001d94c, 1, { 0x0001d94c } }, { 0x0001d94d, 1, { 0x0001d94d } }, { 0x0001d94e, 1, { 0x0001d94e } }, { 0x0001d94f, 1, { 0x0001d94f } }, { 0x0001d950, 1, { 0x0001d950 } }, { 0x0001d951, 1, { 0x0001d951 } }, { 0x0001d952, 1, { 0x0001d952 } }, { 0x0001d953, 1, { 0x0001d953 } }, { 0x0001d954, 1, { 0x0001d954 } }, { 0x0001d955, 1, { 0x0001d955 } }, { 0x0001d956, 1, { 0x0001d956 } }, { 0x0001d957, 1, { 0x0001d957 } }, { 0x0001d958, 1, { 0x0001d958 } }, { 0x0001d959, 1, { 0x0001d959 } }, { 0x0001d95a, 1, { 0x0001d95a } }, { 0x0001d95b, 1, { 0x0001d95b } }, { 0x0001d95c, 1, { 0x0001d95c } }, { 0x0001d95d, 1, { 0x0001d95d } }, { 0x0001d95e, 1, { 0x0001d95e } }, { 0x0001d95f, 1, { 0x0001d95f } }, { 0x0001d960, 1, { 0x0001d960 } }, { 0x0001d961, 1, { 0x0001d961 } }, { 0x0001d962, 1, { 0x0001d962 } }, { 0x0001d963, 1, { 0x0001d963 } }, { 0x0001d964, 1, { 0x0001d964 } }, { 0x0001d965, 1, { 0x0001d965 } }, { 0x0001d966, 1, { 0x0001d966 } }, { 0x0001d967, 1, { 0x0001d967 } }, { 0x0001d968, 1, { 0x0001d968 } }, { 0x0001d969, 1, { 0x0001d969 } }, { 0x0001d96a, 1, { 0x0001d96a } }, { 0x0001d96b, 1, { 0x0001d96b } }, { 0x0001d96c, 1, { 0x0001d96c } }, { 0x0001d96d, 1, { 0x0001d96d } }, { 0x0001d96e, 1, { 0x0001d96e } }, { 0x0001d96f, 1, { 0x0001d96f } }, { 0x0001d970, 1, { 0x0001d970 } }, { 0x0001d971, 1, { 0x0001d971 } }, { 0x0001d972, 1, { 0x0001d972 } }, { 0x0001d973, 1, { 0x0001d973 } }, { 0x0001d974, 1, { 0x0001d974 } }, { 0x0001d975, 1, { 0x0001d975 } }, { 0x0001d976, 1, { 0x0001d976 } }, { 0x0001d977, 1, { 0x0001d977 } }, { 0x0001d978, 1, { 0x0001d978 } }, { 0x0001d979, 1, { 0x0001d979 } }, { 0x0001d97a, 1, { 0x0001d97a } }, { 0x0001d97b, 1, { 0x0001d97b } }, { 0x0001d97c, 1, { 0x0001d97c } }, { 0x0001d97d, 1, { 0x0001d97d } }, { 0x0001d97e, 1, { 0x0001d97e } }, { 0x0001d97f, 1, { 0x0001d97f } }, { 0x0001d980, 1, { 0x0001d980 } }, { 0x0001d981, 1, { 0x0001d981 } }, { 0x0001d982, 1, { 0x0001d982 } }, { 0x0001d983, 1, { 0x0001d983 } }, { 0x0001d984, 1, { 0x0001d984 } }, { 0x0001d985, 1, { 0x0001d985 } }, { 0x0001d986, 1, { 0x0001d986 } }, { 0x0001d987, 1, { 0x0001d987 } }, { 0x0001d988, 1, { 0x0001d988 } }, { 0x0001d989, 1, { 0x0001d989 } }, { 0x0001d98a, 1, { 0x0001d98a } }, { 0x0001d98b, 1, { 0x0001d98b } }, { 0x0001d98c, 1, { 0x0001d98c } }, { 0x0001d98d, 1, { 0x0001d98d } }, { 0x0001d98e, 1, { 0x0001d98e } }, { 0x0001d98f, 1, { 0x0001d98f } }, { 0x0001d990, 1, { 0x0001d990 } }, { 0x0001d991, 1, { 0x0001d991 } }, { 0x0001d992, 1, { 0x0001d992 } }, { 0x0001d993, 1, { 0x0001d993 } }, { 0x0001d994, 1, { 0x0001d994 } }, { 0x0001d995, 1, { 0x0001d995 } }, { 0x0001d996, 1, { 0x0001d996 } }, { 0x0001d997, 1, { 0x0001d997 } }, { 0x0001d998, 1, { 0x0001d998 } }, { 0x0001d999, 1, { 0x0001d999 } }, { 0x0001d99a, 1, { 0x0001d99a } }, { 0x0001d99b, 1, { 0x0001d99b } }, { 0x0001d99c, 1, { 0x0001d99c } }, { 0x0001d99d, 1, { 0x0001d99d } }, { 0x0001d99e, 1, { 0x0001d99e } }, { 0x0001d99f, 1, { 0x0001d99f } }, { 0x0001d9a0, 1, { 0x0001d9a0 } }, { 0x0001d9a1, 1, { 0x0001d9a1 } }, { 0x0001d9a2, 1, { 0x0001d9a2 } }, { 0x0001d9a3, 1, { 0x0001d9a3 } }, { 0x0001d9a4, 1, { 0x0001d9a4 } }, { 0x0001d9a5, 1, { 0x0001d9a5 } }, { 0x0001d9a6, 1, { 0x0001d9a6 } }, { 0x0001d9a7, 1, { 0x0001d9a7 } }, { 0x0001d9a8, 1, { 0x0001d9a8 } }, { 0x0001d9a9, 1, { 0x0001d9a9 } }, { 0x0001d9aa, 1, { 0x0001d9aa } }, { 0x0001d9ab, 1, { 0x0001d9ab } }, { 0x0001d9ac, 1, { 0x0001d9ac } }, { 0x0001d9ad, 1, { 0x0001d9ad } }, { 0x0001d9ae, 1, { 0x0001d9ae } }, { 0x0001d9af, 1, { 0x0001d9af } }, { 0x0001d9b0, 1, { 0x0001d9b0 } }, { 0x0001d9b1, 1, { 0x0001d9b1 } }, { 0x0001d9b2, 1, { 0x0001d9b2 } }, { 0x0001d9b3, 1, { 0x0001d9b3 } }, { 0x0001d9b4, 1, { 0x0001d9b4 } }, { 0x0001d9b5, 1, { 0x0001d9b5 } }, { 0x0001d9b6, 1, { 0x0001d9b6 } }, { 0x0001d9b7, 1, { 0x0001d9b7 } }, { 0x0001d9b8, 1, { 0x0001d9b8 } }, { 0x0001d9b9, 1, { 0x0001d9b9 } }, { 0x0001d9ba, 1, { 0x0001d9ba } }, { 0x0001d9bb, 1, { 0x0001d9bb } }, { 0x0001d9bc, 1, { 0x0001d9bc } }, { 0x0001d9bd, 1, { 0x0001d9bd } }, { 0x0001d9be, 1, { 0x0001d9be } }, { 0x0001d9bf, 1, { 0x0001d9bf } }, { 0x0001d9c0, 1, { 0x0001d9c0 } }, { 0x0001d9c1, 1, { 0x0001d9c1 } }, { 0x0001d9c2, 1, { 0x0001d9c2 } }, { 0x0001d9c3, 1, { 0x0001d9c3 } }, { 0x0001d9c4, 1, { 0x0001d9c4 } }, { 0x0001d9c5, 1, { 0x0001d9c5 } }, { 0x0001d9c6, 1, { 0x0001d9c6 } }, { 0x0001d9c7, 1, { 0x0001d9c7 } }, { 0x0001d9c8, 1, { 0x0001d9c8 } }, { 0x0001d9c9, 1, { 0x0001d9c9 } }, { 0x0001d9ca, 1, { 0x0001d9ca } }, { 0x0001d9cb, 1, { 0x0001d9cb } }, { 0x0001d9cc, 1, { 0x0001d9cc } }, { 0x0001d9cd, 1, { 0x0001d9cd } }, { 0x0001d9ce, 1, { 0x0001d9ce } }, { 0x0001d9cf, 1, { 0x0001d9cf } }, { 0x0001d9d0, 1, { 0x0001d9d0 } }, { 0x0001d9d1, 1, { 0x0001d9d1 } }, { 0x0001d9d2, 1, { 0x0001d9d2 } }, { 0x0001d9d3, 1, { 0x0001d9d3 } }, { 0x0001d9d4, 1, { 0x0001d9d4 } }, { 0x0001d9d5, 1, { 0x0001d9d5 } }, { 0x0001d9d6, 1, { 0x0001d9d6 } }, { 0x0001d9d7, 1, { 0x0001d9d7 } }, { 0x0001d9d8, 1, { 0x0001d9d8 } }, { 0x0001d9d9, 1, { 0x0001d9d9 } }, { 0x0001d9da, 1, { 0x0001d9da } }, { 0x0001d9db, 1, { 0x0001d9db } }, { 0x0001d9dc, 1, { 0x0001d9dc } }, { 0x0001d9dd, 1, { 0x0001d9dd } }, { 0x0001d9de, 1, { 0x0001d9de } }, { 0x0001d9df, 1, { 0x0001d9df } }, { 0x0001d9e0, 1, { 0x0001d9e0 } }, { 0x0001d9e1, 1, { 0x0001d9e1 } }, { 0x0001d9e2, 1, { 0x0001d9e2 } }, { 0x0001d9e3, 1, { 0x0001d9e3 } }, { 0x0001d9e4, 1, { 0x0001d9e4 } }, { 0x0001d9e5, 1, { 0x0001d9e5 } }, { 0x0001d9e6, 1, { 0x0001d9e6 } }, { 0x0001d9e7, 1, { 0x0001d9e7 } }, { 0x0001d9e8, 1, { 0x0001d9e8 } }, { 0x0001d9e9, 1, { 0x0001d9e9 } }, { 0x0001d9ea, 1, { 0x0001d9ea } }, { 0x0001d9eb, 1, { 0x0001d9eb } }, { 0x0001d9ec, 1, { 0x0001d9ec } }, { 0x0001d9ed, 1, { 0x0001d9ed } }, { 0x0001d9ee, 1, { 0x0001d9ee } }, { 0x0001d9ef, 1, { 0x0001d9ef } }, { 0x0001d9f0, 1, { 0x0001d9f0 } }, { 0x0001d9f1, 1, { 0x0001d9f1 } }, { 0x0001d9f2, 1, { 0x0001d9f2 } }, { 0x0001d9f3, 1, { 0x0001d9f3 } }, { 0x0001d9f4, 1, { 0x0001d9f4 } }, { 0x0001d9f5, 1, { 0x0001d9f5 } }, { 0x0001d9f6, 1, { 0x0001d9f6 } }, { 0x0001d9f7, 1, { 0x0001d9f7 } }, { 0x0001d9f8, 1, { 0x0001d9f8 } }, { 0x0001d9f9, 1, { 0x0001d9f9 } }, { 0x0001d9fa, 1, { 0x0001d9fa } }, { 0x0001d9fb, 1, { 0x0001d9fb } }, { 0x0001d9fc, 1, { 0x0001d9fc } }, { 0x0001d9fd, 1, { 0x0001d9fd } }, { 0x0001d9fe, 1, { 0x0001d9fe } }, { 0x0001d9ff, 1, { 0x0001d9ff } }, { 0x0001da00, 1, { 0x0001da00 } }, { 0x0001da01, 1, { 0x0001da01 } }, { 0x0001da02, 1, { 0x0001da02 } }, { 0x0001da03, 1, { 0x0001da03 } }, { 0x0001da04, 1, { 0x0001da04 } }, { 0x0001da05, 1, { 0x0001da05 } }, { 0x0001da06, 1, { 0x0001da06 } }, { 0x0001da07, 1, { 0x0001da07 } }, { 0x0001da08, 1, { 0x0001da08 } }, { 0x0001da09, 1, { 0x0001da09 } }, { 0x0001da0a, 1, { 0x0001da0a } }, { 0x0001da0b, 1, { 0x0001da0b } }, { 0x0001da0c, 1, { 0x0001da0c } }, { 0x0001da0d, 1, { 0x0001da0d } }, { 0x0001da0e, 1, { 0x0001da0e } }, { 0x0001da0f, 1, { 0x0001da0f } }, { 0x0001da10, 1, { 0x0001da10 } }, { 0x0001da11, 1, { 0x0001da11 } }, { 0x0001da12, 1, { 0x0001da12 } }, { 0x0001da13, 1, { 0x0001da13 } }, { 0x0001da14, 1, { 0x0001da14 } }, { 0x0001da15, 1, { 0x0001da15 } }, { 0x0001da16, 1, { 0x0001da16 } }, { 0x0001da17, 1, { 0x0001da17 } }, { 0x0001da18, 1, { 0x0001da18 } }, { 0x0001da19, 1, { 0x0001da19 } }, { 0x0001da1a, 1, { 0x0001da1a } }, { 0x0001da1b, 1, { 0x0001da1b } }, { 0x0001da1c, 1, { 0x0001da1c } }, { 0x0001da1d, 1, { 0x0001da1d } }, { 0x0001da1e, 1, { 0x0001da1e } }, { 0x0001da1f, 1, { 0x0001da1f } }, { 0x0001da20, 1, { 0x0001da20 } }, { 0x0001da21, 1, { 0x0001da21 } }, { 0x0001da22, 1, { 0x0001da22 } }, { 0x0001da23, 1, { 0x0001da23 } }, { 0x0001da24, 1, { 0x0001da24 } }, { 0x0001da25, 1, { 0x0001da25 } }, { 0x0001da26, 1, { 0x0001da26 } }, { 0x0001da27, 1, { 0x0001da27 } }, { 0x0001da28, 1, { 0x0001da28 } }, { 0x0001da29, 1, { 0x0001da29 } }, { 0x0001da2a, 1, { 0x0001da2a } }, { 0x0001da2b, 1, { 0x0001da2b } }, { 0x0001da2c, 1, { 0x0001da2c } }, { 0x0001da2d, 1, { 0x0001da2d } }, { 0x0001da2e, 1, { 0x0001da2e } }, { 0x0001da2f, 1, { 0x0001da2f } }, { 0x0001da30, 1, { 0x0001da30 } }, { 0x0001da31, 1, { 0x0001da31 } }, { 0x0001da32, 1, { 0x0001da32 } }, { 0x0001da33, 1, { 0x0001da33 } }, { 0x0001da34, 1, { 0x0001da34 } }, { 0x0001da35, 1, { 0x0001da35 } }, { 0x0001da36, 1, { 0x0001da36 } }, { 0x0001da37, 1, { 0x0001da37 } }, { 0x0001da38, 1, { 0x0001da38 } }, { 0x0001da39, 1, { 0x0001da39 } }, { 0x0001da3a, 1, { 0x0001da3a } }, { 0x0001da3b, 1, { 0x0001da3b } }, { 0x0001da3c, 1, { 0x0001da3c } }, { 0x0001da3d, 1, { 0x0001da3d } }, { 0x0001da3e, 1, { 0x0001da3e } }, { 0x0001da3f, 1, { 0x0001da3f } }, { 0x0001da40, 1, { 0x0001da40 } }, { 0x0001da41, 1, { 0x0001da41 } }, { 0x0001da42, 1, { 0x0001da42 } }, { 0x0001da43, 1, { 0x0001da43 } }, { 0x0001da44, 1, { 0x0001da44 } }, { 0x0001da45, 1, { 0x0001da45 } }, { 0x0001da46, 1, { 0x0001da46 } }, { 0x0001da47, 1, { 0x0001da47 } }, { 0x0001da48, 1, { 0x0001da48 } }, { 0x0001da49, 1, { 0x0001da49 } }, { 0x0001da4a, 1, { 0x0001da4a } }, { 0x0001da4b, 1, { 0x0001da4b } }, { 0x0001da4c, 1, { 0x0001da4c } }, { 0x0001da4d, 1, { 0x0001da4d } }, { 0x0001da4e, 1, { 0x0001da4e } }, { 0x0001da4f, 1, { 0x0001da4f } }, { 0x0001da50, 1, { 0x0001da50 } }, { 0x0001da51, 1, { 0x0001da51 } }, { 0x0001da52, 1, { 0x0001da52 } }, { 0x0001da53, 1, { 0x0001da53 } }, { 0x0001da54, 1, { 0x0001da54 } }, { 0x0001da55, 1, { 0x0001da55 } }, { 0x0001da56, 1, { 0x0001da56 } }, { 0x0001da57, 1, { 0x0001da57 } }, { 0x0001da58, 1, { 0x0001da58 } }, { 0x0001da59, 1, { 0x0001da59 } }, { 0x0001da5a, 1, { 0x0001da5a } }, { 0x0001da5b, 1, { 0x0001da5b } }, { 0x0001da5c, 1, { 0x0001da5c } }, { 0x0001da5d, 1, { 0x0001da5d } }, { 0x0001da5e, 1, { 0x0001da5e } }, { 0x0001da5f, 1, { 0x0001da5f } }, { 0x0001da60, 1, { 0x0001da60 } }, { 0x0001da61, 1, { 0x0001da61 } }, { 0x0001da62, 1, { 0x0001da62 } }, { 0x0001da63, 1, { 0x0001da63 } }, { 0x0001da64, 1, { 0x0001da64 } }, { 0x0001da65, 1, { 0x0001da65 } }, { 0x0001da66, 1, { 0x0001da66 } }, { 0x0001da67, 1, { 0x0001da67 } }, { 0x0001da68, 1, { 0x0001da68 } }, { 0x0001da69, 1, { 0x0001da69 } }, { 0x0001da6a, 1, { 0x0001da6a } }, { 0x0001da6b, 1, { 0x0001da6b } }, { 0x0001da6c, 1, { 0x0001da6c } }, { 0x0001da6d, 1, { 0x0001da6d } }, { 0x0001da6e, 1, { 0x0001da6e } }, { 0x0001da6f, 1, { 0x0001da6f } }, { 0x0001da70, 1, { 0x0001da70 } }, { 0x0001da71, 1, { 0x0001da71 } }, { 0x0001da72, 1, { 0x0001da72 } }, { 0x0001da73, 1, { 0x0001da73 } }, { 0x0001da74, 1, { 0x0001da74 } }, { 0x0001da75, 1, { 0x0001da75 } }, { 0x0001da76, 1, { 0x0001da76 } }, { 0x0001da77, 1, { 0x0001da77 } }, { 0x0001da78, 1, { 0x0001da78 } }, { 0x0001da79, 1, { 0x0001da79 } }, { 0x0001da7a, 1, { 0x0001da7a } }, { 0x0001da7b, 1, { 0x0001da7b } }, { 0x0001da7c, 1, { 0x0001da7c } }, { 0x0001da7d, 1, { 0x0001da7d } }, { 0x0001da7e, 1, { 0x0001da7e } }, { 0x0001da7f, 1, { 0x0001da7f } }, { 0x0001da80, 1, { 0x0001da80 } }, { 0x0001da81, 1, { 0x0001da81 } }, { 0x0001da82, 1, { 0x0001da82 } }, { 0x0001da83, 1, { 0x0001da83 } }, { 0x0001da84, 1, { 0x0001da84 } }, { 0x0001da85, 1, { 0x0001da85 } }, { 0x0001da86, 1, { 0x0001da86 } }, { 0x0001da87, 1, { 0x0001da87 } }, { 0x0001da88, 1, { 0x0001da88 } }, { 0x0001da89, 1, { 0x0001da89 } }, { 0x0001da8a, 1, { 0x0001da8a } }, { 0x0001da8b, 1, { 0x0001da8b } }, { 0x0001da9b, 1, { 0x0001da9b } }, { 0x0001da9c, 1, { 0x0001da9c } }, { 0x0001da9d, 1, { 0x0001da9d } }, { 0x0001da9e, 1, { 0x0001da9e } }, { 0x0001da9f, 1, { 0x0001da9f } }, { 0x0001daa1, 1, { 0x0001daa1 } }, { 0x0001daa2, 1, { 0x0001daa2 } }, { 0x0001daa3, 1, { 0x0001daa3 } }, { 0x0001daa4, 1, { 0x0001daa4 } }, { 0x0001daa5, 1, { 0x0001daa5 } }, { 0x0001daa6, 1, { 0x0001daa6 } }, { 0x0001daa7, 1, { 0x0001daa7 } }, { 0x0001daa8, 1, { 0x0001daa8 } }, { 0x0001daa9, 1, { 0x0001daa9 } }, { 0x0001daaa, 1, { 0x0001daaa } }, { 0x0001daab, 1, { 0x0001daab } }, { 0x0001daac, 1, { 0x0001daac } }, { 0x0001daad, 1, { 0x0001daad } }, { 0x0001daae, 1, { 0x0001daae } }, { 0x0001daaf, 1, { 0x0001daaf } }, { 0x0001e000, 1, { 0x0001e000 } }, { 0x0001e001, 1, { 0x0001e001 } }, { 0x0001e002, 1, { 0x0001e002 } }, { 0x0001e003, 1, { 0x0001e003 } }, { 0x0001e004, 1, { 0x0001e004 } }, { 0x0001e005, 1, { 0x0001e005 } }, { 0x0001e006, 1, { 0x0001e006 } }, { 0x0001e008, 1, { 0x0001e008 } }, { 0x0001e009, 1, { 0x0001e009 } }, { 0x0001e00a, 1, { 0x0001e00a } }, { 0x0001e00b, 1, { 0x0001e00b } }, { 0x0001e00c, 1, { 0x0001e00c } }, { 0x0001e00d, 1, { 0x0001e00d } }, { 0x0001e00e, 1, { 0x0001e00e } }, { 0x0001e00f, 1, { 0x0001e00f } }, { 0x0001e010, 1, { 0x0001e010 } }, { 0x0001e011, 1, { 0x0001e011 } }, { 0x0001e012, 1, { 0x0001e012 } }, { 0x0001e013, 1, { 0x0001e013 } }, { 0x0001e014, 1, { 0x0001e014 } }, { 0x0001e015, 1, { 0x0001e015 } }, { 0x0001e016, 1, { 0x0001e016 } }, { 0x0001e017, 1, { 0x0001e017 } }, { 0x0001e018, 1, { 0x0001e018 } }, { 0x0001e01b, 1, { 0x0001e01b } }, { 0x0001e01c, 1, { 0x0001e01c } }, { 0x0001e01d, 1, { 0x0001e01d } }, { 0x0001e01e, 1, { 0x0001e01e } }, { 0x0001e01f, 1, { 0x0001e01f } }, { 0x0001e020, 1, { 0x0001e020 } }, { 0x0001e021, 1, { 0x0001e021 } }, { 0x0001e023, 1, { 0x0001e023 } }, { 0x0001e024, 1, { 0x0001e024 } }, { 0x0001e026, 1, { 0x0001e026 } }, { 0x0001e027, 1, { 0x0001e027 } }, { 0x0001e028, 1, { 0x0001e028 } }, { 0x0001e029, 1, { 0x0001e029 } }, { 0x0001e02a, 1, { 0x0001e02a } }, { 0x0001e800, 1, { 0x0001e800 } }, { 0x0001e801, 1, { 0x0001e801 } }, { 0x0001e802, 1, { 0x0001e802 } }, { 0x0001e803, 1, { 0x0001e803 } }, { 0x0001e804, 1, { 0x0001e804 } }, { 0x0001e805, 1, { 0x0001e805 } }, { 0x0001e806, 1, { 0x0001e806 } }, { 0x0001e807, 1, { 0x0001e807 } }, { 0x0001e808, 1, { 0x0001e808 } }, { 0x0001e809, 1, { 0x0001e809 } }, { 0x0001e80a, 1, { 0x0001e80a } }, { 0x0001e80b, 1, { 0x0001e80b } }, { 0x0001e80c, 1, { 0x0001e80c } }, { 0x0001e80d, 1, { 0x0001e80d } }, { 0x0001e80e, 1, { 0x0001e80e } }, { 0x0001e80f, 1, { 0x0001e80f } }, { 0x0001e810, 1, { 0x0001e810 } }, { 0x0001e811, 1, { 0x0001e811 } }, { 0x0001e812, 1, { 0x0001e812 } }, { 0x0001e813, 1, { 0x0001e813 } }, { 0x0001e814, 1, { 0x0001e814 } }, { 0x0001e815, 1, { 0x0001e815 } }, { 0x0001e816, 1, { 0x0001e816 } }, { 0x0001e817, 1, { 0x0001e817 } }, { 0x0001e818, 1, { 0x0001e818 } }, { 0x0001e819, 1, { 0x0001e819 } }, { 0x0001e81a, 1, { 0x0001e81a } }, { 0x0001e81b, 1, { 0x0001e81b } }, { 0x0001e81c, 1, { 0x0001e81c } }, { 0x0001e81d, 1, { 0x0001e81d } }, { 0x0001e81e, 1, { 0x0001e81e } }, { 0x0001e81f, 1, { 0x0001e81f } }, { 0x0001e820, 1, { 0x0001e820 } }, { 0x0001e821, 1, { 0x0001e821 } }, { 0x0001e822, 1, { 0x0001e822 } }, { 0x0001e823, 1, { 0x0001e823 } }, { 0x0001e824, 1, { 0x0001e824 } }, { 0x0001e825, 1, { 0x0001e825 } }, { 0x0001e826, 1, { 0x0001e826 } }, { 0x0001e827, 1, { 0x0001e827 } }, { 0x0001e828, 1, { 0x0001e828 } }, { 0x0001e829, 1, { 0x0001e829 } }, { 0x0001e82a, 1, { 0x0001e82a } }, { 0x0001e82b, 1, { 0x0001e82b } }, { 0x0001e82c, 1, { 0x0001e82c } }, { 0x0001e82d, 1, { 0x0001e82d } }, { 0x0001e82e, 1, { 0x0001e82e } }, { 0x0001e82f, 1, { 0x0001e82f } }, { 0x0001e830, 1, { 0x0001e830 } }, { 0x0001e831, 1, { 0x0001e831 } }, { 0x0001e832, 1, { 0x0001e832 } }, { 0x0001e833, 1, { 0x0001e833 } }, { 0x0001e834, 1, { 0x0001e834 } }, { 0x0001e835, 1, { 0x0001e835 } }, { 0x0001e836, 1, { 0x0001e836 } }, { 0x0001e837, 1, { 0x0001e837 } }, { 0x0001e838, 1, { 0x0001e838 } }, { 0x0001e839, 1, { 0x0001e839 } }, { 0x0001e83a, 1, { 0x0001e83a } }, { 0x0001e83b, 1, { 0x0001e83b } }, { 0x0001e83c, 1, { 0x0001e83c } }, { 0x0001e83d, 1, { 0x0001e83d } }, { 0x0001e83e, 1, { 0x0001e83e } }, { 0x0001e83f, 1, { 0x0001e83f } }, { 0x0001e840, 1, { 0x0001e840 } }, { 0x0001e841, 1, { 0x0001e841 } }, { 0x0001e842, 1, { 0x0001e842 } }, { 0x0001e843, 1, { 0x0001e843 } }, { 0x0001e844, 1, { 0x0001e844 } }, { 0x0001e845, 1, { 0x0001e845 } }, { 0x0001e846, 1, { 0x0001e846 } }, { 0x0001e847, 1, { 0x0001e847 } }, { 0x0001e848, 1, { 0x0001e848 } }, { 0x0001e849, 1, { 0x0001e849 } }, { 0x0001e84a, 1, { 0x0001e84a } }, { 0x0001e84b, 1, { 0x0001e84b } }, { 0x0001e84c, 1, { 0x0001e84c } }, { 0x0001e84d, 1, { 0x0001e84d } }, { 0x0001e84e, 1, { 0x0001e84e } }, { 0x0001e84f, 1, { 0x0001e84f } }, { 0x0001e850, 1, { 0x0001e850 } }, { 0x0001e851, 1, { 0x0001e851 } }, { 0x0001e852, 1, { 0x0001e852 } }, { 0x0001e853, 1, { 0x0001e853 } }, { 0x0001e854, 1, { 0x0001e854 } }, { 0x0001e855, 1, { 0x0001e855 } }, { 0x0001e856, 1, { 0x0001e856 } }, { 0x0001e857, 1, { 0x0001e857 } }, { 0x0001e858, 1, { 0x0001e858 } }, { 0x0001e859, 1, { 0x0001e859 } }, { 0x0001e85a, 1, { 0x0001e85a } }, { 0x0001e85b, 1, { 0x0001e85b } }, { 0x0001e85c, 1, { 0x0001e85c } }, { 0x0001e85d, 1, { 0x0001e85d } }, { 0x0001e85e, 1, { 0x0001e85e } }, { 0x0001e85f, 1, { 0x0001e85f } }, { 0x0001e860, 1, { 0x0001e860 } }, { 0x0001e861, 1, { 0x0001e861 } }, { 0x0001e862, 1, { 0x0001e862 } }, { 0x0001e863, 1, { 0x0001e863 } }, { 0x0001e864, 1, { 0x0001e864 } }, { 0x0001e865, 1, { 0x0001e865 } }, { 0x0001e866, 1, { 0x0001e866 } }, { 0x0001e867, 1, { 0x0001e867 } }, { 0x0001e868, 1, { 0x0001e868 } }, { 0x0001e869, 1, { 0x0001e869 } }, { 0x0001e86a, 1, { 0x0001e86a } }, { 0x0001e86b, 1, { 0x0001e86b } }, { 0x0001e86c, 1, { 0x0001e86c } }, { 0x0001e86d, 1, { 0x0001e86d } }, { 0x0001e86e, 1, { 0x0001e86e } }, { 0x0001e86f, 1, { 0x0001e86f } }, { 0x0001e870, 1, { 0x0001e870 } }, { 0x0001e871, 1, { 0x0001e871 } }, { 0x0001e872, 1, { 0x0001e872 } }, { 0x0001e873, 1, { 0x0001e873 } }, { 0x0001e874, 1, { 0x0001e874 } }, { 0x0001e875, 1, { 0x0001e875 } }, { 0x0001e876, 1, { 0x0001e876 } }, { 0x0001e877, 1, { 0x0001e877 } }, { 0x0001e878, 1, { 0x0001e878 } }, { 0x0001e879, 1, { 0x0001e879 } }, { 0x0001e87a, 1, { 0x0001e87a } }, { 0x0001e87b, 1, { 0x0001e87b } }, { 0x0001e87c, 1, { 0x0001e87c } }, { 0x0001e87d, 1, { 0x0001e87d } }, { 0x0001e87e, 1, { 0x0001e87e } }, { 0x0001e87f, 1, { 0x0001e87f } }, { 0x0001e880, 1, { 0x0001e880 } }, { 0x0001e881, 1, { 0x0001e881 } }, { 0x0001e882, 1, { 0x0001e882 } }, { 0x0001e883, 1, { 0x0001e883 } }, { 0x0001e884, 1, { 0x0001e884 } }, { 0x0001e885, 1, { 0x0001e885 } }, { 0x0001e886, 1, { 0x0001e886 } }, { 0x0001e887, 1, { 0x0001e887 } }, { 0x0001e888, 1, { 0x0001e888 } }, { 0x0001e889, 1, { 0x0001e889 } }, { 0x0001e88a, 1, { 0x0001e88a } }, { 0x0001e88b, 1, { 0x0001e88b } }, { 0x0001e88c, 1, { 0x0001e88c } }, { 0x0001e88d, 1, { 0x0001e88d } }, { 0x0001e88e, 1, { 0x0001e88e } }, { 0x0001e88f, 1, { 0x0001e88f } }, { 0x0001e890, 1, { 0x0001e890 } }, { 0x0001e891, 1, { 0x0001e891 } }, { 0x0001e892, 1, { 0x0001e892 } }, { 0x0001e893, 1, { 0x0001e893 } }, { 0x0001e894, 1, { 0x0001e894 } }, { 0x0001e895, 1, { 0x0001e895 } }, { 0x0001e896, 1, { 0x0001e896 } }, { 0x0001e897, 1, { 0x0001e897 } }, { 0x0001e898, 1, { 0x0001e898 } }, { 0x0001e899, 1, { 0x0001e899 } }, { 0x0001e89a, 1, { 0x0001e89a } }, { 0x0001e89b, 1, { 0x0001e89b } }, { 0x0001e89c, 1, { 0x0001e89c } }, { 0x0001e89d, 1, { 0x0001e89d } }, { 0x0001e89e, 1, { 0x0001e89e } }, { 0x0001e89f, 1, { 0x0001e89f } }, { 0x0001e8a0, 1, { 0x0001e8a0 } }, { 0x0001e8a1, 1, { 0x0001e8a1 } }, { 0x0001e8a2, 1, { 0x0001e8a2 } }, { 0x0001e8a3, 1, { 0x0001e8a3 } }, { 0x0001e8a4, 1, { 0x0001e8a4 } }, { 0x0001e8a5, 1, { 0x0001e8a5 } }, { 0x0001e8a6, 1, { 0x0001e8a6 } }, { 0x0001e8a7, 1, { 0x0001e8a7 } }, { 0x0001e8a8, 1, { 0x0001e8a8 } }, { 0x0001e8a9, 1, { 0x0001e8a9 } }, { 0x0001e8aa, 1, { 0x0001e8aa } }, { 0x0001e8ab, 1, { 0x0001e8ab } }, { 0x0001e8ac, 1, { 0x0001e8ac } }, { 0x0001e8ad, 1, { 0x0001e8ad } }, { 0x0001e8ae, 1, { 0x0001e8ae } }, { 0x0001e8af, 1, { 0x0001e8af } }, { 0x0001e8b0, 1, { 0x0001e8b0 } }, { 0x0001e8b1, 1, { 0x0001e8b1 } }, { 0x0001e8b2, 1, { 0x0001e8b2 } }, { 0x0001e8b3, 1, { 0x0001e8b3 } }, { 0x0001e8b4, 1, { 0x0001e8b4 } }, { 0x0001e8b5, 1, { 0x0001e8b5 } }, { 0x0001e8b6, 1, { 0x0001e8b6 } }, { 0x0001e8b7, 1, { 0x0001e8b7 } }, { 0x0001e8b8, 1, { 0x0001e8b8 } }, { 0x0001e8b9, 1, { 0x0001e8b9 } }, { 0x0001e8ba, 1, { 0x0001e8ba } }, { 0x0001e8bb, 1, { 0x0001e8bb } }, { 0x0001e8bc, 1, { 0x0001e8bc } }, { 0x0001e8bd, 1, { 0x0001e8bd } }, { 0x0001e8be, 1, { 0x0001e8be } }, { 0x0001e8bf, 1, { 0x0001e8bf } }, { 0x0001e8c0, 1, { 0x0001e8c0 } }, { 0x0001e8c1, 1, { 0x0001e8c1 } }, { 0x0001e8c2, 1, { 0x0001e8c2 } }, { 0x0001e8c3, 1, { 0x0001e8c3 } }, { 0x0001e8c4, 1, { 0x0001e8c4 } }, { 0x0001e8c7, 1, { 0x0001e8c7 } }, { 0x0001e8c8, 1, { 0x0001e8c8 } }, { 0x0001e8c9, 1, { 0x0001e8c9 } }, { 0x0001e8ca, 1, { 0x0001e8ca } }, { 0x0001e8cb, 1, { 0x0001e8cb } }, { 0x0001e8cc, 1, { 0x0001e8cc } }, { 0x0001e8cd, 1, { 0x0001e8cd } }, { 0x0001e8ce, 1, { 0x0001e8ce } }, { 0x0001e8cf, 1, { 0x0001e8cf } }, { 0x0001e8d0, 1, { 0x0001e8d0 } }, { 0x0001e8d1, 1, { 0x0001e8d1 } }, { 0x0001e8d2, 1, { 0x0001e8d2 } }, { 0x0001e8d3, 1, { 0x0001e8d3 } }, { 0x0001e8d4, 1, { 0x0001e8d4 } }, { 0x0001e8d5, 1, { 0x0001e8d5 } }, { 0x0001e8d6, 1, { 0x0001e8d6 } }, { 0x0001e900, 1, { 0x0001e900 } }, { 0x0001e901, 1, { 0x0001e901 } }, { 0x0001e902, 1, { 0x0001e902 } }, { 0x0001e903, 1, { 0x0001e903 } }, { 0x0001e904, 1, { 0x0001e904 } }, { 0x0001e905, 1, { 0x0001e905 } }, { 0x0001e906, 1, { 0x0001e906 } }, { 0x0001e907, 1, { 0x0001e907 } }, { 0x0001e908, 1, { 0x0001e908 } }, { 0x0001e909, 1, { 0x0001e909 } }, { 0x0001e90a, 1, { 0x0001e90a } }, { 0x0001e90b, 1, { 0x0001e90b } }, { 0x0001e90c, 1, { 0x0001e90c } }, { 0x0001e90d, 1, { 0x0001e90d } }, { 0x0001e90e, 1, { 0x0001e90e } }, { 0x0001e90f, 1, { 0x0001e90f } }, { 0x0001e910, 1, { 0x0001e910 } }, { 0x0001e911, 1, { 0x0001e911 } }, { 0x0001e912, 1, { 0x0001e912 } }, { 0x0001e913, 1, { 0x0001e913 } }, { 0x0001e914, 1, { 0x0001e914 } }, { 0x0001e915, 1, { 0x0001e915 } }, { 0x0001e916, 1, { 0x0001e916 } }, { 0x0001e917, 1, { 0x0001e917 } }, { 0x0001e918, 1, { 0x0001e918 } }, { 0x0001e919, 1, { 0x0001e919 } }, { 0x0001e91a, 1, { 0x0001e91a } }, { 0x0001e91b, 1, { 0x0001e91b } }, { 0x0001e91c, 1, { 0x0001e91c } }, { 0x0001e91d, 1, { 0x0001e91d } }, { 0x0001e91e, 1, { 0x0001e91e } }, { 0x0001e91f, 1, { 0x0001e91f } }, { 0x0001e920, 1, { 0x0001e920 } }, { 0x0001e921, 1, { 0x0001e921 } }, { 0x0001e922, 1, { 0x0001e922 } }, { 0x0001e923, 1, { 0x0001e923 } }, { 0x0001e924, 1, { 0x0001e924 } }, { 0x0001e925, 1, { 0x0001e925 } }, { 0x0001e926, 1, { 0x0001e926 } }, { 0x0001e927, 1, { 0x0001e927 } }, { 0x0001e928, 1, { 0x0001e928 } }, { 0x0001e929, 1, { 0x0001e929 } }, { 0x0001e92a, 1, { 0x0001e92a } }, { 0x0001e92b, 1, { 0x0001e92b } }, { 0x0001e92c, 1, { 0x0001e92c } }, { 0x0001e92d, 1, { 0x0001e92d } }, { 0x0001e92e, 1, { 0x0001e92e } }, { 0x0001e92f, 1, { 0x0001e92f } }, { 0x0001e930, 1, { 0x0001e930 } }, { 0x0001e931, 1, { 0x0001e931 } }, { 0x0001e932, 1, { 0x0001e932 } }, { 0x0001e933, 1, { 0x0001e933 } }, { 0x0001e934, 1, { 0x0001e934 } }, { 0x0001e935, 1, { 0x0001e935 } }, { 0x0001e936, 1, { 0x0001e936 } }, { 0x0001e937, 1, { 0x0001e937 } }, { 0x0001e938, 1, { 0x0001e938 } }, { 0x0001e939, 1, { 0x0001e939 } }, { 0x0001e93a, 1, { 0x0001e93a } }, { 0x0001e93b, 1, { 0x0001e93b } }, { 0x0001e93c, 1, { 0x0001e93c } }, { 0x0001e93d, 1, { 0x0001e93d } }, { 0x0001e93e, 1, { 0x0001e93e } }, { 0x0001e93f, 1, { 0x0001e93f } }, { 0x0001e940, 1, { 0x0001e940 } }, { 0x0001e941, 1, { 0x0001e941 } }, { 0x0001e942, 1, { 0x0001e942 } }, { 0x0001e943, 1, { 0x0001e943 } }, { 0x0001e944, 1, { 0x0001e944 } }, { 0x0001e945, 1, { 0x0001e945 } }, { 0x0001e946, 1, { 0x0001e946 } }, { 0x0001e947, 1, { 0x0001e947 } }, { 0x0001e948, 1, { 0x0001e948 } }, { 0x0001e949, 1, { 0x0001e949 } }, { 0x0001e94a, 1, { 0x0001e94a } }, { 0x0001e950, 1, { 0x0001e950 } }, { 0x0001e951, 1, { 0x0001e951 } }, { 0x0001e952, 1, { 0x0001e952 } }, { 0x0001e953, 1, { 0x0001e953 } }, { 0x0001e954, 1, { 0x0001e954 } }, { 0x0001e955, 1, { 0x0001e955 } }, { 0x0001e956, 1, { 0x0001e956 } }, { 0x0001e957, 1, { 0x0001e957 } }, { 0x0001e958, 1, { 0x0001e958 } }, { 0x0001e959, 1, { 0x0001e959 } }, { 0x0001e95e, 1, { 0x0001e95e } }, { 0x0001e95f, 1, { 0x0001e95f } }, { 0x0001ee00, 1, { 0x0001ee00 } }, { 0x0001ee01, 1, { 0x0001ee01 } }, { 0x0001ee02, 1, { 0x0001ee02 } }, { 0x0001ee03, 1, { 0x0001ee03 } }, { 0x0001ee05, 1, { 0x0001ee05 } }, { 0x0001ee06, 1, { 0x0001ee06 } }, { 0x0001ee07, 1, { 0x0001ee07 } }, { 0x0001ee08, 1, { 0x0001ee08 } }, { 0x0001ee09, 1, { 0x0001ee09 } }, { 0x0001ee0a, 1, { 0x0001ee0a } }, { 0x0001ee0b, 1, { 0x0001ee0b } }, { 0x0001ee0c, 1, { 0x0001ee0c } }, { 0x0001ee0d, 1, { 0x0001ee0d } }, { 0x0001ee0e, 1, { 0x0001ee0e } }, { 0x0001ee0f, 1, { 0x0001ee0f } }, { 0x0001ee10, 1, { 0x0001ee10 } }, { 0x0001ee11, 1, { 0x0001ee11 } }, { 0x0001ee12, 1, { 0x0001ee12 } }, { 0x0001ee13, 1, { 0x0001ee13 } }, { 0x0001ee14, 1, { 0x0001ee14 } }, { 0x0001ee15, 1, { 0x0001ee15 } }, { 0x0001ee16, 1, { 0x0001ee16 } }, { 0x0001ee17, 1, { 0x0001ee17 } }, { 0x0001ee18, 1, { 0x0001ee18 } }, { 0x0001ee19, 1, { 0x0001ee19 } }, { 0x0001ee1a, 1, { 0x0001ee1a } }, { 0x0001ee1b, 1, { 0x0001ee1b } }, { 0x0001ee1c, 1, { 0x0001ee1c } }, { 0x0001ee1d, 1, { 0x0001ee1d } }, { 0x0001ee1e, 1, { 0x0001ee1e } }, { 0x0001ee1f, 1, { 0x0001ee1f } }, { 0x0001ee21, 1, { 0x0001ee21 } }, { 0x0001ee22, 1, { 0x0001ee22 } }, { 0x0001ee24, 1, { 0x0001ee24 } }, { 0x0001ee27, 1, { 0x0001ee27 } }, { 0x0001ee29, 1, { 0x0001ee29 } }, { 0x0001ee2a, 1, { 0x0001ee2a } }, { 0x0001ee2b, 1, { 0x0001ee2b } }, { 0x0001ee2c, 1, { 0x0001ee2c } }, { 0x0001ee2d, 1, { 0x0001ee2d } }, { 0x0001ee2e, 1, { 0x0001ee2e } }, { 0x0001ee2f, 1, { 0x0001ee2f } }, { 0x0001ee30, 1, { 0x0001ee30 } }, { 0x0001ee31, 1, { 0x0001ee31 } }, { 0x0001ee32, 1, { 0x0001ee32 } }, { 0x0001ee34, 1, { 0x0001ee34 } }, { 0x0001ee35, 1, { 0x0001ee35 } }, { 0x0001ee36, 1, { 0x0001ee36 } }, { 0x0001ee37, 1, { 0x0001ee37 } }, { 0x0001ee39, 1, { 0x0001ee39 } }, { 0x0001ee3b, 1, { 0x0001ee3b } }, { 0x0001ee42, 1, { 0x0001ee42 } }, { 0x0001ee47, 1, { 0x0001ee47 } }, { 0x0001ee49, 1, { 0x0001ee49 } }, { 0x0001ee4b, 1, { 0x0001ee4b } }, { 0x0001ee4d, 1, { 0x0001ee4d } }, { 0x0001ee4e, 1, { 0x0001ee4e } }, { 0x0001ee4f, 1, { 0x0001ee4f } }, { 0x0001ee51, 1, { 0x0001ee51 } }, { 0x0001ee52, 1, { 0x0001ee52 } }, { 0x0001ee54, 1, { 0x0001ee54 } }, { 0x0001ee57, 1, { 0x0001ee57 } }, { 0x0001ee59, 1, { 0x0001ee59 } }, { 0x0001ee5b, 1, { 0x0001ee5b } }, { 0x0001ee5d, 1, { 0x0001ee5d } }, { 0x0001ee5f, 1, { 0x0001ee5f } }, { 0x0001ee61, 1, { 0x0001ee61 } }, { 0x0001ee62, 1, { 0x0001ee62 } }, { 0x0001ee64, 1, { 0x0001ee64 } }, { 0x0001ee67, 1, { 0x0001ee67 } }, { 0x0001ee68, 1, { 0x0001ee68 } }, { 0x0001ee69, 1, { 0x0001ee69 } }, { 0x0001ee6a, 1, { 0x0001ee6a } }, { 0x0001ee6c, 1, { 0x0001ee6c } }, { 0x0001ee6d, 1, { 0x0001ee6d } }, { 0x0001ee6e, 1, { 0x0001ee6e } }, { 0x0001ee6f, 1, { 0x0001ee6f } }, { 0x0001ee70, 1, { 0x0001ee70 } }, { 0x0001ee71, 1, { 0x0001ee71 } }, { 0x0001ee72, 1, { 0x0001ee72 } }, { 0x0001ee74, 1, { 0x0001ee74 } }, { 0x0001ee75, 1, { 0x0001ee75 } }, { 0x0001ee76, 1, { 0x0001ee76 } }, { 0x0001ee77, 1, { 0x0001ee77 } }, { 0x0001ee79, 1, { 0x0001ee79 } }, { 0x0001ee7a, 1, { 0x0001ee7a } }, { 0x0001ee7b, 1, { 0x0001ee7b } }, { 0x0001ee7c, 1, { 0x0001ee7c } }, { 0x0001ee7e, 1, { 0x0001ee7e } }, { 0x0001ee80, 1, { 0x0001ee80 } }, { 0x0001ee81, 1, { 0x0001ee81 } }, { 0x0001ee82, 1, { 0x0001ee82 } }, { 0x0001ee83, 1, { 0x0001ee83 } }, { 0x0001ee84, 1, { 0x0001ee84 } }, { 0x0001ee85, 1, { 0x0001ee85 } }, { 0x0001ee86, 1, { 0x0001ee86 } }, { 0x0001ee87, 1, { 0x0001ee87 } }, { 0x0001ee88, 1, { 0x0001ee88 } }, { 0x0001ee89, 1, { 0x0001ee89 } }, { 0x0001ee8b, 1, { 0x0001ee8b } }, { 0x0001ee8c, 1, { 0x0001ee8c } }, { 0x0001ee8d, 1, { 0x0001ee8d } }, { 0x0001ee8e, 1, { 0x0001ee8e } }, { 0x0001ee8f, 1, { 0x0001ee8f } }, { 0x0001ee90, 1, { 0x0001ee90 } }, { 0x0001ee91, 1, { 0x0001ee91 } }, { 0x0001ee92, 1, { 0x0001ee92 } }, { 0x0001ee93, 1, { 0x0001ee93 } }, { 0x0001ee94, 1, { 0x0001ee94 } }, { 0x0001ee95, 1, { 0x0001ee95 } }, { 0x0001ee96, 1, { 0x0001ee96 } }, { 0x0001ee97, 1, { 0x0001ee97 } }, { 0x0001ee98, 1, { 0x0001ee98 } }, { 0x0001ee99, 1, { 0x0001ee99 } }, { 0x0001ee9a, 1, { 0x0001ee9a } }, { 0x0001ee9b, 1, { 0x0001ee9b } }, { 0x0001eea1, 1, { 0x0001eea1 } }, { 0x0001eea2, 1, { 0x0001eea2 } }, { 0x0001eea3, 1, { 0x0001eea3 } }, { 0x0001eea5, 1, { 0x0001eea5 } }, { 0x0001eea6, 1, { 0x0001eea6 } }, { 0x0001eea7, 1, { 0x0001eea7 } }, { 0x0001eea8, 1, { 0x0001eea8 } }, { 0x0001eea9, 1, { 0x0001eea9 } }, { 0x0001eeab, 1, { 0x0001eeab } }, { 0x0001eeac, 1, { 0x0001eeac } }, { 0x0001eead, 1, { 0x0001eead } }, { 0x0001eeae, 1, { 0x0001eeae } }, { 0x0001eeaf, 1, { 0x0001eeaf } }, { 0x0001eeb0, 1, { 0x0001eeb0 } }, { 0x0001eeb1, 1, { 0x0001eeb1 } }, { 0x0001eeb2, 1, { 0x0001eeb2 } }, { 0x0001eeb3, 1, { 0x0001eeb3 } }, { 0x0001eeb4, 1, { 0x0001eeb4 } }, { 0x0001eeb5, 1, { 0x0001eeb5 } }, { 0x0001eeb6, 1, { 0x0001eeb6 } }, { 0x0001eeb7, 1, { 0x0001eeb7 } }, { 0x0001eeb8, 1, { 0x0001eeb8 } }, { 0x0001eeb9, 1, { 0x0001eeb9 } }, { 0x0001eeba, 1, { 0x0001eeba } }, { 0x0001eebb, 1, { 0x0001eebb } }, { 0x0001eef0, 1, { 0x0001eef0 } }, { 0x0001eef1, 1, { 0x0001eef1 } }, { 0x0001f000, 1, { 0x0001f000 } }, { 0x0001f001, 1, { 0x0001f001 } }, { 0x0001f002, 1, { 0x0001f002 } }, { 0x0001f003, 1, { 0x0001f003 } }, { 0x0001f004, 1, { 0x0001f004 } }, { 0x0001f005, 1, { 0x0001f005 } }, { 0x0001f006, 1, { 0x0001f006 } }, { 0x0001f007, 1, { 0x0001f007 } }, { 0x0001f008, 1, { 0x0001f008 } }, { 0x0001f009, 1, { 0x0001f009 } }, { 0x0001f00a, 1, { 0x0001f00a } }, { 0x0001f00b, 1, { 0x0001f00b } }, { 0x0001f00c, 1, { 0x0001f00c } }, { 0x0001f00d, 1, { 0x0001f00d } }, { 0x0001f00e, 1, { 0x0001f00e } }, { 0x0001f00f, 1, { 0x0001f00f } }, { 0x0001f010, 1, { 0x0001f010 } }, { 0x0001f011, 1, { 0x0001f011 } }, { 0x0001f012, 1, { 0x0001f012 } }, { 0x0001f013, 1, { 0x0001f013 } }, { 0x0001f014, 1, { 0x0001f014 } }, { 0x0001f015, 1, { 0x0001f015 } }, { 0x0001f016, 1, { 0x0001f016 } }, { 0x0001f017, 1, { 0x0001f017 } }, { 0x0001f018, 1, { 0x0001f018 } }, { 0x0001f019, 1, { 0x0001f019 } }, { 0x0001f01a, 1, { 0x0001f01a } }, { 0x0001f01b, 1, { 0x0001f01b } }, { 0x0001f01c, 1, { 0x0001f01c } }, { 0x0001f01d, 1, { 0x0001f01d } }, { 0x0001f01e, 1, { 0x0001f01e } }, { 0x0001f01f, 1, { 0x0001f01f } }, { 0x0001f020, 1, { 0x0001f020 } }, { 0x0001f021, 1, { 0x0001f021 } }, { 0x0001f022, 1, { 0x0001f022 } }, { 0x0001f023, 1, { 0x0001f023 } }, { 0x0001f024, 1, { 0x0001f024 } }, { 0x0001f025, 1, { 0x0001f025 } }, { 0x0001f026, 1, { 0x0001f026 } }, { 0x0001f027, 1, { 0x0001f027 } }, { 0x0001f028, 1, { 0x0001f028 } }, { 0x0001f029, 1, { 0x0001f029 } }, { 0x0001f02a, 1, { 0x0001f02a } }, { 0x0001f02b, 1, { 0x0001f02b } }, { 0x0001f030, 1, { 0x0001f030 } }, { 0x0001f031, 1, { 0x0001f031 } }, { 0x0001f032, 1, { 0x0001f032 } }, { 0x0001f033, 1, { 0x0001f033 } }, { 0x0001f034, 1, { 0x0001f034 } }, { 0x0001f035, 1, { 0x0001f035 } }, { 0x0001f036, 1, { 0x0001f036 } }, { 0x0001f037, 1, { 0x0001f037 } }, { 0x0001f038, 1, { 0x0001f038 } }, { 0x0001f039, 1, { 0x0001f039 } }, { 0x0001f03a, 1, { 0x0001f03a } }, { 0x0001f03b, 1, { 0x0001f03b } }, { 0x0001f03c, 1, { 0x0001f03c } }, { 0x0001f03d, 1, { 0x0001f03d } }, { 0x0001f03e, 1, { 0x0001f03e } }, { 0x0001f03f, 1, { 0x0001f03f } }, { 0x0001f040, 1, { 0x0001f040 } }, { 0x0001f041, 1, { 0x0001f041 } }, { 0x0001f042, 1, { 0x0001f042 } }, { 0x0001f043, 1, { 0x0001f043 } }, { 0x0001f044, 1, { 0x0001f044 } }, { 0x0001f045, 1, { 0x0001f045 } }, { 0x0001f046, 1, { 0x0001f046 } }, { 0x0001f047, 1, { 0x0001f047 } }, { 0x0001f048, 1, { 0x0001f048 } }, { 0x0001f049, 1, { 0x0001f049 } }, { 0x0001f04a, 1, { 0x0001f04a } }, { 0x0001f04b, 1, { 0x0001f04b } }, { 0x0001f04c, 1, { 0x0001f04c } }, { 0x0001f04d, 1, { 0x0001f04d } }, { 0x0001f04e, 1, { 0x0001f04e } }, { 0x0001f04f, 1, { 0x0001f04f } }, { 0x0001f050, 1, { 0x0001f050 } }, { 0x0001f051, 1, { 0x0001f051 } }, { 0x0001f052, 1, { 0x0001f052 } }, { 0x0001f053, 1, { 0x0001f053 } }, { 0x0001f054, 1, { 0x0001f054 } }, { 0x0001f055, 1, { 0x0001f055 } }, { 0x0001f056, 1, { 0x0001f056 } }, { 0x0001f057, 1, { 0x0001f057 } }, { 0x0001f058, 1, { 0x0001f058 } }, { 0x0001f059, 1, { 0x0001f059 } }, { 0x0001f05a, 1, { 0x0001f05a } }, { 0x0001f05b, 1, { 0x0001f05b } }, { 0x0001f05c, 1, { 0x0001f05c } }, { 0x0001f05d, 1, { 0x0001f05d } }, { 0x0001f05e, 1, { 0x0001f05e } }, { 0x0001f05f, 1, { 0x0001f05f } }, { 0x0001f060, 1, { 0x0001f060 } }, { 0x0001f061, 1, { 0x0001f061 } }, { 0x0001f062, 1, { 0x0001f062 } }, { 0x0001f063, 1, { 0x0001f063 } }, { 0x0001f064, 1, { 0x0001f064 } }, { 0x0001f065, 1, { 0x0001f065 } }, { 0x0001f066, 1, { 0x0001f066 } }, { 0x0001f067, 1, { 0x0001f067 } }, { 0x0001f068, 1, { 0x0001f068 } }, { 0x0001f069, 1, { 0x0001f069 } }, { 0x0001f06a, 1, { 0x0001f06a } }, { 0x0001f06b, 1, { 0x0001f06b } }, { 0x0001f06c, 1, { 0x0001f06c } }, { 0x0001f06d, 1, { 0x0001f06d } }, { 0x0001f06e, 1, { 0x0001f06e } }, { 0x0001f06f, 1, { 0x0001f06f } }, { 0x0001f070, 1, { 0x0001f070 } }, { 0x0001f071, 1, { 0x0001f071 } }, { 0x0001f072, 1, { 0x0001f072 } }, { 0x0001f073, 1, { 0x0001f073 } }, { 0x0001f074, 1, { 0x0001f074 } }, { 0x0001f075, 1, { 0x0001f075 } }, { 0x0001f076, 1, { 0x0001f076 } }, { 0x0001f077, 1, { 0x0001f077 } }, { 0x0001f078, 1, { 0x0001f078 } }, { 0x0001f079, 1, { 0x0001f079 } }, { 0x0001f07a, 1, { 0x0001f07a } }, { 0x0001f07b, 1, { 0x0001f07b } }, { 0x0001f07c, 1, { 0x0001f07c } }, { 0x0001f07d, 1, { 0x0001f07d } }, { 0x0001f07e, 1, { 0x0001f07e } }, { 0x0001f07f, 1, { 0x0001f07f } }, { 0x0001f080, 1, { 0x0001f080 } }, { 0x0001f081, 1, { 0x0001f081 } }, { 0x0001f082, 1, { 0x0001f082 } }, { 0x0001f083, 1, { 0x0001f083 } }, { 0x0001f084, 1, { 0x0001f084 } }, { 0x0001f085, 1, { 0x0001f085 } }, { 0x0001f086, 1, { 0x0001f086 } }, { 0x0001f087, 1, { 0x0001f087 } }, { 0x0001f088, 1, { 0x0001f088 } }, { 0x0001f089, 1, { 0x0001f089 } }, { 0x0001f08a, 1, { 0x0001f08a } }, { 0x0001f08b, 1, { 0x0001f08b } }, { 0x0001f08c, 1, { 0x0001f08c } }, { 0x0001f08d, 1, { 0x0001f08d } }, { 0x0001f08e, 1, { 0x0001f08e } }, { 0x0001f08f, 1, { 0x0001f08f } }, { 0x0001f090, 1, { 0x0001f090 } }, { 0x0001f091, 1, { 0x0001f091 } }, { 0x0001f092, 1, { 0x0001f092 } }, { 0x0001f093, 1, { 0x0001f093 } }, { 0x0001f0a0, 1, { 0x0001f0a0 } }, { 0x0001f0a1, 1, { 0x0001f0a1 } }, { 0x0001f0a2, 1, { 0x0001f0a2 } }, { 0x0001f0a3, 1, { 0x0001f0a3 } }, { 0x0001f0a4, 1, { 0x0001f0a4 } }, { 0x0001f0a5, 1, { 0x0001f0a5 } }, { 0x0001f0a6, 1, { 0x0001f0a6 } }, { 0x0001f0a7, 1, { 0x0001f0a7 } }, { 0x0001f0a8, 1, { 0x0001f0a8 } }, { 0x0001f0a9, 1, { 0x0001f0a9 } }, { 0x0001f0aa, 1, { 0x0001f0aa } }, { 0x0001f0ab, 1, { 0x0001f0ab } }, { 0x0001f0ac, 1, { 0x0001f0ac } }, { 0x0001f0ad, 1, { 0x0001f0ad } }, { 0x0001f0ae, 1, { 0x0001f0ae } }, { 0x0001f0b1, 1, { 0x0001f0b1 } }, { 0x0001f0b2, 1, { 0x0001f0b2 } }, { 0x0001f0b3, 1, { 0x0001f0b3 } }, { 0x0001f0b4, 1, { 0x0001f0b4 } }, { 0x0001f0b5, 1, { 0x0001f0b5 } }, { 0x0001f0b6, 1, { 0x0001f0b6 } }, { 0x0001f0b7, 1, { 0x0001f0b7 } }, { 0x0001f0b8, 1, { 0x0001f0b8 } }, { 0x0001f0b9, 1, { 0x0001f0b9 } }, { 0x0001f0ba, 1, { 0x0001f0ba } }, { 0x0001f0bb, 1, { 0x0001f0bb } }, { 0x0001f0bc, 1, { 0x0001f0bc } }, { 0x0001f0bd, 1, { 0x0001f0bd } }, { 0x0001f0be, 1, { 0x0001f0be } }, { 0x0001f0bf, 1, { 0x0001f0bf } }, { 0x0001f0c1, 1, { 0x0001f0c1 } }, { 0x0001f0c2, 1, { 0x0001f0c2 } }, { 0x0001f0c3, 1, { 0x0001f0c3 } }, { 0x0001f0c4, 1, { 0x0001f0c4 } }, { 0x0001f0c5, 1, { 0x0001f0c5 } }, { 0x0001f0c6, 1, { 0x0001f0c6 } }, { 0x0001f0c7, 1, { 0x0001f0c7 } }, { 0x0001f0c8, 1, { 0x0001f0c8 } }, { 0x0001f0c9, 1, { 0x0001f0c9 } }, { 0x0001f0ca, 1, { 0x0001f0ca } }, { 0x0001f0cb, 1, { 0x0001f0cb } }, { 0x0001f0cc, 1, { 0x0001f0cc } }, { 0x0001f0cd, 1, { 0x0001f0cd } }, { 0x0001f0ce, 1, { 0x0001f0ce } }, { 0x0001f0cf, 1, { 0x0001f0cf } }, { 0x0001f0d1, 1, { 0x0001f0d1 } }, { 0x0001f0d2, 1, { 0x0001f0d2 } }, { 0x0001f0d3, 1, { 0x0001f0d3 } }, { 0x0001f0d4, 1, { 0x0001f0d4 } }, { 0x0001f0d5, 1, { 0x0001f0d5 } }, { 0x0001f0d6, 1, { 0x0001f0d6 } }, { 0x0001f0d7, 1, { 0x0001f0d7 } }, { 0x0001f0d8, 1, { 0x0001f0d8 } }, { 0x0001f0d9, 1, { 0x0001f0d9 } }, { 0x0001f0da, 1, { 0x0001f0da } }, { 0x0001f0db, 1, { 0x0001f0db } }, { 0x0001f0dc, 1, { 0x0001f0dc } }, { 0x0001f0dd, 1, { 0x0001f0dd } }, { 0x0001f0de, 1, { 0x0001f0de } }, { 0x0001f0df, 1, { 0x0001f0df } }, { 0x0001f0e0, 1, { 0x0001f0e0 } }, { 0x0001f0e1, 1, { 0x0001f0e1 } }, { 0x0001f0e2, 1, { 0x0001f0e2 } }, { 0x0001f0e3, 1, { 0x0001f0e3 } }, { 0x0001f0e4, 1, { 0x0001f0e4 } }, { 0x0001f0e5, 1, { 0x0001f0e5 } }, { 0x0001f0e6, 1, { 0x0001f0e6 } }, { 0x0001f0e7, 1, { 0x0001f0e7 } }, { 0x0001f0e8, 1, { 0x0001f0e8 } }, { 0x0001f0e9, 1, { 0x0001f0e9 } }, { 0x0001f0ea, 1, { 0x0001f0ea } }, { 0x0001f0eb, 1, { 0x0001f0eb } }, { 0x0001f0ec, 1, { 0x0001f0ec } }, { 0x0001f0ed, 1, { 0x0001f0ed } }, { 0x0001f0ee, 1, { 0x0001f0ee } }, { 0x0001f0ef, 1, { 0x0001f0ef } }, { 0x0001f0f0, 1, { 0x0001f0f0 } }, { 0x0001f0f1, 1, { 0x0001f0f1 } }, { 0x0001f0f2, 1, { 0x0001f0f2 } }, { 0x0001f0f3, 1, { 0x0001f0f3 } }, { 0x0001f0f4, 1, { 0x0001f0f4 } }, { 0x0001f0f5, 1, { 0x0001f0f5 } }, { 0x0001f100, 1, { 0x0001f100 } }, { 0x0001f101, 1, { 0x0001f101 } }, { 0x0001f102, 1, { 0x0001f102 } }, { 0x0001f103, 1, { 0x0001f103 } }, { 0x0001f104, 1, { 0x0001f104 } }, { 0x0001f105, 1, { 0x0001f105 } }, { 0x0001f106, 1, { 0x0001f106 } }, { 0x0001f107, 1, { 0x0001f107 } }, { 0x0001f108, 1, { 0x0001f108 } }, { 0x0001f109, 1, { 0x0001f109 } }, { 0x0001f10a, 1, { 0x0001f10a } }, { 0x0001f10b, 1, { 0x0001f10b } }, { 0x0001f10c, 1, { 0x0001f10c } }, { 0x0001f110, 1, { 0x0001f110 } }, { 0x0001f111, 1, { 0x0001f111 } }, { 0x0001f112, 1, { 0x0001f112 } }, { 0x0001f113, 1, { 0x0001f113 } }, { 0x0001f114, 1, { 0x0001f114 } }, { 0x0001f115, 1, { 0x0001f115 } }, { 0x0001f116, 1, { 0x0001f116 } }, { 0x0001f117, 1, { 0x0001f117 } }, { 0x0001f118, 1, { 0x0001f118 } }, { 0x0001f119, 1, { 0x0001f119 } }, { 0x0001f11a, 1, { 0x0001f11a } }, { 0x0001f11b, 1, { 0x0001f11b } }, { 0x0001f11c, 1, { 0x0001f11c } }, { 0x0001f11d, 1, { 0x0001f11d } }, { 0x0001f11e, 1, { 0x0001f11e } }, { 0x0001f11f, 1, { 0x0001f11f } }, { 0x0001f120, 1, { 0x0001f120 } }, { 0x0001f121, 1, { 0x0001f121 } }, { 0x0001f122, 1, { 0x0001f122 } }, { 0x0001f123, 1, { 0x0001f123 } }, { 0x0001f124, 1, { 0x0001f124 } }, { 0x0001f125, 1, { 0x0001f125 } }, { 0x0001f126, 1, { 0x0001f126 } }, { 0x0001f127, 1, { 0x0001f127 } }, { 0x0001f128, 1, { 0x0001f128 } }, { 0x0001f129, 1, { 0x0001f129 } }, { 0x0001f12a, 1, { 0x0001f12a } }, { 0x0001f12b, 1, { 0x0001f12b } }, { 0x0001f12c, 1, { 0x0001f12c } }, { 0x0001f12d, 1, { 0x0001f12d } }, { 0x0001f12e, 1, { 0x0001f12e } }, { 0x0001f130, 1, { 0x0001f130 } }, { 0x0001f131, 1, { 0x0001f131 } }, { 0x0001f132, 1, { 0x0001f132 } }, { 0x0001f133, 1, { 0x0001f133 } }, { 0x0001f134, 1, { 0x0001f134 } }, { 0x0001f135, 1, { 0x0001f135 } }, { 0x0001f136, 1, { 0x0001f136 } }, { 0x0001f137, 1, { 0x0001f137 } }, { 0x0001f138, 1, { 0x0001f138 } }, { 0x0001f139, 1, { 0x0001f139 } }, { 0x0001f13a, 1, { 0x0001f13a } }, { 0x0001f13b, 1, { 0x0001f13b } }, { 0x0001f13c, 1, { 0x0001f13c } }, { 0x0001f13d, 1, { 0x0001f13d } }, { 0x0001f13e, 1, { 0x0001f13e } }, { 0x0001f13f, 1, { 0x0001f13f } }, { 0x0001f140, 1, { 0x0001f140 } }, { 0x0001f141, 1, { 0x0001f141 } }, { 0x0001f142, 1, { 0x0001f142 } }, { 0x0001f143, 1, { 0x0001f143 } }, { 0x0001f144, 1, { 0x0001f144 } }, { 0x0001f145, 1, { 0x0001f145 } }, { 0x0001f146, 1, { 0x0001f146 } }, { 0x0001f147, 1, { 0x0001f147 } }, { 0x0001f148, 1, { 0x0001f148 } }, { 0x0001f149, 1, { 0x0001f149 } }, { 0x0001f14a, 1, { 0x0001f14a } }, { 0x0001f14b, 1, { 0x0001f14b } }, { 0x0001f14c, 1, { 0x0001f14c } }, { 0x0001f14d, 1, { 0x0001f14d } }, { 0x0001f14e, 1, { 0x0001f14e } }, { 0x0001f14f, 1, { 0x0001f14f } }, { 0x0001f150, 1, { 0x0001f150 } }, { 0x0001f151, 1, { 0x0001f151 } }, { 0x0001f152, 1, { 0x0001f152 } }, { 0x0001f153, 1, { 0x0001f153 } }, { 0x0001f154, 1, { 0x0001f154 } }, { 0x0001f155, 1, { 0x0001f155 } }, { 0x0001f156, 1, { 0x0001f156 } }, { 0x0001f157, 1, { 0x0001f157 } }, { 0x0001f158, 1, { 0x0001f158 } }, { 0x0001f159, 1, { 0x0001f159 } }, { 0x0001f15a, 1, { 0x0001f15a } }, { 0x0001f15b, 1, { 0x0001f15b } }, { 0x0001f15c, 1, { 0x0001f15c } }, { 0x0001f15d, 1, { 0x0001f15d } }, { 0x0001f15e, 1, { 0x0001f15e } }, { 0x0001f15f, 1, { 0x0001f15f } }, { 0x0001f160, 1, { 0x0001f160 } }, { 0x0001f161, 1, { 0x0001f161 } }, { 0x0001f162, 1, { 0x0001f162 } }, { 0x0001f163, 1, { 0x0001f163 } }, { 0x0001f164, 1, { 0x0001f164 } }, { 0x0001f165, 1, { 0x0001f165 } }, { 0x0001f166, 1, { 0x0001f166 } }, { 0x0001f167, 1, { 0x0001f167 } }, { 0x0001f168, 1, { 0x0001f168 } }, { 0x0001f169, 1, { 0x0001f169 } }, { 0x0001f16a, 1, { 0x0001f16a } }, { 0x0001f16b, 1, { 0x0001f16b } }, { 0x0001f170, 1, { 0x0001f170 } }, { 0x0001f171, 1, { 0x0001f171 } }, { 0x0001f172, 1, { 0x0001f172 } }, { 0x0001f173, 1, { 0x0001f173 } }, { 0x0001f174, 1, { 0x0001f174 } }, { 0x0001f175, 1, { 0x0001f175 } }, { 0x0001f176, 1, { 0x0001f176 } }, { 0x0001f177, 1, { 0x0001f177 } }, { 0x0001f178, 1, { 0x0001f178 } }, { 0x0001f179, 1, { 0x0001f179 } }, { 0x0001f17a, 1, { 0x0001f17a } }, { 0x0001f17b, 1, { 0x0001f17b } }, { 0x0001f17c, 1, { 0x0001f17c } }, { 0x0001f17d, 1, { 0x0001f17d } }, { 0x0001f17e, 1, { 0x0001f17e } }, { 0x0001f17f, 1, { 0x0001f17f } }, { 0x0001f180, 1, { 0x0001f180 } }, { 0x0001f181, 1, { 0x0001f181 } }, { 0x0001f182, 1, { 0x0001f182 } }, { 0x0001f183, 1, { 0x0001f183 } }, { 0x0001f184, 1, { 0x0001f184 } }, { 0x0001f185, 1, { 0x0001f185 } }, { 0x0001f186, 1, { 0x0001f186 } }, { 0x0001f187, 1, { 0x0001f187 } }, { 0x0001f188, 1, { 0x0001f188 } }, { 0x0001f189, 1, { 0x0001f189 } }, { 0x0001f18a, 1, { 0x0001f18a } }, { 0x0001f18b, 1, { 0x0001f18b } }, { 0x0001f18c, 1, { 0x0001f18c } }, { 0x0001f18d, 1, { 0x0001f18d } }, { 0x0001f18e, 1, { 0x0001f18e } }, { 0x0001f18f, 1, { 0x0001f18f } }, { 0x0001f190, 1, { 0x0001f190 } }, { 0x0001f191, 1, { 0x0001f191 } }, { 0x0001f192, 1, { 0x0001f192 } }, { 0x0001f193, 1, { 0x0001f193 } }, { 0x0001f194, 1, { 0x0001f194 } }, { 0x0001f195, 1, { 0x0001f195 } }, { 0x0001f196, 1, { 0x0001f196 } }, { 0x0001f197, 1, { 0x0001f197 } }, { 0x0001f198, 1, { 0x0001f198 } }, { 0x0001f199, 1, { 0x0001f199 } }, { 0x0001f19a, 1, { 0x0001f19a } }, { 0x0001f19b, 1, { 0x0001f19b } }, { 0x0001f19c, 1, { 0x0001f19c } }, { 0x0001f19d, 1, { 0x0001f19d } }, { 0x0001f19e, 1, { 0x0001f19e } }, { 0x0001f19f, 1, { 0x0001f19f } }, { 0x0001f1a0, 1, { 0x0001f1a0 } }, { 0x0001f1a1, 1, { 0x0001f1a1 } }, { 0x0001f1a2, 1, { 0x0001f1a2 } }, { 0x0001f1a3, 1, { 0x0001f1a3 } }, { 0x0001f1a4, 1, { 0x0001f1a4 } }, { 0x0001f1a5, 1, { 0x0001f1a5 } }, { 0x0001f1a6, 1, { 0x0001f1a6 } }, { 0x0001f1a7, 1, { 0x0001f1a7 } }, { 0x0001f1a8, 1, { 0x0001f1a8 } }, { 0x0001f1a9, 1, { 0x0001f1a9 } }, { 0x0001f1aa, 1, { 0x0001f1aa } }, { 0x0001f1ab, 1, { 0x0001f1ab } }, { 0x0001f1ac, 1, { 0x0001f1ac } }, { 0x0001f1e6, 1, { 0x0001f1e6 } }, { 0x0001f1e7, 1, { 0x0001f1e7 } }, { 0x0001f1e8, 1, { 0x0001f1e8 } }, { 0x0001f1e9, 1, { 0x0001f1e9 } }, { 0x0001f1ea, 1, { 0x0001f1ea } }, { 0x0001f1eb, 1, { 0x0001f1eb } }, { 0x0001f1ec, 1, { 0x0001f1ec } }, { 0x0001f1ed, 1, { 0x0001f1ed } }, { 0x0001f1ee, 1, { 0x0001f1ee } }, { 0x0001f1ef, 1, { 0x0001f1ef } }, { 0x0001f1f0, 1, { 0x0001f1f0 } }, { 0x0001f1f1, 1, { 0x0001f1f1 } }, { 0x0001f1f2, 1, { 0x0001f1f2 } }, { 0x0001f1f3, 1, { 0x0001f1f3 } }, { 0x0001f1f4, 1, { 0x0001f1f4 } }, { 0x0001f1f5, 1, { 0x0001f1f5 } }, { 0x0001f1f6, 1, { 0x0001f1f6 } }, { 0x0001f1f7, 1, { 0x0001f1f7 } }, { 0x0001f1f8, 1, { 0x0001f1f8 } }, { 0x0001f1f9, 1, { 0x0001f1f9 } }, { 0x0001f1fa, 1, { 0x0001f1fa } }, { 0x0001f1fb, 1, { 0x0001f1fb } }, { 0x0001f1fc, 1, { 0x0001f1fc } }, { 0x0001f1fd, 1, { 0x0001f1fd } }, { 0x0001f1fe, 1, { 0x0001f1fe } }, { 0x0001f1ff, 1, { 0x0001f1ff } }, { 0x0001f200, 1, { 0x0001f200 } }, { 0x0001f201, 1, { 0x0001f201 } }, { 0x0001f202, 1, { 0x0001f202 } }, { 0x0001f210, 1, { 0x0001f210 } }, { 0x0001f211, 1, { 0x0001f211 } }, { 0x0001f212, 1, { 0x0001f212 } }, { 0x0001f213, 1, { 0x0001f213 } }, { 0x0001f214, 1, { 0x0001f214 } }, { 0x0001f215, 1, { 0x0001f215 } }, { 0x0001f216, 1, { 0x0001f216 } }, { 0x0001f217, 1, { 0x0001f217 } }, { 0x0001f218, 1, { 0x0001f218 } }, { 0x0001f219, 1, { 0x0001f219 } }, { 0x0001f21a, 1, { 0x0001f21a } }, { 0x0001f21b, 1, { 0x0001f21b } }, { 0x0001f21c, 1, { 0x0001f21c } }, { 0x0001f21d, 1, { 0x0001f21d } }, { 0x0001f21e, 1, { 0x0001f21e } }, { 0x0001f21f, 1, { 0x0001f21f } }, { 0x0001f220, 1, { 0x0001f220 } }, { 0x0001f221, 1, { 0x0001f221 } }, { 0x0001f222, 1, { 0x0001f222 } }, { 0x0001f223, 1, { 0x0001f223 } }, { 0x0001f224, 1, { 0x0001f224 } }, { 0x0001f225, 1, { 0x0001f225 } }, { 0x0001f226, 1, { 0x0001f226 } }, { 0x0001f227, 1, { 0x0001f227 } }, { 0x0001f228, 1, { 0x0001f228 } }, { 0x0001f229, 1, { 0x0001f229 } }, { 0x0001f22a, 1, { 0x0001f22a } }, { 0x0001f22b, 1, { 0x0001f22b } }, { 0x0001f22c, 1, { 0x0001f22c } }, { 0x0001f22d, 1, { 0x0001f22d } }, { 0x0001f22e, 1, { 0x0001f22e } }, { 0x0001f22f, 1, { 0x0001f22f } }, { 0x0001f230, 1, { 0x0001f230 } }, { 0x0001f231, 1, { 0x0001f231 } }, { 0x0001f232, 1, { 0x0001f232 } }, { 0x0001f233, 1, { 0x0001f233 } }, { 0x0001f234, 1, { 0x0001f234 } }, { 0x0001f235, 1, { 0x0001f235 } }, { 0x0001f236, 1, { 0x0001f236 } }, { 0x0001f237, 1, { 0x0001f237 } }, { 0x0001f238, 1, { 0x0001f238 } }, { 0x0001f239, 1, { 0x0001f239 } }, { 0x0001f23a, 1, { 0x0001f23a } }, { 0x0001f23b, 1, { 0x0001f23b } }, { 0x0001f240, 1, { 0x0001f240 } }, { 0x0001f241, 1, { 0x0001f241 } }, { 0x0001f242, 1, { 0x0001f242 } }, { 0x0001f243, 1, { 0x0001f243 } }, { 0x0001f244, 1, { 0x0001f244 } }, { 0x0001f245, 1, { 0x0001f245 } }, { 0x0001f246, 1, { 0x0001f246 } }, { 0x0001f247, 1, { 0x0001f247 } }, { 0x0001f248, 1, { 0x0001f248 } }, { 0x0001f250, 1, { 0x0001f250 } }, { 0x0001f251, 1, { 0x0001f251 } }, { 0x0001f300, 1, { 0x0001f300 } }, { 0x0001f301, 1, { 0x0001f301 } }, { 0x0001f302, 1, { 0x0001f302 } }, { 0x0001f303, 1, { 0x0001f303 } }, { 0x0001f304, 1, { 0x0001f304 } }, { 0x0001f305, 1, { 0x0001f305 } }, { 0x0001f306, 1, { 0x0001f306 } }, { 0x0001f307, 1, { 0x0001f307 } }, { 0x0001f308, 1, { 0x0001f308 } }, { 0x0001f309, 1, { 0x0001f309 } }, { 0x0001f30a, 1, { 0x0001f30a } }, { 0x0001f30b, 1, { 0x0001f30b } }, { 0x0001f30c, 1, { 0x0001f30c } }, { 0x0001f30d, 1, { 0x0001f30d } }, { 0x0001f30e, 1, { 0x0001f30e } }, { 0x0001f30f, 1, { 0x0001f30f } }, { 0x0001f310, 1, { 0x0001f310 } }, { 0x0001f311, 1, { 0x0001f311 } }, { 0x0001f312, 1, { 0x0001f312 } }, { 0x0001f313, 1, { 0x0001f313 } }, { 0x0001f314, 1, { 0x0001f314 } }, { 0x0001f315, 1, { 0x0001f315 } }, { 0x0001f316, 1, { 0x0001f316 } }, { 0x0001f317, 1, { 0x0001f317 } }, { 0x0001f318, 1, { 0x0001f318 } }, { 0x0001f319, 1, { 0x0001f319 } }, { 0x0001f31a, 1, { 0x0001f31a } }, { 0x0001f31b, 1, { 0x0001f31b } }, { 0x0001f31c, 1, { 0x0001f31c } }, { 0x0001f31d, 1, { 0x0001f31d } }, { 0x0001f31e, 1, { 0x0001f31e } }, { 0x0001f31f, 1, { 0x0001f31f } }, { 0x0001f320, 1, { 0x0001f320 } }, { 0x0001f321, 1, { 0x0001f321 } }, { 0x0001f322, 1, { 0x0001f322 } }, { 0x0001f323, 1, { 0x0001f323 } }, { 0x0001f324, 1, { 0x0001f324 } }, { 0x0001f325, 1, { 0x0001f325 } }, { 0x0001f326, 1, { 0x0001f326 } }, { 0x0001f327, 1, { 0x0001f327 } }, { 0x0001f328, 1, { 0x0001f328 } }, { 0x0001f329, 1, { 0x0001f329 } }, { 0x0001f32a, 1, { 0x0001f32a } }, { 0x0001f32b, 1, { 0x0001f32b } }, { 0x0001f32c, 1, { 0x0001f32c } }, { 0x0001f32d, 1, { 0x0001f32d } }, { 0x0001f32e, 1, { 0x0001f32e } }, { 0x0001f32f, 1, { 0x0001f32f } }, { 0x0001f330, 1, { 0x0001f330 } }, { 0x0001f331, 1, { 0x0001f331 } }, { 0x0001f332, 1, { 0x0001f332 } }, { 0x0001f333, 1, { 0x0001f333 } }, { 0x0001f334, 1, { 0x0001f334 } }, { 0x0001f335, 1, { 0x0001f335 } }, { 0x0001f336, 1, { 0x0001f336 } }, { 0x0001f337, 1, { 0x0001f337 } }, { 0x0001f338, 1, { 0x0001f338 } }, { 0x0001f339, 1, { 0x0001f339 } }, { 0x0001f33a, 1, { 0x0001f33a } }, { 0x0001f33b, 1, { 0x0001f33b } }, { 0x0001f33c, 1, { 0x0001f33c } }, { 0x0001f33d, 1, { 0x0001f33d } }, { 0x0001f33e, 1, { 0x0001f33e } }, { 0x0001f33f, 1, { 0x0001f33f } }, { 0x0001f340, 1, { 0x0001f340 } }, { 0x0001f341, 1, { 0x0001f341 } }, { 0x0001f342, 1, { 0x0001f342 } }, { 0x0001f343, 1, { 0x0001f343 } }, { 0x0001f344, 1, { 0x0001f344 } }, { 0x0001f345, 1, { 0x0001f345 } }, { 0x0001f346, 1, { 0x0001f346 } }, { 0x0001f347, 1, { 0x0001f347 } }, { 0x0001f348, 1, { 0x0001f348 } }, { 0x0001f349, 1, { 0x0001f349 } }, { 0x0001f34a, 1, { 0x0001f34a } }, { 0x0001f34b, 1, { 0x0001f34b } }, { 0x0001f34c, 1, { 0x0001f34c } }, { 0x0001f34d, 1, { 0x0001f34d } }, { 0x0001f34e, 1, { 0x0001f34e } }, { 0x0001f34f, 1, { 0x0001f34f } }, { 0x0001f350, 1, { 0x0001f350 } }, { 0x0001f351, 1, { 0x0001f351 } }, { 0x0001f352, 1, { 0x0001f352 } }, { 0x0001f353, 1, { 0x0001f353 } }, { 0x0001f354, 1, { 0x0001f354 } }, { 0x0001f355, 1, { 0x0001f355 } }, { 0x0001f356, 1, { 0x0001f356 } }, { 0x0001f357, 1, { 0x0001f357 } }, { 0x0001f358, 1, { 0x0001f358 } }, { 0x0001f359, 1, { 0x0001f359 } }, { 0x0001f35a, 1, { 0x0001f35a } }, { 0x0001f35b, 1, { 0x0001f35b } }, { 0x0001f35c, 1, { 0x0001f35c } }, { 0x0001f35d, 1, { 0x0001f35d } }, { 0x0001f35e, 1, { 0x0001f35e } }, { 0x0001f35f, 1, { 0x0001f35f } }, { 0x0001f360, 1, { 0x0001f360 } }, { 0x0001f361, 1, { 0x0001f361 } }, { 0x0001f362, 1, { 0x0001f362 } }, { 0x0001f363, 1, { 0x0001f363 } }, { 0x0001f364, 1, { 0x0001f364 } }, { 0x0001f365, 1, { 0x0001f365 } }, { 0x0001f366, 1, { 0x0001f366 } }, { 0x0001f367, 1, { 0x0001f367 } }, { 0x0001f368, 1, { 0x0001f368 } }, { 0x0001f369, 1, { 0x0001f369 } }, { 0x0001f36a, 1, { 0x0001f36a } }, { 0x0001f36b, 1, { 0x0001f36b } }, { 0x0001f36c, 1, { 0x0001f36c } }, { 0x0001f36d, 1, { 0x0001f36d } }, { 0x0001f36e, 1, { 0x0001f36e } }, { 0x0001f36f, 1, { 0x0001f36f } }, { 0x0001f370, 1, { 0x0001f370 } }, { 0x0001f371, 1, { 0x0001f371 } }, { 0x0001f372, 1, { 0x0001f372 } }, { 0x0001f373, 1, { 0x0001f373 } }, { 0x0001f374, 1, { 0x0001f374 } }, { 0x0001f375, 1, { 0x0001f375 } }, { 0x0001f376, 1, { 0x0001f376 } }, { 0x0001f377, 1, { 0x0001f377 } }, { 0x0001f378, 1, { 0x0001f378 } }, { 0x0001f379, 1, { 0x0001f379 } }, { 0x0001f37a, 1, { 0x0001f37a } }, { 0x0001f37b, 1, { 0x0001f37b } }, { 0x0001f37c, 1, { 0x0001f37c } }, { 0x0001f37d, 1, { 0x0001f37d } }, { 0x0001f37e, 1, { 0x0001f37e } }, { 0x0001f37f, 1, { 0x0001f37f } }, { 0x0001f380, 1, { 0x0001f380 } }, { 0x0001f381, 1, { 0x0001f381 } }, { 0x0001f382, 1, { 0x0001f382 } }, { 0x0001f383, 1, { 0x0001f383 } }, { 0x0001f384, 1, { 0x0001f384 } }, { 0x0001f385, 1, { 0x0001f385 } }, { 0x0001f386, 1, { 0x0001f386 } }, { 0x0001f387, 1, { 0x0001f387 } }, { 0x0001f388, 1, { 0x0001f388 } }, { 0x0001f389, 1, { 0x0001f389 } }, { 0x0001f38a, 1, { 0x0001f38a } }, { 0x0001f38b, 1, { 0x0001f38b } }, { 0x0001f38c, 1, { 0x0001f38c } }, { 0x0001f38d, 1, { 0x0001f38d } }, { 0x0001f38e, 1, { 0x0001f38e } }, { 0x0001f38f, 1, { 0x0001f38f } }, { 0x0001f390, 1, { 0x0001f390 } }, { 0x0001f391, 1, { 0x0001f391 } }, { 0x0001f392, 1, { 0x0001f392 } }, { 0x0001f393, 1, { 0x0001f393 } }, { 0x0001f394, 1, { 0x0001f394 } }, { 0x0001f395, 1, { 0x0001f395 } }, { 0x0001f396, 1, { 0x0001f396 } }, { 0x0001f397, 1, { 0x0001f397 } }, { 0x0001f398, 1, { 0x0001f398 } }, { 0x0001f399, 1, { 0x0001f399 } }, { 0x0001f39a, 1, { 0x0001f39a } }, { 0x0001f39b, 1, { 0x0001f39b } }, { 0x0001f39c, 1, { 0x0001f39c } }, { 0x0001f39d, 1, { 0x0001f39d } }, { 0x0001f39e, 1, { 0x0001f39e } }, { 0x0001f39f, 1, { 0x0001f39f } }, { 0x0001f3a0, 1, { 0x0001f3a0 } }, { 0x0001f3a1, 1, { 0x0001f3a1 } }, { 0x0001f3a2, 1, { 0x0001f3a2 } }, { 0x0001f3a3, 1, { 0x0001f3a3 } }, { 0x0001f3a4, 1, { 0x0001f3a4 } }, { 0x0001f3a5, 1, { 0x0001f3a5 } }, { 0x0001f3a6, 1, { 0x0001f3a6 } }, { 0x0001f3a7, 1, { 0x0001f3a7 } }, { 0x0001f3a8, 1, { 0x0001f3a8 } }, { 0x0001f3a9, 1, { 0x0001f3a9 } }, { 0x0001f3aa, 1, { 0x0001f3aa } }, { 0x0001f3ab, 1, { 0x0001f3ab } }, { 0x0001f3ac, 1, { 0x0001f3ac } }, { 0x0001f3ad, 1, { 0x0001f3ad } }, { 0x0001f3ae, 1, { 0x0001f3ae } }, { 0x0001f3af, 1, { 0x0001f3af } }, { 0x0001f3b0, 1, { 0x0001f3b0 } }, { 0x0001f3b1, 1, { 0x0001f3b1 } }, { 0x0001f3b2, 1, { 0x0001f3b2 } }, { 0x0001f3b3, 1, { 0x0001f3b3 } }, { 0x0001f3b4, 1, { 0x0001f3b4 } }, { 0x0001f3b5, 1, { 0x0001f3b5 } }, { 0x0001f3b6, 1, { 0x0001f3b6 } }, { 0x0001f3b7, 1, { 0x0001f3b7 } }, { 0x0001f3b8, 1, { 0x0001f3b8 } }, { 0x0001f3b9, 1, { 0x0001f3b9 } }, { 0x0001f3ba, 1, { 0x0001f3ba } }, { 0x0001f3bb, 1, { 0x0001f3bb } }, { 0x0001f3bc, 1, { 0x0001f3bc } }, { 0x0001f3bd, 1, { 0x0001f3bd } }, { 0x0001f3be, 1, { 0x0001f3be } }, { 0x0001f3bf, 1, { 0x0001f3bf } }, { 0x0001f3c0, 1, { 0x0001f3c0 } }, { 0x0001f3c1, 1, { 0x0001f3c1 } }, { 0x0001f3c2, 1, { 0x0001f3c2 } }, { 0x0001f3c3, 1, { 0x0001f3c3 } }, { 0x0001f3c4, 1, { 0x0001f3c4 } }, { 0x0001f3c5, 1, { 0x0001f3c5 } }, { 0x0001f3c6, 1, { 0x0001f3c6 } }, { 0x0001f3c7, 1, { 0x0001f3c7 } }, { 0x0001f3c8, 1, { 0x0001f3c8 } }, { 0x0001f3c9, 1, { 0x0001f3c9 } }, { 0x0001f3ca, 1, { 0x0001f3ca } }, { 0x0001f3cb, 1, { 0x0001f3cb } }, { 0x0001f3cc, 1, { 0x0001f3cc } }, { 0x0001f3cd, 1, { 0x0001f3cd } }, { 0x0001f3ce, 1, { 0x0001f3ce } }, { 0x0001f3cf, 1, { 0x0001f3cf } }, { 0x0001f3d0, 1, { 0x0001f3d0 } }, { 0x0001f3d1, 1, { 0x0001f3d1 } }, { 0x0001f3d2, 1, { 0x0001f3d2 } }, { 0x0001f3d3, 1, { 0x0001f3d3 } }, { 0x0001f3d4, 1, { 0x0001f3d4 } }, { 0x0001f3d5, 1, { 0x0001f3d5 } }, { 0x0001f3d6, 1, { 0x0001f3d6 } }, { 0x0001f3d7, 1, { 0x0001f3d7 } }, { 0x0001f3d8, 1, { 0x0001f3d8 } }, { 0x0001f3d9, 1, { 0x0001f3d9 } }, { 0x0001f3da, 1, { 0x0001f3da } }, { 0x0001f3db, 1, { 0x0001f3db } }, { 0x0001f3dc, 1, { 0x0001f3dc } }, { 0x0001f3dd, 1, { 0x0001f3dd } }, { 0x0001f3de, 1, { 0x0001f3de } }, { 0x0001f3df, 1, { 0x0001f3df } }, { 0x0001f3e0, 1, { 0x0001f3e0 } }, { 0x0001f3e1, 1, { 0x0001f3e1 } }, { 0x0001f3e2, 1, { 0x0001f3e2 } }, { 0x0001f3e3, 1, { 0x0001f3e3 } }, { 0x0001f3e4, 1, { 0x0001f3e4 } }, { 0x0001f3e5, 1, { 0x0001f3e5 } }, { 0x0001f3e6, 1, { 0x0001f3e6 } }, { 0x0001f3e7, 1, { 0x0001f3e7 } }, { 0x0001f3e8, 1, { 0x0001f3e8 } }, { 0x0001f3e9, 1, { 0x0001f3e9 } }, { 0x0001f3ea, 1, { 0x0001f3ea } }, { 0x0001f3eb, 1, { 0x0001f3eb } }, { 0x0001f3ec, 1, { 0x0001f3ec } }, { 0x0001f3ed, 1, { 0x0001f3ed } }, { 0x0001f3ee, 1, { 0x0001f3ee } }, { 0x0001f3ef, 1, { 0x0001f3ef } }, { 0x0001f3f0, 1, { 0x0001f3f0 } }, { 0x0001f3f1, 1, { 0x0001f3f1 } }, { 0x0001f3f2, 1, { 0x0001f3f2 } }, { 0x0001f3f3, 1, { 0x0001f3f3 } }, { 0x0001f3f4, 1, { 0x0001f3f4 } }, { 0x0001f3f5, 1, { 0x0001f3f5 } }, { 0x0001f3f6, 1, { 0x0001f3f6 } }, { 0x0001f3f7, 1, { 0x0001f3f7 } }, { 0x0001f3f8, 1, { 0x0001f3f8 } }, { 0x0001f3f9, 1, { 0x0001f3f9 } }, { 0x0001f3fa, 1, { 0x0001f3fa } }, { 0x0001f3fb, 1, { 0x0001f3fb } }, { 0x0001f3fc, 1, { 0x0001f3fc } }, { 0x0001f3fd, 1, { 0x0001f3fd } }, { 0x0001f3fe, 1, { 0x0001f3fe } }, { 0x0001f3ff, 1, { 0x0001f3ff } }, { 0x0001f400, 1, { 0x0001f400 } }, { 0x0001f401, 1, { 0x0001f401 } }, { 0x0001f402, 1, { 0x0001f402 } }, { 0x0001f403, 1, { 0x0001f403 } }, { 0x0001f404, 1, { 0x0001f404 } }, { 0x0001f405, 1, { 0x0001f405 } }, { 0x0001f406, 1, { 0x0001f406 } }, { 0x0001f407, 1, { 0x0001f407 } }, { 0x0001f408, 1, { 0x0001f408 } }, { 0x0001f409, 1, { 0x0001f409 } }, { 0x0001f40a, 1, { 0x0001f40a } }, { 0x0001f40b, 1, { 0x0001f40b } }, { 0x0001f40c, 1, { 0x0001f40c } }, { 0x0001f40d, 1, { 0x0001f40d } }, { 0x0001f40e, 1, { 0x0001f40e } }, { 0x0001f40f, 1, { 0x0001f40f } }, { 0x0001f410, 1, { 0x0001f410 } }, { 0x0001f411, 1, { 0x0001f411 } }, { 0x0001f412, 1, { 0x0001f412 } }, { 0x0001f413, 1, { 0x0001f413 } }, { 0x0001f414, 1, { 0x0001f414 } }, { 0x0001f415, 1, { 0x0001f415 } }, { 0x0001f416, 1, { 0x0001f416 } }, { 0x0001f417, 1, { 0x0001f417 } }, { 0x0001f418, 1, { 0x0001f418 } }, { 0x0001f419, 1, { 0x0001f419 } }, { 0x0001f41a, 1, { 0x0001f41a } }, { 0x0001f41b, 1, { 0x0001f41b } }, { 0x0001f41c, 1, { 0x0001f41c } }, { 0x0001f41d, 1, { 0x0001f41d } }, { 0x0001f41e, 1, { 0x0001f41e } }, { 0x0001f41f, 1, { 0x0001f41f } }, { 0x0001f420, 1, { 0x0001f420 } }, { 0x0001f421, 1, { 0x0001f421 } }, { 0x0001f422, 1, { 0x0001f422 } }, { 0x0001f423, 1, { 0x0001f423 } }, { 0x0001f424, 1, { 0x0001f424 } }, { 0x0001f425, 1, { 0x0001f425 } }, { 0x0001f426, 1, { 0x0001f426 } }, { 0x0001f427, 1, { 0x0001f427 } }, { 0x0001f428, 1, { 0x0001f428 } }, { 0x0001f429, 1, { 0x0001f429 } }, { 0x0001f42a, 1, { 0x0001f42a } }, { 0x0001f42b, 1, { 0x0001f42b } }, { 0x0001f42c, 1, { 0x0001f42c } }, { 0x0001f42d, 1, { 0x0001f42d } }, { 0x0001f42e, 1, { 0x0001f42e } }, { 0x0001f42f, 1, { 0x0001f42f } }, { 0x0001f430, 1, { 0x0001f430 } }, { 0x0001f431, 1, { 0x0001f431 } }, { 0x0001f432, 1, { 0x0001f432 } }, { 0x0001f433, 1, { 0x0001f433 } }, { 0x0001f434, 1, { 0x0001f434 } }, { 0x0001f435, 1, { 0x0001f435 } }, { 0x0001f436, 1, { 0x0001f436 } }, { 0x0001f437, 1, { 0x0001f437 } }, { 0x0001f438, 1, { 0x0001f438 } }, { 0x0001f439, 1, { 0x0001f439 } }, { 0x0001f43a, 1, { 0x0001f43a } }, { 0x0001f43b, 1, { 0x0001f43b } }, { 0x0001f43c, 1, { 0x0001f43c } }, { 0x0001f43d, 1, { 0x0001f43d } }, { 0x0001f43e, 1, { 0x0001f43e } }, { 0x0001f43f, 1, { 0x0001f43f } }, { 0x0001f440, 1, { 0x0001f440 } }, { 0x0001f441, 1, { 0x0001f441 } }, { 0x0001f442, 1, { 0x0001f442 } }, { 0x0001f443, 1, { 0x0001f443 } }, { 0x0001f444, 1, { 0x0001f444 } }, { 0x0001f445, 1, { 0x0001f445 } }, { 0x0001f446, 1, { 0x0001f446 } }, { 0x0001f447, 1, { 0x0001f447 } }, { 0x0001f448, 1, { 0x0001f448 } }, { 0x0001f449, 1, { 0x0001f449 } }, { 0x0001f44a, 1, { 0x0001f44a } }, { 0x0001f44b, 1, { 0x0001f44b } }, { 0x0001f44c, 1, { 0x0001f44c } }, { 0x0001f44d, 1, { 0x0001f44d } }, { 0x0001f44e, 1, { 0x0001f44e } }, { 0x0001f44f, 1, { 0x0001f44f } }, { 0x0001f450, 1, { 0x0001f450 } }, { 0x0001f451, 1, { 0x0001f451 } }, { 0x0001f452, 1, { 0x0001f452 } }, { 0x0001f453, 1, { 0x0001f453 } }, { 0x0001f454, 1, { 0x0001f454 } }, { 0x0001f455, 1, { 0x0001f455 } }, { 0x0001f456, 1, { 0x0001f456 } }, { 0x0001f457, 1, { 0x0001f457 } }, { 0x0001f458, 1, { 0x0001f458 } }, { 0x0001f459, 1, { 0x0001f459 } }, { 0x0001f45a, 1, { 0x0001f45a } }, { 0x0001f45b, 1, { 0x0001f45b } }, { 0x0001f45c, 1, { 0x0001f45c } }, { 0x0001f45d, 1, { 0x0001f45d } }, { 0x0001f45e, 1, { 0x0001f45e } }, { 0x0001f45f, 1, { 0x0001f45f } }, { 0x0001f460, 1, { 0x0001f460 } }, { 0x0001f461, 1, { 0x0001f461 } }, { 0x0001f462, 1, { 0x0001f462 } }, { 0x0001f463, 1, { 0x0001f463 } }, { 0x0001f464, 1, { 0x0001f464 } }, { 0x0001f465, 1, { 0x0001f465 } }, { 0x0001f466, 1, { 0x0001f466 } }, { 0x0001f467, 1, { 0x0001f467 } }, { 0x0001f468, 1, { 0x0001f468 } }, { 0x0001f469, 1, { 0x0001f469 } }, { 0x0001f46a, 1, { 0x0001f46a } }, { 0x0001f46b, 1, { 0x0001f46b } }, { 0x0001f46c, 1, { 0x0001f46c } }, { 0x0001f46d, 1, { 0x0001f46d } }, { 0x0001f46e, 1, { 0x0001f46e } }, { 0x0001f46f, 1, { 0x0001f46f } }, { 0x0001f470, 1, { 0x0001f470 } }, { 0x0001f471, 1, { 0x0001f471 } }, { 0x0001f472, 1, { 0x0001f472 } }, { 0x0001f473, 1, { 0x0001f473 } }, { 0x0001f474, 1, { 0x0001f474 } }, { 0x0001f475, 1, { 0x0001f475 } }, { 0x0001f476, 1, { 0x0001f476 } }, { 0x0001f477, 1, { 0x0001f477 } }, { 0x0001f478, 1, { 0x0001f478 } }, { 0x0001f479, 1, { 0x0001f479 } }, { 0x0001f47a, 1, { 0x0001f47a } }, { 0x0001f47b, 1, { 0x0001f47b } }, { 0x0001f47c, 1, { 0x0001f47c } }, { 0x0001f47d, 1, { 0x0001f47d } }, { 0x0001f47e, 1, { 0x0001f47e } }, { 0x0001f47f, 1, { 0x0001f47f } }, { 0x0001f480, 1, { 0x0001f480 } }, { 0x0001f481, 1, { 0x0001f481 } }, { 0x0001f482, 1, { 0x0001f482 } }, { 0x0001f483, 1, { 0x0001f483 } }, { 0x0001f484, 1, { 0x0001f484 } }, { 0x0001f485, 1, { 0x0001f485 } }, { 0x0001f486, 1, { 0x0001f486 } }, { 0x0001f487, 1, { 0x0001f487 } }, { 0x0001f488, 1, { 0x0001f488 } }, { 0x0001f489, 1, { 0x0001f489 } }, { 0x0001f48a, 1, { 0x0001f48a } }, { 0x0001f48b, 1, { 0x0001f48b } }, { 0x0001f48c, 1, { 0x0001f48c } }, { 0x0001f48d, 1, { 0x0001f48d } }, { 0x0001f48e, 1, { 0x0001f48e } }, { 0x0001f48f, 1, { 0x0001f48f } }, { 0x0001f490, 1, { 0x0001f490 } }, { 0x0001f491, 1, { 0x0001f491 } }, { 0x0001f492, 1, { 0x0001f492 } }, { 0x0001f493, 1, { 0x0001f493 } }, { 0x0001f494, 1, { 0x0001f494 } }, { 0x0001f495, 1, { 0x0001f495 } }, { 0x0001f496, 1, { 0x0001f496 } }, { 0x0001f497, 1, { 0x0001f497 } }, { 0x0001f498, 1, { 0x0001f498 } }, { 0x0001f499, 1, { 0x0001f499 } }, { 0x0001f49a, 1, { 0x0001f49a } }, { 0x0001f49b, 1, { 0x0001f49b } }, { 0x0001f49c, 1, { 0x0001f49c } }, { 0x0001f49d, 1, { 0x0001f49d } }, { 0x0001f49e, 1, { 0x0001f49e } }, { 0x0001f49f, 1, { 0x0001f49f } }, { 0x0001f4a0, 1, { 0x0001f4a0 } }, { 0x0001f4a1, 1, { 0x0001f4a1 } }, { 0x0001f4a2, 1, { 0x0001f4a2 } }, { 0x0001f4a3, 1, { 0x0001f4a3 } }, { 0x0001f4a4, 1, { 0x0001f4a4 } }, { 0x0001f4a5, 1, { 0x0001f4a5 } }, { 0x0001f4a6, 1, { 0x0001f4a6 } }, { 0x0001f4a7, 1, { 0x0001f4a7 } }, { 0x0001f4a8, 1, { 0x0001f4a8 } }, { 0x0001f4a9, 1, { 0x0001f4a9 } }, { 0x0001f4aa, 1, { 0x0001f4aa } }, { 0x0001f4ab, 1, { 0x0001f4ab } }, { 0x0001f4ac, 1, { 0x0001f4ac } }, { 0x0001f4ad, 1, { 0x0001f4ad } }, { 0x0001f4ae, 1, { 0x0001f4ae } }, { 0x0001f4af, 1, { 0x0001f4af } }, { 0x0001f4b0, 1, { 0x0001f4b0 } }, { 0x0001f4b1, 1, { 0x0001f4b1 } }, { 0x0001f4b2, 1, { 0x0001f4b2 } }, { 0x0001f4b3, 1, { 0x0001f4b3 } }, { 0x0001f4b4, 1, { 0x0001f4b4 } }, { 0x0001f4b5, 1, { 0x0001f4b5 } }, { 0x0001f4b6, 1, { 0x0001f4b6 } }, { 0x0001f4b7, 1, { 0x0001f4b7 } }, { 0x0001f4b8, 1, { 0x0001f4b8 } }, { 0x0001f4b9, 1, { 0x0001f4b9 } }, { 0x0001f4ba, 1, { 0x0001f4ba } }, { 0x0001f4bb, 1, { 0x0001f4bb } }, { 0x0001f4bc, 1, { 0x0001f4bc } }, { 0x0001f4bd, 1, { 0x0001f4bd } }, { 0x0001f4be, 1, { 0x0001f4be } }, { 0x0001f4bf, 1, { 0x0001f4bf } }, { 0x0001f4c0, 1, { 0x0001f4c0 } }, { 0x0001f4c1, 1, { 0x0001f4c1 } }, { 0x0001f4c2, 1, { 0x0001f4c2 } }, { 0x0001f4c3, 1, { 0x0001f4c3 } }, { 0x0001f4c4, 1, { 0x0001f4c4 } }, { 0x0001f4c5, 1, { 0x0001f4c5 } }, { 0x0001f4c6, 1, { 0x0001f4c6 } }, { 0x0001f4c7, 1, { 0x0001f4c7 } }, { 0x0001f4c8, 1, { 0x0001f4c8 } }, { 0x0001f4c9, 1, { 0x0001f4c9 } }, { 0x0001f4ca, 1, { 0x0001f4ca } }, { 0x0001f4cb, 1, { 0x0001f4cb } }, { 0x0001f4cc, 1, { 0x0001f4cc } }, { 0x0001f4cd, 1, { 0x0001f4cd } }, { 0x0001f4ce, 1, { 0x0001f4ce } }, { 0x0001f4cf, 1, { 0x0001f4cf } }, { 0x0001f4d0, 1, { 0x0001f4d0 } }, { 0x0001f4d1, 1, { 0x0001f4d1 } }, { 0x0001f4d2, 1, { 0x0001f4d2 } }, { 0x0001f4d3, 1, { 0x0001f4d3 } }, { 0x0001f4d4, 1, { 0x0001f4d4 } }, { 0x0001f4d5, 1, { 0x0001f4d5 } }, { 0x0001f4d6, 1, { 0x0001f4d6 } }, { 0x0001f4d7, 1, { 0x0001f4d7 } }, { 0x0001f4d8, 1, { 0x0001f4d8 } }, { 0x0001f4d9, 1, { 0x0001f4d9 } }, { 0x0001f4da, 1, { 0x0001f4da } }, { 0x0001f4db, 1, { 0x0001f4db } }, { 0x0001f4dc, 1, { 0x0001f4dc } }, { 0x0001f4dd, 1, { 0x0001f4dd } }, { 0x0001f4de, 1, { 0x0001f4de } }, { 0x0001f4df, 1, { 0x0001f4df } }, { 0x0001f4e0, 1, { 0x0001f4e0 } }, { 0x0001f4e1, 1, { 0x0001f4e1 } }, { 0x0001f4e2, 1, { 0x0001f4e2 } }, { 0x0001f4e3, 1, { 0x0001f4e3 } }, { 0x0001f4e4, 1, { 0x0001f4e4 } }, { 0x0001f4e5, 1, { 0x0001f4e5 } }, { 0x0001f4e6, 1, { 0x0001f4e6 } }, { 0x0001f4e7, 1, { 0x0001f4e7 } }, { 0x0001f4e8, 1, { 0x0001f4e8 } }, { 0x0001f4e9, 1, { 0x0001f4e9 } }, { 0x0001f4ea, 1, { 0x0001f4ea } }, { 0x0001f4eb, 1, { 0x0001f4eb } }, { 0x0001f4ec, 1, { 0x0001f4ec } }, { 0x0001f4ed, 1, { 0x0001f4ed } }, { 0x0001f4ee, 1, { 0x0001f4ee } }, { 0x0001f4ef, 1, { 0x0001f4ef } }, { 0x0001f4f0, 1, { 0x0001f4f0 } }, { 0x0001f4f1, 1, { 0x0001f4f1 } }, { 0x0001f4f2, 1, { 0x0001f4f2 } }, { 0x0001f4f3, 1, { 0x0001f4f3 } }, { 0x0001f4f4, 1, { 0x0001f4f4 } }, { 0x0001f4f5, 1, { 0x0001f4f5 } }, { 0x0001f4f6, 1, { 0x0001f4f6 } }, { 0x0001f4f7, 1, { 0x0001f4f7 } }, { 0x0001f4f8, 1, { 0x0001f4f8 } }, { 0x0001f4f9, 1, { 0x0001f4f9 } }, { 0x0001f4fa, 1, { 0x0001f4fa } }, { 0x0001f4fb, 1, { 0x0001f4fb } }, { 0x0001f4fc, 1, { 0x0001f4fc } }, { 0x0001f4fd, 1, { 0x0001f4fd } }, { 0x0001f4fe, 1, { 0x0001f4fe } }, { 0x0001f4ff, 1, { 0x0001f4ff } }, { 0x0001f500, 1, { 0x0001f500 } }, { 0x0001f501, 1, { 0x0001f501 } }, { 0x0001f502, 1, { 0x0001f502 } }, { 0x0001f503, 1, { 0x0001f503 } }, { 0x0001f504, 1, { 0x0001f504 } }, { 0x0001f505, 1, { 0x0001f505 } }, { 0x0001f506, 1, { 0x0001f506 } }, { 0x0001f507, 1, { 0x0001f507 } }, { 0x0001f508, 1, { 0x0001f508 } }, { 0x0001f509, 1, { 0x0001f509 } }, { 0x0001f50a, 1, { 0x0001f50a } }, { 0x0001f50b, 1, { 0x0001f50b } }, { 0x0001f50c, 1, { 0x0001f50c } }, { 0x0001f50d, 1, { 0x0001f50d } }, { 0x0001f50e, 1, { 0x0001f50e } }, { 0x0001f50f, 1, { 0x0001f50f } }, { 0x0001f510, 1, { 0x0001f510 } }, { 0x0001f511, 1, { 0x0001f511 } }, { 0x0001f512, 1, { 0x0001f512 } }, { 0x0001f513, 1, { 0x0001f513 } }, { 0x0001f514, 1, { 0x0001f514 } }, { 0x0001f515, 1, { 0x0001f515 } }, { 0x0001f516, 1, { 0x0001f516 } }, { 0x0001f517, 1, { 0x0001f517 } }, { 0x0001f518, 1, { 0x0001f518 } }, { 0x0001f519, 1, { 0x0001f519 } }, { 0x0001f51a, 1, { 0x0001f51a } }, { 0x0001f51b, 1, { 0x0001f51b } }, { 0x0001f51c, 1, { 0x0001f51c } }, { 0x0001f51d, 1, { 0x0001f51d } }, { 0x0001f51e, 1, { 0x0001f51e } }, { 0x0001f51f, 1, { 0x0001f51f } }, { 0x0001f520, 1, { 0x0001f520 } }, { 0x0001f521, 1, { 0x0001f521 } }, { 0x0001f522, 1, { 0x0001f522 } }, { 0x0001f523, 1, { 0x0001f523 } }, { 0x0001f524, 1, { 0x0001f524 } }, { 0x0001f525, 1, { 0x0001f525 } }, { 0x0001f526, 1, { 0x0001f526 } }, { 0x0001f527, 1, { 0x0001f527 } }, { 0x0001f528, 1, { 0x0001f528 } }, { 0x0001f529, 1, { 0x0001f529 } }, { 0x0001f52a, 1, { 0x0001f52a } }, { 0x0001f52b, 1, { 0x0001f52b } }, { 0x0001f52c, 1, { 0x0001f52c } }, { 0x0001f52d, 1, { 0x0001f52d } }, { 0x0001f52e, 1, { 0x0001f52e } }, { 0x0001f52f, 1, { 0x0001f52f } }, { 0x0001f530, 1, { 0x0001f530 } }, { 0x0001f531, 1, { 0x0001f531 } }, { 0x0001f532, 1, { 0x0001f532 } }, { 0x0001f533, 1, { 0x0001f533 } }, { 0x0001f534, 1, { 0x0001f534 } }, { 0x0001f535, 1, { 0x0001f535 } }, { 0x0001f536, 1, { 0x0001f536 } }, { 0x0001f537, 1, { 0x0001f537 } }, { 0x0001f538, 1, { 0x0001f538 } }, { 0x0001f539, 1, { 0x0001f539 } }, { 0x0001f53a, 1, { 0x0001f53a } }, { 0x0001f53b, 1, { 0x0001f53b } }, { 0x0001f53c, 1, { 0x0001f53c } }, { 0x0001f53d, 1, { 0x0001f53d } }, { 0x0001f53e, 1, { 0x0001f53e } }, { 0x0001f53f, 1, { 0x0001f53f } }, { 0x0001f540, 1, { 0x0001f540 } }, { 0x0001f541, 1, { 0x0001f541 } }, { 0x0001f542, 1, { 0x0001f542 } }, { 0x0001f543, 1, { 0x0001f543 } }, { 0x0001f544, 1, { 0x0001f544 } }, { 0x0001f545, 1, { 0x0001f545 } }, { 0x0001f546, 1, { 0x0001f546 } }, { 0x0001f547, 1, { 0x0001f547 } }, { 0x0001f548, 1, { 0x0001f548 } }, { 0x0001f549, 1, { 0x0001f549 } }, { 0x0001f54a, 1, { 0x0001f54a } }, { 0x0001f54b, 1, { 0x0001f54b } }, { 0x0001f54c, 1, { 0x0001f54c } }, { 0x0001f54d, 1, { 0x0001f54d } }, { 0x0001f54e, 1, { 0x0001f54e } }, { 0x0001f54f, 1, { 0x0001f54f } }, { 0x0001f550, 1, { 0x0001f550 } }, { 0x0001f551, 1, { 0x0001f551 } }, { 0x0001f552, 1, { 0x0001f552 } }, { 0x0001f553, 1, { 0x0001f553 } }, { 0x0001f554, 1, { 0x0001f554 } }, { 0x0001f555, 1, { 0x0001f555 } }, { 0x0001f556, 1, { 0x0001f556 } }, { 0x0001f557, 1, { 0x0001f557 } }, { 0x0001f558, 1, { 0x0001f558 } }, { 0x0001f559, 1, { 0x0001f559 } }, { 0x0001f55a, 1, { 0x0001f55a } }, { 0x0001f55b, 1, { 0x0001f55b } }, { 0x0001f55c, 1, { 0x0001f55c } }, { 0x0001f55d, 1, { 0x0001f55d } }, { 0x0001f55e, 1, { 0x0001f55e } }, { 0x0001f55f, 1, { 0x0001f55f } }, { 0x0001f560, 1, { 0x0001f560 } }, { 0x0001f561, 1, { 0x0001f561 } }, { 0x0001f562, 1, { 0x0001f562 } }, { 0x0001f563, 1, { 0x0001f563 } }, { 0x0001f564, 1, { 0x0001f564 } }, { 0x0001f565, 1, { 0x0001f565 } }, { 0x0001f566, 1, { 0x0001f566 } }, { 0x0001f567, 1, { 0x0001f567 } }, { 0x0001f568, 1, { 0x0001f568 } }, { 0x0001f569, 1, { 0x0001f569 } }, { 0x0001f56a, 1, { 0x0001f56a } }, { 0x0001f56b, 1, { 0x0001f56b } }, { 0x0001f56c, 1, { 0x0001f56c } }, { 0x0001f56d, 1, { 0x0001f56d } }, { 0x0001f56e, 1, { 0x0001f56e } }, { 0x0001f56f, 1, { 0x0001f56f } }, { 0x0001f570, 1, { 0x0001f570 } }, { 0x0001f571, 1, { 0x0001f571 } }, { 0x0001f572, 1, { 0x0001f572 } }, { 0x0001f573, 1, { 0x0001f573 } }, { 0x0001f574, 1, { 0x0001f574 } }, { 0x0001f575, 1, { 0x0001f575 } }, { 0x0001f576, 1, { 0x0001f576 } }, { 0x0001f577, 1, { 0x0001f577 } }, { 0x0001f578, 1, { 0x0001f578 } }, { 0x0001f579, 1, { 0x0001f579 } }, { 0x0001f57a, 1, { 0x0001f57a } }, { 0x0001f57b, 1, { 0x0001f57b } }, { 0x0001f57c, 1, { 0x0001f57c } }, { 0x0001f57d, 1, { 0x0001f57d } }, { 0x0001f57e, 1, { 0x0001f57e } }, { 0x0001f57f, 1, { 0x0001f57f } }, { 0x0001f580, 1, { 0x0001f580 } }, { 0x0001f581, 1, { 0x0001f581 } }, { 0x0001f582, 1, { 0x0001f582 } }, { 0x0001f583, 1, { 0x0001f583 } }, { 0x0001f584, 1, { 0x0001f584 } }, { 0x0001f585, 1, { 0x0001f585 } }, { 0x0001f586, 1, { 0x0001f586 } }, { 0x0001f587, 1, { 0x0001f587 } }, { 0x0001f588, 1, { 0x0001f588 } }, { 0x0001f589, 1, { 0x0001f589 } }, { 0x0001f58a, 1, { 0x0001f58a } }, { 0x0001f58b, 1, { 0x0001f58b } }, { 0x0001f58c, 1, { 0x0001f58c } }, { 0x0001f58d, 1, { 0x0001f58d } }, { 0x0001f58e, 1, { 0x0001f58e } }, { 0x0001f58f, 1, { 0x0001f58f } }, { 0x0001f590, 1, { 0x0001f590 } }, { 0x0001f591, 1, { 0x0001f591 } }, { 0x0001f592, 1, { 0x0001f592 } }, { 0x0001f593, 1, { 0x0001f593 } }, { 0x0001f594, 1, { 0x0001f594 } }, { 0x0001f595, 1, { 0x0001f595 } }, { 0x0001f596, 1, { 0x0001f596 } }, { 0x0001f597, 1, { 0x0001f597 } }, { 0x0001f598, 1, { 0x0001f598 } }, { 0x0001f599, 1, { 0x0001f599 } }, { 0x0001f59a, 1, { 0x0001f59a } }, { 0x0001f59b, 1, { 0x0001f59b } }, { 0x0001f59c, 1, { 0x0001f59c } }, { 0x0001f59d, 1, { 0x0001f59d } }, { 0x0001f59e, 1, { 0x0001f59e } }, { 0x0001f59f, 1, { 0x0001f59f } }, { 0x0001f5a0, 1, { 0x0001f5a0 } }, { 0x0001f5a1, 1, { 0x0001f5a1 } }, { 0x0001f5a2, 1, { 0x0001f5a2 } }, { 0x0001f5a3, 1, { 0x0001f5a3 } }, { 0x0001f5a4, 1, { 0x0001f5a4 } }, { 0x0001f5a5, 1, { 0x0001f5a5 } }, { 0x0001f5a6, 1, { 0x0001f5a6 } }, { 0x0001f5a7, 1, { 0x0001f5a7 } }, { 0x0001f5a8, 1, { 0x0001f5a8 } }, { 0x0001f5a9, 1, { 0x0001f5a9 } }, { 0x0001f5aa, 1, { 0x0001f5aa } }, { 0x0001f5ab, 1, { 0x0001f5ab } }, { 0x0001f5ac, 1, { 0x0001f5ac } }, { 0x0001f5ad, 1, { 0x0001f5ad } }, { 0x0001f5ae, 1, { 0x0001f5ae } }, { 0x0001f5af, 1, { 0x0001f5af } }, { 0x0001f5b0, 1, { 0x0001f5b0 } }, { 0x0001f5b1, 1, { 0x0001f5b1 } }, { 0x0001f5b2, 1, { 0x0001f5b2 } }, { 0x0001f5b3, 1, { 0x0001f5b3 } }, { 0x0001f5b4, 1, { 0x0001f5b4 } }, { 0x0001f5b5, 1, { 0x0001f5b5 } }, { 0x0001f5b6, 1, { 0x0001f5b6 } }, { 0x0001f5b7, 1, { 0x0001f5b7 } }, { 0x0001f5b8, 1, { 0x0001f5b8 } }, { 0x0001f5b9, 1, { 0x0001f5b9 } }, { 0x0001f5ba, 1, { 0x0001f5ba } }, { 0x0001f5bb, 1, { 0x0001f5bb } }, { 0x0001f5bc, 1, { 0x0001f5bc } }, { 0x0001f5bd, 1, { 0x0001f5bd } }, { 0x0001f5be, 1, { 0x0001f5be } }, { 0x0001f5bf, 1, { 0x0001f5bf } }, { 0x0001f5c0, 1, { 0x0001f5c0 } }, { 0x0001f5c1, 1, { 0x0001f5c1 } }, { 0x0001f5c2, 1, { 0x0001f5c2 } }, { 0x0001f5c3, 1, { 0x0001f5c3 } }, { 0x0001f5c4, 1, { 0x0001f5c4 } }, { 0x0001f5c5, 1, { 0x0001f5c5 } }, { 0x0001f5c6, 1, { 0x0001f5c6 } }, { 0x0001f5c7, 1, { 0x0001f5c7 } }, { 0x0001f5c8, 1, { 0x0001f5c8 } }, { 0x0001f5c9, 1, { 0x0001f5c9 } }, { 0x0001f5ca, 1, { 0x0001f5ca } }, { 0x0001f5cb, 1, { 0x0001f5cb } }, { 0x0001f5cc, 1, { 0x0001f5cc } }, { 0x0001f5cd, 1, { 0x0001f5cd } }, { 0x0001f5ce, 1, { 0x0001f5ce } }, { 0x0001f5cf, 1, { 0x0001f5cf } }, { 0x0001f5d0, 1, { 0x0001f5d0 } }, { 0x0001f5d1, 1, { 0x0001f5d1 } }, { 0x0001f5d2, 1, { 0x0001f5d2 } }, { 0x0001f5d3, 1, { 0x0001f5d3 } }, { 0x0001f5d4, 1, { 0x0001f5d4 } }, { 0x0001f5d5, 1, { 0x0001f5d5 } }, { 0x0001f5d6, 1, { 0x0001f5d6 } }, { 0x0001f5d7, 1, { 0x0001f5d7 } }, { 0x0001f5d8, 1, { 0x0001f5d8 } }, { 0x0001f5d9, 1, { 0x0001f5d9 } }, { 0x0001f5da, 1, { 0x0001f5da } }, { 0x0001f5db, 1, { 0x0001f5db } }, { 0x0001f5dc, 1, { 0x0001f5dc } }, { 0x0001f5dd, 1, { 0x0001f5dd } }, { 0x0001f5de, 1, { 0x0001f5de } }, { 0x0001f5df, 1, { 0x0001f5df } }, { 0x0001f5e0, 1, { 0x0001f5e0 } }, { 0x0001f5e1, 1, { 0x0001f5e1 } }, { 0x0001f5e2, 1, { 0x0001f5e2 } }, { 0x0001f5e3, 1, { 0x0001f5e3 } }, { 0x0001f5e4, 1, { 0x0001f5e4 } }, { 0x0001f5e5, 1, { 0x0001f5e5 } }, { 0x0001f5e6, 1, { 0x0001f5e6 } }, { 0x0001f5e7, 1, { 0x0001f5e7 } }, { 0x0001f5e8, 1, { 0x0001f5e8 } }, { 0x0001f5e9, 1, { 0x0001f5e9 } }, { 0x0001f5ea, 1, { 0x0001f5ea } }, { 0x0001f5eb, 1, { 0x0001f5eb } }, { 0x0001f5ec, 1, { 0x0001f5ec } }, { 0x0001f5ed, 1, { 0x0001f5ed } }, { 0x0001f5ee, 1, { 0x0001f5ee } }, { 0x0001f5ef, 1, { 0x0001f5ef } }, { 0x0001f5f0, 1, { 0x0001f5f0 } }, { 0x0001f5f1, 1, { 0x0001f5f1 } }, { 0x0001f5f2, 1, { 0x0001f5f2 } }, { 0x0001f5f3, 1, { 0x0001f5f3 } }, { 0x0001f5f4, 1, { 0x0001f5f4 } }, { 0x0001f5f5, 1, { 0x0001f5f5 } }, { 0x0001f5f6, 1, { 0x0001f5f6 } }, { 0x0001f5f7, 1, { 0x0001f5f7 } }, { 0x0001f5f8, 1, { 0x0001f5f8 } }, { 0x0001f5f9, 1, { 0x0001f5f9 } }, { 0x0001f5fa, 1, { 0x0001f5fa } }, { 0x0001f5fb, 1, { 0x0001f5fb } }, { 0x0001f5fc, 1, { 0x0001f5fc } }, { 0x0001f5fd, 1, { 0x0001f5fd } }, { 0x0001f5fe, 1, { 0x0001f5fe } }, { 0x0001f5ff, 1, { 0x0001f5ff } }, { 0x0001f600, 1, { 0x0001f600 } }, { 0x0001f601, 1, { 0x0001f601 } }, { 0x0001f602, 1, { 0x0001f602 } }, { 0x0001f603, 1, { 0x0001f603 } }, { 0x0001f604, 1, { 0x0001f604 } }, { 0x0001f605, 1, { 0x0001f605 } }, { 0x0001f606, 1, { 0x0001f606 } }, { 0x0001f607, 1, { 0x0001f607 } }, { 0x0001f608, 1, { 0x0001f608 } }, { 0x0001f609, 1, { 0x0001f609 } }, { 0x0001f60a, 1, { 0x0001f60a } }, { 0x0001f60b, 1, { 0x0001f60b } }, { 0x0001f60c, 1, { 0x0001f60c } }, { 0x0001f60d, 1, { 0x0001f60d } }, { 0x0001f60e, 1, { 0x0001f60e } }, { 0x0001f60f, 1, { 0x0001f60f } }, { 0x0001f610, 1, { 0x0001f610 } }, { 0x0001f611, 1, { 0x0001f611 } }, { 0x0001f612, 1, { 0x0001f612 } }, { 0x0001f613, 1, { 0x0001f613 } }, { 0x0001f614, 1, { 0x0001f614 } }, { 0x0001f615, 1, { 0x0001f615 } }, { 0x0001f616, 1, { 0x0001f616 } }, { 0x0001f617, 1, { 0x0001f617 } }, { 0x0001f618, 1, { 0x0001f618 } }, { 0x0001f619, 1, { 0x0001f619 } }, { 0x0001f61a, 1, { 0x0001f61a } }, { 0x0001f61b, 1, { 0x0001f61b } }, { 0x0001f61c, 1, { 0x0001f61c } }, { 0x0001f61d, 1, { 0x0001f61d } }, { 0x0001f61e, 1, { 0x0001f61e } }, { 0x0001f61f, 1, { 0x0001f61f } }, { 0x0001f620, 1, { 0x0001f620 } }, { 0x0001f621, 1, { 0x0001f621 } }, { 0x0001f622, 1, { 0x0001f622 } }, { 0x0001f623, 1, { 0x0001f623 } }, { 0x0001f624, 1, { 0x0001f624 } }, { 0x0001f625, 1, { 0x0001f625 } }, { 0x0001f626, 1, { 0x0001f626 } }, { 0x0001f627, 1, { 0x0001f627 } }, { 0x0001f628, 1, { 0x0001f628 } }, { 0x0001f629, 1, { 0x0001f629 } }, { 0x0001f62a, 1, { 0x0001f62a } }, { 0x0001f62b, 1, { 0x0001f62b } }, { 0x0001f62c, 1, { 0x0001f62c } }, { 0x0001f62d, 1, { 0x0001f62d } }, { 0x0001f62e, 1, { 0x0001f62e } }, { 0x0001f62f, 1, { 0x0001f62f } }, { 0x0001f630, 1, { 0x0001f630 } }, { 0x0001f631, 1, { 0x0001f631 } }, { 0x0001f632, 1, { 0x0001f632 } }, { 0x0001f633, 1, { 0x0001f633 } }, { 0x0001f634, 1, { 0x0001f634 } }, { 0x0001f635, 1, { 0x0001f635 } }, { 0x0001f636, 1, { 0x0001f636 } }, { 0x0001f637, 1, { 0x0001f637 } }, { 0x0001f638, 1, { 0x0001f638 } }, { 0x0001f639, 1, { 0x0001f639 } }, { 0x0001f63a, 1, { 0x0001f63a } }, { 0x0001f63b, 1, { 0x0001f63b } }, { 0x0001f63c, 1, { 0x0001f63c } }, { 0x0001f63d, 1, { 0x0001f63d } }, { 0x0001f63e, 1, { 0x0001f63e } }, { 0x0001f63f, 1, { 0x0001f63f } }, { 0x0001f640, 1, { 0x0001f640 } }, { 0x0001f641, 1, { 0x0001f641 } }, { 0x0001f642, 1, { 0x0001f642 } }, { 0x0001f643, 1, { 0x0001f643 } }, { 0x0001f644, 1, { 0x0001f644 } }, { 0x0001f645, 1, { 0x0001f645 } }, { 0x0001f646, 1, { 0x0001f646 } }, { 0x0001f647, 1, { 0x0001f647 } }, { 0x0001f648, 1, { 0x0001f648 } }, { 0x0001f649, 1, { 0x0001f649 } }, { 0x0001f64a, 1, { 0x0001f64a } }, { 0x0001f64b, 1, { 0x0001f64b } }, { 0x0001f64c, 1, { 0x0001f64c } }, { 0x0001f64d, 1, { 0x0001f64d } }, { 0x0001f64e, 1, { 0x0001f64e } }, { 0x0001f64f, 1, { 0x0001f64f } }, { 0x0001f650, 1, { 0x0001f650 } }, { 0x0001f651, 1, { 0x0001f651 } }, { 0x0001f652, 1, { 0x0001f652 } }, { 0x0001f653, 1, { 0x0001f653 } }, { 0x0001f654, 1, { 0x0001f654 } }, { 0x0001f655, 1, { 0x0001f655 } }, { 0x0001f656, 1, { 0x0001f656 } }, { 0x0001f657, 1, { 0x0001f657 } }, { 0x0001f658, 1, { 0x0001f658 } }, { 0x0001f659, 1, { 0x0001f659 } }, { 0x0001f65a, 1, { 0x0001f65a } }, { 0x0001f65b, 1, { 0x0001f65b } }, { 0x0001f65c, 1, { 0x0001f65c } }, { 0x0001f65d, 1, { 0x0001f65d } }, { 0x0001f65e, 1, { 0x0001f65e } }, { 0x0001f65f, 1, { 0x0001f65f } }, { 0x0001f660, 1, { 0x0001f660 } }, { 0x0001f661, 1, { 0x0001f661 } }, { 0x0001f662, 1, { 0x0001f662 } }, { 0x0001f663, 1, { 0x0001f663 } }, { 0x0001f664, 1, { 0x0001f664 } }, { 0x0001f665, 1, { 0x0001f665 } }, { 0x0001f666, 1, { 0x0001f666 } }, { 0x0001f667, 1, { 0x0001f667 } }, { 0x0001f668, 1, { 0x0001f668 } }, { 0x0001f669, 1, { 0x0001f669 } }, { 0x0001f66a, 1, { 0x0001f66a } }, { 0x0001f66b, 1, { 0x0001f66b } }, { 0x0001f66c, 1, { 0x0001f66c } }, { 0x0001f66d, 1, { 0x0001f66d } }, { 0x0001f66e, 1, { 0x0001f66e } }, { 0x0001f66f, 1, { 0x0001f66f } }, { 0x0001f670, 1, { 0x0001f670 } }, { 0x0001f671, 1, { 0x0001f671 } }, { 0x0001f672, 1, { 0x0001f672 } }, { 0x0001f673, 1, { 0x0001f673 } }, { 0x0001f674, 1, { 0x0001f674 } }, { 0x0001f675, 1, { 0x0001f675 } }, { 0x0001f676, 1, { 0x0001f676 } }, { 0x0001f677, 1, { 0x0001f677 } }, { 0x0001f678, 1, { 0x0001f678 } }, { 0x0001f679, 1, { 0x0001f679 } }, { 0x0001f67a, 1, { 0x0001f67a } }, { 0x0001f67b, 1, { 0x0001f67b } }, { 0x0001f67c, 1, { 0x0001f67c } }, { 0x0001f67d, 1, { 0x0001f67d } }, { 0x0001f67e, 1, { 0x0001f67e } }, { 0x0001f67f, 1, { 0x0001f67f } }, { 0x0001f680, 1, { 0x0001f680 } }, { 0x0001f681, 1, { 0x0001f681 } }, { 0x0001f682, 1, { 0x0001f682 } }, { 0x0001f683, 1, { 0x0001f683 } }, { 0x0001f684, 1, { 0x0001f684 } }, { 0x0001f685, 1, { 0x0001f685 } }, { 0x0001f686, 1, { 0x0001f686 } }, { 0x0001f687, 1, { 0x0001f687 } }, { 0x0001f688, 1, { 0x0001f688 } }, { 0x0001f689, 1, { 0x0001f689 } }, { 0x0001f68a, 1, { 0x0001f68a } }, { 0x0001f68b, 1, { 0x0001f68b } }, { 0x0001f68c, 1, { 0x0001f68c } }, { 0x0001f68d, 1, { 0x0001f68d } }, { 0x0001f68e, 1, { 0x0001f68e } }, { 0x0001f68f, 1, { 0x0001f68f } }, { 0x0001f690, 1, { 0x0001f690 } }, { 0x0001f691, 1, { 0x0001f691 } }, { 0x0001f692, 1, { 0x0001f692 } }, { 0x0001f693, 1, { 0x0001f693 } }, { 0x0001f694, 1, { 0x0001f694 } }, { 0x0001f695, 1, { 0x0001f695 } }, { 0x0001f696, 1, { 0x0001f696 } }, { 0x0001f697, 1, { 0x0001f697 } }, { 0x0001f698, 1, { 0x0001f698 } }, { 0x0001f699, 1, { 0x0001f699 } }, { 0x0001f69a, 1, { 0x0001f69a } }, { 0x0001f69b, 1, { 0x0001f69b } }, { 0x0001f69c, 1, { 0x0001f69c } }, { 0x0001f69d, 1, { 0x0001f69d } }, { 0x0001f69e, 1, { 0x0001f69e } }, { 0x0001f69f, 1, { 0x0001f69f } }, { 0x0001f6a0, 1, { 0x0001f6a0 } }, { 0x0001f6a1, 1, { 0x0001f6a1 } }, { 0x0001f6a2, 1, { 0x0001f6a2 } }, { 0x0001f6a3, 1, { 0x0001f6a3 } }, { 0x0001f6a4, 1, { 0x0001f6a4 } }, { 0x0001f6a5, 1, { 0x0001f6a5 } }, { 0x0001f6a6, 1, { 0x0001f6a6 } }, { 0x0001f6a7, 1, { 0x0001f6a7 } }, { 0x0001f6a8, 1, { 0x0001f6a8 } }, { 0x0001f6a9, 1, { 0x0001f6a9 } }, { 0x0001f6aa, 1, { 0x0001f6aa } }, { 0x0001f6ab, 1, { 0x0001f6ab } }, { 0x0001f6ac, 1, { 0x0001f6ac } }, { 0x0001f6ad, 1, { 0x0001f6ad } }, { 0x0001f6ae, 1, { 0x0001f6ae } }, { 0x0001f6af, 1, { 0x0001f6af } }, { 0x0001f6b0, 1, { 0x0001f6b0 } }, { 0x0001f6b1, 1, { 0x0001f6b1 } }, { 0x0001f6b2, 1, { 0x0001f6b2 } }, { 0x0001f6b3, 1, { 0x0001f6b3 } }, { 0x0001f6b4, 1, { 0x0001f6b4 } }, { 0x0001f6b5, 1, { 0x0001f6b5 } }, { 0x0001f6b6, 1, { 0x0001f6b6 } }, { 0x0001f6b7, 1, { 0x0001f6b7 } }, { 0x0001f6b8, 1, { 0x0001f6b8 } }, { 0x0001f6b9, 1, { 0x0001f6b9 } }, { 0x0001f6ba, 1, { 0x0001f6ba } }, { 0x0001f6bb, 1, { 0x0001f6bb } }, { 0x0001f6bc, 1, { 0x0001f6bc } }, { 0x0001f6bd, 1, { 0x0001f6bd } }, { 0x0001f6be, 1, { 0x0001f6be } }, { 0x0001f6bf, 1, { 0x0001f6bf } }, { 0x0001f6c0, 1, { 0x0001f6c0 } }, { 0x0001f6c1, 1, { 0x0001f6c1 } }, { 0x0001f6c2, 1, { 0x0001f6c2 } }, { 0x0001f6c3, 1, { 0x0001f6c3 } }, { 0x0001f6c4, 1, { 0x0001f6c4 } }, { 0x0001f6c5, 1, { 0x0001f6c5 } }, { 0x0001f6c6, 1, { 0x0001f6c6 } }, { 0x0001f6c7, 1, { 0x0001f6c7 } }, { 0x0001f6c8, 1, { 0x0001f6c8 } }, { 0x0001f6c9, 1, { 0x0001f6c9 } }, { 0x0001f6ca, 1, { 0x0001f6ca } }, { 0x0001f6cb, 1, { 0x0001f6cb } }, { 0x0001f6cc, 1, { 0x0001f6cc } }, { 0x0001f6cd, 1, { 0x0001f6cd } }, { 0x0001f6ce, 1, { 0x0001f6ce } }, { 0x0001f6cf, 1, { 0x0001f6cf } }, { 0x0001f6d0, 1, { 0x0001f6d0 } }, { 0x0001f6d1, 1, { 0x0001f6d1 } }, { 0x0001f6d2, 1, { 0x0001f6d2 } }, { 0x0001f6e0, 1, { 0x0001f6e0 } }, { 0x0001f6e1, 1, { 0x0001f6e1 } }, { 0x0001f6e2, 1, { 0x0001f6e2 } }, { 0x0001f6e3, 1, { 0x0001f6e3 } }, { 0x0001f6e4, 1, { 0x0001f6e4 } }, { 0x0001f6e5, 1, { 0x0001f6e5 } }, { 0x0001f6e6, 1, { 0x0001f6e6 } }, { 0x0001f6e7, 1, { 0x0001f6e7 } }, { 0x0001f6e8, 1, { 0x0001f6e8 } }, { 0x0001f6e9, 1, { 0x0001f6e9 } }, { 0x0001f6ea, 1, { 0x0001f6ea } }, { 0x0001f6eb, 1, { 0x0001f6eb } }, { 0x0001f6ec, 1, { 0x0001f6ec } }, { 0x0001f6f0, 1, { 0x0001f6f0 } }, { 0x0001f6f1, 1, { 0x0001f6f1 } }, { 0x0001f6f2, 1, { 0x0001f6f2 } }, { 0x0001f6f3, 1, { 0x0001f6f3 } }, { 0x0001f6f4, 1, { 0x0001f6f4 } }, { 0x0001f6f5, 1, { 0x0001f6f5 } }, { 0x0001f6f6, 1, { 0x0001f6f6 } }, { 0x0001f700, 1, { 0x0001f700 } }, { 0x0001f701, 1, { 0x0001f701 } }, { 0x0001f702, 1, { 0x0001f702 } }, { 0x0001f703, 1, { 0x0001f703 } }, { 0x0001f704, 1, { 0x0001f704 } }, { 0x0001f705, 1, { 0x0001f705 } }, { 0x0001f706, 1, { 0x0001f706 } }, { 0x0001f707, 1, { 0x0001f707 } }, { 0x0001f708, 1, { 0x0001f708 } }, { 0x0001f709, 1, { 0x0001f709 } }, { 0x0001f70a, 1, { 0x0001f70a } }, { 0x0001f70b, 1, { 0x0001f70b } }, { 0x0001f70c, 1, { 0x0001f70c } }, { 0x0001f70d, 1, { 0x0001f70d } }, { 0x0001f70e, 1, { 0x0001f70e } }, { 0x0001f70f, 1, { 0x0001f70f } }, { 0x0001f710, 1, { 0x0001f710 } }, { 0x0001f711, 1, { 0x0001f711 } }, { 0x0001f712, 1, { 0x0001f712 } }, { 0x0001f713, 1, { 0x0001f713 } }, { 0x0001f714, 1, { 0x0001f714 } }, { 0x0001f715, 1, { 0x0001f715 } }, { 0x0001f716, 1, { 0x0001f716 } }, { 0x0001f717, 1, { 0x0001f717 } }, { 0x0001f718, 1, { 0x0001f718 } }, { 0x0001f719, 1, { 0x0001f719 } }, { 0x0001f71a, 1, { 0x0001f71a } }, { 0x0001f71b, 1, { 0x0001f71b } }, { 0x0001f71c, 1, { 0x0001f71c } }, { 0x0001f71d, 1, { 0x0001f71d } }, { 0x0001f71e, 1, { 0x0001f71e } }, { 0x0001f71f, 1, { 0x0001f71f } }, { 0x0001f720, 1, { 0x0001f720 } }, { 0x0001f721, 1, { 0x0001f721 } }, { 0x0001f722, 1, { 0x0001f722 } }, { 0x0001f723, 1, { 0x0001f723 } }, { 0x0001f724, 1, { 0x0001f724 } }, { 0x0001f725, 1, { 0x0001f725 } }, { 0x0001f726, 1, { 0x0001f726 } }, { 0x0001f727, 1, { 0x0001f727 } }, { 0x0001f728, 1, { 0x0001f728 } }, { 0x0001f729, 1, { 0x0001f729 } }, { 0x0001f72a, 1, { 0x0001f72a } }, { 0x0001f72b, 1, { 0x0001f72b } }, { 0x0001f72c, 1, { 0x0001f72c } }, { 0x0001f72d, 1, { 0x0001f72d } }, { 0x0001f72e, 1, { 0x0001f72e } }, { 0x0001f72f, 1, { 0x0001f72f } }, { 0x0001f730, 1, { 0x0001f730 } }, { 0x0001f731, 1, { 0x0001f731 } }, { 0x0001f732, 1, { 0x0001f732 } }, { 0x0001f733, 1, { 0x0001f733 } }, { 0x0001f734, 1, { 0x0001f734 } }, { 0x0001f735, 1, { 0x0001f735 } }, { 0x0001f736, 1, { 0x0001f736 } }, { 0x0001f737, 1, { 0x0001f737 } }, { 0x0001f738, 1, { 0x0001f738 } }, { 0x0001f739, 1, { 0x0001f739 } }, { 0x0001f73a, 1, { 0x0001f73a } }, { 0x0001f73b, 1, { 0x0001f73b } }, { 0x0001f73c, 1, { 0x0001f73c } }, { 0x0001f73d, 1, { 0x0001f73d } }, { 0x0001f73e, 1, { 0x0001f73e } }, { 0x0001f73f, 1, { 0x0001f73f } }, { 0x0001f740, 1, { 0x0001f740 } }, { 0x0001f741, 1, { 0x0001f741 } }, { 0x0001f742, 1, { 0x0001f742 } }, { 0x0001f743, 1, { 0x0001f743 } }, { 0x0001f744, 1, { 0x0001f744 } }, { 0x0001f745, 1, { 0x0001f745 } }, { 0x0001f746, 1, { 0x0001f746 } }, { 0x0001f747, 1, { 0x0001f747 } }, { 0x0001f748, 1, { 0x0001f748 } }, { 0x0001f749, 1, { 0x0001f749 } }, { 0x0001f74a, 1, { 0x0001f74a } }, { 0x0001f74b, 1, { 0x0001f74b } }, { 0x0001f74c, 1, { 0x0001f74c } }, { 0x0001f74d, 1, { 0x0001f74d } }, { 0x0001f74e, 1, { 0x0001f74e } }, { 0x0001f74f, 1, { 0x0001f74f } }, { 0x0001f750, 1, { 0x0001f750 } }, { 0x0001f751, 1, { 0x0001f751 } }, { 0x0001f752, 1, { 0x0001f752 } }, { 0x0001f753, 1, { 0x0001f753 } }, { 0x0001f754, 1, { 0x0001f754 } }, { 0x0001f755, 1, { 0x0001f755 } }, { 0x0001f756, 1, { 0x0001f756 } }, { 0x0001f757, 1, { 0x0001f757 } }, { 0x0001f758, 1, { 0x0001f758 } }, { 0x0001f759, 1, { 0x0001f759 } }, { 0x0001f75a, 1, { 0x0001f75a } }, { 0x0001f75b, 1, { 0x0001f75b } }, { 0x0001f75c, 1, { 0x0001f75c } }, { 0x0001f75d, 1, { 0x0001f75d } }, { 0x0001f75e, 1, { 0x0001f75e } }, { 0x0001f75f, 1, { 0x0001f75f } }, { 0x0001f760, 1, { 0x0001f760 } }, { 0x0001f761, 1, { 0x0001f761 } }, { 0x0001f762, 1, { 0x0001f762 } }, { 0x0001f763, 1, { 0x0001f763 } }, { 0x0001f764, 1, { 0x0001f764 } }, { 0x0001f765, 1, { 0x0001f765 } }, { 0x0001f766, 1, { 0x0001f766 } }, { 0x0001f767, 1, { 0x0001f767 } }, { 0x0001f768, 1, { 0x0001f768 } }, { 0x0001f769, 1, { 0x0001f769 } }, { 0x0001f76a, 1, { 0x0001f76a } }, { 0x0001f76b, 1, { 0x0001f76b } }, { 0x0001f76c, 1, { 0x0001f76c } }, { 0x0001f76d, 1, { 0x0001f76d } }, { 0x0001f76e, 1, { 0x0001f76e } }, { 0x0001f76f, 1, { 0x0001f76f } }, { 0x0001f770, 1, { 0x0001f770 } }, { 0x0001f771, 1, { 0x0001f771 } }, { 0x0001f772, 1, { 0x0001f772 } }, { 0x0001f773, 1, { 0x0001f773 } }, { 0x0001f780, 1, { 0x0001f780 } }, { 0x0001f781, 1, { 0x0001f781 } }, { 0x0001f782, 1, { 0x0001f782 } }, { 0x0001f783, 1, { 0x0001f783 } }, { 0x0001f784, 1, { 0x0001f784 } }, { 0x0001f785, 1, { 0x0001f785 } }, { 0x0001f786, 1, { 0x0001f786 } }, { 0x0001f787, 1, { 0x0001f787 } }, { 0x0001f788, 1, { 0x0001f788 } }, { 0x0001f789, 1, { 0x0001f789 } }, { 0x0001f78a, 1, { 0x0001f78a } }, { 0x0001f78b, 1, { 0x0001f78b } }, { 0x0001f78c, 1, { 0x0001f78c } }, { 0x0001f78d, 1, { 0x0001f78d } }, { 0x0001f78e, 1, { 0x0001f78e } }, { 0x0001f78f, 1, { 0x0001f78f } }, { 0x0001f790, 1, { 0x0001f790 } }, { 0x0001f791, 1, { 0x0001f791 } }, { 0x0001f792, 1, { 0x0001f792 } }, { 0x0001f793, 1, { 0x0001f793 } }, { 0x0001f794, 1, { 0x0001f794 } }, { 0x0001f795, 1, { 0x0001f795 } }, { 0x0001f796, 1, { 0x0001f796 } }, { 0x0001f797, 1, { 0x0001f797 } }, { 0x0001f798, 1, { 0x0001f798 } }, { 0x0001f799, 1, { 0x0001f799 } }, { 0x0001f79a, 1, { 0x0001f79a } }, { 0x0001f79b, 1, { 0x0001f79b } }, { 0x0001f79c, 1, { 0x0001f79c } }, { 0x0001f79d, 1, { 0x0001f79d } }, { 0x0001f79e, 1, { 0x0001f79e } }, { 0x0001f79f, 1, { 0x0001f79f } }, { 0x0001f7a0, 1, { 0x0001f7a0 } }, { 0x0001f7a1, 1, { 0x0001f7a1 } }, { 0x0001f7a2, 1, { 0x0001f7a2 } }, { 0x0001f7a3, 1, { 0x0001f7a3 } }, { 0x0001f7a4, 1, { 0x0001f7a4 } }, { 0x0001f7a5, 1, { 0x0001f7a5 } }, { 0x0001f7a6, 1, { 0x0001f7a6 } }, { 0x0001f7a7, 1, { 0x0001f7a7 } }, { 0x0001f7a8, 1, { 0x0001f7a8 } }, { 0x0001f7a9, 1, { 0x0001f7a9 } }, { 0x0001f7aa, 1, { 0x0001f7aa } }, { 0x0001f7ab, 1, { 0x0001f7ab } }, { 0x0001f7ac, 1, { 0x0001f7ac } }, { 0x0001f7ad, 1, { 0x0001f7ad } }, { 0x0001f7ae, 1, { 0x0001f7ae } }, { 0x0001f7af, 1, { 0x0001f7af } }, { 0x0001f7b0, 1, { 0x0001f7b0 } }, { 0x0001f7b1, 1, { 0x0001f7b1 } }, { 0x0001f7b2, 1, { 0x0001f7b2 } }, { 0x0001f7b3, 1, { 0x0001f7b3 } }, { 0x0001f7b4, 1, { 0x0001f7b4 } }, { 0x0001f7b5, 1, { 0x0001f7b5 } }, { 0x0001f7b6, 1, { 0x0001f7b6 } }, { 0x0001f7b7, 1, { 0x0001f7b7 } }, { 0x0001f7b8, 1, { 0x0001f7b8 } }, { 0x0001f7b9, 1, { 0x0001f7b9 } }, { 0x0001f7ba, 1, { 0x0001f7ba } }, { 0x0001f7bb, 1, { 0x0001f7bb } }, { 0x0001f7bc, 1, { 0x0001f7bc } }, { 0x0001f7bd, 1, { 0x0001f7bd } }, { 0x0001f7be, 1, { 0x0001f7be } }, { 0x0001f7bf, 1, { 0x0001f7bf } }, { 0x0001f7c0, 1, { 0x0001f7c0 } }, { 0x0001f7c1, 1, { 0x0001f7c1 } }, { 0x0001f7c2, 1, { 0x0001f7c2 } }, { 0x0001f7c3, 1, { 0x0001f7c3 } }, { 0x0001f7c4, 1, { 0x0001f7c4 } }, { 0x0001f7c5, 1, { 0x0001f7c5 } }, { 0x0001f7c6, 1, { 0x0001f7c6 } }, { 0x0001f7c7, 1, { 0x0001f7c7 } }, { 0x0001f7c8, 1, { 0x0001f7c8 } }, { 0x0001f7c9, 1, { 0x0001f7c9 } }, { 0x0001f7ca, 1, { 0x0001f7ca } }, { 0x0001f7cb, 1, { 0x0001f7cb } }, { 0x0001f7cc, 1, { 0x0001f7cc } }, { 0x0001f7cd, 1, { 0x0001f7cd } }, { 0x0001f7ce, 1, { 0x0001f7ce } }, { 0x0001f7cf, 1, { 0x0001f7cf } }, { 0x0001f7d0, 1, { 0x0001f7d0 } }, { 0x0001f7d1, 1, { 0x0001f7d1 } }, { 0x0001f7d2, 1, { 0x0001f7d2 } }, { 0x0001f7d3, 1, { 0x0001f7d3 } }, { 0x0001f7d4, 1, { 0x0001f7d4 } }, { 0x0001f800, 1, { 0x0001f800 } }, { 0x0001f801, 1, { 0x0001f801 } }, { 0x0001f802, 1, { 0x0001f802 } }, { 0x0001f803, 1, { 0x0001f803 } }, { 0x0001f804, 1, { 0x0001f804 } }, { 0x0001f805, 1, { 0x0001f805 } }, { 0x0001f806, 1, { 0x0001f806 } }, { 0x0001f807, 1, { 0x0001f807 } }, { 0x0001f808, 1, { 0x0001f808 } }, { 0x0001f809, 1, { 0x0001f809 } }, { 0x0001f80a, 1, { 0x0001f80a } }, { 0x0001f80b, 1, { 0x0001f80b } }, { 0x0001f810, 1, { 0x0001f810 } }, { 0x0001f811, 1, { 0x0001f811 } }, { 0x0001f812, 1, { 0x0001f812 } }, { 0x0001f813, 1, { 0x0001f813 } }, { 0x0001f814, 1, { 0x0001f814 } }, { 0x0001f815, 1, { 0x0001f815 } }, { 0x0001f816, 1, { 0x0001f816 } }, { 0x0001f817, 1, { 0x0001f817 } }, { 0x0001f818, 1, { 0x0001f818 } }, { 0x0001f819, 1, { 0x0001f819 } }, { 0x0001f81a, 1, { 0x0001f81a } }, { 0x0001f81b, 1, { 0x0001f81b } }, { 0x0001f81c, 1, { 0x0001f81c } }, { 0x0001f81d, 1, { 0x0001f81d } }, { 0x0001f81e, 1, { 0x0001f81e } }, { 0x0001f81f, 1, { 0x0001f81f } }, { 0x0001f820, 1, { 0x0001f820 } }, { 0x0001f821, 1, { 0x0001f821 } }, { 0x0001f822, 1, { 0x0001f822 } }, { 0x0001f823, 1, { 0x0001f823 } }, { 0x0001f824, 1, { 0x0001f824 } }, { 0x0001f825, 1, { 0x0001f825 } }, { 0x0001f826, 1, { 0x0001f826 } }, { 0x0001f827, 1, { 0x0001f827 } }, { 0x0001f828, 1, { 0x0001f828 } }, { 0x0001f829, 1, { 0x0001f829 } }, { 0x0001f82a, 1, { 0x0001f82a } }, { 0x0001f82b, 1, { 0x0001f82b } }, { 0x0001f82c, 1, { 0x0001f82c } }, { 0x0001f82d, 1, { 0x0001f82d } }, { 0x0001f82e, 1, { 0x0001f82e } }, { 0x0001f82f, 1, { 0x0001f82f } }, { 0x0001f830, 1, { 0x0001f830 } }, { 0x0001f831, 1, { 0x0001f831 } }, { 0x0001f832, 1, { 0x0001f832 } }, { 0x0001f833, 1, { 0x0001f833 } }, { 0x0001f834, 1, { 0x0001f834 } }, { 0x0001f835, 1, { 0x0001f835 } }, { 0x0001f836, 1, { 0x0001f836 } }, { 0x0001f837, 1, { 0x0001f837 } }, { 0x0001f838, 1, { 0x0001f838 } }, { 0x0001f839, 1, { 0x0001f839 } }, { 0x0001f83a, 1, { 0x0001f83a } }, { 0x0001f83b, 1, { 0x0001f83b } }, { 0x0001f83c, 1, { 0x0001f83c } }, { 0x0001f83d, 1, { 0x0001f83d } }, { 0x0001f83e, 1, { 0x0001f83e } }, { 0x0001f83f, 1, { 0x0001f83f } }, { 0x0001f840, 1, { 0x0001f840 } }, { 0x0001f841, 1, { 0x0001f841 } }, { 0x0001f842, 1, { 0x0001f842 } }, { 0x0001f843, 1, { 0x0001f843 } }, { 0x0001f844, 1, { 0x0001f844 } }, { 0x0001f845, 1, { 0x0001f845 } }, { 0x0001f846, 1, { 0x0001f846 } }, { 0x0001f847, 1, { 0x0001f847 } }, { 0x0001f850, 1, { 0x0001f850 } }, { 0x0001f851, 1, { 0x0001f851 } }, { 0x0001f852, 1, { 0x0001f852 } }, { 0x0001f853, 1, { 0x0001f853 } }, { 0x0001f854, 1, { 0x0001f854 } }, { 0x0001f855, 1, { 0x0001f855 } }, { 0x0001f856, 1, { 0x0001f856 } }, { 0x0001f857, 1, { 0x0001f857 } }, { 0x0001f858, 1, { 0x0001f858 } }, { 0x0001f859, 1, { 0x0001f859 } }, { 0x0001f860, 1, { 0x0001f860 } }, { 0x0001f861, 1, { 0x0001f861 } }, { 0x0001f862, 1, { 0x0001f862 } }, { 0x0001f863, 1, { 0x0001f863 } }, { 0x0001f864, 1, { 0x0001f864 } }, { 0x0001f865, 1, { 0x0001f865 } }, { 0x0001f866, 1, { 0x0001f866 } }, { 0x0001f867, 1, { 0x0001f867 } }, { 0x0001f868, 1, { 0x0001f868 } }, { 0x0001f869, 1, { 0x0001f869 } }, { 0x0001f86a, 1, { 0x0001f86a } }, { 0x0001f86b, 1, { 0x0001f86b } }, { 0x0001f86c, 1, { 0x0001f86c } }, { 0x0001f86d, 1, { 0x0001f86d } }, { 0x0001f86e, 1, { 0x0001f86e } }, { 0x0001f86f, 1, { 0x0001f86f } }, { 0x0001f870, 1, { 0x0001f870 } }, { 0x0001f871, 1, { 0x0001f871 } }, { 0x0001f872, 1, { 0x0001f872 } }, { 0x0001f873, 1, { 0x0001f873 } }, { 0x0001f874, 1, { 0x0001f874 } }, { 0x0001f875, 1, { 0x0001f875 } }, { 0x0001f876, 1, { 0x0001f876 } }, { 0x0001f877, 1, { 0x0001f877 } }, { 0x0001f878, 1, { 0x0001f878 } }, { 0x0001f879, 1, { 0x0001f879 } }, { 0x0001f87a, 1, { 0x0001f87a } }, { 0x0001f87b, 1, { 0x0001f87b } }, { 0x0001f87c, 1, { 0x0001f87c } }, { 0x0001f87d, 1, { 0x0001f87d } }, { 0x0001f87e, 1, { 0x0001f87e } }, { 0x0001f87f, 1, { 0x0001f87f } }, { 0x0001f880, 1, { 0x0001f880 } }, { 0x0001f881, 1, { 0x0001f881 } }, { 0x0001f882, 1, { 0x0001f882 } }, { 0x0001f883, 1, { 0x0001f883 } }, { 0x0001f884, 1, { 0x0001f884 } }, { 0x0001f885, 1, { 0x0001f885 } }, { 0x0001f886, 1, { 0x0001f886 } }, { 0x0001f887, 1, { 0x0001f887 } }, { 0x0001f890, 1, { 0x0001f890 } }, { 0x0001f891, 1, { 0x0001f891 } }, { 0x0001f892, 1, { 0x0001f892 } }, { 0x0001f893, 1, { 0x0001f893 } }, { 0x0001f894, 1, { 0x0001f894 } }, { 0x0001f895, 1, { 0x0001f895 } }, { 0x0001f896, 1, { 0x0001f896 } }, { 0x0001f897, 1, { 0x0001f897 } }, { 0x0001f898, 1, { 0x0001f898 } }, { 0x0001f899, 1, { 0x0001f899 } }, { 0x0001f89a, 1, { 0x0001f89a } }, { 0x0001f89b, 1, { 0x0001f89b } }, { 0x0001f89c, 1, { 0x0001f89c } }, { 0x0001f89d, 1, { 0x0001f89d } }, { 0x0001f89e, 1, { 0x0001f89e } }, { 0x0001f89f, 1, { 0x0001f89f } }, { 0x0001f8a0, 1, { 0x0001f8a0 } }, { 0x0001f8a1, 1, { 0x0001f8a1 } }, { 0x0001f8a2, 1, { 0x0001f8a2 } }, { 0x0001f8a3, 1, { 0x0001f8a3 } }, { 0x0001f8a4, 1, { 0x0001f8a4 } }, { 0x0001f8a5, 1, { 0x0001f8a5 } }, { 0x0001f8a6, 1, { 0x0001f8a6 } }, { 0x0001f8a7, 1, { 0x0001f8a7 } }, { 0x0001f8a8, 1, { 0x0001f8a8 } }, { 0x0001f8a9, 1, { 0x0001f8a9 } }, { 0x0001f8aa, 1, { 0x0001f8aa } }, { 0x0001f8ab, 1, { 0x0001f8ab } }, { 0x0001f8ac, 1, { 0x0001f8ac } }, { 0x0001f8ad, 1, { 0x0001f8ad } }, { 0x0001f910, 1, { 0x0001f910 } }, { 0x0001f911, 1, { 0x0001f911 } }, { 0x0001f912, 1, { 0x0001f912 } }, { 0x0001f913, 1, { 0x0001f913 } }, { 0x0001f914, 1, { 0x0001f914 } }, { 0x0001f915, 1, { 0x0001f915 } }, { 0x0001f916, 1, { 0x0001f916 } }, { 0x0001f917, 1, { 0x0001f917 } }, { 0x0001f918, 1, { 0x0001f918 } }, { 0x0001f919, 1, { 0x0001f919 } }, { 0x0001f91a, 1, { 0x0001f91a } }, { 0x0001f91b, 1, { 0x0001f91b } }, { 0x0001f91c, 1, { 0x0001f91c } }, { 0x0001f91d, 1, { 0x0001f91d } }, { 0x0001f91e, 1, { 0x0001f91e } }, { 0x0001f920, 1, { 0x0001f920 } }, { 0x0001f921, 1, { 0x0001f921 } }, { 0x0001f922, 1, { 0x0001f922 } }, { 0x0001f923, 1, { 0x0001f923 } }, { 0x0001f924, 1, { 0x0001f924 } }, { 0x0001f925, 1, { 0x0001f925 } }, { 0x0001f926, 1, { 0x0001f926 } }, { 0x0001f927, 1, { 0x0001f927 } }, { 0x0001f930, 1, { 0x0001f930 } }, { 0x0001f933, 1, { 0x0001f933 } }, { 0x0001f934, 1, { 0x0001f934 } }, { 0x0001f935, 1, { 0x0001f935 } }, { 0x0001f936, 1, { 0x0001f936 } }, { 0x0001f937, 1, { 0x0001f937 } }, { 0x0001f938, 1, { 0x0001f938 } }, { 0x0001f939, 1, { 0x0001f939 } }, { 0x0001f93a, 1, { 0x0001f93a } }, { 0x0001f93b, 1, { 0x0001f93b } }, { 0x0001f93c, 1, { 0x0001f93c } }, { 0x0001f93d, 1, { 0x0001f93d } }, { 0x0001f93e, 1, { 0x0001f93e } }, { 0x0001f940, 1, { 0x0001f940 } }, { 0x0001f941, 1, { 0x0001f941 } }, { 0x0001f942, 1, { 0x0001f942 } }, { 0x0001f943, 1, { 0x0001f943 } }, { 0x0001f944, 1, { 0x0001f944 } }, { 0x0001f945, 1, { 0x0001f945 } }, { 0x0001f946, 1, { 0x0001f946 } }, { 0x0001f947, 1, { 0x0001f947 } }, { 0x0001f948, 1, { 0x0001f948 } }, { 0x0001f949, 1, { 0x0001f949 } }, { 0x0001f94a, 1, { 0x0001f94a } }, { 0x0001f94b, 1, { 0x0001f94b } }, { 0x0001f950, 1, { 0x0001f950 } }, { 0x0001f951, 1, { 0x0001f951 } }, { 0x0001f952, 1, { 0x0001f952 } }, { 0x0001f953, 1, { 0x0001f953 } }, { 0x0001f954, 1, { 0x0001f954 } }, { 0x0001f955, 1, { 0x0001f955 } }, { 0x0001f956, 1, { 0x0001f956 } }, { 0x0001f957, 1, { 0x0001f957 } }, { 0x0001f958, 1, { 0x0001f958 } }, { 0x0001f959, 1, { 0x0001f959 } }, { 0x0001f95a, 1, { 0x0001f95a } }, { 0x0001f95b, 1, { 0x0001f95b } }, { 0x0001f95c, 1, { 0x0001f95c } }, { 0x0001f95d, 1, { 0x0001f95d } }, { 0x0001f95e, 1, { 0x0001f95e } }, { 0x0001f980, 1, { 0x0001f980 } }, { 0x0001f981, 1, { 0x0001f981 } }, { 0x0001f982, 1, { 0x0001f982 } }, { 0x0001f983, 1, { 0x0001f983 } }, { 0x0001f984, 1, { 0x0001f984 } }, { 0x0001f985, 1, { 0x0001f985 } }, { 0x0001f986, 1, { 0x0001f986 } }, { 0x0001f987, 1, { 0x0001f987 } }, { 0x0001f988, 1, { 0x0001f988 } }, { 0x0001f989, 1, { 0x0001f989 } }, { 0x0001f98a, 1, { 0x0001f98a } }, { 0x0001f98b, 1, { 0x0001f98b } }, { 0x0001f98c, 1, { 0x0001f98c } }, { 0x0001f98d, 1, { 0x0001f98d } }, { 0x0001f98e, 1, { 0x0001f98e } }, { 0x0001f98f, 1, { 0x0001f98f } }, { 0x0001f990, 1, { 0x0001f990 } }, { 0x0001f991, 1, { 0x0001f991 } }, { 0x0001f9c0, 1, { 0x0001f9c0 } }, { 0x00020000, 1, { 0x00020000 } }, { 0x0002a6d6, 1, { 0x0002a6d6 } }, { 0x0002a700, 1, { 0x0002a700 } }, { 0x0002b734, 1, { 0x0002b734 } }, { 0x0002b740, 1, { 0x0002b740 } }, { 0x0002b81d, 1, { 0x0002b81d } }, { 0x0002b820, 1, { 0x0002b820 } }, { 0x0002cea1, 1, { 0x0002cea1 } }, { 0x0002f800, 1, { 0x00004e3d } }, { 0x0002f801, 1, { 0x00004e38 } }, { 0x0002f802, 1, { 0x00004e41 } }, { 0x0002f803, 1, { 0x00020122 } }, { 0x0002f804, 1, { 0x00004f60 } }, { 0x0002f805, 1, { 0x00004fae } }, { 0x0002f806, 1, { 0x00004fbb } }, { 0x0002f807, 1, { 0x00005002 } }, { 0x0002f808, 1, { 0x0000507a } }, { 0x0002f809, 1, { 0x00005099 } }, { 0x0002f80a, 1, { 0x000050e7 } }, { 0x0002f80b, 1, { 0x000050cf } }, { 0x0002f80c, 1, { 0x0000349e } }, { 0x0002f80d, 1, { 0x0002063a } }, { 0x0002f80e, 1, { 0x0000514d } }, { 0x0002f80f, 1, { 0x00005154 } }, { 0x0002f810, 1, { 0x00005164 } }, { 0x0002f811, 1, { 0x00005177 } }, { 0x0002f812, 1, { 0x0002051c } }, { 0x0002f813, 1, { 0x000034b9 } }, { 0x0002f814, 1, { 0x00005167 } }, { 0x0002f815, 1, { 0x0000518d } }, { 0x0002f816, 1, { 0x0002054b } }, { 0x0002f817, 1, { 0x00005197 } }, { 0x0002f818, 1, { 0x000051a4 } }, { 0x0002f819, 1, { 0x00004ecc } }, { 0x0002f81a, 1, { 0x000051ac } }, { 0x0002f81b, 1, { 0x000051b5 } }, { 0x0002f81c, 1, { 0x000291df } }, { 0x0002f81d, 1, { 0x000051f5 } }, { 0x0002f81e, 1, { 0x00005203 } }, { 0x0002f81f, 1, { 0x000034df } }, { 0x0002f820, 1, { 0x0000523b } }, { 0x0002f821, 1, { 0x00005246 } }, { 0x0002f822, 1, { 0x00005272 } }, { 0x0002f823, 1, { 0x00005277 } }, { 0x0002f824, 1, { 0x00003515 } }, { 0x0002f825, 1, { 0x000052c7 } }, { 0x0002f826, 1, { 0x000052c9 } }, { 0x0002f827, 1, { 0x000052e4 } }, { 0x0002f828, 1, { 0x000052fa } }, { 0x0002f829, 1, { 0x00005305 } }, { 0x0002f82a, 1, { 0x00005306 } }, { 0x0002f82b, 1, { 0x00005317 } }, { 0x0002f82c, 1, { 0x00005349 } }, { 0x0002f82d, 1, { 0x00005351 } }, { 0x0002f82e, 1, { 0x0000535a } }, { 0x0002f82f, 1, { 0x00005373 } }, { 0x0002f830, 1, { 0x0000537d } }, { 0x0002f831, 1, { 0x0000537f } }, { 0x0002f832, 1, { 0x0000537f } }, { 0x0002f833, 1, { 0x0000537f } }, { 0x0002f834, 1, { 0x00020a2c } }, { 0x0002f835, 1, { 0x00007070 } }, { 0x0002f836, 1, { 0x000053ca } }, { 0x0002f837, 1, { 0x000053df } }, { 0x0002f838, 1, { 0x00020b63 } }, { 0x0002f839, 1, { 0x000053eb } }, { 0x0002f83a, 1, { 0x000053f1 } }, { 0x0002f83b, 1, { 0x00005406 } }, { 0x0002f83c, 1, { 0x0000549e } }, { 0x0002f83d, 1, { 0x00005438 } }, { 0x0002f83e, 1, { 0x00005448 } }, { 0x0002f83f, 1, { 0x00005468 } }, { 0x0002f840, 1, { 0x000054a2 } }, { 0x0002f841, 1, { 0x000054f6 } }, { 0x0002f842, 1, { 0x00005510 } }, { 0x0002f843, 1, { 0x00005553 } }, { 0x0002f844, 1, { 0x00005563 } }, { 0x0002f845, 1, { 0x00005584 } }, { 0x0002f846, 1, { 0x00005584 } }, { 0x0002f847, 1, { 0x00005599 } }, { 0x0002f848, 1, { 0x000055ab } }, { 0x0002f849, 1, { 0x000055b3 } }, { 0x0002f84a, 1, { 0x000055c2 } }, { 0x0002f84b, 1, { 0x00005716 } }, { 0x0002f84c, 1, { 0x00005606 } }, { 0x0002f84d, 1, { 0x00005717 } }, { 0x0002f84e, 1, { 0x00005651 } }, { 0x0002f84f, 1, { 0x00005674 } }, { 0x0002f850, 1, { 0x00005207 } }, { 0x0002f851, 1, { 0x000058ee } }, { 0x0002f852, 1, { 0x000057ce } }, { 0x0002f853, 1, { 0x000057f4 } }, { 0x0002f854, 1, { 0x0000580d } }, { 0x0002f855, 1, { 0x0000578b } }, { 0x0002f856, 1, { 0x00005832 } }, { 0x0002f857, 1, { 0x00005831 } }, { 0x0002f858, 1, { 0x000058ac } }, { 0x0002f859, 1, { 0x000214e4 } }, { 0x0002f85a, 1, { 0x000058f2 } }, { 0x0002f85b, 1, { 0x000058f7 } }, { 0x0002f85c, 1, { 0x00005906 } }, { 0x0002f85d, 1, { 0x0000591a } }, { 0x0002f85e, 1, { 0x00005922 } }, { 0x0002f85f, 1, { 0x00005962 } }, { 0x0002f860, 1, { 0x000216a8 } }, { 0x0002f861, 1, { 0x000216ea } }, { 0x0002f862, 1, { 0x000059ec } }, { 0x0002f863, 1, { 0x00005a1b } }, { 0x0002f864, 1, { 0x00005a27 } }, { 0x0002f865, 1, { 0x000059d8 } }, { 0x0002f866, 1, { 0x00005a66 } }, { 0x0002f867, 1, { 0x000036ee } }, { 0x0002f868, 1, { 0x000036fc } }, { 0x0002f869, 1, { 0x00005b08 } }, { 0x0002f86a, 1, { 0x00005b3e } }, { 0x0002f86b, 1, { 0x00005b3e } }, { 0x0002f86c, 1, { 0x000219c8 } }, { 0x0002f86d, 1, { 0x00005bc3 } }, { 0x0002f86e, 1, { 0x00005bd8 } }, { 0x0002f86f, 1, { 0x00005be7 } }, { 0x0002f870, 1, { 0x00005bf3 } }, { 0x0002f871, 1, { 0x00021b18 } }, { 0x0002f872, 1, { 0x00005bff } }, { 0x0002f873, 1, { 0x00005c06 } }, { 0x0002f874, 1, { 0x00005f53 } }, { 0x0002f875, 1, { 0x00005c22 } }, { 0x0002f876, 1, { 0x00003781 } }, { 0x0002f877, 1, { 0x00005c60 } }, { 0x0002f878, 1, { 0x00005c6e } }, { 0x0002f879, 1, { 0x00005cc0 } }, { 0x0002f87a, 1, { 0x00005c8d } }, { 0x0002f87b, 1, { 0x00021de4 } }, { 0x0002f87c, 1, { 0x00005d43 } }, { 0x0002f87d, 1, { 0x00021de6 } }, { 0x0002f87e, 1, { 0x00005d6e } }, { 0x0002f87f, 1, { 0x00005d6b } }, { 0x0002f880, 1, { 0x00005d7c } }, { 0x0002f881, 1, { 0x00005de1 } }, { 0x0002f882, 1, { 0x00005de2 } }, { 0x0002f883, 1, { 0x0000382f } }, { 0x0002f884, 1, { 0x00005dfd } }, { 0x0002f885, 1, { 0x00005e28 } }, { 0x0002f886, 1, { 0x00005e3d } }, { 0x0002f887, 1, { 0x00005e69 } }, { 0x0002f888, 1, { 0x00003862 } }, { 0x0002f889, 1, { 0x00022183 } }, { 0x0002f88a, 1, { 0x0000387c } }, { 0x0002f88b, 1, { 0x00005eb0 } }, { 0x0002f88c, 1, { 0x00005eb3 } }, { 0x0002f88d, 1, { 0x00005eb6 } }, { 0x0002f88e, 1, { 0x00005eca } }, { 0x0002f88f, 1, { 0x0002a392 } }, { 0x0002f890, 1, { 0x00005efe } }, { 0x0002f891, 1, { 0x00022331 } }, { 0x0002f892, 1, { 0x00022331 } }, { 0x0002f893, 1, { 0x00008201 } }, { 0x0002f894, 1, { 0x00005f22 } }, { 0x0002f895, 1, { 0x00005f22 } }, { 0x0002f896, 1, { 0x000038c7 } }, { 0x0002f897, 1, { 0x000232b8 } }, { 0x0002f898, 1, { 0x000261da } }, { 0x0002f899, 1, { 0x00005f62 } }, { 0x0002f89a, 1, { 0x00005f6b } }, { 0x0002f89b, 1, { 0x000038e3 } }, { 0x0002f89c, 1, { 0x00005f9a } }, { 0x0002f89d, 1, { 0x00005fcd } }, { 0x0002f89e, 1, { 0x00005fd7 } }, { 0x0002f89f, 1, { 0x00005ff9 } }, { 0x0002f8a0, 1, { 0x00006081 } }, { 0x0002f8a1, 1, { 0x0000393a } }, { 0x0002f8a2, 1, { 0x0000391c } }, { 0x0002f8a3, 1, { 0x00006094 } }, { 0x0002f8a4, 1, { 0x000226d4 } }, { 0x0002f8a5, 1, { 0x000060c7 } }, { 0x0002f8a6, 1, { 0x00006148 } }, { 0x0002f8a7, 1, { 0x0000614c } }, { 0x0002f8a8, 1, { 0x0000614e } }, { 0x0002f8a9, 1, { 0x0000614c } }, { 0x0002f8aa, 1, { 0x0000617a } }, { 0x0002f8ab, 1, { 0x0000618e } }, { 0x0002f8ac, 1, { 0x000061b2 } }, { 0x0002f8ad, 1, { 0x000061a4 } }, { 0x0002f8ae, 1, { 0x000061af } }, { 0x0002f8af, 1, { 0x000061de } }, { 0x0002f8b0, 1, { 0x000061f2 } }, { 0x0002f8b1, 1, { 0x000061f6 } }, { 0x0002f8b2, 1, { 0x00006210 } }, { 0x0002f8b3, 1, { 0x0000621b } }, { 0x0002f8b4, 1, { 0x0000625d } }, { 0x0002f8b5, 1, { 0x000062b1 } }, { 0x0002f8b6, 1, { 0x000062d4 } }, { 0x0002f8b7, 1, { 0x00006350 } }, { 0x0002f8b8, 1, { 0x00022b0c } }, { 0x0002f8b9, 1, { 0x0000633d } }, { 0x0002f8ba, 1, { 0x000062fc } }, { 0x0002f8bb, 1, { 0x00006368 } }, { 0x0002f8bc, 1, { 0x00006383 } }, { 0x0002f8bd, 1, { 0x000063e4 } }, { 0x0002f8be, 1, { 0x00022bf1 } }, { 0x0002f8bf, 1, { 0x00006422 } }, { 0x0002f8c0, 1, { 0x000063c5 } }, { 0x0002f8c1, 1, { 0x000063a9 } }, { 0x0002f8c2, 1, { 0x00003a2e } }, { 0x0002f8c3, 1, { 0x00006469 } }, { 0x0002f8c4, 1, { 0x0000647e } }, { 0x0002f8c5, 1, { 0x0000649d } }, { 0x0002f8c6, 1, { 0x00006477 } }, { 0x0002f8c7, 1, { 0x00003a6c } }, { 0x0002f8c8, 1, { 0x0000654f } }, { 0x0002f8c9, 1, { 0x0000656c } }, { 0x0002f8ca, 1, { 0x0002300a } }, { 0x0002f8cb, 1, { 0x000065e3 } }, { 0x0002f8cc, 1, { 0x000066f8 } }, { 0x0002f8cd, 1, { 0x00006649 } }, { 0x0002f8ce, 1, { 0x00003b19 } }, { 0x0002f8cf, 1, { 0x00006691 } }, { 0x0002f8d0, 1, { 0x00003b08 } }, { 0x0002f8d1, 1, { 0x00003ae4 } }, { 0x0002f8d2, 1, { 0x00005192 } }, { 0x0002f8d3, 1, { 0x00005195 } }, { 0x0002f8d4, 1, { 0x00006700 } }, { 0x0002f8d5, 1, { 0x0000669c } }, { 0x0002f8d6, 1, { 0x000080ad } }, { 0x0002f8d7, 1, { 0x000043d9 } }, { 0x0002f8d8, 1, { 0x00006717 } }, { 0x0002f8d9, 1, { 0x0000671b } }, { 0x0002f8da, 1, { 0x00006721 } }, { 0x0002f8db, 1, { 0x0000675e } }, { 0x0002f8dc, 1, { 0x00006753 } }, { 0x0002f8dd, 1, { 0x000233c3 } }, { 0x0002f8de, 1, { 0x00003b49 } }, { 0x0002f8df, 1, { 0x000067fa } }, { 0x0002f8e0, 1, { 0x00006785 } }, { 0x0002f8e1, 1, { 0x00006852 } }, { 0x0002f8e2, 1, { 0x00006885 } }, { 0x0002f8e3, 1, { 0x0002346d } }, { 0x0002f8e4, 1, { 0x0000688e } }, { 0x0002f8e5, 1, { 0x0000681f } }, { 0x0002f8e6, 1, { 0x00006914 } }, { 0x0002f8e7, 1, { 0x00003b9d } }, { 0x0002f8e8, 1, { 0x00006942 } }, { 0x0002f8e9, 1, { 0x000069a3 } }, { 0x0002f8ea, 1, { 0x000069ea } }, { 0x0002f8eb, 1, { 0x00006aa8 } }, { 0x0002f8ec, 1, { 0x000236a3 } }, { 0x0002f8ed, 1, { 0x00006adb } }, { 0x0002f8ee, 1, { 0x00003c18 } }, { 0x0002f8ef, 1, { 0x00006b21 } }, { 0x0002f8f0, 1, { 0x000238a7 } }, { 0x0002f8f1, 1, { 0x00006b54 } }, { 0x0002f8f2, 1, { 0x00003c4e } }, { 0x0002f8f3, 1, { 0x00006b72 } }, { 0x0002f8f4, 1, { 0x00006b9f } }, { 0x0002f8f5, 1, { 0x00006bba } }, { 0x0002f8f6, 1, { 0x00006bbb } }, { 0x0002f8f7, 1, { 0x00023a8d } }, { 0x0002f8f8, 1, { 0x00021d0b } }, { 0x0002f8f9, 1, { 0x00023afa } }, { 0x0002f8fa, 1, { 0x00006c4e } }, { 0x0002f8fb, 1, { 0x00023cbc } }, { 0x0002f8fc, 1, { 0x00006cbf } }, { 0x0002f8fd, 1, { 0x00006ccd } }, { 0x0002f8fe, 1, { 0x00006c67 } }, { 0x0002f8ff, 1, { 0x00006d16 } }, { 0x0002f900, 1, { 0x00006d3e } }, { 0x0002f901, 1, { 0x00006d77 } }, { 0x0002f902, 1, { 0x00006d41 } }, { 0x0002f903, 1, { 0x00006d69 } }, { 0x0002f904, 1, { 0x00006d78 } }, { 0x0002f905, 1, { 0x00006d85 } }, { 0x0002f906, 1, { 0x00023d1e } }, { 0x0002f907, 1, { 0x00006d34 } }, { 0x0002f908, 1, { 0x00006e2f } }, { 0x0002f909, 1, { 0x00006e6e } }, { 0x0002f90a, 1, { 0x00003d33 } }, { 0x0002f90b, 1, { 0x00006ecb } }, { 0x0002f90c, 1, { 0x00006ec7 } }, { 0x0002f90d, 1, { 0x00023ed1 } }, { 0x0002f90e, 1, { 0x00006df9 } }, { 0x0002f90f, 1, { 0x00006f6e } }, { 0x0002f910, 1, { 0x00023f5e } }, { 0x0002f911, 1, { 0x00023f8e } }, { 0x0002f912, 1, { 0x00006fc6 } }, { 0x0002f913, 1, { 0x00007039 } }, { 0x0002f914, 1, { 0x0000701e } }, { 0x0002f915, 1, { 0x0000701b } }, { 0x0002f916, 1, { 0x00003d96 } }, { 0x0002f917, 1, { 0x0000704a } }, { 0x0002f918, 1, { 0x0000707d } }, { 0x0002f919, 1, { 0x00007077 } }, { 0x0002f91a, 1, { 0x000070ad } }, { 0x0002f91b, 1, { 0x00020525 } }, { 0x0002f91c, 1, { 0x00007145 } }, { 0x0002f91d, 1, { 0x00024263 } }, { 0x0002f91e, 1, { 0x0000719c } }, { 0x0002f91f, 1, { 0x000243ab } }, { 0x0002f920, 1, { 0x00007228 } }, { 0x0002f921, 1, { 0x00007235 } }, { 0x0002f922, 1, { 0x00007250 } }, { 0x0002f923, 1, { 0x00024608 } }, { 0x0002f924, 1, { 0x00007280 } }, { 0x0002f925, 1, { 0x00007295 } }, { 0x0002f926, 1, { 0x00024735 } }, { 0x0002f927, 1, { 0x00024814 } }, { 0x0002f928, 1, { 0x0000737a } }, { 0x0002f929, 1, { 0x0000738b } }, { 0x0002f92a, 1, { 0x00003eac } }, { 0x0002f92b, 1, { 0x000073a5 } }, { 0x0002f92c, 1, { 0x00003eb8 } }, { 0x0002f92d, 1, { 0x00003eb8 } }, { 0x0002f92e, 1, { 0x00007447 } }, { 0x0002f92f, 1, { 0x0000745c } }, { 0x0002f930, 1, { 0x00007471 } }, { 0x0002f931, 1, { 0x00007485 } }, { 0x0002f932, 1, { 0x000074ca } }, { 0x0002f933, 1, { 0x00003f1b } }, { 0x0002f934, 1, { 0x00007524 } }, { 0x0002f935, 1, { 0x00024c36 } }, { 0x0002f936, 1, { 0x0000753e } }, { 0x0002f937, 1, { 0x00024c92 } }, { 0x0002f938, 1, { 0x00007570 } }, { 0x0002f939, 1, { 0x0002219f } }, { 0x0002f93a, 1, { 0x00007610 } }, { 0x0002f93b, 1, { 0x00024fa1 } }, { 0x0002f93c, 1, { 0x00024fb8 } }, { 0x0002f93d, 1, { 0x00025044 } }, { 0x0002f93e, 1, { 0x00003ffc } }, { 0x0002f93f, 1, { 0x00004008 } }, { 0x0002f940, 1, { 0x000076f4 } }, { 0x0002f941, 1, { 0x000250f3 } }, { 0x0002f942, 1, { 0x000250f2 } }, { 0x0002f943, 1, { 0x00025119 } }, { 0x0002f944, 1, { 0x00025133 } }, { 0x0002f945, 1, { 0x0000771e } }, { 0x0002f946, 1, { 0x0000771f } }, { 0x0002f947, 1, { 0x0000771f } }, { 0x0002f948, 1, { 0x0000774a } }, { 0x0002f949, 1, { 0x00004039 } }, { 0x0002f94a, 1, { 0x0000778b } }, { 0x0002f94b, 1, { 0x00004046 } }, { 0x0002f94c, 1, { 0x00004096 } }, { 0x0002f94d, 1, { 0x0002541d } }, { 0x0002f94e, 1, { 0x0000784e } }, { 0x0002f94f, 1, { 0x0000788c } }, { 0x0002f950, 1, { 0x000078cc } }, { 0x0002f951, 1, { 0x000040e3 } }, { 0x0002f952, 1, { 0x00025626 } }, { 0x0002f953, 1, { 0x00007956 } }, { 0x0002f954, 1, { 0x0002569a } }, { 0x0002f955, 1, { 0x000256c5 } }, { 0x0002f956, 1, { 0x0000798f } }, { 0x0002f957, 1, { 0x000079eb } }, { 0x0002f958, 1, { 0x0000412f } }, { 0x0002f959, 1, { 0x00007a40 } }, { 0x0002f95a, 1, { 0x00007a4a } }, { 0x0002f95b, 1, { 0x00007a4f } }, { 0x0002f95c, 1, { 0x0002597c } }, { 0x0002f95d, 1, { 0x00025aa7 } }, { 0x0002f95e, 1, { 0x00025aa7 } }, { 0x0002f95f, 1, { 0x00007aee } }, { 0x0002f960, 1, { 0x00004202 } }, { 0x0002f961, 1, { 0x00025bab } }, { 0x0002f962, 1, { 0x00007bc6 } }, { 0x0002f963, 1, { 0x00007bc9 } }, { 0x0002f964, 1, { 0x00004227 } }, { 0x0002f965, 1, { 0x00025c80 } }, { 0x0002f966, 1, { 0x00007cd2 } }, { 0x0002f967, 1, { 0x000042a0 } }, { 0x0002f968, 1, { 0x00007ce8 } }, { 0x0002f969, 1, { 0x00007ce3 } }, { 0x0002f96a, 1, { 0x00007d00 } }, { 0x0002f96b, 1, { 0x00025f86 } }, { 0x0002f96c, 1, { 0x00007d63 } }, { 0x0002f96d, 1, { 0x00004301 } }, { 0x0002f96e, 1, { 0x00007dc7 } }, { 0x0002f96f, 1, { 0x00007e02 } }, { 0x0002f970, 1, { 0x00007e45 } }, { 0x0002f971, 1, { 0x00004334 } }, { 0x0002f972, 1, { 0x00026228 } }, { 0x0002f973, 1, { 0x00026247 } }, { 0x0002f974, 1, { 0x00004359 } }, { 0x0002f975, 1, { 0x000262d9 } }, { 0x0002f976, 1, { 0x00007f7a } }, { 0x0002f977, 1, { 0x0002633e } }, { 0x0002f978, 1, { 0x00007f95 } }, { 0x0002f979, 1, { 0x00007ffa } }, { 0x0002f97a, 1, { 0x00008005 } }, { 0x0002f97b, 1, { 0x000264da } }, { 0x0002f97c, 1, { 0x00026523 } }, { 0x0002f97d, 1, { 0x00008060 } }, { 0x0002f97e, 1, { 0x000265a8 } }, { 0x0002f97f, 1, { 0x00008070 } }, { 0x0002f980, 1, { 0x0002335f } }, { 0x0002f981, 1, { 0x000043d5 } }, { 0x0002f982, 1, { 0x000080b2 } }, { 0x0002f983, 1, { 0x00008103 } }, { 0x0002f984, 1, { 0x0000440b } }, { 0x0002f985, 1, { 0x0000813e } }, { 0x0002f986, 1, { 0x00005ab5 } }, { 0x0002f987, 1, { 0x000267a7 } }, { 0x0002f988, 1, { 0x000267b5 } }, { 0x0002f989, 1, { 0x00023393 } }, { 0x0002f98a, 1, { 0x0002339c } }, { 0x0002f98b, 1, { 0x00008201 } }, { 0x0002f98c, 1, { 0x00008204 } }, { 0x0002f98d, 1, { 0x00008f9e } }, { 0x0002f98e, 1, { 0x0000446b } }, { 0x0002f98f, 1, { 0x00008291 } }, { 0x0002f990, 1, { 0x0000828b } }, { 0x0002f991, 1, { 0x0000829d } }, { 0x0002f992, 1, { 0x000052b3 } }, { 0x0002f993, 1, { 0x000082b1 } }, { 0x0002f994, 1, { 0x000082b3 } }, { 0x0002f995, 1, { 0x000082bd } }, { 0x0002f996, 1, { 0x000082e6 } }, { 0x0002f997, 1, { 0x00026b3c } }, { 0x0002f998, 1, { 0x000082e5 } }, { 0x0002f999, 1, { 0x0000831d } }, { 0x0002f99a, 1, { 0x00008363 } }, { 0x0002f99b, 1, { 0x000083ad } }, { 0x0002f99c, 1, { 0x00008323 } }, { 0x0002f99d, 1, { 0x000083bd } }, { 0x0002f99e, 1, { 0x000083e7 } }, { 0x0002f99f, 1, { 0x00008457 } }, { 0x0002f9a0, 1, { 0x00008353 } }, { 0x0002f9a1, 1, { 0x000083ca } }, { 0x0002f9a2, 1, { 0x000083cc } }, { 0x0002f9a3, 1, { 0x000083dc } }, { 0x0002f9a4, 1, { 0x00026c36 } }, { 0x0002f9a5, 1, { 0x00026d6b } }, { 0x0002f9a6, 1, { 0x00026cd5 } }, { 0x0002f9a7, 1, { 0x0000452b } }, { 0x0002f9a8, 1, { 0x000084f1 } }, { 0x0002f9a9, 1, { 0x000084f3 } }, { 0x0002f9aa, 1, { 0x00008516 } }, { 0x0002f9ab, 1, { 0x000273ca } }, { 0x0002f9ac, 1, { 0x00008564 } }, { 0x0002f9ad, 1, { 0x00026f2c } }, { 0x0002f9ae, 1, { 0x0000455d } }, { 0x0002f9af, 1, { 0x00004561 } }, { 0x0002f9b0, 1, { 0x00026fb1 } }, { 0x0002f9b1, 1, { 0x000270d2 } }, { 0x0002f9b2, 1, { 0x0000456b } }, { 0x0002f9b3, 1, { 0x00008650 } }, { 0x0002f9b4, 1, { 0x0000865c } }, { 0x0002f9b5, 1, { 0x00008667 } }, { 0x0002f9b6, 1, { 0x00008669 } }, { 0x0002f9b7, 1, { 0x000086a9 } }, { 0x0002f9b8, 1, { 0x00008688 } }, { 0x0002f9b9, 1, { 0x0000870e } }, { 0x0002f9ba, 1, { 0x000086e2 } }, { 0x0002f9bb, 1, { 0x00008779 } }, { 0x0002f9bc, 1, { 0x00008728 } }, { 0x0002f9bd, 1, { 0x0000876b } }, { 0x0002f9be, 1, { 0x00008786 } }, { 0x0002f9bf, 1, { 0x000045d7 } }, { 0x0002f9c0, 1, { 0x000087e1 } }, { 0x0002f9c1, 1, { 0x00008801 } }, { 0x0002f9c2, 1, { 0x000045f9 } }, { 0x0002f9c3, 1, { 0x00008860 } }, { 0x0002f9c4, 1, { 0x00008863 } }, { 0x0002f9c5, 1, { 0x00027667 } }, { 0x0002f9c6, 1, { 0x000088d7 } }, { 0x0002f9c7, 1, { 0x000088de } }, { 0x0002f9c8, 1, { 0x00004635 } }, { 0x0002f9c9, 1, { 0x000088fa } }, { 0x0002f9ca, 1, { 0x000034bb } }, { 0x0002f9cb, 1, { 0x000278ae } }, { 0x0002f9cc, 1, { 0x00027966 } }, { 0x0002f9cd, 1, { 0x000046be } }, { 0x0002f9ce, 1, { 0x000046c7 } }, { 0x0002f9cf, 1, { 0x00008aa0 } }, { 0x0002f9d0, 1, { 0x00008aed } }, { 0x0002f9d1, 1, { 0x00008b8a } }, { 0x0002f9d2, 1, { 0x00008c55 } }, { 0x0002f9d3, 1, { 0x00027ca8 } }, { 0x0002f9d4, 1, { 0x00008cab } }, { 0x0002f9d5, 1, { 0x00008cc1 } }, { 0x0002f9d6, 1, { 0x00008d1b } }, { 0x0002f9d7, 1, { 0x00008d77 } }, { 0x0002f9d8, 1, { 0x00027f2f } }, { 0x0002f9d9, 1, { 0x00020804 } }, { 0x0002f9da, 1, { 0x00008dcb } }, { 0x0002f9db, 1, { 0x00008dbc } }, { 0x0002f9dc, 1, { 0x00008df0 } }, { 0x0002f9dd, 1, { 0x000208de } }, { 0x0002f9de, 1, { 0x00008ed4 } }, { 0x0002f9df, 1, { 0x00008f38 } }, { 0x0002f9e0, 1, { 0x000285d2 } }, { 0x0002f9e1, 1, { 0x000285ed } }, { 0x0002f9e2, 1, { 0x00009094 } }, { 0x0002f9e3, 1, { 0x000090f1 } }, { 0x0002f9e4, 1, { 0x00009111 } }, { 0x0002f9e5, 1, { 0x0002872e } }, { 0x0002f9e6, 1, { 0x0000911b } }, { 0x0002f9e7, 1, { 0x00009238 } }, { 0x0002f9e8, 1, { 0x000092d7 } }, { 0x0002f9e9, 1, { 0x000092d8 } }, { 0x0002f9ea, 1, { 0x0000927c } }, { 0x0002f9eb, 1, { 0x000093f9 } }, { 0x0002f9ec, 1, { 0x00009415 } }, { 0x0002f9ed, 1, { 0x00028bfa } }, { 0x0002f9ee, 1, { 0x0000958b } }, { 0x0002f9ef, 1, { 0x00004995 } }, { 0x0002f9f0, 1, { 0x000095b7 } }, { 0x0002f9f1, 1, { 0x00028d77 } }, { 0x0002f9f2, 1, { 0x000049e6 } }, { 0x0002f9f3, 1, { 0x000096c3 } }, { 0x0002f9f4, 1, { 0x00005db2 } }, { 0x0002f9f5, 1, { 0x00009723 } }, { 0x0002f9f6, 1, { 0x00029145 } }, { 0x0002f9f7, 1, { 0x0002921a } }, { 0x0002f9f8, 1, { 0x00004a6e } }, { 0x0002f9f9, 1, { 0x00004a76 } }, { 0x0002f9fa, 1, { 0x000097e0 } }, { 0x0002f9fb, 1, { 0x0002940a } }, { 0x0002f9fc, 1, { 0x00004ab2 } }, { 0x0002f9fd, 1, { 0x00029496 } }, { 0x0002f9fe, 1, { 0x0000980b } }, { 0x0002f9ff, 1, { 0x0000980b } }, { 0x0002fa00, 1, { 0x00009829 } }, { 0x0002fa01, 1, { 0x000295b6 } }, { 0x0002fa02, 1, { 0x000098e2 } }, { 0x0002fa03, 1, { 0x00004b33 } }, { 0x0002fa04, 1, { 0x00009929 } }, { 0x0002fa05, 1, { 0x000099a7 } }, { 0x0002fa06, 1, { 0x000099c2 } }, { 0x0002fa07, 1, { 0x000099fe } }, { 0x0002fa08, 1, { 0x00004bce } }, { 0x0002fa09, 1, { 0x00029b30 } }, { 0x0002fa0a, 1, { 0x00009b12 } }, { 0x0002fa0b, 1, { 0x00009c40 } }, { 0x0002fa0c, 1, { 0x00009cfd } }, { 0x0002fa0d, 1, { 0x00004cce } }, { 0x0002fa0e, 1, { 0x00004ced } }, { 0x0002fa0f, 1, { 0x00009d67 } }, { 0x0002fa10, 1, { 0x0002a0ce } }, { 0x0002fa11, 1, { 0x00004cf8 } }, { 0x0002fa12, 1, { 0x0002a105 } }, { 0x0002fa13, 1, { 0x0002a20e } }, { 0x0002fa14, 1, { 0x0002a291 } }, { 0x0002fa15, 1, { 0x00009ebb } }, { 0x0002fa16, 1, { 0x00004d56 } }, { 0x0002fa17, 1, { 0x00009ef9 } }, { 0x0002fa18, 1, { 0x00009efe } }, { 0x0002fa19, 1, { 0x00009f05 } }, { 0x0002fa1a, 1, { 0x00009f0f } }, { 0x0002fa1b, 1, { 0x00009f16 } }, { 0x0002fa1c, 1, { 0x00009f3b } }, { 0x0002fa1d, 1, { 0x0002a600 } }, { 0x000e0001, 1, { 0x000e0001 } }, { 0x000e0020, 1, { 0x000e0020 } }, { 0x000e0021, 1, { 0x000e0021 } }, { 0x000e0022, 1, { 0x000e0022 } }, { 0x000e0023, 1, { 0x000e0023 } }, { 0x000e0024, 1, { 0x000e0024 } }, { 0x000e0025, 1, { 0x000e0025 } }, { 0x000e0026, 1, { 0x000e0026 } }, { 0x000e0027, 1, { 0x000e0027 } }, { 0x000e0028, 1, { 0x000e0028 } }, { 0x000e0029, 1, { 0x000e0029 } }, { 0x000e002a, 1, { 0x000e002a } }, { 0x000e002b, 1, { 0x000e002b } }, { 0x000e002c, 1, { 0x000e002c } }, { 0x000e002d, 1, { 0x000e002d } }, { 0x000e002e, 1, { 0x000e002e } }, { 0x000e002f, 1, { 0x000e002f } }, { 0x000e0030, 1, { 0x000e0030 } }, { 0x000e0031, 1, { 0x000e0031 } }, { 0x000e0032, 1, { 0x000e0032 } }, { 0x000e0033, 1, { 0x000e0033 } }, { 0x000e0034, 1, { 0x000e0034 } }, { 0x000e0035, 1, { 0x000e0035 } }, { 0x000e0036, 1, { 0x000e0036 } }, { 0x000e0037, 1, { 0x000e0037 } }, { 0x000e0038, 1, { 0x000e0038 } }, { 0x000e0039, 1, { 0x000e0039 } }, { 0x000e003a, 1, { 0x000e003a } }, { 0x000e003b, 1, { 0x000e003b } }, { 0x000e003c, 1, { 0x000e003c } }, { 0x000e003d, 1, { 0x000e003d } }, { 0x000e003e, 1, { 0x000e003e } }, { 0x000e003f, 1, { 0x000e003f } }, { 0x000e0040, 1, { 0x000e0040 } }, { 0x000e0041, 1, { 0x000e0041 } }, { 0x000e0042, 1, { 0x000e0042 } }, { 0x000e0043, 1, { 0x000e0043 } }, { 0x000e0044, 1, { 0x000e0044 } }, { 0x000e0045, 1, { 0x000e0045 } }, { 0x000e0046, 1, { 0x000e0046 } }, { 0x000e0047, 1, { 0x000e0047 } }, { 0x000e0048, 1, { 0x000e0048 } }, { 0x000e0049, 1, { 0x000e0049 } }, { 0x000e004a, 1, { 0x000e004a } }, { 0x000e004b, 1, { 0x000e004b } }, { 0x000e004c, 1, { 0x000e004c } }, { 0x000e004d, 1, { 0x000e004d } }, { 0x000e004e, 1, { 0x000e004e } }, { 0x000e004f, 1, { 0x000e004f } }, { 0x000e0050, 1, { 0x000e0050 } }, { 0x000e0051, 1, { 0x000e0051 } }, { 0x000e0052, 1, { 0x000e0052 } }, { 0x000e0053, 1, { 0x000e0053 } }, { 0x000e0054, 1, { 0x000e0054 } }, { 0x000e0055, 1, { 0x000e0055 } }, { 0x000e0056, 1, { 0x000e0056 } }, { 0x000e0057, 1, { 0x000e0057 } }, { 0x000e0058, 1, { 0x000e0058 } }, { 0x000e0059, 1, { 0x000e0059 } }, { 0x000e005a, 1, { 0x000e005a } }, { 0x000e005b, 1, { 0x000e005b } }, { 0x000e005c, 1, { 0x000e005c } }, { 0x000e005d, 1, { 0x000e005d } }, { 0x000e005e, 1, { 0x000e005e } }, { 0x000e005f, 1, { 0x000e005f } }, { 0x000e0060, 1, { 0x000e0060 } }, { 0x000e0061, 1, { 0x000e0061 } }, { 0x000e0062, 1, { 0x000e0062 } }, { 0x000e0063, 1, { 0x000e0063 } }, { 0x000e0064, 1, { 0x000e0064 } }, { 0x000e0065, 1, { 0x000e0065 } }, { 0x000e0066, 1, { 0x000e0066 } }, { 0x000e0067, 1, { 0x000e0067 } }, { 0x000e0068, 1, { 0x000e0068 } }, { 0x000e0069, 1, { 0x000e0069 } }, { 0x000e006a, 1, { 0x000e006a } }, { 0x000e006b, 1, { 0x000e006b } }, { 0x000e006c, 1, { 0x000e006c } }, { 0x000e006d, 1, { 0x000e006d } }, { 0x000e006e, 1, { 0x000e006e } }, { 0x000e006f, 1, { 0x000e006f } }, { 0x000e0070, 1, { 0x000e0070 } }, { 0x000e0071, 1, { 0x000e0071 } }, { 0x000e0072, 1, { 0x000e0072 } }, { 0x000e0073, 1, { 0x000e0073 } }, { 0x000e0074, 1, { 0x000e0074 } }, { 0x000e0075, 1, { 0x000e0075 } }, { 0x000e0076, 1, { 0x000e0076 } }, { 0x000e0077, 1, { 0x000e0077 } }, { 0x000e0078, 1, { 0x000e0078 } }, { 0x000e0079, 1, { 0x000e0079 } }, { 0x000e007a, 1, { 0x000e007a } }, { 0x000e007b, 1, { 0x000e007b } }, { 0x000e007c, 1, { 0x000e007c } }, { 0x000e007d, 1, { 0x000e007d } }, { 0x000e007e, 1, { 0x000e007e } }, { 0x000e007f, 1, { 0x000e007f } }, { 0x000e0100, 1, { 0x000e0100 } }, { 0x000e0101, 1, { 0x000e0101 } }, { 0x000e0102, 1, { 0x000e0102 } }, { 0x000e0103, 1, { 0x000e0103 } }, { 0x000e0104, 1, { 0x000e0104 } }, { 0x000e0105, 1, { 0x000e0105 } }, { 0x000e0106, 1, { 0x000e0106 } }, { 0x000e0107, 1, { 0x000e0107 } }, { 0x000e0108, 1, { 0x000e0108 } }, { 0x000e0109, 1, { 0x000e0109 } }, { 0x000e010a, 1, { 0x000e010a } }, { 0x000e010b, 1, { 0x000e010b } }, { 0x000e010c, 1, { 0x000e010c } }, { 0x000e010d, 1, { 0x000e010d } }, { 0x000e010e, 1, { 0x000e010e } }, { 0x000e010f, 1, { 0x000e010f } }, { 0x000e0110, 1, { 0x000e0110 } }, { 0x000e0111, 1, { 0x000e0111 } }, { 0x000e0112, 1, { 0x000e0112 } }, { 0x000e0113, 1, { 0x000e0113 } }, { 0x000e0114, 1, { 0x000e0114 } }, { 0x000e0115, 1, { 0x000e0115 } }, { 0x000e0116, 1, { 0x000e0116 } }, { 0x000e0117, 1, { 0x000e0117 } }, { 0x000e0118, 1, { 0x000e0118 } }, { 0x000e0119, 1, { 0x000e0119 } }, { 0x000e011a, 1, { 0x000e011a } }, { 0x000e011b, 1, { 0x000e011b } }, { 0x000e011c, 1, { 0x000e011c } }, { 0x000e011d, 1, { 0x000e011d } }, { 0x000e011e, 1, { 0x000e011e } }, { 0x000e011f, 1, { 0x000e011f } }, { 0x000e0120, 1, { 0x000e0120 } }, { 0x000e0121, 1, { 0x000e0121 } }, { 0x000e0122, 1, { 0x000e0122 } }, { 0x000e0123, 1, { 0x000e0123 } }, { 0x000e0124, 1, { 0x000e0124 } }, { 0x000e0125, 1, { 0x000e0125 } }, { 0x000e0126, 1, { 0x000e0126 } }, { 0x000e0127, 1, { 0x000e0127 } }, { 0x000e0128, 1, { 0x000e0128 } }, { 0x000e0129, 1, { 0x000e0129 } }, { 0x000e012a, 1, { 0x000e012a } }, { 0x000e012b, 1, { 0x000e012b } }, { 0x000e012c, 1, { 0x000e012c } }, { 0x000e012d, 1, { 0x000e012d } }, { 0x000e012e, 1, { 0x000e012e } }, { 0x000e012f, 1, { 0x000e012f } }, { 0x000e0130, 1, { 0x000e0130 } }, { 0x000e0131, 1, { 0x000e0131 } }, { 0x000e0132, 1, { 0x000e0132 } }, { 0x000e0133, 1, { 0x000e0133 } }, { 0x000e0134, 1, { 0x000e0134 } }, { 0x000e0135, 1, { 0x000e0135 } }, { 0x000e0136, 1, { 0x000e0136 } }, { 0x000e0137, 1, { 0x000e0137 } }, { 0x000e0138, 1, { 0x000e0138 } }, { 0x000e0139, 1, { 0x000e0139 } }, { 0x000e013a, 1, { 0x000e013a } }, { 0x000e013b, 1, { 0x000e013b } }, { 0x000e013c, 1, { 0x000e013c } }, { 0x000e013d, 1, { 0x000e013d } }, { 0x000e013e, 1, { 0x000e013e } }, { 0x000e013f, 1, { 0x000e013f } }, { 0x000e0140, 1, { 0x000e0140 } }, { 0x000e0141, 1, { 0x000e0141 } }, { 0x000e0142, 1, { 0x000e0142 } }, { 0x000e0143, 1, { 0x000e0143 } }, { 0x000e0144, 1, { 0x000e0144 } }, { 0x000e0145, 1, { 0x000e0145 } }, { 0x000e0146, 1, { 0x000e0146 } }, { 0x000e0147, 1, { 0x000e0147 } }, { 0x000e0148, 1, { 0x000e0148 } }, { 0x000e0149, 1, { 0x000e0149 } }, { 0x000e014a, 1, { 0x000e014a } }, { 0x000e014b, 1, { 0x000e014b } }, { 0x000e014c, 1, { 0x000e014c } }, { 0x000e014d, 1, { 0x000e014d } }, { 0x000e014e, 1, { 0x000e014e } }, { 0x000e014f, 1, { 0x000e014f } }, { 0x000e0150, 1, { 0x000e0150 } }, { 0x000e0151, 1, { 0x000e0151 } }, { 0x000e0152, 1, { 0x000e0152 } }, { 0x000e0153, 1, { 0x000e0153 } }, { 0x000e0154, 1, { 0x000e0154 } }, { 0x000e0155, 1, { 0x000e0155 } }, { 0x000e0156, 1, { 0x000e0156 } }, { 0x000e0157, 1, { 0x000e0157 } }, { 0x000e0158, 1, { 0x000e0158 } }, { 0x000e0159, 1, { 0x000e0159 } }, { 0x000e015a, 1, { 0x000e015a } }, { 0x000e015b, 1, { 0x000e015b } }, { 0x000e015c, 1, { 0x000e015c } }, { 0x000e015d, 1, { 0x000e015d } }, { 0x000e015e, 1, { 0x000e015e } }, { 0x000e015f, 1, { 0x000e015f } }, { 0x000e0160, 1, { 0x000e0160 } }, { 0x000e0161, 1, { 0x000e0161 } }, { 0x000e0162, 1, { 0x000e0162 } }, { 0x000e0163, 1, { 0x000e0163 } }, { 0x000e0164, 1, { 0x000e0164 } }, { 0x000e0165, 1, { 0x000e0165 } }, { 0x000e0166, 1, { 0x000e0166 } }, { 0x000e0167, 1, { 0x000e0167 } }, { 0x000e0168, 1, { 0x000e0168 } }, { 0x000e0169, 1, { 0x000e0169 } }, { 0x000e016a, 1, { 0x000e016a } }, { 0x000e016b, 1, { 0x000e016b } }, { 0x000e016c, 1, { 0x000e016c } }, { 0x000e016d, 1, { 0x000e016d } }, { 0x000e016e, 1, { 0x000e016e } }, { 0x000e016f, 1, { 0x000e016f } }, { 0x000e0170, 1, { 0x000e0170 } }, { 0x000e0171, 1, { 0x000e0171 } }, { 0x000e0172, 1, { 0x000e0172 } }, { 0x000e0173, 1, { 0x000e0173 } }, { 0x000e0174, 1, { 0x000e0174 } }, { 0x000e0175, 1, { 0x000e0175 } }, { 0x000e0176, 1, { 0x000e0176 } }, { 0x000e0177, 1, { 0x000e0177 } }, { 0x000e0178, 1, { 0x000e0178 } }, { 0x000e0179, 1, { 0x000e0179 } }, { 0x000e017a, 1, { 0x000e017a } }, { 0x000e017b, 1, { 0x000e017b } }, { 0x000e017c, 1, { 0x000e017c } }, { 0x000e017d, 1, { 0x000e017d } }, { 0x000e017e, 1, { 0x000e017e } }, { 0x000e017f, 1, { 0x000e017f } }, { 0x000e0180, 1, { 0x000e0180 } }, { 0x000e0181, 1, { 0x000e0181 } }, { 0x000e0182, 1, { 0x000e0182 } }, { 0x000e0183, 1, { 0x000e0183 } }, { 0x000e0184, 1, { 0x000e0184 } }, { 0x000e0185, 1, { 0x000e0185 } }, { 0x000e0186, 1, { 0x000e0186 } }, { 0x000e0187, 1, { 0x000e0187 } }, { 0x000e0188, 1, { 0x000e0188 } }, { 0x000e0189, 1, { 0x000e0189 } }, { 0x000e018a, 1, { 0x000e018a } }, { 0x000e018b, 1, { 0x000e018b } }, { 0x000e018c, 1, { 0x000e018c } }, { 0x000e018d, 1, { 0x000e018d } }, { 0x000e018e, 1, { 0x000e018e } }, { 0x000e018f, 1, { 0x000e018f } }, { 0x000e0190, 1, { 0x000e0190 } }, { 0x000e0191, 1, { 0x000e0191 } }, { 0x000e0192, 1, { 0x000e0192 } }, { 0x000e0193, 1, { 0x000e0193 } }, { 0x000e0194, 1, { 0x000e0194 } }, { 0x000e0195, 1, { 0x000e0195 } }, { 0x000e0196, 1, { 0x000e0196 } }, { 0x000e0197, 1, { 0x000e0197 } }, { 0x000e0198, 1, { 0x000e0198 } }, { 0x000e0199, 1, { 0x000e0199 } }, { 0x000e019a, 1, { 0x000e019a } }, { 0x000e019b, 1, { 0x000e019b } }, { 0x000e019c, 1, { 0x000e019c } }, { 0x000e019d, 1, { 0x000e019d } }, { 0x000e019e, 1, { 0x000e019e } }, { 0x000e019f, 1, { 0x000e019f } }, { 0x000e01a0, 1, { 0x000e01a0 } }, { 0x000e01a1, 1, { 0x000e01a1 } }, { 0x000e01a2, 1, { 0x000e01a2 } }, { 0x000e01a3, 1, { 0x000e01a3 } }, { 0x000e01a4, 1, { 0x000e01a4 } }, { 0x000e01a5, 1, { 0x000e01a5 } }, { 0x000e01a6, 1, { 0x000e01a6 } }, { 0x000e01a7, 1, { 0x000e01a7 } }, { 0x000e01a8, 1, { 0x000e01a8 } }, { 0x000e01a9, 1, { 0x000e01a9 } }, { 0x000e01aa, 1, { 0x000e01aa } }, { 0x000e01ab, 1, { 0x000e01ab } }, { 0x000e01ac, 1, { 0x000e01ac } }, { 0x000e01ad, 1, { 0x000e01ad } }, { 0x000e01ae, 1, { 0x000e01ae } }, { 0x000e01af, 1, { 0x000e01af } }, { 0x000e01b0, 1, { 0x000e01b0 } }, { 0x000e01b1, 1, { 0x000e01b1 } }, { 0x000e01b2, 1, { 0x000e01b2 } }, { 0x000e01b3, 1, { 0x000e01b3 } }, { 0x000e01b4, 1, { 0x000e01b4 } }, { 0x000e01b5, 1, { 0x000e01b5 } }, { 0x000e01b6, 1, { 0x000e01b6 } }, { 0x000e01b7, 1, { 0x000e01b7 } }, { 0x000e01b8, 1, { 0x000e01b8 } }, { 0x000e01b9, 1, { 0x000e01b9 } }, { 0x000e01ba, 1, { 0x000e01ba } }, { 0x000e01bb, 1, { 0x000e01bb } }, { 0x000e01bc, 1, { 0x000e01bc } }, { 0x000e01bd, 1, { 0x000e01bd } }, { 0x000e01be, 1, { 0x000e01be } }, { 0x000e01bf, 1, { 0x000e01bf } }, { 0x000e01c0, 1, { 0x000e01c0 } }, { 0x000e01c1, 1, { 0x000e01c1 } }, { 0x000e01c2, 1, { 0x000e01c2 } }, { 0x000e01c3, 1, { 0x000e01c3 } }, { 0x000e01c4, 1, { 0x000e01c4 } }, { 0x000e01c5, 1, { 0x000e01c5 } }, { 0x000e01c6, 1, { 0x000e01c6 } }, { 0x000e01c7, 1, { 0x000e01c7 } }, { 0x000e01c8, 1, { 0x000e01c8 } }, { 0x000e01c9, 1, { 0x000e01c9 } }, { 0x000e01ca, 1, { 0x000e01ca } }, { 0x000e01cb, 1, { 0x000e01cb } }, { 0x000e01cc, 1, { 0x000e01cc } }, { 0x000e01cd, 1, { 0x000e01cd } }, { 0x000e01ce, 1, { 0x000e01ce } }, { 0x000e01cf, 1, { 0x000e01cf } }, { 0x000e01d0, 1, { 0x000e01d0 } }, { 0x000e01d1, 1, { 0x000e01d1 } }, { 0x000e01d2, 1, { 0x000e01d2 } }, { 0x000e01d3, 1, { 0x000e01d3 } }, { 0x000e01d4, 1, { 0x000e01d4 } }, { 0x000e01d5, 1, { 0x000e01d5 } }, { 0x000e01d6, 1, { 0x000e01d6 } }, { 0x000e01d7, 1, { 0x000e01d7 } }, { 0x000e01d8, 1, { 0x000e01d8 } }, { 0x000e01d9, 1, { 0x000e01d9 } }, { 0x000e01da, 1, { 0x000e01da } }, { 0x000e01db, 1, { 0x000e01db } }, { 0x000e01dc, 1, { 0x000e01dc } }, { 0x000e01dd, 1, { 0x000e01dd } }, { 0x000e01de, 1, { 0x000e01de } }, { 0x000e01df, 1, { 0x000e01df } }, { 0x000e01e0, 1, { 0x000e01e0 } }, { 0x000e01e1, 1, { 0x000e01e1 } }, { 0x000e01e2, 1, { 0x000e01e2 } }, { 0x000e01e3, 1, { 0x000e01e3 } }, { 0x000e01e4, 1, { 0x000e01e4 } }, { 0x000e01e5, 1, { 0x000e01e5 } }, { 0x000e01e6, 1, { 0x000e01e6 } }, { 0x000e01e7, 1, { 0x000e01e7 } }, { 0x000e01e8, 1, { 0x000e01e8 } }, { 0x000e01e9, 1, { 0x000e01e9 } }, { 0x000e01ea, 1, { 0x000e01ea } }, { 0x000e01eb, 1, { 0x000e01eb } }, { 0x000e01ec, 1, { 0x000e01ec } }, { 0x000e01ed, 1, { 0x000e01ed } }, { 0x000e01ee, 1, { 0x000e01ee } }, { 0x000e01ef, 1, { 0x000e01ef } }, { 0x000f0000, 1, { 0x000f0000 } }, { 0x000ffffd, 1, { 0x000ffffd } }, { 0x00100000, 1, { 0x00100000 } }, { 0x0010fffd, 1, { 0x0010fffd } }, }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_TEST_UNICODE_DECOMPOSITION_MAPPINGS_H ) */ libfsapfs-20190210/tests/fsapfs_test_volume_superblock.c0000664000175000017500000011373513426640002025501 0ustar00lordyestalordyesta00000000000000/* * Library volume_superblock type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_volume_superblock.h" uint8_t fsapfs_test_volume_superblock_data1[ 4096 ] = { 0xc8, 0x62, 0x24, 0xf2, 0x03, 0x22, 0x3c, 0x04, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x50, 0x53, 0x42, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x41, 0x00, 0x47, 0x11, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x40, 0x02, 0x00, 0x00, 0x40, 0x69, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x29, 0xcd, 0x7d, 0xe1, 0xb8, 0x40, 0x6e, 0x9b, 0x3c, 0x3b, 0x36, 0xb2, 0x08, 0x6c, 0xcd, 0x36, 0xfc, 0x45, 0x06, 0x5a, 0x23, 0x52, 0x15, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6e, 0x65, 0x77, 0x66, 0x73, 0x5f, 0x61, 0x70, 0x66, 0x73, 0x20, 0x28, 0x37, 0x34, 0x38, 0x2e, 0x37, 0x37, 0x2e, 0x38, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xa2, 0xb3, 0x12, 0x55, 0x23, 0x52, 0x15, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x70, 0x66, 0x73, 0x5f, 0x6b, 0x65, 0x78, 0x74, 0x20, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x40, 0x20, 0x4a, 0x75, 0x6e, 0x20, 0x32, 0x31, 0x20, 0x32, 0x30, 0x31, 0x00, 0xec, 0x95, 0x8f, 0x07, 0x5a, 0x23, 0x52, 0x15, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x65, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_volume_superblock_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_superblock_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_volume_superblock_t *volume_superblock = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_volume_superblock_initialize( &volume_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_superblock_free( &volume_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_volume_superblock_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); volume_superblock = (libfsapfs_volume_superblock_t *) 0x12345678UL; result = libfsapfs_volume_superblock_initialize( &volume_superblock, &error ); volume_superblock = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_volume_superblock_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_volume_superblock_initialize( &volume_superblock, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( volume_superblock != NULL ) { libfsapfs_volume_superblock_free( &volume_superblock, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_volume_superblock_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_volume_superblock_initialize( &volume_superblock, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( volume_superblock != NULL ) { libfsapfs_volume_superblock_free( &volume_superblock, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume_superblock != NULL ) { libfsapfs_volume_superblock_free( &volume_superblock, NULL ); } return( 0 ); } /* Tests the libfsapfs_volume_superblock_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_superblock_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_volume_superblock_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_volume_superblock_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_superblock_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_volume_superblock_t *volume_superblock = NULL; int result = 0; /* Initialize test */ result = libfsapfs_volume_superblock_initialize( &volume_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_volume_superblock_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_volume_superblock_read_file_io_handle( volume_superblock, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_volume_superblock_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_volume_superblock_read_file_io_handle( volume_superblock, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_volume_superblock_read_file_io_handle( volume_superblock, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_volume_superblock_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_superblock_read_file_io_handle( volume_superblock, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_volume_superblock_free( &volume_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( volume_superblock != NULL ) { libfsapfs_volume_superblock_free( &volume_superblock, NULL ); } return( 0 ); } /* Tests the libfsapfs_volume_superblock_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_superblock_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_volume_superblock_t *volume_superblock = NULL; int result = 0; /* Initialize test */ result = libfsapfs_volume_superblock_initialize( &volume_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_volume_superblock_read_data( volume_superblock, fsapfs_test_volume_superblock_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_volume_superblock_read_data( NULL, fsapfs_test_volume_superblock_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_volume_superblock_read_data( volume_superblock, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_volume_superblock_read_data( volume_superblock, fsapfs_test_volume_superblock_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_volume_superblock_read_data( volume_superblock, fsapfs_test_volume_superblock_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_volume_superblock_free( &volume_superblock, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume_superblock", volume_superblock ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume_superblock != NULL ) { libfsapfs_volume_superblock_free( &volume_superblock, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_volume_superblock_initialize", fsapfs_test_volume_superblock_initialize ); FSAPFS_TEST_RUN( "libfsapfs_volume_superblock_free", fsapfs_test_volume_superblock_free ); FSAPFS_TEST_RUN( "libfsapfs_volume_superblock_read_file_io_handle", fsapfs_test_volume_superblock_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_volume_superblock_read_data", fsapfs_test_volume_superblock_read_data ); /* TODO add tests for libfsapfs_volume_superblock_get_volume_identifier */ /* TODO add tests for libfsapfs_volume_superblock_get_utf8_volume_name_size */ /* TODO add tests for libfsapfs_volume_superblock_get_utf8_volume_name */ /* TODO add tests for libfsapfs_volume_superblock_get_utf16_volume_name_size */ /* TODO add tests for libfsapfs_volume_superblock_get_utf16_volume_name */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/test_runner.sh0000664000175000017500000010300613426637450022103 0ustar00lordyestalordyesta00000000000000#!/bin/bash # Bash functions to run an executable for testing. # # Version: 20180929 # # When CHECK_WITH_ASAN is set to a non-empty value the test executable # is run with asan, otherwise it is run without. # # When CHECK_WITH_GDB is set to a non-empty value the test executable # is run with gdb, otherwise it is run without. # # When CHECK_WITH_STDERR is set to a non-empty value the test executable # is run with error output to stderr. # # When CHECK_WITH_VALGRIND is set to a non-empty value the test executable # is run with valgrind, otherwise it is run without. EXIT_SUCCESS=0; EXIT_FAILURE=1; EXIT_IGNORE=77; # Checks the availability of a binary and exits if not available. # # Arguments: # a string containing the name of the binary # assert_availability_binary() { local BINARY=$1; which ${BINARY} > /dev/null 2>&1; if test $? -ne ${EXIT_SUCCESS}; then echo "Missing binary: ${BINARY}"; echo ""; exit ${EXIT_FAILURE}; fi } # Checks the availability of binaries and exits if not available. # # Globals: # CHECK_WITH_GDB # CHECK_WITH_VALGRIND # assert_availability_binaries() { assert_availability_binary cat; assert_availability_binary cut; assert_availability_binary diff; assert_availability_binary file; assert_availability_binary gzip; assert_availability_binary ls; assert_availability_binary readlink; assert_availability_binary sed; assert_availability_binary tr; assert_availability_binary uname; assert_availability_binary wc; assert_availability_binary zcat; if test -n "${CHECK_WITH_GDB}"; then assert_availability_binary gdb; elif test -n "${CHECK_WITH_VALGRIND}"; then assert_availability_binary valgrind; fi } # Checks if the input directory is in the ignore list. # # Arguments: # a string containing the path of the test input directory # a string containing space separated ignore list # # Returns: # an integer containing the exit status to indicate the input directory # was found in the ignore list. # check_for_directory_in_ignore_list() { local INPUT_DIRECTORY=$1; local IGNORE_LIST=$2; local INPUT_BASENAME=`basename ${INPUT_DIRECTORY}`; for LIST_ELEMENT in `echo "${IGNORE_LIST}" | tr ' ' '\n'`; do if test "${LIST_ELEMENT}" = "${INPUT_BASENAME}"; then return ${EXIT_SUCCESS}; fi done return ${EXIT_FAILURE}; } # Searches for the binary variant of the executable in case the test executable # refers to a libtool shell script. # # Arguments: # a string containing the path of the test executable # # Returns: # a string containing the path of the binary variant of the test executable # find_binary_executable() { local TEST_EXECUTABLE=$1; TEST_EXECUTABLE=$( readlink_f "${TEST_EXECUTABLE}" ); # Note that the behavior of `file -bi` is not helpful on Mac OS X. local EXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`; # Check if the test executable is a libtool shell script. # Linux: POSIX shell script, ASCII text executable, with very long lines # Mac OS X: POSIX shell script text executable echo "${EXECUTABLE_TYPE}" | grep "POSIX shell script" > /dev/null 2>&1; RESULT=$?; if test ${RESULT} -eq ${EXIT_SUCCESS}; then local TEST_EXECUTABLE_BASENAME=`basename ${TEST_EXECUTABLE}`; local TEST_EXECUTABLE_DIRNAME=`dirname ${TEST_EXECUTABLE}`; TEST_EXECUTABLE="${TEST_EXECUTABLE_DIRNAME}/.libs/${TEST_EXECUTABLE_BASENAME}"; if test -x ${TEST_EXECUTABLE}; then # Note that the behavior of `file -bi` is not helpful on Mac OS X. EXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`; # Linux: ELF 64-bit LSB executable, x86-64, ... # Mac OS X: Mach-O 64-bit executable x86_64 echo "${EXECUTABLE_TYPE}" | grep "executable" > /dev/null 2>&1; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then echo "Invalid test executable: ${TEST_EXECUTABLE}"; exit ${EXIT_FAILURE}; fi fi fi echo ${TEST_EXECUTABLE}; } # Searches for the path to the binary variant of the library. # # Arguments: # a string containing the path of the test executable # # Returns: # a string containing the path of the binary variant of the library. # find_binary_library_path() { local TEST_EXECUTABLE=$1; local LIBRARY_NAME="${TEST_EXECUTABLE}"; echo ${LIBRARY_NAME} | grep 'tools' > /dev/null 2>&1; if test $? -eq ${EXIT_SUCCESS}; then LIBRARY_NAME=`dirname ${LIBRARY_NAME}`; LIBRARY_NAME=`dirname ${LIBRARY_NAME}`; LIBRARY_NAME=`basename ${LIBRARY_NAME} | sed 's/\(.*\)tools$/lib\1/'`; else LIBRARY_NAME=`basename ${LIBRARY_NAME} | sed 's/^py//' | sed 's/^\([^_]*\)_test_.*$/lib\1/'`; fi TEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`; TEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`; TEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`; local LIBRARY_PATH="${TEST_EXECUTABLE}/${LIBRARY_NAME}/.libs"; if ! test -d "${LIBRARY_PATH}"; then LIBRARY_PATH="../${LIBRARY_NAME}/.libs"; fi echo "${LIBRARY_PATH}"; } # Searches for the path to the binary variant of the Python module # # Globals: # PYTHON_VERSION # # Arguments: # a string containing the path of the test executable # # Returns: # a string containing the path of the binary variant of the Python module # find_binary_python_module_path() { local TEST_EXECUTABLE=$1; local PYTHON_MODULE_NAME=`basename ${TEST_EXECUTABLE} | sed 's/^py\(.*\)_test_.*$/py\1/'`; TEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`; TEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`; TEST_EXECUTABLE=`dirname ${TEST_EXECUTABLE}`; PYTHON_VERSION=`echo ${PYTHON_VERSION} | cut -c1`; local PYTHON_MODULE_PATH="${TEST_EXECUTABLE}/${PYTHON_MODULE_NAME}-python${PYTHON_VERSION}/.libs"; if ! test -d "${PYTHON_MODULE_PATH}"; then PYTHON_MODULE_PATH="../${PYTHON_MODULE_NAME}-python${PYTHON_VERSION}/.libs"; fi if ! test -d "${PYTHON_MODULE_PATH}"; then PYTHON_MODULE_PATH="${TEST_EXECUTABLE}/${PYTHON_MODULE_NAME}/.libs"; fi if ! test -d "${PYTHON_MODULE_PATH}"; then PYTHON_MODULE_PATH="../${PYTHON_MODULE_NAME}/.libs"; fi echo "${PYTHON_MODULE_PATH}"; } # Determines the test option file. # # Arguments: # a string containing the path of the test set directory # a string containing the path of the test input file # a string containing the name of the option set # # Returns: # a string containing the test input files # get_testion_option_file() { local TEST_SET_DIRECTORY=$1; local INPUT_FILE=$2; local OPTION_SET=$3; local INPUT_NAME=`basename "${INPUT_FILE}"`; local OPTION_FILE="${TEST_SET_DIRECTORY}/${INPUT_NAME}.${OPTION_SET}"; echo "${OPTION_FILE}"; } # Determines the test profile directory. # The directory is created if it does not exist. # # Arguments: # a string containing the path of the test input directory # a string containing the name of the test profile # # Returns: # a string containing the path of the test profile directory # get_test_profile_directory() { local TEST_INPUT_DIRECTORY=$1; local TEST_PROFILE=$2; local TEST_PROFILE_DIRECTORY="${TEST_INPUT_DIRECTORY}/.${TEST_PROFILE}"; if ! test -d "${TEST_PROFILE_DIRECTORY}"; then mkdir "${TEST_PROFILE_DIRECTORY}"; fi echo "${TEST_PROFILE_DIRECTORY}"; } # Determines the test set directory. # The directory is created if it does not exist. # # Arguments: # a string containing the path of the test profile directory # a string containing the path of the test set input directory # # Returns: # a string containing the path of the test set directory # get_test_set_directory() { local TEST_PROFILE_DIRECTORY=$1; local TEST_SET_INPUT_DIRECTORY=$2; local TEST_SET=`basename ${TEST_SET_INPUT_DIRECTORY}`; local TEST_SET_DIRECTORY="${TEST_PROFILE_DIRECTORY}/${TEST_SET}"; if ! test -d "${TEST_SET_DIRECTORY}"; then mkdir "${TEST_SET_DIRECTORY}"; fi echo "${TEST_SET_DIRECTORY}"; } # Provides a cross-platform variant of "readlink -f" # # Arguments: # a string containing a path # # Returns: # a string containing the path with all symbolic links resolved # readlink_f() { local TARGET="$1" if test -f "${TARGET}"; then while test -L "${TARGET}"; do TARGET=`readlink "${TARGET}"`; done fi local BASENAME=`basename "${TARGET}"`; local DIRNAME=`dirname "${TARGET}"`; DIRNAME=`(cd "${DIRNAME}" && pwd -P)`; echo "${DIRNAME}/${BASENAME}"; } # Reads the test profile ignore file if it exists. # # Arguments: # a string containing the path of the test profile directory # # Returns: # a string containing a space separated ignore list # read_ignore_list() { local TEST_PROFILE_DIRECTORY=$1; local IGNORE_FILE="${TEST_PROFILE_DIRECTORY}/ignore"; local IGNORE_LIST=""; if test -f "${IGNORE_FILE}"; then IGNORE_LIST=`cat ${IGNORE_FILE} | sed '/^#/d'`; fi echo ${IGNORE_LIST}; } # Reads the test set option file. # # Arguments: # a string containing the path of the test set directory # a string containing the path of the test input file # a string containing the name of the option set # # Returns: # a string containing the ignore list # read_option_file() { local TEST_SET_DIRECTORY=$1; local INPUT_FILE=$2; local OPTION_SET=$3; local OPTION_FILE=$(get_testion_option_file "${TEST_SET_DIRECTORY}" "${INPUT_FILE}" "${OPTION_SET}"); local OPTIONS=() local OPTIONS_STRING=`cat "${OPTION_FILE}" | head -n 1 | sed 's/[\r\n]*$//'`; echo "${OPTIONS_STRING}"; } # Runs the test with optional arguments. # # Globals: # CHECK_WITH_ASAN # CHECK_WITH_GDB # CHECK_WITH_STDERR # CHECK_WITH_VALGRIND # PYTHON_VERSION # # Arguments: # a string containing the test description # a string containing the path of the test executable # an array containing the arguments for the test executable # # Returns: # an integer containg the exit status of the test executable # run_test_with_arguments() { local TEST_DESCRIPTION=$1; local TEST_EXECUTABLE=$2; shift 2; local ARGUMENTS=("$@"); if ! test -f "${TEST_EXECUTABLE}"; then echo "Missing test executable: ${TEST_EXECUTABLE}"; echo ""; return ${EXIT_FAILURE}; fi local PLATFORM=`uname -s | sed 's/-.*$//'`; # Note that the behavior of `file -bi` is not helpful on Mac OS X. local EXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`; # Check if the test executable is a Python script. # Linux: Python script, ASCII text executable # Mac OS X: a python script text executable echo "${EXECUTABLE_TYPE}" | grep -i "python script" > /dev/null 2>&1; local IS_PYTHON_SCRIPT=$?; if test ${IS_PYTHON_SCRIPT} -eq 0; then local PYTHON=`which python${PYTHON_VERSION} 2> /dev/null`; if ! test -x ${PYTHON}; then echo "Missing executable: ${PYTHON}"; exit ${EXIT_FAILURE}; fi fi local RESULT=0; if test -n "${CHECK_WITH_ASAN}"; then local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); local LSAN_SUPPRESSIONS="lsan.suppressions"; if ! test -f ${LSAN_SUPPRESSIONS}; then LSAN_SUPPRESSIONS="../lsan.suppressions"; fi if test "${PLATFORM}" = "Darwin"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" DYLD_LIBRARY_PATH="${LIBRARY_PATH}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi else local CONFIG_LOG="../config.log"; if ! test -f ${CONFIG_LOG}; then CONFIG_LOG="../../config.log"; fi local CC=`cat ${CONFIG_LOG} | grep -e "^CC=" | sed "s/CC='\\(.*\\)'/\1/"`; local LIBASAN=""; if test -z ${CC} || test ${CC} != "clang"; then local LDCONFIG=`which ldconfig 2> /dev/null`; if test -z ${LDCONFIG} || ! test -x ${LDCONFIG}; then LDCONFIG="/sbin/ldconfig"; fi if test -z ${LDCONFIG} || ! test -x ${LDCONFIG}; then echo "Missing binary: ldconfig"; echo ""; exit ${EXIT_FAILURE}; fi LIBASAN=`${LDCONFIG} -p | grep libasan | sed 's/^.* => //' | sort | tail -n 1`; if ! test -f ${LIBASAN}; then echo "Missing library: ${BINARY}"; echo ""; exit ${EXIT_FAILURE}; fi fi if test ${IS_PYTHON_SCRIPT} -eq 0; then LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" LD_PRELOAD="${LIBASAN}" LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" LD_PRELOAD="${LIBASAN}" LD_LIBRARY_PATH="${LIBRARY_PATH}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi fi elif test -n "${CHECK_WITH_GDB}"; then local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); if test "${PLATFORM}" = "Darwin"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else DYLD_LIBRARY_PATH="${LIBRARY_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi elif test "${PLATFORM}" = "CYGWIN_NT"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else PATH="${LIBRARY_PATH}:${PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi else if test ${IS_PYTHON_SCRIPT} -eq 0; then LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else LD_LIBRARY_PATH="${LIBRARY_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi fi elif test -n "${CHECK_WITH_VALGRIND}"; then local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); local VALGRIND_LOG="valgrind.log-$$"; local VALGRIND_OPTIONS=("--tool=memcheck" "--leak-check=full" "--show-leak-kinds=definite,indirect,possible" "--track-origins=yes" "--log-file=${VALGRIND_LOG}"); if test "${PLATFORM}" = "Darwin"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else DYLD_LIBRARY_PATH="${LIBRARY_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi elif test "${PLATFORM}" = "CYGWIN_NT"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else PATH="${LIBRARY_PATH}:${PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi else if test ${IS_PYTHON_SCRIPT} -eq 0; then LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else LD_LIBRARY_PATH="${LIBRARY_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; fi fi if test ${RESULT} -eq ${EXIT_SUCCESS}; then grep "All heap blocks were freed -- no leaks are possible" ${VALGRIND_LOG} > /dev/null 2>&1; if test $? -ne ${EXIT_SUCCESS}; then # Ignore "still reachable" # Also see: http://valgrind.org/docs/manual/faq.html#faq.deflost grep "definitely lost: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_DIRECTLY_LOST=$?; grep "indirectly lost: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_INDIRECTLY_LOST=$?; grep "possibly lost: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_POSSIBLY_LOST=$?; grep "suppressed: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_SUPPRESSED=$?; if 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}; then echo "Memory leakage detected."; cat ${VALGRIND_LOG}; RESULT=${EXIT_FAILURE}; fi fi # Detect valgrind warnings. local NUMBER_OF_LINES=`wc -l ${VALGRIND_LOG} | awk '{ print $1 }'`; if test ${NUMBER_OF_LINES} -ne 15 && test ${NUMBER_OF_LINES} -ne 22; then echo "Unsupported number of lines: ${NUMBER_OF_LINES}"; cat ${VALGRIND_LOG}; RESULT=${EXIT_FAILURE}; fi fi rm -f ${VALGRIND_LOG}; elif test ${IS_PYTHON_SCRIPT} -eq 0; then if ! test -f "${TEST_EXECUTABLE}"; then echo "Invalid test Python script: ${TEST_EXECUTABLE}"; echo ""; return ${EXIT_FAILURE}; fi local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); if test "${PLATFORM}" = "Darwin"; then if test -n "${CHECK_WITH_STDERR}"; then DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} 2> /dev/null; RESULT=$?; fi elif test "${PLATFORM}" = "CYGWIN_NT"; then if test -n "${CHECK_WITH_STDERR}"; then PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} 2> /dev/null; RESULT=$?; fi else if test -n "${CHECK_WITH_STDERR}"; then LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]}; RESULT=$?; else LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} 2> /dev/null; RESULT=$?; fi fi else if ! test -x "${TEST_EXECUTABLE}"; then echo "Invalid test executable: ${TEST_EXECUTABLE}"; echo ""; return ${EXIT_FAILURE}; fi if test -n "${CHECK_WITH_STDERR}"; then ${TEST_EXECUTABLE} ${ARGUMENTS[@]}; RESULT=$?; else ${TEST_EXECUTABLE} ${ARGUMENTS[@]} 2> /dev/null; RESULT=$?; fi fi if test -n "${TEST_DESCRIPTION}"; then echo -n "${TEST_DESCRIPTION} "; if test ${RESULT} -ne ${EXIT_SUCCESS}; then echo " (FAIL)"; else echo " (PASS)"; fi fi return ${RESULT}; } # Runs the test with an input file and optional arguments. # # Globals: # CHECK_WITH_ASAN # CHECK_WITH_GDB # CHECK_WITH_STDERR # CHECK_WITH_VALGRIND # PYTHON_VERSION # # Arguments: # a string containing the path of the test executable # a string containing the path of the test input file # an array containing the arguments for the test executable # # Returns: # an integer containg the exit status of the test executable # run_test_with_input_and_arguments() { local TEST_EXECUTABLE=$1; local INPUT_FILE=$2; shift 2; local ARGUMENTS=("$@"); if ! test -f "${TEST_EXECUTABLE}"; then echo "Missing test executable: ${TEST_EXECUTABLE}"; echo ""; return ${EXIT_FAILURE}; fi local PLATFORM=`uname -s | sed 's/-.*$//'`; # Note that the behavior of `file -bi` is not helpful on Mac OS X. local EXECUTABLE_TYPE=`file -b ${TEST_EXECUTABLE}`; # Check if the test executable is a Python script. # Linux: Python script, ASCII text executable # Mac OS X: a python script text executable echo "${EXECUTABLE_TYPE}" | grep -i "python script" > /dev/null 2>&1; local IS_PYTHON_SCRIPT=$?; if test ${IS_PYTHON_SCRIPT} -eq 0; then local PYTHON=`which python${PYTHON_VERSION} 2> /dev/null`; if ! test -x ${PYTHON}; then echo "Missing executable: ${PYTHON}"; exit ${EXIT_FAILURE}; fi fi local RESULT=0; if test -n "${CHECK_WITH_ASAN}"; then local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); local LSAN_SUPPRESSIONS="lsan.suppressions"; if ! test -f ${LSAN_SUPPRESSIONS}; then LSAN_SUPPRESSIONS="../lsan.suppressions"; fi if test "${PLATFORM}" = "Darwin"; then # TODO DYLD_INSERT_LIBRARIES=/Library/Developer/CommandLineTools/usr/lib/clang/8.1.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib if test ${IS_PYTHON_SCRIPT} -eq 0; then LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" DYLD_LIBRARY_PATH="${LIBRARY_PATH}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi else local CONFIG_LOG="../config.log"; if ! test -f ${CONFIG_LOG}; then CONFIG_LOG="../../config.log"; fi local CC=`cat ${CONFIG_LOG} | grep -e "^CC=" | sed "s/CC='\\(.*\\)'/\1/"`; local LIBASAN=""; if test -z ${CC} || test ${CC} != "clang"; then local LDCONFIG=`which ldconfig 2> /dev/null`; if test -z ${LDCONFIG} || ! test -x ${LDCONFIG}; then LDCONFIG="/sbin/ldconfig"; fi if test -z ${LDCONFIG} || ! test -x ${LDCONFIG}; then echo "Missing binary: ldconfig"; echo ""; exit ${EXIT_FAILURE}; fi LIBASAN=`${LDCONFIG} -p | grep libasan | sed 's/^.* => //' | sort | tail -n 1`; if ! test -f ${LIBASAN}; then echo "Missing library: ${BINARY}"; echo ""; exit ${EXIT_FAILURE}; fi fi if test ${IS_PYTHON_SCRIPT} -eq 0; then LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" LD_PRELOAD="${LIBASAN}" LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else LSAN_OPTIONS=suppressions="${LSAN_SUPPRESSIONS}" LD_PRELOAD="${LIBASAN}" LD_LIBRARY_PATH="${LIBRARY_PATH}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi fi elif test -n "${CHECK_WITH_GDB}"; then local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); if test "${PLATFORM}" = "Darwin"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then DYLD_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}"; RESULT=$?; else DYLD_LIBRARY_PATH="${LIBRARY_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi elif test "${PLATFORM}" = "CYGWIN_NT"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else PATH="${LIBRARY_PATH}:${PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi else if test ${IS_PYTHON_SCRIPT} -eq 0; then LD_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}"; RESULT=$?; else LD_LIBRARY_PATH="${LIBRARY_PATH}" gdb -ex "set non-stop on" -ex "run" -ex "quit" --args "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi fi elif test -n "${CHECK_WITH_VALGRIND}"; then local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); local VALGRIND_LOG="valgrind.log-$$"; local VALGRIND_OPTIONS=("--tool=memcheck" "--leak-check=full" "--show-leak-kinds=definite,indirect,possible" "--track-origins=yes" "--log-file=${VALGRIND_LOG}"); if test "${PLATFORM}" = "Darwin"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else DYLD_LIBRARY_PATH="${LIBRARY_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi elif test "${PLATFORM}" = "CYGWIN_NT"; then if test ${IS_PYTHON_SCRIPT} -eq 0; then PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else PATH="${LIBRARY_PATH}:${PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi else if test ${IS_PYTHON_SCRIPT} -eq 0; then LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else LD_LIBRARY_PATH="${LIBRARY_PATH}" valgrind ${VALGRIND_OPTIONS[@]} "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; fi fi if test ${RESULT} -eq ${EXIT_SUCCESS}; then grep "All heap blocks were freed -- no leaks are possible" ${VALGRIND_LOG} > /dev/null 2>&1; if test $? -ne ${EXIT_SUCCESS}; then # Ignore "still reachable" # Also see: http://valgrind.org/docs/manual/faq.html#faq.deflost grep "definitely lost: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_DIRECTLY_LOST=$?; grep "indirectly lost: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_INDIRECTLY_LOST=$?; grep "possibly lost: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_POSSIBLY_LOST=$?; grep "suppressed: 0 bytes in 0 blocks" ${VALGRIND_LOG} > /dev/null 2>&1; RESULT_SUPPRESSED=$?; if 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}; then echo "Memory leakage detected."; cat ${VALGRIND_LOG}; RESULT=${EXIT_FAILURE}; fi fi # Detect valgrind warnings. local NUMBER_OF_LINES=`wc -l ${VALGRIND_LOG} | awk '{ print $1 }'`; if test ${NUMBER_OF_LINES} -ne 15 && test ${NUMBER_OF_LINES} -ne 22; then echo "Unsupported number of lines: ${NUMBER_OF_LINES}"; cat ${VALGRIND_LOG}; RESULT=${EXIT_FAILURE}; fi fi rm -f ${VALGRIND_LOG}; elif test ${IS_PYTHON_SCRIPT} -eq 0; then if ! test -f "${TEST_EXECUTABLE}"; then echo "Invalid test Python script: ${TEST_EXECUTABLE}"; echo ""; return ${EXIT_FAILURE}; fi local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); if test "${PLATFORM}" = "Darwin"; then if test -n "${CHECK_WITH_STDERR}"; then DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else DYLD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}" 2> /dev/null; RESULT=$?; fi elif test "${PLATFORM}" = "CYGWIN_NT"; then if test -n "${CHECK_WITH_STDERR}"; then PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else PATH="${LIBRARY_PATH}:${PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}" 2> /dev/null; RESULT=$?; fi else if test -n "${CHECK_WITH_STDERR}"; then LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else LD_LIBRARY_PATH="${LIBRARY_PATH}" PYTHONPATH="${PYTHON_MODULE_PATH}" "${PYTHON}" "${TEST_EXECUTABLE}" ${ARGUMENTS[@]} "${INPUT_FILE}" 2> /dev/null; RESULT=$?; fi fi else if ! test -x "${TEST_EXECUTABLE}"; then echo "Invalid test executable: ${TEST_EXECUTABLE}"; echo ""; return ${EXIT_FAILURE}; fi if test -n "${CHECK_WITH_STDERR}"; then ${TEST_EXECUTABLE} ${ARGUMENTS[@]} "${INPUT_FILE}"; RESULT=$?; else ${TEST_EXECUTABLE} ${ARGUMENTS[@]} "${INPUT_FILE}" 2> /dev/null; RESULT=$?; fi fi return ${RESULT}; } # Runs the test on the input file. # # Note that this function is not intended to be directly invoked # from outside the test runner script. # # Arguments: # a string containing the path of the test set directory # a string containing the description of the test # a string containing the test mode # a string containing the name of the option set # a string containing the path of the test executable # a string containing the path of the test input file # an array containing the arguments for the test executable # # Returns: # an integer containg the exit status of the test executable # run_test_on_input_file() { local TEST_SET_DIRECTORY=$1; local TEST_DESCRIPTION=$2; local TEST_MODE=$3; local OPTION_SET=$4; local TEST_EXECUTABLE=$5; local INPUT_FILE=$6; shift 6; local ARGUMENTS=("$@"); local INPUT_NAME=`basename "${INPUT_FILE}"`; local OPTIONS=(); local TEST_OUTPUT="${INPUT_NAME}"; if test -n "${OPTION_SET}"; then OPTIONS_STRING=$(read_option_file "${TEST_SET_DIRECTORY}" "${INPUT_FILE}" "${OPTION_SET}"); IFS=" " read -a OPTIONS <<< "${OPTIONS_STRING}"; TEST_OUTPUT="${INPUT_NAME}-${OPTION_SET}"; fi local TMPDIR="tmp$$"; local RESULT=0; rm -rf ${TMPDIR}; mkdir ${TMPDIR}; if test "${TEST_MODE}" = "with_callback"; then test_callback "${TMPDIR}" "${TEST_SET_DIRECTORY}" "${TEST_OUTPUT}" "${TEST_EXECUTABLE}" "${TEST_INPUT}" ${ARGUMENTS[@]} "${OPTIONS[@]}"; RESULT=$?; elif test "${TEST_MODE}" = "with_stdout_reference"; then TEST_EXECUTABLE=$( readlink_f "${TEST_EXECUTABLE}" ); if ! test -x ${TEST_EXECUTABLE}; then echo "Invalid test executable: ${TEST_EXECUTABLE}"; echo ""; return ${EXIT_FAILURE}; fi local INPUT_FILE_FULL_PATH=$( readlink_f "${INPUT_FILE}" ); local TEST_LOG="${TEST_OUTPUT}.log"; (cd ${TMPDIR} && run_test_with_input_and_arguments "${TEST_EXECUTABLE}" "${INPUT_FILE_FULL_PATH}" ${ARGUMENTS[@]} "${OPTIONS[@]}" | sed '1,2d' > "${TEST_LOG}"); RESULT=$?; local TEST_RESULTS="${TMPDIR}/${TEST_LOG}"; local STORED_TEST_RESULTS="${TEST_SET_DIRECTORY}/${TEST_LOG}.gz"; if test -f "${STORED_TEST_RESULTS}"; then # Using zcat here since zdiff has issues on Mac OS X. # Note that zcat on Mac OS X requires the input from stdin. zcat < "${STORED_TEST_RESULTS}" | diff "${TEST_RESULTS}" -; RESULT=$?; else gzip "${TEST_RESULTS}"; mv "${TEST_RESULTS}.gz" ${TEST_SET_DIRECTORY}; fi else run_test_with_input_and_arguments "${TEST_EXECUTABLE}" "${INPUT_FILE}" ${ARGUMENTS[@]} "${OPTIONS[@]}"; RESULT=$?; fi rm -rf ${TMPDIR}; if test -n "${TEST_DESCRIPTION}"; then OPTIONS=`echo "${OPTIONS[*]}" | tr '\n' ' ' | sed 's/[ ]\$//'`; if test -z "${OPTIONS}"; then echo -n "${TEST_DESCRIPTION} with input: ${INPUT_FILE}"; else echo -n "${TEST_DESCRIPTION} with options: '${OPTIONS}' and input: ${INPUT_FILE}"; fi if test ${RESULT} -ne ${EXIT_SUCCESS}; then echo " (FAIL)"; else echo " (PASS)"; fi fi return ${RESULT}; } # Runs the test with options on the input file. # # Note that this function is not intended to be directly invoked # from outside the test runner script. # # Arguments: # a string containing the path of the test set directory # a string containing the description of the test # a string containing the test mode # a string containing the name of the option sets # a string containing the path of the test executable # a string containing the path of the test input file # an array containing the arguments for the test executable # # Returns: # an integer containg the exit status of the test executable # run_test_on_input_file_with_options() { local TEST_SET_DIRECTORY=$1; local TEST_DESCRIPTION=$2; local TEST_MODE=$3; local OPTION_SETS=$4; local TEST_EXECUTABLE=$5; local INPUT_FILE=$6; shift 6; local ARGUMENTS=("$@"); local RESULT=${EXIT_SUCCESS}; local TESTED_WITH_OPTIONS=0; for OPTION_SET in `echo ${OPTION_SETS} | tr ' ' '\n'`; do local OPTION_FILE=$(get_testion_option_file "${TEST_SET_DIRECTORY}" "${INPUT_FILE}" "${OPTION_SET}"); if ! test -f ${OPTION_FILE}; then continue fi run_test_on_input_file "${TEST_SET_DIRECTORY}" "${TEST_DESCRIPTION}" "${TEST_MODE}" "${OPTION_SET}" "${TEST_EXECUTABLE}" "${INPUT_FILE}" ${ARGUMENTS[@]}; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi TESTED_WITH_OPTIONS=1; done if test ${RESULT} -eq ${EXIT_SUCCESS} && test ${TESTED_WITH_OPTIONS} -eq 0; then run_test_on_input_file "${TEST_SET_DIRECTORY}" "${TEST_DESCRIPTION}" "${TEST_MODE}" "" "${TEST_EXECUTABLE}" "${INPUT_FILE}" ${ARGUMENTS[@]}; RESULT=$?; fi return ${RESULT}; } libfsapfs-20190210/tests/fsapfs_test_support.c0000664000175000017500000006100113426640002023441 0ustar00lordyestalordyesta00000000000000/* * Library support functions test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_getopt.h" #include "fsapfs_test_libbfio.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #if !defined( LIBFSAPFS_HAVE_BFIO ) LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ /* Tests the libfsapfs_get_version function * Returns 1 if successful or 0 if not */ int fsapfs_test_get_version( void ) { const char *version_string = NULL; int result = 0; version_string = libfsapfs_get_version(); result = narrow_string_compare( version_string, LIBFSAPFS_VERSION_STRING, 9 ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); return( 1 ); on_error: return( 0 ); } /* Tests the libfsapfs_get_access_flags_read function * Returns 1 if successful or 0 if not */ int fsapfs_test_get_access_flags_read( void ) { int access_flags = 0; access_flags = libfsapfs_get_access_flags_read(); FSAPFS_TEST_ASSERT_EQUAL_INT( "access_flags", access_flags, LIBFSAPFS_ACCESS_FLAG_READ ); return( 1 ); on_error: return( 0 ); } /* Tests the libfsapfs_get_codepage function * Returns 1 if successful or 0 if not */ int fsapfs_test_get_codepage( void ) { libcerror_error_t *error = NULL; int codepage = 0; int result = 0; result = libfsapfs_get_codepage( &codepage, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_get_codepage( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_set_codepage function * Returns 1 if successful or 0 if not */ int fsapfs_test_set_codepage( void ) { libcerror_error_t *error = NULL; int result = 0; result = libfsapfs_set_codepage( 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_set_codepage( -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_check_container_signature function * Returns 1 if successful or 0 if not */ int fsapfs_test_check_container_signature( const system_character_t *source ) { char narrow_source[ 256 ]; libcerror_error_t *error = NULL; int result = 0; if( source != NULL ) { /* Initialize test */ result = fsapfs_test_get_narrow_source( source, narrow_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check container signature */ result = libfsapfs_check_container_signature( narrow_source, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test error cases */ result = libfsapfs_check_container_signature( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_check_container_signature( "", &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); if( source != NULL ) { #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_check_container_signature with malloc failing in libbfio_file_initialize */ fsapfs_test_malloc_attempts_before_fail = 0; result = libfsapfs_check_container_signature( narrow_source, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ } return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_check_volume_signature function * Returns 1 if successful or 0 if not */ int fsapfs_test_check_volume_signature( const system_character_t *source ) { char narrow_source[ 256 ]; libcerror_error_t *error = NULL; int result = 0; if( source != NULL ) { /* Initialize test */ result = fsapfs_test_get_narrow_source( source, narrow_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check volume signature */ result = libfsapfs_check_volume_signature( narrow_source, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test error cases */ result = libfsapfs_check_volume_signature( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_check_volume_signature( "", &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); if( source != NULL ) { #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_check_volume_signature with malloc failing in libbfio_file_initialize */ fsapfs_test_malloc_attempts_before_fail = 0; result = libfsapfs_check_volume_signature( narrow_source, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ } return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Tests the libfsapfs_check_container_signature_wide function * Returns 1 if successful or 0 if not */ int fsapfs_test_check_container_signature_wide( const system_character_t *source ) { wchar_t wide_source[ 256 ]; libcerror_error_t *error = NULL; int result = 0; if( source != NULL ) { /* Initialize test */ result = fsapfs_test_get_wide_source( source, wide_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check container signature */ result = libfsapfs_check_container_signature_wide( wide_source, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test error cases */ result = libfsapfs_check_container_signature_wide( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_check_container_signature_wide( L"", &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); if( source != NULL ) { #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_check_container_signature_wide with malloc failing in libbfio_file_initialize */ fsapfs_test_malloc_attempts_before_fail = 0; result = libfsapfs_check_container_signature_wide( wide_source, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ } return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_check_volume_signature_wide function * Returns 1 if successful or 0 if not */ int fsapfs_test_check_volume_signature_wide( const system_character_t *source ) { wchar_t wide_source[ 256 ]; libcerror_error_t *error = NULL; int result = 0; if( source != NULL ) { /* Initialize test */ result = fsapfs_test_get_wide_source( source, wide_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check volume signature */ result = libfsapfs_check_volume_signature_wide( wide_source, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test error cases */ result = libfsapfs_check_volume_signature_wide( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_check_volume_signature_wide( L"", &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); if( source != NULL ) { #if defined( HAVE_FSAPFS_TEST_MEMORY ) /* Test libfsapfs_check_volume_signature_wide with malloc failing in libbfio_file_initialize */ fsapfs_test_malloc_attempts_before_fail = 0; result = libfsapfs_check_volume_signature_wide( wide_source, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ } return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Tests the libfsapfs_check_container_signature_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_check_container_signature_file_io_handle( const system_character_t *source ) { uint8_t empty_block[ 8192 ]; libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; void *memset_result = NULL; size_t source_length = 0; int result = 0; /* Initialize test */ memset_result = memory_set( empty_block, 0, sizeof( uint8_t ) * 8192 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "memset_result", memset_result ); if( source != NULL ) { /* Initialize test */ result = libbfio_file_initialize( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); source_length = system_string_length( source ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libbfio_file_set_name_wide( file_io_handle, source, source_length, &error ); #else result = libbfio_file_set_name( file_io_handle, source, source_length, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_handle_open( file_io_handle, LIBBFIO_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check container signature */ result = libfsapfs_check_container_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test error cases */ result = libfsapfs_check_container_signature_file_io_handle( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ if( source != NULL ) { result = libbfio_handle_close( file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_handle_free( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test check container signature with data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, empty_block, sizeof( uint8_t ) * 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_check_container_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check container signature with empty block */ result = fsapfs_test_open_file_io_handle( &file_io_handle, empty_block, sizeof( uint8_t ) * 8192, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_check_container_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( 0 ); } /* Tests the libfsapfs_check_volume_signature_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_check_volume_signature_file_io_handle( const system_character_t *source ) { uint8_t empty_block[ 8192 ]; libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; void *memset_result = NULL; size_t source_length = 0; int result = 0; /* Initialize test */ memset_result = memory_set( empty_block, 0, sizeof( uint8_t ) * 8192 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "memset_result", memset_result ); if( source != NULL ) { /* Initialize test */ result = libbfio_file_initialize( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); source_length = system_string_length( source ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libbfio_file_set_name_wide( file_io_handle, source, source_length, &error ); #else result = libbfio_file_set_name( file_io_handle, source, source_length, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_handle_open( file_io_handle, LIBBFIO_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check volume signature */ result = libfsapfs_check_volume_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test error cases */ result = libfsapfs_check_volume_signature_file_io_handle( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ if( source != NULL ) { result = libbfio_handle_close( file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_handle_free( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } /* Test check volume signature with data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, empty_block, sizeof( uint8_t ) * 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_check_volume_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test check volume signature with empty block */ result = fsapfs_test_open_file_io_handle( &file_io_handle, empty_block, sizeof( uint8_t ) * 8192, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_check_volume_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( 0 ); } /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc, wchar_t * const argv[] ) #else int main( int argc, char * const argv[] ) #endif { libcerror_error_t *error = NULL; system_character_t *option_offset = NULL; system_character_t *source = NULL; system_integer_t option = 0; size_t string_length = 0; off64_t volume_offset = 0; int result = 0; while( ( option = fsapfs_test_getopt( argc, argv, _SYSTEM_STRING( "o:p:" ) ) ) != (system_integer_t) -1 ) { switch( option ) { case (system_integer_t) '?': default: fprintf( stderr, "Invalid argument: %" PRIs_SYSTEM ".\n", argv[ optind - 1 ] ); return( EXIT_FAILURE ); case (system_integer_t) 'o': option_offset = optarg; break; case (system_integer_t) 'p': break; } } if( optind < argc ) { source = argv[ optind ]; } if( option_offset != NULL ) { string_length = system_string_length( option_offset ); result = fsapfs_test_system_string_copy_from_64_bit_in_decimal( option_offset, string_length + 1, (uint64_t *) &volume_offset, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } FSAPFS_TEST_RUN( "libfsapfs_get_version", fsapfs_test_get_version ); FSAPFS_TEST_RUN( "libfsapfs_get_access_flags_read", fsapfs_test_get_access_flags_read ); FSAPFS_TEST_RUN( "libfsapfs_get_codepage", fsapfs_test_get_codepage ); FSAPFS_TEST_RUN( "libfsapfs_set_codepage", fsapfs_test_set_codepage ); #if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) if( ( source != NULL ) && ( volume_offset == 0 ) ) { FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_check_container_signature", fsapfs_test_check_container_signature, source ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_check_volume_signature", fsapfs_test_check_volume_signature, source ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_check_container_signature_wide", fsapfs_test_check_container_signature_wide, source ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_check_volume_signature_wide", fsapfs_test_check_volume_signature_wide, source ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_check_container_signature_file_io_handle", fsapfs_test_check_container_signature_file_io_handle, source ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_check_volume_signature_file_io_handle", fsapfs_test_check_volume_signature_file_io_handle, source ); } #endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */ return( EXIT_SUCCESS ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_key_bag_entry.c0000664000175000017500000002207213426637447024577 0ustar00lordyestalordyesta00000000000000/* * Library key_bag_entry type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_key_bag_entry.h" uint8_t fsapfs_test_key_bag_entry_data1[ 40 ] = { 0xdb, 0x27, 0xda, 0xa6, 0x2f, 0xce, 0x42, 0xf7, 0xb8, 0xdc, 0xff, 0x65, 0x42, 0xb2, 0x11, 0x86, 0x03, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_key_bag_entry_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_bag_entry_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_key_bag_entry_t *key_bag_entry = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_key_bag_entry_initialize( &key_bag_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "key_bag_entry", key_bag_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_key_bag_entry_free( &key_bag_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_entry", key_bag_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_key_bag_entry_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); key_bag_entry = (libfsapfs_key_bag_entry_t *) 0x12345678UL; result = libfsapfs_key_bag_entry_initialize( &key_bag_entry, &error ); key_bag_entry = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_key_bag_entry_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_key_bag_entry_initialize( &key_bag_entry, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( key_bag_entry != NULL ) { libfsapfs_key_bag_entry_free( &key_bag_entry, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_entry", key_bag_entry ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_key_bag_entry_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_key_bag_entry_initialize( &key_bag_entry, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( key_bag_entry != NULL ) { libfsapfs_key_bag_entry_free( &key_bag_entry, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_entry", key_bag_entry ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( key_bag_entry != NULL ) { libfsapfs_key_bag_entry_free( &key_bag_entry, NULL ); } return( 0 ); } /* Tests the libfsapfs_key_bag_entry_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_bag_entry_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_key_bag_entry_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_key_bag_entry_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_key_bag_entry_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_key_bag_entry_t *key_bag_entry = NULL; int result = 0; /* Initialize test */ result = libfsapfs_key_bag_entry_initialize( &key_bag_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "key_bag_entry", key_bag_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_key_bag_entry_read_data( key_bag_entry, fsapfs_test_key_bag_entry_data1, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_key_bag_entry_read_data( NULL, fsapfs_test_key_bag_entry_data1, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_key_bag_entry_read_data( key_bag_entry, NULL, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_key_bag_entry_read_data( key_bag_entry, fsapfs_test_key_bag_entry_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_key_bag_entry_read_data( key_bag_entry, fsapfs_test_key_bag_entry_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_key_bag_entry_free( &key_bag_entry, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "key_bag_entry", key_bag_entry ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( key_bag_entry != NULL ) { libfsapfs_key_bag_entry_free( &key_bag_entry, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_key_bag_entry_initialize", fsapfs_test_key_bag_entry_initialize ); FSAPFS_TEST_RUN( "libfsapfs_key_bag_entry_free", fsapfs_test_key_bag_entry_free ); FSAPFS_TEST_RUN( "libfsapfs_key_bag_entry_read_data", fsapfs_test_key_bag_entry_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_functions.h0000664000175000017500000000373113426637447023773 0ustar00lordyestalordyesta00000000000000/* * Functions for testing * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_FUNCTIONS_H ) #define _FSAPFS_TEST_FUNCTIONS_H #include #include #include "fsapfs_test_libbfio.h" #include "fsapfs_test_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int fsapfs_test_get_narrow_source( const system_character_t *source, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) int fsapfs_test_get_wide_source( const system_character_t *source, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ int fsapfs_test_system_string_copy_from_64_bit_in_decimal( const system_character_t *string, size_t string_size, uint64_t *value_64bit, libcerror_error_t **error ); int fsapfs_test_open_file_io_handle( libbfio_handle_t **file_io_handle, uint8_t *data, size_t data_size, libcerror_error_t **error ); int fsapfs_test_close_file_io_handle( libbfio_handle_t **file_io_handle, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_TEST_FUNCTIONS_H ) */ libfsapfs-20190210/tests/fsapfs_test_types.h0000664000175000017500000000326413426637450023122 0ustar00lordyestalordyesta00000000000000/* * The type definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_TYPES_H ) #define _FSAPFS_TEST_TYPES_H #include #include #include "fsapfs_test_libuna.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_test_unicode_case_folding_mapping fsapfs_test_unicode_case_folding_mapping_t; struct fsapfs_test_unicode_case_folding_mapping { /* The Unicode character */ libuna_unicode_character_t unicode_character; /* The character */ uint32_t character; }; typedef struct fsapfs_test_unicode_decomposition_mapping fsapfs_test_unicode_decomposition_mapping_t; struct fsapfs_test_unicode_decomposition_mapping { /* The Unicode character */ libuna_unicode_character_t unicode_character; /* The number of characters */ uint8_t number_of_characters; /* The characters */ uint32_t characters[ 4 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_TEST_TYPES_H ) */ libfsapfs-20190210/tests/fsapfs_test_volume.c0000664000175000017500000005654213426640002023252 0ustar00lordyestalordyesta00000000000000/* * Library volume type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_getopt.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libclocale.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_libuna.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "../libfsapfs/libfsapfs_volume.h" #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) && SIZEOF_WCHAR_T != 2 && SIZEOF_WCHAR_T != 4 #error Unsupported size of wchar_t #endif /* Define to make fsapfs_test_volume generate verbose output #define FSAPFS_TEST_VOLUME_VERBOSE */ #if !defined( LIBFSAPFS_HAVE_BFIO ) LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_file_io_handle( libfsapfs_volume_t *volume, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Creates and opens a source volume * Returns 1 if successful or -1 on error */ int fsapfs_test_volume_open_source( libfsapfs_volume_t **volume, libbfio_handle_t *file_io_handle, const system_character_t *password, libcerror_error_t **error ) { static char *function = "fsapfs_test_volume_open_source"; size_t string_length = 0; int result = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libfsapfs_volume_initialize( volume, NULL, NULL, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize volume.", function ); goto on_error; } if( password != NULL ) { string_length = system_string_length( password ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_volume_set_utf16_password( *volume, (uint16_t *) password, string_length, error ); #else result = libfsapfs_volume_set_utf8_password( *volume, (uint8_t *) password, string_length, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set password.", function ); goto on_error; } } result = libfsapfs_volume_open_file_io_handle( *volume, file_io_handle, LIBFSAPFS_OPEN_READ, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open volume.", function ); goto on_error; } return( 1 ); on_error: if( *volume != NULL ) { libfsapfs_volume_free( volume, NULL ); } return( -1 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* Closes and frees a source volume * Returns 1 if successful or -1 on error */ int fsapfs_test_volume_close_source( libfsapfs_volume_t **volume, libcerror_error_t **error ) { static char *function = "fsapfs_test_volume_close_source"; int result = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( libfsapfs_volume_close( *volume, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close volume.", function ); result = -1; } if( libfsapfs_volume_free( volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free volume.", function ); result = -1; } return( result ); } #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_volume_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_volume_t *volume = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ #ifdef TODO /* TODO create file_io_handle of container */ result = libfsapfs_volume_initialize( &volume, NULL, NULL, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_free( &volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); #endif /* TODO */ /* Test error cases */ result = libfsapfs_volume_initialize( NULL, NULL, NULL, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); volume = (libfsapfs_volume_t *) 0x12345678UL; result = libfsapfs_volume_initialize( &volume, NULL, NULL, NULL, &error ); volume = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #ifdef TODO /* TODO create file_io_handle of container */ #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_volume_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_volume_initialize( &volume, NULL, NULL, NULL, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_volume_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_volume_initialize( &volume, NULL, NULL, NULL, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ #endif /* TODO */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* Tests the libfsapfs_volume_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_volume_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_volume_open function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_open( const system_character_t *source ) { char narrow_source[ 256 ]; libcerror_error_t *error = NULL; libfsapfs_volume_t *volume = NULL; int result = 0; /* Initialize test */ result = fsapfs_test_get_narrow_source( source, narrow_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_initialize( &volume, NULL, NULL, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open */ result = libfsapfs_volume_open( volume, narrow_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_volume_open( volume, narrow_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_volume_free( &volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( 0 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Tests the libfsapfs_volume_open_wide function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_open_wide( const system_character_t *source ) { wchar_t wide_source[ 256 ]; libcerror_error_t *error = NULL; libfsapfs_volume_t *volume = NULL; int result = 0; /* Initialize test */ result = fsapfs_test_get_wide_source( source, wide_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_initialize( &volume, NULL, NULL, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open */ result = libfsapfs_volume_open_wide( volume, wide_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_volume_open_wide( volume, wide_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_volume_free( &volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( 0 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Tests the libfsapfs_volume_close function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_close( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_volume_close( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_volume_open and libfsapfs_volume_close functions * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_open_close( const system_character_t *source ) { libcerror_error_t *error = NULL; libfsapfs_volume_t *volume = NULL; int result = 0; /* Initialize test */ result = libfsapfs_volume_initialize( &volume, NULL, NULL, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open and close */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_volume_open_wide( volume, source, LIBFSAPFS_OPEN_READ, &error ); #else result = libfsapfs_volume_open( volume, source, LIBFSAPFS_OPEN_READ, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_close( volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open and close a second time to validate clean up on close */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_volume_open_wide( volume, source, LIBFSAPFS_OPEN_READ, &error ); #else result = libfsapfs_volume_open( volume, source, LIBFSAPFS_OPEN_READ, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_volume_close( volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Clean up */ result = libfsapfs_volume_free( &volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( 0 ); } /* Tests the libfsapfs_volume_signal_abort function * Returns 1 if successful or 0 if not */ int fsapfs_test_volume_signal_abort( libfsapfs_volume_t *volume ) { libcerror_error_t *error = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_volume_signal_abort( volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_volume_signal_abort( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc, wchar_t * const argv[] ) #else int main( int argc, char * const argv[] ) #endif { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_volume_t *volume = NULL; system_character_t *option_offset = NULL; system_character_t *option_password = NULL; system_character_t *source = NULL; system_integer_t option = 0; size_t string_length = 0; off64_t volume_offset = 0; int result = 0; while( ( option = fsapfs_test_getopt( argc, argv, _SYSTEM_STRING( "o:p:" ) ) ) != (system_integer_t) -1 ) { switch( option ) { case (system_integer_t) '?': default: fprintf( stderr, "Invalid argument: %" PRIs_SYSTEM ".\n", argv[ optind - 1 ] ); return( EXIT_FAILURE ); case (system_integer_t) 'o': option_offset = optarg; break; case (system_integer_t) 'p': option_password = optarg; break; } } if( optind < argc ) { source = argv[ optind ]; } if( option_offset != NULL ) { string_length = system_string_length( option_offset ); result = fsapfs_test_system_string_copy_from_64_bit_in_decimal( option_offset, string_length + 1, (uint64_t *) &volume_offset, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } #if defined( HAVE_DEBUG_OUTPUT ) && defined( FSAPFS_TEST_VOLUME_VERBOSE ) libfsapfs_notify_set_verbose( 1 ); libfsapfs_notify_set_stream( stderr, NULL ); #endif #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_volume_initialize", fsapfs_test_volume_initialize ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ FSAPFS_TEST_RUN( "libfsapfs_volume_free", fsapfs_test_volume_free ); #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) #if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) if( source != NULL ) { result = libbfio_file_range_initialize( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); string_length = system_string_length( source ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libbfio_file_range_set_name_wide( file_io_handle, source, string_length, &error ); #else result = libbfio_file_range_set_name( file_io_handle, source, string_length, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_file_range_set( file_io_handle, volume_offset, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_check_volume_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } if( ( result != 0 ) && ( volume_offset == 0 ) ) { FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_volume_open", fsapfs_test_volume_open, source ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_volume_open_wide", fsapfs_test_volume_open_wide, source ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( LIBFSAPFS_HAVE_BFIO ) /* TODO add test for libfsapfs_volume_open_file_io_handle */ #endif /* defined( LIBFSAPFS_HAVE_BFIO ) */ FSAPFS_TEST_RUN( "libfsapfs_volume_close", fsapfs_test_volume_close ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_volume_open_close", fsapfs_test_volume_open_close, source ); } if( result != 0 ) { /* Initialize test */ result = fsapfs_test_volume_open_source( &volume, file_io_handle, option_password, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_volume_signal_abort", fsapfs_test_volume_signal_abort, volume ); #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* TODO: add tests for libfsapfs_internal_volume_open_read */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* TODO add tests for libfsapfs_volume_get_identifier */ /* TODO add tests for libfsapfs_volume_get_utf8_name_size */ /* TODO add tests for libfsapfs_volume_get_utf8_name */ /* TODO add tests for libfsapfs_volume_get_utf16_name_size */ /* TODO add tests for libfsapfs_volume_get_utf16_name */ /* Clean up */ result = fsapfs_test_volume_close_source( &volume, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "volume", volume ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_handle_free( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } #endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( volume != NULL ) { fsapfs_test_volume_close_source( &volume, NULL ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_btree_footer.c0000664000175000017500000002173713426637447024443 0ustar00lordyestalordyesta00000000000000/* * Library btree_footer type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_btree_footer.h" uint8_t fsapfs_test_btree_footer_data1[ 40 ] = { 0x12, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_btree_footer_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_footer_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_footer_t *btree_footer = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_btree_footer_initialize( &btree_footer, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_footer", btree_footer ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_btree_footer_free( &btree_footer, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_footer", btree_footer ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_footer_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); btree_footer = (libfsapfs_btree_footer_t *) 0x12345678UL; result = libfsapfs_btree_footer_initialize( &btree_footer, &error ); btree_footer = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_btree_footer_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_btree_footer_initialize( &btree_footer, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( btree_footer != NULL ) { libfsapfs_btree_footer_free( &btree_footer, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_footer", btree_footer ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_btree_footer_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_btree_footer_initialize( &btree_footer, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( btree_footer != NULL ) { libfsapfs_btree_footer_free( &btree_footer, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_footer", btree_footer ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_footer != NULL ) { libfsapfs_btree_footer_free( &btree_footer, NULL ); } return( 0 ); } /* Tests the libfsapfs_btree_footer_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_footer_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_btree_footer_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_btree_footer_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_footer_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_footer_t *btree_footer = NULL; int result = 0; /* Initialize test */ result = libfsapfs_btree_footer_initialize( &btree_footer, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_footer", btree_footer ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_btree_footer_read_data( btree_footer, fsapfs_test_btree_footer_data1, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_footer_read_data( NULL, fsapfs_test_btree_footer_data1, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_footer_read_data( btree_footer, NULL, 40, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_footer_read_data( btree_footer, fsapfs_test_btree_footer_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_footer_read_data( btree_footer, fsapfs_test_btree_footer_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_btree_footer_free( &btree_footer, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_footer", btree_footer ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_footer != NULL ) { libfsapfs_btree_footer_free( &btree_footer, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_btree_footer_initialize", fsapfs_test_btree_footer_initialize ); FSAPFS_TEST_RUN( "libfsapfs_btree_footer_free", fsapfs_test_btree_footer_free ); FSAPFS_TEST_RUN( "libfsapfs_btree_footer_read_data", fsapfs_test_btree_footer_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_getopt.h0000664000175000017500000000343413426637447023265 0ustar00lordyestalordyesta00000000000000/* * GetOpt functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_GETOPT_H ) #define _FSAPFS_TEST_GETOPT_H #include #include /* unistd.h is included here to export getopt, optarg, optind and optopt */ #if defined( HAVE_UNISTD_H ) #include #endif #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_GETOPT ) #define fsapfs_test_getopt( argument_count, argument_values, options_string ) \ getopt( argument_count, argument_values, options_string ) #else #if !defined( __CYGWIN__ ) extern int optind; extern system_character_t *optarg; extern system_integer_t optopt; #else int optind; system_character_t *optarg; system_integer_t optopt; #endif /* !defined( __CYGWIN__ ) */ system_integer_t fsapfs_test_getopt( int argument_count, system_character_t * const argument_values[], const system_character_t *options_string ); #endif /* defined( HAVE_GETOPT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_TEST_GETOPT_H ) */ libfsapfs-20190210/tests/fsapfs_test_compressed_data_handle.c0000664000175000017500000002447213426640002026410 0ustar00lordyestalordyesta00000000000000/* * Library compressed_data_handle type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfdata.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_compressed_data_handle.h" #include "../libfsapfs/libfsapfs_data_stream.h" #include "../libfsapfs/libfsapfs_definitions.h" uint8_t fsapfs_test_compressed_data_handle_deflate_compressed_data1[ 40 ] = { 0x66, 0x70, 0x6d, 0x63, 0x03, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x9c, 0x63, 0x60, 0x64, 0x62, 0x66, 0x61, 0x65, 0x63, 0xe7, 0xe0, 0xe4, 0xe2, 0xe6, 0xe1, 0xe5, 0xe3, 0x07, 0x00, 0x02, 0xb8, 0x00, 0x79 }; uint8_t fsapfs_test_compressed_data_handle_deflate_uncompressed_data1[ 33 ] = { 0x66, 0x70, 0x6d, 0x63, 0x03, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; uint8_t fsapfs_test_compressed_data_handle_lzvn_compressed_data1[ 35 ] = { 0x66, 0x70, 0x6d, 0x63, 0x07, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x06 }; uint8_t fsapfs_test_compressed_data_handle_lzvn_uncompressed_data1[ 33 ] = { 0x66, 0x70, 0x6d, 0x63, 0x07, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; uint8_t fsapfs_test_compressed_data_handle_uncompressed_data1[ 16 ] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_compressed_data_handle_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_compressed_data_handle_initialize( void ) { libcerror_error_t *error = NULL; libfdata_stream_t *compressed_data_stream = NULL; libfsapfs_compressed_data_handle_t *compressed_data_handle = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Initialize test */ result = libfsapfs_data_stream_initialize_from_data( &compressed_data_stream, fsapfs_test_compressed_data_handle_lzvn_compressed_data1, 35, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "compressed_data_stream", compressed_data_stream ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_compressed_data_handle_initialize( &compressed_data_handle, compressed_data_stream, 16, LIBFSAPFS_COMPRESSION_METHOD_LZVN, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "compressed_data_handle", compressed_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_compressed_data_handle_free( &compressed_data_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "compressed_data_handle", compressed_data_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_compressed_data_handle_initialize( NULL, compressed_data_stream, 16, LIBFSAPFS_COMPRESSION_METHOD_LZVN, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); compressed_data_handle = (libfsapfs_compressed_data_handle_t *) 0x12345678UL; result = libfsapfs_compressed_data_handle_initialize( &compressed_data_handle, compressed_data_stream, 16, LIBFSAPFS_COMPRESSION_METHOD_LZVN, &error ); compressed_data_handle = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_compressed_data_handle_initialize( &compressed_data_handle, NULL, 16, LIBFSAPFS_COMPRESSION_METHOD_LZVN, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_compressed_data_handle_initialize( &compressed_data_handle, compressed_data_stream, 16, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_compressed_data_handle_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_compressed_data_handle_initialize( &compressed_data_handle, compressed_data_stream, 16, LIBFSAPFS_COMPRESSION_METHOD_LZVN, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( compressed_data_handle != NULL ) { libfsapfs_compressed_data_handle_free( &compressed_data_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "compressed_data_handle", compressed_data_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_compressed_data_handle_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_compressed_data_handle_initialize( &compressed_data_handle, compressed_data_stream, 16, LIBFSAPFS_COMPRESSION_METHOD_LZVN, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( compressed_data_handle != NULL ) { libfsapfs_compressed_data_handle_free( &compressed_data_handle, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "compressed_data_handle", compressed_data_handle ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ /* Clean up */ result = libfdata_stream_free( &compressed_data_stream, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "compressed_data_stream", compressed_data_stream ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( compressed_data_handle != NULL ) { libfsapfs_compressed_data_handle_free( &compressed_data_handle, NULL ); } if( compressed_data_stream != NULL ) { libfdata_stream_free( &compressed_data_stream, NULL ); } return( 0 ); } /* Tests the libfsapfs_compressed_data_handle_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_compressed_data_handle_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_compressed_data_handle_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_compressed_data_handle_initialize", fsapfs_test_compressed_data_handle_initialize ); FSAPFS_TEST_RUN( "libfsapfs_compressed_data_handle_free", fsapfs_test_compressed_data_handle_free ); /* TODO add tests for libfsapfs_compressed_data_handle_get_compressed_block_offsets */ /* TODO add tests for libfsapfs_compressed_data_handle_read_segment_data */ /* TODO add tests for libfsapfs_compressed_data_handle_seek_segment_offset */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/Makefile.in0000664000175000017500000027336613430101254021244 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = fsapfs_test_btree_entry$(EXEEXT) \ fsapfs_test_btree_footer$(EXEEXT) \ fsapfs_test_btree_node$(EXEEXT) \ fsapfs_test_btree_node_header$(EXEEXT) \ fsapfs_test_buffer_data_handle$(EXEEXT) \ fsapfs_test_checkpoint_map$(EXEEXT) \ fsapfs_test_checkpoint_map_entry$(EXEEXT) \ fsapfs_test_checksum$(EXEEXT) \ fsapfs_test_chunk_information_block$(EXEEXT) \ fsapfs_test_compressed_data_handle$(EXEEXT) \ fsapfs_test_compression$(EXEEXT) \ fsapfs_test_container$(EXEEXT) \ fsapfs_test_container_data_handle$(EXEEXT) \ fsapfs_test_container_key_bag$(EXEEXT) \ fsapfs_test_container_reaper$(EXEEXT) \ fsapfs_test_container_superblock$(EXEEXT) \ fsapfs_test_data_block$(EXEEXT) \ fsapfs_test_directory_record$(EXEEXT) \ fsapfs_test_encryption_context$(EXEEXT) \ fsapfs_test_error$(EXEEXT) fsapfs_test_file_extent$(EXEEXT) \ fsapfs_test_file_system_btree$(EXEEXT) \ fsapfs_test_inode$(EXEEXT) fsapfs_test_io_handle$(EXEEXT) \ fsapfs_test_key_bag_entry$(EXEEXT) \ fsapfs_test_key_bag_header$(EXEEXT) \ fsapfs_test_key_encrypted_key$(EXEEXT) \ fsapfs_test_name$(EXEEXT) fsapfs_test_name_hash$(EXEEXT) \ fsapfs_test_notify$(EXEEXT) fsapfs_test_object$(EXEEXT) \ fsapfs_test_object_map$(EXEEXT) \ fsapfs_test_object_map_btree$(EXEEXT) \ fsapfs_test_object_map_descriptor$(EXEEXT) \ fsapfs_test_space_manager$(EXEEXT) \ fsapfs_test_support$(EXEEXT) fsapfs_test_volume$(EXEEXT) \ fsapfs_test_volume_key_bag$(EXEEXT) \ fsapfs_test_volume_superblock$(EXEEXT) subdir = tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am_fsapfs_test_btree_entry_OBJECTS = \ fsapfs_test_btree_entry.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_btree_entry_OBJECTS = \ $(am_fsapfs_test_btree_entry_OBJECTS) fsapfs_test_btree_entry_DEPENDENCIES = ../libfsapfs/libfsapfs.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = am_fsapfs_test_btree_footer_OBJECTS = \ fsapfs_test_btree_footer.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_btree_footer_OBJECTS = \ $(am_fsapfs_test_btree_footer_OBJECTS) fsapfs_test_btree_footer_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_btree_node_OBJECTS = fsapfs_test_btree_node.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_btree_node_OBJECTS = $(am_fsapfs_test_btree_node_OBJECTS) fsapfs_test_btree_node_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_btree_node_header_OBJECTS = \ fsapfs_test_btree_node_header.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_btree_node_header_OBJECTS = \ $(am_fsapfs_test_btree_node_header_OBJECTS) fsapfs_test_btree_node_header_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_buffer_data_handle_OBJECTS = \ fsapfs_test_buffer_data_handle.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_buffer_data_handle_OBJECTS = \ $(am_fsapfs_test_buffer_data_handle_OBJECTS) fsapfs_test_buffer_data_handle_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_checkpoint_map_OBJECTS = \ fsapfs_test_checkpoint_map.$(OBJEXT) \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_checkpoint_map_OBJECTS = \ $(am_fsapfs_test_checkpoint_map_OBJECTS) fsapfs_test_checkpoint_map_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_checkpoint_map_entry_OBJECTS = \ fsapfs_test_checkpoint_map_entry.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_checkpoint_map_entry_OBJECTS = \ $(am_fsapfs_test_checkpoint_map_entry_OBJECTS) fsapfs_test_checkpoint_map_entry_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_checksum_OBJECTS = fsapfs_test_checksum.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_checksum_OBJECTS = $(am_fsapfs_test_checksum_OBJECTS) fsapfs_test_checksum_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_chunk_information_block_OBJECTS = \ fsapfs_test_chunk_information_block.$(OBJEXT) \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_chunk_information_block_OBJECTS = \ $(am_fsapfs_test_chunk_information_block_OBJECTS) fsapfs_test_chunk_information_block_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_compressed_data_handle_OBJECTS = \ fsapfs_test_compressed_data_handle.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_compressed_data_handle_OBJECTS = \ $(am_fsapfs_test_compressed_data_handle_OBJECTS) fsapfs_test_compressed_data_handle_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_compression_OBJECTS = \ fsapfs_test_compression.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_compression_OBJECTS = \ $(am_fsapfs_test_compression_OBJECTS) fsapfs_test_compression_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_container_OBJECTS = fsapfs_test_container.$(OBJEXT) \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_getopt.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_rwlock.$(OBJEXT) fsapfs_test_container_OBJECTS = $(am_fsapfs_test_container_OBJECTS) fsapfs_test_container_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_container_data_handle_OBJECTS = \ fsapfs_test_container_data_handle.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_container_data_handle_OBJECTS = \ $(am_fsapfs_test_container_data_handle_OBJECTS) fsapfs_test_container_data_handle_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_container_key_bag_OBJECTS = \ fsapfs_test_container_key_bag.$(OBJEXT) \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_container_key_bag_OBJECTS = \ $(am_fsapfs_test_container_key_bag_OBJECTS) fsapfs_test_container_key_bag_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_container_reaper_OBJECTS = \ fsapfs_test_container_reaper.$(OBJEXT) \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_container_reaper_OBJECTS = \ $(am_fsapfs_test_container_reaper_OBJECTS) fsapfs_test_container_reaper_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_container_superblock_OBJECTS = \ fsapfs_test_container_superblock.$(OBJEXT) \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_container_superblock_OBJECTS = \ $(am_fsapfs_test_container_superblock_OBJECTS) fsapfs_test_container_superblock_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_data_block_OBJECTS = fsapfs_test_data_block.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_data_block_OBJECTS = $(am_fsapfs_test_data_block_OBJECTS) fsapfs_test_data_block_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_directory_record_OBJECTS = \ fsapfs_test_directory_record.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_directory_record_OBJECTS = \ $(am_fsapfs_test_directory_record_OBJECTS) fsapfs_test_directory_record_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_encryption_context_OBJECTS = \ fsapfs_test_encryption_context.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_encryption_context_OBJECTS = \ $(am_fsapfs_test_encryption_context_OBJECTS) fsapfs_test_encryption_context_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_error_OBJECTS = fsapfs_test_error.$(OBJEXT) fsapfs_test_error_OBJECTS = $(am_fsapfs_test_error_OBJECTS) fsapfs_test_error_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_file_extent_OBJECTS = \ fsapfs_test_file_extent.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_file_extent_OBJECTS = \ $(am_fsapfs_test_file_extent_OBJECTS) fsapfs_test_file_extent_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_file_system_btree_OBJECTS = \ fsapfs_test_file_system_btree.$(OBJEXT) \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) fsapfs_test_file_system_btree_OBJECTS = \ $(am_fsapfs_test_file_system_btree_OBJECTS) fsapfs_test_file_system_btree_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_inode_OBJECTS = fsapfs_test_inode.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_inode_OBJECTS = $(am_fsapfs_test_inode_OBJECTS) fsapfs_test_inode_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_io_handle_OBJECTS = fsapfs_test_io_handle.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_io_handle_OBJECTS = $(am_fsapfs_test_io_handle_OBJECTS) fsapfs_test_io_handle_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_key_bag_entry_OBJECTS = \ fsapfs_test_key_bag_entry.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_key_bag_entry_OBJECTS = \ $(am_fsapfs_test_key_bag_entry_OBJECTS) fsapfs_test_key_bag_entry_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_key_bag_header_OBJECTS = \ fsapfs_test_key_bag_header.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_key_bag_header_OBJECTS = \ $(am_fsapfs_test_key_bag_header_OBJECTS) fsapfs_test_key_bag_header_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_key_encrypted_key_OBJECTS = \ fsapfs_test_key_encrypted_key.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_key_encrypted_key_OBJECTS = \ $(am_fsapfs_test_key_encrypted_key_OBJECTS) fsapfs_test_key_encrypted_key_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_name_OBJECTS = fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_name.$(OBJEXT) fsapfs_test_name_OBJECTS = $(am_fsapfs_test_name_OBJECTS) fsapfs_test_name_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_name_hash_OBJECTS = fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_name_hash.$(OBJEXT) fsapfs_test_name_hash_OBJECTS = $(am_fsapfs_test_name_hash_OBJECTS) fsapfs_test_name_hash_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_notify_OBJECTS = fsapfs_test_notify.$(OBJEXT) fsapfs_test_notify_OBJECTS = $(am_fsapfs_test_notify_OBJECTS) fsapfs_test_notify_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_object_OBJECTS = fsapfs_test_functions.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_object.$(OBJEXT) fsapfs_test_object_OBJECTS = $(am_fsapfs_test_object_OBJECTS) fsapfs_test_object_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_object_map_OBJECTS = fsapfs_test_functions.$(OBJEXT) \ fsapfs_test_memory.$(OBJEXT) fsapfs_test_object_map.$(OBJEXT) fsapfs_test_object_map_OBJECTS = $(am_fsapfs_test_object_map_OBJECTS) fsapfs_test_object_map_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_object_map_btree_OBJECTS = \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_object_map_btree.$(OBJEXT) fsapfs_test_object_map_btree_OBJECTS = \ $(am_fsapfs_test_object_map_btree_OBJECTS) fsapfs_test_object_map_btree_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_object_map_descriptor_OBJECTS = \ fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_object_map_descriptor.$(OBJEXT) fsapfs_test_object_map_descriptor_OBJECTS = \ $(am_fsapfs_test_object_map_descriptor_OBJECTS) fsapfs_test_object_map_descriptor_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la am_fsapfs_test_space_manager_OBJECTS = \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_space_manager.$(OBJEXT) fsapfs_test_space_manager_OBJECTS = \ $(am_fsapfs_test_space_manager_OBJECTS) fsapfs_test_space_manager_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_support_OBJECTS = fsapfs_test_functions.$(OBJEXT) \ fsapfs_test_getopt.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_support.$(OBJEXT) fsapfs_test_support_OBJECTS = $(am_fsapfs_test_support_OBJECTS) fsapfs_test_support_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_volume_OBJECTS = fsapfs_test_functions.$(OBJEXT) \ fsapfs_test_getopt.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_rwlock.$(OBJEXT) fsapfs_test_volume.$(OBJEXT) fsapfs_test_volume_OBJECTS = $(am_fsapfs_test_volume_OBJECTS) fsapfs_test_volume_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_volume_key_bag_OBJECTS = \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_volume_key_bag.$(OBJEXT) fsapfs_test_volume_key_bag_OBJECTS = \ $(am_fsapfs_test_volume_key_bag_OBJECTS) fsapfs_test_volume_key_bag_DEPENDENCIES = ../libfsapfs/libfsapfs.la am_fsapfs_test_volume_superblock_OBJECTS = \ fsapfs_test_functions.$(OBJEXT) fsapfs_test_memory.$(OBJEXT) \ fsapfs_test_volume_superblock.$(OBJEXT) fsapfs_test_volume_superblock_OBJECTS = \ $(am_fsapfs_test_volume_superblock_OBJECTS) fsapfs_test_volume_superblock_DEPENDENCIES = \ ../libfsapfs/libfsapfs.la AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/fsapfs_test_btree_entry.Po \ ./$(DEPDIR)/fsapfs_test_btree_footer.Po \ ./$(DEPDIR)/fsapfs_test_btree_node.Po \ ./$(DEPDIR)/fsapfs_test_btree_node_header.Po \ ./$(DEPDIR)/fsapfs_test_buffer_data_handle.Po \ ./$(DEPDIR)/fsapfs_test_checkpoint_map.Po \ ./$(DEPDIR)/fsapfs_test_checkpoint_map_entry.Po \ ./$(DEPDIR)/fsapfs_test_checksum.Po \ ./$(DEPDIR)/fsapfs_test_chunk_information_block.Po \ ./$(DEPDIR)/fsapfs_test_compressed_data_handle.Po \ ./$(DEPDIR)/fsapfs_test_compression.Po \ ./$(DEPDIR)/fsapfs_test_container.Po \ ./$(DEPDIR)/fsapfs_test_container_data_handle.Po \ ./$(DEPDIR)/fsapfs_test_container_key_bag.Po \ ./$(DEPDIR)/fsapfs_test_container_reaper.Po \ ./$(DEPDIR)/fsapfs_test_container_superblock.Po \ ./$(DEPDIR)/fsapfs_test_data_block.Po \ ./$(DEPDIR)/fsapfs_test_directory_record.Po \ ./$(DEPDIR)/fsapfs_test_encryption_context.Po \ ./$(DEPDIR)/fsapfs_test_error.Po \ ./$(DEPDIR)/fsapfs_test_file_extent.Po \ ./$(DEPDIR)/fsapfs_test_file_system_btree.Po \ ./$(DEPDIR)/fsapfs_test_functions.Po \ ./$(DEPDIR)/fsapfs_test_getopt.Po \ ./$(DEPDIR)/fsapfs_test_inode.Po \ ./$(DEPDIR)/fsapfs_test_io_handle.Po \ ./$(DEPDIR)/fsapfs_test_key_bag_entry.Po \ ./$(DEPDIR)/fsapfs_test_key_bag_header.Po \ ./$(DEPDIR)/fsapfs_test_key_encrypted_key.Po \ ./$(DEPDIR)/fsapfs_test_memory.Po \ ./$(DEPDIR)/fsapfs_test_name.Po \ ./$(DEPDIR)/fsapfs_test_name_hash.Po \ ./$(DEPDIR)/fsapfs_test_notify.Po \ ./$(DEPDIR)/fsapfs_test_object.Po \ ./$(DEPDIR)/fsapfs_test_object_map.Po \ ./$(DEPDIR)/fsapfs_test_object_map_btree.Po \ ./$(DEPDIR)/fsapfs_test_object_map_descriptor.Po \ ./$(DEPDIR)/fsapfs_test_rwlock.Po \ ./$(DEPDIR)/fsapfs_test_space_manager.Po \ ./$(DEPDIR)/fsapfs_test_support.Po \ ./$(DEPDIR)/fsapfs_test_volume.Po \ ./$(DEPDIR)/fsapfs_test_volume_key_bag.Po \ ./$(DEPDIR)/fsapfs_test_volume_superblock.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(fsapfs_test_btree_entry_SOURCES) \ $(fsapfs_test_btree_footer_SOURCES) \ $(fsapfs_test_btree_node_SOURCES) \ $(fsapfs_test_btree_node_header_SOURCES) \ $(fsapfs_test_buffer_data_handle_SOURCES) \ $(fsapfs_test_checkpoint_map_SOURCES) \ $(fsapfs_test_checkpoint_map_entry_SOURCES) \ $(fsapfs_test_checksum_SOURCES) \ $(fsapfs_test_chunk_information_block_SOURCES) \ $(fsapfs_test_compressed_data_handle_SOURCES) \ $(fsapfs_test_compression_SOURCES) \ $(fsapfs_test_container_SOURCES) \ $(fsapfs_test_container_data_handle_SOURCES) \ $(fsapfs_test_container_key_bag_SOURCES) \ $(fsapfs_test_container_reaper_SOURCES) \ $(fsapfs_test_container_superblock_SOURCES) \ $(fsapfs_test_data_block_SOURCES) \ $(fsapfs_test_directory_record_SOURCES) \ $(fsapfs_test_encryption_context_SOURCES) \ $(fsapfs_test_error_SOURCES) \ $(fsapfs_test_file_extent_SOURCES) \ $(fsapfs_test_file_system_btree_SOURCES) \ $(fsapfs_test_inode_SOURCES) $(fsapfs_test_io_handle_SOURCES) \ $(fsapfs_test_key_bag_entry_SOURCES) \ $(fsapfs_test_key_bag_header_SOURCES) \ $(fsapfs_test_key_encrypted_key_SOURCES) \ $(fsapfs_test_name_SOURCES) $(fsapfs_test_name_hash_SOURCES) \ $(fsapfs_test_notify_SOURCES) $(fsapfs_test_object_SOURCES) \ $(fsapfs_test_object_map_SOURCES) \ $(fsapfs_test_object_map_btree_SOURCES) \ $(fsapfs_test_object_map_descriptor_SOURCES) \ $(fsapfs_test_space_manager_SOURCES) \ $(fsapfs_test_support_SOURCES) $(fsapfs_test_volume_SOURCES) \ $(fsapfs_test_volume_key_bag_SOURCES) \ $(fsapfs_test_volume_superblock_SOURCES) DIST_SOURCES = $(fsapfs_test_btree_entry_SOURCES) \ $(fsapfs_test_btree_footer_SOURCES) \ $(fsapfs_test_btree_node_SOURCES) \ $(fsapfs_test_btree_node_header_SOURCES) \ $(fsapfs_test_buffer_data_handle_SOURCES) \ $(fsapfs_test_checkpoint_map_SOURCES) \ $(fsapfs_test_checkpoint_map_entry_SOURCES) \ $(fsapfs_test_checksum_SOURCES) \ $(fsapfs_test_chunk_information_block_SOURCES) \ $(fsapfs_test_compressed_data_handle_SOURCES) \ $(fsapfs_test_compression_SOURCES) \ $(fsapfs_test_container_SOURCES) \ $(fsapfs_test_container_data_handle_SOURCES) \ $(fsapfs_test_container_key_bag_SOURCES) \ $(fsapfs_test_container_reaper_SOURCES) \ $(fsapfs_test_container_superblock_SOURCES) \ $(fsapfs_test_data_block_SOURCES) \ $(fsapfs_test_directory_record_SOURCES) \ $(fsapfs_test_encryption_context_SOURCES) \ $(fsapfs_test_error_SOURCES) \ $(fsapfs_test_file_extent_SOURCES) \ $(fsapfs_test_file_system_btree_SOURCES) \ $(fsapfs_test_inode_SOURCES) $(fsapfs_test_io_handle_SOURCES) \ $(fsapfs_test_key_bag_entry_SOURCES) \ $(fsapfs_test_key_bag_header_SOURCES) \ $(fsapfs_test_key_encrypted_key_SOURCES) \ $(fsapfs_test_name_SOURCES) $(fsapfs_test_name_hash_SOURCES) \ $(fsapfs_test_notify_SOURCES) $(fsapfs_test_object_SOURCES) \ $(fsapfs_test_object_map_SOURCES) \ $(fsapfs_test_object_map_btree_SOURCES) \ $(fsapfs_test_object_map_descriptor_SOURCES) \ $(fsapfs_test_space_manager_SOURCES) \ $(fsapfs_test_support_SOURCES) $(fsapfs_test_volume_SOURCES) \ $(fsapfs_test_volume_key_bag_SOURCES) \ $(fsapfs_test_volume_superblock_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no am__tty_colors = { \ $(am__tty_colors_dummy); \ if test "X$(AM_COLOR_TESTS)" = Xno; then \ am__color_tests=no; \ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ am__color_tests=yes; \ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ am__color_tests=yes; \ fi; \ if test $$am__color_tests = yes; then \ red=''; \ grn=''; \ lgn=''; \ blu=''; \ mgn=''; \ brg=''; \ std=''; \ fi; \ } am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__recheck_rx = ^[ ]*:recheck:[ ]* am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* # A command that, given a newline-separated list of test names on the # standard input, print the name of the tests that are to be re-run # upon "make recheck". am__list_recheck_tests = $(AWK) '{ \ recheck = 1; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ { \ if ((getline line2 < ($$0 ".log")) < 0) \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ { \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ { \ break; \ } \ }; \ if (recheck) \ print $$0; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # A command that, given a newline-separated list of test names on the # standard input, create the global log from their .trs and .log files. am__create_global_log = $(AWK) ' \ function fatal(msg) \ { \ print "fatal: making $@: " msg | "cat >&2"; \ exit 1; \ } \ function rst_section(header) \ { \ print header; \ len = length(header); \ for (i = 1; i <= len; i = i + 1) \ printf "="; \ printf "\n\n"; \ } \ { \ copy_in_global_log = 1; \ global_test_result = "RUN"; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".trs"); \ if (line ~ /$(am__global_test_result_rx)/) \ { \ sub("$(am__global_test_result_rx)", "", line); \ sub("[ ]*$$", "", line); \ global_test_result = line; \ } \ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ copy_in_global_log = 0; \ }; \ if (copy_in_global_log) \ { \ rst_section(global_test_result ": " $$0); \ while ((rc = (getline line < ($$0 ".log"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".log"); \ print line; \ }; \ printf "\n"; \ }; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # Restructured Text title. am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # Solaris 10 'make', and several other traditional 'make' implementations, # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it # by disabling -e (using the XSI extension "set +e") if it's set. am__sh_e_setup = case $$- in *e*) set +e;; esac # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the # directory for the log if needed. Stores in $dir the directory # containing $f, in $tst the test, in $log the log. Executes the # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and # passes TESTS_ENVIRONMENT. Set up options for the wrapper that # will run the test scripts (or their associated LOG_COMPILER, if # thy have one). am__check_pre = \ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ case "$@" in \ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ *) am__odir=.;; \ esac; \ test "x$$am__odir" = x"." || test -d "$$am__odir" \ || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ am__enable_hard_errors=yes; \ fi; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ am__expect_failure=yes;; \ *) \ am__expect_failure=no;; \ esac; \ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) # A shell command to get the names of the tests scripts with any registered # extension removed (i.e., equivalently, the names of the test logs, with # the '.log' extension removed). The result is saved in the shell variable # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", # since that might cause problem with VPATH rewrites for suffix-less tests. # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` RECHECK_LOGS = $(TEST_LOGS) AM_RECURSIVE_TARGETS = check recheck TEST_SUITE_LOG = test-suite.log TEST_EXTENSIONS = @EXEEXT@ .test LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) am__set_b = \ case '$@' in \ */*) \ case '$*' in \ */*) b='$*';; \ *) b=`echo '$@' | sed 's/\.log$$//'`; \ esac;; \ *) \ b='$*';; \ esac am__test_logs1 = $(TESTS:=.log) am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) TEST_LOGS = $(am__test_logs2:.test.log=.log) TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ $(TEST_LOG_FLAGS) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \ $(top_srcdir)/test-driver DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFCACHE_CPPFLAGS@ \ @LIBFDATA_CPPFLAGS@ \ @LIBFDATETIME_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBCRYPTO_CPPFLAGS@ \ @LIBHMAC_CPPFLAGS@ \ @LIBCAES_CPPFLAGS@ \ @ZLIB_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ \ @LIBFSAPFS_DLL_IMPORT@ @HAVE_PYTHON_TESTS_TRUE@TESTS_PYFSAPFS = \ @HAVE_PYTHON_TESTS_TRUE@ test_python_module.sh TESTS = \ test_library.sh \ test_fsapfsinfo.sh \ $(TESTS_PYFSAPFS) check_SCRIPTS = \ pyfsapfs_test_support.py \ test_fsapfsinfo.sh \ test_library.sh \ test_python_module.sh \ test_runner.sh EXTRA_DIST = \ $(check_SCRIPTS) fsapfs_test_btree_entry_SOURCES = \ fsapfs_test_btree_entry.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_entry_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_btree_footer_SOURCES = \ fsapfs_test_btree_footer.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_footer_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_btree_node_SOURCES = \ fsapfs_test_btree_node.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_node_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_btree_node_header_SOURCES = \ fsapfs_test_btree_node_header.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_btree_node_header_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_buffer_data_handle_SOURCES = \ fsapfs_test_buffer_data_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_buffer_data_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_checkpoint_map_SOURCES = \ fsapfs_test_checkpoint_map.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_checkpoint_map_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_checkpoint_map_entry_SOURCES = \ fsapfs_test_checkpoint_map_entry.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_checkpoint_map_entry_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_checksum_SOURCES = \ fsapfs_test_checksum.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_checksum_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_chunk_information_block_SOURCES = \ fsapfs_test_chunk_information_block.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_chunk_information_block_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_compressed_data_handle_SOURCES = \ fsapfs_test_compressed_data_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfdata.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_compressed_data_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_compression_SOURCES = \ fsapfs_test_compression.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_compression_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_SOURCES = \ fsapfs_test_container.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_getopt.c fsapfs_test_getopt.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libclocale.h \ fsapfs_test_libcnotify.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_rwlock.c fsapfs_test_rwlock.h \ fsapfs_test_unused.h fsapfs_test_container_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCTHREADS_LIBADD@ \ @LIBCERROR_LIBADD@ \ @PTHREAD_LIBADD@ fsapfs_test_container_data_handle_SOURCES = \ fsapfs_test_container_data_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_data_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_key_bag_SOURCES = \ fsapfs_test_container_key_bag.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_key_bag_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_reaper_SOURCES = \ fsapfs_test_container_reaper.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_reaper_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_container_superblock_SOURCES = \ fsapfs_test_container_superblock.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_container_superblock_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_data_block_SOURCES = \ fsapfs_test_data_block.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_data_block_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_directory_record_SOURCES = \ fsapfs_test_directory_record.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_directory_record_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_encryption_context_SOURCES = \ fsapfs_test_encryption_context.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_encryption_context_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_error_SOURCES = \ fsapfs_test_error.c \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_unused.h fsapfs_test_error_LDADD = \ ../libfsapfs/libfsapfs.la fsapfs_test_file_extent_SOURCES = \ fsapfs_test_file_extent.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_file_extent_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_file_system_btree_SOURCES = \ fsapfs_test_file_system_btree.c \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_file_system_btree_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_inode_SOURCES = \ fsapfs_test_inode.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_inode_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_io_handle_SOURCES = \ fsapfs_test_io_handle.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_io_handle_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_key_bag_entry_SOURCES = \ fsapfs_test_key_bag_entry.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_key_bag_entry_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_key_bag_header_SOURCES = \ fsapfs_test_key_bag_header.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_key_bag_header_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_key_encrypted_key_SOURCES = \ fsapfs_test_key_encrypted_key.c \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h fsapfs_test_key_encrypted_key_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_name_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_name.c \ fsapfs_test_types.h \ fsapfs_test_unicode_case_folding_mappings.h \ fsapfs_test_unicode_decomposition_mappings.h \ fsapfs_test_unused.h fsapfs_test_name_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_name_hash_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_name_hash.c \ fsapfs_test_unused.h fsapfs_test_name_hash_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_notify_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_notify.c \ fsapfs_test_unused.h fsapfs_test_notify_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object.c \ fsapfs_test_unused.h fsapfs_test_object_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_map_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object_map.c \ fsapfs_test_unused.h fsapfs_test_object_map_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_map_btree_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object_map_btree.c \ fsapfs_test_unused.h fsapfs_test_object_map_btree_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_object_map_descriptor_SOURCES = \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_object_map_descriptor.c \ fsapfs_test_unused.h fsapfs_test_object_map_descriptor_LDADD = \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_space_manager_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_space_manager.c \ fsapfs_test_unused.h fsapfs_test_space_manager_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_support_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_getopt.c fsapfs_test_getopt.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libclocale.h \ fsapfs_test_libcnotify.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_support.c \ fsapfs_test_unused.h fsapfs_test_support_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_volume_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_getopt.c fsapfs_test_getopt.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libclocale.h \ fsapfs_test_libcnotify.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_libuna.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_rwlock.c fsapfs_test_rwlock.h \ fsapfs_test_unused.h \ fsapfs_test_volume.c fsapfs_test_volume_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCTHREADS_LIBADD@ \ @LIBCERROR_LIBADD@ \ @PTHREAD_LIBADD@ fsapfs_test_volume_key_bag_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h \ fsapfs_test_volume_key_bag.c fsapfs_test_volume_key_bag_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ fsapfs_test_volume_superblock_SOURCES = \ fsapfs_test_functions.c fsapfs_test_functions.h \ fsapfs_test_libbfio.h \ fsapfs_test_libcerror.h \ fsapfs_test_libfsapfs.h \ fsapfs_test_macros.h \ fsapfs_test_memory.c fsapfs_test_memory.h \ fsapfs_test_unused.h \ fsapfs_test_volume_superblock.c fsapfs_test_volume_superblock_LDADD = \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list fsapfs_test_btree_entry$(EXEEXT): $(fsapfs_test_btree_entry_OBJECTS) $(fsapfs_test_btree_entry_DEPENDENCIES) $(EXTRA_fsapfs_test_btree_entry_DEPENDENCIES) @rm -f fsapfs_test_btree_entry$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_btree_entry_OBJECTS) $(fsapfs_test_btree_entry_LDADD) $(LIBS) fsapfs_test_btree_footer$(EXEEXT): $(fsapfs_test_btree_footer_OBJECTS) $(fsapfs_test_btree_footer_DEPENDENCIES) $(EXTRA_fsapfs_test_btree_footer_DEPENDENCIES) @rm -f fsapfs_test_btree_footer$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_btree_footer_OBJECTS) $(fsapfs_test_btree_footer_LDADD) $(LIBS) fsapfs_test_btree_node$(EXEEXT): $(fsapfs_test_btree_node_OBJECTS) $(fsapfs_test_btree_node_DEPENDENCIES) $(EXTRA_fsapfs_test_btree_node_DEPENDENCIES) @rm -f fsapfs_test_btree_node$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_btree_node_OBJECTS) $(fsapfs_test_btree_node_LDADD) $(LIBS) fsapfs_test_btree_node_header$(EXEEXT): $(fsapfs_test_btree_node_header_OBJECTS) $(fsapfs_test_btree_node_header_DEPENDENCIES) $(EXTRA_fsapfs_test_btree_node_header_DEPENDENCIES) @rm -f fsapfs_test_btree_node_header$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_btree_node_header_OBJECTS) $(fsapfs_test_btree_node_header_LDADD) $(LIBS) fsapfs_test_buffer_data_handle$(EXEEXT): $(fsapfs_test_buffer_data_handle_OBJECTS) $(fsapfs_test_buffer_data_handle_DEPENDENCIES) $(EXTRA_fsapfs_test_buffer_data_handle_DEPENDENCIES) @rm -f fsapfs_test_buffer_data_handle$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_buffer_data_handle_OBJECTS) $(fsapfs_test_buffer_data_handle_LDADD) $(LIBS) fsapfs_test_checkpoint_map$(EXEEXT): $(fsapfs_test_checkpoint_map_OBJECTS) $(fsapfs_test_checkpoint_map_DEPENDENCIES) $(EXTRA_fsapfs_test_checkpoint_map_DEPENDENCIES) @rm -f fsapfs_test_checkpoint_map$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_checkpoint_map_OBJECTS) $(fsapfs_test_checkpoint_map_LDADD) $(LIBS) fsapfs_test_checkpoint_map_entry$(EXEEXT): $(fsapfs_test_checkpoint_map_entry_OBJECTS) $(fsapfs_test_checkpoint_map_entry_DEPENDENCIES) $(EXTRA_fsapfs_test_checkpoint_map_entry_DEPENDENCIES) @rm -f fsapfs_test_checkpoint_map_entry$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_checkpoint_map_entry_OBJECTS) $(fsapfs_test_checkpoint_map_entry_LDADD) $(LIBS) fsapfs_test_checksum$(EXEEXT): $(fsapfs_test_checksum_OBJECTS) $(fsapfs_test_checksum_DEPENDENCIES) $(EXTRA_fsapfs_test_checksum_DEPENDENCIES) @rm -f fsapfs_test_checksum$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_checksum_OBJECTS) $(fsapfs_test_checksum_LDADD) $(LIBS) fsapfs_test_chunk_information_block$(EXEEXT): $(fsapfs_test_chunk_information_block_OBJECTS) $(fsapfs_test_chunk_information_block_DEPENDENCIES) $(EXTRA_fsapfs_test_chunk_information_block_DEPENDENCIES) @rm -f fsapfs_test_chunk_information_block$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_chunk_information_block_OBJECTS) $(fsapfs_test_chunk_information_block_LDADD) $(LIBS) fsapfs_test_compressed_data_handle$(EXEEXT): $(fsapfs_test_compressed_data_handle_OBJECTS) $(fsapfs_test_compressed_data_handle_DEPENDENCIES) $(EXTRA_fsapfs_test_compressed_data_handle_DEPENDENCIES) @rm -f fsapfs_test_compressed_data_handle$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_compressed_data_handle_OBJECTS) $(fsapfs_test_compressed_data_handle_LDADD) $(LIBS) fsapfs_test_compression$(EXEEXT): $(fsapfs_test_compression_OBJECTS) $(fsapfs_test_compression_DEPENDENCIES) $(EXTRA_fsapfs_test_compression_DEPENDENCIES) @rm -f fsapfs_test_compression$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_compression_OBJECTS) $(fsapfs_test_compression_LDADD) $(LIBS) fsapfs_test_container$(EXEEXT): $(fsapfs_test_container_OBJECTS) $(fsapfs_test_container_DEPENDENCIES) $(EXTRA_fsapfs_test_container_DEPENDENCIES) @rm -f fsapfs_test_container$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_container_OBJECTS) $(fsapfs_test_container_LDADD) $(LIBS) fsapfs_test_container_data_handle$(EXEEXT): $(fsapfs_test_container_data_handle_OBJECTS) $(fsapfs_test_container_data_handle_DEPENDENCIES) $(EXTRA_fsapfs_test_container_data_handle_DEPENDENCIES) @rm -f fsapfs_test_container_data_handle$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_container_data_handle_OBJECTS) $(fsapfs_test_container_data_handle_LDADD) $(LIBS) fsapfs_test_container_key_bag$(EXEEXT): $(fsapfs_test_container_key_bag_OBJECTS) $(fsapfs_test_container_key_bag_DEPENDENCIES) $(EXTRA_fsapfs_test_container_key_bag_DEPENDENCIES) @rm -f fsapfs_test_container_key_bag$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_container_key_bag_OBJECTS) $(fsapfs_test_container_key_bag_LDADD) $(LIBS) fsapfs_test_container_reaper$(EXEEXT): $(fsapfs_test_container_reaper_OBJECTS) $(fsapfs_test_container_reaper_DEPENDENCIES) $(EXTRA_fsapfs_test_container_reaper_DEPENDENCIES) @rm -f fsapfs_test_container_reaper$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_container_reaper_OBJECTS) $(fsapfs_test_container_reaper_LDADD) $(LIBS) fsapfs_test_container_superblock$(EXEEXT): $(fsapfs_test_container_superblock_OBJECTS) $(fsapfs_test_container_superblock_DEPENDENCIES) $(EXTRA_fsapfs_test_container_superblock_DEPENDENCIES) @rm -f fsapfs_test_container_superblock$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_container_superblock_OBJECTS) $(fsapfs_test_container_superblock_LDADD) $(LIBS) fsapfs_test_data_block$(EXEEXT): $(fsapfs_test_data_block_OBJECTS) $(fsapfs_test_data_block_DEPENDENCIES) $(EXTRA_fsapfs_test_data_block_DEPENDENCIES) @rm -f fsapfs_test_data_block$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_data_block_OBJECTS) $(fsapfs_test_data_block_LDADD) $(LIBS) fsapfs_test_directory_record$(EXEEXT): $(fsapfs_test_directory_record_OBJECTS) $(fsapfs_test_directory_record_DEPENDENCIES) $(EXTRA_fsapfs_test_directory_record_DEPENDENCIES) @rm -f fsapfs_test_directory_record$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_directory_record_OBJECTS) $(fsapfs_test_directory_record_LDADD) $(LIBS) fsapfs_test_encryption_context$(EXEEXT): $(fsapfs_test_encryption_context_OBJECTS) $(fsapfs_test_encryption_context_DEPENDENCIES) $(EXTRA_fsapfs_test_encryption_context_DEPENDENCIES) @rm -f fsapfs_test_encryption_context$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_encryption_context_OBJECTS) $(fsapfs_test_encryption_context_LDADD) $(LIBS) fsapfs_test_error$(EXEEXT): $(fsapfs_test_error_OBJECTS) $(fsapfs_test_error_DEPENDENCIES) $(EXTRA_fsapfs_test_error_DEPENDENCIES) @rm -f fsapfs_test_error$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_error_OBJECTS) $(fsapfs_test_error_LDADD) $(LIBS) fsapfs_test_file_extent$(EXEEXT): $(fsapfs_test_file_extent_OBJECTS) $(fsapfs_test_file_extent_DEPENDENCIES) $(EXTRA_fsapfs_test_file_extent_DEPENDENCIES) @rm -f fsapfs_test_file_extent$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_file_extent_OBJECTS) $(fsapfs_test_file_extent_LDADD) $(LIBS) fsapfs_test_file_system_btree$(EXEEXT): $(fsapfs_test_file_system_btree_OBJECTS) $(fsapfs_test_file_system_btree_DEPENDENCIES) $(EXTRA_fsapfs_test_file_system_btree_DEPENDENCIES) @rm -f fsapfs_test_file_system_btree$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_file_system_btree_OBJECTS) $(fsapfs_test_file_system_btree_LDADD) $(LIBS) fsapfs_test_inode$(EXEEXT): $(fsapfs_test_inode_OBJECTS) $(fsapfs_test_inode_DEPENDENCIES) $(EXTRA_fsapfs_test_inode_DEPENDENCIES) @rm -f fsapfs_test_inode$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_inode_OBJECTS) $(fsapfs_test_inode_LDADD) $(LIBS) fsapfs_test_io_handle$(EXEEXT): $(fsapfs_test_io_handle_OBJECTS) $(fsapfs_test_io_handle_DEPENDENCIES) $(EXTRA_fsapfs_test_io_handle_DEPENDENCIES) @rm -f fsapfs_test_io_handle$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_io_handle_OBJECTS) $(fsapfs_test_io_handle_LDADD) $(LIBS) fsapfs_test_key_bag_entry$(EXEEXT): $(fsapfs_test_key_bag_entry_OBJECTS) $(fsapfs_test_key_bag_entry_DEPENDENCIES) $(EXTRA_fsapfs_test_key_bag_entry_DEPENDENCIES) @rm -f fsapfs_test_key_bag_entry$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_key_bag_entry_OBJECTS) $(fsapfs_test_key_bag_entry_LDADD) $(LIBS) fsapfs_test_key_bag_header$(EXEEXT): $(fsapfs_test_key_bag_header_OBJECTS) $(fsapfs_test_key_bag_header_DEPENDENCIES) $(EXTRA_fsapfs_test_key_bag_header_DEPENDENCIES) @rm -f fsapfs_test_key_bag_header$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_key_bag_header_OBJECTS) $(fsapfs_test_key_bag_header_LDADD) $(LIBS) fsapfs_test_key_encrypted_key$(EXEEXT): $(fsapfs_test_key_encrypted_key_OBJECTS) $(fsapfs_test_key_encrypted_key_DEPENDENCIES) $(EXTRA_fsapfs_test_key_encrypted_key_DEPENDENCIES) @rm -f fsapfs_test_key_encrypted_key$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_key_encrypted_key_OBJECTS) $(fsapfs_test_key_encrypted_key_LDADD) $(LIBS) fsapfs_test_name$(EXEEXT): $(fsapfs_test_name_OBJECTS) $(fsapfs_test_name_DEPENDENCIES) $(EXTRA_fsapfs_test_name_DEPENDENCIES) @rm -f fsapfs_test_name$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_name_OBJECTS) $(fsapfs_test_name_LDADD) $(LIBS) fsapfs_test_name_hash$(EXEEXT): $(fsapfs_test_name_hash_OBJECTS) $(fsapfs_test_name_hash_DEPENDENCIES) $(EXTRA_fsapfs_test_name_hash_DEPENDENCIES) @rm -f fsapfs_test_name_hash$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_name_hash_OBJECTS) $(fsapfs_test_name_hash_LDADD) $(LIBS) fsapfs_test_notify$(EXEEXT): $(fsapfs_test_notify_OBJECTS) $(fsapfs_test_notify_DEPENDENCIES) $(EXTRA_fsapfs_test_notify_DEPENDENCIES) @rm -f fsapfs_test_notify$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_notify_OBJECTS) $(fsapfs_test_notify_LDADD) $(LIBS) fsapfs_test_object$(EXEEXT): $(fsapfs_test_object_OBJECTS) $(fsapfs_test_object_DEPENDENCIES) $(EXTRA_fsapfs_test_object_DEPENDENCIES) @rm -f fsapfs_test_object$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_object_OBJECTS) $(fsapfs_test_object_LDADD) $(LIBS) fsapfs_test_object_map$(EXEEXT): $(fsapfs_test_object_map_OBJECTS) $(fsapfs_test_object_map_DEPENDENCIES) $(EXTRA_fsapfs_test_object_map_DEPENDENCIES) @rm -f fsapfs_test_object_map$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_object_map_OBJECTS) $(fsapfs_test_object_map_LDADD) $(LIBS) fsapfs_test_object_map_btree$(EXEEXT): $(fsapfs_test_object_map_btree_OBJECTS) $(fsapfs_test_object_map_btree_DEPENDENCIES) $(EXTRA_fsapfs_test_object_map_btree_DEPENDENCIES) @rm -f fsapfs_test_object_map_btree$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_object_map_btree_OBJECTS) $(fsapfs_test_object_map_btree_LDADD) $(LIBS) fsapfs_test_object_map_descriptor$(EXEEXT): $(fsapfs_test_object_map_descriptor_OBJECTS) $(fsapfs_test_object_map_descriptor_DEPENDENCIES) $(EXTRA_fsapfs_test_object_map_descriptor_DEPENDENCIES) @rm -f fsapfs_test_object_map_descriptor$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_object_map_descriptor_OBJECTS) $(fsapfs_test_object_map_descriptor_LDADD) $(LIBS) fsapfs_test_space_manager$(EXEEXT): $(fsapfs_test_space_manager_OBJECTS) $(fsapfs_test_space_manager_DEPENDENCIES) $(EXTRA_fsapfs_test_space_manager_DEPENDENCIES) @rm -f fsapfs_test_space_manager$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_space_manager_OBJECTS) $(fsapfs_test_space_manager_LDADD) $(LIBS) fsapfs_test_support$(EXEEXT): $(fsapfs_test_support_OBJECTS) $(fsapfs_test_support_DEPENDENCIES) $(EXTRA_fsapfs_test_support_DEPENDENCIES) @rm -f fsapfs_test_support$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_support_OBJECTS) $(fsapfs_test_support_LDADD) $(LIBS) fsapfs_test_volume$(EXEEXT): $(fsapfs_test_volume_OBJECTS) $(fsapfs_test_volume_DEPENDENCIES) $(EXTRA_fsapfs_test_volume_DEPENDENCIES) @rm -f fsapfs_test_volume$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_volume_OBJECTS) $(fsapfs_test_volume_LDADD) $(LIBS) fsapfs_test_volume_key_bag$(EXEEXT): $(fsapfs_test_volume_key_bag_OBJECTS) $(fsapfs_test_volume_key_bag_DEPENDENCIES) $(EXTRA_fsapfs_test_volume_key_bag_DEPENDENCIES) @rm -f fsapfs_test_volume_key_bag$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_volume_key_bag_OBJECTS) $(fsapfs_test_volume_key_bag_LDADD) $(LIBS) fsapfs_test_volume_superblock$(EXEEXT): $(fsapfs_test_volume_superblock_OBJECTS) $(fsapfs_test_volume_superblock_DEPENDENCIES) $(EXTRA_fsapfs_test_volume_superblock_DEPENDENCIES) @rm -f fsapfs_test_volume_superblock$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfs_test_volume_superblock_OBJECTS) $(fsapfs_test_volume_superblock_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_btree_entry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_btree_footer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_btree_node.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_btree_node_header.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_buffer_data_handle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_checkpoint_map.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_checkpoint_map_entry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_checksum.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_chunk_information_block.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_compressed_data_handle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_compression.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_container.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_container_data_handle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_container_key_bag.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_container_reaper.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_container_superblock.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_data_block.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_directory_record.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_encryption_context.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_error.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_file_extent.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_file_system_btree.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_functions.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_getopt.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_inode.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_io_handle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_key_bag_entry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_key_bag_header.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_key_encrypted_key.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_memory.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_name.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_name_hash.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_notify.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_object.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_object_map.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_object_map_btree.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_object_map_descriptor.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_rwlock.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_space_manager.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_support.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_volume.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_volume_key_bag.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfs_test_volume_superblock.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags # Recover from deleted '.trs' file; this should ensure that # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells # to avoid problems with "make -n". .log.trs: rm -f $< $@ $(MAKE) $(AM_MAKEFLAGS) $< # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ elif test -n "$$redo_logs"; then \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(TEST_SUITE_LOG).tmp || exit 1; \ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: $(check_PROGRAMS) $(check_SCRIPTS) @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all $(check_PROGRAMS) $(check_SCRIPTS) @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ log_list=`for i in $$bases; do echo $$i.log; done`; \ log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ am__force_recheck=am--force-recheck \ TEST_LOGS="$$log_list"; \ exit $$? test_library.sh.log: test_library.sh @p='test_library.sh'; \ b='test_library.sh'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) test_fsapfsinfo.sh.log: test_fsapfsinfo.sh @p='test_fsapfsinfo.sh'; \ b='test_fsapfsinfo.sh'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) test_python_module.sh.log: test_python_module.sh @p='test_python_module.sh'; \ b='test_python_module.sh'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) .test.log: @p='$<'; \ $(am__set_b); \ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) @am__EXEEXT_TRUE@.test$(EXEEXT).log: @am__EXEEXT_TRUE@ @p='$<'; \ @am__EXEEXT_TRUE@ $(am__set_b); \ @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/fsapfs_test_btree_entry.Po -rm -f ./$(DEPDIR)/fsapfs_test_btree_footer.Po -rm -f ./$(DEPDIR)/fsapfs_test_btree_node.Po -rm -f ./$(DEPDIR)/fsapfs_test_btree_node_header.Po -rm -f ./$(DEPDIR)/fsapfs_test_buffer_data_handle.Po -rm -f ./$(DEPDIR)/fsapfs_test_checkpoint_map.Po -rm -f ./$(DEPDIR)/fsapfs_test_checkpoint_map_entry.Po -rm -f ./$(DEPDIR)/fsapfs_test_checksum.Po -rm -f ./$(DEPDIR)/fsapfs_test_chunk_information_block.Po -rm -f ./$(DEPDIR)/fsapfs_test_compressed_data_handle.Po -rm -f ./$(DEPDIR)/fsapfs_test_compression.Po -rm -f ./$(DEPDIR)/fsapfs_test_container.Po -rm -f ./$(DEPDIR)/fsapfs_test_container_data_handle.Po -rm -f ./$(DEPDIR)/fsapfs_test_container_key_bag.Po -rm -f ./$(DEPDIR)/fsapfs_test_container_reaper.Po -rm -f ./$(DEPDIR)/fsapfs_test_container_superblock.Po -rm -f ./$(DEPDIR)/fsapfs_test_data_block.Po -rm -f ./$(DEPDIR)/fsapfs_test_directory_record.Po -rm -f ./$(DEPDIR)/fsapfs_test_encryption_context.Po -rm -f ./$(DEPDIR)/fsapfs_test_error.Po -rm -f ./$(DEPDIR)/fsapfs_test_file_extent.Po -rm -f ./$(DEPDIR)/fsapfs_test_file_system_btree.Po -rm -f ./$(DEPDIR)/fsapfs_test_functions.Po -rm -f ./$(DEPDIR)/fsapfs_test_getopt.Po -rm -f ./$(DEPDIR)/fsapfs_test_inode.Po -rm -f ./$(DEPDIR)/fsapfs_test_io_handle.Po -rm -f ./$(DEPDIR)/fsapfs_test_key_bag_entry.Po -rm -f ./$(DEPDIR)/fsapfs_test_key_bag_header.Po -rm -f ./$(DEPDIR)/fsapfs_test_key_encrypted_key.Po -rm -f ./$(DEPDIR)/fsapfs_test_memory.Po -rm -f ./$(DEPDIR)/fsapfs_test_name.Po -rm -f ./$(DEPDIR)/fsapfs_test_name_hash.Po -rm -f ./$(DEPDIR)/fsapfs_test_notify.Po -rm -f ./$(DEPDIR)/fsapfs_test_object.Po -rm -f ./$(DEPDIR)/fsapfs_test_object_map.Po -rm -f ./$(DEPDIR)/fsapfs_test_object_map_btree.Po -rm -f ./$(DEPDIR)/fsapfs_test_object_map_descriptor.Po -rm -f ./$(DEPDIR)/fsapfs_test_rwlock.Po -rm -f ./$(DEPDIR)/fsapfs_test_space_manager.Po -rm -f ./$(DEPDIR)/fsapfs_test_support.Po -rm -f ./$(DEPDIR)/fsapfs_test_volume.Po -rm -f ./$(DEPDIR)/fsapfs_test_volume_key_bag.Po -rm -f ./$(DEPDIR)/fsapfs_test_volume_superblock.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-TESTS \ check-am clean clean-checkPROGRAMS clean-generic clean-libtool \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ recheck tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/tests/fsapfs_test_rwlock.c0000664000175000017500000001446613426640002023243 0ustar00lordyestalordyesta00000000000000/* * Read/Write lock functions for testing * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include #if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) #define __USE_GNU #include #undef __USE_GNU #endif #include "fsapfs_test_rwlock.h" #if defined( HAVE_FSAPFS_TEST_RWLOCK ) static int (*fsapfs_test_real_pthread_rwlock_destroy)(pthread_rwlock_t *) = NULL; static int (*fsapfs_test_real_pthread_rwlock_rdlock)(pthread_rwlock_t *) = NULL; static int (*fsapfs_test_real_pthread_rwlock_wrlock)(pthread_rwlock_t *) = NULL; static int (*fsapfs_test_real_pthread_rwlock_unlock)(pthread_rwlock_t *) = NULL; int fsapfs_test_pthread_rwlock_destroy_attempts_before_fail = -1; int fsapfs_test_pthread_rwlock_rdlock_attempts_before_fail = -1; int fsapfs_test_pthread_rwlock_wrlock_attempts_before_fail = -1; int fsapfs_test_pthread_rwlock_unlock_attempts_before_fail = -1; #if defined( TODO ) /* TODO currently disabled since this causes the tests to segfault on Ubuntu 14.04 */ static int (*fsapfs_test_real_pthread_rwlock_init)(pthread_rwlock_t *, const pthread_rwlockattr_t *) = NULL; int fsapfs_test_pthread_rwlock_init_attempts_before_fail = -1; /* Custom pthread_rwlock_init for testing error cases * Returns 0 if successful or an error value otherwise */ int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) { int result = 0; if( fsapfs_test_real_pthread_rwlock_init == NULL ) { fsapfs_test_real_pthread_rwlock_init = dlsym( RTLD_NEXT, "pthread_rwlock_init" ); } if( fsapfs_test_pthread_rwlock_init_attempts_before_fail == 0 ) { fsapfs_test_pthread_rwlock_init_attempts_before_fail = -1; return( EBUSY ); } else if( fsapfs_test_pthread_rwlock_init_attempts_before_fail > 0 ) { fsapfs_test_pthread_rwlock_init_attempts_before_fail--; } result = fsapfs_test_real_pthread_rwlock_init( rwlock, attr ); return( result ); } #endif /* defined( TODO ) */ /* Custom pthread_rwlock_destroy for testing error cases * Returns 0 if successful or an error value otherwise */ int pthread_rwlock_destroy( pthread_rwlock_t *rwlock ) { int result = 0; if( fsapfs_test_real_pthread_rwlock_destroy == NULL ) { fsapfs_test_real_pthread_rwlock_destroy = dlsym( RTLD_NEXT, "pthread_rwlock_destroy" ); } if( fsapfs_test_pthread_rwlock_destroy_attempts_before_fail == 0 ) { fsapfs_test_pthread_rwlock_destroy_attempts_before_fail = -1; return( EBUSY ); } else if( fsapfs_test_pthread_rwlock_destroy_attempts_before_fail > 0 ) { fsapfs_test_pthread_rwlock_destroy_attempts_before_fail--; } result = fsapfs_test_real_pthread_rwlock_destroy( rwlock ); return( result ); } /* Custom pthread_rwlock_rdlock for testing error cases * Returns 0 if successful or an error value otherwise */ int pthread_rwlock_rdlock( pthread_rwlock_t *rwlock ) { int result = 0; if( fsapfs_test_real_pthread_rwlock_rdlock == NULL ) { fsapfs_test_real_pthread_rwlock_rdlock = dlsym( RTLD_NEXT, "pthread_rwlock_rdlock" ); } if( fsapfs_test_pthread_rwlock_rdlock_attempts_before_fail == 0 ) { fsapfs_test_pthread_rwlock_rdlock_attempts_before_fail = -1; return( EBUSY ); } else if( fsapfs_test_pthread_rwlock_rdlock_attempts_before_fail > 0 ) { fsapfs_test_pthread_rwlock_rdlock_attempts_before_fail--; } result = fsapfs_test_real_pthread_rwlock_rdlock( rwlock ); return( result ); } /* Custom pthread_rwlock_wrlock for testing error cases * Returns 0 if successful or an error value otherwise */ int pthread_rwlock_wrlock( pthread_rwlock_t *rwlock ) { int result = 0; if( fsapfs_test_real_pthread_rwlock_wrlock == NULL ) { fsapfs_test_real_pthread_rwlock_wrlock = dlsym( RTLD_NEXT, "pthread_rwlock_wrlock" ); } if( fsapfs_test_pthread_rwlock_wrlock_attempts_before_fail == 0 ) { fsapfs_test_pthread_rwlock_wrlock_attempts_before_fail = -1; return( EBUSY ); } else if( fsapfs_test_pthread_rwlock_wrlock_attempts_before_fail > 0 ) { fsapfs_test_pthread_rwlock_wrlock_attempts_before_fail--; } result = fsapfs_test_real_pthread_rwlock_wrlock( rwlock ); return( result ); } /* Custom pthread_rwlock_unlock for testing error cases * Returns 0 if successful or an error value otherwise */ int pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) { int result = 0; if( fsapfs_test_real_pthread_rwlock_unlock == NULL ) { fsapfs_test_real_pthread_rwlock_unlock = dlsym( RTLD_NEXT, "pthread_rwlock_unlock" ); } if( fsapfs_test_pthread_rwlock_unlock_attempts_before_fail == 0 ) { /* Unlock the lock otherwise it can enter a nondeterministic state */ fsapfs_test_real_pthread_rwlock_unlock( rwlock ); fsapfs_test_pthread_rwlock_unlock_attempts_before_fail = -1; return( EBUSY ); } else if( fsapfs_test_pthread_rwlock_unlock_attempts_before_fail > 0 ) { fsapfs_test_pthread_rwlock_unlock_attempts_before_fail--; } result = fsapfs_test_real_pthread_rwlock_unlock( rwlock ); return( result ); } #endif /* defined( HAVE_FSAPFS_TEST_RWLOCK ) */ libfsapfs-20190210/tests/test_fsapfsinfo.sh0000775000175000017500000000463213426637450022740 0ustar00lordyestalordyesta00000000000000#!/bin/bash # Info tool testing script # # Version: 20190101 EXIT_SUCCESS=0; EXIT_FAILURE=1; EXIT_IGNORE=77; OPTION_SETS="offset password"; OPTIONS=(); INPUT_GLOB="*"; if ! test -z ${SKIP_TOOLS_TESTS}; then exit ${EXIT_IGNORE}; fi TEST_EXECUTABLE="../fsapfstools/fsapfsinfo"; if ! test -x "${TEST_EXECUTABLE}"; then TEST_EXECUTABLE="../fsapfstools/fsapfsinfo.exe"; fi if ! test -x "${TEST_EXECUTABLE}"; then echo "Missing test executable: ${TEST_EXECUTABLE}"; exit ${EXIT_FAILURE}; fi TEST_RUNNER="tests/test_runner.sh"; if ! test -f "${TEST_RUNNER}"; then TEST_RUNNER="./test_runner.sh"; fi if ! test -f "${TEST_RUNNER}"; then echo "Missing test runner: ${TEST_RUNNER}"; exit ${EXIT_FAILURE}; fi source ${TEST_RUNNER}; if ! test -d "input"; then echo "Test input directory: input not found."; return ${EXIT_IGNORE}; fi RESULT=`ls input/* | tr ' ' '\n' | wc -l`; if test ${RESULT} -eq ${EXIT_SUCCESS}; then echo "No files or directories found in the test input directory: input"; return ${EXIT_IGNORE}; fi TEST_PROFILE_DIRECTORY=$(get_test_profile_directory "input" "fsapfsinfo"); IGNORE_LIST=$(read_ignore_list "${TEST_PROFILE_DIRECTORY}"); RESULT=${EXIT_SUCCESS}; for TEST_SET_INPUT_DIRECTORY in input/*; do if ! test -d "${TEST_SET_INPUT_DIRECTORY}"; then continue; fi if check_for_directory_in_ignore_list "${TEST_SET_INPUT_DIRECTORY}" "${IGNORE_LIST}"; then continue; fi TEST_SET_DIRECTORY=$(get_test_set_directory "${TEST_PROFILE_DIRECTORY}" "${TEST_SET_INPUT_DIRECTORY}"); OLDIFS=${IFS}; # IFS="\n"; is not supported by all platforms. IFS=" "; if test -f "${TEST_SET_DIRECTORY}/files"; then for INPUT_FILE in `cat ${TEST_SET_DIRECTORY}/files | sed "s?^?${TEST_SET_INPUT_DIRECTORY}/?"`; do run_test_on_input_file_with_options "${TEST_SET_DIRECTORY}" "fsapfsinfo" "with_stdout_reference" "${OPTION_SETS}" "${TEST_EXECUTABLE}" "${INPUT_FILE}" "${OPTIONS[@]}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done else for INPUT_FILE in `ls -1d ${TEST_SET_INPUT_DIRECTORY}/${INPUT_GLOB}`; do run_test_on_input_file_with_options "${TEST_SET_DIRECTORY}" "fsapfsinfo" "with_stdout_reference" "${OPTION_SETS}" "${TEST_EXECUTABLE}" "${INPUT_FILE}" "${OPTIONS[@]}"; RESULT=$?; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done fi IFS=${OLDIFS}; if test ${RESULT} -ne ${EXIT_SUCCESS}; then break; fi done exit ${RESULT}; libfsapfs-20190210/tests/fsapfs_test_libcerror.h0000664000175000017500000000265113426637447023746 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_LIBCERROR_H ) #define _FSAPFS_TEST_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _FSAPFS_TEST_LIBCERROR_H ) */ libfsapfs-20190210/tests/fsapfs_test_libbfio.h0000664000175000017500000000326213426637447023370 0ustar00lordyestalordyesta00000000000000/* * The libbfio header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_TEST_LIBBFIO_H ) #define _FSAPFS_TEST_LIBBFIO_H #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio */ #if defined( HAVE_LOCAL_LIBBFIO ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT * before including libbfio.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBBFIO_DLL_IMPORT #endif #include #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT ) #error Multi-threading support requires libbfio with multi-threading support #endif #endif /* defined( HAVE_LOCAL_LIBBFIO ) */ #endif /* !defined( _FSAPFS_TEST_LIBBFIO_H ) */ libfsapfs-20190210/tests/fsapfs_test_name.c0000664000175000017500000003000013426637450022655 0ustar00lordyestalordyesta00000000000000/* * Library name functions test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_libuna.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_types.h" #include "fsapfs_test_unused.h" #include "fsapfs_test_unicode_case_folding_mappings.h" #include "fsapfs_test_unicode_decomposition_mappings.h" #include "../libfsapfs/libfsapfs_name.h" #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_name_case_folding_mappings * Returns 1 if successful or 0 if not */ int fsapfs_test_name_case_folding_mappings( void ) { fsapfs_test_unicode_case_folding_mapping_t *mapping = NULL; libuna_unicode_character_t unicode_character = 0; int mapping_index = 0; for( mapping_index = 0; mapping_index < 1325; mapping_index++ ) { mapping = &( fsapfs_test_unicode_case_folding_mappings[ mapping_index ] ); unicode_character = mapping->unicode_character; libfsapfs_name_get_case_folding_mapping( unicode_character ); if( mapping->character != unicode_character ) { goto on_error; } } return( 1 ); on_error: return( 0 ); } /* Tests the libfsapfs_name_decomposition_mappings * Returns 1 if successful or 0 if not */ int fsapfs_test_name_decomposition_mappings( void ) { libfsapfs_name_decomposition_mapping_t single_nfd_mapping = { 1, { 0 } }; fsapfs_test_unicode_decomposition_mapping_t *mapping = NULL; libfsapfs_name_decomposition_mapping_t *nfd_mapping = NULL; libuna_unicode_character_t unicode_character = 0; int character_index = 0; int mapping_index = 0; for( mapping_index = 0; mapping_index < 30592; mapping_index++ ) { mapping = &( fsapfs_test_unicode_nfd_mappings[ mapping_index ] ); unicode_character = mapping->unicode_character; libfsapfs_name_get_decomposition_mapping( unicode_character, nfd_mapping, single_nfd_mapping ); if( mapping->number_of_characters != nfd_mapping->number_of_characters ) { goto on_error; } for( character_index = 0; character_index < mapping->number_of_characters; character_index++ ) { if( mapping->characters[ character_index ] != nfd_mapping->characters[ character_index ] ) { goto on_error; } } } return( 1 ); on_error: return( 0 ); } /* Tests the libfsapfs_name_compare_with_utf8_string function * Returns 1 if successful or 0 if not */ int fsapfs_test_name_compare_with_utf8_string( void ) { uint8_t utf8_string_equal[ 6 ] = { 'e', 'q', 'u', 'a', 'l', 0 }; uint8_t utf8_string_greater[ 7 ] = { 'g', 'r', 'e', 'a', 't', 'e', 'r' }; uint8_t utf8_string_less[ 4 ] = { 'l', 'e', 's', 's' }; uint8_t utf8_string_more[ 4 ] = { 'm', 'o', 'r', 'e' }; libcerror_error_t *error = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "equal", 6, utf8_string_equal, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_EQUAL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "equal", 6, utf8_string_equal, 6, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_EQUAL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "great", 6, utf8_string_greater, 7, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_GREATER ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "less", 5, utf8_string_more, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_GREATER ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "more", 5, utf8_string_less, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_LESS ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "lesser", 7, utf8_string_less, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_LESS ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_name_compare_with_utf8_string( NULL, 6, utf8_string_equal, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "equal", (size_t) SSIZE_MAX + 1, utf8_string_equal, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "equal", 6, NULL, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_compare_with_utf8_string( (uint8_t *) "equal", 6, utf8_string_equal, (size_t) SSIZE_MAX + 1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_name_compare_with_utf16_string function * Returns 1 if successful or 0 if not */ int fsapfs_test_name_compare_with_utf16_string( void ) { uint16_t utf16_string_equal[ 6 ] = { 'e', 'q', 'u', 'a', 'l', 0 }; uint16_t utf16_string_greater[ 7 ] = { 'g', 'r', 'e', 'a', 't', 'e', 'r' }; uint16_t utf16_string_less[ 4 ] = { 'l', 'e', 's', 's' }; uint16_t utf16_string_more[ 4 ] = { 'm', 'o', 'r', 'e' }; libcerror_error_t *error = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "equal", 6, utf16_string_equal, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_EQUAL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "equal", 6, utf16_string_equal, 6, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_EQUAL ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "great", 6, utf16_string_greater, 7, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_GREATER ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "less", 5, utf16_string_more, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_GREATER ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "more", 5, utf16_string_less, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_LESS ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "lesser", 7, utf16_string_less, 4, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, LIBUNA_COMPARE_LESS ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_name_compare_with_utf16_string( NULL, 6, utf16_string_equal, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "equal", (size_t) SSIZE_MAX + 1, utf16_string_equal, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "equal", 6, NULL, 5, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_name_compare_with_utf16_string( (uint8_t *) "equal", 6, utf16_string_equal, (size_t) SSIZE_MAX + 1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_name_case_folding_mappings", fsapfs_test_name_case_folding_mappings ); FSAPFS_TEST_RUN( "libfsapfs_name_decomposition_mappings", fsapfs_test_name_decomposition_mappings ); FSAPFS_TEST_RUN( "libfsapfs_name_compare_with_utf8_string", fsapfs_test_name_compare_with_utf8_string ); FSAPFS_TEST_RUN( "libfsapfs_name_compare_with_utf16_string", fsapfs_test_name_compare_with_utf16_string ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_container_reaper.c0000664000175000017500000011273413426640002025257 0ustar00lordyestalordyesta00000000000000/* * Library container_reaper type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_container_reaper.h" uint8_t fsapfs_test_container_reaper_data1[ 4096 ] = { 0x11, 0x03, 0xb3, 0x7f, 0x49, 0xe9, 0x4c, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_container_reaper_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_reaper_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_container_reaper_t *container_reaper = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_container_reaper_initialize( &container_reaper, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_reaper_free( &container_reaper, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_reaper_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); container_reaper = (libfsapfs_container_reaper_t *) 0x12345678UL; result = libfsapfs_container_reaper_initialize( &container_reaper, &error ); container_reaper = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_container_reaper_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_container_reaper_initialize( &container_reaper, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( container_reaper != NULL ) { libfsapfs_container_reaper_free( &container_reaper, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_container_reaper_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_container_reaper_initialize( &container_reaper, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( container_reaper != NULL ) { libfsapfs_container_reaper_free( &container_reaper, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container_reaper != NULL ) { libfsapfs_container_reaper_free( &container_reaper, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_reaper_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_reaper_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_container_reaper_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_container_reaper_read_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_reaper_read_file_io_handle( void ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_container_reaper_t *container_reaper = NULL; int result = 0; /* Initialize test */ result = libfsapfs_container_reaper_initialize( &container_reaper, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Initialize file IO handle */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_container_reaper_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_container_reaper_read_file_io_handle( container_reaper, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_reaper_read_file_io_handle( NULL, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_reaper_read_file_io_handle( container_reaper, NULL, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_reaper_read_file_io_handle( container_reaper, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up file IO handle */ result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test data too small */ result = fsapfs_test_open_file_io_handle( &file_io_handle, fsapfs_test_container_reaper_data1, 8, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_reaper_read_file_io_handle( container_reaper, file_io_handle, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = fsapfs_test_close_file_io_handle( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* TODO: test data invalid */ /* Clean up */ result = libfsapfs_container_reaper_free( &container_reaper, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } if( container_reaper != NULL ) { libfsapfs_container_reaper_free( &container_reaper, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_reaper_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_reaper_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_container_reaper_t *container_reaper = NULL; int result = 0; /* Initialize test */ result = libfsapfs_container_reaper_initialize( &container_reaper, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_container_reaper_read_data( container_reaper, fsapfs_test_container_reaper_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_reaper_read_data( NULL, fsapfs_test_container_reaper_data1, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_reaper_read_data( container_reaper, NULL, 4096, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_reaper_read_data( container_reaper, fsapfs_test_container_reaper_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_reaper_read_data( container_reaper, fsapfs_test_container_reaper_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_container_reaper_free( &container_reaper, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container_reaper", container_reaper ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container_reaper != NULL ) { libfsapfs_container_reaper_free( &container_reaper, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_container_reaper_initialize", fsapfs_test_container_reaper_initialize ); FSAPFS_TEST_RUN( "libfsapfs_container_reaper_free", fsapfs_test_container_reaper_free ); FSAPFS_TEST_RUN( "libfsapfs_container_reaper_read_file_io_handle", fsapfs_test_container_reaper_read_file_io_handle ); FSAPFS_TEST_RUN( "libfsapfs_container_reaper_read_data", fsapfs_test_container_reaper_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_container.c0000664000175000017500000007020213426640002023712 0ustar00lordyestalordyesta00000000000000/* * Library container type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_functions.h" #include "fsapfs_test_getopt.h" #include "fsapfs_test_libbfio.h" #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libclocale.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_libuna.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "../libfsapfs/libfsapfs_container.h" #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) && SIZEOF_WCHAR_T != 2 && SIZEOF_WCHAR_T != 4 #error Unsupported size of wchar_t #endif /* Define to make fsapfs_test_container generate verbose output #define FSAPFS_TEST_CONTAINER_VERBOSE */ #if !defined( LIBFSAPFS_HAVE_BFIO ) LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ /* Creates and opens a source container * Returns 1 if successful or -1 on error */ int fsapfs_test_container_open_source( libfsapfs_container_t **container, libbfio_handle_t *file_io_handle, libcerror_error_t **error ) { static char *function = "fsapfs_test_container_open_source"; int result = 0; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libfsapfs_container_initialize( container, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize container.", function ); goto on_error; } result = libfsapfs_container_open_file_io_handle( *container, file_io_handle, LIBFSAPFS_OPEN_READ, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open container.", function ); goto on_error; } return( 1 ); on_error: if( *container != NULL ) { libfsapfs_container_free( container, NULL ); } return( -1 ); } /* Closes and frees a source container * Returns 1 if successful or -1 on error */ int fsapfs_test_container_close_source( libfsapfs_container_t **container, libcerror_error_t **error ) { static char *function = "fsapfs_test_container_close_source"; int result = 0; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } if( libfsapfs_container_close( *container, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close container.", function ); result = -1; } if( libfsapfs_container_free( container, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free container.", function ); result = -1; } return( result ); } /* Tests the libfsapfs_container_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_container_t *container = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_container_initialize( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_free( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); container = (libfsapfs_container_t *) 0x12345678UL; result = libfsapfs_container_initialize( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); container = NULL; #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_container_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_container_initialize( &container, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( container != NULL ) { libfsapfs_container_free( &container, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_container_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_container_initialize( &container, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( container != NULL ) { libfsapfs_container_free( &container, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container != NULL ) { libfsapfs_container_free( &container, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_container_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_container_open function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_open( const system_character_t *source ) { char narrow_source[ 256 ]; libcerror_error_t *error = NULL; libfsapfs_container_t *container = NULL; int result = 0; /* Initialize test */ result = fsapfs_test_get_narrow_source( source, narrow_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_initialize( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open */ result = libfsapfs_container_open( container, narrow_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_open( container, narrow_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_container_free( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container != NULL ) { libfsapfs_container_free( &container, NULL ); } return( 0 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Tests the libfsapfs_container_open_wide function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_open_wide( const system_character_t *source ) { wchar_t wide_source[ 256 ]; libcerror_error_t *error = NULL; libfsapfs_container_t *container = NULL; int result = 0; /* Initialize test */ result = fsapfs_test_get_wide_source( source, wide_source, 256, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_initialize( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open */ result = libfsapfs_container_open_wide( container, wide_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_open_wide( container, wide_source, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_container_free( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container != NULL ) { libfsapfs_container_free( &container, NULL ); } return( 0 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Tests the libfsapfs_container_open_file_io_handle function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_open_file_io_handle( const system_character_t *source ) { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_container_t *container = NULL; size_t string_length = 0; int result = 0; /* Initialize test */ result = libbfio_file_initialize( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); string_length = system_string_length( source ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libbfio_file_set_name_wide( file_io_handle, source, string_length, &error ); #else result = libbfio_file_set_name( file_io_handle, source, string_length, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_initialize( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_container_open_file_io_handle( container, file_io_handle, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_open_file_io_handle( NULL, file_io_handle, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_open_file_io_handle( container, NULL, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_open_file_io_handle( container, file_io_handle, -1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Test open when already opened */ result = libfsapfs_container_open_file_io_handle( container, file_io_handle, LIBFSAPFS_OPEN_READ, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_container_free( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_handle_free( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container != NULL ) { libfsapfs_container_free( &container, NULL ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_close function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_close( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_container_close( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_container_open and libfsapfs_container_close functions * Returns 1 if successful or 0 if not */ int fsapfs_test_container_open_close( const system_character_t *source ) { libcerror_error_t *error = NULL; libfsapfs_container_t *container = NULL; int result = 0; /* Initialize test */ result = libfsapfs_container_initialize( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open and close */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_container_open_wide( container, source, LIBFSAPFS_OPEN_READ, &error ); #else result = libfsapfs_container_open( container, source, LIBFSAPFS_OPEN_READ, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_close( container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test open and close a second time to validate clean up on close */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_container_open_wide( container, source, LIBFSAPFS_OPEN_READ, &error ); #else result = libfsapfs_container_open( container, source, LIBFSAPFS_OPEN_READ, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_container_close( container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Clean up */ result = libfsapfs_container_free( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container != NULL ) { libfsapfs_container_free( &container, NULL ); } return( 0 ); } /* Tests the libfsapfs_container_signal_abort function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_signal_abort( libfsapfs_container_t *container ) { libcerror_error_t *error = NULL; int result = 0; /* Test regular cases */ result = libfsapfs_container_signal_abort( container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_signal_abort( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_container_get_size function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_get_size( libfsapfs_container_t *container ) { libcerror_error_t *error = NULL; size64_t size = 0; int result = 0; /* Test regular cases */ result = libfsapfs_container_get_size( container, &size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_get_size( NULL, &size, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_get_size( container, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_container_get_number_of_volumes function * Returns 1 if successful or 0 if not */ int fsapfs_test_container_get_number_of_volumes( libfsapfs_container_t *container ) { libcerror_error_t *error = NULL; int number_of_volumes = 0; int result = 0; /* Test regular cases */ result = libfsapfs_container_get_number_of_volumes( container, &number_of_volumes, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_container_get_number_of_volumes( NULL, &number_of_volumes, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_container_get_number_of_volumes( container, NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc, wchar_t * const argv[] ) #else int main( int argc, char * const argv[] ) #endif { libbfio_handle_t *file_io_handle = NULL; libcerror_error_t *error = NULL; libfsapfs_container_t *container = NULL; system_character_t *option_offset = NULL; system_character_t *source = NULL; system_integer_t option = 0; size_t string_length = 0; off64_t volume_offset = 0; int result = 0; while( ( option = fsapfs_test_getopt( argc, argv, _SYSTEM_STRING( "o:p:" ) ) ) != (system_integer_t) -1 ) { switch( option ) { case (system_integer_t) '?': default: fprintf( stderr, "Invalid argument: %" PRIs_SYSTEM ".\n", argv[ optind - 1 ] ); return( EXIT_FAILURE ); case (system_integer_t) 'o': option_offset = optarg; break; case (system_integer_t) 'p': break; } } if( optind < argc ) { source = argv[ optind ]; } if( option_offset != NULL ) { string_length = system_string_length( option_offset ); result = fsapfs_test_system_string_copy_from_64_bit_in_decimal( option_offset, string_length + 1, (uint64_t *) &volume_offset, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } #if defined( HAVE_DEBUG_OUTPUT ) && defined( FSAPFS_TEST_CONTAINER_VERBOSE ) libfsapfs_notify_set_verbose( 1 ); libfsapfs_notify_set_stream( stderr, NULL ); #endif FSAPFS_TEST_RUN( "libfsapfs_container_initialize", fsapfs_test_container_initialize ); FSAPFS_TEST_RUN( "libfsapfs_container_free", fsapfs_test_container_free ); #if !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) if( source != NULL ) { result = libbfio_file_range_initialize( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); string_length = system_string_length( source ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libbfio_file_range_set_name_wide( file_io_handle, source, string_length, &error ); #else result = libbfio_file_range_set_name( file_io_handle, source, string_length, &error ); #endif FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_file_range_set( file_io_handle, volume_offset, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_check_container_signature_file_io_handle( file_io_handle, &error ); FSAPFS_TEST_ASSERT_NOT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } if( ( result != 0 ) && ( volume_offset == 0 ) ) { FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_container_open", fsapfs_test_container_open, source ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_container_open_wide", fsapfs_test_container_open_wide, source ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_container_open_file_io_handle", fsapfs_test_container_open_file_io_handle, source ); FSAPFS_TEST_RUN( "libfsapfs_container_close", fsapfs_test_container_close ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_container_open_close", fsapfs_test_container_open_close, source ); } if( result != 0 ) { /* Initialize test */ result = fsapfs_test_container_open_source( &container, file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_container_signal_abort", fsapfs_test_container_signal_abort, container ); #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* TODO: add tests for libfsapfs_internal_container_open_read */ #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_container_get_size", fsapfs_test_container_get_size, container ); /* TODO: add tests for libfsapfs_container_get_identifier */ FSAPFS_TEST_RUN_WITH_ARGS( "libfsapfs_container_get_number_of_volumes", fsapfs_test_container_get_number_of_volumes, container ); /* TODO: add tests for libfsapfs_container_get_volume_by_index */ /* Clean up */ result = fsapfs_test_container_close_source( &container, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 0 ); FSAPFS_TEST_ASSERT_IS_NULL( "container", container ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libbfio_handle_free( &file_io_handle, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "file_io_handle", file_io_handle ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); } #endif /* !defined( __BORLANDC__ ) || ( __BORLANDC__ >= 0x0560 ) */ return( EXIT_SUCCESS ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( container != NULL ) { fsapfs_test_container_close_source( &container, NULL ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( EXIT_FAILURE ); } libfsapfs-20190210/tests/fsapfs_test_btree_node_header.c0000664000175000017500000002237713426640002025360 0ustar00lordyestalordyesta00000000000000/* * Library btree_node_header type test program * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfs_test_libcerror.h" #include "fsapfs_test_libfsapfs.h" #include "fsapfs_test_macros.h" #include "fsapfs_test_memory.h" #include "fsapfs_test_unused.h" #include "../libfsapfs/libfsapfs_btree_node_header.h" uint8_t fsapfs_test_btree_node_header_data1[ 24 ] = { 0x07, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x20, 0x00, 0xa0, 0x0d, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00 }; #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) /* Tests the libfsapfs_btree_node_header_initialize function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_header_initialize( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_node_header_t *btree_node_header = NULL; int result = 0; #if defined( HAVE_FSAPFS_TEST_MEMORY ) int number_of_malloc_fail_tests = 1; int number_of_memset_fail_tests = 1; int test_number = 0; #endif /* Test regular cases */ result = libfsapfs_btree_node_header_initialize( &btree_node_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_node_header", btree_node_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); result = libfsapfs_btree_node_header_free( &btree_node_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node_header", btree_node_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_header_initialize( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); btree_node_header = (libfsapfs_btree_node_header_t *) 0x12345678UL; result = libfsapfs_btree_node_header_initialize( &btree_node_header, &error ); btree_node_header = NULL; FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); #if defined( HAVE_FSAPFS_TEST_MEMORY ) for( test_number = 0; test_number < number_of_malloc_fail_tests; test_number++ ) { /* Test libfsapfs_btree_node_header_initialize with malloc failing */ fsapfs_test_malloc_attempts_before_fail = test_number; result = libfsapfs_btree_node_header_initialize( &btree_node_header, &error ); if( fsapfs_test_malloc_attempts_before_fail != -1 ) { fsapfs_test_malloc_attempts_before_fail = -1; if( btree_node_header != NULL ) { libfsapfs_btree_node_header_free( &btree_node_header, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node_header", btree_node_header ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } for( test_number = 0; test_number < number_of_memset_fail_tests; test_number++ ) { /* Test libfsapfs_btree_node_header_initialize with memset failing */ fsapfs_test_memset_attempts_before_fail = test_number; result = libfsapfs_btree_node_header_initialize( &btree_node_header, &error ); if( fsapfs_test_memset_attempts_before_fail != -1 ) { fsapfs_test_memset_attempts_before_fail = -1; if( btree_node_header != NULL ) { libfsapfs_btree_node_header_free( &btree_node_header, NULL ); } } else { FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node_header", btree_node_header ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); } } #endif /* defined( HAVE_FSAPFS_TEST_MEMORY ) */ return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_node_header != NULL ) { libfsapfs_btree_node_header_free( &btree_node_header, NULL ); } return( 0 ); } /* Tests the libfsapfs_btree_node_header_free function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_header_free( void ) { libcerror_error_t *error = NULL; int result = 0; /* Test error cases */ result = libfsapfs_btree_node_header_free( NULL, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } return( 0 ); } /* Tests the libfsapfs_btree_node_header_read_data function * Returns 1 if successful or 0 if not */ int fsapfs_test_btree_node_header_read_data( void ) { libcerror_error_t *error = NULL; libfsapfs_btree_node_header_t *btree_node_header = NULL; int result = 0; /* Initialize test */ result = libfsapfs_btree_node_header_initialize( &btree_node_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "btree_node_header", btree_node_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test regular cases */ result = libfsapfs_btree_node_header_read_data( btree_node_header, fsapfs_test_btree_node_header_data1, 24, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); /* Test error cases */ result = libfsapfs_btree_node_header_read_data( NULL, fsapfs_test_btree_node_header_data1, 24, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_header_read_data( btree_node_header, NULL, 24, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_header_read_data( btree_node_header, fsapfs_test_btree_node_header_data1, (size_t) SSIZE_MAX + 1, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); result = libfsapfs_btree_node_header_read_data( btree_node_header, fsapfs_test_btree_node_header_data1, 0, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, -1 ); FSAPFS_TEST_ASSERT_IS_NOT_NULL( "error", error ); libcerror_error_free( &error ); /* Clean up */ result = libfsapfs_btree_node_header_free( &btree_node_header, &error ); FSAPFS_TEST_ASSERT_EQUAL_INT( "result", result, 1 ); FSAPFS_TEST_ASSERT_IS_NULL( "btree_node_header", btree_node_header ); FSAPFS_TEST_ASSERT_IS_NULL( "error", error ); return( 1 ); on_error: if( error != NULL ) { libcerror_error_free( &error ); } if( btree_node_header != NULL ) { libfsapfs_btree_node_header_free( &btree_node_header, NULL ); } return( 0 ); } #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, wchar_t * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #else int main( int argc FSAPFS_TEST_ATTRIBUTE_UNUSED, char * const argv[] FSAPFS_TEST_ATTRIBUTE_UNUSED ) #endif { FSAPFS_TEST_UNREFERENCED_PARAMETER( argc ) FSAPFS_TEST_UNREFERENCED_PARAMETER( argv ) #if defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) FSAPFS_TEST_RUN( "libfsapfs_btree_node_header_initialize", fsapfs_test_btree_node_header_initialize ); FSAPFS_TEST_RUN( "libfsapfs_btree_node_header_free", fsapfs_test_btree_node_header_free ); FSAPFS_TEST_RUN( "libfsapfs_btree_node_header_read_data", fsapfs_test_btree_node_header_read_data ); #endif /* defined( __GNUC__ ) && !defined( LIBFSAPFS_DLL_IMPORT ) */ return( EXIT_SUCCESS ); on_error: return( EXIT_FAILURE ); } libfsapfs-20190210/libclocale/0000775000175000017500000000000013430101367020112 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libclocale/libclocale_wide_string.h0000664000175000017500000000324213430101170024743 0ustar00lordyestalordyesta00000000000000/* * Wide character string functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_WIDE_STRING_H ) #define _LIBCLOCALE_WIDE_STRING_H #include #include #include #if defined( __cplusplus ) extern "C" { #endif #if !defined( wide_string_compare_no_case ) #define wide_string_compare_no_case( string1, string2, size ) \ libclocale_wide_string_compare_no_case( string1, string2, size ) #endif /* !defined( wide_string_compare_no_case ) */ #if defined( TOWLOWER ) && !defined( HAVE_WCSNCASECMP ) && !defined( HAVE_WCSCASECMP ) && !defined( WINAPI ) int libclocale_wide_string_compare_no_case( const wchar_t *string1, const wchar_t *string2, size_t comparision_length ); #endif /* defined( TOWLOWER ) && !defined( HAVE_WCSNCASECMP ) && !defined( HAVE_WCSCASECMP ) && !defined( WINAPI ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCLOCALE_WIDE_STRING_H ) */ libfsapfs-20190210/libclocale/libclocale_support.c0000664000175000017500000000577713430101170024153 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_LIBINTL_H ) #include #endif #include "libclocale_codepage.h" #include "libclocale_definitions.h" #include "libclocale_libcerror.h" #include "libclocale_locale.h" #include "libclocale_support.h" #if !defined( HAVE_LOCAL_LIBCLOCALE ) /* Returns the library version as a string */ const char *libclocale_get_version( void ) { return( (const char *) LIBCLOCALE_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBCLOCALE ) */ /* Initializes the locale values * Returns 1 if successful or -1 on error */ int libclocale_initialize( const char *domain_name, libcerror_error_t **error ) { static char *function = "libclocale_initialize"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int codepage = 0; #endif if( domain_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid domain name.", function ); return( -1 ); } #if defined( HAVE_BINDTEXTDOMAIN ) && defined( HAVE_TEXTDOMAIN ) if( bindtextdomain( domain_name, LOCALEDIR ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to bind text domain.", function ); return( -1 ); } if( textdomain( domain_name ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set text domain.", function ); return( -1 ); } #endif /* defined( HAVE_BINDTEXTDOMAIN ) && defined( HAVE_TEXTDOMAIN ) */ #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_locale_get_codepage( &codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve codepage.", function ); return( -1 ); } if( libclocale_codepage_set( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set codepage.", function ); return( -1 ); } #endif /* !defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } libfsapfs-20190210/libclocale/libclocale_locale.h0000664000175000017500000000326713430101170023673 0ustar00lordyestalordyesta00000000000000/* * Locale functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_LOCALE_H ) #define _LIBCLOCALE_LOCALE_H #include #include #include "libclocale_extern.h" #include "libclocale_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( WINAPI ) && ( WINVER < 0x0500 ) int libclocale_GetLocaleInfo( LCID locale_identifier, LCTYPE locale_type, LPSTR buffer, int size ); #endif /* defined( WINAPI ) && ( WINVER < 0x0500 ) */ int libclocale_locale_get_codepage_from_charset( int *codepage, char *charset, size_t charset_length, libcerror_error_t **error ); LIBCLOCALE_EXTERN \ int libclocale_locale_get_codepage( int *codepage, libcerror_error_t **error ); LIBCLOCALE_EXTERN \ int libclocale_locale_get_decimal_point( int *decimal_point, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCLOCALE_LOCALE_H ) */ libfsapfs-20190210/libclocale/Makefile.am0000664000175000017500000000134713430101170022143 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCLOCALE AM_CPPFLAGS = \ -DLOCALEDIR=\"$(datadir)/locale\" \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libclocale.la libclocale_la_SOURCES = \ libclocale_codepage.c libclocale_codepage.h \ libclocale_definitions.h \ libclocale_extern.h \ libclocale_libcerror.h \ libclocale_locale.c libclocale_locale.h \ libclocale_support.c libclocale_support.h \ libclocale_unused.h \ libclocale_wide_string.c libclocale_wide_string.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libclocale ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libclocale_la_SOURCES) libfsapfs-20190210/libclocale/libclocale_locale.c0000664000175000017500000002466113430101170023667 0ustar00lordyestalordyesta00000000000000/* * Locale functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520 #include #elif defined( HAVE_LOCALE_H ) #include #endif #if defined( HAVE_LANGINFO_H ) #include #endif #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "libclocale_definitions.h" #include "libclocale_codepage.h" #include "libclocale_locale.h" #if defined( WINAPI ) && ( WINVER < 0x0500 ) /* Cross Windows safe version of GetLocaleInfoA * Returns the number of bytes read if successful or 0 on error */ int libclocale_GetLocaleInfoA( LCID locale_identifier, LCTYPE locale_type, LPSTR buffer, int size ) { FARPROC function = NULL; HMODULE library_handle = NULL; int result = 0; library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( 0 ); } function = GetProcAddress( library_handle, (LPCSTR) "GetLocaleInfoA" ); if( function != NULL ) { result = function( locale_identifier, locale_type, buffer, size ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = 0; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER < 0x0500 ) */ /* Retrieves the codepage from the locale character set * The codepage is set to 0 if the character set is UTF-8 * and will default to LIBCLOCALE_CODEPAGE_ASCII the codepage cannot be determined * Returns 1 if successful or -1 on error */ int libclocale_locale_get_codepage_from_charset( int *codepage, char *charset, size_t charset_length, libcerror_error_t **error ) { static char *function = "libclocale_locale_get_codepage_from_charset"; if( codepage == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid codepage.", function ); return( -1 ); } if( charset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid charset.", function ); return( -1 ); } if( charset_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid charset length value exceeds maximum.", function ); return( -1 ); } /* Determine codepage */ *codepage = -1; if( *codepage == -1 ) { if( charset_length == 5 ) { if( narrow_string_compare_no_case( "UTF-8", charset, 5 ) == 0 ) { *codepage = 0; } } } if( *codepage == -1 ) { if( charset_length >= 3 ) { if( narrow_string_compare( "874", charset, 3 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_874; } else if( narrow_string_compare( "932", charset, 3 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_932; } else if( narrow_string_compare( "936", charset, 3 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_936; } else if( narrow_string_compare( "949", charset, 3 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_949; } else if( narrow_string_compare( "950", charset, 3 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_950; } } } if( *codepage == -1 ) { if( charset_length >= 4 ) { if( narrow_string_compare( "1250", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1250; } else if( narrow_string_compare( "1251", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1251; } else if( narrow_string_compare( "1252", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1252; } else if( narrow_string_compare( "1253", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1253; } else if( narrow_string_compare( "1254", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1254; } else if( narrow_string_compare( "1255", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1255; } else if( narrow_string_compare( "1256", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1256; } else if( narrow_string_compare( "1257", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1257; } else if( narrow_string_compare( "1258", charset, 4 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1258; } else if( narrow_string_compare_no_case( "utf8", charset, 4 ) == 0 ) { *codepage = 0; } } } if( *codepage == -1 ) { *codepage = LIBCLOCALE_CODEPAGE_ASCII; } return( 1 ); } /* Retrieves the codepage for the locale character set * The codepage is set to 0 if the character set is UTF-8 * and will default to LIBCLOCALE_CODEPAGE_ASCII the codepage cannot be determined * Returns 1 if successful or -1 on error */ int libclocale_locale_get_codepage( int *codepage, libcerror_error_t **error ) { char *locale = NULL; char *charset = NULL; static char *function = "libclocale_locale_get_codepage"; size_t charset_length = 0; size_t locale_length = 0; if( codepage == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid codepage.", function ); return( -1 ); } #if defined( HAVE_LANGINFO_CODESET ) charset = nl_langinfo( CODESET ); #endif if( ( charset != NULL ) && ( charset[ 0 ] != 0 ) ) { charset_length = narrow_string_length( charset ); } else { #if defined( HAVE_SETLOCALE ) || ( defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520 ) locale = setlocale( LC_CTYPE, "" ); /* Check if the locale returned is not "C" */ if( ( locale != NULL ) && ( locale[ 0 ] != 0 ) ) { if( ( locale[ 0 ] == 'C' ) && ( locale[ 1 ] != 0 ) ) { locale = NULL; } } #endif #if defined( HAVE_GETENV ) || defined( WINAPI ) /* Check if the locale can be determined from the environment variables */ if( ( locale == NULL ) || ( locale[ 0 ] == 0 ) ) { locale = getenv( "LC_ALL" ); } if( ( locale == NULL ) || ( locale[ 0 ] == 0 ) ) { locale = getenv( "LC_TYPE" ); } if( ( locale == NULL ) || ( locale[ 0 ] == 0 ) ) { locale = getenv( "LANG" ); } #endif if( ( locale == NULL ) || ( locale[ 0 ] == 0 ) ) { *codepage = LIBCLOCALE_CODEPAGE_ASCII; return( 1 ); } locale_length = narrow_string_length( locale ); charset = narrow_string_search_character( locale, '.', locale_length + 1 ); if( charset == NULL ) { *codepage = LIBCLOCALE_CODEPAGE_ASCII; return( 1 ); } charset++; charset_length = locale_length - (size_t) ( charset - locale ); } if( libclocale_locale_get_codepage_from_charset( codepage, charset, charset_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve codepage.", function ); return( -1 ); } return( 1 ); } /* Retrieves the decimal point * Returns 1 if successful or -1 on error */ int libclocale_locale_get_decimal_point( int *decimal_point, libcerror_error_t **error ) { static char *function = "libclocale_locale_get_decimal_point"; #if defined( WINAPI ) DWORD error_code = 0; DWORD locale_data = 0; int read_count = 0; #else struct lconv *locale_data = NULL; #endif if( decimal_point == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid decimal point.", function ); return( -1 ); } *decimal_point = -1; #if defined( WINAPI ) #if ( WINVER >= 0x0600 ) read_count = GetLocaleInfoEx( LOCALE_NAME_USER_DEFAULT, LOCALE_SDECIMAL, (LPWSTR) &locale_data, sizeof( DWORD ) / sizeof( wchar_t ) ); #elif ( WINVER >= 0x0500 ) read_count = GetLocaleInfoA( LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, (LPSTR) &locale_data, sizeof( DWORD ) / sizeof( char ) ); #else read_count = libclocale_GetLocaleInfoA( LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, (LPSTR) &locale_data, sizeof( DWORD ) / sizeof( char ) ); #endif if( read_count == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, error_code, "%s: unable to retrieve locale information.", function ); return( -1 ); } *decimal_point = (int) locale_data; #else locale_data = localeconv(); if( locale_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid locale data.", function ); return( -1 ); } if( locale_data->decimal_point == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid locale data - missing decimal point.", function ); return( -1 ); } *decimal_point = ( locale_data->decimal_point )[ 0 ]; #endif return( 1 ); } libfsapfs-20190210/libclocale/libclocale_extern.h0000664000175000017500000000273613430101170023741 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_INTERNAL_EXTERN_H ) #define _LIBCLOCALE_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if !defined( HAVE_LOCAL_LIBCLOCALE ) /* If libtool DLL support is enabled set LIBCLOCALE_DLL_EXPORT * before including libclocale/extern.h */ #if defined( _WIN32 ) && defined( DLL_EXPORT ) #define LIBCLOCALE_DLL_EXPORT #endif #include #define LIBCLOCALE_EXTERN_VARIABLE LIBCLOCALE_EXTERN #else #define LIBCLOCALE_EXTERN /* extern */ #define LIBCLOCALE_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _LIBCLOCALE_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libclocale/libclocale_unused.h0000664000175000017500000000256613430101170023740 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_INTERNAL_UNUSED_H ) #define _LIBCLOCALE_INTERNAL_UNUSED_H #include #if !defined( LIBCLOCALE_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCLOCALE_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCLOCALE_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCLOCALE_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCLOCALE_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCLOCALE_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libclocale/libclocale_support.h0000664000175000017500000000260613430101170024144 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_SUPPORT_H ) #define _LIBCLOCALE_SUPPORT_H #include #include #include #include "libclocale_extern.h" #include "libclocale_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCLOCALE ) LIBCLOCALE_EXTERN \ const char *libclocale_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBCLOCALE ) */ LIBCLOCALE_EXTERN \ int libclocale_initialize( const char *domain_name, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCLOCALE_SUPPORT_H ) */ libfsapfs-20190210/libclocale/libclocale_definitions.h0000664000175000017500000000652613430101170024750 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_INTERNAL_DEFINITIONS_H ) #define _LIBCLOCALE_INTERNAL_DEFINITIONS_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if !defined( HAVE_LOCAL_LIBCLOCALE ) #include /* The definitions in are copied here * for local use of libclocale */ #else #define LIBCLOCALE_VERSION 20180721 /* The libclocale version string */ #define LIBCLOCALE_VERSION_STRING "20180721" /* The codepage feature flag definitions */ enum LIBCLOCALE_CODEPAGES_FEATURE_FLAGS { LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_ISO_8859 = 0x00000001UL, LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_KOI8 = 0x00000002UL, LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_WINDOWS = 0x00000004UL, }; /* The codepage set definitions */ enum LIBCLOCALE_CODEPAGES_SETS { LIBCLOCALE_CODEPAGE_SET_GENERIC = 1, LIBCLOCALE_CODEPAGE_SET_ISO_8859 = (int) 'i', LIBCLOCALE_CODEPAGE_SET_KOI8 = (int) 'k', LIBCLOCALE_CODEPAGE_SET_WINDOWS = (int) 'w' }; /* The codepage definitions */ enum LIBCLOCALE_CODEPAGES { LIBCLOCALE_CODEPAGE_ASCII = 20127, LIBCLOCALE_CODEPAGE_ISO_8859_1 = 28591, LIBCLOCALE_CODEPAGE_ISO_8859_2 = 28592, LIBCLOCALE_CODEPAGE_ISO_8859_3 = 28593, LIBCLOCALE_CODEPAGE_ISO_8859_4 = 28594, LIBCLOCALE_CODEPAGE_ISO_8859_5 = 28595, LIBCLOCALE_CODEPAGE_ISO_8859_6 = 28596, LIBCLOCALE_CODEPAGE_ISO_8859_7 = 28597, LIBCLOCALE_CODEPAGE_ISO_8859_8 = 28598, LIBCLOCALE_CODEPAGE_ISO_8859_9 = 28599, LIBCLOCALE_CODEPAGE_ISO_8859_10 = 28600, LIBCLOCALE_CODEPAGE_ISO_8859_11 = 28601, LIBCLOCALE_CODEPAGE_ISO_8859_13 = 28603, LIBCLOCALE_CODEPAGE_ISO_8859_14 = 28604, LIBCLOCALE_CODEPAGE_ISO_8859_15 = 28605, LIBCLOCALE_CODEPAGE_ISO_8859_16 = 28606, LIBCLOCALE_CODEPAGE_KOI8_R = 20866, LIBCLOCALE_CODEPAGE_KOI8_U = 21866, LIBCLOCALE_CODEPAGE_WINDOWS_874 = 874, LIBCLOCALE_CODEPAGE_WINDOWS_932 = 932, LIBCLOCALE_CODEPAGE_WINDOWS_936 = 936, LIBCLOCALE_CODEPAGE_WINDOWS_949 = 949, LIBCLOCALE_CODEPAGE_WINDOWS_950 = 950, LIBCLOCALE_CODEPAGE_WINDOWS_1250 = 1250, LIBCLOCALE_CODEPAGE_WINDOWS_1251 = 1251, LIBCLOCALE_CODEPAGE_WINDOWS_1252 = 1252, LIBCLOCALE_CODEPAGE_WINDOWS_1253 = 1253, LIBCLOCALE_CODEPAGE_WINDOWS_1254 = 1254, LIBCLOCALE_CODEPAGE_WINDOWS_1255 = 1255, LIBCLOCALE_CODEPAGE_WINDOWS_1256 = 1256, LIBCLOCALE_CODEPAGE_WINDOWS_1257 = 1257, LIBCLOCALE_CODEPAGE_WINDOWS_1258 = 1258 }; #endif /* !defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _LIBCLOCALE_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libclocale/libclocale_codepage.h0000664000175000017500000000360113430101170024173 0ustar00lordyestalordyesta00000000000000/* * Codepage functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_CODEPAGE_H ) #define _LIBCLOCALE_CODEPAGE_H #include #include #include "libclocale_extern.h" #include "libclocale_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( __CYGWIN__ ) extern int libclocale_codepage; #else int libclocale_codepage; #endif LIBCLOCALE_EXTERN \ int libclocale_codepage_get( int *codepage, libcerror_error_t **error ); LIBCLOCALE_EXTERN \ int libclocale_codepage_set( int codepage, libcerror_error_t **error ); LIBCLOCALE_EXTERN \ int libclocale_codepage_copy_from_string( int *codepage, const char *string, size_t string_length, uint32_t feature_flags, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBCLOCALE_EXTERN \ int libclocale_codepage_copy_from_string_wide( int *codepage, const wchar_t *string, size_t string_length, uint32_t feature_flags, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCLOCALE_CODEPAGE_H ) */ libfsapfs-20190210/libclocale/libclocale_codepage.c0000664000175000017500000005105313430101170024172 0ustar00lordyestalordyesta00000000000000/* * Codepage functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libclocale_codepage.h" #include "libclocale_definitions.h" #include "libclocale_libcerror.h" #include "libclocale_wide_string.h" /* If the codepage is not set strings are formatted using UTF-8 */ #if defined( WINAPI ) int libclocale_codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1252; #else int libclocale_codepage = 0; #endif /* Retrieves the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libclocale_codepage_get( int *codepage, libcerror_error_t **error ) { static char *function = "libclocale_codepage_get"; if( codepage == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid codepage.", function ); return( -1 ); } *codepage = libclocale_codepage; return( 1 ); } /* Sets the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libclocale_codepage_set( int codepage, libcerror_error_t **error ) { static char *function = "libclocale_codepage_set"; if( ( codepage != LIBCLOCALE_CODEPAGE_ASCII ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_1 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_2 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_3 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_4 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_5 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_6 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_7 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_8 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_9 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_10 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_11 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_13 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_14 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_15 ) && ( codepage != LIBCLOCALE_CODEPAGE_ISO_8859_16 ) && ( codepage != LIBCLOCALE_CODEPAGE_KOI8_R ) && ( codepage != LIBCLOCALE_CODEPAGE_KOI8_U ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_874 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_932 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_936 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_949 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_950 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1250 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1251 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1252 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1253 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1254 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1256 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1257 ) && ( codepage != LIBCLOCALE_CODEPAGE_WINDOWS_1258 ) && ( codepage != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported codepage.", function ); return( -1 ); } libclocale_codepage = codepage; return( 1 ); } /* Copies the codepage from a string * Returns 1 if successful, 0 if unsupported value or -1 on error */ int libclocale_codepage_copy_from_string( int *codepage, const char *string, size_t string_length, uint32_t feature_flags, libcerror_error_t **error ) { static char *function = "libclocale_codepage_copy_from_string"; size_t string_index = 0; uint32_t supported_flags = 0; int codepage_set = 0; if( codepage == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid codepage.", function ); return( -1 ); } if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string length value exceeds maximum.", function ); return( -1 ); } supported_flags = LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_ISO_8859 | LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_KOI8 | LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_WINDOWS; if( ( feature_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported feature flags value: 0x%08" PRIx32 ".", function, feature_flags ); return( -1 ); } *codepage = -1; if( string_length == 5 ) { if( narrow_string_compare_no_case( string, "ascii", 5 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_ASCII; string_index = 5; } } if( ( feature_flags & LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_ISO_8859 ) != 0 ) { /* Supported string formats: * iso8859-1, iso8859_1, iso-8859-1, iso-8859_1, iso_8859-1, iso_8859_1 */ if( string_length >= 8 ) { if( narrow_string_compare_no_case( string, "iso", 3 ) == 0 ) { string_index = 3; if( ( string[ string_index ] == '-' ) || ( string[ string_index ] == '_' ) ) { string_index++; } if( ( string[ string_index ] == '8' ) && ( string[ string_index + 1 ] == '8' ) && ( string[ string_index + 2 ] == '5' ) && ( string[ string_index + 3 ] == '9' ) ) { string_index += 4; if( string_index < string_length ) { if( ( string[ string_index ] == '-' ) || ( string[ string_index ] == '_' ) ) { string_index++; codepage_set = LIBCLOCALE_CODEPAGE_SET_ISO_8859; } } } } } } if( ( feature_flags & LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_KOI8 ) != 0 ) { /* Supported string formats: * koi8, koi8-r, koi8_r */ if( string_length >= 4 ) { if( narrow_string_compare_no_case( string, "koi8", 4 ) == 0 ) { string_index = 4; codepage_set = LIBCLOCALE_CODEPAGE_SET_KOI8; if( string_index < string_length ) { if( ( string[ string_index ] == '-' ) || ( string[ string_index ] == '_' ) ) { string_index++; } } } } } if( ( feature_flags & LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_WINDOWS ) != 0 ) { /* Supported string formats: * cp1252, ms1252, windows1252, windows-1252, windows_1252 */ if( string_length >= 7 ) { if( narrow_string_compare_no_case( string, "windows", 7 ) == 0 ) { string_index = 7; codepage_set = LIBCLOCALE_CODEPAGE_SET_WINDOWS; if( string_index < string_length ) { if( ( string[ string_index ] == '-' ) || ( string[ string_index ] == '_' ) ) { string_index++; } } } } else if( string_length >= 2 ) { if( narrow_string_compare_no_case( string, "cp", 2 ) == 0 ) { string_index = 2; codepage_set = LIBCLOCALE_CODEPAGE_SET_GENERIC; } else if( narrow_string_compare_no_case( string, "ms", 2 ) == 0 ) { string_index = 2; codepage_set = LIBCLOCALE_CODEPAGE_SET_WINDOWS; } } } if( codepage_set == LIBCLOCALE_CODEPAGE_SET_ISO_8859 ) { if( ( string_index + 1 ) == string_length ) { switch( string[ string_index ] ) { case '1': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_1; break; case '2': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_2; break; case '3': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_3; break; case '4': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_4; break; case '5': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_5; break; case '6': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_6; break; case '7': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_7; break; case '8': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_8; break; case '9': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_9; break; default: break; } } else if( ( string_index + 2 ) == string_length ) { if( string[ string_index ] == '1' ) { string_index++; switch( string[ string_index ] ) { case '0': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_10; break; case '1': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_11; break; case '3': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_13; break; case '4': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_14; break; case '5': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_15; break; case '6': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_16; break; default: break; } } } } if( codepage_set == LIBCLOCALE_CODEPAGE_SET_KOI8 ) { if( ( string_index + 1 ) == string_length ) { switch( string[ string_index ] ) { case 'r': case 'R': *codepage = LIBCLOCALE_CODEPAGE_KOI8_R; break; case 'u': case 'U': *codepage = LIBCLOCALE_CODEPAGE_KOI8_U; break; default: break; } } } if( ( codepage_set == LIBCLOCALE_CODEPAGE_SET_GENERIC ) || ( codepage_set == LIBCLOCALE_CODEPAGE_SET_WINDOWS ) ) { if( ( string_index + 3 ) == string_length ) { switch( string[ string_index ] ) { case '8': if( ( string[ string_index + 1 ] == '7' ) && ( string[ string_index + 2 ] == '4' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_874; } break; case '9': if( ( string[ string_index + 1 ] == '3' ) && ( string[ string_index + 2 ] == '2' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_932; } else if( ( string[ string_index + 1 ] == '3' ) && ( string[ string_index + 2 ] == '6' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_936; } else if( ( string[ string_index + 1 ] == '4' ) && ( string[ string_index + 2 ] == '9' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_949; } else if( ( string[ string_index + 1 ] == '5' ) && ( string[ string_index + 2 ] == '0' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_950; } break; default: break; } } else if( ( string_index + 4 ) == string_length ) { if( ( string[ string_index ] == '1' ) && ( string[ string_index + 1 ] == '2' ) && ( string[ string_index + 2 ] == '5' ) ) { switch( string[ string_index + 3 ] ) { case '0': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1250; break; case '1': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1251; break; case '2': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1252; break; case '3': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1253; break; case '4': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1254; break; case '5': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1255; break; case '6': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1256; break; case '7': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1257; break; case '8': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1258; break; default: break; } } } } if( *codepage != -1 ) { return( 1 ); } return( 0 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Copies the codepage from a string * Returns 1 if successful, 0 if unsupported value or -1 on error */ int libclocale_codepage_copy_from_string_wide( int *codepage, const wchar_t *string, size_t string_length, uint32_t feature_flags, libcerror_error_t **error ) { static char *function = "libclocale_codepage_copy_from_string_wide"; size_t string_index = 0; uint32_t supported_flags = 0; int codepage_set = 0; if( codepage == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid codepage.", function ); return( -1 ); } if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string length value exceeds maximum.", function ); return( -1 ); } supported_flags = LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_ISO_8859 | LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_KOI8 | LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_WINDOWS; if( ( feature_flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported feature flags value: 0x%08" PRIx32 ".", function, feature_flags ); return( -1 ); } *codepage = -1; if( string_length == 5 ) { if( wide_string_compare_no_case( string, L"ascii", 5 ) == 0 ) { *codepage = LIBCLOCALE_CODEPAGE_ASCII; string_index = 5; } } if( ( feature_flags & LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_ISO_8859 ) != 0 ) { /* Supported string formats: * iso8859-1, iso8859_1, iso-8859-1, iso-8859_1, iso_8859-1, iso_8859_1 */ if( string_length >= 8 ) { if( wide_string_compare_no_case( string, L"iso", 3 ) == 0 ) { string_index = 3; if( ( string[ string_index ] == (wchar_t) '-' ) || ( string[ string_index ] == (wchar_t) '_' ) ) { string_index++; } if( ( string[ string_index ] == (wchar_t) '8' ) && ( string[ string_index + 1 ] == (wchar_t) '8' ) && ( string[ string_index + 2 ] == (wchar_t) '5' ) && ( string[ string_index + 3 ] == (wchar_t) '9' ) ) { string_index += 4; if( string_index < string_length ) { if( ( string[ string_index ] == (wchar_t) '-' ) || ( string[ string_index ] == (wchar_t) '_' ) ) { string_index++; codepage_set = LIBCLOCALE_CODEPAGE_SET_ISO_8859; } } } } } } if( ( feature_flags & LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_KOI8 ) != 0 ) { /* Supported string formats: * koi8, koi8-r, koi8_r */ if( string_length >= 4 ) { if( wide_string_compare_no_case( string, L"koi8", 4 ) == 0 ) { string_index = 4; codepage_set = LIBCLOCALE_CODEPAGE_SET_KOI8; if( string_index < string_length ) { if( ( string[ string_index ] == (wchar_t) '-' ) || ( string[ string_index ] == (wchar_t) '_' ) ) { string_index++; } } } } } if( ( feature_flags & LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_WINDOWS ) != 0 ) { /* Supported string formats: * cp1252, ms1252, windows1252, windows-1252, windows_1252 */ if( string_length >= 7 ) { if( wide_string_compare_no_case( string, L"windows", 7 ) == 0 ) { string_index = 7; codepage_set = LIBCLOCALE_CODEPAGE_SET_WINDOWS; if( string_index < string_length ) { if( ( string[ string_index ] == (wchar_t) '-' ) || ( string[ string_index ] == (wchar_t) '_' ) ) { string_index++; } } } } else if( string_length >= 2 ) { if( wide_string_compare_no_case( string, L"cp", 2 ) == 0 ) { string_index = 2; codepage_set = LIBCLOCALE_CODEPAGE_SET_GENERIC; } else if( wide_string_compare_no_case( string, L"ms", 2 ) == 0 ) { string_index = 2; codepage_set = LIBCLOCALE_CODEPAGE_SET_WINDOWS; } } } if( codepage_set == LIBCLOCALE_CODEPAGE_SET_ISO_8859 ) { if( ( string_index + 1 ) == string_length ) { switch( string[ string_index ] ) { case '1': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_1; break; case '2': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_2; break; case '3': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_3; break; case '4': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_4; break; case '5': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_5; break; case '6': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_6; break; case '7': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_7; break; case '8': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_8; break; case '9': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_9; break; default: break; } } else if( ( string_index + 2 ) == string_length ) { if( string[ string_index ] == (wchar_t) '1' ) { string_index++; switch( string[ string_index ] ) { case '0': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_10; break; case '1': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_11; break; case '3': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_13; break; case '4': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_14; break; case '5': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_15; break; case '6': *codepage = LIBCLOCALE_CODEPAGE_ISO_8859_16; break; default: break; } } } } if( codepage_set == LIBCLOCALE_CODEPAGE_SET_KOI8 ) { if( ( string_index + 1 ) == string_length ) { switch( string[ string_index ] ) { case 'r': case 'R': *codepage = LIBCLOCALE_CODEPAGE_KOI8_R; break; case 'u': case 'U': *codepage = LIBCLOCALE_CODEPAGE_KOI8_U; break; default: break; } } } if( ( codepage_set == LIBCLOCALE_CODEPAGE_SET_GENERIC ) || ( codepage_set == LIBCLOCALE_CODEPAGE_SET_WINDOWS ) ) { if( ( string_index + 3 ) == string_length ) { switch( string[ string_index ] ) { case '8': if( ( string[ string_index + 1 ] == (wchar_t) '7' ) && ( string[ string_index + 2 ] == (wchar_t) '4' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_874; } break; case '9': if( ( string[ string_index + 1 ] == (wchar_t) '3' ) && ( string[ string_index + 2 ] == (wchar_t) '2' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_932; } else if( ( string[ string_index + 1 ] == (wchar_t) '3' ) && ( string[ string_index + 2 ] == (wchar_t) '6' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_936; } else if( ( string[ string_index + 1 ] == (wchar_t) '4' ) && ( string[ string_index + 2 ] == (wchar_t) '9' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_949; } else if( ( string[ string_index + 1 ] == (wchar_t) '5' ) && ( string[ string_index + 2 ] == (wchar_t) '0' ) ) { *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_950; } break; default: break; } } else if( ( string_index + 4 ) == string_length ) { if( ( string[ string_index ] == (wchar_t) '1' ) && ( string[ string_index + 1 ] == (wchar_t) '2' ) && ( string[ string_index + 2 ] == (wchar_t) '5' ) ) { switch( string[ string_index + 3 ] ) { case '0': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1250; break; case '1': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1251; break; case '2': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1252; break; case '3': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1253; break; case '4': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1254; break; case '5': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1255; break; case '6': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1256; break; case '7': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1257; break; case '8': *codepage = LIBCLOCALE_CODEPAGE_WINDOWS_1258; break; default: break; } } } } if( *codepage != -1 ) { return( 1 ); } return( 0 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libclocale/Makefile.in0000664000175000017500000007555413430101254022172 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libclocale ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libclocale_la_LIBADD = am__libclocale_la_SOURCES_DIST = libclocale_codepage.c \ libclocale_codepage.h libclocale_definitions.h \ libclocale_extern.h libclocale_libcerror.h libclocale_locale.c \ libclocale_locale.h libclocale_support.c libclocale_support.h \ libclocale_unused.h libclocale_wide_string.c \ libclocale_wide_string.h @HAVE_LOCAL_LIBCLOCALE_TRUE@am_libclocale_la_OBJECTS = \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_codepage.lo \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_locale.lo \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_support.lo \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_wide_string.lo libclocale_la_OBJECTS = $(am_libclocale_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCLOCALE_TRUE@am_libclocale_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libclocale_codepage.Plo \ ./$(DEPDIR)/libclocale_locale.Plo \ ./$(DEPDIR)/libclocale_support.Plo \ ./$(DEPDIR)/libclocale_wide_string.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libclocale_la_SOURCES) DIST_SOURCES = $(am__libclocale_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCLOCALE_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ -DLOCALEDIR=\"$(datadir)/locale\" \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBCLOCALE_TRUE@noinst_LTLIBRARIES = libclocale.la @HAVE_LOCAL_LIBCLOCALE_TRUE@libclocale_la_SOURCES = \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_codepage.c libclocale_codepage.h \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_definitions.h \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_extern.h \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_libcerror.h \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_locale.c libclocale_locale.h \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_support.c libclocale_support.h \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_unused.h \ @HAVE_LOCAL_LIBCLOCALE_TRUE@ libclocale_wide_string.c libclocale_wide_string.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libclocale/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libclocale/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libclocale.la: $(libclocale_la_OBJECTS) $(libclocale_la_DEPENDENCIES) $(EXTRA_libclocale_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libclocale_la_rpath) $(libclocale_la_OBJECTS) $(libclocale_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclocale_codepage.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclocale_locale.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclocale_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libclocale_wide_string.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libclocale_codepage.Plo -rm -f ./$(DEPDIR)/libclocale_locale.Plo -rm -f ./$(DEPDIR)/libclocale_support.Plo -rm -f ./$(DEPDIR)/libclocale_wide_string.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libclocale ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libclocale_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libclocale/libclocale_wide_string.c0000664000175000017500000000366313430101170024745 0ustar00lordyestalordyesta00000000000000/* * Wide character string functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_WCTYPE_H ) #include #endif #include "libclocale_wide_string.h" #if defined( TOWLOWER ) && !defined( HAVE_WCSNCASECMP ) && !defined( HAVE_WCSCASECMP ) && !defined( WINAPI ) /* Replacement for missing: wcsncasecmp * Compares no more than a specified number of wide characters of string1 and string2, * ignoring case, returning less than, equal to or greater than zero if string1 is * less than, equal to or greater than string. */ int libclocale_wide_string_compare_no_case( const wchar_t *string1, const wchar_t *string2, size_t comparision_length ) { wint_t character1 = 0; wint_t character2 = 0; if( string1 == string2 ) { return( 0 ); } while( comparision_length > 0 ) { character1 = towlower( *string1 ); character2 = towlower( *string2 ); if( ( character1 == 0 ) || ( character1 != character2 ) ) { return( character1 - character2 ); } string1++; string2++; comparision_length--; } return( 0 ); } #endif /* defined( TOWLOWER ) && !defined( HAVE_WCSNCASECMP ) && !defined( HAVE_WCSCASECMP ) && !defined( WINAPI ) */ libfsapfs-20190210/libclocale/libclocale_libcerror.h0000664000175000017500000000252713430101170024415 0ustar00lordyestalordyesta00000000000000/* * The internal libcerror header * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCLOCALE_LIBCERROR_H ) #define _LIBCLOCALE_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif #endif libfsapfs-20190210/pyfsapfs-python2/0000775000175000017500000000000013430101370021247 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/pyfsapfs-python2/Makefile.am0000664000175000017500000000377313426641461023334 0ustar00lordyestalordyesta00000000000000# Note that we cannot use: AUTOMAKE_OPTIONS = subdir-objects # subdir-objects will compile the source files to a single version of Python. # Since subdir-objects is being deprecated we copy the source files instead. am__installdirs = "$(DESTDIR)$(pyexecdir2)" pyexecdir = $(pyexecdir2) if HAVE_PYTHON2 AM_CFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBFSAPFS_DLL_IMPORT@ am_pyfsapfs_la_rpath = -rpath $(pyexecdir2) BUILT_SOURCES = \ pyfsapfs.c pyfsapfs.h \ pyfsapfs_container.c pyfsapfs_container.h \ pyfsapfs_datetime.c pyfsapfs_datetime.h \ pyfsapfs_error.c pyfsapfs_error.h \ pyfsapfs_extended_attribute.c pyfsapfs_extended_attribute.h \ pyfsapfs_extended_attributes.c pyfsapfs_extended_attributes.h \ pyfsapfs_file_entries.c pyfsapfs_file_entries.h \ pyfsapfs_file_entry.c pyfsapfs_file_entry.h \ pyfsapfs_file_object_io_handle.c pyfsapfs_file_object_io_handle.h \ pyfsapfs_guid.c pyfsapfs_guid.h \ pyfsapfs_integer.c pyfsapfs_integer.h \ pyfsapfs_libbfio.h \ pyfsapfs_libcerror.h \ pyfsapfs_libclocale.h \ pyfsapfs_libfguid.h \ pyfsapfs_libfsapfs.h \ pyfsapfs_python.h \ pyfsapfs_unused.h \ pyfsapfs_volume.c pyfsapfs_volume.h \ pyfsapfs_volumes.c pyfsapfs_volumes.h pyexec_LTLIBRARIES = pyfsapfs.la nodist_pyfsapfs_la_SOURCES = $(BUILT_SOURCES) pyfsapfs_la_LIBADD = \ @LIBCERROR_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCDATA_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBFGUID_LIBADD@ pyfsapfs_la_CPPFLAGS = $(PYTHON2_CPPFLAGS) pyfsapfs_la_LDFLAGS = -module -avoid-version $(PYTHON2_LDFLAGS) $(BUILT_SOURCES): /bin/cp -f $(top_srcdir)/pyfsapfs/$@ $@ endif MAINTAINERCLEANFILES = \ Makefile.in clean-local: /bin/rm -f pyfsapfs*.[ch] distclean: clean /bin/rm -f Makefile libfsapfs-20190210/pyfsapfs-python2/Makefile.in0000664000175000017500000015205013430101254023320 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pyfsapfs-python2 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } LTLIBRARIES = $(pyexec_LTLIBRARIES) @HAVE_PYTHON2_TRUE@pyfsapfs_la_DEPENDENCIES = \ @HAVE_PYTHON2_TRUE@ ../libfsapfs/libfsapfs.la @HAVE_PYTHON2_TRUE@am__objects_1 = pyfsapfs_la-pyfsapfs.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_container.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_datetime.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_error.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_extended_attribute.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_extended_attributes.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_file_entries.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_file_entry.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_file_object_io_handle.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_guid.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_integer.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_volume.lo \ @HAVE_PYTHON2_TRUE@ pyfsapfs_la-pyfsapfs_volumes.lo @HAVE_PYTHON2_TRUE@nodist_pyfsapfs_la_OBJECTS = $(am__objects_1) pyfsapfs_la_OBJECTS = $(nodist_pyfsapfs_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = pyfsapfs_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(pyfsapfs_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(nodist_pyfsapfs_la_SOURCES) DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = $(pyexecdir2) pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ # Note that we cannot use: AUTOMAKE_OPTIONS = subdir-objects # subdir-objects will compile the source files to a single version of Python. # Since subdir-objects is being deprecated we copy the source files instead. am__installdirs = "$(DESTDIR)$(pyexecdir2)" @HAVE_PYTHON2_TRUE@AM_CFLAGS = \ @HAVE_PYTHON2_TRUE@ -I$(top_srcdir)/include \ @HAVE_PYTHON2_TRUE@ -I$(top_srcdir)/common \ @HAVE_PYTHON2_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBCDATA_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBCLOCALE_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBCSPLIT_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBUNA_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBCFILE_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBCPATH_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBBFIO_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBFGUID_CPPFLAGS@ \ @HAVE_PYTHON2_TRUE@ @LIBFSAPFS_DLL_IMPORT@ @HAVE_PYTHON2_TRUE@am_pyfsapfs_la_rpath = -rpath $(pyexecdir2) @HAVE_PYTHON2_TRUE@BUILT_SOURCES = \ @HAVE_PYTHON2_TRUE@ pyfsapfs.c pyfsapfs.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_container.c pyfsapfs_container.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_datetime.c pyfsapfs_datetime.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_error.c pyfsapfs_error.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_extended_attribute.c pyfsapfs_extended_attribute.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_extended_attributes.c pyfsapfs_extended_attributes.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_file_entries.c pyfsapfs_file_entries.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_file_entry.c pyfsapfs_file_entry.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_file_object_io_handle.c pyfsapfs_file_object_io_handle.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_guid.c pyfsapfs_guid.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_integer.c pyfsapfs_integer.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_libbfio.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_libcerror.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_libclocale.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_libfguid.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_libfsapfs.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_python.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_unused.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_volume.c pyfsapfs_volume.h \ @HAVE_PYTHON2_TRUE@ pyfsapfs_volumes.c pyfsapfs_volumes.h @HAVE_PYTHON2_TRUE@pyexec_LTLIBRARIES = pyfsapfs.la @HAVE_PYTHON2_TRUE@nodist_pyfsapfs_la_SOURCES = $(BUILT_SOURCES) @HAVE_PYTHON2_TRUE@pyfsapfs_la_LIBADD = \ @HAVE_PYTHON2_TRUE@ @LIBCERROR_LIBADD@ \ @HAVE_PYTHON2_TRUE@ ../libfsapfs/libfsapfs.la \ @HAVE_PYTHON2_TRUE@ @LIBCDATA_LIBADD@ \ @HAVE_PYTHON2_TRUE@ @LIBCLOCALE_LIBADD@ \ @HAVE_PYTHON2_TRUE@ @LIBCSPLIT_LIBADD@ \ @HAVE_PYTHON2_TRUE@ @LIBUNA_LIBADD@ \ @HAVE_PYTHON2_TRUE@ @LIBCFILE_LIBADD@ \ @HAVE_PYTHON2_TRUE@ @LIBCPATH_LIBADD@ \ @HAVE_PYTHON2_TRUE@ @LIBBFIO_LIBADD@ \ @HAVE_PYTHON2_TRUE@ @LIBFGUID_LIBADD@ @HAVE_PYTHON2_TRUE@pyfsapfs_la_CPPFLAGS = $(PYTHON2_CPPFLAGS) @HAVE_PYTHON2_TRUE@pyfsapfs_la_LDFLAGS = -module -avoid-version $(PYTHON2_LDFLAGS) MAINTAINERCLEANFILES = \ Makefile.in all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pyfsapfs-python2/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu pyfsapfs-python2/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pyexecLTLIBRARIES: $(pyexec_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(pyexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pyexecdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pyexecdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pyexecdir)"; \ } uninstall-pyexecLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$f"; \ done clean-pyexecLTLIBRARIES: -test -z "$(pyexec_LTLIBRARIES)" || rm -f $(pyexec_LTLIBRARIES) @list='$(pyexec_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } pyfsapfs.la: $(pyfsapfs_la_OBJECTS) $(pyfsapfs_la_DEPENDENCIES) $(EXTRA_pyfsapfs_la_DEPENDENCIES) $(AM_V_CCLD)$(pyfsapfs_la_LINK) $(am_pyfsapfs_la_rpath) $(pyfsapfs_la_OBJECTS) $(pyfsapfs_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< pyfsapfs_la-pyfsapfs.lo: pyfsapfs.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs.Tpo -c -o pyfsapfs_la-pyfsapfs.lo `test -f 'pyfsapfs.c' || echo '$(srcdir)/'`pyfsapfs.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs.c' object='pyfsapfs_la-pyfsapfs.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs.lo `test -f 'pyfsapfs.c' || echo '$(srcdir)/'`pyfsapfs.c pyfsapfs_la-pyfsapfs_container.lo: pyfsapfs_container.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_container.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Tpo -c -o pyfsapfs_la-pyfsapfs_container.lo `test -f 'pyfsapfs_container.c' || echo '$(srcdir)/'`pyfsapfs_container.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_container.c' object='pyfsapfs_la-pyfsapfs_container.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_container.lo `test -f 'pyfsapfs_container.c' || echo '$(srcdir)/'`pyfsapfs_container.c pyfsapfs_la-pyfsapfs_datetime.lo: pyfsapfs_datetime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_datetime.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Tpo -c -o pyfsapfs_la-pyfsapfs_datetime.lo `test -f 'pyfsapfs_datetime.c' || echo '$(srcdir)/'`pyfsapfs_datetime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_datetime.c' object='pyfsapfs_la-pyfsapfs_datetime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_datetime.lo `test -f 'pyfsapfs_datetime.c' || echo '$(srcdir)/'`pyfsapfs_datetime.c pyfsapfs_la-pyfsapfs_error.lo: pyfsapfs_error.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_error.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Tpo -c -o pyfsapfs_la-pyfsapfs_error.lo `test -f 'pyfsapfs_error.c' || echo '$(srcdir)/'`pyfsapfs_error.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_error.c' object='pyfsapfs_la-pyfsapfs_error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_error.lo `test -f 'pyfsapfs_error.c' || echo '$(srcdir)/'`pyfsapfs_error.c pyfsapfs_la-pyfsapfs_extended_attribute.lo: pyfsapfs_extended_attribute.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_extended_attribute.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Tpo -c -o pyfsapfs_la-pyfsapfs_extended_attribute.lo `test -f 'pyfsapfs_extended_attribute.c' || echo '$(srcdir)/'`pyfsapfs_extended_attribute.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_extended_attribute.c' object='pyfsapfs_la-pyfsapfs_extended_attribute.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_extended_attribute.lo `test -f 'pyfsapfs_extended_attribute.c' || echo '$(srcdir)/'`pyfsapfs_extended_attribute.c pyfsapfs_la-pyfsapfs_extended_attributes.lo: pyfsapfs_extended_attributes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_extended_attributes.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Tpo -c -o pyfsapfs_la-pyfsapfs_extended_attributes.lo `test -f 'pyfsapfs_extended_attributes.c' || echo '$(srcdir)/'`pyfsapfs_extended_attributes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_extended_attributes.c' object='pyfsapfs_la-pyfsapfs_extended_attributes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_extended_attributes.lo `test -f 'pyfsapfs_extended_attributes.c' || echo '$(srcdir)/'`pyfsapfs_extended_attributes.c pyfsapfs_la-pyfsapfs_file_entries.lo: pyfsapfs_file_entries.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_entries.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Tpo -c -o pyfsapfs_la-pyfsapfs_file_entries.lo `test -f 'pyfsapfs_file_entries.c' || echo '$(srcdir)/'`pyfsapfs_file_entries.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_entries.c' object='pyfsapfs_la-pyfsapfs_file_entries.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_entries.lo `test -f 'pyfsapfs_file_entries.c' || echo '$(srcdir)/'`pyfsapfs_file_entries.c pyfsapfs_la-pyfsapfs_file_entry.lo: pyfsapfs_file_entry.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_entry.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Tpo -c -o pyfsapfs_la-pyfsapfs_file_entry.lo `test -f 'pyfsapfs_file_entry.c' || echo '$(srcdir)/'`pyfsapfs_file_entry.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_entry.c' object='pyfsapfs_la-pyfsapfs_file_entry.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_entry.lo `test -f 'pyfsapfs_file_entry.c' || echo '$(srcdir)/'`pyfsapfs_file_entry.c pyfsapfs_la-pyfsapfs_file_object_io_handle.lo: pyfsapfs_file_object_io_handle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_object_io_handle.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Tpo -c -o pyfsapfs_la-pyfsapfs_file_object_io_handle.lo `test -f 'pyfsapfs_file_object_io_handle.c' || echo '$(srcdir)/'`pyfsapfs_file_object_io_handle.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_object_io_handle.c' object='pyfsapfs_la-pyfsapfs_file_object_io_handle.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_object_io_handle.lo `test -f 'pyfsapfs_file_object_io_handle.c' || echo '$(srcdir)/'`pyfsapfs_file_object_io_handle.c pyfsapfs_la-pyfsapfs_guid.lo: pyfsapfs_guid.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_guid.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Tpo -c -o pyfsapfs_la-pyfsapfs_guid.lo `test -f 'pyfsapfs_guid.c' || echo '$(srcdir)/'`pyfsapfs_guid.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_guid.c' object='pyfsapfs_la-pyfsapfs_guid.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_guid.lo `test -f 'pyfsapfs_guid.c' || echo '$(srcdir)/'`pyfsapfs_guid.c pyfsapfs_la-pyfsapfs_integer.lo: pyfsapfs_integer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_integer.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Tpo -c -o pyfsapfs_la-pyfsapfs_integer.lo `test -f 'pyfsapfs_integer.c' || echo '$(srcdir)/'`pyfsapfs_integer.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_integer.c' object='pyfsapfs_la-pyfsapfs_integer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_integer.lo `test -f 'pyfsapfs_integer.c' || echo '$(srcdir)/'`pyfsapfs_integer.c pyfsapfs_la-pyfsapfs_volume.lo: pyfsapfs_volume.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_volume.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Tpo -c -o pyfsapfs_la-pyfsapfs_volume.lo `test -f 'pyfsapfs_volume.c' || echo '$(srcdir)/'`pyfsapfs_volume.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_volume.c' object='pyfsapfs_la-pyfsapfs_volume.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_volume.lo `test -f 'pyfsapfs_volume.c' || echo '$(srcdir)/'`pyfsapfs_volume.c pyfsapfs_la-pyfsapfs_volumes.lo: pyfsapfs_volumes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_volumes.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Tpo -c -o pyfsapfs_la-pyfsapfs_volumes.lo `test -f 'pyfsapfs_volumes.c' || echo '$(srcdir)/'`pyfsapfs_volumes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_volumes.c' object='pyfsapfs_la-pyfsapfs_volumes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_volumes.lo `test -f 'pyfsapfs_volumes.c' || echo '$(srcdir)/'`pyfsapfs_volumes.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(pyexecdir2)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-local \ clean-pyexecLTLIBRARIES mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-pyexecLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pyexecLTLIBRARIES .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-local \ clean-pyexecLTLIBRARIES cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-pyexecLTLIBRARIES install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-pyexecLTLIBRARIES .PRECIOUS: Makefile @HAVE_PYTHON2_TRUE@$(BUILT_SOURCES): @HAVE_PYTHON2_TRUE@ /bin/cp -f $(top_srcdir)/pyfsapfs/$@ $@ clean-local: /bin/rm -f pyfsapfs*.[ch] distclean: clean /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/missing0000755000175000017500000001533613430101253017420 0ustar00lordyestalordyesta00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2018 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libfsapfs-20190210/libfsapfs.pc.in0000664000175000017500000000147213426637437020750 0ustar00lordyestalordyesta00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: libfsapfs Description: Library to access the Apple File System (APFS) format Version: @VERSION@ Libs: -L${libdir} -lfsapfs Libs.private: @ax_libbfio_pc_libs_private@ @ax_libcaes_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_libcrypto_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_libhmac_pc_libs_private@ @ax_libuna_pc_libs_private@ @ax_pthread_pc_libs_private@ @ax_zlib_pc_libs_private@ Cflags: -I${includedir} libfsapfs-20190210/Makefile.am0000664000175000017500000000711613354127100020060 0ustar00lordyestalordyesta00000000000000ACLOCAL_AMFLAGS = -I m4 SUBDIRS = \ include \ common \ libcerror \ libcthreads \ libcdata \ libclocale \ libcnotify \ libcsplit \ libuna \ libcfile \ libcpath \ libbfio \ libfcache \ libfdata \ libfdatetime \ libfguid \ libhmac \ libcaes \ libfsapfs \ pyfsapfs \ pyfsapfs-python2 \ pyfsapfs-python3 \ fsapfstools \ po \ manuals \ tests \ msvscpp DPKG_FILES = \ dpkg/changelog \ dpkg/changelog.in \ dpkg/compat \ dpkg/control \ dpkg/copyright \ dpkg/rules \ dpkg/libfsapfs-dev.install \ dpkg/libfsapfs.install \ dpkg/libfsapfs-python.install \ dpkg/libfsapfs-python3.install \ dpkg/libfsapfs-tools.install \ dpkg/source/format GETTEXT_FILES = \ config.rpath \ po/Makevars.in PKGCONFIG_FILES = \ libfsapfs.pc.in SETUP_PY_FILES = \ setup.py SPEC_FILES = \ libfsapfs.spec \ libfsapfs.spec.in EXTRA_DIST = \ $(DPKG_FILES) \ $(GETTEXT_FILES) \ $(PKGCONFIG_FILES) \ $(SETUP_PY_FILES) \ $(SPEC_FILES) MAINTAINERCLEANFILES = \ Makefile.in pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ libfsapfs.pc libtool: @LIBTOOL_DEPS@ cd $(srcdir) && $(SHELL) ./config.status --recheck lib: library library: (cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcthreads && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfcache && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdata && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdatetime && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libhmac && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcaes && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfsapfs && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)) distclean: clean /bin/rm -f Makefile /bin/rm -f config.status /bin/rm -f config.cache /bin/rm -f config.log /bin/rm -f libfsapfs.pc /bin/rm -f libfsapfs.spec @for dir in ${subdirs}; do \ (cd $$dir && $(MAKE) distclean) \ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" splint: (cd $(srcdir)/libcerror && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcthreads && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcdata && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libclocale && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcsplit && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcfile && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcpath && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libbfio && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfcache && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdata && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdatetime && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfguid && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libhmac && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcaes && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfsapfs && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/fsapfstools && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/po && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/tests && $(MAKE) splint $(AM_MAKEFLAGS)) libfsapfs-20190210/aclocal.m40000664000175000017500000015716113430101250017663 0ustar00lordyestalordyesta00000000000000# generated automatically by aclocal 1.16.1 -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 11 (pkg-config-0.29.1) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------ dnl dnl Prepare a "--with-" configure option using the lowercase dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and dnl PKG_CHECK_MODULES in a single macro. AC_DEFUN([PKG_WITH_MODULES], [ m4_pushdef([with_arg], m4_tolower([$1])) m4_pushdef([description], [m4_default([$5], [build with ]with_arg[ support])]) m4_pushdef([def_arg], [m4_default([$6], [auto])]) m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) m4_case(def_arg, [yes],[m4_pushdef([with_without], [--without-]with_arg)], [m4_pushdef([with_without],[--with-]with_arg)]) AC_ARG_WITH(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([with_]with_arg)=def_arg]) AS_CASE([$AS_TR_SH([with_]with_arg)], [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], [auto],[PKG_CHECK_MODULES([$1],[$2], [m4_n([def_action_if_found]) $3], [m4_n([def_action_if_not_found]) $4])]) m4_popdef([with_arg]) m4_popdef([description]) m4_popdef([def_arg]) ])dnl PKG_WITH_MODULES dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ----------------------------------------------- dnl dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES dnl check._[VARIABLE-PREFIX] is exported as make variable. AC_DEFUN([PKG_HAVE_WITH_MODULES], [ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) AM_CONDITIONAL([HAVE_][$1], [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) ])dnl PKG_HAVE_WITH_MODULES dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, dnl [DESCRIPTION], [DEFAULT]) dnl ------------------------------------------------------ dnl dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make dnl and preprocessor variable. AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], [ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES # Copyright (C) 2002-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. Try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking is enabled. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in # order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Copyright (C) 2003-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for 'mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl FIXME we are no longer going to remove this! adjust warning dnl FIXME message accordingly. AC_DIAGNOSE([obsolete], [$0: this macro is deprecated, and will soon be removed. You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead, and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.]) dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/common.m4]) m4_include([m4/gettext.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intlmacosx.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/libbfio.m4]) m4_include([m4/libcaes.m4]) m4_include([m4/libcdata.m4]) m4_include([m4/libcerror.m4]) m4_include([m4/libcfile.m4]) m4_include([m4/libclocale.m4]) m4_include([m4/libcnotify.m4]) m4_include([m4/libcpath.m4]) m4_include([m4/libcrypto.m4]) m4_include([m4/libcsplit.m4]) m4_include([m4/libcthreads.m4]) m4_include([m4/libfcache.m4]) m4_include([m4/libfdata.m4]) m4_include([m4/libfdatetime.m4]) m4_include([m4/libfguid.m4]) m4_include([m4/libfuse.m4]) m4_include([m4/libhmac.m4]) m4_include([m4/libtool.m4]) m4_include([m4/libuna.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) m4_include([m4/nls.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) m4_include([m4/pthread.m4]) m4_include([m4/python.m4]) m4_include([m4/tests.m4]) m4_include([m4/types.m4]) m4_include([m4/zlib.m4]) m4_include([acinclude.m4]) libfsapfs-20190210/libbfio/0000775000175000017500000000000013430101367017427 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libbfio/libbfio_handle.h0000664000175000017500000001733213430101134022517 0ustar00lordyestalordyesta00000000000000/* * The handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_INTERNAL_HANDLE_H ) #define _LIBBFIO_INTERNAL_HANDLE_H #include #include #include "libbfio_extern.h" #include "libbfio_libcdata.h" #include "libbfio_libcerror.h" #include "libbfio_libcthreads.h" #include "libbfio_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libbfio_internal_handle libbfio_internal_handle_t; struct libbfio_internal_handle { /* The IO handle */ intptr_t *io_handle; /* The flags */ uint8_t flags; /* The access flags */ int access_flags; /* The current offset */ off64_t current_offset; /* The size */ size64_t size; /* Value to indicate the size was set */ uint8_t size_set; /* Value to indicate to open and close * the systems file descriptor or handle on demand */ uint8_t open_on_demand; /* Reference to the pool last used list element */ libcdata_list_element_t *pool_last_used_list_element; /* Value to indicate to track offsets read */ uint8_t track_offsets_read; /* The offset ranges that were read */ libcdata_range_list_t *offsets_read; /* The narrow string codepage */ int narrow_string_codepage; /* The free IO handle function */ int (*free_io_handle)( intptr_t **io_handle, libcerror_error_t **error ); /* The clone (duplicate) IO handle function */ int (*clone_io_handle)( intptr_t **destination_io_handle, intptr_t *source_io_handle, libcerror_error_t **error ); /* The open function */ int (*open)( intptr_t *io_handle, int access_flags, libcerror_error_t **error ); /* The close function */ int (*close)( intptr_t *io_handle, libcerror_error_t **error ); /* The read function */ ssize_t (*read)( intptr_t *io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ); /* The write function */ ssize_t (*write)( intptr_t *io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ); /* The seek offset function */ off64_t (*seek_offset)( intptr_t *io_handle, off64_t offset, int whence, libcerror_error_t **error ); /* The exists function */ int (*exists)( intptr_t *io_handle, libcerror_error_t **error ); /* The is open function */ int (*is_open)( intptr_t *io_handle, libcerror_error_t **error ); /* The get size function */ int (*get_size)( intptr_t *io_handle, size64_t *size, libcerror_error_t **error ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBBFIO_EXTERN \ int libbfio_handle_initialize( libbfio_handle_t **handle, intptr_t *io_handle, int (*free_io_handle)( intptr_t **io_handle, libcerror_error_t **error ), int (*clone_io_handle)( intptr_t **destination_io_handle, intptr_t *source_io_handle, libcerror_error_t **error ), int (*open)( intptr_t *io_handle, int access_flags, libcerror_error_t **error ), int (*close)( intptr_t *io_handle, libcerror_error_t **error ), ssize_t (*read)( intptr_t *io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ), ssize_t (*write)( intptr_t *io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ), off64_t (*seek_offset)( intptr_t *io_handle, off64_t offset, int whence, libcerror_error_t **error ), int (*exists)( intptr_t *io_handle, libcerror_error_t **error ), int (*is_open)( intptr_t *io_handle, libcerror_error_t **error ), int (*get_size)( intptr_t *io_handle, size64_t *size, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_free( libbfio_handle_t **handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_clone( libbfio_handle_t **destination_handle, libbfio_handle_t *source_handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_open( libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_reopen( libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_close( libbfio_handle_t *handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ ssize_t libbfio_handle_read_buffer( libbfio_handle_t *handle, uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBBFIO_EXTERN \ ssize_t libbfio_handle_write_buffer( libbfio_handle_t *handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBBFIO_EXTERN \ off64_t libbfio_handle_seek_offset( libbfio_handle_t *handle, off64_t offset, int whence, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_exists( libbfio_handle_t *handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_is_open( libbfio_handle_t *handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_get_io_handle( libbfio_handle_t *handle, intptr_t **io_handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_get_access_flags( libbfio_handle_t *handle, int *access_flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_set_access_flags( libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_get_offset( libbfio_handle_t *handle, off64_t *offset, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_get_size( libbfio_handle_t *handle, size64_t *size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_set_open_on_demand( libbfio_handle_t *handle, uint8_t open_on_demand, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_set_track_offsets_read( libbfio_handle_t *handle, uint8_t track_offsets_read, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_get_number_of_offsets_read( libbfio_handle_t *handle, int *number_of_read_offsets, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_handle_get_offset_read( libbfio_handle_t *handle, int index, off64_t *offset, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_INTERNAL_HANDLE_H ) */ libfsapfs-20190210/libbfio/libbfio_libcerror.h0000664000175000017500000000263513430101134023247 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_LIBCERROR_H ) #define _LIBBFIO_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBBFIO_LIBCERROR_H ) */ libfsapfs-20190210/libbfio/libbfio_handle.c0000664000175000017500000016023413430101134022512 0ustar00lordyestalordyesta00000000000000/* * The handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #include "libbfio_definitions.h" #include "libbfio_handle.h" #include "libbfio_libcdata.h" #include "libbfio_libcerror.h" /* Creates a handle * Make sure the value handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_handle_initialize( libbfio_handle_t **handle, intptr_t *io_handle, int (*free_io_handle)( intptr_t **io_handle, libcerror_error_t **error ), int (*clone_io_handle)( intptr_t **destination_io_handle, intptr_t *source_io_handle, libcerror_error_t **error ), int (*open)( intptr_t *io_handle, int access_flags, libcerror_error_t **error ), int (*close)( intptr_t *io_handle, libcerror_error_t **error ), ssize_t (*read)( intptr_t *io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ), ssize_t (*write)( intptr_t *io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ), off64_t (*seek_offset)( intptr_t *io_handle, off64_t offset, int whence, libcerror_error_t **error ), int (*exists)( intptr_t *io_handle, libcerror_error_t **error ), int (*is_open)( intptr_t *io_handle, libcerror_error_t **error ), int (*get_size)( intptr_t *io_handle, size64_t *size, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_initialize"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } if( *handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid handle value already set.", function ); return( -1 ); } internal_handle = memory_allocate_structure( libbfio_internal_handle_t ); if( internal_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create handle.", function ); goto on_error; } if( memory_set( internal_handle, 0, sizeof( libbfio_internal_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear handle.", function ); memory_free( internal_handle ); return( -1 ); } if( libcdata_range_list_initialize( &( internal_handle->offsets_read ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create read offsets list.", function ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_initialize( &( internal_handle->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to intialize read/write lock.", function ); goto on_error; } #endif internal_handle->io_handle = io_handle; internal_handle->flags = flags; internal_handle->free_io_handle = free_io_handle; internal_handle->clone_io_handle = clone_io_handle; internal_handle->open = open; internal_handle->close = close; internal_handle->read = read; internal_handle->write = write; internal_handle->seek_offset = seek_offset; internal_handle->exists = exists; internal_handle->is_open = is_open; internal_handle->get_size = get_size; *handle = (libbfio_handle_t *) internal_handle; return( 1 ); on_error: if( internal_handle != NULL ) { if( internal_handle->offsets_read != NULL ) { libcdata_range_list_free( &( internal_handle->offsets_read ), NULL, NULL ); } memory_free( internal_handle ); } return( -1 ); } /* Frees a handle * Returns 1 if successful or -1 on error */ int libbfio_handle_free( libbfio_handle_t **handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_free"; int is_open = 0; int result = 1; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } if( *handle != NULL ) { internal_handle = (libbfio_internal_handle_t *) *handle; *handle = NULL; if( internal_handle->is_open != NULL ) { is_open = internal_handle->is_open( internal_handle->io_handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to determine if handle is open.", function ); result = -1; } } if( is_open != 0 ) { if( internal_handle->close != NULL ) { if( internal_handle->close( internal_handle->io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle.", function ); result = -1; } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_free( &( internal_handle->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( ( internal_handle->flags & LIBBFIO_FLAG_IO_HANDLE_MANAGED ) != 0 ) { if( internal_handle->io_handle != NULL ) { if( internal_handle->free_io_handle == NULL ) { memory_free( internal_handle->io_handle ); } else if( internal_handle->free_io_handle( &( internal_handle->io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free IO handle.", function ); result = -1; } } } if( internal_handle->offsets_read != NULL ) { if( libcdata_range_list_free( &( internal_handle->offsets_read ), NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read offsets list.", function ); result = -1; } } memory_free( internal_handle ); } return( result ); } /* Clones (duplicates) the handle * The values in the offsets read list are not duplicated * Returns 1 if successful or -1 on error */ int libbfio_handle_clone( libbfio_handle_t **destination_handle, libbfio_handle_t *source_handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_source_handle = NULL; intptr_t *destination_io_handle = NULL; static char *function = "libbfio_handle_clone"; uint8_t destination_flags = 0; if( destination_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination handle.", function ); return( -1 ); } if( *destination_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination handle already set.", function ); return( -1 ); } if( source_handle == NULL ) { *destination_handle = NULL; return( 1 ); } internal_source_handle = (libbfio_internal_handle_t *) source_handle; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_source_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( internal_source_handle->io_handle != NULL ) { if( ( internal_source_handle->flags & LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_REFERENCE ) != 0 ) { destination_io_handle = internal_source_handle->io_handle; destination_flags = LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_REFERENCE; } else { if( internal_source_handle->clone_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing clone IO handle function.", function ); goto on_error; } if( internal_source_handle->clone_io_handle( &destination_io_handle, internal_source_handle->io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to clone IO handle.", function ); goto on_error; } destination_flags = LIBBFIO_FLAG_IO_HANDLE_MANAGED; } } if( libbfio_handle_initialize( destination_handle, destination_io_handle, internal_source_handle->free_io_handle, internal_source_handle->clone_io_handle, internal_source_handle->open, internal_source_handle->close, internal_source_handle->read, internal_source_handle->write, internal_source_handle->seek_offset, internal_source_handle->exists, internal_source_handle->is_open, internal_source_handle->get_size, destination_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination handle.", function ); goto on_error; } destination_io_handle = NULL; if( internal_source_handle->access_flags != 0 ) { if( libbfio_handle_open( *destination_handle, internal_source_handle->access_flags, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open destination handle.", function ); goto on_error; } if( libbfio_handle_seek_offset( *destination_handle, internal_source_handle->current_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset in destination handle.", function ); goto on_error; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_source_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); goto on_error; } #endif return( 1 ); on_error: if( destination_io_handle != NULL ) { if( internal_source_handle->free_io_handle == NULL ) { memory_free( destination_io_handle ); } else { internal_source_handle->free_io_handle( &destination_io_handle, NULL ); } } if( destination_handle != NULL ) { libbfio_handle_free( destination_handle, NULL ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_read( internal_source_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Opens the handle * Returns 1 if successful or -1 on error */ int libbfio_handle_open( libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_open"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->open == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing open function.", function ); return( -1 ); } if( ( ( access_flags & LIBBFIO_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags: 0x%02x.", function, access_flags ); return( -1 ); } if( ( internal_handle->open_on_demand != 0 ) && ( ( access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: open on demand cannot be used in combination with write access.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_handle->open_on_demand == 0 ) { if( internal_handle->open( internal_handle->io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open handle.", function ); goto on_error; } } internal_handle->access_flags = access_flags; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Reopens the handle * Returns 1 if successful or -1 on error */ int libbfio_handle_reopen( libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_reopen"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->close == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing close function.", function ); return( -1 ); } if( internal_handle->open == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing open function.", function ); return( -1 ); } if( internal_handle->seek_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing seek offset function.", function ); return( -1 ); } if( ( ( access_flags & LIBBFIO_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif /* Only reopen if the access flags have changed */ if( internal_handle->access_flags != access_flags ) { if( internal_handle->close( internal_handle->io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle.", function ); goto on_error; } if( internal_handle->open_on_demand == 0 ) { if( internal_handle->open( internal_handle->io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open handle.", function ); goto on_error; } } internal_handle->access_flags = access_flags; if( internal_handle->open_on_demand == 0 ) { /* Seek the previous file offset only when at least reading the file */ if( ( internal_handle->access_flags & LIBBFIO_ACCESS_FLAG_READ ) != 0 ) { if( internal_handle->seek_offset( internal_handle->io_handle, internal_handle->current_offset, SEEK_CUR, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset in handle.", function ); goto on_error; } } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Closes the handle * Returns 0 if successful or -1 on error */ int libbfio_handle_close( libbfio_handle_t *handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_close"; int is_open = 1; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->close == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing close function.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_handle->open_on_demand != 0 ) { if( internal_handle->is_open == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing is open function.", function ); goto on_error; } is_open = internal_handle->is_open( internal_handle->io_handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to determine if handle is open.", function ); goto on_error; } } if( is_open != 0 ) { if( internal_handle->close( internal_handle->io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle.", function ); goto on_error; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 0 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Reads a buffer from the handle * Returns the number of bytes read if successful, or -1 on error */ ssize_t libbfio_handle_read_buffer( libbfio_handle_t *handle, uint8_t *buffer, size_t size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_read_buffer"; ssize_t read_count = 0; int is_open = 0; int result = 0; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->read == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing read function.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_handle->open_on_demand != 0 ) { if( internal_handle->is_open == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing is open function.", function ); goto on_error; } if( internal_handle->open == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing open function.", function ); goto on_error; } if( internal_handle->seek_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing seek offset function.", function ); goto on_error; } is_open = internal_handle->is_open( internal_handle->io_handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to determine if handle is open.", function ); goto on_error; } else if( is_open == 0 ) { if( internal_handle->open( internal_handle->io_handle, internal_handle->access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open handle on demand.", function ); goto on_error; } if( internal_handle->seek_offset( internal_handle->io_handle, internal_handle->current_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek current offset: %" PRIi64 " in handle.", function, internal_handle->current_offset ); goto on_error; } } } read_count = internal_handle->read( internal_handle->io_handle, buffer, size, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from handle.", function ); goto on_error; } if( internal_handle->track_offsets_read != 0 ) { result = libcdata_range_list_insert_range( internal_handle->offsets_read, (uint64_t) internal_handle->current_offset, (uint64_t) read_count, NULL, NULL, NULL, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert offset range to offsets read table.", function ); goto on_error; } } internal_handle->current_offset += (off64_t) read_count; if( internal_handle->open_on_demand != 0 ) { if( internal_handle->close == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing close function.", function ); goto on_error; } if( internal_handle->close( internal_handle->io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to close handle on demand.", function ); goto on_error; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( read_count ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Writes a buffer to the handle * Returns the number of bytes written if successful, or -1 on error */ ssize_t libbfio_handle_write_buffer( libbfio_handle_t *handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_write_buffer"; ssize_t write_count = 0; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->write == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing write function.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif write_count = internal_handle->write( internal_handle->io_handle, buffer, size, error ); if( write_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write to handle.", function ); goto on_error; } internal_handle->current_offset += (off64_t) write_count; if( (size64_t) internal_handle->current_offset > internal_handle->size ) { internal_handle->size = (size64_t) internal_handle->current_offset; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( write_count ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Seeks a certain offset within the handle * Returns the offset if the seek is successful or -1 on error */ off64_t libbfio_handle_seek_offset( libbfio_handle_t *handle, off64_t offset, int whence, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_seek_offset"; off64_t seek_offset = 0; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->seek_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing seek offset function.", function ); return( -1 ); } if( ( whence != SEEK_CUR ) && ( whence != SEEK_END ) && ( whence != SEEK_SET ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported whence.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif seek_offset = internal_handle->seek_offset( internal_handle->io_handle, offset, whence, error ); if( seek_offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset: %" PRIi64 " in handle.", function, offset ); goto on_error; } internal_handle->current_offset = seek_offset; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( seek_offset ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Function to determine if a file object exists * Returns 1 if file object exists, 0 if not or -1 on error */ int libbfio_handle_exists( libbfio_handle_t *handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_exists"; int result = 0; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->exists == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing exists function.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif result = internal_handle->exists( internal_handle->io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if handle exists.", function ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Check if the handle is open * Returns 1 if open, 0 if not or -1 on error */ int libbfio_handle_is_open( libbfio_handle_t *handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_is_open"; int result = 0; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( internal_handle->is_open == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing is open function.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif result = internal_handle->is_open( internal_handle->io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if handle is open.", function ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the IO handle * Returns 1 if successful or -1 on error */ int libbfio_handle_get_io_handle( libbfio_handle_t *handle, intptr_t **io_handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_get_io_handle"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *io_handle = internal_handle->io_handle; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the access flags * Returns 1 if successful or -1 on error */ int libbfio_handle_get_access_flags( libbfio_handle_t *handle, int *access_flags, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_get_access_flags"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( access_flags == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid access flags.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *access_flags = internal_handle->access_flags; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the access flags * Returns 1 if successful or -1 on error */ int libbfio_handle_set_access_flags( libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_set_access_flags"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( ( ( access_flags & LIBBFIO_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_handle->access_flags = access_flags; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the current offset * Returns 1 if successful or -1 on error */ int libbfio_handle_get_offset( libbfio_handle_t *handle, off64_t *offset, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_get_offset"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid offset.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *offset = internal_handle->current_offset; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Returns the size of the data of the handle * Returns 1 if successful or -1 on error */ int libbfio_handle_get_size( libbfio_handle_t *handle, size64_t *size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_get_size"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( internal_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing IO handle.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_handle->size_set == 0 ) { if( internal_handle->get_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid handle - missing get size function.", function ); goto on_error; } if( internal_handle->get_size( internal_handle->io_handle, &( internal_handle->size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size.", function ); goto on_error; } internal_handle->size_set = 1; } *size = internal_handle->size; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Sets the value to have the library open and close * the systems file descriptor or handle on demand * 0 disables open on demand any other value enables it * Returns 1 if successful or -1 on error */ int libbfio_handle_set_open_on_demand( libbfio_handle_t *handle, uint8_t open_on_demand, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_set_open_on_demand"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( ( ( internal_handle->access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) != 0 ) && ( open_on_demand != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: open on demand cannot be used in combination with write access.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_handle->open_on_demand = open_on_demand; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the value to have the library track the offsets read * 0 disables tracking any other value enables it * Returns 1 if successful or -1 on error */ int libbfio_handle_set_track_offsets_read( libbfio_handle_t *handle, uint8_t track_offsets_read, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_set_track_offsets_read"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_handle->track_offsets_read = track_offsets_read; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the number of offsets read * Returns 1 if successful or -1 on error */ int libbfio_handle_get_number_of_offsets_read( libbfio_handle_t *handle, int *number_of_read_offsets, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_get_number_of_offsets_read"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_range_list_get_number_of_elements( internal_handle->offsets_read, number_of_read_offsets, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of read offsets.", function ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the information of an offset read * Returns 1 if successful or -1 on error */ int libbfio_handle_get_offset_read( libbfio_handle_t *handle, int index, off64_t *offset, size64_t *size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_get_offset_read"; intptr_t *value = NULL; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_range_list_get_range_by_index( internal_handle->offsets_read, index, (uint64_t *) offset, (uint64_t *) size, &value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve read offset range: %d.", function, index ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_read( internal_handle->read_write_lock, NULL ); #endif return( -1 ); } libfsapfs-20190210/libbfio/libbfio_libuna.h0000664000175000017500000000330713430101134022533 0ustar00lordyestalordyesta00000000000000/* * The libuna header wrapper * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_LIBUNA_H ) #define _LIBBFIO_LIBUNA_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if defined( HAVE_LOCAL_LIBUNA ) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT * before including libuna.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBUNA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _LIBBFIO_LIBUNA_H ) */ libfsapfs-20190210/libbfio/libbfio_definitions.h0000664000175000017500000000522613430101134023576 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_INTERNAL_DEFINITIONS_H ) #define _LIBBFIO_INTERNAL_DEFINITIONS_H #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio */ #if !defined( HAVE_LOCAL_LIBBFIO ) #include /* The definitions in are copied here * for local use of libbfio */ #else #define LIBBFIO_VERSION 20190112 /* The libbfio version string */ #define LIBBFIO_VERSION_STRING "20190112" /* The library flags definitions */ enum LIBBFIO_FLAGS { /* The IO handle is not managed by the library */ LIBBFIO_FLAG_IO_HANDLE_NON_MANAGED = 0x00, /* The IO handle is managed by the library */ LIBBFIO_FLAG_IO_HANDLE_MANAGED = 0x01, /* The IO handle is cloned by the function */ LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_FUNCTION = 0x00, /* The IO handle is not cloned, but passed as a reference */ LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_REFERENCE = 0x02, }; /* The access flags definitions * bit 1 set to 1 for read access * bit 2 set to 1 for write access * bit 3 set to 1 to truncate an existing file on write * bit 4-8 not used */ enum LIBBFIO_ACCESS_FLAGS { LIBBFIO_ACCESS_FLAG_READ = 0x01, LIBBFIO_ACCESS_FLAG_WRITE = 0x02, LIBBFIO_ACCESS_FLAG_TRUNCATE = 0x04 }; /* The file access macros */ #define LIBBFIO_OPEN_READ ( LIBBFIO_ACCESS_FLAG_READ ) #define LIBBFIO_OPEN_WRITE ( LIBBFIO_ACCESS_FLAG_WRITE ) #define LIBBFIO_OPEN_READ_WRITE ( LIBBFIO_ACCESS_FLAG_READ | LIBBFIO_ACCESS_FLAG_WRITE ) #define LIBBFIO_OPEN_WRITE_TRUNCATE ( LIBBFIO_ACCESS_FLAG_WRITE | LIBBFIO_ACCESS_FLAG_TRUNCATE ) #define LIBBFIO_OPEN_READ_WRITE_TRUNCATE ( LIBBFIO_ACCESS_FLAG_READ | LIBBFIO_ACCESS_FLAG_WRITE | LIBBFIO_ACCESS_FLAG_TRUNCATE ) #define LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES 0 #endif /* HAVE_LOCAL_LIBBFIO */ #endif /* !defined( _LIBBFIO_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libbfio/libbfio_libclocale.h0000664000175000017500000000266213430101134023355 0ustar00lordyestalordyesta00000000000000/* * The libclocale header wrapper * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_LIBCLOCALE_H ) #define _LIBBFIO_LIBCLOCALE_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if defined( HAVE_LOCAL_LIBCLOCALE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT * before including libclocale.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCLOCALE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _LIBBFIO_LIBCLOCALE_H ) */ libfsapfs-20190210/libbfio/libbfio_codepage.h0000664000175000017500000000507013430101134023027 0ustar00lordyestalordyesta00000000000000/* * Codepage functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_INTERNAL_CODEPAGE_H ) #define _LIBBFIO_INTERNAL_CODEPAGE_H #include #include #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBBFIO ) #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio * The definitions in are copied here * for local use of libbfio */ #else /* The codepage definitions */ enum LIBBFIO_CODEPAGES { LIBBFIO_CODEPAGE_ASCII = 20127, LIBBFIO_CODEPAGE_ISO_8859_1 = 28591, LIBBFIO_CODEPAGE_ISO_8859_2 = 28592, LIBBFIO_CODEPAGE_ISO_8859_3 = 28593, LIBBFIO_CODEPAGE_ISO_8859_4 = 28594, LIBBFIO_CODEPAGE_ISO_8859_5 = 28595, LIBBFIO_CODEPAGE_ISO_8859_6 = 28596, LIBBFIO_CODEPAGE_ISO_8859_7 = 28597, LIBBFIO_CODEPAGE_ISO_8859_8 = 28598, LIBBFIO_CODEPAGE_ISO_8859_9 = 28599, LIBBFIO_CODEPAGE_ISO_8859_10 = 28600, LIBBFIO_CODEPAGE_ISO_8859_11 = 28601, LIBBFIO_CODEPAGE_ISO_8859_13 = 28603, LIBBFIO_CODEPAGE_ISO_8859_14 = 28604, LIBBFIO_CODEPAGE_ISO_8859_15 = 28605, LIBBFIO_CODEPAGE_ISO_8859_16 = 28606, LIBBFIO_CODEPAGE_KOI8_R = 20866, LIBBFIO_CODEPAGE_KOI8_U = 21866, LIBBFIO_CODEPAGE_WINDOWS_874 = 874, LIBBFIO_CODEPAGE_WINDOWS_932 = 932, LIBBFIO_CODEPAGE_WINDOWS_936 = 936, LIBBFIO_CODEPAGE_WINDOWS_949 = 949, LIBBFIO_CODEPAGE_WINDOWS_950 = 950, LIBBFIO_CODEPAGE_WINDOWS_1250 = 1250, LIBBFIO_CODEPAGE_WINDOWS_1251 = 1251, LIBBFIO_CODEPAGE_WINDOWS_1252 = 1252, LIBBFIO_CODEPAGE_WINDOWS_1253 = 1253, LIBBFIO_CODEPAGE_WINDOWS_1254 = 1254, LIBBFIO_CODEPAGE_WINDOWS_1255 = 1255, LIBBFIO_CODEPAGE_WINDOWS_1256 = 1256, LIBBFIO_CODEPAGE_WINDOWS_1257 = 1257, LIBBFIO_CODEPAGE_WINDOWS_1258 = 1258 }; #endif /* !defined( HAVE_LOCAL_LIBBFIO ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_INTERNAL_CODEPAGE_H ) */ libfsapfs-20190210/libbfio/libbfio_libcdata.h0000664000175000017500000000301313430101134023016 0ustar00lordyestalordyesta00000000000000/* * The libcdata header wrapper * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_LIBCDATA_H ) #define _LIBBFIO_LIBCDATA_H #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata */ #if defined( HAVE_LOCAL_LIBCDATA ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCDATA_DLL_IMPORT * before including libcdata.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCDATA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCDATA ) */ #endif /* !defined( _LIBBFIO_LIBCDATA_H ) */ libfsapfs-20190210/libbfio/libbfio_extern.h0000664000175000017500000000237213430101134022567 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_INTERNAL_EXTERN_H ) #define _LIBBFIO_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio */ #if !defined( HAVE_LOCAL_LIBBFIO ) #include #define LIBBFIO_EXTERN_VARIABLE LIBBFIO_EXTERN #else #define LIBBFIO_EXTERN /* extern */ #define LIBBFIO_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBBFIO ) */ #endif /* !defined( _LIBBFIO_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libbfio/libbfio_file_range.c0000664000175000017500000002763413430101134023360 0ustar00lordyestalordyesta00000000000000/* * File range functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #include "libbfio_definitions.h" #include "libbfio_file_range.h" #include "libbfio_file_range_io_handle.h" #include "libbfio_handle.h" #include "libbfio_libcerror.h" #include "libbfio_types.h" /* Creates a file range handle * Make sure the value handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_file_range_initialize( libbfio_handle_t **handle, libcerror_error_t **error ) { libbfio_file_range_io_handle_t *file_range_io_handle = NULL; static char *function = "libbfio_range_file_initialize"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } if( *handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid handle value already set.", function ); return( -1 ); } if( libbfio_file_range_io_handle_initialize( &file_range_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file range IO handle.", function ); goto on_error; } if( libbfio_handle_initialize( handle, (intptr_t *) file_range_io_handle, (int (*)(intptr_t **, libcerror_error_t **)) libbfio_file_range_io_handle_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) libbfio_file_range_io_handle_clone, (int (*)(intptr_t *, int, libcerror_error_t **)) libbfio_file_range_io_handle_open, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_file_range_io_handle_close, (ssize_t (*)(intptr_t *, uint8_t *, size_t, libcerror_error_t **)) libbfio_file_range_io_handle_read_buffer, (ssize_t (*)(intptr_t *, const uint8_t *, size_t, libcerror_error_t **)) libbfio_file_range_io_handle_write_buffer, (off64_t (*)(intptr_t *, off64_t, int, libcerror_error_t **)) libbfio_file_range_io_handle_seek_offset, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_file_range_io_handle_exists, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_file_range_io_handle_is_open, (int (*)(intptr_t *, size64_t *, libcerror_error_t **)) libbfio_file_range_io_handle_get_size, LIBBFIO_FLAG_IO_HANDLE_MANAGED | LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_FUNCTION, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create handle.", function ); goto on_error; } return( 1 ); on_error: if( file_range_io_handle != NULL ) { libbfio_file_range_io_handle_free( &file_range_io_handle, NULL ); } return( -1 ); } /* Retrieves the name size of the file range handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_get_name_size( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_get_name_size"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_get_name_size( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name size from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file range handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_get_name( libbfio_handle_t *handle, char *name, size_t name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_get_name"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_get_name( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file range handle * Returns 1 if succesful or -1 on error */ int libbfio_file_range_set_name( libbfio_handle_t *handle, const char *name, size_t name_length, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_set_name"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_set_name( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, name, name_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name in file IO handle.", function ); return( -1 ); } return( 1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Retrieves the name size of the file range handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_get_name_size_wide( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_get_name_size_wide"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_get_name_size_wide( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name size from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file range handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_get_name_wide( libbfio_handle_t *handle, wchar_t *name, size_t name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_get_name_wide"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_get_name_wide( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file range handle * Returns 1 if succesful or -1 on error */ int libbfio_file_range_set_name_wide( libbfio_handle_t *handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_set_name_wide"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_set_name_wide( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, name, name_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name in file IO handle.", function ); return( -1 ); } return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Retrieves the range of the file range handle * Returns 1 if succesful or -1 on error */ int libbfio_file_range_get( libbfio_handle_t *handle, off64_t *range_offset, size64_t *range_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_get"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_get( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, range_offset, range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Sets the range of the file range handle * A range size of 0 represents that the range continues until the end of the file * Returns 1 if succesful or -1 on error */ int libbfio_file_range_set( libbfio_handle_t *handle, off64_t range_offset, size64_t range_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_range_set"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_range_io_handle_set( (libbfio_file_range_io_handle_t *) internal_handle->io_handle, range_offset, range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set range in file IO handle.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libbfio/libbfio_file_range_io_handle.c0000664000175000017500000006563113430101134025361 0ustar00lordyestalordyesta00000000000000/* * File range IO handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #include "libbfio_definitions.h" #include "libbfio_file_io_handle.h" #include "libbfio_file_range_io_handle.h" #include "libbfio_libcerror.h" /* Creates a file range IO handle * Make sure the value file_range_io_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_file_range_io_handle_initialize( libbfio_file_range_io_handle_t **file_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_initialize"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( *file_range_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file range IO handle value already set.", function ); return( -1 ); } *file_range_io_handle = memory_allocate_structure( libbfio_file_range_io_handle_t ); if( *file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file range IO handle.", function ); goto on_error; } if( memory_set( *file_range_io_handle, 0, sizeof( libbfio_file_range_io_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file range IO handle.", function ); goto on_error; } if( libbfio_file_io_handle_initialize( &( ( *file_range_io_handle )->file_io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize file IO handle.", function ); goto on_error; } return( 1 ); on_error: if( *file_range_io_handle != NULL ) { memory_free( *file_range_io_handle ); *file_range_io_handle = NULL; } return( -1 ); } /* Frees a file range IO handle * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_free( libbfio_file_range_io_handle_t **file_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_free"; int result = 1; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( *file_range_io_handle != NULL ) { if( libbfio_file_io_handle_free( &( ( *file_range_io_handle )->file_io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file IO handle.", function ); result = -1; } memory_free( *file_range_io_handle ); *file_range_io_handle = NULL; } return( result ); } /* Clones (duplicates) the file range IO handle and its attributes * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_clone( libbfio_file_range_io_handle_t **destination_file_range_io_handle, libbfio_file_range_io_handle_t *source_file_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_clone"; if( destination_file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination file range IO handle.", function ); return( -1 ); } if( *destination_file_range_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination file range IO handle already set.", function ); return( -1 ); } if( source_file_range_io_handle == NULL ) { *destination_file_range_io_handle = NULL; return( 1 ); } *destination_file_range_io_handle = memory_allocate_structure( libbfio_file_range_io_handle_t ); if( *destination_file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination file range IO handle.", function ); goto on_error; } if( memory_set( *destination_file_range_io_handle, 0, sizeof( libbfio_file_range_io_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination file range IO handle.", function ); memory_free( *destination_file_range_io_handle ); *destination_file_range_io_handle = NULL; return( -1 ); } if( libbfio_file_io_handle_clone( &( ( *destination_file_range_io_handle )->file_io_handle ), source_file_range_io_handle->file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } ( *destination_file_range_io_handle )->range_offset = source_file_range_io_handle->range_offset; ( *destination_file_range_io_handle )->range_size = source_file_range_io_handle->range_size; return( 1 ); on_error: if( *destination_file_range_io_handle != NULL ) { libbfio_file_range_io_handle_free( destination_file_range_io_handle, NULL ); } return( -1 ); } /* Retrieves the name size of the file range IO handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_get_name_size( libbfio_file_range_io_handle_t *file_range_io_handle, size_t *name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_get_name_size"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_get_name_size( file_range_io_handle->file_io_handle, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name size from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file range IO handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_get_name( libbfio_file_range_io_handle_t *file_range_io_handle, char *name, size_t name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_get_name"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_get_name( file_range_io_handle->file_io_handle, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file range IO handle * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_set_name( libbfio_file_range_io_handle_t *file_range_io_handle, const char *name, size_t name_length, libcerror_error_t **error ) { static char *function = "libbfio_file_range_set_name"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_set_name( file_range_io_handle->file_io_handle, name, name_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name in file IO handle.", function ); return( -1 ); } return( 1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Retrieves the name size of the file range IO handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_get_name_size_wide( libbfio_file_range_io_handle_t *file_range_io_handle, size_t *name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_get_name_size_wide"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_get_name_size_wide( file_range_io_handle->file_io_handle, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name size from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file range IO handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_get_name_wide( libbfio_file_range_io_handle_t *file_range_io_handle, wchar_t *name, size_t name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_get_name_wide"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_get_name_wide( file_range_io_handle->file_io_handle, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file range IO handle * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_set_name_wide( libbfio_file_range_io_handle_t *file_range_io_handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ) { static char *function = "libbfio_file_range_set_name_wide"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_set_name_wide( file_range_io_handle->file_io_handle, name, name_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name in file IO handle.", function ); return( -1 ); } return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Retrieves the range of the file range IO handle * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_get( libbfio_file_range_io_handle_t *file_range_io_handle, off64_t *range_offset, size64_t *range_size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_get"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( range_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range offset.", function ); return( -1 ); } if( range_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range size.", function ); return( -1 ); } *range_offset = file_range_io_handle->range_offset; *range_size = file_range_io_handle->range_size; return( 1 ); } /* Sets the range of the file range IO handle * A range size of 0 represents that the range continues until the end of the file * Returns 1 if succesful or -1 on error */ int libbfio_file_range_io_handle_set( libbfio_file_range_io_handle_t *file_range_io_handle, off64_t range_offset, size64_t range_size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_set"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( range_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid range offset value less than zero.", function ); return( -1 ); } if( range_size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range size value exceeds maximum.", function ); return( -1 ); } file_range_io_handle->range_offset = range_offset; file_range_io_handle->range_size = range_size; return( 1 ); } /* Opens the file range IO handle * Returns 1 if successful or -1 on error */ int libbfio_file_range_io_handle_open( libbfio_file_range_io_handle_t *file_range_io_handle, int access_flags, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_open"; size64_t file_size = 0; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_open( file_range_io_handle->file_io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_get_size( file_range_io_handle->file_io_handle, &file_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size from file IO handle.", function ); return( -1 ); } if( file_range_io_handle->range_offset >= (off64_t) file_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid range offset value exceeds file size.", function ); return( -1 ); } file_size -= file_range_io_handle->range_offset; if( file_range_io_handle->range_size > file_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid range size value exceeds file size.", function ); return( -1 ); } if( libbfio_file_io_handle_seek_offset( file_range_io_handle->file_io_handle, file_range_io_handle->range_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek range offset in file IO handle.", function ); return( -1 ); } return( 1 ); } /* Closes the file range IO handle * Returns 0 if successful or -1 on error */ int libbfio_file_range_io_handle_close( libbfio_file_range_io_handle_t *file_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_close"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( libbfio_file_io_handle_close( file_range_io_handle->file_io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close file IO handle.", function ); return( -1 ); } return( 0 ); } /* Reads a buffer from the file range IO handle * Returns the number of bytes read if successful, or -1 on error */ ssize_t libbfio_file_range_io_handle_read_buffer( libbfio_file_range_io_handle_t *file_range_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_read_buffer"; off64_t file_offset = 0; ssize_t read_count = 0; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } file_offset = libbfio_file_io_handle_seek_offset( file_range_io_handle->file_io_handle, 0, SEEK_CUR, error ); if( file_offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current offset from file IO handle.", function ); return( -1 ); } if( file_offset < file_range_io_handle->range_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file offset value out of bounds.", function ); return( -1 ); } if( file_range_io_handle->range_size != 0 ) { if( (size64_t) file_offset >= file_range_io_handle->range_size ) { return( 0 ); } if( (size64_t) ( file_offset + size ) >= file_range_io_handle->range_size ) { size = (size_t) ( file_range_io_handle->range_offset - file_offset ); } } read_count = libbfio_file_io_handle_read_buffer( file_range_io_handle->file_io_handle, buffer, size, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file IO handle.", function ); return( -1 ); } return( read_count ); } /* Writes a buffer to the file range IO handle * Returns the number of bytes written if successful, or -1 on error */ ssize_t libbfio_file_range_io_handle_write_buffer( libbfio_file_range_io_handle_t *file_range_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_write_buffer"; off64_t file_offset = 0; ssize_t write_count = 0; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } file_offset = libbfio_file_io_handle_seek_offset( file_range_io_handle->file_io_handle, 0, SEEK_CUR, error ); if( file_offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current offset from file IO handle.", function ); return( -1 ); } if( file_offset < file_range_io_handle->range_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file offset value out of bounds.", function ); return( -1 ); } if( file_range_io_handle->range_size != 0 ) { if( (size64_t) file_offset >= file_range_io_handle->range_size ) { return( 0 ); } if( (size64_t) ( file_offset + size ) >= file_range_io_handle->range_size ) { size = (size_t) ( file_range_io_handle->range_offset - file_offset ); } } write_count = libbfio_file_io_handle_write_buffer( file_range_io_handle->file_io_handle, buffer, size, error ); if( write_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to write to file IO handle.", function ); return( -1 ); } return( write_count ); } /* Seeks a certain offset within the file range IO handle * Returns the offset if the seek is successful or -1 on error */ off64_t libbfio_file_range_io_handle_seek_offset( libbfio_file_range_io_handle_t *file_range_io_handle, off64_t offset, int whence, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_seek_offset"; off64_t file_offset = 0; off64_t seek_offset = 0; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( ( whence != SEEK_CUR ) && ( whence != SEEK_END ) && ( whence != SEEK_SET ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported whence.", function ); return( -1 ); } if( whence == SEEK_CUR ) { file_offset = libbfio_file_io_handle_seek_offset( file_range_io_handle->file_io_handle, 0, SEEK_CUR, error ); if( file_offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current offset from file IO handle.", function ); return( -1 ); } offset += file_offset; whence = SEEK_SET; } else if( whence == SEEK_END ) { if( file_range_io_handle->range_size != 0 ) { offset += file_range_io_handle->range_size; whence = SEEK_SET; } } else if( whence == SEEK_SET ) { offset += file_range_io_handle->range_offset; } if( whence == SEEK_SET ) { if( offset < file_range_io_handle->range_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid offset value out of bounds.", function ); return( -1 ); } } seek_offset = libbfio_file_io_handle_seek_offset( file_range_io_handle->file_io_handle, offset, whence, error ); if( seek_offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset: %" PRIi64 " in file IO handle.", function, offset ); return( -1 ); } if( seek_offset < file_range_io_handle->range_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid offset: %" PRIi64 " value out of bounds.", function, seek_offset ); return( -1 ); } seek_offset -= file_range_io_handle->range_offset; return( seek_offset ); } /* Function to determine if a file range exists * Returns 1 if file exists, 0 if not or -1 on error */ int libbfio_file_range_io_handle_exists( libbfio_file_range_io_handle_t *file_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_exists"; int result = 0; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } result = libbfio_file_io_handle_exists( file_range_io_handle->file_io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, "%s: unable to determine if file exists.", function ); return( -1 ); } return( result ); } /* Check if the file range IO handle is open * Returns 1 if open, 0 if not or -1 on error */ int libbfio_file_range_io_handle_is_open( libbfio_file_range_io_handle_t *file_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_is_open"; int result = 0; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } result = libbfio_file_io_handle_is_open( file_range_io_handle->file_io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, "%s: unable to determine if file is open.", function ); return( -1 ); } return( result ); } /* Retrieves the file range size * Returns 1 if successful or -1 on error */ int libbfio_file_range_io_handle_get_size( libbfio_file_range_io_handle_t *file_range_io_handle, size64_t *size, libcerror_error_t **error ) { static char *function = "libbfio_file_range_io_handle_get_size"; if( file_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file range IO handle.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } if( file_range_io_handle->range_size == 0 ) { if( libbfio_file_io_handle_get_size( file_range_io_handle->file_io_handle, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine size.", function ); return( -1 ); } *size -= file_range_io_handle->range_offset; } else { *size = file_range_io_handle->range_size; } return( 1 ); } libfsapfs-20190210/libbfio/Makefile.am0000664000175000017500000000263013430101134021454 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBBFIO AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ noinst_LTLIBRARIES = libbfio.la libbfio_la_SOURCES = \ libbfio_codepage.h \ libbfio_definitions.h \ libbfio_error.c libbfio_error.h \ libbfio_extern.h \ libbfio_file.c libbfio_file.h \ libbfio_file_io_handle.c libbfio_file_io_handle.h \ libbfio_file_pool.c libbfio_file_pool.h \ libbfio_file_range.c libbfio_file_range.h \ libbfio_file_range_io_handle.c libbfio_file_range_io_handle.h \ libbfio_handle.c libbfio_handle.h \ libbfio_libcdata.h \ libbfio_libcerror.h \ libbfio_libcfile.h \ libbfio_libclocale.h \ libbfio_libcpath.h \ libbfio_libcthreads.h \ libbfio_libuna.h \ libbfio_memory_range.c libbfio_memory_range.h \ libbfio_memory_range_io_handle.c libbfio_memory_range_io_handle.h \ libbfio_pool.c libbfio_pool.h \ libbfio_support.c libbfio_support.h \ libbfio_system_string.c libbfio_system_string.h \ libbfio_types.h \ libbfio_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libbfio ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libbfio_la_SOURCES) libfsapfs-20190210/libbfio/libbfio_file_pool.c0000664000175000017500000001416113430101134023224 0ustar00lordyestalordyesta00000000000000/* * File pool functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libbfio_definitions.h" #include "libbfio_file.h" #include "libbfio_file_pool.h" #include "libbfio_handle.h" #include "libbfio_libcerror.h" #include "libbfio_pool.h" #include "libbfio_types.h" /* Appends file handles to the pool for the corresponding filenames * Returns 1 if successful or -1 on error */ int libbfio_file_pool_append_handles_for_names( libbfio_pool_t *pool, char * const names[], int number_of_names, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; static char *function = "libbfio_file_pool_append_handles_for_names"; size_t name_length = 0; int pool_entry = 0; int name_iterator = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( names == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid names.", function ); return( -1 ); } if( number_of_names <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid number of names zero or less.", function ); return( -1 ); } for( name_iterator = 0; name_iterator < number_of_names; name_iterator++ ) { name_length = narrow_string_length( names[ name_iterator ] ); if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle: %d.", function, name_iterator ); return( -1 ); } if( libbfio_file_set_name( file_io_handle, names[ name_iterator ], name_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name in file IO handle: %d.", function, name_iterator ); libbfio_handle_free( &file_io_handle, NULL ); return( -1 ); } if( libbfio_pool_append_handle( pool, &pool_entry, file_io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append file IO handle: %d to pool.", function, name_iterator ); libbfio_handle_free( &file_io_handle, NULL ); return( -1 ); } file_io_handle = NULL; } return( 1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Appends file handles to the pool for the corresponding filenames * Returns 1 if successful or -1 on error */ int libbfio_file_pool_append_handles_for_names_wide( libbfio_pool_t *pool, wchar_t * const names[], int number_of_names, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; static char *function = "libbfio_file_pool_append_handles_for_names_wide"; size_t name_length = 0; int pool_entry = 0; int name_iterator = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( names == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid names.", function ); return( -1 ); } if( number_of_names <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid number of names zero or less.", function ); return( -1 ); } for( name_iterator = 0; name_iterator < number_of_names; name_iterator++ ) { name_length = wide_string_length( names[ name_iterator ] ); if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle: %d.", function, name_iterator ); return( -1 ); } if( libbfio_file_set_name_wide( file_io_handle, names[ name_iterator ], name_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name in file IO handle: %d.", function, name_iterator ); libbfio_handle_free( &file_io_handle, NULL ); return( -1 ); } if( libbfio_pool_append_handle( pool, &pool_entry, file_io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append file IO handle: %d to pool.", function, name_iterator ); libbfio_handle_free( &file_io_handle, NULL ); return( -1 ); } file_io_handle = NULL; } return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libbfio/libbfio_file.c0000664000175000017500000002522513430101134022176 0ustar00lordyestalordyesta00000000000000/* * File functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libbfio_definitions.h" #include "libbfio_file.h" #include "libbfio_file_io_handle.h" #include "libbfio_handle.h" #include "libbfio_libcerror.h" #include "libbfio_libcpath.h" #include "libbfio_types.h" /* Creates a file handle * Make sure the value handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_file_initialize( libbfio_handle_t **handle, libcerror_error_t **error ) { libbfio_file_io_handle_t *file_io_handle = NULL; static char *function = "libbfio_file_initialize"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } if( *handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid handle value already set.", function ); return( -1 ); } if( libbfio_file_io_handle_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } if( libbfio_handle_initialize( handle, (intptr_t *) file_io_handle, (int (*)(intptr_t **, libcerror_error_t **)) libbfio_file_io_handle_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) libbfio_file_io_handle_clone, (int (*)(intptr_t *, int, libcerror_error_t **)) libbfio_file_io_handle_open, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_file_io_handle_close, (ssize_t (*)(intptr_t *, uint8_t *, size_t, libcerror_error_t **)) libbfio_file_io_handle_read_buffer, (ssize_t (*)(intptr_t *, const uint8_t *, size_t, libcerror_error_t **)) libbfio_file_io_handle_write_buffer, (off64_t (*)(intptr_t *, off64_t, int, libcerror_error_t **)) libbfio_file_io_handle_seek_offset, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_file_io_handle_exists, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_file_io_handle_is_open, (int (*)(intptr_t *, size64_t *, libcerror_error_t **)) libbfio_file_io_handle_get_size, LIBBFIO_FLAG_IO_HANDLE_MANAGED | LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_FUNCTION, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create handle.", function ); goto on_error; } return( 1 ); on_error: if( file_io_handle != NULL ) { libbfio_file_io_handle_free( &file_io_handle, NULL ); } return( -1 ); } /* Retrieves the name size of the file handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_get_name_size( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_get_name_size"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_io_handle_get_name_size( (libbfio_file_io_handle_t *) internal_handle->io_handle, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_get_name( libbfio_handle_t *handle, char *name, size_t name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_get_name"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_io_handle_get_name( (libbfio_file_io_handle_t *) internal_handle->io_handle, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file handle * Returns 1 if succesful or -1 on error */ int libbfio_file_set_name( libbfio_handle_t *handle, const char *name, size_t name_length, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; char *full_name = NULL; static char *function = "libbfio_file_set_name"; size_t full_name_size = 0; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libcpath_path_get_full_path( name, name_length, &full_name, &full_name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to determine full path.", function ); goto on_error; } if( libbfio_file_io_handle_set_name( (libbfio_file_io_handle_t *) internal_handle->io_handle, full_name, full_name_size - 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name.", function ); goto on_error; } if( ( full_name != NULL ) && ( full_name != name ) ) { memory_free( full_name ); } return( 1 ); on_error: if( ( full_name != NULL ) && ( full_name != name ) ) { memory_free( full_name ); } return( -1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Retrieves the name size of the file handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_get_name_size_wide( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_get_name_size_wide"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_io_handle_get_name_size_wide( (libbfio_file_io_handle_t *) internal_handle->io_handle, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_get_name_wide( libbfio_handle_t *handle, wchar_t *name, size_t name_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_file_get_name_wide"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_file_io_handle_get_name_wide( (libbfio_file_io_handle_t *) internal_handle->io_handle, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve name.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file handle * Returns 1 if succesful or -1 on error */ int libbfio_file_set_name_wide( libbfio_handle_t *handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; wchar_t *full_name = NULL; static char *function = "libbfio_file_set_name_wide"; size_t full_name_size = 0; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libcpath_path_get_full_path_wide( name, name_length, &full_name, &full_name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to determine full path.", function ); goto on_error; } if( libbfio_file_io_handle_set_name_wide( (libbfio_file_io_handle_t *) internal_handle->io_handle, full_name, full_name_size - 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set name.", function ); goto on_error; } if( ( full_name != NULL ) && ( full_name != name ) ) { memory_free( full_name ); } return( 1 ); on_error: if( ( full_name != NULL ) && ( full_name != name ) ) { memory_free( full_name ); } return( -1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libbfio/libbfio_pool.h0000664000175000017500000001347213430101134022236 0ustar00lordyestalordyesta00000000000000/* * The internal pool functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_POOL_H ) #define _LIBBFIO_POOL_H #include #include #include "libbfio_extern.h" #include "libbfio_libcdata.h" #include "libbfio_libcerror.h" #include "libbfio_libcthreads.h" #include "libbfio_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libbfio_internal_pool libbfio_internal_pool_t; struct libbfio_internal_pool { /* The number of used handles in the pool */ int number_of_used_handles; /* The number of open handles in the pool */ int number_of_open_handles; /* The maximum number of open handles in the pool */ int maximum_number_of_open_handles; /* The handles array */ libcdata_array_t *handles_array; /* A list containing the file IO handles in order of the last use * it starts with the last used at the beginning of the list * the value of the list element refers to the corresponding file IO handle */ libcdata_list_t *last_used_list; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBBFIO_EXTERN \ int libbfio_pool_initialize( libbfio_pool_t **pool, int number_of_handles, int maximum_number_of_open_handles, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_free( libbfio_pool_t **pool, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_clone( libbfio_pool_t **destination_pool, libbfio_pool_t *source_pool, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_resize( libbfio_pool_t *pool, int number_of_handles, libcerror_error_t **error ); int libbfio_internal_pool_open_handle( libbfio_internal_pool_t *internal_pool, libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ); int libbfio_internal_pool_append_handle_to_last_used_list( libbfio_internal_pool_t *internal_pool, const libbfio_handle_t *handle, libcerror_error_t **error ); int libbfio_internal_pool_move_handle_to_front_of_last_used_list( libbfio_internal_pool_t *internal_pool, libbfio_handle_t *handle, libcerror_error_t **error ); int libbfio_internal_pool_remove_handle_from_last_used_list( libbfio_internal_pool_t *internal_pool, const libbfio_handle_t *handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_get_number_of_handles( libbfio_pool_t *pool, int *number_of_handles, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_get_handle( libbfio_pool_t *pool, int entry, libbfio_handle_t **handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_append_handle( libbfio_pool_t *pool, int *entry, libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_set_handle( libbfio_pool_t *pool, int entry, libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_remove_handle( libbfio_pool_t *pool, int entry, libbfio_handle_t **handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_get_maximum_number_of_open_handles( libbfio_pool_t *pool, int *maximum_number_of_open_handles, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_set_maximum_number_of_open_handles( libbfio_pool_t *pool, int maximum_number_of_open_handles, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_open( libbfio_pool_t *pool, int entry, int access_flags, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_reopen( libbfio_pool_t *pool, int entry, int access_flags, libcerror_error_t **error ); int libbfio_internal_pool_close( libbfio_internal_pool_t *internal_pool, int entry, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_close( libbfio_pool_t *pool, int entry, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_close_all( libbfio_pool_t *pool, libcerror_error_t **error ); LIBBFIO_EXTERN \ ssize_t libbfio_pool_read_buffer( libbfio_pool_t *pool, int entry, uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBBFIO_EXTERN \ ssize_t libbfio_pool_write_buffer( libbfio_pool_t *pool, int entry, const uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBBFIO_EXTERN \ off64_t libbfio_pool_seek_offset( libbfio_pool_t *pool, int entry, off64_t offset, int whence, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_get_offset( libbfio_pool_t *pool, int entry, off64_t *offset, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_pool_get_size( libbfio_pool_t *pool, int entry, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_POOL_H ) */ libfsapfs-20190210/libbfio/libbfio_file_range.h0000664000175000017500000000511013430101134023346 0ustar00lordyestalordyesta00000000000000/* * File range functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_FILE_RANGE_H ) #define _LIBBFIO_FILE_RANGE_H #include #include #include "libbfio_extern.h" #include "libbfio_libcerror.h" #include "libbfio_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBBFIO_EXTERN \ int libbfio_file_range_initialize( libbfio_handle_t **handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_range_get_name_size( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_range_get_name( libbfio_handle_t *handle, char *name, size_t name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_range_set_name( libbfio_handle_t *handle, const char *name, size_t name_length, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBBFIO_EXTERN \ int libbfio_file_range_get_name_size_wide( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_range_get_name_wide( libbfio_handle_t *handle, wchar_t *name, size_t name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_range_set_name_wide( libbfio_handle_t *handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ LIBBFIO_EXTERN \ int libbfio_file_range_get( libbfio_handle_t *handle, off64_t *range_offset, size64_t *range_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_range_set( libbfio_handle_t *handle, off64_t range_offset, size64_t range_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_FILE_RANGE_H ) */ libfsapfs-20190210/libbfio/libbfio_system_string.h0000664000175000017500000000540013430101134024167 0ustar00lordyestalordyesta00000000000000/* * System string functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_SYSTEM_STRING_H ) #define _LIBBFIO_SYSTEM_STRING_H #include #include #include "libbfio_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int libbfio_system_string_size_to_narrow_string( const system_character_t *system_string, size_t system_string_size, size_t *narrow_string_size, libcerror_error_t **error ); int libbfio_system_string_copy_to_narrow_string( const system_character_t *system_string, size_t system_string_size, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ); int libbfio_system_string_size_from_narrow_string( const char *narrow_string, size_t narrow_string_size, size_t *system_string_size, libcerror_error_t **error ); int libbfio_system_string_copy_from_narrow_string( system_character_t *system_string, size_t system_string_size, const char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) int libbfio_system_string_size_to_wide_string( const system_character_t *system_string, size_t system_string_size, size_t *wide_string_size, libcerror_error_t **error ); int libbfio_system_string_copy_to_wide_string( const system_character_t *system_string, size_t system_string_size, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ); int libbfio_system_string_size_from_wide_string( const wchar_t *wide_string, size_t wide_string_size, size_t *system_string_size, libcerror_error_t **error ); int libbfio_system_string_copy_from_wide_string( system_character_t *system_string, size_t system_string_size, const wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_SYSTEM_STRING_H ) */ libfsapfs-20190210/libbfio/libbfio_file_io_handle.h0000664000175000017500000000776713430101134024220 0ustar00lordyestalordyesta00000000000000/* * File IO handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_FILE_IO_HANDLE_H ) #define _LIBBFIO_FILE_IO_HANDLE_H #include #include #include "libbfio_libcerror.h" #include "libbfio_libcfile.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libbfio_file_io_handle libbfio_file_io_handle_t; struct libbfio_file_io_handle { /* The name */ system_character_t *name; /* The size of the name */ size_t name_size; /* The file (handle) */ libcfile_file_t *file; /* The access flags */ int access_flags; }; int libbfio_file_io_handle_initialize( libbfio_file_io_handle_t **file_io_handle, libcerror_error_t **error ); int libbfio_file_io_handle_free( libbfio_file_io_handle_t **file_io_handle, libcerror_error_t **error ); int libbfio_file_io_handle_clone( libbfio_file_io_handle_t **destination_file_io_handle, libbfio_file_io_handle_t *source_file_io_handle, libcerror_error_t **error ); int libbfio_file_io_handle_get_name_size( libbfio_file_io_handle_t *file_io_handle, size_t *name_size, libcerror_error_t **error ); int libbfio_file_io_handle_get_name( libbfio_file_io_handle_t *file_io_handle, char *name, size_t name_size, libcerror_error_t **error ); int libbfio_file_io_handle_set_name( libbfio_file_io_handle_t *file_io_handle, const char *name, size_t name_length, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) int libbfio_file_io_handle_get_name_size_wide( libbfio_file_io_handle_t *file_io_handle, size_t *name_size, libcerror_error_t **error ); int libbfio_file_io_handle_get_name_wide( libbfio_file_io_handle_t *file_io_handle, wchar_t *name, size_t name_size, libcerror_error_t **error ); int libbfio_file_io_handle_set_name_wide( libbfio_file_io_handle_t *file_io_handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ int libbfio_file_io_handle_open( libbfio_file_io_handle_t *file_io_handle, int access_flags, libcerror_error_t **error ); int libbfio_file_io_handle_close( libbfio_file_io_handle_t *file_io_handle, libcerror_error_t **error ); ssize_t libbfio_file_io_handle_read_buffer( libbfio_file_io_handle_t *file_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ); ssize_t libbfio_file_io_handle_write_buffer( libbfio_file_io_handle_t *file_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ); off64_t libbfio_file_io_handle_seek_offset( libbfio_file_io_handle_t *file_io_handle, off64_t offset, int whence, libcerror_error_t **error ); int libbfio_file_io_handle_exists( libbfio_file_io_handle_t *file_io_handle, libcerror_error_t **error ); int libbfio_file_io_handle_is_open( libbfio_file_io_handle_t *file_io_handle, libcerror_error_t **error ); int libbfio_file_io_handle_get_size( libbfio_file_io_handle_t *file_io_handle, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_FILE_IO_HANDLE_H ) */ libfsapfs-20190210/libbfio/libbfio_memory_range_io_handle.c0000664000175000017500000005065413430101134025751 0ustar00lordyestalordyesta00000000000000/* * Memory range IO handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #include "libbfio_definitions.h" #include "libbfio_libcerror.h" #include "libbfio_memory_range_io_handle.h" /* Creates a memory range IO handle * Make sure the value memory_range_io_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_memory_range_io_handle_initialize( libbfio_memory_range_io_handle_t **memory_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_initialize"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( *memory_range_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid memory range IO handle value already set.", function ); return( -1 ); } *memory_range_io_handle = memory_allocate_structure( libbfio_memory_range_io_handle_t ); if( *memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create memory range IO handle.", function ); goto on_error; } if( memory_set( *memory_range_io_handle, 0, sizeof( libbfio_memory_range_io_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear memory range IO handle.", function ); goto on_error; } return( 1 ); on_error: if( *memory_range_io_handle != NULL ) { memory_free( *memory_range_io_handle ); *memory_range_io_handle = NULL; } return( -1 ); } /* Frees a memory range IO handle * Returns 1 if succesful or -1 on error */ int libbfio_memory_range_io_handle_free( libbfio_memory_range_io_handle_t **memory_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_free"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( *memory_range_io_handle != NULL ) { memory_free( *memory_range_io_handle ); *memory_range_io_handle = NULL; } return( 1 ); } /* Clones (duplicates) the memory range IO handle and its attributes * Returns 1 if succesful or -1 on error */ int libbfio_memory_range_io_handle_clone( libbfio_memory_range_io_handle_t **destination_memory_range_io_handle, libbfio_memory_range_io_handle_t *source_memory_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_clone"; if( destination_memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination memory range IO handle.", function ); return( -1 ); } if( *destination_memory_range_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination memory range IO handle already set.", function ); return( -1 ); } if( source_memory_range_io_handle == NULL ) { *destination_memory_range_io_handle = NULL; return( 1 ); } if( libbfio_memory_range_io_handle_initialize( destination_memory_range_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create memory range IO handle.", function ); return( -1 ); } if( *destination_memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing destination memory range IO handle.", function ); return( -1 ); } ( *destination_memory_range_io_handle )->range_start = source_memory_range_io_handle->range_start; ( *destination_memory_range_io_handle )->range_size = source_memory_range_io_handle->range_size; ( *destination_memory_range_io_handle )->range_offset = source_memory_range_io_handle->range_offset; ( *destination_memory_range_io_handle )->access_flags = source_memory_range_io_handle->access_flags; return( 1 ); } /* Retrieves the range of the memory range IO handle * Returns 1 if succesful or -1 on error */ int libbfio_memory_range_io_handle_get( libbfio_memory_range_io_handle_t *memory_range_io_handle, uint8_t **range_start, size_t *range_size, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_get"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range start.", function ); return( -1 ); } if( range_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range size.", function ); return( -1 ); } *range_start = memory_range_io_handle->range_start; *range_size = memory_range_io_handle->range_size; return( 1 ); } /* Sets the range of the memory range IO handle * Returns 1 if succesful or -1 on error */ int libbfio_memory_range_io_handle_set( libbfio_memory_range_io_handle_t *memory_range_io_handle, uint8_t *range_start, size_t range_size, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_set"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range start.", function ); return( -1 ); } if( range_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range size value exceeds maximum.", function ); return( -1 ); } memory_range_io_handle->range_start = range_start; memory_range_io_handle->range_size = range_size; return( 1 ); } /* Opens the memory range IO handle * Returns 1 if successful or -1 on error */ int libbfio_memory_range_io_handle_open( libbfio_memory_range_io_handle_t *memory_range_io_handle, int access_flags, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_open"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( memory_range_io_handle->range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - missing range start.", function ); return( -1 ); } if( memory_range_io_handle->is_open != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid memory range IO handle - already open.", function ); return( -1 ); } /* Either read or write flag should be set */ if( ( ( access_flags & LIBBFIO_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags: 0x%02x.", function ); return( -1 ); } memory_range_io_handle->range_offset = 0; memory_range_io_handle->access_flags = access_flags; memory_range_io_handle->is_open = 1; return( 1 ); } /* Closes the memory range IO handle * Returns 0 if successful or -1 on error */ int libbfio_memory_range_io_handle_close( libbfio_memory_range_io_handle_t *memory_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_close"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( memory_range_io_handle->range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - missing range start.", function ); return( -1 ); } if( memory_range_io_handle->is_open == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - not open.", function ); return( -1 ); } memory_range_io_handle->is_open = 0; return( 0 ); } /* Reads a buffer from the memory range IO handle * Returns the number of bytes read if successful, or -1 on error */ ssize_t libbfio_memory_range_io_handle_read_buffer( libbfio_memory_range_io_handle_t *memory_range_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_read_buffer"; size_t read_size = 0; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( memory_range_io_handle->range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - invalid range start.", function ); return( -1 ); } if( memory_range_io_handle->is_open == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - not open.", function ); return( -1 ); } if( ( memory_range_io_handle->access_flags & LIBBFIO_ACCESS_FLAG_READ ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - no read access.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( memory_range_io_handle->range_offset > memory_range_io_handle->range_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: range offset exceeds range size.", function ); return( -1 ); } /* Check if the end of the data was reached */ if( memory_range_io_handle->range_offset == memory_range_io_handle->range_size ) { return( 0 ); } /* Check the amount of data available */ read_size = memory_range_io_handle->range_size - memory_range_io_handle->range_offset; /* Cannot read more data than available */ if( read_size > size ) { read_size = size; } if( memory_copy( buffer, &( memory_range_io_handle->range_start[ memory_range_io_handle->range_offset ] ), read_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to read buffer from memory range.", function ); return( -1 ); } memory_range_io_handle->range_offset += read_size; return( (ssize_t) read_size ); } /* Writes a buffer to the memory range IO handle * Returns the number of bytes written if successful, or -1 on error */ ssize_t libbfio_memory_range_io_handle_write_buffer( libbfio_memory_range_io_handle_t *memory_range_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_write_buffer"; size_t write_size = 0; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( memory_range_io_handle->range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - invalid range start.", function ); return( -1 ); } if( memory_range_io_handle->is_open == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - not open.", function ); return( -1 ); } if( ( memory_range_io_handle->access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - no write access.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( memory_range_io_handle->range_offset >= memory_range_io_handle->range_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: range offset exceeds range size.", function ); return( -1 ); } /* Check the amount of data available */ write_size = memory_range_io_handle->range_size - memory_range_io_handle->range_offset; /* Cannot write more data than available */ if( write_size > size ) { write_size = size; } if( memory_copy( &( memory_range_io_handle->range_start[ memory_range_io_handle->range_offset ] ), buffer, size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to write buffer to memory range.", function ); return( -1 ); } memory_range_io_handle->range_offset += write_size; return( (ssize_t) write_size ); } /* Seeks a certain offset within the memory range IO handle * Returns the offset if the seek is successful or -1 on error */ off64_t libbfio_memory_range_io_handle_seek_offset( libbfio_memory_range_io_handle_t *memory_range_io_handle, off64_t offset, int whence, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_seek_offset"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( memory_range_io_handle->range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - invalid range start.", function ); return( -1 ); } if( memory_range_io_handle->is_open == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - not open.", function ); return( -1 ); } if( offset > (off64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid offset value exceeds maximum.", function ); return( -1 ); } if( ( whence != SEEK_CUR ) && ( whence != SEEK_END ) && ( whence != SEEK_SET ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported whence.", function ); return( -1 ); } if( whence == SEEK_CUR ) { offset += memory_range_io_handle->range_offset; } else if( whence == SEEK_END ) { offset += memory_range_io_handle->range_size; } if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset.", function ); return( -1 ); } if( offset > (off64_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid offset value exceeds maximum.", function ); return( -1 ); } memory_range_io_handle->range_offset = (size_t) offset; return( offset ); } /* Function to determine if a memory range exists * Returns 1 if the memory range exists, 0 if not or -1 on error */ int libbfio_memory_range_io_handle_exists( libbfio_memory_range_io_handle_t *memory_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_exists"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( memory_range_io_handle->range_start == NULL ) { return( 0 ); } return( 1 ); } /* Check if the memory range is open * Returns 1 if open, 0 if not or -1 on error */ int libbfio_memory_range_io_handle_is_open( libbfio_memory_range_io_handle_t *memory_range_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_is_open"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( ( memory_range_io_handle->range_start == NULL ) || ( memory_range_io_handle->is_open == 0 ) ) { return( 0 ); } return( 1 ); } /* Retrieves the memory range size * Returns 1 if successful or -1 on error */ int libbfio_memory_range_io_handle_get_size( libbfio_memory_range_io_handle_t *memory_range_io_handle, size64_t *size, libcerror_error_t **error ) { static char *function = "libbfio_memory_range_io_handle_get_size"; if( memory_range_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid memory range IO handle.", function ); return( -1 ); } if( memory_range_io_handle->range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid memory range IO handle - invalid range start.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } *size = (size64_t) memory_range_io_handle->range_size; return( 1 ); } libfsapfs-20190210/libbfio/libbfio_file.h0000664000175000017500000000427413430101134022204 0ustar00lordyestalordyesta00000000000000/* * File functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_FILE_H ) #define _LIBBFIO_FILE_H #include #include #include "libbfio_extern.h" #include "libbfio_libcerror.h" #include "libbfio_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBBFIO_EXTERN \ int libbfio_file_initialize( libbfio_handle_t **handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_get_name_size( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_get_name( libbfio_handle_t *handle, char *name, size_t name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_set_name( libbfio_handle_t *handle, const char *name, size_t name_length, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBBFIO_EXTERN \ int libbfio_file_get_name_size_wide( libbfio_handle_t *handle, size_t *name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_get_name_wide( libbfio_handle_t *handle, wchar_t *name, size_t name_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_file_set_name_wide( libbfio_handle_t *handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_FILE_H ) */ libfsapfs-20190210/libbfio/libbfio_support.c0000664000175000017500000000442613430101134022773 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libbfio_definitions.h" #include "libbfio_libcerror.h" #include "libbfio_libclocale.h" #include "libbfio_support.h" #if !defined( HAVE_LOCAL_LIBBFIO ) /* Returns the library version as a string */ const char *libbfio_get_version( void ) { return( (const char *) LIBBFIO_VERSION_STRING ); } /* Retrieves the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libbfio_get_codepage( int *codepage, libcerror_error_t **error ) { static char *function = "libbfio_get_codepage"; if( libclocale_codepage_get( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve codepage.", function ); return( -1 ); } return( 1 ); } /* Sets the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libbfio_set_codepage( int codepage, libcerror_error_t **error ) { static char *function = "libbfio_set_codepage"; if( libclocale_codepage_set( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set codepage.", function ); return( -1 ); } return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBBFIO ) */ libfsapfs-20190210/libbfio/libbfio_file_pool.h0000664000175000017500000000315213430101134023227 0ustar00lordyestalordyesta00000000000000/* * File pool functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_FILE_POOL_H ) #define _LIBBFIO_FILE_POOL_H #include #include #include "libbfio_extern.h" #include "libbfio_libcerror.h" #include "libbfio_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBBFIO_EXTERN \ int libbfio_file_pool_append_handles_for_names( libbfio_pool_t *pool, char * const names[], int number_of_names, int access_flags, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBBFIO_EXTERN \ int libbfio_file_pool_append_handles_for_names_wide( libbfio_pool_t *pool, wchar_t * const names[], int number_of_names, int access_flags, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_FILE_POOL_H ) */ libfsapfs-20190210/libbfio/libbfio_memory_range_io_handle.h0000664000175000017500000000737513430101134025760 0ustar00lordyestalordyesta00000000000000/* * Memory range IO handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_MEMORY_RANGE_IO_HANDLE_H ) #define _LIBBFIO_MEMORY_RANGE_IO_HANDLE_H #include #include #include "libbfio_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libbfio_memory_range_io_handle libbfio_memory_range_io_handle_t; struct libbfio_memory_range_io_handle { /* The start of the memory range */ uint8_t *range_start; /* The size of the memory range */ size_t range_size; /* The current offset in the memory range */ size_t range_offset; /* Value to indicate the memory range is open */ uint8_t is_open; /* The current access flags */ int access_flags; }; int libbfio_memory_range_io_handle_initialize( libbfio_memory_range_io_handle_t **memory_range_io_handle, libcerror_error_t **error ); int libbfio_memory_range_io_handle_free( libbfio_memory_range_io_handle_t **memory_range_io_handle, libcerror_error_t **error ); int libbfio_memory_range_io_handle_clone( libbfio_memory_range_io_handle_t **destination_memory_range_io_handle, libbfio_memory_range_io_handle_t *source_memory_range_io_handle, libcerror_error_t **error ); int libbfio_memory_range_io_handle_get( libbfio_memory_range_io_handle_t *memory_range_io_handle, uint8_t **range_start, size_t *range_size, libcerror_error_t **error ); int libbfio_memory_range_io_handle_set( libbfio_memory_range_io_handle_t *memory_range_io_handle, uint8_t *range_start, size_t range_size, libcerror_error_t **error ); int libbfio_memory_range_io_handle_open( libbfio_memory_range_io_handle_t *memory_range_io_handle, int access_flags, libcerror_error_t **error ); int libbfio_memory_range_io_handle_close( libbfio_memory_range_io_handle_t *memory_range_io_handle, libcerror_error_t **error ); ssize_t libbfio_memory_range_io_handle_read_buffer( libbfio_memory_range_io_handle_t *memory_range_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ); ssize_t libbfio_memory_range_io_handle_write_buffer( libbfio_memory_range_io_handle_t *memory_range_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ); off64_t libbfio_memory_range_io_handle_seek_offset( libbfio_memory_range_io_handle_t *memory_range_io_handle, off64_t offset, int whence, libcerror_error_t **error ); int libbfio_memory_range_io_handle_exists( libbfio_memory_range_io_handle_t *memory_range_io_handle, libcerror_error_t **error ); int libbfio_memory_range_io_handle_is_open( libbfio_memory_range_io_handle_t *memory_range_io_handle, libcerror_error_t **error ); int libbfio_memory_range_io_handle_get_size( libbfio_memory_range_io_handle_t *memory_range_io_handle, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_MEMORY_RANGE_IO_HANDLE_H ) */ libfsapfs-20190210/libbfio/libbfio_error.h0000664000175000017500000000335613430101134022416 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_INTERNAL_ERROR_H ) #define _LIBBFIO_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBBFIO ) #include #endif #include "libbfio_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBBFIO ) LIBBFIO_EXTERN \ void libbfio_error_free( libbfio_error_t **error ); LIBBFIO_EXTERN \ int libbfio_error_fprint( libbfio_error_t *error, FILE *stream ); LIBBFIO_EXTERN \ int libbfio_error_sprint( libbfio_error_t *error, char *string, size_t size ); LIBBFIO_EXTERN \ int libbfio_error_backtrace_fprint( libbfio_error_t *error, FILE *stream ); LIBBFIO_EXTERN \ int libbfio_error_backtrace_sprint( libbfio_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBBFIO ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libbfio/libbfio_libcthreads.h0000664000175000017500000000360013430101134023541 0ustar00lordyestalordyesta00000000000000/* * The libcthreads header wrapper * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_LIBCTHREADS_H ) #define _LIBBFIO_LIBCTHREADS_H #include #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) #define HAVE_LIBBFIO_MULTI_THREAD_SUPPORT #endif #if defined( HAVE_LIBBFIO_MULTI_THREAD_SUPPORT ) /* Define HAVE_LOCAL_LIBCTHREADS for local use of libcthreads */ #if defined( HAVE_LOCAL_LIBCTHREADS ) #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCTHREADS_DLL_IMPORT * before including libcthreads.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCTHREADS_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCTHREADS ) */ #endif /* defined( HAVE_LIBBFIO_MULTI_THREAD_SUPPORT ) */ #endif /* !defined( _LIBBFIO_LIBCTHREADS_H ) */ libfsapfs-20190210/libbfio/libbfio_system_string.c0000664000175000017500000006170613430101134024175 0ustar00lordyestalordyesta00000000000000/* * System string functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #include "libbfio_libcerror.h" #include "libbfio_libclocale.h" #include "libbfio_libuna.h" #include "libbfio_system_string.h" #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) && SIZEOF_WCHAR_T != 2 && SIZEOF_WCHAR_T != 4 #error Unsupported size of wchar_t #endif /* Determines the size of a narrow string from a system string * Returns 1 if successful or -1 on error */ int libbfio_system_string_size_to_narrow_string( const system_character_t *system_string, size_t system_string_size, size_t *narrow_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_size_to_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) system_string, system_string_size, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) system_string, system_string_size, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) system_string, system_string_size, libclocale_codepage, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) system_string, system_string_size, libclocale_codepage, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow string size.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string size.", function ); return( -1 ); } *narrow_string_size = system_string_size; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string to a narrow string * Returns 1 if successful or -1 on error */ int libbfio_system_string_copy_to_narrow_string( const system_character_t *system_string, size_t system_string_size, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_copy_to_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf32_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf16_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf32_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf16_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set narrow string.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string_size < system_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid narrow string size value too small.", function ); return( -1 ); } if( system_string_copy( narrow_string, system_string, system_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set narrow string.", function ); return( -1 ); } narrow_string[ system_string_size - 1 ] = 0; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Determines the size of a system string from a narrow string * Returns 1 if successful or -1 on error */ int libbfio_system_string_size_from_narrow_string( const char *narrow_string, size_t narrow_string_size, size_t *system_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_size_from_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_utf8( (libuna_utf8_character_t *) narrow_string, narrow_string_size, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_utf8( (libuna_utf8_character_t *) narrow_string, narrow_string_size, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_byte_stream( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_byte_stream( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine system string size.", function ); return( -1 ); } #else if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string size.", function ); return( -1 ); } *system_string_size = narrow_string_size; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string from a narrow string * Returns 1 if successful or -1 on error */ int libbfio_system_string_copy_from_narrow_string( system_character_t *system_string, size_t system_string_size, const char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_copy_from_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_utf8( (libuna_utf32_character_t *) system_string, system_string_size, (libuna_utf8_character_t *) narrow_string, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_utf8( (libuna_utf16_character_t *) system_string, system_string_size, (libuna_utf8_character_t *) narrow_string, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_byte_stream( (libuna_utf32_character_t *) system_string, system_string_size, (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_byte_stream( (libuna_utf16_character_t *) system_string, system_string_size, (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set system string.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size < narrow_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid system string size value too small.", function ); return( -1 ); } if( system_string_copy( system_string, narrow_string, narrow_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set narrow string.", function ); return( -1 ); } system_string[ narrow_string_size - 1 ] = 0; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Determines the size of a wide string from a system string * Returns 1 if successful or -1 on error */ int libbfio_system_string_size_to_wide_string( const system_character_t *system_string, size_t system_string_size, size_t *wide_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_size_to_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string size.", function ); return( -1 ); } *wide_string_size = system_string_size; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_utf8( (libuna_utf8_character_t *) system_string, system_string_size, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_utf8( (libuna_utf8_character_t *) system_string, system_string_size, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_byte_stream( (uint8_t *) system_string, system_string_size, libclocale_codepage, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_byte_stream( (uint8_t *) system_string, system_string_size, libclocale_codepage, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide string size.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string to a wide string * Returns 1 if successful or -1 on error */ int libbfio_system_string_copy_to_wide_string( const system_character_t *system_string, size_t system_string_size, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_copy_to_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( wide_string_size < system_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid wide string size value too small.", function ); return( -1 ); } if( system_string_copy( wide_string, system_string, system_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set wide string.", function ); return( -1 ); } wide_string[ system_string_size - 1 ] = 0; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_utf8( (libuna_utf32_character_t *) wide_string, wide_string_size, (libuna_utf8_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_utf8( (libuna_utf16_character_t *) wide_string, wide_string_size, (libuna_utf8_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_byte_stream( (libuna_utf32_character_t *) wide_string, wide_string_size, (uint8_t *) system_string, system_string_size, libclocale_codepage, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_byte_stream( (libuna_utf16_character_t *) wide_string, wide_string_size, (uint8_t *) system_string, system_string_size, libclocale_codepage, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set wide string.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Determines the size of a system string from a wide string * Returns 1 if successful or -1 on error */ int libbfio_system_string_size_from_wide_string( const wchar_t *wide_string, size_t wide_string_size, size_t *system_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_size_from_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string size.", function ); return( -1 ); } *system_string_size = wide_string_size; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) wide_string, wide_string_size, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) wide_string, wide_string_size, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) wide_string, wide_string_size, libclocale_codepage, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) wide_string, wide_string_size, libclocale_codepage, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide string size.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string from a wide string * Returns 1 if successful or -1 on error */ int libbfio_system_string_copy_from_wide_string( system_character_t *system_string, size_t system_string_size, const wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ) { static char *function = "libbfio_system_string_copy_from_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size < wide_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid system string size value too small.", function ); return( -1 ); } if( system_string_copy( system_string, wide_string, wide_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set wide string.", function ); return( -1 ); } system_string[ wide_string_size - 1 ] = 0; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) system_string, system_string_size, (libuna_utf32_character_t *) wide_string, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) system_string, system_string_size, (libuna_utf16_character_t *) wide_string, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) system_string, system_string_size, libclocale_codepage, (libuna_utf32_character_t *) wide_string, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) system_string, system_string_size, libclocale_codepage, (libuna_utf16_character_t *) wide_string, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set wide string.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libbfio/libbfio_memory_range.h0000664000175000017500000000310013430101134023734 0ustar00lordyestalordyesta00000000000000/* * Memory range functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_MEMORY_RANGE_H ) #define _LIBBFIO_MEMORY_RANGE_H #include #include #include "libbfio_extern.h" #include "libbfio_libcerror.h" #include "libbfio_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBBFIO_EXTERN \ int libbfio_memory_range_initialize( libbfio_handle_t **handle, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_memory_range_get( libbfio_handle_t *handle, uint8_t **range_start, size_t *range_size, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_memory_range_set( libbfio_handle_t *handle, uint8_t *range_start, size_t range_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_MEMORY_RANGE_H ) */ libfsapfs-20190210/libbfio/libbfio_file_range_io_handle.h0000664000175000017500000001131013430101134025347 0ustar00lordyestalordyesta00000000000000/* * File range IO handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_FILE_RANGE_IO_HANDLE_H ) #define _LIBBFIO_FILE_RANGE_IO_HANDLE_H #include #include #include "libbfio_file_io_handle.h" #include "libbfio_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libbfio_file_range_io_handle libbfio_file_range_io_handle_t; struct libbfio_file_range_io_handle { /* The file IO handle */ libbfio_file_io_handle_t *file_io_handle; /* The range (start) offset */ off64_t range_offset; /* The range size */ size64_t range_size; }; int libbfio_file_range_io_handle_initialize( libbfio_file_range_io_handle_t **file_range_io_handle, libcerror_error_t **error ); int libbfio_file_range_io_handle_free( libbfio_file_range_io_handle_t **file_range_io_handle, libcerror_error_t **error ); int libbfio_file_range_io_handle_clone( libbfio_file_range_io_handle_t **destination_file_range_io_handle, libbfio_file_range_io_handle_t *source_file_range_io_handle, libcerror_error_t **error ); int libbfio_file_range_io_handle_get_name_size( libbfio_file_range_io_handle_t *file_range_io_handle, size_t *name_size, libcerror_error_t **error ); int libbfio_file_range_io_handle_get_name( libbfio_file_range_io_handle_t *file_range_io_handle, char *name, size_t name_size, libcerror_error_t **error ); int libbfio_file_range_io_handle_set_name( libbfio_file_range_io_handle_t *file_range_io_handle, const char *name, size_t name_length, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) int libbfio_file_range_io_handle_get_name_size_wide( libbfio_file_range_io_handle_t *file_range_io_handle, size_t *name_size, libcerror_error_t **error ); int libbfio_file_range_io_handle_get_name_wide( libbfio_file_range_io_handle_t *file_range_io_handle, wchar_t *name, size_t name_size, libcerror_error_t **error ); int libbfio_file_range_io_handle_set_name_wide( libbfio_file_range_io_handle_t *file_range_io_handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ int libbfio_file_range_io_handle_get( libbfio_file_range_io_handle_t *file_range_io_handle, off64_t *range_offset, size64_t *range_size, libcerror_error_t **error ); int libbfio_file_range_io_handle_set( libbfio_file_range_io_handle_t *file_range_io_handle, off64_t range_offset, size64_t range_size, libcerror_error_t **error ); int libbfio_file_range_io_handle_open( libbfio_file_range_io_handle_t *file_range_io_handle, int access_flags, libcerror_error_t **error ); int libbfio_file_range_io_handle_close( libbfio_file_range_io_handle_t *file_range_io_handle, libcerror_error_t **error ); ssize_t libbfio_file_range_io_handle_read_buffer( libbfio_file_range_io_handle_t *file_range_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ); ssize_t libbfio_file_range_io_handle_write_buffer( libbfio_file_range_io_handle_t *file_range_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ); off64_t libbfio_file_range_io_handle_seek_offset( libbfio_file_range_io_handle_t *file_range_io_handle, off64_t offset, int whence, libcerror_error_t **error ); int libbfio_file_range_io_handle_exists( libbfio_file_range_io_handle_t *file_range_io_handle, libcerror_error_t **error ); int libbfio_file_range_io_handle_is_open( libbfio_file_range_io_handle_t *file_range_io_handle, libcerror_error_t **error ); int libbfio_file_range_io_handle_get_size( libbfio_file_range_io_handle_t *file_range_io_handle, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_FILE_RANGE_IO_HANDLE_H ) */ libfsapfs-20190210/libbfio/libbfio_memory_range.c0000664000175000017500000001327713430101134023747 0ustar00lordyestalordyesta00000000000000/* * Memory range functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #include "libbfio_definitions.h" #include "libbfio_handle.h" #include "libbfio_libcerror.h" #include "libbfio_memory_range.h" #include "libbfio_memory_range_io_handle.h" #include "libbfio_types.h" /* Creates a memory range handle * Make sure the value handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_memory_range_initialize( libbfio_handle_t **handle, libcerror_error_t **error ) { libbfio_memory_range_io_handle_t *memory_range_io_handle = NULL; static char *function = "libbfio_memory_range_initialize"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } if( *handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid handle value already set.", function ); return( -1 ); } if( libbfio_memory_range_io_handle_initialize( &memory_range_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create memory range IO handle.", function ); goto on_error; } if( libbfio_handle_initialize( handle, (intptr_t *) memory_range_io_handle, (int (*)(intptr_t **, libcerror_error_t **)) libbfio_memory_range_io_handle_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) libbfio_memory_range_io_handle_clone, (int (*)(intptr_t *, int, libcerror_error_t **)) libbfio_memory_range_io_handle_open, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_memory_range_io_handle_close, (ssize_t (*)(intptr_t *, uint8_t *, size_t, libcerror_error_t **)) libbfio_memory_range_io_handle_read_buffer, (ssize_t (*)(intptr_t *, const uint8_t *, size_t, libcerror_error_t **)) libbfio_memory_range_io_handle_write_buffer, (off64_t (*)(intptr_t *, off64_t, int, libcerror_error_t **)) libbfio_memory_range_io_handle_seek_offset, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_memory_range_io_handle_exists, (int (*)(intptr_t *, libcerror_error_t **)) libbfio_memory_range_io_handle_is_open, (int (*)(intptr_t *, size64_t *, libcerror_error_t **)) libbfio_memory_range_io_handle_get_size, LIBBFIO_FLAG_IO_HANDLE_MANAGED | LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_FUNCTION, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create handle.", function ); goto on_error; } return( 1 ); on_error: if( memory_range_io_handle != NULL ) { libbfio_memory_range_io_handle_free( &memory_range_io_handle, NULL ); } return( -1 ); } /* Retrieves the range of the memory range handle * Returns 1 if succesful or -1 on error */ int libbfio_memory_range_get( libbfio_handle_t *handle, uint8_t **range_start, size_t *range_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_memory_range_get"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_memory_range_io_handle_get( (libbfio_memory_range_io_handle_t *) internal_handle->io_handle, range_start, range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range from file IO handle.", function ); return( -1 ); } return( 1 ); } /* Sets the range of the memory range handle * Returns 1 if succesful or -1 on error */ int libbfio_memory_range_set( libbfio_handle_t *handle, uint8_t *range_start, size_t range_size, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_memory_range_set"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_memory_range_io_handle_set( (libbfio_memory_range_io_handle_t *) internal_handle->io_handle, range_start, range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set range in file IO handle.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libbfio/Makefile.in0000664000175000017500000010443713430101253021477 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libbfio ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libbfio_la_LIBADD = am__libbfio_la_SOURCES_DIST = libbfio_codepage.h libbfio_definitions.h \ libbfio_error.c libbfio_error.h libbfio_extern.h \ libbfio_file.c libbfio_file.h libbfio_file_io_handle.c \ libbfio_file_io_handle.h libbfio_file_pool.c \ libbfio_file_pool.h libbfio_file_range.c libbfio_file_range.h \ libbfio_file_range_io_handle.c libbfio_file_range_io_handle.h \ libbfio_handle.c libbfio_handle.h libbfio_libcdata.h \ libbfio_libcerror.h libbfio_libcfile.h libbfio_libclocale.h \ libbfio_libcpath.h libbfio_libcthreads.h libbfio_libuna.h \ libbfio_memory_range.c libbfio_memory_range.h \ libbfio_memory_range_io_handle.c \ libbfio_memory_range_io_handle.h libbfio_pool.c libbfio_pool.h \ libbfio_support.c libbfio_support.h libbfio_system_string.c \ libbfio_system_string.h libbfio_types.h libbfio_unused.h @HAVE_LOCAL_LIBBFIO_TRUE@am_libbfio_la_OBJECTS = libbfio_error.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_io_handle.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_pool.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_range.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_range_io_handle.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_handle.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_memory_range.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_memory_range_io_handle.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_pool.lo libbfio_support.lo \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_system_string.lo libbfio_la_OBJECTS = $(am_libbfio_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBBFIO_TRUE@am_libbfio_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libbfio_error.Plo \ ./$(DEPDIR)/libbfio_file.Plo \ ./$(DEPDIR)/libbfio_file_io_handle.Plo \ ./$(DEPDIR)/libbfio_file_pool.Plo \ ./$(DEPDIR)/libbfio_file_range.Plo \ ./$(DEPDIR)/libbfio_file_range_io_handle.Plo \ ./$(DEPDIR)/libbfio_handle.Plo \ ./$(DEPDIR)/libbfio_memory_range.Plo \ ./$(DEPDIR)/libbfio_memory_range_io_handle.Plo \ ./$(DEPDIR)/libbfio_pool.Plo ./$(DEPDIR)/libbfio_support.Plo \ ./$(DEPDIR)/libbfio_system_string.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libbfio_la_SOURCES) DIST_SOURCES = $(am__libbfio_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBBFIO_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBBFIO_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBBFIO_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCTHREADS_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCLOCALE_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCNOTIFY_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCDATA_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCSPLIT_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCFILE_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBCPATH_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @LIBUNA_CPPFLAGS@ \ @HAVE_LOCAL_LIBBFIO_TRUE@ @PTHREAD_CPPFLAGS@ @HAVE_LOCAL_LIBBFIO_TRUE@noinst_LTLIBRARIES = libbfio.la @HAVE_LOCAL_LIBBFIO_TRUE@libbfio_la_SOURCES = \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_codepage.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_definitions.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_error.c libbfio_error.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_extern.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file.c libbfio_file.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_io_handle.c libbfio_file_io_handle.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_pool.c libbfio_file_pool.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_range.c libbfio_file_range.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_file_range_io_handle.c libbfio_file_range_io_handle.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_handle.c libbfio_handle.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_libcdata.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_libcerror.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_libcfile.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_libclocale.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_libcpath.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_libcthreads.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_libuna.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_memory_range.c libbfio_memory_range.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_memory_range_io_handle.c libbfio_memory_range_io_handle.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_pool.c libbfio_pool.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_support.c libbfio_support.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_system_string.c libbfio_system_string.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_types.h \ @HAVE_LOCAL_LIBBFIO_TRUE@ libbfio_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libbfio/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libbfio/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libbfio.la: $(libbfio_la_OBJECTS) $(libbfio_la_DEPENDENCIES) $(EXTRA_libbfio_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libbfio_la_rpath) $(libbfio_la_OBJECTS) $(libbfio_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_file.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_file_io_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_file_pool.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_file_range.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_file_range_io_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_memory_range.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_memory_range_io_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_pool.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libbfio_system_string.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libbfio_error.Plo -rm -f ./$(DEPDIR)/libbfio_file.Plo -rm -f ./$(DEPDIR)/libbfio_file_io_handle.Plo -rm -f ./$(DEPDIR)/libbfio_file_pool.Plo -rm -f ./$(DEPDIR)/libbfio_file_range.Plo -rm -f ./$(DEPDIR)/libbfio_file_range_io_handle.Plo -rm -f ./$(DEPDIR)/libbfio_handle.Plo -rm -f ./$(DEPDIR)/libbfio_memory_range.Plo -rm -f ./$(DEPDIR)/libbfio_memory_range_io_handle.Plo -rm -f ./$(DEPDIR)/libbfio_pool.Plo -rm -f ./$(DEPDIR)/libbfio_support.Plo -rm -f ./$(DEPDIR)/libbfio_system_string.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libbfio ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libbfio_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libbfio/libbfio_pool.c0000664000175000017500000023330013430101134022223 0ustar00lordyestalordyesta00000000000000/* * The internal pool functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #include "libbfio_definitions.h" #include "libbfio_handle.h" #include "libbfio_libcdata.h" #include "libbfio_libcerror.h" #include "libbfio_pool.h" #include "libbfio_types.h" /* Creates a pool * Make sure the value pool is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_pool_initialize( libbfio_pool_t **pool, int number_of_handles, int maximum_number_of_open_handles, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_initialize"; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( *pool != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid pool value already set.", function ); return( -1 ); } if( number_of_handles < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid number of handles value less than zero.", function ); return( -1 ); } if( maximum_number_of_open_handles < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid maximum number of open handles value less than zero.", function ); return( -1 ); } internal_pool = memory_allocate_structure( libbfio_internal_pool_t ); if( internal_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create pool.", function ); goto on_error; } if( memory_set( internal_pool, 0, sizeof( libbfio_internal_pool_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear pool.", function ); memory_free( internal_pool ); return( -1 ); } if( libcdata_array_initialize( &( internal_pool->handles_array ), number_of_handles, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create handles array.", function ); goto on_error; } if( libcdata_list_initialize( &( internal_pool->last_used_list ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create last used list.", function ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_initialize( &( internal_pool->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif internal_pool->maximum_number_of_open_handles = maximum_number_of_open_handles; *pool = (libbfio_pool_t *) internal_pool; return( 1 ); on_error: if( internal_pool != NULL ) { if( internal_pool->last_used_list != NULL ) { libcdata_list_free( &( internal_pool->last_used_list ), NULL, NULL ); } if( internal_pool->handles_array != NULL ) { libcdata_array_free( &( internal_pool->handles_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libbfio_handle_free, NULL ); } memory_free( internal_pool ); } return( -1 ); } /* Frees a pool * Returns 1 if successful or -1 on error */ int libbfio_pool_free( libbfio_pool_t **pool, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_free"; int result = 1; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( *pool != NULL ) { internal_pool = (libbfio_internal_pool_t *) *pool; *pool = NULL; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_free( &( internal_pool->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( libcdata_array_free( &( internal_pool->handles_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libbfio_handle_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free handles array.", function ); result = -1; } if( libcdata_list_free( &( internal_pool->last_used_list ), NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free last used list.", function ); result = -1; } memory_free( internal_pool ); } return( result ); } /* Clones (duplicates) the pool * The values in the offsets read list are not duplicated * Returns 1 if successful or -1 on error */ int libbfio_pool_clone( libbfio_pool_t **destination_pool, libbfio_pool_t *source_pool, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_destination_pool = NULL; libbfio_internal_pool_t *internal_source_pool = NULL; static char *function = "libbfio_pool_clone"; if( destination_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination pool.", function ); return( -1 ); } if( *destination_pool != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination pool already set.", function ); return( -1 ); } if( source_pool == NULL ) { *destination_pool = NULL; return( 1 ); } internal_source_pool = (libbfio_internal_pool_t *) source_pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_source_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif internal_destination_pool = memory_allocate_structure( libbfio_internal_pool_t ); if( internal_destination_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination pool.", function ); goto on_error; } if( memory_set( internal_destination_pool, 0, sizeof( libbfio_internal_pool_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination pool.", function ); memory_free( internal_destination_pool ); internal_destination_pool = NULL; goto on_error; } if( libcdata_array_clone( &( internal_destination_pool->handles_array ), internal_source_pool->handles_array, (int (*)(intptr_t **, libcerror_error_t **)) &libbfio_handle_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libbfio_handle_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create handles array.", function ); goto on_error; } if( libcdata_list_initialize( &( internal_destination_pool->last_used_list ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create last used list.", function ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_initialize( &( internal_destination_pool->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif internal_destination_pool->maximum_number_of_open_handles = internal_source_pool->maximum_number_of_open_handles; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_source_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); libbfio_pool_free( (libbfio_pool_t **) &internal_destination_pool, NULL ); return( -1 ); } #endif *destination_pool = (libbfio_pool_t *) internal_destination_pool; return( 1 ); on_error: if( internal_destination_pool != NULL ) { #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( internal_destination_pool->read_write_lock != NULL ) { libcthreads_read_write_lock_free( &( internal_destination_pool->read_write_lock ), NULL ); } #endif if( internal_destination_pool->last_used_list != NULL ) { libcdata_list_free( &( internal_destination_pool->last_used_list ), NULL, NULL ); } if( internal_destination_pool->handles_array != NULL ) { libcdata_array_free( &( internal_destination_pool->handles_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libbfio_handle_free, NULL ); } memory_free( internal_destination_pool ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_read( internal_source_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Resizes the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_resize( libbfio_pool_t *pool, int number_of_handles, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_resize"; int result = 1; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_resize( internal_pool->handles_array, number_of_handles, (int (*)(intptr_t **, libcerror_error_t **)) &libbfio_handle_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to resize handles array.", function ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Opens the handle * Returns 1 if successful or -1 on error */ int libbfio_internal_pool_open_handle( libbfio_internal_pool_t *internal_pool, libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_internal_pool_open_handle"; int is_open = 0; if( internal_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( internal_pool->last_used_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid pool - missing last used list.", function ); return( -1 ); } if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if handle is open.", function ); return( -1 ); } else if( is_open == 1 ) { return( 1 ); } if( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) { if( libbfio_internal_pool_append_handle_to_last_used_list( internal_pool, handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append handle to last used list.", function ); return( -1 ); } } if( libbfio_handle_open( handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libbfio_handle_seek_offset( handle, internal_handle->current_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset.", function ); return( -1 ); } return( 1 ); } /* Appends the handle to the last used list * Closes the less frequently used handle if necessary * Returns 1 if successful or -1 on error */ int libbfio_internal_pool_append_handle_to_last_used_list( libbfio_internal_pool_t *internal_pool, const libbfio_handle_t *handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; libcdata_list_element_t *last_used_list_element = NULL; static char *function = "libbfio_internal_pool_append_handle_to_last_used_list"; if( internal_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( internal_pool->last_used_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid pool - missing last used list.", function ); return( -1 ); } if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } /* Check if there is room in the pool for another open handle */ if( ( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) && ( ( internal_pool->number_of_open_handles + 1 ) >= internal_pool->maximum_number_of_open_handles ) ) { if( libcdata_list_get_last_element( internal_pool->last_used_list, &last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last list element from last used list.", function ); return( -1 ); } if( libcdata_list_element_get_value( last_used_list_element, (intptr_t **) &internal_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from last used list element.", function ); return( -1 ); } if( libcdata_list_remove_element( internal_pool->last_used_list, last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove last list element from last used list.", function ); return( -1 ); } if( internal_handle != NULL ) { if( libbfio_handle_close( (libbfio_handle_t *) internal_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle.", function ); libcdata_list_element_free( &last_used_list_element, NULL, NULL ); return( -1 ); } internal_handle->pool_last_used_list_element = NULL; /* Make sure the truncate flag is removed from the handle */ internal_handle->access_flags &= ~( LIBBFIO_ACCESS_FLAG_TRUNCATE ); } /* The last used list element is reused to contain the new last used entry */ } else { if( libcdata_list_element_initialize( &last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create last used list element.", function ); return( -1 ); } internal_pool->number_of_open_handles++; } internal_handle = (libbfio_internal_handle_t *) handle; if( libcdata_list_element_set_value( last_used_list_element, (intptr_t *) handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value int last used list element.", function ); return( -1 ); } internal_handle->pool_last_used_list_element = last_used_list_element; if( libcdata_list_prepend_element( internal_pool->last_used_list, last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend last used list element to list.", function ); libcdata_list_element_free( &last_used_list_element, NULL, NULL ); return( -1 ); } return( 1 ); } /* Moves the handle to the front of the last used list * Returns 1 if successful or -1 on error */ int libbfio_internal_pool_move_handle_to_front_of_last_used_list( libbfio_internal_pool_t *internal_pool, libbfio_handle_t *handle, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; libcdata_list_element_t *first_list_element = NULL; libcdata_list_element_t *last_used_list_element = NULL; static char *function = "libbfio_internal_pool_move_handle_to_front_of_last_used_list"; if( internal_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( internal_pool->last_used_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid pool - missing last used list.", function ); return( -1 ); } if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } internal_handle = (libbfio_internal_handle_t *) handle; if( libcdata_list_get_first_element( internal_pool->last_used_list, &first_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first list element from last used list.", function ); return( -1 ); } last_used_list_element = internal_handle->pool_last_used_list_element; if( last_used_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing last used list element.", function ); return( -1 ); } if( last_used_list_element != first_list_element ) { if( libcdata_list_remove_element( internal_pool->last_used_list, last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove last used list element from list.", function ); return( -1 ); } if( libcdata_list_prepend_element( internal_pool->last_used_list, last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend last used list element to list.", function ); internal_handle->pool_last_used_list_element = NULL; libcdata_list_element_free( &last_used_list_element, NULL, NULL ); return( -1 ); } } return( 1 ); } /* Removes a handle from the last used list * Returns 1 if successful or -1 on error */ int libbfio_internal_pool_remove_handle_from_last_used_list( libbfio_internal_pool_t *internal_pool, const libbfio_handle_t *handle, libcerror_error_t **error ) { libbfio_handle_t *last_used_handle = NULL; libcdata_list_element_t *last_used_list_element = NULL; static char *function = "libbfio_internal_pool_remove_handle_from_last_used_list"; if( internal_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } if( libcdata_list_get_first_element( internal_pool->last_used_list, &last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first list element from last used list.", function ); return( -1 ); } while( last_used_list_element != NULL ) { if( libcdata_list_element_get_value( last_used_list_element, (intptr_t **) &last_used_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used handle.", function ); return( -1 ); } if( last_used_handle == handle ) { break; } if( libcdata_list_element_get_next_element( last_used_list_element, &last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next last used list element.", function ); return( -1 ); } } if( last_used_list_element != NULL ) { if( libcdata_list_remove_element( internal_pool->last_used_list, last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove last list element from last used list.", function ); return( -1 ); } } return( 1 ); } /* Retrieves the number of handles in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_get_number_of_handles( libbfio_pool_t *pool, int *number_of_handles, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_get_number_of_handles"; int result = 1; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_array_get_number_of_entries( internal_pool->handles_array, number_of_handles, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of handles.", function ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves a specific handle from the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_get_handle( libbfio_pool_t *pool, int entry, libbfio_handle_t **handle, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_get_handle"; int result = 1; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Appends a handle to the pool * Sets the entry * Returns 1 if successful or -1 on error */ int libbfio_pool_append_handle( libbfio_pool_t *pool, int *entry, libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_append_handle"; int is_open = 0; int number_of_handles = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; if( internal_pool->last_used_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid pool - missing last used list.", function ); return( -1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry.", function ); return( -1 ); } if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif /* Check if the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if handle is open.", function ); goto on_error; } else if( is_open == 0 ) { /* Set the access flags is the handle is not open */ if( libbfio_handle_set_access_flags( handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to set access flags.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_pool->handles_array, &number_of_handles, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of handles.", function ); goto on_error; } if( ( internal_pool->number_of_used_handles + 1 ) >= number_of_handles ) { if( libcdata_array_append_entry( internal_pool->handles_array, entry, (intptr_t *) handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append handle.", function ); goto on_error; } } else { *entry = internal_pool->number_of_used_handles; if( libcdata_array_set_entry_by_index( internal_pool->handles_array, *entry, (intptr_t *) handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to set handle: %d.", function, *entry ); goto on_error; } } internal_pool->number_of_used_handles += 1; if( is_open != 0 ) { if( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) { if( libbfio_internal_pool_append_handle_to_last_used_list( internal_pool, handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append handle to last used list.", function ); goto on_error; } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Sets a specific handle in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_set_handle( libbfio_pool_t *pool, int entry, libbfio_handle_t *handle, int access_flags, libcerror_error_t **error ) { libbfio_internal_handle_t *backup_handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_set_handle"; int is_open = 0; int result = 1; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; /* Check if the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if handle is open.", function ); return( -1 ); } else if( is_open == 0 ) { /* Set the access flags is the handle is not open */ if( libbfio_handle_set_access_flags( handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to set access flags.", function ); return( -1 ); } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &backup_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); result = -1; } /* TODO allow to re set handles, make sure all pool references are removed */ else if( backup_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid handle entry: %d value already set.", function, entry ); result = -1; } if( result == 1 ) { if( libcdata_array_set_entry_by_index( internal_pool->handles_array, entry, (intptr_t *) handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set handle: %d.", function, entry ); result = -1; } } if( result == 1 ) { if( is_open != 0 ) { if( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) { if( libbfio_internal_pool_append_handle_to_last_used_list( internal_pool, handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append handle to last used list.", function ); libcdata_array_set_entry_by_index( internal_pool->handles_array, entry, (intptr_t *) backup_handle, NULL ); result = -1; } } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) on_error: if( result == 1 ) { libcdata_array_set_entry_by_index( internal_pool->handles_array, entry, (intptr_t *) backup_handle, NULL ); } return( -1 ); #endif } /* Removes a specific handle from the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_remove_handle( libbfio_pool_t *pool, int entry, libbfio_handle_t **handle, libcerror_error_t **error ) { libbfio_handle_t *backup_handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_remove_handle"; int result = 1; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; if( internal_pool->last_used_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid pool - missing last used list.", function ); return( -1 ); } if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } *handle = NULL; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &backup_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); result = -1; } if( result == 1 ) { if( libbfio_internal_pool_remove_handle_from_last_used_list( internal_pool, backup_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove handle: %d from last used list.", function, entry ); result = -1; } } if( result == 1 ) { if( libcdata_array_set_entry_by_index( internal_pool->handles_array, entry, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set handle: %d.", function, entry ); libbfio_internal_pool_append_handle_to_last_used_list( internal_pool, backup_handle, NULL ); result = -1; } } if( result == 1 ) { internal_pool->number_of_used_handles -= 1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif if( result == 1 ) { *handle = backup_handle; } return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) on_error: if( result == 1 ) { libcdata_array_set_entry_by_index( internal_pool->handles_array, entry, (intptr_t *) backup_handle, NULL ); libbfio_internal_pool_append_handle_to_last_used_list( internal_pool, backup_handle, NULL ); internal_pool->number_of_used_handles += 1; } return( -1 ); #endif } /* Retrieves the maximum number of open handles in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_get_maximum_number_of_open_handles( libbfio_pool_t *pool, int *maximum_number_of_open_handles, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_get_maximum_number_of_open_handles"; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; if( maximum_number_of_open_handles == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid maximum number of open handles.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_read( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *maximum_number_of_open_handles = internal_pool->maximum_number_of_open_handles; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the maximum number of open handles in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_set_maximum_number_of_open_handles( libbfio_pool_t *pool, int maximum_number_of_open_handles, libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; libcdata_list_element_t *last_used_list_element = NULL; static char *function = "libbfio_pool_set_maximum_number_of_open_handles"; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; if( maximum_number_of_open_handles < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid maximum number of open handles value less than zero.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_pool->maximum_number_of_open_handles = maximum_number_of_open_handles; while( ( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) && ( internal_pool->number_of_open_handles > internal_pool->maximum_number_of_open_handles ) ) { if( libcdata_list_get_last_element( internal_pool->last_used_list, &last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last list element from last used list.", function ); goto on_error; } if( libcdata_list_element_get_value( last_used_list_element, (intptr_t **) &internal_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from last used list element.", function ); goto on_error; } if( internal_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing last used list element value.", function ); goto on_error; } if( libcdata_list_remove_element( internal_pool->last_used_list, last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove last used list element from list.", function ); goto on_error; } if( libbfio_handle_close( (libbfio_handle_t *) internal_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle.", function ); goto on_error; } internal_pool->number_of_open_handles--; internal_handle->pool_last_used_list_element = NULL; /* Make sure the truncate flag is removed from the handle */ internal_handle->access_flags &= ~( LIBBFIO_ACCESS_FLAG_TRUNCATE ); if( libcdata_list_element_free( &last_used_list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free last used list element.", function ); goto on_error; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( last_used_list_element != NULL ) { libcdata_list_element_free( &last_used_list_element, NULL, NULL ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Opens a handle in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_open( libbfio_pool_t *pool, int entry, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_open"; int is_open = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } /* Make sure the handle is not open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if entry: %d is open.", function, entry ); goto on_error; } else if( is_open == 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: entry: %d is already open.", function, entry ); goto on_error; } if( libbfio_internal_pool_open_handle( internal_pool, handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open entry: %d.", function, entry ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Reopens a handle in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_reopen( libbfio_pool_t *pool, int entry, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_reopen"; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } if( libbfio_handle_reopen( handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to reopen handle for entry: %d.", function, entry ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Closes a handle in the pool * Returns 0 if successful or -1 on error */ int libbfio_internal_pool_close( libbfio_internal_pool_t *internal_pool, int entry, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_handle_t *internal_handle = NULL; libcdata_list_element_t *last_used_list_element = NULL; static char *function = "libbfio_internal_pool_close"; if( internal_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid pool - missing handle for entry: %d.", function, entry ); goto on_error; } if( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) { /* TODO move into get function */ internal_handle = (libbfio_internal_handle_t *) handle; last_used_list_element = internal_handle->pool_last_used_list_element; if( libcdata_list_element_get_value( last_used_list_element, (intptr_t **) &internal_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from last used list element.", function ); goto on_error; } if( internal_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing last used list element value.", function ); goto on_error; } if( libcdata_list_remove_element( internal_pool->last_used_list, last_used_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove last used list element from list.", function ); goto on_error; } internal_handle->pool_last_used_list_element = NULL; if( libcdata_list_element_free( &last_used_list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free last used list element.", function ); goto on_error; } } if( libbfio_handle_close( handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle for entry: %d.", function, entry ); goto on_error; } return( 0 ); on_error: if( last_used_list_element != NULL ) { libcdata_list_element_free( &last_used_list_element, NULL, NULL ); } return( -1 ); } /* Closes a handle in the pool * Returns 0 if successful or -1 on error */ int libbfio_pool_close( libbfio_pool_t *pool, int entry, libcerror_error_t **error ) { libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_close"; int result = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libbfio_internal_pool_close( internal_pool, entry, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle: %d.", function, entry ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Closes all the files in the pool * Returns 0 if successful or -1 on error */ int libbfio_pool_close_all( libbfio_pool_t *pool, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_close_all"; int entry = 0; int is_open = 0; int number_of_handles = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_number_of_entries( internal_pool->handles_array, &number_of_handles, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of handles.", function ); goto on_error; } for( entry = 0; entry < number_of_handles; entry++ ) { if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } if( handle == NULL ) { continue; } /* Make sure the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if handle: %d is open.", function, entry ); goto on_error; } else if( is_open == 0 ) { continue; } if( libbfio_internal_pool_close( internal_pool, entry, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close handle: %d.", function, entry ); goto on_error; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 0 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Reads a buffer from a handle in the pool * Returns the number of bytes read or -1 on error */ ssize_t libbfio_pool_read_buffer( libbfio_pool_t *pool, int entry, uint8_t *buffer, size_t size, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_read_buffer"; ssize_t read_count = 0; int access_flags = 0; int is_open = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } /* Make sure the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if entry: %d is open.", function, entry ); goto on_error; } else if( is_open == 0 ) { if( libbfio_handle_get_access_flags( handle, &access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access flags.", function ); goto on_error; } if( libbfio_internal_pool_open_handle( internal_pool, handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open entry: %d.", function, entry ); goto on_error; } } if( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) { if( libbfio_internal_pool_move_handle_to_front_of_last_used_list( internal_pool, handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to move handle to front of last used list.", function ); goto on_error; } } read_count = libbfio_handle_read_buffer( handle, buffer, size, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from entry: %d.", function, entry ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( read_count ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Writes a buffer to a handle in the pool * Returns the number of bytes written or -1 on error */ ssize_t libbfio_pool_write_buffer( libbfio_pool_t *pool, int entry, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_write_buffer"; ssize_t write_count = 0; int access_flags = 0; int is_open = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } /* Make sure the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if entry: %d is open.", function, entry ); goto on_error; } else if( is_open == 0 ) { if( libbfio_handle_get_access_flags( handle, &access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access flags.", function ); goto on_error; } if( libbfio_internal_pool_open_handle( internal_pool, handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open entry: %d.", function, entry ); goto on_error; } } if( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) { if( libbfio_internal_pool_move_handle_to_front_of_last_used_list( internal_pool, handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to move handle to front of last used list.", function ); goto on_error; } } write_count = libbfio_handle_write_buffer( handle, buffer, size, error ); if( write_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write to entry: %d.", function, entry ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( write_count ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Seeks an offset in a handle in the pool * Returns the offset if successful or -1 on error */ off64_t libbfio_pool_seek_offset( libbfio_pool_t *pool, int entry, off64_t offset, int whence, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_seek_offset"; off64_t seek_offset = 0; int access_flags = 0; int is_open = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } /* Make sure the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if entry: %d is open.", function, entry ); goto on_error; } else if( is_open == 0 ) { if( libbfio_handle_get_access_flags( handle, &access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access flags.", function ); goto on_error; } if( libbfio_internal_pool_open_handle( internal_pool, handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open entry: %d.", function, entry ); goto on_error; } } if( internal_pool->maximum_number_of_open_handles != LIBBFIO_POOL_UNLIMITED_NUMBER_OF_OPEN_HANDLES ) { if( libbfio_internal_pool_move_handle_to_front_of_last_used_list( internal_pool, handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to move handle to front of last used list.", function ); goto on_error; } } seek_offset = libbfio_handle_seek_offset( handle, offset, whence, error ); if( seek_offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset: %" PRIi64 " in entry: %d.", function, offset, entry ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( seek_offset ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the current offset in a handle in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_get_offset( libbfio_pool_t *pool, int entry, off64_t *offset, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_get_offset"; int access_flags = 0; int is_open = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } /* Make sure the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if entry: %d is open.", function, entry ); goto on_error; } else if( is_open == 0 ) { if( libbfio_handle_get_access_flags( handle, &access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access flags.", function ); goto on_error; } if( libbfio_internal_pool_open_handle( internal_pool, handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open entry: %d.", function, entry ); goto on_error; } } if( libbfio_handle_get_offset( handle, offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve offset.", function ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the size of a handle in the pool * Returns 1 if successful or -1 on error */ int libbfio_pool_get_size( libbfio_pool_t *pool, int entry, size64_t *size, libcerror_error_t **error ) { libbfio_handle_t *handle = NULL; libbfio_internal_pool_t *internal_pool = NULL; static char *function = "libbfio_pool_get_size"; int access_flags = 0; int is_open = 0; if( pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid pool.", function ); return( -1 ); } internal_pool = (libbfio_internal_pool_t *) pool; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_grab_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_array_get_entry_by_index( internal_pool->handles_array, entry, (intptr_t **) &handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve handle: %d.", function, entry ); goto on_error; } /* Make sure the handle is open */ is_open = libbfio_handle_is_open( handle, error ); if( is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if entry: %d is open.", function, entry ); goto on_error; } else if( is_open == 0 ) { if( libbfio_handle_get_access_flags( handle, &access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access flags.", function ); goto on_error; } if( libbfio_internal_pool_open_handle( internal_pool, handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open entry: %d.", function, entry ); goto on_error; } } if( libbfio_handle_get_size( handle, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size of entry: %d.", function, entry ); goto on_error; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) libcthreads_read_write_lock_release_for_write( internal_pool->read_write_lock, NULL ); #endif return( -1 ); } libfsapfs-20190210/libbfio/libbfio_unused.h0000664000175000017500000000257213430101134022567 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_UNUSED_H ) #define _LIBBFIO_UNUSED_H #include #if !defined( LIBBFIO_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBBFIO_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBBFIO_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBBFIO_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBBFIO_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBBFIO_UNUSED_H ) */ libfsapfs-20190210/libbfio/libbfio_libcpath.h0000664000175000017500000000252413430101134023047 0ustar00lordyestalordyesta00000000000000/* * The internal libcpath header * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_LIBCPATH_H ) #define _LIBBFIO_LIBCPATH_H #include /* Define HAVE_LOCAL_LIBCPATH for local use of libcpath */ #if defined( HAVE_LOCAL_LIBCPATH ) #include #include #else /* If libtool DLL support is enabled set LIBCPATH_DLL_IMPORT * before including libcpath.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCPATH_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCPATH ) */ #endif /* !defined( _LIBBFIO_LIBCPATH_H ) */ libfsapfs-20190210/libbfio/libbfio_libcfile.h0000664000175000017500000000261613430101134023034 0ustar00lordyestalordyesta00000000000000/* * The internal libcfile header * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_LIBCFILE_H ) #define _LIBBFIO_LIBCFILE_H #include /* Define HAVE_LOCAL_LIBCFILE for local use of libcfile */ #if defined( HAVE_LOCAL_LIBCFILE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCFILE_DLL_IMPORT * before including libcfile.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCFILE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCFILE ) */ #endif /* !defined( _LIBBFIO_LIBCFILE_H ) */ libfsapfs-20190210/libbfio/libbfio_support.h0000664000175000017500000000265213430101134022777 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_SUPPORT_H ) #define _LIBBFIO_SUPPORT_H #include #include #include "libbfio_extern.h" #include "libbfio_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBBFIO ) LIBBFIO_EXTERN \ const char *libbfio_get_version( void ); LIBBFIO_EXTERN \ int libbfio_get_codepage( int *codepage, libcerror_error_t **error ); LIBBFIO_EXTERN \ int libbfio_set_codepage( int codepage, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBBFIO ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBBFIO_SUPPORT_H ) */ libfsapfs-20190210/libbfio/libbfio_file_io_handle.c0000664000175000017500000006350013430101134024176 0ustar00lordyestalordyesta00000000000000/* * File IO handle functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #include "libbfio_definitions.h" #include "libbfio_file_io_handle.h" #include "libbfio_libcerror.h" #include "libbfio_libcfile.h" #include "libbfio_system_string.h" /* Creates a file IO handle * Make sure the value file_io_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libbfio_file_io_handle_initialize( libbfio_file_io_handle_t **file_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_initialize"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( *file_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file IO handle value already set.", function ); return( -1 ); } *file_io_handle = memory_allocate_structure( libbfio_file_io_handle_t ); if( *file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file IO handle.", function ); goto on_error; } if( memory_set( *file_io_handle, 0, sizeof( libbfio_file_io_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file IO handle.", function ); goto on_error; } if( libcfile_file_initialize( &( ( *file_io_handle )->file ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file.", function ); goto on_error; } return( 1 ); on_error: if( *file_io_handle != NULL ) { memory_free( *file_io_handle ); *file_io_handle = NULL; } return( -1 ); } /* Frees a file IO handle * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_free( libbfio_file_io_handle_t **file_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_free"; int result = 1; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( *file_io_handle != NULL ) { if( ( *file_io_handle )->name != NULL ) { memory_free( ( *file_io_handle )->name ); } if( libcfile_file_free( &( ( *file_io_handle )->file ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file.", function ); result = -1; } memory_free( *file_io_handle ); *file_io_handle = NULL; } return( result ); } /* Clones (duplicates) the file IO handle and its attributes * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_clone( libbfio_file_io_handle_t **destination_file_io_handle, libbfio_file_io_handle_t *source_file_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_clone"; if( destination_file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination file IO handle.", function ); return( -1 ); } if( *destination_file_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination file IO handle already set.", function ); return( -1 ); } if( source_file_io_handle == NULL ) { *destination_file_io_handle = NULL; return( 1 ); } if( libbfio_file_io_handle_initialize( destination_file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } if( *destination_file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing destination file IO handle.", function ); goto on_error; } if( source_file_io_handle->name_size > 0 ) { if( source_file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source file IO handle - missing name.", function ); goto on_error; } if( source_file_io_handle->name_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid source file IO handle - name size value exceeds maximum.", function ); goto on_error; } ( *destination_file_io_handle )->name = system_string_allocate( source_file_io_handle->name_size ); if( ( *destination_file_io_handle )->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create name.", function ); goto on_error; } if( source_file_io_handle->name_size > 1 ) { if( system_string_copy( ( *destination_file_io_handle )->name, source_file_io_handle->name, source_file_io_handle->name_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy name.", function ); goto on_error; } } ( *destination_file_io_handle )->name[ source_file_io_handle->name_size - 1 ] = 0; ( *destination_file_io_handle )->name_size = source_file_io_handle->name_size; } return( 1 ); on_error: if( *destination_file_io_handle != NULL ) { libbfio_file_io_handle_free( destination_file_io_handle, NULL ); } return( -1 ); } /* Retrieves the name size of the file IO handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_get_name_size( libbfio_file_io_handle_t *file_io_handle, size_t *name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_get_name_size"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libbfio_system_string_size_to_narrow_string( file_io_handle->name, file_io_handle->name_size, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine name size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file IO handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_get_name( libbfio_file_io_handle_t *file_io_handle, char *name, size_t name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_get_name"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libbfio_system_string_copy_to_narrow_string( file_io_handle->name, file_io_handle->name_size, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set name.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file IO handle * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_set_name( libbfio_file_io_handle_t *file_io_handle, const char *name, size_t name_length, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_set_name"; int result = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid name.", function ); return( -1 ); } if( name_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid name length is zero.", function ); return( -1 ); } if( file_io_handle->name != NULL ) { result = libcfile_file_is_open( file_io_handle->file, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: unable to determine if file is open.", function ); return( -1 ); } if( result != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: unable to set name when file is open.", function ); return( -1 ); } memory_free( file_io_handle->name ); file_io_handle->name = NULL; file_io_handle->name_size = 0; } if( libbfio_system_string_size_from_narrow_string( name, name_length + 1, &( file_io_handle->name_size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine name size.", function ); goto on_error; } if( file_io_handle->name_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid file IO handle - name size value exceeds maximum.", function ); goto on_error; } file_io_handle->name = system_string_allocate( file_io_handle->name_size ); if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create name.", function ); goto on_error; } if( libbfio_system_string_copy_from_narrow_string( file_io_handle->name, file_io_handle->name_size, name, name_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set name.", function ); goto on_error; } return( 1 ); on_error: if( file_io_handle->name != NULL ) { memory_free( file_io_handle->name ); file_io_handle->name = NULL; } file_io_handle->name_size = 0; return( -1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Retrieves the name size of the file IO handle * The name size includes the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_get_name_size_wide( libbfio_file_io_handle_t *file_io_handle, size_t *name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_get_name_size_wide"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libbfio_system_string_size_to_wide_string( file_io_handle->name, file_io_handle->name_size, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine name size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the name of the file IO handle * The name size should include the end of string character * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_get_name_wide( libbfio_file_io_handle_t *file_io_handle, wchar_t *name, size_t name_size, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_get_name_wide"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libbfio_system_string_copy_to_wide_string( file_io_handle->name, file_io_handle->name_size, name, name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set name.", function ); return( -1 ); } return( 1 ); } /* Sets the name for the file IO handle * Returns 1 if succesful or -1 on error */ int libbfio_file_io_handle_set_name_wide( libbfio_file_io_handle_t *file_io_handle, const wchar_t *name, size_t name_length, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_set_name_wide"; int result = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( name_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid name length is zero.", function ); return( -1 ); } if( file_io_handle->name != NULL ) { result = libcfile_file_is_open( file_io_handle->file, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: unable to determine if file is open.", function ); return( -1 ); } if( result != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: unable to set name when file is open.", function ); return( -1 ); } memory_free( file_io_handle->name ); file_io_handle->name = NULL; file_io_handle->name_size = 0; } if( libbfio_system_string_size_from_wide_string( name, name_length + 1, &( file_io_handle->name_size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine name size.", function ); goto on_error; } if( file_io_handle->name_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid file IO handle - name size value exceeds maximum.", function ); goto on_error; } file_io_handle->name = system_string_allocate( file_io_handle->name_size ); if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create name.", function ); goto on_error; } if( libbfio_system_string_copy_from_wide_string( file_io_handle->name, file_io_handle->name_size, name, name_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set name.", function ); goto on_error; } return( 1 ); on_error: if( file_io_handle->name != NULL ) { memory_free( file_io_handle->name ); file_io_handle->name = NULL; } file_io_handle->name_size = 0; return( -1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Opens the file handle * Returns 1 if successful or -1 on error */ int libbfio_file_io_handle_open( libbfio_file_io_handle_t *file_io_handle, int access_flags, libcerror_error_t **error ) { static char *function = "libbfio_file_io_handle_open"; int result = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file IO handle - missing name.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libcfile_file_open_wide( file_io_handle->file, file_io_handle->name, access_flags, error ); #else result = libcfile_file_open( file_io_handle->file, file_io_handle->name, access_flags, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file: %" PRIs_SYSTEM ".", function, file_io_handle->name ); return( -1 ); } file_io_handle->access_flags = access_flags; return( 1 ); } /* Closes the file handle * Returns 0 if successful or -1 on error */ int libbfio_file_io_handle_close( libbfio_file_io_handle_t *file_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_close"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file IO handle - missing name.", function ); return( -1 ); } if( libcfile_file_close( file_io_handle->file, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to close file: %" PRIs_SYSTEM ".", function, file_io_handle->name ); return( -1 ); } file_io_handle->access_flags = 0; return( 0 ); } /* Reads a buffer from the file handle * Returns the number of bytes read if successful, or -1 on error */ ssize_t libbfio_file_io_handle_read_buffer( libbfio_file_io_handle_t *file_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libbfio_file_read_buffer"; ssize_t read_count = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file IO handle - missing name.", function ); return( -1 ); } read_count = libcfile_file_read_buffer( file_io_handle->file, buffer, size, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file: %" PRIs_SYSTEM ".", function, file_io_handle->name ); return( -1 ); } return( read_count ); } /* Writes a buffer to the file handle * Returns the number of bytes written if successful, or -1 on error */ ssize_t libbfio_file_io_handle_write_buffer( libbfio_file_io_handle_t *file_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libbfio_file_write_buffer"; ssize_t write_count = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file IO handle - missing name.", function ); return( -1 ); } write_count = libcfile_file_write_buffer( file_io_handle->file, buffer, size, error ); if( write_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write to file: %" PRIs_SYSTEM ".", function, file_io_handle->name ); return( -1 ); } return( write_count ); } /* Seeks a certain offset within the file handle * Returns the offset if the seek is successful or -1 on error */ off64_t libbfio_file_io_handle_seek_offset( libbfio_file_io_handle_t *file_io_handle, off64_t offset, int whence, libcerror_error_t **error ) { static char *function = "libbfio_file_seek_offset"; off64_t seek_offset = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file IO handle - missing name.", function ); return( -1 ); } seek_offset = libcfile_file_seek_offset( file_io_handle->file, offset, whence, error ); if( seek_offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset: %" PRIi64 " in file: %" PRIs_SYSTEM ".", function, offset, file_io_handle->name ); return( -1 ); } return( seek_offset ); } /* Function to determine if a file exists * Returns 1 if file exists, 0 if not or -1 on error */ int libbfio_file_io_handle_exists( libbfio_file_io_handle_t *file_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_exists"; int result = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle - missing name.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libcfile_file_exists_wide( file_io_handle->name, error ); #else result = libcfile_file_exists( file_io_handle->name, error ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, "%s: unable to determine if file: %" PRIs_SYSTEM " exists.", function, file_io_handle->name ); return( -1 ); } return( result ); } /* Check if the file is open * Returns 1 if open, 0 if not or -1 on error */ int libbfio_file_io_handle_is_open( libbfio_file_io_handle_t *file_io_handle, libcerror_error_t **error ) { static char *function = "libbfio_file_is_open"; int result = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } result = libcfile_file_is_open( file_io_handle->file, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if file is open.", function ); return( -1 ); } return( result ); } /* Retrieves the file size * Returns 1 if successful or -1 on error */ int libbfio_file_io_handle_get_size( libbfio_file_io_handle_t *file_io_handle, size64_t *size, libcerror_error_t **error ) { static char *function = "libbfio_file_get_size"; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( file_io_handle->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle - missing name.", function ); return( -1 ); } if( libcfile_file_get_size( file_io_handle->file, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size of file: %" PRIs_SYSTEM ".", function, file_io_handle->name ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libbfio/libbfio_error.c0000664000175000017500000000552213430101134022406 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libbfio_error.h" #include "libbfio_libcerror.h" #if !defined( HAVE_LOCAL_LIBBFIO ) /* Free an error and its elements */ void libbfio_error_free( libbfio_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libbfio_error_fprint( libbfio_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libbfio_error_sprint( libbfio_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libbfio_error_backtrace_fprint( libbfio_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libbfio_error_backtrace_sprint( libbfio_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBBFIO ) */ libfsapfs-20190210/libbfio/libbfio_types.h0000664000175000017500000000304613430101134022425 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2009-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBBFIO_INTERNAL_TYPES_H ) #define _LIBBFIO_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio * The definitions in are copied here * for local use of libbfio */ #if defined( HAVE_LOCAL_LIBBFIO ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libbfio_handle {} libbfio_handle_t; typedef struct libbfio_pool {} libbfio_pool_t; #else typedef intptr_t libbfio_handle_t; typedef intptr_t libbfio_pool_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBBFIO ) */ #endif /* !defined( _LIBBFIO_INTERNAL_TYPES_H ) */ libfsapfs-20190210/COPYING0000664000175000017500000001672613426637437017111 0ustar00lordyestalordyesta00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. libfsapfs-20190210/libfsapfs.spec.in0000664000175000017500000001046713426637437021304 0ustar00lordyestalordyesta00000000000000Name: libfsapfs Version: @VERSION@ Release: 1 Summary: Library to access the Apple File System (APFS) format Group: System Environment/Libraries License: LGPL Source: %{name}-%{version}.tar.gz URL: https://github.com/libyal/libfsapfs BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @libfsapfs_spec_requires@ @ax_libbfio_spec_requires@ @ax_libcaes_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_libcrypto_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_libhmac_spec_requires@ @ax_libuna_spec_requires@ @ax_zlib_spec_requires@ BuildRequires: gcc @ax_libbfio_spec_build_requires@ @ax_libcaes_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_libcrypto_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_libhmac_spec_build_requires@ @ax_libuna_spec_build_requires@ @ax_zlib_spec_build_requires@ %description -n libfsapfs Library to access the Apple File System (APFS) format %package -n libfsapfs-static Summary: Library to access the Apple File System (APFS) format Group: Development/Libraries Requires: libfsapfs = %{version}-%{release} %description -n libfsapfs-static Static library version of libfsapfs. %package -n libfsapfs-devel Summary: Header files and libraries for developing applications for libfsapfs Group: Development/Libraries Requires: libfsapfs = %{version}-%{release} %description -n libfsapfs-devel Header files and libraries for developing applications for libfsapfs. %package -n libfsapfs-python2 Obsoletes: libfsapfs-python < %{version} Provides: libfsapfs-python = %{version} Summary: Python 2 bindings for libfsapfs Group: System Environment/Libraries Requires: libfsapfs = %{version}-%{release} python2 BuildRequires: python2-devel %description -n libfsapfs-python2 Python 2 bindings for libfsapfs %package -n libfsapfs-python3 Summary: Python 3 bindings for libfsapfs Group: System Environment/Libraries Requires: libfsapfs = %{version}-%{release} python3 BuildRequires: python3-devel %description -n libfsapfs-python3 Python 3 bindings for libfsapfs %package -n libfsapfs-tools Summary: Several tools for reading Apple File System (APFS) volumes Group: Applications/System Requires: libfsapfs = %{version}-%{release} @ax_libfuse_spec_requires@ @libfsapfs_spec_tools_build_requires@ @ax_libfuse_spec_build_requires@ %description -n libfsapfs-tools Several tools for reading Apple File System (APFS) volumes %prep %setup -q %build %configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python2 --enable-python3 make %{?_smp_mflags} %install rm -rf %{buildroot} %make_install %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -n libfsapfs %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %attr(755,root,root) %{_libdir}/*.so.* %files -n libfsapfs-static %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %attr(755,root,root) %{_libdir}/*.a %files -n libfsapfs-devel %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/libfsapfs.pc %{_includedir}/* %{_mandir}/man3/* %files -n libfsapfs-python2 %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %{_libdir}/python2*/site-packages/*.a %{_libdir}/python2*/site-packages/*.la %{_libdir}/python2*/site-packages/*.so %files -n libfsapfs-python3 %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %{_libdir}/python3*/site-packages/*.a %{_libdir}/python3*/site-packages/*.la %{_libdir}/python3*/site-packages/*.so %files -n libfsapfs-tools %defattr(644,root,root,755) %license COPYING %doc AUTHORS README %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/* %changelog * @SPEC_DATE@ Joachim Metz @VERSION@-1 - Auto-generated libfsapfs-20190210/README0000664000175000017500000000121313426640035016703 0ustar00lordyestalordyesta00000000000000libfsapfs is a library to access the Apple File System (APFS). Project information: * Status: experimental * Licence: LGPLv3+ Read-only supported APFS formats: * version 2 Supported APFS format features: * ZLIB (DEFLATE) compression * LZVN compression * encryption Unsupported APFS format features: * APFS version 1 * Fusion drive (NX_INCOMPAT_FUSION) * snapshots * LZFSE compression, compression methods 11 and 12 * "uncompressed", compression methods 1, 9 and 10 For more information see: * Project documentation: https://github.com/libyal/libfsapfs/wiki/Home * How to build from source: https://github.com/libyal/libfsapfs/wiki/Building libfsapfs-20190210/libcaes/0000775000175000017500000000000013430101370017415 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcaes/libcaes_tweaked_context.h0000664000175000017500000000550713430101136024447 0ustar00lordyestalordyesta00000000000000/* * AES tweaked de/encryption context functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_TWEAKED_CONTEXT_H ) #define _LIBCAES_TWEAKED_CONTEXT_H #include #include #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #endif #include "libcaes_extern.h" #include "libcaes_libcerror.h" #include "libcaes_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcaes_internal_tweaked_context libcaes_internal_tweaked_context_t; struct libcaes_internal_tweaked_context { #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) /* The EVP cipher context */ #if defined( HAVE_EVP_CIPHER_CTX_INIT ) EVP_CIPHER_CTX internal_evp_cipher_context; #endif EVP_CIPHER_CTX *evp_cipher_context; /* The key */ uint8_t key[ 64 ]; /* The key bit size */ size_t key_bit_size; #else /* The main de/encryption context */ libcaes_context_t *main_context; /* The tweak encryption context */ libcaes_context_t *tweak_context; #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) */ }; LIBCAES_EXTERN \ int libcaes_tweaked_context_initialize( libcaes_tweaked_context_t **tweaked_context, libcerror_error_t **error ); LIBCAES_EXTERN \ int libcaes_tweaked_context_free( libcaes_tweaked_context_t **tweaked_context, libcerror_error_t **error ); LIBCAES_EXTERN \ int libcaes_tweaked_context_set_keys( libcaes_tweaked_context_t *tweaked_context, int mode, const uint8_t *key, size_t key_bit_size, const uint8_t *tweak_key, size_t tweak_key_bit_size, libcerror_error_t **error ); LIBCAES_EXTERN \ int libcaes_crypt_xts( libcaes_tweaked_context_t *tweaked_context, int mode, const uint8_t *tweak_value, size_t tweak_value_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ); #ifdef __cplusplus } #endif #endif /* !defined( _LIBCAES_TWEAKED_CONTEXT_H ) */ libfsapfs-20190210/libcaes/libcaes_context.h0000664000175000017500000001063613430101136022742 0ustar00lordyestalordyesta00000000000000/* * AES de/encryption context functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_CONTEXT_H ) #define _LIBCAES_CONTEXT_H #include #include #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #endif #include "libcaes_extern.h" #include "libcaes_libcerror.h" #include "libcaes_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcaes_internal_context libcaes_internal_context_t; struct libcaes_internal_context { #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) /* The AES key */ AES_KEY key; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && ( defined( HAVE_EVP_CRYPTO_AES_CBC ) || defined( HAVE_EVP_CRYPTO_AES_ECB ) ) /* The EVP cipher context */ #if defined( HAVE_EVP_CIPHER_CTX_INIT ) EVP_CIPHER_CTX internal_evp_cipher_context; #endif EVP_CIPHER_CTX *evp_cipher_context; /* The key */ uint8_t key[ 32 ]; /* The key bit size */ size_t key_bit_size; #else /* The number of round keys */ uint8_t number_of_round_keys; /* The round keys */ uint32_t *round_keys; /* The round keys data */ uint32_t round_keys_data[ 68 ]; #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) */ }; LIBCAES_EXTERN \ int libcaes_context_initialize( libcaes_context_t **context, libcerror_error_t **error ); LIBCAES_EXTERN \ int libcaes_context_free( libcaes_context_t **context, libcerror_error_t **error ); LIBCAES_EXTERN \ int libcaes_context_set_key( libcaes_context_t *context, int mode, const uint8_t *key, size_t key_bit_size, libcerror_error_t **error ); #if !defined( LIBCAES_HAVE_AES_SUPPORT ) int libcaes_initialize_tables( libcerror_error_t **error ); int libcaes_internal_context_set_decryption_key( libcaes_internal_context_t *internal_context, const uint8_t *key, size_t key_bit_size, libcerror_error_t **error ); int libcaes_internal_context_set_encryption_key( libcaes_internal_context_t *internal_context, const uint8_t *key, size_t key_bit_size, libcerror_error_t **error ); #endif /* !defined( LIBCAES_HAVE_AES_SUPPORT ) */ LIBCAES_EXTERN \ int libcaes_crypt_cbc( libcaes_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ); LIBCAES_EXTERN \ int libcaes_crypt_ccm( libcaes_context_t *context, int mode, const uint8_t *nonce, size_t nonce_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ); #ifdef TODO int libcaes_crypt_cfb( libcaes_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, size_t *initialization_vector_index, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ); #endif LIBCAES_EXTERN \ int libcaes_crypt_ecb( libcaes_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ); #ifdef __cplusplus } #endif #endif /* !defined( _LIBCAES_CONTEXT_H ) */ libfsapfs-20190210/libcaes/libcaes_tweaked_context.c0000664000175000017500000007250613430101136024445 0ustar00lordyestalordyesta00000000000000/* * AES encryption functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #include #endif #include "libcaes_context.h" #include "libcaes_definitions.h" #include "libcaes_libcerror.h" #include "libcaes_tweaked_context.h" #include "libcaes_types.h" /* Creates a tweaked context * Make sure the value context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcaes_tweaked_context_initialize( libcaes_tweaked_context_t **tweaked_context, libcerror_error_t **error ) { libcaes_internal_tweaked_context_t *internal_tweaked_context = NULL; static char *function = "libcaes_tweaked_context_initialize"; if( tweaked_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweaked context.", function ); return( -1 ); } if( *tweaked_context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid tweaked context value already set.", function ); return( -1 ); } internal_tweaked_context = memory_allocate_structure( libcaes_internal_tweaked_context_t ); if( internal_tweaked_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create tweaked context.", function ); goto on_error; } if( memory_set( internal_tweaked_context, 0, sizeof( libcaes_internal_tweaked_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear tweaked context.", function ); memory_free( internal_tweaked_context ); return( -1 ); } #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) #if defined( HAVE_EVP_CIPHER_CTX_INIT ) EVP_CIPHER_CTX_init( &( internal_tweaked_context->internal_evp_cipher_context ) ); internal_tweaked_context->evp_cipher_context = &( internal_tweaked_context->internal_evp_cipher_context ); #else internal_tweaked_context->evp_cipher_context = EVP_CIPHER_CTX_new(); if( internal_tweaked_context->evp_cipher_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create EVP cipher context.", function ); goto on_error; } #endif /* defined( HAVE_EVP_CIPHER_CTX_INIT ) */ if( EVP_CIPHER_CTX_set_padding( internal_tweaked_context->evp_cipher_context, 1 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set padding in context.", function ); #if defined( HAVE_EVP_CIPHER_CTX_CLEANUP ) EVP_CIPHER_CTX_cleanup( &( internal_tweaked_context->internal_evp_cipher_context ) ); ERR_remove_thread_state( NULL ); #else EVP_CIPHER_CTX_free( internal_tweaked_context->evp_cipher_context ); #endif internal_tweaked_context->evp_cipher_context = NULL; goto on_error; } #else if( libcaes_context_initialize( &( internal_tweaked_context->main_context ), error ) != 1) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize main context.", function ); goto on_error; } if( libcaes_context_initialize( &( internal_tweaked_context->tweak_context ), error ) != 1) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize tweak context.", function ); goto on_error; } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) */ *tweaked_context = (libcaes_tweaked_context_t *) internal_tweaked_context; return( 1 ); on_error: if( internal_tweaked_context != NULL ) { #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) /* No additional clean up necessary */ #else if( internal_tweaked_context->main_context != NULL ) { libcaes_context_free( &( internal_tweaked_context->main_context ), NULL ); } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) */ memory_free( internal_tweaked_context ); } return( -1 ); } /* Frees a tweaked context * Returns 1 if successful or -1 on error */ int libcaes_tweaked_context_free( libcaes_tweaked_context_t **tweaked_context, libcerror_error_t **error ) { libcaes_internal_tweaked_context_t *internal_tweaked_context = NULL; static char *function = "libcaes_tweaked_context_free"; int result = 1; if( tweaked_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweaked context.", function ); return( -1 ); } if( *tweaked_context != NULL ) { internal_tweaked_context = (libcaes_internal_tweaked_context_t *) *tweaked_context; *tweaked_context = NULL; #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) #if defined( HAVE_EVP_CIPHER_CTX_CLEANUP ) if( EVP_CIPHER_CTX_cleanup( &( internal_tweaked_context->internal_evp_cipher_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clean up EVP cipher context.", function ); result = -1; } /* Make sure the error state is removed otherwise OpenSSL will leak memory */ ERR_remove_thread_state( NULL ); #else EVP_CIPHER_CTX_free( internal_tweaked_context->evp_cipher_context ); #endif /* defined( HAVE_EVP_CIPHER_CTX_CLEANUP ) */ internal_tweaked_context->evp_cipher_context = NULL; #else if( libcaes_context_free( &( internal_tweaked_context->tweak_context ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free tweak context.", function ); result = -1; } if( libcaes_context_free( &( internal_tweaked_context->main_context ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free main context.", function ); result = -1; } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) */ memory_free( internal_tweaked_context ); } return( result ); } /* Sets the keys * Returns 1 if successful or -1 on error */ int libcaes_tweaked_context_set_keys( libcaes_tweaked_context_t *tweaked_context, int mode, const uint8_t *key, size_t key_bit_size, const uint8_t *tweak_key, size_t tweak_key_bit_size, libcerror_error_t **error ) { libcaes_internal_tweaked_context_t *internal_tweaked_context = NULL; static char *function = "libcaes_tweaked_context_set_key"; #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) size_t key_byte_size = 0; #endif if( tweaked_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweaked context.", function ); return( -1 ); } internal_tweaked_context = (libcaes_internal_tweaked_context_t *) tweaked_context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( ( key_bit_size != 128 ) && ( key_bit_size != 256 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported key bit size.", function ); return( -1 ); } if( tweak_key_bit_size != key_bit_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported tweak key bit size.", function ); return( -1 ); } #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( tweak_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweak key.", function ); return( -1 ); } key_byte_size = key_bit_size / 8; if( memory_copy( internal_tweaked_context->key, key, key_byte_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key.", function ); return( -1 ); } if( memory_copy( &( internal_tweaked_context->key[ key_byte_size ] ), tweak_key, key_byte_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy tweak key.", function ); return( -1 ); } internal_tweaked_context->key_bit_size = key_bit_size; #else if( libcaes_context_set_key( internal_tweaked_context->main_context, mode, key, key_bit_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set key in main context.", function ); return( -1 ); } if( libcaes_context_set_key( internal_tweaked_context->tweak_context, LIBCAES_CRYPT_MODE_ENCRYPT, tweak_key, tweak_key_bit_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set tweak key in tweak context.", function ); return( -1 ); } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) */ return( 1 ); } #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) /* De- or encrypts a block of data using AES-XTS (XEX-based tweaked-codebook mode with ciphertext stealing) using OpenSSL EVP * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_xts( libcaes_tweaked_context_t *tweaked_context, int mode, const uint8_t *tweak_value, size_t tweak_value_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t block_data[ EVP_MAX_BLOCK_LENGTH ]; const EVP_CIPHER *cipher = NULL; libcaes_internal_tweaked_context_t *internal_tweaked_context = NULL; static char *function = "libcaes_crypt_xts"; int safe_output_data_size = 0; if( tweaked_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweaked context.", function ); return( -1 ); } internal_tweaked_context = (libcaes_internal_tweaked_context_t *) tweaked_context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( tweak_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweak value.", function ); return( -1 ); } if( tweak_value_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid tweak value size value out of bounds.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } if( input_data_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid input data size value too small.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } if( memory_set( block_data, 0, EVP_MAX_BLOCK_LENGTH ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear input block data.", function ); return( -1 ); } if( internal_tweaked_context->key_bit_size == 128 ) { cipher = EVP_aes_128_xts(); } else if( internal_tweaked_context->key_bit_size == 256 ) { cipher = EVP_aes_256_xts(); } if( EVP_CipherInit_ex( internal_tweaked_context->evp_cipher_context, cipher, NULL, (unsigned char *) internal_tweaked_context->key, (unsigned char *) tweak_value, mode ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize cipher.", function ); return( -1 ); } if( EVP_CipherUpdate( internal_tweaked_context->evp_cipher_context, (unsigned char *) output_data, &safe_output_data_size, (unsigned char *) input_data, input_data_size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update cipher.", function ); return( -1 ); } /* Just ignore the output of this function */ EVP_CipherFinal_ex( internal_tweaked_context->evp_cipher_context, (unsigned char *) block_data, &safe_output_data_size ); return( 1 ); } #else /* De- or encrypts a block of data using AES-XTS (XEX-based tweaked-codebook mode with ciphertext stealing) using fallback implementation * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_xts( libcaes_tweaked_context_t *tweaked_context, int mode, const uint8_t *tweak_value, size_t tweak_value_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t encrypted_tweak_value[ 16 ]; uint8_t encrypted_tweak_value_copy[ 16 ]; libcaes_internal_tweaked_context_t *internal_tweaked_context = NULL; static char *function = "libcaes_crypt_xts"; size_t data_offset = 0; size_t remaining_data_size = 0; uint8_t block_index = 0; uint8_t byte_value = 0; uint8_t carry_bit = 0; if( tweaked_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweaked context.", function ); return( -1 ); } internal_tweaked_context = (libcaes_internal_tweaked_context_t *) tweaked_context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( tweak_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweak value.", function ); return( -1 ); } if( tweak_value_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid tweak value size value out of bounds.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid input data size value too small.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } if( libcaes_crypt_ecb( internal_tweaked_context->tweak_context, LIBCAES_CRYPT_MODE_ENCRYPT, tweak_value, 16, encrypted_tweak_value, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to encrypt tweak value.", function ); goto on_error; } if( memory_copy( output_data, input_data, input_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy input data to output data.", function ); return( -1 ); } remaining_data_size = input_data_size; while( ( data_offset + 16 ) <= input_data_size ) { if( ( remaining_data_size < 32 ) && ( remaining_data_size != 16 ) ) { /* If the input data size is not a multitude of 16 the remaining data needs to be handled differently */ if( mode == LIBCAES_CRYPT_MODE_DECRYPT ) { if( memory_copy( encrypted_tweak_value_copy, encrypted_tweak_value, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy encrypted tweak value.", function ); goto on_error; } /* Update the encrypted tweak value for the next 16-byte block */ carry_bit = 0; for( block_index = 0; block_index < 16; block_index++ ) { byte_value = ( encrypted_tweak_value[ block_index ] << 1 ) | carry_bit; carry_bit = encrypted_tweak_value[ block_index ] >> 7; encrypted_tweak_value[ block_index ] = byte_value; } if( carry_bit > 0 ) { encrypted_tweak_value[ 0 ] ^= 0x87; } } } #if defined( LIBCAES_UNFOLLED_LOOPS ) output_data[ data_offset++ ] ^= encrypted_tweak_value[ 0 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 1 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 2 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 3 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 4 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 5 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 6 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 7 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 8 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 9 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 10 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 11 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 12 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 13 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 14 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 15 ]; #else for( block_index = 0; block_index < 16; block_index++ ) { output_data[ data_offset++ ] ^= encrypted_tweak_value[ block_index ]; } #endif data_offset -= 16; if( libcaes_crypt_ecb( internal_tweaked_context->main_context, mode, &( output_data[ data_offset ] ), 16, &( output_data[ data_offset ] ), 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to de/encrypt data.", function ); goto on_error; } #if defined( LIBCAES_UNFOLLED_LOOPS ) output_data[ data_offset++ ] ^= encrypted_tweak_value[ 0 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 1 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 2 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 3 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 4 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 5 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 6 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 7 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 8 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 9 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 10 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 11 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 12 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 13 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 14 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 15 ]; #else for( block_index = 0; block_index < 16; block_index++ ) { output_data[ data_offset++ ] ^= encrypted_tweak_value[ block_index ]; } #endif remaining_data_size -= 16; /* Update the encrypted tweak value for the next 16-byte block */ carry_bit = 0; for( block_index = 0; block_index < 16; block_index++ ) { byte_value = ( encrypted_tweak_value[ block_index ] << 1 ) | carry_bit; carry_bit = encrypted_tweak_value[ block_index ] >> 7; encrypted_tweak_value[ block_index ] = byte_value; } if( carry_bit > 0 ) { encrypted_tweak_value[ 0 ] ^= 0x87; } } /* Any remaining data needs to be handled differently */ if( remaining_data_size > 0 ) { if( mode == LIBCAES_CRYPT_MODE_DECRYPT ) { if( memory_copy( encrypted_tweak_value, encrypted_tweak_value_copy, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy encrypted tweak value.", function ); goto on_error; } if( memory_set( encrypted_tweak_value_copy, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear encrypted tweak value copy.", function ); goto on_error; } } /* Swap the data of the last 16-byte block with the remaining data */ data_offset -= 16; if( memory_copy( &( output_data[ data_offset + 16 ] ), &( output_data[ data_offset ] ), remaining_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy remaining output data.", function ); goto on_error; } if( memory_copy( &( output_data[ data_offset ] ), &( input_data[ data_offset + 16 ] ), remaining_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy input data to block data.", function ); goto on_error; } #if defined( LIBCAES_UNFOLLED_LOOPS ) output_data[ data_offset++ ] ^= encrypted_tweak_value[ 0 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 1 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 2 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 3 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 4 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 5 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 6 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 7 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 8 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 9 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 10 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 11 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 12 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 13 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 14 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 15 ]; #else for( block_index = 0; block_index < 16; block_index++ ) { output_data[ data_offset++ ] ^= encrypted_tweak_value[ block_index ]; } #endif data_offset -= 16; if( libcaes_crypt_ecb( internal_tweaked_context->main_context, mode, &( output_data[ data_offset ] ), 16, &( output_data[ data_offset ] ), 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to de/encrypt data.", function ); goto on_error; } #if defined( LIBCAES_UNFOLLED_LOOPS ) output_data[ data_offset++ ] ^= encrypted_tweak_value[ 0 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 1 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 2 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 3 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 4 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 5 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 6 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 7 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 8 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 9 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 10 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 11 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 12 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 13 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 14 ]; output_data[ data_offset++ ] ^= encrypted_tweak_value[ 15 ]; #else for( block_index = 0; block_index < 16; block_index++ ) { output_data[ data_offset++ ] ^= encrypted_tweak_value[ block_index ]; } #endif } if( memory_set( encrypted_tweak_value, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear encrypted tweak value.", function ); goto on_error; } return( 1 ); on_error: memory_set( encrypted_tweak_value_copy, 0, 16 ); memory_set( encrypted_tweak_value, 0, 16 ); return( -1 ); } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_XTS ) */ libfsapfs-20190210/libcaes/Makefile.am0000664000175000017500000000124713430101136021455 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCAES AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libcaes.la libcaes_la_SOURCES = \ libcaes_context.c libcaes_context.h \ libcaes_definitions.h \ libcaes_extern.h \ libcaes_error.c libcaes_error.h \ libcaes_libcerror.h \ libcaes_support.c libcaes_support.h \ libcaes_tweaked_context.c libcaes_tweaked_context.h \ libcaes_types.h \ libcaes_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcaes ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcaes_la_SOURCES) libfsapfs-20190210/libcaes/libcaes_support.h0000664000175000017500000000224313430101136022765 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_SUPPORT_H ) #define _LIBCAES_SUPPORT_H #include #include #include "libcaes_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCAES ) LIBCAES_EXTERN \ const char *libcaes_get_version( void ); #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCAES_SUPPORT_H ) */ libfsapfs-20190210/libcaes/libcaes_types.h0000664000175000017500000000311213430101136022411 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_INTERNAL_TYPES_H ) #define _LIBCAES_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBCAES for local use of libcaes * The definitions in are copied here * for local use of libcaes */ #if defined( HAVE_LOCAL_LIBCAES ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libcaes_context {} libcaes_context_t; typedef struct libcaes_tweaked_context {} libcaes_tweaked_context_t; #else typedef intptr_t libcaes_context_t; typedef intptr_t libcaes_tweaked_context_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBCAES ) */ #endif /* !defined( _LIBCAES_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libcaes/libcaes_support.c0000664000175000017500000000212713430101136022761 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcaes_definitions.h" #include "libcaes_support.h" #if !defined( HAVE_LOCAL_LIBCAES ) /* Returns the library version as a string */ const char *libcaes_get_version( void ) { return( (const char *) LIBCAES_VERSION_STRING ); } #endif libfsapfs-20190210/libcaes/libcaes_context.c0000664000175000017500000023066613430101136022744 0ustar00lordyestalordyesta00000000000000/* * AES de/encryption context functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #include #endif #include "libcaes_context.h" #include "libcaes_definitions.h" #include "libcaes_libcerror.h" #include "libcaes_types.h" #if !defined( LIBCAES_HAVE_AES_SUPPORT ) /* FIPS-197 compliant AES encryption functions * * The AES block cipher was designed by Vincent Rijmen and Joan Daemen. * * http://csrc.nist.gov/encryption/aes/rijndael/Rijndael.pdf * http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf */ #define libcaes_calculate_forward_substitution_value( value, index0, index1, index2, index3 ) \ value = libcaes_forward_substitution_box[ index3 ]; \ value <<= 8; \ value |= libcaes_forward_substitution_box[ index2 ]; \ value <<= 8; \ value |= libcaes_forward_substitution_box[ index1 ]; \ value <<= 8; \ value |= libcaes_forward_substitution_box[ index0 ]; #define libcaes_calculate_forward_table_value( value, index0, index1, index2, index3 ) \ value = libcaes_forward_table0[ index0 ]; \ value ^= libcaes_forward_table1[ index1 ]; \ value ^= libcaes_forward_table2[ index2 ]; \ value ^= libcaes_forward_table3[ index3 ]; #define libcaes_calculate_reverse_substitution_value( value, index0, index1, index2, index3 ) \ value = libcaes_reverse_substitution_box[ index3 ]; \ value <<= 8; \ value |= libcaes_reverse_substitution_box[ index2 ]; \ value <<= 8; \ value |= libcaes_reverse_substitution_box[ index1 ]; \ value <<= 8; \ value |= libcaes_reverse_substitution_box[ index0 ]; #define libcaes_calculate_reverse_table_value( value, index0, index1, index2, index3 ) \ value = libcaes_reverse_table0[ index0 ]; \ value ^= libcaes_reverse_table1[ index1 ]; \ value ^= libcaes_reverse_table2[ index2 ]; \ value ^= libcaes_reverse_table3[ index3 ]; #define libcaes_calculate_forward_substitution_round( round_keys, values_32bit, cipher_values_32bit, substitution_value ) \ libcaes_calculate_forward_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 0 ] & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 0 ] = round_keys[ 0 ] ^ substitution_value; \ \ libcaes_calculate_forward_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 1 ] & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 1 ] = round_keys[ 1 ] ^ substitution_value; \ \ libcaes_calculate_forward_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 2 ] & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 2 ] = round_keys[ 2 ] ^ substitution_value; \ \ libcaes_calculate_forward_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 3 ] & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 3 ] = round_keys[ 3 ] ^ substitution_value; #define libcaes_calculate_forward_table_round( round_keys, values_32bit, cipher_values_32bit, table_value ) \ libcaes_calculate_forward_table_value( \ table_value, \ ( cipher_values_32bit[ 0 ] & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 0 ] = round_keys[ 0 ] ^ table_value; \ \ libcaes_calculate_forward_table_value( \ table_value, \ ( cipher_values_32bit[ 1 ] & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 1 ] = round_keys[ 1 ] ^ table_value; \ \ libcaes_calculate_forward_table_value( \ table_value, \ ( cipher_values_32bit[ 2 ] & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 2 ] = round_keys[ 2 ] ^ table_value; \ \ libcaes_calculate_forward_table_value( \ table_value, \ ( cipher_values_32bit[ 3 ] & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 3 ] = round_keys[ 3 ] ^ table_value; #define libcaes_calculate_reverse_substitution_round( round_keys, values_32bit, cipher_values_32bit, substitution_value ) \ libcaes_calculate_reverse_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 0 ] & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 0 ] = round_keys[ 0 ] ^ substitution_value; \ \ libcaes_calculate_reverse_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 1 ] & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 1 ] = round_keys[ 1 ] ^ substitution_value; \ \ libcaes_calculate_reverse_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 2 ] & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 2 ] = round_keys[ 2 ] ^ substitution_value; \ \ libcaes_calculate_reverse_substitution_value( \ substitution_value, \ ( cipher_values_32bit[ 3 ] & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 3 ] = round_keys[ 3 ] ^ substitution_value; #define libcaes_calculate_reverse_table_round( round_keys, values_32bit, cipher_values_32bit, table_value ) \ libcaes_calculate_reverse_table_value( \ table_value, \ ( cipher_values_32bit[ 0 ] & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 0 ] = round_keys[ 0 ] ^ table_value; \ \ libcaes_calculate_reverse_table_value( \ table_value, \ ( cipher_values_32bit[ 1 ] & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 1 ] = round_keys[ 1 ] ^ table_value; \ \ libcaes_calculate_reverse_table_value( \ table_value, \ ( cipher_values_32bit[ 2 ] & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 3 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 2 ] = round_keys[ 2 ] ^ table_value; \ \ libcaes_calculate_reverse_table_value( \ table_value, \ ( cipher_values_32bit[ 3 ] & 0xff ), \ ( ( cipher_values_32bit[ 2 ] >> 8 ) & 0xff ), \ ( ( cipher_values_32bit[ 1 ] >> 16 ) & 0xff ), \ ( ( cipher_values_32bit[ 0 ] >> 24 ) & 0xff ) ); \ \ values_32bit[ 3 ] = round_keys[ 3 ] ^ table_value; /* Forward S-box & tables */ static uint8_t libcaes_forward_substitution_box[ 256 ]; static uint32_t libcaes_forward_table0[ 256 ]; static uint32_t libcaes_forward_table1[ 256 ]; static uint32_t libcaes_forward_table2[ 256 ]; static uint32_t libcaes_forward_table3[ 256 ]; /* Reverse S-box & tables */ static uint8_t libcaes_reverse_substitution_box[ 256 ]; static uint32_t libcaes_reverse_table0[ 256 ]; static uint32_t libcaes_reverse_table1[ 256 ]; static uint32_t libcaes_reverse_table2[ 256 ]; static uint32_t libcaes_reverse_table3[ 256 ]; /* Round constants */ static uint32_t libcaes_round_constants[ 10 ]; static int libcaes_tables_initialized = 0; #endif /* !defined( LIBCAES_HAVE_AES_SUPPORT ) */ /* Creates a context * Make sure the value context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcaes_context_initialize( libcaes_context_t **context, libcerror_error_t **error ) { libcaes_internal_context_t *internal_context = NULL; static char *function = "libcaes_context_initialize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid context value already set.", function ); return( -1 ); } internal_context = memory_allocate_structure( libcaes_internal_context_t ); if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create context.", function ); goto on_error; } if( memory_set( internal_context, 0, sizeof( libcaes_internal_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); goto on_error; } #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) /* No additional initialization necessary */ #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && ( defined( HAVE_EVP_CRYPTO_AES_CBC ) || defined( HAVE_EVP_CRYPTO_AES_ECB ) ) #if defined( HAVE_EVP_CIPHER_CTX_INIT ) EVP_CIPHER_CTX_init( &( internal_context->internal_evp_cipher_context ) ); internal_context->evp_cipher_context = &( internal_context->internal_evp_cipher_context ); #else internal_context->evp_cipher_context = EVP_CIPHER_CTX_new(); if( internal_context->evp_cipher_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create EVP cipher context.", function ); goto on_error; } #endif /* defined( HAVE_EVP_CIPHER_CTX_INIT ) */ if( EVP_CIPHER_CTX_set_padding( internal_context->evp_cipher_context, 1 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set padding in context.", function ); #if defined( HAVE_EVP_CIPHER_CTX_CLEANUP ) EVP_CIPHER_CTX_cleanup( &( internal_context->internal_evp_cipher_context ) ); ERR_remove_thread_state( NULL ); #else EVP_CIPHER_CTX_free( internal_context->evp_cipher_context ); #endif internal_context->evp_cipher_context = NULL; goto on_error; } #else if( libcaes_tables_initialized == 0 ) { if( libcaes_initialize_tables( error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize tables.", function ); goto on_error; } libcaes_tables_initialized = 1; } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) */ *context = (libcaes_context_t *) internal_context; return( 1 ); on_error: if( internal_context != NULL ) { memory_free( internal_context ); } return( -1 ); } /* Frees a context * Returns 1 if successful or -1 on error */ int libcaes_context_free( libcaes_context_t **context, libcerror_error_t **error ) { libcaes_internal_context_t *internal_context = NULL; static char *function = "libcaes_context_free"; int result = 1; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { internal_context = (libcaes_internal_context_t *) *context; *context = NULL; #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) /* No additional clean up necessary */ #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && ( defined( HAVE_EVP_CRYPTO_AES_CBC ) || defined( HAVE_EVP_CRYPTO_AES_ECB ) ) #if defined( HAVE_EVP_CIPHER_CTX_CLEANUP ) if( EVP_CIPHER_CTX_cleanup( &( internal_context->internal_evp_cipher_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clean up EVP cipher context.", function ); result = -1; } /* Make sure the error state is removed otherwise OpenSSL will leak memory */ ERR_remove_thread_state( NULL ); #else EVP_CIPHER_CTX_free( internal_context->evp_cipher_context ); #endif /* defined( HAVE_EVP_CIPHER_CTX_CLEANUP ) */ internal_context->evp_cipher_context = NULL; #else /* No additional clean up necessary */ #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) */ memory_free( internal_context ); } return( result ); } /* Sets the key * Returns 1 if successful or -1 on error */ int libcaes_context_set_key( libcaes_context_t *context, int mode, const uint8_t *key, size_t key_bit_size, libcerror_error_t **error ) { libcaes_internal_context_t *internal_context = NULL; static char *function = "libcaes_context_set_key"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libcaes_internal_context_t *) context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( ( key_bit_size != 128 ) && ( key_bit_size != 192 ) && ( key_bit_size != 256 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported key bit size.", function ); return( -1 ); } #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { if( AES_set_encrypt_key( (unsigned char *) key, (int) key_bit_size, &( internal_context->key ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set encryption key.", function ); return( -1 ); } } else { if( AES_set_decrypt_key( (unsigned char *) key, (int) key_bit_size, &( internal_context->key ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set decryption key.", function ); return( -1 ); } } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && ( defined( HAVE_EVP_CRYPTO_AES_CBC ) || defined( HAVE_EVP_CRYPTO_AES_ECB ) ) if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( memory_copy( internal_context->key, key, key_bit_size / 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key.", function ); return( -1 ); } internal_context->key_bit_size = key_bit_size; #else if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { if( libcaes_internal_context_set_encryption_key( internal_context, key, key_bit_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set encryption key.", function ); return( -1 ); } } else { if( libcaes_internal_context_set_decryption_key( internal_context, key, key_bit_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set decryption key.", function ); return( -1 ); } } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && ( defined( HAVE_AES_CBC_ENCRYPT ) || defined( HAVE_AES_ECB_ENCRYPT ) ) */ return( 1 ); } #if !defined( LIBCAES_HAVE_AES_SUPPORT ) /* Initializes the AES encryption and decryption tables * Returns 1 if successful or -1 on error */ int libcaes_initialize_tables( libcerror_error_t **error ) { uint8_t logs_table[ 256 ]; uint8_t powers_table[ 256 ]; static char *function = "libcaes_initialize_tables"; uint16_t byte_index = 0; uint16_t table_index = 0; uint8_t byte_value = 0; uint8_t round_constant_index = 0; uint8_t substitution_value = 0; if( memory_set( logs_table, 0, sizeof( uint8_t ) * 256 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear logs table.", function ); return( -1 ); } /* Fill the powers and logs tables over GF( 2^8 ) */ byte_value = 1; for( byte_index = 0; byte_index < 256; byte_index++ ) { powers_table[ byte_index ] = byte_value; logs_table[ byte_value ] = (uint8_t) byte_index; if( ( byte_value & 0x80 ) == 0 ) { byte_value ^= ( byte_value << 1 ) & 0xff; } else { byte_value ^= ( ( byte_value << 1 ) & 0xff ) ^ 0x1b; } } /* Fill the round constants */ byte_value = 1; for( round_constant_index = 0; round_constant_index < 10; round_constant_index++ ) { libcaes_round_constants[ round_constant_index ] = (uint32_t) byte_value; if( ( byte_value & 0x80 ) == 0 ) { byte_value = ( byte_value << 1 ) & 0xff; } else { byte_value = ( ( byte_value << 1 ) & 0xff ) ^ 0x1b; } } /* Fill the forward and reverse S-boxes */ libcaes_forward_substitution_box[ 0x00 ] = 0x63; libcaes_reverse_substitution_box[ 0x63 ] = 0x00; for( byte_index = 1; byte_index < 256; byte_index++ ) { table_index = 255 - logs_table[ byte_index ]; byte_value = powers_table[ table_index ]; substitution_value = ( ( byte_value << 1 ) & 0xff ) | ( byte_value >> 7 ); byte_value ^= substitution_value; substitution_value = ( ( substitution_value << 1 ) & 0xff ) | ( substitution_value >> 7 ); byte_value ^= substitution_value; substitution_value = ( ( substitution_value << 1 ) & 0xff ) | ( substitution_value >> 7 ); byte_value ^= substitution_value; substitution_value = ( ( substitution_value << 1 ) & 0xff ) | ( substitution_value >> 7 ); substitution_value ^= byte_value ^ 0x63; libcaes_forward_substitution_box[ byte_index ] = substitution_value; libcaes_reverse_substitution_box[ substitution_value ] = (uint8_t) byte_index; } /* Fill the forward and reverse tables */ for( byte_index = 0; byte_index < 256; byte_index++ ) { byte_value = libcaes_forward_substitution_box[ byte_index ]; if( ( byte_value & 0x80 ) == 0 ) { substitution_value = ( byte_value << 1 ) & 0xff; } else { substitution_value = ( ( byte_value << 1 ) & 0xff ) ^ 0x1b; } libcaes_forward_table0[ byte_index ] = byte_value ^ substitution_value; libcaes_forward_table0[ byte_index ] <<= 8; libcaes_forward_table0[ byte_index ] |= byte_value; libcaes_forward_table0[ byte_index ] <<= 8; libcaes_forward_table0[ byte_index ] |= byte_value; libcaes_forward_table0[ byte_index ] <<= 8; libcaes_forward_table0[ byte_index ] |= substitution_value; libcaes_forward_table1[ byte_index ] = byte_stream_bit_rotate_left( libcaes_forward_table0[ byte_index ], 8 ); libcaes_forward_table2[ byte_index ] = byte_stream_bit_rotate_left( libcaes_forward_table1[ byte_index ], 8 ); libcaes_forward_table3[ byte_index ] = byte_stream_bit_rotate_left( libcaes_forward_table2[ byte_index ], 8 ); substitution_value = libcaes_reverse_substitution_box[ byte_index ]; libcaes_reverse_table0[ byte_index ] = 0; if( substitution_value != 0 ) { table_index = logs_table[ 0x0b ]; table_index += logs_table[ substitution_value ]; table_index %= 255; libcaes_reverse_table0[ byte_index ] ^= powers_table[ table_index ]; libcaes_reverse_table0[ byte_index ] <<= 8; table_index = logs_table[ 0x0d ]; table_index += logs_table[ substitution_value ]; table_index %= 255; libcaes_reverse_table0[ byte_index ] ^= powers_table[ table_index ]; libcaes_reverse_table0[ byte_index ] <<= 8; table_index = logs_table[ 0x09 ]; table_index += logs_table[ substitution_value ]; table_index %= 255; libcaes_reverse_table0[ byte_index ] ^= powers_table[ table_index ]; libcaes_reverse_table0[ byte_index ] <<= 8; table_index = logs_table[ 0x0e ]; table_index += logs_table[ substitution_value ]; table_index %= 255; libcaes_reverse_table0[ byte_index ] ^= powers_table[ table_index ]; } libcaes_reverse_table1[ byte_index ] = byte_stream_bit_rotate_left( libcaes_reverse_table0[ byte_index ], 8 ); libcaes_reverse_table2[ byte_index ] = byte_stream_bit_rotate_left( libcaes_reverse_table1[ byte_index ], 8 ); libcaes_reverse_table3[ byte_index ] = byte_stream_bit_rotate_left( libcaes_reverse_table2[ byte_index ], 8 ); } return( 1 ); } /* Sets the AES decryption key * Returns 1 if successful or -1 on error */ int libcaes_internal_context_set_decryption_key( libcaes_internal_context_t *internal_context, const uint8_t *key, size_t key_bit_size, libcerror_error_t **error ) { libcaes_internal_context_t *encryption_context = NULL; static char *function = "libcaes_internal_context_set_decryption_key"; uint32_t *encryption_round_keys = NULL; uint32_t *round_keys = NULL; size_t round_keys_byte_offset = 0; uint8_t byte_value0 = 0; uint8_t byte_value1 = 0; uint8_t byte_value2 = 0; uint8_t byte_value3 = 0; int round_key_iterator = 0; if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( ( key_bit_size != 128 ) && ( key_bit_size != 192 ) && ( key_bit_size != 256 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported key bit size.", function ); return( -1 ); } if( key_bit_size == 128 ) { internal_context->number_of_round_keys = 10; } else if( key_bit_size == 192 ) { internal_context->number_of_round_keys = 12; } else if( key_bit_size == 256 ) { internal_context->number_of_round_keys = 14; } /* Align the buffer to next 16-byte blocks */ internal_context->round_keys = (uint32_t *) ( 16 + ( (intptr_t) internal_context->round_keys_data & ~( 15 ) ) ); round_keys = internal_context->round_keys; if( libcaes_context_initialize( (libcaes_context_t **) &encryption_context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create encryption context.", function ); goto on_error; } if( libcaes_internal_context_set_encryption_key( encryption_context, key, key_bit_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set encryption key.", function ); goto on_error; } /* Point to the end of the round keys */ round_keys_byte_offset = encryption_context->number_of_round_keys * sizeof( uint32_t ); encryption_round_keys = &( encryption_context->round_keys[ round_keys_byte_offset ] ); round_keys[ 0 ] = encryption_round_keys[ 0 ]; round_keys[ 1 ] = encryption_round_keys[ 1 ]; round_keys[ 2 ] = encryption_round_keys[ 2 ]; round_keys[ 3 ] = encryption_round_keys[ 3 ]; round_keys += 4; encryption_round_keys -= 4; for( round_key_iterator = internal_context->number_of_round_keys; round_key_iterator > 1; round_key_iterator-- ) { byte_value0 = ( encryption_round_keys[ 0 ] & 0xff ); byte_value1 = ( ( encryption_round_keys[ 0 ] >> 8 ) & 0xff ); byte_value2 = ( ( encryption_round_keys[ 0 ] >> 16 ) & 0xff ); byte_value3 = ( ( encryption_round_keys[ 0 ] >> 24 ) & 0xff ); byte_value0 = libcaes_forward_substitution_box[ byte_value0 ]; byte_value1 = libcaes_forward_substitution_box[ byte_value1 ]; byte_value2 = libcaes_forward_substitution_box[ byte_value2 ]; byte_value3 = libcaes_forward_substitution_box[ byte_value3 ]; round_keys[ 0 ] = libcaes_reverse_table0[ byte_value0 ] ^ libcaes_reverse_table1[ byte_value1 ] ^ libcaes_reverse_table2[ byte_value2 ] ^ libcaes_reverse_table3[ byte_value3 ]; byte_value0 = ( encryption_round_keys[ 1 ] & 0xff ); byte_value1 = ( ( encryption_round_keys[ 1 ] >> 8 ) & 0xff ); byte_value2 = ( ( encryption_round_keys[ 1 ] >> 16 ) & 0xff ); byte_value3 = ( ( encryption_round_keys[ 1 ] >> 24 ) & 0xff ); byte_value0 = libcaes_forward_substitution_box[ byte_value0 ]; byte_value1 = libcaes_forward_substitution_box[ byte_value1 ]; byte_value2 = libcaes_forward_substitution_box[ byte_value2 ]; byte_value3 = libcaes_forward_substitution_box[ byte_value3 ]; round_keys[ 1 ] = libcaes_reverse_table0[ byte_value0 ] ^ libcaes_reverse_table1[ byte_value1 ] ^ libcaes_reverse_table2[ byte_value2 ] ^ libcaes_reverse_table3[ byte_value3 ]; byte_value0 = ( encryption_round_keys[ 2 ] & 0xff ); byte_value1 = ( ( encryption_round_keys[ 2 ] >> 8 ) & 0xff ); byte_value2 = ( ( encryption_round_keys[ 2 ] >> 16 ) & 0xff ); byte_value3 = ( ( encryption_round_keys[ 2 ] >> 24 ) & 0xff ); byte_value0 = libcaes_forward_substitution_box[ byte_value0 ]; byte_value1 = libcaes_forward_substitution_box[ byte_value1 ]; byte_value2 = libcaes_forward_substitution_box[ byte_value2 ]; byte_value3 = libcaes_forward_substitution_box[ byte_value3 ]; round_keys[ 2 ] = libcaes_reverse_table0[ byte_value0 ] ^ libcaes_reverse_table1[ byte_value1 ] ^ libcaes_reverse_table2[ byte_value2 ] ^ libcaes_reverse_table3[ byte_value3 ]; byte_value0 = ( encryption_round_keys[ 3 ] & 0xff ); byte_value1 = ( ( encryption_round_keys[ 3 ] >> 8 ) & 0xff ); byte_value2 = ( ( encryption_round_keys[ 3 ] >> 16 ) & 0xff ); byte_value3 = ( ( encryption_round_keys[ 3 ] >> 24 ) & 0xff ); byte_value0 = libcaes_forward_substitution_box[ byte_value0 ]; byte_value1 = libcaes_forward_substitution_box[ byte_value1 ]; byte_value2 = libcaes_forward_substitution_box[ byte_value2 ]; byte_value3 = libcaes_forward_substitution_box[ byte_value3 ]; round_keys[ 3 ] = libcaes_reverse_table0[ byte_value0 ] ^ libcaes_reverse_table1[ byte_value1 ] ^ libcaes_reverse_table2[ byte_value2 ] ^ libcaes_reverse_table3[ byte_value3 ]; round_keys += 4; encryption_round_keys -= 4; } round_keys[ 0 ] = encryption_round_keys[ 0 ]; round_keys[ 1 ] = encryption_round_keys[ 1 ]; round_keys[ 2 ] = encryption_round_keys[ 2 ]; round_keys[ 3 ] = encryption_round_keys[ 3 ]; if( libcaes_context_free( (libcaes_context_t **) &encryption_context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free encryption context.", function ); goto on_error; } return( 1 ); on_error: if( encryption_context != NULL ) { libcaes_context_free( (libcaes_context_t **) &encryption_context, NULL ); } return( -1 ); } /* Sets the AES encryption key * Returns 1 if successful or -1 on error */ int libcaes_internal_context_set_encryption_key( libcaes_internal_context_t *internal_context, const uint8_t *key, size_t key_bit_size, libcerror_error_t **error ) { static char *function = "libcaes_internal_context_set_encryption_key"; uint32_t *round_keys = NULL; size_t key_index = 0; int round_constant_index = 0; if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( ( key_bit_size != 128 ) && ( key_bit_size != 192 ) && ( key_bit_size != 256 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported key bit size.", function ); return( -1 ); } /* Align the buffer to next 16-byte blocks */ internal_context->round_keys = (uint32_t *) ( 16 + ( (intptr_t) internal_context->round_keys_data & ~( 15 ) ) ); round_keys = internal_context->round_keys; for( key_index = 0; key_index < key_bit_size / 8; key_index += 4 ) { byte_stream_copy_to_uint32_little_endian( &( key[ key_index ] ), round_keys[ round_constant_index ] ); round_constant_index++; } if( key_bit_size == 128 ) { internal_context->number_of_round_keys = 10; for( round_constant_index = 0; round_constant_index < 10; round_constant_index++ ) { round_keys[ 4 ] = libcaes_round_constants[ round_constant_index ]; round_keys[ 4 ] ^= round_keys[ 0 ]; round_keys[ 4 ] ^= (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 3 ] >> 8 ) & 0xff ]; round_keys[ 4 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 3 ] >> 16 ) & 0xff ] ) << 8; round_keys[ 4 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 3 ] >> 24 ) & 0xff ] ) << 16; round_keys[ 4 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 3 ] ) & 0xff ] ) << 24; round_keys[ 5 ] = round_keys[ 1 ] ^ round_keys[ 4 ]; round_keys[ 6 ] = round_keys[ 2 ] ^ round_keys[ 5 ]; round_keys[ 7 ] = round_keys[ 3 ] ^ round_keys[ 6 ]; round_keys += 4; } } else if( key_bit_size == 192 ) { internal_context->number_of_round_keys = 12; for( round_constant_index = 0; round_constant_index < 8; round_constant_index++ ) { round_keys[ 6 ] = libcaes_round_constants[ round_constant_index ]; round_keys[ 6 ] ^= round_keys[ 0 ]; round_keys[ 6 ] ^= (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 5 ] >> 8 ) & 0xff ]; round_keys[ 6 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 5 ] >> 16 ) & 0xff ] ) << 8; round_keys[ 6 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 5 ] >> 24 ) & 0xff ] ) << 16; round_keys[ 6 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 5 ] ) & 0xff ] ) << 24; round_keys[ 7 ] = round_keys[ 1 ] ^ round_keys[ 6 ]; round_keys[ 8 ] = round_keys[ 2 ] ^ round_keys[ 7 ]; round_keys[ 9 ] = round_keys[ 3 ] ^ round_keys[ 8 ]; round_keys[ 10 ] = round_keys[ 4 ] ^ round_keys[ 9 ]; round_keys[ 11 ] = round_keys[ 5 ] ^ round_keys[ 10 ]; round_keys += 6; } } else if( key_bit_size == 256 ) { internal_context->number_of_round_keys = 14; for( round_constant_index = 0; round_constant_index < 7; round_constant_index++ ) { round_keys[ 8 ] = libcaes_round_constants[ round_constant_index ]; round_keys[ 8 ] ^= round_keys[ 0 ]; round_keys[ 8 ] ^= (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 7 ] >> 8 ) & 0xff ]; round_keys[ 8 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 7 ] >> 16 ) & 0xff ] ) << 8; round_keys[ 8 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 7 ] >> 24 ) & 0xff ] ) << 16; round_keys[ 8 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 7 ] ) & 0xff ] ) << 24; round_keys[ 9 ] = round_keys[ 1 ] ^ round_keys[ 8 ]; round_keys[ 10 ] = round_keys[ 2 ] ^ round_keys[ 9 ]; round_keys[ 11 ] = round_keys[ 3 ] ^ round_keys[ 10 ]; round_keys[ 12 ] = round_keys[ 4 ]; round_keys[ 12 ] ^= (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 11 ] ) & 0xff ]; round_keys[ 12 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 11 ] >> 8 ) & 0xff ] ) << 8; round_keys[ 12 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 11 ] >> 16 ) & 0xff ] ) << 16; round_keys[ 12 ] ^= ( (uint32_t) libcaes_forward_substitution_box[ ( round_keys[ 11 ] >> 24 ) & 0xff ] ) << 24; round_keys[ 13 ] = round_keys[ 5 ] ^ round_keys[ 12 ]; round_keys[ 14 ] = round_keys[ 6 ] ^ round_keys[ 13 ]; round_keys[ 15 ] = round_keys[ 7 ] ^ round_keys[ 14 ]; round_keys += 8; } } return( 1 ); } #endif /* !defined( LIBCAES_HAVE_AES_SUPPORT ) */ #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && defined( HAVE_AES_CBC_ENCRYPT ) /* De- or encrypts a block of data using AES-CBC (Cipher Block Chaining) using OpenSSL * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_cbc( libcaes_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t safe_initialization_vector[ 16 ]; libcaes_internal_context_t *internal_context = NULL; static char *function = "libcaes_crypt_cbc"; int safe_mode = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libcaes_internal_context_t *) context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( initialization_vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid initialization vector.", function ); return( -1 ); } if( initialization_vector_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid initialization vector size value out of bounds.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } /* Check if the input data size is a multitude of 16-byte */ if( ( input_data_size & (size_t) 0x0f ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid input data size value out of bounds.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { safe_mode = AES_ENCRYPT; } else { safe_mode = AES_DECRYPT; } /* AES_cbc_encrypt overwrites the data in the initialization vector */ if( memory_copy( safe_initialization_vector, initialization_vector, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy initialization vector.", function ); return( -1 ); } AES_cbc_encrypt( (unsigned char *) input_data, (unsigned char *) output_data, input_data_size, &( internal_context->key ), (unsigned char *) safe_initialization_vector, safe_mode ); if( memory_set( safe_initialization_vector, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear initialization vector.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_CBC ) /* De- or encrypts a block of data using AES-CBC (Cipher Block Chaining) using OpenSSL EVP * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_cbc( libcaes_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t block_data[ EVP_MAX_BLOCK_LENGTH ]; const EVP_CIPHER *cipher = NULL; libcaes_internal_context_t *internal_context = NULL; static char *function = "libcaes_crypt_cbc"; int safe_output_data_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libcaes_internal_context_t *) context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( initialization_vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid initialization vector.", function ); return( -1 ); } if( initialization_vector_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid initialization vector size value out of bounds.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } /* Check if the input data size is a multitude of 16-byte */ if( ( input_data_size & (size_t) 0x0f ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid input data size value out of bounds.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } if( memory_set( block_data, 0, EVP_MAX_BLOCK_LENGTH ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear input block data.", function ); return( -1 ); } if( internal_context->key_bit_size == 128 ) { cipher = EVP_aes_128_cbc(); } else if( internal_context->key_bit_size == 192 ) { cipher = EVP_aes_192_cbc(); } else if( internal_context->key_bit_size == 256 ) { cipher = EVP_aes_256_cbc(); } if( EVP_CipherInit_ex( internal_context->evp_cipher_context, cipher, NULL, (unsigned char *) internal_context->key, (unsigned char *) initialization_vector, mode ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize cipher.", function ); return( -1 ); } if( EVP_CipherUpdate( internal_context->evp_cipher_context, (unsigned char *) output_data, &safe_output_data_size, (unsigned char *) input_data, input_data_size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update cipher.", function ); return( -1 ); } /* Just ignore the output of this function */ EVP_CipherFinal_ex( internal_context->evp_cipher_context, (unsigned char *) block_data, &safe_output_data_size ); return( 1 ); } #else /* De- or encrypts a block of data using AES-CBC (Cipher Block Chaining) using fallback implementation * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_cbc( libcaes_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t internal_initialization_vector[ 16 ]; static char *function = "libcaes_crypt_cbc"; size_t data_offset = 0; #if !defined( LIBCAES_UNFOLLED_LOOPS ) uint8_t block_index = 0; #endif if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( initialization_vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid initialization vector.", function ); return( -1 ); } if( initialization_vector_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid initialization vector size value out of bounds.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } /* Check if the input data size is a multitude of 16-byte */ if( ( input_data_size & (size_t) 0x0f ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid input data size value out of bounds.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } if( memory_copy( internal_initialization_vector, initialization_vector, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy initialization vector.", function ); goto on_error; } if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { if( memory_copy( output_data, input_data, input_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy input data to output data.", function ); goto on_error; } } while( data_offset < input_data_size ) { if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { #if defined( LIBCAES_UNFOLLED_LOOPS ) output_data[ data_offset++ ] ^= internal_initialization_vector[ 0 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 1 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 2 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 3 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 4 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 5 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 6 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 7 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 8 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 9 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 10 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 11 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 12 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 13 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 14 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 15 ]; #else for( block_index = 0; block_index < 16; block_index++ ) { output_data[ data_offset++ ] ^= internal_initialization_vector[ block_index ]; } #endif data_offset -= 16; if( libcaes_crypt_ecb( context, mode, &( output_data[ data_offset ] ), 16, &( output_data[ data_offset ] ), 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_ENCRYPT_FAILED, "%s: unable to encrypt output data.", function ); goto on_error; } if( memory_copy( internal_initialization_vector, &( output_data[ data_offset ] ), 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy enrypted output data to initialization vector.", function ); goto on_error; } } else { if( libcaes_crypt_ecb( context, mode, &( input_data[ data_offset ] ), 16, &( output_data[ data_offset ] ), 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to decrypt output data.", function ); goto on_error; } #if defined( LIBCAES_UNFOLLED_LOOPS ) output_data[ data_offset++ ] ^= internal_initialization_vector[ 0 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 1 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 2 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 3 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 4 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 5 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 6 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 7 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 8 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 9 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 10 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 11 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 12 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 13 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 14 ]; output_data[ data_offset++ ] ^= internal_initialization_vector[ 15 ]; #else for( block_index = 0; block_index < 16; block_index++ ) { output_data[ data_offset++ ] ^= internal_initialization_vector[ block_index ]; } #endif data_offset -= 16; if( memory_copy( internal_initialization_vector, &( input_data[ data_offset ] ), 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy enrypted input data to initialization vector.", function ); goto on_error; } } data_offset += 16; } if( memory_set( internal_initialization_vector, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear initialization vector.", function ); goto on_error; } return( 1 ); on_error: memory_set( internal_initialization_vector, 0, 16 ); return( -1 ); } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && defined( HAVE_AES_CBC_ENCRYPT ) */ /* De- or encrypts a block of data using AES-CCM (Counter with CBC-MAC) * Note that the key must be set in encryption mode (LIBCAES_CRYPT_MODE_ENCRYPT) for both de- and encryption. * Returns 1 if successful or -1 on error */ int libcaes_crypt_ccm( libcaes_context_t *context, int mode, const uint8_t *nonce, size_t nonce_size, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t block_data[ 16 ]; uint8_t internal_initialization_vector[ 16 ]; static char *function = "libcaes_crypt_ccm"; size_t data_offset = 0; size_t remaining_data_size = 0; uint8_t block_index = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( nonce == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid nonce.", function ); return( -1 ); } if( nonce_size >= (size_t) 15 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid nonce size value out of bounds.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } /* The IV consists of: * 1 byte size value formatted as: 15 - nonce size - 1 * a maximum of 14 bytes containing nonce bytes * 1 byte counter */ if( memory_set( internal_initialization_vector, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear initialization vector.", function ); goto on_error; } if( memory_copy( &( internal_initialization_vector[ 1 ] ), nonce, nonce_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy nonce to initialization vector.", function ); goto on_error; } internal_initialization_vector[ 0 ] = 15 - (uint8_t) nonce_size - 1; if( memory_copy( output_data, input_data, input_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy input data to output data.", function ); goto on_error; } while( ( data_offset + 16 ) < input_data_size ) { if( libcaes_crypt_ecb( context, LIBCAES_CRYPT_MODE_ENCRYPT, internal_initialization_vector, 16, block_data, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_ENCRYPT_FAILED, "%s: unable to encrypt initialization vector.", function ); goto on_error; } #if defined( LIBCAES_UNFOLLED_LOOPS ) output_data[ data_offset++ ] ^= block_data[ 0 ]; output_data[ data_offset++ ] ^= block_data[ 1 ]; output_data[ data_offset++ ] ^= block_data[ 2 ]; output_data[ data_offset++ ] ^= block_data[ 3 ]; output_data[ data_offset++ ] ^= block_data[ 4 ]; output_data[ data_offset++ ] ^= block_data[ 5 ]; output_data[ data_offset++ ] ^= block_data[ 6 ]; output_data[ data_offset++ ] ^= block_data[ 7 ]; output_data[ data_offset++ ] ^= block_data[ 8 ]; output_data[ data_offset++ ] ^= block_data[ 9 ]; output_data[ data_offset++ ] ^= block_data[ 10 ]; output_data[ data_offset++ ] ^= block_data[ 11 ]; output_data[ data_offset++ ] ^= block_data[ 12 ]; output_data[ data_offset++ ] ^= block_data[ 13 ]; output_data[ data_offset++ ] ^= block_data[ 14 ]; output_data[ data_offset++ ] ^= block_data[ 15 ]; #else for( block_index = 0; block_index < 16; block_index++ ) { output_data[ data_offset++ ] ^= block_data[ block_index ]; } #endif internal_initialization_vector[ 15 ] += 1; } if( data_offset < input_data_size ) { remaining_data_size = input_data_size - data_offset; if( libcaes_crypt_ecb( context, LIBCAES_CRYPT_MODE_ENCRYPT, internal_initialization_vector, 16, block_data, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_ENCRYPT_FAILED, "%s: unable to encrypt initialization vector.", function ); goto on_error; } for( block_index = 0; block_index < (uint8_t) remaining_data_size; block_index++ ) { output_data[ data_offset++ ] ^= block_data[ block_index ]; } } if( memory_set( block_data, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); goto on_error; } if( memory_set( internal_initialization_vector, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear initialization vector.", function ); goto on_error; } return( 1 ); on_error: memory_set( block_data, 0, 16 ); memory_set( internal_initialization_vector, 0, 16 ); return( -1 ); } #ifdef TODO /* De- or encrypts a block of data using AES-CFB (Cipher Feedback Mode) * Returns 1 if successful or -1 on error */ int libcaes_crypt_cfb( libcaes_context_t *context, int mode, const uint8_t *initialization_vector, size_t initialization_vector_size, size_t *initialization_vector_index, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { static char *function = "libcaes_crypt_cfb"; size_t data_offset = 0; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( initialization_vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid initialization vector.", function ); return( -1 ); } if( initialization_vector_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid initialization vector size value out of bounds.", function ); return( -1 ); } if( initialization_vector_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid initialization vector index.", function ); return( -1 ); } if( *initialization_vector_index >= initialization_vector_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid initialization vector index value out of bounds.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } /* Check if the input data size is a multitude of 16-byte */ if( ( input_data_size & (size_t) 0x0f ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid input data size value out of bounds.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size > input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid ouput data size value exceeds input data size.", function ); return( -1 ); } for( data_offset = 0; data_offset < input_data_size; data_offset++ ) { if( *initialization_vector_index == 0 ) { if( libcaes_crypt_ecb( context, mode, initialization_vector, initialization_vector_size, initialization_vector, initialization_vector_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to de/encrypt initialization vector.", function ); return( -1 ); } } output_data[ data_offset ] = input_data[ data_offset ] ^ initialization_vector[ *initialization_vector_index ]; if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { initialization_vector[ *initialization_vector_index ] = output_data[ data_offset ]; } else { initialization_vector[ *initialization_vector_index ] = input_data[ data_offset ]; } *initialization_vector_index = ( *initialization_vector_index + 1 ) & 0x0f; } return( 1 ); } #endif /* TODO */ #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && defined( HAVE_AES_ECB_ENCRYPT ) /* De- or encrypts a block of data using AES-ECB (Electronic CodeBook) using OpenSSL * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_ecb( libcaes_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { libcaes_internal_context_t *internal_context = NULL; static char *function = "libcaes_crypt_ecb"; int result = 1; int safe_mode = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libcaes_internal_context_t *) context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } if( input_data_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid input data size value too small.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { safe_mode = AES_ENCRYPT; } else { safe_mode = AES_DECRYPT; } AES_ecb_encrypt( (unsigned char *) input_data, (unsigned char *) output_data, &( internal_context->key ), safe_mode ); return( result ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_CRYPTO_AES_ECB ) /* De- or encrypts a block of data using AES-ECB (Electronic CodeBook) using OpenSSL EVP * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_ecb( libcaes_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t block_data[ EVP_MAX_BLOCK_LENGTH ]; const EVP_CIPHER *cipher = NULL; libcaes_internal_context_t *internal_context = NULL; static char *function = "libcaes_crypt_ecb"; int result = 1; int safe_output_data_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libcaes_internal_context_t *) context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } if( input_data_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid input data size value too small.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } if( memory_set( block_data, 0, EVP_MAX_BLOCK_LENGTH ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } if( internal_context->key_bit_size == 128 ) { cipher = EVP_aes_128_ecb(); } else if( internal_context->key_bit_size == 192 ) { cipher = EVP_aes_192_ecb(); } else if( internal_context->key_bit_size == 256 ) { cipher = EVP_aes_256_ecb(); } if( EVP_CipherInit_ex( internal_context->evp_cipher_context, cipher, NULL, (unsigned char *) internal_context->key, NULL, mode ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize cipher.", function ); return( -1 ); } if( EVP_CipherUpdate( internal_context->evp_cipher_context, (unsigned char *) output_data, &safe_output_data_size, (unsigned char *) input_data, 16 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update cipher.", function ); return( -1 ); } /* Just ignore the output of this function */ EVP_CipherFinal_ex( internal_context->evp_cipher_context, (unsigned char *) block_data, &safe_output_data_size ); return( result ); } #else /* De- or encrypts a block of data using AES-ECB (Electronic CodeBook) using fallback implementation * The size must be a multitude of the AES block size (16 byte) * Returns 1 if successful or -1 on error */ int libcaes_crypt_ecb( libcaes_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint32_t cipher_values_32bit[ 4 ]; uint32_t values_32bit[ 4 ]; libcaes_internal_context_t *internal_context = NULL; uint32_t *round_keys = NULL; static char *function = "libcaes_crypt_ecb"; size_t data_offset = 0; uint32_t substitution_value = 0; uint32_t table_value = 0; int result = 1; int round_key_iterator = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libcaes_internal_context_t *) context; if( ( mode != LIBCAES_CRYPT_MODE_DECRYPT ) && ( mode != LIBCAES_CRYPT_MODE_ENCRYPT ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } if( input_data_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid input data size value too small.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid ouput data size smaller than input data size.", function ); return( -1 ); } while( data_offset < input_data_size ) { byte_stream_copy_to_uint32_little_endian( &( input_data[ data_offset ] ), values_32bit[ 0 ] ); byte_stream_copy_to_uint32_little_endian( &( input_data[ data_offset + 4 ] ), values_32bit[ 1 ] ); byte_stream_copy_to_uint32_little_endian( &( input_data[ data_offset + 8 ] ), values_32bit[ 2 ] ); byte_stream_copy_to_uint32_little_endian( &( input_data[ data_offset + 12 ] ), values_32bit[ 3 ] ); round_keys = internal_context->round_keys; values_32bit[ 0 ] ^= round_keys[ 0 ]; values_32bit[ 1 ] ^= round_keys[ 1 ]; values_32bit[ 2 ] ^= round_keys[ 2 ]; values_32bit[ 3 ] ^= round_keys[ 3 ]; round_keys += 4; if( mode == LIBCAES_CRYPT_MODE_ENCRYPT ) { for( round_key_iterator = ( internal_context->number_of_round_keys / 2 ); round_key_iterator > 1; round_key_iterator-- ) { libcaes_calculate_forward_table_round( round_keys, cipher_values_32bit, values_32bit, table_value ); round_keys += 4; libcaes_calculate_forward_table_round( round_keys, values_32bit, cipher_values_32bit, table_value ); round_keys += 4; } libcaes_calculate_forward_table_round( round_keys, cipher_values_32bit, values_32bit, table_value ); round_keys += 4; libcaes_calculate_forward_substitution_round( round_keys, values_32bit, cipher_values_32bit, substitution_value ); } else { for( round_key_iterator = ( internal_context->number_of_round_keys / 2 ); round_key_iterator > 1; round_key_iterator-- ) { libcaes_calculate_reverse_table_round( round_keys, cipher_values_32bit, values_32bit, table_value ); round_keys += 4; libcaes_calculate_reverse_table_round( round_keys, values_32bit, cipher_values_32bit, table_value ); round_keys += 4; } libcaes_calculate_reverse_table_round( round_keys, cipher_values_32bit, values_32bit, table_value ); round_keys += 4; libcaes_calculate_reverse_substitution_round( round_keys, values_32bit, cipher_values_32bit, table_value ); } byte_stream_copy_from_uint32_little_endian( &( output_data[ data_offset ] ), values_32bit[ 0 ] ); byte_stream_copy_from_uint32_little_endian( &( output_data[ data_offset + 4 ] ), values_32bit[ 1 ] ); byte_stream_copy_from_uint32_little_endian( &( output_data[ data_offset + 8 ] ), values_32bit[ 2 ] ); byte_stream_copy_from_uint32_little_endian( &( output_data[ data_offset + 12 ] ), values_32bit[ 3 ] ); if( memory_set( values_32bit, 0, sizeof( uint32_t ) * 4 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear values 32-bit.", function ); result = -1; } if( memory_set( cipher_values_32bit, 0, sizeof( uint32_t ) * 4 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear cipher values 32-bit.", function ); result = -1; } data_offset += 16; } return( result ); } #endif /* defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) && defined( HAVE_AES_ECB_ENCRYPT ) */ libfsapfs-20190210/libcaes/libcaes_error.h0000664000175000017500000000335613430101136022410 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_INTERNAL_ERROR_H ) #define _LIBCAES_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBCAES ) #include #endif #include "libcaes_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCAES ) LIBCAES_EXTERN \ void libcaes_error_free( libcaes_error_t **error ); LIBCAES_EXTERN \ int libcaes_error_fprint( libcaes_error_t *error, FILE *stream ); LIBCAES_EXTERN \ int libcaes_error_sprint( libcaes_error_t *error, char *string, size_t size ); LIBCAES_EXTERN \ int libcaes_error_backtrace_fprint( libcaes_error_t *error, FILE *stream ); LIBCAES_EXTERN \ int libcaes_error_backtrace_sprint( libcaes_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBCAES ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCAES_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libcaes/libcaes_unused.h0000664000175000017500000000257213430101136022561 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_UNUSED_H ) #define _LIBCAES_UNUSED_H #include #if !defined( LIBCAES_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCAES_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCAES_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCAES_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCAES_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCAES_UNUSED_H ) */ libfsapfs-20190210/libcaes/libcaes_definitions.h0000664000175000017500000000332113430101136023562 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCAES_INTERNAL_DEFINITIONS_H ) #define LIBCAES_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCAES for local use of libcaes */ #if !defined( HAVE_LOCAL_LIBCAES ) #include /* The definitions in are copied here * for local use of libcaes */ #else #define LIBCAES_VERSION 20190102 /* The libcaes version string */ #define LIBCAES_VERSION_STRING "20190102" /* The crypt modes */ enum LIBCAES_CRYPT_MODES { LIBCAES_CRYPT_MODE_DECRYPT = 0, LIBCAES_CRYPT_MODE_ENCRYPT = 1 }; #endif /* !defined( HAVE_LOCAL_LIBCAES ) */ #if defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_AES_H ) #define LIBCAES_HAVE_AES_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #define LIBCAES_HAVE_AES_SUPPORT #endif #define LIBCAES_UNFOLLED_LOOPS #endif /* !defined( LIBCAES_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libcaes/libcaes_libcerror.h0000664000175000017500000000263513430101136023241 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_LIBCERROR_H ) #define _LIBCAES_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCAES_LIBCERROR_H ) */ libfsapfs-20190210/libcaes/Makefile.in0000664000175000017500000007510313430101253021470 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcaes ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcaes_la_LIBADD = am__libcaes_la_SOURCES_DIST = libcaes_context.c libcaes_context.h \ libcaes_definitions.h libcaes_extern.h libcaes_error.c \ libcaes_error.h libcaes_libcerror.h libcaes_support.c \ libcaes_support.h libcaes_tweaked_context.c \ libcaes_tweaked_context.h libcaes_types.h libcaes_unused.h @HAVE_LOCAL_LIBCAES_TRUE@am_libcaes_la_OBJECTS = libcaes_context.lo \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_error.lo libcaes_support.lo \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_tweaked_context.lo libcaes_la_OBJECTS = $(am_libcaes_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCAES_TRUE@am_libcaes_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcaes_context.Plo \ ./$(DEPDIR)/libcaes_error.Plo ./$(DEPDIR)/libcaes_support.Plo \ ./$(DEPDIR)/libcaes_tweaked_context.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcaes_la_SOURCES) DIST_SOURCES = $(am__libcaes_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCAES_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCAES_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCAES_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCAES_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBCAES_TRUE@noinst_LTLIBRARIES = libcaes.la @HAVE_LOCAL_LIBCAES_TRUE@libcaes_la_SOURCES = \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_context.c libcaes_context.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_definitions.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_extern.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_error.c libcaes_error.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_libcerror.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_support.c libcaes_support.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_tweaked_context.c libcaes_tweaked_context.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_types.h \ @HAVE_LOCAL_LIBCAES_TRUE@ libcaes_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcaes/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcaes/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcaes.la: $(libcaes_la_OBJECTS) $(libcaes_la_DEPENDENCIES) $(EXTRA_libcaes_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcaes_la_rpath) $(libcaes_la_OBJECTS) $(libcaes_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcaes_context.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcaes_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcaes_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcaes_tweaked_context.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcaes_context.Plo -rm -f ./$(DEPDIR)/libcaes_error.Plo -rm -f ./$(DEPDIR)/libcaes_support.Plo -rm -f ./$(DEPDIR)/libcaes_tweaked_context.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcaes ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcaes_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcaes/libcaes_extern.h0000664000175000017500000000237213430101136022561 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCAES_INTERNAL_EXTERN_H ) #define _LIBCAES_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCAES for local use of libcaes */ #if !defined( HAVE_LOCAL_LIBCAES ) #include #define LIBCAES_EXTERN_VARIABLE LIBCAES_EXTERN #else #define LIBCAES_EXTERN /* extern */ #define LIBCAES_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBCAES ) */ #endif /* !defined( _LIBCAES_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libcaes/libcaes_error.c0000664000175000017500000000552213430101136022400 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2011-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcaes_error.h" #include "libcaes_libcerror.h" #if !defined( HAVE_LOCAL_LIBCAES ) /* Free an error and its elements */ void libcaes_error_free( libcaes_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcaes_error_fprint( libcaes_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcaes_error_sprint( libcaes_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcaes_error_backtrace_fprint( libcaes_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcaes_error_backtrace_sprint( libcaes_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBCAES ) */ libfsapfs-20190210/include/0000775000175000017500000000000013430101366017443 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/include/libfsapfs.h.in0000664000175000017500000007757113430074317022220 0ustar00lordyestalordyesta00000000000000/* * Library to access the Apple File System (APFS) format * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_H ) #define _LIBFSAPFS_H #include #include #include #include #include #include #include #if defined( LIBFSAPFS_HAVE_BFIO ) #include #endif #if defined( __cplusplus ) extern "C" { #endif /* ------------------------------------------------------------------------- * Support functions * ------------------------------------------------------------------------- */ /* Returns the library version */ LIBFSAPFS_EXTERN \ const char *libfsapfs_get_version( void ); /* Returns the access flags for reading */ LIBFSAPFS_EXTERN \ int libfsapfs_get_access_flags_read( void ); /* Retrieves the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_get_codepage( int *codepage, libfsapfs_error_t **error ); /* Sets the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_set_codepage( int codepage, libfsapfs_error_t **error ); /* Determines if a file contains an APFS container signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature( const char *filename, libfsapfs_error_t **error ); /* Determines if a file contains an APFS volume signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature( const char *filename, libfsapfs_error_t **error ); #if defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) /* Determines if a file contains an APFS container signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_wide( const wchar_t *filename, libfsapfs_error_t **error ); /* Determines if a file contains an APFS volume signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_wide( const wchar_t *filename, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( LIBFSAPFS_HAVE_BFIO ) /* Determines if a file contains an APFS container signature using a Basic File IO (bfio) handle * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_file_io_handle( libbfio_handle_t *file_io_handle, libfsapfs_error_t **error ); /* Determines if a file contains an APFS volume signature using a Basic File IO (bfio) handle * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_file_io_handle( libbfio_handle_t *file_io_handle, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_BFIO ) */ /* ------------------------------------------------------------------------- * Notify functions * ------------------------------------------------------------------------- */ /* Sets the verbose notification */ LIBFSAPFS_EXTERN \ void libfsapfs_notify_set_verbose( int verbose ); /* Sets the notification stream * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_notify_set_stream( FILE *stream, libfsapfs_error_t **error ); /* Opens the notification stream using a filename * The stream is opened in append mode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_notify_stream_open( const char *filename, libfsapfs_error_t **error ); /* Closes the notification stream if opened using a filename * Returns 0 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_notify_stream_close( libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * Error functions * ------------------------------------------------------------------------- */ /* Frees an error */ LIBFSAPFS_EXTERN \ void libfsapfs_error_free( libfsapfs_error_t **error ); /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_fprint( libfsapfs_error_t *error, FILE *stream ); /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_sprint( libfsapfs_error_t *error, char *string, size_t size ); /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_backtrace_fprint( libfsapfs_error_t *error, FILE *stream ); /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_backtrace_sprint( libfsapfs_error_t *error, char *string, size_t size ); /* ------------------------------------------------------------------------- * Container functions * ------------------------------------------------------------------------- */ /* Creates a container * Make sure the value container is referencing, is set to NULL * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_initialize( libfsapfs_container_t **container, libfsapfs_error_t **error ); /* Frees a container * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_free( libfsapfs_container_t **container, libfsapfs_error_t **error ); /* Signals the container to abort its current activity * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_signal_abort( libfsapfs_container_t *container, libfsapfs_error_t **error ); /* Opens a container * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_open( libfsapfs_container_t *container, const char *filename, int access_flags, libfsapfs_error_t **error ); #if defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) /* Opens a container * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_open_wide( libfsapfs_container_t *container, const wchar_t *filename, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( LIBFSAPFS_HAVE_BFIO ) /* Opens a container using a Basic File IO (bfio) handle * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_BFIO ) */ /* Closes a container * Returns 0 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_close( libfsapfs_container_t *container, libfsapfs_error_t **error ); /* Retrieves the size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_size( libfsapfs_container_t *container, size64_t *size, libfsapfs_error_t **error ); /* Retrieves the identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_identifier( libfsapfs_container_t *container, uint8_t *uuid_data, size_t uuid_data_size, libfsapfs_error_t **error ); /* Retrieves the number of volumes * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_number_of_volumes( libfsapfs_container_t *container, int *number_of_volumes, libfsapfs_error_t **error ); /* Retrieves a specific of volume * The volume reference must be freed after use with libfsapfs_volume_free * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_volume_by_index( libfsapfs_container_t *container, int volume_index, libfsapfs_volume_t **volume, libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * Volume functions * ------------------------------------------------------------------------- */ /* Frees a volume * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_free( libfsapfs_volume_t **volume, libfsapfs_error_t **error ); /* Signals the volume to abort its current activity * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_signal_abort( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Opens a volume * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_open( libfsapfs_volume_t *volume, const char *filename, int access_flags, libfsapfs_error_t **error ); #if defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) /* Opens a volume * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_wide( libfsapfs_volume_t *volume, const wchar_t *filename, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( LIBFSAPFS_HAVE_BFIO ) /* Opens a volume using a Basic File IO (bfio) handle * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_file_io_handle( libfsapfs_volume_t *volume, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_BFIO ) */ /* Closes a volume * Returns 0 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_close( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Unlocks the volume * Returns 1 if the volume is unlocked, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_unlock( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Retrieves the size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_size( libfsapfs_volume_t *volume, size64_t *size, libfsapfs_error_t **error ); /* Retrieves the identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_identifier( libfsapfs_volume_t *volume, uint8_t *uuid_data, size_t uuid_data_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf8_name_size( libfsapfs_volume_t *volume, size_t *utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf8_name( libfsapfs_volume_t *volume, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf16_name_size( libfsapfs_volume_t *volume, size_t *utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf16_name( libfsapfs_volume_t *volume, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error ); /* Determines if the volume is locked * Returns 1 if locked, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_is_locked( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Sets an UTF-8 formatted password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf8_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error ); /* Sets an UTF-16 formatted password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf16_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error ); /* Sets an UTF-8 formatted recovery password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if recovery password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf8_recovery_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error ); /* Sets an UTF-16 formatted recovery password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if recovery password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf16_recovery_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error ); /* Retrieves the next file entry identifier * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_next_file_entry_identifier( libfsapfs_volume_t *volume, uint64_t *identifier, libfsapfs_error_t **error ); /* Retrieves a specific file entry * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_identifier( libfsapfs_volume_t *volume, uint64_t identifier, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the root directory file entry * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_root_directory( libfsapfs_volume_t *volume, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the file entry for an UTF-8 encoded path * Returns 1 if successful, 0 if no such file entry or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_utf8_path( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the file entry for an UTF-16 encoded path * Returns 1 if successful, 0 if no such file entry or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_utf16_path( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * File entry functions * ------------------------------------------------------------------------- */ /* Frees a file entry * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_free( libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the identifier (or inode number) * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *identifier, libfsapfs_error_t **error ); /* Retrieves the parent identifier (or inode number) * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_parent_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *parent_identifier, libfsapfs_error_t **error ); /* Retrieves the parent file entry * Returns 1 if successful, 0 if no such file entry or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_parent_file_entry( libfsapfs_file_entry_t *file_entry, libfsapfs_file_entry_t **parent_file_entry, libfsapfs_error_t **error ); /* Retrieves the creation date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_creation_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the modification date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_modification_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the inode change date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_inode_change_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the access date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_access_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the user identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_owner_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *owner_identifier, libfsapfs_error_t **error ); /* Retrieves the group identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_group_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *group_identifier, libfsapfs_error_t **error ); /* Retrieves the file mode * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_file_mode( libfsapfs_file_entry_t *file_entry, uint16_t *file_mode, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_name_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded name * The size should include the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_name( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_name, size_t utf8_name_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_name_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded name * The size should include the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_name( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_name, size_t utf16_name_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the number of extended attributes * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_extended_attributes( libfsapfs_file_entry_t *file_entry, int *number_of_extended_attributes, libfsapfs_error_t **error ); /* Retrieves the extended attribute for the specific index * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_index( libfsapfs_file_entry_t *file_entry, int extended_attribute_index, libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Determines if there is an extended attribute for an UTF-8 encoded name * Returns 1 if available, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_has_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error ); /* Determines if there is an extended attribute for an UTF-16 encoded name * Returns 1 if available, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_has_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error ); /* Retrieves the extended attribute for an UTF-8 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Retrieves the extended attribute for an UTF-16 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Retrieves the number of sub file entries * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_sub_file_entries( libfsapfs_file_entry_t *file_entry, int *number_of_sub_file_entries, libfsapfs_error_t **error ); /* Retrieves the sub file entry for the specific index * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_index( libfsapfs_file_entry_t *file_entry, int sub_file_entry_index, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error ); /* Retrieves the sub file entry for an UTF-8 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error ); /* Retrieves the sub file entry for an UTF-16 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error ); /* Reads data at the current offset * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_file_entry_read_buffer( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, libfsapfs_error_t **error ); /* Reads data at a specific offset * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_file_entry_read_buffer_at_offset( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libfsapfs_error_t **error ); /* Seeks a certain offset * Returns the offset if seek is successful or -1 on error */ LIBFSAPFS_EXTERN \ off64_t libfsapfs_file_entry_seek_offset( libfsapfs_file_entry_t *file_entry, off64_t offset, int whence, libfsapfs_error_t **error ); /* Retrieves the current offset * Returns the offset if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_offset( libfsapfs_file_entry_t *file_entry, off64_t *offset, libfsapfs_error_t **error ); /* Retrieves the size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_size( libfsapfs_file_entry_t *file_entry, size64_t *size, libfsapfs_error_t **error ); /* Retrieves the number of extents * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_extents( libfsapfs_file_entry_t *file_entry, int *number_of_extents, libfsapfs_error_t **error ); /* Retrieves a specific extent * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extent_by_index( libfsapfs_file_entry_t *file_entry, int extent_index, off64_t *extent_offset, size64_t *extent_size, uint32_t *extent_flags, libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * Extended attribute functions * ------------------------------------------------------------------------- */ /* Frees an extended attribute * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_free( libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Retrieves the identifier * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_identifier( libfsapfs_extended_attribute_t *extended_attribute, uint64_t *identifier, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf8_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf8_name( libfsapfs_extended_attribute_t *extended_attribute, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf16_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf16_name( libfsapfs_extended_attribute_t *extended_attribute, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error ); /* Reads data at the current offset into a buffer * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_extended_attribute_read_buffer( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, libfsapfs_error_t **error ); /* Reads data at a specific offset * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_extended_attribute_read_buffer_at_offset( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, off64_t offset, libfsapfs_error_t **error ); /* Seeks a certain offset * Returns the offset if seek is successful or -1 on error */ LIBFSAPFS_EXTERN \ off64_t libfsapfs_extended_attribute_seek_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t offset, int whence, libfsapfs_error_t **error ); /* Retrieves the current offset * Returns the offset if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t *offset, libfsapfs_error_t **error ); /* Retrieves the size of the data stream object * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_size( libfsapfs_extended_attribute_t *extended_attribute, size64_t *size, libfsapfs_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_H ) */ libfsapfs-20190210/include/Makefile.am0000664000175000017500000000077513426637437021532 0ustar00lordyestalordyesta00000000000000include_HEADERS = \ libfsapfs.h pkginclude_HEADERS = \ libfsapfs/codepage.h \ libfsapfs/definitions.h \ libfsapfs/error.h \ libfsapfs/extern.h \ libfsapfs/features.h \ libfsapfs/types.h EXTRA_DIST = \ libfsapfs.h.in \ libfsapfs/definitions.h.in \ libfsapfs/features.h.in \ libfsapfs/types.h.in MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f libfsapfs.h /bin/rm -f libfsapfs/definitions.h /bin/rm -f libfsapfs/features.h /bin/rm -f libfsapfs/types.h /bin/rm -f Makefile libfsapfs-20190210/include/libfsapfs.h0000664000175000017500000007757113430101272021602 0ustar00lordyestalordyesta00000000000000/* * Library to access the Apple File System (APFS) format * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_H ) #define _LIBFSAPFS_H #include #include #include #include #include #include #include #if defined( LIBFSAPFS_HAVE_BFIO ) #include #endif #if defined( __cplusplus ) extern "C" { #endif /* ------------------------------------------------------------------------- * Support functions * ------------------------------------------------------------------------- */ /* Returns the library version */ LIBFSAPFS_EXTERN \ const char *libfsapfs_get_version( void ); /* Returns the access flags for reading */ LIBFSAPFS_EXTERN \ int libfsapfs_get_access_flags_read( void ); /* Retrieves the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_get_codepage( int *codepage, libfsapfs_error_t **error ); /* Sets the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_set_codepage( int codepage, libfsapfs_error_t **error ); /* Determines if a file contains an APFS container signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature( const char *filename, libfsapfs_error_t **error ); /* Determines if a file contains an APFS volume signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature( const char *filename, libfsapfs_error_t **error ); #if defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) /* Determines if a file contains an APFS container signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_wide( const wchar_t *filename, libfsapfs_error_t **error ); /* Determines if a file contains an APFS volume signature * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_wide( const wchar_t *filename, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( LIBFSAPFS_HAVE_BFIO ) /* Determines if a file contains an APFS container signature using a Basic File IO (bfio) handle * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_file_io_handle( libbfio_handle_t *file_io_handle, libfsapfs_error_t **error ); /* Determines if a file contains an APFS volume signature using a Basic File IO (bfio) handle * Returns 1 if true, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_file_io_handle( libbfio_handle_t *file_io_handle, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_BFIO ) */ /* ------------------------------------------------------------------------- * Notify functions * ------------------------------------------------------------------------- */ /* Sets the verbose notification */ LIBFSAPFS_EXTERN \ void libfsapfs_notify_set_verbose( int verbose ); /* Sets the notification stream * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_notify_set_stream( FILE *stream, libfsapfs_error_t **error ); /* Opens the notification stream using a filename * The stream is opened in append mode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_notify_stream_open( const char *filename, libfsapfs_error_t **error ); /* Closes the notification stream if opened using a filename * Returns 0 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_notify_stream_close( libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * Error functions * ------------------------------------------------------------------------- */ /* Frees an error */ LIBFSAPFS_EXTERN \ void libfsapfs_error_free( libfsapfs_error_t **error ); /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_fprint( libfsapfs_error_t *error, FILE *stream ); /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_sprint( libfsapfs_error_t *error, char *string, size_t size ); /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_backtrace_fprint( libfsapfs_error_t *error, FILE *stream ); /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_error_backtrace_sprint( libfsapfs_error_t *error, char *string, size_t size ); /* ------------------------------------------------------------------------- * Container functions * ------------------------------------------------------------------------- */ /* Creates a container * Make sure the value container is referencing, is set to NULL * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_initialize( libfsapfs_container_t **container, libfsapfs_error_t **error ); /* Frees a container * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_free( libfsapfs_container_t **container, libfsapfs_error_t **error ); /* Signals the container to abort its current activity * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_signal_abort( libfsapfs_container_t *container, libfsapfs_error_t **error ); /* Opens a container * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_open( libfsapfs_container_t *container, const char *filename, int access_flags, libfsapfs_error_t **error ); #if defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) /* Opens a container * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_open_wide( libfsapfs_container_t *container, const wchar_t *filename, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( LIBFSAPFS_HAVE_BFIO ) /* Opens a container using a Basic File IO (bfio) handle * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_BFIO ) */ /* Closes a container * Returns 0 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_close( libfsapfs_container_t *container, libfsapfs_error_t **error ); /* Retrieves the size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_size( libfsapfs_container_t *container, size64_t *size, libfsapfs_error_t **error ); /* Retrieves the identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_identifier( libfsapfs_container_t *container, uint8_t *uuid_data, size_t uuid_data_size, libfsapfs_error_t **error ); /* Retrieves the number of volumes * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_number_of_volumes( libfsapfs_container_t *container, int *number_of_volumes, libfsapfs_error_t **error ); /* Retrieves a specific of volume * The volume reference must be freed after use with libfsapfs_volume_free * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_container_get_volume_by_index( libfsapfs_container_t *container, int volume_index, libfsapfs_volume_t **volume, libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * Volume functions * ------------------------------------------------------------------------- */ /* Frees a volume * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_free( libfsapfs_volume_t **volume, libfsapfs_error_t **error ); /* Signals the volume to abort its current activity * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_signal_abort( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Opens a volume * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_open( libfsapfs_volume_t *volume, const char *filename, int access_flags, libfsapfs_error_t **error ); #if defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) /* Opens a volume * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_wide( libfsapfs_volume_t *volume, const wchar_t *filename, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( LIBFSAPFS_HAVE_BFIO ) /* Opens a volume using a Basic File IO (bfio) handle * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_file_io_handle( libfsapfs_volume_t *volume, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* defined( LIBFSAPFS_HAVE_BFIO ) */ /* Closes a volume * Returns 0 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_close( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Unlocks the volume * Returns 1 if the volume is unlocked, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_unlock( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Retrieves the size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_size( libfsapfs_volume_t *volume, size64_t *size, libfsapfs_error_t **error ); /* Retrieves the identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_identifier( libfsapfs_volume_t *volume, uint8_t *uuid_data, size_t uuid_data_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf8_name_size( libfsapfs_volume_t *volume, size_t *utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf8_name( libfsapfs_volume_t *volume, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf16_name_size( libfsapfs_volume_t *volume, size_t *utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf16_name( libfsapfs_volume_t *volume, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error ); /* Determines if the volume is locked * Returns 1 if locked, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_is_locked( libfsapfs_volume_t *volume, libfsapfs_error_t **error ); /* Sets an UTF-8 formatted password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf8_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error ); /* Sets an UTF-16 formatted password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf16_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error ); /* Sets an UTF-8 formatted recovery password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if recovery password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf8_recovery_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error ); /* Sets an UTF-16 formatted recovery password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if recovery password is invalid or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf16_recovery_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error ); /* Retrieves the next file entry identifier * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_next_file_entry_identifier( libfsapfs_volume_t *volume, uint64_t *identifier, libfsapfs_error_t **error ); /* Retrieves a specific file entry * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_identifier( libfsapfs_volume_t *volume, uint64_t identifier, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the root directory file entry * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_root_directory( libfsapfs_volume_t *volume, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the file entry for an UTF-8 encoded path * Returns 1 if successful, 0 if no such file entry or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_utf8_path( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the file entry for an UTF-16 encoded path * Returns 1 if successful, 0 if no such file entry or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_utf16_path( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * File entry functions * ------------------------------------------------------------------------- */ /* Frees a file entry * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_free( libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error ); /* Retrieves the identifier (or inode number) * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *identifier, libfsapfs_error_t **error ); /* Retrieves the parent identifier (or inode number) * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_parent_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *parent_identifier, libfsapfs_error_t **error ); /* Retrieves the parent file entry * Returns 1 if successful, 0 if no such file entry or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_parent_file_entry( libfsapfs_file_entry_t *file_entry, libfsapfs_file_entry_t **parent_file_entry, libfsapfs_error_t **error ); /* Retrieves the creation date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_creation_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the modification date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_modification_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the inode change date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_inode_change_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the access date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_access_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error ); /* Retrieves the user identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_owner_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *owner_identifier, libfsapfs_error_t **error ); /* Retrieves the group identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_group_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *group_identifier, libfsapfs_error_t **error ); /* Retrieves the file mode * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_file_mode( libfsapfs_file_entry_t *file_entry, uint16_t *file_mode, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_name_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded name * The size should include the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_name( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_name, size_t utf8_name_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_name_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded name * The size should include the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_name( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_name, size_t utf16_name_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the number of extended attributes * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_extended_attributes( libfsapfs_file_entry_t *file_entry, int *number_of_extended_attributes, libfsapfs_error_t **error ); /* Retrieves the extended attribute for the specific index * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_index( libfsapfs_file_entry_t *file_entry, int extended_attribute_index, libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Determines if there is an extended attribute for an UTF-8 encoded name * Returns 1 if available, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_has_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error ); /* Determines if there is an extended attribute for an UTF-16 encoded name * Returns 1 if available, 0 if not or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_has_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error ); /* Retrieves the extended attribute for an UTF-8 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Retrieves the extended attribute for an UTF-16 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Retrieves the number of sub file entries * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_sub_file_entries( libfsapfs_file_entry_t *file_entry, int *number_of_sub_file_entries, libfsapfs_error_t **error ); /* Retrieves the sub file entry for the specific index * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_index( libfsapfs_file_entry_t *file_entry, int sub_file_entry_index, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error ); /* Retrieves the sub file entry for an UTF-8 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error ); /* Retrieves the sub file entry for an UTF-16 encoded name * Returns 1 if successful, 0 if the file entry does not contain such value or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error ); /* Reads data at the current offset * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_file_entry_read_buffer( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, libfsapfs_error_t **error ); /* Reads data at a specific offset * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_file_entry_read_buffer_at_offset( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libfsapfs_error_t **error ); /* Seeks a certain offset * Returns the offset if seek is successful or -1 on error */ LIBFSAPFS_EXTERN \ off64_t libfsapfs_file_entry_seek_offset( libfsapfs_file_entry_t *file_entry, off64_t offset, int whence, libfsapfs_error_t **error ); /* Retrieves the current offset * Returns the offset if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_offset( libfsapfs_file_entry_t *file_entry, off64_t *offset, libfsapfs_error_t **error ); /* Retrieves the size * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_size( libfsapfs_file_entry_t *file_entry, size64_t *size, libfsapfs_error_t **error ); /* Retrieves the number of extents * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_extents( libfsapfs_file_entry_t *file_entry, int *number_of_extents, libfsapfs_error_t **error ); /* Retrieves a specific extent * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extent_by_index( libfsapfs_file_entry_t *file_entry, int extent_index, off64_t *extent_offset, size64_t *extent_size, uint32_t *extent_flags, libfsapfs_error_t **error ); /* ------------------------------------------------------------------------- * Extended attribute functions * ------------------------------------------------------------------------- */ /* Frees an extended attribute * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_free( libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error ); /* Retrieves the identifier * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_identifier( libfsapfs_extended_attribute_t *extended_attribute, uint64_t *identifier, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf8_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf8_name( libfsapfs_extended_attribute_t *extended_attribute, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error ); /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf16_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf16_string_size, libfsapfs_error_t **error ); /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf16_name( libfsapfs_extended_attribute_t *extended_attribute, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error ); /* Reads data at the current offset into a buffer * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_extended_attribute_read_buffer( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, libfsapfs_error_t **error ); /* Reads data at a specific offset * Returns the number of bytes read or -1 on error */ LIBFSAPFS_EXTERN \ ssize_t libfsapfs_extended_attribute_read_buffer_at_offset( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, off64_t offset, libfsapfs_error_t **error ); /* Seeks a certain offset * Returns the offset if seek is successful or -1 on error */ LIBFSAPFS_EXTERN \ off64_t libfsapfs_extended_attribute_seek_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t offset, int whence, libfsapfs_error_t **error ); /* Retrieves the current offset * Returns the offset if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t *offset, libfsapfs_error_t **error ); /* Retrieves the size of the data stream object * Returns 1 if successful or -1 on error */ LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_size( libfsapfs_extended_attribute_t *extended_attribute, size64_t *size, libfsapfs_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_H ) */ libfsapfs-20190210/include/Makefile.in0000664000175000017500000007173513430101253021520 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \ $(pkginclude_HEADERS) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = libfsapfs.h CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(includedir)" \ "$(DESTDIR)$(pkgincludedir)" HEADERS = $(include_HEADERS) $(pkginclude_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libfsapfs.h.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ include_HEADERS = \ libfsapfs.h pkginclude_HEADERS = \ libfsapfs/codepage.h \ libfsapfs/definitions.h \ libfsapfs/error.h \ libfsapfs/extern.h \ libfsapfs/features.h \ libfsapfs/types.h EXTRA_DIST = \ libfsapfs.h.in \ libfsapfs/definitions.h.in \ libfsapfs/features.h.in \ libfsapfs/types.h.in MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu include/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): libfsapfs.h: $(top_builddir)/config.status $(srcdir)/libfsapfs.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) install-pkgincludeHEADERS: $(pkginclude_HEADERS) @$(NORMAL_INSTALL) @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \ done uninstall-pkgincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(includedir)" "$(DESTDIR)$(pkgincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-includeHEADERS install-pkgincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-includeHEADERS uninstall-pkgincludeHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool cscopelist-am ctags ctags-am distclean \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-includeHEADERS install-info install-info-am \ install-man install-pdf install-pdf-am \ install-pkgincludeHEADERS install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-includeHEADERS \ uninstall-pkgincludeHEADERS .PRECIOUS: Makefile distclean: clean /bin/rm -f libfsapfs.h /bin/rm -f libfsapfs/definitions.h /bin/rm -f libfsapfs/features.h /bin/rm -f libfsapfs/types.h /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/include/libfsapfs/0000775000175000017500000000000013430101366021414 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/include/libfsapfs/definitions.h.in0000664000175000017500000000331213426637445024525 0ustar00lordyestalordyesta00000000000000/* * Definitions for libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DEFINITIONS_H ) #define _LIBFSAPFS_DEFINITIONS_H #include #define LIBFSAPFS_VERSION @VERSION@ /* The version string */ #define LIBFSAPFS_VERSION_STRING "@VERSION@" /* The file access * bit 1 set to 1 for read access * bit 2 set to 1 for write access * bit 3-8 not used */ enum LIBFSAPFS_ACCESS_FLAGS { LIBFSAPFS_ACCESS_FLAG_READ = 0x01, /* Reserved: not supported yet */ LIBFSAPFS_ACCESS_FLAG_WRITE = 0x02 }; /* The file access macros */ #define LIBFSAPFS_OPEN_READ ( LIBFSAPFS_ACCESS_FLAG_READ ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_WRITE ( LIBFSAPFS_ACCESS_FLAG_WRITE ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_READ_WRITE ( LIBFSAPFS_ACCESS_FLAG_READ | LIBFSAPFS_ACCESS_FLAG_WRITE ) /* The path segment separator */ #define LIBFSAPFS_SEPARATOR '/' #endif /* !defined( _LIBFSAPFS_DEFINITIONS_H ) */ libfsapfs-20190210/include/libfsapfs/extern.h0000664000175000017500000000263613426637445023122 0ustar00lordyestalordyesta00000000000000/* * The extern definition * * This header should be included in header files that export or import * library functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_EXTERN_H ) #define _LIBFSAPFS_EXTERN_H /* To export functions from the libfsapfs DLL define LIBFSAPFS_DLL_EXPORT * To import functions from the libfsapfs DLL define LIBFSAPFS_DLL_IMPORT * Otherwise use default extern statement */ #if defined( LIBFSAPFS_DLL_EXPORT ) #define LIBFSAPFS_EXTERN __declspec(dllexport) #elif defined( LIBFSAPFS_DLL_IMPORT ) #define LIBFSAPFS_EXTERN extern __declspec(dllimport) #else #define LIBFSAPFS_EXTERN extern #endif #endif /* !defined( _LIBFSAPFS_EXTERN_H ) */ libfsapfs-20190210/include/libfsapfs/types.h0000664000175000017500000001153113430101272022726 0ustar00lordyestalordyesta00000000000000/* * Type definitions for libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_TYPES_H ) #define _LIBFSAPFS_TYPES_H #include /* Integer type definitions */ #if ( defined( _MSC_VER ) && ( _MSC_VER < 1600 ) ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) ) #ifdef __cplusplus extern "C" { #endif /* Microsoft Visual Studio C++ before Visual Studio 2010 or earlier versions of the Borland C++ Builder * do not support the (u)int#_t type definitions but have __int# defintions instead */ #if !defined( HAVE_INT8_T ) #define HAVE_INT8_T typedef __int8 int8_t; #endif #if !defined( HAVE_UINT8_T ) #define HAVE_UINT8_T typedef unsigned __int8 uint8_t; #endif #if !defined( HAVE_INT16_T ) #define HAVE_INT16_T typedef __int16 int16_t; #endif #if !defined( HAVE_UINT16_T ) #define HAVE_UINT16_T typedef unsigned __int16 uint16_t; #endif #if !defined( HAVE_INT32_T ) #define HAVE_INT32_T typedef __int32 int32_t; #endif #if !defined( HAVE_UINT32_T ) #define HAVE_UINT32_T typedef unsigned __int32 uint32_t; #endif #if !defined( HAVE_INT64_T ) #define HAVE_INT64_T typedef __int64 int64_t; #endif #if !defined( HAVE_UINT64_T ) #define HAVE_UINT64_T typedef unsigned __int64 uint64_t; #endif #ifdef __cplusplus } #endif #elif defined( _MSC_VER ) || defined( __BORLANDC__ ) /* Later versions of Microsoft Visual Studio C++ and Borland C/C++ define the types in */ #include #else #if 1 || defined( HAVE_SYS_TYPES_H ) #include #else #error Missing system type definitions (sys/types.h) #endif /* Type definitions for compilers that have access to * or */ #if 1 || defined( HAVE_INTTYPES_H ) #include #elif 1 || defined( HAVE_STDINT_H ) #include #else #error Missing integer type definitions (inttypes.h, stdint.h) #endif #endif #ifdef __cplusplus extern "C" { #endif #if defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) ) /* Microsoft Visual Studio C++ or earlier versions of the Borland C++ Builder * do not support the ssize_t type definition */ #if !defined( HAVE_SSIZE_T ) #define HAVE_SSIZE_T #if defined( _WIN64 ) typedef __int64 ssize_t; #else typedef __int32 ssize_t; #endif #endif /* !defined( HAVE_SSIZE_T ) */ #endif /* defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) ) */ #if defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) /* Earlier versions of Borland C++ Builder do not support the intptr_t type definition */ #if !defined( HAVE_INTPTR_T ) #define HAVE_INTPTR_T #if defined( _WIN64 ) typedef __int64 intptr_t; #else typedef __int32 intptr_t; #endif #endif /* !defined( HAVE_INTPTR_T ) */ #endif /* defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) */ #if ( !defined( HAVE_SIZE32_T ) && ! 0 ) || HAVE_SIZE32_T == 0 #define HAVE_SIZE32_T 1 typedef uint32_t size32_t; #endif #if ( !defined( HAVE_SSIZE32_T ) && ! 0 ) || HAVE_SSIZE32_T == 0 #define HAVE_SSIZE32_T 1 typedef int32_t ssize32_t; #endif #if ( !defined( HAVE_SIZE64_T ) && ! 0 ) || HAVE_SIZE64_T == 0 #define HAVE_SIZE64_T 1 typedef uint64_t size64_t; #endif #if ( !defined( HAVE_SSIZE64_T ) && ! 0 ) || HAVE_SSIZE64_T == 0 #define HAVE_SSIZE64_T 1 typedef int64_t ssize64_t; #endif #if ( !defined( HAVE_OFF64_T ) && ! 0 ) || HAVE_OFF64_T == 0 #define HAVE_OFF64_T 1 typedef int64_t off64_t; #endif /* Wide character definition */ #if defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0520 ) #include #elif defined( WINAPI ) #include #elif 1 || defined( HAVE_WCHAR_H ) /* __USE_UNIX98 is required to add swprintf definition */ #if !defined( __USE_UNIX98 ) #define __USE_UNIX98 #define LIBFSAPFS_DEFINITION_UNIX98 #endif #include #if defined( LIBFSAPFS_DEFINITION_UNIX98 ) #undef __USE_UNIX98 #undef LIBFSAPFS_DEFINITION_UNIX98 #endif #endif /* The following type definitions hide internal data structures */ typedef intptr_t libfsapfs_container_t; typedef intptr_t libfsapfs_extended_attribute_t; typedef intptr_t libfsapfs_file_entry_t; typedef intptr_t libfsapfs_volume_t; #ifdef __cplusplus } #endif #endif /* !defined( _LIBFSAPFS_TYPES_H ) */ libfsapfs-20190210/include/libfsapfs/features.h.in0000664000175000017500000000303513426637445024032 0ustar00lordyestalordyesta00000000000000/* * Features of libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_FEATURES_H ) #define _LIBFSAPFS_FEATURES_H /* The libfsapfs type support features */ #if defined( WINAPI ) || @HAVE_WIDE_CHARACTER_TYPE@ #define LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE 1 #endif #if defined( WINAPI ) || @HAVE_MULTI_THREAD_SUPPORT@ #define LIBFSAPFS_HAVE_MULTI_THREAD_SUPPORT 1 #endif #if defined( HAVE_LIBBFIO ) || ( !defined( WINAPI ) && @HAVE_LIBBFIO@ ) #define LIBFSAPFS_HAVE_BFIO 1 #endif #if !defined( LIBFSAPFS_DEPRECATED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBFSAPFS_DEPRECATED __attribute__ ((__deprecated__)) #elif defined( _MSC_VER ) #define LIBFSAPFS_DEPRECATED __declspec(deprecated) #else #define LIBFSAPFS_DEPRECATED #endif #endif #endif /* !defined( _LIBFSAPFS_FEATURES_H ) */ libfsapfs-20190210/include/libfsapfs/types.h.in0000664000175000017500000001173413426637445023365 0ustar00lordyestalordyesta00000000000000/* * Type definitions for libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_TYPES_H ) #define _LIBFSAPFS_TYPES_H #include /* Integer type definitions */ #if ( defined( _MSC_VER ) && ( _MSC_VER < 1600 ) ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) ) #ifdef __cplusplus extern "C" { #endif /* Microsoft Visual Studio C++ before Visual Studio 2010 or earlier versions of the Borland C++ Builder * do not support the (u)int#_t type definitions but have __int# defintions instead */ #if !defined( HAVE_INT8_T ) #define HAVE_INT8_T typedef __int8 int8_t; #endif #if !defined( HAVE_UINT8_T ) #define HAVE_UINT8_T typedef unsigned __int8 uint8_t; #endif #if !defined( HAVE_INT16_T ) #define HAVE_INT16_T typedef __int16 int16_t; #endif #if !defined( HAVE_UINT16_T ) #define HAVE_UINT16_T typedef unsigned __int16 uint16_t; #endif #if !defined( HAVE_INT32_T ) #define HAVE_INT32_T typedef __int32 int32_t; #endif #if !defined( HAVE_UINT32_T ) #define HAVE_UINT32_T typedef unsigned __int32 uint32_t; #endif #if !defined( HAVE_INT64_T ) #define HAVE_INT64_T typedef __int64 int64_t; #endif #if !defined( HAVE_UINT64_T ) #define HAVE_UINT64_T typedef unsigned __int64 uint64_t; #endif #ifdef __cplusplus } #endif #elif defined( _MSC_VER ) || defined( __BORLANDC__ ) /* Later versions of Microsoft Visual Studio C++ and Borland C/C++ define the types in */ #include #else #if @HAVE_SYS_TYPES_H@ || defined( HAVE_SYS_TYPES_H ) #include #else #error Missing system type definitions (sys/types.h) #endif /* Type definitions for compilers that have access to * or */ #if @HAVE_INTTYPES_H@ || defined( HAVE_INTTYPES_H ) #include #elif @HAVE_STDINT_H@ || defined( HAVE_STDINT_H ) #include #else #error Missing integer type definitions (inttypes.h, stdint.h) #endif #endif #ifdef __cplusplus extern "C" { #endif #if defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) ) /* Microsoft Visual Studio C++ or earlier versions of the Borland C++ Builder * do not support the ssize_t type definition */ #if !defined( HAVE_SSIZE_T ) #define HAVE_SSIZE_T #if defined( _WIN64 ) typedef __int64 ssize_t; #else typedef __int32 ssize_t; #endif #endif /* !defined( HAVE_SSIZE_T ) */ #endif /* defined( _MSC_VER ) || ( defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) ) */ #if defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) /* Earlier versions of Borland C++ Builder do not support the intptr_t type definition */ #if !defined( HAVE_INTPTR_T ) #define HAVE_INTPTR_T #if defined( _WIN64 ) typedef __int64 intptr_t; #else typedef __int32 intptr_t; #endif #endif /* !defined( HAVE_INTPTR_T ) */ #endif /* defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0560 ) */ #if ( !defined( HAVE_SIZE32_T ) && ! @HAVE_SIZE32_T@ ) || HAVE_SIZE32_T == 0 #define HAVE_SIZE32_T 1 typedef uint32_t size32_t; #endif #if ( !defined( HAVE_SSIZE32_T ) && ! @HAVE_SSIZE32_T@ ) || HAVE_SSIZE32_T == 0 #define HAVE_SSIZE32_T 1 typedef int32_t ssize32_t; #endif #if ( !defined( HAVE_SIZE64_T ) && ! @HAVE_SIZE64_T@ ) || HAVE_SIZE64_T == 0 #define HAVE_SIZE64_T 1 typedef uint64_t size64_t; #endif #if ( !defined( HAVE_SSIZE64_T ) && ! @HAVE_SSIZE64_T@ ) || HAVE_SSIZE64_T == 0 #define HAVE_SSIZE64_T 1 typedef int64_t ssize64_t; #endif #if ( !defined( HAVE_OFF64_T ) && ! @HAVE_OFF64_T@ ) || HAVE_OFF64_T == 0 #define HAVE_OFF64_T 1 typedef int64_t off64_t; #endif /* Wide character definition */ #if defined( __BORLANDC__ ) && ( __BORLANDC__ <= 0x0520 ) #include #elif defined( WINAPI ) #include #elif @HAVE_WCHAR_H@ || defined( HAVE_WCHAR_H ) /* __USE_UNIX98 is required to add swprintf definition */ #if !defined( __USE_UNIX98 ) #define __USE_UNIX98 #define LIBFSAPFS_DEFINITION_UNIX98 #endif #include #if defined( LIBFSAPFS_DEFINITION_UNIX98 ) #undef __USE_UNIX98 #undef LIBFSAPFS_DEFINITION_UNIX98 #endif #endif /* The following type definitions hide internal data structures */ typedef intptr_t libfsapfs_container_t; typedef intptr_t libfsapfs_extended_attribute_t; typedef intptr_t libfsapfs_file_entry_t; typedef intptr_t libfsapfs_volume_t; #ifdef __cplusplus } #endif #endif /* !defined( _LIBFSAPFS_TYPES_H ) */ libfsapfs-20190210/include/libfsapfs/features.h0000664000175000017500000000273513430101272023406 0ustar00lordyestalordyesta00000000000000/* * Features of libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_FEATURES_H ) #define _LIBFSAPFS_FEATURES_H /* The libfsapfs type support features */ #if defined( WINAPI ) || 0 #define LIBFSAPFS_HAVE_WIDE_CHARACTER_TYPE 1 #endif #if defined( WINAPI ) || 1 #define LIBFSAPFS_HAVE_MULTI_THREAD_SUPPORT 1 #endif #if defined( HAVE_LIBBFIO ) || ( !defined( WINAPI ) && 0 ) #define LIBFSAPFS_HAVE_BFIO 1 #endif #if !defined( LIBFSAPFS_DEPRECATED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBFSAPFS_DEPRECATED __attribute__ ((__deprecated__)) #elif defined( _MSC_VER ) #define LIBFSAPFS_DEPRECATED __declspec(deprecated) #else #define LIBFSAPFS_DEPRECATED #endif #endif #endif /* !defined( _LIBFSAPFS_FEATURES_H ) */ libfsapfs-20190210/include/libfsapfs/definitions.h0000664000175000017500000000331013430101272024071 0ustar00lordyestalordyesta00000000000000/* * Definitions for libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DEFINITIONS_H ) #define _LIBFSAPFS_DEFINITIONS_H #include #define LIBFSAPFS_VERSION 20190210 /* The version string */ #define LIBFSAPFS_VERSION_STRING "20190210" /* The file access * bit 1 set to 1 for read access * bit 2 set to 1 for write access * bit 3-8 not used */ enum LIBFSAPFS_ACCESS_FLAGS { LIBFSAPFS_ACCESS_FLAG_READ = 0x01, /* Reserved: not supported yet */ LIBFSAPFS_ACCESS_FLAG_WRITE = 0x02 }; /* The file access macros */ #define LIBFSAPFS_OPEN_READ ( LIBFSAPFS_ACCESS_FLAG_READ ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_WRITE ( LIBFSAPFS_ACCESS_FLAG_WRITE ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_READ_WRITE ( LIBFSAPFS_ACCESS_FLAG_READ | LIBFSAPFS_ACCESS_FLAG_WRITE ) /* The path segment separator */ #define LIBFSAPFS_SEPARATOR '/' #endif /* !defined( _LIBFSAPFS_DEFINITIONS_H ) */ libfsapfs-20190210/include/libfsapfs/codepage.h0000664000175000017500000001246013426637445023360 0ustar00lordyestalordyesta00000000000000/* * Codepage definitions for libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CODEPAGE_H ) #define _LIBFSAPFS_CODEPAGE_H #include #if defined( __cplusplus ) extern "C" { #endif /* The codepage definitions */ enum LIBFSAPFS_CODEPAGES { LIBFSAPFS_CODEPAGE_ASCII = 20127, LIBFSAPFS_CODEPAGE_ISO_8859_1 = 28591, LIBFSAPFS_CODEPAGE_ISO_8859_2 = 28592, LIBFSAPFS_CODEPAGE_ISO_8859_3 = 28593, LIBFSAPFS_CODEPAGE_ISO_8859_4 = 28594, LIBFSAPFS_CODEPAGE_ISO_8859_5 = 28595, LIBFSAPFS_CODEPAGE_ISO_8859_6 = 28596, LIBFSAPFS_CODEPAGE_ISO_8859_7 = 28597, LIBFSAPFS_CODEPAGE_ISO_8859_8 = 28598, LIBFSAPFS_CODEPAGE_ISO_8859_9 = 28599, LIBFSAPFS_CODEPAGE_ISO_8859_10 = 28600, LIBFSAPFS_CODEPAGE_ISO_8859_11 = 28601, LIBFSAPFS_CODEPAGE_ISO_8859_13 = 28603, LIBFSAPFS_CODEPAGE_ISO_8859_14 = 28604, LIBFSAPFS_CODEPAGE_ISO_8859_15 = 28605, LIBFSAPFS_CODEPAGE_ISO_8859_16 = 28606, LIBFSAPFS_CODEPAGE_KOI8_R = 20866, LIBFSAPFS_CODEPAGE_KOI8_U = 21866, LIBFSAPFS_CODEPAGE_WINDOWS_874 = 874, LIBFSAPFS_CODEPAGE_WINDOWS_932 = 932, LIBFSAPFS_CODEPAGE_WINDOWS_936 = 936, LIBFSAPFS_CODEPAGE_WINDOWS_949 = 949, LIBFSAPFS_CODEPAGE_WINDOWS_950 = 950, LIBFSAPFS_CODEPAGE_WINDOWS_1250 = 1250, LIBFSAPFS_CODEPAGE_WINDOWS_1251 = 1251, LIBFSAPFS_CODEPAGE_WINDOWS_1252 = 1252, LIBFSAPFS_CODEPAGE_WINDOWS_1253 = 1253, LIBFSAPFS_CODEPAGE_WINDOWS_1254 = 1254, LIBFSAPFS_CODEPAGE_WINDOWS_1255 = 1255, LIBFSAPFS_CODEPAGE_WINDOWS_1256 = 1256, LIBFSAPFS_CODEPAGE_WINDOWS_1257 = 1257, LIBFSAPFS_CODEPAGE_WINDOWS_1258 = 1258 }; #define LIBFSAPFS_CODEPAGE_US_ASCII LIBFSAPFS_CODEPAGE_ASCII #define LIBFSAPFS_CODEPAGE_ISO_WESTERN_EUROPEAN LIBFSAPFS_CODEPAGE_ISO_8859_1 #define LIBFSAPFS_CODEPAGE_ISO_CENTRAL_EUROPEAN LIBFSAPFS_CODEPAGE_ISO_8859_2 #define LIBFSAPFS_CODEPAGE_ISO_SOUTH_EUROPEAN LIBFSAPFS_CODEPAGE_ISO_8859_3 #define LIBFSAPFS_CODEPAGE_ISO_NORTH_EUROPEAN LIBFSAPFS_CODEPAGE_ISO_8859_4 #define LIBFSAPFS_CODEPAGE_ISO_CYRILLIC LIBFSAPFS_CODEPAGE_ISO_8859_5 #define LIBFSAPFS_CODEPAGE_ISO_ARABIC LIBFSAPFS_CODEPAGE_ISO_8859_6 #define LIBFSAPFS_CODEPAGE_ISO_GREEK LIBFSAPFS_CODEPAGE_ISO_8859_7 #define LIBFSAPFS_CODEPAGE_ISO_HEBREW LIBFSAPFS_CODEPAGE_ISO_8859_8 #define LIBFSAPFS_CODEPAGE_ISO_TURKISH LIBFSAPFS_CODEPAGE_ISO_8859_9 #define LIBFSAPFS_CODEPAGE_ISO_NORDIC LIBFSAPFS_CODEPAGE_ISO_8859_10 #define LIBFSAPFS_CODEPAGE_ISO_THAI LIBFSAPFS_CODEPAGE_ISO_8859_11 #define LIBFSAPFS_CODEPAGE_ISO_BALTIC LIBFSAPFS_CODEPAGE_ISO_8859_13 #define LIBFSAPFS_CODEPAGE_ISO_CELTIC LIBFSAPFS_CODEPAGE_ISO_8859_14 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_1 LIBFSAPFS_CODEPAGE_ISO_8859_1 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_2 LIBFSAPFS_CODEPAGE_ISO_8859_2 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_3 LIBFSAPFS_CODEPAGE_ISO_8859_3 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_4 LIBFSAPFS_CODEPAGE_ISO_8859_4 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_5 LIBFSAPFS_CODEPAGE_ISO_8859_9 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_6 LIBFSAPFS_CODEPAGE_ISO_8859_10 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_7 LIBFSAPFS_CODEPAGE_ISO_8859_13 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_8 LIBFSAPFS_CODEPAGE_ISO_8859_14 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_9 LIBFSAPFS_CODEPAGE_ISO_8859_15 #define LIBFSAPFS_CODEPAGE_ISO_LATIN_10 LIBFSAPFS_CODEPAGE_ISO_8859_16 #define LIBFSAPFS_CODEPAGE_KOI8_RUSSIAN LIBFSAPFS_CODEPAGE_KOI8_R #define LIBFSAPFS_CODEPAGE_KOI8_UKRAINIAN LIBFSAPFS_CODEPAGE_KOI8_U #define LIBFSAPFS_CODEPAGE_WINDOWS_THAI LIBFSAPFS_CODEPAGE_WINDOWS_874 #define LIBFSAPFS_CODEPAGE_WINDOWS_JAPANESE LIBFSAPFS_CODEPAGE_WINDOWS_932 #define LIBFSAPFS_CODEPAGE_WINDOWS_CHINESE_SIMPLIFIED LIBFSAPFS_CODEPAGE_WINDOWS_936 #define LIBFSAPFS_CODEPAGE_WINDOWS_KOREAN LIBFSAPFS_CODEPAGE_WINDOWS_949 #define LIBFSAPFS_CODEPAGE_WINDOWS_CHINESE_TRADITIONAL LIBFSAPFS_CODEPAGE_WINDOWS_950 #define LIBFSAPFS_CODEPAGE_WINDOWS_CENTRAL_EUROPEAN LIBFSAPFS_CODEPAGE_WINDOWS_1250 #define LIBFSAPFS_CODEPAGE_WINDOWS_CYRILLIC LIBFSAPFS_CODEPAGE_WINDOWS_1251 #define LIBFSAPFS_CODEPAGE_WINDOWS_WESTERN_EUROPEAN LIBFSAPFS_CODEPAGE_WINDOWS_1252 #define LIBFSAPFS_CODEPAGE_WINDOWS_GREEK LIBFSAPFS_CODEPAGE_WINDOWS_1253 #define LIBFSAPFS_CODEPAGE_WINDOWS_TURKISH LIBFSAPFS_CODEPAGE_WINDOWS_1254 #define LIBFSAPFS_CODEPAGE_WINDOWS_HEBREW LIBFSAPFS_CODEPAGE_WINDOWS_1255 #define LIBFSAPFS_CODEPAGE_WINDOWS_ARABIC LIBFSAPFS_CODEPAGE_WINDOWS_1256 #define LIBFSAPFS_CODEPAGE_WINDOWS_BALTIC LIBFSAPFS_CODEPAGE_WINDOWS_1257 #define LIBFSAPFS_CODEPAGE_WINDOWS_VIETNAMESE LIBFSAPFS_CODEPAGE_WINDOWS_1258 #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CODEPAGE_H ) */ libfsapfs-20190210/include/libfsapfs/error.h0000664000175000017500000001525413426637445022746 0ustar00lordyestalordyesta00000000000000/* * The error code definitions for libfsapfs * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_ERROR_H ) #define _LIBFSAPFS_ERROR_H #include /* External error type definition hides internal structure */ typedef intptr_t libfsapfs_error_t; /* The error domains */ enum LIBFSAPFS_ERROR_DOMAINS { LIBFSAPFS_ERROR_DOMAIN_ARGUMENTS = (int) 'a', LIBFSAPFS_ERROR_DOMAIN_CONVERSION = (int) 'c', LIBFSAPFS_ERROR_DOMAIN_COMPRESSION = (int) 'C', LIBFSAPFS_ERROR_DOMAIN_IO = (int) 'I', LIBFSAPFS_ERROR_DOMAIN_INPUT = (int) 'i', LIBFSAPFS_ERROR_DOMAIN_MEMORY = (int) 'm', LIBFSAPFS_ERROR_DOMAIN_OUTPUT = (int) 'o', LIBFSAPFS_ERROR_DOMAIN_RUNTIME = (int) 'r' }; /* The argument error codes * to signify errors regarding arguments passed to a function */ enum LIBFSAPFS_ARGUMENT_ERROR { LIBFSAPFS_ARGUMENT_ERROR_GENERIC = 0, /* The argument contains an invalid value */ LIBFSAPFS_ARGUMENT_ERROR_INVALID_VALUE = 1, /* The argument contains a value less than zero */ LIBFSAPFS_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO = 2, /* The argument contains a value zero or less */ LIBFSAPFS_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS = 3, /* The argument contains a value that exceeds the maximum * for the specific type */ LIBFSAPFS_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM = 4, /* The argument contains a value that is too small */ LIBFSAPFS_ARGUMENT_ERROR_VALUE_TOO_SMALL = 5, /* The argument contains a value that is too large */ LIBFSAPFS_ARGUMENT_ERROR_VALUE_TOO_LARGE = 6, /* The argument contains a value that is out of bounds */ LIBFSAPFS_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS = 7, /* The argument contains a value that is not supported */ LIBFSAPFS_ARGUMENT_ERROR_UNSUPPORTED_VALUE = 8, /* The argument contains a value that conficts with another argument */ LIBFSAPFS_ARGUMENT_ERROR_CONFLICTING_VALUE = 9 }; /* The conversion error codes * to signify errors regarding conversions */ enum LIBFSAPFS_CONVERSION_ERROR { LIBFSAPFS_CONVERSION_ERROR_GENERIC = 0, /* The conversion failed on the input */ LIBFSAPFS_CONVERSION_ERROR_INPUT_FAILED = 1, /* The conversion failed on the output */ LIBFSAPFS_CONVERSION_ERROR_OUTPUT_FAILED = 2 }; /* The compression error codes * to signify errors regarding compression */ enum LIBFSAPFS_COMPRESSION_ERROR { LIBFSAPFS_COMPRESSION_ERROR_GENERIC = 0, /* The compression failed */ LIBFSAPFS_COMPRESSION_ERROR_COMPRESS_FAILED = 1, /* The decompression failed */ LIBFSAPFS_COMPRESSION_ERROR_DECOMPRESS_FAILED = 2 }; /* The input/output error codes * to signify errors regarding input/output */ enum LIBFSAPFS_IO_ERROR { LIBFSAPFS_IO_ERROR_GENERIC = 0, /* The open failed */ LIBFSAPFS_IO_ERROR_OPEN_FAILED = 1, /* The close failed */ LIBFSAPFS_IO_ERROR_CLOSE_FAILED = 2, /* The seek failed */ LIBFSAPFS_IO_ERROR_SEEK_FAILED = 3, /* The read failed */ LIBFSAPFS_IO_ERROR_READ_FAILED = 4, /* The write failed */ LIBFSAPFS_IO_ERROR_WRITE_FAILED = 5, /* Access denied */ LIBFSAPFS_IO_ERROR_ACCESS_DENIED = 6, /* The resource is invalid i.e. a missing file */ LIBFSAPFS_IO_ERROR_INVALID_RESOURCE = 7, /* The ioctl failed */ LIBFSAPFS_IO_ERROR_IOCTL_FAILED = 8, /* The unlink failed */ LIBFSAPFS_IO_ERROR_UNLINK_FAILED = 9 }; /* The input error codes * to signify errors regarding handing input data */ enum LIBFSAPFS_INPUT_ERROR { LIBFSAPFS_INPUT_ERROR_GENERIC = 0, /* The input contains invalid data */ LIBFSAPFS_INPUT_ERROR_INVALID_DATA = 1, /* The input contains an unsupported signature */ LIBFSAPFS_INPUT_ERROR_SIGNATURE_MISMATCH = 2, /* A checksum in the input did not match */ LIBFSAPFS_INPUT_ERROR_CHECKSUM_MISMATCH = 3, /* A value in the input did not match a previously * read value or calculated value */ LIBFSAPFS_INPUT_ERROR_VALUE_MISMATCH = 4 }; /* The memory error codes * to signify errors regarding memory */ enum LIBFSAPFS_MEMORY_ERROR { LIBFSAPFS_MEMORY_ERROR_GENERIC = 0, /* There is insufficient memory available */ LIBFSAPFS_MEMORY_ERROR_INSUFFICIENT = 1, /* The memory failed to be copied */ LIBFSAPFS_MEMORY_ERROR_COPY_FAILED = 2, /* The memory failed to be set */ LIBFSAPFS_MEMORY_ERROR_SET_FAILED = 3 }; /* The output error codes */ enum LIBFSAPFS_OUTPUT_ERROR { LIBFSAPFS_OUTPUT_ERROR_GENERIC = 0, /* There is insuficient space to write the output */ LIBFSAPFS_OUTPUT_ERROR_INSUFFICIENT_SPACE = 1 }; /* The runtime error codes * to signify errors regarding runtime processing */ enum LIBFSAPFS_RUNTIME_ERROR { LIBFSAPFS_RUNTIME_ERROR_GENERIC = 0, /* The value is missing */ LIBFSAPFS_RUNTIME_ERROR_VALUE_MISSING = 1, /* The value was already set */ LIBFSAPFS_RUNTIME_ERROR_VALUE_ALREADY_SET = 2, /* The creation and/or initialization of an internal structure failed */ LIBFSAPFS_RUNTIME_ERROR_INITIALIZE_FAILED = 3, /* The resize of an internal structure failed */ LIBFSAPFS_RUNTIME_ERROR_RESIZE_FAILED = 4, /* The free and/or finalization of an internal structure failed */ LIBFSAPFS_RUNTIME_ERROR_FINALIZE_FAILED = 5, /* The value could not be determined */ LIBFSAPFS_RUNTIME_ERROR_GET_FAILED = 6, /* The value could not be set */ LIBFSAPFS_RUNTIME_ERROR_SET_FAILED = 7, /* The value could not be appended/prepended */ LIBFSAPFS_RUNTIME_ERROR_APPEND_FAILED = 8, /* The value could not be copied */ LIBFSAPFS_RUNTIME_ERROR_COPY_FAILED = 9, /* The value could not be removed */ LIBFSAPFS_RUNTIME_ERROR_REMOVE_FAILED = 10, /* The value could not be printed */ LIBFSAPFS_RUNTIME_ERROR_PRINT_FAILED = 11, /* The value was out of bounds */ LIBFSAPFS_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS = 12, /* The value exceeds the maximum for its specific type */ LIBFSAPFS_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM = 13, /* The value is unsupported */ LIBFSAPFS_RUNTIME_ERROR_UNSUPPORTED_VALUE = 14, /* An abort was requested */ LIBFSAPFS_RUNTIME_ERROR_ABORT_REQUESTED = 15 }; #endif /* !defined( _LIBFSAPFS_ERROR_H ) */ libfsapfs-20190210/install-sh0000755000175000017500000003601013430101253020015 0ustar00lordyestalordyesta00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2018-03-11.20; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) # Note that $RANDOM variable is not portable (e.g. dash); Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p' feature. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libfsapfs-20190210/INSTALL0000644000175000017500000003661413430101253017054 0ustar00lordyestalordyesta00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell command './configure && make && make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the 'README' file for instructions specific to this package. Some packages provide this 'INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The 'configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a 'Makefile' in each directory of the package. It may also create one or more '.h' files containing system-dependent definitions. Finally, it creates a shell script 'config.status' that you can run in the future to recreate the current configuration, and a file 'config.log' containing compiler output (useful mainly for debugging 'configure'). It can also use an optional file (typically called 'config.cache' and enabled with '--cache-file=config.cache' or simply '-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how 'configure' could check whether to do them, and mail diffs or instructions to the address given in the 'README' so they can be considered for the next release. If you are using the cache, and at some point 'config.cache' contains results you don't want to keep, you may remove or edit it. The file 'configure.ac' (or 'configure.in') is used to create 'configure' by a program called 'autoconf'. You need 'configure.ac' if you want to change it or regenerate 'configure' using a newer version of 'autoconf'. The simplest way to compile this package is: 1. 'cd' to the directory containing the package's source code and type './configure' to configure the package for your system. Running 'configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type 'make' to compile the package. 3. Optionally, type 'make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type 'make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the 'make install' phase executed with root privileges. 5. Optionally, type 'make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior 'make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing 'make clean'. To also remove the files that 'configure' created (so you can compile the package for a different kind of computer), type 'make distclean'. There is also a 'make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type 'make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide 'make distcheck', which can by used by developers to test that all other targets like 'make install' and 'make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the 'configure' script does not know about. Run './configure --help' for details on some of the pertinent environment variables. You can give 'configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU 'make'. 'cd' to the directory where you want the object files and executables to go and run the 'configure' script. 'configure' automatically checks for the source code in the directory that 'configure' is in and in '..'. This is known as a "VPATH" build. With a non-GNU 'make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use 'make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple '-arch' options to the compiler but only a single '-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the 'lipo' tool if you have problems. Installation Names ================== By default, 'make install' installs the package's commands under '/usr/local/bin', include files under '/usr/local/include', etc. You can specify an installation prefix other than '/usr/local' by giving 'configure' the option '--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option '--exec-prefix=PREFIX' to 'configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like '--bindir=DIR' to specify different values for particular kinds of files. Run 'configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of '${prefix}', so that specifying just '--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to 'configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the 'make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, 'make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of '${prefix}'. Any directories that were specified during 'configure', but not in terms of '${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the 'DESTDIR' variable. For example, 'make install DESTDIR=/alternate/directory' will prepend '/alternate/directory' before all installation names. The approach of 'DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of '${prefix}' at 'configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving 'configure' the option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. Some packages pay attention to '--enable-FEATURE' options to 'configure', where FEATURE indicates an optional part of the package. They may also pay attention to '--with-PACKAGE' options, where PACKAGE is something like 'gnu-as' or 'x' (for the X Window System). The 'README' should mention any '--enable-' and '--with-' options that the package recognizes. For packages that use the X Window System, 'configure' can usually find the X include and library files automatically, but if it doesn't, you can use the 'configure' options '--x-includes=DIR' and '--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of 'make' will be. For these packages, running './configure --enable-silent-rules' sets the default to minimal output, which can be overridden with 'make V=1'; while running './configure --disable-silent-rules' sets the default to verbose, which can be overridden with 'make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX 'make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as 'configure' are involved. Use GNU 'make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its '' header file. The option '-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put '/usr/ucb' early in your 'PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in '/usr/bin'. So, if you need '/usr/ucb' in your 'PATH', put it _after_ '/usr/bin'. On Haiku, software installed for all users goes in '/boot/common', not '/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features 'configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, 'configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the '--build=TYPE' option. TYPE can either be a short name for the system type, such as 'sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file 'config.sub' for the possible values of each field. If 'config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option '--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with '--host=TYPE'. Sharing Defaults ================ If you want to set default values for 'configure' scripts to share, you can create a site shell script called 'config.site' that gives default values for variables like 'CC', 'cache_file', and 'prefix'. 'configure' looks for 'PREFIX/share/config.site' if it exists, then 'PREFIX/etc/config.site' if it exists. Or, you can set the 'CONFIG_SITE' environment variable to the location of the site script. A warning: not all 'configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to 'configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the 'configure' command line, using 'VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified 'gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash 'configure' Invocation ====================== 'configure' recognizes the following options to control how it operates. '--help' '-h' Print a summary of all of the options to 'configure', and exit. '--help=short' '--help=recursive' Print a summary of the options unique to this package's 'configure', and exit. The 'short' variant lists options used only in the top level, while the 'recursive' variant lists options also present in any nested packages. '--version' '-V' Print the version of Autoconf used to generate the 'configure' script, and exit. '--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally 'config.cache'. FILE defaults to '/dev/null' to disable caching. '--config-cache' '-C' Alias for '--cache-file=config.cache'. '--quiet' '--silent' '-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to '/dev/null' (any error messages will still be shown). '--srcdir=DIR' Look for the package's source code in directory DIR. Usually 'configure' can determine that directory automatically. '--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. '--no-create' '-n' Run the configure checks, but stop before creating any output files. 'configure' also accepts some other, not widely useful, options. Run 'configure --help' for more details. libfsapfs-20190210/dpkg/0000775000175000017500000000000013430101366016745 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/dpkg/libfsapfs-tools.install0000664000175000017500000000003313426637437023462 0ustar00lordyestalordyesta00000000000000usr/bin usr/share/man/man1 libfsapfs-20190210/dpkg/libfsapfs-python3.install0000664000175000017500000000002213426637437023724 0ustar00lordyestalordyesta00000000000000/usr/lib/python3* libfsapfs-20190210/dpkg/changelog.in0000664000175000017500000000017213426637437021246 0ustar00lordyestalordyesta00000000000000libfsapfs (@VERSION@-1) unstable; urgency=low * Auto-generated -- Joachim Metz @DPKG_DATE@ libfsapfs-20190210/dpkg/changelog0000664000175000017500000000021513430101272020611 0ustar00lordyestalordyesta00000000000000libfsapfs (20190210-1) unstable; urgency=low * Auto-generated -- Joachim Metz Sun, 10 Feb 2019 20:59:53 +0100 libfsapfs-20190210/dpkg/libfsapfs.install0000664000175000017500000000002613426637437022326 0ustar00lordyestalordyesta00000000000000usr/lib/*-*/lib*.so.* libfsapfs-20190210/dpkg/copyright0000664000175000017500000000200413426637450020711 0ustar00lordyestalordyesta00000000000000Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libfsapfs Source: https://github.com/libyal/libfsapfs Files: * Copyright: 2018-2019, Joachim Metz License: LGPL-3.0+ License: LGPL-3.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-3". libfsapfs-20190210/dpkg/libfsapfs-dev.install0000664000175000017500000000014013426637437023077 0ustar00lordyestalordyesta00000000000000usr/include/* usr/lib/*-*/lib*.a usr/lib/*-*/lib*.so usr/lib/*-*/pkgconfig/* usr/share/man/man3 libfsapfs-20190210/dpkg/source/0000775000175000017500000000000013430101366020245 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/dpkg/source/format0000664000175000017500000000001413426637437021475 0ustar00lordyestalordyesta000000000000003.0 (quilt) libfsapfs-20190210/dpkg/rules0000664000175000017500000000133313426637437020044 0ustar00lordyestalordyesta00000000000000#!/usr/bin/make -f # -*- makefile -*- # Uncomment for debhelper verbose output. # export DH_VERBOSE=1 export SKIP_PYTHON_TESTS=1 %: dh $@ --with autoreconf .PHONY: override_dh_auto_configure override_dh_auto_configure: dh_auto_configure -- --enable-python2 --enable-python3 CFLAGS="-g" .PHONY: override_dh_install override_dh_install: dh_install --fail-missing -X.la -X/pyfsapfs.a .PHONY: override_dh_strip override_dh_strip: ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) dh_strip -plibfsapfs --dbg-package=libfsapfs-dbg dh_strip -plibfsapfs-tools --dbg-package=libfsapfs-tools-dbg dh_strip -plibfsapfs-python --dbg-package=libfsapfs-python-dbg dh_strip -plibfsapfs-python3 --dbg-package=libfsapfs-python3-dbg endif libfsapfs-20190210/dpkg/compat0000664000175000017500000000000213426637437020165 0ustar00lordyestalordyesta000000000000009 libfsapfs-20190210/dpkg/libfsapfs-python.install0000664000175000017500000000002213426637437023641 0ustar00lordyestalordyesta00000000000000/usr/lib/python2* libfsapfs-20190210/dpkg/control0000664000175000017500000000512113426637437020371 0ustar00lordyestalordyesta00000000000000Source: libfsapfs Priority: extra Maintainer: Joachim Metz Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config, zlib1g-dev, libssl-dev, python-dev, python3-dev, libfuse-dev Standards-Version: 3.9.5 Section: libs Homepage: https://github.com/libyal/libfsapfs Package: libfsapfs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: libfsapfs1 Replaces: libfsapfs1 Suggests: libfsapfs-dbg Description: Library to access the Apple File System (APFS) format libfsapfs is a library to access the Apple File System (APFS) format. Package: libfsapfs-dbg Architecture: any Section: debug Depends: libfsapfs (= ${binary:Version}), ${misc:Depends} Description: Debugging symbols for libfsapfs Debugging symbols for libfsapfs. Package: libfsapfs-dev Section: libdevel Architecture: any Depends: libfsapfs (= ${binary:Version}), ${misc:Depends} Description: Header files and libraries for developing applications for libfsapfs Header files and libraries for developing applications for libfsapfs. Package: libfsapfs-tools Section: utils Architecture: any Depends: libfsapfs (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Conflicts: libfsapfs-utils Replaces: libfsapfs-utils Description: Several tools for reading Apple File System (APFS) volumes Several tools for reading Apple File System (APFS) volumes. Package: libfsapfs-tools-dbg Section: debug Architecture: any Depends: libfsapfs-tools (= ${binary:Version}), ${misc:Depends} Description: Debugging symbols for libfsapfs-tools Debugging symbols for libfsapfs-tools. Package: libfsapfs-python Section: python Architecture: any Depends: libfsapfs (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Conflicts: python-libfsapfs Replaces: python-libfsapfs Suggests: libfsapfs-python-dbg Description: Python 2 bindings for libfsapfs Python 2 bindings for libfsapfs. Package: libfsapfs-python-dbg Section: debug Architecture: any Depends: libfsapfs-python (= ${binary:Version}), ${misc:Depends} Description: Debugging symbols for libfsapfs-python Debugging symbols for libfsapfs-python. Package: libfsapfs-python3 Section: python Architecture: any Depends: libfsapfs (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Conflicts: python3-libfsapfs Replaces: python3-libfsapfs Suggests: libfsapfs-python3-dbg Description: Python 3 bindings for libfsapfs Python 3 bindings for libfsapfs. Package: libfsapfs-python3-dbg Section: debug Architecture: any Depends: libfsapfs-python3 (= ${binary:Version}), ${misc:Depends} Description: Debugging symbols for libfsapfs-python3 Debugging symbols for libfsapfs-python3. libfsapfs-20190210/libfdatetime/0000775000175000017500000000000013430101370020444 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libfdatetime/libfdatetime_support.c0000664000175000017500000000220413430101217025033 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_support.h" #if !defined( HAVE_LOCAL_LIBFDATETIME ) /* Returns the library version as a string */ const char *libfdatetime_get_version( void ) { return( (const char *) LIBFDATETIME_VERSION_STRING ); } #endif libfsapfs-20190210/libfdatetime/libfdatetime_systemtime.h0000664000175000017500000001160313430101217025532 0ustar00lordyestalordyesta00000000000000/* * SYSTEMTIME functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_SYSTEMTIME_H ) #define _LIBFDATETIME_INTERNAL_SYSTEMTIME_H #include #include #include "libfdatetime_extern.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_internal_systemtime libfdatetime_internal_systemtime_t; struct libfdatetime_internal_systemtime { /* The year */ uint16_t year; /* The month */ uint16_t month; /* The day of week */ uint16_t day_of_week; /* The day of month */ uint16_t day_of_month; /* The hours */ uint16_t hours; /* The minutes */ uint16_t minutes; /* The seconds */ uint16_t seconds; /* The milli seconds */ uint16_t milli_seconds; }; LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_initialize( libfdatetime_systemtime_t **systemtime, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_free( libfdatetime_systemtime_t **systemtime, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_copy_from_byte_stream( libfdatetime_systemtime_t *systemtime, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); int libfdatetime_internal_systemtime_copy_to_date_time_values( libfdatetime_internal_systemtime_t *internal_systemtime, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_get_string_size( libfdatetime_systemtime_t *systemtime, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_systemtime_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_systemtime_t *internal_systemtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_copy_to_utf8_string( libfdatetime_systemtime_t *systemtime, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_copy_to_utf8_string_with_index( libfdatetime_systemtime_t *systemtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_systemtime_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_systemtime_t *internal_systemtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_copy_to_utf16_string( libfdatetime_systemtime_t *systemtime, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_copy_to_utf16_string_with_index( libfdatetime_systemtime_t *systemtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_systemtime_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_systemtime_t *internal_systemtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_copy_to_utf32_string( libfdatetime_systemtime_t *systemtime, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_systemtime_copy_to_utf32_string_with_index( libfdatetime_systemtime_t *systemtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_SYSTEMTIME_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_error.h0000664000175000017500000000354113430101217024462 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_ERROR_H ) #define _LIBFDATETIME_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBFDATETIME ) #include #endif #include "libfdatetime_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFDATETIME ) LIBFDATETIME_EXTERN \ void libfdatetime_error_free( libfdatetime_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_error_fprint( libfdatetime_error_t *error, FILE *stream ); LIBFDATETIME_EXTERN \ int libfdatetime_error_sprint( libfdatetime_error_t *error, char *string, size_t size ); LIBFDATETIME_EXTERN \ int libfdatetime_error_backtrace_fprint( libfdatetime_error_t *error, FILE *stream ); LIBFDATETIME_EXTERN \ int libfdatetime_error_backtrace_sprint( libfdatetime_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBFDATETIME ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libfdatetime/Makefile.am0000664000175000017500000000213113430101217022475 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBFDATETIME AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libfdatetime.la libfdatetime_la_SOURCES = \ libfdatetime_date_time_values.c libfdatetime_date_time_values.h \ libfdatetime_definitions.h \ libfdatetime_extern.h \ libfdatetime_error.c libfdatetime_error.h \ libfdatetime_fat_date_time.c libfdatetime_fat_date_time.h \ libfdatetime_filetime.c libfdatetime_filetime.h \ libfdatetime_floatingtime.c libfdatetime_floatingtime.h \ libfdatetime_hfs_time.c libfdatetime_hfs_time.h \ libfdatetime_libcerror.h \ libfdatetime_nsf_timedate.c libfdatetime_nsf_timedate.h \ libfdatetime_posix_time.c libfdatetime_posix_time.h \ libfdatetime_support.c libfdatetime_support.h \ libfdatetime_systemtime.c libfdatetime_systemtime.h \ libfdatetime_types.h \ libfdatetime_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfdatetime ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfdatetime_la_SOURCES) libfsapfs-20190210/libfdatetime/libfdatetime_unused.h0000664000175000017500000000260613430101217024635 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_UNUSED_H ) #define _LIBFDATETIME_INTERNAL_UNUSED_H #include #if !defined( LIBFDATETIME_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBFDATETIME_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBFDATETIME_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBFDATETIME_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBFDATETIME_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_error.c0000664000175000017500000000563013430101217024456 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdatetime_error.h" #include "libfdatetime_libcerror.h" #if !defined( HAVE_LOCAL_LIBFDATETIME ) /* Free an error and its elements */ void libfdatetime_error_free( libfdatetime_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfdatetime_error_fprint( libfdatetime_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfdatetime_error_sprint( libfdatetime_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfdatetime_error_backtrace_fprint( libfdatetime_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfdatetime_error_backtrace_sprint( libfdatetime_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBFDATETIME ) */ libfsapfs-20190210/libfdatetime/libfdatetime_posix_time.c0000664000175000017500000014177013430101217025513 0ustar00lordyestalordyesta00000000000000/* * POSIX time functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_posix_time.h" #include "libfdatetime_types.h" /* Creates a POSIX time * Make sure the value posix_time is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_initialize( libfdatetime_posix_time_t **posix_time, libcerror_error_t **error ) { libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_initialize"; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } if( *posix_time != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid POSIX time value already set.", function ); return( -1 ); } internal_posix_time = memory_allocate_structure( libfdatetime_internal_posix_time_t ); if( internal_posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create POSIX time.", function ); goto on_error; } if( memory_set( internal_posix_time, 0, sizeof( libfdatetime_internal_posix_time_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear POSIX time.", function ); goto on_error; } *posix_time = (libfdatetime_posix_time_t *) internal_posix_time; return( 1 ); on_error: if( internal_posix_time != NULL ) { memory_free( internal_posix_time ); } return( -1 ); } /* Frees a POSIX time * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_free( libfdatetime_posix_time_t **posix_time, libcerror_error_t **error ) { libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_free"; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } if( *posix_time != NULL ) { internal_posix_time = (libfdatetime_internal_posix_time_t *) *posix_time; *posix_time = NULL; memory_free( internal_posix_time ); } return( 1 ); } /* Converts a byte stream into a POSIX time * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_from_byte_stream( libfdatetime_posix_time_t *posix_time, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, uint8_t value_type, libcerror_error_t **error ) { libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_from_byte_stream"; uint64_t value_64bit = 0; uint8_t is_signed = 0; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFDATETIME_ENDIAN_BIG ) && ( byte_order != LIBFDATETIME_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) || ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { if( byte_stream_size < 4 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint32_little_endian( byte_stream, value_64bit ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint32_big_endian( byte_stream, value_64bit ); } is_signed = (uint8_t) ( value_64bit >> 31 ); if( ( is_signed != 0 ) && ( ( value_64bit & 0x7fffffffUL ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported timestamp.", function ); return( -1 ); } } else if( ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) || ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) || ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) || ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) || ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) || ( value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { if( byte_stream_size < 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint64_little_endian( byte_stream, value_64bit ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint64_big_endian( byte_stream, value_64bit ); } is_signed = (uint8_t) ( value_64bit >> 63 ); #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) if( ( is_signed != 0 ) && ( ( value_64bit & 0x7fffffffffffffffUL ) == 0 ) ) #else if( ( is_signed != 0 ) && ( ( value_64bit & 0x7fffffffffffffffULL ) == 0 ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported timestamp.", function ); return( -1 ); } } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value type.", function ); return( -1 ); } internal_posix_time->timestamp = value_64bit; internal_posix_time->value_type = value_type; return( 1 ); } /* Converts a 32-bit value into a POSIX time * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_from_32bit( libfdatetime_posix_time_t *posix_time, uint32_t value_32bit, uint8_t value_type, libcerror_error_t **error ) { libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_from_32bit"; uint8_t is_signed = 0; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; if( ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) && ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value type.", function ); return( -1 ); } is_signed = (uint8_t) ( value_32bit >> 31 ); if( ( is_signed != 0 ) && ( ( value_32bit & 0x7fffffffUL ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported timestamp.", function ); return( -1 ); } internal_posix_time->timestamp = (uint64_t) value_32bit; internal_posix_time->value_type = value_type; return( 1 ); } /* Converts a POSIX time into a 32-bit value * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_32bit( libfdatetime_posix_time_t *posix_time, uint32_t *value_32bit, uint8_t *value_type, libcerror_error_t **error ) { libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_to_32bit"; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; if( ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid POSIX time - unsupported value type.", function ); return( -1 ); } if( value_32bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 32-bit value.", function ); return( -1 ); } if( value_type == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value type.", function ); return( -1 ); } *value_32bit = (uint32_t) internal_posix_time->timestamp; *value_type = internal_posix_time->value_type; return( 1 ); } /* Converts a 64-bit value into a POSIX time * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_from_64bit( libfdatetime_posix_time_t *posix_time, uint64_t value_64bit, uint8_t value_type, libcerror_error_t **error ) { libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_from_64bit"; uint8_t is_signed = 0; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; if( ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) && ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) && ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) && ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) && ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) && ( value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value type.", function ); return( -1 ); } is_signed = (uint8_t) ( value_64bit >> 63 ); #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) if( ( is_signed != 0 ) && ( ( value_64bit & 0x7fffffffffffffffUL ) == 0 ) ) #else if( ( is_signed != 0 ) && ( ( value_64bit & 0x7fffffffffffffffULL ) == 0 ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported timestamp.", function ); return( -1 ); } internal_posix_time->timestamp = value_64bit; internal_posix_time->value_type = value_type; return( 1 ); } /* Converts a POSIX time into a 64-bit value * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_64bit( libfdatetime_posix_time_t *posix_time, uint64_t *value_64bit, uint8_t *value_type, libcerror_error_t **error ) { libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_to_64bit"; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; if( ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid POSIX time - unsupported value type.", function ); return( -1 ); } if( value_64bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 64-bit value.", function ); return( -1 ); } if( value_type == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value type.", function ); return( -1 ); } *value_64bit = internal_posix_time->timestamp; *value_type = internal_posix_time->value_type; return( 1 ); } /* Converts a POSIX time into date time values * Returns 1 if successful or -1 on error */ int libfdatetime_internal_posix_time_copy_to_date_time_values( libfdatetime_internal_posix_time_t *internal_posix_time, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_posix_time_copy_to_date_time_values"; uint64_t posix_timestamp = 0; uint16_t days_in_year = 0; uint8_t days_in_month = 0; uint8_t is_signed = 0; if( internal_posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } if( ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid POSIX time - unsupported value type.", function ); return( -1 ); } if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } posix_timestamp = internal_posix_time->timestamp; if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { is_signed = (uint8_t) ( posix_timestamp >> 31 ); posix_timestamp &= 0x7fffffffUL; } else if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { is_signed = (uint8_t) ( posix_timestamp >> 63 ); #if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) posix_timestamp &= 0x7fffffffffffffffUL; #else posix_timestamp &= 0x7fffffffffffffffULL; #endif } if( ( is_signed != 0 ) && ( posix_timestamp == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported timestamp.", function ); return( -1 ); } date_time_values->nano_seconds = 0; if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { /* The timestamp is in units of nano seconds correct the value to seconds */ if( is_signed == 0 ) { date_time_values->nano_seconds = posix_timestamp % 1000; } else { date_time_values->nano_seconds = 1000 - ( posix_timestamp % 1000 ); } posix_timestamp /= 1000; } if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { /* The timestamp is in units of micro seconds correct the value to seconds */ if( is_signed == 0 ) { date_time_values->micro_seconds = posix_timestamp % 1000; } else { date_time_values->micro_seconds = 1000 - ( posix_timestamp % 1000 ); } posix_timestamp /= 1000; if( is_signed == 0 ) { date_time_values->milli_seconds = posix_timestamp % 1000; } else { date_time_values->milli_seconds = 1000 - ( posix_timestamp % 1000 ); } posix_timestamp /= 1000; } else { date_time_values->micro_seconds = 0; date_time_values->milli_seconds = 0; } /* There are 60 seconds in a minute correct the value to minutes */ date_time_values->seconds = posix_timestamp % 60; posix_timestamp /= 60; if( ( is_signed != 0 ) && ( date_time_values->seconds > 0 ) ) { date_time_values->seconds = 60 - date_time_values->seconds; } /* There are 60 minutes in an hour correct the value to hours */ date_time_values->minutes = posix_timestamp % 60; posix_timestamp /= 60; if( ( is_signed != 0 ) && ( date_time_values->minutes > 0 ) ) { date_time_values->minutes = 60 - date_time_values->minutes; } /* There are 24 hours in a day correct the value to days */ date_time_values->hours = posix_timestamp % 24; posix_timestamp /= 24; if( ( is_signed != 0 ) && ( date_time_values->hours > 0 ) ) { date_time_values->hours = 24 - date_time_values->hours; } /* Determine the number of years starting at 'Jan 1, 1970 00:00:00' * correct the value to days within the year */ if( is_signed == 0 ) { /* Add 1 day to compensate that Jan 1, 1970 is represented as 0 */ posix_timestamp += 1; if( posix_timestamp >= 10957 ) { date_time_values->year = 2000; posix_timestamp -= 10957; } else { date_time_values->year = 1970; } } else { /* Remove 1 day to compensate that Jan 1, 1970 is represented as 0 */ posix_timestamp -= 1; date_time_values->year = 1969; } while( posix_timestamp > 0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( posix_timestamp <= days_in_year ) { break; } posix_timestamp -= days_in_year; if( is_signed == 0 ) { date_time_values->year += 1; } else { date_time_values->year -= 1; } } /* Determine the month correct the value to days within the month */ if( is_signed == 0 ) { date_time_values->month = 1; } else { date_time_values->month = 12; } do { /* February (2) */ if( date_time_values->month == 2 ) { if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( date_time_values->month == 4 ) || ( date_time_values->month == 6 ) || ( date_time_values->month == 9 ) || ( date_time_values->month == 11 ) ) { days_in_month = 30; } /* January (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( date_time_values->month == 1 ) || ( date_time_values->month == 3 ) || ( date_time_values->month == 5 ) || ( date_time_values->month == 7 ) || ( date_time_values->month == 8 ) || ( date_time_values->month == 10 ) || ( date_time_values->month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported month: %d.", function, date_time_values->month ); return( -1 ); } if( posix_timestamp <= days_in_month ) { break; } posix_timestamp -= days_in_month; if( is_signed == 0 ) { date_time_values->month += 1; } else { date_time_values->month -= 1; } } while( posix_timestamp > 0 ); /* Determine the day */ date_time_values->day = (uint8_t) posix_timestamp; if( is_signed != 0 ) { date_time_values->day = days_in_month - date_time_values->day; } return( 1 ); } /* Deterimes the size of the string for the POSIX time * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_get_string_size( libfdatetime_posix_time_t *posix_time, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_get_string_size"; int result = 0; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; if( ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid POSIX time - unsupported value type.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } result = libfdatetime_internal_posix_time_copy_to_date_time_values( (libfdatetime_internal_posix_time_t *) posix_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_get_string_size( &date_time_values, string_size, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to get string size.", function ); return( -1 ); } } if( result != 1 ) { /* Make sure the string can hold the hexadecimal representation of the POSIX time */ if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { *string_size = 13; } else { *string_size = 21; } } return( 1 ); } /* Converts the POSIX time into an UTF-8 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_posix_time_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_posix_time_t *internal_posix_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_posix_time_copy_to_utf8_string_in_hexadecimal"; size_t string_index = 0; size_t string_size = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } if( ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid POSIX time - unsupported value type.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { string_size = 13; byte_shift = 28; } else { string_size = 21; byte_shift = 60; } if( ( utf8_string_size < string_size ) || ( *utf8_string_index > ( utf8_string_size - string_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } string_index = *utf8_string_index; utf8_string[ string_index++ ] = (uint8_t) '('; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; do { byte_value = ( internal_posix_time->timestamp >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ')'; utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the POSIX time into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_utf8_string( libfdatetime_posix_time_t *posix_time, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_posix_time_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfdatetime_posix_time_copy_to_utf8_string_with_index( posix_time, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy POSIX time to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Converts the POSIX time into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_utf8_string_with_index( libfdatetime_posix_time_t *posix_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_to_utf8_string_with_index"; int result = 0; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; result = libfdatetime_internal_posix_time_copy_to_date_time_values( internal_posix_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf8_string_with_index( &date_time_values, utf8_string, utf8_string_size, utf8_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-8 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_posix_time_copy_to_utf8_string_in_hexadecimal( internal_posix_time, utf8_string, utf8_string_size, utf8_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to POSIX time to hexadecimal UTF-8 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the POSIX time into an UTF-16 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_posix_time_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_posix_time_t *internal_posix_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_posix_time_copy_to_utf16_string_in_hexadecimal"; size_t string_index = 0; size_t string_size = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } if( ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid POSIX time - unsupported value type.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { string_size = 13; byte_shift = 28; } else { string_size = 21; byte_shift = 60; } if( ( utf16_string_size < string_size ) || ( *utf16_string_index > ( utf16_string_size - string_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } string_index = *utf16_string_index; utf16_string[ string_index++ ] = (uint16_t) '('; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; do { byte_value = ( internal_posix_time->timestamp >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ')'; utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the POSIX time into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_utf16_string( libfdatetime_posix_time_t *posix_time, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_posix_time_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfdatetime_posix_time_copy_to_utf16_string_with_index( posix_time, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy POSIX time to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Converts the POSIX time into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_utf16_string_with_index( libfdatetime_posix_time_t *posix_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_to_utf16_string_with_index"; int result = 0; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; result = libfdatetime_internal_posix_time_copy_to_date_time_values( internal_posix_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf16_string_with_index( &date_time_values, utf16_string, utf16_string_size, utf16_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_posix_time_copy_to_utf16_string_in_hexadecimal( internal_posix_time, utf16_string, utf16_string_size, utf16_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to POSIX time to hexadecimal UTF-16 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the POSIX time into an UTF-32 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_posix_time_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_posix_time_t *internal_posix_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_posix_time_copy_to_utf32_string_in_hexadecimal"; size_t string_index = 0; size_t string_size = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } if( ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED ) && ( internal_posix_time->value_type != LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid POSIX time - unsupported value type.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED ) || ( internal_posix_time->value_type == LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED ) ) { string_size = 13; byte_shift = 28; } else { string_size = 21; byte_shift = 60; } if( ( utf32_string_size < string_size ) || ( *utf32_string_index > ( utf32_string_size - string_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } string_index = *utf32_string_index; utf32_string[ string_index++ ] = (uint32_t) '('; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; do { byte_value = ( internal_posix_time->timestamp >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ')'; utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } /* Converts the POSIX time into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_utf32_string( libfdatetime_posix_time_t *posix_time, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_posix_time_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfdatetime_posix_time_copy_to_utf32_string_with_index( posix_time, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy POSIX time to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Converts the POSIX time into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_posix_time_copy_to_utf32_string_with_index( libfdatetime_posix_time_t *posix_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_posix_time_t *internal_posix_time = NULL; static char *function = "libfdatetime_posix_time_copy_to_utf32_string_with_index"; int result = 0; if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } internal_posix_time = (libfdatetime_internal_posix_time_t *) posix_time; result = libfdatetime_internal_posix_time_copy_to_date_time_values( internal_posix_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf32_string_with_index( &date_time_values, utf32_string, utf32_string_size, utf32_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: unable to copy date time values to UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_posix_time_copy_to_utf32_string_in_hexadecimal( internal_posix_time, utf32_string, utf32_string_size, utf32_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to POSIX time to hexadecimal UTF-32 string.", function ); return( -1 ); } } return( 1 ); } libfsapfs-20190210/libfdatetime/libfdatetime_fat_date_time.h0000664000175000017500000001234013430101217026113 0ustar00lordyestalordyesta00000000000000/* * FAT date and time functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_FAT_DATE_TIME_H ) #define _LIBFDATETIME_INTERNAL_FAT_DATE_TIME_H #include #include #include "libfdatetime_extern.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_internal_fat_date_time libfdatetime_internal_fat_date_time_t; /* Contains two 16-bit value representing * a date since 1980 * a time in 2 second intervals */ struct libfdatetime_internal_fat_date_time { /* The date part */ uint16_t date; /* The time part */ uint16_t time; }; LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_initialize( libfdatetime_fat_date_time_t **fat_date_time, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_free( libfdatetime_fat_date_time_t **fat_date_time, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_from_byte_stream( libfdatetime_fat_date_time_t *fat_date_time, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_from_32bit( libfdatetime_fat_date_time_t *fat_date_time, uint32_t value_32bit, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_to_32bit( libfdatetime_fat_date_time_t *fat_date_time, uint32_t *value_32bit, libcerror_error_t **error ); int libfdatetime_internal_fat_date_time_copy_to_date_time_values( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_get_string_size( libfdatetime_fat_date_time_t *fat_date_time, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_fat_date_time_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_to_utf8_string( libfdatetime_fat_date_time_t *fat_date_time, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_to_utf8_string_with_index( libfdatetime_fat_date_time_t *fat_date_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_fat_date_time_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_to_utf16_string( libfdatetime_fat_date_time_t *fat_date_time, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_to_utf16_string_with_index( libfdatetime_fat_date_time_t *fat_date_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_fat_date_time_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_to_utf32_string( libfdatetime_fat_date_time_t *fat_date_time, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_fat_date_time_copy_to_utf32_string_with_index( libfdatetime_fat_date_time_t *fat_date_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_FAT_DATE_TIME_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_types.h0000664000175000017500000000464613430101217024504 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_TYPES_H ) #define _LIBFDATETIME_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime * The definitions in are copied here * for local use of libfdatetime */ #if defined( HAVE_LOCAL_LIBFDATETIME ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libfdatetime_fat_date {} libfdatetime_fat_date_t; typedef struct libfdatetime_fat_date_time {} libfdatetime_fat_date_time_t; typedef struct libfdatetime_fat_time {} libfdatetime_fat_time_t; typedef struct libfdatetime_filetime {} libfdatetime_filetime_t; typedef struct libfdatetime_floatingtime {} libfdatetime_floatingtime_t; typedef struct libfdatetime_hfs_time {} libfdatetime_hfs_time_t; typedef struct libfdatetime_nsf_timedate {} libfdatetime_nsf_timedate_t; typedef struct libfdatetime_posix_time {} libfdatetime_posix_time_t; typedef struct libfdatetime_systemtime {} libfdatetime_systemtime_t; #else typedef intptr_t libfdatetime_fat_date_t; typedef intptr_t libfdatetime_fat_date_time_t; typedef intptr_t libfdatetime_fat_time_t; typedef intptr_t libfdatetime_filetime_t; typedef intptr_t libfdatetime_floatingtime_t; typedef intptr_t libfdatetime_hfs_time_t; typedef intptr_t libfdatetime_nsf_timedate_t; typedef intptr_t libfdatetime_posix_time_t; typedef intptr_t libfdatetime_systemtime_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBFDATETIME ) */ #endif /* !defined( _LIBFDATETIME_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_floatingtime.c0000664000175000017500000010117113430101217026004 0ustar00lordyestalordyesta00000000000000/* * Floatingtime functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_floatingtime.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" /* Creates a floatingtime * Make sure the value floatingtime is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_initialize( libfdatetime_floatingtime_t **floatingtime, libcerror_error_t **error ) { libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_initialize"; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } if( *floatingtime != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid floatingtime value already set.", function ); return( -1 ); } internal_floatingtime = memory_allocate_structure( libfdatetime_internal_floatingtime_t ); if( internal_floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create floatingtime.", function ); goto on_error; } if( memory_set( internal_floatingtime, 0, sizeof( libfdatetime_internal_floatingtime_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear floatingtime.", function ); goto on_error; } *floatingtime = (libfdatetime_floatingtime_t *) internal_floatingtime; return( 1 ); on_error: if( internal_floatingtime != NULL ) { memory_free( internal_floatingtime ); } return( -1 ); } /* Frees a floatingtime * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_free( libfdatetime_floatingtime_t **floatingtime, libcerror_error_t **error ) { libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_free"; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } if( *floatingtime != NULL ) { internal_floatingtime = (libfdatetime_internal_floatingtime_t *) *floatingtime; *floatingtime = NULL; memory_free( internal_floatingtime ); } return( 1 ); } /* Converts a byte stream into a floatingtime * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_from_byte_stream( libfdatetime_floatingtime_t *floatingtime, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_copy_from_byte_stream"; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } internal_floatingtime = (libfdatetime_internal_floatingtime_t *) floatingtime; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size < 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFDATETIME_ENDIAN_BIG ) && ( byte_order != LIBFDATETIME_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint64_little_endian( byte_stream, internal_floatingtime->timestamp.integer ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint64_big_endian( byte_stream, internal_floatingtime->timestamp.integer ); } return( 1 ); } /* Converts a 64-bit value into a floatingtime * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_from_64bit( libfdatetime_floatingtime_t *floatingtime, uint64_t value_64bit, libcerror_error_t **error ) { libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_copy_from_64bit"; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } internal_floatingtime = (libfdatetime_internal_floatingtime_t *) floatingtime; internal_floatingtime->timestamp.integer = value_64bit; return( 1 ); } /* Converts a floatingtime into a 64-bit value * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_to_64bit( libfdatetime_floatingtime_t *floatingtime, uint64_t *value_64bit, libcerror_error_t **error ) { libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_copy_from_64bit"; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } internal_floatingtime = (libfdatetime_internal_floatingtime_t *) floatingtime; if( value_64bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 64-bit value.", function ); return( -1 ); } *value_64bit = internal_floatingtime->timestamp.integer; return( 1 ); } /* Converts a floatingtime into date time values * Returns 1 if successful or -1 on error */ int libfdatetime_internal_floatingtime_copy_to_date_time_values( libfdatetime_internal_floatingtime_t *internal_floatingtime, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_floatingtime_copy_to_date_time_values"; double floatingtimestamp = 0; uint32_t days_in_century = 0; uint16_t days_in_year = 0; uint8_t days_in_month = 0; if( internal_floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } floatingtimestamp = internal_floatingtime->timestamp.floating_point; if( ( floatingtimestamp <= -3650000.0 ) || ( floatingtimestamp >= 3650000.0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid floatingtime - value out of bounds.", function ); return( -1 ); } /* Determine the number of years starting at '30 Dec 1899 00:00:00' * correct the value to days within the year */ date_time_values->year = 1899; date_time_values->month = 12; date_time_values->day = 30; if( floatingtimestamp >= 2.0 ) { date_time_values->year = 1900; date_time_values->month = 1; date_time_values->day = 1; floatingtimestamp -= 2.0; } while( floatingtimestamp > 0.0 ) { if( ( date_time_values->year % 400 ) == 0 ) { days_in_century = 36525; } else { days_in_century = 36524; } if( floatingtimestamp <= days_in_century ) { break; } floatingtimestamp -= days_in_century; date_time_values->year += 100; } while( floatingtimestamp > 0.0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( floatingtimestamp <= days_in_year ) { break; } floatingtimestamp -= days_in_year; date_time_values->year += 1; } if( date_time_values->year > 9999 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid floatingtime - year value out of bounds.", function ); return( -1 ); } /* Determine the month correct the value to days within the month */ while( floatingtimestamp > 0.0 ) { /* February (2) */ if( date_time_values->month == 2 ) { if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( date_time_values->month == 4 ) || ( date_time_values->month == 6 ) || ( date_time_values->month == 9 ) || ( date_time_values->month == 11 ) ) { days_in_month = 30; } /* January (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( date_time_values->month == 1 ) || ( date_time_values->month == 3 ) || ( date_time_values->month == 5 ) || ( date_time_values->month == 7 ) || ( date_time_values->month == 8 ) || ( date_time_values->month == 10 ) || ( date_time_values->month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported month: %d.", function, date_time_values->month ); return( -1 ); } if( floatingtimestamp <= days_in_month ) { break; } floatingtimestamp -= days_in_month; date_time_values->month += 1; } /* Determine the day */ date_time_values->day += (uint8_t) floatingtimestamp; floatingtimestamp -= (int) floatingtimestamp; /* There are 24 hours in a day correct the value to hours */ floatingtimestamp *= 24.0; date_time_values->hours = (uint8_t) floatingtimestamp; floatingtimestamp -= date_time_values->hours; /* There are 60 minutes in an hour correct the value to minutes */ floatingtimestamp *= 60.0; date_time_values->minutes = (uint8_t) floatingtimestamp; floatingtimestamp -= date_time_values->minutes; /* There are 60 seconds in a minute correct the value to seconds */ floatingtimestamp *= 60.0; date_time_values->seconds = (uint8_t) floatingtimestamp; floatingtimestamp -= date_time_values->seconds; /* There are 1000 milli seconds in a seconds correct the value to milli seconds */ floatingtimestamp *= 1000.0; date_time_values->milli_seconds = (uint8_t) floatingtimestamp; floatingtimestamp -= date_time_values->milli_seconds; /* There are 1000 micro seconds in a seconds correct the value to micro seconds */ floatingtimestamp *= 1000.0; date_time_values->micro_seconds = (uint8_t) floatingtimestamp; floatingtimestamp -= date_time_values->micro_seconds; /* There are 1000 nano seconds in a seconds correct the value to nano seconds */ floatingtimestamp *= 1000.0; date_time_values->nano_seconds = (uint8_t) floatingtimestamp; return( 1 ); } /* Deterimes the size of the string for the floatingtime * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_get_string_size( libfdatetime_floatingtime_t *floatingtime, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; static char *function = "libfdatetime_floatingtime_get_string_size"; int result = 0; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } result = libfdatetime_internal_floatingtime_copy_to_date_time_values( (libfdatetime_internal_floatingtime_t *) floatingtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_get_string_size( &date_time_values, string_size, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to get string size.", function ); return( -1 ); } } if( result != 1 ) { /* Make sure the string can hold the hexadecimal representation of the floatingtime */ *string_size = 21; } return( 1 ); } /* Converts the floatingtime into an UTF-8 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_floatingtime_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_floatingtime_t *internal_floatingtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_floatingtime_copy_to_utf8_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( ( utf8_string_size < 21 ) || ( *utf8_string_index > ( utf8_string_size - 21 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } string_index = *utf8_string_index; utf8_string[ string_index++ ] = (uint8_t) '('; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 60; do { byte_value = ( internal_floatingtime->timestamp.integer >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ')'; utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the floatingtime into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_to_utf8_string( libfdatetime_floatingtime_t *floatingtime, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_floatingtime_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfdatetime_floatingtime_copy_to_utf8_string_with_index( floatingtime, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy floatingtime to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Converts the floatingtime into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_to_utf8_string_with_index( libfdatetime_floatingtime_t *floatingtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_copy_to_utf8_string_with_index"; int result = 0; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } internal_floatingtime = (libfdatetime_internal_floatingtime_t *) floatingtime; result = libfdatetime_internal_floatingtime_copy_to_date_time_values( internal_floatingtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf8_string_with_index( &date_time_values, utf8_string, utf8_string_size, utf8_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-8 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_floatingtime_copy_to_utf8_string_in_hexadecimal( internal_floatingtime, utf8_string, utf8_string_size, utf8_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to floatingtime to hexadecimal UTF-8 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the floatingtime into an UTF-16 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_floatingtime_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_floatingtime_t *internal_floatingtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_floatingtime_copy_to_utf16_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( utf16_string_size < 21 ) || ( *utf16_string_index > ( utf16_string_size - 21 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } string_index = *utf16_string_index; utf16_string[ string_index++ ] = (uint16_t) '('; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 60; do { byte_value = ( internal_floatingtime->timestamp.integer >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ')'; utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the floatingtime into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_to_utf16_string( libfdatetime_floatingtime_t *floatingtime, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_floatingtime_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfdatetime_floatingtime_copy_to_utf16_string_with_index( floatingtime, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy floatingtime to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Converts the floatingtime into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_to_utf16_string_with_index( libfdatetime_floatingtime_t *floatingtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_copy_to_utf16_string_with_index"; int result = 0; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } internal_floatingtime = (libfdatetime_internal_floatingtime_t *) floatingtime; result = libfdatetime_internal_floatingtime_copy_to_date_time_values( internal_floatingtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf16_string_with_index( &date_time_values, utf16_string, utf16_string_size, utf16_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_floatingtime_copy_to_utf16_string_in_hexadecimal( internal_floatingtime, utf16_string, utf16_string_size, utf16_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to floatingtime to hexadecimal UTF-16 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the floatingtime into an UTF-32 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_floatingtime_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_floatingtime_t *internal_floatingtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_floatingtime_copy_to_utf32_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( ( utf32_string_size < 21 ) || ( *utf32_string_index > ( utf32_string_size - 21 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } string_index = *utf32_string_index; utf32_string[ string_index++ ] = (uint32_t) '('; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 60; do { byte_value = ( internal_floatingtime->timestamp.integer >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ')'; utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } /* Converts the floatingtime into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_to_utf32_string( libfdatetime_floatingtime_t *floatingtime, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_floatingtime_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfdatetime_floatingtime_copy_to_utf32_string_with_index( floatingtime, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy floatingtime to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Converts the floatingtime into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_floatingtime_copy_to_utf32_string_with_index( libfdatetime_floatingtime_t *floatingtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_floatingtime_t *internal_floatingtime = NULL; static char *function = "libfdatetime_floatingtime_copy_to_utf32_string_with_index"; int result = 0; if( floatingtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid floatingtime.", function ); return( -1 ); } internal_floatingtime = (libfdatetime_internal_floatingtime_t *) floatingtime; result = libfdatetime_internal_floatingtime_copy_to_date_time_values( internal_floatingtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf32_string_with_index( &date_time_values, utf32_string, utf32_string_size, utf32_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_floatingtime_copy_to_utf32_string_in_hexadecimal( internal_floatingtime, utf32_string, utf32_string_size, utf32_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to floatingtime to hexadecimal UTF-32 string.", function ); return( -1 ); } } return( 1 ); } libfsapfs-20190210/libfdatetime/libfdatetime_hfs_time.h0000664000175000017500000001162413430101217025130 0ustar00lordyestalordyesta00000000000000/* * HFS time functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_HFS_TIME_H ) #define _LIBFDATETIME_INTERNAL_HFS_TIME_H #include #include #include "libfdatetime_extern.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_internal_hfs_time libfdatetime_internal_hfs_time_t; /* Contains a value representing the number of seconds since January 1, 1904 */ struct libfdatetime_internal_hfs_time { /* The timestamp */ uint32_t timestamp; }; LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_initialize( libfdatetime_hfs_time_t **hfs_time, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_free( libfdatetime_hfs_time_t **hfs_time, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_from_byte_stream( libfdatetime_hfs_time_t *hfs_time, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_from_32bit( libfdatetime_hfs_time_t *hfs_time, uint32_t value_32bit, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_to_32bit( libfdatetime_hfs_time_t *hfs_time, uint32_t *value_32bit, libcerror_error_t **error ); int libfdatetime_internal_hfs_time_copy_to_date_time_values( libfdatetime_internal_hfs_time_t *internal_hfs_time, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_get_string_size( libfdatetime_hfs_time_t *hfs_time, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_hfs_time_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_hfs_time_t *internal_hfs_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_to_utf8_string( libfdatetime_hfs_time_t *hfs_time, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_to_utf8_string_with_index( libfdatetime_hfs_time_t *hfs_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_hfs_time_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_hfs_time_t *internal_hfs_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_to_utf16_string( libfdatetime_hfs_time_t *hfs_time, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_to_utf16_string_with_index( libfdatetime_hfs_time_t *hfs_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_hfs_time_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_hfs_time_t *internal_hfs_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_to_utf32_string( libfdatetime_hfs_time_t *hfs_time, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_hfs_time_copy_to_utf32_string_with_index( libfdatetime_hfs_time_t *hfs_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_HFS_TIME_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_support.h0000664000175000017500000000230613430101217025043 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_SUPPORT_H ) #define _LIBFDATETIME_SUPPORT_H #include #include #include "libfdatetime_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFDATETIME ) LIBFDATETIME_EXTERN \ const char *libfdatetime_get_version( void ); #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_SUPPORT_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_extern.h0000664000175000017500000000246613430101217024643 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_EXTERN_H ) #define _LIBFDATETIME_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime */ #if !defined( HAVE_LOCAL_LIBFDATETIME ) #include #define LIBFDATETIME_EXTERN_VARIABLE LIBFDATETIME_EXTERN #else #define LIBFDATETIME_EXTERN /* extern */ #define LIBFDATETIME_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBFDATETIME ) */ #endif /* !defined( _LIBFDATETIME_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_filetime.h0000664000175000017500000001233613430101217025131 0ustar00lordyestalordyesta00000000000000/* * FILETIME functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_FILETIME_H ) #define _LIBFDATETIME_INTERNAL_FILETIME_H #include #include #include "libfdatetime_extern.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_internal_filetime libfdatetime_internal_filetime_t; /* Contains a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC) * The upper and lower part are separated due to byte alignment */ struct libfdatetime_internal_filetime { /* The lower filetime part */ uint32_t lower; /* The upper filetime part */ uint32_t upper; }; LIBFDATETIME_EXTERN \ int libfdatetime_filetime_initialize( libfdatetime_filetime_t **filetime, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_free( libfdatetime_filetime_t **filetime, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_add( libfdatetime_filetime_t *filetime, libfdatetime_filetime_t *additional_filetime, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_from_byte_stream( libfdatetime_filetime_t *filetime, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_from_64bit( libfdatetime_filetime_t *filetime, uint64_t value_64bit, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_to_64bit( libfdatetime_filetime_t *filetime, uint64_t *value_64bit, libcerror_error_t **error ); int libfdatetime_internal_filetime_copy_to_date_time_values( libfdatetime_internal_filetime_t *internal_filetime, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_get_string_size( libfdatetime_filetime_t *filetime, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_filetime_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_filetime_t *internal_filetime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_to_utf8_string( libfdatetime_filetime_t *filetime, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_to_utf8_string_with_index( libfdatetime_filetime_t *filetime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_filetime_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_filetime_t *internal_filetime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_to_utf16_string( libfdatetime_filetime_t *filetime, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_to_utf16_string_with_index( libfdatetime_filetime_t *filetime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_filetime_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_filetime_t *internal_filetime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_to_utf32_string( libfdatetime_filetime_t *filetime, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_filetime_copy_to_utf32_string_with_index( libfdatetime_filetime_t *filetime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_FILETIME_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_date_time_values.c0000664000175000017500000014753713430101217026654 0ustar00lordyestalordyesta00000000000000/* * Date and time values functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" /* Creates date time values * Make sure the value date_time_values is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_date_time_values_initialize( libfdatetime_date_time_values_t **date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_date_time_values_initialize"; if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } if( *date_time_values != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid date time values value already set.", function ); return( -1 ); } *date_time_values = memory_allocate_structure( libfdatetime_date_time_values_t ); if( *date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create date time values.", function ); goto on_error; } if( memory_set( *date_time_values, 0, sizeof( libfdatetime_date_time_values_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear date time values.", function ); goto on_error; } return( 1 ); on_error: if( *date_time_values != NULL ) { memory_free( *date_time_values ); *date_time_values = NULL; } return( -1 ); } /* Frees date time values * Returns 1 if successful or -1 on error */ int libfdatetime_date_time_values_free( libfdatetime_date_time_values_t **date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_date_time_values_free"; if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } if( *date_time_values != NULL ) { memory_free( *date_time_values ); *date_time_values = NULL; } return( 1 ); } /* Deterimes the size of the string for the date and time values * The string size includes the end of string character * Returns 1 if successful, 0 if the date and time values are not valid or -1 on error */ int libfdatetime_date_time_values_get_string_size( libfdatetime_date_time_values_t *date_time_values, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_date_time_values_get_string_size"; uint32_t string_format_type = 0; uint32_t supported_flags = 0; uint8_t days_in_month = 0; if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } supported_flags = 0x000000ffUL | LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME | LIBFDATETIME_STRING_FORMAT_FLAG_DURATION | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR; if( ( string_format_flags & supported_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_format_type = string_format_flags & 0x000000ffUL; if( ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) && ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format type: 0x%08" PRIx32 ".", function, string_format_type ); return( -1 ); } /* Validate the date and time if necessary */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { if( date_time_values->year > 9999 ) { return( 0 ); } if( ( date_time_values->month == 0 ) || ( date_time_values->month > 12 ) ) { return( 0 ); } switch( date_time_values->month ) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: days_in_month = 31; break; case 4: case 6: case 9: case 11: days_in_month = 30; break; case 2: if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } break; } if( ( date_time_values->day == 0 ) || ( date_time_values->day > days_in_month ) ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( date_time_values->hours > 23 ) { return( 0 ); } if( date_time_values->minutes > 59 ) { return( 0 ); } if( date_time_values->seconds > 59 ) { return( 0 ); } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->milli_seconds > 999 ) { return( 0 ); } } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->micro_seconds > 999 ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { if( date_time_values->nano_seconds > 999 ) { return( 0 ); } } } /* End of string character */ *string_size = 1; /* Determine the size of the date and time string */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { /* Example: Jan 01, 1970 */ if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { *string_size += 12; } /* Example: 1970-01-01 */ else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { *string_size += 10; } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { /* Date and time separator */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { *string_size += 1; } /* Example: 00:00:00 */ *string_size += 8; /* Example: .000 */ if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { *string_size += 4; } /* Example: .000000 */ if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { *string_size += 3; } /* Example: .000000000 */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { *string_size += 3; } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR ) != 0 ) { /* Example: UTC */ if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { *string_size += 4; } /* Example: Z */ else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { *string_size += 1; } } return( 1 ); } /* Converts the date and time values into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful, 0 if the date and time values are not valid or -1 on error */ int libfdatetime_date_time_values_copy_to_utf8_string_with_index( libfdatetime_date_time_values_t *date_time_values, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { char *month_string = NULL; static char *function = "libfdatetime_date_time_values_copy_to_utf8_string_with_index"; size_t string_index = 0; uint32_t string_format_type = 0; uint32_t supported_flags = 0; uint16_t micro_seconds = 0; uint16_t milli_seconds = 0; uint16_t nano_seconds = 0; uint16_t year_value = 0; uint8_t days_in_month = 0; if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } supported_flags = 0x000000ffUL | LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME | LIBFDATETIME_STRING_FORMAT_FLAG_DURATION | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR; if( ( string_format_flags & supported_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_format_type = string_format_flags & 0x000000ffUL; if( ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) && ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format type: 0x%08" PRIx32 ".", function, string_format_type ); return( -1 ); } string_index = *utf8_string_index; /* Validate the date and time if necessary */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { if( date_time_values->year > 9999 ) { return( 0 ); } if( ( date_time_values->month == 0 ) || ( date_time_values->month > 12 ) ) { return( 0 ); } switch( date_time_values->month ) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: days_in_month = 31; break; case 4: case 6: case 9: case 11: days_in_month = 30; break; case 2: if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } break; } if( ( date_time_values->day == 0 ) || ( date_time_values->day > days_in_month ) ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( date_time_values->hours > 23 ) { return( 0 ); } if( date_time_values->minutes > 59 ) { return( 0 ); } if( date_time_values->seconds > 59 ) { return( 0 ); } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->milli_seconds > 999 ) { return( 0 ); } } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->micro_seconds > 999 ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { if( date_time_values->nano_seconds > 999 ) { return( 0 ); } } } /* Create the date and time string */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { switch( date_time_values->month ) { case 1: month_string = "Jan"; break; case 2: month_string = "Feb"; break; case 3: month_string = "Mar"; break; case 4: month_string = "Apr"; break; case 5: month_string = "May"; break; case 6: month_string = "Jun"; break; case 7: month_string = "Jul"; break; case 8: month_string = "Aug"; break; case 9: month_string = "Sep"; break; case 10: month_string = "Oct"; break; case 11: month_string = "Nov"; break; case 12: month_string = "Dec"; break; } if( ( string_index + 12 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } if( month_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing month string.", function ); return( -1 ); } /* Format: mmm dd, yyyy */ utf8_string[ string_index++ ] = (uint8_t) month_string[ 0 ]; utf8_string[ string_index++ ] = (uint8_t) month_string[ 1 ]; utf8_string[ string_index++ ] = (uint8_t) month_string[ 2 ]; utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->day / 10 ); utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->day % 10 ); utf8_string[ string_index++ ] = (uint8_t) ','; utf8_string[ string_index++ ] = (uint8_t) ' '; year_value = date_time_values->year; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) ( year_value / 1000 ); year_value %= 1000; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) ( year_value / 100 ); year_value %= 100; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) ( year_value / 10 ); year_value %= 10; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) year_value; if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 1 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } utf8_string[ string_index++ ] = (uint8_t) ' '; } } else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { if( ( string_index + 10 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } /* Format: yyyy-mm-dd */ year_value = date_time_values->year; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) ( year_value / 1000 ); year_value %= 1000; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) ( year_value / 100 ); year_value %= 100; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) ( year_value / 10 ); year_value %= 10; utf8_string[ string_index++ ] = (uint8_t) '0' + (uint8_t) year_value; utf8_string[ string_index++ ] = (uint8_t) '-'; utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->month / 10 ); utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->month % 10 ); utf8_string[ string_index++ ] = (uint8_t) '-'; utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->day / 10 ); utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->day % 10 ); if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 1 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } utf8_string[ string_index++ ] = (uint8_t) 'T'; } } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 8 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } /* Format: HH:MM:SS */ utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->hours / 10 ); utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->hours % 10 ); utf8_string[ string_index++ ] = (uint8_t) ':'; utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->minutes / 10 ); utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->minutes % 10 ); utf8_string[ string_index++ ] = (uint8_t) ':'; utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->seconds / 10 ); utf8_string[ string_index++ ] = (uint8_t) '0' + ( date_time_values->seconds % 10 ); if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( ( string_index + 4 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } /* Format: .### */ utf8_string[ string_index++ ] = (uint8_t) '.'; milli_seconds = date_time_values->milli_seconds; utf8_string[ string_index + 2 ] = (uint8_t) '0' + (uint8_t) ( milli_seconds % 10 ); milli_seconds /= 10; utf8_string[ string_index + 1 ] = (uint8_t) '0' + (uint8_t) ( milli_seconds % 10 ); milli_seconds /= 10; utf8_string[ string_index ] = (uint8_t) '0' + (uint8_t) ( milli_seconds % 10 ); string_index += 3; } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( ( string_index + 3 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } /* Format: ### */ micro_seconds = date_time_values->micro_seconds; utf8_string[ string_index + 2 ] = (uint8_t) '0' + (uint8_t) ( micro_seconds % 10 ); micro_seconds /= 10; utf8_string[ string_index + 1 ] = (uint8_t) '0' + (uint8_t) ( micro_seconds % 10 ); micro_seconds /= 10; utf8_string[ string_index ] = (uint8_t) '0' + (uint8_t) ( micro_seconds % 10 ); string_index += 3; } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { if( ( string_index + 3 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } /* Format: ### */ nano_seconds = date_time_values->nano_seconds; utf8_string[ string_index + 2 ] = (uint8_t) '0' + (uint8_t) ( nano_seconds % 10 ); nano_seconds /= 10; utf8_string[ string_index + 1 ] = (uint8_t) '0' + (uint8_t) ( nano_seconds % 10 ); nano_seconds /= 10; utf8_string[ string_index ] = (uint8_t) '0' + (uint8_t) ( nano_seconds % 10 ); string_index += 3; } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR ) != 0 ) { if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { if( ( string_index + 4 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) 'U'; utf8_string[ string_index++ ] = (uint8_t) 'T'; utf8_string[ string_index++ ] = (uint8_t) 'C'; } else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { if( ( string_index + 1 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } utf8_string[ string_index++ ] = (uint8_t) 'Z'; } } if( ( string_index + 1 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the date and time values into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful, 0 if the date and time values are not valid or -1 on error */ int libfdatetime_date_time_values_copy_to_utf16_string_with_index( libfdatetime_date_time_values_t *date_time_values, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { char *month_string = NULL; static char *function = "libfdatetime_date_time_values_copy_to_utf16_string_with_index"; size_t string_index = 0; uint32_t string_format_type = 0; uint32_t supported_flags = 0; uint16_t micro_seconds = 0; uint16_t milli_seconds = 0; uint16_t nano_seconds = 0; uint16_t year_value = 0; uint8_t days_in_month = 0; if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } supported_flags = 0x000000ffUL | LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME | LIBFDATETIME_STRING_FORMAT_FLAG_DURATION | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR; if( ( string_format_flags & supported_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_format_type = string_format_flags & 0x000000ffUL; if( ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) && ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format type: 0x%08" PRIx32 ".", function, string_format_type ); return( -1 ); } string_index = *utf16_string_index; /* Validate the date and time if necessary */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { if( date_time_values->year > 9999 ) { return( 0 ); } if( ( date_time_values->month == 0 ) || ( date_time_values->month > 12 ) ) { return( 0 ); } switch( date_time_values->month ) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: days_in_month = 31; break; case 4: case 6: case 9: case 11: days_in_month = 30; break; case 2: if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } break; } if( ( date_time_values->day == 0 ) || ( date_time_values->day > days_in_month ) ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( date_time_values->hours > 23 ) { return( 0 ); } if( date_time_values->minutes > 59 ) { return( 0 ); } if( date_time_values->seconds > 59 ) { return( 0 ); } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->milli_seconds > 999 ) { return( 0 ); } } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->micro_seconds > 999 ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { if( date_time_values->nano_seconds > 999 ) { return( 0 ); } } } /* Create the date and time string */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { switch( date_time_values->month ) { case 1: month_string = "Jan"; break; case 2: month_string = "Feb"; break; case 3: month_string = "Mar"; break; case 4: month_string = "Apr"; break; case 5: month_string = "May"; break; case 6: month_string = "Jun"; break; case 7: month_string = "Jul"; break; case 8: month_string = "Aug"; break; case 9: month_string = "Sep"; break; case 10: month_string = "Oct"; break; case 11: month_string = "Nov"; break; case 12: month_string = "Dec"; break; } if( ( string_index + 12 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } if( month_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing month string.", function ); return( -1 ); } /* Format: mmm dd, yyyy */ utf16_string[ string_index++ ] = (uint16_t) month_string[ 0 ]; utf16_string[ string_index++ ] = (uint16_t) month_string[ 1 ]; utf16_string[ string_index++ ] = (uint16_t) month_string[ 2 ]; utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->day / 10 ); utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->day % 10 ); utf16_string[ string_index++ ] = (uint16_t) ','; utf16_string[ string_index++ ] = (uint16_t) ' '; year_value = date_time_values->year; utf16_string[ string_index++ ] = (uint16_t) '0' + ( year_value / 1000 ); year_value %= 1000; utf16_string[ string_index++ ] = (uint16_t) '0' + ( year_value / 100 ); year_value %= 100; utf16_string[ string_index++ ] = (uint16_t) '0' + ( year_value / 10 ); year_value %= 10; utf16_string[ string_index++ ] = (uint16_t) '0' + year_value; if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 1 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } utf16_string[ string_index++ ] = (uint16_t) ' '; } } else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { if( ( string_index + 10 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } /* Format: yyyy-mm-dd */ year_value = date_time_values->year; utf16_string[ string_index++ ] = (uint16_t) '0' + ( year_value / 1000 ); year_value %= 1000; utf16_string[ string_index++ ] = (uint16_t) '0' + ( year_value / 100 ); year_value %= 100; utf16_string[ string_index++ ] = (uint16_t) '0' + ( year_value / 10 ); year_value %= 10; utf16_string[ string_index++ ] = (uint16_t) '0' + year_value; utf16_string[ string_index++ ] = (uint16_t) '-'; utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->month / 10 ); utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->month % 10 ); utf16_string[ string_index++ ] = (uint16_t) '-'; utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->day / 10 ); utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->day % 10 ); if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 1 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } utf16_string[ string_index++ ] = (uint16_t) 'T'; } } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 8 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } /* Format: HH:MM:SS */ utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->hours / 10 ); utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->hours % 10 ); utf16_string[ string_index++ ] = (uint16_t) ':'; utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->minutes / 10 ); utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->minutes % 10 ); utf16_string[ string_index++ ] = (uint16_t) ':'; utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->seconds / 10 ); utf16_string[ string_index++ ] = (uint16_t) '0' + ( date_time_values->seconds % 10 ); if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( ( string_index + 4 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } /* Format: .### */ utf16_string[ string_index++ ] = (uint16_t) '.'; milli_seconds = date_time_values->milli_seconds; utf16_string[ string_index + 2 ] = (uint16_t) '0' + (uint16_t) ( milli_seconds % 10 ); milli_seconds /= 10; utf16_string[ string_index + 1 ] = (uint16_t) '0' + (uint16_t) ( milli_seconds % 10 ); milli_seconds /= 10; utf16_string[ string_index ] = (uint16_t) '0' + (uint16_t) ( milli_seconds % 10 ); string_index += 3; } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( ( string_index + 3 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } /* Format: ### */ micro_seconds = date_time_values->micro_seconds; utf16_string[ string_index + 2 ] = (uint16_t) '0' + (uint16_t) ( micro_seconds % 10 ); micro_seconds /= 10; utf16_string[ string_index + 1 ] = (uint16_t) '0' + (uint16_t) ( micro_seconds % 10 ); micro_seconds /= 10; utf16_string[ string_index ] = (uint16_t) '0' + (uint16_t) ( micro_seconds % 10 ); string_index += 3; } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { if( ( string_index + 3 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } /* Format: ### */ nano_seconds = date_time_values->nano_seconds; utf16_string[ string_index + 2 ] = (uint16_t) '0' + (uint16_t) ( nano_seconds % 10 ); nano_seconds /= 10; utf16_string[ string_index + 1 ] = (uint16_t) '0' + (uint16_t) ( nano_seconds % 10 ); nano_seconds /= 10; utf16_string[ string_index ] = (uint16_t) '0' + (uint16_t) ( nano_seconds % 10 ); string_index += 3; } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR ) != 0 ) { if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { if( ( string_index + 4 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) 'U'; utf16_string[ string_index++ ] = (uint16_t) 'T'; utf16_string[ string_index++ ] = (uint16_t) 'C'; } else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { if( ( string_index + 1 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } utf16_string[ string_index++ ] = (uint16_t) 'Z'; } } if( ( string_index + 1 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the date and time values into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful, 0 if the date and time values are not valid or -1 on error */ int libfdatetime_date_time_values_copy_to_utf32_string_with_index( libfdatetime_date_time_values_t *date_time_values, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { char *month_string = NULL; static char *function = "libfdatetime_date_time_values_copy_to_utf32_string_with_index"; size_t string_index = 0; uint32_t string_format_type = 0; uint32_t supported_flags = 0; uint16_t micro_seconds = 0; uint16_t milli_seconds = 0; uint16_t nano_seconds = 0; uint16_t year_value = 0; uint8_t days_in_month = 0; if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } supported_flags = 0x000000ffUL | LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME | LIBFDATETIME_STRING_FORMAT_FLAG_DURATION | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS | LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR; if( ( string_format_flags & supported_flags ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format flags: 0x%08" PRIx32 ".", function, string_format_flags ); return( -1 ); } string_format_type = string_format_flags & 0x000000ffUL; if( ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) && ( string_format_type != LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported string format type: 0x%08" PRIx32 ".", function, string_format_type ); return( -1 ); } string_index = *utf32_string_index; /* Validate the date and time if necessary */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { if( date_time_values->year > 9999 ) { return( 0 ); } if( ( date_time_values->month == 0 ) || ( date_time_values->month > 12 ) ) { return( 0 ); } switch( date_time_values->month ) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: days_in_month = 31; break; case 4: case 6: case 9: case 11: days_in_month = 30; break; case 2: if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } break; } if( ( date_time_values->day == 0 ) || ( date_time_values->day > days_in_month ) ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( date_time_values->hours > 23 ) { return( 0 ); } if( date_time_values->minutes > 59 ) { return( 0 ); } if( date_time_values->seconds > 59 ) { return( 0 ); } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->milli_seconds > 999 ) { return( 0 ); } } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( date_time_values->micro_seconds > 999 ) { return( 0 ); } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { if( date_time_values->nano_seconds > 999 ) { return( 0 ); } } } /* Create the date and time string */ if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_DATE ) != 0 ) { if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { switch( date_time_values->month ) { case 1: month_string = "Jan"; break; case 2: month_string = "Feb"; break; case 3: month_string = "Mar"; break; case 4: month_string = "Apr"; break; case 5: month_string = "May"; break; case 6: month_string = "Jun"; break; case 7: month_string = "Jul"; break; case 8: month_string = "Aug"; break; case 9: month_string = "Sep"; break; case 10: month_string = "Oct"; break; case 11: month_string = "Nov"; break; case 12: month_string = "Dec"; break; } if( ( string_index + 12 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } if( month_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing month string.", function ); return( -1 ); } /* Format: mmm dd, yyyy */ utf32_string[ string_index++ ] = (uint32_t) month_string[ 0 ]; utf32_string[ string_index++ ] = (uint32_t) month_string[ 1 ]; utf32_string[ string_index++ ] = (uint32_t) month_string[ 2 ]; utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->day / 10 ); utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->day % 10 ); utf32_string[ string_index++ ] = (uint32_t) ','; utf32_string[ string_index++ ] = (uint32_t) ' '; year_value = date_time_values->year; utf32_string[ string_index++ ] = (uint32_t) '0' + ( year_value / 1000 ); year_value %= 1000; utf32_string[ string_index++ ] = (uint32_t) '0' + ( year_value / 100 ); year_value %= 100; utf32_string[ string_index++ ] = (uint32_t) '0' + ( year_value / 10 ); year_value %= 10; utf32_string[ string_index++ ] = (uint32_t) '0' + year_value; if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 1 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } utf32_string[ string_index++ ] = (uint32_t) ' '; } } else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { if( ( string_index + 10 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } /* Format: yyyy-mm-dd */ year_value = date_time_values->year; utf32_string[ string_index++ ] = (uint32_t) '0' + ( year_value / 1000 ); year_value %= 1000; utf32_string[ string_index++ ] = (uint32_t) '0' + ( year_value / 100 ); year_value %= 100; utf32_string[ string_index++ ] = (uint32_t) '0' + ( year_value / 10 ); year_value %= 10; utf32_string[ string_index++ ] = (uint32_t) '0' + year_value; utf32_string[ string_index++ ] = (uint32_t) '-'; utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->month / 10 ); utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->month % 10 ); utf32_string[ string_index++ ] = (uint32_t) '-'; utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->day / 10 ); utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->day % 10 ); if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 1 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } utf32_string[ string_index++ ] = (uint32_t) 'T'; } } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) != 0 ) { if( ( string_index + 8 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } /* Format: HH:MM:SS */ utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->hours / 10 ); utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->hours % 10 ); utf32_string[ string_index++ ] = (uint32_t) ':'; utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->minutes / 10 ); utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->minutes % 10 ); utf32_string[ string_index++ ] = (uint32_t) ':'; utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->seconds / 10 ); utf32_string[ string_index++ ] = (uint32_t) '0' + ( date_time_values->seconds % 10 ); if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( ( string_index + 4 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } /* Format: .### */ utf32_string[ string_index++ ] = (uint32_t) '.'; milli_seconds = date_time_values->milli_seconds; utf32_string[ string_index + 2 ] = (uint32_t) '0' + (uint32_t) ( milli_seconds % 10 ); milli_seconds /= 10; utf32_string[ string_index + 1 ] = (uint32_t) '0' + (uint32_t) ( milli_seconds % 10 ); milli_seconds /= 10; utf32_string[ string_index ] = (uint32_t) '0' + (uint32_t) ( milli_seconds % 10 ); string_index += 3; } if( ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) != 0 ) || ( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) ) { if( ( string_index + 3 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } /* Format: ### */ micro_seconds = date_time_values->micro_seconds; utf32_string[ string_index + 2 ] = (uint32_t) '0' + (uint32_t) ( micro_seconds % 10 ); micro_seconds /= 10; utf32_string[ string_index + 1 ] = (uint32_t) '0' + (uint32_t) ( micro_seconds % 10 ); micro_seconds /= 10; utf32_string[ string_index ] = (uint32_t) '0' + (uint32_t) ( micro_seconds % 10 ); string_index += 3; } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) != 0 ) { if( ( string_index + 3 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } /* Format: ### */ nano_seconds = date_time_values->nano_seconds; utf32_string[ string_index + 2 ] = (uint32_t) '0' + (uint32_t) ( nano_seconds % 10 ); nano_seconds /= 10; utf32_string[ string_index + 1 ] = (uint32_t) '0' + (uint32_t) ( nano_seconds % 10 ); nano_seconds /= 10; utf32_string[ string_index ] = (uint32_t) '0' + (uint32_t) ( nano_seconds % 10 ); string_index += 3; } } if( ( string_format_flags & LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR ) != 0 ) { if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_CTIME ) { if( ( string_index + 4 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) 'U'; utf32_string[ string_index++ ] = (uint32_t) 'T'; utf32_string[ string_index++ ] = (uint32_t) 'C'; } else if( string_format_type == LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 ) { if( ( string_index + 1 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } utf32_string[ string_index++ ] = (uint32_t) 'Z'; } } if( ( string_index + 1 ) > utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } libfsapfs-20190210/libfdatetime/libfdatetime_floatingtime.h0000664000175000017500000001244013430101217026011 0ustar00lordyestalordyesta00000000000000/* * Floatingtime functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_FLOATINGTIME_H ) #define _LIBFDATETIME_INTERNAL_FLOATINGTIME_H #include #include #include #include "libfdatetime_extern.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_internal_floatingtime libfdatetime_internal_floatingtime_t; /* Contains a 64-bit value containing a floating point where the whole number part represents * the number of days since December 30, 1899 and the fractional part fraction of a day since midnight */ struct libfdatetime_internal_floatingtime { /* The floatingtime floating point */ byte_stream_float64_t timestamp; }; LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_initialize( libfdatetime_floatingtime_t **floatingtime, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_free( libfdatetime_floatingtime_t **floatingtime, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_from_byte_stream( libfdatetime_floatingtime_t *floatingtime, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_from_64bit( libfdatetime_floatingtime_t *floatingtime, uint64_t value_64bit, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_to_64bit( libfdatetime_floatingtime_t *floatingtime, uint64_t *value_64bit, libcerror_error_t **error ); int libfdatetime_internal_floatingtime_copy_to_date_time_values( libfdatetime_internal_floatingtime_t *internal_floatingtime, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_get_string_size( libfdatetime_floatingtime_t *floatingtime, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_floatingtime_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_floatingtime_t *internal_floatingtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_to_utf8_string( libfdatetime_floatingtime_t *floatingtime, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_to_utf8_string_with_index( libfdatetime_floatingtime_t *floatingtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_floatingtime_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_floatingtime_t *internal_floatingtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_to_utf16_string( libfdatetime_floatingtime_t *floatingtime, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_to_utf16_string_with_index( libfdatetime_floatingtime_t *floatingtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_floatingtime_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_floatingtime_t *internal_floatingtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_to_utf32_string( libfdatetime_floatingtime_t *floatingtime, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_floatingtime_copy_to_utf32_string_with_index( libfdatetime_floatingtime_t *floatingtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_FLOATINGTIME_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_libcerror.h0000664000175000017500000000265413430101217025320 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_LIBCERROR_H ) #define _LIBFDATETIME_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBFDATETIME_LIBCERROR_H ) */ libfsapfs-20190210/libfdatetime/Makefile.in0000664000175000017500000010264413430101254022521 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libfdatetime ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libfdatetime_la_LIBADD = am__libfdatetime_la_SOURCES_DIST = libfdatetime_date_time_values.c \ libfdatetime_date_time_values.h libfdatetime_definitions.h \ libfdatetime_extern.h libfdatetime_error.c \ libfdatetime_error.h libfdatetime_fat_date_time.c \ libfdatetime_fat_date_time.h libfdatetime_filetime.c \ libfdatetime_filetime.h libfdatetime_floatingtime.c \ libfdatetime_floatingtime.h libfdatetime_hfs_time.c \ libfdatetime_hfs_time.h libfdatetime_libcerror.h \ libfdatetime_nsf_timedate.c libfdatetime_nsf_timedate.h \ libfdatetime_posix_time.c libfdatetime_posix_time.h \ libfdatetime_support.c libfdatetime_support.h \ libfdatetime_systemtime.c libfdatetime_systemtime.h \ libfdatetime_types.h libfdatetime_unused.h @HAVE_LOCAL_LIBFDATETIME_TRUE@am_libfdatetime_la_OBJECTS = libfdatetime_date_time_values.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_error.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_fat_date_time.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_filetime.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_floatingtime.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_hfs_time.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_nsf_timedate.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_posix_time.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_support.lo \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_systemtime.lo libfdatetime_la_OBJECTS = $(am_libfdatetime_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBFDATETIME_TRUE@am_libfdatetime_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libfdatetime_date_time_values.Plo \ ./$(DEPDIR)/libfdatetime_error.Plo \ ./$(DEPDIR)/libfdatetime_fat_date_time.Plo \ ./$(DEPDIR)/libfdatetime_filetime.Plo \ ./$(DEPDIR)/libfdatetime_floatingtime.Plo \ ./$(DEPDIR)/libfdatetime_hfs_time.Plo \ ./$(DEPDIR)/libfdatetime_nsf_timedate.Plo \ ./$(DEPDIR)/libfdatetime_posix_time.Plo \ ./$(DEPDIR)/libfdatetime_support.Plo \ ./$(DEPDIR)/libfdatetime_systemtime.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libfdatetime_la_SOURCES) DIST_SOURCES = $(am__libfdatetime_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBFDATETIME_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBFDATETIME_TRUE@noinst_LTLIBRARIES = libfdatetime.la @HAVE_LOCAL_LIBFDATETIME_TRUE@libfdatetime_la_SOURCES = \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_date_time_values.c libfdatetime_date_time_values.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_definitions.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_extern.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_error.c libfdatetime_error.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_fat_date_time.c libfdatetime_fat_date_time.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_filetime.c libfdatetime_filetime.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_floatingtime.c libfdatetime_floatingtime.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_hfs_time.c libfdatetime_hfs_time.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_libcerror.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_nsf_timedate.c libfdatetime_nsf_timedate.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_posix_time.c libfdatetime_posix_time.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_support.c libfdatetime_support.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_systemtime.c libfdatetime_systemtime.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_types.h \ @HAVE_LOCAL_LIBFDATETIME_TRUE@ libfdatetime_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfdatetime/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libfdatetime/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libfdatetime.la: $(libfdatetime_la_OBJECTS) $(libfdatetime_la_DEPENDENCIES) $(EXTRA_libfdatetime_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libfdatetime_la_rpath) $(libfdatetime_la_OBJECTS) $(libfdatetime_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_date_time_values.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_fat_date_time.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_filetime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_floatingtime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_hfs_time.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_nsf_timedate.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_posix_time.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdatetime_systemtime.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfdatetime_date_time_values.Plo -rm -f ./$(DEPDIR)/libfdatetime_error.Plo -rm -f ./$(DEPDIR)/libfdatetime_fat_date_time.Plo -rm -f ./$(DEPDIR)/libfdatetime_filetime.Plo -rm -f ./$(DEPDIR)/libfdatetime_floatingtime.Plo -rm -f ./$(DEPDIR)/libfdatetime_hfs_time.Plo -rm -f ./$(DEPDIR)/libfdatetime_nsf_timedate.Plo -rm -f ./$(DEPDIR)/libfdatetime_posix_time.Plo -rm -f ./$(DEPDIR)/libfdatetime_support.Plo -rm -f ./$(DEPDIR)/libfdatetime_systemtime.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfdatetime ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfdatetime_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libfdatetime/libfdatetime_nsf_timedate.c0000664000175000017500000010306213430101217025765 0ustar00lordyestalordyesta00000000000000/* * Notes Storage Facility (NSF) timedate functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_nsf_timedate.h" #include "libfdatetime_types.h" /* Creates a NSF timedate * Make sure the value nsf_timedate is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_initialize( libfdatetime_nsf_timedate_t **nsf_timedate, libcerror_error_t **error ) { libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_initialize"; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } if( *nsf_timedate != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid NSF timedate value already set.", function ); return( -1 ); } internal_nsf_timedate = memory_allocate_structure( libfdatetime_internal_nsf_timedate_t ); if( internal_nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create NSF timedate.", function ); goto on_error; } if( memory_set( internal_nsf_timedate, 0, sizeof( libfdatetime_internal_nsf_timedate_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear NSF timedate.", function ); goto on_error; } *nsf_timedate = (libfdatetime_nsf_timedate_t *) internal_nsf_timedate; return( 1 ); on_error: if( internal_nsf_timedate != NULL ) { memory_free( internal_nsf_timedate ); } return( -1 ); } /* Frees a NSF timedate * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_free( libfdatetime_nsf_timedate_t **nsf_timedate, libcerror_error_t **error ) { libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_free"; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } if( *nsf_timedate != NULL ) { internal_nsf_timedate = (libfdatetime_internal_nsf_timedate_t *) *nsf_timedate; *nsf_timedate = NULL; memory_free( internal_nsf_timedate ); } return( 1 ); } /* Converts a byte stream into a NSF timedate * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_from_byte_stream( libfdatetime_nsf_timedate_t *nsf_timedate, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_copy_from_byte_stream"; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } internal_nsf_timedate = (libfdatetime_internal_nsf_timedate_t *) nsf_timedate; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size < 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFDATETIME_ENDIAN_BIG ) && ( byte_order != LIBFDATETIME_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint32_little_endian( byte_stream, internal_nsf_timedate->lower ); byte_stream += 4; byte_stream_copy_to_uint32_little_endian( byte_stream, internal_nsf_timedate->upper ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint32_big_endian( byte_stream, internal_nsf_timedate->upper ); byte_stream += 4; byte_stream_copy_to_uint32_big_endian( byte_stream, internal_nsf_timedate->lower ); } return( 1 ); } /* Converts a 64-bit value into a NSF timedate * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_from_64bit( libfdatetime_nsf_timedate_t *nsf_timedate, uint64_t value_64bit, libcerror_error_t **error ) { libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_copy_from_64bit"; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } internal_nsf_timedate = (libfdatetime_internal_nsf_timedate_t *) nsf_timedate; internal_nsf_timedate->upper = value_64bit >> 32; internal_nsf_timedate->lower = value_64bit & 0xffffffffUL; return( 1 ); } /* Converts a NSF timedate into a 64-bit value * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_to_64bit( libfdatetime_nsf_timedate_t *nsf_timedate, uint64_t *value_64bit, libcerror_error_t **error ) { libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_copy_to_64bit"; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } internal_nsf_timedate = (libfdatetime_internal_nsf_timedate_t *) nsf_timedate; if( value_64bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 64-bit value.", function ); return( -1 ); } *value_64bit = internal_nsf_timedate->upper; *value_64bit <<= 32; *value_64bit |= internal_nsf_timedate->lower; return( 1 ); } /* Converts a NSF timedate into date time values * Returns 1 if successful or -1 on error */ int libfdatetime_internal_nsf_timedate_copy_to_date_time_values( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_nsf_timedate_copy_to_date_time_values"; uint32_t nsf_julian_day = 0; uint32_t nsf_time = 0; uint32_t number_of_years = 0; uint32_t number_of_months = 0; uint32_t julian_quad_cycles = 0; uint32_t gregorian_cent_cycles = 0; uint32_t gregorian_quad_cycles = 0; uint32_t roman_annual_cycles = 0; if( internal_nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } /* TODO what about dates before 1582 ? */ /* Retrieve the Julian day value which is stored in the 24 LSB of the upper value * the NSF Julian day starts with January 1, 4713 BC 00:00 UTC * instead of January 1, 4713 BC 12:00 UTC */ nsf_julian_day = internal_nsf_timedate->upper & 0x00ffffffUL; /* Shift the epoch back to March 1, 4800 BC 00:00 * This is the beginning of the Gregorian quadricentennial * which is 32044 days before the Julian period */ nsf_julian_day += 32044; /* Determine the number of Gregorian quadricentennial cycles * 1 cycle consists of 146097 days */ gregorian_quad_cycles = nsf_julian_day / 146097; nsf_julian_day %= 146097; /* Determine the number of Gregorian centennial cycles * 1 cycle consists of 36524 days * Correct for leap years per cycle, either 3 or 4 */ gregorian_cent_cycles = ( ( ( nsf_julian_day / 36524 ) + 1 ) * 3 ) / 4; nsf_julian_day -= gregorian_cent_cycles * 36524; /* Determine the number of Julian quadrennial cycles * 1 cycle consists of 1461 days per 4 year */ julian_quad_cycles = nsf_julian_day / 1461; nsf_julian_day %= 1461; /* Determine the number of Roman annual cycles * 1 cycle consists of 365 days * Correct for leap years per cycle, either 3 or 4 */ roman_annual_cycles = ( ( ( nsf_julian_day / 365 ) + 1 ) * 3 ) / 4; /* The number of days remaining in the current Julian year */ nsf_julian_day -= roman_annual_cycles * 365; /* Determine the number of years since March 1, 4801 BC */ number_of_years = ( gregorian_quad_cycles * 400 ) + ( gregorian_cent_cycles * 100 ) + ( julian_quad_cycles * 4 ) + roman_annual_cycles; /* Determine the number of months since March */ number_of_months = ( ( ( nsf_julian_day * 5 ) + 308 ) / 153 ) - 2; /* Determine the number of days since the 1st of the month */ nsf_julian_day -= ( ( ( number_of_months + 4 ) * 153 ) / 5 ); nsf_julian_day += 122; /* Determine the year */ date_time_values->year = (uint16_t) ( number_of_years - 4800 + ( ( number_of_months + 2 ) / 12 ) ); if( date_time_values->year > 9999 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid NSF timedate - year value out of bounds.", function ); return( -1 ); } /* Determine the month */ date_time_values->month = ( ( number_of_months + 2 ) % 12 ) + 1; /* Determine the day of the month */ date_time_values->day = (uint8_t) ( nsf_julian_day + 1 ); /* Retrieve the number of seconds from the lower part of the NFS timedate */ nsf_time = internal_nsf_timedate->lower; /* The timestamp is in units of 10 milli seconds correct the value to seconds */ date_time_values->nano_seconds = 0; date_time_values->micro_seconds = 0; date_time_values->milli_seconds = ( nsf_time % 100 ) * 10; nsf_time /= 100; /* There are 60 seconds in a minute correct the value to minutes */ date_time_values->seconds = nsf_time % 60; nsf_time /= 60; /* There are 60 minutes in an hour correct the value to hours */ date_time_values->minutes = nsf_time % 60; nsf_time /= 60; /* There are 24 hours in a day correct the value to days */ if( nsf_time >= 24 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported number of hours: %d.", function, nsf_time ); return( -1 ); } date_time_values->hours = (uint8_t) nsf_time; /* TODO day light savings and timezone */ return( 1 ); } /* Deterimes the size of the string for the NSF timedate * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_get_string_size( libfdatetime_nsf_timedate_t *nsf_timedate, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; static char *function = "libfdatetime_nsf_timedate_get_string_size"; int result = 0; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } result = libfdatetime_internal_nsf_timedate_copy_to_date_time_values( (libfdatetime_internal_nsf_timedate_t *) nsf_timedate, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_get_string_size( &date_time_values, string_size, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to get string size.", function ); return( -1 ); } } if( result != 1 ) { /* Make sure the string can hold the hexadecimal representation of the NSF timedate */ *string_size = 24; } return( 1 ); } /* Converts the NSF timedate into an UTF-8 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_nsf_timedate_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_nsf_timedate_copy_to_utf8_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( ( utf8_string_size < 24 ) || ( *utf8_string_index > ( utf8_string_size - 24 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } string_index = *utf8_string_index; utf8_string[ string_index++ ] = (uint8_t) '('; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 28; do { byte_value = ( internal_nsf_timedate->upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 28; do { byte_value = ( internal_nsf_timedate->lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ')'; utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the NSF timedate into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_to_utf8_string( libfdatetime_nsf_timedate_t *nsf_timedate, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_nsf_timedate_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfdatetime_nsf_timedate_copy_to_utf8_string_with_index( nsf_timedate, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy NSF timedate to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Converts the NSF timedate into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_to_utf8_string_with_index( libfdatetime_nsf_timedate_t *nsf_timedate, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_copy_to_utf8_string_with_index"; int result = 0; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } internal_nsf_timedate = (libfdatetime_internal_nsf_timedate_t *) nsf_timedate; result = libfdatetime_internal_nsf_timedate_copy_to_date_time_values( internal_nsf_timedate, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf8_string_with_index( &date_time_values, utf8_string, utf8_string_size, utf8_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-8 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_nsf_timedate_copy_to_utf8_string_in_hexadecimal( internal_nsf_timedate, utf8_string, utf8_string_size, utf8_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to NSF timedate to hexadecimal UTF-8 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the NSF timedate into an UTF-16 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_nsf_timedate_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_nsf_timedate_copy_to_utf16_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( utf16_string_size < 24 ) || ( *utf16_string_index > ( utf16_string_size - 24 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } string_index = *utf16_string_index; utf16_string[ string_index++ ] = (uint16_t) '('; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 28; do { byte_value = ( internal_nsf_timedate->upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 28; do { byte_value = ( internal_nsf_timedate->lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ')'; utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the NSF timedate into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_to_utf16_string( libfdatetime_nsf_timedate_t *nsf_timedate, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_nsf_timedate_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfdatetime_nsf_timedate_copy_to_utf16_string_with_index( nsf_timedate, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy NSF timedate to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Converts the NSF timedate into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_to_utf16_string_with_index( libfdatetime_nsf_timedate_t *nsf_timedate, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_copy_to_utf16_string_with_index"; int result = 0; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } internal_nsf_timedate = (libfdatetime_internal_nsf_timedate_t *) nsf_timedate; result = libfdatetime_internal_nsf_timedate_copy_to_date_time_values( internal_nsf_timedate, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf16_string_with_index( &date_time_values, utf16_string, utf16_string_size, utf16_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_nsf_timedate_copy_to_utf16_string_in_hexadecimal( internal_nsf_timedate, utf16_string, utf16_string_size, utf16_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to NSF timedate to hexadecimal UTF-16 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the NSF timedate into an UTF-32 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_nsf_timedate_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_nsf_timedate_copy_to_utf32_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( ( utf32_string_size < 24 ) || ( *utf32_string_index > ( utf32_string_size - 24 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } string_index = *utf32_string_index; utf32_string[ string_index++ ] = (uint32_t) '('; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 28; do { byte_value = ( internal_nsf_timedate->upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 28; do { byte_value = ( internal_nsf_timedate->lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ')'; utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } /* Converts the NSF timedate into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_to_utf32_string( libfdatetime_nsf_timedate_t *nsf_timedate, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_nsf_timedate_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfdatetime_nsf_timedate_copy_to_utf32_string_with_index( nsf_timedate, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy NSF timedate to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Converts the NSF timedate into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_nsf_timedate_copy_to_utf32_string_with_index( libfdatetime_nsf_timedate_t *nsf_timedate, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate = NULL; static char *function = "libfdatetime_nsf_timedate_copy_to_utf32_string_with_index"; int result = 0; if( nsf_timedate == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid NSF timedate.", function ); return( -1 ); } internal_nsf_timedate = (libfdatetime_internal_nsf_timedate_t *) nsf_timedate; result = libfdatetime_internal_nsf_timedate_copy_to_date_time_values( internal_nsf_timedate, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf32_string_with_index( &date_time_values, utf32_string, utf32_string_size, utf32_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: unable to copy date time values to UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_nsf_timedate_copy_to_utf32_string_in_hexadecimal( internal_nsf_timedate, utf32_string, utf32_string_size, utf32_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to NSF timedate to hexadecimal UTF-32 string.", function ); return( -1 ); } } return( 1 ); } libfsapfs-20190210/libfdatetime/libfdatetime_date_time_values.h0000664000175000017500000000607513430101217026650 0ustar00lordyestalordyesta00000000000000/* * Date and time values functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_DATE_TIME_VALUES_H ) #define _LIBFDATETIME_DATE_TIME_VALUES_H #include #include #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_date_time_values libfdatetime_date_time_values_t; struct libfdatetime_date_time_values { /* The year */ uint16_t year; /* The month * 1 represents January */ uint8_t month; /* The day of the month */ uint8_t day; /* The number of hours in 24 hour format * E.g. 13 represents 1 PM */ uint8_t hours; /* The number of minutes */ uint8_t minutes; /* The number of seconds */ uint8_t seconds; /* The number of milli seconds */ uint16_t milli_seconds; /* The number of micro seconds */ uint16_t micro_seconds; /* The number of nano seconds */ uint16_t nano_seconds; }; int libfdatetime_date_time_values_initialize( libfdatetime_date_time_values_t **date_time_values, libcerror_error_t **error ); int libfdatetime_date_time_values_free( libfdatetime_date_time_values_t **date_time_values, libcerror_error_t **error ); int libfdatetime_date_time_values_get_string_size( libfdatetime_date_time_values_t *date_time_values, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_date_time_values_copy_to_utf8_string_with_index( libfdatetime_date_time_values_t *date_time_values, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_date_time_values_copy_to_utf16_string_with_index( libfdatetime_date_time_values_t *date_time_values, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_date_time_values_copy_to_utf32_string_with_index( libfdatetime_date_time_values_t *date_time_values, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_DATE_TIME_VALUES_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_hfs_time.c0000664000175000017500000007604013430101217025126 0ustar00lordyestalordyesta00000000000000/* * HFS time functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_hfs_time.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" /* Creates a HFS time * Make sure the value hfs_time is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_initialize( libfdatetime_hfs_time_t **hfs_time, libcerror_error_t **error ) { libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_initialize"; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } if( *hfs_time != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid HFS time value already set.", function ); return( -1 ); } internal_hfs_time = memory_allocate_structure( libfdatetime_internal_hfs_time_t ); if( internal_hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create HFS time.", function ); goto on_error; } if( memory_set( internal_hfs_time, 0, sizeof( libfdatetime_internal_hfs_time_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear HFS time.", function ); goto on_error; } *hfs_time = (libfdatetime_hfs_time_t *) internal_hfs_time; return( 1 ); on_error: if( internal_hfs_time != NULL ) { memory_free( internal_hfs_time ); } return( -1 ); } /* Frees a HFS time * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_free( libfdatetime_hfs_time_t **hfs_time, libcerror_error_t **error ) { libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_free"; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } if( *hfs_time != NULL ) { internal_hfs_time = (libfdatetime_internal_hfs_time_t *) *hfs_time; *hfs_time = NULL; memory_free( internal_hfs_time ); } return( 1 ); } /* Converts a byte stream into a HFS time * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_from_byte_stream( libfdatetime_hfs_time_t *hfs_time, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_copy_from_byte_stream"; uint32_t value_32bit = 0; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } internal_hfs_time = (libfdatetime_internal_hfs_time_t *) hfs_time; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFDATETIME_ENDIAN_BIG ) && ( byte_order != LIBFDATETIME_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_stream_size < 4 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint32_little_endian( byte_stream, value_32bit ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint32_big_endian( byte_stream, value_32bit ); } internal_hfs_time->timestamp = value_32bit; return( 1 ); } /* Converts a 32-bit value into a HFS time * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_from_32bit( libfdatetime_hfs_time_t *hfs_time, uint32_t value_32bit, libcerror_error_t **error ) { libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_copy_from_32bit"; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } internal_hfs_time = (libfdatetime_internal_hfs_time_t *) hfs_time; internal_hfs_time->timestamp = value_32bit; return( 1 ); } /* Converts a HFS time into a 32-bit value * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_to_32bit( libfdatetime_hfs_time_t *hfs_time, uint32_t *value_32bit, libcerror_error_t **error ) { libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_copy_to_32bit"; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } internal_hfs_time = (libfdatetime_internal_hfs_time_t *) hfs_time; if( value_32bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 32-bit value.", function ); return( -1 ); } *value_32bit = internal_hfs_time->timestamp; return( 1 ); } /* Converts a HFS time into date time values * Returns 1 if successful or -1 on error */ int libfdatetime_internal_hfs_time_copy_to_date_time_values( libfdatetime_internal_hfs_time_t *internal_hfs_time, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_hfs_time_copy_to_date_time_values"; uint32_t hfs_timestamp = 0; uint16_t days_in_year = 0; uint8_t days_in_month = 0; if( internal_hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } hfs_timestamp = internal_hfs_time->timestamp; date_time_values->micro_seconds = 0; date_time_values->milli_seconds = 0; date_time_values->nano_seconds = 0; /* There are 60 seconds in a minute correct the value to minutes */ date_time_values->seconds = hfs_timestamp % 60; hfs_timestamp /= 60; /* There are 60 minutes in an hour correct the value to hours */ date_time_values->minutes = hfs_timestamp % 60; hfs_timestamp /= 60; /* There are 24 hours in a day correct the value to days */ date_time_values->hours = hfs_timestamp % 24; hfs_timestamp /= 24; /* Determine the number of years starting at 'Jan 1, 1904 00:00:00' * correct the value to days within the year */ /* Add 1 day to compensate that Jan 1, 1904 is represented as 0 */ hfs_timestamp += 1; date_time_values->year = 1904; if( hfs_timestamp >= 35064 ) { date_time_values->year = 2000; hfs_timestamp -= 35064; } while( hfs_timestamp > 0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( hfs_timestamp <= days_in_year ) { break; } hfs_timestamp -= days_in_year; date_time_values->year += 1; } /* Determine the month correct the value to days within the month */ date_time_values->month = 1; do { /* February (2) */ if( date_time_values->month == 2 ) { if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( date_time_values->month == 4 ) || ( date_time_values->month == 6 ) || ( date_time_values->month == 9 ) || ( date_time_values->month == 11 ) ) { days_in_month = 30; } /* January (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( date_time_values->month == 1 ) || ( date_time_values->month == 3 ) || ( date_time_values->month == 5 ) || ( date_time_values->month == 7 ) || ( date_time_values->month == 8 ) || ( date_time_values->month == 10 ) || ( date_time_values->month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported month: %d.", function, date_time_values->month ); return( -1 ); } if( hfs_timestamp <= days_in_month ) { break; } hfs_timestamp -= days_in_month; date_time_values->month += 1; } while( hfs_timestamp > 0 ); /* Determine the day */ date_time_values->day = (uint8_t) hfs_timestamp; return( 1 ); } /* Deterimes the size of the string for the HFS time * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_get_string_size( libfdatetime_hfs_time_t *hfs_time, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; static char *function = "libfdatetime_hfs_time_get_string_size"; int result = 0; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } result = libfdatetime_internal_hfs_time_copy_to_date_time_values( (libfdatetime_internal_hfs_time_t *) hfs_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_get_string_size( &date_time_values, string_size, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to get string size.", function ); return( -1 ); } } if( result != 1 ) { /* Make sure the string can hold the hexadecimal representation of the HFS time */ *string_size = 13; } return( 1 ); } /* Converts the HFS time into an UTF-8 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_hfs_time_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_hfs_time_t *internal_hfs_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_hfs_time_copy_to_utf8_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( ( utf8_string_size < 13 ) || ( *utf8_string_index > ( utf8_string_size - 13 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } string_index = *utf8_string_index; utf8_string[ string_index++ ] = (uint8_t) '('; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 28; do { byte_value = ( internal_hfs_time->timestamp >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ')'; utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the HFS time into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_to_utf8_string( libfdatetime_hfs_time_t *hfs_time, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_hfs_time_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfdatetime_hfs_time_copy_to_utf8_string_with_index( hfs_time, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy HFS time to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Converts the HFS time into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_to_utf8_string_with_index( libfdatetime_hfs_time_t *hfs_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_copy_to_utf8_string_with_index"; int result = 0; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } internal_hfs_time = (libfdatetime_internal_hfs_time_t *) hfs_time; result = libfdatetime_internal_hfs_time_copy_to_date_time_values( internal_hfs_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf8_string_with_index( &date_time_values, utf8_string, utf8_string_size, utf8_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-8 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_hfs_time_copy_to_utf8_string_in_hexadecimal( internal_hfs_time, utf8_string, utf8_string_size, utf8_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to HFS time to hexadecimal UTF-8 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the HFS time into an UTF-16 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_hfs_time_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_hfs_time_t *internal_hfs_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_hfs_time_copy_to_utf16_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( utf16_string_size < 13 ) || ( *utf16_string_index > ( utf16_string_size - 13 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } string_index = *utf16_string_index; utf16_string[ string_index++ ] = (uint16_t) '('; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 28; do { byte_value = ( internal_hfs_time->timestamp >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ')'; utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the HFS time into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_to_utf16_string( libfdatetime_hfs_time_t *hfs_time, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_hfs_time_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfdatetime_hfs_time_copy_to_utf16_string_with_index( hfs_time, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy HFS time to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Converts the HFS time into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_to_utf16_string_with_index( libfdatetime_hfs_time_t *hfs_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_copy_to_utf16_string_with_index"; int result = 0; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } internal_hfs_time = (libfdatetime_internal_hfs_time_t *) hfs_time; result = libfdatetime_internal_hfs_time_copy_to_date_time_values( internal_hfs_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf16_string_with_index( &date_time_values, utf16_string, utf16_string_size, utf16_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( *utf16_string_index + 13 ) > utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: unable to copy date time values to UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_hfs_time_copy_to_utf16_string_in_hexadecimal( internal_hfs_time, utf16_string, utf16_string_size, utf16_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to HFS time to hexadecimal UTF-16 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the HFS time into an UTF-32 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_hfs_time_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_hfs_time_t *internal_hfs_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_hfs_time_copy_to_utf32_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( ( utf32_string_size < 13 ) || ( *utf32_string_index > ( utf32_string_size - 13 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } string_index = *utf32_string_index; utf32_string[ string_index++ ] = (uint32_t) '('; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 28; do { byte_value = ( internal_hfs_time->timestamp >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ')'; utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } /* Converts the HFS time into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_to_utf32_string( libfdatetime_hfs_time_t *hfs_time, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_hfs_time_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfdatetime_hfs_time_copy_to_utf32_string_with_index( hfs_time, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy HFS time to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Converts the HFS time into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_hfs_time_copy_to_utf32_string_with_index( libfdatetime_hfs_time_t *hfs_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_hfs_time_t *internal_hfs_time = NULL; static char *function = "libfdatetime_hfs_time_copy_to_utf32_string_with_index"; int result = 0; if( hfs_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid HFS time.", function ); return( -1 ); } internal_hfs_time = (libfdatetime_internal_hfs_time_t *) hfs_time; result = libfdatetime_internal_hfs_time_copy_to_date_time_values( internal_hfs_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf32_string_with_index( &date_time_values, utf32_string, utf32_string_size, utf32_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_hfs_time_copy_to_utf32_string_in_hexadecimal( internal_hfs_time, utf32_string, utf32_string_size, utf32_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to HFS time to hexadecimal UTF-32 string.", function ); return( -1 ); } } return( 1 ); } libfsapfs-20190210/libfdatetime/libfdatetime_posix_time.h0000664000175000017500000001321513430101217025510 0ustar00lordyestalordyesta00000000000000/* * POSIX time functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_POSIX_TIME_H ) #define _LIBFDATETIME_INTERNAL_POSIX_TIME_H #include #include #include "libfdatetime_extern.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_internal_posix_time libfdatetime_internal_posix_time_t; /* Contains a value representing the number of seconds since January 1, 1970 (UTC) * Normally this value is a 32-bit signed integer where negative numbers predate * the epoch, but different variations exists */ struct libfdatetime_internal_posix_time { /* The timestamp */ uint64_t timestamp; /* The value type */ uint8_t value_type; }; LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_initialize( libfdatetime_posix_time_t **posix_time, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_free( libfdatetime_posix_time_t **posix_time, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_from_byte_stream( libfdatetime_posix_time_t *posix_time, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, uint8_t value_type, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_from_32bit( libfdatetime_posix_time_t *posix_time, uint32_t value_32bit, uint8_t value_type, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_32bit( libfdatetime_posix_time_t *posix_time, uint32_t *value_32bit, uint8_t *value_type, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_from_64bit( libfdatetime_posix_time_t *posix_time, uint64_t value_64bit, uint8_t value_type, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_64bit( libfdatetime_posix_time_t *posix_time, uint64_t *value_64bit, uint8_t *value_type, libcerror_error_t **error ); int libfdatetime_internal_posix_time_copy_to_date_time_values( libfdatetime_internal_posix_time_t *internal_posix_time, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_get_string_size( libfdatetime_posix_time_t *posix_time, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_posix_time_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_posix_time_t *internal_posix_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_utf8_string( libfdatetime_posix_time_t *posix_time, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_utf8_string_with_index( libfdatetime_posix_time_t *posix_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_posix_time_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_posix_time_t *internal_posix_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_utf16_string( libfdatetime_posix_time_t *posix_time, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_utf16_string_with_index( libfdatetime_posix_time_t *posix_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_posix_time_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_posix_time_t *internal_posix_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_utf32_string( libfdatetime_posix_time_t *posix_time, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_posix_time_copy_to_utf32_string_with_index( libfdatetime_posix_time_t *posix_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_POSIX_TIME_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_fat_date_time.c0000664000175000017500000007601413430101217026116 0ustar00lordyestalordyesta00000000000000/* * FAT date and time functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_fat_date_time.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" /* Creates a FAT date and time * Make sure the value fat_date_time is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_initialize( libfdatetime_fat_date_time_t **fat_date_time, libcerror_error_t **error ) { libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_initialize"; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } if( *fat_date_time != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid FAT date time value already set.", function ); return( -1 ); } internal_fat_date_time = memory_allocate_structure( libfdatetime_internal_fat_date_time_t ); if( internal_fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create FAT date time.", function ); goto on_error; } if( memory_set( internal_fat_date_time, 0, sizeof( libfdatetime_internal_fat_date_time_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear FAT date time.", function ); goto on_error; } *fat_date_time = (libfdatetime_fat_date_time_t *) internal_fat_date_time; return( 1 ); on_error: if( internal_fat_date_time != NULL ) { memory_free( internal_fat_date_time ); } return( -1 ); } /* Frees a FAT date and time * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_free( libfdatetime_fat_date_time_t **fat_date_time, libcerror_error_t **error ) { libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_free"; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } if( *fat_date_time != NULL ) { internal_fat_date_time = (libfdatetime_internal_fat_date_time_t *) *fat_date_time; *fat_date_time = NULL; memory_free( internal_fat_date_time ); } return( 1 ); } /* Converts a byte stream into a FAT date and time * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_from_byte_stream( libfdatetime_fat_date_time_t *fat_date_time, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_copy_from_byte_stream"; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } internal_fat_date_time = (libfdatetime_internal_fat_date_time_t *) fat_date_time; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size < 4 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFDATETIME_ENDIAN_BIG ) && ( byte_order != LIBFDATETIME_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint16_little_endian( byte_stream, internal_fat_date_time->date ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_fat_date_time->time ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint16_big_endian( byte_stream, internal_fat_date_time->date ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_fat_date_time->time ); } return( 1 ); } /* Converts a 32-bit value into a FAT date and time * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_from_32bit( libfdatetime_fat_date_time_t *fat_date_time, uint32_t value_32bit, libcerror_error_t **error ) { libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_copy_from_32bit"; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } internal_fat_date_time = (libfdatetime_internal_fat_date_time_t *) fat_date_time; internal_fat_date_time->date = (uint16_t) ( value_32bit & 0x0ffffL ); internal_fat_date_time->time = (uint16_t) ( value_32bit >> 16 ); return( 1 ); } /* Converts a FAT date and time into a 32-bit value * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_to_32bit( libfdatetime_fat_date_time_t *fat_date_time, uint32_t *value_32bit, libcerror_error_t **error ) { libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_copy_to_32bit"; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } internal_fat_date_time = (libfdatetime_internal_fat_date_time_t *) fat_date_time; if( value_32bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 32-bit value.", function ); return( -1 ); } *value_32bit = internal_fat_date_time->time; *value_32bit <<= 16; *value_32bit |= internal_fat_date_time->date; return( 1 ); } /* Converts a FAT date and time into date time values * Returns 1 if successful or -1 on error */ int libfdatetime_internal_fat_date_time_copy_to_date_time_values( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_fat_date_time_copy_to_date_time_values"; if( internal_fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } /* The year value is stored in bits 9 - 15 of the date (7 bits) * A year value of 0 represents 1980 */ date_time_values->year = (uint16_t) ( 1980 + ( ( internal_fat_date_time->date >> 9 ) & 0x7f ) ); /* The month value is stored in bits 5 - 8 of the date (4 bits) * A month value of 1 represents January */ date_time_values->month = (uint8_t) ( ( internal_fat_date_time->date >> 5 ) & 0x0f ); /* The day value is stored in bits 0 - 4 of the date (5 bits) */ date_time_values->day = (uint8_t) ( internal_fat_date_time->date & 0x1f ); /* The hours value is stored in bits 11 - 15 of the time (5 bits) */ date_time_values->hours = (uint8_t) ( ( internal_fat_date_time->time >> 11 ) & 0x1f ); /* The minutes value is stored in bits 5 - 10 of the time (6 bits) */ date_time_values->minutes = (uint8_t) ( ( internal_fat_date_time->time >> 5 ) & 0x3f ); /* The seconds value is stored in bits 0 - 4 of the time (5 bits) * The seconds are stored as 2 second intervals */ date_time_values->seconds = (uint8_t) ( internal_fat_date_time->time & 0x1f ) * 2; date_time_values->milli_seconds = 0; date_time_values->micro_seconds = 0; date_time_values->nano_seconds = 0; return( 1 ); } /* Deterimes the size of the string for the FAT date time * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_get_string_size( libfdatetime_fat_date_time_t *fat_date_time, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; static char *function = "libfdatetime_fat_date_time_get_string_size"; int result = 0; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } result = libfdatetime_internal_fat_date_time_copy_to_date_time_values( (libfdatetime_internal_fat_date_time_t *) fat_date_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_get_string_size( &date_time_values, string_size, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to get string size.", function ); return( -1 ); } } if( result != 1 ) { /* Make sure the string can hold the hexadecimal representation of the FAT date time */ *string_size = 16; } return( 1 ); } /* Converts the FAT date and time into an UTF-8 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_fat_date_time_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_fat_date_time_copy_to_utf8_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( ( utf8_string_size < 16 ) || ( *utf8_string_index > ( utf8_string_size - 16 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } string_index = *utf8_string_index; utf8_string[ string_index++ ] = (uint8_t) '('; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 12; do { byte_value = ( internal_fat_date_time->date >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 12; do { byte_value = ( internal_fat_date_time->time >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ')'; utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the FAT date and time into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_to_utf8_string( libfdatetime_fat_date_time_t *fat_date_time, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_fat_date_time_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfdatetime_fat_date_time_copy_to_utf8_string_with_index( fat_date_time, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy FAT date time to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Converts the FAT date and time into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_to_utf8_string_with_index( libfdatetime_fat_date_time_t *fat_date_time, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_copy_to_utf8_string_with_index"; int result = 0; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } internal_fat_date_time = (libfdatetime_internal_fat_date_time_t *) fat_date_time; result = libfdatetime_internal_fat_date_time_copy_to_date_time_values( internal_fat_date_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf8_string_with_index( &date_time_values, utf8_string, utf8_string_size, utf8_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-8 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_fat_date_time_copy_to_utf8_string_in_hexadecimal( internal_fat_date_time, utf8_string, utf8_string_size, utf8_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to FAT date time values to hexadecimal UTF-8 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the FAT date and time into an UTF-16 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_fat_date_time_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_fat_date_time_copy_to_utf16_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( utf16_string_size < 16 ) || ( *utf16_string_index > ( utf16_string_size - 16 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } string_index = *utf16_string_index; utf16_string[ string_index++ ] = (uint16_t) '('; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 12; do { byte_value = ( internal_fat_date_time->date >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 12; do { byte_value = ( internal_fat_date_time->time >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ')'; utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the FAT date and time into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_to_utf16_string( libfdatetime_fat_date_time_t *fat_date_time, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_fat_date_time_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfdatetime_fat_date_time_copy_to_utf16_string_with_index( fat_date_time, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy FAT date time to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Converts the FAT date and time into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_to_utf16_string_with_index( libfdatetime_fat_date_time_t *fat_date_time, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_copy_to_utf16_string_with_index"; int result = 0; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } internal_fat_date_time = (libfdatetime_internal_fat_date_time_t *) fat_date_time; result = libfdatetime_internal_fat_date_time_copy_to_date_time_values( (libfdatetime_internal_fat_date_time_t *) fat_date_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf16_string_with_index( &date_time_values, utf16_string, utf16_string_size, utf16_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_fat_date_time_copy_to_utf16_string_in_hexadecimal( internal_fat_date_time, utf16_string, utf16_string_size, utf16_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to FAT date time values to hexadecimal UTF-16 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the FAT date and time into an UTF-32 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_fat_date_time_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_fat_date_time_t *internal_fat_date_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_fat_date_time_copy_to_utf32_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( ( utf32_string_size < 16 ) || ( *utf32_string_index > ( utf32_string_size - 16 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } string_index = *utf32_string_index; utf32_string[ string_index++ ] = (uint32_t) '('; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 12; do { byte_value = ( internal_fat_date_time->date >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 12; do { byte_value = ( internal_fat_date_time->time >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ')'; utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } /* Converts the FAT date and time into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_to_utf32_string( libfdatetime_fat_date_time_t *fat_date_time, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_fat_date_time_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfdatetime_fat_date_time_copy_to_utf32_string_with_index( fat_date_time, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy FAT date time to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Converts the FAT date and time into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_fat_date_time_copy_to_utf32_string_with_index( libfdatetime_fat_date_time_t *fat_date_time, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_fat_date_time_t *internal_fat_date_time = NULL; static char *function = "libfdatetime_fat_date_time_copy_to_utf32_string_with_index"; int result = 0; if( fat_date_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FAT date time.", function ); return( -1 ); } internal_fat_date_time = (libfdatetime_internal_fat_date_time_t *) fat_date_time; result = libfdatetime_internal_fat_date_time_copy_to_date_time_values( (libfdatetime_internal_fat_date_time_t *) fat_date_time, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf32_string_with_index( &date_time_values, utf32_string, utf32_string_size, utf32_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_fat_date_time_copy_to_utf32_string_in_hexadecimal( internal_fat_date_time, utf32_string, utf32_string_size, utf32_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to FAT date time values to hexadecimal UTF-32 string.", function ); return( -1 ); } } return( 1 ); } libfsapfs-20190210/libfdatetime/libfdatetime_nsf_timedate.h0000664000175000017500000001320313430101217025767 0ustar00lordyestalordyesta00000000000000/* * Notes Storage Facility (NSF) timedate functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_NSF_TIMEDATE_H ) #define _LIBFDATETIME_INTERNAL_NSF_TIMEDATE_H #include #include #include "libfdatetime_extern.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdatetime_internal_nsf_timedate libfdatetime_internal_nsf_timedate_t; /* Contains a 64-bit value which consists of: * The lower 32-bit value represents the number of 100th seconds * The upper 32-bit value which consists of: * a 24-bit value which contains the number of Julian day * a 4-bit value which contains the UTC timezone difference in hours * a 2-bit value which contains the UTC timezone difference in 15 minutes periods * a 1-bit value to indicate if the timezone difference is negative (0) or positive (1) * a 1-bit value to indicate if the day light savings are active */ struct libfdatetime_internal_nsf_timedate { /* The lower nsf timedate part */ uint32_t lower; /* The upper nsf timedate part */ uint32_t upper; }; LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_initialize( libfdatetime_nsf_timedate_t **nsf_timedate, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_free( libfdatetime_nsf_timedate_t **nsf_timedate, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_from_byte_stream( libfdatetime_nsf_timedate_t *nsf_timedate, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_from_64bit( libfdatetime_nsf_timedate_t *nsf_timedate, uint64_t value_64bit, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_to_64bit( libfdatetime_nsf_timedate_t *nsf_timedate, uint64_t *value_64bit, libcerror_error_t **error ); int libfdatetime_internal_nsf_timedate_copy_to_date_time_values( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_get_string_size( libfdatetime_nsf_timedate_t *nsf_timedate, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_nsf_timedate_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_to_utf8_string( libfdatetime_nsf_timedate_t *nsf_timedate, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_to_utf8_string_with_index( libfdatetime_nsf_timedate_t *nsf_timedate, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_nsf_timedate_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_to_utf16_string( libfdatetime_nsf_timedate_t *nsf_timedate, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_to_utf16_string_with_index( libfdatetime_nsf_timedate_t *nsf_timedate, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ); int libfdatetime_internal_nsf_timedate_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_nsf_timedate_t *internal_nsf_timedate, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_to_utf32_string( libfdatetime_nsf_timedate_t *nsf_timedate, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ); LIBFDATETIME_EXTERN \ int libfdatetime_nsf_timedate_copy_to_utf32_string_with_index( libfdatetime_nsf_timedate_t *nsf_timedate, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATETIME_INTERNAL_NSF_TIMEDATE_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_definitions.h0000664000175000017500000001013013430101217025634 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBFDATETIME_INTERNAL_DEFINITIONS_H ) #define LIBFDATETIME_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime */ #if !defined( HAVE_LOCAL_LIBFDATETIME ) #include /* The definitions in are copied here * for local use of libfdatetime */ #else #include #define LIBFDATETIME_VERSION 20180910 /* The version string */ #define LIBFDATETIME_VERSION_STRING "20180910" /* The byte order definitions */ #define LIBFDATETIME_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG #define LIBFDATETIME_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE /* The string format definition flags */ enum LIBFDATETIME_STRING_FORMAT_FLAGS { /* Format the date time value in C time */ LIBFDATETIME_STRING_FORMAT_TYPE_CTIME = 0x00000001UL, /* Format the date time value in ISO 8601 */ LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 = 0x00000002UL, /* Format the date time value as a date only */ LIBFDATETIME_STRING_FORMAT_FLAG_DATE = 0x00000100UL, /* Format the date time value as a time only */ LIBFDATETIME_STRING_FORMAT_FLAG_TIME = 0x00000200UL, /* Format the date time value as a duration */ LIBFDATETIME_STRING_FORMAT_FLAG_DURATION = 0x00000400UL, /* Format the date time value with a time in milli seconds */ LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS = 0x00010000UL, /* Format the date time value with a time in micro seconds */ LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS = 0x00020000UL, /* Format the date time value with a time in nano seconds */ LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS = 0x00040000UL, /* Add a timezone indicator */ LIBFDATETIME_STRING_FORMAT_FLAG_TIMEZONE_INDICATOR = 0x80000000UL, }; #define LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME \ ( LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME ) #define LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_MILLI_SECONDS \ ( LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MILLI_SECONDS ) #define LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_MICRO_SECONDS \ ( LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_MICRO_SECONDS ) #define LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS \ ( LIBFDATETIME_STRING_FORMAT_FLAG_DATE | LIBFDATETIME_STRING_FORMAT_FLAG_TIME | LIBFDATETIME_STRING_FORMAT_FLAG_TIME_NANO_SECONDS ) /* The POSIX time value type definitions */ enum LIBFDATETIME_POSIX_TIME_VALUE_TYPES { LIBFDATETIME_POSIX_TIME_VALUE_TYPE_UNDEFINED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_SIGNED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_32BIT_UNSIGNED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_SIGNED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_SECONDS_64BIT_UNSIGNED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_SIGNED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_MICRO_SECONDS_64BIT_UNSIGNED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_UNSIGNED }; #endif /* !defined( HAVE_LOCAL_LIBFDATETIME ) */ #endif /* !defined( LIBFDATETIME_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libfdatetime/libfdatetime_systemtime.c0000664000175000017500000012154013430101217025527 0ustar00lordyestalordyesta00000000000000/* * SYSTEMTIME functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_systemtime.h" #include "libfdatetime_types.h" /* Creates a SYSTEMTIME * Make sure the value systemtime is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_initialize( libfdatetime_systemtime_t **systemtime, libcerror_error_t **error ) { libfdatetime_internal_systemtime_t *internal_systemtime = NULL; static char *function = "libfdatetime_systemtime_initialize"; if( systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } if( *systemtime != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid SYSTEMTIME value already set.", function ); return( -1 ); } internal_systemtime = memory_allocate_structure( libfdatetime_internal_systemtime_t ); if( internal_systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create SYSTEMTIME.", function ); goto on_error; } if( memory_set( internal_systemtime, 0, sizeof( libfdatetime_internal_systemtime_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear SYSTEMTIME.", function ); goto on_error; } *systemtime = (libfdatetime_systemtime_t *) internal_systemtime; return( 1 ); on_error: if( internal_systemtime != NULL ) { memory_free( internal_systemtime ); } return( -1 ); } /* Frees a SYSTEMTIME * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_free( libfdatetime_systemtime_t **systemtime, libcerror_error_t **error ) { libfdatetime_internal_systemtime_t *internal_systemtime = NULL; static char *function = "libfdatetime_systemtime_free"; if( systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } if( *systemtime != NULL ) { internal_systemtime = (libfdatetime_internal_systemtime_t *) *systemtime; *systemtime = NULL; memory_free( internal_systemtime ); } return( 1 ); } /* Converts a byte stream into a systemtime * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_copy_from_byte_stream( libfdatetime_systemtime_t *systemtime, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfdatetime_internal_systemtime_t *internal_systemtime = NULL; static char *function = "libfdatetime_systemtime_copy_from_byte_stream"; if( systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } internal_systemtime = (libfdatetime_internal_systemtime_t *) systemtime; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFDATETIME_ENDIAN_BIG ) && ( byte_order != LIBFDATETIME_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->year ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->month ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->day_of_week ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->day_of_month ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->hours ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->minutes ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->seconds ); byte_stream += 2; byte_stream_copy_to_uint16_little_endian( byte_stream, internal_systemtime->milli_seconds ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->year ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->month ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->day_of_week ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->day_of_month ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->hours ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->minutes ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->seconds ); byte_stream += 2; byte_stream_copy_to_uint16_big_endian( byte_stream, internal_systemtime->milli_seconds ); } return( 1 ); } /* Converts a SYSTEMTIME into date time values * Returns 1 if successful or -1 on error */ int libfdatetime_internal_systemtime_copy_to_date_time_values( libfdatetime_internal_systemtime_t *internal_systemtime, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_systemtime_copy_to_date_time_values"; uint8_t days_in_month = 0; if( internal_systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } if( internal_systemtime->milli_seconds > 999 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - milli seconds value out of bounds.", function ); return( -1 ); } date_time_values->nano_seconds = 0; date_time_values->micro_seconds = 0; date_time_values->milli_seconds = internal_systemtime->milli_seconds; if( internal_systemtime->seconds > 59 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - seconds value out of bounds.", function ); return( -1 ); } date_time_values->seconds = (uint8_t) internal_systemtime->seconds; if( internal_systemtime->minutes > 59 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - minutes value out of bounds.", function ); return( -1 ); } date_time_values->minutes = (uint8_t) internal_systemtime->minutes; if( internal_systemtime->hours > 23 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - hours value out of bounds.", function ); return( -1 ); } date_time_values->hours = (uint8_t) internal_systemtime->hours; if( internal_systemtime->year > 9999 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - year value out of bounds.", function ); return( -1 ); } date_time_values->year = (uint16_t) internal_systemtime->year; if( ( internal_systemtime->month == 0 ) || ( internal_systemtime->month > 12 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - month value out of bounds.", function ); return( -1 ); } date_time_values->month = (uint8_t) internal_systemtime->month; if( internal_systemtime->day_of_week > 6 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - day of week value out of bounds.", function ); return( -1 ); } /* February (2) */ if( date_time_values->month == 2 ) { if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( date_time_values->month == 4 ) || ( date_time_values->month == 6 ) || ( date_time_values->month == 9 ) || ( date_time_values->month == 11 ) ) { days_in_month = 30; } /* January (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( date_time_values->month == 1 ) || ( date_time_values->month == 3 ) || ( date_time_values->month == 5 ) || ( date_time_values->month == 7 ) || ( date_time_values->month == 8 ) || ( date_time_values->month == 10 ) || ( date_time_values->month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported month: %d.", function, date_time_values->month ); return( -1 ); } if( internal_systemtime->day_of_month > (uint16_t) days_in_month ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid SYSTEMTIME - day of month value out of bounds.", function ); return( -1 ); } date_time_values->day = (uint8_t) internal_systemtime->day_of_month; return( 1 ); } /* Deterimes the size of the string for the SYSTEMTIME * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_get_string_size( libfdatetime_systemtime_t *systemtime, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; static char *function = "libfdatetime_systemtime_get_string_size"; int result = 0; if( systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } result = libfdatetime_internal_systemtime_copy_to_date_time_values( (libfdatetime_internal_systemtime_t *) systemtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_get_string_size( &date_time_values, string_size, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to get string size.", function ); return( -1 ); } } if( result != 1 ) { /* Make sure the string can hold the hexadecimal representation of the SYSTEMTIME */ *string_size = 58; } return( 1 ); } /* Converts the SYSTEMTIME into an UTF-8 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_systemtime_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_systemtime_t *internal_systemtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_systemtime_copy_to_utf8_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( ( utf8_string_size < 58 ) || ( *utf8_string_index > ( utf8_string_size - 58 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } string_index = *utf8_string_index; utf8_string[ string_index++ ] = (uint8_t) '('; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->year >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->month >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->day_of_week >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->day_of_month >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->hours >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->minutes >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->seconds >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->milli_seconds >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ')'; utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the SYSTEMTIME into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_copy_to_utf8_string( libfdatetime_systemtime_t *systemtime, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_systemtime_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfdatetime_systemtime_copy_to_utf8_string_with_index( systemtime, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy SYSTEMTIME to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Converts the SYSTEMTIME into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_copy_to_utf8_string_with_index( libfdatetime_systemtime_t *systemtime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_systemtime_t *internal_systemtime = NULL; static char *function = "libfdatetime_systemtime_copy_to_utf8_string_with_index"; int result = 0; if( systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } internal_systemtime = (libfdatetime_internal_systemtime_t *) systemtime; result = libfdatetime_internal_systemtime_copy_to_date_time_values( internal_systemtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf8_string_with_index( &date_time_values, utf8_string, utf8_string_size, utf8_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-8 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_systemtime_copy_to_utf8_string_in_hexadecimal( internal_systemtime, utf8_string, utf8_string_size, utf8_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to SYSTEMTIME to hexadecimal UTF-8 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the SYSTEMTIME into an UTF-16 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_systemtime_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_systemtime_t *internal_systemtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_systemtime_copy_to_utf16_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( utf16_string_size < 58 ) || ( *utf16_string_index > ( utf16_string_size - 58 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } string_index = *utf16_string_index; utf16_string[ string_index++ ] = (uint16_t) '('; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->year >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->month >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->day_of_week >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->day_of_month >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->hours >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->minutes >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->seconds >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->milli_seconds >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ')'; utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the SYSTEMTIME into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_copy_to_utf16_string( libfdatetime_systemtime_t *systemtime, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_systemtime_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfdatetime_systemtime_copy_to_utf16_string_with_index( systemtime, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy SYSTEMTIME to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Converts the SYSTEMTIME into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_copy_to_utf16_string_with_index( libfdatetime_systemtime_t *systemtime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_systemtime_t *internal_systemtime = NULL; static char *function = "libfdatetime_systemtime_copy_to_utf16_string_with_index"; int result = 0; if( systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } internal_systemtime = (libfdatetime_internal_systemtime_t *) systemtime; result = libfdatetime_internal_systemtime_copy_to_date_time_values( internal_systemtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf16_string_with_index( &date_time_values, utf16_string, utf16_string_size, utf16_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_systemtime_copy_to_utf16_string_in_hexadecimal( internal_systemtime, utf16_string, utf16_string_size, utf16_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to SYSTEMTIME to hexadecimal UTF-16 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the SYSTEMTIME into an UTF-32 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_systemtime_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_systemtime_t *internal_systemtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_systemtime_copy_to_utf32_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( ( utf32_string_size < 58 ) || ( *utf32_string_index > ( utf32_string_size - 58 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } string_index = *utf32_string_index; utf32_string[ string_index++ ] = (uint32_t) '('; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->year >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->month >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->day_of_week >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->day_of_month >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->hours >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->minutes >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->seconds >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 14; do { byte_value = ( internal_systemtime->milli_seconds >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ')'; utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } /* Converts the SYSTEMTIME into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_copy_to_utf32_string( libfdatetime_systemtime_t *systemtime, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_systemtime_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfdatetime_systemtime_copy_to_utf32_string_with_index( systemtime, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy SYSTEMTIME to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Converts the SYSTEMTIME into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_systemtime_copy_to_utf32_string_with_index( libfdatetime_systemtime_t *systemtime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_systemtime_t *internal_systemtime = NULL; static char *function = "libfdatetime_systemtime_copy_to_utf32_string_with_index"; int result = 0; if( systemtime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid SYSTEMTIME.", function ); return( -1 ); } internal_systemtime = (libfdatetime_internal_systemtime_t *) systemtime; result = libfdatetime_internal_systemtime_copy_to_date_time_values( internal_systemtime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf32_string_with_index( &date_time_values, utf32_string, utf32_string_size, utf32_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_systemtime_copy_to_utf32_string_in_hexadecimal( internal_systemtime, utf32_string, utf32_string_size, utf32_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to SYSTEMTIME to hexadecimal UTF-32 string.", function ); return( -1 ); } } return( 1 ); } libfsapfs-20190210/libfdatetime/libfdatetime_filetime.c0000664000175000017500000010444713430101217025131 0ustar00lordyestalordyesta00000000000000/* * FILETIME functions * * Copyright (C) 2009-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfdatetime_definitions.h" #include "libfdatetime_date_time_values.h" #include "libfdatetime_filetime.h" #include "libfdatetime_libcerror.h" #include "libfdatetime_types.h" /* Creates a FILETIME * Make sure the value filetime is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_initialize( libfdatetime_filetime_t **filetime, libcerror_error_t **error ) { libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_initialize"; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } if( *filetime != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid FILETIME value already set.", function ); return( -1 ); } internal_filetime = memory_allocate_structure( libfdatetime_internal_filetime_t ); if( internal_filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create FILETIME.", function ); goto on_error; } if( memory_set( internal_filetime, 0, sizeof( libfdatetime_internal_filetime_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear FILETIME.", function ); goto on_error; } *filetime = (libfdatetime_filetime_t *) internal_filetime; return( 1 ); on_error: if( internal_filetime != NULL ) { memory_free( internal_filetime ); } return( -1 ); } /* Frees a FILETIME * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_free( libfdatetime_filetime_t **filetime, libcerror_error_t **error ) { libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_free"; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } if( *filetime != NULL ) { internal_filetime = (libfdatetime_internal_filetime_t *) *filetime; *filetime = NULL; memory_free( internal_filetime ); } return( 1 ); } /* Adds the additional FILETIME to the FILETIME * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_add( libfdatetime_filetime_t *filetime, libfdatetime_filetime_t *additional_filetime, libcerror_error_t **error ) { libfdatetime_internal_filetime_t *internal_additional_filetime = NULL; libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_add"; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } internal_filetime = (libfdatetime_internal_filetime_t *) filetime; if( additional_filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid additional FILETIME.", function ); return( -1 ); } internal_additional_filetime = (libfdatetime_internal_filetime_t *) additional_filetime; internal_filetime->lower += internal_additional_filetime->lower; internal_filetime->upper += internal_additional_filetime->upper; return( 1 ); } /* Converts a byte stream into a FILETIME * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_from_byte_stream( libfdatetime_filetime_t *filetime, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, libcerror_error_t **error ) { libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_copy_from_byte_stream"; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } internal_filetime = (libfdatetime_internal_filetime_t *) filetime; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size < 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: byte stream size exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBFDATETIME_ENDIAN_BIG ) && ( byte_order != LIBFDATETIME_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBFDATETIME_ENDIAN_LITTLE ) { byte_stream_copy_to_uint32_little_endian( byte_stream, internal_filetime->lower ); byte_stream += 4; byte_stream_copy_to_uint32_little_endian( byte_stream, internal_filetime->upper ); } else if( byte_order == LIBFDATETIME_ENDIAN_BIG ) { byte_stream_copy_to_uint32_big_endian( byte_stream, internal_filetime->upper ); byte_stream += 4; byte_stream_copy_to_uint32_big_endian( byte_stream, internal_filetime->lower ); } return( 1 ); } /* Converts a 64-bit value into a FILETIME * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_from_64bit( libfdatetime_filetime_t *filetime, uint64_t value_64bit, libcerror_error_t **error ) { libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_copy_from_64bit"; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } internal_filetime = (libfdatetime_internal_filetime_t *) filetime; internal_filetime->upper = value_64bit >> 32; internal_filetime->lower = value_64bit & 0xffffffffUL; return( 1 ); } /* Converts a FILETIME into a 64-bit value * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_to_64bit( libfdatetime_filetime_t *filetime, uint64_t *value_64bit, libcerror_error_t **error ) { libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_copy_to_64bit"; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } internal_filetime = (libfdatetime_internal_filetime_t *) filetime; if( value_64bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 64-bit value.", function ); return( -1 ); } *value_64bit = internal_filetime->upper; *value_64bit <<= 32; *value_64bit |= internal_filetime->lower; return( 1 ); } /* Converts a FILETIME into date time values * Returns 1 if successful or -1 on error */ int libfdatetime_internal_filetime_copy_to_date_time_values( libfdatetime_internal_filetime_t *internal_filetime, libfdatetime_date_time_values_t *date_time_values, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_filetime_copy_to_date_time_values"; uint64_t filetimestamp = 0; uint32_t days_in_century = 0; uint16_t days_in_year = 0; uint8_t days_in_month = 0; if( internal_filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } if( date_time_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid date time values.", function ); return( -1 ); } /* Combine the lower and upper filetime parts into a single filetime timestamp */ filetimestamp = ( (uint64_t) ( internal_filetime->upper ) << 32 ) + internal_filetime->lower; /* The timestamp is in units of 100 nano seconds correct the value to seconds */ date_time_values->nano_seconds = ( filetimestamp % 10 ) * 100; filetimestamp /= 10; date_time_values->micro_seconds = filetimestamp % 1000; filetimestamp /= 1000; date_time_values->milli_seconds = filetimestamp % 1000; filetimestamp /= 1000; /* There are 60 seconds in a minute correct the value to minutes */ date_time_values->seconds = filetimestamp % 60; filetimestamp /= 60; /* There are 60 minutes in an hour correct the value to hours */ date_time_values->minutes = filetimestamp % 60; filetimestamp /= 60; /* There are 24 hours in a day correct the value to days */ date_time_values->hours = filetimestamp % 24; filetimestamp /= 24; /* Add 1 day to compensate that Jan 1 1601 is represented as 0 */ filetimestamp += 1; /* Determine the number of years starting at '1 Jan 1601 00:00:00' * correct the value to days within the year */ date_time_values->year = 1601; if( filetimestamp >= 36159 ) { date_time_values->year = 1700; filetimestamp -= 36159; } while( filetimestamp > 0 ) { if( ( date_time_values->year % 400 ) == 0 ) { days_in_century = 36525; } else { days_in_century = 36524; } if( filetimestamp <= days_in_century ) { break; } filetimestamp -= days_in_century; date_time_values->year += 100; } while( filetimestamp > 0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( filetimestamp <= days_in_year ) { break; } filetimestamp -= days_in_year; date_time_values->year += 1; } if( date_time_values->year > 9999 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid FILETIME - year value out of bounds.", function ); return( -1 ); } /* Determine the month correct the value to days within the month */ date_time_values->month = 1; while( filetimestamp > 0 ) { /* February (2) */ if( date_time_values->month == 2 ) { if( ( ( ( date_time_values->year % 4 ) == 0 ) && ( ( date_time_values->year % 100 ) != 0 ) ) || ( ( date_time_values->year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( date_time_values->month == 4 ) || ( date_time_values->month == 6 ) || ( date_time_values->month == 9 ) || ( date_time_values->month == 11 ) ) { days_in_month = 30; } /* January (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( date_time_values->month == 1 ) || ( date_time_values->month == 3 ) || ( date_time_values->month == 5 ) || ( date_time_values->month == 7 ) || ( date_time_values->month == 8 ) || ( date_time_values->month == 10 ) || ( date_time_values->month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported month: %d.", function, date_time_values->month ); return( -1 ); } if( filetimestamp <= days_in_month ) { break; } filetimestamp -= days_in_month; date_time_values->month += 1; } /* Determine the day */ date_time_values->day = (uint8_t) filetimestamp; return( 1 ); } /* Deterimes the size of the string for the FILETIME * The string size includes the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_get_string_size( libfdatetime_filetime_t *filetime, size_t *string_size, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; static char *function = "libfdatetime_filetime_get_string_size"; int result = 0; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } result = libfdatetime_internal_filetime_copy_to_date_time_values( (libfdatetime_internal_filetime_t *) filetime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_get_string_size( &date_time_values, string_size, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to get string size.", function ); return( -1 ); } } if( result != 1 ) { /* Make sure the string can hold the hexadecimal representation of the filetime */ *string_size = 24; } return( 1 ); } /* Converts the FILETIME into an UTF-8 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_filetime_copy_to_utf8_string_in_hexadecimal( libfdatetime_internal_filetime_t *internal_filetime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_filetime_copy_to_utf8_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( ( utf8_string_size < 24 ) || ( *utf8_string_index > ( utf8_string_size - 24 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string is too small.", function ); return( -1 ); } string_index = *utf8_string_index; utf8_string[ string_index++ ] = (uint8_t) '('; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 28; do { byte_value = ( internal_filetime->upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ' '; utf8_string[ string_index++ ] = (uint8_t) '0'; utf8_string[ string_index++ ] = (uint8_t) 'x'; byte_shift = 28; do { byte_value = ( internal_filetime->lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf8_string[ string_index++ ] = (uint8_t) '0' + byte_value; } else { utf8_string[ string_index++ ] = (uint8_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf8_string[ string_index++ ] = (uint8_t) ')'; utf8_string[ string_index++ ] = 0; *utf8_string_index = string_index; return( 1 ); } /* Converts the FILETIME into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_to_utf8_string( libfdatetime_filetime_t *filetime, uint8_t *utf8_string, size_t utf8_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_filetime_copy_to_utf8_string"; size_t utf8_string_index = 0; if( libfdatetime_filetime_copy_to_utf8_string_with_index( filetime, utf8_string, utf8_string_size, &utf8_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy FILETIME to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Converts the FILETIME into an UTF-8 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_to_utf8_string_with_index( libfdatetime_filetime_t *filetime, uint8_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_copy_to_utf8_string_with_index"; int result = 0; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } internal_filetime = (libfdatetime_internal_filetime_t *) filetime; result = libfdatetime_internal_filetime_copy_to_date_time_values( internal_filetime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf8_string_with_index( &date_time_values, utf8_string, utf8_string_size, utf8_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-8 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_filetime_copy_to_utf8_string_in_hexadecimal( internal_filetime, utf8_string, utf8_string_size, utf8_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to FILETIME to hexadecimal UTF-8 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the FILETIME into an UTF-16 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_filetime_copy_to_utf16_string_in_hexadecimal( libfdatetime_internal_filetime_t *internal_filetime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_filetime_copy_to_utf16_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( ( utf16_string_size < 24 ) || ( *utf16_string_index > ( utf16_string_size - 24 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string is too small.", function ); return( -1 ); } string_index = *utf16_string_index; utf16_string[ string_index++ ] = (uint16_t) '('; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 28; do { byte_value = ( internal_filetime->upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ' '; utf16_string[ string_index++ ] = (uint16_t) '0'; utf16_string[ string_index++ ] = (uint16_t) 'x'; byte_shift = 28; do { byte_value = ( internal_filetime->lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf16_string[ string_index++ ] = (uint16_t) '0' + byte_value; } else { utf16_string[ string_index++ ] = (uint16_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf16_string[ string_index++ ] = (uint16_t) ')'; utf16_string[ string_index++ ] = 0; *utf16_string_index = string_index; return( 1 ); } /* Converts the FILETIME into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_to_utf16_string( libfdatetime_filetime_t *filetime, uint16_t *utf16_string, size_t utf16_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_filetime_copy_to_utf16_string"; size_t utf16_string_index = 0; if( libfdatetime_filetime_copy_to_utf16_string_with_index( filetime, utf16_string, utf16_string_size, &utf16_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy FILETIME to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Converts the FILETIME into an UTF-16 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_to_utf16_string_with_index( libfdatetime_filetime_t *filetime, uint16_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_copy_to_utf16_string_with_index"; int result = 0; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } internal_filetime = (libfdatetime_internal_filetime_t *) filetime; result = libfdatetime_internal_filetime_copy_to_date_time_values( internal_filetime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf16_string_with_index( &date_time_values, utf16_string, utf16_string_size, utf16_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: unable to copy date time values to UTF-16 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_filetime_copy_to_utf16_string_in_hexadecimal( internal_filetime, utf16_string, utf16_string_size, utf16_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to FILETIME to hexadecimal UTF-16 string.", function ); return( -1 ); } } return( 1 ); } /* Converts the FILETIME into an UTF-32 string in hexadecimal representation * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_internal_filetime_copy_to_utf32_string_in_hexadecimal( libfdatetime_internal_filetime_t *internal_filetime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libfdatetime_internal_filetime_copy_to_utf32_string_in_hexadecimal"; size_t string_index = 0; uint8_t byte_value = 0; int8_t byte_shift = 0; if( internal_filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( ( utf32_string_size < 24 ) || ( *utf32_string_index > ( utf32_string_size - 24 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string is too small.", function ); return( -1 ); } string_index = *utf32_string_index; utf32_string[ string_index++ ] = (uint32_t) '('; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 28; do { byte_value = ( internal_filetime->upper >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ' '; utf32_string[ string_index++ ] = (uint32_t) '0'; utf32_string[ string_index++ ] = (uint32_t) 'x'; byte_shift = 28; do { byte_value = ( internal_filetime->lower >> byte_shift ) & 0x0f; if( byte_value <= 9 ) { utf32_string[ string_index++ ] = (uint32_t) '0' + byte_value; } else { utf32_string[ string_index++ ] = (uint32_t) 'a' + byte_value - 10; } byte_shift -= 4; } while( byte_shift >= 0 ); utf32_string[ string_index++ ] = (uint32_t) ')'; utf32_string[ string_index++ ] = 0; *utf32_string_index = string_index; return( 1 ); } /* Converts the FILETIME into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_to_utf32_string( libfdatetime_filetime_t *filetime, uint32_t *utf32_string, size_t utf32_string_size, uint32_t string_format_flags, libcerror_error_t **error ) { static char *function = "libfdatetime_filetime_copy_to_utf32_string"; size_t utf32_string_index = 0; if( libfdatetime_filetime_copy_to_utf32_string_with_index( filetime, utf32_string, utf32_string_size, &utf32_string_index, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy FILETIME to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Converts the FILETIME into an UTF-32 string * The string size should include the end of string character * Returns 1 if successful or -1 on error */ int libfdatetime_filetime_copy_to_utf32_string_with_index( libfdatetime_filetime_t *filetime, uint32_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, uint32_t string_format_flags, libcerror_error_t **error ) { libfdatetime_date_time_values_t date_time_values; libfdatetime_internal_filetime_t *internal_filetime = NULL; static char *function = "libfdatetime_filetime_copy_to_utf32_string_with_index"; int result = 0; if( filetime == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid FILETIME.", function ); return( -1 ); } internal_filetime = (libfdatetime_internal_filetime_t *) filetime; result = libfdatetime_internal_filetime_copy_to_date_time_values( internal_filetime, &date_time_values, error ); if( result != 1 ) { #if defined( HAVE_DEBUG_OUTPUT ) libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set date time values.", function ); /* TODO debug print error */ #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( error != NULL ) && ( *error != NULL ) ) { libcerror_error_free( error ); } } else { result = libfdatetime_date_time_values_copy_to_utf32_string_with_index( &date_time_values, utf32_string, utf32_string_size, utf32_string_index, string_format_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy date time values to UTF-32 string.", function ); return( -1 ); } } if( result != 1 ) { result = libfdatetime_internal_filetime_copy_to_utf32_string_in_hexadecimal( internal_filetime, utf32_string, utf32_string_size, utf32_string_index, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to FILETIME to hexadecimal UTF-32 string.", function ); return( -1 ); } } return( 1 ); } libfsapfs-20190210/libcfile/0000775000175000017500000000000013430101367017572 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcfile/libcfile_file.c0000664000175000017500000032730013430101166022510 0ustar00lordyestalordyesta00000000000000/* * File functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_SYS_STAT_H ) #include #endif #if defined( HAVE_ERRNO_H ) #include #endif #if defined( HAVE_FCNTL_H ) #include #endif #if defined( WINAPI ) #include #endif #if defined( WINAPI ) && !defined( __CYGWIN__ ) #include #endif #if defined( HAVE_SYS_IOCTL_H ) #include #endif #if defined( WINAPI ) #include #elif defined( HAVE_CYGWIN_FS_H ) #include #elif defined( HAVE_LINUX_FS_H ) /* Required for Linux platforms that use a sizeof( u64 ) * in linux/fs.h but have no typedef of it */ #if !defined( HAVE_U64 ) typedef size_t u64; #endif #include #else #if defined( HAVE_SYS_DISK_H ) #include #endif #if defined( HAVE_SYS_DISKLABEL_H ) #include #endif #endif #if defined( HAVE_UNISTD_H ) #include #endif #if defined( HAVE_GLIB_H ) #include #include #endif #include "libcfile_definitions.h" #include "libcfile_file.h" #include "libcfile_libcerror.h" #include "libcfile_libcnotify.h" #include "libcfile_system_string.h" #include "libcfile_types.h" #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of CloseHandle * Returns TRUE if successful or FALSE on error */ BOOL libcfile_CloseHandle( HANDLE file_handle ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "CloseHandle" ); if( function != NULL ) { result = function( file_handle ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ /* Creates a file * Make sure the value file is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcfile_file_initialize( libcfile_file_t **file, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_initialize"; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } if( *file != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file value already set.", function ); return( -1 ); } internal_file = memory_allocate_structure( libcfile_internal_file_t ); if( internal_file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file.", function ); goto on_error; } if( memory_set( internal_file, 0, sizeof( libcfile_internal_file_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file.", function ); goto on_error; } #if defined( WINAPI ) internal_file->handle = INVALID_HANDLE_VALUE; #else internal_file->descriptor = -1; #endif *file = (libcfile_file_t *) internal_file; return( 1 ); on_error: if( internal_file != NULL ) { memory_free( internal_file ); } return( -1 ); } /* Frees a file * Returns 1 if successful or -1 on error */ int libcfile_file_free( libcfile_file_t **file, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_free"; int result = 1; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } if( *file != NULL ) { internal_file = (libcfile_internal_file_t *) *file; #if defined( WINAPI ) if( internal_file->handle != INVALID_HANDLE_VALUE ) #else if( internal_file->descriptor != -1 ) #endif { if( libcfile_file_close( *file, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close file.", function ); result = -1; } } *file = NULL; if( internal_file->block_data != NULL ) { memory_free( internal_file->block_data ); } memory_free( internal_file ); } return( result ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of CreateFileA * Returns a handle if successful or INVALID_HANDLE_VALUE on error */ HANDLE libcfile_CreateFileA( LPCSTR filename, DWORD desired_access, DWORD share_mode, SECURITY_ATTRIBUTES *security_attributes, DWORD creation_disposition, DWORD flags_and_attributes, HANDLE template_file ) { FARPROC function = NULL; HANDLE result = INVALID_HANDLE_VALUE; HMODULE library_handle = NULL; if( filename == NULL ) { return( INVALID_HANDLE_VALUE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( INVALID_HANDLE_VALUE ); } function = GetProcAddress( library_handle, (LPCSTR) "CreateFileA" ); if( function != NULL ) { result = (HANDLE) function( filename, desired_access, share_mode, security_attributes, creation_disposition, flags_and_attributes, template_file ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcfile_CloseHandle( result ); return( INVALID_HANDLE_VALUE ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ /* Opens a file * Returns 1 if successful or -1 on error */ int libcfile_file_open( libcfile_file_t *file, const char *filename, int access_flags, libcerror_error_t **error ) { static char *function = "libcfile_file_open"; uint32_t error_code = 0; if( libcfile_file_open_with_error_code( file, filename, access_flags, &error_code, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file.", function ); return( -1 ); } return( 1 ); } #if defined( WINAPI ) /* Opens a file * This function uses the WINAPI function for Windows XP (0x0501) or later, * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcfile_file_open_with_error_code( libcfile_file_t *file, const char *filename, int access_flags, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_open_with_error_code"; size_t filename_length = 0; DWORD file_io_access_flags = 0; DWORD file_io_creation_flags = 0; DWORD file_io_shared_flags = 0; DWORD flags_and_attributes = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle != INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file - handle value already set.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) ) { file_io_access_flags = GENERIC_WRITE | GENERIC_READ; file_io_creation_flags = OPEN_ALWAYS; file_io_shared_flags = FILE_SHARE_READ; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) { file_io_access_flags = GENERIC_READ; file_io_creation_flags = OPEN_EXISTING; /* FILE_SHARE_WRITE is set to allow reading files that are * currently being written FILE_SHARE_READ alone does not suffice */ file_io_shared_flags = FILE_SHARE_READ | FILE_SHARE_WRITE; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) { file_io_access_flags = GENERIC_WRITE; file_io_creation_flags = OPEN_ALWAYS; file_io_shared_flags = FILE_SHARE_READ; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags: 0x%02x.", function, access_flags ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_TRUNCATE ) != 0 ) ) { file_io_creation_flags = CREATE_ALWAYS; } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } filename_length = narrow_string_length( filename ); if( filename_length > 4 ) { if( ( filename[ 0 ] == '\\' ) && ( filename[ 1 ] == '\\' ) && ( filename[ 2 ] == '.' ) && ( filename[ 3 ] == '\\' ) ) { /* Ignore \\.\F:\ which is an alternative notation for F: */ if( ( filename_length < 7 ) || ( filename[ 5 ] != ':' ) || ( filename[ 6 ] != '\\' ) ) { internal_file->is_device_filename = 1; internal_file->use_asynchronous_io = 1; } } } flags_and_attributes = FILE_ATTRIBUTE_NORMAL; if( internal_file->use_asynchronous_io != 0 ) { flags_and_attributes |= FILE_FLAG_OVERLAPPED; } #if ( WINVER <= 0x0500 ) internal_file->handle = libcfile_CreateFileA( (LPCSTR) filename, file_io_access_flags, file_io_shared_flags, NULL, file_io_creation_flags, flags_and_attributes, NULL ); #else internal_file->handle = CreateFileA( (LPCSTR) filename, file_io_access_flags, file_io_shared_flags, NULL, file_io_creation_flags, flags_and_attributes, NULL ); #endif if( internal_file->handle == INVALID_HANDLE_VALUE ) { *error_code = (uint32_t) GetLastError(); switch( *error_code ) { case ERROR_ACCESS_DENIED: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_ACCESS_DENIED, "%s: access denied to file: %" PRIs_SYSTEM ".", function, filename ); break; case ERROR_FILE_NOT_FOUND: case ERROR_PATH_NOT_FOUND: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_INVALID_RESOURCE, "%s: no such file: %" PRIs_SYSTEM ".", function, filename ); break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, *error_code, "%s: unable to open file: %" PRIs_SYSTEM ".", function, filename ); break; } return( -1 ); } internal_file->access_flags = access_flags; internal_file->current_offset = 0; return( 1 ); } #elif defined( HAVE_OPEN ) /* Opens a file * This function uses the POSIX open function or equivalent * Returns 1 if successful or -1 on error */ int libcfile_file_open_with_error_code( libcfile_file_t *file, const char *filename, int access_flags, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_open_with_error_code"; int file_io_flags = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor != -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file - descriptor value already set.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) ) { file_io_flags = O_RDWR | O_CREAT; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) { file_io_flags = O_RDONLY; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) { file_io_flags = O_WRONLY | O_CREAT; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags: 0x%02x.", function, access_flags ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_TRUNCATE ) != 0 ) ) { file_io_flags |= O_TRUNC; } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } #if defined( HAVE_GLIB_H ) internal_file->descriptor = g_open( filename, file_io_flags, 0644 ); #else internal_file->descriptor = open( filename, file_io_flags, 0644 ); #endif if( internal_file->descriptor == -1 ) { *error_code = (uint32_t) errno; switch( *error_code ) { case EACCES: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_ACCESS_DENIED, "%s: access denied to file: %" PRIs_SYSTEM ".", function, filename ); break; case ENOENT: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_INVALID_RESOURCE, "%s: no such file: %" PRIs_SYSTEM ".", function, filename ); break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, *error_code, "%s: unable to open file: %" PRIs_SYSTEM ".", function, filename ); break; } return( -1 ); } internal_file->access_flags = access_flags; internal_file->current_offset = 0; return( 1 ); } #else #error Missing file open function #endif #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of CreateFileW * Returns a handle if successful or INVALID_HANDLE_VALUE on error */ HANDLE libcfile_CreateFileW( LPCWSTR filename, DWORD desired_access, DWORD share_mode, SECURITY_ATTRIBUTES *security_attributes, DWORD creation_disposition, DWORD flags_and_attributes, HANDLE template_file ) { FARPROC function = NULL; HANDLE result = INVALID_HANDLE_VALUE; HMODULE library_handle = NULL; if( filename == NULL ) { return( INVALID_HANDLE_VALUE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( INVALID_HANDLE_VALUE ); } function = GetProcAddress( library_handle, (LPCSTR) "CreateFileW" ); if( function != NULL ) { result = (HANDLE) function( filename, desired_access, share_mode, security_attributes, creation_disposition, flags_and_attributes, template_file ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcfile_CloseHandle( result ); return( INVALID_HANDLE_VALUE ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ /* Opens a file * Returns 1 if successful or -1 on error */ int libcfile_file_open_wide( libcfile_file_t *file, const wchar_t *filename, int access_flags, libcerror_error_t **error ) { static char *function = "libcfile_file_open_wide"; uint32_t error_code = 0; if( libcfile_file_open_wide_with_error_code( file, filename, access_flags, &error_code, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file.", function ); return( -1 ); } return( 1 ); } #if defined( WINAPI ) /* Opens a file * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcfile_file_open_wide_with_error_code( libcfile_file_t *file, const wchar_t *filename, int access_flags, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_open_wide_with_error_code"; size_t filename_length = 0; DWORD file_io_access_flags = 0; DWORD file_io_creation_flags = 0; DWORD file_io_shared_flags = 0; DWORD flags_and_attributes = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle != INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file - handle value already set.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) ) { file_io_access_flags = GENERIC_WRITE | GENERIC_READ; file_io_creation_flags = OPEN_ALWAYS; file_io_shared_flags = FILE_SHARE_READ; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) { file_io_access_flags = GENERIC_READ; file_io_creation_flags = OPEN_EXISTING; /* FILE_SHARE_WRITE is set to allow reading files that are * currently being written FILE_SHARE_READ alone does not suffice */ file_io_shared_flags = FILE_SHARE_READ | FILE_SHARE_WRITE; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) { file_io_access_flags = GENERIC_WRITE; file_io_creation_flags = OPEN_ALWAYS; file_io_shared_flags = FILE_SHARE_READ; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags: 0x%02x.", function, access_flags ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_TRUNCATE ) != 0 ) ) { file_io_creation_flags = CREATE_ALWAYS; } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } filename_length = wide_string_length( filename ); if( filename_length > 4 ) { if( ( filename[ 0 ] == (wchar_t) '\\' ) && ( filename[ 1 ] == (wchar_t) '\\' ) && ( filename[ 2 ] == (wchar_t) '.' ) && ( filename[ 3 ] == (wchar_t) '\\' ) ) { /* Ignore \\.\F:\ which is an alternative notation for F: */ if( ( filename_length < 7 ) || ( filename[ 5 ] != (wchar_t) ':' ) || ( filename[ 6 ] != (wchar_t) '\\' ) ) { internal_file->is_device_filename = 1; internal_file->use_asynchronous_io = 1; } } } flags_and_attributes = FILE_ATTRIBUTE_NORMAL; if( internal_file->use_asynchronous_io != 0 ) { flags_and_attributes |= FILE_FLAG_OVERLAPPED; } #if ( WINVER <= 0x0500 ) internal_file->handle = libcfile_CreateFileW( (LPCWSTR) filename, file_io_access_flags, file_io_shared_flags, NULL, file_io_creation_flags, flags_and_attributes, NULL ); #else internal_file->handle = CreateFileW( (LPCWSTR) filename, file_io_access_flags, file_io_shared_flags, NULL, file_io_creation_flags, flags_and_attributes, NULL ); #endif if( internal_file->handle == INVALID_HANDLE_VALUE ) { *error_code = (uint32_t) GetLastError(); switch( *error_code ) { case ERROR_ACCESS_DENIED: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_ACCESS_DENIED, "%s: access denied to file: %" PRIs_SYSTEM ".", function, filename ); break; case ERROR_FILE_NOT_FOUND: case ERROR_PATH_NOT_FOUND: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_INVALID_RESOURCE, "%s: no such file: %" PRIs_SYSTEM ".", function, filename ); break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, *error_code, "%s: unable to open file: %" PRIs_SYSTEM ".", function, filename ); break; } return( -1 ); } return( 1 ); } #elif defined( HAVE_OPEN ) /* Opens a file * This function uses the POSIX open function or equivalent * Returns 1 if successful or -1 on error */ int libcfile_file_open_wide_with_error_code( libcfile_file_t *file, const wchar_t *filename, int access_flags, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_open_wide_with_error_code"; char *narrow_filename = NULL; size_t filename_size = 0; size_t narrow_filename_size = 0; int file_io_flags = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor != -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file - descriptor value already set.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) ) { file_io_flags = O_RDWR | O_CREAT; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_READ ) != 0 ) { file_io_flags = O_RDONLY; } else if( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) { file_io_flags = O_WRONLY | O_CREAT; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags: 0x%02x.", function, access_flags ); return( -1 ); } if( ( ( access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) && ( ( access_flags & LIBCFILE_ACCESS_FLAG_TRUNCATE ) != 0 ) ) { file_io_flags |= O_TRUNC; } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } filename_size = 1 + wide_string_length( filename ); if( libcfile_system_string_size_from_wide_string( filename, filename_size, &narrow_filename_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow character filename size.", function ); goto on_error; } narrow_filename = narrow_string_allocate( narrow_filename_size ); if( narrow_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create narrow character filename.", function ); goto on_error; } if( libcfile_system_string_copy_from_wide_string( narrow_filename, narrow_filename_size, filename, filename_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set narrow character filename.", function ); goto on_error; } #if defined( HAVE_GLIB_H ) internal_file->descriptor = g_open( narrow_filename, file_io_flags, 0644 ); #else internal_file->descriptor = open( narrow_filename, file_io_flags, 0644 ); #endif memory_free( narrow_filename ); narrow_filename = NULL; if( internal_file->descriptor == -1 ) { *error_code = (uint32_t) errno; switch( *error_code ) { case EACCES: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_ACCESS_DENIED, "%s: access denied to file: %" PRIs_SYSTEM ".", function, filename ); break; case ENOENT: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_INVALID_RESOURCE, "%s: no such file: %" PRIs_SYSTEM ".", function, filename ); break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, *error_code, "%s: unable to open file: %" PRIs_SYSTEM ".", function, filename ); break; } goto on_error; } return( 1 ); on_error: if( narrow_filename != NULL ) { memory_free( narrow_filename ); } return( -1 ); } #else #error Missing file open wide function #endif #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( WINAPI ) /* Closes the file * This function uses the WINAPI function for Windows 2000 (0x0500) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 0 if successful or -1 on error */ int libcfile_file_close( libcfile_file_t *file, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_close"; DWORD error_code = 0; BOOL result = FALSE; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle != INVALID_HANDLE_VALUE ) { #if ( WINVER <= 0x0500 ) result = libcfile_CloseHandle( internal_file->handle ); #else result = CloseHandle( internal_file->handle ); #endif if( result == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, error_code, "%s: unable to close file.", function ); return( -1 ); } internal_file->handle = INVALID_HANDLE_VALUE; internal_file->is_device_filename = 0; internal_file->use_asynchronous_io = 0; internal_file->access_flags = 0; internal_file->size = 0; internal_file->current_offset = 0; } if( internal_file->block_data != NULL ) { if( memory_set( internal_file->block_data, 0, internal_file->block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } } return( 0 ); } #elif defined( HAVE_CLOSE ) /* Closes the file * This function uses the POSIX close function or equivalent * Returns 0 if successful or -1 on error */ int libcfile_file_close( libcfile_file_t *file, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_close"; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor != -1 ) { if( close( internal_file->descriptor ) != 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, errno, "%s: unable to close file.", function ); return( -1 ); } internal_file->descriptor = -1; internal_file->access_flags = 0; internal_file->size = 0; internal_file->current_offset = 0; } if( internal_file->block_data != NULL ) { if( memory_set( internal_file->block_data, 0, internal_file->block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } } return( 0 ); } #else #error Missing file close function #endif /* Reads a buffer from the file * Returns the number of bytes read if successful, or -1 on error */ ssize_t libcfile_file_read_buffer( libcfile_file_t *file, uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libcfile_file_read_buffer"; ssize_t read_count = 0; uint32_t error_code = 0; read_count = libcfile_file_read_buffer_with_error_code( file, buffer, size, &error_code, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file.", function ); return( -1 ); } return( read_count ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of GetOverlappedResult * Returns TRUE if successful or FALSE on error */ BOOL libcfile_GetOverlappedResult( HANDLE file_handle, OVERLAPPED *overlapped, DWORD *read_count, BOOL wait_io_complete ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } if( overlapped == NULL ) { return( FALSE ); } if( read_count == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "GetOverlappedResult" ); if( function != NULL ) { result = function( file_handle, overlapped, read_count, wait_io_complete ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of ReadFile * Returns TRUE if successful or FALSE on error */ BOOL libcfile_ReadFile( HANDLE file_handle, VOID *buffer, DWORD read_size, DWORD *read_count, OVERLAPPED *overlapped ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } if( buffer == NULL ) { return( FALSE ); } if( read_count == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "ReadFile" ); if( function != NULL ) { result = function( file_handle, buffer, read_size, read_count, overlapped ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Reads a buffer from the file * This is an internal function to wrap ReadFile in synchronous and asynchronous mode * the current_offset is only used in asynchronous mode. * Returns the number of bytes read if successful, or -1 on error */ ssize_t libcfile_internal_file_read_buffer_at_offset_with_error_code( libcfile_internal_file_t *internal_file, off64_t current_offset, uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ) { OVERLAPPED overlapped_data; static char *function = "libcfile_internal_file_read_buffer_at_offset_with_error_code"; OVERLAPPED *overlapped = NULL; DWORD read_count = 0; BOOL io_pending = FALSE; BOOL result = FALSE; if( internal_file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( UINT32_MAX < SSIZE_MAX ) if( size > (size_t) UINT32_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } /* For Windows devices we need to use asynchronous IO here * otherwise the ReadFile function can return ERROR_INVALID_PARAMETER * if the device is read concurrently and the the block is too large * to fill. Using smaller block sizes decreases the likelyhood but * also impacts the performance. */ if( internal_file->use_asynchronous_io != 0 ) { if( memory_set( &overlapped_data, 0, sizeof( OVERLAPPED ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear overlapped data.", function ); return( -1 ); } overlapped = &overlapped_data; overlapped->Offset = (DWORD) ( 0x0ffffffffUL & current_offset ); overlapped->OffsetHigh = (DWORD) ( current_offset >> 32 ); } #if ( WINVER <= 0x0500 ) result = libcfile_ReadFile( internal_file->handle, buffer, (DWORD) size, &read_count, overlapped ); #else result = ReadFile( internal_file->handle, (VOID *) buffer, (DWORD) size, &read_count, overlapped ); #endif if( result == 0 ) { *error_code = (uint32_t) GetLastError(); switch( *error_code ) { case ERROR_HANDLE_EOF: break; case ERROR_IO_PENDING: io_pending = TRUE; break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, *error_code, "%s: unable to read from file.", function ); return( -1 ); } } if( io_pending == TRUE ) { #if ( WINVER <= 0x0500 ) result = libcfile_GetOverlappedResult( internal_file->handle, overlapped, &read_count, TRUE ); #else result = GetOverlappedResult( internal_file->handle, overlapped, &read_count, TRUE ); #endif if( result == 0 ) { *error_code = (uint32_t) GetLastError(); switch( *error_code ) { case ERROR_HANDLE_EOF: break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, *error_code, "%s: unable to read from file - overlapped result.", function ); return( -1 ); } } } return( (ssize_t) read_count ); } /* Reads a buffer from the file * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns the number of bytes read if successful, or -1 on error */ ssize_t libcfile_file_read_buffer_with_error_code( libcfile_file_t *file, uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_read_buffer_with_error_code"; size_t buffer_offset = 0; size_t read_size = 0; size_t read_size_remainder = 0; ssize_t read_count = 0; BOOL result = FALSE; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( UINT32_MAX < SSIZE_MAX ) if( size > (size_t) UINT32_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } if( internal_file->block_size != 0 ) { if( internal_file->current_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file - current offset value out of bounds.", function ); return( -1 ); } if( (size64_t) internal_file->current_offset > internal_file->size ) { return( 0 ); } if( ( (size64_t) internal_file->current_offset + size ) > internal_file->size ) { size = (size_t) ( internal_file->size - internal_file->current_offset ); } } if( size == 0 ) { return( 0 ); } if( ( internal_file->block_data_offset > 0 ) && ( internal_file->block_data_size == 0 ) ) { if( memory_set( internal_file->block_data, 0, internal_file->block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } read_count = libcfile_internal_file_read_buffer_at_offset_with_error_code( internal_file, internal_file->current_offset - internal_file->block_data_offset, internal_file->block_data, internal_file->block_size, error_code, error ); if( read_count != (ssize_t) internal_file->block_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: invalid read count: %" PRIzd " returned.", function, read_count ); return( -1 ); } internal_file->block_data_size = (size_t) read_count; } if( ( internal_file->block_data_offset > 0 ) && ( internal_file->block_data_offset < internal_file->block_data_size ) ) { read_size = internal_file->block_data_size - internal_file->block_data_offset; if( read_size > size ) { read_size = size; } if( memory_copy( buffer, &( internal_file->block_data[ internal_file->block_data_offset ] ), read_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy block data.", function ); return( -1 ); } buffer_offset += read_size; size -= read_size; internal_file->current_offset += read_size; internal_file->block_data_offset += read_size; } if( size == 0 ) { return( (ssize_t) buffer_offset ); } if( internal_file->block_size == 0 ) { read_size = size; } else { read_size_remainder = size % internal_file->block_size; read_size = size - read_size_remainder; } if( read_size > 0 ) { read_count = libcfile_internal_file_read_buffer_at_offset_with_error_code( internal_file, internal_file->current_offset, &( buffer[ buffer_offset ] ), read_size, error_code, error ); if( ( internal_file->block_size == 0 ) && ( read_count < 0 ) ) { result = 0; } else if( ( internal_file->block_size != 0 ) && ( read_count != (ssize_t) read_size ) ) { /* Windows devices sometimes don't allow to read the last block * this behavior is seen with e.g. \\.\D: */ if( ( internal_file->is_device_filename != 0 ) && ( ( read_size - read_count ) == internal_file->block_size ) && ( (size64_t) internal_file->current_offset == ( internal_file->size - internal_file->block_size ) ) ) { result = 1; } else { result = 0; } } else { result = 1; } if( result != 0 ) { buffer_offset += (size_t) read_count; internal_file->current_offset += read_count; } /* Non-buffered Windows devices require the buffer to be aligned. * The alignment can be determined by GetFileInformationByHandleEx. * The ReadFile function appears to return ERROR_INVALID_PARAMETER * in case it fails on alignment. */ else if( *error_code == ERROR_INVALID_PARAMETER ) { /* As a fallback read the data using the block data buffer */ while( read_size > 0 ) { read_count = libcfile_internal_file_read_buffer_at_offset_with_error_code( internal_file, internal_file->current_offset, internal_file->block_data, internal_file->block_size, error_code, error ); if( read_count != (ssize_t) internal_file->block_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: invalid read count: %" PRIzd " returned.", function, read_count ); return( -1 ); } if( memory_copy( &( buffer[ buffer_offset ] ), internal_file->block_data, internal_file->block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy block data.", function ); return( -1 ); } buffer_offset += internal_file->block_size; read_size -= internal_file->block_size; internal_file->current_offset += internal_file->block_size; } } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: invalid read count: %" PRIzd " returned.", function, read_count ); return( -1 ); } } if( read_size_remainder > 0 ) { /* The read was cut short */ if( read_count != (ssize_t) read_size ) { return( (ssize_t) buffer_offset ); } if( memory_set( internal_file->block_data, 0, internal_file->block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } read_count = libcfile_internal_file_read_buffer_at_offset_with_error_code( internal_file, internal_file->current_offset, internal_file->block_data, internal_file->block_size, error_code, error ); if( read_count != (ssize_t) internal_file->block_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: invalid read count: %" PRIzd " returned.", function, read_count ); return( -1 ); } internal_file->block_data_offset = 0; internal_file->block_data_size = (size_t) read_count; if( memory_copy( &( buffer[ buffer_offset ] ), internal_file->block_data, read_size_remainder ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy block data.", function ); return( -1 ); } buffer_offset += read_size_remainder; internal_file->current_offset += read_size_remainder; internal_file->block_data_offset += read_size_remainder; } return( (ssize_t) buffer_offset ); } #elif defined( HAVE_READ ) /* Reads a buffer from the file * This function uses the POSIX read function or equivalent * Returns the number of bytes read if successful, or -1 on error */ ssize_t libcfile_file_read_buffer_with_error_code( libcfile_file_t *file, uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_read_buffer_with_error_code"; size_t buffer_offset = 0; size_t read_size = 0; size_t read_size_remainder = 0; ssize_t read_count = 0; int result = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } if( internal_file->block_size != 0 ) { if( internal_file->current_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file - current offset value out of bounds.", function ); return( -1 ); } if( (size64_t) internal_file->current_offset > internal_file->size ) { return( 0 ); } if( ( (size64_t) internal_file->current_offset + size ) > internal_file->size ) { size = (size_t) ( internal_file->size - internal_file->current_offset ); } } if( size == 0 ) { return( 0 ); } if( ( internal_file->block_data_offset > 0 ) && ( internal_file->block_data_size == 0 ) ) { if( memory_set( internal_file->block_data, 0, internal_file->block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } read_count = read( internal_file->descriptor, internal_file->block_data, internal_file->block_size ); if( read_count != (ssize_t) internal_file->block_size ) { *error_code = (uint32_t) errno; libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, *error_code, "%s: unable to read from file.", function ); return( -1 ); } internal_file->block_data_size = (size_t) read_count; } if( ( internal_file->block_data_offset > 0 ) && ( internal_file->block_data_offset < internal_file->block_data_size ) ) { read_size = internal_file->block_data_size - internal_file->block_data_offset; if( read_size > size ) { read_size = size; } if( memory_copy( buffer, &( internal_file->block_data[ internal_file->block_data_offset ] ), read_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy block data.", function ); return( -1 ); } buffer_offset += read_size; size -= read_size; internal_file->block_data_offset += read_size; internal_file->current_offset += read_size; } if( size == 0 ) { return( (ssize_t) buffer_offset ); } if( internal_file->block_size == 0 ) { read_size = size; } else { read_size_remainder = size % internal_file->block_size; read_size = size - read_size_remainder; } if( read_size > 0 ) { read_count = read( internal_file->descriptor, (void *) &( buffer[ buffer_offset ] ), read_size ); if( ( internal_file->block_size == 0 ) && ( read_count < 0 ) ) { result = 0; } else if( ( internal_file->block_size != 0 ) && ( read_count != (ssize_t) read_size ) ) { result = 0; } else { result = 1; } if( result == 0 ) { *error_code = (uint32_t) errno; libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, *error_code, "%s: unable to read from file.", function ); return( -1 ); } buffer_offset += (size_t) read_count; internal_file->current_offset += read_count; } if( read_size_remainder > 0 ) { /* The read was cut short */ if( read_count != (ssize_t) read_size ) { return( (ssize_t) buffer_offset ); } if( memory_set( internal_file->block_data, 0, internal_file->block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } read_count = read( internal_file->descriptor, internal_file->block_data, internal_file->block_size ); if( read_count != (ssize_t) internal_file->block_size ) { *error_code = (uint32_t) errno; libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, *error_code, "%s: unable to read from file.", function ); return( -1 ); } internal_file->block_data_offset = 0; internal_file->block_data_size = (size_t) read_count; if( memory_copy( &( buffer[ buffer_offset ] ), internal_file->block_data, read_size_remainder ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy block data.", function ); return( -1 ); } buffer_offset += read_size_remainder; internal_file->block_data_offset += read_size_remainder; internal_file->current_offset += read_size_remainder; } return( (ssize_t) buffer_offset ); } #else #error Missing file read function #endif /* Writes a buffer to the file * Returns the number of bytes written if successful, or -1 on error */ ssize_t libcfile_file_write_buffer( libcfile_file_t *file, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "libcfile_file_write_buffer"; ssize_t write_count = 0; uint32_t error_code = 0; write_count = libcfile_file_write_buffer_with_error_code( file, buffer, size, &error_code, error ); if( write_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write to file.", function ); return( -1 ); } return( write_count ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of WriteFile * Returns TRUE if successful or FALSE on error */ BOOL libcfile_WriteFile( HANDLE file_handle, VOID *buffer, DWORD write_size, DWORD *write_count, OVERLAPPED *overlapped ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } if( buffer == NULL ) { return( FALSE ); } if( write_count == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "WriteFile" ); if( function != NULL ) { result = function( file_handle, buffer, write_size, write_count, overlapped ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Writes a buffer to the file * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns the number of bytes written if successful, or -1 on error */ ssize_t libcfile_file_write_buffer_with_error_code( libcfile_file_t *file, const uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_write_buffer_with_error_code"; ssize_t write_count = 0; BOOL result = FALSE; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( UINT32_MAX < SSIZE_MAX ) if( size > (size_t) UINT32_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } #if ( WINVER <= 0x0500 ) result = libcfile_WriteFile( internal_file->handle, (VOID *) buffer, (DWORD) size, (DWORD *) &write_count, NULL ); #else result = WriteFile( internal_file->handle, (VOID *) buffer, (DWORD) size, (DWORD *) &write_count, NULL ); #endif if( result == 0 ) { *error_code = (uint32_t) GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, *error_code, "%s: unable to write to file.", function ); return( -1 ); } if( write_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: invalid write count: %" PRIzd " returned.", function, write_count ); return( -1 ); } internal_file->current_offset += write_count; return( write_count ); } #elif defined( HAVE_WRITE ) /* Writes a buffer to the file * This function uses the POSIX write function or equivalent * Returns the number of bytes written if successful, or -1 on error */ ssize_t libcfile_file_write_buffer_with_error_code( libcfile_file_t *file, const uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_write_buffer_with_error_code"; ssize_t write_count = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } write_count = write( internal_file->descriptor, (void *) buffer, size ); if( write_count < 0 ) { *error_code = (uint32_t) errno; libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, *error_code, "%s: unable to write to file.", function ); return( -1 ); } internal_file->current_offset += write_count; return( write_count ); } #else #error Missing file write function #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) #if !defined( INVALID_SET_FILE_POINTER ) #define INVALID_SET_FILE_POINTER ((LONG) -1) #endif /* Cross Windows safe version of SetFilePointerEx * Returns TRUE if successful or FALSE on error */ BOOL libcfile_SetFilePointerEx( HANDLE file_handle, LARGE_INTEGER distance_to_move_large_integer, LARGE_INTEGER *new_file_pointer_large_integer, DWORD move_method ) { FARPROC function = NULL; HMODULE library_handle = NULL; LONG distance_to_move_lower_long = 0; LONG distance_to_move_upper_long = 0; DWORD error_number = 0; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } if( new_file_pointer_large_integer == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "SetFilePointerEx" ); if( function != NULL ) { result = function( file_handle, distance_to_move_large_integer, new_file_pointer_large_integer, move_method ); } else { function = GetProcAddress( library_handle, (LPCSTR) "SetFilePointer" ); if( function != NULL ) { #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x520 distance_to_move_lower_long = distance_to_move_large_integer.QuadPart & 0xffffffffUL; distance_to_move_upper_long = distance_to_move_large_integer.QuadPart >> 32; #else distance_to_move_lower_long = distance_to_move_large_integer.LowPart; distance_to_move_upper_long = distance_to_move_large_integer.HighPart; #endif distance_to_move_lower_long = function( file_handle, distance_to_move_lower_long, &distance_to_move_upper_long, move_method ); error_number = GetLastError(); if( ( distance_to_move_lower_long != (LONG) INVALID_SET_FILE_POINTER ) || ( error_number == NO_ERROR ) ) { #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x520 new_file_pointer_large_integer->QuadPart = distance_to_move_upper_long; new_file_pointer_large_integer->QuadPart <<= 32; new_file_pointer_large_integer->QuadPart += distance_to_move_lower_long; #else new_file_pointer_large_integer->HighPart = distance_to_move_upper_long; new_file_pointer_large_integer->LowPart = distance_to_move_lower_long; #endif result = TRUE; } } } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif #if defined( WINAPI ) /* Seeks a certain offset within the file * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns the offset if the seek is successful or -1 on error */ off64_t libcfile_file_seek_offset( libcfile_file_t *file, off64_t offset, int whence, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_seek_offset"; off64_t offset_remainder = 0; LARGE_INTEGER large_integer_offset = LIBCFILE_LARGE_INTEGER_ZERO; DWORD error_code = 0; DWORD move_method = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } if( offset > (off64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid offset value exceeds maximum.", function ); return( -1 ); } if( ( whence != SEEK_CUR ) && ( whence != SEEK_END ) && ( whence != SEEK_SET ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported whence.", function ); return( -1 ); } if( internal_file->block_size != 0 ) { if( whence == SEEK_CUR ) { offset += internal_file->current_offset; } else if( whence == SEEK_END ) { offset += internal_file->size; } whence = SEEK_SET; offset_remainder = offset % internal_file->block_size; offset -= offset_remainder; } if( whence == SEEK_SET ) { move_method = FILE_BEGIN; } else if( whence == SEEK_CUR ) { move_method = FILE_CURRENT; } else if( whence == SEEK_END ) { move_method = FILE_END; } /* SetFilePointerEx cannot be used in combination with FILE_FLAG_OVERLAPPED. */ if( internal_file->use_asynchronous_io == 0 ) { #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520 large_integer_offset.QuadPart = (LONGLONG) offset; #else large_integer_offset.LowPart = (DWORD) ( 0x0ffffffffUL & offset ); large_integer_offset.HighPart = (LONG) ( offset >> 32 ); #endif #if ( WINVER <= 0x0500 ) if( libcfile_SetFilePointerEx( internal_file->handle, large_integer_offset, &large_integer_offset, move_method ) == 0 ) #else if( SetFilePointerEx( internal_file->handle, large_integer_offset, &large_integer_offset, move_method ) == 0 ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, error_code, "%s: unable to seek offset in file.", function ); return( -1 ); } #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520 offset = (off64_t) large_integer_offset.QuadPart; #else offset = ( (off64_t) large_integer_offset.HighPart << 32 ) + large_integer_offset.LowPart; #endif if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: invalid offset: %" PRIi64 " returned.", function, offset ); return( -1 ); } } internal_file->current_offset = offset; if( internal_file->block_size != 0 ) { internal_file->current_offset += offset_remainder; internal_file->block_data_offset = (size_t) offset_remainder; internal_file->block_data_size = 0; } return( internal_file->current_offset ); } #elif defined( HAVE_LSEEK ) /* Seeks a certain offset within the file * This function uses the POSIX lseek function or equivalent * Returns the offset if the seek is successful or -1 on error */ off64_t libcfile_file_seek_offset( libcfile_file_t *file, off64_t offset, int whence, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_seek_offset"; off64_t offset_remainder = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } if( offset > (off64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid offset value exceeds maximum.", function ); return( -1 ); } if( ( whence != SEEK_CUR ) && ( whence != SEEK_END ) && ( whence != SEEK_SET ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported whence.", function ); return( -1 ); } if( internal_file->block_size != 0 ) { if( whence == SEEK_CUR ) { offset += internal_file->current_offset; } else if( whence == SEEK_END ) { offset += internal_file->size; } whence = SEEK_SET; offset_remainder = offset % internal_file->block_size; offset -= offset_remainder; } offset = lseek( internal_file->descriptor, (off_t) offset, whence ); if( offset < 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, errno, "%s: unable to seek offset in file.", function ); return( -1 ); } internal_file->current_offset = offset; if( internal_file->block_size != 0 ) { internal_file->current_offset += offset_remainder; internal_file->block_data_offset = (size_t) offset_remainder; internal_file->block_data_size = 0; } return( internal_file->current_offset ); } #else #error Missing file lseek function #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of SetEndOfFile * Returns TRUE if successful or FALSE on error */ BOOL libcfile_SetEndOfFile( HANDLE file_handle ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "SetEndOfFile" ); if( function != NULL ) { result = function( file_handle ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Resizes the file * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcfile_file_resize( libcfile_file_t *file, size64_t size, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_resize"; off64_t offset = 0; LARGE_INTEGER large_integer_offset = LIBCFILE_LARGE_INTEGER_ZERO; DWORD error_code = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } if( size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520 large_integer_offset.QuadPart = (LONGLONG) size; #else large_integer_offset.LowPart = (DWORD) ( 0x0ffffffffUL & size ); large_integer_offset.HighPart = (LONG) ( size >> 32 ); #endif #if ( WINVER <= 0x0500 ) if( libcfile_SetFilePointerEx( internal_file->handle, large_integer_offset, &large_integer_offset, FILE_BEGIN ) == 0 ) #else if( SetFilePointerEx( internal_file->handle, large_integer_offset, &large_integer_offset, FILE_BEGIN ) == 0 ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, error_code, "%s: unable to seek offset in file.", function ); return( -1 ); } #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x0520 offset = (off64_t) large_integer_offset.QuadPart; #else offset = ( (off64_t) large_integer_offset.HighPart << 32 ) + large_integer_offset.LowPart; #endif if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: invalid offset: %" PRIi64 " returned.", function, offset ); return( -1 ); } internal_file->current_offset = offset; #if ( WINVER <= 0x0500 ) if( libcfile_SetEndOfFile( internal_file->handle ) == 0 ) #else if( SetEndOfFile( internal_file->handle ) == 0 ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, error_code, "%s: unable to resize file.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_FTRUNCATE ) /* Resizes the file * This function uses the POSIX truncate function or equivalent * Returns 1 if successful or -1 on error */ int libcfile_file_resize( libcfile_file_t *file, size64_t size, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_resize"; off_t offset = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } #if SIZEOF_OFF_T >= 8 if( size > (size64_t) INT64_MAX ) #else if( size > (size64_t) INT32_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( ftruncate( internal_file->descriptor, (off_t) size ) != 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, errno, "%s: unable to resize file.", function ); return( -1 ); } offset = lseek( internal_file->descriptor, 0, SEEK_CUR ); if( offset < 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, errno, "%s: unable to seek offset in file.", function ); return( -1 ); } internal_file->current_offset = (off64_t) offset; return( 1 ); } #else #error Missing file truncate function #endif /* Checks if the file is open * Returns 1 if open, 0 if not or -1 on error */ int libcfile_file_is_open( libcfile_file_t *file, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_is_open"; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; #if defined( WINAPI ) if( internal_file->handle == INVALID_HANDLE_VALUE ) #else if( internal_file->descriptor == -1 ) #endif { return( 0 ); } return( 1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of GetFileSizeEx * Returns TRUE if successful or FALSE on error */ BOOL libcfile_GetFileSizeEx( HANDLE file_handle, LARGE_INTEGER *file_size_large_integer ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD error_number = 0; DWORD file_size_upper_dword = 0; DWORD file_size_lower_dword = 0; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } if( file_size_large_integer == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "GetFileSizeEx" ); if( function != NULL ) { result = function( file_handle, file_size_large_integer ); } else { function = GetProcAddress( library_handle, (LPCSTR) "GetFileSize" ); if( function != NULL ) { file_size_lower_dword = function( file_handle, &file_size_upper_dword ); error_number = GetLastError(); if( ( file_size_lower_dword != INVALID_FILE_SIZE ) || ( error_number == NO_ERROR ) ) { #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x520 file_size_large_integer->QuadPart = file_size_upper_dword; file_size_large_integer->QuadPart <<= 32; file_size_large_integer->QuadPart += file_size_lower_dword; #else file_size_large_integer->HighPart = file_size_upper_dword; file_size_large_integer->LowPart = file_size_lower_dword; #endif result = TRUE; } } } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* Retrieves the current offset in the file * Returns 1 if successful or -1 on error */ int libcfile_file_get_offset( libcfile_file_t *file, off64_t *offset, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_get_offset"; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; #if defined( WINAPI ) if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } #else if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } #endif if( offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid offset.", function ); return( -1 ); } *offset = internal_file->current_offset; return( 1 ); } #if defined( WINAPI ) #if !defined( IOCTL_DISK_GET_LENGTH_INFO ) #define IOCTL_DISK_GET_LENGTH_INFO \ CTL_CODE( IOCTL_DISK_BASE, 0x0017, METHOD_BUFFERED, FILE_READ_ACCESS ) typedef struct { LARGE_INTEGER Length; } GET_LENGTH_INFORMATION; #endif /* !defined( IOCTL_DISK_GET_LENGTH_INFO ) */ /* Retrieves the size of the file * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcfile_file_get_size( libcfile_file_t *file, size64_t *size, libcerror_error_t **error ) { DISK_GEOMETRY disk_geometry; GET_LENGTH_INFORMATION length_information; libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_get_size"; size_t read_count = 0; LARGE_INTEGER large_integer_size = LIBCFILE_LARGE_INTEGER_ZERO; uint32_t error_code = 0; int result = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } result = libcfile_file_is_device( file, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if file is a device.", function ); return( -1 ); } else if( result != 0 ) { read_count = libcfile_file_io_control_read_with_error_code( file, IOCTL_DISK_GET_LENGTH_INFO, NULL, 0, (uint8_t *) &length_information, sizeof( GET_LENGTH_INFORMATION ), &error_code, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to query device for: IOCTL_DISK_GET_LENGTH_INFO.", function ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( ( error != NULL ) && ( *error != NULL ) ) { libcnotify_print_error_backtrace( *error ); } } #endif libcerror_error_free( error ); if( error_code == ERROR_NOT_SUPPORTED ) { /* A floppy device does not support IOCTL_DISK_GET_LENGTH_INFO */ read_count = libcfile_file_io_control_read( file, IOCTL_DISK_GET_DRIVE_GEOMETRY, NULL, 0, (uint8_t *) &disk_geometry, sizeof( DISK_GEOMETRY ), error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to query device for: IOCTL_DISK_GET_DRIVE_GEOMETRY.", function ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( ( error != NULL ) && ( *error != NULL ) ) { libcnotify_print_error_backtrace( *error ); } } #endif libcerror_error_free( error ); } else { *size = disk_geometry.Cylinders.QuadPart; *size *= disk_geometry.TracksPerCylinder; *size *= disk_geometry.SectorsPerTrack; *size *= disk_geometry.BytesPerSector; } } } else { *size = (size64_t) length_information.Length.HighPart << 32; *size += length_information.Length.LowPart; } } else { #if ( WINVER <= 0x0500 ) if( libcfile_GetFileSizeEx( internal_file->handle, &large_integer_size ) == 0 ) #else if( GetFileSizeEx( internal_file->handle, &large_integer_size ) == 0 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file size.", function ); return( -1 ); } #if defined( __BORLANDC__ ) && __BORLANDC__ <= 0x520 *size = (size64_t) large_integer_size.QuadPart; #else *size = ( (size64_t) large_integer_size.HighPart << 32 ) + large_integer_size.LowPart; #endif } return( 1 ); } #elif defined( HAVE_FSTAT ) /* Retrieves the size of the file * This function uses the POSIX fstat function or equivalent * Returns 1 if successful or -1 on error */ int libcfile_file_get_size( libcfile_file_t *file, size64_t *size, libcerror_error_t **error ) { struct stat file_statistics; libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_get_size"; off64_t current_offset = 0; off64_t offset = 0; ssize_t read_count = 0; size_t file_statistics_size = 0; #if !defined( DIOCGMEDIASIZE ) && defined( DIOCGDINFO ) struct disklabel disk_label; #endif #if defined( DKIOCGETBLOCKCOUNT ) && defined( DKIOCGETBLOCKSIZE ) uint64_t block_count = 0; uint32_t bytes_per_sector = 0; #endif if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } file_statistics_size = sizeof( struct stat ); if( memory_set( &file_statistics, 0, file_statistics_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file statistics.", function ); return( -1 ); } if( fstat( internal_file->descriptor, &file_statistics ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file statistics.", function ); return( -1 ); } if( S_ISBLK( file_statistics.st_mode ) || S_ISCHR( file_statistics.st_mode ) ) { #if defined( BLKGETSIZE64 ) read_count = libcfile_file_io_control_read( file, (uint32_t) BLKGETSIZE64, NULL, 0, (uint8_t *) size, 8, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to query device for: BLKGETSIZE64.", function ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( ( error != NULL ) && ( *error != NULL ) ) { libcnotify_print_error_backtrace( *error ); } } #endif libcerror_error_free( error ); } #elif defined( DIOCGMEDIASIZE ) read_count = libcfile_file_io_control_read( file, (uint32_t) DIOCGMEDIASIZE, NULL, 0, (uint8_t *) size, 8, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to query device for: DIOCGMEDIASIZE.", function ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( ( error != NULL ) && ( *error != NULL ) ) { libcnotify_print_error_backtrace( *error ); } } #endif libcerror_error_free( error ); } #elif defined( DIOCGDINFO ) read_count = libcfile_file_io_control_read( file, (uint32_t) DIOCGDINFO, NULL, 0, (uint8_t *) &disk_label, sizeof( struct disklabel ), error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to query device for: DIOCGDINFO.", function ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( ( error != NULL ) && ( *error != NULL ) ) { libcnotify_print_error_backtrace( *error ); } } #endif libcerror_error_free( error ); } else { *size = disk_label.d_secperunit * disk_label.d_secsize; } #elif defined( DKIOCGETBLOCKCOUNT ) && defined( DKIOCGETBLOCKSIZE ) read_count = libcfile_file_io_control_read( file, (uint32_t) DKIOCGETBLOCKSIZE, NULL, 0, (uint8_t *) &bytes_per_sector, 4, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to query device for: DKIOCGETBLOCKSIZE.", function ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( ( error != NULL ) && ( *error != NULL ) ) { libcnotify_print_error_backtrace( *error ); } } #endif libcerror_error_free( error ); } else { read_count = libcfile_file_io_control_read( file, (uint32_t) DKIOCGETBLOCKCOUNT, NULL, 0, (uint8_t *) &block_count, 4, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to query device for: DKIOCGETBLOCKCOUNT.", function ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( ( error != NULL ) && ( *error != NULL ) ) { libcnotify_print_error_backtrace( *error ); } } #endif libcerror_error_free( error ); } else { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: block size: %" PRIu32 " block count: %" PRIu64 " ", function, bytes_per_sector, block_count ); } #endif *size = (size64_t) ( block_count * bytes_per_sector ); } } #endif if( read_count <= 0 ) { /* Try to seek the end of the file and determine the size based on the offset */ if( libcfile_file_get_offset( file, ¤t_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current offset.", function ); return( -1 ); } offset = libcfile_file_seek_offset( file, 0, SEEK_END, error ); if( offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek end of file.", function ); return( -1 ); } *size = (size64_t) offset; offset = libcfile_file_seek_offset( file, current_offset, SEEK_SET, error ); if( offset == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset: %" PRIi64 ".", function, current_offset ); return( -1 ); } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: device media size: %" PRIu64 "\n", function, *size ); } #endif } else { *size = (size64_t) file_statistics.st_size; } return( 1 ); } #else #error Missing file get size function #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of GetFileType * Returns the file type if successful or FILE_TYPE_UNKNOWN on error */ DWORD libcfile_GetFileType( HANDLE file_handle ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD result = FILE_TYPE_UNKNOWN; if( file_handle == NULL ) { return( FILE_TYPE_UNKNOWN ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FILE_TYPE_UNKNOWN ); } function = GetProcAddress( library_handle, (LPCSTR) "GetFileType" ); if( function != NULL ) { result = function( file_handle ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FILE_TYPE_UNKNOWN; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Determines if a file is a device * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if true, 0 if not or -1 on error */ int libcfile_file_is_device( libcfile_file_t *file, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_is_device"; DWORD file_type = 0; int result = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } /* TODO what about FILE_ATTRIBUTE_DEVICE using GetFileAttributes() */ /* Use the GetFileType function to rule out certain file types * like pipes, sockets, etc. */ #if ( WINVER <= 0x0500 ) file_type = libcfile_GetFileType( internal_file->handle ); #else file_type = GetFileType( internal_file->handle ); #endif if( file_type == FILE_TYPE_UNKNOWN ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file type.", function ); return( -1 ); } else if( file_type == FILE_TYPE_DISK ) { if( internal_file->is_device_filename ) { result = 1; } } return( result ); } #elif defined( HAVE_FSTAT ) /* Determines if a file is a device * This function uses the POSIX fstat function or equivalent * Returns 1 if true, 0 if not or -1 on error */ int libcfile_file_is_device( libcfile_file_t *file, libcerror_error_t **error ) { struct stat file_statistics; libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_is_device"; size_t file_statistics_size = 0; int result = 0; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } file_statistics_size = sizeof( struct stat ); if( memory_set( &file_statistics, 0, file_statistics_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file statistics.", function ); return( -1 ); } if( fstat( internal_file->descriptor, &file_statistics ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file statistics.", function ); return( -1 ); } if( S_ISBLK( file_statistics.st_mode ) || S_ISCHR( file_statistics.st_mode ) ) { result = 1; } return( result ); } #else #error Missing file is device function #endif /* Read data from a device file using IO control * Returns the number of bytes read if successful or -1 on error */ ssize_t libcfile_file_io_control_read( libcfile_file_t *file, uint32_t control_code, uint8_t *control_data, size_t control_data_size, uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libcfile_file_io_control_read"; ssize_t read_count = 0; uint32_t error_code = 0; read_count = libcfile_file_io_control_read_with_error_code( file, control_code, control_data, control_data_size, data, data_size, &error_code, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, "%s: unable to to IO control device.", function ); return( -1 ); } return( read_count ); } #if defined( HAVE_IOCTL ) || defined( WINAPI ) /* Read data from a device file using IO control * This function uses the POSIX ioctl function or WINAPI DeviceIoControl * Returns the number of bytes read if successful or -1 on error */ ssize_t libcfile_file_io_control_read_with_error_code( libcfile_file_t *file, uint32_t control_code, uint8_t *control_data, size_t control_data_size, uint8_t *data, size_t data_size, uint32_t *error_code, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_io_control_read_with_error_code"; #if defined( WINAPI ) DWORD response_count = 0; #endif if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; #if defined( WINAPI ) if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } #else if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } #endif if( control_data == NULL ) { if( control_data_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid control data size value exceeds maximum.", function ); return( -1 ); } } else { #if ( UINT32_MAX < SSIZE_MAX ) if( control_data_size > (size_t) UINT32_MAX ) #else if( control_data_size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid control data size value exceeds maximum.", function ); return( -1 ); } } if( data == NULL ) { if( data_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid data size value exceeds maximum.", function ); return( -1 ); } } else { #if ( UINT32_MAX < SSIZE_MAX ) if( data_size > (size_t) UINT32_MAX ) #else if( data_size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid data size value exceeds maximum.", function ); return( -1 ); } } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } #if defined( WINAPI ) if( DeviceIoControl( internal_file->handle, (DWORD) control_code, control_data, (DWORD) control_data_size, data, (DWORD) data_size, &response_count, NULL ) == 0 ) { *error_code = (uint32_t) GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, *error_code, "%s: unable to IO control device.", function ); return( -1 ); } #if ( SSIZE_MAX < UINT32_MAX ) if( response_count > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid response count value out of bounds.", function ); return( -1 ); } #endif return( (ssize_t) response_count ); #elif defined( HAVE_IOCTL ) if( control_data != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported control data.", function ); return( -1 ); } if( ioctl( internal_file->descriptor, (int) control_code, data ) == -1 ) { *error_code = (uint32_t) errno; libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_IOCTL_FAILED, *error_code, "%s: unable to IO control device.", function ); return( -1 ); } return( (size_t) data_size ); #endif } #else #error Missing file IO control with data function #endif /* On some versions of Linux the FADVISE definions seem to be missing from fcntl.h */ #if defined( HAVE_POSIX_FADVISE ) && !defined( WINAPI ) #if !defined( POSIX_FADV_NORMAL ) #define POSIX_FADV_NORMAL 0 #endif #if !defined( POSIX_FADV_RANDOM ) #define POSIX_FADV_RANDOM 1 #endif #if !defined( POSIX_FADV_SEQUENTIAL ) #define POSIX_FADV_SEQUENTIAL 2 #endif #endif /* #if defined( HAVE_POSIX_FADVISE ) && !defined( WINAPI ) */ /* Sets the expected access behavior so the system can optimize the access * Returns 1 if successful or -1 on error */ int libcfile_file_set_access_behavior( libcfile_file_t *file, int access_behavior, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_set_access_behavior"; #if defined( HAVE_POSIX_FADVISE ) && !defined( WINAPI ) int advice = POSIX_FADV_NORMAL; int result = 0; #endif if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; #if defined( WINAPI ) if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } #else if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } #endif if( ( access_behavior != LIBCFILE_ACCESS_BEHAVIOR_NORMAL ) && ( access_behavior != LIBCFILE_ACCESS_BEHAVIOR_RANDOM ) && ( access_behavior != LIBCFILE_ACCESS_BEHAVIOR_SEQUENTIAL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access behavior: %d.", function, access_behavior ); return( -1 ); } #if defined( HAVE_POSIX_FADVISE ) && !defined( WINAPI ) if( access_behavior == LIBCFILE_ACCESS_BEHAVIOR_NORMAL ) { advice = POSIX_FADV_NORMAL; } else if( access_behavior == LIBCFILE_ACCESS_BEHAVIOR_RANDOM ) { advice = POSIX_FADV_RANDOM; } else if( access_behavior == LIBCFILE_ACCESS_BEHAVIOR_SEQUENTIAL ) { advice = POSIX_FADV_SEQUENTIAL; } result = posix_fadvise( internal_file->descriptor, 0, 0, advice ); /* Safely ignore if the device does not support fadvise. * Note that FreeBSD 10.0 had a bug and was returning -1 * and setting errno. */ if( ( result != 0 ) && ( result != ENODEV ) ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, errno, "%s: unable to advice file descriptor on access behavior.", function ); return( -1 ); } #endif /* defined( HAVE_POSIX_FADVISE ) && !defined( WINAPI ) */ return( 1 ); } /* Sets the block size for the read and seek operations * A block size of 0 represents no block-based operations * The total size must be a multitude of block size * Returns 1 if successful or -1 on error */ int libcfile_file_set_block_size( libcfile_file_t *file, size_t block_size, libcerror_error_t **error ) { libcfile_internal_file_t *internal_file = NULL; static char *function = "libcfile_file_set_block_size"; if( file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file.", function ); return( -1 ); } internal_file = (libcfile_internal_file_t *) file; if( ( internal_file->access_flags & LIBCFILE_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: setting block size not supported with write access.", function ); return( -1 ); } #if defined( WINAPI ) if( internal_file->handle == INVALID_HANDLE_VALUE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing handle.", function ); return( -1 ); } #else if( internal_file->descriptor == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file - missing descriptor.", function ); return( -1 ); } #endif #if defined( WINAPI ) && ( UINT32_MAX < SSIZE_MAX ) if( block_size > (size_t) UINT32_MAX ) #else if( block_size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid block size value exceeds maximum.", function ); return( -1 ); } if( block_size != internal_file->block_size ) { if( libcfile_file_get_size( file, &( internal_file->size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size.", function ); return( -1 ); } if( internal_file->block_data != NULL ) { memory_free( internal_file->block_data ); internal_file->block_data = NULL; internal_file->block_data_size = 0; } if( block_size > 0 ) { if( ( internal_file->size % block_size ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid block size value out of bounds.", function ); return( -1 ); } internal_file->block_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( internal_file == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file.", function ); return( -1 ); } if( memory_set( internal_file->block_data, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear block data.", function ); return( -1 ); } } internal_file->block_size = block_size; } return( 1 ); } libfsapfs-20190210/libcfile/libcfile_libclocale.h0000664000175000017500000000266613430101166023674 0ustar00lordyestalordyesta00000000000000/* * The internal libclocale header * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_LIBCLOCALE_H ) #define _LIBCFILE_LIBCLOCALE_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if defined( HAVE_LOCAL_LIBCLOCALE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT * before including libclocale.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCLOCALE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _LIBCFILE_LIBCLOCALE_H ) */ libfsapfs-20190210/libcfile/libcfile_support.c0000664000175000017500000006011113430101166023277 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_SYS_STAT_H ) #include #endif #if defined( HAVE_ERRNO_H ) #include #endif #if defined( HAVE_UNISTD_H ) #include #endif #include "libcfile_definitions.h" #include "libcfile_libcerror.h" #include "libcfile_libclocale.h" #include "libcfile_libuna.h" #include "libcfile_support.h" #if !defined( HAVE_LOCAL_LIBCFILE ) /* Returns the library version as a string */ const char *libcfile_get_version( void ) { return( (const char *) LIBCFILE_VERSION_STRING ); } /* Retrieves the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libcfile_get_codepage( int *codepage, libcerror_error_t **error ) { static char *function = "libcfile_get_codepage"; if( libclocale_codepage_get( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve codepage.", function ); return( -1 ); } return( 1 ); } /* Sets the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libcfile_set_codepage( int codepage, libcerror_error_t **error ) { static char *function = "libcfile_set_codepage"; if( libclocale_codepage_set( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set codepage.", function ); return( -1 ); } return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of GetFileAttributesA * Returns the file attributs if successful or INVALID_FILE_ATTRIBUTES on error */ DWORD libcfile_GetFileAttributesA( LPCSTR filename ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD result = 0; if( filename == NULL ) { return( INVALID_FILE_ATTRIBUTES ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( INVALID_FILE_ATTRIBUTES ); } function = GetProcAddress( library_handle, (LPCSTR) "GetFileAttributesA" ); if( function != NULL ) { result = function( filename ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = INVALID_FILE_ATTRIBUTES; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Determines if a file exists * This function uses the WINAPI function for Windows XP (0x0501) or later, * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if the file exists, 0 if not or -1 on error */ int libcfile_file_exists( const char *filename, libcerror_error_t **error ) { static char *function = "libcfile_file_exists"; int result = 1; DWORD error_code = 0; DWORD file_attributes = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } #if ( WINVER <= 0x0500 ) file_attributes = libcfile_GetFileAttributesA( (LPCSTR) filename ); #else file_attributes = GetFileAttributesA( (LPCSTR) filename ); #endif if( file_attributes == INVALID_FILE_ATTRIBUTES ) { error_code = GetLastError(); switch( error_code ) { case ERROR_ACCESS_DENIED: result = 1; break; case ERROR_FILE_NOT_FOUND: case ERROR_PATH_NOT_FOUND: result = 0; break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, error_code, "%s: unable to determine attributes of file: %s.", function, filename ); return( -1 ); } } return( result ); } #elif defined( HAVE_STAT ) /* Determines if a file exists * This function uses the POSIX stat function or equivalent * Returns 1 if the file exists, 0 if not or -1 on error */ int libcfile_file_exists( const char *filename, libcerror_error_t **error ) { struct stat file_statistics; static char *function = "libcfile_file_exists"; int result = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( memory_set( &file_statistics, 0, sizeof( struct stat ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file statistics.", function ); return( -1 ); } result = stat( filename, &file_statistics ); if( result != 0 ) { switch( errno ) { case EACCES: result = 1; break; case ENOENT: result = 0; break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, errno, "%s: unable to stat file: %" PRIs_SYSTEM ".", function, filename ); return( -1 ); } } else { result = 1; } return( result ); } #else #error Missing file exists function #endif #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of GetFileAttributesW * Returns the file attributs if successful or INVALID_FILE_ATTRIBUTES on error */ DWORD libcfile_GetFileAttributesW( LPCWSTR filename ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD result = 0; if( filename == NULL ) { return( INVALID_FILE_ATTRIBUTES ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( INVALID_FILE_ATTRIBUTES ); } function = GetProcAddress( library_handle, (LPCSTR) "GetFileAttributesW" ); if( function != NULL ) { result = function( filename ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = INVALID_FILE_ATTRIBUTES; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Determines if a file exists using get file attibutes * This function uses the WINAPI function for Windows XP (0x0501) or later, * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if the file exists, 0 if not or -1 on error */ int libcfile_file_exists_wide( const wchar_t *filename, libcerror_error_t **error ) { static char *function = "libcfile_file_exists_wide"; int result = 1; DWORD error_code = 0; DWORD file_attributes = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } #if ( WINVER <= 0x0500 ) file_attributes = libcfile_GetFileAttributesW( (LPCWSTR) filename ); #else file_attributes = GetFileAttributesW( (LPCWSTR) filename ); #endif if( file_attributes == INVALID_FILE_ATTRIBUTES ) { error_code = GetLastError(); switch( error_code ) { case ERROR_ACCESS_DENIED: result = 1; break; case ERROR_FILE_NOT_FOUND: case ERROR_PATH_NOT_FOUND: result = 0; break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, error_code, "%s: unable to determine attributes of file: %ls.", function, filename ); return( -1 ); } } return( result ); } #elif defined( HAVE_STAT ) /* Determines if a file exists * This function uses the POSIX stat function or equivalent * Returns 1 if the file exists, 0 if not or -1 on error */ int libcfile_file_exists_wide( const wchar_t *filename, libcerror_error_t **error ) { struct stat file_statistics; char *narrow_filename = NULL; static char *function = "libcfile_file_exists_wide"; size_t narrow_filename_size = 0; size_t filename_size = 0; int result = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } filename_size = 1 + wide_string_length( filename ); /* Convert the filename to a narrow string * if the platform has no wide character open function */ if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) filename, filename_size, &narrow_filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) filename, filename_size, &narrow_filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) filename, filename_size, libclocale_codepage, &narrow_filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) filename, filename_size, libclocale_codepage, &narrow_filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow character filename size.", function ); return( -1 ); } narrow_filename = narrow_string_allocate( narrow_filename_size ); if( narrow_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create narrow character filename.", function ); return( -1 ); } if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) narrow_filename, narrow_filename_size, (libuna_utf32_character_t *) filename, filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) narrow_filename, narrow_filename_size, (libuna_utf16_character_t *) filename, filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) narrow_filename, narrow_filename_size, libclocale_codepage, (libuna_utf32_character_t *) filename, filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) narrow_filename, narrow_filename_size, libclocale_codepage, (libuna_utf16_character_t *) filename, filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set narrow character filename.", function ); memory_free( narrow_filename ); return( -1 ); } result = stat( narrow_filename, &file_statistics ); memory_free( narrow_filename ); if( result != 0 ) { switch( errno ) { case EACCES: result = 1; break; case ENOENT: result = 0; break; default: libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_GENERIC, errno, "%s: unable to stat file: %" PRIs_SYSTEM ".", function, filename ); return( -1 ); } } else { result = 1; } return( result ); } #else #error Missing file exists wide function #endif #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of DeleteFileA * Returns TRUE if successful or FALSE on error */ BOOL libcfile_DeleteFileA( LPCSTR filename ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( filename == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "DeleteFileA" ); if( function != NULL ) { result = function( filename ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ /* Removes a file * Returns 1 if successful or -1 on error */ int libcfile_file_remove( const char *filename, libcerror_error_t **error ) { static char *function = "libcfile_file_remove"; uint32_t error_code = 0; if( libcfile_file_remove_with_error_code( filename, &error_code, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_UNLINK_FAILED, "%s: unable to remove file.", function ); return( -1 ); } return( 1 ); } #if defined( WINAPI ) /* Removes a file * This function uses the WINAPI function for Windows XP (0x0501) or later, * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcfile_file_remove_with_error_code( const char *filename, uint32_t *error_code, libcerror_error_t **error ) { static char *function = "libcfile_file_remove_with_error_code"; BOOL result = FALSE; if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } #if ( WINVER <= 0x0500 ) result = libcfile_DeleteFileA( filename ); #else result = DeleteFileA( filename ); #endif if( result == 0 ) { *error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_UNLINK_FAILED, *error_code, "%s: unable to remove file.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_UNLINK ) /* Removes a file * This function uses the POSIX unlink function or equivalent * Returns 1 if successful or -1 on error */ int libcfile_file_remove_with_error_code( const char *filename, uint32_t *error_code, libcerror_error_t **error ) { static char *function = "libcfile_file_remove_with_error_code"; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } if( unlink( filename ) != 0 ) { *error_code = (uint32_t) errno; libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_UNLINK_FAILED, *error_code, "%s: unable to unlink file.", function ); return( -1 ); } return( 1 ); } #else #error Missing file remove function #endif #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of DeleteFileW * Returns TRUE if successful or FALSE on error */ BOOL libcfile_DeleteFileW( LPCWSTR filename ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( filename == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "DeleteFileW" ); if( function != NULL ) { result = function( filename ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ /* Removes a file * Returns 1 if successful or -1 on error */ int libcfile_file_remove_wide( const wchar_t *filename, libcerror_error_t **error ) { static char *function = "libcfile_file_remove_wide"; uint32_t error_code = 0; if( libcfile_file_remove_wide_with_error_code( filename, &error_code, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_UNLINK_FAILED, "%s: unable to remove file.", function ); return( -1 ); } return( 1 ); } #if defined( WINAPI ) /* Removes a file * This function uses the WINAPI function for Windows XP (0x0501) or later, * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcfile_file_remove_wide_with_error_code( const wchar_t *filename, uint32_t *error_code, libcerror_error_t **error ) { static char *function = "libcfile_file_remove_wide_with_error_code"; BOOL result = FALSE; if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } #if ( WINVER <= 0x0500 ) result = libcfile_DeleteFileW( filename ); #else result = DeleteFileW( filename ); #endif if( result == 0 ) { *error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_UNLINK_FAILED, *error_code, "%s: unable to remove file.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_UNLINK ) /* Removes a file * This function uses the POSIX unlink function or equivalent * Returns 1 if successful or -1 on error */ int libcfile_file_remove_wide_with_error_code( const wchar_t *filename, uint32_t *error_code, libcerror_error_t **error ) { char *narrow_filename = NULL; static char *function = "libcfile_file_remove_wide_with_error_code"; size_t narrow_filename_size = 0; size_t filename_size = 0; int result = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( error_code == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid error code.", function ); return( -1 ); } filename_size = 1 + wide_string_length( filename ); /* Convert the filename to a narrow string * if the platform has no wide character open function */ if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) filename, filename_size, &narrow_filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) filename, filename_size, &narrow_filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) filename, filename_size, libclocale_codepage, &narrow_filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) filename, filename_size, libclocale_codepage, &narrow_filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow character filename size.", function ); goto on_error; } narrow_filename = narrow_string_allocate( narrow_filename_size ); if( narrow_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create narrow character filename.", function ); goto on_error; } if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) narrow_filename, narrow_filename_size, (libuna_utf32_character_t *) filename, filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) narrow_filename, narrow_filename_size, (libuna_utf16_character_t *) filename, filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) narrow_filename, narrow_filename_size, libclocale_codepage, (libuna_utf32_character_t *) filename, filename_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) narrow_filename, narrow_filename_size, libclocale_codepage, (libuna_utf16_character_t *) filename, filename_size, error ); #else #error Unsupported size of wchar_t #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set narrow character filename.", function ); goto on_error; } if( unlink( narrow_filename ) != 0 ) { *error_code = (uint32_t) errno; libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_UNLINK_FAILED, *error_code, "%s: unable to unlink file.", function ); goto on_error; } memory_free( narrow_filename ); return( 1 ); on_error: if( narrow_filename != NULL ) { memory_free( narrow_filename ); } return( -1 ); } #else #error Missing file remove wide function #endif #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libcfile/libcfile_support.h0000664000175000017500000000573413430101166023316 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_SUPPORT_H ) #define _LIBCFILE_SUPPORT_H #include #include #include "libcfile_extern.h" #include "libcfile_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCFILE ) LIBCFILE_EXTERN \ const char *libcfile_get_version( void ); LIBCFILE_EXTERN \ int libcfile_get_codepage( int *codepage, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_set_codepage( int codepage, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) DWORD libcfile_GetFileAttributesA( LPCSTR filename ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_exists( const char *filename, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) DWORD libcfile_GetFileAttributesW( LPCWSTR filename ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_exists_wide( const wchar_t *filename, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_DeleteFileA( LPCSTR filename ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_remove( const char *filename, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_remove_with_error_code( const char *filename, uint32_t *error_code, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_DeleteFileW( LPCWSTR filename ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_remove_wide( const wchar_t *filename, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_remove_wide_with_error_code( const wchar_t *filename, uint32_t *error_code, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCFILE_SUPPORT_H ) */ libfsapfs-20190210/libcfile/libcfile_error.c0000664000175000017500000000554013430101166022721 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcfile_error.h" #include "libcfile_libcerror.h" #if !defined( HAVE_LOCAL_LIBCFILE ) /* Free an error and its elements */ void libcfile_error_free( libcfile_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcfile_error_fprint( libcfile_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcfile_error_sprint( libcfile_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcfile_error_backtrace_fprint( libcfile_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcfile_error_backtrace_sprint( libcfile_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ libfsapfs-20190210/libcfile/Makefile.am0000664000175000017500000000154313430101166021626 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCFILE AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ noinst_LTLIBRARIES = libcfile.la libcfile_la_SOURCES = \ libcfile_definitions.h \ libcfile_error.c libcfile_error.h \ libcfile_extern.h \ libcfile_file.c libcfile_file.h \ libcfile_libcerror.h \ libcfile_libclocale.h \ libcfile_libcnotify.h \ libcfile_libuna.h \ libcfile_notify.c libcfile_notify.h \ libcfile_support.c libcfile_support.h \ libcfile_system_string.c libcfile_system_string.h \ libcfile_types.h \ libcfile_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcfile ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcfile_la_SOURCES) libfsapfs-20190210/libcfile/libcfile_libcerror.h0000664000175000017500000000264113430101166023557 0ustar00lordyestalordyesta00000000000000/* * The internal libcerror header * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_LIBCERROR_H ) #define _LIBCFILE_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCFILE_LIBCERROR_H ) */ libfsapfs-20190210/libcfile/libcfile_unused.h0000664000175000017500000000254613430101166023103 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_INTERNAL_UNUSED_H ) #define _LIBCFILE_INTERNAL_UNUSED_H #include #if !defined( LIBCFILE_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCFILE_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCFILE_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCFILE_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCFILE_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCFILE_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libcfile/libcfile_types.h0000664000175000017500000000273313430101166022742 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_INTERNAL_TYPES_H ) #define _LIBCFILE_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBCFILE for local use of libcfile * The definitions in are copied here * for local use of libcfile */ #if defined( HAVE_LOCAL_LIBCFILE ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libcfile_file {} libcfile_file_t; #else typedef intptr_t libcfile_file_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBCFILE ) */ #endif /* !defined( _LIBCFILE_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libcfile/libcfile_extern.h0000664000175000017500000000254513430101166023104 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_INTERNAL_EXTERN_H ) #define _LIBCFILE_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCFILE for local use of libcfile */ #if !defined( HAVE_LOCAL_LIBCFILE ) /* If libtool DLL support is enabled set LIBCFILE_DLL_EXPORT * before including libcfile/extern.h */ #if defined( _WIN32 ) && defined( DLL_EXPORT ) #define LIBCFILE_DLL_EXPORT #endif #include #else #define LIBCFILE_EXTERN /* extern */ #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ #endif /* !defined( _LIBCFILE_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libcfile/libcfile_notify.h0000664000175000017500000000307313430101166023104 0ustar00lordyestalordyesta00000000000000/* * Notification functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_NOTIFY_H ) #define _LIBCFILE_NOTIFY_H #include #include #include #include "libcfile_extern.h" #include "libcfile_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCFILE ) LIBCFILE_EXTERN \ void libcfile_notify_set_verbose( int verbose ); LIBCFILE_EXTERN \ int libcfile_notify_set_stream( FILE *stream, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_notify_stream_open( const char *filename, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_notify_stream_close( libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCFILE_NOTIFY_H ) */ libfsapfs-20190210/libcfile/libcfile_definitions.h0000664000175000017500000000550113430101166024105 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCFILE_INTERNAL_DEFINITIONS_H ) #define LIBCFILE_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCFILE for local use of libcfile */ #if !defined( HAVE_LOCAL_LIBCFILE ) #include /* The definitions in are copied here * for local use of libcfile */ #else #define LIBCFILE_VERSION 20180102 /* The libcfile version string */ #define LIBCFILE_VERSION_STRING "20180102" /* The file access flags * bit 1 set to 1 for read access * bit 2 set to 1 for write access * bit 3 set to 1 to truncate an existing file on write * bit 4-8 not used */ enum LIBCFILE_ACCESS_FLAGS { LIBCFILE_ACCESS_FLAG_READ = 0x01, LIBCFILE_ACCESS_FLAG_WRITE = 0x02, LIBCFILE_ACCESS_FLAG_TRUNCATE = 0x04 }; /* The file access macros */ #define LIBCFILE_OPEN_READ ( LIBCFILE_ACCESS_FLAG_READ ) #define LIBCFILE_OPEN_WRITE ( LIBCFILE_ACCESS_FLAG_WRITE ) #define LIBCFILE_OPEN_READ_WRITE ( LIBCFILE_ACCESS_FLAG_READ | LIBCFILE_ACCESS_FLAG_WRITE ) #define LIBCFILE_OPEN_WRITE_TRUNCATE ( LIBCFILE_ACCESS_FLAG_WRITE | LIBCFILE_ACCESS_FLAG_TRUNCATE ) #define LIBCFILE_OPEN_READ_WRITE_TRUNCATE ( LIBCFILE_ACCESS_FLAG_READ | LIBCFILE_ACCESS_FLAG_WRITE | LIBCFILE_ACCESS_FLAG_TRUNCATE ) /* The access behavior types */ enum LIBCFILE_ACCESS_BEHAVIOR { LIBCFILE_ACCESS_BEHAVIOR_NORMAL, LIBCFILE_ACCESS_BEHAVIOR_RANDOM, LIBCFILE_ACCESS_BEHAVIOR_SEQUENTIAL }; #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ /* Platform specific macros */ #if defined( WINAPI ) #if defined( _MSC_VER ) #define LIBCFILE_LARGE_INTEGER_ZERO { 0, 0 } #elif defined( __BORLANDC__ ) #define LIBCFILE_LARGE_INTEGER_ZERO { 0 } #elif defined( __CYGWIN__ ) #define LIBCFILE_LARGE_INTEGER_ZERO { { 0, 0 } } #elif defined( __MINGW32_VERSION ) || defined( __MINGW64_VERSION_MAJOR ) #define LIBCFILE_LARGE_INTEGER_ZERO { { 0, 0 } } #endif #if !defined( INVALID_FILE_ATTRIBUTES ) #define INVALID_FILE_ATTRIBUTES ( (DWORD) -1 ) #endif #endif /* defined( WINAPI ) */ #endif libfsapfs-20190210/libcfile/libcfile_file.h0000664000175000017500000002022313430101166022507 0ustar00lordyestalordyesta00000000000000/* * File functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_INTERNAL_FILE_H ) #define _LIBCFILE_INTERNAL_FILE_H #include #include #include "libcfile_extern.h" #include "libcfile_libcerror.h" #include "libcfile_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcfile_internal_file libcfile_internal_file_t; struct libcfile_internal_file { #if defined( WINAPI ) /* The (file) handle */ HANDLE handle; /* Value to indicate the filename indicate this is a device file */ uint8_t is_device_filename; /* Value to indicate asynchronous IO should be used. */ uint8_t use_asynchronous_io; #else /* The (file) descriptor */ int descriptor; #endif /* defined( WINAPI ) */ /* The access flags */ int access_flags; /* The size */ size64_t size; /* The current offset */ off64_t current_offset; /* The block size */ size_t block_size; /* The block data */ uint8_t *block_data; /* The block data offset */ size_t block_data_offset; /* The block data size */ size_t block_data_size; }; #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_CloseHandle( HANDLE file_handle ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_initialize( libcfile_file_t **file, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_free( libcfile_file_t **file, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) HANDLE libcfile_CreateFileA( LPCSTR filename, DWORD desired_access, DWORD share_mode, SECURITY_ATTRIBUTES *security_attributes, DWORD creation_disposition, DWORD flags_and_attributes, HANDLE template_file ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_open( libcfile_file_t *file, const char *filename, int access_flags, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_open_with_error_code( libcfile_file_t *file, const char *filename, int access_flags, uint32_t *error_code, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) HANDLE libcfile_CreateFileW( LPCWSTR filename, DWORD desired_access, DWORD share_mode, SECURITY_ATTRIBUTES *security_attributes, DWORD creation_disposition, DWORD flags_and_attributes, HANDLE template_file ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_open_wide( libcfile_file_t *file, const wchar_t *filename, int access_flags, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_open_wide_with_error_code( libcfile_file_t *file, const wchar_t *filename, int access_flags, uint32_t *error_code, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ LIBCFILE_EXTERN \ int libcfile_file_close( libcfile_file_t *file, libcerror_error_t **error ); LIBCFILE_EXTERN \ ssize_t libcfile_file_read_buffer( libcfile_file_t *file, uint8_t *buffer, size_t size, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_GetOverlappedResult( HANDLE file_handle, OVERLAPPED *overlapped, DWORD *read_count, BOOL wait_io_complete ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_ReadFile( HANDLE file_handle, VOID *buffer, DWORD read_size, DWORD *read_count, OVERLAPPED *overlapped ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) ssize_t libcfile_internal_file_read_buffer_at_offset_with_error_code( libcfile_internal_file_t *internal_file, off64_t current_offset, uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ); #endif /* defined( WINAPI ) */ LIBCFILE_EXTERN \ ssize_t libcfile_file_read_buffer_with_error_code( libcfile_file_t *file, uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ); LIBCFILE_EXTERN \ ssize_t libcfile_file_write_buffer( libcfile_file_t *file, const uint8_t *buffer, size_t size, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_WriteFile( HANDLE file_handle, VOID *buffer, DWORD write_size, DWORD *write_count, OVERLAPPED *overlapped ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ ssize_t libcfile_file_write_buffer_with_error_code( libcfile_file_t *file, const uint8_t *buffer, size_t size, uint32_t *error_code, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_SetFilePointerEx( HANDLE file_handle, LARGE_INTEGER distance_to_move_large_integer, LARGE_INTEGER *new_file_pointer_large_integer, DWORD move_method ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ off64_t libcfile_file_seek_offset( libcfile_file_t *file, off64_t offset, int whence, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_SetEndOfFile( HANDLE file_handle ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_resize( libcfile_file_t *file, size64_t size, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_is_open( libcfile_file_t *file, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcfile_GetFileSizeEx( HANDLE file_handle, LARGE_INTEGER *file_size_large_integer ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_get_offset( libcfile_file_t *file, off64_t *offset, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_get_size( libcfile_file_t *file, size64_t *size, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) DWORD libcfile_GetFileType( HANDLE file_handle ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCFILE_EXTERN \ int libcfile_file_is_device( libcfile_file_t *file, libcerror_error_t **error ); LIBCFILE_EXTERN \ ssize_t libcfile_file_io_control_read( libcfile_file_t *file, uint32_t control_code, uint8_t *control_data, size_t control_data_size, uint8_t *data, size_t data_size, libcerror_error_t **error ); LIBCFILE_EXTERN \ ssize_t libcfile_file_io_control_read_with_error_code( libcfile_file_t *file, uint32_t control_code, uint8_t *control_data, size_t control_data_size, uint8_t *data, size_t data_size, uint32_t *error_code, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_set_access_behavior( libcfile_file_t *file, int access_behavior, libcerror_error_t **error ); LIBCFILE_EXTERN \ int libcfile_file_set_block_size( libcfile_file_t *file, size_t block_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCFILE_INTERNAL_FILE_H ) */ libfsapfs-20190210/libcfile/libcfile_error.h0000664000175000017500000000340513430101166022724 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_INTERNAL_ERROR_H ) #define _LIBCFILE_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBCFILE ) #include #endif #include "libcfile_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCFILE ) LIBCFILE_EXTERN \ void libcfile_error_free( libcfile_error_t **error ); LIBCFILE_EXTERN \ int libcfile_error_fprint( libcfile_error_t *error, FILE *stream ); LIBCFILE_EXTERN \ int libcfile_error_sprint( libcfile_error_t *error, char *string, size_t size ); LIBCFILE_EXTERN \ int libcfile_error_backtrace_fprint( libcfile_error_t *error, FILE *stream ); LIBCFILE_EXTERN \ int libcfile_error_backtrace_sprint( libcfile_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCFILE_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libcfile/libcfile_system_string.c0000664000175000017500000006173213430101166024507 0ustar00lordyestalordyesta00000000000000/* * System string functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #include "libcfile_libcerror.h" #include "libcfile_libclocale.h" #include "libcfile_libuna.h" #include "libcfile_system_string.h" #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) && SIZEOF_WCHAR_T != 2 && SIZEOF_WCHAR_T != 4 #error Unsupported size of wchar_t #endif /* Determines the size of a narrow string from a system string * Returns 1 if successful or -1 on error */ int libcfile_system_string_size_to_narrow_string( const system_character_t *system_string, size_t system_string_size, size_t *narrow_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_size_to_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) system_string, system_string_size, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) system_string, system_string_size, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) system_string, system_string_size, libclocale_codepage, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) system_string, system_string_size, libclocale_codepage, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow string size.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string size.", function ); return( -1 ); } *narrow_string_size = system_string_size; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string to a narrow string * Returns 1 if successful or -1 on error */ int libcfile_system_string_copy_to_narrow_string( const system_character_t *system_string, size_t system_string_size, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_copy_to_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf32_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf16_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf32_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf16_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set narrow string.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string_size < system_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid narrow string size value too small.", function ); return( -1 ); } if( system_string_copy( narrow_string, system_string, system_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set narrow string.", function ); return( -1 ); } narrow_string[ system_string_size - 1 ] = 0; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Determines the size of a system string from a narrow string * Returns 1 if successful or -1 on error */ int libcfile_system_string_size_from_narrow_string( const char *narrow_string, size_t narrow_string_size, size_t *system_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_size_from_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_utf8( (libuna_utf8_character_t *) narrow_string, narrow_string_size, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_utf8( (libuna_utf8_character_t *) narrow_string, narrow_string_size, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_byte_stream( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_byte_stream( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine system string size.", function ); return( -1 ); } #else if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string size.", function ); return( -1 ); } *system_string_size = narrow_string_size; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string from a narrow string * Returns 1 if successful or -1 on error */ int libcfile_system_string_copy_from_narrow_string( system_character_t *system_string, size_t system_string_size, const char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_copy_from_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_utf8( (libuna_utf32_character_t *) system_string, system_string_size, (libuna_utf8_character_t *) narrow_string, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_utf8( (libuna_utf16_character_t *) system_string, system_string_size, (libuna_utf8_character_t *) narrow_string, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_byte_stream( (libuna_utf32_character_t *) system_string, system_string_size, (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_byte_stream( (libuna_utf16_character_t *) system_string, system_string_size, (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set system string.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size < narrow_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid system string size value too small.", function ); return( -1 ); } if( system_string_copy( system_string, narrow_string, narrow_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set narrow string.", function ); return( -1 ); } system_string[ narrow_string_size - 1 ] = 0; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Determines the size of a wide string from a system string * Returns 1 if successful or -1 on error */ int libcfile_system_string_size_to_wide_string( const system_character_t *system_string, size_t system_string_size, size_t *wide_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_size_to_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string size.", function ); return( -1 ); } *wide_string_size = system_string_size; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_utf8( (libuna_utf8_character_t *) system_string, system_string_size, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_utf8( (libuna_utf8_character_t *) system_string, system_string_size, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_byte_stream( (uint8_t *) system_string, system_string_size, libclocale_codepage, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_byte_stream( (uint8_t *) system_string, system_string_size, libclocale_codepage, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide string size.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string to a wide string * Returns 1 if successful or -1 on error */ int libcfile_system_string_copy_to_wide_string( const system_character_t *system_string, size_t system_string_size, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_copy_to_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( wide_string_size < system_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid wide string size value too small.", function ); return( -1 ); } if( system_string_copy( wide_string, system_string, system_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set wide string.", function ); return( -1 ); } wide_string[ system_string_size - 1 ] = 0; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_utf8( (libuna_utf32_character_t *) wide_string, wide_string_size, (libuna_utf8_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_utf8( (libuna_utf16_character_t *) wide_string, wide_string_size, (libuna_utf8_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_byte_stream( (libuna_utf32_character_t *) wide_string, wide_string_size, (uint8_t *) system_string, system_string_size, libclocale_codepage, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_byte_stream( (libuna_utf16_character_t *) wide_string, wide_string_size, (uint8_t *) system_string, system_string_size, libclocale_codepage, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set wide string.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Determines the size of a system string from a wide string * Returns 1 if successful or -1 on error */ int libcfile_system_string_size_from_wide_string( const wchar_t *wide_string, size_t wide_string_size, size_t *system_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_size_from_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string size.", function ); return( -1 ); } *system_string_size = wide_string_size; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) wide_string, wide_string_size, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) wide_string, wide_string_size, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) wide_string, wide_string_size, libclocale_codepage, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) wide_string, wide_string_size, libclocale_codepage, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide string size.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string from a wide string * Returns 1 if successful or -1 on error */ int libcfile_system_string_copy_from_wide_string( system_character_t *system_string, size_t system_string_size, const wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ) { static char *function = "libcfile_system_string_copy_from_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size < wide_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid system string size value too small.", function ); return( -1 ); } if( system_string_copy( system_string, wide_string, wide_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set wide string.", function ); return( -1 ); } system_string[ wide_string_size - 1 ] = 0; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) system_string, system_string_size, (libuna_utf32_character_t *) wide_string, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) system_string, system_string_size, (libuna_utf16_character_t *) wide_string, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) system_string, system_string_size, libclocale_codepage, (libuna_utf32_character_t *) wide_string, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) system_string, system_string_size, libclocale_codepage, (libuna_utf16_character_t *) wide_string, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set wide string.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libcfile/Makefile.in0000664000175000017500000007644013430101253021644 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcfile ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcfile_la_LIBADD = am__libcfile_la_SOURCES_DIST = libcfile_definitions.h libcfile_error.c \ libcfile_error.h libcfile_extern.h libcfile_file.c \ libcfile_file.h libcfile_libcerror.h libcfile_libclocale.h \ libcfile_libcnotify.h libcfile_libuna.h libcfile_notify.c \ libcfile_notify.h libcfile_support.c libcfile_support.h \ libcfile_system_string.c libcfile_system_string.h \ libcfile_types.h libcfile_unused.h @HAVE_LOCAL_LIBCFILE_TRUE@am_libcfile_la_OBJECTS = libcfile_error.lo \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_file.lo libcfile_notify.lo \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_support.lo \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_system_string.lo libcfile_la_OBJECTS = $(am_libcfile_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCFILE_TRUE@am_libcfile_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcfile_error.Plo \ ./$(DEPDIR)/libcfile_file.Plo ./$(DEPDIR)/libcfile_notify.Plo \ ./$(DEPDIR)/libcfile_support.Plo \ ./$(DEPDIR)/libcfile_system_string.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcfile_la_SOURCES) DIST_SOURCES = $(am__libcfile_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCFILE_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCFILE_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCFILE_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCFILE_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_LOCAL_LIBCFILE_TRUE@ @LIBCLOCALE_CPPFLAGS@ \ @HAVE_LOCAL_LIBCFILE_TRUE@ @LIBCNOTIFY_CPPFLAGS@ \ @HAVE_LOCAL_LIBCFILE_TRUE@ @LIBUNA_CPPFLAGS@ @HAVE_LOCAL_LIBCFILE_TRUE@noinst_LTLIBRARIES = libcfile.la @HAVE_LOCAL_LIBCFILE_TRUE@libcfile_la_SOURCES = \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_definitions.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_error.c libcfile_error.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_extern.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_file.c libcfile_file.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_libcerror.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_libclocale.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_libcnotify.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_libuna.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_notify.c libcfile_notify.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_support.c libcfile_support.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_system_string.c libcfile_system_string.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_types.h \ @HAVE_LOCAL_LIBCFILE_TRUE@ libcfile_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcfile/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcfile/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcfile.la: $(libcfile_la_OBJECTS) $(libcfile_la_DEPENDENCIES) $(EXTRA_libcfile_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcfile_la_rpath) $(libcfile_la_OBJECTS) $(libcfile_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfile_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfile_file.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfile_notify.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfile_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfile_system_string.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcfile_error.Plo -rm -f ./$(DEPDIR)/libcfile_file.Plo -rm -f ./$(DEPDIR)/libcfile_notify.Plo -rm -f ./$(DEPDIR)/libcfile_support.Plo -rm -f ./$(DEPDIR)/libcfile_system_string.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcfile ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcfile_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcfile/libcfile_system_string.h0000664000175000017500000000541413430101166024507 0ustar00lordyestalordyesta00000000000000/* * System string functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_SYSTEM_STRING_H ) #define _LIBCFILE_SYSTEM_STRING_H #include #include #include "libcfile_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int libcfile_system_string_size_to_narrow_string( const system_character_t *system_string, size_t system_string_size, size_t *narrow_string_size, libcerror_error_t **error ); int libcfile_system_string_copy_to_narrow_string( const system_character_t *system_string, size_t system_string_size, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ); int libcfile_system_string_size_from_narrow_string( const char *narrow_string, size_t narrow_string_size, size_t *system_string_size, libcerror_error_t **error ); int libcfile_system_string_copy_from_narrow_string( system_character_t *system_string, size_t system_string_size, const char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) int libcfile_system_string_size_to_wide_string( const system_character_t *system_string, size_t system_string_size, size_t *wide_string_size, libcerror_error_t **error ); int libcfile_system_string_copy_to_wide_string( const system_character_t *system_string, size_t system_string_size, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ); int libcfile_system_string_size_from_wide_string( const wchar_t *wide_string, size_t wide_string_size, size_t *system_string_size, libcerror_error_t **error ); int libcfile_system_string_copy_from_wide_string( system_character_t *system_string, size_t system_string_size, const wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCFILE_SYSTEM_STRING_H ) */ libfsapfs-20190210/libcfile/libcfile_libcnotify.h0000664000175000017500000000266313430101166023742 0ustar00lordyestalordyesta00000000000000/* * The internal libcnotify header * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_LIBCNOTIFY_H ) #define _LIBCFILE_LIBCNOTIFY_H #include /* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify */ #if defined( HAVE_LOCAL_LIBCNOTIFY ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT * before including libcnotify.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCNOTIFY_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */ #endif /* !defined( _LIBCFILE_LIBCNOTIFY_H ) */ libfsapfs-20190210/libcfile/libcfile_libuna.h0000664000175000017500000000331213430101166023042 0ustar00lordyestalordyesta00000000000000/* * The libuna header wrapper * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCFILE_LIBUNA_H ) #define _LIBCFILE_LIBUNA_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if defined( HAVE_LOCAL_LIBUNA ) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT * before including libuna.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBUNA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _LIBCFILE_LIBUNA_H ) */ libfsapfs-20190210/libcfile/libcfile_notify.c0000664000175000017500000000530413430101166023076 0ustar00lordyestalordyesta00000000000000/* * Notification functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "libcfile_libcerror.h" #include "libcfile_libcnotify.h" #include "libcfile_notify.h" #if !defined( HAVE_LOCAL_LIBCFILE ) /* Sets the verbose notification */ void libcfile_notify_set_verbose( int verbose ) { libcnotify_verbose_set( verbose ); } /* Sets the notification stream * Returns 1 if successful or -1 on error */ int libcfile_notify_set_stream( FILE *stream, libcerror_error_t **error ) { static char *function = "libcfile_notify_set_stream"; if( libcnotify_stream_set( stream, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set stream.", function ); return( -1 ); } return( 1 ); } /* Opens the notification stream using a filename * The stream is opened in append mode * Returns 1 if successful or -1 on error */ int libcfile_notify_stream_open( const char *filename, libcerror_error_t **error ) { static char *function = "libcfile_notify_stream_open"; if( libcnotify_stream_open( filename, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open stream.", function ); return( -1 ); } return( 1 ); } /* Closes the notification stream if opened using a filename * Returns 0 if successful or -1 on error */ int libcfile_notify_stream_close( libcerror_error_t **error ) { static char *function = "libcfile_notify_stream_close"; if( libcnotify_stream_close( error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open stream.", function ); return( -1 ); } return( 0 ); } #endif /* !defined( HAVE_LOCAL_LIBCFILE ) */ libfsapfs-20190210/libcthreads/0000775000175000017500000000000013430101367020305 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcthreads/libcthreads_thread_pool.h0000664000175000017500000001007213430101203025307 0ustar00lordyestalordyesta00000000000000/* * Thread pool functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_THREAD_POOL_H ) #define _LIBCTHREADS_INTERNAL_THREAD_POOL_H #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_thread_pool libcthreads_internal_thread_pool_t; struct libcthreads_internal_thread_pool { #if defined( WINAPI ) && ( WINVER >= 0x0602 ) /* The thread pool */ TP_POOL *thread_pool; /* The cleanup group. */ TP_CLEANUP_GROUP *cleanup_group; /* The callback environment */ TP_CALLBACK_ENVIRON callback_environment; #else /* The number of threads in the pool */ int number_of_threads; #if defined( WINAPI ) /* The thread handles array */ HANDLE *thread_handles_array; /* The thread identifiers array */ DWORD *thread_identifiers_array; #elif defined( HAVE_PTHREAD_H ) /* The threads array */ pthread_t *threads_array; #else #error Missing thread type #endif #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ /* The callback function */ int (*callback_function)( intptr_t *value, void *arguments ); /* The value function arguments */ void *callback_function_arguments; /* The (current) pop index */ int pop_index; /* The (current) push index */ int push_index; /* The number of values */ int number_of_values; /* The allocated number of values */ int allocated_number_of_values; /* The values array */ intptr_t **values_array; /* The condition mutex */ libcthreads_mutex_t *condition_mutex; /* The queue empty condition */ libcthreads_condition_t *empty_condition; /* The queue full condition */ libcthreads_condition_t *full_condition; /* The status */ uint8_t status; }; LIBCTHREADS_EXTERN \ int libcthreads_thread_pool_create( libcthreads_thread_pool_t **thread_pool, const libcthreads_thread_attributes_t *thread_attributes, int number_of_threads, int maximum_number_of_values, int (*callback_function)( intptr_t *value, void *arguments ), void *callback_function_arguments, libcerror_error_t **error ); int libcthreads_internal_thread_pool_pop( libcthreads_internal_thread_pool_t *internal_thread_pool, intptr_t **value, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_thread_pool_push( libcthreads_thread_pool_t *thread_pool, intptr_t *value, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_thread_pool_push_sorted( libcthreads_thread_pool_t *thread_pool, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t sort_flags, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_thread_pool_join( libcthreads_thread_pool_t **thread_pool, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_THREAD_POOL_H ) */ libfsapfs-20190210/libcthreads/libcthreads_thread_pool.c0000664000175000017500000012406613430101203025313 0ustar00lordyestalordyesta00000000000000/* * Thread pool functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif #include "libcthreads_condition.h" #include "libcthreads_definitions.h" #include "libcthreads_libcerror.h" #include "libcthreads_mutex.h" #include "libcthreads_queue.h" #include "libcthreads_thread.h" #include "libcthreads_thread_attributes.h" #include "libcthreads_thread_pool.h" #include "libcthreads_types.h" #include "libcthreads_unused.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) #if defined( WINAPI ) && ( WINVER >= 0x0602 ) void CALLBACK libcthreads_thread_pool_callback_function_helper( TP_CALLBACK_INSTANCE *callback_instance, void *arguments, TP_WORK *thread_pool_work ) { libcerror_error_t *error = NULL; libcthreads_internal_thread_pool_t *internal_thread_pool = NULL; intptr_t *value = NULL; int callback_function_result = 0; int pop_result = 0; LIBCTHREADS_UNREFERENCED_PARAMETER( callback_instance ) LIBCTHREADS_UNREFERENCED_PARAMETER( thread_pool_work ) if( arguments == NULL ) { return; } internal_thread_pool = (libcthreads_internal_thread_pool_t *) arguments; if( ( internal_thread_pool == NULL ) || ( internal_thread_pool->callback_function == NULL ) ) { return; } pop_result = libcthreads_internal_thread_pool_pop( internal_thread_pool, &value, &error ); if( pop_result == -1 ) { #if defined( HAVE_VERBOSE_OUTPUT ) libcerror_error_backtrace_fprint( error, stdout ); #endif libcerror_error_free( &error ); return; } if( pop_result == 0 ) { return; } callback_function_result = internal_thread_pool->callback_function( value, internal_thread_pool->callback_function_arguments ); if( callback_function_result != 1 ) { #if defined( HAVE_VERBOSE_OUTPUT ) libcerror_error_backtrace_fprint( error, stdout ); #endif libcerror_error_free( &error ); } } #elif defined( WINAPI ) /* Start function helper function for WINAPI * Returns 0 if successful or 1 on error */ DWORD WINAPI libcthreads_thread_pool_callback_function_helper( void *arguments ) { libcerror_error_t *error = NULL; libcthreads_internal_thread_pool_t *internal_thread_pool = NULL; intptr_t *value = NULL; DWORD result = 1; int callback_function_result = 0; int pop_result = 0; if( arguments != NULL ) { internal_thread_pool = (libcthreads_internal_thread_pool_t *) arguments; if( ( internal_thread_pool != NULL ) && ( internal_thread_pool->callback_function != NULL ) ) { result = 0; do { pop_result = libcthreads_internal_thread_pool_pop( internal_thread_pool, &value, &error ); if( pop_result == -1 ) { break; } else if( pop_result != 0 ) { callback_function_result = internal_thread_pool->callback_function( value, internal_thread_pool->callback_function_arguments ); if( ( callback_function_result != 1 ) && ( result == 1 ) ) { result = callback_function_result; } } else if( internal_thread_pool->status == LIBCTHREADS_STATUS_EXIT ) { break; } } while( pop_result != -1 ); if( pop_result == -1 ) { result = 1; } if( error != NULL ) { #if defined( HAVE_VERBOSE_OUTPUT ) libcerror_error_backtrace_fprint( error, stdout ); #endif libcerror_error_free( &error ); } } } ExitThread( result ); } #elif defined( HAVE_PTHREAD_H ) /* Start function helper function for pthread * Returns a pointer to a newly allocated int containing 1 if successful or -1 on error * NULL is return if the helper function was unable to run the callback */ void *libcthreads_thread_pool_callback_function_helper( void *arguments ) { libcerror_error_t *error = NULL; libcthreads_internal_thread_pool_t *internal_thread_pool = NULL; intptr_t *value = NULL; int *result = NULL; int callback_function_result = 0; int pop_result = 0; if( arguments != NULL ) { internal_thread_pool = (libcthreads_internal_thread_pool_t *) arguments; if( ( internal_thread_pool != NULL ) && ( internal_thread_pool->callback_function != NULL ) ) { result = (int *) memory_allocate( sizeof( int ) ); if( result != NULL ) { *result = 1; do { pop_result = libcthreads_internal_thread_pool_pop( internal_thread_pool, &value, &error ); if( pop_result == -1 ) { break; } else if( pop_result != 0 ) { callback_function_result = internal_thread_pool->callback_function( value, internal_thread_pool->callback_function_arguments ); if( ( callback_function_result != 1 ) && ( *result == 1 ) ) { *result = callback_function_result; } } else if( internal_thread_pool->status == LIBCTHREADS_STATUS_EXIT ) { break; } } while( pop_result != -1 ); if( pop_result == -1 ) { *result = -1; } if( error != NULL ) { #if defined( HAVE_VERBOSE_OUTPUT ) libcerror_error_backtrace_fprint( error, stdout ); #endif libcerror_error_free( &error ); } } } } pthread_exit( (void *) result ); } #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ /* Creates a thread pool * Make sure the value thread_pool is referencing, is set to NULL * * The callback_function should return 1 if successful and -1 on error * Returns 1 if successful or -1 on error */ int libcthreads_thread_pool_create( libcthreads_thread_pool_t **thread_pool, const libcthreads_thread_attributes_t *thread_attributes, int number_of_threads, int maximum_number_of_values, int (*callback_function)( intptr_t *value, void *arguments ), void *callback_function_arguments, libcerror_error_t **error ) { libcthreads_internal_thread_pool_t *internal_thread_pool = NULL; static char *function = "libcthreads_thread_pool_create"; size_t array_size = 0; #if !defined( WINAPI ) || ( WINVER < 0x0602 ) int thread_index = 0; #endif #if defined( WINAPI ) DWORD error_code = 0; #endif #if defined( WINAPI ) && ( WINVER >= 0x0602 ) BOOL result = FALSE; #elif defined( WINAPI ) SECURITY_ATTRIBUTES *security_attributes = NULL; HANDLE thread_handle = NULL; #elif defined( HAVE_PTHREAD_H ) pthread_attr_t *attributes = NULL; int *thread_return_value = NULL; int pthread_result = 0; #endif #if defined( WINAPI ) && ( WINVER >= 0x0602 ) LIBCTHREADS_UNREFERENCED_PARAMETER( thread_attributes ) #endif if( thread_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread pool.", function ); return( -1 ); } if( *thread_pool != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid thread pool value already set.", function ); return( -1 ); } if( number_of_threads <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid number of threads value zero or less.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #if SIZEOF_INT > 4 if( number_of_threads > (int) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid number of threads value exceeds maximum.", function ); return( -1 ); } #endif /* SIZEOF_INT > 4 */ #else #if SIZEOF_INT <= SIZEOF_SIZE_T if( (size_t) number_of_threads > (size_t) ( SSIZE_MAX / sizeof( libcthreads_thread_t * ) ) ) #else if( number_of_threads > (int) ( SSIZE_MAX / sizeof( libcthreads_thread_t * ) ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid number of threads value exceeds maximum.", function ); return( -1 ); } #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ if( maximum_number_of_values <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid maximum number of values value zero or less.", function ); return( -1 ); } #if SIZEOF_INT <= SIZEOF_SIZE_T if( (size_t) maximum_number_of_values > (size_t) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #else if( maximum_number_of_values > (int) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid maximum number of values value exceeds maximum.", function ); return( -1 ); } if( callback_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid callback function.", function ); return( -1 ); } internal_thread_pool = memory_allocate_structure( libcthreads_internal_thread_pool_t ); if( internal_thread_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create thread pool.", function ); goto on_error; } if( memory_set( internal_thread_pool, 0, sizeof( libcthreads_internal_thread_pool_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear thread pool.", function ); memory_free( internal_thread_pool ); return( -1 ); } array_size = sizeof( intptr_t * ) * maximum_number_of_values; if( array_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid values array size value exceeds maximum.", function ); goto on_error; } internal_thread_pool->values_array = (intptr_t **) memory_allocate( array_size ); if( internal_thread_pool->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create values array.", function ); goto on_error; } if( memory_set( internal_thread_pool->values_array, 0, array_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear values array.", function ); goto on_error; } internal_thread_pool->allocated_number_of_values = maximum_number_of_values; /* The callback must be set before the callback function helper threads are created */ internal_thread_pool->callback_function = callback_function; internal_thread_pool->callback_function_arguments = callback_function_arguments; if( libcthreads_mutex_initialize( &( internal_thread_pool->condition_mutex ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create condition mutex.", function ); goto on_error; } if( libcthreads_condition_initialize( &( internal_thread_pool->empty_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create empty condition.", function ); goto on_error; } if( libcthreads_condition_initialize( &( internal_thread_pool->full_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create full condition.", function ); goto on_error; } #if defined( WINAPI ) && ( WINVER >= 0x0602 ) InitializeThreadpoolEnvironment( &( internal_thread_pool->callback_environment ) ); internal_thread_pool->thread_pool = CreateThreadpool( NULL ); if( internal_thread_pool->thread_pool == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create thread pool.", function ); goto on_error; } internal_thread_pool->cleanup_group = CreateThreadpoolCleanupGroup(); result = SetThreadpoolThreadMinimum( internal_thread_pool->thread_pool, (DWORD) number_of_threads ); if( result != TRUE ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set minimum number of threads.", function ); goto on_error; } SetThreadpoolThreadMaximum( internal_thread_pool->thread_pool, (DWORD) number_of_threads ); if( internal_thread_pool->cleanup_group == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create thread pool cleanup group.", function ); goto on_error; } SetThreadpoolCallbackPool( &( internal_thread_pool->callback_environment ), internal_thread_pool->thread_pool ); SetThreadpoolCallbackCleanupGroup( &( internal_thread_pool->callback_environment ), internal_thread_pool->cleanup_group, NULL ); #elif defined( WINAPI ) array_size = sizeof( HANDLE ) * number_of_threads; if( array_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid thread handles array size value out of bounds.", function ); goto on_error; } internal_thread_pool->thread_handles_array = (HANDLE *) memory_allocate( array_size ); if( internal_thread_pool->thread_handles_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create thread handles array.", function ); goto on_error; } if( memory_set( internal_thread_pool->thread_handles_array, 0, array_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear thread handles array.", function ); goto on_error; } internal_thread_pool->number_of_threads = number_of_threads; array_size = sizeof( DWORD ) * number_of_threads; if( array_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid thread identifiers array size value out of bounds.", function ); goto on_error; } internal_thread_pool->thread_identifiers_array = (DWORD *) memory_allocate( array_size ); if( internal_thread_pool->thread_identifiers_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create thread identifiers array.", function ); goto on_error; } if( memory_set( internal_thread_pool->thread_identifiers_array, 0, array_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear thread identifiers array.", function ); goto on_error; } if( thread_attributes != NULL ) { security_attributes = &( ( (libcthreads_internal_thread_attributes_t *) thread_attributes )->security_attributes ); } for( thread_index = 0; thread_index < number_of_threads; thread_index++ ) { thread_handle = CreateThread( security_attributes, 0, /* stack size */ &libcthreads_thread_pool_callback_function_helper, (void *) internal_thread_pool, 0, /* creation flags */ &( internal_thread_pool->thread_identifiers_array[ thread_index ] ) ); if( thread_handle == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create thread handle: %d.", function, thread_index ); goto on_error; } internal_thread_pool->thread_handles_array[ thread_index ] = thread_handle; } #elif defined( HAVE_PTHREAD_H ) array_size = sizeof( pthread_t ) * number_of_threads; if( array_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid threads array size value out of bounds.", function ); goto on_error; } internal_thread_pool->threads_array = (pthread_t *) memory_allocate( array_size ); if( internal_thread_pool->threads_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create threads array.", function ); goto on_error; } if( memory_set( internal_thread_pool->threads_array, 0, array_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear threads array.", function ); goto on_error; } internal_thread_pool->number_of_threads = number_of_threads; if( thread_attributes != NULL ) { attributes = &( ( (libcthreads_internal_thread_attributes_t *) thread_attributes )->attributes ); } for( thread_index = 0; thread_index < number_of_threads; thread_index++ ) { pthread_result = pthread_create( &( internal_thread_pool->threads_array[ thread_index ] ), attributes, &libcthreads_thread_pool_callback_function_helper, (void *) internal_thread_pool ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to create thread: %d with error: Insufficient resources.", function, thread_index ); goto on_error; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to create thread: %d.", function, thread_index ); goto on_error; } } #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ *thread_pool = (libcthreads_thread_pool_t *) internal_thread_pool; return( 1 ); on_error: if( internal_thread_pool != NULL ) { #if defined( WINAPI ) && ( WINVER >= 0x0602 ) if( internal_thread_pool->cleanup_group != NULL ) { CloseThreadpoolCleanupGroup( internal_thread_pool->cleanup_group ); internal_thread_pool->cleanup_group = NULL; } if( internal_thread_pool->thread_pool != NULL ) { CloseThreadpool( internal_thread_pool->thread_pool ); internal_thread_pool->thread_pool = NULL; } #elif defined( WINAPI ) if( internal_thread_pool->thread_identifiers_array != NULL ) { memory_free( internal_thread_pool->thread_identifiers_array ); } if( internal_thread_pool->thread_handles_array != NULL ) { while( thread_index >= 0 ) { WaitForSingleObject( internal_thread_pool->thread_handles_array[ thread_index ], INFINITE ); thread_index--; } memory_free( internal_thread_pool->thread_handles_array ); } #elif defined( HAVE_PTHREAD_H ) if( internal_thread_pool->threads_array != NULL ) { while( thread_index >= 0 ) { pthread_join( internal_thread_pool->threads_array[ thread_index ], (void **) &thread_return_value ); if( thread_return_value != NULL ) { memory_free( thread_return_value ); thread_return_value = NULL; } thread_index--; } memory_free( internal_thread_pool->threads_array ); } #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ if( internal_thread_pool->full_condition != NULL ) { libcthreads_condition_free( &( internal_thread_pool->full_condition ), NULL ); } if( internal_thread_pool->empty_condition != NULL ) { libcthreads_condition_free( &( internal_thread_pool->empty_condition ), NULL ); } if( internal_thread_pool->condition_mutex != NULL ) { libcthreads_mutex_free( &( internal_thread_pool->condition_mutex ), NULL ); } if( internal_thread_pool->values_array != NULL ) { memory_free( internal_thread_pool->values_array ); } memory_free( internal_thread_pool ); } return( -1 ); } /* Pops a value off the queue of the thread pool * Returns 1 if successful, 0 if no value available or -1 on error */ int libcthreads_internal_thread_pool_pop( libcthreads_internal_thread_pool_t *internal_thread_pool, intptr_t **value, libcerror_error_t **error ) { static char *function = "libcthreads_internal_thread_pool_pop"; int result = 0; if( internal_thread_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread pool.", function ); return( -1 ); } if( internal_thread_pool->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid thread pool - missing values array.", function ); return( -1 ); } if( libcthreads_mutex_grab( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } while( internal_thread_pool->number_of_values == 0 ) { if( internal_thread_pool->status == LIBCTHREADS_STATUS_EXIT ) { break; } if( libcthreads_condition_wait( internal_thread_pool->empty_condition, internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for empty condition.", function ); goto on_error; } } if( internal_thread_pool->number_of_values > 0 ) { *value = internal_thread_pool->values_array[ internal_thread_pool->pop_index ]; internal_thread_pool->pop_index++; if( internal_thread_pool->pop_index >= internal_thread_pool->allocated_number_of_values ) { internal_thread_pool->pop_index = 0; } internal_thread_pool->number_of_values--; result = 1; if( libcthreads_condition_broadcast( internal_thread_pool->full_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast full condition.", function ); goto on_error; } } if( libcthreads_mutex_release( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( result ); on_error: libcthreads_mutex_release( internal_thread_pool->condition_mutex, NULL ); return( -1 ); } /* Pushes a value onto the queue of the thread pool * Returns 1 if successful or -1 on error */ int libcthreads_thread_pool_push( libcthreads_thread_pool_t *thread_pool, intptr_t *value, libcerror_error_t **error ) { libcthreads_internal_thread_pool_t *internal_thread_pool = NULL; static char *function = "libcthreads_thread_pool_push"; #if defined( WINAPI ) && ( WINVER >= 0x0602 ) TP_WORK *thread_pool_work = NULL; DWORD error_code = 0; #endif if( thread_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread pool.", function ); return( -1 ); } internal_thread_pool = (libcthreads_internal_thread_pool_t *) thread_pool; if( internal_thread_pool->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid thread pool - missing values array.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( libcthreads_mutex_grab( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } while( internal_thread_pool->number_of_values == internal_thread_pool->allocated_number_of_values ) { if( libcthreads_condition_wait( internal_thread_pool->full_condition, internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for full condition.", function ); goto on_error; } } internal_thread_pool->values_array[ internal_thread_pool->push_index ] = value; internal_thread_pool->push_index++; if( internal_thread_pool->push_index >= internal_thread_pool->allocated_number_of_values ) { internal_thread_pool->push_index = 0; } internal_thread_pool->number_of_values++; /* The condition broadcast must be protected by the mutex for the WINAPI version */ if( libcthreads_condition_broadcast( internal_thread_pool->empty_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast empty condition.", function ); goto on_error; } if( libcthreads_mutex_release( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER >= 0x0602 ) thread_pool_work = CreateThreadpoolWork( &libcthreads_thread_pool_callback_function_helper, (void *) internal_thread_pool, &( internal_thread_pool->callback_environment ) ); if( thread_pool_work == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create thread pool work.", function ); return( -1 ); } SubmitThreadpoolWork( thread_pool_work ); #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ return( 1 ); on_error: libcthreads_mutex_release( internal_thread_pool->condition_mutex, NULL ); return( -1 ); } /* Pushes a value onto the thread pool in sorted order * * Uses the value_compare_function to determine the similarity of the values * The value_compare_function should return LIBCTHREADS_COMPARE_LESS, * LIBCTHREADS_COMPARE_EQUAL, LIBCTHREADS_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if the value already exists or -1 on error */ int libcthreads_thread_pool_push_sorted( libcthreads_thread_pool_t *thread_pool, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t sort_flags, libcerror_error_t **error ) { libcthreads_internal_thread_pool_t *internal_thread_pool = NULL; static char *function = "libcthreads_thread_pool_push_sorted"; int compare_result = 0; int pop_index = 0; int previous_push_index = 0; int push_index = 0; int result = 1; int value_index = 0; #if defined( WINAPI ) && ( WINVER >= 0x0602 ) TP_WORK *thread_pool_work = NULL; DWORD error_code = 0; #endif if( thread_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread pool.", function ); return( -1 ); } internal_thread_pool = (libcthreads_internal_thread_pool_t *) thread_pool; if( internal_thread_pool->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid queue - missing values array.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value compare function.", function ); return( -1 ); } if( ( sort_flags & ~( LIBCTHREADS_SORT_FLAG_UNIQUE_VALUES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported sort flags: 0x%02" PRIx8 ".", function, sort_flags ); return( -1 ); } if( libcthreads_mutex_grab( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } while( internal_thread_pool->number_of_values == internal_thread_pool->allocated_number_of_values ) { if( libcthreads_condition_wait( internal_thread_pool->full_condition, internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for full condition.", function ); goto on_error; } } pop_index = internal_thread_pool->pop_index; for( value_index = 0; value_index < internal_thread_pool->number_of_values; value_index++ ) { compare_result = value_compare_function( value, internal_thread_pool->values_array[ pop_index ], error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare value: %d.", function, value_index ); goto on_error; } else if( compare_result == LIBCTHREADS_COMPARE_EQUAL ) { if( ( sort_flags & LIBCTHREADS_SORT_FLAG_UNIQUE_VALUES ) != 0 ) { result = 0; break; } } else if( compare_result == LIBCTHREADS_COMPARE_LESS ) { result = 1; break; } else if( compare_result != LIBCTHREADS_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value compare function return value: %d.", function, compare_result ); goto on_error; } pop_index++; if( pop_index >= internal_thread_pool->allocated_number_of_values ) { pop_index = 0; } } if( result != 0 ) { push_index = internal_thread_pool->push_index; if( compare_result == LIBCTHREADS_COMPARE_LESS ) { previous_push_index = push_index - 1; while( push_index != pop_index ) { if( previous_push_index < 0 ) { previous_push_index = internal_thread_pool->allocated_number_of_values - 1; } internal_thread_pool->values_array[ push_index ] = internal_thread_pool->values_array[ previous_push_index ]; push_index = previous_push_index; previous_push_index--; } } internal_thread_pool->values_array[ push_index ] = value; internal_thread_pool->push_index++; if( internal_thread_pool->push_index >= internal_thread_pool->allocated_number_of_values ) { internal_thread_pool->push_index = 0; } internal_thread_pool->number_of_values++; /* The condition broadcast must be protected by the mutex for the WINAPI version */ if( libcthreads_condition_broadcast( internal_thread_pool->empty_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast empty condition.", function ); goto on_error; } } if( libcthreads_mutex_release( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER >= 0x0602 ) thread_pool_work = CreateThreadpoolWork( &libcthreads_thread_pool_callback_function_helper, (void *) internal_thread_pool, &( internal_thread_pool->callback_environment ) ); if( thread_pool_work == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create thread pool work.", function ); return( -1 ); } SubmitThreadpoolWork( thread_pool_work ); #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ return( result ); on_error: libcthreads_mutex_release( internal_thread_pool->condition_mutex, NULL ); return( -1 ); } /* Joins the current with a specified thread pool * The the thread is freed after join * Returns 1 if successful or -1 on error */ int libcthreads_thread_pool_join( libcthreads_thread_pool_t **thread_pool, libcerror_error_t **error ) { libcthreads_internal_thread_pool_t *internal_thread_pool = NULL; static char *function = "libcthreads_thread_pool_join"; int result = 1; #if !defined( WINAPI ) || ( WINVER < 0x0602 ) int thread_index = 0; #if defined( WINAPI ) DWORD error_code = 0; DWORD wait_status = 0; #elif defined( HAVE_PTHREAD_H ) int *thread_return_value = NULL; int pthread_result = 0; #endif #endif /* !defined( WINAPI ) || ( WINVER < 0x0602 ) */ if( thread_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread pool.", function ); return( -1 ); } if( *thread_pool == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing thread pool value.", function ); return( -1 ); } internal_thread_pool = (libcthreads_internal_thread_pool_t *) *thread_pool; *thread_pool = NULL; if( libcthreads_mutex_grab( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } internal_thread_pool->status = LIBCTHREADS_STATUS_EXIT; /* Wake up the worker threads */ if( libcthreads_condition_broadcast( internal_thread_pool->empty_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast empty condition.", function ); result = -1; } while( internal_thread_pool->number_of_values != 0 ) { /* Wait here to all the values in the queue have been processed */ if( libcthreads_condition_wait( internal_thread_pool->full_condition, internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for full condition.", function ); result = -1; break; } } if( libcthreads_mutex_release( internal_thread_pool->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER >= 0x0602 ) CloseThreadpoolCleanupGroupMembers( internal_thread_pool->cleanup_group, FALSE, NULL ); CloseThreadpoolCleanupGroup( internal_thread_pool->cleanup_group ); internal_thread_pool->cleanup_group = NULL; CloseThreadpool( internal_thread_pool->thread_pool ); internal_thread_pool->thread_pool = NULL; #elif defined( WINAPI ) for( thread_index = 0; thread_index < internal_thread_pool->number_of_threads; thread_index++ ) { wait_status = WaitForSingleObject( internal_thread_pool->thread_handles_array[ thread_index ], INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: wait for thread: %d failed.", function, thread_index ); result = -1; } } #elif defined( HAVE_PTHREAD_H ) for( thread_index = 0; thread_index < internal_thread_pool->number_of_threads; thread_index++ ) { pthread_result = pthread_join( internal_thread_pool->threads_array[ thread_index ], (void **) &thread_return_value ); if( pthread_result == EDEADLK ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to join thread: %d with error: Deadlock condition detected.", function, thread_index ); result = -1; } else if( pthread_result != 0 ) { libcerror_system_set_error( error, result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to join thread: %d.", function, thread_index ); result = -1; } /* If the thread returns NULL it never got around to launching the callback function */ else if( ( thread_return_value != NULL ) && ( *thread_return_value != 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: thread: %d returned an error status of: %d.", function, thread_index, *thread_return_value ); result = -1; } if( thread_return_value != NULL ) { memory_free( thread_return_value ); thread_return_value = NULL; } } #endif /* defined( WINAPI ) && ( WINVER >= 0x0602 ) */ if( libcthreads_condition_free( &( internal_thread_pool->full_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free full condition.", function ); result = -1; } if( libcthreads_condition_free( &( internal_thread_pool->empty_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free empty condition.", function ); result = -1; } if( libcthreads_mutex_free( &( internal_thread_pool->condition_mutex ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free condition mutex.", function ); result = -1; } #if defined( WINAPI ) && ( WINVER < 0x0602 ) memory_free( internal_thread_pool->thread_identifiers_array ); memory_free( internal_thread_pool->thread_handles_array ); #elif defined( HAVE_PTHREAD_H ) memory_free( internal_thread_pool->threads_array ); #endif memory_free( internal_thread_pool->values_array ); memory_free( internal_thread_pool ); return( result ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_repeating_thread.c0000664000175000017500000004205713430101203026317 0ustar00lordyestalordyesta00000000000000/* * Repeating thread functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #include #endif #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_condition.h" #include "libcthreads_definitions.h" #include "libcthreads_libcerror.h" #include "libcthreads_mutex.h" #include "libcthreads_repeating_thread.h" #include "libcthreads_thread_attributes.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) #if defined( WINAPI ) /* Start function helper function for WINAPI * Returns 0 if successful or 1 on error */ DWORD WINAPI libcthreads_repeating_thread_start_function_helper( void *arguments ) { libcthreads_internal_repeating_thread_t *internal_repeating_thread = NULL; DWORD result = 0; int start_function_result = 0; if( arguments != NULL ) { internal_repeating_thread = (libcthreads_internal_repeating_thread_t *) arguments; if( ( internal_repeating_thread != NULL ) && ( internal_repeating_thread->start_function != NULL ) ) { internal_repeating_thread->start_function_result = 1; do { libcthreads_mutex_grab( internal_repeating_thread->condition_mutex, NULL ); /* Check for exit status in case of the situation where the thread * is created after the join has been called */ while( internal_repeating_thread->status != LIBCTHREADS_STATUS_EXIT ) { libcthreads_condition_wait( internal_repeating_thread->status_condition, internal_repeating_thread->condition_mutex, NULL ); } libcthreads_mutex_release( internal_repeating_thread->condition_mutex, NULL ); start_function_result = internal_repeating_thread->start_function( internal_repeating_thread->start_function_arguments ); if( ( start_function_result != 1 ) && ( internal_repeating_thread->start_function_result == 1 ) ) { internal_repeating_thread->start_function_result = start_function_result; } } while( internal_repeating_thread->status != LIBCTHREADS_STATUS_EXIT ); if( internal_repeating_thread->start_function_result != 1 ) { result = 1; } } } ExitThread( result ); } #elif defined( HAVE_PTHREAD_H ) /* Start function helper function for pthread * Returns a pointer to the start function result if successful or NULL on error */ void *libcthreads_repeating_thread_start_function_helper( void *arguments ) { libcthreads_internal_repeating_thread_t *internal_repeating_thread = NULL; void *result = NULL; int start_function_result = 0; if( arguments != NULL ) { internal_repeating_thread = (libcthreads_internal_repeating_thread_t *) arguments; if( ( internal_repeating_thread != NULL ) && ( internal_repeating_thread->start_function != NULL ) ) { internal_repeating_thread->start_function_result = 1; do { libcthreads_mutex_grab( internal_repeating_thread->condition_mutex, NULL ); /* Check for exit status in case of the situation where the thread * is created after the join has been called */ while( internal_repeating_thread->status != LIBCTHREADS_STATUS_EXIT ) { libcthreads_condition_wait( internal_repeating_thread->status_condition, internal_repeating_thread->condition_mutex, NULL ); } libcthreads_mutex_release( internal_repeating_thread->condition_mutex, NULL ); start_function_result = internal_repeating_thread->start_function( internal_repeating_thread->start_function_arguments ); if( ( start_function_result != 1 ) && ( internal_repeating_thread->start_function_result == 1 ) ) { internal_repeating_thread->start_function_result = start_function_result; } } while( internal_repeating_thread->status != LIBCTHREADS_STATUS_EXIT ); result = (void *) &( internal_repeating_thread->start_function_result ); } } pthread_exit( result ); } #endif /* defined( WINAPI ) else defined( HAVE_PTHREAD_H ) */ /* Creates a repeating thread * Make sure the value repeating_thread is referencing, is set to NULL * * The start_function should return 1 if successful and -1 on error * Returns 1 if successful or -1 on error */ int libcthreads_repeating_thread_create( libcthreads_repeating_thread_t **repeating_thread, const libcthreads_thread_attributes_t *thread_attributes, int (*start_function)( void *arguments ), void *start_function_arguments, libcerror_error_t **error ) { libcthreads_internal_repeating_thread_t *internal_repeating_thread = NULL; static char *function = "libcthreads_repeating_thread_create"; #if defined( WINAPI ) SECURITY_ATTRIBUTES *security_attributes = NULL; DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) pthread_attr_t *attributes = NULL; int pthread_result = 0; #endif if( repeating_thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid repeating thread.", function ); return( -1 ); } if( *repeating_thread != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid repeating thread value already set.", function ); return( -1 ); } if( start_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid start function.", function ); return( -1 ); } internal_repeating_thread = memory_allocate_structure( libcthreads_internal_repeating_thread_t ); if( internal_repeating_thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create repeating thread.", function ); goto on_error; } if( memory_set( internal_repeating_thread, 0, sizeof( libcthreads_internal_repeating_thread_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear repeating thread.", function ); memory_free( internal_repeating_thread ); return( -1 ); } if( libcthreads_mutex_initialize( &( internal_repeating_thread->condition_mutex ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create condition mutex.", function ); goto on_error; } if( libcthreads_condition_initialize( &( internal_repeating_thread->status_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create status condition.", function ); goto on_error; } internal_repeating_thread->start_function = start_function; internal_repeating_thread->start_function_arguments = start_function_arguments; #if defined( WINAPI ) if( thread_attributes != NULL ) { security_attributes = &( ( (libcthreads_internal_thread_attributes_t *) thread_attributes )->security_attributes ); } internal_repeating_thread->thread_handle = CreateThread( security_attributes, 0, /* stack size */ &libcthreads_repeating_thread_start_function_helper, (void *) internal_repeating_thread, 0, /* creation flags */ &( internal_repeating_thread->thread_identifier ) ); if( internal_repeating_thread->thread_handle == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create thread handle.", function ); goto on_error; } #elif defined( HAVE_PTHREAD_H ) if( thread_attributes != NULL ) { attributes = &( ( (libcthreads_internal_thread_attributes_t *) thread_attributes )->attributes ); } pthread_result = pthread_create( &( internal_repeating_thread->thread ), attributes, &libcthreads_repeating_thread_start_function_helper, (void *) internal_repeating_thread ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to create thread with error: Insufficient resources.", function ); goto on_error; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to create thread.", function ); goto on_error; } #endif *repeating_thread = (libcthreads_repeating_thread_t *) internal_repeating_thread; return( 1 ); on_error: if( internal_repeating_thread != NULL ) { if( internal_repeating_thread->status_condition != NULL ) { libcthreads_condition_free( &( internal_repeating_thread->status_condition ), NULL ); } if( internal_repeating_thread->condition_mutex != NULL ) { libcthreads_mutex_free( &( internal_repeating_thread->condition_mutex ), NULL ); } memory_free( internal_repeating_thread ); } return( -1 ); } /* Gives the thread a push * Returns 1 if successful or -1 on error */ int libcthreads_repeating_thread_push( libcthreads_repeating_thread_t *repeating_thread, libcerror_error_t **error ) { libcthreads_internal_repeating_thread_t *internal_repeating_thread = NULL; static char *function = "libcthreads_repeating_thread_push"; int result = 1; if( repeating_thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid repeating thread.", function ); return( -1 ); } internal_repeating_thread = (libcthreads_internal_repeating_thread_t *) repeating_thread; /* TODO some work */ if( libcthreads_mutex_grab( internal_repeating_thread->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } if( libcthreads_condition_signal( internal_repeating_thread->status_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to signal status condition.", function ); result = -1; } if( libcthreads_mutex_release( internal_repeating_thread->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( result ); } /* Joins the current with a specified repeating thread * The the thread is freed after join * Returns 1 if successful or -1 on error */ int libcthreads_repeating_thread_join( libcthreads_repeating_thread_t **repeating_thread, libcerror_error_t **error ) { libcthreads_internal_repeating_thread_t *internal_repeating_thread = NULL; static char *function = "libcthreads_repeating_thread_join"; int result = 1; #if defined( WINAPI ) DWORD error_code = 0; DWORD wait_status = 0; #elif defined( HAVE_PTHREAD_H ) int *thread_return_value = NULL; int pthread_result = 0; #endif if( repeating_thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid repeating thread.", function ); return( -1 ); } if( *repeating_thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing repeating thread value.", function ); return( -1 ); } internal_repeating_thread = (libcthreads_internal_repeating_thread_t *) *repeating_thread; *repeating_thread = NULL; if( libcthreads_mutex_grab( internal_repeating_thread->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } internal_repeating_thread->status = LIBCTHREADS_STATUS_EXIT; if( libcthreads_condition_signal( internal_repeating_thread->status_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to signal status condition.", function ); result = -1; } if( libcthreads_mutex_release( internal_repeating_thread->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } if( result != 1 ) { return( -1 ); } #if defined( WINAPI ) wait_status = WaitForSingleObject( internal_repeating_thread->thread_handle, INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: wait for thread failed.", function ); result = -1; } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_join( internal_repeating_thread->thread, (void **) &thread_return_value ); if( pthread_result == EDEADLK ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to join thread with error: Deadlock condition detected.", function ); result = -1; } else if( pthread_result != 0 ) { libcerror_system_set_error( error, result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to join thread.", function ); result = -1; } else if( ( thread_return_value == NULL ) || ( thread_return_value != &( internal_repeating_thread->start_function_result ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: invalid thread return value.", function ); result = -1; } else if( *thread_return_value != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: thread returned an error status.", function, *thread_return_value ); result = -1; } #endif if( libcthreads_condition_free( &( internal_repeating_thread->status_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free status condition.", function ); result = -1; } if( libcthreads_mutex_free( &( internal_repeating_thread->condition_mutex ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free condition mutex.", function ); result = -1; } memory_free( internal_repeating_thread ); return( result ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_error.c0000664000175000017500000000561213430101203024137 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcthreads_error.h" #include "libcthreads_libcerror.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) /* Free an error and its elements */ void libcthreads_error_free( libcthreads_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcthreads_error_fprint( libcthreads_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcthreads_error_sprint( libcthreads_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcthreads_error_backtrace_fprint( libcthreads_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcthreads_error_backtrace_sprint( libcthreads_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) */ libfsapfs-20190210/libcthreads/Makefile.am0000664000175000017500000000215713430101203022333 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCTHREADS AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ noinst_LTLIBRARIES = libcthreads.la libcthreads_la_SOURCES = \ libcthreads_condition.c libcthreads_condition.h \ libcthreads_definitions.h \ libcthreads_error.c libcthreads_error.h \ libcthreads_extern.h \ libcthreads_libcerror.h \ libcthreads_lock.c libcthreads_lock.h \ libcthreads_mutex.c libcthreads_mutex.h \ libcthreads_queue.c libcthreads_queue.h \ libcthreads_read_write_lock.c libcthreads_read_write_lock.h \ libcthreads_repeating_thread.c libcthreads_repeating_thread.h \ libcthreads_support.c libcthreads_support.h \ libcthreads_thread.c libcthreads_thread.h \ libcthreads_thread_attributes.c libcthreads_thread_attributes.h \ libcthreads_thread_pool.c libcthreads_thread_pool.h \ libcthreads_types.h \ libcthreads_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcthreads ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcthreads_la_SOURCES) libfsapfs-20190210/libcthreads/libcthreads_unused.h0000664000175000017500000000257613430101203024324 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_UNUSED_H ) #define _LIBCTHREADS_INTERNAL_UNUSED_H #include #if !defined( LIBCTHREADS_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCTHREADS_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCTHREADS_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCTHREADS_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCTHREADS_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libcthreads/libcthreads_condition.h0000664000175000017500000000571313430101203025003 0ustar00lordyestalordyesta00000000000000/* * Condition functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_CONDITION_H ) #define _LIBCTHREADS_INTERNAL_CONDITION_H #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_condition libcthreads_internal_condition_t; struct libcthreads_internal_condition { #if defined( WINAPI ) && ( WINVER >= 0x0600 ) /* The condition variable */ CONDITION_VARIABLE condition_variable; #elif defined( WINAPI ) /* The number of waiting threads */ int number_of_waiting_threads; /* The wait critical section */ CRITICAL_SECTION wait_critical_section; /* Semaphore handle used to signal the waiting threads */ HANDLE signal_semaphore_handle; /* Event handle used to signal the waiting threads */ HANDLE signal_event_handle; /* Value to indicate last signal was a broadcast */ uint8_t signal_is_broadcast; #elif defined( HAVE_PTHREAD_H ) /* The condition */ pthread_cond_t condition; #else #error Missing condition type #endif }; LIBCTHREADS_EXTERN \ int libcthreads_condition_initialize( libcthreads_condition_t **condition, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_condition_free( libcthreads_condition_t **condition, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_condition_broadcast( libcthreads_condition_t *condition, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_condition_signal( libcthreads_condition_t *condition, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_condition_wait( libcthreads_condition_t *condition, libcthreads_mutex_t *mutex, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_CONDITION_H ) */ libfsapfs-20190210/libcthreads/libcthreads_definitions.h0000664000175000017500000000412213430101203025321 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCTHREADS_INTERNAL_DEFINITIONS_H ) #define LIBCTHREADS_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCTHREADS for local use of libcthreads */ #if !defined( HAVE_LOCAL_LIBCTHREADS ) #include /* The definitions in are copied here * for local use of libcthreads */ #else #define LIBCTHREADS_VERSION 20180724 /* The libcthreads version string */ #define LIBCTHREADS_VERSION_STRING "20180724" /* The comparison function definitions */ enum LIBCTHREADS_COMPARE_DEFINITIONS { /* The first value is less than the second value */ LIBCTHREADS_COMPARE_LESS, /* The first and second values are equal */ LIBCTHREADS_COMPARE_EQUAL, /* The first value is greater than the second value */ LIBCTHREADS_COMPARE_GREATER }; /* The sort flag definitions */ enum LIBCTHREADS_SORT_FLAGS { /* Allow duplicate values */ LIBCTHREADS_SORT_FLAG_NON_UNIQUE_VALUES = 0x00, /* Only allow unique values, no duplicates */ LIBCTHREADS_SORT_FLAG_UNIQUE_VALUES = 0x01 }; #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) */ /* The status definitions */ enum LIBCTHREADS_STATUS { LIBCTHREADS_STATUS_EXIT = 1 }; #endif /* !defined( LIBCTHREADS_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libcthreads/libcthreads_thread.h0000664000175000017500000000446613430101203024270 0ustar00lordyestalordyesta00000000000000/* * Thread functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_THREAD_H ) #define _LIBCTHREADS_INTERNAL_THREAD_H #include #include #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_thread libcthreads_internal_thread_t; struct libcthreads_internal_thread { #if defined( WINAPI ) /* The thread handle */ HANDLE thread_handle; /* The thread identifier */ DWORD thread_identifier; #elif defined( HAVE_PTHREAD_H ) /* The thread */ pthread_t thread; #else #error Missing thread type #endif /* The callback function */ int (*callback_function)( void *arguments ); /* The callback function arguments */ void *callback_function_arguments; }; LIBCTHREADS_EXTERN \ int libcthreads_thread_create( libcthreads_thread_t **thread, const libcthreads_thread_attributes_t *thread_attributes, int (*callback_function)( void *arguments ), void *callback_function_arguments, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_thread_join( libcthreads_thread_t **thread, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_THREAD_H ) */ libfsapfs-20190210/libcthreads/libcthreads_repeating_thread.h0000664000175000017500000000547013430101203026322 0ustar00lordyestalordyesta00000000000000/* * Repeating thread functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_REPEATING_THREAD_H ) #define _LIBCTHREADS_INTERNAL_REPEATING_THREAD_H #include #include #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_repeating_thread libcthreads_internal_repeating_thread_t; struct libcthreads_internal_repeating_thread { #if defined( WINAPI ) /* The thread handle */ HANDLE thread_handle; /* The thread identifier */ DWORD thread_identifier; #elif defined( HAVE_PTHREAD_H ) /* The thread */ pthread_t thread; #else #error Missing thread type #endif /* The start function */ int (*start_function)( void *arguments ); /* The start function arguments */ void *start_function_arguments; /* The start functions return value */ int start_function_result; /* The condition mutex */ libcthreads_mutex_t *condition_mutex; /* The status condition */ libcthreads_condition_t *status_condition; /* The status */ uint8_t status; }; LIBCTHREADS_EXTERN \ int libcthreads_repeating_thread_create( libcthreads_repeating_thread_t **repeating_thread, const libcthreads_thread_attributes_t *thread_attributes, int (*start_function)( void *arguments ), void *start_function_arguments, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_repeating_thread_push( libcthreads_repeating_thread_t *repeating_thread, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_repeating_thread_join( libcthreads_repeating_thread_t **repeating_thread, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_REPEATING_THREAD_H ) */ libfsapfs-20190210/libcthreads/libcthreads_read_write_lock.c0000664000175000017500000004374513430101203026154 0ustar00lordyestalordyesta00000000000000/* * Read/Write lock functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_libcerror.h" #include "libcthreads_read_write_lock.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) /* Creates a read/write lock * Make sure the value read_write_lock is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcthreads_read_write_lock_initialize( libcthreads_read_write_lock_t **read_write_lock, libcerror_error_t **error ) { libcthreads_internal_read_write_lock_t *internal_read_write_lock = NULL; static char *function = "libcthreads_read_write_lock_initialize"; #if defined( WINAPI ) && ( WINVER >= 0x0400 ) && ( WINVER < 0x0600 ) DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( read_write_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read/write lock.", function ); return( -1 ); } if( *read_write_lock != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid read/write lock value already set.", function ); return( -1 ); } internal_read_write_lock = memory_allocate_structure( libcthreads_internal_read_write_lock_t ); if( internal_read_write_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create read/write lock.", function ); goto on_error; } if( memory_set( internal_read_write_lock, 0, sizeof( libcthreads_internal_read_write_lock_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear read/write lock.", function ); memory_free( internal_read_write_lock ); return( -1 ); } #if defined( WINAPI ) && ( WINVER >= 0x0600 ) InitializeSRWLock( &( internal_read_write_lock->slim_read_write_lock ) ); #elif defined( WINAPI ) && ( WINVER >= 0x0400 ) InitializeCriticalSection( &( internal_read_write_lock->write_critical_section ) ); InitializeCriticalSection( &( internal_read_write_lock->read_critical_section ) ); internal_read_write_lock->no_read_event_handle = CreateEvent( NULL, TRUE, TRUE, NULL ); if( internal_read_write_lock->no_read_event_handle == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize no read event handle.", function ); goto on_error; } #elif defined( WINAPI ) #error libcthreads_read_write_lock_initialize for Windows earlier than NT4 not implemented #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_rwlock_init( &( internal_read_write_lock->read_write_lock ), NULL ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to initialize read/write lock with error: Insufficient resources.", function ); goto on_error; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *read_write_lock = (libcthreads_read_write_lock_t *) internal_read_write_lock; return( 1 ); on_error: if( internal_read_write_lock != NULL ) { #if defined( WINAPI ) && ( WINVER >= 0x0400 ) && ( WINVER < 0x0600 ) DeleteCriticalSection( &( internal_read_write_lock->read_critical_section ) ); DeleteCriticalSection( &( internal_read_write_lock->write_critical_section ) ); #endif memory_free( internal_read_write_lock ); } return( -1 ); } /* Frees a read/write lock * Returns 1 if successful or -1 on error */ int libcthreads_read_write_lock_free( libcthreads_read_write_lock_t **read_write_lock, libcerror_error_t **error ) { libcthreads_internal_read_write_lock_t *internal_read_write_lock = NULL; static char *function = "libcthreads_read_write_lock_free"; int result = 1; #if defined( WINAPI ) && ( WINVER >= 0x0400 ) && ( WINVER < 0x0600 ) DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( read_write_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read/write lock.", function ); return( -1 ); } if( *read_write_lock != NULL ) { internal_read_write_lock = (libcthreads_internal_read_write_lock_t *) *read_write_lock; *read_write_lock = NULL; #if defined( WINAPI ) && ( WINVER >= 0x0400 ) && ( WINVER < 0x0600 ) if( CloseHandle( internal_read_write_lock->no_read_event_handle ) == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free no read event handle.", function ); result = -1; } DeleteCriticalSection( &( internal_read_write_lock->read_critical_section ) ); DeleteCriticalSection( &( internal_read_write_lock->write_critical_section ) ); #elif defined( WINAPI ) && ( WINVER < 0x0400 ) #error libcthreads_read_write_lock_free for Windows earlier than NT4 not implemented #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_rwlock_destroy( &( internal_read_write_lock->read_write_lock ) ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy read/write lock with error: Insufficient resources.", function ); result = -1; break; case EBUSY: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy read/write lock with error: Resource busy.", function ); result = -1; break; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy read/write lock.", function ); result = -1; break; } #endif memory_free( internal_read_write_lock ); } return( result ); } /* Grabs a read/write lock for reading * Returns 1 if successful or -1 on error */ int libcthreads_read_write_lock_grab_for_read( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ) { libcthreads_internal_read_write_lock_t *internal_read_write_lock = NULL; static char *function = "libcthreads_read_write_lock_grab_for_read"; #if defined( WINAPI ) && ( WINVER >= 0x0400 ) && ( WINVER < 0x0600 ) DWORD error_code = 0; BOOL result = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( read_write_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read/write lock.", function ); return( -1 ); } internal_read_write_lock = (libcthreads_internal_read_write_lock_t *) read_write_lock; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) AcquireSRWLockShared( &( internal_read_write_lock->slim_read_write_lock ) ); #elif defined( WINAPI ) && ( WINVER >= 0x0400 ) EnterCriticalSection( &( internal_read_write_lock->write_critical_section ) ); EnterCriticalSection( &( internal_read_write_lock->read_critical_section ) ); internal_read_write_lock->number_of_readers++; if( internal_read_write_lock->number_of_readers == 1 ) { result = ResetEvent( internal_read_write_lock->no_read_event_handle ); if( result == 0 ) { error_code = GetLastError(); internal_read_write_lock->number_of_readers--; } } else { result = 1; } LeaveCriticalSection( &( internal_read_write_lock->read_critical_section ) ); LeaveCriticalSection( &( internal_read_write_lock->write_critical_section ) ); if( result == 0 ) { libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: reset of no read event failed.", function ); return( -1 ); } #elif defined( WINAPI ) #error libcthreads_read_write_lock_grab_for_read for Windows earlier than NT4 not implemented #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_rwlock_rdlock( &( internal_read_write_lock->read_write_lock ) ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock read/write lock for read with error: Maximum number of locks exceeded.", function ); return( -1 ); case EDEADLK: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock read/write lock for read with error: Deadlock condition detected.", function ); return( -1 ); default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock read/write lock for read.", function ); return( -1 ); } #endif return( 1 ); } /* Grabs a read/write lock for writing * Returns 1 if successful or -1 on error */ int libcthreads_read_write_lock_grab_for_write( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ) { libcthreads_internal_read_write_lock_t *internal_read_write_lock = NULL; static char *function = "libcthreads_read_write_lock_grab_for_write"; #if defined( WINAPI ) && ( WINVER >= 0x0400 ) && ( WINVER < 0x0600 ) DWORD error_code = 0; DWORD wait_status = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( read_write_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read/write lock.", function ); return( -1 ); } internal_read_write_lock = (libcthreads_internal_read_write_lock_t *) read_write_lock; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) AcquireSRWLockExclusive( &( internal_read_write_lock->slim_read_write_lock ) ); #elif defined( WINAPI ) && ( WINVER >= 0x0400 ) EnterCriticalSection( &( internal_read_write_lock->write_critical_section ) ); wait_status = WaitForSingleObject( internal_read_write_lock->no_read_event_handle, INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); LeaveCriticalSection( &( internal_read_write_lock->write_critical_section ) ); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: wait for no read event handle failed.", function ); return( -1 ); } #elif defined( WINAPI ) #error libcthreads_read_write_lock_grab_for_write for Windows earlier than NT4 not implemented #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_rwlock_wrlock( &( internal_read_write_lock->read_write_lock ) ); switch( pthread_result ) { case 0: break; case EDEADLK: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock read/write lock for write with error: Deadlock condition detected.", function ); return( -1 ); default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock read/write lock for write.", function ); return( -1 ); } #endif return( 1 ); } /* Releases a read/write lock for reading * Returns 1 if successful or -1 on error */ int libcthreads_read_write_lock_release_for_read( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ) { libcthreads_internal_read_write_lock_t *internal_read_write_lock = NULL; static char *function = "libcthreads_read_write_lock_release_for_read"; #if defined( WINAPI ) && ( WINVER >= 0x0400 ) && ( WINVER < 0x0600 ) DWORD error_code = 0; BOOL result = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( read_write_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read/write lock.", function ); return( -1 ); } internal_read_write_lock = (libcthreads_internal_read_write_lock_t *) read_write_lock; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) ReleaseSRWLockShared( &( internal_read_write_lock->slim_read_write_lock ) ); #elif defined( WINAPI ) && ( WINVER >= 0x0400 ) EnterCriticalSection( &( internal_read_write_lock->read_critical_section ) ); internal_read_write_lock->number_of_readers--; if( internal_read_write_lock->number_of_readers == 0 ) { result = SetEvent( internal_read_write_lock->no_read_event_handle ); if( result == 0 ) { error_code = GetLastError(); internal_read_write_lock->number_of_readers++; } } else { result = 1; } LeaveCriticalSection( &( internal_read_write_lock->read_critical_section ) ); if( result == 0 ) { libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: set of no read event failed.", function ); return( -1 ); } #elif defined( WINAPI ) #error libcthreads_read_write_lock_release_for_read for Windows earlier than NT4 not implemented #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_rwlock_unlock( &( internal_read_write_lock->read_write_lock ) ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to unlock read/write lock.", function ); return( -1 ); } #endif return( 1 ); } /* Releases a read/write lock for writing * Returns 1 if successful or -1 on error */ int libcthreads_read_write_lock_release_for_write( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ) { libcthreads_internal_read_write_lock_t *internal_read_write_lock = NULL; static char *function = "libcthreads_read_write_lock_release_for_write"; #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( read_write_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read/write lock.", function ); return( -1 ); } internal_read_write_lock = (libcthreads_internal_read_write_lock_t *) read_write_lock; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) ReleaseSRWLockExclusive( &( internal_read_write_lock->slim_read_write_lock ) ); #elif defined( WINAPI ) && ( WINVER >= 0x0400 ) LeaveCriticalSection( &( internal_read_write_lock->write_critical_section ) ); #elif defined( WINAPI ) #error libcthreads_read_write_lock_release_for_write for Windows earlier than NT4 not implemented #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_rwlock_unlock( &( internal_read_write_lock->read_write_lock ) ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to unlock read/write lock.", function ); return( -1 ); } #endif return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_mutex.h0000664000175000017500000000460413430101203024155 0ustar00lordyestalordyesta00000000000000/* * Mutex functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_MUTEX_H ) #define _LIBCTHREADS_INTERNAL_MUTEX_H #include #include #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_mutex libcthreads_internal_mutex_t; struct libcthreads_internal_mutex { #if defined( WINAPI ) && ( WINVER >= 0x0600 ) /* The critical section */ CRITICAL_SECTION critical_section; #elif defined( WINAPI ) /* The mutex handle */ HANDLE mutex_handle; #elif defined( HAVE_PTHREAD_H ) /* The mutex */ pthread_mutex_t mutex; #else #error Missing mutex type #endif }; LIBCTHREADS_EXTERN \ int libcthreads_mutex_initialize( libcthreads_mutex_t **mutex, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_mutex_free( libcthreads_mutex_t **mutex, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_mutex_grab( libcthreads_mutex_t *mutex, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_mutex_try_grab( libcthreads_mutex_t *mutex, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_mutex_release( libcthreads_mutex_t *mutex, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_MUTEX_H ) */ libfsapfs-20190210/libcthreads/libcthreads_support.h0000664000175000017500000000235013430101203024523 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_SUPPORT_H ) #define _LIBCTHREADS_SUPPORT_H #include #include #include "libcthreads_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) LIBCTHREADS_EXTERN \ const char *libcthreads_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_SUPPORT_H ) */ libfsapfs-20190210/libcthreads/libcthreads_thread.c0000664000175000017500000002367413430101203024265 0ustar00lordyestalordyesta00000000000000/* * Thread functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #include #endif #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_libcerror.h" #include "libcthreads_thread.h" #include "libcthreads_thread_attributes.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) #if defined( WINAPI ) /* Start function helper function for WINAPI * Returns 0 if successful or 1 on error */ DWORD WINAPI libcthreads_thread_callback_function_helper( void *arguments ) { libcthreads_internal_thread_t *internal_thread = NULL; DWORD result = 1; int callback_function_result = 0; if( arguments != NULL ) { internal_thread = (libcthreads_internal_thread_t *) arguments; if( ( internal_thread != NULL ) && ( internal_thread->callback_function != NULL ) ) { callback_function_result = internal_thread->callback_function( internal_thread->callback_function_arguments ); } result = (DWORD) ( callback_function_result != 1 ); } ExitThread( result ); } #elif defined( HAVE_PTHREAD_H ) /* Start function helper function for pthread * Returns a pointer to a newly allocated int containing 1 if successful or -1 on error * NULL is return if the helper function was unable to run the callback */ void *libcthreads_thread_callback_function_helper( void *arguments ) { libcthreads_internal_thread_t *internal_thread = NULL; int *result = NULL; if( arguments != NULL ) { internal_thread = (libcthreads_internal_thread_t *) arguments; if( ( internal_thread != NULL ) && ( internal_thread->callback_function != NULL ) ) { result = (int *) memory_allocate( sizeof( int ) ); if( result != NULL ) { *result = internal_thread->callback_function( internal_thread->callback_function_arguments ); } } } pthread_exit( (void *) result ); } #endif /* Creates a thread * Make sure the value thread is referencing, is set to NULL * * The callback_function should return 1 if successful and -1 on error * Returns 1 if successful or -1 on error */ int libcthreads_thread_create( libcthreads_thread_t **thread, const libcthreads_thread_attributes_t *thread_attributes, int (*callback_function)( void *arguments ), void *callback_function_arguments, libcerror_error_t **error ) { libcthreads_internal_thread_t *internal_thread = NULL; static char *function = "libcthreads_thread_create"; #if defined( WINAPI ) SECURITY_ATTRIBUTES *security_attributes = NULL; HANDLE thread_handle = NULL; DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) pthread_attr_t *attributes = NULL; int pthread_result = 0; #endif if( thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread.", function ); return( -1 ); } if( *thread != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid thread value already set.", function ); return( -1 ); } if( callback_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid callback function.", function ); return( -1 ); } internal_thread = memory_allocate_structure( libcthreads_internal_thread_t ); if( internal_thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create thread.", function ); goto on_error; } if( memory_set( internal_thread, 0, sizeof( libcthreads_internal_thread_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear thread.", function ); memory_free( internal_thread ); return( -1 ); } internal_thread->callback_function = callback_function; internal_thread->callback_function_arguments = callback_function_arguments; #if defined( WINAPI ) if( thread_attributes != NULL ) { security_attributes = &( ( (libcthreads_internal_thread_attributes_t *) thread_attributes )->security_attributes ); } thread_handle = CreateThread( security_attributes, 0, /* stack size */ &libcthreads_thread_callback_function_helper, (void *) internal_thread, 0, /* creation flags */ &( internal_thread->thread_identifier ) ); if( thread_handle == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create thread handle.", function ); goto on_error; } internal_thread->thread_handle = thread_handle; #elif defined( HAVE_PTHREAD_H ) if( thread_attributes != NULL ) { attributes = &( ( (libcthreads_internal_thread_attributes_t *) thread_attributes )->attributes ); } pthread_result = pthread_create( &( internal_thread->thread ), attributes, &libcthreads_thread_callback_function_helper, (void *) internal_thread ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to create thread with error: Insufficient resources.", function ); goto on_error; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to create thread.", function ); goto on_error; } #endif *thread = (libcthreads_thread_t *) internal_thread; return( 1 ); on_error: if( internal_thread != NULL ) { memory_free( internal_thread ); } return( -1 ); } /* Joins the current with a specified thread * The the thread is freed after join * Returns 1 if successful or -1 on error */ int libcthreads_thread_join( libcthreads_thread_t **thread, libcerror_error_t **error ) { libcthreads_internal_thread_t *internal_thread = NULL; static char *function = "libcthreads_thread_join"; int result = 1; #if defined( WINAPI ) DWORD error_code = 0; DWORD wait_status = 0; #elif defined( HAVE_PTHREAD_H ) int *thread_return_value = NULL; int pthread_result = 0; #endif if( thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread.", function ); return( -1 ); } if( *thread == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing thread value.", function ); return( -1 ); } internal_thread = (libcthreads_internal_thread_t *) *thread; *thread = NULL; #if defined( WINAPI ) wait_status = WaitForSingleObject( internal_thread->thread_handle, INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: wait for thread failed.", function ); result = -1; } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_join( internal_thread->thread, (void **) &thread_return_value ); if( pthread_result == EDEADLK ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to join thread with error: Deadlock condition detected.", function ); result = -1; } else if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to join thread.", function ); result = -1; } /* If the thread returns NULL it never got around to launching the callback function */ else if( ( thread_return_value != NULL ) && ( *thread_return_value != 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: thread returned an error status of: %d.", function, *thread_return_value ); result = -1; } if( thread_return_value != NULL ) { memory_free( thread_return_value ); thread_return_value = NULL; } #endif memory_free( internal_thread ); return( result ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_mutex.c0000664000175000017500000002632613430101203024155 0ustar00lordyestalordyesta00000000000000/* * Mutex functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_libcerror.h" #include "libcthreads_mutex.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) /* Creates a mutex * Make sure the value mutex is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcthreads_mutex_initialize( libcthreads_mutex_t **mutex, libcerror_error_t **error ) { libcthreads_internal_mutex_t *internal_mutex = NULL; static char *function = "libcthreads_mutex_initialize"; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( mutex == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mutex.", function ); return( -1 ); } if( *mutex != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid mutex value already set.", function ); return( -1 ); } internal_mutex = memory_allocate_structure( libcthreads_internal_mutex_t ); if( internal_mutex == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create mutex.", function ); goto on_error; } if( memory_set( internal_mutex, 0, sizeof( libcthreads_internal_mutex_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear mutex.", function ); memory_free( internal_mutex ); return( -1 ); } #if defined( WINAPI ) && ( WINVER >= 0x0600 ) InitializeCriticalSection( &( internal_mutex->critical_section ) ); #elif defined( WINAPI ) internal_mutex->mutex_handle = CreateMutex( NULL, FALSE, NULL ); if( internal_mutex->mutex_handle == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize mutex handle.", function ); goto on_error; } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_init( &( internal_mutex->mutex ), NULL ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize mutex.", function ); goto on_error; } #endif *mutex = (libcthreads_mutex_t *) internal_mutex; return( 1 ); on_error: if( internal_mutex != NULL ) { memory_free( internal_mutex ); } return( -1 ); } /* Frees a mutex * Returns 1 if successful or -1 on error */ int libcthreads_mutex_free( libcthreads_mutex_t **mutex, libcerror_error_t **error ) { libcthreads_internal_mutex_t *internal_mutex = NULL; static char *function = "libcthreads_mutex_free"; int result = 1; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( mutex == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mutex.", function ); return( -1 ); } if( *mutex != NULL ) { internal_mutex = (libcthreads_internal_mutex_t *) *mutex; *mutex = NULL; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) DeleteCriticalSection( &( internal_mutex->critical_section ) ); #elif defined( WINAPI ) if( CloseHandle( internal_mutex->mutex_handle ) == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free mutex handle.", function ); result = -1; } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_destroy( &( internal_mutex->mutex ) ); if( pthread_result != 0 ) { switch( pthread_result ) { case EBUSY: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy mutex with error: Resource busy.", function ); break; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy mutex.", function ); break; } result = -1; } #endif memory_free( internal_mutex ); } return( result ); } /* Grabs a mutex * Returns 1 if successful or -1 on error */ int libcthreads_mutex_grab( libcthreads_mutex_t *mutex, libcerror_error_t **error ) { libcthreads_internal_mutex_t *internal_mutex = NULL; static char *function = "libcthreads_mutex_grab"; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; DWORD wait_status = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( mutex == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mutex.", function ); return( -1 ); } internal_mutex = (libcthreads_internal_mutex_t *) mutex; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) EnterCriticalSection( &( internal_mutex->critical_section ) ); #elif defined( WINAPI ) wait_status = WaitForSingleObject( internal_mutex->mutex_handle, INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: wait for mutex handle failed.", function ); return( -1 ); } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_lock( &( internal_mutex->mutex ) ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to lock mutex.", function ); return( -1 ); } #endif return( 1 ); } /* Tries to grabs a mutex * Returns 1 if successful, 0 if not or -1 on error */ int libcthreads_mutex_try_grab( libcthreads_mutex_t *mutex, libcerror_error_t **error ) { libcthreads_internal_mutex_t *internal_mutex = NULL; static char *function = "libcthreads_mutex_try_grab"; int result = 1; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; DWORD wait_status = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( mutex == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mutex.", function ); return( -1 ); } internal_mutex = (libcthreads_internal_mutex_t *) mutex; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) if( TryEnterCriticalSection( &( internal_mutex->critical_section ) ) != 0 ) { result = 1; } else { result = 0; } #elif defined( WINAPI ) wait_status = WaitForSingleObject( internal_mutex->mutex_handle, 0 ); if( wait_status == WAIT_TIMEOUT ) { result = 0; } else if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: wait for mutex handle failed.", function ); return( -1 ); } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_trylock( &( internal_mutex->mutex ) ); if( pthread_result == EBUSY ) { result = 0; } else if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to lock mutex.", function ); return( -1 ); } #endif return( result ); } /* Releases a mutex * Returns 1 if successful or -1 on error */ int libcthreads_mutex_release( libcthreads_mutex_t *mutex, libcerror_error_t **error ) { libcthreads_internal_mutex_t *internal_mutex = NULL; static char *function = "libcthreads_mutex_release"; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; BOOL result = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( mutex == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mutex.", function ); return( -1 ); } internal_mutex = (libcthreads_internal_mutex_t *) mutex; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) LeaveCriticalSection( &( internal_mutex->critical_section ) ); #elif defined( WINAPI ) result = ReleaseMutex( internal_mutex->mutex_handle ); if( result == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to relates mutex handle.", function ); return( -1 ); } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_unlock( &( internal_mutex->mutex ) ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to unlock mutex.", function ); return( -1 ); } #endif return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_types.h0000664000175000017500000000472013430101203024156 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_TYPES_H ) #define _LIBCTHREADS_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBCTHREADS for local use of libcthreads * The definitions in are copied here * for local use of libcthreads */ #if defined( HAVE_LOCAL_LIBCTHREADS ) && defined( HAVE_MULTI_THREAD_SUPPORT ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libcthreads_condition {} libcthreads_condition_t; typedef struct libcthreads_lock {} libcthreads_lock_t; typedef struct libcthreads_mutex {} libcthreads_mutex_t; typedef struct libcthreads_queue {} libcthreads_queue_t; typedef struct libcthreads_read_write_lock {} libcthreads_read_write_lock_t; typedef struct libcthreads_repeating_thread {} libcthreads_repeating_thread_t; typedef struct libcthreads_thread {} libcthreads_thread_t; typedef struct libcthreads_thread_attributes {} libcthreads_thread_attributes_t; typedef struct libcthreads_thread_pool {} libcthreads_thread_pool_t; #else typedef intptr_t libcthreads_condition_t; typedef intptr_t libcthreads_lock_t; typedef intptr_t libcthreads_mutex_t; typedef intptr_t libcthreads_queue_t; typedef intptr_t libcthreads_read_write_lock_t; typedef intptr_t libcthreads_repeating_thread_t; typedef intptr_t libcthreads_thread_t; typedef intptr_t libcthreads_thread_attributes_t; typedef intptr_t libcthreads_thread_pool_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBCTHREADS ) && defined( HAVE_MULTI_THREAD_SUPPORT ) */ #endif /* !defined( _LIBCTHREADS_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libcthreads/libcthreads_lock.h0000664000175000017500000000424213430101203023741 0ustar00lordyestalordyesta00000000000000/* * Lock functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_LOCK_H ) #define _LIBCTHREADS_INTERNAL_LOCK_H #include #include #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_lock libcthreads_internal_lock_t; struct libcthreads_internal_lock { #if defined( WINAPI ) /* The critical section */ CRITICAL_SECTION critical_section; #elif defined( HAVE_PTHREAD_H ) /* The mutex */ pthread_mutex_t mutex; #else #error Missing lock type #endif }; LIBCTHREADS_EXTERN \ int libcthreads_lock_initialize( libcthreads_lock_t **lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_lock_free( libcthreads_lock_t **lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_lock_grab( const libcthreads_lock_t *lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_lock_release( const libcthreads_lock_t *lock, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_LOCK_H ) */ libfsapfs-20190210/libcthreads/libcthreads_extern.h0000664000175000017500000000275513430101203024325 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_EXTERN_H ) #define _LIBCTHREADS_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCTHREADS for local use of libcthreads */ #if !defined( HAVE_LOCAL_LIBCTHREADS ) /* If libtool DLL support is enabled set LIBCTHREADS_DLL_EXPORT * before including libcthreads/extern.h */ #if defined( _WIN32 ) && defined( DLL_EXPORT ) #define LIBCTHREADS_DLL_EXPORT #endif #include #define LIBCTHREADS_EXTERN_VARIABLE LIBCTHREADS_EXTERN #else #define LIBCTHREADS_EXTERN /* extern */ #define LIBCTHREADS_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) */ #endif /* !defined( _LIBCTHREADS_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libcthreads/libcthreads_error.h0000664000175000017500000000351213430101203024141 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_ERROR_H ) #define _LIBCTHREADS_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBCTHREADS ) #include #endif #include "libcthreads_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) LIBCTHREADS_EXTERN \ void libcthreads_error_free( libcthreads_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_error_fprint( libcthreads_error_t *error, FILE *stream ); LIBCTHREADS_EXTERN \ int libcthreads_error_sprint( libcthreads_error_t *error, char *string, size_t size ); LIBCTHREADS_EXTERN \ int libcthreads_error_backtrace_fprint( libcthreads_error_t *error, FILE *stream ); LIBCTHREADS_EXTERN \ int libcthreads_error_backtrace_sprint( libcthreads_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libcthreads/libcthreads_queue.c0000664000175000017500000006355713430101203024146 0ustar00lordyestalordyesta00000000000000/* * Queue functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcthreads_condition.h" #include "libcthreads_definitions.h" #include "libcthreads_libcerror.h" #include "libcthreads_mutex.h" #include "libcthreads_queue.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) /* Creates a queue * Make sure the value queue is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcthreads_queue_initialize( libcthreads_queue_t **queue, int maximum_number_of_values, libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_initialize"; size_t values_array_size = 0; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } if( *queue != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid queue value already set.", function ); return( -1 ); } if( maximum_number_of_values < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid maximum number of values value less than zero.", function ); return( -1 ); } #if SIZEOF_INT <= SIZEOF_SIZE_T if( (size_t) maximum_number_of_values > (size_t) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #else if( maximum_number_of_values > (int) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid maximum number of values value exceeds maximum.", function ); return( -1 ); } values_array_size = sizeof( intptr_t * ) * maximum_number_of_values; if( values_array_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid values array size value exceeds maximum.", function ); goto on_error; } internal_queue = memory_allocate_structure( libcthreads_internal_queue_t ); if( internal_queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create queue.", function ); goto on_error; } if( memory_set( internal_queue, 0, sizeof( libcthreads_internal_queue_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear queue.", function ); memory_free( internal_queue ); return( -1 ); } internal_queue->values_array = (intptr_t **) memory_allocate( values_array_size ); if( internal_queue->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create values array.", function ); goto on_error; } if( memory_set( internal_queue->values_array, 0, values_array_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear values array.", function ); goto on_error; } internal_queue->allocated_number_of_values = maximum_number_of_values; if( libcthreads_mutex_initialize( &( internal_queue->condition_mutex ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create condition mutex.", function ); goto on_error; } if( libcthreads_condition_initialize( &( internal_queue->empty_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create empty condition.", function ); goto on_error; } if( libcthreads_condition_initialize( &( internal_queue->full_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create full condition.", function ); goto on_error; } *queue = (libcthreads_queue_t *) internal_queue; return( 1 ); on_error: if( internal_queue != NULL ) { if( internal_queue->empty_condition != NULL ) { libcthreads_condition_free( &( internal_queue->empty_condition ), NULL ); } if( internal_queue->condition_mutex != NULL ) { libcthreads_mutex_free( &( internal_queue->condition_mutex ), NULL ); } if( internal_queue->values_array != NULL ) { memory_free( internal_queue->values_array ); } memory_free( internal_queue ); } return( -1 ); } /* Frees a queue * Uses the value_free_function to free the value * Returns 1 if successful or -1 on error */ int libcthreads_queue_free( libcthreads_queue_t **queue, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_free"; int result = 1; int value_index = 0; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } if( *queue != NULL ) { internal_queue = (libcthreads_internal_queue_t *) *queue; *queue = NULL; if( value_free_function != NULL ) { for( value_index = 0; value_index < internal_queue->number_of_values; value_index++ ) { if( value_free_function( &( internal_queue->values_array[ value_index ] ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free value: %d.", function, value_index ); result = -1; } } } memory_free( internal_queue->values_array ); if( libcthreads_condition_free( &( internal_queue->full_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free full condition.", function ); result = -1; } if( libcthreads_condition_free( &( internal_queue->empty_condition ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free empty condition.", function ); result = -1; } if( libcthreads_mutex_free( &( internal_queue->condition_mutex ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free condition mutex.", function ); result = -1; } memory_free( internal_queue ); } return( result ); } /* Empties a queue * Returns 1 if successful or -1 on error */ int libcthreads_queue_empty( libcthreads_queue_t *queue, libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_empty"; int result = 1; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } internal_queue = (libcthreads_internal_queue_t *) queue; if( internal_queue->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid queue - missing values array.", function ); return( -1 ); } if( libcthreads_mutex_grab( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } while( internal_queue->number_of_values != 0 ) { if( libcthreads_condition_wait( internal_queue->full_condition, internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for full condition.", function ); goto on_error; } } if( libcthreads_mutex_release( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( result ); on_error: libcthreads_mutex_release( internal_queue->condition_mutex, NULL ); return( -1 ); } /* Tries to pop a value off the queue * Returns 1 if successful, 0 if not or -1 on error */ int libcthreads_queue_try_pop( libcthreads_queue_t *queue, intptr_t **value, libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_try_pop"; int result = 1; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } internal_queue = (libcthreads_internal_queue_t *) queue; if( internal_queue->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid queue - missing values array.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( libcthreads_mutex_grab( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } if( internal_queue->number_of_values == 0 ) { result = 0; } else { *value = internal_queue->values_array[ internal_queue->pop_index ]; internal_queue->pop_index++; if( internal_queue->pop_index >= internal_queue->allocated_number_of_values ) { internal_queue->pop_index = 0; } internal_queue->number_of_values--; /* The condition broadcast must be protected by the mutex for the WINAPI version */ if( libcthreads_condition_broadcast( internal_queue->full_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast full condition.", function ); goto on_error; } } if( libcthreads_mutex_release( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( result ); on_error: libcthreads_mutex_release( internal_queue->condition_mutex, NULL ); return( -1 ); } /* Pops a value off the queue * Returns 1 if successful or -1 on error */ int libcthreads_queue_pop( libcthreads_queue_t *queue, intptr_t **value, libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_pop"; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } internal_queue = (libcthreads_internal_queue_t *) queue; if( internal_queue->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid queue - missing values array.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( libcthreads_mutex_grab( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } while( internal_queue->number_of_values == 0 ) { if( libcthreads_condition_wait( internal_queue->empty_condition, internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for empty condition.", function ); goto on_error; } } *value = internal_queue->values_array[ internal_queue->pop_index ]; internal_queue->pop_index++; if( internal_queue->pop_index >= internal_queue->allocated_number_of_values ) { internal_queue->pop_index = 0; } internal_queue->number_of_values--; /* The condition broadcast must be protected by the mutex for the WINAPI version */ if( libcthreads_condition_broadcast( internal_queue->full_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast full condition.", function ); goto on_error; } if( libcthreads_mutex_release( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( 1 ); on_error: libcthreads_mutex_release( internal_queue->condition_mutex, NULL ); return( -1 ); } /* Tries to push a value onto the queue * Returns 1 if successful, 0 if not or -1 on error */ int libcthreads_queue_try_push( libcthreads_queue_t *queue, intptr_t *value, libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_try_push"; int result = 1; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } internal_queue = (libcthreads_internal_queue_t *) queue; if( internal_queue->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid queue - missing values array.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( libcthreads_mutex_grab( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } if( internal_queue->number_of_values == internal_queue->allocated_number_of_values ) { result = 0; } else { internal_queue->values_array[ internal_queue->push_index ] = value; internal_queue->push_index++; if( internal_queue->push_index >= internal_queue->allocated_number_of_values ) { internal_queue->push_index = 0; } internal_queue->number_of_values++; /* The condition broadcast must be protected by the mutex for the WINAPI version */ if( libcthreads_condition_broadcast( internal_queue->empty_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast empty condition.", function ); goto on_error; } } if( libcthreads_mutex_release( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( result ); on_error: libcthreads_mutex_release( internal_queue->condition_mutex, NULL ); return( -1 ); } /* Pushes a value onto the queue * Returns 1 if successful or -1 on error */ int libcthreads_queue_push( libcthreads_queue_t *queue, intptr_t *value, libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_push"; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } internal_queue = (libcthreads_internal_queue_t *) queue; if( internal_queue->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid queue - missing values array.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( libcthreads_mutex_grab( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } while( internal_queue->number_of_values == internal_queue->allocated_number_of_values ) { if( libcthreads_condition_wait( internal_queue->full_condition, internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for full condition.", function ); goto on_error; } } internal_queue->values_array[ internal_queue->push_index ] = value; internal_queue->push_index++; if( internal_queue->push_index >= internal_queue->allocated_number_of_values ) { internal_queue->push_index = 0; } internal_queue->number_of_values++; /* The condition broadcast must be protected by the mutex for the WINAPI version */ if( libcthreads_condition_broadcast( internal_queue->empty_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast empty condition.", function ); goto on_error; } if( libcthreads_mutex_release( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( 1 ); on_error: libcthreads_mutex_release( internal_queue->condition_mutex, NULL ); return( -1 ); } /* Pushes a value onto the queue in sorted order * * Uses the value_compare_function to determine the similarity of the values * The value_compare_function should return LIBCTHREADS_COMPARE_LESS, * LIBCTHREADS_COMPARE_EQUAL, LIBCTHREADS_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if the value already exists or -1 on error */ int libcthreads_queue_push_sorted( libcthreads_queue_t *queue, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t sort_flags, libcerror_error_t **error ) { libcthreads_internal_queue_t *internal_queue = NULL; static char *function = "libcthreads_queue_push_sorted"; int compare_result = 0; int pop_index = 0; int previous_push_index = 0; int push_index = 0; int result = 1; int value_index = 0; if( queue == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid queue.", function ); return( -1 ); } internal_queue = (libcthreads_internal_queue_t *) queue; if( internal_queue->values_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid queue - missing values array.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value compare function.", function ); return( -1 ); } if( ( sort_flags & ~( LIBCTHREADS_SORT_FLAG_UNIQUE_VALUES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported sort flags: 0x%02" PRIx8 ".", function, sort_flags ); return( -1 ); } if( libcthreads_mutex_grab( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab condition mutex.", function ); return( -1 ); } while( internal_queue->number_of_values == internal_queue->allocated_number_of_values ) { if( libcthreads_condition_wait( internal_queue->full_condition, internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to wait for full condition.", function ); goto on_error; } } pop_index = internal_queue->pop_index; for( value_index = 0; value_index < internal_queue->number_of_values; value_index++ ) { compare_result = value_compare_function( value, internal_queue->values_array[ pop_index ], error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare value: %d.", function, value_index ); goto on_error; } else if( compare_result == LIBCTHREADS_COMPARE_EQUAL ) { if( ( sort_flags & LIBCTHREADS_SORT_FLAG_UNIQUE_VALUES ) != 0 ) { result = 0; break; } } else if( compare_result == LIBCTHREADS_COMPARE_LESS ) { result = 1; break; } else if( compare_result != LIBCTHREADS_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value compare function return value: %d.", function, compare_result ); goto on_error; } pop_index++; if( pop_index >= internal_queue->allocated_number_of_values ) { pop_index = 0; } } if( result != 0 ) { push_index = internal_queue->push_index; if( compare_result == LIBCTHREADS_COMPARE_LESS ) { previous_push_index = push_index - 1; while( push_index != pop_index ) { if( previous_push_index < 0 ) { previous_push_index = internal_queue->allocated_number_of_values - 1; } internal_queue->values_array[ push_index ] = internal_queue->values_array[ previous_push_index ]; push_index = previous_push_index; previous_push_index--; } } internal_queue->values_array[ push_index ] = value; internal_queue->push_index++; if( internal_queue->push_index >= internal_queue->allocated_number_of_values ) { internal_queue->push_index = 0; } internal_queue->number_of_values++; /* The condition broadcast must be protected by the mutex for the WINAPI version */ if( libcthreads_condition_broadcast( internal_queue->empty_condition, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast empty condition.", function ); goto on_error; } } if( libcthreads_mutex_release( internal_queue->condition_mutex, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release condition mutex.", function ); return( -1 ); } return( result ); on_error: libcthreads_mutex_release( internal_queue->condition_mutex, NULL ); return( -1 ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_condition.c0000664000175000017500000004347013430101203025000 0ustar00lordyestalordyesta00000000000000/* * Condition functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_condition.h" #include "libcthreads_libcerror.h" #include "libcthreads_mutex.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) /* Creates a condition * Make sure the value condition is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcthreads_condition_initialize( libcthreads_condition_t **condition, libcerror_error_t **error ) { libcthreads_internal_condition_t *internal_condition = NULL; static char *function = "libcthreads_condition_initialize"; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( condition == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid condition.", function ); return( -1 ); } if( *condition != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid condition value already set.", function ); return( -1 ); } internal_condition = memory_allocate_structure( libcthreads_internal_condition_t ); if( internal_condition == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create condition.", function ); goto on_error; } if( memory_set( internal_condition, 0, sizeof( libcthreads_internal_condition_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear condition.", function ); memory_free( internal_condition ); return( -1 ); } #if defined( WINAPI ) && ( WINVER >= 0x0600 ) InitializeConditionVariable( &( internal_condition->condition_variable ) ); #elif defined( WINAPI ) InitializeCriticalSection( &( internal_condition->wait_critical_section ) ); internal_condition->signal_semaphore_handle = CreateSemaphore ( NULL, 0, INT_MAX, NULL ); if( internal_condition->signal_semaphore_handle == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize signal semaphore handle.", function ); goto on_error; } internal_condition->signal_event_handle = CreateEvent ( NULL, FALSE, FALSE, NULL ); if( internal_condition->signal_event_handle == NULL ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize signal event handle.", function ); goto on_error; } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_cond_init( &( internal_condition->condition ), NULL ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to initialize condition with error: Insufficient resources.", function ); goto on_error; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to initialize condition.", function ); goto on_error; } #endif *condition = (libcthreads_condition_t *) internal_condition; return( 1 ); on_error: if( internal_condition != NULL ) { #if defined( WINAPI ) && ( WINVER < 0x0600 ) if( internal_condition->signal_semaphore_handle != NULL ) { CloseHandle( internal_condition->signal_semaphore_handle ); } DeleteCriticalSection( &( internal_condition->wait_critical_section ) ); #endif memory_free( internal_condition ); } return( -1 ); } /* Frees a condition * Returns 1 if successful or -1 on error */ int libcthreads_condition_free( libcthreads_condition_t **condition, libcerror_error_t **error ) { libcthreads_internal_condition_t *internal_condition = NULL; static char *function = "libcthreads_condition_free"; int result = 1; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( condition == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid condition.", function ); return( -1 ); } if( *condition != NULL ) { internal_condition = (libcthreads_internal_condition_t *) *condition; *condition = NULL; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) #elif defined( WINAPI ) if( CloseHandle( internal_condition->signal_event_handle ) == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free signal event handle.", function ); result = -1; } if( CloseHandle( internal_condition->signal_semaphore_handle ) == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free signal semaphore handle.", function ); result = -1; } DeleteCriticalSection( &( internal_condition->wait_critical_section ) ); #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_cond_destroy( &( internal_condition->condition ) ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy condition with error: Insufficient resources.", function ); result = -1; break; case EBUSY: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy condition with error: Resource busy.", function ); result = -1; break; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy condition.", function ); result = -1; break; } #endif memory_free( internal_condition ); } return( result ); } /* Broadcasts a condition * The of this function must be locked by the same mutex as used to wait * This is necessary for the WINAPI pre Vista (0x0600) implementation * Returns 1 if successful or -1 on error */ int libcthreads_condition_broadcast( libcthreads_condition_t *condition, libcerror_error_t **error ) { libcthreads_internal_condition_t *internal_condition = NULL; static char *function = "libcthreads_condition_broadcast"; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; DWORD wait_status = 0; BOOL result = 1; int number_of_waiting_threads = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( condition == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid condition.", function ); return( -1 ); } internal_condition = (libcthreads_internal_condition_t *) condition; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) WakeAllConditionVariable( &( internal_condition->condition_variable ) ); #elif defined( WINAPI ) EnterCriticalSection( &( internal_condition->wait_critical_section ) ); number_of_waiting_threads = internal_condition->number_of_waiting_threads; if( number_of_waiting_threads > 0 ) { internal_condition->signal_is_broadcast = 1; result = ReleaseSemaphore( internal_condition->signal_semaphore_handle, number_of_waiting_threads, 0 ); if( result == 0 ) { error_code = GetLastError(); internal_condition->signal_is_broadcast = 0; } } LeaveCriticalSection( &( internal_condition->wait_critical_section ) ); if( result == 0 ) { libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release signal semaphore handle.", function ); return( -1 ); } if( number_of_waiting_threads > 0 ) { wait_status = WaitForSingleObject( internal_condition->signal_event_handle, INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); internal_condition->signal_is_broadcast = 0; libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: wait for no read event handle failed.", function ); return( -1 ); } internal_condition->signal_is_broadcast = 0; } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_cond_broadcast( &( internal_condition->condition ) ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to broadcast condition.", function ); return( -1 ); } #endif return( 1 ); } /* Signals a condition * The of this function must be locked by the same mutex as used to wait * This is necessary for the WINAPI pre Vista (0x0600) implementation * Returns 1 if successful or -1 on error */ int libcthreads_condition_signal( libcthreads_condition_t *condition, libcerror_error_t **error ) { libcthreads_internal_condition_t *internal_condition = NULL; static char *function = "libcthreads_condition_signal"; #if defined( WINAPI ) && ( WINVER < 0x0600 ) DWORD error_code = 0; BOOL result = 1; int number_of_waiting_threads = 0; #elif defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( condition == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid condition.", function ); return( -1 ); } internal_condition = (libcthreads_internal_condition_t *) condition; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) WakeConditionVariable( &( internal_condition->condition_variable ) ); #elif defined( WINAPI ) EnterCriticalSection( &( internal_condition->wait_critical_section ) ); number_of_waiting_threads = internal_condition->number_of_waiting_threads; LeaveCriticalSection( &( internal_condition->wait_critical_section ) ); if( number_of_waiting_threads > 0 ) { result = ReleaseSemaphore( internal_condition->signal_semaphore_handle, 1, 0 ); if( result == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release signal semaphore handle.", function ); return( -1 ); } } #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_cond_signal( &( internal_condition->condition ) ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to signal condition.", function ); return( -1 ); } #endif return( 1 ); } /* Waits for a condition * Returns 1 if successful or -1 on error */ int libcthreads_condition_wait( libcthreads_condition_t *condition, libcthreads_mutex_t *mutex, libcerror_error_t **error ) { libcthreads_internal_condition_t *internal_condition = NULL; libcthreads_internal_mutex_t *internal_mutex = NULL; static char *function = "libcthreads_condition_wait"; #if defined( WINAPI ) DWORD error_code = 0; DWORD wait_status = 0; #if ( WINVER >= 0x0600 ) BOOL result = 0; #else int is_last_waiting_thread = 0; #endif #elif defined( HAVE_PTHREAD_H ) int pthread_result = 0; #endif if( condition == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid condition.", function ); return( -1 ); } internal_condition = (libcthreads_internal_condition_t *) condition; if( mutex == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mutex.", function ); return( -1 ); } internal_mutex = (libcthreads_internal_mutex_t *) mutex; #if defined( WINAPI ) && ( WINVER >= 0x0600 ) result = SleepConditionVariableCS( &( internal_condition->condition_variable ), &( internal_mutex->critical_section ), INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to sleep on condition variable.", function ); return( -1 ); } #elif defined( WINAPI ) && ( WINVER >= 0x0400 ) EnterCriticalSection( &( internal_condition->wait_critical_section ) ); internal_condition->number_of_waiting_threads++; LeaveCriticalSection( &( internal_condition->wait_critical_section ) ); wait_status = SignalObjectAndWait( internal_mutex->mutex_handle, internal_condition->signal_semaphore_handle, INFINITE, FALSE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable signal mutex handle and wait for signal semaphore handle.", function ); return( -1 ); } EnterCriticalSection( &( internal_condition->wait_critical_section ) ); internal_condition->number_of_waiting_threads--; if( ( internal_condition->number_of_waiting_threads == 0 ) && ( internal_condition->signal_is_broadcast != 0 ) ) { is_last_waiting_thread = 1; } LeaveCriticalSection( &( internal_condition->wait_critical_section ) ); if( is_last_waiting_thread != 0 ) { wait_status = SignalObjectAndWait( internal_condition->signal_event_handle, internal_mutex->mutex_handle, INFINITE, FALSE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to signal signal event handle and wait for mutex handle.", function ); return( -1 ); } } else { wait_status = WaitForSingleObject( internal_mutex->mutex_handle, INFINITE ); if( wait_status == WAIT_FAILED ) { error_code = GetLastError(); libcerror_system_set_error( error, error_code, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: wait for mutex handle failed.", function ); return( -1 ); } } #elif defined( WINAPI ) #error libcthreads_condition_wait for Windows earlier than NT4 not implemented #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_cond_wait( &( internal_condition->condition ), &( internal_mutex->mutex ) ); if( pthread_result != 0 ) { libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to wait for condition.", function ); return( -1 ); } #endif return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/Makefile.in0000664000175000017500000010322213430101254022345 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcthreads ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcthreads_la_LIBADD = am__libcthreads_la_SOURCES_DIST = libcthreads_condition.c \ libcthreads_condition.h libcthreads_definitions.h \ libcthreads_error.c libcthreads_error.h libcthreads_extern.h \ libcthreads_libcerror.h libcthreads_lock.c libcthreads_lock.h \ libcthreads_mutex.c libcthreads_mutex.h libcthreads_queue.c \ libcthreads_queue.h libcthreads_read_write_lock.c \ libcthreads_read_write_lock.h libcthreads_repeating_thread.c \ libcthreads_repeating_thread.h libcthreads_support.c \ libcthreads_support.h libcthreads_thread.c \ libcthreads_thread.h libcthreads_thread_attributes.c \ libcthreads_thread_attributes.h libcthreads_thread_pool.c \ libcthreads_thread_pool.h libcthreads_types.h \ libcthreads_unused.h @HAVE_LOCAL_LIBCTHREADS_TRUE@am_libcthreads_la_OBJECTS = \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_condition.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_error.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_lock.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_mutex.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_queue.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_read_write_lock.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_repeating_thread.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_support.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_thread.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_thread_attributes.lo \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_thread_pool.lo libcthreads_la_OBJECTS = $(am_libcthreads_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCTHREADS_TRUE@am_libcthreads_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcthreads_condition.Plo \ ./$(DEPDIR)/libcthreads_error.Plo \ ./$(DEPDIR)/libcthreads_lock.Plo \ ./$(DEPDIR)/libcthreads_mutex.Plo \ ./$(DEPDIR)/libcthreads_queue.Plo \ ./$(DEPDIR)/libcthreads_read_write_lock.Plo \ ./$(DEPDIR)/libcthreads_repeating_thread.Plo \ ./$(DEPDIR)/libcthreads_support.Plo \ ./$(DEPDIR)/libcthreads_thread.Plo \ ./$(DEPDIR)/libcthreads_thread_attributes.Plo \ ./$(DEPDIR)/libcthreads_thread_pool.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcthreads_la_SOURCES) DIST_SOURCES = $(am__libcthreads_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCTHREADS_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ @PTHREAD_CPPFLAGS@ @HAVE_LOCAL_LIBCTHREADS_TRUE@noinst_LTLIBRARIES = libcthreads.la @HAVE_LOCAL_LIBCTHREADS_TRUE@libcthreads_la_SOURCES = \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_condition.c libcthreads_condition.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_definitions.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_error.c libcthreads_error.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_extern.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_libcerror.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_lock.c libcthreads_lock.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_mutex.c libcthreads_mutex.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_queue.c libcthreads_queue.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_read_write_lock.c libcthreads_read_write_lock.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_repeating_thread.c libcthreads_repeating_thread.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_support.c libcthreads_support.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_thread.c libcthreads_thread.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_thread_attributes.c libcthreads_thread_attributes.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_thread_pool.c libcthreads_thread_pool.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_types.h \ @HAVE_LOCAL_LIBCTHREADS_TRUE@ libcthreads_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcthreads/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcthreads/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcthreads.la: $(libcthreads_la_OBJECTS) $(libcthreads_la_DEPENDENCIES) $(EXTRA_libcthreads_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcthreads_la_rpath) $(libcthreads_la_OBJECTS) $(libcthreads_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_condition.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_lock.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_mutex.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_queue.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_read_write_lock.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_repeating_thread.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_thread.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_thread_attributes.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcthreads_thread_pool.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcthreads_condition.Plo -rm -f ./$(DEPDIR)/libcthreads_error.Plo -rm -f ./$(DEPDIR)/libcthreads_lock.Plo -rm -f ./$(DEPDIR)/libcthreads_mutex.Plo -rm -f ./$(DEPDIR)/libcthreads_queue.Plo -rm -f ./$(DEPDIR)/libcthreads_read_write_lock.Plo -rm -f ./$(DEPDIR)/libcthreads_repeating_thread.Plo -rm -f ./$(DEPDIR)/libcthreads_support.Plo -rm -f ./$(DEPDIR)/libcthreads_thread.Plo -rm -f ./$(DEPDIR)/libcthreads_thread_attributes.Plo -rm -f ./$(DEPDIR)/libcthreads_thread_pool.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcthreads ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcthreads_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcthreads/libcthreads_thread_attributes.c0000664000175000017500000001000213430101203026510 0ustar00lordyestalordyesta00000000000000/* * Thread attributes functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_libcerror.h" #include "libcthreads_thread_attributes.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) /* Creates thread attributes * Make sure the value thread_attributes is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcthreads_thread_attributes_initialize( libcthreads_thread_attributes_t **thread_attributes, libcerror_error_t **error ) { libcthreads_internal_thread_attributes_t *internal_thread_attributes = NULL; static char *function = "libcthreads_thread_attributes_initialize"; if( thread_attributes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread attributes.", function ); return( -1 ); } if( *thread_attributes != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid thread attributes value already set.", function ); return( -1 ); } internal_thread_attributes = memory_allocate_structure( libcthreads_internal_thread_attributes_t ); if( internal_thread_attributes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create thread attributes.", function ); goto on_error; } if( memory_set( internal_thread_attributes, 0, sizeof( libcthreads_internal_thread_attributes_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear thread attributes.", function ); memory_free( internal_thread_attributes ); return( -1 ); } /* TODO */ *thread_attributes = (libcthreads_thread_attributes_t *) internal_thread_attributes; return( 1 ); on_error: if( internal_thread_attributes != NULL ) { memory_free( internal_thread_attributes ); } return( -1 ); } /* Frees thread attributes * Returns 1 if successful or -1 on error */ int libcthreads_thread_attributes_free( libcthreads_thread_attributes_t **thread_attributes, libcerror_error_t **error ) { libcthreads_internal_thread_attributes_t *internal_thread_attributes = NULL; static char *function = "libcthreads_thread_attributes_free"; int result = 1; if( thread_attributes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid thread attributes.", function ); return( -1 ); } if( *thread_attributes != NULL ) { internal_thread_attributes = (libcthreads_internal_thread_attributes_t *) *thread_attributes; *thread_attributes = NULL; /* TODO */ memory_free( internal_thread_attributes ); } return( result ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_libcerror.h0000664000175000017500000000265113430101203024776 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_LIBCERROR_H ) #define _LIBCTHREADS_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCTHREADS_LIBCERROR_H ) */ libfsapfs-20190210/libcthreads/libcthreads_lock.c0000664000175000017500000002106113430101203023732 0ustar00lordyestalordyesta00000000000000/* * Lock functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_libcerror.h" #include "libcthreads_lock.h" #include "libcthreads_types.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) /* Creates a lock * Make sure the value lock is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcthreads_lock_initialize( libcthreads_lock_t **lock, libcerror_error_t **error ) { libcthreads_internal_lock_t *internal_lock = NULL; static char *function = "libcthreads_lock_initialize"; #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid lock.", function ); return( -1 ); } if( *lock != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid lock value already set.", function ); return( -1 ); } internal_lock = memory_allocate_structure( libcthreads_internal_lock_t ); if( internal_lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create lock.", function ); goto on_error; } if( memory_set( internal_lock, 0, sizeof( libcthreads_internal_lock_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear lock.", function ); memory_free( internal_lock ); return( -1 ); } #if defined( WINAPI ) InitializeCriticalSection( &( internal_lock->critical_section ) ); #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_init( &( internal_lock->mutex ), NULL ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to initialize mutex with error: Insufficient resources.", function ); goto on_error; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to initialize mutex.", function ); goto on_error; } #endif *lock = (libcthreads_lock_t *) internal_lock; return( 1 ); on_error: if( internal_lock != NULL ) { memory_free( internal_lock ); } return( -1 ); } /* Frees a lock * Returns 1 if successful or -1 on error */ int libcthreads_lock_free( libcthreads_lock_t **lock, libcerror_error_t **error ) { libcthreads_internal_lock_t *internal_lock = NULL; static char *function = "libcthreads_lock_free"; int result = 1; #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid lock.", function ); return( -1 ); } if( *lock != NULL ) { internal_lock = (libcthreads_internal_lock_t *) *lock; *lock = NULL; #if defined( WINAPI ) DeleteCriticalSection( &( internal_lock->critical_section ) ); #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_destroy( &( internal_lock->mutex ) ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy mutex with error: Insufficient resources.", function ); result = -1; break; case EBUSY: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy mutex with error: Resource busy.", function ); result = -1; break; default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to destroy mutex.", function ); result = -1; break; } #endif memory_free( internal_lock ); } return( result ); } /* Grabs a lock * Returns 1 if successful or -1 on error */ int libcthreads_lock_grab( const libcthreads_lock_t *lock, libcerror_error_t **error ) { libcthreads_internal_lock_t *internal_lock = NULL; static char *function = "libcthreads_lock_grab"; #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid lock.", function ); return( -1 ); } internal_lock = (libcthreads_internal_lock_t *) lock; #if defined( WINAPI ) EnterCriticalSection( &( internal_lock->critical_section ) ); #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_lock( &( internal_lock->mutex ) ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock mutex with error: Maximum number of locks exceeded.", function ); return( -1 ); case EDEADLK: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock mutex with error: Deadlock condition detected.", function ); return( -1 ); default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock mutex.", function ); return( -1 ); } #endif return( 1 ); } /* Releases a lock * Returns 1 if successful or -1 on error */ int libcthreads_lock_release( const libcthreads_lock_t *lock, libcerror_error_t **error ) { libcthreads_internal_lock_t *internal_lock = NULL; static char *function = "libcthreads_lock_release"; #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) int pthread_result = 0; #endif if( lock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid lock.", function ); return( -1 ); } internal_lock = (libcthreads_internal_lock_t *) lock; #if defined( WINAPI ) LeaveCriticalSection( &( internal_lock->critical_section ) ); #elif defined( HAVE_PTHREAD_H ) pthread_result = pthread_mutex_unlock( &( internal_lock->mutex ) ); switch( pthread_result ) { case 0: break; case EAGAIN: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to lock mutex with error: Maximum number of locks exceeded.", function ); return( -1 ); case EDEADLK: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to unlock mutex with error: Deadlock condition detected.", function ); return( -1 ); default: libcerror_system_set_error( error, pthread_result, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to unlock mutex.", function ); return( -1 ); } #endif return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ libfsapfs-20190210/libcthreads/libcthreads_support.c0000664000175000017500000000222413430101203024516 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcthreads_definitions.h" #include "libcthreads_support.h" #if !defined( HAVE_LOCAL_LIBCTHREADS ) /* Returns the library version as a string */ const char *libcthreads_get_version( void ) { return( (const char *) LIBCTHREADS_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) */ libfsapfs-20190210/libcthreads/libcthreads_read_write_lock.h0000664000175000017500000000614613430101203026153 0ustar00lordyestalordyesta00000000000000/* * Read/Write lock functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_READ_WRITE_LOCK_H ) #define _LIBCTHREADS_INTERNAL_READ_WRITE_LOCK_H #include #include #if defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_read_write_lock libcthreads_internal_read_write_lock_t; struct libcthreads_internal_read_write_lock { #if defined( WINAPI ) && ( WINVER >= 0x0600 ) /* The slim read/write lock */ SRWLOCK slim_read_write_lock; #elif defined( WINAPI ) /* The read critical section */ CRITICAL_SECTION read_critical_section; /* The write critical section */ CRITICAL_SECTION write_critical_section; /* The number of readers */ int number_of_readers; /* The no read event handle */ HANDLE no_read_event_handle; #elif defined( HAVE_PTHREAD_H ) /* The read/write lock */ pthread_rwlock_t read_write_lock; #else #error Missing read/write lock type #endif }; LIBCTHREADS_EXTERN \ int libcthreads_read_write_lock_initialize( libcthreads_read_write_lock_t **read_write_lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_read_write_lock_free( libcthreads_read_write_lock_t **read_write_lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_read_write_lock_grab_for_read( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_read_write_lock_grab_for_write( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_read_write_lock_release_for_read( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_read_write_lock_release_for_write( libcthreads_read_write_lock_t *read_write_lock, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_READ_WRITE_LOCK_H ) */ libfsapfs-20190210/libcthreads/libcthreads_thread_attributes.h0000664000175000017500000000413413430101203026526 0ustar00lordyestalordyesta00000000000000/* * Thread attributes functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_THREAD_ATTRIBUTES_H ) #define _LIBCTHREADS_THREAD_ATTRIBUTES_H #include #include #if defined( HAVE_PTHREAD_H ) && !defined( WINAPI ) #include #endif #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_thread_attributes libcthreads_internal_thread_attributes_t; struct libcthreads_internal_thread_attributes { #if defined( WINAPI ) /* The security attributes */ SECURITY_ATTRIBUTES security_attributes; #elif defined( HAVE_PTHREAD_H ) /* The attributes */ pthread_attr_t attributes; #else #error Missing thread attributes type #endif }; LIBCTHREADS_EXTERN \ int libcthreads_thread_attributes_initialize( libcthreads_thread_attributes_t **thread_attributes, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_thread_attributes_free( libcthreads_thread_attributes_t **thread_attributes, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_THREAD_ATTRIBUTES_H ) */ libfsapfs-20190210/libcthreads/libcthreads_queue.h0000664000175000017500000000641713430101203024143 0ustar00lordyestalordyesta00000000000000/* * Queue functions * * Copyright (C) 2012-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCTHREADS_INTERNAL_QUEUE_H ) #define _LIBCTHREADS_INTERNAL_QUEUE_H #include #include #include "libcthreads_extern.h" #include "libcthreads_libcerror.h" #include "libcthreads_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) typedef struct libcthreads_internal_queue libcthreads_internal_queue_t; struct libcthreads_internal_queue { /* The (current) pop index */ int pop_index; /* The (current) push index */ int push_index; /* The number of values */ int number_of_values; /* The allocated number of values */ int allocated_number_of_values; /* The values array */ intptr_t **values_array; /* The condition mutex */ libcthreads_mutex_t *condition_mutex; /* The queue empty condition */ libcthreads_condition_t *empty_condition; /* The queue full condition */ libcthreads_condition_t *full_condition; }; LIBCTHREADS_EXTERN \ int libcthreads_queue_initialize( libcthreads_queue_t **queue, int maximum_number_of_values, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_queue_free( libcthreads_queue_t **queue, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_queue_empty( libcthreads_queue_t *queue, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_queue_try_pop( libcthreads_queue_t *queue, intptr_t **value, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_queue_pop( libcthreads_queue_t *queue, intptr_t **value, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_queue_try_push( libcthreads_queue_t *queue, intptr_t *value, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_queue_push( libcthreads_queue_t *queue, intptr_t *value, libcerror_error_t **error ); LIBCTHREADS_EXTERN \ int libcthreads_queue_push_sorted( libcthreads_queue_t *queue, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t sort_flags, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCTHREADS ) || defined( HAVE_MULTI_THREAD_SUPPORT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCTHREADS_INTERNAL_QUEUE_H ) */ libfsapfs-20190210/AUTHORS0000664000175000017500000000013513426637445017110 0ustar00lordyestalordyesta00000000000000Acknowledgements: libfsapfs Copyright (C) 2018-2019, Joachim Metz libfsapfs-20190210/config.sub0000755000175000017500000010707013430101253020001 0ustar00lordyestalordyesta00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2018 Free Software Foundation, Inc. timestamp='2018-05-05' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Spilt fields of configuration type IFS="-" read -r field1 field2 field3 field4 <&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | ba-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | e2k-* | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nfp-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pru-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ | wasm32-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-pc os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; asmjs) basic_machine=asmjs-unknown ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2*) basic_machine=m68k-bull os=-sysv3 ;; e500v[12]) basic_machine=powerpc-unknown os=$os"spe" ;; e500v[12]-*) basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=$os"spe" ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; nsv-tandem) basic_machine=nsv-tandem ;; nsx-tandem) basic_machine=nsx-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh5el) basic_machine=sh5le-unknown ;; simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; x64) basic_machine=x86_64-pc ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x$os != x ] then case $os in # First match some system type aliases that might get confused # with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # es1800 is here to avoid being matched by es* (a different OS) -es1800*) os=-ose ;; # Now accept the basic system types. # The portable systems comes first. # Each alternative MUST end in a * to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \ | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ | -midnightbsd*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -xray | -os68k* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo "$os" | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo "$os" | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo "$os" | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4*) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -pikeos*) # Until real need of OS specific support for # particular features comes up, bare metal # configurations are quite functional. case $basic_machine in arm*) os=-eabi ;; *) os=-elf ;; esac ;; -nacl*) ;; -ios) ;; -none) ;; -*-eabi) case $basic_machine in arm*) ;; esac ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; pru-*) os=-elf ;; *-be) os=-beos ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` ;; esac echo "$basic_machine$os" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libfsapfs-20190210/libcpath/0000775000175000017500000000000013430101367017607 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcpath/libcpath_unused.h0000664000175000017500000000254613430101174023134 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_INTERNAL_UNUSED_H ) #define _LIBCPATH_INTERNAL_UNUSED_H #include #if !defined( LIBCPATH_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCPATH_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCPATH_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCPATH_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCPATH_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCPATH_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libcpath/libcpath_support.c0000664000175000017500000000444213430101174023335 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcpath_definitions.h" #include "libcpath_libcerror.h" #include "libcpath_libclocale.h" #include "libcpath_support.h" #if !defined( HAVE_LOCAL_LIBCPATH ) /* Returns the library version as a string */ const char *libcpath_get_version( void ) { return( (const char *) LIBCPATH_VERSION_STRING ); } /* Retrieves the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libcpath_get_codepage( int *codepage, libcerror_error_t **error ) { static char *function = "libcpath_get_codepage"; if( libclocale_codepage_get( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve codepage.", function ); return( -1 ); } return( 1 ); } /* Sets the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libcpath_set_codepage( int codepage, libcerror_error_t **error ) { static char *function = "libcpath_set_codepage"; if( libclocale_codepage_set( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set codepage.", function ); return( -1 ); } return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBCPATH ) */ libfsapfs-20190210/libcpath/libcpath_libclocale.h0000664000175000017500000000266513430101174023724 0ustar00lordyestalordyesta00000000000000/* * The libclocale header wrapper * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_LIBCLOCALE_H ) #define _LIBCPATH_LIBCLOCALE_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if defined( HAVE_LOCAL_LIBCLOCALE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT * before including libclocale.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCLOCALE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _LIBCPATH_LIBCLOCALE_H ) */ libfsapfs-20190210/libcpath/Makefile.am0000664000175000017500000000144713430101174021645 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCPATH AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ noinst_LTLIBRARIES = libcpath.la libcpath_la_SOURCES = \ libcpath_definitions.h \ libcpath_error.c libcpath_error.h \ libcpath_extern.h \ libcpath_path.c libcpath_path.h \ libcpath_libcerror.h \ libcpath_libclocale.h \ libcpath_libcsplit.h \ libcpath_libuna.h \ libcpath_support.c libcpath_support.h \ libcpath_system_string.c libcpath_system_string.h \ libcpath_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcpath ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcpath_la_SOURCES) libfsapfs-20190210/libcpath/libcpath_error.h0000664000175000017500000000340513430101174022755 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_INTERNAL_ERROR_H ) #define _LIBCPATH_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBCPATH ) #include #endif #include "libcpath_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCPATH ) LIBCPATH_EXTERN \ void libcpath_error_free( libcpath_error_t **error ); LIBCPATH_EXTERN \ int libcpath_error_fprint( libcpath_error_t *error, FILE *stream ); LIBCPATH_EXTERN \ int libcpath_error_sprint( libcpath_error_t *error, char *string, size_t size ); LIBCPATH_EXTERN \ int libcpath_error_backtrace_fprint( libcpath_error_t *error, FILE *stream ); LIBCPATH_EXTERN \ int libcpath_error_backtrace_sprint( libcpath_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBCPATH ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCPATH_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libcpath/libcpath_system_string.h0000664000175000017500000000541413430101174024540 0ustar00lordyestalordyesta00000000000000/* * System string functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_SYSTEM_STRING_H ) #define _LIBCPATH_SYSTEM_STRING_H #include #include #include "libcpath_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int libcpath_system_string_size_to_narrow_string( const system_character_t *system_string, size_t system_string_size, size_t *narrow_string_size, libcerror_error_t **error ); int libcpath_system_string_copy_to_narrow_string( const system_character_t *system_string, size_t system_string_size, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ); int libcpath_system_string_size_from_narrow_string( const char *narrow_string, size_t narrow_string_size, size_t *system_string_size, libcerror_error_t **error ); int libcpath_system_string_copy_from_narrow_string( system_character_t *system_string, size_t system_string_size, const char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) int libcpath_system_string_size_to_wide_string( const system_character_t *system_string, size_t system_string_size, size_t *wide_string_size, libcerror_error_t **error ); int libcpath_system_string_copy_to_wide_string( const system_character_t *system_string, size_t system_string_size, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ); int libcpath_system_string_size_from_wide_string( const wchar_t *wide_string, size_t wide_string_size, size_t *system_string_size, libcerror_error_t **error ); int libcpath_system_string_copy_from_wide_string( system_character_t *system_string, size_t system_string_size, const wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCPATH_SYSTEM_STRING_H ) */ libfsapfs-20190210/libcpath/libcpath_error.c0000664000175000017500000000554013430101174022752 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcpath_error.h" #include "libcpath_libcerror.h" #if !defined( HAVE_LOCAL_LIBCPATH ) /* Free an error and its elements */ void libcpath_error_free( libcpath_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcpath_error_fprint( libcpath_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcpath_error_sprint( libcpath_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcpath_error_backtrace_fprint( libcpath_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcpath_error_backtrace_sprint( libcpath_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBCPATH ) */ libfsapfs-20190210/libcpath/libcpath_libcsplit.h0000664000175000017500000000266413430101174023617 0ustar00lordyestalordyesta00000000000000/* * The internal libcsplit header * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_LIBCSPLIT_H ) #define _LIBCPATH_LIBCSPLIT_H #include /* Define HAVE_LOCAL_LIBCSPLIT for local use of libcsplit */ #if defined( HAVE_LOCAL_LIBCSPLIT ) #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCSPLIT_DLL_IMPORT * before including libcsplit.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCSPLIT_DLL_IMPORT #endif #include #endif #endif libfsapfs-20190210/libcpath/libcpath_path.h0000664000175000017500000001600413430101174022557 0ustar00lordyestalordyesta00000000000000/* * Path functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_PATH_H ) #define _LIBCPATH_PATH_H #include #include #include "libcpath_extern.h" #include "libcpath_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcpath_CloseHandle( HANDLE file_handle ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcpath_SetCurrentDirectoryA( LPCSTR path ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCPATH_EXTERN \ int libcpath_path_change_directory( const char *directory_name, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) DWORD libcpath_GetCurrentDirectoryA( DWORD buffer_size, LPCSTR buffer ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCPATH_EXTERN \ int libcpath_path_get_current_working_directory( char **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ); #if defined( WINAPI ) int libcpath_path_get_path_type( const char *path, size_t path_length, uint8_t *path_type, libcerror_error_t **error ); int libcpath_path_get_volume_name( const char *path, size_t path_length, char **volume_name, size_t *volume_name_length, size_t *directory_name_index, libcerror_error_t **error ); int libcpath_path_get_current_working_directory_by_volume( char *volume_name, size_t volume_name_length, char **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ); #endif /* defined( WINAPI ) */ LIBCPATH_EXTERN \ int libcpath_path_get_full_path( const char *path, size_t path_length, char **full_path, size_t *full_path_size, libcerror_error_t **error ); int libcpath_path_get_sanitized_character_size( char character, size_t *sanitized_character_size, libcerror_error_t **error ); int libcpath_path_get_sanitized_character( char character, size_t sanitized_character_size, char *sanitized_path, size_t sanitized_path_size, size_t *sanitized_path_index, libcerror_error_t **error ); LIBCPATH_EXTERN \ int libcpath_path_get_sanitized_filename( const char *filename, size_t filename_length, char **sanitized_filename, size_t *sanitized_filename_size, libcerror_error_t **error ); LIBCPATH_EXTERN \ int libcpath_path_get_sanitized_path( const char *path, size_t path_length, char **sanitized_path, size_t *sanitized_path_size, libcerror_error_t **error ); LIBCPATH_EXTERN \ int libcpath_path_join( char **path, size_t *path_size, const char *directory_name, size_t directory_name_length, const char *filename, size_t filename_length, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcpath_CreateDirectoryA( LPCSTR path, SECURITY_ATTRIBUTES *security_attributes ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCPATH_EXTERN \ int libcpath_path_make_directory( const char *directory_name, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcpath_SetCurrentDirectoryW( LPCWSTR path ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCPATH_EXTERN \ int libcpath_path_change_directory_wide( const wchar_t *directory_name, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) DWORD libcpath_GetCurrentDirectoryW( DWORD buffer_size, LPCWSTR buffer ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCPATH_EXTERN \ int libcpath_path_get_current_working_directory_wide( wchar_t **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ); #if defined( WINAPI ) int libcpath_path_get_path_type_wide( const wchar_t *path, size_t path_length, uint8_t *path_type, libcerror_error_t **error ); int libcpath_path_get_volume_name_wide( const wchar_t *path, size_t path_length, wchar_t **volume_name, size_t *volume_name_length, size_t *directory_name_index, libcerror_error_t **error ); int libcpath_path_get_current_working_directory_by_volume_wide( wchar_t *volume_name, size_t volume_name_length, wchar_t **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ); #endif /* defined( WINAPI ) */ LIBCPATH_EXTERN \ int libcpath_path_get_full_path_wide( const wchar_t *path, size_t path_length, wchar_t **full_path, size_t *full_path_size, libcerror_error_t **error ); int libcpath_path_get_sanitized_character_size_wide( wchar_t character, size_t *sanitized_character_size, libcerror_error_t **error ); int libcpath_path_get_sanitized_character_wide( wchar_t character, size_t sanitized_character_size, wchar_t *sanitized_path, size_t sanitized_path_size, size_t *sanitized_path_index, libcerror_error_t **error ); LIBCPATH_EXTERN \ int libcpath_path_get_sanitized_filename_wide( const wchar_t *filename, size_t filename_length, wchar_t **sanitized_filename, size_t *sanitized_filename_size, libcerror_error_t **error ); LIBCPATH_EXTERN \ int libcpath_path_get_sanitized_path_wide( const wchar_t *path, size_t path_length, wchar_t **sanitized_path, size_t *sanitized_path_size, libcerror_error_t **error ); LIBCPATH_EXTERN \ int libcpath_path_join_wide( wchar_t **path, size_t *path_size, const wchar_t *directory_name, size_t directory_name_length, const wchar_t *filename, size_t filename_length, libcerror_error_t **error ); #if defined( WINAPI ) && ( WINVER <= 0x0500 ) BOOL libcpath_CreateDirectoryW( LPCWSTR path, SECURITY_ATTRIBUTES *security_attributes ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ LIBCPATH_EXTERN \ int libcpath_path_make_directory_wide( const wchar_t *directory_name, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCPATH_PATH_H ) */ libfsapfs-20190210/libcpath/Makefile.in0000664000175000017500000007562713430101254021670 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcpath ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcpath_la_LIBADD = am__libcpath_la_SOURCES_DIST = libcpath_definitions.h libcpath_error.c \ libcpath_error.h libcpath_extern.h libcpath_path.c \ libcpath_path.h libcpath_libcerror.h libcpath_libclocale.h \ libcpath_libcsplit.h libcpath_libuna.h libcpath_support.c \ libcpath_support.h libcpath_system_string.c \ libcpath_system_string.h libcpath_unused.h @HAVE_LOCAL_LIBCPATH_TRUE@am_libcpath_la_OBJECTS = libcpath_error.lo \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_path.lo libcpath_support.lo \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_system_string.lo libcpath_la_OBJECTS = $(am_libcpath_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCPATH_TRUE@am_libcpath_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcpath_error.Plo \ ./$(DEPDIR)/libcpath_path.Plo ./$(DEPDIR)/libcpath_support.Plo \ ./$(DEPDIR)/libcpath_system_string.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcpath_la_SOURCES) DIST_SOURCES = $(am__libcpath_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCPATH_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCPATH_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCPATH_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCPATH_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_LOCAL_LIBCPATH_TRUE@ @LIBCLOCALE_CPPFLAGS@ \ @HAVE_LOCAL_LIBCPATH_TRUE@ @LIBCSPLIT_CPPFLAGS@ \ @HAVE_LOCAL_LIBCPATH_TRUE@ @LIBUNA_CPPFLAGS@ @HAVE_LOCAL_LIBCPATH_TRUE@noinst_LTLIBRARIES = libcpath.la @HAVE_LOCAL_LIBCPATH_TRUE@libcpath_la_SOURCES = \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_definitions.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_error.c libcpath_error.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_extern.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_path.c libcpath_path.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_libcerror.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_libclocale.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_libcsplit.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_libuna.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_support.c libcpath_support.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_system_string.c libcpath_system_string.h \ @HAVE_LOCAL_LIBCPATH_TRUE@ libcpath_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcpath/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcpath/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcpath.la: $(libcpath_la_OBJECTS) $(libcpath_la_DEPENDENCIES) $(EXTRA_libcpath_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcpath_la_rpath) $(libcpath_la_OBJECTS) $(libcpath_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcpath_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcpath_path.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcpath_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcpath_system_string.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcpath_error.Plo -rm -f ./$(DEPDIR)/libcpath_path.Plo -rm -f ./$(DEPDIR)/libcpath_support.Plo -rm -f ./$(DEPDIR)/libcpath_system_string.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcpath ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcpath_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcpath/libcpath_definitions.h0000664000175000017500000000371013430101174024136 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCPATH_INTERNAL_DEFINITIONS_H ) #define LIBCPATH_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCPATH for local use of libcpath */ #if !defined( HAVE_LOCAL_LIBCPATH ) #include /* The definitions in are copied here * for local use of libcpath */ #else #define LIBCPATH_VERSION 20181228 /* The libcpath version string */ #define LIBCPATH_VERSION_STRING "20181228" #if defined( WINAPI ) #define LIBCPATH_SEPARATOR '\\' #else #define LIBCPATH_SEPARATOR '/' #endif /* defined( WINAPI ) */ #endif /* !defined( HAVE_LOCAL_LIBCPATH ) */ #if defined( WINAPI ) #define LIBCPATH_ESCAPE_CHARACTER '^' #else #define LIBCPATH_ESCAPE_CHARACTER '\\' #endif /* defined( WINAPI ) */ #if defined( WINAPI ) enum LIBCPATH_TYPES { LIBCPATH_TYPE_ABSOLUTE, LIBCPATH_TYPE_DEVICE, LIBCPATH_TYPE_EXTENDED_LENGTH, LIBCPATH_TYPE_EXTENDED_LENGTH_UNC, LIBCPATH_TYPE_RELATIVE, LIBCPATH_TYPE_UNC }; #else enum LIBCPATH_TYPES { LIBCPATH_TYPE_ABSOLUTE, LIBCPATH_TYPE_RELATIVE }; #endif /* defined( WINAPI ) */ #endif /* !defined( LIBCPATH_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libcpath/libcpath_libcerror.h0000664000175000017500000000264013430101174023607 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_LIBCERROR_H ) #define _LIBCPATH_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCPATH_LIBCERROR_H ) */ libfsapfs-20190210/libcpath/libcpath_extern.h0000664000175000017500000000240613430101174023131 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_INTERNAL_EXTERN_H ) #define _LIBCPATH_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCPATH for local use of libcpath */ #if !defined( HAVE_LOCAL_LIBCPATH ) #include #define LIBCPATH_EXTERN_VARIABLE LIBCPATH_EXTERN #else #define LIBCPATH_EXTERN /* extern */ #define LIBCPATH_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBCPATH ) */ #endif /* !defined( _LIBCPATH_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libcpath/libcpath_path.c0000664000175000017500000053004513430101174022560 0ustar00lordyestalordyesta00000000000000/* * Path functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #if defined( WINAPI ) && ( WINVER <= 0x0500 ) #include #endif #if defined( HAVE_ERRNO_H ) #include #endif #if defined( HAVE_SYS_STAT_H ) #include #endif #if defined( HAVE_LIMITS_H ) || defined( WINAPI ) /* Include for PATH_MAX */ #include #endif #if defined( HAVE_UNISTD_H ) #include #endif #include "libcpath_definitions.h" #include "libcpath_libcerror.h" #include "libcpath_libcsplit.h" #include "libcpath_path.h" #include "libcpath_system_string.h" #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of CloseHandle * Returns TRUE if successful or FALSE on error */ BOOL libcpath_CloseHandle( HANDLE file_handle ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( file_handle == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "CloseHandle" ); if( function != NULL ) { result = function( file_handle ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { result = FALSE; } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of SetCurrentDirectoryA * Returns TRUE if successful or FALSE on error */ BOOL libcpath_SetCurrentDirectoryA( LPCSTR path ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( path == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "SetCurrentDirectoryA" ); if( function != NULL ) { result = function( path ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcpath_CloseHandle( library_handle ); return( FALSE ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Changes the directory * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcpath_path_change_directory( const char *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_change_directory"; DWORD error_code = 0; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) if( libcpath_SetCurrentDirectoryA( directory_name ) == 0 ) #else if( SetCurrentDirectoryA( directory_name ) == 0 ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, error_code, "%s: unable to change directory.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_CHDIR ) /* Changes the directory * This function uses the POSIX chdir function or equivalent * Returns 1 if successful or -1 on error */ int libcpath_path_change_directory( const char *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_change_directory"; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } if( chdir( directory_name ) != 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, errno, "%s: unable to change directory.", function ); return( -1 ); } return( 1 ); } #else #error Missing change directory function #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of GetCurrentDirectoryA * Returns the number of characters in the current directory string or 0 on error */ DWORD libcpath_GetCurrentDirectoryA( DWORD buffer_size, LPCSTR buffer ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD result = 0; library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( 0 ); } function = GetProcAddress( library_handle, (LPCSTR) "GetCurrentDirectoryA" ); if( function != NULL ) { result = function( buffer_size, buffer ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcpath_CloseHandle( library_handle ); return( 0 ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Retrieves the current working directory * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcpath_path_get_current_working_directory( char **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_current_working_directory"; DWORD safe_current_working_directory_size = 0; DWORD error_code = 0; if( current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory.", function ); return( -1 ); } if( *current_working_directory != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid current working directory value already set.", function ); return( -1 ); } if( current_working_directory_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory size.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) safe_current_working_directory_size = libcpath_GetCurrentDirectoryA( 0, NULL ); #else safe_current_working_directory_size = GetCurrentDirectoryA( 0, NULL ); #endif if( safe_current_working_directory_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory size.", function ); goto on_error; } if( (size_t) safe_current_working_directory_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: current working directory size value out of bounds.", function ); goto on_error; } *current_working_directory_size = (size_t) safe_current_working_directory_size; *current_working_directory = narrow_string_allocate( *current_working_directory_size ); if( *current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create current working directory.", function ); goto on_error; } if( memory_set( *current_working_directory, 0, sizeof( char ) * *current_working_directory_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear current working directory.", function ); goto on_error; } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) if( libcpath_GetCurrentDirectoryA( safe_current_working_directory_size, *current_working_directory ) != ( safe_current_working_directory_size - 1 ) ) #else if( GetCurrentDirectoryA( safe_current_working_directory_size, *current_working_directory ) != ( safe_current_working_directory_size - 1 ) ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, error_code, "%s: unable to retrieve current working directory.", function ); goto on_error; } return( 1 ); on_error: if( *current_working_directory != NULL ) { memory_free( *current_working_directory ); *current_working_directory = NULL; } *current_working_directory_size = 0; return( -1 ); } #elif defined( HAVE_GETCWD ) /* Retrieves the current working directory * This function uses the POSIX getcwd function or equivalent * Returns 1 if successful or -1 on error */ int libcpath_path_get_current_working_directory( char **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_current_working_directory"; if( current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory.", function ); return( -1 ); } if( *current_working_directory != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid current working directory value already set.", function ); return( -1 ); } if( current_working_directory_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory size.", function ); return( -1 ); } *current_working_directory_size = (size_t) PATH_MAX; *current_working_directory = narrow_string_allocate( *current_working_directory_size ); if( *current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create current working directory.", function ); goto on_error; } if( memory_set( *current_working_directory, 0, sizeof( char ) * *current_working_directory_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear current working directory.", function ); goto on_error; } if( getcwd( *current_working_directory, *current_working_directory_size ) == NULL ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, errno, "%s: unable to retrieve current working directory.", function ); goto on_error; } return( 1 ); on_error: if( *current_working_directory != NULL ) { memory_free( *current_working_directory ); *current_working_directory = NULL; } *current_working_directory_size = 0; return( -1 ); } #else #error Missing get current working directory function #endif #if defined( WINAPI ) /* Determines the path type * Returns 1 if succesful or -1 on error */ int libcpath_path_get_path_type( const char *path, size_t path_length, uint8_t *path_type, libcerror_error_t **error ) { static char *function = "libcpath_path_get_path_type"; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( path_type == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path type.", function ); return( -1 ); } *path_type = LIBCPATH_TYPE_RELATIVE; /* Determine if the path is a special path * device path prefix: \\.\ * extended-length path prefix: \\?\ */ if( ( path_length >= 4 ) && ( path[ 0 ] == '\\' ) && ( path[ 1 ] == '\\' ) && ( ( path[ 2 ] == '.' ) || ( path[ 2 ] == '?' ) ) && ( path[ 3 ] == '\\' ) ) { if( path[ 2 ] == '.' ) { *path_type = LIBCPATH_TYPE_DEVICE; } /* Determine if the path in an extended-length UNC path * \\?\UNC\server\share */ else if( ( path_length >= 8 ) && ( path[ 4 ] == 'U' ) && ( path[ 5 ] == 'N' ) && ( path[ 6 ] == 'C' ) && ( path[ 7 ] == '\\' ) ) { *path_type = LIBCPATH_TYPE_EXTENDED_LENGTH_UNC; } else { *path_type = LIBCPATH_TYPE_EXTENDED_LENGTH; } } /* Determine if the path is an UNC path * \\server\share */ else if( ( path_length >= 2 ) && ( path[ 0 ] == '\\' ) && ( path[ 1 ] == '\\' ) ) { *path_type = LIBCPATH_TYPE_UNC; } else if( path[ 0 ] == '\\' ) { *path_type = LIBCPATH_TYPE_ABSOLUTE; } else if( ( path_length >= 3 ) && ( path[ 1 ] == ':' ) && ( path[ 2 ] == '\\' ) && ( ( ( path[ 0 ] >= 'A' ) && ( path[ 0 ] <= 'Z' ) ) || ( ( path[ 0 ] >= 'a' ) && ( path[ 0 ] <= 'z' ) ) ) ) { *path_type = LIBCPATH_TYPE_ABSOLUTE; } return( 1 ); } /* Determines the volume name * Returns 1 if succesful or -1 on error */ int libcpath_path_get_volume_name( const char *path, size_t path_length, char **volume_name, size_t *volume_name_length, size_t *directory_name_index, libcerror_error_t **error ) { static char *function = "libcpath_path_get_volume_name"; size_t path_index = 0; size_t share_name_index = 0; size_t volume_name_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( volume_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume name.", function ); return( -1 ); } if( volume_name_length == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume name length.", function ); return( -1 ); } if( directory_name_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name index.", function ); return( -1 ); } *volume_name = NULL; *volume_name_length = 0; *directory_name_index = 0; /* Determine if the path is a special path * device path prefix: \\.\ * extended-length path prefix: \\?\ */ if( ( path_length >= 4 ) && ( path[ 0 ] == '\\' ) && ( path[ 1 ] == '\\' ) && ( ( path[ 2 ] == '.' ) || ( path[ 2 ] == '?' ) ) && ( path[ 3 ] == '\\' ) ) { if( path[ 2 ] == '.' ) { volume_name_index = 4; } /* Determine if the path in an extended-length UNC path * \\?\UNC\server\share */ else if( ( path_length >= 8 ) && ( path[ 4 ] == 'U' ) && ( path[ 5 ] == 'N' ) && ( path[ 6 ] == 'C' ) && ( path[ 7 ] == '\\' ) ) { volume_name_index = 8; } else { volume_name_index = 4; } } /* Determine if the path is an UNC path * \\server\share */ else if( ( path_length >= 2 ) && ( path[ 0 ] == '\\' ) && ( path[ 1 ] == '\\' ) ) { volume_name_index = 2; } /* Check if the path contains a volume letter */ if( ( path_length >= 2 ) && ( volume_name_index <= ( path_length - 2 ) ) && ( path[ volume_name_index + 1 ] == ':' ) && ( ( ( path[ volume_name_index ] >= 'A' ) && ( path[ volume_name_index ] <= 'Z' ) ) || ( ( path[ volume_name_index ] >= 'a' ) && ( path[ volume_name_index ] <= 'z' ) ) ) ) { path_index = volume_name_index + 2; if( ( path_index < path_length ) && ( path[ path_index ] == '\\' ) ) { path_index++; } *volume_name = (char *) &( path[ volume_name_index ] ); *volume_name_length = path_index - volume_name_index; if( path[ path_index - 1 ] == '\\' ) { *volume_name_length -= 1; } *directory_name_index = path_index; } else if( volume_name_index == 4 ) { for( path_index = volume_name_index; path_index < path_length; path_index++ ) { if( path[ path_index ] == '\\' ) { path_index++; break; } } *volume_name = (char *) &( path[ 4 ] ); *volume_name_length = path_index - 4; if( path[ path_index - 1 ] == '\\' ) { *volume_name_length -= 1; } *directory_name_index = path_index; } else if( ( volume_name_index == 2 ) || ( volume_name_index == 8 ) ) { for( share_name_index = volume_name_index; share_name_index < path_length; share_name_index++ ) { if( path[ share_name_index ] == '\\' ) { share_name_index++; break; } } if( share_name_index > path_length ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid path - missing share name.", function ); return( -1 ); } for( path_index = share_name_index; path_index < path_length; path_index++ ) { if( path[ path_index ] == '\\' ) { path_index++; break; } } *volume_name = (char *) &( path[ volume_name_index ] ); *volume_name_length = path_index - volume_name_index; if( path[ path_index - 1 ] == '\\' ) { *volume_name_length -= 1; } *directory_name_index = path_index; } return( 1 ); } /* Retrieves the current working directory of a specific volume * Returns 1 if successful or -1 on error */ int libcpath_path_get_current_working_directory_by_volume( char *volume_name, size_t volume_name_length, char **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ) { char *change_volume_name = NULL; char *current_volume_working_directory = NULL; static char *function = "libcpath_path_get_current_working_directory_by_volume"; size_t current_volume_working_directory_size = 0; int result = 1; if( current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory.", function ); return( -1 ); } if( current_working_directory_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory size.", function ); return( -1 ); } /* If the path contains a volume name switch to that * volume to determine the current directory */ if( volume_name != NULL ) { if( volume_name_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid volume name length value exceeds maximum.", function ); goto on_error; } if( libcpath_path_get_current_working_directory( ¤t_volume_working_directory, ¤t_volume_working_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current volume working directory.", function ); goto on_error; } change_volume_name = narrow_string_allocate( volume_name_length + 1 ); if( change_volume_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create change volume name.", function ); goto on_error; } if( narrow_string_copy( change_volume_name, volume_name, volume_name_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set change volume name.", function ); goto on_error; } change_volume_name[ volume_name_length ] = 0; if( libcpath_path_change_directory( change_volume_name, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to change current working directory.", function ); goto on_error; } memory_free( change_volume_name ); change_volume_name = NULL; } if( libcpath_path_get_current_working_directory( current_working_directory, current_working_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current directory.", function ); /* Make sure the current working directory has been changed * back to its original value */ result = -1; } if( current_volume_working_directory != NULL ) { if( libcpath_path_change_directory( current_volume_working_directory, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to change current working directory.", function ); goto on_error; } memory_free( current_volume_working_directory ); current_volume_working_directory = NULL; } return( result ); on_error: if( change_volume_name != NULL ) { memory_free( change_volume_name ); } if( current_volume_working_directory != NULL ) { memory_free( current_volume_working_directory ); } if( *current_working_directory != NULL ) { memory_free( *current_working_directory ); *current_working_directory = NULL; } *current_working_directory_size = 0; return( -1 ); } /* Determines the full path of the Windows path specified * The function uses the extended-length path format * (path with \\?\ prefix) * * Multiple successive \ not at the start of the path are combined into one * * Scenario's that are considered full paths: * Device path: \\.\PhysicalDrive0 * Extended-length path: \\?\C:\directory\file.txt * Extended-length UNC path: \\?\UNC\server\share\directory\file.txt * * Scenario's that are not considered full paths: * Local 'absolute' path: \directory\file.txt * \directory\\file.txt * Local 'relative' path: ..\directory\file.txt * Local 'relative' path: .\directory\file.txt * Volume 'absolute' path: C:\directory\file.txt * C:\..\directory\file.txt * Volume 'relative' path: C:directory\file.txt * UNC path: \\server\share\directory\file.txt * * TODO handle: * Volume device path: \\.\C: * Volume file system path: \\.\C:\ * * Returns 1 if succesful or -1 on error */ int libcpath_path_get_full_path( const char *path, size_t path_length, char **full_path, size_t *full_path_size, libcerror_error_t **error ) { libcsplit_narrow_split_string_t *current_directory_split_string = NULL; libcsplit_narrow_split_string_t *path_split_string = NULL; char *current_directory = NULL; char *current_directory_string_segment = NULL; char *full_path_prefix = NULL; char *last_used_path_string_segment = NULL; char *path_string_segment = NULL; char *volume_name = NULL; static char *function = "libcpath_path_get_full_path"; size_t current_directory_length = 0; size_t current_directory_name_index = 0; size_t current_directory_size = 0; size_t current_directory_string_segment_size = 0; size_t full_path_index = 0; size_t full_path_prefix_length = 0; size_t last_used_path_string_segment_size = 0; size_t path_directory_name_index = 0; size_t path_string_segment_size = 0; size_t safe_full_path_size = 0; size_t volume_name_length = 0; uint8_t path_type = LIBCPATH_TYPE_RELATIVE; int current_directory_number_of_segments = 0; int current_directory_segment_index = 0; int last_used_path_segment_index = -1; int path_number_of_segments = 0; int path_segment_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path.", function ); return( -1 ); } if( *full_path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid full path value already set.", function ); return( -1 ); } if( full_path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path size.", function ); return( -1 ); } if( libcpath_path_get_path_type( path, path_length, &path_type, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine path type.", function ); goto on_error; } if( libcpath_path_get_volume_name( path, path_length, &volume_name, &volume_name_length, &path_directory_name_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine volume name.", function ); goto on_error; } /* If the path is a device path, an extended-length path or an UNC * do not bother to lookup the current working directory */ if( ( path_type != LIBCPATH_TYPE_DEVICE ) && ( path_type != LIBCPATH_TYPE_EXTENDED_LENGTH ) && ( path_type != LIBCPATH_TYPE_EXTENDED_LENGTH_UNC ) && ( path_type != LIBCPATH_TYPE_UNC ) ) { if( libcpath_path_get_current_working_directory_by_volume( volume_name, volume_name_length, ¤t_directory, ¤t_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory by volume.", function ); goto on_error; } /* Determine the volume name using the current working directory if necessary */ if( libcpath_path_get_volume_name( current_directory, current_directory_size - 1, &volume_name, &volume_name_length, ¤t_directory_name_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine volume name from current working directory.", function ); goto on_error; } } if( ( current_directory != NULL ) && ( current_directory_name_index < current_directory_size ) ) { current_directory_length = narrow_string_length( &( current_directory[ current_directory_name_index ] ) ); if( libcsplit_narrow_string_split( &( current_directory[ current_directory_name_index ] ), current_directory_length + 1, '\\', ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split current working directory.", function ); goto on_error; } } if( libcsplit_narrow_string_split( &( path[ path_directory_name_index ] ), path_length - path_directory_name_index + 1, '\\', &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split path.", function ); goto on_error; } /* The size of the full path consists of: * the size of the prefix (\\?\ or \\.\) */ safe_full_path_size = 4; /* If the path contains a volume name * the length of the volume name * a directory separator */ if( volume_name != NULL ) { safe_full_path_size += volume_name_length + 1; } /* If the path contains an UNC path * add the size of the UNC\ prefix */ if( ( path_type == LIBCPATH_TYPE_EXTENDED_LENGTH_UNC ) || ( path_type == LIBCPATH_TYPE_UNC ) ) { safe_full_path_size += 4; } /* If the path is relative * add the size of the current working directory * a directory separator, if necessary */ if( ( path_type == LIBCPATH_TYPE_RELATIVE ) && ( current_directory_name_index < current_directory_size ) ) { safe_full_path_size += ( current_directory_size - ( current_directory_name_index + 1 ) ); if( ( current_directory_size >= 2 ) && ( current_directory[ current_directory_size - 2 ] != '\\' ) ) { safe_full_path_size += 1; } } if( current_directory_split_string != NULL ) { if( libcsplit_narrow_split_string_get_number_of_segments( current_directory_split_string, ¤t_directory_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of current working directory string segments.", function ); goto on_error; } current_directory_segment_index = current_directory_number_of_segments - 1; } if( libcsplit_narrow_split_string_get_number_of_segments( path_split_string, &path_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of path string segments.", function ); goto on_error; } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } /* If the path is .. reverse the current path by one directory */ if( ( path_string_segment_size == 3 ) && ( path_string_segment[ 0 ] == '.' ) && ( path_string_segment[ 1 ] == '.' ) ) { if( ( current_directory_split_string != NULL ) && ( last_used_path_segment_index == -1 ) ) { if( libcsplit_narrow_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= current_directory_string_segment_size; if( libcsplit_narrow_split_string_set_segment_by_index( current_directory_split_string, current_directory_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } current_directory_segment_index--; } else if( last_used_path_segment_index >= 0 ) { if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing last used path string string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= last_used_path_string_segment_size; if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, last_used_path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Find the previous path split value that contains a name */ while( last_used_path_segment_index > 0 ) { last_used_path_segment_index--; if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment_size != 0 ) { break; } } } if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is . ignore the entry */ else if( ( path_string_segment_size == 2 ) && ( path_string_segment[ 0 ] == '.' ) ) { if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is empty ignore the entry */ else if( path_string_segment_size <= 1 ) { if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } else { /* Add the size of the directory or file name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size += path_string_segment_size; last_used_path_segment_index = path_segment_index; } } /* Note that the last path separator serves as the end of string */ full_path_index = 0; *full_path = narrow_string_allocate( safe_full_path_size ); if( *full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create full path.", function ); goto on_error; } if( memory_set( *full_path, 0, sizeof( char ) * safe_full_path_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear full path.", function ); goto on_error; } *full_path_size = safe_full_path_size; if( path_type == LIBCPATH_TYPE_DEVICE ) { full_path_prefix = "\\\\.\\"; full_path_prefix_length = 4; } else { full_path_prefix = "\\\\?\\"; full_path_prefix_length = 4; } if( narrow_string_copy( &( ( *full_path )[ full_path_index ] ), full_path_prefix, full_path_prefix_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set prefix in full path.", function ); goto on_error; } full_path_index += full_path_prefix_length; /* If there is a share name the path is an UNC path */ if( ( path_type == LIBCPATH_TYPE_EXTENDED_LENGTH_UNC ) || ( path_type == LIBCPATH_TYPE_UNC ) ) { if( narrow_string_copy( &( ( *full_path )[ full_path_index ] ), "UNC\\", 4 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set UNC\\ prefix in full path.", function ); goto on_error; } full_path_index += 4; } if( volume_name != NULL ) { if( narrow_string_copy( &( ( *full_path )[ full_path_index ] ), volume_name, volume_name_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set volume name in full path.", function ); goto on_error; } full_path_index += volume_name_length; ( *full_path )[ full_path_index ] = '\\'; full_path_index += 1; } /* If the path is relative * add the current working directory elements */ if( ( path_type == LIBCPATH_TYPE_RELATIVE ) && ( current_directory_split_string != NULL ) ) { for( current_directory_segment_index = 0; current_directory_segment_index < current_directory_number_of_segments; current_directory_segment_index++ ) { if( libcsplit_narrow_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment_size != 0 ) { if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( narrow_string_copy( &( ( *full_path )[ full_path_index ] ), current_directory_string_segment, current_directory_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory split value: %d in full path.", function, current_directory_segment_index ); goto on_error; } full_path_index += current_directory_string_segment_size - 1; ( *full_path )[ full_path_index ] = '\\'; full_path_index += 1; } } } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment_size != 0 ) { if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } if( narrow_string_copy( &( ( *full_path )[ full_path_index ] ), path_string_segment, path_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path split value: %d in full path.", function, path_segment_index ); goto on_error; } full_path_index += path_string_segment_size - 1; ( *full_path )[ full_path_index ] = '\\'; full_path_index += 1; } } ( *full_path )[ full_path_index - 1 ] = 0; if( libcsplit_narrow_split_string_free( &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free path split string.", function ); goto on_error; } if( current_directory_split_string != NULL ) { if( libcsplit_narrow_split_string_free( ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free current working directory split string.", function ); goto on_error; } } if( current_directory != NULL ) { memory_free( current_directory ); } return( 1 ); on_error: if( *full_path != NULL ) { memory_free( *full_path ); *full_path = NULL; } *full_path_size = 0; if( path_split_string != NULL ) { libcsplit_narrow_split_string_free( &path_split_string, NULL ); } if( current_directory_split_string != NULL ) { libcsplit_narrow_split_string_free( ¤t_directory_split_string, NULL ); } if( current_directory != NULL ) { memory_free( current_directory ); } return( -1 ); } #else /* Determines the full path of the POSIX path specified * Multiple successive / are combined into one * * Scenarios: * /home/user/file.txt * /home/user//file.txt * /home/user/../user/file.txt * /../home/user/file.txt * user/../user/file.txt * * Returns 1 if succesful or -1 on error */ int libcpath_path_get_full_path( const char *path, size_t path_length, char **full_path, size_t *full_path_size, libcerror_error_t **error ) { libcsplit_narrow_split_string_t *current_directory_split_string = NULL; libcsplit_narrow_split_string_t *path_split_string = NULL; char *current_directory = NULL; char *current_directory_string_segment = NULL; char *last_used_path_string_segment = NULL; char *path_string_segment = NULL; static char *function = "libcpath_path_get_full_path"; size_t current_directory_length = 0; size_t current_directory_size = 0; size_t current_directory_string_segment_size = 0; size_t full_path_index = 0; size_t last_used_path_string_segment_size = 0; size_t path_string_segment_size = 0; size_t safe_full_path_size = 0; uint8_t path_type = LIBCPATH_TYPE_RELATIVE; int current_directory_number_of_segments = 0; int current_directory_segment_index = 0; int last_used_path_segment_index = -1; int path_number_of_segments = 0; int path_segment_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path.", function ); return( -1 ); } if( *full_path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid full path value already set.", function ); return( -1 ); } if( full_path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path size.", function ); return( -1 ); } if( path[ 0 ] == '/' ) { path_type = LIBCPATH_TYPE_ABSOLUTE; } else { if( libcpath_path_get_current_working_directory( ¤t_directory, ¤t_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory.", function ); goto on_error; } } if( current_directory != NULL ) { current_directory_length = narrow_string_length( current_directory ); if( libcsplit_narrow_string_split( current_directory, current_directory_length + 1, '/', ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split current working directory.", function ); goto on_error; } } if( libcsplit_narrow_string_split( path, path_length + 1, '/', &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split path.", function ); goto on_error; } /* Determine the full path size */ /* If the path is absolute * a directory separator */ if( path_type == LIBCPATH_TYPE_ABSOLUTE ) { safe_full_path_size = 1; } /* If the path is relative * add the size of the current working directory * a directory separator, if necessary */ else if( path_type == LIBCPATH_TYPE_RELATIVE ) { if( current_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory.", function ); goto on_error; } /* We need to use the length here since current_directory_size will be PATH_MAX */ safe_full_path_size = current_directory_length; if( ( current_directory_length >= 1 ) && ( current_directory[ current_directory_length - 1 ] != '/' ) ) { safe_full_path_size++; } } if( current_directory_split_string != NULL ) { if( libcsplit_narrow_split_string_get_number_of_segments( current_directory_split_string, ¤t_directory_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of current working directory string segments.", function ); goto on_error; } current_directory_segment_index = current_directory_number_of_segments - 1; } if( libcsplit_narrow_split_string_get_number_of_segments( path_split_string, &path_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of path string segments.", function ); goto on_error; } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } /* If the path is .. reverse the current path by one directory */ if( ( path_string_segment_size == 3 ) && ( path_string_segment[ 0 ] == '.' ) && ( path_string_segment[ 1 ] == '.' ) ) { if( ( current_directory_split_string != NULL ) && ( last_used_path_segment_index == -1 ) ) { if( libcsplit_narrow_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= current_directory_string_segment_size; if( libcsplit_narrow_split_string_set_segment_by_index( current_directory_split_string, current_directory_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } current_directory_segment_index--; } else if( last_used_path_segment_index >= 0 ) { if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing last used path string string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= last_used_path_string_segment_size; if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, last_used_path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Find the previous path split value that contains a name */ while( last_used_path_segment_index > 0 ) { last_used_path_segment_index--; if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment_size != 0 ) { break; } } } if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is . ignore the entry */ else if( ( path_string_segment_size == 2 ) && ( path_string_segment[ 0 ] == '.' ) ) { if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is empty ignore the entry */ else if( path_string_segment_size <= 1 ) { if( libcsplit_narrow_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } else { /* Add the size of the directory or file name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size += path_string_segment_size; last_used_path_segment_index = path_segment_index; } } /* Note that the last path separator serves as the end of string */ full_path_index = 0; *full_path = narrow_string_allocate( safe_full_path_size ); if( *full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create full path.", function ); goto on_error; } if( memory_set( *full_path, 0, sizeof( char ) * safe_full_path_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear full path.", function ); goto on_error; } *full_path_size = safe_full_path_size; if( path_type == LIBCPATH_TYPE_ABSOLUTE ) { ( *full_path )[ full_path_index ] = '/'; full_path_index += 1; } /* If the path is relative * add the current working directory elements */ if( ( path_type == LIBCPATH_TYPE_RELATIVE ) && ( current_directory_split_string != NULL ) ) { for( current_directory_segment_index = 0; current_directory_segment_index < current_directory_number_of_segments; current_directory_segment_index++ ) { if( libcsplit_narrow_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment_size != 0 ) { if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( narrow_string_copy( &( ( *full_path )[ full_path_index ] ), current_directory_string_segment, current_directory_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory split value: %d in full path.", function, current_directory_segment_index ); goto on_error; } full_path_index += current_directory_string_segment_size - 1; ( *full_path )[ full_path_index ] = '/'; full_path_index += 1; } } } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_narrow_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment_size != 0 ) { if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } if( narrow_string_copy( &( ( *full_path )[ full_path_index ] ), path_string_segment, path_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path split value: %d in full path.", function, path_segment_index ); goto on_error; } full_path_index += path_string_segment_size - 1; ( *full_path )[ full_path_index ] = '/'; full_path_index += 1; } } ( *full_path )[ full_path_index - 1 ] = 0; if( libcsplit_narrow_split_string_free( &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free path split string.", function ); goto on_error; } if( current_directory_split_string != NULL ) { if( libcsplit_narrow_split_string_free( ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free current working directory split string.", function ); goto on_error; } } if( current_directory != NULL ) { memory_free( current_directory ); } return( 1 ); on_error: if( *full_path != NULL ) { memory_free( *full_path ); *full_path = NULL; } *full_path_size = 0; if( path_split_string != NULL ) { libcsplit_narrow_split_string_free( &path_split_string, NULL ); } if( current_directory_split_string != NULL ) { libcsplit_narrow_split_string_free( ¤t_directory_split_string, NULL ); } if( current_directory != NULL ) { memory_free( current_directory ); } return( -1 ); } #endif /* defined( WINAPI ) */ /* Retrieves the size of a sanitized version of the path character * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_character_size( char character, size_t *sanitized_character_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_character_size"; if( sanitized_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized character size.", function ); return( -1 ); } if( ( character >= 0x00 ) && ( character <= 0x1f ) ) { *sanitized_character_size = 4; } else if( character == LIBCPATH_ESCAPE_CHARACTER ) { *sanitized_character_size = 2; } #if defined( WINAPI ) else if( character == '/' ) { *sanitized_character_size = 4; } #endif else if( ( character == '!' ) || ( character == '$' ) || ( character == '%' ) || ( character == '&' ) || ( character == '*' ) || ( character == '+' ) || ( character == ':' ) || ( character == ';' ) || ( character == '<' ) || ( character == '>' ) || ( character == '?' ) || ( character == '|' ) || ( character == 0x7f ) ) { *sanitized_character_size = 4; } else { *sanitized_character_size = 1; } return( 1 ); } /* Retrieves a sanitized version of the path character * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_character( char character, size_t sanitized_character_size, char *sanitized_path, size_t sanitized_path_size, size_t *sanitized_path_index, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_character"; size_t safe_sanitized_path_index = 0; char lower_nibble = 0; char upper_nibble = 0; if( ( sanitized_character_size != 1 ) && ( sanitized_character_size != 2 ) && ( sanitized_character_size != 4 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sanitized character size value out of bounds.", function ); return( -1 ); } if( sanitized_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path.", function ); return( -1 ); } if( sanitized_path_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid sanitized path size value exceeds maximum.", function ); return( -1 ); } if( sanitized_path_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path index.", function ); return( -1 ); } safe_sanitized_path_index = *sanitized_path_index; if( safe_sanitized_path_index > sanitized_path_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sanitized path index value out of bounds.", function ); return( -1 ); } if( ( sanitized_character_size > sanitized_path_size ) || ( safe_sanitized_path_index > ( sanitized_path_size - sanitized_character_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid sanitized path size value too small.", function ); return( -1 ); } if( sanitized_character_size == 1 ) { sanitized_path[ safe_sanitized_path_index++ ] = character; } else if( sanitized_character_size == 2 ) { sanitized_path[ safe_sanitized_path_index++ ] = LIBCPATH_ESCAPE_CHARACTER; sanitized_path[ safe_sanitized_path_index++ ] = LIBCPATH_ESCAPE_CHARACTER; } else if( sanitized_character_size == 4 ) { lower_nibble = character & 0x0f; upper_nibble = ( character >> 4 ) & 0x0f; if( lower_nibble > 10 ) { lower_nibble += 'a' - 10; } else { lower_nibble += '0'; } if( upper_nibble > 10 ) { upper_nibble += 'a' - 10; } else { upper_nibble += '0'; } sanitized_path[ safe_sanitized_path_index++ ] = LIBCPATH_ESCAPE_CHARACTER; sanitized_path[ safe_sanitized_path_index++ ] = 'x'; sanitized_path[ safe_sanitized_path_index++ ] = upper_nibble; sanitized_path[ safe_sanitized_path_index++ ] = lower_nibble; } *sanitized_path_index = safe_sanitized_path_index; return( 1 ); } /* Retrieves a sanitized version of the filename * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_filename( const char *filename, size_t filename_length, char **sanitized_filename, size_t *sanitized_filename_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_filename"; char *safe_sanitized_filename = NULL; size_t filename_index = 0; size_t sanitized_character_size = 0; size_t safe_sanitized_filename_size = 0; size_t sanitized_filename_index = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( filename_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid filename length is zero.", function ); return( -1 ); } if( filename_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid filename length value exceeds maximum.", function ); return( -1 ); } if( sanitized_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized filename.", function ); return( -1 ); } if( *sanitized_filename != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sanitized filename value already set.", function ); return( -1 ); } if( sanitized_filename_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized filename size.", function ); return( -1 ); } safe_sanitized_filename_size = 1; for( filename_index = 0; filename_index < filename_length; filename_index++ ) { if( filename[ filename_index ] == LIBCPATH_SEPARATOR ) { sanitized_character_size = 4; } else if( libcpath_path_get_sanitized_character_size( filename[ filename_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } safe_sanitized_filename_size += sanitized_character_size; } if( safe_sanitized_filename_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid sanitized filename size value exceeds maximum.", function ); goto on_error; } safe_sanitized_filename = narrow_string_allocate( safe_sanitized_filename_size ); if( safe_sanitized_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create sanitized filename.", function ); goto on_error; } for( filename_index = 0; filename_index < filename_length; filename_index++ ) { if( filename[ filename_index ] == LIBCPATH_SEPARATOR ) { sanitized_character_size = 4; } else if( libcpath_path_get_sanitized_character_size( filename[ filename_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } if( libcpath_path_get_sanitized_character( filename[ filename_index ], sanitized_character_size, safe_sanitized_filename, safe_sanitized_filename_size, &sanitized_filename_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } } safe_sanitized_filename[ sanitized_filename_index ] = 0; *sanitized_filename = safe_sanitized_filename; *sanitized_filename_size = safe_sanitized_filename_size; return( 1 ); on_error: if( safe_sanitized_filename != NULL ) { memory_free( safe_sanitized_filename ); } return( -1 ); } /* Retrieves a sanitized version of the path * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_path( const char *path, size_t path_length, char **sanitized_path, size_t *sanitized_path_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_path"; char *safe_sanitized_path = NULL; size_t path_index = 0; size_t safe_sanitized_path_size = 0; size_t sanitized_character_size = 0; size_t sanitized_path_index = 0; #if defined( WINAPI ) size_t last_path_segment_seperator_index = 0; #endif if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( sanitized_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path.", function ); return( -1 ); } if( *sanitized_path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sanitized path value already set.", function ); return( -1 ); } if( sanitized_path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path size.", function ); return( -1 ); } safe_sanitized_path_size = 1; for( path_index = 0; path_index < path_length; path_index++ ) { if( libcpath_path_get_sanitized_character_size( path[ path_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } safe_sanitized_path_size += sanitized_character_size; #if defined( WINAPI ) if( path[ path_index ] == LIBCPATH_SEPARATOR ) { last_path_segment_seperator_index = path_index; } #endif } if( safe_sanitized_path_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid sanitized path size value exceeds maximum.", function ); goto on_error; } #if defined( WINAPI ) if( last_path_segment_seperator_index > 32767 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: last path segment separator value out of bounds.", function ); goto on_error; } if( safe_sanitized_path_size > 32767 ) { safe_sanitized_path_size = 32767; } #endif safe_sanitized_path = narrow_string_allocate( safe_sanitized_path_size ); if( safe_sanitized_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create sanitized path.", function ); goto on_error; } for( path_index = 0; path_index < path_length; path_index++ ) { if( libcpath_path_get_sanitized_character_size( path[ path_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } if( libcpath_path_get_sanitized_character( path[ path_index ], sanitized_character_size, safe_sanitized_path, safe_sanitized_path_size, &sanitized_path_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } } safe_sanitized_path[ sanitized_path_index ] = 0; *sanitized_path = safe_sanitized_path; *sanitized_path_size = safe_sanitized_path_size; return( 1 ); on_error: if( safe_sanitized_path != NULL ) { memory_free( safe_sanitized_path ); } return( -1 ); } /* Combines the directory name and filename into a path * Returns 1 if successful or -1 on error */ int libcpath_path_join( char **path, size_t *path_size, const char *directory_name, size_t directory_name_length, const char *filename, size_t filename_length, libcerror_error_t **error ) { static char *function = "libcpath_path_join"; size_t filename_index = 0; size_t path_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( *path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid path value already set.", function ); return( -1 ); } if( path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path size.", function ); return( -1 ); } if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } if( directory_name_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid directory name length value exceeds maximum.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( filename_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid filename length value exceeds maximum.", function ); return( -1 ); } /* TODO strip other patterns like /./ */ while( directory_name_length > 0 ) { if( directory_name[ directory_name_length - 1 ] != (char) LIBCPATH_SEPARATOR ) { break; } directory_name_length--; } while( filename_length > 0 ) { if( filename[ filename_index ] != (char) LIBCPATH_SEPARATOR ) { break; } filename_index++; filename_length--; } *path_size = directory_name_length + filename_length + 2; *path = narrow_string_allocate( *path_size ); if( *path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create path.", function ); goto on_error; } if( narrow_string_copy( *path, directory_name, directory_name_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy directory name to path.", function ); goto on_error; } path_index = directory_name_length; ( *path )[ path_index++ ] = (char) LIBCPATH_SEPARATOR; if( narrow_string_copy( &( ( *path )[ path_index ] ), &( filename[ filename_index ] ), filename_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy filename to path.", function ); goto on_error; } path_index += filename_length; ( *path )[ path_index ] = 0; return( 1 ); on_error: if( *path != NULL ) { memory_free( path ); *path = NULL; } *path_size = 0; return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of CreateDirectoryA * Returns TRUE if successful or FALSE on error */ BOOL libcpath_CreateDirectoryA( LPCSTR path, SECURITY_ATTRIBUTES *security_attributes ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( path == NULL ) { return( 0 ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( 0 ); } function = GetProcAddress( library_handle, (LPCSTR) "CreateDirectoryA" ); if( function != NULL ) { result = function( path, security_attributes ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcpath_CloseHandle( library_handle ); return( 0 ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Makes the directory * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcpath_path_make_directory( const char *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_make_directory"; DWORD error_code = 0; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) if( libcpath_CreateDirectoryA( directory_name, NULL ) == 0 ) #else if( CreateDirectoryA( directory_name, NULL ) == 0 ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, error_code, "%s: unable to make directory.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_MKDIR ) /* Makes the directory * This function uses the POSIX mkdir function or equivalent * Returns 1 if successful or -1 on error */ int libcpath_path_make_directory( const char *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_make_directory"; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } if( mkdir( directory_name, 0755 ) != 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, errno, "%s: unable to make directory.", function ); return( -1 ); } return( 1 ); } #else #error Missing make directory function #endif #if defined( HAVE_WIDE_CHARACTER_TYPE ) #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of SetCurrentDirectoryW * Returns TRUE if successful or FALSE on error */ BOOL libcpath_SetCurrentDirectoryW( LPCWSTR path ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( path == NULL ) { return( FALSE ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( FALSE ); } function = GetProcAddress( library_handle, (LPCSTR) "SetCurrentDirectoryW" ); if( function != NULL ) { result = function( path ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcpath_CloseHandle( library_handle ); return( FALSE ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Changes the directory * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcpath_path_change_directory_wide( const wchar_t *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_change_directory_wide"; DWORD error_code = 0; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) if( libcpath_SetCurrentDirectoryW( directory_name ) == 0 ) #else if( SetCurrentDirectoryW( directory_name ) == 0 ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, error_code, "%s: unable to change directory.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_CHDIR ) /* Changes the directory * This function uses the POSIX chdir function or equivalent * Returns 1 if successful or -1 on error */ int libcpath_path_change_directory_wide( const wchar_t *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_change_directory_wide"; char *narrow_directory_name = 0; size_t directory_name_length = 0; size_t narrow_directory_name_size = 0; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } directory_name_length = wide_string_length( directory_name ); if( libcpath_system_string_size_from_wide_string( directory_name, directory_name_length + 1, &narrow_directory_name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow directory name size.", function ); goto on_error; } if( ( narrow_directory_name_size > (size_t) SSIZE_MAX ) || ( ( sizeof( char ) * narrow_directory_name_size ) > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow directory name size value exceeds maximum.", function ); goto on_error; } narrow_directory_name = narrow_string_allocate( narrow_directory_name_size ); if( narrow_directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create narrow directory name.", function ); goto on_error; } if( libcpath_system_string_copy_from_wide_string( narrow_directory_name, narrow_directory_name_size, directory_name, directory_name_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set name.", function ); goto on_error; } if( chdir( narrow_directory_name ) != 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, errno, "%s: unable to change directory.", function ); return( -1 ); } memory_free( narrow_directory_name ); return( 1 ); on_error: if( narrow_directory_name != NULL ) { memory_free( narrow_directory_name ); } return( -1 ); } #else #error Missing change directory function #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of GetCurrentDirectoryW * Returns the number of characters in the current directory string or 0 on error */ DWORD libcpath_GetCurrentDirectoryW( DWORD buffer_size, LPCWSTR buffer ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD result = 0; library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( 0 ); } function = GetProcAddress( library_handle, (LPCSTR) "GetCurrentDirectoryW" ); if( function != NULL ) { result = function( buffer_size, buffer ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcpath_CloseHandle( library_handle ); return( 0 ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Retrieves the current working directory * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcpath_path_get_current_working_directory_wide( wchar_t **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_current_working_directory_wide"; DWORD safe_current_working_directory_size = 0; DWORD error_code = 0; if( current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory.", function ); return( -1 ); } if( *current_working_directory != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid current working directory value already set.", function ); return( -1 ); } if( current_working_directory_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory size.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) safe_current_working_directory_size = libcpath_GetCurrentDirectoryW( 0, NULL ); #else safe_current_working_directory_size = GetCurrentDirectoryW( 0, NULL ); #endif if( safe_current_working_directory_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory size.", function ); goto on_error; } if( (size_t) safe_current_working_directory_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: current working directory size value out of bounds.", function ); goto on_error; } *current_working_directory_size = (size_t) safe_current_working_directory_size; *current_working_directory = wide_string_allocate( *current_working_directory_size ); if( *current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create current working directory.", function ); goto on_error; } if( memory_set( *current_working_directory, 0, sizeof( wchar_t ) * *current_working_directory_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear current working directory.", function ); goto on_error; } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) if( libcpath_GetCurrentDirectoryW( safe_current_working_directory_size, *current_working_directory ) != ( safe_current_working_directory_size - 1 ) ) #else if( GetCurrentDirectoryW( safe_current_working_directory_size, *current_working_directory ) != ( safe_current_working_directory_size - 1 ) ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, error_code, "%s: unable to retrieve current working directory.", function ); goto on_error; } return( 1 ); on_error: if( *current_working_directory != NULL ) { memory_free( *current_working_directory ); *current_working_directory = NULL; } *current_working_directory_size = 0; return( -1 ); } #elif defined( HAVE_GETCWD ) /* Retrieves the current working directory * This function uses the POSIX getcwd function or equivalent * Returns 1 if successful or -1 on error */ int libcpath_path_get_current_working_directory_wide( wchar_t **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_current_working_directory_wide"; char *narrow_current_working_directory = 0; size_t narrow_current_working_directory_length = 0; if( current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory.", function ); return( -1 ); } if( *current_working_directory != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid current working directory value already set.", function ); return( -1 ); } if( current_working_directory_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory size.", function ); return( -1 ); } narrow_current_working_directory = narrow_string_allocate( PATH_MAX ); if( narrow_current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create narrow current working directory.", function ); goto on_error; } if( getcwd( narrow_current_working_directory, PATH_MAX ) == NULL ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, errno, "%s: unable to retrieve current working directory.", function ); goto on_error; } narrow_current_working_directory_length = narrow_string_length( narrow_current_working_directory ); /* Convert the current working directory to a wide string * if the platform has no wide character open function */ if( libcpath_system_string_size_from_narrow_string( narrow_current_working_directory, narrow_current_working_directory_length + 1, current_working_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide character current working directory size.", function ); return( -1 ); } *current_working_directory = wide_string_allocate( *current_working_directory_size ); if( *current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create current working directory.", function ); goto on_error; } if( memory_set( *current_working_directory, 0, sizeof( wchar_t ) * *current_working_directory_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear current working directory.", function ); goto on_error; } if( libcpath_system_string_copy_to_wide_string( narrow_current_working_directory, narrow_current_working_directory_length + 1, *current_working_directory, *current_working_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set current working directory.", function ); goto on_error; } memory_free( narrow_current_working_directory ); return( 1 ); on_error: if( narrow_current_working_directory != NULL ) { memory_free( narrow_current_working_directory ); } if( *current_working_directory != NULL ) { memory_free( *current_working_directory ); *current_working_directory = NULL; } *current_working_directory_size = 0; return( -1 ); } #else #error Missing get current working directory function #endif #if defined( WINAPI ) /* Determines the path type * Returns 1 if succesful or -1 on error */ int libcpath_path_get_path_type_wide( const wchar_t *path, size_t path_length, uint8_t *path_type, libcerror_error_t **error ) { static char *function = "libcpath_path_get_path_type_wide"; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( path_type == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path type.", function ); return( -1 ); } *path_type = LIBCPATH_TYPE_RELATIVE; /* Determine if the path is a special path * device path prefix: \\.\ * extended-length path prefix: \\?\ */ if( ( path_length >= 4 ) && ( path[ 0 ] == (wchar_t) '\\' ) && ( path[ 1 ] == (wchar_t) '\\' ) && ( ( path[ 2 ] == (wchar_t) '.' ) || ( path[ 2 ] == (wchar_t) '?' ) ) && ( path[ 3 ] == (wchar_t) '\\' ) ) { if( path[ 2 ] == (wchar_t) '.' ) { *path_type = LIBCPATH_TYPE_DEVICE; } /* Determine if the path in an extended-length UNC path * \\?\UNC\server\share */ else if( ( path_length >= 8 ) && ( path[ 4 ] == (wchar_t) 'U' ) && ( path[ 5 ] == (wchar_t) 'N' ) && ( path[ 6 ] == (wchar_t) 'C' ) && ( path[ 7 ] == (wchar_t) '\\' ) ) { *path_type = LIBCPATH_TYPE_EXTENDED_LENGTH_UNC; } else { *path_type = LIBCPATH_TYPE_EXTENDED_LENGTH; } } /* Determine if the path is an UNC path * \\server\share */ else if( ( path_length >= 2 ) && ( path[ 0 ] == (wchar_t) '\\' ) && ( path[ 1 ] == (wchar_t) '\\' ) ) { *path_type = LIBCPATH_TYPE_UNC; } else if( path[ 0 ] == (wchar_t) '\\' ) { *path_type = LIBCPATH_TYPE_ABSOLUTE; } else if( ( path_length >= 3 ) && ( path[ 1 ] == (wchar_t) ':' ) && ( path[ 2 ] == (wchar_t) '\\' ) && ( ( ( path[ 0 ] >= (wchar_t) 'A' ) && ( path[ 0 ] <= (wchar_t) 'Z' ) ) || ( ( path[ 0 ] >= (wchar_t) 'a' ) && ( path[ 0 ] <= (wchar_t) 'z' ) ) ) ) { *path_type = LIBCPATH_TYPE_ABSOLUTE; } return( 1 ); } /* Determines the volume name * Returns 1 if succesful or -1 on error */ int libcpath_path_get_volume_name_wide( const wchar_t *path, size_t path_length, wchar_t **volume_name, size_t *volume_name_length, size_t *directory_name_index, libcerror_error_t **error ) { static char *function = "libcpath_path_get_volume_name_wide"; size_t path_index = 0; size_t share_name_index = 0; size_t volume_name_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( volume_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume name.", function ); return( -1 ); } if( volume_name_length == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume name length.", function ); return( -1 ); } if( directory_name_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name index.", function ); return( -1 ); } *volume_name = NULL; *volume_name_length = 0; *directory_name_index = 0; /* Determine if the path is a special path * device path prefix: \\.\ * extended-length path prefix: \\?\ */ if( ( path_length >= 4 ) && ( path[ 0 ] == (wchar_t) '\\' ) && ( path[ 1 ] == (wchar_t) '\\' ) && ( ( path[ 2 ] == (wchar_t) '.' ) || ( path[ 2 ] == (wchar_t) '?' ) ) && ( path[ 3 ] == (wchar_t) '\\' ) ) { if( path[ 2 ] == (wchar_t) '.' ) { volume_name_index = 4; } /* Determine if the path in an extended-length UNC path * \\?\UNC\server\share */ else if( ( path_length >= 8 ) && ( path[ 4 ] == (wchar_t) 'U' ) && ( path[ 5 ] == (wchar_t) 'N' ) && ( path[ 6 ] == (wchar_t) 'C' ) && ( path[ 7 ] == (wchar_t) '\\' ) ) { volume_name_index = 8; } else { volume_name_index = 4; } } /* Determine if the path is an UNC path * \\server\share */ else if( ( path_length >= 2 ) && ( path[ 0 ] == (wchar_t) '\\' ) && ( path[ 1 ] == (wchar_t) '\\' ) ) { volume_name_index = 2; } /* Check if the path contains a volume letter */ if( ( path_length >= 2 ) && ( volume_name_index <= ( path_length - 2 ) ) && ( path[ volume_name_index + 1 ] == (wchar_t) ':' ) && ( ( ( path[ volume_name_index ] >= (wchar_t) 'A' ) && ( path[ volume_name_index ] <= (wchar_t) 'Z' ) ) || ( ( path[ volume_name_index ] >= (wchar_t) 'a' ) && ( path[ volume_name_index ] <= (wchar_t) 'z' ) ) ) ) { path_index = volume_name_index + 2; if( ( path_index < path_length ) && ( path[ path_index ] == (wchar_t) '\\' ) ) { path_index++; } *volume_name = (wchar_t *) &( path[ volume_name_index ] ); *volume_name_length = path_index - volume_name_index; if( path[ path_index - 1 ] == (wchar_t) '\\' ) { *volume_name_length -= 1; } *directory_name_index = path_index; } else if( volume_name_index == 4 ) { for( path_index = volume_name_index; path_index < path_length; path_index++ ) { if( path[ path_index ] == (wchar_t) '\\' ) { path_index++; break; } } *volume_name = (wchar_t *) &( path[ 4 ] ); *volume_name_length = path_index - 4; if( path[ path_index - 1 ] == (wchar_t) '\\' ) { *volume_name_length -= 1; } *directory_name_index = path_index; } else if( ( volume_name_index == 2 ) || ( volume_name_index == 8 ) ) { for( share_name_index = volume_name_index; share_name_index < path_length; share_name_index++ ) { if( path[ share_name_index ] == (wchar_t) '\\' ) { share_name_index++; break; } } if( share_name_index > path_length ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid path - missing share name.", function ); return( -1 ); } for( path_index = share_name_index; path_index < path_length; path_index++ ) { if( path[ path_index ] == (wchar_t) '\\' ) { path_index++; break; } } *volume_name = (wchar_t *) &( path[ volume_name_index ] ); *volume_name_length = path_index - volume_name_index; if( path[ path_index - 1 ] == (wchar_t) '\\' ) { *volume_name_length -= 1; } *directory_name_index = path_index; } return( 1 ); } /* Retrieves the current working directory of a specific volume * Returns 1 if successful or -1 on error */ int libcpath_path_get_current_working_directory_by_volume_wide( wchar_t *volume_name, size_t volume_name_length, wchar_t **current_working_directory, size_t *current_working_directory_size, libcerror_error_t **error ) { wchar_t *change_volume_name = NULL; wchar_t *current_volume_working_directory = NULL; static char *function = "libcpath_path_get_current_working_directory_by_volume_wide"; size_t current_volume_working_directory_size = 0; int result = 1; if( current_working_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory.", function ); return( -1 ); } if( current_working_directory_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid current working directory size.", function ); return( -1 ); } /* If the path contains a volume name switch to that * volume to determine the current directory */ if( volume_name != NULL ) { if( volume_name_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid volume name length value exceeds maximum.", function ); goto on_error; } if( libcpath_path_get_current_working_directory_wide( ¤t_volume_working_directory, ¤t_volume_working_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current volume working directory.", function ); goto on_error; } change_volume_name = wide_string_allocate( volume_name_length + 1 ); if( change_volume_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create change volume name.", function ); goto on_error; } if( wide_string_copy( change_volume_name, volume_name, volume_name_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set change volume name.", function ); goto on_error; } change_volume_name[ volume_name_length ] = 0; if( libcpath_path_change_directory_wide( change_volume_name, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to change current working directory.", function ); goto on_error; } memory_free( change_volume_name ); change_volume_name = NULL; } if( libcpath_path_get_current_working_directory_wide( current_working_directory, current_working_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current directory.", function ); /* Make sure the current working directory has been changed * back to its original value */ result = -1; } if( current_volume_working_directory != NULL ) { if( libcpath_path_change_directory_wide( current_volume_working_directory, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to change current working directory.", function ); goto on_error; } memory_free( current_volume_working_directory ); current_volume_working_directory = NULL; } return( result ); on_error: if( change_volume_name != NULL ) { memory_free( change_volume_name ); } if( current_volume_working_directory != NULL ) { memory_free( current_volume_working_directory ); } if( *current_working_directory != NULL ) { memory_free( *current_working_directory ); *current_working_directory = NULL; } *current_working_directory_size = 0; return( -1 ); } /* Determines the full path of the Windows path specified * The function uses the extended-length path format * (path with \\?\ prefix) * * Multiple successive \ not at the start of the path are combined into one * * Scenario's that are considered full paths: * Device path: \\.\PhysicalDrive0 * Extended-length path: \\?\C:\directory\file.txt * Extended-length UNC path: \\?\UNC\server\share\directory\file.txt * * Scenario's that are not considered full paths: * Local 'absolute' path: \directory\file.txt * Local 'relative' path: ..\directory\file.txt * Local 'relative' path: .\directory\file.txt * Volume 'absolute' path: C:\directory\file.txt * C:\..\directory\file.txt * Volume 'relative' path: C:directory\file.txt * UNC path: \\server\share\directory\file.txt * * Returns 1 if succesful or -1 on error */ int libcpath_path_get_full_path_wide( const wchar_t *path, size_t path_length, wchar_t **full_path, size_t *full_path_size, libcerror_error_t **error ) { libcsplit_wide_split_string_t *current_directory_split_string = NULL; libcsplit_wide_split_string_t *path_split_string = NULL; wchar_t *current_directory = NULL; wchar_t *current_directory_string_segment = NULL; wchar_t *full_path_prefix = NULL; wchar_t *last_used_path_string_segment = NULL; wchar_t *path_string_segment = NULL; wchar_t *volume_name = NULL; static char *function = "libcpath_path_get_full_path_wide"; size_t current_directory_length = 0; size_t current_directory_name_index = 0; size_t current_directory_size = 0; size_t current_directory_string_segment_size = 0; size_t full_path_index = 0; size_t full_path_prefix_length = 0; size_t last_used_path_string_segment_size = 0; size_t path_directory_name_index = 0; size_t path_string_segment_size = 0; size_t safe_full_path_size = 0; size_t volume_name_length = 0; uint8_t path_type = LIBCPATH_TYPE_RELATIVE; int current_directory_number_of_segments = 0; int current_directory_segment_index = 0; int last_used_path_segment_index = -1; int path_number_of_segments = 0; int path_segment_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path.", function ); return( -1 ); } if( *full_path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid full path value already set.", function ); return( -1 ); } if( full_path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path size.", function ); return( -1 ); } if( libcpath_path_get_path_type_wide( path, path_length, &path_type, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine path type.", function ); goto on_error; } if( libcpath_path_get_volume_name_wide( path, path_length, &volume_name, &volume_name_length, &path_directory_name_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine volume name.", function ); goto on_error; } /* If the path is a device path, an extended-length path or an UNC * do not bother to lookup the current working directory */ if( ( path_type != LIBCPATH_TYPE_DEVICE ) && ( path_type != LIBCPATH_TYPE_EXTENDED_LENGTH ) && ( path_type != LIBCPATH_TYPE_EXTENDED_LENGTH_UNC ) && ( path_type != LIBCPATH_TYPE_UNC ) ) { if( libcpath_path_get_current_working_directory_by_volume_wide( volume_name, volume_name_length, ¤t_directory, ¤t_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory by volume.", function ); goto on_error; } /* Determine the volume name using the current working directory if necessary */ if( libcpath_path_get_volume_name_wide( current_directory, current_directory_size - 1, &volume_name, &volume_name_length, ¤t_directory_name_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine volume name from current working directory.", function ); goto on_error; } } if( ( current_directory != NULL ) && ( current_directory_name_index < current_directory_size ) ) { current_directory_length = wide_string_length( &( current_directory[ current_directory_name_index ] ) ); if( libcsplit_wide_string_split( &( current_directory[ current_directory_name_index ] ), current_directory_length + 1, (wchar_t) '\\', ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split current working directory.", function ); goto on_error; } } if( libcsplit_wide_string_split( &( path[ path_directory_name_index ] ), path_length - path_directory_name_index + 1, (wchar_t) '\\', &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split path.", function ); goto on_error; } /* The size of the full path consists of: * the size of the prefix (\\?\ or \\.\) * the length of the volume name * a directory separator */ safe_full_path_size = 4; /* If the path contains a volume name * the length of the volume name * a directory separator */ if( volume_name != NULL ) { safe_full_path_size += volume_name_length + 1; } /* If the path contains an UNC path * add the size of the UNC\ prefix */ if( ( path_type == LIBCPATH_TYPE_EXTENDED_LENGTH_UNC ) || ( path_type == LIBCPATH_TYPE_UNC ) ) { safe_full_path_size += 4; } /* If the path is relative * add the size of the current working directory * a directory separator, if necessary */ if( ( path_type == LIBCPATH_TYPE_RELATIVE ) && ( current_directory_name_index < current_directory_size ) ) { safe_full_path_size += ( current_directory_size - ( current_directory_name_index + 1 ) ); if( ( current_directory_size >= 2 ) && ( current_directory[ current_directory_size - 2 ] != (wchar_t) '\\' ) ) { safe_full_path_size += 1; } } if( current_directory_split_string != NULL ) { if( libcsplit_wide_split_string_get_number_of_segments( current_directory_split_string, ¤t_directory_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of current working directory string segments.", function ); goto on_error; } current_directory_segment_index = current_directory_number_of_segments - 1; } if( libcsplit_wide_split_string_get_number_of_segments( path_split_string, &path_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of path string segments.", function ); goto on_error; } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } /* If the path is .. reverse the current path by one directory */ if( ( path_string_segment_size == 3 ) && ( path_string_segment[ 0 ] == (wchar_t) '.' ) && ( path_string_segment[ 1 ] == (wchar_t) '.' ) ) { if( ( current_directory_split_string != NULL ) && ( last_used_path_segment_index == -1 ) ) { if( libcsplit_wide_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= current_directory_string_segment_size; if( libcsplit_wide_split_string_set_segment_by_index( current_directory_split_string, current_directory_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } current_directory_segment_index--; } else if( last_used_path_segment_index >= 0 ) { if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing last used path string string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= last_used_path_string_segment_size; if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, last_used_path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Find the previous path split value that contains a name */ while( last_used_path_segment_index > 0 ) { last_used_path_segment_index--; if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment_size != 0 ) { break; } } } if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is . ignore the entry */ else if( ( path_string_segment_size == 2 ) && ( path_string_segment[ 0 ] == (wchar_t) '.' ) ) { if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is empty ignore the entry */ else if( path_string_segment_size <= 1 ) { if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } else { /* Add the size of the directory or file name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size += path_string_segment_size; last_used_path_segment_index = path_segment_index; } } /* Note that the last path separator serves as the end of string */ full_path_index = 0; *full_path = wide_string_allocate( safe_full_path_size ); if( *full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create full path.", function ); goto on_error; } if( memory_set( *full_path, 0, sizeof( wchar_t ) * safe_full_path_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear full path.", function ); goto on_error; } *full_path_size = safe_full_path_size; if( path_type == LIBCPATH_TYPE_DEVICE ) { full_path_prefix = L"\\\\.\\"; full_path_prefix_length = 4; } else { full_path_prefix = L"\\\\?\\"; full_path_prefix_length = 4; } if( wide_string_copy( &( ( *full_path )[ full_path_index ] ), full_path_prefix, full_path_prefix_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set prefix in full path.", function ); goto on_error; } full_path_index += full_path_prefix_length; /* If there is a share name the path is an UNC path */ if( ( path_type == LIBCPATH_TYPE_EXTENDED_LENGTH_UNC ) || ( path_type == LIBCPATH_TYPE_UNC ) ) { if( wide_string_copy( &( ( *full_path )[ full_path_index ] ), L"UNC\\", 4 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set UNC\\ prefix in full path.", function ); goto on_error; } full_path_index += 4; } if( volume_name != NULL ) { if( wide_string_copy( &( ( *full_path )[ full_path_index ] ), volume_name, volume_name_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set volume name in full path.", function ); goto on_error; } full_path_index += volume_name_length; ( *full_path )[ full_path_index ] = (wchar_t) '\\'; full_path_index += 1; } /* If the path is relative * add the current working directory elements */ if( ( path_type == LIBCPATH_TYPE_RELATIVE ) && ( current_directory_split_string != NULL ) ) { for( current_directory_segment_index = 0; current_directory_segment_index < current_directory_number_of_segments; current_directory_segment_index++ ) { if( libcsplit_wide_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment_size != 0 ) { if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( wide_string_copy( &( ( *full_path )[ full_path_index ] ), current_directory_string_segment, current_directory_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory split value: %d in full path.", function, current_directory_segment_index ); goto on_error; } full_path_index += current_directory_string_segment_size - 1; ( *full_path )[ full_path_index ] = (wchar_t) '\\'; full_path_index += 1; } } } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment_size != 0 ) { if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } if( wide_string_copy( &( ( *full_path )[ full_path_index ] ), path_string_segment, path_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path split value: %d in full path.", function, path_segment_index ); goto on_error; } full_path_index += path_string_segment_size - 1; ( *full_path )[ full_path_index ] = (wchar_t) '\\'; full_path_index += 1; } } ( *full_path )[ full_path_index - 1 ] = 0; if( libcsplit_wide_split_string_free( &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free path split string.", function ); goto on_error; } if( current_directory_split_string != NULL ) { if( libcsplit_wide_split_string_free( ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free current working directory split string.", function ); goto on_error; } } if( current_directory != NULL ) { memory_free( current_directory ); } return( 1 ); on_error: if( *full_path != NULL ) { memory_free( *full_path ); *full_path = NULL; } *full_path_size = 0; if( path_split_string != NULL ) { libcsplit_wide_split_string_free( &path_split_string, NULL ); } if( current_directory_split_string != NULL ) { libcsplit_wide_split_string_free( ¤t_directory_split_string, NULL ); } if( current_directory != NULL ) { memory_free( current_directory ); } return( -1 ); } #else /* Determines the full path of the POSIX path specified * Multiple successive / are combined into one * * Scenarios: * /home/user/file.txt * /home/user//file.txt * /home/user/../user/file.txt * /../home/user/file.txt * user/../user/file.txt * * Returns 1 if succesful or -1 on error */ int libcpath_path_get_full_path_wide( const wchar_t *path, size_t path_length, wchar_t **full_path, size_t *full_path_size, libcerror_error_t **error ) { libcsplit_wide_split_string_t *current_directory_split_string = NULL; libcsplit_wide_split_string_t *path_split_string = NULL; wchar_t *current_directory = NULL; wchar_t *current_directory_string_segment = NULL; wchar_t *last_used_path_string_segment = NULL; wchar_t *path_string_segment = NULL; static char *function = "libcpath_path_get_full_path_wide"; size_t current_directory_length = 0; size_t current_directory_size = 0; size_t current_directory_string_segment_size = 0; size_t full_path_index = 0; size_t last_used_path_string_segment_size = 0; size_t path_string_segment_size = 0; size_t safe_full_path_size = 0; uint8_t path_type = LIBCPATH_TYPE_RELATIVE; int current_directory_number_of_segments = 0; int current_directory_segment_index = 0; int last_used_path_segment_index = -1; int path_number_of_segments = 0; int path_segment_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path.", function ); return( -1 ); } if( *full_path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid full path value already set.", function ); return( -1 ); } if( full_path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid full path size.", function ); return( -1 ); } if( path[ 0 ] == (wchar_t) '/' ) { path_type = LIBCPATH_TYPE_ABSOLUTE; } else { if( libcpath_path_get_current_working_directory_wide( ¤t_directory, ¤t_directory_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory.", function ); goto on_error; } } if( current_directory != NULL ) { current_directory_length = wide_string_length( current_directory ); if( libcsplit_wide_string_split( current_directory, current_directory_length + 1, (wchar_t) '/', ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split current working directory.", function ); goto on_error; } } if( libcsplit_wide_string_split( path, path_length + 1, (wchar_t) '/', &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split path.", function ); goto on_error; } /* Determine the full path size */ /* If the path is absolute * a directory separator */ if( path_type == LIBCPATH_TYPE_ABSOLUTE ) { safe_full_path_size = 1; } /* If the path is relative * add the size of the current working directory * a directory separator, if necessary */ else if( path_type == LIBCPATH_TYPE_RELATIVE ) { if( current_directory == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory.", function ); goto on_error; } /* We need to use the length here since current_directory_size will be PATH_MAX */ safe_full_path_size = current_directory_length; if( ( current_directory_length >= 1 ) && ( current_directory[ current_directory_length - 1 ] != (wchar_t) '/' ) ) { safe_full_path_size++; } } if( current_directory_split_string != NULL ) { if( libcsplit_wide_split_string_get_number_of_segments( current_directory_split_string, ¤t_directory_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of current working directory string segments.", function ); goto on_error; } current_directory_segment_index = current_directory_number_of_segments - 1; } if( libcsplit_wide_split_string_get_number_of_segments( path_split_string, &path_number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of path string segments.", function ); goto on_error; } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } /* If the path is .. reverse the current path by one directory */ if( ( path_string_segment_size == 3 ) && ( path_string_segment[ 0 ] == (wchar_t) '.' ) && ( path_string_segment[ 1 ] == (wchar_t) '.' ) ) { if( ( current_directory_split_string != NULL ) && ( last_used_path_segment_index == -1 ) ) { if( libcsplit_wide_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= current_directory_string_segment_size; if( libcsplit_wide_split_string_set_segment_by_index( current_directory_split_string, current_directory_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } current_directory_segment_index--; } else if( last_used_path_segment_index >= 0 ) { if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing last used path string string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Remove the size of the parent directory name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size -= last_used_path_string_segment_size; if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, last_used_path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } /* Find the previous path split value that contains a name */ while( last_used_path_segment_index > 0 ) { last_used_path_segment_index--; if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, last_used_path_segment_index, &last_used_path_string_segment, &last_used_path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last used path string segment: %d.", function, last_used_path_segment_index ); goto on_error; } if( last_used_path_string_segment_size != 0 ) { break; } } } if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is . ignore the entry */ else if( ( path_string_segment_size == 2 ) && ( path_string_segment[ 0 ] == (wchar_t) '.' ) ) { if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } /* If the path is empty ignore the entry */ else if( path_string_segment_size <= 1 ) { if( libcsplit_wide_split_string_set_segment_by_index( path_split_string, path_segment_index, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path string segment: %d.", function, path_segment_index ); goto on_error; } } else { /* Add the size of the directory or file name and a directory separator * Note that the size includes the end of string character */ safe_full_path_size += path_string_segment_size; last_used_path_segment_index = path_segment_index; } } /* Note that the last path separator serves as the end of string */ full_path_index = 0; *full_path = wide_string_allocate( safe_full_path_size ); if( *full_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create full path.", function ); goto on_error; } if( memory_set( *full_path, 0, sizeof( wchar_t ) * safe_full_path_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear full path.", function ); goto on_error; } *full_path_size = safe_full_path_size; if( path_type == LIBCPATH_TYPE_ABSOLUTE ) { ( *full_path )[ full_path_index ] = (wchar_t) '/'; full_path_index += 1; } /* If the path is relative * add the current working directory elements */ if( ( path_type == LIBCPATH_TYPE_RELATIVE ) && ( current_directory_split_string != NULL ) ) { for( current_directory_segment_index = 0; current_directory_segment_index < current_directory_number_of_segments; current_directory_segment_index++ ) { if( libcsplit_wide_split_string_get_segment_by_index( current_directory_split_string, current_directory_segment_index, ¤t_directory_string_segment, ¤t_directory_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( current_directory_string_segment_size != 0 ) { if( current_directory_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing current working directory string segment: %d.", function, current_directory_segment_index ); goto on_error; } if( wide_string_copy( &( ( *full_path )[ full_path_index ] ), current_directory_string_segment, current_directory_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set current working directory split value: %d in full path.", function, current_directory_segment_index ); goto on_error; } full_path_index += current_directory_string_segment_size - 1; ( *full_path )[ full_path_index ] = (wchar_t) '/'; full_path_index += 1; } } } for( path_segment_index = 0; path_segment_index < path_number_of_segments; path_segment_index++ ) { if( libcsplit_wide_split_string_get_segment_by_index( path_split_string, path_segment_index, &path_string_segment, &path_string_segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve path string segment: %d.", function, path_segment_index ); goto on_error; } if( path_string_segment_size != 0 ) { if( path_string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing path string segment: %d.", function, path_segment_index ); goto on_error; } if( wide_string_copy( &( ( *full_path )[ full_path_index ] ), path_string_segment, path_string_segment_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set path split value: %d in full path.", function, path_segment_index ); goto on_error; } full_path_index += path_string_segment_size - 1; ( *full_path )[ full_path_index ] = (wchar_t) '/'; full_path_index += 1; } } ( *full_path )[ full_path_index - 1 ] = 0; if( libcsplit_wide_split_string_free( &path_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free path split string.", function ); goto on_error; } if( current_directory_split_string != NULL ) { if( libcsplit_wide_split_string_free( ¤t_directory_split_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free current working directory split string.", function ); goto on_error; } } if( current_directory != NULL ) { memory_free( current_directory ); } return( 1 ); on_error: if( *full_path != NULL ) { memory_free( *full_path ); *full_path = NULL; } *full_path_size = 0; if( path_split_string != NULL ) { libcsplit_wide_split_string_free( &path_split_string, NULL ); } if( current_directory_split_string != NULL ) { libcsplit_wide_split_string_free( ¤t_directory_split_string, NULL ); } if( current_directory != NULL ) { memory_free( current_directory ); } return( -1 ); } #endif /* defined( WINAPI ) */ /* Retrieves the size of a sanitized version of the path character * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_character_size_wide( wchar_t character, size_t *sanitized_character_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_character_size_wide"; if( sanitized_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized character size.", function ); return( -1 ); } if( ( character >= 0x00 ) && ( character <= 0x1f ) ) { *sanitized_character_size = 4; } else if( character == (wchar_t) LIBCPATH_ESCAPE_CHARACTER ) { *sanitized_character_size = 2; } #if defined( WINAPI ) else if( character == (wchar_t) '/' ) { *sanitized_character_size = 4; } #endif else if( ( character == (wchar_t) '!' ) || ( character == (wchar_t) '$' ) || ( character == (wchar_t) '%' ) || ( character == (wchar_t) '&' ) || ( character == (wchar_t) '*' ) || ( character == (wchar_t) '+' ) || ( character == (wchar_t) ':' ) || ( character == (wchar_t) ';' ) || ( character == (wchar_t) '<' ) || ( character == (wchar_t) '>' ) || ( character == (wchar_t) '?' ) || ( character == (wchar_t) '|' ) || ( character == 0x7f ) ) { *sanitized_character_size = 4; } else { *sanitized_character_size = 1; } return( 1 ); } /* Retrieves a sanitized version of the path character * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_character_wide( wchar_t character, size_t sanitized_character_size, wchar_t *sanitized_path, size_t sanitized_path_size, size_t *sanitized_path_index, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_character_wide"; size_t safe_sanitized_path_index = 0; wchar_t lower_nibble = 0; wchar_t upper_nibble = 0; if( ( sanitized_character_size != 1 ) && ( sanitized_character_size != 2 ) && ( sanitized_character_size != 4 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sanitized character size value out of bounds.", function ); return( -1 ); } if( sanitized_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path.", function ); return( -1 ); } if( sanitized_path_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid sanitized path size value exceeds maximum.", function ); return( -1 ); } if( sanitized_path_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path index.", function ); return( -1 ); } safe_sanitized_path_index = *sanitized_path_index; if( safe_sanitized_path_index > sanitized_path_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sanitized path index value out of bounds.", function ); return( -1 ); } if( ( sanitized_character_size > sanitized_path_size ) || ( safe_sanitized_path_index > ( sanitized_path_size - sanitized_character_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid sanitized path size value too small.", function ); return( -1 ); } if( sanitized_character_size == 1 ) { sanitized_path[ safe_sanitized_path_index++ ] = character; } else if( sanitized_character_size == 2 ) { sanitized_path[ safe_sanitized_path_index++ ] = (wchar_t) LIBCPATH_ESCAPE_CHARACTER; sanitized_path[ safe_sanitized_path_index++ ] = (wchar_t) LIBCPATH_ESCAPE_CHARACTER; } else if( sanitized_character_size == 4 ) { lower_nibble = character & 0x0f; upper_nibble = ( character >> 4 ) & 0x0f; if( lower_nibble > 10 ) { lower_nibble += (wchar_t) 'a' - 10; } else { lower_nibble += '0'; } if( upper_nibble > 10 ) { upper_nibble += (wchar_t) 'a' - 10; } else { upper_nibble += '0'; } sanitized_path[ safe_sanitized_path_index++ ] = (wchar_t) LIBCPATH_ESCAPE_CHARACTER; sanitized_path[ safe_sanitized_path_index++ ] = (wchar_t) 'x'; sanitized_path[ safe_sanitized_path_index++ ] = upper_nibble; sanitized_path[ safe_sanitized_path_index++ ] = lower_nibble; } *sanitized_path_index = safe_sanitized_path_index; return( 1 ); } /* Retrieves a sanitized version of the filename * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_filename_wide( const wchar_t *filename, size_t filename_length, wchar_t **sanitized_filename, size_t *sanitized_filename_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_filename_wide"; wchar_t *safe_sanitized_filename = NULL; size_t filename_index = 0; size_t sanitized_character_size = 0; size_t safe_sanitized_filename_size = 0; size_t sanitized_filename_index = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( filename_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid filename length is zero.", function ); return( -1 ); } if( filename_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid filename length value exceeds maximum.", function ); return( -1 ); } if( sanitized_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized filename.", function ); return( -1 ); } if( *sanitized_filename != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sanitized filename value already set.", function ); return( -1 ); } if( sanitized_filename_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized filename size.", function ); return( -1 ); } safe_sanitized_filename_size = 1; for( filename_index = 0; filename_index < filename_length; filename_index++ ) { if( filename[ filename_index ] == LIBCPATH_SEPARATOR ) { sanitized_character_size = 4; } else if( libcpath_path_get_sanitized_character_size_wide( filename[ filename_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } safe_sanitized_filename_size += sanitized_character_size; } if( safe_sanitized_filename_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid sanitized filename size value exceeds maximum.", function ); goto on_error; } safe_sanitized_filename = wide_string_allocate( safe_sanitized_filename_size ); if( safe_sanitized_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create sanitized filename.", function ); goto on_error; } for( filename_index = 0; filename_index < filename_length; filename_index++ ) { if( filename[ filename_index ] == LIBCPATH_SEPARATOR ) { sanitized_character_size = 4; } else if( libcpath_path_get_sanitized_character_size_wide( filename[ filename_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } if( libcpath_path_get_sanitized_character_wide( filename[ filename_index ], sanitized_character_size, safe_sanitized_filename, safe_sanitized_filename_size, &sanitized_filename_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } } safe_sanitized_filename[ sanitized_filename_index ] = 0; *sanitized_filename = safe_sanitized_filename; *sanitized_filename_size = safe_sanitized_filename_size; return( 1 ); on_error: if( safe_sanitized_filename != NULL ) { memory_free( safe_sanitized_filename ); } return( -1 ); } /* Retrieves a sanitized version of the path * Returns 1 if successful or -1 on error */ int libcpath_path_get_sanitized_path_wide( const wchar_t *path, size_t path_length, wchar_t **sanitized_path, size_t *sanitized_path_size, libcerror_error_t **error ) { static char *function = "libcpath_path_get_sanitized_path_wide"; wchar_t *safe_sanitized_path = NULL; size_t path_index = 0; size_t safe_sanitized_path_size = 0; size_t sanitized_character_size = 0; size_t sanitized_path_index = 0; #if defined( WINAPI ) size_t last_path_segment_seperator_index = 0; #endif if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid path length is zero.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( sanitized_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path.", function ); return( -1 ); } if( *sanitized_path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sanitized path value already set.", function ); return( -1 ); } if( sanitized_path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sanitized path size.", function ); return( -1 ); } safe_sanitized_path_size = 1; for( path_index = 0; path_index < path_length; path_index++ ) { if( libcpath_path_get_sanitized_character_size_wide( path[ path_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } safe_sanitized_path_size += sanitized_character_size; #if defined( WINAPI ) if( path[ path_index ] == LIBCPATH_SEPARATOR ) { last_path_segment_seperator_index = path_index; } #endif } if( safe_sanitized_path_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid sanitized path size value exceeds maximum.", function ); goto on_error; } #if defined( WINAPI ) if( last_path_segment_seperator_index > 32767 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: last path segment separator value out of bounds.", function ); goto on_error; } if( safe_sanitized_path_size > 32767 ) { safe_sanitized_path_size = 32767; } #endif safe_sanitized_path = wide_string_allocate( safe_sanitized_path_size ); if( safe_sanitized_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create sanitized path.", function ); goto on_error; } for( path_index = 0; path_index < path_length; path_index++ ) { if( libcpath_path_get_sanitized_character_size_wide( path[ path_index ], &sanitized_character_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } if( libcpath_path_get_sanitized_character_wide( path[ path_index ], sanitized_character_size, safe_sanitized_path, safe_sanitized_path_size, &sanitized_path_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sanitize character size.", function ); goto on_error; } } safe_sanitized_path[ sanitized_path_index ] = 0; *sanitized_path = safe_sanitized_path; *sanitized_path_size = safe_sanitized_path_size; return( 1 ); on_error: if( safe_sanitized_path != NULL ) { memory_free( safe_sanitized_path ); } return( -1 ); } /* Combines the directory name and filename into a path * Returns 1 if successful or -1 on error */ int libcpath_path_join_wide( wchar_t **path, size_t *path_size, const wchar_t *directory_name, size_t directory_name_length, const wchar_t *filename, size_t filename_length, libcerror_error_t **error ) { static char *function = "libcpath_path_join_wide"; size_t filename_index = 0; size_t path_index = 0; if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( *path != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid path value already set.", function ); return( -1 ); } if( path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path size.", function ); return( -1 ); } if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } if( directory_name_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid directory name length value exceeds maximum.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( filename_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid filename length value exceeds maximum.", function ); return( -1 ); } /* TODO strip other patterns like /./ */ while( directory_name_length > 0 ) { if( directory_name[ directory_name_length - 1 ] != (wchar_t) LIBCPATH_SEPARATOR ) { break; } directory_name_length--; } while( filename_length > 0 ) { if( filename[ filename_index ] != (wchar_t) LIBCPATH_SEPARATOR ) { break; } filename_index++; filename_length--; } *path_size = directory_name_length + filename_length + 2; *path = wide_string_allocate( *path_size ); if( *path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create path.", function ); goto on_error; } if( wide_string_copy( *path, directory_name, directory_name_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy directory name to path.", function ); goto on_error; } path_index = directory_name_length; ( *path )[ path_index++ ] = (wchar_t) LIBCPATH_SEPARATOR; if( wide_string_copy( &( ( *path )[ path_index ] ), &( filename[ filename_index ] ), filename_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy filename to path.", function ); goto on_error; } path_index += filename_length; ( *path )[ path_index ] = 0; return( 1 ); on_error: if( *path != NULL ) { memory_free( path ); *path = NULL; } *path_size = 0; return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of CreateDirectoryW * Returns TRUE if successful or FALSE on error */ BOOL libcpath_CreateDirectoryW( LPCWSTR path, SECURITY_ATTRIBUTES *security_attributes ) { FARPROC function = NULL; HMODULE library_handle = NULL; BOOL result = FALSE; if( path == NULL ) { return( 0 ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( 0 ); } function = GetProcAddress( library_handle, (LPCSTR) "CreateDirectoryW" ); if( function != NULL ) { result = function( path, security_attributes ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { libcpath_CloseHandle( library_handle ); return( 0 ); } return( result ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) /* Makes the directory * This function uses the WINAPI function for Windows XP (0x0501) or later * or tries to dynamically call the function for Windows 2000 (0x0500) or earlier * Returns 1 if successful or -1 on error */ int libcpath_path_make_directory_wide( const wchar_t *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_make_directory_wide"; DWORD error_code = 0; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } #if defined( WINAPI ) && ( WINVER <= 0x0500 ) if( libcpath_CreateDirectoryW( directory_name, NULL ) == 0 ) #else if( CreateDirectoryW( directory_name, NULL ) == 0 ) #endif { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, error_code, "%s: unable to make directory.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_MKDIR ) /* Makes the directory * This function uses the POSIX mkdir function or equivalent * Returns 1 if successful or -1 on error */ int libcpath_path_make_directory_wide( const wchar_t *directory_name, libcerror_error_t **error ) { static char *function = "libcpath_path_make_directory_wide"; char *narrow_directory_name = 0; size_t directory_name_length = 0; size_t narrow_directory_name_size = 0; if( directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory name.", function ); return( -1 ); } directory_name_length = wide_string_length( directory_name ); if( libcpath_system_string_size_from_wide_string( directory_name, directory_name_length + 1, &narrow_directory_name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow directory name size.", function ); goto on_error; } if( ( narrow_directory_name_size > (size_t) SSIZE_MAX ) || ( ( sizeof( char ) * narrow_directory_name_size ) > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow directory name size value exceeds maximum.", function ); goto on_error; } narrow_directory_name = narrow_string_allocate( narrow_directory_name_size ); if( narrow_directory_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create narrow directory name.", function ); goto on_error; } if( libcpath_system_string_copy_from_wide_string( narrow_directory_name, narrow_directory_name_size, directory_name, directory_name_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set name.", function ); goto on_error; } if( mkdir( narrow_directory_name, 0755 ) != 0 ) { libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, errno, "%s: unable to make directory.", function ); goto on_error; } memory_free( narrow_directory_name ); return( 1 ); on_error: if( narrow_directory_name != NULL ) { memory_free( narrow_directory_name ); } return( -1 ); } #else #error Missing make directory function #endif #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libcpath/libcpath_system_string.c0000664000175000017500000006173213430101174024540 0ustar00lordyestalordyesta00000000000000/* * System string functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #include "libcpath_libcerror.h" #include "libcpath_libclocale.h" #include "libcpath_libuna.h" #include "libcpath_system_string.h" #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) && SIZEOF_WCHAR_T != 2 && SIZEOF_WCHAR_T != 4 #error Unsupported size of wchar_t #endif /* Determines the size of a narrow string from a system string * Returns 1 if successful or -1 on error */ int libcpath_system_string_size_to_narrow_string( const system_character_t *system_string, size_t system_string_size, size_t *narrow_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_size_to_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) system_string, system_string_size, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) system_string, system_string_size, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) system_string, system_string_size, libclocale_codepage, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) system_string, system_string_size, libclocale_codepage, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine narrow string size.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string size.", function ); return( -1 ); } *narrow_string_size = system_string_size; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string to a narrow string * Returns 1 if successful or -1 on error */ int libcpath_system_string_copy_to_narrow_string( const system_character_t *system_string, size_t system_string_size, char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_copy_to_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf32_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) narrow_string, narrow_string_size, (libuna_utf16_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf32_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, (libuna_utf16_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set narrow string.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string_size < system_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid narrow string size value too small.", function ); return( -1 ); } if( system_string_copy( narrow_string, system_string, system_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set narrow string.", function ); return( -1 ); } narrow_string[ system_string_size - 1 ] = 0; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Determines the size of a system string from a narrow string * Returns 1 if successful or -1 on error */ int libcpath_system_string_size_from_narrow_string( const char *narrow_string, size_t narrow_string_size, size_t *system_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_size_from_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_utf8( (libuna_utf8_character_t *) narrow_string, narrow_string_size, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_utf8( (libuna_utf8_character_t *) narrow_string, narrow_string_size, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_byte_stream( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_byte_stream( (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine system string size.", function ); return( -1 ); } #else if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string size.", function ); return( -1 ); } *system_string_size = narrow_string_size; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string from a narrow string * Returns 1 if successful or -1 on error */ int libcpath_system_string_copy_from_narrow_string( system_character_t *system_string, size_t system_string_size, const char *narrow_string, size_t narrow_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_copy_from_narrow_string"; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_utf8( (libuna_utf32_character_t *) system_string, system_string_size, (libuna_utf8_character_t *) narrow_string, narrow_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_utf8( (libuna_utf16_character_t *) system_string, system_string_size, (libuna_utf8_character_t *) narrow_string, narrow_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_byte_stream( (libuna_utf32_character_t *) system_string, system_string_size, (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_byte_stream( (libuna_utf16_character_t *) system_string, system_string_size, (uint8_t *) narrow_string, narrow_string_size, libclocale_codepage, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set system string.", function ); return( -1 ); } #else if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( narrow_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid narrow string.", function ); return( -1 ); } if( narrow_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid narrow string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size < narrow_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid system string size value too small.", function ); return( -1 ); } if( system_string_copy( system_string, narrow_string, narrow_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set narrow string.", function ); return( -1 ); } system_string[ narrow_string_size - 1 ] = 0; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Determines the size of a wide string from a system string * Returns 1 if successful or -1 on error */ int libcpath_system_string_size_to_wide_string( const system_character_t *system_string, size_t system_string_size, size_t *wide_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_size_to_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string size.", function ); return( -1 ); } *wide_string_size = system_string_size; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_utf8( (libuna_utf8_character_t *) system_string, system_string_size, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_utf8( (libuna_utf8_character_t *) system_string, system_string_size, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_size_from_byte_stream( (uint8_t *) system_string, system_string_size, libclocale_codepage, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_size_from_byte_stream( (uint8_t *) system_string, system_string_size, libclocale_codepage, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide string size.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string to a wide string * Returns 1 if successful or -1 on error */ int libcpath_system_string_copy_to_wide_string( const system_character_t *system_string, size_t system_string_size, wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_copy_to_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( wide_string_size < system_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid wide string size value too small.", function ); return( -1 ); } if( system_string_copy( wide_string, system_string, system_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set wide string.", function ); return( -1 ); } wide_string[ system_string_size - 1 ] = 0; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_utf8( (libuna_utf32_character_t *) wide_string, wide_string_size, (libuna_utf8_character_t *) system_string, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_utf8( (libuna_utf16_character_t *) wide_string, wide_string_size, (libuna_utf8_character_t *) system_string, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_utf32_string_copy_from_byte_stream( (libuna_utf32_character_t *) wide_string, wide_string_size, (uint8_t *) system_string, system_string_size, libclocale_codepage, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf16_string_copy_from_byte_stream( (libuna_utf16_character_t *) wide_string, wide_string_size, (uint8_t *) system_string, system_string_size, libclocale_codepage, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set wide string.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Determines the size of a system string from a wide string * Returns 1 if successful or -1 on error */ int libcpath_system_string_size_from_wide_string( const wchar_t *wide_string, size_t wide_string_size, size_t *system_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_size_from_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string size.", function ); return( -1 ); } *system_string_size = wide_string_size; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_size_from_utf32( (libuna_utf32_character_t *) wide_string, wide_string_size, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_size_from_utf16( (libuna_utf16_character_t *) wide_string, wide_string_size, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_size_from_utf32( (libuna_utf32_character_t *) wide_string, wide_string_size, libclocale_codepage, system_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_size_from_utf16( (libuna_utf16_character_t *) wide_string, wide_string_size, libclocale_codepage, system_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to determine wide string size.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } /* Copies a system string from a wide string * Returns 1 if successful or -1 on error */ int libcpath_system_string_copy_from_wide_string( system_character_t *system_string, size_t system_string_size, const wchar_t *wide_string, size_t wide_string_size, libcerror_error_t **error ) { static char *function = "libcpath_system_string_copy_from_wide_string"; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) int result = 0; #endif #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid system string.", function ); return( -1 ); } if( system_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid system string size value exceeds maximum.", function ); return( -1 ); } if( wide_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wide string.", function ); return( -1 ); } if( wide_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wide string size value exceeds maximum.", function ); return( -1 ); } if( system_string_size < wide_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid system string size value too small.", function ); return( -1 ); } if( system_string_copy( system_string, wide_string, wide_string_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to set wide string.", function ); return( -1 ); } system_string[ wide_string_size - 1 ] = 0; #else if( libclocale_codepage == 0 ) { #if SIZEOF_WCHAR_T == 4 result = libuna_utf8_string_copy_from_utf32( (libuna_utf8_character_t *) system_string, system_string_size, (libuna_utf32_character_t *) wide_string, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_utf8_string_copy_from_utf16( (libuna_utf8_character_t *) system_string, system_string_size, (libuna_utf16_character_t *) wide_string, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } else { #if SIZEOF_WCHAR_T == 4 result = libuna_byte_stream_copy_from_utf32( (uint8_t *) system_string, system_string_size, libclocale_codepage, (libuna_utf32_character_t *) wide_string, wide_string_size, error ); #elif SIZEOF_WCHAR_T == 2 result = libuna_byte_stream_copy_from_utf16( (uint8_t *) system_string, system_string_size, libclocale_codepage, (libuna_utf16_character_t *) wide_string, wide_string_size, error ); #endif /* SIZEOF_WCHAR_T */ } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_GENERIC, "%s: unable to set wide string.", function ); return( -1 ); } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libcpath/libcpath_support.h0000664000175000017500000000266713430101174023351 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_SUPPORT_H ) #define _LIBCPATH_SUPPORT_H #include #include #include "libcpath_extern.h" #include "libcpath_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCPATH ) LIBCPATH_EXTERN \ const char *libcpath_get_version( void ); LIBCPATH_EXTERN \ int libcpath_get_codepage( int *codepage, libcerror_error_t **error ); LIBCPATH_EXTERN \ int libcpath_set_codepage( int codepage, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBCPATH ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCPATH_SUPPORT_H ) */ libfsapfs-20190210/libcpath/libcpath_libuna.h0000664000175000017500000000331213430101174023073 0ustar00lordyestalordyesta00000000000000/* * The libuna header wrapper * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCPATH_LIBUNA_H ) #define _LIBCPATH_LIBUNA_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if defined( HAVE_LOCAL_LIBUNA ) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT * before including libuna.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBUNA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _LIBCPATH_LIBUNA_H ) */ libfsapfs-20190210/manuals/0000775000175000017500000000000013430101371017454 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/manuals/fsapfsmount.10000664000175000017500000000324613426637450022131 0ustar00lordyestalordyesta00000000000000.Dd December 14, 2018 .Dt fsapfsmount .Os libfsapfs .Sh NAME .Nm fsapfsmount .Nd mounts an Apple File System (APFS) volume .Sh SYNOPSIS .Nm fsapfsmount .Op Fl f Ar file_system_index .Op Fl o Ar offset .Op Fl p Ar password .Op Fl r Ar password .Op Fl hvV .Va Ar source .Sh DESCRIPTION .Nm fsapfsmount is a utility to mount an n Apple File System (APFS) volume .Pp .Nm fsapfsmount is part of the .Nm libfsapfs package. .Nm libfsapfs is a library to access the n Apple File System (APFS) format .Pp .Ar source is the source file. .Pp The options are as follows: .Bl -tag -width Ds .It Fl f Ar file_system_index mounts a specific file system or "all" .It Fl h shows this help .It Fl o Ar offset specify the volume offset in bytes .It Fl p Ar password specify the password .It Fl r Ar password specify the recovery password .It Fl v verbose output to stderr .It Fl V print version .It Fl X Ar extended_options extended options to pass to sub system .El .Sh ENVIRONMENT None .Sh FILES None .Sh EXAMPLES .Bd -literal # fsapfsmount -f 1 -p Password /dev/sda1 fsapfsmount 20181214 .Ed .Sh DIAGNOSTICS Errors, verbose and debug output are printed to stderr when verbose output \-v is enabled. Verbose and debug output are only printed when enabled at compilation. .Sh BUGS Please report bugs of any kind to or on the project website: https://github.com/libyal/libfsapfs/ .Sh AUTHOR These man pages were written by Joachim Metz. .Sh COPYRIGHT Copyright (C) 2018-2019, Joachim Metz . This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .Sh SEE ALSO .Xr fsapfsinfo 1 libfsapfs-20190210/manuals/Makefile.am0000664000175000017500000000031013404650236021514 0ustar00lordyestalordyesta00000000000000man_MANS = \ fsapfsinfo.1 \ fsapfsmount.1 \ libfsapfs.3 EXTRA_DIST = \ fsapfsinfo.1 \ fsapfsmount.1 \ libfsapfs.3 MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile libfsapfs-20190210/manuals/fsapfsinfo.10000664000175000017500000000415113426637450021716 0ustar00lordyestalordyesta00000000000000.Dd December 14, 2018 .Dt fsapfsinfo .Os libfsapfs .Sh NAME .Nm fsapfsinfo .Nd determines information about an Apple File System (APFS) .Sh SYNOPSIS .Nm fsapfsinfo .Op Fl B Ar bodyfile .Op Fl E Ar identifier .Op Fl f Ar file_system_index .Op Fl F Ar path .Op Fl F Ar path .Op Fl o Ar offset .Op Fl p Ar password .Op Fl r Ar password .Op Fl hvV .Va Ar source .Sh DESCRIPTION .Nm fsapfsinfo is a utility to determine information about an Apple File System (APFS) .Pp .Nm fsapfsinfo is part of the .Nm libfsapfs package. .Nm libfsapfs is a library to access the Apple File System (APFS) format .Pp .Ar source is the source file. .Pp The options are as follows: .Bl -tag -width Ds .It Fl B Ar bodyfile output file system information as a bodyfile .It Fl E Ar identifier show information about a specific file system entry or "all" .It Fl f Ar file_system_index show information about a specific file system or "all" .It Fl F Ar path show information about a specific file entry path .It Fl h shows this help .It Fl H shows the file system hierarchy .It Fl o Ar offset specify the volume offset .It Fl p Ar password specify the password .It Fl r Ar password specify the recovery password .It Fl v verbose output to stderr .It Fl V print version .El .Sh ENVIRONMENT None .Sh FILES None .Sh EXAMPLES .Bd -literal # fsapfsinfo -H -o 20480 image.dmg fsapfsinfo 20181214 Apple File System (APFS) information: File system hierarchy: /{3e0077e4-eafa-495e-a8de-016284a49b29}/ /{3e0077e4-eafa-495e-a8de-016284a49b29}/.fseventsd .Dl ... .Ed .Sh DIAGNOSTICS Errors, verbose and debug output are printed to stderr when verbose output \-v is enabled. Verbose and debug output are only printed when enabled at compilation. .Sh BUGS Please report bugs of any kind to or on the project website: https://github.com/libyal/libfsapfs/ .Sh AUTHOR These man pages were written by Joachim Metz. .Sh COPYRIGHT Copyright 2018, Joachim Metz . This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .Sh SEE ALSO .Xr fsapfsmount 1 libfsapfs-20190210/manuals/Makefile.in0000664000175000017500000006770513430101254021540 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = manuals ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" man3dir = $(mandir)/man3 NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ man_MANS = \ fsapfsinfo.1 \ fsapfsmount.1 \ libfsapfs.3 EXTRA_DIST = \ fsapfsinfo.1 \ fsapfsmount.1 \ libfsapfs.3 MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu manuals/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu manuals/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-man3: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man3dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man3dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man3dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.3[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \ done; } uninstall-man3: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man3dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.3[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man3dir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-man3 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 uninstall-man3 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man1 install-man3 install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-man uninstall-man1 uninstall-man3 .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/manuals/libfsapfs.30000664000175000017500000003317213426637450021540 0ustar00lordyestalordyesta00000000000000.Dd December 3, 2018 .Dt libfsapfs 3 .Os libfsapfs .Sh NAME .Nm libfsapfs.h .Nd Library to access the Apple File System (APFS) format .Sh LIBRARY .Lb libfsapfs .Sh SYNOPSIS .In libfsapfs.h .Pp Support functions .Ft const char * .Fn libfsapfs_get_version "void" .Ft int .Fn libfsapfs_get_access_flags_read "void" .Ft int .Fn libfsapfs_get_codepage "int *codepage, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_set_codepage "int codepage, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_check_container_signature "const char *filename, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_check_volume_signature "const char *filename, libfsapfs_error_t **error" .Pp Available when compiled with wide character string support: .Ft int .Fn libfsapfs_check_container_signature_wide "const wchar_t *filename, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_check_volume_signature_wide "const wchar_t *filename, libfsapfs_error_t **error" .Pp Available when compiled with libbfio support: .Ft int .Fn libfsapfs_check_container_signature_file_io_handle "libbfio_handle_t *file_io_handle, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_check_volume_signature_file_io_handle "libbfio_handle_t *file_io_handle, libfsapfs_error_t **error" .Pp Notify functions .Ft void .Fn libfsapfs_notify_set_verbose "int verbose" .Ft int .Fn libfsapfs_notify_set_stream "FILE *stream, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_notify_stream_open "const char *filename, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_notify_stream_close "libfsapfs_error_t **error" .Pp Error functions .Ft void .Fn libfsapfs_error_free "libfsapfs_error_t **error" .Ft int .Fn libfsapfs_error_fprint "libfsapfs_error_t *error, FILE *stream" .Ft int .Fn libfsapfs_error_sprint "libfsapfs_error_t *error, char *string, size_t size" .Ft int .Fn libfsapfs_error_backtrace_fprint "libfsapfs_error_t *error, FILE *stream" .Ft int .Fn libfsapfs_error_backtrace_sprint "libfsapfs_error_t *error, char *string, size_t size" .Pp Container functions .Ft int .Fn libfsapfs_container_initialize "libfsapfs_container_t **container, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_free "libfsapfs_container_t **container, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_signal_abort "libfsapfs_container_t *container, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_open "libfsapfs_container_t *container, const char *filename, int access_flags, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_close "libfsapfs_container_t *container, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_get_size "libfsapfs_container_t *container, size64_t *size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_get_identifier "libfsapfs_container_t *container, uint8_t *uuid_data, size_t uuid_data_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_get_number_of_volumes "libfsapfs_container_t *container, int *number_of_volumes, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_container_get_volume_by_index "libfsapfs_container_t *container, int volume_index, libfsapfs_volume_t **volume, libfsapfs_error_t **error" .Pp Available when compiled with wide character string support: .Ft int .Fn libfsapfs_container_open_wide "libfsapfs_container_t *container, const wchar_t *filename, int access_flags, libfsapfs_error_t **error" .Pp Available when compiled with libbfio support: .Ft int .Fn libfsapfs_container_open_file_io_handle "libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error" .Pp Volume functions .Ft int .Fn libfsapfs_volume_free "libfsapfs_volume_t **volume, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_signal_abort "libfsapfs_volume_t *volume, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_open "libfsapfs_volume_t *volume, const char *filename, int access_flags, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_close "libfsapfs_volume_t *volume, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_unlock "libfsapfs_volume_t *volume, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_size "libfsapfs_volume_t *volume, size64_t *size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_identifier "libfsapfs_volume_t *volume, uint8_t *uuid_data, size_t uuid_data_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_utf8_name_size "libfsapfs_volume_t *volume, size_t *utf8_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_utf8_name "libfsapfs_volume_t *volume, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_utf16_name_size "libfsapfs_volume_t *volume, size_t *utf16_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_utf16_name "libfsapfs_volume_t *volume, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_is_locked "libfsapfs_volume_t *volume, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_set_utf8_password "libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_set_utf16_password "libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_set_utf8_recovery_password "libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_set_utf16_recovery_password "libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_next_file_entry_identifier "libfsapfs_volume_t *volume, uint64_t *identifier, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_file_entry_by_identifier "libfsapfs_volume_t *volume, uint64_t identifier, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_root_directory "libfsapfs_volume_t *volume, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_file_entry_by_utf8_path "libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_volume_get_file_entry_by_utf16_path "libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error" .Pp Available when compiled with wide character string support: .Ft int .Fn libfsapfs_volume_open_wide "libfsapfs_volume_t *volume, const wchar_t *filename, int access_flags, libfsapfs_error_t **error" .Pp Available when compiled with libbfio support: .Ft int .Fn libfsapfs_volume_open_file_io_handle "libfsapfs_volume_t *volume, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error" .Pp File entry functions .Ft int .Fn libfsapfs_file_entry_free "libfsapfs_file_entry_t **file_entry, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_identifier "libfsapfs_file_entry_t *file_entry, uint64_t *identifier, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_parent_identifier "libfsapfs_file_entry_t *file_entry, uint64_t *parent_identifier, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_parent_file_entry "libfsapfs_file_entry_t *file_entry, libfsapfs_file_entry_t **parent_file_entry, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_creation_time "libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_modification_time "libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_inode_change_time "libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_access_time "libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_owner_identifier "libfsapfs_file_entry_t *file_entry, uint32_t *owner_identifier, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_group_identifier "libfsapfs_file_entry_t *file_entry, uint32_t *group_identifier, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_file_mode "libfsapfs_file_entry_t *file_entry, uint16_t *file_mode, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf8_name_size "libfsapfs_file_entry_t *file_entry, size_t *utf8_name_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf8_name "libfsapfs_file_entry_t *file_entry, uint8_t *utf8_name, size_t utf8_name_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf16_name_size "libfsapfs_file_entry_t *file_entry, size_t *utf16_name_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf16_name "libfsapfs_file_entry_t *file_entry, uint16_t *utf16_name, size_t utf16_name_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf8_symbolic_link_target_size "libfsapfs_file_entry_t *file_entry, size_t *utf8_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf8_symbolic_link_target "libfsapfs_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf16_symbolic_link_target_size "libfsapfs_file_entry_t *file_entry, size_t *utf16_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_utf16_symbolic_link_target "libfsapfs_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_number_of_extended_attributes "libfsapfs_file_entry_t *file_entry, int *number_of_extended_attributes, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_extended_attribute_by_index "libfsapfs_file_entry_t *file_entry, int extended_attribute_index, libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_number_of_sub_file_entries "libfsapfs_file_entry_t *file_entry, int *number_of_sub_file_entries, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_sub_file_entry_by_index "libfsapfs_file_entry_t *file_entry, int sub_file_entry_index, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_sub_file_entry_by_utf8_name "libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_sub_file_entry_by_utf16_name "libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **sub_file_entry, libfsapfs_error_t **error" .Ft ssize_t .Fn libfsapfs_file_entry_read_buffer "libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, libfsapfs_error_t **error" .Ft ssize_t .Fn libfsapfs_file_entry_read_buffer_at_offset "libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libfsapfs_error_t **error" .Ft off64_t .Fn libfsapfs_file_entry_seek_offset "libfsapfs_file_entry_t *file_entry, off64_t offset, int whence, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_offset "libfsapfs_file_entry_t *file_entry, off64_t *offset, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_size "libfsapfs_file_entry_t *file_entry, size64_t *size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_number_of_extents "libfsapfs_file_entry_t *file_entry, int *number_of_extents, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_file_entry_get_extent_by_index "libfsapfs_file_entry_t *file_entry, int extent_index, off64_t *extent_offset, size64_t *extent_size, uint32_t *extent_flags, libfsapfs_error_t **error" .Pp Extended attribute functions .Ft int .Fn libfsapfs_extended_attribute_free "libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_extended_attribute_get_utf8_name_size "libfsapfs_extended_attribute_t *extended_attribute, size_t *utf8_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_extended_attribute_get_utf8_name "libfsapfs_extended_attribute_t *extended_attribute, uint8_t *utf8_string, size_t utf8_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_extended_attribute_get_utf16_name_size "libfsapfs_extended_attribute_t *extended_attribute, size_t *utf16_string_size, libfsapfs_error_t **error" .Ft int .Fn libfsapfs_extended_attribute_get_utf16_name "libfsapfs_extended_attribute_t *extended_attribute, uint16_t *utf16_string, size_t utf16_string_size, libfsapfs_error_t **error" .Sh DESCRIPTION The .Fn libfsapfs_get_version function is used to retrieve the library version. .Sh RETURN VALUES Most of the functions return NULL or \-1 on error, dependent on the return type. For the actual return values see "libfsapfs.h". .Sh ENVIRONMENT None .Sh FILES None .Sh NOTES libfsapfs allows to be compiled with wide character support (wchar_t). To compile libfsapfs with wide character support use: .Ar ./configure --enable-wide-character-type=yes or define: .Ar _UNICODE or .Ar UNICODE during compilation. .Ar LIBFSAPFS_WIDE_CHARACTER_TYPE in libfsapfs/features.h can be used to determine if libfsapfs was compiled with wide character support. .Sh BUGS Please report bugs of any kind on the project issue tracker: https://github.com/libyal/libfsapfs/issues .Sh AUTHOR These man pages are generated from "libfsapfs.h". .Sh COPYRIGHT Copyright (C) 2018-2019, Joachim Metz . This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .Sh SEE ALSO the libfsapfs.h include file libfsapfs-20190210/ABOUT-NLS0000644000175000017500000026713313344411702017263 0ustar00lordyestalordyesta000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl' library and will decide to use it. If not, you may have to to use the `--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. If you happen to have the `LC_ALL' or some other `LC_xxx' environment variables set, you should unset them before setting `LANG', otherwise the setting of `LANG' will not have the desired effect. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of June 2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ a2ps | [] [] | aegis | | ant-phone | | anubis | | aspell | [] [] | bash | | bfd | | bibshelf | [] | binutils | | bison | | bison-runtime | [] | bluez-pin | [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | | dfarc | | dialog | [] [] | dico | | diffutils | [] | dink | | doodle | | e2fsprogs | [] | enscript | [] | exif | | fetchmail | [] | findutils | [] | flex | [] | freedink | | gas | | gawk | [] [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] [] | gettext-tools | [] [] | gip | [] | gjay | | gliv | [] | glunarclock | [] [] | gnubiff | | gnucash | [] | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | | gold | | gpe-aerial | | gpe-beam | | gpe-bluetooth | | gpe-calendar | | gpe-clock | [] | gpe-conf | | gpe-contacts | | gpe-edit | | gpe-filemanager | | gpe-go | | gpe-login | | gpe-ownerinfo | [] | gpe-package | | gpe-sketchbook | | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | [] [] | gsasl | | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] [] [] | gtick | | gtkam | [] | gtkorphan | [] | gtkspell | [] [] [] | gutenprint | | hello | [] | help2man | | hylafax | | idutils | | indent | [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | | iso_639 | [] [] [] [] | iso_639_3 | | jwhois | | kbd | | keytouch | [] | keytouch-editor | | keytouch-keyboa... | [] | klavaro | [] | latrine | | ld | [] | leafpad | [] [] | libc | [] [] | libexif | () | libextractor | | libgnutls | | libgpewidget | | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | [] | libidn | | lifelines | | liferea | [] [] | lilypond | | linkdr | [] | lordsawar | | lprng | | lynx | [] | m4 | | mailfromd | | mailutils | | make | | man-db | | man-db-manpages | | minicom | | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | | psmisc | | pspp | [] | pwdutils | | radius | [] | recode | [] [] | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] [] | sed | [] [] | sharutils | [] [] | shishi | | skencil | | solfege | | solfege-manual | | soundtracker | | sp | | sysstat | | tar | [] | texinfo | | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] [] | wyslij-po | | xchat | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] | +--------------------------------------------------+ af am an ar as ast az be be@latin bg bn_IN bs ca 6 0 1 2 3 19 1 10 3 28 3 1 38 crh cs da de el en en_GB en_ZA eo es et eu fa +-------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] () | anubis | [] [] | aspell | [] [] [] [] [] | bash | [] [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] | bison | [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] [] [] | cflow | [] [] | clisp | [] [] [] [] | coreutils | [] [] [] [] | cpio | | cppi | | cpplib | [] [] [] | cryptsetup | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] | dink | [] [] [] | doodle | [] | e2fsprogs | [] [] [] | enscript | [] [] [] | exif | () [] [] | fetchmail | [] [] () [] [] [] | findutils | [] [] [] | flex | [] [] | freedink | [] [] [] | gas | [] | gawk | [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gip | [] [] [] [] | gjay | [] | gliv | [] [] [] | glunarclock | [] [] | gnubiff | () | gnucash | [] () () () () | gnuedu | [] [] | gnulib | [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] | gpe-aerial | [] [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] () [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] | grub | [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () [] | gtkam | [] [] () [] [] | gtkorphan | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] [] [] | hello | [] [] [] [] | help2man | [] | hylafax | [] [] | idutils | [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] [] [] [] () [] [] [] () | iso_3166_2 | () | iso_4217 | [] [] [] () [] [] | iso_639 | [] [] [] [] () [] [] | iso_639_3 | [] | jwhois | [] | kbd | [] [] [] [] [] | keytouch | [] [] | keytouch-editor | [] [] | keytouch-keyboa... | [] | klavaro | [] [] [] [] | latrine | [] () | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | [] [] | libgphoto2 | [] () | libgphoto2_port | [] () [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | [] [] [] | lifelines | [] () | liferea | [] [] [] [] [] | lilypond | [] [] [] | linkdr | [] [] [] | lordsawar | [] | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] [] | man-db | | man-db-manpages | | minicom | [] [] [] [] | mkisofs | | myserver | | nano | [] [] [] | opcodes | [] [] | parted | [] [] | pies | | popt | [] [] [] [] [] | psmisc | [] [] [] | pspp | [] | pwdutils | [] | radius | [] | recode | [] [] [] [] [] [] | rosegarden | () () () | rpm | [] [] [] | rush | | sarg | | screem | | scrollkeeper | [] [] [] [] [] | sed | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | | skencil | [] () [] | solfege | [] [] [] | solfege-manual | [] [] | soundtracker | [] [] [] | sp | [] | sysstat | [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] | tin | [] [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] | vice | () () | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] | wyslij-po | | xchat | [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ crh cs da de el en en_GB en_ZA eo es et eu fa 5 64 105 117 18 1 8 0 28 89 18 19 0 fi fr ga gl gu he hi hr hu hy id is it ja ka kn +----------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] [] | ant-phone | [] [] | anubis | [] [] [] [] | aspell | [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | bibshelf | [] [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] | cppi | [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] [] [] [] | dink | [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] | freedink | [] [] [] | gas | [] [] | gawk | [] [] [] [] () [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] [] [] | gjay | [] | gliv | [] () | glunarclock | [] [] [] [] | gnubiff | () [] () | gnucash | () () () () () [] | gnuedu | [] [] | gnulib | [] [] [] [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] [] [] | gpe-calendar | [] [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkorphan | [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | gutenprint | [] [] [] [] | hello | [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | () [] [] [] | iso_4217 | [] () [] [] [] [] | iso_639 | [] () [] [] [] [] [] [] [] | iso_639_3 | () [] [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] [] [] [] | keytouch-editor | [] [] [] [] [] | keytouch-keyboa... | [] [] [] [] [] | klavaro | [] [] | latrine | [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] | libidn | [] [] [] [] | lifelines | () | liferea | [] [] [] [] | lilypond | [] [] | linkdr | [] [] [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] [] | man-db | [] [] | man-db-manpages | [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] [] | myserver | | nano | [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pies | | popt | [] [] [] [] [] [] [] [] [] | psmisc | [] [] [] | pspp | | pwdutils | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () () () () | rpm | [] [] | rush | | sarg | [] | screem | [] [] | scrollkeeper | [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | shishi | [] | skencil | [] | solfege | [] [] [] [] | solfege-manual | [] [] | soundtracker | [] [] | sp | [] () | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux-ng | [] [] [] [] [] [] | vice | () () () | vmm | [] | vorbis-tools | [] | wastesedge | () () | wdiff | [] | wget | [] [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] | +----------------------------------------------------+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne +-----------------------------------------------+ a2ps | [] | aegis | | ant-phone | | anubis | [] [] | aspell | [] | bash | | bfd | | bibshelf | [] [] | binutils | | bison | [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] | cpio | | cppi | | cpplib | | cryptsetup | | dfarc | [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] | dink | | doodle | | e2fsprogs | | enscript | | exif | [] | fetchmail | | findutils | | flex | | freedink | [] | gas | | gawk | | gcal | | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] | gettext-tools | [] | gip | [] [] | gjay | | gliv | | glunarclock | [] | gnubiff | | gnucash | () () () () | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | [] | gold | | gpe-aerial | [] | gpe-beam | [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-filemanager | [] [] | gpe-go | [] [] [] | gpe-login | [] | gpe-ownerinfo | [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] | gpe-timesheet | [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | | gsasl | | gss | | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | | gtick | | gtkam | [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | | hello | [] [] [] | help2man | | hylafax | | idutils | | indent | | iso_15924 | [] [] | iso_3166 | [] [] () [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] | iso_639 | [] [] | iso_639_3 | [] | jwhois | [] | kbd | | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | klavaro | [] | latrine | [] | ld | | leafpad | [] [] [] | libc | [] | libexif | | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | | libidn | | lifelines | | liferea | | lilypond | | linkdr | | lordsawar | | lprng | | lynx | | m4 | | mailfromd | | mailutils | | make | [] | man-db | | man-db-manpages | | minicom | [] | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | [] [] [] | psmisc | | pspp | | pwdutils | | radius | | recode | | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] | sed | | sharutils | | shishi | | skencil | | solfege | [] | solfege-manual | | soundtracker | | sp | | sysstat | [] | tar | [] | texinfo | [] | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] | wyslij-po | | xchat | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +-----------------------------------------------+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +---------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] | bash | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] () | buzztard | [] [] | cflow | [] | clisp | [] [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cppi | [] | cpplib | [] | cryptsetup | [] | dfarc | [] | dialog | [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] [] | dink | () | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | exif | [] [] [] () [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] | gas | | gawk | [] [] [] [] | gcal | | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] | gip | [] [] [] [] [] | gjay | | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | [] () | gnucash | [] () () () | gnuedu | [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gnutls | [] [] | gold | | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] | gphoto2 | [] [] [] [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] [] | grep | [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | gutenprint | [] [] | hello | [] [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] [] [] [] | iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] [] | iso_4217 | [] [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] [] [] | keytouch-editor | [] [] [] | keytouch-keyboa... | [] [] [] | klavaro | [] [] | latrine | [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] | lifelines | [] [] | liferea | [] [] [] [] [] () () [] | lilypond | [] | linkdr | [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | | nano | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | pies | [] | popt | [] [] [] [] | psmisc | [] [] [] | pspp | [] [] | pwdutils | [] | radius | [] [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () | rpm | [] [] [] | rush | [] [] | sarg | | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] [] [] [] | solfege-manual | [] [] [] | soundtracker | [] | sp | | sysstat | [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] [] | vice | [] | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ a2ps | [] [] [] [] [] | 27 aegis | [] | 9 ant-phone | [] [] [] [] | 9 anubis | [] [] [] [] | 15 aspell | [] [] [] | 20 bash | [] [] [] | 12 bfd | [] | 6 bibshelf | [] [] [] | 16 binutils | [] [] | 8 bison | [] [] | 12 bison-runtime | [] [] [] [] [] [] | 29 bluez-pin | [] [] [] [] [] [] [] [] | 37 bombono-dvd | [] | 4 buzztard | [] | 7 cflow | [] [] [] | 9 clisp | | 10 coreutils | [] [] [] [] | 22 cpio | [] [] [] [] [] [] | 13 cppi | [] [] | 5 cpplib | [] [] [] [] [] [] | 14 cryptsetup | [] [] | 7 dfarc | [] | 9 dialog | [] [] [] [] [] [] [] | 30 dico | [] | 2 diffutils | [] [] [] [] [] [] | 30 dink | | 4 doodle | [] [] | 7 e2fsprogs | [] [] [] | 11 enscript | [] [] [] [] | 17 exif | [] [] [] | 16 fetchmail | [] [] [] | 17 findutils | [] [] [] [] [] | 20 flex | [] [] [] [] | 15 freedink | [] | 10 gas | [] | 4 gawk | [] [] [] [] | 18 gcal | [] [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] [] | 34 gettext-runtime | [] [] [] [] [] [] [] | 29 gettext-tools | [] [] [] [] [] [] | 22 gip | [] [] [] [] | 22 gjay | [] | 3 gliv | [] [] [] | 14 glunarclock | [] [] [] [] [] | 19 gnubiff | [] [] | 4 gnucash | () [] () [] () | 10 gnuedu | [] [] | 7 gnulib | [] [] [] [] | 16 gnunet | [] | 1 gnunet-gtk | [] [] [] | 5 gnutls | [] [] [] | 10 gold | [] | 4 gpe-aerial | [] [] [] | 18 gpe-beam | [] [] [] | 19 gpe-bluetooth | [] [] [] | 13 gpe-calendar | [] [] [] [] | 12 gpe-clock | [] [] [] [] [] | 28 gpe-conf | [] [] [] [] | 20 gpe-contacts | [] [] [] | 17 gpe-edit | [] [] [] | 12 gpe-filemanager | [] [] [] [] | 16 gpe-go | [] [] [] [] [] | 25 gpe-login | [] [] [] | 11 gpe-ownerinfo | [] [] [] [] [] | 25 gpe-package | [] [] [] | 13 gpe-sketchbook | [] [] [] | 20 gpe-su | [] [] [] [] [] | 30 gpe-taskmanager | [] [] [] [] [] | 29 gpe-timesheet | [] [] [] [] [] | 25 gpe-today | [] [] [] [] [] [] | 30 gpe-todo | [] [] [] [] | 17 gphoto2 | [] [] [] [] [] | 24 gprof | [] [] [] | 15 gpsdrive | [] [] [] | 11 gramadoir | [] [] [] | 11 grep | [] [] [] | 10 grub | [] [] [] | 14 gsasl | [] [] [] [] | 14 gss | [] [] [] | 11 gst-plugins-bad | [] [] [] [] | 26 gst-plugins-base | [] [] [] [] [] | 24 gst-plugins-good | [] [] [] [] | 24 gst-plugins-ugly | [] [] [] [] [] | 29 gstreamer | [] [] [] [] | 22 gtick | [] [] [] | 13 gtkam | [] [] [] | 20 gtkorphan | [] [] [] | 14 gtkspell | [] [] [] [] [] [] [] [] [] | 45 gutenprint | [] | 10 hello | [] [] [] [] [] [] | 21 help2man | [] [] | 7 hylafax | [] | 5 idutils | [] [] [] [] | 17 indent | [] [] [] [] [] [] | 30 iso_15924 | () [] () [] [] | 16 iso_3166 | [] [] () [] [] () [] [] [] () | 53 iso_3166_2 | () [] () [] | 9 iso_4217 | [] () [] [] () [] [] | 26 iso_639 | [] [] [] () [] () [] [] [] [] | 38 iso_639_3 | [] () | 8 jwhois | [] [] [] [] [] | 16 kbd | [] [] [] [] [] | 15 keytouch | [] [] [] | 16 keytouch-editor | [] [] [] | 14 keytouch-keyboa... | [] [] [] | 14 klavaro | [] | 11 latrine | [] [] [] | 10 ld | [] [] [] [] | 11 leafpad | [] [] [] [] [] [] | 33 libc | [] [] [] [] [] | 21 libexif | [] () | 7 libextractor | [] | 1 libgnutls | [] [] [] | 9 libgpewidget | [] [] [] | 14 libgpg-error | [] [] [] | 9 libgphoto2 | [] [] | 8 libgphoto2_port | [] [] [] [] | 14 libgsasl | [] [] [] | 13 libiconv | [] [] [] [] | 21 libidn | () [] [] | 11 lifelines | [] | 4 liferea | [] [] [] | 21 lilypond | [] | 7 linkdr | [] [] [] [] [] | 17 lordsawar | | 1 lprng | [] | 3 lynx | [] [] [] [] | 17 m4 | [] [] [] [] | 19 mailfromd | [] [] | 3 mailutils | [] | 5 make | [] [] [] [] | 21 man-db | [] [] [] | 8 man-db-manpages | | 4 minicom | [] [] | 16 mkisofs | [] [] | 9 myserver | | 0 nano | [] [] [] [] | 21 opcodes | [] [] [] | 11 parted | [] [] [] [] [] | 15 pies | [] [] | 3 popt | [] [] [] [] [] [] | 27 psmisc | [] [] | 11 pspp | | 4 pwdutils | [] [] | 6 radius | [] [] | 9 recode | [] [] [] [] | 28 rosegarden | () | 0 rpm | [] [] [] | 11 rush | [] [] | 4 sarg | | 1 screem | [] | 3 scrollkeeper | [] [] [] [] [] | 27 sed | [] [] [] [] [] | 30 sharutils | [] [] [] [] [] | 22 shishi | [] | 3 skencil | [] [] | 7 solfege | [] [] [] [] | 16 solfege-manual | [] | 8 soundtracker | [] [] [] | 9 sp | [] | 3 sysstat | [] [] | 15 tar | [] [] [] [] [] [] | 23 texinfo | [] [] [] [] [] | 17 tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux-ng | [] [] [] [] | 20 vice | () () | 1 vmm | [] | 4 vorbis-tools | [] | 6 wastesedge | | 2 wdiff | [] [] | 7 wget | [] [] [] [] [] | 26 wyslij-po | [] [] | 8 xchat | [] [] [] [] [] [] | 36 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If June 2010 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. 1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `coordinator@translationproject.org' to make the `.pot' files available to the translation teams. libfsapfs-20190210/msvscpp/0000775000175000017500000000000013430101371017507 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_file_extent/0000775000175000017500000000000013430101371024416 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_file_extent/fsapfs_test_file_extent.vcproj0000664000175000017500000001362113426641672032577 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_btree_node_header/0000775000175000017500000000000013430101371025526 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_btree_node_header/fsapfs_test_btree_node_header.vcproj0000664000175000017500000001364313426641672035023 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_name_hash/0000775000175000017500000000000013430101371024033 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_name_hash/fsapfs_test_name_hash.vcproj0000664000175000017500000001347113426641672031634 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libfsapfs.sln0000664000175000017500000016207113426641672022227 0ustar00lordyestalordyesta00000000000000 Microsoft Visual Studio Solution File, Format Version 10.00 # Visual C++ Express 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfcache", "libfcache\libfcache.vcproj", "{4E0DC45C-1C46-4772-BDB5-F79FC1BFB330}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} = {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfguid", "libfguid\libfguid.vcproj", "{17B4F915-722A-4F8D-AD95-4D1ADD82F3D1}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_btree_entry", "fsapfs_test_btree_entry\fsapfs_test_btree_entry.vcproj", "{B8EDED9B-8465-4D96-9C36-0339B9A7FA16}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_btree_footer", "fsapfs_test_btree_footer\fsapfs_test_btree_footer.vcproj", "{4C7E01E3-B067-4216-921F-593E07E6F843}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_btree_node", "fsapfs_test_btree_node\fsapfs_test_btree_node.vcproj", "{BDC063AD-1CAF-4D3E-AD0E-B25300C77A2B}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_btree_node_header", "fsapfs_test_btree_node_header\fsapfs_test_btree_node_header.vcproj", "{E3F76744-7415-4C05-9D98-43A40BF7D010}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_buffer_data_handle", "fsapfs_test_buffer_data_handle\fsapfs_test_buffer_data_handle.vcproj", "{942BD21F-A71A-4423-A6A1-B7F8BDBAB7F3}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_checkpoint_map", "fsapfs_test_checkpoint_map\fsapfs_test_checkpoint_map.vcproj", "{D843D749-9B47-4833-8643-B08EE7FB1DF3}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_checkpoint_map_entry", "fsapfs_test_checkpoint_map_entry\fsapfs_test_checkpoint_map_entry.vcproj", "{697E653E-2AC0-4CBC-9ADD-28E97BF4A4EE}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_checksum", "fsapfs_test_checksum\fsapfs_test_checksum.vcproj", "{54670300-9762-426C-9A05-EE0028AD8081}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_chunk_information_block", "fsapfs_test_chunk_information_block\fsapfs_test_chunk_information_block.vcproj", "{69BD1901-531F-449B-B57C-A72A046CEB96}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_compressed_data_handle", "fsapfs_test_compressed_data_handle\fsapfs_test_compressed_data_handle.vcproj", "{0759FC1E-239B-4AA8-90E0-3DD006550AFE}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_compression", "fsapfs_test_compression\fsapfs_test_compression.vcproj", "{B9D1B260-1F43-4916-B8DC-E9A9A8D98496}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_container", "fsapfs_test_container\fsapfs_test_container.vcproj", "{C02ED8FC-1AC6-46CB-A0A2-F41B8ECFCA67}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} = {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_container_data_handle", "fsapfs_test_container_data_handle\fsapfs_test_container_data_handle.vcproj", "{BE397303-FDBC-4D45-A9F2-BC1F3C29B05F}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_container_key_bag", "fsapfs_test_container_key_bag\fsapfs_test_container_key_bag.vcproj", "{9F5877C6-FA1B-4B54-9A05-CDFA8701A1B4}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_container_reaper", "fsapfs_test_container_reaper\fsapfs_test_container_reaper.vcproj", "{B8C75A64-9CE8-4CCF-B6B8-F7DA658AB6E2}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_container_superblock", "fsapfs_test_container_superblock\fsapfs_test_container_superblock.vcproj", "{301E1DCF-F551-40A4-9D0D-E07D48322C15}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_data_block", "fsapfs_test_data_block\fsapfs_test_data_block.vcproj", "{546056DF-1F2C-4D7B-9368-0D0463FB9442}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_directory_record", "fsapfs_test_directory_record\fsapfs_test_directory_record.vcproj", "{808897C3-261A-4998-B768-1D94B39BD822}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_encryption_context", "fsapfs_test_encryption_context\fsapfs_test_encryption_context.vcproj", "{A0204F26-F689-478E-9B17-133EA204578A}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_error", "fsapfs_test_error\fsapfs_test_error.vcproj", "{497F83A7-47D7-43A7-BC60-58C1D35477C1}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_file_extent", "fsapfs_test_file_extent\fsapfs_test_file_extent.vcproj", "{BD7EB542-B085-4FF4-9BA8-0E041B564076}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_file_system_btree", "fsapfs_test_file_system_btree\fsapfs_test_file_system_btree.vcproj", "{FDEBC536-EE09-4CC9-8255-315A3AEC3371}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_inode", "fsapfs_test_inode\fsapfs_test_inode.vcproj", "{05349DB9-A9BC-40C7-844E-FDB7E6CED809}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_io_handle", "fsapfs_test_io_handle\fsapfs_test_io_handle.vcproj", "{029652D2-6E4D-4F98-85FE-1E9A5FD40655}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_key_bag_entry", "fsapfs_test_key_bag_entry\fsapfs_test_key_bag_entry.vcproj", "{A6353B4A-3ECA-47E5-920E-FABF5E16E5D9}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_key_bag_header", "fsapfs_test_key_bag_header\fsapfs_test_key_bag_header.vcproj", "{E619F320-5922-4CE7-96B5-6F467B96FCA9}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_key_encrypted_key", "fsapfs_test_key_encrypted_key\fsapfs_test_key_encrypted_key.vcproj", "{E13FDA80-528E-4E07-BF9D-22C32DAC4EF6}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_name", "fsapfs_test_name\fsapfs_test_name.vcproj", "{F423DB05-48C6-4CCA-A624-52E022D1C7DE}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_name_hash", "fsapfs_test_name_hash\fsapfs_test_name_hash.vcproj", "{D2CF9901-13D4-4D6C-87C5-C8C35390AD17}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_notify", "fsapfs_test_notify\fsapfs_test_notify.vcproj", "{49561C06-C0D3-4782-BB53-724E7C6EC0C7}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_object", "fsapfs_test_object\fsapfs_test_object.vcproj", "{DACC43EE-AA77-4345-B18A-F2C60B300559}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_object_map", "fsapfs_test_object_map\fsapfs_test_object_map.vcproj", "{3774E757-22D9-4046-A2E0-0DF89ECB447F}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_object_map_btree", "fsapfs_test_object_map_btree\fsapfs_test_object_map_btree.vcproj", "{B7EE2B73-58EA-48CB-97B5-2F49EE1C6C23}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_object_map_descriptor", "fsapfs_test_object_map_descriptor\fsapfs_test_object_map_descriptor.vcproj", "{98CA92D4-AF28-40CE-A177-29BFA4B75677}" ProjectSection(ProjectDependencies) = postProject {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_space_manager", "fsapfs_test_space_manager\fsapfs_test_space_manager.vcproj", "{E732C23E-8642-4EFA-A580-1E9D8E6DE090}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_support", "fsapfs_test_support\fsapfs_test_support.vcproj", "{D69E0261-FD4E-4E82-BC60-67E67C9DD8F7}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_volume", "fsapfs_test_volume\fsapfs_test_volume.vcproj", "{13978574-75C7-4EFC-9440-F9FBC38DD907}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} = {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_volume_key_bag", "fsapfs_test_volume_key_bag\fsapfs_test_volume_key_bag.vcproj", "{C491D395-BCF3-44BD-8C71-30BB83576FE0}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfs_test_volume_superblock", "fsapfs_test_volume_superblock\fsapfs_test_volume_superblock.vcproj", "{84AB4ABE-3081-443F-9AF5-99B79F08D08F}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libclocale", "libclocale\libclocale.vcproj", "{670BD730-824A-4304-81D7-DF5B5AE5340C}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libbfio", "libbfio\libbfio.vcproj", "{ABB04F9A-768A-4F12-9751-65A0E2F81229}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} = {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcaes", "libcaes\libcaes.vcproj", "{429A8D84-27BE-4931-8490-9F5E8FD68A2C}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfdatetime", "libfdatetime\libfdatetime.vcproj", "{9BA406EC-23C0-4A43-A97B-ACDA0D131DB4}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcfile", "libcfile\libcfile.vcproj", "{ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcthreads", "libcthreads\libcthreads.vcproj", "{5C1A1AC0-BA53-4E6C-8D81-0455443FED73}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcpath", "libcpath\libcpath.vcproj", "{D9CF8B05-7395-4338-BAC5-124E72335F21}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libhmac", "libhmac\libhmac.vcproj", "{15FA188C-ED14-4CE9-B61C-02EBA70A76C9}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libuna", "libuna\libuna.vcproj", "{75064AFE-F331-40B7-AB9C-F0040C889610}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcerror", "libcerror\libcerror.vcproj", "{F480F61D-4950-4603-9F6F-F95ECC64A31C}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcnotify", "libcnotify\libcnotify.vcproj", "{8AA44886-07A3-430D-90E0-F622A051A571}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfsapfs", "libfsapfs\libfsapfs.vcproj", "{66956CAB-8580-4D29-AFA4-49E9934D9E42}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} = {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330} = {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330} {F5128A58-D76A-4625-958F-5150D0CAC45C} = {F5128A58-D76A-4625-958F-5150D0CAC45C} {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4} = {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4} {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1} = {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1} {15FA188C-ED14-4CE9-B61C-02EBA70A76C9} = {15FA188C-ED14-4CE9-B61C-02EBA70A76C9} {429A8D84-27BE-4931-8490-9F5E8FD68A2C} = {429A8D84-27BE-4931-8490-9F5E8FD68A2C} {6AF53B72-2046-4B3A-96B3-F72C87E80980} = {6AF53B72-2046-4B3A-96B3-F72C87E80980} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfsinfo", "fsapfsinfo\fsapfsinfo.vcproj", "{D5AE14B4-69BA-45F5-96D6-BB5B98078B63}" ProjectSection(ProjectDependencies) = postProject {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1} = {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1} {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4} = {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4} {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fsapfsmount", "fsapfsmount\fsapfsmount.vcproj", "{67C5C431-90F7-47E0-996D-C68A91C60E88}" ProjectSection(ProjectDependencies) = postProject {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pyfsapfs", "pyfsapfs\pyfsapfs.vcproj", "{D0E2ACB5-0A20-4205-AD07-C16B601ACE99}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {66956CAB-8580-4D29-AFA4-49E9934D9E42} = {66956CAB-8580-4D29-AFA4-49E9934D9E42} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {670BD730-824A-4304-81D7-DF5B5AE5340C} = {670BD730-824A-4304-81D7-DF5B5AE5340C} {4B0DA96F-94B6-4904-9701-3A9371E8914E} = {4B0DA96F-94B6-4904-9701-3A9371E8914E} {75064AFE-F331-40B7-AB9C-F0040C889610} = {75064AFE-F331-40B7-AB9C-F0040C889610} {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} = {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2} {D9CF8B05-7395-4338-BAC5-124E72335F21} = {D9CF8B05-7395-4338-BAC5-124E72335F21} {ABB04F9A-768A-4F12-9751-65A0E2F81229} = {ABB04F9A-768A-4F12-9751-65A0E2F81229} {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1} = {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfdata", "libfdata\libfdata.vcproj", "{F5128A58-D76A-4625-958F-5150D0CAC45C}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} = {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} = {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA} {8AA44886-07A3-430D-90E0-F622A051A571} = {8AA44886-07A3-430D-90E0-F622A051A571} {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330} = {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcdata", "libcdata\libcdata.vcproj", "{3EAA2B38-404A-4EE2-B675-8E39E41CEBAA}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} = {5C1A1AC0-BA53-4E6C-8D81-0455443FED73} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcsplit", "libcsplit\libcsplit.vcproj", "{4B0DA96F-94B6-4904-9701-3A9371E8914E}" ProjectSection(ProjectDependencies) = postProject {F480F61D-4950-4603-9F6F-F95ECC64A31C} = {F480F61D-4950-4603-9F6F-F95ECC64A31C} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlib", "zlib\zlib.vcproj", "{6AF53B72-2046-4B3A-96B3-F72C87E80980}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Release|Win32 = Release|Win32 VSDebug|Win32 = VSDebug|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330}.Release|Win32.ActiveCfg = Release|Win32 {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330}.Release|Win32.Build.0 = Release|Win32 {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {4E0DC45C-1C46-4772-BDB5-F79FC1BFB330}.VSDebug|Win32.Build.0 = VSDebug|Win32 {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1}.Release|Win32.ActiveCfg = Release|Win32 {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1}.Release|Win32.Build.0 = Release|Win32 {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {17B4F915-722A-4F8D-AD95-4D1ADD82F3D1}.VSDebug|Win32.Build.0 = VSDebug|Win32 {B8EDED9B-8465-4D96-9C36-0339B9A7FA16}.Release|Win32.ActiveCfg = Release|Win32 {B8EDED9B-8465-4D96-9C36-0339B9A7FA16}.Release|Win32.Build.0 = Release|Win32 {B8EDED9B-8465-4D96-9C36-0339B9A7FA16}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {B8EDED9B-8465-4D96-9C36-0339B9A7FA16}.VSDebug|Win32.Build.0 = VSDebug|Win32 {4C7E01E3-B067-4216-921F-593E07E6F843}.Release|Win32.ActiveCfg = Release|Win32 {4C7E01E3-B067-4216-921F-593E07E6F843}.Release|Win32.Build.0 = Release|Win32 {4C7E01E3-B067-4216-921F-593E07E6F843}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {4C7E01E3-B067-4216-921F-593E07E6F843}.VSDebug|Win32.Build.0 = VSDebug|Win32 {BDC063AD-1CAF-4D3E-AD0E-B25300C77A2B}.Release|Win32.ActiveCfg = Release|Win32 {BDC063AD-1CAF-4D3E-AD0E-B25300C77A2B}.Release|Win32.Build.0 = Release|Win32 {BDC063AD-1CAF-4D3E-AD0E-B25300C77A2B}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {BDC063AD-1CAF-4D3E-AD0E-B25300C77A2B}.VSDebug|Win32.Build.0 = VSDebug|Win32 {E3F76744-7415-4C05-9D98-43A40BF7D010}.Release|Win32.ActiveCfg = Release|Win32 {E3F76744-7415-4C05-9D98-43A40BF7D010}.Release|Win32.Build.0 = Release|Win32 {E3F76744-7415-4C05-9D98-43A40BF7D010}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {E3F76744-7415-4C05-9D98-43A40BF7D010}.VSDebug|Win32.Build.0 = VSDebug|Win32 {942BD21F-A71A-4423-A6A1-B7F8BDBAB7F3}.Release|Win32.ActiveCfg = Release|Win32 {942BD21F-A71A-4423-A6A1-B7F8BDBAB7F3}.Release|Win32.Build.0 = Release|Win32 {942BD21F-A71A-4423-A6A1-B7F8BDBAB7F3}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {942BD21F-A71A-4423-A6A1-B7F8BDBAB7F3}.VSDebug|Win32.Build.0 = VSDebug|Win32 {D843D749-9B47-4833-8643-B08EE7FB1DF3}.Release|Win32.ActiveCfg = Release|Win32 {D843D749-9B47-4833-8643-B08EE7FB1DF3}.Release|Win32.Build.0 = Release|Win32 {D843D749-9B47-4833-8643-B08EE7FB1DF3}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {D843D749-9B47-4833-8643-B08EE7FB1DF3}.VSDebug|Win32.Build.0 = VSDebug|Win32 {697E653E-2AC0-4CBC-9ADD-28E97BF4A4EE}.Release|Win32.ActiveCfg = Release|Win32 {697E653E-2AC0-4CBC-9ADD-28E97BF4A4EE}.Release|Win32.Build.0 = Release|Win32 {697E653E-2AC0-4CBC-9ADD-28E97BF4A4EE}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {697E653E-2AC0-4CBC-9ADD-28E97BF4A4EE}.VSDebug|Win32.Build.0 = VSDebug|Win32 {54670300-9762-426C-9A05-EE0028AD8081}.Release|Win32.ActiveCfg = Release|Win32 {54670300-9762-426C-9A05-EE0028AD8081}.Release|Win32.Build.0 = Release|Win32 {54670300-9762-426C-9A05-EE0028AD8081}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {54670300-9762-426C-9A05-EE0028AD8081}.VSDebug|Win32.Build.0 = VSDebug|Win32 {69BD1901-531F-449B-B57C-A72A046CEB96}.Release|Win32.ActiveCfg = Release|Win32 {69BD1901-531F-449B-B57C-A72A046CEB96}.Release|Win32.Build.0 = Release|Win32 {69BD1901-531F-449B-B57C-A72A046CEB96}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {69BD1901-531F-449B-B57C-A72A046CEB96}.VSDebug|Win32.Build.0 = VSDebug|Win32 {0759FC1E-239B-4AA8-90E0-3DD006550AFE}.Release|Win32.ActiveCfg = Release|Win32 {0759FC1E-239B-4AA8-90E0-3DD006550AFE}.Release|Win32.Build.0 = Release|Win32 {0759FC1E-239B-4AA8-90E0-3DD006550AFE}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {0759FC1E-239B-4AA8-90E0-3DD006550AFE}.VSDebug|Win32.Build.0 = VSDebug|Win32 {B9D1B260-1F43-4916-B8DC-E9A9A8D98496}.Release|Win32.ActiveCfg = Release|Win32 {B9D1B260-1F43-4916-B8DC-E9A9A8D98496}.Release|Win32.Build.0 = Release|Win32 {B9D1B260-1F43-4916-B8DC-E9A9A8D98496}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {B9D1B260-1F43-4916-B8DC-E9A9A8D98496}.VSDebug|Win32.Build.0 = VSDebug|Win32 {C02ED8FC-1AC6-46CB-A0A2-F41B8ECFCA67}.Release|Win32.ActiveCfg = Release|Win32 {C02ED8FC-1AC6-46CB-A0A2-F41B8ECFCA67}.Release|Win32.Build.0 = Release|Win32 {C02ED8FC-1AC6-46CB-A0A2-F41B8ECFCA67}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {C02ED8FC-1AC6-46CB-A0A2-F41B8ECFCA67}.VSDebug|Win32.Build.0 = VSDebug|Win32 {BE397303-FDBC-4D45-A9F2-BC1F3C29B05F}.Release|Win32.ActiveCfg = Release|Win32 {BE397303-FDBC-4D45-A9F2-BC1F3C29B05F}.Release|Win32.Build.0 = Release|Win32 {BE397303-FDBC-4D45-A9F2-BC1F3C29B05F}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {BE397303-FDBC-4D45-A9F2-BC1F3C29B05F}.VSDebug|Win32.Build.0 = VSDebug|Win32 {9F5877C6-FA1B-4B54-9A05-CDFA8701A1B4}.Release|Win32.ActiveCfg = Release|Win32 {9F5877C6-FA1B-4B54-9A05-CDFA8701A1B4}.Release|Win32.Build.0 = Release|Win32 {9F5877C6-FA1B-4B54-9A05-CDFA8701A1B4}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {9F5877C6-FA1B-4B54-9A05-CDFA8701A1B4}.VSDebug|Win32.Build.0 = VSDebug|Win32 {B8C75A64-9CE8-4CCF-B6B8-F7DA658AB6E2}.Release|Win32.ActiveCfg = Release|Win32 {B8C75A64-9CE8-4CCF-B6B8-F7DA658AB6E2}.Release|Win32.Build.0 = Release|Win32 {B8C75A64-9CE8-4CCF-B6B8-F7DA658AB6E2}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {B8C75A64-9CE8-4CCF-B6B8-F7DA658AB6E2}.VSDebug|Win32.Build.0 = VSDebug|Win32 {301E1DCF-F551-40A4-9D0D-E07D48322C15}.Release|Win32.ActiveCfg = Release|Win32 {301E1DCF-F551-40A4-9D0D-E07D48322C15}.Release|Win32.Build.0 = Release|Win32 {301E1DCF-F551-40A4-9D0D-E07D48322C15}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {301E1DCF-F551-40A4-9D0D-E07D48322C15}.VSDebug|Win32.Build.0 = VSDebug|Win32 {546056DF-1F2C-4D7B-9368-0D0463FB9442}.Release|Win32.ActiveCfg = Release|Win32 {546056DF-1F2C-4D7B-9368-0D0463FB9442}.Release|Win32.Build.0 = Release|Win32 {546056DF-1F2C-4D7B-9368-0D0463FB9442}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {546056DF-1F2C-4D7B-9368-0D0463FB9442}.VSDebug|Win32.Build.0 = VSDebug|Win32 {808897C3-261A-4998-B768-1D94B39BD822}.Release|Win32.ActiveCfg = Release|Win32 {808897C3-261A-4998-B768-1D94B39BD822}.Release|Win32.Build.0 = Release|Win32 {808897C3-261A-4998-B768-1D94B39BD822}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {808897C3-261A-4998-B768-1D94B39BD822}.VSDebug|Win32.Build.0 = VSDebug|Win32 {A0204F26-F689-478E-9B17-133EA204578A}.Release|Win32.ActiveCfg = Release|Win32 {A0204F26-F689-478E-9B17-133EA204578A}.Release|Win32.Build.0 = Release|Win32 {A0204F26-F689-478E-9B17-133EA204578A}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {A0204F26-F689-478E-9B17-133EA204578A}.VSDebug|Win32.Build.0 = VSDebug|Win32 {497F83A7-47D7-43A7-BC60-58C1D35477C1}.Release|Win32.ActiveCfg = Release|Win32 {497F83A7-47D7-43A7-BC60-58C1D35477C1}.Release|Win32.Build.0 = Release|Win32 {497F83A7-47D7-43A7-BC60-58C1D35477C1}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {497F83A7-47D7-43A7-BC60-58C1D35477C1}.VSDebug|Win32.Build.0 = VSDebug|Win32 {BD7EB542-B085-4FF4-9BA8-0E041B564076}.Release|Win32.ActiveCfg = Release|Win32 {BD7EB542-B085-4FF4-9BA8-0E041B564076}.Release|Win32.Build.0 = Release|Win32 {BD7EB542-B085-4FF4-9BA8-0E041B564076}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {BD7EB542-B085-4FF4-9BA8-0E041B564076}.VSDebug|Win32.Build.0 = VSDebug|Win32 {FDEBC536-EE09-4CC9-8255-315A3AEC3371}.Release|Win32.ActiveCfg = Release|Win32 {FDEBC536-EE09-4CC9-8255-315A3AEC3371}.Release|Win32.Build.0 = Release|Win32 {FDEBC536-EE09-4CC9-8255-315A3AEC3371}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {FDEBC536-EE09-4CC9-8255-315A3AEC3371}.VSDebug|Win32.Build.0 = VSDebug|Win32 {05349DB9-A9BC-40C7-844E-FDB7E6CED809}.Release|Win32.ActiveCfg = Release|Win32 {05349DB9-A9BC-40C7-844E-FDB7E6CED809}.Release|Win32.Build.0 = Release|Win32 {05349DB9-A9BC-40C7-844E-FDB7E6CED809}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {05349DB9-A9BC-40C7-844E-FDB7E6CED809}.VSDebug|Win32.Build.0 = VSDebug|Win32 {029652D2-6E4D-4F98-85FE-1E9A5FD40655}.Release|Win32.ActiveCfg = Release|Win32 {029652D2-6E4D-4F98-85FE-1E9A5FD40655}.Release|Win32.Build.0 = Release|Win32 {029652D2-6E4D-4F98-85FE-1E9A5FD40655}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {029652D2-6E4D-4F98-85FE-1E9A5FD40655}.VSDebug|Win32.Build.0 = VSDebug|Win32 {A6353B4A-3ECA-47E5-920E-FABF5E16E5D9}.Release|Win32.ActiveCfg = Release|Win32 {A6353B4A-3ECA-47E5-920E-FABF5E16E5D9}.Release|Win32.Build.0 = Release|Win32 {A6353B4A-3ECA-47E5-920E-FABF5E16E5D9}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {A6353B4A-3ECA-47E5-920E-FABF5E16E5D9}.VSDebug|Win32.Build.0 = VSDebug|Win32 {E619F320-5922-4CE7-96B5-6F467B96FCA9}.Release|Win32.ActiveCfg = Release|Win32 {E619F320-5922-4CE7-96B5-6F467B96FCA9}.Release|Win32.Build.0 = Release|Win32 {E619F320-5922-4CE7-96B5-6F467B96FCA9}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {E619F320-5922-4CE7-96B5-6F467B96FCA9}.VSDebug|Win32.Build.0 = VSDebug|Win32 {E13FDA80-528E-4E07-BF9D-22C32DAC4EF6}.Release|Win32.ActiveCfg = Release|Win32 {E13FDA80-528E-4E07-BF9D-22C32DAC4EF6}.Release|Win32.Build.0 = Release|Win32 {E13FDA80-528E-4E07-BF9D-22C32DAC4EF6}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {E13FDA80-528E-4E07-BF9D-22C32DAC4EF6}.VSDebug|Win32.Build.0 = VSDebug|Win32 {F423DB05-48C6-4CCA-A624-52E022D1C7DE}.Release|Win32.ActiveCfg = Release|Win32 {F423DB05-48C6-4CCA-A624-52E022D1C7DE}.Release|Win32.Build.0 = Release|Win32 {F423DB05-48C6-4CCA-A624-52E022D1C7DE}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {F423DB05-48C6-4CCA-A624-52E022D1C7DE}.VSDebug|Win32.Build.0 = VSDebug|Win32 {D2CF9901-13D4-4D6C-87C5-C8C35390AD17}.Release|Win32.ActiveCfg = Release|Win32 {D2CF9901-13D4-4D6C-87C5-C8C35390AD17}.Release|Win32.Build.0 = Release|Win32 {D2CF9901-13D4-4D6C-87C5-C8C35390AD17}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {D2CF9901-13D4-4D6C-87C5-C8C35390AD17}.VSDebug|Win32.Build.0 = VSDebug|Win32 {49561C06-C0D3-4782-BB53-724E7C6EC0C7}.Release|Win32.ActiveCfg = Release|Win32 {49561C06-C0D3-4782-BB53-724E7C6EC0C7}.Release|Win32.Build.0 = Release|Win32 {49561C06-C0D3-4782-BB53-724E7C6EC0C7}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {49561C06-C0D3-4782-BB53-724E7C6EC0C7}.VSDebug|Win32.Build.0 = VSDebug|Win32 {DACC43EE-AA77-4345-B18A-F2C60B300559}.Release|Win32.ActiveCfg = Release|Win32 {DACC43EE-AA77-4345-B18A-F2C60B300559}.Release|Win32.Build.0 = Release|Win32 {DACC43EE-AA77-4345-B18A-F2C60B300559}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {DACC43EE-AA77-4345-B18A-F2C60B300559}.VSDebug|Win32.Build.0 = VSDebug|Win32 {3774E757-22D9-4046-A2E0-0DF89ECB447F}.Release|Win32.ActiveCfg = Release|Win32 {3774E757-22D9-4046-A2E0-0DF89ECB447F}.Release|Win32.Build.0 = Release|Win32 {3774E757-22D9-4046-A2E0-0DF89ECB447F}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {3774E757-22D9-4046-A2E0-0DF89ECB447F}.VSDebug|Win32.Build.0 = VSDebug|Win32 {B7EE2B73-58EA-48CB-97B5-2F49EE1C6C23}.Release|Win32.ActiveCfg = Release|Win32 {B7EE2B73-58EA-48CB-97B5-2F49EE1C6C23}.Release|Win32.Build.0 = Release|Win32 {B7EE2B73-58EA-48CB-97B5-2F49EE1C6C23}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {B7EE2B73-58EA-48CB-97B5-2F49EE1C6C23}.VSDebug|Win32.Build.0 = VSDebug|Win32 {98CA92D4-AF28-40CE-A177-29BFA4B75677}.Release|Win32.ActiveCfg = Release|Win32 {98CA92D4-AF28-40CE-A177-29BFA4B75677}.Release|Win32.Build.0 = Release|Win32 {98CA92D4-AF28-40CE-A177-29BFA4B75677}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {98CA92D4-AF28-40CE-A177-29BFA4B75677}.VSDebug|Win32.Build.0 = VSDebug|Win32 {E732C23E-8642-4EFA-A580-1E9D8E6DE090}.Release|Win32.ActiveCfg = Release|Win32 {E732C23E-8642-4EFA-A580-1E9D8E6DE090}.Release|Win32.Build.0 = Release|Win32 {E732C23E-8642-4EFA-A580-1E9D8E6DE090}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {E732C23E-8642-4EFA-A580-1E9D8E6DE090}.VSDebug|Win32.Build.0 = VSDebug|Win32 {D69E0261-FD4E-4E82-BC60-67E67C9DD8F7}.Release|Win32.ActiveCfg = Release|Win32 {D69E0261-FD4E-4E82-BC60-67E67C9DD8F7}.Release|Win32.Build.0 = Release|Win32 {D69E0261-FD4E-4E82-BC60-67E67C9DD8F7}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {D69E0261-FD4E-4E82-BC60-67E67C9DD8F7}.VSDebug|Win32.Build.0 = VSDebug|Win32 {13978574-75C7-4EFC-9440-F9FBC38DD907}.Release|Win32.ActiveCfg = Release|Win32 {13978574-75C7-4EFC-9440-F9FBC38DD907}.Release|Win32.Build.0 = Release|Win32 {13978574-75C7-4EFC-9440-F9FBC38DD907}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {13978574-75C7-4EFC-9440-F9FBC38DD907}.VSDebug|Win32.Build.0 = VSDebug|Win32 {C491D395-BCF3-44BD-8C71-30BB83576FE0}.Release|Win32.ActiveCfg = Release|Win32 {C491D395-BCF3-44BD-8C71-30BB83576FE0}.Release|Win32.Build.0 = Release|Win32 {C491D395-BCF3-44BD-8C71-30BB83576FE0}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {C491D395-BCF3-44BD-8C71-30BB83576FE0}.VSDebug|Win32.Build.0 = VSDebug|Win32 {84AB4ABE-3081-443F-9AF5-99B79F08D08F}.Release|Win32.ActiveCfg = Release|Win32 {84AB4ABE-3081-443F-9AF5-99B79F08D08F}.Release|Win32.Build.0 = Release|Win32 {84AB4ABE-3081-443F-9AF5-99B79F08D08F}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {84AB4ABE-3081-443F-9AF5-99B79F08D08F}.VSDebug|Win32.Build.0 = VSDebug|Win32 {670BD730-824A-4304-81D7-DF5B5AE5340C}.Release|Win32.ActiveCfg = Release|Win32 {670BD730-824A-4304-81D7-DF5B5AE5340C}.Release|Win32.Build.0 = Release|Win32 {670BD730-824A-4304-81D7-DF5B5AE5340C}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {670BD730-824A-4304-81D7-DF5B5AE5340C}.VSDebug|Win32.Build.0 = VSDebug|Win32 {ABB04F9A-768A-4F12-9751-65A0E2F81229}.Release|Win32.ActiveCfg = Release|Win32 {ABB04F9A-768A-4F12-9751-65A0E2F81229}.Release|Win32.Build.0 = Release|Win32 {ABB04F9A-768A-4F12-9751-65A0E2F81229}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {ABB04F9A-768A-4F12-9751-65A0E2F81229}.VSDebug|Win32.Build.0 = VSDebug|Win32 {429A8D84-27BE-4931-8490-9F5E8FD68A2C}.Release|Win32.ActiveCfg = Release|Win32 {429A8D84-27BE-4931-8490-9F5E8FD68A2C}.Release|Win32.Build.0 = Release|Win32 {429A8D84-27BE-4931-8490-9F5E8FD68A2C}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {429A8D84-27BE-4931-8490-9F5E8FD68A2C}.VSDebug|Win32.Build.0 = VSDebug|Win32 {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4}.Release|Win32.ActiveCfg = Release|Win32 {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4}.Release|Win32.Build.0 = Release|Win32 {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {9BA406EC-23C0-4A43-A97B-ACDA0D131DB4}.VSDebug|Win32.Build.0 = VSDebug|Win32 {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2}.Release|Win32.ActiveCfg = Release|Win32 {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2}.Release|Win32.Build.0 = Release|Win32 {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {ABF4D2D6-8EFB-4A8E-815C-C831C9CA3EF2}.VSDebug|Win32.Build.0 = VSDebug|Win32 {5C1A1AC0-BA53-4E6C-8D81-0455443FED73}.Release|Win32.ActiveCfg = Release|Win32 {5C1A1AC0-BA53-4E6C-8D81-0455443FED73}.Release|Win32.Build.0 = Release|Win32 {5C1A1AC0-BA53-4E6C-8D81-0455443FED73}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {5C1A1AC0-BA53-4E6C-8D81-0455443FED73}.VSDebug|Win32.Build.0 = VSDebug|Win32 {D9CF8B05-7395-4338-BAC5-124E72335F21}.Release|Win32.ActiveCfg = Release|Win32 {D9CF8B05-7395-4338-BAC5-124E72335F21}.Release|Win32.Build.0 = Release|Win32 {D9CF8B05-7395-4338-BAC5-124E72335F21}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {D9CF8B05-7395-4338-BAC5-124E72335F21}.VSDebug|Win32.Build.0 = VSDebug|Win32 {15FA188C-ED14-4CE9-B61C-02EBA70A76C9}.Release|Win32.ActiveCfg = Release|Win32 {15FA188C-ED14-4CE9-B61C-02EBA70A76C9}.Release|Win32.Build.0 = Release|Win32 {15FA188C-ED14-4CE9-B61C-02EBA70A76C9}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {15FA188C-ED14-4CE9-B61C-02EBA70A76C9}.VSDebug|Win32.Build.0 = VSDebug|Win32 {75064AFE-F331-40B7-AB9C-F0040C889610}.Release|Win32.ActiveCfg = Release|Win32 {75064AFE-F331-40B7-AB9C-F0040C889610}.Release|Win32.Build.0 = Release|Win32 {75064AFE-F331-40B7-AB9C-F0040C889610}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {75064AFE-F331-40B7-AB9C-F0040C889610}.VSDebug|Win32.Build.0 = VSDebug|Win32 {F480F61D-4950-4603-9F6F-F95ECC64A31C}.Release|Win32.ActiveCfg = Release|Win32 {F480F61D-4950-4603-9F6F-F95ECC64A31C}.Release|Win32.Build.0 = Release|Win32 {F480F61D-4950-4603-9F6F-F95ECC64A31C}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {F480F61D-4950-4603-9F6F-F95ECC64A31C}.VSDebug|Win32.Build.0 = VSDebug|Win32 {8AA44886-07A3-430D-90E0-F622A051A571}.Release|Win32.ActiveCfg = Release|Win32 {8AA44886-07A3-430D-90E0-F622A051A571}.Release|Win32.Build.0 = Release|Win32 {8AA44886-07A3-430D-90E0-F622A051A571}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {8AA44886-07A3-430D-90E0-F622A051A571}.VSDebug|Win32.Build.0 = VSDebug|Win32 {66956CAB-8580-4D29-AFA4-49E9934D9E42}.Release|Win32.ActiveCfg = Release|Win32 {66956CAB-8580-4D29-AFA4-49E9934D9E42}.Release|Win32.Build.0 = Release|Win32 {66956CAB-8580-4D29-AFA4-49E9934D9E42}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {66956CAB-8580-4D29-AFA4-49E9934D9E42}.VSDebug|Win32.Build.0 = VSDebug|Win32 {D5AE14B4-69BA-45F5-96D6-BB5B98078B63}.Release|Win32.ActiveCfg = Release|Win32 {D5AE14B4-69BA-45F5-96D6-BB5B98078B63}.Release|Win32.Build.0 = Release|Win32 {D5AE14B4-69BA-45F5-96D6-BB5B98078B63}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {D5AE14B4-69BA-45F5-96D6-BB5B98078B63}.VSDebug|Win32.Build.0 = VSDebug|Win32 {67C5C431-90F7-47E0-996D-C68A91C60E88}.Release|Win32.ActiveCfg = Release|Win32 {67C5C431-90F7-47E0-996D-C68A91C60E88}.Release|Win32.Build.0 = Release|Win32 {67C5C431-90F7-47E0-996D-C68A91C60E88}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {67C5C431-90F7-47E0-996D-C68A91C60E88}.VSDebug|Win32.Build.0 = VSDebug|Win32 {D0E2ACB5-0A20-4205-AD07-C16B601ACE99}.Release|Win32.ActiveCfg = Release|Win32 {D0E2ACB5-0A20-4205-AD07-C16B601ACE99}.Release|Win32.Build.0 = Release|Win32 {D0E2ACB5-0A20-4205-AD07-C16B601ACE99}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {D0E2ACB5-0A20-4205-AD07-C16B601ACE99}.VSDebug|Win32.Build.0 = VSDebug|Win32 {F5128A58-D76A-4625-958F-5150D0CAC45C}.Release|Win32.ActiveCfg = Release|Win32 {F5128A58-D76A-4625-958F-5150D0CAC45C}.Release|Win32.Build.0 = Release|Win32 {F5128A58-D76A-4625-958F-5150D0CAC45C}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {F5128A58-D76A-4625-958F-5150D0CAC45C}.VSDebug|Win32.Build.0 = VSDebug|Win32 {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA}.Release|Win32.ActiveCfg = Release|Win32 {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA}.Release|Win32.Build.0 = Release|Win32 {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {3EAA2B38-404A-4EE2-B675-8E39E41CEBAA}.VSDebug|Win32.Build.0 = VSDebug|Win32 {4B0DA96F-94B6-4904-9701-3A9371E8914E}.Release|Win32.ActiveCfg = Release|Win32 {4B0DA96F-94B6-4904-9701-3A9371E8914E}.Release|Win32.Build.0 = Release|Win32 {4B0DA96F-94B6-4904-9701-3A9371E8914E}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {4B0DA96F-94B6-4904-9701-3A9371E8914E}.VSDebug|Win32.Build.0 = VSDebug|Win32 {6AF53B72-2046-4B3A-96B3-F72C87E80980}.Release|Win32.ActiveCfg = Release|Win32 {6AF53B72-2046-4B3A-96B3-F72C87E80980}.Release|Win32.Build.0 = Release|Win32 {6AF53B72-2046-4B3A-96B3-F72C87E80980}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {6AF53B72-2046-4B3A-96B3-F72C87E80980}.VSDebug|Win32.Build.0 = VSDebug|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal libfsapfs-20190210/msvscpp/libfcache/0000775000175000017500000000000013430101371021407 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libfcache/libfcache.vcproj0000664000175000017500000001216513426641672024563 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_container_reaper/0000775000175000017500000000000013430101371025430 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_container_reaper/fsapfs_test_container_reaper.vcproj0000664000175000017500000001423513426641672034625 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_object_map_btree/0000775000175000017500000000000013430101371025374 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_object_map_btree/fsapfs_test_object_map_btree.vcproj0000664000175000017500000001423513426641672034535 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfsinfo/0000775000175000017500000000000013430101371021645 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfsinfo/fsapfsinfo.vcproj0000664000175000017500000001517313426641672025261 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_support/0000775000175000017500000000000013430101371023624 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_support/fsapfs_test_support.vcproj0000664000175000017500000001504413426641672031214 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_io_handle/0000775000175000017500000000000013430101371024032 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_io_handle/fsapfs_test_io_handle.vcproj0000664000175000017500000001361313426641672031630 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libfguid/0000775000175000017500000000000013430101371021274 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libfguid/libfguid.vcproj0000664000175000017500000001102713426641672024331 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libclocale/0000775000175000017500000000000013430101371021600 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libclocale/libclocale.vcproj0000664000175000017500000001125213426641672025141 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_checkpoint_map/0000775000175000017500000000000013430101371025074 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_checkpoint_map/fsapfs_test_checkpoint_map.vcproj0000664000175000017500000001422713426641672033736 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_object_map/0000775000175000017500000000000013430101371024213 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_object_map/fsapfs_test_object_map.vcproj0000664000175000017500000001421313426641672032167 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/Makefile.am0000664000175000017500000000616213426641672021572 0ustar00lordyestalordyesta00000000000000MSVSCPP_FILES = \ fsapfs_test_btree_entry/fsapfs_test_btree_entry.vcproj \ fsapfs_test_btree_footer/fsapfs_test_btree_footer.vcproj \ fsapfs_test_btree_node/fsapfs_test_btree_node.vcproj \ fsapfs_test_btree_node_header/fsapfs_test_btree_node_header.vcproj \ fsapfs_test_buffer_data_handle/fsapfs_test_buffer_data_handle.vcproj \ fsapfs_test_checkpoint_map/fsapfs_test_checkpoint_map.vcproj \ fsapfs_test_checkpoint_map_entry/fsapfs_test_checkpoint_map_entry.vcproj \ fsapfs_test_checksum/fsapfs_test_checksum.vcproj \ fsapfs_test_chunk_information_block/fsapfs_test_chunk_information_block.vcproj \ fsapfs_test_compressed_data_handle/fsapfs_test_compressed_data_handle.vcproj \ fsapfs_test_compression/fsapfs_test_compression.vcproj \ fsapfs_test_container/fsapfs_test_container.vcproj \ fsapfs_test_container_data_handle/fsapfs_test_container_data_handle.vcproj \ fsapfs_test_container_key_bag/fsapfs_test_container_key_bag.vcproj \ fsapfs_test_container_reaper/fsapfs_test_container_reaper.vcproj \ fsapfs_test_container_superblock/fsapfs_test_container_superblock.vcproj \ fsapfs_test_data_block/fsapfs_test_data_block.vcproj \ fsapfs_test_directory_record/fsapfs_test_directory_record.vcproj \ fsapfs_test_encryption_context/fsapfs_test_encryption_context.vcproj \ fsapfs_test_error/fsapfs_test_error.vcproj \ fsapfs_test_file_extent/fsapfs_test_file_extent.vcproj \ fsapfs_test_file_system_btree/fsapfs_test_file_system_btree.vcproj \ fsapfs_test_inode/fsapfs_test_inode.vcproj \ fsapfs_test_io_handle/fsapfs_test_io_handle.vcproj \ fsapfs_test_key_bag_entry/fsapfs_test_key_bag_entry.vcproj \ fsapfs_test_key_bag_header/fsapfs_test_key_bag_header.vcproj \ fsapfs_test_key_encrypted_key/fsapfs_test_key_encrypted_key.vcproj \ fsapfs_test_name/fsapfs_test_name.vcproj \ fsapfs_test_name_hash/fsapfs_test_name_hash.vcproj \ fsapfs_test_notify/fsapfs_test_notify.vcproj \ fsapfs_test_object/fsapfs_test_object.vcproj \ fsapfs_test_object_map/fsapfs_test_object_map.vcproj \ fsapfs_test_object_map_btree/fsapfs_test_object_map_btree.vcproj \ fsapfs_test_object_map_descriptor/fsapfs_test_object_map_descriptor.vcproj \ fsapfs_test_space_manager/fsapfs_test_space_manager.vcproj \ fsapfs_test_support/fsapfs_test_support.vcproj \ fsapfs_test_volume/fsapfs_test_volume.vcproj \ fsapfs_test_volume_key_bag/fsapfs_test_volume_key_bag.vcproj \ fsapfs_test_volume_superblock/fsapfs_test_volume_superblock.vcproj \ fsapfsinfo/fsapfsinfo.vcproj \ fsapfsmount/fsapfsmount.vcproj \ libbfio/libbfio.vcproj \ libcaes/libcaes.vcproj \ libcdata/libcdata.vcproj \ libcerror/libcerror.vcproj \ libcfile/libcfile.vcproj \ libclocale/libclocale.vcproj \ libcnotify/libcnotify.vcproj \ libcpath/libcpath.vcproj \ libcsplit/libcsplit.vcproj \ libcthreads/libcthreads.vcproj \ libfcache/libfcache.vcproj \ libfdata/libfdata.vcproj \ libfdatetime/libfdatetime.vcproj \ libfguid/libfguid.vcproj \ libfsapfs/libfsapfs.vcproj \ libhmac/libhmac.vcproj \ libuna/libuna.vcproj \ pyfsapfs/pyfsapfs.vcproj \ zlib/zlib.vcproj \ libfsapfs.sln EXTRA_DIST = \ $(MSVSCPP_FILES) MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile libfsapfs-20190210/msvscpp/fsapfs_test_data_block/0000775000175000017500000000000013430101371024173 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_data_block/fsapfs_test_data_block.vcproj0000664000175000017500000001361613426641672032135 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libbfio/0000775000175000017500000000000013430101371021115 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libbfio/libbfio.vcproj0000664000175000017500000001621213426641672023774 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_container_key_bag/0000775000175000017500000000000013430101371025553 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_container_key_bag/fsapfs_test_container_key_bag.vcproj0000664000175000017500000001424013426641672035067 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcaes/0000775000175000017500000000000013430101371021111 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcaes/libcaes.vcproj0000664000175000017500000001125113426641672023762 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_directory_record/0000775000175000017500000000000013430101371025452 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_directory_record/fsapfs_test_directory_record.vcproj0000664000175000017500000001364013426641672034670 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_btree_footer/0000775000175000017500000000000013430101371024567 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_btree_footer/fsapfs_test_btree_footer.vcproj0000664000175000017500000001362413426641672033124 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_checksum/0000775000175000017500000000000013430101371023712 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_checksum/fsapfs_test_checksum.vcproj0000664000175000017500000001346613426641672031376 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_volume_key_bag/0000775000175000017500000000000013430101371025100 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_volume_key_bag/fsapfs_test_volume_key_bag.vcproj0000664000175000017500000001422713426641672033746 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_name/0000775000175000017500000000000013430101371023030 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_name/fsapfs_test_name.vcproj0000664000175000017500000001424013426641672027621 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libfdatetime/0000775000175000017500000000000013430101371022140 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libfdatetime/libfdatetime.vcproj0000664000175000017500000001366513426641672026053 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcfile/0000775000175000017500000000000013430101371021260 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcfile/libcfile.vcproj0000664000175000017500000001247113426641672024305 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_btree_node/0000775000175000017500000000000013430101371024216 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_btree_node/fsapfs_test_btree_node.vcproj0000664000175000017500000001361613426641672032203 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_container/0000775000175000017500000000000013430101371024072 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_container/fsapfs_test_container.vcproj0000664000175000017500000001531613426641672031732 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcthreads/0000775000175000017500000000000013430101371021773 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcthreads/libcthreads.vcproj0000664000175000017500000001404113426641672025526 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcpath/0000775000175000017500000000000013430101371021275 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcpath/libcpath.vcproj0000664000175000017500000001207713426641672024341 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_error/0000775000175000017500000000000013430101371023241 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_error/fsapfs_test_error.vcproj0000664000175000017500000001320613426641672030244 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_space_manager/0000775000175000017500000000000013430101371024675 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_space_manager/fsapfs_test_space_manager.vcproj0000664000175000017500000001422413426641672033335 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libhmac/0000775000175000017500000000000013430101371021106 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libhmac/libhmac.vcproj0000664000175000017500000001230013426641672023750 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_container_superblock/0000775000175000017500000000000013430101371026323 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_container_superblock/fsapfs_test_container_superblock.vcproj0000664000175000017500000001425113426641672036411 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_file_system_btree/0000775000175000017500000000000013430101371025614 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_file_system_btree/fsapfs_test_file_system_btree.vcproj0000664000175000017500000001424013426641672035171 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_compressed_data_handle/0000775000175000017500000000000013430101371026560 5ustar00lordyestalordyesta00000000000000fsapfs_test_compressed_data_handle.vcproj0000664000175000017500000001400613426641672037022 0ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_compressed_data_handle libfsapfs-20190210/msvscpp/fsapfs_test_chunk_information_block/0000775000175000017500000000000013430101371026777 5ustar00lordyestalordyesta00000000000000fsapfs_test_chunk_information_block.vcproj0000664000175000017500000001426213426641672037464 0ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_chunk_information_block libfsapfs-20190210/msvscpp/libuna/0000775000175000017500000000000013430101371020761 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libuna/libuna.vcproj0000664000175000017500000002722113426641672023506 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_object_map_descriptor/0000775000175000017500000000000013430101371026451 5ustar00lordyestalordyesta00000000000000fsapfs_test_object_map_descriptor.vcproj0000664000175000017500000001365713426641672036617 0ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_object_map_descriptor libfsapfs-20190210/msvscpp/fsapfs_test_key_bag_header/0000775000175000017500000000000013430101371025021 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_key_bag_header/fsapfs_test_key_bag_header.vcproj0000664000175000017500000001363213426641672033607 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_container_data_handle/0000775000175000017500000000000013430101371026376 5ustar00lordyestalordyesta00000000000000fsapfs_test_container_data_handle.vcproj0000664000175000017500000001365713426641672036471 0ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_container_data_handle libfsapfs-20190210/msvscpp/Makefile.in0000664000175000017500000006420313430101254021561 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = msvscpp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ MSVSCPP_FILES = \ fsapfs_test_btree_entry/fsapfs_test_btree_entry.vcproj \ fsapfs_test_btree_footer/fsapfs_test_btree_footer.vcproj \ fsapfs_test_btree_node/fsapfs_test_btree_node.vcproj \ fsapfs_test_btree_node_header/fsapfs_test_btree_node_header.vcproj \ fsapfs_test_buffer_data_handle/fsapfs_test_buffer_data_handle.vcproj \ fsapfs_test_checkpoint_map/fsapfs_test_checkpoint_map.vcproj \ fsapfs_test_checkpoint_map_entry/fsapfs_test_checkpoint_map_entry.vcproj \ fsapfs_test_checksum/fsapfs_test_checksum.vcproj \ fsapfs_test_chunk_information_block/fsapfs_test_chunk_information_block.vcproj \ fsapfs_test_compressed_data_handle/fsapfs_test_compressed_data_handle.vcproj \ fsapfs_test_compression/fsapfs_test_compression.vcproj \ fsapfs_test_container/fsapfs_test_container.vcproj \ fsapfs_test_container_data_handle/fsapfs_test_container_data_handle.vcproj \ fsapfs_test_container_key_bag/fsapfs_test_container_key_bag.vcproj \ fsapfs_test_container_reaper/fsapfs_test_container_reaper.vcproj \ fsapfs_test_container_superblock/fsapfs_test_container_superblock.vcproj \ fsapfs_test_data_block/fsapfs_test_data_block.vcproj \ fsapfs_test_directory_record/fsapfs_test_directory_record.vcproj \ fsapfs_test_encryption_context/fsapfs_test_encryption_context.vcproj \ fsapfs_test_error/fsapfs_test_error.vcproj \ fsapfs_test_file_extent/fsapfs_test_file_extent.vcproj \ fsapfs_test_file_system_btree/fsapfs_test_file_system_btree.vcproj \ fsapfs_test_inode/fsapfs_test_inode.vcproj \ fsapfs_test_io_handle/fsapfs_test_io_handle.vcproj \ fsapfs_test_key_bag_entry/fsapfs_test_key_bag_entry.vcproj \ fsapfs_test_key_bag_header/fsapfs_test_key_bag_header.vcproj \ fsapfs_test_key_encrypted_key/fsapfs_test_key_encrypted_key.vcproj \ fsapfs_test_name/fsapfs_test_name.vcproj \ fsapfs_test_name_hash/fsapfs_test_name_hash.vcproj \ fsapfs_test_notify/fsapfs_test_notify.vcproj \ fsapfs_test_object/fsapfs_test_object.vcproj \ fsapfs_test_object_map/fsapfs_test_object_map.vcproj \ fsapfs_test_object_map_btree/fsapfs_test_object_map_btree.vcproj \ fsapfs_test_object_map_descriptor/fsapfs_test_object_map_descriptor.vcproj \ fsapfs_test_space_manager/fsapfs_test_space_manager.vcproj \ fsapfs_test_support/fsapfs_test_support.vcproj \ fsapfs_test_volume/fsapfs_test_volume.vcproj \ fsapfs_test_volume_key_bag/fsapfs_test_volume_key_bag.vcproj \ fsapfs_test_volume_superblock/fsapfs_test_volume_superblock.vcproj \ fsapfsinfo/fsapfsinfo.vcproj \ fsapfsmount/fsapfsmount.vcproj \ libbfio/libbfio.vcproj \ libcaes/libcaes.vcproj \ libcdata/libcdata.vcproj \ libcerror/libcerror.vcproj \ libcfile/libcfile.vcproj \ libclocale/libclocale.vcproj \ libcnotify/libcnotify.vcproj \ libcpath/libcpath.vcproj \ libcsplit/libcsplit.vcproj \ libcthreads/libcthreads.vcproj \ libfcache/libfcache.vcproj \ libfdata/libfdata.vcproj \ libfdatetime/libfdatetime.vcproj \ libfguid/libfguid.vcproj \ libfsapfs/libfsapfs.vcproj \ libhmac/libhmac.vcproj \ libuna/libuna.vcproj \ pyfsapfs/pyfsapfs.vcproj \ zlib/zlib.vcproj \ libfsapfs.sln EXTRA_DIST = \ $(MSVSCPP_FILES) MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu msvscpp/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu msvscpp/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/msvscpp/fsapfs_test_notify/0000775000175000017500000000000013430101371023420 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_notify/fsapfs_test_notify.vcproj0000664000175000017500000001333613426641672030606 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_volume_superblock/0000775000175000017500000000000013430101371025650 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_volume_superblock/fsapfs_test_volume_superblock.vcproj0000664000175000017500000001424013426641672035261 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcerror/0000775000175000017500000000000013430101371021472 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcerror/libcerror.vcproj0000664000175000017500000001061013426641672024722 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_compression/0000775000175000017500000000000013430101371024451 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_compression/fsapfs_test_compression.vcproj0000664000175000017500000001362113426641672032665 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_inode/0000775000175000017500000000000013430101371023206 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_inode/fsapfs_test_inode.vcproj0000664000175000017500000001357713426641672030171 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_key_encrypted_key/0000775000175000017500000000000013430101371025625 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_key_encrypted_key/fsapfs_test_key_encrypted_key.vcproj0000664000175000017500000001364313426641672035221 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_checkpoint_map_entry/0000775000175000017500000000000013430101371026315 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_checkpoint_map_entry/fsapfs_test_checkpoint_map_entry.vcproj0000664000175000017500000001365413426641672036403 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcnotify/0000775000175000017500000000000013430101371021651 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcnotify/libcnotify.vcproj0000664000175000017500000001123413426641672025263 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_volume/0000775000175000017500000000000013430101371023417 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_volume/fsapfs_test_volume.vcproj0000664000175000017500000001530513426641672030602 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_btree_entry/0000775000175000017500000000000013430101371024432 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_btree_entry/fsapfs_test_btree_entry.vcproj0000664000175000017500000001362113426641672032627 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libfsapfs/0000775000175000017500000000000013430101371021460 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libfsapfs/libfsapfs.vcproj0000664000175000017500000004271013426641672024704 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfsmount/0000775000175000017500000000000013430101371022054 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfsmount/fsapfsmount.vcproj0000664000175000017500000001665413426641672025704 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/pyfsapfs/0000775000175000017500000000000013430101371021342 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/pyfsapfs/pyfsapfs.vcproj0000664000175000017500000001671613426641672024457 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_key_bag_entry/0000775000175000017500000000000013430101371024732 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_key_bag_entry/fsapfs_test_key_bag_entry.vcproj0000664000175000017500000001362713426641672033435 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libfdata/0000775000175000017500000000000013430101371021255 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libfdata/libfdata.vcproj0000664000175000017500000001714213426641672024277 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcdata/0000775000175000017500000000000013430101371021252 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcdata/libcdata.vcproj0000664000175000017500000001403413426641672024266 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/zlib/0000775000175000017500000000000013430101371020447 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/zlib/zlib.vcproj0000664000175000017500000001366413426641672022670 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/libcsplit/0000775000175000017500000000000013430101371021474 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/libcsplit/libcsplit.vcproj0000664000175000017500000001215113426641672024730 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_buffer_data_handle/0000775000175000017500000000000013430101371025665 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_buffer_data_handle/fsapfs_test_buffer_data_handle.vcproj0000664000175000017500000001364613426641672035324 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_encryption_context/0000775000175000017500000000000013430101371026046 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_encryption_context/fsapfs_test_encryption_context.vcproj0000664000175000017500000001364613426641672035666 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/msvscpp/fsapfs_test_object/0000775000175000017500000000000013430101371023356 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/msvscpp/fsapfs_test_object/fsapfs_test_object.vcproj0000664000175000017500000001417713426641672030506 0ustar00lordyestalordyesta00000000000000 libfsapfs-20190210/libhmac/0000775000175000017500000000000013430101370017412 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libhmac/libhmac_md5.h0000664000175000017500000001002213430101230021715 0ustar00lordyestalordyesta00000000000000/* * MD5 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_MD5_H ) #define _LIBHMAC_MD5_H #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #endif #include "libhmac_extern.h" #include "libhmac_libcerror.h" #include "libhmac_types.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) #define LIBHMAC_HAVE_MD5_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) && defined( MD5_DIGEST_LENGTH ) #define LIBHMAC_HAVE_MD5_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_MD5 ) #define LIBHMAC_HAVE_MD5_SUPPORT #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) */ #if !defined( LIBHMAC_HAVE_MD5_SUPPORT ) #define LIBHMAC_MD5_BLOCK_SIZE 64 #endif typedef struct libhmac_internal_md5_context libhmac_internal_md5_context_t; struct libhmac_internal_md5_context { #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) /* The crypto provider handle */ HCRYPTPROV crypt_provider; /* The crypto hash handle */ HCRYPTHASH hash; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) && defined( MD5_DIGEST_LENGTH ) /* The MD5 context */ MD5_CTX md5_context; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_MD5 ) /* The EVP message digest context */ #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX internal_evp_md_context; #endif EVP_MD_CTX *evp_md_context; #else /* The number of bytes hashed */ uint64_t hash_count; /* The hash values */ uint32_t hash_values[ 4 ]; /* The block offset */ size_t block_offset; /* The (data) block */ uint8_t block[ 128 ]; #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) */ }; #if !defined( LIBHMAC_HAVE_MD5_SUPPORT ) ssize_t libhmac_md5_transform( libhmac_internal_md5_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); #endif /* !defined( LIBHMAC_HAVE_MD5_SUPPORT ) */ LIBHMAC_EXTERN \ int libhmac_md5_initialize( libhmac_md5_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_md5_free( libhmac_md5_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_md5_update( libhmac_md5_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_md5_finalize( libhmac_md5_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_md5_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_md5_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_MD5_H ) */ libfsapfs-20190210/libhmac/libhmac_sha1.c0000664000175000017500000017222513430101230022075 0ustar00lordyestalordyesta00000000000000/* * SHA1 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #include #endif #include "libhmac_byte_stream.h" #include "libhmac_definitions.h" #include "libhmac_libcerror.h" #include "libhmac_sha1.h" #if !defined( LIBHMAC_HAVE_SHA1_SUPPORT ) /* RFC 3174/FIPS 180-1 based SHA-1 functions */ /* TODO decription what these values are based on */ uint32_t libhmac_sha1_fixed_constants[ 5 ] = { 0x67452301UL, 0xefcdab89UL, 0x98badcfeUL, 0x10325476UL, 0xc3d2e1f0UL }; #define libhmac_sha1_transform_extend_32bit_value( values_32bit, value_32bit_index ) \ values_32bit[ value_32bit_index ] = values_32bit[ value_32bit_index - 3 ] \ ^ values_32bit[ value_32bit_index - 8 ] \ ^ values_32bit[ value_32bit_index - 14 ] \ ^ values_32bit[ value_32bit_index - 16 ]; \ values_32bit[ value_32bit_index ] = byte_stream_bit_rotate_left_32bit( \ values_32bit[ value_32bit_index ], \ 1 ); #define libhmac_sha1_transform_unfolded_extend_32bit_values( values_32bit ) \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 16 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 17 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 18 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 19 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 20 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 21 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 22 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 23 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 24 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 25 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 26 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 27 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 28 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 29 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 30 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 31 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 32 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 33 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 34 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 35 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 36 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 37 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 38 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 39 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 40 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 41 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 42 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 43 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 44 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 45 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 46 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 47 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 48 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 49 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 50 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 51 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 52 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 53 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 54 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 55 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 56 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 57 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 58 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 59 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 60 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 61 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 62 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 63 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 64 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 65 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 66 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 67 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 68 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 69 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 70 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 71 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 72 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 73 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 74 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 75 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 76 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 77 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 78 ); \ libhmac_sha1_transform_extend_32bit_value( values_32bit, 79 ); #define libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, hash_value_index4 ) \ hash_values[ hash_value_index4 ] += ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index2 ] ) \ | ( ~( hash_values[ hash_value_index1 ] ) & hash_values[ hash_value_index3 ] ); \ hash_values[ hash_value_index4 ] += 0x5a827999UL; \ hash_values[ hash_value_index4 ] += byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ 5 ); \ hash_values[ hash_value_index4 ] += values_32bit[ value_32bit_index ]; \ \ hash_values[ hash_value_index1 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index1 ], \ 30 ); #define libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, hash_value_index4 ) \ hash_values[ hash_value_index4 ] += hash_values[ hash_value_index1 ] \ ^ hash_values[ hash_value_index2 ] \ ^ hash_values[ hash_value_index3 ]; \ hash_values[ hash_value_index4 ] += 0x6ed9eba1UL; \ hash_values[ hash_value_index4 ] += byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ 5 ); \ hash_values[ hash_value_index4 ] += values_32bit[ value_32bit_index ]; \ \ hash_values[ hash_value_index1 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index1 ], \ 30 ); #define libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, hash_value_index4 ) \ hash_values[ hash_value_index4 ] += ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index2 ] ) \ | ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index3 ] ) \ | ( hash_values[ hash_value_index2 ] & hash_values[ hash_value_index3 ] ); \ hash_values[ hash_value_index4 ] += 0x8f1bbcdcUL; \ hash_values[ hash_value_index4 ] += byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ 5 ); \ hash_values[ hash_value_index4 ] += values_32bit[ value_32bit_index ]; \ \ hash_values[ hash_value_index1 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index1 ], \ 30 ); #define libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, hash_value_index4 ) \ hash_values[ hash_value_index4 ] += hash_values[ hash_value_index1 ] \ ^ hash_values[ hash_value_index2 ] \ ^ hash_values[ hash_value_index3 ]; \ hash_values[ hash_value_index4 ] += 0xca62c1d6UL; \ hash_values[ hash_value_index4 ] += byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ 5 ); \ hash_values[ hash_value_index4 ] += values_32bit[ value_32bit_index ]; \ \ hash_values[ hash_value_index1 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index1 ], \ 30 ); #define libhmac_sha1_transform_unfolded_calculate_hash_values( values_32bit, hash_values ) \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 0, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 1, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 2, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 3, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 4, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 5, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 6, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 7, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 8, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 9, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 10, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 11, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 12, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 13, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 14, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 15, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 16, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 17, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 18, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round1( values_32bit, 19, hash_values, 1, 2, 3, 4, 0 ); \ \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 20, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 21, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 22, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 23, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 24, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 25, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 26, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 27, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 28, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 29, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 30, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 31, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 32, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 33, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 34, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 35, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 36, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 37, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 38, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round2( values_32bit, 39, hash_values, 1, 2, 3, 4, 0 ); \ \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 40, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 41, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 42, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 43, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 44, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 45, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 46, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 47, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 48, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 49, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 50, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 51, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 52, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 53, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 54, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 55, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 56, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 57, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 58, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round3( values_32bit, 59, hash_values, 1, 2, 3, 4, 0 ); \ \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 60, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 61, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 62, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 63, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 64, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 65, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 66, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 67, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 68, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 69, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 70, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 71, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 72, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 73, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 74, hash_values, 1, 2, 3, 4, 0 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 75, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 76, hash_values, 4, 0, 1, 2, 3 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 77, hash_values, 3 ,4, 0, 1, 2 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 78, hash_values, 2, 3, 4, 0, 1 ); \ libhmac_sha1_transform_unfolded_calculate_hash_value_round4( values_32bit, 79, hash_values, 1, 2, 3, 4, 0 ); /* Calculates the SHA1 of 64 byte sized blocks of data in a buffer * Returns the number of bytes used if successful or -1 on error */ ssize_t libhmac_sha1_transform( libhmac_internal_sha1_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { uint32_t hash_values[ 5 ]; uint32_t values_32bit[ 80 ]; static char *function = "libhmac_sha1_transform"; size_t buffer_offset = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) uint32_t hash_value = 0; uint8_t hash_values_index = 0; uint8_t value_32bit_index = 0; #endif if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid internal context.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } while( size >= LIBHMAC_SHA1_BLOCK_SIZE ) { if( memory_copy( hash_values, internal_context->hash_values, sizeof( uint32_t ) * 5 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy hash values.", function ); goto on_error; } #if defined( LIBHMAC_UNFOLLED_LOOPS ) /* Break the block into 16 x 32-bit values */ libhmac_byte_stream_copy_to_16x_uint32_big_endian( &( buffer[ buffer_offset ] ), values_32bit ); buffer_offset += LIBHMAC_SHA1_BLOCK_SIZE; /* Extend to 80 x 32-bit values */ libhmac_sha1_transform_unfolded_extend_32bit_values( values_32bit ); /* Calculate the hash values for the 32-bit values */ libhmac_sha1_transform_unfolded_calculate_hash_values( values_32bit, hash_values ); /* Update the hash values in the context */ internal_context->hash_values[ 0 ] += hash_values[ 0 ]; internal_context->hash_values[ 1 ] += hash_values[ 1 ]; internal_context->hash_values[ 2 ] += hash_values[ 2 ]; internal_context->hash_values[ 3 ] += hash_values[ 3 ]; internal_context->hash_values[ 4 ] += hash_values[ 4 ]; #else /* Break the block into 16 x 32-bit values */ for( value_32bit_index = 0; value_32bit_index < 16; value_32bit_index++ ) { byte_stream_copy_to_uint32_big_endian( &( buffer[ buffer_offset ] ), values_32bit[ value_32bit_index ] ); buffer_offset += sizeof( uint32_t ); } /* Extend to 80 x 32-bit values */ for( value_32bit_index = 16; value_32bit_index < 80; value_32bit_index++ ) { libhmac_sha1_transform_extend_32bit_value( values_32bit, value_32bit_index ); } /* Calculate the hash values for the 32-bit values */ for( value_32bit_index = 0; value_32bit_index < 80; value_32bit_index++ ) { if( value_32bit_index < 20 ) { hash_values[ 4 ] += ( hash_values[ 1 ] & hash_values[ 2 ] ) | ( ~( hash_values[ 1 ] ) & hash_values[ 3 ] ); hash_values[ 4 ] += 0x5a827999UL; } else if( value_32bit_index < 40 ) { hash_values[ 4 ] += hash_values[ 1 ] ^ hash_values[ 2 ] ^ hash_values[ 3 ]; hash_values[ 4 ] += 0x6ed9eba1UL; } else if( value_32bit_index < 60 ) { hash_values[ 4 ] += ( hash_values[ 1 ] & hash_values[ 2 ] ) | ( hash_values[ 1 ] & hash_values[ 3 ] ) | ( hash_values[ 2 ] & hash_values[ 3 ] ); hash_values[ 4 ] += 0x8f1bbcdcUL; } else { hash_values[ 4 ] += hash_values[ 1 ] ^ hash_values[ 2 ] ^ hash_values[ 3 ]; hash_values[ 4 ] += 0xca62c1d6UL; } hash_values[ 4 ] += byte_stream_bit_rotate_left_32bit( hash_values[ 0 ], 5 ); hash_values[ 4 ] += values_32bit[ value_32bit_index ]; hash_value = hash_values[ 4 ]; hash_values[ 4 ] = hash_values[ 3 ]; hash_values[ 3 ] = hash_values[ 2 ]; hash_values[ 2 ] = byte_stream_bit_rotate_left_32bit( hash_values[ 1 ], 30 ); hash_values[ 1 ] = hash_values[ 0 ]; hash_values[ 0 ] = hash_value; } /* Update the hash values in the context */ for( hash_values_index = 0; hash_values_index < 5; hash_values_index++ ) { internal_context->hash_values[ hash_values_index ] += hash_values[ hash_values_index ]; } #endif /* defined( LIBHMAC_UNFOLLED_LOOPS ) */ size -= LIBHMAC_SHA1_BLOCK_SIZE; } /* Prevent sensitive data from leaking */ if( memory_set( hash_values, 0, sizeof( uint32_t ) * 5 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear hash values.", function ); goto on_error; } if( memory_set( values_32bit, 0, sizeof( uint32_t ) * 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear 32-bit values.", function ); goto on_error; } return( (ssize_t) buffer_offset ); on_error: memory_set( values_32bit, 0, sizeof( uint32_t ) * 64 ); memory_set( hash_values, 0, sizeof( uint32_t ) * 5 ); return( -1 ); } #endif /* !defined( LIBHMAC_HAVE_SHA1_SUPPORT ) */ /* Creates a SHA1 context * Make sure the value context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libhmac_sha1_initialize( libhmac_sha1_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_initialize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid context value already set.", function ); return( -1 ); } internal_context = memory_allocate_structure( libhmac_internal_sha1_context_t ); if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create context.", function ); goto on_error; } if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha1_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); memory_free( internal_context ); return( -1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) /* Request the AES crypt provider, fail back to the RSA crypt provider */ if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT ) == 0 ) { if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create AES or RSA crypt provider.", function ); goto on_error; } } if( internal_context->crypt_provider == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: unable to create crypt provider.", function ); goto on_error; } if( CryptCreateHash( internal_context->crypt_provider, CALG_SHA1, 0, 0, &( internal_context->hash ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create hash object.", function ); CryptReleaseContext( internal_context->crypt_provider, 0 ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA_DIGEST_LENGTH ) if( SHA1_Init( &( internal_context->sha1_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA1 ) #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX_init( &( internal_context->internal_evp_md_context ) ); internal_context->evp_md_context = &( internal_context->internal_evp_md_context ); #else internal_context->evp_md_context = EVP_MD_CTX_new(); if( internal_context->evp_md_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create EVP message digest context.", function ); goto on_error; } #endif /* defined( HAVE_EVP_MD_CTX_INIT ) */ if( EVP_DigestInit_ex( internal_context->evp_md_context, EVP_sha1(), NULL ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); #if defined( HAVE_EVP_MD_CTX_CLEANUP ) EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ); ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif internal_context->evp_md_context = NULL; goto on_error; } #else if( memory_copy( internal_context->hash_values, libhmac_sha1_fixed_constants, sizeof( uint32_t ) * 5 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy fixed constants to hash values.", function ); goto on_error; } #endif *context = (libhmac_sha1_context_t *) internal_context; return( 1 ); on_error: if( internal_context != NULL ) { memory_free( internal_context ); } return( -1 ); } /* Frees a SHA1 context * Returns 1 if successful or -1 on error */ int libhmac_sha1_free( libhmac_sha1_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_free"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { internal_context = (libhmac_internal_sha1_context_t *) *context; *context = NULL; #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) if( internal_context->crypt_provider != 0 ) { CryptReleaseContext( internal_context->crypt_provider, 0 ); } if( internal_context->hash != 0 ) { CryptDestroyHash( internal_context->hash ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA_DIGEST_LENGTH ) /* No additional clean up necessary */ #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA1 ) #if defined( HAVE_EVP_MD_CTX_CLEANUP ) if( EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clean up EVP message digest context.", function ); } /* Make sure the error state is removed otherwise OpenSSL will leak memory */ ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif /* defined( HAVE_EVP_MD_CTX_CLEANUP ) */ internal_context->evp_md_context = NULL; #else /* No additional clean up necessary */ #endif memory_free( internal_context ); } return( 1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) /* Updates the SHA1 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha1_update( libhmac_sha1_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #endif if( size == 0 ) { return( 1 ); } if( CryptHashData( internal_context->hash, (BYTE *) buffer, (DWORD) size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA_DIGEST_LENGTH ) /* Updates the SHA1 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha1_update( libhmac_sha1_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_update"; unsigned long safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_LONG < SIZEOF_SIZE_T ) if( size > (size_t) ULONG_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } safe_hash_size = (unsigned long) size; if( SHA1_Update( &( internal_context->sha1_context ), (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA1 ) /* Updates the SHA1 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha1_update( libhmac_sha1_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( EVP_DigestUpdate( internal_context->evp_md_context, (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #else /* Updates the SHA1 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha1_update( libhmac_sha1_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_update"; size_t buffer_offset = 0; size_t remaining_block_size = 0; ssize_t process_count = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( internal_context->block_offset > 0 ) { remaining_block_size = LIBHMAC_SHA1_BLOCK_SIZE - internal_context->block_offset; if( remaining_block_size > size ) { remaining_block_size = size; } if( memory_copy( &( internal_context->block[ internal_context->block_offset ] ), buffer, remaining_block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data to context block.", function ); return( -1 ); } internal_context->block_offset += remaining_block_size; if( internal_context->block_offset < LIBHMAC_SHA1_BLOCK_SIZE ) { return( 1 ); } buffer_offset += remaining_block_size; size -= remaining_block_size; process_count = libhmac_sha1_transform( internal_context, internal_context->block, LIBHMAC_SHA1_BLOCK_SIZE, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } internal_context->hash_count += process_count; internal_context->block_offset = 0; } if( size > 0 ) { process_count = libhmac_sha1_transform( internal_context, &( buffer[ buffer_offset ] ), size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform buffer.", function ); return( -1 ); } internal_context->hash_count += process_count; buffer_offset += process_count; size -= process_count; } if( size > 0 ) { if( size >= LIBHMAC_SHA1_BLOCK_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } if( memory_copy( internal_context->block, &( buffer[ buffer_offset ] ), size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy remaining data to context block.", function ); return( -1 ); } internal_context->block_offset = size; } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) /* Finalizes the SHA1 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha1_finalize( libhmac_sha1_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_finalize"; DWORD safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( hash_size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } #endif if( hash_size < (size_t) LIBHMAC_SHA1_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } safe_hash_size = (DWORD) hash_size; if( CryptGetHashParam( internal_context->hash, HP_HASHVAL, (BYTE *) hash, &safe_hash_size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA_DIGEST_LENGTH ) /* Finalizes the SHA1 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha1_finalize( libhmac_sha1_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_finalize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA1_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } if( SHA1_Final( hash, &( internal_context->sha1_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA1 ) /* Finalizes the SHA1 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha1_finalize( libhmac_sha1_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_finalize"; unsigned int safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) UINT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA1_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } safe_hash_size = (unsigned int) hash_size; if( EVP_DigestFinal_ex( internal_context->evp_md_context, (unsigned char *) hash, &safe_hash_size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #else /* Finalizes the SHA1 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha1_finalize( libhmac_sha1_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha1_context_t *internal_context = NULL; static char *function = "libhmac_sha1_finalize"; size_t block_size = 0; size_t number_of_blocks = 0; ssize_t process_count = 0; uint64_t bit_size = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) size_t hash_index = 0; int hash_values_index = 0; #endif if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha1_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA1_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA1_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } /* Add padding with a size of 56 mod 64 */ number_of_blocks = 1; if( internal_context->block_offset > 55 ) { number_of_blocks += 1; } block_size = number_of_blocks * LIBHMAC_SHA1_BLOCK_SIZE; if( memory_set( &( internal_context->block[ internal_context->block_offset ] ), 0, block_size - internal_context->block_offset ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context block.", function ); return( -1 ); } /* The first byte of the padding contains 0x80 */ internal_context->block[ internal_context->block_offset ] = 0x80; bit_size = ( internal_context->hash_count + internal_context->block_offset ) * 8; byte_stream_copy_from_uint64_big_endian( &( internal_context->block[ block_size - 8 ] ), bit_size ); process_count = libhmac_sha1_transform( internal_context, internal_context->block, block_size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } #if !defined( LIBHMAC_UNFOLLED_LOOPS ) for( hash_values_index = 0; hash_values_index < 5; hash_values_index++ ) { byte_stream_copy_from_uint32_big_endian( &( hash[ hash_index ] ), internal_context->hash_values[ hash_values_index ] ); hash_index += sizeof( uint32_t ); } #else byte_stream_copy_from_uint32_big_endian( &( hash[ 0 ] ), internal_context->hash_values[ 0 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 4 ] ), internal_context->hash_values[ 1 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 8 ] ), internal_context->hash_values[ 2 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 12 ] ), internal_context->hash_values[ 3 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 16 ] ), internal_context->hash_values[ 4 ] ); #endif /* !defined( LIBHMAC_UNFOLLED_LOOPS ) */ /* Prevent sensitive data from leaking */ if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha1_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); return( -1 ); } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) */ /* Calculates the SHA1 of the buffer * Returns 1 if successful or -1 on error */ int libhmac_sha1_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_sha1_context_t *context = NULL; static char *function = "libhmac_sha1_calculate"; if( libhmac_sha1_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha1_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha1_finalize( context, hash, hash_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha1_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } return( 1 ); on_error: if( context != NULL ) { libhmac_sha1_free( &context, NULL ); } return( -1 ); } /* Calculates the SHA1 HMAC of the buffer * HMAC is defined in RFC 2104 * Returns 1 if successful or -1 on error */ int libhmac_sha1_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ) { uint8_t key_hash[ LIBHMAC_SHA1_HASH_SIZE ]; libhmac_sha1_context_t *context = NULL; uint8_t *key_data = NULL; uint8_t *inner_padding = NULL; uint8_t *outer_padding = NULL; static char *function = "libhmac_sha1_calculate_hmac"; size_t block_index = 0; size_t block_size = 64; if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( key_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid key size value exceeds maximum.", function ); return( -1 ); } if( hmac_size < (size_t) LIBHMAC_SHA1_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid HMAC size value too small.", function ); return( -1 ); } key_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key data.", function ); goto on_error; } if( key_size <= block_size ) { if( memory_copy( key_data, key, key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key data.", function ); goto on_error; } if( memory_set( &( key_data[ key_size ] ), 0, block_size - key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key remaining data.", function ); goto on_error; } } else { if( libhmac_sha1_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha1_update( context, key, key_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha1_finalize( context, key_hash, LIBHMAC_SHA1_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha1_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( block_size > LIBHMAC_SHA1_HASH_SIZE ) { if( memory_set( &( key_data[ LIBHMAC_SHA1_HASH_SIZE ] ), 0, block_size - LIBHMAC_SHA1_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear remaining key data.", function ); goto on_error; } } if( memory_copy( key_data, key_hash, LIBHMAC_SHA1_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key hash data.", function ); goto on_error; } } inner_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( inner_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create inner padding.", function ); goto on_error; } if( memory_set( inner_padding, 0x36, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set inner padding.", function ); goto on_error; } outer_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( outer_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create outer padding.", function ); goto on_error; } if( memory_set( outer_padding, 0x5c, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set outer padding.", function ); goto on_error; } for( block_index = 0; block_index < block_size; block_index++ ) { inner_padding[ block_index ] ^= key_data[ block_index ]; outer_padding[ block_index ] ^= key_data[ block_index ]; } if( libhmac_sha1_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha1_update( context, inner_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha1_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha1_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha1_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( libhmac_sha1_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha1_update( context, outer_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha1_update( context, hmac, LIBHMAC_SHA1_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha1_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha1_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( memory_set( outer_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear outer padding.", function ); goto on_error; } memory_free( outer_padding ); outer_padding = NULL; if( memory_set( inner_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear inner padding.", function ); goto on_error; } memory_free( inner_padding ); inner_padding = NULL; if( memory_set( key_data, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key data.", function ); goto on_error; } memory_free( key_data ); key_data = NULL; return( 1 ); on_error: if( context != NULL ) { libhmac_sha1_free( &context, NULL ); } if( outer_padding != NULL ) { memory_set( outer_padding, 0, block_size ); memory_free( outer_padding ); } if( inner_padding != NULL ) { memory_set( inner_padding, 0, block_size ); memory_free( inner_padding ); } if( key_data != NULL ) { memory_set( key_data, 0, block_size ); memory_free( key_data ); } return( -1 ); } libfsapfs-20190210/libhmac/libhmac_support.c0000664000175000017500000000212713430101230022746 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libhmac_definitions.h" #include "libhmac_support.h" #if !defined( HAVE_LOCAL_LIBHMAC ) /* Returns the library version as a string */ const char *libhmac_get_version( void ) { return( (const char *) LIBHMAC_VERSION_STRING ); } #endif libfsapfs-20190210/libhmac/libhmac_definitions.h0000664000175000017500000000334213430101230023552 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBHMAC_INTERNAL_DEFINITIONS_H ) #define LIBHMAC_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBHMAC for local use of libhmac */ #if !defined( HAVE_LOCAL_LIBHMAC ) #include /* The definitions in are copied here * for local use of libhmac */ #else #define LIBHMAC_VERSION 20180731 /* The libhmac version string */ #define LIBHMAC_VERSION_STRING "20180731" /* The digest hash sizes */ #define LIBHMAC_MD5_HASH_SIZE 16 #define LIBHMAC_SHA1_HASH_SIZE 20 #define LIBHMAC_SHA224_HASH_SIZE 28 #define LIBHMAC_SHA256_HASH_SIZE 32 #define LIBHMAC_SHA512_HASH_SIZE 64 #endif #if defined( WINAPI ) && defined( HAVE_WINCRYPT ) #if !defined( PROV_RSA_AES ) #define PROV_RSA_AES 24 #endif #endif /* defined( WINAPI ) && defined( HAVE_WINCRYPT ) */ #define LIBHMAC_UNFOLLED_LOOPS #endif /* !defined( LIBHMAC_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libhmac/Makefile.am0000664000175000017500000000142113430101230021437 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBHMAC AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libhmac.la libhmac_la_SOURCES = \ libhmac_byte_stream.h \ libhmac_definitions.h \ libhmac_extern.h \ libhmac_error.c libhmac_error.h \ libhmac_libcerror.h \ libhmac_md5.c libhmac_md5.h \ libhmac_sha1.c libhmac_sha1.h \ libhmac_sha224.c libhmac_sha224.h \ libhmac_sha256.c libhmac_sha256.h \ libhmac_sha512.c libhmac_sha512.h \ libhmac_support.c libhmac_support.h \ libhmac_types.h \ libhmac_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libhmac ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libhmac_la_SOURCES) libfsapfs-20190210/libhmac/libhmac_error.c0000664000175000017500000000552213430101230022365 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libhmac_error.h" #include "libhmac_libcerror.h" #if !defined( HAVE_LOCAL_LIBHMAC ) /* Free an error and its elements */ void libhmac_error_free( libhmac_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libhmac_error_fprint( libhmac_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libhmac_error_sprint( libhmac_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libhmac_error_backtrace_fprint( libhmac_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libhmac_error_backtrace_sprint( libhmac_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBHMAC ) */ libfsapfs-20190210/libhmac/libhmac_sha256.c0000664000175000017500000016644513430101230022260 0ustar00lordyestalordyesta00000000000000/* * SHA-256 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #include #endif #include "libhmac_byte_stream.h" #include "libhmac_definitions.h" #include "libhmac_libcerror.h" #include "libhmac_sha256.h" #if !defined( LIBHMAC_HAVE_SHA256_SUPPORT ) /* FIPS 180-2 based SHA-256 functions */ /* The first 32-bits of the fractional parts of the square roots of the first 8 primes [ 2, 19 ] */ uint32_t libhmac_sha256_prime_square_roots[ 8 ] = { 0x6a09e667UL, 0xbb67ae85UL, 0x3c6ef372UL, 0xa54ff53aUL, 0x510e527fUL, 0x9b05688cUL, 0x1f83d9abUL, 0x5be0cd19UL }; /* The first 32-bits of the fractional parts of the cube roots of the first 64 primes [ 2, 311 ] */ uint32_t libhmac_sha256_prime_cube_roots[ 64 ] = { 0x428a2f98UL, 0x71374491UL, 0xb5c0fbcfUL, 0xe9b5dba5UL, 0x3956c25bUL, 0x59f111f1UL, 0x923f82a4UL, 0xab1c5ed5UL, 0xd807aa98UL, 0x12835b01UL, 0x243185beUL, 0x550c7dc3UL, 0x72be5d74UL, 0x80deb1feUL, 0x9bdc06a7UL, 0xc19bf174UL, 0xe49b69c1UL, 0xefbe4786UL, 0x0fc19dc6UL, 0x240ca1ccUL, 0x2de92c6fUL, 0x4a7484aaUL, 0x5cb0a9dcUL, 0x76f988daUL, 0x983e5152UL, 0xa831c66dUL, 0xb00327c8UL, 0xbf597fc7UL, 0xc6e00bf3UL, 0xd5a79147UL, 0x06ca6351UL, 0x14292967UL, 0x27b70a85UL, 0x2e1b2138UL, 0x4d2c6dfcUL, 0x53380d13UL, 0x650a7354UL, 0x766a0abbUL, 0x81c2c92eUL, 0x92722c85UL, 0xa2bfe8a1UL, 0xa81a664bUL, 0xc24b8b70UL, 0xc76c51a3UL, 0xd192e819UL, 0xd6990624UL, 0xf40e3585UL, 0x106aa070UL, 0x19a4c116UL, 0x1e376c08UL, 0x2748774cUL, 0x34b0bcb5UL, 0x391c0cb3UL, 0x4ed8aa4aUL, 0x5b9cca4fUL, 0x682e6ff3UL, 0x748f82eeUL, 0x78a5636fUL, 0x84c87814UL, 0x8cc70208UL, 0x90befffaUL, 0xa4506cebUL, 0xbef9a3f7UL, 0xc67178f2UL }; #define libhmac_sha256_transform_extend_32bit_value( values_32bit, value_32bit_index, s0, s1 ) \ s0 = byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 15 ], 7 ) \ ^ byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 15 ], 18 ) \ ^ ( values_32bit[ value_32bit_index - 15 ] >> 3 ); \ s1 = byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 2 ], 17 ) \ ^ byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 2 ], 19 ) \ ^ ( values_32bit[ value_32bit_index - 2 ] >> 10 ); \ \ values_32bit[ value_32bit_index ] = values_32bit[ value_32bit_index - 16 ] \ + s0 \ + values_32bit[ value_32bit_index - 7 ] \ + s1 #define libhmac_sha256_transform_unfolded_extend_32bit_values( values_32bit, s0, s1 ) \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 16, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 17, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 18, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 19, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 20, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 21, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 22, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 23, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 24, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 25, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 26, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 27, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 28, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 29, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 30, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 31, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 32, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 33, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 34, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 35, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 36, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 37, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 38, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 39, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 40, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 41, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 42, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 43, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 44, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 45, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 46, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 47, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 48, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 49, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 50, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 51, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 52, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 53, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 54, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 55, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 56, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 57, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 58, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 59, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 60, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 61, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 62, s0, s1 ); \ libhmac_sha256_transform_extend_32bit_value( values_32bit, 63, s0, s1 ); #define libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, hash_value_index4, hash_value_index5, hash_value_index6, hash_value_index7, s0, s1, t1, t2 ) \ s0 = byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index0 ], 2 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index0 ], 13 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index0 ], 22 ); \ s1 = byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index4 ], 6 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index4 ], 11 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index4 ], 25 ); \ \ t1 = hash_values[ hash_value_index7 ]; \ t1 += s1; \ t1 += ( hash_values[ hash_value_index4 ] & hash_values[ hash_value_index5 ] ) \ ^ ( ~( hash_values[ hash_value_index4 ] ) & hash_values[ hash_value_index6 ] ); \ t1 += libhmac_sha256_prime_cube_roots[ value_32bit_index ]; \ t1 += values_32bit[ value_32bit_index ]; \ t2 = s0; \ t2 += ( hash_values[ hash_value_index0 ] & hash_values[ hash_value_index1 ] ) \ ^ ( hash_values[ hash_value_index0 ] & hash_values[ hash_value_index2 ] ) \ ^ ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index2 ] ); \ \ hash_values[ hash_value_index3 ] += t1; \ hash_values[ hash_value_index7 ] = t1 + t2; #define libhmac_sha256_transform_unfolded_calculate_hash_values( values_32bit, hash_values, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 0, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 1, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 2, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 3, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 4, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 5, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 6, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 7, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 8, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 9, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 10, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 11, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 12, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 13, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 14, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 15, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 16, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 17, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 18, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 19, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 20, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 21, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 22, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 23, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 24, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 25, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 26, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 27, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 28, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 29, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 30, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 31, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 32, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 33, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 34, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 35, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 36, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 37, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 38, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 39, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 40, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 41, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 42, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 43, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 44, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 45, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 46, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 47, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 48, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 49, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 50, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 51, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 52, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 53, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 54, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 55, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 56, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 57, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 58, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 59, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 60, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 61, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 62, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha256_transform_unfolded_calculate_hash_value( values_32bit, 63, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) /* Calculates the SHA-256 of 64 byte sized blocks of data in a buffer * Returns the number of bytes used if successful or -1 on error */ ssize_t libhmac_sha256_transform( libhmac_internal_sha256_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { uint32_t hash_values[ 8 ]; uint32_t values_32bit[ 64 ]; static char *function = "libhmac_sha256_transform"; size_t buffer_offset = 0; uint32_t s0 = 0; uint32_t s1 = 0; uint32_t t1 = 0; uint32_t t2 = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) uint8_t hash_values_index = 0; uint8_t value_32bit_index = 0; #endif if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid internal context.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } while( size >= LIBHMAC_SHA256_BLOCK_SIZE ) { if( memory_copy( hash_values, internal_context->hash_values, sizeof( uint32_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy hash values.", function ); goto on_error; } #if defined( LIBHMAC_UNFOLLED_LOOPS ) /* Break the block into 16 x 32-bit values */ libhmac_byte_stream_copy_to_16x_uint32_big_endian( &( buffer[ buffer_offset ] ), values_32bit ); buffer_offset += LIBHMAC_SHA256_BLOCK_SIZE; /* Extend to 64 x 32-bit values */ libhmac_sha256_transform_unfolded_extend_32bit_values( values_32bit, s0, s1 ); /* Calculate the hash values for the 32-bit values */ libhmac_sha256_transform_unfolded_calculate_hash_values( values_32bit, hash_values, s0, s1, t1, t2 ); /* Update the hash values in the context */ internal_context->hash_values[ 0 ] += hash_values[ 0 ]; internal_context->hash_values[ 1 ] += hash_values[ 1 ]; internal_context->hash_values[ 2 ] += hash_values[ 2 ]; internal_context->hash_values[ 3 ] += hash_values[ 3 ]; internal_context->hash_values[ 4 ] += hash_values[ 4 ]; internal_context->hash_values[ 5 ] += hash_values[ 5 ]; internal_context->hash_values[ 6 ] += hash_values[ 6 ]; internal_context->hash_values[ 7 ] += hash_values[ 7 ]; #else /* Break the block into 16 x 32-bit values */ for( value_32bit_index = 0; value_32bit_index < 16; value_32bit_index++ ) { byte_stream_copy_to_uint32_big_endian( &( buffer[ buffer_offset ] ), values_32bit[ value_32bit_index ] ); buffer_offset += sizeof( uint32_t ); } /* Extend to 64 x 32-bit values */ for( value_32bit_index = 16; value_32bit_index < 64; value_32bit_index++ ) { libhmac_sha256_transform_extend_32bit_value( values_32bit, value_32bit_index, s0, s1 ); } /* Calculate the hash values for the 32-bit values */ for( value_32bit_index = 0; value_32bit_index < 64; value_32bit_index++ ) { s0 = byte_stream_bit_rotate_right_32bit( hash_values[ 0 ], 2 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 0 ], 13 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 0 ], 22 ); s1 = byte_stream_bit_rotate_right_32bit( hash_values[ 4 ], 6 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 4 ], 11 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 4 ], 25 ); t1 = hash_values[ 7 ]; t1 += s1; t1 += ( hash_values[ 4 ] & hash_values[ 5 ] ) ^ ( ~( hash_values[ 4 ] ) & hash_values[ 6 ] ); t1 += libhmac_sha256_prime_cube_roots[ value_32bit_index ]; t1 += values_32bit[ value_32bit_index ]; t2 = s0; t2 += ( hash_values[ 0 ] & hash_values[ 1 ] ) ^ ( hash_values[ 0 ] & hash_values[ 2 ] ) ^ ( hash_values[ 1 ] & hash_values[ 2 ] ); hash_values[ 7 ] = hash_values[ 6 ]; hash_values[ 6 ] = hash_values[ 5 ]; hash_values[ 5 ] = hash_values[ 4 ]; hash_values[ 4 ] = hash_values[ 3 ] + t1; hash_values[ 3 ] = hash_values[ 2 ]; hash_values[ 2 ] = hash_values[ 1 ]; hash_values[ 1 ] = hash_values[ 0 ]; hash_values[ 0 ] = t1 + t2; } /* Update the hash values in the context */ for( hash_values_index = 0; hash_values_index < 8; hash_values_index++ ) { internal_context->hash_values[ hash_values_index ] += hash_values[ hash_values_index ]; } #endif /* defined( LIBHMAC_UNFOLLED_LOOPS ) */ size -= LIBHMAC_SHA256_BLOCK_SIZE; } /* Prevent sensitive data from leaking */ if( memory_set( hash_values, 0, sizeof( uint32_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear hash values.", function ); goto on_error; } if( memory_set( values_32bit, 0, sizeof( uint32_t ) * 64 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear 32-bit values.", function ); goto on_error; } return( (ssize_t) buffer_offset ); on_error: memory_set( values_32bit, 0, sizeof( uint32_t ) * 64 ); memory_set( hash_values, 0, sizeof( uint32_t ) * 8 ); return( -1 ); } #endif /* !defined( LIBHMAC_HAVE_SHA256_SUPPORT ) */ /* Creates a SHA-256 context * Make sure the value context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libhmac_sha256_initialize( libhmac_sha256_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_initialize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid context value already set.", function ); return( -1 ); } internal_context = memory_allocate_structure( libhmac_internal_sha256_context_t ); if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create context.", function ); goto on_error; } if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha256_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); memory_free( internal_context ); return( -1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_256 ) /* Request the AES crypt provider, fail back to the RSA crypt provider */ if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT ) == 0 ) { if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create AES or RSA crypt provider.", function ); goto on_error; } } if( internal_context->crypt_provider == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: unable to create crypt provider.", function ); goto on_error; } if( CryptCreateHash( internal_context->crypt_provider, CALG_SHA_256, 0, 0, &( internal_context->hash ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create hash object.", function ); CryptReleaseContext( internal_context->crypt_provider, 0 ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA256_DIGEST_LENGTH ) if( SHA256_Init( &( internal_context->sha256_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA256 ) #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX_init( &( internal_context->internal_evp_md_context ) ); internal_context->evp_md_context = &( internal_context->internal_evp_md_context ); #else internal_context->evp_md_context = EVP_MD_CTX_new(); if( internal_context->evp_md_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create EVP message digest context.", function ); goto on_error; } #endif /* defined( HAVE_EVP_MD_CTX_INIT ) */ if( EVP_DigestInit_ex( internal_context->evp_md_context, EVP_sha256(), NULL ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); #if defined( HAVE_EVP_MD_CTX_CLEANUP ) EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ); ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif internal_context->evp_md_context = NULL; goto on_error; } #else if( memory_copy( internal_context->hash_values, libhmac_sha256_prime_square_roots, sizeof( uint32_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy initial hash values.", function ); return( -1 ); } #endif *context = (libhmac_sha256_context_t *) internal_context; return( 1 ); on_error: if( internal_context != NULL ) { memory_free( internal_context ); } return( -1 ); } /* Frees a SHA-256 context * Returns 1 if successful or -1 on error */ int libhmac_sha256_free( libhmac_sha256_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_free"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { internal_context = (libhmac_internal_sha256_context_t *) *context; *context = NULL; #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_256 ) if( internal_context->crypt_provider != 0 ) { CryptReleaseContext( internal_context->crypt_provider, 0 ); } if( internal_context->hash != 0 ) { CryptDestroyHash( internal_context->hash ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA256_DIGEST_LENGTH ) /* No additional clean up necessary */ #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA256 ) #if defined( HAVE_EVP_MD_CTX_CLEANUP ) if( EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clean up EVP message digest context.", function ); } /* Make sure the error state is removed otherwise OpenSSL will leak memory */ ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif /* defined( HAVE_EVP_MD_CTX_CLEANUP ) */ internal_context->evp_md_context = NULL; #else /* No additional clean up necessary */ #endif memory_free( internal_context ); } return( 1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_256 ) /* Updates the SHA-256 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha256_update( libhmac_sha256_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #endif if( size == 0 ) { return( 1 ); } if( CryptHashData( internal_context->hash, (BYTE *) buffer, (DWORD) size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA256_DIGEST_LENGTH ) /* Updates the SHA-256 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha256_update( libhmac_sha256_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_update"; unsigned long safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_LONG < SIZEOF_SIZE_T ) if( size > (size_t) ULONG_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } safe_hash_size = (unsigned long) size; if( SHA256_Update( &( internal_context->sha256_context ), (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA256 ) /* Updates the SHA-256 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha256_update( libhmac_sha256_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( EVP_DigestUpdate( internal_context->evp_md_context, (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #else /* Updates the SHA-256 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha256_update( libhmac_sha256_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_update"; size_t buffer_offset = 0; size_t remaining_block_size = 0; ssize_t process_count = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( internal_context->block_offset > 0 ) { remaining_block_size = LIBHMAC_SHA256_BLOCK_SIZE - internal_context->block_offset; if( remaining_block_size > size ) { remaining_block_size = size; } if( memory_copy( &( internal_context->block[ internal_context->block_offset ] ), buffer, remaining_block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data to context block.", function ); return( -1 ); } internal_context->block_offset += remaining_block_size; if( internal_context->block_offset < LIBHMAC_SHA256_BLOCK_SIZE ) { return( 1 ); } buffer_offset += remaining_block_size; size -= remaining_block_size; process_count = libhmac_sha256_transform( internal_context, internal_context->block, LIBHMAC_SHA256_BLOCK_SIZE, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } internal_context->hash_count += process_count; internal_context->block_offset = 0; } if( size > 0 ) { process_count = libhmac_sha256_transform( internal_context, &( buffer[ buffer_offset ] ), size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform buffer.", function ); return( -1 ); } internal_context->hash_count += process_count; buffer_offset += process_count; size -= process_count; } if( size > 0 ) { if( size >= LIBHMAC_SHA256_BLOCK_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } if( memory_copy( internal_context->block, &( buffer[ buffer_offset ] ), size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy remaining data to context block.", function ); return( -1 ); } internal_context->block_offset = size; } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_256 ) */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_256 ) /* Finalizes the SHA-256 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha256_finalize( libhmac_sha256_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_finalize"; DWORD safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( hash_size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } #endif if( hash_size < (size_t) LIBHMAC_SHA256_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } safe_hash_size = (DWORD) hash_size; if( CryptGetHashParam( internal_context->hash, HP_HASHVAL, (BYTE *) hash, &safe_hash_size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA256_DIGEST_LENGTH ) /* Finalizes the SHA-256 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha256_finalize( libhmac_sha256_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_finalize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA256_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } if( SHA256_Final( hash, &( internal_context->sha256_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA256 ) /* Finalizes the SHA-256 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha256_finalize( libhmac_sha256_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_finalize"; unsigned int safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) UINT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA256_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } safe_hash_size = (unsigned int) hash_size; if( EVP_DigestFinal_ex( internal_context->evp_md_context, (unsigned char *) hash, &safe_hash_size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #else /* Finalizes the SHA-256 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha256_finalize( libhmac_sha256_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha256_context_t *internal_context = NULL; static char *function = "libhmac_sha256_finalize"; size_t block_size = 0; size_t number_of_blocks = 0; ssize_t process_count = 0; uint64_t bit_size = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) size_t hash_index = 0; int hash_values_index = 0; #endif if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha256_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA256_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA256_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } /* Add padding with a size of 56 mod 64 */ number_of_blocks = 1; if( internal_context->block_offset > 55 ) { number_of_blocks += 1; } block_size = number_of_blocks * LIBHMAC_SHA256_BLOCK_SIZE; if( memory_set( &( internal_context->block[ internal_context->block_offset ] ), 0, block_size - internal_context->block_offset ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context block.", function ); return( -1 ); } /* The first byte of the padding contains 0x80 */ internal_context->block[ internal_context->block_offset ] = 0x80; bit_size = ( internal_context->hash_count + internal_context->block_offset ) * 8; byte_stream_copy_from_uint64_big_endian( &( internal_context->block[ block_size - 8 ] ), bit_size ); process_count = libhmac_sha256_transform( internal_context, internal_context->block, block_size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } #if !defined( LIBHMAC_UNFOLLED_LOOPS ) for( hash_values_index = 0; hash_values_index < 8; hash_values_index++ ) { byte_stream_copy_from_uint32_big_endian( &( hash[ hash_index ] ), internal_context->hash_values[ hash_values_index ] ); hash_index += sizeof( uint32_t ); } #else byte_stream_copy_from_uint32_big_endian( &( hash[ 0 ] ), internal_context->hash_values[ 0 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 4 ] ), internal_context->hash_values[ 1 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 8 ] ), internal_context->hash_values[ 2 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 12 ] ), internal_context->hash_values[ 3 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 16 ] ), internal_context->hash_values[ 4 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 20 ] ), internal_context->hash_values[ 5 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 24 ] ), internal_context->hash_values[ 6 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 28 ] ), internal_context->hash_values[ 7 ] ); #endif /* !defined( LIBHMAC_UNFOLLED_LOOPS ) */ /* Prevent sensitive data from leaking */ if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha256_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); return( -1 ); } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_256 ) */ /* Calculates the SHA-256 of the buffer * Returns 1 if successful or -1 on error */ int libhmac_sha256_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_sha256_context_t *context = NULL; static char *function = "libhmac_sha256_calculate"; if( libhmac_sha256_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha256_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha256_finalize( context, hash, hash_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha256_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } return( 1 ); on_error: if( context != NULL ) { libhmac_sha256_free( &context, NULL ); } return( -1 ); } /* Calculates the SHA-256 HMAC of the buffer * HMAC is defined in RFC 2104 * Returns 1 if successful or -1 on error */ int libhmac_sha256_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ) { uint8_t key_hash[ LIBHMAC_SHA256_HASH_SIZE ]; libhmac_sha256_context_t *context = NULL; uint8_t *key_data = NULL; uint8_t *inner_padding = NULL; uint8_t *outer_padding = NULL; static char *function = "libhmac_sha256_calculate_hmac"; size_t block_index = 0; size_t block_size = 64; if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( key_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid key size value exceeds maximum.", function ); return( -1 ); } if( hmac_size < (size_t) LIBHMAC_SHA256_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid HMAC size value too small.", function ); return( -1 ); } key_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key data.", function ); goto on_error; } if( key_size <= block_size ) { if( memory_copy( key_data, key, key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key data.", function ); goto on_error; } if( memory_set( &( key_data[ key_size ] ), 0, block_size - key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key remaining data.", function ); goto on_error; } } else { if( libhmac_sha256_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha256_update( context, key, key_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha256_finalize( context, key_hash, LIBHMAC_SHA256_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha256_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( block_size > LIBHMAC_SHA256_HASH_SIZE ) { if( memory_set( &( key_data[ LIBHMAC_SHA256_HASH_SIZE ] ), 0, block_size - LIBHMAC_SHA256_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear remaining key data.", function ); goto on_error; } } if( memory_copy( key_data, key_hash, LIBHMAC_SHA256_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key hash data.", function ); goto on_error; } } inner_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( inner_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create inner padding.", function ); goto on_error; } if( memory_set( inner_padding, 0x36, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set inner padding.", function ); goto on_error; } outer_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( outer_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create outer padding.", function ); goto on_error; } if( memory_set( outer_padding, 0x5c, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set outer padding.", function ); goto on_error; } for( block_index = 0; block_index < block_size; block_index++ ) { inner_padding[ block_index ] ^= key_data[ block_index ]; outer_padding[ block_index ] ^= key_data[ block_index ]; } if( libhmac_sha256_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha256_update( context, inner_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha256_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha256_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha256_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( libhmac_sha256_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha256_update( context, outer_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha256_update( context, hmac, LIBHMAC_SHA256_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha256_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha256_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( memory_set( outer_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear outer padding.", function ); goto on_error; } memory_free( outer_padding ); outer_padding = NULL; if( memory_set( inner_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear inner padding.", function ); goto on_error; } memory_free( inner_padding ); inner_padding = NULL; if( memory_set( key_data, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key data.", function ); goto on_error; } memory_free( key_data ); key_data = NULL; return( 1 ); on_error: if( context != NULL ) { libhmac_sha256_free( &context, NULL ); } if( outer_padding != NULL ) { memory_set( outer_padding, 0, block_size ); memory_free( outer_padding ); } if( inner_padding != NULL ) { memory_set( inner_padding, 0, block_size ); memory_free( inner_padding ); } if( key_data != NULL ) { memory_set( key_data, 0, block_size ); memory_free( key_data ); } return( -1 ); } libfsapfs-20190210/libhmac/libhmac_sha512.c0000664000175000017500000017647713430101230022261 0ustar00lordyestalordyesta00000000000000/* * SHA-512 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #include #endif #include "libhmac_byte_stream.h" #include "libhmac_definitions.h" #include "libhmac_libcerror.h" #include "libhmac_sha512.h" #if !defined( LIBHMAC_HAVE_SHA512_SUPPORT ) /* FIPS 180-2 based SHA-512 functions */ /* The first 64-bits of the fractional parts of the square roots of the first 8 primes [ 2, 19 ] */ uint64_t libhmac_sha512_prime_square_roots[ 8 ] = { 0x6a09e667f3bcc908, 0xbb67ae8584caa73b, 0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1, 0x510e527fade682d1, 0x9b05688c2b3e6c1f, 0x1f83d9abfb41bd6b, 0x5be0cd19137e2179 }; /* The first 64-bits of the fractional parts of the cube roots of the first 80 primes [ 2, 409 ] */ uint64_t libhmac_sha512_prime_cube_roots[ 80 ] = { 0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538, 0x59f111f1b605d019, 0x923f82a4af194f9b, 0xab1c5ed5da6d8118, 0xd807aa98a3030242, 0x12835b0145706fbe, 0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2, 0x72be5d74f27b896f, 0x80deb1fe3b1696b1, 0x9bdc06a725c71235, 0xc19bf174cf692694, 0xe49b69c19ef14ad2, 0xefbe4786384f25e3, 0x0fc19dc68b8cd5b5, 0x240ca1cc77ac9c65, 0x2de92c6f592b0275, 0x4a7484aa6ea6e483, 0x5cb0a9dcbd41fbd4, 0x76f988da831153b5, 0x983e5152ee66dfab, 0xa831c66d2db43210, 0xb00327c898fb213f, 0xbf597fc7beef0ee4, 0xc6e00bf33da88fc2, 0xd5a79147930aa725, 0x06ca6351e003826f, 0x142929670a0e6e70, 0x27b70a8546d22ffc, 0x2e1b21385c26c926, 0x4d2c6dfc5ac42aed, 0x53380d139d95b3df, 0x650a73548baf63de, 0x766a0abb3c77b2a8, 0x81c2c92e47edaee6, 0x92722c851482353b, 0xa2bfe8a14cf10364, 0xa81a664bbc423001, 0xc24b8b70d0f89791, 0xc76c51a30654be30, 0xd192e819d6ef5218, 0xd69906245565a910, 0xf40e35855771202a, 0x106aa07032bbd1b8, 0x19a4c116b8d2d0c8, 0x1e376c085141ab53, 0x2748774cdf8eeb99, 0x34b0bcb5e19b48a8, 0x391c0cb3c5c95a63, 0x4ed8aa4ae3418acb, 0x5b9cca4f7763e373, 0x682e6ff3d6b2b8a3, 0x748f82ee5defb2fc, 0x78a5636f43172f60, 0x84c87814a1f0ab72, 0x8cc702081a6439ec, 0x90befffa23631e28, 0xa4506cebde82bde9, 0xbef9a3f7b2c67915, 0xc67178f2e372532b, 0xca273eceea26619c, 0xd186b8c721c0c207, 0xeada7dd6cde0eb1e, 0xf57d4f7fee6ed178, 0x06f067aa72176fba, 0x0a637dc5a2c898a6, 0x113f9804bef90dae, 0x1b710b35131c471b, 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc, 0x431d67c49c100d4c, 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817 }; #define libhmac_sha512_transform_extend_64bit_value( values_64bit, value_64bit_index, s0, s1 ) \ s0 = byte_stream_bit_rotate_right_64bit( values_64bit[ value_64bit_index - 15 ], 1 ) \ ^ byte_stream_bit_rotate_right_64bit( values_64bit[ value_64bit_index - 15 ], 8 ) \ ^ ( values_64bit[ value_64bit_index - 15 ] >> 7 ); \ s1 = byte_stream_bit_rotate_right_64bit( values_64bit[ value_64bit_index - 2 ], 19 ) \ ^ byte_stream_bit_rotate_right_64bit( values_64bit[ value_64bit_index - 2 ], 61 ) \ ^ ( values_64bit[ value_64bit_index - 2 ] >> 6 ); \ \ values_64bit[ value_64bit_index ] = values_64bit[ value_64bit_index - 16 ] \ + s0 \ + values_64bit[ value_64bit_index - 7 ] \ + s1 #define libhmac_sha512_transform_unfolded_extend_64bit_values( values_64bit, s0, s1 ) \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 16, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 17, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 18, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 19, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 20, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 21, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 22, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 23, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 24, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 25, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 26, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 27, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 28, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 29, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 30, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 31, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 32, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 33, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 34, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 35, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 36, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 37, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 38, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 39, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 40, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 41, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 42, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 43, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 44, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 45, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 46, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 47, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 48, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 49, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 50, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 51, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 52, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 53, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 54, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 55, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 56, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 57, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 58, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 59, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 60, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 61, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 62, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 63, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 64, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 65, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 66, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 67, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 68, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 69, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 70, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 71, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 72, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 73, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 74, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 75, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 76, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 77, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 78, s0, s1 ); \ libhmac_sha512_transform_extend_64bit_value( values_64bit, 79, s0, s1 ); #define libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, value_64bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, hash_value_index4, hash_value_index5, hash_value_index6, hash_value_index7, s0, s1, t1, t2 ) \ s0 = byte_stream_bit_rotate_right_64bit( hash_values[ hash_value_index0 ], 28 ) \ ^ byte_stream_bit_rotate_right_64bit( hash_values[ hash_value_index0 ], 34 ) \ ^ byte_stream_bit_rotate_right_64bit( hash_values[ hash_value_index0 ], 39 ); \ s1 = byte_stream_bit_rotate_right_64bit( hash_values[ hash_value_index4 ], 14 ) \ ^ byte_stream_bit_rotate_right_64bit( hash_values[ hash_value_index4 ], 18 ) \ ^ byte_stream_bit_rotate_right_64bit( hash_values[ hash_value_index4 ], 41 ); \ \ t1 = hash_values[ hash_value_index7 ]; \ t1 += s1; \ t1 += ( hash_values[ hash_value_index4 ] & hash_values[ hash_value_index5 ] ) \ ^ ( ~( hash_values[ hash_value_index4 ] ) & hash_values[ hash_value_index6 ] ); \ t1 += libhmac_sha512_prime_cube_roots[ value_64bit_index ]; \ t1 += values_64bit[ value_64bit_index ]; \ t2 = s0; \ t2 += ( hash_values[ hash_value_index0 ] & hash_values[ hash_value_index1 ] ) \ ^ ( hash_values[ hash_value_index0 ] & hash_values[ hash_value_index2 ] ) \ ^ ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index2 ] ); \ \ hash_values[ hash_value_index3 ] += t1; \ hash_values[ hash_value_index7 ] = t1 + t2; #define libhmac_sha512_transform_unfolded_calculate_hash_values( values_64bit, hash_values, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 0, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 1, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 2, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 3, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 4, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 5, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 6, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 7, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 8, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 9, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 10, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 11, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 12, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 13, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 14, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 15, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 16, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 17, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 18, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 19, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 20, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 21, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 22, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 23, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 24, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 25, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 26, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 27, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 28, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 29, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 30, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 31, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 32, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 33, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 34, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 35, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 36, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 37, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 38, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 39, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 40, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 41, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 42, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 43, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 44, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 45, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 46, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 47, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 48, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 49, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 50, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 51, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 52, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 53, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 54, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 55, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 56, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 57, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 58, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 59, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 60, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 61, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 62, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 63, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 64, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 65, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 66, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 67, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 68, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 69, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 70, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 71, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 72, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 73, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 74, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 75, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 76, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 77, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 78, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha512_transform_unfolded_calculate_hash_value( values_64bit, 79, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) /* Calculates the SHA-512 of 128 byte sized blocks of data in a buffer * Returns the number of bytes used if successful or -1 on error */ ssize_t libhmac_sha512_transform( libhmac_internal_sha512_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { uint64_t hash_values[ 8 ]; uint64_t values_64bit[ 80 ]; static char *function = "libhmac_sha512_transform"; uint64_t s0 = 0; uint64_t s1 = 0; uint64_t t1 = 0; uint64_t t2 = 0; size_t buffer_offset = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) uint8_t hash_values_index = 0; uint8_t value_64bit_index = 0; #endif if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid internal context.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } while( size >= LIBHMAC_SHA512_BLOCK_SIZE ) { if( memory_copy( hash_values, internal_context->hash_values, sizeof( uint64_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy hash values.", function ); goto on_error; } #if defined( LIBHMAC_UNFOLLED_LOOPS ) /* Break the block into 16 x 64-bit values */ libhmac_byte_stream_copy_to_16x_uint64_big_endian( &( buffer[ buffer_offset ] ), values_64bit ); buffer_offset += LIBHMAC_SHA512_BLOCK_SIZE; /* Extend to 80 x 64-bit values */ libhmac_sha512_transform_unfolded_extend_64bit_values( values_64bit, s0, s1 ); /* Calculate the hash values for the 64-bit values */ libhmac_sha512_transform_unfolded_calculate_hash_values( values_64bit, hash_values, s0, s1, t1, t2 ); /* Update the hash values in the context */ internal_context->hash_values[ 0 ] += hash_values[ 0 ]; internal_context->hash_values[ 1 ] += hash_values[ 1 ]; internal_context->hash_values[ 2 ] += hash_values[ 2 ]; internal_context->hash_values[ 3 ] += hash_values[ 3 ]; internal_context->hash_values[ 4 ] += hash_values[ 4 ]; internal_context->hash_values[ 5 ] += hash_values[ 5 ]; internal_context->hash_values[ 6 ] += hash_values[ 6 ]; internal_context->hash_values[ 7 ] += hash_values[ 7 ]; #else /* Break the block into 16 x 64-bit values */ for( value_64bit_index = 0; value_64bit_index < 16; value_64bit_index++ ) { byte_stream_copy_to_uint64_big_endian( &( buffer[ buffer_offset ] ), values_64bit[ value_64bit_index ] ); buffer_offset += sizeof( uint64_t ); } /* Extend to 80 x 64-bit values */ for( value_64bit_index = 16; value_64bit_index < 80; value_64bit_index++ ) { libhmac_sha512_transform_extend_64bit_value( values_64bit, value_64bit_index, s0, s1 ); } /* Calculate the hash values for the 64-bit values */ for( value_64bit_index = 0; value_64bit_index < 80; value_64bit_index++ ) { s0 = byte_stream_bit_rotate_right_64bit( hash_values[ 0 ], 28 ) ^ byte_stream_bit_rotate_right_64bit( hash_values[ 0 ], 34 ) ^ byte_stream_bit_rotate_right_64bit( hash_values[ 0 ], 39 ); s1 = byte_stream_bit_rotate_right_64bit( hash_values[ 4 ], 14 ) ^ byte_stream_bit_rotate_right_64bit( hash_values[ 4 ], 18 ) ^ byte_stream_bit_rotate_right_64bit( hash_values[ 4 ], 41 ); t1 = hash_values[ 7 ]; t1 += s1; t1 += ( hash_values[ 4 ] & hash_values[ 5 ] ) ^ ( ~( hash_values[ 4 ] ) & hash_values[ 6 ] ); t1 += libhmac_sha512_prime_cube_roots[ value_64bit_index ]; t1 += values_64bit[ value_64bit_index ]; t2 = s0; t2 += ( hash_values[ 0 ] & hash_values[ 1 ] ) ^ ( hash_values[ 0 ] & hash_values[ 2 ] ) ^ ( hash_values[ 1 ] & hash_values[ 2 ] ); hash_values[ 7 ] = hash_values[ 6 ]; hash_values[ 6 ] = hash_values[ 5 ]; hash_values[ 5 ] = hash_values[ 4 ]; hash_values[ 4 ] = hash_values[ 3 ] + t1; hash_values[ 3 ] = hash_values[ 2 ]; hash_values[ 2 ] = hash_values[ 1 ]; hash_values[ 1 ] = hash_values[ 0 ]; hash_values[ 0 ] = t1 + t2; } /* Update the hash values in the context */ for( hash_values_index = 0; hash_values_index < 8; hash_values_index++ ) { internal_context->hash_values[ hash_values_index ] += hash_values[ hash_values_index ]; } #endif /* defined( LIBHMAC_UNFOLLED_LOOPS ) */ size -= LIBHMAC_SHA512_BLOCK_SIZE; } /* Prevent sensitive data from leaking */ if( memory_set( hash_values, 0, sizeof( uint64_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear hash values.", function ); goto on_error; } if( memory_set( values_64bit, 0, sizeof( uint64_t ) * 80 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear 64-bit values.", function ); goto on_error; } return( (ssize_t) buffer_offset ); on_error: memory_set( values_64bit, 0, sizeof( uint64_t ) * 80 ); memory_set( hash_values, 0, sizeof( uint64_t ) * 8 ); return( -1 ); } #endif /* !defined( LIBHMAC_HAVE_SHA512_SUPPORT ) */ /* Creates a SHA-512 context * Make sure the value context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libhmac_sha512_initialize( libhmac_sha512_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_initialize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid context value already set.", function ); return( -1 ); } internal_context = memory_allocate_structure( libhmac_internal_sha512_context_t ); if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create context.", function ); goto on_error; } if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha512_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); memory_free( internal_context ); return( -1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_512 ) /* Request the AES crypt provider, fail back to the RSA crypt provider */ if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT ) == 0 ) { if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create AES or RSA crypt provider.", function ); goto on_error; } } if( internal_context->crypt_provider == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: unable to create crypt provider.", function ); goto on_error; } if( CryptCreateHash( internal_context->crypt_provider, CALG_SHA_512, 0, 0, &( internal_context->hash ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create hash object.", function ); CryptReleaseContext( internal_context->crypt_provider, 0 ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA512_DIGEST_LENGTH ) if( SHA512_Init( &( internal_context->sha512_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA512 ) #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX_init( &( internal_context->internal_evp_md_context ) ); internal_context->evp_md_context = &( internal_context->internal_evp_md_context ); #else internal_context->evp_md_context = EVP_MD_CTX_new(); if( internal_context->evp_md_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create EVP message digest context.", function ); goto on_error; } #endif /* defined( HAVE_EVP_MD_CTX_INIT ) */ if( EVP_DigestInit_ex( internal_context->evp_md_context, EVP_sha512(), NULL ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); #if defined( HAVE_EVP_MD_CTX_CLEANUP ) EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ); ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif internal_context->evp_md_context = NULL; goto on_error; } #else if( memory_copy( internal_context->hash_values, libhmac_sha512_prime_square_roots, sizeof( uint64_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy initial hash values.", function ); return( -1 ); } #endif *context = (libhmac_sha512_context_t *) internal_context; return( 1 ); on_error: if( internal_context != NULL ) { memory_free( internal_context ); } return( -1 ); } /* Frees a SHA-512 context * Returns 1 if successful or -1 on error */ int libhmac_sha512_free( libhmac_sha512_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_free"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { internal_context = (libhmac_internal_sha512_context_t *) *context; *context = NULL; #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_512 ) if( internal_context->crypt_provider != 0 ) { CryptReleaseContext( internal_context->crypt_provider, 0 ); } if( internal_context->hash != 0 ) { CryptDestroyHash( internal_context->hash ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA512_DIGEST_LENGTH ) /* No additional clean up necessary */ #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA512 ) #if defined( HAVE_EVP_MD_CTX_CLEANUP ) if( EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clean up EVP message digest context.", function ); } /* Make sure the error state is removed otherwise OpenSSL will leak memory */ ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif /* defined( HAVE_EVP_MD_CTX_CLEANUP ) */ internal_context->evp_md_context = NULL; #else /* No additional clean up necessary */ #endif memory_free( internal_context ); } return( 1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_512 ) /* Updates the SHA-512 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha512_update( libhmac_sha512_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #endif if( size == 0 ) { return( 1 ); } if( CryptHashData( internal_context->hash, (BYTE *) buffer, (DWORD) size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA512_DIGEST_LENGTH ) /* Updates the SHA-512 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha512_update( libhmac_sha512_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_update"; unsigned long safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_LONG < SIZEOF_SIZE_T ) if( size > (size_t) ULONG_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } safe_hash_size = (unsigned long) size; if( SHA512_Update( &( internal_context->sha512_context ), (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA512 ) /* Updates the SHA-512 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha512_update( libhmac_sha512_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( EVP_DigestUpdate( internal_context->evp_md_context, (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #else /* Updates the SHA-512 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha512_update( libhmac_sha512_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_update"; size_t buffer_offset = 0; size_t remaining_block_size = 0; ssize_t process_count = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( internal_context->block_offset > 0 ) { remaining_block_size = LIBHMAC_SHA512_BLOCK_SIZE - internal_context->block_offset; if( remaining_block_size > size ) { remaining_block_size = size; } if( memory_copy( &( internal_context->block[ internal_context->block_offset ] ), buffer, remaining_block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data to context block.", function ); return( -1 ); } internal_context->block_offset += remaining_block_size; if( internal_context->block_offset < LIBHMAC_SHA512_BLOCK_SIZE ) { return( 1 ); } buffer_offset += remaining_block_size; size -= remaining_block_size; process_count = libhmac_sha512_transform( internal_context, internal_context->block, LIBHMAC_SHA512_BLOCK_SIZE, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } internal_context->hash_count += process_count; internal_context->block_offset = 0; } if( size > 0 ) { process_count = libhmac_sha512_transform( internal_context, &( buffer[ buffer_offset ] ), size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform buffer.", function ); return( -1 ); } internal_context->hash_count += process_count; buffer_offset += process_count; size -= process_count; } if( size > 0 ) { if( size >= LIBHMAC_SHA512_BLOCK_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } if( memory_copy( internal_context->block, &( buffer[ buffer_offset ] ), size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy remaining data to context block.", function ); return( -1 ); } internal_context->block_offset = size; } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_512 ) */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_512 ) /* Finalizes the SHA-512 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha512_finalize( libhmac_sha512_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_finalize"; DWORD safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( hash_size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } #endif if( hash_size < (size_t) LIBHMAC_SHA512_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } safe_hash_size = (DWORD) hash_size; if( CryptGetHashParam( internal_context->hash, HP_HASHVAL, (BYTE *) hash, &safe_hash_size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA512_DIGEST_LENGTH ) /* Finalizes the SHA-512 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha512_finalize( libhmac_sha512_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_finalize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA512_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } if( SHA512_Final( hash, &( internal_context->sha512_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA512 ) /* Finalizes the SHA-512 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha512_finalize( libhmac_sha512_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_finalize"; unsigned int safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) UINT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA512_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } safe_hash_size = (unsigned int) hash_size; if( EVP_DigestFinal_ex( internal_context->evp_md_context, (unsigned char *) hash, &safe_hash_size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #else /* Finalizes the SHA-512 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha512_finalize( libhmac_sha512_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha512_context_t *internal_context = NULL; static char *function = "libhmac_sha512_finalize"; size_t block_size = 0; size_t number_of_blocks = 0; ssize_t process_count = 0; uint64_t bit_size = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) size_t hash_index = 0; int hash_values_index = 0; #endif if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha512_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA512_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA512_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } /* Add padding with a size of 120 mod 128 */ number_of_blocks = 1; if( internal_context->block_offset > 119 ) { number_of_blocks += 1; } block_size = number_of_blocks * LIBHMAC_SHA512_BLOCK_SIZE; if( memory_set( &( internal_context->block[ internal_context->block_offset ] ), 0, block_size - internal_context->block_offset ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context block.", function ); return( -1 ); } /* The first byte of the padding contains 0x80 */ internal_context->block[ internal_context->block_offset ] = 0x80; bit_size = ( internal_context->hash_count + internal_context->block_offset ) * 8; byte_stream_copy_from_uint64_big_endian( &( internal_context->block[ block_size - 8 ] ), bit_size ); process_count = libhmac_sha512_transform( internal_context, internal_context->block, block_size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } #if !defined( LIBHMAC_UNFOLLED_LOOPS ) for( hash_values_index = 0; hash_values_index < 8; hash_values_index++ ) { byte_stream_copy_from_uint64_big_endian( &( hash[ hash_index ] ), internal_context->hash_values[ hash_values_index ] ); hash_index += sizeof( uint64_t ); } #else byte_stream_copy_from_uint64_big_endian( &( hash[ 0 ] ), internal_context->hash_values[ 0 ] ); byte_stream_copy_from_uint64_big_endian( &( hash[ 8 ] ), internal_context->hash_values[ 1 ] ); byte_stream_copy_from_uint64_big_endian( &( hash[ 16 ] ), internal_context->hash_values[ 2 ] ); byte_stream_copy_from_uint64_big_endian( &( hash[ 24 ] ), internal_context->hash_values[ 3 ] ); byte_stream_copy_from_uint64_big_endian( &( hash[ 32 ] ), internal_context->hash_values[ 4 ] ); byte_stream_copy_from_uint64_big_endian( &( hash[ 40 ] ), internal_context->hash_values[ 5 ] ); byte_stream_copy_from_uint64_big_endian( &( hash[ 48 ] ), internal_context->hash_values[ 6 ] ); byte_stream_copy_from_uint64_big_endian( &( hash[ 56 ] ), internal_context->hash_values[ 7 ] ); #endif /* !defined( LIBHMAC_UNFOLLED_LOOPS ) */ /* Prevent sensitive data from leaking */ if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha512_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); return( -1 ); } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_512 ) */ /* Calculates the SHA-512 of the buffer * Returns 1 if successful or -1 on error */ int libhmac_sha512_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_sha512_context_t *context = NULL; static char *function = "libhmac_sha512_calculate"; if( libhmac_sha512_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha512_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha512_finalize( context, hash, hash_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha512_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } return( 1 ); on_error: if( context != NULL ) { libhmac_sha512_free( &context, NULL ); } return( -1 ); } /* Calculates the SHA-512 HMAC of the buffer * HMAC is defined in RFC 2104 * Returns 1 if successful or -1 on error */ int libhmac_sha512_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ) { uint8_t key_hash[ LIBHMAC_SHA512_HASH_SIZE ]; libhmac_sha512_context_t *context = NULL; uint8_t *key_data = NULL; uint8_t *inner_padding = NULL; uint8_t *outer_padding = NULL; static char *function = "libhmac_sha512_calculate_hmac"; size_t block_index = 0; size_t block_size = 64; if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( key_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid key size value exceeds maximum.", function ); return( -1 ); } if( hmac_size < (size_t) LIBHMAC_SHA512_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid HMAC size value too small.", function ); return( -1 ); } key_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key data.", function ); goto on_error; } if( key_size <= block_size ) { if( memory_copy( key_data, key, key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key data.", function ); goto on_error; } if( memory_set( &( key_data[ key_size ] ), 0, block_size - key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key remaining data.", function ); goto on_error; } } else { if( libhmac_sha512_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha512_update( context, key, key_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha512_finalize( context, key_hash, LIBHMAC_SHA512_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha512_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( block_size > LIBHMAC_SHA512_HASH_SIZE ) { if( memory_set( &( key_data[ LIBHMAC_SHA512_HASH_SIZE ] ), 0, block_size - LIBHMAC_SHA512_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear remaining key data.", function ); goto on_error; } } if( memory_copy( key_data, key_hash, LIBHMAC_SHA512_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key hash data.", function ); goto on_error; } } inner_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( inner_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create inner padding.", function ); goto on_error; } if( memory_set( inner_padding, 0x36, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set inner padding.", function ); goto on_error; } outer_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( outer_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create outer padding.", function ); goto on_error; } if( memory_set( outer_padding, 0x5c, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set outer padding.", function ); goto on_error; } for( block_index = 0; block_index < block_size; block_index++ ) { inner_padding[ block_index ] ^= key_data[ block_index ]; outer_padding[ block_index ] ^= key_data[ block_index ]; } if( libhmac_sha512_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha512_update( context, inner_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha512_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha512_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha512_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( libhmac_sha512_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha512_update( context, outer_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha512_update( context, hmac, LIBHMAC_SHA512_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha512_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha512_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( memory_set( outer_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear outer padding.", function ); goto on_error; } memory_free( outer_padding ); outer_padding = NULL; if( memory_set( inner_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear inner padding.", function ); goto on_error; } memory_free( inner_padding ); inner_padding = NULL; if( memory_set( key_data, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key data.", function ); goto on_error; } memory_free( key_data ); key_data = NULL; return( 1 ); on_error: if( context != NULL ) { libhmac_sha512_free( &context, NULL ); } if( outer_padding != NULL ) { memory_set( outer_padding, 0, block_size ); memory_free( outer_padding ); } if( inner_padding != NULL ) { memory_set( inner_padding, 0, block_size ); memory_free( inner_padding ); } if( key_data != NULL ) { memory_set( key_data, 0, block_size ); memory_free( key_data ); } return( -1 ); } libfsapfs-20190210/libhmac/libhmac_sha256.h0000664000175000017500000001023213430101230022243 0ustar00lordyestalordyesta00000000000000/* * SHA-256 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_SHA256_H ) #define _LIBHMAC_SHA256_H #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #endif #include "libhmac_extern.h" #include "libhmac_libcerror.h" #include "libhmac_types.h" #if defined( __cplusplus ) extern "C" { #endif /* Make sure the WINAPI version is Vista or later otherwise * a cross compilation will contain broken SHA-256 support */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_256 ) #define LIBHMAC_HAVE_SHA256_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA256_DIGEST_LENGTH ) #define LIBHMAC_HAVE_SHA256_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA256 ) #define LIBHMAC_HAVE_SHA256_SUPPORT #endif #if !defined( LIBHMAC_HAVE_SHA256_SUPPORT ) #define LIBHMAC_SHA256_BLOCK_SIZE 64 #endif typedef struct libhmac_internal_sha256_context libhmac_internal_sha256_context_t; struct libhmac_internal_sha256_context { #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_256 ) /* The crypto provider handle */ HCRYPTPROV crypt_provider; /* The crypto hash handle */ HCRYPTHASH hash; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA256_DIGEST_LENGTH ) /* The SHA-256 context */ SHA256_CTX sha256_context; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA256 ) /* The EVP message digest context */ #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX internal_evp_md_context; #endif EVP_MD_CTX *evp_md_context; #else /* The number of bytes hashed */ uint64_t hash_count; /* The 32-bit hash values */ uint32_t hash_values[ 8 ]; /* The block offset */ size_t block_offset; /* The (data) block */ uint8_t block[ 128 ]; #endif }; #if !defined( LIBHMAC_HAVE_SHA256_SUPPORT ) ssize_t libhmac_sha256_transform( libhmac_internal_sha256_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); #endif /* !defined( LIBHMAC_HAVE_SHA256_SUPPORT ) */ LIBHMAC_EXTERN \ int libhmac_sha256_initialize( libhmac_sha256_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha256_free( libhmac_sha256_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha256_update( libhmac_sha256_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha256_finalize( libhmac_sha256_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha256_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha256_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_SHA256_H ) */ libfsapfs-20190210/libhmac/libhmac_support.h0000664000175000017500000000224313430101230022752 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_SUPPORT_H ) #define _LIBHMAC_SUPPORT_H #include #include #include "libhmac_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBHMAC ) LIBHMAC_EXTERN \ const char *libhmac_get_version( void ); #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_SUPPORT_H ) */ libfsapfs-20190210/libhmac/libhmac_md5.c0000664000175000017500000015511213430101230021722 0ustar00lordyestalordyesta00000000000000/* * MD5 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #include #endif #include "libhmac_byte_stream.h" #include "libhmac_definitions.h" #include "libhmac_libcerror.h" #include "libhmac_md5.h" #if !defined( LIBHMAC_HAVE_MD5_SUPPORT ) /* RFC 1321 based MD5 functions */ /* TODO decription what these values are based on */ uint32_t libhmac_md5_fixed_constants[ 4 ] = { 0x67452301UL, 0xefcdab89UL, 0x98badcfeUL, 0x10325476UL }; /* The first 32-bits of the sines (in radians) of the first 64 integers [ 0, 63 ] */ uint32_t libhmac_md5_sines[ 64 ] = { 0xd76aa478UL, 0xe8c7b756UL, 0x242070dbUL, 0xc1bdceeeUL, 0xf57c0fafUL, 0x4787c62aUL, 0xa8304613UL, 0xfd469501UL, 0x698098d8UL, 0x8b44f7afUL, 0xffff5bb1UL, 0x895cd7beUL, 0x6b901122UL, 0xfd987193UL, 0xa679438eUL, 0x49b40821UL, 0xf61e2562UL, 0xc040b340UL, 0x265e5a51UL, 0xe9b6c7aaUL, 0xd62f105dUL, 0x02441453UL, 0xd8a1e681UL, 0xe7d3fbc8UL, 0x21e1cde6UL, 0xc33707d6UL, 0xf4d50d87UL, 0x455a14edUL, 0xa9e3e905UL, 0xfcefa3f8UL, 0x676f02d9UL, 0x8d2a4c8aUL, 0xfffa3942UL, 0x8771f681UL, 0x6d9d6122UL, 0xfde5380cUL, 0xa4beea44UL, 0x4bdecfa9UL, 0xf6bb4b60UL, 0xbebfbc70UL, 0x289b7ec6UL, 0xeaa127faUL, 0xd4ef3085UL, 0x04881d05UL, 0xd9d4d039UL, 0xe6db99e5UL, 0x1fa27cf8UL, 0xc4ac5665UL, 0xf4292244UL, 0x432aff97UL, 0xab9423a7UL, 0xfc93a039UL, 0x655b59c3UL, 0x8f0ccc92UL, 0xffeff47dUL, 0x85845dd1UL, 0x6fa87e4fUL, 0xfe2ce6e0UL, 0xa3014314UL, 0x4e0811a1UL, 0xf7537e82UL, 0xbd3af235UL, 0x2ad7d2bbUL, 0xeb86d391UL }; /* The bit shifts */ uint8_t libhmac_md5_bit_shifts[ 64 ] = { 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21 }; /* The 32-bit values indexes * [ 0, 15 ] => index * [ 16, 31 ] => ( ( 5 x index ) + 1 ) mod 16 * [ 32, 47 ] => ( ( 3 x index ) + 5 ) mod 16 * [ 48, 63 ] => ( 7 x index ) mod 16 */ uint8_t libhmac_md5_values_32bit_index[ 64 ] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1, 6, 11, 0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, 5, 8, 11, 14, 1, 4, 7, 10, 13, 0, 3, 6, 9, 12, 15, 2, 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9 }; #define libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, block_index ) \ hash_values[ hash_value_index0 ] += ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index2 ] ) \ | ( ~( hash_values[ hash_value_index1 ] ) & hash_values[ hash_value_index3 ] ); \ hash_values[ hash_value_index0 ] += values_32bit[ value_32bit_index ]; \ hash_values[ hash_value_index0 ] += libhmac_md5_sines[ block_index ]; \ \ hash_values[ hash_value_index0 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ libhmac_md5_bit_shifts[ block_index ] ); \ \ hash_values[ hash_value_index0 ] += hash_values[ hash_value_index1 ]; #define libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, block_index ) \ hash_values[ hash_value_index0 ] += ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index3 ] ) \ | ( hash_values[ hash_value_index2 ] & ~( hash_values[ hash_value_index3 ] ) ); \ hash_values[ hash_value_index0 ] += values_32bit[ value_32bit_index ]; \ hash_values[ hash_value_index0 ] += libhmac_md5_sines[ block_index ]; \ \ hash_values[ hash_value_index0 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ libhmac_md5_bit_shifts[ block_index ] ); \ \ hash_values[ hash_value_index0 ] += hash_values[ hash_value_index1 ]; #define libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, block_index ) \ hash_values[ hash_value_index0 ] += hash_values[ hash_value_index1 ] \ ^ hash_values[ hash_value_index2 ] \ ^ hash_values[ hash_value_index3 ]; \ hash_values[ hash_value_index0 ] += values_32bit[ value_32bit_index ]; \ hash_values[ hash_value_index0 ] += libhmac_md5_sines[ block_index ]; \ \ hash_values[ hash_value_index0 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ libhmac_md5_bit_shifts[ block_index ] ); \ \ hash_values[ hash_value_index0 ] += hash_values[ hash_value_index1 ]; #define libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, block_index ) \ hash_values[ hash_value_index0 ] += hash_values[ hash_value_index2 ] \ ^ ( hash_values[ hash_value_index1 ] | ~( hash_values[ hash_value_index3 ] ) ); \ hash_values[ hash_value_index0 ] += values_32bit[ value_32bit_index ]; \ hash_values[ hash_value_index0 ] += libhmac_md5_sines[ block_index ]; \ \ hash_values[ hash_value_index0 ] = byte_stream_bit_rotate_left_32bit( \ hash_values[ hash_value_index0 ], \ libhmac_md5_bit_shifts[ block_index ] ); \ \ hash_values[ hash_value_index0 ] += hash_values[ hash_value_index1 ]; #define libhmac_md5_transform_unfolded_calculate_hash_values( values_32bit, hash_values ) \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 0, hash_values, 0, 1, 2, 3, 0 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 1, hash_values, 3, 0, 1, 2, 1 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 2, hash_values, 2, 3, 0, 1, 2 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 3, hash_values, 1, 2, 3, 0, 3 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 4, hash_values, 0, 1, 2, 3, 4 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 5, hash_values, 3, 0, 1, 2, 5 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 6, hash_values, 2, 3, 0, 1, 6 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 7, hash_values, 1, 2, 3, 0, 7 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 8, hash_values, 0, 1, 2, 3, 8 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 9, hash_values, 3, 0, 1, 2, 9 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 10, hash_values, 2, 3, 0, 1, 10 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 11, hash_values, 1, 2, 3, 0, 11 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 12, hash_values, 0, 1, 2, 3, 12 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 13, hash_values, 3, 0, 1, 2, 13 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 14, hash_values, 2, 3, 0, 1, 14 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round1( values_32bit, 15, hash_values, 1, 2, 3, 0, 15 ); \ \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 1, hash_values, 0, 1, 2, 3, 16 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 6, hash_values, 3, 0, 1, 2, 17 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 11, hash_values, 2, 3, 0, 1, 18 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 0, hash_values, 1, 2, 3, 0, 19 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 5, hash_values, 0, 1, 2, 3, 20 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 10, hash_values, 3, 0, 1, 2, 21 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 15, hash_values, 2, 3, 0, 1, 22 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 4, hash_values, 1, 2, 3, 0, 23 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 9, hash_values, 0, 1, 2, 3, 24 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 14, hash_values, 3, 0, 1, 2, 25 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 3, hash_values, 2, 3, 0, 1, 26 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 8, hash_values, 1, 2, 3, 0, 27 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 13, hash_values, 0, 1, 2, 3, 28 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 2, hash_values, 3, 0, 1, 2, 29 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 7, hash_values, 2, 3, 0, 1, 30 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round2( values_32bit, 12, hash_values, 1, 2, 3, 0, 31 ); \ \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 5, hash_values, 0, 1, 2, 3, 32 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 8, hash_values, 3, 0, 1, 2, 33 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 11, hash_values, 2, 3, 0, 1, 34 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 14, hash_values, 1, 2, 3, 0, 35 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 1, hash_values, 0, 1, 2, 3, 36 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 4, hash_values, 3, 0, 1, 2, 37 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 7, hash_values, 2, 3, 0, 1, 38 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 10, hash_values, 1, 2, 3, 0, 39 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 13, hash_values, 0, 1, 2, 3, 40 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 0, hash_values, 3, 0, 1, 2, 41 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 3, hash_values, 2, 3, 0, 1, 42 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 6, hash_values, 1, 2, 3, 0, 43 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 9, hash_values, 0, 1, 2, 3, 44 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 12, hash_values, 3, 0, 1, 2, 45 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 15, hash_values, 2, 3, 0, 1, 46 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round3( values_32bit, 2, hash_values, 1, 2, 3, 0, 47 ); \ \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 0, hash_values, 0, 1, 2, 3, 48 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 7, hash_values, 3, 0, 1, 2, 49 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 14, hash_values, 2, 3, 0, 1, 50 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 5, hash_values, 1, 2, 3, 0, 51 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 12, hash_values, 0, 1, 2, 3, 52 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 3, hash_values, 3, 0, 1, 2, 53 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 10, hash_values, 2, 3, 0, 1, 54 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 1, hash_values, 1, 2, 3, 0, 55 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 8, hash_values, 0, 1, 2, 3, 56 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 15, hash_values, 3, 0, 1, 2, 57 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 6, hash_values, 2, 3, 0, 1, 58 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 13, hash_values, 1, 2, 3, 0, 59 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 4, hash_values, 0, 1, 2, 3, 60 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 11, hash_values, 3, 0, 1, 2, 61 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 2, hash_values, 2, 3, 0, 1, 62 ); \ libhmac_md5_transform_unfolded_calculate_hash_value_round4( values_32bit, 9, hash_values, 1, 2, 3, 0, 63 ); /* Calculates the MD5 of 64 byte sized blocks of data in a buffer * Returns the number of bytes used if successful or -1 on error */ ssize_t libhmac_md5_transform( libhmac_internal_md5_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { uint32_t hash_values[ 4 ]; uint32_t values_32bit[ 16 ]; static char *function = "libhmac_md5_transform"; size_t buffer_offset = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) uint32_t hash_value = 0; uint8_t block_index = 0; uint8_t hash_values_index = 0; uint8_t value_32bit_index = 0; #endif if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid internal context.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } while( size >= LIBHMAC_MD5_BLOCK_SIZE ) { if( memory_copy( hash_values, internal_context->hash_values, sizeof( uint32_t ) * 4 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy hash values.", function ); goto on_error; } #if defined( LIBHMAC_UNFOLLED_LOOPS ) /* Break the block into 16 x 32-bit values */ libhmac_byte_stream_copy_to_16x_uint32_little_endian( &( buffer[ buffer_offset ] ), values_32bit ); buffer_offset += LIBHMAC_MD5_BLOCK_SIZE; /* Calculate the hash values for the 32-bit values */ libhmac_md5_transform_unfolded_calculate_hash_values( values_32bit, hash_values ); /* Update the hash values in the context */ internal_context->hash_values[ 0 ] += hash_values[ 0 ]; internal_context->hash_values[ 1 ] += hash_values[ 1 ]; internal_context->hash_values[ 2 ] += hash_values[ 2 ]; internal_context->hash_values[ 3 ] += hash_values[ 3 ]; #else /* Break the block into 16 x 32-bit values */ for( value_32bit_index = 0; value_32bit_index < 16; value_32bit_index++ ) { byte_stream_copy_to_uint32_little_endian( &( buffer[ buffer_offset ] ), values_32bit[ value_32bit_index ] ); buffer_offset += sizeof( uint32_t ); } /* Calculate the hash values for the 32-bit values */ for( block_index = 0; block_index < 64; block_index++ ) { if( block_index < 16 ) { hash_values[ 0 ] += ( hash_values[ 1 ] & hash_values[ 2 ] ) | ( ~( hash_values[ 1 ] ) & hash_values[ 3 ] ); } else if( block_index < 32 ) { hash_values[ 0 ] += ( hash_values[ 1 ] & hash_values[ 3 ] ) | ( hash_values[ 2 ] & ~( hash_values[ 3 ] ) ); } else if( block_index < 48 ) { hash_values[ 0 ] += hash_values[ 1 ] ^ hash_values[ 2 ] ^ hash_values[ 3 ]; } else { hash_values[ 0 ] += hash_values[ 2 ] ^ ( hash_values[ 1 ] | ~( hash_values[ 3 ] ) ); } value_32bit_index = libhmac_md5_values_32bit_index[ block_index ]; hash_values[ 0 ] += values_32bit[ value_32bit_index ]; hash_values[ 0 ] += libhmac_md5_sines[ block_index ]; hash_values[ 0 ] = byte_stream_bit_rotate_left_32bit( hash_values[ 0 ], libhmac_md5_bit_shifts[ block_index ] ); hash_value = hash_values[ 3 ]; hash_values[ 3 ] = hash_values[ 2 ]; hash_values[ 2 ] = hash_values[ 1 ]; hash_values[ 1 ] += hash_values[ 0 ]; hash_values[ 0 ] = hash_value; } /* Update the hash values in the context */ for( hash_values_index = 0; hash_values_index < 4; hash_values_index++ ) { internal_context->hash_values[ hash_values_index ] += hash_values[ hash_values_index ]; } #endif /* defined( LIBHMAC_UNFOLLED_LOOPS ) */ size -= LIBHMAC_MD5_BLOCK_SIZE; } /* Prevent sensitive data from leaking */ if( memory_set( hash_values, 0, sizeof( uint32_t ) * 4 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear hash values.", function ); goto on_error; } if( memory_set( values_32bit, 0, sizeof( uint32_t ) * 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear 32-bit values.", function ); goto on_error; } return( (ssize_t) buffer_offset ); on_error: memory_set( values_32bit, 0, sizeof( uint32_t ) * 16 ); memory_set( hash_values, 0, sizeof( uint32_t ) * 4 ); return( -1 ); } #endif /* !defined( LIBHMAC_HAVE_MD5_SUPPORT ) */ /* Creates a MD5 context * Make sure the value context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libhmac_md5_initialize( libhmac_md5_context_t **context, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_initialize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid context value already set.", function ); return( -1 ); } internal_context = memory_allocate_structure( libhmac_internal_md5_context_t ); if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create context.", function ); goto on_error; } if( memory_set( internal_context, 0, sizeof( libhmac_internal_md5_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); memory_free( internal_context ); return( -1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) /* Request the AES crypt provider, fail back to the RSA crypt provider */ if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT ) == 0 ) { if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create AES or RSA crypt provider.", function ); goto on_error; } } if( internal_context->crypt_provider == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: unable to create crypt provider.", function ); goto on_error; } if( CryptCreateHash( internal_context->crypt_provider, CALG_MD5, 0, 0, &( internal_context->hash ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create hash object.", function ); CryptReleaseContext( internal_context->crypt_provider, 0 ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) && defined( MD5_DIGEST_LENGTH ) if( MD5_Init( &( internal_context->md5_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_MD5 ) #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX_init( &( internal_context->internal_evp_md_context ) ); internal_context->evp_md_context = &( internal_context->internal_evp_md_context ); #else internal_context->evp_md_context = EVP_MD_CTX_new(); if( internal_context->evp_md_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create EVP message digest context.", function ); goto on_error; } #endif /* defined( HAVE_EVP_MD_CTX_INIT ) */ if( EVP_DigestInit_ex( internal_context->evp_md_context, EVP_md5(), NULL ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize EVP message digest context.", function ); #if defined( HAVE_EVP_MD_CTX_CLEANUP ) EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ); ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif internal_context->evp_md_context = NULL; goto on_error; } #else if( memory_copy( internal_context->hash_values, libhmac_md5_fixed_constants, sizeof( uint32_t ) * 4 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy fixed constants to hash values.", function ); goto on_error; } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) */ *context = (libhmac_md5_context_t *) internal_context; return( 1 ); on_error: if( internal_context != NULL ) { memory_free( internal_context ); } return( -1 ); } /* Frees a MD5 context * Returns 1 if successful or -1 on error */ int libhmac_md5_free( libhmac_md5_context_t **context, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_free"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { internal_context = (libhmac_internal_md5_context_t *) *context; *context = NULL; #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) if( internal_context->crypt_provider != 0 ) { CryptReleaseContext( internal_context->crypt_provider, 0 ); } if( internal_context->hash != 0 ) { CryptDestroyHash( internal_context->hash ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) && defined( MD5_DIGEST_LENGTH ) /* No additional clean up necessary */ #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_MD5 ) #if defined( HAVE_EVP_MD_CTX_CLEANUP ) if( EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clean up EVP message digest context.", function ); } /* Make sure the error state is removed otherwise OpenSSL will leak memory */ ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif /* defined( HAVE_EVP_MD_CTX_CLEANUP ) */ internal_context->evp_md_context = NULL; #else /* No additional clean up necessary */ #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) */ memory_free( internal_context ); } return( 1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) /* Updates the MD5 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_md5_update( libhmac_md5_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #endif if( size == 0 ) { return( 1 ); } if( CryptHashData( internal_context->hash, (BYTE *) buffer, (DWORD) size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) && defined( MD5_DIGEST_LENGTH ) /* Updates the MD5 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_md5_update( libhmac_md5_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_update"; unsigned long safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_LONG < SIZEOF_SIZE_T ) if( size > (size_t) ULONG_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } safe_hash_size = (unsigned long) size; if( MD5_Update( &( internal_context->md5_context ), (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_MD5 ) /* Updates the MD5 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_md5_update( libhmac_md5_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( EVP_DigestUpdate( internal_context->evp_md_context, (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #else /* Updates the MD5 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_md5_update( libhmac_md5_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_update"; size_t buffer_offset = 0; size_t remaining_block_size = 0; ssize_t process_count = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( internal_context->block_offset > 0 ) { remaining_block_size = LIBHMAC_MD5_BLOCK_SIZE - internal_context->block_offset; if( remaining_block_size > size ) { remaining_block_size = size; } if( memory_copy( &( internal_context->block[ internal_context->block_offset ] ), buffer, remaining_block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data to context block.", function ); return( -1 ); } internal_context->block_offset += remaining_block_size; if( internal_context->block_offset < LIBHMAC_MD5_BLOCK_SIZE ) { return( 1 ); } buffer_offset += remaining_block_size; size -= remaining_block_size; process_count = libhmac_md5_transform( internal_context, internal_context->block, LIBHMAC_MD5_BLOCK_SIZE, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } internal_context->hash_count += process_count; internal_context->block_offset = 0; } if( size > 0 ) { process_count = libhmac_md5_transform( internal_context, &( buffer[ buffer_offset ] ), size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform buffer.", function ); return( -1 ); } internal_context->hash_count += process_count; buffer_offset += process_count; size -= process_count; } if( size > 0 ) { if( size >= LIBHMAC_MD5_BLOCK_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } if( memory_copy( internal_context->block, &( buffer[ buffer_offset ] ), size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy remaining data to context block.", function ); return( -1 ); } internal_context->block_offset = size; } return( 1 ); } #endif /* if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) /* Finalizes the MD5 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_md5_finalize( libhmac_md5_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_finalize"; DWORD safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( hash_size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } #endif if( hash_size < (size_t) LIBHMAC_MD5_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } safe_hash_size = (DWORD) hash_size; if( CryptGetHashParam( internal_context->hash, HP_HASHVAL, (BYTE *) hash, &safe_hash_size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_MD5_H ) && defined( MD5_DIGEST_LENGTH ) /* Finalizes the MD5 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_md5_finalize( libhmac_md5_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_finalize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_MD5_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } if( MD5_Final( hash, &( internal_context->md5_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_MD5 ) /* Finalizes the MD5 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_md5_finalize( libhmac_md5_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_finalize"; unsigned int safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) UINT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_MD5_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } safe_hash_size = (unsigned int) hash_size; if( EVP_DigestFinal_ex( internal_context->evp_md_context, (unsigned char *) hash, &safe_hash_size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #else /* Finalizes the MD5 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_md5_finalize( libhmac_md5_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_md5_context_t *internal_context = NULL; static char *function = "libhmac_md5_finalize"; size_t block_size = 0; size_t number_of_blocks = 0; ssize_t process_count = 0; uint64_t bit_size = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) size_t hash_index = 0; int hash_values_index = 0; #endif if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_md5_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_MD5_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } /* Add padding with a size of 56 mod 64 */ number_of_blocks = 1; if( internal_context->block_offset > 55 ) { number_of_blocks += 1; } block_size = number_of_blocks * LIBHMAC_MD5_BLOCK_SIZE; if( memory_set( &( internal_context->block[ internal_context->block_offset ] ), 0, block_size - internal_context->block_offset ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context block.", function ); return( -1 ); } /* The first byte of the padding contains 0x80 */ internal_context->block[ internal_context->block_offset ] = 0x80; bit_size = ( internal_context->hash_count + internal_context->block_offset ) * 8; byte_stream_copy_from_uint64_little_endian( &( internal_context->block[ block_size - 8 ] ), bit_size ); process_count = libhmac_md5_transform( internal_context, internal_context->block, block_size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } #if !defined( LIBHMAC_UNFOLLED_LOOPS ) for( hash_values_index = 0; hash_values_index < 4; hash_values_index++ ) { byte_stream_copy_from_uint32_little_endian( &( hash[ hash_index ] ), internal_context->hash_values[ hash_values_index ] ); hash_index += sizeof( uint32_t ); } #else byte_stream_copy_from_uint32_little_endian( &( hash[ 0 ] ), internal_context->hash_values[ 0 ] ); byte_stream_copy_from_uint32_little_endian( &( hash[ 4 ] ), internal_context->hash_values[ 1 ] ); byte_stream_copy_from_uint32_little_endian( &( hash[ 8 ] ), internal_context->hash_values[ 2 ] ); byte_stream_copy_from_uint32_little_endian( &( hash[ 12 ] ), internal_context->hash_values[ 3 ] ); #endif /* !defined( LIBHMAC_UNFOLLED_LOOPS ) */ /* Prevent sensitive data from leaking */ if( memory_set( internal_context, 0, sizeof( libhmac_internal_md5_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); return( -1 ); } return( 1 ); } #endif /* if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_MD5 ) */ /* Calculates the MD5 of the buffer * Returns 1 if successful or -1 on error */ int libhmac_md5_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_md5_context_t *context = NULL; static char *function = "libhmac_md5_calculate"; if( libhmac_md5_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_md5_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_md5_finalize( context, hash, hash_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_md5_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } return( 1 ); on_error: if( context != NULL ) { libhmac_md5_free( &context, NULL ); } return( -1 ); } /* Calculates the MD5 HMAC of the buffer * HMAC is defined in RFC 2104 * Returns 1 if successful or -1 on error */ int libhmac_md5_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ) { uint8_t key_hash[ LIBHMAC_MD5_HASH_SIZE ]; libhmac_md5_context_t *context = NULL; uint8_t *key_data = NULL; uint8_t *inner_padding = NULL; uint8_t *outer_padding = NULL; static char *function = "libhmac_md5_calculate_hmac"; size_t block_index = 0; size_t block_size = 64; if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( key_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid key size value exceeds maximum.", function ); return( -1 ); } if( hmac_size < (size_t) LIBHMAC_MD5_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid HMAC size value too small.", function ); return( -1 ); } key_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key data.", function ); goto on_error; } if( key_size <= block_size ) { if( memory_copy( key_data, key, key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key data.", function ); goto on_error; } if( memory_set( &( key_data[ key_size ] ), 0, block_size - key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key remaining data.", function ); goto on_error; } } else { if( libhmac_md5_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_md5_update( context, key, key_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_md5_finalize( context, key_hash, LIBHMAC_MD5_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_md5_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( block_size > LIBHMAC_MD5_HASH_SIZE ) { if( memory_set( &( key_data[ LIBHMAC_MD5_HASH_SIZE ] ), 0, block_size - LIBHMAC_MD5_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear remaining key data.", function ); goto on_error; } } if( memory_copy( key_data, key_hash, LIBHMAC_MD5_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key hash data.", function ); goto on_error; } } inner_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( inner_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create inner padding.", function ); goto on_error; } if( memory_set( inner_padding, 0x36, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set inner padding.", function ); goto on_error; } outer_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( outer_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create outer padding.", function ); goto on_error; } if( memory_set( outer_padding, 0x5c, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set outer padding.", function ); goto on_error; } for( block_index = 0; block_index < block_size; block_index++ ) { inner_padding[ block_index ] ^= key_data[ block_index ]; outer_padding[ block_index ] ^= key_data[ block_index ]; } if( libhmac_md5_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_md5_update( context, inner_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_md5_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_md5_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_md5_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( libhmac_md5_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_md5_update( context, outer_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_md5_update( context, hmac, LIBHMAC_MD5_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_md5_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_md5_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( memory_set( outer_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear outer padding.", function ); goto on_error; } memory_free( outer_padding ); outer_padding = NULL; if( memory_set( inner_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear inner padding.", function ); goto on_error; } memory_free( inner_padding ); inner_padding = NULL; if( memory_set( key_data, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key data.", function ); goto on_error; } memory_free( key_data ); key_data = NULL; return( 1 ); on_error: if( context != NULL ) { libhmac_md5_free( &context, NULL ); } if( outer_padding != NULL ) { memory_set( outer_padding, 0, block_size ); memory_free( outer_padding ); } if( inner_padding != NULL ) { memory_set( inner_padding, 0, block_size ); memory_free( inner_padding ); } if( key_data != NULL ) { memory_set( key_data, 0, block_size ); memory_free( key_data ); } return( -1 ); } libfsapfs-20190210/libhmac/libhmac_libcerror.h0000664000175000017500000000263513430101230023226 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_LIBCERROR_H ) #define _LIBHMAC_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBHMAC_LIBCERROR_H ) */ libfsapfs-20190210/libhmac/libhmac_extern.h0000664000175000017500000000237213430101230022546 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_INTERNAL_EXTERN_H ) #define _LIBHMAC_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBHMAC for local use of libhmac */ #if !defined( HAVE_LOCAL_LIBHMAC ) #include #define LIBHMAC_EXTERN_VARIABLE LIBHMAC_EXTERN #else #define LIBHMAC_EXTERN /* extern */ #define LIBHMAC_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBHMAC ) */ #endif /* !defined( _LIBHMAC_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libhmac/libhmac_sha224.c0000664000175000017500000016637213430101230022252 0ustar00lordyestalordyesta00000000000000/* * SHA-224 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #include #endif #include "libhmac_byte_stream.h" #include "libhmac_definitions.h" #include "libhmac_libcerror.h" #include "libhmac_sha224.h" #if !defined( LIBHMAC_HAVE_SHA224_SUPPORT ) /* FIPS 180-2 based SHA-224 functions */ /* The first 32-bits of the fractional parts of the square roots of the first 8 primes [ 2, 19 ] */ uint32_t libhmac_sha224_prime_square_roots[ 8 ] = { 0xc1059ed8UL, 0x367cd507UL, 0x3070dd17UL, 0xf70e5939UL, 0xffc00b31UL, 0x68581511UL, 0x64f98fa7UL, 0xbefa4fa4UL }; /* The first 32-bits of the fractional parts of the cube roots of the first 64 primes [ 2, 311 ] */ uint32_t libhmac_sha224_prime_cube_roots[ 64 ] = { 0x428a2f98UL, 0x71374491UL, 0xb5c0fbcfUL, 0xe9b5dba5UL, 0x3956c25bUL, 0x59f111f1UL, 0x923f82a4UL, 0xab1c5ed5UL, 0xd807aa98UL, 0x12835b01UL, 0x243185beUL, 0x550c7dc3UL, 0x72be5d74UL, 0x80deb1feUL, 0x9bdc06a7UL, 0xc19bf174UL, 0xe49b69c1UL, 0xefbe4786UL, 0x0fc19dc6UL, 0x240ca1ccUL, 0x2de92c6fUL, 0x4a7484aaUL, 0x5cb0a9dcUL, 0x76f988daUL, 0x983e5152UL, 0xa831c66dUL, 0xb00327c8UL, 0xbf597fc7UL, 0xc6e00bf3UL, 0xd5a79147UL, 0x06ca6351UL, 0x14292967UL, 0x27b70a85UL, 0x2e1b2138UL, 0x4d2c6dfcUL, 0x53380d13UL, 0x650a7354UL, 0x766a0abbUL, 0x81c2c92eUL, 0x92722c85UL, 0xa2bfe8a1UL, 0xa81a664bUL, 0xc24b8b70UL, 0xc76c51a3UL, 0xd192e819UL, 0xd6990624UL, 0xf40e3585UL, 0x106aa070UL, 0x19a4c116UL, 0x1e376c08UL, 0x2748774cUL, 0x34b0bcb5UL, 0x391c0cb3UL, 0x4ed8aa4aUL, 0x5b9cca4fUL, 0x682e6ff3UL, 0x748f82eeUL, 0x78a5636fUL, 0x84c87814UL, 0x8cc70208UL, 0x90befffaUL, 0xa4506cebUL, 0xbef9a3f7UL, 0xc67178f2UL }; #define libhmac_sha224_transform_extend_32bit_value( values_32bit, value_32bit_index, s0, s1 ) \ s0 = byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 15 ], 7 ) \ ^ byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 15 ], 18 ) \ ^ ( values_32bit[ value_32bit_index - 15 ] >> 3 ); \ s1 = byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 2 ], 17 ) \ ^ byte_stream_bit_rotate_right_32bit( values_32bit[ value_32bit_index - 2 ], 19 ) \ ^ ( values_32bit[ value_32bit_index - 2 ] >> 10 ); \ \ values_32bit[ value_32bit_index ] = values_32bit[ value_32bit_index - 16 ] \ + s0 \ + values_32bit[ value_32bit_index - 7 ] \ + s1 #define libhmac_sha224_transform_unfolded_extend_32bit_values( values_32bit, s0, s1 ) \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 16, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 17, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 18, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 19, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 20, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 21, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 22, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 23, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 24, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 25, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 26, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 27, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 28, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 29, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 30, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 31, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 32, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 33, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 34, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 35, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 36, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 37, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 38, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 39, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 40, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 41, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 42, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 43, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 44, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 45, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 46, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 47, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 48, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 49, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 50, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 51, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 52, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 53, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 54, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 55, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 56, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 57, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 58, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 59, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 60, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 61, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 62, s0, s1 ); \ libhmac_sha224_transform_extend_32bit_value( values_32bit, 63, s0, s1 ); #define libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, value_32bit_index, hash_values, hash_value_index0, hash_value_index1, hash_value_index2, hash_value_index3, hash_value_index4, hash_value_index5, hash_value_index6, hash_value_index7, s0, s1, t1, t2 ) \ s0 = byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index0 ], 2 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index0 ], 13 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index0 ], 22 ); \ s1 = byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index4 ], 6 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index4 ], 11 ) \ ^ byte_stream_bit_rotate_right_32bit( hash_values[ hash_value_index4 ], 25 ); \ \ t1 = hash_values[ hash_value_index7 ]; \ t1 += s1; \ t1 += ( hash_values[ hash_value_index4 ] & hash_values[ hash_value_index5 ] ) \ ^ ( ~( hash_values[ hash_value_index4 ] ) & hash_values[ hash_value_index6 ] ); \ t1 += libhmac_sha224_prime_cube_roots[ value_32bit_index ]; \ t1 += values_32bit[ value_32bit_index ]; \ t2 = s0; \ t2 += ( hash_values[ hash_value_index0 ] & hash_values[ hash_value_index1 ] ) \ ^ ( hash_values[ hash_value_index0 ] & hash_values[ hash_value_index2 ] ) \ ^ ( hash_values[ hash_value_index1 ] & hash_values[ hash_value_index2 ] ); \ \ hash_values[ hash_value_index3 ] += t1; \ hash_values[ hash_value_index7 ] = t1 + t2; #define libhmac_sha224_transform_unfolded_calculate_hash_values( values_32bit, hash_values, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 0, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 1, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 2, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 3, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 4, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 5, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 6, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 7, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 8, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 9, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 10, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 11, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 12, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 13, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 14, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 15, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 16, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 17, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 18, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 19, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 20, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 21, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 22, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 23, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 24, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 25, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 26, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 27, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 28, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 29, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 30, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 31, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 32, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 33, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 34, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 35, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 36, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 37, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 38, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 39, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 40, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 41, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 42, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 43, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 44, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 45, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 46, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 47, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 48, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 49, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 50, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 51, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 52, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 53, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 54, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 55, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 56, hash_values, 0, 1, 2, 3, 4, 5, 6, 7, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 57, hash_values, 7, 0, 1, 2, 3, 4, 5, 6, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 58, hash_values, 6, 7, 0, 1, 2, 3, 4, 5, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 59, hash_values, 5, 6, 7, 0, 1, 2, 3, 4, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 60, hash_values, 4, 5, 6, 7, 0, 1, 2, 3, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 61, hash_values, 3, 4, 5, 6, 7, 0, 1, 2, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 62, hash_values, 2, 3, 4, 5, 6, 7, 0, 1, s0, s1, t1, t2 ) \ libhmac_sha224_transform_unfolded_calculate_hash_value( values_32bit, 63, hash_values, 1, 2, 3, 4, 5, 6, 7, 0, s0, s1, t1, t2 ) /* Calculates the SHA-224 of 64 byte sized blocks of data in a buffer * Returns the number of bytes used if successful or -1 on error */ ssize_t libhmac_sha224_transform( libhmac_internal_sha224_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { uint32_t hash_values[ 8 ]; uint32_t values_32bit[ 64 ]; static char *function = "libhmac_sha224_transform"; uint32_t s0 = 0; uint32_t s1 = 0; uint32_t t1 = 0; uint32_t t2 = 0; size_t buffer_offset = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) uint8_t hash_values_index = 0; uint8_t value_32bit_index = 0; #endif if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid internal context.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } while( size >= LIBHMAC_SHA224_BLOCK_SIZE ) { if( memory_copy( hash_values, internal_context->hash_values, sizeof( uint32_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy hash values.", function ); goto on_error; } #if defined( LIBHMAC_UNFOLLED_LOOPS ) /* Break the block into 16 x 32-bit values */ libhmac_byte_stream_copy_to_16x_uint32_big_endian( &( buffer[ buffer_offset ] ), values_32bit ); buffer_offset += LIBHMAC_SHA224_BLOCK_SIZE; /* Extend to 64 x 32-bit values */ libhmac_sha224_transform_unfolded_extend_32bit_values( values_32bit, s0, s1 ); /* Calculate the hash values for the 32-bit values */ libhmac_sha224_transform_unfolded_calculate_hash_values( values_32bit, hash_values, s0, s1, t1, t2 ); /* Update the hash values in the context */ internal_context->hash_values[ 0 ] += hash_values[ 0 ]; internal_context->hash_values[ 1 ] += hash_values[ 1 ]; internal_context->hash_values[ 2 ] += hash_values[ 2 ]; internal_context->hash_values[ 3 ] += hash_values[ 3 ]; internal_context->hash_values[ 4 ] += hash_values[ 4 ]; internal_context->hash_values[ 5 ] += hash_values[ 5 ]; internal_context->hash_values[ 6 ] += hash_values[ 6 ]; internal_context->hash_values[ 7 ] += hash_values[ 7 ]; #else /* Break the block into 16 x 32-bit values */ for( value_32bit_index = 0; value_32bit_index < 16; value_32bit_index++ ) { byte_stream_copy_to_uint32_big_endian( &( buffer[ buffer_offset ] ), values_32bit[ value_32bit_index ] ); buffer_offset += sizeof( uint32_t ); } /* Extend to 64 x 32-bit values */ for( value_32bit_index = 16; value_32bit_index < 64; value_32bit_index++ ) { libhmac_sha224_transform_extend_32bit_value( values_32bit, value_32bit_index, s0, s1 ); } /* Calculate the hash values for the 32-bit values */ for( value_32bit_index = 0; value_32bit_index < 64; value_32bit_index++ ) { s0 = byte_stream_bit_rotate_right_32bit( hash_values[ 0 ], 2 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 0 ], 13 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 0 ], 22 ); s1 = byte_stream_bit_rotate_right_32bit( hash_values[ 4 ], 6 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 4 ], 11 ) ^ byte_stream_bit_rotate_right_32bit( hash_values[ 4 ], 25 ); t1 = hash_values[ 7 ]; t1 += s1; t1 += ( hash_values[ 4 ] & hash_values[ 5 ] ) ^ ( ~( hash_values[ 4 ] ) & hash_values[ 6 ] ); t1 += libhmac_sha224_prime_cube_roots[ value_32bit_index ]; t1 += values_32bit[ value_32bit_index ]; t2 = s0; t2 += ( hash_values[ 0 ] & hash_values[ 1 ] ) ^ ( hash_values[ 0 ] & hash_values[ 2 ] ) ^ ( hash_values[ 1 ] & hash_values[ 2 ] ); hash_values[ 7 ] = hash_values[ 6 ]; hash_values[ 6 ] = hash_values[ 5 ]; hash_values[ 5 ] = hash_values[ 4 ]; hash_values[ 4 ] = hash_values[ 3 ] + t1; hash_values[ 3 ] = hash_values[ 2 ]; hash_values[ 2 ] = hash_values[ 1 ]; hash_values[ 1 ] = hash_values[ 0 ]; hash_values[ 0 ] = t1 + t2; } /* Update the hash values in the context */ for( hash_values_index = 0; hash_values_index < 8; hash_values_index++ ) { internal_context->hash_values[ hash_values_index ] += hash_values[ hash_values_index ]; } #endif /* defined( LIBHMAC_UNFOLLED_LOOPS ) */ size -= LIBHMAC_SHA224_BLOCK_SIZE; } /* Prevent sensitive data from leaking */ if( memory_set( hash_values, 0, sizeof( uint32_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear hash values.", function ); goto on_error; } if( memory_set( values_32bit, 0, sizeof( uint32_t ) * 64 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear 32-bit values.", function ); goto on_error; } return( (ssize_t) buffer_offset ); on_error: memory_set( values_32bit, 0, sizeof( uint32_t ) * 64 ); memory_set( hash_values, 0, sizeof( uint32_t ) * 8 ); return( -1 ); } #endif /* !defined( LIBHMAC_HAVE_SHA224_SUPPORT ) */ /* Creates a SHA-224 context * Make sure the value context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libhmac_sha224_initialize( libhmac_sha224_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_initialize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid context value already set.", function ); return( -1 ); } internal_context = memory_allocate_structure( libhmac_internal_sha224_context_t ); if( internal_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create context.", function ); goto on_error; } if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha224_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); memory_free( internal_context ); return( -1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_224 ) /* Request the AES crypt provider, fail back to the RSA crypt provider */ if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT ) == 0 ) { if( CryptAcquireContext( &( internal_context->crypt_provider ), NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create AES or RSA crypt provider.", function ); goto on_error; } } if( internal_context->crypt_provider == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: unable to create crypt provider.", function ); goto on_error; } if( CryptCreateHash( internal_context->crypt_provider, CALG_SHA_224, 0, 0, &( internal_context->hash ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create hash object.", function ); CryptReleaseContext( internal_context->crypt_provider, 0 ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA224_DIGEST_LENGTH ) if( SHA224_Init( &( internal_context->sha224_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA224 ) #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX_init( &( internal_context->internal_evp_md_context ) ); internal_context->evp_md_context = &( internal_context->internal_evp_md_context ); #else internal_context->evp_md_context = EVP_MD_CTX_new(); if( internal_context->evp_md_context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create EVP message digest context.", function ); goto on_error; } #endif /* defined( HAVE_EVP_MD_CTX_INIT ) */ if( EVP_DigestInit_ex( internal_context->evp_md_context, EVP_sha224(), NULL ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); #if defined( HAVE_EVP_MD_CTX_CLEANUP ) EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ); ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif internal_context->evp_md_context = NULL; goto on_error; } #else if( memory_copy( internal_context->hash_values, libhmac_sha224_prime_square_roots, sizeof( uint32_t ) * 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy initial hash values.", function ); return( -1 ); } #endif *context = (libhmac_sha224_context_t *) internal_context; return( 1 ); on_error: if( internal_context != NULL ) { memory_free( internal_context ); } return( -1 ); } /* Frees a SHA-224 context * Returns 1 if successful or -1 on error */ int libhmac_sha224_free( libhmac_sha224_context_t **context, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_free"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { internal_context = (libhmac_internal_sha224_context_t *) *context; *context = NULL; #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_224 ) if( internal_context->crypt_provider != 0 ) { CryptReleaseContext( internal_context->crypt_provider, 0 ); } if( internal_context->hash != 0 ) { CryptDestroyHash( internal_context->hash ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA224_DIGEST_LENGTH ) /* No additional clean up necessary */ #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA224 ) #if defined( HAVE_EVP_MD_CTX_CLEANUP ) if( EVP_MD_CTX_cleanup( &( internal_context->internal_evp_md_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clean up EVP message digest context.", function ); } /* Make sure the error state is removed otherwise OpenSSL will leak memory */ ERR_remove_thread_state( NULL ); #else EVP_MD_CTX_free( internal_context->evp_md_context ); #endif /* defined( HAVE_EVP_MD_CTX_CLEANUP ) */ internal_context->evp_md_context = NULL; #else /* No additional clean up necessary */ #endif memory_free( internal_context ); } return( 1 ); } #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_224 ) /* Updates the SHA-224 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha224_update( libhmac_sha224_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #endif if( size == 0 ) { return( 1 ); } if( CryptHashData( internal_context->hash, (BYTE *) buffer, (DWORD) size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA224_DIGEST_LENGTH ) /* Updates the SHA-224 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha224_update( libhmac_sha224_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_update"; unsigned long safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if ( SIZEOF_LONG < SIZEOF_SIZE_T ) if( size > (size_t) ULONG_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } safe_hash_size = (unsigned long) size; if( SHA256_Update( &( internal_context->sha224_context ), (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA224 ) /* Updates the SHA-224 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha224_update( libhmac_sha224_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_update"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( EVP_DigestUpdate( internal_context->evp_md_context, (const void *) buffer, size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); return( -1 ); } return( 1 ); } #else /* Updates the SHA-224 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha224_update( libhmac_sha224_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_update"; size_t buffer_offset = 0; size_t remaining_block_size = 0; ssize_t process_count = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size == 0 ) { return( 1 ); } if( internal_context->block_offset > 0 ) { remaining_block_size = LIBHMAC_SHA224_BLOCK_SIZE - internal_context->block_offset; if( remaining_block_size > size ) { remaining_block_size = size; } if( memory_copy( &( internal_context->block[ internal_context->block_offset ] ), buffer, remaining_block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data to context block.", function ); return( -1 ); } internal_context->block_offset += remaining_block_size; if( internal_context->block_offset < LIBHMAC_SHA224_BLOCK_SIZE ) { return( 1 ); } buffer_offset += remaining_block_size; size -= remaining_block_size; process_count = libhmac_sha224_transform( internal_context, internal_context->block, LIBHMAC_SHA224_BLOCK_SIZE, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } internal_context->hash_count += process_count; internal_context->block_offset = 0; } if( size > 0 ) { process_count = libhmac_sha224_transform( internal_context, &( buffer[ buffer_offset ] ), size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform buffer.", function ); return( -1 ); } internal_context->hash_count += process_count; buffer_offset += process_count; size -= process_count; } if( size > 0 ) { if( size >= LIBHMAC_SHA224_BLOCK_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } if( memory_copy( internal_context->block, &( buffer[ buffer_offset ] ), size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy remaining data to context block.", function ); return( -1 ); } internal_context->block_offset = size; } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_224 ) */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_224 ) /* Finalizes the SHA-224 context using the Windows Crypto API * Returns 1 if successful or -1 on error */ int libhmac_sha224_finalize( libhmac_sha224_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_finalize"; DWORD safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( internal_context->hash == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid context - missing hash.", function ); return( -1 ); } if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } #if ( SIZEOF_SIZE_T == 8 ) || defined( _WIN64 ) if( hash_size > (size_t) UINT32_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } #endif if( hash_size < (size_t) LIBHMAC_SHA224_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } safe_hash_size = (DWORD) hash_size; if( CryptGetHashParam( internal_context->hash, HP_HASHVAL, (BYTE *) hash, &safe_hash_size, 0 ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize hash.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA224_DIGEST_LENGTH ) /* Finalizes the SHA-224 context using OpenSSL * Returns 1 if successful or -1 on error */ int libhmac_sha224_finalize( libhmac_sha224_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_finalize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA224_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } if( SHA256_Final( hash, &( internal_context->sha224_context ) ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA224 ) /* Finalizes the SHA-224 context using OpenSSL EVP * Returns 1 if successful or -1 on error */ int libhmac_sha224_finalize( libhmac_sha224_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_finalize"; unsigned int safe_hash_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size > (size_t) UINT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA224_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } safe_hash_size = (unsigned int) hash_size; if( EVP_DigestFinal_ex( internal_context->evp_md_context, (unsigned char *) hash, &safe_hash_size ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); return( -1 ); } return( 1 ); } #else /* Finalizes the SHA-224 context using fallback implementation * Returns 1 if successful or -1 on error */ int libhmac_sha224_finalize( libhmac_sha224_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_internal_sha224_context_t *internal_context = NULL; static char *function = "libhmac_sha224_finalize"; size_t block_size = 0; size_t number_of_blocks = 0; ssize_t process_count = 0; uint64_t bit_size = 0; #if !defined( LIBHMAC_UNFOLLED_LOOPS ) size_t hash_index = 0; int hash_values_index = 0; #endif if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } internal_context = (libhmac_internal_sha224_context_t *) context; if( hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid hash.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA224_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash value too small.", function ); return( -1 ); } if( hash_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid hash size value exceeds maximum.", function ); return( -1 ); } if( hash_size < (size_t) LIBHMAC_SHA224_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid hash size value too small.", function ); return( -1 ); } /* Add padding with a size of 56 mod 64 */ number_of_blocks = 1; if( internal_context->block_offset > 55 ) { number_of_blocks += 1; } block_size = number_of_blocks * LIBHMAC_SHA224_BLOCK_SIZE; if( memory_set( &( internal_context->block[ internal_context->block_offset ] ), 0, block_size - internal_context->block_offset ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context block.", function ); return( -1 ); } /* The first byte of the padding contains 0x80 */ internal_context->block[ internal_context->block_offset ] = 0x80; bit_size = ( internal_context->hash_count + internal_context->block_offset ) * 8; byte_stream_copy_from_uint64_big_endian( &( internal_context->block[ block_size - 8 ] ), bit_size ); process_count = libhmac_sha224_transform( internal_context, internal_context->block, block_size, error ); if( process_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to transform context block.", function ); return( -1 ); } /* Note that hash_values[ 7 ] is omitted from the hash */ #if !defined( LIBHMAC_UNFOLLED_LOOPS ) for( hash_values_index = 0; hash_values_index < 7; hash_values_index++ ) { byte_stream_copy_from_uint32_big_endian( &( hash[ hash_index ] ), internal_context->hash_values[ hash_values_index ] ); hash_index += sizeof( uint32_t ); } #else byte_stream_copy_from_uint32_big_endian( &( hash[ 0 ] ), internal_context->hash_values[ 0 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 4 ] ), internal_context->hash_values[ 1 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 8 ] ), internal_context->hash_values[ 2 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 12 ] ), internal_context->hash_values[ 3 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 16 ] ), internal_context->hash_values[ 4 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 20 ] ), internal_context->hash_values[ 5 ] ); byte_stream_copy_from_uint32_big_endian( &( hash[ 24 ] ), internal_context->hash_values[ 6 ] ); #endif /* !defined( LIBHMAC_UNFOLLED_LOOPS ) */ /* Prevent sensitive data from leaking */ if( memory_set( internal_context, 0, sizeof( libhmac_internal_sha224_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); return( -1 ); } return( 1 ); } #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA_224 ) */ /* Calculates the SHA-224 of the buffer * Returns 1 if successful or -1 on error */ int libhmac_sha224_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ) { libhmac_sha224_context_t *context = NULL; static char *function = "libhmac_sha224_calculate"; if( libhmac_sha224_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha224_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha224_finalize( context, hash, hash_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha224_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } return( 1 ); on_error: if( context != NULL ) { libhmac_sha224_free( &context, NULL ); } return( -1 ); } /* Calculates the SHA-224 HMAC of the buffer * HMAC is defined in RFC 2104 * Returns 1 if successful or -1 on error */ int libhmac_sha224_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ) { uint8_t key_hash[ LIBHMAC_SHA224_HASH_SIZE ]; libhmac_sha224_context_t *context = NULL; uint8_t *key_data = NULL; uint8_t *inner_padding = NULL; uint8_t *outer_padding = NULL; static char *function = "libhmac_sha224_calculate_hmac"; size_t block_index = 0; size_t block_size = 64; if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( key_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid key size value exceeds maximum.", function ); return( -1 ); } if( hmac_size < (size_t) LIBHMAC_SHA224_HASH_SIZE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid HMAC size value too small.", function ); return( -1 ); } key_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key data.", function ); goto on_error; } if( key_size <= block_size ) { if( memory_copy( key_data, key, key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key data.", function ); goto on_error; } if( memory_set( &( key_data[ key_size ] ), 0, block_size - key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key remaining data.", function ); goto on_error; } } else { if( libhmac_sha224_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha224_update( context, key, key_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha224_finalize( context, key_hash, LIBHMAC_SHA224_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha224_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( block_size > LIBHMAC_SHA224_HASH_SIZE ) { if( memory_set( &( key_data[ LIBHMAC_SHA224_HASH_SIZE ] ), 0, block_size - LIBHMAC_SHA224_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear remaining key data.", function ); goto on_error; } } if( memory_copy( key_data, key_hash, LIBHMAC_SHA224_HASH_SIZE ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key hash data.", function ); goto on_error; } } inner_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( inner_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create inner padding.", function ); goto on_error; } if( memory_set( inner_padding, 0x36, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set inner padding.", function ); goto on_error; } outer_padding = (uint8_t *) memory_allocate( sizeof( uint8_t ) * block_size ); if( outer_padding == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create outer padding.", function ); goto on_error; } if( memory_set( outer_padding, 0x5c, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set outer padding.", function ); goto on_error; } for( block_index = 0; block_index < block_size; block_index++ ) { inner_padding[ block_index ] ^= key_data[ block_index ]; outer_padding[ block_index ] ^= key_data[ block_index ]; } if( libhmac_sha224_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha224_update( context, inner_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha224_update( context, buffer, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha224_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha224_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( libhmac_sha224_initialize( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize context.", function ); goto on_error; } if( libhmac_sha224_update( context, outer_padding, block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha224_update( context, hmac, LIBHMAC_SHA224_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to update context.", function ); goto on_error; } if( libhmac_sha224_finalize( context, hmac, hmac_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to finalize context.", function ); goto on_error; } if( libhmac_sha224_free( &context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free context.", function ); goto on_error; } if( memory_set( outer_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear outer padding.", function ); goto on_error; } memory_free( outer_padding ); outer_padding = NULL; if( memory_set( inner_padding, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear inner padding.", function ); goto on_error; } memory_free( inner_padding ); inner_padding = NULL; if( memory_set( key_data, 0, block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key data.", function ); goto on_error; } memory_free( key_data ); key_data = NULL; return( 1 ); on_error: if( context != NULL ) { libhmac_sha224_free( &context, NULL ); } if( outer_padding != NULL ) { memory_set( outer_padding, 0, block_size ); memory_free( outer_padding ); } if( inner_padding != NULL ) { memory_set( inner_padding, 0, block_size ); memory_free( inner_padding ); } if( key_data != NULL ) { memory_set( key_data, 0, block_size ); memory_free( key_data ); } return( -1 ); } libfsapfs-20190210/libhmac/Makefile.in0000664000175000017500000007661413430101254021476 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libhmac ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libhmac_la_LIBADD = am__libhmac_la_SOURCES_DIST = libhmac_byte_stream.h \ libhmac_definitions.h libhmac_extern.h libhmac_error.c \ libhmac_error.h libhmac_libcerror.h libhmac_md5.c \ libhmac_md5.h libhmac_sha1.c libhmac_sha1.h libhmac_sha224.c \ libhmac_sha224.h libhmac_sha256.c libhmac_sha256.h \ libhmac_sha512.c libhmac_sha512.h libhmac_support.c \ libhmac_support.h libhmac_types.h libhmac_unused.h @HAVE_LOCAL_LIBHMAC_TRUE@am_libhmac_la_OBJECTS = libhmac_error.lo \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_md5.lo libhmac_sha1.lo \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_sha224.lo libhmac_sha256.lo \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_sha512.lo libhmac_support.lo libhmac_la_OBJECTS = $(am_libhmac_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBHMAC_TRUE@am_libhmac_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libhmac_error.Plo \ ./$(DEPDIR)/libhmac_md5.Plo ./$(DEPDIR)/libhmac_sha1.Plo \ ./$(DEPDIR)/libhmac_sha224.Plo ./$(DEPDIR)/libhmac_sha256.Plo \ ./$(DEPDIR)/libhmac_sha512.Plo ./$(DEPDIR)/libhmac_support.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libhmac_la_SOURCES) DIST_SOURCES = $(am__libhmac_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBHMAC_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBHMAC_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBHMAC_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBHMAC_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBHMAC_TRUE@noinst_LTLIBRARIES = libhmac.la @HAVE_LOCAL_LIBHMAC_TRUE@libhmac_la_SOURCES = \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_byte_stream.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_definitions.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_extern.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_error.c libhmac_error.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_libcerror.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_md5.c libhmac_md5.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_sha1.c libhmac_sha1.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_sha224.c libhmac_sha224.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_sha256.c libhmac_sha256.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_sha512.c libhmac_sha512.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_support.c libhmac_support.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_types.h \ @HAVE_LOCAL_LIBHMAC_TRUE@ libhmac_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libhmac/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libhmac/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libhmac.la: $(libhmac_la_OBJECTS) $(libhmac_la_DEPENDENCIES) $(EXTRA_libhmac_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libhmac_la_rpath) $(libhmac_la_OBJECTS) $(libhmac_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhmac_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhmac_md5.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhmac_sha1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhmac_sha224.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhmac_sha256.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhmac_sha512.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhmac_support.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libhmac_error.Plo -rm -f ./$(DEPDIR)/libhmac_md5.Plo -rm -f ./$(DEPDIR)/libhmac_sha1.Plo -rm -f ./$(DEPDIR)/libhmac_sha224.Plo -rm -f ./$(DEPDIR)/libhmac_sha256.Plo -rm -f ./$(DEPDIR)/libhmac_sha512.Plo -rm -f ./$(DEPDIR)/libhmac_support.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libhmac ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libhmac_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libhmac/libhmac_types.h0000664000175000017500000000363013430101230022403 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_INTERNAL_TYPES_H ) #define _LIBHMAC_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBHMAC for local use of libhmac * The definitions in are copied here * for local use of libhmac */ #if defined( HAVE_LOCAL_LIBHMAC ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libhmac_md5_context {} libhmac_md5_context_t; typedef struct libhmac_sha1_context {} libhmac_sha1_context_t; typedef struct libhmac_sha224_context {} libhmac_sha224_context_t; typedef struct libhmac_sha256_context {} libhmac_sha256_context_t; typedef struct libhmac_sha512_context {} libhmac_sha512_context_t; #else typedef intptr_t libhmac_md5_context_t; typedef intptr_t libhmac_sha1_context_t; typedef intptr_t libhmac_sha224_context_t; typedef intptr_t libhmac_sha256_context_t; typedef intptr_t libhmac_sha512_context_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBHMAC ) */ #endif /* !defined( _LIBHMAC_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libhmac/libhmac_sha512.h0000664000175000017500000001023313430101230022237 0ustar00lordyestalordyesta00000000000000/* * SHA-512 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_SHA512_H ) #define _LIBHMAC_SHA512_H #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #endif #include "libhmac_extern.h" #include "libhmac_libcerror.h" #include "libhmac_types.h" #if defined( __cplusplus ) extern "C" { #endif /* Make sure the WINAPI version is Vista or later otherwise * a cross compilation will contain broken SHA-512 support */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_512 ) #define LIBHMAC_HAVE_SHA512_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA512_DIGEST_LENGTH ) #define LIBHMAC_HAVE_SHA512_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA512 ) #define LIBHMAC_HAVE_SHA512_SUPPORT #endif #if !defined( LIBHMAC_HAVE_SHA512_SUPPORT ) #define LIBHMAC_SHA512_BLOCK_SIZE 128 #endif typedef struct libhmac_internal_sha512_context libhmac_internal_sha512_context_t; struct libhmac_internal_sha512_context { #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_512 ) /* The crypto provider handle */ HCRYPTPROV crypt_provider; /* The crypto hash handle */ HCRYPTHASH hash; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA512_DIGEST_LENGTH ) /* The SHA-512 context */ SHA512_CTX sha512_context; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA512 ) /* The EVP message digest context */ #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX internal_evp_md_context; #endif EVP_MD_CTX *evp_md_context; #else /* The number of bytes hashed */ uint64_t hash_count; /* The 64-bit hash values */ uint64_t hash_values[ 8 ]; /* The block offset */ size_t block_offset; /* The (data) block */ uint8_t block[ 128 ]; #endif }; #if !defined( LIBHMAC_HAVE_SHA512_SUPPORT ) ssize_t libhmac_sha512_transform( libhmac_internal_sha512_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); #endif /* !defined( LIBHMAC_HAVE_SHA512_SUPPORT ) */ LIBHMAC_EXTERN \ int libhmac_sha512_initialize( libhmac_sha512_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha512_free( libhmac_sha512_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha512_update( libhmac_sha512_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha512_finalize( libhmac_sha512_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha512_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha512_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_SHA512_H ) */ libfsapfs-20190210/libhmac/libhmac_unused.h0000664000175000017500000000253613430101230022546 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_INTERNAL_UNUSED_H ) #define _LIBHMAC_INTERNAL_UNUSED_H #include #if !defined( LIBHMAC_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBHMAC_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBHMAC_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBHMAC_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBHMAC_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBHMAC_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libhmac/libhmac_sha224.h0000664000175000017500000001026413430101230022243 0ustar00lordyestalordyesta00000000000000/* * SHA-224 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_SHA224_H ) #define _LIBHMAC_SHA224_H #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #endif #include "libhmac_extern.h" #include "libhmac_libcerror.h" #include "libhmac_types.h" #if defined( __cplusplus ) extern "C" { #endif /* Make sure the WINAPI version is Vista or later otherwise * a cross compilation will contain broken SHA-224 support */ #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_224 ) #define LIBHMAC_HAVE_SHA224_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA224_DIGEST_LENGTH ) #define LIBHMAC_HAVE_SHA224_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA224 ) #define LIBHMAC_HAVE_SHA224_SUPPORT #endif #if !defined( LIBHMAC_HAVE_SHA224_SUPPORT ) #define LIBHMAC_SHA224_BLOCK_SIZE 64 #endif typedef struct libhmac_internal_sha224_context libhmac_internal_sha224_context_t; struct libhmac_internal_sha224_context { #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && ( WINVER >= 0x0600 ) && defined( CALG_SHA_224 ) /* The crypto provider handle */ HCRYPTPROV crypt_provider; /* The crypto hash handle */ HCRYPTHASH hash; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA224_DIGEST_LENGTH ) /* The SHA-224 functions use the SHA-256 context */ SHA256_CTX sha224_context; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA224 ) /* The EVP message digest context */ #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX internal_evp_md_context; #endif EVP_MD_CTX *evp_md_context; #else /* The number of bytes hashed */ uint64_t hash_count; /* The 32-bit hash values */ uint32_t hash_values[ 8 ]; /* The block offset */ size_t block_offset; /* The (data) block */ uint8_t block[ 128 ]; #endif }; #if !defined( LIBHMAC_HAVE_SHA224_SUPPORT ) ssize_t libhmac_sha224_transform( libhmac_internal_sha224_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); #endif /* !defined( LIBHMAC_HAVE_SHA224_SUPPORT ) */ LIBHMAC_EXTERN \ int libhmac_sha224_initialize( libhmac_sha224_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha224_free( libhmac_sha224_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha224_update( libhmac_sha224_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha224_finalize( libhmac_sha224_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha224_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha224_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_SHA224_H ) */ libfsapfs-20190210/libhmac/libhmac_sha1.h0000664000175000017500000001006413430101230022072 0ustar00lordyestalordyesta00000000000000/* * SHA1 functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_SHA1_H ) #define _LIBHMAC_SHA1_H #include #include #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) #include #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) #include #endif #include "libhmac_extern.h" #include "libhmac_libcerror.h" #include "libhmac_types.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) #define LIBHMAC_HAVE_SHA1_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA_DIGEST_LENGTH ) #define LIBHMAC_HAVE_SHA1_SUPPORT #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA1 ) #define LIBHMAC_HAVE_SHA1_SUPPORT #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) */ #if !defined( LIBHMAC_HAVE_SHA1_SUPPORT ) #define LIBHMAC_SHA1_BLOCK_SIZE 64 #endif typedef struct libhmac_internal_sha1_context libhmac_internal_sha1_context_t; struct libhmac_internal_sha1_context { #if defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) /* The crypto provider handle */ HCRYPTPROV crypt_provider; /* The crypto hash handle */ HCRYPTHASH hash; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_SHA_H ) && defined( SHA_DIGEST_LENGTH ) /* The SHA1 context */ SHA_CTX sha1_context; #elif defined( HAVE_LIBCRYPTO ) && defined( HAVE_OPENSSL_EVP_H ) && defined( HAVE_EVP_SHA1 ) /* The EVP message digest context */ #if defined( HAVE_EVP_MD_CTX_INIT ) EVP_MD_CTX internal_evp_md_context; #endif EVP_MD_CTX *evp_md_context; #else /* The number of bytes hashed */ uint64_t hash_count; /* The hash values */ uint32_t hash_values[ 5 ]; /* The block offset */ size_t block_offset; /* The (data) block */ uint8_t block[ 128 ]; #endif /* defined( HAVE_WINCRYPT ) && defined( WINAPI ) && defined( CALG_SHA1 ) */ }; #if !defined( LIBHMAC_HAVE_SHA1_SUPPORT ) ssize_t libhmac_sha1_transform( libhmac_internal_sha1_context_t *internal_context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); #endif /* !defined( LIBHMAC_HAVE_SHA1_SUPPORT ) */ LIBHMAC_EXTERN \ int libhmac_sha1_initialize( libhmac_sha1_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha1_free( libhmac_sha1_context_t **context, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha1_update( libhmac_sha1_context_t *context, const uint8_t *buffer, size_t size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha1_finalize( libhmac_sha1_context_t *context, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha1_calculate( const uint8_t *buffer, size_t size, uint8_t *hash, size_t hash_size, libcerror_error_t **error ); LIBHMAC_EXTERN \ int libhmac_sha1_calculate_hmac( const uint8_t *key, size_t key_size, const uint8_t *buffer, size_t size, uint8_t *hmac, size_t hmac_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_SHA1_H ) */ libfsapfs-20190210/libhmac/libhmac_error.h0000664000175000017500000000335613430101230022375 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_INTERNAL_ERROR_H ) #define _LIBHMAC_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBHMAC ) #include #endif #include "libhmac_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBHMAC ) LIBHMAC_EXTERN \ void libhmac_error_free( libhmac_error_t **error ); LIBHMAC_EXTERN \ int libhmac_error_fprint( libhmac_error_t *error, FILE *stream ); LIBHMAC_EXTERN \ int libhmac_error_sprint( libhmac_error_t *error, char *string, size_t size ); LIBHMAC_EXTERN \ int libhmac_error_backtrace_fprint( libhmac_error_t *error, FILE *stream ); LIBHMAC_EXTERN \ int libhmac_error_backtrace_sprint( libhmac_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBHMAC ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libhmac/libhmac_byte_stream.h0000664000175000017500000002222413430101230023555 0ustar00lordyestalordyesta00000000000000/* * Byte stream functions * * Copyright (C) 2011-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBHMAC_BYTE_STREAM_H ) #define _LIBHMAC_BYTE_STREAM_H #include #include #if defined( __cplusplus ) extern "C" { #endif #define libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, values_index ) \ values[ values_index ] = ( byte_stream )[ ( values_index << 2 ) ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 2 ) + 1 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 2 ) + 2 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 2 ) + 3 ]; #define libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, values_index ) \ values[ values_index ] = ( byte_stream )[ ( values_index << 2 ) + 3 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 2 ) + 2 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 2 ) + 1 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 2 ) ]; #define libhmac_byte_stream_copy_to_16x_uint32_big_endian( byte_stream, values ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 0 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 1 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 2 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 3 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 4 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 5 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 6 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 7 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 8 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 9 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 10 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 11 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 12 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 13 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 14 ) \ libhmac_byte_stream_copy_to_1x_uint32_big_endian( byte_stream, values, 15 ) #define libhmac_byte_stream_copy_to_16x_uint32_little_endian( byte_stream, values ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 0 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 1 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 2 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 3 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 4 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 5 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 6 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 7 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 8 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 9 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 10 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 11 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 12 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 13 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 14 ) \ libhmac_byte_stream_copy_to_1x_uint32_little_endian( byte_stream, values, 15 ) #define libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, values_index ) \ values[ values_index ] = ( byte_stream )[ ( values_index << 3 ) ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 1 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 2 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 3 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 4 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 5 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 6 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 7 ]; #define libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, values_index ) \ values[ values_index ] = ( byte_stream )[ ( values_index << 3 ) + 7 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 6 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 5 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 4 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] = ( byte_stream )[ ( values_index << 3 ) + 3 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 2 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) + 1 ]; \ values[ values_index ] <<= 8; \ values[ values_index ] |= ( byte_stream )[ ( values_index << 3 ) ]; #define libhmac_byte_stream_copy_to_16x_uint64_big_endian( byte_stream, values ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 0 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 1 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 2 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 3 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 4 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 5 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 6 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 7 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 8 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 9 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 10 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 11 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 12 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 13 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 14 ) \ libhmac_byte_stream_copy_to_1x_uint64_big_endian( byte_stream, values, 15 ) #define libhmac_byte_stream_copy_to_16x_uint64_little_endian( byte_stream, values ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 0 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 1 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 2 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 3 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 4 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 5 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 6 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 7 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 8 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 9 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 10 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 11 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 12 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 13 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 14 ) \ libhmac_byte_stream_copy_to_1x_uint64_little_endian( byte_stream, values, 15 ) #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBHMAC_BYTE_STREAM_H ) */ libfsapfs-20190210/setup.py0000775000175000017500000002443313426637523017561 0ustar00lordyestalordyesta00000000000000#!/usr/bin/env python # # Script to build and install Python-bindings. # Version: 20181117 from __future__ import print_function import glob import gzip import platform import os import shlex import shutil import subprocess import sys import tarfile from distutils import dist from distutils import sysconfig from distutils.ccompiler import new_compiler from distutils.command.build_ext import build_ext from distutils.command.bdist import bdist from distutils.command.sdist import sdist from distutils.core import Extension, setup try: from distutils.command.bdist_msi import bdist_msi except ImportError: bdist_msi = None if not bdist_msi: custom_bdist_msi = None else: class custom_bdist_msi(bdist_msi): """Custom handler for the bdist_msi command.""" def run(self): """Builds an MSI.""" # bdist_msi does not support the library version so we add ".1" # as a work around. self.distribution.metadata.version = "{0:s}.1".format( self.distribution.metadata.version) bdist_msi.run(self) class custom_bdist_rpm(bdist): """Custom handler for the bdist_rpm command.""" def run(self): """Builds a RPM.""" print("'setup.py bdist_rpm' command not supported use 'rpmbuild' instead.") sys.exit(1) class custom_build_ext(build_ext): """Custom handler for the build_ext command.""" def _RunCommand(self, command): """Runs the command.""" arguments = shlex.split(command) process = subprocess.Popen( arguments, stderr=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True) if not process: raise RuntimeError("Running: {0:s} failed.".format(command)) output, error = process.communicate() if process.returncode != 0: error = "\n".join(error.split("\n")[-5:]) raise RuntimeError("Running: {0:s} failed with error:\n{1:s}.".format( command, error)) return output def build_extensions(self): """Set up the build extensions.""" # TODO: move build customization here? build_ext.build_extensions(self) def run(self): """Runs the build extension.""" compiler = new_compiler(compiler=self.compiler) if compiler.compiler_type == "msvc": self.define = [ ("UNICODE", ""), ] else: command = "sh configure --disable-shared-libs" output = self._RunCommand(command) print_line = False for line in output.split("\n"): line = line.rstrip() if line == "configure:": print_line = True if print_line: print(line) self.define = [ ("HAVE_CONFIG_H", ""), ("LOCALEDIR", "\"/usr/share/locale\""), ] build_ext.run(self) class custom_sdist(sdist): """Custom handler for the sdist command.""" def run(self): """Builds a source distribution (sdist) package.""" if self.formats != ["gztar"]: print("'setup.py sdist' unsupported format.") sys.exit(1) if glob.glob("*.tar.gz"): print("'setup.py sdist' remove existing *.tar.gz files from " "source directory.") sys.exit(1) command = "make dist" exit_code = subprocess.call(command, shell=True) if exit_code != 0: raise RuntimeError("Running: {0:s} failed.".format(command)) if not os.path.exists("dist"): os.mkdir("dist") source_package_file = glob.glob("*.tar.gz")[0] source_package_prefix, _, source_package_suffix = ( source_package_file.partition("-")) sdist_package_file = "{0:s}-python-{1:s}".format( source_package_prefix, source_package_suffix) sdist_package_file = os.path.join("dist", sdist_package_file) os.rename(source_package_file, sdist_package_file) # Create and add the PKG-INFO file to the source package. with gzip.open(sdist_package_file, 'rb') as input_file: with open(sdist_package_file[:-3], 'wb') as output_file: shutil.copyfileobj(input_file, output_file) os.remove(sdist_package_file) self.distribution.metadata.write_pkg_info(".") pkg_info_path = "{0:s}-{1:s}/PKG-INFO".format( source_package_prefix, source_package_suffix[:-7]) with tarfile.open(sdist_package_file[:-3], "a:") as tar_file: tar_file.add("PKG-INFO", arcname=pkg_info_path) os.remove("PKG-INFO") with open(sdist_package_file[:-3], 'rb') as input_file: with gzip.open(sdist_package_file, 'wb') as output_file: shutil.copyfileobj(input_file, output_file) os.remove(sdist_package_file[:-3]) # Inform distutils what files were created. dist_files = getattr(self.distribution, "dist_files", []) dist_files.append(("sdist", "", sdist_package_file)) class ProjectInformation(object): """Project information.""" def __init__(self): """Initializes project information.""" super(ProjectInformation, self).__init__() self.include_directories = [] self.library_name = None self.library_names = [] self.library_version = None self._ReadConfigureAc() self._ReadMakefileAm() @property def module_name(self): """The Python module name.""" return "py{0:s}".format(self.library_name[3:]) @property def package_name(self): """The package name.""" return "{0:s}-python".format(self.library_name) @property def package_description(self): """The package description.""" return "Python bindings module for {0:s}".format(self.library_name) @property def project_url(self): """The project URL.""" return "https://github.com/libyal/{0:s}/".format(self.library_name) def _ReadConfigureAc(self): """Reads configure.ac to initialize the project information.""" file_object = open("configure.ac", "rb") if not file_object: raise IOError("Unable to open: configure.ac") found_ac_init = False found_library_name = False for line in file_object.readlines(): line = line.strip() if found_library_name: library_version = line[1:-2] if sys.version_info[0] >= 3: library_version = library_version.decode("ascii") self.library_version = library_version break elif found_ac_init: library_name = line[1:-2] if sys.version_info[0] >= 3: library_name = library_name.decode("ascii") self.library_name = library_name found_library_name = True elif line.startswith(b"AC_INIT"): found_ac_init = True file_object.close() if not self.library_name or not self.library_version: raise RuntimeError( "Unable to find library name and version in: configure.ac") def _ReadMakefileAm(self): """Reads Makefile.am to initialize the project information.""" if not self.library_name: raise RuntimeError("Missing library name") file_object = open("Makefile.am", "rb") if not file_object: raise IOError("Unable to open: Makefile.am") found_subdirs = False for line in file_object.readlines(): line = line.strip() if found_subdirs: library_name, _, _ = line.partition(b" ") if sys.version_info[0] >= 3: library_name = library_name.decode("ascii") self.include_directories.append(library_name) if library_name.startswith("lib"): self.library_names.append(library_name) if library_name == self.library_name: break elif line.startswith(b"SUBDIRS"): found_subdirs = True file_object.close() if not self.include_directories or not self.library_names: raise RuntimeError( "Unable to find include directories and library names in: " "Makefile.am") def GetPythonLibraryDirectoryPath(): """Retrieves the Python library directory path.""" path = sysconfig.get_python_lib(True) _, _, path = path.rpartition(sysconfig.PREFIX) if path.startswith(os.sep): path = path[1:] return path project_information = ProjectInformation() PYTHON_LIBRARY_DIRECTORY = GetPythonLibraryDirectoryPath() SOURCES = [] # TODO: replace by detection of MSC DEFINE_MACROS = [] if platform.system() == "Windows": DEFINE_MACROS.append(("WINVER", "0x0501")) # TODO: determine how to handle third party DLLs. for library_name in project_information.library_names: if library_name != project_information.library_name: definition = "HAVE_LOCAL_{0:s}".format(library_name.upper()) DEFINE_MACROS.append((definition, "")) # Put everything inside the Python module to prevent issues with finding # shared libaries since pip does not integrate well with the system package # management. for library_name in project_information.library_names: for source_file in glob.glob(os.path.join(library_name, "*.[ly]")): generated_source_file = "{0:s}.c".format(source_file[:-2]) if not os.path.exists(generated_source_file): raise RuntimeError("Missing generated source file: {0:s}".format( generated_source_file)) source_files = glob.glob(os.path.join(library_name, "*.c")) SOURCES.extend(source_files) source_files = glob.glob(os.path.join(project_information.module_name, "*.c")) SOURCES.extend(source_files) # Add the LICENSE file to the distribution. copying_file = os.path.join("COPYING") license_file = "LICENSE.{0:s}".format(project_information.module_name) shutil.copyfile(copying_file, license_file) LIBRARY_DATA_FILES = [license_file] # TODO: find a way to detect missing python.h # e.g. on Ubuntu python-dev is not installed by python-pip # TODO: what about description and platform in egg file setup( name=project_information.package_name, url=project_information.project_url, version=project_information.library_version, description=project_information.package_description, long_description=project_information.package_description, author="Joachim Metz", author_email="joachim.metz@gmail.com", license="GNU Lesser General Public License v3 or later (LGPLv3+)", cmdclass={ "build_ext": custom_build_ext, "bdist_msi": custom_bdist_msi, "bdist_rpm": custom_bdist_rpm, "sdist": custom_sdist, }, ext_modules=[ Extension( project_information.module_name, define_macros=DEFINE_MACROS, include_dirs=project_information.include_directories, libraries=[], library_dirs=[], sources=SOURCES, ), ], data_files=[(PYTHON_LIBRARY_DIRECTORY, LIBRARY_DATA_FILES)], ) os.remove(license_file) libfsapfs-20190210/config.guess0000755000175000017500000012620613430101253020340 0ustar00lordyestalordyesta00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2018 Free Software Foundation, Inc. timestamp='2018-03-08' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess # # Please send patches to . me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > "$dummy.c" ; for c in cc gcc c89 c99 ; do if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval "$set_cc_for_build" cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" # If ldd exists, use it to detect musl libc. if command -v ldd >/dev/null && \ ldd --version 2>&1 | grep -q ^musl then LIBC=musl fi ;; esac # Note: order is significant - the case branches are not exclusive. case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ "/sbin/$sysctl" 2>/dev/null || \ "/usr/sbin/$sysctl" 2>/dev/null || \ echo unknown)` case "$UNAME_MACHINE_ARCH" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine="${arch}${endian}"-unknown ;; *) machine="$UNAME_MACHINE_ARCH"-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case "$UNAME_MACHINE_ARCH" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval "$set_cc_for_build" if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "$UNAME_VERSION" in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "$machine-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" exit ;; *:ekkoBSD:*:*) echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" exit ;; *:SolidBSD:*:*) echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:MirBSD:*:*) echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" exit ;; *:Sortix:*:*) echo "$UNAME_MACHINE"-unknown-sortix exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox exit ;; mips:OSF1:*.*) echo mips-dec-osf1 exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo "$UNAME_MACHINE"-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo "$UNAME_MACHINE"-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix"$UNAME_RELEASE" exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval "$set_cc_for_build" SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos"$UNAME_RELEASE" ;; sun4) echo sparc-sun-sunos"$UNAME_RELEASE" ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos"$UNAME_RELEASE" exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint"$UNAME_RELEASE" exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint"$UNAME_RELEASE" exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint"$UNAME_RELEASE" exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint"$UNAME_RELEASE" exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint"$UNAME_RELEASE" exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint"$UNAME_RELEASE" exit ;; m68k:machten:*:*) echo m68k-apple-machten"$UNAME_RELEASE" exit ;; powerpc:machten:*:*) echo powerpc-apple-machten"$UNAME_RELEASE" exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix"$UNAME_RELEASE" exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix"$UNAME_RELEASE" exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix"$UNAME_RELEASE" exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos"$UNAME_RELEASE" exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] then if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ [ "$TARGET_BINARY_INTERFACE"x = x ] then echo m88k-dg-dgux"$UNAME_RELEASE" else echo m88k-dg-dguxbcs"$UNAME_RELEASE" fi else echo i586-dg-dgux"$UNAME_RELEASE" fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi echo "$IBM_ARCH"-ibm-aix"$IBM_REV" exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "$sc_cpu_version" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "$sc_kernel_bits" in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if [ "$HP_ARCH" = "" ]; then eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ "$HP_ARCH" = hppa2.0w ] then eval "$set_cc_for_build" # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo "$UNAME_MACHINE"-unknown-osf1mk else echo "$UNAME_MACHINE"-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi"$UNAME_RELEASE" exit ;; *:BSD/OS:*:*) echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case "$UNAME_PROCESSOR" in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; i*:CYGWIN*:*) echo "$UNAME_MACHINE"-pc-cygwin exit ;; *:MINGW64*:*) echo "$UNAME_MACHINE"-pc-mingw64 exit ;; *:MINGW*:*) echo "$UNAME_MACHINE"-pc-mingw32 exit ;; *:MSYS*:*) echo "$UNAME_MACHINE"-pc-msys exit ;; i*:PW*:*) echo "$UNAME_MACHINE"-pc-pw32 exit ;; *:Interix*:*) case "$UNAME_MACHINE" in x86) echo i586-pc-interix"$UNAME_RELEASE" exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix"$UNAME_RELEASE" exit ;; IA64) echo ia64-unknown-interix"$UNAME_RELEASE" exit ;; esac ;; i*:UWIN*:*) echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" exit ;; *:GNU:*:*) # the GNU system echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" exit ;; i*86:Minix:*:*) echo "$UNAME_MACHINE"-pc-minix exit ;; aarch64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; arm*:Linux:*:*) eval "$set_cc_for_build" if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi else echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf fi fi exit ;; avr32*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; cris:Linux:*:*) echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; crisv32:Linux:*:*) echo "$UNAME_MACHINE"-axis-linux-"$LIBC" exit ;; e2k:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; frv:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; hexagon:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:Linux:*:*) echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; ia64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; m68*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval "$set_cc_for_build" sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } ;; mips64el:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-"$LIBC" exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; padre:Linux:*:*) echo sparc-unknown-linux-"$LIBC" exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-"$LIBC" exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-"$LIBC" exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-"$LIBC" exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-"$LIBC" exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-"$LIBC" exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" exit ;; sh64*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sh*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; tile*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; vax:Linux:*:*) echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) echo "$UNAME_MACHINE"-pc-linux-"$LIBC" exit ;; xtensa*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo "$UNAME_MACHINE"-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo "$UNAME_MACHINE"-unknown-stop exit ;; i*86:atheos:*:*) echo "$UNAME_MACHINE"-unknown-atheos exit ;; i*86:syllable:*:*) echo "$UNAME_MACHINE"-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos"$UNAME_RELEASE" exit ;; i*86:*DOS:*:*) echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" else echo "$UNAME_MACHINE"-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos"$UNAME_RELEASE" exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos"$UNAME_RELEASE" exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos"$UNAME_RELEASE" exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos"$UNAME_RELEASE" exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv"$UNAME_RELEASE" exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo "$UNAME_MACHINE"-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux"$UNAME_RELEASE" exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv"$UNAME_RELEASE" else echo mips-unknown-sysv"$UNAME_RELEASE" fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux"$UNAME_RELEASE" exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux"$UNAME_RELEASE" exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux"$UNAME_RELEASE" exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux"$UNAME_RELEASE" exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux"$UNAME_RELEASE" exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux"$UNAME_RELEASE" exit ;; SX-ACE:SUPER-UX:*:*) echo sxace-nec-superux"$UNAME_RELEASE" exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Rhapsody:*:*) echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval "$set_cc_for_build" if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-*:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk"$UNAME_RELEASE" exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk"$UNAME_RELEASE" exit ;; NSR-*:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk"$UNAME_RELEASE" exit ;; NSV-*:NONSTOP_KERNEL:*:*) echo nsv-tandem-nsk"$UNAME_RELEASE" exit ;; NSX-*:NONSTOP_KERNEL:*:*) echo nsx-tandem-nsk"$UNAME_RELEASE" exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = 386; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo "$UNAME_MACHINE"-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" exit ;; i*86:rdos:*:*) echo "$UNAME_MACHINE"-pc-rdos exit ;; i*86:AROS:*:*) echo "$UNAME_MACHINE"-pc-aros exit ;; x86_64:VMkernel:*:*) echo "$UNAME_MACHINE"-unknown-esx exit ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; esac echo "$0: unable to guess system type" >&2 case "$UNAME_MACHINE:$UNAME_SYSTEM" in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 </dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: libfsapfs-20190210/NEWS0000664000175000017500000000000013426637437016527 0ustar00lordyestalordyesta00000000000000libfsapfs-20190210/test-driver0000755000175000017500000001104213430101254020206 0ustar00lordyestalordyesta00000000000000#! /bin/sh # test-driver - basic testsuite driver script. scriptversion=2018-03-07.03; # UTC # Copyright (C) 2011-2018 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u usage_error () { echo "$0: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat <$log_file 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then tweaked_estatus=1 else tweaked_estatus=$estatus fi case $tweaked_estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac # Report the test outcome and exit status in the logs, so that one can # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). echo "$res $test_name (exit status: $estatus)" >>$log_file # Report outcome to console. echo "${col}${res}${std}: $test_name" # Register the test result, and other relevant metadata. echo ":test-result: $res" > $trs_file echo ":global-test-result: $res" >> $trs_file echo ":recheck: $recheck" >> $trs_file echo ":copy-in-global-log: $gcopy" >> $trs_file # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libfsapfs-20190210/configure0000775000175000017500000644220213430101251017732 0ustar00lordyestalordyesta00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for libfsapfs 20190210. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: joachim.metz@gmail.com about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a $0: shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libfsapfs' PACKAGE_TARNAME='libfsapfs' PACKAGE_VERSION='20190210' PACKAGE_STRING='libfsapfs 20190210' PACKAGE_BUGREPORT='joachim.metz@gmail.com' PACKAGE_URL='' ac_unique_file="include/libfsapfs.h.in" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" gt_needs= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS SPEC_DATE DPKG_DATE libfsapfs_spec_tools_build_requires libfsapfs_spec_requires LIBFSAPFS_DLL_EXPORT LIBFSAPFS_DLL_IMPORT STATIC_LDFLAGS ax_libfuse_spec_build_requires ax_libfuse_spec_requires ax_libfuse_pc_libs_private LIBFUSE_LIBADD LIBFUSE_CPPFLAGS HAVE_LIBFUSE fuse_LIBS fuse_CFLAGS HAVE_PYTHON_TESTS_FALSE HAVE_PYTHON_TESTS_TRUE HAVE_PYTHON3_FALSE HAVE_PYTHON3_TRUE HAVE_PYTHON2_FALSE HAVE_PYTHON2_TRUE HAVE_PYTHON_FALSE HAVE_PYTHON_TRUE PYTHON3_PACKAGE_DIR PYTHON3_LIBRARY_DIR pyexecdir3 pythondir3 PYTHON3_EXEC_PREFIX PYTHON3_PREFIX PYTHON3_LDFLAGS PYTHON3_CPPFLAGS PYTHON3_CONFIG PYTHON3_PLATFORM PYTHON3_VERSION PYTHON3 PYTHON2_PACKAGE_DIR PYTHON2_LIBRARY_DIR pyexecdir2 pythondir2 PYTHON2_EXEC_PREFIX PYTHON2_PREFIX PYTHON2_LDFLAGS PYTHON2_CPPFLAGS PYTHON2_CONFIG PYTHON2_PLATFORM PYTHON2_VERSION PYTHON2 PYTHON_PACKAGE_DIR PYTHON_LIBRARY_DIR pyexecdir pythondir PYTHON_EXEC_PREFIX PYTHON_PREFIX PYTHON_LDFLAGS PYTHON_CPPFLAGS PYTHON_CONFIG PYTHON_PLATFORM PYTHON_VERSION PYTHON HAVE_DLLMAIN ax_libcaes_spec_build_requires ax_libcaes_spec_requires ax_libcaes_pc_libs_private LIBCAES_LIBADD LIBCAES_CPPFLAGS HAVE_LOCAL_LIBCAES_FALSE HAVE_LOCAL_LIBCAES_TRUE HAVE_LOCAL_LIBCAES HAVE_LIBCAES libcaes_LIBS libcaes_CFLAGS ax_libhmac_spec_build_requires ax_libhmac_spec_requires ax_libhmac_pc_libs_private LIBHMAC_LIBADD LIBHMAC_CPPFLAGS HAVE_LOCAL_LIBHMAC_FALSE HAVE_LOCAL_LIBHMAC_TRUE HAVE_LOCAL_LIBHMAC ax_libcrypto_spec_build_requires ax_libcrypto_spec_requires ax_libcrypto_pc_libs_private LIBCRYPTO_LIBADD LIBCRYPTO_CPPFLAGS LIBDL_LIBADD HAVE_OPENSSL_EVP_H openssl_LIBS openssl_CFLAGS HAVE_LIBHMAC libhmac_LIBS libhmac_CFLAGS ax_zlib_static_spec_build_requires ax_zlib_static_spec_requires ax_zlib_spec_build_requires ax_zlib_spec_requires ax_zlib_pc_libs_private ZLIB_LIBADD ZLIB_CPPFLAGS HAVE_ZLIB zlib_LIBS zlib_CFLAGS ax_libfguid_spec_build_requires ax_libfguid_spec_requires ax_libfguid_pc_libs_private LIBFGUID_LIBADD LIBFGUID_CPPFLAGS HAVE_LOCAL_LIBFGUID_FALSE HAVE_LOCAL_LIBFGUID_TRUE HAVE_LOCAL_LIBFGUID HAVE_LIBFGUID libfguid_LIBS libfguid_CFLAGS ax_libfdatetime_spec_build_requires ax_libfdatetime_spec_requires ax_libfdatetime_pc_libs_private LIBFDATETIME_LIBADD LIBFDATETIME_CPPFLAGS HAVE_LOCAL_LIBFDATETIME_FALSE HAVE_LOCAL_LIBFDATETIME_TRUE HAVE_LOCAL_LIBFDATETIME HAVE_LIBFDATETIME libfdatetime_LIBS libfdatetime_CFLAGS ax_libfdata_spec_build_requires ax_libfdata_spec_requires ax_libfdata_pc_libs_private LIBFDATA_LIBADD LIBFDATA_CPPFLAGS HAVE_LOCAL_LIBFDATA_FALSE HAVE_LOCAL_LIBFDATA_TRUE HAVE_LOCAL_LIBFDATA HAVE_LIBFDATA libfdata_LIBS libfdata_CFLAGS ax_libfcache_spec_build_requires ax_libfcache_spec_requires ax_libfcache_pc_libs_private LIBFCACHE_LIBADD LIBFCACHE_CPPFLAGS HAVE_LOCAL_LIBFCACHE_FALSE HAVE_LOCAL_LIBFCACHE_TRUE HAVE_LOCAL_LIBFCACHE HAVE_LIBFCACHE libfcache_LIBS libfcache_CFLAGS ax_libbfio_spec_build_requires ax_libbfio_spec_requires ax_libbfio_pc_libs_private LIBBFIO_LIBADD LIBBFIO_CPPFLAGS HAVE_LOCAL_LIBBFIO_FALSE HAVE_LOCAL_LIBBFIO_TRUE HAVE_LOCAL_LIBBFIO HAVE_LIBBFIO libbfio_LIBS libbfio_CFLAGS ax_libcpath_spec_build_requires ax_libcpath_spec_requires ax_libcpath_pc_libs_private LIBCPATH_LIBADD LIBCPATH_CPPFLAGS HAVE_LOCAL_LIBCPATH_FALSE HAVE_LOCAL_LIBCPATH_TRUE HAVE_LOCAL_LIBCPATH HAVE_LIBCPATH libcpath_LIBS libcpath_CFLAGS ax_libcfile_spec_build_requires ax_libcfile_spec_requires ax_libcfile_pc_libs_private LIBCFILE_LIBADD LIBCFILE_CPPFLAGS HAVE_LOCAL_LIBCFILE_FALSE HAVE_LOCAL_LIBCFILE_TRUE HAVE_LOCAL_LIBCFILE HAVE_LIBCFILE libcfile_LIBS libcfile_CFLAGS ax_libuna_spec_build_requires ax_libuna_spec_requires ax_libuna_pc_libs_private LIBUNA_LIBADD LIBUNA_CPPFLAGS HAVE_LOCAL_LIBUNA_FALSE HAVE_LOCAL_LIBUNA_TRUE HAVE_LOCAL_LIBUNA HAVE_LIBUNA libuna_LIBS libuna_CFLAGS ax_libcsplit_spec_build_requires ax_libcsplit_spec_requires ax_libcsplit_pc_libs_private LIBCSPLIT_LIBADD LIBCSPLIT_CPPFLAGS HAVE_LOCAL_LIBCSPLIT_FALSE HAVE_LOCAL_LIBCSPLIT_TRUE HAVE_LOCAL_LIBCSPLIT HAVE_LIBCSPLIT libcsplit_LIBS libcsplit_CFLAGS ax_libcnotify_spec_build_requires ax_libcnotify_spec_requires ax_libcnotify_pc_libs_private LIBCNOTIFY_LIBADD LIBCNOTIFY_CPPFLAGS HAVE_LOCAL_LIBCNOTIFY_FALSE HAVE_LOCAL_LIBCNOTIFY_TRUE HAVE_LOCAL_LIBCNOTIFY HAVE_LIBCNOTIFY libcnotify_LIBS libcnotify_CFLAGS ax_libclocale_spec_build_requires ax_libclocale_spec_requires ax_libclocale_pc_libs_private LIBCLOCALE_LIBADD LIBCLOCALE_CPPFLAGS HAVE_LOCAL_LIBCLOCALE_FALSE HAVE_LOCAL_LIBCLOCALE_TRUE HAVE_LOCAL_LIBCLOCALE HAVE_LIBCLOCALE libclocale_LIBS libclocale_CFLAGS ax_libcdata_spec_build_requires ax_libcdata_spec_requires ax_libcdata_pc_libs_private LIBCDATA_LIBADD LIBCDATA_CPPFLAGS HAVE_LOCAL_LIBCDATA_FALSE HAVE_LOCAL_LIBCDATA_TRUE HAVE_LOCAL_LIBCDATA HAVE_LIBCDATA libcdata_LIBS libcdata_CFLAGS ax_libcthreads_spec_build_requires ax_libcthreads_spec_requires ax_libcthreads_pc_libs_private HAVE_MULTI_THREAD_SUPPORT LIBCTHREADS_LIBADD LIBCTHREADS_CPPFLAGS HAVE_LOCAL_LIBCTHREADS_FALSE HAVE_LOCAL_LIBCTHREADS_TRUE HAVE_LOCAL_LIBCTHREADS ax_pthread_pc_libs_private PTHREAD_LIBADD PTHREAD_CPPFLAGS HAVE_PTHREAD HAVE_LIBCTHREADS libcthreads_LIBS libcthreads_CFLAGS ax_libcerror_spec_build_requires ax_libcerror_spec_requires ax_libcerror_pc_libs_private LIBCERROR_LIBADD LIBCERROR_CPPFLAGS HAVE_LOCAL_LIBCERROR_FALSE HAVE_LOCAL_LIBCERROR_TRUE HAVE_LOCAL_LIBCERROR HAVE_LIBCERROR libcerror_LIBS libcerror_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG HAVE_OFF64_T HAVE_SSIZE64_T HAVE_SIZE64_T HAVE_SSIZE32_T HAVE_SIZE32_T HAVE_WCHAR_H HAVE_STDINT_H HAVE_INTTYPES_H HAVE_SYS_TYPES_H HAVE_WIDE_CHARACTER_TYPE POSUB LTLIBINTL LIBINTL INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS PKGCONFIG LIBTOOL_DEPS LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED LIBTOOL EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC OBJDUMP DLLTOOL AS host_os host_vendor host_cpu host build_os build_vendor build_cpu build AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_nls enable_rpath with_libiconv_prefix with_libintl_prefix enable_largefile enable_shared_libs enable_winapi enable_wide_character_type enable_verbose_output enable_debug_output with_libcerror enable_multi_threading_support with_libcthreads with_pthread with_libcdata with_libclocale with_libcnotify with_libcsplit with_libuna with_libcfile with_libcpath with_libbfio with_libfcache with_libfdata with_libfdatetime with_libfguid with_zlib with_libhmac with_openssl enable_openssl_evp_cipher enable_openssl_evp_md with_libcaes with_pyprefix enable_python with_pythondir enable_python2 with_pythondir2 enable_python3 with_pythondir3 with_libfuse enable_static_executables ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP LT_SYS_LIBRARY_PATH PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR libcerror_CFLAGS libcerror_LIBS libcthreads_CFLAGS libcthreads_LIBS libcdata_CFLAGS libcdata_LIBS libclocale_CFLAGS libclocale_LIBS libcnotify_CFLAGS libcnotify_LIBS libcsplit_CFLAGS libcsplit_LIBS libuna_CFLAGS libuna_LIBS libcfile_CFLAGS libcfile_LIBS libcpath_CFLAGS libcpath_LIBS libbfio_CFLAGS libbfio_LIBS libfcache_CFLAGS libfcache_LIBS libfdata_CFLAGS libfdata_LIBS libfdatetime_CFLAGS libfdatetime_LIBS libfguid_CFLAGS libfguid_LIBS zlib_CFLAGS zlib_LIBS libhmac_CFLAGS libhmac_LIBS openssl_CFLAGS openssl_LIBS libcaes_CFLAGS libcaes_LIBS fuse_CFLAGS fuse_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures libfsapfs 20190210 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/libfsapfs] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of libfsapfs 20190210:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --disable-largefile omit support for large files --disable-shared-libs disable shared library support --enable-winapi enable WINAPI support for cross-compilation [default=auto-detect] --enable-wide-character-type enable wide character type support [default=no] --enable-verbose-output enable verbose output [default=no] --enable-debug-output enable debug output [default=no] --enable-multi-threading-support enable multi-threading support [default=yes] --enable-openssl-evp-cipher enable OpenSSL EVP CIPHER support, or no to disable [default=auto-detect] --enable-openssl-evp-md enable OpenSSL EVP MD support, or no to disable [default=auto-detect] --enable-python build Python bindings [default=no] --enable-python2 build Python 2 bindings [default=no] --enable-python3 build Python 3 bindings [default=no] --enable-static-executables build static executables (binaries) [default=no] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-libcerror[=DIR] search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libcthreads[=DIR] search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-pthread[=DIR] search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread [default=auto-detect] --with-libcdata[=DIR] search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libclocale[=DIR] search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libcnotify[=DIR] search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libcsplit[=DIR] search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libuna[=DIR] search for libuna in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libcfile[=DIR] search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libcpath[=DIR] search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libbfio[=DIR] search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libfcache[=DIR] search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libfdata[=DIR] search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libfdatetime[=DIR] search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-libfguid[=DIR] search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-zlib[=DIR] search for zlib in includedir and libdir or in the specified DIR, or no if not to use zlib [default=auto-detect] --with-libhmac[=DIR] search for libhmac in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-openssl[=DIR] search for OpenSSL in includedir and libdir or in the specified DIR, or no if not to use OpenSSL [default=auto-detect] --with-libcaes[=DIR] search for libcaes in includedir and libdir or in the specified DIR, or no if to use local version [default=auto-detect] --with-pyprefix[=no] use `python-config --prefix' to determine the prefix of pythondir instead of --prefix [default=no] --with-pythondir[=no] use to specify the Python directory (pythondir) [default=no] --with-pythondir2[=no] use to specify the Python 2 directory (pythondir2) [default=no] --with-pythondir3[=no] use to specify the Python 3 directory (pythondir3) [default=no] --with-libfuse[=DIR] search for libfuse in includedir and libdir or in the specified DIR, or no if not to use libfuse [default=auto-detect] Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor LT_SYS_LIBRARY_PATH User-defined run-time library search path. PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path libcerror_CFLAGS C compiler flags for libcerror, overriding pkg-config libcerror_LIBS linker flags for libcerror, overriding pkg-config libcthreads_CFLAGS C compiler flags for libcthreads, overriding pkg-config libcthreads_LIBS linker flags for libcthreads, overriding pkg-config libcdata_CFLAGS C compiler flags for libcdata, overriding pkg-config libcdata_LIBS linker flags for libcdata, overriding pkg-config libclocale_CFLAGS C compiler flags for libclocale, overriding pkg-config libclocale_LIBS linker flags for libclocale, overriding pkg-config libcnotify_CFLAGS C compiler flags for libcnotify, overriding pkg-config libcnotify_LIBS linker flags for libcnotify, overriding pkg-config libcsplit_CFLAGS C compiler flags for libcsplit, overriding pkg-config libcsplit_LIBS linker flags for libcsplit, overriding pkg-config libuna_CFLAGS C compiler flags for libuna, overriding pkg-config libuna_LIBS linker flags for libuna, overriding pkg-config libcfile_CFLAGS C compiler flags for libcfile, overriding pkg-config libcfile_LIBS linker flags for libcfile, overriding pkg-config libcpath_CFLAGS C compiler flags for libcpath, overriding pkg-config libcpath_LIBS linker flags for libcpath, overriding pkg-config libbfio_CFLAGS C compiler flags for libbfio, overriding pkg-config libbfio_LIBS linker flags for libbfio, overriding pkg-config libfcache_CFLAGS C compiler flags for libfcache, overriding pkg-config libfcache_LIBS linker flags for libfcache, overriding pkg-config libfdata_CFLAGS C compiler flags for libfdata, overriding pkg-config libfdata_LIBS linker flags for libfdata, overriding pkg-config libfdatetime_CFLAGS C compiler flags for libfdatetime, overriding pkg-config libfdatetime_LIBS linker flags for libfdatetime, overriding pkg-config libfguid_CFLAGS C compiler flags for libfguid, overriding pkg-config libfguid_LIBS linker flags for libfguid, overriding pkg-config zlib_CFLAGS C compiler flags for zlib, overriding pkg-config zlib_LIBS linker flags for zlib, overriding pkg-config libhmac_CFLAGS C compiler flags for libhmac, overriding pkg-config libhmac_LIBS linker flags for libhmac, overriding pkg-config openssl_CFLAGS C compiler flags for openssl, overriding pkg-config openssl_LIBS linker flags for openssl, overriding pkg-config libcaes_CFLAGS C compiler flags for libcaes, overriding pkg-config libcaes_LIBS linker flags for libcaes, overriding pkg-config fuse_CFLAGS C compiler flags for fuse, overriding pkg-config fuse_LIBS linker flags for fuse, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF libfsapfs configure 20190210 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## ------------------------------------- ## ## Report this to joachim.metz@gmail.com ## ## ------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 &5 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { #ifndef $as_decl_name #ifdef __cplusplus (void) $as_decl_use; #else (void) $as_decl_name; #endif #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_decl cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by libfsapfs $as_me 20190210, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi gt_needs="$gt_needs " # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.16' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='libfsapfs' VERSION='20190210' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar plaintar pax cpio none' # The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } if test $am_uid -le $am_max_uid; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } _am_tools=none fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } if test $am_gid -le $am_max_gid; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } _am_tools=none fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 $as_echo_n "checking how to create a ustar tar archive... " >&6; } # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_ustar-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do { echo "$as_me:$LINENO: $_am_tar --version" >&5 ($_am_tar --version) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && break done am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x ustar -w "$$tardir"' am__tar_='pax -L -x ustar -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H ustar -L' am__tar_='find "$tardir" -print | cpio -o -H ustar -L' am__untar='cpio -i -H ustar -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_ustar}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -rf conftest.dir if test -s conftest.tar; then { echo "$as_me:$LINENO: $am__untar &5 ($am__untar &5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 (cat conftest.dir/file) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } grep GrepMe conftest.dir/file >/dev/null 2>&1 && break fi done rm -rf conftest.dir if ${am_cv_prog_tar_ustar+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_prog_tar_ustar=$_am_tool fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 $as_echo "$am_cv_prog_tar_ustar" >&6; } # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AS="${ac_tool_prefix}as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 $as_echo "$AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AS="as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 $as_echo "$ac_ct_AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac test -z "$AS" && AS=as test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 $as_echo "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" if test $ac_cv_c_compiler_gnu = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 $as_echo_n "checking whether $CC needs -traditional... " >&6; } if ${ac_cv_prog_gcc_traditional+:} false; then : $as_echo_n "(cached) " >&6 else ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 $as_echo "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else pic_mode=default fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen=dlopen else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report what library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC ac_config_commands="$ac_config_commands libtool" # Only expand once: # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKGCONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKGCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKGCONFIG=$ac_cv_path_PKGCONFIG if test -n "$PKGCONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 $as_echo "$PKGCONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } GETTEXT_MACRO_VERSION=0.18 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$localedir" || localedir='${datadir}/locale' test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 $as_echo_n "checking for ld used by GCC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${acl_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${acl_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } if ${acl_cv_rpath+:} false; then : $as_echo_n "(cached) " >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes fi acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 $as_echo_n "checking for 64-bit host... " >&6; } if ${gl_cv_solaris_64bit+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _LP64 sixtyfour bits #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : gl_cv_solaris_64bit=yes else gl_cv_solaris_64bit=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 $as_echo "$gl_cv_solaris_64bit" >&6; } if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 $as_echo_n "checking for GNU gettext in libc... " >&6; } if eval \${$gt_func_gnugettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libc=yes" else eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if ${am_cv_func_iconv+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 $as_echo_n "checking for working iconv... " >&6; } if ${am_cv_func_iconv_works+:} false; then : $as_echo_n "(cached) " >&6 else am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi if test "$cross_compiling" = yes; then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : am_cv_func_iconv_works=yes else am_cv_func_iconv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$am_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 $as_echo "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 $as_echo_n "checking how to link with libiconv... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 $as_echo "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 $as_echo_n "checking for GNU gettext in libintl... " >&6; } if eval \${$gt_func_gnugettext_libintl+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libintl=yes" else eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 $as_echo_n "checking whether to use NLS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 $as_echo_n "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 $as_echo "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 $as_echo_n "checking how to link with libintl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 $as_echo "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi INTLLIBS="$LIBINTL" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 $as_echo_n "checking for working volatile... " >&6; } if ${ac_cv_c_volatile+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { volatile int x; int * volatile y = (int *) 0; return !x && !y; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_volatile=yes else ac_cv_c_volatile=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 $as_echo "$ac_cv_c_volatile" >&6; } if test $ac_cv_c_volatile = no; then $as_echo "#define volatile /**/" >>confdefs.h fi # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } if ${ac_cv_sys_largefile_CC+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : break fi rm -f core conftest.err conftest.$ac_objext CC="$CC -n32" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_largefile_CC=' -n32'; break fi rm -f core conftest.err conftest.$ac_objext break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 $as_echo "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } if ${ac_cv_sys_file_offset_bits+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_file_offset_bits=64; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } if ${ac_cv_sys_large_files+:} false; then : $as_echo_n "(cached) " >&6 else while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_sys_large_files=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 $as_echo "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _LARGE_FILES $ac_cv_sys_large_files _ACEOF ;; esac rm -rf conftest* fi fi # Check whether --enable-shared-libs was given. if test "${enable_shared_libs+set}" = set; then : enableval=$enable_shared_libs; ac_cv_enable_shared_libs=$enableval else ac_cv_enable_shared_libs="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable disable shared library support" >&5 $as_echo_n "checking whether to disable disable shared library support... " >&6; } if ${ac_cv_enable_shared_libs+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_shared_libs="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_shared_libs" >&5 $as_echo "$ac_cv_enable_shared_libs" >&6; } # Check whether --enable-winapi was given. if test "${enable_winapi+set}" = set; then : enableval=$enable_winapi; ac_cv_enable_winapi=$enableval else ac_cv_enable_winapi=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable WINAPI support for cross-compilation" >&5 $as_echo_n "checking whether to enable enable WINAPI support for cross-compilation... " >&6; } if ${ac_cv_enable_winapi+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_winapi=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_winapi" >&5 $as_echo "$ac_cv_enable_winapi" >&6; } if test "x$ac_cv_enable_winapi" = xauto-detect; then : ac_common_check_winapi_target_string="$target" if test "x$ac_common_check_winapi_target_string" = x; then : ac_common_check_winapi_target_string="$host" fi case $ac_common_check_winapi_target_string in #( *mingw*) : { $as_echo "$as_me:${as_lineno-$LINENO}: detected MinGW enabling WINAPI support for cross-compilation" >&5 $as_echo "$as_me: detected MinGW enabling WINAPI support for cross-compilation" >&6;} ac_cv_enable_winapi=yes ;; #( *msys*) : { $as_echo "$as_me:${as_lineno-$LINENO}: detected MSYS enabling WINAPI support for cross-compilation" >&5 $as_echo "$as_me: detected MSYS enabling WINAPI support for cross-compilation" >&6;} ac_cv_enable_winapi=yes ;; #( *) : ac_cv_enable_winapi=no ;; #( *) : ;; esac fi # Check whether --enable-wide-character-type was given. if test "${enable_wide_character_type+set}" = set; then : enableval=$enable_wide_character_type; ac_cv_enable_wide_character_type=$enableval else ac_cv_enable_wide_character_type=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable wide character type support" >&5 $as_echo_n "checking whether to enable enable wide character type support... " >&6; } if ${ac_cv_enable_wide_character_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_wide_character_type=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_wide_character_type" >&5 $as_echo "$ac_cv_enable_wide_character_type" >&6; } # Check whether --enable-verbose-output was given. if test "${enable_verbose_output+set}" = set; then : enableval=$enable_verbose_output; ac_cv_enable_verbose_output=$enableval else ac_cv_enable_verbose_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable verbose output" >&5 $as_echo_n "checking whether to enable enable verbose output... " >&6; } if ${ac_cv_enable_verbose_output+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_verbose_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_verbose_output" >&5 $as_echo "$ac_cv_enable_verbose_output" >&6; } if test "x$ac_cv_enable_verbose_output" != xno ; then : $as_echo "#define HAVE_VERBOSE_OUTPUT 1" >>confdefs.h ac_cv_enable_verbose_output=yes fi # Check whether --enable-debug-output was given. if test "${enable_debug_output+set}" = set; then : enableval=$enable_debug_output; ac_cv_enable_debug_output=$enableval else ac_cv_enable_debug_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable debug output" >&5 $as_echo_n "checking whether to enable enable debug output... " >&6; } if ${ac_cv_enable_debug_output+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_debug_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_debug_output" >&5 $as_echo "$ac_cv_enable_debug_output" >&6; } if test "x$ac_cv_enable_debug_output" != xno ; then : $as_echo "#define HAVE_DEBUG_OUTPUT 1" >>confdefs.h ac_cv_enable_debug_output=yes fi if test "x$ac_cv_enable_winapi" = xyes; then : ac_cv_enable_wide_character_type=yes fi if test "x$ac_cv_enable_wide_character_type" = xyes; then : $as_echo "#define HAVE_WIDE_CHARACTER_TYPE 1" >>confdefs.h HAVE_WIDE_CHARACTER_TYPE=1 else HAVE_WIDE_CHARACTER_TYPE=0 fi for ac_header in sys/types.h inttypes.h stdint.h wchar.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_header_sys_types_h" = xyes; then : HAVE_SYS_TYPES_H=1 else HAVE_SYS_TYPES_H=0 fi if test "x$ac_cv_header_inttypes_h" = xyes; then : HAVE_INTTYPES_H=1 else HAVE_INTTYPES_H=0 fi if test "x$ac_cv_header_stdint_h" = xyes; then : HAVE_STDINT_H=1 else HAVE_STDINT_H=0 fi if test "x$ac_cv_header_wchar_h" = xyes; then : HAVE_WCHAR_H=1 else HAVE_WCHAR_H=0 fi ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" if test "x$ac_cv_type_mode_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define mode_t int _ACEOF fi ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" if test "x$ac_cv_type_off_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define off_t long int _ACEOF fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi ac_fn_c_check_type "$LINENO" "size32_t" "ac_cv_type_size32_t" "$ac_includes_default" if test "x$ac_cv_type_size32_t" = xyes; then : HAVE_SIZE32_T=1 else HAVE_SIZE32_T=0 fi ac_fn_c_check_type "$LINENO" "ssize32_t" "ac_cv_type_ssize32_t" "$ac_includes_default" if test "x$ac_cv_type_ssize32_t" = xyes; then : HAVE_SSIZE32_T=1 else HAVE_SSIZE32_T=0 fi ac_fn_c_check_type "$LINENO" "size64_t" "ac_cv_type_size64_t" "$ac_includes_default" if test "x$ac_cv_type_size64_t" = xyes; then : HAVE_SIZE64_T=1 else HAVE_SIZE64_T=0 fi ac_fn_c_check_type "$LINENO" "ssize64_t" "ac_cv_type_ssize64_t" "$ac_includes_default" if test "x$ac_cv_type_ssize64_t" = xyes; then : HAVE_SSIZE64_T=1 else HAVE_SSIZE64_T=0 fi ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" if test "x$ac_cv_type_off64_t" = xyes; then : HAVE_OFF64_T=1 else HAVE_OFF64_T=0 fi ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" if test "x$ac_cv_type_ssize_t" = xyes; then : fi ac_fn_c_check_type "$LINENO" "u64" "ac_cv_type_u64" "$ac_includes_default" if test "x$ac_cv_type_u64" = xyes; then : fi # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : else if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 $as_echo "$ac_cv_sizeof_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : else if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 $as_echo "$ac_cv_sizeof_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 $as_echo_n "checking size of off_t... " >&6; } if ${ac_cv_sizeof_off_t+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : else if test "$ac_cv_type_off_t" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (off_t) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_off_t=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 $as_echo "$ac_cv_sizeof_off_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_OFF_T $ac_cv_sizeof_off_t _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 $as_echo_n "checking size of size_t... " >&6; } if ${ac_cv_sizeof_size_t+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : else if test "$ac_cv_type_size_t" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (size_t) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_size_t=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 $as_echo "$ac_cv_sizeof_size_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t _ACEOF if test "x$ac_cv_header_wchar_h" = xyes; then : # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 $as_echo_n "checking size of wchar_t... " >&6; } if ${ac_cv_sizeof_wchar_t+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : else if test "$ac_cv_type_wchar_t" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (wchar_t) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_wchar_t=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 $as_echo "$ac_cv_sizeof_wchar_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t _ACEOF fi if test "x$ac_cv_enable_winapi" = xyes; then : for ac_header in windows.h do : ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" if test "x$ac_cv_header_windows_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_WINDOWS_H 1 _ACEOF fi done if test "x$ac_cv_header_windows_h" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing header: windows.h header is required to compile with winapi support See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_enable_winapi" = xno; then : for ac_header in libintl.h do : ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" if test "x$ac_cv_header_libintl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBINTL_H 1 _ACEOF fi done fi for ac_header in limits.h do : ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" if test "x$ac_cv_header_limits_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIMITS_H 1 _ACEOF fi done for ac_header in stdlib.h string.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in wchar.h wctype.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in fclose feof fgets fopen fread fseeko fseeko64 fwrite vfprintf do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fclose" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fclose See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_feof" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: feof See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_fgets" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fgets See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_fopen" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fopen See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_fread" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fread See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_fseeko" != xyes && test "x$ac_cv_func_fseeko64" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fseeko and fseeko64 See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_fwrite" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fwrite See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_vfprintf" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: vfprintf See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_enable_wide_character_type" != xno; then : for ac_func in fgetws do : ac_fn_c_check_func "$LINENO" "fgetws" "ac_cv_func_fgetws" if test "x$ac_cv_func_fgetws" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FGETWS 1 _ACEOF fi done if test "x$ac_cv_func_fgetws" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fgetws See \`config.log' for more details" "$LINENO" 5; } fi fi for ac_func in free malloc memcmp memcpy memset realloc do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_free" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: free See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_malloc" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: malloc See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_memcmp" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: memcmp See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_memcpy" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: memcpy See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_memset" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: memset See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_realloc" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: realloc See \`config.log' for more details" "$LINENO" 5; } fi for ac_func in memchr memrchr snprintf sscanf strcasecmp strchr strlen strncasecmp strncmp strncpy strnicmp strrchr strstr vsnprintf do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_memchr" != xyes && test "x$ac_cv_func_strchr" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: memchr and strchr See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_memcmp" != xyes && test "x$ac_cv_func_strncmp" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: memcmp and strncmp See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_memcpy" != xyes && test "x$ac_cv_func_strncpy" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: memcpy and strncpy See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_memrchr" = xyes; then : ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" if test "x$ac_cv_have_decl_memrchr" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_MEMRCHR $ac_have_decl _ACEOF if test "x$ac_cv_decl_memrchr" != xyes; then : ac_cv_func_memrchr=no fi fi if test "x$ac_cv_func_memrchr" != xyes && test "x$ac_cv_func_strrchr" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: strrchr and memrchr See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_snprintf" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: snprintf See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_sscanf" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: sscanf See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_strlen" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: strlen See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_strcasecmp" != xyes && test "x$ac_cv_func_strncasecmp" != xyes && test "x$ac_cv_func_strnicmp" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: strncasecmp, strcasecmp and strnicmp See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_strstr" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: strstr See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_vsnprintf" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: vsnprintf See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_enable_wide_character_type" != xno; then : for ac_func in swprintf towlower wcscasecmp wcschr wcslen wcsncasecmp wcsncmp wcsncpy wcsnicmp wcsrchr wcsstr wmemchr wmemcmp wmemcpy wmemrchr do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_swprintf" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: swprintf See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_wmemchr" != xyes && test "x$ac_cv_func_wcschr" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: wmemchr and wcschr See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_wmemcmp" != xyes && test "x$ac_cv_func_wcsncmp" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: wmemcmp and wcsncmp See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_wmemcpy" != xyes && test "x$ac_cv_func_wcsncpy" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: wmemcpy and wcsncpy See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_wmemrchr" != xyes && test "x$ac_cv_func_wcsrchr" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: wmemrchr and wcsrchr See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_wcslen" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: wcslen See \`config.log' for more details" "$LINENO" 5; } fi if 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; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: wcsncasecmp, wcscasecmp, wcsnicmp and towlower See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_wcsstr" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: wcsstr See \`config.log' for more details" "$LINENO" 5; } fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%jd\"" >&5 $as_echo_n "checking whether printf supports the conversion specifier \"%jd\"... " >&6; } SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { printf( "%jd" ); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_cv_have_printf_jd=no else ac_cv_cv_have_printf_jd=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$ac_cv_cv_have_printf_jd" = xyes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { printf( "%jd", (off_t) 10 ); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_cv_have_printf_jd=yes else ac_cv_cv_have_printf_jd=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test "x$ac_cv_cv_have_printf_jd" = xyes; then : if test "$cross_compiling" = yes; then : ac_cv_cv_have_printf_jd=undetermined else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { char string[ 3 ]; if( snprintf( string, 3, "%jd", (off_t) 10 ) < 0 ) return( 1 ); if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_cv_have_printf_jd=yes else ac_cv_cv_have_printf_jd=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS="$SAVE_CFLAGS" if test "x$ac_cv_cv_have_printf_jd" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_PRINTF_JD 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_jd" >&5 $as_echo "$ac_cv_cv_have_printf_jd" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%zd\"" >&5 $as_echo_n "checking whether printf supports the conversion specifier \"%zd\"... " >&6; } SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { printf( "%zd" ); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_cv_have_printf_zd=no else ac_cv_cv_have_printf_zd=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$ac_cv_cv_have_printf_zd" = xyes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { printf( "%zd", (size_t) 10 ); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_cv_have_printf_zd=yes else ac_cv_cv_have_printf_zd=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test "x$ac_cv_cv_have_printf_zd" = xyes; then : if test "$cross_compiling" = yes; then : ac_cv_cv_have_printf_zd=undetermined else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { char string[ 3 ]; if( snprintf( string, 3, "%zd", (size_t) 10 ) < 0 ) return( 1 ); if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_cv_have_printf_zd=yes else ac_cv_cv_have_printf_zd=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS="$SAVE_CFLAGS" if test "x$ac_cv_cv_have_printf_zd" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_PRINTF_ZD 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_zd" >&5 $as_echo "$ac_cv_cv_have_printf_zd" >&6; } fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi # Check whether --with-libcerror was given. if test "${with_libcerror+set}" = set; then : withval=$with_libcerror; ac_cv_with_libcerror=$withval else ac_cv_with_libcerror=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcerror=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcerror" >&5 $as_echo "$ac_cv_with_libcerror" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcerror" = xno; then : ac_cv_libcerror=no else if test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect; then : if test -d "$ac_cv_with_libcerror"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcerror}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcerror}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcerror See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcerror=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror" >&5 $as_echo_n "checking for libcerror... " >&6; } if test -n "$libcerror_CFLAGS"; then pkg_cv_libcerror_CFLAGS="$libcerror_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcerror_CFLAGS=`$PKG_CONFIG --cflags "libcerror >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcerror_LIBS"; then pkg_cv_libcerror_LIBS="$libcerror_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcerror_LIBS=`$PKG_CONFIG --libs "libcerror >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcerror_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcerror >= 20120425" 2>&1` else libcerror_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcerror >= 20120425" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcerror_PKG_ERRORS" >&5 ac_cv_libcerror=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcerror=check else libcerror_CFLAGS=$pkg_cv_libcerror_CFLAGS libcerror_LIBS=$pkg_cv_libcerror_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcerror=yes fi fi if test "x$ac_cv_libcerror" = xyes; then : ac_cv_libcerror_CPPFLAGS="$pkg_cv_libcerror_CFLAGS" ac_cv_libcerror_LIBADD="$pkg_cv_libcerror_LIBS" fi fi if test "x$ac_cv_libcerror" = xcheck; then : for ac_header in libcerror.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcerror.h" "ac_cv_header_libcerror_h" "$ac_includes_default" if test "x$ac_cv_header_libcerror_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCERROR_H 1 _ACEOF fi done if test "x$ac_cv_header_libcerror_h" = xno; then : ac_cv_libcerror=no else ac_cv_libcerror=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_get_version in -lcerror" >&5 $as_echo_n "checking for libcerror_get_version in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_get_version (); int main () { return libcerror_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_get_version=yes else ac_cv_lib_cerror_libcerror_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_get_version" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_get_version" >&6; } if test "x$ac_cv_lib_cerror_libcerror_get_version" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_free in -lcerror" >&5 $as_echo_n "checking for libcerror_error_free in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_error_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_error_free (); int main () { return libcerror_error_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_error_free=yes else ac_cv_lib_cerror_libcerror_error_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_free" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_error_free" >&6; } if test "x$ac_cv_lib_cerror_libcerror_error_free" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_set in -lcerror" >&5 $as_echo_n "checking for libcerror_error_set in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_error_set+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_error_set (); int main () { return libcerror_error_set (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_error_set=yes else ac_cv_lib_cerror_libcerror_error_set=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_set" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_error_set" >&6; } if test "x$ac_cv_lib_cerror_libcerror_error_set" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_matches in -lcerror" >&5 $as_echo_n "checking for libcerror_error_matches in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_error_matches+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_error_matches (); int main () { return libcerror_error_matches (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_error_matches=yes else ac_cv_lib_cerror_libcerror_error_matches=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_matches" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_error_matches" >&6; } if test "x$ac_cv_lib_cerror_libcerror_error_matches" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_fprint in -lcerror" >&5 $as_echo_n "checking for libcerror_error_fprint in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_error_fprint+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_error_fprint (); int main () { return libcerror_error_fprint (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_error_fprint=yes else ac_cv_lib_cerror_libcerror_error_fprint=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_fprint" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_error_fprint" >&6; } if test "x$ac_cv_lib_cerror_libcerror_error_fprint" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_sprint in -lcerror" >&5 $as_echo_n "checking for libcerror_error_sprint in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_error_sprint+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_error_sprint (); int main () { return libcerror_error_sprint (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_error_sprint=yes else ac_cv_lib_cerror_libcerror_error_sprint=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_sprint" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_error_sprint" >&6; } if test "x$ac_cv_lib_cerror_libcerror_error_sprint" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_fprint in -lcerror" >&5 $as_echo_n "checking for libcerror_error_backtrace_fprint in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_error_backtrace_fprint+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_error_backtrace_fprint (); int main () { return libcerror_error_backtrace_fprint (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_error_backtrace_fprint=yes else ac_cv_lib_cerror_libcerror_error_backtrace_fprint=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_backtrace_fprint" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" >&6; } if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_sprint in -lcerror" >&5 $as_echo_n "checking for libcerror_error_backtrace_sprint in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_error_backtrace_sprint+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_error_backtrace_sprint (); int main () { return libcerror_error_backtrace_sprint (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_error_backtrace_sprint=yes else ac_cv_lib_cerror_libcerror_error_backtrace_sprint=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_backtrace_sprint" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" >&6; } if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_system_set_error in -lcerror" >&5 $as_echo_n "checking for libcerror_system_set_error in -lcerror... " >&6; } if ${ac_cv_lib_cerror_libcerror_system_set_error+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcerror $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcerror_system_set_error (); int main () { return libcerror_system_set_error (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cerror_libcerror_system_set_error=yes else ac_cv_lib_cerror_libcerror_system_set_error=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_system_set_error" >&5 $as_echo "$ac_cv_lib_cerror_libcerror_system_set_error" >&6; } if test "x$ac_cv_lib_cerror_libcerror_system_set_error" = xyes; then : ac_cv_libcerror_dummy=yes else ac_cv_libcerror=no fi ac_cv_libcerror_LIBADD="-lcerror" fi fi if test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect && test "x$ac_cv_libcerror" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcerror in directory: $ac_cv_with_libcerror See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcerror" = xyes; then : $as_echo "#define HAVE_LIBCERROR 1" >>confdefs.h fi if test "x$ac_cv_libcerror" = xyes; then : HAVE_LIBCERROR=1 else HAVE_LIBCERROR=0 fi if test "x$ac_cv_libcerror" != xyes; then : for ac_header in stdarg.h varargs.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing headers: stdarg.h and varargs.h See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_enable_wide_character_type" != xno; then : for ac_func in wcstombs do : ac_fn_c_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs" if test "x$ac_cv_func_wcstombs" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_WCSTOMBS 1 _ACEOF fi done if test "x$ac_cv_func_wcstombs" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: wcstombs See \`config.log' for more details" "$LINENO" 5; } fi fi ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" if test "x$ac_cv_have_decl_strerror_r" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRERROR_R $ac_have_decl _ACEOF for ac_func in strerror_r do : ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" if test "x$ac_cv_func_strerror_r" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRERROR_R 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 $as_echo_n "checking whether strerror_r returns char *... " >&6; } if ${ac_cv_func_strerror_r_char_p+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); char *p = strerror_r (0, buf, sizeof buf); return !p || x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_strerror_r_char_p=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else # strerror_r is not declared. Choose between # systems that have relatively inaccessible declarations for the # function. BeOS and DEC UNIX 4.0 fall in this category, but the # former has a strerror_r that returns char*, while the latter # has a strerror_r that returns `int'. # This test should segfault on the DEC system. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default extern char *strerror_r (); int main () { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); return ! isalpha (x); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_strerror_r_char_p=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } if test $ac_cv_func_strerror_r_char_p = yes; then $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h fi if test "x$ac_cv_have_decl_strerror_r" != xyes; then : for ac_func in strerror do : ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" if test "x$ac_cv_func_strerror" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRERROR 1 _ACEOF fi done if test "x$ac_cv_func_strerror" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: strerror_r and strerror See \`config.log' for more details" "$LINENO" 5; } fi fi ac_cv_libcerror_CPPFLAGS="-I../libcerror"; ac_cv_libcerror_LIBADD="../libcerror/libcerror.la"; ac_cv_libcerror=local $as_echo "#define HAVE_LOCAL_LIBCERROR 1" >>confdefs.h HAVE_LOCAL_LIBCERROR=1 fi if test "x$ac_cv_libcerror" = xlocal; then HAVE_LOCAL_LIBCERROR_TRUE= HAVE_LOCAL_LIBCERROR_FALSE='#' else HAVE_LOCAL_LIBCERROR_TRUE='#' HAVE_LOCAL_LIBCERROR_FALSE= fi if test "x$ac_cv_libcerror_CPPFLAGS" != "x"; then : LIBCERROR_CPPFLAGS=$ac_cv_libcerror_CPPFLAGS fi if test "x$ac_cv_libcerror_LIBADD" != "x"; then : LIBCERROR_LIBADD=$ac_cv_libcerror_LIBADD fi if test "x$ac_cv_libcerror" = xyes; then : ax_libcerror_pc_libs_private=-lcerror fi if test "x$ac_cv_libcerror" = xyes; then : ax_libcerror_spec_requires=libcerror ax_libcerror_spec_build_requires=libcerror-devel fi # Check whether --enable-multi-threading-support was given. if test "${enable_multi_threading_support+set}" = set; then : enableval=$enable_multi_threading_support; ac_cv_enable_multi_threading_support=$enableval else ac_cv_enable_multi_threading_support=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable multi-threading support" >&5 $as_echo_n "checking whether to enable enable multi-threading support... " >&6; } if ${ac_cv_enable_multi_threading_support+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_multi_threading_support=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_multi_threading_support" >&5 $as_echo "$ac_cv_enable_multi_threading_support" >&6; } # Check whether --with-libcthreads was given. if test "${with_libcthreads+set}" = set; then : withval=$with_libcthreads; ac_cv_with_libcthreads=$withval else ac_cv_with_libcthreads=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcthreads+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcthreads=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcthreads" >&5 $as_echo "$ac_cv_with_libcthreads" >&6; } if test "x$ac_cv_enable_multi_threading_support" = xno; then : ac_cv_libcthreads="no" ac_cv_libcthreads_multi_threading="no" else if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcthreads" = xno; then : ac_cv_libcthreads=no else if test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect; then : if test -d "$ac_cv_with_libcthreads"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcthreads}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcthreads}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcthreads See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcthreads=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads" >&5 $as_echo_n "checking for libcthreads... " >&6; } if test -n "$libcthreads_CFLAGS"; then pkg_cv_libcthreads_CFLAGS="$libcthreads_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcthreads >= 20160404\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcthreads >= 20160404") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcthreads_CFLAGS=`$PKG_CONFIG --cflags "libcthreads >= 20160404" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcthreads_LIBS"; then pkg_cv_libcthreads_LIBS="$libcthreads_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcthreads >= 20160404\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcthreads >= 20160404") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcthreads_LIBS=`$PKG_CONFIG --libs "libcthreads >= 20160404" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcthreads_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcthreads >= 20160404" 2>&1` else libcthreads_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcthreads >= 20160404" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcthreads_PKG_ERRORS" >&5 ac_cv_libcthreads=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcthreads=check else libcthreads_CFLAGS=$pkg_cv_libcthreads_CFLAGS libcthreads_LIBS=$pkg_cv_libcthreads_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcthreads=yes fi fi if test "x$ac_cv_libcthreads" = xyes; then : ac_cv_libcthreads_CPPFLAGS="$pkg_cv_libcthreads_CFLAGS" ac_cv_libcthreads_LIBADD="$pkg_cv_libcthreads_LIBS" fi fi if test "x$ac_cv_libcthreads" = xcheck; then : for ac_header in libcthreads.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcthreads.h" "ac_cv_header_libcthreads_h" "$ac_includes_default" if test "x$ac_cv_header_libcthreads_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCTHREADS_H 1 _ACEOF fi done if test "x$ac_cv_header_libcthreads_h" = xno; then : ac_cv_libcthreads=no else ac_cv_libcthreads=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_get_version in -lcthreads" >&5 $as_echo_n "checking for libcthreads_get_version in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_get_version (); int main () { return libcthreads_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_get_version=yes else ac_cv_lib_cthreads_libcthreads_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_get_version" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_get_version" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_get_version" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_create in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_create in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_create (); int main () { return libcthreads_thread_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_create=yes else ac_cv_lib_cthreads_libcthreads_thread_create=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_create" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_create" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_create" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_join in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_join in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_join+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_join (); int main () { return libcthreads_thread_join (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_join=yes else ac_cv_lib_cthreads_libcthreads_thread_join=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_join" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_join" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_join" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_attributes_initialize in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_attributes_initialize in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_attributes_initialize (); int main () { return libcthreads_thread_attributes_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize=yes else ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_attributes_free in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_attributes_free in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_attributes_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_attributes_free (); int main () { return libcthreads_thread_attributes_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_attributes_free=yes else ac_cv_lib_cthreads_libcthreads_thread_attributes_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_attributes_free" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_attributes_free" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_attributes_free" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_initialize in -lcthreads" >&5 $as_echo_n "checking for libcthreads_condition_initialize in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_condition_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_condition_initialize (); int main () { return libcthreads_condition_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_condition_initialize=yes else ac_cv_lib_cthreads_libcthreads_condition_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_condition_initialize" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_condition_initialize" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_condition_initialize" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_free in -lcthreads" >&5 $as_echo_n "checking for libcthreads_condition_free in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_condition_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_condition_free (); int main () { return libcthreads_condition_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_condition_free=yes else ac_cv_lib_cthreads_libcthreads_condition_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_condition_free" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_condition_free" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_condition_free" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_broadcast in -lcthreads" >&5 $as_echo_n "checking for libcthreads_condition_broadcast in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_condition_broadcast+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_condition_broadcast (); int main () { return libcthreads_condition_broadcast (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_condition_broadcast=yes else ac_cv_lib_cthreads_libcthreads_condition_broadcast=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_condition_broadcast" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_condition_broadcast" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_condition_broadcast" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_signal in -lcthreads" >&5 $as_echo_n "checking for libcthreads_condition_signal in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_condition_signal+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_condition_signal (); int main () { return libcthreads_condition_signal (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_condition_signal=yes else ac_cv_lib_cthreads_libcthreads_condition_signal=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_condition_signal" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_condition_signal" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_condition_signal" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_wait in -lcthreads" >&5 $as_echo_n "checking for libcthreads_condition_wait in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_condition_wait+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_condition_wait (); int main () { return libcthreads_condition_wait (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_condition_wait=yes else ac_cv_lib_cthreads_libcthreads_condition_wait=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_condition_wait" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_condition_wait" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_condition_wait" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_initialize in -lcthreads" >&5 $as_echo_n "checking for libcthreads_lock_initialize in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_lock_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_lock_initialize (); int main () { return libcthreads_lock_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_lock_initialize=yes else ac_cv_lib_cthreads_libcthreads_lock_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_initialize" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_lock_initialize" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_lock_initialize" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_free in -lcthreads" >&5 $as_echo_n "checking for libcthreads_lock_free in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_lock_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_lock_free (); int main () { return libcthreads_lock_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_lock_free=yes else ac_cv_lib_cthreads_libcthreads_lock_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_free" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_lock_free" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_lock_free" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_grab in -lcthreads" >&5 $as_echo_n "checking for libcthreads_lock_grab in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_lock_grab+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_lock_grab (); int main () { return libcthreads_lock_grab (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_lock_grab=yes else ac_cv_lib_cthreads_libcthreads_lock_grab=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_grab" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_lock_grab" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_lock_grab" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_release in -lcthreads" >&5 $as_echo_n "checking for libcthreads_lock_release in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_lock_release+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_lock_release (); int main () { return libcthreads_lock_release (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_lock_release=yes else ac_cv_lib_cthreads_libcthreads_lock_release=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_release" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_lock_release" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_lock_release" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_initialize in -lcthreads" >&5 $as_echo_n "checking for libcthreads_mutex_initialize in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_mutex_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_mutex_initialize (); int main () { return libcthreads_mutex_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_mutex_initialize=yes else ac_cv_lib_cthreads_libcthreads_mutex_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_initialize" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_initialize" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_mutex_initialize" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_free in -lcthreads" >&5 $as_echo_n "checking for libcthreads_mutex_free in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_mutex_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_mutex_free (); int main () { return libcthreads_mutex_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_mutex_free=yes else ac_cv_lib_cthreads_libcthreads_mutex_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_free" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_free" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_mutex_free" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_grab in -lcthreads" >&5 $as_echo_n "checking for libcthreads_mutex_grab in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_mutex_grab+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_mutex_grab (); int main () { return libcthreads_mutex_grab (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_mutex_grab=yes else ac_cv_lib_cthreads_libcthreads_mutex_grab=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_grab" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_grab" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_mutex_grab" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_try_grab in -lcthreads" >&5 $as_echo_n "checking for libcthreads_mutex_try_grab in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_mutex_try_grab+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_mutex_try_grab (); int main () { return libcthreads_mutex_try_grab (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_mutex_try_grab=yes else ac_cv_lib_cthreads_libcthreads_mutex_try_grab=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_try_grab" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_try_grab" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_mutex_try_grab" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_release in -lcthreads" >&5 $as_echo_n "checking for libcthreads_mutex_release in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_mutex_release+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_mutex_release (); int main () { return libcthreads_mutex_release (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_mutex_release=yes else ac_cv_lib_cthreads_libcthreads_mutex_release=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_release" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_release" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_mutex_release" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_initialize in -lcthreads" >&5 $as_echo_n "checking for libcthreads_read_write_lock_initialize in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_read_write_lock_initialize (); int main () { return libcthreads_read_write_lock_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize=yes else ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_free in -lcthreads" >&5 $as_echo_n "checking for libcthreads_read_write_lock_free in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_read_write_lock_free (); int main () { return libcthreads_read_write_lock_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_read_write_lock_free=yes else ac_cv_lib_cthreads_libcthreads_read_write_lock_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_free" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_free" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_free" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_grab_for_read in -lcthreads" >&5 $as_echo_n "checking for libcthreads_read_write_lock_grab_for_read in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_read_write_lock_grab_for_read (); int main () { return libcthreads_read_write_lock_grab_for_read (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read=yes else ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_grab_for_write in -lcthreads" >&5 $as_echo_n "checking for libcthreads_read_write_lock_grab_for_write in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_read_write_lock_grab_for_write (); int main () { return libcthreads_read_write_lock_grab_for_write (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write=yes else ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_release_for_read in -lcthreads" >&5 $as_echo_n "checking for libcthreads_read_write_lock_release_for_read in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_read_write_lock_release_for_read (); int main () { return libcthreads_read_write_lock_release_for_read (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read=yes else ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_release_for_write in -lcthreads" >&5 $as_echo_n "checking for libcthreads_read_write_lock_release_for_write in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_read_write_lock_release_for_write (); int main () { return libcthreads_read_write_lock_release_for_write (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write=yes else ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_initialize in -lcthreads" >&5 $as_echo_n "checking for libcthreads_queue_initialize in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_queue_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_queue_initialize (); int main () { return libcthreads_queue_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_queue_initialize=yes else ac_cv_lib_cthreads_libcthreads_queue_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_initialize" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_queue_initialize" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_queue_initialize" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_free in -lcthreads" >&5 $as_echo_n "checking for libcthreads_queue_free in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_queue_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_queue_free (); int main () { return libcthreads_queue_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_queue_free=yes else ac_cv_lib_cthreads_libcthreads_queue_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_free" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_queue_free" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_queue_free" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_type_pop in -lcthreads" >&5 $as_echo_n "checking for libcthreads_queue_type_pop in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_queue_type_pop+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_queue_type_pop (); int main () { return libcthreads_queue_type_pop (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_queue_type_pop=yes else ac_cv_lib_cthreads_libcthreads_queue_type_pop=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_type_pop" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_queue_type_pop" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_queue_type_pop" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_pop in -lcthreads" >&5 $as_echo_n "checking for libcthreads_queue_pop in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_queue_pop+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_queue_pop (); int main () { return libcthreads_queue_pop (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_queue_pop=yes else ac_cv_lib_cthreads_libcthreads_queue_pop=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_pop" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_queue_pop" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_queue_pop" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_try_push in -lcthreads" >&5 $as_echo_n "checking for libcthreads_queue_try_push in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_queue_try_push+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_queue_try_push (); int main () { return libcthreads_queue_try_push (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_queue_try_push=yes else ac_cv_lib_cthreads_libcthreads_queue_try_push=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_try_push" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_queue_try_push" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_queue_try_push" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_push in -lcthreads" >&5 $as_echo_n "checking for libcthreads_queue_push in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_queue_push+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_queue_push (); int main () { return libcthreads_queue_push (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_queue_push=yes else ac_cv_lib_cthreads_libcthreads_queue_push=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_push" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_queue_push" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_queue_push" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_push_sorted in -lcthreads" >&5 $as_echo_n "checking for libcthreads_queue_push_sorted in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_queue_push_sorted+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_queue_push_sorted (); int main () { return libcthreads_queue_push_sorted (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_queue_push_sorted=yes else ac_cv_lib_cthreads_libcthreads_queue_push_sorted=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_push_sorted" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_queue_push_sorted" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_queue_push_sorted" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_create in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_pool_create in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_pool_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_pool_create (); int main () { return libcthreads_thread_pool_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_pool_create=yes else ac_cv_lib_cthreads_libcthreads_thread_pool_create=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_create" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_create" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_create" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_push in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_pool_push in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_pool_push+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_pool_push (); int main () { return libcthreads_thread_pool_push (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_pool_push=yes else ac_cv_lib_cthreads_libcthreads_thread_pool_push=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_push" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_push" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_push" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_push_sorted in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_pool_push_sorted in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_pool_push_sorted (); int main () { return libcthreads_thread_pool_push_sorted (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted=yes else ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_join in -lcthreads" >&5 $as_echo_n "checking for libcthreads_thread_pool_join in -lcthreads... " >&6; } if ${ac_cv_lib_cthreads_libcthreads_thread_pool_join+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcthreads_thread_pool_join (); int main () { return libcthreads_thread_pool_join (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cthreads_libcthreads_thread_pool_join=yes else ac_cv_lib_cthreads_libcthreads_thread_pool_join=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_join" >&5 $as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_join" >&6; } if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_join" = xyes; then : ac_cv_libcthreads_dummy=yes else ac_cv_libcthreads=no fi ac_cv_libcthreads_LIBADD="-lcthreads" fi fi if test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect && test "x$ac_cv_libcthreads" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcthreads in directory: $ac_cv_with_libcthreads See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcthreads" = xyes; then : $as_echo "#define HAVE_LIBCTHREADS 1" >>confdefs.h fi if test "x$ac_cv_libcthreads" = xyes; then : ac_cv_libcthreads_multi_threading=libcthreads else ac_cv_libcthreads_multi_threading=no fi if test "x$ac_cv_libcthreads" = xyes; then : HAVE_LIBCTHREADS=1 else HAVE_LIBCTHREADS=0 fi if test "x$ac_cv_libcthreads" != xyes; then : if test "x$ac_cv_enable_winapi" = xno; then : # Check whether --with-pthread was given. if test "${with_pthread+set}" = set; then : withval=$with_pthread; ac_cv_with_pthread=$withval else ac_cv_with_pthread=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread" >&5 $as_echo_n "checking whether to use search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread... " >&6; } if ${ac_cv_with_pthread+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_pthread=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pthread" >&5 $as_echo "$ac_cv_with_pthread" >&6; } if test "x$ac_cv_with_pthread" != x && test "x$ac_cv_with_pthread" != xno && test "x$ac_cv_with_pthread" != xauto-detect; then : if test -d "$ac_cv_with_pthread"; then : CFLAGS="$CFLAGS -I${ac_cv_with_pthread}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_pthread}/lib" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no such directory: $ac_cv_with_pthread" >&5 $as_echo "$as_me: WARNING: no such directory: $ac_cv_with_pthread" >&2;} fi fi if test "x$ac_cv_with_pthread" = xno; then : ac_cv_pthread=no else for ac_header in pthread.h do : ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PTHREAD_H 1 _ACEOF fi done if test "x$ac_cv_header_pthread_h" = xno; then : ac_cv_pthread=no else ac_cv_pthread=pthread { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_create (); int main () { return pthread_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_create=yes else ac_cv_lib_pthread_pthread_create=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5 $as_echo_n "checking for pthread_exit in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_exit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_exit (); int main () { return pthread_exit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_exit=yes else ac_cv_lib_pthread_pthread_exit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5 $as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; } if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5 $as_echo_n "checking for pthread_join in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_join+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_join (); int main () { return pthread_join (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_join=yes else ac_cv_lib_pthread_pthread_join=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; } if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_init in -lpthread" >&5 $as_echo_n "checking for pthread_cond_init in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_cond_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_cond_init (); int main () { return pthread_cond_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_cond_init=yes else ac_cv_lib_pthread_pthread_cond_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_init" >&5 $as_echo "$ac_cv_lib_pthread_pthread_cond_init" >&6; } if test "x$ac_cv_lib_pthread_pthread_cond_init" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_destroy in -lpthread" >&5 $as_echo_n "checking for pthread_cond_destroy in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_cond_destroy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_cond_destroy (); int main () { return pthread_cond_destroy (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_cond_destroy=yes else ac_cv_lib_pthread_pthread_cond_destroy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_destroy" >&5 $as_echo "$ac_cv_lib_pthread_pthread_cond_destroy" >&6; } if test "x$ac_cv_lib_pthread_pthread_cond_destroy" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_broadcast in -lpthread" >&5 $as_echo_n "checking for pthread_cond_broadcast in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_cond_broadcast+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_cond_broadcast (); int main () { return pthread_cond_broadcast (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_cond_broadcast=yes else ac_cv_lib_pthread_pthread_cond_broadcast=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_broadcast" >&5 $as_echo "$ac_cv_lib_pthread_pthread_cond_broadcast" >&6; } if test "x$ac_cv_lib_pthread_pthread_cond_broadcast" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_signal in -lpthread" >&5 $as_echo_n "checking for pthread_cond_signal in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_cond_signal+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_cond_signal (); int main () { return pthread_cond_signal (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_cond_signal=yes else ac_cv_lib_pthread_pthread_cond_signal=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_signal" >&5 $as_echo "$ac_cv_lib_pthread_pthread_cond_signal" >&6; } if test "x$ac_cv_lib_pthread_pthread_cond_signal" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_wait in -lpthread" >&5 $as_echo_n "checking for pthread_cond_wait in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_cond_wait+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_cond_wait (); int main () { return pthread_cond_wait (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_cond_wait=yes else ac_cv_lib_pthread_pthread_cond_wait=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_wait" >&5 $as_echo "$ac_cv_lib_pthread_pthread_cond_wait" >&6; } if test "x$ac_cv_lib_pthread_pthread_cond_wait" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_mutex_init (); int main () { return pthread_mutex_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_mutex_init=yes else ac_cv_lib_pthread_pthread_mutex_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_destroy in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_destroy in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_mutex_destroy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_mutex_destroy (); int main () { return pthread_mutex_destroy (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_mutex_destroy=yes else ac_cv_lib_pthread_pthread_mutex_destroy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_destroy" >&5 $as_echo "$ac_cv_lib_pthread_pthread_mutex_destroy" >&6; } if test "x$ac_cv_lib_pthread_pthread_mutex_destroy" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_mutex_lock (); int main () { return pthread_mutex_lock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_mutex_lock=yes else ac_cv_lib_pthread_pthread_mutex_lock=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_trylock in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_trylock in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_mutex_trylock+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_mutex_trylock (); int main () { return pthread_mutex_trylock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_mutex_trylock=yes else ac_cv_lib_pthread_pthread_mutex_trylock=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_trylock" >&5 $as_echo "$ac_cv_lib_pthread_pthread_mutex_trylock" >&6; } if test "x$ac_cv_lib_pthread_pthread_mutex_trylock" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_unlock in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_unlock in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_mutex_unlock+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_mutex_unlock (); int main () { return pthread_mutex_unlock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_mutex_unlock=yes else ac_cv_lib_pthread_pthread_mutex_unlock=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_unlock" >&5 $as_echo "$ac_cv_lib_pthread_pthread_mutex_unlock" >&6; } if test "x$ac_cv_lib_pthread_pthread_mutex_unlock" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lpthread" >&5 $as_echo_n "checking for pthread_rwlock_init in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_rwlock_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_rwlock_init (); int main () { return pthread_rwlock_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_rwlock_init=yes else ac_cv_lib_pthread_pthread_rwlock_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_init" >&5 $as_echo "$ac_cv_lib_pthread_pthread_rwlock_init" >&6; } if test "x$ac_cv_lib_pthread_pthread_rwlock_init" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy in -lpthread" >&5 $as_echo_n "checking for pthread_rwlock_destroy in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_rwlock_destroy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_rwlock_destroy (); int main () { return pthread_rwlock_destroy (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_rwlock_destroy=yes else ac_cv_lib_pthread_pthread_rwlock_destroy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_destroy" >&5 $as_echo "$ac_cv_lib_pthread_pthread_rwlock_destroy" >&6; } if test "x$ac_cv_lib_pthread_pthread_rwlock_destroy" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_rdlock in -lpthread" >&5 $as_echo_n "checking for pthread_rwlock_rdlock in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_rwlock_rdlock+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_rwlock_rdlock (); int main () { return pthread_rwlock_rdlock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_rwlock_rdlock=yes else ac_cv_lib_pthread_pthread_rwlock_rdlock=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_rdlock" >&5 $as_echo "$ac_cv_lib_pthread_pthread_rwlock_rdlock" >&6; } if test "x$ac_cv_lib_pthread_pthread_rwlock_rdlock" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_wrlock in -lpthread" >&5 $as_echo_n "checking for pthread_rwlock_wrlock in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_rwlock_wrlock+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_rwlock_wrlock (); int main () { return pthread_rwlock_wrlock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_rwlock_wrlock=yes else ac_cv_lib_pthread_pthread_rwlock_wrlock=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_wrlock" >&5 $as_echo "$ac_cv_lib_pthread_pthread_rwlock_wrlock" >&6; } if test "x$ac_cv_lib_pthread_pthread_rwlock_wrlock" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_unlock in -lpthread" >&5 $as_echo_n "checking for pthread_rwlock_unlock in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_rwlock_unlock+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_rwlock_unlock (); int main () { return pthread_rwlock_unlock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_rwlock_unlock=yes else ac_cv_lib_pthread_pthread_rwlock_unlock=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_unlock" >&5 $as_echo "$ac_cv_lib_pthread_pthread_rwlock_unlock" >&6; } if test "x$ac_cv_lib_pthread_pthread_rwlock_unlock" = xyes; then : ac_pthread_dummy=yes else ac_cv_pthread=no fi ac_cv_pthread_LIBADD="-lpthread"; fi fi if test "x$ac_cv_pthread" = xpthread; then : $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h fi if test "x$ac_cv_pthread" != xno; then : HAVE_PTHREAD=1 else HAVE_PTHREAD=0 fi if test "x$ac_cv_pthread_CPPFLAGS" != "x"; then : PTHREAD_CPPFLAGS=$ac_cv_pthread_CPPFLAGS fi if test "x$ac_cv_pthread_LIBADD" != "x"; then : PTHREAD_LIBADD=$ac_cv_pthread_LIBADD fi if test "x$ac_cv_pthread" = xpthread; then : ax_pthread_pc_libs_private=-lpthread fi ac_cv_libcthreads_multi_threading=$ac_cv_pthread else ac_cv_libcthreads_multi_threading="winapi" fi if test "x$ac_cv_libcthreads_multi_threading" != xno; then : ac_cv_libcthreads_CPPFLAGS="-I../libcthreads"; ac_cv_libcthreads_LIBADD="../libcthreads/libcthreads.la"; ac_cv_libcthreads=local else ac_cv_libcthreads=no fi $as_echo "#define HAVE_LOCAL_LIBCTHREADS 1" >>confdefs.h HAVE_LOCAL_LIBCTHREADS=1 fi fi if test "x$ac_cv_libcthreads" = xlocal; then HAVE_LOCAL_LIBCTHREADS_TRUE= HAVE_LOCAL_LIBCTHREADS_FALSE='#' else HAVE_LOCAL_LIBCTHREADS_TRUE='#' HAVE_LOCAL_LIBCTHREADS_FALSE= fi if test "x$ac_cv_libcthreads_CPPFLAGS" != "x"; then : LIBCTHREADS_CPPFLAGS=$ac_cv_libcthreads_CPPFLAGS fi if test "x$ac_cv_libcthreads_LIBADD" != "x"; then : LIBCTHREADS_LIBADD=$ac_cv_libcthreads_LIBADD fi if test "x$ac_cv_libcthreads" != xno; then : $as_echo "#define HAVE_MULTI_THREAD_SUPPORT 1" >>confdefs.h HAVE_MULTI_THREAD_SUPPORT=1 else HAVE_MULTI_THREAD_SUPPORT=0 fi if test "x$ac_cv_libcthreads" = xyes; then : ax_libcthreads_pc_libs_private=-lcthreads fi if test "x$ac_cv_libcthreads" = xyes; then : ax_libcthreads_spec_requires=libcthreads ax_libcthreads_spec_build_requires=libcthreads-devel fi # Check whether --with-libcdata was given. if test "${with_libcdata+set}" = set; then : withval=$with_libcdata; ac_cv_with_libcdata=$withval else ac_cv_with_libcdata=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcdata+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcdata=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcdata" >&5 $as_echo "$ac_cv_with_libcdata" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcdata" = xno; then : ac_cv_libcdata=no else if test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect; then : if test -d "$ac_cv_with_libcdata"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcdata}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcdata}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcdata See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcdata=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata" >&5 $as_echo_n "checking for libcdata... " >&6; } if test -n "$libcdata_CFLAGS"; then pkg_cv_libcdata_CFLAGS="$libcdata_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdata >= 20190112\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcdata >= 20190112") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcdata_CFLAGS=`$PKG_CONFIG --cflags "libcdata >= 20190112" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcdata_LIBS"; then pkg_cv_libcdata_LIBS="$libcdata_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdata >= 20190112\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcdata >= 20190112") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcdata_LIBS=`$PKG_CONFIG --libs "libcdata >= 20190112" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcdata_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcdata >= 20190112" 2>&1` else libcdata_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcdata >= 20190112" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcdata_PKG_ERRORS" >&5 ac_cv_libcdata=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcdata=check else libcdata_CFLAGS=$pkg_cv_libcdata_CFLAGS libcdata_LIBS=$pkg_cv_libcdata_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcdata=yes fi fi if test "x$ac_cv_libcdata" = xyes; then : ac_cv_libcdata_CPPFLAGS="$pkg_cv_libcdata_CFLAGS" ac_cv_libcdata_LIBADD="$pkg_cv_libcdata_LIBS" fi fi if test "x$ac_cv_libcdata" = xcheck; then : for ac_header in libcdata.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcdata.h" "ac_cv_header_libcdata_h" "$ac_includes_default" if test "x$ac_cv_header_libcdata_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCDATA_H 1 _ACEOF fi done if test "x$ac_cv_header_libcdata_h" = xno; then : ac_cv_libcdata=no else ac_cv_libcdata=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_get_version in -lcdata" >&5 $as_echo_n "checking for libcdata_get_version in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_get_version (); int main () { return libcdata_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_get_version=yes else ac_cv_lib_cdata_libcdata_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_get_version" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_get_version" >&6; } if test "x$ac_cv_lib_cdata_libcdata_get_version" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_initialize in -lcdata" >&5 $as_echo_n "checking for libcdata_array_initialize in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_initialize (); int main () { return libcdata_array_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_initialize=yes else ac_cv_lib_cdata_libcdata_array_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_initialize" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_initialize" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_initialize" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_free in -lcdata" >&5 $as_echo_n "checking for libcdata_array_free in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_free (); int main () { return libcdata_array_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_free=yes else ac_cv_lib_cdata_libcdata_array_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_free" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_free" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_free" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_empty in -lcdata" >&5 $as_echo_n "checking for libcdata_array_empty in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_empty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_empty (); int main () { return libcdata_array_empty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_empty=yes else ac_cv_lib_cdata_libcdata_array_empty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_empty" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_empty" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_empty" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_clone in -lcdata" >&5 $as_echo_n "checking for libcdata_array_clone in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_clone (); int main () { return libcdata_array_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_clone=yes else ac_cv_lib_cdata_libcdata_array_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_clone" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_clone" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_clone" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_resize in -lcdata" >&5 $as_echo_n "checking for libcdata_array_resize in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_resize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_resize (); int main () { return libcdata_array_resize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_resize=yes else ac_cv_lib_cdata_libcdata_array_resize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_resize" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_resize" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_resize" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_reverse in -lcdata" >&5 $as_echo_n "checking for libcdata_array_reverse in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_reverse+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_reverse (); int main () { return libcdata_array_reverse (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_reverse=yes else ac_cv_lib_cdata_libcdata_array_reverse=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_reverse" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_reverse" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_reverse" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_number_of_entries in -lcdata" >&5 $as_echo_n "checking for libcdata_array_get_number_of_entries in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_get_number_of_entries+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_get_number_of_entries (); int main () { return libcdata_array_get_number_of_entries (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_get_number_of_entries=yes else ac_cv_lib_cdata_libcdata_array_get_number_of_entries=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_get_number_of_entries" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_get_number_of_entries" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_get_number_of_entries" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_entry_by_index in -lcdata" >&5 $as_echo_n "checking for libcdata_array_get_entry_by_index in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_get_entry_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_get_entry_by_index (); int main () { return libcdata_array_get_entry_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_get_entry_by_index=yes else ac_cv_lib_cdata_libcdata_array_get_entry_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_get_entry_by_index" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_get_entry_by_index" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_get_entry_by_index" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_entry_by_value in -lcdata" >&5 $as_echo_n "checking for libcdata_array_get_entry_by_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_get_entry_by_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_get_entry_by_value (); int main () { return libcdata_array_get_entry_by_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_get_entry_by_value=yes else ac_cv_lib_cdata_libcdata_array_get_entry_by_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_get_entry_by_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_get_entry_by_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_get_entry_by_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_set_entry_by_index in -lcdata" >&5 $as_echo_n "checking for libcdata_array_set_entry_by_index in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_set_entry_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_set_entry_by_index (); int main () { return libcdata_array_set_entry_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_set_entry_by_index=yes else ac_cv_lib_cdata_libcdata_array_set_entry_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_set_entry_by_index" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_set_entry_by_index" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_set_entry_by_index" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_prepend_entry in -lcdata" >&5 $as_echo_n "checking for libcdata_array_prepend_entry in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_prepend_entry+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_prepend_entry (); int main () { return libcdata_array_prepend_entry (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_prepend_entry=yes else ac_cv_lib_cdata_libcdata_array_prepend_entry=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_prepend_entry" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_prepend_entry" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_prepend_entry" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_append_entry in -lcdata" >&5 $as_echo_n "checking for libcdata_array_append_entry in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_append_entry+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_append_entry (); int main () { return libcdata_array_append_entry (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_append_entry=yes else ac_cv_lib_cdata_libcdata_array_append_entry=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_append_entry" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_append_entry" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_append_entry" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_insert_entry in -lcdata" >&5 $as_echo_n "checking for libcdata_array_insert_entry in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_insert_entry+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_insert_entry (); int main () { return libcdata_array_insert_entry (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_insert_entry=yes else ac_cv_lib_cdata_libcdata_array_insert_entry=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_insert_entry" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_insert_entry" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_insert_entry" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_remove_entry in -lcdata" >&5 $as_echo_n "checking for libcdata_array_remove_entry in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_array_remove_entry+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_array_remove_entry (); int main () { return libcdata_array_remove_entry (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_array_remove_entry=yes else ac_cv_lib_cdata_libcdata_array_remove_entry=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_remove_entry" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_array_remove_entry" >&6; } if test "x$ac_cv_lib_cdata_libcdata_array_remove_entry" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_btree_initialize in -lcdata" >&5 $as_echo_n "checking for libfdata_btree_initialize in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libfdata_btree_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_btree_initialize (); int main () { return libfdata_btree_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libfdata_btree_initialize=yes else ac_cv_lib_cdata_libfdata_btree_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libfdata_btree_initialize" >&5 $as_echo "$ac_cv_lib_cdata_libfdata_btree_initialize" >&6; } if test "x$ac_cv_lib_cdata_libfdata_btree_initialize" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_free in -lcdata" >&5 $as_echo_n "checking for libcdata_btree_free in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_btree_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_btree_free (); int main () { return libcdata_btree_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_btree_free=yes else ac_cv_lib_cdata_libcdata_btree_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_free" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_btree_free" >&6; } if test "x$ac_cv_lib_cdata_libcdata_btree_free" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_number_of_values in -lcdata" >&5 $as_echo_n "checking for libcdata_btree_get_number_of_values in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_btree_get_number_of_values+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_btree_get_number_of_values (); int main () { return libcdata_btree_get_number_of_values (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_btree_get_number_of_values=yes else ac_cv_lib_cdata_libcdata_btree_get_number_of_values=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_get_number_of_values" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_btree_get_number_of_values" >&6; } if test "x$ac_cv_lib_cdata_libcdata_btree_get_number_of_values" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_value_by_index in -lcdata" >&5 $as_echo_n "checking for libcdata_btree_get_value_by_index in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_btree_get_value_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_btree_get_value_by_index (); int main () { return libcdata_btree_get_value_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_btree_get_value_by_index=yes else ac_cv_lib_cdata_libcdata_btree_get_value_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_get_value_by_index" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_btree_get_value_by_index" >&6; } if test "x$ac_cv_lib_cdata_libcdata_btree_get_value_by_index" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_value_by_value in -lcdata" >&5 $as_echo_n "checking for libcdata_btree_get_value_by_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_btree_get_value_by_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_btree_get_value_by_value (); int main () { return libcdata_btree_get_value_by_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_btree_get_value_by_value=yes else ac_cv_lib_cdata_libcdata_btree_get_value_by_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_get_value_by_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_btree_get_value_by_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_btree_get_value_by_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_insert_value in -lcdata" >&5 $as_echo_n "checking for libcdata_btree_insert_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_btree_insert_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_btree_insert_value (); int main () { return libcdata_btree_insert_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_btree_insert_value=yes else ac_cv_lib_cdata_libcdata_btree_insert_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_insert_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_btree_insert_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_btree_insert_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_replace_value in -lcdata" >&5 $as_echo_n "checking for libcdata_btree_replace_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_btree_replace_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_btree_replace_value (); int main () { return libcdata_btree_replace_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_btree_replace_value=yes else ac_cv_lib_cdata_libcdata_btree_replace_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_replace_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_btree_replace_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_btree_replace_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_remove_value in -lcdata" >&5 $as_echo_n "checking for libcdata_btree_remove_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_btree_remove_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_btree_remove_value (); int main () { return libcdata_btree_remove_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_btree_remove_value=yes else ac_cv_lib_cdata_libcdata_btree_remove_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_remove_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_btree_remove_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_btree_remove_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_initialize in -lcdata" >&5 $as_echo_n "checking for libcdata_list_initialize in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_initialize (); int main () { return libcdata_list_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_initialize=yes else ac_cv_lib_cdata_libcdata_list_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_initialize" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_initialize" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_initialize" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_free in -lcdata" >&5 $as_echo_n "checking for libcdata_list_free in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_free (); int main () { return libcdata_list_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_free=yes else ac_cv_lib_cdata_libcdata_list_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_free" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_free" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_free" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_empty in -lcdata" >&5 $as_echo_n "checking for libcdata_list_empty in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_empty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_empty (); int main () { return libcdata_list_empty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_empty=yes else ac_cv_lib_cdata_libcdata_list_empty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_empty" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_empty" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_empty" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_clone in -lcdata" >&5 $as_echo_n "checking for libcdata_list_clone in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_clone (); int main () { return libcdata_list_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_clone=yes else ac_cv_lib_cdata_libcdata_list_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_clone" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_clone" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_clone" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_number_of_elements in -lcdata" >&5 $as_echo_n "checking for libcdata_list_get_number_of_elements in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_get_number_of_elements+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_get_number_of_elements (); int main () { return libcdata_list_get_number_of_elements (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_get_number_of_elements=yes else ac_cv_lib_cdata_libcdata_list_get_number_of_elements=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_number_of_elements" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_get_number_of_elements" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_get_number_of_elements" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_first_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_get_first_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_get_first_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_get_first_element (); int main () { return libcdata_list_get_first_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_get_first_element=yes else ac_cv_lib_cdata_libcdata_list_get_first_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_first_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_get_first_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_get_first_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_last_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_get_last_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_get_last_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_get_last_element (); int main () { return libcdata_list_get_last_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_get_last_element=yes else ac_cv_lib_cdata_libcdata_list_get_last_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_last_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_get_last_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_get_last_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_element_by_index in -lcdata" >&5 $as_echo_n "checking for libcdata_list_get_element_by_index in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_get_element_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_get_element_by_index (); int main () { return libcdata_list_get_element_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_get_element_by_index=yes else ac_cv_lib_cdata_libcdata_list_get_element_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_element_by_index" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_get_element_by_index" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_get_element_by_index" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_value_by_index in -lcdata" >&5 $as_echo_n "checking for libcdata_list_get_value_by_index in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_get_value_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_get_value_by_index (); int main () { return libcdata_list_get_value_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_get_value_by_index=yes else ac_cv_lib_cdata_libcdata_list_get_value_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_value_by_index" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_get_value_by_index" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_get_value_by_index" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_prepend_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_prepend_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_prepend_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_prepend_element (); int main () { return libcdata_list_prepend_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_prepend_element=yes else ac_cv_lib_cdata_libcdata_list_prepend_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_prepend_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_prepend_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_prepend_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_prepend_value in -lcdata" >&5 $as_echo_n "checking for libcdata_list_prepend_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_prepend_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_prepend_value (); int main () { return libcdata_list_prepend_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_prepend_value=yes else ac_cv_lib_cdata_libcdata_list_prepend_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_prepend_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_prepend_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_prepend_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_append_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_append_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_append_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_append_element (); int main () { return libcdata_list_append_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_append_element=yes else ac_cv_lib_cdata_libcdata_list_append_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_append_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_append_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_append_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_append_value in -lcdata" >&5 $as_echo_n "checking for libcdata_list_append_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_append_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_append_value (); int main () { return libcdata_list_append_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_append_value=yes else ac_cv_lib_cdata_libcdata_list_append_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_append_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_append_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_append_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_insert_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_insert_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_insert_element (); int main () { return libcdata_list_insert_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_insert_element=yes else ac_cv_lib_cdata_libcdata_list_insert_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_insert_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_insert_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_insert_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_value in -lcdata" >&5 $as_echo_n "checking for libcdata_list_insert_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_insert_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_insert_value (); int main () { return libcdata_list_insert_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_insert_value=yes else ac_cv_lib_cdata_libcdata_list_insert_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_insert_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_insert_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_insert_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_remove_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_remove_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_remove_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_remove_element (); int main () { return libcdata_list_remove_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_remove_element=yes else ac_cv_lib_cdata_libcdata_list_remove_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_remove_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_remove_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_remove_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_initialize in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_initialize in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_initialize (); int main () { return libcdata_list_element_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_initialize=yes else ac_cv_lib_cdata_libcdata_list_element_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_initialize" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_initialize" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_initialize" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_free in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_free in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_free (); int main () { return libcdata_list_element_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_free=yes else ac_cv_lib_cdata_libcdata_list_element_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_free" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_free" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_free" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_value in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_get_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_get_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_get_value (); int main () { return libcdata_list_element_get_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_get_value=yes else ac_cv_lib_cdata_libcdata_list_element_get_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_get_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_value in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_set_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_set_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_set_value (); int main () { return libcdata_list_element_set_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_set_value=yes else ac_cv_lib_cdata_libcdata_list_element_set_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_set_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_set_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_previous_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_get_previous_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_get_previous_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_get_previous_element (); int main () { return libcdata_list_element_get_previous_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_get_previous_element=yes else ac_cv_lib_cdata_libcdata_list_element_get_previous_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_previous_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_previous_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_get_previous_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_previous_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_set_previous_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_set_previous_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_set_previous_element (); int main () { return libcdata_list_element_set_previous_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_set_previous_element=yes else ac_cv_lib_cdata_libcdata_list_element_set_previous_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_set_previous_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_previous_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_set_previous_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_next_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_get_next_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_get_next_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_get_next_element (); int main () { return libcdata_list_element_get_next_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_get_next_element=yes else ac_cv_lib_cdata_libcdata_list_element_get_next_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_next_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_next_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_get_next_element" = xyes; then : ac_cv_libcdata_dummy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_next_element in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_set_next_element in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_set_next_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_set_next_element (); int main () { return libcdata_list_element_set_next_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_set_next_element=yes else ac_cv_lib_cdata_libcdata_list_element_set_next_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_set_next_element" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_next_element" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_set_next_element" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_elements in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_get_elements in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_get_elements+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_get_elements (); int main () { return libcdata_list_element_get_elements (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_get_elements=yes else ac_cv_lib_cdata_libcdata_list_element_get_elements=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_elements" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_elements" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_get_elements" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_elements in -lcdata" >&5 $as_echo_n "checking for libcdata_list_element_set_elements in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_list_element_set_elements+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_list_element_set_elements (); int main () { return libcdata_list_element_set_elements (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_list_element_set_elements=yes else ac_cv_lib_cdata_libcdata_list_element_set_elements=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_set_elements" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_elements" >&6; } if test "x$ac_cv_lib_cdata_libcdata_list_element_set_elements" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_initialize in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_initialize in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_initialize (); int main () { return libcdata_range_list_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_initialize=yes else ac_cv_lib_cdata_libcdata_range_list_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_initialize" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_initialize" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_initialize" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_free in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_free in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_free (); int main () { return libcdata_range_list_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_free=yes else ac_cv_lib_cdata_libcdata_range_list_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_free" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_free" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_free" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_empty in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_empty in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_empty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_empty (); int main () { return libcdata_range_list_empty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_empty=yes else ac_cv_lib_cdata_libcdata_range_list_empty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_empty" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_empty" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_empty" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_clone in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_clone in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_clone (); int main () { return libcdata_range_list_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_clone=yes else ac_cv_lib_cdata_libcdata_range_list_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_clone" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_clone" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_clone" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_number_of_elements in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_get_number_of_elements in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_get_number_of_elements (); int main () { return libcdata_range_list_get_number_of_elements (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements=yes else ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_insert_range in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_insert_range in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_insert_range+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_insert_range (); int main () { return libcdata_range_list_insert_range (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_insert_range=yes else ac_cv_lib_cdata_libcdata_range_list_insert_range=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_insert_range" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_insert_range" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_insert_range" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_insert_range_list in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_insert_range_list in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_insert_range_list+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_insert_range_list (); int main () { return libcdata_range_list_insert_range_list (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_insert_range_list=yes else ac_cv_lib_cdata_libcdata_range_list_insert_range_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_insert_range_list" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_insert_range_list" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_insert_range_list" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_remove_range in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_remove_range in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_remove_range+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_remove_range (); int main () { return libcdata_range_list_remove_range (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_remove_range=yes else ac_cv_lib_cdata_libcdata_range_list_remove_range=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_remove_range" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_remove_range" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_remove_range" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_range_by_index in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_get_range_by_index in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_get_range_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_get_range_by_index (); int main () { return libcdata_range_list_get_range_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_get_range_by_index=yes else ac_cv_lib_cdata_libcdata_range_list_get_range_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_range_at_offset in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_get_range_at_offset in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_get_range_at_offset (); int main () { return libcdata_range_list_get_range_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset=yes else ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_range_is_present in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_range_is_present in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_range_is_present+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_range_is_present (); int main () { return libcdata_range_list_range_is_present (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_range_is_present=yes else ac_cv_lib_cdata_libcdata_range_list_range_is_present=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_range_is_present" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_range_is_present" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_range_is_present" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_spanning_range in -lcdata" >&5 $as_echo_n "checking for libcdata_range_list_get_spanning_range in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_range_list_get_spanning_range+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_range_list_get_spanning_range (); int main () { return libcdata_range_list_get_spanning_range (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_range_list_get_spanning_range=yes else ac_cv_lib_cdata_libcdata_range_list_get_spanning_range=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" >&6; } if test "x$ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_initialize in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_initialize in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_initialize (); int main () { return libcdata_tree_node_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_initialize=yes else ac_cv_lib_cdata_libcdata_tree_node_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_initialize" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_initialize" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_initialize" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_free in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_free in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_free (); int main () { return libcdata_tree_node_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_free=yes else ac_cv_lib_cdata_libcdata_tree_node_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_free" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_free" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_free" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_empty in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_empty in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_empty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_empty (); int main () { return libcdata_tree_node_empty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_empty=yes else ac_cv_lib_cdata_libcdata_tree_node_empty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_empty" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_empty" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_empty" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_clone in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_clone in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_clone (); int main () { return libcdata_tree_node_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_clone=yes else ac_cv_lib_cdata_libcdata_tree_node_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_clone" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_clone" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_clone" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_value in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_value (); int main () { return libcdata_tree_node_get_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_value=yes else ac_cv_lib_cdata_libcdata_tree_node_get_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_value in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_set_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_set_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_set_value (); int main () { return libcdata_tree_node_set_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_set_value=yes else ac_cv_lib_cdata_libcdata_tree_node_set_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_parent_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_parent_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_parent_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_parent_node (); int main () { return libcdata_tree_node_get_parent_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_parent_node=yes else ac_cv_lib_cdata_libcdata_tree_node_get_parent_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_parent_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_set_parent_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_set_parent_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_set_parent_node (); int main () { return libcdata_tree_node_set_parent_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_set_parent_node=yes else ac_cv_lib_cdata_libcdata_tree_node_set_parent_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_previous_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_previous_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_previous_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_previous_node (); int main () { return libcdata_tree_node_get_previous_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_previous_node=yes else ac_cv_lib_cdata_libcdata_tree_node_get_previous_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_previous_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_set_previous_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_set_previous_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_set_previous_node (); int main () { return libcdata_tree_node_set_previous_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_set_previous_node=yes else ac_cv_lib_cdata_libcdata_tree_node_set_previous_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_next_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_next_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_next_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_next_node (); int main () { return libcdata_tree_node_get_next_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_next_node=yes else ac_cv_lib_cdata_libcdata_tree_node_get_next_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_next_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_next_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_next_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_next_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_set_next_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_set_next_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_set_next_node (); int main () { return libcdata_tree_node_set_next_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_set_next_node=yes else ac_cv_lib_cdata_libcdata_tree_node_set_next_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_next_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_next_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_next_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_nodes in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_nodes in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_nodes+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_nodes (); int main () { return libcdata_tree_node_get_nodes (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_nodes=yes else ac_cv_lib_cdata_libcdata_tree_node_get_nodes=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_nodes" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_nodes" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_nodes" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_nodes in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_set_nodes in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_set_nodes+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_set_nodes (); int main () { return libcdata_tree_node_set_nodes (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_set_nodes=yes else ac_cv_lib_cdata_libcdata_tree_node_set_nodes=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_nodes" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_nodes" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_nodes" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_append_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_append_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_append_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_append_node (); int main () { return libcdata_tree_node_append_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_append_node=yes else ac_cv_lib_cdata_libcdata_tree_node_append_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_append_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_append_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_append_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_append_value in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_append_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_append_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_append_value (); int main () { return libcdata_tree_node_append_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_append_value=yes else ac_cv_lib_cdata_libcdata_tree_node_append_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_append_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_append_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_append_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_insert_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_insert_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_insert_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_insert_node (); int main () { return libcdata_tree_node_insert_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_insert_node=yes else ac_cv_lib_cdata_libcdata_tree_node_insert_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_insert_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_insert_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_insert_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_insert_value in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_insert_value in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_insert_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_insert_value (); int main () { return libcdata_tree_node_insert_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_insert_value=yes else ac_cv_lib_cdata_libcdata_tree_node_insert_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_insert_value" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_insert_value" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_insert_value" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_replace_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_replace_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_replace_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_replace_node (); int main () { return libcdata_tree_node_replace_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_replace_node=yes else ac_cv_lib_cdata_libcdata_tree_node_replace_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_replace_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_replace_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_replace_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_remove_node in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_remove_node in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_remove_node+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_remove_node (); int main () { return libcdata_tree_node_remove_node (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_remove_node=yes else ac_cv_lib_cdata_libcdata_tree_node_remove_node=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_remove_node" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_remove_node" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_remove_node" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_number_of_sub_nodes in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_number_of_sub_nodes in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_number_of_sub_nodes (); int main () { return libcdata_tree_node_get_number_of_sub_nodes (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes=yes else ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_sub_node_by_index in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_sub_node_by_index in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_sub_node_by_index (); int main () { return libcdata_tree_node_get_sub_node_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index=yes else ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_leaf_node_list in -lcdata" >&5 $as_echo_n "checking for libcdata_tree_node_get_leaf_node_list in -lcdata... " >&6; } if ${ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcdata_tree_node_get_leaf_node_list (); int main () { return libcdata_tree_node_get_leaf_node_list (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list=yes else ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list" >&5 $as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list" >&6; } if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list" = xyes; then : ac_cv_libcdata_dummy=yes else ac_cv_libcdata=no fi ac_cv_libcdata_LIBADD="-lcdata" fi fi if test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect && test "x$ac_cv_libcdata" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcdata in directory: $ac_cv_with_libcdata See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcdata" = xyes; then : $as_echo "#define HAVE_LIBCDATA 1" >>confdefs.h fi if test "x$ac_cv_libcdata" = xyes; then : HAVE_LIBCDATA=1 else HAVE_LIBCDATA=0 fi if test "x$ac_cv_libcdata" != xyes; then : ac_cv_libcdata_CPPFLAGS="-I../libcdata"; ac_cv_libcdata_LIBADD="../libcdata/libcdata.la"; ac_cv_libcdata=local $as_echo "#define HAVE_LOCAL_LIBCDATA 1" >>confdefs.h HAVE_LOCAL_LIBCDATA=1 fi if test "x$ac_cv_libcdata" = xlocal; then HAVE_LOCAL_LIBCDATA_TRUE= HAVE_LOCAL_LIBCDATA_FALSE='#' else HAVE_LOCAL_LIBCDATA_TRUE='#' HAVE_LOCAL_LIBCDATA_FALSE= fi if test "x$ac_cv_libcdata_CPPFLAGS" != "x"; then : LIBCDATA_CPPFLAGS=$ac_cv_libcdata_CPPFLAGS fi if test "x$ac_cv_libcdata_LIBADD" != "x"; then : LIBCDATA_LIBADD=$ac_cv_libcdata_LIBADD fi if test "x$ac_cv_libcdata" = xyes; then : ax_libcdata_pc_libs_private=-lcdata fi if test "x$ac_cv_libcdata" = xyes; then : ax_libcdata_spec_requires=libcdata ax_libcdata_spec_build_requires=libcdata-devel fi # Check whether --with-libclocale was given. if test "${with_libclocale+set}" = set; then : withval=$with_libclocale; ac_cv_with_libclocale=$withval else ac_cv_with_libclocale=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libclocale+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libclocale=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libclocale" >&5 $as_echo "$ac_cv_with_libclocale" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libclocale" = xno; then : ac_cv_libclocale=no else if test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect; then : if test -d "$ac_cv_with_libclocale"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libclocale}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libclocale}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libclocale See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libclocale=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale" >&5 $as_echo_n "checking for libclocale... " >&6; } if test -n "$libclocale_CFLAGS"; then pkg_cv_libclocale_CFLAGS="$libclocale_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclocale >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libclocale >= 20120425") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libclocale_CFLAGS=`$PKG_CONFIG --cflags "libclocale >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libclocale_LIBS"; then pkg_cv_libclocale_LIBS="$libclocale_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclocale >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libclocale >= 20120425") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libclocale_LIBS=`$PKG_CONFIG --libs "libclocale >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libclocale_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclocale >= 20120425" 2>&1` else libclocale_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclocale >= 20120425" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libclocale_PKG_ERRORS" >&5 ac_cv_libclocale=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libclocale=check else libclocale_CFLAGS=$pkg_cv_libclocale_CFLAGS libclocale_LIBS=$pkg_cv_libclocale_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libclocale=yes fi fi if test "x$ac_cv_libclocale" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 $as_echo_n "checking whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } if ${ac_cv_header_libclocale_features_h_have_wide_character_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE not defined #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_libclocale_features_h_have_wide_character_type=yes else ac_cv_header_libclocale_features_h_have_wide_character_type=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libclocale_features_h_have_wide_character_type" >&5 $as_echo "$ac_cv_header_libclocale_features_h_have_wide_character_type" >&6; } if test "x$ac_cv_header_libclocale_features_h_have_wide_character_type" = xno; then : ac_cv_libclocale=no fi fi if test "x$ac_cv_libclocale" = xyes; then : ac_cv_libclocale_CPPFLAGS="$pkg_cv_libclocale_CFLAGS" ac_cv_libclocale_LIBADD="$pkg_cv_libclocale_LIBS" fi fi if test "x$ac_cv_libclocale" = xcheck; then : for ac_header in libclocale.h do : ac_fn_c_check_header_mongrel "$LINENO" "libclocale.h" "ac_cv_header_libclocale_h" "$ac_includes_default" if test "x$ac_cv_header_libclocale_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCLOCALE_H 1 _ACEOF fi done if test "x$ac_cv_header_libclocale_h" = xno; then : ac_cv_libclocale=no else ac_cv_libclocale=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_get_version in -lclocale" >&5 $as_echo_n "checking for libclocale_get_version in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_get_version (); int main () { return libclocale_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_get_version=yes else ac_cv_lib_clocale_libclocale_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_get_version" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_get_version" >&6; } if test "x$ac_cv_lib_clocale_libclocale_get_version" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage in -lclocale" >&5 $as_echo_n "checking for libclocale_codepage in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_codepage+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_codepage (); int main () { return libclocale_codepage (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_codepage=yes else ac_cv_lib_clocale_libclocale_codepage=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_codepage" >&6; } if test "x$ac_cv_lib_clocale_libclocale_codepage" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_get in -lclocale" >&5 $as_echo_n "checking for libclocale_codepage_get in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_codepage_get+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_codepage_get (); int main () { return libclocale_codepage_get (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_codepage_get=yes else ac_cv_lib_clocale_libclocale_codepage_get=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_get" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_codepage_get" >&6; } if test "x$ac_cv_lib_clocale_libclocale_codepage_get" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_set in -lclocale" >&5 $as_echo_n "checking for libclocale_codepage_set in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_codepage_set+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_codepage_set (); int main () { return libclocale_codepage_set (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_codepage_set=yes else ac_cv_lib_clocale_libclocale_codepage_set=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_set" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_codepage_set" >&6; } if test "x$ac_cv_lib_clocale_libclocale_codepage_set" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_copy_from_string in -lclocale" >&5 $as_echo_n "checking for libclocale_codepage_copy_from_string in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_codepage_copy_from_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_codepage_copy_from_string (); int main () { return libclocale_codepage_copy_from_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_codepage_copy_from_string=yes else ac_cv_lib_clocale_libclocale_codepage_copy_from_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_copy_from_string" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_codepage_copy_from_string" >&6; } if test "x$ac_cv_lib_clocale_libclocale_codepage_copy_from_string" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi if test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_copy_from_string_wide in -lclocale" >&5 $as_echo_n "checking for libclocale_codepage_copy_from_string_wide in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_codepage_copy_from_string_wide (); int main () { return libclocale_codepage_copy_from_string_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide=yes else ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" >&6; } if test "x$ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_locale_get_codepage in -lclocale" >&5 $as_echo_n "checking for libclocale_locale_get_codepage in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_locale_get_codepage+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_locale_get_codepage (); int main () { return libclocale_locale_get_codepage (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_locale_get_codepage=yes else ac_cv_lib_clocale_libclocale_locale_get_codepage=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_locale_get_codepage" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_locale_get_codepage" >&6; } if test "x$ac_cv_lib_clocale_libclocale_locale_get_codepage" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_locale_get_decimal_point in -lclocale" >&5 $as_echo_n "checking for libclocale_locale_get_decimal_point in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_locale_get_decimal_point+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_locale_get_decimal_point (); int main () { return libclocale_locale_get_decimal_point (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_locale_get_decimal_point=yes else ac_cv_lib_clocale_libclocale_locale_get_decimal_point=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_locale_get_decimal_point" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_locale_get_decimal_point" >&6; } if test "x$ac_cv_lib_clocale_libclocale_locale_get_decimal_point" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_initialize in -lclocale" >&5 $as_echo_n "checking for libclocale_initialize in -lclocale... " >&6; } if ${ac_cv_lib_clocale_libclocale_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lclocale $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libclocale_initialize (); int main () { return libclocale_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_clocale_libclocale_initialize=yes else ac_cv_lib_clocale_libclocale_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_initialize" >&5 $as_echo "$ac_cv_lib_clocale_libclocale_initialize" >&6; } if test "x$ac_cv_lib_clocale_libclocale_initialize" = xyes; then : ac_cv_libclocale_dummy=yes else ac_cv_libclocale=no fi ac_cv_libclocale_LIBADD="-lclocale" fi fi if test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect && test "x$ac_cv_libclocale" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libclocale in directory: $ac_cv_with_libclocale See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libclocale" = xyes; then : $as_echo "#define HAVE_LIBCLOCALE 1" >>confdefs.h fi if test "x$ac_cv_libclocale" = xyes; then : HAVE_LIBCLOCALE=1 else HAVE_LIBCLOCALE=0 fi if test "x$ac_cv_libclocale" != xyes; then : for ac_header in langinfo.h locale.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getenv do : ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" if test "x$ac_cv_func_getenv" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETENV 1 _ACEOF fi done if test "x$ac_cv_func_getenv" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: getenv See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_enable_winapi" = xno; then : for ac_func in localeconv do : ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" if test "x$ac_cv_func_localeconv" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LOCALECONV 1 _ACEOF fi done if test "x$ac_cv_func_localeconv" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: localeconv See \`config.log' for more details" "$LINENO" 5; } fi fi for ac_func in setlocale do : ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" if test "x$ac_cv_func_setlocale" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SETLOCALE 1 _ACEOF fi done if test "x$ac_cv_func_setlocale" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: setlocale See \`config.log' for more details" "$LINENO" 5; } fi for ac_func in nl_langinfo do : ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" if test "x$ac_cv_func_nl_langinfo" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NL_LANGINFO 1 _ACEOF fi done if test "x$ac_cv_func_nl_langinfo" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo CODESET support" >&5 $as_echo_n "checking for nl_langinfo CODESET support... " >&6; } if ${ac_cv_cv_langinfo_codeset+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char* charset = nl_langinfo( CODESET ); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_cv_langinfo_codeset=yes else ac_cv_cv_langinfo_codeset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_langinfo_codeset" >&5 $as_echo "$ac_cv_cv_langinfo_codeset" >&6; } else ac_cv_cv_langinfo_codeset=no fi if test "x$ac_cv_cv_langinfo_codeset" = xyes; then : $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi ac_cv_libclocale_CPPFLAGS="-I../libclocale"; ac_cv_libclocale_LIBADD="../libclocale/libclocale.la"; ac_cv_libclocale=local $as_echo "#define HAVE_LOCAL_LIBCLOCALE 1" >>confdefs.h HAVE_LOCAL_LIBCLOCALE=1 fi if test "x$ac_cv_libclocale" = xlocal; then HAVE_LOCAL_LIBCLOCALE_TRUE= HAVE_LOCAL_LIBCLOCALE_FALSE='#' else HAVE_LOCAL_LIBCLOCALE_TRUE='#' HAVE_LOCAL_LIBCLOCALE_FALSE= fi if test "x$ac_cv_libclocale_CPPFLAGS" != "x"; then : LIBCLOCALE_CPPFLAGS=$ac_cv_libclocale_CPPFLAGS fi if test "x$ac_cv_libclocale_LIBADD" != "x"; then : LIBCLOCALE_LIBADD=$ac_cv_libclocale_LIBADD fi if test "x$ac_cv_libclocale" = xyes; then : ax_libclocale_pc_libs_private=-lclocale fi if test "x$ac_cv_libclocale" = xyes; then : ax_libclocale_spec_requires=libclocale ax_libclocale_spec_build_requires=libclocale-devel fi # Check whether --with-libcnotify was given. if test "${with_libcnotify+set}" = set; then : withval=$with_libcnotify; ac_cv_with_libcnotify=$withval else ac_cv_with_libcnotify=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcnotify+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcnotify=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcnotify" >&5 $as_echo "$ac_cv_with_libcnotify" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcnotify" = xno; then : ac_cv_libcnotify=no else if test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect; then : if test -d "$ac_cv_with_libcnotify"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcnotify}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcnotify}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcnotify See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcnotify=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify" >&5 $as_echo_n "checking for libcnotify... " >&6; } if test -n "$libcnotify_CFLAGS"; then pkg_cv_libcnotify_CFLAGS="$libcnotify_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcnotify >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcnotify >= 20120425") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcnotify_CFLAGS=`$PKG_CONFIG --cflags "libcnotify >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcnotify_LIBS"; then pkg_cv_libcnotify_LIBS="$libcnotify_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcnotify >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcnotify >= 20120425") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcnotify_LIBS=`$PKG_CONFIG --libs "libcnotify >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcnotify_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcnotify >= 20120425" 2>&1` else libcnotify_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcnotify >= 20120425" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcnotify_PKG_ERRORS" >&5 ac_cv_libcnotify=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcnotify=check else libcnotify_CFLAGS=$pkg_cv_libcnotify_CFLAGS libcnotify_LIBS=$pkg_cv_libcnotify_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcnotify=yes fi fi if test "x$ac_cv_libcnotify" = xyes; then : ac_cv_libcnotify_CPPFLAGS="$pkg_cv_libcnotify_CFLAGS" ac_cv_libcnotify_LIBADD="$pkg_cv_libcnotify_LIBS" fi fi if test "x$ac_cv_libcnotify" = xcheck; then : for ac_header in libcnotify.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcnotify.h" "ac_cv_header_libcnotify_h" "$ac_includes_default" if test "x$ac_cv_header_libcnotify_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCNOTIFY_H 1 _ACEOF fi done if test "x$ac_cv_header_libcnotify_h" = xno; then : ac_cv_libcnotify=no else ac_cv_libcnotify=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_get_version in -lcnotify" >&5 $as_echo_n "checking for libcnotify_get_version in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_get_version (); int main () { return libcnotify_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_get_version=yes else ac_cv_lib_cnotify_libcnotify_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_get_version" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_get_version" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_get_version" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_printf in -lcnotify" >&5 $as_echo_n "checking for libcnotify_printf in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_printf+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_printf (); int main () { return libcnotify_printf (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_printf=yes else ac_cv_lib_cnotify_libcnotify_printf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_printf" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_printf" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_printf" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_print_data in -lcnotify" >&5 $as_echo_n "checking for libcnotify_print_data in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_print_data+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_print_data (); int main () { return libcnotify_print_data (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_print_data=yes else ac_cv_lib_cnotify_libcnotify_print_data=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_print_data" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_print_data" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_print_data" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_print_error_backtrace in -lcnotify" >&5 $as_echo_n "checking for libcnotify_print_error_backtrace in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_print_error_backtrace+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_print_error_backtrace (); int main () { return libcnotify_print_error_backtrace (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_print_error_backtrace=yes else ac_cv_lib_cnotify_libcnotify_print_error_backtrace=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_print_error_backtrace" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_print_error_backtrace" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_print_error_backtrace" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_set in -lcnotify" >&5 $as_echo_n "checking for libcnotify_stream_set in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_stream_set+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_stream_set (); int main () { return libcnotify_stream_set (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_stream_set=yes else ac_cv_lib_cnotify_libcnotify_stream_set=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_stream_set" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_stream_set" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_stream_set" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_open in -lcnotify" >&5 $as_echo_n "checking for libcnotify_stream_open in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_stream_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_stream_open (); int main () { return libcnotify_stream_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_stream_open=yes else ac_cv_lib_cnotify_libcnotify_stream_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_stream_open" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_stream_open" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_stream_open" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_close in -lcnotify" >&5 $as_echo_n "checking for libcnotify_stream_close in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_stream_close+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_stream_close (); int main () { return libcnotify_stream_close (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_stream_close=yes else ac_cv_lib_cnotify_libcnotify_stream_close=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_stream_close" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_stream_close" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_stream_close" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_verbose_set in -lcnotify" >&5 $as_echo_n "checking for libcnotify_verbose_set in -lcnotify... " >&6; } if ${ac_cv_lib_cnotify_libcnotify_verbose_set+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcnotify $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcnotify_verbose_set (); int main () { return libcnotify_verbose_set (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cnotify_libcnotify_verbose_set=yes else ac_cv_lib_cnotify_libcnotify_verbose_set=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_verbose_set" >&5 $as_echo "$ac_cv_lib_cnotify_libcnotify_verbose_set" >&6; } if test "x$ac_cv_lib_cnotify_libcnotify_verbose_set" = xyes; then : ac_cv_libcnotify_dummy=yes else ac_cv_libcnotify=no fi ac_cv_libcnotify_LIBADD="-lcnotify" fi fi if test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect && test "x$ac_cv_libcnotify" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcnotify in directory: $ac_cv_with_libcnotify See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcnotify" = xyes; then : $as_echo "#define HAVE_LIBCNOTIFY 1" >>confdefs.h fi if test "x$ac_cv_libcnotify" = xyes; then : HAVE_LIBCNOTIFY=1 else HAVE_LIBCNOTIFY=0 fi if test "x$ac_cv_libcnotify" != xyes; then : for ac_header in stdarg.h varargs.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing headers: stdarg.h and varargs.h See \`config.log' for more details" "$LINENO" 5; } fi for ac_header in errno.h do : ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" if test "x$ac_cv_header_errno_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ERRNO_H 1 _ACEOF fi done ac_cv_libcnotify_CPPFLAGS="-I../libcnotify"; ac_cv_libcnotify_LIBADD="../libcnotify/libcnotify.la"; ac_cv_libcnotify=local $as_echo "#define HAVE_LOCAL_LIBCNOTIFY 1" >>confdefs.h HAVE_LOCAL_LIBCNOTIFY=1 fi if test "x$ac_cv_libcnotify" = xlocal; then HAVE_LOCAL_LIBCNOTIFY_TRUE= HAVE_LOCAL_LIBCNOTIFY_FALSE='#' else HAVE_LOCAL_LIBCNOTIFY_TRUE='#' HAVE_LOCAL_LIBCNOTIFY_FALSE= fi if test "x$ac_cv_libcnotify_CPPFLAGS" != "x"; then : LIBCNOTIFY_CPPFLAGS=$ac_cv_libcnotify_CPPFLAGS fi if test "x$ac_cv_libcnotify_LIBADD" != "x"; then : LIBCNOTIFY_LIBADD=$ac_cv_libcnotify_LIBADD fi if test "x$ac_cv_libcnotify" = xyes; then : ax_libcnotify_pc_libs_private=-lcnotify fi if test "x$ac_cv_libcnotify" = xyes; then : ax_libcnotify_spec_requires=libcnotify ax_libcnotify_spec_build_requires=libcnotify-devel fi # Check whether --with-libcsplit was given. if test "${with_libcsplit+set}" = set; then : withval=$with_libcsplit; ac_cv_with_libcsplit=$withval else ac_cv_with_libcsplit=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcsplit+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcsplit=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcsplit" >&5 $as_echo "$ac_cv_with_libcsplit" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcsplit" = xno; then : ac_cv_libcsplit=no else if test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect; then : if test -d "$ac_cv_with_libcsplit"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcsplit}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcsplit}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcsplit See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcsplit=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit" >&5 $as_echo_n "checking for libcsplit... " >&6; } if test -n "$libcsplit_CFLAGS"; then pkg_cv_libcsplit_CFLAGS="$libcsplit_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcsplit >= 20120701\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcsplit >= 20120701") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcsplit_CFLAGS=`$PKG_CONFIG --cflags "libcsplit >= 20120701" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcsplit_LIBS"; then pkg_cv_libcsplit_LIBS="$libcsplit_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcsplit >= 20120701\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcsplit >= 20120701") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcsplit_LIBS=`$PKG_CONFIG --libs "libcsplit >= 20120701" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcsplit_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcsplit >= 20120701" 2>&1` else libcsplit_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcsplit >= 20120701" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcsplit_PKG_ERRORS" >&5 ac_cv_libcsplit=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcsplit=check else libcsplit_CFLAGS=$pkg_cv_libcsplit_CFLAGS libcsplit_LIBS=$pkg_cv_libcsplit_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcsplit=yes fi fi if test "x$ac_cv_libcsplit" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 $as_echo_n "checking whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } if ${ac_cv_header_libcsplit_features_h_have_wide_character_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE not defined #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_libcsplit_features_h_have_wide_character_type=yes else ac_cv_header_libcsplit_features_h_have_wide_character_type=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libcsplit_features_h_have_wide_character_type" >&5 $as_echo "$ac_cv_header_libcsplit_features_h_have_wide_character_type" >&6; } if test "x$ac_cv_header_libcsplit_features_h_have_wide_character_type" = xno; then : ac_cv_libcsplit=no fi fi if test "x$ac_cv_libcsplit" = xyes; then : ac_cv_libcsplit_CPPFLAGS="$pkg_cv_libcsplit_CFLAGS" ac_cv_libcsplit_LIBADD="$pkg_cv_libcsplit_LIBS" fi fi if test "x$ac_cv_libcsplit" = xcheck; then : for ac_header in libcsplit.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcsplit.h" "ac_cv_header_libcsplit_h" "$ac_includes_default" if test "x$ac_cv_header_libcsplit_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCSPLIT_H 1 _ACEOF fi done if test "x$ac_cv_header_libcsplit_h" = xno; then : ac_cv_libcsplit=no else ac_cv_libcsplit=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_get_version in -lcsplit" >&5 $as_echo_n "checking for libcsplit_get_version in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_get_version (); int main () { return libcsplit_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_get_version=yes else ac_cv_lib_csplit_libcsplit_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_get_version" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_get_version" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_get_version" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_string_split in -lcsplit" >&5 $as_echo_n "checking for libcsplit_narrow_string_split in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_narrow_string_split+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_narrow_string_split (); int main () { return libcsplit_narrow_string_split (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_narrow_string_split=yes else ac_cv_lib_csplit_libcsplit_narrow_string_split=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_string_split" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_narrow_string_split" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_narrow_string_split" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_free in -lcsplit" >&5 $as_echo_n "checking for libcsplit_narrow_split_string_free in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_narrow_split_string_free (); int main () { return libcsplit_narrow_split_string_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_narrow_split_string_free=yes else ac_cv_lib_csplit_libcsplit_narrow_split_string_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_split_string_free" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_free" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_free" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_string in -lcsplit" >&5 $as_echo_n "checking for libcsplit_narrow_split_string_get_string in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_narrow_split_string_get_string (); int main () { return libcsplit_narrow_split_string_get_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string=yes else ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_number_of_segments in -lcsplit" >&5 $as_echo_n "checking for libcsplit_narrow_split_string_get_number_of_segments in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_narrow_split_string_get_number_of_segments (); int main () { return libcsplit_narrow_split_string_get_number_of_segments (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments=yes else ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_segment_by_index in -lcsplit" >&5 $as_echo_n "checking for libcsplit_narrow_split_string_get_segment_by_index in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_narrow_split_string_get_segment_by_index (); int main () { return libcsplit_narrow_split_string_get_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index=yes else ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_set_segment_by_index in -lcsplit" >&5 $as_echo_n "checking for libcsplit_narrow_split_string_set_segment_by_index in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_narrow_split_string_set_segment_by_index (); int main () { return libcsplit_narrow_split_string_set_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index=yes else ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi if test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_string_split in -lcsplit" >&5 $as_echo_n "checking for libcsplit_wide_string_split in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_wide_string_split+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_wide_string_split (); int main () { return libcsplit_wide_string_split (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_wide_string_split=yes else ac_cv_lib_csplit_libcsplit_wide_string_split=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_string_split" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_wide_string_split" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_wide_string_split" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_free in -lcsplit" >&5 $as_echo_n "checking for libcsplit_wide_split_string_free in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_wide_split_string_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_wide_split_string_free (); int main () { return libcsplit_wide_split_string_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_wide_split_string_free=yes else ac_cv_lib_csplit_libcsplit_wide_split_string_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_free" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_free" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_free" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_string in -lcsplit" >&5 $as_echo_n "checking for libcsplit_wide_split_string_get_string in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_wide_split_string_get_string (); int main () { return libcsplit_wide_split_string_get_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_wide_split_string_get_string=yes else ac_cv_lib_csplit_libcsplit_wide_split_string_get_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_number_of_segments in -lcsplit" >&5 $as_echo_n "checking for libcsplit_wide_split_string_get_number_of_segments in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_wide_split_string_get_number_of_segments (); int main () { return libcsplit_wide_split_string_get_number_of_segments (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments=yes else ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_segment_by_index in -lcsplit" >&5 $as_echo_n "checking for libcsplit_wide_split_string_get_segment_by_index in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_wide_split_string_get_segment_by_index (); int main () { return libcsplit_wide_split_string_get_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index=yes else ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_set_segment_by_index in -lcsplit" >&5 $as_echo_n "checking for libcsplit_wide_split_string_set_segment_by_index in -lcsplit... " >&6; } if ${ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcsplit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcsplit_wide_split_string_set_segment_by_index (); int main () { return libcsplit_wide_split_string_set_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index=yes else ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" >&5 $as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" >&6; } if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" = xyes; then : ac_cv_libcsplit_dummy=yes else ac_cv_libcsplit=no fi fi ac_cv_libcsplit_LIBADD="-lcsplit" fi fi if test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect && test "x$ac_cv_libcsplit" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcsplit in directory: $ac_cv_with_libcsplit See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcsplit" = xyes; then : $as_echo "#define HAVE_LIBCSPLIT 1" >>confdefs.h fi if test "x$ac_cv_libcsplit" = xyes; then : HAVE_LIBCSPLIT=1 else HAVE_LIBCSPLIT=0 fi if test "x$ac_cv_libcsplit" != xyes; then : ac_cv_libcsplit_CPPFLAGS="-I../libcsplit"; ac_cv_libcsplit_LIBADD="../libcsplit/libcsplit.la"; ac_cv_libcsplit=local $as_echo "#define HAVE_LOCAL_LIBCSPLIT 1" >>confdefs.h HAVE_LOCAL_LIBCSPLIT=1 fi if test "x$ac_cv_libcsplit" = xlocal; then HAVE_LOCAL_LIBCSPLIT_TRUE= HAVE_LOCAL_LIBCSPLIT_FALSE='#' else HAVE_LOCAL_LIBCSPLIT_TRUE='#' HAVE_LOCAL_LIBCSPLIT_FALSE= fi if test "x$ac_cv_libcsplit_CPPFLAGS" != "x"; then : LIBCSPLIT_CPPFLAGS=$ac_cv_libcsplit_CPPFLAGS fi if test "x$ac_cv_libcsplit_LIBADD" != "x"; then : LIBCSPLIT_LIBADD=$ac_cv_libcsplit_LIBADD fi if test "x$ac_cv_libcsplit" = xyes; then : ax_libcsplit_pc_libs_private=-lcsplit fi if test "x$ac_cv_libcsplit" = xyes; then : ax_libcsplit_spec_requires=libcsplit ax_libcsplit_spec_build_requires=libcsplit-devel fi # Check whether --with-libuna was given. if test "${with_libuna+set}" = set; then : withval=$with_libuna; ac_cv_with_libuna=$withval else ac_cv_with_libuna=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libuna in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libuna in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libuna+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libuna=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libuna" >&5 $as_echo "$ac_cv_with_libuna" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libuna" = xno; then : ac_cv_libuna=no else if test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect; then : if test -d "$ac_cv_with_libuna"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libuna}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libuna}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libuna See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libuna=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna" >&5 $as_echo_n "checking for libuna... " >&6; } if test -n "$libuna_CFLAGS"; then pkg_cv_libuna_CFLAGS="$libuna_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuna >= 20181006\""; } >&5 ($PKG_CONFIG --exists --print-errors "libuna >= 20181006") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libuna_CFLAGS=`$PKG_CONFIG --cflags "libuna >= 20181006" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libuna_LIBS"; then pkg_cv_libuna_LIBS="$libuna_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuna >= 20181006\""; } >&5 ($PKG_CONFIG --exists --print-errors "libuna >= 20181006") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libuna_LIBS=`$PKG_CONFIG --libs "libuna >= 20181006" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libuna_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuna >= 20181006" 2>&1` else libuna_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuna >= 20181006" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libuna_PKG_ERRORS" >&5 ac_cv_libuna=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libuna=check else libuna_CFLAGS=$pkg_cv_libuna_CFLAGS libuna_LIBS=$pkg_cv_libuna_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libuna=yes fi fi if test "x$ac_cv_libuna" = xyes; then : ac_cv_libuna_CPPFLAGS="$pkg_cv_libuna_CFLAGS" ac_cv_libuna_LIBADD="$pkg_cv_libuna_LIBS" fi fi if test "x$ac_cv_libuna" = xcheck; then : for ac_header in libuna.h do : ac_fn_c_check_header_mongrel "$LINENO" "libuna.h" "ac_cv_header_libuna_h" "$ac_includes_default" if test "x$ac_cv_header_libuna_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBUNA_H 1 _ACEOF fi done if test "x$ac_cv_header_libuna_h" = xno; then : ac_cv_libuna=no else ac_cv_libuna=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_get_version in -luna" >&5 $as_echo_n "checking for libuna_get_version in -luna... " >&6; } if ${ac_cv_lib_una_libuna_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_get_version (); int main () { return libuna_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_get_version=yes else ac_cv_lib_una_libuna_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_get_version" >&5 $as_echo "$ac_cv_lib_una_libuna_get_version" >&6; } if test "x$ac_cv_lib_una_libuna_get_version" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_size_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base16_stream_size_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base16_stream_size_to_byte_stream (); int main () { return libuna_base16_stream_size_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream=yes else ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_copy_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base16_stream_copy_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base16_stream_copy_to_byte_stream (); int main () { return libuna_base16_stream_copy_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream=yes else ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_size_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base16_stream_size_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base16_stream_size_from_byte_stream (); int main () { return libuna_base16_stream_size_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream=yes else ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base16_stream_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base16_stream_copy_from_byte_stream (); int main () { return libuna_base16_stream_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_with_index_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base16_stream_with_index_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base16_stream_with_index_copy_from_byte_stream (); int main () { return libuna_base16_stream_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_from_base32_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_quintuplet_copy_from_base32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_quintuplet_copy_from_base32_stream (); int main () { return libuna_base32_quintuplet_copy_from_base32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream=yes else ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_to_base32_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_quintuplet_copy_to_base32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_quintuplet_copy_to_base32_stream (); int main () { return libuna_base32_quintuplet_copy_to_base32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream=yes else ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_quintuplet_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_quintuplet_copy_from_byte_stream (); int main () { return libuna_base32_quintuplet_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_quintuplet_copy_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_quintuplet_copy_to_byte_stream (); int main () { return libuna_base32_quintuplet_copy_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream=yes else ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_size_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_stream_size_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_stream_size_to_byte_stream (); int main () { return libuna_base32_stream_size_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream=yes else ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_copy_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_stream_copy_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_stream_copy_to_byte_stream (); int main () { return libuna_base32_stream_copy_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream=yes else ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_size_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_stream_size_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_stream_size_from_byte_stream (); int main () { return libuna_base32_stream_size_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream=yes else ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_stream_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_stream_copy_from_byte_stream (); int main () { return libuna_base32_stream_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_with_index_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base32_stream_with_index_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base32_stream_with_index_copy_from_byte_stream (); int main () { return libuna_base32_stream_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_from_base64_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_triplet_copy_from_base64_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_triplet_copy_from_base64_stream (); int main () { return libuna_base64_triplet_copy_from_base64_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream=yes else ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_to_base64_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_triplet_copy_to_base64_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_triplet_copy_to_base64_stream (); int main () { return libuna_base64_triplet_copy_to_base64_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream=yes else ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_triplet_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_triplet_copy_from_byte_stream (); int main () { return libuna_base64_triplet_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_triplet_copy_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_triplet_copy_to_byte_stream (); int main () { return libuna_base64_triplet_copy_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream=yes else ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_size_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_stream_size_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_stream_size_to_byte_stream (); int main () { return libuna_base64_stream_size_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream=yes else ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_copy_to_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_stream_copy_to_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_stream_copy_to_byte_stream (); int main () { return libuna_base64_stream_copy_to_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream=yes else ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_size_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_stream_size_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_stream_size_from_byte_stream (); int main () { return libuna_base64_stream_size_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream=yes else ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_stream_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_stream_copy_from_byte_stream (); int main () { return libuna_base64_stream_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_with_index_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_base64_stream_with_index_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_base64_stream_with_index_copy_from_byte_stream (); int main () { return libuna_base64_stream_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_byte_stream_size_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_byte_stream_size_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_byte_stream_size_from_utf8 (); int main () { return libuna_byte_stream_size_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_byte_stream_size_from_utf8=yes else ac_cv_lib_una_libuna_byte_stream_size_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_size_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_byte_stream_size_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_byte_stream_copy_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_byte_stream_copy_from_utf8 (); int main () { return libuna_byte_stream_copy_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_byte_stream_copy_from_utf8=yes else ac_cv_lib_una_libuna_byte_stream_copy_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_byte_stream_size_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_byte_stream_size_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_byte_stream_size_from_utf16 (); int main () { return libuna_byte_stream_size_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_byte_stream_size_from_utf16=yes else ac_cv_lib_una_libuna_byte_stream_size_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_size_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_byte_stream_size_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_byte_stream_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_byte_stream_copy_from_utf16 (); int main () { return libuna_byte_stream_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_byte_stream_copy_from_utf16=yes else ac_cv_lib_una_libuna_byte_stream_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_byte_stream_size_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_byte_stream_size_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_byte_stream_size_from_utf32 (); int main () { return libuna_byte_stream_size_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_byte_stream_size_from_utf32=yes else ac_cv_lib_una_libuna_byte_stream_size_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_size_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_byte_stream_size_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_byte_stream_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_byte_stream_copy_from_utf32 (); int main () { return libuna_byte_stream_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_byte_stream_copy_from_utf32=yes else ac_cv_lib_una_libuna_byte_stream_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf8_stream_size_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_stream_size_from_utf8 (); int main () { return libuna_utf8_stream_size_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_stream_size_from_utf8=yes else ac_cv_lib_una_libuna_utf8_stream_size_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf8_stream_copy_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_stream_copy_from_utf8 (); int main () { return libuna_utf8_stream_copy_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8=yes else ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf8_stream_size_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_stream_size_from_utf16 (); int main () { return libuna_utf8_stream_size_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_stream_size_from_utf16=yes else ac_cv_lib_una_libuna_utf8_stream_size_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf8_stream_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_stream_copy_from_utf16 (); int main () { return libuna_utf8_stream_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16=yes else ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf8_stream_size_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_stream_size_from_utf32 (); int main () { return libuna_utf8_stream_size_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_stream_size_from_utf32=yes else ac_cv_lib_una_libuna_utf8_stream_size_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf8_stream_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_stream_copy_from_utf32 (); int main () { return libuna_utf8_stream_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32=yes else ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf16_stream_size_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_stream_size_from_utf8 (); int main () { return libuna_utf16_stream_size_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_stream_size_from_utf8=yes else ac_cv_lib_una_libuna_utf16_stream_size_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf16_stream_copy_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_stream_copy_from_utf8 (); int main () { return libuna_utf16_stream_copy_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8=yes else ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf16_stream_size_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_stream_size_from_utf16 (); int main () { return libuna_utf16_stream_size_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_stream_size_from_utf16=yes else ac_cv_lib_una_libuna_utf16_stream_size_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf16_stream_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_stream_copy_from_utf16 (); int main () { return libuna_utf16_stream_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16=yes else ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf16_stream_size_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_stream_size_from_utf32 (); int main () { return libuna_utf16_stream_size_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_stream_size_from_utf32=yes else ac_cv_lib_una_libuna_utf16_stream_size_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf16_stream_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_stream_copy_from_utf32 (); int main () { return libuna_utf16_stream_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32=yes else ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf32_stream_size_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_stream_size_from_utf8 (); int main () { return libuna_utf32_stream_size_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_stream_size_from_utf8=yes else ac_cv_lib_una_libuna_utf32_stream_size_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf32_stream_copy_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_stream_copy_from_utf8 (); int main () { return libuna_utf32_stream_copy_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8=yes else ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf32_stream_size_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_stream_size_from_utf16 (); int main () { return libuna_utf32_stream_size_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_stream_size_from_utf16=yes else ac_cv_lib_una_libuna_utf32_stream_size_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf32_stream_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_stream_copy_from_utf16 (); int main () { return libuna_utf32_stream_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16=yes else ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf32_stream_size_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_stream_size_from_utf32 (); int main () { return libuna_utf32_stream_size_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_stream_size_from_utf32=yes else ac_cv_lib_una_libuna_utf32_stream_size_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf32_stream_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_stream_copy_from_utf32 (); int main () { return libuna_utf32_stream_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32=yes else ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_size_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_size_from_byte_stream (); int main () { return libuna_utf8_string_size_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream=yes else ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_copy_from_byte_stream (); int main () { return libuna_utf8_string_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_with_index_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_with_index_copy_from_byte_stream (); int main () { return libuna_utf8_string_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_size_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_size_from_utf7_stream (); int main () { return libuna_utf8_string_size_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_copy_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_copy_from_utf7_stream (); int main () { return libuna_utf8_string_copy_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_with_index_copy_from_utf7_stream (); int main () { return libuna_utf8_string_with_index_copy_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_size_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_size_from_utf8_stream (); int main () { return libuna_utf8_string_size_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_copy_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_copy_from_utf8_stream (); int main () { return libuna_utf8_string_copy_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_with_index_copy_from_utf8_stream (); int main () { return libuna_utf8_string_with_index_copy_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_size_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_size_from_utf16_stream (); int main () { return libuna_utf8_string_size_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_copy_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_copy_from_utf16_stream (); int main () { return libuna_utf8_string_copy_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_with_index_copy_from_utf16_stream (); int main () { return libuna_utf8_string_with_index_copy_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_size_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_size_from_utf32_stream (); int main () { return libuna_utf8_string_size_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_copy_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_copy_from_utf32_stream (); int main () { return libuna_utf8_string_copy_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_with_index_copy_from_utf32_stream (); int main () { return libuna_utf8_string_with_index_copy_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_size_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_size_from_utf16 (); int main () { return libuna_utf8_string_size_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_size_from_utf16=yes else ac_cv_lib_una_libuna_utf8_string_size_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_copy_from_utf16 (); int main () { return libuna_utf8_string_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_copy_from_utf16=yes else ac_cv_lib_una_libuna_utf8_string_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_with_index_copy_from_utf16 (); int main () { return libuna_utf8_string_with_index_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16=yes else ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_size_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_size_from_utf32 (); int main () { return libuna_utf8_string_size_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_size_from_utf32=yes else ac_cv_lib_una_libuna_utf8_string_size_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_copy_from_utf32 (); int main () { return libuna_utf8_string_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_copy_from_utf32=yes else ac_cv_lib_una_libuna_utf8_string_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf8_string_with_index_copy_from_utf32 (); int main () { return libuna_utf8_string_with_index_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32=yes else ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_size_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_size_from_byte_stream (); int main () { return libuna_utf16_string_size_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream=yes else ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_copy_from_byte_stream (); int main () { return libuna_utf16_string_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_with_index_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_with_index_copy_from_byte_stream (); int main () { return libuna_utf16_string_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_size_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_size_from_utf7_stream (); int main () { return libuna_utf16_string_size_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_copy_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_copy_from_utf7_stream (); int main () { return libuna_utf16_string_copy_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_with_index_copy_from_utf7_stream (); int main () { return libuna_utf16_string_with_index_copy_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_size_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_size_from_utf8_stream (); int main () { return libuna_utf16_string_size_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_copy_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_copy_from_utf8_stream (); int main () { return libuna_utf16_string_copy_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_with_index_copy_from_utf8_stream (); int main () { return libuna_utf16_string_with_index_copy_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_size_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_size_from_utf16_stream (); int main () { return libuna_utf16_string_size_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_copy_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_copy_from_utf16_stream (); int main () { return libuna_utf16_string_copy_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_with_index_copy_from_utf16_stream (); int main () { return libuna_utf16_string_with_index_copy_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_size_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_size_from_utf32_stream (); int main () { return libuna_utf16_string_size_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_copy_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_copy_from_utf32_stream (); int main () { return libuna_utf16_string_copy_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_with_index_copy_from_utf32_stream (); int main () { return libuna_utf16_string_with_index_copy_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_size_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_size_from_utf8 (); int main () { return libuna_utf16_string_size_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_size_from_utf8=yes else ac_cv_lib_una_libuna_utf16_string_size_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_copy_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_copy_from_utf8 (); int main () { return libuna_utf16_string_copy_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_copy_from_utf8=yes else ac_cv_lib_una_libuna_utf16_string_copy_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_with_index_copy_from_utf8 (); int main () { return libuna_utf16_string_with_index_copy_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8=yes else ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_size_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_size_from_utf32 (); int main () { return libuna_utf16_string_size_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_size_from_utf32=yes else ac_cv_lib_una_libuna_utf16_string_size_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_copy_from_utf32 (); int main () { return libuna_utf16_string_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_copy_from_utf32=yes else ac_cv_lib_una_libuna_utf16_string_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf32 in -luna" >&5 $as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf32 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf16_string_with_index_copy_from_utf32 (); int main () { return libuna_utf16_string_with_index_copy_from_utf32 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32=yes else ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" >&5 $as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" >&6; } if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_size_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_size_from_byte_stream (); int main () { return libuna_utf32_string_size_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream=yes else ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_copy_from_byte_stream (); int main () { return libuna_utf32_string_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_byte_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_with_index_copy_from_byte_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_with_index_copy_from_byte_stream (); int main () { return libuna_utf32_string_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream=yes else ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_size_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_size_from_utf7_stream (); int main () { return libuna_utf32_string_size_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_copy_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_copy_from_utf7_stream (); int main () { return libuna_utf32_string_copy_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf7_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf7_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_with_index_copy_from_utf7_stream (); int main () { return libuna_utf32_string_with_index_copy_from_utf7_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream=yes else ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_size_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_size_from_utf8_stream (); int main () { return libuna_utf32_string_size_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_copy_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_copy_from_utf8_stream (); int main () { return libuna_utf32_string_copy_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf8_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf8_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_with_index_copy_from_utf8_stream (); int main () { return libuna_utf32_string_with_index_copy_from_utf8_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream=yes else ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_size_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_size_from_utf16_stream (); int main () { return libuna_utf32_string_size_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_copy_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_copy_from_utf16_stream (); int main () { return libuna_utf32_string_copy_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf16_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf16_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_with_index_copy_from_utf16_stream (); int main () { return libuna_utf32_string_with_index_copy_from_utf16_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream=yes else ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_size_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_size_from_utf32_stream (); int main () { return libuna_utf32_string_size_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_copy_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_copy_from_utf32_stream (); int main () { return libuna_utf32_string_copy_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf32_stream in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf32_stream in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_with_index_copy_from_utf32_stream (); int main () { return libuna_utf32_string_with_index_copy_from_utf32_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream=yes else ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_size_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_size_from_utf8 (); int main () { return libuna_utf32_string_size_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_size_from_utf8=yes else ac_cv_lib_una_libuna_utf32_string_size_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf8 in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_copy_from_utf8 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf8+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_copy_from_utf8 (); int main () { return libuna_utf32_string_copy_from_utf8 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_copy_from_utf8=yes else ac_cv_lib_una_libuna_utf32_string_copy_from_utf8=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ac_cv_libuna_dummy=yes in -llibuna_utf32_string_with_index_copy_from_utf8" >&5 $as_echo_n "checking for ac_cv_libuna_dummy=yes in -llibuna_utf32_string_with_index_copy_from_utf8... " >&6; } if ${ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-llibuna_utf32_string_with_index_copy_from_utf8 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ac_cv_libuna_dummy=yes (); int main () { return ac_cv_libuna_dummy=yes (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes=yes else ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" >&5 $as_echo "$ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" >&6; } if test "x$ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" = xyes; then : ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_size_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_size_from_utf16 (); int main () { return libuna_utf32_string_size_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_size_from_utf16=yes else ac_cv_lib_una_libuna_utf32_string_size_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_copy_from_utf16 (); int main () { return libuna_utf32_string_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_copy_from_utf16=yes else ac_cv_lib_una_libuna_utf32_string_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf16 in -luna" >&5 $as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf16 in -luna... " >&6; } if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libuna_utf32_string_with_index_copy_from_utf16 (); int main () { return libuna_utf32_string_with_index_copy_from_utf16 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16=yes else ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" >&5 $as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" >&6; } if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" = xyes; then : ac_cv_libuna_dummy=yes else ac_cv_libuna=no fi ac_cv_libuna_LIBADD="-luna" fi fi if test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect && test "x$ac_cv_libuna" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libuna in directory: $ac_cv_with_libuna See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libuna" = xyes; then : $as_echo "#define HAVE_LIBUNA 1" >>confdefs.h fi if test "x$ac_cv_libuna" = xyes; then : HAVE_LIBUNA=1 else HAVE_LIBUNA=0 fi if test "x$ac_cv_libuna" != xyes; then : ac_cv_libuna_CPPFLAGS="-I../libuna"; ac_cv_libuna_LIBADD="../libuna/libuna.la"; ac_cv_libuna=local $as_echo "#define HAVE_LOCAL_LIBUNA 1" >>confdefs.h HAVE_LOCAL_LIBUNA=1 fi if test "x$ac_cv_libuna" = xlocal; then HAVE_LOCAL_LIBUNA_TRUE= HAVE_LOCAL_LIBUNA_FALSE='#' else HAVE_LOCAL_LIBUNA_TRUE='#' HAVE_LOCAL_LIBUNA_FALSE= fi if test "x$ac_cv_libuna_CPPFLAGS" != "x"; then : LIBUNA_CPPFLAGS=$ac_cv_libuna_CPPFLAGS fi if test "x$ac_cv_libuna_LIBADD" != "x"; then : LIBUNA_LIBADD=$ac_cv_libuna_LIBADD fi if test "x$ac_cv_libuna" = xyes; then : ax_libuna_pc_libs_private=-luna fi if test "x$ac_cv_libuna" = xyes; then : ax_libuna_spec_requires=libuna ax_libuna_spec_build_requires=libuna-devel fi # Check whether --with-libcfile was given. if test "${with_libcfile+set}" = set; then : withval=$with_libcfile; ac_cv_with_libcfile=$withval else ac_cv_with_libcfile=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcfile+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcfile=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcfile" >&5 $as_echo "$ac_cv_with_libcfile" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcfile" = xno; then : ac_cv_libcfile=no else if test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect; then : if test -d "$ac_cv_with_libcfile"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcfile}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcfile}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcfile See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcfile=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile" >&5 $as_echo_n "checking for libcfile... " >&6; } if test -n "$libcfile_CFLAGS"; then pkg_cv_libcfile_CFLAGS="$libcfile_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcfile >= 20160409\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcfile >= 20160409") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcfile_CFLAGS=`$PKG_CONFIG --cflags "libcfile >= 20160409" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcfile_LIBS"; then pkg_cv_libcfile_LIBS="$libcfile_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcfile >= 20160409\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcfile >= 20160409") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcfile_LIBS=`$PKG_CONFIG --libs "libcfile >= 20160409" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcfile >= 20160409" 2>&1` else libcfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcfile >= 20160409" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcfile_PKG_ERRORS" >&5 ac_cv_libcfile=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcfile=check else libcfile_CFLAGS=$pkg_cv_libcfile_CFLAGS libcfile_LIBS=$pkg_cv_libcfile_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcfile=yes fi fi if test "x$ac_cv_libcfile" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 $as_echo_n "checking whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } if ${ac_cv_header_libcfile_features_h_have_wide_character_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCFILE_HAVE_WIDE_CHARACTER_TYPE not defined #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_libcfile_features_h_have_wide_character_type=yes else ac_cv_header_libcfile_features_h_have_wide_character_type=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libcfile_features_h_have_wide_character_type" >&5 $as_echo "$ac_cv_header_libcfile_features_h_have_wide_character_type" >&6; } if test "x$ac_cv_header_libcfile_features_h_have_wide_character_type" = xno; then : ac_cv_libcfile=no fi fi if test "x$ac_cv_libcfile" = xyes; then : ac_cv_libcfile_CPPFLAGS="$pkg_cv_libcfile_CFLAGS" ac_cv_libcfile_LIBADD="$pkg_cv_libcfile_LIBS" fi fi if test "x$ac_cv_libcfile" = xcheck; then : for ac_header in libcfile.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcfile.h" "ac_cv_header_libcfile_h" "$ac_includes_default" if test "x$ac_cv_header_libcfile_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCFILE_H 1 _ACEOF fi done if test "x$ac_cv_header_libcfile_h" = xno; then : ac_cv_libcfile=no else ac_cv_libcfile=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_get_version in -lcfile" >&5 $as_echo_n "checking for libcfile_get_version in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_get_version (); int main () { return libcfile_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_get_version=yes else ac_cv_lib_cfile_libcfile_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_get_version" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_get_version" >&6; } if test "x$ac_cv_lib_cfile_libcfile_get_version" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_initialize in -lcfile" >&5 $as_echo_n "checking for libcfile_file_initialize in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_initialize (); int main () { return libcfile_file_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_initialize=yes else ac_cv_lib_cfile_libcfile_file_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_initialize" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_initialize" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_initialize" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_free in -lcfile" >&5 $as_echo_n "checking for libcfile_file_free in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_free (); int main () { return libcfile_file_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_free=yes else ac_cv_lib_cfile_libcfile_file_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_free" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_free" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_free" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open in -lcfile" >&5 $as_echo_n "checking for libcfile_file_open in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_open (); int main () { return libcfile_file_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_open=yes else ac_cv_lib_cfile_libcfile_file_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_open" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_open" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_with_error_code in -lcfile" >&5 $as_echo_n "checking for libcfile_file_open_with_error_code in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_open_with_error_code+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_open_with_error_code (); int main () { return libcfile_file_open_with_error_code (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_open_with_error_code=yes else ac_cv_lib_cfile_libcfile_file_open_with_error_code=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open_with_error_code" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_open_with_error_code" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_open_with_error_code" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_close in -lcfile" >&5 $as_echo_n "checking for libcfile_file_close in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_close+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_close (); int main () { return libcfile_file_close (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_close=yes else ac_cv_lib_cfile_libcfile_file_close=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_close" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_close" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_close" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_read_buffer in -lcfile" >&5 $as_echo_n "checking for libcfile_file_read_buffer in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_read_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_read_buffer (); int main () { return libcfile_file_read_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_read_buffer=yes else ac_cv_lib_cfile_libcfile_file_read_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_read_buffer" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_read_buffer" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_read_buffer" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_read_buffer_with_error_code in -lcfile" >&5 $as_echo_n "checking for libcfile_file_read_buffer_with_error_code in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_read_buffer_with_error_code (); int main () { return libcfile_file_read_buffer_with_error_code (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code=yes else ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_write_buffer in -lcfile" >&5 $as_echo_n "checking for libcfile_file_write_buffer in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_write_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_write_buffer (); int main () { return libcfile_file_write_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_write_buffer=yes else ac_cv_lib_cfile_libcfile_file_write_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_write_buffer" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_write_buffer" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_write_buffer" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_write_buffer_with_error_code in -lcfile" >&5 $as_echo_n "checking for libcfile_file_write_buffer_with_error_code in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_write_buffer_with_error_code (); int main () { return libcfile_file_write_buffer_with_error_code (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code=yes else ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_seek_offset in -lcfile" >&5 $as_echo_n "checking for libcfile_file_seek_offset in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_seek_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_seek_offset (); int main () { return libcfile_file_seek_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_seek_offset=yes else ac_cv_lib_cfile_libcfile_file_seek_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_seek_offset" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_seek_offset" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_seek_offset" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_resize in -lcfile" >&5 $as_echo_n "checking for libcfile_file_resize in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_resize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_resize (); int main () { return libcfile_file_resize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_resize=yes else ac_cv_lib_cfile_libcfile_file_resize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_resize" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_resize" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_resize" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_is_open in -lcfile" >&5 $as_echo_n "checking for libcfile_file_is_open in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_is_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_is_open (); int main () { return libcfile_file_is_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_is_open=yes else ac_cv_lib_cfile_libcfile_file_is_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_is_open" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_is_open" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_is_open" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_get_offset in -lcfile" >&5 $as_echo_n "checking for libcfile_file_get_offset in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_get_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_get_offset (); int main () { return libcfile_file_get_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_get_offset=yes else ac_cv_lib_cfile_libcfile_file_get_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_get_offset" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_get_offset" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_get_offset" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_get_size in -lcfile" >&5 $as_echo_n "checking for libcfile_file_get_size in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_get_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_get_size (); int main () { return libcfile_file_get_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_get_size=yes else ac_cv_lib_cfile_libcfile_file_get_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_get_size" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_get_size" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_get_size" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_is_device in -lcfile" >&5 $as_echo_n "checking for libcfile_file_is_device in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_is_device+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_is_device (); int main () { return libcfile_file_is_device (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_is_device=yes else ac_cv_lib_cfile_libcfile_file_is_device=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_is_device" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_is_device" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_is_device" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_io_control_read in -lcfile" >&5 $as_echo_n "checking for libcfile_file_io_control_read in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_io_control_read+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_io_control_read (); int main () { return libcfile_file_io_control_read (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_io_control_read=yes else ac_cv_lib_cfile_libcfile_file_io_control_read=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_io_control_read" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_io_control_read" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_io_control_read" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_io_control_read_with_error_code in -lcfile" >&5 $as_echo_n "checking for libcfile_file_io_control_read_with_error_code in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_io_control_read_with_error_code (); int main () { return libcfile_file_io_control_read_with_error_code (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code=yes else ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi if test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_wide in -lcfile" >&5 $as_echo_n "checking for libcfile_file_open_wide in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_open_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_open_wide (); int main () { return libcfile_file_open_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_open_wide=yes else ac_cv_lib_cfile_libcfile_file_open_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open_wide" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_open_wide" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_open_wide" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_wide_with_error_code in -lcfile" >&5 $as_echo_n "checking for libcfile_file_open_wide_with_error_code in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_open_wide_with_error_code (); int main () { return libcfile_file_open_wide_with_error_code (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code=yes else ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_exists in -lcfile" >&5 $as_echo_n "checking for libcfile_file_exists in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_exists+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_exists (); int main () { return libcfile_file_exists (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_exists=yes else ac_cv_lib_cfile_libcfile_file_exists=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_exists" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_exists" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_exists" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_remove in -lcfile" >&5 $as_echo_n "checking for libcfile_file_remove in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_remove (); int main () { return libcfile_file_remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_remove=yes else ac_cv_lib_cfile_libcfile_file_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_remove" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_remove" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_remove" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi if test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_exists_wide in -lcfile" >&5 $as_echo_n "checking for libcfile_file_exists_wide in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_exists_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_exists_wide (); int main () { return libcfile_file_exists_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_exists_wide=yes else ac_cv_lib_cfile_libcfile_file_exists_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_exists_wide" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_exists_wide" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_exists_wide" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_remove_wide in -lcfile" >&5 $as_echo_n "checking for libcfile_file_remove_wide in -lcfile... " >&6; } if ${ac_cv_lib_cfile_libcfile_file_remove_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcfile_file_remove_wide (); int main () { return libcfile_file_remove_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cfile_libcfile_file_remove_wide=yes else ac_cv_lib_cfile_libcfile_file_remove_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_remove_wide" >&5 $as_echo "$ac_cv_lib_cfile_libcfile_file_remove_wide" >&6; } if test "x$ac_cv_lib_cfile_libcfile_file_remove_wide" = xyes; then : ac_cv_libcfile_dummy=yes else ac_cv_libcfile=no fi fi ac_cv_libcfile_LIBADD="-lcfile" fi fi if test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect && test "x$ac_cv_libcfile" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcfile in directory: $ac_cv_with_libcfile See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcfile" = xyes; then : $as_echo "#define HAVE_LIBCFILE 1" >>confdefs.h fi if test "x$ac_cv_libcfile" = xyes; then : HAVE_LIBCFILE=1 else HAVE_LIBCFILE=0 fi if test "x$ac_cv_libcfile" != xyes; then : for ac_header in errno.h stdio.h sys/stat.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in cygwin/fs.h fcntl.h linux/fs.h sys/disk.h sys/disklabel.h sys/ioctl.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in close fstat ftruncate ioctl lseek open read write do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_close" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: close See \`config.log' for more details" "$LINENO" 5; } fi for ac_func in posix_fadvise do : ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" if test "x$ac_cv_func_posix_fadvise" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_POSIX_FADVISE 1 _ACEOF fi done if test "x$ac_cv_func_posix_fadvise" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_fadvise can be linked" >&5 $as_echo_n "checking whether posix_fadvise can be linked... " >&6; } SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined( POSIX_FADV_SEQUENTIAL ) #define POSIX_FADV_SEQUENTIAL 2 #endif posix_fadvise( 0, 0, 0, POSIX_FADV_SEQUENTIAL ) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_posix_fadvise=yes else ac_cv_func_posix_fadvise=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS="$SAVE_CFLAGS" if test "x$ac_cv_func_posix_fadvise" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$ac_cv_func_fstat" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: fstat See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_ftruncate" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: ftruncate See \`config.log' for more details" "$LINENO" 5; } fi if test x"$ac_cv_enable_winapi" = xno; then : if test "x$ac_cv_func_ioctl" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: ioctl See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_func_lseek" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: lseek See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_open" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: open See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_read" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: read See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_write" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: write See \`config.log' for more details" "$LINENO" 5; } fi for ac_func in stat unlink do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_stat" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: stat See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_unlink" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: unlink See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcfile_CPPFLAGS="-I../libcfile"; ac_cv_libcfile_LIBADD="../libcfile/libcfile.la"; ac_cv_libcfile=local $as_echo "#define HAVE_LOCAL_LIBCFILE 1" >>confdefs.h HAVE_LOCAL_LIBCFILE=1 fi if test "x$ac_cv_libcfile" = xlocal; then HAVE_LOCAL_LIBCFILE_TRUE= HAVE_LOCAL_LIBCFILE_FALSE='#' else HAVE_LOCAL_LIBCFILE_TRUE='#' HAVE_LOCAL_LIBCFILE_FALSE= fi if test "x$ac_cv_libcfile_CPPFLAGS" != "x"; then : LIBCFILE_CPPFLAGS=$ac_cv_libcfile_CPPFLAGS fi if test "x$ac_cv_libcfile_LIBADD" != "x"; then : LIBCFILE_LIBADD=$ac_cv_libcfile_LIBADD fi if test "x$ac_cv_libcfile" = xyes; then : ax_libcfile_pc_libs_private=-lcfile fi if test "x$ac_cv_libcfile" = xyes; then : ax_libcfile_spec_requires=libcfile ax_libcfile_spec_build_requires=libcfile-devel fi # Check whether --with-libcpath was given. if test "${with_libcpath+set}" = set; then : withval=$with_libcpath; ac_cv_with_libcpath=$withval else ac_cv_with_libcpath=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcpath+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcpath=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcpath" >&5 $as_echo "$ac_cv_with_libcpath" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcpath" = xno; then : ac_cv_libcpath=no else if test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect; then : if test -d "$ac_cv_with_libcpath"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcpath}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcpath}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcpath See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcpath=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath" >&5 $as_echo_n "checking for libcpath... " >&6; } if test -n "$libcpath_CFLAGS"; then pkg_cv_libcpath_CFLAGS="$libcpath_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpath >= 20180716\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcpath >= 20180716") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcpath_CFLAGS=`$PKG_CONFIG --cflags "libcpath >= 20180716" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcpath_LIBS"; then pkg_cv_libcpath_LIBS="$libcpath_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpath >= 20180716\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcpath >= 20180716") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcpath_LIBS=`$PKG_CONFIG --libs "libcpath >= 20180716" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcpath_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpath >= 20180716" 2>&1` else libcpath_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpath >= 20180716" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcpath_PKG_ERRORS" >&5 ac_cv_libcpath=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcpath=check else libcpath_CFLAGS=$pkg_cv_libcpath_CFLAGS libcpath_LIBS=$pkg_cv_libcpath_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcpath=yes fi fi if test "x$ac_cv_libcpath" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 $as_echo_n "checking whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } if ${ac_cv_header_libcpath_features_h_have_wide_character_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCPATH_HAVE_WIDE_CHARACTER_TYPE not defined #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_libcpath_features_h_have_wide_character_type=yes else ac_cv_header_libcpath_features_h_have_wide_character_type=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libcpath_features_h_have_wide_character_type" >&5 $as_echo "$ac_cv_header_libcpath_features_h_have_wide_character_type" >&6; } if test "x$ac_cv_header_libcpath_features_h_have_wide_character_type" = xno; then : ac_cv_libcpath=no fi fi if test "x$ac_cv_libcpath" = xyes; then : ac_cv_libcpath_CPPFLAGS="$pkg_cv_libcpath_CFLAGS" ac_cv_libcpath_LIBADD="$pkg_cv_libcpath_LIBS" fi fi if test "x$ac_cv_libcpath" = xcheck; then : for ac_header in libcpath.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcpath.h" "ac_cv_header_libcpath_h" "$ac_includes_default" if test "x$ac_cv_header_libcpath_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCPATH_H 1 _ACEOF fi done if test "x$ac_cv_header_libcpath_h" = xno; then : ac_cv_libcpath=no else ac_cv_libcpath=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_get_version in -lcpath" >&5 $as_echo_n "checking for libcpath_get_version in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_get_version (); int main () { return libcpath_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_get_version=yes else ac_cv_lib_cpath_libcpath_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_get_version" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_get_version" >&6; } if test "x$ac_cv_lib_cpath_libcpath_get_version" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_change_directory in -lcpath" >&5 $as_echo_n "checking for libcpath_path_change_directory in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_change_directory+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_change_directory (); int main () { return libcpath_path_change_directory (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_change_directory=yes else ac_cv_lib_cpath_libcpath_path_change_directory=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_change_directory" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_change_directory" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_change_directory" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_current_working_directory in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_current_working_directory in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_current_working_directory+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_current_working_directory (); int main () { return libcpath_path_get_current_working_directory (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_current_working_directory=yes else ac_cv_lib_cpath_libcpath_path_get_current_working_directory=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_current_working_directory" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_current_working_directory" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_current_working_directory" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_full_path in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_full_path in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_full_path+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_full_path (); int main () { return libcpath_path_get_full_path (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_full_path=yes else ac_cv_lib_cpath_libcpath_path_get_full_path=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_full_path" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_full_path" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_full_path" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_filename in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_sanitized_filename in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_filename+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_sanitized_filename (); int main () { return libcpath_path_get_sanitized_filename (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_sanitized_filename=yes else ac_cv_lib_cpath_libcpath_path_get_sanitized_filename=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_path in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_sanitized_path in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_path+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_sanitized_path (); int main () { return libcpath_path_get_sanitized_path (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_sanitized_path=yes else ac_cv_lib_cpath_libcpath_path_get_sanitized_path=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_path" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_path" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_path" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_join in -lcpath" >&5 $as_echo_n "checking for libcpath_path_join in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_join+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_join (); int main () { return libcpath_path_join (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_join=yes else ac_cv_lib_cpath_libcpath_path_join=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_join" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_join" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_join" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_make_directory in -lcpath" >&5 $as_echo_n "checking for libcpath_path_make_directory in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_make_directory+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_make_directory (); int main () { return libcpath_path_make_directory (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_make_directory=yes else ac_cv_lib_cpath_libcpath_path_make_directory=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_make_directory" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_make_directory" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_make_directory" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi if test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_change_directory_wide in -lcpath" >&5 $as_echo_n "checking for libcpath_path_change_directory_wide in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_change_directory_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_change_directory_wide (); int main () { return libcpath_path_change_directory_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_change_directory_wide=yes else ac_cv_lib_cpath_libcpath_path_change_directory_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_change_directory_wide" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_change_directory_wide" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_change_directory_wide" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_current_working_directory_wide in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_current_working_directory_wide in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_current_working_directory_wide (); int main () { return libcpath_path_get_current_working_directory_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide=yes else ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_full_path_wide in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_full_path_wide in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_full_path_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_full_path_wide (); int main () { return libcpath_path_get_full_path_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_full_path_wide=yes else ac_cv_lib_cpath_libcpath_path_get_full_path_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_full_path_wide" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_full_path_wide" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_full_path_wide" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_filename_wide in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_sanitized_filename_wide in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_sanitized_filename_wide (); int main () { return libcpath_path_get_sanitized_filename_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide=yes else ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_path_wide in -lcpath" >&5 $as_echo_n "checking for libcpath_path_get_sanitized_path_wide in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_get_sanitized_path_wide (); int main () { return libcpath_path_get_sanitized_path_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide=yes else ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_join_wide in -lcpath" >&5 $as_echo_n "checking for libcpath_path_join_wide in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_join_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_join_wide (); int main () { return libcpath_path_join_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_join_wide=yes else ac_cv_lib_cpath_libcpath_path_join_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_join_wide" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_join_wide" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_join_wide" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_make_directory_wide in -lcpath" >&5 $as_echo_n "checking for libcpath_path_make_directory_wide in -lcpath... " >&6; } if ${ac_cv_lib_cpath_libcpath_path_make_directory_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcpath_path_make_directory_wide (); int main () { return libcpath_path_make_directory_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cpath_libcpath_path_make_directory_wide=yes else ac_cv_lib_cpath_libcpath_path_make_directory_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_make_directory_wide" >&5 $as_echo "$ac_cv_lib_cpath_libcpath_path_make_directory_wide" >&6; } if test "x$ac_cv_lib_cpath_libcpath_path_make_directory_wide" = xyes; then : ac_cv_libcpath_dummy=yes else ac_cv_libcpath=no fi fi ac_cv_libcpath_LIBADD="-lcpath" fi fi if test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect && test "x$ac_cv_libcpath" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcpath in directory: $ac_cv_with_libcpath See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcpath" = xyes; then : $as_echo "#define HAVE_LIBCPATH 1" >>confdefs.h fi if test "x$ac_cv_libcpath" = xyes; then : HAVE_LIBCPATH=1 else HAVE_LIBCPATH=0 fi if test "x$ac_cv_libcpath" != xyes; then : for ac_header in errno.h sys/stat.h sys/syslimits.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in chdir getcwd do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_chdir" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: chdir See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_func_getcwd" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing functions: getcwd See \`config.log' for more details" "$LINENO" 5; } fi for ac_func in mkdir do : ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" if test "x$ac_cv_func_mkdir" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MKDIR 1 _ACEOF fi done if test "x$ac_cv_func_mkdir" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use mkdir" >&5 $as_echo_n "checking how to use mkdir... " >&6; } SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { mkdir( "", 0 ) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: with additional mode argument" >&5 $as_echo "with additional mode argument" >&6; } ac_cv_cv_mkdir_mode=yes else ac_cv_cv_mkdir_mode=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$ac_cv_cv_mkdir_mode" = xno; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { mkdir( "" ) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: with single argument" >&5 $as_echo "with single argument" >&6; } ac_cv_cv_mkdir=yes else ac_cv_cv_mkdir=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS="$SAVE_CFLAGS" if test "x$ac_cv_cv_mkdir_mode" = xno && test "x$ac_cv_cv_mkdir" = xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown" >&5 $as_echo "$as_me: WARNING: unknown" >&2;} ac_cv_func_mkdir=no fi if test "x$ac_cv_func_mkdir" = xyes; then : $as_echo "#define HAVE_MKDIR 1" >>confdefs.h fi if test "x$ac_cv_cv_mkdir_mode" = xyes; then : $as_echo "#define HAVE_MKDIR_MODE 1" >>confdefs.h fi fi if test "x$ac_cv_func_mkdir" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: mkdir See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcpath_CPPFLAGS="-I../libcpath"; ac_cv_libcpath_LIBADD="../libcpath/libcpath.la"; ac_cv_libcpath=local $as_echo "#define HAVE_LOCAL_LIBCPATH 1" >>confdefs.h HAVE_LOCAL_LIBCPATH=1 fi if test "x$ac_cv_libcpath" = xlocal; then HAVE_LOCAL_LIBCPATH_TRUE= HAVE_LOCAL_LIBCPATH_FALSE='#' else HAVE_LOCAL_LIBCPATH_TRUE='#' HAVE_LOCAL_LIBCPATH_FALSE= fi if test "x$ac_cv_libcpath_CPPFLAGS" != "x"; then : LIBCPATH_CPPFLAGS=$ac_cv_libcpath_CPPFLAGS fi if test "x$ac_cv_libcpath_LIBADD" != "x"; then : LIBCPATH_LIBADD=$ac_cv_libcpath_LIBADD fi if test "x$ac_cv_libcpath" = xyes; then : ax_libcpath_pc_libs_private=-lcpath fi if test "x$ac_cv_libcpath" = xyes; then : ax_libcpath_spec_requires=libcpath ax_libcpath_spec_build_requires=libcpath-devel fi # Check whether --with-libbfio was given. if test "${with_libbfio+set}" = set; then : withval=$with_libbfio; ac_cv_with_libbfio=$withval else ac_cv_with_libbfio=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libbfio+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libbfio=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libbfio" >&5 $as_echo "$ac_cv_with_libbfio" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libbfio" = xno; then : ac_cv_libbfio=no else if test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect; then : if test -d "$ac_cv_with_libbfio"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libbfio}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libbfio}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libbfio See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libbfio=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio" >&5 $as_echo_n "checking for libbfio... " >&6; } if test -n "$libbfio_CFLAGS"; then pkg_cv_libbfio_CFLAGS="$libbfio_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbfio >= 20160108\""; } >&5 ($PKG_CONFIG --exists --print-errors "libbfio >= 20160108") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libbfio_CFLAGS=`$PKG_CONFIG --cflags "libbfio >= 20160108" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libbfio_LIBS"; then pkg_cv_libbfio_LIBS="$libbfio_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbfio >= 20160108\""; } >&5 ($PKG_CONFIG --exists --print-errors "libbfio >= 20160108") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libbfio_LIBS=`$PKG_CONFIG --libs "libbfio >= 20160108" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libbfio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbfio >= 20160108" 2>&1` else libbfio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbfio >= 20160108" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libbfio_PKG_ERRORS" >&5 ac_cv_libbfio=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libbfio=check else libbfio_CFLAGS=$pkg_cv_libbfio_CFLAGS libbfio_LIBS=$pkg_cv_libbfio_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libbfio=yes fi fi if test "x$ac_cv_libbfio" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 $as_echo_n "checking whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } if ${ac_cv_header_libbfio_features_h_have_wide_character_type+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBBFIO_HAVE_WIDE_CHARACTER_TYPE not defined #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_libbfio_features_h_have_wide_character_type=yes else ac_cv_header_libbfio_features_h_have_wide_character_type=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libbfio_features_h_have_wide_character_type" >&5 $as_echo "$ac_cv_header_libbfio_features_h_have_wide_character_type" >&6; } if test "x$ac_cv_header_libbfio_features_h_have_wide_character_type" = xno; then : ac_cv_libbfio=no fi fi if test "x$ac_cv_libbfio" = xyes; then : ac_cv_libbfio_CPPFLAGS="$pkg_cv_libbfio_CFLAGS" ac_cv_libbfio_LIBADD="$pkg_cv_libbfio_LIBS" fi fi if test "x$ac_cv_libbfio" = xcheck; then : for ac_header in libbfio.h do : ac_fn_c_check_header_mongrel "$LINENO" "libbfio.h" "ac_cv_header_libbfio_h" "$ac_includes_default" if test "x$ac_cv_header_libbfio_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBBFIO_H 1 _ACEOF fi done if test "x$ac_cv_header_libbfio_h" = xno; then : ac_cv_libbfio=no else ac_cv_libbfio=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_get_version in -lbfio" >&5 $as_echo_n "checking for libbfio_get_version in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_get_version (); int main () { return libbfio_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_get_version=yes else ac_cv_lib_bfio_libbfio_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_get_version" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_get_version" >&6; } if test "x$ac_cv_lib_bfio_libbfio_get_version" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_free in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_free in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_free (); int main () { return libbfio_handle_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_free=yes else ac_cv_lib_bfio_libbfio_handle_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_free" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_free" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_free" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_open in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_open in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_open (); int main () { return libbfio_handle_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_open=yes else ac_cv_lib_bfio_libbfio_handle_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_open" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_open" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_open" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_close in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_close in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_close+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_close (); int main () { return libbfio_handle_close (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_close=yes else ac_cv_lib_bfio_libbfio_handle_close=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_close" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_close" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_close" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_exists in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_exists in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_exists+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_exists (); int main () { return libbfio_handle_exists (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_exists=yes else ac_cv_lib_bfio_libbfio_handle_exists=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_exists" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_exists" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_exists" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_read_buffer in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_read_buffer in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_read_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_read_buffer (); int main () { return libbfio_handle_read_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_read_buffer=yes else ac_cv_lib_bfio_libbfio_handle_read_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_read_buffer" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_read_buffer" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_read_buffer" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_write_buffer in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_write_buffer in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_write_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_write_buffer (); int main () { return libbfio_handle_write_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_write_buffer=yes else ac_cv_lib_bfio_libbfio_handle_write_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_write_buffer" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_write_buffer" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_write_buffer" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_seek_offset in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_seek_offset in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_seek_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_seek_offset (); int main () { return libbfio_handle_seek_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_seek_offset=yes else ac_cv_lib_bfio_libbfio_handle_seek_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_seek_offset" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_seek_offset" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_seek_offset" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_is_open in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_is_open in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_is_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_is_open (); int main () { return libbfio_handle_is_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_is_open=yes else ac_cv_lib_bfio_libbfio_handle_is_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_is_open" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_is_open" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_is_open" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_offset in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_get_offset in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_get_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_get_offset (); int main () { return libbfio_handle_get_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_get_offset=yes else ac_cv_lib_bfio_libbfio_handle_get_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_offset" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_get_offset" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_get_offset" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_size in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_get_size in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_get_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_get_size (); int main () { return libbfio_handle_get_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_get_size=yes else ac_cv_lib_bfio_libbfio_handle_get_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_size" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_get_size" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_get_size" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_set_track_offsets_read in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_set_track_offsets_read in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_set_track_offsets_read (); int main () { return libbfio_handle_set_track_offsets_read (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read=yes else ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_number_of_offsets_read in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_get_number_of_offsets_read in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_get_number_of_offsets_read (); int main () { return libbfio_handle_get_number_of_offsets_read (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read=yes else ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_offset_read in -lbfio" >&5 $as_echo_n "checking for libbfio_handle_get_offset_read in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_handle_get_offset_read+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_handle_get_offset_read (); int main () { return libbfio_handle_get_offset_read (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_handle_get_offset_read=yes else ac_cv_lib_bfio_libbfio_handle_get_offset_read=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_offset_read" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_handle_get_offset_read" >&6; } if test "x$ac_cv_lib_bfio_libbfio_handle_get_offset_read" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_initialize in -lbfio" >&5 $as_echo_n "checking for libbfio_file_initialize in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_file_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_file_initialize (); int main () { return libbfio_file_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_file_initialize=yes else ac_cv_lib_bfio_libbfio_file_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_initialize" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_file_initialize" >&6; } if test "x$ac_cv_lib_bfio_libbfio_file_initialize" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_size in -lbfio" >&5 $as_echo_n "checking for libbfio_file_get_name_size in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_file_get_name_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_file_get_name_size (); int main () { return libbfio_file_get_name_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_file_get_name_size=yes else ac_cv_lib_bfio_libbfio_file_get_name_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name_size" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_file_get_name_size" >&6; } if test "x$ac_cv_lib_bfio_libbfio_file_get_name_size" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name in -lbfio" >&5 $as_echo_n "checking for libbfio_file_get_name in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_file_get_name+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_file_get_name (); int main () { return libbfio_file_get_name (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_file_get_name=yes else ac_cv_lib_bfio_libbfio_file_get_name=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_file_get_name" >&6; } if test "x$ac_cv_lib_bfio_libbfio_file_get_name" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_set_name in -lbfio" >&5 $as_echo_n "checking for libbfio_file_set_name in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_file_set_name+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_file_set_name (); int main () { return libbfio_file_set_name (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_file_set_name=yes else ac_cv_lib_bfio_libbfio_file_set_name=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_set_name" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_file_set_name" >&6; } if test "x$ac_cv_lib_bfio_libbfio_file_set_name" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi if test "x$ac_cv_enable_wide_character_type" != xno; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_size_wide in -lbfio" >&5 $as_echo_n "checking for libbfio_file_get_name_size_wide in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_file_get_name_size_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_file_get_name_size_wide (); int main () { return libbfio_file_get_name_size_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_file_get_name_size_wide=yes else ac_cv_lib_bfio_libbfio_file_get_name_size_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name_size_wide" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_file_get_name_size_wide" >&6; } if test "x$ac_cv_lib_bfio_libbfio_file_get_name_size_wide" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_wide in -lbfio" >&5 $as_echo_n "checking for libbfio_file_get_name_wide in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_file_get_name_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_file_get_name_wide (); int main () { return libbfio_file_get_name_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_file_get_name_wide=yes else ac_cv_lib_bfio_libbfio_file_get_name_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name_wide" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_file_get_name_wide" >&6; } if test "x$ac_cv_lib_bfio_libbfio_file_get_name_wide" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_set_name_wide in -lbfio" >&5 $as_echo_n "checking for libbfio_file_set_name_wide in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_file_set_name_wide+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_file_set_name_wide (); int main () { return libbfio_file_set_name_wide (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_file_set_name_wide=yes else ac_cv_lib_bfio_libbfio_file_set_name_wide=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_set_name_wide" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_file_set_name_wide" >&6; } if test "x$ac_cv_lib_bfio_libbfio_file_set_name_wide" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_initialize in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_initialize in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_initialize (); int main () { return libbfio_pool_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_initialize=yes else ac_cv_lib_bfio_libbfio_pool_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_initialize" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_initialize" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_initialize" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_free in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_free in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_free (); int main () { return libbfio_pool_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_free=yes else ac_cv_lib_bfio_libbfio_pool_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_free" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_free" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_free" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_clone in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_clone in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_clone (); int main () { return libbfio_pool_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_clone=yes else ac_cv_lib_bfio_libbfio_pool_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_clone" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_clone" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_clone" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_number_of_handles in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_get_number_of_handles in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_get_number_of_handles+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_get_number_of_handles (); int main () { return libbfio_pool_get_number_of_handles (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_get_number_of_handles=yes else ac_cv_lib_bfio_libbfio_pool_get_number_of_handles=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_handle in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_get_handle in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_get_handle+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_get_handle (); int main () { return libbfio_pool_get_handle (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_get_handle=yes else ac_cv_lib_bfio_libbfio_pool_get_handle=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_handle" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_get_handle" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_get_handle" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_set_handle in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_set_handle in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_set_handle+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_set_handle (); int main () { return libbfio_pool_set_handle (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_set_handle=yes else ac_cv_lib_bfio_libbfio_pool_set_handle=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_set_handle" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_set_handle" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_set_handle" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_append_handle in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_append_handle in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_append_handle+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_append_handle (); int main () { return libbfio_pool_append_handle (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_append_handle=yes else ac_cv_lib_bfio_libbfio_pool_append_handle=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_append_handle" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_append_handle" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_append_handle" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_remove_handle in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_remove_handle in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_remove_handle+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_remove_handle (); int main () { return libbfio_pool_remove_handle (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_remove_handle=yes else ac_cv_lib_bfio_libbfio_pool_remove_handle=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_remove_handle" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_remove_handle" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_remove_handle" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_maximum_number_of_open_handles in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_get_maximum_number_of_open_handles in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_get_maximum_number_of_open_handles (); int main () { return libbfio_pool_get_maximum_number_of_open_handles (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles=yes else ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_set_maximum_number_of_open_handles in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_set_maximum_number_of_open_handles in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_set_maximum_number_of_open_handles (); int main () { return libbfio_pool_set_maximum_number_of_open_handles (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles=yes else ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_open in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_open in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_open (); int main () { return libbfio_pool_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_open=yes else ac_cv_lib_bfio_libbfio_pool_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_open" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_open" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_open" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_reopen in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_reopen in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_reopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_reopen (); int main () { return libbfio_pool_reopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_reopen=yes else ac_cv_lib_bfio_libbfio_pool_reopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_reopen" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_reopen" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_reopen" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_close in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_close in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_close+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_close (); int main () { return libbfio_pool_close (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_close=yes else ac_cv_lib_bfio_libbfio_pool_close=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_close" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_close" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_close" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_close_all in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_close_all in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_close_all+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_close_all (); int main () { return libbfio_pool_close_all (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_close_all=yes else ac_cv_lib_bfio_libbfio_pool_close_all=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_close_all" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_close_all" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_close_all" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_read_buffer in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_read_buffer in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_read_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_read_buffer (); int main () { return libbfio_pool_read_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_read_buffer=yes else ac_cv_lib_bfio_libbfio_pool_read_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_read_buffer" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_read_buffer" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_read_buffer" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_write_buffer in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_write_buffer in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_write_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_write_buffer (); int main () { return libbfio_pool_write_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_write_buffer=yes else ac_cv_lib_bfio_libbfio_pool_write_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_write_buffer" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_write_buffer" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_write_buffer" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_seek_offset in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_seek_offset in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_seek_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_seek_offset (); int main () { return libbfio_pool_seek_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_seek_offset=yes else ac_cv_lib_bfio_libbfio_pool_seek_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_seek_offset" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_seek_offset" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_seek_offset" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_offset in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_get_offset in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_get_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_get_offset (); int main () { return libbfio_pool_get_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_get_offset=yes else ac_cv_lib_bfio_libbfio_pool_get_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_offset" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_get_offset" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_get_offset" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_size in -lbfio" >&5 $as_echo_n "checking for libbfio_pool_get_size in -lbfio... " >&6; } if ${ac_cv_lib_bfio_libbfio_pool_get_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libbfio_pool_get_size (); int main () { return libbfio_pool_get_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bfio_libbfio_pool_get_size=yes else ac_cv_lib_bfio_libbfio_pool_get_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_size" >&5 $as_echo "$ac_cv_lib_bfio_libbfio_pool_get_size" >&6; } if test "x$ac_cv_lib_bfio_libbfio_pool_get_size" = xyes; then : ac_cv_libbfio_dummy=yes else ac_cv_libbfio=no fi ac_cv_libbfio_LIBADD="-lbfio" fi fi if test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect && test "x$ac_cv_libbfio" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libbfio in directory: $ac_cv_with_libbfio See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libbfio" = xyes; then : $as_echo "#define HAVE_LIBBFIO 1" >>confdefs.h fi if test "x$ac_cv_libbfio" = xyes; then : HAVE_LIBBFIO=1 else HAVE_LIBBFIO=0 fi if test "x$ac_cv_libbfio" != xyes; then : ac_cv_libbfio_CPPFLAGS="-I../libbfio"; ac_cv_libbfio_LIBADD="../libbfio/libbfio.la"; ac_cv_libbfio=local $as_echo "#define HAVE_LOCAL_LIBBFIO 1" >>confdefs.h HAVE_LOCAL_LIBBFIO=1 fi if test "x$ac_cv_libbfio" = xlocal; then HAVE_LOCAL_LIBBFIO_TRUE= HAVE_LOCAL_LIBBFIO_FALSE='#' else HAVE_LOCAL_LIBBFIO_TRUE='#' HAVE_LOCAL_LIBBFIO_FALSE= fi if test "x$ac_cv_libbfio_CPPFLAGS" != "x"; then : LIBBFIO_CPPFLAGS=$ac_cv_libbfio_CPPFLAGS fi if test "x$ac_cv_libbfio_LIBADD" != "x"; then : LIBBFIO_LIBADD=$ac_cv_libbfio_LIBADD fi if test "x$ac_cv_libbfio" = xyes; then : ax_libbfio_pc_libs_private=-lbfio fi if test "x$ac_cv_libbfio" = xyes; then : ax_libbfio_spec_requires=libbfio ax_libbfio_spec_build_requires=libbfio-devel fi # Check whether --with-libfcache was given. if test "${with_libfcache+set}" = set; then : withval=$with_libfcache; ac_cv_with_libfcache=$withval else ac_cv_with_libfcache=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libfcache+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libfcache=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfcache" >&5 $as_echo "$ac_cv_with_libfcache" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfcache" = xno; then : ac_cv_libfcache=no else if test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect; then : if test -d "$ac_cv_with_libfcache"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libfcache}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfcache}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libfcache See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libfcache=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache" >&5 $as_echo_n "checking for libfcache... " >&6; } if test -n "$libfcache_CFLAGS"; then pkg_cv_libfcache_CFLAGS="$libfcache_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfcache >= 20181010\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfcache >= 20181010") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfcache_CFLAGS=`$PKG_CONFIG --cflags "libfcache >= 20181010" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libfcache_LIBS"; then pkg_cv_libfcache_LIBS="$libfcache_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfcache >= 20181010\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfcache >= 20181010") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfcache_LIBS=`$PKG_CONFIG --libs "libfcache >= 20181010" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libfcache_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfcache >= 20181010" 2>&1` else libfcache_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfcache >= 20181010" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libfcache_PKG_ERRORS" >&5 ac_cv_libfcache=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libfcache=check else libfcache_CFLAGS=$pkg_cv_libfcache_CFLAGS libfcache_LIBS=$pkg_cv_libfcache_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libfcache=yes fi fi if test "x$ac_cv_libfcache" = xyes; then : ac_cv_libfcache_CPPFLAGS="$pkg_cv_libfcache_CFLAGS" ac_cv_libfcache_LIBADD="$pkg_cv_libfcache_LIBS" fi fi if test "x$ac_cv_libfcache" = xcheck; then : for ac_header in libfcache.h do : ac_fn_c_check_header_mongrel "$LINENO" "libfcache.h" "ac_cv_header_libfcache_h" "$ac_includes_default" if test "x$ac_cv_header_libfcache_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFCACHE_H 1 _ACEOF fi done if test "x$ac_cv_header_libfcache_h" = xno; then : ac_cv_libfcache=no else ac_cv_libfcache=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_get_version in -lfcache" >&5 $as_echo_n "checking for libfcache_get_version in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_get_version (); int main () { return libfcache_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_get_version=yes else ac_cv_lib_fcache_libfcache_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_get_version" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_get_version" >&6; } if test "x$ac_cv_lib_fcache_libfcache_get_version" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_initialize in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_initialize in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_initialize (); int main () { return libfcache_cache_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_initialize=yes else ac_cv_lib_fcache_libfcache_cache_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_initialize" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_initialize" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_initialize" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_free in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_free in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_free (); int main () { return libfcache_cache_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_free=yes else ac_cv_lib_fcache_libfcache_cache_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_free" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_free" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_free" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clone in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_clone in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_clone (); int main () { return libfcache_cache_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_clone=yes else ac_cv_lib_fcache_libfcache_cache_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_clone" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_clone" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_clone" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clear in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_clear in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_clear+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_clear (); int main () { return libfcache_cache_clear (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_clear=yes else ac_cv_lib_fcache_libfcache_cache_clear=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_clear" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_clear" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_clear" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_number_of_entries in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_get_number_of_entries in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_get_number_of_entries+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_get_number_of_entries (); int main () { return libfcache_cache_get_number_of_entries (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_get_number_of_entries=yes else ac_cv_lib_fcache_libfcache_cache_get_number_of_entries=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_number_of_cache_values in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_get_number_of_cache_values in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_get_number_of_cache_values (); int main () { return libfcache_cache_get_number_of_cache_values (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values=yes else ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_value_by_identifier in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_get_value_by_identifier in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_get_value_by_identifier (); int main () { return libfcache_cache_get_value_by_identifier (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier=yes else ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_value_by_index in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_get_value_by_index in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_get_value_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_get_value_by_index (); int main () { return libfcache_cache_get_value_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_get_value_by_index=yes else ac_cv_lib_fcache_libfcache_cache_get_value_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_value_by_index" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_get_value_by_index" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_get_value_by_index" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_set_value_by_identifier in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_set_value_by_identifier in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_set_value_by_identifier (); int main () { return libfcache_cache_set_value_by_identifier (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier=yes else ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_set_value_by_index in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_set_value_by_index in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_set_value_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_set_value_by_index (); int main () { return libfcache_cache_set_value_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_set_value_by_index=yes else ac_cv_lib_fcache_libfcache_cache_set_value_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_set_value_by_index" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_set_value_by_index" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_set_value_by_index" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_clear in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_value_clear in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_value_clear+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_value_clear (); int main () { return libfcache_cache_value_clear (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_value_clear=yes else ac_cv_lib_fcache_libfcache_cache_value_clear=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_clear" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_value_clear" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_value_clear" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_get_identifier in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_value_get_identifier in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_value_get_identifier+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_value_get_identifier (); int main () { return libfcache_cache_value_get_identifier (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_value_get_identifier=yes else ac_cv_lib_fcache_libfcache_cache_value_get_identifier=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_get_identifier" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_value_get_identifier" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_value_get_identifier" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_set_identifier in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_value_set_identifier in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_value_set_identifier+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_value_set_identifier (); int main () { return libfcache_cache_value_set_identifier (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_value_set_identifier=yes else ac_cv_lib_fcache_libfcache_cache_value_set_identifier=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_set_identifier" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_value_set_identifier" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_value_set_identifier" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_get_value in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_value_get_value in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_value_get_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_value_get_value (); int main () { return libfcache_cache_value_get_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_value_get_value=yes else ac_cv_lib_fcache_libfcache_cache_value_get_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_get_value" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_value_get_value" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_value_get_value" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_set_value in -lfcache" >&5 $as_echo_n "checking for libfcache_cache_value_set_value in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_cache_value_set_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_cache_value_set_value (); int main () { return libfcache_cache_value_set_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_cache_value_set_value=yes else ac_cv_lib_fcache_libfcache_cache_value_set_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_set_value" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_cache_value_set_value" >&6; } if test "x$ac_cv_lib_fcache_libfcache_cache_value_set_value" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_date_time_get_timestamp in -lfcache" >&5 $as_echo_n "checking for libfcache_date_time_get_timestamp in -lfcache... " >&6; } if ${ac_cv_lib_fcache_libfcache_date_time_get_timestamp+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfcache_date_time_get_timestamp (); int main () { return libfcache_date_time_get_timestamp (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fcache_libfcache_date_time_get_timestamp=yes else ac_cv_lib_fcache_libfcache_date_time_get_timestamp=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_date_time_get_timestamp" >&5 $as_echo "$ac_cv_lib_fcache_libfcache_date_time_get_timestamp" >&6; } if test "x$ac_cv_lib_fcache_libfcache_date_time_get_timestamp" = xyes; then : ac_cv_libfcache_dummy=yes else ac_cv_libfcache=no fi ac_cv_libfcache_LIBADD="-lfcache" fi fi if test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect && test "x$ac_cv_libfcache" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libfcache in directory: $ac_cv_with_libfcache See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libfcache" = xyes; then : $as_echo "#define HAVE_LIBFCACHE 1" >>confdefs.h fi if test "x$ac_cv_libfcache" = xyes; then : HAVE_LIBFCACHE=1 else HAVE_LIBFCACHE=0 fi if test "x$ac_cv_libfcache" != xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_struct_tm=time.h else ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi for ac_func in clock_gettime time do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_time" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: time See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libfcache_CPPFLAGS="-I../libfcache"; ac_cv_libfcache_LIBADD="../libfcache/libfcache.la"; ac_cv_libfcache=local $as_echo "#define HAVE_LOCAL_LIBFCACHE 1" >>confdefs.h HAVE_LOCAL_LIBFCACHE=1 fi if test "x$ac_cv_libfcache" = xlocal; then HAVE_LOCAL_LIBFCACHE_TRUE= HAVE_LOCAL_LIBFCACHE_FALSE='#' else HAVE_LOCAL_LIBFCACHE_TRUE='#' HAVE_LOCAL_LIBFCACHE_FALSE= fi if test "x$ac_cv_libfcache_CPPFLAGS" != "x"; then : LIBFCACHE_CPPFLAGS=$ac_cv_libfcache_CPPFLAGS fi if test "x$ac_cv_libfcache_LIBADD" != "x"; then : LIBFCACHE_LIBADD=$ac_cv_libfcache_LIBADD fi if test "x$ac_cv_libfcache" = xyes; then : ax_libfcache_pc_libs_private=-lfcache fi if test "x$ac_cv_libfcache" = xyes; then : ax_libfcache_spec_requires=libfcache ax_libfcache_spec_build_requires=libfcache-devel fi # Check whether --with-libfdata was given. if test "${with_libfdata+set}" = set; then : withval=$with_libfdata; ac_cv_with_libfdata=$withval else ac_cv_with_libfdata=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libfdata+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libfdata=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfdata" >&5 $as_echo "$ac_cv_with_libfdata" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdata" = xno; then : ac_cv_libfdata=no else if test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect; then : if test -d "$ac_cv_with_libfdata"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libfdata}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfdata}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libfdata See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libfdata=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata" >&5 $as_echo_n "checking for libfdata... " >&6; } if test -n "$libfdata_CFLAGS"; then pkg_cv_libfdata_CFLAGS="$libfdata_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdata >= 20181009\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdata >= 20181009") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfdata_CFLAGS=`$PKG_CONFIG --cflags "libfdata >= 20181009" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libfdata_LIBS"; then pkg_cv_libfdata_LIBS="$libfdata_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdata >= 20181009\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdata >= 20181009") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfdata_LIBS=`$PKG_CONFIG --libs "libfdata >= 20181009" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libfdata_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfdata >= 20181009" 2>&1` else libfdata_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfdata >= 20181009" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libfdata_PKG_ERRORS" >&5 ac_cv_libfdata=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libfdata=check else libfdata_CFLAGS=$pkg_cv_libfdata_CFLAGS libfdata_LIBS=$pkg_cv_libfdata_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libfdata=yes fi fi if test "x$ac_cv_libfdata" = xyes; then : ac_cv_libfdata_CPPFLAGS="$pkg_cv_libfdata_CFLAGS" ac_cv_libfdata_LIBADD="$pkg_cv_libfdata_LIBS" fi fi if test "x$ac_cv_libfdata" = xcheck; then : for ac_header in libfdata.h do : ac_fn_c_check_header_mongrel "$LINENO" "libfdata.h" "ac_cv_header_libfdata_h" "$ac_includes_default" if test "x$ac_cv_header_libfdata_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFDATA_H 1 _ACEOF fi done if test "x$ac_cv_header_libfdata_h" = xno; then : ac_cv_libfdata=no else ac_cv_libfdata=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_get_version in -lfdata" >&5 $as_echo_n "checking for libfdata_get_version in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_get_version (); int main () { return libfdata_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_get_version=yes else ac_cv_lib_fdata_libfdata_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_get_version" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_get_version" >&6; } if test "x$ac_cv_lib_fdata_libfdata_get_version" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_initialize in -lfdata" >&5 $as_echo_n "checking for libfdata_area_initialize in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_initialize (); int main () { return libfdata_area_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_initialize=yes else ac_cv_lib_fdata_libfdata_area_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_initialize" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_initialize" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_initialize" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_free in -lfdata" >&5 $as_echo_n "checking for libfdata_area_free in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_free (); int main () { return libfdata_area_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_free=yes else ac_cv_lib_fdata_libfdata_area_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_free" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_free" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_free" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_clone in -lfdata" >&5 $as_echo_n "checking for libfdata_area_clone in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_clone (); int main () { return libfdata_area_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_clone=yes else ac_cv_lib_fdata_libfdata_area_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_clone" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_clone" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_clone" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_empty in -lfdata" >&5 $as_echo_n "checking for libfdata_area_empty in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_empty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_empty (); int main () { return libfdata_area_empty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_empty=yes else ac_cv_lib_fdata_libfdata_area_empty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_empty" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_empty" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_empty" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_resize in -lfdata" >&5 $as_echo_n "checking for libfdata_area_resize in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_resize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_resize (); int main () { return libfdata_area_resize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_resize=yes else ac_cv_lib_fdata_libfdata_area_resize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_resize" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_resize" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_resize" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_number_of_segments in -lfdata" >&5 $as_echo_n "checking for libfdata_area_get_number_of_segments in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_get_number_of_segments+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_get_number_of_segments (); int main () { return libfdata_area_get_number_of_segments (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_get_number_of_segments=yes else ac_cv_lib_fdata_libfdata_area_get_number_of_segments=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_number_of_segments" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_get_number_of_segments" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_get_number_of_segments" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_segment_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_area_get_segment_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_get_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_get_segment_by_index (); int main () { return libfdata_area_get_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_get_segment_by_index=yes else ac_cv_lib_fdata_libfdata_area_get_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_segment_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_get_segment_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_get_segment_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_set_segment_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_area_set_segment_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_set_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_set_segment_by_index (); int main () { return libfdata_area_set_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_set_segment_by_index=yes else ac_cv_lib_fdata_libfdata_area_set_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_set_segment_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_set_segment_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_set_segment_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_prepend_segment in -lfdata" >&5 $as_echo_n "checking for libfdata_area_prepend_segment in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_prepend_segment+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_prepend_segment (); int main () { return libfdata_area_prepend_segment (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_prepend_segment=yes else ac_cv_lib_fdata_libfdata_area_prepend_segment=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_prepend_segment" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_prepend_segment" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_prepend_segment" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_append_segment in -lfdata" >&5 $as_echo_n "checking for libfdata_area_append_segment in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_append_segment+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_append_segment (); int main () { return libfdata_area_append_segment (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_append_segment=yes else ac_cv_lib_fdata_libfdata_area_append_segment=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_append_segment" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_append_segment" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_append_segment" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_element_data_size in -lfdata" >&5 $as_echo_n "checking for libfdata_area_get_element_data_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_get_element_data_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_get_element_data_size (); int main () { return libfdata_area_get_element_data_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_get_element_data_size=yes else ac_cv_lib_fdata_libfdata_area_get_element_data_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_element_data_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_get_element_data_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_get_element_data_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_element_value_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_area_get_element_value_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_get_element_value_at_offset (); int main () { return libfdata_area_get_element_value_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset=yes else ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_set_element_value_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_area_set_element_value_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_set_element_value_at_offset (); int main () { return libfdata_area_set_element_value_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset=yes else ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_size in -lfdata" >&5 $as_echo_n "checking for libfdata_area_get_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_area_get_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_area_get_size (); int main () { return libfdata_area_get_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_area_get_size=yes else ac_cv_lib_fdata_libfdata_area_get_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_area_get_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_area_get_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_initialize in -lfdata" >&5 $as_echo_n "checking for libfdata_list_initialize in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_initialize (); int main () { return libfdata_list_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_initialize=yes else ac_cv_lib_fdata_libfdata_list_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_initialize" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_initialize" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_initialize" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_free in -lfdata" >&5 $as_echo_n "checking for libfdata_list_free in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_free (); int main () { return libfdata_list_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_free=yes else ac_cv_lib_fdata_libfdata_list_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_free" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_free" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_free" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_clone in -lfdata" >&5 $as_echo_n "checking for libfdata_list_clone in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_clone (); int main () { return libfdata_list_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_clone=yes else ac_cv_lib_fdata_libfdata_list_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_clone" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_clone" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_clone" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_empty in -lfdata" >&5 $as_echo_n "checking for libfdata_list_empty in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_empty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_empty (); int main () { return libfdata_list_empty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_empty=yes else ac_cv_lib_fdata_libfdata_list_empty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_empty" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_empty" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_empty" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_resize in -lfdata" >&5 $as_echo_n "checking for libfdata_list_resize in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_resize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_resize (); int main () { return libfdata_list_resize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_resize=yes else ac_cv_lib_fdata_libfdata_list_resize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_resize" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_resize" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_resize" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_reverse in -lfdata" >&5 $as_echo_n "checking for libfdata_list_reverse in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_reverse+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_reverse (); int main () { return libfdata_list_reverse (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_reverse=yes else ac_cv_lib_fdata_libfdata_list_reverse=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_reverse" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_reverse" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_reverse" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_number_of_elements in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_number_of_elements in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_number_of_elements+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_number_of_elements (); int main () { return libfdata_list_get_number_of_elements (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_number_of_elements=yes else ac_cv_lib_fdata_libfdata_list_get_number_of_elements=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_number_of_elements" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_number_of_elements" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_number_of_elements" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_list_element_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_list_element_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_list_element_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_list_element_by_index (); int main () { return libfdata_list_get_list_element_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_list_element_by_index=yes else ac_cv_lib_fdata_libfdata_list_get_list_element_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_element_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_element_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_element_by_index (); int main () { return libfdata_list_get_element_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_element_by_index=yes else ac_cv_lib_fdata_libfdata_list_get_element_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_element_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_list_set_element_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_set_element_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_set_element_by_index (); int main () { return libfdata_list_set_element_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_set_element_by_index=yes else ac_cv_lib_fdata_libfdata_list_set_element_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_set_element_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_prepend_element in -lfdata" >&5 $as_echo_n "checking for libfdata_list_prepend_element in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_prepend_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_prepend_element (); int main () { return libfdata_list_prepend_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_prepend_element=yes else ac_cv_lib_fdata_libfdata_list_prepend_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_prepend_element" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_prepend_element" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_prepend_element" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_element in -lfdata" >&5 $as_echo_n "checking for libfdata_list_append_element in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_append_element+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_append_element (); int main () { return libfdata_list_append_element (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_append_element=yes else ac_cv_lib_fdata_libfdata_list_append_element=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_append_element" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_append_element" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_append_element" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_list in -lfdata" >&5 $as_echo_n "checking for libfdata_list_append_list in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_append_list+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_append_list (); int main () { return libfdata_list_append_list (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_append_list=yes else ac_cv_lib_fdata_libfdata_list_append_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_append_list" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_append_list" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_append_list" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_is_element_set in -lfdata" >&5 $as_echo_n "checking for libfdata_list_is_element_set in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_is_element_set+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_is_element_set (); int main () { return libfdata_list_is_element_set (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_is_element_set=yes else ac_cv_lib_fdata_libfdata_list_is_element_set=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_is_element_set" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_is_element_set" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_is_element_set" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_mapped_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_mapped_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_mapped_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_mapped_offset (); int main () { return libfdata_list_get_mapped_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_mapped_offset=yes else ac_cv_lib_fdata_libfdata_list_get_mapped_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_mapped_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_mapped_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_mapped_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_mapped_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_list_set_mapped_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_set_mapped_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_set_mapped_offset (); int main () { return libfdata_list_set_mapped_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_set_mapped_offset=yes else ac_cv_lib_fdata_libfdata_list_set_mapped_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_mapped_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_set_mapped_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_set_mapped_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_mapped_size_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_mapped_size_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_mapped_size_by_index (); int main () { return libfdata_list_get_mapped_size_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index=yes else ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_mapped_size_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_list_set_mapped_size_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_set_mapped_size_by_index (); int main () { return libfdata_list_set_mapped_size_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index=yes else ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_by_index_with_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_element_by_index_with_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_element_by_index_with_mapped_size (); int main () { return libfdata_list_get_element_by_index_with_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size=yes else ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_by_index_with_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_set_element_by_index_with_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_set_element_by_index_with_mapped_size (); int main () { return libfdata_list_set_element_by_index_with_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size=yes else ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_element_with_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_append_element_with_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_append_element_with_mapped_size (); int main () { return libfdata_list_append_element_with_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size=yes else ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_index_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_element_index_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_element_index_at_offset (); int main () { return libfdata_list_get_element_index_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset=yes else ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_list_element_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_list_element_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_list_element_at_offset (); int main () { return libfdata_list_get_list_element_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset=yes else ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_element_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_element_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_element_at_offset (); int main () { return libfdata_list_get_element_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_element_at_offset=yes else ac_cv_lib_fdata_libfdata_list_get_element_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_element_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_cache_element_value in -lfdata" >&5 $as_echo_n "checking for libfdata_list_cache_element_value in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_cache_element_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_cache_element_value (); int main () { return libfdata_list_cache_element_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_cache_element_value=yes else ac_cv_lib_fdata_libfdata_list_cache_element_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_cache_element_value" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_cache_element_value" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_cache_element_value" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_value_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_element_value_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_element_value_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_element_value_by_index (); int main () { return libfdata_list_get_element_value_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_element_value_by_index=yes else ac_cv_lib_fdata_libfdata_list_get_element_value_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_value_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_element_value_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_element_value_at_offset (); int main () { return libfdata_list_get_element_value_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset=yes else ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_value_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_list_set_element_value_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_set_element_value_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_set_element_value_by_index (); int main () { return libfdata_list_set_element_value_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_set_element_value_by_index=yes else ac_cv_lib_fdata_libfdata_list_set_element_value_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_value_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_list_set_element_value_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_set_element_value_at_offset (); int main () { return libfdata_list_set_element_value_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset=yes else ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_get_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_get_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_get_size (); int main () { return libfdata_list_get_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_get_size=yes else ac_cv_lib_fdata_libfdata_list_get_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_get_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_get_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_get_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_get_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_get_mapped_size (); int main () { return libfdata_list_element_get_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=yes else ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_set_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_set_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_set_mapped_size (); int main () { return libfdata_list_element_set_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=yes else ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_element_value in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_get_element_value in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_get_element_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_get_element_value (); int main () { return libfdata_list_element_get_element_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_get_element_value=yes else ac_cv_lib_fdata_libfdata_list_element_get_element_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_get_element_value" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_element_value in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_set_element_value in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_set_element_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_set_element_value (); int main () { return libfdata_list_element_set_element_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_set_element_value=yes else ac_cv_lib_fdata_libfdata_list_element_set_element_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_set_element_value" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_get_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_get_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_get_mapped_size (); int main () { return libfdata_list_element_get_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=yes else ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_set_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_set_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_set_mapped_size (); int main () { return libfdata_list_element_set_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=yes else ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_element_value in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_get_element_value in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_get_element_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_get_element_value (); int main () { return libfdata_list_element_get_element_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_get_element_value=yes else ac_cv_lib_fdata_libfdata_list_element_get_element_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_get_element_value" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_element_value in -lfdata" >&5 $as_echo_n "checking for libfdata_list_element_set_element_value in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_list_element_set_element_value+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_list_element_set_element_value (); int main () { return libfdata_list_element_set_element_value (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_list_element_set_element_value=yes else ac_cv_lib_fdata_libfdata_list_element_set_element_value=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&6; } if test "x$ac_cv_lib_fdata_libfdata_list_element_set_element_value" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_initialize in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_initialize in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_initialize (); int main () { return libfdata_stream_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_initialize=yes else ac_cv_lib_fdata_libfdata_stream_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_initialize" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_initialize" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_initialize" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_free in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_free in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_free (); int main () { return libfdata_stream_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_free=yes else ac_cv_lib_fdata_libfdata_stream_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_free" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_free" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_free" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_clone in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_clone in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_clone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_clone (); int main () { return libfdata_stream_clone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_clone=yes else ac_cv_lib_fdata_libfdata_stream_clone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_clone" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_clone" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_clone" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_empty in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_empty in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_empty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_empty (); int main () { return libfdata_stream_empty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_empty=yes else ac_cv_lib_fdata_libfdata_stream_empty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_empty" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_empty" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_empty" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_resize in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_resize in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_resize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_resize (); int main () { return libfdata_stream_resize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_resize=yes else ac_cv_lib_fdata_libfdata_stream_resize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_resize" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_resize" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_resize" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_reverse in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_reverse in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_reverse+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_reverse (); int main () { return libfdata_stream_reverse (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_reverse=yes else ac_cv_lib_fdata_libfdata_stream_reverse=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_reverse" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_reverse" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_reverse" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_number_of_segments in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_get_number_of_segments in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_get_number_of_segments+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_get_number_of_segments (); int main () { return libfdata_stream_get_number_of_segments (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_get_number_of_segments=yes else ac_cv_lib_fdata_libfdata_stream_get_number_of_segments=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_get_segment_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_get_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_get_segment_by_index (); int main () { return libfdata_stream_get_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_get_segment_by_index=yes else ac_cv_lib_fdata_libfdata_stream_get_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_set_segment_by_index in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_set_segment_by_index in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_set_segment_by_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_set_segment_by_index (); int main () { return libfdata_stream_set_segment_by_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_set_segment_by_index=yes else ac_cv_lib_fdata_libfdata_stream_set_segment_by_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_prepend_segment in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_prepend_segment in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_prepend_segment+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_prepend_segment (); int main () { return libfdata_stream_prepend_segment (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_prepend_segment=yes else ac_cv_lib_fdata_libfdata_stream_prepend_segment=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_prepend_segment" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_prepend_segment" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_prepend_segment" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_append_segment in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_append_segment in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_append_segment+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_append_segment (); int main () { return libfdata_stream_append_segment (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_append_segment=yes else ac_cv_lib_fdata_libfdata_stream_append_segment=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_append_segment" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_append_segment" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_append_segment" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_set_mapped_size in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_set_mapped_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_set_mapped_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_set_mapped_size (); int main () { return libfdata_stream_set_mapped_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_set_mapped_size=yes else ac_cv_lib_fdata_libfdata_stream_set_mapped_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_set_mapped_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_set_mapped_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_set_mapped_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_mapped_range in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_get_segment_mapped_range in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_get_segment_mapped_range (); int main () { return libfdata_stream_get_segment_mapped_range (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range=yes else ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_index_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_get_segment_index_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_get_segment_index_at_offset (); int main () { return libfdata_stream_get_segment_index_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset=yes else ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_get_segment_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_get_segment_at_offset (); int main () { return libfdata_stream_get_segment_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset=yes else ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_read_buffer in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_read_buffer in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_read_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_read_buffer (); int main () { return libfdata_stream_read_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_read_buffer=yes else ac_cv_lib_fdata_libfdata_stream_read_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_read_buffer" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_read_buffer" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_read_buffer" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_read_buffer_at_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_read_buffer_at_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_read_buffer_at_offset (); int main () { return libfdata_stream_read_buffer_at_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset=yes else ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_write_buffer in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_write_buffer in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_write_buffer+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_write_buffer (); int main () { return libfdata_stream_write_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_write_buffer=yes else ac_cv_lib_fdata_libfdata_stream_write_buffer=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_write_buffer" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_write_buffer" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_write_buffer" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_seek_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_seek_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_seek_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_seek_offset (); int main () { return libfdata_stream_seek_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_seek_offset=yes else ac_cv_lib_fdata_libfdata_stream_seek_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_seek_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_seek_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_seek_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_offset in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_get_offset in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_get_offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_get_offset (); int main () { return libfdata_stream_get_offset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_get_offset=yes else ac_cv_lib_fdata_libfdata_stream_get_offset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_offset" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_get_offset" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_get_offset" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_size in -lfdata" >&5 $as_echo_n "checking for libfdata_stream_get_size in -lfdata... " >&6; } if ${ac_cv_lib_fdata_libfdata_stream_get_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdata_stream_get_size (); int main () { return libfdata_stream_get_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdata_libfdata_stream_get_size=yes else ac_cv_lib_fdata_libfdata_stream_get_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_size" >&5 $as_echo "$ac_cv_lib_fdata_libfdata_stream_get_size" >&6; } if test "x$ac_cv_lib_fdata_libfdata_stream_get_size" = xyes; then : ac_cv_libfdata_dummy=yes else ac_cv_libfdata=no fi ac_cv_libfdata_LIBADD="-lfdata" fi fi if test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect && test "x$ac_cv_libfdata" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libfdata in directory: $ac_cv_with_libfdata See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libfdata" = xyes; then : $as_echo "#define HAVE_LIBFDATA 1" >>confdefs.h fi if test "x$ac_cv_libfdata" = xyes; then : HAVE_LIBFDATA=1 else HAVE_LIBFDATA=0 fi if test "x$ac_cv_libfdata" != xyes; then : ac_cv_libfdata_CPPFLAGS="-I../libfdata"; ac_cv_libfdata_LIBADD="../libfdata/libfdata.la"; ac_cv_libfdata=local $as_echo "#define HAVE_LOCAL_LIBFDATA 1" >>confdefs.h HAVE_LOCAL_LIBFDATA=1 fi if test "x$ac_cv_libfdata" = xlocal; then HAVE_LOCAL_LIBFDATA_TRUE= HAVE_LOCAL_LIBFDATA_FALSE='#' else HAVE_LOCAL_LIBFDATA_TRUE='#' HAVE_LOCAL_LIBFDATA_FALSE= fi if test "x$ac_cv_libfdata_CPPFLAGS" != "x"; then : LIBFDATA_CPPFLAGS=$ac_cv_libfdata_CPPFLAGS fi if test "x$ac_cv_libfdata_LIBADD" != "x"; then : LIBFDATA_LIBADD=$ac_cv_libfdata_LIBADD fi if test "x$ac_cv_libfdata" = xyes; then : ax_libfdata_pc_libs_private=-lfdata fi if test "x$ac_cv_libfdata" = xyes; then : ax_libfdata_spec_requires=libfdata ax_libfdata_spec_build_requires=libfdata-devel fi # Check whether --with-libfdatetime was given. if test "${with_libfdatetime+set}" = set; then : withval=$with_libfdatetime; ac_cv_with_libfdatetime=$withval else ac_cv_with_libfdatetime=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libfdatetime+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libfdatetime=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfdatetime" >&5 $as_echo "$ac_cv_with_libfdatetime" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdatetime" = xno; then : ac_cv_libfdatetime=no else if test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect; then : if test -d "$ac_cv_with_libfdatetime"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libfdatetime}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfdatetime}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libfdatetime See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libfdatetime=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime" >&5 $as_echo_n "checking for libfdatetime... " >&6; } if test -n "$libfdatetime_CFLAGS"; then pkg_cv_libfdatetime_CFLAGS="$libfdatetime_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdatetime >= 20180910\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdatetime >= 20180910") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfdatetime_CFLAGS=`$PKG_CONFIG --cflags "libfdatetime >= 20180910" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libfdatetime_LIBS"; then pkg_cv_libfdatetime_LIBS="$libfdatetime_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdatetime >= 20180910\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdatetime >= 20180910") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfdatetime_LIBS=`$PKG_CONFIG --libs "libfdatetime >= 20180910" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libfdatetime_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfdatetime >= 20180910" 2>&1` else libfdatetime_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfdatetime >= 20180910" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libfdatetime_PKG_ERRORS" >&5 ac_cv_libfdatetime=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libfdatetime=check else libfdatetime_CFLAGS=$pkg_cv_libfdatetime_CFLAGS libfdatetime_LIBS=$pkg_cv_libfdatetime_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libfdatetime=yes fi fi if test "x$ac_cv_libfdatetime" = xyes; then : ac_cv_libfdatetime_CPPFLAGS="$pkg_cv_libfdatetime_CFLAGS" ac_cv_libfdatetime_LIBADD="$pkg_cv_libfdatetime_LIBS" fi fi if test "x$ac_cv_libfdatetime" = xcheck; then : for ac_header in libfdatetime.h do : ac_fn_c_check_header_mongrel "$LINENO" "libfdatetime.h" "ac_cv_header_libfdatetime_h" "$ac_includes_default" if test "x$ac_cv_header_libfdatetime_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFDATETIME_H 1 _ACEOF fi done if test "x$ac_cv_header_libfdatetime_h" = xno; then : ac_cv_libfdatetime=no else ac_cv_libfdatetime=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_get_version in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_get_version in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_get_version (); int main () { return libfdatetime_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_get_version=yes else ac_cv_lib_fdatetime_libfdatetime_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_get_version" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_get_version" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_get_version" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_initialize in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_initialize in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_initialize (); int main () { return libfdatetime_fat_date_time_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_free in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_free in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_free (); int main () { return libfdatetime_fat_date_time_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_from_byte_stream in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_from_byte_stream in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_from_byte_stream (); int main () { return libfdatetime_fat_date_time_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_from_32bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_from_32bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_from_32bit (); int main () { return libfdatetime_fat_date_time_copy_from_32bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_32bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_to_32bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_to_32bit (); int main () { return libfdatetime_fat_date_time_copy_to_32bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf8_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf8_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_to_utf8_string (); int main () { return libfdatetime_fat_date_time_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_to_utf8_string_with_index (); int main () { return libfdatetime_fat_date_time_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf16_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf16_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_to_utf16_string (); int main () { return libfdatetime_fat_date_time_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_to_utf16_string_with_index (); int main () { return libfdatetime_fat_date_time_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf32_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf32_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_to_utf32_string (); int main () { return libfdatetime_fat_date_time_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_fat_date_time_copy_to_utf32_string_with_index (); int main () { return libfdatetime_fat_date_time_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_initialize in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_initialize in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_initialize (); int main () { return libfdatetime_filetime_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_initialize=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_free in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_free in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_free (); int main () { return libfdatetime_filetime_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_free=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_free" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_free" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_free" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_from_byte_stream in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_from_byte_stream in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_from_byte_stream (); int main () { return libfdatetime_filetime_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_from_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_from_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_from_64bit (); int main () { return libfdatetime_filetime_copy_from_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_to_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_to_64bit (); int main () { return libfdatetime_filetime_copy_to_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf8_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_to_utf8_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_to_utf8_string (); int main () { return libfdatetime_filetime_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf8_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_to_utf8_string_with_index (); int main () { return libfdatetime_filetime_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf16_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_to_utf16_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_to_utf16_string (); int main () { return libfdatetime_filetime_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf16_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_to_utf16_string_with_index (); int main () { return libfdatetime_filetime_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf32_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_to_utf32_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_to_utf32_string (); int main () { return libfdatetime_filetime_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf32_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_copy_to_utf32_string_with_index (); int main () { return libfdatetime_filetime_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_add in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_filetime_add in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_filetime_add+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_filetime_add (); int main () { return libfdatetime_filetime_add (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_filetime_add=yes else ac_cv_lib_fdatetime_libfdatetime_filetime_add=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_add" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_add" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_add" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_initialize in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_initialize in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_initialize (); int main () { return libfdatetime_floatingtime_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_free in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_free in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_free (); int main () { return libfdatetime_floatingtime_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_free=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_from_byte_stream in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_from_byte_stream in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_from_byte_stream (); int main () { return libfdatetime_floatingtime_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_from_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_from_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_from_64bit (); int main () { return libfdatetime_floatingtime_copy_from_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_to_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_to_64bit (); int main () { return libfdatetime_floatingtime_copy_to_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf8_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf8_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_to_utf8_string (); int main () { return libfdatetime_floatingtime_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf8_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_to_utf8_string_with_index (); int main () { return libfdatetime_floatingtime_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf16_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf16_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_to_utf16_string (); int main () { return libfdatetime_floatingtime_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf16_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_to_utf16_string_with_index (); int main () { return libfdatetime_floatingtime_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf32_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf32_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_to_utf32_string (); int main () { return libfdatetime_floatingtime_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf32_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_floatingtime_copy_to_utf32_string_with_index (); int main () { return libfdatetime_floatingtime_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_initialize in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_initialize in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_initialize (); int main () { return libfdatetime_hfs_time_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_free in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_free in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_free (); int main () { return libfdatetime_hfs_time_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_free=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_from_byte_stream in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_from_byte_stream in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_from_byte_stream (); int main () { return libfdatetime_hfs_time_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_from_32bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_from_32bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_from_32bit (); int main () { return libfdatetime_hfs_time_copy_from_32bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_32bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_to_32bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_to_32bit (); int main () { return libfdatetime_hfs_time_copy_to_32bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf8_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf8_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_to_utf8_string (); int main () { return libfdatetime_hfs_time_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_to_utf8_string_with_index (); int main () { return libfdatetime_hfs_time_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf16_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf16_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_to_utf16_string (); int main () { return libfdatetime_hfs_time_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_to_utf16_string_with_index (); int main () { return libfdatetime_hfs_time_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf32_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf32_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_to_utf32_string (); int main () { return libfdatetime_hfs_time_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_hfs_time_copy_to_utf32_string_with_index (); int main () { return libfdatetime_hfs_time_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_initialize in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_initialize in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_initialize (); int main () { return libfdatetime_nsf_timedate_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_free in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_free in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_free (); int main () { return libfdatetime_nsf_timedate_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_from_byte_stream in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_from_byte_stream in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_from_byte_stream (); int main () { return libfdatetime_nsf_timedate_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_from_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_from_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_from_64bit (); int main () { return libfdatetime_nsf_timedate_copy_from_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_to_64bit (); int main () { return libfdatetime_nsf_timedate_copy_to_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf8_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf8_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_to_utf8_string (); int main () { return libfdatetime_nsf_timedate_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf8_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_to_utf8_string_with_index (); int main () { return libfdatetime_nsf_timedate_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf16_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf16_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_to_utf16_string (); int main () { return libfdatetime_nsf_timedate_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf16_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_to_utf16_string_with_index (); int main () { return libfdatetime_nsf_timedate_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf32_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf32_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_to_utf32_string (); int main () { return libfdatetime_nsf_timedate_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf32_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_nsf_timedate_copy_to_utf32_string_with_index (); int main () { return libfdatetime_nsf_timedate_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_initialize in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_initialize in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_initialize (); int main () { return libfdatetime_posix_time_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_free in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_free in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_free (); int main () { return libfdatetime_posix_time_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_free=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_free" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_free" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_free" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_byte_stream in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_from_byte_stream in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_from_byte_stream (); int main () { return libfdatetime_posix_time_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_32bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_from_32bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_from_32bit (); int main () { return libfdatetime_posix_time_copy_from_32bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_32bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_32bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_32bit (); int main () { return libfdatetime_posix_time_copy_to_32bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_from_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_from_64bit (); int main () { return libfdatetime_posix_time_copy_from_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_64bit in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_64bit in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_64bit (); int main () { return libfdatetime_posix_time_copy_to_64bit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf8_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_utf8_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_utf8_string (); int main () { return libfdatetime_posix_time_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_utf8_string_with_index (); int main () { return libfdatetime_posix_time_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf16_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_utf16_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_utf16_string (); int main () { return libfdatetime_posix_time_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_utf16_string_with_index (); int main () { return libfdatetime_posix_time_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf32_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_utf32_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_utf32_string (); int main () { return libfdatetime_posix_time_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_posix_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_posix_time_copy_to_utf32_string_with_index (); int main () { return libfdatetime_posix_time_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_initialize in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_initialize in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_initialize (); int main () { return libfdatetime_systemetime_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_free in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_free in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_free (); int main () { return libfdatetime_systemetime_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_free=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_free" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_free" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_free" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_from_byte_stream in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_copy_from_byte_stream in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_copy_from_byte_stream (); int main () { return libfdatetime_systemetime_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf8_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_copy_to_utf8_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_copy_to_utf8_string (); int main () { return libfdatetime_systemetime_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf8_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_copy_to_utf8_string_with_index (); int main () { return libfdatetime_systemetime_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf16_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_copy_to_utf16_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_copy_to_utf16_string (); int main () { return libfdatetime_systemetime_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf16_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_copy_to_utf16_string_with_index (); int main () { return libfdatetime_systemetime_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf32_string in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_copy_to_utf32_string in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_copy_to_utf32_string (); int main () { return libfdatetime_systemetime_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf32_string_with_index in -lfdatetime" >&5 $as_echo_n "checking for libfdatetime_systemetime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfdatetime_systemetime_copy_to_utf32_string_with_index (); int main () { return libfdatetime_systemetime_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index=yes else ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfdatetime_dummy=yes else ac_cv_libfdatetime=no fi ac_cv_libfdatetime_LIBADD="-lfdatetime" fi fi if test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect && test "x$ac_cv_libfdatetime" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libfdatetime in directory: $ac_cv_with_libfdatetime See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libfdatetime" = xyes; then : $as_echo "#define HAVE_LIBFDATETIME 1" >>confdefs.h fi if test "x$ac_cv_libfdatetime" = xyes; then : HAVE_LIBFDATETIME=1 else HAVE_LIBFDATETIME=0 fi if test "x$ac_cv_libfdatetime" != xyes; then : ac_cv_libfdatetime_CPPFLAGS="-I../libfdatetime"; ac_cv_libfdatetime_LIBADD="../libfdatetime/libfdatetime.la"; ac_cv_libfdatetime=local $as_echo "#define HAVE_LOCAL_LIBFDATETIME 1" >>confdefs.h HAVE_LOCAL_LIBFDATETIME=1 fi if test "x$ac_cv_libfdatetime" = xlocal; then HAVE_LOCAL_LIBFDATETIME_TRUE= HAVE_LOCAL_LIBFDATETIME_FALSE='#' else HAVE_LOCAL_LIBFDATETIME_TRUE='#' HAVE_LOCAL_LIBFDATETIME_FALSE= fi if test "x$ac_cv_libfdatetime_CPPFLAGS" != "x"; then : LIBFDATETIME_CPPFLAGS=$ac_cv_libfdatetime_CPPFLAGS fi if test "x$ac_cv_libfdatetime_LIBADD" != "x"; then : LIBFDATETIME_LIBADD=$ac_cv_libfdatetime_LIBADD fi if test "x$ac_cv_libfdatetime" = xyes; then : ax_libfdatetime_pc_libs_private=-lfdatetime fi if test "x$ac_cv_libfdatetime" = xyes; then : ax_libfdatetime_spec_requires=libfdatetime ax_libfdatetime_spec_build_requires=libfdatetime-devel fi # Check whether --with-libfguid was given. if test "${with_libfguid+set}" = set; then : withval=$with_libfguid; ac_cv_with_libfguid=$withval else ac_cv_with_libfguid=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libfguid+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libfguid=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfguid" >&5 $as_echo "$ac_cv_with_libfguid" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfguid" = xno; then : ac_cv_libfguid=no else if test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect; then : if test -d "$ac_cv_with_libfguid"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libfguid}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfguid}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libfguid See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libfguid=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid" >&5 $as_echo_n "checking for libfguid... " >&6; } if test -n "$libfguid_CFLAGS"; then pkg_cv_libfguid_CFLAGS="$libfguid_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfguid >= 20120426\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfguid >= 20120426") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfguid_CFLAGS=`$PKG_CONFIG --cflags "libfguid >= 20120426" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libfguid_LIBS"; then pkg_cv_libfguid_LIBS="$libfguid_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfguid >= 20120426\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfguid >= 20120426") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libfguid_LIBS=`$PKG_CONFIG --libs "libfguid >= 20120426" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libfguid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfguid >= 20120426" 2>&1` else libfguid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfguid >= 20120426" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libfguid_PKG_ERRORS" >&5 ac_cv_libfguid=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libfguid=check else libfguid_CFLAGS=$pkg_cv_libfguid_CFLAGS libfguid_LIBS=$pkg_cv_libfguid_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libfguid=yes fi fi if test "x$ac_cv_libfguid" = xyes; then : ac_cv_libfguid_CPPFLAGS="$pkg_cv_libfguid_CFLAGS" ac_cv_libfguid_LIBADD="$pkg_cv_libfguid_LIBS" fi fi if test "x$ac_cv_libfguid" = xcheck; then : for ac_header in libfguid.h do : ac_fn_c_check_header_mongrel "$LINENO" "libfguid.h" "ac_cv_header_libfguid_h" "$ac_includes_default" if test "x$ac_cv_header_libfguid_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFGUID_H 1 _ACEOF fi done if test "x$ac_cv_header_libfguid_h" = xno; then : ac_cv_libfguid=no else ac_cv_libfguid=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_get_version in -lfguid" >&5 $as_echo_n "checking for libfguid_get_version in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_get_version (); int main () { return libfguid_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_get_version=yes else ac_cv_lib_fguid_libfguid_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_get_version" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_get_version" >&6; } if test "x$ac_cv_lib_fguid_libfguid_get_version" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_initialize in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_initialize in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_initialize (); int main () { return libfguid_identifier_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_initialize=yes else ac_cv_lib_fguid_libfguid_identifier_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_initialize" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_initialize" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_initialize" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_free in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_free in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_free (); int main () { return libfguid_identifier_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_free=yes else ac_cv_lib_fguid_libfguid_identifier_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_free" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_free" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_free" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_from_byte_stream in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_copy_from_byte_stream in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_copy_from_byte_stream (); int main () { return libfguid_identifier_copy_from_byte_stream (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream=yes else ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_get_string_size in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_get_string_size in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_get_string_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_get_string_size (); int main () { return libfguid_identifier_get_string_size (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_get_string_size=yes else ac_cv_lib_fguid_libfguid_identifier_get_string_size=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_get_string_size" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_get_string_size" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_get_string_size" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf8_string in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_copy_to_utf8_string in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_copy_to_utf8_string (); int main () { return libfguid_identifier_copy_to_utf8_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string=yes else ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf8_string_with_index in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_copy_to_utf8_string_with_index in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_copy_to_utf8_string_with_index (); int main () { return libfguid_identifier_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index=yes else ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf16_string in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_copy_to_utf16_string in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_copy_to_utf16_string (); int main () { return libfguid_identifier_copy_to_utf16_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string=yes else ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf16_string_with_index in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_copy_to_utf16_string_with_index in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_copy_to_utf16_string_with_index (); int main () { return libfguid_identifier_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index=yes else ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf32_string in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_copy_to_utf32_string in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_copy_to_utf32_string (); int main () { return libfguid_identifier_copy_to_utf32_string (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string=yes else ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf32_string_with_index in -lfguid" >&5 $as_echo_n "checking for libfguid_identifier_copy_to_utf32_string_with_index in -lfguid... " >&6; } if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libfguid_identifier_copy_to_utf32_string_with_index (); int main () { return libfguid_identifier_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index=yes else ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" >&5 $as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" >&6; } if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" = xyes; then : ac_cv_libfguid_dummy=yes else ac_cv_libfguid=no fi ac_cv_libfguid_LIBADD="-lfguid" fi fi if test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect && test "x$ac_cv_libfguid" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libfguid in directory: $ac_cv_with_libfguid See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libfguid" = xyes; then : $as_echo "#define HAVE_LIBFGUID 1" >>confdefs.h fi if test "x$ac_cv_libfguid" = xyes; then : HAVE_LIBFGUID=1 else HAVE_LIBFGUID=0 fi if test "x$ac_cv_libfguid" != xyes; then : ac_cv_libfguid_CPPFLAGS="-I../libfguid"; ac_cv_libfguid_LIBADD="../libfguid/libfguid.la"; ac_cv_libfguid=local $as_echo "#define HAVE_LOCAL_LIBFGUID 1" >>confdefs.h HAVE_LOCAL_LIBFGUID=1 fi if test "x$ac_cv_libfguid" = xlocal; then HAVE_LOCAL_LIBFGUID_TRUE= HAVE_LOCAL_LIBFGUID_FALSE='#' else HAVE_LOCAL_LIBFGUID_TRUE='#' HAVE_LOCAL_LIBFGUID_FALSE= fi if test "x$ac_cv_libfguid_CPPFLAGS" != "x"; then : LIBFGUID_CPPFLAGS=$ac_cv_libfguid_CPPFLAGS fi if test "x$ac_cv_libfguid_LIBADD" != "x"; then : LIBFGUID_LIBADD=$ac_cv_libfguid_LIBADD fi if test "x$ac_cv_libfguid" = xyes; then : ax_libfguid_pc_libs_private=-lfguid fi if test "x$ac_cv_libfguid" = xyes; then : ax_libfguid_spec_requires=libfguid ax_libfguid_spec_build_requires=libfguid-devel fi # Check whether --with-zlib was given. if test "${with_zlib+set}" = set; then : withval=$with_zlib; ac_cv_with_zlib=$withval else ac_cv_with_zlib=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for zlib in includedir and libdir or in the specified DIR, or no if not to use zlib" >&5 $as_echo_n "checking whether to use search for zlib in includedir and libdir or in the specified DIR, or no if not to use zlib... " >&6; } if ${ac_cv_with_zlib+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_zlib=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_zlib" >&5 $as_echo "$ac_cv_with_zlib" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_zlib" = xno; then : ac_cv_zlib=no else if test "x$ac_cv_with_zlib" != x && test "x$ac_cv_with_zlib" != xauto-detect; then : if test -d "$ac_cv_with_zlib"; then : CFLAGS="$CFLAGS -I${ac_cv_with_zlib}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_zlib}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_zlib See \`config.log' for more details" "$LINENO" 5; } fi else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 $as_echo_n "checking for zlib... " >&6; } if test -n "$zlib_CFLAGS"; then pkg_cv_zlib_CFLAGS="$zlib_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.5" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$zlib_LIBS"; then pkg_cv_zlib_LIBS="$zlib_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.5" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.5" 2>&1` else zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.5" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$zlib_PKG_ERRORS" >&5 ac_cv_zlib=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_zlib=no else zlib_CFLAGS=$pkg_cv_zlib_CFLAGS zlib_LIBS=$pkg_cv_zlib_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_zlib=zlib fi fi if test "x$ac_cv_zlib" = xzlib; then : ac_cv_zlib_CPPFLAGS="$pkg_cv_zlib_CFLAGS" ac_cv_zlib_LIBADD="$pkg_cv_zlib_LIBS" fi fi if test "x$ac_cv_zlib" = xno; then : for ac_header in zlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" if test "x$ac_cv_header_zlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ZLIB_H 1 _ACEOF fi done if test "x$ac_cv_header_zlib_h" = xno; then : ac_cv_zlib=no else ac_cv_zlib=zlib { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 $as_echo_n "checking for zlibVersion in -lz... " >&6; } if ${ac_cv_lib_z_zlibVersion+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char zlibVersion (); int main () { return zlibVersion (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_zlibVersion=yes else ac_cv_lib_z_zlibVersion=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF LIBS="-lz $LIBS" else ac_cv_zlib=no fi if test "x$ac_cv_lib_z_zlibVersion" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: zlibVersion in library: zlib. See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_zlib_LIBADD="-lz"; fi fi fi if test "x$ac_cv_zlib" = xzlib; then : $as_echo "#define HAVE_ZLIB 1" >>confdefs.h fi if test "x$ac_cv_zlib" != xno; then : HAVE_ZLIB=1 else HAVE_ZLIB=0 fi if test "x$ac_cv_zlib_CPPFLAGS" != "x"; then : ZLIB_CPPFLAGS=$ac_cv_zlib_CPPFLAGS fi if test "x$ac_cv_zlib_LIBADD" != "x"; then : ZLIB_LIBADD=$ac_cv_zlib_LIBADD fi if test "x$ac_cv_zlib" = xzlib; then : ax_zlib_pc_libs_private=-lz fi if test "x$ac_cv_zlib" = xzlib; then : ax_zlib_spec_requires=zlib ax_zlib_spec_build_requires=zlib-devel ax_zlib_static_spec_requires=zlib-static ax_zlib_static_spec_build_requires=zlib-static fi if test "x$ac_cv_zlib" != xzlib; then : ac_cv_uncompress=local else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 $as_echo_n "checking for uncompress in -lz... " >&6; } if ${ac_cv_lib_z_uncompress+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char uncompress (); int main () { return uncompress (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_uncompress=yes else ac_cv_lib_z_uncompress=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 $as_echo "$ac_cv_lib_z_uncompress" >&6; } if test "x$ac_cv_lib_z_uncompress" = xyes; then : ac_cv_uncompress=zlib else ac_cv_uncompress=local fi if test "x$ac_cv_uncompress" = xzlib; then : $as_echo "#define HAVE_ZLIB_UNCOMPRESS 1" >>confdefs.h fi fi # Check whether --with-libhmac was given. if test "${with_libhmac+set}" = set; then : withval=$with_libhmac; ac_cv_with_libhmac=$withval else ac_cv_with_libhmac=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libhmac in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libhmac in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libhmac+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libhmac=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libhmac" >&5 $as_echo "$ac_cv_with_libhmac" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libhmac" = xno; then : ac_cv_libhmac=no else if test "x$ac_cv_with_libhmac" != x && test "x$ac_cv_with_libhmac" != xauto-detect; then : if test -d "$ac_cv_with_libhmac"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libhmac}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libhmac}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libhmac See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libhmac=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac" >&5 $as_echo_n "checking for libhmac... " >&6; } if test -n "$libhmac_CFLAGS"; then pkg_cv_libhmac_CFLAGS="$libhmac_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhmac >= 20160802\""; } >&5 ($PKG_CONFIG --exists --print-errors "libhmac >= 20160802") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libhmac_CFLAGS=`$PKG_CONFIG --cflags "libhmac >= 20160802" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libhmac_LIBS"; then pkg_cv_libhmac_LIBS="$libhmac_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhmac >= 20160802\""; } >&5 ($PKG_CONFIG --exists --print-errors "libhmac >= 20160802") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libhmac_LIBS=`$PKG_CONFIG --libs "libhmac >= 20160802" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libhmac_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libhmac >= 20160802" 2>&1` else libhmac_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libhmac >= 20160802" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libhmac_PKG_ERRORS" >&5 ac_cv_libhmac=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libhmac=check else libhmac_CFLAGS=$pkg_cv_libhmac_CFLAGS libhmac_LIBS=$pkg_cv_libhmac_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libhmac=yes fi fi if test "x$ac_cv_libhmac" = xyes; then : ac_cv_libhmac_CPPFLAGS="$pkg_cv_libhmac_CFLAGS" ac_cv_libhmac_LIBADD="$pkg_cv_libhmac_LIBS" fi fi if test "x$ac_cv_libhmac" = xcheck; then : for ac_header in libhmac.h do : ac_fn_c_check_header_mongrel "$LINENO" "libhmac.h" "ac_cv_header_libhmac_h" "$ac_includes_default" if test "x$ac_cv_header_libhmac_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBHMAC_H 1 _ACEOF fi done if test "x$ac_cv_header_libhmac_h" = xno; then : ac_cv_libhmac=no else ac_cv_libhmac=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_get_version in -lhmac" >&5 $as_echo_n "checking for libhmac_get_version in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_get_version (); int main () { return libhmac_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_get_version=yes else ac_cv_lib_hmac_libhmac_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_get_version" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_get_version" >&6; } if test "x$ac_cv_lib_hmac_libhmac_get_version" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_md5_initialize in -lhmac" >&5 $as_echo_n "checking for libhmac_md5_initialize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_md5_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_md5_initialize (); int main () { return libhmac_md5_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_md5_initialize=yes else ac_cv_lib_hmac_libhmac_md5_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_md5_initialize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_md5_initialize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_md5_initialize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_md5_update in -lhmac" >&5 $as_echo_n "checking for libhmac_md5_update in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_md5_update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_md5_update (); int main () { return libhmac_md5_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_md5_update=yes else ac_cv_lib_hmac_libhmac_md5_update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_md5_update" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_md5_update" >&6; } if test "x$ac_cv_lib_hmac_libhmac_md5_update" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_md5_finalize in -lhmac" >&5 $as_echo_n "checking for libhmac_md5_finalize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_md5_finalize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_md5_finalize (); int main () { return libhmac_md5_finalize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_md5_finalize=yes else ac_cv_lib_hmac_libhmac_md5_finalize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_md5_finalize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_md5_finalize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_md5_finalize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_md5_free in -lhmac" >&5 $as_echo_n "checking for libhmac_md5_free in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_md5_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_md5_free (); int main () { return libhmac_md5_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_md5_free=yes else ac_cv_lib_hmac_libhmac_md5_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_md5_free" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_md5_free" >&6; } if test "x$ac_cv_lib_hmac_libhmac_md5_free" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha1_initialize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha1_initialize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha1_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha1_initialize (); int main () { return libhmac_sha1_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha1_initialize=yes else ac_cv_lib_hmac_libhmac_sha1_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha1_initialize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha1_initialize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha1_initialize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha1_update in -lhmac" >&5 $as_echo_n "checking for libhmac_sha1_update in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha1_update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha1_update (); int main () { return libhmac_sha1_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha1_update=yes else ac_cv_lib_hmac_libhmac_sha1_update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha1_update" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha1_update" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha1_update" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha1_finalize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha1_finalize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha1_finalize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha1_finalize (); int main () { return libhmac_sha1_finalize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha1_finalize=yes else ac_cv_lib_hmac_libhmac_sha1_finalize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha1_finalize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha1_finalize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha1_finalize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha1_free in -lhmac" >&5 $as_echo_n "checking for libhmac_sha1_free in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha1_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha1_free (); int main () { return libhmac_sha1_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha1_free=yes else ac_cv_lib_hmac_libhmac_sha1_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha1_free" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha1_free" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha1_free" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha224_initialize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha224_initialize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha224_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha224_initialize (); int main () { return libhmac_sha224_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha224_initialize=yes else ac_cv_lib_hmac_libhmac_sha224_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha224_initialize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha224_initialize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha224_initialize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha224_update in -lhmac" >&5 $as_echo_n "checking for libhmac_sha224_update in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha224_update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha224_update (); int main () { return libhmac_sha224_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha224_update=yes else ac_cv_lib_hmac_libhmac_sha224_update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha224_update" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha224_update" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha224_update" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha224_finalize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha224_finalize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha224_finalize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha224_finalize (); int main () { return libhmac_sha224_finalize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha224_finalize=yes else ac_cv_lib_hmac_libhmac_sha224_finalize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha224_finalize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha224_finalize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha224_finalize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha224_free in -lhmac" >&5 $as_echo_n "checking for libhmac_sha224_free in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha224_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha224_free (); int main () { return libhmac_sha224_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha224_free=yes else ac_cv_lib_hmac_libhmac_sha224_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha224_free" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha224_free" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha224_free" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha256_initialize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha256_initialize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha256_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha256_initialize (); int main () { return libhmac_sha256_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha256_initialize=yes else ac_cv_lib_hmac_libhmac_sha256_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha256_initialize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha256_initialize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha256_initialize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha256_update in -lhmac" >&5 $as_echo_n "checking for libhmac_sha256_update in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha256_update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha256_update (); int main () { return libhmac_sha256_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha256_update=yes else ac_cv_lib_hmac_libhmac_sha256_update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha256_update" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha256_update" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha256_update" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha256_finalize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha256_finalize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha256_finalize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha256_finalize (); int main () { return libhmac_sha256_finalize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha256_finalize=yes else ac_cv_lib_hmac_libhmac_sha256_finalize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha256_finalize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha256_finalize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha256_finalize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha256_free in -lhmac" >&5 $as_echo_n "checking for libhmac_sha256_free in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha256_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha256_free (); int main () { return libhmac_sha256_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha256_free=yes else ac_cv_lib_hmac_libhmac_sha256_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha256_free" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha256_free" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha256_free" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha512_initialize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha512_initialize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha512_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha512_initialize (); int main () { return libhmac_sha512_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha512_initialize=yes else ac_cv_lib_hmac_libhmac_sha512_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha512_initialize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha512_initialize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha512_initialize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha512_update in -lhmac" >&5 $as_echo_n "checking for libhmac_sha512_update in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha512_update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha512_update (); int main () { return libhmac_sha512_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha512_update=yes else ac_cv_lib_hmac_libhmac_sha512_update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha512_update" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha512_update" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha512_update" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha512_finalize in -lhmac" >&5 $as_echo_n "checking for libhmac_sha512_finalize in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha512_finalize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha512_finalize (); int main () { return libhmac_sha512_finalize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha512_finalize=yes else ac_cv_lib_hmac_libhmac_sha512_finalize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha512_finalize" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha512_finalize" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha512_finalize" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhmac_sha512_free in -lhmac" >&5 $as_echo_n "checking for libhmac_sha512_free in -lhmac... " >&6; } if ${ac_cv_lib_hmac_libhmac_sha512_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhmac $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libhmac_sha512_free (); int main () { return libhmac_sha512_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hmac_libhmac_sha512_free=yes else ac_cv_lib_hmac_libhmac_sha512_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hmac_libhmac_sha512_free" >&5 $as_echo "$ac_cv_lib_hmac_libhmac_sha512_free" >&6; } if test "x$ac_cv_lib_hmac_libhmac_sha512_free" = xyes; then : ac_cv_libhmac_dummy=yes else ac_cv_libhmac=no fi ac_cv_libhmac_LIBADD="-lhmac" fi fi if test "x$ac_cv_with_libhmac" != x && test "x$ac_cv_with_libhmac" != xauto-detect && test "x$ac_cv_libhmac" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libhmac in directory: $ac_cv_with_libhmac See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libhmac" = xyes; then : $as_echo "#define HAVE_LIBHMAC 1" >>confdefs.h fi if test "x$ac_cv_libhmac" = xyes; then : ac_cv_libhmac_md5=libhmac ac_cv_libhmac_sha1=libhmac ac_cv_libhmac_sha224=libhmac ac_cv_libhmac_sha256=libhmac ac_cv_libhmac_sha512=libhmac else ac_cv_libhmac_md5=no ac_cv_libhmac_sha1=no ac_cv_libhmac_sha224=no ac_cv_libhmac_sha256=no ac_cv_libhmac_sha512=no fi if test "x$ac_cv_libhmac" = xyes; then : HAVE_LIBHMAC=1 else HAVE_LIBHMAC=0 fi if test "x$ac_cv_libhmac" != xyes; then : # Check whether --with-openssl was given. if test "${with_openssl+set}" = set; then : withval=$with_openssl; ac_cv_with_openssl=$withval else ac_cv_with_openssl=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for OpenSSL in includedir and libdir or in the specified DIR, or no if not to use OpenSSL" >&5 $as_echo_n "checking whether to use search for OpenSSL in includedir and libdir or in the specified DIR, or no if not to use OpenSSL... " >&6; } if ${ac_cv_with_openssl+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_openssl=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_openssl" >&5 $as_echo "$ac_cv_with_openssl" >&6; } # Check whether --enable-openssl-evp-cipher was given. if test "${enable_openssl_evp_cipher+set}" = set; then : enableval=$enable_openssl_evp_cipher; ac_cv_enable_openssl_evp_cipher=$enableval else ac_cv_enable_openssl_evp_cipher=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable OpenSSL EVP CIPHER support, or no to disable" >&5 $as_echo_n "checking whether to enable enable OpenSSL EVP CIPHER support, or no to disable... " >&6; } if ${ac_cv_enable_openssl_evp_cipher+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_openssl_evp_cipher=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_openssl_evp_cipher" >&5 $as_echo "$ac_cv_enable_openssl_evp_cipher" >&6; } # Check whether --enable-openssl-evp-md was given. if test "${enable_openssl_evp_md+set}" = set; then : enableval=$enable_openssl_evp_md; ac_cv_enable_openssl_evp_md=$enableval else ac_cv_enable_openssl_evp_md=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable OpenSSL EVP MD support, or no to disable" >&5 $as_echo_n "checking whether to enable enable OpenSSL EVP MD support, or no to disable... " >&6; } if ${ac_cv_enable_openssl_evp_md+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_openssl_evp_md=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_openssl_evp_md" >&5 $as_echo "$ac_cv_enable_openssl_evp_md" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_openssl" = xno; then : ac_cv_libcrypto=no else if test "x$ac_cv_with_openssl" != x && test "x$ac_cv_with_openssl" != xauto-detect; then : if test -d "$ac_cv_with_openssl"; then : CFLAGS="$CFLAGS -I${ac_cv_with_openssl}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_openssl}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_openssl See \`config.log' for more details" "$LINENO" 5; } fi else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 $as_echo_n "checking for openssl... " >&6; } if test -n "$openssl_CFLAGS"; then pkg_cv_openssl_CFLAGS="$openssl_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$openssl_LIBS"; then pkg_cv_openssl_LIBS="$openssl_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0" 2>&1` else openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$openssl_PKG_ERRORS" >&5 ac_cv_libcrypto=no ac_cv_libcrypto_evp=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcrypto=no ac_cv_libcrypto_evp=no else openssl_CFLAGS=$pkg_cv_openssl_CFLAGS openssl_LIBS=$pkg_cv_openssl_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcrypto=yes ac_cv_libcrypto_evp=yes fi fi if test "x$ac_cv_libcrypto" = xyes; then : ac_cv_libcrypto_CPPFLAGS="$pkg_cv_openssl_CFLAGS" ac_cv_libcrypto_LIBADD="$pkg_cv_openssl_LIBS" fi fi if test "x$ac_cv_libcrypto" != xyes; then : for ac_header in openssl/opensslv.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_OPENSSLV_H 1 _ACEOF fi done for ac_header in openssl/evp.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_evp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_EVP_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_evp_h" = xno; then : ac_cv_libcrypto=no ac_cv_libcrypto_evp=no else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl/evp.h can be used in combination with zlib.h" >&5 $as_echo_n "checking if openssl/evp.h can be used in combination with zlib.h... " >&6; } if ${ac_cv_openssl_evp_zlib_compatible+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_openssl_evp_zlib_compatible=yes else ac_cv_openssl_evp_zlib_compatible=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_openssl_evp_zlib_compatible" >&5 $as_echo "$ac_cv_openssl_evp_zlib_compatible" >&6; } if test "x$ac_cv_openssl_evp_zlib_compatible" = xyes; then : ac_cv_libcrypto=yes ac_cv_libcrypto_evp=yes else ac_cv_libcrypto=no ac_cv_libcrypto_evp=no fi fi if test "x$ac_cv_libcrypto_evp" != xyes && test "$ac_cv_header_openssl_opensslv" = xyes; then : ac_cv_libcrypto=yes fi fi if test "x$ac_cv_libcrypto" = xyes && test "x$ac_cv_libcrypto_evp" = xyes; then : $as_echo "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h HAVE_OPENSSL_EVP_H=1 else HAVE_OPENSSL_EVP_H=0 fi if test "x$ac_cv_libcrypto" != xno; then : $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h ac_cv_libcrypto_LIBADD="-lcrypto" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : LIBDL_LIBADD="-ldl" fi fi fi if test "x$ac_cv_libcrypto_CPPFLAGS" != "x"; then : LIBCRYPTO_CPPFLAGS=$ac_cv_libcrypto_CPPFLAGS fi if test "x$ac_cv_libcrypto_LIBADD" != "x"; then : LIBCRYPTO_LIBADD=$ac_cv_libcrypto_LIBADD fi if test "x$ac_cv_libcrypto" != xno; then : ax_libcrypto_pc_libs_private=-lcrypto fi if test "x$ac_cv_libcrypto" != xno; then : ax_libcrypto_spec_requires=openssl ax_libcrypto_spec_build_requires=openssl-devel fi if test "x$ac_cv_libcrypto" != xno; then : ac_cv_libcrypto_md5=no if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_libcrypto_evp_md" != xyes; then : ac_cv_libcrypto_evp_md=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_new (); int main () { return EVP_MD_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_new=yes else ac_cv_lib_crypto_EVP_MD_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_free (); int main () { return EVP_MD_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_free=yes else ac_cv_lib_crypto_EVP_MD_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_init (); int main () { return EVP_MD_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_init=yes else ac_cv_lib_crypto_EVP_MD_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_cleanup (); int main () { return EVP_MD_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_MD_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestInit_ex (); int main () { return EVP_DigestInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestInit_ex=yes else ac_cv_lib_crypto_EVP_DigestInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestUpdate (); int main () { return EVP_DigestUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestUpdate=yes else ac_cv_lib_crypto_EVP_DigestUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestFinal_ex (); int main () { return EVP_DigestFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestFinal_ex=yes else ac_cv_lib_crypto_EVP_DigestFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi if test "x$ac_cv_enable_openssl_evp_md" = xyes && "x$ac_cv_libcrypto_evp_md" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP MD support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_md" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_md5 in -lcrypto" >&5 $as_echo_n "checking for EVP_md5 in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_md5+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_md5 (); int main () { return EVP_md5 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_md5=yes else ac_cv_lib_crypto_EVP_md5=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_md5" >&5 $as_echo "$ac_cv_lib_crypto_EVP_md5" >&6; } if test "x$ac_cv_lib_crypto_EVP_md5" = xyes; then : ac_cv_libcrypto_md5=libcrypto_evp else ac_cv_libcrypto_md5=no fi if test "x$ac_cv_libcrypto_md5" = xlibcrypto_evp; then : $as_echo "#define HAVE_EVP_MD5 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_md5" = xno; then : for ac_header in openssl/md5.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_md5_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_MD5_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_md5_h" = xno; then : ac_cv_libcrypto_md5=no else ac_cv_libcrypto_md5=libcrypto { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5_Init in -lcrypto" >&5 $as_echo_n "checking for MD5_Init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_MD5_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MD5_Init (); int main () { return MD5_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_MD5_Init=yes else ac_cv_lib_crypto_MD5_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5_Init" >&5 $as_echo "$ac_cv_lib_crypto_MD5_Init" >&6; } if test "x$ac_cv_lib_crypto_MD5_Init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_md5=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5_Update in -lcrypto" >&5 $as_echo_n "checking for MD5_Update in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_MD5_Update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MD5_Update (); int main () { return MD5_Update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_MD5_Update=yes else ac_cv_lib_crypto_MD5_Update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5_Update" >&5 $as_echo "$ac_cv_lib_crypto_MD5_Update" >&6; } if test "x$ac_cv_lib_crypto_MD5_Update" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_md5=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5_Final in -lcrypto" >&5 $as_echo_n "checking for MD5_Final in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_MD5_Final+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char MD5_Final (); int main () { return MD5_Final (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_MD5_Final=yes else ac_cv_lib_crypto_MD5_Final=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5_Final" >&5 $as_echo "$ac_cv_lib_crypto_MD5_Final" >&6; } if test "x$ac_cv_lib_crypto_MD5_Final" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_md5=no fi fi if test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_md5" = xlibcrypto; then : ac_cv_libcrypto=yes fi fi ac_cv_libcrypto_sha1=no if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes; then : ac_cv_libcrypto_evp_md=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_new (); int main () { return EVP_MD_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_new=yes else ac_cv_lib_crypto_EVP_MD_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_free (); int main () { return EVP_MD_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_free=yes else ac_cv_lib_crypto_EVP_MD_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_init (); int main () { return EVP_MD_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_init=yes else ac_cv_lib_crypto_EVP_MD_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_cleanup (); int main () { return EVP_MD_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_MD_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestInit_ex (); int main () { return EVP_DigestInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestInit_ex=yes else ac_cv_lib_crypto_EVP_DigestInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestUpdate (); int main () { return EVP_DigestUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestUpdate=yes else ac_cv_lib_crypto_EVP_DigestUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestFinal_ex (); int main () { return EVP_DigestFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestFinal_ex=yes else ac_cv_lib_crypto_EVP_DigestFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi if test "x$ac_cv_enable_openssl_evp_md" = xyes && "x$ac_cv_libcrypto_evp_md" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP MD support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_md" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha1 in -lcrypto" >&5 $as_echo_n "checking for EVP_sha1 in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_sha1+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_sha1 (); int main () { return EVP_sha1 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_sha1=yes else ac_cv_lib_crypto_EVP_sha1=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha1" >&5 $as_echo "$ac_cv_lib_crypto_EVP_sha1" >&6; } if test "x$ac_cv_lib_crypto_EVP_sha1" = xyes; then : ac_cv_libcrypto_sha1=libcrypto_evp else ac_cv_libcrypto_sha1=no fi if test "x$ac_cv_libcrypto_sha1" = xlibcrypto_evp; then : $as_echo "#define HAVE_EVP_SHA1 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_sha1" = xno; then : for ac_header in openssl/sha.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_sha_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_SHA_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_sha_h" = xno; then : ac_cv_libcrypto_sha1=no else ac_cv_libcrypto_sha1=libcrypto { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA1_Init (); int main () { return SHA1_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA1_Init=yes else ac_cv_lib_crypto_SHA1_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha1=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Update in -lcrypto" >&5 $as_echo_n "checking for SHA1_Update in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA1_Update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA1_Update (); int main () { return SHA1_Update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA1_Update=yes else ac_cv_lib_crypto_SHA1_Update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Update" >&5 $as_echo "$ac_cv_lib_crypto_SHA1_Update" >&6; } if test "x$ac_cv_lib_crypto_SHA1_Update" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha1=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Final in -lcrypto" >&5 $as_echo_n "checking for SHA1_Final in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA1_Final+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA1_Final (); int main () { return SHA1_Final (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA1_Final=yes else ac_cv_lib_crypto_SHA1_Final=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Final" >&5 $as_echo "$ac_cv_lib_crypto_SHA1_Final" >&6; } if test "x$ac_cv_lib_crypto_SHA1_Final" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha1=no fi fi if test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha1" = xlibcrypto; then : ac_cv_libcrypto=yes fi fi ac_cv_libcrypto_sha224=no if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes; then : ac_cv_libcrypto_evp_md=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_new (); int main () { return EVP_MD_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_new=yes else ac_cv_lib_crypto_EVP_MD_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_free (); int main () { return EVP_MD_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_free=yes else ac_cv_lib_crypto_EVP_MD_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_init (); int main () { return EVP_MD_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_init=yes else ac_cv_lib_crypto_EVP_MD_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_cleanup (); int main () { return EVP_MD_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_MD_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestInit_ex (); int main () { return EVP_DigestInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestInit_ex=yes else ac_cv_lib_crypto_EVP_DigestInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestUpdate (); int main () { return EVP_DigestUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestUpdate=yes else ac_cv_lib_crypto_EVP_DigestUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestFinal_ex (); int main () { return EVP_DigestFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestFinal_ex=yes else ac_cv_lib_crypto_EVP_DigestFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi if test "x$ac_cv_enable_openssl_evp_md" = xyes && "x$ac_cv_libcrypto_evp_md" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP MD support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_md" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha224 in -lcrypto" >&5 $as_echo_n "checking for EVP_sha224 in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_sha224+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_sha224 (); int main () { return EVP_sha224 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_sha224=yes else ac_cv_lib_crypto_EVP_sha224=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha224" >&5 $as_echo "$ac_cv_lib_crypto_EVP_sha224" >&6; } if test "x$ac_cv_lib_crypto_EVP_sha224" = xyes; then : ac_cv_libcrypto_sha224=libcrypto_evp else ac_cv_libcrypto_sha224=no fi if test "x$ac_cv_libcrypto_sha224" = xlibcrypto_evp; then : $as_echo "#define HAVE_EVP_SHA224 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_sha224" = xno; then : for ac_header in openssl/sha.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_sha_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_SHA_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_sha_h" = xno; then : ac_cv_libcrypto_sha224=no else ac_cv_libcrypto_sha224=libcrypto { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA224_Init in -lcrypto" >&5 $as_echo_n "checking for SHA224_Init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA224_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA224_Init (); int main () { return SHA224_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA224_Init=yes else ac_cv_lib_crypto_SHA224_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA224_Init" >&5 $as_echo "$ac_cv_lib_crypto_SHA224_Init" >&6; } if test "x$ac_cv_lib_crypto_SHA224_Init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha224=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA224_Update in -lcrypto" >&5 $as_echo_n "checking for SHA224_Update in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA224_Update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA224_Update (); int main () { return SHA224_Update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA224_Update=yes else ac_cv_lib_crypto_SHA224_Update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA224_Update" >&5 $as_echo "$ac_cv_lib_crypto_SHA224_Update" >&6; } if test "x$ac_cv_lib_crypto_SHA224_Update" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha224=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA224_Final in -lcrypto" >&5 $as_echo_n "checking for SHA224_Final in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA224_Final+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA224_Final (); int main () { return SHA224_Final (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA224_Final=yes else ac_cv_lib_crypto_SHA224_Final=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA224_Final" >&5 $as_echo "$ac_cv_lib_crypto_SHA224_Final" >&6; } if test "x$ac_cv_lib_crypto_SHA224_Final" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha224=no fi fi if test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha224" = xlibcrypto; then : ac_cv_libcrypto=yes fi fi ac_cv_libcrypto_sha256=no if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes; then : ac_cv_libcrypto_evp_md=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_new (); int main () { return EVP_MD_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_new=yes else ac_cv_lib_crypto_EVP_MD_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_free (); int main () { return EVP_MD_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_free=yes else ac_cv_lib_crypto_EVP_MD_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_init (); int main () { return EVP_MD_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_init=yes else ac_cv_lib_crypto_EVP_MD_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_cleanup (); int main () { return EVP_MD_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_MD_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestInit_ex (); int main () { return EVP_DigestInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestInit_ex=yes else ac_cv_lib_crypto_EVP_DigestInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestUpdate (); int main () { return EVP_DigestUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestUpdate=yes else ac_cv_lib_crypto_EVP_DigestUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestFinal_ex (); int main () { return EVP_DigestFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestFinal_ex=yes else ac_cv_lib_crypto_EVP_DigestFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi if test "x$ac_cv_enable_openssl_evp_md" = xyes && "x$ac_cv_libcrypto_evp_md" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP MD support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_md" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5 $as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_sha256+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_sha256 (); int main () { return EVP_sha256 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_sha256=yes else ac_cv_lib_crypto_EVP_sha256=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha256" >&5 $as_echo "$ac_cv_lib_crypto_EVP_sha256" >&6; } if test "x$ac_cv_lib_crypto_EVP_sha256" = xyes; then : ac_cv_libcrypto_sha256=libcrypto_evp else ac_cv_libcrypto_sha256=no fi if test "x$ac_cv_libcrypto_sha256" = xlibcrypto_evp; then : $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_sha256" = xno; then : for ac_header in openssl/sha.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_sha_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_SHA_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_sha_h" = xno; then : ac_cv_libcrypto_sha256=no else ac_cv_libcrypto_sha256=libcrypto { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256_Init in -lcrypto" >&5 $as_echo_n "checking for SHA256_Init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA256_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA256_Init (); int main () { return SHA256_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA256_Init=yes else ac_cv_lib_crypto_SHA256_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA256_Init" >&5 $as_echo "$ac_cv_lib_crypto_SHA256_Init" >&6; } if test "x$ac_cv_lib_crypto_SHA256_Init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha256=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256_Update in -lcrypto" >&5 $as_echo_n "checking for SHA256_Update in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA256_Update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA256_Update (); int main () { return SHA256_Update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA256_Update=yes else ac_cv_lib_crypto_SHA256_Update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA256_Update" >&5 $as_echo "$ac_cv_lib_crypto_SHA256_Update" >&6; } if test "x$ac_cv_lib_crypto_SHA256_Update" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha256=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256_Final in -lcrypto" >&5 $as_echo_n "checking for SHA256_Final in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA256_Final+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA256_Final (); int main () { return SHA256_Final (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA256_Final=yes else ac_cv_lib_crypto_SHA256_Final=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA256_Final" >&5 $as_echo "$ac_cv_lib_crypto_SHA256_Final" >&6; } if test "x$ac_cv_lib_crypto_SHA256_Final" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha256=no fi fi if test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha256" = xlibcrypto; then : ac_cv_libcrypto=yes fi fi ac_cv_libcrypto_sha512=no if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes; then : ac_cv_libcrypto_evp_md=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_new (); int main () { return EVP_MD_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_new=yes else ac_cv_lib_crypto_EVP_MD_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_free (); int main () { return EVP_MD_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_free=yes else ac_cv_lib_crypto_EVP_MD_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_init (); int main () { return EVP_MD_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_init=yes else ac_cv_lib_crypto_EVP_MD_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_MD_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_MD_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_MD_CTX_cleanup (); int main () { return EVP_MD_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_MD_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_MD_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestInit_ex (); int main () { return EVP_DigestInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestInit_ex=yes else ac_cv_lib_crypto_EVP_DigestInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestUpdate (); int main () { return EVP_DigestUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestUpdate=yes else ac_cv_lib_crypto_EVP_DigestUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_DigestFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_DigestFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_DigestFinal_ex (); int main () { return EVP_DigestFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_DigestFinal_ex=yes else ac_cv_lib_crypto_EVP_DigestFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_DigestFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_DigestFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_md=no fi if test "x$ac_cv_enable_openssl_evp_md" = xyes && "x$ac_cv_libcrypto_evp_md" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP MD support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_MD_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_md" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha512 in -lcrypto" >&5 $as_echo_n "checking for EVP_sha512 in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_sha512+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_sha512 (); int main () { return EVP_sha512 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_sha512=yes else ac_cv_lib_crypto_EVP_sha512=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sha512" >&5 $as_echo "$ac_cv_lib_crypto_EVP_sha512" >&6; } if test "x$ac_cv_lib_crypto_EVP_sha512" = xyes; then : ac_cv_libcrypto_sha512=libcrypto_evp else ac_cv_libcrypto_sha512=no fi if test "x$ac_cv_libcrypto_sha512" = xlibcrypto_evp; then : $as_echo "#define HAVE_EVP_SHA512 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_sha512" = xno; then : for ac_header in openssl/sha.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_sha_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_SHA_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_sha_h" = xno; then : ac_cv_libcrypto_sha512=no else ac_cv_libcrypto_sha512=libcrypto { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512_Init in -lcrypto" >&5 $as_echo_n "checking for SHA512_Init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA512_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA512_Init (); int main () { return SHA512_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA512_Init=yes else ac_cv_lib_crypto_SHA512_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA512_Init" >&5 $as_echo "$ac_cv_lib_crypto_SHA512_Init" >&6; } if test "x$ac_cv_lib_crypto_SHA512_Init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha512=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512_Update in -lcrypto" >&5 $as_echo_n "checking for SHA512_Update in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA512_Update+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA512_Update (); int main () { return SHA512_Update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA512_Update=yes else ac_cv_lib_crypto_SHA512_Update=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA512_Update" >&5 $as_echo "$ac_cv_lib_crypto_SHA512_Update" >&6; } if test "x$ac_cv_lib_crypto_SHA512_Update" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha512=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512_Final in -lcrypto" >&5 $as_echo_n "checking for SHA512_Final in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_SHA512_Final+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SHA512_Final (); int main () { return SHA512_Final (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_SHA512_Final=yes else ac_cv_lib_crypto_SHA512_Final=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA512_Final" >&5 $as_echo "$ac_cv_lib_crypto_SHA512_Final" >&6; } if test "x$ac_cv_lib_crypto_SHA512_Final" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_sha512=no fi fi if test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha512" = xlibcrypto; then : ac_cv_libcrypto=yes fi fi fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_md5" = xno; then : ac_cv_libhmac_md5=local else ac_cv_libhmac_md5=$ac_cv_libcrypto_md5 fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha1" = xno; then : ac_cv_libhmac_sha1=local else ac_cv_libhmac_sha1=$ac_cv_libcrypto_sha1 fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha224" = xno; then : ac_cv_libhmac_sha224=local else ac_cv_libhmac_sha224=$ac_cv_libcrypto_sha224 fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha256" = xno; then : ac_cv_libhmac_sha256=local else ac_cv_libhmac_sha256=$ac_cv_libcrypto_sha256 fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha512" = xno; then : ac_cv_libhmac_sha512=local else ac_cv_libhmac_sha512=$ac_cv_libcrypto_sha512 fi ac_cv_libhmac_CPPFLAGS="-I../libhmac"; ac_cv_libhmac_LIBADD="../libhmac/libhmac.la"; ac_cv_libhmac=local $as_echo "#define HAVE_LOCAL_LIBHMAC 1" >>confdefs.h HAVE_LOCAL_LIBHMAC=1 fi if test "x$ac_cv_libhmac" = xlocal; then HAVE_LOCAL_LIBHMAC_TRUE= HAVE_LOCAL_LIBHMAC_FALSE='#' else HAVE_LOCAL_LIBHMAC_TRUE='#' HAVE_LOCAL_LIBHMAC_FALSE= fi if test "x$ac_cv_libhmac_CPPFLAGS" != "x"; then : LIBHMAC_CPPFLAGS=$ac_cv_libhmac_CPPFLAGS fi if test "x$ac_cv_libhmac_LIBADD" != "x"; then : LIBHMAC_LIBADD=$ac_cv_libhmac_LIBADD fi if test "x$ac_cv_libhmac" = xyes; then : ax_libhmac_pc_libs_private=-lhmac fi if test "x$ac_cv_libhmac" = xyes; then : ax_libhmac_spec_requires=libhmac ax_libhmac_spec_build_requires=libhmac-devel fi # Check whether --with-libcaes was given. if test "${with_libcaes+set}" = set; then : withval=$with_libcaes; ac_cv_with_libcaes=$withval else ac_cv_with_libcaes=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcaes in includedir and libdir or in the specified DIR, or no if to use local version" >&5 $as_echo_n "checking whether to use search for libcaes in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } if ${ac_cv_with_libcaes+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libcaes=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcaes" >&5 $as_echo "$ac_cv_with_libcaes" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcaes" = xno; then : ac_cv_libcaes=no else if test "x$ac_cv_with_libcaes" != x && test "x$ac_cv_with_libcaes" != xauto-detect; then : if test -d "$ac_cv_with_libcaes"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libcaes}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcaes}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_libcaes See \`config.log' for more details" "$LINENO" 5; } fi ac_cv_libcaes=check else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes" >&5 $as_echo_n "checking for libcaes... " >&6; } if test -n "$libcaes_CFLAGS"; then pkg_cv_libcaes_CFLAGS="$libcaes_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcaes >= 20161025\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcaes >= 20161025") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcaes_CFLAGS=`$PKG_CONFIG --cflags "libcaes >= 20161025" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$libcaes_LIBS"; then pkg_cv_libcaes_LIBS="$libcaes_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcaes >= 20161025\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcaes >= 20161025") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_libcaes_LIBS=`$PKG_CONFIG --libs "libcaes >= 20161025" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then libcaes_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcaes >= 20161025" 2>&1` else libcaes_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcaes >= 20161025" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$libcaes_PKG_ERRORS" >&5 ac_cv_libcaes=check elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcaes=check else libcaes_CFLAGS=$pkg_cv_libcaes_CFLAGS libcaes_LIBS=$pkg_cv_libcaes_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcaes=yes fi fi if test "x$ac_cv_libcaes" = xyes; then : ac_cv_libcaes_CPPFLAGS="$pkg_cv_libcaes_CFLAGS" ac_cv_libcaes_LIBADD="$pkg_cv_libcaes_LIBS" fi fi if test "x$ac_cv_libcaes" = xcheck; then : for ac_header in libcaes.h do : ac_fn_c_check_header_mongrel "$LINENO" "libcaes.h" "ac_cv_header_libcaes_h" "$ac_includes_default" if test "x$ac_cv_header_libcaes_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCAES_H 1 _ACEOF fi done if test "x$ac_cv_header_libcaes_h" = xno; then : ac_cv_libcaes=no else ac_cv_libcaes=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_get_version in -lcaes" >&5 $as_echo_n "checking for libcaes_get_version in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_get_version (); int main () { return libcaes_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_get_version=yes else ac_cv_lib_caes_libcaes_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_get_version" >&5 $as_echo "$ac_cv_lib_caes_libcaes_get_version" >&6; } if test "x$ac_cv_lib_caes_libcaes_get_version" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_context_initialize in -lcaes" >&5 $as_echo_n "checking for libcaes_context_initialize in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_context_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_context_initialize (); int main () { return libcaes_context_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_context_initialize=yes else ac_cv_lib_caes_libcaes_context_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_context_initialize" >&5 $as_echo "$ac_cv_lib_caes_libcaes_context_initialize" >&6; } if test "x$ac_cv_lib_caes_libcaes_context_initialize" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_context_free in -lcaes" >&5 $as_echo_n "checking for libcaes_context_free in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_context_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_context_free (); int main () { return libcaes_context_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_context_free=yes else ac_cv_lib_caes_libcaes_context_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_context_free" >&5 $as_echo "$ac_cv_lib_caes_libcaes_context_free" >&6; } if test "x$ac_cv_lib_caes_libcaes_context_free" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_context_set_key in -lcaes" >&5 $as_echo_n "checking for libcaes_context_set_key in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_context_set_key+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_context_set_key (); int main () { return libcaes_context_set_key (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_context_set_key=yes else ac_cv_lib_caes_libcaes_context_set_key=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_context_set_key" >&5 $as_echo "$ac_cv_lib_caes_libcaes_context_set_key" >&6; } if test "x$ac_cv_lib_caes_libcaes_context_set_key" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_tweaked_context_initialize in -lcaes" >&5 $as_echo_n "checking for libcaes_tweaked_context_initialize in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_tweaked_context_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_tweaked_context_initialize (); int main () { return libcaes_tweaked_context_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_tweaked_context_initialize=yes else ac_cv_lib_caes_libcaes_tweaked_context_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_tweaked_context_initialize" >&5 $as_echo "$ac_cv_lib_caes_libcaes_tweaked_context_initialize" >&6; } if test "x$ac_cv_lib_caes_libcaes_tweaked_context_initialize" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_tweaked_context_free in -lcaes" >&5 $as_echo_n "checking for libcaes_tweaked_context_free in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_tweaked_context_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_tweaked_context_free (); int main () { return libcaes_tweaked_context_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_tweaked_context_free=yes else ac_cv_lib_caes_libcaes_tweaked_context_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_tweaked_context_free" >&5 $as_echo "$ac_cv_lib_caes_libcaes_tweaked_context_free" >&6; } if test "x$ac_cv_lib_caes_libcaes_tweaked_context_free" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_tweaked_context_set_keys in -lcaes" >&5 $as_echo_n "checking for libcaes_tweaked_context_set_keys in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_tweaked_context_set_keys+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_tweaked_context_set_keys (); int main () { return libcaes_tweaked_context_set_keys (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_tweaked_context_set_keys=yes else ac_cv_lib_caes_libcaes_tweaked_context_set_keys=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_tweaked_context_set_keys" >&5 $as_echo "$ac_cv_lib_caes_libcaes_tweaked_context_set_keys" >&6; } if test "x$ac_cv_lib_caes_libcaes_tweaked_context_set_keys" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_crypt_cbc in -lcaes" >&5 $as_echo_n "checking for libcaes_crypt_cbc in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_crypt_cbc+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_crypt_cbc (); int main () { return libcaes_crypt_cbc (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_crypt_cbc=yes else ac_cv_lib_caes_libcaes_crypt_cbc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_crypt_cbc" >&5 $as_echo "$ac_cv_lib_caes_libcaes_crypt_cbc" >&6; } if test "x$ac_cv_lib_caes_libcaes_crypt_cbc" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_crypt_ccm in -lcaes" >&5 $as_echo_n "checking for libcaes_crypt_ccm in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_crypt_ccm+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_crypt_ccm (); int main () { return libcaes_crypt_ccm (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_crypt_ccm=yes else ac_cv_lib_caes_libcaes_crypt_ccm=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_crypt_ccm" >&5 $as_echo "$ac_cv_lib_caes_libcaes_crypt_ccm" >&6; } if test "x$ac_cv_lib_caes_libcaes_crypt_ccm" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_crypt_ecb in -lcaes" >&5 $as_echo_n "checking for libcaes_crypt_ecb in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_crypt_ecb+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_crypt_ecb (); int main () { return libcaes_crypt_ecb (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_crypt_ecb=yes else ac_cv_lib_caes_libcaes_crypt_ecb=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_crypt_ecb" >&5 $as_echo "$ac_cv_lib_caes_libcaes_crypt_ecb" >&6; } if test "x$ac_cv_lib_caes_libcaes_crypt_ecb" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaes_crypt_xts in -lcaes" >&5 $as_echo_n "checking for libcaes_crypt_xts in -lcaes... " >&6; } if ${ac_cv_lib_caes_libcaes_crypt_xts+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcaes $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char libcaes_crypt_xts (); int main () { return libcaes_crypt_xts (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_caes_libcaes_crypt_xts=yes else ac_cv_lib_caes_libcaes_crypt_xts=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caes_libcaes_crypt_xts" >&5 $as_echo "$ac_cv_lib_caes_libcaes_crypt_xts" >&6; } if test "x$ac_cv_lib_caes_libcaes_crypt_xts" = xyes; then : ac_cv_libcaes_dummy=yes else ac_cv_libcaes=no fi ac_cv_libcaes_LIBADD="-lcaes" fi fi if test "x$ac_cv_with_libcaes" != x && test "x$ac_cv_with_libcaes" != xauto-detect && test "x$ac_cv_libcaes" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "unable to find supported libcaes in directory: $ac_cv_with_libcaes See \`config.log' for more details" "$LINENO" 5; } fi fi if test "x$ac_cv_libcaes" = xyes; then : $as_echo "#define HAVE_LIBCAES 1" >>confdefs.h fi if test "x$ac_cv_libcaes" = xyes; then : ac_cv_libcaes_aes=libcaes else ac_cv_libcaes_aes=no fi if test "x$ac_cv_libcaes" = xyes; then : HAVE_LIBCAES=1 else HAVE_LIBCAES=0 fi if test "x$ac_cv_libcaes" != xyes; then : # Check whether --with-openssl was given. if test "${with_openssl+set}" = set; then : withval=$with_openssl; ac_cv_with_openssl=$withval else ac_cv_with_openssl=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for OpenSSL in includedir and libdir or in the specified DIR, or no if not to use OpenSSL" >&5 $as_echo_n "checking whether to use search for OpenSSL in includedir and libdir or in the specified DIR, or no if not to use OpenSSL... " >&6; } if ${ac_cv_with_openssl+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_openssl=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_openssl" >&5 $as_echo "$ac_cv_with_openssl" >&6; } # Check whether --enable-openssl-evp-cipher was given. if test "${enable_openssl_evp_cipher+set}" = set; then : enableval=$enable_openssl_evp_cipher; ac_cv_enable_openssl_evp_cipher=$enableval else ac_cv_enable_openssl_evp_cipher=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable OpenSSL EVP CIPHER support, or no to disable" >&5 $as_echo_n "checking whether to enable enable OpenSSL EVP CIPHER support, or no to disable... " >&6; } if ${ac_cv_enable_openssl_evp_cipher+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_openssl_evp_cipher=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_openssl_evp_cipher" >&5 $as_echo "$ac_cv_enable_openssl_evp_cipher" >&6; } # Check whether --enable-openssl-evp-md was given. if test "${enable_openssl_evp_md+set}" = set; then : enableval=$enable_openssl_evp_md; ac_cv_enable_openssl_evp_md=$enableval else ac_cv_enable_openssl_evp_md=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable OpenSSL EVP MD support, or no to disable" >&5 $as_echo_n "checking whether to enable enable OpenSSL EVP MD support, or no to disable... " >&6; } if ${ac_cv_enable_openssl_evp_md+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_openssl_evp_md=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_openssl_evp_md" >&5 $as_echo "$ac_cv_enable_openssl_evp_md" >&6; } if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_openssl" = xno; then : ac_cv_libcrypto=no else if test "x$ac_cv_with_openssl" != x && test "x$ac_cv_with_openssl" != xauto-detect; then : if test -d "$ac_cv_with_openssl"; then : CFLAGS="$CFLAGS -I${ac_cv_with_openssl}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_openssl}/lib" else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "no such directory: $ac_cv_with_openssl See \`config.log' for more details" "$LINENO" 5; } fi else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 $as_echo_n "checking for openssl... " >&6; } if test -n "$openssl_CFLAGS"; then pkg_cv_openssl_CFLAGS="$openssl_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$openssl_LIBS"; then pkg_cv_openssl_LIBS="$openssl_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0" 2>&1` else openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$openssl_PKG_ERRORS" >&5 ac_cv_libcrypto=no ac_cv_libcrypto_evp=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libcrypto=no ac_cv_libcrypto_evp=no else openssl_CFLAGS=$pkg_cv_openssl_CFLAGS openssl_LIBS=$pkg_cv_openssl_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libcrypto=yes ac_cv_libcrypto_evp=yes fi fi if test "x$ac_cv_libcrypto" = xyes; then : ac_cv_libcrypto_CPPFLAGS="$pkg_cv_openssl_CFLAGS" ac_cv_libcrypto_LIBADD="$pkg_cv_openssl_LIBS" fi fi if test "x$ac_cv_libcrypto" != xyes; then : for ac_header in openssl/opensslv.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_OPENSSLV_H 1 _ACEOF fi done for ac_header in openssl/evp.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_evp_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_EVP_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_evp_h" = xno; then : ac_cv_libcrypto=no ac_cv_libcrypto_evp=no else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl/evp.h can be used in combination with zlib.h" >&5 $as_echo_n "checking if openssl/evp.h can be used in combination with zlib.h... " >&6; } if ${ac_cv_openssl_evp_zlib_compatible+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_openssl_evp_zlib_compatible=yes else ac_cv_openssl_evp_zlib_compatible=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_openssl_evp_zlib_compatible" >&5 $as_echo "$ac_cv_openssl_evp_zlib_compatible" >&6; } if test "x$ac_cv_openssl_evp_zlib_compatible" = xyes; then : ac_cv_libcrypto=yes ac_cv_libcrypto_evp=yes else ac_cv_libcrypto=no ac_cv_libcrypto_evp=no fi fi if test "x$ac_cv_libcrypto_evp" != xyes && test "$ac_cv_header_openssl_opensslv" = xyes; then : ac_cv_libcrypto=yes fi fi if test "x$ac_cv_libcrypto" = xyes && test "x$ac_cv_libcrypto_evp" = xyes; then : $as_echo "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h HAVE_OPENSSL_EVP_H=1 else HAVE_OPENSSL_EVP_H=0 fi if test "x$ac_cv_libcrypto" != xno; then : $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h ac_cv_libcrypto_LIBADD="-lcrypto" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : LIBDL_LIBADD="-ldl" fi fi fi if test "x$ac_cv_libcrypto_CPPFLAGS" != "x"; then : LIBCRYPTO_CPPFLAGS=$ac_cv_libcrypto_CPPFLAGS fi if test "x$ac_cv_libcrypto_LIBADD" != "x"; then : LIBCRYPTO_LIBADD=$ac_cv_libcrypto_LIBADD fi if test "x$ac_cv_libcrypto" != xno; then : ax_libcrypto_pc_libs_private=-lcrypto fi if test "x$ac_cv_libcrypto" != xno; then : ax_libcrypto_spec_requires=openssl ax_libcrypto_spec_build_requires=openssl-devel fi if test "x$ac_cv_libcrypto" != xno; then : if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_cipher" != xno && test "x$ac_cv_libcrypto_evp_cipher" != xyes; then : ac_cv_libcrypto_evp_cipher=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_new (); int main () { return EVP_CIPHER_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_free (); int main () { return EVP_CIPHER_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_free=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_init (); int main () { return EVP_CIPHER_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_init=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_cleanup (); int main () { return EVP_CIPHER_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_set_padding (); int main () { return EVP_CIPHER_CTX_set_padding (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherInit_ex (); int main () { return EVP_CipherInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherInit_ex=yes else ac_cv_lib_crypto_EVP_CipherInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherUpdate (); int main () { return EVP_CipherUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherUpdate=yes else ac_cv_lib_crypto_EVP_CipherUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherFinal_ex (); int main () { return EVP_CipherFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherFinal_ex=yes else ac_cv_lib_crypto_EVP_CipherFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi if test "x$ac_cv_enable_openssl_evp_cipher" = xyes && "x$ac_cv_libcrypto_evp_cipher" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP CIPHER support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_CIPHER_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_CIPHER_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_cipher" != xyes; then : ac_cv_libcrypto_aes_cbc=no else ac_cv_libcrypto_aes_cbc=libcrypto_evp { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_cbc in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_128_cbc in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_128_cbc+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_128_cbc (); int main () { return EVP_aes_128_cbc (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_128_cbc=yes else ac_cv_lib_crypto_EVP_aes_128_cbc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_cbc" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_128_cbc" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_128_cbc" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_cbc=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_192_cbc in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_192_cbc in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_192_cbc+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_192_cbc (); int main () { return EVP_aes_192_cbc (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_192_cbc=yes else ac_cv_lib_crypto_EVP_aes_192_cbc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_192_cbc" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_192_cbc" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_192_cbc" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_cbc=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_256_cbc in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_256_cbc in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_256_cbc+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_256_cbc (); int main () { return EVP_aes_256_cbc (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_256_cbc=yes else ac_cv_lib_crypto_EVP_aes_256_cbc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_256_cbc" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_256_cbc" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_256_cbc" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_cbc=no fi if test "x$ac_cv_lib_crypto_EVP_aes_128_cbc" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_192_cbc" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_256_cbc" = xyes; then : $as_echo "#define HAVE_EVP_CRYPTO_AES_CBC 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_cipher" != xno && test "x$ac_cv_libcrypto_evp_cipher" != xyes; then : ac_cv_libcrypto_evp_cipher=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_new (); int main () { return EVP_CIPHER_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_free (); int main () { return EVP_CIPHER_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_free=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_init (); int main () { return EVP_CIPHER_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_init=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_cleanup (); int main () { return EVP_CIPHER_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_set_padding (); int main () { return EVP_CIPHER_CTX_set_padding (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherInit_ex (); int main () { return EVP_CipherInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherInit_ex=yes else ac_cv_lib_crypto_EVP_CipherInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherUpdate (); int main () { return EVP_CipherUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherUpdate=yes else ac_cv_lib_crypto_EVP_CipherUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherFinal_ex (); int main () { return EVP_CipherFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherFinal_ex=yes else ac_cv_lib_crypto_EVP_CipherFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi if test "x$ac_cv_enable_openssl_evp_cipher" = xyes && "x$ac_cv_libcrypto_evp_cipher" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP CIPHER support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_CIPHER_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_CIPHER_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_cipher" != xyes; then : ac_cv_libcrypto_aes_ecb=no else ac_cv_libcrypto_aes_ecb=libcrypto_evp { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ecb in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_128_ecb in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_128_ecb+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_128_ecb (); int main () { return EVP_aes_128_ecb (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_128_ecb=yes else ac_cv_lib_crypto_EVP_aes_128_ecb=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ecb" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_128_ecb" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_128_ecb" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_ecb=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_192_ecb in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_192_ecb in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_192_ecb+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_192_ecb (); int main () { return EVP_aes_192_ecb (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_192_ecb=yes else ac_cv_lib_crypto_EVP_aes_192_ecb=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_192_ecb" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_192_ecb" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_192_ecb" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_ecb=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_256_ecb in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_256_ecb in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_256_ecb+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_256_ecb (); int main () { return EVP_aes_256_ecb (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_256_ecb=yes else ac_cv_lib_crypto_EVP_aes_256_ecb=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_256_ecb" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_256_ecb" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_256_ecb" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_ecb=no fi if test "x$ac_cv_lib_crypto_EVP_aes_128_ecb" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_192_ecb" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_256_ecb" = xyes; then : $as_echo "#define HAVE_EVP_CRYPTO_AES_ECB 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno; then : ac_cv_libcrypto_aes=no else ac_cv_libcrypto_aes=libcrypto_evp fi if test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno; then : for ac_header in openssl/aes.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_aes_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_AES_H 1 _ACEOF fi done if test "x$ac_cv_header_openssl_aes_h" = xno; then : ac_cv_libcrypto_aes_cbc=no ac_cv_libcrypto_aes_ecb=no else ac_cv_libcrypto_aes_cbc=libcrypto ac_cv_libcrypto_aes_ecb=libcrypto { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_set_decrypt_key in -lcrypto" >&5 $as_echo_n "checking for AES_set_decrypt_key in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_AES_set_decrypt_key+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char AES_set_decrypt_key (); int main () { return AES_set_decrypt_key (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_AES_set_decrypt_key=yes else ac_cv_lib_crypto_AES_set_decrypt_key=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_set_decrypt_key" >&5 $as_echo "$ac_cv_lib_crypto_AES_set_decrypt_key" >&6; } if test "x$ac_cv_lib_crypto_AES_set_decrypt_key" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_cbc=no, ac_cv_libcrypto_aes_ecb=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_set_encrypt_key in -lcrypto" >&5 $as_echo_n "checking for AES_set_encrypt_key in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_AES_set_encrypt_key+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char AES_set_encrypt_key (); int main () { return AES_set_encrypt_key (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_AES_set_encrypt_key=yes else ac_cv_lib_crypto_AES_set_encrypt_key=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_set_encrypt_key" >&5 $as_echo "$ac_cv_lib_crypto_AES_set_encrypt_key" >&6; } if test "x$ac_cv_lib_crypto_AES_set_encrypt_key" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_cbc=no, ac_cv_libcrypto_aes_ecb=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_cbc_encrypt in -lcrypto" >&5 $as_echo_n "checking for AES_cbc_encrypt in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_AES_cbc_encrypt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char AES_cbc_encrypt (); int main () { return AES_cbc_encrypt (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_AES_cbc_encrypt=yes else ac_cv_lib_crypto_AES_cbc_encrypt=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_cbc_encrypt" >&5 $as_echo "$ac_cv_lib_crypto_AES_cbc_encrypt" >&6; } if test "x$ac_cv_lib_crypto_AES_cbc_encrypt" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_cbc=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_ecb_encrypt in -lcrypto" >&5 $as_echo_n "checking for AES_ecb_encrypt in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_AES_ecb_encrypt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char AES_ecb_encrypt (); int main () { return AES_ecb_encrypt (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_AES_ecb_encrypt=yes else ac_cv_lib_crypto_AES_ecb_encrypt=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_ecb_encrypt" >&5 $as_echo "$ac_cv_lib_crypto_AES_ecb_encrypt" >&6; } if test "x$ac_cv_lib_crypto_AES_ecb_encrypt" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_ecb=no fi if test "x$ac_cv_lib_crypto_AES_cbc_encrypt" = xyes; then : $as_echo "#define HAVE_AES_CBC_ENCRYPT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_AES_ecb_encrypt" = xyes; then : $as_echo "#define HAVE_AES_ECB_ENCRYPT 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto" = xno; then : if test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno; then : ac_cv_libcrypto=yes fi fi if test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno; then : ac_cv_libcrypto_aes=no else ac_cv_libcrypto_aes=libcrypto fi fi if test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_cipher" != xno && test "x$ac_cv_libcrypto_evp_cipher" != xyes; then : ac_cv_libcrypto_evp_cipher=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_new (); int main () { return EVP_CIPHER_CTX_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_dummy=no fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_free in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_free in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_free (); int main () { return EVP_CIPHER_CTX_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_free=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_free" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_free" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_free" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_init in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_init (); int main () { return EVP_CIPHER_CTX_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_init=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_cleanup in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_cleanup in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_cleanup (); int main () { return EVP_CIPHER_CTX_cleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lcrypto" >&5 $as_echo_n "checking for ERR_remove_thread_state in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_ERR_remove_thread_state+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ERR_remove_thread_state (); int main () { return ERR_remove_thread_state (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_ERR_remove_thread_state=yes else ac_cv_lib_crypto_ERR_remove_thread_state=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_remove_thread_state" >&5 $as_echo "$ac_cv_lib_crypto_ERR_remove_thread_state" >&6; } if test "x$ac_cv_lib_crypto_ERR_remove_thread_state" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5 $as_echo_n "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CIPHER_CTX_set_padding (); int main () { return EVP_CIPHER_CTX_set_padding (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes else ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; } if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherInit_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherInit_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherInit_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherInit_ex (); int main () { return EVP_CipherInit_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherInit_ex=yes else ac_cv_lib_crypto_EVP_CipherInit_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherInit_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherInit_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherInit_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherUpdate in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherUpdate in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherUpdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherUpdate (); int main () { return EVP_CipherUpdate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherUpdate=yes else ac_cv_lib_crypto_EVP_CipherUpdate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherUpdate" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherUpdate" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherUpdate" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherFinal_ex in -lcrypto" >&5 $as_echo_n "checking for EVP_CipherFinal_ex in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_CipherFinal_ex+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_CipherFinal_ex (); int main () { return EVP_CipherFinal_ex (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_CipherFinal_ex=yes else ac_cv_lib_crypto_EVP_CipherFinal_ex=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherFinal_ex" >&5 $as_echo "$ac_cv_lib_crypto_EVP_CipherFinal_ex" >&6; } if test "x$ac_cv_lib_crypto_EVP_CipherFinal_ex" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_evp_cipher=no fi if test "x$ac_cv_enable_openssl_evp_cipher" = xyes && "x$ac_cv_libcrypto_evp_cipher" = xno; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing OpenSSL EVP CIPHER support See \`config.log' for more details" "$LINENO" 5; } fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" = xyes; then : $as_echo "#define HAVE_EVP_CIPHER_CTX_INIT 1" >>confdefs.h fi if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" = xyes; then : $as_echo "#define HAVE_EVP_CIPHER_CTX_CLEANUP 1" >>confdefs.h fi fi if test "x$ac_cv_libcrypto_evp_cipher" != xyes; then : ac_cv_libcrypto_aes_xts=no else ac_cv_libcrypto_aes_xts=libcrypto_evp { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_xts in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_128_xts in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_128_xts+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_128_xts (); int main () { return EVP_aes_128_xts (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_128_xts=yes else ac_cv_lib_crypto_EVP_aes_128_xts=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_xts" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_128_xts" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_128_xts" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_xts=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_256_xts in -lcrypto" >&5 $as_echo_n "checking for EVP_aes_256_xts in -lcrypto... " >&6; } if ${ac_cv_lib_crypto_EVP_aes_256_xts+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EVP_aes_256_xts (); int main () { return EVP_aes_256_xts (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypto_EVP_aes_256_xts=yes else ac_cv_lib_crypto_EVP_aes_256_xts=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_256_xts" >&5 $as_echo "$ac_cv_lib_crypto_EVP_aes_256_xts" >&6; } if test "x$ac_cv_lib_crypto_EVP_aes_256_xts" = xyes; then : ac_cv_libcrypto_dummy=yes else ac_cv_libcrypto_aes_xts=no fi if test "x$ac_cv_lib_crypto_EVP_aes_128_xts" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_256_xts" = xyes; then : $as_echo "#define HAVE_EVP_CRYPTO_AES_XTS 1" >>confdefs.h fi fi fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_aes_cbc" = xno; then : ac_cv_libcaes_aes_cbc=local else ac_cv_libcaes_aes_cbc=$ac_cv_libcrypto_aes_cbc fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno; then : ac_cv_libcaes_aes_ecb=local else ac_cv_libcaes_aes_ecb=$ac_cv_libcrypto_aes_ecb fi if test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_aes_xts" = xno; then : ac_cv_libcaes_aes_xts=local else ac_cv_libcaes_aes_xts=$ac_cv_libcrypto_aes_xts fi ac_cv_libcaes_CPPFLAGS="-I../libcaes"; ac_cv_libcaes_LIBADD="../libcaes/libcaes.la"; ac_cv_libcaes=local $as_echo "#define HAVE_LOCAL_LIBCAES 1" >>confdefs.h HAVE_LOCAL_LIBCAES=1 fi if test "x$ac_cv_libcaes" = xlocal; then HAVE_LOCAL_LIBCAES_TRUE= HAVE_LOCAL_LIBCAES_FALSE='#' else HAVE_LOCAL_LIBCAES_TRUE='#' HAVE_LOCAL_LIBCAES_FALSE= fi if test "x$ac_cv_libcaes_CPPFLAGS" != "x"; then : LIBCAES_CPPFLAGS=$ac_cv_libcaes_CPPFLAGS fi if test "x$ac_cv_libcaes_LIBADD" != "x"; then : LIBCAES_LIBADD=$ac_cv_libcaes_LIBADD fi if test "x$ac_cv_libcaes" = xyes; then : ax_libcaes_pc_libs_private=-lcaes fi if test "x$ac_cv_libcaes" = xyes; then : ax_libcaes_spec_requires=libcaes ax_libcaes_spec_build_requires=libcaes-devel fi for ac_func in bindtextdomain do : ac_fn_c_check_func "$LINENO" "bindtextdomain" "ac_cv_func_bindtextdomain" if test "x$ac_cv_func_bindtextdomain" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BINDTEXTDOMAIN 1 _ACEOF fi done # Check whether --enable-verbose-output was given. if test "${enable_verbose_output+set}" = set; then : enableval=$enable_verbose_output; ac_cv_enable_verbose_output=$enableval else ac_cv_enable_verbose_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable verbose output" >&5 $as_echo_n "checking whether to enable enable verbose output... " >&6; } if ${ac_cv_enable_verbose_output+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_verbose_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_verbose_output" >&5 $as_echo "$ac_cv_enable_verbose_output" >&6; } if test "x$ac_cv_enable_verbose_output" != xno ; then : $as_echo "#define HAVE_VERBOSE_OUTPUT 1" >>confdefs.h ac_cv_enable_verbose_output=yes fi # Check whether --enable-debug-output was given. if test "${enable_debug_output+set}" = set; then : enableval=$enable_debug_output; ac_cv_enable_debug_output=$enableval else ac_cv_enable_debug_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable debug output" >&5 $as_echo_n "checking whether to enable enable debug output... " >&6; } if ${ac_cv_enable_debug_output+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_debug_output=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_debug_output" >&5 $as_echo "$ac_cv_enable_debug_output" >&6; } if test "x$ac_cv_enable_debug_output" != xno ; then : $as_echo "#define HAVE_DEBUG_OUTPUT 1" >>confdefs.h ac_cv_enable_debug_output=yes fi if test "x$enable_shared" = xyes; then : case $host in #( *cygwin* | *mingw*) : $as_echo "#define HAVE_DLLMAIN 1" >>confdefs.h HAVE_DLLMAIN=1 ;; #( *) : ;; esac fi # Check whether --with-pyprefix was given. if test "${with_pyprefix+set}" = set; then : withval=$with_pyprefix; ac_cv_with_pyprefix=$withval else ac_cv_with_pyprefix=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix" >&5 $as_echo_n "checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix... " >&6; } if ${ac_cv_with_pyprefix+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_pyprefix=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pyprefix" >&5 $as_echo "$ac_cv_with_pyprefix" >&6; } # Check whether --enable-python was given. if test "${enable_python+set}" = set; then : enableval=$enable_python; ac_cv_enable_python=$enableval else ac_cv_enable_python=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python bindings" >&5 $as_echo_n "checking whether to enable build Python bindings... " >&6; } if ${ac_cv_enable_python+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_python=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python" >&5 $as_echo "$ac_cv_enable_python" >&6; } # Check whether --with-pythondir was given. if test "${with_pythondir+set}" = set; then : withval=$with_pythondir; ac_cv_with_pythondir=$withval else ac_cv_with_pythondir=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python directory (pythondir)" >&5 $as_echo_n "checking whether to use use to specify the Python directory (pythondir)... " >&6; } if ${ac_cv_with_pythondir+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_pythondir=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir" >&5 $as_echo "$ac_cv_with_pythondir" >&6; } # Check whether --enable-python2 was given. if test "${enable_python2+set}" = set; then : enableval=$enable_python2; ac_cv_enable_python2=$enableval else ac_cv_enable_python2=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python 2 bindings" >&5 $as_echo_n "checking whether to enable build Python 2 bindings... " >&6; } if ${ac_cv_enable_python2+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_python2=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python2" >&5 $as_echo "$ac_cv_enable_python2" >&6; } # Check whether --with-pythondir2 was given. if test "${with_pythondir2+set}" = set; then : withval=$with_pythondir2; ac_cv_with_pythondir2=$withval else ac_cv_with_pythondir2=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python 2 directory (pythondir2)" >&5 $as_echo_n "checking whether to use use to specify the Python 2 directory (pythondir2)... " >&6; } if ${ac_cv_with_pythondir2+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_pythondir2=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir2" >&5 $as_echo "$ac_cv_with_pythondir2" >&6; } # Check whether --enable-python3 was given. if test "${enable_python3+set}" = set; then : enableval=$enable_python3; ac_cv_enable_python3=$enableval else ac_cv_enable_python3=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python 3 bindings" >&5 $as_echo_n "checking whether to enable build Python 3 bindings... " >&6; } if ${ac_cv_enable_python3+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_python3=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python3" >&5 $as_echo "$ac_cv_enable_python3" >&6; } # Check whether --with-pythondir3 was given. if test "${with_pythondir3+set}" = set; then : withval=$with_pythondir3; ac_cv_with_pythondir3=$withval else ac_cv_with_pythondir3=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python 3 directory (pythondir3)" >&5 $as_echo_n "checking whether to use use to specify the Python 3 directory (pythondir3)... " >&6; } if ${ac_cv_with_pythondir3+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_pythondir3=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir3" >&5 $as_echo "$ac_cv_with_pythondir3" >&6; } if test "x${ac_cv_enable_python}" != xno; then : if test "x${PYTHON_VERSION}" != x; then : ax_python_progs="python${PYTHON_VERSION}" else ax_python_progs="python python2 python2.7 python2.6 python2.5 python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0" fi for ac_prog in $ax_python_progs do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PYTHON+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PYTHON"; then ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PYTHON="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PYTHON=$ac_cv_prog_PYTHON if test -n "$PYTHON"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 $as_echo "$PYTHON" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PYTHON" && break done if test "x${PYTHON}" != x; then : ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write(sys.version[:3])" 2>/dev/null`; PYTHON_VERSION=$ax_prog_python_version ax_prog_python_platform=`${PYTHON} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; PYTHON_PLATFORM=$ax_prog_python_platform else as_fn_error $? "Unable to find python" "$LINENO" 5 fi PYTHON=$PYTHON if test "x${PYTHON}" != x; then : for ac_prog in python${PYTHON_VERSION}-config python-config do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PYTHON_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PYTHON_CONFIG"; then ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PYTHON_CONFIG="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG if test -n "$PYTHON_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 $as_echo "$PYTHON_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PYTHON_CONFIG" && break done fi if test "x${PYTHON_CONFIG}" = x; then : as_fn_error $? "Unable to find python-config" "$LINENO" 5 fi PYTHON_CONFIG=$PYTHON_CONFIG if test "x${PYTHON_CONFIG}" != x; then : PYTHON_INCLUDES=`${PYTHON_CONFIG} --includes 2>/dev/null`; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 $as_echo_n "checking for Python includes... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5 $as_echo "$PYTHON_INCLUDES" >&6; } PYTHON_LDFLAGS=`${PYTHON_CONFIG} --ldflags 2>/dev/null`; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python libraries" >&5 $as_echo_n "checking for Python libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 $as_echo "$PYTHON_LDFLAGS" >&6; } case $host_os in #( cygwin*) : PYTHON_LDFLAGS="${PYTHON_LDFLAGS} -no-undefined" ;; #( *) : ;; #( *) : ;; esac BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON_INCLUDES}" for ac_header in Python.h do : ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" if test "x$ac_cv_header_Python_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PYTHON_H 1 _ACEOF ac_cv_header_python_h=yes else ac_cv_header_python_h=no fi done CPPFLAGS="${BACKUP_CPPFLAGS}" fi if test "x${ac_cv_header_python_h}" != xyes; then : ac_cv_enable_python=no else ac_cv_enable_python=$PYTHON_VERSION PYTHON_CPPFLAGS=$PYTHON_INCLUDES PYTHON_LDFLAGS=$PYTHON_LDFLAGS if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python_prefix="\${prefix}" else ax_python_prefix=`${PYTHON_CONFIG} --prefix 2>/dev/null` fi PYTHON_PREFIX=$ax_python_prefix if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python_exec_prefix="\${exec_prefix}" else ax_python_exec_prefix=`${PYTHON_CONFIG} --exec-prefix 2>/dev/null` fi PYTHON_EXEC_PREFIX=$ax_python_exec_prefix ax_python_pythondir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; if test "x${ac_cv_with_pythondir}" = x || test "x${ac_cv_with_pythondir}" = xno; then : if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python_pythondir="${ax_python_prefix}/${ax_python_pythondir_suffix}" else ax_python_pythondir=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib() " 2>/dev/null` fi else ax_python_pythondir=$ac_cv_with_pythondir fi pythondir=$ax_python_pythondir ax_python_pyexecdir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python_library_dir=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(True) " 2>/dev/null`; if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python_pyexecdir="${ax_python_exec_prefix}/${ax_python_pyexecdir_suffix}" else ax_python_pyexecdir=$ax_python_library_dir fi pyexecdir=$ax_python_pyexecdir PYTHON_LIBRARY_DIR=$ax_python_pyexecdir_suffix PYTHON_PACKAGE_DIR=$ax_python_library_dir fi fi if test "x${ac_cv_enable_python2}" != xno; then : ax_python2_progs="python2 python2.7 python2.6 python2.5" for ac_prog in $ax_python2_progs do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PYTHON2+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PYTHON2"; then ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PYTHON2="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PYTHON2=$ac_cv_prog_PYTHON2 if test -n "$PYTHON2"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5 $as_echo "$PYTHON2" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PYTHON2" && break done if test "x${PYTHON2}" != x; then : ax_prog_python2_version=`${PYTHON2} -c "import sys; sys.stdout.write(sys.version[:3])" 2>/dev/null`; PYTHON2_VERSION=$ax_prog_python2_version ax_prog_python2_platform=`${PYTHON2} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; PYTHON2_PLATFORM=$ax_prog_python2_platform else as_fn_error $? "Unable to find python2" "$LINENO" 5 fi PYTHON2=$PYTHON2 if test "x${PYTHON2}" != x; then : for ac_prog in python2-config do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PYTHON2_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PYTHON2_CONFIG"; then ac_cv_prog_PYTHON2_CONFIG="$PYTHON2_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PYTHON2_CONFIG="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PYTHON2_CONFIG=$ac_cv_prog_PYTHON2_CONFIG if test -n "$PYTHON2_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_CONFIG" >&5 $as_echo "$PYTHON2_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PYTHON2_CONFIG" && break done fi if test "x${PYTHON2_CONFIG}" = x; then : as_fn_error $? "Unable to find python2-config" "$LINENO" 5 fi PYTHON2_CONFIG=$PYTHON2_CONFIG if test "x${PYTHON2_CONFIG}" != x; then : PYTHON2_INCLUDES=`${PYTHON2_CONFIG} --includes 2>/dev/null`; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python verison 2 includes" >&5 $as_echo_n "checking for Python verison 2 includes... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_INCLUDES" >&5 $as_echo "$PYTHON2_INCLUDES" >&6; } PYTHON2_LDFLAGS=`${PYTHON2_CONFIG} --ldflags 2>/dev/null`; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 2 libraries" >&5 $as_echo_n "checking for Python 2 libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_LDFLAGS" >&5 $as_echo "$PYTHON2_LDFLAGS" >&6; } case $host_os in #( cygwin*) : PYTHON2_LDFLAGS="${PYTHON2_LDFLAGS} -no-undefined" ;; #( *) : ;; #( *) : ;; esac BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON2_INCLUDES}" for ac_header in Python.h do : ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" if test "x$ac_cv_header_Python_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PYTHON_H 1 _ACEOF ac_cv_header_python2_h=yes else ac_cv_header_python2_h=no fi done CPPFLAGS="${BACKUP_CPPFLAGS}" fi if test "x${ac_cv_header_python2_h}" != xyes; then : ac_cv_enable_python2=no else ac_cv_enable_python2=$PYTHON2_VERSION PYTHON2_CPPFLAGS=$PYTHON2_INCLUDES PYTHON2_LDFLAGS=$PYTHON2_LDFLAGS if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python2_prefix="\${prefix}" else ax_python2_prefix=`${PYTHON2_CONFIG} --prefix 2>/dev/null` fi PYTHON2_PREFIX=$ax_python2_prefix if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python2_exec_prefix="\${exec_prefix}" else ax_python2_exec_prefix=`${PYTHON2_CONFIG} --exec-prefix 2>/dev/null` fi PYTHON2_EXEC_PREFIX=$ax_python2_exec_prefix ax_python2_pythondir_suffix=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; if test "x${ac_cv_with_pythondir2}" = x || test "x${ac_cv_with_pythondir2}" = xno; then : if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python2_pythondir="${ax_python_prefix}/${ax_python2_pythondir_suffix}" else ax_python2_pythondir=`${PYTHON2} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib() " 2>/dev/null` fi else ax_python2_pythondir=$ac_cv_with_pythondir2 fi pythondir2=$ax_python2_pythondir ax_python2_pyexecdir_suffix=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python2_library_dir=`${PYTHON2} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(True) " 2>/dev/null`; if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python2_pyexecdir="${ax_python2_exec_prefix}/${ax_python2_pyexecdir_suffix}" else ax_python2_pyexecdir=$ax_python2_library_dir fi pyexecdir2=$ax_python2_pyexecdir PYTHON2_LIBRARY_DIR=$ax_python2_pyexecdir_suffix PYTHON2_PACKAGE_DIR=$ax_python2_library_dir fi fi if test "x${ac_cv_enable_python3}" != xno; then : ax_python3_progs="python3 python3.4 python3.3 python3.2 python3.1 python3.0" for ac_prog in $ax_python3_progs do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PYTHON3+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PYTHON3"; then ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PYTHON3="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PYTHON3=$ac_cv_prog_PYTHON3 if test -n "$PYTHON3"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 $as_echo "$PYTHON3" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PYTHON3" && break done if test "x${PYTHON3}" != x; then : ax_prog_python3_version=`${PYTHON3} -c "import sys; sys.stdout.write(sys.version[:3])" 2>/dev/null`; PYTHON3_VERSION=$ax_prog_python3_version ax_prog_python3_platform=`${PYTHON3} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; PYTHON3_PLATFORM=$ax_prog_python3_platform else as_fn_error $? "Unable to find python3" "$LINENO" 5 fi PYTHON3=$PYTHON3 if test "x${PYTHON3}" != x; then : for ac_prog in python3-config do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PYTHON3_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PYTHON3_CONFIG"; then ac_cv_prog_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PYTHON3_CONFIG="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PYTHON3_CONFIG=$ac_cv_prog_PYTHON3_CONFIG if test -n "$PYTHON3_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5 $as_echo "$PYTHON3_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PYTHON3_CONFIG" && break done fi if test "x${PYTHON3_CONFIG}" = x; then : as_fn_error $? "Unable to find python3-config" "$LINENO" 5 fi PYTHON3_CONFIG=$PYTHON3_CONFIG if test "x${PYTHON3_CONFIG}" != x; then : PYTHON3_INCLUDES=`${PYTHON3_CONFIG} --includes 2>/dev/null`; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python verison 3 includes" >&5 $as_echo_n "checking for Python verison 3 includes... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_INCLUDES" >&5 $as_echo "$PYTHON3_INCLUDES" >&6; } PYTHON3_LDFLAGS=`${PYTHON3_CONFIG} --ldflags 2>/dev/null`; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3 libraries" >&5 $as_echo_n "checking for Python 3 libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_LDFLAGS" >&5 $as_echo "$PYTHON3_LDFLAGS" >&6; } case $host_os in #( cygwin*) : PYTHON3_LDFLAGS="${PYTHON3_LDFLAGS} -no-undefined" ;; #( *) : ;; #( *) : ;; esac BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON3_INCLUDES}" for ac_header in Python.h do : ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" if test "x$ac_cv_header_Python_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PYTHON_H 1 _ACEOF ac_cv_header_python3_h=yes else ac_cv_header_python3_h=no fi done CPPFLAGS="${BACKUP_CPPFLAGS}" fi if test "x${ac_cv_header_python3_h}" != xyes; then : ac_cv_enable_python3=no else ac_cv_enable_python3=$PYTHON3_VERSION PYTHON3_CPPFLAGS=$PYTHON3_INCLUDES PYTHON3_LDFLAGS=$PYTHON3_LDFLAGS if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python3_prefix="\${prefix}" else ax_python3_prefix=`${PYTHON3_CONFIG} --prefix 2>/dev/null` fi PYTHON3_PREFIX=$ax_python3_prefix if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python3_exec_prefix="\${exec_prefix}" else ax_python3_exec_prefix=`${PYTHON3_CONFIG} --exec-prefix 2>/dev/null` fi PYTHON3_EXEC_PREFIX=$ax_python3_exec_prefix ax_python3_pythondir_suffix=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; if test "x${ac_cv_with_pythondir3}" = x || test "x${ac_cv_with_pythondir3}" = xno; then : if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python3_pythondir="${ax_python_prefix}/${ax_python3_pythondir_suffix}" else ax_python3_pythondir=`${PYTHON3} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib() " 2>/dev/null` fi else ax_python3_pythondir=$ac_cv_with_pythondir3 fi pythondir3=$ax_python3_pythondir ax_python3_pyexecdir_suffix=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python3_library_dir=`${PYTHON3} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(True) " 2>/dev/null`; if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : ax_python3_pyexecdir="${ax_python3_exec_prefix}/${ax_python3_pyexecdir_suffix}" else ax_python3_pyexecdir=$ax_python3_library_dir fi pyexecdir3=$ax_python3_pyexecdir PYTHON3_LIBRARY_DIR=$ax_python3_pyexecdir_suffix PYTHON3_PACKAGE_DIR=$ax_python3_library_dir fi fi if test "x${ac_cv_enable_python}" != xno; then HAVE_PYTHON_TRUE= HAVE_PYTHON_FALSE='#' else HAVE_PYTHON_TRUE='#' HAVE_PYTHON_FALSE= fi if test "x${ac_cv_enable_python2}" != xno; then HAVE_PYTHON2_TRUE= HAVE_PYTHON2_FALSE='#' else HAVE_PYTHON2_TRUE='#' HAVE_PYTHON2_FALSE= fi if test "x${ac_cv_enable_python3}" != xno; then HAVE_PYTHON3_TRUE= HAVE_PYTHON3_FALSE='#' else HAVE_PYTHON3_TRUE='#' HAVE_PYTHON3_FALSE= fi if test "x${ac_cv_enable_python}" != xno || test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno; then HAVE_PYTHON_TESTS_TRUE= HAVE_PYTHON_TESTS_FALSE='#' else HAVE_PYTHON_TESTS_TRUE='#' HAVE_PYTHON_TESTS_FALSE= fi if test "x${ac_cv_enable_python}" = xno; then : if test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno; then : if test "x${ac_cv_enable_python2}" != xno; then : ac_cv_enable_python=${ac_cv_enable_python2} else ac_cv_enable_python="" fi if test "x${ac_cv_enable_python3}" != xno; then : if test "x${ac_cv_enable_python}" != x; then : ac_cv_enable_python="${ac_cv_enable_python}, " fi ac_cv_enable_python="${ac_cv_enable_python}${ac_cv_enable_python3}" fi fi fi if test "x${ac_cv_enable_python}" != xno || test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno; then : for ac_header in stdarg.h varargs.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing headers: stdarg.h and varargs.h See \`config.log' for more details" "$LINENO" 5; } fi fi # Check whether --with-libfuse was given. if test "${with_libfuse+set}" = set; then : withval=$with_libfuse; ac_cv_with_libfuse=$withval else ac_cv_with_libfuse=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfuse in includedir and libdir or in the specified DIR, or no if not to use libfuse" >&5 $as_echo_n "checking whether to use search for libfuse in includedir and libdir or in the specified DIR, or no if not to use libfuse... " >&6; } if ${ac_cv_with_libfuse+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_with_libfuse=auto-detect fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfuse" >&5 $as_echo "$ac_cv_with_libfuse" >&6; } if test "x$ac_cv_with_libfuse" != x && test "x$ac_cv_with_libfuse" != xno && test "x$ac_cv_with_libfuse" != xauto-detect; then : if test -d "$ac_cv_with_libfuse"; then : CFLAGS="$CFLAGS -I${ac_cv_with_libfuse}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfuse}/lib" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no such directory: $ac_cv_with_libfuse" >&5 $as_echo "$as_me: WARNING: no such directory: $ac_cv_with_libfuse" >&2;} fi fi if test "x$ac_cv_with_libfuse" = xno; then : ac_cv_libfuse=no else if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse" >&5 $as_echo_n "checking for fuse... " >&6; } if test -n "$fuse_CFLAGS"; then pkg_cv_fuse_CFLAGS="$fuse_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_fuse_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$fuse_LIBS"; then pkg_cv_fuse_LIBS="$fuse_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6\""; } >&5 ($PKG_CONFIG --exists --print-errors "fuse >= 2.6") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_fuse_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then fuse_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse >= 2.6" 2>&1` else fuse_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse >= 2.6" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$fuse_PKG_ERRORS" >&5 ac_cv_libfuse=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ac_cv_libfuse=no else fuse_CFLAGS=$pkg_cv_fuse_CFLAGS fuse_LIBS=$pkg_cv_fuse_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_cv_libfuse=libfuse fi fi if test "x$ac_cv_libfuse" = xlibfuse; then : ac_cv_libfuse_CPPFLAGS="$pkg_cv_fuse_CFLAGS" ac_cv_libfuse_LIBADD="$pkg_cv_fuse_LIBS" else for ac_header in fuse.h do : ac_fn_c_check_header_mongrel "$LINENO" "fuse.h" "ac_cv_header_fuse_h" "$ac_includes_default" if test "x$ac_cv_header_fuse_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FUSE_H 1 _ACEOF ac_cv_header_fuse_h=yes else ac_cv_header_fuse_h=no fi done if test "x$ac_cv_header_fuse_h" = xno; then : { ac_cv_header_fuse_h=; unset ac_cv_header_fuse_h;} CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" for ac_header in fuse.h do : ac_fn_c_check_header_mongrel "$LINENO" "fuse.h" "ac_cv_header_fuse_h" "$ac_includes_default" if test "x$ac_cv_header_fuse_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FUSE_H 1 _ACEOF fi done fi if test "x$ac_cv_header_fuse_h" = xno; then : ac_cv_libfuse=no else ac_cv_libfuse=libfuse { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_daemonize in -lfuse" >&5 $as_echo_n "checking for fuse_daemonize in -lfuse... " >&6; } if ${ac_cv_lib_fuse_fuse_daemonize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_daemonize (); int main () { return fuse_daemonize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fuse_fuse_daemonize=yes else ac_cv_lib_fuse_fuse_daemonize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_daemonize" >&5 $as_echo "$ac_cv_lib_fuse_fuse_daemonize" >&6; } if test "x$ac_cv_lib_fuse_fuse_daemonize" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_destroy in -lfuse" >&5 $as_echo_n "checking for fuse_destroy in -lfuse... " >&6; } if ${ac_cv_lib_fuse_fuse_destroy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_destroy (); int main () { return fuse_destroy (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fuse_fuse_destroy=yes else ac_cv_lib_fuse_fuse_destroy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_destroy" >&5 $as_echo "$ac_cv_lib_fuse_fuse_destroy" >&6; } if test "x$ac_cv_lib_fuse_fuse_destroy" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_mount in -lfuse" >&5 $as_echo_n "checking for fuse_mount in -lfuse... " >&6; } if ${ac_cv_lib_fuse_fuse_mount+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_mount (); int main () { return fuse_mount (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fuse_fuse_mount=yes else ac_cv_lib_fuse_fuse_mount=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_mount" >&5 $as_echo "$ac_cv_lib_fuse_fuse_mount" >&6; } if test "x$ac_cv_lib_fuse_fuse_mount" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_new in -lfuse" >&5 $as_echo_n "checking for fuse_new in -lfuse... " >&6; } if ${ac_cv_lib_fuse_fuse_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_new (); int main () { return fuse_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fuse_fuse_new=yes else ac_cv_lib_fuse_fuse_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_new" >&5 $as_echo "$ac_cv_lib_fuse_fuse_new" >&6; } if test "x$ac_cv_lib_fuse_fuse_new" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi ac_cv_libfuse_LIBADD="-lfuse"; fi fi if test "x$ac_cv_with_libfuse" != xno && test "x$ac_cv_header_fuse_h" = xno; then : CPPFLAGS="$CPPFLAGS -DFUSE_USE_VERSION=26" for ac_header in osxfuse/fuse.h do : ac_fn_c_check_header_mongrel "$LINENO" "osxfuse/fuse.h" "ac_cv_header_osxfuse_fuse_h" "$ac_includes_default" if test "x$ac_cv_header_osxfuse_fuse_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OSXFUSE_FUSE_H 1 _ACEOF fi done if test "x$ac_cv_header_osxfuse_fuse_h" = xno; then : { ac_cv_header_osxfuse_fuse_h=; unset ac_cv_header_osxfuse_fuse_h;} CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" for ac_header in osxfuse/fuse.h do : ac_fn_c_check_header_mongrel "$LINENO" "osxfuse/fuse.h" "ac_cv_header_osxfuse_fuse_h" "$ac_includes_default" if test "x$ac_cv_header_osxfuse_fuse_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OSXFUSE_FUSE_H 1 _ACEOF fi done fi if test "x$ac_cv_header_osxfuse_fuse_h" = xno; then : ac_cv_libfuse=no else ac_cv_libfuse=libosxfuse { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_daemonize in -losxfuse" >&5 $as_echo_n "checking for fuse_daemonize in -losxfuse... " >&6; } if ${ac_cv_lib_osxfuse_fuse_daemonize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losxfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_daemonize (); int main () { return fuse_daemonize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osxfuse_fuse_daemonize=yes else ac_cv_lib_osxfuse_fuse_daemonize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_daemonize" >&5 $as_echo "$ac_cv_lib_osxfuse_fuse_daemonize" >&6; } if test "x$ac_cv_lib_osxfuse_fuse_daemonize" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_destroy in -losxfuse" >&5 $as_echo_n "checking for fuse_destroy in -losxfuse... " >&6; } if ${ac_cv_lib_osxfuse_fuse_destroy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losxfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_destroy (); int main () { return fuse_destroy (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osxfuse_fuse_destroy=yes else ac_cv_lib_osxfuse_fuse_destroy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_destroy" >&5 $as_echo "$ac_cv_lib_osxfuse_fuse_destroy" >&6; } if test "x$ac_cv_lib_osxfuse_fuse_destroy" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_mount in -losxfuse" >&5 $as_echo_n "checking for fuse_mount in -losxfuse... " >&6; } if ${ac_cv_lib_osxfuse_fuse_mount+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losxfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_mount (); int main () { return fuse_mount (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osxfuse_fuse_mount=yes else ac_cv_lib_osxfuse_fuse_mount=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_mount" >&5 $as_echo "$ac_cv_lib_osxfuse_fuse_mount" >&6; } if test "x$ac_cv_lib_osxfuse_fuse_mount" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_new in -losxfuse" >&5 $as_echo_n "checking for fuse_new in -losxfuse... " >&6; } if ${ac_cv_lib_osxfuse_fuse_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-losxfuse $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fuse_new (); int main () { return fuse_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_osxfuse_fuse_new=yes else ac_cv_lib_osxfuse_fuse_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_new" >&5 $as_echo "$ac_cv_lib_osxfuse_fuse_new" >&6; } if test "x$ac_cv_lib_osxfuse_fuse_new" = xyes; then : ac_cv_libfuse_dummy=yes else ac_cv_libfuse=no fi ac_cv_libfuse_LIBADD="-losxfuse"; fi fi fi if test "x$ac_cv_libfuse" = xlibfuse; then : $as_echo "#define HAVE_LIBFUSE 1" >>confdefs.h fi if test "x$ac_cv_libfuse" = xlibosxfuse; then : $as_echo "#define HAVE_LIBOSXFUSE 1" >>confdefs.h fi if test "x$ac_cv_libfuse" != xno; then : HAVE_LIBFUSE=1 else HAVE_LIBFUSE=0 fi if test "x$ac_cv_libfuse_CPPFLAGS" != "x"; then : LIBFUSE_CPPFLAGS=$ac_cv_libfuse_CPPFLAGS fi if test "x$ac_cv_libfuse_LIBADD" != "x"; then : LIBFUSE_LIBADD=$ac_cv_libfuse_LIBADD fi if test "x$ac_cv_libfuse" = xlibfuse; then : ax_libfuse_pc_libs_private=-lfuse fi if test "x$ac_cv_libfuse" = xlibosxfuse; then : ax_libfuse_pc_libs_private=-losxfuse fi if test "x$ac_cv_libfuse" = xlibfuse; then : ax_libfuse_spec_requires=fuse-libs ax_libfuse_spec_build_requires=fuse-devel fi for ac_header in signal.h sys/signal.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in close getopt setvbuf do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_close" != xyes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "Missing function: close See \`config.log' for more details" "$LINENO" 5; } fi for ac_header in errno.h do : ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" if test "x$ac_cv_header_errno_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ERRNO_H 1 _ACEOF fi done if test "x$ac_cv_enable_winapi" = xno; then : for ac_func in getegid geteuid do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done fi # Check whether --enable-static-executables was given. if test "${enable_static_executables+set}" = set; then : enableval=$enable_static_executables; ac_cv_enable_static_executables=$enableval else ac_cv_enable_static_executables=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build static executables (binaries)" >&5 $as_echo_n "checking whether to enable build static executables (binaries)... " >&6; } if ${ac_cv_enable_static_executables+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_enable_static_executables=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_static_executables" >&5 $as_echo "$ac_cv_enable_static_executables" >&6; } if test "x$ac_cv_enable_static_executables" != xno; then : STATIC_LDFLAGS="-all-static"; ac_cv_enable_static_executables=yes enable_shared=no fi if test "x$enable_shared" = xyes && test "x$ac_cv_enable_static_executables" = xno; then : case $host in #( *cygwin* | *mingw*) : LIBFSAPFS_DLL_IMPORT="-DLIBFSAPFS_DLL_IMPORT" ;; #( *) : ;; esac fi for ac_header in dlfcn.h do : ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done for ac_func in fmemopen getopt mkstemp unlink do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 $as_echo_n "checking for dlsym in -ldl... " >&6; } if ${ac_cv_lib_dl_dlsym+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlsym (); int main () { return dlsym (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlsym=yes else ac_cv_lib_dl_dlsym=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 $as_echo "$ac_cv_lib_dl_dlsym" >&6; } if test "x$ac_cv_lib_dl_dlsym" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBDL 1 _ACEOF LIBS="-ldl $LIBS" fi if test "x$lt_cv_prog_gnu_ld" = xyes && test "x$ac_cv_lib_dl_dlsym" = xyes; then : $as_echo "#define HAVE_GNU_DL_DLSYM 1" >>confdefs.h fi if test "x$enable_shared" = xyes; then : case $host in #( *cygwin* | *mingw* | *msys*) : $as_echo "#define HAVE_DLLMAIN 1" >>confdefs.h HAVE_DLLMAIN=1 LIBFSAPFS_DLL_EXPORT="-DLIBFSAPFS_DLL_EXPORT" LIBFSAPFS_DLL_IMPORT="-DLIBFSAPFS_DLL_IMPORT" ;; #( *) : ;; esac fi CFLAGS="$CFLAGS -Wall"; if test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcthreads" = xyes || test "x$ac_cv_libcdata" = xyes || test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes || test "x$ac_cv_libbfio" = xyes || test "x$ac_cv_libfcache" = xyes || test "x$ac_cv_libfdata" = xyes || test "x$ac_cv_libfdatetime" = xyes || test "x$ac_cv_libfguid" = xyes || test "x$ac_cv_zlib" != xno || test "x$ac_cv_libhmac" = xyes || test "x$ac_cv_libcaes" = xyes || test "x$ac_cv_libcrypto" != xno; then : libfsapfs_spec_requires=Requires: fi if test "x$ac_cv_libfuse" != xno; then : libfsapfs_spec_tools_build_requires=BuildRequires: fi DPKG_DATE=`date -R 2> /dev/null` SPEC_DATE=`date +"%a %b %e %Y" 2> /dev/null` ac_config_files="$ac_config_files Makefile" ac_config_files="$ac_config_files include/Makefile" ac_config_files="$ac_config_files common/Makefile" ac_config_files="$ac_config_files libcerror/Makefile" ac_config_files="$ac_config_files libcthreads/Makefile" ac_config_files="$ac_config_files libcdata/Makefile" ac_config_files="$ac_config_files libclocale/Makefile" ac_config_files="$ac_config_files libcnotify/Makefile" ac_config_files="$ac_config_files libcsplit/Makefile" ac_config_files="$ac_config_files libuna/Makefile" ac_config_files="$ac_config_files libcfile/Makefile" ac_config_files="$ac_config_files libcpath/Makefile" ac_config_files="$ac_config_files libbfio/Makefile" ac_config_files="$ac_config_files libfcache/Makefile" ac_config_files="$ac_config_files libfdata/Makefile" ac_config_files="$ac_config_files libfdatetime/Makefile" ac_config_files="$ac_config_files libfguid/Makefile" ac_config_files="$ac_config_files libhmac/Makefile" ac_config_files="$ac_config_files libcaes/Makefile" ac_config_files="$ac_config_files libfsapfs/Makefile" ac_config_files="$ac_config_files pyfsapfs/Makefile" ac_config_files="$ac_config_files pyfsapfs-python2/Makefile" ac_config_files="$ac_config_files pyfsapfs-python3/Makefile" ac_config_files="$ac_config_files fsapfstools/Makefile" ac_config_files="$ac_config_files po/Makefile.in" ac_config_files="$ac_config_files po/Makevars" ac_config_files="$ac_config_files manuals/Makefile" ac_config_files="$ac_config_files tests/Makefile" ac_config_files="$ac_config_files msvscpp/Makefile" ac_config_files="$ac_config_files include/libfsapfs.h" ac_config_files="$ac_config_files include/libfsapfs/definitions.h" ac_config_files="$ac_config_files include/libfsapfs/features.h" ac_config_files="$ac_config_files include/libfsapfs/types.h" ac_config_files="$ac_config_files libfsapfs/libfsapfs_definitions.h" ac_config_files="$ac_config_files common/types.h" ac_config_files="$ac_config_files dpkg/changelog" ac_config_files="$ac_config_files libfsapfs/libfsapfs.rc" ac_config_files="$ac_config_files libfsapfs.pc" ac_config_files="$ac_config_files libfsapfs.spec" ac_config_headers="$ac_config_headers common/config.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCERROR_TRUE}" && test -z "${HAVE_LOCAL_LIBCERROR_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCERROR\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCTHREADS_TRUE}" && test -z "${HAVE_LOCAL_LIBCTHREADS_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCTHREADS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCDATA_TRUE}" && test -z "${HAVE_LOCAL_LIBCDATA_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCDATA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCLOCALE_TRUE}" && test -z "${HAVE_LOCAL_LIBCLOCALE_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCLOCALE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCNOTIFY_TRUE}" && test -z "${HAVE_LOCAL_LIBCNOTIFY_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCNOTIFY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCSPLIT_TRUE}" && test -z "${HAVE_LOCAL_LIBCSPLIT_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCSPLIT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBUNA_TRUE}" && test -z "${HAVE_LOCAL_LIBUNA_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBUNA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCFILE_TRUE}" && test -z "${HAVE_LOCAL_LIBCFILE_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCFILE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCPATH_TRUE}" && test -z "${HAVE_LOCAL_LIBCPATH_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCPATH\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBBFIO_TRUE}" && test -z "${HAVE_LOCAL_LIBBFIO_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBBFIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBFCACHE_TRUE}" && test -z "${HAVE_LOCAL_LIBFCACHE_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBFCACHE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBFDATA_TRUE}" && test -z "${HAVE_LOCAL_LIBFDATA_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBFDATA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBFDATETIME_TRUE}" && test -z "${HAVE_LOCAL_LIBFDATETIME_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBFDATETIME\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBFGUID_TRUE}" && test -z "${HAVE_LOCAL_LIBFGUID_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBFGUID\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBHMAC_TRUE}" && test -z "${HAVE_LOCAL_LIBHMAC_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBHMAC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LOCAL_LIBCAES_TRUE}" && test -z "${HAVE_LOCAL_LIBCAES_FALSE}"; then as_fn_error $? "conditional \"HAVE_LOCAL_LIBCAES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON2_TRUE}" && test -z "${HAVE_PYTHON2_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON3_TRUE}" && test -z "${HAVE_PYTHON3_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON3\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON_TESTS_TRUE}" && test -z "${HAVE_PYTHON_TESTS_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by libfsapfs $as_me 20190210, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ libfsapfs config.status 20190210 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in AS \ DLLTOOL \ OBJDUMP \ SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; "libcerror/Makefile") CONFIG_FILES="$CONFIG_FILES libcerror/Makefile" ;; "libcthreads/Makefile") CONFIG_FILES="$CONFIG_FILES libcthreads/Makefile" ;; "libcdata/Makefile") CONFIG_FILES="$CONFIG_FILES libcdata/Makefile" ;; "libclocale/Makefile") CONFIG_FILES="$CONFIG_FILES libclocale/Makefile" ;; "libcnotify/Makefile") CONFIG_FILES="$CONFIG_FILES libcnotify/Makefile" ;; "libcsplit/Makefile") CONFIG_FILES="$CONFIG_FILES libcsplit/Makefile" ;; "libuna/Makefile") CONFIG_FILES="$CONFIG_FILES libuna/Makefile" ;; "libcfile/Makefile") CONFIG_FILES="$CONFIG_FILES libcfile/Makefile" ;; "libcpath/Makefile") CONFIG_FILES="$CONFIG_FILES libcpath/Makefile" ;; "libbfio/Makefile") CONFIG_FILES="$CONFIG_FILES libbfio/Makefile" ;; "libfcache/Makefile") CONFIG_FILES="$CONFIG_FILES libfcache/Makefile" ;; "libfdata/Makefile") CONFIG_FILES="$CONFIG_FILES libfdata/Makefile" ;; "libfdatetime/Makefile") CONFIG_FILES="$CONFIG_FILES libfdatetime/Makefile" ;; "libfguid/Makefile") CONFIG_FILES="$CONFIG_FILES libfguid/Makefile" ;; "libhmac/Makefile") CONFIG_FILES="$CONFIG_FILES libhmac/Makefile" ;; "libcaes/Makefile") CONFIG_FILES="$CONFIG_FILES libcaes/Makefile" ;; "libfsapfs/Makefile") CONFIG_FILES="$CONFIG_FILES libfsapfs/Makefile" ;; "pyfsapfs/Makefile") CONFIG_FILES="$CONFIG_FILES pyfsapfs/Makefile" ;; "pyfsapfs-python2/Makefile") CONFIG_FILES="$CONFIG_FILES pyfsapfs-python2/Makefile" ;; "pyfsapfs-python3/Makefile") CONFIG_FILES="$CONFIG_FILES pyfsapfs-python3/Makefile" ;; "fsapfstools/Makefile") CONFIG_FILES="$CONFIG_FILES fsapfstools/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "po/Makevars") CONFIG_FILES="$CONFIG_FILES po/Makevars" ;; "manuals/Makefile") CONFIG_FILES="$CONFIG_FILES manuals/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "msvscpp/Makefile") CONFIG_FILES="$CONFIG_FILES msvscpp/Makefile" ;; "include/libfsapfs.h") CONFIG_FILES="$CONFIG_FILES include/libfsapfs.h" ;; "include/libfsapfs/definitions.h") CONFIG_FILES="$CONFIG_FILES include/libfsapfs/definitions.h" ;; "include/libfsapfs/features.h") CONFIG_FILES="$CONFIG_FILES include/libfsapfs/features.h" ;; "include/libfsapfs/types.h") CONFIG_FILES="$CONFIG_FILES include/libfsapfs/types.h" ;; "libfsapfs/libfsapfs_definitions.h") CONFIG_FILES="$CONFIG_FILES libfsapfs/libfsapfs_definitions.h" ;; "common/types.h") CONFIG_FILES="$CONFIG_FILES common/types.h" ;; "dpkg/changelog") CONFIG_FILES="$CONFIG_FILES dpkg/changelog" ;; "libfsapfs/libfsapfs.rc") CONFIG_FILES="$CONFIG_FILES libfsapfs/libfsapfs.rc" ;; "libfsapfs.pc") CONFIG_FILES="$CONFIG_FILES libfsapfs.pc" ;; "libfsapfs.spec") CONFIG_FILES="$CONFIG_FILES libfsapfs.spec" ;; "common/config.h") CONFIG_HEADERS="$CONFIG_HEADERS common/config.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. Try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Assembler program. AS=$lt_AS # DLL creation program. DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: Building: libcerror support: $ac_cv_libcerror libcthreads support: $ac_cv_libcthreads libcdata support: $ac_cv_libcdata libclocale support: $ac_cv_libclocale libcnotify support: $ac_cv_libcnotify libcsplit support: $ac_cv_libcsplit libuna support: $ac_cv_libuna libcfile support: $ac_cv_libcfile libcpath support: $ac_cv_libcpath libbfio support: $ac_cv_libbfio libfcache support: $ac_cv_libfcache libfdata support: $ac_cv_libfdata libfdatetime support: $ac_cv_libfdatetime libfguid support: $ac_cv_libfguid DEFLATE compression support: $ac_cv_uncompress libhmac support: $ac_cv_libhmac SHA256 support: $ac_cv_libhmac_sha256 libcaes support: $ac_cv_libcaes AES-ECB support: $ac_cv_libcaes_aes_ecb AES-XTS support: $ac_cv_libcaes_aes_xts FUSE support: $ac_cv_libfuse Features: Multi-threading support: $ac_cv_libcthreads_multi_threading Wide character type support: $ac_cv_enable_wide_character_type fsapfstools are build as static executables: $ac_cv_enable_static_executables Python (pyfsapfs) support: $ac_cv_enable_python Verbose output: $ac_cv_enable_verbose_output Debug output: $ac_cv_enable_debug_output " >&5 $as_echo "$as_me: Building: libcerror support: $ac_cv_libcerror libcthreads support: $ac_cv_libcthreads libcdata support: $ac_cv_libcdata libclocale support: $ac_cv_libclocale libcnotify support: $ac_cv_libcnotify libcsplit support: $ac_cv_libcsplit libuna support: $ac_cv_libuna libcfile support: $ac_cv_libcfile libcpath support: $ac_cv_libcpath libbfio support: $ac_cv_libbfio libfcache support: $ac_cv_libfcache libfdata support: $ac_cv_libfdata libfdatetime support: $ac_cv_libfdatetime libfguid support: $ac_cv_libfguid DEFLATE compression support: $ac_cv_uncompress libhmac support: $ac_cv_libhmac SHA256 support: $ac_cv_libhmac_sha256 libcaes support: $ac_cv_libcaes AES-ECB support: $ac_cv_libcaes_aes_ecb AES-XTS support: $ac_cv_libcaes_aes_xts FUSE support: $ac_cv_libfuse Features: Multi-threading support: $ac_cv_libcthreads_multi_threading Wide character type support: $ac_cv_enable_wide_character_type fsapfstools are build as static executables: $ac_cv_enable_static_executables Python (pyfsapfs) support: $ac_cv_enable_python Verbose output: $ac_cv_enable_verbose_output Debug output: $ac_cv_enable_debug_output " >&6;}; libfsapfs-20190210/libuna/0000775000175000017500000000000013430101367017273 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libuna/libuna_url_stream.c0000664000175000017500000003625613430101233023152 0ustar00lordyestalordyesta00000000000000/* * Percent or URL encoded stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_url_stream.h" /* Determines the size of a url stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_url_stream_size_from_byte_stream( uint8_t *byte_stream, size_t byte_stream_size, size_t *url_stream_size, libcerror_error_t **error ) { static char *function = "libuna_url_stream_size_from_byte_stream"; size_t byte_stream_index = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( url_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid url stream size.", function ); return( -1 ); } /* TODO what about end of string character */ *url_stream_size = 0; /* Check if the byte stream contains * reserved or non-allowed characters that need to be decoded */ while( byte_stream_index < byte_stream_size ) { /* A-Z is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-Z */ if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'A' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'I' ) ) { *url_stream_size += 1; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'J' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'R' ) ) { *url_stream_size += 1; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'S' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'Z' ) ) { *url_stream_size += 1; } /* a-z is not a continous range on an EBCDIC based system * it consists of the ranges: a-i, j-r, s-z */ else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'a' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'i' ) ) { *url_stream_size += 1; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'j' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'r' ) ) { *url_stream_size += 1; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 's' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'z' ) ) { *url_stream_size += 1; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) '0' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) '9' ) ) { *url_stream_size += 1; } else if( ( byte_stream[ byte_stream_index ] == (uint8_t) '-' ) || ( byte_stream[ byte_stream_index ] == (uint8_t) '_' ) || ( byte_stream[ byte_stream_index ] == (uint8_t) '.' ) || ( byte_stream[ byte_stream_index ] == (uint8_t) '`' ) ) { *url_stream_size += 1; } else { *url_stream_size += 3; } byte_stream_index++; } return( 1 ); } /* Copies a url stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_url_stream_copy_from_byte_stream( uint8_t *url_stream, size_t url_stream_size, uint8_t *byte_stream, size_t byte_stream_size, libcerror_error_t **error ) { static char *function = "libuna_url_stream_copy_from_byte_stream"; size_t url_stream_index = 0; size_t byte_stream_index = 0; uint8_t byte_value = 0; if( url_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid url stream.", function ); return( -1 ); } if( url_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid url stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } /* TODO what about end of string character */ /* Check if the byte stream contains * reserved or non-allowed characters that need to be decoded */ while( byte_stream_index < byte_stream_size ) { if( url_stream_index >= url_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: url stream is too small.", function ); return( -1 ); } /* A-Z is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-Z */ if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'A' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'I' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'J' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'R' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'S' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'Z' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } /* a-z is not a continous range on an EBCDIC based system * it consists of the ranges: a-i, j-r, s-z */ else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'a' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'i' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 'j' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'r' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) 's' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) 'z' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } else if( ( byte_stream[ byte_stream_index ] >= (uint8_t) '0' ) && ( byte_stream[ byte_stream_index ] <= (uint8_t) '9' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } else if( ( byte_stream[ byte_stream_index ] == (uint8_t) '-' ) || ( byte_stream[ byte_stream_index ] == (uint8_t) '_' ) || ( byte_stream[ byte_stream_index ] == (uint8_t) '.' ) || ( byte_stream[ byte_stream_index ] == (uint8_t) '`' ) ) { url_stream[ url_stream_index++ ] = byte_stream[ byte_stream_index ]; } else { if( ( url_stream_index + 3 ) > url_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: url stream is too small.", function ); return( -1 ); } url_stream[ url_stream_index++ ] = (uint8_t) '%'; byte_value = byte_stream[ byte_stream_index ] >> 4; if( byte_value <= 9 ) { url_stream[ url_stream_index++ ] = (uint8_t) '0' + byte_value; } else { url_stream[ url_stream_index++ ] = (uint8_t) 'A' + byte_value; } byte_value = byte_stream[ byte_stream_index ] & 0x0f; if( byte_value < 9 ) { url_stream[ url_stream_index++ ] = (uint8_t) '0' + byte_value; } else { url_stream[ url_stream_index++ ] = (uint8_t) 'A' + byte_value; } } byte_stream_index++; } return( 1 ); } /* Determines the size of a byte stream from a url stream * Returns 1 if successful or -1 on error */ int libuna_url_stream_size_to_byte_stream( uint8_t *url_stream, size_t url_stream_size, size_t *byte_stream_size, libcerror_error_t **error ) { static char *function = "libuna_url_stream_size_to_byte_stream"; size_t url_stream_index = 0; if( url_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid url stream.", function ); return( -1 ); } if( url_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid url stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream size.", function ); return( -1 ); } *byte_stream_size = 0; while( url_stream_index < url_stream_size ) { if( url_stream[ url_stream_index ] == (uint8_t) '%' ) { url_stream_index++; if( ( url_stream_index + 2 ) > url_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: url stream is too small.", function ); return( -1 ); } if( ( url_stream[ url_stream_index ] >= (uint8_t) 'A' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'F' ) ) { } else if( ( url_stream[ url_stream_index ] >= (uint8_t) 'a' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'f' ) ) { } else if( ( url_stream[ url_stream_index ] >= (uint8_t) '0' ) && ( url_stream[ url_stream_index ] <= (uint8_t) '9' ) ) { } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid URL encoded character.", function ); return( -1 ); } url_stream_index++; if( ( url_stream[ url_stream_index ] >= (uint8_t) 'A' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'F' ) ) { } else if( ( url_stream[ url_stream_index ] >= (uint8_t) 'a' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'f' ) ) { } else if( ( url_stream[ url_stream_index ] >= (uint8_t) '0' ) && ( url_stream[ url_stream_index ] <= (uint8_t) '9' ) ) { } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid URL encoded character.", function ); return( -1 ); } url_stream_index++; } else { url_stream_index++; } *byte_stream_size += 1; } return( 1 ); } /* Copies a byte stream from a url stream * Returns 1 if successful or -1 on error */ int libuna_url_stream_copy_to_byte_stream( uint8_t *url_stream, size_t url_stream_size, uint8_t *byte_stream, size_t byte_stream_size, libcerror_error_t **error ) { static char *function = "libuna_url_stream_copy_to_byte_stream"; size_t url_stream_index = 0; size_t byte_stream_index = 0; uint8_t byte_value = 0; if( url_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid url stream.", function ); return( -1 ); } if( url_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid url stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } while( url_stream_index < url_stream_size ) { if( byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream is too small.", function ); return( -1 ); } if( url_stream[ url_stream_index ] == (uint8_t) '%' ) { url_stream_index++; if( ( url_stream_index + 2 ) > url_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: url stream is too small.", function ); return( -1 ); } if( ( url_stream[ url_stream_index ] >= (uint8_t) 'A' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'F' ) ) { byte_value = url_stream[ url_stream_index ] - (uint8_t) 'A'; } else if( ( url_stream[ url_stream_index ] >= (uint8_t) 'a' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'f' ) ) { byte_value = url_stream[ url_stream_index ] - (uint8_t) 'a'; } else if( ( url_stream[ url_stream_index ] >= (uint8_t) '0' ) && ( url_stream[ url_stream_index ] <= (uint8_t) '9' ) ) { byte_value = url_stream[ url_stream_index ] - (uint8_t) '0'; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid URL encoded character.", function ); return( -1 ); } byte_value <<= 4; url_stream_index++; if( ( url_stream[ url_stream_index ] >= (uint8_t) 'A' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'F' ) ) { byte_value += url_stream[ url_stream_index ] - (uint8_t) 'A'; } else if( ( url_stream[ url_stream_index ] >= (uint8_t) 'a' ) && ( url_stream[ url_stream_index ] <= (uint8_t) 'f' ) ) { byte_value += url_stream[ url_stream_index ] - (uint8_t) 'a'; } else if( ( url_stream[ url_stream_index ] >= (uint8_t) '0' ) && ( url_stream[ url_stream_index ] <= (uint8_t) '9' ) ) { byte_value += url_stream[ url_stream_index ] - (uint8_t) '0'; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid URL encoded character.", function ); return( -1 ); } url_stream_index++; byte_stream[ byte_stream_index++ ] = byte_value; } else { byte_stream[ byte_stream_index++ ] = url_stream[ url_stream_index++ ]; } } return( 1 ); } libfsapfs-20190210/libuna/libuna_support.c0000664000175000017500000000216613430101233022502 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_definitions.h" #include "libuna_support.h" #if !defined( HAVE_LOCAL_LIBUNA ) /* Returns the library version as a string */ const char *libuna_get_version( void ) { return( (const char *) LIBUNA_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBUNA ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_5.c0000664000175000017500000000526413430101233024332 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-5 codepage (Cyrillic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_5.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-5 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_5_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x0401, 0x0402, 0x0403, 0x0404, 0x0405, 0x0406, 0x0407, 0x0408, 0x0409, 0x040a, 0x040b, 0x040c, 0x00ad, 0x040e, 0x040f, 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f, 0x2116, 0x0451, 0x0452, 0x0453, 0x0454, 0x0455, 0x0456, 0x0457, 0x0458, 0x0459, 0x045a, 0x045b, 0x045c, 0x00a7, 0x045e, 0x045f }; /* Unicode to ASCII character lookup table for ISO 8859-5 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_5_unicode_to_byte_stream_base_0x0400[ 96 ] = { 0x1a, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0x1a, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0xfe, 0xff }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_2.c0000664000175000017500000000703413430101233024324 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-2 codepage (Central European) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_2.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-2 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_2_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x0104, 0x02d8, 0x0141, 0x00a4, 0x013d, 0x015a, 0x00a7, 0x00a8, 0x0160, 0x015e, 0x0164, 0x0179, 0x00ad, 0x017d, 0x017b, 0x00b0, 0x0105, 0x02db, 0x0142, 0x00b4, 0x013e, 0x015b, 0x02c7, 0x00b8, 0x0161, 0x015f, 0x0165, 0x017a, 0x02dd, 0x017e, 0x017c, 0x0154, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x0139, 0x0106, 0x00c7, 0x010c, 0x00c9, 0x0118, 0x00cb, 0x011a, 0x00cd, 0x00ce, 0x010e, 0x0110, 0x0143, 0x0147, 0x00d3, 0x00d4, 0x0150, 0x00d6, 0x00d7, 0x0158, 0x016e, 0x00da, 0x0170, 0x00dc, 0x00dd, 0x0162, 0x00df, 0x0155, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x013a, 0x0107, 0x00e7, 0x010d, 0x00e9, 0x0119, 0x00eb, 0x011b, 0x00ed, 0x00ee, 0x010f, 0x0111, 0x0144, 0x0148, 0x00f3, 0x00f4, 0x0151, 0x00f6, 0x00f7, 0x0159, 0x016f, 0x00fa, 0x0171, 0x00fc, 0x00fd, 0x0163, 0x02d9 }; /* Unicode to ASCII character lookup table for ISO 8859-2 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x00a0[ 128 ] = { 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0x1a, 0xa7, 0xa8, 0x1a, 0x1a, 0x1a, 0x1a, 0xad, 0x1a, 0x1a, 0xb0, 0x1a, 0x1a, 0x1a, 0xb4, 0x1a, 0x1a, 0x1a, 0xb8, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc1, 0xc2, 0x1a, 0xc4, 0x1a, 0x1a, 0xc7, 0x1a, 0xc9, 0x1a, 0xcb, 0x1a, 0xcd, 0xce, 0x1a, 0x1a, 0x1a, 0x1a, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, 0x1a, 0x1a, 0xda, 0x1a, 0xdc, 0xdd, 0x1a, 0xdf, 0x1a, 0xe1, 0xe2, 0x1a, 0xe4, 0x1a, 0x1a, 0xe7, 0x1a, 0xe9, 0x1a, 0xeb, 0x1a, 0xed, 0xee, 0x1a, 0x1a, 0x1a, 0x1a, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, 0x1a, 0x1a, 0xfa, 0x1a, 0xfc, 0xfd, 0x1a, 0x1a, 0x1a, 0x1a, 0xc3, 0xe3, 0xa1, 0xb1, 0xc6, 0xe6, 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0xcf, 0xef, 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xca, 0xea, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x0138[ 72 ] = { 0x1a, 0xc5, 0xe5, 0x1a, 0x1a, 0xa5, 0xb5, 0x1a, 0x1a, 0xa3, 0xb3, 0xd1, 0xf1, 0x1a, 0x1a, 0xd2, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd5, 0xf5, 0x1a, 0x1a, 0xc0, 0xe0, 0x1a, 0x1a, 0xd8, 0xf8, 0xa6, 0xb6, 0x1a, 0x1a, 0xaa, 0xba, 0xa9, 0xb9, 0xde, 0xfe, 0xab, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, 0xf9, 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xac, 0xbc, 0xaf, 0xbf, 0xae, 0xbe, 0x1a }; const uint8_t libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x02d8[ 8 ] = { 0xa2, 0xff, 0x1a, 0xb2, 0x1a, 0xbd, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_windows_1253.c0000664000175000017500000000656013430101233024763 0ustar00lordyestalordyesta00000000000000/* * Windows 1253 codepage (Greek) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1253.h" /* Extended ASCII to Unicode character lookup table for Windows 1253 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, 0xfffd, 0x2030, 0xfffd, 0x2039, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0xfffd, 0x2122, 0xfffd, 0x203a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x00a0, 0x0385, 0x0386, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0xfffd, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x2015, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0384, 0x00b5, 0x00b6, 0x00b7, 0x0388, 0x0389, 0x038a, 0x00bb, 0x038c, 0x00bd, 0x038e, 0x038f, 0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, 0x03a1, 0xfffd, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0x03aa, 0x03ab, 0x03ac, 0x03ad, 0x03ae, 0x03af, 0x03b0, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c2, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0x03ca, 0x03cb, 0x03cc, 0x03cd, 0x03ce, 0xfffd }; /* Unicode to ASCII character lookup table for Windows 1253 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ 32 ] = { 0xa0, 0x1a, 0x1a, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, 0xb0, 0xb1, 0xb2, 0xb3, 0x1a, 0xb5, 0xb6, 0xb7, 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0xbd, 0x1a, 0x1a, }; const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ 80 ] = { 0x1a, 0x1a, 0x1a, 0x1a, 0xb4, 0xa1, 0xa2, 0x1a, 0xb8, 0xb9, 0xba, 0x1a, 0xbc, 0x1a, 0xbe, 0xbf, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0x1a, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0x1a, }; const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0xaf, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_koi8_u.h0000664000175000017500000000263313430101233024017 0ustar00lordyestalordyesta00000000000000/* * KOI8-U codepage (Ukrainian Cyrillic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_KOI8_U_H ) #define _LIBUNA_CODEPAGE_KOI8_U_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ 64 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ 32 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_KOI8_U_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1252.c0000664000175000017500000000342013430101233024752 0ustar00lordyestalordyesta00000000000000/* * Windows 1252 codepage (Western European/Latin 1) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1252.h" /* Extended ASCII to Unicode character lookup table for Windows 1252 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ 32 ] = { 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, 0x02c6, 0x2030, 0x0160, 0x2039, 0x0152, 0xfffd, 0x017d, 0xfffd, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x02dc, 0x2122, 0x0161, 0x203a, 0x0153, 0xfffd, 0x017e, 0x0178 }; /* Unicode to ASCII character lookup table for Windows 1252 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; libfsapfs-20190210/libuna/libuna_utf32_stream.c0000664000175000017500000004652413430101233023312 0ustar00lordyestalordyesta00000000000000/* * UTF-32 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_utf32_stream.h" /* Copies an UTF-32 stream byte order mark (BOM) * Returns 1 if successful or -1 on error */ int libuna_utf32_stream_copy_byte_order_mark( uint8_t *utf32_stream, size_t utf32_stream_size, size_t *utf32_stream_index, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf32_stream_copy_byte_order_mark"; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream index.", function ); return( -1 ); } if( ( *utf32_stream_index + 4 ) > utf32_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 stream too small.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBUNA_ENDIAN_BIG ) { utf32_stream[ *utf32_stream_index ] = 0x00; utf32_stream[ *utf32_stream_index + 1 ] = 0x00; utf32_stream[ *utf32_stream_index + 2 ] = 0xfe; utf32_stream[ *utf32_stream_index + 3 ] = 0xff; } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { utf32_stream[ *utf32_stream_index ] = 0xff; utf32_stream[ *utf32_stream_index + 1 ] = 0xfe; utf32_stream[ *utf32_stream_index + 2 ] = 0x00; utf32_stream[ *utf32_stream_index + 3 ] = 0x00; } *utf32_stream_index += 4; return( 1 ); } /* Determines the size of an UTF-32 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf32_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf32_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_stream_size_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf8_string_index = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf32_stream_size = 1; while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Convert the number of characters into bytes */ *utf32_stream_size *= 4; return( 1 ); } /* Copies an UTF-32 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf32_stream_copy_from_utf8( uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_stream_copy_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf32_stream_index = 0; size_t utf8_string_index = 0; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf32_stream_copy_byte_order_mark( utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-32 byte order mark.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 stream bytes */ if( libuna_unicode_character_copy_to_utf32_stream( unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-32 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf32_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf32_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_stream_size_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf32_stream_size = 1; while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Convert the number of characters into bytes */ *utf32_stream_size *= 4; return( 1 ); } /* Copies an UTF-32 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf32_stream_copy_from_utf16( uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_stream_copy_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; size_t utf32_stream_index = 0; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf32_stream_copy_byte_order_mark( utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-32 byte order mark.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 stream bytes */ if( libuna_unicode_character_copy_to_utf32_stream( unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-32 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf32_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_stream_size_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf32_string_index = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf32_stream_size = 1; while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Convert the number of characters into bytes */ *utf32_stream_size *= 4; return( 1 ); } /* Copies an UTF-32 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf32_stream_copy_from_utf32( uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_stream_copy_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf32_stream_index = 0; size_t utf32_string_index = 0; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf32_stream_copy_byte_order_mark( utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-32 byte order mark.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 stream bytes */ if( libuna_unicode_character_copy_to_utf32_stream( unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } libfsapfs-20190210/libuna/libuna_codepage_windows_1257.h0000664000175000017500000000267213430101233024774 0ustar00lordyestalordyesta00000000000000/* * Windows 1257 codepage (Baltic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1257_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1257_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ 224 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ 24 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1257_H ) */ libfsapfs-20190210/libuna/libuna_utf32_string.c0000664000175000017500000021713013430101233023316 0ustar00lordyestalordyesta00000000000000/* * UTF-32 string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_utf32_string.h" /* Determines the size of an UTF-32 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, int codepage, size_t *utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_byte_stream"; size_t byte_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string size.", function ); return( -1 ); } *utf32_string_size = 0; if( byte_stream_size == 0 ) { return( 1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } /* Determine how many UTF-32 character byte double words are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf32_string_size += 1; } return( 1 ); } /* Copies an UTF-32 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_copy_from_byte_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_copy_from_byte_stream"; size_t utf32_string_index = 0; if( libuna_utf32_string_with_index_copy_from_byte_stream( utf32_string, utf32_string_size, &utf32_string_index, byte_stream, byte_stream_size, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy byte stream to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-32 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_with_index_copy_from_byte_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_byte_stream"; size_t byte_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing byte stream value.", function ); return( -1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 character byte double words */ if( libuna_unicode_character_copy_to_utf32( unicode_character, utf32_string, utf32_string_size, utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } utf32_string[ *utf32_string_index ] = 0; *utf32_string_index += 1; } return( 1 ); } /* Compares an UTF-32 string with a byte stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf32_string_compare_with_byte_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_compare_with_byte_stream"; size_t byte_stream_index = 0; size_t utf32_string_index = 0; libuna_unicode_character_t utf32_unicode_character = 0; libuna_unicode_character_t byte_stream_unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing byte stream value.", function ); return( -1 ); } if( utf32_string[ utf32_string_size - 1 ] == 0 ) { utf32_string_size -= 1; } /* Check if the byte stream is terminated with zero bytes */ if( byte_stream[ byte_stream_size - 1 ] == 0 ) { byte_stream_size -= 1; } while( ( utf32_string_index < utf32_string_size ) && ( byte_stream_index < byte_stream_size ) ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &utf32_unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &byte_stream_unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } if( utf32_unicode_character < byte_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf32_unicode_character > byte_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf32_string_index < utf32_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( byte_stream_index < byte_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-32 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_size_from_utf7_stream( const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_utf7_stream"; size_t utf7_stream_index = 0; libuna_unicode_character_t unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string size.", function ); return( -1 ); } *utf32_string_size = 0; if( utf7_stream_size == 0 ) { return( 1 ); } while( utf7_stream_index < utf7_stream_size ) { /* Convert the UTF-7 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf32_string_size += 1; } return( 1 ); } /* Copies an UTF-32 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_copy_from_utf7_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_copy_from_utf7_stream"; size_t utf32_string_index = 0; if( libuna_utf32_string_with_index_copy_from_utf7_stream( utf32_string, utf32_string_size, &utf32_string_index, utf7_stream, utf7_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to UTF-7 stream to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-32 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_with_index_copy_from_utf7_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_utf7_stream"; size_t utf7_stream_index = 0; libuna_unicode_character_t unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-7 stream value.", function ); return( -1 ); } while( utf7_stream_index < utf7_stream_size ) { /* Convert the UTF-7 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 character bytes */ if( libuna_unicode_character_copy_to_utf32( unicode_character, utf32_string, utf32_string_size, utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } utf32_string[ *utf32_string_index ] = 0; *utf32_string_index += 1; } return( 1 ); } /* Compares an UTF-32 string with an UTF-7 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf32_string_compare_with_utf7_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_compare_with_utf7_stream"; size_t utf32_string_index = 0; size_t utf7_stream_index = 0; libuna_unicode_character_t utf32_unicode_character = 0; libuna_unicode_character_t utf7_stream_unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-7 stream value.", function ); return( -1 ); } if( utf32_string[ utf32_string_size - 1 ] == 0 ) { utf32_string_size -= 1; } /* Check if the UTF-7 stream is terminated with zero bytes */ if( utf7_stream[ utf7_stream_size - 1 ] == 0 ) { utf7_stream_size -= 1; } while( ( utf32_string_index < utf32_string_size ) && ( utf7_stream_index < utf7_stream_size ) ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &utf32_unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the UTF-7 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &utf7_stream_unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } if( utf32_unicode_character < utf7_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf32_unicode_character > utf7_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf32_string_index < utf32_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf7_stream_index < utf7_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-32 string from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf32_string_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_utf8"; size_t utf8_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string size.", function ); return( -1 ); } *utf32_string_size = 0; if( utf8_string_size == 0 ) { return( 1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf32_string_size += 1; } return( 1 ); } /* Copies an UTF-32 string from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf32_string_copy_from_utf8( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_copy_from_utf8"; size_t utf32_string_index = 0; if( libuna_utf32_string_with_index_copy_from_utf8( utf32_string, utf32_string_size, &utf32_string_index, utf8_string, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-8 string to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-32 string from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf32_string_with_index_copy_from_utf8( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_utf8"; size_t utf8_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 string value.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 character bytes */ if( libuna_unicode_character_copy_to_utf32( unicode_character, utf32_string, utf32_string_size, utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } utf32_string[ *utf32_string_index ] = 0; *utf32_string_index += 1; } return( 1 ); } /* Determines the size of an UTF-32 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_size_from_utf8_stream( const uint8_t *utf8_stream, size_t utf8_stream_size, size_t *utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_utf8_stream"; size_t utf8_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string size.", function ); return( -1 ); } *utf32_string_size = 0; if( utf8_stream_size == 0 ) { return( 1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } while( utf8_stream_index < utf8_stream_size ) { /* Convert the UTF-8 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf32_string_size += 1; } return( 1 ); } /* Copies an UTF-32 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_copy_from_utf8_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_copy_from_utf8_stream"; size_t utf32_string_index = 0; if( libuna_utf32_string_with_index_copy_from_utf8_stream( utf32_string, utf32_string_size, &utf32_string_index, utf8_stream, utf8_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to UTF-8 stream to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-32 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_with_index_copy_from_utf8_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_utf8_stream"; size_t utf8_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 stream value.", function ); return( -1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } while( utf8_stream_index < utf8_stream_size ) { /* Convert the UTF-8 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 character bytes */ if( libuna_unicode_character_copy_to_utf32( unicode_character, utf32_string, utf32_string_size, utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } utf32_string[ *utf32_string_index ] = 0; *utf32_string_index += 1; } return( 1 ); } /* Compares an UTF-32 string with an UTF-8 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf32_string_compare_with_utf8_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_compare_with_utf8_stream"; size_t utf32_string_index = 0; size_t utf8_stream_index = 0; libuna_unicode_character_t utf32_unicode_character = 0; libuna_unicode_character_t utf8_stream_unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 stream value.", function ); return( -1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } if( utf32_string[ utf32_string_size - 1 ] == 0 ) { utf32_string_size -= 1; } /* Check if the UTF-8 stream is terminated with zero bytes */ if( utf8_stream[ utf8_stream_size - 1 ] == 0 ) { utf8_stream_size -= 1; } while( ( utf32_string_index < utf32_string_size ) && ( utf8_stream_index < utf8_stream_size ) ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &utf32_unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_stream_unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } if( utf32_unicode_character < utf8_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf32_unicode_character > utf8_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf32_string_index < utf32_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf8_stream_index < utf8_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-32 string from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf32_string_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_utf16"; size_t utf16_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string size.", function ); return( -1 ); } *utf32_string_size = 0; if( utf16_string_size == 0 ) { return( 1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf32_string_size += 1; } return( 1 ); } /* Copies an UTF-32 string from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf32_string_copy_from_utf16( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_copy_from_utf16"; size_t utf32_string_index = 0; if( libuna_utf32_string_with_index_copy_from_utf16( utf32_string, utf32_string_size, &utf32_string_index, utf16_string, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-16 string to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-32 string from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf32_string_with_index_copy_from_utf16( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_utf16"; size_t utf16_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-16 string value.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 character bytes */ if( libuna_unicode_character_copy_to_utf32( unicode_character, utf32_string, utf32_string_size, utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } utf32_string[ *utf32_string_index ] = 0; *utf32_string_index += 1; } return( 1 ); } /* Determines the size of an UTF-32 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_size_from_utf16_stream( const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, size_t *utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_utf16_stream"; size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size % 2 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } if( utf32_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string size.", function ); return( -1 ); } *utf32_string_size = 0; if( utf16_stream_size == 0 ) { return( 1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0x0ff ) && ( utf16_stream[ 1 ] == 0x0fe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0x0fe ) && ( utf16_stream[ 1 ] == 0x0ff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf32_string_size += 1; } return( 1 ); } /* Copies an UTF-32 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_copy_from_utf16_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_copy_from_utf16_stream"; size_t utf32_string_index = 0; if( libuna_utf32_string_with_index_copy_from_utf16_stream( utf32_string, utf32_string_size, &utf32_string_index, utf16_stream, utf16_stream_size, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-16 stream to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-32 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_with_index_copy_from_utf16_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_utf16_stream"; size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size == 0 ) || ( ( utf16_stream_size % 2 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0x0ff ) && ( utf16_stream[ 1 ] == 0x0fe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0x0fe ) && ( utf16_stream[ 1 ] == 0x0ff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 character bytes */ if( libuna_unicode_character_copy_to_utf32( unicode_character, utf32_string, utf32_string_size, utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } utf32_string[ *utf32_string_index ] = 0; *utf32_string_index += 1; } return( 1 ); } /* Compares an UTF-32 string with an UTF-16 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf32_string_compare_with_utf16_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_compare_with_utf16_stream"; size_t utf16_stream_index = 0; size_t utf32_string_index = 0; libuna_unicode_character_t utf32_unicode_character = 0; libuna_unicode_character_t utf16_stream_unicode_character = 0; int read_byte_order = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size == 0 ) || ( ( utf16_stream_size % 2 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0xfe ) && ( utf16_stream[ 1 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0xff ) && ( utf16_stream[ 1 ] == 0xfe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf32_string[ utf32_string_size - 1 ] == 0 ) { utf32_string_size -= 1; } /* Check if the UTF-16 stream is terminated with zero bytes */ if( ( utf16_stream[ utf16_stream_size - 2 ] == 0 ) && ( utf16_stream[ utf16_stream_size - 1 ] == 0 ) ) { utf16_stream_size -= 2; } while( ( utf32_string_index < utf32_string_size ) && ( utf16_stream_index < utf16_stream_size ) ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &utf32_unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &utf16_stream_unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } if( utf32_unicode_character < utf16_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf32_unicode_character > utf16_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf32_string_index < utf32_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf16_stream_index < utf16_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-32 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_size_from_utf32_stream( const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, size_t *utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_utf32_stream"; size_t utf32_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size % 4 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } if( utf32_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string size.", function ); return( -1 ); } *utf32_string_size = 0; if( utf32_stream_size == 0 ) { return( 1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf32_stream_index + 1 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } /* Determine how many UTF-32 character bytes are required */ if( libuna_unicode_character_size_to_utf32( unicode_character, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf32_string_size += 1; } return( 1 ); } /* Copies an UTF-32 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_copy_from_utf32_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_copy_from_utf32_stream"; size_t utf32_string_index = 0; if( libuna_utf32_string_with_index_copy_from_utf32_stream( utf32_string, utf32_string_size, &utf32_string_index, utf32_stream, utf32_stream_size, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-32 stream to UTF-32 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-32 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf32_string_with_index_copy_from_utf32_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_utf32_stream"; size_t utf32_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size == 0 ) || ( ( utf32_stream_size % 4 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf32_stream_index + 1 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-32 character bytes */ if( libuna_unicode_character_copy_to_utf32( unicode_character, utf32_string, utf32_string_size, utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-32.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } utf32_string[ *utf32_string_index ] = 0; *utf32_string_index += 1; } return( 1 ); } /* Compares an UTF-32 string with an UTF-32 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf32_string_compare_with_utf32_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf32_string_compare_with_utf32_stream"; size_t utf32_stream_index = 0; size_t utf32_string_index = 0; libuna_unicode_character_t utf32_unicode_character = 0; libuna_unicode_character_t utf32_stream_unicode_character = 0; int read_byte_order = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size == 0 ) || ( ( utf32_stream_size % 4 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf32_string[ utf32_string_size - 1 ] == 0 ) { utf32_string_size -= 1; } /* Check if the UTF-32 stream is terminated with zero bytes */ if( ( utf32_stream[ utf32_stream_size - 4 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 3 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 2 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 1 ] == 0 ) ) { utf32_stream_size -= 1; } while( ( utf32_string_index < utf32_string_size ) && ( utf32_stream_index < utf32_stream_size ) ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &utf32_unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &utf32_stream_unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } if( utf32_unicode_character < utf32_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf32_unicode_character > utf32_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf32_string_index < utf32_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf32_stream_index < utf32_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } libfsapfs-20190210/libuna/libuna_codepage_windows_874.c0000664000175000017500000000610613430101233024707 0ustar00lordyestalordyesta00000000000000/* * Windows 874 codepage (Thai) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_874.h" /* Extended ASCII to Unicode character lookup table for Windows 874 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x20ac, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2026, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x00a0, 0x0e01, 0x0e02, 0x0e03, 0x0e04, 0x0e05, 0x0e06, 0x0e07, 0x0e08, 0x0e09, 0x0e0a, 0x0e0b, 0x0e0c, 0x0e0d, 0x0e0e, 0x0e0f, 0x0e10, 0x0e11, 0x0e12, 0x0e13, 0x0e14, 0x0e15, 0x0e16, 0x0e17, 0x0e18, 0x0e19, 0x0e1a, 0x0e1b, 0x0e1c, 0x0e1d, 0x0e1e, 0x0e1f, 0x0e20, 0x0e21, 0x0e22, 0x0e23, 0x0e24, 0x0e25, 0x0e26, 0x0e27, 0x0e28, 0x0e29, 0x0e2a, 0x0e2b, 0x0e2c, 0x0e2d, 0x0e2e, 0x0e2f, 0x0e30, 0x0e31, 0x0e32, 0x0e33, 0x0e34, 0x0e35, 0x0e36, 0x0e37, 0x0e38, 0x0e39, 0x0e3a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x0e3f, 0x0e40, 0x0e41, 0x0e42, 0x0e43, 0x0e44, 0x0e45, 0x0e46, 0x0e47, 0x0e48, 0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, 0x0e4d, 0x0e4e, 0x0e4f, 0x0e50, 0x0e51, 0x0e52, 0x0e53, 0x0e54, 0x0e55, 0x0e56, 0x0e57, 0x0e58, 0x0e59, 0x0e5a, 0x0e5b, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; /* Unicode to ASCII character lookup table for Windows 874 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ 96 ] = { 0x1a, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0x1a, 0x1a, 0x1a, 0x1a, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ 8 ] = { 0x91, 0x92, 0x1a, 0x1a, 0x93, 0x94, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_windows_1251.h0000664000175000017500000000305213430101233024757 0ustar00lordyestalordyesta00000000000000/* * Windows 1251 codepage (Cyrillic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1251_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1251_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ 24 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1251_H ) */ libfsapfs-20190210/libuna/libuna_libcerror.h0000664000175000017500000000263213430101233022754 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_LIBCERROR_H ) #define _LIBUNA_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBUNA_LIBCERROR_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_949.c0000664000175000017500000166253613430101233024732 0ustar00lordyestalordyesta00000000000000/* * Windows 949 codepage (Korean) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_949.h" #include "libuna_libcerror.h" #include "libuna_types.h" /* Extended ASCII to Unicode character lookup table for Windows 949 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8140[ 192 ] = { 0xfffd, 0xac02, 0xac03, 0xac05, 0xac06, 0xac0b, 0xac0c, 0xac0d, 0xac0e, 0xac0f, 0xac18, 0xac1e, 0xac1f, 0xac21, 0xac22, 0xac23, 0xac25, 0xac26, 0xac27, 0xac28, 0xac29, 0xac2a, 0xac2b, 0xac2e, 0xac32, 0xac33, 0xac34, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xac35, 0xac36, 0xac37, 0xac3a, 0xac3b, 0xac3d, 0xac3e, 0xac3f, 0xac41, 0xac42, 0xac43, 0xac44, 0xac45, 0xac46, 0xac47, 0xac48, 0xac49, 0xac4a, 0xac4c, 0xac4e, 0xac4f, 0xac50, 0xac51, 0xac52, 0xac53, 0xac55, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xac56, 0xac57, 0xac59, 0xac5a, 0xac5b, 0xac5d, 0xac5e, 0xac5f, 0xac60, 0xac61, 0xac62, 0xac63, 0xac64, 0xac65, 0xac66, 0xac67, 0xac68, 0xac69, 0xac6a, 0xac6b, 0xac6c, 0xac6d, 0xac6e, 0xac6f, 0xac72, 0xac73, 0xac75, 0xac76, 0xac79, 0xac7b, 0xac7c, 0xac7d, 0xac7e, 0xac7f, 0xac82, 0xac87, 0xac88, 0xac8d, 0xac8e, 0xac8f, 0xac91, 0xac92, 0xac93, 0xac95, 0xac96, 0xac97, 0xac98, 0xac99, 0xac9a, 0xac9b, 0xac9e, 0xaca2, 0xaca3, 0xaca4, 0xaca5, 0xaca6, 0xaca7, 0xacab, 0xacad, 0xacae, 0xacb1, 0xacb2, 0xacb3, 0xacb4, 0xacb5, 0xacb6, 0xacb7, 0xacba, 0xacbe, 0xacbf, 0xacc0, 0xacc2, 0xacc3, 0xacc5, 0xacc6, 0xacc7, 0xacc9, 0xacca, 0xaccb, 0xaccd, 0xacce, 0xaccf, 0xacd0, 0xacd1, 0xacd2, 0xacd3, 0xacd4, 0xacd6, 0xacd8, 0xacd9, 0xacda, 0xacdb, 0xacdc, 0xacdd, 0xacde, 0xacdf, 0xace2, 0xace3, 0xace5, 0xace6, 0xace9, 0xaceb, 0xaced, 0xacee, 0xacf2, 0xacf4, 0xacf7, 0xacf8, 0xacf9, 0xacfa, 0xacfb, 0xacfe, 0xacff, 0xad01, 0xad02, 0xad03, 0xad05, 0xad07, 0xad08, 0xad09, 0xad0a, 0xad0b, 0xad0e, 0xad10, 0xad12, 0xad13, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8240[ 192 ] = { 0xfffd, 0xad14, 0xad15, 0xad16, 0xad17, 0xad19, 0xad1a, 0xad1b, 0xad1d, 0xad1e, 0xad1f, 0xad21, 0xad22, 0xad23, 0xad24, 0xad25, 0xad26, 0xad27, 0xad28, 0xad2a, 0xad2b, 0xad2e, 0xad2f, 0xad30, 0xad31, 0xad32, 0xad33, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xad36, 0xad37, 0xad39, 0xad3a, 0xad3b, 0xad3d, 0xad3e, 0xad3f, 0xad40, 0xad41, 0xad42, 0xad43, 0xad46, 0xad48, 0xad4a, 0xad4b, 0xad4c, 0xad4d, 0xad4e, 0xad4f, 0xad51, 0xad52, 0xad53, 0xad55, 0xad56, 0xad57, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xad59, 0xad5a, 0xad5b, 0xad5c, 0xad5d, 0xad5e, 0xad5f, 0xad60, 0xad62, 0xad64, 0xad65, 0xad66, 0xad67, 0xad68, 0xad69, 0xad6a, 0xad6b, 0xad6e, 0xad6f, 0xad71, 0xad72, 0xad77, 0xad78, 0xad79, 0xad7a, 0xad7e, 0xad80, 0xad83, 0xad84, 0xad85, 0xad86, 0xad87, 0xad8a, 0xad8b, 0xad8d, 0xad8e, 0xad8f, 0xad91, 0xad92, 0xad93, 0xad94, 0xad95, 0xad96, 0xad97, 0xad98, 0xad99, 0xad9a, 0xad9b, 0xad9e, 0xad9f, 0xada0, 0xada1, 0xada2, 0xada3, 0xada5, 0xada6, 0xada7, 0xada8, 0xada9, 0xadaa, 0xadab, 0xadac, 0xadad, 0xadae, 0xadaf, 0xadb0, 0xadb1, 0xadb2, 0xadb3, 0xadb4, 0xadb5, 0xadb6, 0xadb8, 0xadb9, 0xadba, 0xadbb, 0xadbc, 0xadbd, 0xadbe, 0xadbf, 0xadc2, 0xadc3, 0xadc5, 0xadc6, 0xadc7, 0xadc9, 0xadca, 0xadcb, 0xadcc, 0xadcd, 0xadce, 0xadcf, 0xadd2, 0xadd4, 0xadd5, 0xadd6, 0xadd7, 0xadd8, 0xadd9, 0xadda, 0xaddb, 0xaddd, 0xadde, 0xaddf, 0xade1, 0xade2, 0xade3, 0xade5, 0xade6, 0xade7, 0xade8, 0xade9, 0xadea, 0xadeb, 0xadec, 0xaded, 0xadee, 0xadef, 0xadf0, 0xadf1, 0xadf2, 0xadf3, 0xadf4, 0xadf5, 0xadf6, 0xadf7, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8340[ 192 ] = { 0xfffd, 0xadfa, 0xadfb, 0xadfd, 0xadfe, 0xae02, 0xae03, 0xae04, 0xae05, 0xae06, 0xae07, 0xae0a, 0xae0c, 0xae0e, 0xae0f, 0xae10, 0xae11, 0xae12, 0xae13, 0xae15, 0xae16, 0xae17, 0xae18, 0xae19, 0xae1a, 0xae1b, 0xae1c, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xae1d, 0xae1e, 0xae1f, 0xae20, 0xae21, 0xae22, 0xae23, 0xae24, 0xae25, 0xae26, 0xae27, 0xae28, 0xae29, 0xae2a, 0xae2b, 0xae2c, 0xae2d, 0xae2e, 0xae2f, 0xae32, 0xae33, 0xae35, 0xae36, 0xae39, 0xae3b, 0xae3c, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xae3d, 0xae3e, 0xae3f, 0xae42, 0xae44, 0xae47, 0xae48, 0xae49, 0xae4b, 0xae4f, 0xae51, 0xae52, 0xae53, 0xae55, 0xae57, 0xae58, 0xae59, 0xae5a, 0xae5b, 0xae5e, 0xae62, 0xae63, 0xae64, 0xae66, 0xae67, 0xae6a, 0xae6b, 0xae6d, 0xae6e, 0xae6f, 0xae71, 0xae72, 0xae73, 0xae74, 0xae75, 0xae76, 0xae77, 0xae7a, 0xae7e, 0xae7f, 0xae80, 0xae81, 0xae82, 0xae83, 0xae86, 0xae87, 0xae88, 0xae89, 0xae8a, 0xae8b, 0xae8d, 0xae8e, 0xae8f, 0xae90, 0xae91, 0xae92, 0xae93, 0xae94, 0xae95, 0xae96, 0xae97, 0xae98, 0xae99, 0xae9a, 0xae9b, 0xae9c, 0xae9d, 0xae9e, 0xae9f, 0xaea0, 0xaea1, 0xaea2, 0xaea3, 0xaea4, 0xaea5, 0xaea6, 0xaea7, 0xaea8, 0xaea9, 0xaeaa, 0xaeab, 0xaeac, 0xaead, 0xaeae, 0xaeaf, 0xaeb0, 0xaeb1, 0xaeb2, 0xaeb3, 0xaeb4, 0xaeb5, 0xaeb6, 0xaeb7, 0xaeb8, 0xaeb9, 0xaeba, 0xaebb, 0xaebf, 0xaec1, 0xaec2, 0xaec3, 0xaec5, 0xaec6, 0xaec7, 0xaec8, 0xaec9, 0xaeca, 0xaecb, 0xaece, 0xaed2, 0xaed3, 0xaed4, 0xaed5, 0xaed6, 0xaed7, 0xaeda, 0xaedb, 0xaedd, 0xaede, 0xaedf, 0xaee0, 0xaee1, 0xaee2, 0xaee3, 0xaee4, 0xaee5, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8440[ 192 ] = { 0xfffd, 0xaee6, 0xaee7, 0xaee9, 0xaeea, 0xaeec, 0xaeee, 0xaeef, 0xaef0, 0xaef1, 0xaef2, 0xaef3, 0xaef5, 0xaef6, 0xaef7, 0xaef9, 0xaefa, 0xaefb, 0xaefd, 0xaefe, 0xaeff, 0xaf00, 0xaf01, 0xaf02, 0xaf03, 0xaf04, 0xaf05, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xaf06, 0xaf09, 0xaf0a, 0xaf0b, 0xaf0c, 0xaf0e, 0xaf0f, 0xaf11, 0xaf12, 0xaf13, 0xaf14, 0xaf15, 0xaf16, 0xaf17, 0xaf18, 0xaf19, 0xaf1a, 0xaf1b, 0xaf1c, 0xaf1d, 0xaf1e, 0xaf1f, 0xaf20, 0xaf21, 0xaf22, 0xaf23, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xaf24, 0xaf25, 0xaf26, 0xaf27, 0xaf28, 0xaf29, 0xaf2a, 0xaf2b, 0xaf2e, 0xaf2f, 0xaf31, 0xaf33, 0xaf35, 0xaf36, 0xaf37, 0xaf38, 0xaf39, 0xaf3a, 0xaf3b, 0xaf3e, 0xaf40, 0xaf44, 0xaf45, 0xaf46, 0xaf47, 0xaf4a, 0xaf4b, 0xaf4c, 0xaf4d, 0xaf4e, 0xaf4f, 0xaf51, 0xaf52, 0xaf53, 0xaf54, 0xaf55, 0xaf56, 0xaf57, 0xaf58, 0xaf59, 0xaf5a, 0xaf5b, 0xaf5e, 0xaf5f, 0xaf60, 0xaf61, 0xaf62, 0xaf63, 0xaf66, 0xaf67, 0xaf68, 0xaf69, 0xaf6a, 0xaf6b, 0xaf6c, 0xaf6d, 0xaf6e, 0xaf6f, 0xaf70, 0xaf71, 0xaf72, 0xaf73, 0xaf74, 0xaf75, 0xaf76, 0xaf77, 0xaf78, 0xaf7a, 0xaf7b, 0xaf7c, 0xaf7d, 0xaf7e, 0xaf7f, 0xaf81, 0xaf82, 0xaf83, 0xaf85, 0xaf86, 0xaf87, 0xaf89, 0xaf8a, 0xaf8b, 0xaf8c, 0xaf8d, 0xaf8e, 0xaf8f, 0xaf92, 0xaf93, 0xaf94, 0xaf96, 0xaf97, 0xaf98, 0xaf99, 0xaf9a, 0xaf9b, 0xaf9d, 0xaf9e, 0xaf9f, 0xafa0, 0xafa1, 0xafa2, 0xafa3, 0xafa4, 0xafa5, 0xafa6, 0xafa7, 0xafa8, 0xafa9, 0xafaa, 0xafab, 0xafac, 0xafad, 0xafae, 0xafaf, 0xafb0, 0xafb1, 0xafb2, 0xafb3, 0xafb4, 0xafb5, 0xafb6, 0xafb7, 0xafba, 0xafbb, 0xafbd, 0xafbe, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8540[ 192 ] = { 0xfffd, 0xafbf, 0xafc1, 0xafc2, 0xafc3, 0xafc4, 0xafc5, 0xafc6, 0xafca, 0xafcc, 0xafcf, 0xafd0, 0xafd1, 0xafd2, 0xafd3, 0xafd5, 0xafd6, 0xafd7, 0xafd8, 0xafd9, 0xafda, 0xafdb, 0xafdd, 0xafde, 0xafdf, 0xafe0, 0xafe1, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xafe2, 0xafe3, 0xafe4, 0xafe5, 0xafe6, 0xafe7, 0xafea, 0xafeb, 0xafec, 0xafed, 0xafee, 0xafef, 0xaff2, 0xaff3, 0xaff5, 0xaff6, 0xaff7, 0xaff9, 0xaffa, 0xaffb, 0xaffc, 0xaffd, 0xaffe, 0xafff, 0xb002, 0xb003, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb005, 0xb006, 0xb007, 0xb008, 0xb009, 0xb00a, 0xb00b, 0xb00d, 0xb00e, 0xb00f, 0xb011, 0xb012, 0xb013, 0xb015, 0xb016, 0xb017, 0xb018, 0xb019, 0xb01a, 0xb01b, 0xb01e, 0xb01f, 0xb020, 0xb021, 0xb022, 0xb023, 0xb024, 0xb025, 0xb026, 0xb027, 0xb029, 0xb02a, 0xb02b, 0xb02c, 0xb02d, 0xb02e, 0xb02f, 0xb030, 0xb031, 0xb032, 0xb033, 0xb034, 0xb035, 0xb036, 0xb037, 0xb038, 0xb039, 0xb03a, 0xb03b, 0xb03c, 0xb03d, 0xb03e, 0xb03f, 0xb040, 0xb041, 0xb042, 0xb043, 0xb046, 0xb047, 0xb049, 0xb04b, 0xb04d, 0xb04f, 0xb050, 0xb051, 0xb052, 0xb056, 0xb058, 0xb05a, 0xb05b, 0xb05c, 0xb05e, 0xb05f, 0xb060, 0xb061, 0xb062, 0xb063, 0xb064, 0xb065, 0xb066, 0xb067, 0xb068, 0xb069, 0xb06a, 0xb06b, 0xb06c, 0xb06d, 0xb06e, 0xb06f, 0xb070, 0xb071, 0xb072, 0xb073, 0xb074, 0xb075, 0xb076, 0xb077, 0xb078, 0xb079, 0xb07a, 0xb07b, 0xb07e, 0xb07f, 0xb081, 0xb082, 0xb083, 0xb085, 0xb086, 0xb087, 0xb088, 0xb089, 0xb08a, 0xb08b, 0xb08e, 0xb090, 0xb092, 0xb093, 0xb094, 0xb095, 0xb096, 0xb097, 0xb09b, 0xb09d, 0xb09e, 0xb0a3, 0xb0a4, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8640[ 192 ] = { 0xfffd, 0xb0a5, 0xb0a6, 0xb0a7, 0xb0aa, 0xb0b0, 0xb0b2, 0xb0b6, 0xb0b7, 0xb0b9, 0xb0ba, 0xb0bb, 0xb0bd, 0xb0be, 0xb0bf, 0xb0c0, 0xb0c1, 0xb0c2, 0xb0c3, 0xb0c6, 0xb0ca, 0xb0cb, 0xb0cc, 0xb0cd, 0xb0ce, 0xb0cf, 0xb0d2, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb0d3, 0xb0d5, 0xb0d6, 0xb0d7, 0xb0d9, 0xb0da, 0xb0db, 0xb0dc, 0xb0dd, 0xb0de, 0xb0df, 0xb0e1, 0xb0e2, 0xb0e3, 0xb0e4, 0xb0e6, 0xb0e7, 0xb0e8, 0xb0e9, 0xb0ea, 0xb0eb, 0xb0ec, 0xb0ed, 0xb0ee, 0xb0ef, 0xb0f0, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb0f1, 0xb0f2, 0xb0f3, 0xb0f4, 0xb0f5, 0xb0f6, 0xb0f7, 0xb0f8, 0xb0f9, 0xb0fa, 0xb0fb, 0xb0fc, 0xb0fd, 0xb0fe, 0xb0ff, 0xb100, 0xb101, 0xb102, 0xb103, 0xb104, 0xb105, 0xb106, 0xb107, 0xb10a, 0xb10d, 0xb10e, 0xb10f, 0xb111, 0xb114, 0xb115, 0xb116, 0xb117, 0xb11a, 0xb11e, 0xb11f, 0xb120, 0xb121, 0xb122, 0xb126, 0xb127, 0xb129, 0xb12a, 0xb12b, 0xb12d, 0xb12e, 0xb12f, 0xb130, 0xb131, 0xb132, 0xb133, 0xb136, 0xb13a, 0xb13b, 0xb13c, 0xb13d, 0xb13e, 0xb13f, 0xb142, 0xb143, 0xb145, 0xb146, 0xb147, 0xb149, 0xb14a, 0xb14b, 0xb14c, 0xb14d, 0xb14e, 0xb14f, 0xb152, 0xb153, 0xb156, 0xb157, 0xb159, 0xb15a, 0xb15b, 0xb15d, 0xb15e, 0xb15f, 0xb161, 0xb162, 0xb163, 0xb164, 0xb165, 0xb166, 0xb167, 0xb168, 0xb169, 0xb16a, 0xb16b, 0xb16c, 0xb16d, 0xb16e, 0xb16f, 0xb170, 0xb171, 0xb172, 0xb173, 0xb174, 0xb175, 0xb176, 0xb177, 0xb17a, 0xb17b, 0xb17d, 0xb17e, 0xb17f, 0xb181, 0xb183, 0xb184, 0xb185, 0xb186, 0xb187, 0xb18a, 0xb18c, 0xb18e, 0xb18f, 0xb190, 0xb191, 0xb195, 0xb196, 0xb197, 0xb199, 0xb19a, 0xb19b, 0xb19d, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8740[ 192 ] = { 0xfffd, 0xb19e, 0xb19f, 0xb1a0, 0xb1a1, 0xb1a2, 0xb1a3, 0xb1a4, 0xb1a5, 0xb1a6, 0xb1a7, 0xb1a9, 0xb1aa, 0xb1ab, 0xb1ac, 0xb1ad, 0xb1ae, 0xb1af, 0xb1b0, 0xb1b1, 0xb1b2, 0xb1b3, 0xb1b4, 0xb1b5, 0xb1b6, 0xb1b7, 0xb1b8, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb1b9, 0xb1ba, 0xb1bb, 0xb1bc, 0xb1bd, 0xb1be, 0xb1bf, 0xb1c0, 0xb1c1, 0xb1c2, 0xb1c3, 0xb1c4, 0xb1c5, 0xb1c6, 0xb1c7, 0xb1c8, 0xb1c9, 0xb1ca, 0xb1cb, 0xb1cd, 0xb1ce, 0xb1cf, 0xb1d1, 0xb1d2, 0xb1d3, 0xb1d5, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb1d6, 0xb1d7, 0xb1d8, 0xb1d9, 0xb1da, 0xb1db, 0xb1de, 0xb1e0, 0xb1e1, 0xb1e2, 0xb1e3, 0xb1e4, 0xb1e5, 0xb1e6, 0xb1e7, 0xb1ea, 0xb1eb, 0xb1ed, 0xb1ee, 0xb1ef, 0xb1f1, 0xb1f2, 0xb1f3, 0xb1f4, 0xb1f5, 0xb1f6, 0xb1f7, 0xb1f8, 0xb1fa, 0xb1fc, 0xb1fe, 0xb1ff, 0xb200, 0xb201, 0xb202, 0xb203, 0xb206, 0xb207, 0xb209, 0xb20a, 0xb20d, 0xb20e, 0xb20f, 0xb210, 0xb211, 0xb212, 0xb213, 0xb216, 0xb218, 0xb21a, 0xb21b, 0xb21c, 0xb21d, 0xb21e, 0xb21f, 0xb221, 0xb222, 0xb223, 0xb224, 0xb225, 0xb226, 0xb227, 0xb228, 0xb229, 0xb22a, 0xb22b, 0xb22c, 0xb22d, 0xb22e, 0xb22f, 0xb230, 0xb231, 0xb232, 0xb233, 0xb235, 0xb236, 0xb237, 0xb238, 0xb239, 0xb23a, 0xb23b, 0xb23d, 0xb23e, 0xb23f, 0xb240, 0xb241, 0xb242, 0xb243, 0xb244, 0xb245, 0xb246, 0xb247, 0xb248, 0xb249, 0xb24a, 0xb24b, 0xb24c, 0xb24d, 0xb24e, 0xb24f, 0xb250, 0xb251, 0xb252, 0xb253, 0xb254, 0xb255, 0xb256, 0xb257, 0xb259, 0xb25a, 0xb25b, 0xb25d, 0xb25e, 0xb25f, 0xb261, 0xb262, 0xb263, 0xb264, 0xb265, 0xb266, 0xb267, 0xb26a, 0xb26b, 0xb26c, 0xb26d, 0xb26e, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8840[ 192 ] = { 0xfffd, 0xb26f, 0xb270, 0xb271, 0xb272, 0xb273, 0xb276, 0xb277, 0xb278, 0xb279, 0xb27a, 0xb27b, 0xb27d, 0xb27e, 0xb27f, 0xb280, 0xb281, 0xb282, 0xb283, 0xb286, 0xb287, 0xb288, 0xb28a, 0xb28b, 0xb28c, 0xb28d, 0xb28e, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb28f, 0xb292, 0xb293, 0xb295, 0xb296, 0xb297, 0xb29b, 0xb29c, 0xb29d, 0xb29e, 0xb29f, 0xb2a2, 0xb2a4, 0xb2a7, 0xb2a8, 0xb2a9, 0xb2ab, 0xb2ad, 0xb2ae, 0xb2af, 0xb2b1, 0xb2b2, 0xb2b3, 0xb2b5, 0xb2b6, 0xb2b7, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb2b8, 0xb2b9, 0xb2ba, 0xb2bb, 0xb2bc, 0xb2bd, 0xb2be, 0xb2bf, 0xb2c0, 0xb2c1, 0xb2c2, 0xb2c3, 0xb2c4, 0xb2c5, 0xb2c6, 0xb2c7, 0xb2ca, 0xb2cb, 0xb2cd, 0xb2ce, 0xb2cf, 0xb2d1, 0xb2d3, 0xb2d4, 0xb2d5, 0xb2d6, 0xb2d7, 0xb2da, 0xb2dc, 0xb2de, 0xb2df, 0xb2e0, 0xb2e1, 0xb2e3, 0xb2e7, 0xb2e9, 0xb2ea, 0xb2f0, 0xb2f1, 0xb2f2, 0xb2f6, 0xb2fc, 0xb2fd, 0xb2fe, 0xb302, 0xb303, 0xb305, 0xb306, 0xb307, 0xb309, 0xb30a, 0xb30b, 0xb30c, 0xb30d, 0xb30e, 0xb30f, 0xb312, 0xb316, 0xb317, 0xb318, 0xb319, 0xb31a, 0xb31b, 0xb31d, 0xb31e, 0xb31f, 0xb320, 0xb321, 0xb322, 0xb323, 0xb324, 0xb325, 0xb326, 0xb327, 0xb328, 0xb329, 0xb32a, 0xb32b, 0xb32c, 0xb32d, 0xb32e, 0xb32f, 0xb330, 0xb331, 0xb332, 0xb333, 0xb334, 0xb335, 0xb336, 0xb337, 0xb338, 0xb339, 0xb33a, 0xb33b, 0xb33c, 0xb33d, 0xb33e, 0xb33f, 0xb340, 0xb341, 0xb342, 0xb343, 0xb344, 0xb345, 0xb346, 0xb347, 0xb348, 0xb349, 0xb34a, 0xb34b, 0xb34c, 0xb34d, 0xb34e, 0xb34f, 0xb350, 0xb351, 0xb352, 0xb353, 0xb357, 0xb359, 0xb35a, 0xb35d, 0xb360, 0xb361, 0xb362, 0xb363, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8940[ 192 ] = { 0xfffd, 0xb366, 0xb368, 0xb36a, 0xb36c, 0xb36d, 0xb36f, 0xb372, 0xb373, 0xb375, 0xb376, 0xb377, 0xb379, 0xb37a, 0xb37b, 0xb37c, 0xb37d, 0xb37e, 0xb37f, 0xb382, 0xb386, 0xb387, 0xb388, 0xb389, 0xb38a, 0xb38b, 0xb38d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb38e, 0xb38f, 0xb391, 0xb392, 0xb393, 0xb395, 0xb396, 0xb397, 0xb398, 0xb399, 0xb39a, 0xb39b, 0xb39c, 0xb39d, 0xb39e, 0xb39f, 0xb3a2, 0xb3a3, 0xb3a4, 0xb3a5, 0xb3a6, 0xb3a7, 0xb3a9, 0xb3aa, 0xb3ab, 0xb3ad, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb3ae, 0xb3af, 0xb3b0, 0xb3b1, 0xb3b2, 0xb3b3, 0xb3b4, 0xb3b5, 0xb3b6, 0xb3b7, 0xb3b8, 0xb3b9, 0xb3ba, 0xb3bb, 0xb3bc, 0xb3bd, 0xb3be, 0xb3bf, 0xb3c0, 0xb3c1, 0xb3c2, 0xb3c3, 0xb3c6, 0xb3c7, 0xb3c9, 0xb3ca, 0xb3cd, 0xb3cf, 0xb3d1, 0xb3d2, 0xb3d3, 0xb3d6, 0xb3d8, 0xb3da, 0xb3dc, 0xb3de, 0xb3df, 0xb3e1, 0xb3e2, 0xb3e3, 0xb3e5, 0xb3e6, 0xb3e7, 0xb3e9, 0xb3ea, 0xb3eb, 0xb3ec, 0xb3ed, 0xb3ee, 0xb3ef, 0xb3f0, 0xb3f1, 0xb3f2, 0xb3f3, 0xb3f4, 0xb3f5, 0xb3f6, 0xb3f7, 0xb3f8, 0xb3f9, 0xb3fa, 0xb3fb, 0xb3fd, 0xb3fe, 0xb3ff, 0xb400, 0xb401, 0xb402, 0xb403, 0xb404, 0xb405, 0xb406, 0xb407, 0xb408, 0xb409, 0xb40a, 0xb40b, 0xb40c, 0xb40d, 0xb40e, 0xb40f, 0xb411, 0xb412, 0xb413, 0xb414, 0xb415, 0xb416, 0xb417, 0xb419, 0xb41a, 0xb41b, 0xb41d, 0xb41e, 0xb41f, 0xb421, 0xb422, 0xb423, 0xb424, 0xb425, 0xb426, 0xb427, 0xb42a, 0xb42c, 0xb42d, 0xb42e, 0xb42f, 0xb430, 0xb431, 0xb432, 0xb433, 0xb435, 0xb436, 0xb437, 0xb438, 0xb439, 0xb43a, 0xb43b, 0xb43c, 0xb43d, 0xb43e, 0xb43f, 0xb440, 0xb441, 0xb442, 0xb443, 0xb444, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8a40[ 192 ] = { 0xfffd, 0xb445, 0xb446, 0xb447, 0xb448, 0xb449, 0xb44a, 0xb44b, 0xb44c, 0xb44d, 0xb44e, 0xb44f, 0xb452, 0xb453, 0xb455, 0xb456, 0xb457, 0xb459, 0xb45a, 0xb45b, 0xb45c, 0xb45d, 0xb45e, 0xb45f, 0xb462, 0xb464, 0xb466, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb467, 0xb468, 0xb469, 0xb46a, 0xb46b, 0xb46d, 0xb46e, 0xb46f, 0xb470, 0xb471, 0xb472, 0xb473, 0xb474, 0xb475, 0xb476, 0xb477, 0xb478, 0xb479, 0xb47a, 0xb47b, 0xb47c, 0xb47d, 0xb47e, 0xb47f, 0xb481, 0xb482, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb483, 0xb484, 0xb485, 0xb486, 0xb487, 0xb489, 0xb48a, 0xb48b, 0xb48c, 0xb48d, 0xb48e, 0xb48f, 0xb490, 0xb491, 0xb492, 0xb493, 0xb494, 0xb495, 0xb496, 0xb497, 0xb498, 0xb499, 0xb49a, 0xb49b, 0xb49c, 0xb49e, 0xb49f, 0xb4a0, 0xb4a1, 0xb4a2, 0xb4a3, 0xb4a5, 0xb4a6, 0xb4a7, 0xb4a9, 0xb4aa, 0xb4ab, 0xb4ad, 0xb4ae, 0xb4af, 0xb4b0, 0xb4b1, 0xb4b2, 0xb4b3, 0xb4b4, 0xb4b6, 0xb4b8, 0xb4ba, 0xb4bb, 0xb4bc, 0xb4bd, 0xb4be, 0xb4bf, 0xb4c1, 0xb4c2, 0xb4c3, 0xb4c5, 0xb4c6, 0xb4c7, 0xb4c9, 0xb4ca, 0xb4cb, 0xb4cc, 0xb4cd, 0xb4ce, 0xb4cf, 0xb4d1, 0xb4d2, 0xb4d3, 0xb4d4, 0xb4d6, 0xb4d7, 0xb4d8, 0xb4d9, 0xb4da, 0xb4db, 0xb4de, 0xb4df, 0xb4e1, 0xb4e2, 0xb4e5, 0xb4e7, 0xb4e8, 0xb4e9, 0xb4ea, 0xb4eb, 0xb4ee, 0xb4f0, 0xb4f2, 0xb4f3, 0xb4f4, 0xb4f5, 0xb4f6, 0xb4f7, 0xb4f9, 0xb4fa, 0xb4fb, 0xb4fc, 0xb4fd, 0xb4fe, 0xb4ff, 0xb500, 0xb501, 0xb502, 0xb503, 0xb504, 0xb505, 0xb506, 0xb507, 0xb508, 0xb509, 0xb50a, 0xb50b, 0xb50c, 0xb50d, 0xb50e, 0xb50f, 0xb510, 0xb511, 0xb512, 0xb513, 0xb516, 0xb517, 0xb519, 0xb51a, 0xb51d, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8b40[ 192 ] = { 0xfffd, 0xb51e, 0xb51f, 0xb520, 0xb521, 0xb522, 0xb523, 0xb526, 0xb52b, 0xb52c, 0xb52d, 0xb52e, 0xb52f, 0xb532, 0xb533, 0xb535, 0xb536, 0xb537, 0xb539, 0xb53a, 0xb53b, 0xb53c, 0xb53d, 0xb53e, 0xb53f, 0xb542, 0xb546, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb547, 0xb548, 0xb549, 0xb54a, 0xb54e, 0xb54f, 0xb551, 0xb552, 0xb553, 0xb555, 0xb556, 0xb557, 0xb558, 0xb559, 0xb55a, 0xb55b, 0xb55e, 0xb562, 0xb563, 0xb564, 0xb565, 0xb566, 0xb567, 0xb568, 0xb569, 0xb56a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb56b, 0xb56c, 0xb56d, 0xb56e, 0xb56f, 0xb570, 0xb571, 0xb572, 0xb573, 0xb574, 0xb575, 0xb576, 0xb577, 0xb578, 0xb579, 0xb57a, 0xb57b, 0xb57c, 0xb57d, 0xb57e, 0xb57f, 0xb580, 0xb581, 0xb582, 0xb583, 0xb584, 0xb585, 0xb586, 0xb587, 0xb588, 0xb589, 0xb58a, 0xb58b, 0xb58c, 0xb58d, 0xb58e, 0xb58f, 0xb590, 0xb591, 0xb592, 0xb593, 0xb594, 0xb595, 0xb596, 0xb597, 0xb598, 0xb599, 0xb59a, 0xb59b, 0xb59c, 0xb59d, 0xb59e, 0xb59f, 0xb5a2, 0xb5a3, 0xb5a5, 0xb5a6, 0xb5a7, 0xb5a9, 0xb5ac, 0xb5ad, 0xb5ae, 0xb5af, 0xb5b2, 0xb5b6, 0xb5b7, 0xb5b8, 0xb5b9, 0xb5ba, 0xb5be, 0xb5bf, 0xb5c1, 0xb5c2, 0xb5c3, 0xb5c5, 0xb5c6, 0xb5c7, 0xb5c8, 0xb5c9, 0xb5ca, 0xb5cb, 0xb5ce, 0xb5d2, 0xb5d3, 0xb5d4, 0xb5d5, 0xb5d6, 0xb5d7, 0xb5d9, 0xb5da, 0xb5db, 0xb5dc, 0xb5dd, 0xb5de, 0xb5df, 0xb5e0, 0xb5e1, 0xb5e2, 0xb5e3, 0xb5e4, 0xb5e5, 0xb5e6, 0xb5e7, 0xb5e8, 0xb5e9, 0xb5ea, 0xb5eb, 0xb5ed, 0xb5ee, 0xb5ef, 0xb5f0, 0xb5f1, 0xb5f2, 0xb5f3, 0xb5f4, 0xb5f5, 0xb5f6, 0xb5f7, 0xb5f8, 0xb5f9, 0xb5fa, 0xb5fb, 0xb5fc, 0xb5fd, 0xb5fe, 0xb5ff, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8c40[ 192 ] = { 0xfffd, 0xb600, 0xb601, 0xb602, 0xb603, 0xb604, 0xb605, 0xb606, 0xb607, 0xb608, 0xb609, 0xb60a, 0xb60b, 0xb60c, 0xb60d, 0xb60e, 0xb60f, 0xb612, 0xb613, 0xb615, 0xb616, 0xb617, 0xb619, 0xb61a, 0xb61b, 0xb61c, 0xb61d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb61e, 0xb61f, 0xb620, 0xb621, 0xb622, 0xb623, 0xb624, 0xb626, 0xb627, 0xb628, 0xb629, 0xb62a, 0xb62b, 0xb62d, 0xb62e, 0xb62f, 0xb630, 0xb631, 0xb632, 0xb633, 0xb635, 0xb636, 0xb637, 0xb638, 0xb639, 0xb63a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb63b, 0xb63c, 0xb63d, 0xb63e, 0xb63f, 0xb640, 0xb641, 0xb642, 0xb643, 0xb644, 0xb645, 0xb646, 0xb647, 0xb649, 0xb64a, 0xb64b, 0xb64c, 0xb64d, 0xb64e, 0xb64f, 0xb650, 0xb651, 0xb652, 0xb653, 0xb654, 0xb655, 0xb656, 0xb657, 0xb658, 0xb659, 0xb65a, 0xb65b, 0xb65c, 0xb65d, 0xb65e, 0xb65f, 0xb660, 0xb661, 0xb662, 0xb663, 0xb665, 0xb666, 0xb667, 0xb669, 0xb66a, 0xb66b, 0xb66c, 0xb66d, 0xb66e, 0xb66f, 0xb670, 0xb671, 0xb672, 0xb673, 0xb674, 0xb675, 0xb676, 0xb677, 0xb678, 0xb679, 0xb67a, 0xb67b, 0xb67c, 0xb67d, 0xb67e, 0xb67f, 0xb680, 0xb681, 0xb682, 0xb683, 0xb684, 0xb685, 0xb686, 0xb687, 0xb688, 0xb689, 0xb68a, 0xb68b, 0xb68c, 0xb68d, 0xb68e, 0xb68f, 0xb690, 0xb691, 0xb692, 0xb693, 0xb694, 0xb695, 0xb696, 0xb697, 0xb698, 0xb699, 0xb69a, 0xb69b, 0xb69e, 0xb69f, 0xb6a1, 0xb6a2, 0xb6a3, 0xb6a5, 0xb6a6, 0xb6a7, 0xb6a8, 0xb6a9, 0xb6aa, 0xb6ad, 0xb6ae, 0xb6af, 0xb6b0, 0xb6b2, 0xb6b3, 0xb6b4, 0xb6b5, 0xb6b6, 0xb6b7, 0xb6b8, 0xb6b9, 0xb6ba, 0xb6bb, 0xb6bc, 0xb6bd, 0xb6be, 0xb6bf, 0xb6c0, 0xb6c1, 0xb6c2, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8d40[ 192 ] = { 0xfffd, 0xb6c3, 0xb6c4, 0xb6c5, 0xb6c6, 0xb6c7, 0xb6c8, 0xb6c9, 0xb6ca, 0xb6cb, 0xb6cc, 0xb6cd, 0xb6ce, 0xb6cf, 0xb6d0, 0xb6d1, 0xb6d2, 0xb6d3, 0xb6d5, 0xb6d6, 0xb6d7, 0xb6d8, 0xb6d9, 0xb6da, 0xb6db, 0xb6dc, 0xb6dd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb6de, 0xb6df, 0xb6e0, 0xb6e1, 0xb6e2, 0xb6e3, 0xb6e4, 0xb6e5, 0xb6e6, 0xb6e7, 0xb6e8, 0xb6e9, 0xb6ea, 0xb6eb, 0xb6ec, 0xb6ed, 0xb6ee, 0xb6ef, 0xb6f1, 0xb6f2, 0xb6f3, 0xb6f5, 0xb6f6, 0xb6f7, 0xb6f9, 0xb6fa, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb6fb, 0xb6fc, 0xb6fd, 0xb6fe, 0xb6ff, 0xb702, 0xb703, 0xb704, 0xb706, 0xb707, 0xb708, 0xb709, 0xb70a, 0xb70b, 0xb70c, 0xb70d, 0xb70e, 0xb70f, 0xb710, 0xb711, 0xb712, 0xb713, 0xb714, 0xb715, 0xb716, 0xb717, 0xb718, 0xb719, 0xb71a, 0xb71b, 0xb71c, 0xb71d, 0xb71e, 0xb71f, 0xb720, 0xb721, 0xb722, 0xb723, 0xb724, 0xb725, 0xb726, 0xb727, 0xb72a, 0xb72b, 0xb72d, 0xb72e, 0xb731, 0xb732, 0xb733, 0xb734, 0xb735, 0xb736, 0xb737, 0xb73a, 0xb73c, 0xb73d, 0xb73e, 0xb73f, 0xb740, 0xb741, 0xb742, 0xb743, 0xb745, 0xb746, 0xb747, 0xb749, 0xb74a, 0xb74b, 0xb74d, 0xb74e, 0xb74f, 0xb750, 0xb751, 0xb752, 0xb753, 0xb756, 0xb757, 0xb758, 0xb759, 0xb75a, 0xb75b, 0xb75c, 0xb75d, 0xb75e, 0xb75f, 0xb761, 0xb762, 0xb763, 0xb765, 0xb766, 0xb767, 0xb769, 0xb76a, 0xb76b, 0xb76c, 0xb76d, 0xb76e, 0xb76f, 0xb772, 0xb774, 0xb776, 0xb777, 0xb778, 0xb779, 0xb77a, 0xb77b, 0xb77e, 0xb77f, 0xb781, 0xb782, 0xb783, 0xb785, 0xb786, 0xb787, 0xb788, 0xb789, 0xb78a, 0xb78b, 0xb78e, 0xb793, 0xb794, 0xb795, 0xb79a, 0xb79b, 0xb79d, 0xb79e, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8e40[ 192 ] = { 0xfffd, 0xb79f, 0xb7a1, 0xb7a2, 0xb7a3, 0xb7a4, 0xb7a5, 0xb7a6, 0xb7a7, 0xb7aa, 0xb7ae, 0xb7af, 0xb7b0, 0xb7b1, 0xb7b2, 0xb7b3, 0xb7b6, 0xb7b7, 0xb7b9, 0xb7ba, 0xb7bb, 0xb7bc, 0xb7bd, 0xb7be, 0xb7bf, 0xb7c0, 0xb7c1, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb7c2, 0xb7c3, 0xb7c4, 0xb7c5, 0xb7c6, 0xb7c8, 0xb7ca, 0xb7cb, 0xb7cc, 0xb7cd, 0xb7ce, 0xb7cf, 0xb7d0, 0xb7d1, 0xb7d2, 0xb7d3, 0xb7d4, 0xb7d5, 0xb7d6, 0xb7d7, 0xb7d8, 0xb7d9, 0xb7da, 0xb7db, 0xb7dc, 0xb7dd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb7de, 0xb7df, 0xb7e0, 0xb7e1, 0xb7e2, 0xb7e3, 0xb7e4, 0xb7e5, 0xb7e6, 0xb7e7, 0xb7e8, 0xb7e9, 0xb7ea, 0xb7eb, 0xb7ee, 0xb7ef, 0xb7f1, 0xb7f2, 0xb7f3, 0xb7f5, 0xb7f6, 0xb7f7, 0xb7f8, 0xb7f9, 0xb7fa, 0xb7fb, 0xb7fe, 0xb802, 0xb803, 0xb804, 0xb805, 0xb806, 0xb80a, 0xb80b, 0xb80d, 0xb80e, 0xb80f, 0xb811, 0xb812, 0xb813, 0xb814, 0xb815, 0xb816, 0xb817, 0xb81a, 0xb81c, 0xb81e, 0xb81f, 0xb820, 0xb821, 0xb822, 0xb823, 0xb826, 0xb827, 0xb829, 0xb82a, 0xb82b, 0xb82d, 0xb82e, 0xb82f, 0xb830, 0xb831, 0xb832, 0xb833, 0xb836, 0xb83a, 0xb83b, 0xb83c, 0xb83d, 0xb83e, 0xb83f, 0xb841, 0xb842, 0xb843, 0xb845, 0xb846, 0xb847, 0xb848, 0xb849, 0xb84a, 0xb84b, 0xb84c, 0xb84d, 0xb84e, 0xb84f, 0xb850, 0xb852, 0xb854, 0xb855, 0xb856, 0xb857, 0xb858, 0xb859, 0xb85a, 0xb85b, 0xb85e, 0xb85f, 0xb861, 0xb862, 0xb863, 0xb865, 0xb866, 0xb867, 0xb868, 0xb869, 0xb86a, 0xb86b, 0xb86e, 0xb870, 0xb872, 0xb873, 0xb874, 0xb875, 0xb876, 0xb877, 0xb879, 0xb87a, 0xb87b, 0xb87d, 0xb87e, 0xb87f, 0xb880, 0xb881, 0xb882, 0xb883, 0xb884, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8f40[ 192 ] = { 0xfffd, 0xb885, 0xb886, 0xb887, 0xb888, 0xb889, 0xb88a, 0xb88b, 0xb88c, 0xb88e, 0xb88f, 0xb890, 0xb891, 0xb892, 0xb893, 0xb894, 0xb895, 0xb896, 0xb897, 0xb898, 0xb899, 0xb89a, 0xb89b, 0xb89c, 0xb89d, 0xb89e, 0xb89f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb8a0, 0xb8a1, 0xb8a2, 0xb8a3, 0xb8a4, 0xb8a5, 0xb8a6, 0xb8a7, 0xb8a9, 0xb8aa, 0xb8ab, 0xb8ac, 0xb8ad, 0xb8ae, 0xb8af, 0xb8b1, 0xb8b2, 0xb8b3, 0xb8b5, 0xb8b6, 0xb8b7, 0xb8b9, 0xb8ba, 0xb8bb, 0xb8bc, 0xb8bd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb8be, 0xb8bf, 0xb8c2, 0xb8c4, 0xb8c6, 0xb8c7, 0xb8c8, 0xb8c9, 0xb8ca, 0xb8cb, 0xb8cd, 0xb8ce, 0xb8cf, 0xb8d1, 0xb8d2, 0xb8d3, 0xb8d5, 0xb8d6, 0xb8d7, 0xb8d8, 0xb8d9, 0xb8da, 0xb8db, 0xb8dc, 0xb8de, 0xb8e0, 0xb8e2, 0xb8e3, 0xb8e4, 0xb8e5, 0xb8e6, 0xb8e7, 0xb8ea, 0xb8eb, 0xb8ed, 0xb8ee, 0xb8ef, 0xb8f1, 0xb8f2, 0xb8f3, 0xb8f4, 0xb8f5, 0xb8f6, 0xb8f7, 0xb8fa, 0xb8fc, 0xb8fe, 0xb8ff, 0xb900, 0xb901, 0xb902, 0xb903, 0xb905, 0xb906, 0xb907, 0xb908, 0xb909, 0xb90a, 0xb90b, 0xb90c, 0xb90d, 0xb90e, 0xb90f, 0xb910, 0xb911, 0xb912, 0xb913, 0xb914, 0xb915, 0xb916, 0xb917, 0xb919, 0xb91a, 0xb91b, 0xb91c, 0xb91d, 0xb91e, 0xb91f, 0xb921, 0xb922, 0xb923, 0xb924, 0xb925, 0xb926, 0xb927, 0xb928, 0xb929, 0xb92a, 0xb92b, 0xb92c, 0xb92d, 0xb92e, 0xb92f, 0xb930, 0xb931, 0xb932, 0xb933, 0xb934, 0xb935, 0xb936, 0xb937, 0xb938, 0xb939, 0xb93a, 0xb93b, 0xb93e, 0xb93f, 0xb941, 0xb942, 0xb943, 0xb945, 0xb946, 0xb947, 0xb948, 0xb949, 0xb94a, 0xb94b, 0xb94d, 0xb94e, 0xb950, 0xb952, 0xb953, 0xb954, 0xb955, 0xb956, 0xb957, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9040[ 192 ] = { 0xfffd, 0xb95a, 0xb95b, 0xb95d, 0xb95e, 0xb95f, 0xb961, 0xb962, 0xb963, 0xb964, 0xb965, 0xb966, 0xb967, 0xb96a, 0xb96c, 0xb96e, 0xb96f, 0xb970, 0xb971, 0xb972, 0xb973, 0xb976, 0xb977, 0xb979, 0xb97a, 0xb97b, 0xb97d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb97e, 0xb97f, 0xb980, 0xb981, 0xb982, 0xb983, 0xb986, 0xb988, 0xb98b, 0xb98c, 0xb98f, 0xb990, 0xb991, 0xb992, 0xb993, 0xb994, 0xb995, 0xb996, 0xb997, 0xb998, 0xb999, 0xb99a, 0xb99b, 0xb99c, 0xb99d, 0xb99e, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xb99f, 0xb9a0, 0xb9a1, 0xb9a2, 0xb9a3, 0xb9a4, 0xb9a5, 0xb9a6, 0xb9a7, 0xb9a8, 0xb9a9, 0xb9aa, 0xb9ab, 0xb9ae, 0xb9af, 0xb9b1, 0xb9b2, 0xb9b3, 0xb9b5, 0xb9b6, 0xb9b7, 0xb9b8, 0xb9b9, 0xb9ba, 0xb9bb, 0xb9be, 0xb9c0, 0xb9c2, 0xb9c3, 0xb9c4, 0xb9c5, 0xb9c6, 0xb9c7, 0xb9ca, 0xb9cb, 0xb9cd, 0xb9d3, 0xb9d4, 0xb9d5, 0xb9d6, 0xb9d7, 0xb9da, 0xb9dc, 0xb9df, 0xb9e0, 0xb9e2, 0xb9e6, 0xb9e7, 0xb9e9, 0xb9ea, 0xb9eb, 0xb9ed, 0xb9ee, 0xb9ef, 0xb9f0, 0xb9f1, 0xb9f2, 0xb9f3, 0xb9f6, 0xb9fb, 0xb9fc, 0xb9fd, 0xb9fe, 0xb9ff, 0xba02, 0xba03, 0xba04, 0xba05, 0xba06, 0xba07, 0xba09, 0xba0a, 0xba0b, 0xba0c, 0xba0d, 0xba0e, 0xba0f, 0xba10, 0xba11, 0xba12, 0xba13, 0xba14, 0xba16, 0xba17, 0xba18, 0xba19, 0xba1a, 0xba1b, 0xba1c, 0xba1d, 0xba1e, 0xba1f, 0xba20, 0xba21, 0xba22, 0xba23, 0xba24, 0xba25, 0xba26, 0xba27, 0xba28, 0xba29, 0xba2a, 0xba2b, 0xba2c, 0xba2d, 0xba2e, 0xba2f, 0xba30, 0xba31, 0xba32, 0xba33, 0xba34, 0xba35, 0xba36, 0xba37, 0xba3a, 0xba3b, 0xba3d, 0xba3e, 0xba3f, 0xba41, 0xba43, 0xba44, 0xba45, 0xba46, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9140[ 192 ] = { 0xfffd, 0xba47, 0xba4a, 0xba4c, 0xba4f, 0xba50, 0xba51, 0xba52, 0xba56, 0xba57, 0xba59, 0xba5a, 0xba5b, 0xba5d, 0xba5e, 0xba5f, 0xba60, 0xba61, 0xba62, 0xba63, 0xba66, 0xba6a, 0xba6b, 0xba6c, 0xba6d, 0xba6e, 0xba6f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xba72, 0xba73, 0xba75, 0xba76, 0xba77, 0xba79, 0xba7a, 0xba7b, 0xba7c, 0xba7d, 0xba7e, 0xba7f, 0xba80, 0xba81, 0xba82, 0xba86, 0xba88, 0xba89, 0xba8a, 0xba8b, 0xba8d, 0xba8e, 0xba8f, 0xba90, 0xba91, 0xba92, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xba93, 0xba94, 0xba95, 0xba96, 0xba97, 0xba98, 0xba99, 0xba9a, 0xba9b, 0xba9c, 0xba9d, 0xba9e, 0xba9f, 0xbaa0, 0xbaa1, 0xbaa2, 0xbaa3, 0xbaa4, 0xbaa5, 0xbaa6, 0xbaa7, 0xbaaa, 0xbaad, 0xbaae, 0xbaaf, 0xbab1, 0xbab3, 0xbab4, 0xbab5, 0xbab6, 0xbab7, 0xbaba, 0xbabc, 0xbabe, 0xbabf, 0xbac0, 0xbac1, 0xbac2, 0xbac3, 0xbac5, 0xbac6, 0xbac7, 0xbac9, 0xbaca, 0xbacb, 0xbacc, 0xbacd, 0xbace, 0xbacf, 0xbad0, 0xbad1, 0xbad2, 0xbad3, 0xbad4, 0xbad5, 0xbad6, 0xbad7, 0xbada, 0xbadb, 0xbadc, 0xbadd, 0xbade, 0xbadf, 0xbae0, 0xbae1, 0xbae2, 0xbae3, 0xbae4, 0xbae5, 0xbae6, 0xbae7, 0xbae8, 0xbae9, 0xbaea, 0xbaeb, 0xbaec, 0xbaed, 0xbaee, 0xbaef, 0xbaf0, 0xbaf1, 0xbaf2, 0xbaf3, 0xbaf4, 0xbaf5, 0xbaf6, 0xbaf7, 0xbaf8, 0xbaf9, 0xbafa, 0xbafb, 0xbafd, 0xbafe, 0xbaff, 0xbb01, 0xbb02, 0xbb03, 0xbb05, 0xbb06, 0xbb07, 0xbb08, 0xbb09, 0xbb0a, 0xbb0b, 0xbb0c, 0xbb0e, 0xbb10, 0xbb12, 0xbb13, 0xbb14, 0xbb15, 0xbb16, 0xbb17, 0xbb19, 0xbb1a, 0xbb1b, 0xbb1d, 0xbb1e, 0xbb1f, 0xbb21, 0xbb22, 0xbb23, 0xbb24, 0xbb25, 0xbb26, 0xbb27, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9240[ 192 ] = { 0xfffd, 0xbb28, 0xbb2a, 0xbb2c, 0xbb2d, 0xbb2e, 0xbb2f, 0xbb30, 0xbb31, 0xbb32, 0xbb33, 0xbb37, 0xbb39, 0xbb3a, 0xbb3f, 0xbb40, 0xbb41, 0xbb42, 0xbb43, 0xbb46, 0xbb48, 0xbb4a, 0xbb4b, 0xbb4c, 0xbb4e, 0xbb51, 0xbb52, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbb53, 0xbb55, 0xbb56, 0xbb57, 0xbb59, 0xbb5a, 0xbb5b, 0xbb5c, 0xbb5d, 0xbb5e, 0xbb5f, 0xbb60, 0xbb62, 0xbb64, 0xbb65, 0xbb66, 0xbb67, 0xbb68, 0xbb69, 0xbb6a, 0xbb6b, 0xbb6d, 0xbb6e, 0xbb6f, 0xbb70, 0xbb71, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbb72, 0xbb73, 0xbb74, 0xbb75, 0xbb76, 0xbb77, 0xbb78, 0xbb79, 0xbb7a, 0xbb7b, 0xbb7c, 0xbb7d, 0xbb7e, 0xbb7f, 0xbb80, 0xbb81, 0xbb82, 0xbb83, 0xbb84, 0xbb85, 0xbb86, 0xbb87, 0xbb89, 0xbb8a, 0xbb8b, 0xbb8d, 0xbb8e, 0xbb8f, 0xbb91, 0xbb92, 0xbb93, 0xbb94, 0xbb95, 0xbb96, 0xbb97, 0xbb98, 0xbb99, 0xbb9a, 0xbb9b, 0xbb9c, 0xbb9d, 0xbb9e, 0xbb9f, 0xbba0, 0xbba1, 0xbba2, 0xbba3, 0xbba5, 0xbba6, 0xbba7, 0xbba9, 0xbbaa, 0xbbab, 0xbbad, 0xbbae, 0xbbaf, 0xbbb0, 0xbbb1, 0xbbb2, 0xbbb3, 0xbbb5, 0xbbb6, 0xbbb8, 0xbbb9, 0xbbba, 0xbbbb, 0xbbbc, 0xbbbd, 0xbbbe, 0xbbbf, 0xbbc1, 0xbbc2, 0xbbc3, 0xbbc5, 0xbbc6, 0xbbc7, 0xbbc9, 0xbbca, 0xbbcb, 0xbbcc, 0xbbcd, 0xbbce, 0xbbcf, 0xbbd1, 0xbbd2, 0xbbd4, 0xbbd5, 0xbbd6, 0xbbd7, 0xbbd8, 0xbbd9, 0xbbda, 0xbbdb, 0xbbdc, 0xbbdd, 0xbbde, 0xbbdf, 0xbbe0, 0xbbe1, 0xbbe2, 0xbbe3, 0xbbe4, 0xbbe5, 0xbbe6, 0xbbe7, 0xbbe8, 0xbbe9, 0xbbea, 0xbbeb, 0xbbec, 0xbbed, 0xbbee, 0xbbef, 0xbbf0, 0xbbf1, 0xbbf2, 0xbbf3, 0xbbf4, 0xbbf5, 0xbbf6, 0xbbf7, 0xbbfa, 0xbbfb, 0xbbfd, 0xbbfe, 0xbc01, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9340[ 192 ] = { 0xfffd, 0xbc03, 0xbc04, 0xbc05, 0xbc06, 0xbc07, 0xbc0a, 0xbc0e, 0xbc10, 0xbc12, 0xbc13, 0xbc19, 0xbc1a, 0xbc20, 0xbc21, 0xbc22, 0xbc23, 0xbc26, 0xbc28, 0xbc2a, 0xbc2b, 0xbc2c, 0xbc2e, 0xbc2f, 0xbc32, 0xbc33, 0xbc35, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbc36, 0xbc37, 0xbc39, 0xbc3a, 0xbc3b, 0xbc3c, 0xbc3d, 0xbc3e, 0xbc3f, 0xbc42, 0xbc46, 0xbc47, 0xbc48, 0xbc4a, 0xbc4b, 0xbc4e, 0xbc4f, 0xbc51, 0xbc52, 0xbc53, 0xbc54, 0xbc55, 0xbc56, 0xbc57, 0xbc58, 0xbc59, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbc5a, 0xbc5b, 0xbc5c, 0xbc5e, 0xbc5f, 0xbc60, 0xbc61, 0xbc62, 0xbc63, 0xbc64, 0xbc65, 0xbc66, 0xbc67, 0xbc68, 0xbc69, 0xbc6a, 0xbc6b, 0xbc6c, 0xbc6d, 0xbc6e, 0xbc6f, 0xbc70, 0xbc71, 0xbc72, 0xbc73, 0xbc74, 0xbc75, 0xbc76, 0xbc77, 0xbc78, 0xbc79, 0xbc7a, 0xbc7b, 0xbc7c, 0xbc7d, 0xbc7e, 0xbc7f, 0xbc80, 0xbc81, 0xbc82, 0xbc83, 0xbc86, 0xbc87, 0xbc89, 0xbc8a, 0xbc8d, 0xbc8f, 0xbc90, 0xbc91, 0xbc92, 0xbc93, 0xbc96, 0xbc98, 0xbc9b, 0xbc9c, 0xbc9d, 0xbc9e, 0xbc9f, 0xbca2, 0xbca3, 0xbca5, 0xbca6, 0xbca9, 0xbcaa, 0xbcab, 0xbcac, 0xbcad, 0xbcae, 0xbcaf, 0xbcb2, 0xbcb6, 0xbcb7, 0xbcb8, 0xbcb9, 0xbcba, 0xbcbb, 0xbcbe, 0xbcbf, 0xbcc1, 0xbcc2, 0xbcc3, 0xbcc5, 0xbcc6, 0xbcc7, 0xbcc8, 0xbcc9, 0xbcca, 0xbccb, 0xbccc, 0xbcce, 0xbcd2, 0xbcd3, 0xbcd4, 0xbcd6, 0xbcd7, 0xbcd9, 0xbcda, 0xbcdb, 0xbcdd, 0xbcde, 0xbcdf, 0xbce0, 0xbce1, 0xbce2, 0xbce3, 0xbce4, 0xbce5, 0xbce6, 0xbce7, 0xbce8, 0xbce9, 0xbcea, 0xbceb, 0xbcec, 0xbced, 0xbcee, 0xbcef, 0xbcf0, 0xbcf1, 0xbcf2, 0xbcf3, 0xbcf7, 0xbcf9, 0xbcfa, 0xbcfb, 0xbcfd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9440[ 192 ] = { 0xfffd, 0xbcfe, 0xbcff, 0xbd00, 0xbd01, 0xbd02, 0xbd03, 0xbd06, 0xbd08, 0xbd0a, 0xbd0b, 0xbd0c, 0xbd0d, 0xbd0e, 0xbd0f, 0xbd11, 0xbd12, 0xbd13, 0xbd15, 0xbd16, 0xbd17, 0xbd18, 0xbd19, 0xbd1a, 0xbd1b, 0xbd1c, 0xbd1d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbd1e, 0xbd1f, 0xbd20, 0xbd21, 0xbd22, 0xbd23, 0xbd25, 0xbd26, 0xbd27, 0xbd28, 0xbd29, 0xbd2a, 0xbd2b, 0xbd2d, 0xbd2e, 0xbd2f, 0xbd30, 0xbd31, 0xbd32, 0xbd33, 0xbd34, 0xbd35, 0xbd36, 0xbd37, 0xbd38, 0xbd39, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbd3a, 0xbd3b, 0xbd3c, 0xbd3d, 0xbd3e, 0xbd3f, 0xbd41, 0xbd42, 0xbd43, 0xbd44, 0xbd45, 0xbd46, 0xbd47, 0xbd4a, 0xbd4b, 0xbd4d, 0xbd4e, 0xbd4f, 0xbd51, 0xbd52, 0xbd53, 0xbd54, 0xbd55, 0xbd56, 0xbd57, 0xbd5a, 0xbd5b, 0xbd5c, 0xbd5d, 0xbd5e, 0xbd5f, 0xbd60, 0xbd61, 0xbd62, 0xbd63, 0xbd65, 0xbd66, 0xbd67, 0xbd69, 0xbd6a, 0xbd6b, 0xbd6c, 0xbd6d, 0xbd6e, 0xbd6f, 0xbd70, 0xbd71, 0xbd72, 0xbd73, 0xbd74, 0xbd75, 0xbd76, 0xbd77, 0xbd78, 0xbd79, 0xbd7a, 0xbd7b, 0xbd7c, 0xbd7d, 0xbd7e, 0xbd7f, 0xbd82, 0xbd83, 0xbd85, 0xbd86, 0xbd8b, 0xbd8c, 0xbd8d, 0xbd8e, 0xbd8f, 0xbd92, 0xbd94, 0xbd96, 0xbd97, 0xbd98, 0xbd9b, 0xbd9d, 0xbd9e, 0xbd9f, 0xbda0, 0xbda1, 0xbda2, 0xbda3, 0xbda5, 0xbda6, 0xbda7, 0xbda8, 0xbda9, 0xbdaa, 0xbdab, 0xbdac, 0xbdad, 0xbdae, 0xbdaf, 0xbdb1, 0xbdb2, 0xbdb3, 0xbdb4, 0xbdb5, 0xbdb6, 0xbdb7, 0xbdb9, 0xbdba, 0xbdbb, 0xbdbc, 0xbdbd, 0xbdbe, 0xbdbf, 0xbdc0, 0xbdc1, 0xbdc2, 0xbdc3, 0xbdc4, 0xbdc5, 0xbdc6, 0xbdc7, 0xbdc8, 0xbdc9, 0xbdca, 0xbdcb, 0xbdcc, 0xbdcd, 0xbdce, 0xbdcf, 0xbdd0, 0xbdd1, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9540[ 192 ] = { 0xfffd, 0xbdd2, 0xbdd3, 0xbdd6, 0xbdd7, 0xbdd9, 0xbdda, 0xbddb, 0xbddd, 0xbdde, 0xbddf, 0xbde0, 0xbde1, 0xbde2, 0xbde3, 0xbde4, 0xbde5, 0xbde6, 0xbde7, 0xbde8, 0xbdea, 0xbdeb, 0xbdec, 0xbded, 0xbdee, 0xbdef, 0xbdf1, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbdf2, 0xbdf3, 0xbdf5, 0xbdf6, 0xbdf7, 0xbdf9, 0xbdfa, 0xbdfb, 0xbdfc, 0xbdfd, 0xbdfe, 0xbdff, 0xbe01, 0xbe02, 0xbe04, 0xbe06, 0xbe07, 0xbe08, 0xbe09, 0xbe0a, 0xbe0b, 0xbe0e, 0xbe0f, 0xbe11, 0xbe12, 0xbe13, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbe15, 0xbe16, 0xbe17, 0xbe18, 0xbe19, 0xbe1a, 0xbe1b, 0xbe1e, 0xbe20, 0xbe21, 0xbe22, 0xbe23, 0xbe24, 0xbe25, 0xbe26, 0xbe27, 0xbe28, 0xbe29, 0xbe2a, 0xbe2b, 0xbe2c, 0xbe2d, 0xbe2e, 0xbe2f, 0xbe30, 0xbe31, 0xbe32, 0xbe33, 0xbe34, 0xbe35, 0xbe36, 0xbe37, 0xbe38, 0xbe39, 0xbe3a, 0xbe3b, 0xbe3c, 0xbe3d, 0xbe3e, 0xbe3f, 0xbe40, 0xbe41, 0xbe42, 0xbe43, 0xbe46, 0xbe47, 0xbe49, 0xbe4a, 0xbe4b, 0xbe4d, 0xbe4f, 0xbe50, 0xbe51, 0xbe52, 0xbe53, 0xbe56, 0xbe58, 0xbe5c, 0xbe5d, 0xbe5e, 0xbe5f, 0xbe62, 0xbe63, 0xbe65, 0xbe66, 0xbe67, 0xbe69, 0xbe6b, 0xbe6c, 0xbe6d, 0xbe6e, 0xbe6f, 0xbe72, 0xbe76, 0xbe77, 0xbe78, 0xbe79, 0xbe7a, 0xbe7e, 0xbe7f, 0xbe81, 0xbe82, 0xbe83, 0xbe85, 0xbe86, 0xbe87, 0xbe88, 0xbe89, 0xbe8a, 0xbe8b, 0xbe8e, 0xbe92, 0xbe93, 0xbe94, 0xbe95, 0xbe96, 0xbe97, 0xbe9a, 0xbe9b, 0xbe9c, 0xbe9d, 0xbe9e, 0xbe9f, 0xbea0, 0xbea1, 0xbea2, 0xbea3, 0xbea4, 0xbea5, 0xbea6, 0xbea7, 0xbea9, 0xbeaa, 0xbeab, 0xbeac, 0xbead, 0xbeae, 0xbeaf, 0xbeb0, 0xbeb1, 0xbeb2, 0xbeb3, 0xbeb4, 0xbeb5, 0xbeb6, 0xbeb7, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9640[ 192 ] = { 0xfffd, 0xbeb8, 0xbeb9, 0xbeba, 0xbebb, 0xbebc, 0xbebd, 0xbebe, 0xbebf, 0xbec0, 0xbec1, 0xbec2, 0xbec3, 0xbec4, 0xbec5, 0xbec6, 0xbec7, 0xbec8, 0xbec9, 0xbeca, 0xbecb, 0xbecc, 0xbecd, 0xbece, 0xbecf, 0xbed2, 0xbed3, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbed5, 0xbed6, 0xbed9, 0xbeda, 0xbedb, 0xbedc, 0xbedd, 0xbede, 0xbedf, 0xbee1, 0xbee2, 0xbee6, 0xbee7, 0xbee8, 0xbee9, 0xbeea, 0xbeeb, 0xbeed, 0xbeee, 0xbeef, 0xbef0, 0xbef1, 0xbef2, 0xbef3, 0xbef4, 0xbef5, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbef6, 0xbef7, 0xbef8, 0xbef9, 0xbefa, 0xbefb, 0xbefc, 0xbefd, 0xbefe, 0xbeff, 0xbf00, 0xbf02, 0xbf03, 0xbf04, 0xbf05, 0xbf06, 0xbf07, 0xbf0a, 0xbf0b, 0xbf0c, 0xbf0d, 0xbf0e, 0xbf0f, 0xbf10, 0xbf11, 0xbf12, 0xbf13, 0xbf14, 0xbf15, 0xbf16, 0xbf17, 0xbf1a, 0xbf1e, 0xbf1f, 0xbf20, 0xbf21, 0xbf22, 0xbf23, 0xbf24, 0xbf25, 0xbf26, 0xbf27, 0xbf28, 0xbf29, 0xbf2a, 0xbf2b, 0xbf2c, 0xbf2d, 0xbf2e, 0xbf2f, 0xbf30, 0xbf31, 0xbf32, 0xbf33, 0xbf34, 0xbf35, 0xbf36, 0xbf37, 0xbf38, 0xbf39, 0xbf3a, 0xbf3b, 0xbf3c, 0xbf3d, 0xbf3e, 0xbf3f, 0xbf42, 0xbf43, 0xbf45, 0xbf46, 0xbf47, 0xbf49, 0xbf4a, 0xbf4b, 0xbf4c, 0xbf4d, 0xbf4e, 0xbf4f, 0xbf52, 0xbf53, 0xbf54, 0xbf56, 0xbf57, 0xbf58, 0xbf59, 0xbf5a, 0xbf5b, 0xbf5c, 0xbf5d, 0xbf5e, 0xbf5f, 0xbf60, 0xbf61, 0xbf62, 0xbf63, 0xbf64, 0xbf65, 0xbf66, 0xbf67, 0xbf68, 0xbf69, 0xbf6a, 0xbf6b, 0xbf6c, 0xbf6d, 0xbf6e, 0xbf6f, 0xbf70, 0xbf71, 0xbf72, 0xbf73, 0xbf74, 0xbf75, 0xbf76, 0xbf77, 0xbf78, 0xbf79, 0xbf7a, 0xbf7b, 0xbf7c, 0xbf7d, 0xbf7e, 0xbf7f, 0xbf80, 0xbf81, 0xbf82, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9740[ 192 ] = { 0xfffd, 0xbf83, 0xbf84, 0xbf85, 0xbf86, 0xbf87, 0xbf88, 0xbf89, 0xbf8a, 0xbf8b, 0xbf8c, 0xbf8d, 0xbf8e, 0xbf8f, 0xbf90, 0xbf91, 0xbf92, 0xbf93, 0xbf95, 0xbf96, 0xbf97, 0xbf98, 0xbf99, 0xbf9a, 0xbf9b, 0xbf9c, 0xbf9d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbf9e, 0xbf9f, 0xbfa0, 0xbfa1, 0xbfa2, 0xbfa3, 0xbfa4, 0xbfa5, 0xbfa6, 0xbfa7, 0xbfa8, 0xbfa9, 0xbfaa, 0xbfab, 0xbfac, 0xbfad, 0xbfae, 0xbfaf, 0xbfb1, 0xbfb2, 0xbfb3, 0xbfb4, 0xbfb5, 0xbfb6, 0xbfb7, 0xbfb8, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xbfb9, 0xbfba, 0xbfbb, 0xbfbc, 0xbfbd, 0xbfbe, 0xbfbf, 0xbfc0, 0xbfc1, 0xbfc2, 0xbfc3, 0xbfc4, 0xbfc6, 0xbfc7, 0xbfc8, 0xbfc9, 0xbfca, 0xbfcb, 0xbfce, 0xbfcf, 0xbfd1, 0xbfd2, 0xbfd3, 0xbfd5, 0xbfd6, 0xbfd7, 0xbfd8, 0xbfd9, 0xbfda, 0xbfdb, 0xbfdd, 0xbfde, 0xbfe0, 0xbfe2, 0xbfe3, 0xbfe4, 0xbfe5, 0xbfe6, 0xbfe7, 0xbfe8, 0xbfe9, 0xbfea, 0xbfeb, 0xbfec, 0xbfed, 0xbfee, 0xbfef, 0xbff0, 0xbff1, 0xbff2, 0xbff3, 0xbff4, 0xbff5, 0xbff6, 0xbff7, 0xbff8, 0xbff9, 0xbffa, 0xbffb, 0xbffc, 0xbffd, 0xbffe, 0xbfff, 0xc000, 0xc001, 0xc002, 0xc003, 0xc004, 0xc005, 0xc006, 0xc007, 0xc008, 0xc009, 0xc00a, 0xc00b, 0xc00c, 0xc00d, 0xc00e, 0xc00f, 0xc010, 0xc011, 0xc012, 0xc013, 0xc014, 0xc015, 0xc016, 0xc017, 0xc018, 0xc019, 0xc01a, 0xc01b, 0xc01c, 0xc01d, 0xc01e, 0xc01f, 0xc020, 0xc021, 0xc022, 0xc023, 0xc024, 0xc025, 0xc026, 0xc027, 0xc028, 0xc029, 0xc02a, 0xc02b, 0xc02c, 0xc02d, 0xc02e, 0xc02f, 0xc030, 0xc031, 0xc032, 0xc033, 0xc034, 0xc035, 0xc036, 0xc037, 0xc038, 0xc039, 0xc03a, 0xc03b, 0xc03d, 0xc03e, 0xc03f, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9840[ 192 ] = { 0xfffd, 0xc040, 0xc041, 0xc042, 0xc043, 0xc044, 0xc045, 0xc046, 0xc047, 0xc048, 0xc049, 0xc04a, 0xc04b, 0xc04c, 0xc04d, 0xc04e, 0xc04f, 0xc050, 0xc052, 0xc053, 0xc054, 0xc055, 0xc056, 0xc057, 0xc059, 0xc05a, 0xc05b, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc05d, 0xc05e, 0xc05f, 0xc061, 0xc062, 0xc063, 0xc064, 0xc065, 0xc066, 0xc067, 0xc06a, 0xc06b, 0xc06c, 0xc06d, 0xc06e, 0xc06f, 0xc070, 0xc071, 0xc072, 0xc073, 0xc074, 0xc075, 0xc076, 0xc077, 0xc078, 0xc079, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc07a, 0xc07b, 0xc07c, 0xc07d, 0xc07e, 0xc07f, 0xc080, 0xc081, 0xc082, 0xc083, 0xc084, 0xc085, 0xc086, 0xc087, 0xc088, 0xc089, 0xc08a, 0xc08b, 0xc08c, 0xc08d, 0xc08e, 0xc08f, 0xc092, 0xc093, 0xc095, 0xc096, 0xc097, 0xc099, 0xc09a, 0xc09b, 0xc09c, 0xc09d, 0xc09e, 0xc09f, 0xc0a2, 0xc0a4, 0xc0a6, 0xc0a7, 0xc0a8, 0xc0a9, 0xc0aa, 0xc0ab, 0xc0ae, 0xc0b1, 0xc0b2, 0xc0b7, 0xc0b8, 0xc0b9, 0xc0ba, 0xc0bb, 0xc0be, 0xc0c2, 0xc0c3, 0xc0c4, 0xc0c6, 0xc0c7, 0xc0ca, 0xc0cb, 0xc0cd, 0xc0ce, 0xc0cf, 0xc0d1, 0xc0d2, 0xc0d3, 0xc0d4, 0xc0d5, 0xc0d6, 0xc0d7, 0xc0da, 0xc0de, 0xc0df, 0xc0e0, 0xc0e1, 0xc0e2, 0xc0e3, 0xc0e6, 0xc0e7, 0xc0e9, 0xc0ea, 0xc0eb, 0xc0ed, 0xc0ee, 0xc0ef, 0xc0f0, 0xc0f1, 0xc0f2, 0xc0f3, 0xc0f6, 0xc0f8, 0xc0fa, 0xc0fb, 0xc0fc, 0xc0fd, 0xc0fe, 0xc0ff, 0xc101, 0xc102, 0xc103, 0xc105, 0xc106, 0xc107, 0xc109, 0xc10a, 0xc10b, 0xc10c, 0xc10d, 0xc10e, 0xc10f, 0xc111, 0xc112, 0xc113, 0xc114, 0xc116, 0xc117, 0xc118, 0xc119, 0xc11a, 0xc11b, 0xc121, 0xc122, 0xc125, 0xc128, 0xc129, 0xc12a, 0xc12b, 0xc12e, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9940[ 192 ] = { 0xfffd, 0xc132, 0xc133, 0xc134, 0xc135, 0xc137, 0xc13a, 0xc13b, 0xc13d, 0xc13e, 0xc13f, 0xc141, 0xc142, 0xc143, 0xc144, 0xc145, 0xc146, 0xc147, 0xc14a, 0xc14e, 0xc14f, 0xc150, 0xc151, 0xc152, 0xc153, 0xc156, 0xc157, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc159, 0xc15a, 0xc15b, 0xc15d, 0xc15e, 0xc15f, 0xc160, 0xc161, 0xc162, 0xc163, 0xc166, 0xc16a, 0xc16b, 0xc16c, 0xc16d, 0xc16e, 0xc16f, 0xc171, 0xc172, 0xc173, 0xc175, 0xc176, 0xc177, 0xc179, 0xc17a, 0xc17b, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc17c, 0xc17d, 0xc17e, 0xc17f, 0xc180, 0xc181, 0xc182, 0xc183, 0xc184, 0xc186, 0xc187, 0xc188, 0xc189, 0xc18a, 0xc18b, 0xc18f, 0xc191, 0xc192, 0xc193, 0xc195, 0xc197, 0xc198, 0xc199, 0xc19a, 0xc19b, 0xc19e, 0xc1a0, 0xc1a2, 0xc1a3, 0xc1a4, 0xc1a6, 0xc1a7, 0xc1aa, 0xc1ab, 0xc1ad, 0xc1ae, 0xc1af, 0xc1b1, 0xc1b2, 0xc1b3, 0xc1b4, 0xc1b5, 0xc1b6, 0xc1b7, 0xc1b8, 0xc1b9, 0xc1ba, 0xc1bb, 0xc1bc, 0xc1be, 0xc1bf, 0xc1c0, 0xc1c1, 0xc1c2, 0xc1c3, 0xc1c5, 0xc1c6, 0xc1c7, 0xc1c9, 0xc1ca, 0xc1cb, 0xc1cd, 0xc1ce, 0xc1cf, 0xc1d0, 0xc1d1, 0xc1d2, 0xc1d3, 0xc1d5, 0xc1d6, 0xc1d9, 0xc1da, 0xc1db, 0xc1dc, 0xc1dd, 0xc1de, 0xc1df, 0xc1e1, 0xc1e2, 0xc1e3, 0xc1e5, 0xc1e6, 0xc1e7, 0xc1e9, 0xc1ea, 0xc1eb, 0xc1ec, 0xc1ed, 0xc1ee, 0xc1ef, 0xc1f2, 0xc1f4, 0xc1f5, 0xc1f6, 0xc1f7, 0xc1f8, 0xc1f9, 0xc1fa, 0xc1fb, 0xc1fe, 0xc1ff, 0xc201, 0xc202, 0xc203, 0xc205, 0xc206, 0xc207, 0xc208, 0xc209, 0xc20a, 0xc20b, 0xc20e, 0xc210, 0xc212, 0xc213, 0xc214, 0xc215, 0xc216, 0xc217, 0xc21a, 0xc21b, 0xc21d, 0xc21e, 0xc221, 0xc222, 0xc223, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9a40[ 192 ] = { 0xfffd, 0xc224, 0xc225, 0xc226, 0xc227, 0xc22a, 0xc22c, 0xc22e, 0xc230, 0xc233, 0xc235, 0xc236, 0xc237, 0xc238, 0xc239, 0xc23a, 0xc23b, 0xc23c, 0xc23d, 0xc23e, 0xc23f, 0xc240, 0xc241, 0xc242, 0xc243, 0xc244, 0xc245, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc246, 0xc247, 0xc249, 0xc24a, 0xc24b, 0xc24c, 0xc24d, 0xc24e, 0xc24f, 0xc252, 0xc253, 0xc255, 0xc256, 0xc257, 0xc259, 0xc25a, 0xc25b, 0xc25c, 0xc25d, 0xc25e, 0xc25f, 0xc261, 0xc262, 0xc263, 0xc264, 0xc266, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc267, 0xc268, 0xc269, 0xc26a, 0xc26b, 0xc26e, 0xc26f, 0xc271, 0xc272, 0xc273, 0xc275, 0xc276, 0xc277, 0xc278, 0xc279, 0xc27a, 0xc27b, 0xc27e, 0xc280, 0xc282, 0xc283, 0xc284, 0xc285, 0xc286, 0xc287, 0xc28a, 0xc28b, 0xc28c, 0xc28d, 0xc28e, 0xc28f, 0xc291, 0xc292, 0xc293, 0xc294, 0xc295, 0xc296, 0xc297, 0xc299, 0xc29a, 0xc29c, 0xc29e, 0xc29f, 0xc2a0, 0xc2a1, 0xc2a2, 0xc2a3, 0xc2a6, 0xc2a7, 0xc2a9, 0xc2aa, 0xc2ab, 0xc2ae, 0xc2af, 0xc2b0, 0xc2b1, 0xc2b2, 0xc2b3, 0xc2b6, 0xc2b8, 0xc2ba, 0xc2bb, 0xc2bc, 0xc2bd, 0xc2be, 0xc2bf, 0xc2c0, 0xc2c1, 0xc2c2, 0xc2c3, 0xc2c4, 0xc2c5, 0xc2c6, 0xc2c7, 0xc2c8, 0xc2c9, 0xc2ca, 0xc2cb, 0xc2cc, 0xc2cd, 0xc2ce, 0xc2cf, 0xc2d0, 0xc2d1, 0xc2d2, 0xc2d3, 0xc2d4, 0xc2d5, 0xc2d6, 0xc2d7, 0xc2d8, 0xc2d9, 0xc2da, 0xc2db, 0xc2de, 0xc2df, 0xc2e1, 0xc2e2, 0xc2e5, 0xc2e6, 0xc2e7, 0xc2e8, 0xc2e9, 0xc2ea, 0xc2ee, 0xc2f0, 0xc2f2, 0xc2f3, 0xc2f4, 0xc2f5, 0xc2f7, 0xc2fa, 0xc2fd, 0xc2fe, 0xc2ff, 0xc301, 0xc302, 0xc303, 0xc304, 0xc305, 0xc306, 0xc307, 0xc30a, 0xc30b, 0xc30e, 0xc30f, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9b40[ 192 ] = { 0xfffd, 0xc310, 0xc311, 0xc312, 0xc316, 0xc317, 0xc319, 0xc31a, 0xc31b, 0xc31d, 0xc31e, 0xc31f, 0xc320, 0xc321, 0xc322, 0xc323, 0xc326, 0xc327, 0xc32a, 0xc32b, 0xc32c, 0xc32d, 0xc32e, 0xc32f, 0xc330, 0xc331, 0xc332, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc333, 0xc334, 0xc335, 0xc336, 0xc337, 0xc338, 0xc339, 0xc33a, 0xc33b, 0xc33c, 0xc33d, 0xc33e, 0xc33f, 0xc340, 0xc341, 0xc342, 0xc343, 0xc344, 0xc346, 0xc347, 0xc348, 0xc349, 0xc34a, 0xc34b, 0xc34c, 0xc34d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc34e, 0xc34f, 0xc350, 0xc351, 0xc352, 0xc353, 0xc354, 0xc355, 0xc356, 0xc357, 0xc358, 0xc359, 0xc35a, 0xc35b, 0xc35c, 0xc35d, 0xc35e, 0xc35f, 0xc360, 0xc361, 0xc362, 0xc363, 0xc364, 0xc365, 0xc366, 0xc367, 0xc36a, 0xc36b, 0xc36d, 0xc36e, 0xc36f, 0xc371, 0xc373, 0xc374, 0xc375, 0xc376, 0xc377, 0xc37a, 0xc37b, 0xc37e, 0xc37f, 0xc380, 0xc381, 0xc382, 0xc383, 0xc385, 0xc386, 0xc387, 0xc389, 0xc38a, 0xc38b, 0xc38d, 0xc38e, 0xc38f, 0xc390, 0xc391, 0xc392, 0xc393, 0xc394, 0xc395, 0xc396, 0xc397, 0xc398, 0xc399, 0xc39a, 0xc39b, 0xc39c, 0xc39d, 0xc39e, 0xc39f, 0xc3a0, 0xc3a1, 0xc3a2, 0xc3a3, 0xc3a4, 0xc3a5, 0xc3a6, 0xc3a7, 0xc3a8, 0xc3a9, 0xc3aa, 0xc3ab, 0xc3ac, 0xc3ad, 0xc3ae, 0xc3af, 0xc3b0, 0xc3b1, 0xc3b2, 0xc3b3, 0xc3b4, 0xc3b5, 0xc3b6, 0xc3b7, 0xc3b8, 0xc3b9, 0xc3ba, 0xc3bb, 0xc3bc, 0xc3bd, 0xc3be, 0xc3bf, 0xc3c1, 0xc3c2, 0xc3c3, 0xc3c4, 0xc3c5, 0xc3c6, 0xc3c7, 0xc3c8, 0xc3c9, 0xc3ca, 0xc3cb, 0xc3cc, 0xc3cd, 0xc3ce, 0xc3cf, 0xc3d0, 0xc3d1, 0xc3d2, 0xc3d3, 0xc3d4, 0xc3d5, 0xc3d6, 0xc3d7, 0xc3da, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9c40[ 192 ] = { 0xfffd, 0xc3db, 0xc3dd, 0xc3de, 0xc3e1, 0xc3e3, 0xc3e4, 0xc3e5, 0xc3e6, 0xc3e7, 0xc3ea, 0xc3eb, 0xc3ec, 0xc3ee, 0xc3ef, 0xc3f0, 0xc3f1, 0xc3f2, 0xc3f3, 0xc3f6, 0xc3f7, 0xc3f9, 0xc3fa, 0xc3fb, 0xc3fc, 0xc3fd, 0xc3fe, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc3ff, 0xc400, 0xc401, 0xc402, 0xc403, 0xc404, 0xc405, 0xc406, 0xc407, 0xc409, 0xc40a, 0xc40b, 0xc40c, 0xc40d, 0xc40e, 0xc40f, 0xc411, 0xc412, 0xc413, 0xc414, 0xc415, 0xc416, 0xc417, 0xc418, 0xc419, 0xc41a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc41b, 0xc41c, 0xc41d, 0xc41e, 0xc41f, 0xc420, 0xc421, 0xc422, 0xc423, 0xc425, 0xc426, 0xc427, 0xc428, 0xc429, 0xc42a, 0xc42b, 0xc42d, 0xc42e, 0xc42f, 0xc431, 0xc432, 0xc433, 0xc435, 0xc436, 0xc437, 0xc438, 0xc439, 0xc43a, 0xc43b, 0xc43e, 0xc43f, 0xc440, 0xc441, 0xc442, 0xc443, 0xc444, 0xc445, 0xc446, 0xc447, 0xc449, 0xc44a, 0xc44b, 0xc44c, 0xc44d, 0xc44e, 0xc44f, 0xc450, 0xc451, 0xc452, 0xc453, 0xc454, 0xc455, 0xc456, 0xc457, 0xc458, 0xc459, 0xc45a, 0xc45b, 0xc45c, 0xc45d, 0xc45e, 0xc45f, 0xc460, 0xc461, 0xc462, 0xc463, 0xc466, 0xc467, 0xc469, 0xc46a, 0xc46b, 0xc46d, 0xc46e, 0xc46f, 0xc470, 0xc471, 0xc472, 0xc473, 0xc476, 0xc477, 0xc478, 0xc47a, 0xc47b, 0xc47c, 0xc47d, 0xc47e, 0xc47f, 0xc481, 0xc482, 0xc483, 0xc484, 0xc485, 0xc486, 0xc487, 0xc488, 0xc489, 0xc48a, 0xc48b, 0xc48c, 0xc48d, 0xc48e, 0xc48f, 0xc490, 0xc491, 0xc492, 0xc493, 0xc495, 0xc496, 0xc497, 0xc498, 0xc499, 0xc49a, 0xc49b, 0xc49d, 0xc49e, 0xc49f, 0xc4a0, 0xc4a1, 0xc4a2, 0xc4a3, 0xc4a4, 0xc4a5, 0xc4a6, 0xc4a7, 0xc4a8, 0xc4a9, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9d40[ 192 ] = { 0xfffd, 0xc4aa, 0xc4ab, 0xc4ac, 0xc4ad, 0xc4ae, 0xc4af, 0xc4b0, 0xc4b1, 0xc4b2, 0xc4b3, 0xc4b4, 0xc4b5, 0xc4b6, 0xc4b7, 0xc4b9, 0xc4ba, 0xc4bb, 0xc4bd, 0xc4be, 0xc4bf, 0xc4c0, 0xc4c1, 0xc4c2, 0xc4c3, 0xc4c4, 0xc4c5, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc4c6, 0xc4c7, 0xc4c8, 0xc4c9, 0xc4ca, 0xc4cb, 0xc4cc, 0xc4cd, 0xc4ce, 0xc4cf, 0xc4d0, 0xc4d1, 0xc4d2, 0xc4d3, 0xc4d4, 0xc4d5, 0xc4d6, 0xc4d7, 0xc4d8, 0xc4d9, 0xc4da, 0xc4db, 0xc4dc, 0xc4dd, 0xc4de, 0xc4df, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc4e0, 0xc4e1, 0xc4e2, 0xc4e3, 0xc4e4, 0xc4e5, 0xc4e6, 0xc4e7, 0xc4e8, 0xc4ea, 0xc4eb, 0xc4ec, 0xc4ed, 0xc4ee, 0xc4ef, 0xc4f2, 0xc4f3, 0xc4f5, 0xc4f6, 0xc4f7, 0xc4f9, 0xc4fb, 0xc4fc, 0xc4fd, 0xc4fe, 0xc502, 0xc503, 0xc504, 0xc505, 0xc506, 0xc507, 0xc508, 0xc509, 0xc50a, 0xc50b, 0xc50d, 0xc50e, 0xc50f, 0xc511, 0xc512, 0xc513, 0xc515, 0xc516, 0xc517, 0xc518, 0xc519, 0xc51a, 0xc51b, 0xc51d, 0xc51e, 0xc51f, 0xc520, 0xc521, 0xc522, 0xc523, 0xc524, 0xc525, 0xc526, 0xc527, 0xc52a, 0xc52b, 0xc52d, 0xc52e, 0xc52f, 0xc531, 0xc532, 0xc533, 0xc534, 0xc535, 0xc536, 0xc537, 0xc53a, 0xc53c, 0xc53e, 0xc53f, 0xc540, 0xc541, 0xc542, 0xc543, 0xc546, 0xc547, 0xc54b, 0xc54f, 0xc550, 0xc551, 0xc552, 0xc556, 0xc55a, 0xc55b, 0xc55c, 0xc55f, 0xc562, 0xc563, 0xc565, 0xc566, 0xc567, 0xc569, 0xc56a, 0xc56b, 0xc56c, 0xc56d, 0xc56e, 0xc56f, 0xc572, 0xc576, 0xc577, 0xc578, 0xc579, 0xc57a, 0xc57b, 0xc57e, 0xc57f, 0xc581, 0xc582, 0xc583, 0xc585, 0xc586, 0xc588, 0xc589, 0xc58a, 0xc58b, 0xc58e, 0xc590, 0xc592, 0xc593, 0xc594, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9e40[ 192 ] = { 0xfffd, 0xc596, 0xc599, 0xc59a, 0xc59b, 0xc59d, 0xc59e, 0xc59f, 0xc5a1, 0xc5a2, 0xc5a3, 0xc5a4, 0xc5a5, 0xc5a6, 0xc5a7, 0xc5a8, 0xc5aa, 0xc5ab, 0xc5ac, 0xc5ad, 0xc5ae, 0xc5af, 0xc5b0, 0xc5b1, 0xc5b2, 0xc5b3, 0xc5b6, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc5b7, 0xc5ba, 0xc5bf, 0xc5c0, 0xc5c1, 0xc5c2, 0xc5c3, 0xc5cb, 0xc5cd, 0xc5cf, 0xc5d2, 0xc5d3, 0xc5d5, 0xc5d6, 0xc5d7, 0xc5d9, 0xc5da, 0xc5db, 0xc5dc, 0xc5dd, 0xc5de, 0xc5df, 0xc5e2, 0xc5e4, 0xc5e6, 0xc5e7, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc5e8, 0xc5e9, 0xc5ea, 0xc5eb, 0xc5ef, 0xc5f1, 0xc5f2, 0xc5f3, 0xc5f5, 0xc5f8, 0xc5f9, 0xc5fa, 0xc5fb, 0xc602, 0xc603, 0xc604, 0xc609, 0xc60a, 0xc60b, 0xc60d, 0xc60e, 0xc60f, 0xc611, 0xc612, 0xc613, 0xc614, 0xc615, 0xc616, 0xc617, 0xc61a, 0xc61d, 0xc61e, 0xc61f, 0xc620, 0xc621, 0xc622, 0xc623, 0xc626, 0xc627, 0xc629, 0xc62a, 0xc62b, 0xc62f, 0xc631, 0xc632, 0xc636, 0xc638, 0xc63a, 0xc63c, 0xc63d, 0xc63e, 0xc63f, 0xc642, 0xc643, 0xc645, 0xc646, 0xc647, 0xc649, 0xc64a, 0xc64b, 0xc64c, 0xc64d, 0xc64e, 0xc64f, 0xc652, 0xc656, 0xc657, 0xc658, 0xc659, 0xc65a, 0xc65b, 0xc65e, 0xc65f, 0xc661, 0xc662, 0xc663, 0xc664, 0xc665, 0xc666, 0xc667, 0xc668, 0xc669, 0xc66a, 0xc66b, 0xc66d, 0xc66e, 0xc670, 0xc672, 0xc673, 0xc674, 0xc675, 0xc676, 0xc677, 0xc67a, 0xc67b, 0xc67d, 0xc67e, 0xc67f, 0xc681, 0xc682, 0xc683, 0xc684, 0xc685, 0xc686, 0xc687, 0xc68a, 0xc68c, 0xc68e, 0xc68f, 0xc690, 0xc691, 0xc692, 0xc693, 0xc696, 0xc697, 0xc699, 0xc69a, 0xc69b, 0xc69d, 0xc69e, 0xc69f, 0xc6a0, 0xc6a1, 0xc6a2, 0xc6a3, 0xc6a6, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9f40[ 192 ] = { 0xfffd, 0xc6a8, 0xc6aa, 0xc6ab, 0xc6ac, 0xc6ad, 0xc6ae, 0xc6af, 0xc6b2, 0xc6b3, 0xc6b5, 0xc6b6, 0xc6b7, 0xc6bb, 0xc6bc, 0xc6bd, 0xc6be, 0xc6bf, 0xc6c2, 0xc6c4, 0xc6c6, 0xc6c7, 0xc6c8, 0xc6c9, 0xc6ca, 0xc6cb, 0xc6ce, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc6cf, 0xc6d1, 0xc6d2, 0xc6d3, 0xc6d5, 0xc6d6, 0xc6d7, 0xc6d8, 0xc6d9, 0xc6da, 0xc6db, 0xc6de, 0xc6df, 0xc6e2, 0xc6e3, 0xc6e4, 0xc6e5, 0xc6e6, 0xc6e7, 0xc6ea, 0xc6eb, 0xc6ed, 0xc6ee, 0xc6ef, 0xc6f1, 0xc6f2, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc6f3, 0xc6f4, 0xc6f5, 0xc6f6, 0xc6f7, 0xc6fa, 0xc6fb, 0xc6fc, 0xc6fe, 0xc6ff, 0xc700, 0xc701, 0xc702, 0xc703, 0xc706, 0xc707, 0xc709, 0xc70a, 0xc70b, 0xc70d, 0xc70e, 0xc70f, 0xc710, 0xc711, 0xc712, 0xc713, 0xc716, 0xc718, 0xc71a, 0xc71b, 0xc71c, 0xc71d, 0xc71e, 0xc71f, 0xc722, 0xc723, 0xc725, 0xc726, 0xc727, 0xc729, 0xc72a, 0xc72b, 0xc72c, 0xc72d, 0xc72e, 0xc72f, 0xc732, 0xc734, 0xc736, 0xc738, 0xc739, 0xc73a, 0xc73b, 0xc73e, 0xc73f, 0xc741, 0xc742, 0xc743, 0xc745, 0xc746, 0xc747, 0xc748, 0xc749, 0xc74b, 0xc74e, 0xc750, 0xc759, 0xc75a, 0xc75b, 0xc75d, 0xc75e, 0xc75f, 0xc761, 0xc762, 0xc763, 0xc764, 0xc765, 0xc766, 0xc767, 0xc769, 0xc76a, 0xc76c, 0xc76d, 0xc76e, 0xc76f, 0xc770, 0xc771, 0xc772, 0xc773, 0xc776, 0xc777, 0xc779, 0xc77a, 0xc77b, 0xc77f, 0xc780, 0xc781, 0xc782, 0xc786, 0xc78b, 0xc78c, 0xc78d, 0xc78f, 0xc792, 0xc793, 0xc795, 0xc799, 0xc79b, 0xc79c, 0xc79d, 0xc79e, 0xc79f, 0xc7a2, 0xc7a7, 0xc7a8, 0xc7a9, 0xc7aa, 0xc7ab, 0xc7ae, 0xc7af, 0xc7b1, 0xc7b2, 0xc7b3, 0xc7b5, 0xc7b6, 0xc7b7, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa040[ 192 ] = { 0xfffd, 0xc7b8, 0xc7b9, 0xc7ba, 0xc7bb, 0xc7be, 0xc7c2, 0xc7c3, 0xc7c4, 0xc7c5, 0xc7c6, 0xc7c7, 0xc7ca, 0xc7cb, 0xc7cd, 0xc7cf, 0xc7d1, 0xc7d2, 0xc7d3, 0xc7d4, 0xc7d5, 0xc7d6, 0xc7d7, 0xc7d9, 0xc7da, 0xc7db, 0xc7dc, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc7de, 0xc7df, 0xc7e0, 0xc7e1, 0xc7e2, 0xc7e3, 0xc7e5, 0xc7e6, 0xc7e7, 0xc7e9, 0xc7ea, 0xc7eb, 0xc7ed, 0xc7ee, 0xc7ef, 0xc7f0, 0xc7f1, 0xc7f2, 0xc7f3, 0xc7f4, 0xc7f5, 0xc7f6, 0xc7f7, 0xc7f8, 0xc7f9, 0xc7fa, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc7fb, 0xc7fc, 0xc7fd, 0xc7fe, 0xc7ff, 0xc802, 0xc803, 0xc805, 0xc806, 0xc807, 0xc809, 0xc80b, 0xc80c, 0xc80d, 0xc80e, 0xc80f, 0xc812, 0xc814, 0xc817, 0xc818, 0xc819, 0xc81a, 0xc81b, 0xc81e, 0xc81f, 0xc821, 0xc822, 0xc823, 0xc825, 0xc826, 0xc827, 0xc828, 0xc829, 0xc82a, 0xc82b, 0xc82e, 0xc830, 0xc832, 0xc833, 0xc834, 0xc835, 0xc836, 0xc837, 0xc839, 0xc83a, 0xc83b, 0xc83d, 0xc83e, 0xc83f, 0xc841, 0xc842, 0xc843, 0xc844, 0xc845, 0xc846, 0xc847, 0xc84a, 0xc84b, 0xc84e, 0xc84f, 0xc850, 0xc851, 0xc852, 0xc853, 0xc855, 0xc856, 0xc857, 0xc858, 0xc859, 0xc85a, 0xc85b, 0xc85c, 0xc85d, 0xc85e, 0xc85f, 0xc860, 0xc861, 0xc862, 0xc863, 0xc864, 0xc865, 0xc866, 0xc867, 0xc868, 0xc869, 0xc86a, 0xc86b, 0xc86c, 0xc86d, 0xc86e, 0xc86f, 0xc872, 0xc873, 0xc875, 0xc876, 0xc877, 0xc879, 0xc87b, 0xc87c, 0xc87d, 0xc87e, 0xc87f, 0xc882, 0xc884, 0xc888, 0xc889, 0xc88a, 0xc88e, 0xc88f, 0xc890, 0xc891, 0xc892, 0xc893, 0xc895, 0xc896, 0xc897, 0xc898, 0xc899, 0xc89a, 0xc89b, 0xc89c, 0xc89e, 0xc8a0, 0xc8a2, 0xc8a3, 0xc8a4, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa140[ 192 ] = { 0xfffd, 0xc8a5, 0xc8a6, 0xc8a7, 0xc8a9, 0xc8aa, 0xc8ab, 0xc8ac, 0xc8ad, 0xc8ae, 0xc8af, 0xc8b0, 0xc8b1, 0xc8b2, 0xc8b3, 0xc8b4, 0xc8b5, 0xc8b6, 0xc8b7, 0xc8b8, 0xc8b9, 0xc8ba, 0xc8bb, 0xc8be, 0xc8bf, 0xc8c0, 0xc8c1, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc8c2, 0xc8c3, 0xc8c5, 0xc8c6, 0xc8c7, 0xc8c9, 0xc8ca, 0xc8cb, 0xc8cd, 0xc8ce, 0xc8cf, 0xc8d0, 0xc8d1, 0xc8d2, 0xc8d3, 0xc8d6, 0xc8d8, 0xc8da, 0xc8db, 0xc8dc, 0xc8dd, 0xc8de, 0xc8df, 0xc8e2, 0xc8e3, 0xc8e5, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc8e6, 0xc8e7, 0xc8e8, 0xc8e9, 0xc8ea, 0xc8eb, 0xc8ec, 0xc8ed, 0xc8ee, 0xc8ef, 0xc8f0, 0xc8f1, 0xc8f2, 0xc8f3, 0xc8f4, 0xc8f6, 0xc8f7, 0xc8f8, 0xc8f9, 0xc8fa, 0xc8fb, 0xc8fe, 0xc8ff, 0xc901, 0xc902, 0xc903, 0xc907, 0xc908, 0xc909, 0xc90a, 0xc90b, 0xc90e, 0x3000, 0x3001, 0x3002, 0x00b7, 0x2025, 0x2026, 0x00a8, 0x3003, 0x00ad, 0x2015, 0x2225, 0xff3c, 0x223c, 0x2018, 0x2019, 0x201c, 0x201d, 0x3014, 0x3015, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, 0x300d, 0x300e, 0x300f, 0x3010, 0x3011, 0x00b1, 0x00d7, 0x00f7, 0x2260, 0x2264, 0x2265, 0x221e, 0x2234, 0x00b0, 0x2032, 0x2033, 0x2103, 0x212b, 0xffe0, 0xffe1, 0xffe5, 0x2642, 0x2640, 0x2220, 0x22a5, 0x2312, 0x2202, 0x2207, 0x2261, 0x2252, 0x00a7, 0x203b, 0x2606, 0x2605, 0x25cb, 0x25cf, 0x25ce, 0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25b3, 0x25b2, 0x25bd, 0x25bc, 0x2192, 0x2190, 0x2191, 0x2193, 0x2194, 0x3013, 0x226a, 0x226b, 0x221a, 0x223d, 0x221d, 0x2235, 0x222b, 0x222c, 0x2208, 0x220b, 0x2286, 0x2287, 0x2282, 0x2283, 0x222a, 0x2229, 0x2227, 0x2228, 0xffe2, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa240[ 168 ] = { 0xfffd, 0xc910, 0xc912, 0xc913, 0xc914, 0xc915, 0xc916, 0xc917, 0xc919, 0xc91a, 0xc91b, 0xc91c, 0xc91d, 0xc91e, 0xc91f, 0xc920, 0xc921, 0xc922, 0xc923, 0xc924, 0xc925, 0xc926, 0xc927, 0xc928, 0xc929, 0xc92a, 0xc92b, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc92d, 0xc92e, 0xc92f, 0xc930, 0xc931, 0xc932, 0xc933, 0xc935, 0xc936, 0xc937, 0xc938, 0xc939, 0xc93a, 0xc93b, 0xc93c, 0xc93d, 0xc93e, 0xc93f, 0xc940, 0xc941, 0xc942, 0xc943, 0xc944, 0xc945, 0xc946, 0xc947, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc948, 0xc949, 0xc94a, 0xc94b, 0xc94c, 0xc94d, 0xc94e, 0xc94f, 0xc952, 0xc953, 0xc955, 0xc956, 0xc957, 0xc959, 0xc95a, 0xc95b, 0xc95c, 0xc95d, 0xc95e, 0xc95f, 0xc962, 0xc964, 0xc965, 0xc966, 0xc967, 0xc968, 0xc969, 0xc96a, 0xc96b, 0xc96d, 0xc96e, 0xc96f, 0x21d2, 0x21d4, 0x2200, 0x2203, 0x00b4, 0xff5e, 0x02c7, 0x02d8, 0x02dd, 0x02da, 0x02d9, 0x00b8, 0x02db, 0x00a1, 0x00bf, 0x02d0, 0x222e, 0x2211, 0x220f, 0x00a4, 0x2109, 0x2030, 0x25c1, 0x25c0, 0x25b7, 0x25b6, 0x2664, 0x2660, 0x2661, 0x2665, 0x2667, 0x2663, 0x2299, 0x25c8, 0x25a3, 0x25d0, 0x25d1, 0x2592, 0x25a4, 0x25a5, 0x25a8, 0x25a7, 0x25a6, 0x25a9, 0x2668, 0x260f, 0x260e, 0x261c, 0x261e, 0x00b6, 0x2020, 0x2021, 0x2195, 0x2197, 0x2199, 0x2196, 0x2198, 0x266d, 0x2669, 0x266a, 0x266c, 0x327f, 0x321c, 0x2116, 0x33c7, 0x2122, 0x33c2, 0x33d8, 0x2121, 0x20ac, 0x00ae }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa340[ 192 ] = { 0xfffd, 0xc971, 0xc972, 0xc973, 0xc975, 0xc976, 0xc977, 0xc978, 0xc979, 0xc97a, 0xc97b, 0xc97d, 0xc97e, 0xc97f, 0xc980, 0xc981, 0xc982, 0xc983, 0xc984, 0xc985, 0xc986, 0xc987, 0xc98a, 0xc98b, 0xc98d, 0xc98e, 0xc98f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc991, 0xc992, 0xc993, 0xc994, 0xc995, 0xc996, 0xc997, 0xc99a, 0xc99c, 0xc99e, 0xc99f, 0xc9a0, 0xc9a1, 0xc9a2, 0xc9a3, 0xc9a4, 0xc9a5, 0xc9a6, 0xc9a7, 0xc9a8, 0xc9a9, 0xc9aa, 0xc9ab, 0xc9ac, 0xc9ad, 0xc9ae, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xc9af, 0xc9b0, 0xc9b1, 0xc9b2, 0xc9b3, 0xc9b4, 0xc9b5, 0xc9b6, 0xc9b7, 0xc9b8, 0xc9b9, 0xc9ba, 0xc9bb, 0xc9bc, 0xc9bd, 0xc9be, 0xc9bf, 0xc9c2, 0xc9c3, 0xc9c5, 0xc9c6, 0xc9c9, 0xc9cb, 0xc9cc, 0xc9cd, 0xc9ce, 0xc9cf, 0xc9d2, 0xc9d4, 0xc9d7, 0xc9d8, 0xc9db, 0xff01, 0xff02, 0xff03, 0xff04, 0xff05, 0xff06, 0xff07, 0xff08, 0xff09, 0xff0a, 0xff0b, 0xff0c, 0xff0d, 0xff0e, 0xff0f, 0xff10, 0xff11, 0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17, 0xff18, 0xff19, 0xff1a, 0xff1b, 0xff1c, 0xff1d, 0xff1e, 0xff1f, 0xff20, 0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28, 0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, 0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38, 0xff39, 0xff3a, 0xff3b, 0xffe6, 0xff3d, 0xff3e, 0xff3f, 0xff40, 0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46, 0xff47, 0xff48, 0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, 0xff4f, 0xff50, 0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56, 0xff57, 0xff58, 0xff59, 0xff5a, 0xff5b, 0xff5c, 0xff5d, 0xffe3, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa440[ 192 ] = { 0xfffd, 0xc9de, 0xc9df, 0xc9e1, 0xc9e3, 0xc9e5, 0xc9e6, 0xc9e8, 0xc9e9, 0xc9ea, 0xc9eb, 0xc9ee, 0xc9f2, 0xc9f3, 0xc9f4, 0xc9f5, 0xc9f6, 0xc9f7, 0xc9fa, 0xc9fb, 0xc9fd, 0xc9fe, 0xc9ff, 0xca01, 0xca02, 0xca03, 0xca04, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xca05, 0xca06, 0xca07, 0xca0a, 0xca0e, 0xca0f, 0xca10, 0xca11, 0xca12, 0xca13, 0xca15, 0xca16, 0xca17, 0xca19, 0xca1a, 0xca1b, 0xca1c, 0xca1d, 0xca1e, 0xca1f, 0xca20, 0xca21, 0xca22, 0xca23, 0xca24, 0xca25, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xca26, 0xca27, 0xca28, 0xca2a, 0xca2b, 0xca2c, 0xca2d, 0xca2e, 0xca2f, 0xca30, 0xca31, 0xca32, 0xca33, 0xca34, 0xca35, 0xca36, 0xca37, 0xca38, 0xca39, 0xca3a, 0xca3b, 0xca3c, 0xca3d, 0xca3e, 0xca3f, 0xca40, 0xca41, 0xca42, 0xca43, 0xca44, 0xca45, 0xca46, 0x3131, 0x3132, 0x3133, 0x3134, 0x3135, 0x3136, 0x3137, 0x3138, 0x3139, 0x313a, 0x313b, 0x313c, 0x313d, 0x313e, 0x313f, 0x3140, 0x3141, 0x3142, 0x3143, 0x3144, 0x3145, 0x3146, 0x3147, 0x3148, 0x3149, 0x314a, 0x314b, 0x314c, 0x314d, 0x314e, 0x314f, 0x3150, 0x3151, 0x3152, 0x3153, 0x3154, 0x3155, 0x3156, 0x3157, 0x3158, 0x3159, 0x315a, 0x315b, 0x315c, 0x315d, 0x315e, 0x315f, 0x3160, 0x3161, 0x3162, 0x3163, 0x3164, 0x3165, 0x3166, 0x3167, 0x3168, 0x3169, 0x316a, 0x316b, 0x316c, 0x316d, 0x316e, 0x316f, 0x3170, 0x3171, 0x3172, 0x3173, 0x3174, 0x3175, 0x3176, 0x3177, 0x3178, 0x3179, 0x317a, 0x317b, 0x317c, 0x317d, 0x317e, 0x317f, 0x3180, 0x3181, 0x3182, 0x3183, 0x3184, 0x3185, 0x3186, 0x3187, 0x3188, 0x3189, 0x318a, 0x318b, 0x318c, 0x318d, 0x318e, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa540[ 192 ] = { 0xfffd, 0xca47, 0xca48, 0xca49, 0xca4a, 0xca4b, 0xca4e, 0xca4f, 0xca51, 0xca52, 0xca53, 0xca55, 0xca56, 0xca57, 0xca58, 0xca59, 0xca5a, 0xca5b, 0xca5e, 0xca62, 0xca63, 0xca64, 0xca65, 0xca66, 0xca67, 0xca69, 0xca6a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xca6b, 0xca6c, 0xca6d, 0xca6e, 0xca6f, 0xca70, 0xca71, 0xca72, 0xca73, 0xca74, 0xca75, 0xca76, 0xca77, 0xca78, 0xca79, 0xca7a, 0xca7b, 0xca7c, 0xca7e, 0xca7f, 0xca80, 0xca81, 0xca82, 0xca83, 0xca85, 0xca86, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xca87, 0xca88, 0xca89, 0xca8a, 0xca8b, 0xca8c, 0xca8d, 0xca8e, 0xca8f, 0xca90, 0xca91, 0xca92, 0xca93, 0xca94, 0xca95, 0xca96, 0xca97, 0xca99, 0xca9a, 0xca9b, 0xca9c, 0xca9d, 0xca9e, 0xca9f, 0xcaa0, 0xcaa1, 0xcaa2, 0xcaa3, 0xcaa4, 0xcaa5, 0xcaa6, 0xcaa7, 0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, 0x2168, 0x2169, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, 0x03a1, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa640[ 168 ] = { 0xfffd, 0xcaa8, 0xcaa9, 0xcaaa, 0xcaab, 0xcaac, 0xcaad, 0xcaae, 0xcaaf, 0xcab0, 0xcab1, 0xcab2, 0xcab3, 0xcab4, 0xcab5, 0xcab6, 0xcab7, 0xcab8, 0xcab9, 0xcaba, 0xcabb, 0xcabe, 0xcabf, 0xcac1, 0xcac2, 0xcac3, 0xcac5, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcac6, 0xcac7, 0xcac8, 0xcac9, 0xcaca, 0xcacb, 0xcace, 0xcad0, 0xcad2, 0xcad4, 0xcad5, 0xcad6, 0xcad7, 0xcada, 0xcadb, 0xcadc, 0xcadd, 0xcade, 0xcadf, 0xcae1, 0xcae2, 0xcae3, 0xcae4, 0xcae5, 0xcae6, 0xcae7, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcae8, 0xcae9, 0xcaea, 0xcaeb, 0xcaed, 0xcaee, 0xcaef, 0xcaf0, 0xcaf1, 0xcaf2, 0xcaf3, 0xcaf5, 0xcaf6, 0xcaf7, 0xcaf8, 0xcaf9, 0xcafa, 0xcafb, 0xcafc, 0xcafd, 0xcafe, 0xcaff, 0xcb00, 0xcb01, 0xcb02, 0xcb03, 0xcb04, 0xcb05, 0xcb06, 0xcb07, 0xcb09, 0xcb0a, 0x2500, 0x2502, 0x250c, 0x2510, 0x2518, 0x2514, 0x251c, 0x252c, 0x2524, 0x2534, 0x253c, 0x2501, 0x2503, 0x250f, 0x2513, 0x251b, 0x2517, 0x2523, 0x2533, 0x252b, 0x253b, 0x254b, 0x2520, 0x252f, 0x2528, 0x2537, 0x253f, 0x251d, 0x2530, 0x2525, 0x2538, 0x2542, 0x2512, 0x2511, 0x251a, 0x2519, 0x2516, 0x2515, 0x250e, 0x250d, 0x251e, 0x251f, 0x2521, 0x2522, 0x2526, 0x2527, 0x2529, 0x252a, 0x252d, 0x252e, 0x2531, 0x2532, 0x2535, 0x2536, 0x2539, 0x253a, 0x253d, 0x253e, 0x2540, 0x2541, 0x2543, 0x2544, 0x2545, 0x2546, 0x2547, 0x2548, 0x2549, 0x254a, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa740[ 176 ] = { 0xfffd, 0xcb0b, 0xcb0c, 0xcb0d, 0xcb0e, 0xcb0f, 0xcb11, 0xcb12, 0xcb13, 0xcb15, 0xcb16, 0xcb17, 0xcb19, 0xcb1a, 0xcb1b, 0xcb1c, 0xcb1d, 0xcb1e, 0xcb1f, 0xcb22, 0xcb23, 0xcb24, 0xcb25, 0xcb26, 0xcb27, 0xcb28, 0xcb29, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcb2a, 0xcb2b, 0xcb2c, 0xcb2d, 0xcb2e, 0xcb2f, 0xcb30, 0xcb31, 0xcb32, 0xcb33, 0xcb34, 0xcb35, 0xcb36, 0xcb37, 0xcb38, 0xcb39, 0xcb3a, 0xcb3b, 0xcb3c, 0xcb3d, 0xcb3e, 0xcb3f, 0xcb40, 0xcb42, 0xcb43, 0xcb44, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcb45, 0xcb46, 0xcb47, 0xcb4a, 0xcb4b, 0xcb4d, 0xcb4e, 0xcb4f, 0xcb51, 0xcb52, 0xcb53, 0xcb54, 0xcb55, 0xcb56, 0xcb57, 0xcb5a, 0xcb5b, 0xcb5c, 0xcb5e, 0xcb5f, 0xcb60, 0xcb61, 0xcb62, 0xcb63, 0xcb65, 0xcb66, 0xcb67, 0xcb68, 0xcb69, 0xcb6a, 0xcb6b, 0xcb6c, 0x3395, 0x3396, 0x3397, 0x2113, 0x3398, 0x33c4, 0x33a3, 0x33a4, 0x33a5, 0x33a6, 0x3399, 0x339a, 0x339b, 0x339c, 0x339d, 0x339e, 0x339f, 0x33a0, 0x33a1, 0x33a2, 0x33ca, 0x338d, 0x338e, 0x338f, 0x33cf, 0x3388, 0x3389, 0x33c8, 0x33a7, 0x33a8, 0x33b0, 0x33b1, 0x33b2, 0x33b3, 0x33b4, 0x33b5, 0x33b6, 0x33b7, 0x33b8, 0x33b9, 0x3380, 0x3381, 0x3382, 0x3383, 0x3384, 0x33ba, 0x33bb, 0x33bc, 0x33bd, 0x33be, 0x33bf, 0x3390, 0x3391, 0x3392, 0x3393, 0x3394, 0x2126, 0x33c0, 0x33c1, 0x338a, 0x338b, 0x338c, 0x33d6, 0x33c5, 0x33ad, 0x33ae, 0x33af, 0x33db, 0x33a9, 0x33aa, 0x33ab, 0x33ac, 0x33dd, 0x33d0, 0x33d3, 0x33c3, 0x33c9, 0x33dc, 0x33c6 }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa840[ 192 ] = { 0xfffd, 0xcb6d, 0xcb6e, 0xcb6f, 0xcb70, 0xcb71, 0xcb72, 0xcb73, 0xcb74, 0xcb75, 0xcb76, 0xcb77, 0xcb7a, 0xcb7b, 0xcb7c, 0xcb7d, 0xcb7e, 0xcb7f, 0xcb80, 0xcb81, 0xcb82, 0xcb83, 0xcb84, 0xcb85, 0xcb86, 0xcb87, 0xcb88, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcb89, 0xcb8a, 0xcb8b, 0xcb8c, 0xcb8d, 0xcb8e, 0xcb8f, 0xcb90, 0xcb91, 0xcb92, 0xcb93, 0xcb94, 0xcb95, 0xcb96, 0xcb97, 0xcb98, 0xcb99, 0xcb9a, 0xcb9b, 0xcb9d, 0xcb9e, 0xcb9f, 0xcba0, 0xcba1, 0xcba2, 0xcba3, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcba4, 0xcba5, 0xcba6, 0xcba7, 0xcba8, 0xcba9, 0xcbaa, 0xcbab, 0xcbac, 0xcbad, 0xcbae, 0xcbaf, 0xcbb0, 0xcbb1, 0xcbb2, 0xcbb3, 0xcbb4, 0xcbb5, 0xcbb6, 0xcbb7, 0xcbb9, 0xcbba, 0xcbbb, 0xcbbc, 0xcbbd, 0xcbbe, 0xcbbf, 0xcbc0, 0xcbc1, 0xcbc2, 0xcbc3, 0xcbc4, 0x00c6, 0x00d0, 0x00aa, 0x0126, 0xfffd, 0x0132, 0xfffd, 0x013f, 0x0141, 0x00d8, 0x0152, 0x00ba, 0x00de, 0x0166, 0x014a, 0xfffd, 0x3260, 0x3261, 0x3262, 0x3263, 0x3264, 0x3265, 0x3266, 0x3267, 0x3268, 0x3269, 0x326a, 0x326b, 0x326c, 0x326d, 0x326e, 0x326f, 0x3270, 0x3271, 0x3272, 0x3273, 0x3274, 0x3275, 0x3276, 0x3277, 0x3278, 0x3279, 0x327a, 0x327b, 0x24d0, 0x24d1, 0x24d2, 0x24d3, 0x24d4, 0x24d5, 0x24d6, 0x24d7, 0x24d8, 0x24d9, 0x24da, 0x24db, 0x24dc, 0x24dd, 0x24de, 0x24df, 0x24e0, 0x24e1, 0x24e2, 0x24e3, 0x24e4, 0x24e5, 0x24e6, 0x24e7, 0x24e8, 0x24e9, 0x2460, 0x2461, 0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467, 0x2468, 0x2469, 0x246a, 0x246b, 0x246c, 0x246d, 0x246e, 0x00bd, 0x2153, 0x2154, 0x00bc, 0x00be, 0x215b, 0x215c, 0x215d, 0x215e, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa940[ 192 ] = { 0xfffd, 0xcbc5, 0xcbc6, 0xcbc7, 0xcbc8, 0xcbc9, 0xcbca, 0xcbcb, 0xcbcc, 0xcbcd, 0xcbce, 0xcbcf, 0xcbd0, 0xcbd1, 0xcbd2, 0xcbd3, 0xcbd5, 0xcbd6, 0xcbd7, 0xcbd8, 0xcbd9, 0xcbda, 0xcbdb, 0xcbdc, 0xcbdd, 0xcbde, 0xcbdf, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcbe0, 0xcbe1, 0xcbe2, 0xcbe3, 0xcbe5, 0xcbe6, 0xcbe8, 0xcbea, 0xcbeb, 0xcbec, 0xcbed, 0xcbee, 0xcbef, 0xcbf0, 0xcbf1, 0xcbf2, 0xcbf3, 0xcbf4, 0xcbf5, 0xcbf6, 0xcbf7, 0xcbf8, 0xcbf9, 0xcbfa, 0xcbfb, 0xcbfc, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcbfd, 0xcbfe, 0xcbff, 0xcc00, 0xcc01, 0xcc02, 0xcc03, 0xcc04, 0xcc05, 0xcc06, 0xcc07, 0xcc08, 0xcc09, 0xcc0a, 0xcc0b, 0xcc0e, 0xcc0f, 0xcc11, 0xcc12, 0xcc13, 0xcc15, 0xcc16, 0xcc17, 0xcc18, 0xcc19, 0xcc1a, 0xcc1b, 0xcc1e, 0xcc1f, 0xcc20, 0xcc23, 0xcc24, 0x00e6, 0x0111, 0x00f0, 0x0127, 0x0131, 0x0133, 0x0138, 0x0140, 0x0142, 0x00f8, 0x0153, 0x00df, 0x00fe, 0x0167, 0x014b, 0x0149, 0x3200, 0x3201, 0x3202, 0x3203, 0x3204, 0x3205, 0x3206, 0x3207, 0x3208, 0x3209, 0x320a, 0x320b, 0x320c, 0x320d, 0x320e, 0x320f, 0x3210, 0x3211, 0x3212, 0x3213, 0x3214, 0x3215, 0x3216, 0x3217, 0x3218, 0x3219, 0x321a, 0x321b, 0x249c, 0x249d, 0x249e, 0x249f, 0x24a0, 0x24a1, 0x24a2, 0x24a3, 0x24a4, 0x24a5, 0x24a6, 0x24a7, 0x24a8, 0x24a9, 0x24aa, 0x24ab, 0x24ac, 0x24ad, 0x24ae, 0x24af, 0x24b0, 0x24b1, 0x24b2, 0x24b3, 0x24b4, 0x24b5, 0x2474, 0x2475, 0x2476, 0x2477, 0x2478, 0x2479, 0x247a, 0x247b, 0x247c, 0x247d, 0x247e, 0x247f, 0x2480, 0x2481, 0x2482, 0x00b9, 0x00b2, 0x00b3, 0x2074, 0x207f, 0x2081, 0x2082, 0x2083, 0x2084, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaa40[ 184 ] = { 0xfffd, 0xcc25, 0xcc26, 0xcc2a, 0xcc2b, 0xcc2d, 0xcc2f, 0xcc31, 0xcc32, 0xcc33, 0xcc34, 0xcc35, 0xcc36, 0xcc37, 0xcc3a, 0xcc3f, 0xcc40, 0xcc41, 0xcc42, 0xcc43, 0xcc46, 0xcc47, 0xcc49, 0xcc4a, 0xcc4b, 0xcc4d, 0xcc4e, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcc4f, 0xcc50, 0xcc51, 0xcc52, 0xcc53, 0xcc56, 0xcc5a, 0xcc5b, 0xcc5c, 0xcc5d, 0xcc5e, 0xcc5f, 0xcc61, 0xcc62, 0xcc63, 0xcc65, 0xcc67, 0xcc69, 0xcc6a, 0xcc6b, 0xcc6c, 0xcc6d, 0xcc6e, 0xcc6f, 0xcc71, 0xcc72, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcc73, 0xcc74, 0xcc76, 0xcc77, 0xcc78, 0xcc79, 0xcc7a, 0xcc7b, 0xcc7c, 0xcc7d, 0xcc7e, 0xcc7f, 0xcc80, 0xcc81, 0xcc82, 0xcc83, 0xcc84, 0xcc85, 0xcc86, 0xcc87, 0xcc88, 0xcc89, 0xcc8a, 0xcc8b, 0xcc8c, 0xcc8d, 0xcc8e, 0xcc8f, 0xcc90, 0xcc91, 0xcc92, 0xcc93, 0x3041, 0x3042, 0x3043, 0x3044, 0x3045, 0x3046, 0x3047, 0x3048, 0x3049, 0x304a, 0x304b, 0x304c, 0x304d, 0x304e, 0x304f, 0x3050, 0x3051, 0x3052, 0x3053, 0x3054, 0x3055, 0x3056, 0x3057, 0x3058, 0x3059, 0x305a, 0x305b, 0x305c, 0x305d, 0x305e, 0x305f, 0x3060, 0x3061, 0x3062, 0x3063, 0x3064, 0x3065, 0x3066, 0x3067, 0x3068, 0x3069, 0x306a, 0x306b, 0x306c, 0x306d, 0x306e, 0x306f, 0x3070, 0x3071, 0x3072, 0x3073, 0x3074, 0x3075, 0x3076, 0x3077, 0x3078, 0x3079, 0x307a, 0x307b, 0x307c, 0x307d, 0x307e, 0x307f, 0x3080, 0x3081, 0x3082, 0x3083, 0x3084, 0x3085, 0x3086, 0x3087, 0x3088, 0x3089, 0x308a, 0x308b, 0x308c, 0x308d, 0x308e, 0x308f, 0x3090, 0x3091, 0x3092, 0x3093, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xab40[ 184 ] = { 0xfffd, 0xcc94, 0xcc95, 0xcc96, 0xcc97, 0xcc9a, 0xcc9b, 0xcc9d, 0xcc9e, 0xcc9f, 0xcca1, 0xcca2, 0xcca3, 0xcca4, 0xcca5, 0xcca6, 0xcca7, 0xccaa, 0xccae, 0xccaf, 0xccb0, 0xccb1, 0xccb2, 0xccb3, 0xccb6, 0xccb7, 0xccb9, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xccba, 0xccbb, 0xccbd, 0xccbe, 0xccbf, 0xccc0, 0xccc1, 0xccc2, 0xccc3, 0xccc6, 0xccc8, 0xccca, 0xcccb, 0xcccc, 0xcccd, 0xccce, 0xcccf, 0xccd1, 0xccd2, 0xccd3, 0xccd5, 0xccd6, 0xccd7, 0xccd8, 0xccd9, 0xccda, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xccdb, 0xccdc, 0xccdd, 0xccde, 0xccdf, 0xcce0, 0xcce1, 0xcce2, 0xcce3, 0xcce5, 0xcce6, 0xcce7, 0xcce8, 0xcce9, 0xccea, 0xcceb, 0xcced, 0xccee, 0xccef, 0xccf1, 0xccf2, 0xccf3, 0xccf4, 0xccf5, 0xccf6, 0xccf7, 0xccf8, 0xccf9, 0xccfa, 0xccfb, 0xccfc, 0xccfd, 0x30a1, 0x30a2, 0x30a3, 0x30a4, 0x30a5, 0x30a6, 0x30a7, 0x30a8, 0x30a9, 0x30aa, 0x30ab, 0x30ac, 0x30ad, 0x30ae, 0x30af, 0x30b0, 0x30b1, 0x30b2, 0x30b3, 0x30b4, 0x30b5, 0x30b6, 0x30b7, 0x30b8, 0x30b9, 0x30ba, 0x30bb, 0x30bc, 0x30bd, 0x30be, 0x30bf, 0x30c0, 0x30c1, 0x30c2, 0x30c3, 0x30c4, 0x30c5, 0x30c6, 0x30c7, 0x30c8, 0x30c9, 0x30ca, 0x30cb, 0x30cc, 0x30cd, 0x30ce, 0x30cf, 0x30d0, 0x30d1, 0x30d2, 0x30d3, 0x30d4, 0x30d5, 0x30d6, 0x30d7, 0x30d8, 0x30d9, 0x30da, 0x30db, 0x30dc, 0x30dd, 0x30de, 0x30df, 0x30e0, 0x30e1, 0x30e2, 0x30e3, 0x30e4, 0x30e5, 0x30e6, 0x30e7, 0x30e8, 0x30e9, 0x30ea, 0x30eb, 0x30ec, 0x30ed, 0x30ee, 0x30ef, 0x30f0, 0x30f1, 0x30f2, 0x30f3, 0x30f4, 0x30f5, 0x30f6, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xac40[ 136 ] = { 0xfffd, 0xccfe, 0xccff, 0xcd00, 0xcd02, 0xcd03, 0xcd04, 0xcd05, 0xcd06, 0xcd07, 0xcd0a, 0xcd0b, 0xcd0d, 0xcd0e, 0xcd0f, 0xcd11, 0xcd12, 0xcd13, 0xcd14, 0xcd15, 0xcd16, 0xcd17, 0xcd1a, 0xcd1c, 0xcd1e, 0xcd1f, 0xcd20, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcd21, 0xcd22, 0xcd23, 0xcd25, 0xcd26, 0xcd27, 0xcd29, 0xcd2a, 0xcd2b, 0xcd2d, 0xcd2e, 0xcd2f, 0xcd30, 0xcd31, 0xcd32, 0xcd33, 0xcd34, 0xcd35, 0xcd36, 0xcd37, 0xcd38, 0xcd3a, 0xcd3b, 0xcd3c, 0xcd3d, 0xcd3e, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcd3f, 0xcd40, 0xcd41, 0xcd42, 0xcd43, 0xcd44, 0xcd45, 0xcd46, 0xcd47, 0xcd48, 0xcd49, 0xcd4a, 0xcd4b, 0xcd4c, 0xcd4d, 0xcd4e, 0xcd4f, 0xcd50, 0xcd51, 0xcd52, 0xcd53, 0xcd54, 0xcd55, 0xcd56, 0xcd57, 0xcd58, 0xcd59, 0xcd5a, 0xcd5b, 0xcd5d, 0xcd5e, 0xcd5f, 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0401, 0x0416, 0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xacd0[ 40 ] = { 0xfffd, 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0451, 0x0436, 0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xad40[ 96 ] = { 0xfffd, 0xcd61, 0xcd62, 0xcd63, 0xcd65, 0xcd66, 0xcd67, 0xcd68, 0xcd69, 0xcd6a, 0xcd6b, 0xcd6e, 0xcd70, 0xcd72, 0xcd73, 0xcd74, 0xcd75, 0xcd76, 0xcd77, 0xcd79, 0xcd7a, 0xcd7b, 0xcd7c, 0xcd7d, 0xcd7e, 0xcd7f, 0xcd80, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcd81, 0xcd82, 0xcd83, 0xcd84, 0xcd85, 0xcd86, 0xcd87, 0xcd89, 0xcd8a, 0xcd8b, 0xcd8c, 0xcd8d, 0xcd8e, 0xcd8f, 0xcd90, 0xcd91, 0xcd92, 0xcd93, 0xcd96, 0xcd97, 0xcd99, 0xcd9a, 0xcd9b, 0xcd9d, 0xcd9e, 0xcd9f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcda0, 0xcda1, 0xcda2, 0xcda3, 0xcda6, 0xcda8, 0xcdaa, 0xcdab, 0xcdac, 0xcdad, 0xcdae, 0xcdaf, 0xcdb1, 0xcdb2, 0xcdb3, 0xcdb4, 0xcdb5, 0xcdb6, 0xcdb7, 0xcdb8, 0xcdb9, 0xcdba, 0xcdbb, 0xcdbc, 0xcdbd, 0xcdbe, 0xcdbf, 0xcdc0, 0xcdc1, 0xcdc2, 0xcdc3 }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xae40[ 96 ] = { 0xfffd, 0xcdc6, 0xcdc7, 0xcdc8, 0xcdc9, 0xcdca, 0xcdcb, 0xcdcd, 0xcdce, 0xcdcf, 0xcdd1, 0xcdd2, 0xcdd3, 0xcdd4, 0xcdd5, 0xcdd6, 0xcdd7, 0xcdd8, 0xcdd9, 0xcdda, 0xcddb, 0xcddc, 0xcddd, 0xcdde, 0xcddf, 0xcde0, 0xcde1, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcde2, 0xcde3, 0xcde4, 0xcde5, 0xcde6, 0xcde7, 0xcde9, 0xcdea, 0xcdeb, 0xcded, 0xcdee, 0xcdef, 0xcdf1, 0xcdf2, 0xcdf3, 0xcdf4, 0xcdf5, 0xcdf6, 0xcdf7, 0xcdfa, 0xcdfc, 0xcdfe, 0xcdff, 0xce00, 0xce01, 0xce02, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xce03, 0xce05, 0xce06, 0xce07, 0xce09, 0xce0a, 0xce0b, 0xce0d, 0xce0e, 0xce0f, 0xce10, 0xce11, 0xce12, 0xce13, 0xce15, 0xce16, 0xce17, 0xce18, 0xce1a, 0xce1b, 0xce1c, 0xce1d, 0xce1e, 0xce1f, 0xce22, 0xce23, 0xce25, 0xce26, 0xce27, 0xce29, 0xce2a }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaf40[ 96 ] = { 0xfffd, 0xce2c, 0xce2d, 0xce2e, 0xce2f, 0xce32, 0xce34, 0xce36, 0xce37, 0xce38, 0xce39, 0xce3a, 0xce3b, 0xce3c, 0xce3d, 0xce3e, 0xce3f, 0xce40, 0xce41, 0xce42, 0xce43, 0xce44, 0xce45, 0xce46, 0xce47, 0xce48, 0xce49, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xce4a, 0xce4b, 0xce4c, 0xce4d, 0xce4e, 0xce4f, 0xce50, 0xce51, 0xce52, 0xce53, 0xce54, 0xce55, 0xce56, 0xce57, 0xce5a, 0xce5b, 0xce5d, 0xce5e, 0xce62, 0xce63, 0xce64, 0xce65, 0xce66, 0xce67, 0xce6a, 0xce6c, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xce6e, 0xce6f, 0xce70, 0xce71, 0xce72, 0xce73, 0xce76, 0xce77, 0xce79, 0xce7a, 0xce7b, 0xce7d, 0xce7e, 0xce7f, 0xce80, 0xce81, 0xce82, 0xce83, 0xce86, 0xce88, 0xce8a, 0xce8b, 0xce8c, 0xce8d, 0xce8e, 0xce8f, 0xce92, 0xce93, 0xce95, 0xce96, 0xce97 }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb040[ 192 ] = { 0xfffd, 0xce9a, 0xce9b, 0xce9c, 0xce9d, 0xce9e, 0xce9f, 0xcea2, 0xcea6, 0xcea7, 0xcea8, 0xcea9, 0xceaa, 0xceab, 0xceae, 0xceaf, 0xceb0, 0xceb1, 0xceb2, 0xceb3, 0xceb4, 0xceb5, 0xceb6, 0xceb7, 0xceb8, 0xceb9, 0xceba, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcebb, 0xcebc, 0xcebd, 0xcebe, 0xcebf, 0xcec0, 0xcec2, 0xcec3, 0xcec4, 0xcec5, 0xcec6, 0xcec7, 0xcec8, 0xcec9, 0xceca, 0xcecb, 0xcecc, 0xcecd, 0xcece, 0xcecf, 0xced0, 0xced1, 0xced2, 0xced3, 0xced4, 0xced5, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xced6, 0xced7, 0xced8, 0xced9, 0xceda, 0xcedb, 0xcedc, 0xcedd, 0xcede, 0xcedf, 0xcee0, 0xcee1, 0xcee2, 0xcee3, 0xcee6, 0xcee7, 0xcee9, 0xceea, 0xceed, 0xceee, 0xceef, 0xcef0, 0xcef1, 0xcef2, 0xcef3, 0xcef6, 0xcefa, 0xcefb, 0xcefc, 0xcefd, 0xcefe, 0xceff, 0xac00, 0xac01, 0xac04, 0xac07, 0xac08, 0xac09, 0xac0a, 0xac10, 0xac11, 0xac12, 0xac13, 0xac14, 0xac15, 0xac16, 0xac17, 0xac19, 0xac1a, 0xac1b, 0xac1c, 0xac1d, 0xac20, 0xac24, 0xac2c, 0xac2d, 0xac2f, 0xac30, 0xac31, 0xac38, 0xac39, 0xac3c, 0xac40, 0xac4b, 0xac4d, 0xac54, 0xac58, 0xac5c, 0xac70, 0xac71, 0xac74, 0xac77, 0xac78, 0xac7a, 0xac80, 0xac81, 0xac83, 0xac84, 0xac85, 0xac86, 0xac89, 0xac8a, 0xac8b, 0xac8c, 0xac90, 0xac94, 0xac9c, 0xac9d, 0xac9f, 0xaca0, 0xaca1, 0xaca8, 0xaca9, 0xacaa, 0xacac, 0xacaf, 0xacb0, 0xacb8, 0xacb9, 0xacbb, 0xacbc, 0xacbd, 0xacc1, 0xacc4, 0xacc8, 0xaccc, 0xacd5, 0xacd7, 0xace0, 0xace1, 0xace4, 0xace7, 0xace8, 0xacea, 0xacec, 0xacef, 0xacf0, 0xacf1, 0xacf3, 0xacf5, 0xacf6, 0xacfc, 0xacfd, 0xad00, 0xad04, 0xad06, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb140[ 192 ] = { 0xfffd, 0xcf02, 0xcf03, 0xcf05, 0xcf06, 0xcf07, 0xcf09, 0xcf0a, 0xcf0b, 0xcf0c, 0xcf0d, 0xcf0e, 0xcf0f, 0xcf12, 0xcf14, 0xcf16, 0xcf17, 0xcf18, 0xcf19, 0xcf1a, 0xcf1b, 0xcf1d, 0xcf1e, 0xcf1f, 0xcf21, 0xcf22, 0xcf23, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcf25, 0xcf26, 0xcf27, 0xcf28, 0xcf29, 0xcf2a, 0xcf2b, 0xcf2e, 0xcf32, 0xcf33, 0xcf34, 0xcf35, 0xcf36, 0xcf37, 0xcf39, 0xcf3a, 0xcf3b, 0xcf3c, 0xcf3d, 0xcf3e, 0xcf3f, 0xcf40, 0xcf41, 0xcf42, 0xcf43, 0xcf44, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcf45, 0xcf46, 0xcf47, 0xcf48, 0xcf49, 0xcf4a, 0xcf4b, 0xcf4c, 0xcf4d, 0xcf4e, 0xcf4f, 0xcf50, 0xcf51, 0xcf52, 0xcf53, 0xcf56, 0xcf57, 0xcf59, 0xcf5a, 0xcf5b, 0xcf5d, 0xcf5e, 0xcf5f, 0xcf60, 0xcf61, 0xcf62, 0xcf63, 0xcf66, 0xcf68, 0xcf6a, 0xcf6b, 0xcf6c, 0xad0c, 0xad0d, 0xad0f, 0xad11, 0xad18, 0xad1c, 0xad20, 0xad29, 0xad2c, 0xad2d, 0xad34, 0xad35, 0xad38, 0xad3c, 0xad44, 0xad45, 0xad47, 0xad49, 0xad50, 0xad54, 0xad58, 0xad61, 0xad63, 0xad6c, 0xad6d, 0xad70, 0xad73, 0xad74, 0xad75, 0xad76, 0xad7b, 0xad7c, 0xad7d, 0xad7f, 0xad81, 0xad82, 0xad88, 0xad89, 0xad8c, 0xad90, 0xad9c, 0xad9d, 0xada4, 0xadb7, 0xadc0, 0xadc1, 0xadc4, 0xadc8, 0xadd0, 0xadd1, 0xadd3, 0xaddc, 0xade0, 0xade4, 0xadf8, 0xadf9, 0xadfc, 0xadff, 0xae00, 0xae01, 0xae08, 0xae09, 0xae0b, 0xae0d, 0xae14, 0xae30, 0xae31, 0xae34, 0xae37, 0xae38, 0xae3a, 0xae40, 0xae41, 0xae43, 0xae45, 0xae46, 0xae4a, 0xae4c, 0xae4d, 0xae4e, 0xae50, 0xae54, 0xae56, 0xae5c, 0xae5d, 0xae5f, 0xae60, 0xae61, 0xae65, 0xae68, 0xae69, 0xae6c, 0xae70, 0xae78, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb240[ 192 ] = { 0xfffd, 0xcf6d, 0xcf6e, 0xcf6f, 0xcf72, 0xcf73, 0xcf75, 0xcf76, 0xcf77, 0xcf79, 0xcf7a, 0xcf7b, 0xcf7c, 0xcf7d, 0xcf7e, 0xcf7f, 0xcf81, 0xcf82, 0xcf83, 0xcf84, 0xcf86, 0xcf87, 0xcf88, 0xcf89, 0xcf8a, 0xcf8b, 0xcf8d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcf8e, 0xcf8f, 0xcf90, 0xcf91, 0xcf92, 0xcf93, 0xcf94, 0xcf95, 0xcf96, 0xcf97, 0xcf98, 0xcf99, 0xcf9a, 0xcf9b, 0xcf9c, 0xcf9d, 0xcf9e, 0xcf9f, 0xcfa0, 0xcfa2, 0xcfa3, 0xcfa4, 0xcfa5, 0xcfa6, 0xcfa7, 0xcfa9, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcfaa, 0xcfab, 0xcfac, 0xcfad, 0xcfae, 0xcfaf, 0xcfb1, 0xcfb2, 0xcfb3, 0xcfb4, 0xcfb5, 0xcfb6, 0xcfb7, 0xcfb8, 0xcfb9, 0xcfba, 0xcfbb, 0xcfbc, 0xcfbd, 0xcfbe, 0xcfbf, 0xcfc0, 0xcfc1, 0xcfc2, 0xcfc3, 0xcfc5, 0xcfc6, 0xcfc7, 0xcfc8, 0xcfc9, 0xcfca, 0xcfcb, 0xae79, 0xae7b, 0xae7c, 0xae7d, 0xae84, 0xae85, 0xae8c, 0xaebc, 0xaebd, 0xaebe, 0xaec0, 0xaec4, 0xaecc, 0xaecd, 0xaecf, 0xaed0, 0xaed1, 0xaed8, 0xaed9, 0xaedc, 0xaee8, 0xaeeb, 0xaeed, 0xaef4, 0xaef8, 0xaefc, 0xaf07, 0xaf08, 0xaf0d, 0xaf10, 0xaf2c, 0xaf2d, 0xaf30, 0xaf32, 0xaf34, 0xaf3c, 0xaf3d, 0xaf3f, 0xaf41, 0xaf42, 0xaf43, 0xaf48, 0xaf49, 0xaf50, 0xaf5c, 0xaf5d, 0xaf64, 0xaf65, 0xaf79, 0xaf80, 0xaf84, 0xaf88, 0xaf90, 0xaf91, 0xaf95, 0xaf9c, 0xafb8, 0xafb9, 0xafbc, 0xafc0, 0xafc7, 0xafc8, 0xafc9, 0xafcb, 0xafcd, 0xafce, 0xafd4, 0xafdc, 0xafe8, 0xafe9, 0xaff0, 0xaff1, 0xaff4, 0xaff8, 0xb000, 0xb001, 0xb004, 0xb00c, 0xb010, 0xb014, 0xb01c, 0xb01d, 0xb028, 0xb044, 0xb045, 0xb048, 0xb04a, 0xb04c, 0xb04e, 0xb053, 0xb054, 0xb055, 0xb057, 0xb059, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb340[ 192 ] = { 0xfffd, 0xcfcc, 0xcfcd, 0xcfce, 0xcfcf, 0xcfd0, 0xcfd1, 0xcfd2, 0xcfd3, 0xcfd4, 0xcfd5, 0xcfd6, 0xcfd7, 0xcfd8, 0xcfd9, 0xcfda, 0xcfdb, 0xcfdc, 0xcfdd, 0xcfde, 0xcfdf, 0xcfe2, 0xcfe3, 0xcfe5, 0xcfe6, 0xcfe7, 0xcfe9, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xcfea, 0xcfeb, 0xcfec, 0xcfed, 0xcfee, 0xcfef, 0xcff2, 0xcff4, 0xcff6, 0xcff7, 0xcff8, 0xcff9, 0xcffa, 0xcffb, 0xcffd, 0xcffe, 0xcfff, 0xd001, 0xd002, 0xd003, 0xd005, 0xd006, 0xd007, 0xd008, 0xd009, 0xd00a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd00b, 0xd00c, 0xd00d, 0xd00e, 0xd00f, 0xd010, 0xd012, 0xd013, 0xd014, 0xd015, 0xd016, 0xd017, 0xd019, 0xd01a, 0xd01b, 0xd01c, 0xd01d, 0xd01e, 0xd01f, 0xd020, 0xd021, 0xd022, 0xd023, 0xd024, 0xd025, 0xd026, 0xd027, 0xd028, 0xd029, 0xd02a, 0xd02b, 0xd02c, 0xb05d, 0xb07c, 0xb07d, 0xb080, 0xb084, 0xb08c, 0xb08d, 0xb08f, 0xb091, 0xb098, 0xb099, 0xb09a, 0xb09c, 0xb09f, 0xb0a0, 0xb0a1, 0xb0a2, 0xb0a8, 0xb0a9, 0xb0ab, 0xb0ac, 0xb0ad, 0xb0ae, 0xb0af, 0xb0b1, 0xb0b3, 0xb0b4, 0xb0b5, 0xb0b8, 0xb0bc, 0xb0c4, 0xb0c5, 0xb0c7, 0xb0c8, 0xb0c9, 0xb0d0, 0xb0d1, 0xb0d4, 0xb0d8, 0xb0e0, 0xb0e5, 0xb108, 0xb109, 0xb10b, 0xb10c, 0xb110, 0xb112, 0xb113, 0xb118, 0xb119, 0xb11b, 0xb11c, 0xb11d, 0xb123, 0xb124, 0xb125, 0xb128, 0xb12c, 0xb134, 0xb135, 0xb137, 0xb138, 0xb139, 0xb140, 0xb141, 0xb144, 0xb148, 0xb150, 0xb151, 0xb154, 0xb155, 0xb158, 0xb15c, 0xb160, 0xb178, 0xb179, 0xb17c, 0xb180, 0xb182, 0xb188, 0xb189, 0xb18b, 0xb18d, 0xb192, 0xb193, 0xb194, 0xb198, 0xb19c, 0xb1a8, 0xb1cc, 0xb1d0, 0xb1d4, 0xb1dc, 0xb1dd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb440[ 192 ] = { 0xfffd, 0xd02e, 0xd02f, 0xd030, 0xd031, 0xd032, 0xd033, 0xd036, 0xd037, 0xd039, 0xd03a, 0xd03b, 0xd03d, 0xd03e, 0xd03f, 0xd040, 0xd041, 0xd042, 0xd043, 0xd046, 0xd048, 0xd04a, 0xd04b, 0xd04c, 0xd04d, 0xd04e, 0xd04f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd051, 0xd052, 0xd053, 0xd055, 0xd056, 0xd057, 0xd059, 0xd05a, 0xd05b, 0xd05c, 0xd05d, 0xd05e, 0xd05f, 0xd061, 0xd062, 0xd063, 0xd064, 0xd065, 0xd066, 0xd067, 0xd068, 0xd069, 0xd06a, 0xd06b, 0xd06e, 0xd06f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd071, 0xd072, 0xd073, 0xd075, 0xd076, 0xd077, 0xd078, 0xd079, 0xd07a, 0xd07b, 0xd07e, 0xd07f, 0xd080, 0xd082, 0xd083, 0xd084, 0xd085, 0xd086, 0xd087, 0xd088, 0xd089, 0xd08a, 0xd08b, 0xd08c, 0xd08d, 0xd08e, 0xd08f, 0xd090, 0xd091, 0xd092, 0xd093, 0xd094, 0xb1df, 0xb1e8, 0xb1e9, 0xb1ec, 0xb1f0, 0xb1f9, 0xb1fb, 0xb1fd, 0xb204, 0xb205, 0xb208, 0xb20b, 0xb20c, 0xb214, 0xb215, 0xb217, 0xb219, 0xb220, 0xb234, 0xb23c, 0xb258, 0xb25c, 0xb260, 0xb268, 0xb269, 0xb274, 0xb275, 0xb27c, 0xb284, 0xb285, 0xb289, 0xb290, 0xb291, 0xb294, 0xb298, 0xb299, 0xb29a, 0xb2a0, 0xb2a1, 0xb2a3, 0xb2a5, 0xb2a6, 0xb2aa, 0xb2ac, 0xb2b0, 0xb2b4, 0xb2c8, 0xb2c9, 0xb2cc, 0xb2d0, 0xb2d2, 0xb2d8, 0xb2d9, 0xb2db, 0xb2dd, 0xb2e2, 0xb2e4, 0xb2e5, 0xb2e6, 0xb2e8, 0xb2eb, 0xb2ec, 0xb2ed, 0xb2ee, 0xb2ef, 0xb2f3, 0xb2f4, 0xb2f5, 0xb2f7, 0xb2f8, 0xb2f9, 0xb2fa, 0xb2fb, 0xb2ff, 0xb300, 0xb301, 0xb304, 0xb308, 0xb310, 0xb311, 0xb313, 0xb314, 0xb315, 0xb31c, 0xb354, 0xb355, 0xb356, 0xb358, 0xb35b, 0xb35c, 0xb35e, 0xb35f, 0xb364, 0xb365, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb540[ 192 ] = { 0xfffd, 0xd095, 0xd096, 0xd097, 0xd098, 0xd099, 0xd09a, 0xd09b, 0xd09c, 0xd09d, 0xd09e, 0xd09f, 0xd0a0, 0xd0a1, 0xd0a2, 0xd0a3, 0xd0a6, 0xd0a7, 0xd0a9, 0xd0aa, 0xd0ab, 0xd0ad, 0xd0ae, 0xd0af, 0xd0b0, 0xd0b1, 0xd0b2, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd0b3, 0xd0b6, 0xd0b8, 0xd0ba, 0xd0bb, 0xd0bc, 0xd0bd, 0xd0be, 0xd0bf, 0xd0c2, 0xd0c3, 0xd0c5, 0xd0c6, 0xd0c7, 0xd0ca, 0xd0cb, 0xd0cc, 0xd0cd, 0xd0ce, 0xd0cf, 0xd0d2, 0xd0d6, 0xd0d7, 0xd0d8, 0xd0d9, 0xd0da, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd0db, 0xd0de, 0xd0df, 0xd0e1, 0xd0e2, 0xd0e3, 0xd0e5, 0xd0e6, 0xd0e7, 0xd0e8, 0xd0e9, 0xd0ea, 0xd0eb, 0xd0ee, 0xd0f2, 0xd0f3, 0xd0f4, 0xd0f5, 0xd0f6, 0xd0f7, 0xd0f9, 0xd0fa, 0xd0fb, 0xd0fc, 0xd0fd, 0xd0fe, 0xd0ff, 0xd100, 0xd101, 0xd102, 0xd103, 0xd104, 0xb367, 0xb369, 0xb36b, 0xb36e, 0xb370, 0xb371, 0xb374, 0xb378, 0xb380, 0xb381, 0xb383, 0xb384, 0xb385, 0xb38c, 0xb390, 0xb394, 0xb3a0, 0xb3a1, 0xb3a8, 0xb3ac, 0xb3c4, 0xb3c5, 0xb3c8, 0xb3cb, 0xb3cc, 0xb3ce, 0xb3d0, 0xb3d4, 0xb3d5, 0xb3d7, 0xb3d9, 0xb3db, 0xb3dd, 0xb3e0, 0xb3e4, 0xb3e8, 0xb3fc, 0xb410, 0xb418, 0xb41c, 0xb420, 0xb428, 0xb429, 0xb42b, 0xb434, 0xb450, 0xb451, 0xb454, 0xb458, 0xb460, 0xb461, 0xb463, 0xb465, 0xb46c, 0xb480, 0xb488, 0xb49d, 0xb4a4, 0xb4a8, 0xb4ac, 0xb4b5, 0xb4b7, 0xb4b9, 0xb4c0, 0xb4c4, 0xb4c8, 0xb4d0, 0xb4d5, 0xb4dc, 0xb4dd, 0xb4e0, 0xb4e3, 0xb4e4, 0xb4e6, 0xb4ec, 0xb4ed, 0xb4ef, 0xb4f1, 0xb4f8, 0xb514, 0xb515, 0xb518, 0xb51b, 0xb51c, 0xb524, 0xb525, 0xb527, 0xb528, 0xb529, 0xb52a, 0xb530, 0xb531, 0xb534, 0xb538, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb640[ 192 ] = { 0xfffd, 0xd105, 0xd106, 0xd107, 0xd108, 0xd109, 0xd10a, 0xd10b, 0xd10c, 0xd10e, 0xd10f, 0xd110, 0xd111, 0xd112, 0xd113, 0xd114, 0xd115, 0xd116, 0xd117, 0xd118, 0xd119, 0xd11a, 0xd11b, 0xd11c, 0xd11d, 0xd11e, 0xd11f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd120, 0xd121, 0xd122, 0xd123, 0xd124, 0xd125, 0xd126, 0xd127, 0xd128, 0xd129, 0xd12a, 0xd12b, 0xd12c, 0xd12d, 0xd12e, 0xd12f, 0xd132, 0xd133, 0xd135, 0xd136, 0xd137, 0xd139, 0xd13b, 0xd13c, 0xd13d, 0xd13e, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd13f, 0xd142, 0xd146, 0xd147, 0xd148, 0xd149, 0xd14a, 0xd14b, 0xd14e, 0xd14f, 0xd151, 0xd152, 0xd153, 0xd155, 0xd156, 0xd157, 0xd158, 0xd159, 0xd15a, 0xd15b, 0xd15e, 0xd160, 0xd162, 0xd163, 0xd164, 0xd165, 0xd166, 0xd167, 0xd169, 0xd16a, 0xd16b, 0xd16d, 0xb540, 0xb541, 0xb543, 0xb544, 0xb545, 0xb54b, 0xb54c, 0xb54d, 0xb550, 0xb554, 0xb55c, 0xb55d, 0xb55f, 0xb560, 0xb561, 0xb5a0, 0xb5a1, 0xb5a4, 0xb5a8, 0xb5aa, 0xb5ab, 0xb5b0, 0xb5b1, 0xb5b3, 0xb5b4, 0xb5b5, 0xb5bb, 0xb5bc, 0xb5bd, 0xb5c0, 0xb5c4, 0xb5cc, 0xb5cd, 0xb5cf, 0xb5d0, 0xb5d1, 0xb5d8, 0xb5ec, 0xb610, 0xb611, 0xb614, 0xb618, 0xb625, 0xb62c, 0xb634, 0xb648, 0xb664, 0xb668, 0xb69c, 0xb69d, 0xb6a0, 0xb6a4, 0xb6ab, 0xb6ac, 0xb6b1, 0xb6d4, 0xb6f0, 0xb6f4, 0xb6f8, 0xb700, 0xb701, 0xb705, 0xb728, 0xb729, 0xb72c, 0xb72f, 0xb730, 0xb738, 0xb739, 0xb73b, 0xb744, 0xb748, 0xb74c, 0xb754, 0xb755, 0xb760, 0xb764, 0xb768, 0xb770, 0xb771, 0xb773, 0xb775, 0xb77c, 0xb77d, 0xb780, 0xb784, 0xb78c, 0xb78d, 0xb78f, 0xb790, 0xb791, 0xb792, 0xb796, 0xb797, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb740[ 192 ] = { 0xfffd, 0xd16e, 0xd16f, 0xd170, 0xd171, 0xd172, 0xd173, 0xd174, 0xd175, 0xd176, 0xd177, 0xd178, 0xd179, 0xd17a, 0xd17b, 0xd17d, 0xd17e, 0xd17f, 0xd180, 0xd181, 0xd182, 0xd183, 0xd185, 0xd186, 0xd187, 0xd189, 0xd18a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd18b, 0xd18c, 0xd18d, 0xd18e, 0xd18f, 0xd190, 0xd191, 0xd192, 0xd193, 0xd194, 0xd195, 0xd196, 0xd197, 0xd198, 0xd199, 0xd19a, 0xd19b, 0xd19c, 0xd19d, 0xd19e, 0xd19f, 0xd1a2, 0xd1a3, 0xd1a5, 0xd1a6, 0xd1a7, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd1a9, 0xd1aa, 0xd1ab, 0xd1ac, 0xd1ad, 0xd1ae, 0xd1af, 0xd1b2, 0xd1b4, 0xd1b6, 0xd1b7, 0xd1b8, 0xd1b9, 0xd1bb, 0xd1bd, 0xd1be, 0xd1bf, 0xd1c1, 0xd1c2, 0xd1c3, 0xd1c4, 0xd1c5, 0xd1c6, 0xd1c7, 0xd1c8, 0xd1c9, 0xd1ca, 0xd1cb, 0xd1cc, 0xd1cd, 0xd1ce, 0xd1cf, 0xb798, 0xb799, 0xb79c, 0xb7a0, 0xb7a8, 0xb7a9, 0xb7ab, 0xb7ac, 0xb7ad, 0xb7b4, 0xb7b5, 0xb7b8, 0xb7c7, 0xb7c9, 0xb7ec, 0xb7ed, 0xb7f0, 0xb7f4, 0xb7fc, 0xb7fd, 0xb7ff, 0xb800, 0xb801, 0xb807, 0xb808, 0xb809, 0xb80c, 0xb810, 0xb818, 0xb819, 0xb81b, 0xb81d, 0xb824, 0xb825, 0xb828, 0xb82c, 0xb834, 0xb835, 0xb837, 0xb838, 0xb839, 0xb840, 0xb844, 0xb851, 0xb853, 0xb85c, 0xb85d, 0xb860, 0xb864, 0xb86c, 0xb86d, 0xb86f, 0xb871, 0xb878, 0xb87c, 0xb88d, 0xb8a8, 0xb8b0, 0xb8b4, 0xb8b8, 0xb8c0, 0xb8c1, 0xb8c3, 0xb8c5, 0xb8cc, 0xb8d0, 0xb8d4, 0xb8dd, 0xb8df, 0xb8e1, 0xb8e8, 0xb8e9, 0xb8ec, 0xb8f0, 0xb8f8, 0xb8f9, 0xb8fb, 0xb8fd, 0xb904, 0xb918, 0xb920, 0xb93c, 0xb93d, 0xb940, 0xb944, 0xb94c, 0xb94f, 0xb951, 0xb958, 0xb959, 0xb95c, 0xb960, 0xb968, 0xb969, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb840[ 192 ] = { 0xfffd, 0xd1d0, 0xd1d1, 0xd1d2, 0xd1d3, 0xd1d4, 0xd1d5, 0xd1d6, 0xd1d7, 0xd1d9, 0xd1da, 0xd1db, 0xd1dc, 0xd1dd, 0xd1de, 0xd1df, 0xd1e0, 0xd1e1, 0xd1e2, 0xd1e3, 0xd1e4, 0xd1e5, 0xd1e6, 0xd1e7, 0xd1e8, 0xd1e9, 0xd1ea, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd1eb, 0xd1ec, 0xd1ed, 0xd1ee, 0xd1ef, 0xd1f0, 0xd1f1, 0xd1f2, 0xd1f3, 0xd1f5, 0xd1f6, 0xd1f7, 0xd1f9, 0xd1fa, 0xd1fb, 0xd1fc, 0xd1fd, 0xd1fe, 0xd1ff, 0xd200, 0xd201, 0xd202, 0xd203, 0xd204, 0xd205, 0xd206, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd208, 0xd20a, 0xd20b, 0xd20c, 0xd20d, 0xd20e, 0xd20f, 0xd211, 0xd212, 0xd213, 0xd214, 0xd215, 0xd216, 0xd217, 0xd218, 0xd219, 0xd21a, 0xd21b, 0xd21c, 0xd21d, 0xd21e, 0xd21f, 0xd220, 0xd221, 0xd222, 0xd223, 0xd224, 0xd225, 0xd226, 0xd227, 0xd228, 0xd229, 0xb96b, 0xb96d, 0xb974, 0xb975, 0xb978, 0xb97c, 0xb984, 0xb985, 0xb987, 0xb989, 0xb98a, 0xb98d, 0xb98e, 0xb9ac, 0xb9ad, 0xb9b0, 0xb9b4, 0xb9bc, 0xb9bd, 0xb9bf, 0xb9c1, 0xb9c8, 0xb9c9, 0xb9cc, 0xb9ce, 0xb9cf, 0xb9d0, 0xb9d1, 0xb9d2, 0xb9d8, 0xb9d9, 0xb9db, 0xb9dd, 0xb9de, 0xb9e1, 0xb9e3, 0xb9e4, 0xb9e5, 0xb9e8, 0xb9ec, 0xb9f4, 0xb9f5, 0xb9f7, 0xb9f8, 0xb9f9, 0xb9fa, 0xba00, 0xba01, 0xba08, 0xba15, 0xba38, 0xba39, 0xba3c, 0xba40, 0xba42, 0xba48, 0xba49, 0xba4b, 0xba4d, 0xba4e, 0xba53, 0xba54, 0xba55, 0xba58, 0xba5c, 0xba64, 0xba65, 0xba67, 0xba68, 0xba69, 0xba70, 0xba71, 0xba74, 0xba78, 0xba83, 0xba84, 0xba85, 0xba87, 0xba8c, 0xbaa8, 0xbaa9, 0xbaab, 0xbaac, 0xbab0, 0xbab2, 0xbab8, 0xbab9, 0xbabb, 0xbabd, 0xbac4, 0xbac8, 0xbad8, 0xbad9, 0xbafc, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb940[ 192 ] = { 0xfffd, 0xd22a, 0xd22b, 0xd22e, 0xd22f, 0xd231, 0xd232, 0xd233, 0xd235, 0xd236, 0xd237, 0xd238, 0xd239, 0xd23a, 0xd23b, 0xd23e, 0xd240, 0xd242, 0xd243, 0xd244, 0xd245, 0xd246, 0xd247, 0xd249, 0xd24a, 0xd24b, 0xd24c, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd24d, 0xd24e, 0xd24f, 0xd250, 0xd251, 0xd252, 0xd253, 0xd254, 0xd255, 0xd256, 0xd257, 0xd258, 0xd259, 0xd25a, 0xd25b, 0xd25d, 0xd25e, 0xd25f, 0xd260, 0xd261, 0xd262, 0xd263, 0xd265, 0xd266, 0xd267, 0xd268, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd269, 0xd26a, 0xd26b, 0xd26c, 0xd26d, 0xd26e, 0xd26f, 0xd270, 0xd271, 0xd272, 0xd273, 0xd274, 0xd275, 0xd276, 0xd277, 0xd278, 0xd279, 0xd27a, 0xd27b, 0xd27c, 0xd27d, 0xd27e, 0xd27f, 0xd282, 0xd283, 0xd285, 0xd286, 0xd287, 0xd289, 0xd28a, 0xd28b, 0xd28c, 0xbb00, 0xbb04, 0xbb0d, 0xbb0f, 0xbb11, 0xbb18, 0xbb1c, 0xbb20, 0xbb29, 0xbb2b, 0xbb34, 0xbb35, 0xbb36, 0xbb38, 0xbb3b, 0xbb3c, 0xbb3d, 0xbb3e, 0xbb44, 0xbb45, 0xbb47, 0xbb49, 0xbb4d, 0xbb4f, 0xbb50, 0xbb54, 0xbb58, 0xbb61, 0xbb63, 0xbb6c, 0xbb88, 0xbb8c, 0xbb90, 0xbba4, 0xbba8, 0xbbac, 0xbbb4, 0xbbb7, 0xbbc0, 0xbbc4, 0xbbc8, 0xbbd0, 0xbbd3, 0xbbf8, 0xbbf9, 0xbbfc, 0xbbff, 0xbc00, 0xbc02, 0xbc08, 0xbc09, 0xbc0b, 0xbc0c, 0xbc0d, 0xbc0f, 0xbc11, 0xbc14, 0xbc15, 0xbc16, 0xbc17, 0xbc18, 0xbc1b, 0xbc1c, 0xbc1d, 0xbc1e, 0xbc1f, 0xbc24, 0xbc25, 0xbc27, 0xbc29, 0xbc2d, 0xbc30, 0xbc31, 0xbc34, 0xbc38, 0xbc40, 0xbc41, 0xbc43, 0xbc44, 0xbc45, 0xbc49, 0xbc4c, 0xbc4d, 0xbc50, 0xbc5d, 0xbc84, 0xbc85, 0xbc88, 0xbc8b, 0xbc8c, 0xbc8e, 0xbc94, 0xbc95, 0xbc97, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xba40[ 192 ] = { 0xfffd, 0xd28d, 0xd28e, 0xd28f, 0xd292, 0xd293, 0xd294, 0xd296, 0xd297, 0xd298, 0xd299, 0xd29a, 0xd29b, 0xd29d, 0xd29e, 0xd29f, 0xd2a1, 0xd2a2, 0xd2a3, 0xd2a5, 0xd2a6, 0xd2a7, 0xd2a8, 0xd2a9, 0xd2aa, 0xd2ab, 0xd2ad, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd2ae, 0xd2af, 0xd2b0, 0xd2b2, 0xd2b3, 0xd2b4, 0xd2b5, 0xd2b6, 0xd2b7, 0xd2ba, 0xd2bb, 0xd2bd, 0xd2be, 0xd2c1, 0xd2c3, 0xd2c4, 0xd2c5, 0xd2c6, 0xd2c7, 0xd2ca, 0xd2cc, 0xd2cd, 0xd2ce, 0xd2cf, 0xd2d0, 0xd2d1, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd2d2, 0xd2d3, 0xd2d5, 0xd2d6, 0xd2d7, 0xd2d9, 0xd2da, 0xd2db, 0xd2dd, 0xd2de, 0xd2df, 0xd2e0, 0xd2e1, 0xd2e2, 0xd2e3, 0xd2e6, 0xd2e7, 0xd2e8, 0xd2e9, 0xd2ea, 0xd2eb, 0xd2ec, 0xd2ed, 0xd2ee, 0xd2ef, 0xd2f2, 0xd2f3, 0xd2f5, 0xd2f6, 0xd2f7, 0xd2f9, 0xd2fa, 0xbc99, 0xbc9a, 0xbca0, 0xbca1, 0xbca4, 0xbca7, 0xbca8, 0xbcb0, 0xbcb1, 0xbcb3, 0xbcb4, 0xbcb5, 0xbcbc, 0xbcbd, 0xbcc0, 0xbcc4, 0xbccd, 0xbccf, 0xbcd0, 0xbcd1, 0xbcd5, 0xbcd8, 0xbcdc, 0xbcf4, 0xbcf5, 0xbcf6, 0xbcf8, 0xbcfc, 0xbd04, 0xbd05, 0xbd07, 0xbd09, 0xbd10, 0xbd14, 0xbd24, 0xbd2c, 0xbd40, 0xbd48, 0xbd49, 0xbd4c, 0xbd50, 0xbd58, 0xbd59, 0xbd64, 0xbd68, 0xbd80, 0xbd81, 0xbd84, 0xbd87, 0xbd88, 0xbd89, 0xbd8a, 0xbd90, 0xbd91, 0xbd93, 0xbd95, 0xbd99, 0xbd9a, 0xbd9c, 0xbda4, 0xbdb0, 0xbdb8, 0xbdd4, 0xbdd5, 0xbdd8, 0xbddc, 0xbde9, 0xbdf0, 0xbdf4, 0xbdf8, 0xbe00, 0xbe03, 0xbe05, 0xbe0c, 0xbe0d, 0xbe10, 0xbe14, 0xbe1c, 0xbe1d, 0xbe1f, 0xbe44, 0xbe45, 0xbe48, 0xbe4c, 0xbe4e, 0xbe54, 0xbe55, 0xbe57, 0xbe59, 0xbe5a, 0xbe5b, 0xbe60, 0xbe61, 0xbe64, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbb40[ 192 ] = { 0xfffd, 0xd2fb, 0xd2fc, 0xd2fd, 0xd2fe, 0xd2ff, 0xd302, 0xd304, 0xd306, 0xd307, 0xd308, 0xd309, 0xd30a, 0xd30b, 0xd30f, 0xd311, 0xd312, 0xd313, 0xd315, 0xd317, 0xd318, 0xd319, 0xd31a, 0xd31b, 0xd31e, 0xd322, 0xd323, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd324, 0xd326, 0xd327, 0xd32a, 0xd32b, 0xd32d, 0xd32e, 0xd32f, 0xd331, 0xd332, 0xd333, 0xd334, 0xd335, 0xd336, 0xd337, 0xd33a, 0xd33e, 0xd33f, 0xd340, 0xd341, 0xd342, 0xd343, 0xd346, 0xd347, 0xd348, 0xd349, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd34a, 0xd34b, 0xd34c, 0xd34d, 0xd34e, 0xd34f, 0xd350, 0xd351, 0xd352, 0xd353, 0xd354, 0xd355, 0xd356, 0xd357, 0xd358, 0xd359, 0xd35a, 0xd35b, 0xd35c, 0xd35d, 0xd35e, 0xd35f, 0xd360, 0xd361, 0xd362, 0xd363, 0xd364, 0xd365, 0xd366, 0xd367, 0xd368, 0xd369, 0xbe68, 0xbe6a, 0xbe70, 0xbe71, 0xbe73, 0xbe74, 0xbe75, 0xbe7b, 0xbe7c, 0xbe7d, 0xbe80, 0xbe84, 0xbe8c, 0xbe8d, 0xbe8f, 0xbe90, 0xbe91, 0xbe98, 0xbe99, 0xbea8, 0xbed0, 0xbed1, 0xbed4, 0xbed7, 0xbed8, 0xbee0, 0xbee3, 0xbee4, 0xbee5, 0xbeec, 0xbf01, 0xbf08, 0xbf09, 0xbf18, 0xbf19, 0xbf1b, 0xbf1c, 0xbf1d, 0xbf40, 0xbf41, 0xbf44, 0xbf48, 0xbf50, 0xbf51, 0xbf55, 0xbf94, 0xbfb0, 0xbfc5, 0xbfcc, 0xbfcd, 0xbfd0, 0xbfd4, 0xbfdc, 0xbfdf, 0xbfe1, 0xc03c, 0xc051, 0xc058, 0xc05c, 0xc060, 0xc068, 0xc069, 0xc090, 0xc091, 0xc094, 0xc098, 0xc0a0, 0xc0a1, 0xc0a3, 0xc0a5, 0xc0ac, 0xc0ad, 0xc0af, 0xc0b0, 0xc0b3, 0xc0b4, 0xc0b5, 0xc0b6, 0xc0bc, 0xc0bd, 0xc0bf, 0xc0c0, 0xc0c1, 0xc0c5, 0xc0c8, 0xc0c9, 0xc0cc, 0xc0d0, 0xc0d8, 0xc0d9, 0xc0db, 0xc0dc, 0xc0dd, 0xc0e4, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbc40[ 192 ] = { 0xfffd, 0xd36a, 0xd36b, 0xd36c, 0xd36d, 0xd36e, 0xd36f, 0xd370, 0xd371, 0xd372, 0xd373, 0xd374, 0xd375, 0xd376, 0xd377, 0xd378, 0xd379, 0xd37a, 0xd37b, 0xd37e, 0xd37f, 0xd381, 0xd382, 0xd383, 0xd385, 0xd386, 0xd387, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd388, 0xd389, 0xd38a, 0xd38b, 0xd38e, 0xd392, 0xd393, 0xd394, 0xd395, 0xd396, 0xd397, 0xd39a, 0xd39b, 0xd39d, 0xd39e, 0xd39f, 0xd3a1, 0xd3a2, 0xd3a3, 0xd3a4, 0xd3a5, 0xd3a6, 0xd3a7, 0xd3aa, 0xd3ac, 0xd3ae, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd3af, 0xd3b0, 0xd3b1, 0xd3b2, 0xd3b3, 0xd3b5, 0xd3b6, 0xd3b7, 0xd3b9, 0xd3ba, 0xd3bb, 0xd3bd, 0xd3be, 0xd3bf, 0xd3c0, 0xd3c1, 0xd3c2, 0xd3c3, 0xd3c6, 0xd3c7, 0xd3ca, 0xd3cb, 0xd3cc, 0xd3cd, 0xd3ce, 0xd3cf, 0xd3d1, 0xd3d2, 0xd3d3, 0xd3d4, 0xd3d5, 0xd3d6, 0xc0e5, 0xc0e8, 0xc0ec, 0xc0f4, 0xc0f5, 0xc0f7, 0xc0f9, 0xc100, 0xc104, 0xc108, 0xc110, 0xc115, 0xc11c, 0xc11d, 0xc11e, 0xc11f, 0xc120, 0xc123, 0xc124, 0xc126, 0xc127, 0xc12c, 0xc12d, 0xc12f, 0xc130, 0xc131, 0xc136, 0xc138, 0xc139, 0xc13c, 0xc140, 0xc148, 0xc149, 0xc14b, 0xc14c, 0xc14d, 0xc154, 0xc155, 0xc158, 0xc15c, 0xc164, 0xc165, 0xc167, 0xc168, 0xc169, 0xc170, 0xc174, 0xc178, 0xc185, 0xc18c, 0xc18d, 0xc18e, 0xc190, 0xc194, 0xc196, 0xc19c, 0xc19d, 0xc19f, 0xc1a1, 0xc1a5, 0xc1a8, 0xc1a9, 0xc1ac, 0xc1b0, 0xc1bd, 0xc1c4, 0xc1c8, 0xc1cc, 0xc1d4, 0xc1d7, 0xc1d8, 0xc1e0, 0xc1e4, 0xc1e8, 0xc1f0, 0xc1f1, 0xc1f3, 0xc1fc, 0xc1fd, 0xc200, 0xc204, 0xc20c, 0xc20d, 0xc20f, 0xc211, 0xc218, 0xc219, 0xc21c, 0xc21f, 0xc220, 0xc228, 0xc229, 0xc22b, 0xc22d, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbd40[ 192 ] = { 0xfffd, 0xd3d7, 0xd3d9, 0xd3da, 0xd3db, 0xd3dc, 0xd3dd, 0xd3de, 0xd3df, 0xd3e0, 0xd3e2, 0xd3e4, 0xd3e5, 0xd3e6, 0xd3e7, 0xd3e8, 0xd3e9, 0xd3ea, 0xd3eb, 0xd3ee, 0xd3ef, 0xd3f1, 0xd3f2, 0xd3f3, 0xd3f5, 0xd3f6, 0xd3f7, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd3f8, 0xd3f9, 0xd3fa, 0xd3fb, 0xd3fe, 0xd400, 0xd402, 0xd403, 0xd404, 0xd405, 0xd406, 0xd407, 0xd409, 0xd40a, 0xd40b, 0xd40c, 0xd40d, 0xd40e, 0xd40f, 0xd410, 0xd411, 0xd412, 0xd413, 0xd414, 0xd415, 0xd416, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd417, 0xd418, 0xd419, 0xd41a, 0xd41b, 0xd41c, 0xd41e, 0xd41f, 0xd420, 0xd421, 0xd422, 0xd423, 0xd424, 0xd425, 0xd426, 0xd427, 0xd428, 0xd429, 0xd42a, 0xd42b, 0xd42c, 0xd42d, 0xd42e, 0xd42f, 0xd430, 0xd431, 0xd432, 0xd433, 0xd434, 0xd435, 0xd436, 0xd437, 0xc22f, 0xc231, 0xc232, 0xc234, 0xc248, 0xc250, 0xc251, 0xc254, 0xc258, 0xc260, 0xc265, 0xc26c, 0xc26d, 0xc270, 0xc274, 0xc27c, 0xc27d, 0xc27f, 0xc281, 0xc288, 0xc289, 0xc290, 0xc298, 0xc29b, 0xc29d, 0xc2a4, 0xc2a5, 0xc2a8, 0xc2ac, 0xc2ad, 0xc2b4, 0xc2b5, 0xc2b7, 0xc2b9, 0xc2dc, 0xc2dd, 0xc2e0, 0xc2e3, 0xc2e4, 0xc2eb, 0xc2ec, 0xc2ed, 0xc2ef, 0xc2f1, 0xc2f6, 0xc2f8, 0xc2f9, 0xc2fb, 0xc2fc, 0xc300, 0xc308, 0xc309, 0xc30c, 0xc30d, 0xc313, 0xc314, 0xc315, 0xc318, 0xc31c, 0xc324, 0xc325, 0xc328, 0xc329, 0xc345, 0xc368, 0xc369, 0xc36c, 0xc370, 0xc372, 0xc378, 0xc379, 0xc37c, 0xc37d, 0xc384, 0xc388, 0xc38c, 0xc3c0, 0xc3d8, 0xc3d9, 0xc3dc, 0xc3df, 0xc3e0, 0xc3e2, 0xc3e8, 0xc3e9, 0xc3ed, 0xc3f4, 0xc3f5, 0xc3f8, 0xc408, 0xc410, 0xc424, 0xc42c, 0xc430, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbe40[ 192 ] = { 0xfffd, 0xd438, 0xd439, 0xd43a, 0xd43b, 0xd43c, 0xd43d, 0xd43e, 0xd43f, 0xd441, 0xd442, 0xd443, 0xd445, 0xd446, 0xd447, 0xd448, 0xd449, 0xd44a, 0xd44b, 0xd44c, 0xd44d, 0xd44e, 0xd44f, 0xd450, 0xd451, 0xd452, 0xd453, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd454, 0xd455, 0xd456, 0xd457, 0xd458, 0xd459, 0xd45a, 0xd45b, 0xd45d, 0xd45e, 0xd45f, 0xd461, 0xd462, 0xd463, 0xd465, 0xd466, 0xd467, 0xd468, 0xd469, 0xd46a, 0xd46b, 0xd46c, 0xd46e, 0xd470, 0xd471, 0xd472, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd473, 0xd474, 0xd475, 0xd476, 0xd477, 0xd47a, 0xd47b, 0xd47d, 0xd47e, 0xd481, 0xd483, 0xd484, 0xd485, 0xd486, 0xd487, 0xd48a, 0xd48c, 0xd48e, 0xd48f, 0xd490, 0xd491, 0xd492, 0xd493, 0xd495, 0xd496, 0xd497, 0xd498, 0xd499, 0xd49a, 0xd49b, 0xd49c, 0xd49d, 0xc434, 0xc43c, 0xc43d, 0xc448, 0xc464, 0xc465, 0xc468, 0xc46c, 0xc474, 0xc475, 0xc479, 0xc480, 0xc494, 0xc49c, 0xc4b8, 0xc4bc, 0xc4e9, 0xc4f0, 0xc4f1, 0xc4f4, 0xc4f8, 0xc4fa, 0xc4ff, 0xc500, 0xc501, 0xc50c, 0xc510, 0xc514, 0xc51c, 0xc528, 0xc529, 0xc52c, 0xc530, 0xc538, 0xc539, 0xc53b, 0xc53d, 0xc544, 0xc545, 0xc548, 0xc549, 0xc54a, 0xc54c, 0xc54d, 0xc54e, 0xc553, 0xc554, 0xc555, 0xc557, 0xc558, 0xc559, 0xc55d, 0xc55e, 0xc560, 0xc561, 0xc564, 0xc568, 0xc570, 0xc571, 0xc573, 0xc574, 0xc575, 0xc57c, 0xc57d, 0xc580, 0xc584, 0xc587, 0xc58c, 0xc58d, 0xc58f, 0xc591, 0xc595, 0xc597, 0xc598, 0xc59c, 0xc5a0, 0xc5a9, 0xc5b4, 0xc5b5, 0xc5b8, 0xc5b9, 0xc5bb, 0xc5bc, 0xc5bd, 0xc5be, 0xc5c4, 0xc5c5, 0xc5c6, 0xc5c7, 0xc5c8, 0xc5c9, 0xc5ca, 0xc5cc, 0xc5ce, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbf40[ 192 ] = { 0xfffd, 0xd49e, 0xd49f, 0xd4a0, 0xd4a1, 0xd4a2, 0xd4a3, 0xd4a4, 0xd4a5, 0xd4a6, 0xd4a7, 0xd4a8, 0xd4aa, 0xd4ab, 0xd4ac, 0xd4ad, 0xd4ae, 0xd4af, 0xd4b0, 0xd4b1, 0xd4b2, 0xd4b3, 0xd4b4, 0xd4b5, 0xd4b6, 0xd4b7, 0xd4b8, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd4b9, 0xd4ba, 0xd4bb, 0xd4bc, 0xd4bd, 0xd4be, 0xd4bf, 0xd4c0, 0xd4c1, 0xd4c2, 0xd4c3, 0xd4c4, 0xd4c5, 0xd4c6, 0xd4c7, 0xd4c8, 0xd4c9, 0xd4ca, 0xd4cb, 0xd4cd, 0xd4ce, 0xd4cf, 0xd4d1, 0xd4d2, 0xd4d3, 0xd4d5, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd4d6, 0xd4d7, 0xd4d8, 0xd4d9, 0xd4da, 0xd4db, 0xd4dd, 0xd4de, 0xd4e0, 0xd4e1, 0xd4e2, 0xd4e3, 0xd4e4, 0xd4e5, 0xd4e6, 0xd4e7, 0xd4e9, 0xd4ea, 0xd4eb, 0xd4ed, 0xd4ee, 0xd4ef, 0xd4f1, 0xd4f2, 0xd4f3, 0xd4f4, 0xd4f5, 0xd4f6, 0xd4f7, 0xd4f9, 0xd4fa, 0xd4fc, 0xc5d0, 0xc5d1, 0xc5d4, 0xc5d8, 0xc5e0, 0xc5e1, 0xc5e3, 0xc5e5, 0xc5ec, 0xc5ed, 0xc5ee, 0xc5f0, 0xc5f4, 0xc5f6, 0xc5f7, 0xc5fc, 0xc5fd, 0xc5fe, 0xc5ff, 0xc600, 0xc601, 0xc605, 0xc606, 0xc607, 0xc608, 0xc60c, 0xc610, 0xc618, 0xc619, 0xc61b, 0xc61c, 0xc624, 0xc625, 0xc628, 0xc62c, 0xc62d, 0xc62e, 0xc630, 0xc633, 0xc634, 0xc635, 0xc637, 0xc639, 0xc63b, 0xc640, 0xc641, 0xc644, 0xc648, 0xc650, 0xc651, 0xc653, 0xc654, 0xc655, 0xc65c, 0xc65d, 0xc660, 0xc66c, 0xc66f, 0xc671, 0xc678, 0xc679, 0xc67c, 0xc680, 0xc688, 0xc689, 0xc68b, 0xc68d, 0xc694, 0xc695, 0xc698, 0xc69c, 0xc6a4, 0xc6a5, 0xc6a7, 0xc6a9, 0xc6b0, 0xc6b1, 0xc6b4, 0xc6b8, 0xc6b9, 0xc6ba, 0xc6c0, 0xc6c1, 0xc6c3, 0xc6c5, 0xc6cc, 0xc6cd, 0xc6d0, 0xc6d4, 0xc6dc, 0xc6dd, 0xc6e0, 0xc6e1, 0xc6e8, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc040[ 192 ] = { 0xfffd, 0xd4fe, 0xd4ff, 0xd500, 0xd501, 0xd502, 0xd503, 0xd505, 0xd506, 0xd507, 0xd509, 0xd50a, 0xd50b, 0xd50d, 0xd50e, 0xd50f, 0xd510, 0xd511, 0xd512, 0xd513, 0xd516, 0xd518, 0xd519, 0xd51a, 0xd51b, 0xd51c, 0xd51d, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd51e, 0xd51f, 0xd520, 0xd521, 0xd522, 0xd523, 0xd524, 0xd525, 0xd526, 0xd527, 0xd528, 0xd529, 0xd52a, 0xd52b, 0xd52c, 0xd52d, 0xd52e, 0xd52f, 0xd530, 0xd531, 0xd532, 0xd533, 0xd534, 0xd535, 0xd536, 0xd537, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd538, 0xd539, 0xd53a, 0xd53b, 0xd53e, 0xd53f, 0xd541, 0xd542, 0xd543, 0xd545, 0xd546, 0xd547, 0xd548, 0xd549, 0xd54a, 0xd54b, 0xd54e, 0xd550, 0xd552, 0xd553, 0xd554, 0xd555, 0xd556, 0xd557, 0xd55a, 0xd55b, 0xd55d, 0xd55e, 0xd55f, 0xd561, 0xd562, 0xd563, 0xc6e9, 0xc6ec, 0xc6f0, 0xc6f8, 0xc6f9, 0xc6fd, 0xc704, 0xc705, 0xc708, 0xc70c, 0xc714, 0xc715, 0xc717, 0xc719, 0xc720, 0xc721, 0xc724, 0xc728, 0xc730, 0xc731, 0xc733, 0xc735, 0xc737, 0xc73c, 0xc73d, 0xc740, 0xc744, 0xc74a, 0xc74c, 0xc74d, 0xc74f, 0xc751, 0xc752, 0xc753, 0xc754, 0xc755, 0xc756, 0xc757, 0xc758, 0xc75c, 0xc760, 0xc768, 0xc76b, 0xc774, 0xc775, 0xc778, 0xc77c, 0xc77d, 0xc77e, 0xc783, 0xc784, 0xc785, 0xc787, 0xc788, 0xc789, 0xc78a, 0xc78e, 0xc790, 0xc791, 0xc794, 0xc796, 0xc797, 0xc798, 0xc79a, 0xc7a0, 0xc7a1, 0xc7a3, 0xc7a4, 0xc7a5, 0xc7a6, 0xc7ac, 0xc7ad, 0xc7b0, 0xc7b4, 0xc7bc, 0xc7bd, 0xc7bf, 0xc7c0, 0xc7c1, 0xc7c8, 0xc7c9, 0xc7cc, 0xc7ce, 0xc7d0, 0xc7d8, 0xc7dd, 0xc7e4, 0xc7e8, 0xc7ec, 0xc800, 0xc801, 0xc804, 0xc808, 0xc80a, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc140[ 192 ] = { 0xfffd, 0xd564, 0xd566, 0xd567, 0xd56a, 0xd56c, 0xd56e, 0xd56f, 0xd570, 0xd571, 0xd572, 0xd573, 0xd576, 0xd577, 0xd579, 0xd57a, 0xd57b, 0xd57d, 0xd57e, 0xd57f, 0xd580, 0xd581, 0xd582, 0xd583, 0xd586, 0xd58a, 0xd58b, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd58c, 0xd58d, 0xd58e, 0xd58f, 0xd591, 0xd592, 0xd593, 0xd594, 0xd595, 0xd596, 0xd597, 0xd598, 0xd599, 0xd59a, 0xd59b, 0xd59c, 0xd59d, 0xd59e, 0xd59f, 0xd5a0, 0xd5a1, 0xd5a2, 0xd5a3, 0xd5a4, 0xd5a6, 0xd5a7, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd5a8, 0xd5a9, 0xd5aa, 0xd5ab, 0xd5ac, 0xd5ad, 0xd5ae, 0xd5af, 0xd5b0, 0xd5b1, 0xd5b2, 0xd5b3, 0xd5b4, 0xd5b5, 0xd5b6, 0xd5b7, 0xd5b8, 0xd5b9, 0xd5ba, 0xd5bb, 0xd5bc, 0xd5bd, 0xd5be, 0xd5bf, 0xd5c0, 0xd5c1, 0xd5c2, 0xd5c3, 0xd5c4, 0xd5c5, 0xd5c6, 0xd5c7, 0xc810, 0xc811, 0xc813, 0xc815, 0xc816, 0xc81c, 0xc81d, 0xc820, 0xc824, 0xc82c, 0xc82d, 0xc82f, 0xc831, 0xc838, 0xc83c, 0xc840, 0xc848, 0xc849, 0xc84c, 0xc84d, 0xc854, 0xc870, 0xc871, 0xc874, 0xc878, 0xc87a, 0xc880, 0xc881, 0xc883, 0xc885, 0xc886, 0xc887, 0xc88b, 0xc88c, 0xc88d, 0xc894, 0xc89d, 0xc89f, 0xc8a1, 0xc8a8, 0xc8bc, 0xc8bd, 0xc8c4, 0xc8c8, 0xc8cc, 0xc8d4, 0xc8d5, 0xc8d7, 0xc8d9, 0xc8e0, 0xc8e1, 0xc8e4, 0xc8f5, 0xc8fc, 0xc8fd, 0xc900, 0xc904, 0xc905, 0xc906, 0xc90c, 0xc90d, 0xc90f, 0xc911, 0xc918, 0xc92c, 0xc934, 0xc950, 0xc951, 0xc954, 0xc958, 0xc960, 0xc961, 0xc963, 0xc96c, 0xc970, 0xc974, 0xc97c, 0xc988, 0xc989, 0xc98c, 0xc990, 0xc998, 0xc999, 0xc99b, 0xc99d, 0xc9c0, 0xc9c1, 0xc9c4, 0xc9c7, 0xc9c8, 0xc9ca, 0xc9d0, 0xc9d1, 0xc9d3, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc240[ 192 ] = { 0xfffd, 0xd5ca, 0xd5cb, 0xd5cd, 0xd5ce, 0xd5cf, 0xd5d1, 0xd5d3, 0xd5d4, 0xd5d5, 0xd5d6, 0xd5d7, 0xd5da, 0xd5dc, 0xd5de, 0xd5df, 0xd5e0, 0xd5e1, 0xd5e2, 0xd5e3, 0xd5e6, 0xd5e7, 0xd5e9, 0xd5ea, 0xd5eb, 0xd5ed, 0xd5ee, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd5ef, 0xd5f0, 0xd5f1, 0xd5f2, 0xd5f3, 0xd5f6, 0xd5f8, 0xd5fa, 0xd5fb, 0xd5fc, 0xd5fd, 0xd5fe, 0xd5ff, 0xd602, 0xd603, 0xd605, 0xd606, 0xd607, 0xd609, 0xd60a, 0xd60b, 0xd60c, 0xd60d, 0xd60e, 0xd60f, 0xd612, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd616, 0xd617, 0xd618, 0xd619, 0xd61a, 0xd61b, 0xd61d, 0xd61e, 0xd61f, 0xd621, 0xd622, 0xd623, 0xd625, 0xd626, 0xd627, 0xd628, 0xd629, 0xd62a, 0xd62b, 0xd62c, 0xd62e, 0xd62f, 0xd630, 0xd631, 0xd632, 0xd633, 0xd634, 0xd635, 0xd636, 0xd637, 0xd63a, 0xd63b, 0xc9d5, 0xc9d6, 0xc9d9, 0xc9da, 0xc9dc, 0xc9dd, 0xc9e0, 0xc9e2, 0xc9e4, 0xc9e7, 0xc9ec, 0xc9ed, 0xc9ef, 0xc9f0, 0xc9f1, 0xc9f8, 0xc9f9, 0xc9fc, 0xca00, 0xca08, 0xca09, 0xca0b, 0xca0c, 0xca0d, 0xca14, 0xca18, 0xca29, 0xca4c, 0xca4d, 0xca50, 0xca54, 0xca5c, 0xca5d, 0xca5f, 0xca60, 0xca61, 0xca68, 0xca7d, 0xca84, 0xca98, 0xcabc, 0xcabd, 0xcac0, 0xcac4, 0xcacc, 0xcacd, 0xcacf, 0xcad1, 0xcad3, 0xcad8, 0xcad9, 0xcae0, 0xcaec, 0xcaf4, 0xcb08, 0xcb10, 0xcb14, 0xcb18, 0xcb20, 0xcb21, 0xcb41, 0xcb48, 0xcb49, 0xcb4c, 0xcb50, 0xcb58, 0xcb59, 0xcb5d, 0xcb64, 0xcb78, 0xcb79, 0xcb9c, 0xcbb8, 0xcbd4, 0xcbe4, 0xcbe7, 0xcbe9, 0xcc0c, 0xcc0d, 0xcc10, 0xcc14, 0xcc1c, 0xcc1d, 0xcc21, 0xcc22, 0xcc27, 0xcc28, 0xcc29, 0xcc2c, 0xcc2e, 0xcc30, 0xcc38, 0xcc39, 0xcc3b, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc340[ 192 ] = { 0xfffd, 0xd63d, 0xd63e, 0xd63f, 0xd641, 0xd642, 0xd643, 0xd644, 0xd646, 0xd647, 0xd64a, 0xd64c, 0xd64e, 0xd64f, 0xd650, 0xd652, 0xd653, 0xd656, 0xd657, 0xd659, 0xd65a, 0xd65b, 0xd65d, 0xd65e, 0xd65f, 0xd660, 0xd661, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd662, 0xd663, 0xd664, 0xd665, 0xd666, 0xd668, 0xd66a, 0xd66b, 0xd66c, 0xd66d, 0xd66e, 0xd66f, 0xd672, 0xd673, 0xd675, 0xd676, 0xd677, 0xd678, 0xd679, 0xd67a, 0xd67b, 0xd67c, 0xd67d, 0xd67e, 0xd67f, 0xd680, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd681, 0xd682, 0xd684, 0xd686, 0xd687, 0xd688, 0xd689, 0xd68a, 0xd68b, 0xd68e, 0xd68f, 0xd691, 0xd692, 0xd693, 0xd695, 0xd696, 0xd697, 0xd698, 0xd699, 0xd69a, 0xd69b, 0xd69c, 0xd69e, 0xd6a0, 0xd6a2, 0xd6a3, 0xd6a4, 0xd6a5, 0xd6a6, 0xd6a7, 0xd6a9, 0xd6aa, 0xcc3c, 0xcc3d, 0xcc3e, 0xcc44, 0xcc45, 0xcc48, 0xcc4c, 0xcc54, 0xcc55, 0xcc57, 0xcc58, 0xcc59, 0xcc60, 0xcc64, 0xcc66, 0xcc68, 0xcc70, 0xcc75, 0xcc98, 0xcc99, 0xcc9c, 0xcca0, 0xcca8, 0xcca9, 0xccab, 0xccac, 0xccad, 0xccb4, 0xccb5, 0xccb8, 0xccbc, 0xccc4, 0xccc5, 0xccc7, 0xccc9, 0xccd0, 0xccd4, 0xcce4, 0xccec, 0xccf0, 0xcd01, 0xcd08, 0xcd09, 0xcd0c, 0xcd10, 0xcd18, 0xcd19, 0xcd1b, 0xcd1d, 0xcd24, 0xcd28, 0xcd2c, 0xcd39, 0xcd5c, 0xcd60, 0xcd64, 0xcd6c, 0xcd6d, 0xcd6f, 0xcd71, 0xcd78, 0xcd88, 0xcd94, 0xcd95, 0xcd98, 0xcd9c, 0xcda4, 0xcda5, 0xcda7, 0xcda9, 0xcdb0, 0xcdc4, 0xcdcc, 0xcdd0, 0xcde8, 0xcdec, 0xcdf0, 0xcdf8, 0xcdf9, 0xcdfb, 0xcdfd, 0xce04, 0xce08, 0xce0c, 0xce14, 0xce19, 0xce20, 0xce21, 0xce24, 0xce28, 0xce30, 0xce31, 0xce33, 0xce35, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc440[ 192 ] = { 0xfffd, 0xd6ab, 0xd6ad, 0xd6ae, 0xd6af, 0xd6b1, 0xd6b2, 0xd6b3, 0xd6b4, 0xd6b5, 0xd6b6, 0xd6b7, 0xd6b8, 0xd6ba, 0xd6bc, 0xd6bd, 0xd6be, 0xd6bf, 0xd6c0, 0xd6c1, 0xd6c2, 0xd6c3, 0xd6c6, 0xd6c7, 0xd6c9, 0xd6ca, 0xd6cb, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd6cd, 0xd6ce, 0xd6cf, 0xd6d0, 0xd6d2, 0xd6d3, 0xd6d5, 0xd6d6, 0xd6d8, 0xd6da, 0xd6db, 0xd6dc, 0xd6dd, 0xd6de, 0xd6df, 0xd6e1, 0xd6e2, 0xd6e3, 0xd6e5, 0xd6e6, 0xd6e7, 0xd6e9, 0xd6ea, 0xd6eb, 0xd6ec, 0xd6ed, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd6ee, 0xd6ef, 0xd6f1, 0xd6f2, 0xd6f3, 0xd6f4, 0xd6f6, 0xd6f7, 0xd6f8, 0xd6f9, 0xd6fa, 0xd6fb, 0xd6fe, 0xd6ff, 0xd701, 0xd702, 0xd703, 0xd705, 0xd706, 0xd707, 0xd708, 0xd709, 0xd70a, 0xd70b, 0xd70c, 0xd70d, 0xd70e, 0xd70f, 0xd710, 0xd712, 0xd713, 0xd714, 0xce58, 0xce59, 0xce5c, 0xce5f, 0xce60, 0xce61, 0xce68, 0xce69, 0xce6b, 0xce6d, 0xce74, 0xce75, 0xce78, 0xce7c, 0xce84, 0xce85, 0xce87, 0xce89, 0xce90, 0xce91, 0xce94, 0xce98, 0xcea0, 0xcea1, 0xcea3, 0xcea4, 0xcea5, 0xceac, 0xcead, 0xcec1, 0xcee4, 0xcee5, 0xcee8, 0xceeb, 0xceec, 0xcef4, 0xcef5, 0xcef7, 0xcef8, 0xcef9, 0xcf00, 0xcf01, 0xcf04, 0xcf08, 0xcf10, 0xcf11, 0xcf13, 0xcf15, 0xcf1c, 0xcf20, 0xcf24, 0xcf2c, 0xcf2d, 0xcf2f, 0xcf30, 0xcf31, 0xcf38, 0xcf54, 0xcf55, 0xcf58, 0xcf5c, 0xcf64, 0xcf65, 0xcf67, 0xcf69, 0xcf70, 0xcf71, 0xcf74, 0xcf78, 0xcf80, 0xcf85, 0xcf8c, 0xcfa1, 0xcfa8, 0xcfb0, 0xcfc4, 0xcfe0, 0xcfe1, 0xcfe4, 0xcfe8, 0xcff0, 0xcff1, 0xcff3, 0xcff5, 0xcffc, 0xd000, 0xd004, 0xd011, 0xd018, 0xd02d, 0xd034, 0xd035, 0xd038, 0xd03c, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc540[ 192 ] = { 0xfffd, 0xd715, 0xd716, 0xd717, 0xd71a, 0xd71b, 0xd71d, 0xd71e, 0xd71f, 0xd721, 0xd722, 0xd723, 0xd724, 0xd725, 0xd726, 0xd727, 0xd72a, 0xd72c, 0xd72e, 0xd72f, 0xd730, 0xd731, 0xd732, 0xd733, 0xd736, 0xd737, 0xd739, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd73a, 0xd73b, 0xd73d, 0xd73e, 0xd73f, 0xd740, 0xd741, 0xd742, 0xd743, 0xd745, 0xd746, 0xd748, 0xd74a, 0xd74b, 0xd74c, 0xd74d, 0xd74e, 0xd74f, 0xd752, 0xd753, 0xd755, 0xd75a, 0xd75b, 0xd75c, 0xd75d, 0xd75e, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xd75f, 0xd762, 0xd764, 0xd766, 0xd767, 0xd768, 0xd76a, 0xd76b, 0xd76d, 0xd76e, 0xd76f, 0xd771, 0xd772, 0xd773, 0xd775, 0xd776, 0xd777, 0xd778, 0xd779, 0xd77a, 0xd77b, 0xd77e, 0xd77f, 0xd780, 0xd782, 0xd783, 0xd784, 0xd785, 0xd786, 0xd787, 0xd78a, 0xd78b, 0xd044, 0xd045, 0xd047, 0xd049, 0xd050, 0xd054, 0xd058, 0xd060, 0xd06c, 0xd06d, 0xd070, 0xd074, 0xd07c, 0xd07d, 0xd081, 0xd0a4, 0xd0a5, 0xd0a8, 0xd0ac, 0xd0b4, 0xd0b5, 0xd0b7, 0xd0b9, 0xd0c0, 0xd0c1, 0xd0c4, 0xd0c8, 0xd0c9, 0xd0d0, 0xd0d1, 0xd0d3, 0xd0d4, 0xd0d5, 0xd0dc, 0xd0dd, 0xd0e0, 0xd0e4, 0xd0ec, 0xd0ed, 0xd0ef, 0xd0f0, 0xd0f1, 0xd0f8, 0xd10d, 0xd130, 0xd131, 0xd134, 0xd138, 0xd13a, 0xd140, 0xd141, 0xd143, 0xd144, 0xd145, 0xd14c, 0xd14d, 0xd150, 0xd154, 0xd15c, 0xd15d, 0xd15f, 0xd161, 0xd168, 0xd16c, 0xd17c, 0xd184, 0xd188, 0xd1a0, 0xd1a1, 0xd1a4, 0xd1a8, 0xd1b0, 0xd1b1, 0xd1b3, 0xd1b5, 0xd1ba, 0xd1bc, 0xd1c0, 0xd1d8, 0xd1f4, 0xd1f8, 0xd207, 0xd209, 0xd210, 0xd22c, 0xd22d, 0xd230, 0xd234, 0xd23c, 0xd23d, 0xd23f, 0xd241, 0xd248, 0xd25c, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc640[ 24 ] = { 0xfffd, 0xd78d, 0xd78e, 0xd78f, 0xd791, 0xd792, 0xd793, 0xd794, 0xd795, 0xd796, 0xd797, 0xd79a, 0xd79c, 0xd79e, 0xd79f, 0xd7a0, 0xd7a1, 0xd7a2, 0xd7a3, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc6a0[ 96 ] = { 0xfffd, 0xd264, 0xd280, 0xd281, 0xd284, 0xd288, 0xd290, 0xd291, 0xd295, 0xd29c, 0xd2a0, 0xd2a4, 0xd2ac, 0xd2b1, 0xd2b8, 0xd2b9, 0xd2bc, 0xd2bf, 0xd2c0, 0xd2c2, 0xd2c8, 0xd2c9, 0xd2cb, 0xd2d4, 0xd2d8, 0xd2dc, 0xd2e4, 0xd2e5, 0xd2f0, 0xd2f1, 0xd2f4, 0xd2f8, 0xd300, 0xd301, 0xd303, 0xd305, 0xd30c, 0xd30d, 0xd30e, 0xd310, 0xd314, 0xd316, 0xd31c, 0xd31d, 0xd31f, 0xd320, 0xd321, 0xd325, 0xd328, 0xd329, 0xd32c, 0xd330, 0xd338, 0xd339, 0xd33b, 0xd33c, 0xd33d, 0xd344, 0xd345, 0xd37c, 0xd37d, 0xd380, 0xd384, 0xd38c, 0xd38d, 0xd38f, 0xd390, 0xd391, 0xd398, 0xd399, 0xd39c, 0xd3a0, 0xd3a8, 0xd3a9, 0xd3ab, 0xd3ad, 0xd3b4, 0xd3b8, 0xd3bc, 0xd3c4, 0xd3c5, 0xd3c8, 0xd3c9, 0xd3d0, 0xd3d8, 0xd3e1, 0xd3e3, 0xd3ec, 0xd3ed, 0xd3f0, 0xd3f4, 0xd3fc, 0xd3fd, 0xd3ff, 0xd401, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc7a0[ 96 ] = { 0xfffd, 0xd408, 0xd41d, 0xd440, 0xd444, 0xd45c, 0xd460, 0xd464, 0xd46d, 0xd46f, 0xd478, 0xd479, 0xd47c, 0xd47f, 0xd480, 0xd482, 0xd488, 0xd489, 0xd48b, 0xd48d, 0xd494, 0xd4a9, 0xd4cc, 0xd4d0, 0xd4d4, 0xd4dc, 0xd4df, 0xd4e8, 0xd4ec, 0xd4f0, 0xd4f8, 0xd4fb, 0xd4fd, 0xd504, 0xd508, 0xd50c, 0xd514, 0xd515, 0xd517, 0xd53c, 0xd53d, 0xd540, 0xd544, 0xd54c, 0xd54d, 0xd54f, 0xd551, 0xd558, 0xd559, 0xd55c, 0xd560, 0xd565, 0xd568, 0xd569, 0xd56b, 0xd56d, 0xd574, 0xd575, 0xd578, 0xd57c, 0xd584, 0xd585, 0xd587, 0xd588, 0xd589, 0xd590, 0xd5a5, 0xd5c8, 0xd5c9, 0xd5cc, 0xd5d0, 0xd5d2, 0xd5d8, 0xd5d9, 0xd5db, 0xd5dd, 0xd5e4, 0xd5e5, 0xd5e8, 0xd5ec, 0xd5f4, 0xd5f5, 0xd5f7, 0xd5f9, 0xd600, 0xd601, 0xd604, 0xd608, 0xd610, 0xd611, 0xd613, 0xd614, 0xd615, 0xd61c, 0xd620, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc8a0[ 96 ] = { 0xfffd, 0xd624, 0xd62d, 0xd638, 0xd639, 0xd63c, 0xd640, 0xd645, 0xd648, 0xd649, 0xd64b, 0xd64d, 0xd651, 0xd654, 0xd655, 0xd658, 0xd65c, 0xd667, 0xd669, 0xd670, 0xd671, 0xd674, 0xd683, 0xd685, 0xd68c, 0xd68d, 0xd690, 0xd694, 0xd69d, 0xd69f, 0xd6a1, 0xd6a8, 0xd6ac, 0xd6b0, 0xd6b9, 0xd6bb, 0xd6c4, 0xd6c5, 0xd6c8, 0xd6cc, 0xd6d1, 0xd6d4, 0xd6d7, 0xd6d9, 0xd6e0, 0xd6e4, 0xd6e8, 0xd6f0, 0xd6f5, 0xd6fc, 0xd6fd, 0xd700, 0xd704, 0xd711, 0xd718, 0xd719, 0xd71c, 0xd720, 0xd728, 0xd729, 0xd72b, 0xd72d, 0xd734, 0xd735, 0xd738, 0xd73c, 0xd744, 0xd747, 0xd749, 0xd750, 0xd751, 0xd754, 0xd756, 0xd757, 0xd758, 0xd759, 0xd760, 0xd761, 0xd763, 0xd765, 0xd769, 0xd76c, 0xd770, 0xd774, 0xd77c, 0xd77d, 0xd781, 0xd788, 0xd789, 0xd78c, 0xd790, 0xd798, 0xd799, 0xd79b, 0xd79d, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcaa0[ 96 ] = { 0xfffd, 0x4f3d, 0x4f73, 0x5047, 0x50f9, 0x52a0, 0x53ef, 0x5475, 0x54e5, 0x5609, 0x5ac1, 0x5bb6, 0x6687, 0x67b6, 0x67b7, 0x67ef, 0x6b4c, 0x73c2, 0x75c2, 0x7a3c, 0x82db, 0x8304, 0x8857, 0x8888, 0x8a36, 0x8cc8, 0x8dcf, 0x8efb, 0x8fe6, 0x99d5, 0x523b, 0x5374, 0x5404, 0x606a, 0x6164, 0x6bbc, 0x73cf, 0x811a, 0x89ba, 0x89d2, 0x95a3, 0x4f83, 0x520a, 0x58be, 0x5978, 0x59e6, 0x5e72, 0x5e79, 0x61c7, 0x63c0, 0x6746, 0x67ec, 0x687f, 0x6f97, 0x764e, 0x770b, 0x78f5, 0x7a08, 0x7aff, 0x7c21, 0x809d, 0x826e, 0x8271, 0x8aeb, 0x9593, 0x4e6b, 0x559d, 0x66f7, 0x6e34, 0x78a3, 0x7aed, 0x845b, 0x8910, 0x874e, 0x97a8, 0x52d8, 0x574e, 0x582a, 0x5d4c, 0x611f, 0x61be, 0x6221, 0x6562, 0x67d1, 0x6a44, 0x6e1b, 0x7518, 0x75b3, 0x76e3, 0x77b0, 0x7d3a, 0x90af, 0x9451, 0x9452, 0x9f95, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcba0[ 96 ] = { 0xfffd, 0x5323, 0x5cac, 0x7532, 0x80db, 0x9240, 0x9598, 0x525b, 0x5808, 0x59dc, 0x5ca1, 0x5d17, 0x5eb7, 0x5f3a, 0x5f4a, 0x6177, 0x6c5f, 0x757a, 0x7586, 0x7ce0, 0x7d73, 0x7db1, 0x7f8c, 0x8154, 0x8221, 0x8591, 0x8941, 0x8b1b, 0x92fc, 0x964d, 0x9c47, 0x4ecb, 0x4ef7, 0x500b, 0x51f1, 0x584f, 0x6137, 0x613e, 0x6168, 0x6539, 0x69ea, 0x6f11, 0x75a5, 0x7686, 0x76d6, 0x7b87, 0x82a5, 0x84cb, 0xf900, 0x93a7, 0x958b, 0x5580, 0x5ba2, 0x5751, 0xf901, 0x7cb3, 0x7fb9, 0x91b5, 0x5028, 0x53bb, 0x5c45, 0x5de8, 0x62d2, 0x636e, 0x64da, 0x64e7, 0x6e20, 0x70ac, 0x795b, 0x8ddd, 0x8e1e, 0xf902, 0x907d, 0x9245, 0x92f8, 0x4e7e, 0x4ef6, 0x5065, 0x5dfe, 0x5efa, 0x6106, 0x6957, 0x8171, 0x8654, 0x8e47, 0x9375, 0x9a2b, 0x4e5e, 0x5091, 0x6770, 0x6840, 0x5109, 0x528d, 0x5292, 0x6aa2, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcca0[ 96 ] = { 0xfffd, 0x77bc, 0x9210, 0x9ed4, 0x52ab, 0x602f, 0x8ff2, 0x5048, 0x61a9, 0x63ed, 0x64ca, 0x683c, 0x6a84, 0x6fc0, 0x8188, 0x89a1, 0x9694, 0x5805, 0x727d, 0x72ac, 0x7504, 0x7d79, 0x7e6d, 0x80a9, 0x898b, 0x8b74, 0x9063, 0x9d51, 0x6289, 0x6c7a, 0x6f54, 0x7d50, 0x7f3a, 0x8a23, 0x517c, 0x614a, 0x7b9d, 0x8b19, 0x9257, 0x938c, 0x4eac, 0x4fd3, 0x501e, 0x50be, 0x5106, 0x52c1, 0x52cd, 0x537f, 0x5770, 0x5883, 0x5e9a, 0x5f91, 0x6176, 0x61ac, 0x64ce, 0x656c, 0x666f, 0x66bb, 0x66f4, 0x6897, 0x6d87, 0x7085, 0x70f1, 0x749f, 0x74a5, 0x74ca, 0x75d9, 0x786c, 0x78ec, 0x7adf, 0x7af6, 0x7d45, 0x7d93, 0x8015, 0x803f, 0x811b, 0x8396, 0x8b66, 0x8f15, 0x9015, 0x93e1, 0x9803, 0x9838, 0x9a5a, 0x9be8, 0x4fc2, 0x5553, 0x583a, 0x5951, 0x5b63, 0x5c46, 0x60b8, 0x6212, 0x6842, 0x68b0, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcda0[ 96 ] = { 0xfffd, 0x68e8, 0x6eaa, 0x754c, 0x7678, 0x78ce, 0x7a3d, 0x7cfb, 0x7e6b, 0x7e7c, 0x8a08, 0x8aa1, 0x8c3f, 0x968e, 0x9dc4, 0x53e4, 0x53e9, 0x544a, 0x5471, 0x56fa, 0x59d1, 0x5b64, 0x5c3b, 0x5eab, 0x62f7, 0x6537, 0x6545, 0x6572, 0x66a0, 0x67af, 0x69c1, 0x6cbd, 0x75fc, 0x7690, 0x777e, 0x7a3f, 0x7f94, 0x8003, 0x80a1, 0x818f, 0x82e6, 0x82fd, 0x83f0, 0x85c1, 0x8831, 0x88b4, 0x8aa5, 0xf903, 0x8f9c, 0x932e, 0x96c7, 0x9867, 0x9ad8, 0x9f13, 0x54ed, 0x659b, 0x66f2, 0x688f, 0x7a40, 0x8c37, 0x9d60, 0x56f0, 0x5764, 0x5d11, 0x6606, 0x68b1, 0x68cd, 0x6efe, 0x7428, 0x889e, 0x9be4, 0x6c68, 0xf904, 0x9aa8, 0x4f9b, 0x516c, 0x5171, 0x529f, 0x5b54, 0x5de5, 0x6050, 0x606d, 0x62f1, 0x63a7, 0x653b, 0x73d9, 0x7a7a, 0x86a3, 0x8ca2, 0x978f, 0x4e32, 0x5be1, 0x6208, 0x679c, 0x74dc, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcea0[ 96 ] = { 0xfffd, 0x79d1, 0x83d3, 0x8a87, 0x8ab2, 0x8de8, 0x904e, 0x934b, 0x9846, 0x5ed3, 0x69e8, 0x85ff, 0x90ed, 0xf905, 0x51a0, 0x5b98, 0x5bec, 0x6163, 0x68fa, 0x6b3e, 0x704c, 0x742f, 0x74d8, 0x7ba1, 0x7f50, 0x83c5, 0x89c0, 0x8cab, 0x95dc, 0x9928, 0x522e, 0x605d, 0x62ec, 0x9002, 0x4f8a, 0x5149, 0x5321, 0x58d9, 0x5ee3, 0x66e0, 0x6d38, 0x709a, 0x72c2, 0x73d6, 0x7b50, 0x80f1, 0x945b, 0x5366, 0x639b, 0x7f6b, 0x4e56, 0x5080, 0x584a, 0x58de, 0x602a, 0x6127, 0x62d0, 0x69d0, 0x9b41, 0x5b8f, 0x7d18, 0x80b1, 0x8f5f, 0x4ea4, 0x50d1, 0x54ac, 0x55ac, 0x5b0c, 0x5da0, 0x5de7, 0x652a, 0x654e, 0x6821, 0x6a4b, 0x72e1, 0x768e, 0x77ef, 0x7d5e, 0x7ff9, 0x81a0, 0x854e, 0x86df, 0x8f03, 0x8f4e, 0x90ca, 0x9903, 0x9a55, 0x9bab, 0x4e18, 0x4e45, 0x4e5d, 0x4ec7, 0x4ff1, 0x5177, 0x52fe, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcfa0[ 96 ] = { 0xfffd, 0x5340, 0x53e3, 0x53e5, 0x548e, 0x5614, 0x5775, 0x57a2, 0x5bc7, 0x5d87, 0x5ed0, 0x61fc, 0x62d8, 0x6551, 0x67b8, 0x67e9, 0x69cb, 0x6b50, 0x6bc6, 0x6bec, 0x6c42, 0x6e9d, 0x7078, 0x72d7, 0x7396, 0x7403, 0x77bf, 0x77e9, 0x7a76, 0x7d7f, 0x8009, 0x81fc, 0x8205, 0x820a, 0x82df, 0x8862, 0x8b33, 0x8cfc, 0x8ec0, 0x9011, 0x90b1, 0x9264, 0x92b6, 0x99d2, 0x9a45, 0x9ce9, 0x9dd7, 0x9f9c, 0x570b, 0x5c40, 0x83ca, 0x97a0, 0x97ab, 0x9eb4, 0x541b, 0x7a98, 0x7fa4, 0x88d9, 0x8ecd, 0x90e1, 0x5800, 0x5c48, 0x6398, 0x7a9f, 0x5bae, 0x5f13, 0x7a79, 0x7aae, 0x828e, 0x8eac, 0x5026, 0x5238, 0x52f8, 0x5377, 0x5708, 0x62f3, 0x6372, 0x6b0a, 0x6dc3, 0x7737, 0x53a5, 0x7357, 0x8568, 0x8e76, 0x95d5, 0x673a, 0x6ac3, 0x6f70, 0x8a6d, 0x8ecc, 0x994b, 0xf906, 0x6677, 0x6b78, 0x8cb4, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd0a0[ 96 ] = { 0xfffd, 0x9b3c, 0xf907, 0x53eb, 0x572d, 0x594e, 0x63c6, 0x69fb, 0x73ea, 0x7845, 0x7aba, 0x7ac5, 0x7cfe, 0x8475, 0x898f, 0x8d73, 0x9035, 0x95a8, 0x52fb, 0x5747, 0x7547, 0x7b60, 0x83cc, 0x921e, 0xf908, 0x6a58, 0x514b, 0x524b, 0x5287, 0x621f, 0x68d8, 0x6975, 0x9699, 0x50c5, 0x52a4, 0x52e4, 0x61c3, 0x65a4, 0x6839, 0x69ff, 0x747e, 0x7b4b, 0x82b9, 0x83eb, 0x89b2, 0x8b39, 0x8fd1, 0x9949, 0xf909, 0x4eca, 0x5997, 0x64d2, 0x6611, 0x6a8e, 0x7434, 0x7981, 0x79bd, 0x82a9, 0x887e, 0x887f, 0x895f, 0xf90a, 0x9326, 0x4f0b, 0x53ca, 0x6025, 0x6271, 0x6c72, 0x7d1a, 0x7d66, 0x4e98, 0x5162, 0x77dc, 0x80af, 0x4f01, 0x4f0e, 0x5176, 0x5180, 0x55dc, 0x5668, 0x573b, 0x57fa, 0x57fc, 0x5914, 0x5947, 0x5993, 0x5bc4, 0x5c90, 0x5d0e, 0x5df1, 0x5e7e, 0x5fcc, 0x6280, 0x65d7, 0x65e3, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd1a0[ 96 ] = { 0xfffd, 0x671e, 0x671f, 0x675e, 0x68cb, 0x68c4, 0x6a5f, 0x6b3a, 0x6c23, 0x6c7d, 0x6c82, 0x6dc7, 0x7398, 0x7426, 0x742a, 0x7482, 0x74a3, 0x7578, 0x757f, 0x7881, 0x78ef, 0x7941, 0x7947, 0x7948, 0x797a, 0x7b95, 0x7d00, 0x7dba, 0x7f88, 0x8006, 0x802d, 0x808c, 0x8a18, 0x8b4f, 0x8c48, 0x8d77, 0x9321, 0x9324, 0x98e2, 0x9951, 0x9a0e, 0x9a0f, 0x9a65, 0x9e92, 0x7dca, 0x4f76, 0x5409, 0x62ee, 0x6854, 0x91d1, 0x55ab, 0x513a, 0xf90b, 0xf90c, 0x5a1c, 0x61e6, 0xf90d, 0x62cf, 0x62ff, 0xf90e, 0xf90f, 0xf910, 0xf911, 0xf912, 0xf913, 0x90a3, 0xf914, 0xf915, 0xf916, 0xf917, 0xf918, 0x8afe, 0xf919, 0xf91a, 0xf91b, 0xf91c, 0x6696, 0xf91d, 0x7156, 0xf91e, 0xf91f, 0x96e3, 0xf920, 0x634f, 0x637a, 0x5357, 0xf921, 0x678f, 0x6960, 0x6e73, 0xf922, 0x7537, 0xf923, 0xf924, 0xf925, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd2a0[ 96 ] = { 0xfffd, 0x7d0d, 0xf926, 0xf927, 0x8872, 0x56ca, 0x5a18, 0xf928, 0xf929, 0xf92a, 0xf92b, 0xf92c, 0x4e43, 0xf92d, 0x5167, 0x5948, 0x67f0, 0x8010, 0xf92e, 0x5973, 0x5e74, 0x649a, 0x79ca, 0x5ff5, 0x606c, 0x62c8, 0x637b, 0x5be7, 0x5bd7, 0x52aa, 0xf92f, 0x5974, 0x5f29, 0x6012, 0xf930, 0xf931, 0xf932, 0x7459, 0xf933, 0xf934, 0xf935, 0xf936, 0xf937, 0xf938, 0x99d1, 0xf939, 0xf93a, 0xf93b, 0xf93c, 0xf93d, 0xf93e, 0xf93f, 0xf940, 0xf941, 0xf942, 0xf943, 0x6fc3, 0xf944, 0xf945, 0x81bf, 0x8fb2, 0x60f1, 0xf946, 0xf947, 0x8166, 0xf948, 0xf949, 0x5c3f, 0xf94a, 0xf94b, 0xf94c, 0xf94d, 0xf94e, 0xf94f, 0xf950, 0xf951, 0x5ae9, 0x8a25, 0x677b, 0x7d10, 0xf952, 0xf953, 0xf954, 0xf955, 0xf956, 0xf957, 0x80fd, 0xf958, 0xf959, 0x5c3c, 0x6ce5, 0x533f, 0x6eba, 0x591a, 0x8336, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd3a0[ 96 ] = { 0xfffd, 0x4e39, 0x4eb6, 0x4f46, 0x55ae, 0x5718, 0x58c7, 0x5f56, 0x65b7, 0x65e6, 0x6a80, 0x6bb5, 0x6e4d, 0x77ed, 0x7aef, 0x7c1e, 0x7dde, 0x86cb, 0x8892, 0x9132, 0x935b, 0x64bb, 0x6fbe, 0x737a, 0x75b8, 0x9054, 0x5556, 0x574d, 0x61ba, 0x64d4, 0x66c7, 0x6de1, 0x6e5b, 0x6f6d, 0x6fb9, 0x75f0, 0x8043, 0x81bd, 0x8541, 0x8983, 0x8ac7, 0x8b5a, 0x931f, 0x6c93, 0x7553, 0x7b54, 0x8e0f, 0x905d, 0x5510, 0x5802, 0x5858, 0x5e62, 0x6207, 0x649e, 0x68e0, 0x7576, 0x7cd6, 0x87b3, 0x9ee8, 0x4ee3, 0x5788, 0x576e, 0x5927, 0x5c0d, 0x5cb1, 0x5e36, 0x5f85, 0x6234, 0x64e1, 0x73b3, 0x81fa, 0x888b, 0x8cb8, 0x968a, 0x9edb, 0x5b85, 0x5fb7, 0x60b3, 0x5012, 0x5200, 0x5230, 0x5716, 0x5835, 0x5857, 0x5c0e, 0x5c60, 0x5cf6, 0x5d8b, 0x5ea6, 0x5f92, 0x60bc, 0x6311, 0x6389, 0x6417, 0x6843, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd4a0[ 96 ] = { 0xfffd, 0x68f9, 0x6ac2, 0x6dd8, 0x6e21, 0x6ed4, 0x6fe4, 0x71fe, 0x76dc, 0x7779, 0x79b1, 0x7a3b, 0x8404, 0x89a9, 0x8ced, 0x8df3, 0x8e48, 0x9003, 0x9014, 0x9053, 0x90fd, 0x934d, 0x9676, 0x97dc, 0x6bd2, 0x7006, 0x7258, 0x72a2, 0x7368, 0x7763, 0x79bf, 0x7be4, 0x7e9b, 0x8b80, 0x58a9, 0x60c7, 0x6566, 0x65fd, 0x66be, 0x6c8c, 0x711e, 0x71c9, 0x8c5a, 0x9813, 0x4e6d, 0x7a81, 0x4edd, 0x51ac, 0x51cd, 0x52d5, 0x540c, 0x61a7, 0x6771, 0x6850, 0x68df, 0x6d1e, 0x6f7c, 0x75bc, 0x77b3, 0x7ae5, 0x80f4, 0x8463, 0x9285, 0x515c, 0x6597, 0x675c, 0x6793, 0x75d8, 0x7ac7, 0x8373, 0xf95a, 0x8c46, 0x9017, 0x982d, 0x5c6f, 0x81c0, 0x829a, 0x9041, 0x906f, 0x920d, 0x5f97, 0x5d9d, 0x6a59, 0x71c8, 0x767b, 0x7b49, 0x85e4, 0x8b04, 0x9127, 0x9a30, 0x5587, 0x61f6, 0xf95b, 0x7669, 0x7f85, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd5a0[ 96 ] = { 0xfffd, 0x863f, 0x87ba, 0x88f8, 0x908f, 0xf95c, 0x6d1b, 0x70d9, 0x73de, 0x7d61, 0x843d, 0xf95d, 0x916a, 0x99f1, 0xf95e, 0x4e82, 0x5375, 0x6b04, 0x6b12, 0x703e, 0x721b, 0x862d, 0x9e1e, 0x524c, 0x8fa3, 0x5d50, 0x64e5, 0x652c, 0x6b16, 0x6feb, 0x7c43, 0x7e9c, 0x85cd, 0x8964, 0x89bd, 0x62c9, 0x81d8, 0x881f, 0x5eca, 0x6717, 0x6d6a, 0x72fc, 0x7405, 0x746f, 0x8782, 0x90de, 0x4f86, 0x5d0d, 0x5fa0, 0x840a, 0x51b7, 0x63a0, 0x7565, 0x4eae, 0x5006, 0x5169, 0x51c9, 0x6881, 0x6a11, 0x7cae, 0x7cb1, 0x7ce7, 0x826f, 0x8ad2, 0x8f1b, 0x91cf, 0x4fb6, 0x5137, 0x52f5, 0x5442, 0x5eec, 0x616e, 0x623e, 0x65c5, 0x6ada, 0x6ffe, 0x792a, 0x85dc, 0x8823, 0x95ad, 0x9a62, 0x9a6a, 0x9e97, 0x9ece, 0x529b, 0x66c6, 0x6b77, 0x701d, 0x792b, 0x8f62, 0x9742, 0x6190, 0x6200, 0x6523, 0x6f23, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd6a0[ 96 ] = { 0xfffd, 0x7149, 0x7489, 0x7df4, 0x806f, 0x84ee, 0x8f26, 0x9023, 0x934a, 0x51bd, 0x5217, 0x52a3, 0x6d0c, 0x70c8, 0x88c2, 0x5ec9, 0x6582, 0x6bae, 0x6fc2, 0x7c3e, 0x7375, 0x4ee4, 0x4f36, 0x56f9, 0xf95f, 0x5cba, 0x5dba, 0x601c, 0x73b2, 0x7b2d, 0x7f9a, 0x7fce, 0x8046, 0x901e, 0x9234, 0x96f6, 0x9748, 0x9818, 0x9f61, 0x4f8b, 0x6fa7, 0x79ae, 0x91b4, 0x96b7, 0x52de, 0xf960, 0x6488, 0x64c4, 0x6ad3, 0x6f5e, 0x7018, 0x7210, 0x76e7, 0x8001, 0x8606, 0x865c, 0x8def, 0x8f05, 0x9732, 0x9b6f, 0x9dfa, 0x9e75, 0x788c, 0x797f, 0x7da0, 0x83c9, 0x9304, 0x9e7f, 0x9e93, 0x8ad6, 0x58df, 0x5f04, 0x6727, 0x7027, 0x74cf, 0x7c60, 0x807e, 0x5121, 0x7028, 0x7262, 0x78ca, 0x8cc2, 0x8cda, 0x8cf4, 0x96f7, 0x4e86, 0x50da, 0x5bee, 0x5ed6, 0x6599, 0x71ce, 0x7642, 0x77ad, 0x804a, 0x84fc, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd7a0[ 96 ] = { 0xfffd, 0x907c, 0x9b27, 0x9f8d, 0x58d8, 0x5a41, 0x5c62, 0x6a13, 0x6dda, 0x6f0f, 0x763b, 0x7d2f, 0x7e37, 0x851e, 0x8938, 0x93e4, 0x964b, 0x5289, 0x65d2, 0x67f3, 0x69b4, 0x6d41, 0x6e9c, 0x700f, 0x7409, 0x7460, 0x7559, 0x7624, 0x786b, 0x8b2c, 0x985e, 0x516d, 0x622e, 0x9678, 0x4f96, 0x502b, 0x5d19, 0x6dea, 0x7db8, 0x8f2a, 0x5f8b, 0x6144, 0x6817, 0xf961, 0x9686, 0x52d2, 0x808b, 0x51dc, 0x51cc, 0x695e, 0x7a1c, 0x7dbe, 0x83f1, 0x9675, 0x4fda, 0x5229, 0x5398, 0x540f, 0x550e, 0x5c65, 0x60a7, 0x674e, 0x68a8, 0x6d6c, 0x7281, 0x72f8, 0x7406, 0x7483, 0xf962, 0x75e2, 0x7c6c, 0x7f79, 0x7fb8, 0x8389, 0x88cf, 0x88e1, 0x91cc, 0x91d0, 0x96e2, 0x9bc9, 0x541d, 0x6f7e, 0x71d0, 0x7498, 0x85fa, 0x8eaa, 0x96a3, 0x9c57, 0x9e9f, 0x6797, 0x6dcb, 0x7433, 0x81e8, 0x9716, 0x782c, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd8a0[ 96 ] = { 0xfffd, 0x7acb, 0x7b20, 0x7c92, 0x6469, 0x746a, 0x75f2, 0x78bc, 0x78e8, 0x99ac, 0x9b54, 0x9ebb, 0x5bde, 0x5e55, 0x6f20, 0x819c, 0x83ab, 0x9088, 0x4e07, 0x534d, 0x5a29, 0x5dd2, 0x5f4e, 0x6162, 0x633d, 0x6669, 0x66fc, 0x6eff, 0x6f2b, 0x7063, 0x779e, 0x842c, 0x8513, 0x883b, 0x8f13, 0x9945, 0x9c3b, 0x551c, 0x62b9, 0x672b, 0x6cab, 0x8309, 0x896a, 0x977a, 0x4ea1, 0x5984, 0x5fd8, 0x5fd9, 0x671b, 0x7db2, 0x7f54, 0x8292, 0x832b, 0x83bd, 0x8f1e, 0x9099, 0x57cb, 0x59b9, 0x5a92, 0x5bd0, 0x6627, 0x679a, 0x6885, 0x6bcf, 0x7164, 0x7f75, 0x8cb7, 0x8ce3, 0x9081, 0x9b45, 0x8108, 0x8c8a, 0x964c, 0x9a40, 0x9ea5, 0x5b5f, 0x6c13, 0x731b, 0x76f2, 0x76df, 0x840c, 0x51aa, 0x8993, 0x514d, 0x5195, 0x52c9, 0x68c9, 0x6c94, 0x7704, 0x7720, 0x7dbf, 0x7dec, 0x9762, 0x9eb5, 0x6ec5, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd9a0[ 96 ] = { 0xfffd, 0x8511, 0x51a5, 0x540d, 0x547d, 0x660e, 0x669d, 0x6927, 0x6e9f, 0x76bf, 0x7791, 0x8317, 0x84c2, 0x879f, 0x9169, 0x9298, 0x9cf4, 0x8882, 0x4fae, 0x5192, 0x52df, 0x59c6, 0x5e3d, 0x6155, 0x6478, 0x6479, 0x66ae, 0x67d0, 0x6a21, 0x6bcd, 0x6bdb, 0x725f, 0x7261, 0x7441, 0x7738, 0x77db, 0x8017, 0x82bc, 0x8305, 0x8b00, 0x8b28, 0x8c8c, 0x6728, 0x6c90, 0x7267, 0x76ee, 0x7766, 0x7a46, 0x9da9, 0x6b7f, 0x6c92, 0x5922, 0x6726, 0x8499, 0x536f, 0x5893, 0x5999, 0x5edf, 0x63cf, 0x6634, 0x6773, 0x6e3a, 0x732b, 0x7ad7, 0x82d7, 0x9328, 0x52d9, 0x5deb, 0x61ae, 0x61cb, 0x620a, 0x62c7, 0x64ab, 0x65e0, 0x6959, 0x6b66, 0x6bcb, 0x7121, 0x73f7, 0x755d, 0x7e46, 0x821e, 0x8302, 0x856a, 0x8aa3, 0x8cbf, 0x9727, 0x9d61, 0x58a8, 0x9ed8, 0x5011, 0x520e, 0x543b, 0x554f, 0x6587, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdaa0[ 96 ] = { 0xfffd, 0x6c76, 0x7d0a, 0x7d0b, 0x805e, 0x868a, 0x9580, 0x96ef, 0x52ff, 0x6c95, 0x7269, 0x5473, 0x5a9a, 0x5c3e, 0x5d4b, 0x5f4c, 0x5fae, 0x672a, 0x68b6, 0x6963, 0x6e3c, 0x6e44, 0x7709, 0x7c73, 0x7f8e, 0x8587, 0x8b0e, 0x8ff7, 0x9761, 0x9ef4, 0x5cb7, 0x60b6, 0x610d, 0x61ab, 0x654f, 0x65fb, 0x65fc, 0x6c11, 0x6cef, 0x739f, 0x73c9, 0x7de1, 0x9594, 0x5bc6, 0x871c, 0x8b10, 0x525d, 0x535a, 0x62cd, 0x640f, 0x64b2, 0x6734, 0x6a38, 0x6cca, 0x73c0, 0x749e, 0x7b94, 0x7c95, 0x7e1b, 0x818a, 0x8236, 0x8584, 0x8feb, 0x96f9, 0x99c1, 0x4f34, 0x534a, 0x53cd, 0x53db, 0x62cc, 0x642c, 0x6500, 0x6591, 0x69c3, 0x6cee, 0x6f58, 0x73ed, 0x7554, 0x7622, 0x76e4, 0x76fc, 0x78d0, 0x78fb, 0x792c, 0x7d46, 0x822c, 0x87e0, 0x8fd4, 0x9812, 0x98ef, 0x52c3, 0x62d4, 0x64a5, 0x6e24, 0x6f51, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdba0[ 96 ] = { 0xfffd, 0x767c, 0x8dcb, 0x91b1, 0x9262, 0x9aee, 0x9b43, 0x5023, 0x508d, 0x574a, 0x59a8, 0x5c28, 0x5e47, 0x5f77, 0x623f, 0x653e, 0x65b9, 0x65c1, 0x6609, 0x678b, 0x699c, 0x6ec2, 0x78c5, 0x7d21, 0x80aa, 0x8180, 0x822b, 0x82b3, 0x84a1, 0x868c, 0x8a2a, 0x8b17, 0x90a6, 0x9632, 0x9f90, 0x500d, 0x4ff3, 0xf963, 0x57f9, 0x5f98, 0x62dc, 0x6392, 0x676f, 0x6e43, 0x7119, 0x76c3, 0x80cc, 0x80da, 0x88f4, 0x88f5, 0x8919, 0x8ce0, 0x8f29, 0x914d, 0x966a, 0x4f2f, 0x4f70, 0x5e1b, 0x67cf, 0x6822, 0x767d, 0x767e, 0x9b44, 0x5e61, 0x6a0a, 0x7169, 0x71d4, 0x756a, 0xf964, 0x7e41, 0x8543, 0x85e9, 0x98dc, 0x4f10, 0x7b4f, 0x7f70, 0x95a5, 0x51e1, 0x5e06, 0x68b5, 0x6c3e, 0x6c4e, 0x6cdb, 0x72af, 0x7bc4, 0x8303, 0x6cd5, 0x743a, 0x50fb, 0x5288, 0x58c1, 0x64d8, 0x6a97, 0x74a7, 0x7656, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdca0[ 96 ] = { 0xfffd, 0x78a7, 0x8617, 0x95e2, 0x9739, 0xf965, 0x535e, 0x5f01, 0x8b8a, 0x8fa8, 0x8faf, 0x908a, 0x5225, 0x77a5, 0x9c49, 0x9f08, 0x4e19, 0x5002, 0x5175, 0x5c5b, 0x5e77, 0x661e, 0x663a, 0x67c4, 0x68c5, 0x70b3, 0x7501, 0x75c5, 0x79c9, 0x7add, 0x8f27, 0x9920, 0x9a08, 0x4fdd, 0x5821, 0x5831, 0x5bf6, 0x666e, 0x6b65, 0x6d11, 0x6e7a, 0x6f7d, 0x73e4, 0x752b, 0x83e9, 0x88dc, 0x8913, 0x8b5c, 0x8f14, 0x4f0f, 0x50d5, 0x5310, 0x535c, 0x5b93, 0x5fa9, 0x670d, 0x798f, 0x8179, 0x832f, 0x8514, 0x8907, 0x8986, 0x8f39, 0x8f3b, 0x99a5, 0x9c12, 0x672c, 0x4e76, 0x4ff8, 0x5949, 0x5c01, 0x5cef, 0x5cf0, 0x6367, 0x68d2, 0x70fd, 0x71a2, 0x742b, 0x7e2b, 0x84ec, 0x8702, 0x9022, 0x92d2, 0x9cf3, 0x4e0d, 0x4ed8, 0x4fef, 0x5085, 0x5256, 0x526f, 0x5426, 0x5490, 0x57e0, 0x592b, 0x5a66, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdda0[ 96 ] = { 0xfffd, 0x5b5a, 0x5b75, 0x5bcc, 0x5e9c, 0xf966, 0x6276, 0x6577, 0x65a7, 0x6d6e, 0x6ea5, 0x7236, 0x7b26, 0x7c3f, 0x7f36, 0x8150, 0x8151, 0x819a, 0x8240, 0x8299, 0x83a9, 0x8a03, 0x8ca0, 0x8ce6, 0x8cfb, 0x8d74, 0x8dba, 0x90e8, 0x91dc, 0x961c, 0x9644, 0x99d9, 0x9ce7, 0x5317, 0x5206, 0x5429, 0x5674, 0x58b3, 0x5954, 0x596e, 0x5fff, 0x61a4, 0x626e, 0x6610, 0x6c7e, 0x711a, 0x76c6, 0x7c89, 0x7cde, 0x7d1b, 0x82ac, 0x8cc1, 0x96f0, 0xf967, 0x4f5b, 0x5f17, 0x5f7f, 0x62c2, 0x5d29, 0x670b, 0x68da, 0x787c, 0x7e43, 0x9d6c, 0x4e15, 0x5099, 0x5315, 0x532a, 0x5351, 0x5983, 0x5a62, 0x5e87, 0x60b2, 0x618a, 0x6249, 0x6279, 0x6590, 0x6787, 0x69a7, 0x6bd4, 0x6bd6, 0x6bd7, 0x6bd8, 0x6cb8, 0xf968, 0x7435, 0x75fa, 0x7812, 0x7891, 0x79d5, 0x79d8, 0x7c83, 0x7dcb, 0x7fe1, 0x80a5, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdea0[ 96 ] = { 0xfffd, 0x813e, 0x81c2, 0x83f2, 0x871a, 0x88e8, 0x8ab9, 0x8b6c, 0x8cbb, 0x9119, 0x975e, 0x98db, 0x9f3b, 0x56ac, 0x5b2a, 0x5f6c, 0x658c, 0x6ab3, 0x6baf, 0x6d5c, 0x6ff1, 0x7015, 0x725d, 0x73ad, 0x8ca7, 0x8cd3, 0x983b, 0x6191, 0x6c37, 0x8058, 0x9a01, 0x4e4d, 0x4e8b, 0x4e9b, 0x4ed5, 0x4f3a, 0x4f3c, 0x4f7f, 0x4fdf, 0x50ff, 0x53f2, 0x53f8, 0x5506, 0x55e3, 0x56db, 0x58eb, 0x5962, 0x5a11, 0x5beb, 0x5bfa, 0x5c04, 0x5df3, 0x5e2b, 0x5f99, 0x601d, 0x6368, 0x659c, 0x65af, 0x67f6, 0x67fb, 0x68ad, 0x6b7b, 0x6c99, 0x6cd7, 0x6e23, 0x7009, 0x7345, 0x7802, 0x793e, 0x7940, 0x7960, 0x79c1, 0x7be9, 0x7d17, 0x7d72, 0x8086, 0x820d, 0x838e, 0x84d1, 0x86c7, 0x88df, 0x8a50, 0x8a5e, 0x8b1d, 0x8cdc, 0x8d66, 0x8fad, 0x90aa, 0x98fc, 0x99df, 0x9e9d, 0x524a, 0xf969, 0x6714, 0xf96a, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdfa0[ 96 ] = { 0xfffd, 0x5098, 0x522a, 0x5c71, 0x6563, 0x6c55, 0x73ca, 0x7523, 0x759d, 0x7b97, 0x849c, 0x9178, 0x9730, 0x4e77, 0x6492, 0x6bba, 0x715e, 0x85a9, 0x4e09, 0xf96b, 0x6749, 0x68ee, 0x6e17, 0x829f, 0x8518, 0x886b, 0x63f7, 0x6f81, 0x9212, 0x98af, 0x4e0a, 0x50b7, 0x50cf, 0x511f, 0x5546, 0x55aa, 0x5617, 0x5b40, 0x5c19, 0x5ce0, 0x5e38, 0x5e8a, 0x5ea0, 0x5ec2, 0x60f3, 0x6851, 0x6a61, 0x6e58, 0x723d, 0x7240, 0x72c0, 0x76f8, 0x7965, 0x7bb1, 0x7fd4, 0x88f3, 0x89f4, 0x8a73, 0x8c61, 0x8cde, 0x971c, 0x585e, 0x74bd, 0x8cfd, 0x55c7, 0xf96c, 0x7a61, 0x7d22, 0x8272, 0x7272, 0x751f, 0x7525, 0xf96d, 0x7b19, 0x5885, 0x58fb, 0x5dbc, 0x5e8f, 0x5eb6, 0x5f90, 0x6055, 0x6292, 0x637f, 0x654d, 0x6691, 0x66d9, 0x66f8, 0x6816, 0x68f2, 0x7280, 0x745e, 0x7b6e, 0x7d6e, 0x7dd6, 0x7f72, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe0a0[ 96 ] = { 0xfffd, 0x80e5, 0x8212, 0x85af, 0x897f, 0x8a93, 0x901d, 0x92e4, 0x9ecd, 0x9f20, 0x5915, 0x596d, 0x5e2d, 0x60dc, 0x6614, 0x6673, 0x6790, 0x6c50, 0x6dc5, 0x6f5f, 0x77f3, 0x78a9, 0x84c6, 0x91cb, 0x932b, 0x4ed9, 0x50ca, 0x5148, 0x5584, 0x5b0b, 0x5ba3, 0x6247, 0x657e, 0x65cb, 0x6e32, 0x717d, 0x7401, 0x7444, 0x7487, 0x74bf, 0x766c, 0x79aa, 0x7dda, 0x7e55, 0x7fa8, 0x817a, 0x81b3, 0x8239, 0x861a, 0x87ec, 0x8a75, 0x8de3, 0x9078, 0x9291, 0x9425, 0x994d, 0x9bae, 0x5368, 0x5c51, 0x6954, 0x6cc4, 0x6d29, 0x6e2b, 0x820c, 0x859b, 0x893b, 0x8a2d, 0x8aaa, 0x96ea, 0x9f67, 0x5261, 0x66b9, 0x6bb2, 0x7e96, 0x87fe, 0x8d0d, 0x9583, 0x965d, 0x651d, 0x6d89, 0x71ee, 0xf96e, 0x57ce, 0x59d3, 0x5bac, 0x6027, 0x60fa, 0x6210, 0x661f, 0x665f, 0x7329, 0x73f9, 0x76db, 0x7701, 0x7b6c, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe1a0[ 96 ] = { 0xfffd, 0x8056, 0x8072, 0x8165, 0x8aa0, 0x9192, 0x4e16, 0x52e2, 0x6b72, 0x6d17, 0x7a05, 0x7b39, 0x7d30, 0xf96f, 0x8cb0, 0x53ec, 0x562f, 0x5851, 0x5bb5, 0x5c0f, 0x5c11, 0x5de2, 0x6240, 0x6383, 0x6414, 0x662d, 0x68b3, 0x6cbc, 0x6d88, 0x6eaf, 0x701f, 0x70a4, 0x71d2, 0x7526, 0x758f, 0x758e, 0x7619, 0x7b11, 0x7be0, 0x7c2b, 0x7d20, 0x7d39, 0x852c, 0x856d, 0x8607, 0x8a34, 0x900d, 0x9061, 0x90b5, 0x92b7, 0x97f6, 0x9a37, 0x4fd7, 0x5c6c, 0x675f, 0x6d91, 0x7c9f, 0x7e8c, 0x8b16, 0x8d16, 0x901f, 0x5b6b, 0x5dfd, 0x640d, 0x84c0, 0x905c, 0x98e1, 0x7387, 0x5b8b, 0x609a, 0x677e, 0x6dde, 0x8a1f, 0x8aa6, 0x9001, 0x980c, 0x5237, 0xf970, 0x7051, 0x788e, 0x9396, 0x8870, 0x91d7, 0x4fee, 0x53d7, 0x55fd, 0x56da, 0x5782, 0x58fd, 0x5ac2, 0x5b88, 0x5cab, 0x5cc0, 0x5e25, 0x6101, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe2a0[ 96 ] = { 0xfffd, 0x620d, 0x624b, 0x6388, 0x641c, 0x6536, 0x6578, 0x6a39, 0x6b8a, 0x6c34, 0x6d19, 0x6f31, 0x71e7, 0x72e9, 0x7378, 0x7407, 0x74b2, 0x7626, 0x7761, 0x79c0, 0x7a57, 0x7aea, 0x7cb9, 0x7d8f, 0x7dac, 0x7e61, 0x7f9e, 0x8129, 0x8331, 0x8490, 0x84da, 0x85ea, 0x8896, 0x8ab0, 0x8b90, 0x8f38, 0x9042, 0x9083, 0x916c, 0x9296, 0x92b9, 0x968b, 0x96a7, 0x96a8, 0x96d6, 0x9700, 0x9808, 0x9996, 0x9ad3, 0x9b1a, 0x53d4, 0x587e, 0x5919, 0x5b70, 0x5bbf, 0x6dd1, 0x6f5a, 0x719f, 0x7421, 0x74b9, 0x8085, 0x83fd, 0x5de1, 0x5f87, 0x5faa, 0x6042, 0x65ec, 0x6812, 0x696f, 0x6a53, 0x6b89, 0x6d35, 0x6df3, 0x73e3, 0x76fe, 0x77ac, 0x7b4d, 0x7d14, 0x8123, 0x821c, 0x8340, 0x84f4, 0x8563, 0x8a62, 0x8ac4, 0x9187, 0x931e, 0x9806, 0x99b4, 0x620c, 0x8853, 0x8ff0, 0x9265, 0x5d07, 0x5d27, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe3a0[ 96 ] = { 0xfffd, 0x5d69, 0x745f, 0x819d, 0x8768, 0x6fd5, 0x62fe, 0x7fd2, 0x8936, 0x8972, 0x4e1e, 0x4e58, 0x50e7, 0x52dd, 0x5347, 0x627f, 0x6607, 0x7e69, 0x8805, 0x965e, 0x4f8d, 0x5319, 0x5636, 0x59cb, 0x5aa4, 0x5c38, 0x5c4e, 0x5c4d, 0x5e02, 0x5f11, 0x6043, 0x65bd, 0x662f, 0x6642, 0x67be, 0x67f4, 0x731c, 0x77e2, 0x793a, 0x7fc5, 0x8494, 0x84cd, 0x8996, 0x8a66, 0x8a69, 0x8ae1, 0x8c55, 0x8c7a, 0x57f4, 0x5bd4, 0x5f0f, 0x606f, 0x62ed, 0x690d, 0x6b96, 0x6e5c, 0x7184, 0x7bd2, 0x8755, 0x8b58, 0x8efe, 0x98df, 0x98fe, 0x4f38, 0x4f81, 0x4fe1, 0x547b, 0x5a20, 0x5bb8, 0x613c, 0x65b0, 0x6668, 0x71fc, 0x7533, 0x795e, 0x7d33, 0x814e, 0x81e3, 0x8398, 0x85aa, 0x85ce, 0x8703, 0x8a0a, 0x8eab, 0x8f9b, 0xf971, 0x8fc5, 0x5931, 0x5ba4, 0x5be6, 0x6089, 0x5be9, 0x5c0b, 0x5fc3, 0x6c81, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe4a0[ 96 ] = { 0xfffd, 0xf972, 0x6df1, 0x700b, 0x751a, 0x82af, 0x8af6, 0x4ec0, 0x5341, 0xf973, 0x96d9, 0x6c0f, 0x4e9e, 0x4fc4, 0x5152, 0x555e, 0x5a25, 0x5ce8, 0x6211, 0x7259, 0x82bd, 0x83aa, 0x86fe, 0x8859, 0x8a1d, 0x963f, 0x96c5, 0x9913, 0x9d09, 0x9d5d, 0x580a, 0x5cb3, 0x5dbd, 0x5e44, 0x60e1, 0x6115, 0x63e1, 0x6a02, 0x6e25, 0x9102, 0x9354, 0x984e, 0x9c10, 0x9f77, 0x5b89, 0x5cb8, 0x6309, 0x664f, 0x6848, 0x773c, 0x96c1, 0x978d, 0x9854, 0x9b9f, 0x65a1, 0x8b01, 0x8ecb, 0x95bc, 0x5535, 0x5ca9, 0x5dd6, 0x5eb5, 0x6697, 0x764c, 0x83f4, 0x95c7, 0x58d3, 0x62bc, 0x72ce, 0x9d28, 0x4ef0, 0x592e, 0x600f, 0x663b, 0x6b83, 0x79e7, 0x9d26, 0x5393, 0x54c0, 0x57c3, 0x5d16, 0x611b, 0x66d6, 0x6daf, 0x788d, 0x827e, 0x9698, 0x9744, 0x5384, 0x627c, 0x6396, 0x6db2, 0x7e0a, 0x814b, 0x984d, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe5a0[ 96 ] = { 0xfffd, 0x6afb, 0x7f4c, 0x9daf, 0x9e1a, 0x4e5f, 0x503b, 0x51b6, 0x591c, 0x60f9, 0x63f6, 0x6930, 0x723a, 0x8036, 0xf974, 0x91ce, 0x5f31, 0xf975, 0xf976, 0x7d04, 0x82e5, 0x846f, 0x84bb, 0x85e5, 0x8e8d, 0xf977, 0x4f6f, 0xf978, 0xf979, 0x58e4, 0x5b43, 0x6059, 0x63da, 0x6518, 0x656d, 0x6698, 0xf97a, 0x694a, 0x6a23, 0x6d0b, 0x7001, 0x716c, 0x75d2, 0x760d, 0x79b3, 0x7a70, 0xf97b, 0x7f8a, 0xf97c, 0x8944, 0xf97d, 0x8b93, 0x91c0, 0x967d, 0xf97e, 0x990a, 0x5704, 0x5fa1, 0x65bc, 0x6f01, 0x7600, 0x79a6, 0x8a9e, 0x99ad, 0x9b5a, 0x9f6c, 0x5104, 0x61b6, 0x6291, 0x6a8d, 0x81c6, 0x5043, 0x5830, 0x5f66, 0x7109, 0x8a00, 0x8afa, 0x5b7c, 0x8616, 0x4ffa, 0x513c, 0x56b4, 0x5944, 0x63a9, 0x6df9, 0x5daa, 0x696d, 0x5186, 0x4e88, 0x4f59, 0xf97f, 0xf980, 0xf981, 0x5982, 0xf982, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe6a0[ 96 ] = { 0xfffd, 0xf983, 0x6b5f, 0x6c5d, 0xf984, 0x74b5, 0x7916, 0xf985, 0x8207, 0x8245, 0x8339, 0x8f3f, 0x8f5d, 0xf986, 0x9918, 0xf987, 0xf988, 0xf989, 0x4ea6, 0xf98a, 0x57df, 0x5f79, 0x6613, 0xf98b, 0xf98c, 0x75ab, 0x7e79, 0x8b6f, 0xf98d, 0x9006, 0x9a5b, 0x56a5, 0x5827, 0x59f8, 0x5a1f, 0x5bb4, 0xf98e, 0x5ef6, 0xf98f, 0xf990, 0x6350, 0x633b, 0xf991, 0x693d, 0x6c87, 0x6cbf, 0x6d8e, 0x6d93, 0x6df5, 0x6f14, 0xf992, 0x70df, 0x7136, 0x7159, 0xf993, 0x71c3, 0x71d5, 0xf994, 0x784f, 0x786f, 0xf995, 0x7b75, 0x7de3, 0xf996, 0x7e2f, 0xf997, 0x884d, 0x8edf, 0xf998, 0xf999, 0xf99a, 0x925b, 0xf99b, 0x9cf6, 0xf99c, 0xf99d, 0xf99e, 0x6085, 0x6d85, 0xf99f, 0x71b1, 0xf9a0, 0xf9a1, 0x95b1, 0x53ad, 0xf9a2, 0xf9a3, 0xf9a4, 0x67d3, 0xf9a5, 0x708e, 0x7130, 0x7430, 0x8276, 0x82d2, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe7a0[ 96 ] = { 0xfffd, 0xf9a6, 0x95bb, 0x9ae5, 0x9e7d, 0x66c4, 0xf9a7, 0x71c1, 0x8449, 0xf9a8, 0xf9a9, 0x584b, 0xf9aa, 0xf9ab, 0x5db8, 0x5f71, 0xf9ac, 0x6620, 0x668e, 0x6979, 0x69ae, 0x6c38, 0x6cf3, 0x6e36, 0x6f41, 0x6fda, 0x701b, 0x702f, 0x7150, 0x71df, 0x7370, 0xf9ad, 0x745b, 0xf9ae, 0x74d4, 0x76c8, 0x7a4e, 0x7e93, 0xf9af, 0xf9b0, 0x82f1, 0x8a60, 0x8fce, 0xf9b1, 0x9348, 0xf9b2, 0x9719, 0xf9b3, 0xf9b4, 0x4e42, 0x502a, 0xf9b5, 0x5208, 0x53e1, 0x66f3, 0x6c6d, 0x6fca, 0x730a, 0x777f, 0x7a62, 0x82ae, 0x85dd, 0x8602, 0xf9b6, 0x88d4, 0x8a63, 0x8b7d, 0x8c6b, 0xf9b7, 0x92b3, 0xf9b8, 0x9713, 0x9810, 0x4e94, 0x4f0d, 0x4fc9, 0x50b2, 0x5348, 0x543e, 0x5433, 0x55da, 0x5862, 0x58ba, 0x5967, 0x5a1b, 0x5be4, 0x609f, 0xf9b9, 0x61ca, 0x6556, 0x65ff, 0x6664, 0x68a7, 0x6c5a, 0x6fb3, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe8a0[ 96 ] = { 0xfffd, 0x70cf, 0x71ac, 0x7352, 0x7b7d, 0x8708, 0x8aa4, 0x9c32, 0x9f07, 0x5c4b, 0x6c83, 0x7344, 0x7389, 0x923a, 0x6eab, 0x7465, 0x761f, 0x7a69, 0x7e15, 0x860a, 0x5140, 0x58c5, 0x64c1, 0x74ee, 0x7515, 0x7670, 0x7fc1, 0x9095, 0x96cd, 0x9954, 0x6e26, 0x74e6, 0x7aa9, 0x7aaa, 0x81e5, 0x86d9, 0x8778, 0x8a1b, 0x5a49, 0x5b8c, 0x5b9b, 0x68a1, 0x6900, 0x6d63, 0x73a9, 0x7413, 0x742c, 0x7897, 0x7de9, 0x7feb, 0x8118, 0x8155, 0x839e, 0x8c4c, 0x962e, 0x9811, 0x66f0, 0x5f80, 0x65fa, 0x6789, 0x6c6a, 0x738b, 0x502d, 0x5a03, 0x6b6a, 0x77ee, 0x5916, 0x5d6c, 0x5dcd, 0x7325, 0x754f, 0xf9ba, 0xf9bb, 0x50e5, 0x51f9, 0x582f, 0x592d, 0x5996, 0x59da, 0x5be5, 0xf9bc, 0xf9bd, 0x5da2, 0x62d7, 0x6416, 0x6493, 0x64fe, 0xf9be, 0x66dc, 0xf9bf, 0x6a48, 0xf9c0, 0x71ff, 0x7464, 0xf9c1, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe9a0[ 96 ] = { 0xfffd, 0x7a88, 0x7aaf, 0x7e47, 0x7e5e, 0x8000, 0x8170, 0xf9c2, 0x87ef, 0x8981, 0x8b20, 0x9059, 0xf9c3, 0x9080, 0x9952, 0x617e, 0x6b32, 0x6d74, 0x7e1f, 0x8925, 0x8fb1, 0x4fd1, 0x50ad, 0x5197, 0x52c7, 0x57c7, 0x5889, 0x5bb9, 0x5eb8, 0x6142, 0x6995, 0x6d8c, 0x6e67, 0x6eb6, 0x7194, 0x7462, 0x7528, 0x752c, 0x8073, 0x8338, 0x84c9, 0x8e0a, 0x9394, 0x93de, 0xf9c4, 0x4e8e, 0x4f51, 0x5076, 0x512a, 0x53c8, 0x53cb, 0x53f3, 0x5b87, 0x5bd3, 0x5c24, 0x611a, 0x6182, 0x65f4, 0x725b, 0x7397, 0x7440, 0x76c2, 0x7950, 0x7991, 0x79b9, 0x7d06, 0x7fbd, 0x828b, 0x85d5, 0x865e, 0x8fc2, 0x9047, 0x90f5, 0x91ea, 0x9685, 0x96e8, 0x96e9, 0x52d6, 0x5f67, 0x65ed, 0x6631, 0x682f, 0x715c, 0x7a36, 0x90c1, 0x980a, 0x4e91, 0xf9c5, 0x6a52, 0x6b9e, 0x6f90, 0x7189, 0x8018, 0x82b8, 0x8553, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeaa0[ 96 ] = { 0xfffd, 0x904b, 0x9695, 0x96f2, 0x97fb, 0x851a, 0x9b31, 0x4e90, 0x718a, 0x96c4, 0x5143, 0x539f, 0x54e1, 0x5713, 0x5712, 0x57a3, 0x5a9b, 0x5ac4, 0x5bc3, 0x6028, 0x613f, 0x63f4, 0x6c85, 0x6d39, 0x6e72, 0x6e90, 0x7230, 0x733f, 0x7457, 0x82d1, 0x8881, 0x8f45, 0x9060, 0xf9c6, 0x9662, 0x9858, 0x9d1b, 0x6708, 0x8d8a, 0x925e, 0x4f4d, 0x5049, 0x50de, 0x5371, 0x570d, 0x59d4, 0x5a01, 0x5c09, 0x6170, 0x6690, 0x6e2d, 0x7232, 0x744b, 0x7def, 0x80c3, 0x840e, 0x8466, 0x853f, 0x875f, 0x885b, 0x8918, 0x8b02, 0x9055, 0x97cb, 0x9b4f, 0x4e73, 0x4f91, 0x5112, 0x516a, 0xf9c7, 0x552f, 0x55a9, 0x5b7a, 0x5ba5, 0x5e7c, 0x5e7d, 0x5ebe, 0x60a0, 0x60df, 0x6108, 0x6109, 0x63c4, 0x6538, 0x6709, 0xf9c8, 0x67d4, 0x67da, 0xf9c9, 0x6961, 0x6962, 0x6cb9, 0x6d27, 0xf9ca, 0x6e38, 0xf9cb, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeba0[ 96 ] = { 0xfffd, 0x6fe1, 0x7336, 0x7337, 0xf9cc, 0x745c, 0x7531, 0xf9cd, 0x7652, 0xf9ce, 0xf9cf, 0x7dad, 0x81fe, 0x8438, 0x88d5, 0x8a98, 0x8adb, 0x8aed, 0x8e30, 0x8e42, 0x904a, 0x903e, 0x907a, 0x9149, 0x91c9, 0x936e, 0xf9d0, 0xf9d1, 0x5809, 0xf9d2, 0x6bd3, 0x8089, 0x80b2, 0xf9d3, 0xf9d4, 0x5141, 0x596b, 0x5c39, 0xf9d5, 0xf9d6, 0x6f64, 0x73a7, 0x80e4, 0x8d07, 0xf9d7, 0x9217, 0x958f, 0xf9d8, 0xf9d9, 0xf9da, 0xf9db, 0x807f, 0x620e, 0x701c, 0x7d68, 0x878d, 0xf9dc, 0x57a0, 0x6069, 0x6147, 0x6bb7, 0x8abe, 0x9280, 0x96b1, 0x4e59, 0x541f, 0x6deb, 0x852d, 0x9670, 0x97f3, 0x98ee, 0x63d6, 0x6ce3, 0x9091, 0x51dd, 0x61c9, 0x81ba, 0x9df9, 0x4f9d, 0x501a, 0x5100, 0x5b9c, 0x610f, 0x61ff, 0x64ec, 0x6905, 0x6bc5, 0x7591, 0x77e3, 0x7fa9, 0x8264, 0x858f, 0x87fb, 0x8863, 0x8abc, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeca0[ 96 ] = { 0xfffd, 0x8b70, 0x91ab, 0x4e8c, 0x4ee5, 0x4f0a, 0xf9dd, 0xf9de, 0x5937, 0x59e8, 0xf9df, 0x5df2, 0x5f1b, 0x5f5b, 0x6021, 0xf9e0, 0xf9e1, 0xf9e2, 0xf9e3, 0x723e, 0x73e5, 0xf9e4, 0x7570, 0x75cd, 0xf9e5, 0x79fb, 0xf9e6, 0x800c, 0x8033, 0x8084, 0x82e1, 0x8351, 0xf9e7, 0xf9e8, 0x8cbd, 0x8cb3, 0x9087, 0xf9e9, 0xf9ea, 0x98f4, 0x990c, 0xf9eb, 0xf9ec, 0x7037, 0x76ca, 0x7fca, 0x7fcc, 0x7ffc, 0x8b1a, 0x4eba, 0x4ec1, 0x5203, 0x5370, 0xf9ed, 0x54bd, 0x56e0, 0x59fb, 0x5bc5, 0x5f15, 0x5fcd, 0x6e6e, 0xf9ee, 0xf9ef, 0x7d6a, 0x8335, 0xf9f0, 0x8693, 0x8a8d, 0xf9f1, 0x976d, 0x9777, 0xf9f2, 0xf9f3, 0x4e00, 0x4f5a, 0x4f7e, 0x58f9, 0x65e5, 0x6ea2, 0x9038, 0x93b0, 0x99b9, 0x4efb, 0x58ec, 0x598a, 0x59d9, 0x6041, 0xf9f4, 0xf9f5, 0x7a14, 0xf9f6, 0x834f, 0x8cc3, 0x5165, 0x5344, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeda0[ 96 ] = { 0xfffd, 0xf9f7, 0xf9f8, 0xf9f9, 0x4ecd, 0x5269, 0x5b55, 0x82bf, 0x4ed4, 0x523a, 0x54a8, 0x59c9, 0x59ff, 0x5b50, 0x5b57, 0x5b5c, 0x6063, 0x6148, 0x6ecb, 0x7099, 0x716e, 0x7386, 0x74f7, 0x75b5, 0x78c1, 0x7d2b, 0x8005, 0x81ea, 0x8328, 0x8517, 0x85c9, 0x8aee, 0x8cc7, 0x96cc, 0x4f5c, 0x52fa, 0x56bc, 0x65ab, 0x6628, 0x707c, 0x70b8, 0x7235, 0x7dbd, 0x828d, 0x914c, 0x96c0, 0x9d72, 0x5b71, 0x68e7, 0x6b98, 0x6f7a, 0x76de, 0x5c91, 0x66ab, 0x6f5b, 0x7bb4, 0x7c2a, 0x8836, 0x96dc, 0x4e08, 0x4ed7, 0x5320, 0x5834, 0x58bb, 0x58ef, 0x596c, 0x5c07, 0x5e33, 0x5e84, 0x5f35, 0x638c, 0x66b2, 0x6756, 0x6a1f, 0x6aa3, 0x6b0c, 0x6f3f, 0x7246, 0xf9fa, 0x7350, 0x748b, 0x7ae0, 0x7ca7, 0x8178, 0x81df, 0x81e7, 0x838a, 0x846c, 0x8523, 0x8594, 0x85cf, 0x88dd, 0x8d13, 0x91ac, 0x9577, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeea0[ 96 ] = { 0xfffd, 0x969c, 0x518d, 0x54c9, 0x5728, 0x5bb0, 0x624d, 0x6750, 0x683d, 0x6893, 0x6e3d, 0x6ed3, 0x707d, 0x7e21, 0x88c1, 0x8ca1, 0x8f09, 0x9f4b, 0x9f4e, 0x722d, 0x7b8f, 0x8acd, 0x931a, 0x4f47, 0x4f4e, 0x5132, 0x5480, 0x59d0, 0x5e95, 0x62b5, 0x6775, 0x696e, 0x6a17, 0x6cae, 0x6e1a, 0x72d9, 0x732a, 0x75bd, 0x7bb8, 0x7d35, 0x82e7, 0x83f9, 0x8457, 0x85f7, 0x8a5b, 0x8caf, 0x8e87, 0x9019, 0x90b8, 0x96ce, 0x9f5f, 0x52e3, 0x540a, 0x5ae1, 0x5bc2, 0x6458, 0x6575, 0x6ef4, 0x72c4, 0xf9fb, 0x7684, 0x7a4d, 0x7b1b, 0x7c4d, 0x7e3e, 0x7fdf, 0x837b, 0x8b2b, 0x8cca, 0x8d64, 0x8de1, 0x8e5f, 0x8fea, 0x8ff9, 0x9069, 0x93d1, 0x4f43, 0x4f7a, 0x50b3, 0x5168, 0x5178, 0x524d, 0x526a, 0x5861, 0x587c, 0x5960, 0x5c08, 0x5c55, 0x5edb, 0x609b, 0x6230, 0x6813, 0x6bbf, 0x6c08, 0x6fb1, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xefa0[ 96 ] = { 0xfffd, 0x714e, 0x7420, 0x7530, 0x7538, 0x7551, 0x7672, 0x7b4c, 0x7b8b, 0x7bad, 0x7bc6, 0x7e8f, 0x8a6e, 0x8f3e, 0x8f49, 0x923f, 0x9293, 0x9322, 0x942b, 0x96fb, 0x985a, 0x986b, 0x991e, 0x5207, 0x622a, 0x6298, 0x6d59, 0x7664, 0x7aca, 0x7bc0, 0x7d76, 0x5360, 0x5cbe, 0x5e97, 0x6f38, 0x70b9, 0x7c98, 0x9711, 0x9b8e, 0x9ede, 0x63a5, 0x647a, 0x8776, 0x4e01, 0x4e95, 0x4ead, 0x505c, 0x5075, 0x5448, 0x59c3, 0x5b9a, 0x5e40, 0x5ead, 0x5ef7, 0x5f81, 0x60c5, 0x633a, 0x653f, 0x6574, 0x65cc, 0x6676, 0x6678, 0x67fe, 0x6968, 0x6a89, 0x6b63, 0x6c40, 0x6dc0, 0x6de8, 0x6e1f, 0x6e5e, 0x701e, 0x70a1, 0x738e, 0x73fd, 0x753a, 0x775b, 0x7887, 0x798e, 0x7a0b, 0x7a7d, 0x7cbe, 0x7d8e, 0x8247, 0x8a02, 0x8aea, 0x8c9e, 0x912d, 0x914a, 0x91d8, 0x9266, 0x92cc, 0x9320, 0x9706, 0x9756, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf0a0[ 96 ] = { 0xfffd, 0x975c, 0x9802, 0x9f0e, 0x5236, 0x5291, 0x557c, 0x5824, 0x5e1d, 0x5f1f, 0x608c, 0x63d0, 0x68af, 0x6fdf, 0x796d, 0x7b2c, 0x81cd, 0x85ba, 0x88fd, 0x8af8, 0x8e44, 0x918d, 0x9664, 0x969b, 0x973d, 0x984c, 0x9f4a, 0x4fce, 0x5146, 0x51cb, 0x52a9, 0x5632, 0x5f14, 0x5f6b, 0x63aa, 0x64cd, 0x65e9, 0x6641, 0x66fa, 0x66f9, 0x671d, 0x689d, 0x68d7, 0x69fd, 0x6f15, 0x6f6e, 0x7167, 0x71e5, 0x722a, 0x74aa, 0x773a, 0x7956, 0x795a, 0x79df, 0x7a20, 0x7a95, 0x7c97, 0x7cdf, 0x7d44, 0x7e70, 0x8087, 0x85fb, 0x86a4, 0x8a54, 0x8abf, 0x8d99, 0x8e81, 0x9020, 0x906d, 0x91e3, 0x963b, 0x96d5, 0x9ce5, 0x65cf, 0x7c07, 0x8db3, 0x93c3, 0x5b58, 0x5c0a, 0x5352, 0x62d9, 0x731d, 0x5027, 0x5b97, 0x5f9e, 0x60b0, 0x616b, 0x68d5, 0x6dd9, 0x742e, 0x7a2e, 0x7d42, 0x7d9c, 0x7e31, 0x816b, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf1a0[ 96 ] = { 0xfffd, 0x8e2a, 0x8e35, 0x937e, 0x9418, 0x4f50, 0x5750, 0x5de6, 0x5ea7, 0x632b, 0x7f6a, 0x4e3b, 0x4f4f, 0x4f8f, 0x505a, 0x59dd, 0x80c4, 0x546a, 0x5468, 0x55fe, 0x594f, 0x5b99, 0x5dde, 0x5eda, 0x665d, 0x6731, 0x67f1, 0x682a, 0x6ce8, 0x6d32, 0x6e4a, 0x6f8d, 0x70b7, 0x73e0, 0x7587, 0x7c4c, 0x7d02, 0x7d2c, 0x7da2, 0x821f, 0x86db, 0x8a3b, 0x8a85, 0x8d70, 0x8e8a, 0x8f33, 0x9031, 0x914e, 0x9152, 0x9444, 0x99d0, 0x7af9, 0x7ca5, 0x4fca, 0x5101, 0x51c6, 0x57c8, 0x5bef, 0x5cfb, 0x6659, 0x6a3d, 0x6d5a, 0x6e96, 0x6fec, 0x710c, 0x756f, 0x7ae3, 0x8822, 0x9021, 0x9075, 0x96cb, 0x99ff, 0x8301, 0x4e2d, 0x4ef2, 0x8846, 0x91cd, 0x537d, 0x6adb, 0x696b, 0x6c41, 0x847a, 0x589e, 0x618e, 0x66fe, 0x62ef, 0x70dd, 0x7511, 0x75c7, 0x7e52, 0x84b8, 0x8b49, 0x8d08, 0x4e4b, 0x53ea, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf2a0[ 96 ] = { 0xfffd, 0x54ab, 0x5730, 0x5740, 0x5fd7, 0x6301, 0x6307, 0x646f, 0x652f, 0x65e8, 0x667a, 0x679d, 0x67b3, 0x6b62, 0x6c60, 0x6c9a, 0x6f2c, 0x77e5, 0x7825, 0x7949, 0x7957, 0x7d19, 0x80a2, 0x8102, 0x81f3, 0x829d, 0x82b7, 0x8718, 0x8a8c, 0xf9fc, 0x8d04, 0x8dbe, 0x9072, 0x76f4, 0x7a19, 0x7a37, 0x7e54, 0x8077, 0x5507, 0x55d4, 0x5875, 0x632f, 0x6422, 0x6649, 0x664b, 0x686d, 0x699b, 0x6b84, 0x6d25, 0x6eb1, 0x73cd, 0x7468, 0x74a1, 0x755b, 0x75b9, 0x76e1, 0x771e, 0x778b, 0x79e6, 0x7e09, 0x7e1d, 0x81fb, 0x852f, 0x8897, 0x8a3a, 0x8cd1, 0x8eeb, 0x8fb0, 0x9032, 0x93ad, 0x9663, 0x9673, 0x9707, 0x4f84, 0x53f1, 0x59ea, 0x5ac9, 0x5e19, 0x684e, 0x74c6, 0x75be, 0x79e9, 0x7a92, 0x81a3, 0x86ed, 0x8cea, 0x8dcc, 0x8fed, 0x659f, 0x6715, 0xf9fd, 0x57f7, 0x6f57, 0x7ddd, 0x8f2f, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf3a0[ 96 ] = { 0xfffd, 0x93f6, 0x96c6, 0x5fb5, 0x61f2, 0x6f84, 0x4e14, 0x4f98, 0x501f, 0x53c9, 0x55df, 0x5d6f, 0x5dee, 0x6b21, 0x6b64, 0x78cb, 0x7b9a, 0xf9fe, 0x8e49, 0x8eca, 0x906e, 0x6349, 0x643e, 0x7740, 0x7a84, 0x932f, 0x947f, 0x9f6a, 0x64b0, 0x6faf, 0x71e6, 0x74a8, 0x74da, 0x7ac4, 0x7c12, 0x7e82, 0x7cb2, 0x7e98, 0x8b9a, 0x8d0a, 0x947d, 0x9910, 0x994c, 0x5239, 0x5bdf, 0x64e6, 0x672d, 0x7d2e, 0x50ed, 0x53c3, 0x5879, 0x6158, 0x6159, 0x61fa, 0x65ac, 0x7ad9, 0x8b92, 0x8b96, 0x5009, 0x5021, 0x5275, 0x5531, 0x5a3c, 0x5ee0, 0x5f70, 0x6134, 0x655e, 0x660c, 0x6636, 0x66a2, 0x69cd, 0x6ec4, 0x6f32, 0x7316, 0x7621, 0x7a93, 0x8139, 0x8259, 0x83d6, 0x84bc, 0x50b5, 0x57f0, 0x5bc0, 0x5be8, 0x5f69, 0x63a1, 0x7826, 0x7db5, 0x83dc, 0x8521, 0x91c7, 0x91f5, 0x518a, 0x67f5, 0x7b56, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf4a0[ 96 ] = { 0xfffd, 0x8cac, 0x51c4, 0x59bb, 0x60bd, 0x8655, 0x501c, 0xf9ff, 0x5254, 0x5c3a, 0x617d, 0x621a, 0x62d3, 0x64f2, 0x65a5, 0x6ecc, 0x7620, 0x810a, 0x8e60, 0x965f, 0x96bb, 0x4edf, 0x5343, 0x5598, 0x5929, 0x5ddd, 0x64c5, 0x6cc9, 0x6dfa, 0x7394, 0x7a7f, 0x821b, 0x85a6, 0x8ce4, 0x8e10, 0x9077, 0x91e7, 0x95e1, 0x9621, 0x97c6, 0x51f8, 0x54f2, 0x5586, 0x5fb9, 0x64a4, 0x6f88, 0x7db4, 0x8f1f, 0x8f4d, 0x9435, 0x50c9, 0x5c16, 0x6cbe, 0x6dfb, 0x751b, 0x77bb, 0x7c3d, 0x7c64, 0x8a79, 0x8ac2, 0x581e, 0x59be, 0x5e16, 0x6377, 0x7252, 0x758a, 0x776b, 0x8adc, 0x8cbc, 0x8f12, 0x5ef3, 0x6674, 0x6df8, 0x807d, 0x83c1, 0x8acb, 0x9751, 0x9bd6, 0xfa00, 0x5243, 0x66ff, 0x6d95, 0x6eef, 0x7de0, 0x8ae6, 0x902e, 0x905e, 0x9ad4, 0x521d, 0x527f, 0x54e8, 0x6194, 0x6284, 0x62db, 0x68a2, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf5a0[ 96 ] = { 0xfffd, 0x6912, 0x695a, 0x6a35, 0x7092, 0x7126, 0x785d, 0x7901, 0x790e, 0x79d2, 0x7a0d, 0x8096, 0x8278, 0x82d5, 0x8349, 0x8549, 0x8c82, 0x8d85, 0x9162, 0x918b, 0x91ae, 0x4fc3, 0x56d1, 0x71ed, 0x77d7, 0x8700, 0x89f8, 0x5bf8, 0x5fd6, 0x6751, 0x90a8, 0x53e2, 0x585a, 0x5bf5, 0x60a4, 0x6181, 0x6460, 0x7e3d, 0x8070, 0x8525, 0x9283, 0x64ae, 0x50ac, 0x5d14, 0x6700, 0x589c, 0x62bd, 0x63a8, 0x690e, 0x6978, 0x6a1e, 0x6e6b, 0x76ba, 0x79cb, 0x82bb, 0x8429, 0x8acf, 0x8da8, 0x8ffd, 0x9112, 0x914b, 0x919c, 0x9310, 0x9318, 0x939a, 0x96db, 0x9a36, 0x9c0d, 0x4e11, 0x755c, 0x795d, 0x7afa, 0x7b51, 0x7bc9, 0x7e2e, 0x84c4, 0x8e59, 0x8e74, 0x8ef8, 0x9010, 0x6625, 0x693f, 0x7443, 0x51fa, 0x672e, 0x9edc, 0x5145, 0x5fe0, 0x6c96, 0x87f2, 0x885d, 0x8877, 0x60b4, 0x81b5, 0x8403, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf6a0[ 96 ] = { 0xfffd, 0x8d05, 0x53d6, 0x5439, 0x5634, 0x5a36, 0x5c31, 0x708a, 0x7fe0, 0x805a, 0x8106, 0x81ed, 0x8da3, 0x9189, 0x9a5f, 0x9df2, 0x5074, 0x4ec4, 0x53a0, 0x60fb, 0x6e2c, 0x5c64, 0x4f88, 0x5024, 0x55e4, 0x5cd9, 0x5e5f, 0x6065, 0x6894, 0x6cbb, 0x6dc4, 0x71be, 0x75d4, 0x75f4, 0x7661, 0x7a1a, 0x7a49, 0x7dc7, 0x7dfb, 0x7f6e, 0x81f4, 0x86a9, 0x8f1c, 0x96c9, 0x99b3, 0x9f52, 0x5247, 0x52c5, 0x98ed, 0x89aa, 0x4e03, 0x67d2, 0x6f06, 0x4fb5, 0x5be2, 0x6795, 0x6c88, 0x6d78, 0x741b, 0x7827, 0x91dd, 0x937c, 0x87c4, 0x79e4, 0x7a31, 0x5feb, 0x4ed6, 0x54a4, 0x553e, 0x58ae, 0x59a5, 0x60f0, 0x6253, 0x62d6, 0x6736, 0x6955, 0x8235, 0x9640, 0x99b1, 0x99dd, 0x502c, 0x5353, 0x5544, 0x577c, 0xfa01, 0x6258, 0xfa02, 0x64e2, 0x666b, 0x67dd, 0x6fc1, 0x6fef, 0x7422, 0x7438, 0x8a17, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf7a0[ 96 ] = { 0xfffd, 0x9438, 0x5451, 0x5606, 0x5766, 0x5f48, 0x619a, 0x6b4e, 0x7058, 0x70ad, 0x7dbb, 0x8a95, 0x596a, 0x812b, 0x63a2, 0x7708, 0x803d, 0x8caa, 0x5854, 0x642d, 0x69bb, 0x5b95, 0x5e11, 0x6e6f, 0xfa03, 0x8569, 0x514c, 0x53f0, 0x592a, 0x6020, 0x614b, 0x6b86, 0x6c70, 0x6cf0, 0x7b1e, 0x80ce, 0x82d4, 0x8dc6, 0x90b0, 0x98b1, 0xfa04, 0x64c7, 0x6fa4, 0x6491, 0x6504, 0x514e, 0x5410, 0x571f, 0x8a0e, 0x615f, 0x6876, 0xfa05, 0x75db, 0x7b52, 0x7d71, 0x901a, 0x5806, 0x69cc, 0x817f, 0x892a, 0x9000, 0x9839, 0x5078, 0x5957, 0x59ac, 0x6295, 0x900f, 0x9b2a, 0x615d, 0x7279, 0x95d6, 0x5761, 0x5a46, 0x5df4, 0x628a, 0x64ad, 0x64fa, 0x6777, 0x6ce2, 0x6d3e, 0x722c, 0x7436, 0x7834, 0x7f77, 0x82ad, 0x8ddb, 0x9817, 0x5224, 0x5742, 0x677f, 0x7248, 0x74e3, 0x8ca9, 0x8fa6, 0x9211, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf8a0[ 96 ] = { 0xfffd, 0x962a, 0x516b, 0x53ed, 0x634c, 0x4f69, 0x5504, 0x6096, 0x6557, 0x6c9b, 0x6d7f, 0x724c, 0x72fd, 0x7a17, 0x8987, 0x8c9d, 0x5f6d, 0x6f8e, 0x70f9, 0x81a8, 0x610e, 0x4fbf, 0x504f, 0x6241, 0x7247, 0x7bc7, 0x7de8, 0x7fe9, 0x904d, 0x97ad, 0x9a19, 0x8cb6, 0x576a, 0x5e73, 0x67b0, 0x840d, 0x8a55, 0x5420, 0x5b16, 0x5e63, 0x5ee2, 0x5f0a, 0x6583, 0x80ba, 0x853d, 0x9589, 0x965b, 0x4f48, 0x5305, 0x530d, 0x530f, 0x5486, 0x54fa, 0x5703, 0x5e03, 0x6016, 0x629b, 0x62b1, 0x6355, 0xfa06, 0x6ce1, 0x6d66, 0x75b1, 0x7832, 0x80de, 0x812f, 0x82de, 0x8461, 0x84b2, 0x888d, 0x8912, 0x900b, 0x92ea, 0x98fd, 0x9b91, 0x5e45, 0x66b4, 0x66dd, 0x7011, 0x7206, 0xfa07, 0x4ff5, 0x527d, 0x5f6a, 0x6153, 0x6753, 0x6a19, 0x6f02, 0x74e2, 0x7968, 0x8868, 0x8c79, 0x98c7, 0x98c4, 0x9a43, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf9a0[ 96 ] = { 0xfffd, 0x54c1, 0x7a1f, 0x6953, 0x8af7, 0x8c4a, 0x98a8, 0x99ae, 0x5f7c, 0x62ab, 0x75b2, 0x76ae, 0x88ab, 0x907f, 0x9642, 0x5339, 0x5f3c, 0x5fc5, 0x6ccc, 0x73cc, 0x7562, 0x758b, 0x7b46, 0x82fe, 0x999d, 0x4e4f, 0x903c, 0x4e0b, 0x4f55, 0x53a6, 0x590f, 0x5ec8, 0x6630, 0x6cb3, 0x7455, 0x8377, 0x8766, 0x8cc0, 0x9050, 0x971e, 0x9c15, 0x58d1, 0x5b78, 0x8650, 0x8b14, 0x9db4, 0x5bd2, 0x6068, 0x608d, 0x65f1, 0x6c57, 0x6f22, 0x6fa3, 0x701a, 0x7f55, 0x7ff0, 0x9591, 0x9592, 0x9650, 0x97d3, 0x5272, 0x8f44, 0x51fd, 0x542b, 0x54b8, 0x5563, 0x558a, 0x6abb, 0x6db5, 0x7dd8, 0x8266, 0x929c, 0x9677, 0x9e79, 0x5408, 0x54c8, 0x76d2, 0x86e4, 0x95a4, 0x95d4, 0x965c, 0x4ea2, 0x4f09, 0x59ee, 0x5ae6, 0x5df7, 0x6052, 0x6297, 0x676d, 0x6841, 0x6c86, 0x6e2f, 0x7f38, 0x809b, 0x822a, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfaa0[ 96 ] = { 0xfffd, 0xfa08, 0xfa09, 0x9805, 0x4ea5, 0x5055, 0x54b3, 0x5793, 0x595a, 0x5b69, 0x5bb3, 0x61c8, 0x6977, 0x6d77, 0x7023, 0x87f9, 0x89e3, 0x8a72, 0x8ae7, 0x9082, 0x99ed, 0x9ab8, 0x52be, 0x6838, 0x5016, 0x5e78, 0x674f, 0x8347, 0x884c, 0x4eab, 0x5411, 0x56ae, 0x73e6, 0x9115, 0x97ff, 0x9909, 0x9957, 0x9999, 0x5653, 0x589f, 0x865b, 0x8a31, 0x61b2, 0x6af6, 0x737b, 0x8ed2, 0x6b47, 0x96aa, 0x9a57, 0x5955, 0x7200, 0x8d6b, 0x9769, 0x4fd4, 0x5cf4, 0x5f26, 0x61f8, 0x665b, 0x6ceb, 0x70ab, 0x7384, 0x73b9, 0x73fe, 0x7729, 0x774d, 0x7d43, 0x7d62, 0x7e23, 0x8237, 0x8852, 0xfa0a, 0x8ce2, 0x9249, 0x986f, 0x5b51, 0x7a74, 0x8840, 0x9801, 0x5acc, 0x4fe0, 0x5354, 0x593e, 0x5cfd, 0x633e, 0x6d79, 0x72f9, 0x8105, 0x8107, 0x83a2, 0x92cf, 0x9830, 0x4ea8, 0x5144, 0x5211, 0x578b, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfba0[ 96 ] = { 0xfffd, 0x5f62, 0x6cc2, 0x6ece, 0x7005, 0x7050, 0x70af, 0x7192, 0x73e9, 0x7469, 0x834a, 0x87a2, 0x8861, 0x9008, 0x90a2, 0x93a3, 0x99a8, 0x516e, 0x5f57, 0x60e0, 0x6167, 0x66b3, 0x8559, 0x8e4a, 0x91af, 0x978b, 0x4e4e, 0x4e92, 0x547c, 0x58d5, 0x58fa, 0x597d, 0x5cb5, 0x5f27, 0x6236, 0x6248, 0x660a, 0x6667, 0x6beb, 0x6d69, 0x6dcf, 0x6e56, 0x6ef8, 0x6f94, 0x6fe0, 0x6fe9, 0x705d, 0x72d0, 0x7425, 0x745a, 0x74e0, 0x7693, 0x795c, 0x7cca, 0x7e1e, 0x80e1, 0x82a6, 0x846b, 0x84bf, 0x864e, 0x865f, 0x8774, 0x8b77, 0x8c6a, 0x93ac, 0x9800, 0x9865, 0x60d1, 0x6216, 0x9177, 0x5a5a, 0x660f, 0x6df7, 0x6e3e, 0x743f, 0x9b42, 0x5ffd, 0x60da, 0x7b0f, 0x54c4, 0x5f18, 0x6c5e, 0x6cd3, 0x6d2a, 0x70d8, 0x7d05, 0x8679, 0x8a0c, 0x9d3b, 0x5316, 0x548c, 0x5b05, 0x6a3a, 0x706b, 0x7575, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfca0[ 96 ] = { 0xfffd, 0x798d, 0x79be, 0x82b1, 0x83ef, 0x8a71, 0x8b41, 0x8ca8, 0x9774, 0xfa0b, 0x64f4, 0x652b, 0x78ba, 0x78bb, 0x7a6b, 0x4e38, 0x559a, 0x5950, 0x5ba6, 0x5e7b, 0x60a3, 0x63db, 0x6b61, 0x6665, 0x6853, 0x6e19, 0x7165, 0x74b0, 0x7d08, 0x9084, 0x9a69, 0x9c25, 0x6d3b, 0x6ed1, 0x733e, 0x8c41, 0x95ca, 0x51f0, 0x5e4c, 0x5fa8, 0x604d, 0x60f6, 0x6130, 0x614c, 0x6643, 0x6644, 0x69a5, 0x6cc1, 0x6e5f, 0x6ec9, 0x6f62, 0x714c, 0x749c, 0x7687, 0x7bc1, 0x7c27, 0x8352, 0x8757, 0x9051, 0x968d, 0x9ec3, 0x532f, 0x56de, 0x5efb, 0x5f8a, 0x6062, 0x6094, 0x61f7, 0x6666, 0x6703, 0x6a9c, 0x6dee, 0x6fae, 0x7070, 0x736a, 0x7e6a, 0x81be, 0x8334, 0x86d4, 0x8aa8, 0x8cc4, 0x5283, 0x7372, 0x5b96, 0x6a6b, 0x9404, 0x54ee, 0x5686, 0x5b5d, 0x6548, 0x6585, 0x66c9, 0x689f, 0x6d8d, 0x6dc6, 0xfffd }; const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfda0[ 96 ] = { 0xfffd, 0x723b, 0x80b4, 0x9175, 0x9a4d, 0x4faf, 0x5019, 0x539a, 0x540e, 0x543c, 0x5589, 0x55c5, 0x5e3f, 0x5f8c, 0x673d, 0x7166, 0x73dd, 0x9005, 0x52db, 0x52f3, 0x5864, 0x58ce, 0x7104, 0x718f, 0x71fb, 0x85b0, 0x8a13, 0x6688, 0x85a8, 0x55a7, 0x6684, 0x714a, 0x8431, 0x5349, 0x5599, 0x6bc1, 0x5f59, 0x5fbd, 0x63ee, 0x6689, 0x7147, 0x8af1, 0x8f1d, 0x9ebe, 0x4f11, 0x643a, 0x70cb, 0x7566, 0x8667, 0x6064, 0x8b4e, 0x9df8, 0x5147, 0x51f6, 0x5308, 0x6d36, 0x80f8, 0x9ed1, 0x6615, 0x6b23, 0x7098, 0x75d5, 0x5403, 0x5c79, 0x7d07, 0x8a16, 0x6b20, 0x6b3d, 0x6b46, 0x5438, 0x6070, 0x6d3d, 0x7fd5, 0x8208, 0x50d6, 0x51de, 0x559c, 0x566b, 0x56cd, 0x59ec, 0x5b09, 0x5e0c, 0x6199, 0x6198, 0x6231, 0x665e, 0x66e6, 0x7199, 0x71b9, 0x71ba, 0x72a7, 0x79a7, 0x7a00, 0x7fb2, 0x8a70, 0xfffd }; /* Unicode to ASCII character lookup table for Windows 949 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0x0080[ 256 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaea2, 0x001a, 0x001a, 0xb4a2, 0x001a, 0x001a, 0xd7a1, 0xa7a1, 0x001a, 0xa3a8, 0x001a, 0x001a, 0xa9a1, 0xe7a2, 0x001a, 0xc6a1, 0xbea1, 0xf7a9, 0xf8a9, 0xa5a2, 0x001a, 0xd2a2, 0xa4a1, 0xaca2, 0xf6a9, 0xaca8, 0x001a, 0xf9a8, 0xf6a8, 0xfaa8, 0xafa2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfa1, 0xaaa8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xada8, 0xaca9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0a1, 0xaaa9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xada9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4a8, 0xa4a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5a9, 0xa6a8, 0xa6a9, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8a8, 0xa8a9, 0xa9a8, 0xa9a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0a9, 0xafa8, 0xafa9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaba8, 0xaba9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaea8, 0xaea9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0x02c0[ 448 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8a2, 0xaba2, 0xaaa2, 0xada2, 0x001a, 0xa9a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1a5, 0xc2a5, 0xc3a5, 0xc4a5, 0xc5a5, 0xc6a5, 0xc7a5, 0xc8a5, 0xc9a5, 0xcaa5, 0xcba5, 0xcca5, 0xcda5, 0xcea5, 0xcfa5, 0xd0a5, 0xd1a5, 0x001a, 0xd2a5, 0xd3a5, 0xd4a5, 0xd5a5, 0xd6a5, 0xd7a5, 0xd8a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1a5, 0xe2a5, 0xe3a5, 0xe4a5, 0xe5a5, 0xe6a5, 0xe7a5, 0xe8a5, 0xe9a5, 0xeaa5, 0xeba5, 0xeca5, 0xeda5, 0xeea5, 0xefa5, 0xf0a5, 0xf1a5, 0x001a, 0xf2a5, 0xf3a5, 0xf4a5, 0xf5a5, 0xf6a5, 0xf7a5, 0xf8a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7ac, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1ac, 0xa2ac, 0xa3ac, 0xa4ac, 0xa5ac, 0xa6ac, 0xa8ac, 0xa9ac, 0xaaac, 0xabac, 0xacac, 0xadac, 0xaeac, 0xafac, 0xb0ac, 0xb1ac, 0xb2ac, 0xb3ac, 0xb4ac, 0xb5ac, 0xb6ac, 0xb7ac, 0xb8ac, 0xb9ac, 0xbaac, 0xbbac, 0xbcac, 0xbdac, 0xbeac, 0xbfac, 0xc0ac, 0xc1ac, 0xd1ac, 0xd2ac, 0xd3ac, 0xd4ac, 0xd5ac, 0xd6ac, 0xd8ac, 0xd9ac, 0xdaac, 0xdbac, 0xdcac, 0xddac, 0xdeac, 0xdfac, 0xe0ac, 0xe1ac, 0xe2ac, 0xe3ac, 0xe4ac, 0xe5ac, 0xe6ac, 0xe7ac, 0xe8ac, 0xe9ac, 0xeaac, 0xebac, 0xecac, 0xedac, 0xeeac, 0xefac, 0xf0ac, 0xf1ac, 0x001a, 0xd7ac, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0x2000[ 1664 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaaa1, 0x001a, 0x001a, 0xaea1, 0xafa1, 0x001a, 0x001a, 0xb0a1, 0xb1a1, 0x001a, 0x001a, 0xd3a2, 0xd4a2, 0x001a, 0x001a, 0x001a, 0xa5a1, 0xa6a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6a2, 0x001a, 0xc7a1, 0xc8a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfaa9, 0x001a, 0xfba9, 0xfca9, 0xfda9, 0xfea9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4a7, 0x001a, 0x001a, 0xe0a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5a2, 0xe2a2, 0x001a, 0x001a, 0x001a, 0xd9a7, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaa1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7a8, 0xf8a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfba8, 0xfca8, 0xfda8, 0xfea8, 0x001a, 0xb0a5, 0xb1a5, 0xb2a5, 0xb3a5, 0xb4a5, 0xb5a5, 0xb6a5, 0xb7a5, 0xb8a5, 0xb9a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a5, 0xa2a5, 0xa3a5, 0xa4a5, 0xa5a5, 0xa6a5, 0xa7a5, 0xa8a5, 0xa9a5, 0xaaa5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7a1, 0xe8a1, 0xe6a1, 0xe9a1, 0xeaa1, 0xd5a2, 0xd8a2, 0xd6a2, 0xd9a2, 0xd7a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a2, 0x001a, 0xa2a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3a2, 0x001a, 0xd3a1, 0xa4a2, 0x001a, 0x001a, 0x001a, 0xd4a1, 0xf4a1, 0x001a, 0x001a, 0xf5a1, 0x001a, 0x001a, 0x001a, 0xb3a2, 0x001a, 0xb2a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeea1, 0x001a, 0x001a, 0xf0a1, 0xc4a1, 0x001a, 0xd0a1, 0x001a, 0x001a, 0x001a, 0x001a, 0xaba1, 0x001a, 0xfca1, 0xfda1, 0xfba1, 0xfaa1, 0xf2a1, 0xf3a1, 0x001a, 0xb1a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5a1, 0xf1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xada1, 0xefa1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1a1, 0xd5a1, 0x001a, 0x001a, 0xc2a1, 0xc3a1, 0x001a, 0x001a, 0x001a, 0x001a, 0xeca1, 0xeda1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8a1, 0xf9a1, 0x001a, 0x001a, 0xf6a1, 0xf7a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7a8, 0xe8a8, 0xe9a8, 0xeaa8, 0xeba8, 0xeca8, 0xeda8, 0xeea8, 0xefa8, 0xf0a8, 0xf1a8, 0xf2a8, 0xf3a8, 0xf4a8, 0xf5a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7a9, 0xe8a9, 0xe9a9, 0xeaa9, 0xeba9, 0xeca9, 0xeda9, 0xeea9, 0xefa9, 0xf0a9, 0xf1a9, 0xf2a9, 0xf3a9, 0xf4a9, 0xf5a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcda9, 0xcea9, 0xcfa9, 0xd0a9, 0xd1a9, 0xd2a9, 0xd3a9, 0xd4a9, 0xd5a9, 0xd6a9, 0xd7a9, 0xd8a9, 0xd9a9, 0xdaa9, 0xdba9, 0xdca9, 0xdda9, 0xdea9, 0xdfa9, 0xe0a9, 0xe1a9, 0xe2a9, 0xe3a9, 0xe4a9, 0xe5a9, 0xe6a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcda8, 0xcea8, 0xcfa8, 0xd0a8, 0xd1a8, 0xd2a8, 0xd3a8, 0xd4a8, 0xd5a8, 0xd6a8, 0xd7a8, 0xd8a8, 0xd9a8, 0xdaa8, 0xdba8, 0xdca8, 0xdda8, 0xdea8, 0xdfa8, 0xe0a8, 0xe1a8, 0xe2a8, 0xe3a8, 0xe4a8, 0xe5a8, 0xe6a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a6, 0xaca6, 0xa2a6, 0xada6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3a6, 0xc8a6, 0xc7a6, 0xaea6, 0xa4a6, 0xc2a6, 0xc1a6, 0xafa6, 0xa6a6, 0xc6a6, 0xc5a6, 0xb1a6, 0xa5a6, 0xc4a6, 0xc3a6, 0xb0a6, 0xa7a6, 0xbca6, 0xc9a6, 0xcaa6, 0xb7a6, 0xcba6, 0xcca6, 0xb2a6, 0xa9a6, 0xbea6, 0xcda6, 0xcea6, 0xb9a6, 0xcfa6, 0xd0a6, 0xb4a6, 0xa8a6, 0xd1a6, 0xd2a6, 0xb8a6, 0xbda6, 0xd3a6, 0xd4a6, 0xb3a6, 0xaaa6, 0xd5a6, 0xd6a6, 0xbaa6, 0xbfa6, 0xd7a6, 0xd8a6, 0xb5a6, 0xaba6, 0xd9a6, 0xdaa6, 0xbba6, 0xdba6, 0xdca6, 0xc0a6, 0xdda6, 0xdea6, 0xdfa6, 0xe0a6, 0xe1a6, 0xe2a6, 0xe3a6, 0xe4a6, 0xb6a6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1a1, 0xe0a1, 0x001a, 0xc3a2, 0xc7a2, 0xc8a2, 0xcba2, 0xcaa2, 0xc9a2, 0xcca2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3a1, 0xe2a1, 0x001a, 0x001a, 0xbaa2, 0xb9a2, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5a1, 0xe4a1, 0x001a, 0x001a, 0xb8a2, 0xb7a2, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfa1, 0xdea1, 0xc2a2, 0x001a, 0x001a, 0xdba1, 0x001a, 0x001a, 0xdda1, 0xdca1, 0xc4a2, 0xc5a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaa1, 0xd9a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfa2, 0xcea2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0a2, 0x001a, 0xd1a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfa1, 0x001a, 0xcea1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbca2, 0xbda2, 0x001a, 0xc0a2, 0xbba2, 0xbea2, 0x001a, 0xbfa2, 0xcda2, 0xdba2, 0xdca2, 0x001a, 0xdda2, 0xdaa2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0x3000[ 1024 ] = { 0xa1a1, 0xa2a1, 0xa3a1, 0xa8a1, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4a1, 0xb5a1, 0xb6a1, 0xb7a1, 0xb8a1, 0xb9a1, 0xbaa1, 0xbba1, 0xbca1, 0xbda1, 0x001a, 0xeba1, 0xb2a1, 0xb3a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1aa, 0xa2aa, 0xa3aa, 0xa4aa, 0xa5aa, 0xa6aa, 0xa7aa, 0xa8aa, 0xa9aa, 0xaaaa, 0xabaa, 0xacaa, 0xadaa, 0xaeaa, 0xafaa, 0xb0aa, 0xb1aa, 0xb2aa, 0xb3aa, 0xb4aa, 0xb5aa, 0xb6aa, 0xb7aa, 0xb8aa, 0xb9aa, 0xbaaa, 0xbbaa, 0xbcaa, 0xbdaa, 0xbeaa, 0xbfaa, 0xc0aa, 0xc1aa, 0xc2aa, 0xc3aa, 0xc4aa, 0xc5aa, 0xc6aa, 0xc7aa, 0xc8aa, 0xc9aa, 0xcaaa, 0xcbaa, 0xccaa, 0xcdaa, 0xceaa, 0xcfaa, 0xd0aa, 0xd1aa, 0xd2aa, 0xd3aa, 0xd4aa, 0xd5aa, 0xd6aa, 0xd7aa, 0xd8aa, 0xd9aa, 0xdaaa, 0xdbaa, 0xdcaa, 0xddaa, 0xdeaa, 0xdfaa, 0xe0aa, 0xe1aa, 0xe2aa, 0xe3aa, 0xe4aa, 0xe5aa, 0xe6aa, 0xe7aa, 0xe8aa, 0xe9aa, 0xeaaa, 0xebaa, 0xecaa, 0xedaa, 0xeeaa, 0xefaa, 0xf0aa, 0xf1aa, 0xf2aa, 0xf3aa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1ab, 0xa2ab, 0xa3ab, 0xa4ab, 0xa5ab, 0xa6ab, 0xa7ab, 0xa8ab, 0xa9ab, 0xaaab, 0xabab, 0xacab, 0xadab, 0xaeab, 0xafab, 0xb0ab, 0xb1ab, 0xb2ab, 0xb3ab, 0xb4ab, 0xb5ab, 0xb6ab, 0xb7ab, 0xb8ab, 0xb9ab, 0xbaab, 0xbbab, 0xbcab, 0xbdab, 0xbeab, 0xbfab, 0xc0ab, 0xc1ab, 0xc2ab, 0xc3ab, 0xc4ab, 0xc5ab, 0xc6ab, 0xc7ab, 0xc8ab, 0xc9ab, 0xcaab, 0xcbab, 0xccab, 0xcdab, 0xceab, 0xcfab, 0xd0ab, 0xd1ab, 0xd2ab, 0xd3ab, 0xd4ab, 0xd5ab, 0xd6ab, 0xd7ab, 0xd8ab, 0xd9ab, 0xdaab, 0xdbab, 0xdcab, 0xddab, 0xdeab, 0xdfab, 0xe0ab, 0xe1ab, 0xe2ab, 0xe3ab, 0xe4ab, 0xe5ab, 0xe6ab, 0xe7ab, 0xe8ab, 0xe9ab, 0xeaab, 0xebab, 0xecab, 0xedab, 0xeeab, 0xefab, 0xf0ab, 0xf1ab, 0xf2ab, 0xf3ab, 0xf4ab, 0xf5ab, 0xf6ab, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a4, 0xa2a4, 0xa3a4, 0xa4a4, 0xa5a4, 0xa6a4, 0xa7a4, 0xa8a4, 0xa9a4, 0xaaa4, 0xaba4, 0xaca4, 0xada4, 0xaea4, 0xafa4, 0xb0a4, 0xb1a4, 0xb2a4, 0xb3a4, 0xb4a4, 0xb5a4, 0xb6a4, 0xb7a4, 0xb8a4, 0xb9a4, 0xbaa4, 0xbba4, 0xbca4, 0xbda4, 0xbea4, 0xbfa4, 0xc0a4, 0xc1a4, 0xc2a4, 0xc3a4, 0xc4a4, 0xc5a4, 0xc6a4, 0xc7a4, 0xc8a4, 0xc9a4, 0xcaa4, 0xcba4, 0xcca4, 0xcda4, 0xcea4, 0xcfa4, 0xd0a4, 0xd1a4, 0xd2a4, 0xd3a4, 0xd4a4, 0xd5a4, 0xd6a4, 0xd7a4, 0xd8a4, 0xd9a4, 0xdaa4, 0xdba4, 0xdca4, 0xdda4, 0xdea4, 0xdfa4, 0xe0a4, 0xe1a4, 0xe2a4, 0xe3a4, 0xe4a4, 0xe5a4, 0xe6a4, 0xe7a4, 0xe8a4, 0xe9a4, 0xeaa4, 0xeba4, 0xeca4, 0xeda4, 0xeea4, 0xefa4, 0xf0a4, 0xf1a4, 0xf2a4, 0xf3a4, 0xf4a4, 0xf5a4, 0xf6a4, 0xf7a4, 0xf8a4, 0xf9a4, 0xfaa4, 0xfba4, 0xfca4, 0xfda4, 0xfea4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1a9, 0xb2a9, 0xb3a9, 0xb4a9, 0xb5a9, 0xb6a9, 0xb7a9, 0xb8a9, 0xb9a9, 0xbaa9, 0xbba9, 0xbca9, 0xbda9, 0xbea9, 0xbfa9, 0xc0a9, 0xc1a9, 0xc2a9, 0xc3a9, 0xc4a9, 0xc5a9, 0xc6a9, 0xc7a9, 0xc8a9, 0xc9a9, 0xcaa9, 0xcba9, 0xcca9, 0xdfa2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1a8, 0xb2a8, 0xb3a8, 0xb4a8, 0xb5a8, 0xb6a8, 0xb7a8, 0xb8a8, 0xb9a8, 0xbaa8, 0xbba8, 0xbca8, 0xbda8, 0xbea8, 0xbfa8, 0xc0a8, 0xc1a8, 0xc2a8, 0xc3a8, 0xc4a8, 0xc5a8, 0xc6a8, 0xc7a8, 0xc8a8, 0xc9a8, 0xcaa8, 0xcba8, 0xcca8, 0x001a, 0x001a, 0x001a, 0xdea2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9a7, 0xcaa7, 0xcba7, 0xcca7, 0xcda7, 0x001a, 0x001a, 0x001a, 0xbaa7, 0xbba7, 0xdca7, 0xdda7, 0xdea7, 0xb6a7, 0xb7a7, 0xb8a7, 0xd4a7, 0xd5a7, 0xd6a7, 0xd7a7, 0xd8a7, 0xa1a7, 0xa2a7, 0xa3a7, 0xa5a7, 0xaba7, 0xaca7, 0xada7, 0xaea7, 0xafa7, 0xb0a7, 0xb1a7, 0xb2a7, 0xb3a7, 0xb4a7, 0xa7a7, 0xa8a7, 0xa9a7, 0xaaa7, 0xbda7, 0xbea7, 0xe5a7, 0xe6a7, 0xe7a7, 0xe8a7, 0xe1a7, 0xe2a7, 0xe3a7, 0xbfa7, 0xc0a7, 0xc1a7, 0xc2a7, 0xc3a7, 0xc4a7, 0xc5a7, 0xc6a7, 0xc7a7, 0xc8a7, 0xcea7, 0xcfa7, 0xd0a7, 0xd1a7, 0xd2a7, 0xd3a7, 0xdaa7, 0xdba7, 0xe3a2, 0xeca7, 0xa6a7, 0xe0a7, 0xefa7, 0xe1a2, 0xbca7, 0xeda7, 0xb5a7, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9a7, 0xeaa7, 0x001a, 0x001a, 0xeba7, 0x001a, 0x001a, 0xdfa7, 0x001a, 0xe4a2, 0x001a, 0x001a, 0xe4a7, 0xeea7, 0xe9a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0x4e00[ 20928 ] = { 0xe9ec, 0xcbef, 0x001a, 0xd2f6, 0x001a, 0x001a, 0x001a, 0xb2d8, 0xdbed, 0xb2df, 0xbedf, 0xbbf9, 0x001a, 0xf4dc, 0x001a, 0x001a, 0x001a, 0xe4f5, 0x001a, 0x001a, 0xa6f3, 0xe0dd, 0xa6e1, 0x001a, 0xf8ce, 0xb0dc, 0x001a, 0x001a, 0x001a, 0x001a, 0xaae3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9f1, 0x001a, 0x001a, 0x001a, 0x001a, 0xfacd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaffc, 0xa1d3, 0x001a, 0xabf1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e7, 0xacd2, 0x001a, 0xf9ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdf1, 0x001a, 0xbfde, 0xbafb, 0xb9f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2ce, 0x001a, 0xabe3, 0xe0eb, 0x001a, 0x001a, 0x001a, 0xface, 0xf7cb, 0xa5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1ca, 0x001a, 0xccd4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1ea, 0x001a, 0x001a, 0xe3dc, 0xaddf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebcb, 0x001a, 0x001a, 0x001a, 0xafd5, 0x001a, 0x001a, 0x001a, 0xf5d6, 0x001a, 0xf8e5, 0x001a, 0x001a, 0xc0de, 0xa3ec, 0x001a, 0xcde9, 0x001a, 0xa7ea, 0xf6e9, 0xbbfb, 0x001a, 0xe9e7, 0xccef, 0x001a, 0x001a, 0xe6d0, 0x001a, 0x001a, 0xc1de, 0x001a, 0x001a, 0xace4, 0x001a, 0x001a, 0xccd8, 0xf1f9, 0x001a, 0xdfce, 0xa4fa, 0xb2e6, 0x001a, 0xfbfa, 0x001a, 0x001a, 0xbdfa, 0xc8cc, 0xcdef, 0xd5d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2d3, 0x001a, 0x001a, 0x001a, 0xd1ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7e4, 0xd2ec, 0x001a, 0x001a, 0xb1f6, 0x001a, 0x001a, 0xfbce, 0x001a, 0x001a, 0xd1d0, 0xbfcb, 0x001a, 0xa4ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8ed, 0xc2de, 0xe2f6, 0xdced, 0xf5dc, 0xb9e0, 0x001a, 0x001a, 0x001a, 0xced4, 0x001a, 0xb5f4, 0x001a, 0x001a, 0x001a, 0xdbd3, 0xb5d6, 0xa4ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6e4, 0x001a, 0xeaf1, 0x001a, 0x001a, 0x001a, 0xeccb, 0xc0cb, 0x001a, 0x001a, 0x001a, 0xf2ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xead0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2f9, 0xa5ec, 0xdfd0, 0x001a, 0xeae7, 0xebd0, 0xd1dc, 0xe9db, 0xccfd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7db, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1da, 0x001a, 0xb6d6, 0x001a, 0xdfe3, 0x001a, 0xc3de, 0x001a, 0xc4de, 0xa1ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecee, 0x001a, 0x001a, 0xa3d3, 0xb7ee, 0xcff8, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8ea, 0xb8ee, 0xacf1, 0xa5f1, 0xcee9, 0x001a, 0x001a, 0x001a, 0xbcf9, 0x001a, 0x001a, 0x001a, 0xf9e5, 0xeaec, 0xd6dd, 0xc2ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbae5, 0xd8db, 0x001a, 0x001a, 0xa2ca, 0x001a, 0x001a, 0xcdd1, 0x001a, 0x001a, 0x001a, 0xedee, 0x001a, 0x001a, 0x001a, 0xebec, 0xc5de, 0x001a, 0xe0e3, 0x001a, 0xc9ca, 0xe9f2, 0x001a, 0xced5, 0x001a, 0xb6f6, 0x001a, 0xc2ce, 0xc7d6, 0x001a, 0xb4e3, 0x001a, 0xadf1, 0x001a, 0xe2ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2d7, 0x001a, 0xa7f3, 0x001a, 0x001a, 0xeacd, 0x001a, 0xeeeb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2d9, 0xa5fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5f6, 0xe2d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5f8, 0x001a, 0x001a, 0xf5cc, 0xb5f5, 0xade4, 0x001a, 0x001a, 0x001a, 0x001a, 0xebe7, 0xd5f1, 0x001a, 0x001a, 0x001a, 0xbbf0, 0x001a, 0x001a, 0xb5e9, 0x001a, 0xc9cc, 0xd5fa, 0x001a, 0x001a, 0xd4e1, 0x001a, 0x001a, 0xd6d7, 0x001a, 0x001a, 0xc1dc, 0x001a, 0xc6de, 0xeffa, 0xe1e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3e1, 0xf6dc, 0x001a, 0xfcce, 0x001a, 0xc4db, 0x001a, 0xf1f8, 0x001a, 0x001a, 0xe4dc, 0x001a, 0xefe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1dc, 0x001a, 0x001a, 0x001a, 0xd6d5, 0x001a, 0x001a, 0xdaf3, 0x001a, 0xc1cb, 0x001a, 0xc3db, 0x001a, 0x001a, 0x001a, 0xfad9, 0xeed3, 0x001a, 0x001a, 0x001a, 0xb8fa, 0x001a, 0x001a, 0xa6fd, 0xefeb, 0x001a, 0xa6f4, 0x001a, 0xcacc, 0xa8f3, 0x001a, 0xdbf3, 0x001a, 0xa7db, 0xb7f6, 0x001a, 0xe6cf, 0xf2f0, 0xdacb, 0x001a, 0xd2e7, 0xc3d7, 0xf0f6, 0xdee8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7e5, 0x001a, 0x001a, 0x001a, 0xa3ca, 0xa7cc, 0xc9ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5fa, 0x001a, 0x001a, 0x001a, 0x001a, 0xaef1, 0x001a, 0xceef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedcb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0f6, 0xcfef, 0xcfe9, 0x001a, 0xdef7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3ce, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8db, 0x001a, 0x001a, 0x001a, 0xf8cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1df, 0xe1dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaf5, 0xb6e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xece7, 0xeeee, 0x001a, 0xf0f3, 0x001a, 0xbfdf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbcc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1d0, 0x001a, 0x001a, 0x001a, 0xd2f4, 0xbae0, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0df, 0x001a, 0xe0ce, 0x001a, 0x001a, 0x001a, 0xd2dc, 0xeafd, 0x001a, 0x001a, 0x001a, 0xf6d6, 0x001a, 0x001a, 0x001a, 0xcaea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9e8, 0x001a, 0xace3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4ca, 0x001a, 0xf8db, 0x001a, 0x001a, 0x001a, 0xc7de, 0xf0eb, 0xd6f1, 0x001a, 0x001a, 0xe2e5, 0x001a, 0xcccc, 0x001a, 0x001a, 0xfbcb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1df, 0x001a, 0xedd6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3d5, 0x001a, 0x001a, 0xd3d1, 0x001a, 0xf0e5, 0x001a, 0x001a, 0x001a, 0xb4e8, 0xc3eb, 0x001a, 0xaaea, 0xfcfa, 0xf6f5, 0xbcf0, 0xd4fd, 0xbbe0, 0xc3ce, 0x001a, 0xbad0, 0xbaf7, 0xf3d8, 0xcdf7, 0x001a, 0x001a, 0x001a, 0xaee4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfd4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7d0, 0x001a, 0x001a, 0xfdec, 0x001a, 0xaed2, 0xefee, 0xd7d5, 0xe4ea, 0xa2f8, 0xebcd, 0xbfd7, 0xb1fb, 0x001a, 0x001a, 0xeccd, 0x001a, 0x001a, 0x001a, 0xb2dc, 0xecd0, 0xfdce, 0xf0ee, 0x001a, 0x001a, 0x001a, 0xc2cc, 0x001a, 0x001a, 0x001a, 0xedd0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7e5, 0x001a, 0x001a, 0x001a, 0xfcf3, 0x001a, 0x001a, 0xa2ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3d9, 0x001a, 0x001a, 0xf4d8, 0x001a, 0xb7e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaece, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2d9, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1d8, 0x001a, 0xcfd4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7e5, 0xd2d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2f4, 0x001a, 0xd7f1, 0x001a, 0x001a, 0xd8d5, 0x001a, 0xbdf0, 0xd0d7, 0xd0d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfd7, 0xeaeb, 0xebfd, 0x001a, 0x001a, 0xeddb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5fc, 0xc2cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5fd, 0x001a, 0xc8f4, 0xeae8, 0xf3f5, 0x001a, 0x001a, 0xdef9, 0x001a, 0x001a, 0xefd3, 0x001a, 0x001a, 0xd3ec, 0x001a, 0x001a, 0xc2dd, 0xb7ef, 0xd4e7, 0x001a, 0xcaca, 0x001a, 0x001a, 0x001a, 0xfbd9, 0x001a, 0x001a, 0xfdfa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaad6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7f7, 0xacdc, 0x001a, 0x001a, 0x001a, 0xd7d7, 0xa2df, 0x001a, 0x001a, 0x001a, 0xbece, 0x001a, 0xf0d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4f0, 0xece1, 0xe7cf, 0xcbf3, 0xa9ed, 0xbeca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeff4, 0x001a, 0x001a, 0x001a, 0xcef6, 0x001a, 0x001a, 0xfbde, 0xbbd0, 0xb7d5, 0xf1ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8f4, 0x001a, 0xf8dc, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7cb, 0x001a, 0xceda, 0x001a, 0x001a, 0x001a, 0xe6e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5ed, 0xf2ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9dc, 0x001a, 0x001a, 0xdcf9, 0x001a, 0x001a, 0xdcf3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2f8, 0x001a, 0xf9f4, 0x001a, 0x001a, 0x001a, 0xf1fc, 0x001a, 0x001a, 0x001a, 0xbcd0, 0xf9db, 0xb1d7, 0x001a, 0x001a, 0x001a, 0xfccb, 0x001a, 0x001a, 0x001a, 0xa5f0, 0xfdcb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4d5, 0x001a, 0x001a, 0x001a, 0xedcd, 0xa5ca, 0x001a, 0x001a, 0xabd6, 0xc2d0, 0x001a, 0x001a, 0x001a, 0x001a, 0xbef0, 0xbdd2, 0xa4cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6fa, 0x001a, 0x001a, 0xcdcc, 0x001a, 0xfada, 0x001a, 0xcff6, 0x001a, 0xb8e9, 0x001a, 0xf5d8, 0x001a, 0x001a, 0x001a, 0xcecc, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdd7, 0x001a, 0x001a, 0xd1d4, 0xede9, 0x001a, 0xebca, 0xe2d9, 0x001a, 0xb2fd, 0x001a, 0xade3, 0xccd6, 0xb4d9, 0x001a, 0x001a, 0xa7e1, 0xd3ee, 0xc3d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3fd, 0x001a, 0xe4d5, 0x001a, 0x001a, 0xe8cf, 0x001a, 0xc3ed, 0xb2d0, 0x001a, 0x001a, 0xfece, 0xa8da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0f8, 0x001a, 0x001a, 0xd6fd, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1f8, 0x001a, 0xd2f8, 0xd3dc, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2dd, 0xf9fb, 0xc1dd, 0x001a, 0xb5e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdded, 0xc4ce, 0x001a, 0xa1cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3dd, 0x001a, 0x001a, 0x001a, 0x001a, 0xddfc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaff9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbd2, 0xa1cf, 0xa8e4, 0x001a, 0xb6f4, 0xfeec, 0x001a, 0x001a, 0xaee3, 0xede7, 0xc1fd, 0xe2da, 0x001a, 0x001a, 0xb3d8, 0x001a, 0x001a, 0x001a, 0xe4dd, 0xeff0, 0xf1f6, 0xf0fa, 0x001a, 0x001a, 0xf5d1, 0x001a, 0x001a, 0xcfda, 0x001a, 0xd4dc, 0x001a, 0xa6dc, 0x001a, 0xbfef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfce, 0x001a, 0xd9e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6d9, 0xd4ec, 0xcbea, 0x001a, 0x001a, 0xbfca, 0xb0d5, 0x001a, 0xe9cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedf1, 0x001a, 0xcfcc, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xede4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8d7, 0x001a, 0xa7fd, 0x001a, 0x001a, 0x001a, 0x001a, 0xabea, 0xb2f6, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0cf, 0xbdf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbcb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1f3, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e9, 0xa9f3, 0xe0d0, 0xd2e9, 0x001a, 0xe3da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2e2, 0x001a, 0xa2f6, 0xf4e1, 0x001a, 0x001a, 0x001a, 0xe4da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e7, 0xbff5, 0xa2cf, 0xafcd, 0xa3cf, 0x001a, 0x001a, 0x001a, 0xb0cd, 0xfef1, 0xa3d0, 0xafe1, 0xa3f8, 0x001a, 0xa6ca, 0xbbf7, 0xeaf2, 0xc8de, 0xd3e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdefd, 0xc0ca, 0x001a, 0x001a, 0x001a, 0xeaf9, 0xced1, 0xd4ee, 0x001a, 0xd2d4, 0xa3d9, 0xa8fd, 0xd9d7, 0xcef7, 0xbefa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6cf, 0x001a, 0xf0d7, 0x001a, 0xe1eb, 0xc5f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfadc, 0x001a, 0x001a, 0xc3dd, 0x001a, 0xdff9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefe7, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5fd, 0xa3f6, 0x001a, 0xfcd9, 0xa9fd, 0x001a, 0xeee7, 0x001a, 0x001a, 0x001a, 0xe5d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0ef, 0x001a, 0xb1cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2f1, 0x001a, 0xb1f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2cd, 0x001a, 0xabda, 0x001a, 0xa7ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2e3, 0xbcfb, 0xa4d9, 0x001a, 0x001a, 0xbaee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfafb, 0x001a, 0xa4cf, 0x001a, 0xfbdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3f6, 0x001a, 0x001a, 0x001a, 0xaaed, 0x001a, 0x001a, 0xa1f2, 0xe1ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6fa, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0f9, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6ec, 0x001a, 0x001a, 0xeee4, 0xa1f9, 0x001a, 0x001a, 0xeffb, 0x001a, 0x001a, 0x001a, 0xebf9, 0xa3ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacea, 0x001a, 0x001a, 0x001a, 0xa8ca, 0x001a, 0x001a, 0xfaf4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6cd, 0xf6fc, 0x001a, 0x001a, 0x001a, 0xc9f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6f8, 0x001a, 0xcade, 0xc6f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdad7, 0x001a, 0xd0d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6ea, 0x001a, 0xddf3, 0x001a, 0x001a, 0x001a, 0xdae4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2f6, 0x001a, 0xc2df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdd9, 0x001a, 0x001a, 0x001a, 0xf6cc, 0x001a, 0x001a, 0xbad3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafe4, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6f0, 0x001a, 0x001a, 0x001a, 0xd3cb, 0x001a, 0x001a, 0x001a, 0xbce0, 0x001a, 0xcaf4, 0xfad4, 0x001a, 0xaafd, 0xe2f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7f4, 0xc2fd, 0xb0fc, 0x001a, 0xecfd, 0xe2ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdfd, 0x001a, 0xe7ea, 0xc3df, 0xd2d1, 0xe2ce, 0x001a, 0xa4d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabfd, 0x001a, 0xe0df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0e7, 0x001a, 0xeed0, 0x001a, 0x001a, 0xaaf3, 0x001a, 0x001a, 0x001a, 0xcbde, 0xb8f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5e1, 0xb3f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3f7, 0x001a, 0x001a, 0xa9ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5cf, 0x001a, 0x001a, 0xc4df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0e1, 0x001a, 0x001a, 0xbff0, 0x001a, 0xa4f6, 0x001a, 0xb6e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefd0, 0x001a, 0x001a, 0xedfd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfe6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadde, 0x001a, 0xbffa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5d2, 0x001a, 0x001a, 0xeefd, 0x001a, 0x001a, 0x001a, 0xb6f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6e1, 0xccde, 0x001a, 0x001a, 0xdefc, 0x001a, 0xd7ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddcd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7d6, 0xb3cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5f8, 0xd8e5, 0x001a, 0x001a, 0x001a, 0xeacf, 0x001a, 0x001a, 0xd0cf, 0x001a, 0xccea, 0x001a, 0x001a, 0x001a, 0x001a, 0xaeea, 0xadea, 0x001a, 0x001a, 0xf1d3, 0x001a, 0xa5d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcff7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4d0, 0x001a, 0x001a, 0xa2f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0d0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3f2, 0x001a, 0xf8f7, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3d0, 0x001a, 0x001a, 0xa9db, 0x001a, 0x001a, 0xbbd3, 0xecca, 0x001a, 0xa6f1, 0xd5cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7f7, 0x001a, 0x001a, 0xdecd, 0x001a, 0xa4f7, 0x001a, 0x001a, 0x001a, 0xc0f8, 0x001a, 0x001a, 0x001a, 0xddd3, 0x001a, 0xd0cc, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcd3, 0x001a, 0x001a, 0xfefa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9eb, 0x001a, 0xa7cf, 0xafea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefe4, 0x001a, 0x001a, 0x001a, 0xb9e9, 0xd8f1, 0x001a, 0x001a, 0xd8d8, 0x001a, 0x001a, 0xf2e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e6, 0xfcdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1f3, 0x001a, 0x001a, 0x001a, 0xd0e3, 0x001a, 0x001a, 0xfbf2, 0x001a, 0xc6db, 0xf1d0, 0x001a, 0xf2d0, 0x001a, 0x001a, 0x001a, 0xdccf, 0x001a, 0xd1d3, 0x001a, 0x001a, 0xb1cc, 0xd8f7, 0x001a, 0xa8cb, 0xbceb, 0xbee4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcf4, 0x001a, 0x001a, 0xc2dc, 0x001a, 0x001a, 0xa7f0, 0x001a, 0x001a, 0xc0e6, 0x001a, 0x001a, 0xedca, 0x001a, 0x001a, 0x001a, 0x001a, 0xebe8, 0xe8e5, 0xc3dc, 0x001a, 0x001a, 0xdeed, 0xf2d3, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4ce, 0xabe7, 0x001a, 0x001a, 0x001a, 0xc3cb, 0x001a, 0xb1e1, 0x001a, 0x001a, 0xb2f7, 0x001a, 0x001a, 0xf3d3, 0xd2d3, 0x001a, 0xc0f5, 0x001a, 0x001a, 0x001a, 0xdddf, 0x001a, 0x001a, 0xf3ee, 0xf1e7, 0x001a, 0xb4fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8f2, 0x001a, 0x001a, 0x001a, 0xd2f3, 0x001a, 0x001a, 0xf4ee, 0x001a, 0xd3e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1cc, 0x001a, 0xeadf, 0x001a, 0x001a, 0x001a, 0xbae9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdf5, 0x001a, 0xf2f1, 0xc7fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8d9, 0xc2d4, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5f6, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2e7, 0xdfed, 0x001a, 0x001a, 0xcbca, 0x001a, 0x001a, 0xfadb, 0x001a, 0x001a, 0x001a, 0xb5e8, 0x001a, 0xa6d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5fd, 0x001a, 0x001a, 0xc9f9, 0x001a, 0xe2e4, 0x001a, 0xbdfb, 0x001a, 0x001a, 0xa4d7, 0xc5ce, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5ce, 0xe6d6, 0x001a, 0x001a, 0x001a, 0x001a, 0xbde5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdde, 0xf3ec, 0x001a, 0x001a, 0xe0ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecec, 0xbefb, 0xebdf, 0x001a, 0xf8e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbef9, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3d0, 0xaae0, 0xe2e8, 0x001a, 0x001a, 0xd4e2, 0xfdd2, 0x001a, 0xa8e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3d9, 0x001a, 0x001a, 0x001a, 0x001a, 0xded3, 0x001a, 0xb8f4, 0xbcf7, 0xfddc, 0x001a, 0xece8, 0xe7e4, 0x001a, 0x001a, 0xf7e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2e5, 0x001a, 0x001a, 0xf4d0, 0xafd2, 0xe5dc, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5d0, 0xb4f1, 0xb1fc, 0xf8cc, 0x001a, 0x001a, 0xc6dd, 0xd1fa, 0x001a, 0xdff7, 0x001a, 0x001a, 0xa8fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5ee, 0x001a, 0xcede, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3e7, 0x001a, 0x001a, 0xacf7, 0xc4eb, 0xe1ed, 0xabe0, 0xc7dd, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3d2, 0xbfd2, 0x001a, 0x001a, 0x001a, 0xccca, 0x001a, 0x001a, 0x001a, 0x001a, 0xbffb, 0x001a, 0x001a, 0x001a, 0x001a, 0xfde5, 0xe5dd, 0xcdd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5d0, 0x001a, 0x001a, 0xede8, 0xd2d0, 0x001a, 0xd8d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6f6, 0x001a, 0x001a, 0xaadb, 0x001a, 0x001a, 0x001a, 0xe0f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9d8, 0x001a, 0xa3f4, 0x001a, 0x001a, 0xddf4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1ef, 0x001a, 0x001a, 0xb5d9, 0x001a, 0x001a, 0xabed, 0x001a, 0xb7e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbee, 0xb4cd, 0x001a, 0xf3e0, 0xcdea, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5ec, 0xeee8, 0x001a, 0xa9cb, 0xaff1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdca, 0x001a, 0xa9ec, 0x001a, 0xebf2, 0x001a, 0xeffd, 0x001a, 0xf3f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e6, 0x001a, 0x001a, 0xd8ec, 0x001a, 0x001a, 0x001a, 0xaced, 0x001a, 0xceea, 0x001a, 0xdfe8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfde, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6d2, 0x001a, 0x001a, 0xf4e7, 0xd6d1, 0x001a, 0x001a, 0xc2e6, 0xe3e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0e4, 0x001a, 0x001a, 0x001a, 0xb4d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdef3, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5d7, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8f7, 0x001a, 0x001a, 0xc6e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6dd, 0x001a, 0x001a, 0x001a, 0xfedc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdad8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacda, 0xb0ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaaca, 0xf9e1, 0x001a, 0xb1ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf2, 0x001a, 0x001a, 0xeefa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4f9, 0x001a, 0x001a, 0xecd2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbfb, 0x001a, 0x001a, 0x001a, 0xf0fd, 0x001a, 0xbde0, 0xe3ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaede, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5df, 0x001a, 0x001a, 0xbee5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaded, 0xeafa, 0x001a, 0x001a, 0xeecd, 0xa6ed, 0x001a, 0xaeed, 0xedf0, 0x001a, 0xa1dd, 0x001a, 0xafed, 0xf8fc, 0x001a, 0xebd8, 0x001a, 0x001a, 0x001a, 0xf9cc, 0xb5cd, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9fa, 0x001a, 0xdde1, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e2, 0xcfed, 0x001a, 0x001a, 0x001a, 0xa2dd, 0x001a, 0x001a, 0xcaf9, 0x001a, 0xe8ea, 0x001a, 0xede5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebd3, 0x001a, 0xd4e9, 0xfae1, 0xcce4, 0x001a, 0xe4e1, 0xc7e8, 0x001a, 0x001a, 0xdbce, 0x001a, 0x001a, 0x001a, 0xd5dc, 0x001a, 0xb5f7, 0xf3fc, 0xf3f0, 0xafce, 0xb5f1, 0xd2ef, 0xc8e8, 0xf1eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4cb, 0xbee0, 0xf8e3, 0xe9ea, 0xb2fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e0, 0x001a, 0xe0cf, 0x001a, 0xa5ee, 0x001a, 0x001a, 0xaafa, 0xc3e6, 0xb2e1, 0xabca, 0x001a, 0xe4e3, 0xbbe9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6e2, 0xf2f3, 0x001a, 0xd6ee, 0xb2ea, 0xf6d0, 0xd9ec, 0xcbda, 0xa8cf, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3dd, 0x001a, 0x001a, 0x001a, 0xdbd8, 0x001a, 0xcef9, 0xd5e9, 0xd1e3, 0x001a, 0x001a, 0xbcd2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacd8, 0xccf3, 0x001a, 0xfbcd, 0xd6f6, 0x001a, 0xf5e7, 0xefe8, 0xf9e3, 0xbbd2, 0xf3f3, 0xfbe3, 0x001a, 0xd0de, 0xb0ce, 0x001a, 0xf7d6, 0xd9f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1f5, 0xc4dc, 0x001a, 0xbbf5, 0x001a, 0xd1de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6dc, 0x001a, 0x001a, 0xd2de, 0x001a, 0x001a, 0xe2ed, 0xf6ee, 0xcfea, 0xeef0, 0xfce3, 0x001a, 0xdfd3, 0xf4d3, 0xb3e1, 0x001a, 0xb4e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3f4, 0x001a, 0x001a, 0xc6df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6e9, 0x001a, 0x001a, 0x001a, 0xabdb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9e3, 0xc5eb, 0xa9f4, 0xb6cd, 0xf9d2, 0x001a, 0xadda, 0xe3d2, 0xd1cf, 0x001a, 0x001a, 0x001a, 0x001a, 0xdccb, 0xfacc, 0x001a, 0xddcf, 0x001a, 0x001a, 0xa9e8, 0x001a, 0xbbe3, 0xbae3, 0x001a, 0x001a, 0xdae0, 0x001a, 0x001a, 0x001a, 0xf7ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3dc, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5d3, 0x001a, 0xa6d7, 0x001a, 0xb5f6, 0xdbd7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e1, 0x001a, 0x001a, 0xead4, 0x001a, 0xa3df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdffd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7d0, 0xd4ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaacb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbe4, 0x001a, 0xfbe1, 0xa2cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0d3, 0x001a, 0xbfe4, 0x001a, 0xc0fb, 0x001a, 0xbeda, 0xcde4, 0x001a, 0xb9d6, 0x001a, 0x001a, 0x001a, 0xc0ef, 0x001a, 0xfce1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7dc, 0xe8dc, 0x001a, 0x001a, 0x001a, 0xd6fa, 0x001a, 0xf6d3, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaf1, 0x001a, 0xf2fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfde2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfd5, 0xf8d0, 0x001a, 0x001a, 0xdfcd, 0x001a, 0x001a, 0xcbf5, 0x001a, 0xf0e4, 0xabcb, 0x001a, 0xc4d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfee2, 0x001a, 0xdadd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaeda, 0xeeca, 0x001a, 0x001a, 0x001a, 0xb9d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1e3, 0x001a, 0x001a, 0xe3e8, 0x001a, 0x001a, 0xabf3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9cf, 0x001a, 0x001a, 0x001a, 0xf7d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1d4, 0x001a, 0x001a, 0xe4ce, 0x001a, 0xf2e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaee7, 0x001a, 0xbad6, 0x001a, 0xecdf, 0xc0e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5d8, 0x001a, 0x001a, 0x001a, 0xdce4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9f4, 0xb6f1, 0x001a, 0x001a, 0xdee2, 0xb5e1, 0x001a, 0x001a, 0xefcd, 0xa7f1, 0xe5ce, 0xddcb, 0x001a, 0x001a, 0xe3d9, 0x001a, 0x001a, 0xacf3, 0x001a, 0x001a, 0xf9d0, 0xabec, 0xd3de, 0xe9f7, 0x001a, 0x001a, 0xf5f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdee1, 0xeecb, 0x001a, 0x001a, 0x001a, 0xbce3, 0xd6f8, 0x001a, 0x001a, 0xeedb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1fd, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6f7, 0x001a, 0x001a, 0x001a, 0x001a, 0xdef4, 0x001a, 0x001a, 0xedf2, 0x001a, 0xd9db, 0x001a, 0xa8f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfde1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4de, 0x001a, 0xace0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3ed, 0x001a, 0x001a, 0xe1d3, 0x001a, 0xc8df, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6d9, 0x001a, 0xacfd, 0xd3ef, 0x001a, 0x001a, 0x001a, 0xc1e4, 0xebf8, 0x001a, 0xacdb, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbaf6, 0x001a, 0xdfdb, 0xd3d3, 0xc7f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xceca, 0xc1f8, 0xb4d2, 0x001a, 0x001a, 0xb4dc, 0xb9fa, 0xcfca, 0x001a, 0xb3fc, 0xeaea, 0xebea, 0xfad0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4ed, 0x001a, 0x001a, 0xe7dd, 0x001a, 0x001a, 0xc9df, 0x001a, 0x001a, 0x001a, 0x001a, 0xeddf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcee, 0x001a, 0xc1ef, 0x001a, 0x001a, 0xd2cc, 0x001a, 0xa4dd, 0x001a, 0x001a, 0x001a, 0xcadf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8d3, 0xa8f1, 0x001a, 0x001a, 0x001a, 0xb7cd, 0x001a, 0xd4ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde4, 0xeedf, 0xaccb, 0xbce9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecea, 0x001a, 0x001a, 0x001a, 0xcbdf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbff9, 0xafd6, 0xc6d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaacf, 0x001a, 0x001a, 0xa9ce, 0x001a, 0x001a, 0xf8d6, 0x001a, 0x001a, 0x001a, 0xb7f1, 0xf8ee, 0x001a, 0x001a, 0x001a, 0xd9d9, 0xdff3, 0x001a, 0xc8f8, 0xc6ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6f4, 0x001a, 0x001a, 0xc5e6, 0xd5ef, 0x001a, 0x001a, 0xefcb, 0xdffc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7dc, 0x001a, 0x001a, 0xe7d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9f8, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2e3, 0x001a, 0xbde3, 0x001a, 0xe1cf, 0xc0f0, 0xdaec, 0x001a, 0xd7dd, 0xf0fb, 0x001a, 0x001a, 0xacec, 0x001a, 0x001a, 0x001a, 0xa9f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7fa, 0xc1fb, 0x001a, 0xc0d2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0e5, 0x001a, 0x001a, 0x001a, 0xe5ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xadcb, 0x001a, 0xb0f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5f7, 0x001a, 0xaecb, 0x001a, 0xafda, 0x001a, 0xb6d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7d3, 0xb2fb, 0x001a, 0xc4fd, 0x001a, 0xadec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1fb, 0x001a, 0x001a, 0x001a, 0xe9e5, 0xeee9, 0x001a, 0xf4f3, 0xf3f8, 0xc1f0, 0xafde, 0xb0f8, 0x001a, 0x001a, 0xe0f3, 0xafe7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaddb, 0x001a, 0xb5e6, 0x001a, 0x001a, 0xa8f9, 0x001a, 0x001a, 0xd8dd, 0xd9e8, 0xd6ef, 0x001a, 0x001a, 0x001a, 0xe2d3, 0x001a, 0xdfe2, 0x001a, 0x001a, 0xe0fc, 0xc8d7, 0xadfd, 0x001a, 0x001a, 0x001a, 0xefdf, 0xd3cc, 0xf9d3, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0d4, 0xc7db, 0xd5de, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4f0, 0x001a, 0xd0d5, 0xd9e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7fc, 0xd6dc, 0xe0e2, 0x001a, 0x001a, 0x001a, 0xb0da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3f3, 0x001a, 0xecd3, 0x001a, 0xcbf4, 0x001a, 0x001a, 0x001a, 0xc5fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfde3, 0x001a, 0xb1f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbd0, 0xdbec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcf5, 0xa4f2, 0xced8, 0xcfd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7d2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecfb, 0x001a, 0xc8dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8e4, 0x001a, 0x001a, 0xc1d2, 0x001a, 0x001a, 0x001a, 0xd7f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbd6, 0xd6de, 0x001a, 0x001a, 0xbdf7, 0xaeec, 0x001a, 0x001a, 0x001a, 0xe1d0, 0x001a, 0xf5e0, 0xb3ea, 0x001a, 0xd6ce, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6ec, 0xe1e2, 0xbee3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8fc, 0x001a, 0x001a, 0xf0cd, 0x001a, 0xf6f9, 0x001a, 0x001a, 0xf0df, 0x001a, 0x001a, 0x001a, 0xbfe5, 0x001a, 0x001a, 0x001a, 0xbfce, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1fc, 0xb0ed, 0xd1fd, 0xbbf6, 0x001a, 0x001a, 0xcff9, 0xdaeb, 0xc1ca, 0x001a, 0xb8d2, 0xf1cd, 0x001a, 0xd3e3, 0xe6fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xede6, 0x001a, 0x001a, 0x001a, 0xfae3, 0x001a, 0x001a, 0xaaf0, 0xd0f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2fc, 0x001a, 0xa7f8, 0x001a, 0x001a, 0x001a, 0xe5e1, 0xf9ee, 0x001a, 0x001a, 0x001a, 0xf6e7, 0xedea, 0x001a, 0x001a, 0xb4fc, 0xc2f5, 0x001a, 0x001a, 0xdcd7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5f0, 0x001a, 0xe8dd, 0xedd3, 0xfcf5, 0x001a, 0xbfda, 0x001a, 0xfbcc, 0x001a, 0x001a, 0x001a, 0xfad3, 0xa4f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7ef, 0x001a, 0xc3d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedfb, 0x001a, 0xade0, 0x001a, 0x001a, 0xeeea, 0xb3fb, 0xc2e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7f6, 0xddd2, 0x001a, 0xccdf, 0x001a, 0x001a, 0xc9fc, 0x001a, 0x001a, 0xa9e5, 0xf6e0, 0xb3f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfee1, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0cb, 0x001a, 0xefea, 0xf0ea, 0x001a, 0x001a, 0x001a, 0xc0da, 0xb4f8, 0xf2eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3e4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7e9, 0xf1e4, 0x001a, 0x001a, 0x001a, 0xefca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcafc, 0x001a, 0x001a, 0x001a, 0xe1f3, 0x001a, 0x001a, 0xc4cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e3, 0x001a, 0xc5cb, 0xb4ea, 0x001a, 0x001a, 0xbde9, 0x001a, 0xc9d7, 0x001a, 0x001a, 0xdbeb, 0xb1ed, 0x001a, 0xc3cc, 0xbef7, 0xcbfc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4f8, 0x001a, 0xb7d9, 0x001a, 0x001a, 0xd3f3, 0xd4f3, 0x001a, 0x001a, 0x001a, 0xe4f7, 0x001a, 0xd1f7, 0x001a, 0x001a, 0xb7d8, 0xb1ce, 0xc2ca, 0x001a, 0x001a, 0xb4fb, 0xc6cb, 0x001a, 0x001a, 0xf6f0, 0x001a, 0x001a, 0xe7d5, 0x001a, 0xd0ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4cc, 0xafcb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaaf4, 0xafe9, 0x001a, 0x001a, 0xc3f5, 0xd8e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9dd, 0x001a, 0x001a, 0x001a, 0xf3f1, 0x001a, 0xfbd5, 0xbbde, 0x001a, 0x001a, 0xfbf4, 0x001a, 0x001a, 0x001a, 0xf3fd, 0xf2fd, 0xa6f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9dd, 0x001a, 0x001a, 0xd3d4, 0x001a, 0xa8cc, 0x001a, 0xc1da, 0xd5cc, 0x001a, 0xe4d9, 0x001a, 0x001a, 0x001a, 0xcafa, 0x001a, 0x001a, 0x001a, 0xe3e5, 0x001a, 0x001a, 0x001a, 0xbcd3, 0x001a, 0x001a, 0x001a, 0xf0ca, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4d0, 0x001a, 0x001a, 0x001a, 0xd0ca, 0xabfa, 0xebeb, 0xf8e7, 0xe5d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4f3, 0x001a, 0x001a, 0x001a, 0xfbd4, 0xe3fc, 0xd8fa, 0x001a, 0xd5f3, 0x001a, 0xabcf, 0x001a, 0x001a, 0xf3eb, 0xfcd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4d3, 0xfccd, 0x001a, 0xe6d9, 0x001a, 0xf9e2, 0xa1e2, 0xd4eb, 0x001a, 0xf7e0, 0xb2e4, 0xfccc, 0x001a, 0x001a, 0x001a, 0xe4fb, 0x001a, 0x001a, 0x001a, 0xabf4, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdd0, 0x001a, 0xf1ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8ef, 0x001a, 0x001a, 0x001a, 0xc0d7, 0x001a, 0xfaee, 0xf4fd, 0x001a, 0x001a, 0xe3d3, 0x001a, 0xc2fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8d5, 0xaedb, 0xb6e1, 0xb7f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfe0, 0xc3fb, 0xeadd, 0x001a, 0xa2e2, 0x001a, 0xa6ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8f6, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcadd, 0x001a, 0x001a, 0xe2d0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6dd, 0x001a, 0x001a, 0xebdd, 0x001a, 0x001a, 0xf9e4, 0x001a, 0x001a, 0xafe3, 0xfcd0, 0x001a, 0x001a, 0x001a, 0xfcf4, 0x001a, 0x001a, 0x001a, 0x001a, 0xbccc, 0xeaf7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4e5, 0xf1df, 0x001a, 0x001a, 0xe1f7, 0x001a, 0xf7f9, 0xb9ef, 0x001a, 0x001a, 0xd8f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9f8, 0x001a, 0x001a, 0x001a, 0xbdee, 0x001a, 0x001a, 0x001a, 0xc6d8, 0x001a, 0x001a, 0xe3e4, 0xcef5, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9dd, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7d9, 0xb9d2, 0xc3d5, 0x001a, 0x001a, 0xe5da, 0xd0da, 0x001a, 0xd9d1, 0xd8ce, 0x001a, 0xdecb, 0xacf4, 0xfbda, 0x001a, 0xe9f6, 0xf3e8, 0xaccf, 0xf0f0, 0x001a, 0xfdf4, 0xc8db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0ce, 0xd4e3, 0xcfd1, 0xf5f1, 0x001a, 0xf2cd, 0x001a, 0xebcf, 0x001a, 0x001a, 0x001a, 0xb8cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6e3, 0xdad1, 0x001a, 0xa5f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6f2, 0x001a, 0xcee4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbd3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9f1, 0x001a, 0x001a, 0x001a, 0xc9f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8ef, 0xc9e6, 0x001a, 0xb8d8, 0xf3fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5f3, 0x001a, 0x001a, 0xa4f8, 0x001a, 0x001a, 0xf3d1, 0xc8e6, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9dc, 0xd7de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfcb, 0x001a, 0x001a, 0x001a, 0xeccf, 0x001a, 0x001a, 0x001a, 0x001a, 0xdff4, 0x001a, 0x001a, 0xf4d1, 0xbad2, 0x001a, 0x001a, 0x001a, 0xf2df, 0x001a, 0x001a, 0x001a, 0xb7e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e2, 0xfcd3, 0x001a, 0x001a, 0xe6ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9db, 0x001a, 0x001a, 0x001a, 0xfae4, 0x001a, 0xdecf, 0x001a, 0x001a, 0xd0ce, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3d5, 0xf5f3, 0xaef7, 0x001a, 0x001a, 0xc8ef, 0x001a, 0xf3cd, 0xcff5, 0xf3e5, 0xc2f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1ca, 0x001a, 0x001a, 0x001a, 0xf1ea, 0x001a, 0xa6d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdad9, 0xabf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7eb, 0x001a, 0x001a, 0x001a, 0xc0e5, 0xb5fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9cc, 0xc6fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5ea, 0x001a, 0xaae5, 0xbadf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfe1, 0x001a, 0xd1da, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8e1, 0x001a, 0xf4e8, 0xfdd3, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaf2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6da, 0xb3f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdfd, 0x001a, 0x001a, 0x001a, 0xb6f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8d9, 0xb9d9, 0xc9ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xced6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbf7, 0xaedf, 0xf5e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5d2, 0x001a, 0x001a, 0x001a, 0xd5d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xccf4, 0xfcda, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8d9, 0x001a, 0xebf7, 0xc9f5, 0x001a, 0xbcf3, 0x001a, 0xd2da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6e8, 0x001a, 0x001a, 0xcfd6, 0xbaf4, 0x001a, 0xc9f7, 0x001a, 0x001a, 0xaacc, 0x001a, 0x001a, 0xc3f0, 0xd6cc, 0x001a, 0x001a, 0x001a, 0xd3d0, 0x001a, 0xbdd3, 0x001a, 0x001a, 0x001a, 0xfbdb, 0x001a, 0xe0cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4d3, 0xf7f6, 0x001a, 0x001a, 0xbad5, 0xcdf3, 0xe1cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadf4, 0x001a, 0xaafc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf7, 0x001a, 0x001a, 0x001a, 0xf6e8, 0x001a, 0xe7da, 0x001a, 0x001a, 0x001a, 0xccf7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xeee0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6ce, 0xabfc, 0xbbd5, 0x001a, 0x001a, 0xa8f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5e2, 0xb9cd, 0xf2ea, 0xc7cb, 0x001a, 0xf4cd, 0x001a, 0x001a, 0xafdb, 0xd9ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbacd, 0x001a, 0x001a, 0xf9fc, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3df, 0xe7ce, 0xc2da, 0x001a, 0xadcf, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9e7, 0xa8f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2f3, 0x001a, 0x001a, 0x001a, 0xf2ca, 0xa4df, 0x001a, 0x001a, 0xc4d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7cc, 0xc2e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbcd, 0x001a, 0xdaef, 0xd8ee, 0x001a, 0xa7dd, 0xa6e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0e0, 0x001a, 0x001a, 0x001a, 0xb0d6, 0xcaf8, 0x001a, 0xfafc, 0x001a, 0xfed9, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0de, 0x001a, 0x001a, 0x001a, 0xecdd, 0xe8da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0d4, 0x001a, 0xf9d6, 0x001a, 0xd7cd, 0xd8de, 0x001a, 0x001a, 0xf8f2, 0x001a, 0xd6e4, 0x001a, 0x001a, 0xc5d0, 0xaef4, 0x001a, 0xa8dd, 0x001a, 0x001a, 0x001a, 0xc5ed, 0xd6f3, 0x001a, 0x001a, 0xd9de, 0xe6e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8d3, 0x001a, 0xb0db, 0x001a, 0x001a, 0xdae5, 0xbfe3, 0x001a, 0x001a, 0x001a, 0xb1db, 0x001a, 0x001a, 0x001a, 0xe9d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e0, 0xdbef, 0x001a, 0x001a, 0xe9f0, 0x001a, 0x001a, 0xb2d7, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdd0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9d9, 0x001a, 0x001a, 0xfed0, 0x001a, 0xedec, 0xa9d3, 0x001a, 0xa9f2, 0xc4f0, 0x001a, 0x001a, 0xe2e2, 0xefe9, 0x001a, 0x001a, 0x001a, 0xd1f9, 0x001a, 0x001a, 0xd9e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdae8, 0xc3da, 0xc4da, 0xc5d4, 0x001a, 0xfae7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0cd, 0xb0e3, 0x001a, 0xb2db, 0xc4fb, 0x001a, 0xe3f3, 0x001a, 0xa5d9, 0xe7fb, 0xcbdd, 0xd4d0, 0x001a, 0xb6e6, 0xaee0, 0xdafd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5dc, 0xf8e0, 0xb1e7, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0f5, 0x001a, 0xdcd8, 0xc6ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9e1, 0x001a, 0xc0e3, 0xc0f9, 0xf0e9, 0x001a, 0x001a, 0xdbd9, 0x001a, 0xe4f3, 0x001a, 0x001a, 0x001a, 0xb6dc, 0xe9e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5f0, 0xc1e3, 0xccfc, 0xcdfc, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbf2, 0x001a, 0xccf2, 0x001a, 0x001a, 0x001a, 0xcfe4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbf1, 0x001a, 0xd9fa, 0x001a, 0xb8f1, 0xf5fd, 0xf9e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbe7, 0xb7fc, 0xe4fc, 0xc5fb, 0xe7e3, 0xb9d8, 0x001a, 0xf8f6, 0x001a, 0x001a, 0xc5dc, 0xd8cc, 0x001a, 0x001a, 0x001a, 0xafe0, 0xe7f4, 0x001a, 0xdcef, 0xfccf, 0xddef, 0x001a, 0xaaf2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbefd, 0x001a, 0x001a, 0xacca, 0xbbfd, 0xc7fd, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2e7, 0x001a, 0xd1ea, 0xf4df, 0x001a, 0x001a, 0x001a, 0x001a, 0xecd1, 0xdee4, 0xc3e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6d9, 0x001a, 0x001a, 0xbccd, 0x001a, 0xe5f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5ed, 0x001a, 0x001a, 0xbad9, 0x001a, 0x001a, 0x001a, 0xe7ed, 0xb5fb, 0xecf8, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7e0, 0x001a, 0xd9cc, 0x001a, 0x001a, 0xc6d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5e7, 0x001a, 0xf5d5, 0xbed3, 0x001a, 0xfbfc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2e4, 0x001a, 0x001a, 0xf5df, 0x001a, 0x001a, 0xf8e8, 0xedf8, 0x001a, 0x001a, 0xc7ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8e8, 0x001a, 0xd8cd, 0xd6e7, 0xdacc, 0x001a, 0x001a, 0xe3ca, 0xf6df, 0xc7f0, 0xc6f0, 0x001a, 0xbad8, 0x001a, 0xf4f1, 0xf0f4, 0xccf5, 0x001a, 0x001a, 0xe5fc, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5ea, 0xf3ea, 0x001a, 0xdbdd, 0x001a, 0xd7dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdde, 0xf9f2, 0x001a, 0xc7d5, 0x001a, 0x001a, 0x001a, 0xd0d8, 0x001a, 0xc8f0, 0xa1d1, 0xa2d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4d9, 0xe8d6, 0xcad9, 0x001a, 0xb1da, 0xc7d8, 0xe2dc, 0xcef3, 0xf4f5, 0x001a, 0x001a, 0xb9f1, 0x001a, 0x001a, 0xd3da, 0x001a, 0xeaf6, 0x001a, 0x001a, 0x001a, 0xf5cf, 0x001a, 0x001a, 0xaefd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2ca, 0x001a, 0x001a, 0xb4df, 0x001a, 0x001a, 0x001a, 0x001a, 0xddd7, 0xbafa, 0xa7ee, 0xbdf5, 0x001a, 0xf5f8, 0x001a, 0x001a, 0xe8ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1d4, 0x001a, 0xa3d1, 0xd6e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8f9, 0x001a, 0xcadb, 0xf9cb, 0xd4d4, 0x001a, 0xdcd9, 0x001a, 0xbeee, 0x001a, 0xedf7, 0x001a, 0x001a, 0x001a, 0xeed2, 0x001a, 0x001a, 0xe6e1, 0xf9f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeddd, 0x001a, 0xdbe8, 0x001a, 0xb3db, 0x001a, 0x001a, 0x001a, 0xf7d1, 0xb0e0, 0x001a, 0x001a, 0xe2d4, 0x001a, 0xd7f6, 0x001a, 0xf9d7, 0x001a, 0x001a, 0xddd8, 0x001a, 0xfdcd, 0xabf2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdcd, 0xc2f8, 0x001a, 0x001a, 0xacf2, 0x001a, 0x001a, 0xadca, 0xaeca, 0xaecf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdadb, 0xbbd9, 0xf3ca, 0xd3f6, 0xf8e6, 0xf5ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6ea, 0x001a, 0x001a, 0xf9f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafcf, 0x001a, 0x001a, 0xd3ca, 0x001a, 0x001a, 0xafca, 0xb0d2, 0xbaf1, 0x001a, 0xb3d7, 0xc3e3, 0xfdf3, 0xdade, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbde, 0x001a, 0x001a, 0xdeef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3e2, 0xfbee, 0x001a, 0x001a, 0xf7df, 0xcad7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8ce, 0xdbdb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbf1, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7fa, 0xc6d0, 0x001a, 0x001a, 0xabcc, 0xa8ee, 0x001a, 0x001a, 0xfacb, 0xf9f9, 0xfdcc, 0xfed3, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeef2, 0x001a, 0xd5d4, 0xcddf, 0x001a, 0xb8fc, 0xd0d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdf2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4ca, 0x001a, 0xd9d5, 0x001a, 0x001a, 0x001a, 0xded8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9cd, 0x001a, 0x001a, 0x001a, 0xa9ee, 0xbcf6, 0x001a, 0x001a, 0xdbcc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9f0, 0x001a, 0xfcfc, 0x001a, 0xc9e8, 0xfef4, 0x001a, 0x001a, 0x001a, 0x001a, 0xfce7, 0xded7, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcde, 0x001a, 0xacf0, 0xfecc, 0xe1cd, 0x001a, 0xbae1, 0x001a, 0xefdb, 0xb2da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5d1, 0xb8dc, 0x001a, 0x001a, 0x001a, 0xf6d8, 0x001a, 0xa4d1, 0x001a, 0xe2cd, 0x001a, 0x001a, 0x001a, 0x001a, 0xeadc, 0x001a, 0x001a, 0xf7f0, 0x001a, 0xcaf0, 0xbed0, 0x001a, 0xdcdd, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6d4, 0xd6d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0ed, 0xa1cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5df, 0x001a, 0x001a, 0x001a, 0xf8df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1d4, 0xb2ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcae8, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e3, 0xd0f5, 0x001a, 0x001a, 0x001a, 0xa1f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbe6, 0x001a, 0xf1f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3f9, 0xdbe0, 0xebf6, 0x001a, 0xf1cb, 0x001a, 0xead9, 0xa2f5, 0x001a, 0x001a, 0x001a, 0xd1d7, 0x001a, 0xf8d1, 0xf8ea, 0xf9ea, 0xb3da, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfef, 0x001a, 0x001a, 0xeff1, 0x001a, 0xf6e5, 0xbfee, 0xe4e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfd0, 0x001a, 0xacfa, 0xd1f5, 0xb3e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcef2, 0xb4db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcefc, 0x001a, 0xeedd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbecd, 0x001a, 0xe9da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0cf, 0xd9f7, 0xe6f3, 0x001a, 0x001a, 0xd9ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaace, 0x001a, 0xc8cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7d0, 0x001a, 0xcbf0, 0x001a, 0xc7d0, 0x001a, 0x001a, 0xc5e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdad5, 0x001a, 0xa7d7, 0x001a, 0x001a, 0x001a, 0xc0ee, 0x001a, 0xf6f8, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2f5, 0xe9ed, 0x001a, 0xbcd9, 0x001a, 0xc6e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3f5, 0x001a, 0x001a, 0xd4da, 0xa7e2, 0xfcfb, 0x001a, 0x001a, 0xdcf1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4ca, 0x001a, 0x001a, 0x001a, 0xfae8, 0x001a, 0x001a, 0xe9ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8e9, 0xe5e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9d0, 0xf2d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6d1, 0x001a, 0xcedf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaad3, 0x001a, 0x001a, 0x001a, 0xaccc, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0ef, 0x001a, 0x001a, 0x001a, 0xe5e5, 0xd5d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfcdb, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfecb, 0xeaed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2d4, 0xf6cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xead5, 0xeef1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbfa, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedcf, 0x001a, 0xebed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2d5, 0x001a, 0x001a, 0x001a, 0xbcd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2fd, 0xadf3, 0x001a, 0xdbfd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7d1, 0x001a, 0x001a, 0xe3fd, 0xb3ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4fd, 0xcefa, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0ca, 0x001a, 0xa7f7, 0x001a, 0xb1cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2e6, 0x001a, 0xb6fc, 0xadf2, 0xe1ef, 0xaef3, 0xc6dc, 0xebd9, 0x001a, 0x001a, 0x001a, 0xe0e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6d5, 0xfdcf, 0x001a, 0x001a, 0xddde, 0x001a, 0x001a, 0x001a, 0xd1d9, 0x001a, 0x001a, 0x001a, 0xeae4, 0xcff2, 0x001a, 0xbff7, 0x001a, 0x001a, 0xe6e2, 0xa8e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6e3, 0x001a, 0xd1ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1d6, 0xb2de, 0x001a, 0x001a, 0xe8e0, 0x001a, 0x001a, 0xabd3, 0x001a, 0xdceb, 0x001a, 0x001a, 0xafdf, 0x001a, 0xc3ca, 0x001a, 0x001a, 0xfcee, 0x001a, 0xc3fd, 0x001a, 0x001a, 0x001a, 0xf6eb, 0xb2cf, 0x001a, 0x001a, 0x001a, 0x001a, 0xecd9, 0x001a, 0xbdd9, 0x001a, 0xdfd8, 0x001a, 0x001a, 0xb8d4, 0xbeeb, 0xefdd, 0x001a, 0xf0dd, 0xf1dd, 0xf2dd, 0x001a, 0x001a, 0xbed9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6fb, 0xb3cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabe4, 0x001a, 0xc5da, 0x001a, 0xecd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9e2, 0x001a, 0x001a, 0xbcde, 0xb5e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0db, 0x001a, 0xe2ef, 0xf0f1, 0xb4cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1db, 0x001a, 0xb1e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5df, 0x001a, 0xd2f9, 0x001a, 0x001a, 0xfde7, 0x001a, 0x001a, 0xa3e6, 0xf1fb, 0xb0cb, 0xaef2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7cd, 0x001a, 0xdce8, 0x001a, 0x001a, 0xd7e7, 0x001a, 0x001a, 0xc0f7, 0x001a, 0xe3d0, 0x001a, 0x001a, 0x001a, 0xa1da, 0x001a, 0x001a, 0x001a, 0xbdcc, 0x001a, 0x001a, 0xa9d1, 0xccdd, 0x001a, 0x001a, 0xfee3, 0xaad1, 0xaae8, 0x001a, 0xb6ea, 0xfaf9, 0xcce6, 0xd8f6, 0x001a, 0x001a, 0x001a, 0xc7d4, 0x001a, 0x001a, 0x001a, 0xcbd9, 0x001a, 0xd2d9, 0xcbd3, 0xf7d8, 0xa9da, 0xf8f5, 0x001a, 0x001a, 0xdede, 0xaff2, 0xa9f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8d8, 0x001a, 0x001a, 0xc1ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1f9, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3dd, 0xfaea, 0x001a, 0xbdf6, 0xbbe1, 0xbfcd, 0xd4f4, 0xcde6, 0x001a, 0xcffc, 0xa2fb, 0x001a, 0xdce0, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbf4, 0xd5da, 0x001a, 0xb2f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2fb, 0x001a, 0xf6db, 0x001a, 0xdfde, 0x001a, 0x001a, 0x001a, 0xf2db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcf8, 0xeef7, 0xe8eb, 0x001a, 0xfad2, 0x001a, 0x001a, 0xbcf1, 0x001a, 0x001a, 0xdafa, 0x001a, 0x001a, 0xeada, 0xc6da, 0xc1f7, 0x001a, 0x001a, 0xb6e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7e5, 0xacd6, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9e1, 0x001a, 0xaae2, 0x001a, 0xa6d5, 0x001a, 0x001a, 0xd7d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0f2, 0x001a, 0xfbea, 0x001a, 0xdde0, 0xf3fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdf1, 0x001a, 0x001a, 0xe7e2, 0xd7fd, 0x001a, 0xc8ce, 0xb7ea, 0x001a, 0xc0fc, 0x001a, 0xe7fd, 0xeff7, 0x001a, 0x001a, 0xb5d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbaef, 0xddf1, 0x001a, 0xb3de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbe8, 0x001a, 0x001a, 0xddf8, 0x001a, 0x001a, 0xc7fb, 0xc8d5, 0x001a, 0xdfd7, 0x001a, 0xa9dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1e9, 0x001a, 0x001a, 0xadfa, 0xd9f6, 0xf4fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaaf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeee6, 0x001a, 0xdccc, 0xbce1, 0xefe0, 0x001a, 0x001a, 0xbfe9, 0xfdfc, 0xcee6, 0x001a, 0x001a, 0xd7e1, 0x001a, 0xcfe6, 0x001a, 0xf1f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3e4, 0x001a, 0x001a, 0xfbe4, 0x001a, 0x001a, 0xe4f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3ef, 0x001a, 0x001a, 0xeecf, 0xbef6, 0xb2e0, 0xfefc, 0xabd1, 0x001a, 0x001a, 0x001a, 0xfad7, 0x001a, 0x001a, 0x001a, 0xc8fb, 0x001a, 0xd7e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3d4, 0xf8f0, 0xa8d7, 0x001a, 0x001a, 0x001a, 0xe7e1, 0x001a, 0x001a, 0xbfd3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4ef, 0x001a, 0xc5d7, 0xe2eb, 0x001a, 0x001a, 0xe7fc, 0x001a, 0x001a, 0xa2e4, 0x001a, 0xe8e2, 0x001a, 0xd0e6, 0x001a, 0xe8fb, 0xe8f4, 0xf4e5, 0xbcf4, 0xd5f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6df, 0x001a, 0xb9fc, 0xc2ee, 0xf5ca, 0x001a, 0x001a, 0x001a, 0xe5ef, 0xe2cb, 0xa4d4, 0x001a, 0xe0de, 0xfdda, 0xc6e4, 0xbee8, 0x001a, 0x001a, 0x001a, 0x001a, 0xdee0, 0xb4f6, 0xd2ea, 0x001a, 0xfbf9, 0x001a, 0x001a, 0xc2e0, 0x001a, 0xe4ca, 0x001a, 0xb7e7, 0x001a, 0xfdea, 0x001a, 0xddd9, 0x001a, 0xb4da, 0xaaee, 0xe9fb, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbdb, 0xb5da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbef1, 0x001a, 0x001a, 0xacd3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9fb, 0x001a, 0xcfdf, 0x001a, 0x001a, 0xc0d3, 0xd7e3, 0x001a, 0xe6ef, 0xd0fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0e9, 0x001a, 0x001a, 0x001a, 0xd3f5, 0x001a, 0x001a, 0xdcec, 0xb7f7, 0x001a, 0x001a, 0xb8ea, 0xf9d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdef1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6d7, 0xb5cf, 0x001a, 0xa8d9, 0x001a, 0x001a, 0xeeec, 0x001a, 0x001a, 0xaadd, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2cd, 0xaee8, 0x001a, 0x001a, 0x001a, 0xbde1, 0x001a, 0xd1f2, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e9, 0x001a, 0x001a, 0x001a, 0xfcd2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5db, 0x001a, 0xe7f3, 0xfed8, 0x001a, 0x001a, 0x001a, 0xd1fc, 0x001a, 0xb2ed, 0xaff4, 0x001a, 0xa3fb, 0x001a, 0x001a, 0xc1fc, 0x001a, 0xabee, 0xa5d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2f4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9ee, 0x001a, 0x001a, 0x001a, 0xcafb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3cd, 0xbbd8, 0x001a, 0xdbe5, 0xf7f8, 0x001a, 0x001a, 0x001a, 0xd4f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9d7, 0x001a, 0xc9cb, 0x001a, 0x001a, 0xd1e6, 0xccf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaed8, 0x001a, 0xd3f9, 0xfed5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcd8, 0xb0f2, 0x001a, 0x001a, 0x001a, 0x001a, 0xabe2, 0xe8f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeced, 0x001a, 0xb8e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfeda, 0x001a, 0x001a, 0xbecc, 0x001a, 0x001a, 0xfcf2, 0xebda, 0x001a, 0xd8e2, 0xd6ed, 0x001a, 0x001a, 0xd1d6, 0xb3e0, 0x001a, 0x001a, 0xd2fc, 0x001a, 0xc8eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1d3, 0xcdf0, 0x001a, 0xf7cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2ed, 0x001a, 0xd8d4, 0xc9dc, 0xf1d7, 0x001a, 0x001a, 0xbbdf, 0x001a, 0x001a, 0xa5f3, 0x001a, 0x001a, 0x001a, 0xcdf4, 0x001a, 0x001a, 0x001a, 0x001a, 0xbff1, 0xb1f8, 0x001a, 0xfae9, 0x001a, 0x001a, 0x001a, 0xcbfb, 0x001a, 0x001a, 0xd5ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4f9, 0xcaf7, 0x001a, 0x001a, 0xc8d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8fc, 0xbdf3, 0x001a, 0xfeee, 0x001a, 0xfee7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2d3, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6d3, 0x001a, 0xadcc, 0xfaf6, 0xb2d6, 0xd8d2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9e7, 0x001a, 0x001a, 0x001a, 0x001a, 0xadf0, 0xccfb, 0xa1eb, 0x001a, 0x001a, 0xa6d4, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdfb, 0x001a, 0xbdd5, 0xdff1, 0x001a, 0x001a, 0xfbf6, 0x001a, 0xb4de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebd5, 0x001a, 0x001a, 0xc8e5, 0x001a, 0x001a, 0x001a, 0xa4fb, 0xb9d4, 0x001a, 0x001a, 0xe1de, 0x001a, 0xa3e4, 0x001a, 0x001a, 0x001a, 0xb7d7, 0x001a, 0xeef8, 0x001a, 0x001a, 0x001a, 0xb5de, 0x001a, 0x001a, 0xd2d6, 0x001a, 0xd5f9, 0xbae7, 0xd5eb, 0xf7d5, 0xe7ef, 0xbee1, 0x001a, 0x001a, 0x001a, 0xaefa, 0x001a, 0x001a, 0x001a, 0xe9d6, 0xeed6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbe7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4ce, 0x001a, 0x001a, 0x001a, 0xa5fb, 0xeee1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8f7, 0x001a, 0x001a, 0x001a, 0x001a, 0xcefb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdfb, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6cf, 0x001a, 0x001a, 0x001a, 0xc7ed, 0xacee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddcc, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7f6, 0x001a, 0x001a, 0x001a, 0xfae6, 0x001a, 0x001a, 0x001a, 0xa4f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcfd, 0xb3ed, 0xc9ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8ef, 0x001a, 0x001a, 0xbfe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbfa, 0xe3cb, 0xa9f7, 0x001a, 0xa6fb, 0x001a, 0x001a, 0x001a, 0xb9dc, 0x001a, 0x001a, 0x001a, 0xc0f1, 0xc8ed, 0xc3ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadd6, 0x001a, 0x001a, 0xcefd, 0x001a, 0x001a, 0x001a, 0xa1e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4fb, 0xa7d5, 0x001a, 0x001a, 0x001a, 0xf6f1, 0x001a, 0xd3e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdecc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2f8, 0x001a, 0x001a, 0x001a, 0xebdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6fd, 0x001a, 0x001a, 0x001a, 0x001a, 0xeae5, 0x001a, 0x001a, 0xe0f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xccdb, 0xcddd, 0x001a, 0x001a, 0x001a, 0xc8d4, 0x001a, 0x001a, 0xedd9, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbe6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8fd, 0x001a, 0xa1d6, 0xbffd, 0x001a, 0xd3fc, 0x001a, 0xa1ef, 0x001a, 0xbce7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeed1, 0x001a, 0x001a, 0xd5e6, 0x001a, 0x001a, 0xf2e9, 0x001a, 0xb0df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0d8, 0xbafc, 0xaffd, 0xcef0, 0x001a, 0xe1db, 0x001a, 0x001a, 0xc9e5, 0x001a, 0xb4ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbe9, 0xa8ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7fd, 0x001a, 0x001a, 0xa7fb, 0x001a, 0xc2e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9e2, 0x001a, 0x001a, 0xecdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8fd, 0xf9fd, 0x001a, 0x001a, 0x001a, 0xbff6, 0x001a, 0x001a, 0xa7e7, 0x001a, 0xd7e6, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3d4, 0xc9d4, 0x001a, 0x001a, 0x001a, 0x001a, 0xfad6, 0x001a, 0xf2d7, 0x001a, 0xc0e1, 0x001a, 0xe2db, 0xd8e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbde7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcff0, 0xbef3, 0xace2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7f5, 0xf0e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8fd, 0xe8e3, 0x001a, 0xa7d4, 0xfce8, 0xd2fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeff8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0f0, 0x001a, 0xf0f7, 0xb3ee, 0x001a, 0x001a, 0xbaea, 0x001a, 0xd3ea, 0x001a, 0x001a, 0xc9ed, 0xabdd, 0x001a, 0x001a, 0x001a, 0xace5, 0xa1fd, 0x001a, 0xd0df, 0xb3ec, 0x001a, 0xd1df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeded, 0xb8f8, 0xfaf7, 0x001a, 0x001a, 0x001a, 0xabf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbad4, 0xb3e4, 0x001a, 0xdae9, 0x001a, 0xb6de, 0x001a, 0xbfd9, 0x001a, 0xc0d9, 0xefd6, 0x001a, 0x001a, 0x001a, 0x001a, 0xccd9, 0x001a, 0xaada, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5f7, 0x001a, 0x001a, 0x001a, 0xb2cc, 0x001a, 0x001a, 0xf9df, 0xe0d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbd4, 0x001a, 0x001a, 0x001a, 0x001a, 0xfafd, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3cc, 0x001a, 0x001a, 0xf3db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2df, 0x001a, 0xcace, 0x001a, 0xdaee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4e4, 0x001a, 0xcffb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7cf, 0x001a, 0xc3ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeace, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xade2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1d7, 0xf5fa, 0x001a, 0x001a, 0xc9d5, 0xacf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9f3, 0x001a, 0x001a, 0x001a, 0x001a, 0xedd8, 0xc4e3, 0xf1f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e8, 0x001a, 0x001a, 0x001a, 0xfae0, 0xc4ee, 0xded9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2eb, 0xa3eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2fc, 0xbbea, 0x001a, 0x001a, 0x001a, 0x001a, 0xabe8, 0xe2de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefed, 0x001a, 0xa3e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcd4, 0x001a, 0xeafc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee7, 0x001a, 0xf2fc, 0x001a, 0x001a, 0xb4d6, 0x001a, 0x001a, 0xaee2, 0x001a, 0xb7d3, 0xccfa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcfa, 0x001a, 0xb5ed, 0xe3e1, 0x001a, 0xace8, 0x001a, 0xdde8, 0x001a, 0x001a, 0xe9ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdf4, 0x001a, 0xb8cf, 0xdbe9, 0xacd1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9eb, 0x001a, 0xcce8, 0x001a, 0x001a, 0x001a, 0xb7de, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcd6, 0xe5d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddfa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6da, 0x001a, 0xb1ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8da, 0xa6df, 0x001a, 0xb3f9, 0xd2f2, 0x001a, 0xc4ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbce, 0x001a, 0x001a, 0xf5cd, 0x001a, 0x001a, 0x001a, 0xb0fd, 0xa8d5, 0x001a, 0xc1f1, 0x001a, 0x001a, 0xe9e2, 0xcadc, 0xb4ec, 0xc0fa, 0x001a, 0x001a, 0xa8fb, 0xa8d0, 0x001a, 0x001a, 0xecda, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeed9, 0x001a, 0xfbe0, 0x001a, 0x001a, 0x001a, 0xeaef, 0xdefa, 0x001a, 0x001a, 0xc4e0, 0x001a, 0xb9cf, 0x001a, 0xcad5, 0xe2d7, 0xafe2, 0x001a, 0xb8d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaf6, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2ef, 0xdae2, 0xfcf6, 0x001a, 0x001a, 0xd0fb, 0xadd1, 0x001a, 0xe4cd, 0x001a, 0xaed1, 0xeddc, 0xcee8, 0x001a, 0xf9f0, 0xb5ce, 0xfce6, 0x001a, 0x001a, 0xfbd7, 0xd6d0, 0xf5dd, 0xf1f7, 0x001a, 0xfdf6, 0x001a, 0xf7db, 0x001a, 0x001a, 0x001a, 0x001a, 0xeafb, 0xdce9, 0xc1d9, 0x001a, 0xf2f5, 0xc5e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2f9, 0x001a, 0xbcea, 0x001a, 0xc5d2, 0xd1fb, 0xc0e7, 0xa5eb, 0x001a, 0xfadf, 0xa2e3, 0xb9d7, 0x001a, 0xc3e9, 0x001a, 0xfde8, 0xafe8, 0x001a, 0x001a, 0xd3f2, 0xa9fb, 0xa5d8, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8d0, 0x001a, 0x001a, 0x001a, 0xafd1, 0xe3d7, 0x001a, 0x001a, 0x001a, 0xc6e0, 0x001a, 0xa2d6, 0x001a, 0xf0ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3d7, 0x001a, 0x001a, 0x001a, 0xd4fc, 0x001a, 0xd7da, 0xdfcc, 0x001a, 0xd4f2, 0x001a, 0xb0d1, 0x001a, 0xe0cc, 0x001a, 0xfddb, 0xbff3, 0x001a, 0xd1f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbfc, 0x001a, 0xb0e2, 0x001a, 0x001a, 0xa5e6, 0x001a, 0x001a, 0x001a, 0xdbe2, 0x001a, 0x001a, 0x001a, 0xdedf, 0x001a, 0xc7e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeff2, 0x001a, 0x001a, 0x001a, 0xe1cc, 0x001a, 0x001a, 0x001a, 0x001a, 0xead6, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2e7, 0x001a, 0x001a, 0x001a, 0xb6ce, 0x001a, 0xc0f3, 0x001a, 0xfecd, 0x001a, 0x001a, 0x001a, 0xd2fb, 0x001a, 0xf8f8, 0xfbf7, 0x001a, 0x001a, 0xbfe8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbadc, 0x001a, 0x001a, 0xb4cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7f1, 0x001a, 0x001a, 0x001a, 0xb8e8, 0x001a, 0x001a, 0xf6ca, 0x001a, 0xa4e4, 0xd6f4, 0x001a, 0x001a, 0x001a, 0xe6df, 0x001a, 0x001a, 0x001a, 0xa7df, 0x001a, 0xe7df, 0xc1e1, 0x001a, 0xc4e9, 0x001a, 0x001a, 0xcbdc, 0xc5e9, 0x001a, 0x001a, 0x001a, 0xa3ef, 0xa6eb, 0xa3cb, 0xe9e3, 0x001a, 0x001a, 0x001a, 0xfbd1, 0xa4ef, 0x001a, 0xebef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4d0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3cd, 0x001a, 0x001a, 0xe6e8, 0x001a, 0xa5ef, 0x001a, 0xccd3, 0xedda, 0x001a, 0x001a, 0x001a, 0x001a, 0xbad7, 0x001a, 0xd5f2, 0xe5f5, 0xefd9, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4f9, 0x001a, 0x001a, 0xd4d5, 0xcffd, 0x001a, 0x001a, 0x001a, 0xe3db, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1f1, 0xb6ec, 0x001a, 0x001a, 0x001a, 0x001a, 0xfefb, 0xd7d3, 0x001a, 0xb1d1, 0x001a, 0xb1cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2cb, 0xc2f1, 0x001a, 0x001a, 0xe1f4, 0xb5f9, 0x001a, 0x001a, 0xc3e1, 0xc2e1, 0x001a, 0xf7eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcacb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdef8, 0xaaf9, 0xf7ca, 0x001a, 0xb7ed, 0x001a, 0x001a, 0xb8d3, 0xd6f2, 0x001a, 0x001a, 0xd9d4, 0xc5ee, 0xf0f2, 0x001a, 0x001a, 0x001a, 0xb2ca, 0x001a, 0x001a, 0xbbdc, 0x001a, 0xf8f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7ec, 0x001a, 0x001a, 0x001a, 0x001a, 0xcae5, 0x001a, 0xc0f6, 0xddfd, 0x001a, 0x001a, 0xe3d4, 0xe2cc, 0x001a, 0xd4f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3d3, 0x001a, 0xa6d8, 0x001a, 0xc1f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6dd, 0x001a, 0xc0cd, 0x001a, 0x001a, 0x001a, 0xdce5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0e8, 0xb0f4, 0xeaf3, 0xeeda, 0x001a, 0xbbd7, 0x001a, 0xb1e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaad7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbd6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfe4, 0x001a, 0xd6ca, 0x001a, 0x001a, 0x001a, 0xa8eb, 0x001a, 0x001a, 0x001a, 0xfedb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2f6, 0x001a, 0x001a, 0xbbef, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdd4, 0x001a, 0x001a, 0xc8e0, 0x001a, 0x001a, 0x001a, 0xb9e8, 0x001a, 0xa6ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4cd, 0x001a, 0x001a, 0xf4d4, 0xa1db, 0xdcdb, 0xdddb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcee, 0x001a, 0xcbcb, 0xd5fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebce, 0x001a, 0xc1cd, 0x001a, 0x001a, 0xd3fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4f5, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9d9, 0x001a, 0x001a, 0xdde9, 0xcddb, 0x001a, 0x001a, 0xcedd, 0x001a, 0xc3e7, 0x001a, 0xccec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf9, 0x001a, 0x001a, 0x001a, 0xcccb, 0x001a, 0x001a, 0x001a, 0x001a, 0xfce0, 0xa8d4, 0x001a, 0xd3ed, 0xefd8, 0x001a, 0xd7f2, 0x001a, 0xf8ca, 0xefda, 0x001a, 0x001a, 0xd4d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdd9, 0x001a, 0x001a, 0x001a, 0xeed8, 0x001a, 0xc1f2, 0x001a, 0x001a, 0x001a, 0xd3df, 0x001a, 0x001a, 0x001a, 0xf0da, 0x001a, 0xeae2, 0x001a, 0x001a, 0xfde0, 0x001a, 0x001a, 0xf8d8, 0x001a, 0x001a, 0x001a, 0xaff7, 0xb6da, 0x001a, 0xd7ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8f2, 0x001a, 0xf9d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdffa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefcf, 0xc2d9, 0x001a, 0xd2f0, 0x001a, 0xd1e4, 0x001a, 0x001a, 0x001a, 0xb7f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2e2, 0x001a, 0xbdd4, 0x001a, 0x001a, 0xced9, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9d4, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2cd, 0xdae7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaad9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbed8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaddc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebe2, 0xfcd6, 0x001a, 0x001a, 0xf9ca, 0x001a, 0x001a, 0xdad4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7f4, 0xa1cc, 0x001a, 0x001a, 0xbacf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8f5, 0x001a, 0x001a, 0x001a, 0xc3d9, 0xe8d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5e3, 0xf8eb, 0x001a, 0xb1f2, 0x001a, 0x001a, 0x001a, 0xbbcf, 0x001a, 0x001a, 0x001a, 0xadd3, 0xe1e8, 0xecce, 0x001a, 0x001a, 0x001a, 0xb4e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2f2, 0xf6f3, 0xdbf6, 0x001a, 0x001a, 0x001a, 0x001a, 0xfed7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdff8, 0x001a, 0xf2f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdae6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcd7, 0xe3cc, 0x001a, 0x001a, 0xdbe6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdddd, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedef, 0x001a, 0x001a, 0x001a, 0x001a, 0xded6, 0xf4e4, 0xefe1, 0x001a, 0x001a, 0xf8dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfe8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5ca, 0x001a, 0x001a, 0x001a, 0xa1dc, 0x001a, 0xb5e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacfc, 0xadfc, 0xa7d8, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8ed, 0x001a, 0x001a, 0x001a, 0xb6db, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0d6, 0xaff3, 0x001a, 0x001a, 0xa5cd, 0x001a, 0xf1da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8d8, 0x001a, 0x001a, 0x001a, 0xe4cc, 0x001a, 0x001a, 0xb4d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecd5, 0xf8d5, 0xf3da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6e3, 0x001a, 0x001a, 0x001a, 0xe4de, 0x001a, 0xe5de, 0xb5d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6d1, 0xb7d1, 0xb3f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdee9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3f0, 0xb4f2, 0x001a, 0x001a, 0xd4f0, 0xe4cb, 0xd4fb, 0xe6f5, 0xeae3, 0x001a, 0xe6de, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4df, 0x001a, 0x001a, 0xf9f8, 0x001a, 0x001a, 0x001a, 0x001a, 0xaef0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8d1, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfd6, 0x001a, 0xd7d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1fc, 0xeeef, 0xd8dc, 0x001a, 0xdfe9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde5, 0xfbfd, 0x001a, 0x001a, 0xc9e0, 0x001a, 0x001a, 0x001a, 0xc9d6, 0x001a, 0x001a, 0xaad4, 0x001a, 0xcce5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0e9, 0x001a, 0x001a, 0x001a, 0xd8d0, 0xa2fc, 0xbed4, 0xb3e2, 0xe7de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcdc, 0xb6d2, 0xd5f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1ce, 0xa9f5, 0x001a, 0x001a, 0xf9dd, 0x001a, 0x001a, 0xfadd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5f0, 0x001a, 0x001a, 0x001a, 0x001a, 0xdff6, 0x001a, 0xdaf2, 0xebe4, 0x001a, 0xf1f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9ec, 0x001a, 0x001a, 0x001a, 0x001a, 0xfcfd, 0x001a, 0x001a, 0x001a, 0x001a, 0xaae1, 0x001a, 0x001a, 0xd9ca, 0x001a, 0x001a, 0xefef, 0x001a, 0xaaf5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9ec, 0x001a, 0x001a, 0xadf8, 0x001a, 0xc2f2, 0xc3f6, 0x001a, 0xd2d7, 0x001a, 0x001a, 0xa2f9, 0xd6f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfaf0, 0x001a, 0x001a, 0xe0f6, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3e9, 0xc3f2, 0x001a, 0x001a, 0x001a, 0xabd4, 0xb3ca, 0xa6cd, 0x001a, 0xc3cd, 0xdacd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfd9, 0x001a, 0x001a, 0xc4f6, 0x001a, 0x001a, 0x001a, 0xddee, 0xc4e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2df, 0xdbe7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1e8, 0x001a, 0xaefc, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde5, 0x001a, 0x001a, 0x001a, 0xebfa, 0x001a, 0xbccf, 0x001a, 0x001a, 0xe2cf, 0xf6cd, 0x001a, 0x001a, 0xf0ef, 0x001a, 0xbef4, 0x001a, 0xcdd4, 0x001a, 0x001a, 0xb8f3, 0x001a, 0x001a, 0x001a, 0xa1e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2f2, 0xebf3, 0x001a, 0xd7f0, 0x001a, 0x001a, 0xd7cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfcf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0e8, 0xc1e8, 0x001a, 0x001a, 0x001a, 0xe3cf, 0xa2e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaad0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1f3, 0xabd0, 0x001a, 0xe4d4, 0x001a, 0x001a, 0xbcef, 0xa1d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfd9, 0x001a, 0xd7f3, 0x001a, 0x001a, 0x001a, 0xbddc, 0x001a, 0xe5cc, 0xf1ed, 0x001a, 0x001a, 0xe2f1, 0x001a, 0xdbd4, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5e2, 0x001a, 0x001a, 0xe6ca, 0x001a, 0xaed3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6cc, 0x001a, 0x001a, 0xd3f1, 0xe7f5, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeefb, 0x001a, 0xc5e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9df, 0x001a, 0xdeee, 0x001a, 0x001a, 0xc2f7, 0x001a, 0xa2d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacdd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaff0, 0xbdd6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6f9, 0x001a, 0x001a, 0xf5d4, 0x001a, 0xc9d0, 0xa7ef, 0xece2, 0x001a, 0xeadb, 0xccce, 0xe8f5, 0xd5f7, 0x001a, 0xcdd3, 0x001a, 0xfef3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfee0, 0x001a, 0xfbdf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdcb, 0x001a, 0x001a, 0x001a, 0xa8ef, 0x001a, 0x001a, 0x001a, 0xb4ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8da, 0xb9d1, 0x001a, 0xa9df, 0x001a, 0x001a, 0xb0f3, 0x001a, 0x001a, 0xc4cc, 0x001a, 0x001a, 0x001a, 0xb7ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9ef, 0x001a, 0x001a, 0x001a, 0xd5df, 0x001a, 0x001a, 0xd7ed, 0x001a, 0x001a, 0x001a, 0xc6ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdef, 0xd6fc, 0x001a, 0x001a, 0xf4db, 0x001a, 0xaaef, 0xb9f8, 0x001a, 0xe9f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6e1, 0x001a, 0x001a, 0x001a, 0xbfd4, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeaf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafd3, 0x001a, 0x001a, 0xdbca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7fc, 0x001a, 0x001a, 0xd8ed, 0xc7e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8f4, 0xb3d6, 0xaddd, 0x001a, 0x001a, 0x001a, 0xbed5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3f1, 0xdfee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebd6, 0x001a, 0x001a, 0x001a, 0xd9f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbdd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfdd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3d8, 0x001a, 0x001a, 0xd9da, 0x001a, 0xd8f0, 0xc4ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4f1, 0x001a, 0xf2ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbd5, 0x001a, 0x001a, 0xdcd5, 0xc4f3, 0xd7cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0dd, 0xd9f0, 0xb3cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7cd, 0x001a, 0x001a, 0xacd0, 0x001a, 0xbad1, 0x001a, 0xc4f1, 0x001a, 0xb3e5, 0xf5fb, 0xe1e9, 0xe0fd, 0xbcfc, 0x001a, 0xa2da, 0xa3da, 0x001a, 0xa1d2, 0x001a, 0x001a, 0xefd2, 0x001a, 0x001a, 0x001a, 0xede2, 0x001a, 0x001a, 0xe9de, 0xdcce, 0xb5f2, 0xe4d0, 0xd1dd, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8e1, 0xb7db, 0xe3df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9ed, 0xc5f1, 0x001a, 0xcff3, 0xabd7, 0xace1, 0x001a, 0x001a, 0xebe3, 0x001a, 0xc7ee, 0x001a, 0x001a, 0x001a, 0xc9e1, 0xfaca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbf0, 0xe1fa, 0xdaf0, 0xe7cc, 0xf4da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfcc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedce, 0x001a, 0x001a, 0xa9d5, 0xe2fa, 0x001a, 0x001a, 0x001a, 0xe5d0, 0x001a, 0xd6eb, 0x001a, 0xdfec, 0x001a, 0x001a, 0x001a, 0xfcdf, 0x001a, 0x001a, 0xd6f7, 0xeade, 0xb4cb, 0x001a, 0x001a, 0xbeef, 0x001a, 0x001a, 0xb5cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdcf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2ef, 0xb7e2, 0x001a, 0x001a, 0x001a, 0xe8cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfcf0, 0x001a, 0x001a, 0x001a, 0xe0d6, 0x001a, 0xc6f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8e2, 0xabeb, 0x001a, 0x001a, 0x001a, 0xb5cb, 0xd1d8, 0x001a, 0xcef4, 0xf7f3, 0x001a, 0x001a, 0xc6d7, 0x001a, 0xbbd1, 0xaaf7, 0x001a, 0xcaed, 0xd3d7, 0xfad8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5f6, 0x001a, 0x001a, 0xccd1, 0xfcdd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfddf, 0x001a, 0xe5f9, 0x001a, 0xcae0, 0x001a, 0x001a, 0xfdf2, 0xb0d3, 0x001a, 0xf3f4, 0xc9da, 0x001a, 0xdee6, 0x001a, 0x001a, 0x001a, 0x001a, 0xbaf8, 0xd0e8, 0x001a, 0x001a, 0xfbd8, 0x001a, 0x001a, 0xd5ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbf2, 0xfce4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdada, 0x001a, 0xdcf2, 0xd6fb, 0xb2e9, 0x001a, 0xadee, 0x001a, 0xe3fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeedc, 0x001a, 0x001a, 0xeaf5, 0xe0e6, 0x001a, 0xfdf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacd7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5f5, 0xe0ee, 0x001a, 0x001a, 0xe5db, 0x001a, 0xdedd, 0x001a, 0x001a, 0xf0d9, 0xa3e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9f1, 0x001a, 0xc4f2, 0xcbe0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e9, 0x001a, 0x001a, 0xb9e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1e3, 0xebfc, 0xa8cd, 0x001a, 0xb6cc, 0x001a, 0x001a, 0xdbf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbae6, 0x001a, 0x001a, 0xa9cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9e1, 0x001a, 0x001a, 0xabef, 0x001a, 0x001a, 0x001a, 0xc5e7, 0x001a, 0x001a, 0xe9e0, 0x001a, 0xc5f3, 0x001a, 0x001a, 0xc0d4, 0xbfd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaedd, 0x001a, 0xfcf9, 0x001a, 0xc0cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2e5, 0x001a, 0x001a, 0x001a, 0xb8ce, 0x001a, 0x001a, 0x001a, 0xd2d8, 0xd6f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaaf1, 0xd1ce, 0x001a, 0x001a, 0xc7f6, 0x001a, 0xebdb, 0x001a, 0xfedf, 0x001a, 0x001a, 0xe1d8, 0x001a, 0xf3f7, 0x001a, 0xe7d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfed4, 0x001a, 0x001a, 0xbcd1, 0x001a, 0xcfe5, 0x001a, 0xb6cb, 0x001a, 0xb8da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbed6, 0x001a, 0x001a, 0x001a, 0xbae2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8cf, 0x001a, 0x001a, 0x001a, 0xcce0, 0xf9eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdfd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8d7, 0xd8cb, 0x001a, 0x001a, 0x001a, 0xe2e9, 0x001a, 0x001a, 0x001a, 0xbae8, 0x001a, 0x001a, 0x001a, 0xc7e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdec, 0x001a, 0xceec, 0x001a, 0xbfd6, 0x001a, 0x001a, 0x001a, 0xa7e3, 0x001a, 0xd6df, 0xe8fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1ee, 0xa8f6, 0xfddd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbf8, 0x001a, 0xd1e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeece, 0x001a, 0x001a, 0xcfec, 0x001a, 0x001a, 0x001a, 0xa5e9, 0xd5d6, 0x001a, 0xc5cd, 0x001a, 0xbaed, 0xbdd1, 0x001a, 0x001a, 0xbecf, 0x001a, 0x001a, 0xbbec, 0x001a, 0x001a, 0x001a, 0xb1d2, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9cc, 0x001a, 0xc4d9, 0xfce9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbed1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcec, 0x001a, 0x001a, 0xade5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0f7, 0x001a, 0xeacc, 0x001a, 0x001a, 0x001a, 0xc4d3, 0x001a, 0x001a, 0xc0d6, 0x001a, 0x001a, 0x001a, 0xfdd6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1e1, 0x001a, 0xbdde, 0x001a, 0xa9f6, 0x001a, 0x001a, 0x001a, 0xa4da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4d6, 0xc6f5, 0x001a, 0xa2e1, 0xc6e9, 0x001a, 0x001a, 0x001a, 0xc5f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9f4, 0xecd6, 0xd3eb, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdec, 0xdce2, 0xebde, 0xdcf0, 0x001a, 0xbfeb, 0x001a, 0xced7, 0xbfd1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabf5, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdf9, 0x001a, 0xdcca, 0x001a, 0x001a, 0x001a, 0xc6cd, 0xb6f2, 0x001a, 0x001a, 0xfedd, 0x001a, 0x001a, 0x001a, 0xb7cc, 0xb8db, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9d0, 0x001a, 0xddce, 0xc0eb, 0x001a, 0xa2fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6ea, 0xb0f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcedb, 0x001a, 0xc3f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfdb, 0xa4cb, 0x001a, 0x001a, 0xe0f8, 0x001a, 0x001a, 0xd7fb, 0x001a, 0x001a, 0xcaeb, 0xa1e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdce, 0x001a, 0x001a, 0xdcd4, 0x001a, 0x001a, 0x001a, 0xd8fd, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6d2, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7f2, 0x001a, 0x001a, 0xf6fa, 0xaaf6, 0xf7fa, 0xe6d8, 0x001a, 0xb1f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2e8, 0x001a, 0xc5ca, 0xebcc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeee2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbe2, 0x001a, 0xadf7, 0x001a, 0x001a, 0x001a, 0xe1f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf3, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfde4, 0x001a, 0x001a, 0xece3, 0x001a, 0xafdd, 0xb0dd, 0x001a, 0x001a, 0xb7cb, 0xd3e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e1, 0xe0d2, 0x001a, 0x001a, 0x001a, 0x001a, 0xfef0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6e9, 0xf2cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3ed, 0xd9dc, 0xcde0, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaf7, 0xb9db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaecc, 0x001a, 0xdbda, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1dd, 0x001a, 0xafd8, 0xa3e3, 0x001a, 0x001a, 0xefce, 0x001a, 0x001a, 0xf3f2, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcee0, 0x001a, 0xfdf5, 0x001a, 0x001a, 0x001a, 0x001a, 0xeceb, 0x001a, 0x001a, 0xc5d3, 0xecfc, 0xdbd2, 0xebd4, 0x001a, 0xa2de, 0x001a, 0x001a, 0x001a, 0xe6e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4ed, 0x001a, 0x001a, 0x001a, 0xede3, 0x001a, 0xc2e8, 0x001a, 0xf5ed, 0xfcd7, 0x001a, 0xbbed, 0x001a, 0x001a, 0xabf6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8f2, 0xc8f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6d3, 0xddf2, 0xbfcf, 0x001a, 0xaceb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0cf, 0x001a, 0xa8e6, 0xe9fd, 0x001a, 0xc1cf, 0x001a, 0xdfe0, 0xecde, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbff4, 0xefe2, 0x001a, 0xf1d9, 0xc7f1, 0x001a, 0xb8cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfef9, 0xbadb, 0xf5da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf6, 0xdcda, 0xe4fa, 0x001a, 0xcfe0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2dd, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9e6, 0x001a, 0xf3ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedf3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfaeb, 0x001a, 0xe6f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddca, 0xded5, 0x001a, 0xdeca, 0xe4df, 0x001a, 0x001a, 0x001a, 0xfde6, 0x001a, 0xacf5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3e9, 0x001a, 0xcbed, 0xe4cf, 0x001a, 0x001a, 0x001a, 0xd3d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3dd, 0xecd4, 0x001a, 0x001a, 0xb9f2, 0x001a, 0xb7df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcecb, 0xd8fb, 0x001a, 0x001a, 0xd9d0, 0x001a, 0x001a, 0xd2dd, 0xf4f7, 0xdce7, 0xa5e4, 0x001a, 0xa3fc, 0x001a, 0xbbdb, 0x001a, 0x001a, 0x001a, 0xbaf2, 0xfde9, 0xcad0, 0x001a, 0xd6f5, 0xc5d9, 0xb4e4, 0x001a, 0xa7ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdea, 0xfee6, 0x001a, 0xc4f7, 0xadf5, 0x001a, 0xe0d9, 0x001a, 0x001a, 0x001a, 0xb4ca, 0x001a, 0x001a, 0xe2f8, 0xc2cf, 0x001a, 0xbeec, 0x001a, 0x001a, 0x001a, 0xb4e5, 0xc8cd, 0xc8ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9cd, 0xb7f9, 0x001a, 0x001a, 0xe8f1, 0xf2d9, 0xf5db, 0xb5ca, 0xc6d9, 0x001a, 0x001a, 0x001a, 0xc9d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabd9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbced, 0x001a, 0x001a, 0xd4d8, 0x001a, 0x001a, 0x001a, 0xdadc, 0x001a, 0xbce2, 0x001a, 0x001a, 0xedfc, 0xe0ec, 0xfed2, 0x001a, 0xc7e9, 0xaae6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbfa, 0x001a, 0xaef5, 0xaafb, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbec, 0x001a, 0xbfec, 0xd8fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5d4, 0x001a, 0x001a, 0x001a, 0xc3f9, 0x001a, 0x001a, 0x001a, 0xe2ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9d7, 0xf6ed, 0x001a, 0x001a, 0x001a, 0xedde, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeccc, 0x001a, 0xeee3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4e8, 0x001a, 0x001a, 0x001a, 0xf8fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4dd, 0xb5e4, 0xb0d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5d8, 0x001a, 0x001a, 0x001a, 0xeaf4, 0x001a, 0x001a, 0x001a, 0xb9ce, 0x001a, 0x001a, 0x001a, 0xe1d6, 0xd2cf, 0x001a, 0xb6d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2ce, 0x001a, 0x001a, 0xeef3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xccdc, 0x001a, 0xcbd0, 0x001a, 0x001a, 0x001a, 0xa4fc, 0xcacd, 0xd4d7, 0xa3de, 0x001a, 0xe0e4, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9ee, 0x001a, 0x001a, 0x001a, 0xdde2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfef5, 0xacd4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1d5, 0x001a, 0xf0d8, 0xc3f8, 0xd7ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7f5, 0x001a, 0x001a, 0xbfd8, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadeb, 0x001a, 0x001a, 0x001a, 0x001a, 0xaad5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaee, 0x001a, 0x001a, 0x001a, 0xe7ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3f8, 0x001a, 0xddd4, 0x001a, 0x001a, 0xd8ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9fb, 0xf7ed, 0x001a, 0x001a, 0xb5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadd0, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbde2, 0x001a, 0x001a, 0x001a, 0xc8e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5d9, 0x001a, 0x001a, 0xaadf, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcdb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfaf1, 0x001a, 0x001a, 0xb6e5, 0xeff3, 0x001a, 0x001a, 0xdafb, 0xe0e1, 0x001a, 0xacd9, 0x001a, 0xebf5, 0x001a, 0xb6e0, 0x001a, 0x001a, 0xc8e9, 0x001a, 0xcfcb, 0x001a, 0xc9e3, 0x001a, 0x001a, 0x001a, 0xeede, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefdc, 0x001a, 0xa5d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfed6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1d9, 0x001a, 0xc0d8, 0xdbdc, 0x001a, 0x001a, 0xbded, 0xb8df, 0x001a, 0xa5ea, 0x001a, 0x001a, 0x001a, 0xadd7, 0x001a, 0x001a, 0xf9f3, 0x001a, 0xf8ed, 0x001a, 0xc7f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcae1, 0xe3eb, 0x001a, 0xdef2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xccf8, 0x001a, 0xd9ea, 0x001a, 0xc6d3, 0x001a, 0xe6db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaff5, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0ce, 0x001a, 0x001a, 0x001a, 0x001a, 0xfee9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2cf, 0xb9f7, 0xf3d9, 0x001a, 0x001a, 0xcbe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddda, 0x001a, 0x001a, 0xb9da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbeb, 0x001a, 0xb9cb, 0x001a, 0x001a, 0xf9ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0f4, 0x001a, 0xbcfd, 0xb1df, 0xefe3, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e0, 0xb9fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbcd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbeed, 0x001a, 0x001a, 0x001a, 0xc0d5, 0xf0e3, 0xfaed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedd5, 0xdde7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6d4, 0xb7e5, 0x001a, 0x001a, 0x001a, 0xe7db, 0xbfe2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbee, 0x001a, 0x001a, 0xf4d7, 0xddf0, 0x001a, 0x001a, 0x001a, 0xabce, 0x001a, 0x001a, 0xdee7, 0x001a, 0x001a, 0x001a, 0xd6d6, 0xcce1, 0x001a, 0x001a, 0xb3e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeee5, 0xa2dc, 0x001a, 0x001a, 0xd0e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbfb, 0x001a, 0xcbf9, 0x001a, 0x001a, 0x001a, 0xf3cb, 0xa5f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8fa, 0xd7d6, 0x001a, 0xe5e9, 0xdcfb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5da, 0x001a, 0xbddb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7cd, 0xdef0, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefde, 0x001a, 0x001a, 0x001a, 0xb1d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeefc, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3e8, 0x001a, 0xc8f1, 0x001a, 0x001a, 0x001a, 0xf1ce, 0x001a, 0x001a, 0x001a, 0x001a, 0xedf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6e4, 0x001a, 0xb9f5, 0x001a, 0xf0dc, 0xf1e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbf2, 0x001a, 0xa4de, 0x001a, 0xccda, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdae3, 0x001a, 0xd9fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4f9, 0x001a, 0xa4e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddfb, 0x001a, 0xcaef, 0x001a, 0xc4e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xccd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadd9, 0x001a, 0x001a, 0xabfb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdef6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e0, 0x001a, 0x001a, 0xa8e9, 0x001a, 0x001a, 0xf9f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaffa, 0x001a, 0xfceb, 0x001a, 0x001a, 0xeae0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5d5, 0x001a, 0x001a, 0xe3f1, 0xeed5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcccd, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1d8, 0x001a, 0x001a, 0x001a, 0x001a, 0xecfa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebf1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcfa, 0xe2e6, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5fa, 0xfae2, 0x001a, 0x001a, 0x001a, 0xb6ca, 0x001a, 0xb7e4, 0x001a, 0xdbea, 0x001a, 0xfaf5, 0x001a, 0x001a, 0x001a, 0xacfb, 0xc3cf, 0xfdeb, 0x001a, 0x001a, 0x001a, 0x001a, 0xfaf8, 0x001a, 0x001a, 0xb9df, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e1, 0x001a, 0xa4d2, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbf5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdad0, 0xdbd0, 0x001a, 0xbeea, 0xb1d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7ca, 0x001a, 0x001a, 0xe7d3, 0x001a, 0xe5f8, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2d3, 0x001a, 0x001a, 0x001a, 0xc0e2, 0xdff2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdcd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaeee, 0xaed6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xead7, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0e7, 0xaeeb, 0x001a, 0x001a, 0x001a, 0xd9cf, 0x001a, 0x001a, 0xcddc, 0xfbed, 0x001a, 0xf0de, 0x001a, 0xebd7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7df, 0xd0db, 0xd1db, 0x001a, 0x001a, 0xa3d5, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8ca, 0x001a, 0xe6f8, 0xcedc, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcea, 0xd2db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbf7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8e3, 0x001a, 0xaed7, 0x001a, 0x001a, 0xe1e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbacb, 0x001a, 0x001a, 0xd1e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcd0, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcad8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e0, 0x001a, 0xa9e9, 0x001a, 0xc7d3, 0x001a, 0x001a, 0xdddc, 0xaef8, 0x001a, 0x001a, 0x001a, 0xb8cc, 0x001a, 0x001a, 0x001a, 0xaed0, 0x001a, 0x001a, 0x001a, 0xf2d8, 0x001a, 0x001a, 0xcae3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafcc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadd4, 0xd1f6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xccd0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6ca, 0x001a, 0x001a, 0xc2d5, 0x001a, 0x001a, 0xbace, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8df, 0x001a, 0x001a, 0x001a, 0xbaf5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebe5, 0x001a, 0xf4ef, 0xb5dd, 0x001a, 0x001a, 0x001a, 0x001a, 0xaacd, 0x001a, 0xf2e3, 0x001a, 0xf7fb, 0x001a, 0xd0f7, 0x001a, 0x001a, 0x001a, 0x001a, 0xbafd, 0x001a, 0x001a, 0xe1fd, 0xfef6, 0xc0d1, 0x001a, 0x001a, 0xc5e8, 0x001a, 0xb8e4, 0x001a, 0xe8e1, 0x001a, 0x001a, 0x001a, 0xc1cc, 0x001a, 0xedd2, 0x001a, 0x001a, 0x001a, 0x001a, 0xbedb, 0x001a, 0x001a, 0xe2e0, 0x001a, 0x001a, 0x001a, 0xc9fa, 0x001a, 0x001a, 0xcde1, 0x001a, 0xb8ca, 0x001a, 0x001a, 0x001a, 0xe0f2, 0xc9f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1de, 0x001a, 0x001a, 0x001a, 0xdff0, 0xc4f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xccee, 0x001a, 0x001a, 0xf2de, 0x001a, 0xc9e7, 0x001a, 0xf3e2, 0xe1e7, 0x001a, 0x001a, 0xcbe3, 0x001a, 0x001a, 0xcce3, 0x001a, 0x001a, 0x001a, 0xf8cf, 0xacef, 0x001a, 0xfefd, 0xa5fc, 0xb1fa, 0xd9df, 0x001a, 0xd2e0, 0x001a, 0x001a, 0x001a, 0xdaf4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaf1, 0x001a, 0xa3ce, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcf2, 0xe3ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5e0, 0x001a, 0xabf7, 0x001a, 0x001a, 0xafeb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdee5, 0x001a, 0xa4e1, 0xabcd, 0x001a, 0xf4d9, 0xa6e8, 0xcecd, 0xe9e1, 0x001a, 0xeffc, 0x001a, 0xe3e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e2, 0x001a, 0xa4ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6de, 0x001a, 0x001a, 0xfeeb, 0x001a, 0xddeb, 0xe0f0, 0x001a, 0x001a, 0xdbf4, 0x001a, 0xf4e2, 0x001a, 0x001a, 0xc8d3, 0x001a, 0x001a, 0x001a, 0xebf4, 0x001a, 0xb5ee, 0x001a, 0xd8f5, 0x001a, 0x001a, 0xdfd5, 0x001a, 0x001a, 0x001a, 0xe5d6, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0eb, 0xe3f4, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde3, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4f4, 0xb2fa, 0x001a, 0x001a, 0xf5ef, 0xdfca, 0x001a, 0xb1eb, 0xbfed, 0x001a, 0x001a, 0xc9fd, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6e4, 0xa4f9, 0xb3f0, 0x001a, 0xece5, 0x001a, 0x001a, 0x001a, 0xe7d1, 0x001a, 0xc7d9, 0xd7e4, 0xddea, 0x001a, 0xf7d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbada, 0x001a, 0xcdda, 0x001a, 0x001a, 0x001a, 0xccf9, 0x001a, 0xdae1, 0xbfdb, 0x001a, 0xc5cc, 0xd0ec, 0xbbcb, 0x001a, 0xf3de, 0x001a, 0x001a, 0xaae9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8d9, 0x001a, 0x001a, 0xe3ee, 0xbdd7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdd0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbf1, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2fd, 0xc1d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbe3, 0x001a, 0xc9d3, 0x001a, 0xcfdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedcc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7de, 0x001a, 0x001a, 0xbbe6, 0xa1ec, 0x001a, 0x001a, 0x001a, 0xb9cc, 0x001a, 0x001a, 0xdefb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2e7, 0x001a, 0x001a, 0xc1d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2e2, 0x001a, 0xd8f3, 0xd3e5, 0x001a, 0x001a, 0xd9f3, 0x001a, 0x001a, 0x001a, 0xc6f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbcd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaccd, 0x001a, 0xc3fc, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7d4, 0x001a, 0xc2d1, 0x001a, 0xa5f9, 0x001a, 0xd5e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcee3, 0x001a, 0x001a, 0x001a, 0x001a, 0xcad4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdadf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdffb, 0xe3e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbf8, 0xcfe3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7d8, 0x001a, 0xc9d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaff8, 0xf6ef, 0x001a, 0xb6dd, 0xafee, 0xf8cd, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8de, 0xa7fc, 0xfcf7, 0xb1f7, 0xbbce, 0xa1f4, 0x001a, 0x001a, 0xcdee, 0xaee1, 0x001a, 0x001a, 0xc3ec, 0xfecf, 0x001a, 0xbff8, 0xe2d8, 0xe8d3, 0x001a, 0x001a, 0xa8de, 0xe4f4, 0xc2ec, 0x001a, 0xf5d9, 0xc5f9, 0xd3dd, 0xf1d6, 0xfcec, 0xf0fc, 0x001a, 0x001a, 0xc0ed, 0xb9ca, 0x001a, 0xe4ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1f2, 0x001a, 0xb9de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2d6, 0x001a, 0xf4de, 0x001a, 0xdbdf, 0x001a, 0xd3db, 0x001a, 0xe7fa, 0xe3d8, 0xc1f4, 0x001a, 0xb7dd, 0x001a, 0x001a, 0x001a, 0xf5f2, 0x001a, 0x001a, 0xaed4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8dd, 0xc5cf, 0xdfdf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbef2, 0xa1f6, 0x001a, 0xcbeb, 0xfcf1, 0x001a, 0xc7f3, 0x001a, 0x001a, 0xebe0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfced, 0x001a, 0x001a, 0xdbe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5ee, 0x001a, 0xf5de, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3fa, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbf1, 0x001a, 0x001a, 0xafd0, 0xb9dd, 0x001a, 0x001a, 0xc3d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1f5, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacf6, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbadd, 0x001a, 0x001a, 0x001a, 0xbff2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5f7, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2db, 0xf6f2, 0x001a, 0x001a, 0xbaca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5f7, 0x001a, 0xe5cb, 0x001a, 0x001a, 0x001a, 0xe6ee, 0x001a, 0xd3e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8d6, 0x001a, 0x001a, 0x001a, 0xafd4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xced3, 0xc2f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2eb, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3eb, 0x001a, 0xb4f0, 0x001a, 0x001a, 0xf4cb, 0xb0d4, 0xb2f3, 0xb7fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7ee, 0xb2f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedf5, 0x001a, 0xf3cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xceee, 0x001a, 0x001a, 0xccf1, 0x001a, 0x001a, 0xb8e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5d7, 0xf3e3, 0xe5cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3f3, 0xd8e4, 0xf9cf, 0xdacf, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdfa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeef5, 0x001a, 0x001a, 0xbbca, 0x001a, 0x001a, 0xdce3, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2ce, 0x001a, 0xd9d6, 0x001a, 0x001a, 0x001a, 0xb0ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5f4, 0xc2d8, 0xd0dc, 0xeecc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0d5, 0xcaf6, 0xcafd, 0xd6d8, 0xcff4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6d6, 0xbedc, 0x001a, 0xd4db, 0xc7d7, 0x001a, 0x001a, 0x001a, 0x001a, 0xfef2, 0x001a, 0x001a, 0x001a, 0xcdf1, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3e2, 0xdedc, 0x001a, 0xdfdc, 0x001a, 0x001a, 0xadef, 0xabe6, 0x001a, 0x001a, 0x001a, 0x001a, 0xddf9, 0xbfea, 0x001a, 0x001a, 0x001a, 0xaeef, 0x001a, 0x001a, 0x001a, 0xd0f4, 0xf3ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xace6, 0x001a, 0xdece, 0x001a, 0x001a, 0xf9d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e3, 0xd0cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8d5, 0x001a, 0x001a, 0xfdf7, 0x001a, 0xa9dc, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6de, 0x001a, 0xaadc, 0xe3f2, 0xb4e9, 0xdcd2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6e9, 0x001a, 0x001a, 0xf6e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcae7, 0x001a, 0x001a, 0xced0, 0x001a, 0x001a, 0xf7da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcca, 0x001a, 0x001a, 0x001a, 0xe8ee, 0xdeda, 0x001a, 0xf7f2, 0x001a, 0x001a, 0xfbe2, 0x001a, 0xa6cc, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbda, 0x001a, 0xe9ee, 0x001a, 0x001a, 0x001a, 0xdaf5, 0x001a, 0x001a, 0xdcf7, 0xeae1, 0xc1ce, 0xb1d4, 0x001a, 0xb1fd, 0xbde6, 0x001a, 0xadfb, 0x001a, 0x001a, 0xe7f8, 0x001a, 0xcee1, 0x001a, 0xe2f7, 0xeff5, 0xc7cf, 0x001a, 0x001a, 0xb2d4, 0xefcc, 0x001a, 0xe8d4, 0x001a, 0xcfee, 0xd7f7, 0x001a, 0x001a, 0xa6e0, 0xc1d6, 0xdce1, 0xe3f0, 0xe4f1, 0xf1dc, 0xa7d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5f4, 0x001a, 0x001a, 0xcef1, 0xe4f2, 0x001a, 0x001a, 0xb0d0, 0x001a, 0x001a, 0xefec, 0x001a, 0x001a, 0x001a, 0xbaf9, 0x001a, 0xb5eb, 0x001a, 0x001a, 0xedd4, 0xc4e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7e9, 0x001a, 0x001a, 0xb4eb, 0xa1ea, 0x001a, 0xbcf8, 0xa6ce, 0x001a, 0xc6f9, 0xdafc, 0x001a, 0xb3d4, 0xb9d3, 0xdeea, 0x001a, 0x001a, 0x001a, 0xabe9, 0x001a, 0x001a, 0xe1e1, 0xcfd3, 0xf6f4, 0x001a, 0xc0ea, 0xcfe1, 0x001a, 0xbacc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeaee, 0x001a, 0x001a, 0x001a, 0xe4f0, 0xb4f3, 0xeed4, 0x001a, 0x001a, 0xc0f2, 0x001a, 0x001a, 0xe5f1, 0x001a, 0xc3f4, 0xd4e0, 0x001a, 0xb6eb, 0x001a, 0xa1d7, 0xe8cb, 0x001a, 0xadf9, 0xade9, 0xe4d8, 0xb3fa, 0xc5e2, 0xbdfc, 0x001a, 0x001a, 0xc4ec, 0xb1d8, 0x001a, 0xabdc, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4d5, 0x001a, 0xe9eb, 0x001a, 0x001a, 0x001a, 0xbbe8, 0x001a, 0x001a, 0x001a, 0xd7d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaefb, 0xe1d1, 0x001a, 0x001a, 0xc0db, 0x001a, 0xbef5, 0x001a, 0xf7de, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbca, 0xc6f7, 0xc8cf, 0x001a, 0x001a, 0x001a, 0xd0e1, 0x001a, 0x001a, 0xd0ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdd5, 0x001a, 0x001a, 0xdbcf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbdd, 0x001a, 0x001a, 0x001a, 0x001a, 0xacce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4d4, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbf5, 0x001a, 0x001a, 0xc1fa, 0x001a, 0x001a, 0x001a, 0xa9de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7ef, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7eb, 0xf8ef, 0xdcf5, 0xcced, 0xd5db, 0xcff1, 0x001a, 0x001a, 0x001a, 0xd0f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaed9, 0xacd5, 0x001a, 0xc6e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3fd, 0x001a, 0xe5fb, 0xabdf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5e2, 0x001a, 0xadf6, 0x001a, 0xb3f5, 0x001a, 0xb5f0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddf5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2ec, 0xfded, 0x001a, 0xb4f5, 0xb8fb, 0x001a, 0xa3db, 0x001a, 0x001a, 0xcad6, 0xd9cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfaf3, 0x001a, 0xb8eb, 0x001a, 0xb7e0, 0xecd7, 0xecf1, 0xafe5, 0xe1d5, 0xedd7, 0xd1d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2e1, 0xf9ef, 0x001a, 0x001a, 0x001a, 0xbcdd, 0xdcf6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5f0, 0x001a, 0x001a, 0x001a, 0xc4f4, 0x001a, 0x001a, 0xe9e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbf3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefd4, 0x001a, 0x001a, 0xa2cc, 0xfef7, 0xbcdf, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdeb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xade8, 0x001a, 0x001a, 0x001a, 0x001a, 0xafef, 0xa5cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9cb, 0x001a, 0x001a, 0x001a, 0xe8fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6cc, 0x001a, 0x001a, 0x001a, 0xe7e6, 0x001a, 0x001a, 0xc7ea, 0x001a, 0x001a, 0x001a, 0xa4db, 0x001a, 0xc9cf, 0xfce2, 0xfaef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdeeb, 0x001a, 0x001a, 0xc8f5, 0x001a, 0xded4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e0, 0x001a, 0xb0ef, 0x001a, 0x001a, 0xc7e2, 0x001a, 0xafd9, 0x001a, 0x001a, 0x001a, 0xe7f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e7, 0x001a, 0x001a, 0xcacf, 0xd1e1, 0x001a, 0xc8e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbef, 0x001a, 0x001a, 0xf9fa, 0x001a, 0x001a, 0xf2dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeacb, 0x001a, 0x001a, 0x001a, 0xbccb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdef5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdff5, 0x001a, 0xb6ee, 0x001a, 0x001a, 0x001a, 0xf6e2, 0xcad3, 0xfcef, 0xc4d1, 0xb1ef, 0x001a, 0xc5d1, 0x001a, 0xded0, 0x001a, 0xe1d9, 0x001a, 0x001a, 0xb8e0, 0x001a, 0x001a, 0xd1cd, 0xb9f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcce7, 0x001a, 0xa8d6, 0xa7ce, 0x001a, 0xb5d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddf6, 0x001a, 0xa3f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcae9, 0x001a, 0xf0e1, 0x001a, 0x001a, 0x001a, 0xe0f5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaffb, 0x001a, 0x001a, 0x001a, 0xd1cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0fb, 0xe5f2, 0x001a, 0x001a, 0xf0ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbe9, 0x001a, 0x001a, 0xf0cc, 0x001a, 0x001a, 0xafd7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1f4, 0x001a, 0x001a, 0xa1f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfcca, 0xfdca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcece, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8f3, 0x001a, 0xbaf3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfeed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6da, 0x001a, 0x001a, 0xece0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdf8, 0x001a, 0xd2cb, 0x001a, 0x001a, 0x001a, 0xceeb, 0x001a, 0xd8f9, 0xd9f9, 0xe0ca, 0xcada, 0x001a, 0x001a, 0x001a, 0xa6cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8ca, 0xeef9, 0xecdb, 0x001a, 0x001a, 0xb1d0, 0x001a, 0x001a, 0x001a, 0x001a, 0xefd5, 0x001a, 0x001a, 0x001a, 0xf3e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2e7, 0xd9e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1e4, 0x001a, 0x001a, 0xc4fc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeff9, 0xf4cf, 0xe6f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcce, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5f4, 0xa3dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbddd, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1f8, 0x001a, 0x001a, 0x001a, 0xd6e8, 0x001a, 0x001a, 0x001a, 0xc1db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6f0, 0x001a, 0x001a, 0x001a, 0xb9e4, 0xedf6, 0x001a, 0xaef9, 0x001a, 0xbedd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0d7, 0xe8d8, 0xbdcb, 0x001a, 0x001a, 0xdaf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcef8, 0xf0f9, 0xede0, 0xb3e3, 0xb3f4, 0x001a, 0x001a, 0xc2ea, 0xe6f2, 0xb6f0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4eb, 0x001a, 0x001a, 0xe7f2, 0x001a, 0xd5d7, 0xb6d4, 0xe8f9, 0xc1d7, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeae9, 0xccd7, 0x001a, 0x001a, 0x001a, 0xe9d3, 0xc9e2, 0x001a, 0xdbfc, 0xadcd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0cc, 0xa2ea, 0x001a, 0x001a, 0xf6e4, 0xc0d0, 0x001a, 0xb7f0, 0xa1ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6d7, 0x001a, 0x001a, 0x001a, 0xcae2, 0xcbe2, 0x001a, 0xcffa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfeb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbd6, 0x001a, 0x001a, 0x001a, 0xb4f4, 0x001a, 0x001a, 0x001a, 0x001a, 0xcded, 0xd2e4, 0x001a, 0x001a, 0xa9ea, 0xbae4, 0xa2f3, 0xd2cd, 0x001a, 0xcbf6, 0x001a, 0xe6f1, 0xc1ed, 0xbce8, 0xd1ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7f0, 0xcce2, 0x001a, 0x001a, 0xaae4, 0x001a, 0xe1f5, 0xdaed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeed7, 0xf1d1, 0x001a, 0x001a, 0x001a, 0x001a, 0xebe9, 0xece9, 0xe4e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7da, 0xd4dd, 0x001a, 0xa3ea, 0x001a, 0x001a, 0x001a, 0xc3d6, 0xf4d6, 0x001a, 0xdfda, 0x001a, 0xb3ef, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdef, 0xe8f2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5ef, 0x001a, 0xe7e7, 0x001a, 0x001a, 0xfdd7, 0x001a, 0x001a, 0xcee7, 0x001a, 0x001a, 0xdcdf, 0x001a, 0xc7f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacdf, 0x001a, 0xdad6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4dc, 0x001a, 0x001a, 0x001a, 0xb8f0, 0x001a, 0x001a, 0x001a, 0x001a, 0xfad5, 0x001a, 0xf7e4, 0x001a, 0x001a, 0x001a, 0xc4d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecf4, 0x001a, 0x001a, 0x001a, 0x001a, 0xfeef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1f0, 0x001a, 0xaade, 0x001a, 0x001a, 0xbcda, 0xfcd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4fa, 0x001a, 0x001a, 0x001a, 0xe5ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8fc, 0x001a, 0x001a, 0xe6ec, 0x001a, 0x001a, 0xcbd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9fb, 0x001a, 0xd3e4, 0x001a, 0xf9cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeaca, 0x001a, 0x001a, 0xd4cf, 0x001a, 0xbdf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7f4, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5eb, 0x001a, 0x001a, 0xd2e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4ea, 0x001a, 0x001a, 0x001a, 0xc2fa, 0xe1fb, 0xedfa, 0xa2f0, 0xf1cc, 0x001a, 0xa3fa, 0xf7e2, 0x001a, 0xcee2, 0x001a, 0xf5e9, 0x001a, 0xebe1, 0x001a, 0x001a, 0x001a, 0xe8e7, 0xd7e8, 0xf8da, 0xcbd4, 0x001a, 0x001a, 0x001a, 0xf6f7, 0xc5d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9d4, 0x001a, 0x001a, 0xfafa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2cc, 0xddf7, 0x001a, 0xbade, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9f0, 0xfee4, 0xc9e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4e4, 0x001a, 0x001a, 0x001a, 0xc3ea, 0x001a, 0xb4ef, 0x001a, 0x001a, 0x001a, 0xbed7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2fb, 0x001a, 0xd3cd, 0x001a, 0x001a, 0x001a, 0xb5ef, 0x001a, 0x001a, 0x001a, 0xe9fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbddf, 0x001a, 0xc7f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdf8, 0x001a, 0x001a, 0xfcf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabde, 0xe8db, 0x001a, 0x001a, 0xdde3, 0x001a, 0xe2e1, 0xc6d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0f6, 0xe6eb, 0xf9da, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8de, 0xe9f8, 0xdee3, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3fa, 0xd7e5, 0x001a, 0xc8ec, 0x001a, 0x001a, 0x001a, 0xc9f3, 0x001a, 0x001a, 0xbbe4, 0x001a, 0x001a, 0x001a, 0x001a, 0xaee6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6ef, 0x001a, 0xbfdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3d8, 0x001a, 0x001a, 0x001a, 0xcfd0, 0x001a, 0xfacf, 0xcaf3, 0xd7e0, 0x001a, 0x001a, 0x001a, 0xc7d1, 0xaee9, 0x001a, 0xbde8, 0x001a, 0x001a, 0xc4fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfe2, 0x001a, 0x001a, 0xc5fa, 0x001a, 0x001a, 0x001a, 0xb8f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0dc, 0x001a, 0x001a, 0xb0fb, 0x001a, 0x001a, 0x001a, 0xa9d8, 0xdfe5, 0xa7f9, 0x001a, 0x001a, 0xeef6, 0x001a, 0xccf6, 0xf8e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2f1, 0xccd2, 0xcbcf, 0x001a, 0x001a, 0xbdca, 0x001a, 0x001a, 0x001a, 0xbfdd, 0x001a, 0x001a, 0x001a, 0xeff6, 0x001a, 0xf9de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4fa, 0x001a, 0x001a, 0x001a, 0xadd5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7f1, 0x001a, 0xbede, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8d1, 0xc9d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbef8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6cb, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2f5, 0xd3e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9d8, 0x001a, 0x001a, 0xfef8, 0x001a, 0xcccf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6ce, 0x001a, 0xd0fa, 0x001a, 0x001a, 0xf3cc, 0xbee6, 0x001a, 0x001a, 0x001a, 0xaef6, 0x001a, 0x001a, 0xf0d5, 0x001a, 0x001a, 0xcad1, 0x001a, 0x001a, 0x001a, 0xbefc, 0xf1d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5fa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0e2, 0xf7f4, 0x001a, 0x001a, 0x001a, 0xd4cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2d7, 0x001a, 0x001a, 0xe3f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1d0, 0x001a, 0x001a, 0x001a, 0x001a, 0xdace, 0xebfb, 0xa6db, 0xdedb, 0xe5d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xaad8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbd6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6ef, 0x001a, 0x001a, 0xeaf8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7ce, 0x001a, 0x001a, 0xd8e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefd7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedf4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6cd, 0x001a, 0x001a, 0x001a, 0xf4cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3f5, 0x001a, 0x001a, 0xcae4, 0x001a, 0xe1dc, 0x001a, 0x001a, 0xc8f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbffc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbecb, 0x001a, 0xaedc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8f0, 0x001a, 0xc0dd, 0x001a, 0xcdcf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3dc, 0xb0d9, 0x001a, 0xe9e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbce4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xece4, 0x001a, 0xe5e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8fb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbcc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbde4, 0x001a, 0x001a, 0xdccd, 0xf7d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfdd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xceed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaecd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcecf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaff6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3fd, 0xedeb, 0xdcd6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e5, 0x001a, 0x001a, 0x001a, 0xb6d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xddd6, 0x001a, 0x001a, 0x001a, 0xe9f9, 0x001a, 0x001a, 0x001a, 0xa4e7, 0x001a, 0xe3d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbd1, 0xe4d6, 0x001a, 0x001a, 0x001a, 0xf2d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfade, 0x001a, 0xf8d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xead8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5cf, 0xfdd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabd8, 0x001a, 0x001a, 0xcbfd, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcfc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8e0, 0xf3d5, 0x001a, 0x001a, 0xd9fd, 0x001a, 0x001a, 0xa3cc, 0x001a, 0x001a, 0x001a, 0xf9d9, 0x001a, 0x001a, 0xead3, 0xf5f5, 0x001a, 0xc7ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdad3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdda, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8e8, 0xafdc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3f0, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacde, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbaf0, 0xb1ee, 0x001a, 0x001a, 0xb2ee, 0x001a, 0x001a, 0x001a, 0xcdf6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2ee, 0x001a, 0xc6d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e0, 0x001a, 0x001a, 0xbbf3, 0x001a, 0xe1e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbe4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3d7, 0x001a, 0x001a, 0xc2db, 0x001a, 0x001a, 0x001a, 0x001a, 0xfeca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfcf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0xac00[ 11172 ] = { 0xa1b0, 0xa2b0, 0x4181, 0x4281, 0xa3b0, 0x4381, 0x4481, 0xa4b0, 0xa5b0, 0xa6b0, 0xa7b0, 0x4581, 0x4681, 0x4781, 0x4881, 0x4981, 0xa8b0, 0xa9b0, 0xaab0, 0xabb0, 0xacb0, 0xadb0, 0xaeb0, 0xafb0, 0x4a81, 0xb0b0, 0xb1b0, 0xb2b0, 0xb3b0, 0xb4b0, 0x4b81, 0x4c81, 0xb5b0, 0x4d81, 0x4e81, 0x4f81, 0xb6b0, 0x5081, 0x5181, 0x5281, 0x5381, 0x5481, 0x5581, 0x5681, 0xb7b0, 0xb8b0, 0x5781, 0xb9b0, 0xbab0, 0xbbb0, 0x5881, 0x5981, 0x5a81, 0x6181, 0x6281, 0x6381, 0xbcb0, 0xbdb0, 0x6481, 0x6581, 0xbeb0, 0x6681, 0x6781, 0x6881, 0xbfb0, 0x6981, 0x6a81, 0x6b81, 0x6c81, 0x6d81, 0x6e81, 0x6f81, 0x7081, 0x7181, 0x7281, 0xc0b0, 0x7381, 0xc1b0, 0x7481, 0x7581, 0x7681, 0x7781, 0x7881, 0x7981, 0xc2b0, 0x7a81, 0x8181, 0x8281, 0xc3b0, 0x8381, 0x8481, 0x8581, 0xc4b0, 0x8681, 0x8781, 0x8881, 0x8981, 0x8a81, 0x8b81, 0x8c81, 0x8d81, 0x8e81, 0x8f81, 0x9081, 0x9181, 0x9281, 0x9381, 0x9481, 0x9581, 0x9681, 0x9781, 0x9881, 0xc5b0, 0xc6b0, 0x9981, 0x9a81, 0xc7b0, 0x9b81, 0x9c81, 0xc8b0, 0xc9b0, 0x9d81, 0xcab0, 0x9e81, 0x9f81, 0xa081, 0xa181, 0xa281, 0xcbb0, 0xccb0, 0xa381, 0xcdb0, 0xceb0, 0xcfb0, 0xd0b0, 0xa481, 0xa581, 0xd1b0, 0xd2b0, 0xd3b0, 0xd4b0, 0xa681, 0xa781, 0xa881, 0xd5b0, 0xa981, 0xaa81, 0xab81, 0xd6b0, 0xac81, 0xad81, 0xae81, 0xaf81, 0xb081, 0xb181, 0xb281, 0xd7b0, 0xd8b0, 0xb381, 0xd9b0, 0xdab0, 0xdbb0, 0xb481, 0xb581, 0xb681, 0xb781, 0xb881, 0xb981, 0xdcb0, 0xddb0, 0xdeb0, 0xba81, 0xdfb0, 0xbb81, 0xbc81, 0xe0b0, 0xe1b0, 0xbd81, 0xbe81, 0xbf81, 0xc081, 0xc181, 0xc281, 0xc381, 0xe2b0, 0xe3b0, 0xc481, 0xe4b0, 0xe5b0, 0xe6b0, 0xc581, 0xc681, 0xc781, 0xe7b0, 0xc881, 0xc981, 0xe8b0, 0xca81, 0xcb81, 0xcc81, 0xe9b0, 0xcd81, 0xce81, 0xcf81, 0xeab0, 0xd081, 0xd181, 0xd281, 0xd381, 0xd481, 0xd581, 0xd681, 0xd781, 0xebb0, 0xd881, 0xecb0, 0xd981, 0xda81, 0xdb81, 0xdc81, 0xdd81, 0xde81, 0xdf81, 0xe081, 0xedb0, 0xeeb0, 0xe181, 0xe281, 0xefb0, 0xe381, 0xe481, 0xf0b0, 0xf1b0, 0xe581, 0xf2b0, 0xe681, 0xf3b0, 0xe781, 0xe881, 0xf4b0, 0xf5b0, 0xf6b0, 0xe981, 0xf7b0, 0xea81, 0xf8b0, 0xf9b0, 0xeb81, 0xec81, 0xed81, 0xee81, 0xef81, 0xfab0, 0xfbb0, 0xf081, 0xf181, 0xfcb0, 0xf281, 0xf381, 0xf481, 0xfdb0, 0xf581, 0xfeb0, 0xf681, 0xf781, 0xf881, 0xf981, 0xfa81, 0xa1b1, 0xa2b1, 0xfb81, 0xa3b1, 0xfc81, 0xa4b1, 0xfd81, 0xfe81, 0x4182, 0x4282, 0x4382, 0x4482, 0xa5b1, 0x4582, 0x4682, 0x4782, 0xa6b1, 0x4882, 0x4982, 0x4a82, 0xa7b1, 0x4b82, 0x4c82, 0x4d82, 0x4e82, 0x4f82, 0x5082, 0x5182, 0x5282, 0xa8b1, 0x5382, 0x5482, 0xa9b1, 0xaab1, 0x5582, 0x5682, 0x5782, 0x5882, 0x5982, 0x5a82, 0xabb1, 0xacb1, 0x6182, 0x6282, 0xadb1, 0x6382, 0x6482, 0x6582, 0xaeb1, 0x6682, 0x6782, 0x6882, 0x6982, 0x6a82, 0x6b82, 0x6c82, 0xafb1, 0xb0b1, 0x6d82, 0xb1b1, 0x6e82, 0xb2b1, 0x6f82, 0x7082, 0x7182, 0x7282, 0x7382, 0x7482, 0xb3b1, 0x7582, 0x7682, 0x7782, 0xb4b1, 0x7882, 0x7982, 0x7a82, 0xb5b1, 0x8182, 0x8282, 0x8382, 0x8482, 0x8582, 0x8682, 0x8782, 0x8882, 0xb6b1, 0x8982, 0xb7b1, 0x8a82, 0x8b82, 0x8c82, 0x8d82, 0x8e82, 0x8f82, 0x9082, 0x9182, 0xb8b1, 0xb9b1, 0x9282, 0x9382, 0xbab1, 0x9482, 0x9582, 0xbbb1, 0xbcb1, 0xbdb1, 0xbeb1, 0x9682, 0x9782, 0x9882, 0x9982, 0xbfb1, 0xc0b1, 0xc1b1, 0x9a82, 0xc2b1, 0x9b82, 0xc3b1, 0xc4b1, 0x9c82, 0x9d82, 0x9e82, 0x9f82, 0xa082, 0xc5b1, 0xc6b1, 0xa182, 0xa282, 0xc7b1, 0xa382, 0xa482, 0xa582, 0xc8b1, 0xa682, 0xa782, 0xa882, 0xa982, 0xaa82, 0xab82, 0xac82, 0xad82, 0xae82, 0xaf82, 0xb082, 0xc9b1, 0xcab1, 0xb182, 0xb282, 0xb382, 0xb482, 0xb582, 0xb682, 0xcbb1, 0xb782, 0xb882, 0xb982, 0xba82, 0xbb82, 0xbc82, 0xbd82, 0xbe82, 0xbf82, 0xc082, 0xc182, 0xc282, 0xc382, 0xc482, 0xc582, 0xc682, 0xc782, 0xc882, 0xccb1, 0xc982, 0xca82, 0xcb82, 0xcc82, 0xcd82, 0xce82, 0xcf82, 0xd082, 0xcdb1, 0xceb1, 0xd182, 0xd282, 0xcfb1, 0xd382, 0xd482, 0xd582, 0xd0b1, 0xd682, 0xd782, 0xd882, 0xd982, 0xda82, 0xdb82, 0xdc82, 0xd1b1, 0xd2b1, 0xdd82, 0xd3b1, 0xde82, 0xdf82, 0xe082, 0xe182, 0xe282, 0xe382, 0xe482, 0xe582, 0xd4b1, 0xe682, 0xe782, 0xe882, 0xd5b1, 0xe982, 0xea82, 0xeb82, 0xd6b1, 0xec82, 0xed82, 0xee82, 0xef82, 0xf082, 0xf182, 0xf282, 0xf382, 0xf482, 0xf582, 0xf682, 0xf782, 0xf882, 0xf982, 0xfa82, 0xfb82, 0xfc82, 0xfd82, 0xfe82, 0xd7b1, 0xd8b1, 0x4183, 0x4283, 0xd9b1, 0x4383, 0x4483, 0xdab1, 0xdbb1, 0xdcb1, 0x4583, 0x4683, 0x4783, 0x4883, 0x4983, 0x4a83, 0xddb1, 0xdeb1, 0x4b83, 0xdfb1, 0x4c83, 0xe0b1, 0x4d83, 0x4e83, 0x4f83, 0x5083, 0x5183, 0x5283, 0xe1b1, 0x5383, 0x5483, 0x5583, 0x5683, 0x5783, 0x5883, 0x5983, 0x5a83, 0x6183, 0x6283, 0x6383, 0x6483, 0x6583, 0x6683, 0x6783, 0x6883, 0x6983, 0x6a83, 0x6b83, 0x6c83, 0x6d83, 0x6e83, 0x6f83, 0x7083, 0x7183, 0x7283, 0x7383, 0xe2b1, 0xe3b1, 0x7483, 0x7583, 0xe4b1, 0x7683, 0x7783, 0xe5b1, 0xe6b1, 0x7883, 0xe7b1, 0x7983, 0x7a83, 0x8183, 0x8283, 0x8383, 0xe8b1, 0xe9b1, 0x8483, 0xeab1, 0x8583, 0xebb1, 0xecb1, 0x8683, 0x8783, 0x8883, 0xedb1, 0x8983, 0xeeb1, 0xefb1, 0xf0b1, 0x8a83, 0xf1b1, 0x8b83, 0x8c83, 0x8d83, 0xf2b1, 0x8e83, 0xf3b1, 0x8f83, 0x9083, 0x9183, 0x9283, 0x9383, 0xf4b1, 0xf5b1, 0x9483, 0xf6b1, 0xf7b1, 0xf8b1, 0x9583, 0x9683, 0x9783, 0xf9b1, 0x9883, 0x9983, 0xfab1, 0xfbb1, 0x9a83, 0x9b83, 0xfcb1, 0x9c83, 0x9d83, 0x9e83, 0xfdb1, 0x9f83, 0xa083, 0xa183, 0xa283, 0xa383, 0xa483, 0xa583, 0xfeb1, 0xa1b2, 0xa683, 0xa2b2, 0xa3b2, 0xa4b2, 0xa783, 0xa883, 0xa983, 0xaa83, 0xab83, 0xac83, 0xa5b2, 0xa6b2, 0xad83, 0xae83, 0xaf83, 0xb083, 0xb183, 0xb283, 0xa7b2, 0xb383, 0xb483, 0xb583, 0xb683, 0xb783, 0xb883, 0xb983, 0xba83, 0xbb83, 0xbc83, 0xbd83, 0xbe83, 0xbf83, 0xc083, 0xc183, 0xc283, 0xc383, 0xc483, 0xc583, 0xc683, 0xc783, 0xc883, 0xc983, 0xca83, 0xcb83, 0xcc83, 0xcd83, 0xce83, 0xcf83, 0xd083, 0xd183, 0xd283, 0xd383, 0xd483, 0xd583, 0xd683, 0xd783, 0xd883, 0xd983, 0xda83, 0xdb83, 0xdc83, 0xdd83, 0xde83, 0xdf83, 0xe083, 0xe183, 0xa8b2, 0xa9b2, 0xaab2, 0xe283, 0xabb2, 0xe383, 0xe483, 0xe583, 0xacb2, 0xe683, 0xe783, 0xe883, 0xe983, 0xea83, 0xeb83, 0xec83, 0xadb2, 0xaeb2, 0xed83, 0xafb2, 0xb0b2, 0xb1b2, 0xee83, 0xef83, 0xf083, 0xf183, 0xf283, 0xf383, 0xb2b2, 0xb3b2, 0xf483, 0xf583, 0xb4b2, 0xf683, 0xf783, 0xf883, 0xf983, 0xfa83, 0xfb83, 0xfc83, 0xfd83, 0xfe83, 0x4184, 0x4284, 0xb5b2, 0x4384, 0x4484, 0xb6b2, 0x4584, 0xb7b2, 0x4684, 0x4784, 0x4884, 0x4984, 0x4a84, 0x4b84, 0xb8b2, 0x4c84, 0x4d84, 0x4e84, 0xb9b2, 0x4f84, 0x5084, 0x5184, 0xbab2, 0x5284, 0x5384, 0x5484, 0x5584, 0x5684, 0x5784, 0x5884, 0x5984, 0x5a84, 0x6184, 0xbbb2, 0xbcb2, 0x6284, 0x6384, 0x6484, 0x6584, 0xbdb2, 0x6684, 0x6784, 0xbeb2, 0x6884, 0x6984, 0x6a84, 0x6b84, 0x6c84, 0x6d84, 0x6e84, 0x6f84, 0x7084, 0x7184, 0x7284, 0x7384, 0x7484, 0x7584, 0x7684, 0x7784, 0x7884, 0x7984, 0x7a84, 0x8184, 0x8284, 0x8384, 0x8484, 0x8584, 0x8684, 0x8784, 0x8884, 0xbfb2, 0xc0b2, 0x8984, 0x8a84, 0xc1b2, 0x8b84, 0xc2b2, 0x8c84, 0xc3b2, 0x8d84, 0x8e84, 0x8f84, 0x9084, 0x9184, 0x9284, 0x9384, 0xc4b2, 0xc5b2, 0x9484, 0xc6b2, 0x9584, 0xc7b2, 0xc8b2, 0xc9b2, 0x9684, 0x9784, 0x9884, 0x9984, 0xcab2, 0xcbb2, 0x9a84, 0x9b84, 0x9c84, 0x9d84, 0x9e84, 0x9f84, 0xccb2, 0xa084, 0xa184, 0xa284, 0xa384, 0xa484, 0xa584, 0xa684, 0xa784, 0xa884, 0xa984, 0xaa84, 0xcdb2, 0xceb2, 0xab84, 0xac84, 0xad84, 0xae84, 0xaf84, 0xb084, 0xcfb2, 0xd0b2, 0xb184, 0xb284, 0xb384, 0xb484, 0xb584, 0xb684, 0xb784, 0xb884, 0xb984, 0xba84, 0xbb84, 0xbc84, 0xbd84, 0xbe84, 0xbf84, 0xc084, 0xc184, 0xc284, 0xc384, 0xd1b2, 0xc484, 0xc584, 0xc684, 0xc784, 0xc884, 0xc984, 0xd2b2, 0xca84, 0xcb84, 0xcc84, 0xd3b2, 0xcd84, 0xce84, 0xcf84, 0xd4b2, 0xd084, 0xd184, 0xd284, 0xd384, 0xd484, 0xd584, 0xd684, 0xd5b2, 0xd6b2, 0xd784, 0xd884, 0xd984, 0xd7b2, 0xda84, 0xdb84, 0xdc84, 0xdd84, 0xde84, 0xdf84, 0xd8b2, 0xe084, 0xe184, 0xe284, 0xe384, 0xe484, 0xe584, 0xe684, 0xe784, 0xe884, 0xe984, 0xea84, 0xeb84, 0xec84, 0xed84, 0xee84, 0xef84, 0xf084, 0xf184, 0xf284, 0xf384, 0xf484, 0xf584, 0xf684, 0xf784, 0xf884, 0xf984, 0xfa84, 0xd9b2, 0xdab2, 0xfb84, 0xfc84, 0xdbb2, 0xfd84, 0xfe84, 0x4185, 0xdcb2, 0x4285, 0x4385, 0x4485, 0x4585, 0x4685, 0x4785, 0xddb2, 0xdeb2, 0xdfb2, 0x4885, 0xe0b2, 0x4985, 0xe1b2, 0xe2b2, 0x4a85, 0x4b85, 0x4c85, 0x4d85, 0x4e85, 0xe3b2, 0x4f85, 0x5085, 0x5185, 0x5285, 0x5385, 0x5485, 0x5585, 0xe4b2, 0x5685, 0x5785, 0x5885, 0x5985, 0x5a85, 0x6185, 0x6285, 0x6385, 0x6485, 0x6585, 0x6685, 0xe5b2, 0xe6b2, 0x6785, 0x6885, 0x6985, 0x6a85, 0x6b85, 0x6c85, 0xe7b2, 0xe8b2, 0x6d85, 0x6e85, 0xe9b2, 0x6f85, 0x7085, 0x7185, 0xeab2, 0x7285, 0x7385, 0x7485, 0x7585, 0x7685, 0x7785, 0x7885, 0xebb2, 0xecb2, 0x7985, 0x7a85, 0xedb2, 0x8185, 0x8285, 0x8385, 0x8485, 0x8585, 0x8685, 0x8785, 0xeeb2, 0x8885, 0x8985, 0x8a85, 0xefb2, 0x8b85, 0x8c85, 0x8d85, 0xf0b2, 0x8e85, 0x8f85, 0x9085, 0x9185, 0x9285, 0x9385, 0x9485, 0xf1b2, 0xf2b2, 0x9585, 0x9685, 0x9785, 0x9885, 0x9985, 0x9a85, 0x9b85, 0x9c85, 0x9d85, 0x9e85, 0xf3b2, 0x9f85, 0xa085, 0xa185, 0xa285, 0xa385, 0xa485, 0xa585, 0xa685, 0xa785, 0xa885, 0xa985, 0xaa85, 0xab85, 0xac85, 0xad85, 0xae85, 0xaf85, 0xb085, 0xb185, 0xb285, 0xb385, 0xb485, 0xb585, 0xb685, 0xb785, 0xb885, 0xb985, 0xf4b2, 0xf5b2, 0xba85, 0xbb85, 0xf6b2, 0xbc85, 0xf7b2, 0xbd85, 0xf8b2, 0xbe85, 0xf9b2, 0xbf85, 0xc085, 0xc185, 0xc285, 0xfab2, 0xfbb2, 0xfcb2, 0xc385, 0xfdb2, 0xc485, 0xfeb2, 0xc585, 0xc685, 0xc785, 0xa1b3, 0xc885, 0xc985, 0xca85, 0xcb85, 0xcc85, 0xcd85, 0xce85, 0xcf85, 0xd085, 0xd185, 0xd285, 0xd385, 0xd485, 0xd585, 0xd685, 0xd785, 0xd885, 0xd985, 0xda85, 0xdb85, 0xdc85, 0xdd85, 0xde85, 0xdf85, 0xe085, 0xe185, 0xe285, 0xe385, 0xe485, 0xe585, 0xa2b3, 0xa3b3, 0xe685, 0xe785, 0xa4b3, 0xe885, 0xe985, 0xea85, 0xa5b3, 0xeb85, 0xec85, 0xed85, 0xee85, 0xef85, 0xf085, 0xf185, 0xa6b3, 0xa7b3, 0xf285, 0xa8b3, 0xf385, 0xa9b3, 0xf485, 0xf585, 0xf685, 0xf785, 0xf885, 0xf985, 0xaab3, 0xabb3, 0xacb3, 0xfa85, 0xadb3, 0xfb85, 0xfc85, 0xaeb3, 0xafb3, 0xb0b3, 0xb1b3, 0xfd85, 0xfe85, 0x4186, 0x4286, 0x4386, 0xb2b3, 0xb3b3, 0x4486, 0xb4b3, 0xb5b3, 0xb6b3, 0xb7b3, 0xb8b3, 0x4586, 0xb9b3, 0x4686, 0xbab3, 0xbbb3, 0xbcb3, 0x4786, 0x4886, 0xbdb3, 0x4986, 0x4a86, 0x4b86, 0xbeb3, 0x4c86, 0x4d86, 0x4e86, 0x4f86, 0x5086, 0x5186, 0x5286, 0xbfb3, 0xc0b3, 0x5386, 0xc1b3, 0xc2b3, 0xc3b3, 0x5486, 0x5586, 0x5686, 0x5786, 0x5886, 0x5986, 0xc4b3, 0xc5b3, 0x5a86, 0x6186, 0xc6b3, 0x6286, 0x6386, 0x6486, 0xc7b3, 0x6586, 0x6686, 0x6786, 0x6886, 0x6986, 0x6a86, 0x6b86, 0xc8b3, 0x6c86, 0x6d86, 0x6e86, 0x6f86, 0xc9b3, 0x7086, 0x7186, 0x7286, 0x7386, 0x7486, 0x7586, 0x7686, 0x7786, 0x7886, 0x7986, 0x7a86, 0x8186, 0x8286, 0x8386, 0x8486, 0x8586, 0x8686, 0x8786, 0x8886, 0x8986, 0x8a86, 0x8b86, 0x8c86, 0x8d86, 0x8e86, 0x8f86, 0x9086, 0x9186, 0x9286, 0x9386, 0x9486, 0x9586, 0x9686, 0x9786, 0xcab3, 0xcbb3, 0x9886, 0xccb3, 0xcdb3, 0x9986, 0x9a86, 0x9b86, 0xceb3, 0x9c86, 0xcfb3, 0xd0b3, 0x9d86, 0x9e86, 0x9f86, 0xa086, 0xd1b3, 0xd2b3, 0xa186, 0xd3b3, 0xd4b3, 0xd5b3, 0xa286, 0xa386, 0xa486, 0xa586, 0xa686, 0xd6b3, 0xd7b3, 0xd8b3, 0xa786, 0xa886, 0xd9b3, 0xa986, 0xaa86, 0xab86, 0xdab3, 0xac86, 0xad86, 0xae86, 0xaf86, 0xb086, 0xb186, 0xb286, 0xdbb3, 0xdcb3, 0xb386, 0xddb3, 0xdeb3, 0xdfb3, 0xb486, 0xb586, 0xb686, 0xb786, 0xb886, 0xb986, 0xe0b3, 0xe1b3, 0xba86, 0xbb86, 0xe2b3, 0xbc86, 0xbd86, 0xbe86, 0xe3b3, 0xbf86, 0xc086, 0xc186, 0xc286, 0xc386, 0xc486, 0xc586, 0xe4b3, 0xe5b3, 0xc686, 0xc786, 0xe6b3, 0xe7b3, 0xc886, 0xc986, 0xe8b3, 0xca86, 0xcb86, 0xcc86, 0xe9b3, 0xcd86, 0xce86, 0xcf86, 0xeab3, 0xd086, 0xd186, 0xd286, 0xd386, 0xd486, 0xd586, 0xd686, 0xd786, 0xd886, 0xd986, 0xda86, 0xdb86, 0xdc86, 0xdd86, 0xde86, 0xdf86, 0xe086, 0xe186, 0xe286, 0xe386, 0xe486, 0xe586, 0xe686, 0xebb3, 0xecb3, 0xe786, 0xe886, 0xedb3, 0xe986, 0xea86, 0xeb86, 0xeeb3, 0xec86, 0xefb3, 0xed86, 0xee86, 0xef86, 0xf086, 0xf186, 0xf0b3, 0xf1b3, 0xf286, 0xf2b3, 0xf386, 0xf3b3, 0xf486, 0xf586, 0xf686, 0xf786, 0xf4b3, 0xf5b3, 0xf6b3, 0xf886, 0xf986, 0xfa86, 0xf7b3, 0xfb86, 0xfc86, 0xfd86, 0xf8b3, 0xfe86, 0x4187, 0x4287, 0x4387, 0x4487, 0x4587, 0x4687, 0x4787, 0x4887, 0x4987, 0x4a87, 0xf9b3, 0x4b87, 0x4c87, 0x4d87, 0x4e87, 0x4f87, 0x5087, 0x5187, 0x5287, 0x5387, 0x5487, 0x5587, 0x5687, 0x5787, 0x5887, 0x5987, 0x5a87, 0x6187, 0x6287, 0x6387, 0x6487, 0x6587, 0x6687, 0x6787, 0x6887, 0x6987, 0x6a87, 0x6b87, 0x6c87, 0x6d87, 0x6e87, 0x6f87, 0x7087, 0x7187, 0x7287, 0x7387, 0xfab3, 0x7487, 0x7587, 0x7687, 0xfbb3, 0x7787, 0x7887, 0x7987, 0xfcb3, 0x7a87, 0x8187, 0x8287, 0x8387, 0x8487, 0x8587, 0x8687, 0xfdb3, 0xfeb3, 0x8787, 0xa1b4, 0x8887, 0x8987, 0x8a87, 0x8b87, 0x8c87, 0x8d87, 0x8e87, 0x8f87, 0xa2b4, 0xa3b4, 0x9087, 0x9187, 0xa4b4, 0x9287, 0x9387, 0x9487, 0xa5b4, 0x9587, 0x9687, 0x9787, 0x9887, 0x9987, 0x9a87, 0x9b87, 0x9c87, 0xa6b4, 0x9d87, 0xa7b4, 0x9e87, 0xa8b4, 0x9f87, 0xa087, 0xa187, 0xa287, 0xa387, 0xa487, 0xa9b4, 0xaab4, 0xa587, 0xa687, 0xabb4, 0xa787, 0xa887, 0xacb4, 0xadb4, 0xa987, 0xaa87, 0xab87, 0xac87, 0xad87, 0xae87, 0xaf87, 0xaeb4, 0xafb4, 0xb087, 0xb0b4, 0xb187, 0xb1b4, 0xb287, 0xb387, 0xb487, 0xb587, 0xb687, 0xb787, 0xb2b4, 0xb887, 0xb987, 0xba87, 0xbb87, 0xbc87, 0xbd87, 0xbe87, 0xbf87, 0xc087, 0xc187, 0xc287, 0xc387, 0xc487, 0xc587, 0xc687, 0xc787, 0xc887, 0xc987, 0xca87, 0xb3b4, 0xcb87, 0xcc87, 0xcd87, 0xce87, 0xcf87, 0xd087, 0xd187, 0xb4b4, 0xd287, 0xd387, 0xd487, 0xd587, 0xd687, 0xd787, 0xd887, 0xd987, 0xda87, 0xdb87, 0xdc87, 0xdd87, 0xde87, 0xdf87, 0xe087, 0xe187, 0xe287, 0xe387, 0xe487, 0xe587, 0xe687, 0xe787, 0xe887, 0xe987, 0xea87, 0xeb87, 0xec87, 0xb5b4, 0xed87, 0xee87, 0xef87, 0xb6b4, 0xf087, 0xf187, 0xf287, 0xb7b4, 0xf387, 0xf487, 0xf587, 0xf687, 0xf787, 0xf887, 0xf987, 0xb8b4, 0xb9b4, 0xfa87, 0xfb87, 0xfc87, 0xfd87, 0xfe87, 0x4188, 0x4288, 0x4388, 0x4488, 0x4588, 0xbab4, 0xbbb4, 0x4688, 0x4788, 0x4888, 0x4988, 0x4a88, 0x4b88, 0xbcb4, 0x4c88, 0x4d88, 0x4e88, 0x4f88, 0x5088, 0x5188, 0x5288, 0xbdb4, 0xbeb4, 0x5388, 0x5488, 0x5588, 0xbfb4, 0x5688, 0x5788, 0x5888, 0x5988, 0x5a88, 0x6188, 0xc0b4, 0xc1b4, 0x6288, 0x6388, 0xc2b4, 0x6488, 0x6588, 0x6688, 0xc3b4, 0xc4b4, 0xc5b4, 0x6788, 0x6888, 0x6988, 0x6a88, 0x6b88, 0xc6b4, 0xc7b4, 0x6c88, 0xc8b4, 0x6d88, 0xc9b4, 0xcab4, 0x6e88, 0x6f88, 0x7088, 0xcbb4, 0x7188, 0xccb4, 0x7288, 0x7388, 0x7488, 0xcdb4, 0x7588, 0x7688, 0x7788, 0xceb4, 0x7888, 0x7988, 0x7a88, 0x8188, 0x8288, 0x8388, 0x8488, 0x8588, 0x8688, 0x8788, 0x8888, 0x8988, 0x8a88, 0x8b88, 0x8c88, 0x8d88, 0x8e88, 0x8f88, 0x9088, 0xcfb4, 0xd0b4, 0x9188, 0x9288, 0xd1b4, 0x9388, 0x9488, 0x9588, 0xd2b4, 0x9688, 0xd3b4, 0x9788, 0x9888, 0x9988, 0x9a88, 0x9b88, 0xd4b4, 0xd5b4, 0x9c88, 0xd6b4, 0x9d88, 0xd7b4, 0x9e88, 0x9f88, 0xa088, 0xa188, 0xd8b4, 0xa288, 0xd9b4, 0xdab4, 0xdbb4, 0xa388, 0xdcb4, 0xa488, 0xa588, 0xddb4, 0xdeb4, 0xdfb4, 0xe0b4, 0xe1b4, 0xa688, 0xa788, 0xa888, 0xe2b4, 0xe3b4, 0xe4b4, 0xa988, 0xe5b4, 0xe6b4, 0xe7b4, 0xe8b4, 0xe9b4, 0xaa88, 0xab88, 0xac88, 0xeab4, 0xebb4, 0xecb4, 0xad88, 0xae88, 0xedb4, 0xaf88, 0xb088, 0xb188, 0xeeb4, 0xb288, 0xb388, 0xb488, 0xb588, 0xb688, 0xb788, 0xb888, 0xefb4, 0xf0b4, 0xb988, 0xf1b4, 0xf2b4, 0xf3b4, 0xba88, 0xbb88, 0xbc88, 0xbd88, 0xbe88, 0xbf88, 0xf4b4, 0xc088, 0xc188, 0xc288, 0xc388, 0xc488, 0xc588, 0xc688, 0xc788, 0xc888, 0xc988, 0xca88, 0xcb88, 0xcc88, 0xcd88, 0xce88, 0xcf88, 0xd088, 0xd188, 0xd288, 0xd388, 0xd488, 0xd588, 0xd688, 0xd788, 0xd888, 0xd988, 0xda88, 0xdb88, 0xdc88, 0xdd88, 0xde88, 0xdf88, 0xe088, 0xe188, 0xe288, 0xe388, 0xe488, 0xe588, 0xe688, 0xe788, 0xe888, 0xe988, 0xea88, 0xeb88, 0xec88, 0xed88, 0xee88, 0xef88, 0xf088, 0xf188, 0xf288, 0xf388, 0xf488, 0xf588, 0xf688, 0xf5b4, 0xf6b4, 0xf7b4, 0xf788, 0xf8b4, 0xf888, 0xf988, 0xf9b4, 0xfab4, 0xfa88, 0xfbb4, 0xfcb4, 0xfb88, 0xfc88, 0xfd88, 0xfe88, 0xfdb4, 0xfeb4, 0x4189, 0xa1b5, 0x4289, 0xa2b5, 0x4389, 0xa3b5, 0x4489, 0x4589, 0xa4b5, 0x4689, 0xa5b5, 0xa6b5, 0x4789, 0x4889, 0xa7b5, 0x4989, 0x4a89, 0x4b89, 0xa8b5, 0x4c89, 0x4d89, 0x4e89, 0x4f89, 0x5089, 0x5189, 0x5289, 0xa9b5, 0xaab5, 0x5389, 0xabb5, 0xacb5, 0xadb5, 0x5489, 0x5589, 0x5689, 0x5789, 0x5889, 0x5989, 0xaeb5, 0x5a89, 0x6189, 0x6289, 0xafb5, 0x6389, 0x6489, 0x6589, 0xb0b5, 0x6689, 0x6789, 0x6889, 0x6989, 0x6a89, 0x6b89, 0x6c89, 0x6d89, 0x6e89, 0x6f89, 0x7089, 0xb1b5, 0xb2b5, 0x7189, 0x7289, 0x7389, 0x7489, 0x7589, 0x7689, 0xb3b5, 0x7789, 0x7889, 0x7989, 0xb4b5, 0x7a89, 0x8189, 0x8289, 0x8389, 0x8489, 0x8589, 0x8689, 0x8789, 0x8889, 0x8989, 0x8a89, 0x8b89, 0x8c89, 0x8d89, 0x8e89, 0x8f89, 0x9089, 0x9189, 0x9289, 0x9389, 0x9489, 0x9589, 0x9689, 0xb5b5, 0xb6b5, 0x9789, 0x9889, 0xb7b5, 0x9989, 0x9a89, 0xb8b5, 0xb9b5, 0x9b89, 0xbab5, 0x9c89, 0xbbb5, 0x9d89, 0x9e89, 0x9f89, 0xbcb5, 0xbdb5, 0xa089, 0xbeb5, 0xa189, 0xbfb5, 0xa289, 0xc0b5, 0xa389, 0xc1b5, 0xa489, 0xa589, 0xc2b5, 0xa689, 0xa789, 0xa889, 0xc3b5, 0xa989, 0xaa89, 0xab89, 0xc4b5, 0xac89, 0xad89, 0xae89, 0xaf89, 0xb089, 0xb189, 0xb289, 0xb389, 0xb489, 0xb589, 0xb689, 0xb789, 0xb889, 0xb989, 0xba89, 0xbb89, 0xbc89, 0xbd89, 0xbe89, 0xc5b5, 0xbf89, 0xc089, 0xc189, 0xc289, 0xc389, 0xc489, 0xc589, 0xc689, 0xc789, 0xc889, 0xc989, 0xca89, 0xcb89, 0xcc89, 0xcd89, 0xce89, 0xcf89, 0xd089, 0xd189, 0xc6b5, 0xd289, 0xd389, 0xd489, 0xd589, 0xd689, 0xd789, 0xd889, 0xc7b5, 0xd989, 0xda89, 0xdb89, 0xc8b5, 0xdc89, 0xdd89, 0xde89, 0xc9b5, 0xdf89, 0xe089, 0xe189, 0xe289, 0xe389, 0xe489, 0xe589, 0xcab5, 0xcbb5, 0xe689, 0xccb5, 0xe789, 0xe889, 0xe989, 0xea89, 0xeb89, 0xec89, 0xed89, 0xee89, 0xcdb5, 0xef89, 0xf089, 0xf189, 0xf289, 0xf389, 0xf489, 0xf589, 0xf689, 0xf789, 0xf889, 0xf989, 0xfa89, 0xfb89, 0xfc89, 0xfd89, 0xfe89, 0x418a, 0x428a, 0x438a, 0x448a, 0x458a, 0x468a, 0x478a, 0x488a, 0x498a, 0x4a8a, 0x4b8a, 0xceb5, 0xcfb5, 0x4c8a, 0x4d8a, 0xd0b5, 0x4e8a, 0x4f8a, 0x508a, 0xd1b5, 0x518a, 0x528a, 0x538a, 0x548a, 0x558a, 0x568a, 0x578a, 0xd2b5, 0xd3b5, 0x588a, 0xd4b5, 0x598a, 0xd5b5, 0x5a8a, 0x618a, 0x628a, 0x638a, 0x648a, 0x658a, 0xd6b5, 0x668a, 0x678a, 0x688a, 0x698a, 0x6a8a, 0x6b8a, 0x6c8a, 0x6d8a, 0x6e8a, 0x6f8a, 0x708a, 0x718a, 0x728a, 0x738a, 0x748a, 0x758a, 0x768a, 0x778a, 0x788a, 0xd7b5, 0x798a, 0x7a8a, 0x818a, 0x828a, 0x838a, 0x848a, 0x858a, 0xd8b5, 0x868a, 0x878a, 0x888a, 0x898a, 0x8a8a, 0x8b8a, 0x8c8a, 0x8d8a, 0x8e8a, 0x8f8a, 0x908a, 0x918a, 0x928a, 0x938a, 0x948a, 0x958a, 0x968a, 0x978a, 0x988a, 0x998a, 0xd9b5, 0x9a8a, 0x9b8a, 0x9c8a, 0x9d8a, 0x9e8a, 0x9f8a, 0xdab5, 0xa08a, 0xa18a, 0xa28a, 0xdbb5, 0xa38a, 0xa48a, 0xa58a, 0xdcb5, 0xa68a, 0xa78a, 0xa88a, 0xa98a, 0xaa8a, 0xab8a, 0xac8a, 0xad8a, 0xddb5, 0xae8a, 0xdeb5, 0xaf8a, 0xdfb5, 0xb08a, 0xb18a, 0xb28a, 0xb38a, 0xb48a, 0xb58a, 0xe0b5, 0xb68a, 0xb78a, 0xb88a, 0xe1b5, 0xb98a, 0xba8a, 0xbb8a, 0xe2b5, 0xbc8a, 0xbd8a, 0xbe8a, 0xbf8a, 0xc08a, 0xc18a, 0xc28a, 0xe3b5, 0xc38a, 0xc48a, 0xc58a, 0xc68a, 0xe4b5, 0xc78a, 0xc88a, 0xc98a, 0xca8a, 0xcb8a, 0xcc8a, 0xe5b5, 0xe6b5, 0xcd8a, 0xce8a, 0xe7b5, 0xcf8a, 0xd08a, 0xe8b5, 0xe9b5, 0xd18a, 0xeab5, 0xd28a, 0xd38a, 0xd48a, 0xd58a, 0xd68a, 0xebb5, 0xecb5, 0xd78a, 0xedb5, 0xd88a, 0xeeb5, 0xd98a, 0xda8a, 0xdb8a, 0xdc8a, 0xdd8a, 0xde8a, 0xefb5, 0xdf8a, 0xe08a, 0xe18a, 0xe28a, 0xe38a, 0xe48a, 0xe58a, 0xe68a, 0xe78a, 0xe88a, 0xe98a, 0xea8a, 0xeb8a, 0xec8a, 0xed8a, 0xee8a, 0xef8a, 0xf08a, 0xf18a, 0xf28a, 0xf38a, 0xf48a, 0xf58a, 0xf68a, 0xf78a, 0xf88a, 0xf98a, 0xf0b5, 0xf1b5, 0xfa8a, 0xfb8a, 0xf2b5, 0xfc8a, 0xfd8a, 0xf3b5, 0xf4b5, 0xfe8a, 0x418b, 0x428b, 0x438b, 0x448b, 0x458b, 0x468b, 0xf5b5, 0xf6b5, 0x478b, 0xf7b5, 0xf8b5, 0xf9b5, 0xfab5, 0x488b, 0x498b, 0x4a8b, 0x4b8b, 0x4c8b, 0xfbb5, 0xfcb5, 0x4d8b, 0x4e8b, 0xfdb5, 0x4f8b, 0x508b, 0x518b, 0xfeb5, 0x528b, 0x538b, 0x548b, 0x558b, 0x568b, 0x578b, 0x588b, 0xa1b6, 0xa2b6, 0x598b, 0xa3b6, 0xa4b6, 0xa5b6, 0x5a8b, 0x618b, 0x628b, 0x638b, 0x648b, 0xa6b6, 0xa7b6, 0xa8b6, 0x658b, 0x668b, 0xa9b6, 0x678b, 0x688b, 0x698b, 0xaab6, 0x6a8b, 0x6b8b, 0x6c8b, 0x6d8b, 0x6e8b, 0x6f8b, 0x708b, 0xabb6, 0xacb6, 0x718b, 0xadb6, 0xaeb6, 0xafb6, 0x728b, 0x738b, 0x748b, 0x758b, 0x768b, 0x778b, 0x788b, 0x798b, 0x7a8b, 0x818b, 0x828b, 0x838b, 0x848b, 0x858b, 0x868b, 0x878b, 0x888b, 0x898b, 0x8a8b, 0x8b8b, 0x8c8b, 0x8d8b, 0x8e8b, 0x8f8b, 0x908b, 0x918b, 0x928b, 0x938b, 0x948b, 0x958b, 0x968b, 0x978b, 0x988b, 0x998b, 0x9a8b, 0x9b8b, 0x9c8b, 0x9d8b, 0x9e8b, 0x9f8b, 0xa08b, 0xa18b, 0xa28b, 0xa38b, 0xa48b, 0xa58b, 0xa68b, 0xa78b, 0xa88b, 0xa98b, 0xaa8b, 0xab8b, 0xac8b, 0xad8b, 0xae8b, 0xaf8b, 0xb08b, 0xb18b, 0xb28b, 0xb38b, 0xb48b, 0xb58b, 0xb0b6, 0xb1b6, 0xb68b, 0xb78b, 0xb2b6, 0xb88b, 0xb98b, 0xba8b, 0xb3b6, 0xbb8b, 0xb4b6, 0xb5b6, 0xbc8b, 0xbd8b, 0xbe8b, 0xbf8b, 0xb6b6, 0xb7b6, 0xc08b, 0xb8b6, 0xb9b6, 0xbab6, 0xc18b, 0xc28b, 0xc38b, 0xc48b, 0xc58b, 0xbbb6, 0xbcb6, 0xbdb6, 0xc68b, 0xc78b, 0xbeb6, 0xc88b, 0xc98b, 0xca8b, 0xbfb6, 0xcb8b, 0xcc8b, 0xcd8b, 0xce8b, 0xcf8b, 0xd08b, 0xd18b, 0xc0b6, 0xc1b6, 0xd28b, 0xc2b6, 0xc3b6, 0xc4b6, 0xd38b, 0xd48b, 0xd58b, 0xd68b, 0xd78b, 0xd88b, 0xc5b6, 0xd98b, 0xda8b, 0xdb8b, 0xdc8b, 0xdd8b, 0xde8b, 0xdf8b, 0xe08b, 0xe18b, 0xe28b, 0xe38b, 0xe48b, 0xe58b, 0xe68b, 0xe78b, 0xe88b, 0xe98b, 0xea8b, 0xeb8b, 0xc6b6, 0xec8b, 0xed8b, 0xee8b, 0xef8b, 0xf08b, 0xf18b, 0xf28b, 0xf38b, 0xf48b, 0xf58b, 0xf68b, 0xf78b, 0xf88b, 0xf98b, 0xfa8b, 0xfb8b, 0xfc8b, 0xfd8b, 0xfe8b, 0x418c, 0x428c, 0x438c, 0x448c, 0x458c, 0x468c, 0x478c, 0x488c, 0x498c, 0x4a8c, 0x4b8c, 0x4c8c, 0x4d8c, 0x4e8c, 0x4f8c, 0x508c, 0xc7b6, 0xc8b6, 0x518c, 0x528c, 0xc9b6, 0x538c, 0x548c, 0x558c, 0xcab6, 0x568c, 0x578c, 0x588c, 0x598c, 0x5a8c, 0x618c, 0x628c, 0x638c, 0x648c, 0x658c, 0x668c, 0x678c, 0xcbb6, 0x688c, 0x698c, 0x6a8c, 0x6b8c, 0x6c8c, 0x6d8c, 0xccb6, 0x6e8c, 0x6f8c, 0x708c, 0x718c, 0x728c, 0x738c, 0x748c, 0xcdb6, 0x758c, 0x768c, 0x778c, 0x788c, 0x798c, 0x7a8c, 0x818c, 0x828c, 0x838c, 0x848c, 0x858c, 0x868c, 0x878c, 0x888c, 0x898c, 0x8a8c, 0x8b8c, 0x8c8c, 0x8d8c, 0xceb6, 0x8e8c, 0x8f8c, 0x908c, 0x918c, 0x928c, 0x938c, 0x948c, 0x958c, 0x968c, 0x978c, 0x988c, 0x998c, 0x9a8c, 0x9b8c, 0x9c8c, 0x9d8c, 0x9e8c, 0x9f8c, 0xa08c, 0xa18c, 0xa28c, 0xa38c, 0xa48c, 0xa58c, 0xa68c, 0xa78c, 0xa88c, 0xcfb6, 0xa98c, 0xaa8c, 0xab8c, 0xd0b6, 0xac8c, 0xad8c, 0xae8c, 0xaf8c, 0xb08c, 0xb18c, 0xb28c, 0xb38c, 0xb48c, 0xb58c, 0xb68c, 0xb78c, 0xb88c, 0xb98c, 0xba8c, 0xbb8c, 0xbc8c, 0xbd8c, 0xbe8c, 0xbf8c, 0xc08c, 0xc18c, 0xc28c, 0xc38c, 0xc48c, 0xc58c, 0xc68c, 0xc78c, 0xc88c, 0xc98c, 0xca8c, 0xcb8c, 0xcc8c, 0xcd8c, 0xce8c, 0xcf8c, 0xd08c, 0xd18c, 0xd28c, 0xd38c, 0xd48c, 0xd58c, 0xd68c, 0xd78c, 0xd88c, 0xd98c, 0xda8c, 0xdb8c, 0xdc8c, 0xdd8c, 0xde8c, 0xd1b6, 0xd2b6, 0xdf8c, 0xe08c, 0xd3b6, 0xe18c, 0xe28c, 0xe38c, 0xd4b6, 0xe48c, 0xe58c, 0xe68c, 0xe78c, 0xe88c, 0xe98c, 0xd5b6, 0xd6b6, 0xea8c, 0xeb8c, 0xec8c, 0xed8c, 0xd7b6, 0xee8c, 0xef8c, 0xf08c, 0xf18c, 0xf28c, 0xf38c, 0xf48c, 0xf58c, 0xf68c, 0xf78c, 0xf88c, 0xf98c, 0xfa8c, 0xfb8c, 0xfc8c, 0xfd8c, 0xfe8c, 0x418d, 0x428d, 0x438d, 0x448d, 0x458d, 0x468d, 0x478d, 0x488d, 0x498d, 0x4a8d, 0x4b8d, 0x4c8d, 0x4d8d, 0x4e8d, 0x4f8d, 0x508d, 0x518d, 0xd8b6, 0x528d, 0x538d, 0x548d, 0x558d, 0x568d, 0x578d, 0x588d, 0x598d, 0x5a8d, 0x618d, 0x628d, 0x638d, 0x648d, 0x658d, 0x668d, 0x678d, 0x688d, 0x698d, 0x6a8d, 0x6b8d, 0x6c8d, 0x6d8d, 0x6e8d, 0x6f8d, 0x708d, 0x718d, 0x728d, 0xd9b6, 0x738d, 0x748d, 0x758d, 0xdab6, 0x768d, 0x778d, 0x788d, 0xdbb6, 0x798d, 0x7a8d, 0x818d, 0x828d, 0x838d, 0x848d, 0x858d, 0xdcb6, 0xddb6, 0x868d, 0x878d, 0x888d, 0xdeb6, 0x898d, 0x8a8d, 0x8b8d, 0x8c8d, 0x8d8d, 0x8e8d, 0x8f8d, 0x908d, 0x918d, 0x928d, 0x938d, 0x948d, 0x958d, 0x968d, 0x978d, 0x988d, 0x998d, 0x9a8d, 0x9b8d, 0x9c8d, 0x9d8d, 0x9e8d, 0x9f8d, 0xa08d, 0xa18d, 0xa28d, 0xa38d, 0xa48d, 0xa58d, 0xa68d, 0xa78d, 0xa88d, 0xa98d, 0xaa8d, 0xdfb6, 0xe0b6, 0xab8d, 0xac8d, 0xe1b6, 0xad8d, 0xae8d, 0xe2b6, 0xe3b6, 0xaf8d, 0xb08d, 0xb18d, 0xb28d, 0xb38d, 0xb48d, 0xb58d, 0xe4b6, 0xe5b6, 0xb68d, 0xe6b6, 0xb78d, 0xb88d, 0xb98d, 0xba8d, 0xbb8d, 0xbc8d, 0xbd8d, 0xbe8d, 0xe7b6, 0xbf8d, 0xc08d, 0xc18d, 0xe8b6, 0xc28d, 0xc38d, 0xc48d, 0xe9b6, 0xc58d, 0xc68d, 0xc78d, 0xc88d, 0xc98d, 0xca8d, 0xcb8d, 0xeab6, 0xebb6, 0xcc8d, 0xcd8d, 0xce8d, 0xcf8d, 0xd08d, 0xd18d, 0xd28d, 0xd38d, 0xd48d, 0xd58d, 0xecb6, 0xd68d, 0xd78d, 0xd88d, 0xedb6, 0xd98d, 0xda8d, 0xdb8d, 0xeeb6, 0xdc8d, 0xdd8d, 0xde8d, 0xdf8d, 0xe08d, 0xe18d, 0xe28d, 0xefb6, 0xf0b6, 0xe38d, 0xf1b6, 0xe48d, 0xf2b6, 0xe58d, 0xe68d, 0xe78d, 0xe88d, 0xe98d, 0xea8d, 0xf3b6, 0xf4b6, 0xeb8d, 0xec8d, 0xf5b6, 0xed8d, 0xee8d, 0xef8d, 0xf6b6, 0xf08d, 0xf18d, 0xf28d, 0xf38d, 0xf48d, 0xf58d, 0xf68d, 0xf7b6, 0xf8b6, 0xf78d, 0xf9b6, 0xfab6, 0xfbb6, 0xfcb6, 0xf88d, 0xf98d, 0xfa8d, 0xfdb6, 0xfeb6, 0xa1b7, 0xa2b7, 0xfb8d, 0xfc8d, 0xa3b7, 0xfd8d, 0xfe8d, 0x418e, 0xa4b7, 0x428e, 0x438e, 0x448e, 0x458e, 0x468e, 0x478e, 0x488e, 0xa5b7, 0xa6b7, 0x498e, 0xa7b7, 0xa8b7, 0xa9b7, 0x4a8e, 0x4b8e, 0x4c8e, 0x4d8e, 0x4e8e, 0x4f8e, 0xaab7, 0xabb7, 0x508e, 0x518e, 0xacb7, 0x528e, 0x538e, 0x548e, 0x558e, 0x568e, 0x578e, 0x588e, 0x598e, 0x5a8e, 0x618e, 0x628e, 0x638e, 0x648e, 0x658e, 0xadb7, 0x668e, 0xaeb7, 0x678e, 0x688e, 0x698e, 0x6a8e, 0x6b8e, 0x6c8e, 0x6d8e, 0x6e8e, 0x6f8e, 0x708e, 0x718e, 0x728e, 0x738e, 0x748e, 0x758e, 0x768e, 0x778e, 0x788e, 0x798e, 0x7a8e, 0x818e, 0x828e, 0x838e, 0x848e, 0x858e, 0x868e, 0x878e, 0x888e, 0x898e, 0x8a8e, 0x8b8e, 0x8c8e, 0x8d8e, 0x8e8e, 0xafb7, 0xb0b7, 0x8f8e, 0x908e, 0xb1b7, 0x918e, 0x928e, 0x938e, 0xb2b7, 0x948e, 0x958e, 0x968e, 0x978e, 0x988e, 0x998e, 0x9a8e, 0xb3b7, 0xb4b7, 0x9b8e, 0xb5b7, 0xb6b7, 0xb7b7, 0x9c8e, 0x9d8e, 0x9e8e, 0x9f8e, 0xa08e, 0xb8b7, 0xb9b7, 0xbab7, 0xa18e, 0xa28e, 0xbbb7, 0xa38e, 0xa48e, 0xa58e, 0xbcb7, 0xa68e, 0xa78e, 0xa88e, 0xa98e, 0xaa8e, 0xab8e, 0xac8e, 0xbdb7, 0xbeb7, 0xad8e, 0xbfb7, 0xae8e, 0xc0b7, 0xaf8e, 0xb08e, 0xb18e, 0xb28e, 0xb38e, 0xb48e, 0xc1b7, 0xc2b7, 0xb58e, 0xb68e, 0xc3b7, 0xb78e, 0xb88e, 0xb98e, 0xc4b7, 0xba8e, 0xbb8e, 0xbc8e, 0xbd8e, 0xbe8e, 0xbf8e, 0xc08e, 0xc5b7, 0xc6b7, 0xc18e, 0xc7b7, 0xc8b7, 0xc9b7, 0xc28e, 0xc38e, 0xc48e, 0xc58e, 0xc68e, 0xc78e, 0xcab7, 0xc88e, 0xc98e, 0xca8e, 0xcbb7, 0xcb8e, 0xcc8e, 0xcd8e, 0xce8e, 0xcf8e, 0xd08e, 0xd18e, 0xd28e, 0xd38e, 0xd48e, 0xd58e, 0xd68e, 0xccb7, 0xd78e, 0xcdb7, 0xd88e, 0xd98e, 0xda8e, 0xdb8e, 0xdc8e, 0xdd8e, 0xde8e, 0xdf8e, 0xceb7, 0xcfb7, 0xe08e, 0xe18e, 0xd0b7, 0xe28e, 0xe38e, 0xe48e, 0xd1b7, 0xe58e, 0xe68e, 0xe78e, 0xe88e, 0xe98e, 0xea8e, 0xeb8e, 0xd2b7, 0xd3b7, 0xec8e, 0xd4b7, 0xed8e, 0xd5b7, 0xee8e, 0xef8e, 0xf08e, 0xf18e, 0xf28e, 0xf38e, 0xd6b7, 0xf48e, 0xf58e, 0xf68e, 0xd7b7, 0xf78e, 0xf88e, 0xf98e, 0xfa8e, 0xfb8e, 0xfc8e, 0xfd8e, 0xfe8e, 0x418f, 0x428f, 0x438f, 0x448f, 0x458f, 0x468f, 0x478f, 0x488f, 0xd8b7, 0x498f, 0x4a8f, 0x4b8f, 0x4c8f, 0x4d8f, 0x4e8f, 0x4f8f, 0x508f, 0x518f, 0x528f, 0x538f, 0x548f, 0x558f, 0x568f, 0x578f, 0x588f, 0x598f, 0x5a8f, 0x618f, 0x628f, 0x638f, 0x648f, 0x658f, 0x668f, 0x678f, 0x688f, 0xd9b7, 0x698f, 0x6a8f, 0x6b8f, 0x6c8f, 0x6d8f, 0x6e8f, 0x6f8f, 0xdab7, 0x708f, 0x718f, 0x728f, 0xdbb7, 0x738f, 0x748f, 0x758f, 0xdcb7, 0x768f, 0x778f, 0x788f, 0x798f, 0x7a8f, 0x818f, 0x828f, 0xddb7, 0xdeb7, 0x838f, 0xdfb7, 0x848f, 0xe0b7, 0x858f, 0x868f, 0x878f, 0x888f, 0x898f, 0x8a8f, 0xe1b7, 0x8b8f, 0x8c8f, 0x8d8f, 0xe2b7, 0x8e8f, 0x8f8f, 0x908f, 0xe3b7, 0x918f, 0x928f, 0x938f, 0x948f, 0x958f, 0x968f, 0x978f, 0x988f, 0xe4b7, 0x998f, 0xe5b7, 0x9a8f, 0xe6b7, 0x9b8f, 0x9c8f, 0x9d8f, 0x9e8f, 0x9f8f, 0xa08f, 0xe7b7, 0xe8b7, 0xa18f, 0xa28f, 0xe9b7, 0xa38f, 0xa48f, 0xa58f, 0xeab7, 0xa68f, 0xa78f, 0xa88f, 0xa98f, 0xaa8f, 0xab8f, 0xac8f, 0xebb7, 0xecb7, 0xad8f, 0xedb7, 0xae8f, 0xeeb7, 0xaf8f, 0xb08f, 0xb18f, 0xb28f, 0xb38f, 0xb48f, 0xefb7, 0xb58f, 0xb68f, 0xb78f, 0xb88f, 0xb98f, 0xba8f, 0xbb8f, 0xbc8f, 0xbd8f, 0xbe8f, 0xbf8f, 0xc08f, 0xc18f, 0xc28f, 0xc38f, 0xc48f, 0xc58f, 0xc68f, 0xc78f, 0xf0b7, 0xc88f, 0xc98f, 0xca8f, 0xcb8f, 0xcc8f, 0xcd8f, 0xce8f, 0xf1b7, 0xcf8f, 0xd08f, 0xd18f, 0xd28f, 0xd38f, 0xd48f, 0xd58f, 0xd68f, 0xd78f, 0xd88f, 0xd98f, 0xda8f, 0xdb8f, 0xdc8f, 0xdd8f, 0xde8f, 0xdf8f, 0xe08f, 0xe18f, 0xe28f, 0xe38f, 0xe48f, 0xe58f, 0xe68f, 0xe78f, 0xe88f, 0xe98f, 0xf2b7, 0xf3b7, 0xea8f, 0xeb8f, 0xf4b7, 0xec8f, 0xed8f, 0xee8f, 0xf5b7, 0xef8f, 0xf08f, 0xf18f, 0xf28f, 0xf38f, 0xf48f, 0xf58f, 0xf6b7, 0xf68f, 0xf78f, 0xf7b7, 0xf88f, 0xf8b7, 0xf98f, 0xfa8f, 0xfb8f, 0xfc8f, 0xfd8f, 0xfe8f, 0xf9b7, 0xfab7, 0x4190, 0x4290, 0xfbb7, 0x4390, 0x4490, 0x4590, 0xfcb7, 0x4690, 0x4790, 0x4890, 0x4990, 0x4a90, 0x4b90, 0x4c90, 0xfdb7, 0xfeb7, 0x4d90, 0xa1b8, 0x4e90, 0xa2b8, 0x4f90, 0x5090, 0x5190, 0x5290, 0x5390, 0x5490, 0xa3b8, 0xa4b8, 0x5590, 0x5690, 0xa5b8, 0x5790, 0x5890, 0x5990, 0xa6b8, 0x5a90, 0x6190, 0x6290, 0x6390, 0x6490, 0x6590, 0x6690, 0xa7b8, 0xa8b8, 0x6790, 0xa9b8, 0x6890, 0xaab8, 0xabb8, 0x6990, 0x6a90, 0xacb8, 0xadb8, 0x6b90, 0x6c90, 0x6d90, 0x6e90, 0x6f90, 0x7090, 0x7190, 0x7290, 0x7390, 0x7490, 0x7590, 0x7690, 0x7790, 0x7890, 0x7990, 0x7a90, 0x8190, 0x8290, 0x8390, 0x8490, 0x8590, 0x8690, 0x8790, 0x8890, 0x8990, 0x8a90, 0x8b90, 0x8c90, 0x8d90, 0xaeb8, 0xafb8, 0x8e90, 0x8f90, 0xb0b8, 0x9090, 0x9190, 0x9290, 0xb1b8, 0x9390, 0x9490, 0x9590, 0x9690, 0x9790, 0x9890, 0x9990, 0xb2b8, 0xb3b8, 0x9a90, 0xb4b8, 0x9b90, 0xb5b8, 0x9c90, 0x9d90, 0x9e90, 0x9f90, 0xa090, 0xa190, 0xb6b8, 0xb7b8, 0xa290, 0xa390, 0xb8b8, 0xa490, 0xb9b8, 0xbab8, 0xbbb8, 0xbcb8, 0xbdb8, 0xa590, 0xa690, 0xa790, 0xa890, 0xa990, 0xbeb8, 0xbfb8, 0xaa90, 0xc0b8, 0xab90, 0xc1b8, 0xc2b8, 0xac90, 0xad90, 0xc3b8, 0xae90, 0xc4b8, 0xc5b8, 0xc6b8, 0xaf90, 0xb090, 0xc7b8, 0xb190, 0xb290, 0xb390, 0xc8b8, 0xb490, 0xb590, 0xb690, 0xb790, 0xb890, 0xb990, 0xba90, 0xc9b8, 0xcab8, 0xbb90, 0xcbb8, 0xccb8, 0xcdb8, 0xceb8, 0xbc90, 0xbd90, 0xbe90, 0xbf90, 0xc090, 0xcfb8, 0xd0b8, 0xc190, 0xc290, 0xc390, 0xc490, 0xc590, 0xc690, 0xd1b8, 0xc790, 0xc890, 0xc990, 0xca90, 0xcb90, 0xcc90, 0xcd90, 0xce90, 0xcf90, 0xd090, 0xd190, 0xd290, 0xd2b8, 0xd390, 0xd490, 0xd590, 0xd690, 0xd790, 0xd890, 0xd990, 0xda90, 0xdb90, 0xdc90, 0xdd90, 0xde90, 0xdf90, 0xe090, 0xe190, 0xe290, 0xe390, 0xe490, 0xe590, 0xe690, 0xe790, 0xe890, 0xe990, 0xea90, 0xeb90, 0xec90, 0xed90, 0xee90, 0xef90, 0xf090, 0xf190, 0xf290, 0xf390, 0xf490, 0xd3b8, 0xd4b8, 0xf590, 0xf690, 0xd5b8, 0xf790, 0xf890, 0xf990, 0xd6b8, 0xfa90, 0xd7b8, 0xfb90, 0xfc90, 0xfd90, 0xfe90, 0x4191, 0xd8b8, 0xd9b8, 0x4291, 0xdab8, 0x4391, 0xdbb8, 0xdcb8, 0x4491, 0x4591, 0x4691, 0x4791, 0xddb8, 0xdeb8, 0xdfb8, 0x4891, 0x4991, 0xe0b8, 0x4a91, 0x4b91, 0x4c91, 0xe1b8, 0x4d91, 0x4e91, 0x4f91, 0x5091, 0x5191, 0x5291, 0x5391, 0xe2b8, 0xe3b8, 0x5491, 0xe4b8, 0xe5b8, 0xe6b8, 0x5591, 0x5691, 0x5791, 0x5891, 0x5991, 0x5a91, 0xe7b8, 0xe8b8, 0x6191, 0x6291, 0xe9b8, 0x6391, 0x6491, 0x6591, 0xeab8, 0x6691, 0x6791, 0x6891, 0x6991, 0x6a91, 0x6b91, 0x6c91, 0x6d91, 0x6e91, 0x6f91, 0xebb8, 0xecb8, 0xedb8, 0x7091, 0xeeb8, 0x7191, 0x7291, 0x7391, 0x7491, 0xefb8, 0x7591, 0x7691, 0x7791, 0x7891, 0x7991, 0x7a91, 0x8191, 0x8291, 0x8391, 0x8491, 0x8591, 0x8691, 0x8791, 0x8891, 0x8991, 0x8a91, 0x8b91, 0x8c91, 0x8d91, 0x8e91, 0x8f91, 0x9091, 0x9191, 0x9291, 0x9391, 0x9491, 0x9591, 0xf0b8, 0xf1b8, 0x9691, 0xf2b8, 0xf3b8, 0x9791, 0x9891, 0x9991, 0xf4b8, 0x9a91, 0xf5b8, 0x9b91, 0x9c91, 0x9d91, 0x9e91, 0x9f91, 0xf6b8, 0xf7b8, 0xa091, 0xf8b8, 0xa191, 0xf9b8, 0xa291, 0xa391, 0xa491, 0xa591, 0xa691, 0xa791, 0xfab8, 0xa891, 0xa991, 0xaa91, 0xfbb8, 0xab91, 0xac91, 0xad91, 0xae91, 0xaf91, 0xb091, 0xb191, 0xb291, 0xb391, 0xb491, 0xb591, 0xb691, 0xb791, 0xb891, 0xb991, 0xfcb8, 0xfdb8, 0xba91, 0xbb91, 0xbc91, 0xbd91, 0xbe91, 0xbf91, 0xc091, 0xc191, 0xc291, 0xc391, 0xc491, 0xc591, 0xc691, 0xc791, 0xc891, 0xc991, 0xca91, 0xcb91, 0xcc91, 0xcd91, 0xce91, 0xcf91, 0xd091, 0xd191, 0xd291, 0xd391, 0xd491, 0xd591, 0xd691, 0xd791, 0xd891, 0xd991, 0xda91, 0xdb91, 0xfeb8, 0xdc91, 0xdd91, 0xde91, 0xa1b9, 0xdf91, 0xe091, 0xe191, 0xa2b9, 0xe291, 0xe391, 0xe491, 0xe591, 0xe691, 0xe791, 0xe891, 0xe991, 0xa3b9, 0xea91, 0xa4b9, 0xeb91, 0xa5b9, 0xec91, 0xed91, 0xee91, 0xef91, 0xf091, 0xf191, 0xa6b9, 0xf291, 0xf391, 0xf491, 0xa7b9, 0xf591, 0xf691, 0xf791, 0xa8b9, 0xf891, 0xf991, 0xfa91, 0xfb91, 0xfc91, 0xfd91, 0xfe91, 0x4192, 0xa9b9, 0x4292, 0xaab9, 0x4392, 0x4492, 0x4592, 0x4692, 0x4792, 0x4892, 0x4992, 0x4a92, 0xabb9, 0xacb9, 0xadb9, 0x4b92, 0xaeb9, 0x4c92, 0x4d92, 0xafb9, 0xb0b9, 0xb1b9, 0xb2b9, 0x4e92, 0x4f92, 0x5092, 0x5192, 0x5292, 0xb3b9, 0xb4b9, 0x5392, 0xb5b9, 0x5492, 0xb6b9, 0x5592, 0x5692, 0x5792, 0xb7b9, 0x5892, 0xb8b9, 0xb9b9, 0x5992, 0x5a92, 0x6192, 0xbab9, 0x6292, 0x6392, 0x6492, 0xbbb9, 0x6592, 0x6692, 0x6792, 0x6892, 0x6992, 0x6a92, 0x6b92, 0x6c92, 0xbcb9, 0x6d92, 0xbdb9, 0x6e92, 0x6f92, 0x7092, 0x7192, 0x7292, 0x7392, 0x7492, 0x7592, 0xbeb9, 0x7692, 0x7792, 0x7892, 0x7992, 0x7a92, 0x8192, 0x8292, 0x8392, 0x8492, 0x8592, 0x8692, 0x8792, 0x8892, 0x8992, 0x8a92, 0x8b92, 0x8c92, 0x8d92, 0x8e92, 0x8f92, 0x9092, 0x9192, 0x9292, 0x9392, 0x9492, 0x9592, 0x9692, 0xbfb9, 0x9792, 0x9892, 0x9992, 0xc0b9, 0x9a92, 0x9b92, 0x9c92, 0xc1b9, 0x9d92, 0x9e92, 0x9f92, 0xa092, 0xa192, 0xa292, 0xa392, 0xa492, 0xa592, 0xa692, 0xa792, 0xa892, 0xa992, 0xaa92, 0xab92, 0xac92, 0xad92, 0xae92, 0xaf92, 0xc2b9, 0xb092, 0xb192, 0xb292, 0xc3b9, 0xb392, 0xb492, 0xb592, 0xc4b9, 0xb692, 0xb792, 0xb892, 0xb992, 0xba92, 0xbb92, 0xbc92, 0xc5b9, 0xbd92, 0xbe92, 0xc6b9, 0xbf92, 0xc092, 0xc192, 0xc292, 0xc392, 0xc492, 0xc592, 0xc692, 0xc7b9, 0xc792, 0xc892, 0xc992, 0xc8b9, 0xca92, 0xcb92, 0xcc92, 0xc9b9, 0xcd92, 0xce92, 0xcf92, 0xd092, 0xd192, 0xd292, 0xd392, 0xcab9, 0xd492, 0xd592, 0xcbb9, 0xd692, 0xd792, 0xd892, 0xd992, 0xda92, 0xdb92, 0xdc92, 0xdd92, 0xde92, 0xdf92, 0xe092, 0xe192, 0xe292, 0xe392, 0xe492, 0xe592, 0xe692, 0xe792, 0xe892, 0xe992, 0xea92, 0xeb92, 0xec92, 0xed92, 0xee92, 0xef92, 0xf092, 0xf192, 0xf292, 0xf392, 0xf492, 0xf592, 0xf692, 0xf792, 0xf892, 0xf992, 0xccb9, 0xcdb9, 0xfa92, 0xfb92, 0xceb9, 0xfc92, 0xfd92, 0xcfb9, 0xd0b9, 0xfe92, 0xd1b9, 0x4193, 0x4293, 0x4393, 0x4493, 0x4593, 0xd2b9, 0xd3b9, 0x4693, 0xd4b9, 0xd5b9, 0xd6b9, 0x4793, 0xd7b9, 0x4893, 0xd8b9, 0x4993, 0x4a93, 0xd9b9, 0xdab9, 0xdbb9, 0xdcb9, 0xddb9, 0x4b93, 0x4c93, 0xdeb9, 0xdfb9, 0xe0b9, 0xe1b9, 0xe2b9, 0x4d93, 0x4e93, 0x4f93, 0x5093, 0xe3b9, 0xe4b9, 0x5193, 0xe5b9, 0x5293, 0xe6b9, 0x5393, 0x5493, 0x5593, 0xe7b9, 0x5693, 0x5793, 0xe8b9, 0xe9b9, 0x5893, 0x5993, 0xeab9, 0x5a93, 0x6193, 0x6293, 0xebb9, 0x6393, 0x6493, 0x6593, 0x6693, 0x6793, 0x6893, 0x6993, 0xecb9, 0xedb9, 0x6a93, 0xeeb9, 0xefb9, 0xf0b9, 0x6b93, 0x6c93, 0x6d93, 0xf1b9, 0x6e93, 0x6f93, 0xf2b9, 0xf3b9, 0x7093, 0x7193, 0xf4b9, 0x7293, 0x7393, 0x7493, 0x7593, 0x7693, 0x7793, 0x7893, 0x7993, 0x7a93, 0x8193, 0x8293, 0x8393, 0xf5b9, 0x8493, 0x8593, 0x8693, 0x8793, 0x8893, 0x8993, 0x8a93, 0x8b93, 0x8c93, 0x8d93, 0x8e93, 0x8f93, 0x9093, 0x9193, 0x9293, 0x9393, 0x9493, 0x9593, 0x9693, 0x9793, 0x9893, 0x9993, 0x9a93, 0x9b93, 0x9c93, 0x9d93, 0x9e93, 0x9f93, 0xa093, 0xa193, 0xa293, 0xa393, 0xa493, 0xa593, 0xa693, 0xa793, 0xa893, 0xa993, 0xf6b9, 0xf7b9, 0xaa93, 0xab93, 0xf8b9, 0xac93, 0xad93, 0xf9b9, 0xfab9, 0xae93, 0xfbb9, 0xaf93, 0xb093, 0xb193, 0xb293, 0xb393, 0xfcb9, 0xfdb9, 0xb493, 0xfeb9, 0xb593, 0xa1ba, 0xa2ba, 0xb693, 0xb793, 0xb893, 0xb993, 0xba93, 0xa3ba, 0xa4ba, 0xbb93, 0xbc93, 0xa5ba, 0xbd93, 0xbe93, 0xa6ba, 0xa7ba, 0xbf93, 0xc093, 0xc193, 0xc293, 0xc393, 0xc493, 0xc593, 0xa8ba, 0xa9ba, 0xc693, 0xaaba, 0xabba, 0xacba, 0xc793, 0xc893, 0xc993, 0xca93, 0xcb93, 0xcc93, 0xadba, 0xaeba, 0xcd93, 0xce93, 0xafba, 0xcf93, 0xd093, 0xd193, 0xb0ba, 0xd293, 0xd393, 0xd493, 0xd593, 0xd693, 0xd793, 0xd893, 0xd993, 0xb1ba, 0xda93, 0xb2ba, 0xb3ba, 0xb4ba, 0xdb93, 0xdc93, 0xdd93, 0xb5ba, 0xde93, 0xdf93, 0xb6ba, 0xe093, 0xe193, 0xe293, 0xb7ba, 0xe393, 0xe493, 0xe593, 0xe693, 0xe793, 0xe893, 0xe993, 0xea93, 0xeb93, 0xec93, 0xed93, 0xee93, 0xef93, 0xf093, 0xf193, 0xf293, 0xf393, 0xf493, 0xf593, 0xf693, 0xf793, 0xf893, 0xf993, 0xb8ba, 0xb9ba, 0xbaba, 0xfa93, 0xbbba, 0xfb93, 0xfc93, 0xfd93, 0xbcba, 0xfe93, 0x4194, 0x4294, 0x4394, 0x4494, 0x4594, 0x4694, 0xbdba, 0xbeba, 0x4794, 0xbfba, 0x4894, 0xc0ba, 0x4994, 0x4a94, 0x4b94, 0x4c94, 0x4d94, 0x4e94, 0xc1ba, 0x4f94, 0x5094, 0x5194, 0xc2ba, 0x5294, 0x5394, 0x5494, 0x5594, 0x5694, 0x5794, 0x5894, 0x5994, 0x5a94, 0x6194, 0x6294, 0x6394, 0x6494, 0x6594, 0x6694, 0xc3ba, 0x6794, 0x6894, 0x6994, 0x6a94, 0x6b94, 0x6c94, 0x6d94, 0xc4ba, 0x6e94, 0x6f94, 0x7094, 0x7194, 0x7294, 0x7394, 0x7494, 0x7594, 0x7694, 0x7794, 0x7894, 0x7994, 0x7a94, 0x8194, 0x8294, 0x8394, 0x8494, 0x8594, 0x8694, 0xc5ba, 0x8794, 0x8894, 0x8994, 0x8a94, 0x8b94, 0x8c94, 0x8d94, 0xc6ba, 0xc7ba, 0x8e94, 0x8f94, 0xc8ba, 0x9094, 0x9194, 0x9294, 0xc9ba, 0x9394, 0x9494, 0x9594, 0x9694, 0x9794, 0x9894, 0x9994, 0xcaba, 0xcbba, 0x9a94, 0x9b94, 0x9c94, 0x9d94, 0x9e94, 0x9f94, 0xa094, 0xa194, 0xa294, 0xa394, 0xccba, 0xa494, 0xa594, 0xa694, 0xcdba, 0xa794, 0xa894, 0xa994, 0xaa94, 0xab94, 0xac94, 0xad94, 0xae94, 0xaf94, 0xb094, 0xb194, 0xb294, 0xb394, 0xb494, 0xb594, 0xb694, 0xb794, 0xb894, 0xb994, 0xba94, 0xbb94, 0xbc94, 0xbd94, 0xceba, 0xcfba, 0xbe94, 0xbf94, 0xd0ba, 0xc094, 0xc194, 0xd1ba, 0xd2ba, 0xd3ba, 0xd4ba, 0xc294, 0xc394, 0xc494, 0xc594, 0xc694, 0xd5ba, 0xd6ba, 0xc794, 0xd7ba, 0xc894, 0xd8ba, 0xc994, 0xca94, 0xcb94, 0xd9ba, 0xdaba, 0xcc94, 0xdbba, 0xcd94, 0xce94, 0xcf94, 0xd094, 0xd194, 0xd294, 0xd394, 0xdcba, 0xd494, 0xd594, 0xd694, 0xd794, 0xd894, 0xd994, 0xda94, 0xdb94, 0xdc94, 0xdd94, 0xde94, 0xddba, 0xdf94, 0xe094, 0xe194, 0xe294, 0xe394, 0xe494, 0xe594, 0xdeba, 0xe694, 0xe794, 0xe894, 0xe994, 0xea94, 0xeb94, 0xec94, 0xed94, 0xee94, 0xef94, 0xf094, 0xf194, 0xf294, 0xf394, 0xf494, 0xf594, 0xf694, 0xf794, 0xf894, 0xf994, 0xfa94, 0xfb94, 0xfc94, 0xfd94, 0xfe94, 0x4195, 0x4295, 0xdfba, 0xe0ba, 0x4395, 0x4495, 0xe1ba, 0x4595, 0x4695, 0x4795, 0xe2ba, 0x4895, 0x4995, 0x4a95, 0x4b95, 0x4c95, 0x4d95, 0x4e95, 0x4f95, 0x5095, 0x5195, 0x5295, 0x5395, 0xe3ba, 0x5495, 0x5595, 0x5695, 0x5795, 0x5895, 0x5995, 0xe4ba, 0x5a95, 0x6195, 0x6295, 0xe5ba, 0x6395, 0x6495, 0x6595, 0xe6ba, 0x6695, 0x6795, 0x6895, 0x6995, 0x6a95, 0x6b95, 0x6c95, 0xe7ba, 0x6d95, 0x6e95, 0xe8ba, 0x6f95, 0xe9ba, 0x7095, 0x7195, 0x7295, 0x7395, 0x7495, 0x7595, 0xeaba, 0xebba, 0x7695, 0x7795, 0xecba, 0x7895, 0x7995, 0x7a95, 0xedba, 0x8195, 0x8295, 0x8395, 0x8495, 0x8595, 0x8695, 0x8795, 0xeeba, 0xefba, 0x8895, 0xf0ba, 0x8995, 0x8a95, 0x8b95, 0x8c95, 0x8d95, 0x8e95, 0x8f95, 0x9095, 0x9195, 0x9295, 0x9395, 0x9495, 0x9595, 0x9695, 0x9795, 0x9895, 0x9995, 0x9a95, 0x9b95, 0x9c95, 0x9d95, 0x9e95, 0x9f95, 0xa095, 0xa195, 0xa295, 0xa395, 0xa495, 0xa595, 0xa695, 0xa795, 0xa895, 0xa995, 0xaa95, 0xab95, 0xac95, 0xf1ba, 0xf2ba, 0xad95, 0xae95, 0xf3ba, 0xaf95, 0xb095, 0xb195, 0xf4ba, 0xb295, 0xf5ba, 0xb395, 0xb495, 0xb595, 0xb695, 0xb795, 0xf6ba, 0xf7ba, 0xb895, 0xf8ba, 0xb995, 0xf9ba, 0xfaba, 0xfbba, 0xba95, 0xbb95, 0xbc95, 0xbd95, 0xfcba, 0xfdba, 0xbe95, 0xbf95, 0xfeba, 0xc095, 0xc195, 0xc295, 0xa1bb, 0xc395, 0xa2bb, 0xc495, 0xc595, 0xc695, 0xc795, 0xc895, 0xa3bb, 0xa4bb, 0xc995, 0xa5bb, 0xa6bb, 0xa7bb, 0xca95, 0xcb95, 0xcc95, 0xcd95, 0xce95, 0xa8bb, 0xa9bb, 0xaabb, 0xcf95, 0xd095, 0xabbb, 0xd195, 0xd295, 0xd395, 0xacbb, 0xd495, 0xd595, 0xd695, 0xd795, 0xd895, 0xd995, 0xda95, 0xadbb, 0xaebb, 0xdb95, 0xafbb, 0xb0bb, 0xb1bb, 0xdc95, 0xdd95, 0xde95, 0xdf95, 0xe095, 0xe195, 0xb2bb, 0xb3bb, 0xe295, 0xe395, 0xe495, 0xe595, 0xe695, 0xe795, 0xe895, 0xe995, 0xea95, 0xeb95, 0xec95, 0xed95, 0xee95, 0xef95, 0xb4bb, 0xf095, 0xf195, 0xf295, 0xf395, 0xf495, 0xf595, 0xf695, 0xf795, 0xf895, 0xf995, 0xfa95, 0xfb95, 0xfc95, 0xfd95, 0xfe95, 0x4196, 0x4296, 0x4396, 0x4496, 0x4596, 0x4696, 0x4796, 0x4896, 0x4996, 0x4a96, 0x4b96, 0x4c96, 0x4d96, 0x4e96, 0x4f96, 0x5096, 0x5196, 0x5296, 0x5396, 0x5496, 0x5596, 0x5696, 0x5796, 0x5896, 0xb5bb, 0xb6bb, 0x5996, 0x5a96, 0xb7bb, 0x6196, 0x6296, 0xb8bb, 0xb9bb, 0x6396, 0x6496, 0x6596, 0x6696, 0x6796, 0x6896, 0x6996, 0xbabb, 0x6a96, 0x6b96, 0xbbbb, 0xbcbb, 0xbdbb, 0x6c96, 0x6d96, 0x6e96, 0x6f96, 0x7096, 0x7196, 0xbebb, 0x7296, 0x7396, 0x7496, 0x7596, 0x7696, 0x7796, 0x7896, 0x7996, 0x7a96, 0x8196, 0x8296, 0x8396, 0x8496, 0x8596, 0x8696, 0x8796, 0x8896, 0x8996, 0x8a96, 0x8b96, 0xbfbb, 0x8c96, 0x8d96, 0x8e96, 0x8f96, 0x9096, 0x9196, 0xc0bb, 0xc1bb, 0x9296, 0x9396, 0x9496, 0x9596, 0x9696, 0x9796, 0x9896, 0x9996, 0x9a96, 0x9b96, 0x9c96, 0x9d96, 0x9e96, 0x9f96, 0xc2bb, 0xc3bb, 0xa096, 0xc4bb, 0xc5bb, 0xc6bb, 0xa196, 0xa296, 0xa396, 0xa496, 0xa596, 0xa696, 0xa796, 0xa896, 0xa996, 0xaa96, 0xab96, 0xac96, 0xad96, 0xae96, 0xaf96, 0xb096, 0xb196, 0xb296, 0xb396, 0xb496, 0xb596, 0xb696, 0xb796, 0xb896, 0xb996, 0xba96, 0xbb96, 0xbc96, 0xbd96, 0xbe96, 0xbf96, 0xc096, 0xc196, 0xc296, 0xc7bb, 0xc8bb, 0xc396, 0xc496, 0xc9bb, 0xc596, 0xc696, 0xc796, 0xcabb, 0xc896, 0xc996, 0xca96, 0xcb96, 0xcc96, 0xcd96, 0xce96, 0xcbbb, 0xccbb, 0xcf96, 0xd096, 0xd196, 0xcdbb, 0xd296, 0xd396, 0xd496, 0xd596, 0xd696, 0xd796, 0xd896, 0xd996, 0xda96, 0xdb96, 0xdc96, 0xdd96, 0xde96, 0xdf96, 0xe096, 0xe196, 0xe296, 0xe396, 0xe496, 0xe596, 0xe696, 0xe796, 0xe896, 0xe996, 0xea96, 0xeb96, 0xec96, 0xed96, 0xee96, 0xef96, 0xf096, 0xf196, 0xf296, 0xf396, 0xf496, 0xf596, 0xf696, 0xf796, 0xf896, 0xf996, 0xfa96, 0xfb96, 0xfc96, 0xfd96, 0xfe96, 0x4197, 0x4297, 0x4397, 0x4497, 0x4597, 0x4697, 0x4797, 0x4897, 0x4997, 0x4a97, 0x4b97, 0x4c97, 0x4d97, 0x4e97, 0x4f97, 0x5097, 0x5197, 0xcebb, 0x5297, 0x5397, 0x5497, 0x5597, 0x5697, 0x5797, 0x5897, 0x5997, 0x5a97, 0x6197, 0x6297, 0x6397, 0x6497, 0x6597, 0x6697, 0x6797, 0x6897, 0x6997, 0x6a97, 0x6b97, 0x6c97, 0x6d97, 0x6e97, 0x6f97, 0x7097, 0x7197, 0x7297, 0xcfbb, 0x7397, 0x7497, 0x7597, 0x7697, 0x7797, 0x7897, 0x7997, 0x7a97, 0x8197, 0x8297, 0x8397, 0x8497, 0x8597, 0x8697, 0x8797, 0x8897, 0x8997, 0x8a97, 0x8b97, 0x8c97, 0xd0bb, 0x8d97, 0x8e97, 0x8f97, 0x9097, 0x9197, 0x9297, 0xd1bb, 0xd2bb, 0x9397, 0x9497, 0xd3bb, 0x9597, 0x9697, 0x9797, 0xd4bb, 0x9897, 0x9997, 0x9a97, 0x9b97, 0x9c97, 0x9d97, 0x9e97, 0xd5bb, 0x9f97, 0xa097, 0xd6bb, 0xa197, 0xd7bb, 0xa297, 0xa397, 0xa497, 0xa597, 0xa697, 0xa797, 0xa897, 0xa997, 0xaa97, 0xab97, 0xac97, 0xad97, 0xae97, 0xaf97, 0xb097, 0xb197, 0xb297, 0xb397, 0xb497, 0xb597, 0xb697, 0xb797, 0xb897, 0xb997, 0xba97, 0xbb97, 0xbc97, 0xbd97, 0xbe97, 0xbf97, 0xc097, 0xc197, 0xc297, 0xc397, 0xc497, 0xc597, 0xc697, 0xc797, 0xc897, 0xc997, 0xca97, 0xcb97, 0xcc97, 0xcd97, 0xce97, 0xcf97, 0xd097, 0xd197, 0xd297, 0xd397, 0xd497, 0xd597, 0xd697, 0xd797, 0xd897, 0xd997, 0xda97, 0xdb97, 0xdc97, 0xdd97, 0xde97, 0xdf97, 0xe097, 0xe197, 0xe297, 0xe397, 0xe497, 0xe597, 0xe697, 0xe797, 0xe897, 0xe997, 0xea97, 0xeb97, 0xec97, 0xed97, 0xee97, 0xef97, 0xf097, 0xf197, 0xf297, 0xf397, 0xf497, 0xf597, 0xf697, 0xf797, 0xf897, 0xf997, 0xfa97, 0xfb97, 0xd8bb, 0xfc97, 0xfd97, 0xfe97, 0x4198, 0x4298, 0x4398, 0x4498, 0x4598, 0x4698, 0x4798, 0x4898, 0x4998, 0x4a98, 0x4b98, 0x4c98, 0x4d98, 0x4e98, 0x4f98, 0x5098, 0x5198, 0xd9bb, 0x5298, 0x5398, 0x5498, 0x5598, 0x5698, 0x5798, 0xdabb, 0x5898, 0x5998, 0x5a98, 0xdbbb, 0x6198, 0x6298, 0x6398, 0xdcbb, 0x6498, 0x6598, 0x6698, 0x6798, 0x6898, 0x6998, 0x6a98, 0xddbb, 0xdebb, 0x6b98, 0x6c98, 0x6d98, 0x6e98, 0x6f98, 0x7098, 0x7198, 0x7298, 0x7398, 0x7498, 0x7598, 0x7698, 0x7798, 0x7898, 0x7998, 0x7a98, 0x8198, 0x8298, 0x8398, 0x8498, 0x8598, 0x8698, 0x8798, 0x8898, 0x8998, 0x8a98, 0x8b98, 0x8c98, 0x8d98, 0x8e98, 0x8f98, 0x9098, 0x9198, 0x9298, 0x9398, 0x9498, 0x9598, 0x9698, 0xdfbb, 0xe0bb, 0x9798, 0x9898, 0xe1bb, 0x9998, 0x9a98, 0x9b98, 0xe2bb, 0x9c98, 0x9d98, 0x9e98, 0x9f98, 0xa098, 0xa198, 0xa298, 0xe3bb, 0xe4bb, 0xa398, 0xe5bb, 0xa498, 0xe6bb, 0xa598, 0xa698, 0xa798, 0xa898, 0xa998, 0xaa98, 0xe7bb, 0xe8bb, 0xab98, 0xe9bb, 0xeabb, 0xac98, 0xad98, 0xebbb, 0xecbb, 0xedbb, 0xeebb, 0xae98, 0xaf98, 0xb098, 0xb198, 0xb298, 0xefbb, 0xf0bb, 0xb398, 0xf1bb, 0xf2bb, 0xf3bb, 0xb498, 0xb598, 0xb698, 0xf4bb, 0xb798, 0xb898, 0xf5bb, 0xf6bb, 0xb998, 0xba98, 0xf7bb, 0xbb98, 0xbc98, 0xbd98, 0xf8bb, 0xbe98, 0xbf98, 0xc098, 0xc198, 0xc298, 0xc398, 0xc498, 0xf9bb, 0xfabb, 0xc598, 0xfbbb, 0xfcbb, 0xfdbb, 0xc698, 0xc798, 0xc898, 0xc998, 0xca98, 0xcb98, 0xfebb, 0xa1bc, 0xcc98, 0xcd98, 0xa2bc, 0xce98, 0xcf98, 0xd098, 0xa3bc, 0xd198, 0xd298, 0xd398, 0xd498, 0xd598, 0xd698, 0xd798, 0xa4bc, 0xa5bc, 0xd898, 0xa6bc, 0xd998, 0xa7bc, 0xda98, 0xdb98, 0xdc98, 0xdd98, 0xde98, 0xdf98, 0xa8bc, 0xe098, 0xe198, 0xe298, 0xa9bc, 0xe398, 0xe498, 0xe598, 0xaabc, 0xe698, 0xe798, 0xe898, 0xe998, 0xea98, 0xeb98, 0xec98, 0xabbc, 0xed98, 0xee98, 0xef98, 0xf098, 0xacbc, 0xf198, 0xf298, 0xf398, 0xf498, 0xf598, 0xf698, 0xadbc, 0xaebc, 0xafbc, 0xb0bc, 0xb1bc, 0xf798, 0xf898, 0xb2bc, 0xb3bc, 0xf998, 0xb4bc, 0xb5bc, 0xfa98, 0xfb98, 0xfc98, 0xfd98, 0xb6bc, 0xb7bc, 0xfe98, 0xb8bc, 0xb9bc, 0xbabc, 0x4199, 0x4299, 0x4399, 0x4499, 0xbbbc, 0x4599, 0xbcbc, 0xbdbc, 0x4699, 0x4799, 0xbebc, 0x4899, 0x4999, 0x4a99, 0xbfbc, 0x4b99, 0x4c99, 0x4d99, 0x4e99, 0x4f99, 0x5099, 0x5199, 0xc0bc, 0xc1bc, 0x5299, 0xc2bc, 0xc3bc, 0xc4bc, 0x5399, 0x5499, 0x5599, 0x5699, 0x5799, 0x5899, 0xc5bc, 0xc6bc, 0x5999, 0x5a99, 0xc7bc, 0x6199, 0x6299, 0x6399, 0xc8bc, 0x6499, 0x6599, 0x6699, 0x6799, 0x6899, 0x6999, 0x6a99, 0xc9bc, 0xcabc, 0x6b99, 0xcbbc, 0xccbc, 0xcdbc, 0x6c99, 0x6d99, 0x6e99, 0x6f99, 0x7099, 0x7199, 0xcebc, 0x7299, 0x7399, 0x7499, 0xcfbc, 0x7599, 0x7699, 0x7799, 0xd0bc, 0x7899, 0x7999, 0x7a99, 0x8199, 0x8299, 0x8399, 0x8499, 0x8599, 0x8699, 0x8799, 0x8899, 0x8999, 0xd1bc, 0x8a99, 0x8b99, 0x8c99, 0x8d99, 0x8e99, 0x8f99, 0xd2bc, 0xd3bc, 0xd4bc, 0x9099, 0xd5bc, 0x9199, 0x9299, 0x9399, 0xd6bc, 0x9499, 0xd7bc, 0x9599, 0x9699, 0x9799, 0x9899, 0x9999, 0xd8bc, 0xd9bc, 0x9a99, 0xdabc, 0x9b99, 0xdbbc, 0x9c99, 0x9d99, 0x9e99, 0xdcbc, 0x9f99, 0xa099, 0xddbc, 0xdebc, 0xa199, 0xa299, 0xdfbc, 0xa399, 0xa499, 0xa599, 0xe0bc, 0xa699, 0xa799, 0xa899, 0xa999, 0xaa99, 0xab99, 0xac99, 0xad99, 0xae99, 0xaf99, 0xb099, 0xb199, 0xe1bc, 0xb299, 0xb399, 0xb499, 0xb599, 0xb699, 0xb799, 0xe2bc, 0xb899, 0xb999, 0xba99, 0xe3bc, 0xbb99, 0xbc99, 0xbd99, 0xe4bc, 0xbe99, 0xbf99, 0xc099, 0xc199, 0xc299, 0xc399, 0xc499, 0xe5bc, 0xc599, 0xc699, 0xe6bc, 0xe7bc, 0xc799, 0xc899, 0xc999, 0xca99, 0xcb99, 0xcc99, 0xcd99, 0xe8bc, 0xce99, 0xcf99, 0xd099, 0xe9bc, 0xd199, 0xd299, 0xd399, 0xeabc, 0xd499, 0xd599, 0xd699, 0xd799, 0xd899, 0xd999, 0xda99, 0xebbc, 0xecbc, 0xdb99, 0xedbc, 0xdc99, 0xdd99, 0xde99, 0xdf99, 0xe099, 0xe199, 0xe299, 0xe399, 0xeebc, 0xefbc, 0xe499, 0xe599, 0xf0bc, 0xe699, 0xe799, 0xe899, 0xf1bc, 0xe999, 0xea99, 0xeb99, 0xec99, 0xed99, 0xee99, 0xef99, 0xf2bc, 0xf3bc, 0xf099, 0xf4bc, 0xf199, 0xf5bc, 0xf299, 0xf399, 0xf499, 0xf599, 0xf699, 0xf799, 0xf6bc, 0xf7bc, 0xf899, 0xf999, 0xf8bc, 0xfa99, 0xfb99, 0xf9bc, 0xfabc, 0xfc99, 0xfd99, 0xfe99, 0x419a, 0x429a, 0x439a, 0x449a, 0xfbbc, 0xfcbc, 0x459a, 0xfdbc, 0x469a, 0xfebc, 0x479a, 0xa1bd, 0x489a, 0xa2bd, 0xa3bd, 0x499a, 0xa4bd, 0x4a9a, 0x4b9a, 0x4c9a, 0x4d9a, 0x4e9a, 0x4f9a, 0x509a, 0x519a, 0x529a, 0x539a, 0x549a, 0x559a, 0x569a, 0x579a, 0x589a, 0x599a, 0x5a9a, 0x619a, 0x629a, 0xa5bd, 0x639a, 0x649a, 0x659a, 0x669a, 0x679a, 0x689a, 0x699a, 0xa6bd, 0xa7bd, 0x6a9a, 0x6b9a, 0xa8bd, 0x6c9a, 0x6d9a, 0x6e9a, 0xa9bd, 0x6f9a, 0x709a, 0x719a, 0x729a, 0x739a, 0x749a, 0x759a, 0xaabd, 0x769a, 0x779a, 0x789a, 0x799a, 0xabbd, 0x7a9a, 0x819a, 0x829a, 0x839a, 0x849a, 0x859a, 0xacbd, 0xadbd, 0x869a, 0x879a, 0xaebd, 0x889a, 0x899a, 0x8a9a, 0xafbd, 0x8b9a, 0x8c9a, 0x8d9a, 0x8e9a, 0x8f9a, 0x909a, 0x919a, 0xb0bd, 0xb1bd, 0x929a, 0xb2bd, 0x939a, 0xb3bd, 0x949a, 0x959a, 0x969a, 0x979a, 0x989a, 0x999a, 0xb4bd, 0xb5bd, 0x9a9a, 0x9b9a, 0x9c9a, 0x9d9a, 0x9e9a, 0x9f9a, 0xb6bd, 0xa09a, 0xa19a, 0xa29a, 0xa39a, 0xa49a, 0xa59a, 0xa69a, 0xb7bd, 0xa79a, 0xa89a, 0xb8bd, 0xa99a, 0xb9bd, 0xaa9a, 0xab9a, 0xac9a, 0xad9a, 0xae9a, 0xaf9a, 0xbabd, 0xbbbd, 0xb09a, 0xb19a, 0xbcbd, 0xb29a, 0xb39a, 0xb49a, 0xbdbd, 0xbebd, 0xb59a, 0xb69a, 0xb79a, 0xb89a, 0xb99a, 0xba9a, 0xbfbd, 0xc0bd, 0xbb9a, 0xc1bd, 0xbc9a, 0xc2bd, 0xbd9a, 0xbe9a, 0xbf9a, 0xc09a, 0xc19a, 0xc29a, 0xc39a, 0xc49a, 0xc59a, 0xc69a, 0xc79a, 0xc89a, 0xc99a, 0xca9a, 0xcb9a, 0xcc9a, 0xcd9a, 0xce9a, 0xcf9a, 0xd09a, 0xd19a, 0xd29a, 0xd39a, 0xd49a, 0xd59a, 0xd69a, 0xd79a, 0xd89a, 0xd99a, 0xda9a, 0xdb9a, 0xdc9a, 0xdd9a, 0xde9a, 0xc3bd, 0xc4bd, 0xdf9a, 0xe09a, 0xc5bd, 0xe19a, 0xe29a, 0xc6bd, 0xc7bd, 0xe39a, 0xe49a, 0xe59a, 0xe69a, 0xe79a, 0xe89a, 0xc8bd, 0xc9bd, 0xcabd, 0xe99a, 0xcbbd, 0xea9a, 0xccbd, 0xeb9a, 0xec9a, 0xed9a, 0xee9a, 0xcdbd, 0xef9a, 0xcebd, 0xcfbd, 0xf09a, 0xd0bd, 0xd1bd, 0xf19a, 0xf29a, 0xf39a, 0xd2bd, 0xf49a, 0xf59a, 0xf69a, 0xf79a, 0xf89a, 0xf99a, 0xfa9a, 0xd3bd, 0xd4bd, 0xfb9a, 0xfc9a, 0xd5bd, 0xd6bd, 0xfd9a, 0xfe9a, 0x419b, 0x429b, 0x439b, 0xd7bd, 0xd8bd, 0xd9bd, 0x449b, 0x459b, 0xdabd, 0x469b, 0x479b, 0x489b, 0xdbbd, 0x499b, 0x4a9b, 0x4b9b, 0x4c9b, 0x4d9b, 0x4e9b, 0x4f9b, 0xdcbd, 0xddbd, 0x509b, 0x519b, 0xdebd, 0xdfbd, 0x529b, 0x539b, 0x549b, 0x559b, 0x569b, 0x579b, 0x589b, 0x599b, 0x5a9b, 0x619b, 0x629b, 0x639b, 0x649b, 0x659b, 0x669b, 0x679b, 0x689b, 0x699b, 0x6a9b, 0x6b9b, 0x6c9b, 0x6d9b, 0x6e9b, 0x6f9b, 0x709b, 0x719b, 0x729b, 0xe0bd, 0x739b, 0x749b, 0x759b, 0x769b, 0x779b, 0x789b, 0x799b, 0x7a9b, 0x819b, 0x829b, 0x839b, 0x849b, 0x859b, 0x869b, 0x879b, 0x889b, 0x899b, 0x8a9b, 0x8b9b, 0x8c9b, 0x8d9b, 0x8e9b, 0x8f9b, 0x909b, 0x919b, 0x929b, 0x939b, 0x949b, 0x959b, 0x969b, 0x979b, 0x989b, 0x999b, 0x9a9b, 0xe1bd, 0xe2bd, 0x9b9b, 0x9c9b, 0xe3bd, 0x9d9b, 0x9e9b, 0x9f9b, 0xe4bd, 0xa09b, 0xe5bd, 0xa19b, 0xa29b, 0xa39b, 0xa49b, 0xa59b, 0xe6bd, 0xe7bd, 0xa69b, 0xa79b, 0xe8bd, 0xe9bd, 0xa89b, 0xa99b, 0xaa9b, 0xab9b, 0xac9b, 0xad9b, 0xeabd, 0xae9b, 0xaf9b, 0xb09b, 0xebbd, 0xb19b, 0xb29b, 0xb39b, 0xecbd, 0xb49b, 0xb59b, 0xb69b, 0xb79b, 0xb89b, 0xb99b, 0xba9b, 0xbb9b, 0xbc9b, 0xbd9b, 0xbe9b, 0xbf9b, 0xc09b, 0xc19b, 0xc29b, 0xc39b, 0xc49b, 0xc59b, 0xc69b, 0xc79b, 0xc89b, 0xc99b, 0xca9b, 0xcb9b, 0xcc9b, 0xcd9b, 0xce9b, 0xcf9b, 0xd09b, 0xd19b, 0xd29b, 0xd39b, 0xd49b, 0xd59b, 0xd69b, 0xd79b, 0xd89b, 0xd99b, 0xda9b, 0xdb9b, 0xdc9b, 0xdd9b, 0xde9b, 0xdf9b, 0xe09b, 0xe19b, 0xe29b, 0xe39b, 0xe49b, 0xe59b, 0xe69b, 0xedbd, 0xe79b, 0xe89b, 0xe99b, 0xea9b, 0xeb9b, 0xec9b, 0xed9b, 0xee9b, 0xef9b, 0xf09b, 0xf19b, 0xf29b, 0xf39b, 0xf49b, 0xf59b, 0xf69b, 0xf79b, 0xf89b, 0xf99b, 0xfa9b, 0xfb9b, 0xfc9b, 0xfd9b, 0xeebd, 0xefbd, 0xfe9b, 0x419c, 0xf0bd, 0x429c, 0x439c, 0xf1bd, 0xf2bd, 0x449c, 0xf3bd, 0x459c, 0x469c, 0x479c, 0x489c, 0x499c, 0xf4bd, 0xf5bd, 0x4a9c, 0x4b9c, 0x4c9c, 0xf6bd, 0x4d9c, 0x4e9c, 0x4f9c, 0x509c, 0x519c, 0x529c, 0xf7bd, 0xf8bd, 0x539c, 0x549c, 0xf9bd, 0x559c, 0x569c, 0x579c, 0x589c, 0x599c, 0x5a9c, 0x619c, 0x629c, 0x639c, 0x649c, 0x659c, 0x669c, 0x679c, 0x689c, 0x699c, 0xfabd, 0x6a9c, 0x6b9c, 0x6c9c, 0x6d9c, 0x6e9c, 0x6f9c, 0x709c, 0xfbbd, 0x719c, 0x729c, 0x739c, 0x749c, 0x759c, 0x769c, 0x779c, 0x789c, 0x799c, 0x7a9c, 0x819c, 0x829c, 0x839c, 0x849c, 0x859c, 0x869c, 0x879c, 0x889c, 0x899c, 0xfcbd, 0x8a9c, 0x8b9c, 0x8c9c, 0x8d9c, 0x8e9c, 0x8f9c, 0x909c, 0xfdbd, 0x919c, 0x929c, 0x939c, 0xfebd, 0x949c, 0x959c, 0x969c, 0xa1be, 0x979c, 0x989c, 0x999c, 0x9a9c, 0x9b9c, 0x9c9c, 0x9d9c, 0xa2be, 0xa3be, 0x9e9c, 0x9f9c, 0xa09c, 0xa19c, 0xa29c, 0xa39c, 0xa49c, 0xa59c, 0xa69c, 0xa79c, 0xa4be, 0xa89c, 0xa99c, 0xaa9c, 0xab9c, 0xac9c, 0xad9c, 0xae9c, 0xaf9c, 0xb09c, 0xb19c, 0xb29c, 0xb39c, 0xb49c, 0xb59c, 0xb69c, 0xb79c, 0xb89c, 0xb99c, 0xba9c, 0xbb9c, 0xbc9c, 0xbd9c, 0xbe9c, 0xbf9c, 0xc09c, 0xc19c, 0xc29c, 0xa5be, 0xa6be, 0xc39c, 0xc49c, 0xa7be, 0xc59c, 0xc69c, 0xc79c, 0xa8be, 0xc89c, 0xc99c, 0xca9c, 0xcb9c, 0xcc9c, 0xcd9c, 0xce9c, 0xa9be, 0xaabe, 0xcf9c, 0xd09c, 0xd19c, 0xabbe, 0xd29c, 0xd39c, 0xd49c, 0xd59c, 0xd69c, 0xd79c, 0xacbe, 0xd89c, 0xd99c, 0xda9c, 0xdb9c, 0xdc9c, 0xdd9c, 0xde9c, 0xdf9c, 0xe09c, 0xe19c, 0xe29c, 0xe39c, 0xe49c, 0xe59c, 0xe69c, 0xe79c, 0xe89c, 0xe99c, 0xea9c, 0xadbe, 0xeb9c, 0xec9c, 0xed9c, 0xee9c, 0xef9c, 0xf09c, 0xf19c, 0xaebe, 0xf29c, 0xf39c, 0xf49c, 0xf59c, 0xf69c, 0xf79c, 0xf89c, 0xf99c, 0xfa9c, 0xfb9c, 0xfc9c, 0xfd9c, 0xfe9c, 0x419d, 0x429d, 0x439d, 0x449d, 0x459d, 0x469d, 0x479d, 0x489d, 0x499d, 0x4a9d, 0x4b9d, 0x4c9d, 0x4d9d, 0x4e9d, 0xafbe, 0x4f9d, 0x509d, 0x519d, 0xb0be, 0x529d, 0x539d, 0x549d, 0x559d, 0x569d, 0x579d, 0x589d, 0x599d, 0x5a9d, 0x619d, 0x629d, 0x639d, 0x649d, 0x659d, 0x669d, 0x679d, 0x689d, 0x699d, 0x6a9d, 0x6b9d, 0x6c9d, 0x6d9d, 0x6e9d, 0x6f9d, 0x709d, 0x719d, 0x729d, 0x739d, 0x749d, 0x759d, 0x769d, 0x779d, 0x789d, 0x799d, 0x7a9d, 0x819d, 0x829d, 0x839d, 0x849d, 0x859d, 0x869d, 0x879d, 0x889d, 0x899d, 0xb1be, 0x8a9d, 0x8b9d, 0x8c9d, 0x8d9d, 0x8e9d, 0x8f9d, 0xb2be, 0xb3be, 0x909d, 0x919d, 0xb4be, 0x929d, 0x939d, 0x949d, 0xb5be, 0x959d, 0xb6be, 0x969d, 0x979d, 0x989d, 0x999d, 0xb7be, 0xb8be, 0xb9be, 0x9a9d, 0x9b9d, 0x9c9d, 0x9d9d, 0x9e9d, 0x9f9d, 0xa09d, 0xa19d, 0xa29d, 0xa39d, 0xbabe, 0xa49d, 0xa59d, 0xa69d, 0xbbbe, 0xa79d, 0xa89d, 0xa99d, 0xbcbe, 0xaa9d, 0xab9d, 0xac9d, 0xad9d, 0xae9d, 0xaf9d, 0xb09d, 0xbdbe, 0xb19d, 0xb29d, 0xb39d, 0xb49d, 0xb59d, 0xb69d, 0xb79d, 0xb89d, 0xb99d, 0xba9d, 0xbb9d, 0xbebe, 0xbfbe, 0xbc9d, 0xbd9d, 0xc0be, 0xbe9d, 0xbf9d, 0xc09d, 0xc1be, 0xc19d, 0xc29d, 0xc39d, 0xc49d, 0xc59d, 0xc69d, 0xc79d, 0xc2be, 0xc3be, 0xc89d, 0xc4be, 0xc99d, 0xc5be, 0xca9d, 0xcb9d, 0xcc9d, 0xcd9d, 0xce9d, 0xcf9d, 0xc6be, 0xc7be, 0xd09d, 0xd19d, 0xc8be, 0xc9be, 0xcabe, 0xd29d, 0xcbbe, 0xccbe, 0xcdbe, 0xd39d, 0xd49d, 0xd59d, 0xd69d, 0xcebe, 0xcfbe, 0xd0be, 0xd79d, 0xd1be, 0xd2be, 0xd3be, 0xd89d, 0xd99d, 0xda9d, 0xd4be, 0xd5be, 0xdb9d, 0xd6be, 0xd7be, 0xdc9d, 0xdd9d, 0xd8be, 0xde9d, 0xdf9d, 0xe09d, 0xd9be, 0xe19d, 0xe29d, 0xe39d, 0xe49d, 0xe59d, 0xe69d, 0xe79d, 0xdabe, 0xdbbe, 0xe89d, 0xdcbe, 0xddbe, 0xdebe, 0xe99d, 0xea9d, 0xeb9d, 0xec9d, 0xed9d, 0xee9d, 0xdfbe, 0xe0be, 0xef9d, 0xf09d, 0xe1be, 0xf19d, 0xf29d, 0xf39d, 0xe2be, 0xf49d, 0xf59d, 0xe3be, 0xf69d, 0xf79d, 0xf89d, 0xf99d, 0xe4be, 0xe5be, 0xfa9d, 0xe6be, 0xfb9d, 0xe7be, 0xfc9d, 0xfd9d, 0xfe9d, 0xe8be, 0x419e, 0xe9be, 0xeabe, 0x429e, 0x439e, 0x449e, 0xebbe, 0x459e, 0x469e, 0x479e, 0xecbe, 0x489e, 0x499e, 0x4a9e, 0x4b9e, 0x4c9e, 0x4d9e, 0x4e9e, 0x4f9e, 0xedbe, 0x509e, 0x519e, 0x529e, 0x539e, 0x549e, 0x559e, 0x569e, 0x579e, 0x589e, 0x599e, 0xeebe, 0xefbe, 0x5a9e, 0x619e, 0xf0be, 0xf1be, 0x629e, 0xf2be, 0xf3be, 0xf4be, 0xf5be, 0x639e, 0x649e, 0x659e, 0x669e, 0x679e, 0xf6be, 0xf7be, 0xf8be, 0xf9be, 0xfabe, 0xfbbe, 0xfcbe, 0x689e, 0xfdbe, 0x699e, 0xfebe, 0x6a9e, 0xa1bf, 0xa2bf, 0x6b9e, 0x6c9e, 0xa3bf, 0x6d9e, 0x6e9e, 0x6f9e, 0xa4bf, 0x709e, 0x719e, 0x729e, 0x739e, 0x749e, 0x759e, 0x769e, 0xa5bf, 0xa6bf, 0x779e, 0xa7bf, 0x789e, 0xa8bf, 0x799e, 0x7a9e, 0x819e, 0x829e, 0x839e, 0x849e, 0xa9bf, 0xaabf, 0xabbf, 0x859e, 0xacbf, 0x869e, 0x879e, 0x889e, 0xadbf, 0x899e, 0xaebf, 0xafbf, 0x8a9e, 0x8b9e, 0x8c9e, 0x8d9e, 0xb0bf, 0xb1bf, 0xb2bf, 0xb3bf, 0xb4bf, 0xb5bf, 0x8e9e, 0x8f9e, 0x909e, 0xb6bf, 0xb7bf, 0xb8bf, 0xb9bf, 0x919e, 0x929e, 0x939e, 0xbabf, 0x949e, 0x959e, 0x969e, 0xbbbf, 0x979e, 0x989e, 0x999e, 0x9a9e, 0x9b9e, 0x9c9e, 0x9d9e, 0xbcbf, 0xbdbf, 0x9e9e, 0xbebf, 0xbfbf, 0x9f9e, 0xa09e, 0xa19e, 0xa29e, 0xa39e, 0xa49e, 0xa59e, 0xc0bf, 0xc1bf, 0xa69e, 0xa79e, 0xc2bf, 0xa89e, 0xa99e, 0xaa9e, 0xc3bf, 0xc4bf, 0xc5bf, 0xab9e, 0xc6bf, 0xac9e, 0xad9e, 0xc7bf, 0xc8bf, 0xc9bf, 0xae9e, 0xcabf, 0xaf9e, 0xcbbf, 0xb09e, 0xccbf, 0xb19e, 0xb29e, 0xb39e, 0xb49e, 0xcdbf, 0xcebf, 0xb59e, 0xb69e, 0xcfbf, 0xb79e, 0xb89e, 0xb99e, 0xd0bf, 0xba9e, 0xbb9e, 0xbc9e, 0xbd9e, 0xbe9e, 0xbf9e, 0xc09e, 0xd1bf, 0xd2bf, 0xc19e, 0xd3bf, 0xd4bf, 0xd5bf, 0xc29e, 0xc39e, 0xc49e, 0xc59e, 0xc69e, 0xc79e, 0xd6bf, 0xd7bf, 0xc89e, 0xc99e, 0xd8bf, 0xca9e, 0xcb9e, 0xcc9e, 0xcd9e, 0xce9e, 0xcf9e, 0xd09e, 0xd19e, 0xd29e, 0xd39e, 0xd49e, 0xd9bf, 0xd59e, 0xd69e, 0xdabf, 0xd79e, 0xdbbf, 0xd89e, 0xd99e, 0xda9e, 0xdb9e, 0xdc9e, 0xdd9e, 0xdcbf, 0xddbf, 0xde9e, 0xdf9e, 0xdebf, 0xe09e, 0xe19e, 0xe29e, 0xdfbf, 0xe39e, 0xe49e, 0xe59e, 0xe69e, 0xe79e, 0xe89e, 0xe99e, 0xe0bf, 0xe1bf, 0xea9e, 0xe2bf, 0xeb9e, 0xe3bf, 0xec9e, 0xed9e, 0xee9e, 0xef9e, 0xf09e, 0xf19e, 0xe4bf, 0xe5bf, 0xf29e, 0xf39e, 0xe6bf, 0xf49e, 0xf59e, 0xf69e, 0xe7bf, 0xf79e, 0xf89e, 0xf99e, 0xfa9e, 0xfb9e, 0xfc9e, 0xfd9e, 0xe8bf, 0xe9bf, 0xfe9e, 0xeabf, 0x419f, 0xebbf, 0x429f, 0x439f, 0x449f, 0x459f, 0x469f, 0x479f, 0xecbf, 0xedbf, 0x489f, 0x499f, 0xeebf, 0x4a9f, 0x4b9f, 0x4c9f, 0xefbf, 0xf0bf, 0xf1bf, 0x4d9f, 0x4e9f, 0x4f9f, 0x509f, 0x519f, 0xf2bf, 0xf3bf, 0x529f, 0xf4bf, 0x539f, 0xf5bf, 0x549f, 0x559f, 0x569f, 0x579f, 0x589f, 0x599f, 0xf6bf, 0xf7bf, 0x5a9f, 0x619f, 0xf8bf, 0x629f, 0x639f, 0x649f, 0xf9bf, 0x659f, 0x669f, 0x679f, 0x689f, 0x699f, 0x6a9f, 0x6b9f, 0xfabf, 0xfbbf, 0x6c9f, 0x6d9f, 0xfcbf, 0xfdbf, 0x6e9f, 0x6f9f, 0x709f, 0x719f, 0x729f, 0x739f, 0xfebf, 0xa1c0, 0x749f, 0x759f, 0xa2c0, 0x769f, 0x779f, 0x789f, 0xa3c0, 0x799f, 0x7a9f, 0x819f, 0x829f, 0x839f, 0x849f, 0x859f, 0xa4c0, 0xa5c0, 0x869f, 0x879f, 0x889f, 0xa6c0, 0x899f, 0x8a9f, 0x8b9f, 0x8c9f, 0x8d9f, 0x8e9f, 0xa7c0, 0xa8c0, 0x8f9f, 0x909f, 0xa9c0, 0x919f, 0x929f, 0x939f, 0xaac0, 0x949f, 0x959f, 0x969f, 0x979f, 0x989f, 0x999f, 0x9a9f, 0xabc0, 0xacc0, 0x9b9f, 0xadc0, 0x9c9f, 0xaec0, 0x9d9f, 0x9e9f, 0x9f9f, 0xa09f, 0xa19f, 0xa29f, 0xafc0, 0xb0c0, 0xa39f, 0xa49f, 0xb1c0, 0xa59f, 0xa69f, 0xa79f, 0xb2c0, 0xa89f, 0xa99f, 0xaa9f, 0xab9f, 0xac9f, 0xad9f, 0xae9f, 0xb3c0, 0xb4c0, 0xaf9f, 0xb5c0, 0xb09f, 0xb6c0, 0xb19f, 0xb7c0, 0xb29f, 0xb39f, 0xb49f, 0xb59f, 0xb8c0, 0xb9c0, 0xb69f, 0xb79f, 0xbac0, 0xb89f, 0xb99f, 0xba9f, 0xbbc0, 0xbb9f, 0xbc9f, 0xbd9f, 0xbe9f, 0xbf9f, 0xbcc0, 0xc09f, 0xbdc0, 0xbec0, 0xc19f, 0xbfc0, 0xc29f, 0xc0c0, 0xc1c0, 0xc2c0, 0xc3c0, 0xc4c0, 0xc5c0, 0xc6c0, 0xc7c0, 0xc39f, 0xc49f, 0xc59f, 0xc8c0, 0xc69f, 0xc79f, 0xc89f, 0xc9c0, 0xc99f, 0xca9f, 0xcb9f, 0xcc9f, 0xcd9f, 0xce9f, 0xcf9f, 0xcac0, 0xd09f, 0xd19f, 0xcbc0, 0xd29f, 0xd39f, 0xd49f, 0xd59f, 0xd69f, 0xd79f, 0xd89f, 0xd99f, 0xccc0, 0xcdc0, 0xda9f, 0xdb9f, 0xcec0, 0xdc9f, 0xdd9f, 0xde9f, 0xcfc0, 0xd0c0, 0xd1c0, 0xdf9f, 0xe09f, 0xe19f, 0xe29f, 0xd2c0, 0xd3c0, 0xd4c0, 0xe39f, 0xd5c0, 0xd6c0, 0xd7c0, 0xd8c0, 0xe49f, 0xe59f, 0xe69f, 0xd9c0, 0xe79f, 0xdac0, 0xdbc0, 0xe89f, 0xe99f, 0xdcc0, 0xea9f, 0xddc0, 0xdec0, 0xdfc0, 0xeb9f, 0xe0c0, 0xec9f, 0xed9f, 0xee9f, 0xef9f, 0xf09f, 0xe1c0, 0xe2c0, 0xf19f, 0xe3c0, 0xe4c0, 0xe5c0, 0xe6c0, 0xf29f, 0xf39f, 0xf49f, 0xf59f, 0xf69f, 0xe7c0, 0xe8c0, 0xf79f, 0xf89f, 0xe9c0, 0xf99f, 0xfa9f, 0xfb9f, 0xeac0, 0xfc9f, 0xfd9f, 0xfe9f, 0x41a0, 0x42a0, 0x43a0, 0x44a0, 0xebc0, 0xecc0, 0x45a0, 0xedc0, 0xeec0, 0xefc0, 0x46a0, 0x47a0, 0x48a0, 0x49a0, 0x4aa0, 0x4ba0, 0xf0c0, 0xf1c0, 0x4ca0, 0x4da0, 0xf2c0, 0x4ea0, 0xf3c0, 0x4fa0, 0xf4c0, 0x50a0, 0x51a0, 0x52a0, 0x53a0, 0x54a0, 0x55a0, 0x56a0, 0xf5c0, 0x57a0, 0x58a0, 0x59a0, 0x5aa0, 0xf6c0, 0x61a0, 0x62a0, 0x63a0, 0x64a0, 0x65a0, 0x66a0, 0xf7c0, 0x67a0, 0x68a0, 0x69a0, 0xf8c0, 0x6aa0, 0x6ba0, 0x6ca0, 0xf9c0, 0x6da0, 0x6ea0, 0x6fa0, 0x70a0, 0x71a0, 0x72a0, 0x73a0, 0x74a0, 0x75a0, 0x76a0, 0x77a0, 0x78a0, 0x79a0, 0x7aa0, 0x81a0, 0x82a0, 0x83a0, 0x84a0, 0x85a0, 0xfac0, 0xfbc0, 0x86a0, 0x87a0, 0xfcc0, 0x88a0, 0x89a0, 0x8aa0, 0xfdc0, 0x8ba0, 0xfec0, 0x8ca0, 0x8da0, 0x8ea0, 0x8fa0, 0x90a0, 0xa1c1, 0xa2c1, 0x91a0, 0xa3c1, 0x92a0, 0xa4c1, 0xa5c1, 0x93a0, 0x94a0, 0x95a0, 0x96a0, 0x97a0, 0xa6c1, 0xa7c1, 0x98a0, 0x99a0, 0xa8c1, 0x9aa0, 0x9ba0, 0x9ca0, 0xa9c1, 0x9da0, 0x9ea0, 0x9fa0, 0xa0a0, 0xa1a0, 0xa2a0, 0xa3a0, 0xaac1, 0xabc1, 0xa4a0, 0xacc1, 0xa5a0, 0xadc1, 0xa6a0, 0xa7a0, 0xa8a0, 0xa9a0, 0xaaa0, 0xaba0, 0xaec1, 0xaca0, 0xada0, 0xaea0, 0xafc1, 0xafa0, 0xb0a0, 0xb1a0, 0xb0c1, 0xb2a0, 0xb3a0, 0xb4a0, 0xb5a0, 0xb6a0, 0xb7a0, 0xb8a0, 0xb1c1, 0xb2c1, 0xb9a0, 0xbaa0, 0xb3c1, 0xb4c1, 0xbba0, 0xbca0, 0xbda0, 0xbea0, 0xbfa0, 0xc0a0, 0xb5c1, 0xc1a0, 0xc2a0, 0xc3a0, 0xc4a0, 0xc5a0, 0xc6a0, 0xc7a0, 0xc8a0, 0xc9a0, 0xcaa0, 0xcba0, 0xcca0, 0xcda0, 0xcea0, 0xcfa0, 0xd0a0, 0xd1a0, 0xd2a0, 0xd3a0, 0xd4a0, 0xd5a0, 0xd6a0, 0xd7a0, 0xd8a0, 0xd9a0, 0xdaa0, 0xdba0, 0xb6c1, 0xb7c1, 0xdca0, 0xdda0, 0xb8c1, 0xdea0, 0xdfa0, 0xe0a0, 0xb9c1, 0xe1a0, 0xbac1, 0xe2a0, 0xe3a0, 0xe4a0, 0xe5a0, 0xe6a0, 0xbbc1, 0xbcc1, 0xe7a0, 0xbdc1, 0xe8a0, 0xbec1, 0xbfc1, 0xc0c1, 0xe9a0, 0xeaa0, 0xeba0, 0xc1c1, 0xc2c1, 0xc3c1, 0xeca0, 0xeda0, 0xeea0, 0xefa0, 0xf0a0, 0xf1a0, 0xc4c1, 0xf2a0, 0xf3a0, 0xf4a0, 0xf5a0, 0xf6a0, 0xf7a0, 0xf8a0, 0xf9a0, 0xc5c1, 0xfaa0, 0xc6c1, 0xfba0, 0xc7c1, 0xfca0, 0xfda0, 0xfea0, 0x41a1, 0x42a1, 0x43a1, 0xc8c1, 0x44a1, 0x45a1, 0x46a1, 0x47a1, 0x48a1, 0x49a1, 0x4aa1, 0x4ba1, 0x4ca1, 0x4da1, 0x4ea1, 0x4fa1, 0x50a1, 0x51a1, 0x52a1, 0x53a1, 0x54a1, 0x55a1, 0x56a1, 0xc9c1, 0xcac1, 0x57a1, 0x58a1, 0x59a1, 0x5aa1, 0x61a1, 0x62a1, 0xcbc1, 0x63a1, 0x64a1, 0x65a1, 0xccc1, 0x66a1, 0x67a1, 0x68a1, 0xcdc1, 0x69a1, 0x6aa1, 0x6ba1, 0x6ca1, 0x6da1, 0x6ea1, 0x6fa1, 0xcec1, 0xcfc1, 0x70a1, 0xd0c1, 0x71a1, 0xd1c1, 0x72a1, 0x73a1, 0x74a1, 0x75a1, 0x76a1, 0x77a1, 0xd2c1, 0xd3c1, 0x78a1, 0x79a1, 0xd4c1, 0x7aa1, 0x81a1, 0x82a1, 0x83a1, 0x84a1, 0x85a1, 0x86a1, 0x87a1, 0x88a1, 0x89a1, 0x8aa1, 0x8ba1, 0x8ca1, 0x8da1, 0x8ea1, 0x8fa1, 0xd5c1, 0x90a1, 0x91a1, 0x92a1, 0x93a1, 0x94a1, 0x95a1, 0xd6c1, 0xd7c1, 0x96a1, 0x97a1, 0xd8c1, 0x98a1, 0x99a1, 0x9aa1, 0xd9c1, 0xdac1, 0xdbc1, 0x9ba1, 0x9ca1, 0x9da1, 0x9ea1, 0x9fa1, 0xdcc1, 0xddc1, 0xa0a1, 0xdec1, 0x41a2, 0xdfc1, 0x42a2, 0x43a2, 0x44a2, 0x45a2, 0x46a2, 0x47a2, 0xe0c1, 0x48a2, 0x49a2, 0x4aa2, 0x4ba2, 0x4ca2, 0x4da2, 0x4ea2, 0x4fa2, 0x50a2, 0x51a2, 0x52a2, 0x53a2, 0x54a2, 0x55a2, 0x56a2, 0x57a2, 0x58a2, 0x59a2, 0x5aa2, 0xe1c1, 0x61a2, 0x62a2, 0x63a2, 0x64a2, 0x65a2, 0x66a2, 0x67a2, 0xe2c1, 0x68a2, 0x69a2, 0x6aa2, 0x6ba2, 0x6ca2, 0x6da2, 0x6ea2, 0x6fa2, 0x70a2, 0x71a2, 0x72a2, 0x73a2, 0x74a2, 0x75a2, 0x76a2, 0x77a2, 0x78a2, 0x79a2, 0x7aa2, 0x81a2, 0x82a2, 0x83a2, 0x84a2, 0x85a2, 0x86a2, 0x87a2, 0x88a2, 0xe3c1, 0xe4c1, 0x89a2, 0x8aa2, 0xe5c1, 0x8ba2, 0x8ca2, 0x8da2, 0xe6c1, 0x8ea2, 0x8fa2, 0x90a2, 0x91a2, 0x92a2, 0x93a2, 0x94a2, 0xe7c1, 0xe8c1, 0x95a2, 0xe9c1, 0x96a2, 0x97a2, 0x98a2, 0x99a2, 0x9aa2, 0x9ba2, 0x9ca2, 0x9da2, 0xeac1, 0x9ea2, 0x9fa2, 0xa0a2, 0xebc1, 0x41a3, 0x42a3, 0x43a3, 0xecc1, 0x44a3, 0x45a3, 0x46a3, 0x47a3, 0x48a3, 0x49a3, 0x4aa3, 0xedc1, 0x4ba3, 0x4ca3, 0x4da3, 0x4ea3, 0x4fa3, 0x50a3, 0x51a3, 0x52a3, 0x53a3, 0x54a3, 0x55a3, 0xeec1, 0xefc1, 0x56a3, 0x57a3, 0xf0c1, 0x58a3, 0x59a3, 0x5aa3, 0xf1c1, 0x61a3, 0x62a3, 0x63a3, 0x64a3, 0x65a3, 0x66a3, 0x67a3, 0xf2c1, 0xf3c1, 0x68a3, 0xf4c1, 0x69a3, 0xf5c1, 0x6aa3, 0x6ba3, 0x6ca3, 0x6da3, 0x6ea3, 0x6fa3, 0x70a3, 0x71a3, 0x72a3, 0x73a3, 0x74a3, 0x75a3, 0x76a3, 0x77a3, 0x78a3, 0x79a3, 0x7aa3, 0x81a3, 0x82a3, 0x83a3, 0x84a3, 0x85a3, 0x86a3, 0x87a3, 0x88a3, 0x89a3, 0x8aa3, 0x8ba3, 0x8ca3, 0x8da3, 0x8ea3, 0x8fa3, 0x90a3, 0x91a3, 0xf6c1, 0xf7c1, 0x92a3, 0x93a3, 0xf8c1, 0x94a3, 0x95a3, 0xf9c1, 0xfac1, 0x96a3, 0xfbc1, 0x97a3, 0x98a3, 0x99a3, 0x9aa3, 0x9ba3, 0xfcc1, 0xfdc1, 0x9ca3, 0xfec1, 0x9da3, 0xa1c2, 0xa2c2, 0x9ea3, 0x9fa3, 0xa3c2, 0xa4c2, 0xa0a3, 0xa5c2, 0xa6c2, 0x41a4, 0x42a4, 0xa7c2, 0x43a4, 0xa8c2, 0x44a4, 0xa9c2, 0x45a4, 0x46a4, 0xaac2, 0x47a4, 0x48a4, 0x49a4, 0x4aa4, 0xabc2, 0xacc2, 0x4ba4, 0xadc2, 0xaec2, 0xafc2, 0x4ca4, 0x4da4, 0x4ea4, 0x4fa4, 0x50a4, 0x51a4, 0xb0c2, 0xb1c2, 0x52a4, 0x53a4, 0xb2c2, 0x54a4, 0x55a4, 0x56a4, 0xb3c2, 0x57a4, 0x58a4, 0x59a4, 0x5aa4, 0x61a4, 0x62a4, 0x63a4, 0xb4c2, 0xb5c2, 0x64a4, 0xb6c2, 0xb7c2, 0xb8c2, 0x65a4, 0x66a4, 0x67a4, 0x68a4, 0x69a4, 0x6aa4, 0xb9c2, 0x6ba4, 0x6ca4, 0x6da4, 0xbac2, 0x6ea4, 0x6fa4, 0x70a4, 0x71a4, 0x72a4, 0x73a4, 0x74a4, 0x75a4, 0x76a4, 0x77a4, 0x78a4, 0x79a4, 0x7aa4, 0x81a4, 0x82a4, 0x83a4, 0xbbc2, 0x84a4, 0x85a4, 0x86a4, 0x87a4, 0x88a4, 0x89a4, 0x8aa4, 0x8ba4, 0x8ca4, 0x8da4, 0x8ea4, 0x8fa4, 0x90a4, 0x91a4, 0x92a4, 0x93a4, 0x94a4, 0x95a4, 0x96a4, 0x97a4, 0x98a4, 0x99a4, 0x9aa4, 0x9ba4, 0x9ca4, 0x9da4, 0x9ea4, 0x9fa4, 0xa0a4, 0x41a5, 0x42a5, 0x43a5, 0x44a5, 0x45a5, 0xbcc2, 0xbdc2, 0x46a5, 0x47a5, 0xbec2, 0x48a5, 0x49a5, 0x4aa5, 0xbfc2, 0x4ba5, 0x4ca5, 0x4da5, 0x4ea5, 0x4fa5, 0x50a5, 0x51a5, 0xc0c2, 0xc1c2, 0x52a5, 0xc2c2, 0xc3c2, 0xc4c2, 0x53a5, 0x54a5, 0x55a5, 0x56a5, 0x57a5, 0x58a5, 0xc5c2, 0x59a5, 0x5aa5, 0x61a5, 0x62a5, 0x63a5, 0x64a5, 0x65a5, 0x66a5, 0x67a5, 0x68a5, 0x69a5, 0x6aa5, 0x6ba5, 0x6ca5, 0x6da5, 0x6ea5, 0x6fa5, 0x70a5, 0x71a5, 0x72a5, 0xc6c2, 0x73a5, 0x74a5, 0x75a5, 0x76a5, 0x77a5, 0x78a5, 0xc7c2, 0x79a5, 0x7aa5, 0x81a5, 0x82a5, 0x83a5, 0x84a5, 0x85a5, 0x86a5, 0x87a5, 0x88a5, 0x89a5, 0x8aa5, 0x8ba5, 0x8ca5, 0x8da5, 0x8ea5, 0x8fa5, 0x90a5, 0x91a5, 0xc8c2, 0x92a5, 0x93a5, 0x94a5, 0x95a5, 0x96a5, 0x97a5, 0x98a5, 0x99a5, 0x9aa5, 0x9ba5, 0x9ca5, 0x9da5, 0x9ea5, 0x9fa5, 0xa0a5, 0x41a6, 0x42a6, 0x43a6, 0x44a6, 0x45a6, 0x46a6, 0x47a6, 0x48a6, 0x49a6, 0x4aa6, 0x4ba6, 0x4ca6, 0x4da6, 0x4ea6, 0x4fa6, 0x50a6, 0x51a6, 0x52a6, 0x53a6, 0x54a6, 0xc9c2, 0xcac2, 0x55a6, 0x56a6, 0xcbc2, 0x57a6, 0x58a6, 0x59a6, 0xccc2, 0x5aa6, 0x61a6, 0x62a6, 0x63a6, 0x64a6, 0x65a6, 0x66a6, 0xcdc2, 0xcec2, 0x67a6, 0xcfc2, 0x68a6, 0xd0c2, 0x69a6, 0xd1c2, 0x6aa6, 0x6ba6, 0x6ca6, 0x6da6, 0xd2c2, 0xd3c2, 0x6ea6, 0x6fa6, 0x70a6, 0x71a6, 0x72a6, 0x73a6, 0xd4c2, 0x74a6, 0x75a6, 0x76a6, 0x77a6, 0x78a6, 0x79a6, 0x7aa6, 0x81a6, 0x82a6, 0x83a6, 0x84a6, 0xd5c2, 0x85a6, 0x86a6, 0x87a6, 0x88a6, 0x89a6, 0x8aa6, 0x8ba6, 0xd6c2, 0x8ca6, 0x8da6, 0x8ea6, 0x8fa6, 0x90a6, 0x91a6, 0x92a6, 0x93a6, 0x94a6, 0x95a6, 0x96a6, 0x97a6, 0x98a6, 0x99a6, 0x9aa6, 0x9ba6, 0x9ca6, 0x9da6, 0x9ea6, 0xd7c2, 0x9fa6, 0xa0a6, 0x41a7, 0x42a7, 0x43a7, 0x44a7, 0x45a7, 0xd8c2, 0x46a7, 0x47a7, 0x48a7, 0xd9c2, 0x49a7, 0x4aa7, 0x4ba7, 0xdac2, 0x4ca7, 0x4da7, 0x4ea7, 0x4fa7, 0x50a7, 0x51a7, 0x52a7, 0xdbc2, 0xdcc2, 0x53a7, 0x54a7, 0x55a7, 0x56a7, 0x57a7, 0x58a7, 0x59a7, 0x5aa7, 0x61a7, 0x62a7, 0x63a7, 0x64a7, 0x65a7, 0x66a7, 0x67a7, 0x68a7, 0x69a7, 0x6aa7, 0x6ba7, 0x6ca7, 0x6da7, 0x6ea7, 0x6fa7, 0x70a7, 0x71a7, 0x72a7, 0x73a7, 0x74a7, 0x75a7, 0x76a7, 0x77a7, 0xddc2, 0x78a7, 0x79a7, 0x7aa7, 0x81a7, 0x82a7, 0x83a7, 0xdec2, 0xdfc2, 0x84a7, 0x85a7, 0xe0c2, 0x86a7, 0x87a7, 0x88a7, 0xe1c2, 0x89a7, 0x8aa7, 0x8ba7, 0x8ca7, 0x8da7, 0x8ea7, 0x8fa7, 0xe2c2, 0xe3c2, 0x90a7, 0x91a7, 0x92a7, 0xe4c2, 0x93a7, 0x94a7, 0x95a7, 0x96a7, 0x97a7, 0x98a7, 0xe5c2, 0x99a7, 0x9aa7, 0x9ba7, 0x9ca7, 0x9da7, 0x9ea7, 0x9fa7, 0xa0a7, 0x41a8, 0x42a8, 0x43a8, 0x44a8, 0x45a8, 0x46a8, 0x47a8, 0x48a8, 0x49a8, 0x4aa8, 0x4ba8, 0xe6c2, 0xe7c2, 0x4ca8, 0x4da8, 0x4ea8, 0x4fa8, 0x50a8, 0x51a8, 0x52a8, 0x53a8, 0x54a8, 0x55a8, 0x56a8, 0x57a8, 0x58a8, 0x59a8, 0x5aa8, 0x61a8, 0x62a8, 0x63a8, 0x64a8, 0x65a8, 0x66a8, 0x67a8, 0x68a8, 0x69a8, 0x6aa8, 0x6ba8, 0x6ca8, 0x6da8, 0x6ea8, 0x6fa8, 0x70a8, 0x71a8, 0x72a8, 0x73a8, 0xe8c2, 0x74a8, 0x75a8, 0x76a8, 0x77a8, 0x78a8, 0x79a8, 0x7aa8, 0x81a8, 0x82a8, 0x83a8, 0x84a8, 0x85a8, 0x86a8, 0x87a8, 0x88a8, 0x89a8, 0x8aa8, 0x8ba8, 0x8ca8, 0x8da8, 0x8ea8, 0x8fa8, 0x90a8, 0x91a8, 0x92a8, 0x93a8, 0x94a8, 0xe9c2, 0x95a8, 0x96a8, 0x97a8, 0x98a8, 0x99a8, 0x9aa8, 0x9ba8, 0x9ca8, 0x9da8, 0x9ea8, 0x9fa8, 0xa0a8, 0x41a9, 0x42a9, 0x43a9, 0x44a9, 0x45a9, 0x46a9, 0x47a9, 0x48a9, 0x49a9, 0x4aa9, 0x4ba9, 0x4ca9, 0x4da9, 0x4ea9, 0x4fa9, 0xeac2, 0x50a9, 0x51a9, 0x52a9, 0x53a9, 0x54a9, 0x55a9, 0x56a9, 0x57a9, 0x58a9, 0x59a9, 0x5aa9, 0x61a9, 0x62a9, 0x63a9, 0x64a9, 0xebc2, 0x65a9, 0x66a9, 0xecc2, 0x67a9, 0xedc2, 0x68a9, 0x69a9, 0x6aa9, 0x6ba9, 0x6ca9, 0x6da9, 0x6ea9, 0x6fa9, 0x70a9, 0x71a9, 0x72a9, 0x73a9, 0x74a9, 0x75a9, 0x76a9, 0x77a9, 0x78a9, 0x79a9, 0x7aa9, 0x81a9, 0x82a9, 0x83a9, 0x84a9, 0x85a9, 0x86a9, 0x87a9, 0x88a9, 0x89a9, 0x8aa9, 0x8ba9, 0x8ca9, 0x8da9, 0x8ea9, 0x8fa9, 0xeec2, 0xefc2, 0x90a9, 0x91a9, 0xf0c2, 0x92a9, 0x93a9, 0x94a9, 0xf1c2, 0x95a9, 0x96a9, 0x97a9, 0x98a9, 0x99a9, 0x9aa9, 0x9ba9, 0xf2c2, 0xf3c2, 0x9ca9, 0x9da9, 0x9ea9, 0xf4c2, 0xf5c2, 0x9fa9, 0xa0a9, 0x41aa, 0x42aa, 0xf6c2, 0xf7c2, 0xf8c2, 0x43aa, 0x44aa, 0xf9c2, 0x45aa, 0xfac2, 0x46aa, 0xfbc2, 0x47aa, 0x48aa, 0x49aa, 0x4aaa, 0x4baa, 0x4caa, 0x4daa, 0xfcc2, 0xfdc2, 0x4eaa, 0xfec2, 0xa1c3, 0xa2c3, 0xa3c3, 0x4faa, 0x50aa, 0x51aa, 0x52aa, 0x53aa, 0xa4c3, 0xa5c3, 0x54aa, 0x55aa, 0xa6c3, 0x56aa, 0x57aa, 0x58aa, 0xa7c3, 0x59aa, 0x5aaa, 0x61aa, 0x62aa, 0x63aa, 0x64aa, 0x65aa, 0xa8c3, 0xa9c3, 0x66aa, 0xaac3, 0xabc3, 0xacc3, 0x67aa, 0x68aa, 0x69aa, 0x6aaa, 0x6baa, 0x6caa, 0xadc3, 0x6daa, 0x6eaa, 0x6faa, 0xaec3, 0x70aa, 0xafc3, 0x71aa, 0xb0c3, 0x72aa, 0x73aa, 0x74aa, 0x75aa, 0x76aa, 0x77aa, 0x78aa, 0xb1c3, 0x79aa, 0x7aaa, 0x81aa, 0x82aa, 0xb2c3, 0x83aa, 0x84aa, 0x85aa, 0x86aa, 0x87aa, 0x88aa, 0x89aa, 0x8aaa, 0x8baa, 0x8caa, 0x8daa, 0x8eaa, 0x8faa, 0x90aa, 0x91aa, 0x92aa, 0x93aa, 0x94aa, 0x95aa, 0x96aa, 0x97aa, 0x98aa, 0x99aa, 0x9aaa, 0x9baa, 0x9caa, 0x9daa, 0x9eaa, 0x9faa, 0xa0aa, 0x41ab, 0x42ab, 0x43ab, 0x44ab, 0xb3c3, 0xb4c3, 0x45ab, 0x46ab, 0xb5c3, 0x47ab, 0x48ab, 0x49ab, 0xb6c3, 0x4aab, 0x4bab, 0x4cab, 0x4dab, 0x4eab, 0x4fab, 0x50ab, 0xb7c3, 0xb8c3, 0x51ab, 0xb9c3, 0xbac3, 0xbbc3, 0x52ab, 0x53ab, 0x54ab, 0x55ab, 0x56ab, 0x57ab, 0xbcc3, 0xbdc3, 0x58ab, 0x59ab, 0xbec3, 0x5aab, 0x61ab, 0x62ab, 0xbfc3, 0x63ab, 0x64ab, 0x65ab, 0x66ab, 0x67ab, 0x68ab, 0x69ab, 0xc0c3, 0xc1c3, 0x6aab, 0xc2c3, 0x6bab, 0xc3c3, 0x6cab, 0x6dab, 0x6eab, 0x6fab, 0x70ab, 0x71ab, 0xc4c3, 0x72ab, 0x73ab, 0x74ab, 0xc5c3, 0x75ab, 0x76ab, 0x77ab, 0x78ab, 0x79ab, 0x7aab, 0x81ab, 0x82ab, 0x83ab, 0x84ab, 0x85ab, 0x86ab, 0x87ab, 0x88ab, 0x89ab, 0xc6c3, 0x8aab, 0x8bab, 0x8cab, 0x8dab, 0x8eab, 0x8fab, 0x90ab, 0xc7c3, 0x91ab, 0x92ab, 0x93ab, 0xc8c3, 0x94ab, 0x95ab, 0x96ab, 0x97ab, 0x98ab, 0x99ab, 0x9aab, 0x9bab, 0x9cab, 0x9dab, 0x9eab, 0x9fab, 0xa0ab, 0x41ac, 0x42ac, 0x43ac, 0xc9c3, 0x44ac, 0x45ac, 0x46ac, 0x47ac, 0x48ac, 0x49ac, 0xcac3, 0xcbc3, 0x4aac, 0x4bac, 0xccc3, 0x4cac, 0x4dac, 0x4eac, 0xcdc3, 0x4fac, 0x50ac, 0x51ac, 0x52ac, 0x53ac, 0x54ac, 0x55ac, 0xcec3, 0xcfc3, 0x56ac, 0xd0c3, 0x57ac, 0xd1c3, 0x58ac, 0x59ac, 0x5aac, 0x61ac, 0x62ac, 0x63ac, 0xd2c3, 0x64ac, 0x65ac, 0x66ac, 0xd3c3, 0x67ac, 0x68ac, 0x69ac, 0xd4c3, 0x6aac, 0x6bac, 0x6cac, 0x6dac, 0x6eac, 0x6fac, 0x70ac, 0x71ac, 0x72ac, 0x73ac, 0x74ac, 0x75ac, 0xd5c3, 0x76ac, 0x77ac, 0x78ac, 0x79ac, 0x7aac, 0x81ac, 0x82ac, 0x83ac, 0x84ac, 0x85ac, 0x86ac, 0x87ac, 0x88ac, 0x89ac, 0x8aac, 0x8bac, 0x8cac, 0x8dac, 0x8eac, 0x8fac, 0x90ac, 0x91ac, 0x92ac, 0x93ac, 0x94ac, 0x95ac, 0x96ac, 0x97ac, 0x98ac, 0x99ac, 0x9aac, 0x9bac, 0x9cac, 0x9dac, 0xd6c3, 0x9eac, 0x9fac, 0xa0ac, 0xd7c3, 0x41ad, 0x42ad, 0x43ad, 0xd8c3, 0x44ad, 0x45ad, 0x46ad, 0x47ad, 0x48ad, 0x49ad, 0x4aad, 0xd9c3, 0xdac3, 0x4bad, 0xdbc3, 0x4cad, 0xdcc3, 0x4dad, 0x4ead, 0x4fad, 0x50ad, 0x51ad, 0x52ad, 0xddc3, 0x53ad, 0x54ad, 0x55ad, 0x56ad, 0x57ad, 0x58ad, 0x59ad, 0x5aad, 0x61ad, 0x62ad, 0x63ad, 0x64ad, 0x65ad, 0x66ad, 0x67ad, 0xdec3, 0x68ad, 0x69ad, 0x6aad, 0x6bad, 0x6cad, 0x6dad, 0x6ead, 0x6fad, 0x70ad, 0x71ad, 0x72ad, 0xdfc3, 0xe0c3, 0x73ad, 0x74ad, 0xe1c3, 0x75ad, 0x76ad, 0x77ad, 0xe2c3, 0x78ad, 0x79ad, 0x7aad, 0x81ad, 0x82ad, 0x83ad, 0x84ad, 0xe3c3, 0xe4c3, 0x85ad, 0xe5c3, 0x86ad, 0xe6c3, 0x87ad, 0x88ad, 0x89ad, 0x8aad, 0x8bad, 0x8cad, 0xe7c3, 0x8dad, 0x8ead, 0x8fad, 0x90ad, 0x91ad, 0x92ad, 0x93ad, 0x94ad, 0x95ad, 0x96ad, 0x97ad, 0x98ad, 0x99ad, 0x9aad, 0x9bad, 0x9cad, 0x9dad, 0x9ead, 0x9fad, 0xe8c3, 0xa0ad, 0x41ae, 0x42ae, 0x43ae, 0x44ae, 0x45ae, 0x46ae, 0xe9c3, 0x47ae, 0x48ae, 0x49ae, 0xeac3, 0x4aae, 0x4bae, 0x4cae, 0x4dae, 0x4eae, 0x4fae, 0x50ae, 0x51ae, 0x52ae, 0x53ae, 0x54ae, 0x55ae, 0x56ae, 0x57ae, 0x58ae, 0x59ae, 0x5aae, 0x61ae, 0x62ae, 0x63ae, 0x64ae, 0x65ae, 0x66ae, 0xebc3, 0x67ae, 0x68ae, 0x69ae, 0xecc3, 0x6aae, 0x6bae, 0x6cae, 0xedc3, 0x6dae, 0x6eae, 0x6fae, 0x70ae, 0x71ae, 0x72ae, 0x73ae, 0xeec3, 0xefc3, 0x74ae, 0xf0c3, 0x75ae, 0xf1c3, 0x76ae, 0x77ae, 0x78ae, 0x79ae, 0x7aae, 0x81ae, 0xf2c3, 0x82ae, 0x83ae, 0x84ae, 0xf3c3, 0x85ae, 0x86ae, 0x87ae, 0xf4c3, 0x88ae, 0x89ae, 0x8aae, 0x8bae, 0x8cae, 0x8dae, 0x8eae, 0xf5c3, 0x8fae, 0x90ae, 0x91ae, 0x92ae, 0xf6c3, 0x93ae, 0x94ae, 0x95ae, 0x96ae, 0x97ae, 0x98ae, 0xf7c3, 0xf8c3, 0x99ae, 0x9aae, 0xf9c3, 0x9bae, 0x9cae, 0x9dae, 0xfac3, 0x9eae, 0x9fae, 0xa0ae, 0x41af, 0x42af, 0x43af, 0x44af, 0xfbc3, 0xfcc3, 0x45af, 0xfdc3, 0x46af, 0xfec3, 0x47af, 0x48af, 0x49af, 0x4aaf, 0x4baf, 0x4caf, 0x4daf, 0x4eaf, 0x4faf, 0x50af, 0x51af, 0x52af, 0x53af, 0x54af, 0x55af, 0x56af, 0x57af, 0x58af, 0x59af, 0x5aaf, 0x61af, 0x62af, 0x63af, 0x64af, 0x65af, 0x66af, 0x67af, 0x68af, 0x69af, 0x6aaf, 0x6baf, 0x6caf, 0x6daf, 0x6eaf, 0xa1c4, 0xa2c4, 0x6faf, 0x70af, 0xa3c4, 0x71af, 0x72af, 0xa4c4, 0xa5c4, 0xa6c4, 0x73af, 0x74af, 0x75af, 0x76af, 0x77af, 0x78af, 0xa7c4, 0xa8c4, 0x79af, 0xa9c4, 0x7aaf, 0xaac4, 0x81af, 0x82af, 0x83af, 0x84af, 0x85af, 0x86af, 0xabc4, 0xacc4, 0x87af, 0x88af, 0xadc4, 0x89af, 0x8aaf, 0x8baf, 0xaec4, 0x8caf, 0x8daf, 0x8eaf, 0x8faf, 0x90af, 0x91af, 0x92af, 0xafc4, 0xb0c4, 0x93af, 0xb1c4, 0x94af, 0xb2c4, 0x95af, 0x96af, 0x97af, 0x98af, 0x99af, 0x9aaf, 0xb3c4, 0xb4c4, 0x9baf, 0x9caf, 0xb5c4, 0x9daf, 0x9eaf, 0x9faf, 0xb6c4, 0xa0af, 0x41b0, 0x42b0, 0x43b0, 0x44b0, 0x45b0, 0x46b0, 0xb7c4, 0xb8c4, 0x47b0, 0xb9c4, 0xbac4, 0xbbc4, 0x48b0, 0x49b0, 0x4ab0, 0x4bb0, 0x4cb0, 0x4db0, 0xbcc4, 0xbdc4, 0x4eb0, 0x4fb0, 0x50b0, 0x51b0, 0x52b0, 0x53b0, 0x54b0, 0x55b0, 0x56b0, 0x57b0, 0x58b0, 0x59b0, 0x5ab0, 0x61b0, 0x62b0, 0x63b0, 0x64b0, 0x65b0, 0x66b0, 0xbec4, 0x67b0, 0x68b0, 0x69b0, 0x6ab0, 0x6bb0, 0x6cb0, 0x6db0, 0x6eb0, 0x6fb0, 0x70b0, 0x71b0, 0x72b0, 0x73b0, 0x74b0, 0x75b0, 0x76b0, 0x77b0, 0x78b0, 0x79b0, 0x7ab0, 0x81b0, 0x82b0, 0x83b0, 0x84b0, 0x85b0, 0x86b0, 0x87b0, 0x88b0, 0x89b0, 0x8ab0, 0x8bb0, 0x8cb0, 0x8db0, 0x8eb0, 0xbfc4, 0xc0c4, 0x8fb0, 0x90b0, 0xc1c4, 0x91b0, 0x92b0, 0xc2c4, 0xc3c4, 0x93b0, 0x94b0, 0x95b0, 0x96b0, 0x97b0, 0x98b0, 0x99b0, 0xc4c4, 0xc5c4, 0x9ab0, 0xc6c4, 0xc7c4, 0xc8c4, 0x9bb0, 0x9cb0, 0x9db0, 0x9eb0, 0x9fb0, 0xa0b0, 0xc9c4, 0xcac4, 0x41b1, 0x42b1, 0xcbc4, 0x43b1, 0x44b1, 0x45b1, 0xccc4, 0x46b1, 0x47b1, 0x48b1, 0x49b1, 0x4ab1, 0x4bb1, 0x4cb1, 0xcdc4, 0xcec4, 0x4db1, 0xcfc4, 0x4eb1, 0xd0c4, 0x4fb1, 0x50b1, 0x51b1, 0x52b1, 0x53b1, 0x54b1, 0xd1c4, 0x55b1, 0x56b1, 0x57b1, 0xd2c4, 0x58b1, 0x59b1, 0x5ab1, 0xd3c4, 0x61b1, 0x62b1, 0x63b1, 0x64b1, 0x65b1, 0x66b1, 0x67b1, 0xd4c4, 0xd5c4, 0x68b1, 0xd6c4, 0xd7c4, 0xd8c4, 0x69b1, 0x6ab1, 0x6bb1, 0x6cb1, 0x6db1, 0x6eb1, 0xd9c4, 0x6fb1, 0x70b1, 0x71b1, 0x72b1, 0x73b1, 0x74b1, 0x75b1, 0x76b1, 0x77b1, 0x78b1, 0x79b1, 0x7ab1, 0x81b1, 0x82b1, 0x83b1, 0x84b1, 0x85b1, 0x86b1, 0x87b1, 0x88b1, 0x89b1, 0x8ab1, 0x8bb1, 0x8cb1, 0x8db1, 0x8eb1, 0x8fb1, 0xdac4, 0xdbc4, 0x90b1, 0x91b1, 0xdcc4, 0x92b1, 0x93b1, 0x94b1, 0xddc4, 0x95b1, 0x96b1, 0x97b1, 0x98b1, 0x99b1, 0x9ab1, 0x9bb1, 0xdec4, 0xdfc4, 0x9cb1, 0xe0c4, 0x9db1, 0xe1c4, 0x9eb1, 0x9fb1, 0xa0b1, 0x41b2, 0x42b2, 0x43b2, 0xe2c4, 0xe3c4, 0x44b2, 0x45b2, 0xe4c4, 0x46b2, 0x47b2, 0x48b2, 0xe5c4, 0x49b2, 0x4ab2, 0x4bb2, 0x4cb2, 0x4db2, 0x4eb2, 0x4fb2, 0xe6c4, 0x50b2, 0x51b2, 0x52b2, 0x53b2, 0xe7c4, 0x54b2, 0x55b2, 0x56b2, 0x57b2, 0x58b2, 0x59b2, 0xe8c4, 0x5ab2, 0x61b2, 0x62b2, 0x63b2, 0x64b2, 0x65b2, 0x66b2, 0x67b2, 0x68b2, 0x69b2, 0x6ab2, 0x6bb2, 0x6cb2, 0x6db2, 0x6eb2, 0x6fb2, 0x70b2, 0x71b2, 0x72b2, 0x73b2, 0xe9c4, 0x74b2, 0x75b2, 0x76b2, 0x77b2, 0x78b2, 0x79b2, 0xeac4, 0x7ab2, 0x81b2, 0x82b2, 0x83b2, 0x84b2, 0x85b2, 0x86b2, 0xebc4, 0x87b2, 0x88b2, 0x89b2, 0x8ab2, 0x8bb2, 0x8cb2, 0x8db2, 0x8eb2, 0x8fb2, 0x90b2, 0x91b2, 0x92b2, 0x93b2, 0x94b2, 0x95b2, 0x96b2, 0x97b2, 0x98b2, 0x99b2, 0xecc4, 0x9ab2, 0x9bb2, 0x9cb2, 0x9db2, 0x9eb2, 0x9fb2, 0xa0b2, 0x41b3, 0x42b3, 0x43b3, 0x44b3, 0x45b3, 0x46b3, 0x47b3, 0x48b3, 0x49b3, 0x4ab3, 0x4bb3, 0x4cb3, 0x4db3, 0x4eb3, 0x4fb3, 0x50b3, 0x51b3, 0x52b3, 0x53b3, 0x54b3, 0xedc4, 0xeec4, 0x55b3, 0x56b3, 0xefc4, 0x57b3, 0x58b3, 0x59b3, 0xf0c4, 0x5ab3, 0x61b3, 0x62b3, 0x63b3, 0x64b3, 0x65b3, 0x66b3, 0xf1c4, 0xf2c4, 0x67b3, 0xf3c4, 0x68b3, 0xf4c4, 0x69b3, 0x6ab3, 0x6bb3, 0x6cb3, 0x6db3, 0x6eb3, 0xf5c4, 0x6fb3, 0x70b3, 0x71b3, 0xf6c4, 0x72b3, 0x73b3, 0x74b3, 0xf7c4, 0x75b3, 0x76b3, 0x77b3, 0x78b3, 0x79b3, 0x7ab3, 0x81b3, 0x82b3, 0x83b3, 0x84b3, 0x85b3, 0x86b3, 0xf8c4, 0x87b3, 0x88b3, 0x89b3, 0x8ab3, 0x8bb3, 0x8cb3, 0xf9c4, 0x8db3, 0x8eb3, 0x8fb3, 0x90b3, 0x91b3, 0x92b3, 0x93b3, 0x94b3, 0x95b3, 0x96b3, 0x97b3, 0x98b3, 0x99b3, 0x9ab3, 0x9bb3, 0x9cb3, 0x9db3, 0x9eb3, 0x9fb3, 0xa0b3, 0xfac4, 0x41b4, 0x42b4, 0x43b4, 0x44b4, 0x45b4, 0x46b4, 0xfbc4, 0xfcc4, 0x47b4, 0x48b4, 0xfdc4, 0x49b4, 0x4ab4, 0x4bb4, 0xfec4, 0x4cb4, 0x4db4, 0x4eb4, 0x4fb4, 0x50b4, 0x51b4, 0x52b4, 0xa1c5, 0xa2c5, 0x53b4, 0xa3c5, 0x54b4, 0xa4c5, 0x55b4, 0x56b4, 0x57b4, 0x58b4, 0x59b4, 0x5ab4, 0xa5c5, 0x61b4, 0x62b4, 0x63b4, 0xa6c5, 0x64b4, 0x65b4, 0x66b4, 0xa7c5, 0x67b4, 0x68b4, 0x69b4, 0x6ab4, 0x6bb4, 0x6cb4, 0x6db4, 0xa8c5, 0x6eb4, 0x6fb4, 0x70b4, 0x71b4, 0x72b4, 0x73b4, 0x74b4, 0x75b4, 0x76b4, 0x77b4, 0x78b4, 0xa9c5, 0xaac5, 0x79b4, 0x7ab4, 0xabc5, 0x81b4, 0x82b4, 0x83b4, 0xacc5, 0x84b4, 0x85b4, 0x86b4, 0x87b4, 0x88b4, 0x89b4, 0x8ab4, 0xadc5, 0xaec5, 0x8bb4, 0x8cb4, 0x8db4, 0xafc5, 0x8eb4, 0x8fb4, 0x90b4, 0x91b4, 0x92b4, 0x93b4, 0x94b4, 0x95b4, 0x96b4, 0x97b4, 0x98b4, 0x99b4, 0x9ab4, 0x9bb4, 0x9cb4, 0x9db4, 0x9eb4, 0x9fb4, 0xa0b4, 0x41b5, 0x42b5, 0x43b5, 0x44b5, 0x45b5, 0x46b5, 0x47b5, 0x48b5, 0x49b5, 0x4ab5, 0x4bb5, 0x4cb5, 0x4db5, 0x4eb5, 0x4fb5, 0xb0c5, 0xb1c5, 0x50b5, 0x51b5, 0xb2c5, 0x52b5, 0x53b5, 0x54b5, 0xb3c5, 0x55b5, 0x56b5, 0x57b5, 0x58b5, 0x59b5, 0x5ab5, 0x61b5, 0xb4c5, 0xb5c5, 0x62b5, 0xb6c5, 0x63b5, 0xb7c5, 0x64b5, 0x65b5, 0x66b5, 0x67b5, 0x68b5, 0x69b5, 0xb8c5, 0xb9c5, 0x6ab5, 0x6bb5, 0xbac5, 0x6cb5, 0x6db5, 0x6eb5, 0xbbc5, 0xbcc5, 0x6fb5, 0x70b5, 0x71b5, 0x72b5, 0x73b5, 0x74b5, 0xbdc5, 0xbec5, 0x75b5, 0xbfc5, 0xc0c5, 0xc1c5, 0x76b5, 0x77b5, 0x78b5, 0x79b5, 0x7ab5, 0x81b5, 0xc2c5, 0xc3c5, 0x82b5, 0x83b5, 0xc4c5, 0x84b5, 0x85b5, 0x86b5, 0xc5c5, 0x87b5, 0x88b5, 0x89b5, 0x8ab5, 0x8bb5, 0x8cb5, 0x8db5, 0xc6c5, 0xc7c5, 0x8eb5, 0xc8c5, 0xc9c5, 0xcac5, 0x8fb5, 0x90b5, 0x91b5, 0x92b5, 0x93b5, 0x94b5, 0xcbc5, 0x95b5, 0x96b5, 0x97b5, 0x98b5, 0x99b5, 0x9ab5, 0x9bb5, 0x9cb5, 0x9db5, 0x9eb5, 0x9fb5, 0xa0b5, 0x41b6, 0x42b6, 0x43b6, 0x44b6, 0x45b6, 0x46b6, 0x47b6, 0x48b6, 0xccc5, 0x49b6, 0x4ab6, 0x4bb6, 0x4cb6, 0x4db6, 0x4eb6, 0x4fb6, 0x50b6, 0x51b6, 0x52b6, 0x53b6, 0x54b6, 0x55b6, 0x56b6, 0x57b6, 0x58b6, 0x59b6, 0x5ab6, 0x61b6, 0x62b6, 0x63b6, 0x64b6, 0x65b6, 0x66b6, 0x67b6, 0x68b6, 0x69b6, 0x6ab6, 0x6bb6, 0x6cb6, 0x6db6, 0x6eb6, 0x6fb6, 0x70b6, 0xcdc5, 0xcec5, 0x71b6, 0x72b6, 0xcfc5, 0x73b6, 0x74b6, 0x75b6, 0xd0c5, 0x76b6, 0xd1c5, 0x77b6, 0x78b6, 0x79b6, 0x7ab6, 0x81b6, 0xd2c5, 0xd3c5, 0x82b6, 0xd4c5, 0xd5c5, 0xd6c5, 0x83b6, 0x84b6, 0x85b6, 0x86b6, 0x87b6, 0x88b6, 0xd7c5, 0xd8c5, 0x89b6, 0x8ab6, 0xd9c5, 0x8bb6, 0x8cb6, 0x8db6, 0xdac5, 0x8eb6, 0x8fb6, 0x90b6, 0x91b6, 0x92b6, 0x93b6, 0x94b6, 0xdbc5, 0xdcc5, 0x95b6, 0xddc5, 0x96b6, 0xdec5, 0x97b6, 0x98b6, 0x99b6, 0x9ab6, 0x9bb6, 0x9cb6, 0xdfc5, 0x9db6, 0x9eb6, 0x9fb6, 0xe0c5, 0xa0b6, 0x41b7, 0x42b7, 0x43b7, 0x44b7, 0x45b7, 0x46b7, 0x47b7, 0x48b7, 0x49b7, 0x4ab7, 0x4bb7, 0x4cb7, 0x4db7, 0x4eb7, 0xe1c5, 0x4fb7, 0x50b7, 0x51b7, 0x52b7, 0x53b7, 0x54b7, 0x55b7, 0xe2c5, 0x56b7, 0x57b7, 0x58b7, 0xe3c5, 0x59b7, 0x5ab7, 0x61b7, 0x62b7, 0x63b7, 0x64b7, 0x65b7, 0x66b7, 0x67b7, 0x68b7, 0x69b7, 0x6ab7, 0x6bb7, 0x6cb7, 0x6db7, 0x6eb7, 0x6fb7, 0x70b7, 0x71b7, 0x72b7, 0x73b7, 0x74b7, 0x75b7, 0xe4c5, 0xe5c5, 0x76b7, 0x77b7, 0xe6c5, 0x78b7, 0x79b7, 0x7ab7, 0xe7c5, 0x81b7, 0x82b7, 0x83b7, 0x84b7, 0x85b7, 0x86b7, 0x87b7, 0xe8c5, 0xe9c5, 0x88b7, 0xeac5, 0x89b7, 0xebc5, 0x8ab7, 0x8bb7, 0x8cb7, 0x8db7, 0xecc5, 0x8eb7, 0xedc5, 0x8fb7, 0x90b7, 0x91b7, 0xeec5, 0x92b7, 0x93b7, 0x94b7, 0x95b7, 0x96b7, 0x97b7, 0x98b7, 0x99b7, 0x9ab7, 0x9bb7, 0x9cb7, 0x9db7, 0x9eb7, 0x9fb7, 0xa0b7, 0x41b8, 0x42b8, 0x43b8, 0x44b8, 0x45b8, 0x46b8, 0x47b8, 0x48b8, 0xefc5, 0x49b8, 0x4ab8, 0x4bb8, 0x4cb8, 0x4db8, 0x4eb8, 0x4fb8, 0x50b8, 0x51b8, 0x52b8, 0x53b8, 0x54b8, 0x55b8, 0x56b8, 0x57b8, 0x58b8, 0x59b8, 0x5ab8, 0x61b8, 0x62b8, 0x63b8, 0x64b8, 0x65b8, 0x66b8, 0x67b8, 0x68b8, 0x69b8, 0xf0c5, 0x6ab8, 0x6bb8, 0x6cb8, 0xf1c5, 0x6db8, 0x6eb8, 0x6fb8, 0x70b8, 0x71b8, 0x72b8, 0x73b8, 0x74b8, 0x75b8, 0x76b8, 0x77b8, 0x78b8, 0x79b8, 0x7ab8, 0xf2c5, 0x81b8, 0xf3c5, 0x82b8, 0x83b8, 0x84b8, 0x85b8, 0x86b8, 0x87b8, 0xf4c5, 0x88b8, 0x89b8, 0x8ab8, 0x8bb8, 0x8cb8, 0x8db8, 0x8eb8, 0x8fb8, 0x90b8, 0x91b8, 0x92b8, 0x93b8, 0x94b8, 0x95b8, 0x96b8, 0x97b8, 0x98b8, 0x99b8, 0x9ab8, 0x9bb8, 0x9cb8, 0x9db8, 0x9eb8, 0x9fb8, 0xa0b8, 0x41b9, 0x42b9, 0xf5c5, 0xf6c5, 0x43b9, 0x44b9, 0xf7c5, 0x45b9, 0x46b9, 0x47b9, 0xf8c5, 0x48b9, 0x49b9, 0x4ab9, 0x4bb9, 0x4cb9, 0x4db9, 0x4eb9, 0xf9c5, 0xfac5, 0x4fb9, 0xfbc5, 0x50b9, 0xfcc5, 0x51b9, 0x52b9, 0x53b9, 0x54b9, 0x55b9, 0x56b9, 0xfdc5, 0x57b9, 0x58b9, 0x59b9, 0x5ab9, 0x61b9, 0x62b9, 0x63b9, 0x64b9, 0x65b9, 0x66b9, 0x67b9, 0x68b9, 0x69b9, 0x6ab9, 0x6bb9, 0x6cb9, 0x6db9, 0x6eb9, 0x6fb9, 0xfec5, 0x70b9, 0x71b9, 0x72b9, 0x73b9, 0x74b9, 0x75b9, 0x76b9, 0xa1c6, 0x77b9, 0x78b9, 0x79b9, 0x7ab9, 0x81b9, 0x82b9, 0x83b9, 0x84b9, 0x85b9, 0x86b9, 0x87b9, 0x88b9, 0x89b9, 0x8ab9, 0x8bb9, 0x8cb9, 0x8db9, 0x8eb9, 0x8fb9, 0x90b9, 0x91b9, 0x92b9, 0x93b9, 0x94b9, 0x95b9, 0x96b9, 0x97b9, 0xa2c6, 0xa3c6, 0x98b9, 0x99b9, 0xa4c6, 0x9ab9, 0x9bb9, 0x9cb9, 0xa5c6, 0x9db9, 0x9eb9, 0x9fb9, 0xa0b9, 0x41ba, 0x42ba, 0x43ba, 0xa6c6, 0xa7c6, 0x44ba, 0x45ba, 0x46ba, 0xa8c6, 0x47ba, 0x48ba, 0x49ba, 0x4aba, 0x4bba, 0x4cba, 0xa9c6, 0x4dba, 0x4eba, 0x4fba, 0xaac6, 0x50ba, 0x51ba, 0x52ba, 0xabc6, 0x53ba, 0x54ba, 0x55ba, 0x56ba, 0x57ba, 0x58ba, 0x59ba, 0xacc6, 0x5aba, 0x61ba, 0x62ba, 0x63ba, 0xadc6, 0x64ba, 0x65ba, 0x66ba, 0x67ba, 0x68ba, 0x69ba, 0xaec6, 0xafc6, 0x6aba, 0x6bba, 0xb0c6, 0x6cba, 0x6dba, 0xb1c6, 0xb2c6, 0x6eba, 0xb3c6, 0x6fba, 0x70ba, 0x71ba, 0x72ba, 0x73ba, 0xb4c6, 0xb5c6, 0x74ba, 0xb6c6, 0x75ba, 0x76ba, 0x77ba, 0x78ba, 0x79ba, 0x7aba, 0x81ba, 0x82ba, 0xb7c6, 0x83ba, 0x84ba, 0x85ba, 0xb8c6, 0x86ba, 0x87ba, 0x88ba, 0xb9c6, 0x89ba, 0x8aba, 0x8bba, 0x8cba, 0x8dba, 0x8eba, 0x8fba, 0xbac6, 0xbbc6, 0x90ba, 0x91ba, 0x92ba, 0x93ba, 0x94ba, 0x95ba, 0x96ba, 0x97ba, 0x98ba, 0x99ba, 0xbcc6, 0xbdc6, 0x9aba, 0x9bba, 0xbec6, 0x9cba, 0x9dba, 0x9eba, 0xbfc6, 0x9fba, 0xa0ba, 0x41bb, 0x42bb, 0x43bb, 0x44bb, 0x45bb, 0xc0c6, 0xc1c6, 0x46bb, 0xc2c6, 0x47bb, 0xc3c6, 0x48bb, 0x49bb, 0x4abb, 0x4bbb, 0x4cbb, 0x4dbb, 0xc4c6, 0xc5c6, 0xc6c6, 0x4ebb, 0xc7c6, 0x4fbb, 0x50bb, 0x51bb, 0xc8c6, 0x52bb, 0xc9c6, 0x53bb, 0x54bb, 0x55bb, 0x56bb, 0x57bb, 0xcac6, 0xcbc6, 0x58bb, 0xccc6, 0xcdc6, 0xcec6, 0x59bb, 0x5abb, 0x61bb, 0xcfc6, 0x62bb, 0x63bb, 0xd0c6, 0xd1c6, 0x64bb, 0x65bb, 0xd2c6, 0x66bb, 0x67bb, 0x68bb, 0xd3c6, 0x69bb, 0x6abb, 0x6bbb, 0x6cbb, 0x6dbb, 0x6ebb, 0x6fbb, 0xd4c6, 0xd5c6, 0x70bb, 0xd6c6, 0xd7c6, 0xd8c6, 0x71bb, 0x72bb, 0x73bb, 0x74bb, 0x75bb, 0x76bb, 0xd9c6, 0xdac6, 0x77bb, 0x78bb, 0x79bb, 0x7abb, 0x81bb, 0x82bb, 0x83bb, 0x84bb, 0x85bb, 0x86bb, 0x87bb, 0x88bb, 0x89bb, 0x8abb, 0x8bbb, 0x8cbb, 0x8dbb, 0x8ebb, 0x8fbb, 0x90bb, 0x91bb, 0x92bb, 0x93bb, 0x94bb, 0x95bb, 0x96bb, 0x97bb, 0x98bb, 0x99bb, 0x9abb, 0x9bbb, 0x9cbb, 0x9dbb, 0x9ebb, 0x9fbb, 0xa0bb, 0x41bc, 0x42bc, 0x43bc, 0x44bc, 0x45bc, 0x46bc, 0x47bc, 0x48bc, 0x49bc, 0x4abc, 0x4bbc, 0x4cbc, 0x4dbc, 0x4ebc, 0x4fbc, 0x50bc, 0x51bc, 0x52bc, 0xdbc6, 0xdcc6, 0x53bc, 0x54bc, 0xddc6, 0x55bc, 0x56bc, 0x57bc, 0xdec6, 0x58bc, 0x59bc, 0x5abc, 0x61bc, 0x62bc, 0x63bc, 0x64bc, 0xdfc6, 0xe0c6, 0x65bc, 0xe1c6, 0xe2c6, 0xe3c6, 0x66bc, 0x67bc, 0x68bc, 0x69bc, 0x6abc, 0x6bbc, 0xe4c6, 0xe5c6, 0x6cbc, 0x6dbc, 0xe6c6, 0x6ebc, 0x6fbc, 0x70bc, 0xe7c6, 0x71bc, 0x72bc, 0x73bc, 0x74bc, 0x75bc, 0x76bc, 0x77bc, 0xe8c6, 0xe9c6, 0x78bc, 0xeac6, 0x79bc, 0xebc6, 0x7abc, 0x81bc, 0x82bc, 0x83bc, 0x84bc, 0x85bc, 0xecc6, 0x86bc, 0x87bc, 0x88bc, 0xedc6, 0x89bc, 0x8abc, 0x8bbc, 0xeec6, 0x8cbc, 0x8dbc, 0x8ebc, 0x8fbc, 0x90bc, 0x91bc, 0x92bc, 0xefc6, 0xf0c6, 0x93bc, 0x94bc, 0xf1c6, 0xf2c6, 0x95bc, 0x96bc, 0x97bc, 0x98bc, 0x99bc, 0x9abc, 0xf3c6, 0x9bbc, 0x9cbc, 0x9dbc, 0x9ebc, 0x9fbc, 0xa0bc, 0x41bd, 0xf4c6, 0x42bd, 0x43bd, 0x44bd, 0x45bd, 0x46bd, 0x47bd, 0x48bd, 0x49bd, 0xf5c6, 0x4abd, 0xf6c6, 0x4bbd, 0x4cbd, 0x4dbd, 0x4ebd, 0x4fbd, 0x50bd, 0x51bd, 0x52bd, 0xf7c6, 0xf8c6, 0x53bd, 0x54bd, 0xf9c6, 0x55bd, 0x56bd, 0x57bd, 0xfac6, 0x58bd, 0x59bd, 0x5abd, 0x61bd, 0x62bd, 0x63bd, 0x64bd, 0xfbc6, 0xfcc6, 0x65bd, 0xfdc6, 0x66bd, 0xfec6, 0x67bd, 0x68bd, 0x69bd, 0x6abd, 0x6bbd, 0x6cbd, 0xa1c7, 0x6dbd, 0x6ebd, 0x6fbd, 0x70bd, 0x71bd, 0x72bd, 0x73bd, 0x74bd, 0x75bd, 0x76bd, 0x77bd, 0x78bd, 0x79bd, 0x7abd, 0x81bd, 0x82bd, 0x83bd, 0x84bd, 0x85bd, 0x86bd, 0xa2c7, 0x87bd, 0x88bd, 0x89bd, 0x8abd, 0x8bbd, 0x8cbd, 0x8dbd, 0x8ebd, 0x8fbd, 0x90bd, 0x91bd, 0x92bd, 0x93bd, 0x94bd, 0x95bd, 0x96bd, 0x97bd, 0x98bd, 0x99bd, 0x9abd, 0x9bbd, 0x9cbd, 0x9dbd, 0x9ebd, 0x9fbd, 0xa0bd, 0x41be, 0x42be, 0x43be, 0x44be, 0x45be, 0x46be, 0x47be, 0x48be, 0xa3c7, 0x49be, 0x4abe, 0x4bbe, 0xa4c7, 0x4cbe, 0x4dbe, 0x4ebe, 0x4fbe, 0x50be, 0x51be, 0x52be, 0x53be, 0x54be, 0x55be, 0x56be, 0x57be, 0x58be, 0x59be, 0x5abe, 0x61be, 0x62be, 0x63be, 0x64be, 0x65be, 0x66be, 0x67be, 0x68be, 0xa5c7, 0x69be, 0x6abe, 0x6bbe, 0xa6c7, 0x6cbe, 0x6dbe, 0x6ebe, 0xa7c7, 0x6fbe, 0x70be, 0x71be, 0x72be, 0x73be, 0x74be, 0x75be, 0x76be, 0xa8c7, 0x77be, 0xa9c7, 0x78be, 0x79be, 0x7abe, 0x81be, 0x82be, 0x83be, 0x84be, 0x85be, 0xaac7, 0xabc7, 0x86be, 0x87be, 0xacc7, 0x88be, 0x89be, 0xadc7, 0xaec7, 0x8abe, 0xafc7, 0x8bbe, 0x8cbe, 0x8dbe, 0x8ebe, 0x8fbe, 0xb0c7, 0xb1c7, 0x90be, 0xb2c7, 0x91be, 0xb3c7, 0x92be, 0x93be, 0x94be, 0x95be, 0x96be, 0x97be, 0xb4c7, 0x98be, 0x99be, 0x9abe, 0x9bbe, 0x9cbe, 0x9dbe, 0x9ebe, 0x9fbe, 0xa0be, 0x41bf, 0x42bf, 0x43bf, 0x44bf, 0x45bf, 0x46bf, 0x47bf, 0x48bf, 0x49bf, 0x4abf, 0x4bbf, 0xb5c7, 0x4cbf, 0x4dbf, 0x4ebf, 0x4fbf, 0x50bf, 0x51bf, 0x52bf, 0x53bf, 0x54bf, 0x55bf, 0x56bf, 0x57bf, 0x58bf, 0x59bf, 0x5abf, 0x61bf, 0x62bf, 0x63bf, 0x64bf, 0x65bf, 0x66bf, 0x67bf, 0x68bf, 0x69bf, 0x6abf, 0x6bbf, 0x6cbf, 0x6dbf, 0x6ebf, 0x6fbf, 0x70bf, 0x71bf, 0x72bf, 0x73bf, 0xb6c7, 0x74bf, 0x75bf, 0x76bf, 0xb7c7, 0x77bf, 0x78bf, 0x79bf, 0xb8c7, 0x7abf, 0x81bf, 0x82bf, 0x83bf, 0x84bf, 0x85bf, 0x86bf, 0xb9c7, 0x87bf, 0x88bf, 0xbac7, 0x89bf, 0x8abf, 0x8bbf, 0x8cbf, 0x8dbf, 0x8ebf, 0x8fbf, 0x90bf, 0xbbc7, 0x91bf, 0x92bf, 0x93bf, 0xbcc7, 0x94bf, 0x95bf, 0x96bf, 0xbdc7, 0x97bf, 0x98bf, 0x99bf, 0x9abf, 0x9bbf, 0x9cbf, 0x9dbf, 0xbec7, 0x9ebf, 0x9fbf, 0xbfc7, 0xa0bf, 0xc0c7, 0x41c0, 0x42c0, 0x43c0, 0x44c0, 0x45c0, 0x46c0, 0xc1c7, 0x47c0, 0x48c0, 0x49c0, 0xc2c7, 0x4ac0, 0x4bc0, 0x4cc0, 0xc3c7, 0x4dc0, 0x4ec0, 0x4fc0, 0x50c0, 0x51c0, 0x52c0, 0x53c0, 0xc4c7, 0xc5c7, 0x54c0, 0xc6c7, 0x55c0, 0x56c0, 0x57c0, 0x58c0, 0x59c0, 0x5ac0, 0x61c0, 0x62c0, 0x63c0, 0x64c0, 0x65c0, 0x66c0, 0x67c0, 0x68c0, 0x69c0, 0x6ac0, 0x6bc0, 0x6cc0, 0x6dc0, 0x6ec0, 0x6fc0, 0x70c0, 0x71c0, 0x72c0, 0x73c0, 0x74c0, 0x75c0, 0x76c0, 0x77c0, 0x78c0, 0x79c0, 0x7ac0, 0x81c0, 0x82c0, 0x83c0, 0x84c0, 0xc7c7, 0xc8c7, 0x85c0, 0x86c0, 0xc9c7, 0x87c0, 0x88c0, 0x89c0, 0xcac7, 0x8ac0, 0x8bc0, 0x8cc0, 0x8dc0, 0x8ec0, 0x8fc0, 0x90c0, 0xcbc7, 0xccc7, 0x91c0, 0xcdc7, 0x92c0, 0xcec7, 0x93c0, 0x94c0, 0x95c0, 0x96c0, 0x97c0, 0x98c0, 0xcfc7, 0xd0c7, 0x99c0, 0x9ac0, 0xd1c7, 0x9bc0, 0x9cc0, 0x9dc0, 0xd2c7, 0x9ec0, 0x9fc0, 0xa0c0, 0x41c1, 0xd3c7, 0x42c1, 0x43c1, 0xd4c7, 0xd5c7, 0x44c1, 0xd6c7, 0x45c1, 0xd7c7, 0x46c1, 0x47c1, 0x48c1, 0x49c1, 0x4ac1, 0x4bc1, 0xd8c7, 0xd9c7, 0x4cc1, 0x4dc1, 0xdac7, 0x4ec1, 0x4fc1, 0x50c1, 0xdbc7, 0x51c1, 0x52c1, 0x53c1, 0x54c1, 0x55c1, 0x56c1, 0x57c1, 0xdcc7, 0xddc7, 0x58c1, 0xdec7, 0xdfc7, 0xe0c7, 0x59c1, 0x5ac1, 0x61c1, 0x62c1, 0x63c1, 0x64c1, 0xe1c7, 0x65c1, 0x66c1, 0x67c1, 0x68c1, 0x69c1, 0x6ac1, 0x6bc1, 0x6cc1, 0x6dc1, 0x6ec1, 0x6fc1, 0x70c1, 0x71c1, 0x72c1, 0x73c1, 0x74c1, 0x75c1, 0x76c1, 0x77c1, 0x78c1, 0xe2c7, 0x79c1, 0x7ac1, 0x81c1, 0x82c1, 0x83c1, 0x84c1, 0x85c1, 0x86c1, 0x87c1, 0x88c1, 0x89c1, 0x8ac1, 0x8bc1, 0x8cc1, 0x8dc1, 0x8ec1, 0x8fc1, 0x90c1, 0x91c1, 0x92c1, 0x93c1, 0x94c1, 0x95c1, 0x96c1, 0x97c1, 0x98c1, 0x99c1, 0x9ac1, 0x9bc1, 0x9cc1, 0x9dc1, 0x9ec1, 0x9fc1, 0xa0c1, 0xe3c7, 0xe4c7, 0x41c2, 0x42c2, 0xe5c7, 0x43c2, 0x44c2, 0x45c2, 0xe6c7, 0x46c2, 0xe7c7, 0x47c2, 0x48c2, 0x49c2, 0x4ac2, 0x4bc2, 0xe8c7, 0xe9c7, 0x4cc2, 0xeac7, 0x4dc2, 0xebc7, 0x4ec2, 0x4fc2, 0x50c2, 0x51c2, 0x52c2, 0x53c2, 0xecc7, 0xedc7, 0x54c2, 0x55c2, 0xeec7, 0x56c2, 0x57c2, 0x58c2, 0xefc7, 0x59c2, 0x5ac2, 0x61c2, 0x62c2, 0x63c2, 0x64c2, 0x65c2, 0xf0c7, 0xf1c7, 0x66c2, 0xf2c7, 0x67c2, 0xf3c7, 0x68c2, 0x69c2, 0x6ac2, 0x6bc2, 0x6cc2, 0x6dc2, 0xf4c7, 0xf5c7, 0x6ec2, 0x6fc2, 0xf6c7, 0x70c2, 0x71c2, 0x72c2, 0xf7c7, 0x73c2, 0x74c2, 0x75c2, 0x76c2, 0x77c2, 0x78c2, 0x79c2, 0xf8c7, 0xf9c7, 0x7ac2, 0xfac7, 0xfbc7, 0xfcc7, 0x81c2, 0x82c2, 0x83c2, 0x84c2, 0x85c2, 0x86c2, 0xfdc7, 0x87c2, 0x88c2, 0x89c2, 0xfec7, 0x8ac2, 0x8bc2, 0x8cc2, 0xa1c8, 0x8dc2, 0x8ec2, 0x8fc2, 0x90c2, 0x91c2, 0x92c2, 0x93c2, 0x94c2, 0xa2c8, 0x95c2, 0x96c2, 0x97c2, 0x98c2, 0x99c2, 0x9ac2, 0x9bc2, 0x9cc2, 0x9dc2, 0x9ec2, 0xa3c8, 0xa4c8, 0x9fc2, 0xa0c2, 0xa5c8, 0x41c3, 0x42c3, 0x43c3, 0xa6c8, 0x44c3, 0x45c3, 0x46c3, 0x47c3, 0xa7c8, 0x48c3, 0x49c3, 0xa8c8, 0xa9c8, 0x4ac3, 0xaac8, 0x4bc3, 0xabc8, 0x4cc3, 0x4dc3, 0x4ec3, 0xacc8, 0x4fc3, 0x50c3, 0xadc8, 0xaec8, 0x51c3, 0x52c3, 0xafc8, 0x53c3, 0x54c3, 0x55c3, 0xb0c8, 0x56c3, 0x57c3, 0x58c3, 0x59c3, 0x5ac3, 0x61c3, 0x62c3, 0x63c3, 0x64c3, 0x65c3, 0xb1c8, 0x66c3, 0xb2c8, 0x67c3, 0x68c3, 0x69c3, 0x6ac3, 0x6bc3, 0x6cc3, 0xb3c8, 0xb4c8, 0x6dc3, 0x6ec3, 0xb5c8, 0x6fc3, 0x70c3, 0x71c3, 0x72c3, 0x73c3, 0x74c3, 0x75c3, 0x76c3, 0x77c3, 0x78c3, 0x79c3, 0x7ac3, 0x81c3, 0x82c3, 0xb6c8, 0x83c3, 0xb7c8, 0x84c3, 0x85c3, 0x86c3, 0x87c3, 0x88c3, 0x89c3, 0xb8c8, 0xb9c8, 0x8ac3, 0x8bc3, 0xbac8, 0x8cc3, 0x8dc3, 0x8ec3, 0xbbc8, 0x8fc3, 0x90c3, 0x91c3, 0x92c3, 0x93c3, 0x94c3, 0x95c3, 0x96c3, 0xbcc8, 0x97c3, 0xbdc8, 0x98c3, 0xbec8, 0x99c3, 0x9ac3, 0x9bc3, 0x9cc3, 0x9dc3, 0x9ec3, 0xbfc8, 0x9fc3, 0xa0c3, 0x41c4, 0xc0c8, 0x42c4, 0x43c4, 0x44c4, 0xc1c8, 0x45c4, 0x46c4, 0x47c4, 0x48c4, 0x49c4, 0x4ac4, 0x4bc4, 0x4cc4, 0xc2c8, 0x4dc4, 0xc3c8, 0x4ec4, 0x4fc4, 0x50c4, 0x51c4, 0x52c4, 0x53c4, 0x54c4, 0x55c4, 0xc4c8, 0xc5c8, 0x56c4, 0x57c4, 0xc6c8, 0x58c4, 0x59c4, 0x5ac4, 0xc7c8, 0x61c4, 0x62c4, 0x63c4, 0x64c4, 0xc8c8, 0x65c4, 0x66c4, 0xc9c8, 0x67c4, 0x68c4, 0xcac8, 0x69c4, 0xcbc8, 0x6ac4, 0x6bc4, 0x6cc4, 0x6dc4, 0x6ec4, 0x6fc4, 0xccc8, 0x70c4, 0x71c4, 0x72c4, 0xcdc8, 0x73c4, 0x74c4, 0x75c4, 0xcec8, 0x76c4, 0x77c4, 0x78c4, 0x79c4, 0x7ac4, 0x81c4, 0x82c4, 0xcfc8, 0x83c4, 0x84c4, 0x85c4, 0x86c4, 0xd0c8, 0x87c4, 0x88c4, 0x89c4, 0x8ac4, 0x8bc4, 0x8cc4, 0xd1c8, 0xd2c8, 0x8dc4, 0x8ec4, 0xd3c8, 0x8fc4, 0x90c4, 0x91c4, 0xd4c8, 0x92c4, 0x93c4, 0x94c4, 0x95c4, 0x96c4, 0x97c4, 0x98c4, 0x99c4, 0x9ac4, 0x9bc4, 0x9cc4, 0x9dc4, 0xd5c8, 0x9ec4, 0x9fc4, 0xa0c4, 0x41c5, 0x42c5, 0x43c5, 0xd6c8, 0xd7c8, 0x44c5, 0x45c5, 0xd8c8, 0x46c5, 0x47c5, 0x48c5, 0xd9c8, 0x49c5, 0x4ac5, 0x4bc5, 0x4cc5, 0x4dc5, 0x4ec5, 0x4fc5, 0xdac8, 0xdbc8, 0x50c5, 0xdcc8, 0x51c5, 0xddc8, 0x52c5, 0x53c5, 0x54c5, 0x55c5, 0x56c5, 0x57c5, 0xdec8, 0xdfc8, 0x58c5, 0x59c5, 0xe0c8, 0x5ac5, 0x61c5, 0x62c5, 0xe1c8, 0x63c5, 0x64c5, 0x65c5, 0x66c5, 0x67c5, 0x68c5, 0x69c5, 0xe2c8, 0x6ac5, 0x6bc5, 0xe3c8, 0x6cc5, 0xe4c8, 0x6dc5, 0x6ec5, 0x6fc5, 0x70c5, 0x71c5, 0x72c5, 0xe5c8, 0xe6c8, 0x73c5, 0x74c5, 0xe7c8, 0x75c5, 0xe8c8, 0xe9c8, 0xeac8, 0xebc8, 0x76c5, 0x77c5, 0x78c5, 0x79c5, 0x7ac5, 0x81c5, 0xecc8, 0xedc8, 0x82c5, 0xeec8, 0x83c5, 0xefc8, 0x84c5, 0x85c5, 0x86c5, 0xf0c8, 0x87c5, 0x88c5, 0xf1c8, 0x89c5, 0x8ac5, 0x8bc5, 0xf2c8, 0x8cc5, 0x8dc5, 0x8ec5, 0xf3c8, 0x8fc5, 0x90c5, 0x91c5, 0x92c5, 0x93c5, 0x94c5, 0x95c5, 0xf4c8, 0xf5c8, 0x96c5, 0x97c5, 0x98c5, 0xf6c8, 0x99c5, 0x9ac5, 0x9bc5, 0x9cc5, 0x9dc5, 0x9ec5, 0xf7c8, 0xf8c8, 0x9fc5, 0xa0c5, 0xf9c8, 0x41c6, 0x42c6, 0x43c6, 0xfac8, 0x44c6, 0x45c6, 0x46c6, 0x47c6, 0x48c6, 0x49c6, 0x4ac6, 0xfbc8, 0xfcc8, 0x4bc6, 0xfdc8, 0x4cc6, 0xfec8, 0x4dc6, 0x4ec6, 0x4fc6, 0x50c6, 0x51c6, 0x52c6 }; const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0xf900[ 268 ] = { 0xd0cb, 0xd6cb, 0xe7cb, 0xcfcd, 0xe8cd, 0xadce, 0xfbcf, 0xa2d0, 0xb8d0, 0xd0d0, 0xddd0, 0xd4d1, 0xd5d1, 0xd8d1, 0xdbd1, 0xdcd1, 0xddd1, 0xded1, 0xdfd1, 0xe0d1, 0xe2d1, 0xe3d1, 0xe4d1, 0xe5d1, 0xe6d1, 0xe8d1, 0xe9d1, 0xead1, 0xebd1, 0xedd1, 0xefd1, 0xf0d1, 0xf2d1, 0xf6d1, 0xfad1, 0xfcd1, 0xfdd1, 0xfed1, 0xa2d2, 0xa3d2, 0xa7d2, 0xa8d2, 0xa9d2, 0xaad2, 0xabd2, 0xadd2, 0xb2d2, 0xbed2, 0xc2d2, 0xc3d2, 0xc4d2, 0xc6d2, 0xc7d2, 0xc8d2, 0xc9d2, 0xcad2, 0xcbd2, 0xcdd2, 0xced2, 0xcfd2, 0xd0d2, 0xd1d2, 0xd2d2, 0xd3d2, 0xd4d2, 0xd5d2, 0xd6d2, 0xd7d2, 0xd9d2, 0xdad2, 0xded2, 0xdfd2, 0xe1d2, 0xe2d2, 0xe4d2, 0xe5d2, 0xe6d2, 0xe7d2, 0xe8d2, 0xe9d2, 0xead2, 0xebd2, 0xf0d2, 0xf1d2, 0xf2d2, 0xf3d2, 0xf4d2, 0xf5d2, 0xf7d2, 0xf8d2, 0xe6d4, 0xfcd4, 0xa5d5, 0xabd5, 0xaed5, 0xb8d6, 0xcdd6, 0xcbd7, 0xe4d7, 0xc5db, 0xe4db, 0xa5dc, 0xa5dd, 0xd5dd, 0xf4dd, 0xfcde, 0xfede, 0xb3df, 0xe1df, 0xe8df, 0xf1e0, 0xade1, 0xede1, 0xf5e3, 0xa1e4, 0xa9e4, 0xaee5, 0xb1e5, 0xb2e5, 0xb9e5, 0xbbe5, 0xbce5, 0xc4e5, 0xcee5, 0xd0e5, 0xd2e5, 0xd6e5, 0xfae5, 0xfbe5, 0xfce5, 0xfee5, 0xa1e6, 0xa4e6, 0xa7e6, 0xade6, 0xafe6, 0xb0e6, 0xb1e6, 0xb3e6, 0xb7e6, 0xb8e6, 0xbce6, 0xc4e6, 0xc6e6, 0xc7e6, 0xcae6, 0xd2e6, 0xd6e6, 0xd9e6, 0xdce6, 0xdfe6, 0xe1e6, 0xe4e6, 0xe5e6, 0xe6e6, 0xe8e6, 0xeae6, 0xebe6, 0xece6, 0xefe6, 0xf1e6, 0xf2e6, 0xf5e6, 0xf6e6, 0xf7e6, 0xf9e6, 0xa1e7, 0xa6e7, 0xa9e7, 0xaae7, 0xace7, 0xade7, 0xb0e7, 0xbfe7, 0xc1e7, 0xc6e7, 0xc7e7, 0xcbe7, 0xcde7, 0xcfe7, 0xd0e7, 0xd3e7, 0xdfe7, 0xe4e7, 0xe6e7, 0xf7e7, 0xe7e8, 0xe8e8, 0xf0e8, 0xf1e8, 0xf7e8, 0xf9e8, 0xfbe8, 0xfee8, 0xa7e9, 0xace9, 0xcce9, 0xf7e9, 0xc1ea, 0xe5ea, 0xf4ea, 0xf7ea, 0xfcea, 0xfeea, 0xa4eb, 0xa7eb, 0xa9eb, 0xaaeb, 0xbaeb, 0xbbeb, 0xbdeb, 0xc1eb, 0xc2eb, 0xc6eb, 0xc7eb, 0xcceb, 0xcfeb, 0xd0eb, 0xd1eb, 0xd2eb, 0xd8eb, 0xa6ec, 0xa7ec, 0xaaec, 0xafec, 0xb0ec, 0xb1ec, 0xb2ec, 0xb5ec, 0xb8ec, 0xbaec, 0xc0ec, 0xc1ec, 0xc5ec, 0xc6ec, 0xc9ec, 0xcaec, 0xd5ec, 0xddec, 0xdeec, 0xe1ec, 0xe4ec, 0xe7ec, 0xe8ec, 0xf7ec, 0xf8ec, 0xfaec, 0xa1ed, 0xa2ed, 0xa3ed, 0xeeed, 0xdbee, 0xbdf2, 0xfaf2, 0xb1f3, 0xa7f4, 0xeef4, 0xf4f6, 0xf6f6, 0xb8f7, 0xc8f7, 0xd3f7, 0xdbf8, 0xf0f8, 0xa1fa, 0xa2fa, 0xe6fa, 0xa9fc }; const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0xff00[ 256 ] = { 0x001a, 0xa1a3, 0xa2a3, 0xa3a3, 0xa4a3, 0xa5a3, 0xa6a3, 0xa7a3, 0xa8a3, 0xa9a3, 0xaaa3, 0xaba3, 0xaca3, 0xada3, 0xaea3, 0xafa3, 0xb0a3, 0xb1a3, 0xb2a3, 0xb3a3, 0xb4a3, 0xb5a3, 0xb6a3, 0xb7a3, 0xb8a3, 0xb9a3, 0xbaa3, 0xbba3, 0xbca3, 0xbda3, 0xbea3, 0xbfa3, 0xc0a3, 0xc1a3, 0xc2a3, 0xc3a3, 0xc4a3, 0xc5a3, 0xc6a3, 0xc7a3, 0xc8a3, 0xc9a3, 0xcaa3, 0xcba3, 0xcca3, 0xcda3, 0xcea3, 0xcfa3, 0xd0a3, 0xd1a3, 0xd2a3, 0xd3a3, 0xd4a3, 0xd5a3, 0xd6a3, 0xd7a3, 0xd8a3, 0xd9a3, 0xdaa3, 0xdba3, 0xaca1, 0xdda3, 0xdea3, 0xdfa3, 0xe0a3, 0xe1a3, 0xe2a3, 0xe3a3, 0xe4a3, 0xe5a3, 0xe6a3, 0xe7a3, 0xe8a3, 0xe9a3, 0xeaa3, 0xeba3, 0xeca3, 0xeda3, 0xeea3, 0xefa3, 0xf0a3, 0xf1a3, 0xf2a3, 0xf3a3, 0xf4a3, 0xf5a3, 0xf6a3, 0xf7a3, 0xf8a3, 0xf9a3, 0xfaa3, 0xfba3, 0xfca3, 0xfda3, 0xa6a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcba1, 0xcca1, 0xfea1, 0xfea3, 0x001a, 0xcda1, 0xdca3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; /* Determines the size of a byte stream character from an Unicode character * Adds the size to the byte stream character size value * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_949_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_949_unicode_character_size_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream character size.", function ); return( -1 ); } if( unicode_character < 0x80 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x02c0 ) && ( unicode_character < 0x0480 ) ) { unicode_character -= 0x02c0; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x02c0[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fc0 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xac00 ) && ( unicode_character < 0xd7a4 ) ) { unicode_character -= 0xac00; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0xac00[ unicode_character ]; } else if( ( unicode_character >= 0xf900 ) && ( unicode_character < 0xfa0c ) ) { unicode_character -= 0xf900; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0xf900[ unicode_character ]; } else if( ( unicode_character >= 0xff00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xff00; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0xff00[ unicode_character ]; } byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_character_size += 2; } else { *byte_stream_character_size += 1; } return( 1 ); } /* Copies an Unicode character from a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_949_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_949_copy_from_byte_stream"; uint8_t additional_character = 0; uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } byte_stream_character = byte_stream[ *byte_stream_index ]; if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) { *byte_stream_index += 1; additional_character = byte_stream[ *byte_stream_index ]; if( ( byte_stream_character >= 0x81 ) && ( byte_stream_character <= 0xa1 ) ) { if( additional_character >= 0x40 ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0x81: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8140[ additional_character ]; break; case 0x82: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8240[ additional_character ]; break; case 0x83: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8340[ additional_character ]; break; case 0x84: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8440[ additional_character ]; break; case 0x85: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8540[ additional_character ]; break; case 0x86: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8640[ additional_character ]; break; case 0x87: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8740[ additional_character ]; break; case 0x88: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8840[ additional_character ]; break; case 0x89: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8940[ additional_character ]; break; case 0x8a: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8a40[ additional_character ]; break; case 0x8b: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8b40[ additional_character ]; break; case 0x8c: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8c40[ additional_character ]; break; case 0x8d: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8d40[ additional_character ]; break; case 0x8e: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8e40[ additional_character ]; break; case 0x8f: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8f40[ additional_character ]; break; case 0x90: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9040[ additional_character ]; break; case 0x91: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9140[ additional_character ]; break; case 0x92: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9240[ additional_character ]; break; case 0x93: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9340[ additional_character ]; break; case 0x94: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9440[ additional_character ]; break; case 0x95: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9540[ additional_character ]; break; case 0x96: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9640[ additional_character ]; break; case 0x97: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9740[ additional_character ]; break; case 0x98: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9840[ additional_character ]; break; case 0x99: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9940[ additional_character ]; break; case 0x9a: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9a40[ additional_character ]; break; case 0x9b: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9b40[ additional_character ]; break; case 0x9c: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9c40[ additional_character ]; break; case 0x9d: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9d40[ additional_character ]; break; case 0x9e: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9e40[ additional_character ]; break; case 0x9f: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9f40[ additional_character ]; break; case 0xa0: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa040[ additional_character ]; break; case 0xa1: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa140[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa2 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xe8 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa240[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xa3 ) && ( byte_stream_character <= 0xa4 ) ) { if( additional_character >= 0x40 ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xa3: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa340[ additional_character ]; break; case 0xa4: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa440[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa5 ) { if( additional_character >= 0x40 ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa540[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa6 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xe8 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa640[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa7 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xf0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa740[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xa8 ) && ( byte_stream_character <= 0xa9 ) ) { if( additional_character >= 0x40 ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xa8: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa840[ additional_character ]; break; case 0xa9: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa940[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xaa ) && ( byte_stream_character <= 0xab ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xaa: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaa40[ additional_character ]; break; case 0xab: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xab40[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xac ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xc8 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xac40[ additional_character ]; } else if( ( additional_character >= 0xd0 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0xd0; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xacd0[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xad ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xad40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0xcdc5; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xae ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xae40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0xce2b; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xaf ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaf40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0xce99; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xb0 ) && ( byte_stream_character <= 0xc5 ) ) { if( additional_character >= 0x40 ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xb0: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb040[ additional_character ]; break; case 0xb1: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb140[ additional_character ]; break; case 0xb2: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb240[ additional_character ]; break; case 0xb3: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb340[ additional_character ]; break; case 0xb4: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb440[ additional_character ]; break; case 0xb5: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb540[ additional_character ]; break; case 0xb6: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb640[ additional_character ]; break; case 0xb7: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb740[ additional_character ]; break; case 0xb8: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb840[ additional_character ]; break; case 0xb9: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb940[ additional_character ]; break; case 0xba: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xba40[ additional_character ]; break; case 0xbb: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbb40[ additional_character ]; break; case 0xbc: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbc40[ additional_character ]; break; case 0xbd: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbd40[ additional_character ]; break; case 0xbe: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbe40[ additional_character ]; break; case 0xbf: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbf40[ additional_character ]; break; case 0xc0: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc040[ additional_character ]; break; case 0xc1: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc140[ additional_character ]; break; case 0xc2: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc240[ additional_character ]; break; case 0xc3: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc340[ additional_character ]; break; case 0xc4: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc440[ additional_character ]; break; case 0xc5: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc540[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xc6 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x58 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc640[ additional_character ]; } else if( additional_character >= 0xa0 ) { additional_character -= 0xa0; *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc6a0[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xc7 ) && ( byte_stream_character <= 0xc8 ) ) { if( additional_character >= 0xa0 ) { additional_character -= 0xa0; switch( byte_stream_character ) { case 0xc7: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc7a0[ additional_character ]; break; case 0xc8: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc8a0[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xca ) && ( byte_stream_character <= 0xfd ) ) { if( additional_character >= 0xa0 ) { additional_character -= 0xa0; switch( byte_stream_character ) { case 0xca: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcaa0[ additional_character ]; break; case 0xcb: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcba0[ additional_character ]; break; case 0xcc: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcca0[ additional_character ]; break; case 0xcd: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcda0[ additional_character ]; break; case 0xce: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcea0[ additional_character ]; break; case 0xcf: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcfa0[ additional_character ]; break; case 0xd0: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd0a0[ additional_character ]; break; case 0xd1: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd1a0[ additional_character ]; break; case 0xd2: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd2a0[ additional_character ]; break; case 0xd3: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd3a0[ additional_character ]; break; case 0xd4: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd4a0[ additional_character ]; break; case 0xd5: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd5a0[ additional_character ]; break; case 0xd6: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd6a0[ additional_character ]; break; case 0xd7: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd7a0[ additional_character ]; break; case 0xd8: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd8a0[ additional_character ]; break; case 0xd9: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd9a0[ additional_character ]; break; case 0xda: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdaa0[ additional_character ]; break; case 0xdb: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdba0[ additional_character ]; break; case 0xdc: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdca0[ additional_character ]; break; case 0xdd: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdda0[ additional_character ]; break; case 0xde: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdea0[ additional_character ]; break; case 0xdf: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdfa0[ additional_character ]; break; case 0xe0: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe0a0[ additional_character ]; break; case 0xe1: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe1a0[ additional_character ]; break; case 0xe2: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe2a0[ additional_character ]; break; case 0xe3: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe3a0[ additional_character ]; break; case 0xe4: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe4a0[ additional_character ]; break; case 0xe5: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe5a0[ additional_character ]; break; case 0xe6: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe6a0[ additional_character ]; break; case 0xe7: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe7a0[ additional_character ]; break; case 0xe8: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe8a0[ additional_character ]; break; case 0xe9: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe9a0[ additional_character ]; break; case 0xea: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeaa0[ additional_character ]; break; case 0xeb: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeba0[ additional_character ]; break; case 0xec: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeca0[ additional_character ]; break; case 0xed: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeda0[ additional_character ]; break; case 0xee: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeea0[ additional_character ]; break; case 0xef: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xefa0[ additional_character ]; break; case 0xf0: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf0a0[ additional_character ]; break; case 0xf1: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf1a0[ additional_character ]; break; case 0xf2: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf2a0[ additional_character ]; break; case 0xf3: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf3a0[ additional_character ]; break; case 0xf4: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf4a0[ additional_character ]; break; case 0xf5: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf5a0[ additional_character ]; break; case 0xf6: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf6a0[ additional_character ]; break; case 0xf7: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf7a0[ additional_character ]; break; case 0xf8: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf8a0[ additional_character ]; break; case 0xf9: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf9a0[ additional_character ]; break; case 0xfa: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfaa0[ additional_character ]; break; case 0xfb: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfba0[ additional_character ]; break; case 0xfc: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfca0[ additional_character ]; break; case 0xfd: *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfda0[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } *byte_stream_index += 1; return( 1 ); } /* Copies an Unicode character to a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_949_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_949_copy_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( unicode_character < 0x80 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x02c0 ) && ( unicode_character < 0x0480 ) ) { unicode_character -= 0x02c0; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x02c0[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fc0 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xac00 ) && ( unicode_character < 0xd7a4 ) ) { unicode_character -= 0xac00; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0xac00[ unicode_character ]; } else if( ( unicode_character >= 0xf900 ) && ( unicode_character < 0xfa0c ) ) { unicode_character -= 0xf900; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0xf900[ unicode_character ]; } else if( ( unicode_character >= 0xff00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xff00; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0xff00[ unicode_character ]; } byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_index += 1; byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); } *byte_stream_index += 1; return( 1 ); } libfsapfs-20190210/libuna/libuna_codepage_iso_8859_6.h0000664000175000017500000000247513430101233024341 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-6 codepage (Arabic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_6_H ) #define _LIBUNA_CODEPAGE_ISO_8859_6_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_6_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_6_unicode_to_byte_stream_base_0x0618[ 64 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_6_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1256.h0000664000175000017500000000322713430101233024770 0ustar00lordyestalordyesta00000000000000/* * Windows 1256 codepage (Arabic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1256_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1256_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ 64 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ 32 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1256_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_6.c0000664000175000017500000000475613430101233024340 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-6 codepage (Arabic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_6.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-6 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_6_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0xfffd, 0xfffd, 0xfffd, 0x00a4, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x060c, 0x00ad, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x061b, 0xfffd, 0xfffd, 0xfffd, 0x061f, 0xfffd, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, 0x0628, 0x0629, 0x062a, 0x062b, 0x062c, 0x062d, 0x062e, 0x062f, 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, 0x0638, 0x0639, 0x063a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x0640, 0x0641, 0x0642, 0x0643, 0x0644, 0x0645, 0x0646, 0x0647, 0x0648, 0x0649, 0x064a, 0x064b, 0x064c, 0x064d, 0x064e, 0x064f, 0x0650, 0x0651, 0x0652, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; /* Unicode to ASCII character lookup table for ISO 8859-6 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_6_unicode_to_byte_stream_base_0x0618[ 64 ] = { 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0xbf, 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_windows_874.h0000664000175000017500000000265713430101233024723 0ustar00lordyestalordyesta00000000000000/* * Windows 874 codepage (Thai) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_874_H ) #define _LIBUNA_CODEPAGE_WINDOWS_874_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ 8 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_874_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1251.c0000664000175000017500000000672313430101233024762 0ustar00lordyestalordyesta00000000000000/* * Windows 1251 codepage (Cyrillic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1251.h" /* Extended ASCII to Unicode character lookup table for Windows 1251 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x0402, 0x0403, 0x201a, 0x0453, 0x201e, 0x2026, 0x2020, 0x2021, 0x20ac, 0x2030, 0x0409, 0x2039, 0x040a, 0x040c, 0x040b, 0x040f, 0x0452, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0xfffd, 0x2122, 0x0459, 0x203a, 0x045a, 0x045c, 0x045b, 0x045f, 0x00a0, 0x040e, 0x045e, 0x0408, 0x00a4, 0x0490, 0x00a6, 0x00a7, 0x0401, 0x00a9, 0x0404, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x0407, 0x00b0, 0x00b1, 0x0406, 0x0456, 0x0491, 0x00b5, 0x00b6, 0x00b7, 0x0451, 0x2116, 0x0454, 0x00bb, 0x0458, 0x0405, 0x0455, 0x0457, 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f }; /* Unicode to ASCII character lookup table for Windows 1251 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ 32 ] = { 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0xa6, 0xa7, 0x1a, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, 0xb0, 0xb1, 0x1a, 0x1a, 0x1a, 0xb5, 0xb6, 0xb7, 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ 96 ] = { 0x1a, 0xa8, 0x80, 0x81, 0xaa, 0xbd, 0xb2, 0xaf, 0xa3, 0x8a, 0x8c, 0x8e, 0x8d, 0x1a, 0xa1, 0x8f, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, 0x1a, 0xb8, 0x90, 0x83, 0xba, 0xbe, 0xb3, 0xbf, 0xbc, 0x9a, 0x9c, 0x9e, 0x9d, 0x1a, 0xa2, 0x9f }; const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_windows_1256.c0000664000175000017500000000713513430101233024765 0ustar00lordyestalordyesta00000000000000/* * Windows 1256 codepage (Arabic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1256.h" /* Extended ASCII to Unicode character lookup table for Windows 1256 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x20ac, 0x067e, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, 0x02c6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, 0x06af, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x06a9, 0x2122, 0x0691, 0x203a, 0x0153, 0x200c, 0x200d, 0x06ba, 0x00a0, 0x060c, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x06be, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x00b9, 0x061b, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x061f, 0x06c1, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, 0x0628, 0x0629, 0x062a, 0x062b, 0x062c, 0x062d, 0x062e, 0x062f, 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x00d7, 0x0637, 0x0638, 0x0639, 0x063a, 0x0640, 0x0641, 0x0642, 0x0643, 0x00e0, 0x0644, 0x00e2, 0x0645, 0x0646, 0x0647, 0x0648, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0649, 0x064a, 0x00ee, 0x00ef, 0x064b, 0x064c, 0x064d, 0x064e, 0x00f4, 0x064f, 0x0650, 0x00f7, 0x0651, 0x00f9, 0x0652, 0x00fb, 0x00fc, 0x200e, 0x200f, 0x06d2 }; /* Unicode to ASCII character lookup table for Windows 1256 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ 32 ] = { 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a }; const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ 32 ] = { 0xe0, 0x1a, 0xe2, 0x1a, 0x1a, 0x1a, 0x1a, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0x1a, 0x1a, 0xee, 0xef, 0x1a, 0x1a, 0x1a, 0x1a, 0xf4, 0x1a, 0x1a, 0xf7, 0x1a, 0xf9, 0x1a, 0xfb, 0xfc, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ 64 ] = { 0x1a, 0x1a, 0x1a, 0xba, 0x1a, 0x1a, 0x1a, 0xbf, 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd8, 0xd9, 0xda, 0xdb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xdc, 0xdd, 0xde, 0xdf, 0xe1, 0xe3, 0xe4, 0xe5, 0xe6, 0xec, 0xed, 0xf0, 0xf1, 0xf2, 0xf3, 0xf5, 0xf6, 0xf8, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ 32 ] = { 0x1a, 0x1a, 0x1a, 0x1a, 0x9d, 0x9e, 0xfd, 0xfe, 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; libfsapfs-20190210/libuna/libuna_base16_stream.h0000664000175000017500000000510113430101233023417 0ustar00lordyestalordyesta00000000000000/* * Base16 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_BASE16_STREAM_H ) #define _LIBUNA_BASE16_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif int libuna_base16_character_copy_from_base16_stream( uint32_t *base16_character, const uint8_t *base16_stream, uint32_t base16_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base16_stream_size_to_byte_stream( const uint8_t *base16_stream, size_t base16_stream_size, size_t *byte_stream_size, uint32_t base16_variant, uint8_t flags, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base16_stream_copy_to_byte_stream( const uint8_t *base16_stream, size_t base16_stream_size, uint8_t *byte_stream, size_t byte_stream_size, uint32_t base16_variant, uint8_t flags, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base16_stream_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, size_t *base16_stream_size, uint32_t base16_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base16_stream_copy_from_byte_stream( uint8_t *base16_stream, size_t base16_stream_size, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base16_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base16_stream_with_index_copy_from_byte_stream( uint8_t *base16_stream, size_t base16_stream_size, size_t *base16_stream_index, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base16_variant, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_BASE16_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_2.h0000664000175000017500000000304113430101233024323 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-2 codepage (Central European) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_2_H ) #define _LIBUNA_CODEPAGE_ISO_8859_2_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_2_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x00a0[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x0138[ 72 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x02d8[ 8 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_2_H ) */ libfsapfs-20190210/libuna/Makefile.am0000664000175000017500000000566313430101233021331 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBUNA AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libuna.la libuna_la_SOURCES = \ libuna_base16_stream.c libuna_base16_stream.h \ libuna_base32_stream.c libuna_base32_stream.h \ libuna_base64_stream.c libuna_base64_stream.h \ libuna_byte_stream.c libuna_byte_stream.h \ libuna_codepage_iso_8859_2.c libuna_codepage_iso_8859_2.h \ libuna_codepage_iso_8859_3.c libuna_codepage_iso_8859_3.h \ libuna_codepage_iso_8859_4.c libuna_codepage_iso_8859_4.h \ libuna_codepage_iso_8859_5.c libuna_codepage_iso_8859_5.h \ libuna_codepage_iso_8859_6.c libuna_codepage_iso_8859_6.h \ libuna_codepage_iso_8859_7.c libuna_codepage_iso_8859_7.h \ libuna_codepage_iso_8859_8.c libuna_codepage_iso_8859_8.h \ libuna_codepage_iso_8859_9.c libuna_codepage_iso_8859_9.h \ libuna_codepage_iso_8859_10.c libuna_codepage_iso_8859_10.h \ libuna_codepage_iso_8859_13.c libuna_codepage_iso_8859_13.h \ libuna_codepage_iso_8859_14.c libuna_codepage_iso_8859_14.h \ libuna_codepage_iso_8859_15.c libuna_codepage_iso_8859_15.h \ libuna_codepage_iso_8859_16.c libuna_codepage_iso_8859_16.h \ libuna_codepage_koi8_r.c libuna_codepage_koi8_r.h \ libuna_codepage_koi8_u.c libuna_codepage_koi8_u.h \ libuna_codepage_windows_874.c libuna_codepage_windows_874.h \ libuna_codepage_windows_932.c libuna_codepage_windows_932.h \ libuna_codepage_windows_936.c libuna_codepage_windows_936.h \ libuna_codepage_windows_949.c libuna_codepage_windows_949.h \ libuna_codepage_windows_950.c libuna_codepage_windows_950.h \ libuna_codepage_windows_1250.c libuna_codepage_windows_1250.h \ libuna_codepage_windows_1251.c libuna_codepage_windows_1251.h \ libuna_codepage_windows_1252.c libuna_codepage_windows_1252.h \ libuna_codepage_windows_1253.c libuna_codepage_windows_1253.h \ libuna_codepage_windows_1254.c libuna_codepage_windows_1254.h \ libuna_codepage_windows_1255.c libuna_codepage_windows_1255.h \ libuna_codepage_windows_1256.c libuna_codepage_windows_1256.h \ libuna_codepage_windows_1257.c libuna_codepage_windows_1257.h \ libuna_codepage_windows_1258.c libuna_codepage_windows_1258.h \ libuna_definitions.h \ libuna_error.c libuna_error.h \ libuna_extern.h \ libuna_libcerror.h \ libuna_support.c libuna_support.h \ libuna_types.h \ libuna_unicode_character.c libuna_unicode_character.h \ libuna_unused.h \ libuna_url_stream.c libuna_url_stream.h \ libuna_utf16_stream.c libuna_utf16_stream.h \ libuna_utf16_string.c libuna_utf16_string.h \ libuna_utf32_stream.c libuna_utf32_stream.h \ libuna_utf32_string.c libuna_utf32_string.h \ libuna_utf7_stream.c libuna_utf7_stream.h \ libuna_utf8_stream.c libuna_utf8_stream.h \ libuna_utf8_string.c libuna_utf8_string.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libuna ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libuna_la_SOURCES) libfsapfs-20190210/libuna/libuna_codepage_windows_1257.c0000664000175000017500000000770313430101233024767 0ustar00lordyestalordyesta00000000000000/* * Windows 1257 codepage (Baltic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1257.h" /* Extended ASCII to Unicode character lookup table for Windows 1257 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x20ac, 0xfffd, 0x201a, 0xfffd, 0x201e, 0x2026, 0x2020, 0x2021, 0xfffd, 0x2030, 0xfffd, 0x2039, 0xfffd, 0x00a8, 0x02c7, 0x00b8, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0xfffd, 0x2122, 0xfffd, 0x203a, 0xfffd, 0x00af, 0x02db, 0xfffd, 0x00a0, 0xfffd, 0x00a2, 0x00a3, 0x00a4, 0xfffd, 0x00a6, 0x00a7, 0x00d8, 0x00a9, 0x0156, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00c6, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00f8, 0x00b9, 0x0157, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00e6, 0x0104, 0x012e, 0x0100, 0x0106, 0x00c4, 0x00c5, 0x0118, 0x0112, 0x010c, 0x00c9, 0x0179, 0x0116, 0x0122, 0x0136, 0x012a, 0x013b, 0x0160, 0x0143, 0x0145, 0x00d3, 0x014c, 0x00d5, 0x00d6, 0x00d7, 0x0172, 0x0141, 0x015a, 0x016a, 0x00dc, 0x017b, 0x017d, 0x00df, 0x0105, 0x012f, 0x0101, 0x0107, 0x00e4, 0x00e5, 0x0119, 0x0113, 0x010d, 0x00e9, 0x017a, 0x0117, 0x0123, 0x0137, 0x012b, 0x013c, 0x0161, 0x0144, 0x0146, 0x00f3, 0x014d, 0x00f5, 0x00f6, 0x00f7, 0x0173, 0x0142, 0x015b, 0x016b, 0x00fc, 0x017c, 0x017e, 0x02d9 }; /* Unicode to ASCII character lookup table for Windows 1257 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ 224 ] = { 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0x1a, 0xa6, 0xa7, 0x8d, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x9d, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0x8f, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc4, 0xc5, 0xaf, 0x1a, 0x1a, 0xc9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd3, 0x1a, 0xd5, 0xd6, 0xd7, 0xa8, 0x1a, 0x1a, 0x1a, 0xdc, 0x1a, 0x1a, 0xdf, 0x1a, 0x1a, 0x1a, 0x1a, 0xe4, 0xe5, 0xbf, 0x1a, 0x1a, 0xe9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xf3, 0x1a, 0xf5, 0xf6, 0xf7, 0xb8, 0x1a, 0x1a, 0x1a, 0xfc, 0x1a, 0x1a, 0x1a, 0xc2, 0xe2, 0x1a, 0x1a, 0xc0, 0xe0, 0xc3, 0xe3, 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0x1a, 0x1a, 0x1a, 0x1a, 0xc7, 0xe7, 0x1a, 0x1a, 0xcb, 0xeb, 0xc6, 0xe6, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xce, 0xee, 0x1a, 0x1a, 0xc1, 0xe1, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xcd, 0xed, 0x1a, 0x1a, 0x1a, 0xcf, 0xef, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, 0xf9, 0xd1, 0xf1, 0xd2, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd4, 0xf4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xaa, 0xba, 0x1a, 0x1a, 0xda, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd8, 0xf8, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xca, 0xea, 0xdd, 0xfd, 0xde, 0xfe, 0x1a }; const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_windows_1254.h0000664000175000017500000000322513430101233024764 0ustar00lordyestalordyesta00000000000000/* * Windows 1254 codepage (Turkish) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1254_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1254_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ 16 ]; LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ 16 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ 48 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ 24 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1254_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1255.c0000664000175000017500000000655013430101233024764 0ustar00lordyestalordyesta00000000000000/* * Windows 1255 codepage (Hebrew) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1255.h" /* Extended ASCII to Unicode character lookup table for Windows 1255 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, 0x02c6, 0x2030, 0xfffd, 0x2039, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x02dc, 0x2122, 0xfffd, 0x203a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x20aa, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x00d7, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x00b9, 0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0x05b0, 0x05b1, 0x05b2, 0x05b3, 0x05b4, 0x05b5, 0x05b6, 0x05b7, 0x05b8, 0x05b9, 0xfffd, 0x05bb, 0x05bc, 0x05bd, 0x05be, 0x05bf, 0x05c0, 0x05c1, 0x05c2, 0x05c3, 0x05f0, 0x05f1, 0x05f2, 0x05f3, 0x05f4, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5, 0x05d6, 0x05d7, 0x05d8, 0x05d9, 0x05da, 0x05db, 0x05dc, 0x05dd, 0x05de, 0x05df, 0x05e0, 0x05e1, 0x05e2, 0x05e3, 0x05e4, 0x05e5, 0x05e6, 0x05e7, 0x05e8, 0x05e9, 0x05ea, 0xfffd, 0xfffd, 0x200e, 0x200f, 0xfffd }; /* Unicode to ASCII character lookup table for Windows 1255 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ 32 ] = { 0xa0, 0xa1, 0xa2, 0xa3, 0x1a, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf }; const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ 24 ] = { 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0x1a, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ 40 ] = { 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; libfsapfs-20190210/libuna/libuna_unused.h0000664000175000017500000000256213430101233022276 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UNUSED_H ) #define _LIBUNA_UNUSED_H #include #if !defined( LIBUNA_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBUNA_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBUNA_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBUNA_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBUNA_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBUNA_UNUSED_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1253.h0000664000175000017500000000304713430101233024765 0ustar00lordyestalordyesta00000000000000/* * Windows 1253 codepage (Greek) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1253_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1253_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ 80 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ 24 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1253_H ) */ libfsapfs-20190210/libuna/libuna_unicode_character.h0000664000175000017500000001342613430101233024436 0ustar00lordyestalordyesta00000000000000/* * Unicode character functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UNICODE_CHARACTER_H ) #define _LIBUNA_UNICODE_CHARACTER_H #include #include #include "libuna_definitions.h" #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, int codepage, size_t *byte_stream_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_size_to_utf7_stream( libuna_unicode_character_t unicode_character, size_t *utf7_stream_character_size, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_from_utf7_stream( libuna_unicode_character_t *unicode_character, const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf7_stream_index, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_to_utf7_stream( libuna_unicode_character_t unicode_character, uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf7_stream_index, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_size_to_utf8( libuna_unicode_character_t unicode_character, size_t *utf8_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_from_utf8( libuna_unicode_character_t *unicode_character, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_to_utf8( libuna_unicode_character_t unicode_character, libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_size_to_utf16( libuna_unicode_character_t unicode_character, size_t *utf16_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_from_utf16( libuna_unicode_character_t *unicode_character, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_to_utf16( libuna_unicode_character_t unicode_character, libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_from_utf16_stream( libuna_unicode_character_t *unicode_character, const uint8_t *utf16_stream, size_t utf16_stream_size, size_t *utf16_stream_index, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_to_utf16_stream( libuna_unicode_character_t unicode_character, uint8_t *utf16_stream, size_t utf16_stream_size, size_t *utf16_stream_index, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_size_to_utf32( libuna_unicode_character_t unicode_character, size_t *utf32_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_from_utf32( libuna_unicode_character_t *unicode_character, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_to_utf32( libuna_unicode_character_t unicode_character, libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_from_utf32_stream( libuna_unicode_character_t *unicode_character, const uint8_t *utf32_stream, size_t utf32_stream_size, size_t *utf32_stream_index, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_unicode_character_copy_to_utf32_stream( libuna_unicode_character_t unicode_character, uint8_t *utf32_stream, size_t utf32_stream_size, size_t *utf32_stream_index, int byte_order, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UNICODE_CHARACTER_H ) */ libfsapfs-20190210/libuna/libuna_byte_stream.c0000664000175000017500000003617713430101233023315 0ustar00lordyestalordyesta00000000000000/* * Byte stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_byte_stream.h" #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" /* Determines the size of a byte stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_byte_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, int codepage, size_t *byte_stream_size, libcerror_error_t **error ) { static char *function = "libuna_byte_stream_size_from_utf8"; size_t utf8_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream size.", function ); return( -1 ); } *byte_stream_size = 0; while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Determine how many byte stream character bytes are required */ if( libuna_unicode_character_size_to_byte_stream( unicode_character, codepage, byte_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to unable to determine size of Unicode character in byte stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies a byte stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_byte_stream_copy_from_utf8( uint8_t *byte_stream, size_t byte_stream_size, int codepage, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_byte_stream_copy_from_utf8"; size_t byte_stream_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 string.", function ); return( -1 ); } /* Convert the Unicode character into a byte stream */ if( libuna_unicode_character_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to byte stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of a byte stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_byte_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, int codepage, size_t *byte_stream_size, libcerror_error_t **error ) { static char *function = "libuna_byte_stream_size_from_utf16"; size_t utf16_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream size.", function ); return( -1 ); } *byte_stream_size = 0; while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Determine how many byte stream character bytes are required */ if( libuna_unicode_character_size_to_byte_stream( unicode_character, codepage, byte_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to unable to determine size of Unicode character in byte stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies a byte stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_byte_stream_copy_from_utf16( uint8_t *byte_stream, size_t byte_stream_size, int codepage, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_byte_stream_copy_from_utf16"; size_t byte_stream_index = 0; size_t utf16_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 string.", function ); return( -1 ); } /* Convert the Unicode character into a byte stream */ if( libuna_unicode_character_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to byte stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of a byte stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_byte_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, int codepage, size_t *byte_stream_size, libcerror_error_t **error ) { static char *function = "libuna_byte_stream_size_from_utf32"; size_t utf32_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream size.", function ); return( -1 ); } *byte_stream_size = 0; while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Determine how many byte stream character bytes are required */ if( libuna_unicode_character_size_to_byte_stream( unicode_character, codepage, byte_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to unable to determine size of Unicode character in byte stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies a byte stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_byte_stream_copy_from_utf32( uint8_t *byte_stream, size_t byte_stream_size, int codepage, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_byte_stream_copy_from_utf32"; size_t byte_stream_index = 0; size_t utf32_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 string.", function ); return( -1 ); } /* Convert the Unicode character into a byte stream */ if( libuna_unicode_character_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to byte stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } libfsapfs-20190210/libuna/libuna_codepage_iso_8859_3.h0000664000175000017500000000335713430101233024336 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-3 codepage (Latin 3) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_3_H ) #define _LIBUNA_CODEPAGE_ISO_8859_3_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_3_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x00a0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0108[ 8 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0118[ 16 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0130[ 8 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0158[ 8 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_3_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_15.h0000664000175000017500000000250413430101233024412 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-15 codepage (Latin 9) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_15_H ) #define _LIBUNA_CODEPAGE_ISO_8859_15_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_15_byte_stream_to_unicode_base_0xa0[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_15_unicode_to_byte_stream_base_0x00a0[ 32 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_15_H ) */ libfsapfs-20190210/libuna/libuna_utf32_string.h0000664000175000017500000002116113430101233023320 0ustar00lordyestalordyesta00000000000000/* * UTF-32 string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UTF32_STRING_H ) #define _LIBUNA_UTF32_STRING_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_utf32_string_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, int codepage, size_t *utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_copy_from_byte_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_copy_to_byte_stream is implemented by * libuna_byte_stream_copy_from_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_with_index_copy_from_byte_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_compare_with_byte_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_size_from_utf7_stream( const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_copy_from_utf7_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_copy_to_utf7_stream is implemented by * libuna_utf7_stream_copy_from_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_with_index_copy_from_utf7_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_compare_with_utf7_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_copy_from_utf8( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_copy_to_utf8 is implemented by * libuna_utf8_string_copy_from_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_with_index_copy_from_utf8( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_compare_with_utf8 is implemented by * libuna_utf8_string_compare_with_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_size_from_utf8_stream( const uint8_t *utf32_stream, size_t utf32_stream_size, size_t *utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_copy_from_utf8_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_copy_to_utf8_stream is implemented by * libuna_utf8_stream_copy_from_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_with_index_copy_from_utf8_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_compare_with_utf8_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_copy_from_utf16( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_copy_to_utf16 is implemented by * libuna_utf16_string_copy_from_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_with_index_copy_from_utf16( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_compare_with_utf16 is implemented by * libuna_utf16_string_compare_with_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_size_from_utf16_stream( const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, size_t *utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_copy_from_utf16_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_copy_to_utf16_stream is implemented by * libuna_utf16_stream_copy_from_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_with_index_copy_from_utf16_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_compare_with_utf16_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_size_from_utf32_stream( const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, size_t *utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_copy_from_utf32_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); /* The functionality for libuna_utf32_string_copy_to_utf32_stream is implemented by * libuna_utf32_stream_copy_from_utf32 */ LIBUNA_EXTERN \ int libuna_utf32_string_with_index_copy_from_utf32_stream( libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_string_compare_with_utf32_stream( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UTF32_STRING_H ) */ libfsapfs-20190210/libuna/libuna_codepage_koi8_r.c0000664000175000017500000000577613430101233024022 0ustar00lordyestalordyesta00000000000000/* * KOI8-R codepage (Russian Cyrillic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_koi8_r.h" /* Extended ASCII to Unicode character lookup table for KOI8-R codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524, 0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590, 0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248, 0x2264, 0x2265, 0x00a0, 0x2321, 0x00b0, 0x00b2, 0x00b7, 0x00f7, 0x2550, 0x2551, 0x2552, 0x0451, 0x2553, 0x2554, 0x2555, 0x2556, 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e, 0x255f, 0x2560, 0x2561, 0x0401, 0x2562, 0x2563, 0x2564, 0x2565, 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x00a9, 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, 0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, 0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, 0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a }; /* Unicode to ASCII character lookup table for KOI8-R codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ 64 ] = { 0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf2, 0xf3, 0xf4, 0xf5, 0xe6, 0xe8, 0xe3, 0xfe, 0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1, 0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde, 0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1 }; const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ 32 ] = { 0xa0, 0xa1, 0xa2, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_windows_936.h0000664000175000017500000000356313430101233024717 0ustar00lordyestalordyesta00000000000000/* * Windows 936 codepage (Chinese Simplified) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_936_H ) #define _LIBUNA_CODEPAGE_WINDOWS_936_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_codepage_windows_936_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_936_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_936_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_936_H ) */ libfsapfs-20190210/libuna/libuna_base64_stream.h0000664000175000017500000000714113430101233023430 0ustar00lordyestalordyesta00000000000000/* * Base64 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_BASE64_STREAM_H ) #define _LIBUNA_BASE64_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif int libuna_base64_character_copy_to_sixtet( uint32_t base64_character, uint8_t *base64_sixtet, uint32_t base64_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_triplet_copy_from_base64_stream( uint32_t *base64_triplet, const uint8_t *base64_stream, size_t base64_stream_size, size_t *base64_stream_index, uint8_t *padding_size, uint32_t base64_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_triplet_copy_to_base64_stream( uint32_t base64_triplet, uint8_t *base64_stream, size_t base64_stream_size, size_t *base64_stream_index, uint8_t padding_size, uint32_t base64_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_triplet_copy_from_byte_stream( uint32_t *base64_triplet, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t *padding_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_triplet_copy_to_byte_stream( uint32_t base64_triplet, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t padding_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_stream_size_to_byte_stream( const uint8_t *base64_stream, size_t base64_stream_size, size_t *byte_stream_size, uint32_t base64_variant, uint8_t flags, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_stream_copy_to_byte_stream( const uint8_t *base64_stream, size_t base64_stream_size, uint8_t *byte_stream, size_t byte_stream_size, uint32_t base64_variant, uint8_t flags, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_stream_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, size_t *base64_stream_size, uint32_t base64_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_stream_copy_from_byte_stream( uint8_t *base64_stream, size_t base64_stream_size, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base64_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base64_stream_with_index_copy_from_byte_stream( uint8_t *base64_stream, size_t base64_stream_size, size_t *base64_stream_index, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base64_variant, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_BASE64_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_950.c0000664000175000017500000127674613430101233024726 0ustar00lordyestalordyesta00000000000000/* * Windows 950 codepage (Traditional Chinese) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_950.h" #include "libuna_libcerror.h" #include "libuna_types.h" /* Extended ASCII to Unicode character lookup table for Windows 950 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa140[ 63 ] = { 0x3000, 0xff0c, 0x3001, 0x3002, 0xff0e, 0x2027, 0xff1b, 0xff1a, 0xff1f, 0xff01, 0xfe30, 0x2026, 0x2025, 0xfe50, 0xfe51, 0xfe52, 0x00b7, 0xfe54, 0xfe55, 0xfe56, 0xfe57, 0xff5c, 0x2013, 0xfe31, 0x2014, 0xfe33, 0x2574, 0xfe34, 0xfe4f, 0xff08, 0xff09, 0xfe35, 0xfe36, 0xff5b, 0xff5d, 0xfe37, 0xfe38, 0x3014, 0x3015, 0xfe39, 0xfe3a, 0x3010, 0x3011, 0xfe3b, 0xfe3c, 0x300a, 0x300b, 0xfe3d, 0xfe3e, 0x3008, 0x3009, 0xfe3f, 0xfe40, 0x300c, 0x300d, 0xfe41, 0xfe42, 0x300e, 0x300f, 0xfe43, 0xfe44, 0xfe59, 0xfe5a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa1a1[ 94 ] = { 0xfe5b, 0xfe5c, 0xfe5d, 0xfe5e, 0x2018, 0x2019, 0x201c, 0x201d, 0x301d, 0x301e, 0x2035, 0x2032, 0xff03, 0xff06, 0xff0a, 0x203b, 0x00a7, 0x3003, 0x25cb, 0x25cf, 0x25b3, 0x25b2, 0x25ce, 0x2606, 0x2605, 0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25bd, 0x25bc, 0x32a3, 0x2105, 0x00af, 0xffe3, 0xff3f, 0x02cd, 0xfe49, 0xfe4a, 0xfe4d, 0xfe4e, 0xfe4b, 0xfe4c, 0xfe5f, 0xfe60, 0xfe61, 0xff0b, 0xff0d, 0x00d7, 0x00f7, 0x00b1, 0x221a, 0xff1c, 0xff1e, 0xff1d, 0x2266, 0x2267, 0x2260, 0x221e, 0x2252, 0x2261, 0xfe62, 0xfe63, 0xfe64, 0xfe65, 0xfe66, 0xff5e, 0x2229, 0x222a, 0x22a5, 0x2220, 0x221f, 0x22bf, 0x33d2, 0x33d1, 0x222b, 0x222e, 0x2235, 0x2234, 0x2640, 0x2642, 0x2295, 0x2299, 0x2191, 0x2193, 0x2190, 0x2192, 0x2196, 0x2197, 0x2199, 0x2198, 0x2225, 0x2223, 0xff0f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa240[ 63 ] = { 0xff3c, 0x2215, 0xfe68, 0xff04, 0xffe5, 0x3012, 0xffe0, 0xffe1, 0xff05, 0xff20, 0x2103, 0x2109, 0xfe69, 0xfe6a, 0xfe6b, 0x33d5, 0x339c, 0x339d, 0x339e, 0x33ce, 0x33a1, 0x338e, 0x338f, 0x33c4, 0x00b0, 0x5159, 0x515b, 0x515e, 0x515d, 0x5161, 0x5163, 0x55e7, 0x74e9, 0x7cce, 0x2581, 0x2582, 0x2583, 0x2584, 0x2585, 0x2586, 0x2587, 0x2588, 0x258f, 0x258e, 0x258d, 0x258c, 0x258b, 0x258a, 0x2589, 0x253c, 0x2534, 0x252c, 0x2524, 0x251c, 0x2594, 0x2500, 0x2502, 0x2595, 0x250c, 0x2510, 0x2514, 0x2518, 0x256d }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa2a1[ 94 ] = { 0x256e, 0x2570, 0x256f, 0x2550, 0x255e, 0x256a, 0x2561, 0x25e2, 0x25e3, 0x25e5, 0x25e4, 0x2571, 0x2572, 0x2573, 0xff10, 0xff11, 0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17, 0xff18, 0xff19, 0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, 0x2168, 0x2169, 0x3021, 0x3022, 0x3023, 0x3024, 0x3025, 0x3026, 0x3027, 0x3028, 0x3029, 0x5341, 0x5344, 0x5345, 0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28, 0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, 0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38, 0xff39, 0xff3a, 0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46, 0xff47, 0xff48, 0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, 0xff4f, 0xff50, 0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa340[ 63 ] = { 0xff57, 0xff58, 0xff59, 0xff5a, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, 0x03a1, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0x3105, 0x3106, 0x3107, 0x3108, 0x3109, 0x310a, 0x310b, 0x310c, 0x310d, 0x310e, 0x310f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa3a1[ 31 ] = { 0x3110, 0x3111, 0x3112, 0x3113, 0x3114, 0x3115, 0x3116, 0x3117, 0x3118, 0x3119, 0x311a, 0x311b, 0x311c, 0x311d, 0x311e, 0x311f, 0x3120, 0x3121, 0x3122, 0x3123, 0x3124, 0x3125, 0x3126, 0x3127, 0x3128, 0x3129, 0x02d9, 0x02c9, 0x02ca, 0x02c7, 0x02cb }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa440[ 63 ] = { 0x4e00, 0x4e59, 0x4e01, 0x4e03, 0x4e43, 0x4e5d, 0x4e86, 0x4e8c, 0x4eba, 0x513f, 0x5165, 0x516b, 0x51e0, 0x5200, 0x5201, 0x529b, 0x5315, 0x5341, 0x535c, 0x53c8, 0x4e09, 0x4e0b, 0x4e08, 0x4e0a, 0x4e2b, 0x4e38, 0x51e1, 0x4e45, 0x4e48, 0x4e5f, 0x4e5e, 0x4e8e, 0x4ea1, 0x5140, 0x5203, 0x52fa, 0x5343, 0x53c9, 0x53e3, 0x571f, 0x58eb, 0x5915, 0x5927, 0x5973, 0x5b50, 0x5b51, 0x5b53, 0x5bf8, 0x5c0f, 0x5c22, 0x5c38, 0x5c71, 0x5ddd, 0x5de5, 0x5df1, 0x5df2, 0x5df3, 0x5dfe, 0x5e72, 0x5efe, 0x5f0b, 0x5f13, 0x624d }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa4a1[ 94 ] = { 0x4e11, 0x4e10, 0x4e0d, 0x4e2d, 0x4e30, 0x4e39, 0x4e4b, 0x5c39, 0x4e88, 0x4e91, 0x4e95, 0x4e92, 0x4e94, 0x4ea2, 0x4ec1, 0x4ec0, 0x4ec3, 0x4ec6, 0x4ec7, 0x4ecd, 0x4eca, 0x4ecb, 0x4ec4, 0x5143, 0x5141, 0x5167, 0x516d, 0x516e, 0x516c, 0x5197, 0x51f6, 0x5206, 0x5207, 0x5208, 0x52fb, 0x52fe, 0x52ff, 0x5316, 0x5339, 0x5348, 0x5347, 0x5345, 0x535e, 0x5384, 0x53cb, 0x53ca, 0x53cd, 0x58ec, 0x5929, 0x592b, 0x592a, 0x592d, 0x5b54, 0x5c11, 0x5c24, 0x5c3a, 0x5c6f, 0x5df4, 0x5e7b, 0x5eff, 0x5f14, 0x5f15, 0x5fc3, 0x6208, 0x6236, 0x624b, 0x624e, 0x652f, 0x6587, 0x6597, 0x65a4, 0x65b9, 0x65e5, 0x66f0, 0x6708, 0x6728, 0x6b20, 0x6b62, 0x6b79, 0x6bcb, 0x6bd4, 0x6bdb, 0x6c0f, 0x6c34, 0x706b, 0x722a, 0x7236, 0x723b, 0x7247, 0x7259, 0x725b, 0x72ac, 0x738b, 0x4e19 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa540[ 63 ] = { 0x4e16, 0x4e15, 0x4e14, 0x4e18, 0x4e3b, 0x4e4d, 0x4e4f, 0x4e4e, 0x4ee5, 0x4ed8, 0x4ed4, 0x4ed5, 0x4ed6, 0x4ed7, 0x4ee3, 0x4ee4, 0x4ed9, 0x4ede, 0x5145, 0x5144, 0x5189, 0x518a, 0x51ac, 0x51f9, 0x51fa, 0x51f8, 0x520a, 0x52a0, 0x529f, 0x5305, 0x5306, 0x5317, 0x531d, 0x4edf, 0x534a, 0x5349, 0x5361, 0x5360, 0x536f, 0x536e, 0x53bb, 0x53ef, 0x53e4, 0x53f3, 0x53ec, 0x53ee, 0x53e9, 0x53e8, 0x53fc, 0x53f8, 0x53f5, 0x53eb, 0x53e6, 0x53ea, 0x53f2, 0x53f1, 0x53f0, 0x53e5, 0x53ed, 0x53fb, 0x56db, 0x56da, 0x5916 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa5a1[ 94 ] = { 0x592e, 0x5931, 0x5974, 0x5976, 0x5b55, 0x5b83, 0x5c3c, 0x5de8, 0x5de7, 0x5de6, 0x5e02, 0x5e03, 0x5e73, 0x5e7c, 0x5f01, 0x5f18, 0x5f17, 0x5fc5, 0x620a, 0x6253, 0x6254, 0x6252, 0x6251, 0x65a5, 0x65e6, 0x672e, 0x672c, 0x672a, 0x672b, 0x672d, 0x6b63, 0x6bcd, 0x6c11, 0x6c10, 0x6c38, 0x6c41, 0x6c40, 0x6c3e, 0x72af, 0x7384, 0x7389, 0x74dc, 0x74e6, 0x7518, 0x751f, 0x7528, 0x7529, 0x7530, 0x7531, 0x7532, 0x7533, 0x758b, 0x767d, 0x76ae, 0x76bf, 0x76ee, 0x77db, 0x77e2, 0x77f3, 0x793a, 0x79be, 0x7a74, 0x7acb, 0x4e1e, 0x4e1f, 0x4e52, 0x4e53, 0x4e69, 0x4e99, 0x4ea4, 0x4ea6, 0x4ea5, 0x4eff, 0x4f09, 0x4f19, 0x4f0a, 0x4f15, 0x4f0d, 0x4f10, 0x4f11, 0x4f0f, 0x4ef2, 0x4ef6, 0x4efb, 0x4ef0, 0x4ef3, 0x4efd, 0x4f01, 0x4f0b, 0x5149, 0x5147, 0x5146, 0x5148, 0x5168 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa640[ 63 ] = { 0x5171, 0x518d, 0x51b0, 0x5217, 0x5211, 0x5212, 0x520e, 0x5216, 0x52a3, 0x5308, 0x5321, 0x5320, 0x5370, 0x5371, 0x5409, 0x540f, 0x540c, 0x540a, 0x5410, 0x5401, 0x540b, 0x5404, 0x5411, 0x540d, 0x5408, 0x5403, 0x540e, 0x5406, 0x5412, 0x56e0, 0x56de, 0x56dd, 0x5733, 0x5730, 0x5728, 0x572d, 0x572c, 0x572f, 0x5729, 0x5919, 0x591a, 0x5937, 0x5938, 0x5984, 0x5978, 0x5983, 0x597d, 0x5979, 0x5982, 0x5981, 0x5b57, 0x5b58, 0x5b87, 0x5b88, 0x5b85, 0x5b89, 0x5bfa, 0x5c16, 0x5c79, 0x5dde, 0x5e06, 0x5e76, 0x5e74 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa6a1[ 94 ] = { 0x5f0f, 0x5f1b, 0x5fd9, 0x5fd6, 0x620e, 0x620c, 0x620d, 0x6210, 0x6263, 0x625b, 0x6258, 0x6536, 0x65e9, 0x65e8, 0x65ec, 0x65ed, 0x66f2, 0x66f3, 0x6709, 0x673d, 0x6734, 0x6731, 0x6735, 0x6b21, 0x6b64, 0x6b7b, 0x6c16, 0x6c5d, 0x6c57, 0x6c59, 0x6c5f, 0x6c60, 0x6c50, 0x6c55, 0x6c61, 0x6c5b, 0x6c4d, 0x6c4e, 0x7070, 0x725f, 0x725d, 0x767e, 0x7af9, 0x7c73, 0x7cf8, 0x7f36, 0x7f8a, 0x7fbd, 0x8001, 0x8003, 0x800c, 0x8012, 0x8033, 0x807f, 0x8089, 0x808b, 0x808c, 0x81e3, 0x81ea, 0x81f3, 0x81fc, 0x820c, 0x821b, 0x821f, 0x826e, 0x8272, 0x827e, 0x866b, 0x8840, 0x884c, 0x8863, 0x897f, 0x9621, 0x4e32, 0x4ea8, 0x4f4d, 0x4f4f, 0x4f47, 0x4f57, 0x4f5e, 0x4f34, 0x4f5b, 0x4f55, 0x4f30, 0x4f50, 0x4f51, 0x4f3d, 0x4f3a, 0x4f38, 0x4f43, 0x4f54, 0x4f3c, 0x4f46, 0x4f63 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa740[ 63 ] = { 0x4f5c, 0x4f60, 0x4f2f, 0x4f4e, 0x4f36, 0x4f59, 0x4f5d, 0x4f48, 0x4f5a, 0x514c, 0x514b, 0x514d, 0x5175, 0x51b6, 0x51b7, 0x5225, 0x5224, 0x5229, 0x522a, 0x5228, 0x52ab, 0x52a9, 0x52aa, 0x52ac, 0x5323, 0x5373, 0x5375, 0x541d, 0x542d, 0x541e, 0x543e, 0x5426, 0x544e, 0x5427, 0x5446, 0x5443, 0x5433, 0x5448, 0x5442, 0x541b, 0x5429, 0x544a, 0x5439, 0x543b, 0x5438, 0x542e, 0x5435, 0x5436, 0x5420, 0x543c, 0x5440, 0x5431, 0x542b, 0x541f, 0x542c, 0x56ea, 0x56f0, 0x56e4, 0x56eb, 0x574a, 0x5751, 0x5740, 0x574d }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa7a1[ 94 ] = { 0x5747, 0x574e, 0x573e, 0x5750, 0x574f, 0x573b, 0x58ef, 0x593e, 0x599d, 0x5992, 0x59a8, 0x599e, 0x59a3, 0x5999, 0x5996, 0x598d, 0x59a4, 0x5993, 0x598a, 0x59a5, 0x5b5d, 0x5b5c, 0x5b5a, 0x5b5b, 0x5b8c, 0x5b8b, 0x5b8f, 0x5c2c, 0x5c40, 0x5c41, 0x5c3f, 0x5c3e, 0x5c90, 0x5c91, 0x5c94, 0x5c8c, 0x5deb, 0x5e0c, 0x5e8f, 0x5e87, 0x5e8a, 0x5ef7, 0x5f04, 0x5f1f, 0x5f64, 0x5f62, 0x5f77, 0x5f79, 0x5fd8, 0x5fcc, 0x5fd7, 0x5fcd, 0x5ff1, 0x5feb, 0x5ff8, 0x5fea, 0x6212, 0x6211, 0x6284, 0x6297, 0x6296, 0x6280, 0x6276, 0x6289, 0x626d, 0x628a, 0x627c, 0x627e, 0x6279, 0x6273, 0x6292, 0x626f, 0x6298, 0x626e, 0x6295, 0x6293, 0x6291, 0x6286, 0x6539, 0x653b, 0x6538, 0x65f1, 0x66f4, 0x675f, 0x674e, 0x674f, 0x6750, 0x6751, 0x675c, 0x6756, 0x675e, 0x6749, 0x6746, 0x6760 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa840[ 63 ] = { 0x6753, 0x6757, 0x6b65, 0x6bcf, 0x6c42, 0x6c5e, 0x6c99, 0x6c81, 0x6c88, 0x6c89, 0x6c85, 0x6c9b, 0x6c6a, 0x6c7a, 0x6c90, 0x6c70, 0x6c8c, 0x6c68, 0x6c96, 0x6c92, 0x6c7d, 0x6c83, 0x6c72, 0x6c7e, 0x6c74, 0x6c86, 0x6c76, 0x6c8d, 0x6c94, 0x6c98, 0x6c82, 0x7076, 0x707c, 0x707d, 0x7078, 0x7262, 0x7261, 0x7260, 0x72c4, 0x72c2, 0x7396, 0x752c, 0x752b, 0x7537, 0x7538, 0x7682, 0x76ef, 0x77e3, 0x79c1, 0x79c0, 0x79bf, 0x7a76, 0x7cfb, 0x7f55, 0x8096, 0x8093, 0x809d, 0x8098, 0x809b, 0x809a, 0x80b2, 0x826f, 0x8292 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa8a1[ 94 ] = { 0x828b, 0x828d, 0x898b, 0x89d2, 0x8a00, 0x8c37, 0x8c46, 0x8c55, 0x8c9d, 0x8d64, 0x8d70, 0x8db3, 0x8eab, 0x8eca, 0x8f9b, 0x8fb0, 0x8fc2, 0x8fc6, 0x8fc5, 0x8fc4, 0x5de1, 0x9091, 0x90a2, 0x90aa, 0x90a6, 0x90a3, 0x9149, 0x91c6, 0x91cc, 0x9632, 0x962e, 0x9631, 0x962a, 0x962c, 0x4e26, 0x4e56, 0x4e73, 0x4e8b, 0x4e9b, 0x4e9e, 0x4eab, 0x4eac, 0x4f6f, 0x4f9d, 0x4f8d, 0x4f73, 0x4f7f, 0x4f6c, 0x4f9b, 0x4f8b, 0x4f86, 0x4f83, 0x4f70, 0x4f75, 0x4f88, 0x4f69, 0x4f7b, 0x4f96, 0x4f7e, 0x4f8f, 0x4f91, 0x4f7a, 0x5154, 0x5152, 0x5155, 0x5169, 0x5177, 0x5176, 0x5178, 0x51bd, 0x51fd, 0x523b, 0x5238, 0x5237, 0x523a, 0x5230, 0x522e, 0x5236, 0x5241, 0x52be, 0x52bb, 0x5352, 0x5354, 0x5353, 0x5351, 0x5366, 0x5377, 0x5378, 0x5379, 0x53d6, 0x53d4, 0x53d7, 0x5473, 0x5475 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa940[ 63 ] = { 0x5496, 0x5478, 0x5495, 0x5480, 0x547b, 0x5477, 0x5484, 0x5492, 0x5486, 0x547c, 0x5490, 0x5471, 0x5476, 0x548c, 0x549a, 0x5462, 0x5468, 0x548b, 0x547d, 0x548e, 0x56fa, 0x5783, 0x5777, 0x576a, 0x5769, 0x5761, 0x5766, 0x5764, 0x577c, 0x591c, 0x5949, 0x5947, 0x5948, 0x5944, 0x5954, 0x59be, 0x59bb, 0x59d4, 0x59b9, 0x59ae, 0x59d1, 0x59c6, 0x59d0, 0x59cd, 0x59cb, 0x59d3, 0x59ca, 0x59af, 0x59b3, 0x59d2, 0x59c5, 0x5b5f, 0x5b64, 0x5b63, 0x5b97, 0x5b9a, 0x5b98, 0x5b9c, 0x5b99, 0x5b9b, 0x5c1a, 0x5c48, 0x5c45 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa9a1[ 94 ] = { 0x5c46, 0x5cb7, 0x5ca1, 0x5cb8, 0x5ca9, 0x5cab, 0x5cb1, 0x5cb3, 0x5e18, 0x5e1a, 0x5e16, 0x5e15, 0x5e1b, 0x5e11, 0x5e78, 0x5e9a, 0x5e97, 0x5e9c, 0x5e95, 0x5e96, 0x5ef6, 0x5f26, 0x5f27, 0x5f29, 0x5f80, 0x5f81, 0x5f7f, 0x5f7c, 0x5fdd, 0x5fe0, 0x5ffd, 0x5ff5, 0x5fff, 0x600f, 0x6014, 0x602f, 0x6035, 0x6016, 0x602a, 0x6015, 0x6021, 0x6027, 0x6029, 0x602b, 0x601b, 0x6216, 0x6215, 0x623f, 0x623e, 0x6240, 0x627f, 0x62c9, 0x62cc, 0x62c4, 0x62bf, 0x62c2, 0x62b9, 0x62d2, 0x62db, 0x62ab, 0x62d3, 0x62d4, 0x62cb, 0x62c8, 0x62a8, 0x62bd, 0x62bc, 0x62d0, 0x62d9, 0x62c7, 0x62cd, 0x62b5, 0x62da, 0x62b1, 0x62d8, 0x62d6, 0x62d7, 0x62c6, 0x62ac, 0x62ce, 0x653e, 0x65a7, 0x65bc, 0x65fa, 0x6614, 0x6613, 0x660c, 0x6606, 0x6602, 0x660e, 0x6600, 0x660f, 0x6615, 0x660a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaa40[ 63 ] = { 0x6607, 0x670d, 0x670b, 0x676d, 0x678b, 0x6795, 0x6771, 0x679c, 0x6773, 0x6777, 0x6787, 0x679d, 0x6797, 0x676f, 0x6770, 0x677f, 0x6789, 0x677e, 0x6790, 0x6775, 0x679a, 0x6793, 0x677c, 0x676a, 0x6772, 0x6b23, 0x6b66, 0x6b67, 0x6b7f, 0x6c13, 0x6c1b, 0x6ce3, 0x6ce8, 0x6cf3, 0x6cb1, 0x6ccc, 0x6ce5, 0x6cb3, 0x6cbd, 0x6cbe, 0x6cbc, 0x6ce2, 0x6cab, 0x6cd5, 0x6cd3, 0x6cb8, 0x6cc4, 0x6cb9, 0x6cc1, 0x6cae, 0x6cd7, 0x6cc5, 0x6cf1, 0x6cbf, 0x6cbb, 0x6ce1, 0x6cdb, 0x6cca, 0x6cac, 0x6cef, 0x6cdc, 0x6cd6, 0x6ce0 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaaa1[ 94 ] = { 0x7095, 0x708e, 0x7092, 0x708a, 0x7099, 0x722c, 0x722d, 0x7238, 0x7248, 0x7267, 0x7269, 0x72c0, 0x72ce, 0x72d9, 0x72d7, 0x72d0, 0x73a9, 0x73a8, 0x739f, 0x73ab, 0x73a5, 0x753d, 0x759d, 0x7599, 0x759a, 0x7684, 0x76c2, 0x76f2, 0x76f4, 0x77e5, 0x77fd, 0x793e, 0x7940, 0x7941, 0x79c9, 0x79c8, 0x7a7a, 0x7a79, 0x7afa, 0x7cfe, 0x7f54, 0x7f8c, 0x7f8b, 0x8005, 0x80ba, 0x80a5, 0x80a2, 0x80b1, 0x80a1, 0x80ab, 0x80a9, 0x80b4, 0x80aa, 0x80af, 0x81e5, 0x81fe, 0x820d, 0x82b3, 0x829d, 0x8299, 0x82ad, 0x82bd, 0x829f, 0x82b9, 0x82b1, 0x82ac, 0x82a5, 0x82af, 0x82b8, 0x82a3, 0x82b0, 0x82be, 0x82b7, 0x864e, 0x8671, 0x521d, 0x8868, 0x8ecb, 0x8fce, 0x8fd4, 0x8fd1, 0x90b5, 0x90b8, 0x90b1, 0x90b6, 0x91c7, 0x91d1, 0x9577, 0x9580, 0x961c, 0x9640, 0x963f, 0x963b, 0x9644 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xab40[ 63 ] = { 0x9642, 0x96b9, 0x96e8, 0x9752, 0x975e, 0x4e9f, 0x4ead, 0x4eae, 0x4fe1, 0x4fb5, 0x4faf, 0x4fbf, 0x4fe0, 0x4fd1, 0x4fcf, 0x4fdd, 0x4fc3, 0x4fb6, 0x4fd8, 0x4fdf, 0x4fca, 0x4fd7, 0x4fae, 0x4fd0, 0x4fc4, 0x4fc2, 0x4fda, 0x4fce, 0x4fde, 0x4fb7, 0x5157, 0x5192, 0x5191, 0x51a0, 0x524e, 0x5243, 0x524a, 0x524d, 0x524c, 0x524b, 0x5247, 0x52c7, 0x52c9, 0x52c3, 0x52c1, 0x530d, 0x5357, 0x537b, 0x539a, 0x53db, 0x54ac, 0x54c0, 0x54a8, 0x54ce, 0x54c9, 0x54b8, 0x54a6, 0x54b3, 0x54c7, 0x54c2, 0x54bd, 0x54aa, 0x54c1 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaba1[ 94 ] = { 0x54c4, 0x54c8, 0x54af, 0x54ab, 0x54b1, 0x54bb, 0x54a9, 0x54a7, 0x54bf, 0x56ff, 0x5782, 0x578b, 0x57a0, 0x57a3, 0x57a2, 0x57ce, 0x57ae, 0x5793, 0x5955, 0x5951, 0x594f, 0x594e, 0x5950, 0x59dc, 0x59d8, 0x59ff, 0x59e3, 0x59e8, 0x5a03, 0x59e5, 0x59ea, 0x59da, 0x59e6, 0x5a01, 0x59fb, 0x5b69, 0x5ba3, 0x5ba6, 0x5ba4, 0x5ba2, 0x5ba5, 0x5c01, 0x5c4e, 0x5c4f, 0x5c4d, 0x5c4b, 0x5cd9, 0x5cd2, 0x5df7, 0x5e1d, 0x5e25, 0x5e1f, 0x5e7d, 0x5ea0, 0x5ea6, 0x5efa, 0x5f08, 0x5f2d, 0x5f65, 0x5f88, 0x5f85, 0x5f8a, 0x5f8b, 0x5f87, 0x5f8c, 0x5f89, 0x6012, 0x601d, 0x6020, 0x6025, 0x600e, 0x6028, 0x604d, 0x6070, 0x6068, 0x6062, 0x6046, 0x6043, 0x606c, 0x606b, 0x606a, 0x6064, 0x6241, 0x62dc, 0x6316, 0x6309, 0x62fc, 0x62ed, 0x6301, 0x62ee, 0x62fd, 0x6307, 0x62f1, 0x62f7 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xac40[ 63 ] = { 0x62ef, 0x62ec, 0x62fe, 0x62f4, 0x6311, 0x6302, 0x653f, 0x6545, 0x65ab, 0x65bd, 0x65e2, 0x6625, 0x662d, 0x6620, 0x6627, 0x662f, 0x661f, 0x6628, 0x6631, 0x6624, 0x66f7, 0x67ff, 0x67d3, 0x67f1, 0x67d4, 0x67d0, 0x67ec, 0x67b6, 0x67af, 0x67f5, 0x67e9, 0x67ef, 0x67c4, 0x67d1, 0x67b4, 0x67da, 0x67e5, 0x67b8, 0x67cf, 0x67de, 0x67f3, 0x67b0, 0x67d9, 0x67e2, 0x67dd, 0x67d2, 0x6b6a, 0x6b83, 0x6b86, 0x6bb5, 0x6bd2, 0x6bd7, 0x6c1f, 0x6cc9, 0x6d0b, 0x6d32, 0x6d2a, 0x6d41, 0x6d25, 0x6d0c, 0x6d31, 0x6d1e, 0x6d17 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaca1[ 94 ] = { 0x6d3b, 0x6d3d, 0x6d3e, 0x6d36, 0x6d1b, 0x6cf5, 0x6d39, 0x6d27, 0x6d38, 0x6d29, 0x6d2e, 0x6d35, 0x6d0e, 0x6d2b, 0x70ab, 0x70ba, 0x70b3, 0x70ac, 0x70af, 0x70ad, 0x70b8, 0x70ae, 0x70a4, 0x7230, 0x7272, 0x726f, 0x7274, 0x72e9, 0x72e0, 0x72e1, 0x73b7, 0x73ca, 0x73bb, 0x73b2, 0x73cd, 0x73c0, 0x73b3, 0x751a, 0x752d, 0x754f, 0x754c, 0x754e, 0x754b, 0x75ab, 0x75a4, 0x75a5, 0x75a2, 0x75a3, 0x7678, 0x7686, 0x7687, 0x7688, 0x76c8, 0x76c6, 0x76c3, 0x76c5, 0x7701, 0x76f9, 0x76f8, 0x7709, 0x770b, 0x76fe, 0x76fc, 0x7707, 0x77dc, 0x7802, 0x7814, 0x780c, 0x780d, 0x7946, 0x7949, 0x7948, 0x7947, 0x79b9, 0x79ba, 0x79d1, 0x79d2, 0x79cb, 0x7a7f, 0x7a81, 0x7aff, 0x7afd, 0x7c7d, 0x7d02, 0x7d05, 0x7d00, 0x7d09, 0x7d07, 0x7d04, 0x7d06, 0x7f38, 0x7f8e, 0x7fbf, 0x8004 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xad40[ 63 ] = { 0x8010, 0x800d, 0x8011, 0x8036, 0x80d6, 0x80e5, 0x80da, 0x80c3, 0x80c4, 0x80cc, 0x80e1, 0x80db, 0x80ce, 0x80de, 0x80e4, 0x80dd, 0x81f4, 0x8222, 0x82e7, 0x8303, 0x8305, 0x82e3, 0x82db, 0x82e6, 0x8304, 0x82e5, 0x8302, 0x8309, 0x82d2, 0x82d7, 0x82f1, 0x8301, 0x82dc, 0x82d4, 0x82d1, 0x82de, 0x82d3, 0x82df, 0x82ef, 0x8306, 0x8650, 0x8679, 0x867b, 0x867a, 0x884d, 0x886b, 0x8981, 0x89d4, 0x8a08, 0x8a02, 0x8a03, 0x8c9e, 0x8ca0, 0x8d74, 0x8d73, 0x8db4, 0x8ecd, 0x8ecc, 0x8ff0, 0x8fe6, 0x8fe2, 0x8fea, 0x8fe5 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xada1[ 94 ] = { 0x8fed, 0x8feb, 0x8fe4, 0x8fe8, 0x90ca, 0x90ce, 0x90c1, 0x90c3, 0x914b, 0x914a, 0x91cd, 0x9582, 0x9650, 0x964b, 0x964c, 0x964d, 0x9762, 0x9769, 0x97cb, 0x97ed, 0x97f3, 0x9801, 0x98a8, 0x98db, 0x98df, 0x9996, 0x9999, 0x4e58, 0x4eb3, 0x500c, 0x500d, 0x5023, 0x4fef, 0x5026, 0x5025, 0x4ff8, 0x5029, 0x5016, 0x5006, 0x503c, 0x501f, 0x501a, 0x5012, 0x5011, 0x4ffa, 0x5000, 0x5014, 0x5028, 0x4ff1, 0x5021, 0x500b, 0x5019, 0x5018, 0x4ff3, 0x4fee, 0x502d, 0x502a, 0x4ffe, 0x502b, 0x5009, 0x517c, 0x51a4, 0x51a5, 0x51a2, 0x51cd, 0x51cc, 0x51c6, 0x51cb, 0x5256, 0x525c, 0x5254, 0x525b, 0x525d, 0x532a, 0x537f, 0x539f, 0x539d, 0x53df, 0x54e8, 0x5510, 0x5501, 0x5537, 0x54fc, 0x54e5, 0x54f2, 0x5506, 0x54fa, 0x5514, 0x54e9, 0x54ed, 0x54e1, 0x5509, 0x54ee, 0x54ea }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xae40[ 63 ] = { 0x54e6, 0x5527, 0x5507, 0x54fd, 0x550f, 0x5703, 0x5704, 0x57c2, 0x57d4, 0x57cb, 0x57c3, 0x5809, 0x590f, 0x5957, 0x5958, 0x595a, 0x5a11, 0x5a18, 0x5a1c, 0x5a1f, 0x5a1b, 0x5a13, 0x59ec, 0x5a20, 0x5a23, 0x5a29, 0x5a25, 0x5a0c, 0x5a09, 0x5b6b, 0x5c58, 0x5bb0, 0x5bb3, 0x5bb6, 0x5bb4, 0x5bae, 0x5bb5, 0x5bb9, 0x5bb8, 0x5c04, 0x5c51, 0x5c55, 0x5c50, 0x5ced, 0x5cfd, 0x5cfb, 0x5cea, 0x5ce8, 0x5cf0, 0x5cf6, 0x5d01, 0x5cf4, 0x5dee, 0x5e2d, 0x5e2b, 0x5eab, 0x5ead, 0x5ea7, 0x5f31, 0x5f92, 0x5f91, 0x5f90, 0x6059 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaea1[ 94 ] = { 0x6063, 0x6065, 0x6050, 0x6055, 0x606d, 0x6069, 0x606f, 0x6084, 0x609f, 0x609a, 0x608d, 0x6094, 0x608c, 0x6085, 0x6096, 0x6247, 0x62f3, 0x6308, 0x62ff, 0x634e, 0x633e, 0x632f, 0x6355, 0x6342, 0x6346, 0x634f, 0x6349, 0x633a, 0x6350, 0x633d, 0x632a, 0x632b, 0x6328, 0x634d, 0x634c, 0x6548, 0x6549, 0x6599, 0x65c1, 0x65c5, 0x6642, 0x6649, 0x664f, 0x6643, 0x6652, 0x664c, 0x6645, 0x6641, 0x66f8, 0x6714, 0x6715, 0x6717, 0x6821, 0x6838, 0x6848, 0x6846, 0x6853, 0x6839, 0x6842, 0x6854, 0x6829, 0x68b3, 0x6817, 0x684c, 0x6851, 0x683d, 0x67f4, 0x6850, 0x6840, 0x683c, 0x6843, 0x682a, 0x6845, 0x6813, 0x6818, 0x6841, 0x6b8a, 0x6b89, 0x6bb7, 0x6c23, 0x6c27, 0x6c28, 0x6c26, 0x6c24, 0x6cf0, 0x6d6a, 0x6d95, 0x6d88, 0x6d87, 0x6d66, 0x6d78, 0x6d77, 0x6d59, 0x6d93 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaf40[ 63 ] = { 0x6d6c, 0x6d89, 0x6d6e, 0x6d5a, 0x6d74, 0x6d69, 0x6d8c, 0x6d8a, 0x6d79, 0x6d85, 0x6d65, 0x6d94, 0x70ca, 0x70d8, 0x70e4, 0x70d9, 0x70c8, 0x70cf, 0x7239, 0x7279, 0x72fc, 0x72f9, 0x72fd, 0x72f8, 0x72f7, 0x7386, 0x73ed, 0x7409, 0x73ee, 0x73e0, 0x73ea, 0x73de, 0x7554, 0x755d, 0x755c, 0x755a, 0x7559, 0x75be, 0x75c5, 0x75c7, 0x75b2, 0x75b3, 0x75bd, 0x75bc, 0x75b9, 0x75c2, 0x75b8, 0x768b, 0x76b0, 0x76ca, 0x76cd, 0x76ce, 0x7729, 0x771f, 0x7720, 0x7728, 0x77e9, 0x7830, 0x7827, 0x7838, 0x781d, 0x7834, 0x7837 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xafa1[ 94 ] = { 0x7825, 0x782d, 0x7820, 0x781f, 0x7832, 0x7955, 0x7950, 0x7960, 0x795f, 0x7956, 0x795e, 0x795d, 0x7957, 0x795a, 0x79e4, 0x79e3, 0x79e7, 0x79df, 0x79e6, 0x79e9, 0x79d8, 0x7a84, 0x7a88, 0x7ad9, 0x7b06, 0x7b11, 0x7c89, 0x7d21, 0x7d17, 0x7d0b, 0x7d0a, 0x7d20, 0x7d22, 0x7d14, 0x7d10, 0x7d15, 0x7d1a, 0x7d1c, 0x7d0d, 0x7d19, 0x7d1b, 0x7f3a, 0x7f5f, 0x7f94, 0x7fc5, 0x7fc1, 0x8006, 0x8018, 0x8015, 0x8019, 0x8017, 0x803d, 0x803f, 0x80f1, 0x8102, 0x80f0, 0x8105, 0x80ed, 0x80f4, 0x8106, 0x80f8, 0x80f3, 0x8108, 0x80fd, 0x810a, 0x80fc, 0x80ef, 0x81ed, 0x81ec, 0x8200, 0x8210, 0x822a, 0x822b, 0x8228, 0x822c, 0x82bb, 0x832b, 0x8352, 0x8354, 0x834a, 0x8338, 0x8350, 0x8349, 0x8335, 0x8334, 0x834f, 0x8332, 0x8339, 0x8336, 0x8317, 0x8340, 0x8331, 0x8328, 0x8343 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb040[ 63 ] = { 0x8654, 0x868a, 0x86aa, 0x8693, 0x86a4, 0x86a9, 0x868c, 0x86a3, 0x869c, 0x8870, 0x8877, 0x8881, 0x8882, 0x887d, 0x8879, 0x8a18, 0x8a10, 0x8a0e, 0x8a0c, 0x8a15, 0x8a0a, 0x8a17, 0x8a13, 0x8a16, 0x8a0f, 0x8a11, 0x8c48, 0x8c7a, 0x8c79, 0x8ca1, 0x8ca2, 0x8d77, 0x8eac, 0x8ed2, 0x8ed4, 0x8ecf, 0x8fb1, 0x9001, 0x9006, 0x8ff7, 0x9000, 0x8ffa, 0x8ff4, 0x9003, 0x8ffd, 0x9005, 0x8ff8, 0x9095, 0x90e1, 0x90dd, 0x90e2, 0x9152, 0x914d, 0x914c, 0x91d8, 0x91dd, 0x91d7, 0x91dc, 0x91d9, 0x9583, 0x9662, 0x9663, 0x9661 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb0a1[ 94 ] = { 0x965b, 0x965d, 0x9664, 0x9658, 0x965e, 0x96bb, 0x98e2, 0x99ac, 0x9aa8, 0x9ad8, 0x9b25, 0x9b32, 0x9b3c, 0x4e7e, 0x507a, 0x507d, 0x505c, 0x5047, 0x5043, 0x504c, 0x505a, 0x5049, 0x5065, 0x5076, 0x504e, 0x5055, 0x5075, 0x5074, 0x5077, 0x504f, 0x500f, 0x506f, 0x506d, 0x515c, 0x5195, 0x51f0, 0x526a, 0x526f, 0x52d2, 0x52d9, 0x52d8, 0x52d5, 0x5310, 0x530f, 0x5319, 0x533f, 0x5340, 0x533e, 0x53c3, 0x66fc, 0x5546, 0x556a, 0x5566, 0x5544, 0x555e, 0x5561, 0x5543, 0x554a, 0x5531, 0x5556, 0x554f, 0x5555, 0x552f, 0x5564, 0x5538, 0x552e, 0x555c, 0x552c, 0x5563, 0x5533, 0x5541, 0x5557, 0x5708, 0x570b, 0x5709, 0x57df, 0x5805, 0x580a, 0x5806, 0x57e0, 0x57e4, 0x57fa, 0x5802, 0x5835, 0x57f7, 0x57f9, 0x5920, 0x5962, 0x5a36, 0x5a41, 0x5a49, 0x5a66, 0x5a6a, 0x5a40 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb140[ 63 ] = { 0x5a3c, 0x5a62, 0x5a5a, 0x5a46, 0x5a4a, 0x5b70, 0x5bc7, 0x5bc5, 0x5bc4, 0x5bc2, 0x5bbf, 0x5bc6, 0x5c09, 0x5c08, 0x5c07, 0x5c60, 0x5c5c, 0x5c5d, 0x5d07, 0x5d06, 0x5d0e, 0x5d1b, 0x5d16, 0x5d22, 0x5d11, 0x5d29, 0x5d14, 0x5d19, 0x5d24, 0x5d27, 0x5d17, 0x5de2, 0x5e38, 0x5e36, 0x5e33, 0x5e37, 0x5eb7, 0x5eb8, 0x5eb6, 0x5eb5, 0x5ebe, 0x5f35, 0x5f37, 0x5f57, 0x5f6c, 0x5f69, 0x5f6b, 0x5f97, 0x5f99, 0x5f9e, 0x5f98, 0x5fa1, 0x5fa0, 0x5f9c, 0x607f, 0x60a3, 0x6089, 0x60a0, 0x60a8, 0x60cb, 0x60b4, 0x60e6, 0x60bd }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb1a1[ 94 ] = { 0x60c5, 0x60bb, 0x60b5, 0x60dc, 0x60bc, 0x60d8, 0x60d5, 0x60c6, 0x60df, 0x60b8, 0x60da, 0x60c7, 0x621a, 0x621b, 0x6248, 0x63a0, 0x63a7, 0x6372, 0x6396, 0x63a2, 0x63a5, 0x6377, 0x6367, 0x6398, 0x63aa, 0x6371, 0x63a9, 0x6389, 0x6383, 0x639b, 0x636b, 0x63a8, 0x6384, 0x6388, 0x6399, 0x63a1, 0x63ac, 0x6392, 0x638f, 0x6380, 0x637b, 0x6369, 0x6368, 0x637a, 0x655d, 0x6556, 0x6551, 0x6559, 0x6557, 0x555f, 0x654f, 0x6558, 0x6555, 0x6554, 0x659c, 0x659b, 0x65ac, 0x65cf, 0x65cb, 0x65cc, 0x65ce, 0x665d, 0x665a, 0x6664, 0x6668, 0x6666, 0x665e, 0x66f9, 0x52d7, 0x671b, 0x6881, 0x68af, 0x68a2, 0x6893, 0x68b5, 0x687f, 0x6876, 0x68b1, 0x68a7, 0x6897, 0x68b0, 0x6883, 0x68c4, 0x68ad, 0x6886, 0x6885, 0x6894, 0x689d, 0x68a8, 0x689f, 0x68a1, 0x6882, 0x6b32, 0x6bba }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb240[ 63 ] = { 0x6beb, 0x6bec, 0x6c2b, 0x6d8e, 0x6dbc, 0x6df3, 0x6dd9, 0x6db2, 0x6de1, 0x6dcc, 0x6de4, 0x6dfb, 0x6dfa, 0x6e05, 0x6dc7, 0x6dcb, 0x6daf, 0x6dd1, 0x6dae, 0x6dde, 0x6df9, 0x6db8, 0x6df7, 0x6df5, 0x6dc5, 0x6dd2, 0x6e1a, 0x6db5, 0x6dda, 0x6deb, 0x6dd8, 0x6dea, 0x6df1, 0x6dee, 0x6de8, 0x6dc6, 0x6dc4, 0x6daa, 0x6dec, 0x6dbf, 0x6de6, 0x70f9, 0x7109, 0x710a, 0x70fd, 0x70ef, 0x723d, 0x727d, 0x7281, 0x731c, 0x731b, 0x7316, 0x7313, 0x7319, 0x7387, 0x7405, 0x740a, 0x7403, 0x7406, 0x73fe, 0x740d, 0x74e0, 0x74f6 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb2a1[ 94 ] = { 0x74f7, 0x751c, 0x7522, 0x7565, 0x7566, 0x7562, 0x7570, 0x758f, 0x75d4, 0x75d5, 0x75b5, 0x75ca, 0x75cd, 0x768e, 0x76d4, 0x76d2, 0x76db, 0x7737, 0x773e, 0x773c, 0x7736, 0x7738, 0x773a, 0x786b, 0x7843, 0x784e, 0x7965, 0x7968, 0x796d, 0x79fb, 0x7a92, 0x7a95, 0x7b20, 0x7b28, 0x7b1b, 0x7b2c, 0x7b26, 0x7b19, 0x7b1e, 0x7b2e, 0x7c92, 0x7c97, 0x7c95, 0x7d46, 0x7d43, 0x7d71, 0x7d2e, 0x7d39, 0x7d3c, 0x7d40, 0x7d30, 0x7d33, 0x7d44, 0x7d2f, 0x7d42, 0x7d32, 0x7d31, 0x7f3d, 0x7f9e, 0x7f9a, 0x7fcc, 0x7fce, 0x7fd2, 0x801c, 0x804a, 0x8046, 0x812f, 0x8116, 0x8123, 0x812b, 0x8129, 0x8130, 0x8124, 0x8202, 0x8235, 0x8237, 0x8236, 0x8239, 0x838e, 0x839e, 0x8398, 0x8378, 0x83a2, 0x8396, 0x83bd, 0x83ab, 0x8392, 0x838a, 0x8393, 0x8389, 0x83a0, 0x8377, 0x837b, 0x837c }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb340[ 63 ] = { 0x8386, 0x83a7, 0x8655, 0x5f6a, 0x86c7, 0x86c0, 0x86b6, 0x86c4, 0x86b5, 0x86c6, 0x86cb, 0x86b1, 0x86af, 0x86c9, 0x8853, 0x889e, 0x8888, 0x88ab, 0x8892, 0x8896, 0x888d, 0x888b, 0x8993, 0x898f, 0x8a2a, 0x8a1d, 0x8a23, 0x8a25, 0x8a31, 0x8a2d, 0x8a1f, 0x8a1b, 0x8a22, 0x8c49, 0x8c5a, 0x8ca9, 0x8cac, 0x8cab, 0x8ca8, 0x8caa, 0x8ca7, 0x8d67, 0x8d66, 0x8dbe, 0x8dba, 0x8edb, 0x8edf, 0x9019, 0x900d, 0x901a, 0x9017, 0x9023, 0x901f, 0x901d, 0x9010, 0x9015, 0x901e, 0x9020, 0x900f, 0x9022, 0x9016, 0x901b, 0x9014 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb3a1[ 94 ] = { 0x90e8, 0x90ed, 0x90fd, 0x9157, 0x91ce, 0x91f5, 0x91e6, 0x91e3, 0x91e7, 0x91ed, 0x91e9, 0x9589, 0x966a, 0x9675, 0x9673, 0x9678, 0x9670, 0x9674, 0x9676, 0x9677, 0x966c, 0x96c0, 0x96ea, 0x96e9, 0x7ae0, 0x7adf, 0x9802, 0x9803, 0x9b5a, 0x9ce5, 0x9e75, 0x9e7f, 0x9ea5, 0x9ebb, 0x50a2, 0x508d, 0x5085, 0x5099, 0x5091, 0x5080, 0x5096, 0x5098, 0x509a, 0x6700, 0x51f1, 0x5272, 0x5274, 0x5275, 0x5269, 0x52de, 0x52dd, 0x52db, 0x535a, 0x53a5, 0x557b, 0x5580, 0x55a7, 0x557c, 0x558a, 0x559d, 0x5598, 0x5582, 0x559c, 0x55aa, 0x5594, 0x5587, 0x558b, 0x5583, 0x55b3, 0x55ae, 0x559f, 0x553e, 0x55b2, 0x559a, 0x55bb, 0x55ac, 0x55b1, 0x557e, 0x5589, 0x55ab, 0x5599, 0x570d, 0x582f, 0x582a, 0x5834, 0x5824, 0x5830, 0x5831, 0x5821, 0x581d, 0x5820, 0x58f9, 0x58fa, 0x5960 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb440[ 63 ] = { 0x5a77, 0x5a9a, 0x5a7f, 0x5a92, 0x5a9b, 0x5aa7, 0x5b73, 0x5b71, 0x5bd2, 0x5bcc, 0x5bd3, 0x5bd0, 0x5c0a, 0x5c0b, 0x5c31, 0x5d4c, 0x5d50, 0x5d34, 0x5d47, 0x5dfd, 0x5e45, 0x5e3d, 0x5e40, 0x5e43, 0x5e7e, 0x5eca, 0x5ec1, 0x5ec2, 0x5ec4, 0x5f3c, 0x5f6d, 0x5fa9, 0x5faa, 0x5fa8, 0x60d1, 0x60e1, 0x60b2, 0x60b6, 0x60e0, 0x611c, 0x6123, 0x60fa, 0x6115, 0x60f0, 0x60fb, 0x60f4, 0x6168, 0x60f1, 0x610e, 0x60f6, 0x6109, 0x6100, 0x6112, 0x621f, 0x6249, 0x63a3, 0x638c, 0x63cf, 0x63c0, 0x63e9, 0x63c9, 0x63c6, 0x63cd }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb4a1[ 94 ] = { 0x63d2, 0x63e3, 0x63d0, 0x63e1, 0x63d6, 0x63ed, 0x63ee, 0x6376, 0x63f4, 0x63ea, 0x63db, 0x6452, 0x63da, 0x63f9, 0x655e, 0x6566, 0x6562, 0x6563, 0x6591, 0x6590, 0x65af, 0x666e, 0x6670, 0x6674, 0x6676, 0x666f, 0x6691, 0x667a, 0x667e, 0x6677, 0x66fe, 0x66ff, 0x671f, 0x671d, 0x68fa, 0x68d5, 0x68e0, 0x68d8, 0x68d7, 0x6905, 0x68df, 0x68f5, 0x68ee, 0x68e7, 0x68f9, 0x68d2, 0x68f2, 0x68e3, 0x68cb, 0x68cd, 0x690d, 0x6912, 0x690e, 0x68c9, 0x68da, 0x696e, 0x68fb, 0x6b3e, 0x6b3a, 0x6b3d, 0x6b98, 0x6b96, 0x6bbc, 0x6bef, 0x6c2e, 0x6c2f, 0x6c2c, 0x6e2f, 0x6e38, 0x6e54, 0x6e21, 0x6e32, 0x6e67, 0x6e4a, 0x6e20, 0x6e25, 0x6e23, 0x6e1b, 0x6e5b, 0x6e58, 0x6e24, 0x6e56, 0x6e6e, 0x6e2d, 0x6e26, 0x6e6f, 0x6e34, 0x6e4d, 0x6e3a, 0x6e2c, 0x6e43, 0x6e1d, 0x6e3e, 0x6ecb }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb540[ 63 ] = { 0x6e89, 0x6e19, 0x6e4e, 0x6e63, 0x6e44, 0x6e72, 0x6e69, 0x6e5f, 0x7119, 0x711a, 0x7126, 0x7130, 0x7121, 0x7136, 0x716e, 0x711c, 0x724c, 0x7284, 0x7280, 0x7336, 0x7325, 0x7334, 0x7329, 0x743a, 0x742a, 0x7433, 0x7422, 0x7425, 0x7435, 0x7436, 0x7434, 0x742f, 0x741b, 0x7426, 0x7428, 0x7525, 0x7526, 0x756b, 0x756a, 0x75e2, 0x75db, 0x75e3, 0x75d9, 0x75d8, 0x75de, 0x75e0, 0x767b, 0x767c, 0x7696, 0x7693, 0x76b4, 0x76dc, 0x774f, 0x77ed, 0x785d, 0x786c, 0x786f, 0x7a0d, 0x7a08, 0x7a0b, 0x7a05, 0x7a00, 0x7a98 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb5a1[ 94 ] = { 0x7a97, 0x7a96, 0x7ae5, 0x7ae3, 0x7b49, 0x7b56, 0x7b46, 0x7b50, 0x7b52, 0x7b54, 0x7b4d, 0x7b4b, 0x7b4f, 0x7b51, 0x7c9f, 0x7ca5, 0x7d5e, 0x7d50, 0x7d68, 0x7d55, 0x7d2b, 0x7d6e, 0x7d72, 0x7d61, 0x7d66, 0x7d62, 0x7d70, 0x7d73, 0x5584, 0x7fd4, 0x7fd5, 0x800b, 0x8052, 0x8085, 0x8155, 0x8154, 0x814b, 0x8151, 0x814e, 0x8139, 0x8146, 0x813e, 0x814c, 0x8153, 0x8174, 0x8212, 0x821c, 0x83e9, 0x8403, 0x83f8, 0x840d, 0x83e0, 0x83c5, 0x840b, 0x83c1, 0x83ef, 0x83f1, 0x83f4, 0x8457, 0x840a, 0x83f0, 0x840c, 0x83cc, 0x83fd, 0x83f2, 0x83ca, 0x8438, 0x840e, 0x8404, 0x83dc, 0x8407, 0x83d4, 0x83df, 0x865b, 0x86df, 0x86d9, 0x86ed, 0x86d4, 0x86db, 0x86e4, 0x86d0, 0x86de, 0x8857, 0x88c1, 0x88c2, 0x88b1, 0x8983, 0x8996, 0x8a3b, 0x8a60, 0x8a55, 0x8a5e, 0x8a3c, 0x8a41 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb640[ 63 ] = { 0x8a54, 0x8a5b, 0x8a50, 0x8a46, 0x8a34, 0x8a3a, 0x8a36, 0x8a56, 0x8c61, 0x8c82, 0x8caf, 0x8cbc, 0x8cb3, 0x8cbd, 0x8cc1, 0x8cbb, 0x8cc0, 0x8cb4, 0x8cb7, 0x8cb6, 0x8cbf, 0x8cb8, 0x8d8a, 0x8d85, 0x8d81, 0x8dce, 0x8ddd, 0x8dcb, 0x8dda, 0x8dd1, 0x8dcc, 0x8ddb, 0x8dc6, 0x8efb, 0x8ef8, 0x8efc, 0x8f9c, 0x902e, 0x9035, 0x9031, 0x9038, 0x9032, 0x9036, 0x9102, 0x90f5, 0x9109, 0x90fe, 0x9163, 0x9165, 0x91cf, 0x9214, 0x9215, 0x9223, 0x9209, 0x921e, 0x920d, 0x9210, 0x9207, 0x9211, 0x9594, 0x958f, 0x958b, 0x9591 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb6a1[ 94 ] = { 0x9593, 0x9592, 0x958e, 0x968a, 0x968e, 0x968b, 0x967d, 0x9685, 0x9686, 0x968d, 0x9672, 0x9684, 0x96c1, 0x96c5, 0x96c4, 0x96c6, 0x96c7, 0x96ef, 0x96f2, 0x97cc, 0x9805, 0x9806, 0x9808, 0x98e7, 0x98ea, 0x98ef, 0x98e9, 0x98f2, 0x98ed, 0x99ae, 0x99ad, 0x9ec3, 0x9ecd, 0x9ed1, 0x4e82, 0x50ad, 0x50b5, 0x50b2, 0x50b3, 0x50c5, 0x50be, 0x50ac, 0x50b7, 0x50bb, 0x50af, 0x50c7, 0x527f, 0x5277, 0x527d, 0x52df, 0x52e6, 0x52e4, 0x52e2, 0x52e3, 0x532f, 0x55df, 0x55e8, 0x55d3, 0x55e6, 0x55ce, 0x55dc, 0x55c7, 0x55d1, 0x55e3, 0x55e4, 0x55ef, 0x55da, 0x55e1, 0x55c5, 0x55c6, 0x55e5, 0x55c9, 0x5712, 0x5713, 0x585e, 0x5851, 0x5858, 0x5857, 0x585a, 0x5854, 0x586b, 0x584c, 0x586d, 0x584a, 0x5862, 0x5852, 0x584b, 0x5967, 0x5ac1, 0x5ac9, 0x5acc, 0x5abe, 0x5abd, 0x5abc }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb740[ 63 ] = { 0x5ab3, 0x5ac2, 0x5ab2, 0x5d69, 0x5d6f, 0x5e4c, 0x5e79, 0x5ec9, 0x5ec8, 0x5f12, 0x5f59, 0x5fac, 0x5fae, 0x611a, 0x610f, 0x6148, 0x611f, 0x60f3, 0x611b, 0x60f9, 0x6101, 0x6108, 0x614e, 0x614c, 0x6144, 0x614d, 0x613e, 0x6134, 0x6127, 0x610d, 0x6106, 0x6137, 0x6221, 0x6222, 0x6413, 0x643e, 0x641e, 0x642a, 0x642d, 0x643d, 0x642c, 0x640f, 0x641c, 0x6414, 0x640d, 0x6436, 0x6416, 0x6417, 0x6406, 0x656c, 0x659f, 0x65b0, 0x6697, 0x6689, 0x6687, 0x6688, 0x6696, 0x6684, 0x6698, 0x668d, 0x6703, 0x6994, 0x696d }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb7a1[ 94 ] = { 0x695a, 0x6977, 0x6960, 0x6954, 0x6975, 0x6930, 0x6982, 0x694a, 0x6968, 0x696b, 0x695e, 0x6953, 0x6979, 0x6986, 0x695d, 0x6963, 0x695b, 0x6b47, 0x6b72, 0x6bc0, 0x6bbf, 0x6bd3, 0x6bfd, 0x6ea2, 0x6eaf, 0x6ed3, 0x6eb6, 0x6ec2, 0x6e90, 0x6e9d, 0x6ec7, 0x6ec5, 0x6ea5, 0x6e98, 0x6ebc, 0x6eba, 0x6eab, 0x6ed1, 0x6e96, 0x6e9c, 0x6ec4, 0x6ed4, 0x6eaa, 0x6ea7, 0x6eb4, 0x714e, 0x7159, 0x7169, 0x7164, 0x7149, 0x7167, 0x715c, 0x716c, 0x7166, 0x714c, 0x7165, 0x715e, 0x7146, 0x7168, 0x7156, 0x723a, 0x7252, 0x7337, 0x7345, 0x733f, 0x733e, 0x746f, 0x745a, 0x7455, 0x745f, 0x745e, 0x7441, 0x743f, 0x7459, 0x745b, 0x745c, 0x7576, 0x7578, 0x7600, 0x75f0, 0x7601, 0x75f2, 0x75f1, 0x75fa, 0x75ff, 0x75f4, 0x75f3, 0x76de, 0x76df, 0x775b, 0x776b, 0x7766, 0x775e, 0x7763 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb840[ 63 ] = { 0x7779, 0x776a, 0x776c, 0x775c, 0x7765, 0x7768, 0x7762, 0x77ee, 0x788e, 0x78b0, 0x7897, 0x7898, 0x788c, 0x7889, 0x787c, 0x7891, 0x7893, 0x787f, 0x797a, 0x797f, 0x7981, 0x842c, 0x79bd, 0x7a1c, 0x7a1a, 0x7a20, 0x7a14, 0x7a1f, 0x7a1e, 0x7a9f, 0x7aa0, 0x7b77, 0x7bc0, 0x7b60, 0x7b6e, 0x7b67, 0x7cb1, 0x7cb3, 0x7cb5, 0x7d93, 0x7d79, 0x7d91, 0x7d81, 0x7d8f, 0x7d5b, 0x7f6e, 0x7f69, 0x7f6a, 0x7f72, 0x7fa9, 0x7fa8, 0x7fa4, 0x8056, 0x8058, 0x8086, 0x8084, 0x8171, 0x8170, 0x8178, 0x8165, 0x816e, 0x8173, 0x816b }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb8a1[ 94 ] = { 0x8179, 0x817a, 0x8166, 0x8205, 0x8247, 0x8482, 0x8477, 0x843d, 0x8431, 0x8475, 0x8466, 0x846b, 0x8449, 0x846c, 0x845b, 0x843c, 0x8435, 0x8461, 0x8463, 0x8469, 0x846d, 0x8446, 0x865e, 0x865c, 0x865f, 0x86f9, 0x8713, 0x8708, 0x8707, 0x8700, 0x86fe, 0x86fb, 0x8702, 0x8703, 0x8706, 0x870a, 0x8859, 0x88df, 0x88d4, 0x88d9, 0x88dc, 0x88d8, 0x88dd, 0x88e1, 0x88ca, 0x88d5, 0x88d2, 0x899c, 0x89e3, 0x8a6b, 0x8a72, 0x8a73, 0x8a66, 0x8a69, 0x8a70, 0x8a87, 0x8a7c, 0x8a63, 0x8aa0, 0x8a71, 0x8a85, 0x8a6d, 0x8a62, 0x8a6e, 0x8a6c, 0x8a79, 0x8a7b, 0x8a3e, 0x8a68, 0x8c62, 0x8c8a, 0x8c89, 0x8cca, 0x8cc7, 0x8cc8, 0x8cc4, 0x8cb2, 0x8cc3, 0x8cc2, 0x8cc5, 0x8de1, 0x8ddf, 0x8de8, 0x8def, 0x8df3, 0x8dfa, 0x8dea, 0x8de4, 0x8de6, 0x8eb2, 0x8f03, 0x8f09, 0x8efe, 0x8f0a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb940[ 63 ] = { 0x8f9f, 0x8fb2, 0x904b, 0x904a, 0x9053, 0x9042, 0x9054, 0x903c, 0x9055, 0x9050, 0x9047, 0x904f, 0x904e, 0x904d, 0x9051, 0x903e, 0x9041, 0x9112, 0x9117, 0x916c, 0x916a, 0x9169, 0x91c9, 0x9237, 0x9257, 0x9238, 0x923d, 0x9240, 0x923e, 0x925b, 0x924b, 0x9264, 0x9251, 0x9234, 0x9249, 0x924d, 0x9245, 0x9239, 0x923f, 0x925a, 0x9598, 0x9698, 0x9694, 0x9695, 0x96cd, 0x96cb, 0x96c9, 0x96ca, 0x96f7, 0x96fb, 0x96f9, 0x96f6, 0x9756, 0x9774, 0x9776, 0x9810, 0x9811, 0x9813, 0x980a, 0x9812, 0x980c, 0x98fc, 0x98f4 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb9a1[ 94 ] = { 0x98fd, 0x98fe, 0x99b3, 0x99b1, 0x99b4, 0x9ae1, 0x9ce9, 0x9e82, 0x9f0e, 0x9f13, 0x9f20, 0x50e7, 0x50ee, 0x50e5, 0x50d6, 0x50ed, 0x50da, 0x50d5, 0x50cf, 0x50d1, 0x50f1, 0x50ce, 0x50e9, 0x5162, 0x51f3, 0x5283, 0x5282, 0x5331, 0x53ad, 0x55fe, 0x5600, 0x561b, 0x5617, 0x55fd, 0x5614, 0x5606, 0x5609, 0x560d, 0x560e, 0x55f7, 0x5616, 0x561f, 0x5608, 0x5610, 0x55f6, 0x5718, 0x5716, 0x5875, 0x587e, 0x5883, 0x5893, 0x588a, 0x5879, 0x5885, 0x587d, 0x58fd, 0x5925, 0x5922, 0x5924, 0x596a, 0x5969, 0x5ae1, 0x5ae6, 0x5ae9, 0x5ad7, 0x5ad6, 0x5ad8, 0x5ae3, 0x5b75, 0x5bde, 0x5be7, 0x5be1, 0x5be5, 0x5be6, 0x5be8, 0x5be2, 0x5be4, 0x5bdf, 0x5c0d, 0x5c62, 0x5d84, 0x5d87, 0x5e5b, 0x5e63, 0x5e55, 0x5e57, 0x5e54, 0x5ed3, 0x5ed6, 0x5f0a, 0x5f46, 0x5f70, 0x5fb9, 0x6147 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xba40[ 63 ] = { 0x613f, 0x614b, 0x6177, 0x6162, 0x6163, 0x615f, 0x615a, 0x6158, 0x6175, 0x622a, 0x6487, 0x6458, 0x6454, 0x64a4, 0x6478, 0x645f, 0x647a, 0x6451, 0x6467, 0x6434, 0x646d, 0x647b, 0x6572, 0x65a1, 0x65d7, 0x65d6, 0x66a2, 0x66a8, 0x669d, 0x699c, 0x69a8, 0x6995, 0x69c1, 0x69ae, 0x69d3, 0x69cb, 0x699b, 0x69b7, 0x69bb, 0x69ab, 0x69b4, 0x69d0, 0x69cd, 0x69ad, 0x69cc, 0x69a6, 0x69c3, 0x69a3, 0x6b49, 0x6b4c, 0x6c33, 0x6f33, 0x6f14, 0x6efe, 0x6f13, 0x6ef4, 0x6f29, 0x6f3e, 0x6f20, 0x6f2c, 0x6f0f, 0x6f02, 0x6f22 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbaa1[ 94 ] = { 0x6eff, 0x6eef, 0x6f06, 0x6f31, 0x6f38, 0x6f32, 0x6f23, 0x6f15, 0x6f2b, 0x6f2f, 0x6f88, 0x6f2a, 0x6eec, 0x6f01, 0x6ef2, 0x6ecc, 0x6ef7, 0x7194, 0x7199, 0x717d, 0x718a, 0x7184, 0x7192, 0x723e, 0x7292, 0x7296, 0x7344, 0x7350, 0x7464, 0x7463, 0x746a, 0x7470, 0x746d, 0x7504, 0x7591, 0x7627, 0x760d, 0x760b, 0x7609, 0x7613, 0x76e1, 0x76e3, 0x7784, 0x777d, 0x777f, 0x7761, 0x78c1, 0x789f, 0x78a7, 0x78b3, 0x78a9, 0x78a3, 0x798e, 0x798f, 0x798d, 0x7a2e, 0x7a31, 0x7aaa, 0x7aa9, 0x7aed, 0x7aef, 0x7ba1, 0x7b95, 0x7b8b, 0x7b75, 0x7b97, 0x7b9d, 0x7b94, 0x7b8f, 0x7bb8, 0x7b87, 0x7b84, 0x7cb9, 0x7cbd, 0x7cbe, 0x7dbb, 0x7db0, 0x7d9c, 0x7dbd, 0x7dbe, 0x7da0, 0x7dca, 0x7db4, 0x7db2, 0x7db1, 0x7dba, 0x7da2, 0x7dbf, 0x7db5, 0x7db8, 0x7dad, 0x7dd2, 0x7dc7, 0x7dac }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbb40[ 63 ] = { 0x7f70, 0x7fe0, 0x7fe1, 0x7fdf, 0x805e, 0x805a, 0x8087, 0x8150, 0x8180, 0x818f, 0x8188, 0x818a, 0x817f, 0x8182, 0x81e7, 0x81fa, 0x8207, 0x8214, 0x821e, 0x824b, 0x84c9, 0x84bf, 0x84c6, 0x84c4, 0x8499, 0x849e, 0x84b2, 0x849c, 0x84cb, 0x84b8, 0x84c0, 0x84d3, 0x8490, 0x84bc, 0x84d1, 0x84ca, 0x873f, 0x871c, 0x873b, 0x8722, 0x8725, 0x8734, 0x8718, 0x8755, 0x8737, 0x8729, 0x88f3, 0x8902, 0x88f4, 0x88f9, 0x88f8, 0x88fd, 0x88e8, 0x891a, 0x88ef, 0x8aa6, 0x8a8c, 0x8a9e, 0x8aa3, 0x8a8d, 0x8aa1, 0x8a93, 0x8aa4 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbba1[ 94 ] = { 0x8aaa, 0x8aa5, 0x8aa8, 0x8a98, 0x8a91, 0x8a9a, 0x8aa7, 0x8c6a, 0x8c8d, 0x8c8c, 0x8cd3, 0x8cd1, 0x8cd2, 0x8d6b, 0x8d99, 0x8d95, 0x8dfc, 0x8f14, 0x8f12, 0x8f15, 0x8f13, 0x8fa3, 0x9060, 0x9058, 0x905c, 0x9063, 0x9059, 0x905e, 0x9062, 0x905d, 0x905b, 0x9119, 0x9118, 0x911e, 0x9175, 0x9178, 0x9177, 0x9174, 0x9278, 0x9280, 0x9285, 0x9298, 0x9296, 0x927b, 0x9293, 0x929c, 0x92a8, 0x927c, 0x9291, 0x95a1, 0x95a8, 0x95a9, 0x95a3, 0x95a5, 0x95a4, 0x9699, 0x969c, 0x969b, 0x96cc, 0x96d2, 0x9700, 0x977c, 0x9785, 0x97f6, 0x9817, 0x9818, 0x98af, 0x98b1, 0x9903, 0x9905, 0x990c, 0x9909, 0x99c1, 0x9aaf, 0x9ab0, 0x9ae6, 0x9b41, 0x9b42, 0x9cf4, 0x9cf6, 0x9cf3, 0x9ebc, 0x9f3b, 0x9f4a, 0x5104, 0x5100, 0x50fb, 0x50f5, 0x50f9, 0x5102, 0x5108, 0x5109, 0x5105, 0x51dc }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbc40[ 63 ] = { 0x5287, 0x5288, 0x5289, 0x528d, 0x528a, 0x52f0, 0x53b2, 0x562e, 0x563b, 0x5639, 0x5632, 0x563f, 0x5634, 0x5629, 0x5653, 0x564e, 0x5657, 0x5674, 0x5636, 0x562f, 0x5630, 0x5880, 0x589f, 0x589e, 0x58b3, 0x589c, 0x58ae, 0x58a9, 0x58a6, 0x596d, 0x5b09, 0x5afb, 0x5b0b, 0x5af5, 0x5b0c, 0x5b08, 0x5bee, 0x5bec, 0x5be9, 0x5beb, 0x5c64, 0x5c65, 0x5d9d, 0x5d94, 0x5e62, 0x5e5f, 0x5e61, 0x5ee2, 0x5eda, 0x5edf, 0x5edd, 0x5ee3, 0x5ee0, 0x5f48, 0x5f71, 0x5fb7, 0x5fb5, 0x6176, 0x6167, 0x616e, 0x615d, 0x6155, 0x6182 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbca1[ 94 ] = { 0x617c, 0x6170, 0x616b, 0x617e, 0x61a7, 0x6190, 0x61ab, 0x618e, 0x61ac, 0x619a, 0x61a4, 0x6194, 0x61ae, 0x622e, 0x6469, 0x646f, 0x6479, 0x649e, 0x64b2, 0x6488, 0x6490, 0x64b0, 0x64a5, 0x6493, 0x6495, 0x64a9, 0x6492, 0x64ae, 0x64ad, 0x64ab, 0x649a, 0x64ac, 0x6499, 0x64a2, 0x64b3, 0x6575, 0x6577, 0x6578, 0x66ae, 0x66ab, 0x66b4, 0x66b1, 0x6a23, 0x6a1f, 0x69e8, 0x6a01, 0x6a1e, 0x6a19, 0x69fd, 0x6a21, 0x6a13, 0x6a0a, 0x69f3, 0x6a02, 0x6a05, 0x69ed, 0x6a11, 0x6b50, 0x6b4e, 0x6ba4, 0x6bc5, 0x6bc6, 0x6f3f, 0x6f7c, 0x6f84, 0x6f51, 0x6f66, 0x6f54, 0x6f86, 0x6f6d, 0x6f5b, 0x6f78, 0x6f6e, 0x6f8e, 0x6f7a, 0x6f70, 0x6f64, 0x6f97, 0x6f58, 0x6ed5, 0x6f6f, 0x6f60, 0x6f5f, 0x719f, 0x71ac, 0x71b1, 0x71a8, 0x7256, 0x729b, 0x734e, 0x7357, 0x7469, 0x748b, 0x7483 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbd40[ 63 ] = { 0x747e, 0x7480, 0x757f, 0x7620, 0x7629, 0x761f, 0x7624, 0x7626, 0x7621, 0x7622, 0x769a, 0x76ba, 0x76e4, 0x778e, 0x7787, 0x778c, 0x7791, 0x778b, 0x78cb, 0x78c5, 0x78ba, 0x78ca, 0x78be, 0x78d5, 0x78bc, 0x78d0, 0x7a3f, 0x7a3c, 0x7a40, 0x7a3d, 0x7a37, 0x7a3b, 0x7aaf, 0x7aae, 0x7bad, 0x7bb1, 0x7bc4, 0x7bb4, 0x7bc6, 0x7bc7, 0x7bc1, 0x7ba0, 0x7bcc, 0x7cca, 0x7de0, 0x7df4, 0x7def, 0x7dfb, 0x7dd8, 0x7dec, 0x7ddd, 0x7de8, 0x7de3, 0x7dda, 0x7dde, 0x7de9, 0x7d9e, 0x7dd9, 0x7df2, 0x7df9, 0x7f75, 0x7f77, 0x7faf }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbda1[ 94 ] = { 0x7fe9, 0x8026, 0x819b, 0x819c, 0x819d, 0x81a0, 0x819a, 0x8198, 0x8517, 0x853d, 0x851a, 0x84ee, 0x852c, 0x852d, 0x8513, 0x8511, 0x8523, 0x8521, 0x8514, 0x84ec, 0x8525, 0x84ff, 0x8506, 0x8782, 0x8774, 0x8776, 0x8760, 0x8766, 0x8778, 0x8768, 0x8759, 0x8757, 0x874c, 0x8753, 0x885b, 0x885d, 0x8910, 0x8907, 0x8912, 0x8913, 0x8915, 0x890a, 0x8abc, 0x8ad2, 0x8ac7, 0x8ac4, 0x8a95, 0x8acb, 0x8af8, 0x8ab2, 0x8ac9, 0x8ac2, 0x8abf, 0x8ab0, 0x8ad6, 0x8acd, 0x8ab6, 0x8ab9, 0x8adb, 0x8c4c, 0x8c4e, 0x8c6c, 0x8ce0, 0x8cde, 0x8ce6, 0x8ce4, 0x8cec, 0x8ced, 0x8ce2, 0x8ce3, 0x8cdc, 0x8cea, 0x8ce1, 0x8d6d, 0x8d9f, 0x8da3, 0x8e2b, 0x8e10, 0x8e1d, 0x8e22, 0x8e0f, 0x8e29, 0x8e1f, 0x8e21, 0x8e1e, 0x8eba, 0x8f1d, 0x8f1b, 0x8f1f, 0x8f29, 0x8f26, 0x8f2a, 0x8f1c, 0x8f1e }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbe40[ 63 ] = { 0x8f25, 0x9069, 0x906e, 0x9068, 0x906d, 0x9077, 0x9130, 0x912d, 0x9127, 0x9131, 0x9187, 0x9189, 0x918b, 0x9183, 0x92c5, 0x92bb, 0x92b7, 0x92ea, 0x92ac, 0x92e4, 0x92c1, 0x92b3, 0x92bc, 0x92d2, 0x92c7, 0x92f0, 0x92b2, 0x95ad, 0x95b1, 0x9704, 0x9706, 0x9707, 0x9709, 0x9760, 0x978d, 0x978b, 0x978f, 0x9821, 0x982b, 0x981c, 0x98b3, 0x990a, 0x9913, 0x9912, 0x9918, 0x99dd, 0x99d0, 0x99df, 0x99db, 0x99d1, 0x99d5, 0x99d2, 0x99d9, 0x9ab7, 0x9aee, 0x9aef, 0x9b27, 0x9b45, 0x9b44, 0x9b77, 0x9b6f, 0x9d06, 0x9d09 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbea1[ 94 ] = { 0x9d03, 0x9ea9, 0x9ebe, 0x9ece, 0x58a8, 0x9f52, 0x5112, 0x5118, 0x5114, 0x5110, 0x5115, 0x5180, 0x51aa, 0x51dd, 0x5291, 0x5293, 0x52f3, 0x5659, 0x566b, 0x5679, 0x5669, 0x5664, 0x5678, 0x566a, 0x5668, 0x5665, 0x5671, 0x566f, 0x566c, 0x5662, 0x5676, 0x58c1, 0x58be, 0x58c7, 0x58c5, 0x596e, 0x5b1d, 0x5b34, 0x5b78, 0x5bf0, 0x5c0e, 0x5f4a, 0x61b2, 0x6191, 0x61a9, 0x618a, 0x61cd, 0x61b6, 0x61be, 0x61ca, 0x61c8, 0x6230, 0x64c5, 0x64c1, 0x64cb, 0x64bb, 0x64bc, 0x64da, 0x64c4, 0x64c7, 0x64c2, 0x64cd, 0x64bf, 0x64d2, 0x64d4, 0x64be, 0x6574, 0x66c6, 0x66c9, 0x66b9, 0x66c4, 0x66c7, 0x66b8, 0x6a3d, 0x6a38, 0x6a3a, 0x6a59, 0x6a6b, 0x6a58, 0x6a39, 0x6a44, 0x6a62, 0x6a61, 0x6a4b, 0x6a47, 0x6a35, 0x6a5f, 0x6a48, 0x6b59, 0x6b77, 0x6c05, 0x6fc2, 0x6fb1, 0x6fa1 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbf40[ 63 ] = { 0x6fc3, 0x6fa4, 0x6fc1, 0x6fa7, 0x6fb3, 0x6fc0, 0x6fb9, 0x6fb6, 0x6fa6, 0x6fa0, 0x6fb4, 0x71be, 0x71c9, 0x71d0, 0x71d2, 0x71c8, 0x71d5, 0x71b9, 0x71ce, 0x71d9, 0x71dc, 0x71c3, 0x71c4, 0x7368, 0x749c, 0x74a3, 0x7498, 0x749f, 0x749e, 0x74e2, 0x750c, 0x750d, 0x7634, 0x7638, 0x763a, 0x76e7, 0x76e5, 0x77a0, 0x779e, 0x779f, 0x77a5, 0x78e8, 0x78da, 0x78ec, 0x78e7, 0x79a6, 0x7a4d, 0x7a4e, 0x7a46, 0x7a4c, 0x7a4b, 0x7aba, 0x7bd9, 0x7c11, 0x7bc9, 0x7be4, 0x7bdb, 0x7be1, 0x7be9, 0x7be6, 0x7cd5, 0x7cd6, 0x7e0a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbfa1[ 94 ] = { 0x7e11, 0x7e08, 0x7e1b, 0x7e23, 0x7e1e, 0x7e1d, 0x7e09, 0x7e10, 0x7f79, 0x7fb2, 0x7ff0, 0x7ff1, 0x7fee, 0x8028, 0x81b3, 0x81a9, 0x81a8, 0x81fb, 0x8208, 0x8258, 0x8259, 0x854a, 0x8559, 0x8548, 0x8568, 0x8569, 0x8543, 0x8549, 0x856d, 0x856a, 0x855e, 0x8783, 0x879f, 0x879e, 0x87a2, 0x878d, 0x8861, 0x892a, 0x8932, 0x8925, 0x892b, 0x8921, 0x89aa, 0x89a6, 0x8ae6, 0x8afa, 0x8aeb, 0x8af1, 0x8b00, 0x8adc, 0x8ae7, 0x8aee, 0x8afe, 0x8b01, 0x8b02, 0x8af7, 0x8aed, 0x8af3, 0x8af6, 0x8afc, 0x8c6b, 0x8c6d, 0x8c93, 0x8cf4, 0x8e44, 0x8e31, 0x8e34, 0x8e42, 0x8e39, 0x8e35, 0x8f3b, 0x8f2f, 0x8f38, 0x8f33, 0x8fa8, 0x8fa6, 0x9075, 0x9074, 0x9078, 0x9072, 0x907c, 0x907a, 0x9134, 0x9192, 0x9320, 0x9336, 0x92f8, 0x9333, 0x932f, 0x9322, 0x92fc, 0x932b, 0x9304, 0x931a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc040[ 63 ] = { 0x9310, 0x9326, 0x9321, 0x9315, 0x932e, 0x9319, 0x95bb, 0x96a7, 0x96a8, 0x96aa, 0x96d5, 0x970e, 0x9711, 0x9716, 0x970d, 0x9713, 0x970f, 0x975b, 0x975c, 0x9766, 0x9798, 0x9830, 0x9838, 0x983b, 0x9837, 0x982d, 0x9839, 0x9824, 0x9910, 0x9928, 0x991e, 0x991b, 0x9921, 0x991a, 0x99ed, 0x99e2, 0x99f1, 0x9ab8, 0x9abc, 0x9afb, 0x9aed, 0x9b28, 0x9b91, 0x9d15, 0x9d23, 0x9d26, 0x9d28, 0x9d12, 0x9d1b, 0x9ed8, 0x9ed4, 0x9f8d, 0x9f9c, 0x512a, 0x511f, 0x5121, 0x5132, 0x52f5, 0x568e, 0x5680, 0x5690, 0x5685, 0x5687 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc0a1[ 94 ] = { 0x568f, 0x58d5, 0x58d3, 0x58d1, 0x58ce, 0x5b30, 0x5b2a, 0x5b24, 0x5b7a, 0x5c37, 0x5c68, 0x5dbc, 0x5dba, 0x5dbd, 0x5db8, 0x5e6b, 0x5f4c, 0x5fbd, 0x61c9, 0x61c2, 0x61c7, 0x61e6, 0x61cb, 0x6232, 0x6234, 0x64ce, 0x64ca, 0x64d8, 0x64e0, 0x64f0, 0x64e6, 0x64ec, 0x64f1, 0x64e2, 0x64ed, 0x6582, 0x6583, 0x66d9, 0x66d6, 0x6a80, 0x6a94, 0x6a84, 0x6aa2, 0x6a9c, 0x6adb, 0x6aa3, 0x6a7e, 0x6a97, 0x6a90, 0x6aa0, 0x6b5c, 0x6bae, 0x6bda, 0x6c08, 0x6fd8, 0x6ff1, 0x6fdf, 0x6fe0, 0x6fdb, 0x6fe4, 0x6feb, 0x6fef, 0x6f80, 0x6fec, 0x6fe1, 0x6fe9, 0x6fd5, 0x6fee, 0x6ff0, 0x71e7, 0x71df, 0x71ee, 0x71e6, 0x71e5, 0x71ed, 0x71ec, 0x71f4, 0x71e0, 0x7235, 0x7246, 0x7370, 0x7372, 0x74a9, 0x74b0, 0x74a6, 0x74a8, 0x7646, 0x7642, 0x764c, 0x76ea, 0x77b3, 0x77aa, 0x77b0, 0x77ac }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc140[ 63 ] = { 0x77a7, 0x77ad, 0x77ef, 0x78f7, 0x78fa, 0x78f4, 0x78ef, 0x7901, 0x79a7, 0x79aa, 0x7a57, 0x7abf, 0x7c07, 0x7c0d, 0x7bfe, 0x7bf7, 0x7c0c, 0x7be0, 0x7ce0, 0x7cdc, 0x7cde, 0x7ce2, 0x7cdf, 0x7cd9, 0x7cdd, 0x7e2e, 0x7e3e, 0x7e46, 0x7e37, 0x7e32, 0x7e43, 0x7e2b, 0x7e3d, 0x7e31, 0x7e45, 0x7e41, 0x7e34, 0x7e39, 0x7e48, 0x7e35, 0x7e3f, 0x7e2f, 0x7f44, 0x7ff3, 0x7ffc, 0x8071, 0x8072, 0x8070, 0x806f, 0x8073, 0x81c6, 0x81c3, 0x81ba, 0x81c2, 0x81c0, 0x81bf, 0x81bd, 0x81c9, 0x81be, 0x81e8, 0x8209, 0x8271, 0x85aa }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc1a1[ 94 ] = { 0x8584, 0x857e, 0x859c, 0x8591, 0x8594, 0x85af, 0x859b, 0x8587, 0x85a8, 0x858a, 0x8667, 0x87c0, 0x87d1, 0x87b3, 0x87d2, 0x87c6, 0x87ab, 0x87bb, 0x87ba, 0x87c8, 0x87cb, 0x893b, 0x8936, 0x8944, 0x8938, 0x893d, 0x89ac, 0x8b0e, 0x8b17, 0x8b19, 0x8b1b, 0x8b0a, 0x8b20, 0x8b1d, 0x8b04, 0x8b10, 0x8c41, 0x8c3f, 0x8c73, 0x8cfa, 0x8cfd, 0x8cfc, 0x8cf8, 0x8cfb, 0x8da8, 0x8e49, 0x8e4b, 0x8e48, 0x8e4a, 0x8f44, 0x8f3e, 0x8f42, 0x8f45, 0x8f3f, 0x907f, 0x907d, 0x9084, 0x9081, 0x9082, 0x9080, 0x9139, 0x91a3, 0x919e, 0x919c, 0x934d, 0x9382, 0x9328, 0x9375, 0x934a, 0x9365, 0x934b, 0x9318, 0x937e, 0x936c, 0x935b, 0x9370, 0x935a, 0x9354, 0x95ca, 0x95cb, 0x95cc, 0x95c8, 0x95c6, 0x96b1, 0x96b8, 0x96d6, 0x971c, 0x971e, 0x97a0, 0x97d3, 0x9846, 0x98b6, 0x9935, 0x9a01 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc240[ 63 ] = { 0x99ff, 0x9bae, 0x9bab, 0x9baa, 0x9bad, 0x9d3b, 0x9d3f, 0x9e8b, 0x9ecf, 0x9ede, 0x9edc, 0x9edd, 0x9edb, 0x9f3e, 0x9f4b, 0x53e2, 0x5695, 0x56ae, 0x58d9, 0x58d8, 0x5b38, 0x5f5d, 0x61e3, 0x6233, 0x64f4, 0x64f2, 0x64fe, 0x6506, 0x64fa, 0x64fb, 0x64f7, 0x65b7, 0x66dc, 0x6726, 0x6ab3, 0x6aac, 0x6ac3, 0x6abb, 0x6ab8, 0x6ac2, 0x6aae, 0x6aaf, 0x6b5f, 0x6b78, 0x6baf, 0x7009, 0x700b, 0x6ffe, 0x7006, 0x6ffa, 0x7011, 0x700f, 0x71fb, 0x71fc, 0x71fe, 0x71f8, 0x7377, 0x7375, 0x74a7, 0x74bf, 0x7515, 0x7656, 0x7658 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc2a1[ 94 ] = { 0x7652, 0x77bd, 0x77bf, 0x77bb, 0x77bc, 0x790e, 0x79ae, 0x7a61, 0x7a62, 0x7a60, 0x7ac4, 0x7ac5, 0x7c2b, 0x7c27, 0x7c2a, 0x7c1e, 0x7c23, 0x7c21, 0x7ce7, 0x7e54, 0x7e55, 0x7e5e, 0x7e5a, 0x7e61, 0x7e52, 0x7e59, 0x7f48, 0x7ff9, 0x7ffb, 0x8077, 0x8076, 0x81cd, 0x81cf, 0x820a, 0x85cf, 0x85a9, 0x85cd, 0x85d0, 0x85c9, 0x85b0, 0x85ba, 0x85b9, 0x85a6, 0x87ef, 0x87ec, 0x87f2, 0x87e0, 0x8986, 0x89b2, 0x89f4, 0x8b28, 0x8b39, 0x8b2c, 0x8b2b, 0x8c50, 0x8d05, 0x8e59, 0x8e63, 0x8e66, 0x8e64, 0x8e5f, 0x8e55, 0x8ec0, 0x8f49, 0x8f4d, 0x9087, 0x9083, 0x9088, 0x91ab, 0x91ac, 0x91d0, 0x9394, 0x938a, 0x9396, 0x93a2, 0x93b3, 0x93ae, 0x93ac, 0x93b0, 0x9398, 0x939a, 0x9397, 0x95d4, 0x95d6, 0x95d0, 0x95d5, 0x96e2, 0x96dc, 0x96d9, 0x96db, 0x96de, 0x9724, 0x97a3, 0x97a6 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc340[ 63 ] = { 0x97ad, 0x97f9, 0x984d, 0x984f, 0x984c, 0x984e, 0x9853, 0x98ba, 0x993e, 0x993f, 0x993d, 0x992e, 0x99a5, 0x9a0e, 0x9ac1, 0x9b03, 0x9b06, 0x9b4f, 0x9b4e, 0x9b4d, 0x9bca, 0x9bc9, 0x9bfd, 0x9bc8, 0x9bc0, 0x9d51, 0x9d5d, 0x9d60, 0x9ee0, 0x9f15, 0x9f2c, 0x5133, 0x56a5, 0x58de, 0x58df, 0x58e2, 0x5bf5, 0x9f90, 0x5eec, 0x61f2, 0x61f7, 0x61f6, 0x61f5, 0x6500, 0x650f, 0x66e0, 0x66dd, 0x6ae5, 0x6add, 0x6ada, 0x6ad3, 0x701b, 0x701f, 0x7028, 0x701a, 0x701d, 0x7015, 0x7018, 0x7206, 0x720d, 0x7258, 0x72a2, 0x7378 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc3a1[ 94 ] = { 0x737a, 0x74bd, 0x74ca, 0x74e3, 0x7587, 0x7586, 0x765f, 0x7661, 0x77c7, 0x7919, 0x79b1, 0x7a6b, 0x7a69, 0x7c3e, 0x7c3f, 0x7c38, 0x7c3d, 0x7c37, 0x7c40, 0x7e6b, 0x7e6d, 0x7e79, 0x7e69, 0x7e6a, 0x7f85, 0x7e73, 0x7fb6, 0x7fb9, 0x7fb8, 0x81d8, 0x85e9, 0x85dd, 0x85ea, 0x85d5, 0x85e4, 0x85e5, 0x85f7, 0x87fb, 0x8805, 0x880d, 0x87f9, 0x87fe, 0x8960, 0x895f, 0x8956, 0x895e, 0x8b41, 0x8b5c, 0x8b58, 0x8b49, 0x8b5a, 0x8b4e, 0x8b4f, 0x8b46, 0x8b59, 0x8d08, 0x8d0a, 0x8e7c, 0x8e72, 0x8e87, 0x8e76, 0x8e6c, 0x8e7a, 0x8e74, 0x8f54, 0x8f4e, 0x8fad, 0x908a, 0x908b, 0x91b1, 0x91ae, 0x93e1, 0x93d1, 0x93df, 0x93c3, 0x93c8, 0x93dc, 0x93dd, 0x93d6, 0x93e2, 0x93cd, 0x93d8, 0x93e4, 0x93d7, 0x93e8, 0x95dc, 0x96b4, 0x96e3, 0x972a, 0x9727, 0x9761, 0x97dc, 0x97fb, 0x985e }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc440[ 63 ] = { 0x9858, 0x985b, 0x98bc, 0x9945, 0x9949, 0x9a16, 0x9a19, 0x9b0d, 0x9be8, 0x9be7, 0x9bd6, 0x9bdb, 0x9d89, 0x9d61, 0x9d72, 0x9d6a, 0x9d6c, 0x9e92, 0x9e97, 0x9e93, 0x9eb4, 0x52f8, 0x56a8, 0x56b7, 0x56b6, 0x56b4, 0x56bc, 0x58e4, 0x5b40, 0x5b43, 0x5b7d, 0x5bf6, 0x5dc9, 0x61f8, 0x61fa, 0x6518, 0x6514, 0x6519, 0x66e6, 0x6727, 0x6aec, 0x703e, 0x7030, 0x7032, 0x7210, 0x737b, 0x74cf, 0x7662, 0x7665, 0x7926, 0x792a, 0x792c, 0x792b, 0x7ac7, 0x7af6, 0x7c4c, 0x7c43, 0x7c4d, 0x7cef, 0x7cf0, 0x8fae, 0x7e7d, 0x7e7c }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc4a1[ 94 ] = { 0x7e82, 0x7f4c, 0x8000, 0x81da, 0x8266, 0x85fb, 0x85f9, 0x8611, 0x85fa, 0x8606, 0x860b, 0x8607, 0x860a, 0x8814, 0x8815, 0x8964, 0x89ba, 0x89f8, 0x8b70, 0x8b6c, 0x8b66, 0x8b6f, 0x8b5f, 0x8b6b, 0x8d0f, 0x8d0d, 0x8e89, 0x8e81, 0x8e85, 0x8e82, 0x91b4, 0x91cb, 0x9418, 0x9403, 0x93fd, 0x95e1, 0x9730, 0x98c4, 0x9952, 0x9951, 0x99a8, 0x9a2b, 0x9a30, 0x9a37, 0x9a35, 0x9c13, 0x9c0d, 0x9e79, 0x9eb5, 0x9ee8, 0x9f2f, 0x9f5f, 0x9f63, 0x9f61, 0x5137, 0x5138, 0x56c1, 0x56c0, 0x56c2, 0x5914, 0x5c6c, 0x5dcd, 0x61fc, 0x61fe, 0x651d, 0x651c, 0x6595, 0x66e9, 0x6afb, 0x6b04, 0x6afa, 0x6bb2, 0x704c, 0x721b, 0x72a7, 0x74d6, 0x74d4, 0x7669, 0x77d3, 0x7c50, 0x7e8f, 0x7e8c, 0x7fbc, 0x8617, 0x862d, 0x861a, 0x8823, 0x8822, 0x8821, 0x881f, 0x896a, 0x896c, 0x89bd, 0x8b74 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc540[ 63 ] = { 0x8b77, 0x8b7d, 0x8d13, 0x8e8a, 0x8e8d, 0x8e8b, 0x8f5f, 0x8faf, 0x91ba, 0x942e, 0x9433, 0x9435, 0x943a, 0x9438, 0x9432, 0x942b, 0x95e2, 0x9738, 0x9739, 0x9732, 0x97ff, 0x9867, 0x9865, 0x9957, 0x9a45, 0x9a43, 0x9a40, 0x9a3e, 0x9acf, 0x9b54, 0x9b51, 0x9c2d, 0x9c25, 0x9daf, 0x9db4, 0x9dc2, 0x9db8, 0x9e9d, 0x9eef, 0x9f19, 0x9f5c, 0x9f66, 0x9f67, 0x513c, 0x513b, 0x56c8, 0x56ca, 0x56c9, 0x5b7f, 0x5dd4, 0x5dd2, 0x5f4e, 0x61ff, 0x6524, 0x6b0a, 0x6b61, 0x7051, 0x7058, 0x7380, 0x74e4, 0x758a, 0x766e, 0x766c }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc5a1[ 94 ] = { 0x79b3, 0x7c60, 0x7c5f, 0x807e, 0x807d, 0x81df, 0x8972, 0x896f, 0x89fc, 0x8b80, 0x8d16, 0x8d17, 0x8e91, 0x8e93, 0x8f61, 0x9148, 0x9444, 0x9451, 0x9452, 0x973d, 0x973e, 0x97c3, 0x97c1, 0x986b, 0x9955, 0x9a55, 0x9a4d, 0x9ad2, 0x9b1a, 0x9c49, 0x9c31, 0x9c3e, 0x9c3b, 0x9dd3, 0x9dd7, 0x9f34, 0x9f6c, 0x9f6a, 0x9f94, 0x56cc, 0x5dd6, 0x6200, 0x6523, 0x652b, 0x652a, 0x66ec, 0x6b10, 0x74da, 0x7aca, 0x7c64, 0x7c63, 0x7c65, 0x7e93, 0x7e96, 0x7e94, 0x81e2, 0x8638, 0x863f, 0x8831, 0x8b8a, 0x9090, 0x908f, 0x9463, 0x9460, 0x9464, 0x9768, 0x986f, 0x995c, 0x9a5a, 0x9a5b, 0x9a57, 0x9ad3, 0x9ad4, 0x9ad1, 0x9c54, 0x9c57, 0x9c56, 0x9de5, 0x9e9f, 0x9ef4, 0x56d1, 0x58e9, 0x652c, 0x705e, 0x7671, 0x7672, 0x77d7, 0x7f50, 0x7f88, 0x8836, 0x8839, 0x8862, 0x8b93, 0x8b92 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc640[ 63 ] = { 0x8b96, 0x8277, 0x8d1b, 0x91c0, 0x946a, 0x9742, 0x9748, 0x9744, 0x97c6, 0x9870, 0x9a5f, 0x9b22, 0x9b58, 0x9c5f, 0x9df9, 0x9dfa, 0x9e7c, 0x9e7d, 0x9f07, 0x9f77, 0x9f72, 0x5ef3, 0x6b16, 0x7063, 0x7c6c, 0x7c6e, 0x883b, 0x89c0, 0x8ea1, 0x91c1, 0x9472, 0x9470, 0x9871, 0x995e, 0x9ad6, 0x9b23, 0x9ecc, 0x7064, 0x77da, 0x8b9a, 0x9477, 0x97c9, 0x9a62, 0x9a65, 0x7e9c, 0x8b9c, 0x8eaa, 0x91c5, 0x947d, 0x947e, 0x947c, 0x9c77, 0x9c78, 0x9ef7, 0x8c54, 0x947f, 0x9e1a, 0x7228, 0x9a6a, 0x9b31, 0x9e1b, 0x9e1e, 0x7c72 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc940[ 63 ] = { 0x4e42, 0x4e5c, 0x51f5, 0x531a, 0x5382, 0x4e07, 0x4e0c, 0x4e47, 0x4e8d, 0x56d7, 0xfa0c, 0x5c6e, 0x5f73, 0x4e0f, 0x5187, 0x4e0e, 0x4e2e, 0x4e93, 0x4ec2, 0x4ec9, 0x4ec8, 0x5198, 0x52fc, 0x536c, 0x53b9, 0x5720, 0x5903, 0x592c, 0x5c10, 0x5dff, 0x65e1, 0x6bb3, 0x6bcc, 0x6c14, 0x723f, 0x4e31, 0x4e3c, 0x4ee8, 0x4edc, 0x4ee9, 0x4ee1, 0x4edd, 0x4eda, 0x520c, 0x531c, 0x534c, 0x5722, 0x5723, 0x5917, 0x592f, 0x5b81, 0x5b84, 0x5c12, 0x5c3b, 0x5c74, 0x5c73, 0x5e04, 0x5e80, 0x5e82, 0x5fc9, 0x6209, 0x6250, 0x6c15 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc9a1[ 94 ] = { 0x6c36, 0x6c43, 0x6c3f, 0x6c3b, 0x72ae, 0x72b0, 0x738a, 0x79b8, 0x808a, 0x961e, 0x4f0e, 0x4f18, 0x4f2c, 0x4ef5, 0x4f14, 0x4ef1, 0x4f00, 0x4ef7, 0x4f08, 0x4f1d, 0x4f02, 0x4f05, 0x4f22, 0x4f13, 0x4f04, 0x4ef4, 0x4f12, 0x51b1, 0x5213, 0x5209, 0x5210, 0x52a6, 0x5322, 0x531f, 0x534d, 0x538a, 0x5407, 0x56e1, 0x56df, 0x572e, 0x572a, 0x5734, 0x593c, 0x5980, 0x597c, 0x5985, 0x597b, 0x597e, 0x5977, 0x597f, 0x5b56, 0x5c15, 0x5c25, 0x5c7c, 0x5c7a, 0x5c7b, 0x5c7e, 0x5ddf, 0x5e75, 0x5e84, 0x5f02, 0x5f1a, 0x5f74, 0x5fd5, 0x5fd4, 0x5fcf, 0x625c, 0x625e, 0x6264, 0x6261, 0x6266, 0x6262, 0x6259, 0x6260, 0x625a, 0x6265, 0x65ef, 0x65ee, 0x673e, 0x6739, 0x6738, 0x673b, 0x673a, 0x673f, 0x673c, 0x6733, 0x6c18, 0x6c46, 0x6c52, 0x6c5c, 0x6c4f, 0x6c4a, 0x6c54, 0x6c4b }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xca40[ 63 ] = { 0x6c4c, 0x7071, 0x725e, 0x72b4, 0x72b5, 0x738e, 0x752a, 0x767f, 0x7a75, 0x7f51, 0x8278, 0x827c, 0x8280, 0x827d, 0x827f, 0x864d, 0x897e, 0x9099, 0x9097, 0x9098, 0x909b, 0x9094, 0x9622, 0x9624, 0x9620, 0x9623, 0x4f56, 0x4f3b, 0x4f62, 0x4f49, 0x4f53, 0x4f64, 0x4f3e, 0x4f67, 0x4f52, 0x4f5f, 0x4f41, 0x4f58, 0x4f2d, 0x4f33, 0x4f3f, 0x4f61, 0x518f, 0x51b9, 0x521c, 0x521e, 0x5221, 0x52ad, 0x52ae, 0x5309, 0x5363, 0x5372, 0x538e, 0x538f, 0x5430, 0x5437, 0x542a, 0x5454, 0x5445, 0x5419, 0x541c, 0x5425, 0x5418 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcaa1[ 94 ] = { 0x543d, 0x544f, 0x5441, 0x5428, 0x5424, 0x5447, 0x56ee, 0x56e7, 0x56e5, 0x5741, 0x5745, 0x574c, 0x5749, 0x574b, 0x5752, 0x5906, 0x5940, 0x59a6, 0x5998, 0x59a0, 0x5997, 0x598e, 0x59a2, 0x5990, 0x598f, 0x59a7, 0x59a1, 0x5b8e, 0x5b92, 0x5c28, 0x5c2a, 0x5c8d, 0x5c8f, 0x5c88, 0x5c8b, 0x5c89, 0x5c92, 0x5c8a, 0x5c86, 0x5c93, 0x5c95, 0x5de0, 0x5e0a, 0x5e0e, 0x5e8b, 0x5e89, 0x5e8c, 0x5e88, 0x5e8d, 0x5f05, 0x5f1d, 0x5f78, 0x5f76, 0x5fd2, 0x5fd1, 0x5fd0, 0x5fed, 0x5fe8, 0x5fee, 0x5ff3, 0x5fe1, 0x5fe4, 0x5fe3, 0x5ffa, 0x5fef, 0x5ff7, 0x5ffb, 0x6000, 0x5ff4, 0x623a, 0x6283, 0x628c, 0x628e, 0x628f, 0x6294, 0x6287, 0x6271, 0x627b, 0x627a, 0x6270, 0x6281, 0x6288, 0x6277, 0x627d, 0x6272, 0x6274, 0x6537, 0x65f0, 0x65f4, 0x65f3, 0x65f2, 0x65f5, 0x6745, 0x6747 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcb40[ 63 ] = { 0x6759, 0x6755, 0x674c, 0x6748, 0x675d, 0x674d, 0x675a, 0x674b, 0x6bd0, 0x6c19, 0x6c1a, 0x6c78, 0x6c67, 0x6c6b, 0x6c84, 0x6c8b, 0x6c8f, 0x6c71, 0x6c6f, 0x6c69, 0x6c9a, 0x6c6d, 0x6c87, 0x6c95, 0x6c9c, 0x6c66, 0x6c73, 0x6c65, 0x6c7b, 0x6c8e, 0x7074, 0x707a, 0x7263, 0x72bf, 0x72bd, 0x72c3, 0x72c6, 0x72c1, 0x72ba, 0x72c5, 0x7395, 0x7397, 0x7393, 0x7394, 0x7392, 0x753a, 0x7539, 0x7594, 0x7595, 0x7681, 0x793d, 0x8034, 0x8095, 0x8099, 0x8090, 0x8092, 0x809c, 0x8290, 0x828f, 0x8285, 0x828e, 0x8291, 0x8293 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcba1[ 94 ] = { 0x828a, 0x8283, 0x8284, 0x8c78, 0x8fc9, 0x8fbf, 0x909f, 0x90a1, 0x90a5, 0x909e, 0x90a7, 0x90a0, 0x9630, 0x9628, 0x962f, 0x962d, 0x4e33, 0x4f98, 0x4f7c, 0x4f85, 0x4f7d, 0x4f80, 0x4f87, 0x4f76, 0x4f74, 0x4f89, 0x4f84, 0x4f77, 0x4f4c, 0x4f97, 0x4f6a, 0x4f9a, 0x4f79, 0x4f81, 0x4f78, 0x4f90, 0x4f9c, 0x4f94, 0x4f9e, 0x4f92, 0x4f82, 0x4f95, 0x4f6b, 0x4f6e, 0x519e, 0x51bc, 0x51be, 0x5235, 0x5232, 0x5233, 0x5246, 0x5231, 0x52bc, 0x530a, 0x530b, 0x533c, 0x5392, 0x5394, 0x5487, 0x547f, 0x5481, 0x5491, 0x5482, 0x5488, 0x546b, 0x547a, 0x547e, 0x5465, 0x546c, 0x5474, 0x5466, 0x548d, 0x546f, 0x5461, 0x5460, 0x5498, 0x5463, 0x5467, 0x5464, 0x56f7, 0x56f9, 0x576f, 0x5772, 0x576d, 0x576b, 0x5771, 0x5770, 0x5776, 0x5780, 0x5775, 0x577b, 0x5773, 0x5774, 0x5762 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcc40[ 63 ] = { 0x5768, 0x577d, 0x590c, 0x5945, 0x59b5, 0x59ba, 0x59cf, 0x59ce, 0x59b2, 0x59cc, 0x59c1, 0x59b6, 0x59bc, 0x59c3, 0x59d6, 0x59b1, 0x59bd, 0x59c0, 0x59c8, 0x59b4, 0x59c7, 0x5b62, 0x5b65, 0x5b93, 0x5b95, 0x5c44, 0x5c47, 0x5cae, 0x5ca4, 0x5ca0, 0x5cb5, 0x5caf, 0x5ca8, 0x5cac, 0x5c9f, 0x5ca3, 0x5cad, 0x5ca2, 0x5caa, 0x5ca7, 0x5c9d, 0x5ca5, 0x5cb6, 0x5cb0, 0x5ca6, 0x5e17, 0x5e14, 0x5e19, 0x5f28, 0x5f22, 0x5f23, 0x5f24, 0x5f54, 0x5f82, 0x5f7e, 0x5f7d, 0x5fde, 0x5fe5, 0x602d, 0x6026, 0x6019, 0x6032, 0x600b }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcca1[ 94 ] = { 0x6034, 0x600a, 0x6017, 0x6033, 0x601a, 0x601e, 0x602c, 0x6022, 0x600d, 0x6010, 0x602e, 0x6013, 0x6011, 0x600c, 0x6009, 0x601c, 0x6214, 0x623d, 0x62ad, 0x62b4, 0x62d1, 0x62be, 0x62aa, 0x62b6, 0x62ca, 0x62ae, 0x62b3, 0x62af, 0x62bb, 0x62a9, 0x62b0, 0x62b8, 0x653d, 0x65a8, 0x65bb, 0x6609, 0x65fc, 0x6604, 0x6612, 0x6608, 0x65fb, 0x6603, 0x660b, 0x660d, 0x6605, 0x65fd, 0x6611, 0x6610, 0x66f6, 0x670a, 0x6785, 0x676c, 0x678e, 0x6792, 0x6776, 0x677b, 0x6798, 0x6786, 0x6784, 0x6774, 0x678d, 0x678c, 0x677a, 0x679f, 0x6791, 0x6799, 0x6783, 0x677d, 0x6781, 0x6778, 0x6779, 0x6794, 0x6b25, 0x6b80, 0x6b7e, 0x6bde, 0x6c1d, 0x6c93, 0x6cec, 0x6ceb, 0x6cee, 0x6cd9, 0x6cb6, 0x6cd4, 0x6cad, 0x6ce7, 0x6cb7, 0x6cd0, 0x6cc2, 0x6cba, 0x6cc3, 0x6cc6, 0x6ced, 0x6cf2 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcd40[ 63 ] = { 0x6cd2, 0x6cdd, 0x6cb4, 0x6c8a, 0x6c9d, 0x6c80, 0x6cde, 0x6cc0, 0x6d30, 0x6ccd, 0x6cc7, 0x6cb0, 0x6cf9, 0x6ccf, 0x6ce9, 0x6cd1, 0x7094, 0x7098, 0x7085, 0x7093, 0x7086, 0x7084, 0x7091, 0x7096, 0x7082, 0x709a, 0x7083, 0x726a, 0x72d6, 0x72cb, 0x72d8, 0x72c9, 0x72dc, 0x72d2, 0x72d4, 0x72da, 0x72cc, 0x72d1, 0x73a4, 0x73a1, 0x73ad, 0x73a6, 0x73a2, 0x73a0, 0x73ac, 0x739d, 0x74dd, 0x74e8, 0x753f, 0x7540, 0x753e, 0x758c, 0x7598, 0x76af, 0x76f3, 0x76f1, 0x76f0, 0x76f5, 0x77f8, 0x77fc, 0x77f9, 0x77fb, 0x77fa }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcda1[ 94 ] = { 0x77f7, 0x7942, 0x793f, 0x79c5, 0x7a78, 0x7a7b, 0x7afb, 0x7c75, 0x7cfd, 0x8035, 0x808f, 0x80ae, 0x80a3, 0x80b8, 0x80b5, 0x80ad, 0x8220, 0x82a0, 0x82c0, 0x82ab, 0x829a, 0x8298, 0x829b, 0x82b5, 0x82a7, 0x82ae, 0x82bc, 0x829e, 0x82ba, 0x82b4, 0x82a8, 0x82a1, 0x82a9, 0x82c2, 0x82a4, 0x82c3, 0x82b6, 0x82a2, 0x8670, 0x866f, 0x866d, 0x866e, 0x8c56, 0x8fd2, 0x8fcb, 0x8fd3, 0x8fcd, 0x8fd6, 0x8fd5, 0x8fd7, 0x90b2, 0x90b4, 0x90af, 0x90b3, 0x90b0, 0x9639, 0x963d, 0x963c, 0x963a, 0x9643, 0x4fcd, 0x4fc5, 0x4fd3, 0x4fb2, 0x4fc9, 0x4fcb, 0x4fc1, 0x4fd4, 0x4fdc, 0x4fd9, 0x4fbb, 0x4fb3, 0x4fdb, 0x4fc7, 0x4fd6, 0x4fba, 0x4fc0, 0x4fb9, 0x4fec, 0x5244, 0x5249, 0x52c0, 0x52c2, 0x533d, 0x537c, 0x5397, 0x5396, 0x5399, 0x5398, 0x54ba, 0x54a1, 0x54ad, 0x54a5, 0x54cf }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xce40[ 63 ] = { 0x54c3, 0x830d, 0x54b7, 0x54ae, 0x54d6, 0x54b6, 0x54c5, 0x54c6, 0x54a0, 0x5470, 0x54bc, 0x54a2, 0x54be, 0x5472, 0x54de, 0x54b0, 0x57b5, 0x579e, 0x579f, 0x57a4, 0x578c, 0x5797, 0x579d, 0x579b, 0x5794, 0x5798, 0x578f, 0x5799, 0x57a5, 0x579a, 0x5795, 0x58f4, 0x590d, 0x5953, 0x59e1, 0x59de, 0x59ee, 0x5a00, 0x59f1, 0x59dd, 0x59fa, 0x59fd, 0x59fc, 0x59f6, 0x59e4, 0x59f2, 0x59f7, 0x59db, 0x59e9, 0x59f3, 0x59f5, 0x59e0, 0x59fe, 0x59f4, 0x59ed, 0x5ba8, 0x5c4c, 0x5cd0, 0x5cd8, 0x5ccc, 0x5cd7, 0x5ccb, 0x5cdb }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcea1[ 94 ] = { 0x5cde, 0x5cda, 0x5cc9, 0x5cc7, 0x5cca, 0x5cd6, 0x5cd3, 0x5cd4, 0x5ccf, 0x5cc8, 0x5cc6, 0x5cce, 0x5cdf, 0x5cf8, 0x5df9, 0x5e21, 0x5e22, 0x5e23, 0x5e20, 0x5e24, 0x5eb0, 0x5ea4, 0x5ea2, 0x5e9b, 0x5ea3, 0x5ea5, 0x5f07, 0x5f2e, 0x5f56, 0x5f86, 0x6037, 0x6039, 0x6054, 0x6072, 0x605e, 0x6045, 0x6053, 0x6047, 0x6049, 0x605b, 0x604c, 0x6040, 0x6042, 0x605f, 0x6024, 0x6044, 0x6058, 0x6066, 0x606e, 0x6242, 0x6243, 0x62cf, 0x630d, 0x630b, 0x62f5, 0x630e, 0x6303, 0x62eb, 0x62f9, 0x630f, 0x630c, 0x62f8, 0x62f6, 0x6300, 0x6313, 0x6314, 0x62fa, 0x6315, 0x62fb, 0x62f0, 0x6541, 0x6543, 0x65aa, 0x65bf, 0x6636, 0x6621, 0x6632, 0x6635, 0x661c, 0x6626, 0x6622, 0x6633, 0x662b, 0x663a, 0x661d, 0x6634, 0x6639, 0x662e, 0x670f, 0x6710, 0x67c1, 0x67f2, 0x67c8, 0x67ba }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcf40[ 63 ] = { 0x67dc, 0x67bb, 0x67f8, 0x67d8, 0x67c0, 0x67b7, 0x67c5, 0x67eb, 0x67e4, 0x67df, 0x67b5, 0x67cd, 0x67b3, 0x67f7, 0x67f6, 0x67ee, 0x67e3, 0x67c2, 0x67b9, 0x67ce, 0x67e7, 0x67f0, 0x67b2, 0x67fc, 0x67c6, 0x67ed, 0x67cc, 0x67ae, 0x67e6, 0x67db, 0x67fa, 0x67c9, 0x67ca, 0x67c3, 0x67ea, 0x67cb, 0x6b28, 0x6b82, 0x6b84, 0x6bb6, 0x6bd6, 0x6bd8, 0x6be0, 0x6c20, 0x6c21, 0x6d28, 0x6d34, 0x6d2d, 0x6d1f, 0x6d3c, 0x6d3f, 0x6d12, 0x6d0a, 0x6cda, 0x6d33, 0x6d04, 0x6d19, 0x6d3a, 0x6d1a, 0x6d11, 0x6d00, 0x6d1d, 0x6d42 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcfa1[ 94 ] = { 0x6d01, 0x6d18, 0x6d37, 0x6d03, 0x6d0f, 0x6d40, 0x6d07, 0x6d20, 0x6d2c, 0x6d08, 0x6d22, 0x6d09, 0x6d10, 0x70b7, 0x709f, 0x70be, 0x70b1, 0x70b0, 0x70a1, 0x70b4, 0x70b5, 0x70a9, 0x7241, 0x7249, 0x724a, 0x726c, 0x7270, 0x7273, 0x726e, 0x72ca, 0x72e4, 0x72e8, 0x72eb, 0x72df, 0x72ea, 0x72e6, 0x72e3, 0x7385, 0x73cc, 0x73c2, 0x73c8, 0x73c5, 0x73b9, 0x73b6, 0x73b5, 0x73b4, 0x73eb, 0x73bf, 0x73c7, 0x73be, 0x73c3, 0x73c6, 0x73b8, 0x73cb, 0x74ec, 0x74ee, 0x752e, 0x7547, 0x7548, 0x75a7, 0x75aa, 0x7679, 0x76c4, 0x7708, 0x7703, 0x7704, 0x7705, 0x770a, 0x76f7, 0x76fb, 0x76fa, 0x77e7, 0x77e8, 0x7806, 0x7811, 0x7812, 0x7805, 0x7810, 0x780f, 0x780e, 0x7809, 0x7803, 0x7813, 0x794a, 0x794c, 0x794b, 0x7945, 0x7944, 0x79d5, 0x79cd, 0x79cf, 0x79d6, 0x79ce, 0x7a80 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd040[ 63 ] = { 0x7a7e, 0x7ad1, 0x7b00, 0x7b01, 0x7c7a, 0x7c78, 0x7c79, 0x7c7f, 0x7c80, 0x7c81, 0x7d03, 0x7d08, 0x7d01, 0x7f58, 0x7f91, 0x7f8d, 0x7fbe, 0x8007, 0x800e, 0x800f, 0x8014, 0x8037, 0x80d8, 0x80c7, 0x80e0, 0x80d1, 0x80c8, 0x80c2, 0x80d0, 0x80c5, 0x80e3, 0x80d9, 0x80dc, 0x80ca, 0x80d5, 0x80c9, 0x80cf, 0x80d7, 0x80e6, 0x80cd, 0x81ff, 0x8221, 0x8294, 0x82d9, 0x82fe, 0x82f9, 0x8307, 0x82e8, 0x8300, 0x82d5, 0x833a, 0x82eb, 0x82d6, 0x82f4, 0x82ec, 0x82e1, 0x82f2, 0x82f5, 0x830c, 0x82fb, 0x82f6, 0x82f0, 0x82ea }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd0a1[ 94 ] = { 0x82e4, 0x82e0, 0x82fa, 0x82f3, 0x82ed, 0x8677, 0x8674, 0x867c, 0x8673, 0x8841, 0x884e, 0x8867, 0x886a, 0x8869, 0x89d3, 0x8a04, 0x8a07, 0x8d72, 0x8fe3, 0x8fe1, 0x8fee, 0x8fe0, 0x90f1, 0x90bd, 0x90bf, 0x90d5, 0x90c5, 0x90be, 0x90c7, 0x90cb, 0x90c8, 0x91d4, 0x91d3, 0x9654, 0x964f, 0x9651, 0x9653, 0x964a, 0x964e, 0x501e, 0x5005, 0x5007, 0x5013, 0x5022, 0x5030, 0x501b, 0x4ff5, 0x4ff4, 0x5033, 0x5037, 0x502c, 0x4ff6, 0x4ff7, 0x5017, 0x501c, 0x5020, 0x5027, 0x5035, 0x502f, 0x5031, 0x500e, 0x515a, 0x5194, 0x5193, 0x51ca, 0x51c4, 0x51c5, 0x51c8, 0x51ce, 0x5261, 0x525a, 0x5252, 0x525e, 0x525f, 0x5255, 0x5262, 0x52cd, 0x530e, 0x539e, 0x5526, 0x54e2, 0x5517, 0x5512, 0x54e7, 0x54f3, 0x54e4, 0x551a, 0x54ff, 0x5504, 0x5508, 0x54eb, 0x5511, 0x5505, 0x54f1 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd140[ 63 ] = { 0x550a, 0x54fb, 0x54f7, 0x54f8, 0x54e0, 0x550e, 0x5503, 0x550b, 0x5701, 0x5702, 0x57cc, 0x5832, 0x57d5, 0x57d2, 0x57ba, 0x57c6, 0x57bd, 0x57bc, 0x57b8, 0x57b6, 0x57bf, 0x57c7, 0x57d0, 0x57b9, 0x57c1, 0x590e, 0x594a, 0x5a19, 0x5a16, 0x5a2d, 0x5a2e, 0x5a15, 0x5a0f, 0x5a17, 0x5a0a, 0x5a1e, 0x5a33, 0x5b6c, 0x5ba7, 0x5bad, 0x5bac, 0x5c03, 0x5c56, 0x5c54, 0x5cec, 0x5cff, 0x5cee, 0x5cf1, 0x5cf7, 0x5d00, 0x5cf9, 0x5e29, 0x5e28, 0x5ea8, 0x5eae, 0x5eaa, 0x5eac, 0x5f33, 0x5f30, 0x5f67, 0x605d, 0x605a, 0x6067 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd1a1[ 94 ] = { 0x6041, 0x60a2, 0x6088, 0x6080, 0x6092, 0x6081, 0x609d, 0x6083, 0x6095, 0x609b, 0x6097, 0x6087, 0x609c, 0x608e, 0x6219, 0x6246, 0x62f2, 0x6310, 0x6356, 0x632c, 0x6344, 0x6345, 0x6336, 0x6343, 0x63e4, 0x6339, 0x634b, 0x634a, 0x633c, 0x6329, 0x6341, 0x6334, 0x6358, 0x6354, 0x6359, 0x632d, 0x6347, 0x6333, 0x635a, 0x6351, 0x6338, 0x6357, 0x6340, 0x6348, 0x654a, 0x6546, 0x65c6, 0x65c3, 0x65c4, 0x65c2, 0x664a, 0x665f, 0x6647, 0x6651, 0x6712, 0x6713, 0x681f, 0x681a, 0x6849, 0x6832, 0x6833, 0x683b, 0x684b, 0x684f, 0x6816, 0x6831, 0x681c, 0x6835, 0x682b, 0x682d, 0x682f, 0x684e, 0x6844, 0x6834, 0x681d, 0x6812, 0x6814, 0x6826, 0x6828, 0x682e, 0x684d, 0x683a, 0x6825, 0x6820, 0x6b2c, 0x6b2f, 0x6b2d, 0x6b31, 0x6b34, 0x6b6d, 0x8082, 0x6b88, 0x6be6, 0x6be4 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd240[ 63 ] = { 0x6be8, 0x6be3, 0x6be2, 0x6be7, 0x6c25, 0x6d7a, 0x6d63, 0x6d64, 0x6d76, 0x6d0d, 0x6d61, 0x6d92, 0x6d58, 0x6d62, 0x6d6d, 0x6d6f, 0x6d91, 0x6d8d, 0x6def, 0x6d7f, 0x6d86, 0x6d5e, 0x6d67, 0x6d60, 0x6d97, 0x6d70, 0x6d7c, 0x6d5f, 0x6d82, 0x6d98, 0x6d2f, 0x6d68, 0x6d8b, 0x6d7e, 0x6d80, 0x6d84, 0x6d16, 0x6d83, 0x6d7b, 0x6d7d, 0x6d75, 0x6d90, 0x70dc, 0x70d3, 0x70d1, 0x70dd, 0x70cb, 0x7f39, 0x70e2, 0x70d7, 0x70d2, 0x70de, 0x70e0, 0x70d4, 0x70cd, 0x70c5, 0x70c6, 0x70c7, 0x70da, 0x70ce, 0x70e1, 0x7242, 0x7278 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd2a1[ 94 ] = { 0x7277, 0x7276, 0x7300, 0x72fa, 0x72f4, 0x72fe, 0x72f6, 0x72f3, 0x72fb, 0x7301, 0x73d3, 0x73d9, 0x73e5, 0x73d6, 0x73bc, 0x73e7, 0x73e3, 0x73e9, 0x73dc, 0x73d2, 0x73db, 0x73d4, 0x73dd, 0x73da, 0x73d7, 0x73d8, 0x73e8, 0x74de, 0x74df, 0x74f4, 0x74f5, 0x7521, 0x755b, 0x755f, 0x75b0, 0x75c1, 0x75bb, 0x75c4, 0x75c0, 0x75bf, 0x75b6, 0x75ba, 0x768a, 0x76c9, 0x771d, 0x771b, 0x7710, 0x7713, 0x7712, 0x7723, 0x7711, 0x7715, 0x7719, 0x771a, 0x7722, 0x7727, 0x7823, 0x782c, 0x7822, 0x7835, 0x782f, 0x7828, 0x782e, 0x782b, 0x7821, 0x7829, 0x7833, 0x782a, 0x7831, 0x7954, 0x795b, 0x794f, 0x795c, 0x7953, 0x7952, 0x7951, 0x79eb, 0x79ec, 0x79e0, 0x79ee, 0x79ed, 0x79ea, 0x79dc, 0x79de, 0x79dd, 0x7a86, 0x7a89, 0x7a85, 0x7a8b, 0x7a8c, 0x7a8a, 0x7a87, 0x7ad8, 0x7b10 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd340[ 63 ] = { 0x7b04, 0x7b13, 0x7b05, 0x7b0f, 0x7b08, 0x7b0a, 0x7b0e, 0x7b09, 0x7b12, 0x7c84, 0x7c91, 0x7c8a, 0x7c8c, 0x7c88, 0x7c8d, 0x7c85, 0x7d1e, 0x7d1d, 0x7d11, 0x7d0e, 0x7d18, 0x7d16, 0x7d13, 0x7d1f, 0x7d12, 0x7d0f, 0x7d0c, 0x7f5c, 0x7f61, 0x7f5e, 0x7f60, 0x7f5d, 0x7f5b, 0x7f96, 0x7f92, 0x7fc3, 0x7fc2, 0x7fc0, 0x8016, 0x803e, 0x8039, 0x80fa, 0x80f2, 0x80f9, 0x80f5, 0x8101, 0x80fb, 0x8100, 0x8201, 0x822f, 0x8225, 0x8333, 0x832d, 0x8344, 0x8319, 0x8351, 0x8325, 0x8356, 0x833f, 0x8341, 0x8326, 0x831c, 0x8322 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd3a1[ 94 ] = { 0x8342, 0x834e, 0x831b, 0x832a, 0x8308, 0x833c, 0x834d, 0x8316, 0x8324, 0x8320, 0x8337, 0x832f, 0x8329, 0x8347, 0x8345, 0x834c, 0x8353, 0x831e, 0x832c, 0x834b, 0x8327, 0x8348, 0x8653, 0x8652, 0x86a2, 0x86a8, 0x8696, 0x868d, 0x8691, 0x869e, 0x8687, 0x8697, 0x8686, 0x868b, 0x869a, 0x8685, 0x86a5, 0x8699, 0x86a1, 0x86a7, 0x8695, 0x8698, 0x868e, 0x869d, 0x8690, 0x8694, 0x8843, 0x8844, 0x886d, 0x8875, 0x8876, 0x8872, 0x8880, 0x8871, 0x887f, 0x886f, 0x8883, 0x887e, 0x8874, 0x887c, 0x8a12, 0x8c47, 0x8c57, 0x8c7b, 0x8ca4, 0x8ca3, 0x8d76, 0x8d78, 0x8db5, 0x8db7, 0x8db6, 0x8ed1, 0x8ed3, 0x8ffe, 0x8ff5, 0x9002, 0x8fff, 0x8ffb, 0x9004, 0x8ffc, 0x8ff6, 0x90d6, 0x90e0, 0x90d9, 0x90da, 0x90e3, 0x90df, 0x90e5, 0x90d8, 0x90db, 0x90d7, 0x90dc, 0x90e4, 0x9150 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd440[ 63 ] = { 0x914e, 0x914f, 0x91d5, 0x91e2, 0x91da, 0x965c, 0x965f, 0x96bc, 0x98e3, 0x9adf, 0x9b2f, 0x4e7f, 0x5070, 0x506a, 0x5061, 0x505e, 0x5060, 0x5053, 0x504b, 0x505d, 0x5072, 0x5048, 0x504d, 0x5041, 0x505b, 0x504a, 0x5062, 0x5015, 0x5045, 0x505f, 0x5069, 0x506b, 0x5063, 0x5064, 0x5046, 0x5040, 0x506e, 0x5073, 0x5057, 0x5051, 0x51d0, 0x526b, 0x526d, 0x526c, 0x526e, 0x52d6, 0x52d3, 0x532d, 0x539c, 0x5575, 0x5576, 0x553c, 0x554d, 0x5550, 0x5534, 0x552a, 0x5551, 0x5562, 0x5536, 0x5535, 0x5530, 0x5552, 0x5545 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd4a1[ 94 ] = { 0x550c, 0x5532, 0x5565, 0x554e, 0x5539, 0x5548, 0x552d, 0x553b, 0x5540, 0x554b, 0x570a, 0x5707, 0x57fb, 0x5814, 0x57e2, 0x57f6, 0x57dc, 0x57f4, 0x5800, 0x57ed, 0x57fd, 0x5808, 0x57f8, 0x580b, 0x57f3, 0x57cf, 0x5807, 0x57ee, 0x57e3, 0x57f2, 0x57e5, 0x57ec, 0x57e1, 0x580e, 0x57fc, 0x5810, 0x57e7, 0x5801, 0x580c, 0x57f1, 0x57e9, 0x57f0, 0x580d, 0x5804, 0x595c, 0x5a60, 0x5a58, 0x5a55, 0x5a67, 0x5a5e, 0x5a38, 0x5a35, 0x5a6d, 0x5a50, 0x5a5f, 0x5a65, 0x5a6c, 0x5a53, 0x5a64, 0x5a57, 0x5a43, 0x5a5d, 0x5a52, 0x5a44, 0x5a5b, 0x5a48, 0x5a8e, 0x5a3e, 0x5a4d, 0x5a39, 0x5a4c, 0x5a70, 0x5a69, 0x5a47, 0x5a51, 0x5a56, 0x5a42, 0x5a5c, 0x5b72, 0x5b6e, 0x5bc1, 0x5bc0, 0x5c59, 0x5d1e, 0x5d0b, 0x5d1d, 0x5d1a, 0x5d20, 0x5d0c, 0x5d28, 0x5d0d, 0x5d26, 0x5d25, 0x5d0f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd540[ 63 ] = { 0x5d30, 0x5d12, 0x5d23, 0x5d1f, 0x5d2e, 0x5e3e, 0x5e34, 0x5eb1, 0x5eb4, 0x5eb9, 0x5eb2, 0x5eb3, 0x5f36, 0x5f38, 0x5f9b, 0x5f96, 0x5f9f, 0x608a, 0x6090, 0x6086, 0x60be, 0x60b0, 0x60ba, 0x60d3, 0x60d4, 0x60cf, 0x60e4, 0x60d9, 0x60dd, 0x60c8, 0x60b1, 0x60db, 0x60b7, 0x60ca, 0x60bf, 0x60c3, 0x60cd, 0x60c0, 0x6332, 0x6365, 0x638a, 0x6382, 0x637d, 0x63bd, 0x639e, 0x63ad, 0x639d, 0x6397, 0x63ab, 0x638e, 0x636f, 0x6387, 0x6390, 0x636e, 0x63af, 0x6375, 0x639c, 0x636d, 0x63ae, 0x637c, 0x63a4, 0x633b, 0x639f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd5a1[ 94 ] = { 0x6378, 0x6385, 0x6381, 0x6391, 0x638d, 0x6370, 0x6553, 0x65cd, 0x6665, 0x6661, 0x665b, 0x6659, 0x665c, 0x6662, 0x6718, 0x6879, 0x6887, 0x6890, 0x689c, 0x686d, 0x686e, 0x68ae, 0x68ab, 0x6956, 0x686f, 0x68a3, 0x68ac, 0x68a9, 0x6875, 0x6874, 0x68b2, 0x688f, 0x6877, 0x6892, 0x687c, 0x686b, 0x6872, 0x68aa, 0x6880, 0x6871, 0x687e, 0x689b, 0x6896, 0x688b, 0x68a0, 0x6889, 0x68a4, 0x6878, 0x687b, 0x6891, 0x688c, 0x688a, 0x687d, 0x6b36, 0x6b33, 0x6b37, 0x6b38, 0x6b91, 0x6b8f, 0x6b8d, 0x6b8e, 0x6b8c, 0x6c2a, 0x6dc0, 0x6dab, 0x6db4, 0x6db3, 0x6e74, 0x6dac, 0x6de9, 0x6de2, 0x6db7, 0x6df6, 0x6dd4, 0x6e00, 0x6dc8, 0x6de0, 0x6ddf, 0x6dd6, 0x6dbe, 0x6de5, 0x6ddc, 0x6ddd, 0x6ddb, 0x6df4, 0x6dca, 0x6dbd, 0x6ded, 0x6df0, 0x6dba, 0x6dd5, 0x6dc2, 0x6dcf, 0x6dc9 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd640[ 63 ] = { 0x6dd0, 0x6df2, 0x6dd3, 0x6dfd, 0x6dd7, 0x6dcd, 0x6de3, 0x6dbb, 0x70fa, 0x710d, 0x70f7, 0x7117, 0x70f4, 0x710c, 0x70f0, 0x7104, 0x70f3, 0x7110, 0x70fc, 0x70ff, 0x7106, 0x7113, 0x7100, 0x70f8, 0x70f6, 0x710b, 0x7102, 0x710e, 0x727e, 0x727b, 0x727c, 0x727f, 0x731d, 0x7317, 0x7307, 0x7311, 0x7318, 0x730a, 0x7308, 0x72ff, 0x730f, 0x731e, 0x7388, 0x73f6, 0x73f8, 0x73f5, 0x7404, 0x7401, 0x73fd, 0x7407, 0x7400, 0x73fa, 0x73fc, 0x73ff, 0x740c, 0x740b, 0x73f4, 0x7408, 0x7564, 0x7563, 0x75ce, 0x75d2, 0x75cf }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd6a1[ 94 ] = { 0x75cb, 0x75cc, 0x75d1, 0x75d0, 0x768f, 0x7689, 0x76d3, 0x7739, 0x772f, 0x772d, 0x7731, 0x7732, 0x7734, 0x7733, 0x773d, 0x7725, 0x773b, 0x7735, 0x7848, 0x7852, 0x7849, 0x784d, 0x784a, 0x784c, 0x7826, 0x7845, 0x7850, 0x7964, 0x7967, 0x7969, 0x796a, 0x7963, 0x796b, 0x7961, 0x79bb, 0x79fa, 0x79f8, 0x79f6, 0x79f7, 0x7a8f, 0x7a94, 0x7a90, 0x7b35, 0x7b47, 0x7b34, 0x7b25, 0x7b30, 0x7b22, 0x7b24, 0x7b33, 0x7b18, 0x7b2a, 0x7b1d, 0x7b31, 0x7b2b, 0x7b2d, 0x7b2f, 0x7b32, 0x7b38, 0x7b1a, 0x7b23, 0x7c94, 0x7c98, 0x7c96, 0x7ca3, 0x7d35, 0x7d3d, 0x7d38, 0x7d36, 0x7d3a, 0x7d45, 0x7d2c, 0x7d29, 0x7d41, 0x7d47, 0x7d3e, 0x7d3f, 0x7d4a, 0x7d3b, 0x7d28, 0x7f63, 0x7f95, 0x7f9c, 0x7f9d, 0x7f9b, 0x7fca, 0x7fcb, 0x7fcd, 0x7fd0, 0x7fd1, 0x7fc7, 0x7fcf, 0x7fc9, 0x801f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd740[ 63 ] = { 0x801e, 0x801b, 0x8047, 0x8043, 0x8048, 0x8118, 0x8125, 0x8119, 0x811b, 0x812d, 0x811f, 0x812c, 0x811e, 0x8121, 0x8115, 0x8127, 0x811d, 0x8122, 0x8211, 0x8238, 0x8233, 0x823a, 0x8234, 0x8232, 0x8274, 0x8390, 0x83a3, 0x83a8, 0x838d, 0x837a, 0x8373, 0x83a4, 0x8374, 0x838f, 0x8381, 0x8395, 0x8399, 0x8375, 0x8394, 0x83a9, 0x837d, 0x8383, 0x838c, 0x839d, 0x839b, 0x83aa, 0x838b, 0x837e, 0x83a5, 0x83af, 0x8388, 0x8397, 0x83b0, 0x837f, 0x83a6, 0x8387, 0x83ae, 0x8376, 0x839a, 0x8659, 0x8656, 0x86bf, 0x86b7 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd7a1[ 94 ] = { 0x86c2, 0x86c1, 0x86c5, 0x86ba, 0x86b0, 0x86c8, 0x86b9, 0x86b3, 0x86b8, 0x86cc, 0x86b4, 0x86bb, 0x86bc, 0x86c3, 0x86bd, 0x86be, 0x8852, 0x8889, 0x8895, 0x88a8, 0x88a2, 0x88aa, 0x889a, 0x8891, 0x88a1, 0x889f, 0x8898, 0x88a7, 0x8899, 0x889b, 0x8897, 0x88a4, 0x88ac, 0x888c, 0x8893, 0x888e, 0x8982, 0x89d6, 0x89d9, 0x89d5, 0x8a30, 0x8a27, 0x8a2c, 0x8a1e, 0x8c39, 0x8c3b, 0x8c5c, 0x8c5d, 0x8c7d, 0x8ca5, 0x8d7d, 0x8d7b, 0x8d79, 0x8dbc, 0x8dc2, 0x8db9, 0x8dbf, 0x8dc1, 0x8ed8, 0x8ede, 0x8edd, 0x8edc, 0x8ed7, 0x8ee0, 0x8ee1, 0x9024, 0x900b, 0x9011, 0x901c, 0x900c, 0x9021, 0x90ef, 0x90ea, 0x90f0, 0x90f4, 0x90f2, 0x90f3, 0x90d4, 0x90eb, 0x90ec, 0x90e9, 0x9156, 0x9158, 0x915a, 0x9153, 0x9155, 0x91ec, 0x91f4, 0x91f1, 0x91f3, 0x91f8, 0x91e4, 0x91f9, 0x91ea }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd840[ 63 ] = { 0x91eb, 0x91f7, 0x91e8, 0x91ee, 0x957a, 0x9586, 0x9588, 0x967c, 0x966d, 0x966b, 0x9671, 0x966f, 0x96bf, 0x976a, 0x9804, 0x98e5, 0x9997, 0x509b, 0x5095, 0x5094, 0x509e, 0x508b, 0x50a3, 0x5083, 0x508c, 0x508e, 0x509d, 0x5068, 0x509c, 0x5092, 0x5082, 0x5087, 0x515f, 0x51d4, 0x5312, 0x5311, 0x53a4, 0x53a7, 0x5591, 0x55a8, 0x55a5, 0x55ad, 0x5577, 0x5645, 0x55a2, 0x5593, 0x5588, 0x558f, 0x55b5, 0x5581, 0x55a3, 0x5592, 0x55a4, 0x557d, 0x558c, 0x55a6, 0x557f, 0x5595, 0x55a1, 0x558e, 0x570c, 0x5829, 0x5837 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd8a1[ 94 ] = { 0x5819, 0x581e, 0x5827, 0x5823, 0x5828, 0x57f5, 0x5848, 0x5825, 0x581c, 0x581b, 0x5833, 0x583f, 0x5836, 0x582e, 0x5839, 0x5838, 0x582d, 0x582c, 0x583b, 0x5961, 0x5aaf, 0x5a94, 0x5a9f, 0x5a7a, 0x5aa2, 0x5a9e, 0x5a78, 0x5aa6, 0x5a7c, 0x5aa5, 0x5aac, 0x5a95, 0x5aae, 0x5a37, 0x5a84, 0x5a8a, 0x5a97, 0x5a83, 0x5a8b, 0x5aa9, 0x5a7b, 0x5a7d, 0x5a8c, 0x5a9c, 0x5a8f, 0x5a93, 0x5a9d, 0x5bea, 0x5bcd, 0x5bcb, 0x5bd4, 0x5bd1, 0x5bca, 0x5bce, 0x5c0c, 0x5c30, 0x5d37, 0x5d43, 0x5d6b, 0x5d41, 0x5d4b, 0x5d3f, 0x5d35, 0x5d51, 0x5d4e, 0x5d55, 0x5d33, 0x5d3a, 0x5d52, 0x5d3d, 0x5d31, 0x5d59, 0x5d42, 0x5d39, 0x5d49, 0x5d38, 0x5d3c, 0x5d32, 0x5d36, 0x5d40, 0x5d45, 0x5e44, 0x5e41, 0x5f58, 0x5fa6, 0x5fa5, 0x5fab, 0x60c9, 0x60b9, 0x60cc, 0x60e2, 0x60ce, 0x60c4, 0x6114 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd940[ 63 ] = { 0x60f2, 0x610a, 0x6116, 0x6105, 0x60f5, 0x6113, 0x60f8, 0x60fc, 0x60fe, 0x60c1, 0x6103, 0x6118, 0x611d, 0x6110, 0x60ff, 0x6104, 0x610b, 0x624a, 0x6394, 0x63b1, 0x63b0, 0x63ce, 0x63e5, 0x63e8, 0x63ef, 0x63c3, 0x649d, 0x63f3, 0x63ca, 0x63e0, 0x63f6, 0x63d5, 0x63f2, 0x63f5, 0x6461, 0x63df, 0x63be, 0x63dd, 0x63dc, 0x63c4, 0x63d8, 0x63d3, 0x63c2, 0x63c7, 0x63cc, 0x63cb, 0x63c8, 0x63f0, 0x63d7, 0x63d9, 0x6532, 0x6567, 0x656a, 0x6564, 0x655c, 0x6568, 0x6565, 0x658c, 0x659d, 0x659e, 0x65ae, 0x65d0, 0x65d2 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd9a1[ 94 ] = { 0x667c, 0x666c, 0x667b, 0x6680, 0x6671, 0x6679, 0x666a, 0x6672, 0x6701, 0x690c, 0x68d3, 0x6904, 0x68dc, 0x692a, 0x68ec, 0x68ea, 0x68f1, 0x690f, 0x68d6, 0x68f7, 0x68eb, 0x68e4, 0x68f6, 0x6913, 0x6910, 0x68f3, 0x68e1, 0x6907, 0x68cc, 0x6908, 0x6970, 0x68b4, 0x6911, 0x68ef, 0x68c6, 0x6914, 0x68f8, 0x68d0, 0x68fd, 0x68fc, 0x68e8, 0x690b, 0x690a, 0x6917, 0x68ce, 0x68c8, 0x68dd, 0x68de, 0x68e6, 0x68f4, 0x68d1, 0x6906, 0x68d4, 0x68e9, 0x6915, 0x6925, 0x68c7, 0x6b39, 0x6b3b, 0x6b3f, 0x6b3c, 0x6b94, 0x6b97, 0x6b99, 0x6b95, 0x6bbd, 0x6bf0, 0x6bf2, 0x6bf3, 0x6c30, 0x6dfc, 0x6e46, 0x6e47, 0x6e1f, 0x6e49, 0x6e88, 0x6e3c, 0x6e3d, 0x6e45, 0x6e62, 0x6e2b, 0x6e3f, 0x6e41, 0x6e5d, 0x6e73, 0x6e1c, 0x6e33, 0x6e4b, 0x6e40, 0x6e51, 0x6e3b, 0x6e03, 0x6e2e, 0x6e5e }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xda40[ 63 ] = { 0x6e68, 0x6e5c, 0x6e61, 0x6e31, 0x6e28, 0x6e60, 0x6e71, 0x6e6b, 0x6e39, 0x6e22, 0x6e30, 0x6e53, 0x6e65, 0x6e27, 0x6e78, 0x6e64, 0x6e77, 0x6e55, 0x6e79, 0x6e52, 0x6e66, 0x6e35, 0x6e36, 0x6e5a, 0x7120, 0x711e, 0x712f, 0x70fb, 0x712e, 0x7131, 0x7123, 0x7125, 0x7122, 0x7132, 0x711f, 0x7128, 0x713a, 0x711b, 0x724b, 0x725a, 0x7288, 0x7289, 0x7286, 0x7285, 0x728b, 0x7312, 0x730b, 0x7330, 0x7322, 0x7331, 0x7333, 0x7327, 0x7332, 0x732d, 0x7326, 0x7323, 0x7335, 0x730c, 0x742e, 0x742c, 0x7430, 0x742b, 0x7416 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdaa1[ 94 ] = { 0x741a, 0x7421, 0x742d, 0x7431, 0x7424, 0x7423, 0x741d, 0x7429, 0x7420, 0x7432, 0x74fb, 0x752f, 0x756f, 0x756c, 0x75e7, 0x75da, 0x75e1, 0x75e6, 0x75dd, 0x75df, 0x75e4, 0x75d7, 0x7695, 0x7692, 0x76da, 0x7746, 0x7747, 0x7744, 0x774d, 0x7745, 0x774a, 0x774e, 0x774b, 0x774c, 0x77de, 0x77ec, 0x7860, 0x7864, 0x7865, 0x785c, 0x786d, 0x7871, 0x786a, 0x786e, 0x7870, 0x7869, 0x7868, 0x785e, 0x7862, 0x7974, 0x7973, 0x7972, 0x7970, 0x7a02, 0x7a0a, 0x7a03, 0x7a0c, 0x7a04, 0x7a99, 0x7ae6, 0x7ae4, 0x7b4a, 0x7b3b, 0x7b44, 0x7b48, 0x7b4c, 0x7b4e, 0x7b40, 0x7b58, 0x7b45, 0x7ca2, 0x7c9e, 0x7ca8, 0x7ca1, 0x7d58, 0x7d6f, 0x7d63, 0x7d53, 0x7d56, 0x7d67, 0x7d6a, 0x7d4f, 0x7d6d, 0x7d5c, 0x7d6b, 0x7d52, 0x7d54, 0x7d69, 0x7d51, 0x7d5f, 0x7d4e, 0x7f3e, 0x7f3f, 0x7f65 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdb40[ 63 ] = { 0x7f66, 0x7fa2, 0x7fa0, 0x7fa1, 0x7fd7, 0x8051, 0x804f, 0x8050, 0x80fe, 0x80d4, 0x8143, 0x814a, 0x8152, 0x814f, 0x8147, 0x813d, 0x814d, 0x813a, 0x81e6, 0x81ee, 0x81f7, 0x81f8, 0x81f9, 0x8204, 0x823c, 0x823d, 0x823f, 0x8275, 0x833b, 0x83cf, 0x83f9, 0x8423, 0x83c0, 0x83e8, 0x8412, 0x83e7, 0x83e4, 0x83fc, 0x83f6, 0x8410, 0x83c6, 0x83c8, 0x83eb, 0x83e3, 0x83bf, 0x8401, 0x83dd, 0x83e5, 0x83d8, 0x83ff, 0x83e1, 0x83cb, 0x83ce, 0x83d6, 0x83f5, 0x83c9, 0x8409, 0x840f, 0x83de, 0x8411, 0x8406, 0x83c2, 0x83f3 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdba1[ 94 ] = { 0x83d5, 0x83fa, 0x83c7, 0x83d1, 0x83ea, 0x8413, 0x83c3, 0x83ec, 0x83ee, 0x83c4, 0x83fb, 0x83d7, 0x83e2, 0x841b, 0x83db, 0x83fe, 0x86d8, 0x86e2, 0x86e6, 0x86d3, 0x86e3, 0x86da, 0x86ea, 0x86dd, 0x86eb, 0x86dc, 0x86ec, 0x86e9, 0x86d7, 0x86e8, 0x86d1, 0x8848, 0x8856, 0x8855, 0x88ba, 0x88d7, 0x88b9, 0x88b8, 0x88c0, 0x88be, 0x88b6, 0x88bc, 0x88b7, 0x88bd, 0x88b2, 0x8901, 0x88c9, 0x8995, 0x8998, 0x8997, 0x89dd, 0x89da, 0x89db, 0x8a4e, 0x8a4d, 0x8a39, 0x8a59, 0x8a40, 0x8a57, 0x8a58, 0x8a44, 0x8a45, 0x8a52, 0x8a48, 0x8a51, 0x8a4a, 0x8a4c, 0x8a4f, 0x8c5f, 0x8c81, 0x8c80, 0x8cba, 0x8cbe, 0x8cb0, 0x8cb9, 0x8cb5, 0x8d84, 0x8d80, 0x8d89, 0x8dd8, 0x8dd3, 0x8dcd, 0x8dc7, 0x8dd6, 0x8ddc, 0x8dcf, 0x8dd5, 0x8dd9, 0x8dc8, 0x8dd7, 0x8dc5, 0x8eef, 0x8ef7, 0x8efa }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdc40[ 63 ] = { 0x8ef9, 0x8ee6, 0x8eee, 0x8ee5, 0x8ef5, 0x8ee7, 0x8ee8, 0x8ef6, 0x8eeb, 0x8ef1, 0x8eec, 0x8ef4, 0x8ee9, 0x902d, 0x9034, 0x902f, 0x9106, 0x912c, 0x9104, 0x90ff, 0x90fc, 0x9108, 0x90f9, 0x90fb, 0x9101, 0x9100, 0x9107, 0x9105, 0x9103, 0x9161, 0x9164, 0x915f, 0x9162, 0x9160, 0x9201, 0x920a, 0x9225, 0x9203, 0x921a, 0x9226, 0x920f, 0x920c, 0x9200, 0x9212, 0x91ff, 0x91fd, 0x9206, 0x9204, 0x9227, 0x9202, 0x921c, 0x9224, 0x9219, 0x9217, 0x9205, 0x9216, 0x957b, 0x958d, 0x958c, 0x9590, 0x9687, 0x967e, 0x9688 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdca1[ 94 ] = { 0x9689, 0x9683, 0x9680, 0x96c2, 0x96c8, 0x96c3, 0x96f1, 0x96f0, 0x976c, 0x9770, 0x976e, 0x9807, 0x98a9, 0x98eb, 0x9ce6, 0x9ef9, 0x4e83, 0x4e84, 0x4eb6, 0x50bd, 0x50bf, 0x50c6, 0x50ae, 0x50c4, 0x50ca, 0x50b4, 0x50c8, 0x50c2, 0x50b0, 0x50c1, 0x50ba, 0x50b1, 0x50cb, 0x50c9, 0x50b6, 0x50b8, 0x51d7, 0x527a, 0x5278, 0x527b, 0x527c, 0x55c3, 0x55db, 0x55cc, 0x55d0, 0x55cb, 0x55ca, 0x55dd, 0x55c0, 0x55d4, 0x55c4, 0x55e9, 0x55bf, 0x55d2, 0x558d, 0x55cf, 0x55d5, 0x55e2, 0x55d6, 0x55c8, 0x55f2, 0x55cd, 0x55d9, 0x55c2, 0x5714, 0x5853, 0x5868, 0x5864, 0x584f, 0x584d, 0x5849, 0x586f, 0x5855, 0x584e, 0x585d, 0x5859, 0x5865, 0x585b, 0x583d, 0x5863, 0x5871, 0x58fc, 0x5ac7, 0x5ac4, 0x5acb, 0x5aba, 0x5ab8, 0x5ab1, 0x5ab5, 0x5ab0, 0x5abf, 0x5ac8, 0x5abb, 0x5ac6 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdd40[ 63 ] = { 0x5ab7, 0x5ac0, 0x5aca, 0x5ab4, 0x5ab6, 0x5acd, 0x5ab9, 0x5a90, 0x5bd6, 0x5bd8, 0x5bd9, 0x5c1f, 0x5c33, 0x5d71, 0x5d63, 0x5d4a, 0x5d65, 0x5d72, 0x5d6c, 0x5d5e, 0x5d68, 0x5d67, 0x5d62, 0x5df0, 0x5e4f, 0x5e4e, 0x5e4a, 0x5e4d, 0x5e4b, 0x5ec5, 0x5ecc, 0x5ec6, 0x5ecb, 0x5ec7, 0x5f40, 0x5faf, 0x5fad, 0x60f7, 0x6149, 0x614a, 0x612b, 0x6145, 0x6136, 0x6132, 0x612e, 0x6146, 0x612f, 0x614f, 0x6129, 0x6140, 0x6220, 0x9168, 0x6223, 0x6225, 0x6224, 0x63c5, 0x63f1, 0x63eb, 0x6410, 0x6412, 0x6409, 0x6420, 0x6424 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdda1[ 94 ] = { 0x6433, 0x6443, 0x641f, 0x6415, 0x6418, 0x6439, 0x6437, 0x6422, 0x6423, 0x640c, 0x6426, 0x6430, 0x6428, 0x6441, 0x6435, 0x642f, 0x640a, 0x641a, 0x6440, 0x6425, 0x6427, 0x640b, 0x63e7, 0x641b, 0x642e, 0x6421, 0x640e, 0x656f, 0x6592, 0x65d3, 0x6686, 0x668c, 0x6695, 0x6690, 0x668b, 0x668a, 0x6699, 0x6694, 0x6678, 0x6720, 0x6966, 0x695f, 0x6938, 0x694e, 0x6962, 0x6971, 0x693f, 0x6945, 0x696a, 0x6939, 0x6942, 0x6957, 0x6959, 0x697a, 0x6948, 0x6949, 0x6935, 0x696c, 0x6933, 0x693d, 0x6965, 0x68f0, 0x6978, 0x6934, 0x6969, 0x6940, 0x696f, 0x6944, 0x6976, 0x6958, 0x6941, 0x6974, 0x694c, 0x693b, 0x694b, 0x6937, 0x695c, 0x694f, 0x6951, 0x6932, 0x6952, 0x692f, 0x697b, 0x693c, 0x6b46, 0x6b45, 0x6b43, 0x6b42, 0x6b48, 0x6b41, 0x6b9b, 0xfa0d, 0x6bfb, 0x6bfc }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xde40[ 63 ] = { 0x6bf9, 0x6bf7, 0x6bf8, 0x6e9b, 0x6ed6, 0x6ec8, 0x6e8f, 0x6ec0, 0x6e9f, 0x6e93, 0x6e94, 0x6ea0, 0x6eb1, 0x6eb9, 0x6ec6, 0x6ed2, 0x6ebd, 0x6ec1, 0x6e9e, 0x6ec9, 0x6eb7, 0x6eb0, 0x6ecd, 0x6ea6, 0x6ecf, 0x6eb2, 0x6ebe, 0x6ec3, 0x6edc, 0x6ed8, 0x6e99, 0x6e92, 0x6e8e, 0x6e8d, 0x6ea4, 0x6ea1, 0x6ebf, 0x6eb3, 0x6ed0, 0x6eca, 0x6e97, 0x6eae, 0x6ea3, 0x7147, 0x7154, 0x7152, 0x7163, 0x7160, 0x7141, 0x715d, 0x7162, 0x7172, 0x7178, 0x716a, 0x7161, 0x7142, 0x7158, 0x7143, 0x714b, 0x7170, 0x715f, 0x7150, 0x7153 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdea1[ 94 ] = { 0x7144, 0x714d, 0x715a, 0x724f, 0x728d, 0x728c, 0x7291, 0x7290, 0x728e, 0x733c, 0x7342, 0x733b, 0x733a, 0x7340, 0x734a, 0x7349, 0x7444, 0x744a, 0x744b, 0x7452, 0x7451, 0x7457, 0x7440, 0x744f, 0x7450, 0x744e, 0x7442, 0x7446, 0x744d, 0x7454, 0x74e1, 0x74ff, 0x74fe, 0x74fd, 0x751d, 0x7579, 0x7577, 0x6983, 0x75ef, 0x760f, 0x7603, 0x75f7, 0x75fe, 0x75fc, 0x75f9, 0x75f8, 0x7610, 0x75fb, 0x75f6, 0x75ed, 0x75f5, 0x75fd, 0x7699, 0x76b5, 0x76dd, 0x7755, 0x775f, 0x7760, 0x7752, 0x7756, 0x775a, 0x7769, 0x7767, 0x7754, 0x7759, 0x776d, 0x77e0, 0x7887, 0x789a, 0x7894, 0x788f, 0x7884, 0x7895, 0x7885, 0x7886, 0x78a1, 0x7883, 0x7879, 0x7899, 0x7880, 0x7896, 0x787b, 0x797c, 0x7982, 0x797d, 0x7979, 0x7a11, 0x7a18, 0x7a19, 0x7a12, 0x7a17, 0x7a15, 0x7a22, 0x7a13 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdf40[ 63 ] = { 0x7a1b, 0x7a10, 0x7aa3, 0x7aa2, 0x7a9e, 0x7aeb, 0x7b66, 0x7b64, 0x7b6d, 0x7b74, 0x7b69, 0x7b72, 0x7b65, 0x7b73, 0x7b71, 0x7b70, 0x7b61, 0x7b78, 0x7b76, 0x7b63, 0x7cb2, 0x7cb4, 0x7caf, 0x7d88, 0x7d86, 0x7d80, 0x7d8d, 0x7d7f, 0x7d85, 0x7d7a, 0x7d8e, 0x7d7b, 0x7d83, 0x7d7c, 0x7d8c, 0x7d94, 0x7d84, 0x7d7d, 0x7d92, 0x7f6d, 0x7f6b, 0x7f67, 0x7f68, 0x7f6c, 0x7fa6, 0x7fa5, 0x7fa7, 0x7fdb, 0x7fdc, 0x8021, 0x8164, 0x8160, 0x8177, 0x815c, 0x8169, 0x815b, 0x8162, 0x8172, 0x6721, 0x815e, 0x8176, 0x8167, 0x816f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdfa1[ 94 ] = { 0x8144, 0x8161, 0x821d, 0x8249, 0x8244, 0x8240, 0x8242, 0x8245, 0x84f1, 0x843f, 0x8456, 0x8476, 0x8479, 0x848f, 0x848d, 0x8465, 0x8451, 0x8440, 0x8486, 0x8467, 0x8430, 0x844d, 0x847d, 0x845a, 0x8459, 0x8474, 0x8473, 0x845d, 0x8507, 0x845e, 0x8437, 0x843a, 0x8434, 0x847a, 0x8443, 0x8478, 0x8432, 0x8445, 0x8429, 0x83d9, 0x844b, 0x842f, 0x8442, 0x842d, 0x845f, 0x8470, 0x8439, 0x844e, 0x844c, 0x8452, 0x846f, 0x84c5, 0x848e, 0x843b, 0x8447, 0x8436, 0x8433, 0x8468, 0x847e, 0x8444, 0x842b, 0x8460, 0x8454, 0x846e, 0x8450, 0x870b, 0x8704, 0x86f7, 0x870c, 0x86fa, 0x86d6, 0x86f5, 0x874d, 0x86f8, 0x870e, 0x8709, 0x8701, 0x86f6, 0x870d, 0x8705, 0x88d6, 0x88cb, 0x88cd, 0x88ce, 0x88de, 0x88db, 0x88da, 0x88cc, 0x88d0, 0x8985, 0x899b, 0x89df, 0x89e5, 0x89e4 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe040[ 63 ] = { 0x89e1, 0x89e0, 0x89e2, 0x89dc, 0x89e6, 0x8a76, 0x8a86, 0x8a7f, 0x8a61, 0x8a3f, 0x8a77, 0x8a82, 0x8a84, 0x8a75, 0x8a83, 0x8a81, 0x8a74, 0x8a7a, 0x8c3c, 0x8c4b, 0x8c4a, 0x8c65, 0x8c64, 0x8c66, 0x8c86, 0x8c84, 0x8c85, 0x8ccc, 0x8d68, 0x8d69, 0x8d91, 0x8d8c, 0x8d8e, 0x8d8f, 0x8d8d, 0x8d93, 0x8d94, 0x8d90, 0x8d92, 0x8df0, 0x8de0, 0x8dec, 0x8df1, 0x8dee, 0x8dd0, 0x8de9, 0x8de3, 0x8de2, 0x8de7, 0x8df2, 0x8deb, 0x8df4, 0x8f06, 0x8eff, 0x8f01, 0x8f00, 0x8f05, 0x8f07, 0x8f08, 0x8f02, 0x8f0b, 0x9052, 0x903f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe0a1[ 94 ] = { 0x9044, 0x9049, 0x903d, 0x9110, 0x910d, 0x910f, 0x9111, 0x9116, 0x9114, 0x910b, 0x910e, 0x916e, 0x916f, 0x9248, 0x9252, 0x9230, 0x923a, 0x9266, 0x9233, 0x9265, 0x925e, 0x9283, 0x922e, 0x924a, 0x9246, 0x926d, 0x926c, 0x924f, 0x9260, 0x9267, 0x926f, 0x9236, 0x9261, 0x9270, 0x9231, 0x9254, 0x9263, 0x9250, 0x9272, 0x924e, 0x9253, 0x924c, 0x9256, 0x9232, 0x959f, 0x959c, 0x959e, 0x959b, 0x9692, 0x9693, 0x9691, 0x9697, 0x96ce, 0x96fa, 0x96fd, 0x96f8, 0x96f5, 0x9773, 0x9777, 0x9778, 0x9772, 0x980f, 0x980d, 0x980e, 0x98ac, 0x98f6, 0x98f9, 0x99af, 0x99b2, 0x99b0, 0x99b5, 0x9aad, 0x9aab, 0x9b5b, 0x9cea, 0x9ced, 0x9ce7, 0x9e80, 0x9efd, 0x50e6, 0x50d4, 0x50d7, 0x50e8, 0x50f3, 0x50db, 0x50ea, 0x50dd, 0x50e4, 0x50d3, 0x50ec, 0x50f0, 0x50ef, 0x50e3, 0x50e0 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe140[ 63 ] = { 0x51d8, 0x5280, 0x5281, 0x52e9, 0x52eb, 0x5330, 0x53ac, 0x5627, 0x5615, 0x560c, 0x5612, 0x55fc, 0x560f, 0x561c, 0x5601, 0x5613, 0x5602, 0x55fa, 0x561d, 0x5604, 0x55ff, 0x55f9, 0x5889, 0x587c, 0x5890, 0x5898, 0x5886, 0x5881, 0x587f, 0x5874, 0x588b, 0x587a, 0x5887, 0x5891, 0x588e, 0x5876, 0x5882, 0x5888, 0x587b, 0x5894, 0x588f, 0x58fe, 0x596b, 0x5adc, 0x5aee, 0x5ae5, 0x5ad5, 0x5aea, 0x5ada, 0x5aed, 0x5aeb, 0x5af3, 0x5ae2, 0x5ae0, 0x5adb, 0x5aec, 0x5ade, 0x5add, 0x5ad9, 0x5ae8, 0x5adf, 0x5b77, 0x5be0 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe1a1[ 94 ] = { 0x5be3, 0x5c63, 0x5d82, 0x5d80, 0x5d7d, 0x5d86, 0x5d7a, 0x5d81, 0x5d77, 0x5d8a, 0x5d89, 0x5d88, 0x5d7e, 0x5d7c, 0x5d8d, 0x5d79, 0x5d7f, 0x5e58, 0x5e59, 0x5e53, 0x5ed8, 0x5ed1, 0x5ed7, 0x5ece, 0x5edc, 0x5ed5, 0x5ed9, 0x5ed2, 0x5ed4, 0x5f44, 0x5f43, 0x5f6f, 0x5fb6, 0x612c, 0x6128, 0x6141, 0x615e, 0x6171, 0x6173, 0x6152, 0x6153, 0x6172, 0x616c, 0x6180, 0x6174, 0x6154, 0x617a, 0x615b, 0x6165, 0x613b, 0x616a, 0x6161, 0x6156, 0x6229, 0x6227, 0x622b, 0x642b, 0x644d, 0x645b, 0x645d, 0x6474, 0x6476, 0x6472, 0x6473, 0x647d, 0x6475, 0x6466, 0x64a6, 0x644e, 0x6482, 0x645e, 0x645c, 0x644b, 0x6453, 0x6460, 0x6450, 0x647f, 0x643f, 0x646c, 0x646b, 0x6459, 0x6465, 0x6477, 0x6573, 0x65a0, 0x66a1, 0x66a0, 0x669f, 0x6705, 0x6704, 0x6722, 0x69b1, 0x69b6, 0x69c9 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe240[ 63 ] = { 0x69a0, 0x69ce, 0x6996, 0x69b0, 0x69ac, 0x69bc, 0x6991, 0x6999, 0x698e, 0x69a7, 0x698d, 0x69a9, 0x69be, 0x69af, 0x69bf, 0x69c4, 0x69bd, 0x69a4, 0x69d4, 0x69b9, 0x69ca, 0x699a, 0x69cf, 0x69b3, 0x6993, 0x69aa, 0x69a1, 0x699e, 0x69d9, 0x6997, 0x6990, 0x69c2, 0x69b5, 0x69a5, 0x69c6, 0x6b4a, 0x6b4d, 0x6b4b, 0x6b9e, 0x6b9f, 0x6ba0, 0x6bc3, 0x6bc4, 0x6bfe, 0x6ece, 0x6ef5, 0x6ef1, 0x6f03, 0x6f25, 0x6ef8, 0x6f37, 0x6efb, 0x6f2e, 0x6f09, 0x6f4e, 0x6f19, 0x6f1a, 0x6f27, 0x6f18, 0x6f3b, 0x6f12, 0x6eed, 0x6f0a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe2a1[ 94 ] = { 0x6f36, 0x6f73, 0x6ef9, 0x6eee, 0x6f2d, 0x6f40, 0x6f30, 0x6f3c, 0x6f35, 0x6eeb, 0x6f07, 0x6f0e, 0x6f43, 0x6f05, 0x6efd, 0x6ef6, 0x6f39, 0x6f1c, 0x6efc, 0x6f3a, 0x6f1f, 0x6f0d, 0x6f1e, 0x6f08, 0x6f21, 0x7187, 0x7190, 0x7189, 0x7180, 0x7185, 0x7182, 0x718f, 0x717b, 0x7186, 0x7181, 0x7197, 0x7244, 0x7253, 0x7297, 0x7295, 0x7293, 0x7343, 0x734d, 0x7351, 0x734c, 0x7462, 0x7473, 0x7471, 0x7475, 0x7472, 0x7467, 0x746e, 0x7500, 0x7502, 0x7503, 0x757d, 0x7590, 0x7616, 0x7608, 0x760c, 0x7615, 0x7611, 0x760a, 0x7614, 0x76b8, 0x7781, 0x777c, 0x7785, 0x7782, 0x776e, 0x7780, 0x776f, 0x777e, 0x7783, 0x78b2, 0x78aa, 0x78b4, 0x78ad, 0x78a8, 0x787e, 0x78ab, 0x789e, 0x78a5, 0x78a0, 0x78ac, 0x78a2, 0x78a4, 0x7998, 0x798a, 0x798b, 0x7996, 0x7995, 0x7994, 0x7993 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe340[ 63 ] = { 0x7997, 0x7988, 0x7992, 0x7990, 0x7a2b, 0x7a4a, 0x7a30, 0x7a2f, 0x7a28, 0x7a26, 0x7aa8, 0x7aab, 0x7aac, 0x7aee, 0x7b88, 0x7b9c, 0x7b8a, 0x7b91, 0x7b90, 0x7b96, 0x7b8d, 0x7b8c, 0x7b9b, 0x7b8e, 0x7b85, 0x7b98, 0x5284, 0x7b99, 0x7ba4, 0x7b82, 0x7cbb, 0x7cbf, 0x7cbc, 0x7cba, 0x7da7, 0x7db7, 0x7dc2, 0x7da3, 0x7daa, 0x7dc1, 0x7dc0, 0x7dc5, 0x7d9d, 0x7dce, 0x7dc4, 0x7dc6, 0x7dcb, 0x7dcc, 0x7daf, 0x7db9, 0x7d96, 0x7dbc, 0x7d9f, 0x7da6, 0x7dae, 0x7da9, 0x7da1, 0x7dc9, 0x7f73, 0x7fe2, 0x7fe3, 0x7fe5, 0x7fde }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe3a1[ 94 ] = { 0x8024, 0x805d, 0x805c, 0x8189, 0x8186, 0x8183, 0x8187, 0x818d, 0x818c, 0x818b, 0x8215, 0x8497, 0x84a4, 0x84a1, 0x849f, 0x84ba, 0x84ce, 0x84c2, 0x84ac, 0x84ae, 0x84ab, 0x84b9, 0x84b4, 0x84c1, 0x84cd, 0x84aa, 0x849a, 0x84b1, 0x84d0, 0x849d, 0x84a7, 0x84bb, 0x84a2, 0x8494, 0x84c7, 0x84cc, 0x849b, 0x84a9, 0x84af, 0x84a8, 0x84d6, 0x8498, 0x84b6, 0x84cf, 0x84a0, 0x84d7, 0x84d4, 0x84d2, 0x84db, 0x84b0, 0x8491, 0x8661, 0x8733, 0x8723, 0x8728, 0x876b, 0x8740, 0x872e, 0x871e, 0x8721, 0x8719, 0x871b, 0x8743, 0x872c, 0x8741, 0x873e, 0x8746, 0x8720, 0x8732, 0x872a, 0x872d, 0x873c, 0x8712, 0x873a, 0x8731, 0x8735, 0x8742, 0x8726, 0x8727, 0x8738, 0x8724, 0x871a, 0x8730, 0x8711, 0x88f7, 0x88e7, 0x88f1, 0x88f2, 0x88fa, 0x88fe, 0x88ee, 0x88fc, 0x88f6, 0x88fb }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe440[ 63 ] = { 0x88f0, 0x88ec, 0x88eb, 0x899d, 0x89a1, 0x899f, 0x899e, 0x89e9, 0x89eb, 0x89e8, 0x8aab, 0x8a99, 0x8a8b, 0x8a92, 0x8a8f, 0x8a96, 0x8c3d, 0x8c68, 0x8c69, 0x8cd5, 0x8ccf, 0x8cd7, 0x8d96, 0x8e09, 0x8e02, 0x8dff, 0x8e0d, 0x8dfd, 0x8e0a, 0x8e03, 0x8e07, 0x8e06, 0x8e05, 0x8dfe, 0x8e00, 0x8e04, 0x8f10, 0x8f11, 0x8f0e, 0x8f0d, 0x9123, 0x911c, 0x9120, 0x9122, 0x911f, 0x911d, 0x911a, 0x9124, 0x9121, 0x911b, 0x917a, 0x9172, 0x9179, 0x9173, 0x92a5, 0x92a4, 0x9276, 0x929b, 0x927a, 0x92a0, 0x9294, 0x92aa, 0x928d }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe4a1[ 94 ] = { 0x92a6, 0x929a, 0x92ab, 0x9279, 0x9297, 0x927f, 0x92a3, 0x92ee, 0x928e, 0x9282, 0x9295, 0x92a2, 0x927d, 0x9288, 0x92a1, 0x928a, 0x9286, 0x928c, 0x9299, 0x92a7, 0x927e, 0x9287, 0x92a9, 0x929d, 0x928b, 0x922d, 0x969e, 0x96a1, 0x96ff, 0x9758, 0x977d, 0x977a, 0x977e, 0x9783, 0x9780, 0x9782, 0x977b, 0x9784, 0x9781, 0x977f, 0x97ce, 0x97cd, 0x9816, 0x98ad, 0x98ae, 0x9902, 0x9900, 0x9907, 0x999d, 0x999c, 0x99c3, 0x99b9, 0x99bb, 0x99ba, 0x99c2, 0x99bd, 0x99c7, 0x9ab1, 0x9ae3, 0x9ae7, 0x9b3e, 0x9b3f, 0x9b60, 0x9b61, 0x9b5f, 0x9cf1, 0x9cf2, 0x9cf5, 0x9ea7, 0x50ff, 0x5103, 0x5130, 0x50f8, 0x5106, 0x5107, 0x50f6, 0x50fe, 0x510b, 0x510c, 0x50fd, 0x510a, 0x528b, 0x528c, 0x52f1, 0x52ef, 0x5648, 0x5642, 0x564c, 0x5635, 0x5641, 0x564a, 0x5649, 0x5646, 0x5658 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe540[ 63 ] = { 0x565a, 0x5640, 0x5633, 0x563d, 0x562c, 0x563e, 0x5638, 0x562a, 0x563a, 0x571a, 0x58ab, 0x589d, 0x58b1, 0x58a0, 0x58a3, 0x58af, 0x58ac, 0x58a5, 0x58a1, 0x58ff, 0x5aff, 0x5af4, 0x5afd, 0x5af7, 0x5af6, 0x5b03, 0x5af8, 0x5b02, 0x5af9, 0x5b01, 0x5b07, 0x5b05, 0x5b0f, 0x5c67, 0x5d99, 0x5d97, 0x5d9f, 0x5d92, 0x5da2, 0x5d93, 0x5d95, 0x5da0, 0x5d9c, 0x5da1, 0x5d9a, 0x5d9e, 0x5e69, 0x5e5d, 0x5e60, 0x5e5c, 0x7df3, 0x5edb, 0x5ede, 0x5ee1, 0x5f49, 0x5fb2, 0x618b, 0x6183, 0x6179, 0x61b1, 0x61b0, 0x61a2, 0x6189 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe5a1[ 94 ] = { 0x619b, 0x6193, 0x61af, 0x61ad, 0x619f, 0x6192, 0x61aa, 0x61a1, 0x618d, 0x6166, 0x61b3, 0x622d, 0x646e, 0x6470, 0x6496, 0x64a0, 0x6485, 0x6497, 0x649c, 0x648f, 0x648b, 0x648a, 0x648c, 0x64a3, 0x649f, 0x6468, 0x64b1, 0x6498, 0x6576, 0x657a, 0x6579, 0x657b, 0x65b2, 0x65b3, 0x66b5, 0x66b0, 0x66a9, 0x66b2, 0x66b7, 0x66aa, 0x66af, 0x6a00, 0x6a06, 0x6a17, 0x69e5, 0x69f8, 0x6a15, 0x69f1, 0x69e4, 0x6a20, 0x69ff, 0x69ec, 0x69e2, 0x6a1b, 0x6a1d, 0x69fe, 0x6a27, 0x69f2, 0x69ee, 0x6a14, 0x69f7, 0x69e7, 0x6a40, 0x6a08, 0x69e6, 0x69fb, 0x6a0d, 0x69fc, 0x69eb, 0x6a09, 0x6a04, 0x6a18, 0x6a25, 0x6a0f, 0x69f6, 0x6a26, 0x6a07, 0x69f4, 0x6a16, 0x6b51, 0x6ba5, 0x6ba3, 0x6ba2, 0x6ba6, 0x6c01, 0x6c00, 0x6bff, 0x6c02, 0x6f41, 0x6f26, 0x6f7e, 0x6f87, 0x6fc6, 0x6f92 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe640[ 63 ] = { 0x6f8d, 0x6f89, 0x6f8c, 0x6f62, 0x6f4f, 0x6f85, 0x6f5a, 0x6f96, 0x6f76, 0x6f6c, 0x6f82, 0x6f55, 0x6f72, 0x6f52, 0x6f50, 0x6f57, 0x6f94, 0x6f93, 0x6f5d, 0x6f00, 0x6f61, 0x6f6b, 0x6f7d, 0x6f67, 0x6f90, 0x6f53, 0x6f8b, 0x6f69, 0x6f7f, 0x6f95, 0x6f63, 0x6f77, 0x6f6a, 0x6f7b, 0x71b2, 0x71af, 0x719b, 0x71b0, 0x71a0, 0x719a, 0x71a9, 0x71b5, 0x719d, 0x71a5, 0x719e, 0x71a4, 0x71a1, 0x71aa, 0x719c, 0x71a7, 0x71b3, 0x7298, 0x729a, 0x7358, 0x7352, 0x735e, 0x735f, 0x7360, 0x735d, 0x735b, 0x7361, 0x735a, 0x7359 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe6a1[ 94 ] = { 0x7362, 0x7487, 0x7489, 0x748a, 0x7486, 0x7481, 0x747d, 0x7485, 0x7488, 0x747c, 0x7479, 0x7508, 0x7507, 0x757e, 0x7625, 0x761e, 0x7619, 0x761d, 0x761c, 0x7623, 0x761a, 0x7628, 0x761b, 0x769c, 0x769d, 0x769e, 0x769b, 0x778d, 0x778f, 0x7789, 0x7788, 0x78cd, 0x78bb, 0x78cf, 0x78cc, 0x78d1, 0x78ce, 0x78d4, 0x78c8, 0x78c3, 0x78c4, 0x78c9, 0x799a, 0x79a1, 0x79a0, 0x799c, 0x79a2, 0x799b, 0x6b76, 0x7a39, 0x7ab2, 0x7ab4, 0x7ab3, 0x7bb7, 0x7bcb, 0x7bbe, 0x7bac, 0x7bce, 0x7baf, 0x7bb9, 0x7bca, 0x7bb5, 0x7cc5, 0x7cc8, 0x7ccc, 0x7ccb, 0x7df7, 0x7ddb, 0x7dea, 0x7de7, 0x7dd7, 0x7de1, 0x7e03, 0x7dfa, 0x7de6, 0x7df6, 0x7df1, 0x7df0, 0x7dee, 0x7ddf, 0x7f76, 0x7fac, 0x7fb0, 0x7fad, 0x7fed, 0x7feb, 0x7fea, 0x7fec, 0x7fe6, 0x7fe8, 0x8064, 0x8067, 0x81a3, 0x819f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe740[ 63 ] = { 0x819e, 0x8195, 0x81a2, 0x8199, 0x8197, 0x8216, 0x824f, 0x8253, 0x8252, 0x8250, 0x824e, 0x8251, 0x8524, 0x853b, 0x850f, 0x8500, 0x8529, 0x850e, 0x8509, 0x850d, 0x851f, 0x850a, 0x8527, 0x851c, 0x84fb, 0x852b, 0x84fa, 0x8508, 0x850c, 0x84f4, 0x852a, 0x84f2, 0x8515, 0x84f7, 0x84eb, 0x84f3, 0x84fc, 0x8512, 0x84ea, 0x84e9, 0x8516, 0x84fe, 0x8528, 0x851d, 0x852e, 0x8502, 0x84fd, 0x851e, 0x84f6, 0x8531, 0x8526, 0x84e7, 0x84e8, 0x84f0, 0x84ef, 0x84f9, 0x8518, 0x8520, 0x8530, 0x850b, 0x8519, 0x852f, 0x8662 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe7a1[ 94 ] = { 0x8756, 0x8763, 0x8764, 0x8777, 0x87e1, 0x8773, 0x8758, 0x8754, 0x875b, 0x8752, 0x8761, 0x875a, 0x8751, 0x875e, 0x876d, 0x876a, 0x8750, 0x874e, 0x875f, 0x875d, 0x876f, 0x876c, 0x877a, 0x876e, 0x875c, 0x8765, 0x874f, 0x877b, 0x8775, 0x8762, 0x8767, 0x8769, 0x885a, 0x8905, 0x890c, 0x8914, 0x890b, 0x8917, 0x8918, 0x8919, 0x8906, 0x8916, 0x8911, 0x890e, 0x8909, 0x89a2, 0x89a4, 0x89a3, 0x89ed, 0x89f0, 0x89ec, 0x8acf, 0x8ac6, 0x8ab8, 0x8ad3, 0x8ad1, 0x8ad4, 0x8ad5, 0x8abb, 0x8ad7, 0x8abe, 0x8ac0, 0x8ac5, 0x8ad8, 0x8ac3, 0x8aba, 0x8abd, 0x8ad9, 0x8c3e, 0x8c4d, 0x8c8f, 0x8ce5, 0x8cdf, 0x8cd9, 0x8ce8, 0x8cda, 0x8cdd, 0x8ce7, 0x8da0, 0x8d9c, 0x8da1, 0x8d9b, 0x8e20, 0x8e23, 0x8e25, 0x8e24, 0x8e2e, 0x8e15, 0x8e1b, 0x8e16, 0x8e11, 0x8e19, 0x8e26, 0x8e27 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe840[ 63 ] = { 0x8e14, 0x8e12, 0x8e18, 0x8e13, 0x8e1c, 0x8e17, 0x8e1a, 0x8f2c, 0x8f24, 0x8f18, 0x8f1a, 0x8f20, 0x8f23, 0x8f16, 0x8f17, 0x9073, 0x9070, 0x906f, 0x9067, 0x906b, 0x912f, 0x912b, 0x9129, 0x912a, 0x9132, 0x9126, 0x912e, 0x9185, 0x9186, 0x918a, 0x9181, 0x9182, 0x9184, 0x9180, 0x92d0, 0x92c3, 0x92c4, 0x92c0, 0x92d9, 0x92b6, 0x92cf, 0x92f1, 0x92df, 0x92d8, 0x92e9, 0x92d7, 0x92dd, 0x92cc, 0x92ef, 0x92c2, 0x92e8, 0x92ca, 0x92c8, 0x92ce, 0x92e6, 0x92cd, 0x92d5, 0x92c9, 0x92e0, 0x92de, 0x92e7, 0x92d1, 0x92d3 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe8a1[ 94 ] = { 0x92b5, 0x92e1, 0x92c6, 0x92b4, 0x957c, 0x95ac, 0x95ab, 0x95ae, 0x95b0, 0x96a4, 0x96a2, 0x96d3, 0x9705, 0x9708, 0x9702, 0x975a, 0x978a, 0x978e, 0x9788, 0x97d0, 0x97cf, 0x981e, 0x981d, 0x9826, 0x9829, 0x9828, 0x9820, 0x981b, 0x9827, 0x98b2, 0x9908, 0x98fa, 0x9911, 0x9914, 0x9916, 0x9917, 0x9915, 0x99dc, 0x99cd, 0x99cf, 0x99d3, 0x99d4, 0x99ce, 0x99c9, 0x99d6, 0x99d8, 0x99cb, 0x99d7, 0x99cc, 0x9ab3, 0x9aec, 0x9aeb, 0x9af3, 0x9af2, 0x9af1, 0x9b46, 0x9b43, 0x9b67, 0x9b74, 0x9b71, 0x9b66, 0x9b76, 0x9b75, 0x9b70, 0x9b68, 0x9b64, 0x9b6c, 0x9cfc, 0x9cfa, 0x9cfd, 0x9cff, 0x9cf7, 0x9d07, 0x9d00, 0x9cf9, 0x9cfb, 0x9d08, 0x9d05, 0x9d04, 0x9e83, 0x9ed3, 0x9f0f, 0x9f10, 0x511c, 0x5113, 0x5117, 0x511a, 0x5111, 0x51de, 0x5334, 0x53e1, 0x5670, 0x5660, 0x566e }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe940[ 63 ] = { 0x5673, 0x5666, 0x5663, 0x566d, 0x5672, 0x565e, 0x5677, 0x571c, 0x571b, 0x58c8, 0x58bd, 0x58c9, 0x58bf, 0x58ba, 0x58c2, 0x58bc, 0x58c6, 0x5b17, 0x5b19, 0x5b1b, 0x5b21, 0x5b14, 0x5b13, 0x5b10, 0x5b16, 0x5b28, 0x5b1a, 0x5b20, 0x5b1e, 0x5bef, 0x5dac, 0x5db1, 0x5da9, 0x5da7, 0x5db5, 0x5db0, 0x5dae, 0x5daa, 0x5da8, 0x5db2, 0x5dad, 0x5daf, 0x5db4, 0x5e67, 0x5e68, 0x5e66, 0x5e6f, 0x5ee9, 0x5ee7, 0x5ee6, 0x5ee8, 0x5ee5, 0x5f4b, 0x5fbc, 0x619d, 0x61a8, 0x6196, 0x61c5, 0x61b4, 0x61c6, 0x61c1, 0x61cc, 0x61ba }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe9a1[ 94 ] = { 0x61bf, 0x61b8, 0x618c, 0x64d7, 0x64d6, 0x64d0, 0x64cf, 0x64c9, 0x64bd, 0x6489, 0x64c3, 0x64db, 0x64f3, 0x64d9, 0x6533, 0x657f, 0x657c, 0x65a2, 0x66c8, 0x66be, 0x66c0, 0x66ca, 0x66cb, 0x66cf, 0x66bd, 0x66bb, 0x66ba, 0x66cc, 0x6723, 0x6a34, 0x6a66, 0x6a49, 0x6a67, 0x6a32, 0x6a68, 0x6a3e, 0x6a5d, 0x6a6d, 0x6a76, 0x6a5b, 0x6a51, 0x6a28, 0x6a5a, 0x6a3b, 0x6a3f, 0x6a41, 0x6a6a, 0x6a64, 0x6a50, 0x6a4f, 0x6a54, 0x6a6f, 0x6a69, 0x6a60, 0x6a3c, 0x6a5e, 0x6a56, 0x6a55, 0x6a4d, 0x6a4e, 0x6a46, 0x6b55, 0x6b54, 0x6b56, 0x6ba7, 0x6baa, 0x6bab, 0x6bc8, 0x6bc7, 0x6c04, 0x6c03, 0x6c06, 0x6fad, 0x6fcb, 0x6fa3, 0x6fc7, 0x6fbc, 0x6fce, 0x6fc8, 0x6f5e, 0x6fc4, 0x6fbd, 0x6f9e, 0x6fca, 0x6fa8, 0x7004, 0x6fa5, 0x6fae, 0x6fba, 0x6fac, 0x6faa, 0x6fcf, 0x6fbf, 0x6fb8 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xea40[ 63 ] = { 0x6fa2, 0x6fc9, 0x6fab, 0x6fcd, 0x6faf, 0x6fb2, 0x6fb0, 0x71c5, 0x71c2, 0x71bf, 0x71b8, 0x71d6, 0x71c0, 0x71c1, 0x71cb, 0x71d4, 0x71ca, 0x71c7, 0x71cf, 0x71bd, 0x71d8, 0x71bc, 0x71c6, 0x71da, 0x71db, 0x729d, 0x729e, 0x7369, 0x7366, 0x7367, 0x736c, 0x7365, 0x736b, 0x736a, 0x747f, 0x749a, 0x74a0, 0x7494, 0x7492, 0x7495, 0x74a1, 0x750b, 0x7580, 0x762f, 0x762d, 0x7631, 0x763d, 0x7633, 0x763c, 0x7635, 0x7632, 0x7630, 0x76bb, 0x76e6, 0x779a, 0x779d, 0x77a1, 0x779c, 0x779b, 0x77a2, 0x77a3, 0x7795, 0x7799 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeaa1[ 94 ] = { 0x7797, 0x78dd, 0x78e9, 0x78e5, 0x78ea, 0x78de, 0x78e3, 0x78db, 0x78e1, 0x78e2, 0x78ed, 0x78df, 0x78e0, 0x79a4, 0x7a44, 0x7a48, 0x7a47, 0x7ab6, 0x7ab8, 0x7ab5, 0x7ab1, 0x7ab7, 0x7bde, 0x7be3, 0x7be7, 0x7bdd, 0x7bd5, 0x7be5, 0x7bda, 0x7be8, 0x7bf9, 0x7bd4, 0x7bea, 0x7be2, 0x7bdc, 0x7beb, 0x7bd8, 0x7bdf, 0x7cd2, 0x7cd4, 0x7cd7, 0x7cd0, 0x7cd1, 0x7e12, 0x7e21, 0x7e17, 0x7e0c, 0x7e1f, 0x7e20, 0x7e13, 0x7e0e, 0x7e1c, 0x7e15, 0x7e1a, 0x7e22, 0x7e0b, 0x7e0f, 0x7e16, 0x7e0d, 0x7e14, 0x7e25, 0x7e24, 0x7f43, 0x7f7b, 0x7f7c, 0x7f7a, 0x7fb1, 0x7fef, 0x802a, 0x8029, 0x806c, 0x81b1, 0x81a6, 0x81ae, 0x81b9, 0x81b5, 0x81ab, 0x81b0, 0x81ac, 0x81b4, 0x81b2, 0x81b7, 0x81a7, 0x81f2, 0x8255, 0x8256, 0x8257, 0x8556, 0x8545, 0x856b, 0x854d, 0x8553, 0x8561, 0x8558 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeb40[ 63 ] = { 0x8540, 0x8546, 0x8564, 0x8541, 0x8562, 0x8544, 0x8551, 0x8547, 0x8563, 0x853e, 0x855b, 0x8571, 0x854e, 0x856e, 0x8575, 0x8555, 0x8567, 0x8560, 0x858c, 0x8566, 0x855d, 0x8554, 0x8565, 0x856c, 0x8663, 0x8665, 0x8664, 0x879b, 0x878f, 0x8797, 0x8793, 0x8792, 0x8788, 0x8781, 0x8796, 0x8798, 0x8779, 0x8787, 0x87a3, 0x8785, 0x8790, 0x8791, 0x879d, 0x8784, 0x8794, 0x879c, 0x879a, 0x8789, 0x891e, 0x8926, 0x8930, 0x892d, 0x892e, 0x8927, 0x8931, 0x8922, 0x8929, 0x8923, 0x892f, 0x892c, 0x891f, 0x89f1, 0x8ae0 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeba1[ 94 ] = { 0x8ae2, 0x8af2, 0x8af4, 0x8af5, 0x8add, 0x8b14, 0x8ae4, 0x8adf, 0x8af0, 0x8ac8, 0x8ade, 0x8ae1, 0x8ae8, 0x8aff, 0x8aef, 0x8afb, 0x8c91, 0x8c92, 0x8c90, 0x8cf5, 0x8cee, 0x8cf1, 0x8cf0, 0x8cf3, 0x8d6c, 0x8d6e, 0x8da5, 0x8da7, 0x8e33, 0x8e3e, 0x8e38, 0x8e40, 0x8e45, 0x8e36, 0x8e3c, 0x8e3d, 0x8e41, 0x8e30, 0x8e3f, 0x8ebd, 0x8f36, 0x8f2e, 0x8f35, 0x8f32, 0x8f39, 0x8f37, 0x8f34, 0x9076, 0x9079, 0x907b, 0x9086, 0x90fa, 0x9133, 0x9135, 0x9136, 0x9193, 0x9190, 0x9191, 0x918d, 0x918f, 0x9327, 0x931e, 0x9308, 0x931f, 0x9306, 0x930f, 0x937a, 0x9338, 0x933c, 0x931b, 0x9323, 0x9312, 0x9301, 0x9346, 0x932d, 0x930e, 0x930d, 0x92cb, 0x931d, 0x92fa, 0x9325, 0x9313, 0x92f9, 0x92f7, 0x9334, 0x9302, 0x9324, 0x92ff, 0x9329, 0x9339, 0x9335, 0x932a, 0x9314, 0x930c }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xec40[ 63 ] = { 0x930b, 0x92fe, 0x9309, 0x9300, 0x92fb, 0x9316, 0x95bc, 0x95cd, 0x95be, 0x95b9, 0x95ba, 0x95b6, 0x95bf, 0x95b5, 0x95bd, 0x96a9, 0x96d4, 0x970b, 0x9712, 0x9710, 0x9799, 0x9797, 0x9794, 0x97f0, 0x97f8, 0x9835, 0x982f, 0x9832, 0x9924, 0x991f, 0x9927, 0x9929, 0x999e, 0x99ee, 0x99ec, 0x99e5, 0x99e4, 0x99f0, 0x99e3, 0x99ea, 0x99e9, 0x99e7, 0x9ab9, 0x9abf, 0x9ab4, 0x9abb, 0x9af6, 0x9afa, 0x9af9, 0x9af7, 0x9b33, 0x9b80, 0x9b85, 0x9b87, 0x9b7c, 0x9b7e, 0x9b7b, 0x9b82, 0x9b93, 0x9b92, 0x9b90, 0x9b7a, 0x9b95 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeca1[ 94 ] = { 0x9b7d, 0x9b88, 0x9d25, 0x9d17, 0x9d20, 0x9d1e, 0x9d14, 0x9d29, 0x9d1d, 0x9d18, 0x9d22, 0x9d10, 0x9d19, 0x9d1f, 0x9e88, 0x9e86, 0x9e87, 0x9eae, 0x9ead, 0x9ed5, 0x9ed6, 0x9efa, 0x9f12, 0x9f3d, 0x5126, 0x5125, 0x5122, 0x5124, 0x5120, 0x5129, 0x52f4, 0x5693, 0x568c, 0x568d, 0x5686, 0x5684, 0x5683, 0x567e, 0x5682, 0x567f, 0x5681, 0x58d6, 0x58d4, 0x58cf, 0x58d2, 0x5b2d, 0x5b25, 0x5b32, 0x5b23, 0x5b2c, 0x5b27, 0x5b26, 0x5b2f, 0x5b2e, 0x5b7b, 0x5bf1, 0x5bf2, 0x5db7, 0x5e6c, 0x5e6a, 0x5fbe, 0x5fbb, 0x61c3, 0x61b5, 0x61bc, 0x61e7, 0x61e0, 0x61e5, 0x61e4, 0x61e8, 0x61de, 0x64ef, 0x64e9, 0x64e3, 0x64eb, 0x64e4, 0x64e8, 0x6581, 0x6580, 0x65b6, 0x65da, 0x66d2, 0x6a8d, 0x6a96, 0x6a81, 0x6aa5, 0x6a89, 0x6a9f, 0x6a9b, 0x6aa1, 0x6a9e, 0x6a87, 0x6a93, 0x6a8e }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xed40[ 63 ] = { 0x6a95, 0x6a83, 0x6aa8, 0x6aa4, 0x6a91, 0x6a7f, 0x6aa6, 0x6a9a, 0x6a85, 0x6a8c, 0x6a92, 0x6b5b, 0x6bad, 0x6c09, 0x6fcc, 0x6fa9, 0x6ff4, 0x6fd4, 0x6fe3, 0x6fdc, 0x6fed, 0x6fe7, 0x6fe6, 0x6fde, 0x6ff2, 0x6fdd, 0x6fe2, 0x6fe8, 0x71e1, 0x71f1, 0x71e8, 0x71f2, 0x71e4, 0x71f0, 0x71e2, 0x7373, 0x736e, 0x736f, 0x7497, 0x74b2, 0x74ab, 0x7490, 0x74aa, 0x74ad, 0x74b1, 0x74a5, 0x74af, 0x7510, 0x7511, 0x7512, 0x750f, 0x7584, 0x7643, 0x7648, 0x7649, 0x7647, 0x76a4, 0x76e9, 0x77b5, 0x77ab, 0x77b2, 0x77b7, 0x77b6 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeda1[ 94 ] = { 0x77b4, 0x77b1, 0x77a8, 0x77f0, 0x78f3, 0x78fd, 0x7902, 0x78fb, 0x78fc, 0x78f2, 0x7905, 0x78f9, 0x78fe, 0x7904, 0x79ab, 0x79a8, 0x7a5c, 0x7a5b, 0x7a56, 0x7a58, 0x7a54, 0x7a5a, 0x7abe, 0x7ac0, 0x7ac1, 0x7c05, 0x7c0f, 0x7bf2, 0x7c00, 0x7bff, 0x7bfb, 0x7c0e, 0x7bf4, 0x7c0b, 0x7bf3, 0x7c02, 0x7c09, 0x7c03, 0x7c01, 0x7bf8, 0x7bfd, 0x7c06, 0x7bf0, 0x7bf1, 0x7c10, 0x7c0a, 0x7ce8, 0x7e2d, 0x7e3c, 0x7e42, 0x7e33, 0x9848, 0x7e38, 0x7e2a, 0x7e49, 0x7e40, 0x7e47, 0x7e29, 0x7e4c, 0x7e30, 0x7e3b, 0x7e36, 0x7e44, 0x7e3a, 0x7f45, 0x7f7f, 0x7f7e, 0x7f7d, 0x7ff4, 0x7ff2, 0x802c, 0x81bb, 0x81c4, 0x81cc, 0x81ca, 0x81c5, 0x81c7, 0x81bc, 0x81e9, 0x825b, 0x825a, 0x825c, 0x8583, 0x8580, 0x858f, 0x85a7, 0x8595, 0x85a0, 0x858b, 0x85a3, 0x857b, 0x85a4, 0x859a, 0x859e }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xee40[ 63 ] = { 0x8577, 0x857c, 0x8589, 0x85a1, 0x857a, 0x8578, 0x8557, 0x858e, 0x8596, 0x8586, 0x858d, 0x8599, 0x859d, 0x8581, 0x85a2, 0x8582, 0x8588, 0x8585, 0x8579, 0x8576, 0x8598, 0x8590, 0x859f, 0x8668, 0x87be, 0x87aa, 0x87ad, 0x87c5, 0x87b0, 0x87ac, 0x87b9, 0x87b5, 0x87bc, 0x87ae, 0x87c9, 0x87c3, 0x87c2, 0x87cc, 0x87b7, 0x87af, 0x87c4, 0x87ca, 0x87b4, 0x87b6, 0x87bf, 0x87b8, 0x87bd, 0x87de, 0x87b2, 0x8935, 0x8933, 0x893c, 0x893e, 0x8941, 0x8952, 0x8937, 0x8942, 0x89ad, 0x89af, 0x89ae, 0x89f2, 0x89f3, 0x8b1e }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeea1[ 94 ] = { 0x8b18, 0x8b16, 0x8b11, 0x8b05, 0x8b0b, 0x8b22, 0x8b0f, 0x8b12, 0x8b15, 0x8b07, 0x8b0d, 0x8b08, 0x8b06, 0x8b1c, 0x8b13, 0x8b1a, 0x8c4f, 0x8c70, 0x8c72, 0x8c71, 0x8c6f, 0x8c95, 0x8c94, 0x8cf9, 0x8d6f, 0x8e4e, 0x8e4d, 0x8e53, 0x8e50, 0x8e4c, 0x8e47, 0x8f43, 0x8f40, 0x9085, 0x907e, 0x9138, 0x919a, 0x91a2, 0x919b, 0x9199, 0x919f, 0x91a1, 0x919d, 0x91a0, 0x93a1, 0x9383, 0x93af, 0x9364, 0x9356, 0x9347, 0x937c, 0x9358, 0x935c, 0x9376, 0x9349, 0x9350, 0x9351, 0x9360, 0x936d, 0x938f, 0x934c, 0x936a, 0x9379, 0x9357, 0x9355, 0x9352, 0x934f, 0x9371, 0x9377, 0x937b, 0x9361, 0x935e, 0x9363, 0x9367, 0x9380, 0x934e, 0x9359, 0x95c7, 0x95c0, 0x95c9, 0x95c3, 0x95c5, 0x95b7, 0x96ae, 0x96b0, 0x96ac, 0x9720, 0x971f, 0x9718, 0x971d, 0x9719, 0x979a, 0x97a1, 0x979c }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xef40[ 63 ] = { 0x979e, 0x979d, 0x97d5, 0x97d4, 0x97f1, 0x9841, 0x9844, 0x984a, 0x9849, 0x9845, 0x9843, 0x9925, 0x992b, 0x992c, 0x992a, 0x9933, 0x9932, 0x992f, 0x992d, 0x9931, 0x9930, 0x9998, 0x99a3, 0x99a1, 0x9a02, 0x99fa, 0x99f4, 0x99f7, 0x99f9, 0x99f8, 0x99f6, 0x99fb, 0x99fd, 0x99fe, 0x99fc, 0x9a03, 0x9abe, 0x9afe, 0x9afd, 0x9b01, 0x9afc, 0x9b48, 0x9b9a, 0x9ba8, 0x9b9e, 0x9b9b, 0x9ba6, 0x9ba1, 0x9ba5, 0x9ba4, 0x9b86, 0x9ba2, 0x9ba0, 0x9baf, 0x9d33, 0x9d41, 0x9d67, 0x9d36, 0x9d2e, 0x9d2f, 0x9d31, 0x9d38, 0x9d30 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xefa1[ 94 ] = { 0x9d45, 0x9d42, 0x9d43, 0x9d3e, 0x9d37, 0x9d40, 0x9d3d, 0x7ff5, 0x9d2d, 0x9e8a, 0x9e89, 0x9e8d, 0x9eb0, 0x9ec8, 0x9eda, 0x9efb, 0x9eff, 0x9f24, 0x9f23, 0x9f22, 0x9f54, 0x9fa0, 0x5131, 0x512d, 0x512e, 0x5698, 0x569c, 0x5697, 0x569a, 0x569d, 0x5699, 0x5970, 0x5b3c, 0x5c69, 0x5c6a, 0x5dc0, 0x5e6d, 0x5e6e, 0x61d8, 0x61df, 0x61ed, 0x61ee, 0x61f1, 0x61ea, 0x61f0, 0x61eb, 0x61d6, 0x61e9, 0x64ff, 0x6504, 0x64fd, 0x64f8, 0x6501, 0x6503, 0x64fc, 0x6594, 0x65db, 0x66da, 0x66db, 0x66d8, 0x6ac5, 0x6ab9, 0x6abd, 0x6ae1, 0x6ac6, 0x6aba, 0x6ab6, 0x6ab7, 0x6ac7, 0x6ab4, 0x6aad, 0x6b5e, 0x6bc9, 0x6c0b, 0x7007, 0x700c, 0x700d, 0x7001, 0x7005, 0x7014, 0x700e, 0x6fff, 0x7000, 0x6ffb, 0x7026, 0x6ffc, 0x6ff7, 0x700a, 0x7201, 0x71ff, 0x71f9, 0x7203, 0x71fd, 0x7376 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf040[ 63 ] = { 0x74b8, 0x74c0, 0x74b5, 0x74c1, 0x74be, 0x74b6, 0x74bb, 0x74c2, 0x7514, 0x7513, 0x765c, 0x7664, 0x7659, 0x7650, 0x7653, 0x7657, 0x765a, 0x76a6, 0x76bd, 0x76ec, 0x77c2, 0x77ba, 0x78ff, 0x790c, 0x7913, 0x7914, 0x7909, 0x7910, 0x7912, 0x7911, 0x79ad, 0x79ac, 0x7a5f, 0x7c1c, 0x7c29, 0x7c19, 0x7c20, 0x7c1f, 0x7c2d, 0x7c1d, 0x7c26, 0x7c28, 0x7c22, 0x7c25, 0x7c30, 0x7e5c, 0x7e50, 0x7e56, 0x7e63, 0x7e58, 0x7e62, 0x7e5f, 0x7e51, 0x7e60, 0x7e57, 0x7e53, 0x7fb5, 0x7fb3, 0x7ff7, 0x7ff8, 0x8075, 0x81d1, 0x81d2 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf0a1[ 94 ] = { 0x81d0, 0x825f, 0x825e, 0x85b4, 0x85c6, 0x85c0, 0x85c3, 0x85c2, 0x85b3, 0x85b5, 0x85bd, 0x85c7, 0x85c4, 0x85bf, 0x85cb, 0x85ce, 0x85c8, 0x85c5, 0x85b1, 0x85b6, 0x85d2, 0x8624, 0x85b8, 0x85b7, 0x85be, 0x8669, 0x87e7, 0x87e6, 0x87e2, 0x87db, 0x87eb, 0x87ea, 0x87e5, 0x87df, 0x87f3, 0x87e4, 0x87d4, 0x87dc, 0x87d3, 0x87ed, 0x87d8, 0x87e3, 0x87a4, 0x87d7, 0x87d9, 0x8801, 0x87f4, 0x87e8, 0x87dd, 0x8953, 0x894b, 0x894f, 0x894c, 0x8946, 0x8950, 0x8951, 0x8949, 0x8b2a, 0x8b27, 0x8b23, 0x8b33, 0x8b30, 0x8b35, 0x8b47, 0x8b2f, 0x8b3c, 0x8b3e, 0x8b31, 0x8b25, 0x8b37, 0x8b26, 0x8b36, 0x8b2e, 0x8b24, 0x8b3b, 0x8b3d, 0x8b3a, 0x8c42, 0x8c75, 0x8c99, 0x8c98, 0x8c97, 0x8cfe, 0x8d04, 0x8d02, 0x8d00, 0x8e5c, 0x8e62, 0x8e60, 0x8e57, 0x8e56, 0x8e5e, 0x8e65, 0x8e67 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf140[ 63 ] = { 0x8e5b, 0x8e5a, 0x8e61, 0x8e5d, 0x8e69, 0x8e54, 0x8f46, 0x8f47, 0x8f48, 0x8f4b, 0x9128, 0x913a, 0x913b, 0x913e, 0x91a8, 0x91a5, 0x91a7, 0x91af, 0x91aa, 0x93b5, 0x938c, 0x9392, 0x93b7, 0x939b, 0x939d, 0x9389, 0x93a7, 0x938e, 0x93aa, 0x939e, 0x93a6, 0x9395, 0x9388, 0x9399, 0x939f, 0x938d, 0x93b1, 0x9391, 0x93b2, 0x93a4, 0x93a8, 0x93b4, 0x93a3, 0x93a5, 0x95d2, 0x95d3, 0x95d1, 0x96b3, 0x96d7, 0x96da, 0x5dc2, 0x96df, 0x96d8, 0x96dd, 0x9723, 0x9722, 0x9725, 0x97ac, 0x97ae, 0x97a8, 0x97ab, 0x97a4, 0x97aa }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf1a1[ 94 ] = { 0x97a2, 0x97a5, 0x97d7, 0x97d9, 0x97d6, 0x97d8, 0x97fa, 0x9850, 0x9851, 0x9852, 0x98b8, 0x9941, 0x993c, 0x993a, 0x9a0f, 0x9a0b, 0x9a09, 0x9a0d, 0x9a04, 0x9a11, 0x9a0a, 0x9a05, 0x9a07, 0x9a06, 0x9ac0, 0x9adc, 0x9b08, 0x9b04, 0x9b05, 0x9b29, 0x9b35, 0x9b4a, 0x9b4c, 0x9b4b, 0x9bc7, 0x9bc6, 0x9bc3, 0x9bbf, 0x9bc1, 0x9bb5, 0x9bb8, 0x9bd3, 0x9bb6, 0x9bc4, 0x9bb9, 0x9bbd, 0x9d5c, 0x9d53, 0x9d4f, 0x9d4a, 0x9d5b, 0x9d4b, 0x9d59, 0x9d56, 0x9d4c, 0x9d57, 0x9d52, 0x9d54, 0x9d5f, 0x9d58, 0x9d5a, 0x9e8e, 0x9e8c, 0x9edf, 0x9f01, 0x9f00, 0x9f16, 0x9f25, 0x9f2b, 0x9f2a, 0x9f29, 0x9f28, 0x9f4c, 0x9f55, 0x5134, 0x5135, 0x5296, 0x52f7, 0x53b4, 0x56ab, 0x56ad, 0x56a6, 0x56a7, 0x56aa, 0x56ac, 0x58da, 0x58dd, 0x58db, 0x5912, 0x5b3d, 0x5b3e, 0x5b3f, 0x5dc3, 0x5e70 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf240[ 63 ] = { 0x5fbf, 0x61fb, 0x6507, 0x6510, 0x650d, 0x6509, 0x650c, 0x650e, 0x6584, 0x65de, 0x65dd, 0x66de, 0x6ae7, 0x6ae0, 0x6acc, 0x6ad1, 0x6ad9, 0x6acb, 0x6adf, 0x6adc, 0x6ad0, 0x6aeb, 0x6acf, 0x6acd, 0x6ade, 0x6b60, 0x6bb0, 0x6c0c, 0x7019, 0x7027, 0x7020, 0x7016, 0x702b, 0x7021, 0x7022, 0x7023, 0x7029, 0x7017, 0x7024, 0x701c, 0x702a, 0x720c, 0x720a, 0x7207, 0x7202, 0x7205, 0x72a5, 0x72a6, 0x72a4, 0x72a3, 0x72a1, 0x74cb, 0x74c5, 0x74b7, 0x74c3, 0x7516, 0x7660, 0x77c9, 0x77ca, 0x77c4, 0x77f1, 0x791d, 0x791b }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf2a1[ 94 ] = { 0x7921, 0x791c, 0x7917, 0x791e, 0x79b0, 0x7a67, 0x7a68, 0x7c33, 0x7c3c, 0x7c39, 0x7c2c, 0x7c3b, 0x7cec, 0x7cea, 0x7e76, 0x7e75, 0x7e78, 0x7e70, 0x7e77, 0x7e6f, 0x7e7a, 0x7e72, 0x7e74, 0x7e68, 0x7f4b, 0x7f4a, 0x7f83, 0x7f86, 0x7fb7, 0x7ffd, 0x7ffe, 0x8078, 0x81d7, 0x81d5, 0x8264, 0x8261, 0x8263, 0x85eb, 0x85f1, 0x85ed, 0x85d9, 0x85e1, 0x85e8, 0x85da, 0x85d7, 0x85ec, 0x85f2, 0x85f8, 0x85d8, 0x85df, 0x85e3, 0x85dc, 0x85d1, 0x85f0, 0x85e6, 0x85ef, 0x85de, 0x85e2, 0x8800, 0x87fa, 0x8803, 0x87f6, 0x87f7, 0x8809, 0x880c, 0x880b, 0x8806, 0x87fc, 0x8808, 0x87ff, 0x880a, 0x8802, 0x8962, 0x895a, 0x895b, 0x8957, 0x8961, 0x895c, 0x8958, 0x895d, 0x8959, 0x8988, 0x89b7, 0x89b6, 0x89f6, 0x8b50, 0x8b48, 0x8b4a, 0x8b40, 0x8b53, 0x8b56, 0x8b54, 0x8b4b, 0x8b55 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf340[ 63 ] = { 0x8b51, 0x8b42, 0x8b52, 0x8b57, 0x8c43, 0x8c77, 0x8c76, 0x8c9a, 0x8d06, 0x8d07, 0x8d09, 0x8dac, 0x8daa, 0x8dad, 0x8dab, 0x8e6d, 0x8e78, 0x8e73, 0x8e6a, 0x8e6f, 0x8e7b, 0x8ec2, 0x8f52, 0x8f51, 0x8f4f, 0x8f50, 0x8f53, 0x8fb4, 0x9140, 0x913f, 0x91b0, 0x91ad, 0x93de, 0x93c7, 0x93cf, 0x93c2, 0x93da, 0x93d0, 0x93f9, 0x93ec, 0x93cc, 0x93d9, 0x93a9, 0x93e6, 0x93ca, 0x93d4, 0x93ee, 0x93e3, 0x93d5, 0x93c4, 0x93ce, 0x93c0, 0x93d2, 0x93e7, 0x957d, 0x95da, 0x95db, 0x96e1, 0x9729, 0x972b, 0x972c, 0x9728, 0x9726 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf3a1[ 94 ] = { 0x97b3, 0x97b7, 0x97b6, 0x97dd, 0x97de, 0x97df, 0x985c, 0x9859, 0x985d, 0x9857, 0x98bf, 0x98bd, 0x98bb, 0x98be, 0x9948, 0x9947, 0x9943, 0x99a6, 0x99a7, 0x9a1a, 0x9a15, 0x9a25, 0x9a1d, 0x9a24, 0x9a1b, 0x9a22, 0x9a20, 0x9a27, 0x9a23, 0x9a1e, 0x9a1c, 0x9a14, 0x9ac2, 0x9b0b, 0x9b0a, 0x9b0e, 0x9b0c, 0x9b37, 0x9bea, 0x9beb, 0x9be0, 0x9bde, 0x9be4, 0x9be6, 0x9be2, 0x9bf0, 0x9bd4, 0x9bd7, 0x9bec, 0x9bdc, 0x9bd9, 0x9be5, 0x9bd5, 0x9be1, 0x9bda, 0x9d77, 0x9d81, 0x9d8a, 0x9d84, 0x9d88, 0x9d71, 0x9d80, 0x9d78, 0x9d86, 0x9d8b, 0x9d8c, 0x9d7d, 0x9d6b, 0x9d74, 0x9d75, 0x9d70, 0x9d69, 0x9d85, 0x9d73, 0x9d7b, 0x9d82, 0x9d6f, 0x9d79, 0x9d7f, 0x9d87, 0x9d68, 0x9e94, 0x9e91, 0x9ec0, 0x9efc, 0x9f2d, 0x9f40, 0x9f41, 0x9f4d, 0x9f56, 0x9f57, 0x9f58, 0x5337, 0x56b2 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf440[ 63 ] = { 0x56b5, 0x56b3, 0x58e3, 0x5b45, 0x5dc6, 0x5dc7, 0x5eee, 0x5eef, 0x5fc0, 0x5fc1, 0x61f9, 0x6517, 0x6516, 0x6515, 0x6513, 0x65df, 0x66e8, 0x66e3, 0x66e4, 0x6af3, 0x6af0, 0x6aea, 0x6ae8, 0x6af9, 0x6af1, 0x6aee, 0x6aef, 0x703c, 0x7035, 0x702f, 0x7037, 0x7034, 0x7031, 0x7042, 0x7038, 0x703f, 0x703a, 0x7039, 0x7040, 0x703b, 0x7033, 0x7041, 0x7213, 0x7214, 0x72a8, 0x737d, 0x737c, 0x74ba, 0x76ab, 0x76aa, 0x76be, 0x76ed, 0x77cc, 0x77ce, 0x77cf, 0x77cd, 0x77f2, 0x7925, 0x7923, 0x7927, 0x7928, 0x7924, 0x7929 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf4a1[ 94 ] = { 0x79b2, 0x7a6e, 0x7a6c, 0x7a6d, 0x7af7, 0x7c49, 0x7c48, 0x7c4a, 0x7c47, 0x7c45, 0x7cee, 0x7e7b, 0x7e7e, 0x7e81, 0x7e80, 0x7fba, 0x7fff, 0x8079, 0x81db, 0x81d9, 0x820b, 0x8268, 0x8269, 0x8622, 0x85ff, 0x8601, 0x85fe, 0x861b, 0x8600, 0x85f6, 0x8604, 0x8609, 0x8605, 0x860c, 0x85fd, 0x8819, 0x8810, 0x8811, 0x8817, 0x8813, 0x8816, 0x8963, 0x8966, 0x89b9, 0x89f7, 0x8b60, 0x8b6a, 0x8b5d, 0x8b68, 0x8b63, 0x8b65, 0x8b67, 0x8b6d, 0x8dae, 0x8e86, 0x8e88, 0x8e84, 0x8f59, 0x8f56, 0x8f57, 0x8f55, 0x8f58, 0x8f5a, 0x908d, 0x9143, 0x9141, 0x91b7, 0x91b5, 0x91b2, 0x91b3, 0x940b, 0x9413, 0x93fb, 0x9420, 0x940f, 0x9414, 0x93fe, 0x9415, 0x9410, 0x9428, 0x9419, 0x940d, 0x93f5, 0x9400, 0x93f7, 0x9407, 0x940e, 0x9416, 0x9412, 0x93fa, 0x9409, 0x93f8, 0x940a, 0x93ff }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf540[ 63 ] = { 0x93fc, 0x940c, 0x93f6, 0x9411, 0x9406, 0x95de, 0x95e0, 0x95df, 0x972e, 0x972f, 0x97b9, 0x97bb, 0x97fd, 0x97fe, 0x9860, 0x9862, 0x9863, 0x985f, 0x98c1, 0x98c2, 0x9950, 0x994e, 0x9959, 0x994c, 0x994b, 0x9953, 0x9a32, 0x9a34, 0x9a31, 0x9a2c, 0x9a2a, 0x9a36, 0x9a29, 0x9a2e, 0x9a38, 0x9a2d, 0x9ac7, 0x9aca, 0x9ac6, 0x9b10, 0x9b12, 0x9b11, 0x9c0b, 0x9c08, 0x9bf7, 0x9c05, 0x9c12, 0x9bf8, 0x9c40, 0x9c07, 0x9c0e, 0x9c06, 0x9c17, 0x9c14, 0x9c09, 0x9d9f, 0x9d99, 0x9da4, 0x9d9d, 0x9d92, 0x9d98, 0x9d90, 0x9d9b }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf5a1[ 94 ] = { 0x9da0, 0x9d94, 0x9d9c, 0x9daa, 0x9d97, 0x9da1, 0x9d9a, 0x9da2, 0x9da8, 0x9d9e, 0x9da3, 0x9dbf, 0x9da9, 0x9d96, 0x9da6, 0x9da7, 0x9e99, 0x9e9b, 0x9e9a, 0x9ee5, 0x9ee4, 0x9ee7, 0x9ee6, 0x9f30, 0x9f2e, 0x9f5b, 0x9f60, 0x9f5e, 0x9f5d, 0x9f59, 0x9f91, 0x513a, 0x5139, 0x5298, 0x5297, 0x56c3, 0x56bd, 0x56be, 0x5b48, 0x5b47, 0x5dcb, 0x5dcf, 0x5ef1, 0x61fd, 0x651b, 0x6b02, 0x6afc, 0x6b03, 0x6af8, 0x6b00, 0x7043, 0x7044, 0x704a, 0x7048, 0x7049, 0x7045, 0x7046, 0x721d, 0x721a, 0x7219, 0x737e, 0x7517, 0x766a, 0x77d0, 0x792d, 0x7931, 0x792f, 0x7c54, 0x7c53, 0x7cf2, 0x7e8a, 0x7e87, 0x7e88, 0x7e8b, 0x7e86, 0x7e8d, 0x7f4d, 0x7fbb, 0x8030, 0x81dd, 0x8618, 0x862a, 0x8626, 0x861f, 0x8623, 0x861c, 0x8619, 0x8627, 0x862e, 0x8621, 0x8620, 0x8629, 0x861e, 0x8625 }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf640[ 63 ] = { 0x8829, 0x881d, 0x881b, 0x8820, 0x8824, 0x881c, 0x882b, 0x884a, 0x896d, 0x8969, 0x896e, 0x896b, 0x89fa, 0x8b79, 0x8b78, 0x8b45, 0x8b7a, 0x8b7b, 0x8d10, 0x8d14, 0x8daf, 0x8e8e, 0x8e8c, 0x8f5e, 0x8f5b, 0x8f5d, 0x9146, 0x9144, 0x9145, 0x91b9, 0x943f, 0x943b, 0x9436, 0x9429, 0x943d, 0x943c, 0x9430, 0x9439, 0x942a, 0x9437, 0x942c, 0x9440, 0x9431, 0x95e5, 0x95e4, 0x95e3, 0x9735, 0x973a, 0x97bf, 0x97e1, 0x9864, 0x98c9, 0x98c6, 0x98c0, 0x9958, 0x9956, 0x9a39, 0x9a3d, 0x9a46, 0x9a44, 0x9a42, 0x9a41, 0x9a3a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf6a1[ 94 ] = { 0x9a3f, 0x9acd, 0x9b15, 0x9b17, 0x9b18, 0x9b16, 0x9b3a, 0x9b52, 0x9c2b, 0x9c1d, 0x9c1c, 0x9c2c, 0x9c23, 0x9c28, 0x9c29, 0x9c24, 0x9c21, 0x9db7, 0x9db6, 0x9dbc, 0x9dc1, 0x9dc7, 0x9dca, 0x9dcf, 0x9dbe, 0x9dc5, 0x9dc3, 0x9dbb, 0x9db5, 0x9dce, 0x9db9, 0x9dba, 0x9dac, 0x9dc8, 0x9db1, 0x9dad, 0x9dcc, 0x9db3, 0x9dcd, 0x9db2, 0x9e7a, 0x9e9c, 0x9eeb, 0x9eee, 0x9eed, 0x9f1b, 0x9f18, 0x9f1a, 0x9f31, 0x9f4e, 0x9f65, 0x9f64, 0x9f92, 0x4eb9, 0x56c6, 0x56c5, 0x56cb, 0x5971, 0x5b4b, 0x5b4c, 0x5dd5, 0x5dd1, 0x5ef2, 0x6521, 0x6520, 0x6526, 0x6522, 0x6b0b, 0x6b08, 0x6b09, 0x6c0d, 0x7055, 0x7056, 0x7057, 0x7052, 0x721e, 0x721f, 0x72a9, 0x737f, 0x74d8, 0x74d5, 0x74d9, 0x74d7, 0x766d, 0x76ad, 0x7935, 0x79b4, 0x7a70, 0x7a71, 0x7c57, 0x7c5c, 0x7c59, 0x7c5b, 0x7c5a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf740[ 63 ] = { 0x7cf4, 0x7cf1, 0x7e91, 0x7f4f, 0x7f87, 0x81de, 0x826b, 0x8634, 0x8635, 0x8633, 0x862c, 0x8632, 0x8636, 0x882c, 0x8828, 0x8826, 0x882a, 0x8825, 0x8971, 0x89bf, 0x89be, 0x89fb, 0x8b7e, 0x8b84, 0x8b82, 0x8b86, 0x8b85, 0x8b7f, 0x8d15, 0x8e95, 0x8e94, 0x8e9a, 0x8e92, 0x8e90, 0x8e96, 0x8e97, 0x8f60, 0x8f62, 0x9147, 0x944c, 0x9450, 0x944a, 0x944b, 0x944f, 0x9447, 0x9445, 0x9448, 0x9449, 0x9446, 0x973f, 0x97e3, 0x986a, 0x9869, 0x98cb, 0x9954, 0x995b, 0x9a4e, 0x9a53, 0x9a54, 0x9a4c, 0x9a4f, 0x9a48, 0x9a4a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf7a1[ 94 ] = { 0x9a49, 0x9a52, 0x9a50, 0x9ad0, 0x9b19, 0x9b2b, 0x9b3b, 0x9b56, 0x9b55, 0x9c46, 0x9c48, 0x9c3f, 0x9c44, 0x9c39, 0x9c33, 0x9c41, 0x9c3c, 0x9c37, 0x9c34, 0x9c32, 0x9c3d, 0x9c36, 0x9ddb, 0x9dd2, 0x9dde, 0x9dda, 0x9dcb, 0x9dd0, 0x9ddc, 0x9dd1, 0x9ddf, 0x9de9, 0x9dd9, 0x9dd8, 0x9dd6, 0x9df5, 0x9dd5, 0x9ddd, 0x9eb6, 0x9ef0, 0x9f35, 0x9f33, 0x9f32, 0x9f42, 0x9f6b, 0x9f95, 0x9fa2, 0x513d, 0x5299, 0x58e8, 0x58e7, 0x5972, 0x5b4d, 0x5dd8, 0x882f, 0x5f4f, 0x6201, 0x6203, 0x6204, 0x6529, 0x6525, 0x6596, 0x66eb, 0x6b11, 0x6b12, 0x6b0f, 0x6bca, 0x705b, 0x705a, 0x7222, 0x7382, 0x7381, 0x7383, 0x7670, 0x77d4, 0x7c67, 0x7c66, 0x7e95, 0x826c, 0x863a, 0x8640, 0x8639, 0x863c, 0x8631, 0x863b, 0x863e, 0x8830, 0x8832, 0x882e, 0x8833, 0x8976, 0x8974, 0x8973, 0x89fe }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf840[ 63 ] = { 0x8b8c, 0x8b8e, 0x8b8b, 0x8b88, 0x8c45, 0x8d19, 0x8e98, 0x8f64, 0x8f63, 0x91bc, 0x9462, 0x9455, 0x945d, 0x9457, 0x945e, 0x97c4, 0x97c5, 0x9800, 0x9a56, 0x9a59, 0x9b1e, 0x9b1f, 0x9b20, 0x9c52, 0x9c58, 0x9c50, 0x9c4a, 0x9c4d, 0x9c4b, 0x9c55, 0x9c59, 0x9c4c, 0x9c4e, 0x9dfb, 0x9df7, 0x9def, 0x9de3, 0x9deb, 0x9df8, 0x9de4, 0x9df6, 0x9de1, 0x9dee, 0x9de6, 0x9df2, 0x9df0, 0x9de2, 0x9dec, 0x9df4, 0x9df3, 0x9de8, 0x9ded, 0x9ec2, 0x9ed0, 0x9ef2, 0x9ef3, 0x9f06, 0x9f1c, 0x9f38, 0x9f37, 0x9f36, 0x9f43, 0x9f4f }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf8a1[ 94 ] = { 0x9f71, 0x9f70, 0x9f6e, 0x9f6f, 0x56d3, 0x56cd, 0x5b4e, 0x5c6d, 0x652d, 0x66ed, 0x66ee, 0x6b13, 0x705f, 0x7061, 0x705d, 0x7060, 0x7223, 0x74db, 0x74e5, 0x77d5, 0x7938, 0x79b7, 0x79b6, 0x7c6a, 0x7e97, 0x7f89, 0x826d, 0x8643, 0x8838, 0x8837, 0x8835, 0x884b, 0x8b94, 0x8b95, 0x8e9e, 0x8e9f, 0x8ea0, 0x8e9d, 0x91be, 0x91bd, 0x91c2, 0x946b, 0x9468, 0x9469, 0x96e5, 0x9746, 0x9743, 0x9747, 0x97c7, 0x97e5, 0x9a5e, 0x9ad5, 0x9b59, 0x9c63, 0x9c67, 0x9c66, 0x9c62, 0x9c5e, 0x9c60, 0x9e02, 0x9dfe, 0x9e07, 0x9e03, 0x9e06, 0x9e05, 0x9e00, 0x9e01, 0x9e09, 0x9dff, 0x9dfd, 0x9e04, 0x9ea0, 0x9f1e, 0x9f46, 0x9f74, 0x9f75, 0x9f76, 0x56d4, 0x652e, 0x65b8, 0x6b18, 0x6b19, 0x6b17, 0x6b1a, 0x7062, 0x7226, 0x72aa, 0x77d8, 0x77d9, 0x7939, 0x7c69, 0x7c6b, 0x7cf6, 0x7e9a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf940[ 63 ] = { 0x7e98, 0x7e9b, 0x7e99, 0x81e0, 0x81e1, 0x8646, 0x8647, 0x8648, 0x8979, 0x897a, 0x897c, 0x897b, 0x89ff, 0x8b98, 0x8b99, 0x8ea5, 0x8ea4, 0x8ea3, 0x946e, 0x946d, 0x946f, 0x9471, 0x9473, 0x9749, 0x9872, 0x995f, 0x9c68, 0x9c6e, 0x9c6d, 0x9e0b, 0x9e0d, 0x9e10, 0x9e0f, 0x9e12, 0x9e11, 0x9ea1, 0x9ef5, 0x9f09, 0x9f47, 0x9f78, 0x9f7b, 0x9f7a, 0x9f79, 0x571e, 0x7066, 0x7c6f, 0x883c, 0x8db2, 0x8ea6, 0x91c3, 0x9474, 0x9478, 0x9476, 0x9475, 0x9a60, 0x9c74, 0x9c73, 0x9c71, 0x9c75, 0x9e14, 0x9e13, 0x9ef6, 0x9f0a }; const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf9a1[ 94 ] = { 0x9fa4, 0x7068, 0x7065, 0x7cf7, 0x866a, 0x883e, 0x883d, 0x883f, 0x8b9e, 0x8c9c, 0x8ea9, 0x8ec9, 0x974b, 0x9873, 0x9874, 0x98cc, 0x9961, 0x99ab, 0x9a64, 0x9a66, 0x9a67, 0x9b24, 0x9e15, 0x9e17, 0x9f48, 0x6207, 0x6b1e, 0x7227, 0x864c, 0x8ea8, 0x9482, 0x9480, 0x9481, 0x9a69, 0x9a68, 0x9b2e, 0x9e19, 0x7229, 0x864b, 0x8b9f, 0x9483, 0x9c79, 0x9eb7, 0x7675, 0x9a6b, 0x9c7a, 0x9e1d, 0x7069, 0x706a, 0x9ea4, 0x9f7e, 0x9f49, 0x9f98, 0x7881, 0x92b9, 0x88cf, 0x58bb, 0x6052, 0x7ca7, 0x5afa, 0x2554, 0x2566, 0x2557, 0x2560, 0x256c, 0x2563, 0x255a, 0x2569, 0x255d, 0x2552, 0x2564, 0x2555, 0x255e, 0x256a, 0x2561, 0x2558, 0x2567, 0x255b, 0x2553, 0x2565, 0x2556, 0x255f, 0x256b, 0x2562, 0x2559, 0x2568, 0x255c, 0x2551, 0x2550, 0x256d, 0x256e, 0x2570, 0x256f, 0x2593, }; /* Unicode to ASCII character lookup table for Windows 950 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0x0080[ 128 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2a1, 0x58a2, 0xd3a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0x02c0[ 320 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbea3, 0x001a, 0xbca3, 0xbda3, 0xbfa3, 0x001a, 0xc5a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbba3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x44a3, 0x45a3, 0x46a3, 0x47a3, 0x48a3, 0x49a3, 0x4aa3, 0x4ba3, 0x4ca3, 0x4da3, 0x4ea3, 0x4fa3, 0x50a3, 0x51a3, 0x52a3, 0x53a3, 0x54a3, 0x001a, 0x55a3, 0x56a3, 0x57a3, 0x58a3, 0x59a3, 0x5aa3, 0x5ba3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ca3, 0x5da3, 0x5ea3, 0x5fa3, 0x60a3, 0x61a3, 0x62a3, 0x63a3, 0x64a3, 0x65a3, 0x66a3, 0x67a3, 0x68a3, 0x69a3, 0x6aa3, 0x6ba3, 0x6ca3, 0x001a, 0x6da3, 0x6ea3, 0x6fa3, 0x70a3, 0x71a3, 0x72a3, 0x73a3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0x2000[ 768 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56a1, 0x58a1, 0x001a, 0x001a, 0x001a, 0xa5a1, 0xa6a1, 0x001a, 0x001a, 0xa7a1, 0xa8a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ca1, 0x4ba1, 0x45a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaca1, 0x001a, 0x001a, 0xaba1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1a3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4aa2, 0x001a, 0xc1a1, 0x001a, 0x001a, 0x001a, 0x4ba2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9a2, 0xbaa2, 0xbba2, 0xbca2, 0xbda2, 0xbea2, 0xbfa2, 0xc0a2, 0xc1a2, 0xc2a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6a1, 0xf4a1, 0xf7a1, 0xf5a1, 0x001a, 0x001a, 0xf8a1, 0xf9a1, 0xfba1, 0xfaa1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41a2, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4a1, 0x001a, 0x001a, 0x001a, 0xdba1, 0xe8a1, 0xe7a1, 0x001a, 0x001a, 0xfda1, 0x001a, 0xfca1, 0x001a, 0x001a, 0x001a, 0xe4a1, 0xe5a1, 0xeca1, 0x001a, 0x001a, 0xeda1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefa1, 0xeea1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdca1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaa1, 0xdda1, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8a1, 0xd9a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2a1, 0x001a, 0x001a, 0x001a, 0xf3a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0x2500[ 384 ] = { 0x77a2, 0x001a, 0x78a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7aa2, 0x001a, 0x001a, 0x001a, 0x7ba2, 0x001a, 0x001a, 0x001a, 0x7ca2, 0x001a, 0x001a, 0x001a, 0x7da2, 0x001a, 0x001a, 0x001a, 0x75a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x74a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x72a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x71a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4a2, 0xf8f9, 0xe6f9, 0xeff9, 0xddf9, 0xe8f9, 0xf1f9, 0xdff9, 0xecf9, 0xf5f9, 0xe3f9, 0xeef9, 0xf7f9, 0xe5f9, 0xa5a2, 0xf2f9, 0xe0f9, 0xa7a2, 0xf4f9, 0xe2f9, 0xe7f9, 0xf0f9, 0xdef9, 0xedf9, 0xf6f9, 0xe4f9, 0xa6a2, 0xf3f9, 0xe1f9, 0x7ea2, 0xa1a2, 0xa3a2, 0xa2a2, 0xaca2, 0xada2, 0xaea2, 0x5aa1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62a2, 0x63a2, 0x64a2, 0x65a2, 0x66a2, 0x67a2, 0x68a2, 0x69a2, 0x70a2, 0x6fa2, 0x6ea2, 0x6da2, 0x6ca2, 0x6ba2, 0x6aa2, 0x001a, 0x001a, 0x001a, 0xfef9, 0x76a2, 0x79a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbda1, 0xbca1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6a1, 0xb5a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfa1, 0xbea1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbba1, 0xbaa1, 0x001a, 0x001a, 0x001a, 0xb3a1, 0x001a, 0x001a, 0xb7a1, 0xb4a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8a2, 0xa9a2, 0xaba2, 0xaaa2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9a1, 0xb8a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0a1, 0x001a, 0xf1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0x3000[ 1024 ] = { 0x40a1, 0x42a1, 0x43a1, 0xb2a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x71a1, 0x72a1, 0x6da1, 0x6ea1, 0x75a1, 0x76a1, 0x79a1, 0x7aa1, 0x69a1, 0x6aa1, 0x45a2, 0x001a, 0x65a1, 0x66a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9a1, 0xaaa1, 0x001a, 0x001a, 0xc3a2, 0xc4a2, 0xc5a2, 0xc6a2, 0xc7a2, 0xc8a2, 0xc9a2, 0xcaa2, 0xcba2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x74a3, 0x75a3, 0x76a3, 0x77a3, 0x78a3, 0x79a3, 0x7aa3, 0x7ba3, 0x7ca3, 0x7da3, 0x7ea3, 0xa1a3, 0xa2a3, 0xa3a3, 0xa4a3, 0xa5a3, 0xa6a3, 0xa7a3, 0xa8a3, 0xa9a3, 0xaaa3, 0xaba3, 0xaca3, 0xada3, 0xaea3, 0xafa3, 0xb0a3, 0xb1a3, 0xb2a3, 0xb3a3, 0xb4a3, 0xb5a3, 0xb6a3, 0xb7a3, 0xb8a3, 0xb9a3, 0xbaa3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x55a2, 0x56a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50a2, 0x51a2, 0x52a2, 0x001a, 0x001a, 0x54a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x57a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x53a2, 0x001a, 0x001a, 0xeba1, 0xeaa1, 0x001a, 0x001a, 0x4fa2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, }; const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0x4e00[ 20928 ] = { 0x40a4, 0x42a4, 0x001a, 0x43a4, 0x001a, 0x001a, 0x001a, 0x45c9, 0x56a4, 0x54a4, 0x57a4, 0x55a4, 0x46c9, 0xa3a4, 0x4fc9, 0x4dc9, 0xa2a4, 0xa1a4, 0x001a, 0x001a, 0x42a5, 0x41a5, 0x40a5, 0x001a, 0x43a5, 0xfea4, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0a5, 0xe1a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x58a4, 0x001a, 0xa4a4, 0x50c9, 0x001a, 0xa5a4, 0x63c9, 0xeaa6, 0xb1cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x59a4, 0xa6a4, 0x001a, 0x44a5, 0x64c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x40c9, 0x44a4, 0x001a, 0x5ba4, 0x001a, 0x47c9, 0x5ca4, 0x001a, 0x001a, 0xa7a4, 0x001a, 0x45a5, 0x47a5, 0x46a5, 0x001a, 0x001a, 0xe2a5, 0xe3a5, 0x001a, 0x001a, 0xc4a8, 0x001a, 0xbcad, 0x41a4, 0x001a, 0x001a, 0x41c9, 0x45a4, 0x5ea4, 0x5da4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaeb0, 0x4bd4, 0x001a, 0x001a, 0xc3b6, 0xb1dc, 0xb2dc, 0x001a, 0x46a4, 0x001a, 0xa9a4, 0x001a, 0x001a, 0xc6a8, 0x47a4, 0x48c9, 0x5fa4, 0x001a, 0x001a, 0xaaa4, 0xaca4, 0x51c9, 0xada4, 0xaba4, 0x001a, 0x001a, 0x001a, 0xe5a5, 0x001a, 0xc7a8, 0x001a, 0x001a, 0xc8a8, 0x45ab, 0x001a, 0x60a4, 0xaea4, 0x001a, 0xe6a5, 0xe8a5, 0xe7a5, 0x001a, 0xeba6, 0x001a, 0x001a, 0xc9a8, 0xcaa8, 0x46ab, 0x47ab, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdad, 0x001a, 0x001a, 0xb3dc, 0x001a, 0x001a, 0xd6f6, 0x48a4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0a4, 0xafa4, 0x52c9, 0xb1a4, 0xb7a4, 0x001a, 0xb2a4, 0xb3a4, 0x54c9, 0x53c9, 0xb5a4, 0xb6a4, 0x001a, 0xb4a4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4aa5, 0x4ba5, 0x4ca5, 0x4da5, 0x49a5, 0x50a5, 0x6ac9, 0x001a, 0x66c9, 0x69c9, 0x51a5, 0x61a5, 0x001a, 0x68c9, 0x001a, 0x4ea5, 0x4fa5, 0x48a5, 0x001a, 0x001a, 0x65c9, 0x67c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5a5, 0xb0c9, 0xf2a5, 0xf6a5, 0xbac9, 0xaec9, 0xf3a5, 0xb2c9, 0x001a, 0x001a, 0x001a, 0xf4a5, 0x001a, 0xf7a5, 0x001a, 0xe9a5, 0xb1c9, 0xf8a5, 0xb5c9, 0x001a, 0xb9c9, 0xb6c9, 0x001a, 0x001a, 0xb3c9, 0xeaa5, 0xeca5, 0xf9a5, 0x001a, 0xeea5, 0xabc9, 0xf1a5, 0xefa5, 0xf0a5, 0xbbc9, 0xb8c9, 0xafc9, 0xeda5, 0x001a, 0x001a, 0xacc9, 0xeba5, 0x001a, 0x001a, 0x001a, 0xb4c9, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadc9, 0x66ca, 0x001a, 0x42a7, 0xf4a6, 0x001a, 0x001a, 0x67ca, 0xf1a6, 0x001a, 0x44a7, 0x001a, 0xf9a6, 0x001a, 0xf8a6, 0x5bca, 0xfca6, 0xf7a6, 0x60ca, 0x68ca, 0x001a, 0x64ca, 0x001a, 0xfaa6, 0x001a, 0x001a, 0xfda6, 0xeea6, 0x47a7, 0x5dca, 0x001a, 0x001a, 0xbdcb, 0xeca6, 0x43a7, 0xeda6, 0xf5a6, 0xf6a6, 0x62ca, 0x5eca, 0xfba6, 0xf3a6, 0x5aca, 0xefa6, 0x65ca, 0x45a7, 0x48a7, 0xf2a6, 0x40a7, 0x46a7, 0xf0a6, 0x63ca, 0x41a7, 0x69ca, 0x5cca, 0xfea6, 0x5fca, 0x001a, 0x001a, 0x61ca, 0x001a, 0xd8a8, 0xbfcb, 0xcbcb, 0xd0a8, 0x001a, 0xcccb, 0xcba8, 0xd5a8, 0x001a, 0x001a, 0xcea8, 0xb9cb, 0xd6a8, 0xb8cb, 0xbccb, 0xc3cb, 0xc1cb, 0xdea8, 0xd9a8, 0xb3cb, 0xb5cb, 0xdba8, 0xcfa8, 0xb6cb, 0xc2cb, 0xc9cb, 0xd4a8, 0xbbcb, 0xb4cb, 0xd3a8, 0xb7cb, 0xd7a8, 0xbacb, 0x001a, 0xd2a8, 0x001a, 0xcda8, 0x001a, 0xdca8, 0xc4cb, 0xdda8, 0xc8cb, 0x001a, 0xc6cb, 0xcacb, 0xdaa8, 0xbecb, 0xb2cb, 0x001a, 0xc0cb, 0xd1a8, 0xc5cb, 0xcca8, 0xc7cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56ab, 0x4aab, 0x001a, 0x001a, 0xe0cd, 0xe8cd, 0x001a, 0x49ab, 0x51ab, 0x5dab, 0x001a, 0xeecd, 0xeccd, 0xe7cd, 0x001a, 0x001a, 0x001a, 0x4bab, 0xedcd, 0xe3cd, 0x59ab, 0x50ab, 0x58ab, 0xdecd, 0x001a, 0xeacd, 0x001a, 0xe1cd, 0x54ab, 0xe2cd, 0x001a, 0xddcd, 0x5bab, 0x4eab, 0x57ab, 0x4dab, 0x001a, 0xdfcd, 0xe4cd, 0x001a, 0xebcd, 0x55ab, 0x52ab, 0xe6cd, 0x5aab, 0xe9cd, 0xe5cd, 0x4fab, 0x5cab, 0x53ab, 0x4cab, 0x48ab, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefcd, 0x001a, 0xd7ad, 0xc1ad, 0x001a, 0xd1ad, 0x001a, 0xd6ad, 0xd0d0, 0xcfd0, 0xd4d0, 0xd5d0, 0xc4ad, 0x001a, 0xcdad, 0x001a, 0x001a, 0x001a, 0xdaad, 0x001a, 0xcead, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9d0, 0xc7ad, 0xcad0, 0x001a, 0xdcad, 0x001a, 0xd3ad, 0xbead, 0xbfad, 0xddd0, 0xbfb0, 0x001a, 0xccad, 0xcbad, 0xcbd0, 0xcfad, 0x5bd4, 0xc6ad, 0xd6d0, 0xd5ad, 0xd4ad, 0xcaad, 0xced0, 0xd7d0, 0x001a, 0xc8d0, 0xc9ad, 0xd8d0, 0xd2ad, 0xccd0, 0xc0ad, 0x001a, 0xc3ad, 0xc2ad, 0xd9d0, 0xd0ad, 0xc5ad, 0xd9ad, 0xdbad, 0xd3d0, 0xd8ad, 0x001a, 0xdbd0, 0xcdd0, 0xdcd0, 0x001a, 0xd1d0, 0x001a, 0xdad0, 0x001a, 0xd2d0, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8ad, 0x001a, 0x001a, 0x001a, 0x63d4, 0x57d4, 0x001a, 0xb3b0, 0x001a, 0x5cd4, 0x62d4, 0xb2b0, 0x55d4, 0xb6b0, 0x59d4, 0x52d4, 0xb4b0, 0x56d4, 0xb9b0, 0xbeb0, 0x001a, 0x67d4, 0x001a, 0x51d4, 0x001a, 0xbab0, 0x001a, 0x66d4, 0x001a, 0x001a, 0xb5b0, 0x58d4, 0xb1b0, 0x53d4, 0x4fd4, 0x5dd4, 0x50d4, 0x4ed4, 0x5ad4, 0x60d4, 0x61d4, 0xb7b0, 0x001a, 0x001a, 0x5bd8, 0x5ed4, 0x4dd4, 0x5fd4, 0x001a, 0xc1b0, 0x64d4, 0xc0b0, 0x4cd4, 0x001a, 0x54d4, 0x65d4, 0xbcb0, 0xbbb0, 0xb8b0, 0xbdb0, 0x001a, 0x001a, 0xafb0, 0x001a, 0x001a, 0xb0b0, 0x001a, 0x001a, 0xc8b3, 0x001a, 0x5ed8, 0x57d8, 0x001a, 0xc5b3, 0x001a, 0x5fd8, 0x001a, 0x001a, 0x001a, 0x55d8, 0x58d8, 0xc4b3, 0x59d8, 0x001a, 0x001a, 0xc7b3, 0x5dd8, 0x001a, 0x53d8, 0x52d8, 0xc9b3, 0x001a, 0xcab3, 0xc6b3, 0xcbb3, 0x51d8, 0x5cd8, 0x5ad8, 0x54d8, 0x001a, 0x001a, 0x001a, 0xc3b3, 0x56d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcab6, 0xc4b6, 0xb7dc, 0xcdb6, 0xbddc, 0xc0dc, 0xc6b6, 0xc7b6, 0xbadc, 0xc5b6, 0xc3dc, 0xcbb6, 0xc4dc, 0x001a, 0xbfdc, 0xccb6, 0x001a, 0xb4dc, 0xc9b6, 0xb5dc, 0x001a, 0xbedc, 0xbcdc, 0x001a, 0xb8dc, 0xc8b6, 0xb6dc, 0xceb6, 0xbbdc, 0xc2dc, 0xb9dc, 0xc1dc, 0x001a, 0x001a, 0xb6b9, 0xb3b9, 0x001a, 0xb4b9, 0x001a, 0xf9e0, 0xf1e0, 0xb2b9, 0xafb9, 0xf2e0, 0x001a, 0x001a, 0xb1b9, 0xf5e0, 0x001a, 0xf7e0, 0x001a, 0x001a, 0xfee0, 0x001a, 0x001a, 0xfde0, 0xf8e0, 0xaeb9, 0xf0e0, 0xacb9, 0xf3e0, 0xb7b9, 0xf6e0, 0x001a, 0xfae0, 0xb0b9, 0xadb9, 0xfce0, 0xfbe0, 0xb5b9, 0x001a, 0xf4e0, 0x001a, 0xf8bb, 0xece4, 0x001a, 0xe9e4, 0xf9bb, 0x001a, 0xf7bb, 0x001a, 0xf0e4, 0xede4, 0xe6e4, 0xf6bb, 0x001a, 0xfabb, 0xe7e4, 0xf5bb, 0xfdbb, 0xeae4, 0xebe4, 0xfbbb, 0xfcbb, 0xf1e4, 0xeee4, 0xefe4, 0x001a, 0x001a, 0x001a, 0xaabe, 0xf8e8, 0xa7be, 0xf5e8, 0xa9be, 0xabbe, 0x001a, 0xf6e8, 0xa8be, 0x001a, 0xf7e8, 0x001a, 0xf4e8, 0x001a, 0x001a, 0x76c0, 0xbdec, 0x77c0, 0xbbec, 0x001a, 0xbcec, 0xbaec, 0xb9ec, 0x001a, 0x001a, 0xbeec, 0x75c0, 0x001a, 0x001a, 0xb8ef, 0xb9ef, 0x001a, 0xe8e4, 0xb7ef, 0x78c0, 0x5fc3, 0xebf1, 0xecf1, 0x001a, 0xd7c4, 0xd8c4, 0xc1f5, 0xc0f5, 0x6cc5, 0x6bc5, 0xd0f7, 0x001a, 0x49a4, 0x61a4, 0xb9a4, 0x001a, 0xb8a4, 0x53a5, 0x52a5, 0xfca5, 0xfba5, 0xfda5, 0xfaa5, 0x001a, 0x4aa7, 0x49a7, 0x4ba7, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0a8, 0x001a, 0xdfa8, 0xe1a8, 0x001a, 0x5eab, 0x001a, 0x59a2, 0xded0, 0x5aa2, 0xc2b0, 0x5ca2, 0x5ba2, 0x60d8, 0x001a, 0x5da2, 0xb8b9, 0x5ea2, 0x001a, 0x4aa4, 0x001a, 0xbaa4, 0xfea5, 0xe2a8, 0x001a, 0x4ba4, 0xbda4, 0xbba4, 0xbca4, 0x001a, 0x001a, 0x40a6, 0x001a, 0x001a, 0x001a, 0x4ca7, 0xe4a8, 0xe3a8, 0xe5a8, 0x001a, 0x001a, 0x001a, 0xddad, 0x001a, 0x001a, 0x001a, 0xacbe, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ec9, 0x001a, 0x54a5, 0x55a5, 0x001a, 0x001a, 0x41a6, 0x001a, 0x6aca, 0x001a, 0x60ab, 0x5fab, 0xe0d0, 0xdfd0, 0xc3b0, 0x001a, 0xbea4, 0x55c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdcb, 0x001a, 0x61ab, 0x001a, 0xe0ad, 0x001a, 0xdead, 0xdfad, 0x001a, 0x001a, 0x001a, 0x001a, 0xadbe, 0x001a, 0x56a5, 0x001a, 0x001a, 0x001a, 0x42a6, 0xbcc9, 0x001a, 0x001a, 0x001a, 0x001a, 0x4da7, 0x4ea7, 0x001a, 0x6bca, 0x001a, 0x001a, 0xcecb, 0xe6a8, 0xcfcb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2d0, 0xe3d0, 0xe3ad, 0x001a, 0xe4d0, 0x001a, 0xe1d0, 0xe4ad, 0xe2ad, 0xe1ad, 0xe5d0, 0x001a, 0x68d4, 0x001a, 0x001a, 0x001a, 0x61d8, 0x001a, 0x001a, 0xc5dc, 0x40e1, 0x001a, 0x001a, 0x001a, 0xfebb, 0xaebe, 0xf9e8, 0x001a, 0x4ca4, 0x5aa4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4b0, 0xcdb3, 0x001a, 0xb9b9, 0x001a, 0x42c9, 0xbfa4, 0x001a, 0x59a5, 0x57a5, 0x58a5, 0x001a, 0x001a, 0xe7a8, 0x001a, 0x001a, 0x4da4, 0x4ea4, 0x001a, 0x62a4, 0x001a, 0x001a, 0xc0a4, 0xc1a4, 0xc2a4, 0xbec9, 0x5aa5, 0x001a, 0x6bc9, 0x001a, 0x46a6, 0x001a, 0xbfc9, 0x44a6, 0x45a6, 0xbdc9, 0x001a, 0x001a, 0x47a6, 0x43a6, 0x001a, 0x001a, 0x001a, 0x001a, 0x6cca, 0xecaa, 0x6dca, 0x001a, 0x001a, 0x6eca, 0x001a, 0x001a, 0x50a7, 0x4fa7, 0x001a, 0x001a, 0x53a7, 0x51a7, 0x52a7, 0x001a, 0x001a, 0x001a, 0xeda8, 0x001a, 0xeca8, 0xd4cb, 0xd1cb, 0xd2cb, 0x001a, 0xd0cb, 0xeea8, 0xeaa8, 0xe9a8, 0x001a, 0xeba8, 0xe8a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefa8, 0x001a, 0x63ab, 0xf0cd, 0x001a, 0xd3cb, 0x68ab, 0x001a, 0xf1cd, 0x64ab, 0x67ab, 0x66ab, 0x65ab, 0x62ab, 0x001a, 0x001a, 0x001a, 0xe8d0, 0x001a, 0xe7ad, 0xebd0, 0xe5ad, 0x001a, 0x001a, 0x001a, 0xe7d0, 0xe8ad, 0xe6ad, 0xe9ad, 0xe9d0, 0xead0, 0x001a, 0xe6d0, 0xecd0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1b3, 0xc5b0, 0x69d4, 0x6bd4, 0x6ad4, 0x6cd4, 0xc6b0, 0x001a, 0x001a, 0xceb3, 0x001a, 0xcfb3, 0xd0b3, 0x001a, 0xd0b6, 0xc7dc, 0x001a, 0xc6dc, 0xc8dc, 0xc9dc, 0xd1b6, 0x001a, 0xcfb6, 0x41e1, 0x42e1, 0xbbb9, 0xbab9, 0x5ae3, 0x001a, 0x001a, 0x40bc, 0x41bc, 0x42bc, 0x44bc, 0xf2e4, 0xf3e4, 0x43bc, 0x001a, 0x001a, 0x001a, 0xafbe, 0x001a, 0xb0be, 0x001a, 0x001a, 0xedf1, 0xc3f5, 0xc2f5, 0xd1f7, 0x001a, 0x4fa4, 0x001a, 0x001a, 0x001a, 0x5ca5, 0x5ba5, 0x001a, 0x001a, 0x48a6, 0x001a, 0x001a, 0xc0c9, 0x001a, 0x001a, 0x55a7, 0x56a7, 0x54a7, 0x57a7, 0x6fca, 0x70ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1a8, 0xd5cb, 0x001a, 0xf0a8, 0x001a, 0xf2cd, 0x6cab, 0xf3cd, 0x6bab, 0x001a, 0x001a, 0x001a, 0x69ab, 0x001a, 0x6aab, 0x001a, 0x001a, 0x001a, 0xedd0, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7b0, 0x6ed4, 0x001a, 0xcab0, 0x6dd4, 0xe5b1, 0xc9b0, 0xc8b0, 0x001a, 0xd4b3, 0x001a, 0xd3b3, 0xd2b3, 0xd2b6, 0x001a, 0x001a, 0xd5b6, 0xd6b6, 0xd4b6, 0x001a, 0xd3b6, 0x001a, 0x001a, 0x43e1, 0x001a, 0x44e1, 0x001a, 0x001a, 0x001a, 0xf5e4, 0x45bc, 0xf4e4, 0x001a, 0xb1be, 0xbfec, 0x79c0, 0x001a, 0xeef1, 0x55c4, 0x001a, 0x63a4, 0xc3a4, 0x56c9, 0x001a, 0xc4a4, 0xc5a4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5da5, 0x5ea5, 0x001a, 0x49a6, 0x71ca, 0xd6cb, 0xd7cb, 0x001a, 0x6dab, 0xeed0, 0xccb0, 0xcbb0, 0x63d8, 0x62d8, 0x001a, 0x001a, 0x50a4, 0xc6a4, 0x5fa5, 0x001a, 0xcdb0, 0x43c9, 0x001a, 0x6cc9, 0x60a5, 0x001a, 0xc2c9, 0x4ba6, 0x4aa6, 0xc1c9, 0x58a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeaad, 0x001a, 0x001a, 0x6fd4, 0x001a, 0xd7b6, 0x45e1, 0xbcb9, 0x001a, 0x001a, 0xfae8, 0x001a, 0x001a, 0xfdf3, 0x001a, 0xc7a4, 0x001a, 0x001a, 0xd8cb, 0xf4cd, 0xd0b0, 0xceb0, 0xcfb0, 0xcca2, 0x001a, 0x64a4, 0xcda2, 0xcea2, 0x001a, 0xc9a4, 0xc8a4, 0x63a5, 0x62a5, 0x001a, 0x6dc9, 0xc3c9, 0x001a, 0x001a, 0x001a, 0xf5a8, 0xf2a8, 0xf4a8, 0xf3a8, 0x001a, 0x001a, 0x6eab, 0x001a, 0x001a, 0xd5b3, 0x001a, 0x52a4, 0x001a, 0xcba4, 0x001a, 0x65a5, 0x64a5, 0x001a, 0x72ca, 0x001a, 0x001a, 0xf6a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x57c9, 0x001a, 0x67a5, 0x66a5, 0x4ca6, 0x4da6, 0x73ca, 0x59a7, 0x001a, 0x5aa7, 0x001a, 0xf7a8, 0xf8a8, 0xf9a8, 0x001a, 0x6fab, 0xf5cd, 0x001a, 0x001a, 0xebad, 0x001a, 0x001a, 0x44c9, 0x001a, 0xcca4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4c9, 0x001a, 0x001a, 0x001a, 0x74ca, 0x75ca, 0x001a, 0x001a, 0xd9cb, 0x001a, 0xdacb, 0x001a, 0xf7cd, 0xf6cd, 0xf9cd, 0xf8cd, 0x70ab, 0x001a, 0x70d4, 0xedad, 0xefd0, 0xecad, 0x001a, 0x001a, 0x001a, 0x001a, 0x64d8, 0xd6b3, 0x001a, 0x65d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x46e1, 0xbdb9, 0x001a, 0x001a, 0x001a, 0x001a, 0x46bc, 0x001a, 0xeff1, 0x001a, 0x001a, 0x001a, 0x001a, 0x58c9, 0x001a, 0x68a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1b0, 0x001a, 0x001a, 0x001a, 0x001a, 0x53a4, 0x65a4, 0xcea4, 0xcda4, 0x001a, 0xcfa4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfba8, 0x001a, 0xfaa8, 0xfca8, 0x001a, 0x001a, 0x001a, 0x71ab, 0x001a, 0x001a, 0x001a, 0xeead, 0x001a, 0xfbe8, 0x4fc2, 0x66a4, 0x6aa5, 0x79a5, 0x74a5, 0x001a, 0x6fa5, 0x6ea5, 0x75a5, 0x73a5, 0x6ca5, 0x7aa5, 0x6da5, 0x69a5, 0x78a5, 0x77a5, 0x76a5, 0x6ba5, 0x001a, 0x72a5, 0x001a, 0x001a, 0x71a5, 0x001a, 0x001a, 0x7ba5, 0x70a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x53a6, 0x001a, 0x59a6, 0x55a6, 0x001a, 0x5ba6, 0xc5c9, 0x58a6, 0x4ea6, 0x51a6, 0x54a6, 0x50a6, 0x57a6, 0x5aa6, 0x4fa6, 0x52a6, 0x56a6, 0x5ca6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7eca, 0x7bca, 0x001a, 0x67a7, 0x7cca, 0x5ba7, 0x5da7, 0x75a7, 0x70a7, 0x001a, 0x001a, 0x001a, 0xa5ca, 0x7dca, 0x5fa7, 0x61a7, 0xa4ca, 0x68a7, 0x78ca, 0x74a7, 0x76a7, 0x5ca7, 0x6da7, 0x001a, 0x76ca, 0x73a7, 0x001a, 0x64a7, 0x001a, 0x6ea7, 0x6fa7, 0x77ca, 0x6ca7, 0x6aa7, 0x001a, 0x6ba7, 0x71a7, 0xa1ca, 0x5ea7, 0x001a, 0x72a7, 0xa3ca, 0x66a7, 0x63a7, 0x001a, 0x7aca, 0x62a7, 0xa6ca, 0x65a7, 0x001a, 0x69a7, 0x001a, 0x001a, 0x001a, 0x60a7, 0xa2ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x79ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebcb, 0xeacb, 0x4fa9, 0xedcb, 0xefcb, 0xe4cb, 0xe7cb, 0xeecb, 0x50a9, 0x001a, 0x001a, 0xe1cb, 0xe5cb, 0x001a, 0x001a, 0xe9cb, 0x49ce, 0x4ba9, 0x4dce, 0xfda8, 0xe6cb, 0xfea8, 0x4ca9, 0x45a9, 0x41a9, 0x001a, 0xe2cb, 0x44a9, 0x49a9, 0x52a9, 0xe3cb, 0xdccb, 0x43a9, 0xddcb, 0xdfcb, 0x001a, 0x46a9, 0x001a, 0x48a9, 0xdbcb, 0xe0cb, 0x001a, 0x001a, 0x51a9, 0x4da9, 0xe8cb, 0x53a9, 0x001a, 0x4aa9, 0xdecb, 0x47a9, 0x001a, 0x001a, 0x42a9, 0x40a9, 0x001a, 0xeccb, 0x001a, 0x4ea9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x48ce, 0xfbcd, 0x4bce, 0x001a, 0x001a, 0xfdcd, 0x78ab, 0xa8ab, 0x74ab, 0xa7ab, 0x7dab, 0xa4ab, 0x72ab, 0xfccd, 0x43ce, 0xa3ab, 0x4fce, 0xa5ab, 0x001a, 0x79ab, 0x001a, 0x001a, 0x45ce, 0x42ce, 0x77ab, 0x001a, 0xfacd, 0xa6ab, 0x4ace, 0x7cab, 0x4cce, 0xa9ab, 0x73ab, 0x7eab, 0x7bab, 0x40ce, 0xa1ab, 0x46ce, 0x47ce, 0x7aab, 0xa2ab, 0x76ab, 0x001a, 0x001a, 0x001a, 0x001a, 0x75ab, 0xfecd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x44ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ece, 0x001a, 0x44d1, 0xfbad, 0xf1d0, 0x001a, 0xf6d0, 0xf4ad, 0x40ae, 0xf4d0, 0xefad, 0xf9ad, 0xfead, 0xfbd0, 0x001a, 0xfaad, 0xfdad, 0x001a, 0x001a, 0xfed0, 0xf5ad, 0xf5d0, 0x001a, 0x001a, 0x001a, 0x42d1, 0x43d1, 0x001a, 0xf7ad, 0x41d1, 0xf3ad, 0x43ae, 0x001a, 0xf8d0, 0x001a, 0xf1ad, 0x001a, 0x46d1, 0xf9d0, 0xfdd0, 0xf6ad, 0x42ae, 0xfad0, 0xfcad, 0x40d1, 0x47d1, 0xa1d4, 0x001a, 0x45d1, 0x44ae, 0xf0ad, 0xfcd0, 0xf3d0, 0x001a, 0xf8ad, 0x001a, 0x001a, 0xf2d0, 0x001a, 0x001a, 0xf7d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0d0, 0x41ae, 0x001a, 0x001a, 0x77d4, 0x001a, 0xe4b0, 0xa7d4, 0xe2b0, 0xdfb0, 0x7cd4, 0xdbb0, 0xa2d4, 0xe6b0, 0x76d4, 0x7bd4, 0x7ad4, 0xf2ad, 0xe1b0, 0xa5d4, 0x001a, 0xa8d4, 0x73d4, 0x001a, 0xe8b3, 0x001a, 0xa9d4, 0xe7b0, 0x001a, 0xd9b0, 0xd6b0, 0x7ed4, 0xd3b0, 0x001a, 0xa6d4, 0x001a, 0xdab0, 0xaad4, 0x001a, 0x74d4, 0xa4d4, 0xddb0, 0x75d4, 0x78d4, 0x7dd4, 0x001a, 0x001a, 0xdeb0, 0xdcb0, 0xe8b0, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3b0, 0x001a, 0xd7b0, 0xd2b1, 0x001a, 0xd8b0, 0x79d4, 0xe5b0, 0xe0b0, 0xa3d4, 0xd5b0, 0x001a, 0x001a, 0x001a, 0xd4b0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x71d4, 0x72d4, 0x6ad8, 0x001a, 0x001a, 0x001a, 0xd7b3, 0xdab3, 0x75d8, 0xeeb3, 0x78d8, 0xd8b3, 0x71d8, 0xdeb3, 0xe4b3, 0xbdb5, 0x001a, 0x001a, 0xe2b3, 0x6ed8, 0xefb3, 0xdbb3, 0xe3b3, 0x76d8, 0xd7dc, 0x7bd8, 0x6fd8, 0x001a, 0x66d8, 0x73d8, 0x6dd8, 0xe1b3, 0x79d8, 0x001a, 0x001a, 0xddb3, 0xf1b3, 0xeab3, 0x001a, 0xdfb3, 0xdcb3, 0x001a, 0xe7b3, 0x001a, 0x7ad8, 0x6cd8, 0x72d8, 0x74d8, 0x68d8, 0x77d8, 0xd9b3, 0x67d8, 0x001a, 0xe0b3, 0xf0b3, 0xecb3, 0x69d8, 0xe6b3, 0x001a, 0x001a, 0xedb3, 0xe9b3, 0xe5b3, 0x001a, 0x70d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebb3, 0x001a, 0x001a, 0x001a, 0xd5dc, 0xd1dc, 0x001a, 0xe0dc, 0xcadc, 0xd3dc, 0xe5b6, 0xe6b6, 0xdeb6, 0xdcdc, 0xe8b6, 0xcfdc, 0xcedc, 0xccdc, 0xdedc, 0xdcb6, 0xd8dc, 0xcddc, 0xdfb6, 0xd6dc, 0xdab6, 0xd2dc, 0xd9dc, 0xdbdc, 0x001a, 0x001a, 0xdfdc, 0xe3b6, 0xcbdc, 0xddb6, 0xd0dc, 0x001a, 0xd8b6, 0x001a, 0xe4b6, 0xdadc, 0xe0b6, 0xe1b6, 0xe7b6, 0xdbb6, 0x5fa2, 0xd9b6, 0xd4dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2b6, 0x001a, 0x001a, 0xdddc, 0x001a, 0x001a, 0x001a, 0xcdb9, 0xc8b9, 0x001a, 0x55e1, 0x51e1, 0x001a, 0x4be1, 0xc2b9, 0xbeb9, 0x54e1, 0xbfb9, 0x4ee1, 0x50e1, 0x001a, 0x53e1, 0x001a, 0xc4b9, 0x001a, 0xcbb9, 0xc5b9, 0x001a, 0x001a, 0x49e1, 0xc6b9, 0xc7b9, 0x4ce1, 0xccb9, 0x001a, 0x4ae1, 0x4fe1, 0xc3b9, 0x48e1, 0xc9b9, 0xc1b9, 0x001a, 0x001a, 0x001a, 0xc0b9, 0x4de1, 0x52e1, 0x001a, 0xcab9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x47e1, 0x001a, 0x4dbc, 0x47e5, 0x001a, 0x44e5, 0x001a, 0x47bc, 0x53bc, 0x54bc, 0x001a, 0x4abc, 0x42e5, 0x4cbc, 0xf9e4, 0x52bc, 0x001a, 0x46e5, 0x49bc, 0x48e5, 0x48bc, 0x001a, 0x43e5, 0x45e5, 0x4bbc, 0x41e5, 0xfae4, 0xf7e4, 0x001a, 0x001a, 0x6bd8, 0xfde4, 0x001a, 0xf6e4, 0xfce4, 0xfbe4, 0x001a, 0xf8e4, 0x001a, 0x4fbc, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ebc, 0x001a, 0x001a, 0x001a, 0x50bc, 0xfee4, 0xb2be, 0x40e5, 0x001a, 0x001a, 0x001a, 0x45e9, 0x001a, 0xfde8, 0x001a, 0xbebe, 0x42e9, 0xb6be, 0xbabe, 0x41e9, 0x001a, 0xb9be, 0xb5be, 0xb8be, 0xb3be, 0xbdbe, 0x43e9, 0xfee8, 0xbcbe, 0xfce8, 0xbbbe, 0x44e9, 0x40e9, 0x51bc, 0x001a, 0xbfbe, 0x46e9, 0xb7be, 0xb4be, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6ec, 0xc8ec, 0x7bc0, 0xc9ec, 0xc7ec, 0xc5ec, 0xc4ec, 0x7dc0, 0xc3ec, 0x7ec0, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1ec, 0xc2ec, 0x7ac0, 0xa1c0, 0x7cc0, 0x001a, 0x001a, 0xc0ec, 0x001a, 0x50c2, 0x001a, 0xbcef, 0xbaef, 0xbfef, 0xbdef, 0x001a, 0xbbef, 0xbeef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x60c3, 0xf2f1, 0xf3f1, 0x56c4, 0x001a, 0xf4f1, 0xf0f1, 0xf5f1, 0xf1f1, 0x51c2, 0x001a, 0x001a, 0x001a, 0xfef3, 0x41f4, 0x59c4, 0x40f4, 0x58c4, 0x57c4, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ac4, 0xc5f5, 0xc6f5, 0x001a, 0xdac4, 0xd9c4, 0xdbc4, 0xc4f5, 0x001a, 0xd8f6, 0xd7f6, 0x001a, 0x6dc5, 0x6fc5, 0x6ec5, 0xd9f6, 0xc8c5, 0xa6f8, 0x001a, 0x001a, 0x001a, 0xf1c5, 0x001a, 0xa5f8, 0xeef8, 0x001a, 0x001a, 0x49c9, 0x001a, 0x001a, 0x7da5, 0x7ca5, 0x001a, 0x5fa6, 0x5ea6, 0xc7c9, 0x5da6, 0xc6c9, 0x001a, 0x001a, 0x79a7, 0xa9ca, 0x001a, 0xa8ca, 0x001a, 0x001a, 0x77a7, 0x7aa7, 0x001a, 0x001a, 0xa7ca, 0x001a, 0x78a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0cb, 0x001a, 0xf1cb, 0x54a9, 0x001a, 0x001a, 0x001a, 0x001a, 0xaaab, 0x001a, 0x48d1, 0x49d1, 0x45ae, 0x46ae, 0x001a, 0x001a, 0xacd4, 0xe9b0, 0xebb0, 0xabd4, 0xeab0, 0x7cd8, 0xf2b3, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9b6, 0xeab6, 0xe1dc, 0x001a, 0xcfb9, 0x001a, 0xceb9, 0x001a, 0x49e5, 0x48e9, 0x47e9, 0x001a, 0x6bf9, 0x67a4, 0x59c9, 0x001a, 0x6ec9, 0x6fc9, 0x001a, 0x001a, 0x001a, 0x001a, 0x62a6, 0x66a6, 0xc9c9, 0x001a, 0x64a6, 0x63a6, 0xc8c9, 0x65a6, 0x61a6, 0x001a, 0x001a, 0x60a6, 0xcac9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6a7, 0x001a, 0x001a, 0xa3a7, 0x001a, 0x7da7, 0xaaca, 0x001a, 0x001a, 0x001a, 0xabca, 0x001a, 0xa1a7, 0x001a, 0xadca, 0x7ba7, 0xaeca, 0xacca, 0x7ea7, 0xa2a7, 0xa5a7, 0xa4a7, 0x7ca7, 0xafca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x59a9, 0xfecb, 0x001a, 0x5ba9, 0x001a, 0x5aa9, 0x001a, 0x40cc, 0x58a9, 0x57a9, 0xf5cb, 0x001a, 0xf4cb, 0x001a, 0xf2cb, 0xf7cb, 0xf6cb, 0xf3cb, 0xfccb, 0xfdcb, 0xfacb, 0xf8cb, 0x56a9, 0x001a, 0x001a, 0x001a, 0xfbcb, 0x5ca9, 0x41cc, 0x001a, 0x001a, 0xf9cb, 0x001a, 0xabab, 0x55a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacab, 0x54ce, 0x001a, 0x001a, 0x5ace, 0x001a, 0x001a, 0x001a, 0xb2ab, 0x58ce, 0x5ece, 0x001a, 0x55ce, 0x59ce, 0x5bce, 0x5dce, 0x57ce, 0x001a, 0x56ce, 0x51ce, 0x52ce, 0xadab, 0x001a, 0xafab, 0xaeab, 0x53ce, 0x5cce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1ab, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50ce, 0x53d1, 0x001a, 0x52d1, 0x57d1, 0x4ed1, 0x001a, 0x51d1, 0x50d1, 0x001a, 0x54d1, 0x001a, 0x58d1, 0x47ae, 0x4aae, 0x001a, 0x001a, 0x4fd1, 0x55d1, 0x001a, 0x001a, 0x001a, 0x49ae, 0x4ad1, 0x001a, 0xb0ab, 0xbad4, 0x56d1, 0x001a, 0x4dd1, 0x001a, 0x48ae, 0x4cd1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1d4, 0x001a, 0x001a, 0xecb0, 0xf0b0, 0xc1d4, 0xafd4, 0xbdd4, 0xf1b0, 0xbfd4, 0x001a, 0xc5d4, 0x001a, 0xc9d4, 0x001a, 0x001a, 0xc0d4, 0xb4d4, 0xbcd4, 0x001a, 0xcad4, 0xc8d4, 0xbed4, 0xb9d4, 0xb2d4, 0xa6d8, 0xb0d4, 0xf5b0, 0xb7d4, 0xf6b0, 0xf2b0, 0xadd4, 0xc3d4, 0xb5d4, 0x001a, 0x001a, 0xb3d4, 0xc6d4, 0xf3b0, 0x001a, 0xccd4, 0xedb0, 0xefb0, 0xbbd4, 0xb6d4, 0x4bae, 0xeeb0, 0xb8d4, 0xc7d4, 0xcbd4, 0xc2d4, 0x001a, 0xc4d4, 0x001a, 0x001a, 0x001a, 0xaed4, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1d8, 0x001a, 0xaad8, 0xa9d8, 0xfab3, 0xa2d8, 0x001a, 0xfbb3, 0xf9b3, 0x001a, 0xa4d8, 0xf6b3, 0xa8d8, 0x001a, 0xa3d8, 0xa5d8, 0x7dd8, 0xf4b3, 0x001a, 0xb2d8, 0xb1d8, 0xaed8, 0xf3b3, 0xf7b3, 0xf8b3, 0x4bd1, 0xabd8, 0xf5b3, 0xf4b0, 0xadd8, 0x7ed8, 0xb0d8, 0xafd8, 0x001a, 0xb3d8, 0x001a, 0xefdc, 0x001a, 0xacd8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7d8, 0xe7dc, 0xf4b6, 0xf7b6, 0xf2b6, 0xe6dc, 0xeadc, 0xe5dc, 0x001a, 0xecb6, 0xf6b6, 0xe2dc, 0xf0b6, 0xe9dc, 0x001a, 0xeeb6, 0xedb6, 0xecdc, 0xefb6, 0xeedc, 0x001a, 0xebdc, 0xebb6, 0x001a, 0x001a, 0x001a, 0xf5b6, 0xf0dc, 0xe4dc, 0xeddc, 0x001a, 0x001a, 0xe3dc, 0x001a, 0x001a, 0xf1b6, 0x001a, 0xf3b6, 0x001a, 0xe8dc, 0x001a, 0xf1dc, 0x001a, 0x001a, 0x5de1, 0xd0b9, 0x63e1, 0x001a, 0x001a, 0xd5b9, 0x5fe1, 0x66e1, 0x57e1, 0xd7b9, 0xd1b9, 0x5ce1, 0x55bc, 0x5be1, 0x64e1, 0xd2b9, 0x001a, 0xd6b9, 0x5ae1, 0x60e1, 0x65e1, 0x56e1, 0xd4b9, 0x5ee1, 0x001a, 0x001a, 0x62e1, 0x68e1, 0x58e1, 0x61e1, 0x001a, 0xd3b9, 0x67e1, 0x001a, 0x001a, 0x001a, 0x59e1, 0x001a, 0x001a, 0x001a, 0x59bc, 0x4be5, 0x57bc, 0x56bc, 0x4de5, 0x52e5, 0x001a, 0x4ee5, 0x001a, 0x51e5, 0x5cbc, 0x001a, 0xa5be, 0x5bbc, 0x001a, 0x4ae5, 0x50e5, 0x001a, 0x5abc, 0x4fe5, 0x001a, 0x4ce5, 0x001a, 0x58bc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4de9, 0xd9f9, 0x4fe9, 0x4ae9, 0xc1be, 0x4ce9, 0x001a, 0xc0be, 0x4ee9, 0x001a, 0x001a, 0xc3be, 0x50e9, 0xc2be, 0x49e9, 0x4be9, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5c0, 0xccec, 0x001a, 0xa4c0, 0xcdec, 0xa3c0, 0xcbec, 0xa2c0, 0xcaec, 0x001a, 0x53c2, 0x52c2, 0xf6f1, 0xf8f1, 0x001a, 0xf7f1, 0x61c3, 0x62c3, 0x001a, 0x001a, 0x63c3, 0x42f4, 0x5bc4, 0x001a, 0x001a, 0xd3f7, 0xd2f7, 0xf2c5, 0x001a, 0x68a4, 0xd0a4, 0x001a, 0x001a, 0xa7a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x5fce, 0x001a, 0x001a, 0x001a, 0x001a, 0xfcb3, 0xfdb3, 0x001a, 0xf2dc, 0xd8b9, 0x69e1, 0x53e5, 0x001a, 0x001a, 0x001a, 0x5ac9, 0x001a, 0x001a, 0xb0ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x42cc, 0x60ce, 0x59d1, 0x4cae, 0x001a, 0x001a, 0xf9f1, 0x001a, 0xdcc4, 0x69a4, 0x7ea5, 0x70c9, 0x001a, 0x67a6, 0x68a6, 0x001a, 0x5da9, 0x001a, 0x001a, 0x001a, 0xf7b0, 0x001a, 0xdab9, 0x001a, 0xdbb9, 0xd9b9, 0x001a, 0x6aa4, 0x001a, 0xd1a4, 0xd3a4, 0xd2a4, 0x5bc9, 0xd4a4, 0xa1a5, 0x71c9, 0x001a, 0xa2a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x69a6, 0x6aa6, 0x001a, 0x001a, 0x001a, 0xcbc9, 0x001a, 0xa8a7, 0x001a, 0xb1ca, 0x001a, 0x001a, 0x001a, 0x61a9, 0x43cc, 0x001a, 0x5fa9, 0x60a9, 0x5ea9, 0x5ad1, 0x001a, 0x001a, 0x001a, 0xb6ab, 0xb5ab, 0xb7ab, 0xb4ab, 0x001a, 0x61ce, 0x62a9, 0xb3ab, 0x001a, 0x4dae, 0x4eae, 0x001a, 0x4fae, 0x001a, 0xcdd4, 0x001a, 0x001a, 0x001a, 0xfeb3, 0xb4d8, 0xf8b0, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8b6, 0x001a, 0xddb9, 0xdcb9, 0x6ae1, 0x001a, 0x5dbc, 0xc4be, 0x001a, 0xc0ef, 0xdaf6, 0xd4f7, 0x6ba4, 0xa3a5, 0x001a, 0xa4a5, 0xd1c9, 0x6ca6, 0x6fa6, 0x001a, 0xcfc9, 0xcdc9, 0x6ea6, 0xd0c9, 0xd2c9, 0xccc9, 0x71a6, 0x70a6, 0x6da6, 0x6ba6, 0xcec9, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3a7, 0x001a, 0x001a, 0xb0a7, 0xb6ca, 0xb9ca, 0xb8ca, 0x001a, 0xaaa7, 0xb2a7, 0x001a, 0x001a, 0xafa7, 0xb5ca, 0xb3ca, 0xaea7, 0x001a, 0x001a, 0x001a, 0xa9a7, 0xaca7, 0x001a, 0xb4ca, 0xbbca, 0xb7ca, 0xada7, 0xb1a7, 0xb4a7, 0xb2ca, 0xbaca, 0xaba7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x67a9, 0x6fa9, 0x001a, 0x4fcc, 0x48cc, 0x70a9, 0x53cc, 0x44cc, 0x4bcc, 0x001a, 0x001a, 0x66a9, 0x45cc, 0x64a9, 0x4ccc, 0x50cc, 0x63a9, 0x001a, 0x51cc, 0x4acc, 0x001a, 0x4dcc, 0x001a, 0x72a9, 0x69a9, 0x54cc, 0x52cc, 0x001a, 0x6ea9, 0x6ca9, 0x49cc, 0x6ba9, 0x47cc, 0x46cc, 0x6aa9, 0x68a9, 0x71a9, 0x6da9, 0x65a9, 0x001a, 0x4ecc, 0x001a, 0xb9ab, 0x001a, 0xc0ab, 0x6fce, 0xb8ab, 0x67ce, 0x63ce, 0x001a, 0x73ce, 0x62ce, 0x001a, 0xbbab, 0x6cce, 0xbeab, 0xc1ab, 0x001a, 0xbcab, 0x70ce, 0xbfab, 0x001a, 0x56ae, 0x76ce, 0x64ce, 0x001a, 0x001a, 0x66ce, 0x6dce, 0x71ce, 0x75ce, 0x72ce, 0x6bce, 0x6ece, 0x001a, 0x001a, 0x68ce, 0xc3ab, 0x6ace, 0x69ce, 0x74ce, 0xbaab, 0x65ce, 0xc2ab, 0x001a, 0xbdab, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5cae, 0x62d1, 0x001a, 0x5bae, 0x001a, 0x001a, 0x60d1, 0x001a, 0x50ae, 0x001a, 0x55ae, 0x001a, 0x5fd1, 0x5cd1, 0x61d1, 0x51ae, 0x5bd1, 0x001a, 0x54ae, 0x52ae, 0x001a, 0x63d1, 0x53ae, 0x57ae, 0x001a, 0x001a, 0x58ae, 0x001a, 0x5aae, 0x001a, 0x001a, 0x001a, 0x59ae, 0x001a, 0x001a, 0x001a, 0x5dd1, 0x5ed1, 0x001a, 0x001a, 0x001a, 0x001a, 0x64d1, 0x001a, 0xd4d4, 0xf9b0, 0xc2d8, 0xd3d4, 0xe6d4, 0x001a, 0x001a, 0x40b1, 0x001a, 0xe4d4, 0x001a, 0xfeb0, 0xfab0, 0xedd4, 0xddd4, 0xe0d4, 0x001a, 0x43b1, 0xead4, 0xe2d4, 0xfbb0, 0x44b1, 0x001a, 0xe7d4, 0xe5d4, 0x001a, 0x001a, 0xd6d4, 0xebd4, 0xdfd4, 0xdad4, 0x001a, 0xd0d4, 0xecd4, 0xdcd4, 0xcfd4, 0x001a, 0x42b1, 0xe1d4, 0xeed4, 0xded4, 0xd2d4, 0xd7d4, 0xced4, 0x001a, 0x41b1, 0x001a, 0xdbd4, 0xd8d4, 0xfcb0, 0xd1d4, 0x001a, 0xe9d4, 0xfdb0, 0x001a, 0xd9d4, 0xd5d4, 0x001a, 0x001a, 0xe8d4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x40b4, 0xbbd8, 0x001a, 0xb8d8, 0xc9d8, 0xbdd8, 0xcad8, 0x001a, 0x42b4, 0x001a, 0x001a, 0x001a, 0xc6d8, 0xc3d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4d8, 0xc7d8, 0xcbd8, 0x001a, 0xe3d4, 0xcdd8, 0x47dd, 0x001a, 0x43b4, 0xced8, 0xb6d8, 0xc0d8, 0x001a, 0xc5d8, 0x001a, 0x001a, 0x41b4, 0x44b4, 0xccd8, 0xcfd8, 0xbad8, 0xb7d8, 0x001a, 0x001a, 0xb9d8, 0x001a, 0x001a, 0xbed8, 0xbcd8, 0x45b4, 0x001a, 0xc8d8, 0x001a, 0x001a, 0xbfd8, 0x001a, 0xc1d8, 0xb5d8, 0xfadc, 0xf8dc, 0x42b7, 0x40b7, 0x43dd, 0xf9dc, 0x44dd, 0x40dd, 0xf7dc, 0x46dd, 0xf6dc, 0xfddc, 0xfeb6, 0xfdb6, 0xfcb6, 0xfbdc, 0x41dd, 0xf9b6, 0x41b7, 0x001a, 0xf4dc, 0x001a, 0xfedc, 0xf3dc, 0xfcdc, 0xfab6, 0x42dd, 0xf5dc, 0xfbb6, 0x45dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ee1, 0xe2b9, 0xe1b9, 0xe3b9, 0x7ae1, 0x70e1, 0x76e1, 0x6be1, 0x79e1, 0x78e1, 0x7ce1, 0x75e1, 0xdeb9, 0x74e1, 0xe4b9, 0x001a, 0x6de1, 0xdfb9, 0x001a, 0x7be1, 0xe0b9, 0x6fe1, 0x72e1, 0x77e1, 0x71e1, 0x6ce1, 0x001a, 0x001a, 0x001a, 0x001a, 0x73e1, 0x55e5, 0x61bc, 0x58e5, 0x57e5, 0x5ae5, 0x5ce5, 0xdcf9, 0x5fbc, 0x001a, 0x56e5, 0x001a, 0x54e5, 0x001a, 0x5de5, 0x5be5, 0x59e5, 0x001a, 0x5fe5, 0x001a, 0x5ee5, 0x63bc, 0x5ebc, 0x001a, 0x60bc, 0x62bc, 0x001a, 0x001a, 0x60e5, 0x57e9, 0x001a, 0x001a, 0x56e9, 0x55e9, 0x001a, 0x58e9, 0x51e9, 0x001a, 0x52e9, 0x5ae9, 0x53e9, 0x001a, 0xc5be, 0x5ce9, 0x001a, 0x5be9, 0x54e9, 0x001a, 0xd1ec, 0xa8c0, 0xcfec, 0xd4ec, 0xd3ec, 0x59e9, 0x001a, 0xa7c0, 0x001a, 0xd2ec, 0xceec, 0xd6ec, 0xd5ec, 0xa6c0, 0x001a, 0xd0ec, 0x001a, 0xc6be, 0x001a, 0x001a, 0x001a, 0x54c2, 0x001a, 0x001a, 0x001a, 0xc1ef, 0xfaf1, 0xfbf1, 0xfcf1, 0x5cc4, 0x001a, 0x001a, 0x5dc4, 0x001a, 0x43f4, 0x001a, 0xc8f5, 0xc7f5, 0x001a, 0x001a, 0xdbf6, 0xdcf6, 0xd5f7, 0xa7f8, 0x001a, 0x6ca4, 0x6da4, 0x001a, 0x6ea4, 0xd5a4, 0xa5a5, 0xd3c9, 0x72a6, 0x73a6, 0x001a, 0xb7a7, 0xb8a7, 0xb6a7, 0xb5a7, 0x001a, 0x73a9, 0x001a, 0x001a, 0x55cc, 0x75a9, 0x74a9, 0x56cc, 0x001a, 0x001a, 0x001a, 0xc4ab, 0x001a, 0x5dae, 0x65d1, 0x001a, 0xf0d4, 0x001a, 0x45b1, 0x47b4, 0xefd4, 0x46b4, 0x001a, 0xe5b9, 0x001a, 0x7de1, 0xc7be, 0x001a, 0xa9c0, 0xd7ec, 0x001a, 0x5ec4, 0x001a, 0x70c5, 0x001a, 0x72c9, 0x001a, 0xa6a5, 0x73c9, 0x76a6, 0x001a, 0x74a6, 0x75a6, 0x77a6, 0x001a, 0xbaa7, 0xb9a7, 0x001a, 0xbcca, 0xbba7, 0x001a, 0x001a, 0xbdca, 0x57cc, 0x001a, 0x58cc, 0x001a, 0x76a9, 0x78a9, 0x7aa9, 0x77a9, 0x7ba9, 0x79a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8ab, 0xc5ab, 0xc7ab, 0xc9ab, 0xc6ab, 0x66d1, 0x77ce, 0x001a, 0x001a, 0x001a, 0x68d1, 0x67d1, 0x63ae, 0x001a, 0x5fae, 0x001a, 0x001a, 0x60ae, 0x62ae, 0x64ae, 0x61ae, 0x001a, 0x66ae, 0x65ae, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ab1, 0xf2d4, 0xf1d4, 0x49b1, 0x001a, 0x48b1, 0x47b1, 0x4bb1, 0x46b1, 0x001a, 0x001a, 0xd5d8, 0xd2d8, 0x49b4, 0xd1d8, 0xd6d8, 0x001a, 0x4bb4, 0xd4d8, 0x48b4, 0x4ab4, 0xd3d8, 0x001a, 0x48dd, 0x001a, 0x49dd, 0x4add, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6b9, 0xeeb9, 0x7ee1, 0xe8b9, 0xecb9, 0xa1e1, 0xedb9, 0xe9b9, 0xeab9, 0xe7b9, 0xebb9, 0x66bc, 0xd0d8, 0x67bc, 0x65bc, 0x001a, 0x64bc, 0x5de9, 0xc8be, 0xd8ec, 0xd9ec, 0x001a, 0x001a, 0x64c3, 0x5fc4, 0x001a, 0x6fa4, 0x001a, 0x78a6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaab, 0x001a, 0x69d1, 0x67ae, 0x001a, 0x001a, 0x4eb1, 0x4db1, 0x4cb1, 0x4cb4, 0x4db4, 0xd7d8, 0xefb9, 0xc9be, 0x70a4, 0x5cc9, 0xd6a4, 0x74c9, 0x001a, 0x001a, 0xd4c9, 0x79a6, 0x001a, 0x001a, 0x001a, 0x7ca9, 0x001a, 0x001a, 0x001a, 0x001a, 0x4bdd, 0x001a, 0x001a, 0x71a4, 0x001a, 0xd7a4, 0xd5c9, 0x001a, 0x001a, 0xbeca, 0x001a, 0xbfca, 0x001a, 0xbca7, 0x001a, 0x001a, 0x001a, 0xd8d8, 0x4eb4, 0x001a, 0x4cdd, 0x001a, 0x001a, 0x001a, 0xaac0, 0x72a4, 0xa8a4, 0xd8a4, 0x75c9, 0xa7a5, 0x001a, 0xc0a7, 0xbfa7, 0xbda7, 0xbea7, 0x001a, 0x001a, 0x59cc, 0x7ea9, 0xa1a9, 0x5acc, 0x7da9, 0x001a, 0x001a, 0xceab, 0x78ce, 0xcdab, 0xcbab, 0xccab, 0x6aae, 0x68ae, 0x001a, 0x001a, 0x6bd1, 0x69ae, 0x6ad1, 0x001a, 0x5eae, 0xf3d4, 0x001a, 0x001a, 0x50b1, 0x51b1, 0x001a, 0x001a, 0x4fb1, 0x001a, 0xf0b9, 0xa2e1, 0x68bc, 0x69bc, 0x001a, 0x61e5, 0xabc0, 0xc2ef, 0xc3ef, 0x001a, 0xddc4, 0xa8f8, 0x4bc9, 0xd9a4, 0x001a, 0x73a4, 0x001a, 0x77c9, 0x76c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x7aa6, 0xd7c9, 0xd8c9, 0xd6c9, 0x001a, 0xd9c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7ca, 0x001a, 0xc2ca, 0xc4ca, 0xc6ca, 0xc3ca, 0xc4a7, 0xc0ca, 0x001a, 0xc1ca, 0xc1a7, 0xc2a7, 0xc5ca, 0xc8ca, 0xc3a7, 0xc9ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x68cc, 0x001a, 0x62cc, 0x5dcc, 0xa3a9, 0x65cc, 0x63cc, 0x5ccc, 0x69cc, 0x6ccc, 0x67cc, 0x60cc, 0xa5a9, 0x66cc, 0xa6a9, 0x61cc, 0x64cc, 0x5bcc, 0x5fcc, 0x6bcc, 0xa7a9, 0x001a, 0xa8a9, 0x001a, 0x5ecc, 0x6acc, 0xa2a9, 0xa4a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xabce, 0xa4ce, 0xaace, 0xa3ce, 0xa5ce, 0x7dce, 0x7bce, 0x001a, 0xacce, 0xa9ce, 0x79ce, 0x001a, 0xd0ab, 0xa7ce, 0xa8ce, 0x001a, 0xa6ce, 0x7cce, 0x7ace, 0xcfab, 0xa2ce, 0x7ece, 0x001a, 0x001a, 0xa1ce, 0xadce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6fae, 0x001a, 0x6eae, 0x001a, 0x6cd1, 0x6bae, 0x6ed1, 0x001a, 0x70ae, 0x6fd1, 0x001a, 0x001a, 0x73ae, 0x001a, 0x71ae, 0x70d1, 0xaece, 0x72d1, 0x001a, 0x6dae, 0x001a, 0x6cae, 0x001a, 0x6dd1, 0x71d1, 0x72ae, 0x001a, 0x001a, 0x001a, 0x001a, 0x53b1, 0x52b1, 0x001a, 0x001a, 0x001a, 0xf5d4, 0xf9d4, 0xfbd4, 0x54b1, 0xfed4, 0x001a, 0x58b1, 0x41d5, 0x001a, 0x5ab1, 0x001a, 0x56b1, 0x5eb1, 0x001a, 0x5bb1, 0xf7d4, 0x55b1, 0x001a, 0xf6d4, 0xf4d4, 0x43d5, 0xf8d4, 0x001a, 0x57b1, 0x42d5, 0x5cb1, 0xfdd4, 0xfcd4, 0x5db1, 0xfad4, 0x59b1, 0x001a, 0x001a, 0x001a, 0x001a, 0x44d5, 0x001a, 0x40d5, 0xe7d8, 0xeed8, 0xe3d8, 0x51b4, 0xdfd8, 0xefd8, 0xd9d8, 0xecd8, 0xead8, 0xe4d8, 0x001a, 0xedd8, 0xe6d8, 0x001a, 0xded8, 0xf0d8, 0xdcd8, 0xe9d8, 0xdad8, 0x001a, 0xf1d8, 0x001a, 0x52b4, 0x001a, 0xebd8, 0x4fdd, 0xddd8, 0x4fb4, 0x001a, 0xe1d8, 0x001a, 0x50b4, 0xe0d8, 0xe5d8, 0x001a, 0x001a, 0xe2d8, 0x001a, 0x001a, 0x001a, 0xe8d8, 0x001a, 0x001a, 0x001a, 0x001a, 0x53dd, 0x001a, 0x001a, 0x001a, 0x56dd, 0x4edd, 0x001a, 0x50dd, 0x001a, 0x55dd, 0x54dd, 0x43b7, 0x001a, 0xdbd8, 0x52dd, 0x001a, 0x001a, 0x44b7, 0x001a, 0x4ddd, 0x51dd, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9e1, 0x001a, 0xb0e1, 0xa7e1, 0x001a, 0xaee1, 0xa5e1, 0xade1, 0xb1e1, 0xa4e1, 0xa8e1, 0xa3e1, 0x001a, 0xf1b9, 0x001a, 0xa6e1, 0xf2b9, 0xace1, 0xabe1, 0xaae1, 0x001a, 0x001a, 0xafe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x65e5, 0x67e5, 0x6bbc, 0x68e5, 0x001a, 0x63e5, 0x001a, 0x62e5, 0x6ce5, 0x001a, 0x6ae5, 0x6abc, 0x6de5, 0x64e5, 0x69e5, 0x6be5, 0x66e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x61e9, 0x66e9, 0x60e9, 0x65e9, 0x001a, 0x5ee9, 0x68e9, 0x64e9, 0x69e9, 0x63e9, 0x5fe9, 0x67e9, 0x001a, 0x6ae9, 0x62e9, 0x001a, 0xdaec, 0xafc0, 0x001a, 0xadc0, 0x001a, 0xacc0, 0xaec0, 0x001a, 0x001a, 0xc4ef, 0x001a, 0x72f1, 0xfdf1, 0x001a, 0x001a, 0x44f4, 0x45f4, 0x001a, 0x60c4, 0x001a, 0xc9f5, 0x001a, 0xdec4, 0x001a, 0xcaf5, 0x001a, 0xdef6, 0x72c5, 0x001a, 0x71c5, 0xddf6, 0xc9c5, 0x001a, 0xd6f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x74a4, 0x7ba6, 0xdac9, 0xcaca, 0xb5a8, 0x5fb1, 0x001a, 0x001a, 0x75a4, 0xaaa5, 0xa9a5, 0xa8a5, 0x001a, 0x001a, 0xc5a7, 0x001a, 0x001a, 0x74ae, 0x001a, 0x57dd, 0x76a4, 0x77a4, 0x78a4, 0xdaa4, 0x001a, 0x001a, 0xd1ab, 0x001a, 0xafce, 0x001a, 0x001a, 0x001a, 0x53b4, 0x79a4, 0x5dc9, 0x001a, 0x001a, 0xaba5, 0xaca5, 0x78c9, 0x001a, 0x7ca6, 0x001a, 0x001a, 0x001a, 0xcbca, 0x001a, 0xc6a7, 0x001a, 0xccca, 0x001a, 0x001a, 0xaea9, 0x001a, 0x001a, 0x6ecc, 0xaca9, 0xaba9, 0x6dcc, 0xa9a9, 0x6fcc, 0xaaa9, 0xada9, 0x001a, 0xd2ab, 0x001a, 0xd4ab, 0xb3ce, 0xb0ce, 0xb1ce, 0xb2ce, 0xb4ce, 0xd3ab, 0x001a, 0x001a, 0x74d1, 0x73d1, 0x001a, 0x76ae, 0x001a, 0x75ae, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62b1, 0x46d5, 0x001a, 0x61b1, 0x63b1, 0x60b1, 0x001a, 0x001a, 0x001a, 0x001a, 0x55b4, 0x45d5, 0x001a, 0x56b4, 0xf3d8, 0x001a, 0x57b4, 0xf2d8, 0x54b4, 0x001a, 0x001a, 0x001a, 0x001a, 0x5add, 0x5cdd, 0x45b7, 0x5bdd, 0x59dd, 0x58dd, 0x001a, 0x001a, 0x001a, 0xb4e1, 0xf7b9, 0xf5b9, 0x001a, 0xf6b9, 0xb2e1, 0xb3e1, 0x001a, 0xf3b9, 0x71e5, 0x6fe5, 0x001a, 0x6dbc, 0x70e5, 0x6ebc, 0x6cbc, 0xf4b9, 0x001a, 0x001a, 0x6de9, 0x6be9, 0x6ce9, 0x6ee5, 0xdcec, 0xb0c0, 0xdbec, 0xc5ef, 0xc6ef, 0x6ee9, 0xfef1, 0x001a, 0x7aa4, 0xada5, 0x7ea6, 0xdbc9, 0x7da6, 0x001a, 0xafa9, 0x46b7, 0x001a, 0xdba4, 0xaea5, 0xd5ab, 0x58b4, 0x001a, 0x79c9, 0x001a, 0x7ac9, 0x001a, 0xdcc9, 0x001a, 0x001a, 0xc8a7, 0xd0ca, 0xceca, 0xc9a7, 0xcdca, 0xcfca, 0xd1ca, 0x001a, 0xc7a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3a9, 0xb4a9, 0xb1a9, 0x001a, 0x001a, 0xb0a9, 0xb8ce, 0xb2a9, 0x001a, 0x001a, 0x001a, 0xd6ab, 0x001a, 0xb7ce, 0xb9ce, 0xb6ce, 0xbace, 0xd7ab, 0x79ae, 0x75d1, 0x001a, 0x77d1, 0x77ae, 0x78d1, 0x78ae, 0x76d1, 0x001a, 0xb5ce, 0x47d5, 0x4ad5, 0x4bd5, 0x48d5, 0x67b1, 0x66b1, 0x64b1, 0x65b1, 0x49d5, 0x001a, 0x001a, 0x001a, 0x001a, 0x68b1, 0x001a, 0x001a, 0x5ab4, 0x5bb4, 0x001a, 0x5cb4, 0x5ddd, 0x5fdd, 0x61dd, 0x48b7, 0x47b7, 0x59b4, 0x60dd, 0x5edd, 0x001a, 0xb8e1, 0x001a, 0x001a, 0xb6e1, 0xbce1, 0xf8b9, 0xbde1, 0xbae1, 0xf9b9, 0xb7e1, 0xb5e1, 0xbbe1, 0x70bc, 0x73e5, 0xb9e1, 0x72bc, 0x74e5, 0x71bc, 0x74bc, 0x75e5, 0x6fbc, 0x73bc, 0x001a, 0x73e9, 0x71e9, 0x70e9, 0x72e9, 0x6fe9, 0x001a, 0x001a, 0x66c3, 0x001a, 0x46f4, 0x47f4, 0x001a, 0xcbf5, 0xdff6, 0x55c6, 0x001a, 0x001a, 0xb5a9, 0xcaa7, 0x001a, 0x001a, 0xd8ab, 0x001a, 0x001a, 0x001a, 0x7ba4, 0xdca4, 0x001a, 0xafa5, 0xddc9, 0x001a, 0xcba7, 0xd2ca, 0x001a, 0xbbce, 0xd9ab, 0x001a, 0xfab9, 0x7ca4, 0x001a, 0x001a, 0x001a, 0xa1a6, 0x001a, 0x001a, 0x49b7, 0x7da4, 0xdda4, 0xdea4, 0x001a, 0xb1a5, 0xb0a5, 0x001a, 0xdec9, 0xa2a6, 0x001a, 0xd3ca, 0x001a, 0xcca7, 0x001a, 0x001a, 0x71cc, 0x72cc, 0x73cc, 0x001a, 0xb6a9, 0xb7a9, 0x70cc, 0xb8a9, 0x001a, 0x001a, 0x001a, 0xdaab, 0xbcce, 0x001a, 0x7ad1, 0x7aae, 0x001a, 0x79d1, 0x001a, 0x69b1, 0x4cd5, 0x6ab1, 0x4dd5, 0x001a, 0x001a, 0x001a, 0x5db4, 0x001a, 0x001a, 0x001a, 0x62dd, 0x001a, 0x001a, 0xbfe1, 0xbee1, 0x001a, 0xfbb9, 0x001a, 0x75bc, 0x76e5, 0xcabe, 0x74e9, 0xb1c0, 0x001a, 0x73c5, 0xd8f7, 0x001a, 0x001a, 0x001a, 0x001a, 0x74cc, 0x001a, 0xbdce, 0x6bb1, 0xf4d8, 0x4ab7, 0x001a, 0x001a, 0x001a, 0x55c2, 0x001a, 0x001a, 0x001a, 0x001a, 0xcea7, 0x001a, 0xcda7, 0xdbab, 0x001a, 0x7bd1, 0x001a, 0x6db1, 0x43b3, 0x6eb1, 0x6cb1, 0x5eb4, 0x001a, 0xc0e1, 0xfcb9, 0x76bc, 0x001a, 0x4cc9, 0xdfc9, 0x001a, 0xd5ca, 0xcfa7, 0xd4ca, 0xd0a7, 0x001a, 0x001a, 0xbca9, 0x77cc, 0x76cc, 0xbba9, 0xb9a9, 0xbaa9, 0x75cc, 0x001a, 0x001a, 0xddab, 0xbece, 0xe0ab, 0xdcab, 0xe2ab, 0xdeab, 0xdfab, 0xe1ab, 0x001a, 0x001a, 0x001a, 0x7dae, 0x7cae, 0x7bae, 0x001a, 0x001a, 0x001a, 0x4fd5, 0x6fb1, 0x72b1, 0x70b1, 0x001a, 0x4ed5, 0x75b1, 0x001a, 0x71b1, 0x50d5, 0x74b1, 0x73b1, 0x001a, 0x001a, 0x001a, 0xf6d8, 0xf5d8, 0x001a, 0x61b4, 0x5fb4, 0x60b4, 0xf7d8, 0x4bb7, 0x64dd, 0x4cb7, 0x63dd, 0x001a, 0x001a, 0x77e5, 0x001a, 0x001a, 0x78bc, 0xc1e1, 0x77bc, 0x001a, 0xfdb9, 0x001a, 0xdeec, 0x75e9, 0xb2c0, 0xddec, 0x40f2, 0x48f4, 0x49f4, 0x001a, 0xdfa4, 0x001a, 0xb2a5, 0x001a, 0x001a, 0x001a, 0x7bc9, 0x001a, 0x001a, 0xd2a7, 0xd4a7, 0x001a, 0xe2c9, 0xd8ca, 0xd7ca, 0xd6ca, 0x001a, 0xe1c9, 0xe0c9, 0xa4a6, 0xd3a7, 0xd1a7, 0xa3a6, 0x001a, 0x001a, 0x001a, 0xbda9, 0x78cc, 0x001a, 0xbea9, 0xddca, 0x001a, 0xdfca, 0xdeca, 0x79cc, 0x001a, 0x001a, 0xdaca, 0x001a, 0xd8a7, 0xd6a7, 0x001a, 0xd9ca, 0xdbca, 0xe1ca, 0x001a, 0xd5a7, 0x001a, 0xdcca, 0xe5ca, 0xc0a9, 0x001a, 0xe2ca, 0xd7a7, 0x001a, 0xe0ca, 0xe3ca, 0x001a, 0xbfa9, 0x001a, 0xc1a9, 0xe4ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafcc, 0xa2cc, 0x7ecc, 0xaecc, 0xa9cc, 0xe7ab, 0xc2a9, 0xaacc, 0xadcc, 0xe3ab, 0xaccc, 0xc3a9, 0xc8a9, 0xc6a9, 0xa3cc, 0x001a, 0x7ccc, 0xa5cc, 0xcda9, 0xb0cc, 0xe4ab, 0xa6cc, 0x001a, 0xe5ab, 0xc9a9, 0xa8cc, 0x001a, 0xcdce, 0xe6ab, 0x7bcc, 0xcaa9, 0xe8ab, 0xcba9, 0xc7a9, 0xcca9, 0xa7cc, 0x7acc, 0xabcc, 0xc4a9, 0x001a, 0x001a, 0x7dcc, 0xa4cc, 0xa1cc, 0xc5a9, 0x001a, 0xbfce, 0x001a, 0xc0ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcace, 0xa1d1, 0xcbce, 0xeeab, 0xcece, 0xc4ce, 0xedab, 0xc6ce, 0x001a, 0xc7ce, 0x001a, 0x001a, 0xc9ce, 0xe9ab, 0x001a, 0x001a, 0xa3ae, 0x001a, 0xdaf9, 0xc5ce, 0xc1ce, 0xa4ae, 0x001a, 0x001a, 0xcfce, 0x7eae, 0x7dd1, 0xc8ce, 0x001a, 0x7cd1, 0xc3ce, 0xccce, 0x001a, 0x001a, 0xecab, 0xa1ae, 0xf2ab, 0xa2ae, 0xd0ce, 0x7ed1, 0xebab, 0xa6ae, 0xf1ab, 0xf0ab, 0xefab, 0xa5ae, 0xd1ce, 0xa7ae, 0xeaab, 0x001a, 0xc2ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x76b1, 0xa4d1, 0xa6d1, 0x001a, 0xa8d1, 0xa8ae, 0xaeae, 0x53d5, 0xacd1, 0xa3d1, 0x78b1, 0x51d5, 0x001a, 0xadae, 0xabae, 0xaed1, 0x001a, 0x52d5, 0x001a, 0xa5d1, 0x001a, 0xacae, 0xa9d1, 0xafae, 0xabd1, 0x001a, 0x001a, 0xaaae, 0xaad1, 0xadd1, 0xa7d1, 0x001a, 0xa9ae, 0x79b1, 0x001a, 0xa2d1, 0x77b1, 0x001a, 0x001a, 0x001a, 0x001a, 0x7ab1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x55d5, 0x5ed5, 0x64b4, 0x001a, 0x7cb1, 0xa3b1, 0x65b4, 0x60d5, 0xaab1, 0xf9d8, 0x56d5, 0xa2b1, 0xa5b1, 0x7eb1, 0x54d5, 0x62d5, 0x65d5, 0x49d9, 0x001a, 0x63d5, 0xfdd8, 0xa1b1, 0xa8b1, 0xacb1, 0x5dd5, 0xf8d8, 0x61d5, 0x7bb1, 0xfad8, 0x64d5, 0xfcd8, 0x59d5, 0x001a, 0x62b4, 0x001a, 0x57d5, 0x58d5, 0xa7b1, 0x001a, 0x001a, 0xa6b1, 0x5bd5, 0xabb1, 0x5fd5, 0xa4b1, 0x5cd5, 0x001a, 0xa9b1, 0x66b4, 0x63b4, 0xfbd8, 0x001a, 0x5ad5, 0x001a, 0x7db1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6bb4, 0x6fb4, 0x40d9, 0x51b7, 0x6db4, 0x44d9, 0x71b4, 0x65dd, 0x46d9, 0x53b7, 0x69b4, 0x6cb4, 0x47d9, 0x001a, 0x48d9, 0x4ed9, 0x73b4, 0x54b7, 0x001a, 0x4ad9, 0x4fd9, 0x43d9, 0x5eb7, 0x001a, 0x55b7, 0x72b4, 0x41d9, 0x50d9, 0x001a, 0x5db7, 0x70b4, 0x4eb7, 0x4dd9, 0x001a, 0x74b4, 0x45d9, 0xfed8, 0x6ab4, 0x42d9, 0x001a, 0x4bd9, 0x001a, 0x4db7, 0x52b7, 0x67b4, 0x4cd9, 0x001a, 0x50b7, 0x001a, 0x001a, 0x001a, 0x68b4, 0x001a, 0x001a, 0x001a, 0x5cb7, 0xc3e1, 0x70dd, 0x001a, 0x68dd, 0xc2e1, 0x001a, 0x6cdd, 0x6edd, 0x001a, 0x001a, 0x6bdd, 0x001a, 0x5bb7, 0x001a, 0x6add, 0x5fb7, 0x001a, 0x001a, 0x001a, 0xd2e1, 0x001a, 0x001a, 0x5ab7, 0x40ba, 0x71dd, 0xc4e1, 0x001a, 0x001a, 0x58b7, 0x69dd, 0x6ddd, 0xfeb9, 0x4fb7, 0x66dd, 0x67dd, 0x41ba, 0x57b7, 0x59b7, 0x56b7, 0x6fdd, 0x001a, 0x001a, 0xc8e1, 0xc9e1, 0xcee1, 0x7dbc, 0xd5e1, 0x001a, 0x47ba, 0x001a, 0x46ba, 0xd0e1, 0x001a, 0x7cbc, 0xc5e1, 0x45ba, 0x001a, 0xd4e1, 0x43ba, 0x44ba, 0x001a, 0xd1e1, 0xaae5, 0x7abc, 0x6eb4, 0x001a, 0xd3e1, 0xa3bc, 0xcbe1, 0x001a, 0x7bbc, 0x001a, 0xa2bc, 0xc6e1, 0xcae1, 0xc7e1, 0xcde1, 0x48ba, 0x79bc, 0x42ba, 0x001a, 0x7ae5, 0xcfe1, 0x001a, 0xa1bc, 0x001a, 0xa4bc, 0x001a, 0xcce1, 0x001a, 0x7ebc, 0x79e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7ee5, 0xcebe, 0x78e5, 0xa3e9, 0xa9e5, 0xa8bc, 0x001a, 0xa6bc, 0xccbe, 0xa6e5, 0xa2e5, 0xacbc, 0x001a, 0x78e9, 0x001a, 0x001a, 0x001a, 0xaabc, 0xa1e5, 0x001a, 0x76e9, 0x001a, 0xa5e5, 0x001a, 0xa8e5, 0x7de5, 0x001a, 0xabbc, 0x001a, 0x001a, 0xa5bc, 0x77e9, 0xcdbe, 0xa7e5, 0xa7bc, 0xa9bc, 0xa4e5, 0xadbc, 0xa3e5, 0x7ce5, 0x7be5, 0xcbbe, 0xabe5, 0x7ae9, 0xe0ec, 0xd0be, 0x001a, 0xa2e9, 0x001a, 0x7ee9, 0x001a, 0xe1ec, 0x001a, 0xd1be, 0xa1e9, 0x001a, 0x7ce9, 0xb4c0, 0xdfec, 0x001a, 0x79e9, 0x7be9, 0xb5c0, 0xd3be, 0xb3c0, 0xd2be, 0xb7c0, 0x7de9, 0xcfbe, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfef, 0x001a, 0xc7ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7ec, 0xc8ef, 0xe3ec, 0x001a, 0x001a, 0x56c2, 0xe5ec, 0xe4ec, 0xb6c0, 0xe2ec, 0xe6ec, 0xd0ef, 0xccef, 0xceef, 0x001a, 0xc9ef, 0xcaef, 0x001a, 0xcdef, 0xcbef, 0x67c3, 0x001a, 0x001a, 0x6ac3, 0x69c3, 0x68c3, 0x61c4, 0x4af4, 0x62c4, 0x41f2, 0xdfc4, 0xccf5, 0xe0c4, 0x74c5, 0xcac5, 0xd9f7, 0x001a, 0xdaf7, 0xdbf7, 0x001a, 0x001a, 0xbaf9, 0xe0a4, 0x7cc9, 0xb3a5, 0x001a, 0xa6a6, 0xa7a6, 0xa5a6, 0x001a, 0xa8a6, 0xdaa7, 0xd9a7, 0x001a, 0xb1cc, 0xcfa9, 0xcea9, 0x001a, 0x001a, 0xafd1, 0xadb1, 0xaeb1, 0x001a, 0x001a, 0x001a, 0x75b4, 0x72dd, 0x60b7, 0x61b7, 0x74dd, 0x76dd, 0x75dd, 0x001a, 0xd7e1, 0x001a, 0xd6e1, 0x49ba, 0xd8e1, 0x001a, 0xace5, 0xaebc, 0x001a, 0xd4be, 0x001a, 0xb8c0, 0x57c2, 0xb9c0, 0x001a, 0xe1a4, 0x001a, 0x001a, 0x001a, 0xe6ca, 0x001a, 0x001a, 0xb2cc, 0xd1a9, 0xd0a9, 0xd2a9, 0xf3ab, 0xd2ce, 0xd3ce, 0x001a, 0x001a, 0xb0d1, 0xb0ae, 0xafb1, 0x76b4, 0x51d9, 0xe2a4, 0x001a, 0x7ea4, 0xe3a4, 0x001a, 0x7dc9, 0xb7a5, 0xb6a5, 0xb4a5, 0xb5a5, 0x001a, 0x001a, 0x001a, 0xaba6, 0xe9c9, 0xebc9, 0xaaa6, 0xe3c9, 0x001a, 0xe4c9, 0x001a, 0xeac9, 0xe6c9, 0xe8c9, 0xa9a6, 0xe5c9, 0xecc9, 0xe7c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1a7, 0xeaa7, 0xe8a7, 0xf0ca, 0xedca, 0xf5ca, 0xe6a7, 0xf6ca, 0x001a, 0xdfa7, 0xf3ca, 0x001a, 0xe5a7, 0xefca, 0xeeca, 0xe3a7, 0xf4ca, 0xe4a7, 0xd3a9, 0xdea7, 0xf1ca, 0x001a, 0xe7ca, 0xdba7, 0x001a, 0xeea7, 0xecca, 0xf2ca, 0xe0a7, 0xe2a7, 0x001a, 0xe8ca, 0x001a, 0xe9ca, 0xeaca, 0x001a, 0xeda7, 0xe7a7, 0xeca7, 0xebca, 0xeba7, 0xdda7, 0xdca7, 0xe9a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1a9, 0xbecc, 0xb7cc, 0xdca9, 0xefa9, 0xb3cc, 0xbacc, 0xbccc, 0xbfcc, 0xeaa9, 0x001a, 0xbbcc, 0xb4cc, 0xe8a9, 0xb8cc, 0x001a, 0xc0cc, 0xd9a9, 0x001a, 0xbdcc, 0xe3a9, 0xe2a9, 0xb6cc, 0xd7a9, 0x001a, 0x001a, 0xd8a9, 0x001a, 0xd6a9, 0x001a, 0xeea9, 0xe6a9, 0xe0a9, 0xd4a9, 0xb9cc, 0xdfa9, 0xd5a9, 0xe7a9, 0xf0a9, 0xd4ce, 0xe4a9, 0xb5cc, 0xdaa9, 0xdda9, 0xdea9, 0x001a, 0xeca9, 0xeda9, 0xeba9, 0xe5a9, 0xe9a9, 0xdba9, 0xf4ab, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdace, 0x41ac, 0xf8ab, 0xfaab, 0x40ac, 0xe6ce, 0xfdab, 0xb1d1, 0xb1ae, 0x43ac, 0xd7ce, 0xdfce, 0xfeab, 0xdece, 0xdbce, 0xe3ce, 0xe5ce, 0xf7ab, 0xfbab, 0x42ac, 0xb3ae, 0xe0ce, 0xf9ab, 0x45ac, 0xd9ce, 0x001a, 0x001a, 0x001a, 0xfcab, 0xb2ae, 0xf6ab, 0x001a, 0xd6ce, 0xddce, 0xd5ce, 0xd8ce, 0xdcce, 0xb2d1, 0x44ac, 0x001a, 0xe1ce, 0xe2ce, 0xe4ce, 0xf5ab, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1ae, 0xbed1, 0xbfae, 0xc0ae, 0xb4d1, 0xc4d1, 0x001a, 0xb6ae, 0x001a, 0x001a, 0x66d5, 0xc6d1, 0xc0d1, 0x001a, 0xb7d1, 0x001a, 0xc9d1, 0xbad1, 0xbcae, 0x7dd5, 0xbdd1, 0xbeae, 0xb5ae, 0x001a, 0xcbd1, 0xbfd1, 0xb8ae, 0xb8d1, 0xb5d1, 0xb6d1, 0xb9ae, 0xc5d1, 0xccd1, 0xbbae, 0xbcd1, 0xbbd1, 0xc3ae, 0xc2ae, 0xb4ae, 0xbaae, 0xbdae, 0xc8d1, 0x001a, 0x001a, 0xc2d1, 0xb7ae, 0xb3d1, 0xcad1, 0xc1d1, 0xc3d1, 0xc7d1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x67d5, 0x001a, 0xb7b1, 0xcbb1, 0xcab1, 0x001a, 0xbfb1, 0x001a, 0x79d5, 0x75d5, 0x72d5, 0xa6d5, 0xbab1, 0xb2b1, 0x001a, 0x001a, 0x77d5, 0xa8b4, 0xb6b1, 0xa1d5, 0x001a, 0xccb1, 0xc9b1, 0x7bd5, 0x6ad5, 0x001a, 0x001a, 0xc8b1, 0xa3d5, 0x69d5, 0xbdb1, 0xc1b1, 0xa2d5, 0x001a, 0x73d5, 0xc2b1, 0xbcb1, 0x68d5, 0x001a, 0x78b4, 0xa5d5, 0x71d5, 0xc7b1, 0x74d5, 0xa4d5, 0xc6b1, 0x001a, 0x52d9, 0x001a, 0xb3b1, 0x6fd5, 0xb8b1, 0xc3b1, 0x001a, 0xbeb1, 0x78d5, 0x6ed5, 0x6cd5, 0x7ed5, 0xb0b1, 0xc4b1, 0xb4b1, 0x77b4, 0x7cd5, 0xb5b1, 0x001a, 0xb1b1, 0xc0b1, 0xbbb1, 0xb9b1, 0x70d5, 0xc5b1, 0x6dd5, 0x7ad5, 0x76d5, 0x54d9, 0x53d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6bd5, 0x64d9, 0x001a, 0x7ab4, 0x001a, 0x6ad9, 0x59d9, 0x67d9, 0x77dd, 0x7db4, 0x6bd9, 0x6ed9, 0x7cb4, 0x5cd9, 0x6dd9, 0x6cd9, 0x7eb4, 0x55d9, 0x79b4, 0xa3b4, 0x001a, 0xa1b4, 0x69d9, 0x001a, 0x5fd9, 0xa5b4, 0x70d9, 0x68d9, 0x71d9, 0xadb4, 0xabb4, 0x66d9, 0x65d9, 0x001a, 0x63d9, 0x5dd9, 0xa4b4, 0x001a, 0xa2b4, 0xb9d1, 0x56d9, 0x001a, 0xb7dd, 0x57d9, 0x7bb4, 0xaab4, 0x79dd, 0x001a, 0xa6b4, 0xa7b4, 0x58d9, 0x6fd9, 0x78dd, 0x60d9, 0x5bd9, 0xa9b4, 0x61d9, 0x5ed9, 0x001a, 0x001a, 0xaeb4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x70b7, 0x001a, 0x001a, 0x7cdd, 0xb1dd, 0xb6dd, 0xaadd, 0x6cb7, 0xbbdd, 0x69b7, 0x7add, 0x001a, 0x7bdd, 0x62b7, 0x6bb7, 0xa4dd, 0x6eb7, 0x6fb7, 0xa5dd, 0x001a, 0xb2dd, 0xb8dd, 0x6ab7, 0x001a, 0x64b7, 0xa3dd, 0x7ddd, 0xbadd, 0xa8dd, 0xa9dd, 0x7edd, 0xb4dd, 0xabdd, 0xb5dd, 0xaddd, 0x001a, 0x65b7, 0xd9e1, 0x68b7, 0x66b7, 0xb9dd, 0xb0dd, 0xacdd, 0x001a, 0x001a, 0xa1dd, 0x53ba, 0xafdd, 0x6db7, 0xa7dd, 0x001a, 0xa6dd, 0x001a, 0x001a, 0x001a, 0x67b7, 0x63b7, 0xeee1, 0xb3dd, 0xaedd, 0x001a, 0xa2dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9e1, 0x001a, 0xdae1, 0xe5e1, 0x001a, 0xece1, 0x51ba, 0xacb4, 0xeae1, 0x4cba, 0x001a, 0x001a, 0x001a, 0x4bba, 0xf1e1, 0x001a, 0xdbe1, 0xe8e1, 0xdce1, 0xe7e1, 0x4fba, 0xebe1, 0x62d9, 0x001a, 0x001a, 0x001a, 0xf2e1, 0xe3e1, 0x52ba, 0xbae5, 0xafbc, 0x001a, 0xf0e1, 0xefe1, 0x54ba, 0xade5, 0xb0bc, 0xaee5, 0x001a, 0xdfe1, 0xe0e1, 0xdde1, 0xe2e1, 0xdee1, 0xf3e1, 0x4eba, 0xb1bc, 0x50ba, 0x55ba, 0x001a, 0xe1e1, 0x001a, 0xede1, 0x001a, 0x001a, 0xe6e1, 0x001a, 0x001a, 0xb1e5, 0x001a, 0x4aba, 0xb4bc, 0xaae9, 0xb6e5, 0xb5e5, 0xb7e5, 0x001a, 0x001a, 0xb4e5, 0xb5bc, 0x001a, 0xbbbc, 0xb8bc, 0x001a, 0xb9bc, 0xafe5, 0xb2e5, 0xbce5, 0xc1bc, 0xbfbc, 0x001a, 0xb3e5, 0x5ad9, 0xb2bc, 0xb9e5, 0xb0e5, 0x001a, 0xc2bc, 0xb8e5, 0x4dba, 0xb7bc, 0xe4e1, 0x001a, 0x001a, 0xbabc, 0x001a, 0xbebc, 0xc0bc, 0xbdbc, 0xbcbc, 0x001a, 0xb6bc, 0xbbe5, 0xb3bc, 0xc3bc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8be, 0xd9be, 0xa9e9, 0xe2be, 0xdfbe, 0x001a, 0xd6be, 0xddbe, 0xabe9, 0xdbbe, 0xd5be, 0x001a, 0xdcbe, 0x001a, 0xa8e9, 0xbbc0, 0xd7be, 0x001a, 0xdebe, 0xbac0, 0xa7e9, 0xa6e9, 0x001a, 0xe0be, 0x001a, 0xe1be, 0x001a, 0xa5e9, 0xa4e9, 0xbcc0, 0xaee9, 0xdabe, 0xace9, 0x001a, 0x001a, 0x001a, 0x001a, 0xbdc0, 0x001a, 0xc2c0, 0xeaec, 0xecec, 0x001a, 0xbfc0, 0x001a, 0xedec, 0xe9ec, 0x001a, 0xebec, 0xc0c0, 0xc3c0, 0x001a, 0xe8ec, 0xbec0, 0xc1c0, 0x59c2, 0xade9, 0x58c2, 0x001a, 0x001a, 0x5ec2, 0xd4ef, 0x001a, 0x5cc2, 0x5dc2, 0xd7ef, 0xd3ef, 0x5ac2, 0xd1ef, 0x6bc3, 0xd5ef, 0x001a, 0xd6ef, 0xd2ef, 0x001a, 0x5bc2, 0x42f2, 0x001a, 0x45f2, 0x001a, 0x001a, 0x46f2, 0x44f2, 0x47f2, 0x6cc3, 0x43f2, 0x001a, 0x001a, 0x4ef4, 0x64c4, 0x4df4, 0x4cf4, 0x4bf4, 0x63c4, 0x65c4, 0x001a, 0xcdf5, 0xe2c4, 0xe1c4, 0x001a, 0x001a, 0xe1f6, 0xe0f6, 0xe3f6, 0xcbc5, 0x75c5, 0xddf7, 0xe2f6, 0x001a, 0x001a, 0xdcf7, 0xcdc5, 0xccc5, 0xf3c5, 0xa9f8, 0xeff8, 0xe4a4, 0x001a, 0x001a, 0x72d9, 0xafe9, 0x001a, 0x001a, 0xaca6, 0xf7ca, 0xf1a7, 0xefa7, 0x001a, 0xf0a7, 0x001a, 0xc1cc, 0xf1a9, 0x46ac, 0x001a, 0xe7ce, 0x001a, 0xe8ce, 0x001a, 0x47ac, 0xced1, 0x001a, 0xc4ae, 0xc5ae, 0xcdd1, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3b1, 0x001a, 0xcfb1, 0x001a, 0xa7d5, 0xd6b1, 0xd5b1, 0xceb1, 0xd1b1, 0xd4b1, 0xd0b1, 0x001a, 0x001a, 0x76d9, 0xcdb1, 0xafb4, 0x001a, 0x001a, 0x001a, 0xb1b4, 0xb2b4, 0x75d9, 0x78d9, 0xb0b4, 0x73d9, 0x77d9, 0x001a, 0x74d9, 0x001a, 0x71b7, 0x001a, 0x001a, 0xbcdd, 0x001a, 0x001a, 0x56ba, 0xf4e1, 0xe3be, 0xc4bc, 0xbde5, 0xc5bc, 0xc6bc, 0xbfe5, 0xbee5, 0xc0e5, 0xb1e9, 0x001a, 0x001a, 0xb0e9, 0xefec, 0xeeec, 0xc4c0, 0xc5c0, 0x48f2, 0x001a, 0x001a, 0xe5a4, 0x001a, 0x001a, 0x001a, 0x001a, 0x79d9, 0x001a, 0x001a, 0x001a, 0xb4b4, 0xb3b4, 0xbddd, 0x001a, 0xd8ef, 0xe3c4, 0xdef7, 0xe6a4, 0x001a, 0xc6ae, 0x001a, 0xd8b1, 0xd7b1, 0x7ad9, 0x7bd9, 0x72b7, 0xf5e1, 0x57ba, 0xb2e9, 0x001a, 0xe7a4, 0xb8a5, 0x001a, 0xf2a9, 0xc2cc, 0x001a, 0xe9ce, 0x48ac, 0xd9b1, 0x001a, 0x7cd9, 0xb5b4, 0x73b7, 0x001a, 0xc1e5, 0xc2e5, 0x001a, 0x001a, 0xf0ec, 0x5fc2, 0xf0f8, 0xe8a4, 0x001a, 0xc3cc, 0xf3a9, 0x49ac, 0x001a, 0xeace, 0x001a, 0xc7ae, 0xd2d1, 0xd0d1, 0xd1d1, 0xc8ae, 0xcfd1, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbb1, 0xdcb1, 0xa8d5, 0xddb1, 0xdab1, 0x7dd9, 0x001a, 0x7ed9, 0xbedd, 0x001a, 0x001a, 0x59ba, 0x58ba, 0x001a, 0x001a, 0xf1ec, 0xd9ef, 0x001a, 0x4af2, 0x49f2, 0x4ff4, 0x001a, 0x5ec9, 0x4aac, 0x001a, 0x001a, 0xe9a4, 0xb9a5, 0x001a, 0xaea6, 0xada6, 0x001a, 0x001a, 0xafa6, 0xb0a6, 0xeec9, 0xedc9, 0xf8ca, 0xf2a7, 0xfbca, 0xfaca, 0xf9ca, 0xfcca, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4a9, 0xc9cc, 0xc5cc, 0xcecc, 0x001a, 0x001a, 0xfba9, 0x001a, 0xf9a9, 0xcacc, 0xc6cc, 0xcdcc, 0xf8a9, 0x40aa, 0xc8cc, 0xc4cc, 0xfea9, 0xcbcc, 0xf7a9, 0xcccc, 0xfaa9, 0xfca9, 0xd0cc, 0xcfcc, 0xc7cc, 0xf6a9, 0xf5a9, 0xfda9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefce, 0xf5ce, 0x001a, 0x50ac, 0x4dac, 0xecce, 0xf1ce, 0x001a, 0x53ac, 0x4bac, 0xf0ce, 0x4eac, 0x51ac, 0x001a, 0x001a, 0xf3ce, 0x001a, 0x4cac, 0xf8ce, 0x4fac, 0x001a, 0x52ac, 0xedce, 0xf2ce, 0xf6ce, 0xeece, 0xebce, 0x001a, 0x001a, 0xf7ce, 0xf4ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0ae, 0xc9ae, 0xccae, 0x001a, 0xcfae, 0x001a, 0xd5d1, 0x001a, 0xcaae, 0xd3d1, 0x001a, 0xceae, 0x001a, 0x001a, 0xcbae, 0x001a, 0xd6d1, 0xcdae, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacd5, 0xdfb1, 0xabd5, 0xadd5, 0xdeb1, 0xe3b1, 0xd4d1, 0x001a, 0xaad5, 0xaed5, 0x001a, 0xe0b1, 0xa9d5, 0xe2b1, 0x001a, 0xe1b1, 0x001a, 0xa7d9, 0x001a, 0xa2d9, 0x001a, 0xb6b4, 0xbab4, 0xb7b4, 0xa5d9, 0xa8d9, 0x001a, 0xb8b4, 0x001a, 0xb9b4, 0xbeb4, 0xc7dd, 0xa6d9, 0xbcb4, 0xa3d9, 0xa1d9, 0x001a, 0xbdb4, 0x001a, 0xa4d9, 0x001a, 0x001a, 0x001a, 0x79b7, 0x001a, 0xbfdd, 0x76b7, 0x77b7, 0x75b7, 0xc4dd, 0xc3dd, 0xc0dd, 0x7bb7, 0x001a, 0x001a, 0xc2dd, 0xbbb4, 0x001a, 0x001a, 0xc6dd, 0xc1dd, 0x78b7, 0x74b7, 0x7ab7, 0xc5dd, 0x001a, 0x001a, 0x001a, 0x5cba, 0x001a, 0xf8e1, 0xf7e1, 0xf6e1, 0x5aba, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5bba, 0xc5e5, 0xc8e5, 0xc8bc, 0x001a, 0x001a, 0xc7bc, 0xc9e5, 0xc4e5, 0xcabc, 0xc6e5, 0x001a, 0xc9bc, 0xc3e5, 0x001a, 0xc7e5, 0xe9be, 0xe6be, 0xbbe9, 0xbae9, 0x001a, 0xb9e9, 0xb4e9, 0x001a, 0xb5e9, 0x001a, 0x001a, 0x001a, 0xe7be, 0x001a, 0xe4be, 0xe8be, 0xb3e9, 0xe5be, 0xb6e9, 0xb7e9, 0xbce9, 0x001a, 0x001a, 0xb8e9, 0x001a, 0x001a, 0xf2ec, 0x001a, 0x001a, 0x001a, 0xc7c0, 0x001a, 0xdcef, 0xc6c0, 0xdaef, 0xdbef, 0x60c2, 0x6ec3, 0x4bf2, 0x001a, 0x6dc3, 0x001a, 0x001a, 0x51f4, 0x52f4, 0x001a, 0x66c4, 0x001a, 0x50f4, 0xe4c4, 0x001a, 0xdff7, 0xcec5, 0xaaf8, 0xabf8, 0x001a, 0xeaa4, 0x001a, 0xb1a6, 0xb2a6, 0xf3a7, 0x001a, 0xd1cc, 0x54ac, 0xd1ae, 0xe4b1, 0x001a, 0x001a, 0xd2b0, 0x001a, 0xbfb4, 0xc0b4, 0xccb3, 0xa9d9, 0x001a, 0x7cb7, 0xfae1, 0xf9e1, 0x001a, 0x001a, 0xeba4, 0xb3a6, 0xd2cc, 0x42aa, 0x001a, 0x41aa, 0x001a, 0xf9ce, 0xface, 0x001a, 0xd7d1, 0xd8d1, 0xd2ae, 0xd3ae, 0x001a, 0xd4ae, 0xafd5, 0x001a, 0x001a, 0xe6b1, 0x001a, 0xc2b4, 0x001a, 0xc1b4, 0xc8dd, 0x7adf, 0xfbe1, 0xbde9, 0x001a, 0x001a, 0x61c2, 0x67c4, 0xeca4, 0x001a, 0xbca5, 0xbda5, 0xbba5, 0xbea5, 0xbaa5, 0x001a, 0x001a, 0xb6a6, 0x001a, 0xf6c9, 0xb5a6, 0xb7a6, 0x001a, 0x001a, 0xf1c9, 0xf0c9, 0xf3c9, 0xf2c9, 0xf5c9, 0xb4a6, 0xefc9, 0xf4c9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdca, 0xfda7, 0xfeca, 0x43cb, 0xfca7, 0x001a, 0x47cb, 0x42cb, 0x45cb, 0xf5a7, 0xf6a7, 0xf7a7, 0xf8a7, 0x001a, 0x40a8, 0x001a, 0x41cb, 0xfaa7, 0x41a8, 0x001a, 0x40cb, 0x46cb, 0x001a, 0xf9a7, 0x44cb, 0xfba7, 0xf4a7, 0xfea7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x57aa, 0x001a, 0xd4cc, 0x43aa, 0x001a, 0x4daa, 0x4eaa, 0x46aa, 0x58aa, 0x48aa, 0xdccc, 0x53aa, 0xd7cc, 0x49aa, 0xe6cc, 0xe7cc, 0xdfcc, 0xd8cc, 0x56aa, 0xe4cc, 0x51aa, 0x4faa, 0x001a, 0xe5cc, 0x001a, 0xe3cc, 0xdbcc, 0xd3cc, 0xdacc, 0x4aaa, 0x001a, 0x50aa, 0x001a, 0x44aa, 0xdecc, 0xddcc, 0xd5cc, 0x001a, 0x52aa, 0xe1cc, 0xd6cc, 0x55aa, 0xe8cc, 0x45aa, 0x001a, 0x4caa, 0xd9cc, 0xe2cc, 0x54aa, 0x001a, 0x47aa, 0x4baa, 0x001a, 0xe0cc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5bcf, 0x5cac, 0x69ac, 0x001a, 0x56cf, 0x4ccf, 0x62ac, 0x4acf, 0x5bac, 0x45cf, 0x65ac, 0x52cf, 0xfece, 0x41cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x44cf, 0xfbce, 0x51cf, 0x61cf, 0x60ac, 0x46cf, 0x58cf, 0x001a, 0xfdce, 0x5fcf, 0x60cf, 0x63cf, 0x5acf, 0x4bcf, 0x53cf, 0x66ac, 0x59ac, 0x61ac, 0x6dac, 0x56ac, 0x58ac, 0x001a, 0x001a, 0x001a, 0x43cf, 0x6aac, 0x63ac, 0x5dcf, 0x40cf, 0x6cac, 0x67ac, 0x49cf, 0x001a, 0x001a, 0x6bac, 0x50cf, 0x48cf, 0x64ac, 0x5ccf, 0x54cf, 0x001a, 0x5eac, 0x62cf, 0x47cf, 0x5aac, 0x59cf, 0x4fcf, 0x5fac, 0x55cf, 0x57ac, 0xfcce, 0x68ac, 0xe3ae, 0x5dac, 0x4ecf, 0x4dcf, 0x42cf, 0x001a, 0x5ecf, 0x001a, 0x57cf, 0x001a, 0x001a, 0x55ac, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecd1, 0xeaae, 0xedd1, 0x001a, 0xe1d1, 0xdfae, 0xebae, 0x001a, 0xdad1, 0x001a, 0xe3d1, 0xebd1, 0x001a, 0xd9d1, 0xf4d1, 0xd5ae, 0x001a, 0x001a, 0x001a, 0xf3d1, 0xeed1, 0x001a, 0xefd1, 0xddae, 0xe8ae, 0xe5d1, 0x001a, 0xe6d1, 0xf0d1, 0xe7d1, 0x001a, 0xe2d1, 0xdcd1, 0xddd1, 0xead1, 0xe4d1, 0x001a, 0x001a, 0xd6ae, 0xdaae, 0xf2d1, 0xded1, 0xe6ae, 0xe2ae, 0x001a, 0x001a, 0xe5ae, 0xecae, 0xdbae, 0xe7ae, 0xe9d1, 0xe9ae, 0xd8ae, 0x001a, 0xd7ae, 0xdbd1, 0x001a, 0xdfd1, 0xe0ae, 0xf1d1, 0xe8d1, 0xe0d1, 0xe4ae, 0xe1ae, 0x001a, 0xd9ae, 0xdcae, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4d5, 0x001a, 0xb4d5, 0xb5d5, 0xb9d5, 0x001a, 0xc8d5, 0xc5d5, 0x001a, 0xbed5, 0xbdd5, 0xedb1, 0xc1d5, 0xd0d5, 0xb0d5, 0x001a, 0xd1d5, 0xc3d5, 0xd5d5, 0xc9d5, 0xecb1, 0xc7d5, 0xe7b1, 0xfcb1, 0xf2b1, 0x001a, 0xf6b1, 0xf5b1, 0xb1d5, 0x001a, 0xced5, 0xd4d5, 0xccd5, 0xd3d5, 0x001a, 0x001a, 0xc0d5, 0xb2d5, 0xd2d5, 0xc2d5, 0xeab1, 0xf7b1, 0x001a, 0xcbd5, 0xf0b1, 0x001a, 0x001a, 0x001a, 0xcad5, 0xb3d5, 0xf8b1, 0x001a, 0xfab1, 0xcdd5, 0xfbb1, 0xe9b1, 0xbad5, 0xcfd5, 0x001a, 0x001a, 0xefb1, 0xf9b1, 0xbcd5, 0xc6d5, 0xb7d5, 0xbbd5, 0xf4b1, 0xb6d5, 0xe8b1, 0xf1b1, 0xeeb1, 0xbfd5, 0xdeae, 0xc0d9, 0xebb1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3b1, 0x001a, 0xc3d9, 0xd9d9, 0xced9, 0xd6b4, 0x001a, 0xd1b4, 0xbdd9, 0xd2b4, 0xcdd9, 0x001a, 0xc6d9, 0xd3d9, 0xceb4, 0xabd9, 0xd5d9, 0xc4b4, 0xb3d9, 0xc7b4, 0xc6b4, 0x001a, 0xd7b4, 0x001a, 0xadd9, 0xcfd9, 0xd0d9, 0xc9b4, 0xc5b4, 0xbbd9, 0x001a, 0xd0b4, 0xb6d9, 0x001a, 0xd1d9, 0xccb4, 0xc9d9, 0xd6d9, 0xb0d9, 0xb5d9, 0xafd9, 0x001a, 0xcbb4, 0xc2d9, 0xdedd, 0xb1d9, 0xcfb4, 0xbad9, 0xd2d9, 0xcab4, 0xb7d9, 0xb4d9, 0xc5d9, 0xcdb4, 0xc3b4, 0xd9b4, 0xc8d9, 0xc7d9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacd9, 0xc8b4, 0xd4d9, 0xbcd9, 0xbed9, 0x001a, 0xcbd9, 0xcad9, 0xaad9, 0xd3b4, 0xd5b4, 0xb2d9, 0xb9d9, 0xc1d9, 0xd4b4, 0xb8d9, 0xc4d9, 0xd7d9, 0x001a, 0xccd9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8d9, 0x001a, 0x001a, 0x001a, 0x001a, 0xaed9, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2dd, 0xa6b7, 0x001a, 0xf0dd, 0xdbdd, 0xe0dd, 0xd9dd, 0x001a, 0xecdd, 0xcbdd, 0xd2dd, 0x001a, 0xeadd, 0xf4dd, 0xdcdd, 0x001a, 0xcfdd, 0xe2dd, 0xe7dd, 0xd3dd, 0x001a, 0xe4dd, 0xd0dd, 0x001a, 0x001a, 0xd7dd, 0xd8dd, 0xa8b7, 0xebdd, 0xe9dd, 0x001a, 0xccdd, 0xeedd, 0x001a, 0xefdd, 0xf1dd, 0xacb7, 0xa4b7, 0x001a, 0xb8d5, 0xd4dd, 0xe6dd, 0xd5dd, 0xa1b7, 0xb1b7, 0xeddd, 0xafb7, 0xabb7, 0xcadd, 0xa3b7, 0x001a, 0xcddd, 0xb0b7, 0x001a, 0xdddd, 0xc9dd, 0x001a, 0xa9b7, 0xe1dd, 0xd1dd, 0xaab7, 0xdadd, 0x7eb7, 0xd8b4, 0xe3dd, 0xbfd9, 0xcedd, 0x001a, 0x001a, 0xe8dd, 0xa5b7, 0xe5dd, 0xa2b7, 0xdfdd, 0xadb7, 0xd6dd, 0xf3dd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7b7, 0xc6de, 0x001a, 0x001a, 0xaeb7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ae2, 0x48e2, 0x001a, 0x5ee2, 0x46e2, 0x001a, 0x58e2, 0x7db7, 0x5fba, 0x42e2, 0x5de2, 0x001a, 0x47e2, 0x55e2, 0x64ba, 0x5dba, 0x001a, 0x5be2, 0x001a, 0x40e2, 0x5ae2, 0x001a, 0x6fba, 0x51e2, 0x61e2, 0x6dba, 0x49e2, 0x5eba, 0x4be2, 0x59e2, 0x67ba, 0x44e2, 0x6bba, 0x61ba, 0x4de2, 0x43e2, 0xfce1, 0x001a, 0x57e2, 0x68ba, 0x60e2, 0xfde1, 0x65ba, 0x001a, 0x53e2, 0x001a, 0x66ba, 0x45e2, 0x50e2, 0x4ce2, 0x4ee2, 0x001a, 0x60ba, 0x5fe2, 0x6eba, 0x4fe2, 0x001a, 0x62e2, 0x001a, 0x001a, 0xfee1, 0x54e2, 0x63ba, 0x6cba, 0x6aba, 0x41e2, 0x56e2, 0x69ba, 0x001a, 0x001a, 0x62ba, 0x52e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ce2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e5, 0x001a, 0xd1e5, 0xcde5, 0xe1e5, 0xdee5, 0xcdbc, 0x001a, 0x001a, 0xe5e5, 0xd4e5, 0xd8bc, 0xdbe5, 0x001a, 0x001a, 0xd0e5, 0xdae5, 0xd5bc, 0xeee5, 0x001a, 0xebe5, 0xdde5, 0xcee5, 0x001a, 0x001a, 0xe2e5, 0xe4e5, 0xd1bc, 0xd8e5, 0xd3e5, 0xcae5, 0xcebc, 0xd6bc, 0x001a, 0xe7e5, 0xd7bc, 0xcbe5, 0xede5, 0xe0e5, 0xe6e5, 0xd4bc, 0x001a, 0x001a, 0xe3e5, 0x001a, 0xeae5, 0x001a, 0xd9bc, 0x001a, 0xd3bc, 0xdce5, 0xcfe5, 0xefe5, 0xcce5, 0xe8e5, 0xd0bc, 0x001a, 0xd6e5, 0x001a, 0xd7e5, 0xcfbc, 0xccbc, 0xd2e5, 0xd2bc, 0x001a, 0xcbbc, 0x001a, 0xe9e5, 0xece5, 0xd9e5, 0xcae9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2e9, 0x001a, 0xbee9, 0xf6be, 0x001a, 0x001a, 0xebbe, 0xf0be, 0xecbe, 0xcce9, 0xd7e9, 0xeabe, 0xc4e9, 0xcde9, 0xdfe5, 0xcee9, 0x001a, 0x001a, 0xf1be, 0x001a, 0xdde9, 0xf5be, 0xf8be, 0xc0e9, 0x001a, 0xf4be, 0x001a, 0xdbe9, 0xdce9, 0xd2e9, 0xd1e9, 0xc9e9, 0x001a, 0x001a, 0xd3e9, 0xdae9, 0xd9e9, 0x001a, 0xefbe, 0xedbe, 0xcbe9, 0xc8e9, 0x001a, 0xc5e9, 0xd8e9, 0xf7be, 0xd6e9, 0xf3be, 0xf2be, 0x001a, 0xd0e9, 0x001a, 0xbfe9, 0xc1e9, 0xc3e9, 0xd5e9, 0xcfe9, 0xeebe, 0x001a, 0xc6e9, 0x001a, 0xd4e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfc0, 0x45ed, 0xc8c0, 0xf5ec, 0x001a, 0x41ed, 0xcac0, 0x48ed, 0x001a, 0xfcec, 0x001a, 0xf7ec, 0x001a, 0x001a, 0x49ed, 0xf3ec, 0xfeec, 0x001a, 0xd1c0, 0x44ed, 0x4aed, 0xfdec, 0xc9c0, 0x40ed, 0xf4ec, 0xd0c0, 0x001a, 0x001a, 0x47ed, 0xf9ec, 0xccc0, 0x001a, 0xfbec, 0xf8ec, 0xd2c0, 0xfaec, 0xcbc0, 0xcec0, 0x43ed, 0xf6ec, 0x46ed, 0x001a, 0x42ed, 0x001a, 0x001a, 0x001a, 0x63c2, 0xe7ef, 0x68c2, 0x69c2, 0x001a, 0x001a, 0x001a, 0x62c2, 0xe6ef, 0x001a, 0xe3ef, 0xe4ef, 0x66c2, 0xdeef, 0xe2ef, 0x65c2, 0x001a, 0xdfef, 0x001a, 0x001a, 0x001a, 0x001a, 0x67c2, 0x64c2, 0x001a, 0xddef, 0xe1ef, 0xe5ef, 0x001a, 0x001a, 0x001a, 0x51f2, 0x4ef2, 0x57f2, 0x001a, 0x56f2, 0x54f2, 0x4ff2, 0x001a, 0x72c3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50f2, 0x71c3, 0xcdc0, 0x53f2, 0x70c3, 0x58f2, 0x52f2, 0x4df2, 0xe0ef, 0x001a, 0x001a, 0x001a, 0x6fc3, 0x001a, 0x4cf2, 0x56f4, 0x001a, 0x55f4, 0x55f2, 0x68c4, 0x001a, 0x59f4, 0x5af4, 0x54f4, 0x58f4, 0x001a, 0x53f4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1f5, 0x57f4, 0xe7c4, 0xe5c4, 0xcff5, 0x001a, 0x001a, 0x001a, 0xd2f5, 0x001a, 0xcef5, 0xd0f5, 0xe6c4, 0x001a, 0x001a, 0x001a, 0xe5f6, 0xe6f6, 0x76c5, 0xe4f6, 0x001a, 0x001a, 0x001a, 0xe2f7, 0xcfc5, 0xe0f7, 0xe1f7, 0xacf8, 0x001a, 0x001a, 0x56c6, 0xf3f8, 0xf1f8, 0xf2f8, 0xf4f8, 0x001a, 0x001a, 0x001a, 0xbbf9, 0x001a, 0xeda4, 0xb8a6, 0x001a, 0x59aa, 0x001a, 0xe9cc, 0x001a, 0x001a, 0x64cf, 0x001a, 0x001a, 0x001a, 0xf5d1, 0xf7d1, 0x001a, 0xf6d1, 0x001a, 0xf8d1, 0xfdb1, 0xd7d5, 0xf9d1, 0x001a, 0xd6d5, 0xd8d5, 0xd9d5, 0xdad9, 0xdbb4, 0xdbd9, 0xddd9, 0xdcb4, 0xdab4, 0xdcd9, 0x001a, 0xfadd, 0xf8dd, 0xf7dd, 0x001a, 0xf6dd, 0xf5dd, 0xb2b7, 0xf9dd, 0x70ba, 0x63e2, 0x65e2, 0x71ba, 0x64e2, 0xdbbc, 0x001a, 0xdabc, 0xf0e5, 0x001a, 0x001a, 0xdfe9, 0xdee9, 0xe0e9, 0x001a, 0x001a, 0xf9be, 0x001a, 0x4bed, 0xd3c0, 0x001a, 0xe8ef, 0x6ac2, 0x59f2, 0x77c5, 0xeea4, 0xbfa5, 0xb9a6, 0x42a8, 0x5aaa, 0x5baa, 0x001a, 0x001a, 0x6eac, 0x001a, 0x001a, 0xfad1, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3b7, 0x001a, 0x001a, 0x001a, 0xd1e6, 0xfabe, 0x6bc2, 0xefa4, 0x001a, 0xbaa6, 0x001a, 0x001a, 0xebcc, 0x5caa, 0xeacc, 0x001a, 0x65cf, 0x6fac, 0x66cf, 0x001a, 0x70ac, 0x001a, 0xfcd1, 0xeeae, 0xedae, 0x001a, 0xded5, 0xdcd5, 0xddd5, 0xdbd5, 0x001a, 0xdad5, 0x001a, 0x001a, 0xded9, 0xe1d9, 0xdeb4, 0xdfd9, 0xddb4, 0xe0d9, 0x001a, 0xfbdd, 0x001a, 0x001a, 0x66e2, 0x67e2, 0x68e2, 0x001a, 0xf3e5, 0xf2e5, 0xdcbc, 0xf1e5, 0xf4e5, 0xe1e9, 0x001a, 0x001a, 0xe2e9, 0xe3e9, 0x001a, 0x4ced, 0xd4c0, 0x6cc2, 0x5af2, 0x001a, 0xe8c4, 0x5fc9, 0x001a, 0x71ac, 0x67cf, 0xefae, 0x001a, 0x001a, 0xfeb1, 0x001a, 0xdfb4, 0xe2d9, 0x001a, 0xb5b7, 0xb4b7, 0x001a, 0x001a, 0x69e2, 0x6ae2, 0xddbc, 0xdebc, 0xe5e9, 0xe4e9, 0xe9ef, 0xe3f7, 0xf0a4, 0x60c9, 0xc0a5, 0x001a, 0x43a8, 0x48cb, 0x001a, 0x72ac, 0xb6b7, 0xf1a4, 0x001a, 0x68cf, 0x73ac, 0x69cf, 0x001a, 0xd5c0, 0xf2a4, 0x001a, 0x001a, 0xeccc, 0x001a, 0x6acf, 0x001a, 0x42d2, 0x41d2, 0xfed1, 0x001a, 0xfdd1, 0x43d2, 0x40d2, 0x001a, 0x001a, 0x40b2, 0x41b2, 0x001a, 0x001a, 0xe0b4, 0xe3d9, 0x001a, 0xe4d9, 0xe5d9, 0x001a, 0x001a, 0x001a, 0x41de, 0x42de, 0x40de, 0x001a, 0xfddd, 0xfedd, 0xb7b7, 0x6be2, 0xf7e5, 0xf6e5, 0xf5e5, 0xf8e5, 0xe7e9, 0xe6e9, 0xfbbe, 0xe8e9, 0x001a, 0xd6c0, 0x4ded, 0x001a, 0xeaef, 0x5bf2, 0xe7f6, 0x001a, 0xf3a4, 0xc2a5, 0xc1a5, 0x001a, 0x5daa, 0x61c9, 0x7ec9, 0xbba6, 0x001a, 0xf7c9, 0x49cb, 0x4acb, 0x5eaa, 0x001a, 0xedcc, 0x001a, 0x74ac, 0x6bcf, 0x6ccf, 0x001a, 0xf0ae, 0xf4ae, 0x44d2, 0xf3ae, 0xf1ae, 0xf2ae, 0x001a, 0xdfd5, 0x42b2, 0xe3b4, 0x001a, 0xe1b4, 0xe2b4, 0xe6d9, 0x001a, 0x001a, 0x72ba, 0xf4a4, 0x001a, 0xa1c9, 0x001a, 0xc3a5, 0x001a, 0x001a, 0xa4c9, 0x001a, 0x001a, 0xc6a5, 0xa3c9, 0xc5a5, 0xc4a5, 0x44a8, 0xa2c9, 0x001a, 0x001a, 0xf8c9, 0x001a, 0x001a, 0x001a, 0xfcc9, 0xfec9, 0x40ca, 0xc5a6, 0xc6a6, 0xfbc9, 0xc1a6, 0x001a, 0xf9c9, 0x001a, 0xfdc9, 0xc2a6, 0x001a, 0xbda6, 0x001a, 0xbea6, 0x001a, 0xc4a6, 0xfac9, 0xbca6, 0x45a8, 0xbfa6, 0xc0a6, 0xc3a6, 0x001a, 0x001a, 0x001a, 0x5bcb, 0x59cb, 0x4ccb, 0x51a8, 0x53cb, 0x4ca8, 0x4dcb, 0x001a, 0x55cb, 0x001a, 0x52cb, 0x4fa8, 0x51cb, 0x56a8, 0x5acb, 0x58a8, 0x001a, 0x5aa8, 0x001a, 0x4bcb, 0x001a, 0x4da8, 0x5ccb, 0x001a, 0x54a8, 0x57a8, 0x001a, 0x45cd, 0x47a8, 0x5ea8, 0x55a8, 0x4ecb, 0x4aa8, 0x59a8, 0x56cb, 0x48a8, 0x49a8, 0x43cd, 0x4fcb, 0x50a8, 0x5ba8, 0x5dcb, 0x50cb, 0x4ea8, 0x001a, 0x53a8, 0xeecc, 0x5ca8, 0x57cb, 0x52a8, 0x001a, 0x5da8, 0x46a8, 0x54cb, 0x4ba8, 0x58cb, 0x44cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6aaa, 0x7aaa, 0xf5cc, 0x71aa, 0x001a, 0x4bcd, 0x62aa, 0x001a, 0x65aa, 0x42cd, 0x001a, 0xf3cc, 0xf7cc, 0x6daa, 0x6faa, 0xfacc, 0x76aa, 0x68aa, 0x66aa, 0x67aa, 0x75aa, 0x47cd, 0x70aa, 0xf9cc, 0xfbcc, 0x6eaa, 0x73aa, 0xfccc, 0x4acd, 0x001a, 0x75ac, 0x79aa, 0x001a, 0x63aa, 0x49cd, 0x001a, 0x4dcd, 0xf8cc, 0x4fcd, 0x40cd, 0x6caa, 0xf4cc, 0x6baa, 0x7daa, 0x72aa, 0x001a, 0xf2cc, 0x75cf, 0x78aa, 0x7caa, 0x41cd, 0x46cd, 0x001a, 0x7eaa, 0x77aa, 0x69aa, 0x5faa, 0x001a, 0x64aa, 0x001a, 0xf6cc, 0x60aa, 0x4ecd, 0x001a, 0xf0cc, 0xefcc, 0xfdcc, 0xf1cc, 0x7baa, 0xf5ae, 0x74aa, 0xfecc, 0x61aa, 0x001a, 0xa6ac, 0x001a, 0x001a, 0x001a, 0x4ccd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7ccf, 0xa1cf, 0x001a, 0xa4cf, 0x77cf, 0x001a, 0x001a, 0xa7cf, 0xaacf, 0xaccf, 0x74cf, 0x76ac, 0x7bac, 0x49d2, 0xadac, 0xa5cf, 0xadcf, 0x7bcf, 0x73cf, 0x001a, 0x001a, 0x001a, 0x64d2, 0x7eac, 0xa2cf, 0x78cf, 0x7acf, 0xa5ac, 0x001a, 0x7dcf, 0x7dac, 0x70cf, 0xa8cf, 0x001a, 0xabcf, 0x001a, 0x001a, 0x7aac, 0x001a, 0xa8ac, 0x6dcf, 0xaaac, 0x78ac, 0xaeac, 0xa9cf, 0x6fcf, 0xabac, 0x5ed2, 0x48cd, 0x7cac, 0x77ac, 0x76cf, 0x6ecf, 0xacac, 0xa4ac, 0xa3cf, 0xa9ac, 0xa7ac, 0x79cf, 0xa1ac, 0x71cf, 0xa2ac, 0xa3ac, 0x72cf, 0xa6cf, 0x79ac, 0x7ecf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4cd2, 0xfdae, 0x43af, 0x001a, 0x001a, 0x001a, 0x55d2, 0x5bd2, 0x57d2, 0x4ad2, 0x4dd2, 0x46d2, 0x47d2, 0x4aaf, 0xfaae, 0x56d2, 0x5fd2, 0x45af, 0xf6ae, 0x001a, 0x40af, 0x4ed2, 0x42af, 0x4fd2, 0x59d2, 0x001a, 0x001a, 0x001a, 0x44af, 0x68d2, 0x48d2, 0xfcae, 0xfbae, 0x48af, 0x45d2, 0x66d2, 0x5ad2, 0x67d2, 0x61d2, 0x53d2, 0x62d2, 0x001a, 0x5cd2, 0x65d2, 0x63d2, 0x49af, 0x54d2, 0xf9ae, 0xf8ae, 0x41af, 0x47af, 0x60d2, 0x46af, 0x51d2, 0x43b2, 0x001a, 0x69d2, 0x50d2, 0x4bd2, 0xfeae, 0x4baf, 0xf7ae, 0x001a, 0x58d2, 0x5dd2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x65b2, 0xe1d5, 0xe5d5, 0x001a, 0x52b2, 0x50b2, 0x001a, 0x001a, 0x47b2, 0xe3d5, 0xe2d5, 0x5bb2, 0x001a, 0xe8d5, 0x55b2, 0x001a, 0xfad5, 0x47d6, 0x44b2, 0xf7d5, 0xf0d5, 0x67b2, 0xe0d5, 0x001a, 0xfcd5, 0x001a, 0x64b2, 0x58b2, 0x63b2, 0x4eb2, 0xecd5, 0xfed5, 0xf6d5, 0x4fb2, 0x49b2, 0x45d6, 0x001a, 0xfdd5, 0x40d6, 0x51b2, 0x59b2, 0x42d6, 0xead5, 0xfbd5, 0xefd5, 0x44d6, 0x5eb2, 0x46b2, 0x5cb2, 0xf4d5, 0xf2d5, 0xf3d5, 0x53b2, 0xeed5, 0xedd5, 0x48b2, 0xe7d5, 0x46d6, 0x4ab2, 0xf1d5, 0x68b2, 0x001a, 0x62b2, 0xe6d5, 0x5fb2, 0x5db2, 0x66b2, 0xf8d5, 0x61b2, 0x52d2, 0xf9d5, 0x60b2, 0x41d6, 0x45b2, 0xf5d5, 0x57b2, 0xe9d5, 0x56b2, 0x001a, 0x54b2, 0x4cb2, 0x4bb2, 0xe7d9, 0x43d6, 0x001a, 0x001a, 0xebd5, 0x001a, 0x001a, 0xfcd9, 0x001a, 0x4db2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41b5, 0x5ab2, 0xeeb4, 0xf6d9, 0xfcb4, 0x001a, 0xead9, 0xebb4, 0xe7b4, 0x49da, 0xedb4, 0xf1b4, 0xecb4, 0xf5b4, 0x4dda, 0x44da, 0x001a, 0x001a, 0xf1d9, 0xfab4, 0xf4b4, 0xfdd9, 0xe4b4, 0x4ada, 0x43da, 0xe8b4, 0xf7d9, 0xf7b4, 0x55da, 0x56da, 0x001a, 0xe5b4, 0x48da, 0xf9b4, 0xfbd9, 0xedd9, 0xeed9, 0xfdb4, 0xf2d9, 0xf9d9, 0xf3d9, 0x001a, 0xfbb4, 0x44b5, 0xefd9, 0xe8d9, 0xe9d9, 0x001a, 0xebd9, 0xeab4, 0xf8d9, 0x001a, 0xf8b4, 0x42b5, 0x001a, 0x001a, 0xfad9, 0x53da, 0x4bda, 0xe6b4, 0x51da, 0xf2b4, 0x001a, 0xf0b4, 0x001a, 0x57da, 0xefb4, 0x41da, 0xf4d9, 0xfed9, 0x47b5, 0x45da, 0x42da, 0xf0d9, 0x43b5, 0x4fda, 0x4cda, 0x54da, 0xe9b4, 0x40da, 0x46b5, 0x001a, 0x47da, 0x001a, 0x001a, 0xf3b4, 0xf6b4, 0x001a, 0x46da, 0x45b5, 0xf5d9, 0xe4d5, 0x001a, 0x001a, 0x50da, 0x4eda, 0x52da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xecd9, 0x40b5, 0x001a, 0x001a, 0x001a, 0x61de, 0x60de, 0x46de, 0xbdb7, 0x001a, 0x5fde, 0x49de, 0x4ade, 0x001a, 0xc7b7, 0x68de, 0xc2b7, 0x5ede, 0x001a, 0x43de, 0xc8b7, 0xbeb7, 0x52de, 0x48de, 0x4bde, 0x63de, 0xb8b7, 0x6ade, 0x62de, 0xc1b7, 0x57de, 0xccb7, 0x001a, 0x001a, 0xcbb7, 0xc5b7, 0x001a, 0x001a, 0x69de, 0xb9b7, 0x55de, 0x4cde, 0x59de, 0x65de, 0xcdb7, 0x001a, 0xbbb7, 0x54de, 0x001a, 0x4dde, 0xc4b7, 0x001a, 0xc3b7, 0x50de, 0x5ade, 0x64de, 0x47de, 0x51de, 0xbcb7, 0x5bde, 0xc9b7, 0xc0b7, 0x4ede, 0xbfb7, 0x45de, 0x53de, 0x67de, 0xfeb4, 0xb0ba, 0x56de, 0x6ce2, 0x58de, 0x66de, 0xc6b7, 0x4fde, 0xbab7, 0xcab7, 0xf0bc, 0x44de, 0x001a, 0x5dde, 0x001a, 0x001a, 0x001a, 0x5cde, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaae2, 0xadba, 0x7de2, 0xa4e2, 0xa2ba, 0x001a, 0x6ee2, 0xafba, 0x001a, 0x77ba, 0x6de2, 0xb0e2, 0xb1ba, 0x71e2, 0xa3e2, 0x001a, 0x73e2, 0xb3e2, 0xafe2, 0x75ba, 0xa1ba, 0x53e6, 0xaeba, 0x7dba, 0x6fe2, 0x001a, 0xaee2, 0xa3ba, 0xabe2, 0xb8e2, 0x75e2, 0x7ee2, 0x001a, 0x001a, 0xb6e2, 0xace2, 0x7cba, 0x001a, 0x001a, 0x7ce2, 0x76ba, 0x74ba, 0xa8ba, 0x001a, 0x001a, 0x7ae2, 0x77e2, 0x78e2, 0x001a, 0xb2e2, 0x001a, 0xb7e2, 0xb5e2, 0x7aba, 0xb9e2, 0x7eba, 0xa7ba, 0x001a, 0x70e2, 0xfae5, 0x79e2, 0x001a, 0x78ba, 0xacba, 0xa9ba, 0x7bba, 0xa5e2, 0x74e2, 0xaaba, 0xa7e2, 0xa4ba, 0xa6ba, 0x73ba, 0x001a, 0xa9e2, 0xa1e2, 0x72e2, 0xa5ba, 0xb1e2, 0xb4e2, 0x7be2, 0xa8e2, 0x001a, 0x79ba, 0xdfbc, 0xa6e2, 0xf9e5, 0x001a, 0xade2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x76e2, 0x44e6, 0x4ee6, 0xe2bc, 0x4de6, 0x59e6, 0xe4bc, 0x4be6, 0x001a, 0x4fe6, 0xefbc, 0x001a, 0x46e6, 0xe7bc, 0x001a, 0x52e6, 0xf0e9, 0xf3bc, 0xf2bc, 0x54e6, 0x43e6, 0x5ee6, 0xedbc, 0x001a, 0xe3bc, 0x57e6, 0x001a, 0x5be6, 0x60e6, 0x55e6, 0x49e6, 0xe6bc, 0xe9bc, 0xf1bc, 0xecbc, 0x001a, 0x4ce6, 0xa2e2, 0x001a, 0x001a, 0x48e6, 0x5fe6, 0xe8bc, 0x001a, 0xebbc, 0x61e6, 0xe0bc, 0x56e6, 0xfbe5, 0x5ce6, 0xdfc0, 0x001a, 0x4ae6, 0x001a, 0xe1bc, 0x45e6, 0xe5bc, 0xfce5, 0xabba, 0x41e6, 0x001a, 0x5ae6, 0x42e6, 0x40e6, 0xeabc, 0x001a, 0x58e6, 0x001a, 0xfee5, 0x51e6, 0x50e6, 0x5de6, 0x47e6, 0xeebc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3e9, 0x001a, 0x49bf, 0xfebe, 0x40ea, 0xebe9, 0x41bf, 0xf7e9, 0x48bf, 0x43bf, 0xf5e9, 0x4fed, 0xfbe9, 0x42ea, 0xfae9, 0xe9e9, 0xf8e9, 0x44ea, 0x46ea, 0xfdbe, 0x45ea, 0x44bf, 0x4abf, 0x001a, 0x47bf, 0x001a, 0xfee9, 0x46bf, 0xf9e9, 0x001a, 0xede9, 0xf2e9, 0x001a, 0xfde9, 0x45bf, 0x42bf, 0xfcbe, 0x40bf, 0xf1e9, 0x001a, 0xfde5, 0xece9, 0xefe9, 0x41ea, 0xf4e9, 0xeae9, 0x4eed, 0x43ea, 0xeee9, 0xfce9, 0x001a, 0x001a, 0x001a, 0x001a, 0x51ed, 0xe3c0, 0x001a, 0x001a, 0xd7c0, 0x001a, 0x001a, 0xdbc0, 0x53ed, 0x59ed, 0x57ed, 0xd9c0, 0xdac0, 0xe1c0, 0x5aed, 0x52ed, 0xdcc0, 0x001a, 0x56ed, 0x55ed, 0x5bed, 0xe2c0, 0x001a, 0xddc0, 0xe0c0, 0x54ed, 0xe4c0, 0xdec0, 0xe5c0, 0xd8c0, 0x58ed, 0x001a, 0x50ed, 0x001a, 0x001a, 0xf7ef, 0x001a, 0x001a, 0x71c2, 0xf4ef, 0xf6ef, 0x001a, 0x6fc2, 0xf2ef, 0xf3ef, 0xeeef, 0x001a, 0x001a, 0xf6e9, 0xefef, 0x70c2, 0xebef, 0x001a, 0x6dc2, 0xf8ef, 0x6ec2, 0xecef, 0xedef, 0xf1ef, 0x73c2, 0x001a, 0x72c2, 0x001a, 0x001a, 0xf0ef, 0x78c3, 0x5ff2, 0x65f2, 0x79c3, 0x5cf2, 0x76c3, 0x73c3, 0x67f2, 0x77c3, 0x001a, 0x74c3, 0x5ef2, 0x61f2, 0x62f2, 0x63f2, 0x66f2, 0x001a, 0xf5ef, 0x5df2, 0x75c3, 0x64f2, 0x68f2, 0x60f2, 0x001a, 0x001a, 0x001a, 0x5df4, 0x6ac4, 0x60f4, 0x6bc4, 0x68f4, 0x5ff4, 0x5cf4, 0x001a, 0x5ef4, 0x62f4, 0x65f4, 0x64f4, 0x67f4, 0x5bf4, 0x001a, 0x69c4, 0x63f4, 0x66f4, 0x69f4, 0x61f4, 0xd3f5, 0xd4f5, 0xd8f5, 0xd9f5, 0x001a, 0xd6f5, 0xd7f5, 0xd5f5, 0x001a, 0xe9c4, 0x001a, 0x001a, 0x001a, 0x001a, 0x78c5, 0xebf6, 0x001a, 0x001a, 0xe8f6, 0xe9f6, 0xeaf6, 0x79c5, 0x001a, 0xe5f7, 0xe4f7, 0x001a, 0xaff8, 0xf4c5, 0xadf8, 0xb0f8, 0xaef8, 0xf5f8, 0x57c6, 0x65c6, 0xa3f9, 0x6cf9, 0x001a, 0xa2f9, 0xd0f9, 0xd1f9, 0xf5a4, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7a6, 0x41ca, 0x001a, 0x001a, 0x5ecb, 0x001a, 0x5fa8, 0x001a, 0x62a8, 0x001a, 0x5fcb, 0x001a, 0x60a8, 0x61a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x58cd, 0x5acd, 0x55cd, 0x52cd, 0x54cd, 0x001a, 0x001a, 0x001a, 0xa4aa, 0x001a, 0x001a, 0x001a, 0xa2aa, 0x001a, 0x001a, 0x56cd, 0xa3aa, 0x53cd, 0x50cd, 0xa1aa, 0x57cd, 0x001a, 0x51cd, 0xa5aa, 0x59cd, 0x001a, 0x001a, 0x001a, 0x001a, 0xafcf, 0x001a, 0xb3cf, 0x001a, 0x001a, 0xb7ac, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6cf, 0x001a, 0xafac, 0xb2ac, 0xb4ac, 0xb6ac, 0xb3ac, 0xb2cf, 0xb1cf, 0x001a, 0xb1ac, 0xb4cf, 0xb5cf, 0x001a, 0xaecf, 0xb5ac, 0x001a, 0xb0ac, 0x001a, 0x001a, 0x001a, 0xb0cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x77d2, 0x78d2, 0x79d2, 0x50af, 0x001a, 0x4caf, 0x6ed2, 0x001a, 0x76d2, 0x7bd2, 0x51af, 0x001a, 0x6cd2, 0x72d2, 0x6bd2, 0x75d2, 0x001a, 0x001a, 0x71d2, 0x4daf, 0x4faf, 0x7ad2, 0x001a, 0x6ad2, 0x6dd2, 0x73d2, 0x001a, 0x74d2, 0x7cd2, 0x70d2, 0x001a, 0x4eaf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6db2, 0x4ed6, 0x001a, 0x001a, 0x50d6, 0x4cd6, 0x001a, 0x58d6, 0x4ad6, 0x57d6, 0x69b2, 0x48d6, 0x5bda, 0x52d6, 0x6cb2, 0x001a, 0x53d6, 0x56d6, 0x001a, 0x5ad6, 0x001a, 0x4fd6, 0x001a, 0x54d6, 0x001a, 0x001a, 0x6ab2, 0x6bb2, 0x59d6, 0x4dd6, 0x49d6, 0x5bd6, 0x001a, 0x51d6, 0x001a, 0x001a, 0x55d6, 0x001a, 0x001a, 0x001a, 0x4bd6, 0x001a, 0x48b5, 0x49b5, 0x65da, 0x4fb5, 0x001a, 0x59da, 0x62da, 0x58da, 0x4cb5, 0x60da, 0x5eda, 0x001a, 0x5fda, 0x4ab5, 0x001a, 0x63da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5cda, 0x5ada, 0x4bb5, 0x5dda, 0x61da, 0x001a, 0x001a, 0x001a, 0x4db5, 0x001a, 0x001a, 0x001a, 0x64da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x70de, 0x77de, 0x79de, 0xa1de, 0x001a, 0xdab7, 0x6bde, 0x001a, 0xd2b7, 0x001a, 0x7ade, 0xd7b7, 0xa2de, 0xceb7, 0x001a, 0x7dde, 0x001a, 0x6dde, 0x7ede, 0x6cde, 0x001a, 0xdcb7, 0x001a, 0x78de, 0xcfb7, 0xa3de, 0x001a, 0xd4b7, 0x71de, 0xd9b7, 0x7cde, 0x6fde, 0x76de, 0x72de, 0x6ede, 0xd1b7, 0xd8b7, 0xd6b7, 0xd3b7, 0xdbb7, 0xd0b7, 0x75de, 0x001a, 0xd5b7, 0x001a, 0x4eb5, 0x001a, 0x7bde, 0x001a, 0x73de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x74de, 0x001a, 0x001a, 0xc1e2, 0x001a, 0xb4ba, 0x001a, 0x001a, 0xbde2, 0xc3e2, 0xbfe2, 0x001a, 0xb6ba, 0xbee2, 0xc2e2, 0xbae2, 0x001a, 0xbce2, 0xb5ba, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0e2, 0xbbe2, 0x001a, 0xb7ba, 0x001a, 0xb2ba, 0x001a, 0x001a, 0xc4e2, 0x001a, 0xb3ba, 0x67e6, 0x64e6, 0x70e6, 0x6ae6, 0x6ce6, 0xf4bc, 0x66e6, 0x6ee6, 0x001a, 0x001a, 0x6de6, 0x6be6, 0x001a, 0x71e6, 0xf7bc, 0x68e6, 0x6fe6, 0x001a, 0xf5bc, 0x001a, 0x001a, 0x63e6, 0x65e6, 0xf6bc, 0x62e6, 0x72e6, 0x001a, 0x69e6, 0x001a, 0x001a, 0x4aea, 0x51bf, 0x001a, 0x001a, 0x55ea, 0x53ea, 0x4bbf, 0x49ea, 0x4cea, 0x4dea, 0x48ea, 0x55bf, 0x56bf, 0x47ea, 0x56ea, 0x51ea, 0x4fbf, 0x4cbf, 0x50ea, 0x4eea, 0x001a, 0x001a, 0x52bf, 0x52ea, 0x4dbf, 0x001a, 0x4ebf, 0x001a, 0x4fea, 0x50bf, 0x4bea, 0x001a, 0x54ea, 0x53bf, 0x57ea, 0x58ea, 0x54bf, 0x001a, 0x001a, 0xe7c0, 0xeec0, 0x5ced, 0x62ed, 0x001a, 0x60ed, 0xeac0, 0xe9c0, 0xe6c0, 0x5eed, 0x001a, 0x001a, 0x001a, 0xecc0, 0xebc0, 0xe8c0, 0x001a, 0x61ed, 0x5ded, 0x5fed, 0x001a, 0xedc0, 0x001a, 0x001a, 0x001a, 0x77c2, 0xfbef, 0x001a, 0x74c2, 0x75c2, 0xfdef, 0x76c2, 0xfaef, 0x001a, 0xf9ef, 0x6cf2, 0xfcef, 0x001a, 0x6df2, 0x7ac3, 0x6bf2, 0x001a, 0x001a, 0x6af2, 0x001a, 0x69f2, 0x7bc3, 0x001a, 0x001a, 0x6cc4, 0x001a, 0x001a, 0x6af4, 0x6bf4, 0x001a, 0x001a, 0x001a, 0x001a, 0xdcf5, 0xdbf5, 0xeac4, 0x001a, 0xdaf5, 0xecf6, 0xedf6, 0x001a, 0x001a, 0xe6f7, 0xb1f8, 0x001a, 0x001a, 0xf6f8, 0xbcf9, 0x79c6, 0xc6f9, 0xf6a4, 0x001a, 0xa6aa, 0xa7aa, 0x001a, 0x001a, 0xb8ac, 0x001a, 0x001a, 0x001a, 0x001a, 0xefc0, 0xf7a4, 0x001a, 0xa8aa, 0x52af, 0xddb7, 0xf8a4, 0x001a, 0x6eb2, 0xb8ba, 0x62c9, 0x001a, 0xb7cf, 0x7dd2, 0x001a, 0xc5e2, 0x001a, 0xf0c0, 0xf9a4, 0xa9aa, 0xb8cf, 0xb9cf, 0x66da, 0x50b5, 0x001a, 0x001a, 0xa4de, 0x001a, 0x001a, 0xdeb7, 0xc6e2, 0x001a, 0x001a, 0xf8bc, 0x001a, 0x7cc3, 0xfaa4, 0x67da, 0xfba4, 0x001a, 0xc9a6, 0x42ca, 0xc8a6, 0x65a8, 0x64a8, 0x63a8, 0x60cb, 0x001a, 0x001a, 0x001a, 0xaaaa, 0x001a, 0xabaa, 0x5bcd, 0x001a, 0xbacf, 0x001a, 0xbdcf, 0xbaac, 0xbbcf, 0x001a, 0xb9ac, 0xbccf, 0xbbac, 0x001a, 0xa2d2, 0xa1d2, 0x7ed2, 0x53af, 0x001a, 0x5dd6, 0x5ed6, 0x6fb2, 0x5cd6, 0x5fd6, 0x52b5, 0x70b2, 0x001a, 0x001a, 0x51b5, 0x6bda, 0x6ada, 0x001a, 0x68da, 0x69da, 0x001a, 0x6cda, 0xa6de, 0xa5de, 0xa9de, 0x001a, 0xa8de, 0xa7de, 0xb9ba, 0xc9e2, 0x001a, 0xc8e2, 0xbaba, 0xc7e2, 0x73e6, 0x001a, 0x74e6, 0xf9bc, 0x001a, 0x59ea, 0x5aea, 0x001a, 0x001a, 0x72f2, 0x7dc3, 0x71f2, 0x70f2, 0x6ef2, 0x6ff2, 0xebc4, 0x6cf4, 0xeef6, 0xf7f8, 0x001a, 0xfca4, 0x001a, 0xa5c9, 0xc7a5, 0xa6c9, 0x001a, 0x001a, 0x001a, 0x43ca, 0x44ca, 0x001a, 0x001a, 0x001a, 0x001a, 0x66cb, 0x001a, 0x001a, 0x62cb, 0x001a, 0x61cb, 0xacaa, 0x65cb, 0x67a8, 0x63cb, 0x66a8, 0x67cb, 0x64cb, 0x001a, 0x001a, 0x5fcd, 0xbecf, 0x5dcd, 0x64cd, 0x001a, 0xadaa, 0x001a, 0xb0aa, 0x65cd, 0x61cd, 0x001a, 0x62cd, 0x001a, 0x5ccd, 0xafaa, 0x5ecd, 0xaeaa, 0x63cd, 0x001a, 0x60cd, 0x001a, 0x001a, 0xc2cf, 0xbdac, 0xbeac, 0x001a, 0xc5cf, 0xbfcf, 0x001a, 0xc4cf, 0x001a, 0xc0cf, 0xbcac, 0xc3cf, 0xc1cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8d2, 0xa5d2, 0x001a, 0xa7d2, 0x58af, 0x57af, 0x55af, 0xa4d2, 0xa9d2, 0x54af, 0x56af, 0xa6d2, 0x67d6, 0xa3d2, 0xaad2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62d6, 0x66d6, 0x001a, 0x65d6, 0x6eda, 0x79da, 0x001a, 0x001a, 0x68d6, 0x001a, 0x63d6, 0x6dda, 0x74b2, 0x001a, 0x001a, 0x73b2, 0x61d6, 0x64d6, 0x75b2, 0x001a, 0x72b2, 0x71b2, 0x60d6, 0x69d6, 0x001a, 0x001a, 0x001a, 0x70da, 0x77da, 0x001a, 0x54b5, 0x76da, 0x73da, 0x001a, 0x56b5, 0x001a, 0x001a, 0x001a, 0x75da, 0x001a, 0x001a, 0x6fda, 0x71da, 0x74da, 0x72da, 0x55b5, 0x78da, 0x53b5, 0xdfb7, 0x001a, 0x001a, 0xadde, 0xacde, 0xaade, 0x001a, 0xe2b7, 0xe1b7, 0xaede, 0x001a, 0xabde, 0xcae2, 0xbbba, 0xe0b7, 0x001a, 0x001a, 0x001a, 0xb0de, 0xafde, 0x001a, 0xcde2, 0xcbe2, 0xfabc, 0x001a, 0xbcba, 0xcce2, 0x76e6, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbbc, 0x75e6, 0x7ee6, 0x7de6, 0x7be6, 0x001a, 0x7ae6, 0x77e6, 0x78e6, 0x79e6, 0x7ce6, 0xa1e6, 0x001a, 0x001a, 0x5fea, 0x5cea, 0x5dea, 0x57bf, 0x5bea, 0x61ea, 0x60ea, 0x5eea, 0x001a, 0x64ed, 0x65ed, 0xf1c0, 0x001a, 0xf2c0, 0x63ed, 0x001a, 0x79c2, 0xfeef, 0x78c2, 0x7ec3, 0x001a, 0xa1c3, 0x6dc4, 0x6ef4, 0x6df4, 0xddf5, 0xeff6, 0x7ac5, 0xe8f7, 0xe7f7, 0xe9f7, 0xc8a5, 0xc6cf, 0x59af, 0x76b2, 0x6ad6, 0xc9a5, 0xa7c9, 0xfda4, 0x001a, 0x001a, 0x45ca, 0x001a, 0x001a, 0x001a, 0x6ccb, 0x6acb, 0x6bcb, 0x68cb, 0x68a8, 0x69cb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6dcd, 0x001a, 0xb3aa, 0x6bcd, 0x67cd, 0x6acd, 0x001a, 0x66cd, 0xb5aa, 0x69cd, 0x001a, 0xb2aa, 0xb1aa, 0x001a, 0xb4aa, 0x6ccd, 0x68cd, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2ac, 0xc5ac, 0xcecf, 0xcdcf, 0xcccf, 0xbfac, 0xd5cf, 0xcbcf, 0x001a, 0xc1ac, 0xafd2, 0x001a, 0xd2cf, 0xd0cf, 0xc4ac, 0x001a, 0xc8cf, 0xd3cf, 0x001a, 0xcacf, 0xd4cf, 0xd1cf, 0xc9cf, 0x001a, 0xc0ac, 0xd6cf, 0xc7cf, 0xc3ac, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4d2, 0xabd2, 0xb6d2, 0x001a, 0xaed2, 0xb9d2, 0xbad2, 0xacd2, 0xb8d2, 0xb5d2, 0xb3d2, 0xb7d2, 0x5faf, 0x001a, 0x5daf, 0x001a, 0x001a, 0xb1d2, 0x001a, 0xadd2, 0x001a, 0xb0d2, 0xbbd2, 0xb2d2, 0x5eaf, 0xcfcf, 0x001a, 0x5aaf, 0x5caf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x78d6, 0x6dd6, 0x6bd6, 0x001a, 0x6cd6, 0x001a, 0x73d6, 0x001a, 0x74d6, 0x70d6, 0x7bb2, 0x75d6, 0x72d6, 0x6fd6, 0x001a, 0x79b2, 0x6ed6, 0x77b2, 0x7ab2, 0x71d6, 0x79d6, 0x5baf, 0x78b2, 0x77d6, 0x76d6, 0x7cb2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7eda, 0x001a, 0x001a, 0x001a, 0xa1da, 0x60b5, 0x001a, 0xa7da, 0x001a, 0x001a, 0xa9da, 0xa2da, 0x5ab5, 0xa6da, 0xa5da, 0x5bb5, 0x61b5, 0x001a, 0x62b5, 0xa8da, 0x58b5, 0x7dda, 0x7bda, 0xa3da, 0x7ada, 0x5fb5, 0x7cda, 0xa4da, 0xaada, 0x59b5, 0x5eb5, 0x5cb5, 0x5db5, 0x001a, 0x001a, 0x001a, 0x57b5, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9b7, 0xb7de, 0xe8b7, 0xbbde, 0x001a, 0xb1de, 0x001a, 0xbcde, 0x001a, 0x001a, 0x001a, 0xb2de, 0xb3de, 0x001a, 0xbdde, 0xbade, 0xb8de, 0xb9de, 0xb5de, 0xb4de, 0x001a, 0xbede, 0xe5b7, 0x001a, 0xb6de, 0x001a, 0xeab7, 0xe4b7, 0xebb7, 0xecb7, 0x001a, 0xe7b7, 0xe6b7, 0x001a, 0x001a, 0xcee2, 0xbeba, 0xbdba, 0x001a, 0x001a, 0xd3e2, 0x001a, 0xfcbc, 0xbfba, 0x001a, 0x001a, 0xc1ba, 0xd4e2, 0xe3b7, 0xc0ba, 0xd0e2, 0xd2e2, 0xcfe2, 0x001a, 0xd1e2, 0x001a, 0x001a, 0x001a, 0xabe6, 0x001a, 0x001a, 0xaae6, 0xa7e6, 0x40bd, 0x62ea, 0x41bd, 0xa6e6, 0x001a, 0xfebc, 0x001a, 0xa8e6, 0xa5e6, 0xa2e6, 0xa9e6, 0xa3e6, 0xa4e6, 0xfdbc, 0x001a, 0x001a, 0x001a, 0x001a, 0x69ed, 0x001a, 0x66ea, 0x001a, 0x65ea, 0x67ea, 0x001a, 0x66ed, 0x5abf, 0x001a, 0x63ea, 0x001a, 0x58bf, 0x001a, 0x5cbf, 0x5bbf, 0x64ea, 0x68ea, 0x001a, 0x59bf, 0x001a, 0x6ded, 0xf5c0, 0x7ac2, 0xf6c0, 0xf3c0, 0x6aed, 0x68ed, 0x001a, 0x6bed, 0x001a, 0x6eed, 0xf4c0, 0x6ced, 0x67ed, 0x001a, 0x001a, 0x42f0, 0x45f0, 0x75f2, 0x40f0, 0x001a, 0x6ff4, 0x46f0, 0x001a, 0xa2c3, 0x44f0, 0x7bc2, 0x41f0, 0x43f0, 0x47f0, 0x76f2, 0x001a, 0x74f2, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3c3, 0x73f2, 0x001a, 0x001a, 0x001a, 0x6ec4, 0x001a, 0x001a, 0x001a, 0x001a, 0xedc4, 0xf1f6, 0xecc4, 0xf3f6, 0xf0f6, 0xf2f6, 0xd0c5, 0xb2f8, 0xcaa5, 0x6ecd, 0xbcd2, 0xbdd2, 0x7db2, 0xbfde, 0x5dbf, 0xa4c3, 0x7bc5, 0xb3f8, 0xcba5, 0x001a, 0x6fcd, 0x60a2, 0x001a, 0x001a, 0xd7cf, 0x001a, 0xd8cf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbed2, 0xbfd2, 0x7eb2, 0xa1b2, 0x001a, 0x001a, 0x001a, 0xabda, 0x001a, 0xc2de, 0xc1de, 0xc0de, 0xd5e2, 0x001a, 0xd6e2, 0xd7e2, 0xc2ba, 0x001a, 0x001a, 0xade6, 0xace6, 0x001a, 0x001a, 0x69ea, 0x5ebf, 0x5fbf, 0x001a, 0x72ed, 0x6fed, 0x70ed, 0x71ed, 0x49f0, 0x48f0, 0x7cc2, 0x77f2, 0xdef5, 0xcca5, 0x001a, 0xc6ac, 0x001a, 0xa2b2, 0xc3de, 0x001a, 0xcda5, 0x001a, 0xc0d2, 0xa3b2, 0x001a, 0x001a, 0x63b5, 0x64b5, 0x001a, 0xcea5, 0xcfa5, 0x46ca, 0x6aa8, 0x69a8, 0xc7ac, 0xd9cf, 0xacda, 0xd0a5, 0xd1a5, 0xd2a5, 0xd3a5, 0x001a, 0x001a, 0x001a, 0x6ba8, 0x6ca8, 0x6ecb, 0x6dcb, 0x001a, 0x001a, 0xb6aa, 0x72cd, 0x70cd, 0x71cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdacf, 0xdbcf, 0x001a, 0x001a, 0xcbac, 0xc9ac, 0x001a, 0xcaac, 0xc8ac, 0x001a, 0x001a, 0x001a, 0x001a, 0x60af, 0x001a, 0x001a, 0x001a, 0x001a, 0x64af, 0x63af, 0xc1d2, 0x62af, 0x61af, 0x001a, 0xc2d2, 0x001a, 0x001a, 0xa6b2, 0x7bd6, 0x7ad6, 0xa4b2, 0xa5b2, 0x001a, 0x001a, 0x001a, 0x66b5, 0x65b5, 0xaeda, 0x001a, 0x001a, 0xadda, 0xa7b2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xedb7, 0xc5de, 0xeeb7, 0xc4de, 0x001a, 0x001a, 0x001a, 0xd8e2, 0xaee6, 0x42bd, 0x6aea, 0x001a, 0x001a, 0x001a, 0x73ed, 0x001a, 0xa6c3, 0xa5c3, 0x001a, 0x001a, 0x7cc5, 0xd4a5, 0x73cd, 0x001a, 0x001a, 0xa8b2, 0xd9e2, 0xc3ba, 0x001a, 0x001a, 0x6fcb, 0x70cb, 0x001a, 0x001a, 0x74cd, 0xb8aa, 0xb9aa, 0x001a, 0x001a, 0xb7aa, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfac, 0xd0ac, 0xcdac, 0xceac, 0x001a, 0xdccf, 0x001a, 0x001a, 0xddcf, 0xccac, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3d2, 0x001a, 0x68af, 0x69af, 0x001a, 0xabb2, 0xc9d2, 0x001a, 0x6eaf, 0x6caf, 0xcad2, 0xc5d2, 0x6baf, 0x6aaf, 0x65af, 0xc8d2, 0xc7d2, 0xc4d2, 0x6daf, 0x001a, 0xc6d2, 0x66af, 0x001a, 0x67af, 0x001a, 0x001a, 0xacb2, 0xa1d6, 0xa2d6, 0xadb2, 0x7cd6, 0x7ed6, 0xa4d6, 0xa3d6, 0x7dd6, 0x001a, 0xa9b2, 0xaab2, 0x001a, 0xb6da, 0x6bb5, 0x6ab5, 0xb0da, 0x68b5, 0x001a, 0xb3da, 0x6cb5, 0xb4da, 0x6db5, 0xb1da, 0x67b5, 0x69b5, 0xb5da, 0x001a, 0xb2da, 0xafda, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2de, 0x001a, 0xc7de, 0xf0b7, 0xf3b7, 0xf2b7, 0xf7b7, 0xf6b7, 0xd3de, 0xd1de, 0xcade, 0xcede, 0xcdde, 0xf4b7, 0xd0de, 0xccde, 0xd4de, 0xcbde, 0xf5b7, 0xefb7, 0xf1b7, 0x001a, 0xc9de, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbe2, 0xc7ba, 0xdfe2, 0xc6ba, 0xdce2, 0xc5ba, 0x001a, 0xc8de, 0xcfde, 0xdee2, 0x001a, 0xc8ba, 0xe0e2, 0xdde2, 0xdae2, 0x001a, 0x001a, 0xb1e6, 0xb5e6, 0xb7e6, 0xb3e6, 0xb2e6, 0xb0e6, 0x45bd, 0x43bd, 0x48bd, 0x49bd, 0xb4e6, 0x46bd, 0xafe6, 0x47bd, 0xc4ba, 0xb6e6, 0x44bd, 0x001a, 0x001a, 0x001a, 0x6cea, 0x001a, 0x6bea, 0x73ea, 0x6dea, 0x72ea, 0x6fea, 0x60bf, 0x71ea, 0x001a, 0x001a, 0x61bf, 0x001a, 0x62bf, 0x001a, 0x70ea, 0x6eea, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8c0, 0x74ed, 0x001a, 0x001a, 0xf7c0, 0x77ed, 0x75ed, 0x76ed, 0x001a, 0x001a, 0xf9c0, 0x001a, 0x001a, 0x001a, 0x4df0, 0x001a, 0xa1c2, 0x4ef0, 0x001a, 0x001a, 0x7dc2, 0x4ff0, 0x7ec2, 0x4cf0, 0x50f0, 0x001a, 0x4af0, 0x001a, 0x001a, 0xa7c3, 0x78f2, 0xa8c3, 0x6fc4, 0x001a, 0x4bf0, 0x70c4, 0x001a, 0x001a, 0x001a, 0xeec4, 0xdff5, 0x001a, 0x7ec5, 0xf4f6, 0x7dc5, 0x001a, 0xeaf7, 0xf5c5, 0xf6c5, 0x001a, 0x001a, 0xccf9, 0x001a, 0x001a, 0xd1ac, 0xdecf, 0x001a, 0x6eb5, 0x6fb5, 0xd5a5, 0xcaa6, 0x47ca, 0x001a, 0x71cb, 0x6da8, 0x001a, 0xbaaa, 0x001a, 0xd2ac, 0xd3ac, 0xd4ac, 0xa6d6, 0xcbd2, 0x6faf, 0x001a, 0x001a, 0xaeb2, 0xa5d6, 0x001a, 0x001a, 0xb8da, 0x71b5, 0x001a, 0xb7da, 0x70b5, 0x001a, 0x001a, 0xd5de, 0x4abd, 0xbbe6, 0xb8e6, 0xb9e6, 0xbae6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x78ed, 0x001a, 0x51f0, 0x001a, 0x001a, 0x001a, 0x71f4, 0x70f4, 0x001a, 0xf5f6, 0xd6a5, 0x75cd, 0x70af, 0x001a, 0x001a, 0x001a, 0x72b5, 0xd6de, 0x001a, 0x001a, 0xe1e2, 0x001a, 0x4bbd, 0x74ea, 0x001a, 0x52f0, 0x72f4, 0xd7a5, 0x001a, 0x001a, 0xbbaa, 0xd7ac, 0xdfcf, 0xd8ac, 0xd6ac, 0x001a, 0xd5ac, 0xccd2, 0x71af, 0x001a, 0x001a, 0x72af, 0x73af, 0x001a, 0x001a, 0x001a, 0xb0b2, 0xa7d6, 0xafb2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9da, 0xb1b2, 0x73b5, 0xd7de, 0xf8b7, 0xf9b7, 0x001a, 0xc9ba, 0x001a, 0xcaba, 0x4cbd, 0x64bf, 0x75ea, 0x63bf, 0x001a, 0x79ed, 0xfac0, 0x001a, 0x53f0, 0x73f4, 0xd8a5, 0x6ea8, 0x78cd, 0x77cd, 0xbcaa, 0x76cd, 0xbdaa, 0x79cd, 0x001a, 0xe5cf, 0xdbac, 0xdaac, 0xe7cf, 0xe6cf, 0xdfac, 0x001a, 0xdeac, 0x001a, 0x001a, 0xd9ac, 0x001a, 0xe1cf, 0xe2cf, 0xe3cf, 0x001a, 0xe0ac, 0xe0cf, 0xdcac, 0xe4cf, 0xddac, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfd2, 0xd3d2, 0xd1d2, 0xd0d2, 0x001a, 0xd4d2, 0x001a, 0x001a, 0x001a, 0xd5d2, 0xd6d2, 0xced2, 0x001a, 0xcdd2, 0x001a, 0x75af, 0x76af, 0x001a, 0xd7d2, 0xd2d2, 0x001a, 0xb0d6, 0x001a, 0xd8d2, 0x77af, 0x74af, 0x001a, 0x001a, 0x001a, 0xaad6, 0x001a, 0xa9d6, 0x001a, 0xabd6, 0xacd6, 0xaed6, 0xadd6, 0xb2d6, 0xb5b2, 0xb2b2, 0xb6b2, 0xa8d6, 0xb7b2, 0xb1d6, 0xb4b2, 0xafd6, 0xb3b2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcda, 0xbeda, 0xbada, 0xbbda, 0x001a, 0x001a, 0xbfda, 0xc1da, 0xc2da, 0xbdda, 0xc0da, 0x74b5, 0x001a, 0x001a, 0xdbde, 0x001a, 0xe0de, 0xd8de, 0xdcde, 0x001a, 0x001a, 0xe1de, 0xddde, 0xfab7, 0x43b8, 0x001a, 0xfdb7, 0xd9de, 0xdade, 0xceba, 0x46b8, 0xfeb7, 0x001a, 0x44b8, 0xfcb7, 0xdfde, 0x45b8, 0xdede, 0x41b8, 0xfbb7, 0x42b8, 0xe2de, 0xe6e2, 0xe8e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x40b8, 0x001a, 0x001a, 0xe3e2, 0xccba, 0xe9e2, 0xcdba, 0xe7e2, 0xe2e2, 0xe5e2, 0xeae2, 0xcbba, 0xe4e2, 0x001a, 0x4ebd, 0xbfe6, 0xbee6, 0x001a, 0x51bd, 0x4fbd, 0xbce6, 0x4dbd, 0xbde6, 0x001a, 0x50bd, 0x001a, 0x001a, 0x001a, 0x7dea, 0x001a, 0xa1ea, 0x001a, 0x7eea, 0x76ea, 0x7aea, 0x79ea, 0x77ea, 0x66bf, 0x67bf, 0x65bf, 0x78ea, 0x7bea, 0x7cea, 0x001a, 0x68bf, 0x001a, 0x40c1, 0xa3ed, 0x001a, 0xfcc0, 0x7bed, 0xfec0, 0x41c1, 0x001a, 0x001a, 0xfdc0, 0xa2ed, 0x7ced, 0xfbc0, 0xa1ed, 0x7aed, 0x7eed, 0x7ded, 0x001a, 0x001a, 0x55f0, 0xa4c2, 0xa5c2, 0xa2c2, 0x001a, 0xa3c2, 0x001a, 0x001a, 0x54f0, 0x001a, 0x7bf2, 0x001a, 0x001a, 0xa9c3, 0x001a, 0x79f2, 0x7af2, 0x001a, 0x74f4, 0x77f4, 0x75f4, 0x76f4, 0xe0f5, 0x001a, 0x001a, 0xefc4, 0xebf7, 0xb4f8, 0x001a, 0xf7c5, 0xf8f8, 0xf9f8, 0x66c6, 0xd9a5, 0xe1ac, 0x001a, 0xc3da, 0x001a, 0xe3de, 0x001a, 0xdaa5, 0x6fa8, 0x001a, 0xbeaa, 0x001a, 0xe8cf, 0xe9cf, 0x78af, 0x001a, 0x001a, 0xc4da, 0x75b5, 0x47b8, 0x42c1, 0xa4ed, 0x7cf2, 0x78f4, 0xdba5, 0x001a, 0x001a, 0x001a, 0xa1cd, 0x7acd, 0x7ccd, 0x7ecd, 0x7dcd, 0x7bcd, 0xbfaa, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2ac, 0xf2cf, 0x001a, 0xedcf, 0xeacf, 0x001a, 0x001a, 0xf1cf, 0x001a, 0x001a, 0xe4ac, 0xe5ac, 0xf0cf, 0xefcf, 0xeecf, 0xebcf, 0xeccf, 0xf3cf, 0xe3ac, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7caf, 0x001a, 0xa4af, 0xa3af, 0xe1d2, 0xdbd2, 0xd9d2, 0x001a, 0xa1af, 0xb9d6, 0x7aaf, 0xded2, 0xe2d2, 0xe4d2, 0xe0d2, 0xdad2, 0xa2af, 0xdfd2, 0xddd2, 0x79af, 0xe5d2, 0xa5af, 0xe3d2, 0x7daf, 0xdcd2, 0x001a, 0x7eaf, 0x7baf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9b2, 0x001a, 0xbad6, 0x001a, 0x001a, 0xb3d6, 0xb5d6, 0xb7d6, 0x001a, 0xb8d6, 0xb6d6, 0xbab2, 0x001a, 0xbbd6, 0x001a, 0xb4d6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8da, 0x76b5, 0xd0da, 0x001a, 0xc5da, 0x001a, 0xd1da, 0x001a, 0xc6da, 0xc7da, 0x001a, 0x001a, 0xcfda, 0xceda, 0xcbda, 0xb8b2, 0x77b5, 0xc9da, 0xccda, 0x78b5, 0xcdda, 0xcada, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeede, 0x001a, 0xf2de, 0x4eb8, 0x001a, 0xf0e2, 0x51b8, 0xf0de, 0xd6f9, 0x001a, 0xedde, 0xe8de, 0xeade, 0xebde, 0xe4de, 0x001a, 0x4db8, 0x001a, 0x001a, 0x4cb8, 0x001a, 0x48b8, 0xe7de, 0x001a, 0x4fb8, 0x001a, 0x50b8, 0xe6de, 0xe9de, 0xf1de, 0x4ab8, 0x4bb8, 0xefde, 0xe5de, 0x001a, 0x001a, 0x001a, 0xf2e2, 0xd0ba, 0xf4e2, 0xecde, 0xf6e2, 0xd4ba, 0xf7e2, 0xf3e2, 0x001a, 0xd1ba, 0xefe2, 0xd3ba, 0xece2, 0xf1e2, 0xf5e2, 0xeee2, 0x001a, 0x001a, 0x49b8, 0x001a, 0xebe2, 0xd2ba, 0xede2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x54bd, 0xc1e6, 0x58bd, 0x001a, 0x56bd, 0x001a, 0x001a, 0xcfba, 0x001a, 0xc8e6, 0xc9e6, 0x53bd, 0x001a, 0x001a, 0xc7e6, 0xcae6, 0x55bd, 0x52bd, 0xc3e6, 0xc0e6, 0xc5e6, 0xc2e6, 0x59bd, 0xc4e6, 0x001a, 0x001a, 0xc6e6, 0x57bd, 0x001a, 0x001a, 0x001a, 0x001a, 0x6abf, 0xa8ea, 0x001a, 0xa2ea, 0xa6ea, 0xacea, 0xadea, 0xa9ea, 0xaaea, 0xa7ea, 0x001a, 0xa4ea, 0x001a, 0x6cbf, 0x69bf, 0xa3ea, 0xa5ea, 0x001a, 0x6bbf, 0xabea, 0x001a, 0x46c1, 0x001a, 0x001a, 0xaaed, 0xa5ed, 0x45c1, 0x001a, 0x001a, 0x43c1, 0x001a, 0xaced, 0x44c1, 0xa8ed, 0xa9ed, 0xa6ed, 0xaded, 0x56f0, 0x001a, 0x47c1, 0xa7ed, 0x001a, 0xaeed, 0xabed, 0x001a, 0x001a, 0x001a, 0x5af0, 0x001a, 0x001a, 0x57f0, 0x001a, 0xa6c2, 0x001a, 0x5bf0, 0x5df0, 0x5cf0, 0x58f0, 0x59f0, 0x001a, 0x001a, 0xa3f2, 0x001a, 0xaac3, 0x001a, 0x7ef2, 0xa2f2, 0x7df2, 0xa4f2, 0x001a, 0x001a, 0xa1f2, 0x001a, 0x7af4, 0x7df4, 0x79f4, 0x71c4, 0x7bf4, 0x7cf4, 0x7ef4, 0x72c4, 0x74c4, 0x73c4, 0xe1f5, 0x001a, 0xe3f5, 0x001a, 0xe2f5, 0x001a, 0x001a, 0x001a, 0xf6f6, 0x001a, 0x001a, 0xb5f8, 0xfaf8, 0xdca5, 0x001a, 0x001a, 0x72cb, 0xc0aa, 0xa3cd, 0xc1aa, 0xc2aa, 0xa2cd, 0x001a, 0xf8cf, 0xf7cf, 0xe6ac, 0xe9ac, 0xe8ac, 0xe7ac, 0xf4cf, 0xf6cf, 0xf5cf, 0x001a, 0x001a, 0xe8d2, 0xa7af, 0xecd2, 0xebd2, 0xead2, 0xe6d2, 0xa6af, 0xaaaf, 0xadaf, 0x001a, 0x001a, 0xaeaf, 0xe7d2, 0xe9d2, 0xacaf, 0xabaf, 0xa9af, 0xa8af, 0xc2d6, 0x001a, 0xc0d6, 0xbcd6, 0xbbb2, 0x001a, 0xbdd6, 0xbcb2, 0xbed6, 0xbfd6, 0xc1d6, 0x001a, 0xbdb2, 0x001a, 0x001a, 0xd5da, 0x001a, 0xd4da, 0xd3da, 0xd2da, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6de, 0x52b8, 0x001a, 0xf3de, 0xf5de, 0x001a, 0x53b8, 0x001a, 0x54b8, 0xf4de, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41e3, 0x001a, 0xf9e2, 0xfae2, 0x001a, 0xd7ba, 0xd5ba, 0xd6ba, 0x43e3, 0x001a, 0x42e3, 0xfee2, 0xfde2, 0xfce2, 0xfbe2, 0x40e3, 0xf8e2, 0x001a, 0xcbe6, 0xd0e6, 0xcee6, 0x001a, 0x001a, 0x001a, 0xcde6, 0xcce6, 0xcfe6, 0x001a, 0xaeea, 0x001a, 0x6dbf, 0x48c1, 0xb0ed, 0x001a, 0x49c1, 0xafed, 0x5ff0, 0x5ef0, 0xa7c2, 0x001a, 0xa5f2, 0xabc3, 0xa1f4, 0xa1c5, 0xf7f6, 0x001a, 0xb7f8, 0xb6f8, 0xa8c9, 0xeaac, 0xebac, 0xc3d6, 0x001a, 0x56b8, 0xdda5, 0x72a8, 0x71a8, 0x70a8, 0x001a, 0x001a, 0x001a, 0xa4cd, 0x001a, 0x001a, 0xc4aa, 0xc3aa, 0x001a, 0xeeac, 0x001a, 0xfacf, 0xfdcf, 0xfbcf, 0x001a, 0xecac, 0xedac, 0x001a, 0x001a, 0xf9cf, 0xfccf, 0x001a, 0xb5af, 0x001a, 0x001a, 0x001a, 0xf3d2, 0xf5d2, 0xf4d2, 0xb2af, 0xefd2, 0x001a, 0x001a, 0xb0af, 0xafaf, 0x001a, 0xb3af, 0xb1af, 0x001a, 0xb4af, 0xf2d2, 0xedd2, 0xeed2, 0xf1d2, 0xf0d2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6d6, 0xc7d6, 0xc5d6, 0x001a, 0xc4d6, 0xbeb2, 0x001a, 0x001a, 0x001a, 0x001a, 0x7db5, 0x001a, 0xd6da, 0xd8da, 0xdada, 0x7cb5, 0x001a, 0x001a, 0x7ab5, 0x001a, 0xd7da, 0x7bb5, 0xd9da, 0x79b5, 0x001a, 0x001a, 0x41df, 0xf7de, 0xfade, 0xfede, 0x5ab8, 0xfcde, 0x001a, 0xfbde, 0xf8de, 0xf9de, 0x58b8, 0x40df, 0x57b8, 0x001a, 0x5cb8, 0x5bb8, 0x59b8, 0x001a, 0xfdde, 0x001a, 0x001a, 0x001a, 0x49e3, 0x001a, 0x48e3, 0x001a, 0x001a, 0x44e3, 0x001a, 0x001a, 0xd8ba, 0x47e3, 0x46e3, 0xd9ba, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ebd, 0x001a, 0xd2e6, 0x001a, 0x5fbd, 0x5bbd, 0x5dbd, 0x001a, 0x5abd, 0x5cbd, 0x001a, 0x001a, 0x001a, 0xafea, 0x001a, 0x70bf, 0xb1ea, 0xb0ea, 0x001a, 0x45e3, 0x72bf, 0x71bf, 0x6ebf, 0x6fbf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5ed, 0x001a, 0xb3ed, 0x4ac1, 0xb4ed, 0x001a, 0xb6ed, 0xb2ed, 0xb1ed, 0x001a, 0x001a, 0x60f0, 0xaac2, 0xa8c2, 0xa9c2, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6f2, 0xa7f2, 0xadc3, 0x001a, 0xacc3, 0xa3f4, 0xa4f4, 0xa2f4, 0x001a, 0xf8f6, 0xf9f6, 0x001a, 0x001a, 0xdea5, 0x48ca, 0x73a8, 0x001a, 0xa5cd, 0xc6aa, 0xc5aa, 0xa6cd, 0x001a, 0x001a, 0x40d0, 0xefac, 0xfecf, 0xf0ac, 0x001a, 0x001a, 0xb6af, 0xf8d2, 0xf6d2, 0xfcd2, 0xb7af, 0xf7d2, 0xfbd2, 0xf9d2, 0xfad2, 0x001a, 0x001a, 0xc8d6, 0xcad6, 0x001a, 0xbfb2, 0x001a, 0xc9d6, 0xc0b2, 0xa2b5, 0xa1b5, 0x7eb5, 0xdbda, 0x001a, 0x001a, 0x001a, 0x001a, 0x44df, 0x5db8, 0x5eb8, 0x001a, 0x43df, 0x42df, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ae3, 0xdbba, 0xdaba, 0x4be3, 0x4ce3, 0x001a, 0x61bd, 0x60bd, 0x001a, 0xb5ea, 0xd3e6, 0xd5e6, 0xd4e6, 0xb4ea, 0xb2ea, 0xb6ea, 0xb3ea, 0x001a, 0x73bf, 0x001a, 0x001a, 0x001a, 0xb7ed, 0x4bc1, 0xb8ed, 0xb9ed, 0x001a, 0x001a, 0xabc2, 0xacc2, 0x001a, 0x75c4, 0x001a, 0x001a, 0xd1c5, 0xdfa5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfdd2, 0xb8af, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbab3, 0xb9b3, 0x001a, 0x001a, 0xa4b5, 0xddda, 0xa3b5, 0xdcda, 0x001a, 0x001a, 0x001a, 0x001a, 0x45df, 0x001a, 0xdcba, 0x4de3, 0xddba, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x76c4, 0xa5f4, 0x001a, 0xcba6, 0xc7aa, 0xa7cd, 0x001a, 0xf2ac, 0x001a, 0xf1ac, 0x42d0, 0x43d0, 0x001a, 0x001a, 0x40d3, 0x42d3, 0xb9af, 0x001a, 0x44d3, 0x47d3, 0x45d3, 0x001a, 0x001a, 0x001a, 0x46d3, 0x43d3, 0xfed2, 0xbaaf, 0x48d3, 0x41d3, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3d6, 0xc6b2, 0xdcd6, 0xc3b2, 0x001a, 0xd5d6, 0xc7b2, 0x001a, 0xc1b2, 0x001a, 0xd0d6, 0xddd6, 0xd1d6, 0xced6, 0xc5b2, 0x001a, 0xc2b2, 0x001a, 0xd4d6, 0xd7d6, 0xc4b2, 0xd8d6, 0xc8b2, 0xd9d6, 0xcfd6, 0xd6d6, 0xdad6, 0xd2d6, 0xcdd6, 0xcbd6, 0x001a, 0x001a, 0xdbd6, 0x001a, 0x001a, 0xdfda, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4da, 0x001a, 0x001a, 0x001a, 0xe0da, 0xe6da, 0xa7b5, 0xccd6, 0xe1da, 0xa5b5, 0xdeda, 0xacb5, 0xe2da, 0xabb5, 0xe3da, 0xadb5, 0xa8b5, 0xaeb5, 0xa9b5, 0x001a, 0xaab5, 0x001a, 0xa6b5, 0x001a, 0xe5da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x61b8, 0x50df, 0x001a, 0x53df, 0x47df, 0x4cdf, 0x46df, 0x63b8, 0x001a, 0x4adf, 0x001a, 0x001a, 0x001a, 0x48df, 0x62b8, 0x001a, 0x4fdf, 0x4edf, 0x4bdf, 0x4ddf, 0x49df, 0xe1ba, 0x52df, 0x5fb8, 0x51df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5de3, 0x001a, 0xe8ba, 0x58e3, 0x001a, 0xe7ba, 0x4ee3, 0x001a, 0x50e3, 0xe0ba, 0x55e3, 0x54e3, 0x57e3, 0xe5ba, 0x52e3, 0x51e3, 0x001a, 0x001a, 0xe4ba, 0xdfba, 0x53e3, 0xe2ba, 0x59e3, 0x5be3, 0x001a, 0x56e3, 0x4fe3, 0xe3ba, 0x001a, 0x001a, 0x69bd, 0xdeba, 0x001a, 0x001a, 0x5ce3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9e6, 0x62bd, 0x001a, 0xdbe6, 0x001a, 0x63bd, 0x001a, 0x001a, 0x65bd, 0xdee6, 0x001a, 0xd6e6, 0xe6ba, 0xdce6, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8e6, 0x001a, 0x60b8, 0x68bd, 0x001a, 0x001a, 0x64bd, 0x001a, 0x66bd, 0x67bd, 0x001a, 0x76bf, 0xdde6, 0xd7e6, 0x6abd, 0x001a, 0xdae6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0ea, 0xbbea, 0x001a, 0x001a, 0xc5ea, 0x74bf, 0xbdea, 0x78bf, 0xc3ea, 0xbaea, 0xb7ea, 0xc6ea, 0x51c1, 0x79bf, 0xc2ea, 0xb8ea, 0x77bf, 0xbcea, 0x7bbf, 0xb9ea, 0xbeea, 0x7abf, 0xc1ea, 0xc4ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbed, 0xcced, 0xbced, 0xc3ed, 0xc1ed, 0x001a, 0x001a, 0x4fc1, 0xc8ed, 0xbfea, 0x001a, 0xbfed, 0x001a, 0xc9ed, 0x4ec1, 0xbeed, 0xbded, 0xc7ed, 0xc4ed, 0xc6ed, 0x001a, 0xbaed, 0xcaed, 0x4cc1, 0x001a, 0xc5ed, 0xceed, 0xc2ed, 0x50c1, 0x4dc1, 0xc0ed, 0xbbed, 0xcded, 0x75bf, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x63f0, 0x001a, 0x001a, 0x61f0, 0x67f0, 0xb0c2, 0x65f0, 0x64f0, 0xb2c2, 0x6af0, 0xb1c2, 0x001a, 0x6bf0, 0x68f0, 0xaec2, 0x69f0, 0x62f0, 0xafc2, 0xadc2, 0xabf2, 0x66f0, 0x001a, 0x001a, 0x6cf0, 0x001a, 0x001a, 0xa8f2, 0x001a, 0x001a, 0x001a, 0xb2c3, 0xb0c3, 0xaaf2, 0x001a, 0xacf2, 0xa9f2, 0xb1c3, 0xaec3, 0xafc3, 0xb3c3, 0x001a, 0x001a, 0x78c4, 0x001a, 0xaaf4, 0x001a, 0xa9f4, 0xa7f4, 0xa6f4, 0xa8f4, 0x001a, 0x77c4, 0x79c4, 0x001a, 0x001a, 0xf0c4, 0x001a, 0x001a, 0xe5f5, 0xe4f5, 0x001a, 0x001a, 0xfaf6, 0x001a, 0xfcf6, 0xfef6, 0xfdf6, 0xfbf6, 0x001a, 0x001a, 0xa3c5, 0xa2c5, 0x001a, 0x001a, 0xd3c5, 0xd2c5, 0xd4c5, 0xedf7, 0xecf7, 0x001a, 0xfbf8, 0xb8f8, 0xfcf8, 0x58c6, 0x001a, 0x59c6, 0x6df9, 0x001a, 0x001a, 0x7ec6, 0xcca6, 0x001a, 0xa8cd, 0x001a, 0x001a, 0x45d0, 0x46d0, 0x44d0, 0x001a, 0x001a, 0xf3ac, 0x001a, 0x47d0, 0x48d0, 0x49d0, 0x001a, 0x001a, 0x49d3, 0x4fd3, 0x001a, 0x001a, 0x4dd3, 0xbbaf, 0x4bd3, 0x001a, 0x4cd3, 0x4ed3, 0x001a, 0x001a, 0x001a, 0x4ad3, 0xc9b2, 0x001a, 0xded6, 0xcbb2, 0xe0d6, 0xcab2, 0xdfd6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8da, 0xafb5, 0x001a, 0xeada, 0xe7da, 0xe1d6, 0x001a, 0xb0b5, 0x001a, 0xdbf9, 0xe9da, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56df, 0x001a, 0x64b8, 0x54df, 0x65b8, 0x55df, 0x66b8, 0x001a, 0x001a, 0x001a, 0xe9ba, 0x61e3, 0x5ee3, 0x60e3, 0xeaba, 0xebba, 0x5fe3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfe6, 0x001a, 0x001a, 0xe0e6, 0x001a, 0x6bbd, 0xe2e6, 0xe1e6, 0x001a, 0x61a2, 0x001a, 0xcaea, 0xcbea, 0xc7ea, 0x001a, 0xc8ea, 0x7cbf, 0x7dbf, 0xc9ea, 0x001a, 0x57c1, 0x001a, 0x001a, 0x53c1, 0x58c1, 0x54c1, 0x56c1, 0x52c1, 0x001a, 0x55c1, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3c2, 0xcfed, 0x001a, 0xaef2, 0x001a, 0xadf2, 0x001a, 0xabf4, 0x7ac4, 0x7bc4, 0x41f7, 0xe6f5, 0x001a, 0x40f7, 0x001a, 0xfdf8, 0xa4f9, 0xcda6, 0x001a, 0x001a, 0x74a8, 0x001a, 0xa9cd, 0xc8aa, 0x001a, 0xf6ac, 0x4cd0, 0xf4ac, 0x4ad0, 0xf9ac, 0xf5ac, 0xfaac, 0xf8ac, 0x4bd0, 0xf7ac, 0xbfaf, 0xbeaf, 0x5ad3, 0xc7af, 0x53d3, 0x59d3, 0xc3af, 0x52d3, 0x58d3, 0x56d3, 0xc2af, 0xc4af, 0x55d3, 0xbdaf, 0x54d3, 0xc8af, 0xc5af, 0xc9af, 0xc6af, 0x51d3, 0x50d3, 0x57d3, 0xc0af, 0xbcaf, 0xc1af, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0d6, 0xe9d6, 0x001a, 0xb5b5, 0xe8d6, 0x001a, 0xcfb2, 0xd6b2, 0xd3b2, 0xd9b2, 0xd8b2, 0xd4b2, 0x001a, 0xe2d6, 0xe5d6, 0x001a, 0xe4d6, 0xd0b2, 0xe6d6, 0xefd6, 0xd1b2, 0xe3d6, 0xecd6, 0xedd6, 0xd2b2, 0xead6, 0xd7b2, 0xcdb2, 0xd5b2, 0xe7d6, 0xccb2, 0xebd6, 0x001a, 0x001a, 0xeed6, 0x001a, 0x001a, 0x001a, 0xfbda, 0xf2da, 0xb2b5, 0xf9da, 0xf6da, 0xeeda, 0xf7da, 0xb4b5, 0xefda, 0x001a, 0xebda, 0x001a, 0x001a, 0x6cb8, 0xf4da, 0x001a, 0xb1b5, 0xfada, 0x001a, 0xb8b5, 0xbab5, 0xedda, 0x001a, 0x001a, 0xb9b5, 0xf0da, 0xb3b5, 0xf8da, 0xf1da, 0xf5da, 0x001a, 0xf3da, 0xb6b5, 0xecda, 0xbbb5, 0xceb2, 0xb7b5, 0xbcb5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x68b8, 0x5ddf, 0x5fdf, 0x61df, 0x65df, 0x001a, 0x5bdf, 0x59df, 0x6ab8, 0x001a, 0x60df, 0x64df, 0x5cdf, 0x58df, 0x001a, 0x57df, 0x001a, 0x001a, 0x001a, 0x62df, 0x5adf, 0x5edf, 0x6bb8, 0x001a, 0x69b8, 0x66df, 0x67b8, 0x63df, 0x001a, 0x72e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeeba, 0x6ae3, 0x78bd, 0x74e3, 0xf1ba, 0x78e3, 0xf7ba, 0x65e3, 0x001a, 0x001a, 0x75e3, 0x62e3, 0x001a, 0x77e3, 0x66e3, 0x001a, 0xfeba, 0xfbba, 0x76e3, 0x70e3, 0xedba, 0xf5ba, 0xf4ba, 0x001a, 0xf3ba, 0xf9ba, 0x001a, 0x63e3, 0xfaba, 0x71e3, 0xf6ba, 0xecba, 0x73e3, 0xefba, 0xf0ba, 0xf8ba, 0x68e3, 0x67e3, 0x64e3, 0x001a, 0x6ce3, 0x69e3, 0x6de3, 0xfdba, 0x001a, 0x79e3, 0xf2ba, 0x6ee3, 0x6fe3, 0x001a, 0x6be3, 0x001a, 0x001a, 0x001a, 0xfcba, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7e6, 0x70bd, 0x79bd, 0x75bd, 0xe4e6, 0x001a, 0x72bd, 0x76bd, 0xf0e6, 0x6cbd, 0xe8e6, 0x001a, 0x74bd, 0x001a, 0x001a, 0xebe6, 0xe6e6, 0x73bd, 0x77bd, 0xe5e6, 0x001a, 0x71bd, 0x001a, 0xefe6, 0x6ebd, 0xeee6, 0xede6, 0x7abd, 0x72e5, 0x6dbd, 0x001a, 0xece6, 0xe3e6, 0x001a, 0x7bbd, 0xeae6, 0x6fbd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9e6, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2bf, 0xa7bf, 0x7ebf, 0xd8ea, 0xcfea, 0xdbea, 0xd3ea, 0xd9ea, 0xa8bf, 0xa1bf, 0xccea, 0xd2ea, 0xdcea, 0xd5ea, 0xdaea, 0xceea, 0x001a, 0x001a, 0xd6ea, 0xa3bf, 0xd4ea, 0xa6bf, 0xa5bf, 0xd0ea, 0xd1ea, 0xcdea, 0xd7ea, 0xa4bf, 0xdeea, 0xddea, 0x001a, 0x001a, 0x001a, 0xdaed, 0xd6ed, 0x5fc1, 0x001a, 0xd0ed, 0x59c1, 0x69c1, 0xdced, 0x61c1, 0x5dc1, 0xd3ed, 0x64c1, 0x67c1, 0xdeed, 0x5cc1, 0xd5ed, 0x65c1, 0xe0ed, 0xdded, 0xd1ed, 0x60c1, 0x5ac1, 0x68c1, 0xd8ed, 0x63c1, 0xd2ed, 0x5ec1, 0xdfed, 0x62c1, 0x5bc1, 0xd9ed, 0x66c1, 0xd7ed, 0x001a, 0x001a, 0xdbed, 0x001a, 0x001a, 0x001a, 0x6ef0, 0x74f0, 0xb9c2, 0x77f0, 0xb4c2, 0xb5c2, 0x6ff0, 0x76f0, 0x71f0, 0xbac2, 0xb7c2, 0x001a, 0x6df0, 0x001a, 0xb6c2, 0x73f0, 0x75f0, 0xb8c2, 0x72f0, 0x70f0, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8f2, 0xb7c3, 0xb8c3, 0xb4c3, 0x001a, 0xb5c3, 0x001a, 0xb4f2, 0xb2f2, 0x001a, 0xb6f2, 0xbac3, 0xb7f2, 0xb0f2, 0xaff2, 0xb3f2, 0xb1f2, 0xb6c3, 0xb5f2, 0xacf4, 0x7ec4, 0x7dc4, 0xadf4, 0x001a, 0xaff4, 0xaef4, 0xa1c4, 0x001a, 0x001a, 0x001a, 0xebf5, 0xe8f5, 0xe9f5, 0x001a, 0xe7f5, 0xeaf5, 0xf2c4, 0xecf5, 0x001a, 0xf1c4, 0x001a, 0x42f7, 0x001a, 0xd5c5, 0xd7c5, 0xeef7, 0xd6c5, 0xb9f8, 0x40f9, 0x42f9, 0xfef8, 0x41f9, 0x6cc6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcea6, 0x001a, 0xfbac, 0x6fd2, 0xcaaf, 0x001a, 0x001a, 0xdab2, 0xfcda, 0xfdda, 0x001a, 0x001a, 0x001a, 0xdfea, 0x6ac1, 0xe1ed, 0x001a, 0x001a, 0xbbc2, 0x001a, 0xbaf2, 0xb9f2, 0xa2c4, 0xedf5, 0x001a, 0x43f7, 0xf8c5, 0x49ca, 0x001a, 0x001a, 0xc9aa, 0x75a8, 0x001a, 0x001a, 0x4dd0, 0x001a, 0x001a, 0x60d3, 0x5bd3, 0x5fd3, 0x5dd3, 0xcbaf, 0x5ed3, 0x5cd3, 0x001a, 0xf1d6, 0x001a, 0xfeda, 0x40db, 0x69df, 0x6adf, 0x6eb8, 0x6fb8, 0x68df, 0x6bdf, 0x67df, 0x6db8, 0x001a, 0x40bb, 0x001a, 0x70b8, 0x7ae3, 0x001a, 0x7cbd, 0xf1e6, 0x7dbd, 0x001a, 0xa9bf, 0xe2ea, 0xe0ea, 0xe1ea, 0xe4ed, 0xe3ed, 0xe2ed, 0x001a, 0x001a, 0x001a, 0xbbf2, 0x001a, 0xb9c3, 0xbcf2, 0x44f7, 0xf9c5, 0xbaf8, 0xcfa6, 0xcbaa, 0xcaaa, 0x4fd0, 0xfcac, 0x001a, 0x001a, 0x4ed0, 0x62d3, 0x001a, 0xccaf, 0xf2d6, 0x61d3, 0x001a, 0x001a, 0x001a, 0xdcb2, 0xf5d6, 0xf3d6, 0xf4d6, 0xdbb2, 0x001a, 0x42db, 0x43db, 0x41db, 0x001a, 0x73b8, 0x6ddf, 0x6cdf, 0x6edf, 0x72b8, 0x71b8, 0x001a, 0x001a, 0xf2e6, 0xf4e6, 0x001a, 0x7ebd, 0xf3e6, 0xe3ea, 0xaabf, 0x79f0, 0x001a, 0x78f0, 0xbbc3, 0xbdf2, 0xbdc3, 0xbcc3, 0xb0f4, 0xeef5, 0xf3c4, 0xd0a6, 0x50d0, 0xfdac, 0x65d3, 0xceaf, 0x64d3, 0x63d3, 0x001a, 0xcdaf, 0x001a, 0xfbd6, 0x001a, 0xfdd6, 0xf6d6, 0xf7d6, 0xddb2, 0xf8d6, 0xdeb2, 0xfcd6, 0xf9d6, 0xfad6, 0xdfb2, 0x001a, 0xbeb5, 0xbfb5, 0x001a, 0x44db, 0x001a, 0x001a, 0x001a, 0x6fdf, 0x70df, 0x001a, 0x7ee3, 0x43bb, 0x41bb, 0x42bb, 0x7be3, 0x7ce3, 0x001a, 0x7de3, 0xf9e6, 0x001a, 0xfae6, 0xa1bd, 0xf7e6, 0xf6e6, 0xf8e6, 0xf5e6, 0xadbf, 0xe4ea, 0xabbf, 0xacbf, 0xe6ed, 0x6bc1, 0xe5ed, 0xa8ef, 0x001a, 0x7af0, 0x7bf0, 0xbcc2, 0x001a, 0xbdc2, 0x6cc1, 0xbef2, 0xbff2, 0xb1f4, 0xa3c4, 0xd1a6, 0x001a, 0xd2a6, 0xfeac, 0xccaa, 0xcfaf, 0x51d0, 0x001a, 0x001a, 0x001a, 0xc0b5, 0xd3a6, 0x41ad, 0x52d0, 0x53d0, 0x40ad, 0x42ad, 0xd4a6, 0x001a, 0x54d0, 0xd1af, 0x66d3, 0xd3af, 0xd0af, 0xd2af, 0x001a, 0x41d7, 0xe0b2, 0x001a, 0x40d7, 0xfed6, 0x001a, 0x71df, 0x001a, 0x001a, 0xa1e3, 0x001a, 0xa2bd, 0x001a, 0xaebf, 0xe6ea, 0xe5ea, 0x001a, 0xe7ed, 0x001a, 0x001a, 0x001a, 0xeff5, 0x001a, 0x001a, 0xd5a6, 0x73cb, 0xaacd, 0x43ad, 0x55d0, 0x001a, 0x68d3, 0x001a, 0x001a, 0x001a, 0xd4af, 0x67d3, 0xd5af, 0x001a, 0x001a, 0x001a, 0x43d7, 0x001a, 0x001a, 0xe2b2, 0x42d7, 0x44d7, 0x001a, 0xe1b2, 0x001a, 0x001a, 0x001a, 0x001a, 0x46db, 0x47db, 0x45db, 0xc1b5, 0x001a, 0x001a, 0x001a, 0x74b8, 0x001a, 0x75b8, 0x001a, 0x45bb, 0x001a, 0xa3e3, 0xa2e3, 0x44bb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbe6, 0x001a, 0x001a, 0xfce6, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7ea, 0x001a, 0x001a, 0x70c1, 0x6fc1, 0x6dc1, 0x6ec1, 0x71c1, 0x001a, 0x7cf0, 0xbfc2, 0xbec2, 0xc0f2, 0xb2f4, 0x001a, 0x001a, 0x001a, 0xa5c5, 0xa4c5, 0xd6a6, 0x001a, 0x001a, 0xfbd1, 0x001a, 0x77b8, 0xc2b5, 0x76b8, 0x46bb, 0x001a, 0xd7a6, 0xa9c9, 0xd8a6, 0xd9a6, 0x001a, 0x001a, 0xabcd, 0x76cb, 0x001a, 0x77cb, 0x77a8, 0x001a, 0x74cb, 0x76a8, 0x001a, 0x79a8, 0x75cb, 0x7ba8, 0x7aa8, 0x78cb, 0x78a8, 0x001a, 0x001a, 0x001a, 0xd1aa, 0xcfaa, 0xadcd, 0x001a, 0xceaa, 0x001a, 0x001a, 0x001a, 0xd3aa, 0xd5aa, 0xd2aa, 0x001a, 0xb0cd, 0xaccd, 0xd6aa, 0x001a, 0xd0aa, 0x7ca8, 0x001a, 0xd4aa, 0xafcd, 0x001a, 0x001a, 0xaecd, 0x001a, 0xcdaa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5bd0, 0x47ad, 0x48ad, 0x5dd0, 0x001a, 0x57d0, 0x5ad0, 0x63d0, 0x61d0, 0x001a, 0x49ad, 0x67d0, 0x4cad, 0x64d0, 0x5cd0, 0x59d0, 0x001a, 0x001a, 0x49db, 0x62d0, 0x44ad, 0x65d0, 0x56d0, 0x5fd0, 0x46ad, 0x4bad, 0x60d0, 0x4fad, 0x4dad, 0x001a, 0x58d0, 0x4aad, 0x001a, 0x5ed0, 0x4ead, 0x45ad, 0x66d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaaf, 0x001a, 0xe3af, 0xd8af, 0xd6af, 0x6ad3, 0xdeaf, 0xdbaf, 0x6cd3, 0x001a, 0x001a, 0xddaf, 0x6bd3, 0x69d3, 0x6ed3, 0xe2af, 0xe0af, 0x48db, 0x001a, 0x6fd3, 0x6dd3, 0xd7af, 0x001a, 0x001a, 0xd9af, 0xdcaf, 0x001a, 0xdfaf, 0x001a, 0xe1af, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ed7, 0xe4b2, 0x001a, 0x45d7, 0x47d7, 0x001a, 0x48d7, 0x001a, 0x50d7, 0x4cd7, 0x4ad7, 0x001a, 0x4dd7, 0x51d7, 0xe5b2, 0xe9b2, 0x46d7, 0x001a, 0x4fd7, 0x001a, 0xe7b2, 0x001a, 0xe6b2, 0x4bd7, 0x49d7, 0x001a, 0xe3b2, 0xe8b2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8b5, 0x51db, 0x001a, 0x001a, 0x4fdb, 0xcab5, 0x001a, 0x001a, 0x001a, 0x001a, 0x4adb, 0xa1df, 0x001a, 0xc9b5, 0x4edb, 0x001a, 0x001a, 0x4bdb, 0xc5b5, 0xcbb5, 0x50db, 0xc7b5, 0x4ddb, 0x47bb, 0xc6b5, 0x4cdb, 0xccb5, 0xc4b5, 0xc3b5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x77df, 0x75df, 0x001a, 0x7bdf, 0x001a, 0x73df, 0xa2df, 0x78df, 0x001a, 0x72df, 0x7bb8, 0xa3b8, 0x7ddf, 0x001a, 0x76df, 0x001a, 0x7eb8, 0x001a, 0x001a, 0x7cb8, 0x7edf, 0x79b8, 0x78b8, 0x79df, 0x7db8, 0xcdb5, 0x001a, 0x7cdf, 0x74df, 0x7ab8, 0xa1b8, 0xa2b8, 0x001a, 0x001a, 0x001a, 0x001a, 0x4cbb, 0x48bb, 0x001a, 0x4dbb, 0xa6e3, 0x001a, 0x001a, 0xa5e3, 0xa7e3, 0x4abb, 0xa4e3, 0x4bbb, 0xaae3, 0xa9e3, 0xa8e3, 0x001a, 0x49bb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41e7, 0x001a, 0x44e7, 0xa8bd, 0x43e7, 0xa7bd, 0xa3bd, 0xa4bd, 0xa5bd, 0x40e7, 0xfee6, 0xa6bd, 0x001a, 0x42e7, 0xfde6, 0x001a, 0x001a, 0xe9ea, 0xf3ea, 0xb1bf, 0xb0bf, 0x001a, 0xedea, 0xefea, 0x001a, 0xeaea, 0x001a, 0xeeea, 0xe8ea, 0xf1ea, 0xafbf, 0xf0ea, 0xecea, 0x001a, 0xf2ea, 0x001a, 0xebea, 0x74c1, 0xe8ed, 0xeeed, 0x78c1, 0x7ac1, 0x77c1, 0x76c1, 0x001a, 0x75c1, 0x73c1, 0xe9ed, 0xeced, 0x72c1, 0xeded, 0x001a, 0x79c1, 0xebed, 0x001a, 0xeaed, 0xc0c2, 0x001a, 0xc1c2, 0xa1f0, 0x7df0, 0x7ef0, 0x001a, 0x001a, 0xc2f2, 0x001a, 0xc1f2, 0xbec3, 0xb4f4, 0xa4c4, 0xb3f4, 0x001a, 0xf0f5, 0x45f7, 0xa6c5, 0x43f9, 0x44f9, 0xd8c5, 0xdaa6, 0x001a, 0xd7aa, 0x52db, 0x4ebb, 0x7bc1, 0xefed, 0xdba6, 0x001a, 0xe5af, 0xe4af, 0x53db, 0x001a, 0x001a, 0x001a, 0xf4ea, 0xdca6, 0x50ad, 0x001a, 0x001a, 0x54db, 0x55db, 0x56db, 0x4fbb, 0xb2bf, 0xdda6, 0x001a, 0xd8aa, 0x68d0, 0xe6af, 0x70d3, 0xeab2, 0x001a, 0x57db, 0xa4b8, 0x001a, 0x50bb, 0xb3bf, 0x7cc1, 0xc2c2, 0xb5f4, 0xdea6, 0xd9aa, 0x001a, 0x001a, 0xe7af, 0x52d7, 0xceb5, 0x001a, 0x51bb, 0xabe3, 0x45e7, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfa6, 0xcfb5, 0xa3df, 0x52bb, 0xe0a6, 0xb1cd, 0x69d0, 0x51ad, 0x001a, 0x001a, 0x72d3, 0x001a, 0x001a, 0xeaaf, 0x001a, 0xe8af, 0xe9af, 0xebaf, 0x001a, 0x001a, 0x71d3, 0x001a, 0x001a, 0x57d7, 0x54d7, 0x56d7, 0xebb2, 0xedb2, 0xecb2, 0x53d7, 0xeeb2, 0x55d7, 0x001a, 0x58db, 0x59db, 0x001a, 0x5adb, 0xa6df, 0x001a, 0xa7df, 0x001a, 0xa5df, 0xa8df, 0x001a, 0xa5b8, 0x001a, 0xa4df, 0x001a, 0x53bb, 0x001a, 0x001a, 0x4ae7, 0x46e7, 0x49e7, 0x4be7, 0x48e7, 0x47e7, 0x001a, 0xf5ea, 0xf6ea, 0xf7ea, 0xb4bf, 0xb5bf, 0xf1ed, 0xf0ed, 0xf2ed, 0x001a, 0xa3f0, 0xa2f0, 0x001a, 0xc4f2, 0x001a, 0xc5f2, 0xc3f2, 0x001a, 0xa5c4, 0x001a, 0xb6f4, 0xb7f4, 0x001a, 0x46f7, 0xeff7, 0xbbf8, 0xe1a6, 0x7da8, 0x001a, 0x7dc1, 0xe2a6, 0x001a, 0x58d7, 0x5bdb, 0x001a, 0x41c6, 0x4aca, 0x001a, 0x001a, 0x001a, 0x4bca, 0x4dca, 0xe3a6, 0x4eca, 0x4cca, 0x001a, 0x001a, 0xa2cb, 0xa3cb, 0x7bcb, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1cb, 0xa1a8, 0x001a, 0xa2a8, 0x7ccb, 0x7acb, 0x79cb, 0x7dcb, 0x7ea8, 0x7ecb, 0x6ad0, 0x001a, 0x001a, 0x001a, 0xb6cd, 0xdcaa, 0xb5cd, 0xb7cd, 0x001a, 0xdbaa, 0xbccd, 0xdfaa, 0xb2cd, 0xc0cd, 0xc6cd, 0xe6aa, 0xc3cd, 0xe3aa, 0x001a, 0xb9cd, 0xbfcd, 0xc1cd, 0x001a, 0xb4cd, 0xe2aa, 0xddaa, 0xbacd, 0xe4aa, 0xe7aa, 0xe1aa, 0x001a, 0xdaaa, 0xbecd, 0xb8cd, 0xc5cd, 0xe9aa, 0xe5aa, 0xe0aa, 0xbdcd, 0xecaf, 0xbbcd, 0xdeaa, 0xe8aa, 0x001a, 0xb3cd, 0x001a, 0xc2cd, 0xc4cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62ad, 0x5cad, 0x64ad, 0x61ad, 0x71d0, 0x74d0, 0x5dad, 0x001a, 0x6bd0, 0x001a, 0x56ad, 0x60ad, 0x001a, 0x63ad, 0x65ad, 0xa2d0, 0x77d0, 0x001a, 0x55ad, 0xa1d0, 0x59ad, 0x57ad, 0x52ad, 0x6fd0, 0x001a, 0x7ed0, 0x73d0, 0x76d0, 0xa5d0, 0x001a, 0x66ad, 0x7dd0, 0x5ead, 0x78d0, 0xa4d0, 0x75d0, 0x79d0, 0x7cd0, 0x001a, 0x001a, 0x6dd0, 0xa3d0, 0x7bd0, 0x001a, 0x001a, 0x6cd0, 0x001a, 0x70d0, 0x5fad, 0x5aad, 0x53ad, 0x58ad, 0x54ad, 0x67ad, 0x6ed0, 0xa5d3, 0x5bad, 0x001a, 0x001a, 0x7ad0, 0x41ce, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8d3, 0xfaaf, 0x001a, 0x76d3, 0x001a, 0xa3d3, 0x7dd3, 0x001a, 0xb2d3, 0x001a, 0xaad3, 0x001a, 0x7ed3, 0x001a, 0xa9d3, 0x78d3, 0x7cd3, 0xb5d3, 0xfdaf, 0xadd3, 0xa4d3, 0xedaf, 0xb3d3, 0x74d3, 0x001a, 0xacd3, 0x001a, 0xfcaf, 0xf7af, 0x73d3, 0xf5af, 0xf4af, 0xf9af, 0xabd3, 0xf1af, 0xf8af, 0x72d0, 0x5cdb, 0xa6d3, 0x001a, 0x001a, 0x7ad3, 0xfbaf, 0x7bd3, 0xa1d3, 0xfeaf, 0x75d3, 0xafd3, 0x001a, 0xaed3, 0xb6d3, 0xf3af, 0xf0af, 0xb4d3, 0xb0d3, 0xa7d3, 0xa2d3, 0xf6af, 0xf2af, 0x77d3, 0xeeaf, 0xb1d3, 0xefaf, 0x001a, 0x79d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ed7, 0x60d7, 0x65d7, 0x79d7, 0xfcb2, 0xf2b2, 0x001a, 0x5dd7, 0xfdb2, 0xfeb2, 0x68d7, 0x6fd7, 0x75d7, 0x001a, 0x62d7, 0x001a, 0x69d7, 0x001a, 0x001a, 0x40b3, 0x77d7, 0x72d7, 0xfab2, 0xf8b2, 0x6ed7, 0x6ad7, 0x5cd7, 0xefb2, 0x61d7, 0x59d7, 0x001a, 0xf7b2, 0xf9b2, 0x66d7, 0x63d7, 0xf4b2, 0x73d7, 0xf1b2, 0x64d7, 0x7ad7, 0x6cd7, 0x001a, 0x6bd7, 0xf0b2, 0x001a, 0xfbb2, 0x001a, 0xf3b2, 0x5ad7, 0x5fd7, 0x70d7, 0x76d7, 0x41b3, 0x5bd7, 0x67d7, 0x6dd7, 0xf6b2, 0x001a, 0x001a, 0x78d7, 0x71d7, 0x74d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5b2, 0x001a, 0x6cdb, 0x60db, 0xd7b5, 0x7ddb, 0xa7db, 0xaadb, 0xd5b5, 0x68db, 0xa3db, 0x69db, 0x77db, 0xe2b5, 0x73db, 0xdfb5, 0x001a, 0x74db, 0x5ddb, 0x001a, 0xa4db, 0x001a, 0x001a, 0xe8b5, 0xa1db, 0x75db, 0xacdb, 0x70db, 0xc8df, 0x001a, 0xafdb, 0xe6b5, 0x6edb, 0x7adb, 0xe9b5, 0xd4b5, 0x72db, 0xaddb, 0x6bdb, 0x64db, 0x6fdb, 0x001a, 0x63db, 0x61db, 0xd0b5, 0xa5db, 0x6adb, 0xa8db, 0x001a, 0xa9db, 0xd8b5, 0xddb5, 0xd9b5, 0xe1b5, 0x7edb, 0xdab5, 0x76db, 0x66db, 0x001a, 0xd2b5, 0x5edb, 0xa2db, 0xabdb, 0x65db, 0xe0b5, 0xb0db, 0x71db, 0x001a, 0x6ddb, 0x001a, 0xd1b5, 0xe5b5, 0x001a, 0x7cdb, 0xe7b5, 0x001a, 0x78db, 0xdcb5, 0xd6b5, 0xdeb5, 0xd3b5, 0xe4b5, 0x79db, 0x67db, 0x7bdb, 0x62db, 0xa6db, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaedb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5fdb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7df, 0x001a, 0xdddf, 0x55b8, 0xccdf, 0x001a, 0xcadf, 0xb5df, 0xa9b8, 0xc5df, 0xd9df, 0xc1df, 0xb1b8, 0xd8df, 0xbfdf, 0xe3b5, 0xcfdf, 0xc0df, 0xd6df, 0xb0b8, 0xa8b8, 0x001a, 0xaadf, 0xb2df, 0x001a, 0xcbdf, 0xc3df, 0xdcdf, 0xc6df, 0xb6b8, 0xd7df, 0x001a, 0xadb8, 0x001a, 0xc9df, 0xd1df, 0xb6df, 0xd0df, 0x001a, 0xe1df, 0xb1df, 0xd2df, 0x001a, 0xdfdf, 0x001a, 0xabdf, 0xdbb5, 0x001a, 0xb9df, 0xb8df, 0xafb8, 0x001a, 0xbcdf, 0xbedf, 0xcddf, 0xdedf, 0xb2b8, 0x001a, 0xb3b8, 0x001a, 0xb0df, 0xabb8, 0xb4df, 0xdadf, 0xb4b8, 0x001a, 0xacb8, 0xaeb8, 0xb5b8, 0xe0df, 0xd3df, 0xcedf, 0x001a, 0x001a, 0xbbdf, 0xbadf, 0xaab8, 0xacdf, 0xa7b8, 0xc4df, 0xaddf, 0xc2df, 0x001a, 0x001a, 0xb7df, 0xdbdf, 0x001a, 0x001a, 0x001a, 0xa6b8, 0x001a, 0x001a, 0x001a, 0xb3df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafdf, 0xd5df, 0xaedf, 0x60bb, 0xd3e3, 0x001a, 0x001a, 0xc2e3, 0x001a, 0x001a, 0xace3, 0xcae3, 0x58bb, 0xbbe3, 0xc5e3, 0x5bbb, 0xbee3, 0x59bb, 0xafe3, 0xcde3, 0xaee3, 0xc1e3, 0x001a, 0xade3, 0x001a, 0x001a, 0xbfe3, 0xc8e3, 0xc6e3, 0xbae3, 0xb5e3, 0xb3e3, 0x001a, 0xb4e3, 0xc7e3, 0xd2e3, 0xbce3, 0x5abb, 0x001a, 0xb7e3, 0x001a, 0xcbe3, 0x001a, 0x5dbb, 0xb6e3, 0xb0e3, 0xc0e3, 0x61bb, 0x001a, 0x001a, 0x55bb, 0x5ebb, 0xb8e3, 0xb2e3, 0x001a, 0x57bb, 0xd4df, 0x56bb, 0xc3e3, 0x001a, 0x54bb, 0x63bb, 0x5cbb, 0xc4e3, 0xb9e3, 0xb1e3, 0xcce3, 0xbde3, 0x62bb, 0xd0e3, 0x5fbb, 0xcfe3, 0x001a, 0xc9e3, 0xcee3, 0x001a, 0x001a, 0x001a, 0xd1e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73e7, 0x74e7, 0x67e7, 0x66e7, 0x62e7, 0xb4bd, 0x001a, 0xacbd, 0x76e7, 0x75e7, 0xa9df, 0x5fe7, 0x63e7, 0x5de7, 0x001a, 0x70e7, 0x61e7, 0x001a, 0x77e7, 0x5ae7, 0x58e7, 0x64e7, 0x6ee7, 0x69e7, 0xb6bd, 0x4fe7, 0x001a, 0x6de7, 0x001a, 0x001a, 0x001a, 0xb7bd, 0xbddf, 0x5be7, 0x52e7, 0x55e7, 0x7be7, 0x5ce7, 0x53e7, 0x51e7, 0x4ee7, 0x001a, 0xb0bd, 0x65e7, 0xafbd, 0xb3bd, 0x60e7, 0x68e7, 0xa9bd, 0x78e7, 0x7ce7, 0xabbd, 0x001a, 0x57e7, 0x6be7, 0x6fe7, 0x54e7, 0x79e7, 0xb2bd, 0x001a, 0xb1bd, 0x4ce7, 0xb5bd, 0x72e7, 0x56e7, 0x6ae7, 0x50e7, 0x5ee7, 0x59e7, 0xadbd, 0xaebd, 0x6ce7, 0x7de7, 0x7ae7, 0x71e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4de7, 0x001a, 0xaabd, 0x49eb, 0x001a, 0x40eb, 0x43eb, 0x001a, 0xbbbf, 0x45eb, 0xf9ea, 0x41eb, 0x47eb, 0xb8bf, 0xbcbf, 0xb6bf, 0x001a, 0x001a, 0xfbea, 0x4ceb, 0x001a, 0x001a, 0x46eb, 0x001a, 0xfcea, 0x55eb, 0x4feb, 0xf8ea, 0x46ee, 0xfeea, 0xb7bf, 0x001a, 0x4aeb, 0x001a, 0x54eb, 0xbfbf, 0x001a, 0x51eb, 0xfdea, 0x44eb, 0x48eb, 0x42eb, 0x56eb, 0x53eb, 0x50eb, 0xb9bf, 0xbabf, 0xbebf, 0xfaea, 0x57eb, 0xbdbf, 0x4deb, 0x001a, 0x001a, 0x4beb, 0x001a, 0x001a, 0x001a, 0x4eeb, 0x53ee, 0x40ee, 0x45ee, 0x52ee, 0x44ee, 0xfbed, 0x41ee, 0x001a, 0xa2c1, 0x001a, 0xf4ed, 0x4dee, 0x4fee, 0xf3ed, 0xa1c1, 0x51ee, 0x49ee, 0xa8c1, 0x50ee, 0x42ee, 0xaac1, 0xf9ed, 0x52eb, 0x4aee, 0x47ee, 0xf5ed, 0x55ee, 0xa4c1, 0x001a, 0x001a, 0xa5c1, 0xf7ed, 0x48ee, 0x001a, 0x54ee, 0x4bee, 0xfded, 0xa7c1, 0xa3c1, 0x4cee, 0xfeed, 0x56ee, 0xf8ed, 0x43ee, 0x4eee, 0xfaed, 0xfced, 0x001a, 0xcbc2, 0xf6ed, 0xa9c1, 0xc4c2, 0x7ec1, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6c1, 0xc8c2, 0xb3f0, 0x001a, 0xa9f0, 0xa4f0, 0xaaf0, 0xb4f0, 0xb8f0, 0xb7f0, 0xcac2, 0xc9c2, 0x001a, 0x001a, 0xabf0, 0xb9f0, 0xaef0, 0xa6f0, 0x001a, 0xa8f0, 0xa7f0, 0xadf0, 0xb2f0, 0xa5f0, 0xacf0, 0xb1f0, 0xc7c2, 0x001a, 0xaff0, 0x001a, 0xc5c2, 0xb0f0, 0xc3c2, 0xc6c2, 0xd5f2, 0xb5f0, 0x001a, 0x001a, 0xc2c3, 0x001a, 0xcdf2, 0xd1f2, 0xc9f2, 0xccf2, 0x001a, 0xd4f2, 0xc0c3, 0xd9f2, 0xd2f2, 0x001a, 0xcaf2, 0xdaf2, 0xd3f2, 0xc3c3, 0xc4c3, 0xd7f2, 0x001a, 0xcbf2, 0xbfc3, 0xc1c3, 0xc6f2, 0xcef2, 0xc8f2, 0x001a, 0xd8f2, 0xd6f2, 0xc7f2, 0xcff2, 0x001a, 0x001a, 0x001a, 0xbef4, 0xc5c3, 0xd0f2, 0xa7c4, 0xa9c4, 0xa6c4, 0x001a, 0xc3f4, 0xbbf4, 0xb9f4, 0xbdf4, 0xbaf4, 0x001a, 0x001a, 0xbff4, 0xc1f4, 0xaac4, 0xacc4, 0x001a, 0xc0f4, 0xadc4, 0xabc4, 0xc2f4, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8c4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4c4, 0xf1f5, 0xf7f5, 0xf6c4, 0xbcf4, 0xf6f5, 0x001a, 0xfdf5, 0xf4f5, 0xfbf5, 0xfaf5, 0xb8f4, 0xf5f5, 0xb6f0, 0xfef5, 0xf3f5, 0xf8f5, 0x001a, 0xfcf5, 0xf2f5, 0x001a, 0x4af7, 0xf5c4, 0xf9f5, 0x001a, 0x001a, 0xf4f7, 0x4bf7, 0x49f7, 0x47f7, 0x48f7, 0x4cf7, 0x001a, 0xd9c5, 0xf2f7, 0xf0f7, 0xf5f7, 0xf3f7, 0x001a, 0xf6f7, 0xdac5, 0xf1f7, 0x001a, 0x001a, 0xbcf8, 0x001a, 0x001a, 0x45f9, 0x46f9, 0x47f9, 0x001a, 0x001a, 0xc7f9, 0xbdf9, 0x4fca, 0xeaaa, 0x001a, 0x68ad, 0x001a, 0xb8d3, 0xb7d3, 0x40b0, 0x42b3, 0x7cd7, 0x001a, 0x001a, 0x7bd7, 0x001a, 0xeab5, 0xb8b8, 0x001a, 0xb7b8, 0xb9b8, 0x001a, 0xd4e3, 0x7ee7, 0x58eb, 0x5aeb, 0x59eb, 0x001a, 0xabc1, 0x57ee, 0xbaf0, 0xa5f9, 0xe4a6, 0x001a, 0xc9cd, 0xcacd, 0xc8cd, 0xc7cd, 0xebaa, 0x001a, 0xa9d0, 0xa7d0, 0x001a, 0x001a, 0xa6d0, 0x001a, 0x69ad, 0x6bad, 0x6aad, 0xa8d0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4d3, 0xc1d3, 0xbfd3, 0x001a, 0x001a, 0x41b0, 0xc2d3, 0x46b0, 0xbcd3, 0xcbd3, 0x001a, 0xcdd3, 0xbdd3, 0x001a, 0x43b0, 0xced3, 0xc9d3, 0xbbd3, 0xc0d3, 0xcad3, 0xc6d3, 0xc3d3, 0x001a, 0x48b0, 0xccd3, 0xbed3, 0x001a, 0x001a, 0xc7d3, 0xb9d3, 0x47b0, 0x44b0, 0xc5d3, 0x001a, 0xc8d3, 0xbad3, 0x45b0, 0x42b0, 0x001a, 0x001a, 0x001a, 0x001a, 0x4cb3, 0xa5d7, 0x4bb3, 0x001a, 0xa8d7, 0xabd7, 0x48b3, 0x46b3, 0x7ed7, 0xa9d7, 0xa7d7, 0xa4d7, 0xacd7, 0xadd7, 0xafd7, 0xb0d7, 0x7dd7, 0x45b3, 0xa2d7, 0xa1d7, 0xaed7, 0x47b3, 0xa3d7, 0x49b3, 0x44b3, 0xa6d7, 0x4db3, 0x001a, 0x4ab3, 0xaad7, 0x001a, 0x001a, 0x001a, 0xf1b5, 0xbfdb, 0x001a, 0xb4db, 0xeeb5, 0x001a, 0xe7df, 0xbddb, 0xb1db, 0xecb5, 0xb6db, 0xefb5, 0xbadb, 0xb8db, 0xf2b5, 0xebb5, 0x001a, 0x001a, 0xb2db, 0xb5db, 0xf0b5, 0x001a, 0xb3db, 0x001a, 0xbedb, 0xbcdb, 0xb7db, 0xb9db, 0xbbdb, 0xedb5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8df, 0xeedf, 0xe4df, 0xeadf, 0xbab8, 0xe6df, 0xc0b8, 0x001a, 0x001a, 0xbfb8, 0x001a, 0xbeb8, 0xeddf, 0xc1b8, 0xc2b8, 0xe3df, 0xf0df, 0xc3b8, 0xbdb8, 0xbcb8, 0xecdf, 0xc4b8, 0xe2df, 0xe5df, 0xefdf, 0xebdf, 0x001a, 0x001a, 0xf4e3, 0xe9e3, 0xbbb8, 0x001a, 0x001a, 0x001a, 0x001a, 0x6abb, 0xdde3, 0xf2e3, 0xdee3, 0x65bb, 0x001a, 0xdbe3, 0x001a, 0xe4e3, 0xdce3, 0x67bb, 0xd6e3, 0xf1e3, 0x68bb, 0xeee3, 0xefe3, 0xd7e3, 0x6dbb, 0xe6e3, 0x001a, 0xe0e3, 0xe7e3, 0xdae3, 0x001a, 0xf3e3, 0xebe3, 0xe5e3, 0xd5e3, 0x69bb, 0xece3, 0x001a, 0x6cbb, 0xf0e3, 0x001a, 0xeae3, 0x66bb, 0xe8e3, 0x001a, 0xe2e3, 0x64bb, 0xd9e3, 0xe1e3, 0xede3, 0xdfe3, 0x001a, 0x001a, 0xe3e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1bd, 0xe9df, 0xb2e7, 0xbbe7, 0xb1e7, 0xade7, 0xaae7, 0xc2bd, 0xa8e7, 0x6bbb, 0xa1e7, 0xc0bd, 0xa7e7, 0xbfbd, 0xace7, 0xa9e7, 0xb9e7, 0xb4e7, 0xaee7, 0xb3e7, 0xbbbd, 0xabe7, 0xbee7, 0xa2e7, 0xa3e7, 0xbae7, 0xbcbd, 0xbfe7, 0xbebd, 0xc0e7, 0xb0e7, 0xd8e3, 0xb6e7, 0xafe7, 0xb8e7, 0xb5e7, 0x001a, 0x001a, 0x001a, 0xa6e7, 0xb9bd, 0xbde7, 0xbabd, 0xa4e7, 0xbdbd, 0x64eb, 0xb7e7, 0xbce7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x61eb, 0xb8bd, 0xc0bf, 0x6beb, 0x67eb, 0x001a, 0x65eb, 0x60eb, 0x6feb, 0x001a, 0x001a, 0x001a, 0xc4bf, 0x001a, 0x5ceb, 0x68eb, 0x69eb, 0x5feb, 0x5eeb, 0x6ceb, 0x001a, 0x62eb, 0x5deb, 0x63eb, 0x001a, 0x6eeb, 0x5beb, 0x6deb, 0x6aeb, 0xc2bf, 0xc1bf, 0x001a, 0x001a, 0xc3bf, 0x66eb, 0xcbf0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x59ee, 0xb1c1, 0x5dee, 0x5aee, 0x61ee, 0x67ee, 0x5cee, 0x001a, 0x70ee, 0xaec1, 0x6aee, 0x5fee, 0x6bee, 0x66ee, 0x6dee, 0x5eee, 0xb3c1, 0xb2c1, 0x60ee, 0x6eee, 0x58ee, 0x6cee, 0xacc1, 0x001a, 0x64ee, 0x63ee, 0x68ee, 0x5bee, 0xb0c1, 0x001a, 0xb4c1, 0x62ee, 0x69ee, 0xb5c1, 0x65ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xadc1, 0xafc1, 0xc7f0, 0xc5f0, 0x001a, 0x001a, 0xccf0, 0xc9f0, 0xcdf0, 0x001a, 0xbef0, 0xc6f0, 0xd1f0, 0x6fee, 0xc2f0, 0xcfc2, 0xa5e7, 0xbdf0, 0xcaf0, 0xc4f0, 0xc1f0, 0xbcf0, 0xbbf0, 0xd0f0, 0x001a, 0xc0f0, 0xbff0, 0xcdc2, 0xc8f0, 0x001a, 0xccc2, 0x001a, 0x001a, 0xcec2, 0xc3f0, 0xcff0, 0x001a, 0xdef2, 0xdff2, 0x001a, 0xc9c3, 0xdcf2, 0xc6c3, 0xe4f2, 0x001a, 0xcac3, 0xe6f2, 0xdbf2, 0xcef0, 0xe8f2, 0xddf2, 0x001a, 0xc7c3, 0xe3f2, 0x001a, 0xe5f2, 0xe0f2, 0xe7f2, 0xe2f2, 0xe1f2, 0xc8c3, 0x001a, 0x001a, 0xc5f4, 0xc6f4, 0x001a, 0xc8f4, 0xaec4, 0xafc4, 0xc9f4, 0xc7f4, 0x001a, 0xc4f4, 0x001a, 0x42f6, 0x45f6, 0x41f6, 0x001a, 0xfac4, 0x43f6, 0xf9c4, 0xf8c4, 0xf7c4, 0x44f6, 0x51f7, 0x4ff7, 0x001a, 0x4ef7, 0x40f6, 0x50f7, 0x46f6, 0x4df7, 0x001a, 0xf9f7, 0xd7f7, 0xf7f7, 0xdbc5, 0xf8f7, 0xfaf7, 0x001a, 0xbff8, 0xfac5, 0xbef8, 0xbdf8, 0xfbc5, 0x001a, 0x5ac6, 0x6ef9, 0xa7f9, 0xa6f9, 0xa8f9, 0xe5a6, 0xaad0, 0x001a, 0xcfd3, 0xd0d3, 0x001a, 0x001a, 0x001a, 0xc0db, 0x001a, 0x47f6, 0xc0f8, 0xe6a6, 0x6cad, 0xabd0, 0x001a, 0x001a, 0x001a, 0xb1d7, 0x4eb3, 0x001a, 0xc2db, 0xc1db, 0xf3b5, 0x001a, 0xc5b8, 0xc1e7, 0xc3bd, 0x001a, 0xc4bd, 0x001a, 0x001a, 0x001a, 0xc5bf, 0xfcc5, 0xe7a6, 0x001a, 0x001a, 0x001a, 0xacd0, 0xedaa, 0xaed0, 0xadd0, 0x6dad, 0x001a, 0xd1d3, 0x001a, 0xd8d3, 0x49b0, 0xd6d3, 0xd4d3, 0x001a, 0xdbd3, 0xd2d3, 0xd3d3, 0x4ab0, 0x001a, 0x4eb0, 0x001a, 0x001a, 0xdcd3, 0x4db0, 0xdad3, 0xd7d3, 0xd5d3, 0x4bb0, 0x4cb0, 0xd9d3, 0x001a, 0x001a, 0x001a, 0x001a, 0x50b3, 0xb2d7, 0x001a, 0x55b3, 0xc2d7, 0x54b3, 0xc4d7, 0x001a, 0x001a, 0xb8d7, 0x52b3, 0xc3d7, 0x001a, 0xb3d7, 0x53b3, 0xbfd7, 0xbbd7, 0xbdd7, 0xb7d7, 0xbed7, 0x001a, 0x001a, 0x4fb3, 0xbad7, 0x001a, 0xb9d7, 0xb5d7, 0x001a, 0xc0d7, 0x001a, 0x001a, 0xbcd7, 0xb4d7, 0x001a, 0xb6d7, 0x51b3, 0xc1d7, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6b5, 0xcddb, 0x001a, 0x001a, 0x001a, 0xc9db, 0xcbdb, 0xc6db, 0xc5db, 0xc3db, 0x001a, 0xcadb, 0xccdb, 0xc8db, 0x001a, 0xc7db, 0xf4b5, 0xf5b5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfdb, 0xcdb8, 0xf2df, 0xf8df, 0xf3df, 0xf4df, 0xd8f9, 0xf9df, 0x001a, 0xcfb8, 0x001a, 0xc7b8, 0xceb8, 0xf1df, 0xc4db, 0xcab8, 0xc8b8, 0xf7df, 0xf6df, 0xc9b8, 0xcbb8, 0xf5df, 0xc6b8, 0x001a, 0xccb8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6e3, 0x74bb, 0x001a, 0x001a, 0x42e4, 0x41e4, 0x001a, 0xfbe3, 0x76bb, 0x40e4, 0xf7e3, 0xf8e3, 0x6ebb, 0x70bb, 0x001a, 0xfde3, 0xf5e3, 0x72bb, 0x71bb, 0xf9e3, 0xfee3, 0xfce3, 0x73bb, 0xfae3, 0x001a, 0x001a, 0xcedb, 0x6fbb, 0x001a, 0x001a, 0xc2e7, 0xc9e7, 0xc6bd, 0x001a, 0xcde7, 0xcabd, 0xc5e7, 0xc3e7, 0x001a, 0xcce7, 0x001a, 0xc5bd, 0xcbe7, 0xc7bd, 0xc8bd, 0xc4e7, 0xc9bd, 0xcae7, 0xc6e7, 0xc7e7, 0xc8e7, 0x75bb, 0x001a, 0x001a, 0x001a, 0x70eb, 0x7ceb, 0x001a, 0xcabf, 0x77eb, 0x79eb, 0x001a, 0xc8bf, 0x71eb, 0x75eb, 0x001a, 0x78eb, 0xc6bf, 0xc9bf, 0x7beb, 0x73eb, 0x74eb, 0x7aeb, 0x72eb, 0x76eb, 0xc7bf, 0x72ee, 0x001a, 0x71ee, 0xb7c1, 0x77ee, 0xb9c1, 0x001a, 0x001a, 0xb6c1, 0x73ee, 0xbac1, 0x74ee, 0x001a, 0x001a, 0x75ee, 0x78ee, 0x001a, 0xb8c1, 0x001a, 0xd6f0, 0x001a, 0x001a, 0xd9f0, 0x001a, 0xd3f0, 0xd5f0, 0x001a, 0x001a, 0xd4f0, 0xd7f0, 0xd8f0, 0x76ee, 0xd2f0, 0x001a, 0x001a, 0xcdc3, 0xecf2, 0xeff2, 0xf1f2, 0xeaf2, 0xebf2, 0xeef2, 0xf0f2, 0xcec3, 0xccc3, 0xcbc3, 0xedf2, 0xe9f2, 0xcaf4, 0xb0c4, 0x001a, 0xcbf4, 0x001a, 0x001a, 0x49f6, 0xfbc4, 0x4bf6, 0xfcc4, 0x48f6, 0x4af6, 0xa8c5, 0x001a, 0x52f7, 0xa7c5, 0xfdf7, 0xfcf7, 0x001a, 0xfbf7, 0x001a, 0x001a, 0x48f9, 0x49f9, 0x4bf9, 0x4af9, 0x001a, 0x50ca, 0xe8a6, 0x001a, 0x6ead, 0xc5d7, 0xf7b5, 0x001a, 0xfadf, 0xd0c2, 0x001a, 0xf2f2, 0x001a, 0x001a, 0xa3a8, 0x001a, 0x001a, 0x001a, 0x57b3, 0x001a, 0x001a, 0x001a, 0x56b3, 0x001a, 0xd0db, 0xf8b5, 0xd2db, 0xd1db, 0x001a, 0x001a, 0xfbdf, 0xd0b8, 0x43e4, 0x46e4, 0x45e4, 0x001a, 0x44e4, 0xcee7, 0xd0e7, 0xcfe7, 0x001a, 0xccbf, 0x001a, 0x001a, 0x001a, 0xcbbf, 0x001a, 0xbbc1, 0x79ee, 0x7bee, 0x7aee, 0x001a, 0x001a, 0xd1c2, 0x001a, 0x001a, 0x001a, 0xf4f2, 0xf3f2, 0x001a, 0xccf4, 0xb1c4, 0x001a, 0x001a, 0xfdc4, 0x54f7, 0x53f7, 0x5bc6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4a8, 0xafd0, 0x6fad, 0xc8d7, 0xc6d7, 0x001a, 0x001a, 0xc7d7, 0xd4db, 0xd5db, 0x43e0, 0xd3db, 0x001a, 0xfcdf, 0x41e0, 0x40e0, 0x42e0, 0xd1b8, 0xfedf, 0xfddf, 0x44e0, 0x001a, 0x49e4, 0x47e4, 0x001a, 0x48e4, 0xd3e7, 0xd1e7, 0x001a, 0x001a, 0xd2e7, 0x7deb, 0x7cee, 0x7dee, 0xd2c2, 0x001a, 0xf5f2, 0xcdf4, 0xb2c4, 0x001a, 0x4cf6, 0x55f7, 0xa9c5, 0x001a, 0xfef7, 0x4cf9, 0xa5a8, 0x001a, 0x71ad, 0x72ad, 0xb0d0, 0x001a, 0x001a, 0xb1d0, 0x70ad, 0x001a, 0x54b0, 0x001a, 0x52b0, 0x001a, 0x51b0, 0x58b0, 0x50b0, 0x59b0, 0xddd3, 0x56b0, 0x001a, 0x53b0, 0x57b0, 0x55b0, 0x4fb0, 0x001a, 0x001a, 0x5fb3, 0x001a, 0x59b3, 0xccd7, 0x5eb3, 0x001a, 0x001a, 0x60b3, 0x5ab3, 0x001a, 0x5bb3, 0x001a, 0xcad7, 0x001a, 0x001a, 0x58b3, 0x001a, 0xcbd7, 0x5db3, 0x001a, 0x001a, 0xc9d7, 0x5cb3, 0x001a, 0x001a, 0x44b6, 0x001a, 0x46b6, 0x001a, 0x001a, 0xd8db, 0x45b6, 0xf9b5, 0xfdb5, 0x001a, 0xe4b8, 0x49e0, 0xdadb, 0xfeb5, 0x001a, 0x001a, 0xdddb, 0xdedb, 0x43b6, 0x001a, 0xe0db, 0x001a, 0xe2db, 0x001a, 0xe3db, 0xd7db, 0xd6db, 0xe4db, 0x42b6, 0xe1db, 0xdfdb, 0x001a, 0x40b6, 0xfbb5, 0x47b6, 0xdbdb, 0xdcdb, 0xd9db, 0x001a, 0x41b6, 0x001a, 0x001a, 0xfcb5, 0x001a, 0xfab5, 0x48e0, 0xdfb8, 0xdab8, 0x001a, 0x001a, 0xd5b8, 0x001a, 0xe5b8, 0xd6b8, 0x001a, 0xd2b8, 0xe1b8, 0xdeb8, 0xe0b8, 0x001a, 0xd7b8, 0xdcb8, 0xd3b8, 0xd4b8, 0x50e0, 0x4de0, 0x45e0, 0x4ae0, 0x001a, 0xe2b8, 0x51e0, 0xe3b8, 0xd9b8, 0x001a, 0x001a, 0x47e0, 0x001a, 0x4fe0, 0x4be0, 0x4ee0, 0x4ce0, 0xddb8, 0x46e0, 0xd8b8, 0x001a, 0x001a, 0x001a, 0x4ce4, 0x78bb, 0x7bbb, 0x001a, 0x4ee4, 0x001a, 0xa5bb, 0x4de4, 0x7dbb, 0x001a, 0xcfbd, 0x4fe4, 0x001a, 0xa4bb, 0x4be4, 0xa6bb, 0x001a, 0x001a, 0x001a, 0x79bb, 0x001a, 0xdbb8, 0x7cbb, 0x001a, 0x7abb, 0x7ebb, 0xa2bb, 0x77bb, 0xa7bb, 0xa3bb, 0x001a, 0xa1bb, 0x4ae4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6bd, 0x001a, 0xd2bd, 0x001a, 0x001a, 0x001a, 0xd9bd, 0x001a, 0xd6e7, 0xdabd, 0xe2e7, 0xdbe7, 0xcbbd, 0xe3e7, 0xdde7, 0xd5bd, 0xdee7, 0x001a, 0xd4bd, 0xe1e7, 0xcebd, 0xdfe7, 0xd5e7, 0xcdbd, 0xaaeb, 0xd3bd, 0x001a, 0xd0bd, 0x001a, 0xd8bd, 0x001a, 0xd4e7, 0x001a, 0xd8e7, 0xccbd, 0xd7e7, 0xd9e7, 0xdae7, 0xd7bd, 0xdce7, 0xe0e7, 0xe4e7, 0x001a, 0xdbbd, 0xd2bf, 0xa5eb, 0xabeb, 0xa8eb, 0x7eeb, 0xaceb, 0xa1eb, 0x001a, 0xa7eb, 0x001a, 0xcdbf, 0xd3bf, 0xadeb, 0x001a, 0x001a, 0xcfbf, 0x001a, 0xd9bf, 0xd4bf, 0xafeb, 0xa9eb, 0xd0bf, 0xa2eb, 0xdabf, 0xa3eb, 0xa4eb, 0xdbbf, 0xd8bf, 0xd1bd, 0x001a, 0xcebf, 0xb0eb, 0xdcbf, 0x001a, 0xd5bf, 0xaeeb, 0xd1bf, 0xd6bf, 0xd7bf, 0x001a, 0xc3c1, 0xa4ee, 0xadee, 0xaaee, 0xacee, 0x001a, 0xc0c1, 0xa5ee, 0x001a, 0xabee, 0xbcc1, 0xa7ee, 0xc4c1, 0xa3ee, 0xa8ee, 0xafee, 0xa6eb, 0xa9ee, 0xa2ee, 0xbdc1, 0xa1ee, 0xbec1, 0xb0ee, 0xbfc1, 0xaeee, 0xc2c1, 0x7eee, 0x001a, 0xc1c1, 0x001a, 0xa6ee, 0xdcf0, 0xeaf0, 0xe5f0, 0xe7f0, 0xdbf0, 0xd3c2, 0x001a, 0xdaf0, 0xd6c2, 0xd5c2, 0x001a, 0xe9f0, 0xe1f0, 0xdef0, 0xe4f0, 0x001a, 0xddf0, 0x001a, 0xdff0, 0xe8f0, 0xe6f0, 0x001a, 0xd4c2, 0xedf0, 0xebf0, 0xe2f0, 0xecf0, 0xe3f0, 0x001a, 0xf9f2, 0xcfc3, 0x41f3, 0x001a, 0x001a, 0x4ff6, 0xd6c3, 0xe0f0, 0xf7f2, 0xd2c3, 0xf8f2, 0xfdf2, 0x001a, 0x001a, 0xd4c3, 0xd5c3, 0xf6f2, 0x40f3, 0x42f3, 0xfaf2, 0xfcf2, 0xfef2, 0xfbf2, 0x43f3, 0xd1c3, 0xd7c3, 0xd3c3, 0x001a, 0xd0c3, 0xd0f4, 0x001a, 0xb7c4, 0xcef4, 0x001a, 0x001a, 0xd2f4, 0x001a, 0xd3f4, 0xb5c4, 0xd4f4, 0xd1f4, 0x001a, 0xcff4, 0xb8c4, 0xb4c4, 0xd5f4, 0x001a, 0xb6c4, 0xb3c4, 0x001a, 0x001a, 0x001a, 0xfec4, 0x001a, 0x001a, 0x40c5, 0x4ef6, 0x4df6, 0x50f6, 0x51f6, 0x001a, 0x41c5, 0x56f7, 0x5bf7, 0xaac5, 0x001a, 0x58f7, 0x001a, 0x57f7, 0x5af7, 0x59f7, 0x001a, 0x43f8, 0x001a, 0xdcc5, 0x42f8, 0x40f8, 0x001a, 0x41f8, 0x001a, 0x001a, 0x001a, 0xfec5, 0xfdc5, 0xc1f8, 0xc2f8, 0x40c6, 0x001a, 0x4df9, 0x4ef9, 0x67c6, 0x001a, 0x6dc6, 0x001a, 0xa9f9, 0xc8f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6a8, 0x001a, 0xcdd7, 0x001a, 0xced7, 0x52e0, 0x50e4, 0xe5e7, 0xc6c1, 0x001a, 0xc5c1, 0xeef0, 0x44f3, 0x001a, 0x44f8, 0xa7a8, 0xded3, 0x5ab0, 0x61b3, 0x54e0, 0x53e0, 0xdcbd, 0xe6e7, 0xddbd, 0xb1ee, 0xd7c2, 0x001a, 0x001a, 0x001a, 0x76c6, 0xa8a8, 0xcbcd, 0xdfd3, 0x001a, 0x001a, 0x62b3, 0x001a, 0xcfd7, 0xd0d7, 0x001a, 0xe5db, 0x001a, 0x48b6, 0xe6b8, 0x001a, 0x56e0, 0x55e0, 0x57e0, 0x001a, 0x51e4, 0x52e4, 0xa8bb, 0xddbf, 0xdebd, 0xdebf, 0x001a, 0xb5ee, 0xb2ee, 0xb4ee, 0xb3ee, 0xc7c1, 0x001a, 0xeff0, 0x46f3, 0x45f3, 0xa4cb, 0x5cb0, 0x5bb0, 0xe0d3, 0x001a, 0xd1d7, 0x001a, 0x001a, 0xe7db, 0xe6db, 0x49b6, 0x001a, 0x59e0, 0x5ae0, 0x58e0, 0x001a, 0x001a, 0xe8b8, 0xe7b8, 0x001a, 0xaabb, 0xa9bb, 0x001a, 0xe7e7, 0xb3eb, 0xb1eb, 0xb2eb, 0xdfbf, 0xb7ee, 0xb6ee, 0x001a, 0xf2f0, 0xf1f0, 0xf0f0, 0x47f3, 0x001a, 0xaaf9, 0xa9a8, 0x73ad, 0x001a, 0x74ad, 0x5db0, 0x5eb0, 0xe2d3, 0xe1d3, 0xd2d7, 0x001a, 0x68b3, 0x66b3, 0x63b3, 0x67b3, 0x65b3, 0x64b3, 0x001a, 0x001a, 0x4ab6, 0xeadb, 0x001a, 0xedb8, 0x4cb6, 0x51b6, 0xecdb, 0x53b6, 0x52b6, 0x55b6, 0xebdb, 0xe8db, 0x4fb6, 0x4bb6, 0x4db6, 0xe9db, 0x54b6, 0x50b6, 0x4eb6, 0xefb8, 0xeeb8, 0xecb8, 0xf0b8, 0x001a, 0xeab8, 0xebb8, 0x001a, 0xe9b8, 0x001a, 0x5be0, 0x001a, 0x001a, 0x54e4, 0x001a, 0xacbb, 0xadbb, 0xabbb, 0x001a, 0x53e4, 0x001a, 0x55e4, 0x001a, 0xeae7, 0xece7, 0x001a, 0xe7bd, 0xede7, 0xe0bd, 0xe9e7, 0xdfbd, 0xe9bd, 0xe5bd, 0xe6bd, 0xe2bd, 0xe8e7, 0xe1bd, 0xeee7, 0xebe7, 0x001a, 0xe8bd, 0x001a, 0xe3bd, 0xe4bd, 0xb5eb, 0x001a, 0xb7eb, 0xb6eb, 0x001a, 0xb8eb, 0xe0bf, 0xb4eb, 0x001a, 0x001a, 0xcbc1, 0xb8ee, 0xc8c1, 0xccc1, 0xcac1, 0xc9c1, 0xf3f0, 0x001a, 0xf6f0, 0x001a, 0xf5f0, 0x001a, 0xf4f0, 0xd8c2, 0x48f3, 0x49f3, 0xd8c3, 0x4af3, 0xd9c3, 0x001a, 0x001a, 0xbac4, 0x001a, 0xb9c4, 0x52f6, 0x001a, 0x001a, 0x42c5, 0x53f6, 0x5cf7, 0xabc5, 0xacc5, 0x001a, 0x45f8, 0x001a, 0x42c6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaaa8, 0x001a, 0x6ab3, 0x69b3, 0x5ce0, 0x5de0, 0x001a, 0xaebb, 0xb9eb, 0xeabd, 0xbaeb, 0xb9ee, 0xaba8, 0x001a, 0xb2d0, 0x76ad, 0x75ad, 0x001a, 0xe3d3, 0x5fb0, 0xe4d3, 0xd5d7, 0x001a, 0xd4d7, 0x001a, 0xd3d7, 0x001a, 0x001a, 0xeedb, 0x58b6, 0x001a, 0x001a, 0xeddb, 0x57b6, 0x001a, 0x001a, 0x001a, 0xefdb, 0x56b6, 0x001a, 0x5fe0, 0x62e0, 0x60e0, 0x61e0, 0x65e0, 0x5ee0, 0x66e0, 0x63e0, 0x64e0, 0xb0bb, 0x56e4, 0x001a, 0x001a, 0xafbb, 0x001a, 0xf2e7, 0xf0e7, 0x001a, 0x001a, 0xebbd, 0xefe7, 0xf1e7, 0x001a, 0xecbd, 0x001a, 0xbbeb, 0x001a, 0xbceb, 0xcdc1, 0x001a, 0x4cf3, 0x4ef3, 0x4bf3, 0x4df3, 0xd6f4, 0x54f6, 0x001a, 0x001a, 0x6ff9, 0xaca8, 0x77ad, 0xe5d3, 0xe7d3, 0xe6d3, 0x001a, 0xd8d7, 0x6cb3, 0x001a, 0xd6d7, 0x001a, 0x6bb3, 0xd9d7, 0x001a, 0xdad7, 0xd7d7, 0x001a, 0x001a, 0xfbdb, 0x60b6, 0xf3db, 0xf9db, 0x001a, 0x001a, 0x5bb6, 0x5eb6, 0xf2db, 0x59b6, 0xf6db, 0x6ce0, 0x5db6, 0x001a, 0xf1db, 0x001a, 0xf7db, 0xf4db, 0xfadb, 0xf0db, 0xf8db, 0x5cb6, 0x5fb6, 0xf5db, 0x5ab6, 0x001a, 0xf2b8, 0x68e0, 0xf1b8, 0x6fe0, 0x6ee0, 0xf8b8, 0x001a, 0xf9b8, 0x70e0, 0xf3b8, 0x6de0, 0xf7b8, 0x72e0, 0x69e0, 0x001a, 0x6be0, 0xf4b8, 0x67e0, 0x6ae0, 0x71e0, 0xf5b8, 0x73e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6b8, 0x001a, 0xb1bb, 0x5be4, 0x61e4, 0x59e4, 0x62e4, 0x001a, 0x58e4, 0x5de4, 0x63e4, 0x60e4, 0x5fe4, 0x5ee4, 0x001a, 0x57e4, 0x5ce4, 0x001a, 0x001a, 0x5ae4, 0x001a, 0xf1bd, 0xeebd, 0xfbe7, 0x41e8, 0x43e8, 0x40e8, 0xf8e7, 0xfae7, 0x45e8, 0x42e8, 0xfce7, 0x46e8, 0xf9e7, 0x44e8, 0xefbd, 0xf5bd, 0xf3bd, 0xf3e7, 0xf4bd, 0xf0bd, 0xf4e7, 0xf6e7, 0xf5e7, 0xfde7, 0xfee7, 0x001a, 0xf2bd, 0x001a, 0xedbd, 0x001a, 0x001a, 0xf7e7, 0x001a, 0xc6eb, 0xe2bf, 0x001a, 0xbdeb, 0xe3bf, 0xe6bf, 0xc2eb, 0x001a, 0xbfeb, 0xe5bf, 0x001a, 0x001a, 0xc3eb, 0xc4eb, 0xbeeb, 0xc7eb, 0xc0eb, 0xc5eb, 0xe4bf, 0x001a, 0xe1bf, 0xc1eb, 0x001a, 0xbfee, 0xd0c1, 0xcec1, 0xd1c1, 0xcfc1, 0xbeee, 0xbbee, 0xbaee, 0x001a, 0xbdee, 0x001a, 0x001a, 0xbcee, 0x45f1, 0xdec2, 0xfbf0, 0xfaf0, 0x001a, 0xd9c2, 0x41f1, 0x40f1, 0xf7f0, 0x43f1, 0xfcf0, 0xddc2, 0xf9f0, 0x42f1, 0xf8f0, 0xdac2, 0xdcc2, 0xfdf0, 0xdbc2, 0xfef0, 0x001a, 0x44f1, 0x52f3, 0x001a, 0xdec3, 0x4ff3, 0x001a, 0x53f3, 0x001a, 0x001a, 0xdbc3, 0x51f3, 0xe0c3, 0x001a, 0xddc3, 0x001a, 0x50f3, 0x001a, 0xdfc3, 0x54f3, 0xdac3, 0x001a, 0x001a, 0x001a, 0x001a, 0xbcc4, 0xbec4, 0x001a, 0xd9f4, 0xbdc4, 0xd7f4, 0xdcc3, 0xd8f4, 0xbbc4, 0x43c5, 0x45c5, 0x56f6, 0x44c5, 0x55f6, 0x001a, 0x61f7, 0xadc5, 0x60f7, 0xaec5, 0x5ef7, 0x5df7, 0x62f7, 0x63f7, 0x46f8, 0x001a, 0x5ff7, 0x001a, 0x001a, 0xc6f8, 0xc3f8, 0xc4f8, 0xc5f8, 0x5cc6, 0x001a, 0x51f9, 0x50f9, 0x4ff9, 0x70f9, 0x001a, 0xbef9, 0xabf9, 0x6ec6, 0xada8, 0x60b0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfab8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6bd, 0x001a, 0x001a, 0xc8eb, 0x001a, 0x001a, 0xdfc2, 0x001a, 0x55f3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacf9, 0xaea8, 0xeeaa, 0x79ad, 0x78ad, 0x001a, 0x63b0, 0x001a, 0xe8d3, 0x61b0, 0xe9d3, 0x62b0, 0x001a, 0x001a, 0xdfd7, 0xdbd7, 0x001a, 0x001a, 0x6db3, 0xded7, 0xddd7, 0xdcd7, 0x6eb3, 0xe0d7, 0xe1d7, 0x001a, 0x001a, 0x001a, 0x43dc, 0x41dc, 0x45dc, 0x46dc, 0x4cdc, 0x001a, 0x48dc, 0x4adc, 0x001a, 0x42dc, 0xfcdb, 0x001a, 0x49dc, 0x001a, 0x001a, 0x4bdc, 0x44dc, 0x47dc, 0xfddb, 0x62b6, 0x40dc, 0xfedb, 0x61b6, 0x63b6, 0x001a, 0xfdb8, 0x75e0, 0x77e0, 0x76e0, 0x7be0, 0xfbb8, 0x001a, 0x78e0, 0x74e0, 0x79e0, 0x7ae0, 0xfcb8, 0xfeb8, 0x7ce0, 0x001a, 0x67e4, 0x66e4, 0x001a, 0x64e4, 0x65e4, 0xb3bb, 0xb5bb, 0xb2bb, 0xb4bb, 0x4de8, 0x4ee8, 0x49e8, 0x001a, 0x4ae8, 0xf8bd, 0xfdbd, 0xf7bd, 0xfebd, 0xf9bd, 0x4be8, 0x001a, 0x001a, 0x4ce8, 0x48e8, 0x40be, 0xfbbd, 0x001a, 0x001a, 0xfabd, 0xfcbd, 0x001a, 0x47e8, 0x001a, 0xcaeb, 0xe8bf, 0x001a, 0x001a, 0xcceb, 0xeabf, 0xcfeb, 0xcbeb, 0xc9eb, 0xceeb, 0xe9bf, 0xcdeb, 0x001a, 0xe7bf, 0x001a, 0x001a, 0xd3c1, 0xd6c1, 0xc1ee, 0x001a, 0xd4c1, 0xc0ee, 0xd2c1, 0xd5c1, 0x46f1, 0x47f1, 0x48f1, 0xe0c2, 0x001a, 0x49f1, 0x001a, 0xe1c2, 0xe2c3, 0x58f3, 0x59f3, 0x57f3, 0x56f3, 0x5af3, 0xe1c3, 0xddf4, 0xdbf4, 0xdcf4, 0xdef4, 0xdaf4, 0xdff4, 0x58f6, 0x001a, 0x59f6, 0x57f6, 0x46c5, 0x64f7, 0xafc5, 0x65f7, 0x48f8, 0x47f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafa8, 0x64b6, 0x001a, 0x001a, 0x40b9, 0x001a, 0x001a, 0x001a, 0xb6bb, 0x001a, 0x001a, 0xecbf, 0x001a, 0xebbf, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3c3, 0x7cc4, 0x47c5, 0xb0a8, 0x64b0, 0x41b9, 0x001a, 0x5bf3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6cb, 0x001a, 0x001a, 0xb1a8, 0x001a, 0xb4a8, 0xb3a8, 0xb2a8, 0x001a, 0x001a, 0xa5cb, 0x001a, 0xcdcd, 0x001a, 0xcfcd, 0xefaa, 0x001a, 0x001a, 0xf1aa, 0xcccd, 0xcecd, 0xf0aa, 0xd1cd, 0xd0cd, 0xd2cd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6d0, 0xb4d0, 0x7cad, 0xb3d0, 0xa3ad, 0x7ead, 0x7bad, 0x001a, 0xa4ad, 0x001a, 0x7dad, 0xa2ad, 0x001a, 0xa1ad, 0xb5d0, 0x001a, 0x7aad, 0x001a, 0x001a, 0x001a, 0x6ab0, 0xebd3, 0xf1d3, 0x67b0, 0x6eb0, 0x001a, 0x69b0, 0xeed3, 0xf0d3, 0x6cb0, 0xead3, 0xedd3, 0x68b0, 0x65b0, 0xecd3, 0x6bb0, 0xefd3, 0x6db0, 0x66b0, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3d7, 0xe6d7, 0x70b3, 0x001a, 0x7ab3, 0x76b3, 0xe4d7, 0x001a, 0x001a, 0x7eb3, 0x77b3, 0x7cb3, 0x72b3, 0x001a, 0x6fb3, 0x71b3, 0x7db3, 0xe5d7, 0x75b3, 0x78b3, 0x74b3, 0x79b3, 0xe7d7, 0x7bb3, 0x73b3, 0xe2d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ddc, 0x65b6, 0x4fdc, 0x001a, 0x67b6, 0x69b6, 0x001a, 0x4edc, 0x66b6, 0x6ab6, 0x001a, 0x68b6, 0x001a, 0x001a, 0x001a, 0x47b9, 0xa3e0, 0x4fb9, 0x7ee0, 0x001a, 0x50b9, 0x45b9, 0x001a, 0xa1e0, 0x001a, 0x001a, 0x4ab9, 0x001a, 0xa2e0, 0x43b9, 0x42b9, 0x001a, 0x4db9, 0x4cb9, 0x4bb9, 0x49b9, 0x4eb9, 0x7de0, 0x44b9, 0x46b9, 0x48b9, 0x001a, 0x001a, 0xb8bb, 0xbbbb, 0x001a, 0xbfbb, 0xb9bb, 0xbebb, 0xbcbb, 0x001a, 0xb7bb, 0x001a, 0xbdbb, 0xbabb, 0x001a, 0x001a, 0x001a, 0x52e8, 0x43be, 0x41be, 0x001a, 0x53e8, 0x001a, 0x44be, 0x42be, 0x51e8, 0x50e8, 0x001a, 0xf0bf, 0x4fe8, 0xeebf, 0xedbf, 0xd0eb, 0x45be, 0xefbf, 0xd1eb, 0xf2bf, 0xd2eb, 0xf1bf, 0xd8c1, 0xc3ee, 0xd7c1, 0xdcc1, 0xdac1, 0xdbc1, 0xe3c2, 0xd9c1, 0xc2ee, 0xd3eb, 0xe2c2, 0xe4c2, 0x001a, 0xe4c3, 0xe5c3, 0x001a, 0xe0f4, 0x001a, 0xdec5, 0xddc5, 0xb6a8, 0x001a, 0x001a, 0x55ca, 0x6fb0, 0x001a, 0x52ca, 0x53ca, 0x51ca, 0x001a, 0x54ca, 0x001a, 0x001a, 0xaacb, 0xa7cb, 0xaccb, 0xa8cb, 0xb7a8, 0xbaa8, 0x001a, 0xa9cb, 0xb9a8, 0xabcb, 0x001a, 0x001a, 0xb8a8, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5cd, 0xd7cd, 0xf4aa, 0xd3cd, 0xd6cd, 0xd4cd, 0xf2aa, 0xf5aa, 0x001a, 0xf3aa, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8d0, 0xbcd0, 0xb9d0, 0x001a, 0xa7ad, 0x001a, 0xa8ad, 0x001a, 0xbbd0, 0x001a, 0xbdd0, 0xbfd0, 0x001a, 0xa5ad, 0xbed0, 0x001a, 0x001a, 0xa6ad, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeed7, 0xbad0, 0xf2d3, 0xfbd3, 0xf9d3, 0xf4d3, 0xf5d3, 0xfad3, 0xfcd3, 0x71b0, 0x001a, 0xf7d3, 0xf3d3, 0x70b0, 0x72b0, 0xf6d3, 0xfdd3, 0xf8d3, 0x001a, 0x001a, 0xa1b3, 0xf1d7, 0xe9d7, 0xefd7, 0xf0d7, 0xa2b3, 0x001a, 0xe8d7, 0xead7, 0xb7d0, 0xecd7, 0xedd7, 0xebd7, 0x6cb6, 0x001a, 0x001a, 0x001a, 0x56dc, 0xd4eb, 0x57dc, 0x54dc, 0xa3b3, 0x6eb6, 0x53dc, 0x59dc, 0x58dc, 0x6bb6, 0x5cdc, 0x52dc, 0x5bdc, 0x50dc, 0x5adc, 0x55dc, 0x6db6, 0x001a, 0xaae0, 0x001a, 0xa5e0, 0xabe0, 0xa6e0, 0xa4e0, 0xa7e0, 0x51b9, 0x001a, 0xa9e0, 0x001a, 0xa8e0, 0x52b9, 0xc1bb, 0xc0bb, 0x6ee4, 0x71e4, 0x69e4, 0x6de4, 0xc2bb, 0x6ce4, 0x6ae4, 0x70e4, 0x6be4, 0x68e4, 0x6fe4, 0x001a, 0x59e8, 0x48be, 0x4af1, 0x56e8, 0x57e8, 0x55e8, 0x51dc, 0x47be, 0x5ae8, 0x54e8, 0x46be, 0x49be, 0x58e8, 0xd5eb, 0xf3bf, 0xd6eb, 0xd7eb, 0x001a, 0xc4ee, 0xddc1, 0x4bf1, 0x4cf1, 0x001a, 0x001a, 0x4df1, 0x5df3, 0x5cf3, 0xe2f4, 0x001a, 0xe1f4, 0x5bf6, 0x5cf6, 0x5af6, 0x66f7, 0xb0c5, 0xbba8, 0xaaad, 0xa9ad, 0x75b0, 0x74b0, 0x40d4, 0x41d4, 0xfed3, 0x001a, 0x73b0, 0xf5d7, 0x001a, 0xf6d7, 0xf2d7, 0xa4b3, 0xf3d7, 0x001a, 0xf4d7, 0x001a, 0x001a, 0x001a, 0x001a, 0x5fdc, 0x61dc, 0x5ddc, 0x60dc, 0x6fb6, 0x5edc, 0x70b6, 0x001a, 0x001a, 0x73dd, 0x55b9, 0x54b9, 0x001a, 0x53b9, 0x001a, 0xace0, 0xade0, 0x001a, 0x001a, 0x73e4, 0x75e4, 0xc6bb, 0xc3bb, 0x001a, 0xc5bb, 0xc4bb, 0x74e4, 0x72e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x61e8, 0x5ee8, 0x5fe8, 0x4dbe, 0x60e8, 0x5be8, 0x5ce8, 0x4abe, 0x001a, 0x4bbe, 0x5de8, 0x4cbe, 0x001a, 0xdbeb, 0x001a, 0xdceb, 0xd9eb, 0xdaeb, 0xf4bf, 0xd8eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8ee, 0xc5ee, 0xc7ee, 0xe0c1, 0xcbee, 0xdfc1, 0xc9ee, 0xccee, 0xcaee, 0xc6ee, 0xdec1, 0x001a, 0x4ff1, 0x001a, 0x50f1, 0x4ef1, 0x001a, 0x52f1, 0xe5c2, 0xe6c2, 0x5ff3, 0xe7c3, 0x51f1, 0x5ef3, 0xe6c3, 0xe5f4, 0xe6f4, 0xbfc4, 0xe4f4, 0x001a, 0xe3f4, 0x001a, 0x5df6, 0x48c5, 0x001a, 0x49f8, 0xc8f8, 0xc7f8, 0x001a, 0x43c6, 0x5dc6, 0xc9f8, 0x71f9, 0x001a, 0x6fc6, 0xbca8, 0xf6aa, 0x001a, 0x56b9, 0x001a, 0xc0c4, 0xbda8, 0xabad, 0xa5b3, 0x71b6, 0xe7c2, 0xf7aa, 0x001a, 0xc1d0, 0xc0d0, 0x42d4, 0x001a, 0x78b0, 0x76b0, 0x7ab0, 0x44d4, 0x001a, 0x79b0, 0x77b0, 0x001a, 0x001a, 0x001a, 0x001a, 0x43d4, 0xa8b3, 0xfcd7, 0x001a, 0xa7b3, 0xa9b3, 0x42d8, 0xabb3, 0xfed7, 0x40d8, 0xf7d7, 0xaab3, 0x43d8, 0x001a, 0x001a, 0xf9d7, 0x001a, 0xfad7, 0xf8d7, 0xa6b3, 0x001a, 0x41d8, 0xfbd7, 0xfdd7, 0x001a, 0x001a, 0x001a, 0x6ddc, 0x001a, 0x6cdc, 0x6adc, 0x62dc, 0x71dc, 0x65dc, 0x6fdc, 0x76dc, 0x6edc, 0x79b6, 0x001a, 0x75b6, 0x63dc, 0x001a, 0x69dc, 0x77b6, 0x001a, 0x68dc, 0x78b6, 0x7ab6, 0x6bdc, 0x001a, 0x72b6, 0x73b6, 0x77dc, 0x75dc, 0x001a, 0x74dc, 0x66dc, 0x001a, 0x72dc, 0x001a, 0x76b6, 0x001a, 0x001a, 0x001a, 0x001a, 0x74b6, 0x73dc, 0x64dc, 0x67dc, 0x70dc, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbae4, 0xb7e0, 0x001a, 0xb0e0, 0xc3e0, 0xcce0, 0xb3e0, 0x61b9, 0x001a, 0xc0e0, 0x57b9, 0x59b9, 0x65b9, 0xb1e0, 0x001a, 0x001a, 0x5ab9, 0x5cb9, 0x66b9, 0x5bb9, 0x001a, 0x001a, 0x001a, 0x001a, 0x64b9, 0xb9e0, 0x001a, 0xaee0, 0x62b9, 0xb8e0, 0x5eb9, 0xcae0, 0x63b9, 0xc8e0, 0xbce0, 0xc6e0, 0x60b9, 0xafe0, 0xc9e0, 0xc4e0, 0x001a, 0xcbe0, 0x58b9, 0x001a, 0x001a, 0x67b9, 0x5db9, 0x001a, 0x001a, 0xb5e0, 0x001a, 0xbde0, 0xc1e0, 0x001a, 0xc5e0, 0x5fb9, 0xb4e0, 0xb2e0, 0xbee0, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbe0, 0xbae0, 0x001a, 0xbfe0, 0xc2e0, 0x001a, 0xc7e0, 0x001a, 0x001a, 0x001a, 0x78e4, 0x001a, 0xc7bb, 0xa4e4, 0x7ae4, 0xccbb, 0xd0bb, 0xade4, 0xb5e4, 0xa6e4, 0xc8bb, 0x001a, 0xaae4, 0xb6e0, 0x001a, 0xc9bb, 0xb1e4, 0xb6e4, 0xaee4, 0x001a, 0xb0e4, 0xb9e4, 0xb2e4, 0x7ee4, 0xa9e4, 0x001a, 0x001a, 0xd1bb, 0x001a, 0xcdbb, 0x7ce4, 0xabe4, 0xcbbb, 0xa5e4, 0xcabb, 0xb3e4, 0xa2e4, 0x79e4, 0xcebb, 0xb8e4, 0x001a, 0x001a, 0x7be4, 0xafe4, 0xace4, 0xa7e4, 0x77e4, 0x76e4, 0xa1e4, 0xb4e4, 0xcfbb, 0xb7e4, 0x7de4, 0xa3e4, 0x52be, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5abe, 0x55be, 0xa4e8, 0xa1e8, 0x67e8, 0x50be, 0x001a, 0xd7f9, 0x001a, 0x4fbe, 0x56be, 0x001a, 0x001a, 0x001a, 0x65e8, 0x54be, 0x71e8, 0x63e8, 0x64e8, 0x4ebe, 0xa3e8, 0x58be, 0x74e8, 0x79e8, 0x73e8, 0xeeeb, 0x6fe8, 0x77e8, 0x75e8, 0x68e8, 0x62e8, 0x7de8, 0x57be, 0x7ee8, 0x001a, 0x78e8, 0x001a, 0x6de8, 0x6be8, 0x66e8, 0x001a, 0x001a, 0x001a, 0x6ee8, 0x7be8, 0x6ae8, 0x7ae8, 0xa2e8, 0x001a, 0x001a, 0x53be, 0x001a, 0x76e8, 0x7ce8, 0x72e8, 0x6ce8, 0x51be, 0x001a, 0x001a, 0x001a, 0xa8e4, 0x70e8, 0x59be, 0x69e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4eb, 0xf7bf, 0xf3eb, 0xf0eb, 0x44ec, 0xfbbf, 0x001a, 0x41ec, 0xf8eb, 0x43ec, 0xe9eb, 0xf6eb, 0x001a, 0xfdbf, 0x001a, 0xe1eb, 0x001a, 0xdfeb, 0x42ec, 0x001a, 0x40ec, 0xfeeb, 0xedeb, 0xeceb, 0xe2eb, 0x40c0, 0x001a, 0xe8eb, 0xf2eb, 0xfdeb, 0x43c0, 0x45ec, 0x001a, 0xe8c1, 0x45c0, 0xfebf, 0xe6eb, 0x001a, 0xefeb, 0xdeeb, 0xe0eb, 0xf5bf, 0x42c0, 0xfabf, 0xe7eb, 0xf7eb, 0xf1eb, 0x41c0, 0xddeb, 0xe3c1, 0xf9eb, 0xfceb, 0xfcbf, 0x001a, 0xebeb, 0x44c0, 0xf9bf, 0x001a, 0x001a, 0x001a, 0xf8bf, 0xf5eb, 0xfbeb, 0xf6bf, 0x001a, 0xe4eb, 0xfaeb, 0x001a, 0x001a, 0xe5eb, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeaeb, 0xd2ee, 0x001a, 0xd7ee, 0xe5c1, 0xe7c1, 0xddee, 0xe1c1, 0xecee, 0xe3ee, 0xd8ee, 0xd9ee, 0xe2ee, 0x001a, 0xeec1, 0xe1ee, 0xd1ee, 0xe0ee, 0xd4ee, 0xedee, 0xedc1, 0xebc1, 0xd5ee, 0x001a, 0xe8ee, 0x001a, 0xdaee, 0xe7ee, 0x001a, 0xe9ee, 0xd0ee, 0xe6c1, 0x001a, 0xeaee, 0x001a, 0x001a, 0xdeee, 0x001a, 0xeac1, 0xdbee, 0x001a, 0x001a, 0xecc1, 0xe4ee, 0x001a, 0x001a, 0x001a, 0xe4c1, 0xd6ee, 0xe5ee, 0x001a, 0xdfee, 0xe3eb, 0xe6ee, 0xd3ee, 0x001a, 0xe9c1, 0x001a, 0xebee, 0x001a, 0xe2c1, 0xceee, 0x001a, 0x001a, 0x001a, 0x001a, 0x60f1, 0x59f1, 0xe9c2, 0x001a, 0x54f1, 0x63f1, 0x5bf1, 0xdcee, 0x001a, 0x65f1, 0x55f1, 0x001a, 0xe8c2, 0x5ff1, 0xeac2, 0xf2c2, 0xf0c2, 0x61f1, 0xf1c2, 0x57f1, 0x001a, 0x58f1, 0x5df1, 0x62f1, 0x001a, 0xcdee, 0xebc2, 0x6af1, 0x67f1, 0x6bf1, 0x5ef1, 0x5af1, 0x68f1, 0x6af3, 0x5cf1, 0x001a, 0xeec2, 0x001a, 0xedc2, 0xcfee, 0xefc2, 0x64f1, 0x66f1, 0xecc2, 0x69f1, 0x53f1, 0x001a, 0x56f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73f3, 0x001a, 0x63f3, 0xebc3, 0x71f3, 0x001a, 0x001a, 0x61f3, 0xecc3, 0x001a, 0x6cf3, 0x001a, 0x68f3, 0xf1c3, 0x72f3, 0x62f3, 0x65f3, 0xe9c3, 0x74f3, 0x001a, 0x6df3, 0x70f3, 0xefc3, 0xf4c3, 0xf2c3, 0x69f3, 0x64f3, 0x001a, 0xedc3, 0xeec3, 0x60f3, 0xeac3, 0x001a, 0xe8c3, 0xf0c3, 0x6ff3, 0xf3c3, 0x001a, 0x6bf3, 0x75f3, 0xf5c3, 0x001a, 0x001a, 0x001a, 0x67f3, 0x001a, 0x6ef3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3f4, 0x42f5, 0xf5f4, 0xfcf4, 0x66f3, 0xfaf4, 0xe9f4, 0x40f5, 0xc3c4, 0xedf4, 0xfef4, 0xf4f4, 0x001a, 0x001a, 0xc2c4, 0x001a, 0x001a, 0x44f5, 0xf6f4, 0x001a, 0xfbf4, 0xfdf4, 0xe7f4, 0x41f5, 0xf2f4, 0xf7f4, 0xebf4, 0xeff4, 0x43f5, 0xf9f4, 0xe8f4, 0xecf4, 0xeef4, 0xf8f4, 0x001a, 0xc1c4, 0xf1f4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeaf4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0f4, 0x61f6, 0x66f6, 0x4fc5, 0x68f6, 0x001a, 0x49c5, 0x001a, 0x64f6, 0x6af6, 0x4ec5, 0x4ac5, 0x001a, 0x4bc5, 0x60f6, 0x67f6, 0x4dc5, 0x65f6, 0x4cc5, 0x5ff6, 0x63f6, 0x62f6, 0x001a, 0x5ef6, 0x69f6, 0x001a, 0x001a, 0x001a, 0xb1c5, 0x6df7, 0x70f7, 0x6cf7, 0x6ef7, 0x6ff7, 0x69f7, 0x6af7, 0x67f7, 0x001a, 0x001a, 0x6bf7, 0x68f7, 0xb2c5, 0xb3c5, 0x001a, 0x001a, 0x4bf8, 0x001a, 0x4df8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4cf8, 0x4ef8, 0x001a, 0xe0c5, 0x001a, 0x4af8, 0xdfc5, 0xe1c5, 0x001a, 0x001a, 0x001a, 0xcbf8, 0xccf8, 0x44c6, 0xcaf8, 0x001a, 0x53f9, 0x52f9, 0x54f9, 0x5fc6, 0x55f9, 0x5ec6, 0x56f9, 0x72f9, 0x75f9, 0x74f9, 0x68c6, 0x73f9, 0x001a, 0x001a, 0x001a, 0x72c6, 0x70c6, 0x71c6, 0x77c6, 0xc0f9, 0xc1f9, 0xbff9, 0xc9f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8aa, 0x001a, 0x001a, 0x44d8, 0x78dc, 0xa5e8, 0x76f3, 0x001a, 0x001a, 0xf9aa, 0x001a, 0xacad, 0x7bb0, 0x001a, 0x001a, 0x45d8, 0x001a, 0x46d8, 0xacb3, 0x001a, 0x7db6, 0x7adc, 0x79dc, 0xa3b6, 0x7cb6, 0x7bdc, 0x7eb6, 0xa2b6, 0xa1b6, 0x7bb6, 0x001a, 0x001a, 0x001a, 0x68b9, 0x001a, 0x001a, 0xd0e0, 0xcee0, 0x001a, 0xcfe0, 0xcde0, 0x001a, 0xd2bb, 0x001a, 0xd5bb, 0xd7bb, 0xd6bb, 0x001a, 0x001a, 0xd3bb, 0xd4bb, 0x001a, 0xa7e8, 0xa6e8, 0x5bbe, 0xa8e8, 0x001a, 0xa9e8, 0x5cbe, 0x001a, 0x001a, 0x001a, 0x4dec, 0x4bec, 0xf3ee, 0x001a, 0x49ec, 0x4aec, 0x46c0, 0x46ec, 0x4eec, 0x48ec, 0x4cec, 0xefee, 0x001a, 0x001a, 0xf1ee, 0x001a, 0xf2ee, 0xf3c1, 0xeeee, 0xf2c1, 0xf0ee, 0xefc1, 0xf0c1, 0xf1c1, 0x47ec, 0x001a, 0x001a, 0xf5c2, 0x6ef1, 0x6cf1, 0x6df1, 0xf3c2, 0xf6c2, 0xf4c2, 0x001a, 0x001a, 0x001a, 0x77f3, 0x78f3, 0xf6c3, 0x001a, 0x45f5, 0x47f5, 0x46f5, 0xc4c4, 0x50c5, 0x6df6, 0x6cf6, 0x6bf6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfaaa, 0x001a, 0xaac9, 0x001a, 0x58ca, 0xe9a6, 0x56ca, 0x59ca, 0x57ca, 0x001a, 0x001a, 0x001a, 0xaecb, 0x001a, 0xc1a8, 0x001a, 0xc2a8, 0xb0cb, 0xbfa8, 0xafcb, 0xadcb, 0xc0a8, 0xbea8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8cd, 0xdbcd, 0xfdaa, 0xdacd, 0xd9cd, 0x001a, 0xfcaa, 0xfbaa, 0x001a, 0x40ab, 0xdccd, 0xfeaa, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6d0, 0xaead, 0xafad, 0xb0ad, 0xc7d0, 0xc3d0, 0xadad, 0xc4d0, 0x001a, 0xc5d0, 0xc2d0, 0x001a, 0x001a, 0x001a, 0xa4b0, 0x001a, 0x001a, 0xa1b0, 0x45d4, 0xa2b0, 0xa5b0, 0x46d4, 0x001a, 0x7eb0, 0x7cb0, 0x7db0, 0xa3b0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xadb3, 0x49d8, 0xb5b3, 0x48d8, 0x001a, 0x4bd8, 0xb1b3, 0x4ad8, 0xabb6, 0xafb3, 0xb2b3, 0xaeb3, 0xb3b3, 0xb4b3, 0xb0b3, 0x001a, 0x001a, 0x001a, 0x47d8, 0xa7b6, 0x7ddc, 0x001a, 0xa3dc, 0x001a, 0x001a, 0xa2dc, 0xacb6, 0xa8b6, 0xa9b6, 0x7cdc, 0x7edc, 0xa1dc, 0xa4b6, 0xa6b6, 0x001a, 0xaab6, 0xa5b6, 0x001a, 0x001a, 0xd3e0, 0xd1e0, 0xd2e0, 0x6ab9, 0x6bb9, 0x001a, 0xd4e0, 0x69b9, 0xd8bb, 0x001a, 0xdabb, 0xd9bb, 0x001a, 0xbbe4, 0x001a, 0x001a, 0xbce4, 0xabe8, 0x001a, 0xaae8, 0x001a, 0x001a, 0x47c0, 0x48c0, 0x4fec, 0x49c0, 0x001a, 0xf6ee, 0x001a, 0xf4ee, 0x001a, 0xf5ee, 0xf4c1, 0x001a, 0x6ff1, 0xf7c3, 0x001a, 0x001a, 0x001a, 0xf5c1, 0x41ab, 0x001a, 0xa6b0, 0x47d4, 0x001a, 0x001a, 0x4cd8, 0xb6b3, 0xadb6, 0xa4dc, 0xa6dc, 0xafb6, 0xaeb6, 0xb0b6, 0xb1b6, 0xa5dc, 0x6eb9, 0x6fb9, 0x6db9, 0xdbbb, 0x6cb9, 0xd5e0, 0x001a, 0x001a, 0x001a, 0xdcbb, 0xace8, 0x50ec, 0x4ac0, 0xf6c1, 0x70f1, 0x74f1, 0xf9c2, 0x71f1, 0xfac2, 0xf8c2, 0x75f1, 0xfbc2, 0x73f1, 0x001a, 0x79f3, 0xf7c2, 0xf8c3, 0x001a, 0xcdf8, 0x001a, 0x001a, 0x42ab, 0xb8b3, 0xb7b3, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2b6, 0xa8dc, 0xa7dc, 0xb3b6, 0x001a, 0x001a, 0xd9e0, 0x73b9, 0x70b9, 0xd8e0, 0x72b9, 0xd6e0, 0x71b9, 0x001a, 0xd7e0, 0x001a, 0xbde4, 0xddbb, 0x001a, 0xafe8, 0x001a, 0x5dbe, 0xade8, 0x5ebe, 0x5fbe, 0xaee8, 0x60be, 0x001a, 0x51ec, 0x001a, 0x4ec0, 0x4bc0, 0x50c0, 0x53ec, 0x4cc0, 0x52ec, 0x4fc0, 0x001a, 0x001a, 0x4dc0, 0x001a, 0xf9ee, 0xfbee, 0x001a, 0x001a, 0xf7c1, 0xfaee, 0xf8c1, 0xf8ee, 0xf7ee, 0x001a, 0x77f1, 0x76f1, 0xfcc2, 0x78f1, 0x7ef3, 0xfac3, 0x7df3, 0x7af3, 0xf9c3, 0x7bf3, 0x7cf3, 0x001a, 0x48f5, 0x49f5, 0xc5c4, 0x001a, 0x53c5, 0x001a, 0x001a, 0x6ef6, 0x001a, 0x001a, 0x51c5, 0x52c5, 0x6ff6, 0x001a, 0x001a, 0xb4c5, 0xb5c5, 0x71f7, 0x001a, 0x001a, 0x45c6, 0xcff8, 0x47c6, 0x001a, 0xcef8, 0xd0f8, 0x46c6, 0x57f9, 0x001a, 0xadf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x43ab, 0x001a, 0x001a, 0x001a, 0x74b9, 0x001a, 0xbee4, 0x001a, 0xb0e8, 0x51c0, 0x52c0, 0x001a, 0x44ab, 0x001a, 0x61be, 0xfbc3, 0xb1ad, 0x001a, 0x001a, 0x001a, 0x53c0, 0x001a, 0xe2c5, 0xb2ad, 0x4dd8, 0x001a, 0xa9dc, 0x001a, 0xabdc, 0x001a, 0xaadc, 0x001a, 0xdde0, 0xdae0, 0x75b9, 0x001a, 0x76b9, 0xdbe0, 0xdce0, 0x001a, 0xc0e4, 0xc5e4, 0xdebb, 0xbfe4, 0xc1e4, 0xc8e4, 0xc3e4, 0xc7e4, 0xc4e4, 0xc2e4, 0xc6e4, 0xdfbb, 0x001a, 0x001a, 0xb3e8, 0x001a, 0xb1e8, 0x63be, 0x001a, 0x62be, 0xb2e8, 0x64be, 0x001a, 0x001a, 0x001a, 0x001a, 0x56ec, 0x001a, 0x001a, 0x55ec, 0x54c0, 0x54ec, 0xfcee, 0x001a, 0xfeee, 0x41ef, 0x40ef, 0x001a, 0xf9c1, 0xfdee, 0xa1f1, 0xfdc2, 0x7df1, 0xa2f1, 0xfec2, 0x001a, 0x7bf1, 0x001a, 0x7ef1, 0x7cf1, 0x79f1, 0x40c3, 0x7af1, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1f3, 0x001a, 0x001a, 0xa3f3, 0xa2f3, 0x001a, 0x4af5, 0x001a, 0x4bf5, 0x001a, 0x001a, 0x001a, 0x70f6, 0x001a, 0xb7c5, 0x001a, 0xb6c5, 0x4ff8, 0x50f8, 0x48c6, 0xd1f8, 0x001a, 0x69c6, 0x001a, 0xb3ad, 0xb4b6, 0xcae4, 0xc9e4, 0xb5e8, 0xb4e8, 0x001a, 0x001a, 0xfac1, 0x43ef, 0x42ef, 0xa5f1, 0xa3f1, 0xa6f1, 0xa4f1, 0x001a, 0x001a, 0xfcc3, 0xa4f3, 0xa5f3, 0xa6f3, 0x001a, 0x71f6, 0x001a, 0x72f7, 0x001a, 0xd2f8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4ad, 0x001a, 0x001a, 0x57ec, 0x44ef, 0x001a, 0xb5ad, 0x001a, 0x001a, 0xe0bb, 0x001a, 0x58ec, 0x41c3, 0xa7f1, 0xfdc3, 0x001a, 0x4cf5, 0x4df5, 0x54c5, 0x51f8, 0xb6ad, 0xbbb3, 0xbcb3, 0x4ed8, 0xb5b6, 0xb6b6, 0xacdc, 0xb7b6, 0x001a, 0x7ab9, 0x001a, 0x7cb9, 0xdfe0, 0xe0e0, 0xdee0, 0x77b9, 0x78b9, 0x7bb9, 0x79b9, 0x001a, 0x001a, 0xcbe4, 0xe1bb, 0xe2bb, 0x001a, 0x001a, 0xbce8, 0x67be, 0xb7e8, 0xb6e8, 0x001a, 0xbbe8, 0x65be, 0x001a, 0x001a, 0x5bc0, 0x001a, 0xb8e8, 0xbde8, 0xbae8, 0xb9e8, 0x001a, 0x66be, 0x001a, 0x59c0, 0x001a, 0x5aec, 0x55c0, 0x001a, 0x5bec, 0x001a, 0x001a, 0x59ec, 0x001a, 0x58c0, 0x56c0, 0x5ac0, 0x001a, 0x57c0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x45ef, 0x001a, 0x4aef, 0x46ef, 0x49ef, 0xfbc1, 0x001a, 0xd4ed, 0x48ef, 0x47ef, 0x001a, 0x44c3, 0x42c3, 0x45c3, 0x43c3, 0xa8f1, 0xa9f1, 0xaaf1, 0x46c3, 0x001a, 0x001a, 0x001a, 0xaaf3, 0x40c4, 0xa8f3, 0x001a, 0x41c4, 0xa7f3, 0xa9f3, 0xfec3, 0x51f5, 0x4ef5, 0x001a, 0x4ff5, 0x50f5, 0x72f6, 0x56c5, 0x001a, 0x55c5, 0x001a, 0x74f7, 0x73f7, 0xb8c5, 0x001a, 0x001a, 0x001a, 0xe3c5, 0x49c6, 0x60c6, 0x58f9, 0xaef9, 0xaff9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7ad, 0xaddc, 0x001a, 0x001a, 0xe1e0, 0xcce4, 0xcde4, 0xe3bb, 0x001a, 0xe4bb, 0xbee8, 0x68be, 0x001a, 0x001a, 0xfcc1, 0x001a, 0xabf1, 0x001a, 0x47c3, 0xadf3, 0x42c4, 0xacf3, 0xaef3, 0xabf3, 0x75f6, 0x52f5, 0x53f5, 0x001a, 0xc6c4, 0x001a, 0x74f6, 0x001a, 0x001a, 0x73f6, 0x001a, 0x75f7, 0xb0f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8ad, 0x001a, 0x001a, 0x001a, 0xb9ad, 0x001a, 0x001a, 0xa7b0, 0x48d4, 0x001a, 0x4fd8, 0x001a, 0xb8b6, 0x001a, 0xbbb6, 0xb9b6, 0xaedc, 0x001a, 0xbdb6, 0x001a, 0xbab6, 0x001a, 0x001a, 0xbcb6, 0x001a, 0x7eb9, 0x001a, 0xe2e0, 0x001a, 0x001a, 0xe3e0, 0xc0e8, 0x001a, 0x7db9, 0xa1b9, 0xa2b9, 0x001a, 0xcfe4, 0x001a, 0xcee4, 0xe5bb, 0x001a, 0xe6bb, 0x001a, 0xd0e4, 0xbfe8, 0xe8bb, 0x69be, 0x001a, 0xe7bb, 0x001a, 0x001a, 0x001a, 0x5cc0, 0xc1e8, 0x6bbe, 0x6abe, 0xc2e8, 0xc5e8, 0xc3e8, 0xc4e8, 0x6cbe, 0x001a, 0x61c0, 0x5fc0, 0x001a, 0x001a, 0x5ec0, 0x5dec, 0x001a, 0x60c0, 0x001a, 0x001a, 0x5cec, 0x4bef, 0x001a, 0x5eec, 0x5dc0, 0x5fec, 0x4eef, 0x4cef, 0x4def, 0x52ef, 0x4bc3, 0x51ef, 0x54ef, 0x53ef, 0x50ef, 0x4fef, 0x001a, 0xfdc1, 0x001a, 0x001a, 0x001a, 0x001a, 0xaef1, 0x001a, 0xadf1, 0x4ac3, 0x48c3, 0x49c3, 0x001a, 0xacf1, 0x001a, 0xb1f3, 0x001a, 0x43c4, 0x001a, 0xb0f3, 0xaff3, 0x44c4, 0x001a, 0x58f5, 0x57f5, 0x001a, 0x55f5, 0x001a, 0x54f5, 0xc8c4, 0xc7c4, 0x59f5, 0x76f7, 0xb9c5, 0x77f6, 0x57c5, 0x76f6, 0x56f5, 0x001a, 0x77f7, 0xe4c5, 0x001a, 0x61c6, 0x59f9, 0x001a, 0xb1f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbaad, 0x50d8, 0x55ef, 0xbbad, 0x001a, 0x001a, 0xd2e4, 0xd1e4, 0x60ec, 0x001a, 0x001a, 0x57ef, 0x001a, 0x56ef, 0x001a, 0x4cc3, 0xb2f3, 0xb3f3, 0xc9c4, 0x001a, 0x001a, 0xb2f9, 0xa8b0, 0xbfb6, 0xbeb6, 0xe4e0, 0xe6e0, 0xa4b9, 0xe5e0, 0xa3b9, 0xa5b9, 0xe7e0, 0x001a, 0x001a, 0x001a, 0xd4e4, 0xd6e4, 0xd5e4, 0x001a, 0xd8e4, 0x001a, 0x001a, 0x001a, 0xe9bb, 0xd7e4, 0xd3e4, 0x001a, 0x001a, 0x001a, 0xd9e4, 0x001a, 0xcce8, 0x001a, 0xcfe8, 0xd1e8, 0xc7e8, 0xcbe8, 0xc8e8, 0x6ebe, 0x71be, 0x73be, 0xc9e8, 0xcae8, 0x72be, 0xcde8, 0xd0e8, 0xcee8, 0x74be, 0x001a, 0x70be, 0xc6e8, 0x6dbe, 0x001a, 0x6fbe, 0x001a, 0x001a, 0x63c0, 0x66ec, 0x64ec, 0x63ec, 0x001a, 0x69ec, 0x001a, 0x68ec, 0x67ec, 0x001a, 0x62ec, 0x62c0, 0x61ec, 0x001a, 0x65ec, 0x64c0, 0x001a, 0x001a, 0x5aef, 0x001a, 0x5eef, 0x5bef, 0x5def, 0x5cef, 0x59ef, 0x5fef, 0x62ef, 0x60ef, 0x61ef, 0x40c2, 0x001a, 0xfec1, 0x58ef, 0x63ef, 0xb3f1, 0xb6f1, 0xb8f1, 0xb7f1, 0x001a, 0xb1f1, 0xb5f1, 0xb0f1, 0x001a, 0xb2f1, 0x4dc3, 0xaff1, 0x001a, 0xb4f1, 0x001a, 0x001a, 0xc0f3, 0xb5f3, 0x45c4, 0x001a, 0x001a, 0x46c4, 0xb4f3, 0xb9f3, 0xbff3, 0xb7f3, 0xbef3, 0x001a, 0xbbf3, 0x001a, 0xbaf3, 0xbdf3, 0xb8f3, 0xb6f3, 0x001a, 0xbcf3, 0x001a, 0x60f5, 0x5ef5, 0xcac4, 0x5df5, 0x63f5, 0x61f5, 0x001a, 0xcbc4, 0x5cf5, 0x5af5, 0x001a, 0x5bf5, 0xcdc4, 0x5ff5, 0xccc4, 0x62f5, 0x78f6, 0x7ef6, 0x001a, 0x001a, 0x79f6, 0x5bc5, 0xa1f6, 0x5ac5, 0x7df6, 0x7cf6, 0x59c5, 0x7bf6, 0x58c5, 0x7af6, 0x001a, 0x7df7, 0xa1f7, 0x7ef7, 0x001a, 0x7bf7, 0xbbc5, 0x78f7, 0x7cf7, 0xa3f7, 0x001a, 0xa2f7, 0x79f7, 0x7af7, 0xbac5, 0x52f8, 0xe7c5, 0x001a, 0x53f8, 0xe5c5, 0xe6c5, 0x001a, 0x001a, 0xd3f8, 0x4ac6, 0x76f9, 0x001a, 0x6ac6, 0x001a, 0xb3f9, 0x6bc6, 0xb4f9, 0xb5f9, 0xc3f9, 0xc2f9, 0x7ac6, 0xcdf9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9b0, 0x001a, 0x001a, 0xe9e0, 0x001a, 0xe8e0, 0x001a, 0xeabb, 0xebbb, 0xdae4, 0x001a, 0xd2e8, 0x6cec, 0x001a, 0x001a, 0x75be, 0x65c0, 0x6aec, 0x001a, 0x6dec, 0x66c0, 0x001a, 0x64ef, 0x6bec, 0xb9f1, 0x4ec3, 0xc1f3, 0x001a, 0x001a, 0x001a, 0x66f5, 0x64f5, 0x001a, 0x001a, 0x65f5, 0x001a, 0x001a, 0xa2f6, 0x001a, 0x5cc5, 0xa4f7, 0xeac5, 0xbcc5, 0xe8c5, 0xe9c5, 0xd4f8, 0x62c6, 0x001a, 0xaab0, 0x001a, 0x001a, 0x001a, 0xbaf1, 0x001a, 0x001a, 0x49d4, 0x001a, 0xa6b9, 0x001a, 0xdbe4, 0x001a, 0x001a, 0xecbb, 0xdce4, 0x001a, 0x001a, 0x001a, 0xd4e8, 0xd3e8, 0x68c0, 0x76be, 0x77be, 0x001a, 0xd7e8, 0xd6e8, 0xd5e8, 0x001a, 0x001a, 0x6eec, 0x71ec, 0x001a, 0x70ec, 0x6fec, 0x67c0, 0x68ef, 0x66ef, 0x65ef, 0x001a, 0x001a, 0x67ef, 0x001a, 0x4fc3, 0xbcf1, 0xbdf1, 0x50c3, 0x001a, 0xbbf1, 0x001a, 0xc3f3, 0xc2f3, 0xc5f3, 0x47c4, 0xc4f3, 0x001a, 0x67f5, 0x69f5, 0x68f5, 0x001a, 0x001a, 0xa3f6, 0xa6f6, 0xa4f6, 0xa5f6, 0xa5f7, 0xbdc5, 0x001a, 0x001a, 0x001a, 0x54f8, 0x55f8, 0x56f8, 0x001a, 0x4bc6, 0x63c6, 0xb6f9, 0xabb0, 0x001a, 0x78be, 0x69c0, 0xbef1, 0x001a, 0xa6f7, 0x001a, 0x001a, 0xc4f9, 0x4ad4, 0x001a, 0x7bc6, 0xacb0, 0x72ec, 0x001a, 0xbff1, 0x001a, 0xc6f3, 0x001a, 0x001a, 0xa7f6, 0xa7f7, 0xadb0, 0x001a, 0xdde4, 0xdee4, 0x001a, 0xedbb, 0xeebb, 0xd9e8, 0x7abe, 0x79be, 0xd8e8, 0x001a, 0x69ef, 0x001a, 0xc0f1, 0xc2f1, 0xc1f1, 0x53c3, 0x52c3, 0x51c3, 0x001a, 0x5ec5, 0xa8f6, 0x001a, 0x5dc5, 0xa9f7, 0xa8f7, 0x001a, 0x4cc6, 0xd5f8, 0xbdb3, 0xeae0, 0x001a, 0x001a, 0x001a, 0xe1e4, 0xdfe4, 0xe0e4, 0x001a, 0x001a, 0xe2e8, 0x001a, 0xdde8, 0xdae8, 0xe1e8, 0x001a, 0x001a, 0x001a, 0xe3e8, 0x001a, 0x001a, 0x7cbe, 0xe0e8, 0xdce8, 0x001a, 0x001a, 0xdbe8, 0xdfe8, 0xdee8, 0x7bbe, 0x001a, 0x001a, 0x7dec, 0x78ec, 0x76ec, 0xa1ec, 0x77ec, 0x001a, 0x73ec, 0x001a, 0x79ec, 0x001a, 0x001a, 0x74ec, 0x72ef, 0x75ec, 0xa2ec, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7cec, 0x6ac0, 0x7bec, 0x7aec, 0x001a, 0x7eec, 0x001a, 0x001a, 0x001a, 0x001a, 0x6aef, 0x6def, 0x001a, 0x001a, 0x6cef, 0x001a, 0x74ef, 0x6fef, 0x73ef, 0x001a, 0x71ef, 0x70ef, 0x6eef, 0x001a, 0x6bef, 0x001a, 0x43c2, 0x42c2, 0x001a, 0x44c2, 0x41c2, 0x75ef, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8f1, 0xcbf1, 0x001a, 0xc9f1, 0xcdf1, 0x001a, 0x001a, 0x001a, 0xcef1, 0x001a, 0xc6f1, 0x58c3, 0xc7f1, 0x001a, 0xc5f1, 0xccf1, 0x001a, 0xc4f1, 0xc3f1, 0x57c3, 0x55c3, 0x54c3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaf1, 0xcff3, 0xd5f3, 0x4ac4, 0xd0f3, 0x001a, 0xd3f3, 0xd7f3, 0x4bc4, 0xd2f3, 0x001a, 0xcaf3, 0x001a, 0xc9f3, 0xd6f3, 0xcdf3, 0x001a, 0xcbf3, 0xd4f3, 0xccf3, 0x49c4, 0x48c4, 0x001a, 0xc7f3, 0xc8f3, 0xd1f3, 0x001a, 0x001a, 0x001a, 0xcef3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6cf5, 0x6ff5, 0x001a, 0x001a, 0x001a, 0x001a, 0x56c3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6df5, 0x73f5, 0x71f5, 0x6bf5, 0x76f5, 0x001a, 0x6af5, 0x001a, 0xcfc4, 0x72f5, 0x001a, 0x001a, 0x001a, 0x6ef5, 0xcec4, 0x75f5, 0x001a, 0x001a, 0x74f5, 0x001a, 0x001a, 0x001a, 0x001a, 0xabf6, 0xaaf6, 0x001a, 0x001a, 0x001a, 0xb1f6, 0x001a, 0xadf6, 0xb0f6, 0x60c5, 0x001a, 0x001a, 0xaef6, 0xaff6, 0x001a, 0xa9f6, 0xacf6, 0x5fc5, 0x001a, 0x001a, 0x001a, 0xbfc5, 0xb4f7, 0xaff7, 0xb3f7, 0x001a, 0xb6f7, 0xb2f7, 0x001a, 0xaef7, 0x001a, 0xc1c5, 0xb1f7, 0xb5f7, 0xc0c5, 0xacf7, 0x70f5, 0xb0f7, 0x001a, 0x001a, 0xadf7, 0x001a, 0xaaf7, 0x001a, 0xabf7, 0xbec5, 0x5af8, 0x5cf8, 0x5ff8, 0x5bf8, 0x60f8, 0x001a, 0x59f8, 0x001a, 0x57f8, 0x001a, 0xebc5, 0x5df8, 0xedc5, 0xecc5, 0x58f8, 0x5ef8, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaf8, 0x4dc6, 0xdbf8, 0x001a, 0xd9f8, 0xd6f8, 0x001a, 0x001a, 0xd8f8, 0xd7f8, 0x5af9, 0x001a, 0x001a, 0x001a, 0x001a, 0x5cf9, 0x5bf9, 0x001a, 0x001a, 0x79f9, 0x001a, 0x78f9, 0x77f9, 0x7af9, 0x001a, 0x73c6, 0x74c6, 0xcaf9, 0xcef9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbeb3, 0xafdc, 0xede0, 0x001a, 0xa7b9, 0xebe0, 0x001a, 0x001a, 0xece0, 0x001a, 0x001a, 0x001a, 0xe2e4, 0xe3e4, 0xf1bb, 0xefbb, 0xe4e4, 0xf0bb, 0xe8e8, 0x001a, 0xebe8, 0xe5e8, 0xece8, 0xe4e8, 0xe6e8, 0x001a, 0xe7e8, 0xeae8, 0x001a, 0x001a, 0xa1be, 0xefe8, 0xeee8, 0x7dbe, 0xe9e8, 0xede8, 0x7ebe, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xacec, 0x001a, 0x6fc0, 0x001a, 0xa7ec, 0x6bc0, 0x001a, 0xa4ec, 0xaaec, 0xadec, 0x001a, 0x70c0, 0x001a, 0xa9ec, 0xa6ec, 0xaeec, 0xa5ec, 0x001a, 0xabec, 0x6cc0, 0x001a, 0xa3ec, 0x6dc0, 0x001a, 0x6ec0, 0xa8ec, 0x001a, 0x001a, 0x001a, 0xa9ef, 0x7aef, 0x7bef, 0x7eef, 0x7cef, 0x001a, 0x76ef, 0x001a, 0x001a, 0x79ef, 0xa5ef, 0x7def, 0x001a, 0x001a, 0x45c2, 0x001a, 0xa7ef, 0xa4ef, 0x46c2, 0xa6ef, 0x77ef, 0xa2ef, 0xa3ef, 0x001a, 0xa1ef, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2f1, 0xd4f1, 0xd7f1, 0x001a, 0x001a, 0xd1f1, 0x001a, 0x59c3, 0xd9f1, 0xd0f1, 0xdaf1, 0x001a, 0xd6f1, 0xd8f1, 0xdcf1, 0xd5f1, 0xddf1, 0xd3f1, 0xcff1, 0x5ac3, 0x001a, 0xdbf1, 0x5bc3, 0x4dc4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x78ef, 0xf1f3, 0xe8f3, 0x4fc4, 0xe4f3, 0x50c4, 0x001a, 0x001a, 0xedf3, 0xe7f3, 0xddf3, 0x4ec4, 0xeaf3, 0xe5f3, 0xe6f3, 0x001a, 0xd8f3, 0xdff3, 0xeef3, 0x001a, 0xebf3, 0x001a, 0xe3f3, 0x001a, 0xeff3, 0xdef3, 0xd9f3, 0xecf3, 0x001a, 0xdbf3, 0xe9f3, 0xe0f3, 0xf0f3, 0xdcf3, 0x4cc4, 0xdaf3, 0xe1f3, 0xe2f3, 0x001a, 0x001a, 0x001a, 0x7df5, 0x001a, 0x7bf5, 0x001a, 0xa2f5, 0x001a, 0xaef5, 0xa5f5, 0x7cf5, 0x78f5, 0xa7f5, 0x7ef5, 0xa3f5, 0x7af5, 0xaaf5, 0x77f5, 0xa1f5, 0xa6f5, 0xa8f5, 0xabf5, 0x79f5, 0x001a, 0xaff5, 0xb0f5, 0xa9f5, 0xadf5, 0xa4f5, 0x001a, 0xc1f6, 0xc4f6, 0x001a, 0x61c5, 0x001a, 0xc3f6, 0xc8f6, 0xc6f6, 0x62c5, 0xbdf6, 0xb3f6, 0xb2f6, 0x64c5, 0xbff6, 0xc0f6, 0xbcf6, 0xb4f6, 0x001a, 0xb9f6, 0xacf5, 0x001a, 0xb5f6, 0x63c5, 0xbbf6, 0x001a, 0xbaf6, 0x001a, 0xb6f6, 0xc2f6, 0x001a, 0xb7f6, 0xbbf7, 0xc5f6, 0xc7f6, 0xbef6, 0xb8f6, 0xbcf7, 0xbef7, 0xb8f7, 0xc2c5, 0x001a, 0xc5f7, 0xc3f7, 0xc3c5, 0xc2f7, 0xc1f7, 0xbaf7, 0xb7f7, 0xbdf7, 0xc6f7, 0xb9f7, 0xbff7, 0x001a, 0x69f8, 0x6ef8, 0x64f8, 0x67f8, 0xeec5, 0x6bf8, 0x001a, 0x72f8, 0xc0f7, 0x001a, 0x65f8, 0x6ff8, 0x73f8, 0x6af8, 0x63f8, 0x6df8, 0x001a, 0x6cf8, 0x71f8, 0x70f8, 0xc4f7, 0x68f8, 0x62f8, 0x66f8, 0x4ec6, 0x4fc6, 0x61f8, 0x001a, 0xe6f8, 0xddf8, 0xe5f8, 0xe2f8, 0xe3f8, 0xdcf8, 0xdff8, 0xe7f8, 0xe1f8, 0xe0f8, 0xdef8, 0x001a, 0xe4f8, 0x001a, 0x5df9, 0x001a, 0x5ef9, 0x001a, 0x60f9, 0x5ff9, 0x62f9, 0x61f9, 0x7cf9, 0x7bf9, 0xb7f9, 0x001a, 0xb8f9, 0x001a, 0xc5f9, 0x78c6, 0x7cc6, 0x001a, 0xcff9, 0x7dc6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfb3, 0x001a, 0x001a, 0x001a, 0xd0c4, 0xc9f6, 0x001a, 0x50c6, 0x51c6, 0x001a, 0xc0b3, 0xeee0, 0x001a, 0xa8b9, 0xf0e8, 0x001a, 0x001a, 0xb0ec, 0xb1ec, 0xafec, 0xabef, 0xaaef, 0x47c2, 0xdff1, 0xacef, 0xdef1, 0x001a, 0x001a, 0xf3f3, 0x51c4, 0x53c4, 0xf2f3, 0x001a, 0x001a, 0x52c4, 0x001a, 0xb1f5, 0xb3f5, 0xb2f5, 0xcaf6, 0x65c5, 0x001a, 0xefc5, 0xe8f8, 0x63f9, 0x001a, 0x001a, 0xd2f9, 0xc1b3, 0x001a, 0xe5e4, 0x001a, 0xa2be, 0x001a, 0x001a, 0x001a, 0xb3ec, 0xb2ec, 0x001a, 0xadef, 0x001a, 0x001a, 0x001a, 0x54c4, 0xd1c4, 0xc7f7, 0xcbf9, 0x001a, 0x001a, 0x001a, 0xc2b3, 0xf2bb, 0x001a, 0xa3be, 0x001a, 0xf4f3, 0x001a, 0x74f8, 0xc0b6, 0x001a, 0x001a, 0x001a, 0x001a, 0xaeef, 0x001a, 0x001a, 0x001a, 0x64c6, 0xc1b6, 0xa4be, 0x48c2, 0x75f8, 0xc2b6, 0x001a, 0xf1e8, 0x72c0, 0xb4ec, 0xb5ec, 0x001a, 0x71c0, 0x001a, 0xafef, 0x4cc2, 0x4ac2, 0x4bc2, 0x49c2, 0xe0f1, 0x5cc3, 0x001a, 0x001a, 0x001a, 0xb5f5, 0xb4f5, 0xb7f5, 0xb6f5, 0xd2c4, 0x001a, 0x001a, 0xcbf6, 0x001a, 0xcdf6, 0xccf6, 0x66c5, 0xc8f7, 0x001a, 0x76f8, 0x77f8, 0xf0c5, 0x64f9, 0x7df9, 0x75c6, 0x001a, 0xb0dc, 0xb6ec, 0xb0ef, 0xf5f3, 0xefe0, 0x001a, 0xb1ef, 0xe2f1, 0xe1f1, 0x001a, 0x001a, 0x001a, 0x001a, 0x78f8, 0x52c6, 0x001a, 0x65f9, 0x7ef9, 0x001a, 0x001a, 0x001a, 0xa9b9, 0xf2e8, 0xf3e8, 0x001a, 0xb7ec, 0xaab9, 0x001a, 0x5dc3, 0xe3f1, 0x001a, 0xcff6, 0x67c5, 0xd0f6, 0xcef6, 0x79f8, 0x001a, 0xe9f8, 0x001a, 0xabb9, 0x001a, 0xb4ef, 0xb3ef, 0xb2ef, 0xe4f1, 0x001a, 0x001a, 0xe8f1, 0xe7f1, 0xe6f1, 0xe5f1, 0x5ec3, 0xf6f3, 0xb9f5, 0xd3c4, 0xb8f5, 0xd1f6, 0xcbf7, 0xcaf7, 0xc4c5, 0xc9f7, 0x7cf8, 0x7bf8, 0x7af8, 0x001a, 0x001a, 0xf3bb, 0x001a, 0xb8ec, 0x4dc2, 0x001a, 0xf7f3, 0xf8f3, 0xccf7, 0x7df8, 0x001a, 0x001a, 0xeaf8, 0x66f9, 0xb9f9, 0xd4f9, 0xf4bb, 0x4ec2, 0xe9f1, 0xf9f3, 0xd2f6, 0x7ef8, 0x001a, 0x001a, 0xa6be, 0x001a, 0xb5ef, 0xeaf1, 0xfaf3, 0xfbf3, 0xfcf3, 0xbef5, 0x001a, 0xbaf5, 0x68c5, 0xbdf5, 0xbcf5, 0xd4c4, 0xbbf5, 0xd6c4, 0x001a, 0xd5c4, 0xd4f6, 0xd3f6, 0x69c5, 0x6ac5, 0x001a, 0x001a, 0xc6c5, 0xcdf7, 0xc5c5, 0x001a, 0xa3f8, 0xa4f8, 0xa2f8, 0xa1f8, 0x54c6, 0x001a, 0xebf8, 0xecf8, 0xedf8, 0x53c6, 0x67f9, 0x6af9, 0x69f9, 0x68f9, 0x001a, 0x001a, 0xd3f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73c0, 0x001a, 0x001a, 0x65c3, 0xbff5, 0xd5f6, 0x001a, 0xc7c5, 0xcef7, 0x001a, 0x001a, 0xd5f9, 0x001a, 0x001a, 0x001a, 0x74c0, 0x001a, 0x001a, 0x001a, 0xb6ef, 0x001a, 0xcff7, 0x001a, 0xa1f9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfa00[ 64 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ac9, 0xfcdd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfe00[ 512 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4aa1, 0x57a1, 0x001a, 0x59a1, 0x5ba1, 0x5fa1, 0x60a1, 0x63a1, 0x64a1, 0x67a1, 0x68a1, 0x6ba1, 0x6ca1, 0x6fa1, 0x70a1, 0x73a1, 0x74a1, 0x77a1, 0x78a1, 0x7ba1, 0x7ca1, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6a1, 0xc7a1, 0xcaa1, 0xcba1, 0xc8a1, 0xc9a1, 0x5ca1, 0x4da1, 0x4ea1, 0x4fa1, 0x001a, 0x51a1, 0x52a1, 0x53a1, 0x54a1, 0x001a, 0x7da1, 0x7ea1, 0xa1a1, 0xa2a1, 0xa3a1, 0xa4a1, 0xcca1, 0xcda1, 0xcea1, 0xdea1, 0xdfa1, 0xe0a1, 0xe1a1, 0xe2a1, 0x001a, 0x42a2, 0x4ca2, 0x4da2, 0x4ea2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x49a1, 0x001a, 0xada1, 0x43a2, 0x48a2, 0xaea1, 0x001a, 0x5da1, 0x5ea1, 0xafa1, 0xcfa1, 0x41a1, 0xd0a1, 0x44a1, 0xfea1, 0xafa2, 0xb0a2, 0xb1a2, 0xb2a2, 0xb3a2, 0xb4a2, 0xb5a2, 0xb6a2, 0xb7a2, 0xb8a2, 0x47a1, 0x46a1, 0xd5a1, 0xd7a1, 0xd6a1, 0x48a1, 0x49a2, 0xcfa2, 0xd0a2, 0xd1a2, 0xd2a2, 0xd3a2, 0xd4a2, 0xd5a2, 0xd6a2, 0xd7a2, 0xd8a2, 0xd9a2, 0xdaa2, 0xdba2, 0xdca2, 0xdda2, 0xdea2, 0xdfa2, 0xe0a2, 0xe1a2, 0xe2a2, 0xe3a2, 0xe4a2, 0xe5a2, 0xe6a2, 0xe7a2, 0xe8a2, 0x001a, 0x40a2, 0x001a, 0x001a, 0xc4a1, 0x001a, 0xe9a2, 0xeaa2, 0xeba2, 0xeca2, 0xeda2, 0xeea2, 0xefa2, 0xf0a2, 0xf1a2, 0xf2a2, 0xf3a2, 0xf4a2, 0xf5a2, 0xf6a2, 0xf7a2, 0xf8a2, 0xf9a2, 0xfaa2, 0xfba2, 0xfca2, 0xfda2, 0xfea2, 0x40a3, 0x41a3, 0x42a3, 0x43a3, 0x61a1, 0x55a1, 0x62a1, 0xe3a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x46a2, 0x47a2, 0x001a, 0xc3a1, 0x001a, 0x44a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; /* Determines the size of a byte stream character from an Unicode character * Adds the size to the byte stream character size value * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_950_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_950_unicode_character_size_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream character size.", function ); return( -1 ); } if( unicode_character < 0x80 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x02c0 ) && ( unicode_character < 0x0400 ) ) { unicode_character -= 0x02c0; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x02c0[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2300 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x2500 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2500; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x2500[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fc0 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xfa00 ) && ( unicode_character < 0xfa40 ) ) { unicode_character -= 0xfa00; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfa00[ unicode_character ]; } else if( ( unicode_character >= 0xfe00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xfe00; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfe00[ unicode_character ]; } byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_character_size += 2; } else { *byte_stream_character_size += 1; } return( 1 ); } /* Copies an Unicode character from a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_950_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_950_copy_from_byte_stream"; uint8_t additional_character = 0; uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } byte_stream_character = byte_stream[ *byte_stream_index ]; if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) { *byte_stream_index += 1; additional_character = byte_stream[ *byte_stream_index ]; if( ( byte_stream_character >= 0xa1 ) && ( byte_stream_character <= 0xa2 ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x7f ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xa1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa140[ additional_character ]; break; case 0xa2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa240[ additional_character ]; break; } } else if( ( additional_character >= 0xa1 ) && ( additional_character < 0xff ) ) { additional_character -= 0xa1; switch( byte_stream_character ) { case 0xa1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa1a1[ additional_character ]; break; case 0xa2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa2a1[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa3 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x7f ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa340[ additional_character ]; } else if( ( additional_character >= 0xa1 ) && ( additional_character < 0xc0 ) ) { additional_character -= 0xa1; *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa3a1[ additional_character ]; } else if( additional_character == 0xe1 ) { *unicode_character = 0x20ac; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xa4 ) && ( byte_stream_character <= 0xc5 ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x7f ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xa4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa440[ additional_character ]; break; case 0xa5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa540[ additional_character ]; break; case 0xa6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa640[ additional_character ]; break; case 0xa7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa740[ additional_character ]; break; case 0xa8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa840[ additional_character ]; break; case 0xa9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa940[ additional_character ]; break; case 0xaa: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaa40[ additional_character ]; break; case 0xab: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xab40[ additional_character ]; break; case 0xac: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xac40[ additional_character ]; break; case 0xad: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xad40[ additional_character ]; break; case 0xae: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xae40[ additional_character ]; break; case 0xaf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaf40[ additional_character ]; break; case 0xb0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb040[ additional_character ]; break; case 0xb1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb140[ additional_character ]; break; case 0xb2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb240[ additional_character ]; break; case 0xb3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb340[ additional_character ]; break; case 0xb4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb440[ additional_character ]; break; case 0xb5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb540[ additional_character ]; break; case 0xb6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb640[ additional_character ]; break; case 0xb7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb740[ additional_character ]; break; case 0xb8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb840[ additional_character ]; break; case 0xb9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb940[ additional_character ]; break; case 0xba: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xba40[ additional_character ]; break; case 0xbb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbb40[ additional_character ]; break; case 0xbc: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbc40[ additional_character ]; break; case 0xbd: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbd40[ additional_character ]; break; case 0xbe: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbe40[ additional_character ]; break; case 0xbf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbf40[ additional_character ]; break; case 0xc0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc040[ additional_character ]; break; case 0xc1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc140[ additional_character ]; break; case 0xc2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc240[ additional_character ]; break; case 0xc3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc340[ additional_character ]; break; case 0xc4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc440[ additional_character ]; break; case 0xc5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc540[ additional_character ]; break; } } else if( ( additional_character >= 0xa1 ) && ( additional_character < 0xff ) ) { additional_character -= 0xa1; switch( byte_stream_character ) { case 0xa4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa4a1[ additional_character ]; break; case 0xa5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa5a1[ additional_character ]; break; case 0xa6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa6a1[ additional_character ]; break; case 0xa7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa7a1[ additional_character ]; break; case 0xa8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa8a1[ additional_character ]; break; case 0xa9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa9a1[ additional_character ]; break; case 0xaa: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaaa1[ additional_character ]; break; case 0xab: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaba1[ additional_character ]; break; case 0xac: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaca1[ additional_character ]; break; case 0xad: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xada1[ additional_character ]; break; case 0xae: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaea1[ additional_character ]; break; case 0xaf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xafa1[ additional_character ]; break; case 0xb0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb0a1[ additional_character ]; break; case 0xb1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb1a1[ additional_character ]; break; case 0xb2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb2a1[ additional_character ]; break; case 0xb3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb3a1[ additional_character ]; break; case 0xb4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb4a1[ additional_character ]; break; case 0xb5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb5a1[ additional_character ]; break; case 0xb6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb6a1[ additional_character ]; break; case 0xb7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb7a1[ additional_character ]; break; case 0xb8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb8a1[ additional_character ]; break; case 0xb9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb9a1[ additional_character ]; break; case 0xba: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbaa1[ additional_character ]; break; case 0xbb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbba1[ additional_character ]; break; case 0xbc: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbca1[ additional_character ]; break; case 0xbd: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbda1[ additional_character ]; break; case 0xbe: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbea1[ additional_character ]; break; case 0xbf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbfa1[ additional_character ]; break; case 0xc0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc0a1[ additional_character ]; break; case 0xc1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc1a1[ additional_character ]; break; case 0xc2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc2a1[ additional_character ]; break; case 0xc3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc3a1[ additional_character ]; break; case 0xc4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc4a1[ additional_character ]; break; case 0xc5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc5a1[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xc6 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x7f ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc640[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xc9 ) && ( byte_stream_character <= 0xf9 ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x7f ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xc9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc940[ additional_character ]; break; case 0xca: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xca40[ additional_character ]; break; case 0xcb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcb40[ additional_character ]; break; case 0xcc: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcc40[ additional_character ]; break; case 0xcd: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcd40[ additional_character ]; break; case 0xce: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xce40[ additional_character ]; break; case 0xcf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcf40[ additional_character ]; break; case 0xd0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd040[ additional_character ]; break; case 0xd1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd140[ additional_character ]; break; case 0xd2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd240[ additional_character ]; break; case 0xd3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd340[ additional_character ]; break; case 0xd4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd440[ additional_character ]; break; case 0xd5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd540[ additional_character ]; break; case 0xd6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd640[ additional_character ]; break; case 0xd7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd740[ additional_character ]; break; case 0xd8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd840[ additional_character ]; break; case 0xd9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd940[ additional_character ]; break; case 0xda: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xda40[ additional_character ]; break; case 0xdb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdb40[ additional_character ]; break; case 0xdc: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdc40[ additional_character ]; break; case 0xdd: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdd40[ additional_character ]; break; case 0xde: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xde40[ additional_character ]; break; case 0xdf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdf40[ additional_character ]; break; case 0xe0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe040[ additional_character ]; break; case 0xe1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe140[ additional_character ]; break; case 0xe2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe240[ additional_character ]; break; case 0xe3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe340[ additional_character ]; break; case 0xe4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe440[ additional_character ]; break; case 0xe5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe540[ additional_character ]; break; case 0xe6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe640[ additional_character ]; break; case 0xe7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe740[ additional_character ]; break; case 0xe8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe840[ additional_character ]; break; case 0xe9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe940[ additional_character ]; break; case 0xea: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xea40[ additional_character ]; break; case 0xeb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeb40[ additional_character ]; break; case 0xec: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xec40[ additional_character ]; break; case 0xed: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xed40[ additional_character ]; break; case 0xee: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xee40[ additional_character ]; break; case 0xef: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xef40[ additional_character ]; break; case 0xf0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf040[ additional_character ]; break; case 0xf1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf140[ additional_character ]; break; case 0xf2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf240[ additional_character ]; break; case 0xf3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf340[ additional_character ]; break; case 0xf4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf440[ additional_character ]; break; case 0xf5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf540[ additional_character ]; break; case 0xf6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf640[ additional_character ]; break; case 0xf7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf740[ additional_character ]; break; case 0xf8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf840[ additional_character ]; break; case 0xf9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf940[ additional_character ]; break; } } else if( ( additional_character >= 0xa1 ) && ( additional_character < 0xff ) ) { additional_character -= 0xa1; switch( byte_stream_character ) { case 0xc9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc9a1[ additional_character ]; break; case 0xca: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcaa1[ additional_character ]; break; case 0xcb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcba1[ additional_character ]; break; case 0xcc: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcca1[ additional_character ]; break; case 0xcd: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcda1[ additional_character ]; break; case 0xce: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcea1[ additional_character ]; break; case 0xcf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcfa1[ additional_character ]; break; case 0xd0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd0a1[ additional_character ]; break; case 0xd1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd1a1[ additional_character ]; break; case 0xd2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd2a1[ additional_character ]; break; case 0xd3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd3a1[ additional_character ]; break; case 0xd4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd4a1[ additional_character ]; break; case 0xd5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd5a1[ additional_character ]; break; case 0xd6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd6a1[ additional_character ]; break; case 0xd7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd7a1[ additional_character ]; break; case 0xd8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd8a1[ additional_character ]; break; case 0xd9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd9a1[ additional_character ]; break; case 0xda: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdaa1[ additional_character ]; break; case 0xdb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdba1[ additional_character ]; break; case 0xdc: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdca1[ additional_character ]; break; case 0xdd: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdda1[ additional_character ]; break; case 0xde: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdea1[ additional_character ]; break; case 0xdf: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdfa1[ additional_character ]; break; case 0xe0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe0a1[ additional_character ]; break; case 0xe1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe1a1[ additional_character ]; break; case 0xe2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe2a1[ additional_character ]; break; case 0xe3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe3a1[ additional_character ]; break; case 0xe4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe4a1[ additional_character ]; break; case 0xe5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe5a1[ additional_character ]; break; case 0xe6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe6a1[ additional_character ]; break; case 0xe7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe7a1[ additional_character ]; break; case 0xe8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe8a1[ additional_character ]; break; case 0xe9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe9a1[ additional_character ]; break; case 0xea: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeaa1[ additional_character ]; break; case 0xeb: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeba1[ additional_character ]; break; case 0xec: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeca1[ additional_character ]; break; case 0xed: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeda1[ additional_character ]; break; case 0xee: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeea1[ additional_character ]; break; case 0xef: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xefa1[ additional_character ]; break; case 0xf0: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf0a1[ additional_character ]; break; case 0xf1: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf1a1[ additional_character ]; break; case 0xf2: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf2a1[ additional_character ]; break; case 0xf3: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf3a1[ additional_character ]; break; case 0xf4: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf4a1[ additional_character ]; break; case 0xf5: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf5a1[ additional_character ]; break; case 0xf6: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf6a1[ additional_character ]; break; case 0xf7: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf7a1[ additional_character ]; break; case 0xf8: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf8a1[ additional_character ]; break; case 0xf9: *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf9a1[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } *byte_stream_index += 1; return( 1 ); } /* Copies an Unicode character to a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_950_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_950_copy_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( unicode_character < 0x80 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x02c0 ) && ( unicode_character < 0x0400 ) ) { unicode_character -= 0x02c0; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x02c0[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2300 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x2500 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2500; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x2500[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fc0 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xfa00 ) && ( unicode_character < 0xfa40 ) ) { unicode_character -= 0xfa00; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfa00[ unicode_character ]; } else if( ( unicode_character >= 0xfe00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xfe00; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfe00[ unicode_character ]; } byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_index += 1; byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); } *byte_stream_index += 1; return( 1 ); } libfsapfs-20190210/libuna/libuna_utf8_string.h0000664000175000017500000002141013430101233023240 0ustar00lordyestalordyesta00000000000000/* * UTF-8 string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UTF8_STRING_H ) #define _LIBUNA_UTF8_STRING_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_utf8_string_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, int codepage, size_t *utf8_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_copy_from_byte_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); /* The functionality for libuna_utf8_string_copy_to_byte_stream is implemented by * libuna_byte_stream_copy_from_utf8 */ LIBUNA_EXTERN \ int libuna_utf8_string_with_index_copy_from_byte_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_compare_with_byte_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_size_from_utf7_stream( const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf8_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_copy_from_utf7_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); /* The functionality for libuna_utf8_string_copy_to_utf7_stream is implemented by * libuna_utf7_stream_copy_from_utf8 */ LIBUNA_EXTERN \ int libuna_utf8_string_with_index_copy_from_utf7_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_compare_with_utf7_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_size_from_utf8_stream( const uint8_t *utf8_stream, size_t utf8_stream_size, size_t *utf8_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_copy_from_utf8_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); /* The functionality for libuna_utf8_string_copy_to_utf8_stream is implemented by * libuna_utf8_stream_copy_from_utf8 */ LIBUNA_EXTERN \ int libuna_utf8_string_with_index_copy_from_utf8_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_compare_with_utf8_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf8_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_copy_from_utf16( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf8_string_copy_to_utf16 is implemented by * libuna_utf16_string_copy_from_utf8 */ LIBUNA_EXTERN \ int libuna_utf8_string_with_index_copy_from_utf16( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_compare_with_utf16( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_size_from_utf16_stream( const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, size_t *utf8_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_copy_from_utf16_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); /* The functionality for libuna_utf8_string_copy_to_utf16_stream is implemented by * libuna_utf16_stream_copy_from_utf8 */ LIBUNA_EXTERN \ int libuna_utf8_string_with_index_copy_from_utf16_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_compare_with_utf16_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf8_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_copy_from_utf32( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf8_string_copy_to_utf32 is implemented by * libuna_utf32_string_copy_from_utf8 */ LIBUNA_EXTERN \ int libuna_utf8_string_with_index_copy_from_utf32( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_compare_with_utf32( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_size_from_utf32_stream( const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, size_t *utf8_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_copy_from_utf32_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); /* The functionality for libuna_utf8_string_copy_to_utf32_stream is implemented by * libuna_utf32_stream_copy_from_utf8 */ LIBUNA_EXTERN \ int libuna_utf8_string_with_index_copy_from_utf32_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_string_compare_with_utf32_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UTF8_STRING_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_936.c0000664000175000017500000151072113430101233024712 0ustar00lordyestalordyesta00000000000000/* * Windows 936 codepage (Chinese Simplified) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_936.h" #include "libuna_libcerror.h" #include "libuna_types.h" /* Extended ASCII to Unicode character lookup table for Windows 936 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8140[ 192 ] = { 0x4e02, 0x4e04, 0x4e05, 0x4e06, 0x4e0f, 0x4e12, 0x4e17, 0x4e1f, 0x4e20, 0x4e21, 0x4e23, 0x4e26, 0x4e29, 0x4e2e, 0x4e2f, 0x4e31, 0x4e33, 0x4e35, 0x4e37, 0x4e3c, 0x4e40, 0x4e41, 0x4e42, 0x4e44, 0x4e46, 0x4e4a, 0x4e51, 0x4e55, 0x4e57, 0x4e5a, 0x4e5b, 0x4e62, 0x4e63, 0x4e64, 0x4e65, 0x4e67, 0x4e68, 0x4e6a, 0x4e6b, 0x4e6c, 0x4e6d, 0x4e6e, 0x4e6f, 0x4e72, 0x4e74, 0x4e75, 0x4e76, 0x4e77, 0x4e78, 0x4e79, 0x4e7a, 0x4e7b, 0x4e7c, 0x4e7d, 0x4e7f, 0x4e80, 0x4e81, 0x4e82, 0x4e83, 0x4e84, 0x4e85, 0x4e87, 0x4e8a, 0xfffd, 0x4e90, 0x4e96, 0x4e97, 0x4e99, 0x4e9c, 0x4e9d, 0x4e9e, 0x4ea3, 0x4eaa, 0x4eaf, 0x4eb0, 0x4eb1, 0x4eb4, 0x4eb6, 0x4eb7, 0x4eb8, 0x4eb9, 0x4ebc, 0x4ebd, 0x4ebe, 0x4ec8, 0x4ecc, 0x4ecf, 0x4ed0, 0x4ed2, 0x4eda, 0x4edb, 0x4edc, 0x4ee0, 0x4ee2, 0x4ee6, 0x4ee7, 0x4ee9, 0x4eed, 0x4eee, 0x4eef, 0x4ef1, 0x4ef4, 0x4ef8, 0x4ef9, 0x4efa, 0x4efc, 0x4efe, 0x4f00, 0x4f02, 0x4f03, 0x4f04, 0x4f05, 0x4f06, 0x4f07, 0x4f08, 0x4f0b, 0x4f0c, 0x4f12, 0x4f13, 0x4f14, 0x4f15, 0x4f16, 0x4f1c, 0x4f1d, 0x4f21, 0x4f23, 0x4f28, 0x4f29, 0x4f2c, 0x4f2d, 0x4f2e, 0x4f31, 0x4f33, 0x4f35, 0x4f37, 0x4f39, 0x4f3b, 0x4f3e, 0x4f3f, 0x4f40, 0x4f41, 0x4f42, 0x4f44, 0x4f45, 0x4f47, 0x4f48, 0x4f49, 0x4f4a, 0x4f4b, 0x4f4c, 0x4f52, 0x4f54, 0x4f56, 0x4f61, 0x4f62, 0x4f66, 0x4f68, 0x4f6a, 0x4f6b, 0x4f6d, 0x4f6e, 0x4f71, 0x4f72, 0x4f75, 0x4f77, 0x4f78, 0x4f79, 0x4f7a, 0x4f7d, 0x4f80, 0x4f81, 0x4f82, 0x4f85, 0x4f86, 0x4f87, 0x4f8a, 0x4f8c, 0x4f8e, 0x4f90, 0x4f92, 0x4f93, 0x4f95, 0x4f96, 0x4f98, 0x4f99, 0x4f9a, 0x4f9c, 0x4f9e, 0x4f9f, 0x4fa1, 0x4fa2, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8240[ 192 ] = { 0x4fa4, 0x4fab, 0x4fad, 0x4fb0, 0x4fb1, 0x4fb2, 0x4fb3, 0x4fb4, 0x4fb6, 0x4fb7, 0x4fb8, 0x4fb9, 0x4fba, 0x4fbb, 0x4fbc, 0x4fbd, 0x4fbe, 0x4fc0, 0x4fc1, 0x4fc2, 0x4fc6, 0x4fc7, 0x4fc8, 0x4fc9, 0x4fcb, 0x4fcc, 0x4fcd, 0x4fd2, 0x4fd3, 0x4fd4, 0x4fd5, 0x4fd6, 0x4fd9, 0x4fdb, 0x4fe0, 0x4fe2, 0x4fe4, 0x4fe5, 0x4fe7, 0x4feb, 0x4fec, 0x4ff0, 0x4ff2, 0x4ff4, 0x4ff5, 0x4ff6, 0x4ff7, 0x4ff9, 0x4ffb, 0x4ffc, 0x4ffd, 0x4fff, 0x5000, 0x5001, 0x5002, 0x5003, 0x5004, 0x5005, 0x5006, 0x5007, 0x5008, 0x5009, 0x500a, 0xfffd, 0x500b, 0x500e, 0x5010, 0x5011, 0x5013, 0x5015, 0x5016, 0x5017, 0x501b, 0x501d, 0x501e, 0x5020, 0x5022, 0x5023, 0x5024, 0x5027, 0x502b, 0x502f, 0x5030, 0x5031, 0x5032, 0x5033, 0x5034, 0x5035, 0x5036, 0x5037, 0x5038, 0x5039, 0x503b, 0x503d, 0x503f, 0x5040, 0x5041, 0x5042, 0x5044, 0x5045, 0x5046, 0x5049, 0x504a, 0x504b, 0x504d, 0x5050, 0x5051, 0x5052, 0x5053, 0x5054, 0x5056, 0x5057, 0x5058, 0x5059, 0x505b, 0x505d, 0x505e, 0x505f, 0x5060, 0x5061, 0x5062, 0x5063, 0x5064, 0x5066, 0x5067, 0x5068, 0x5069, 0x506a, 0x506b, 0x506d, 0x506e, 0x506f, 0x5070, 0x5071, 0x5072, 0x5073, 0x5074, 0x5075, 0x5078, 0x5079, 0x507a, 0x507c, 0x507d, 0x5081, 0x5082, 0x5083, 0x5084, 0x5086, 0x5087, 0x5089, 0x508a, 0x508b, 0x508c, 0x508e, 0x508f, 0x5090, 0x5091, 0x5092, 0x5093, 0x5094, 0x5095, 0x5096, 0x5097, 0x5098, 0x5099, 0x509a, 0x509b, 0x509c, 0x509d, 0x509e, 0x509f, 0x50a0, 0x50a1, 0x50a2, 0x50a4, 0x50a6, 0x50aa, 0x50ab, 0x50ad, 0x50ae, 0x50af, 0x50b0, 0x50b1, 0x50b3, 0x50b4, 0x50b5, 0x50b6, 0x50b7, 0x50b8, 0x50b9, 0x50bc, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8340[ 192 ] = { 0x50bd, 0x50be, 0x50bf, 0x50c0, 0x50c1, 0x50c2, 0x50c3, 0x50c4, 0x50c5, 0x50c6, 0x50c7, 0x50c8, 0x50c9, 0x50ca, 0x50cb, 0x50cc, 0x50cd, 0x50ce, 0x50d0, 0x50d1, 0x50d2, 0x50d3, 0x50d4, 0x50d5, 0x50d7, 0x50d8, 0x50d9, 0x50db, 0x50dc, 0x50dd, 0x50de, 0x50df, 0x50e0, 0x50e1, 0x50e2, 0x50e3, 0x50e4, 0x50e5, 0x50e8, 0x50e9, 0x50ea, 0x50eb, 0x50ef, 0x50f0, 0x50f1, 0x50f2, 0x50f4, 0x50f6, 0x50f7, 0x50f8, 0x50f9, 0x50fa, 0x50fc, 0x50fd, 0x50fe, 0x50ff, 0x5100, 0x5101, 0x5102, 0x5103, 0x5104, 0x5105, 0x5108, 0xfffd, 0x5109, 0x510a, 0x510c, 0x510d, 0x510e, 0x510f, 0x5110, 0x5111, 0x5113, 0x5114, 0x5115, 0x5116, 0x5117, 0x5118, 0x5119, 0x511a, 0x511b, 0x511c, 0x511d, 0x511e, 0x511f, 0x5120, 0x5122, 0x5123, 0x5124, 0x5125, 0x5126, 0x5127, 0x5128, 0x5129, 0x512a, 0x512b, 0x512c, 0x512d, 0x512e, 0x512f, 0x5130, 0x5131, 0x5132, 0x5133, 0x5134, 0x5135, 0x5136, 0x5137, 0x5138, 0x5139, 0x513a, 0x513b, 0x513c, 0x513d, 0x513e, 0x5142, 0x5147, 0x514a, 0x514c, 0x514e, 0x514f, 0x5150, 0x5152, 0x5153, 0x5157, 0x5158, 0x5159, 0x515b, 0x515d, 0x515e, 0x515f, 0x5160, 0x5161, 0x5163, 0x5164, 0x5166, 0x5167, 0x5169, 0x516a, 0x516f, 0x5172, 0x517a, 0x517e, 0x517f, 0x5183, 0x5184, 0x5186, 0x5187, 0x518a, 0x518b, 0x518e, 0x518f, 0x5190, 0x5191, 0x5193, 0x5194, 0x5198, 0x519a, 0x519d, 0x519e, 0x519f, 0x51a1, 0x51a3, 0x51a6, 0x51a7, 0x51a8, 0x51a9, 0x51aa, 0x51ad, 0x51ae, 0x51b4, 0x51b8, 0x51b9, 0x51ba, 0x51be, 0x51bf, 0x51c1, 0x51c2, 0x51c3, 0x51c5, 0x51c8, 0x51ca, 0x51cd, 0x51ce, 0x51d0, 0x51d2, 0x51d3, 0x51d4, 0x51d5, 0x51d6, 0x51d7, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8440[ 192 ] = { 0x51d8, 0x51d9, 0x51da, 0x51dc, 0x51de, 0x51df, 0x51e2, 0x51e3, 0x51e5, 0x51e6, 0x51e7, 0x51e8, 0x51e9, 0x51ea, 0x51ec, 0x51ee, 0x51f1, 0x51f2, 0x51f4, 0x51f7, 0x51fe, 0x5204, 0x5205, 0x5209, 0x520b, 0x520c, 0x520f, 0x5210, 0x5213, 0x5214, 0x5215, 0x521c, 0x521e, 0x521f, 0x5221, 0x5222, 0x5223, 0x5225, 0x5226, 0x5227, 0x522a, 0x522c, 0x522f, 0x5231, 0x5232, 0x5234, 0x5235, 0x523c, 0x523e, 0x5244, 0x5245, 0x5246, 0x5247, 0x5248, 0x5249, 0x524b, 0x524e, 0x524f, 0x5252, 0x5253, 0x5255, 0x5257, 0x5258, 0xfffd, 0x5259, 0x525a, 0x525b, 0x525d, 0x525f, 0x5260, 0x5262, 0x5263, 0x5264, 0x5266, 0x5268, 0x526b, 0x526c, 0x526d, 0x526e, 0x5270, 0x5271, 0x5273, 0x5274, 0x5275, 0x5276, 0x5277, 0x5278, 0x5279, 0x527a, 0x527b, 0x527c, 0x527e, 0x5280, 0x5283, 0x5284, 0x5285, 0x5286, 0x5287, 0x5289, 0x528a, 0x528b, 0x528c, 0x528d, 0x528e, 0x528f, 0x5291, 0x5292, 0x5294, 0x5295, 0x5296, 0x5297, 0x5298, 0x5299, 0x529a, 0x529c, 0x52a4, 0x52a5, 0x52a6, 0x52a7, 0x52ae, 0x52af, 0x52b0, 0x52b4, 0x52b5, 0x52b6, 0x52b7, 0x52b8, 0x52b9, 0x52ba, 0x52bb, 0x52bc, 0x52bd, 0x52c0, 0x52c1, 0x52c2, 0x52c4, 0x52c5, 0x52c6, 0x52c8, 0x52ca, 0x52cc, 0x52cd, 0x52ce, 0x52cf, 0x52d1, 0x52d3, 0x52d4, 0x52d5, 0x52d7, 0x52d9, 0x52da, 0x52db, 0x52dc, 0x52dd, 0x52de, 0x52e0, 0x52e1, 0x52e2, 0x52e3, 0x52e5, 0x52e6, 0x52e7, 0x52e8, 0x52e9, 0x52ea, 0x52eb, 0x52ec, 0x52ed, 0x52ee, 0x52ef, 0x52f1, 0x52f2, 0x52f3, 0x52f4, 0x52f5, 0x52f6, 0x52f7, 0x52f8, 0x52fb, 0x52fc, 0x52fd, 0x5301, 0x5302, 0x5303, 0x5304, 0x5307, 0x5309, 0x530a, 0x530b, 0x530c, 0x530e, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8540[ 192 ] = { 0x5311, 0x5312, 0x5313, 0x5314, 0x5318, 0x531b, 0x531c, 0x531e, 0x531f, 0x5322, 0x5324, 0x5325, 0x5327, 0x5328, 0x5329, 0x532b, 0x532c, 0x532d, 0x532f, 0x5330, 0x5331, 0x5332, 0x5333, 0x5334, 0x5335, 0x5336, 0x5337, 0x5338, 0x533c, 0x533d, 0x5340, 0x5342, 0x5344, 0x5346, 0x534b, 0x534c, 0x534d, 0x5350, 0x5354, 0x5358, 0x5359, 0x535b, 0x535d, 0x5365, 0x5368, 0x536a, 0x536c, 0x536d, 0x5372, 0x5376, 0x5379, 0x537b, 0x537c, 0x537d, 0x537e, 0x5380, 0x5381, 0x5383, 0x5387, 0x5388, 0x538a, 0x538e, 0x538f, 0xfffd, 0x5390, 0x5391, 0x5392, 0x5393, 0x5394, 0x5396, 0x5397, 0x5399, 0x539b, 0x539c, 0x539e, 0x53a0, 0x53a1, 0x53a4, 0x53a7, 0x53aa, 0x53ab, 0x53ac, 0x53ad, 0x53af, 0x53b0, 0x53b1, 0x53b2, 0x53b3, 0x53b4, 0x53b5, 0x53b7, 0x53b8, 0x53b9, 0x53ba, 0x53bc, 0x53bd, 0x53be, 0x53c0, 0x53c3, 0x53c4, 0x53c5, 0x53c6, 0x53c7, 0x53ce, 0x53cf, 0x53d0, 0x53d2, 0x53d3, 0x53d5, 0x53da, 0x53dc, 0x53dd, 0x53de, 0x53e1, 0x53e2, 0x53e7, 0x53f4, 0x53fa, 0x53fe, 0x53ff, 0x5400, 0x5402, 0x5405, 0x5407, 0x540b, 0x5414, 0x5418, 0x5419, 0x541a, 0x541c, 0x5422, 0x5424, 0x5425, 0x542a, 0x5430, 0x5433, 0x5436, 0x5437, 0x543a, 0x543d, 0x543f, 0x5441, 0x5442, 0x5444, 0x5445, 0x5447, 0x5449, 0x544c, 0x544d, 0x544e, 0x544f, 0x5451, 0x545a, 0x545d, 0x545e, 0x545f, 0x5460, 0x5461, 0x5463, 0x5465, 0x5467, 0x5469, 0x546a, 0x546b, 0x546c, 0x546d, 0x546e, 0x546f, 0x5470, 0x5474, 0x5479, 0x547a, 0x547e, 0x547f, 0x5481, 0x5483, 0x5485, 0x5487, 0x5488, 0x5489, 0x548a, 0x548d, 0x5491, 0x5493, 0x5497, 0x5498, 0x549c, 0x549e, 0x549f, 0x54a0, 0x54a1, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8640[ 192 ] = { 0x54a2, 0x54a5, 0x54ae, 0x54b0, 0x54b2, 0x54b5, 0x54b6, 0x54b7, 0x54b9, 0x54ba, 0x54bc, 0x54be, 0x54c3, 0x54c5, 0x54ca, 0x54cb, 0x54d6, 0x54d8, 0x54db, 0x54e0, 0x54e1, 0x54e2, 0x54e3, 0x54e4, 0x54eb, 0x54ec, 0x54ef, 0x54f0, 0x54f1, 0x54f4, 0x54f5, 0x54f6, 0x54f7, 0x54f8, 0x54f9, 0x54fb, 0x54fe, 0x5500, 0x5502, 0x5503, 0x5504, 0x5505, 0x5508, 0x550a, 0x550b, 0x550c, 0x550d, 0x550e, 0x5512, 0x5513, 0x5515, 0x5516, 0x5517, 0x5518, 0x5519, 0x551a, 0x551c, 0x551d, 0x551e, 0x551f, 0x5521, 0x5525, 0x5526, 0xfffd, 0x5528, 0x5529, 0x552b, 0x552d, 0x5532, 0x5534, 0x5535, 0x5536, 0x5538, 0x5539, 0x553a, 0x553b, 0x553d, 0x5540, 0x5542, 0x5545, 0x5547, 0x5548, 0x554b, 0x554c, 0x554d, 0x554e, 0x554f, 0x5551, 0x5552, 0x5553, 0x5554, 0x5557, 0x5558, 0x5559, 0x555a, 0x555b, 0x555d, 0x555e, 0x555f, 0x5560, 0x5562, 0x5563, 0x5568, 0x5569, 0x556b, 0x556f, 0x5570, 0x5571, 0x5572, 0x5573, 0x5574, 0x5579, 0x557a, 0x557d, 0x557f, 0x5585, 0x5586, 0x558c, 0x558d, 0x558e, 0x5590, 0x5592, 0x5593, 0x5595, 0x5596, 0x5597, 0x559a, 0x559b, 0x559e, 0x55a0, 0x55a1, 0x55a2, 0x55a3, 0x55a4, 0x55a5, 0x55a6, 0x55a8, 0x55a9, 0x55aa, 0x55ab, 0x55ac, 0x55ad, 0x55ae, 0x55af, 0x55b0, 0x55b2, 0x55b4, 0x55b6, 0x55b8, 0x55ba, 0x55bc, 0x55bf, 0x55c0, 0x55c1, 0x55c2, 0x55c3, 0x55c6, 0x55c7, 0x55c8, 0x55ca, 0x55cb, 0x55ce, 0x55cf, 0x55d0, 0x55d5, 0x55d7, 0x55d8, 0x55d9, 0x55da, 0x55db, 0x55de, 0x55e0, 0x55e2, 0x55e7, 0x55e9, 0x55ed, 0x55ee, 0x55f0, 0x55f1, 0x55f4, 0x55f6, 0x55f8, 0x55f9, 0x55fa, 0x55fb, 0x55fc, 0x55ff, 0x5602, 0x5603, 0x5604, 0x5605, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8740[ 192 ] = { 0x5606, 0x5607, 0x560a, 0x560b, 0x560d, 0x5610, 0x5611, 0x5612, 0x5613, 0x5614, 0x5615, 0x5616, 0x5617, 0x5619, 0x561a, 0x561c, 0x561d, 0x5620, 0x5621, 0x5622, 0x5625, 0x5626, 0x5628, 0x5629, 0x562a, 0x562b, 0x562e, 0x562f, 0x5630, 0x5633, 0x5635, 0x5637, 0x5638, 0x563a, 0x563c, 0x563d, 0x563e, 0x5640, 0x5641, 0x5642, 0x5643, 0x5644, 0x5645, 0x5646, 0x5647, 0x5648, 0x5649, 0x564a, 0x564b, 0x564f, 0x5650, 0x5651, 0x5652, 0x5653, 0x5655, 0x5656, 0x565a, 0x565b, 0x565d, 0x565e, 0x565f, 0x5660, 0x5661, 0xfffd, 0x5663, 0x5665, 0x5666, 0x5667, 0x566d, 0x566e, 0x566f, 0x5670, 0x5672, 0x5673, 0x5674, 0x5675, 0x5677, 0x5678, 0x5679, 0x567a, 0x567d, 0x567e, 0x567f, 0x5680, 0x5681, 0x5682, 0x5683, 0x5684, 0x5687, 0x5688, 0x5689, 0x568a, 0x568b, 0x568c, 0x568d, 0x5690, 0x5691, 0x5692, 0x5694, 0x5695, 0x5696, 0x5697, 0x5698, 0x5699, 0x569a, 0x569b, 0x569c, 0x569d, 0x569e, 0x569f, 0x56a0, 0x56a1, 0x56a2, 0x56a4, 0x56a5, 0x56a6, 0x56a7, 0x56a8, 0x56a9, 0x56aa, 0x56ab, 0x56ac, 0x56ad, 0x56ae, 0x56b0, 0x56b1, 0x56b2, 0x56b3, 0x56b4, 0x56b5, 0x56b6, 0x56b8, 0x56b9, 0x56ba, 0x56bb, 0x56bd, 0x56be, 0x56bf, 0x56c0, 0x56c1, 0x56c2, 0x56c3, 0x56c4, 0x56c5, 0x56c6, 0x56c7, 0x56c8, 0x56c9, 0x56cb, 0x56cc, 0x56cd, 0x56ce, 0x56cf, 0x56d0, 0x56d1, 0x56d2, 0x56d3, 0x56d5, 0x56d6, 0x56d8, 0x56d9, 0x56dc, 0x56e3, 0x56e5, 0x56e6, 0x56e7, 0x56e8, 0x56e9, 0x56ea, 0x56ec, 0x56ee, 0x56ef, 0x56f2, 0x56f3, 0x56f6, 0x56f7, 0x56f8, 0x56fb, 0x56fc, 0x5700, 0x5701, 0x5702, 0x5705, 0x5707, 0x570b, 0x570c, 0x570d, 0x570e, 0x570f, 0x5710, 0x5711, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8840[ 192 ] = { 0x5712, 0x5713, 0x5714, 0x5715, 0x5716, 0x5717, 0x5718, 0x5719, 0x571a, 0x571b, 0x571d, 0x571e, 0x5720, 0x5721, 0x5722, 0x5724, 0x5725, 0x5726, 0x5727, 0x572b, 0x5731, 0x5732, 0x5734, 0x5735, 0x5736, 0x5737, 0x5738, 0x573c, 0x573d, 0x573f, 0x5741, 0x5743, 0x5744, 0x5745, 0x5746, 0x5748, 0x5749, 0x574b, 0x5752, 0x5753, 0x5754, 0x5755, 0x5756, 0x5758, 0x5759, 0x5762, 0x5763, 0x5765, 0x5767, 0x576c, 0x576e, 0x5770, 0x5771, 0x5772, 0x5774, 0x5775, 0x5778, 0x5779, 0x577a, 0x577d, 0x577e, 0x577f, 0x5780, 0xfffd, 0x5781, 0x5787, 0x5788, 0x5789, 0x578a, 0x578d, 0x578e, 0x578f, 0x5790, 0x5791, 0x5794, 0x5795, 0x5796, 0x5797, 0x5798, 0x5799, 0x579a, 0x579c, 0x579d, 0x579e, 0x579f, 0x57a5, 0x57a8, 0x57aa, 0x57ac, 0x57af, 0x57b0, 0x57b1, 0x57b3, 0x57b5, 0x57b6, 0x57b7, 0x57b9, 0x57ba, 0x57bb, 0x57bc, 0x57bd, 0x57be, 0x57bf, 0x57c0, 0x57c1, 0x57c4, 0x57c5, 0x57c6, 0x57c7, 0x57c8, 0x57c9, 0x57ca, 0x57cc, 0x57cd, 0x57d0, 0x57d1, 0x57d3, 0x57d6, 0x57d7, 0x57db, 0x57dc, 0x57de, 0x57e1, 0x57e2, 0x57e3, 0x57e5, 0x57e6, 0x57e7, 0x57e8, 0x57e9, 0x57ea, 0x57eb, 0x57ec, 0x57ee, 0x57f0, 0x57f1, 0x57f2, 0x57f3, 0x57f5, 0x57f6, 0x57f7, 0x57fb, 0x57fc, 0x57fe, 0x57ff, 0x5801, 0x5803, 0x5804, 0x5805, 0x5808, 0x5809, 0x580a, 0x580c, 0x580e, 0x580f, 0x5810, 0x5812, 0x5813, 0x5814, 0x5816, 0x5817, 0x5818, 0x581a, 0x581b, 0x581c, 0x581d, 0x581f, 0x5822, 0x5823, 0x5825, 0x5826, 0x5827, 0x5828, 0x5829, 0x582b, 0x582c, 0x582d, 0x582e, 0x582f, 0x5831, 0x5832, 0x5833, 0x5834, 0x5836, 0x5837, 0x5838, 0x5839, 0x583a, 0x583b, 0x583c, 0x583d, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8940[ 192 ] = { 0x583e, 0x583f, 0x5840, 0x5841, 0x5842, 0x5843, 0x5845, 0x5846, 0x5847, 0x5848, 0x5849, 0x584a, 0x584b, 0x584e, 0x584f, 0x5850, 0x5852, 0x5853, 0x5855, 0x5856, 0x5857, 0x5859, 0x585a, 0x585b, 0x585c, 0x585d, 0x585f, 0x5860, 0x5861, 0x5862, 0x5863, 0x5864, 0x5866, 0x5867, 0x5868, 0x5869, 0x586a, 0x586d, 0x586e, 0x586f, 0x5870, 0x5871, 0x5872, 0x5873, 0x5874, 0x5875, 0x5876, 0x5877, 0x5878, 0x5879, 0x587a, 0x587b, 0x587c, 0x587d, 0x587f, 0x5882, 0x5884, 0x5886, 0x5887, 0x5888, 0x588a, 0x588b, 0x588c, 0xfffd, 0x588d, 0x588e, 0x588f, 0x5890, 0x5891, 0x5894, 0x5895, 0x5896, 0x5897, 0x5898, 0x589b, 0x589c, 0x589d, 0x58a0, 0x58a1, 0x58a2, 0x58a3, 0x58a4, 0x58a5, 0x58a6, 0x58a7, 0x58aa, 0x58ab, 0x58ac, 0x58ad, 0x58ae, 0x58af, 0x58b0, 0x58b1, 0x58b2, 0x58b3, 0x58b4, 0x58b5, 0x58b6, 0x58b7, 0x58b8, 0x58b9, 0x58ba, 0x58bb, 0x58bd, 0x58be, 0x58bf, 0x58c0, 0x58c2, 0x58c3, 0x58c4, 0x58c6, 0x58c7, 0x58c8, 0x58c9, 0x58ca, 0x58cb, 0x58cc, 0x58cd, 0x58ce, 0x58cf, 0x58d0, 0x58d2, 0x58d3, 0x58d4, 0x58d6, 0x58d7, 0x58d8, 0x58d9, 0x58da, 0x58db, 0x58dc, 0x58dd, 0x58de, 0x58df, 0x58e0, 0x58e1, 0x58e2, 0x58e3, 0x58e5, 0x58e6, 0x58e7, 0x58e8, 0x58e9, 0x58ea, 0x58ed, 0x58ef, 0x58f1, 0x58f2, 0x58f4, 0x58f5, 0x58f7, 0x58f8, 0x58fa, 0x58fb, 0x58fc, 0x58fd, 0x58fe, 0x58ff, 0x5900, 0x5901, 0x5903, 0x5905, 0x5906, 0x5908, 0x5909, 0x590a, 0x590b, 0x590c, 0x590e, 0x5910, 0x5911, 0x5912, 0x5913, 0x5917, 0x5918, 0x591b, 0x591d, 0x591e, 0x5920, 0x5921, 0x5922, 0x5923, 0x5926, 0x5928, 0x592c, 0x5930, 0x5932, 0x5933, 0x5935, 0x5936, 0x593b, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8a40[ 192 ] = { 0x593d, 0x593e, 0x593f, 0x5940, 0x5943, 0x5945, 0x5946, 0x594a, 0x594c, 0x594d, 0x5950, 0x5952, 0x5953, 0x5959, 0x595b, 0x595c, 0x595d, 0x595e, 0x595f, 0x5961, 0x5963, 0x5964, 0x5966, 0x5967, 0x5968, 0x5969, 0x596a, 0x596b, 0x596c, 0x596d, 0x596e, 0x596f, 0x5970, 0x5971, 0x5972, 0x5975, 0x5977, 0x597a, 0x597b, 0x597c, 0x597e, 0x597f, 0x5980, 0x5985, 0x5989, 0x598b, 0x598c, 0x598e, 0x598f, 0x5990, 0x5991, 0x5994, 0x5995, 0x5998, 0x599a, 0x599b, 0x599c, 0x599d, 0x599f, 0x59a0, 0x59a1, 0x59a2, 0x59a6, 0xfffd, 0x59a7, 0x59ac, 0x59ad, 0x59b0, 0x59b1, 0x59b3, 0x59b4, 0x59b5, 0x59b6, 0x59b7, 0x59b8, 0x59ba, 0x59bc, 0x59bd, 0x59bf, 0x59c0, 0x59c1, 0x59c2, 0x59c3, 0x59c4, 0x59c5, 0x59c7, 0x59c8, 0x59c9, 0x59cc, 0x59cd, 0x59ce, 0x59cf, 0x59d5, 0x59d6, 0x59d9, 0x59db, 0x59de, 0x59df, 0x59e0, 0x59e1, 0x59e2, 0x59e4, 0x59e6, 0x59e7, 0x59e9, 0x59ea, 0x59eb, 0x59ed, 0x59ee, 0x59ef, 0x59f0, 0x59f1, 0x59f2, 0x59f3, 0x59f4, 0x59f5, 0x59f6, 0x59f7, 0x59f8, 0x59fa, 0x59fc, 0x59fd, 0x59fe, 0x5a00, 0x5a02, 0x5a0a, 0x5a0b, 0x5a0d, 0x5a0e, 0x5a0f, 0x5a10, 0x5a12, 0x5a14, 0x5a15, 0x5a16, 0x5a17, 0x5a19, 0x5a1a, 0x5a1b, 0x5a1d, 0x5a1e, 0x5a21, 0x5a22, 0x5a24, 0x5a26, 0x5a27, 0x5a28, 0x5a2a, 0x5a2b, 0x5a2c, 0x5a2d, 0x5a2e, 0x5a2f, 0x5a30, 0x5a33, 0x5a35, 0x5a37, 0x5a38, 0x5a39, 0x5a3a, 0x5a3b, 0x5a3d, 0x5a3e, 0x5a3f, 0x5a41, 0x5a42, 0x5a43, 0x5a44, 0x5a45, 0x5a47, 0x5a48, 0x5a4b, 0x5a4c, 0x5a4d, 0x5a4e, 0x5a4f, 0x5a50, 0x5a51, 0x5a52, 0x5a53, 0x5a54, 0x5a56, 0x5a57, 0x5a58, 0x5a59, 0x5a5b, 0x5a5c, 0x5a5d, 0x5a5e, 0x5a5f, 0x5a60, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8b40[ 192 ] = { 0x5a61, 0x5a63, 0x5a64, 0x5a65, 0x5a66, 0x5a68, 0x5a69, 0x5a6b, 0x5a6c, 0x5a6d, 0x5a6e, 0x5a6f, 0x5a70, 0x5a71, 0x5a72, 0x5a73, 0x5a78, 0x5a79, 0x5a7b, 0x5a7c, 0x5a7d, 0x5a7e, 0x5a80, 0x5a81, 0x5a82, 0x5a83, 0x5a84, 0x5a85, 0x5a86, 0x5a87, 0x5a88, 0x5a89, 0x5a8a, 0x5a8b, 0x5a8c, 0x5a8d, 0x5a8e, 0x5a8f, 0x5a90, 0x5a91, 0x5a93, 0x5a94, 0x5a95, 0x5a96, 0x5a97, 0x5a98, 0x5a99, 0x5a9c, 0x5a9d, 0x5a9e, 0x5a9f, 0x5aa0, 0x5aa1, 0x5aa2, 0x5aa3, 0x5aa4, 0x5aa5, 0x5aa6, 0x5aa7, 0x5aa8, 0x5aa9, 0x5aab, 0x5aac, 0xfffd, 0x5aad, 0x5aae, 0x5aaf, 0x5ab0, 0x5ab1, 0x5ab4, 0x5ab6, 0x5ab7, 0x5ab9, 0x5aba, 0x5abb, 0x5abc, 0x5abd, 0x5abf, 0x5ac0, 0x5ac3, 0x5ac4, 0x5ac5, 0x5ac6, 0x5ac7, 0x5ac8, 0x5aca, 0x5acb, 0x5acd, 0x5ace, 0x5acf, 0x5ad0, 0x5ad1, 0x5ad3, 0x5ad5, 0x5ad7, 0x5ad9, 0x5ada, 0x5adb, 0x5add, 0x5ade, 0x5adf, 0x5ae2, 0x5ae4, 0x5ae5, 0x5ae7, 0x5ae8, 0x5aea, 0x5aec, 0x5aed, 0x5aee, 0x5aef, 0x5af0, 0x5af2, 0x5af3, 0x5af4, 0x5af5, 0x5af6, 0x5af7, 0x5af8, 0x5af9, 0x5afa, 0x5afb, 0x5afc, 0x5afd, 0x5afe, 0x5aff, 0x5b00, 0x5b01, 0x5b02, 0x5b03, 0x5b04, 0x5b05, 0x5b06, 0x5b07, 0x5b08, 0x5b0a, 0x5b0b, 0x5b0c, 0x5b0d, 0x5b0e, 0x5b0f, 0x5b10, 0x5b11, 0x5b12, 0x5b13, 0x5b14, 0x5b15, 0x5b18, 0x5b19, 0x5b1a, 0x5b1b, 0x5b1c, 0x5b1d, 0x5b1e, 0x5b1f, 0x5b20, 0x5b21, 0x5b22, 0x5b23, 0x5b24, 0x5b25, 0x5b26, 0x5b27, 0x5b28, 0x5b29, 0x5b2a, 0x5b2b, 0x5b2c, 0x5b2d, 0x5b2e, 0x5b2f, 0x5b30, 0x5b31, 0x5b33, 0x5b35, 0x5b36, 0x5b38, 0x5b39, 0x5b3a, 0x5b3b, 0x5b3c, 0x5b3d, 0x5b3e, 0x5b3f, 0x5b41, 0x5b42, 0x5b43, 0x5b44, 0x5b45, 0x5b46, 0x5b47, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8c40[ 192 ] = { 0x5b48, 0x5b49, 0x5b4a, 0x5b4b, 0x5b4c, 0x5b4d, 0x5b4e, 0x5b4f, 0x5b52, 0x5b56, 0x5b5e, 0x5b60, 0x5b61, 0x5b67, 0x5b68, 0x5b6b, 0x5b6d, 0x5b6e, 0x5b6f, 0x5b72, 0x5b74, 0x5b76, 0x5b77, 0x5b78, 0x5b79, 0x5b7b, 0x5b7c, 0x5b7e, 0x5b7f, 0x5b82, 0x5b86, 0x5b8a, 0x5b8d, 0x5b8e, 0x5b90, 0x5b91, 0x5b92, 0x5b94, 0x5b96, 0x5b9f, 0x5ba7, 0x5ba8, 0x5ba9, 0x5bac, 0x5bad, 0x5bae, 0x5baf, 0x5bb1, 0x5bb2, 0x5bb7, 0x5bba, 0x5bbb, 0x5bbc, 0x5bc0, 0x5bc1, 0x5bc3, 0x5bc8, 0x5bc9, 0x5bca, 0x5bcb, 0x5bcd, 0x5bce, 0x5bcf, 0xfffd, 0x5bd1, 0x5bd4, 0x5bd5, 0x5bd6, 0x5bd7, 0x5bd8, 0x5bd9, 0x5bda, 0x5bdb, 0x5bdc, 0x5be0, 0x5be2, 0x5be3, 0x5be6, 0x5be7, 0x5be9, 0x5bea, 0x5beb, 0x5bec, 0x5bed, 0x5bef, 0x5bf1, 0x5bf2, 0x5bf3, 0x5bf4, 0x5bf5, 0x5bf6, 0x5bf7, 0x5bfd, 0x5bfe, 0x5c00, 0x5c02, 0x5c03, 0x5c05, 0x5c07, 0x5c08, 0x5c0b, 0x5c0c, 0x5c0d, 0x5c0e, 0x5c10, 0x5c12, 0x5c13, 0x5c17, 0x5c19, 0x5c1b, 0x5c1e, 0x5c1f, 0x5c20, 0x5c21, 0x5c23, 0x5c26, 0x5c28, 0x5c29, 0x5c2a, 0x5c2b, 0x5c2d, 0x5c2e, 0x5c2f, 0x5c30, 0x5c32, 0x5c33, 0x5c35, 0x5c36, 0x5c37, 0x5c43, 0x5c44, 0x5c46, 0x5c47, 0x5c4c, 0x5c4d, 0x5c52, 0x5c53, 0x5c54, 0x5c56, 0x5c57, 0x5c58, 0x5c5a, 0x5c5b, 0x5c5c, 0x5c5d, 0x5c5f, 0x5c62, 0x5c64, 0x5c67, 0x5c68, 0x5c69, 0x5c6a, 0x5c6b, 0x5c6c, 0x5c6d, 0x5c70, 0x5c72, 0x5c73, 0x5c74, 0x5c75, 0x5c76, 0x5c77, 0x5c78, 0x5c7b, 0x5c7c, 0x5c7d, 0x5c7e, 0x5c80, 0x5c83, 0x5c84, 0x5c85, 0x5c86, 0x5c87, 0x5c89, 0x5c8a, 0x5c8b, 0x5c8e, 0x5c8f, 0x5c92, 0x5c93, 0x5c95, 0x5c9d, 0x5c9e, 0x5c9f, 0x5ca0, 0x5ca1, 0x5ca4, 0x5ca5, 0x5ca6, 0x5ca7, 0x5ca8, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8d40[ 192 ] = { 0x5caa, 0x5cae, 0x5caf, 0x5cb0, 0x5cb2, 0x5cb4, 0x5cb6, 0x5cb9, 0x5cba, 0x5cbb, 0x5cbc, 0x5cbe, 0x5cc0, 0x5cc2, 0x5cc3, 0x5cc5, 0x5cc6, 0x5cc7, 0x5cc8, 0x5cc9, 0x5cca, 0x5ccc, 0x5ccd, 0x5cce, 0x5ccf, 0x5cd0, 0x5cd1, 0x5cd3, 0x5cd4, 0x5cd5, 0x5cd6, 0x5cd7, 0x5cd8, 0x5cda, 0x5cdb, 0x5cdc, 0x5cdd, 0x5cde, 0x5cdf, 0x5ce0, 0x5ce2, 0x5ce3, 0x5ce7, 0x5ce9, 0x5ceb, 0x5cec, 0x5cee, 0x5cef, 0x5cf1, 0x5cf2, 0x5cf3, 0x5cf4, 0x5cf5, 0x5cf6, 0x5cf7, 0x5cf8, 0x5cf9, 0x5cfa, 0x5cfc, 0x5cfd, 0x5cfe, 0x5cff, 0x5d00, 0xfffd, 0x5d01, 0x5d04, 0x5d05, 0x5d08, 0x5d09, 0x5d0a, 0x5d0b, 0x5d0c, 0x5d0d, 0x5d0f, 0x5d10, 0x5d11, 0x5d12, 0x5d13, 0x5d15, 0x5d17, 0x5d18, 0x5d19, 0x5d1a, 0x5d1c, 0x5d1d, 0x5d1f, 0x5d20, 0x5d21, 0x5d22, 0x5d23, 0x5d25, 0x5d28, 0x5d2a, 0x5d2b, 0x5d2c, 0x5d2f, 0x5d30, 0x5d31, 0x5d32, 0x5d33, 0x5d35, 0x5d36, 0x5d37, 0x5d38, 0x5d39, 0x5d3a, 0x5d3b, 0x5d3c, 0x5d3f, 0x5d40, 0x5d41, 0x5d42, 0x5d43, 0x5d44, 0x5d45, 0x5d46, 0x5d48, 0x5d49, 0x5d4d, 0x5d4e, 0x5d4f, 0x5d50, 0x5d51, 0x5d52, 0x5d53, 0x5d54, 0x5d55, 0x5d56, 0x5d57, 0x5d59, 0x5d5a, 0x5d5c, 0x5d5e, 0x5d5f, 0x5d60, 0x5d61, 0x5d62, 0x5d63, 0x5d64, 0x5d65, 0x5d66, 0x5d67, 0x5d68, 0x5d6a, 0x5d6d, 0x5d6e, 0x5d70, 0x5d71, 0x5d72, 0x5d73, 0x5d75, 0x5d76, 0x5d77, 0x5d78, 0x5d79, 0x5d7a, 0x5d7b, 0x5d7c, 0x5d7d, 0x5d7e, 0x5d7f, 0x5d80, 0x5d81, 0x5d83, 0x5d84, 0x5d85, 0x5d86, 0x5d87, 0x5d88, 0x5d89, 0x5d8a, 0x5d8b, 0x5d8c, 0x5d8d, 0x5d8e, 0x5d8f, 0x5d90, 0x5d91, 0x5d92, 0x5d93, 0x5d94, 0x5d95, 0x5d96, 0x5d97, 0x5d98, 0x5d9a, 0x5d9b, 0x5d9c, 0x5d9e, 0x5d9f, 0x5da0, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8e40[ 192 ] = { 0x5da1, 0x5da2, 0x5da3, 0x5da4, 0x5da5, 0x5da6, 0x5da7, 0x5da8, 0x5da9, 0x5daa, 0x5dab, 0x5dac, 0x5dad, 0x5dae, 0x5daf, 0x5db0, 0x5db1, 0x5db2, 0x5db3, 0x5db4, 0x5db5, 0x5db6, 0x5db8, 0x5db9, 0x5dba, 0x5dbb, 0x5dbc, 0x5dbd, 0x5dbe, 0x5dbf, 0x5dc0, 0x5dc1, 0x5dc2, 0x5dc3, 0x5dc4, 0x5dc6, 0x5dc7, 0x5dc8, 0x5dc9, 0x5dca, 0x5dcb, 0x5dcc, 0x5dce, 0x5dcf, 0x5dd0, 0x5dd1, 0x5dd2, 0x5dd3, 0x5dd4, 0x5dd5, 0x5dd6, 0x5dd7, 0x5dd8, 0x5dd9, 0x5dda, 0x5ddc, 0x5ddf, 0x5de0, 0x5de3, 0x5de4, 0x5dea, 0x5dec, 0x5ded, 0xfffd, 0x5df0, 0x5df5, 0x5df6, 0x5df8, 0x5df9, 0x5dfa, 0x5dfb, 0x5dfc, 0x5dff, 0x5e00, 0x5e04, 0x5e07, 0x5e09, 0x5e0a, 0x5e0b, 0x5e0d, 0x5e0e, 0x5e12, 0x5e13, 0x5e17, 0x5e1e, 0x5e1f, 0x5e20, 0x5e21, 0x5e22, 0x5e23, 0x5e24, 0x5e25, 0x5e28, 0x5e29, 0x5e2a, 0x5e2b, 0x5e2c, 0x5e2f, 0x5e30, 0x5e32, 0x5e33, 0x5e34, 0x5e35, 0x5e36, 0x5e39, 0x5e3a, 0x5e3e, 0x5e3f, 0x5e40, 0x5e41, 0x5e43, 0x5e46, 0x5e47, 0x5e48, 0x5e49, 0x5e4a, 0x5e4b, 0x5e4d, 0x5e4e, 0x5e4f, 0x5e50, 0x5e51, 0x5e52, 0x5e53, 0x5e56, 0x5e57, 0x5e58, 0x5e59, 0x5e5a, 0x5e5c, 0x5e5d, 0x5e5f, 0x5e60, 0x5e63, 0x5e64, 0x5e65, 0x5e66, 0x5e67, 0x5e68, 0x5e69, 0x5e6a, 0x5e6b, 0x5e6c, 0x5e6d, 0x5e6e, 0x5e6f, 0x5e70, 0x5e71, 0x5e75, 0x5e77, 0x5e79, 0x5e7e, 0x5e81, 0x5e82, 0x5e83, 0x5e85, 0x5e88, 0x5e89, 0x5e8c, 0x5e8d, 0x5e8e, 0x5e92, 0x5e98, 0x5e9b, 0x5e9d, 0x5ea1, 0x5ea2, 0x5ea3, 0x5ea4, 0x5ea8, 0x5ea9, 0x5eaa, 0x5eab, 0x5eac, 0x5eae, 0x5eaf, 0x5eb0, 0x5eb1, 0x5eb2, 0x5eb4, 0x5eba, 0x5ebb, 0x5ebc, 0x5ebd, 0x5ebf, 0x5ec0, 0x5ec1, 0x5ec2, 0x5ec3, 0x5ec4, 0x5ec5, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8f40[ 192 ] = { 0x5ec6, 0x5ec7, 0x5ec8, 0x5ecb, 0x5ecc, 0x5ecd, 0x5ece, 0x5ecf, 0x5ed0, 0x5ed4, 0x5ed5, 0x5ed7, 0x5ed8, 0x5ed9, 0x5eda, 0x5edc, 0x5edd, 0x5ede, 0x5edf, 0x5ee0, 0x5ee1, 0x5ee2, 0x5ee3, 0x5ee4, 0x5ee5, 0x5ee6, 0x5ee7, 0x5ee9, 0x5eeb, 0x5eec, 0x5eed, 0x5eee, 0x5eef, 0x5ef0, 0x5ef1, 0x5ef2, 0x5ef3, 0x5ef5, 0x5ef8, 0x5ef9, 0x5efb, 0x5efc, 0x5efd, 0x5f05, 0x5f06, 0x5f07, 0x5f09, 0x5f0c, 0x5f0d, 0x5f0e, 0x5f10, 0x5f12, 0x5f14, 0x5f16, 0x5f19, 0x5f1a, 0x5f1c, 0x5f1d, 0x5f1e, 0x5f21, 0x5f22, 0x5f23, 0x5f24, 0xfffd, 0x5f28, 0x5f2b, 0x5f2c, 0x5f2e, 0x5f30, 0x5f32, 0x5f33, 0x5f34, 0x5f35, 0x5f36, 0x5f37, 0x5f38, 0x5f3b, 0x5f3d, 0x5f3e, 0x5f3f, 0x5f41, 0x5f42, 0x5f43, 0x5f44, 0x5f45, 0x5f46, 0x5f47, 0x5f48, 0x5f49, 0x5f4a, 0x5f4b, 0x5f4c, 0x5f4d, 0x5f4e, 0x5f4f, 0x5f51, 0x5f54, 0x5f59, 0x5f5a, 0x5f5b, 0x5f5c, 0x5f5e, 0x5f5f, 0x5f60, 0x5f63, 0x5f65, 0x5f67, 0x5f68, 0x5f6b, 0x5f6e, 0x5f6f, 0x5f72, 0x5f74, 0x5f75, 0x5f76, 0x5f78, 0x5f7a, 0x5f7d, 0x5f7e, 0x5f7f, 0x5f83, 0x5f86, 0x5f8d, 0x5f8e, 0x5f8f, 0x5f91, 0x5f93, 0x5f94, 0x5f96, 0x5f9a, 0x5f9b, 0x5f9d, 0x5f9e, 0x5f9f, 0x5fa0, 0x5fa2, 0x5fa3, 0x5fa4, 0x5fa5, 0x5fa6, 0x5fa7, 0x5fa9, 0x5fab, 0x5fac, 0x5faf, 0x5fb0, 0x5fb1, 0x5fb2, 0x5fb3, 0x5fb4, 0x5fb6, 0x5fb8, 0x5fb9, 0x5fba, 0x5fbb, 0x5fbe, 0x5fbf, 0x5fc0, 0x5fc1, 0x5fc2, 0x5fc7, 0x5fc8, 0x5fca, 0x5fcb, 0x5fce, 0x5fd3, 0x5fd4, 0x5fd5, 0x5fda, 0x5fdb, 0x5fdc, 0x5fde, 0x5fdf, 0x5fe2, 0x5fe3, 0x5fe5, 0x5fe6, 0x5fe8, 0x5fe9, 0x5fec, 0x5fef, 0x5ff0, 0x5ff2, 0x5ff3, 0x5ff4, 0x5ff6, 0x5ff7, 0x5ff9, 0x5ffa, 0x5ffc, 0x6007, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9040[ 192 ] = { 0x6008, 0x6009, 0x600b, 0x600c, 0x6010, 0x6011, 0x6013, 0x6017, 0x6018, 0x601a, 0x601e, 0x601f, 0x6022, 0x6023, 0x6024, 0x602c, 0x602d, 0x602e, 0x6030, 0x6031, 0x6032, 0x6033, 0x6034, 0x6036, 0x6037, 0x6038, 0x6039, 0x603a, 0x603d, 0x603e, 0x6040, 0x6044, 0x6045, 0x6046, 0x6047, 0x6048, 0x6049, 0x604a, 0x604c, 0x604e, 0x604f, 0x6051, 0x6053, 0x6054, 0x6056, 0x6057, 0x6058, 0x605b, 0x605c, 0x605e, 0x605f, 0x6060, 0x6061, 0x6065, 0x6066, 0x606e, 0x6071, 0x6072, 0x6074, 0x6075, 0x6077, 0x607e, 0x6080, 0xfffd, 0x6081, 0x6082, 0x6085, 0x6086, 0x6087, 0x6088, 0x608a, 0x608b, 0x608e, 0x608f, 0x6090, 0x6091, 0x6093, 0x6095, 0x6097, 0x6098, 0x6099, 0x609c, 0x609e, 0x60a1, 0x60a2, 0x60a4, 0x60a5, 0x60a7, 0x60a9, 0x60aa, 0x60ae, 0x60b0, 0x60b3, 0x60b5, 0x60b6, 0x60b7, 0x60b9, 0x60ba, 0x60bd, 0x60be, 0x60bf, 0x60c0, 0x60c1, 0x60c2, 0x60c3, 0x60c4, 0x60c7, 0x60c8, 0x60c9, 0x60cc, 0x60cd, 0x60ce, 0x60cf, 0x60d0, 0x60d2, 0x60d3, 0x60d4, 0x60d6, 0x60d7, 0x60d9, 0x60db, 0x60de, 0x60e1, 0x60e2, 0x60e3, 0x60e4, 0x60e5, 0x60ea, 0x60f1, 0x60f2, 0x60f5, 0x60f7, 0x60f8, 0x60fb, 0x60fc, 0x60fd, 0x60fe, 0x60ff, 0x6102, 0x6103, 0x6104, 0x6105, 0x6107, 0x610a, 0x610b, 0x610c, 0x6110, 0x6111, 0x6112, 0x6113, 0x6114, 0x6116, 0x6117, 0x6118, 0x6119, 0x611b, 0x611c, 0x611d, 0x611e, 0x6121, 0x6122, 0x6125, 0x6128, 0x6129, 0x612a, 0x612c, 0x612d, 0x612e, 0x612f, 0x6130, 0x6131, 0x6132, 0x6133, 0x6134, 0x6135, 0x6136, 0x6137, 0x6138, 0x6139, 0x613a, 0x613b, 0x613c, 0x613d, 0x613e, 0x6140, 0x6141, 0x6142, 0x6143, 0x6144, 0x6145, 0x6146, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9140[ 192 ] = { 0x6147, 0x6149, 0x614b, 0x614d, 0x614f, 0x6150, 0x6152, 0x6153, 0x6154, 0x6156, 0x6157, 0x6158, 0x6159, 0x615a, 0x615b, 0x615c, 0x615e, 0x615f, 0x6160, 0x6161, 0x6163, 0x6164, 0x6165, 0x6166, 0x6169, 0x616a, 0x616b, 0x616c, 0x616d, 0x616e, 0x616f, 0x6171, 0x6172, 0x6173, 0x6174, 0x6176, 0x6178, 0x6179, 0x617a, 0x617b, 0x617c, 0x617d, 0x617e, 0x617f, 0x6180, 0x6181, 0x6182, 0x6183, 0x6184, 0x6185, 0x6186, 0x6187, 0x6188, 0x6189, 0x618a, 0x618c, 0x618d, 0x618f, 0x6190, 0x6191, 0x6192, 0x6193, 0x6195, 0xfffd, 0x6196, 0x6197, 0x6198, 0x6199, 0x619a, 0x619b, 0x619c, 0x619e, 0x619f, 0x61a0, 0x61a1, 0x61a2, 0x61a3, 0x61a4, 0x61a5, 0x61a6, 0x61aa, 0x61ab, 0x61ad, 0x61ae, 0x61af, 0x61b0, 0x61b1, 0x61b2, 0x61b3, 0x61b4, 0x61b5, 0x61b6, 0x61b8, 0x61b9, 0x61ba, 0x61bb, 0x61bc, 0x61bd, 0x61bf, 0x61c0, 0x61c1, 0x61c3, 0x61c4, 0x61c5, 0x61c6, 0x61c7, 0x61c9, 0x61cc, 0x61cd, 0x61ce, 0x61cf, 0x61d0, 0x61d3, 0x61d5, 0x61d6, 0x61d7, 0x61d8, 0x61d9, 0x61da, 0x61db, 0x61dc, 0x61dd, 0x61de, 0x61df, 0x61e0, 0x61e1, 0x61e2, 0x61e3, 0x61e4, 0x61e5, 0x61e7, 0x61e8, 0x61e9, 0x61ea, 0x61eb, 0x61ec, 0x61ed, 0x61ee, 0x61ef, 0x61f0, 0x61f1, 0x61f2, 0x61f3, 0x61f4, 0x61f6, 0x61f7, 0x61f8, 0x61f9, 0x61fa, 0x61fb, 0x61fc, 0x61fd, 0x61fe, 0x6200, 0x6201, 0x6202, 0x6203, 0x6204, 0x6205, 0x6207, 0x6209, 0x6213, 0x6214, 0x6219, 0x621c, 0x621d, 0x621e, 0x6220, 0x6223, 0x6226, 0x6227, 0x6228, 0x6229, 0x622b, 0x622d, 0x622f, 0x6230, 0x6231, 0x6232, 0x6235, 0x6236, 0x6238, 0x6239, 0x623a, 0x623b, 0x623c, 0x6242, 0x6244, 0x6245, 0x6246, 0x624a, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9240[ 192 ] = { 0x624f, 0x6250, 0x6255, 0x6256, 0x6257, 0x6259, 0x625a, 0x625c, 0x625d, 0x625e, 0x625f, 0x6260, 0x6261, 0x6262, 0x6264, 0x6265, 0x6268, 0x6271, 0x6272, 0x6274, 0x6275, 0x6277, 0x6278, 0x627a, 0x627b, 0x627d, 0x6281, 0x6282, 0x6283, 0x6285, 0x6286, 0x6287, 0x6288, 0x628b, 0x628c, 0x628d, 0x628e, 0x628f, 0x6290, 0x6294, 0x6299, 0x629c, 0x629d, 0x629e, 0x62a3, 0x62a6, 0x62a7, 0x62a9, 0x62aa, 0x62ad, 0x62ae, 0x62af, 0x62b0, 0x62b2, 0x62b3, 0x62b4, 0x62b6, 0x62b7, 0x62b8, 0x62ba, 0x62be, 0x62c0, 0x62c1, 0xfffd, 0x62c3, 0x62cb, 0x62cf, 0x62d1, 0x62d5, 0x62dd, 0x62de, 0x62e0, 0x62e1, 0x62e4, 0x62ea, 0x62eb, 0x62f0, 0x62f2, 0x62f5, 0x62f8, 0x62f9, 0x62fa, 0x62fb, 0x6300, 0x6303, 0x6304, 0x6305, 0x6306, 0x630a, 0x630b, 0x630c, 0x630d, 0x630f, 0x6310, 0x6312, 0x6313, 0x6314, 0x6315, 0x6317, 0x6318, 0x6319, 0x631c, 0x6326, 0x6327, 0x6329, 0x632c, 0x632d, 0x632e, 0x6330, 0x6331, 0x6333, 0x6334, 0x6335, 0x6336, 0x6337, 0x6338, 0x633b, 0x633c, 0x633e, 0x633f, 0x6340, 0x6341, 0x6344, 0x6347, 0x6348, 0x634a, 0x6351, 0x6352, 0x6353, 0x6354, 0x6356, 0x6357, 0x6358, 0x6359, 0x635a, 0x635b, 0x635c, 0x635d, 0x6360, 0x6364, 0x6365, 0x6366, 0x6368, 0x636a, 0x636b, 0x636c, 0x636f, 0x6370, 0x6372, 0x6373, 0x6374, 0x6375, 0x6378, 0x6379, 0x637c, 0x637d, 0x637e, 0x637f, 0x6381, 0x6383, 0x6384, 0x6385, 0x6386, 0x638b, 0x638d, 0x6391, 0x6393, 0x6394, 0x6395, 0x6397, 0x6399, 0x639a, 0x639b, 0x639c, 0x639d, 0x639e, 0x639f, 0x63a1, 0x63a4, 0x63a6, 0x63ab, 0x63af, 0x63b1, 0x63b2, 0x63b5, 0x63b6, 0x63b9, 0x63bb, 0x63bd, 0x63bf, 0x63c0, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9340[ 192 ] = { 0x63c1, 0x63c2, 0x63c3, 0x63c5, 0x63c7, 0x63c8, 0x63ca, 0x63cb, 0x63cc, 0x63d1, 0x63d3, 0x63d4, 0x63d5, 0x63d7, 0x63d8, 0x63d9, 0x63da, 0x63db, 0x63dc, 0x63dd, 0x63df, 0x63e2, 0x63e4, 0x63e5, 0x63e6, 0x63e7, 0x63e8, 0x63eb, 0x63ec, 0x63ee, 0x63ef, 0x63f0, 0x63f1, 0x63f3, 0x63f5, 0x63f7, 0x63f9, 0x63fa, 0x63fb, 0x63fc, 0x63fe, 0x6403, 0x6404, 0x6406, 0x6407, 0x6408, 0x6409, 0x640a, 0x640d, 0x640e, 0x6411, 0x6412, 0x6415, 0x6416, 0x6417, 0x6418, 0x6419, 0x641a, 0x641d, 0x641f, 0x6422, 0x6423, 0x6424, 0xfffd, 0x6425, 0x6427, 0x6428, 0x6429, 0x642b, 0x642e, 0x642f, 0x6430, 0x6431, 0x6432, 0x6433, 0x6435, 0x6436, 0x6437, 0x6438, 0x6439, 0x643b, 0x643c, 0x643e, 0x6440, 0x6442, 0x6443, 0x6449, 0x644b, 0x644c, 0x644d, 0x644e, 0x644f, 0x6450, 0x6451, 0x6453, 0x6455, 0x6456, 0x6457, 0x6459, 0x645a, 0x645b, 0x645c, 0x645d, 0x645f, 0x6460, 0x6461, 0x6462, 0x6463, 0x6464, 0x6465, 0x6466, 0x6468, 0x646a, 0x646b, 0x646c, 0x646e, 0x646f, 0x6470, 0x6471, 0x6472, 0x6473, 0x6474, 0x6475, 0x6476, 0x6477, 0x647b, 0x647c, 0x647d, 0x647e, 0x647f, 0x6480, 0x6481, 0x6483, 0x6486, 0x6488, 0x6489, 0x648a, 0x648b, 0x648c, 0x648d, 0x648e, 0x648f, 0x6490, 0x6493, 0x6494, 0x6497, 0x6498, 0x649a, 0x649b, 0x649c, 0x649d, 0x649f, 0x64a0, 0x64a1, 0x64a2, 0x64a3, 0x64a5, 0x64a6, 0x64a7, 0x64a8, 0x64aa, 0x64ab, 0x64af, 0x64b1, 0x64b2, 0x64b3, 0x64b4, 0x64b6, 0x64b9, 0x64bb, 0x64bd, 0x64be, 0x64bf, 0x64c1, 0x64c3, 0x64c4, 0x64c6, 0x64c7, 0x64c8, 0x64c9, 0x64ca, 0x64cb, 0x64cc, 0x64cf, 0x64d1, 0x64d3, 0x64d4, 0x64d5, 0x64d6, 0x64d9, 0x64da, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9440[ 192 ] = { 0x64db, 0x64dc, 0x64dd, 0x64df, 0x64e0, 0x64e1, 0x64e3, 0x64e5, 0x64e7, 0x64e8, 0x64e9, 0x64ea, 0x64eb, 0x64ec, 0x64ed, 0x64ee, 0x64ef, 0x64f0, 0x64f1, 0x64f2, 0x64f3, 0x64f4, 0x64f5, 0x64f6, 0x64f7, 0x64f8, 0x64f9, 0x64fa, 0x64fb, 0x64fc, 0x64fd, 0x64fe, 0x64ff, 0x6501, 0x6502, 0x6503, 0x6504, 0x6505, 0x6506, 0x6507, 0x6508, 0x650a, 0x650b, 0x650c, 0x650d, 0x650e, 0x650f, 0x6510, 0x6511, 0x6513, 0x6514, 0x6515, 0x6516, 0x6517, 0x6519, 0x651a, 0x651b, 0x651c, 0x651d, 0x651e, 0x651f, 0x6520, 0x6521, 0xfffd, 0x6522, 0x6523, 0x6524, 0x6526, 0x6527, 0x6528, 0x6529, 0x652a, 0x652c, 0x652d, 0x6530, 0x6531, 0x6532, 0x6533, 0x6537, 0x653a, 0x653c, 0x653d, 0x6540, 0x6541, 0x6542, 0x6543, 0x6544, 0x6546, 0x6547, 0x654a, 0x654b, 0x654d, 0x654e, 0x6550, 0x6552, 0x6553, 0x6554, 0x6557, 0x6558, 0x655a, 0x655c, 0x655f, 0x6560, 0x6561, 0x6564, 0x6565, 0x6567, 0x6568, 0x6569, 0x656a, 0x656d, 0x656e, 0x656f, 0x6571, 0x6573, 0x6575, 0x6576, 0x6578, 0x6579, 0x657a, 0x657b, 0x657c, 0x657d, 0x657e, 0x657f, 0x6580, 0x6581, 0x6582, 0x6583, 0x6584, 0x6585, 0x6586, 0x6588, 0x6589, 0x658a, 0x658d, 0x658e, 0x658f, 0x6592, 0x6594, 0x6595, 0x6596, 0x6598, 0x659a, 0x659d, 0x659e, 0x65a0, 0x65a2, 0x65a3, 0x65a6, 0x65a8, 0x65aa, 0x65ac, 0x65ae, 0x65b1, 0x65b2, 0x65b3, 0x65b4, 0x65b5, 0x65b6, 0x65b7, 0x65b8, 0x65ba, 0x65bb, 0x65be, 0x65bf, 0x65c0, 0x65c2, 0x65c7, 0x65c8, 0x65c9, 0x65ca, 0x65cd, 0x65d0, 0x65d1, 0x65d3, 0x65d4, 0x65d5, 0x65d8, 0x65d9, 0x65da, 0x65db, 0x65dc, 0x65dd, 0x65de, 0x65df, 0x65e1, 0x65e3, 0x65e4, 0x65ea, 0x65eb, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9540[ 192 ] = { 0x65f2, 0x65f3, 0x65f4, 0x65f5, 0x65f8, 0x65f9, 0x65fb, 0x65fc, 0x65fd, 0x65fe, 0x65ff, 0x6601, 0x6604, 0x6605, 0x6607, 0x6608, 0x6609, 0x660b, 0x660d, 0x6610, 0x6611, 0x6612, 0x6616, 0x6617, 0x6618, 0x661a, 0x661b, 0x661c, 0x661e, 0x6621, 0x6622, 0x6623, 0x6624, 0x6626, 0x6629, 0x662a, 0x662b, 0x662c, 0x662e, 0x6630, 0x6632, 0x6633, 0x6637, 0x6638, 0x6639, 0x663a, 0x663b, 0x663d, 0x663f, 0x6640, 0x6642, 0x6644, 0x6645, 0x6646, 0x6647, 0x6648, 0x6649, 0x664a, 0x664d, 0x664e, 0x6650, 0x6651, 0x6658, 0xfffd, 0x6659, 0x665b, 0x665c, 0x665d, 0x665e, 0x6660, 0x6662, 0x6663, 0x6665, 0x6667, 0x6669, 0x666a, 0x666b, 0x666c, 0x666d, 0x6671, 0x6672, 0x6673, 0x6675, 0x6678, 0x6679, 0x667b, 0x667c, 0x667d, 0x667f, 0x6680, 0x6681, 0x6683, 0x6685, 0x6686, 0x6688, 0x6689, 0x668a, 0x668b, 0x668d, 0x668e, 0x668f, 0x6690, 0x6692, 0x6693, 0x6694, 0x6695, 0x6698, 0x6699, 0x669a, 0x669b, 0x669c, 0x669e, 0x669f, 0x66a0, 0x66a1, 0x66a2, 0x66a3, 0x66a4, 0x66a5, 0x66a6, 0x66a9, 0x66aa, 0x66ab, 0x66ac, 0x66ad, 0x66af, 0x66b0, 0x66b1, 0x66b2, 0x66b3, 0x66b5, 0x66b6, 0x66b7, 0x66b8, 0x66ba, 0x66bb, 0x66bc, 0x66bd, 0x66bf, 0x66c0, 0x66c1, 0x66c2, 0x66c3, 0x66c4, 0x66c5, 0x66c6, 0x66c7, 0x66c8, 0x66c9, 0x66ca, 0x66cb, 0x66cc, 0x66cd, 0x66ce, 0x66cf, 0x66d0, 0x66d1, 0x66d2, 0x66d3, 0x66d4, 0x66d5, 0x66d6, 0x66d7, 0x66d8, 0x66da, 0x66de, 0x66df, 0x66e0, 0x66e1, 0x66e2, 0x66e3, 0x66e4, 0x66e5, 0x66e7, 0x66e8, 0x66ea, 0x66eb, 0x66ec, 0x66ed, 0x66ee, 0x66ef, 0x66f1, 0x66f5, 0x66f6, 0x66f8, 0x66fa, 0x66fb, 0x66fd, 0x6701, 0x6702, 0x6703, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9640[ 192 ] = { 0x6704, 0x6705, 0x6706, 0x6707, 0x670c, 0x670e, 0x670f, 0x6711, 0x6712, 0x6713, 0x6716, 0x6718, 0x6719, 0x671a, 0x671c, 0x671e, 0x6720, 0x6721, 0x6722, 0x6723, 0x6724, 0x6725, 0x6727, 0x6729, 0x672e, 0x6730, 0x6732, 0x6733, 0x6736, 0x6737, 0x6738, 0x6739, 0x673b, 0x673c, 0x673e, 0x673f, 0x6741, 0x6744, 0x6745, 0x6747, 0x674a, 0x674b, 0x674d, 0x6752, 0x6754, 0x6755, 0x6757, 0x6758, 0x6759, 0x675a, 0x675b, 0x675d, 0x6762, 0x6763, 0x6764, 0x6766, 0x6767, 0x676b, 0x676c, 0x676e, 0x6771, 0x6774, 0x6776, 0xfffd, 0x6778, 0x6779, 0x677a, 0x677b, 0x677d, 0x6780, 0x6782, 0x6783, 0x6785, 0x6786, 0x6788, 0x678a, 0x678c, 0x678d, 0x678e, 0x678f, 0x6791, 0x6792, 0x6793, 0x6794, 0x6796, 0x6799, 0x679b, 0x679f, 0x67a0, 0x67a1, 0x67a4, 0x67a6, 0x67a9, 0x67ac, 0x67ae, 0x67b1, 0x67b2, 0x67b4, 0x67b9, 0x67ba, 0x67bb, 0x67bc, 0x67bd, 0x67be, 0x67bf, 0x67c0, 0x67c2, 0x67c5, 0x67c6, 0x67c7, 0x67c8, 0x67c9, 0x67ca, 0x67cb, 0x67cc, 0x67cd, 0x67ce, 0x67d5, 0x67d6, 0x67d7, 0x67db, 0x67df, 0x67e1, 0x67e3, 0x67e4, 0x67e6, 0x67e7, 0x67e8, 0x67ea, 0x67eb, 0x67ed, 0x67ee, 0x67f2, 0x67f5, 0x67f6, 0x67f7, 0x67f8, 0x67f9, 0x67fa, 0x67fb, 0x67fc, 0x67fe, 0x6801, 0x6802, 0x6803, 0x6804, 0x6806, 0x680d, 0x6810, 0x6812, 0x6814, 0x6815, 0x6818, 0x6819, 0x681a, 0x681b, 0x681c, 0x681e, 0x681f, 0x6820, 0x6822, 0x6823, 0x6824, 0x6825, 0x6826, 0x6827, 0x6828, 0x682b, 0x682c, 0x682d, 0x682e, 0x682f, 0x6830, 0x6831, 0x6834, 0x6835, 0x6836, 0x683a, 0x683b, 0x683f, 0x6847, 0x684b, 0x684d, 0x684f, 0x6852, 0x6856, 0x6857, 0x6858, 0x6859, 0x685a, 0x685b, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9740[ 192 ] = { 0x685c, 0x685d, 0x685e, 0x685f, 0x686a, 0x686c, 0x686d, 0x686e, 0x686f, 0x6870, 0x6871, 0x6872, 0x6873, 0x6875, 0x6878, 0x6879, 0x687a, 0x687b, 0x687c, 0x687d, 0x687e, 0x687f, 0x6880, 0x6882, 0x6884, 0x6887, 0x6888, 0x6889, 0x688a, 0x688b, 0x688c, 0x688d, 0x688e, 0x6890, 0x6891, 0x6892, 0x6894, 0x6895, 0x6896, 0x6898, 0x6899, 0x689a, 0x689b, 0x689c, 0x689d, 0x689e, 0x689f, 0x68a0, 0x68a1, 0x68a3, 0x68a4, 0x68a5, 0x68a9, 0x68aa, 0x68ab, 0x68ac, 0x68ae, 0x68b1, 0x68b2, 0x68b4, 0x68b6, 0x68b7, 0x68b8, 0xfffd, 0x68b9, 0x68ba, 0x68bb, 0x68bc, 0x68bd, 0x68be, 0x68bf, 0x68c1, 0x68c3, 0x68c4, 0x68c5, 0x68c6, 0x68c7, 0x68c8, 0x68ca, 0x68cc, 0x68ce, 0x68cf, 0x68d0, 0x68d1, 0x68d3, 0x68d4, 0x68d6, 0x68d7, 0x68d9, 0x68db, 0x68dc, 0x68dd, 0x68de, 0x68df, 0x68e1, 0x68e2, 0x68e4, 0x68e5, 0x68e6, 0x68e7, 0x68e8, 0x68e9, 0x68ea, 0x68eb, 0x68ec, 0x68ed, 0x68ef, 0x68f2, 0x68f3, 0x68f4, 0x68f6, 0x68f7, 0x68f8, 0x68fb, 0x68fd, 0x68fe, 0x68ff, 0x6900, 0x6902, 0x6903, 0x6904, 0x6906, 0x6907, 0x6908, 0x6909, 0x690a, 0x690c, 0x690f, 0x6911, 0x6913, 0x6914, 0x6915, 0x6916, 0x6917, 0x6918, 0x6919, 0x691a, 0x691b, 0x691c, 0x691d, 0x691e, 0x6921, 0x6922, 0x6923, 0x6925, 0x6926, 0x6927, 0x6928, 0x6929, 0x692a, 0x692b, 0x692c, 0x692e, 0x692f, 0x6931, 0x6932, 0x6933, 0x6935, 0x6936, 0x6937, 0x6938, 0x693a, 0x693b, 0x693c, 0x693e, 0x6940, 0x6941, 0x6943, 0x6944, 0x6945, 0x6946, 0x6947, 0x6948, 0x6949, 0x694a, 0x694b, 0x694c, 0x694d, 0x694e, 0x694f, 0x6950, 0x6951, 0x6952, 0x6953, 0x6955, 0x6956, 0x6958, 0x6959, 0x695b, 0x695c, 0x695f, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9840[ 192 ] = { 0x6961, 0x6962, 0x6964, 0x6965, 0x6967, 0x6968, 0x6969, 0x696a, 0x696c, 0x696d, 0x696f, 0x6970, 0x6972, 0x6973, 0x6974, 0x6975, 0x6976, 0x697a, 0x697b, 0x697d, 0x697e, 0x697f, 0x6981, 0x6983, 0x6985, 0x698a, 0x698b, 0x698c, 0x698e, 0x698f, 0x6990, 0x6991, 0x6992, 0x6993, 0x6996, 0x6997, 0x6999, 0x699a, 0x699d, 0x699e, 0x699f, 0x69a0, 0x69a1, 0x69a2, 0x69a3, 0x69a4, 0x69a5, 0x69a6, 0x69a9, 0x69aa, 0x69ac, 0x69ae, 0x69af, 0x69b0, 0x69b2, 0x69b3, 0x69b5, 0x69b6, 0x69b8, 0x69b9, 0x69ba, 0x69bc, 0x69bd, 0xfffd, 0x69be, 0x69bf, 0x69c0, 0x69c2, 0x69c3, 0x69c4, 0x69c5, 0x69c6, 0x69c7, 0x69c8, 0x69c9, 0x69cb, 0x69cd, 0x69cf, 0x69d1, 0x69d2, 0x69d3, 0x69d5, 0x69d6, 0x69d7, 0x69d8, 0x69d9, 0x69da, 0x69dc, 0x69dd, 0x69de, 0x69e1, 0x69e2, 0x69e3, 0x69e4, 0x69e5, 0x69e6, 0x69e7, 0x69e8, 0x69e9, 0x69ea, 0x69eb, 0x69ec, 0x69ee, 0x69ef, 0x69f0, 0x69f1, 0x69f3, 0x69f4, 0x69f5, 0x69f6, 0x69f7, 0x69f8, 0x69f9, 0x69fa, 0x69fb, 0x69fc, 0x69fe, 0x6a00, 0x6a01, 0x6a02, 0x6a03, 0x6a04, 0x6a05, 0x6a06, 0x6a07, 0x6a08, 0x6a09, 0x6a0b, 0x6a0c, 0x6a0d, 0x6a0e, 0x6a0f, 0x6a10, 0x6a11, 0x6a12, 0x6a13, 0x6a14, 0x6a15, 0x6a16, 0x6a19, 0x6a1a, 0x6a1b, 0x6a1c, 0x6a1d, 0x6a1e, 0x6a20, 0x6a22, 0x6a23, 0x6a24, 0x6a25, 0x6a26, 0x6a27, 0x6a29, 0x6a2b, 0x6a2c, 0x6a2d, 0x6a2e, 0x6a30, 0x6a32, 0x6a33, 0x6a34, 0x6a36, 0x6a37, 0x6a38, 0x6a39, 0x6a3a, 0x6a3b, 0x6a3c, 0x6a3f, 0x6a40, 0x6a41, 0x6a42, 0x6a43, 0x6a45, 0x6a46, 0x6a48, 0x6a49, 0x6a4a, 0x6a4b, 0x6a4c, 0x6a4d, 0x6a4e, 0x6a4f, 0x6a51, 0x6a52, 0x6a53, 0x6a54, 0x6a55, 0x6a56, 0x6a57, 0x6a5a, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9940[ 192 ] = { 0x6a5c, 0x6a5d, 0x6a5e, 0x6a5f, 0x6a60, 0x6a62, 0x6a63, 0x6a64, 0x6a66, 0x6a67, 0x6a68, 0x6a69, 0x6a6a, 0x6a6b, 0x6a6c, 0x6a6d, 0x6a6e, 0x6a6f, 0x6a70, 0x6a72, 0x6a73, 0x6a74, 0x6a75, 0x6a76, 0x6a77, 0x6a78, 0x6a7a, 0x6a7b, 0x6a7d, 0x6a7e, 0x6a7f, 0x6a81, 0x6a82, 0x6a83, 0x6a85, 0x6a86, 0x6a87, 0x6a88, 0x6a89, 0x6a8a, 0x6a8b, 0x6a8c, 0x6a8d, 0x6a8f, 0x6a92, 0x6a93, 0x6a94, 0x6a95, 0x6a96, 0x6a98, 0x6a99, 0x6a9a, 0x6a9b, 0x6a9c, 0x6a9d, 0x6a9e, 0x6a9f, 0x6aa1, 0x6aa2, 0x6aa3, 0x6aa4, 0x6aa5, 0x6aa6, 0xfffd, 0x6aa7, 0x6aa8, 0x6aaa, 0x6aad, 0x6aae, 0x6aaf, 0x6ab0, 0x6ab1, 0x6ab2, 0x6ab3, 0x6ab4, 0x6ab5, 0x6ab6, 0x6ab7, 0x6ab8, 0x6ab9, 0x6aba, 0x6abb, 0x6abc, 0x6abd, 0x6abe, 0x6abf, 0x6ac0, 0x6ac1, 0x6ac2, 0x6ac3, 0x6ac4, 0x6ac5, 0x6ac6, 0x6ac7, 0x6ac8, 0x6ac9, 0x6aca, 0x6acb, 0x6acc, 0x6acd, 0x6ace, 0x6acf, 0x6ad0, 0x6ad1, 0x6ad2, 0x6ad3, 0x6ad4, 0x6ad5, 0x6ad6, 0x6ad7, 0x6ad8, 0x6ad9, 0x6ada, 0x6adb, 0x6adc, 0x6add, 0x6ade, 0x6adf, 0x6ae0, 0x6ae1, 0x6ae2, 0x6ae3, 0x6ae4, 0x6ae5, 0x6ae6, 0x6ae7, 0x6ae8, 0x6ae9, 0x6aea, 0x6aeb, 0x6aec, 0x6aed, 0x6aee, 0x6aef, 0x6af0, 0x6af1, 0x6af2, 0x6af3, 0x6af4, 0x6af5, 0x6af6, 0x6af7, 0x6af8, 0x6af9, 0x6afa, 0x6afb, 0x6afc, 0x6afd, 0x6afe, 0x6aff, 0x6b00, 0x6b01, 0x6b02, 0x6b03, 0x6b04, 0x6b05, 0x6b06, 0x6b07, 0x6b08, 0x6b09, 0x6b0a, 0x6b0b, 0x6b0c, 0x6b0d, 0x6b0e, 0x6b0f, 0x6b10, 0x6b11, 0x6b12, 0x6b13, 0x6b14, 0x6b15, 0x6b16, 0x6b17, 0x6b18, 0x6b19, 0x6b1a, 0x6b1b, 0x6b1c, 0x6b1d, 0x6b1e, 0x6b1f, 0x6b25, 0x6b26, 0x6b28, 0x6b29, 0x6b2a, 0x6b2b, 0x6b2c, 0x6b2d, 0x6b2e, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9a40[ 192 ] = { 0x6b2f, 0x6b30, 0x6b31, 0x6b33, 0x6b34, 0x6b35, 0x6b36, 0x6b38, 0x6b3b, 0x6b3c, 0x6b3d, 0x6b3f, 0x6b40, 0x6b41, 0x6b42, 0x6b44, 0x6b45, 0x6b48, 0x6b4a, 0x6b4b, 0x6b4d, 0x6b4e, 0x6b4f, 0x6b50, 0x6b51, 0x6b52, 0x6b53, 0x6b54, 0x6b55, 0x6b56, 0x6b57, 0x6b58, 0x6b5a, 0x6b5b, 0x6b5c, 0x6b5d, 0x6b5e, 0x6b5f, 0x6b60, 0x6b61, 0x6b68, 0x6b69, 0x6b6b, 0x6b6c, 0x6b6d, 0x6b6e, 0x6b6f, 0x6b70, 0x6b71, 0x6b72, 0x6b73, 0x6b74, 0x6b75, 0x6b76, 0x6b77, 0x6b78, 0x6b7a, 0x6b7d, 0x6b7e, 0x6b7f, 0x6b80, 0x6b85, 0x6b88, 0xfffd, 0x6b8c, 0x6b8e, 0x6b8f, 0x6b90, 0x6b91, 0x6b94, 0x6b95, 0x6b97, 0x6b98, 0x6b99, 0x6b9c, 0x6b9d, 0x6b9e, 0x6b9f, 0x6ba0, 0x6ba2, 0x6ba3, 0x6ba4, 0x6ba5, 0x6ba6, 0x6ba7, 0x6ba8, 0x6ba9, 0x6bab, 0x6bac, 0x6bad, 0x6bae, 0x6baf, 0x6bb0, 0x6bb1, 0x6bb2, 0x6bb6, 0x6bb8, 0x6bb9, 0x6bba, 0x6bbb, 0x6bbc, 0x6bbd, 0x6bbe, 0x6bc0, 0x6bc3, 0x6bc4, 0x6bc6, 0x6bc7, 0x6bc8, 0x6bc9, 0x6bca, 0x6bcc, 0x6bce, 0x6bd0, 0x6bd1, 0x6bd8, 0x6bda, 0x6bdc, 0x6bdd, 0x6bde, 0x6bdf, 0x6be0, 0x6be2, 0x6be3, 0x6be4, 0x6be5, 0x6be6, 0x6be7, 0x6be8, 0x6be9, 0x6bec, 0x6bed, 0x6bee, 0x6bf0, 0x6bf1, 0x6bf2, 0x6bf4, 0x6bf6, 0x6bf7, 0x6bf8, 0x6bfa, 0x6bfb, 0x6bfc, 0x6bfe, 0x6bff, 0x6c00, 0x6c01, 0x6c02, 0x6c03, 0x6c04, 0x6c08, 0x6c09, 0x6c0a, 0x6c0b, 0x6c0c, 0x6c0e, 0x6c12, 0x6c17, 0x6c1c, 0x6c1d, 0x6c1e, 0x6c20, 0x6c23, 0x6c25, 0x6c2b, 0x6c2c, 0x6c2d, 0x6c31, 0x6c33, 0x6c36, 0x6c37, 0x6c39, 0x6c3a, 0x6c3b, 0x6c3c, 0x6c3e, 0x6c3f, 0x6c43, 0x6c44, 0x6c45, 0x6c48, 0x6c4b, 0x6c4c, 0x6c4d, 0x6c4e, 0x6c4f, 0x6c51, 0x6c52, 0x6c53, 0x6c56, 0x6c58, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9b40[ 192 ] = { 0x6c59, 0x6c5a, 0x6c62, 0x6c63, 0x6c65, 0x6c66, 0x6c67, 0x6c6b, 0x6c6c, 0x6c6d, 0x6c6e, 0x6c6f, 0x6c71, 0x6c73, 0x6c75, 0x6c77, 0x6c78, 0x6c7a, 0x6c7b, 0x6c7c, 0x6c7f, 0x6c80, 0x6c84, 0x6c87, 0x6c8a, 0x6c8b, 0x6c8d, 0x6c8e, 0x6c91, 0x6c92, 0x6c95, 0x6c96, 0x6c97, 0x6c98, 0x6c9a, 0x6c9c, 0x6c9d, 0x6c9e, 0x6ca0, 0x6ca2, 0x6ca8, 0x6cac, 0x6caf, 0x6cb0, 0x6cb4, 0x6cb5, 0x6cb6, 0x6cb7, 0x6cba, 0x6cc0, 0x6cc1, 0x6cc2, 0x6cc3, 0x6cc6, 0x6cc7, 0x6cc8, 0x6ccb, 0x6ccd, 0x6cce, 0x6ccf, 0x6cd1, 0x6cd2, 0x6cd8, 0xfffd, 0x6cd9, 0x6cda, 0x6cdc, 0x6cdd, 0x6cdf, 0x6ce4, 0x6ce6, 0x6ce7, 0x6ce9, 0x6cec, 0x6ced, 0x6cf2, 0x6cf4, 0x6cf9, 0x6cff, 0x6d00, 0x6d02, 0x6d03, 0x6d05, 0x6d06, 0x6d08, 0x6d09, 0x6d0a, 0x6d0d, 0x6d0f, 0x6d10, 0x6d11, 0x6d13, 0x6d14, 0x6d15, 0x6d16, 0x6d18, 0x6d1c, 0x6d1d, 0x6d1f, 0x6d20, 0x6d21, 0x6d22, 0x6d23, 0x6d24, 0x6d26, 0x6d28, 0x6d29, 0x6d2c, 0x6d2d, 0x6d2f, 0x6d30, 0x6d34, 0x6d36, 0x6d37, 0x6d38, 0x6d3a, 0x6d3f, 0x6d40, 0x6d42, 0x6d44, 0x6d49, 0x6d4c, 0x6d50, 0x6d55, 0x6d56, 0x6d57, 0x6d58, 0x6d5b, 0x6d5d, 0x6d5f, 0x6d61, 0x6d62, 0x6d64, 0x6d65, 0x6d67, 0x6d68, 0x6d6b, 0x6d6c, 0x6d6d, 0x6d70, 0x6d71, 0x6d72, 0x6d73, 0x6d75, 0x6d76, 0x6d79, 0x6d7a, 0x6d7b, 0x6d7d, 0x6d7e, 0x6d7f, 0x6d80, 0x6d81, 0x6d83, 0x6d84, 0x6d86, 0x6d87, 0x6d8a, 0x6d8b, 0x6d8d, 0x6d8f, 0x6d90, 0x6d92, 0x6d96, 0x6d97, 0x6d98, 0x6d99, 0x6d9a, 0x6d9c, 0x6da2, 0x6da5, 0x6dac, 0x6dad, 0x6db0, 0x6db1, 0x6db3, 0x6db4, 0x6db6, 0x6db7, 0x6db9, 0x6dba, 0x6dbb, 0x6dbc, 0x6dbd, 0x6dbe, 0x6dc1, 0x6dc2, 0x6dc3, 0x6dc8, 0x6dc9, 0x6dca, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9c40[ 192 ] = { 0x6dcd, 0x6dce, 0x6dcf, 0x6dd0, 0x6dd2, 0x6dd3, 0x6dd4, 0x6dd5, 0x6dd7, 0x6dda, 0x6ddb, 0x6ddc, 0x6ddf, 0x6de2, 0x6de3, 0x6de5, 0x6de7, 0x6de8, 0x6de9, 0x6dea, 0x6ded, 0x6def, 0x6df0, 0x6df2, 0x6df4, 0x6df5, 0x6df6, 0x6df8, 0x6dfa, 0x6dfd, 0x6dfe, 0x6dff, 0x6e00, 0x6e01, 0x6e02, 0x6e03, 0x6e04, 0x6e06, 0x6e07, 0x6e08, 0x6e09, 0x6e0b, 0x6e0f, 0x6e12, 0x6e13, 0x6e15, 0x6e18, 0x6e19, 0x6e1b, 0x6e1c, 0x6e1e, 0x6e1f, 0x6e22, 0x6e26, 0x6e27, 0x6e28, 0x6e2a, 0x6e2c, 0x6e2e, 0x6e30, 0x6e31, 0x6e33, 0x6e35, 0xfffd, 0x6e36, 0x6e37, 0x6e39, 0x6e3b, 0x6e3c, 0x6e3d, 0x6e3e, 0x6e3f, 0x6e40, 0x6e41, 0x6e42, 0x6e45, 0x6e46, 0x6e47, 0x6e48, 0x6e49, 0x6e4a, 0x6e4b, 0x6e4c, 0x6e4f, 0x6e50, 0x6e51, 0x6e52, 0x6e55, 0x6e57, 0x6e59, 0x6e5a, 0x6e5c, 0x6e5d, 0x6e5e, 0x6e60, 0x6e61, 0x6e62, 0x6e63, 0x6e64, 0x6e65, 0x6e66, 0x6e67, 0x6e68, 0x6e69, 0x6e6a, 0x6e6c, 0x6e6d, 0x6e6f, 0x6e70, 0x6e71, 0x6e72, 0x6e73, 0x6e74, 0x6e75, 0x6e76, 0x6e77, 0x6e78, 0x6e79, 0x6e7a, 0x6e7b, 0x6e7c, 0x6e7d, 0x6e80, 0x6e81, 0x6e82, 0x6e84, 0x6e87, 0x6e88, 0x6e8a, 0x6e8b, 0x6e8c, 0x6e8d, 0x6e8e, 0x6e91, 0x6e92, 0x6e93, 0x6e94, 0x6e95, 0x6e96, 0x6e97, 0x6e99, 0x6e9a, 0x6e9b, 0x6e9d, 0x6e9e, 0x6ea0, 0x6ea1, 0x6ea3, 0x6ea4, 0x6ea6, 0x6ea8, 0x6ea9, 0x6eab, 0x6eac, 0x6ead, 0x6eae, 0x6eb0, 0x6eb3, 0x6eb5, 0x6eb8, 0x6eb9, 0x6ebc, 0x6ebe, 0x6ebf, 0x6ec0, 0x6ec3, 0x6ec4, 0x6ec5, 0x6ec6, 0x6ec8, 0x6ec9, 0x6eca, 0x6ecc, 0x6ecd, 0x6ece, 0x6ed0, 0x6ed2, 0x6ed6, 0x6ed8, 0x6ed9, 0x6edb, 0x6edc, 0x6edd, 0x6ee3, 0x6ee7, 0x6eea, 0x6eeb, 0x6eec, 0x6eed, 0x6eee, 0x6eef, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9d40[ 192 ] = { 0x6ef0, 0x6ef1, 0x6ef2, 0x6ef3, 0x6ef5, 0x6ef6, 0x6ef7, 0x6ef8, 0x6efa, 0x6efb, 0x6efc, 0x6efd, 0x6efe, 0x6eff, 0x6f00, 0x6f01, 0x6f03, 0x6f04, 0x6f05, 0x6f07, 0x6f08, 0x6f0a, 0x6f0b, 0x6f0c, 0x6f0d, 0x6f0e, 0x6f10, 0x6f11, 0x6f12, 0x6f16, 0x6f17, 0x6f18, 0x6f19, 0x6f1a, 0x6f1b, 0x6f1c, 0x6f1d, 0x6f1e, 0x6f1f, 0x6f21, 0x6f22, 0x6f23, 0x6f25, 0x6f26, 0x6f27, 0x6f28, 0x6f2c, 0x6f2e, 0x6f30, 0x6f32, 0x6f34, 0x6f35, 0x6f37, 0x6f38, 0x6f39, 0x6f3a, 0x6f3b, 0x6f3c, 0x6f3d, 0x6f3f, 0x6f40, 0x6f41, 0x6f42, 0xfffd, 0x6f43, 0x6f44, 0x6f45, 0x6f48, 0x6f49, 0x6f4a, 0x6f4c, 0x6f4e, 0x6f4f, 0x6f50, 0x6f51, 0x6f52, 0x6f53, 0x6f54, 0x6f55, 0x6f56, 0x6f57, 0x6f59, 0x6f5a, 0x6f5b, 0x6f5d, 0x6f5f, 0x6f60, 0x6f61, 0x6f63, 0x6f64, 0x6f65, 0x6f67, 0x6f68, 0x6f69, 0x6f6a, 0x6f6b, 0x6f6c, 0x6f6f, 0x6f70, 0x6f71, 0x6f73, 0x6f75, 0x6f76, 0x6f77, 0x6f79, 0x6f7b, 0x6f7d, 0x6f7e, 0x6f7f, 0x6f80, 0x6f81, 0x6f82, 0x6f83, 0x6f85, 0x6f86, 0x6f87, 0x6f8a, 0x6f8b, 0x6f8f, 0x6f90, 0x6f91, 0x6f92, 0x6f93, 0x6f94, 0x6f95, 0x6f96, 0x6f97, 0x6f98, 0x6f99, 0x6f9a, 0x6f9b, 0x6f9d, 0x6f9e, 0x6f9f, 0x6fa0, 0x6fa2, 0x6fa3, 0x6fa4, 0x6fa5, 0x6fa6, 0x6fa8, 0x6fa9, 0x6faa, 0x6fab, 0x6fac, 0x6fad, 0x6fae, 0x6faf, 0x6fb0, 0x6fb1, 0x6fb2, 0x6fb4, 0x6fb5, 0x6fb7, 0x6fb8, 0x6fba, 0x6fbb, 0x6fbc, 0x6fbd, 0x6fbe, 0x6fbf, 0x6fc1, 0x6fc3, 0x6fc4, 0x6fc5, 0x6fc6, 0x6fc7, 0x6fc8, 0x6fca, 0x6fcb, 0x6fcc, 0x6fcd, 0x6fce, 0x6fcf, 0x6fd0, 0x6fd3, 0x6fd4, 0x6fd5, 0x6fd6, 0x6fd7, 0x6fd8, 0x6fd9, 0x6fda, 0x6fdb, 0x6fdc, 0x6fdd, 0x6fdf, 0x6fe2, 0x6fe3, 0x6fe4, 0x6fe5, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9e40[ 192 ] = { 0x6fe6, 0x6fe7, 0x6fe8, 0x6fe9, 0x6fea, 0x6feb, 0x6fec, 0x6fed, 0x6ff0, 0x6ff1, 0x6ff2, 0x6ff3, 0x6ff4, 0x6ff5, 0x6ff6, 0x6ff7, 0x6ff8, 0x6ff9, 0x6ffa, 0x6ffb, 0x6ffc, 0x6ffd, 0x6ffe, 0x6fff, 0x7000, 0x7001, 0x7002, 0x7003, 0x7004, 0x7005, 0x7006, 0x7007, 0x7008, 0x7009, 0x700a, 0x700b, 0x700c, 0x700d, 0x700e, 0x700f, 0x7010, 0x7012, 0x7013, 0x7014, 0x7015, 0x7016, 0x7017, 0x7018, 0x7019, 0x701c, 0x701d, 0x701e, 0x701f, 0x7020, 0x7021, 0x7022, 0x7024, 0x7025, 0x7026, 0x7027, 0x7028, 0x7029, 0x702a, 0xfffd, 0x702b, 0x702c, 0x702d, 0x702e, 0x702f, 0x7030, 0x7031, 0x7032, 0x7033, 0x7034, 0x7036, 0x7037, 0x7038, 0x703a, 0x703b, 0x703c, 0x703d, 0x703e, 0x703f, 0x7040, 0x7041, 0x7042, 0x7043, 0x7044, 0x7045, 0x7046, 0x7047, 0x7048, 0x7049, 0x704a, 0x704b, 0x704d, 0x704e, 0x7050, 0x7051, 0x7052, 0x7053, 0x7054, 0x7055, 0x7056, 0x7057, 0x7058, 0x7059, 0x705a, 0x705b, 0x705c, 0x705d, 0x705f, 0x7060, 0x7061, 0x7062, 0x7063, 0x7064, 0x7065, 0x7066, 0x7067, 0x7068, 0x7069, 0x706a, 0x706e, 0x7071, 0x7072, 0x7073, 0x7074, 0x7077, 0x7079, 0x707a, 0x707b, 0x707d, 0x7081, 0x7082, 0x7083, 0x7084, 0x7086, 0x7087, 0x7088, 0x708b, 0x708c, 0x708d, 0x708f, 0x7090, 0x7091, 0x7093, 0x7097, 0x7098, 0x709a, 0x709b, 0x709e, 0x709f, 0x70a0, 0x70a1, 0x70a2, 0x70a3, 0x70a4, 0x70a5, 0x70a6, 0x70a7, 0x70a8, 0x70a9, 0x70aa, 0x70b0, 0x70b2, 0x70b4, 0x70b5, 0x70b6, 0x70ba, 0x70be, 0x70bf, 0x70c4, 0x70c5, 0x70c6, 0x70c7, 0x70c9, 0x70cb, 0x70cc, 0x70cd, 0x70ce, 0x70cf, 0x70d0, 0x70d1, 0x70d2, 0x70d3, 0x70d4, 0x70d5, 0x70d6, 0x70d7, 0x70da, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9f40[ 192 ] = { 0x70dc, 0x70dd, 0x70de, 0x70e0, 0x70e1, 0x70e2, 0x70e3, 0x70e5, 0x70ea, 0x70ee, 0x70f0, 0x70f1, 0x70f2, 0x70f3, 0x70f4, 0x70f5, 0x70f6, 0x70f8, 0x70fa, 0x70fb, 0x70fc, 0x70fe, 0x70ff, 0x7100, 0x7101, 0x7102, 0x7103, 0x7104, 0x7105, 0x7106, 0x7107, 0x7108, 0x710b, 0x710c, 0x710d, 0x710e, 0x710f, 0x7111, 0x7112, 0x7114, 0x7117, 0x711b, 0x711c, 0x711d, 0x711e, 0x711f, 0x7120, 0x7121, 0x7122, 0x7123, 0x7124, 0x7125, 0x7127, 0x7128, 0x7129, 0x712a, 0x712b, 0x712c, 0x712d, 0x712e, 0x7132, 0x7133, 0x7134, 0xfffd, 0x7135, 0x7137, 0x7138, 0x7139, 0x713a, 0x713b, 0x713c, 0x713d, 0x713e, 0x713f, 0x7140, 0x7141, 0x7142, 0x7143, 0x7144, 0x7146, 0x7147, 0x7148, 0x7149, 0x714b, 0x714d, 0x714f, 0x7150, 0x7151, 0x7152, 0x7153, 0x7154, 0x7155, 0x7156, 0x7157, 0x7158, 0x7159, 0x715a, 0x715b, 0x715d, 0x715f, 0x7160, 0x7161, 0x7162, 0x7163, 0x7165, 0x7169, 0x716a, 0x716b, 0x716c, 0x716d, 0x716f, 0x7170, 0x7171, 0x7174, 0x7175, 0x7176, 0x7177, 0x7179, 0x717b, 0x717c, 0x717e, 0x717f, 0x7180, 0x7181, 0x7182, 0x7183, 0x7185, 0x7186, 0x7187, 0x7188, 0x7189, 0x718b, 0x718c, 0x718d, 0x718e, 0x7190, 0x7191, 0x7192, 0x7193, 0x7195, 0x7196, 0x7197, 0x719a, 0x719b, 0x719c, 0x719d, 0x719e, 0x71a1, 0x71a2, 0x71a3, 0x71a4, 0x71a5, 0x71a6, 0x71a7, 0x71a9, 0x71aa, 0x71ab, 0x71ad, 0x71ae, 0x71af, 0x71b0, 0x71b1, 0x71b2, 0x71b4, 0x71b6, 0x71b7, 0x71b8, 0x71ba, 0x71bb, 0x71bc, 0x71bd, 0x71be, 0x71bf, 0x71c0, 0x71c1, 0x71c2, 0x71c4, 0x71c5, 0x71c6, 0x71c7, 0x71c8, 0x71c9, 0x71ca, 0x71cb, 0x71cc, 0x71cd, 0x71cf, 0x71d0, 0x71d1, 0x71d2, 0x71d3, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa040[ 192 ] = { 0x71d6, 0x71d7, 0x71d8, 0x71d9, 0x71da, 0x71db, 0x71dc, 0x71dd, 0x71de, 0x71df, 0x71e1, 0x71e2, 0x71e3, 0x71e4, 0x71e6, 0x71e8, 0x71e9, 0x71ea, 0x71eb, 0x71ec, 0x71ed, 0x71ef, 0x71f0, 0x71f1, 0x71f2, 0x71f3, 0x71f4, 0x71f5, 0x71f6, 0x71f7, 0x71f8, 0x71fa, 0x71fb, 0x71fc, 0x71fd, 0x71fe, 0x71ff, 0x7200, 0x7201, 0x7202, 0x7203, 0x7204, 0x7205, 0x7207, 0x7208, 0x7209, 0x720a, 0x720b, 0x720c, 0x720d, 0x720e, 0x720f, 0x7210, 0x7211, 0x7212, 0x7213, 0x7214, 0x7215, 0x7216, 0x7217, 0x7218, 0x7219, 0x721a, 0xfffd, 0x721b, 0x721c, 0x721e, 0x721f, 0x7220, 0x7221, 0x7222, 0x7223, 0x7224, 0x7225, 0x7226, 0x7227, 0x7229, 0x722b, 0x722d, 0x722e, 0x722f, 0x7232, 0x7233, 0x7234, 0x723a, 0x723c, 0x723e, 0x7240, 0x7241, 0x7242, 0x7243, 0x7244, 0x7245, 0x7246, 0x7249, 0x724a, 0x724b, 0x724e, 0x724f, 0x7250, 0x7251, 0x7253, 0x7254, 0x7255, 0x7257, 0x7258, 0x725a, 0x725c, 0x725e, 0x7260, 0x7263, 0x7264, 0x7265, 0x7268, 0x726a, 0x726b, 0x726c, 0x726d, 0x7270, 0x7271, 0x7273, 0x7274, 0x7276, 0x7277, 0x7278, 0x727b, 0x727c, 0x727d, 0x7282, 0x7283, 0x7285, 0x7286, 0x7287, 0x7288, 0x7289, 0x728c, 0x728e, 0x7290, 0x7291, 0x7293, 0x7294, 0x7295, 0x7296, 0x7297, 0x7298, 0x7299, 0x729a, 0x729b, 0x729c, 0x729d, 0x729e, 0x72a0, 0x72a1, 0x72a2, 0x72a3, 0x72a4, 0x72a5, 0x72a6, 0x72a7, 0x72a8, 0x72a9, 0x72aa, 0x72ab, 0x72ae, 0x72b1, 0x72b2, 0x72b3, 0x72b5, 0x72ba, 0x72bb, 0x72bc, 0x72bd, 0x72be, 0x72bf, 0x72c0, 0x72c5, 0x72c6, 0x72c7, 0x72c9, 0x72ca, 0x72cb, 0x72cc, 0x72cf, 0x72d1, 0x72d3, 0x72d4, 0x72d5, 0x72d6, 0x72d8, 0x72da, 0x72db, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa1a0[ 96 ] = { 0xfffd, 0x3000, 0x3001, 0x3002, 0x00b7, 0x02c9, 0x02c7, 0x00a8, 0x3003, 0x3005, 0x2014, 0xff5e, 0x2016, 0x2026, 0x2018, 0x2019, 0x201c, 0x201d, 0x3014, 0x3015, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, 0x300d, 0x300e, 0x300f, 0x3016, 0x3017, 0x3010, 0x3011, 0x00b1, 0x00d7, 0x00f7, 0x2236, 0x2227, 0x2228, 0x2211, 0x220f, 0x222a, 0x2229, 0x2208, 0x2237, 0x221a, 0x22a5, 0x2225, 0x2220, 0x2312, 0x2299, 0x222b, 0x222e, 0x2261, 0x224c, 0x2248, 0x223d, 0x221d, 0x2260, 0x226e, 0x226f, 0x2264, 0x2265, 0x221e, 0x2235, 0x2234, 0x2642, 0x2640, 0x00b0, 0x2032, 0x2033, 0x2103, 0xff04, 0x00a4, 0xffe0, 0xffe1, 0x2030, 0x00a7, 0x2116, 0x2606, 0x2605, 0x25cb, 0x25cf, 0x25ce, 0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25b3, 0x25b2, 0x203b, 0x2192, 0x2190, 0x2191, 0x2193, 0x3013, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa2a0[ 96 ] = { 0xfffd, 0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2488, 0x2489, 0x248a, 0x248b, 0x248c, 0x248d, 0x248e, 0x248f, 0x2490, 0x2491, 0x2492, 0x2493, 0x2494, 0x2495, 0x2496, 0x2497, 0x2498, 0x2499, 0x249a, 0x249b, 0x2474, 0x2475, 0x2476, 0x2477, 0x2478, 0x2479, 0x247a, 0x247b, 0x247c, 0x247d, 0x247e, 0x247f, 0x2480, 0x2481, 0x2482, 0x2483, 0x2484, 0x2485, 0x2486, 0x2487, 0x2460, 0x2461, 0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467, 0x2468, 0x2469, 0xfffd, 0xfffd, 0x3220, 0x3221, 0x3222, 0x3223, 0x3224, 0x3225, 0x3226, 0x3227, 0x3228, 0x3229, 0xfffd, 0xfffd, 0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, 0x2168, 0x2169, 0x216a, 0x216b, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa3a0[ 96 ] = { 0xfffd, 0xff01, 0xff02, 0xff03, 0xffe5, 0xff05, 0xff06, 0xff07, 0xff08, 0xff09, 0xff0a, 0xff0b, 0xff0c, 0xff0d, 0xff0e, 0xff0f, 0xff10, 0xff11, 0xff12, 0xff13, 0xff14, 0xff15, 0xff16, 0xff17, 0xff18, 0xff19, 0xff1a, 0xff1b, 0xff1c, 0xff1d, 0xff1e, 0xff1f, 0xff20, 0xff21, 0xff22, 0xff23, 0xff24, 0xff25, 0xff26, 0xff27, 0xff28, 0xff29, 0xff2a, 0xff2b, 0xff2c, 0xff2d, 0xff2e, 0xff2f, 0xff30, 0xff31, 0xff32, 0xff33, 0xff34, 0xff35, 0xff36, 0xff37, 0xff38, 0xff39, 0xff3a, 0xff3b, 0xff3c, 0xff3d, 0xff3e, 0xff3f, 0xff40, 0xff41, 0xff42, 0xff43, 0xff44, 0xff45, 0xff46, 0xff47, 0xff48, 0xff49, 0xff4a, 0xff4b, 0xff4c, 0xff4d, 0xff4e, 0xff4f, 0xff50, 0xff51, 0xff52, 0xff53, 0xff54, 0xff55, 0xff56, 0xff57, 0xff58, 0xff59, 0xff5a, 0xff5b, 0xff5c, 0xff5d, 0xffe3, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa4a0[ 88 ] = { 0xfffd, 0x3041, 0x3042, 0x3043, 0x3044, 0x3045, 0x3046, 0x3047, 0x3048, 0x3049, 0x304a, 0x304b, 0x304c, 0x304d, 0x304e, 0x304f, 0x3050, 0x3051, 0x3052, 0x3053, 0x3054, 0x3055, 0x3056, 0x3057, 0x3058, 0x3059, 0x305a, 0x305b, 0x305c, 0x305d, 0x305e, 0x305f, 0x3060, 0x3061, 0x3062, 0x3063, 0x3064, 0x3065, 0x3066, 0x3067, 0x3068, 0x3069, 0x306a, 0x306b, 0x306c, 0x306d, 0x306e, 0x306f, 0x3070, 0x3071, 0x3072, 0x3073, 0x3074, 0x3075, 0x3076, 0x3077, 0x3078, 0x3079, 0x307a, 0x307b, 0x307c, 0x307d, 0x307e, 0x307f, 0x3080, 0x3081, 0x3082, 0x3083, 0x3084, 0x3085, 0x3086, 0x3087, 0x3088, 0x3089, 0x308a, 0x308b, 0x308c, 0x308d, 0x308e, 0x308f, 0x3090, 0x3091, 0x3092, 0x3093, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa5a0[ 88 ] = { 0xfffd, 0x30a1, 0x30a2, 0x30a3, 0x30a4, 0x30a5, 0x30a6, 0x30a7, 0x30a8, 0x30a9, 0x30aa, 0x30ab, 0x30ac, 0x30ad, 0x30ae, 0x30af, 0x30b0, 0x30b1, 0x30b2, 0x30b3, 0x30b4, 0x30b5, 0x30b6, 0x30b7, 0x30b8, 0x30b9, 0x30ba, 0x30bb, 0x30bc, 0x30bd, 0x30be, 0x30bf, 0x30c0, 0x30c1, 0x30c2, 0x30c3, 0x30c4, 0x30c5, 0x30c6, 0x30c7, 0x30c8, 0x30c9, 0x30ca, 0x30cb, 0x30cc, 0x30cd, 0x30ce, 0x30cf, 0x30d0, 0x30d1, 0x30d2, 0x30d3, 0x30d4, 0x30d5, 0x30d6, 0x30d7, 0x30d8, 0x30d9, 0x30da, 0x30db, 0x30dc, 0x30dd, 0x30de, 0x30df, 0x30e0, 0x30e1, 0x30e2, 0x30e3, 0x30e4, 0x30e5, 0x30e6, 0x30e7, 0x30e8, 0x30e9, 0x30ea, 0x30eb, 0x30ec, 0x30ed, 0x30ee, 0x30ef, 0x30f0, 0x30f1, 0x30f2, 0x30f3, 0x30f4, 0x30f5, 0x30f6, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa6a0[ 88 ] = { 0xfffd, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, 0x03a1, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfe35, 0xfe36, 0xfe39, 0xfe3a, 0xfe3f, 0xfe40, 0xfe3d, 0xfe3e, 0xfe41, 0xfe42, 0xfe43, 0xfe44, 0xfffd, 0xfffd, 0xfe3b, 0xfe3c, 0xfe37, 0xfe38, 0xfe31, 0xfffd, 0xfe33, 0xfe34, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7a0[ 40 ] = { 0xfffd, 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0401, 0x0416, 0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7d0[ 40 ] = { 0xfffd, 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0451, 0x0436, 0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa840[ 88 ] = { 0x02ca, 0x02cb, 0x02d9, 0x2013, 0x2015, 0x2025, 0x2035, 0x2105, 0x2109, 0x2196, 0x2197, 0x2198, 0x2199, 0x2215, 0x221f, 0x2223, 0x2252, 0x2266, 0x2267, 0x22bf, 0x2550, 0x2551, 0x2552, 0x2553, 0x2554, 0x2555, 0x2556, 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e, 0x255f, 0x2560, 0x2561, 0x2562, 0x2563, 0x2564, 0x2565, 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x256d, 0x256e, 0x256f, 0x2570, 0x2571, 0x2572, 0x2573, 0x2581, 0x2582, 0x2583, 0x2584, 0x2585, 0x2586, 0x2587, 0xfffd, 0x2588, 0x2589, 0x258a, 0x258b, 0x258c, 0x258d, 0x258e, 0x258f, 0x2593, 0x2594, 0x2595, 0x25bc, 0x25bd, 0x25e2, 0x25e3, 0x25e4, 0x25e5, 0x2609, 0x2295, 0x3012, 0x301d, 0x301e, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa8a0[ 80 ] = { 0xfffd, 0x0101, 0x00e1, 0x01ce, 0x00e0, 0x0113, 0x00e9, 0x011b, 0x00e8, 0x012b, 0x00ed, 0x01d0, 0x00ec, 0x014d, 0x00f3, 0x01d2, 0x00f2, 0x016b, 0x00fa, 0x01d4, 0x00f9, 0x01d6, 0x01d8, 0x01da, 0x01dc, 0x00fc, 0x00ea, 0x0251, 0xfffd, 0x0144, 0x0148, 0xfffd, 0x0261, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x3105, 0x3106, 0x3107, 0x3108, 0x3109, 0x310a, 0x310b, 0x310c, 0x310d, 0x310e, 0x310f, 0x3110, 0x3111, 0x3112, 0x3113, 0x3114, 0x3115, 0x3116, 0x3117, 0x3118, 0x3119, 0x311a, 0x311b, 0x311c, 0x311d, 0x311e, 0x311f, 0x3120, 0x3121, 0x3122, 0x3123, 0x3124, 0x3125, 0x3126, 0x3127, 0x3128, 0x3129, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa940[ 72 ] = { 0x3021, 0x3022, 0x3023, 0x3024, 0x3025, 0x3026, 0x3027, 0x3028, 0x3029, 0x32a3, 0x338e, 0x338f, 0x339c, 0x339d, 0x339e, 0x33a1, 0x33c4, 0x33ce, 0x33d1, 0x33d2, 0x33d5, 0xfe30, 0xffe2, 0xffe4, 0xfffd, 0x2121, 0x3231, 0xfffd, 0x2010, 0xfffd, 0xfffd, 0xfffd, 0x30fc, 0x309b, 0x309c, 0x30fd, 0x30fe, 0x3006, 0x309d, 0x309e, 0xfe49, 0xfe4a, 0xfe4b, 0xfe4c, 0xfe4d, 0xfe4e, 0xfe4f, 0xfe50, 0xfe51, 0xfe52, 0xfe54, 0xfe55, 0xfe56, 0xfe57, 0xfe59, 0xfe5a, 0xfe5b, 0xfe5c, 0xfe5d, 0xfe5e, 0xfe5f, 0xfe60, 0xfe61, 0xfffd, 0xfe62, 0xfe63, 0xfe64, 0xfe65, 0xfe66, 0xfe68, 0xfe69, 0xfe6a }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa9a0[ 80 ] = { 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2500, 0x2501, 0x2502, 0x2503, 0x2504, 0x2505, 0x2506, 0x2507, 0x2508, 0x2509, 0x250a, 0x250b, 0x250c, 0x250d, 0x250e, 0x250f, 0x2510, 0x2511, 0x2512, 0x2513, 0x2514, 0x2515, 0x2516, 0x2517, 0x2518, 0x2519, 0x251a, 0x251b, 0x251c, 0x251d, 0x251e, 0x251f, 0x2520, 0x2521, 0x2522, 0x2523, 0x2524, 0x2525, 0x2526, 0x2527, 0x2528, 0x2529, 0x252a, 0x252b, 0x252c, 0x252d, 0x252e, 0x252f, 0x2530, 0x2531, 0x2532, 0x2533, 0x2534, 0x2535, 0x2536, 0x2537, 0x2538, 0x2539, 0x253a, 0x253b, 0x253c, 0x253d, 0x253e, 0x253f, 0x2540, 0x2541, 0x2542, 0x2543, 0x2544, 0x2545, 0x2546, 0x2547, 0x2548, 0x2549, 0x254a, 0x254b }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaa40[ 96 ] = { 0x72dc, 0x72dd, 0x72df, 0x72e2, 0x72e3, 0x72e4, 0x72e5, 0x72e6, 0x72e7, 0x72ea, 0x72eb, 0x72f5, 0x72f6, 0x72f9, 0x72fd, 0x72fe, 0x72ff, 0x7300, 0x7302, 0x7304, 0x7305, 0x7306, 0x7307, 0x7308, 0x7309, 0x730b, 0x730c, 0x730d, 0x730f, 0x7310, 0x7311, 0x7312, 0x7314, 0x7318, 0x7319, 0x731a, 0x731f, 0x7320, 0x7323, 0x7324, 0x7326, 0x7327, 0x7328, 0x732d, 0x732f, 0x7330, 0x7332, 0x7333, 0x7335, 0x7336, 0x733a, 0x733b, 0x733c, 0x733d, 0x7340, 0x7341, 0x7342, 0x7343, 0x7344, 0x7345, 0x7346, 0x7347, 0x7348, 0xfffd, 0x7349, 0x734a, 0x734b, 0x734c, 0x734e, 0x734f, 0x7351, 0x7353, 0x7354, 0x7355, 0x7356, 0x7358, 0x7359, 0x735a, 0x735b, 0x735c, 0x735d, 0x735e, 0x735f, 0x7361, 0x7362, 0x7363, 0x7364, 0x7365, 0x7366, 0x7367, 0x7368, 0x7369, 0x736a, 0x736b, 0x736e, 0x7370 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xab40[ 96 ] = { 0x7372, 0x7373, 0x7374, 0x7375, 0x7376, 0x7377, 0x7378, 0x7379, 0x737a, 0x737b, 0x737c, 0x737d, 0x737f, 0x7380, 0x7381, 0x7382, 0x7383, 0x7385, 0x7386, 0x7388, 0x738a, 0x738c, 0x738d, 0x738f, 0x7390, 0x7392, 0x7393, 0x7394, 0x7395, 0x7397, 0x7398, 0x7399, 0x739a, 0x739c, 0x739d, 0x739e, 0x73a0, 0x73a1, 0x73a3, 0x73a4, 0x73a5, 0x73a6, 0x73a7, 0x73a8, 0x73aa, 0x73ac, 0x73ad, 0x73b1, 0x73b4, 0x73b5, 0x73b6, 0x73b8, 0x73b9, 0x73bc, 0x73bd, 0x73be, 0x73bf, 0x73c1, 0x73c3, 0x73c4, 0x73c5, 0x73c6, 0x73c7, 0xfffd, 0x73cb, 0x73cc, 0x73ce, 0x73d2, 0x73d3, 0x73d4, 0x73d5, 0x73d6, 0x73d7, 0x73d8, 0x73da, 0x73db, 0x73dc, 0x73dd, 0x73df, 0x73e1, 0x73e2, 0x73e3, 0x73e4, 0x73e6, 0x73e8, 0x73ea, 0x73eb, 0x73ec, 0x73ee, 0x73ef, 0x73f0, 0x73f1, 0x73f3, 0x73f4, 0x73f5, 0x73f6 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xac40[ 96 ] = { 0x73f8, 0x73f9, 0x73fa, 0x73fb, 0x73fc, 0x73fd, 0x73fe, 0x73ff, 0x7400, 0x7401, 0x7402, 0x7404, 0x7407, 0x7408, 0x740b, 0x740c, 0x740d, 0x740e, 0x7411, 0x7412, 0x7413, 0x7414, 0x7415, 0x7416, 0x7417, 0x7418, 0x7419, 0x741c, 0x741d, 0x741e, 0x741f, 0x7420, 0x7421, 0x7423, 0x7424, 0x7427, 0x7429, 0x742b, 0x742d, 0x742f, 0x7431, 0x7432, 0x7437, 0x7438, 0x7439, 0x743a, 0x743b, 0x743d, 0x743e, 0x743f, 0x7440, 0x7442, 0x7443, 0x7444, 0x7445, 0x7446, 0x7447, 0x7448, 0x7449, 0x744a, 0x744b, 0x744c, 0x744d, 0xfffd, 0x744e, 0x744f, 0x7450, 0x7451, 0x7452, 0x7453, 0x7454, 0x7456, 0x7458, 0x745d, 0x7460, 0x7461, 0x7462, 0x7463, 0x7464, 0x7465, 0x7466, 0x7467, 0x7468, 0x7469, 0x746a, 0x746b, 0x746c, 0x746e, 0x746f, 0x7471, 0x7472, 0x7473, 0x7474, 0x7475, 0x7478, 0x7479 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xad40[ 96 ] = { 0x747b, 0x747c, 0x747d, 0x747f, 0x7482, 0x7484, 0x7485, 0x7486, 0x7488, 0x7489, 0x748a, 0x748c, 0x748d, 0x748f, 0x7491, 0x7492, 0x7493, 0x7494, 0x7495, 0x7496, 0x7497, 0x7498, 0x7499, 0x749a, 0x749b, 0x749d, 0x749f, 0x74a0, 0x74a1, 0x74a2, 0x74a3, 0x74a4, 0x74a5, 0x74a6, 0x74aa, 0x74ab, 0x74ac, 0x74ad, 0x74ae, 0x74af, 0x74b0, 0x74b1, 0x74b2, 0x74b3, 0x74b4, 0x74b5, 0x74b6, 0x74b7, 0x74b8, 0x74b9, 0x74bb, 0x74bc, 0x74bd, 0x74be, 0x74bf, 0x74c0, 0x74c1, 0x74c2, 0x74c3, 0x74c4, 0x74c5, 0x74c6, 0x74c7, 0xfffd, 0x74c8, 0x74c9, 0x74ca, 0x74cb, 0x74cc, 0x74cd, 0x74ce, 0x74cf, 0x74d0, 0x74d1, 0x74d3, 0x74d4, 0x74d5, 0x74d6, 0x74d7, 0x74d8, 0x74d9, 0x74da, 0x74db, 0x74dd, 0x74df, 0x74e1, 0x74e5, 0x74e7, 0x74e8, 0x74e9, 0x74ea, 0x74eb, 0x74ec, 0x74ed, 0x74f0, 0x74f1 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xae40[ 96 ] = { 0x74f3, 0x74f5, 0x74f8, 0x74f9, 0x74fa, 0x74fb, 0x74fc, 0x74fd, 0x74fe, 0x7500, 0x7501, 0x7502, 0x7503, 0x7505, 0x7506, 0x7507, 0x7508, 0x7509, 0x750a, 0x750b, 0x750c, 0x750e, 0x7510, 0x7512, 0x7514, 0x7515, 0x7516, 0x7517, 0x751b, 0x751d, 0x751e, 0x7520, 0x7521, 0x7522, 0x7523, 0x7524, 0x7526, 0x7527, 0x752a, 0x752e, 0x7534, 0x7536, 0x7539, 0x753c, 0x753d, 0x753f, 0x7541, 0x7542, 0x7543, 0x7544, 0x7546, 0x7547, 0x7549, 0x754a, 0x754d, 0x7550, 0x7551, 0x7552, 0x7553, 0x7555, 0x7556, 0x7557, 0x7558, 0xfffd, 0x755d, 0x755e, 0x755f, 0x7560, 0x7561, 0x7562, 0x7563, 0x7564, 0x7567, 0x7568, 0x7569, 0x756b, 0x756c, 0x756d, 0x756e, 0x756f, 0x7570, 0x7571, 0x7573, 0x7575, 0x7576, 0x7577, 0x757a, 0x757b, 0x757c, 0x757d, 0x757e, 0x7580, 0x7581, 0x7582, 0x7584, 0x7585 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaf40[ 96 ] = { 0x7588, 0x7589, 0x758a, 0x758c, 0x758d, 0x758e, 0x7590, 0x7593, 0x7595, 0x7598, 0x759b, 0x759c, 0x759e, 0x75a2, 0x75a6, 0x75a7, 0x75a8, 0x75a9, 0x75aa, 0x75ad, 0x75b6, 0x75b7, 0x75ba, 0x75bb, 0x75bf, 0x75c0, 0x75c1, 0x75c6, 0x75cb, 0x75cc, 0x75ce, 0x75cf, 0x75d0, 0x75d1, 0x75d3, 0x75d7, 0x75d9, 0x75da, 0x75dc, 0x75dd, 0x75df, 0x75e0, 0x75e1, 0x75e5, 0x75e9, 0x75ec, 0x75ed, 0x75ee, 0x75ef, 0x75f2, 0x75f3, 0x75f5, 0x75f6, 0x75f7, 0x75f8, 0x75fa, 0x75fb, 0x75fd, 0x75fe, 0x7602, 0x7604, 0x7606, 0x7607, 0xfffd, 0x7608, 0x7609, 0x760b, 0x760d, 0x760e, 0x760f, 0x7611, 0x7612, 0x7613, 0x7614, 0x7616, 0x761a, 0x761c, 0x761d, 0x761e, 0x7621, 0x7623, 0x7627, 0x7628, 0x762c, 0x762e, 0x762f, 0x7631, 0x7632, 0x7636, 0x7637, 0x7639, 0x763a, 0x763b, 0x763d, 0x7641, 0x7642 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb040[ 192 ] = { 0x7645, 0x7646, 0x7647, 0x7648, 0x7649, 0x764a, 0x764b, 0x764e, 0x764f, 0x7650, 0x7651, 0x7652, 0x7653, 0x7655, 0x7657, 0x7658, 0x7659, 0x765a, 0x765b, 0x765d, 0x765f, 0x7660, 0x7661, 0x7662, 0x7664, 0x7665, 0x7666, 0x7667, 0x7668, 0x7669, 0x766a, 0x766c, 0x766d, 0x766e, 0x7670, 0x7671, 0x7672, 0x7673, 0x7674, 0x7675, 0x7676, 0x7677, 0x7679, 0x767a, 0x767c, 0x767f, 0x7680, 0x7681, 0x7683, 0x7685, 0x7689, 0x768a, 0x768c, 0x768d, 0x768f, 0x7690, 0x7692, 0x7694, 0x7695, 0x7697, 0x7698, 0x769a, 0x769b, 0xfffd, 0x769c, 0x769d, 0x769e, 0x769f, 0x76a0, 0x76a1, 0x76a2, 0x76a3, 0x76a5, 0x76a6, 0x76a7, 0x76a8, 0x76a9, 0x76aa, 0x76ab, 0x76ac, 0x76ad, 0x76af, 0x76b0, 0x76b3, 0x76b5, 0x76b6, 0x76b7, 0x76b8, 0x76b9, 0x76ba, 0x76bb, 0x76bc, 0x76bd, 0x76be, 0x76c0, 0x76c1, 0x76c3, 0x554a, 0x963f, 0x57c3, 0x6328, 0x54ce, 0x5509, 0x54c0, 0x7691, 0x764c, 0x853c, 0x77ee, 0x827e, 0x788d, 0x7231, 0x9698, 0x978d, 0x6c28, 0x5b89, 0x4ffa, 0x6309, 0x6697, 0x5cb8, 0x80fa, 0x6848, 0x80ae, 0x6602, 0x76ce, 0x51f9, 0x6556, 0x71ac, 0x7ff1, 0x8884, 0x50b2, 0x5965, 0x61ca, 0x6fb3, 0x82ad, 0x634c, 0x6252, 0x53ed, 0x5427, 0x7b06, 0x516b, 0x75a4, 0x5df4, 0x62d4, 0x8dcb, 0x9776, 0x628a, 0x8019, 0x575d, 0x9738, 0x7f62, 0x7238, 0x767d, 0x67cf, 0x767e, 0x6446, 0x4f70, 0x8d25, 0x62dc, 0x7a17, 0x6591, 0x73ed, 0x642c, 0x6273, 0x822c, 0x9881, 0x677f, 0x7248, 0x626e, 0x62cc, 0x4f34, 0x74e3, 0x534a, 0x529e, 0x7eca, 0x90a6, 0x5e2e, 0x6886, 0x699c, 0x8180, 0x7ed1, 0x68d2, 0x78c5, 0x868c, 0x9551, 0x508d, 0x8c24, 0x82de, 0x80de, 0x5305, 0x8912, 0x5265, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb140[ 192 ] = { 0x76c4, 0x76c7, 0x76c9, 0x76cb, 0x76cc, 0x76d3, 0x76d5, 0x76d9, 0x76da, 0x76dc, 0x76dd, 0x76de, 0x76e0, 0x76e1, 0x76e2, 0x76e3, 0x76e4, 0x76e6, 0x76e7, 0x76e8, 0x76e9, 0x76ea, 0x76eb, 0x76ec, 0x76ed, 0x76f0, 0x76f3, 0x76f5, 0x76f6, 0x76f7, 0x76fa, 0x76fb, 0x76fd, 0x76ff, 0x7700, 0x7702, 0x7703, 0x7705, 0x7706, 0x770a, 0x770c, 0x770e, 0x770f, 0x7710, 0x7711, 0x7712, 0x7713, 0x7714, 0x7715, 0x7716, 0x7717, 0x7718, 0x771b, 0x771c, 0x771d, 0x771e, 0x7721, 0x7723, 0x7724, 0x7725, 0x7727, 0x772a, 0x772b, 0xfffd, 0x772c, 0x772e, 0x7730, 0x7731, 0x7732, 0x7733, 0x7734, 0x7739, 0x773b, 0x773d, 0x773e, 0x773f, 0x7742, 0x7744, 0x7745, 0x7746, 0x7748, 0x7749, 0x774a, 0x774b, 0x774c, 0x774d, 0x774e, 0x774f, 0x7752, 0x7753, 0x7754, 0x7755, 0x7756, 0x7757, 0x7758, 0x7759, 0x775c, 0x8584, 0x96f9, 0x4fdd, 0x5821, 0x9971, 0x5b9d, 0x62b1, 0x62a5, 0x66b4, 0x8c79, 0x9c8d, 0x7206, 0x676f, 0x7891, 0x60b2, 0x5351, 0x5317, 0x8f88, 0x80cc, 0x8d1d, 0x94a1, 0x500d, 0x72c8, 0x5907, 0x60eb, 0x7119, 0x88ab, 0x5954, 0x82ef, 0x672c, 0x7b28, 0x5d29, 0x7ef7, 0x752d, 0x6cf5, 0x8e66, 0x8ff8, 0x903c, 0x9f3b, 0x6bd4, 0x9119, 0x7b14, 0x5f7c, 0x78a7, 0x84d6, 0x853d, 0x6bd5, 0x6bd9, 0x6bd6, 0x5e01, 0x5e87, 0x75f9, 0x95ed, 0x655d, 0x5f0a, 0x5fc5, 0x8f9f, 0x58c1, 0x81c2, 0x907f, 0x965b, 0x97ad, 0x8fb9, 0x7f16, 0x8d2c, 0x6241, 0x4fbf, 0x53d8, 0x535e, 0x8fa8, 0x8fa9, 0x8fab, 0x904d, 0x6807, 0x5f6a, 0x8198, 0x8868, 0x9cd6, 0x618b, 0x522b, 0x762a, 0x5f6c, 0x658c, 0x6fd2, 0x6ee8, 0x5bbe, 0x6448, 0x5175, 0x51b0, 0x67c4, 0x4e19, 0x79c9, 0x997c, 0x70b3, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb240[ 192 ] = { 0x775d, 0x775e, 0x775f, 0x7760, 0x7764, 0x7767, 0x7769, 0x776a, 0x776d, 0x776e, 0x776f, 0x7770, 0x7771, 0x7772, 0x7773, 0x7774, 0x7775, 0x7776, 0x7777, 0x7778, 0x777a, 0x777b, 0x777c, 0x7781, 0x7782, 0x7783, 0x7786, 0x7787, 0x7788, 0x7789, 0x778a, 0x778b, 0x778f, 0x7790, 0x7793, 0x7794, 0x7795, 0x7796, 0x7797, 0x7798, 0x7799, 0x779a, 0x779b, 0x779c, 0x779d, 0x779e, 0x77a1, 0x77a3, 0x77a4, 0x77a6, 0x77a8, 0x77ab, 0x77ad, 0x77ae, 0x77af, 0x77b1, 0x77b2, 0x77b4, 0x77b6, 0x77b7, 0x77b8, 0x77b9, 0x77ba, 0xfffd, 0x77bc, 0x77be, 0x77c0, 0x77c1, 0x77c2, 0x77c3, 0x77c4, 0x77c5, 0x77c6, 0x77c7, 0x77c8, 0x77c9, 0x77ca, 0x77cb, 0x77cc, 0x77ce, 0x77cf, 0x77d0, 0x77d1, 0x77d2, 0x77d3, 0x77d4, 0x77d5, 0x77d6, 0x77d8, 0x77d9, 0x77da, 0x77dd, 0x77de, 0x77df, 0x77e0, 0x77e1, 0x77e4, 0x75c5, 0x5e76, 0x73bb, 0x83e0, 0x64ad, 0x62e8, 0x94b5, 0x6ce2, 0x535a, 0x52c3, 0x640f, 0x94c2, 0x7b94, 0x4f2f, 0x5e1b, 0x8236, 0x8116, 0x818a, 0x6e24, 0x6cca, 0x9a73, 0x6355, 0x535c, 0x54fa, 0x8865, 0x57e0, 0x4e0d, 0x5e03, 0x6b65, 0x7c3f, 0x90e8, 0x6016, 0x64e6, 0x731c, 0x88c1, 0x6750, 0x624d, 0x8d22, 0x776c, 0x8e29, 0x91c7, 0x5f69, 0x83dc, 0x8521, 0x9910, 0x53c2, 0x8695, 0x6b8b, 0x60ed, 0x60e8, 0x707f, 0x82cd, 0x8231, 0x4ed3, 0x6ca7, 0x85cf, 0x64cd, 0x7cd9, 0x69fd, 0x66f9, 0x8349, 0x5395, 0x7b56, 0x4fa7, 0x518c, 0x6d4b, 0x5c42, 0x8e6d, 0x63d2, 0x53c9, 0x832c, 0x8336, 0x67e5, 0x78b4, 0x643d, 0x5bdf, 0x5c94, 0x5dee, 0x8be7, 0x62c6, 0x67f4, 0x8c7a, 0x6400, 0x63ba, 0x8749, 0x998b, 0x8c17, 0x7f20, 0x94f2, 0x4ea7, 0x9610, 0x98a4, 0x660c, 0x7316, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb340[ 192 ] = { 0x77e6, 0x77e8, 0x77ea, 0x77ef, 0x77f0, 0x77f1, 0x77f2, 0x77f4, 0x77f5, 0x77f7, 0x77f9, 0x77fa, 0x77fb, 0x77fc, 0x7803, 0x7804, 0x7805, 0x7806, 0x7807, 0x7808, 0x780a, 0x780b, 0x780e, 0x780f, 0x7810, 0x7813, 0x7815, 0x7819, 0x781b, 0x781e, 0x7820, 0x7821, 0x7822, 0x7824, 0x7828, 0x782a, 0x782b, 0x782e, 0x782f, 0x7831, 0x7832, 0x7833, 0x7835, 0x7836, 0x783d, 0x783f, 0x7841, 0x7842, 0x7843, 0x7844, 0x7846, 0x7848, 0x7849, 0x784a, 0x784b, 0x784d, 0x784f, 0x7851, 0x7853, 0x7854, 0x7858, 0x7859, 0x785a, 0xfffd, 0x785b, 0x785c, 0x785e, 0x785f, 0x7860, 0x7861, 0x7862, 0x7863, 0x7864, 0x7865, 0x7866, 0x7867, 0x7868, 0x7869, 0x786f, 0x7870, 0x7871, 0x7872, 0x7873, 0x7874, 0x7875, 0x7876, 0x7878, 0x7879, 0x787a, 0x787b, 0x787d, 0x787e, 0x787f, 0x7880, 0x7881, 0x7882, 0x7883, 0x573a, 0x5c1d, 0x5e38, 0x957f, 0x507f, 0x80a0, 0x5382, 0x655e, 0x7545, 0x5531, 0x5021, 0x8d85, 0x6284, 0x949e, 0x671d, 0x5632, 0x6f6e, 0x5de2, 0x5435, 0x7092, 0x8f66, 0x626f, 0x64a4, 0x63a3, 0x5f7b, 0x6f88, 0x90f4, 0x81e3, 0x8fb0, 0x5c18, 0x6668, 0x5ff1, 0x6c89, 0x9648, 0x8d81, 0x886c, 0x6491, 0x79f0, 0x57ce, 0x6a59, 0x6210, 0x5448, 0x4e58, 0x7a0b, 0x60e9, 0x6f84, 0x8bda, 0x627f, 0x901e, 0x9a8b, 0x79e4, 0x5403, 0x75f4, 0x6301, 0x5319, 0x6c60, 0x8fdf, 0x5f1b, 0x9a70, 0x803b, 0x9f7f, 0x4f88, 0x5c3a, 0x8d64, 0x7fc5, 0x65a5, 0x70bd, 0x5145, 0x51b2, 0x866b, 0x5d07, 0x5ba0, 0x62bd, 0x916c, 0x7574, 0x8e0c, 0x7a20, 0x6101, 0x7b79, 0x4ec7, 0x7ef8, 0x7785, 0x4e11, 0x81ed, 0x521d, 0x51fa, 0x6a71, 0x53a8, 0x8e87, 0x9504, 0x96cf, 0x6ec1, 0x9664, 0x695a, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb440[ 192 ] = { 0x7884, 0x7885, 0x7886, 0x7888, 0x788a, 0x788b, 0x788f, 0x7890, 0x7892, 0x7894, 0x7895, 0x7896, 0x7899, 0x789d, 0x789e, 0x78a0, 0x78a2, 0x78a4, 0x78a6, 0x78a8, 0x78a9, 0x78aa, 0x78ab, 0x78ac, 0x78ad, 0x78ae, 0x78af, 0x78b5, 0x78b6, 0x78b7, 0x78b8, 0x78ba, 0x78bb, 0x78bc, 0x78bd, 0x78bf, 0x78c0, 0x78c2, 0x78c3, 0x78c4, 0x78c6, 0x78c7, 0x78c8, 0x78cc, 0x78cd, 0x78ce, 0x78cf, 0x78d1, 0x78d2, 0x78d3, 0x78d6, 0x78d7, 0x78d8, 0x78da, 0x78db, 0x78dc, 0x78dd, 0x78de, 0x78df, 0x78e0, 0x78e1, 0x78e2, 0x78e3, 0xfffd, 0x78e4, 0x78e5, 0x78e6, 0x78e7, 0x78e9, 0x78ea, 0x78eb, 0x78ed, 0x78ee, 0x78ef, 0x78f0, 0x78f1, 0x78f3, 0x78f5, 0x78f6, 0x78f8, 0x78f9, 0x78fb, 0x78fc, 0x78fd, 0x78fe, 0x78ff, 0x7900, 0x7902, 0x7903, 0x7904, 0x7906, 0x7907, 0x7908, 0x7909, 0x790a, 0x790b, 0x790c, 0x7840, 0x50a8, 0x77d7, 0x6410, 0x89e6, 0x5904, 0x63e3, 0x5ddd, 0x7a7f, 0x693d, 0x4f20, 0x8239, 0x5598, 0x4e32, 0x75ae, 0x7a97, 0x5e62, 0x5e8a, 0x95ef, 0x521b, 0x5439, 0x708a, 0x6376, 0x9524, 0x5782, 0x6625, 0x693f, 0x9187, 0x5507, 0x6df3, 0x7eaf, 0x8822, 0x6233, 0x7ef0, 0x75b5, 0x8328, 0x78c1, 0x96cc, 0x8f9e, 0x6148, 0x74f7, 0x8bcd, 0x6b64, 0x523a, 0x8d50, 0x6b21, 0x806a, 0x8471, 0x56f1, 0x5306, 0x4ece, 0x4e1b, 0x51d1, 0x7c97, 0x918b, 0x7c07, 0x4fc3, 0x8e7f, 0x7be1, 0x7a9c, 0x6467, 0x5d14, 0x50ac, 0x8106, 0x7601, 0x7cb9, 0x6dec, 0x7fe0, 0x6751, 0x5b58, 0x5bf8, 0x78cb, 0x64ae, 0x6413, 0x63aa, 0x632b, 0x9519, 0x642d, 0x8fbe, 0x7b54, 0x7629, 0x6253, 0x5927, 0x5446, 0x6b79, 0x50a3, 0x6234, 0x5e26, 0x6b86, 0x4ee3, 0x8d37, 0x888b, 0x5f85, 0x902e, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb540[ 192 ] = { 0x790d, 0x790e, 0x790f, 0x7910, 0x7911, 0x7912, 0x7914, 0x7915, 0x7916, 0x7917, 0x7918, 0x7919, 0x791a, 0x791b, 0x791c, 0x791d, 0x791f, 0x7920, 0x7921, 0x7922, 0x7923, 0x7925, 0x7926, 0x7927, 0x7928, 0x7929, 0x792a, 0x792b, 0x792c, 0x792d, 0x792e, 0x792f, 0x7930, 0x7931, 0x7932, 0x7933, 0x7935, 0x7936, 0x7937, 0x7938, 0x7939, 0x793d, 0x793f, 0x7942, 0x7943, 0x7944, 0x7945, 0x7947, 0x794a, 0x794b, 0x794c, 0x794d, 0x794e, 0x794f, 0x7950, 0x7951, 0x7952, 0x7954, 0x7955, 0x7958, 0x7959, 0x7961, 0x7963, 0xfffd, 0x7964, 0x7966, 0x7969, 0x796a, 0x796b, 0x796c, 0x796e, 0x7970, 0x7971, 0x7972, 0x7973, 0x7974, 0x7975, 0x7976, 0x7979, 0x797b, 0x797c, 0x797d, 0x797e, 0x797f, 0x7982, 0x7983, 0x7986, 0x7987, 0x7988, 0x7989, 0x798b, 0x798c, 0x798d, 0x798e, 0x7990, 0x7991, 0x7992, 0x6020, 0x803d, 0x62c5, 0x4e39, 0x5355, 0x90f8, 0x63b8, 0x80c6, 0x65e6, 0x6c2e, 0x4f46, 0x60ee, 0x6de1, 0x8bde, 0x5f39, 0x86cb, 0x5f53, 0x6321, 0x515a, 0x8361, 0x6863, 0x5200, 0x6363, 0x8e48, 0x5012, 0x5c9b, 0x7977, 0x5bfc, 0x5230, 0x7a3b, 0x60bc, 0x9053, 0x76d7, 0x5fb7, 0x5f97, 0x7684, 0x8e6c, 0x706f, 0x767b, 0x7b49, 0x77aa, 0x51f3, 0x9093, 0x5824, 0x4f4e, 0x6ef4, 0x8fea, 0x654c, 0x7b1b, 0x72c4, 0x6da4, 0x7fdf, 0x5ae1, 0x62b5, 0x5e95, 0x5730, 0x8482, 0x7b2c, 0x5e1d, 0x5f1f, 0x9012, 0x7f14, 0x98a0, 0x6382, 0x6ec7, 0x7898, 0x70b9, 0x5178, 0x975b, 0x57ab, 0x7535, 0x4f43, 0x7538, 0x5e97, 0x60e6, 0x5960, 0x6dc0, 0x6bbf, 0x7889, 0x53fc, 0x96d5, 0x51cb, 0x5201, 0x6389, 0x540a, 0x9493, 0x8c03, 0x8dcc, 0x7239, 0x789f, 0x8776, 0x8fed, 0x8c0d, 0x53e0, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb640[ 192 ] = { 0x7993, 0x7994, 0x7995, 0x7996, 0x7997, 0x7998, 0x7999, 0x799b, 0x799c, 0x799d, 0x799e, 0x799f, 0x79a0, 0x79a1, 0x79a2, 0x79a3, 0x79a4, 0x79a5, 0x79a6, 0x79a8, 0x79a9, 0x79aa, 0x79ab, 0x79ac, 0x79ad, 0x79ae, 0x79af, 0x79b0, 0x79b1, 0x79b2, 0x79b4, 0x79b5, 0x79b6, 0x79b7, 0x79b8, 0x79bc, 0x79bf, 0x79c2, 0x79c4, 0x79c5, 0x79c7, 0x79c8, 0x79ca, 0x79cc, 0x79ce, 0x79cf, 0x79d0, 0x79d3, 0x79d4, 0x79d6, 0x79d7, 0x79d9, 0x79da, 0x79db, 0x79dc, 0x79dd, 0x79de, 0x79e0, 0x79e1, 0x79e2, 0x79e5, 0x79e8, 0x79ea, 0xfffd, 0x79ec, 0x79ee, 0x79f1, 0x79f2, 0x79f3, 0x79f4, 0x79f5, 0x79f6, 0x79f7, 0x79f9, 0x79fa, 0x79fc, 0x79fe, 0x79ff, 0x7a01, 0x7a04, 0x7a05, 0x7a07, 0x7a08, 0x7a09, 0x7a0a, 0x7a0c, 0x7a0f, 0x7a10, 0x7a11, 0x7a12, 0x7a13, 0x7a15, 0x7a16, 0x7a18, 0x7a19, 0x7a1b, 0x7a1c, 0x4e01, 0x76ef, 0x53ee, 0x9489, 0x9876, 0x9f0e, 0x952d, 0x5b9a, 0x8ba2, 0x4e22, 0x4e1c, 0x51ac, 0x8463, 0x61c2, 0x52a8, 0x680b, 0x4f97, 0x606b, 0x51bb, 0x6d1e, 0x515c, 0x6296, 0x6597, 0x9661, 0x8c46, 0x9017, 0x75d8, 0x90fd, 0x7763, 0x6bd2, 0x728a, 0x72ec, 0x8bfb, 0x5835, 0x7779, 0x8d4c, 0x675c, 0x9540, 0x809a, 0x5ea6, 0x6e21, 0x5992, 0x7aef, 0x77ed, 0x953b, 0x6bb5, 0x65ad, 0x7f0e, 0x5806, 0x5151, 0x961f, 0x5bf9, 0x58a9, 0x5428, 0x8e72, 0x6566, 0x987f, 0x56e4, 0x949d, 0x76fe, 0x9041, 0x6387, 0x54c6, 0x591a, 0x593a, 0x579b, 0x8eb2, 0x6735, 0x8dfa, 0x8235, 0x5241, 0x60f0, 0x5815, 0x86fe, 0x5ce8, 0x9e45, 0x4fc4, 0x989d, 0x8bb9, 0x5a25, 0x6076, 0x5384, 0x627c, 0x904f, 0x9102, 0x997f, 0x6069, 0x800c, 0x513f, 0x8033, 0x5c14, 0x9975, 0x6d31, 0x4e8c, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb740[ 192 ] = { 0x7a1d, 0x7a1f, 0x7a21, 0x7a22, 0x7a24, 0x7a25, 0x7a26, 0x7a27, 0x7a28, 0x7a29, 0x7a2a, 0x7a2b, 0x7a2c, 0x7a2d, 0x7a2e, 0x7a2f, 0x7a30, 0x7a31, 0x7a32, 0x7a34, 0x7a35, 0x7a36, 0x7a38, 0x7a3a, 0x7a3e, 0x7a40, 0x7a41, 0x7a42, 0x7a43, 0x7a44, 0x7a45, 0x7a47, 0x7a48, 0x7a49, 0x7a4a, 0x7a4b, 0x7a4c, 0x7a4d, 0x7a4e, 0x7a4f, 0x7a50, 0x7a52, 0x7a53, 0x7a54, 0x7a55, 0x7a56, 0x7a58, 0x7a59, 0x7a5a, 0x7a5b, 0x7a5c, 0x7a5d, 0x7a5e, 0x7a5f, 0x7a60, 0x7a61, 0x7a62, 0x7a63, 0x7a64, 0x7a65, 0x7a66, 0x7a67, 0x7a68, 0xfffd, 0x7a69, 0x7a6a, 0x7a6b, 0x7a6c, 0x7a6d, 0x7a6e, 0x7a6f, 0x7a71, 0x7a72, 0x7a73, 0x7a75, 0x7a7b, 0x7a7c, 0x7a7d, 0x7a7e, 0x7a82, 0x7a85, 0x7a87, 0x7a89, 0x7a8a, 0x7a8b, 0x7a8c, 0x7a8e, 0x7a8f, 0x7a90, 0x7a93, 0x7a94, 0x7a99, 0x7a9a, 0x7a9b, 0x7a9e, 0x7aa1, 0x7aa2, 0x8d30, 0x53d1, 0x7f5a, 0x7b4f, 0x4f10, 0x4e4f, 0x9600, 0x6cd5, 0x73d0, 0x85e9, 0x5e06, 0x756a, 0x7ffb, 0x6a0a, 0x77fe, 0x9492, 0x7e41, 0x51e1, 0x70e6, 0x53cd, 0x8fd4, 0x8303, 0x8d29, 0x72af, 0x996d, 0x6cdb, 0x574a, 0x82b3, 0x65b9, 0x80aa, 0x623f, 0x9632, 0x59a8, 0x4eff, 0x8bbf, 0x7eba, 0x653e, 0x83f2, 0x975e, 0x5561, 0x98de, 0x80a5, 0x532a, 0x8bfd, 0x5420, 0x80ba, 0x5e9f, 0x6cb8, 0x8d39, 0x82ac, 0x915a, 0x5429, 0x6c1b, 0x5206, 0x7eb7, 0x575f, 0x711a, 0x6c7e, 0x7c89, 0x594b, 0x4efd, 0x5fff, 0x6124, 0x7caa, 0x4e30, 0x5c01, 0x67ab, 0x8702, 0x5cf0, 0x950b, 0x98ce, 0x75af, 0x70fd, 0x9022, 0x51af, 0x7f1d, 0x8bbd, 0x5949, 0x51e4, 0x4f5b, 0x5426, 0x592b, 0x6577, 0x80a4, 0x5b75, 0x6276, 0x62c2, 0x8f90, 0x5e45, 0x6c1f, 0x7b26, 0x4f0f, 0x4fd8, 0x670d, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb840[ 192 ] = { 0x7aa3, 0x7aa4, 0x7aa7, 0x7aa9, 0x7aaa, 0x7aab, 0x7aae, 0x7aaf, 0x7ab0, 0x7ab1, 0x7ab2, 0x7ab4, 0x7ab5, 0x7ab6, 0x7ab7, 0x7ab8, 0x7ab9, 0x7aba, 0x7abb, 0x7abc, 0x7abd, 0x7abe, 0x7ac0, 0x7ac1, 0x7ac2, 0x7ac3, 0x7ac4, 0x7ac5, 0x7ac6, 0x7ac7, 0x7ac8, 0x7ac9, 0x7aca, 0x7acc, 0x7acd, 0x7ace, 0x7acf, 0x7ad0, 0x7ad1, 0x7ad2, 0x7ad3, 0x7ad4, 0x7ad5, 0x7ad7, 0x7ad8, 0x7ada, 0x7adb, 0x7adc, 0x7add, 0x7ae1, 0x7ae2, 0x7ae4, 0x7ae7, 0x7ae8, 0x7ae9, 0x7aea, 0x7aeb, 0x7aec, 0x7aee, 0x7af0, 0x7af1, 0x7af2, 0x7af3, 0xfffd, 0x7af4, 0x7af5, 0x7af6, 0x7af7, 0x7af8, 0x7afb, 0x7afc, 0x7afe, 0x7b00, 0x7b01, 0x7b02, 0x7b05, 0x7b07, 0x7b09, 0x7b0c, 0x7b0d, 0x7b0e, 0x7b10, 0x7b12, 0x7b13, 0x7b16, 0x7b17, 0x7b18, 0x7b1a, 0x7b1c, 0x7b1d, 0x7b1f, 0x7b21, 0x7b22, 0x7b23, 0x7b27, 0x7b29, 0x7b2d, 0x6d6e, 0x6daa, 0x798f, 0x88b1, 0x5f17, 0x752b, 0x629a, 0x8f85, 0x4fef, 0x91dc, 0x65a7, 0x812f, 0x8151, 0x5e9c, 0x8150, 0x8d74, 0x526f, 0x8986, 0x8d4b, 0x590d, 0x5085, 0x4ed8, 0x961c, 0x7236, 0x8179, 0x8d1f, 0x5bcc, 0x8ba3, 0x9644, 0x5987, 0x7f1a, 0x5490, 0x5676, 0x560e, 0x8be5, 0x6539, 0x6982, 0x9499, 0x76d6, 0x6e89, 0x5e72, 0x7518, 0x6746, 0x67d1, 0x7aff, 0x809d, 0x8d76, 0x611f, 0x79c6, 0x6562, 0x8d63, 0x5188, 0x521a, 0x94a2, 0x7f38, 0x809b, 0x7eb2, 0x5c97, 0x6e2f, 0x6760, 0x7bd9, 0x768b, 0x9ad8, 0x818f, 0x7f94, 0x7cd5, 0x641e, 0x9550, 0x7a3f, 0x544a, 0x54e5, 0x6b4c, 0x6401, 0x6208, 0x9e3d, 0x80f3, 0x7599, 0x5272, 0x9769, 0x845b, 0x683c, 0x86e4, 0x9601, 0x9694, 0x94ec, 0x4e2a, 0x5404, 0x7ed9, 0x6839, 0x8ddf, 0x8015, 0x66f4, 0x5e9a, 0x7fb9, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb940[ 192 ] = { 0x7b2f, 0x7b30, 0x7b32, 0x7b34, 0x7b35, 0x7b36, 0x7b37, 0x7b39, 0x7b3b, 0x7b3d, 0x7b3f, 0x7b40, 0x7b41, 0x7b42, 0x7b43, 0x7b44, 0x7b46, 0x7b48, 0x7b4a, 0x7b4d, 0x7b4e, 0x7b53, 0x7b55, 0x7b57, 0x7b59, 0x7b5c, 0x7b5e, 0x7b5f, 0x7b61, 0x7b63, 0x7b64, 0x7b65, 0x7b66, 0x7b67, 0x7b68, 0x7b69, 0x7b6a, 0x7b6b, 0x7b6c, 0x7b6d, 0x7b6f, 0x7b70, 0x7b73, 0x7b74, 0x7b76, 0x7b78, 0x7b7a, 0x7b7c, 0x7b7d, 0x7b7f, 0x7b81, 0x7b82, 0x7b83, 0x7b84, 0x7b86, 0x7b87, 0x7b88, 0x7b89, 0x7b8a, 0x7b8b, 0x7b8c, 0x7b8e, 0x7b8f, 0xfffd, 0x7b91, 0x7b92, 0x7b93, 0x7b96, 0x7b98, 0x7b99, 0x7b9a, 0x7b9b, 0x7b9e, 0x7b9f, 0x7ba0, 0x7ba3, 0x7ba4, 0x7ba5, 0x7bae, 0x7baf, 0x7bb0, 0x7bb2, 0x7bb3, 0x7bb5, 0x7bb6, 0x7bb7, 0x7bb9, 0x7bba, 0x7bbb, 0x7bbc, 0x7bbd, 0x7bbe, 0x7bbf, 0x7bc0, 0x7bc2, 0x7bc3, 0x7bc4, 0x57c2, 0x803f, 0x6897, 0x5de5, 0x653b, 0x529f, 0x606d, 0x9f9a, 0x4f9b, 0x8eac, 0x516c, 0x5bab, 0x5f13, 0x5de9, 0x6c5e, 0x62f1, 0x8d21, 0x5171, 0x94a9, 0x52fe, 0x6c9f, 0x82df, 0x72d7, 0x57a2, 0x6784, 0x8d2d, 0x591f, 0x8f9c, 0x83c7, 0x5495, 0x7b8d, 0x4f30, 0x6cbd, 0x5b64, 0x59d1, 0x9f13, 0x53e4, 0x86ca, 0x9aa8, 0x8c37, 0x80a1, 0x6545, 0x987e, 0x56fa, 0x96c7, 0x522e, 0x74dc, 0x5250, 0x5be1, 0x6302, 0x8902, 0x4e56, 0x62d0, 0x602a, 0x68fa, 0x5173, 0x5b98, 0x51a0, 0x89c2, 0x7ba1, 0x9986, 0x7f50, 0x60ef, 0x704c, 0x8d2f, 0x5149, 0x5e7f, 0x901b, 0x7470, 0x89c4, 0x572d, 0x7845, 0x5f52, 0x9f9f, 0x95fa, 0x8f68, 0x9b3c, 0x8be1, 0x7678, 0x6842, 0x67dc, 0x8dea, 0x8d35, 0x523d, 0x8f8a, 0x6eda, 0x68cd, 0x9505, 0x90ed, 0x56fd, 0x679c, 0x88f9, 0x8fc7, 0x54c8, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xba40[ 192 ] = { 0x7bc5, 0x7bc8, 0x7bc9, 0x7bca, 0x7bcb, 0x7bcd, 0x7bce, 0x7bcf, 0x7bd0, 0x7bd2, 0x7bd4, 0x7bd5, 0x7bd6, 0x7bd7, 0x7bd8, 0x7bdb, 0x7bdc, 0x7bde, 0x7bdf, 0x7be0, 0x7be2, 0x7be3, 0x7be4, 0x7be7, 0x7be8, 0x7be9, 0x7beb, 0x7bec, 0x7bed, 0x7bef, 0x7bf0, 0x7bf2, 0x7bf3, 0x7bf4, 0x7bf5, 0x7bf6, 0x7bf8, 0x7bf9, 0x7bfa, 0x7bfb, 0x7bfd, 0x7bff, 0x7c00, 0x7c01, 0x7c02, 0x7c03, 0x7c04, 0x7c05, 0x7c06, 0x7c08, 0x7c09, 0x7c0a, 0x7c0d, 0x7c0e, 0x7c10, 0x7c11, 0x7c12, 0x7c13, 0x7c14, 0x7c15, 0x7c17, 0x7c18, 0x7c19, 0xfffd, 0x7c1a, 0x7c1b, 0x7c1c, 0x7c1d, 0x7c1e, 0x7c20, 0x7c21, 0x7c22, 0x7c23, 0x7c24, 0x7c25, 0x7c28, 0x7c29, 0x7c2b, 0x7c2c, 0x7c2d, 0x7c2e, 0x7c2f, 0x7c30, 0x7c31, 0x7c32, 0x7c33, 0x7c34, 0x7c35, 0x7c36, 0x7c37, 0x7c39, 0x7c3a, 0x7c3b, 0x7c3c, 0x7c3d, 0x7c3e, 0x7c42, 0x9ab8, 0x5b69, 0x6d77, 0x6c26, 0x4ea5, 0x5bb3, 0x9a87, 0x9163, 0x61a8, 0x90af, 0x97e9, 0x542b, 0x6db5, 0x5bd2, 0x51fd, 0x558a, 0x7f55, 0x7ff0, 0x64bc, 0x634d, 0x65f1, 0x61be, 0x608d, 0x710a, 0x6c57, 0x6c49, 0x592f, 0x676d, 0x822a, 0x58d5, 0x568e, 0x8c6a, 0x6beb, 0x90dd, 0x597d, 0x8017, 0x53f7, 0x6d69, 0x5475, 0x559d, 0x8377, 0x83cf, 0x6838, 0x79be, 0x548c, 0x4f55, 0x5408, 0x76d2, 0x8c89, 0x9602, 0x6cb3, 0x6db8, 0x8d6b, 0x8910, 0x9e64, 0x8d3a, 0x563f, 0x9ed1, 0x75d5, 0x5f88, 0x72e0, 0x6068, 0x54fc, 0x4ea8, 0x6a2a, 0x8861, 0x6052, 0x8f70, 0x54c4, 0x70d8, 0x8679, 0x9e3f, 0x6d2a, 0x5b8f, 0x5f18, 0x7ea2, 0x5589, 0x4faf, 0x7334, 0x543c, 0x539a, 0x5019, 0x540e, 0x547c, 0x4e4e, 0x5ffd, 0x745a, 0x58f6, 0x846b, 0x80e1, 0x8774, 0x72d0, 0x7cca, 0x6e56, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbb40[ 192 ] = { 0x7c43, 0x7c44, 0x7c45, 0x7c46, 0x7c47, 0x7c48, 0x7c49, 0x7c4a, 0x7c4b, 0x7c4c, 0x7c4e, 0x7c4f, 0x7c50, 0x7c51, 0x7c52, 0x7c53, 0x7c54, 0x7c55, 0x7c56, 0x7c57, 0x7c58, 0x7c59, 0x7c5a, 0x7c5b, 0x7c5c, 0x7c5d, 0x7c5e, 0x7c5f, 0x7c60, 0x7c61, 0x7c62, 0x7c63, 0x7c64, 0x7c65, 0x7c66, 0x7c67, 0x7c68, 0x7c69, 0x7c6a, 0x7c6b, 0x7c6c, 0x7c6d, 0x7c6e, 0x7c6f, 0x7c70, 0x7c71, 0x7c72, 0x7c75, 0x7c76, 0x7c77, 0x7c78, 0x7c79, 0x7c7a, 0x7c7e, 0x7c7f, 0x7c80, 0x7c81, 0x7c82, 0x7c83, 0x7c84, 0x7c85, 0x7c86, 0x7c87, 0xfffd, 0x7c88, 0x7c8a, 0x7c8b, 0x7c8c, 0x7c8d, 0x7c8e, 0x7c8f, 0x7c90, 0x7c93, 0x7c94, 0x7c96, 0x7c99, 0x7c9a, 0x7c9b, 0x7ca0, 0x7ca1, 0x7ca3, 0x7ca6, 0x7ca7, 0x7ca8, 0x7ca9, 0x7cab, 0x7cac, 0x7cad, 0x7caf, 0x7cb0, 0x7cb4, 0x7cb5, 0x7cb6, 0x7cb7, 0x7cb8, 0x7cba, 0x7cbb, 0x5f27, 0x864e, 0x552c, 0x62a4, 0x4e92, 0x6caa, 0x6237, 0x82b1, 0x54d7, 0x534e, 0x733e, 0x6ed1, 0x753b, 0x5212, 0x5316, 0x8bdd, 0x69d0, 0x5f8a, 0x6000, 0x6dee, 0x574f, 0x6b22, 0x73af, 0x6853, 0x8fd8, 0x7f13, 0x6362, 0x60a3, 0x5524, 0x75ea, 0x8c62, 0x7115, 0x6da3, 0x5ba6, 0x5e7b, 0x8352, 0x614c, 0x9ec4, 0x78fa, 0x8757, 0x7c27, 0x7687, 0x51f0, 0x60f6, 0x714c, 0x6643, 0x5e4c, 0x604d, 0x8c0e, 0x7070, 0x6325, 0x8f89, 0x5fbd, 0x6062, 0x86d4, 0x56de, 0x6bc1, 0x6094, 0x6167, 0x5349, 0x60e0, 0x6666, 0x8d3f, 0x79fd, 0x4f1a, 0x70e9, 0x6c47, 0x8bb3, 0x8bf2, 0x7ed8, 0x8364, 0x660f, 0x5a5a, 0x9b42, 0x6d51, 0x6df7, 0x8c41, 0x6d3b, 0x4f19, 0x706b, 0x83b7, 0x6216, 0x60d1, 0x970d, 0x8d27, 0x7978, 0x51fb, 0x573e, 0x57fa, 0x673a, 0x7578, 0x7a3d, 0x79ef, 0x7b95, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbc40[ 192 ] = { 0x7cbf, 0x7cc0, 0x7cc2, 0x7cc3, 0x7cc4, 0x7cc6, 0x7cc9, 0x7ccb, 0x7cce, 0x7ccf, 0x7cd0, 0x7cd1, 0x7cd2, 0x7cd3, 0x7cd4, 0x7cd8, 0x7cda, 0x7cdb, 0x7cdd, 0x7cde, 0x7ce1, 0x7ce2, 0x7ce3, 0x7ce4, 0x7ce5, 0x7ce6, 0x7ce7, 0x7ce9, 0x7cea, 0x7ceb, 0x7cec, 0x7ced, 0x7cee, 0x7cf0, 0x7cf1, 0x7cf2, 0x7cf3, 0x7cf4, 0x7cf5, 0x7cf6, 0x7cf7, 0x7cf9, 0x7cfa, 0x7cfc, 0x7cfd, 0x7cfe, 0x7cff, 0x7d00, 0x7d01, 0x7d02, 0x7d03, 0x7d04, 0x7d05, 0x7d06, 0x7d07, 0x7d08, 0x7d09, 0x7d0b, 0x7d0c, 0x7d0d, 0x7d0e, 0x7d0f, 0x7d10, 0xfffd, 0x7d11, 0x7d12, 0x7d13, 0x7d14, 0x7d15, 0x7d16, 0x7d17, 0x7d18, 0x7d19, 0x7d1a, 0x7d1b, 0x7d1c, 0x7d1d, 0x7d1e, 0x7d1f, 0x7d21, 0x7d23, 0x7d24, 0x7d25, 0x7d26, 0x7d28, 0x7d29, 0x7d2a, 0x7d2c, 0x7d2d, 0x7d2e, 0x7d30, 0x7d31, 0x7d32, 0x7d33, 0x7d34, 0x7d35, 0x7d36, 0x808c, 0x9965, 0x8ff9, 0x6fc0, 0x8ba5, 0x9e21, 0x59ec, 0x7ee9, 0x7f09, 0x5409, 0x6781, 0x68d8, 0x8f91, 0x7c4d, 0x96c6, 0x53ca, 0x6025, 0x75be, 0x6c72, 0x5373, 0x5ac9, 0x7ea7, 0x6324, 0x51e0, 0x810a, 0x5df1, 0x84df, 0x6280, 0x5180, 0x5b63, 0x4f0e, 0x796d, 0x5242, 0x60b8, 0x6d4e, 0x5bc4, 0x5bc2, 0x8ba1, 0x8bb0, 0x65e2, 0x5fcc, 0x9645, 0x5993, 0x7ee7, 0x7eaa, 0x5609, 0x67b7, 0x5939, 0x4f73, 0x5bb6, 0x52a0, 0x835a, 0x988a, 0x8d3e, 0x7532, 0x94be, 0x5047, 0x7a3c, 0x4ef7, 0x67b6, 0x9a7e, 0x5ac1, 0x6b7c, 0x76d1, 0x575a, 0x5c16, 0x7b3a, 0x95f4, 0x714e, 0x517c, 0x80a9, 0x8270, 0x5978, 0x7f04, 0x8327, 0x68c0, 0x67ec, 0x78b1, 0x7877, 0x62e3, 0x6361, 0x7b80, 0x4fed, 0x526a, 0x51cf, 0x8350, 0x69db, 0x9274, 0x8df5, 0x8d31, 0x89c1, 0x952e, 0x7bad, 0x4ef6, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbd40[ 192 ] = { 0x7d37, 0x7d38, 0x7d39, 0x7d3a, 0x7d3b, 0x7d3c, 0x7d3d, 0x7d3e, 0x7d3f, 0x7d40, 0x7d41, 0x7d42, 0x7d43, 0x7d44, 0x7d45, 0x7d46, 0x7d47, 0x7d48, 0x7d49, 0x7d4a, 0x7d4b, 0x7d4c, 0x7d4d, 0x7d4e, 0x7d4f, 0x7d50, 0x7d51, 0x7d52, 0x7d53, 0x7d54, 0x7d55, 0x7d56, 0x7d57, 0x7d58, 0x7d59, 0x7d5a, 0x7d5b, 0x7d5c, 0x7d5d, 0x7d5e, 0x7d5f, 0x7d60, 0x7d61, 0x7d62, 0x7d63, 0x7d64, 0x7d65, 0x7d66, 0x7d67, 0x7d68, 0x7d69, 0x7d6a, 0x7d6b, 0x7d6c, 0x7d6d, 0x7d6f, 0x7d70, 0x7d71, 0x7d72, 0x7d73, 0x7d74, 0x7d75, 0x7d76, 0xfffd, 0x7d78, 0x7d79, 0x7d7a, 0x7d7b, 0x7d7c, 0x7d7d, 0x7d7e, 0x7d7f, 0x7d80, 0x7d81, 0x7d82, 0x7d83, 0x7d84, 0x7d85, 0x7d86, 0x7d87, 0x7d88, 0x7d89, 0x7d8a, 0x7d8b, 0x7d8c, 0x7d8d, 0x7d8e, 0x7d8f, 0x7d90, 0x7d91, 0x7d92, 0x7d93, 0x7d94, 0x7d95, 0x7d96, 0x7d97, 0x7d98, 0x5065, 0x8230, 0x5251, 0x996f, 0x6e10, 0x6e85, 0x6da7, 0x5efa, 0x50f5, 0x59dc, 0x5c06, 0x6d46, 0x6c5f, 0x7586, 0x848b, 0x6868, 0x5956, 0x8bb2, 0x5320, 0x9171, 0x964d, 0x8549, 0x6912, 0x7901, 0x7126, 0x80f6, 0x4ea4, 0x90ca, 0x6d47, 0x9a84, 0x5a07, 0x56bc, 0x6405, 0x94f0, 0x77eb, 0x4fa5, 0x811a, 0x72e1, 0x89d2, 0x997a, 0x7f34, 0x7ede, 0x527f, 0x6559, 0x9175, 0x8f7f, 0x8f83, 0x53eb, 0x7a96, 0x63ed, 0x63a5, 0x7686, 0x79f8, 0x8857, 0x9636, 0x622a, 0x52ab, 0x8282, 0x6854, 0x6770, 0x6377, 0x776b, 0x7aed, 0x6d01, 0x7ed3, 0x89e3, 0x59d0, 0x6212, 0x85c9, 0x82a5, 0x754c, 0x501f, 0x4ecb, 0x75a5, 0x8beb, 0x5c4a, 0x5dfe, 0x7b4b, 0x65a4, 0x91d1, 0x4eca, 0x6d25, 0x895f, 0x7d27, 0x9526, 0x4ec5, 0x8c28, 0x8fdb, 0x9773, 0x664b, 0x7981, 0x8fd1, 0x70ec, 0x6d78, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbe40[ 192 ] = { 0x7d99, 0x7d9a, 0x7d9b, 0x7d9c, 0x7d9d, 0x7d9e, 0x7d9f, 0x7da0, 0x7da1, 0x7da2, 0x7da3, 0x7da4, 0x7da5, 0x7da7, 0x7da8, 0x7da9, 0x7daa, 0x7dab, 0x7dac, 0x7dad, 0x7daf, 0x7db0, 0x7db1, 0x7db2, 0x7db3, 0x7db4, 0x7db5, 0x7db6, 0x7db7, 0x7db8, 0x7db9, 0x7dba, 0x7dbb, 0x7dbc, 0x7dbd, 0x7dbe, 0x7dbf, 0x7dc0, 0x7dc1, 0x7dc2, 0x7dc3, 0x7dc4, 0x7dc5, 0x7dc6, 0x7dc7, 0x7dc8, 0x7dc9, 0x7dca, 0x7dcb, 0x7dcc, 0x7dcd, 0x7dce, 0x7dcf, 0x7dd0, 0x7dd1, 0x7dd2, 0x7dd3, 0x7dd4, 0x7dd5, 0x7dd6, 0x7dd7, 0x7dd8, 0x7dd9, 0xfffd, 0x7dda, 0x7ddb, 0x7ddc, 0x7ddd, 0x7dde, 0x7ddf, 0x7de0, 0x7de1, 0x7de2, 0x7de3, 0x7de4, 0x7de5, 0x7de6, 0x7de7, 0x7de8, 0x7de9, 0x7dea, 0x7deb, 0x7dec, 0x7ded, 0x7dee, 0x7def, 0x7df0, 0x7df1, 0x7df2, 0x7df3, 0x7df4, 0x7df5, 0x7df6, 0x7df7, 0x7df8, 0x7df9, 0x7dfa, 0x5c3d, 0x52b2, 0x8346, 0x5162, 0x830e, 0x775b, 0x6676, 0x9cb8, 0x4eac, 0x60ca, 0x7cbe, 0x7cb3, 0x7ecf, 0x4e95, 0x8b66, 0x666f, 0x9888, 0x9759, 0x5883, 0x656c, 0x955c, 0x5f84, 0x75c9, 0x9756, 0x7adf, 0x7ade, 0x51c0, 0x70af, 0x7a98, 0x63ea, 0x7a76, 0x7ea0, 0x7396, 0x97ed, 0x4e45, 0x7078, 0x4e5d, 0x9152, 0x53a9, 0x6551, 0x65e7, 0x81fc, 0x8205, 0x548e, 0x5c31, 0x759a, 0x97a0, 0x62d8, 0x72d9, 0x75bd, 0x5c45, 0x9a79, 0x83ca, 0x5c40, 0x5480, 0x77e9, 0x4e3e, 0x6cae, 0x805a, 0x62d2, 0x636e, 0x5de8, 0x5177, 0x8ddd, 0x8e1e, 0x952f, 0x4ff1, 0x53e5, 0x60e7, 0x70ac, 0x5267, 0x6350, 0x9e43, 0x5a1f, 0x5026, 0x7737, 0x5377, 0x7ee2, 0x6485, 0x652b, 0x6289, 0x6398, 0x5014, 0x7235, 0x89c9, 0x51b3, 0x8bc0, 0x7edd, 0x5747, 0x83cc, 0x94a7, 0x519b, 0x541b, 0x5cfb, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbf40[ 192 ] = { 0x7dfb, 0x7dfc, 0x7dfd, 0x7dfe, 0x7dff, 0x7e00, 0x7e01, 0x7e02, 0x7e03, 0x7e04, 0x7e05, 0x7e06, 0x7e07, 0x7e08, 0x7e09, 0x7e0a, 0x7e0b, 0x7e0c, 0x7e0d, 0x7e0e, 0x7e0f, 0x7e10, 0x7e11, 0x7e12, 0x7e13, 0x7e14, 0x7e15, 0x7e16, 0x7e17, 0x7e18, 0x7e19, 0x7e1a, 0x7e1b, 0x7e1c, 0x7e1d, 0x7e1e, 0x7e1f, 0x7e20, 0x7e21, 0x7e22, 0x7e23, 0x7e24, 0x7e25, 0x7e26, 0x7e27, 0x7e28, 0x7e29, 0x7e2a, 0x7e2b, 0x7e2c, 0x7e2d, 0x7e2e, 0x7e2f, 0x7e30, 0x7e31, 0x7e32, 0x7e33, 0x7e34, 0x7e35, 0x7e36, 0x7e37, 0x7e38, 0x7e39, 0xfffd, 0x7e3a, 0x7e3c, 0x7e3d, 0x7e3e, 0x7e3f, 0x7e40, 0x7e42, 0x7e43, 0x7e44, 0x7e45, 0x7e46, 0x7e48, 0x7e49, 0x7e4a, 0x7e4b, 0x7e4c, 0x7e4d, 0x7e4e, 0x7e4f, 0x7e50, 0x7e51, 0x7e52, 0x7e53, 0x7e54, 0x7e55, 0x7e56, 0x7e57, 0x7e58, 0x7e59, 0x7e5a, 0x7e5b, 0x7e5c, 0x7e5d, 0x4fca, 0x7ae3, 0x6d5a, 0x90e1, 0x9a8f, 0x5580, 0x5496, 0x5361, 0x54af, 0x5f00, 0x63e9, 0x6977, 0x51ef, 0x6168, 0x520a, 0x582a, 0x52d8, 0x574e, 0x780d, 0x770b, 0x5eb7, 0x6177, 0x7ce0, 0x625b, 0x6297, 0x4ea2, 0x7095, 0x8003, 0x62f7, 0x70e4, 0x9760, 0x5777, 0x82db, 0x67ef, 0x68f5, 0x78d5, 0x9897, 0x79d1, 0x58f3, 0x54b3, 0x53ef, 0x6e34, 0x514b, 0x523b, 0x5ba2, 0x8bfe, 0x80af, 0x5543, 0x57a6, 0x6073, 0x5751, 0x542d, 0x7a7a, 0x6050, 0x5b54, 0x63a7, 0x62a0, 0x53e3, 0x6263, 0x5bc7, 0x67af, 0x54ed, 0x7a9f, 0x82e6, 0x9177, 0x5e93, 0x88e4, 0x5938, 0x57ae, 0x630e, 0x8de8, 0x80ef, 0x5757, 0x7b77, 0x4fa9, 0x5feb, 0x5bbd, 0x6b3e, 0x5321, 0x7b50, 0x72c2, 0x6846, 0x77ff, 0x7736, 0x65f7, 0x51b5, 0x4e8f, 0x76d4, 0x5cbf, 0x7aa5, 0x8475, 0x594e, 0x9b41, 0x5080, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc040[ 192 ] = { 0x7e5e, 0x7e5f, 0x7e60, 0x7e61, 0x7e62, 0x7e63, 0x7e64, 0x7e65, 0x7e66, 0x7e67, 0x7e68, 0x7e69, 0x7e6a, 0x7e6b, 0x7e6c, 0x7e6d, 0x7e6e, 0x7e6f, 0x7e70, 0x7e71, 0x7e72, 0x7e73, 0x7e74, 0x7e75, 0x7e76, 0x7e77, 0x7e78, 0x7e79, 0x7e7a, 0x7e7b, 0x7e7c, 0x7e7d, 0x7e7e, 0x7e7f, 0x7e80, 0x7e81, 0x7e83, 0x7e84, 0x7e85, 0x7e86, 0x7e87, 0x7e88, 0x7e89, 0x7e8a, 0x7e8b, 0x7e8c, 0x7e8d, 0x7e8e, 0x7e8f, 0x7e90, 0x7e91, 0x7e92, 0x7e93, 0x7e94, 0x7e95, 0x7e96, 0x7e97, 0x7e98, 0x7e99, 0x7e9a, 0x7e9c, 0x7e9d, 0x7e9e, 0xfffd, 0x7eae, 0x7eb4, 0x7ebb, 0x7ebc, 0x7ed6, 0x7ee4, 0x7eec, 0x7ef9, 0x7f0a, 0x7f10, 0x7f1e, 0x7f37, 0x7f39, 0x7f3b, 0x7f3c, 0x7f3d, 0x7f3e, 0x7f3f, 0x7f40, 0x7f41, 0x7f43, 0x7f46, 0x7f47, 0x7f48, 0x7f49, 0x7f4a, 0x7f4b, 0x7f4c, 0x7f4d, 0x7f4e, 0x7f4f, 0x7f52, 0x7f53, 0x9988, 0x6127, 0x6e83, 0x5764, 0x6606, 0x6346, 0x56f0, 0x62ec, 0x6269, 0x5ed3, 0x9614, 0x5783, 0x62c9, 0x5587, 0x8721, 0x814a, 0x8fa3, 0x5566, 0x83b1, 0x6765, 0x8d56, 0x84dd, 0x5a6a, 0x680f, 0x62e6, 0x7bee, 0x9611, 0x5170, 0x6f9c, 0x8c30, 0x63fd, 0x89c8, 0x61d2, 0x7f06, 0x70c2, 0x6ee5, 0x7405, 0x6994, 0x72fc, 0x5eca, 0x90ce, 0x6717, 0x6d6a, 0x635e, 0x52b3, 0x7262, 0x8001, 0x4f6c, 0x59e5, 0x916a, 0x70d9, 0x6d9d, 0x52d2, 0x4e50, 0x96f7, 0x956d, 0x857e, 0x78ca, 0x7d2f, 0x5121, 0x5792, 0x64c2, 0x808b, 0x7c7b, 0x6cea, 0x68f1, 0x695e, 0x51b7, 0x5398, 0x68a8, 0x7281, 0x9ece, 0x7bf1, 0x72f8, 0x79bb, 0x6f13, 0x7406, 0x674e, 0x91cc, 0x9ca4, 0x793c, 0x8389, 0x8354, 0x540f, 0x6817, 0x4e3d, 0x5389, 0x52b1, 0x783e, 0x5386, 0x5229, 0x5088, 0x4f8b, 0x4fd0, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc140[ 192 ] = { 0x7f56, 0x7f59, 0x7f5b, 0x7f5c, 0x7f5d, 0x7f5e, 0x7f60, 0x7f63, 0x7f64, 0x7f65, 0x7f66, 0x7f67, 0x7f6b, 0x7f6c, 0x7f6d, 0x7f6f, 0x7f70, 0x7f73, 0x7f75, 0x7f76, 0x7f77, 0x7f78, 0x7f7a, 0x7f7b, 0x7f7c, 0x7f7d, 0x7f7f, 0x7f80, 0x7f82, 0x7f83, 0x7f84, 0x7f85, 0x7f86, 0x7f87, 0x7f88, 0x7f89, 0x7f8b, 0x7f8d, 0x7f8f, 0x7f90, 0x7f91, 0x7f92, 0x7f93, 0x7f95, 0x7f96, 0x7f97, 0x7f98, 0x7f99, 0x7f9b, 0x7f9c, 0x7fa0, 0x7fa2, 0x7fa3, 0x7fa5, 0x7fa6, 0x7fa8, 0x7fa9, 0x7faa, 0x7fab, 0x7fac, 0x7fad, 0x7fae, 0x7fb1, 0xfffd, 0x7fb3, 0x7fb4, 0x7fb5, 0x7fb6, 0x7fb7, 0x7fba, 0x7fbb, 0x7fbe, 0x7fc0, 0x7fc2, 0x7fc3, 0x7fc4, 0x7fc6, 0x7fc7, 0x7fc8, 0x7fc9, 0x7fcb, 0x7fcd, 0x7fcf, 0x7fd0, 0x7fd1, 0x7fd2, 0x7fd3, 0x7fd6, 0x7fd7, 0x7fd9, 0x7fda, 0x7fdb, 0x7fdc, 0x7fdd, 0x7fde, 0x7fe2, 0x7fe3, 0x75e2, 0x7acb, 0x7c92, 0x6ca5, 0x96b6, 0x529b, 0x7483, 0x54e9, 0x4fe9, 0x8054, 0x83b2, 0x8fde, 0x9570, 0x5ec9, 0x601c, 0x6d9f, 0x5e18, 0x655b, 0x8138, 0x94fe, 0x604b, 0x70bc, 0x7ec3, 0x7cae, 0x51c9, 0x6881, 0x7cb1, 0x826f, 0x4e24, 0x8f86, 0x91cf, 0x667e, 0x4eae, 0x8c05, 0x64a9, 0x804a, 0x50da, 0x7597, 0x71ce, 0x5be5, 0x8fbd, 0x6f66, 0x4e86, 0x6482, 0x9563, 0x5ed6, 0x6599, 0x5217, 0x88c2, 0x70c8, 0x52a3, 0x730e, 0x7433, 0x6797, 0x78f7, 0x9716, 0x4e34, 0x90bb, 0x9cde, 0x6dcb, 0x51db, 0x8d41, 0x541d, 0x62ce, 0x73b2, 0x83f1, 0x96f6, 0x9f84, 0x94c3, 0x4f36, 0x7f9a, 0x51cc, 0x7075, 0x9675, 0x5cad, 0x9886, 0x53e6, 0x4ee4, 0x6e9c, 0x7409, 0x69b4, 0x786b, 0x998f, 0x7559, 0x5218, 0x7624, 0x6d41, 0x67f3, 0x516d, 0x9f99, 0x804b, 0x5499, 0x7b3c, 0x7abf, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc240[ 192 ] = { 0x7fe4, 0x7fe7, 0x7fe8, 0x7fea, 0x7feb, 0x7fec, 0x7fed, 0x7fef, 0x7ff2, 0x7ff4, 0x7ff5, 0x7ff6, 0x7ff7, 0x7ff8, 0x7ff9, 0x7ffa, 0x7ffd, 0x7ffe, 0x7fff, 0x8002, 0x8007, 0x8008, 0x8009, 0x800a, 0x800e, 0x800f, 0x8011, 0x8013, 0x801a, 0x801b, 0x801d, 0x801e, 0x801f, 0x8021, 0x8023, 0x8024, 0x802b, 0x802c, 0x802d, 0x802e, 0x802f, 0x8030, 0x8032, 0x8034, 0x8039, 0x803a, 0x803c, 0x803e, 0x8040, 0x8041, 0x8044, 0x8045, 0x8047, 0x8048, 0x8049, 0x804e, 0x804f, 0x8050, 0x8051, 0x8053, 0x8055, 0x8056, 0x8057, 0xfffd, 0x8059, 0x805b, 0x805c, 0x805d, 0x805e, 0x805f, 0x8060, 0x8061, 0x8062, 0x8063, 0x8064, 0x8065, 0x8066, 0x8067, 0x8068, 0x806b, 0x806c, 0x806d, 0x806e, 0x806f, 0x8070, 0x8072, 0x8073, 0x8074, 0x8075, 0x8076, 0x8077, 0x8078, 0x8079, 0x807a, 0x807b, 0x807c, 0x807d, 0x9686, 0x5784, 0x62e2, 0x9647, 0x697c, 0x5a04, 0x6402, 0x7bd3, 0x6f0f, 0x964b, 0x82a6, 0x5362, 0x9885, 0x5e90, 0x7089, 0x63b3, 0x5364, 0x864f, 0x9c81, 0x9e93, 0x788c, 0x9732, 0x8def, 0x8d42, 0x9e7f, 0x6f5e, 0x7984, 0x5f55, 0x9646, 0x622e, 0x9a74, 0x5415, 0x94dd, 0x4fa3, 0x65c5, 0x5c65, 0x5c61, 0x7f15, 0x8651, 0x6c2f, 0x5f8b, 0x7387, 0x6ee4, 0x7eff, 0x5ce6, 0x631b, 0x5b6a, 0x6ee6, 0x5375, 0x4e71, 0x63a0, 0x7565, 0x62a1, 0x8f6e, 0x4f26, 0x4ed1, 0x6ca6, 0x7eb6, 0x8bba, 0x841d, 0x87ba, 0x7f57, 0x903b, 0x9523, 0x7ba9, 0x9aa1, 0x88f8, 0x843d, 0x6d1b, 0x9a86, 0x7edc, 0x5988, 0x9ebb, 0x739b, 0x7801, 0x8682, 0x9a6c, 0x9a82, 0x561b, 0x5417, 0x57cb, 0x4e70, 0x9ea6, 0x5356, 0x8fc8, 0x8109, 0x7792, 0x9992, 0x86ee, 0x6ee1, 0x8513, 0x66fc, 0x6162, 0x6f2b, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc340[ 192 ] = { 0x807e, 0x8081, 0x8082, 0x8085, 0x8088, 0x808a, 0x808d, 0x808e, 0x808f, 0x8090, 0x8091, 0x8092, 0x8094, 0x8095, 0x8097, 0x8099, 0x809e, 0x80a3, 0x80a6, 0x80a7, 0x80a8, 0x80ac, 0x80b0, 0x80b3, 0x80b5, 0x80b6, 0x80b8, 0x80b9, 0x80bb, 0x80c5, 0x80c7, 0x80c8, 0x80c9, 0x80ca, 0x80cb, 0x80cf, 0x80d0, 0x80d1, 0x80d2, 0x80d3, 0x80d4, 0x80d5, 0x80d8, 0x80df, 0x80e0, 0x80e2, 0x80e3, 0x80e6, 0x80ee, 0x80f5, 0x80f7, 0x80f9, 0x80fb, 0x80fe, 0x80ff, 0x8100, 0x8101, 0x8103, 0x8104, 0x8105, 0x8107, 0x8108, 0x810b, 0xfffd, 0x810c, 0x8115, 0x8117, 0x8119, 0x811b, 0x811c, 0x811d, 0x811f, 0x8120, 0x8121, 0x8122, 0x8123, 0x8124, 0x8125, 0x8126, 0x8127, 0x8128, 0x8129, 0x812a, 0x812b, 0x812d, 0x812e, 0x8130, 0x8133, 0x8134, 0x8135, 0x8137, 0x8139, 0x813a, 0x813b, 0x813c, 0x813d, 0x813f, 0x8c29, 0x8292, 0x832b, 0x76f2, 0x6c13, 0x5fd9, 0x83bd, 0x732b, 0x8305, 0x951a, 0x6bdb, 0x77db, 0x94c6, 0x536f, 0x8302, 0x5192, 0x5e3d, 0x8c8c, 0x8d38, 0x4e48, 0x73ab, 0x679a, 0x6885, 0x9176, 0x9709, 0x7164, 0x6ca1, 0x7709, 0x5a92, 0x9541, 0x6bcf, 0x7f8e, 0x6627, 0x5bd0, 0x59b9, 0x5a9a, 0x95e8, 0x95f7, 0x4eec, 0x840c, 0x8499, 0x6aac, 0x76df, 0x9530, 0x731b, 0x68a6, 0x5b5f, 0x772f, 0x919a, 0x9761, 0x7cdc, 0x8ff7, 0x8c1c, 0x5f25, 0x7c73, 0x79d8, 0x89c5, 0x6ccc, 0x871c, 0x5bc6, 0x5e42, 0x68c9, 0x7720, 0x7ef5, 0x5195, 0x514d, 0x52c9, 0x5a29, 0x7f05, 0x9762, 0x82d7, 0x63cf, 0x7784, 0x85d0, 0x79d2, 0x6e3a, 0x5e99, 0x5999, 0x8511, 0x706d, 0x6c11, 0x62bf, 0x76bf, 0x654f, 0x60af, 0x95fd, 0x660e, 0x879f, 0x9e23, 0x94ed, 0x540d, 0x547d, 0x8c2c, 0x6478, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc440[ 192 ] = { 0x8140, 0x8141, 0x8142, 0x8143, 0x8144, 0x8145, 0x8147, 0x8149, 0x814d, 0x814e, 0x814f, 0x8152, 0x8156, 0x8157, 0x8158, 0x815b, 0x815c, 0x815d, 0x815e, 0x815f, 0x8161, 0x8162, 0x8163, 0x8164, 0x8166, 0x8168, 0x816a, 0x816b, 0x816c, 0x816f, 0x8172, 0x8173, 0x8175, 0x8176, 0x8177, 0x8178, 0x8181, 0x8183, 0x8184, 0x8185, 0x8186, 0x8187, 0x8189, 0x818b, 0x818c, 0x818d, 0x818e, 0x8190, 0x8192, 0x8193, 0x8194, 0x8195, 0x8196, 0x8197, 0x8199, 0x819a, 0x819e, 0x819f, 0x81a0, 0x81a1, 0x81a2, 0x81a4, 0x81a5, 0xfffd, 0x81a7, 0x81a9, 0x81ab, 0x81ac, 0x81ad, 0x81ae, 0x81af, 0x81b0, 0x81b1, 0x81b2, 0x81b4, 0x81b5, 0x81b6, 0x81b7, 0x81b8, 0x81b9, 0x81bc, 0x81bd, 0x81be, 0x81bf, 0x81c4, 0x81c5, 0x81c7, 0x81c8, 0x81c9, 0x81cb, 0x81cd, 0x81ce, 0x81cf, 0x81d0, 0x81d1, 0x81d2, 0x81d3, 0x6479, 0x8611, 0x6a21, 0x819c, 0x78e8, 0x6469, 0x9b54, 0x62b9, 0x672b, 0x83ab, 0x58a8, 0x9ed8, 0x6cab, 0x6f20, 0x5bde, 0x964c, 0x8c0b, 0x725f, 0x67d0, 0x62c7, 0x7261, 0x4ea9, 0x59c6, 0x6bcd, 0x5893, 0x66ae, 0x5e55, 0x52df, 0x6155, 0x6728, 0x76ee, 0x7766, 0x7267, 0x7a46, 0x62ff, 0x54ea, 0x5450, 0x94a0, 0x90a3, 0x5a1c, 0x7eb3, 0x6c16, 0x4e43, 0x5976, 0x8010, 0x5948, 0x5357, 0x7537, 0x96be, 0x56ca, 0x6320, 0x8111, 0x607c, 0x95f9, 0x6dd6, 0x5462, 0x9981, 0x5185, 0x5ae9, 0x80fd, 0x59ae, 0x9713, 0x502a, 0x6ce5, 0x5c3c, 0x62df, 0x4f60, 0x533f, 0x817b, 0x9006, 0x6eba, 0x852b, 0x62c8, 0x5e74, 0x78be, 0x64b5, 0x637b, 0x5ff5, 0x5a18, 0x917f, 0x9e1f, 0x5c3f, 0x634f, 0x8042, 0x5b7d, 0x556e, 0x954a, 0x954d, 0x6d85, 0x60a8, 0x67e0, 0x72de, 0x51dd, 0x5b81, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc540[ 192 ] = { 0x81d4, 0x81d5, 0x81d6, 0x81d7, 0x81d8, 0x81d9, 0x81da, 0x81db, 0x81dc, 0x81dd, 0x81de, 0x81df, 0x81e0, 0x81e1, 0x81e2, 0x81e4, 0x81e5, 0x81e6, 0x81e8, 0x81e9, 0x81eb, 0x81ee, 0x81ef, 0x81f0, 0x81f1, 0x81f2, 0x81f5, 0x81f6, 0x81f7, 0x81f8, 0x81f9, 0x81fa, 0x81fd, 0x81ff, 0x8203, 0x8207, 0x8208, 0x8209, 0x820a, 0x820b, 0x820e, 0x820f, 0x8211, 0x8213, 0x8215, 0x8216, 0x8217, 0x8218, 0x8219, 0x821a, 0x821d, 0x8220, 0x8224, 0x8225, 0x8226, 0x8227, 0x8229, 0x822e, 0x8232, 0x823a, 0x823c, 0x823d, 0x823f, 0xfffd, 0x8240, 0x8241, 0x8242, 0x8243, 0x8245, 0x8246, 0x8248, 0x824a, 0x824c, 0x824d, 0x824e, 0x8250, 0x8251, 0x8252, 0x8253, 0x8254, 0x8255, 0x8256, 0x8257, 0x8259, 0x825b, 0x825c, 0x825d, 0x825e, 0x8260, 0x8261, 0x8262, 0x8263, 0x8264, 0x8265, 0x8266, 0x8267, 0x8269, 0x62e7, 0x6cde, 0x725b, 0x626d, 0x94ae, 0x7ebd, 0x8113, 0x6d53, 0x519c, 0x5f04, 0x5974, 0x52aa, 0x6012, 0x5973, 0x6696, 0x8650, 0x759f, 0x632a, 0x61e6, 0x7cef, 0x8bfa, 0x54e6, 0x6b27, 0x9e25, 0x6bb4, 0x85d5, 0x5455, 0x5076, 0x6ca4, 0x556a, 0x8db4, 0x722c, 0x5e15, 0x6015, 0x7436, 0x62cd, 0x6392, 0x724c, 0x5f98, 0x6e43, 0x6d3e, 0x6500, 0x6f58, 0x76d8, 0x78d0, 0x76fc, 0x7554, 0x5224, 0x53db, 0x4e53, 0x5e9e, 0x65c1, 0x802a, 0x80d6, 0x629b, 0x5486, 0x5228, 0x70ae, 0x888d, 0x8dd1, 0x6ce1, 0x5478, 0x80da, 0x57f9, 0x88f4, 0x8d54, 0x966a, 0x914d, 0x4f69, 0x6c9b, 0x55b7, 0x76c6, 0x7830, 0x62a8, 0x70f9, 0x6f8e, 0x5f6d, 0x84ec, 0x68da, 0x787c, 0x7bf7, 0x81a8, 0x670b, 0x9e4f, 0x6367, 0x78b0, 0x576f, 0x7812, 0x9739, 0x6279, 0x62ab, 0x5288, 0x7435, 0x6bd7, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc640[ 192 ] = { 0x826a, 0x826b, 0x826c, 0x826d, 0x8271, 0x8275, 0x8276, 0x8277, 0x8278, 0x827b, 0x827c, 0x8280, 0x8281, 0x8283, 0x8285, 0x8286, 0x8287, 0x8289, 0x828c, 0x8290, 0x8293, 0x8294, 0x8295, 0x8296, 0x829a, 0x829b, 0x829e, 0x82a0, 0x82a2, 0x82a3, 0x82a7, 0x82b2, 0x82b5, 0x82b6, 0x82ba, 0x82bb, 0x82bc, 0x82bf, 0x82c0, 0x82c2, 0x82c3, 0x82c5, 0x82c6, 0x82c9, 0x82d0, 0x82d6, 0x82d9, 0x82da, 0x82dd, 0x82e2, 0x82e7, 0x82e8, 0x82e9, 0x82ea, 0x82ec, 0x82ed, 0x82ee, 0x82f0, 0x82f2, 0x82f3, 0x82f5, 0x82f6, 0x82f8, 0xfffd, 0x82fa, 0x82fc, 0x82fd, 0x82fe, 0x82ff, 0x8300, 0x830a, 0x830b, 0x830d, 0x8310, 0x8312, 0x8313, 0x8316, 0x8318, 0x8319, 0x831d, 0x831e, 0x831f, 0x8320, 0x8321, 0x8322, 0x8323, 0x8324, 0x8325, 0x8326, 0x8329, 0x832a, 0x832e, 0x8330, 0x8332, 0x8337, 0x833b, 0x833d, 0x5564, 0x813e, 0x75b2, 0x76ae, 0x5339, 0x75de, 0x50fb, 0x5c41, 0x8b6c, 0x7bc7, 0x504f, 0x7247, 0x9a97, 0x98d8, 0x6f02, 0x74e2, 0x7968, 0x6487, 0x77a5, 0x62fc, 0x9891, 0x8d2b, 0x54c1, 0x8058, 0x4e52, 0x576a, 0x82f9, 0x840d, 0x5e73, 0x51ed, 0x74f6, 0x8bc4, 0x5c4f, 0x5761, 0x6cfc, 0x9887, 0x5a46, 0x7834, 0x9b44, 0x8feb, 0x7c95, 0x5256, 0x6251, 0x94fa, 0x4ec6, 0x8386, 0x8461, 0x83e9, 0x84b2, 0x57d4, 0x6734, 0x5703, 0x666e, 0x6d66, 0x8c31, 0x66dd, 0x7011, 0x671f, 0x6b3a, 0x6816, 0x621a, 0x59bb, 0x4e03, 0x51c4, 0x6f06, 0x67d2, 0x6c8f, 0x5176, 0x68cb, 0x5947, 0x6b67, 0x7566, 0x5d0e, 0x8110, 0x9f50, 0x65d7, 0x7948, 0x7941, 0x9a91, 0x8d77, 0x5c82, 0x4e5e, 0x4f01, 0x542f, 0x5951, 0x780c, 0x5668, 0x6c14, 0x8fc4, 0x5f03, 0x6c7d, 0x6ce3, 0x8bab, 0x6390, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc740[ 192 ] = { 0x833e, 0x833f, 0x8341, 0x8342, 0x8344, 0x8345, 0x8348, 0x834a, 0x834b, 0x834c, 0x834d, 0x834e, 0x8353, 0x8355, 0x8356, 0x8357, 0x8358, 0x8359, 0x835d, 0x8362, 0x8370, 0x8371, 0x8372, 0x8373, 0x8374, 0x8375, 0x8376, 0x8379, 0x837a, 0x837e, 0x837f, 0x8380, 0x8381, 0x8382, 0x8383, 0x8384, 0x8387, 0x8388, 0x838a, 0x838b, 0x838c, 0x838d, 0x838f, 0x8390, 0x8391, 0x8394, 0x8395, 0x8396, 0x8397, 0x8399, 0x839a, 0x839d, 0x839f, 0x83a1, 0x83a2, 0x83a3, 0x83a4, 0x83a5, 0x83a6, 0x83a7, 0x83ac, 0x83ad, 0x83ae, 0xfffd, 0x83af, 0x83b5, 0x83bb, 0x83be, 0x83bf, 0x83c2, 0x83c3, 0x83c4, 0x83c6, 0x83c8, 0x83c9, 0x83cb, 0x83cd, 0x83ce, 0x83d0, 0x83d1, 0x83d2, 0x83d3, 0x83d5, 0x83d7, 0x83d9, 0x83da, 0x83db, 0x83de, 0x83e2, 0x83e3, 0x83e4, 0x83e6, 0x83e7, 0x83e8, 0x83eb, 0x83ec, 0x83ed, 0x6070, 0x6d3d, 0x7275, 0x6266, 0x948e, 0x94c5, 0x5343, 0x8fc1, 0x7b7e, 0x4edf, 0x8c26, 0x4e7e, 0x9ed4, 0x94b1, 0x94b3, 0x524d, 0x6f5c, 0x9063, 0x6d45, 0x8c34, 0x5811, 0x5d4c, 0x6b20, 0x6b49, 0x67aa, 0x545b, 0x8154, 0x7f8c, 0x5899, 0x8537, 0x5f3a, 0x62a2, 0x6a47, 0x9539, 0x6572, 0x6084, 0x6865, 0x77a7, 0x4e54, 0x4fa8, 0x5de7, 0x9798, 0x64ac, 0x7fd8, 0x5ced, 0x4fcf, 0x7a8d, 0x5207, 0x8304, 0x4e14, 0x602f, 0x7a83, 0x94a6, 0x4fb5, 0x4eb2, 0x79e6, 0x7434, 0x52e4, 0x82b9, 0x64d2, 0x79bd, 0x5bdd, 0x6c81, 0x9752, 0x8f7b, 0x6c22, 0x503e, 0x537f, 0x6e05, 0x64ce, 0x6674, 0x6c30, 0x60c5, 0x9877, 0x8bf7, 0x5e86, 0x743c, 0x7a77, 0x79cb, 0x4e18, 0x90b1, 0x7403, 0x6c42, 0x56da, 0x914b, 0x6cc5, 0x8d8b, 0x533a, 0x86c6, 0x66f2, 0x8eaf, 0x5c48, 0x9a71, 0x6e20, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc840[ 192 ] = { 0x83ee, 0x83ef, 0x83f3, 0x83f4, 0x83f5, 0x83f6, 0x83f7, 0x83fa, 0x83fb, 0x83fc, 0x83fe, 0x83ff, 0x8400, 0x8402, 0x8405, 0x8407, 0x8408, 0x8409, 0x840a, 0x8410, 0x8412, 0x8413, 0x8414, 0x8415, 0x8416, 0x8417, 0x8419, 0x841a, 0x841b, 0x841e, 0x841f, 0x8420, 0x8421, 0x8422, 0x8423, 0x8429, 0x842a, 0x842b, 0x842c, 0x842d, 0x842e, 0x842f, 0x8430, 0x8432, 0x8433, 0x8434, 0x8435, 0x8436, 0x8437, 0x8439, 0x843a, 0x843b, 0x843e, 0x843f, 0x8440, 0x8441, 0x8442, 0x8443, 0x8444, 0x8445, 0x8447, 0x8448, 0x8449, 0xfffd, 0x844a, 0x844b, 0x844c, 0x844d, 0x844e, 0x844f, 0x8450, 0x8452, 0x8453, 0x8454, 0x8455, 0x8456, 0x8458, 0x845d, 0x845e, 0x845f, 0x8460, 0x8462, 0x8464, 0x8465, 0x8466, 0x8467, 0x8468, 0x846a, 0x846e, 0x846f, 0x8470, 0x8472, 0x8474, 0x8477, 0x8479, 0x847b, 0x847c, 0x53d6, 0x5a36, 0x9f8b, 0x8da3, 0x53bb, 0x5708, 0x98a7, 0x6743, 0x919b, 0x6cc9, 0x5168, 0x75ca, 0x62f3, 0x72ac, 0x5238, 0x529d, 0x7f3a, 0x7094, 0x7638, 0x5374, 0x9e4a, 0x69b7, 0x786e, 0x96c0, 0x88d9, 0x7fa4, 0x7136, 0x71c3, 0x5189, 0x67d3, 0x74e4, 0x58e4, 0x6518, 0x56b7, 0x8ba9, 0x9976, 0x6270, 0x7ed5, 0x60f9, 0x70ed, 0x58ec, 0x4ec1, 0x4eba, 0x5fcd, 0x97e7, 0x4efb, 0x8ba4, 0x5203, 0x598a, 0x7eab, 0x6254, 0x4ecd, 0x65e5, 0x620e, 0x8338, 0x84c9, 0x8363, 0x878d, 0x7194, 0x6eb6, 0x5bb9, 0x7ed2, 0x5197, 0x63c9, 0x67d4, 0x8089, 0x8339, 0x8815, 0x5112, 0x5b7a, 0x5982, 0x8fb1, 0x4e73, 0x6c5d, 0x5165, 0x8925, 0x8f6f, 0x962e, 0x854a, 0x745e, 0x9510, 0x95f0, 0x6da6, 0x82e5, 0x5f31, 0x6492, 0x6d12, 0x8428, 0x816e, 0x9cc3, 0x585e, 0x8d5b, 0x4e09, 0x53c1, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc940[ 192 ] = { 0x847d, 0x847e, 0x847f, 0x8480, 0x8481, 0x8483, 0x8484, 0x8485, 0x8486, 0x848a, 0x848d, 0x848f, 0x8490, 0x8491, 0x8492, 0x8493, 0x8494, 0x8495, 0x8496, 0x8498, 0x849a, 0x849b, 0x849d, 0x849e, 0x849f, 0x84a0, 0x84a2, 0x84a3, 0x84a4, 0x84a5, 0x84a6, 0x84a7, 0x84a8, 0x84a9, 0x84aa, 0x84ab, 0x84ac, 0x84ad, 0x84ae, 0x84b0, 0x84b1, 0x84b3, 0x84b5, 0x84b6, 0x84b7, 0x84bb, 0x84bc, 0x84be, 0x84c0, 0x84c2, 0x84c3, 0x84c5, 0x84c6, 0x84c7, 0x84c8, 0x84cb, 0x84cc, 0x84ce, 0x84cf, 0x84d2, 0x84d4, 0x84d5, 0x84d7, 0xfffd, 0x84d8, 0x84d9, 0x84da, 0x84db, 0x84dc, 0x84de, 0x84e1, 0x84e2, 0x84e4, 0x84e7, 0x84e8, 0x84e9, 0x84ea, 0x84eb, 0x84ed, 0x84ee, 0x84ef, 0x84f1, 0x84f2, 0x84f3, 0x84f4, 0x84f5, 0x84f6, 0x84f7, 0x84f8, 0x84f9, 0x84fa, 0x84fb, 0x84fd, 0x84fe, 0x8500, 0x8501, 0x8502, 0x4f1e, 0x6563, 0x6851, 0x55d3, 0x4e27, 0x6414, 0x9a9a, 0x626b, 0x5ac2, 0x745f, 0x8272, 0x6da9, 0x68ee, 0x50e7, 0x838e, 0x7802, 0x6740, 0x5239, 0x6c99, 0x7eb1, 0x50bb, 0x5565, 0x715e, 0x7b5b, 0x6652, 0x73ca, 0x82eb, 0x6749, 0x5c71, 0x5220, 0x717d, 0x886b, 0x95ea, 0x9655, 0x64c5, 0x8d61, 0x81b3, 0x5584, 0x6c55, 0x6247, 0x7f2e, 0x5892, 0x4f24, 0x5546, 0x8d4f, 0x664c, 0x4e0a, 0x5c1a, 0x88f3, 0x68a2, 0x634e, 0x7a0d, 0x70e7, 0x828d, 0x52fa, 0x97f6, 0x5c11, 0x54e8, 0x90b5, 0x7ecd, 0x5962, 0x8d4a, 0x86c7, 0x820c, 0x820d, 0x8d66, 0x6444, 0x5c04, 0x6151, 0x6d89, 0x793e, 0x8bbe, 0x7837, 0x7533, 0x547b, 0x4f38, 0x8eab, 0x6df1, 0x5a20, 0x7ec5, 0x795e, 0x6c88, 0x5ba1, 0x5a76, 0x751a, 0x80be, 0x614e, 0x6e17, 0x58f0, 0x751f, 0x7525, 0x7272, 0x5347, 0x7ef3, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xca40[ 192 ] = { 0x8503, 0x8504, 0x8505, 0x8506, 0x8507, 0x8508, 0x8509, 0x850a, 0x850b, 0x850d, 0x850e, 0x850f, 0x8510, 0x8512, 0x8514, 0x8515, 0x8516, 0x8518, 0x8519, 0x851b, 0x851c, 0x851d, 0x851e, 0x8520, 0x8522, 0x8523, 0x8524, 0x8525, 0x8526, 0x8527, 0x8528, 0x8529, 0x852a, 0x852d, 0x852e, 0x852f, 0x8530, 0x8531, 0x8532, 0x8533, 0x8534, 0x8535, 0x8536, 0x853e, 0x853f, 0x8540, 0x8541, 0x8542, 0x8544, 0x8545, 0x8546, 0x8547, 0x854b, 0x854c, 0x854d, 0x854e, 0x854f, 0x8550, 0x8551, 0x8552, 0x8553, 0x8554, 0x8555, 0xfffd, 0x8557, 0x8558, 0x855a, 0x855b, 0x855c, 0x855d, 0x855f, 0x8560, 0x8561, 0x8562, 0x8563, 0x8565, 0x8566, 0x8567, 0x8569, 0x856a, 0x856b, 0x856c, 0x856d, 0x856e, 0x856f, 0x8570, 0x8571, 0x8573, 0x8575, 0x8576, 0x8577, 0x8578, 0x857c, 0x857d, 0x857f, 0x8580, 0x8581, 0x7701, 0x76db, 0x5269, 0x80dc, 0x5723, 0x5e08, 0x5931, 0x72ee, 0x65bd, 0x6e7f, 0x8bd7, 0x5c38, 0x8671, 0x5341, 0x77f3, 0x62fe, 0x65f6, 0x4ec0, 0x98df, 0x8680, 0x5b9e, 0x8bc6, 0x53f2, 0x77e2, 0x4f7f, 0x5c4e, 0x9a76, 0x59cb, 0x5f0f, 0x793a, 0x58eb, 0x4e16, 0x67ff, 0x4e8b, 0x62ed, 0x8a93, 0x901d, 0x52bf, 0x662f, 0x55dc, 0x566c, 0x9002, 0x4ed5, 0x4f8d, 0x91ca, 0x9970, 0x6c0f, 0x5e02, 0x6043, 0x5ba4, 0x89c6, 0x8bd5, 0x6536, 0x624b, 0x9996, 0x5b88, 0x5bff, 0x6388, 0x552e, 0x53d7, 0x7626, 0x517d, 0x852c, 0x67a2, 0x68b3, 0x6b8a, 0x6292, 0x8f93, 0x53d4, 0x8212, 0x6dd1, 0x758f, 0x4e66, 0x8d4e, 0x5b70, 0x719f, 0x85af, 0x6691, 0x66d9, 0x7f72, 0x8700, 0x9ecd, 0x9f20, 0x5c5e, 0x672f, 0x8ff0, 0x6811, 0x675f, 0x620d, 0x7ad6, 0x5885, 0x5eb6, 0x6570, 0x6f31, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcb40[ 192 ] = { 0x8582, 0x8583, 0x8586, 0x8588, 0x8589, 0x858a, 0x858b, 0x858c, 0x858d, 0x858e, 0x8590, 0x8591, 0x8592, 0x8593, 0x8594, 0x8595, 0x8596, 0x8597, 0x8598, 0x8599, 0x859a, 0x859d, 0x859e, 0x859f, 0x85a0, 0x85a1, 0x85a2, 0x85a3, 0x85a5, 0x85a6, 0x85a7, 0x85a9, 0x85ab, 0x85ac, 0x85ad, 0x85b1, 0x85b2, 0x85b3, 0x85b4, 0x85b5, 0x85b6, 0x85b8, 0x85ba, 0x85bb, 0x85bc, 0x85bd, 0x85be, 0x85bf, 0x85c0, 0x85c2, 0x85c3, 0x85c4, 0x85c5, 0x85c6, 0x85c7, 0x85c8, 0x85ca, 0x85cb, 0x85cc, 0x85cd, 0x85ce, 0x85d1, 0x85d2, 0xfffd, 0x85d4, 0x85d6, 0x85d7, 0x85d8, 0x85d9, 0x85da, 0x85db, 0x85dd, 0x85de, 0x85df, 0x85e0, 0x85e1, 0x85e2, 0x85e3, 0x85e5, 0x85e6, 0x85e7, 0x85e8, 0x85ea, 0x85eb, 0x85ec, 0x85ed, 0x85ee, 0x85ef, 0x85f0, 0x85f1, 0x85f2, 0x85f3, 0x85f4, 0x85f5, 0x85f6, 0x85f7, 0x85f8, 0x6055, 0x5237, 0x800d, 0x6454, 0x8870, 0x7529, 0x5e05, 0x6813, 0x62f4, 0x971c, 0x53cc, 0x723d, 0x8c01, 0x6c34, 0x7761, 0x7a0e, 0x542e, 0x77ac, 0x987a, 0x821c, 0x8bf4, 0x7855, 0x6714, 0x70c1, 0x65af, 0x6495, 0x5636, 0x601d, 0x79c1, 0x53f8, 0x4e1d, 0x6b7b, 0x8086, 0x5bfa, 0x55e3, 0x56db, 0x4f3a, 0x4f3c, 0x9972, 0x5df3, 0x677e, 0x8038, 0x6002, 0x9882, 0x9001, 0x5b8b, 0x8bbc, 0x8bf5, 0x641c, 0x8258, 0x64de, 0x55fd, 0x82cf, 0x9165, 0x4fd7, 0x7d20, 0x901f, 0x7c9f, 0x50f3, 0x5851, 0x6eaf, 0x5bbf, 0x8bc9, 0x8083, 0x9178, 0x849c, 0x7b97, 0x867d, 0x968b, 0x968f, 0x7ee5, 0x9ad3, 0x788e, 0x5c81, 0x7a57, 0x9042, 0x96a7, 0x795f, 0x5b59, 0x635f, 0x7b0b, 0x84d1, 0x68ad, 0x5506, 0x7f29, 0x7410, 0x7d22, 0x9501, 0x6240, 0x584c, 0x4ed6, 0x5b83, 0x5979, 0x5854, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcc40[ 192 ] = { 0x85f9, 0x85fa, 0x85fc, 0x85fd, 0x85fe, 0x8600, 0x8601, 0x8602, 0x8603, 0x8604, 0x8606, 0x8607, 0x8608, 0x8609, 0x860a, 0x860b, 0x860c, 0x860d, 0x860e, 0x860f, 0x8610, 0x8612, 0x8613, 0x8614, 0x8615, 0x8617, 0x8618, 0x8619, 0x861a, 0x861b, 0x861c, 0x861d, 0x861e, 0x861f, 0x8620, 0x8621, 0x8622, 0x8623, 0x8624, 0x8625, 0x8626, 0x8628, 0x862a, 0x862b, 0x862c, 0x862d, 0x862e, 0x862f, 0x8630, 0x8631, 0x8632, 0x8633, 0x8634, 0x8635, 0x8636, 0x8637, 0x8639, 0x863a, 0x863b, 0x863d, 0x863e, 0x863f, 0x8640, 0xfffd, 0x8641, 0x8642, 0x8643, 0x8644, 0x8645, 0x8646, 0x8647, 0x8648, 0x8649, 0x864a, 0x864b, 0x864c, 0x8652, 0x8653, 0x8655, 0x8656, 0x8657, 0x8658, 0x8659, 0x865b, 0x865c, 0x865d, 0x865f, 0x8660, 0x8661, 0x8663, 0x8664, 0x8665, 0x8666, 0x8667, 0x8668, 0x8669, 0x866a, 0x736d, 0x631e, 0x8e4b, 0x8e0f, 0x80ce, 0x82d4, 0x62ac, 0x53f0, 0x6cf0, 0x915e, 0x592a, 0x6001, 0x6c70, 0x574d, 0x644a, 0x8d2a, 0x762b, 0x6ee9, 0x575b, 0x6a80, 0x75f0, 0x6f6d, 0x8c2d, 0x8c08, 0x5766, 0x6bef, 0x8892, 0x78b3, 0x63a2, 0x53f9, 0x70ad, 0x6c64, 0x5858, 0x642a, 0x5802, 0x68e0, 0x819b, 0x5510, 0x7cd6, 0x5018, 0x8eba, 0x6dcc, 0x8d9f, 0x70eb, 0x638f, 0x6d9b, 0x6ed4, 0x7ee6, 0x8404, 0x6843, 0x9003, 0x6dd8, 0x9676, 0x8ba8, 0x5957, 0x7279, 0x85e4, 0x817e, 0x75bc, 0x8a8a, 0x68af, 0x5254, 0x8e22, 0x9511, 0x63d0, 0x9898, 0x8e44, 0x557c, 0x4f53, 0x66ff, 0x568f, 0x60d5, 0x6d95, 0x5243, 0x5c49, 0x5929, 0x6dfb, 0x586b, 0x7530, 0x751c, 0x606c, 0x8214, 0x8146, 0x6311, 0x6761, 0x8fe2, 0x773a, 0x8df3, 0x8d34, 0x94c1, 0x5e16, 0x5385, 0x542c, 0x70c3, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcd40[ 192 ] = { 0x866d, 0x866f, 0x8670, 0x8672, 0x8673, 0x8674, 0x8675, 0x8676, 0x8677, 0x8678, 0x8683, 0x8684, 0x8685, 0x8686, 0x8687, 0x8688, 0x8689, 0x868e, 0x868f, 0x8690, 0x8691, 0x8692, 0x8694, 0x8696, 0x8697, 0x8698, 0x8699, 0x869a, 0x869b, 0x869e, 0x869f, 0x86a0, 0x86a1, 0x86a2, 0x86a5, 0x86a6, 0x86ab, 0x86ad, 0x86ae, 0x86b2, 0x86b3, 0x86b7, 0x86b8, 0x86b9, 0x86bb, 0x86bc, 0x86bd, 0x86be, 0x86bf, 0x86c1, 0x86c2, 0x86c3, 0x86c5, 0x86c8, 0x86cc, 0x86cd, 0x86d2, 0x86d3, 0x86d5, 0x86d6, 0x86d7, 0x86da, 0x86dc, 0xfffd, 0x86dd, 0x86e0, 0x86e1, 0x86e2, 0x86e3, 0x86e5, 0x86e6, 0x86e7, 0x86e8, 0x86ea, 0x86eb, 0x86ec, 0x86ef, 0x86f5, 0x86f6, 0x86f7, 0x86fa, 0x86fb, 0x86fc, 0x86fd, 0x86ff, 0x8701, 0x8704, 0x8705, 0x8706, 0x870b, 0x870c, 0x870e, 0x870f, 0x8710, 0x8711, 0x8714, 0x8716, 0x6c40, 0x5ef7, 0x505c, 0x4ead, 0x5ead, 0x633a, 0x8247, 0x901a, 0x6850, 0x916e, 0x77b3, 0x540c, 0x94dc, 0x5f64, 0x7ae5, 0x6876, 0x6345, 0x7b52, 0x7edf, 0x75db, 0x5077, 0x6295, 0x5934, 0x900f, 0x51f8, 0x79c3, 0x7a81, 0x56fe, 0x5f92, 0x9014, 0x6d82, 0x5c60, 0x571f, 0x5410, 0x5154, 0x6e4d, 0x56e2, 0x63a8, 0x9893, 0x817f, 0x8715, 0x892a, 0x9000, 0x541e, 0x5c6f, 0x81c0, 0x62d6, 0x6258, 0x8131, 0x9e35, 0x9640, 0x9a6e, 0x9a7c, 0x692d, 0x59a5, 0x62d3, 0x553e, 0x6316, 0x54c7, 0x86d9, 0x6d3c, 0x5a03, 0x74e6, 0x889c, 0x6b6a, 0x5916, 0x8c4c, 0x5f2f, 0x6e7e, 0x73a9, 0x987d, 0x4e38, 0x70f7, 0x5b8c, 0x7897, 0x633d, 0x665a, 0x7696, 0x60cb, 0x5b9b, 0x5a49, 0x4e07, 0x8155, 0x6c6a, 0x738b, 0x4ea1, 0x6789, 0x7f51, 0x5f80, 0x65fa, 0x671b, 0x5fd8, 0x5984, 0x5a01, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xce40[ 192 ] = { 0x8719, 0x871b, 0x871d, 0x871f, 0x8720, 0x8724, 0x8726, 0x8727, 0x8728, 0x872a, 0x872b, 0x872c, 0x872d, 0x872f, 0x8730, 0x8732, 0x8733, 0x8735, 0x8736, 0x8738, 0x8739, 0x873a, 0x873c, 0x873d, 0x8740, 0x8741, 0x8742, 0x8743, 0x8744, 0x8745, 0x8746, 0x874a, 0x874b, 0x874d, 0x874f, 0x8750, 0x8751, 0x8752, 0x8754, 0x8755, 0x8756, 0x8758, 0x875a, 0x875b, 0x875c, 0x875d, 0x875e, 0x875f, 0x8761, 0x8762, 0x8766, 0x8767, 0x8768, 0x8769, 0x876a, 0x876b, 0x876c, 0x876d, 0x876f, 0x8771, 0x8772, 0x8773, 0x8775, 0xfffd, 0x8777, 0x8778, 0x8779, 0x877a, 0x877f, 0x8780, 0x8781, 0x8784, 0x8786, 0x8787, 0x8789, 0x878a, 0x878c, 0x878e, 0x878f, 0x8790, 0x8791, 0x8792, 0x8794, 0x8795, 0x8796, 0x8798, 0x8799, 0x879a, 0x879b, 0x879c, 0x879d, 0x879e, 0x87a0, 0x87a1, 0x87a2, 0x87a3, 0x87a4, 0x5dcd, 0x5fae, 0x5371, 0x97e6, 0x8fdd, 0x6845, 0x56f4, 0x552f, 0x60df, 0x4e3a, 0x6f4d, 0x7ef4, 0x82c7, 0x840e, 0x59d4, 0x4f1f, 0x4f2a, 0x5c3e, 0x7eac, 0x672a, 0x851a, 0x5473, 0x754f, 0x80c3, 0x5582, 0x9b4f, 0x4f4d, 0x6e2d, 0x8c13, 0x5c09, 0x6170, 0x536b, 0x761f, 0x6e29, 0x868a, 0x6587, 0x95fb, 0x7eb9, 0x543b, 0x7a33, 0x7d0a, 0x95ee, 0x55e1, 0x7fc1, 0x74ee, 0x631d, 0x8717, 0x6da1, 0x7a9d, 0x6211, 0x65a1, 0x5367, 0x63e1, 0x6c83, 0x5deb, 0x545c, 0x94a8, 0x4e4c, 0x6c61, 0x8bec, 0x5c4b, 0x65e0, 0x829c, 0x68a7, 0x543e, 0x5434, 0x6bcb, 0x6b66, 0x4e94, 0x6342, 0x5348, 0x821e, 0x4f0d, 0x4fae, 0x575e, 0x620a, 0x96fe, 0x6664, 0x7269, 0x52ff, 0x52a1, 0x609f, 0x8bef, 0x6614, 0x7199, 0x6790, 0x897f, 0x7852, 0x77fd, 0x6670, 0x563b, 0x5438, 0x9521, 0x727a, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcf40[ 192 ] = { 0x87a5, 0x87a6, 0x87a7, 0x87a9, 0x87aa, 0x87ae, 0x87b0, 0x87b1, 0x87b2, 0x87b4, 0x87b6, 0x87b7, 0x87b8, 0x87b9, 0x87bb, 0x87bc, 0x87be, 0x87bf, 0x87c1, 0x87c2, 0x87c3, 0x87c4, 0x87c5, 0x87c7, 0x87c8, 0x87c9, 0x87cc, 0x87cd, 0x87ce, 0x87cf, 0x87d0, 0x87d4, 0x87d5, 0x87d6, 0x87d7, 0x87d8, 0x87d9, 0x87da, 0x87dc, 0x87dd, 0x87de, 0x87df, 0x87e1, 0x87e2, 0x87e3, 0x87e4, 0x87e6, 0x87e7, 0x87e8, 0x87e9, 0x87eb, 0x87ec, 0x87ed, 0x87ef, 0x87f0, 0x87f1, 0x87f2, 0x87f3, 0x87f4, 0x87f5, 0x87f6, 0x87f7, 0x87f8, 0xfffd, 0x87fa, 0x87fb, 0x87fc, 0x87fd, 0x87ff, 0x8800, 0x8801, 0x8802, 0x8804, 0x8805, 0x8806, 0x8807, 0x8808, 0x8809, 0x880b, 0x880c, 0x880d, 0x880e, 0x880f, 0x8810, 0x8811, 0x8812, 0x8814, 0x8817, 0x8818, 0x8819, 0x881a, 0x881c, 0x881d, 0x881e, 0x881f, 0x8820, 0x8823, 0x7a00, 0x606f, 0x5e0c, 0x6089, 0x819d, 0x5915, 0x60dc, 0x7184, 0x70ef, 0x6eaa, 0x6c50, 0x7280, 0x6a84, 0x88ad, 0x5e2d, 0x4e60, 0x5ab3, 0x559c, 0x94e3, 0x6d17, 0x7cfb, 0x9699, 0x620f, 0x7ec6, 0x778e, 0x867e, 0x5323, 0x971e, 0x8f96, 0x6687, 0x5ce1, 0x4fa0, 0x72ed, 0x4e0b, 0x53a6, 0x590f, 0x5413, 0x6380, 0x9528, 0x5148, 0x4ed9, 0x9c9c, 0x7ea4, 0x54b8, 0x8d24, 0x8854, 0x8237, 0x95f2, 0x6d8e, 0x5f26, 0x5acc, 0x663e, 0x9669, 0x73b0, 0x732e, 0x53bf, 0x817a, 0x9985, 0x7fa1, 0x5baa, 0x9677, 0x9650, 0x7ebf, 0x76f8, 0x53a2, 0x9576, 0x9999, 0x7bb1, 0x8944, 0x6e58, 0x4e61, 0x7fd4, 0x7965, 0x8be6, 0x60f3, 0x54cd, 0x4eab, 0x9879, 0x5df7, 0x6a61, 0x50cf, 0x5411, 0x8c61, 0x8427, 0x785d, 0x9704, 0x524a, 0x54ee, 0x56a3, 0x9500, 0x6d88, 0x5bb5, 0x6dc6, 0x6653, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd040[ 192 ] = { 0x8824, 0x8825, 0x8826, 0x8827, 0x8828, 0x8829, 0x882a, 0x882b, 0x882c, 0x882d, 0x882e, 0x882f, 0x8830, 0x8831, 0x8833, 0x8834, 0x8835, 0x8836, 0x8837, 0x8838, 0x883a, 0x883b, 0x883d, 0x883e, 0x883f, 0x8841, 0x8842, 0x8843, 0x8846, 0x8847, 0x8848, 0x8849, 0x884a, 0x884b, 0x884e, 0x884f, 0x8850, 0x8851, 0x8852, 0x8853, 0x8855, 0x8856, 0x8858, 0x885a, 0x885b, 0x885c, 0x885d, 0x885e, 0x885f, 0x8860, 0x8866, 0x8867, 0x886a, 0x886d, 0x886f, 0x8871, 0x8873, 0x8874, 0x8875, 0x8876, 0x8878, 0x8879, 0x887a, 0xfffd, 0x887b, 0x887c, 0x8880, 0x8883, 0x8886, 0x8887, 0x8889, 0x888a, 0x888c, 0x888e, 0x888f, 0x8890, 0x8891, 0x8893, 0x8894, 0x8895, 0x8897, 0x8898, 0x8899, 0x889a, 0x889b, 0x889d, 0x889e, 0x889f, 0x88a0, 0x88a1, 0x88a3, 0x88a5, 0x88a6, 0x88a7, 0x88a8, 0x88a9, 0x88aa, 0x5c0f, 0x5b5d, 0x6821, 0x8096, 0x5578, 0x7b11, 0x6548, 0x6954, 0x4e9b, 0x6b47, 0x874e, 0x978b, 0x534f, 0x631f, 0x643a, 0x90aa, 0x659c, 0x80c1, 0x8c10, 0x5199, 0x68b0, 0x5378, 0x87f9, 0x61c8, 0x6cc4, 0x6cfb, 0x8c22, 0x5c51, 0x85aa, 0x82af, 0x950c, 0x6b23, 0x8f9b, 0x65b0, 0x5ffb, 0x5fc3, 0x4fe1, 0x8845, 0x661f, 0x8165, 0x7329, 0x60fa, 0x5174, 0x5211, 0x578b, 0x5f62, 0x90a2, 0x884c, 0x9192, 0x5e78, 0x674f, 0x6027, 0x59d3, 0x5144, 0x51f6, 0x80f8, 0x5308, 0x6c79, 0x96c4, 0x718a, 0x4f11, 0x4fee, 0x7f9e, 0x673d, 0x55c5, 0x9508, 0x79c0, 0x8896, 0x7ee3, 0x589f, 0x620c, 0x9700, 0x865a, 0x5618, 0x987b, 0x5f90, 0x8bb8, 0x84c4, 0x9157, 0x53d9, 0x65ed, 0x5e8f, 0x755c, 0x6064, 0x7d6e, 0x5a7f, 0x7eea, 0x7eed, 0x8f69, 0x55a7, 0x5ba3, 0x60ac, 0x65cb, 0x7384, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd140[ 192 ] = { 0x88ac, 0x88ae, 0x88af, 0x88b0, 0x88b2, 0x88b3, 0x88b4, 0x88b5, 0x88b6, 0x88b8, 0x88b9, 0x88ba, 0x88bb, 0x88bd, 0x88be, 0x88bf, 0x88c0, 0x88c3, 0x88c4, 0x88c7, 0x88c8, 0x88ca, 0x88cb, 0x88cc, 0x88cd, 0x88cf, 0x88d0, 0x88d1, 0x88d3, 0x88d6, 0x88d7, 0x88da, 0x88db, 0x88dc, 0x88dd, 0x88de, 0x88e0, 0x88e1, 0x88e6, 0x88e7, 0x88e9, 0x88ea, 0x88eb, 0x88ec, 0x88ed, 0x88ee, 0x88ef, 0x88f2, 0x88f5, 0x88f6, 0x88f7, 0x88fa, 0x88fb, 0x88fd, 0x88ff, 0x8900, 0x8901, 0x8903, 0x8904, 0x8905, 0x8906, 0x8907, 0x8908, 0xfffd, 0x8909, 0x890b, 0x890c, 0x890d, 0x890e, 0x890f, 0x8911, 0x8914, 0x8915, 0x8916, 0x8917, 0x8918, 0x891c, 0x891d, 0x891e, 0x891f, 0x8920, 0x8922, 0x8923, 0x8924, 0x8926, 0x8927, 0x8928, 0x8929, 0x892c, 0x892d, 0x892e, 0x892f, 0x8931, 0x8932, 0x8933, 0x8935, 0x8937, 0x9009, 0x7663, 0x7729, 0x7eda, 0x9774, 0x859b, 0x5b66, 0x7a74, 0x96ea, 0x8840, 0x52cb, 0x718f, 0x5faa, 0x65ec, 0x8be2, 0x5bfb, 0x9a6f, 0x5de1, 0x6b89, 0x6c5b, 0x8bad, 0x8baf, 0x900a, 0x8fc5, 0x538b, 0x62bc, 0x9e26, 0x9e2d, 0x5440, 0x4e2b, 0x82bd, 0x7259, 0x869c, 0x5d16, 0x8859, 0x6daf, 0x96c5, 0x54d1, 0x4e9a, 0x8bb6, 0x7109, 0x54bd, 0x9609, 0x70df, 0x6df9, 0x76d0, 0x4e25, 0x7814, 0x8712, 0x5ca9, 0x5ef6, 0x8a00, 0x989c, 0x960e, 0x708e, 0x6cbf, 0x5944, 0x63a9, 0x773c, 0x884d, 0x6f14, 0x8273, 0x5830, 0x71d5, 0x538c, 0x781a, 0x96c1, 0x5501, 0x5f66, 0x7130, 0x5bb4, 0x8c1a, 0x9a8c, 0x6b83, 0x592e, 0x9e2f, 0x79e7, 0x6768, 0x626c, 0x4f6f, 0x75a1, 0x7f8a, 0x6d0b, 0x9633, 0x6c27, 0x4ef0, 0x75d2, 0x517b, 0x6837, 0x6f3e, 0x9080, 0x8170, 0x5996, 0x7476, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd240[ 192 ] = { 0x8938, 0x8939, 0x893a, 0x893b, 0x893c, 0x893d, 0x893e, 0x893f, 0x8940, 0x8942, 0x8943, 0x8945, 0x8946, 0x8947, 0x8948, 0x8949, 0x894a, 0x894b, 0x894c, 0x894d, 0x894e, 0x894f, 0x8950, 0x8951, 0x8952, 0x8953, 0x8954, 0x8955, 0x8956, 0x8957, 0x8958, 0x8959, 0x895a, 0x895b, 0x895c, 0x895d, 0x8960, 0x8961, 0x8962, 0x8963, 0x8964, 0x8965, 0x8967, 0x8968, 0x8969, 0x896a, 0x896b, 0x896c, 0x896d, 0x896e, 0x896f, 0x8970, 0x8971, 0x8972, 0x8973, 0x8974, 0x8975, 0x8976, 0x8977, 0x8978, 0x8979, 0x897a, 0x897c, 0xfffd, 0x897d, 0x897e, 0x8980, 0x8982, 0x8984, 0x8985, 0x8987, 0x8988, 0x8989, 0x898a, 0x898b, 0x898c, 0x898d, 0x898e, 0x898f, 0x8990, 0x8991, 0x8992, 0x8993, 0x8994, 0x8995, 0x8996, 0x8997, 0x8998, 0x8999, 0x899a, 0x899b, 0x899c, 0x899d, 0x899e, 0x899f, 0x89a0, 0x89a1, 0x6447, 0x5c27, 0x9065, 0x7a91, 0x8c23, 0x59da, 0x54ac, 0x8200, 0x836f, 0x8981, 0x8000, 0x6930, 0x564e, 0x8036, 0x7237, 0x91ce, 0x51b6, 0x4e5f, 0x9875, 0x6396, 0x4e1a, 0x53f6, 0x66f3, 0x814b, 0x591c, 0x6db2, 0x4e00, 0x58f9, 0x533b, 0x63d6, 0x94f1, 0x4f9d, 0x4f0a, 0x8863, 0x9890, 0x5937, 0x9057, 0x79fb, 0x4eea, 0x80f0, 0x7591, 0x6c82, 0x5b9c, 0x59e8, 0x5f5d, 0x6905, 0x8681, 0x501a, 0x5df2, 0x4e59, 0x77e3, 0x4ee5, 0x827a, 0x6291, 0x6613, 0x9091, 0x5c79, 0x4ebf, 0x5f79, 0x81c6, 0x9038, 0x8084, 0x75ab, 0x4ea6, 0x88d4, 0x610f, 0x6bc5, 0x5fc6, 0x4e49, 0x76ca, 0x6ea2, 0x8be3, 0x8bae, 0x8c0a, 0x8bd1, 0x5f02, 0x7ffc, 0x7fcc, 0x7ece, 0x8335, 0x836b, 0x56e0, 0x6bb7, 0x97f3, 0x9634, 0x59fb, 0x541f, 0x94f6, 0x6deb, 0x5bc5, 0x996e, 0x5c39, 0x5f15, 0x9690, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd340[ 192 ] = { 0x89a2, 0x89a3, 0x89a4, 0x89a5, 0x89a6, 0x89a7, 0x89a8, 0x89a9, 0x89aa, 0x89ab, 0x89ac, 0x89ad, 0x89ae, 0x89af, 0x89b0, 0x89b1, 0x89b2, 0x89b3, 0x89b4, 0x89b5, 0x89b6, 0x89b7, 0x89b8, 0x89b9, 0x89ba, 0x89bb, 0x89bc, 0x89bd, 0x89be, 0x89bf, 0x89c0, 0x89c3, 0x89cd, 0x89d3, 0x89d4, 0x89d5, 0x89d7, 0x89d8, 0x89d9, 0x89db, 0x89dd, 0x89df, 0x89e0, 0x89e1, 0x89e2, 0x89e4, 0x89e7, 0x89e8, 0x89e9, 0x89ea, 0x89ec, 0x89ed, 0x89ee, 0x89f0, 0x89f1, 0x89f2, 0x89f4, 0x89f5, 0x89f6, 0x89f7, 0x89f8, 0x89f9, 0x89fa, 0xfffd, 0x89fb, 0x89fc, 0x89fd, 0x89fe, 0x89ff, 0x8a01, 0x8a02, 0x8a03, 0x8a04, 0x8a05, 0x8a06, 0x8a08, 0x8a09, 0x8a0a, 0x8a0b, 0x8a0c, 0x8a0d, 0x8a0e, 0x8a0f, 0x8a10, 0x8a11, 0x8a12, 0x8a13, 0x8a14, 0x8a15, 0x8a16, 0x8a17, 0x8a18, 0x8a19, 0x8a1a, 0x8a1b, 0x8a1c, 0x8a1d, 0x5370, 0x82f1, 0x6a31, 0x5a74, 0x9e70, 0x5e94, 0x7f28, 0x83b9, 0x8424, 0x8425, 0x8367, 0x8747, 0x8fce, 0x8d62, 0x76c8, 0x5f71, 0x9896, 0x786c, 0x6620, 0x54df, 0x62e5, 0x4f63, 0x81c3, 0x75c8, 0x5eb8, 0x96cd, 0x8e0a, 0x86f9, 0x548f, 0x6cf3, 0x6d8c, 0x6c38, 0x607f, 0x52c7, 0x7528, 0x5e7d, 0x4f18, 0x60a0, 0x5fe7, 0x5c24, 0x7531, 0x90ae, 0x94c0, 0x72b9, 0x6cb9, 0x6e38, 0x9149, 0x6709, 0x53cb, 0x53f3, 0x4f51, 0x91c9, 0x8bf1, 0x53c8, 0x5e7c, 0x8fc2, 0x6de4, 0x4e8e, 0x76c2, 0x6986, 0x865e, 0x611a, 0x8206, 0x4f59, 0x4fde, 0x903e, 0x9c7c, 0x6109, 0x6e1d, 0x6e14, 0x9685, 0x4e88, 0x5a31, 0x96e8, 0x4e0e, 0x5c7f, 0x79b9, 0x5b87, 0x8bed, 0x7fbd, 0x7389, 0x57df, 0x828b, 0x90c1, 0x5401, 0x9047, 0x55bb, 0x5cea, 0x5fa1, 0x6108, 0x6b32, 0x72f1, 0x80b2, 0x8a89, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd440[ 192 ] = { 0x8a1e, 0x8a1f, 0x8a20, 0x8a21, 0x8a22, 0x8a23, 0x8a24, 0x8a25, 0x8a26, 0x8a27, 0x8a28, 0x8a29, 0x8a2a, 0x8a2b, 0x8a2c, 0x8a2d, 0x8a2e, 0x8a2f, 0x8a30, 0x8a31, 0x8a32, 0x8a33, 0x8a34, 0x8a35, 0x8a36, 0x8a37, 0x8a38, 0x8a39, 0x8a3a, 0x8a3b, 0x8a3c, 0x8a3d, 0x8a3f, 0x8a40, 0x8a41, 0x8a42, 0x8a43, 0x8a44, 0x8a45, 0x8a46, 0x8a47, 0x8a49, 0x8a4a, 0x8a4b, 0x8a4c, 0x8a4d, 0x8a4e, 0x8a4f, 0x8a50, 0x8a51, 0x8a52, 0x8a53, 0x8a54, 0x8a55, 0x8a56, 0x8a57, 0x8a58, 0x8a59, 0x8a5a, 0x8a5b, 0x8a5c, 0x8a5d, 0x8a5e, 0xfffd, 0x8a5f, 0x8a60, 0x8a61, 0x8a62, 0x8a63, 0x8a64, 0x8a65, 0x8a66, 0x8a67, 0x8a68, 0x8a69, 0x8a6a, 0x8a6b, 0x8a6c, 0x8a6d, 0x8a6e, 0x8a6f, 0x8a70, 0x8a71, 0x8a72, 0x8a73, 0x8a74, 0x8a75, 0x8a76, 0x8a77, 0x8a78, 0x8a7a, 0x8a7b, 0x8a7c, 0x8a7d, 0x8a7e, 0x8a7f, 0x8a80, 0x6d74, 0x5bd3, 0x88d5, 0x9884, 0x8c6b, 0x9a6d, 0x9e33, 0x6e0a, 0x51a4, 0x5143, 0x57a3, 0x8881, 0x539f, 0x63f4, 0x8f95, 0x56ed, 0x5458, 0x5706, 0x733f, 0x6e90, 0x7f18, 0x8fdc, 0x82d1, 0x613f, 0x6028, 0x9662, 0x66f0, 0x7ea6, 0x8d8a, 0x8dc3, 0x94a5, 0x5cb3, 0x7ca4, 0x6708, 0x60a6, 0x9605, 0x8018, 0x4e91, 0x90e7, 0x5300, 0x9668, 0x5141, 0x8fd0, 0x8574, 0x915d, 0x6655, 0x97f5, 0x5b55, 0x531d, 0x7838, 0x6742, 0x683d, 0x54c9, 0x707e, 0x5bb0, 0x8f7d, 0x518d, 0x5728, 0x54b1, 0x6512, 0x6682, 0x8d5e, 0x8d43, 0x810f, 0x846c, 0x906d, 0x7cdf, 0x51ff, 0x85fb, 0x67a3, 0x65e9, 0x6fa1, 0x86a4, 0x8e81, 0x566a, 0x9020, 0x7682, 0x7076, 0x71e5, 0x8d23, 0x62e9, 0x5219, 0x6cfd, 0x8d3c, 0x600e, 0x589e, 0x618e, 0x66fe, 0x8d60, 0x624e, 0x55b3, 0x6e23, 0x672d, 0x8f67, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd540[ 192 ] = { 0x8a81, 0x8a82, 0x8a83, 0x8a84, 0x8a85, 0x8a86, 0x8a87, 0x8a88, 0x8a8b, 0x8a8c, 0x8a8d, 0x8a8e, 0x8a8f, 0x8a90, 0x8a91, 0x8a92, 0x8a94, 0x8a95, 0x8a96, 0x8a97, 0x8a98, 0x8a99, 0x8a9a, 0x8a9b, 0x8a9c, 0x8a9d, 0x8a9e, 0x8a9f, 0x8aa0, 0x8aa1, 0x8aa2, 0x8aa3, 0x8aa4, 0x8aa5, 0x8aa6, 0x8aa7, 0x8aa8, 0x8aa9, 0x8aaa, 0x8aab, 0x8aac, 0x8aad, 0x8aae, 0x8aaf, 0x8ab0, 0x8ab1, 0x8ab2, 0x8ab3, 0x8ab4, 0x8ab5, 0x8ab6, 0x8ab7, 0x8ab8, 0x8ab9, 0x8aba, 0x8abb, 0x8abc, 0x8abd, 0x8abe, 0x8abf, 0x8ac0, 0x8ac1, 0x8ac2, 0xfffd, 0x8ac3, 0x8ac4, 0x8ac5, 0x8ac6, 0x8ac7, 0x8ac8, 0x8ac9, 0x8aca, 0x8acb, 0x8acc, 0x8acd, 0x8ace, 0x8acf, 0x8ad0, 0x8ad1, 0x8ad2, 0x8ad3, 0x8ad4, 0x8ad5, 0x8ad6, 0x8ad7, 0x8ad8, 0x8ad9, 0x8ada, 0x8adb, 0x8adc, 0x8add, 0x8ade, 0x8adf, 0x8ae0, 0x8ae1, 0x8ae2, 0x8ae3, 0x94e1, 0x95f8, 0x7728, 0x6805, 0x69a8, 0x548b, 0x4e4d, 0x70b8, 0x8bc8, 0x6458, 0x658b, 0x5b85, 0x7a84, 0x503a, 0x5be8, 0x77bb, 0x6be1, 0x8a79, 0x7c98, 0x6cbe, 0x76cf, 0x65a9, 0x8f97, 0x5d2d, 0x5c55, 0x8638, 0x6808, 0x5360, 0x6218, 0x7ad9, 0x6e5b, 0x7efd, 0x6a1f, 0x7ae0, 0x5f70, 0x6f33, 0x5f20, 0x638c, 0x6da8, 0x6756, 0x4e08, 0x5e10, 0x8d26, 0x4ed7, 0x80c0, 0x7634, 0x969c, 0x62db, 0x662d, 0x627e, 0x6cbc, 0x8d75, 0x7167, 0x7f69, 0x5146, 0x8087, 0x53ec, 0x906e, 0x6298, 0x54f2, 0x86f0, 0x8f99, 0x8005, 0x9517, 0x8517, 0x8fd9, 0x6d59, 0x73cd, 0x659f, 0x771f, 0x7504, 0x7827, 0x81fb, 0x8d1e, 0x9488, 0x4fa6, 0x6795, 0x75b9, 0x8bca, 0x9707, 0x632f, 0x9547, 0x9635, 0x84b8, 0x6323, 0x7741, 0x5f81, 0x72f0, 0x4e89, 0x6014, 0x6574, 0x62ef, 0x6b63, 0x653f, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd640[ 192 ] = { 0x8ae4, 0x8ae5, 0x8ae6, 0x8ae7, 0x8ae8, 0x8ae9, 0x8aea, 0x8aeb, 0x8aec, 0x8aed, 0x8aee, 0x8aef, 0x8af0, 0x8af1, 0x8af2, 0x8af3, 0x8af4, 0x8af5, 0x8af6, 0x8af7, 0x8af8, 0x8af9, 0x8afa, 0x8afb, 0x8afc, 0x8afd, 0x8afe, 0x8aff, 0x8b00, 0x8b01, 0x8b02, 0x8b03, 0x8b04, 0x8b05, 0x8b06, 0x8b08, 0x8b09, 0x8b0a, 0x8b0b, 0x8b0c, 0x8b0d, 0x8b0e, 0x8b0f, 0x8b10, 0x8b11, 0x8b12, 0x8b13, 0x8b14, 0x8b15, 0x8b16, 0x8b17, 0x8b18, 0x8b19, 0x8b1a, 0x8b1b, 0x8b1c, 0x8b1d, 0x8b1e, 0x8b1f, 0x8b20, 0x8b21, 0x8b22, 0x8b23, 0xfffd, 0x8b24, 0x8b25, 0x8b27, 0x8b28, 0x8b29, 0x8b2a, 0x8b2b, 0x8b2c, 0x8b2d, 0x8b2e, 0x8b2f, 0x8b30, 0x8b31, 0x8b32, 0x8b33, 0x8b34, 0x8b35, 0x8b36, 0x8b37, 0x8b38, 0x8b39, 0x8b3a, 0x8b3b, 0x8b3c, 0x8b3d, 0x8b3e, 0x8b3f, 0x8b40, 0x8b41, 0x8b42, 0x8b43, 0x8b44, 0x8b45, 0x5e27, 0x75c7, 0x90d1, 0x8bc1, 0x829d, 0x679d, 0x652f, 0x5431, 0x8718, 0x77e5, 0x80a2, 0x8102, 0x6c41, 0x4e4b, 0x7ec7, 0x804c, 0x76f4, 0x690d, 0x6b96, 0x6267, 0x503c, 0x4f84, 0x5740, 0x6307, 0x6b62, 0x8dbe, 0x53ea, 0x65e8, 0x7eb8, 0x5fd7, 0x631a, 0x63b7, 0x81f3, 0x81f4, 0x7f6e, 0x5e1c, 0x5cd9, 0x5236, 0x667a, 0x79e9, 0x7a1a, 0x8d28, 0x7099, 0x75d4, 0x6ede, 0x6cbb, 0x7a92, 0x4e2d, 0x76c5, 0x5fe0, 0x949f, 0x8877, 0x7ec8, 0x79cd, 0x80bf, 0x91cd, 0x4ef2, 0x4f17, 0x821f, 0x5468, 0x5dde, 0x6d32, 0x8bcc, 0x7ca5, 0x8f74, 0x8098, 0x5e1a, 0x5492, 0x76b1, 0x5b99, 0x663c, 0x9aa4, 0x73e0, 0x682a, 0x86db, 0x6731, 0x732a, 0x8bf8, 0x8bdb, 0x9010, 0x7af9, 0x70db, 0x716e, 0x62c4, 0x77a9, 0x5631, 0x4e3b, 0x8457, 0x67f1, 0x52a9, 0x86c0, 0x8d2e, 0x94f8, 0x7b51, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd740[ 192 ] = { 0x8b46, 0x8b47, 0x8b48, 0x8b49, 0x8b4a, 0x8b4b, 0x8b4c, 0x8b4d, 0x8b4e, 0x8b4f, 0x8b50, 0x8b51, 0x8b52, 0x8b53, 0x8b54, 0x8b55, 0x8b56, 0x8b57, 0x8b58, 0x8b59, 0x8b5a, 0x8b5b, 0x8b5c, 0x8b5d, 0x8b5e, 0x8b5f, 0x8b60, 0x8b61, 0x8b62, 0x8b63, 0x8b64, 0x8b65, 0x8b67, 0x8b68, 0x8b69, 0x8b6a, 0x8b6b, 0x8b6d, 0x8b6e, 0x8b6f, 0x8b70, 0x8b71, 0x8b72, 0x8b73, 0x8b74, 0x8b75, 0x8b76, 0x8b77, 0x8b78, 0x8b79, 0x8b7a, 0x8b7b, 0x8b7c, 0x8b7d, 0x8b7e, 0x8b7f, 0x8b80, 0x8b81, 0x8b82, 0x8b83, 0x8b84, 0x8b85, 0x8b86, 0xfffd, 0x8b87, 0x8b88, 0x8b89, 0x8b8a, 0x8b8b, 0x8b8c, 0x8b8d, 0x8b8e, 0x8b8f, 0x8b90, 0x8b91, 0x8b92, 0x8b93, 0x8b94, 0x8b95, 0x8b96, 0x8b97, 0x8b98, 0x8b99, 0x8b9a, 0x8b9b, 0x8b9c, 0x8b9d, 0x8b9e, 0x8b9f, 0x8bac, 0x8bb1, 0x8bbb, 0x8bc7, 0x8bd0, 0x8bea, 0x8c09, 0x8c1e, 0x4f4f, 0x6ce8, 0x795d, 0x9a7b, 0x6293, 0x722a, 0x62fd, 0x4e13, 0x7816, 0x8f6c, 0x64b0, 0x8d5a, 0x7bc6, 0x6869, 0x5e84, 0x88c5, 0x5986, 0x649e, 0x58ee, 0x72b6, 0x690e, 0x9525, 0x8ffd, 0x8d58, 0x5760, 0x7f00, 0x8c06, 0x51c6, 0x6349, 0x62d9, 0x5353, 0x684c, 0x7422, 0x8301, 0x914c, 0x5544, 0x7740, 0x707c, 0x6d4a, 0x5179, 0x54a8, 0x8d44, 0x59ff, 0x6ecb, 0x6dc4, 0x5b5c, 0x7d2b, 0x4ed4, 0x7c7d, 0x6ed3, 0x5b50, 0x81ea, 0x6e0d, 0x5b57, 0x9b03, 0x68d5, 0x8e2a, 0x5b97, 0x7efc, 0x603b, 0x7eb5, 0x90b9, 0x8d70, 0x594f, 0x63cd, 0x79df, 0x8db3, 0x5352, 0x65cf, 0x7956, 0x8bc5, 0x963b, 0x7ec4, 0x94bb, 0x7e82, 0x5634, 0x9189, 0x6700, 0x7f6a, 0x5c0a, 0x9075, 0x6628, 0x5de6, 0x4f50, 0x67de, 0x505a, 0x4f5c, 0x5750, 0x5ea7, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd840[ 192 ] = { 0x8c38, 0x8c39, 0x8c3a, 0x8c3b, 0x8c3c, 0x8c3d, 0x8c3e, 0x8c3f, 0x8c40, 0x8c42, 0x8c43, 0x8c44, 0x8c45, 0x8c48, 0x8c4a, 0x8c4b, 0x8c4d, 0x8c4e, 0x8c4f, 0x8c50, 0x8c51, 0x8c52, 0x8c53, 0x8c54, 0x8c56, 0x8c57, 0x8c58, 0x8c59, 0x8c5b, 0x8c5c, 0x8c5d, 0x8c5e, 0x8c5f, 0x8c60, 0x8c63, 0x8c64, 0x8c65, 0x8c66, 0x8c67, 0x8c68, 0x8c69, 0x8c6c, 0x8c6d, 0x8c6e, 0x8c6f, 0x8c70, 0x8c71, 0x8c72, 0x8c74, 0x8c75, 0x8c76, 0x8c77, 0x8c7b, 0x8c7c, 0x8c7d, 0x8c7e, 0x8c7f, 0x8c80, 0x8c81, 0x8c83, 0x8c84, 0x8c86, 0x8c87, 0xfffd, 0x8c88, 0x8c8b, 0x8c8d, 0x8c8e, 0x8c8f, 0x8c90, 0x8c91, 0x8c92, 0x8c93, 0x8c95, 0x8c96, 0x8c97, 0x8c99, 0x8c9a, 0x8c9b, 0x8c9c, 0x8c9d, 0x8c9e, 0x8c9f, 0x8ca0, 0x8ca1, 0x8ca2, 0x8ca3, 0x8ca4, 0x8ca5, 0x8ca6, 0x8ca7, 0x8ca8, 0x8ca9, 0x8caa, 0x8cab, 0x8cac, 0x8cad, 0x4e8d, 0x4e0c, 0x5140, 0x4e10, 0x5eff, 0x5345, 0x4e15, 0x4e98, 0x4e1e, 0x9b32, 0x5b6c, 0x5669, 0x4e28, 0x79ba, 0x4e3f, 0x5315, 0x4e47, 0x592d, 0x723b, 0x536e, 0x6c10, 0x56df, 0x80e4, 0x9997, 0x6bd3, 0x777e, 0x9f17, 0x4e36, 0x4e9f, 0x9f10, 0x4e5c, 0x4e69, 0x4e93, 0x8288, 0x5b5b, 0x556c, 0x560f, 0x4ec4, 0x538d, 0x539d, 0x53a3, 0x53a5, 0x53ae, 0x9765, 0x8d5d, 0x531a, 0x53f5, 0x5326, 0x532e, 0x533e, 0x8d5c, 0x5366, 0x5363, 0x5202, 0x5208, 0x520e, 0x522d, 0x5233, 0x523f, 0x5240, 0x524c, 0x525e, 0x5261, 0x525c, 0x84af, 0x527d, 0x5282, 0x5281, 0x5290, 0x5293, 0x5182, 0x7f54, 0x4ebb, 0x4ec3, 0x4ec9, 0x4ec2, 0x4ee8, 0x4ee1, 0x4eeb, 0x4ede, 0x4f1b, 0x4ef3, 0x4f22, 0x4f64, 0x4ef5, 0x4f25, 0x4f27, 0x4f09, 0x4f2b, 0x4f5e, 0x4f67, 0x6538, 0x4f5a, 0x4f5d, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd940[ 192 ] = { 0x8cae, 0x8caf, 0x8cb0, 0x8cb1, 0x8cb2, 0x8cb3, 0x8cb4, 0x8cb5, 0x8cb6, 0x8cb7, 0x8cb8, 0x8cb9, 0x8cba, 0x8cbb, 0x8cbc, 0x8cbd, 0x8cbe, 0x8cbf, 0x8cc0, 0x8cc1, 0x8cc2, 0x8cc3, 0x8cc4, 0x8cc5, 0x8cc6, 0x8cc7, 0x8cc8, 0x8cc9, 0x8cca, 0x8ccb, 0x8ccc, 0x8ccd, 0x8cce, 0x8ccf, 0x8cd0, 0x8cd1, 0x8cd2, 0x8cd3, 0x8cd4, 0x8cd5, 0x8cd6, 0x8cd7, 0x8cd8, 0x8cd9, 0x8cda, 0x8cdb, 0x8cdc, 0x8cdd, 0x8cde, 0x8cdf, 0x8ce0, 0x8ce1, 0x8ce2, 0x8ce3, 0x8ce4, 0x8ce5, 0x8ce6, 0x8ce7, 0x8ce8, 0x8ce9, 0x8cea, 0x8ceb, 0x8cec, 0xfffd, 0x8ced, 0x8cee, 0x8cef, 0x8cf0, 0x8cf1, 0x8cf2, 0x8cf3, 0x8cf4, 0x8cf5, 0x8cf6, 0x8cf7, 0x8cf8, 0x8cf9, 0x8cfa, 0x8cfb, 0x8cfc, 0x8cfd, 0x8cfe, 0x8cff, 0x8d00, 0x8d01, 0x8d02, 0x8d03, 0x8d04, 0x8d05, 0x8d06, 0x8d07, 0x8d08, 0x8d09, 0x8d0a, 0x8d0b, 0x8d0c, 0x8d0d, 0x4f5f, 0x4f57, 0x4f32, 0x4f3d, 0x4f76, 0x4f74, 0x4f91, 0x4f89, 0x4f83, 0x4f8f, 0x4f7e, 0x4f7b, 0x4faa, 0x4f7c, 0x4fac, 0x4f94, 0x4fe6, 0x4fe8, 0x4fea, 0x4fc5, 0x4fda, 0x4fe3, 0x4fdc, 0x4fd1, 0x4fdf, 0x4ff8, 0x5029, 0x504c, 0x4ff3, 0x502c, 0x500f, 0x502e, 0x502d, 0x4ffe, 0x501c, 0x500c, 0x5025, 0x5028, 0x507e, 0x5043, 0x5055, 0x5048, 0x504e, 0x506c, 0x507b, 0x50a5, 0x50a7, 0x50a9, 0x50ba, 0x50d6, 0x5106, 0x50ed, 0x50ec, 0x50e6, 0x50ee, 0x5107, 0x510b, 0x4edd, 0x6c3d, 0x4f58, 0x4f65, 0x4fce, 0x9fa0, 0x6c46, 0x7c74, 0x516e, 0x5dfd, 0x9ec9, 0x9998, 0x5181, 0x5914, 0x52f9, 0x530d, 0x8a07, 0x5310, 0x51eb, 0x5919, 0x5155, 0x4ea0, 0x5156, 0x4eb3, 0x886e, 0x88a4, 0x4eb5, 0x8114, 0x88d2, 0x7980, 0x5b34, 0x8803, 0x7fb8, 0x51ab, 0x51b1, 0x51bd, 0x51bc, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xda40[ 192 ] = { 0x8d0e, 0x8d0f, 0x8d10, 0x8d11, 0x8d12, 0x8d13, 0x8d14, 0x8d15, 0x8d16, 0x8d17, 0x8d18, 0x8d19, 0x8d1a, 0x8d1b, 0x8d1c, 0x8d20, 0x8d51, 0x8d52, 0x8d57, 0x8d5f, 0x8d65, 0x8d68, 0x8d69, 0x8d6a, 0x8d6c, 0x8d6e, 0x8d6f, 0x8d71, 0x8d72, 0x8d78, 0x8d79, 0x8d7a, 0x8d7b, 0x8d7c, 0x8d7d, 0x8d7e, 0x8d7f, 0x8d80, 0x8d82, 0x8d83, 0x8d86, 0x8d87, 0x8d88, 0x8d89, 0x8d8c, 0x8d8d, 0x8d8e, 0x8d8f, 0x8d90, 0x8d92, 0x8d93, 0x8d95, 0x8d96, 0x8d97, 0x8d98, 0x8d99, 0x8d9a, 0x8d9b, 0x8d9c, 0x8d9d, 0x8d9e, 0x8da0, 0x8da1, 0xfffd, 0x8da2, 0x8da4, 0x8da5, 0x8da6, 0x8da7, 0x8da8, 0x8da9, 0x8daa, 0x8dab, 0x8dac, 0x8dad, 0x8dae, 0x8daf, 0x8db0, 0x8db2, 0x8db6, 0x8db7, 0x8db9, 0x8dbb, 0x8dbd, 0x8dc0, 0x8dc1, 0x8dc2, 0x8dc5, 0x8dc7, 0x8dc8, 0x8dc9, 0x8dca, 0x8dcd, 0x8dd0, 0x8dd2, 0x8dd3, 0x8dd4, 0x51c7, 0x5196, 0x51a2, 0x51a5, 0x8ba0, 0x8ba6, 0x8ba7, 0x8baa, 0x8bb4, 0x8bb5, 0x8bb7, 0x8bc2, 0x8bc3, 0x8bcb, 0x8bcf, 0x8bce, 0x8bd2, 0x8bd3, 0x8bd4, 0x8bd6, 0x8bd8, 0x8bd9, 0x8bdc, 0x8bdf, 0x8be0, 0x8be4, 0x8be8, 0x8be9, 0x8bee, 0x8bf0, 0x8bf3, 0x8bf6, 0x8bf9, 0x8bfc, 0x8bff, 0x8c00, 0x8c02, 0x8c04, 0x8c07, 0x8c0c, 0x8c0f, 0x8c11, 0x8c12, 0x8c14, 0x8c15, 0x8c16, 0x8c19, 0x8c1b, 0x8c18, 0x8c1d, 0x8c1f, 0x8c20, 0x8c21, 0x8c25, 0x8c27, 0x8c2a, 0x8c2b, 0x8c2e, 0x8c2f, 0x8c32, 0x8c33, 0x8c35, 0x8c36, 0x5369, 0x537a, 0x961d, 0x9622, 0x9621, 0x9631, 0x962a, 0x963d, 0x963c, 0x9642, 0x9649, 0x9654, 0x965f, 0x9667, 0x966c, 0x9672, 0x9674, 0x9688, 0x968d, 0x9697, 0x96b0, 0x9097, 0x909b, 0x909d, 0x9099, 0x90ac, 0x90a1, 0x90b4, 0x90b3, 0x90b6, 0x90ba, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdb40[ 192 ] = { 0x8dd5, 0x8dd8, 0x8dd9, 0x8ddc, 0x8de0, 0x8de1, 0x8de2, 0x8de5, 0x8de6, 0x8de7, 0x8de9, 0x8ded, 0x8dee, 0x8df0, 0x8df1, 0x8df2, 0x8df4, 0x8df6, 0x8dfc, 0x8dfe, 0x8dff, 0x8e00, 0x8e01, 0x8e02, 0x8e03, 0x8e04, 0x8e06, 0x8e07, 0x8e08, 0x8e0b, 0x8e0d, 0x8e0e, 0x8e10, 0x8e11, 0x8e12, 0x8e13, 0x8e15, 0x8e16, 0x8e17, 0x8e18, 0x8e19, 0x8e1a, 0x8e1b, 0x8e1c, 0x8e20, 0x8e21, 0x8e24, 0x8e25, 0x8e26, 0x8e27, 0x8e28, 0x8e2b, 0x8e2d, 0x8e30, 0x8e32, 0x8e33, 0x8e34, 0x8e36, 0x8e37, 0x8e38, 0x8e3b, 0x8e3c, 0x8e3e, 0xfffd, 0x8e3f, 0x8e43, 0x8e45, 0x8e46, 0x8e4c, 0x8e4d, 0x8e4e, 0x8e4f, 0x8e50, 0x8e53, 0x8e54, 0x8e55, 0x8e56, 0x8e57, 0x8e58, 0x8e5a, 0x8e5b, 0x8e5c, 0x8e5d, 0x8e5e, 0x8e5f, 0x8e60, 0x8e61, 0x8e62, 0x8e63, 0x8e64, 0x8e65, 0x8e67, 0x8e68, 0x8e6a, 0x8e6b, 0x8e6e, 0x8e71, 0x90b8, 0x90b0, 0x90cf, 0x90c5, 0x90be, 0x90d0, 0x90c4, 0x90c7, 0x90d3, 0x90e6, 0x90e2, 0x90dc, 0x90d7, 0x90db, 0x90eb, 0x90ef, 0x90fe, 0x9104, 0x9122, 0x911e, 0x9123, 0x9131, 0x912f, 0x9139, 0x9143, 0x9146, 0x520d, 0x5942, 0x52a2, 0x52ac, 0x52ad, 0x52be, 0x54ff, 0x52d0, 0x52d6, 0x52f0, 0x53df, 0x71ee, 0x77cd, 0x5ef4, 0x51f5, 0x51fc, 0x9b2f, 0x53b6, 0x5f01, 0x755a, 0x5def, 0x574c, 0x57a9, 0x57a1, 0x587e, 0x58bc, 0x58c5, 0x58d1, 0x5729, 0x572c, 0x572a, 0x5733, 0x5739, 0x572e, 0x572f, 0x575c, 0x573b, 0x5742, 0x5769, 0x5785, 0x576b, 0x5786, 0x577c, 0x577b, 0x5768, 0x576d, 0x5776, 0x5773, 0x57ad, 0x57a4, 0x578c, 0x57b2, 0x57cf, 0x57a7, 0x57b4, 0x5793, 0x57a0, 0x57d5, 0x57d8, 0x57da, 0x57d9, 0x57d2, 0x57b8, 0x57f4, 0x57ef, 0x57f8, 0x57e4, 0x57dd, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdc40[ 192 ] = { 0x8e73, 0x8e75, 0x8e77, 0x8e78, 0x8e79, 0x8e7a, 0x8e7b, 0x8e7d, 0x8e7e, 0x8e80, 0x8e82, 0x8e83, 0x8e84, 0x8e86, 0x8e88, 0x8e89, 0x8e8a, 0x8e8b, 0x8e8c, 0x8e8d, 0x8e8e, 0x8e91, 0x8e92, 0x8e93, 0x8e95, 0x8e96, 0x8e97, 0x8e98, 0x8e99, 0x8e9a, 0x8e9b, 0x8e9d, 0x8e9f, 0x8ea0, 0x8ea1, 0x8ea2, 0x8ea3, 0x8ea4, 0x8ea5, 0x8ea6, 0x8ea7, 0x8ea8, 0x8ea9, 0x8eaa, 0x8ead, 0x8eae, 0x8eb0, 0x8eb1, 0x8eb3, 0x8eb4, 0x8eb5, 0x8eb6, 0x8eb7, 0x8eb8, 0x8eb9, 0x8ebb, 0x8ebc, 0x8ebd, 0x8ebe, 0x8ebf, 0x8ec0, 0x8ec1, 0x8ec2, 0xfffd, 0x8ec3, 0x8ec4, 0x8ec5, 0x8ec6, 0x8ec7, 0x8ec8, 0x8ec9, 0x8eca, 0x8ecb, 0x8ecc, 0x8ecd, 0x8ecf, 0x8ed0, 0x8ed1, 0x8ed2, 0x8ed3, 0x8ed4, 0x8ed5, 0x8ed6, 0x8ed7, 0x8ed8, 0x8ed9, 0x8eda, 0x8edb, 0x8edc, 0x8edd, 0x8ede, 0x8edf, 0x8ee0, 0x8ee1, 0x8ee2, 0x8ee3, 0x8ee4, 0x580b, 0x580d, 0x57fd, 0x57ed, 0x5800, 0x581e, 0x5819, 0x5844, 0x5820, 0x5865, 0x586c, 0x5881, 0x5889, 0x589a, 0x5880, 0x99a8, 0x9f19, 0x61ff, 0x8279, 0x827d, 0x827f, 0x828f, 0x828a, 0x82a8, 0x8284, 0x828e, 0x8291, 0x8297, 0x8299, 0x82ab, 0x82b8, 0x82be, 0x82b0, 0x82c8, 0x82ca, 0x82e3, 0x8298, 0x82b7, 0x82ae, 0x82cb, 0x82cc, 0x82c1, 0x82a9, 0x82b4, 0x82a1, 0x82aa, 0x829f, 0x82c4, 0x82ce, 0x82a4, 0x82e1, 0x8309, 0x82f7, 0x82e4, 0x830f, 0x8307, 0x82dc, 0x82f4, 0x82d2, 0x82d8, 0x830c, 0x82fb, 0x82d3, 0x8311, 0x831a, 0x8306, 0x8314, 0x8315, 0x82e0, 0x82d5, 0x831c, 0x8351, 0x835b, 0x835c, 0x8308, 0x8392, 0x833c, 0x8334, 0x8331, 0x839b, 0x835e, 0x832f, 0x834f, 0x8347, 0x8343, 0x835f, 0x8340, 0x8317, 0x8360, 0x832d, 0x833a, 0x8333, 0x8366, 0x8365, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdd40[ 192 ] = { 0x8ee5, 0x8ee6, 0x8ee7, 0x8ee8, 0x8ee9, 0x8eea, 0x8eeb, 0x8eec, 0x8eed, 0x8eee, 0x8eef, 0x8ef0, 0x8ef1, 0x8ef2, 0x8ef3, 0x8ef4, 0x8ef5, 0x8ef6, 0x8ef7, 0x8ef8, 0x8ef9, 0x8efa, 0x8efb, 0x8efc, 0x8efd, 0x8efe, 0x8eff, 0x8f00, 0x8f01, 0x8f02, 0x8f03, 0x8f04, 0x8f05, 0x8f06, 0x8f07, 0x8f08, 0x8f09, 0x8f0a, 0x8f0b, 0x8f0c, 0x8f0d, 0x8f0e, 0x8f0f, 0x8f10, 0x8f11, 0x8f12, 0x8f13, 0x8f14, 0x8f15, 0x8f16, 0x8f17, 0x8f18, 0x8f19, 0x8f1a, 0x8f1b, 0x8f1c, 0x8f1d, 0x8f1e, 0x8f1f, 0x8f20, 0x8f21, 0x8f22, 0x8f23, 0xfffd, 0x8f24, 0x8f25, 0x8f26, 0x8f27, 0x8f28, 0x8f29, 0x8f2a, 0x8f2b, 0x8f2c, 0x8f2d, 0x8f2e, 0x8f2f, 0x8f30, 0x8f31, 0x8f32, 0x8f33, 0x8f34, 0x8f35, 0x8f36, 0x8f37, 0x8f38, 0x8f39, 0x8f3a, 0x8f3b, 0x8f3c, 0x8f3d, 0x8f3e, 0x8f3f, 0x8f40, 0x8f41, 0x8f42, 0x8f43, 0x8f44, 0x8368, 0x831b, 0x8369, 0x836c, 0x836a, 0x836d, 0x836e, 0x83b0, 0x8378, 0x83b3, 0x83b4, 0x83a0, 0x83aa, 0x8393, 0x839c, 0x8385, 0x837c, 0x83b6, 0x83a9, 0x837d, 0x83b8, 0x837b, 0x8398, 0x839e, 0x83a8, 0x83ba, 0x83bc, 0x83c1, 0x8401, 0x83e5, 0x83d8, 0x5807, 0x8418, 0x840b, 0x83dd, 0x83fd, 0x83d6, 0x841c, 0x8438, 0x8411, 0x8406, 0x83d4, 0x83df, 0x840f, 0x8403, 0x83f8, 0x83f9, 0x83ea, 0x83c5, 0x83c0, 0x8426, 0x83f0, 0x83e1, 0x845c, 0x8451, 0x845a, 0x8459, 0x8473, 0x8487, 0x8488, 0x847a, 0x8489, 0x8478, 0x843c, 0x8446, 0x8469, 0x8476, 0x848c, 0x848e, 0x8431, 0x846d, 0x84c1, 0x84cd, 0x84d0, 0x84e6, 0x84bd, 0x84d3, 0x84ca, 0x84bf, 0x84ba, 0x84e0, 0x84a1, 0x84b9, 0x84b4, 0x8497, 0x84e5, 0x84e3, 0x850c, 0x750d, 0x8538, 0x84f0, 0x8539, 0x851f, 0x853a, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xde40[ 192 ] = { 0x8f45, 0x8f46, 0x8f47, 0x8f48, 0x8f49, 0x8f4a, 0x8f4b, 0x8f4c, 0x8f4d, 0x8f4e, 0x8f4f, 0x8f50, 0x8f51, 0x8f52, 0x8f53, 0x8f54, 0x8f55, 0x8f56, 0x8f57, 0x8f58, 0x8f59, 0x8f5a, 0x8f5b, 0x8f5c, 0x8f5d, 0x8f5e, 0x8f5f, 0x8f60, 0x8f61, 0x8f62, 0x8f63, 0x8f64, 0x8f65, 0x8f6a, 0x8f80, 0x8f8c, 0x8f92, 0x8f9d, 0x8fa0, 0x8fa1, 0x8fa2, 0x8fa4, 0x8fa5, 0x8fa6, 0x8fa7, 0x8faa, 0x8fac, 0x8fad, 0x8fae, 0x8faf, 0x8fb2, 0x8fb3, 0x8fb4, 0x8fb5, 0x8fb7, 0x8fb8, 0x8fba, 0x8fbb, 0x8fbc, 0x8fbf, 0x8fc0, 0x8fc3, 0x8fc6, 0xfffd, 0x8fc9, 0x8fca, 0x8fcb, 0x8fcc, 0x8fcd, 0x8fcf, 0x8fd2, 0x8fd6, 0x8fd7, 0x8fda, 0x8fe0, 0x8fe1, 0x8fe3, 0x8fe7, 0x8fec, 0x8fef, 0x8ff1, 0x8ff2, 0x8ff4, 0x8ff5, 0x8ff6, 0x8ffa, 0x8ffb, 0x8ffc, 0x8ffe, 0x8fff, 0x9007, 0x9008, 0x900c, 0x900e, 0x9013, 0x9015, 0x9018, 0x8556, 0x853b, 0x84ff, 0x84fc, 0x8559, 0x8548, 0x8568, 0x8564, 0x855e, 0x857a, 0x77a2, 0x8543, 0x8572, 0x857b, 0x85a4, 0x85a8, 0x8587, 0x858f, 0x8579, 0x85ae, 0x859c, 0x8585, 0x85b9, 0x85b7, 0x85b0, 0x85d3, 0x85c1, 0x85dc, 0x85ff, 0x8627, 0x8605, 0x8629, 0x8616, 0x863c, 0x5efe, 0x5f08, 0x593c, 0x5941, 0x8037, 0x5955, 0x595a, 0x5958, 0x530f, 0x5c22, 0x5c25, 0x5c2c, 0x5c34, 0x624c, 0x626a, 0x629f, 0x62bb, 0x62ca, 0x62da, 0x62d7, 0x62ee, 0x6322, 0x62f6, 0x6339, 0x634b, 0x6343, 0x63ad, 0x63f6, 0x6371, 0x637a, 0x638e, 0x63b4, 0x636d, 0x63ac, 0x638a, 0x6369, 0x63ae, 0x63bc, 0x63f2, 0x63f8, 0x63e0, 0x63ff, 0x63c4, 0x63de, 0x63ce, 0x6452, 0x63c6, 0x63be, 0x6445, 0x6441, 0x640b, 0x641b, 0x6420, 0x640c, 0x6426, 0x6421, 0x645e, 0x6484, 0x646d, 0x6496, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdf40[ 192 ] = { 0x9019, 0x901c, 0x9023, 0x9024, 0x9025, 0x9027, 0x9028, 0x9029, 0x902a, 0x902b, 0x902c, 0x9030, 0x9031, 0x9032, 0x9033, 0x9034, 0x9037, 0x9039, 0x903a, 0x903d, 0x903f, 0x9040, 0x9043, 0x9045, 0x9046, 0x9048, 0x9049, 0x904a, 0x904b, 0x904c, 0x904e, 0x9054, 0x9055, 0x9056, 0x9059, 0x905a, 0x905c, 0x905d, 0x905e, 0x905f, 0x9060, 0x9061, 0x9064, 0x9066, 0x9067, 0x9069, 0x906a, 0x906b, 0x906c, 0x906f, 0x9070, 0x9071, 0x9072, 0x9073, 0x9076, 0x9077, 0x9078, 0x9079, 0x907a, 0x907b, 0x907c, 0x907e, 0x9081, 0xfffd, 0x9084, 0x9085, 0x9086, 0x9087, 0x9089, 0x908a, 0x908c, 0x908d, 0x908e, 0x908f, 0x9090, 0x9092, 0x9094, 0x9096, 0x9098, 0x909a, 0x909c, 0x909e, 0x909f, 0x90a0, 0x90a4, 0x90a5, 0x90a7, 0x90a8, 0x90a9, 0x90ab, 0x90ad, 0x90b2, 0x90b7, 0x90bc, 0x90bd, 0x90bf, 0x90c0, 0x647a, 0x64b7, 0x64b8, 0x6499, 0x64ba, 0x64c0, 0x64d0, 0x64d7, 0x64e4, 0x64e2, 0x6509, 0x6525, 0x652e, 0x5f0b, 0x5fd2, 0x7519, 0x5f11, 0x535f, 0x53f1, 0x53fd, 0x53e9, 0x53e8, 0x53fb, 0x5412, 0x5416, 0x5406, 0x544b, 0x5452, 0x5453, 0x5454, 0x5456, 0x5443, 0x5421, 0x5457, 0x5459, 0x5423, 0x5432, 0x5482, 0x5494, 0x5477, 0x5471, 0x5464, 0x549a, 0x549b, 0x5484, 0x5476, 0x5466, 0x549d, 0x54d0, 0x54ad, 0x54c2, 0x54b4, 0x54d2, 0x54a7, 0x54a6, 0x54d3, 0x54d4, 0x5472, 0x54a3, 0x54d5, 0x54bb, 0x54bf, 0x54cc, 0x54d9, 0x54da, 0x54dc, 0x54a9, 0x54aa, 0x54a4, 0x54dd, 0x54cf, 0x54de, 0x551b, 0x54e7, 0x5520, 0x54fd, 0x5514, 0x54f3, 0x5522, 0x5523, 0x550f, 0x5511, 0x5527, 0x552a, 0x5567, 0x558f, 0x55b5, 0x5549, 0x556d, 0x5541, 0x5555, 0x553f, 0x5550, 0x553c, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe040[ 192 ] = { 0x90c2, 0x90c3, 0x90c6, 0x90c8, 0x90c9, 0x90cb, 0x90cc, 0x90cd, 0x90d2, 0x90d4, 0x90d5, 0x90d6, 0x90d8, 0x90d9, 0x90da, 0x90de, 0x90df, 0x90e0, 0x90e3, 0x90e4, 0x90e5, 0x90e9, 0x90ea, 0x90ec, 0x90ee, 0x90f0, 0x90f1, 0x90f2, 0x90f3, 0x90f5, 0x90f6, 0x90f7, 0x90f9, 0x90fa, 0x90fb, 0x90fc, 0x90ff, 0x9100, 0x9101, 0x9103, 0x9105, 0x9106, 0x9107, 0x9108, 0x9109, 0x910a, 0x910b, 0x910c, 0x910d, 0x910e, 0x910f, 0x9110, 0x9111, 0x9112, 0x9113, 0x9114, 0x9115, 0x9116, 0x9117, 0x9118, 0x911a, 0x911b, 0x911c, 0xfffd, 0x911d, 0x911f, 0x9120, 0x9121, 0x9124, 0x9125, 0x9126, 0x9127, 0x9128, 0x9129, 0x912a, 0x912b, 0x912c, 0x912d, 0x912e, 0x9130, 0x9132, 0x9133, 0x9134, 0x9135, 0x9136, 0x9137, 0x9138, 0x913a, 0x913b, 0x913c, 0x913d, 0x913e, 0x913f, 0x9140, 0x9141, 0x9142, 0x9144, 0x5537, 0x5556, 0x5575, 0x5576, 0x5577, 0x5533, 0x5530, 0x555c, 0x558b, 0x55d2, 0x5583, 0x55b1, 0x55b9, 0x5588, 0x5581, 0x559f, 0x557e, 0x55d6, 0x5591, 0x557b, 0x55df, 0x55bd, 0x55be, 0x5594, 0x5599, 0x55ea, 0x55f7, 0x55c9, 0x561f, 0x55d1, 0x55eb, 0x55ec, 0x55d4, 0x55e6, 0x55dd, 0x55c4, 0x55ef, 0x55e5, 0x55f2, 0x55f3, 0x55cc, 0x55cd, 0x55e8, 0x55f5, 0x55e4, 0x8f94, 0x561e, 0x5608, 0x560c, 0x5601, 0x5624, 0x5623, 0x55fe, 0x5600, 0x5627, 0x562d, 0x5658, 0x5639, 0x5657, 0x562c, 0x564d, 0x5662, 0x5659, 0x565c, 0x564c, 0x5654, 0x5686, 0x5664, 0x5671, 0x566b, 0x567b, 0x567c, 0x5685, 0x5693, 0x56af, 0x56d4, 0x56d7, 0x56dd, 0x56e1, 0x56f5, 0x56eb, 0x56f9, 0x56ff, 0x5704, 0x570a, 0x5709, 0x571c, 0x5e0f, 0x5e19, 0x5e14, 0x5e11, 0x5e31, 0x5e3b, 0x5e3c, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe140[ 192 ] = { 0x9145, 0x9147, 0x9148, 0x9151, 0x9153, 0x9154, 0x9155, 0x9156, 0x9158, 0x9159, 0x915b, 0x915c, 0x915f, 0x9160, 0x9166, 0x9167, 0x9168, 0x916b, 0x916d, 0x9173, 0x917a, 0x917b, 0x917c, 0x9180, 0x9181, 0x9182, 0x9183, 0x9184, 0x9186, 0x9188, 0x918a, 0x918e, 0x918f, 0x9193, 0x9194, 0x9195, 0x9196, 0x9197, 0x9198, 0x9199, 0x919c, 0x919d, 0x919e, 0x919f, 0x91a0, 0x91a1, 0x91a4, 0x91a5, 0x91a6, 0x91a7, 0x91a8, 0x91a9, 0x91ab, 0x91ac, 0x91b0, 0x91b1, 0x91b2, 0x91b3, 0x91b6, 0x91b7, 0x91b8, 0x91b9, 0x91bb, 0xfffd, 0x91bc, 0x91bd, 0x91be, 0x91bf, 0x91c0, 0x91c1, 0x91c2, 0x91c3, 0x91c4, 0x91c5, 0x91c6, 0x91c8, 0x91cb, 0x91d0, 0x91d2, 0x91d3, 0x91d4, 0x91d5, 0x91d6, 0x91d7, 0x91d8, 0x91d9, 0x91da, 0x91db, 0x91dd, 0x91de, 0x91df, 0x91e0, 0x91e1, 0x91e2, 0x91e3, 0x91e4, 0x91e5, 0x5e37, 0x5e44, 0x5e54, 0x5e5b, 0x5e5e, 0x5e61, 0x5c8c, 0x5c7a, 0x5c8d, 0x5c90, 0x5c96, 0x5c88, 0x5c98, 0x5c99, 0x5c91, 0x5c9a, 0x5c9c, 0x5cb5, 0x5ca2, 0x5cbd, 0x5cac, 0x5cab, 0x5cb1, 0x5ca3, 0x5cc1, 0x5cb7, 0x5cc4, 0x5cd2, 0x5ce4, 0x5ccb, 0x5ce5, 0x5d02, 0x5d03, 0x5d27, 0x5d26, 0x5d2e, 0x5d24, 0x5d1e, 0x5d06, 0x5d1b, 0x5d58, 0x5d3e, 0x5d34, 0x5d3d, 0x5d6c, 0x5d5b, 0x5d6f, 0x5d5d, 0x5d6b, 0x5d4b, 0x5d4a, 0x5d69, 0x5d74, 0x5d82, 0x5d99, 0x5d9d, 0x8c73, 0x5db7, 0x5dc5, 0x5f73, 0x5f77, 0x5f82, 0x5f87, 0x5f89, 0x5f8c, 0x5f95, 0x5f99, 0x5f9c, 0x5fa8, 0x5fad, 0x5fb5, 0x5fbc, 0x8862, 0x5f61, 0x72ad, 0x72b0, 0x72b4, 0x72b7, 0x72b8, 0x72c3, 0x72c1, 0x72ce, 0x72cd, 0x72d2, 0x72e8, 0x72ef, 0x72e9, 0x72f2, 0x72f4, 0x72f7, 0x7301, 0x72f3, 0x7303, 0x72fa, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe240[ 192 ] = { 0x91e6, 0x91e7, 0x91e8, 0x91e9, 0x91ea, 0x91eb, 0x91ec, 0x91ed, 0x91ee, 0x91ef, 0x91f0, 0x91f1, 0x91f2, 0x91f3, 0x91f4, 0x91f5, 0x91f6, 0x91f7, 0x91f8, 0x91f9, 0x91fa, 0x91fb, 0x91fc, 0x91fd, 0x91fe, 0x91ff, 0x9200, 0x9201, 0x9202, 0x9203, 0x9204, 0x9205, 0x9206, 0x9207, 0x9208, 0x9209, 0x920a, 0x920b, 0x920c, 0x920d, 0x920e, 0x920f, 0x9210, 0x9211, 0x9212, 0x9213, 0x9214, 0x9215, 0x9216, 0x9217, 0x9218, 0x9219, 0x921a, 0x921b, 0x921c, 0x921d, 0x921e, 0x921f, 0x9220, 0x9221, 0x9222, 0x9223, 0x9224, 0xfffd, 0x9225, 0x9226, 0x9227, 0x9228, 0x9229, 0x922a, 0x922b, 0x922c, 0x922d, 0x922e, 0x922f, 0x9230, 0x9231, 0x9232, 0x9233, 0x9234, 0x9235, 0x9236, 0x9237, 0x9238, 0x9239, 0x923a, 0x923b, 0x923c, 0x923d, 0x923e, 0x923f, 0x9240, 0x9241, 0x9242, 0x9243, 0x9244, 0x9245, 0x72fb, 0x7317, 0x7313, 0x7321, 0x730a, 0x731e, 0x731d, 0x7315, 0x7322, 0x7339, 0x7325, 0x732c, 0x7338, 0x7331, 0x7350, 0x734d, 0x7357, 0x7360, 0x736c, 0x736f, 0x737e, 0x821b, 0x5925, 0x98e7, 0x5924, 0x5902, 0x9963, 0x9967, 0x9968, 0x9969, 0x996a, 0x996b, 0x996c, 0x9974, 0x9977, 0x997d, 0x9980, 0x9984, 0x9987, 0x998a, 0x998d, 0x9990, 0x9991, 0x9993, 0x9994, 0x9995, 0x5e80, 0x5e91, 0x5e8b, 0x5e96, 0x5ea5, 0x5ea0, 0x5eb9, 0x5eb5, 0x5ebe, 0x5eb3, 0x8d53, 0x5ed2, 0x5ed1, 0x5edb, 0x5ee8, 0x5eea, 0x81ba, 0x5fc4, 0x5fc9, 0x5fd6, 0x5fcf, 0x6003, 0x5fee, 0x6004, 0x5fe1, 0x5fe4, 0x5ffe, 0x6005, 0x6006, 0x5fea, 0x5fed, 0x5ff8, 0x6019, 0x6035, 0x6026, 0x601b, 0x600f, 0x600d, 0x6029, 0x602b, 0x600a, 0x603f, 0x6021, 0x6078, 0x6079, 0x607b, 0x607a, 0x6042, 0xfffd, }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe340[ 192 ] = { 0x9246, 0x9247, 0x9248, 0x9249, 0x924a, 0x924b, 0x924c, 0x924d, 0x924e, 0x924f, 0x9250, 0x9251, 0x9252, 0x9253, 0x9254, 0x9255, 0x9256, 0x9257, 0x9258, 0x9259, 0x925a, 0x925b, 0x925c, 0x925d, 0x925e, 0x925f, 0x9260, 0x9261, 0x9262, 0x9263, 0x9264, 0x9265, 0x9266, 0x9267, 0x9268, 0x9269, 0x926a, 0x926b, 0x926c, 0x926d, 0x926e, 0x926f, 0x9270, 0x9271, 0x9272, 0x9273, 0x9275, 0x9276, 0x9277, 0x9278, 0x9279, 0x927a, 0x927b, 0x927c, 0x927d, 0x927e, 0x927f, 0x9280, 0x9281, 0x9282, 0x9283, 0x9284, 0x9285, 0xfffd, 0x9286, 0x9287, 0x9288, 0x9289, 0x928a, 0x928b, 0x928c, 0x928d, 0x928f, 0x9290, 0x9291, 0x9292, 0x9293, 0x9294, 0x9295, 0x9296, 0x9297, 0x9298, 0x9299, 0x929a, 0x929b, 0x929c, 0x929d, 0x929e, 0x929f, 0x92a0, 0x92a1, 0x92a2, 0x92a3, 0x92a4, 0x92a5, 0x92a6, 0x92a7, 0x606a, 0x607d, 0x6096, 0x609a, 0x60ad, 0x609d, 0x6083, 0x6092, 0x608c, 0x609b, 0x60ec, 0x60bb, 0x60b1, 0x60dd, 0x60d8, 0x60c6, 0x60da, 0x60b4, 0x6120, 0x6126, 0x6115, 0x6123, 0x60f4, 0x6100, 0x610e, 0x612b, 0x614a, 0x6175, 0x61ac, 0x6194, 0x61a7, 0x61b7, 0x61d4, 0x61f5, 0x5fdd, 0x96b3, 0x95e9, 0x95eb, 0x95f1, 0x95f3, 0x95f5, 0x95f6, 0x95fc, 0x95fe, 0x9603, 0x9604, 0x9606, 0x9608, 0x960a, 0x960b, 0x960c, 0x960d, 0x960f, 0x9612, 0x9615, 0x9616, 0x9617, 0x9619, 0x961a, 0x4e2c, 0x723f, 0x6215, 0x6c35, 0x6c54, 0x6c5c, 0x6c4a, 0x6ca3, 0x6c85, 0x6c90, 0x6c94, 0x6c8c, 0x6c68, 0x6c69, 0x6c74, 0x6c76, 0x6c86, 0x6ca9, 0x6cd0, 0x6cd4, 0x6cad, 0x6cf7, 0x6cf8, 0x6cf1, 0x6cd7, 0x6cb2, 0x6ce0, 0x6cd6, 0x6cfa, 0x6ceb, 0x6cee, 0x6cb1, 0x6cd3, 0x6cef, 0x6cfe, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe440[ 192 ] = { 0x92a8, 0x92a9, 0x92aa, 0x92ab, 0x92ac, 0x92ad, 0x92af, 0x92b0, 0x92b1, 0x92b2, 0x92b3, 0x92b4, 0x92b5, 0x92b6, 0x92b7, 0x92b8, 0x92b9, 0x92ba, 0x92bb, 0x92bc, 0x92bd, 0x92be, 0x92bf, 0x92c0, 0x92c1, 0x92c2, 0x92c3, 0x92c4, 0x92c5, 0x92c6, 0x92c7, 0x92c9, 0x92ca, 0x92cb, 0x92cc, 0x92cd, 0x92ce, 0x92cf, 0x92d0, 0x92d1, 0x92d2, 0x92d3, 0x92d4, 0x92d5, 0x92d6, 0x92d7, 0x92d8, 0x92d9, 0x92da, 0x92db, 0x92dc, 0x92dd, 0x92de, 0x92df, 0x92e0, 0x92e1, 0x92e2, 0x92e3, 0x92e4, 0x92e5, 0x92e6, 0x92e7, 0x92e8, 0xfffd, 0x92e9, 0x92ea, 0x92eb, 0x92ec, 0x92ed, 0x92ee, 0x92ef, 0x92f0, 0x92f1, 0x92f2, 0x92f3, 0x92f4, 0x92f5, 0x92f6, 0x92f7, 0x92f8, 0x92f9, 0x92fa, 0x92fb, 0x92fc, 0x92fd, 0x92fe, 0x92ff, 0x9300, 0x9301, 0x9302, 0x9303, 0x9304, 0x9305, 0x9306, 0x9307, 0x9308, 0x9309, 0x6d39, 0x6d27, 0x6d0c, 0x6d43, 0x6d48, 0x6d07, 0x6d04, 0x6d19, 0x6d0e, 0x6d2b, 0x6d4d, 0x6d2e, 0x6d35, 0x6d1a, 0x6d4f, 0x6d52, 0x6d54, 0x6d33, 0x6d91, 0x6d6f, 0x6d9e, 0x6da0, 0x6d5e, 0x6d93, 0x6d94, 0x6d5c, 0x6d60, 0x6d7c, 0x6d63, 0x6e1a, 0x6dc7, 0x6dc5, 0x6dde, 0x6e0e, 0x6dbf, 0x6de0, 0x6e11, 0x6de6, 0x6ddd, 0x6dd9, 0x6e16, 0x6dab, 0x6e0c, 0x6dae, 0x6e2b, 0x6e6e, 0x6e4e, 0x6e6b, 0x6eb2, 0x6e5f, 0x6e86, 0x6e53, 0x6e54, 0x6e32, 0x6e25, 0x6e44, 0x6edf, 0x6eb1, 0x6e98, 0x6ee0, 0x6f2d, 0x6ee2, 0x6ea5, 0x6ea7, 0x6ebd, 0x6ebb, 0x6eb7, 0x6ed7, 0x6eb4, 0x6ecf, 0x6e8f, 0x6ec2, 0x6e9f, 0x6f62, 0x6f46, 0x6f47, 0x6f24, 0x6f15, 0x6ef9, 0x6f2f, 0x6f36, 0x6f4b, 0x6f74, 0x6f2a, 0x6f09, 0x6f29, 0x6f89, 0x6f8d, 0x6f8c, 0x6f78, 0x6f72, 0x6f7c, 0x6f7a, 0x6fd1, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe540[ 192 ] = { 0x930a, 0x930b, 0x930c, 0x930d, 0x930e, 0x930f, 0x9310, 0x9311, 0x9312, 0x9313, 0x9314, 0x9315, 0x9316, 0x9317, 0x9318, 0x9319, 0x931a, 0x931b, 0x931c, 0x931d, 0x931e, 0x931f, 0x9320, 0x9321, 0x9322, 0x9323, 0x9324, 0x9325, 0x9326, 0x9327, 0x9328, 0x9329, 0x932a, 0x932b, 0x932c, 0x932d, 0x932e, 0x932f, 0x9330, 0x9331, 0x9332, 0x9333, 0x9334, 0x9335, 0x9336, 0x9337, 0x9338, 0x9339, 0x933a, 0x933b, 0x933c, 0x933d, 0x933f, 0x9340, 0x9341, 0x9342, 0x9343, 0x9344, 0x9345, 0x9346, 0x9347, 0x9348, 0x9349, 0xfffd, 0x934a, 0x934b, 0x934c, 0x934d, 0x934e, 0x934f, 0x9350, 0x9351, 0x9352, 0x9353, 0x9354, 0x9355, 0x9356, 0x9357, 0x9358, 0x9359, 0x935a, 0x935b, 0x935c, 0x935d, 0x935e, 0x935f, 0x9360, 0x9361, 0x9362, 0x9363, 0x9364, 0x9365, 0x9366, 0x9367, 0x9368, 0x9369, 0x936b, 0x6fc9, 0x6fa7, 0x6fb9, 0x6fb6, 0x6fc2, 0x6fe1, 0x6fee, 0x6fde, 0x6fe0, 0x6fef, 0x701a, 0x7023, 0x701b, 0x7039, 0x7035, 0x704f, 0x705e, 0x5b80, 0x5b84, 0x5b95, 0x5b93, 0x5ba5, 0x5bb8, 0x752f, 0x9a9e, 0x6434, 0x5be4, 0x5bee, 0x8930, 0x5bf0, 0x8e47, 0x8b07, 0x8fb6, 0x8fd3, 0x8fd5, 0x8fe5, 0x8fee, 0x8fe4, 0x8fe9, 0x8fe6, 0x8ff3, 0x8fe8, 0x9005, 0x9004, 0x900b, 0x9026, 0x9011, 0x900d, 0x9016, 0x9021, 0x9035, 0x9036, 0x902d, 0x902f, 0x9044, 0x9051, 0x9052, 0x9050, 0x9068, 0x9058, 0x9062, 0x905b, 0x66b9, 0x9074, 0x907d, 0x9082, 0x9088, 0x9083, 0x908b, 0x5f50, 0x5f57, 0x5f56, 0x5f58, 0x5c3b, 0x54ab, 0x5c50, 0x5c59, 0x5b71, 0x5c63, 0x5c66, 0x7fbc, 0x5f2a, 0x5f29, 0x5f2d, 0x8274, 0x5f3c, 0x9b3b, 0x5c6e, 0x5981, 0x5983, 0x598d, 0x59a9, 0x59aa, 0x59a3, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe640[ 192 ] = { 0x936c, 0x936d, 0x936e, 0x936f, 0x9370, 0x9371, 0x9372, 0x9373, 0x9374, 0x9375, 0x9376, 0x9377, 0x9378, 0x9379, 0x937a, 0x937b, 0x937c, 0x937d, 0x937e, 0x937f, 0x9380, 0x9381, 0x9382, 0x9383, 0x9384, 0x9385, 0x9386, 0x9387, 0x9388, 0x9389, 0x938a, 0x938b, 0x938c, 0x938d, 0x938e, 0x9390, 0x9391, 0x9392, 0x9393, 0x9394, 0x9395, 0x9396, 0x9397, 0x9398, 0x9399, 0x939a, 0x939b, 0x939c, 0x939d, 0x939e, 0x939f, 0x93a0, 0x93a1, 0x93a2, 0x93a3, 0x93a4, 0x93a5, 0x93a6, 0x93a7, 0x93a8, 0x93a9, 0x93aa, 0x93ab, 0xfffd, 0x93ac, 0x93ad, 0x93ae, 0x93af, 0x93b0, 0x93b1, 0x93b2, 0x93b3, 0x93b4, 0x93b5, 0x93b6, 0x93b7, 0x93b8, 0x93b9, 0x93ba, 0x93bb, 0x93bc, 0x93bd, 0x93be, 0x93bf, 0x93c0, 0x93c1, 0x93c2, 0x93c3, 0x93c4, 0x93c5, 0x93c6, 0x93c7, 0x93c8, 0x93c9, 0x93cb, 0x93cc, 0x93cd, 0x5997, 0x59ca, 0x59ab, 0x599e, 0x59a4, 0x59d2, 0x59b2, 0x59af, 0x59d7, 0x59be, 0x5a05, 0x5a06, 0x59dd, 0x5a08, 0x59e3, 0x59d8, 0x59f9, 0x5a0c, 0x5a09, 0x5a32, 0x5a34, 0x5a11, 0x5a23, 0x5a13, 0x5a40, 0x5a67, 0x5a4a, 0x5a55, 0x5a3c, 0x5a62, 0x5a75, 0x80ec, 0x5aaa, 0x5a9b, 0x5a77, 0x5a7a, 0x5abe, 0x5aeb, 0x5ab2, 0x5ad2, 0x5ad4, 0x5ab8, 0x5ae0, 0x5ae3, 0x5af1, 0x5ad6, 0x5ae6, 0x5ad8, 0x5adc, 0x5b09, 0x5b17, 0x5b16, 0x5b32, 0x5b37, 0x5b40, 0x5c15, 0x5c1c, 0x5b5a, 0x5b65, 0x5b73, 0x5b51, 0x5b53, 0x5b62, 0x9a75, 0x9a77, 0x9a78, 0x9a7a, 0x9a7f, 0x9a7d, 0x9a80, 0x9a81, 0x9a85, 0x9a88, 0x9a8a, 0x9a90, 0x9a92, 0x9a93, 0x9a96, 0x9a98, 0x9a9b, 0x9a9c, 0x9a9d, 0x9a9f, 0x9aa0, 0x9aa2, 0x9aa3, 0x9aa5, 0x9aa7, 0x7e9f, 0x7ea1, 0x7ea3, 0x7ea5, 0x7ea8, 0x7ea9, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe740[ 192 ] = { 0x93ce, 0x93cf, 0x93d0, 0x93d1, 0x93d2, 0x93d3, 0x93d4, 0x93d5, 0x93d7, 0x93d8, 0x93d9, 0x93da, 0x93db, 0x93dc, 0x93dd, 0x93de, 0x93df, 0x93e0, 0x93e1, 0x93e2, 0x93e3, 0x93e4, 0x93e5, 0x93e6, 0x93e7, 0x93e8, 0x93e9, 0x93ea, 0x93eb, 0x93ec, 0x93ed, 0x93ee, 0x93ef, 0x93f0, 0x93f1, 0x93f2, 0x93f3, 0x93f4, 0x93f5, 0x93f6, 0x93f7, 0x93f8, 0x93f9, 0x93fa, 0x93fb, 0x93fc, 0x93fd, 0x93fe, 0x93ff, 0x9400, 0x9401, 0x9402, 0x9403, 0x9404, 0x9405, 0x9406, 0x9407, 0x9408, 0x9409, 0x940a, 0x940b, 0x940c, 0x940d, 0xfffd, 0x940e, 0x940f, 0x9410, 0x9411, 0x9412, 0x9413, 0x9414, 0x9415, 0x9416, 0x9417, 0x9418, 0x9419, 0x941a, 0x941b, 0x941c, 0x941d, 0x941e, 0x941f, 0x9420, 0x9421, 0x9422, 0x9423, 0x9424, 0x9425, 0x9426, 0x9427, 0x9428, 0x9429, 0x942a, 0x942b, 0x942c, 0x942d, 0x942e, 0x7ead, 0x7eb0, 0x7ebe, 0x7ec0, 0x7ec1, 0x7ec2, 0x7ec9, 0x7ecb, 0x7ecc, 0x7ed0, 0x7ed4, 0x7ed7, 0x7edb, 0x7ee0, 0x7ee1, 0x7ee8, 0x7eeb, 0x7eee, 0x7eef, 0x7ef1, 0x7ef2, 0x7f0d, 0x7ef6, 0x7efa, 0x7efb, 0x7efe, 0x7f01, 0x7f02, 0x7f03, 0x7f07, 0x7f08, 0x7f0b, 0x7f0c, 0x7f0f, 0x7f11, 0x7f12, 0x7f17, 0x7f19, 0x7f1c, 0x7f1b, 0x7f1f, 0x7f21, 0x7f22, 0x7f23, 0x7f24, 0x7f25, 0x7f26, 0x7f27, 0x7f2a, 0x7f2b, 0x7f2c, 0x7f2d, 0x7f2f, 0x7f30, 0x7f31, 0x7f32, 0x7f33, 0x7f35, 0x5e7a, 0x757f, 0x5ddb, 0x753e, 0x9095, 0x738e, 0x7391, 0x73ae, 0x73a2, 0x739f, 0x73cf, 0x73c2, 0x73d1, 0x73b7, 0x73b3, 0x73c0, 0x73c9, 0x73c8, 0x73e5, 0x73d9, 0x987c, 0x740a, 0x73e9, 0x73e7, 0x73de, 0x73ba, 0x73f2, 0x740f, 0x742a, 0x745b, 0x7426, 0x7425, 0x7428, 0x7430, 0x742e, 0x742c, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe840[ 192 ] = { 0x942f, 0x9430, 0x9431, 0x9432, 0x9433, 0x9434, 0x9435, 0x9436, 0x9437, 0x9438, 0x9439, 0x943a, 0x943b, 0x943c, 0x943d, 0x943f, 0x9440, 0x9441, 0x9442, 0x9443, 0x9444, 0x9445, 0x9446, 0x9447, 0x9448, 0x9449, 0x944a, 0x944b, 0x944c, 0x944d, 0x944e, 0x944f, 0x9450, 0x9451, 0x9452, 0x9453, 0x9454, 0x9455, 0x9456, 0x9457, 0x9458, 0x9459, 0x945a, 0x945b, 0x945c, 0x945d, 0x945e, 0x945f, 0x9460, 0x9461, 0x9462, 0x9463, 0x9464, 0x9465, 0x9466, 0x9467, 0x9468, 0x9469, 0x946a, 0x946c, 0x946d, 0x946e, 0x946f, 0xfffd, 0x9470, 0x9471, 0x9472, 0x9473, 0x9474, 0x9475, 0x9476, 0x9477, 0x9478, 0x9479, 0x947a, 0x947b, 0x947c, 0x947d, 0x947e, 0x947f, 0x9480, 0x9481, 0x9482, 0x9483, 0x9484, 0x9491, 0x9496, 0x9498, 0x94c7, 0x94cf, 0x94d3, 0x94d4, 0x94da, 0x94e6, 0x94fb, 0x951c, 0x9520, 0x741b, 0x741a, 0x7441, 0x745c, 0x7457, 0x7455, 0x7459, 0x7477, 0x746d, 0x747e, 0x749c, 0x748e, 0x7480, 0x7481, 0x7487, 0x748b, 0x749e, 0x74a8, 0x74a9, 0x7490, 0x74a7, 0x74d2, 0x74ba, 0x97ea, 0x97eb, 0x97ec, 0x674c, 0x6753, 0x675e, 0x6748, 0x6769, 0x67a5, 0x6787, 0x676a, 0x6773, 0x6798, 0x67a7, 0x6775, 0x67a8, 0x679e, 0x67ad, 0x678b, 0x6777, 0x677c, 0x67f0, 0x6809, 0x67d8, 0x680a, 0x67e9, 0x67b0, 0x680c, 0x67d9, 0x67b5, 0x67da, 0x67b3, 0x67dd, 0x6800, 0x67c3, 0x67b8, 0x67e2, 0x680e, 0x67c1, 0x67fd, 0x6832, 0x6833, 0x6860, 0x6861, 0x684e, 0x6862, 0x6844, 0x6864, 0x6883, 0x681d, 0x6855, 0x6866, 0x6841, 0x6867, 0x6840, 0x683e, 0x684a, 0x6849, 0x6829, 0x68b5, 0x688f, 0x6874, 0x6877, 0x6893, 0x686b, 0x68c2, 0x696e, 0x68fc, 0x691f, 0x6920, 0x68f9, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe940[ 192 ] = { 0x9527, 0x9533, 0x953d, 0x9543, 0x9548, 0x954b, 0x9555, 0x955a, 0x9560, 0x956e, 0x9574, 0x9575, 0x9577, 0x9578, 0x9579, 0x957a, 0x957b, 0x957c, 0x957d, 0x957e, 0x9580, 0x9581, 0x9582, 0x9583, 0x9584, 0x9585, 0x9586, 0x9587, 0x9588, 0x9589, 0x958a, 0x958b, 0x958c, 0x958d, 0x958e, 0x958f, 0x9590, 0x9591, 0x9592, 0x9593, 0x9594, 0x9595, 0x9596, 0x9597, 0x9598, 0x9599, 0x959a, 0x959b, 0x959c, 0x959d, 0x959e, 0x959f, 0x95a0, 0x95a1, 0x95a2, 0x95a3, 0x95a4, 0x95a5, 0x95a6, 0x95a7, 0x95a8, 0x95a9, 0x95aa, 0xfffd, 0x95ab, 0x95ac, 0x95ad, 0x95ae, 0x95af, 0x95b0, 0x95b1, 0x95b2, 0x95b3, 0x95b4, 0x95b5, 0x95b6, 0x95b7, 0x95b8, 0x95b9, 0x95ba, 0x95bb, 0x95bc, 0x95bd, 0x95be, 0x95bf, 0x95c0, 0x95c1, 0x95c2, 0x95c3, 0x95c4, 0x95c5, 0x95c6, 0x95c7, 0x95c8, 0x95c9, 0x95ca, 0x95cb, 0x6924, 0x68f0, 0x690b, 0x6901, 0x6957, 0x68e3, 0x6910, 0x6971, 0x6939, 0x6960, 0x6942, 0x695d, 0x6984, 0x696b, 0x6980, 0x6998, 0x6978, 0x6934, 0x69cc, 0x6987, 0x6988, 0x69ce, 0x6989, 0x6966, 0x6963, 0x6979, 0x699b, 0x69a7, 0x69bb, 0x69ab, 0x69ad, 0x69d4, 0x69b1, 0x69c1, 0x69ca, 0x69df, 0x6995, 0x69e0, 0x698d, 0x69ff, 0x6a2f, 0x69ed, 0x6a17, 0x6a18, 0x6a65, 0x69f2, 0x6a44, 0x6a3e, 0x6aa0, 0x6a50, 0x6a5b, 0x6a35, 0x6a8e, 0x6a79, 0x6a3d, 0x6a28, 0x6a58, 0x6a7c, 0x6a91, 0x6a90, 0x6aa9, 0x6a97, 0x6aab, 0x7337, 0x7352, 0x6b81, 0x6b82, 0x6b87, 0x6b84, 0x6b92, 0x6b93, 0x6b8d, 0x6b9a, 0x6b9b, 0x6ba1, 0x6baa, 0x8f6b, 0x8f6d, 0x8f71, 0x8f72, 0x8f73, 0x8f75, 0x8f76, 0x8f78, 0x8f77, 0x8f79, 0x8f7a, 0x8f7c, 0x8f7e, 0x8f81, 0x8f82, 0x8f84, 0x8f87, 0x8f8b, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xea40[ 192 ] = { 0x95cc, 0x95cd, 0x95ce, 0x95cf, 0x95d0, 0x95d1, 0x95d2, 0x95d3, 0x95d4, 0x95d5, 0x95d6, 0x95d7, 0x95d8, 0x95d9, 0x95da, 0x95db, 0x95dc, 0x95dd, 0x95de, 0x95df, 0x95e0, 0x95e1, 0x95e2, 0x95e3, 0x95e4, 0x95e5, 0x95e6, 0x95e7, 0x95ec, 0x95ff, 0x9607, 0x9613, 0x9618, 0x961b, 0x961e, 0x9620, 0x9623, 0x9624, 0x9625, 0x9626, 0x9627, 0x9628, 0x9629, 0x962b, 0x962c, 0x962d, 0x962f, 0x9630, 0x9637, 0x9638, 0x9639, 0x963a, 0x963e, 0x9641, 0x9643, 0x964a, 0x964e, 0x964f, 0x9651, 0x9652, 0x9653, 0x9656, 0x9657, 0xfffd, 0x9658, 0x9659, 0x965a, 0x965c, 0x965d, 0x965e, 0x9660, 0x9663, 0x9665, 0x9666, 0x966b, 0x966d, 0x966e, 0x966f, 0x9670, 0x9671, 0x9673, 0x9678, 0x9679, 0x967a, 0x967b, 0x967c, 0x967d, 0x967e, 0x967f, 0x9680, 0x9681, 0x9682, 0x9683, 0x9684, 0x9687, 0x9689, 0x968a, 0x8f8d, 0x8f8e, 0x8f8f, 0x8f98, 0x8f9a, 0x8ece, 0x620b, 0x6217, 0x621b, 0x621f, 0x6222, 0x6221, 0x6225, 0x6224, 0x622c, 0x81e7, 0x74ef, 0x74f4, 0x74ff, 0x750f, 0x7511, 0x7513, 0x6534, 0x65ee, 0x65ef, 0x65f0, 0x660a, 0x6619, 0x6772, 0x6603, 0x6615, 0x6600, 0x7085, 0x66f7, 0x661d, 0x6634, 0x6631, 0x6636, 0x6635, 0x8006, 0x665f, 0x6654, 0x6641, 0x664f, 0x6656, 0x6661, 0x6657, 0x6677, 0x6684, 0x668c, 0x66a7, 0x669d, 0x66be, 0x66db, 0x66dc, 0x66e6, 0x66e9, 0x8d32, 0x8d33, 0x8d36, 0x8d3b, 0x8d3d, 0x8d40, 0x8d45, 0x8d46, 0x8d48, 0x8d49, 0x8d47, 0x8d4d, 0x8d55, 0x8d59, 0x89c7, 0x89ca, 0x89cb, 0x89cc, 0x89ce, 0x89cf, 0x89d0, 0x89d1, 0x726e, 0x729f, 0x725d, 0x7266, 0x726f, 0x727e, 0x727f, 0x7284, 0x728b, 0x728d, 0x728f, 0x7292, 0x6308, 0x6332, 0x63b0, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xeb40[ 192 ] = { 0x968c, 0x968e, 0x9691, 0x9692, 0x9693, 0x9695, 0x9696, 0x969a, 0x969b, 0x969d, 0x969e, 0x969f, 0x96a0, 0x96a1, 0x96a2, 0x96a3, 0x96a4, 0x96a5, 0x96a6, 0x96a8, 0x96a9, 0x96aa, 0x96ab, 0x96ac, 0x96ad, 0x96ae, 0x96af, 0x96b1, 0x96b2, 0x96b4, 0x96b5, 0x96b7, 0x96b8, 0x96ba, 0x96bb, 0x96bf, 0x96c2, 0x96c3, 0x96c8, 0x96ca, 0x96cb, 0x96d0, 0x96d1, 0x96d3, 0x96d4, 0x96d6, 0x96d7, 0x96d8, 0x96d9, 0x96da, 0x96db, 0x96dc, 0x96dd, 0x96de, 0x96df, 0x96e1, 0x96e2, 0x96e3, 0x96e4, 0x96e5, 0x96e6, 0x96e7, 0x96eb, 0xfffd, 0x96ec, 0x96ed, 0x96ee, 0x96f0, 0x96f1, 0x96f2, 0x96f4, 0x96f5, 0x96f8, 0x96fa, 0x96fb, 0x96fc, 0x96fd, 0x96ff, 0x9702, 0x9703, 0x9705, 0x970a, 0x970b, 0x970c, 0x9710, 0x9711, 0x9712, 0x9714, 0x9715, 0x9717, 0x9718, 0x9719, 0x971a, 0x971b, 0x971d, 0x971f, 0x9720, 0x643f, 0x64d8, 0x8004, 0x6bea, 0x6bf3, 0x6bfd, 0x6bf5, 0x6bf9, 0x6c05, 0x6c07, 0x6c06, 0x6c0d, 0x6c15, 0x6c18, 0x6c19, 0x6c1a, 0x6c21, 0x6c29, 0x6c24, 0x6c2a, 0x6c32, 0x6535, 0x6555, 0x656b, 0x724d, 0x7252, 0x7256, 0x7230, 0x8662, 0x5216, 0x809f, 0x809c, 0x8093, 0x80bc, 0x670a, 0x80bd, 0x80b1, 0x80ab, 0x80ad, 0x80b4, 0x80b7, 0x80e7, 0x80e8, 0x80e9, 0x80ea, 0x80db, 0x80c2, 0x80c4, 0x80d9, 0x80cd, 0x80d7, 0x6710, 0x80dd, 0x80eb, 0x80f1, 0x80f4, 0x80ed, 0x810d, 0x810e, 0x80f2, 0x80fc, 0x6715, 0x8112, 0x8c5a, 0x8136, 0x811e, 0x812c, 0x8118, 0x8132, 0x8148, 0x814c, 0x8153, 0x8174, 0x8159, 0x815a, 0x8171, 0x8160, 0x8169, 0x817c, 0x817d, 0x816d, 0x8167, 0x584d, 0x5ab5, 0x8188, 0x8182, 0x8191, 0x6ed5, 0x81a3, 0x81aa, 0x81cc, 0x6726, 0x81ca, 0x81bb, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xec40[ 192 ] = { 0x9721, 0x9722, 0x9723, 0x9724, 0x9725, 0x9726, 0x9727, 0x9728, 0x9729, 0x972b, 0x972c, 0x972e, 0x972f, 0x9731, 0x9733, 0x9734, 0x9735, 0x9736, 0x9737, 0x973a, 0x973b, 0x973c, 0x973d, 0x973f, 0x9740, 0x9741, 0x9742, 0x9743, 0x9744, 0x9745, 0x9746, 0x9747, 0x9748, 0x9749, 0x974a, 0x974b, 0x974c, 0x974d, 0x974e, 0x974f, 0x9750, 0x9751, 0x9754, 0x9755, 0x9757, 0x9758, 0x975a, 0x975c, 0x975d, 0x975f, 0x9763, 0x9764, 0x9766, 0x9767, 0x9768, 0x976a, 0x976b, 0x976c, 0x976d, 0x976e, 0x976f, 0x9770, 0x9771, 0xfffd, 0x9772, 0x9775, 0x9777, 0x9778, 0x9779, 0x977a, 0x977b, 0x977d, 0x977e, 0x977f, 0x9780, 0x9781, 0x9782, 0x9783, 0x9784, 0x9786, 0x9787, 0x9788, 0x9789, 0x978a, 0x978c, 0x978e, 0x978f, 0x9790, 0x9793, 0x9795, 0x9796, 0x9797, 0x9799, 0x979a, 0x979b, 0x979c, 0x979d, 0x81c1, 0x81a6, 0x6b24, 0x6b37, 0x6b39, 0x6b43, 0x6b46, 0x6b59, 0x98d1, 0x98d2, 0x98d3, 0x98d5, 0x98d9, 0x98da, 0x6bb3, 0x5f40, 0x6bc2, 0x89f3, 0x6590, 0x9f51, 0x6593, 0x65bc, 0x65c6, 0x65c4, 0x65c3, 0x65cc, 0x65ce, 0x65d2, 0x65d6, 0x7080, 0x709c, 0x7096, 0x709d, 0x70bb, 0x70c0, 0x70b7, 0x70ab, 0x70b1, 0x70e8, 0x70ca, 0x7110, 0x7113, 0x7116, 0x712f, 0x7131, 0x7173, 0x715c, 0x7168, 0x7145, 0x7172, 0x714a, 0x7178, 0x717a, 0x7198, 0x71b3, 0x71b5, 0x71a8, 0x71a0, 0x71e0, 0x71d4, 0x71e7, 0x71f9, 0x721d, 0x7228, 0x706c, 0x7118, 0x7166, 0x71b9, 0x623e, 0x623d, 0x6243, 0x6248, 0x6249, 0x793b, 0x7940, 0x7946, 0x7949, 0x795b, 0x795c, 0x7953, 0x795a, 0x7962, 0x7957, 0x7960, 0x796f, 0x7967, 0x797a, 0x7985, 0x798a, 0x799a, 0x79a7, 0x79b3, 0x5fd1, 0x5fd0, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xed40[ 192 ] = { 0x979e, 0x979f, 0x97a1, 0x97a2, 0x97a4, 0x97a5, 0x97a6, 0x97a7, 0x97a8, 0x97a9, 0x97aa, 0x97ac, 0x97ae, 0x97b0, 0x97b1, 0x97b3, 0x97b5, 0x97b6, 0x97b7, 0x97b8, 0x97b9, 0x97ba, 0x97bb, 0x97bc, 0x97bd, 0x97be, 0x97bf, 0x97c0, 0x97c1, 0x97c2, 0x97c3, 0x97c4, 0x97c5, 0x97c6, 0x97c7, 0x97c8, 0x97c9, 0x97ca, 0x97cb, 0x97cc, 0x97cd, 0x97ce, 0x97cf, 0x97d0, 0x97d1, 0x97d2, 0x97d3, 0x97d4, 0x97d5, 0x97d6, 0x97d7, 0x97d8, 0x97d9, 0x97da, 0x97db, 0x97dc, 0x97dd, 0x97de, 0x97df, 0x97e0, 0x97e1, 0x97e2, 0x97e3, 0xfffd, 0x97e4, 0x97e5, 0x97e8, 0x97ee, 0x97ef, 0x97f0, 0x97f1, 0x97f2, 0x97f4, 0x97f7, 0x97f8, 0x97f9, 0x97fa, 0x97fb, 0x97fc, 0x97fd, 0x97fe, 0x97ff, 0x9800, 0x9801, 0x9802, 0x9803, 0x9804, 0x9805, 0x9806, 0x9807, 0x9808, 0x9809, 0x980a, 0x980b, 0x980c, 0x980d, 0x980e, 0x603c, 0x605d, 0x605a, 0x6067, 0x6041, 0x6059, 0x6063, 0x60ab, 0x6106, 0x610d, 0x615d, 0x61a9, 0x619d, 0x61cb, 0x61d1, 0x6206, 0x8080, 0x807f, 0x6c93, 0x6cf6, 0x6dfc, 0x77f6, 0x77f8, 0x7800, 0x7809, 0x7817, 0x7818, 0x7811, 0x65ab, 0x782d, 0x781c, 0x781d, 0x7839, 0x783a, 0x783b, 0x781f, 0x783c, 0x7825, 0x782c, 0x7823, 0x7829, 0x784e, 0x786d, 0x7856, 0x7857, 0x7826, 0x7850, 0x7847, 0x784c, 0x786a, 0x789b, 0x7893, 0x789a, 0x7887, 0x789c, 0x78a1, 0x78a3, 0x78b2, 0x78b9, 0x78a5, 0x78d4, 0x78d9, 0x78c9, 0x78ec, 0x78f2, 0x7905, 0x78f4, 0x7913, 0x7924, 0x791e, 0x7934, 0x9f9b, 0x9ef9, 0x9efb, 0x9efc, 0x76f1, 0x7704, 0x770d, 0x76f9, 0x7707, 0x7708, 0x771a, 0x7722, 0x7719, 0x772d, 0x7726, 0x7735, 0x7738, 0x7750, 0x7751, 0x7747, 0x7743, 0x775a, 0x7768, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xee40[ 192 ] = { 0x980f, 0x9810, 0x9811, 0x9812, 0x9813, 0x9814, 0x9815, 0x9816, 0x9817, 0x9818, 0x9819, 0x981a, 0x981b, 0x981c, 0x981d, 0x981e, 0x981f, 0x9820, 0x9821, 0x9822, 0x9823, 0x9824, 0x9825, 0x9826, 0x9827, 0x9828, 0x9829, 0x982a, 0x982b, 0x982c, 0x982d, 0x982e, 0x982f, 0x9830, 0x9831, 0x9832, 0x9833, 0x9834, 0x9835, 0x9836, 0x9837, 0x9838, 0x9839, 0x983a, 0x983b, 0x983c, 0x983d, 0x983e, 0x983f, 0x9840, 0x9841, 0x9842, 0x9843, 0x9844, 0x9845, 0x9846, 0x9847, 0x9848, 0x9849, 0x984a, 0x984b, 0x984c, 0x984d, 0xfffd, 0x984e, 0x984f, 0x9850, 0x9851, 0x9852, 0x9853, 0x9854, 0x9855, 0x9856, 0x9857, 0x9858, 0x9859, 0x985a, 0x985b, 0x985c, 0x985d, 0x985e, 0x985f, 0x9860, 0x9861, 0x9862, 0x9863, 0x9864, 0x9865, 0x9866, 0x9867, 0x9868, 0x9869, 0x986a, 0x986b, 0x986c, 0x986d, 0x986e, 0x7762, 0x7765, 0x777f, 0x778d, 0x777d, 0x7780, 0x778c, 0x7791, 0x779f, 0x77a0, 0x77b0, 0x77b5, 0x77bd, 0x753a, 0x7540, 0x754e, 0x754b, 0x7548, 0x755b, 0x7572, 0x7579, 0x7583, 0x7f58, 0x7f61, 0x7f5f, 0x8a48, 0x7f68, 0x7f74, 0x7f71, 0x7f79, 0x7f81, 0x7f7e, 0x76cd, 0x76e5, 0x8832, 0x9485, 0x9486, 0x9487, 0x948b, 0x948a, 0x948c, 0x948d, 0x948f, 0x9490, 0x9494, 0x9497, 0x9495, 0x949a, 0x949b, 0x949c, 0x94a3, 0x94a4, 0x94ab, 0x94aa, 0x94ad, 0x94ac, 0x94af, 0x94b0, 0x94b2, 0x94b4, 0x94b6, 0x94b7, 0x94b8, 0x94b9, 0x94ba, 0x94bc, 0x94bd, 0x94bf, 0x94c4, 0x94c8, 0x94c9, 0x94ca, 0x94cb, 0x94cc, 0x94cd, 0x94ce, 0x94d0, 0x94d1, 0x94d2, 0x94d5, 0x94d6, 0x94d7, 0x94d9, 0x94d8, 0x94db, 0x94de, 0x94df, 0x94e0, 0x94e2, 0x94e4, 0x94e5, 0x94e7, 0x94e8, 0x94ea, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xef40[ 192 ] = { 0x986f, 0x9870, 0x9871, 0x9872, 0x9873, 0x9874, 0x988b, 0x988e, 0x9892, 0x9895, 0x9899, 0x98a3, 0x98a8, 0x98a9, 0x98aa, 0x98ab, 0x98ac, 0x98ad, 0x98ae, 0x98af, 0x98b0, 0x98b1, 0x98b2, 0x98b3, 0x98b4, 0x98b5, 0x98b6, 0x98b7, 0x98b8, 0x98b9, 0x98ba, 0x98bb, 0x98bc, 0x98bd, 0x98be, 0x98bf, 0x98c0, 0x98c1, 0x98c2, 0x98c3, 0x98c4, 0x98c5, 0x98c6, 0x98c7, 0x98c8, 0x98c9, 0x98ca, 0x98cb, 0x98cc, 0x98cd, 0x98cf, 0x98d0, 0x98d4, 0x98d6, 0x98d7, 0x98db, 0x98dc, 0x98dd, 0x98e0, 0x98e1, 0x98e2, 0x98e3, 0x98e4, 0xfffd, 0x98e5, 0x98e6, 0x98e9, 0x98ea, 0x98eb, 0x98ec, 0x98ed, 0x98ee, 0x98ef, 0x98f0, 0x98f1, 0x98f2, 0x98f3, 0x98f4, 0x98f5, 0x98f6, 0x98f7, 0x98f8, 0x98f9, 0x98fa, 0x98fb, 0x98fc, 0x98fd, 0x98fe, 0x98ff, 0x9900, 0x9901, 0x9902, 0x9903, 0x9904, 0x9905, 0x9906, 0x9907, 0x94e9, 0x94eb, 0x94ee, 0x94ef, 0x94f3, 0x94f4, 0x94f5, 0x94f7, 0x94f9, 0x94fc, 0x94fd, 0x94ff, 0x9503, 0x9502, 0x9506, 0x9507, 0x9509, 0x950a, 0x950d, 0x950e, 0x950f, 0x9512, 0x9513, 0x9514, 0x9515, 0x9516, 0x9518, 0x951b, 0x951d, 0x951e, 0x951f, 0x9522, 0x952a, 0x952b, 0x9529, 0x952c, 0x9531, 0x9532, 0x9534, 0x9536, 0x9537, 0x9538, 0x953c, 0x953e, 0x953f, 0x9542, 0x9535, 0x9544, 0x9545, 0x9546, 0x9549, 0x954c, 0x954e, 0x954f, 0x9552, 0x9553, 0x9554, 0x9556, 0x9557, 0x9558, 0x9559, 0x955b, 0x955e, 0x955f, 0x955d, 0x9561, 0x9562, 0x9564, 0x9565, 0x9566, 0x9567, 0x9568, 0x9569, 0x956a, 0x956b, 0x956c, 0x956f, 0x9571, 0x9572, 0x9573, 0x953a, 0x77e7, 0x77ec, 0x96c9, 0x79d5, 0x79ed, 0x79e3, 0x79eb, 0x7a06, 0x5d47, 0x7a03, 0x7a02, 0x7a1e, 0x7a14, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf040[ 192 ] = { 0x9908, 0x9909, 0x990a, 0x990b, 0x990c, 0x990e, 0x990f, 0x9911, 0x9912, 0x9913, 0x9914, 0x9915, 0x9916, 0x9917, 0x9918, 0x9919, 0x991a, 0x991b, 0x991c, 0x991d, 0x991e, 0x991f, 0x9920, 0x9921, 0x9922, 0x9923, 0x9924, 0x9925, 0x9926, 0x9927, 0x9928, 0x9929, 0x992a, 0x992b, 0x992c, 0x992d, 0x992f, 0x9930, 0x9931, 0x9932, 0x9933, 0x9934, 0x9935, 0x9936, 0x9937, 0x9938, 0x9939, 0x993a, 0x993b, 0x993c, 0x993d, 0x993e, 0x993f, 0x9940, 0x9941, 0x9942, 0x9943, 0x9944, 0x9945, 0x9946, 0x9947, 0x9948, 0x9949, 0xfffd, 0x994a, 0x994b, 0x994c, 0x994d, 0x994e, 0x994f, 0x9950, 0x9951, 0x9952, 0x9953, 0x9956, 0x9957, 0x9958, 0x9959, 0x995a, 0x995b, 0x995c, 0x995d, 0x995e, 0x995f, 0x9960, 0x9961, 0x9962, 0x9964, 0x9966, 0x9973, 0x9978, 0x9979, 0x997b, 0x997e, 0x9982, 0x9983, 0x9989, 0x7a39, 0x7a37, 0x7a51, 0x9ecf, 0x99a5, 0x7a70, 0x7688, 0x768e, 0x7693, 0x7699, 0x76a4, 0x74de, 0x74e0, 0x752c, 0x9e20, 0x9e22, 0x9e28, 0x9e29, 0x9e2a, 0x9e2b, 0x9e2c, 0x9e32, 0x9e31, 0x9e36, 0x9e38, 0x9e37, 0x9e39, 0x9e3a, 0x9e3e, 0x9e41, 0x9e42, 0x9e44, 0x9e46, 0x9e47, 0x9e48, 0x9e49, 0x9e4b, 0x9e4c, 0x9e4e, 0x9e51, 0x9e55, 0x9e57, 0x9e5a, 0x9e5b, 0x9e5c, 0x9e5e, 0x9e63, 0x9e66, 0x9e67, 0x9e68, 0x9e69, 0x9e6a, 0x9e6b, 0x9e6c, 0x9e71, 0x9e6d, 0x9e73, 0x7592, 0x7594, 0x7596, 0x75a0, 0x759d, 0x75ac, 0x75a3, 0x75b3, 0x75b4, 0x75b8, 0x75c4, 0x75b1, 0x75b0, 0x75c3, 0x75c2, 0x75d6, 0x75cd, 0x75e3, 0x75e8, 0x75e6, 0x75e4, 0x75eb, 0x75e7, 0x7603, 0x75f1, 0x75fc, 0x75ff, 0x7610, 0x7600, 0x7605, 0x760c, 0x7617, 0x760a, 0x7625, 0x7618, 0x7615, 0x7619, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf140[ 192 ] = { 0x998c, 0x998e, 0x999a, 0x999b, 0x999c, 0x999d, 0x999e, 0x999f, 0x99a0, 0x99a1, 0x99a2, 0x99a3, 0x99a4, 0x99a6, 0x99a7, 0x99a9, 0x99aa, 0x99ab, 0x99ac, 0x99ad, 0x99ae, 0x99af, 0x99b0, 0x99b1, 0x99b2, 0x99b3, 0x99b4, 0x99b5, 0x99b6, 0x99b7, 0x99b8, 0x99b9, 0x99ba, 0x99bb, 0x99bc, 0x99bd, 0x99be, 0x99bf, 0x99c0, 0x99c1, 0x99c2, 0x99c3, 0x99c4, 0x99c5, 0x99c6, 0x99c7, 0x99c8, 0x99c9, 0x99ca, 0x99cb, 0x99cc, 0x99cd, 0x99ce, 0x99cf, 0x99d0, 0x99d1, 0x99d2, 0x99d3, 0x99d4, 0x99d5, 0x99d6, 0x99d7, 0x99d8, 0xfffd, 0x99d9, 0x99da, 0x99db, 0x99dc, 0x99dd, 0x99de, 0x99df, 0x99e0, 0x99e1, 0x99e2, 0x99e3, 0x99e4, 0x99e5, 0x99e6, 0x99e7, 0x99e8, 0x99e9, 0x99ea, 0x99eb, 0x99ec, 0x99ed, 0x99ee, 0x99ef, 0x99f0, 0x99f1, 0x99f2, 0x99f3, 0x99f4, 0x99f5, 0x99f6, 0x99f7, 0x99f8, 0x99f9, 0x761b, 0x763c, 0x7622, 0x7620, 0x7640, 0x762d, 0x7630, 0x763f, 0x7635, 0x7643, 0x763e, 0x7633, 0x764d, 0x765e, 0x7654, 0x765c, 0x7656, 0x766b, 0x766f, 0x7fca, 0x7ae6, 0x7a78, 0x7a79, 0x7a80, 0x7a86, 0x7a88, 0x7a95, 0x7aa6, 0x7aa0, 0x7aac, 0x7aa8, 0x7aad, 0x7ab3, 0x8864, 0x8869, 0x8872, 0x887d, 0x887f, 0x8882, 0x88a2, 0x88c6, 0x88b7, 0x88bc, 0x88c9, 0x88e2, 0x88ce, 0x88e3, 0x88e5, 0x88f1, 0x891a, 0x88fc, 0x88e8, 0x88fe, 0x88f0, 0x8921, 0x8919, 0x8913, 0x891b, 0x890a, 0x8934, 0x892b, 0x8936, 0x8941, 0x8966, 0x897b, 0x758b, 0x80e5, 0x76b2, 0x76b4, 0x77dc, 0x8012, 0x8014, 0x8016, 0x801c, 0x8020, 0x8022, 0x8025, 0x8026, 0x8027, 0x8029, 0x8028, 0x8031, 0x800b, 0x8035, 0x8043, 0x8046, 0x804d, 0x8052, 0x8069, 0x8071, 0x8983, 0x9878, 0x9880, 0x9883, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf240[ 192 ] = { 0x99fa, 0x99fb, 0x99fc, 0x99fd, 0x99fe, 0x99ff, 0x9a00, 0x9a01, 0x9a02, 0x9a03, 0x9a04, 0x9a05, 0x9a06, 0x9a07, 0x9a08, 0x9a09, 0x9a0a, 0x9a0b, 0x9a0c, 0x9a0d, 0x9a0e, 0x9a0f, 0x9a10, 0x9a11, 0x9a12, 0x9a13, 0x9a14, 0x9a15, 0x9a16, 0x9a17, 0x9a18, 0x9a19, 0x9a1a, 0x9a1b, 0x9a1c, 0x9a1d, 0x9a1e, 0x9a1f, 0x9a20, 0x9a21, 0x9a22, 0x9a23, 0x9a24, 0x9a25, 0x9a26, 0x9a27, 0x9a28, 0x9a29, 0x9a2a, 0x9a2b, 0x9a2c, 0x9a2d, 0x9a2e, 0x9a2f, 0x9a30, 0x9a31, 0x9a32, 0x9a33, 0x9a34, 0x9a35, 0x9a36, 0x9a37, 0x9a38, 0xfffd, 0x9a39, 0x9a3a, 0x9a3b, 0x9a3c, 0x9a3d, 0x9a3e, 0x9a3f, 0x9a40, 0x9a41, 0x9a42, 0x9a43, 0x9a44, 0x9a45, 0x9a46, 0x9a47, 0x9a48, 0x9a49, 0x9a4a, 0x9a4b, 0x9a4c, 0x9a4d, 0x9a4e, 0x9a4f, 0x9a50, 0x9a51, 0x9a52, 0x9a53, 0x9a54, 0x9a55, 0x9a56, 0x9a57, 0x9a58, 0x9a59, 0x9889, 0x988c, 0x988d, 0x988f, 0x9894, 0x989a, 0x989b, 0x989e, 0x989f, 0x98a1, 0x98a2, 0x98a5, 0x98a6, 0x864d, 0x8654, 0x866c, 0x866e, 0x867f, 0x867a, 0x867c, 0x867b, 0x86a8, 0x868d, 0x868b, 0x86ac, 0x869d, 0x86a7, 0x86a3, 0x86aa, 0x8693, 0x86a9, 0x86b6, 0x86c4, 0x86b5, 0x86ce, 0x86b0, 0x86ba, 0x86b1, 0x86af, 0x86c9, 0x86cf, 0x86b4, 0x86e9, 0x86f1, 0x86f2, 0x86ed, 0x86f3, 0x86d0, 0x8713, 0x86de, 0x86f4, 0x86df, 0x86d8, 0x86d1, 0x8703, 0x8707, 0x86f8, 0x8708, 0x870a, 0x870d, 0x8709, 0x8723, 0x873b, 0x871e, 0x8725, 0x872e, 0x871a, 0x873e, 0x8748, 0x8734, 0x8731, 0x8729, 0x8737, 0x873f, 0x8782, 0x8722, 0x877d, 0x877e, 0x877b, 0x8760, 0x8770, 0x874c, 0x876e, 0x878b, 0x8753, 0x8763, 0x877c, 0x8764, 0x8759, 0x8765, 0x8793, 0x87af, 0x87a8, 0x87d2, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf340[ 192 ] = { 0x9a5a, 0x9a5b, 0x9a5c, 0x9a5d, 0x9a5e, 0x9a5f, 0x9a60, 0x9a61, 0x9a62, 0x9a63, 0x9a64, 0x9a65, 0x9a66, 0x9a67, 0x9a68, 0x9a69, 0x9a6a, 0x9a6b, 0x9a72, 0x9a83, 0x9a89, 0x9a8d, 0x9a8e, 0x9a94, 0x9a95, 0x9a99, 0x9aa6, 0x9aa9, 0x9aaa, 0x9aab, 0x9aac, 0x9aad, 0x9aae, 0x9aaf, 0x9ab2, 0x9ab3, 0x9ab4, 0x9ab5, 0x9ab9, 0x9abb, 0x9abd, 0x9abe, 0x9abf, 0x9ac3, 0x9ac4, 0x9ac6, 0x9ac7, 0x9ac8, 0x9ac9, 0x9aca, 0x9acd, 0x9ace, 0x9acf, 0x9ad0, 0x9ad2, 0x9ad4, 0x9ad5, 0x9ad6, 0x9ad7, 0x9ad9, 0x9ada, 0x9adb, 0x9adc, 0xfffd, 0x9add, 0x9ade, 0x9ae0, 0x9ae2, 0x9ae3, 0x9ae4, 0x9ae5, 0x9ae7, 0x9ae8, 0x9ae9, 0x9aea, 0x9aec, 0x9aee, 0x9af0, 0x9af1, 0x9af2, 0x9af3, 0x9af4, 0x9af5, 0x9af6, 0x9af7, 0x9af8, 0x9afa, 0x9afc, 0x9afd, 0x9afe, 0x9aff, 0x9b00, 0x9b01, 0x9b02, 0x9b04, 0x9b05, 0x9b06, 0x87c6, 0x8788, 0x8785, 0x87ad, 0x8797, 0x8783, 0x87ab, 0x87e5, 0x87ac, 0x87b5, 0x87b3, 0x87cb, 0x87d3, 0x87bd, 0x87d1, 0x87c0, 0x87ca, 0x87db, 0x87ea, 0x87e0, 0x87ee, 0x8816, 0x8813, 0x87fe, 0x880a, 0x881b, 0x8821, 0x8839, 0x883c, 0x7f36, 0x7f42, 0x7f44, 0x7f45, 0x8210, 0x7afa, 0x7afd, 0x7b08, 0x7b03, 0x7b04, 0x7b15, 0x7b0a, 0x7b2b, 0x7b0f, 0x7b47, 0x7b38, 0x7b2a, 0x7b19, 0x7b2e, 0x7b31, 0x7b20, 0x7b25, 0x7b24, 0x7b33, 0x7b3e, 0x7b1e, 0x7b58, 0x7b5a, 0x7b45, 0x7b75, 0x7b4c, 0x7b5d, 0x7b60, 0x7b6e, 0x7b7b, 0x7b62, 0x7b72, 0x7b71, 0x7b90, 0x7ba6, 0x7ba7, 0x7bb8, 0x7bac, 0x7b9d, 0x7ba8, 0x7b85, 0x7baa, 0x7b9c, 0x7ba2, 0x7bab, 0x7bb4, 0x7bd1, 0x7bc1, 0x7bcc, 0x7bdd, 0x7bda, 0x7be5, 0x7be6, 0x7bea, 0x7c0c, 0x7bfe, 0x7bfc, 0x7c0f, 0x7c16, 0x7c0b, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf440[ 192 ] = { 0x9b07, 0x9b09, 0x9b0a, 0x9b0b, 0x9b0c, 0x9b0d, 0x9b0e, 0x9b10, 0x9b11, 0x9b12, 0x9b14, 0x9b15, 0x9b16, 0x9b17, 0x9b18, 0x9b19, 0x9b1a, 0x9b1b, 0x9b1c, 0x9b1d, 0x9b1e, 0x9b20, 0x9b21, 0x9b22, 0x9b24, 0x9b25, 0x9b26, 0x9b27, 0x9b28, 0x9b29, 0x9b2a, 0x9b2b, 0x9b2c, 0x9b2d, 0x9b2e, 0x9b30, 0x9b31, 0x9b33, 0x9b34, 0x9b35, 0x9b36, 0x9b37, 0x9b38, 0x9b39, 0x9b3a, 0x9b3d, 0x9b3e, 0x9b3f, 0x9b40, 0x9b46, 0x9b4a, 0x9b4b, 0x9b4c, 0x9b4e, 0x9b50, 0x9b52, 0x9b53, 0x9b55, 0x9b56, 0x9b57, 0x9b58, 0x9b59, 0x9b5a, 0xfffd, 0x9b5b, 0x9b5c, 0x9b5d, 0x9b5e, 0x9b5f, 0x9b60, 0x9b61, 0x9b62, 0x9b63, 0x9b64, 0x9b65, 0x9b66, 0x9b67, 0x9b68, 0x9b69, 0x9b6a, 0x9b6b, 0x9b6c, 0x9b6d, 0x9b6e, 0x9b6f, 0x9b70, 0x9b71, 0x9b72, 0x9b73, 0x9b74, 0x9b75, 0x9b76, 0x9b77, 0x9b78, 0x9b79, 0x9b7a, 0x9b7b, 0x7c1f, 0x7c2a, 0x7c26, 0x7c38, 0x7c41, 0x7c40, 0x81fe, 0x8201, 0x8202, 0x8204, 0x81ec, 0x8844, 0x8221, 0x8222, 0x8223, 0x822d, 0x822f, 0x8228, 0x822b, 0x8238, 0x823b, 0x8233, 0x8234, 0x823e, 0x8244, 0x8249, 0x824b, 0x824f, 0x825a, 0x825f, 0x8268, 0x887e, 0x8885, 0x8888, 0x88d8, 0x88df, 0x895e, 0x7f9d, 0x7f9f, 0x7fa7, 0x7faf, 0x7fb0, 0x7fb2, 0x7c7c, 0x6549, 0x7c91, 0x7c9d, 0x7c9c, 0x7c9e, 0x7ca2, 0x7cb2, 0x7cbc, 0x7cbd, 0x7cc1, 0x7cc7, 0x7ccc, 0x7ccd, 0x7cc8, 0x7cc5, 0x7cd7, 0x7ce8, 0x826e, 0x66a8, 0x7fbf, 0x7fce, 0x7fd5, 0x7fe5, 0x7fe1, 0x7fe6, 0x7fe9, 0x7fee, 0x7ff3, 0x7cf8, 0x7d77, 0x7da6, 0x7dae, 0x7e47, 0x7e9b, 0x9eb8, 0x9eb4, 0x8d73, 0x8d84, 0x8d94, 0x8d91, 0x8db1, 0x8d67, 0x8d6d, 0x8c47, 0x8c49, 0x914a, 0x9150, 0x914e, 0x914f, 0x9164, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf540[ 192 ] = { 0x9b7c, 0x9b7d, 0x9b7e, 0x9b7f, 0x9b80, 0x9b81, 0x9b82, 0x9b83, 0x9b84, 0x9b85, 0x9b86, 0x9b87, 0x9b88, 0x9b89, 0x9b8a, 0x9b8b, 0x9b8c, 0x9b8d, 0x9b8e, 0x9b8f, 0x9b90, 0x9b91, 0x9b92, 0x9b93, 0x9b94, 0x9b95, 0x9b96, 0x9b97, 0x9b98, 0x9b99, 0x9b9a, 0x9b9b, 0x9b9c, 0x9b9d, 0x9b9e, 0x9b9f, 0x9ba0, 0x9ba1, 0x9ba2, 0x9ba3, 0x9ba4, 0x9ba5, 0x9ba6, 0x9ba7, 0x9ba8, 0x9ba9, 0x9baa, 0x9bab, 0x9bac, 0x9bad, 0x9bae, 0x9baf, 0x9bb0, 0x9bb1, 0x9bb2, 0x9bb3, 0x9bb4, 0x9bb5, 0x9bb6, 0x9bb7, 0x9bb8, 0x9bb9, 0x9bba, 0xfffd, 0x9bbb, 0x9bbc, 0x9bbd, 0x9bbe, 0x9bbf, 0x9bc0, 0x9bc1, 0x9bc2, 0x9bc3, 0x9bc4, 0x9bc5, 0x9bc6, 0x9bc7, 0x9bc8, 0x9bc9, 0x9bca, 0x9bcb, 0x9bcc, 0x9bcd, 0x9bce, 0x9bcf, 0x9bd0, 0x9bd1, 0x9bd2, 0x9bd3, 0x9bd4, 0x9bd5, 0x9bd6, 0x9bd7, 0x9bd8, 0x9bd9, 0x9bda, 0x9bdb, 0x9162, 0x9161, 0x9170, 0x9169, 0x916f, 0x917d, 0x917e, 0x9172, 0x9174, 0x9179, 0x918c, 0x9185, 0x9190, 0x918d, 0x9191, 0x91a2, 0x91a3, 0x91aa, 0x91ad, 0x91ae, 0x91af, 0x91b5, 0x91b4, 0x91ba, 0x8c55, 0x9e7e, 0x8db8, 0x8deb, 0x8e05, 0x8e59, 0x8e69, 0x8db5, 0x8dbf, 0x8dbc, 0x8dba, 0x8dc4, 0x8dd6, 0x8dd7, 0x8dda, 0x8dde, 0x8dce, 0x8dcf, 0x8ddb, 0x8dc6, 0x8dec, 0x8df7, 0x8df8, 0x8de3, 0x8df9, 0x8dfb, 0x8de4, 0x8e09, 0x8dfd, 0x8e14, 0x8e1d, 0x8e1f, 0x8e2c, 0x8e2e, 0x8e23, 0x8e2f, 0x8e3a, 0x8e40, 0x8e39, 0x8e35, 0x8e3d, 0x8e31, 0x8e49, 0x8e41, 0x8e42, 0x8e51, 0x8e52, 0x8e4a, 0x8e70, 0x8e76, 0x8e7c, 0x8e6f, 0x8e74, 0x8e85, 0x8e8f, 0x8e94, 0x8e90, 0x8e9c, 0x8e9e, 0x8c78, 0x8c82, 0x8c8a, 0x8c85, 0x8c98, 0x8c94, 0x659b, 0x89d6, 0x89de, 0x89da, 0x89dc, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf640[ 192 ] = { 0x9bdc, 0x9bdd, 0x9bde, 0x9bdf, 0x9be0, 0x9be1, 0x9be2, 0x9be3, 0x9be4, 0x9be5, 0x9be6, 0x9be7, 0x9be8, 0x9be9, 0x9bea, 0x9beb, 0x9bec, 0x9bed, 0x9bee, 0x9bef, 0x9bf0, 0x9bf1, 0x9bf2, 0x9bf3, 0x9bf4, 0x9bf5, 0x9bf6, 0x9bf7, 0x9bf8, 0x9bf9, 0x9bfa, 0x9bfb, 0x9bfc, 0x9bfd, 0x9bfe, 0x9bff, 0x9c00, 0x9c01, 0x9c02, 0x9c03, 0x9c04, 0x9c05, 0x9c06, 0x9c07, 0x9c08, 0x9c09, 0x9c0a, 0x9c0b, 0x9c0c, 0x9c0d, 0x9c0e, 0x9c0f, 0x9c10, 0x9c11, 0x9c12, 0x9c13, 0x9c14, 0x9c15, 0x9c16, 0x9c17, 0x9c18, 0x9c19, 0x9c1a, 0xfffd, 0x9c1b, 0x9c1c, 0x9c1d, 0x9c1e, 0x9c1f, 0x9c20, 0x9c21, 0x9c22, 0x9c23, 0x9c24, 0x9c25, 0x9c26, 0x9c27, 0x9c28, 0x9c29, 0x9c2a, 0x9c2b, 0x9c2c, 0x9c2d, 0x9c2e, 0x9c2f, 0x9c30, 0x9c31, 0x9c32, 0x9c33, 0x9c34, 0x9c35, 0x9c36, 0x9c37, 0x9c38, 0x9c39, 0x9c3a, 0x9c3b, 0x89e5, 0x89eb, 0x89ef, 0x8a3e, 0x8b26, 0x9753, 0x96e9, 0x96f3, 0x96ef, 0x9706, 0x9701, 0x9708, 0x970f, 0x970e, 0x972a, 0x972d, 0x9730, 0x973e, 0x9f80, 0x9f83, 0x9f85, 0x9f86, 0x9f87, 0x9f88, 0x9f89, 0x9f8a, 0x9f8c, 0x9efe, 0x9f0b, 0x9f0d, 0x96b9, 0x96bc, 0x96bd, 0x96ce, 0x96d2, 0x77bf, 0x96e0, 0x928e, 0x92ae, 0x92c8, 0x933e, 0x936a, 0x93ca, 0x938f, 0x943e, 0x946b, 0x9c7f, 0x9c82, 0x9c85, 0x9c86, 0x9c87, 0x9c88, 0x7a23, 0x9c8b, 0x9c8e, 0x9c90, 0x9c91, 0x9c92, 0x9c94, 0x9c95, 0x9c9a, 0x9c9b, 0x9c9e, 0x9c9f, 0x9ca0, 0x9ca1, 0x9ca2, 0x9ca3, 0x9ca5, 0x9ca6, 0x9ca7, 0x9ca8, 0x9ca9, 0x9cab, 0x9cad, 0x9cae, 0x9cb0, 0x9cb1, 0x9cb2, 0x9cb3, 0x9cb4, 0x9cb5, 0x9cb6, 0x9cb7, 0x9cba, 0x9cbb, 0x9cbc, 0x9cbd, 0x9cc4, 0x9cc5, 0x9cc6, 0x9cc7, 0x9cca, 0x9ccb, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf740[ 192 ] = { 0x9c3c, 0x9c3d, 0x9c3e, 0x9c3f, 0x9c40, 0x9c41, 0x9c42, 0x9c43, 0x9c44, 0x9c45, 0x9c46, 0x9c47, 0x9c48, 0x9c49, 0x9c4a, 0x9c4b, 0x9c4c, 0x9c4d, 0x9c4e, 0x9c4f, 0x9c50, 0x9c51, 0x9c52, 0x9c53, 0x9c54, 0x9c55, 0x9c56, 0x9c57, 0x9c58, 0x9c59, 0x9c5a, 0x9c5b, 0x9c5c, 0x9c5d, 0x9c5e, 0x9c5f, 0x9c60, 0x9c61, 0x9c62, 0x9c63, 0x9c64, 0x9c65, 0x9c66, 0x9c67, 0x9c68, 0x9c69, 0x9c6a, 0x9c6b, 0x9c6c, 0x9c6d, 0x9c6e, 0x9c6f, 0x9c70, 0x9c71, 0x9c72, 0x9c73, 0x9c74, 0x9c75, 0x9c76, 0x9c77, 0x9c78, 0x9c79, 0x9c7a, 0xfffd, 0x9c7b, 0x9c7d, 0x9c7e, 0x9c80, 0x9c83, 0x9c84, 0x9c89, 0x9c8a, 0x9c8c, 0x9c8f, 0x9c93, 0x9c96, 0x9c97, 0x9c98, 0x9c99, 0x9c9d, 0x9caa, 0x9cac, 0x9caf, 0x9cb9, 0x9cbe, 0x9cbf, 0x9cc0, 0x9cc1, 0x9cc2, 0x9cc8, 0x9cc9, 0x9cd1, 0x9cd2, 0x9cda, 0x9cdb, 0x9ce0, 0x9ce1, 0x9ccc, 0x9ccd, 0x9cce, 0x9ccf, 0x9cd0, 0x9cd3, 0x9cd4, 0x9cd5, 0x9cd7, 0x9cd8, 0x9cd9, 0x9cdc, 0x9cdd, 0x9cdf, 0x9ce2, 0x977c, 0x9785, 0x9791, 0x9792, 0x9794, 0x97af, 0x97ab, 0x97a3, 0x97b2, 0x97b4, 0x9ab1, 0x9ab0, 0x9ab7, 0x9e58, 0x9ab6, 0x9aba, 0x9abc, 0x9ac1, 0x9ac0, 0x9ac5, 0x9ac2, 0x9acb, 0x9acc, 0x9ad1, 0x9b45, 0x9b43, 0x9b47, 0x9b49, 0x9b48, 0x9b4d, 0x9b51, 0x98e8, 0x990d, 0x992e, 0x9955, 0x9954, 0x9adf, 0x9ae1, 0x9ae6, 0x9aef, 0x9aeb, 0x9afb, 0x9aed, 0x9af9, 0x9b08, 0x9b0f, 0x9b13, 0x9b1f, 0x9b23, 0x9ebd, 0x9ebe, 0x7e3b, 0x9e82, 0x9e87, 0x9e88, 0x9e8b, 0x9e92, 0x93d6, 0x9e9d, 0x9e9f, 0x9edb, 0x9edc, 0x9edd, 0x9ee0, 0x9edf, 0x9ee2, 0x9ee9, 0x9ee7, 0x9ee5, 0x9eea, 0x9eef, 0x9f22, 0x9f2c, 0x9f2f, 0x9f39, 0x9f37, 0x9f3d, 0x9f3e, 0x9f44, 0xfffd }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf840[ 96 ] = { 0x9ce3, 0x9ce4, 0x9ce5, 0x9ce6, 0x9ce7, 0x9ce8, 0x9ce9, 0x9cea, 0x9ceb, 0x9cec, 0x9ced, 0x9cee, 0x9cef, 0x9cf0, 0x9cf1, 0x9cf2, 0x9cf3, 0x9cf4, 0x9cf5, 0x9cf6, 0x9cf7, 0x9cf8, 0x9cf9, 0x9cfa, 0x9cfb, 0x9cfc, 0x9cfd, 0x9cfe, 0x9cff, 0x9d00, 0x9d01, 0x9d02, 0x9d03, 0x9d04, 0x9d05, 0x9d06, 0x9d07, 0x9d08, 0x9d09, 0x9d0a, 0x9d0b, 0x9d0c, 0x9d0d, 0x9d0e, 0x9d0f, 0x9d10, 0x9d11, 0x9d12, 0x9d13, 0x9d14, 0x9d15, 0x9d16, 0x9d17, 0x9d18, 0x9d19, 0x9d1a, 0x9d1b, 0x9d1c, 0x9d1d, 0x9d1e, 0x9d1f, 0x9d20, 0x9d21, 0xfffd, 0x9d22, 0x9d23, 0x9d24, 0x9d25, 0x9d26, 0x9d27, 0x9d28, 0x9d29, 0x9d2a, 0x9d2b, 0x9d2c, 0x9d2d, 0x9d2e, 0x9d2f, 0x9d30, 0x9d31, 0x9d32, 0x9d33, 0x9d34, 0x9d35, 0x9d36, 0x9d37, 0x9d38, 0x9d39, 0x9d3a, 0x9d3b, 0x9d3c, 0x9d3d, 0x9d3e, 0x9d3f, 0x9d40, 0x9d41 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf940[ 96 ] = { 0x9d43, 0x9d44, 0x9d45, 0x9d46, 0x9d47, 0x9d48, 0x9d49, 0x9d4a, 0x9d4b, 0x9d4c, 0x9d4d, 0x9d4e, 0x9d4f, 0x9d50, 0x9d51, 0x9d52, 0x9d53, 0x9d54, 0x9d55, 0x9d56, 0x9d57, 0x9d58, 0x9d59, 0x9d5a, 0x9d5b, 0x9d5c, 0x9d5d, 0x9d5e, 0x9d5f, 0x9d60, 0x9d61, 0x9d62, 0x9d63, 0x9d64, 0x9d65, 0x9d66, 0x9d67, 0x9d68, 0x9d69, 0x9d6a, 0x9d6b, 0x9d6c, 0x9d6d, 0x9d6e, 0x9d6f, 0x9d70, 0x9d71, 0x9d72, 0x9d73, 0x9d74, 0x9d75, 0x9d76, 0x9d77, 0x9d78, 0x9d79, 0x9d7a, 0x9d7b, 0x9d7c, 0x9d7d, 0x9d7e, 0x9d7f, 0x9d80, 0x9d81, 0xfffd, 0x9d82, 0x9d83, 0x9d84, 0x9d85, 0x9d86, 0x9d87, 0x9d88, 0x9d89, 0x9d8a, 0x9d8b, 0x9d8c, 0x9d8d, 0x9d8e, 0x9d8f, 0x9d90, 0x9d91, 0x9d92, 0x9d93, 0x9d94, 0x9d95, 0x9d96, 0x9d97, 0x9d98, 0x9d99, 0x9d9a, 0x9d9b, 0x9d9c, 0x9d9d, 0x9d9e, 0x9d9f, 0x9da0, 0x9da1 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfa40[ 96 ] = { 0x9da3, 0x9da4, 0x9da5, 0x9da6, 0x9da7, 0x9da8, 0x9da9, 0x9daa, 0x9dab, 0x9dac, 0x9dad, 0x9dae, 0x9daf, 0x9db0, 0x9db1, 0x9db2, 0x9db3, 0x9db4, 0x9db5, 0x9db6, 0x9db7, 0x9db8, 0x9db9, 0x9dba, 0x9dbb, 0x9dbc, 0x9dbd, 0x9dbe, 0x9dbf, 0x9dc0, 0x9dc1, 0x9dc2, 0x9dc3, 0x9dc4, 0x9dc5, 0x9dc6, 0x9dc7, 0x9dc8, 0x9dc9, 0x9dca, 0x9dcb, 0x9dcc, 0x9dcd, 0x9dce, 0x9dcf, 0x9dd0, 0x9dd1, 0x9dd2, 0x9dd3, 0x9dd4, 0x9dd5, 0x9dd6, 0x9dd7, 0x9dd8, 0x9dd9, 0x9dda, 0x9ddb, 0x9ddc, 0x9ddd, 0x9dde, 0x9ddf, 0x9de0, 0x9de1, 0xfffd, 0x9de2, 0x9de3, 0x9de4, 0x9de5, 0x9de6, 0x9de7, 0x9de8, 0x9de9, 0x9dea, 0x9deb, 0x9dec, 0x9ded, 0x9dee, 0x9def, 0x9df0, 0x9df1, 0x9df2, 0x9df3, 0x9df4, 0x9df5, 0x9df6, 0x9df7, 0x9df8, 0x9df9, 0x9dfa, 0x9dfb, 0x9dfc, 0x9dfd, 0x9dfe, 0x9dff, 0x9e00, 0x9e01 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfb40[ 96 ] = { 0x9e03, 0x9e04, 0x9e05, 0x9e06, 0x9e07, 0x9e08, 0x9e09, 0x9e0a, 0x9e0b, 0x9e0c, 0x9e0d, 0x9e0e, 0x9e0f, 0x9e10, 0x9e11, 0x9e12, 0x9e13, 0x9e14, 0x9e15, 0x9e16, 0x9e17, 0x9e18, 0x9e19, 0x9e1a, 0x9e1b, 0x9e1c, 0x9e1d, 0x9e1e, 0x9e24, 0x9e27, 0x9e2e, 0x9e30, 0x9e34, 0x9e3b, 0x9e3c, 0x9e40, 0x9e4d, 0x9e50, 0x9e52, 0x9e53, 0x9e54, 0x9e56, 0x9e59, 0x9e5d, 0x9e5f, 0x9e60, 0x9e61, 0x9e62, 0x9e65, 0x9e6e, 0x9e6f, 0x9e72, 0x9e74, 0x9e75, 0x9e76, 0x9e77, 0x9e78, 0x9e79, 0x9e7a, 0x9e7b, 0x9e7c, 0x9e7d, 0x9e80, 0xfffd, 0x9e81, 0x9e83, 0x9e84, 0x9e85, 0x9e86, 0x9e89, 0x9e8a, 0x9e8c, 0x9e8d, 0x9e8e, 0x9e8f, 0x9e90, 0x9e91, 0x9e94, 0x9e95, 0x9e96, 0x9e97, 0x9e98, 0x9e99, 0x9e9a, 0x9e9b, 0x9e9c, 0x9e9e, 0x9ea0, 0x9ea1, 0x9ea2, 0x9ea3, 0x9ea4, 0x9ea5, 0x9ea7, 0x9ea8, 0x9ea9 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfc40[ 96 ] = { 0x9eab, 0x9eac, 0x9ead, 0x9eae, 0x9eaf, 0x9eb0, 0x9eb1, 0x9eb2, 0x9eb3, 0x9eb5, 0x9eb6, 0x9eb7, 0x9eb9, 0x9eba, 0x9ebc, 0x9ebf, 0x9ec0, 0x9ec1, 0x9ec2, 0x9ec3, 0x9ec5, 0x9ec6, 0x9ec7, 0x9ec8, 0x9eca, 0x9ecb, 0x9ecc, 0x9ed0, 0x9ed2, 0x9ed3, 0x9ed5, 0x9ed6, 0x9ed7, 0x9ed9, 0x9eda, 0x9ede, 0x9ee1, 0x9ee3, 0x9ee4, 0x9ee6, 0x9ee8, 0x9eeb, 0x9eec, 0x9eed, 0x9eee, 0x9ef0, 0x9ef1, 0x9ef2, 0x9ef3, 0x9ef4, 0x9ef5, 0x9ef6, 0x9ef7, 0x9ef8, 0x9efa, 0x9efd, 0x9eff, 0x9f00, 0x9f01, 0x9f02, 0x9f03, 0x9f04, 0x9f05, 0xfffd, 0x9f06, 0x9f07, 0x9f08, 0x9f09, 0x9f0a, 0x9f0c, 0x9f0f, 0x9f11, 0x9f12, 0x9f14, 0x9f15, 0x9f16, 0x9f18, 0x9f1a, 0x9f1b, 0x9f1c, 0x9f1d, 0x9f1e, 0x9f1f, 0x9f21, 0x9f23, 0x9f24, 0x9f25, 0x9f26, 0x9f27, 0x9f28, 0x9f29, 0x9f2a, 0x9f2b, 0x9f2d, 0x9f2e, 0x9f30 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfd40[ 96 ] = { 0x9f32, 0x9f33, 0x9f34, 0x9f35, 0x9f36, 0x9f38, 0x9f3a, 0x9f3c, 0x9f3f, 0x9f40, 0x9f41, 0x9f42, 0x9f43, 0x9f45, 0x9f46, 0x9f47, 0x9f48, 0x9f49, 0x9f4a, 0x9f4b, 0x9f4c, 0x9f4d, 0x9f4e, 0x9f4f, 0x9f52, 0x9f53, 0x9f54, 0x9f55, 0x9f56, 0x9f57, 0x9f58, 0x9f59, 0x9f5a, 0x9f5b, 0x9f5c, 0x9f5d, 0x9f5e, 0x9f5f, 0x9f60, 0x9f61, 0x9f62, 0x9f63, 0x9f64, 0x9f65, 0x9f66, 0x9f67, 0x9f68, 0x9f69, 0x9f6a, 0x9f6b, 0x9f6c, 0x9f6d, 0x9f6e, 0x9f6f, 0x9f70, 0x9f71, 0x9f72, 0x9f73, 0x9f74, 0x9f75, 0x9f76, 0x9f77, 0x9f78, 0xfffd, 0x9f79, 0x9f7a, 0x9f7b, 0x9f7c, 0x9f7d, 0x9f7e, 0x9f81, 0x9f82, 0x9f8d, 0x9f8e, 0x9f8f, 0x9f90, 0x9f91, 0x9f92, 0x9f93, 0x9f94, 0x9f95, 0x9f96, 0x9f97, 0x9f98, 0x9f9c, 0x9f9d, 0x9f9e, 0x9fa1, 0x9fa2, 0x9fa3, 0x9fa4, 0x9fa5, 0xf92c, 0xf979, 0xf995, 0xf9e7 }; const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfe40[ 16 ] = { 0xfa0c, 0xfa0d, 0xfa0e, 0xfa0f, 0xfa11, 0xfa13, 0xfa14, 0xfa18, 0xfa1f, 0xfa20, 0xfa21, 0xfa23, 0xfa24, 0xfa27, 0xfa28, 0xfa29 }; /* Unicode to ASCII character lookup table for Windows 936 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0x0080[ 1024 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8a1, 0x001a, 0x001a, 0xeca1, 0xa7a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3a1, 0xc0a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4a8, 0xa2a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8a8, 0xa6a8, 0xbaa8, 0x001a, 0xaca8, 0xaaa8, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0a8, 0xaea8, 0x001a, 0x001a, 0x001a, 0xc2a1, 0x001a, 0xb4a8, 0xb2a8, 0x001a, 0xb9a8, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa9a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbda8, 0x001a, 0x001a, 0x001a, 0xbea8, 0x001a, 0x001a, 0x001a, 0x001a, 0xada8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3a8, 0x001a, 0xaba8, 0x001a, 0xafa8, 0x001a, 0xb3a8, 0x001a, 0xb5a8, 0x001a, 0xb6a8, 0x001a, 0xb7a8, 0x001a, 0xb8a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbba8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6a1, 0x001a, 0xa5a1, 0x40a8, 0x41a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x42a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a6, 0xa2a6, 0xa3a6, 0xa4a6, 0xa5a6, 0xa6a6, 0xa7a6, 0xa8a6, 0xa9a6, 0xaaa6, 0xaba6, 0xaca6, 0xada6, 0xaea6, 0xafa6, 0xb0a6, 0xb1a6, 0x001a, 0xb2a6, 0xb3a6, 0xb4a6, 0xb5a6, 0xb6a6, 0xb7a6, 0xb8a6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1a6, 0xc2a6, 0xc3a6, 0xc4a6, 0xc5a6, 0xc6a6, 0xc7a6, 0xc8a6, 0xc9a6, 0xcaa6, 0xcba6, 0xcca6, 0xcda6, 0xcea6, 0xcfa6, 0xd0a6, 0xd1a6, 0x001a, 0xd2a6, 0xd3a6, 0xd4a6, 0xd5a6, 0xd6a6, 0xd7a6, 0xd8a6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a7, 0xa2a7, 0xa3a7, 0xa4a7, 0xa5a7, 0xa6a7, 0xa8a7, 0xa9a7, 0xaaa7, 0xaba7, 0xaca7, 0xada7, 0xaea7, 0xafa7, 0xb0a7, 0xb1a7, 0xb2a7, 0xb3a7, 0xb4a7, 0xb5a7, 0xb6a7, 0xb7a7, 0xb8a7, 0xb9a7, 0xbaa7, 0xbba7, 0xbca7, 0xbda7, 0xbea7, 0xbfa7, 0xc0a7, 0xc1a7, 0xd1a7, 0xd2a7, 0xd3a7, 0xd4a7, 0xd5a7, 0xd6a7, 0xd8a7, 0xd9a7, 0xdaa7, 0xdba7, 0xdca7, 0xdda7, 0xdea7, 0xdfa7, 0xe0a7, 0xe1a7, 0xe2a7, 0xe3a7, 0xe4a7, 0xe5a7, 0xe6a7, 0xe7a7, 0xe8a7, 0xe9a7, 0xeaa7, 0xeba7, 0xeca7, 0xeda7, 0xeea7, 0xefa7, 0xf0a7, 0xf1a7, 0x001a, 0xd7a7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0x2000[ 832 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ca9, 0x001a, 0x001a, 0x43a8, 0xaaa1, 0x44a8, 0xaca1, 0x001a, 0xaea1, 0xafa1, 0x001a, 0x001a, 0xb0a1, 0xb1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x45a8, 0xada1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeba1, 0x001a, 0xe4a1, 0xe5a1, 0x001a, 0x46a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x0080, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6a1, 0x001a, 0x47a8, 0x001a, 0x001a, 0x001a, 0x48a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeda1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x59a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1a2, 0xf2a2, 0xf3a2, 0xf4a2, 0xf5a2, 0xf6a2, 0xf7a2, 0xf8a2, 0xf9a2, 0xfaa2, 0xfba2, 0xfca2, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a2, 0xa2a2, 0xa3a2, 0xa4a2, 0xa5a2, 0xa6a2, 0xa7a2, 0xa8a2, 0xa9a2, 0xaaa2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfba1, 0xfca1, 0xfaa1, 0xfda1, 0x001a, 0x001a, 0x49a8, 0x4aa8, 0x4ba8, 0x4ca8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcaa1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7a1, 0x001a, 0xc6a1, 0x001a, 0x001a, 0x001a, 0x4da8, 0x001a, 0x001a, 0x001a, 0x001a, 0xcca1, 0x001a, 0x001a, 0xd8a1, 0xdea1, 0x4ea8, 0xcfa1, 0x001a, 0x001a, 0x4fa8, 0x001a, 0xcea1, 0x001a, 0xc4a1, 0xc5a1, 0xc9a1, 0xc8a1, 0xd2a1, 0x001a, 0x001a, 0xd3a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0a1, 0xdfa1, 0xc3a1, 0xcba1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6a1, 0x001a, 0x001a, 0x001a, 0xd5a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9a1, 0xd4a1, 0x001a, 0x001a, 0xdca1, 0xdda1, 0x51a8, 0x52a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdaa1, 0xdba1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x92a8, 0x001a, 0x001a, 0x001a, 0xd1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcda1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x53a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0x2440[ 576 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9a2, 0xdaa2, 0xdba2, 0xdca2, 0xdda2, 0xdea2, 0xdfa2, 0xe0a2, 0xe1a2, 0xe2a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5a2, 0xc6a2, 0xc7a2, 0xc8a2, 0xc9a2, 0xcaa2, 0xcba2, 0xcca2, 0xcda2, 0xcea2, 0xcfa2, 0xd0a2, 0xd1a2, 0xd2a2, 0xd3a2, 0xd4a2, 0xd5a2, 0xd6a2, 0xd7a2, 0xd8a2, 0xb1a2, 0xb2a2, 0xb3a2, 0xb4a2, 0xb5a2, 0xb6a2, 0xb7a2, 0xb8a2, 0xb9a2, 0xbaa2, 0xbba2, 0xbca2, 0xbda2, 0xbea2, 0xbfa2, 0xc0a2, 0xc1a2, 0xc2a2, 0xc3a2, 0xc4a2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4a9, 0xa5a9, 0xa6a9, 0xa7a9, 0xa8a9, 0xa9a9, 0xaaa9, 0xaba9, 0xaca9, 0xada9, 0xaea9, 0xafa9, 0xb0a9, 0xb1a9, 0xb2a9, 0xb3a9, 0xb4a9, 0xb5a9, 0xb6a9, 0xb7a9, 0xb8a9, 0xb9a9, 0xbaa9, 0xbba9, 0xbca9, 0xbda9, 0xbea9, 0xbfa9, 0xc0a9, 0xc1a9, 0xc2a9, 0xc3a9, 0xc4a9, 0xc5a9, 0xc6a9, 0xc7a9, 0xc8a9, 0xc9a9, 0xcaa9, 0xcba9, 0xcca9, 0xcda9, 0xcea9, 0xcfa9, 0xd0a9, 0xd1a9, 0xd2a9, 0xd3a9, 0xd4a9, 0xd5a9, 0xd6a9, 0xd7a9, 0xd8a9, 0xd9a9, 0xdaa9, 0xdba9, 0xdca9, 0xdda9, 0xdea9, 0xdfa9, 0xe0a9, 0xe1a9, 0xe2a9, 0xe3a9, 0xe4a9, 0xe5a9, 0xe6a9, 0xe7a9, 0xe8a9, 0xe9a9, 0xeaa9, 0xeba9, 0xeca9, 0xeda9, 0xeea9, 0xefa9, 0x001a, 0x001a, 0x001a, 0x001a, 0x54a8, 0x55a8, 0x56a8, 0x57a8, 0x58a8, 0x59a8, 0x5aa8, 0x5ba8, 0x5ca8, 0x5da8, 0x5ea8, 0x5fa8, 0x60a8, 0x61a8, 0x62a8, 0x63a8, 0x64a8, 0x65a8, 0x66a8, 0x67a8, 0x68a8, 0x69a8, 0x6aa8, 0x6ba8, 0x6ca8, 0x6da8, 0x6ea8, 0x6fa8, 0x70a8, 0x71a8, 0x72a8, 0x73a8, 0x74a8, 0x75a8, 0x76a8, 0x77a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x78a8, 0x79a8, 0x7aa8, 0x7ba8, 0x7ca8, 0x7da8, 0x7ea8, 0x80a8, 0x81a8, 0x82a8, 0x83a8, 0x84a8, 0x85a8, 0x86a8, 0x87a8, 0x001a, 0x001a, 0x001a, 0x88a8, 0x89a8, 0x8aa8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6a1, 0xf5a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8a1, 0xf7a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8ba8, 0x8ca8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4a1, 0xf3a1, 0x001a, 0x001a, 0x001a, 0xf0a1, 0x001a, 0x001a, 0xf2a1, 0xf1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8da8, 0x8ea8, 0x8fa8, 0x90a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefa1, 0xeea1, 0x001a, 0x001a, 0x91a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2a1, 0x001a, 0xe1a1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0x3000[ 1024 ] = { 0xa1a1, 0xa2a1, 0xa3a1, 0xa8a1, 0x001a, 0xa9a1, 0x65a9, 0x96a9, 0xb4a1, 0xb5a1, 0xb6a1, 0xb7a1, 0xb8a1, 0xb9a1, 0xbaa1, 0xbba1, 0xbea1, 0xbfa1, 0x93a8, 0xfea1, 0xb2a1, 0xb3a1, 0xbca1, 0xbda1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x94a8, 0x95a8, 0x001a, 0x001a, 0x40a9, 0x41a9, 0x42a9, 0x43a9, 0x44a9, 0x45a9, 0x46a9, 0x47a9, 0x48a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a4, 0xa2a4, 0xa3a4, 0xa4a4, 0xa5a4, 0xa6a4, 0xa7a4, 0xa8a4, 0xa9a4, 0xaaa4, 0xaba4, 0xaca4, 0xada4, 0xaea4, 0xafa4, 0xb0a4, 0xb1a4, 0xb2a4, 0xb3a4, 0xb4a4, 0xb5a4, 0xb6a4, 0xb7a4, 0xb8a4, 0xb9a4, 0xbaa4, 0xbba4, 0xbca4, 0xbda4, 0xbea4, 0xbfa4, 0xc0a4, 0xc1a4, 0xc2a4, 0xc3a4, 0xc4a4, 0xc5a4, 0xc6a4, 0xc7a4, 0xc8a4, 0xc9a4, 0xcaa4, 0xcba4, 0xcca4, 0xcda4, 0xcea4, 0xcfa4, 0xd0a4, 0xd1a4, 0xd2a4, 0xd3a4, 0xd4a4, 0xd5a4, 0xd6a4, 0xd7a4, 0xd8a4, 0xd9a4, 0xdaa4, 0xdba4, 0xdca4, 0xdda4, 0xdea4, 0xdfa4, 0xe0a4, 0xe1a4, 0xe2a4, 0xe3a4, 0xe4a4, 0xe5a4, 0xe6a4, 0xe7a4, 0xe8a4, 0xe9a4, 0xeaa4, 0xeba4, 0xeca4, 0xeda4, 0xeea4, 0xefa4, 0xf0a4, 0xf1a4, 0xf2a4, 0xf3a4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x61a9, 0x62a9, 0x66a9, 0x67a9, 0x001a, 0x001a, 0xa1a5, 0xa2a5, 0xa3a5, 0xa4a5, 0xa5a5, 0xa6a5, 0xa7a5, 0xa8a5, 0xa9a5, 0xaaa5, 0xaba5, 0xaca5, 0xada5, 0xaea5, 0xafa5, 0xb0a5, 0xb1a5, 0xb2a5, 0xb3a5, 0xb4a5, 0xb5a5, 0xb6a5, 0xb7a5, 0xb8a5, 0xb9a5, 0xbaa5, 0xbba5, 0xbca5, 0xbda5, 0xbea5, 0xbfa5, 0xc0a5, 0xc1a5, 0xc2a5, 0xc3a5, 0xc4a5, 0xc5a5, 0xc6a5, 0xc7a5, 0xc8a5, 0xc9a5, 0xcaa5, 0xcba5, 0xcca5, 0xcda5, 0xcea5, 0xcfa5, 0xd0a5, 0xd1a5, 0xd2a5, 0xd3a5, 0xd4a5, 0xd5a5, 0xd6a5, 0xd7a5, 0xd8a5, 0xd9a5, 0xdaa5, 0xdba5, 0xdca5, 0xdda5, 0xdea5, 0xdfa5, 0xe0a5, 0xe1a5, 0xe2a5, 0xe3a5, 0xe4a5, 0xe5a5, 0xe6a5, 0xe7a5, 0xe8a5, 0xe9a5, 0xeaa5, 0xeba5, 0xeca5, 0xeda5, 0xeea5, 0xefa5, 0xf0a5, 0xf1a5, 0xf2a5, 0xf3a5, 0xf4a5, 0xf5a5, 0xf6a5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x60a9, 0x63a9, 0x64a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5a8, 0xc6a8, 0xc7a8, 0xc8a8, 0xc9a8, 0xcaa8, 0xcba8, 0xcca8, 0xcda8, 0xcea8, 0xcfa8, 0xd0a8, 0xd1a8, 0xd2a8, 0xd3a8, 0xd4a8, 0xd5a8, 0xd6a8, 0xd7a8, 0xd8a8, 0xd9a8, 0xdaa8, 0xdba8, 0xdca8, 0xdda8, 0xdea8, 0xdfa8, 0xe0a8, 0xe1a8, 0xe2a8, 0xe3a8, 0xe4a8, 0xe5a8, 0xe6a8, 0xe7a8, 0xe8a8, 0xe9a8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5a2, 0xe6a2, 0xe7a2, 0xe8a2, 0xe9a2, 0xeaa2, 0xeba2, 0xeca2, 0xeda2, 0xeea2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5aa9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x49a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4aa9, 0x4ba9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ca9, 0x4da9, 0x4ea9, 0x001a, 0x001a, 0x4fa9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x51a9, 0x001a, 0x001a, 0x52a9, 0x53a9, 0x001a, 0x001a, 0x54a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0x4e00[ 20902 ] = { 0xbbd2, 0xa1b6, 0x4081, 0xdfc6, 0x4181, 0x4281, 0x4381, 0xf2cd, 0xc9d5, 0xfdc8, 0xcfc9, 0xc2cf, 0xa2d8, 0xbbb2, 0xebd3, 0x4481, 0xa4d8, 0xf3b3, 0x4581, 0xa8d7, 0xd2c7, 0xa7d8, 0xc0ca, 0x4681, 0xf0c7, 0xfbb1, 0xb5d2, 0xd4b4, 0xabb6, 0xbfcb, 0xa9d8, 0x4781, 0x4881, 0x4981, 0xaab6, 0x4a81, 0xbdc1, 0xcfd1, 0x4b81, 0xa5c9, 0xadd8, 0x4c81, 0xf6b8, 0xbed1, 0xdce3, 0xd0d6, 0x4d81, 0x4e81, 0xe1b7, 0x4f81, 0xaeb4, 0x5081, 0xd9c1, 0x5181, 0xbcd8, 0x5281, 0xe8cd, 0xa4b5, 0xaace, 0xf7d6, 0x5381, 0xf6c0, 0xd9be, 0xafd8, 0x5481, 0x5581, 0x5681, 0xcbc4, 0x5781, 0xc3be, 0x5881, 0xb1d8, 0xb4c3, 0xe5d2, 0x5981, 0xaed6, 0xdace, 0xa7d5, 0xf5ba, 0xa6b7, 0xd6c0, 0x5a81, 0xb9c6, 0xd2c5, 0xc7c7, 0x5b81, 0xd4b9, 0x5c81, 0xcbb3, 0xd2d2, 0x5d81, 0x5e81, 0xbfd8, 0xc5be, 0xf2c6, 0xb2d2, 0xb0cf, 0xe7cf, 0x5f81, 0x6081, 0x6181, 0x6281, 0xe9ca, 0x6381, 0x6481, 0xc0d8, 0x6581, 0x6681, 0x6781, 0x6881, 0x6981, 0x6a81, 0xf2c2, 0xd2c2, 0x6b81, 0xe9c8, 0x6c81, 0x6d81, 0x6e81, 0x6f81, 0x7081, 0x7181, 0x7281, 0x7381, 0x7481, 0x7581, 0xacc7, 0x7681, 0x7781, 0x7881, 0x7981, 0x7a81, 0x7b81, 0x7c81, 0xcbc1, 0x7d81, 0xe8d3, 0xf9d5, 0x7e81, 0xc2ca, 0xfeb6, 0xa1d8, 0xdad3, 0xf7bf, 0x8081, 0xc6d4, 0xa5bb, 0xc1d8, 0xe5ce, 0xaebe, 0x8181, 0x8281, 0xa8d8, 0x8381, 0xc7d1, 0xa9d0, 0x8481, 0x8581, 0x8681, 0xbdd8, 0xefd9, 0xf6cd, 0xbabf, 0x8781, 0xbbbd, 0xa5ba, 0xe0d2, 0xfab2, 0xe0ba, 0xb6c4, 0x8881, 0xedcf, 0xa9be, 0xa4cd, 0xc1c1, 0x8981, 0x8a81, 0x8b81, 0xd7c7, 0xf1d9, 0x8c81, 0xf4d9, 0x8d81, 0x8e81, 0x8f81, 0x9081, 0xcbc8, 0xe9d8, 0x9181, 0x9281, 0x9381, 0xdad2, 0xb2ca, 0xcac8, 0xecd8, 0xead8, 0xc6d8, 0xf6bd, 0xcdc6, 0xf0b3, 0x9481, 0xebd8, 0xf1bd, 0xe9bd, 0x9581, 0xd4c8, 0xd3b4, 0x9681, 0x9781, 0xd8c2, 0x9881, 0xd6b2, 0xd0d7, 0xcbca, 0xfbcb, 0xccd5, 0xb6b8, 0xc9cf, 0x9981, 0x9a81, 0x9b81, 0xdad9, 0xf0d8, 0xaac7, 0x9c81, 0xeed8, 0x9d81, 0xfab4, 0xeec1, 0xd4d2, 0x9e81, 0x9f81, 0xedd8, 0xa081, 0xc7d2, 0xefd8, 0xc7c3, 0xa181, 0xa281, 0xa381, 0xf6d1, 0xa481, 0xd9d6, 0xf2d8, 0xa581, 0xf5d8, 0xfebc, 0xdbbc, 0xa681, 0xa781, 0xa881, 0xcec8, 0xa981, 0xddb7, 0xaa81, 0xc2b7, 0xab81, 0xf3c6, 0xac81, 0xad81, 0xae81, 0xaf81, 0xb081, 0xb181, 0xb281, 0xf8d8, 0xc1d2, 0xb381, 0xb481, 0xe9ce, 0xbfbc, 0xfcb7, 0xa5b7, 0xddd0, 0xb581, 0xb681, 0xb781, 0xb881, 0xb981, 0xdad6, 0xc5d3, 0xefbb, 0xe1bb, 0xf1d8, 0xba81, 0xbb81, 0xa1c9, 0xb0ce, 0xabb4, 0xbc81, 0xf3d8, 0xbd81, 0xcbc9, 0xf6d8, 0xd7c2, 0xf7d8, 0xbe81, 0xbf81, 0xb1ce, 0xf9d8, 0xc081, 0xc181, 0xc281, 0xaeb2, 0xc0b9, 0xc381, 0xa3d9, 0xc481, 0xe9b0, 0xc581, 0xe6c1, 0xc681, 0xecc9, 0xc781, 0xc5cb, 0xc881, 0xc6cb, 0xa4d9, 0xc981, 0xca81, 0xcb81, 0xcc81, 0xcd81, 0xe8b5, 0xce81, 0xcf81, 0xabb5, 0xd081, 0xd181, 0xd281, 0xd381, 0xd481, 0xd581, 0xbbce, 0xcdb5, 0xa1d7, 0xf4d7, 0xd3d3, 0xd681, 0xe5cc, 0xd781, 0xceba, 0xd881, 0xa2d9, 0xdcd9, 0xe0d3, 0xfdd8, 0xf0b7, 0xf7d7, 0xfed8, 0xfad8, 0xa1d9, 0xe3c4, 0xd981, 0xda81, 0xb6d3, 0xf4d8, 0xddd9, 0xdb81, 0xfbd8, 0xdc81, 0xe5c5, 0xdd81, 0xde81, 0xd0c0, 0xdf81, 0xe081, 0xf0d1, 0xdbb0, 0xe181, 0xe281, 0xd1bc, 0xa6d9, 0xe381, 0xa5d9, 0xe481, 0xe581, 0xe681, 0xe781, 0xacd9, 0xaed9, 0xe881, 0xabd9, 0xb9ca, 0xe981, 0xea81, 0xeb81, 0xa9d9, 0xb6d6, 0xec81, 0xed81, 0xee81, 0xdeb3, 0xa8d9, 0xef81, 0xfdc0, 0xf081, 0xccca, 0xf181, 0xaad9, 0xf281, 0xa7d9, 0xf381, 0xf481, 0xb0d9, 0xf581, 0xf681, 0xb1b6, 0xf781, 0xf881, 0xf981, 0xa9b9, 0xfa81, 0xc0d2, 0xfb81, 0xfc81, 0xc0cf, 0xfd81, 0xfe81, 0xc2c2, 0x4082, 0xc4bd, 0xecd5, 0xe0b2, 0xc8c7, 0xebbf, 0xadd9, 0x4182, 0xafd9, 0x4282, 0xeace, 0xeeba, 0x4382, 0x4482, 0x4582, 0x4682, 0x4782, 0xd6c7, 0x4882, 0x4982, 0x4a82, 0x4b82, 0x4c82, 0x4d82, 0x4e82, 0x4f82, 0x5082, 0xe3b1, 0x5182, 0x5282, 0x5382, 0xd9b4, 0xedb6, 0xb4d9, 0x5482, 0x5582, 0x5682, 0x5782, 0xa1bf, 0x5882, 0x5982, 0x5a82, 0xded9, 0xcec7, 0xfec0, 0xb8d9, 0x5b82, 0x5c82, 0x5d82, 0x5e82, 0x5f82, 0xd7cb, 0xfdb7, 0x6082, 0xb5d9, 0x6182, 0xb7d9, 0xa3b1, 0xe1d3, 0xb9d9, 0x6282, 0xc5d0, 0x6382, 0xb6d9, 0x6482, 0x6582, 0xb1d9, 0x6682, 0xb2d9, 0xa9c1, 0xb3d9, 0x6782, 0x6882, 0xf3bc, 0xded0, 0xa9b8, 0x6982, 0xe3be, 0x6a82, 0xbdd9, 0x6b82, 0x6c82, 0x6d82, 0x6e82, 0xbad9, 0x6f82, 0xb3b0, 0x7082, 0x7182, 0x7282, 0xc2d9, 0x7382, 0x7482, 0x7582, 0x7682, 0x7782, 0x7882, 0x7982, 0x7a82, 0x7b82, 0x7c82, 0x7d82, 0x7e82, 0x8082, 0xc4d9, 0xb6b1, 0x8182, 0xbfd9, 0x8282, 0x8382, 0xb9b5, 0x8482, 0xf3be, 0x8582, 0x8682, 0x8782, 0xc8cc, 0xf2ba, 0xd0d2, 0x8882, 0xc3d9, 0x8982, 0x8a82, 0xe8bd, 0x8b82, 0xabb3, 0x8c82, 0x8d82, 0x8e82, 0xc5d9, 0xebbe, 0x8f82, 0xc6d9, 0xbbd9, 0xdfc4, 0x9082, 0xbed9, 0xc1d9, 0xc0d9, 0x9182, 0x9282, 0x9382, 0x9482, 0x9582, 0x9682, 0x9782, 0x9882, 0x9982, 0x9a82, 0x9b82, 0xaed5, 0x9c82, 0xb5d6, 0x9d82, 0xe3c7, 0x9e82, 0x9f82, 0xa082, 0xa182, 0xc8d9, 0xa282, 0xa382, 0xa482, 0xd9bc, 0xcad9, 0xa582, 0xa682, 0xa782, 0xbcd9, 0xa882, 0xcbd9, 0xabc6, 0xa982, 0xaa82, 0xab82, 0xac82, 0xad82, 0xc9d9, 0xae82, 0xaf82, 0xb082, 0xb182, 0xf6d7, 0xb282, 0xa3cd, 0xb382, 0xb482, 0xb582, 0xb682, 0xb782, 0xb882, 0xb982, 0xba82, 0xa1bd, 0xbb82, 0xbc82, 0xbd82, 0xbe82, 0xbf82, 0xc082, 0xccd9, 0xc182, 0xc282, 0xc382, 0xc482, 0xc582, 0xc682, 0xc782, 0xc882, 0xc982, 0xbcc5, 0xb5cd, 0xca82, 0xcb82, 0xcc82, 0xcdd9, 0xcd82, 0xce82, 0xc7d9, 0xa5b3, 0xfebf, 0xcf82, 0xd082, 0xd182, 0xd282, 0xb5b8, 0xd382, 0xd482, 0xfcc0, 0xd582, 0xd682, 0xd782, 0xd882, 0xf8b0, 0xd982, 0xda82, 0xdb82, 0xdc82, 0xdd82, 0xde82, 0xdf82, 0xe082, 0xe182, 0xe282, 0xe382, 0xe482, 0xe582, 0xe682, 0xe782, 0xe882, 0xe982, 0xea82, 0xeb82, 0xec82, 0xed82, 0xf6b4, 0xee82, 0xced9, 0xef82, 0xcfd9, 0xa2b4, 0xd0d9, 0xf082, 0xf182, 0xdfb4, 0xf282, 0xf382, 0xf482, 0xf582, 0xf682, 0xc1b0, 0xf782, 0xf882, 0xf982, 0xfa82, 0xfb82, 0xfc82, 0xfd82, 0xd1d9, 0xb5c9, 0xfe82, 0x4083, 0x4183, 0x4283, 0x4383, 0x4483, 0x4583, 0x4683, 0x4783, 0x4883, 0x4983, 0x4a83, 0x4b83, 0x4c83, 0x4d83, 0x4e83, 0x4f83, 0x5083, 0x5183, 0xf1cf, 0x5283, 0x5383, 0x5483, 0x5583, 0x5683, 0x5783, 0xd2d9, 0x5883, 0x5983, 0x5a83, 0xc5c1, 0x5b83, 0x5c83, 0x5d83, 0x5e83, 0x5f83, 0x6083, 0x6183, 0x6283, 0x6383, 0x6483, 0x6583, 0xd6d9, 0xaec9, 0x6683, 0x6783, 0x6883, 0x6983, 0xd5d9, 0xd4d9, 0xd7d9, 0x6a83, 0x6b83, 0x6c83, 0x6d83, 0xdbcb, 0x6e83, 0xa9bd, 0x6f83, 0x7083, 0x7183, 0x7283, 0x7383, 0xa7c6, 0x7483, 0x7583, 0x7683, 0x7783, 0x7883, 0x7983, 0x7a83, 0x7b83, 0x7c83, 0x7d83, 0xd3d9, 0xd8d9, 0x7e83, 0x8083, 0x8183, 0xd9d9, 0x8283, 0x8383, 0x8483, 0x8583, 0x8683, 0x8783, 0xe5c8, 0x8883, 0x8983, 0x8a83, 0x8b83, 0x8c83, 0x8d83, 0x8e83, 0x8f83, 0x9083, 0x9183, 0x9283, 0x9383, 0x9483, 0x9583, 0xdcc0, 0x9683, 0x9783, 0x9883, 0x9983, 0x9a83, 0x9b83, 0x9c83, 0x9d83, 0x9e83, 0x9f83, 0xa083, 0xa183, 0xa283, 0xa383, 0xa483, 0xa583, 0xa683, 0xa783, 0xa883, 0xa983, 0xaa83, 0xab83, 0xac83, 0xad83, 0xae83, 0xaf83, 0xb083, 0xb183, 0xb283, 0xf9b6, 0xa3d8, 0xcad4, 0xb383, 0xaad4, 0xd6d0, 0xe4b3, 0xd7d5, 0xb483, 0xc8cf, 0xe2b9, 0xb583, 0xcbbf, 0xb683, 0xe2c3, 0xb783, 0xb883, 0xb983, 0xd2b6, 0xba83, 0xbb83, 0xc3cd, 0xeed9, 0xf0d9, 0xbc83, 0xbd83, 0xbe83, 0xb3b5, 0xbf83, 0xb5b6, 0xc083, 0xc183, 0xc283, 0xc383, 0xc483, 0xa4be, 0xc583, 0xc683, 0xebc8, 0xc783, 0xc883, 0xabc8, 0xc983, 0xca83, 0xcbb0, 0xabb9, 0xf9c1, 0xe2d9, 0xcb83, 0xbcc0, 0xb2b9, 0xcc83, 0xd8b9, 0xcbd0, 0xf8b1, 0xe4c6, 0xdfbe, 0xe4b5, 0xc8d7, 0xcd83, 0xf8d1, 0xe6bc, 0xdeca, 0xce83, 0xcf83, 0xbdbc, 0xe6d9, 0xe7d8, 0xd083, 0xd183, 0xdac4, 0xd283, 0xd383, 0xd4b8, 0xbdc8, 0xd483, 0xd583, 0xe1b2, 0xd9d4, 0xd683, 0xd783, 0xd883, 0xd983, 0xb0c3, 0xda83, 0xdb83, 0xe1c3, 0xa2da, 0xdfc8, 0xdc83, 0xb4d0, 0xdd83, 0xfcbe, 0xa9c5, 0xde83, 0xdf83, 0xe083, 0xdab9, 0xe183, 0xa3da, 0xe283, 0xa9d4, 0xa4da, 0xe383, 0xe483, 0xe583, 0xe683, 0xe783, 0xfbd9, 0xacb6, 0xe883, 0xe983, 0xebb7, 0xf9b1, 0xfcd9, 0xe5b3, 0xf6be, 0xea83, 0xf6bf, 0xb1d2, 0xe4c0, 0xeb83, 0xec83, 0xed83, 0xb3b6, 0xfed9, 0xfdd9, 0xee83, 0xef83, 0xbbbe, 0xf083, 0xf183, 0xf283, 0xe0c6, 0xf383, 0xbcd7, 0xa1da, 0xf483, 0xb9c1, 0xf583, 0xf2b5, 0xe8c1, 0xf683, 0xf783, 0xf5bc, 0xf883, 0xd5b4, 0xf983, 0xfa83, 0xfb83, 0xfc83, 0xfd83, 0xfe83, 0x4084, 0x4184, 0x4284, 0xddc1, 0x4384, 0xfdc4, 0x4484, 0x4584, 0xb8bc, 0xb2b7, 0x4684, 0x4784, 0xefb7, 0x4884, 0x4984, 0x4a84, 0x4b84, 0x4c84, 0x4d84, 0xecd9, 0x4e84, 0xbec6, 0x4f84, 0xadbf, 0xcbbb, 0x5084, 0x5184, 0xcab5, 0x5284, 0xc9db, 0xd7d0, 0x5384, 0xb9cd, 0xbcb0, 0xf6b3, 0xf7bb, 0xcadb, 0xafba, 0x5484, 0xe4d4, 0xb6b5, 0xf3b5, 0xd6d8, 0xd0c8, 0x5584, 0x5684, 0xd6b7, 0xd0c7, 0xd7d8, 0x5784, 0xafbf, 0x5884, 0x5984, 0xbbdb, 0xd8d8, 0x5a84, 0x5b84, 0xccd0, 0xaebb, 0x5c84, 0x5d84, 0x5e84, 0xbeeb, 0xd0c1, 0xf5c1, 0xf2d4, 0xd5b8, 0xb4b4, 0x5f84, 0xf5b3, 0x6084, 0x6184, 0xbec9, 0x6284, 0x6384, 0x6484, 0xd0c5, 0x6584, 0x6684, 0x6784, 0xd9c5, 0xfbc0, 0x6884, 0xf0b1, 0x6984, 0xd9d8, 0xceb9, 0x6a84, 0xbdb5, 0x6b84, 0x6c84, 0xdad8, 0x6d84, 0x6e84, 0xc6d6, 0xa2cb, 0xafc8, 0xb2c9, 0xccb4, 0xccbf, 0x6f84, 0xf4b9, 0x7084, 0xdbd8, 0xdcd8, 0xe7b6, 0xc1bc, 0xeacc, 0x7184, 0x7284, 0x7384, 0x7484, 0x7584, 0x7684, 0xf7cf, 0x7784, 0xddd8, 0xb0c7, 0x7884, 0x7984, 0xd0b9, 0xa3bd, 0x7a84, 0x7b84, 0xdecc, 0x7c84, 0xcac6, 0x7d84, 0x7e84, 0x8084, 0x8184, 0x8284, 0xe0d8, 0x8384, 0xded8, 0x8484, 0x8584, 0xdfd8, 0x8684, 0x8784, 0x8884, 0xfeb0, 0x8984, 0xe7be, 0x8a84, 0xa3ca, 0xf4bc, 0x8b84, 0x8c84, 0x8d84, 0x8e84, 0xb1b8, 0x8f84, 0x9084, 0xeeb8, 0x9184, 0x9284, 0x9384, 0x9484, 0x9584, 0x9684, 0x9784, 0x9884, 0x9984, 0x9a84, 0xe2d8, 0x9b84, 0xcbbd, 0x9c84, 0xe4d8, 0xe3d8, 0x9d84, 0x9e84, 0x9f84, 0xa084, 0xa184, 0xfcc5, 0xa284, 0xa384, 0xa484, 0xa584, 0xa684, 0xa784, 0xa884, 0xe5d8, 0xa984, 0xaa84, 0xe6d8, 0xab84, 0xac84, 0xad84, 0xae84, 0xaf84, 0xb084, 0xb184, 0xa6c1, 0xb284, 0xb0c8, 0xecb0, 0xa6b9, 0xd3bc, 0xf1ce, 0xbddb, 0xd3c1, 0xb384, 0xb484, 0xb584, 0xb684, 0xafb6, 0xfad6, 0xacc5, 0xd9bd, 0xbedb, 0xbfdb, 0xb784, 0xb884, 0xb984, 0xf8c0, 0xa2be, 0xcdc0, 0xba84, 0xbb84, 0xbc84, 0xbd84, 0xbe84, 0xbf84, 0xc084, 0xc184, 0xc284, 0xc384, 0xc0db, 0xc6ca, 0xc484, 0xc584, 0xc684, 0xaab2, 0xc784, 0xc884, 0xc984, 0xc2d3, 0xca84, 0xe3c3, 0xcb84, 0xabd1, 0xcc84, 0xcd84, 0xce84, 0xcf84, 0xc2db, 0xd084, 0xd5c0, 0xd184, 0xd284, 0xd384, 0xc3db, 0xd484, 0xb1bf, 0xd584, 0xd684, 0xd784, 0xd884, 0xd984, 0xda84, 0xbcc4, 0xdb84, 0xdc84, 0xdd84, 0xde84, 0xdac7, 0xdf84, 0xe084, 0xe184, 0xe284, 0xe384, 0xe484, 0xe584, 0xe684, 0xe784, 0xe884, 0xe984, 0xc4db, 0xea84, 0xeb84, 0xec84, 0xed84, 0xee84, 0xef84, 0xf084, 0xf184, 0xe8d9, 0xd7c9, 0xf284, 0xf384, 0xf484, 0xb4b9, 0xf0ce, 0xc8d4, 0xf584, 0xf684, 0xf784, 0xf884, 0xfcb0, 0xd2b4, 0xf984, 0xd9d0, 0xfa84, 0xfb84, 0xfc84, 0xfd84, 0xe9d9, 0xfe84, 0xcbde, 0xebd9, 0x4085, 0x4185, 0x4285, 0x4385, 0xb0d8, 0xafbb, 0xb1b1, 0x4485, 0xd7b3, 0xced8, 0x4585, 0x4685, 0xd1d4, 0x4785, 0x4885, 0xb3bd, 0xefbf, 0x4985, 0xbbcf, 0x4a85, 0x4b85, 0xd0d8, 0x4c85, 0x4d85, 0x4e85, 0xcbb7, 0x4f85, 0x5085, 0x5185, 0xd1d8, 0x5285, 0x5385, 0x5485, 0x5585, 0x5685, 0x5785, 0x5885, 0x5985, 0x5a85, 0x5b85, 0xa5c6, 0xf8c7, 0xbdd2, 0x5c85, 0x5d85, 0xd2d8, 0xe4c4, 0x5e85, 0xaeca, 0x5f85, 0xa7c7, 0x6085, 0xa6d8, 0x6185, 0xfdc9, 0xe7ce, 0xdcbb, 0xebb0, 0x6285, 0x6385, 0x6485, 0xaabb, 0xadd0, 0x6585, 0xb0b1, 0xe4d7, 0xbfd7, 0x6685, 0xa5b5, 0xf4c2, 0xcfc4, 0x6785, 0x6885, 0xa9b2, 0x6985, 0xb7b2, 0x6a85, 0xe5b1, 0xb2df, 0xbcd5, 0xa8bf, 0xacc2, 0xd5d8, 0xb1c2, 0x6b85, 0xd4d8, 0xd4ce, 0x6c85, 0xe0da, 0x6d85, 0xc0ce, 0x6e85, 0x6f85, 0xb4d8, 0xaec3, 0xa1d3, 0xa3ce, 0x7085, 0xb4bc, 0xb4c8, 0xd1c2, 0x7185, 0xedbe, 0xb6d0, 0x7285, 0xe1da, 0x7385, 0x7485, 0x7585, 0x7685, 0xe4c7, 0x7785, 0x7885, 0xa7b3, 0x7985, 0xf2b6, 0xfccc, 0xfac0, 0x7a85, 0x7b85, 0xf7c0, 0x7c85, 0xb9d1, 0xe1d1, 0xc7d8, 0x7d85, 0x7e85, 0x8085, 0x8185, 0x8285, 0x8385, 0x8485, 0xdeb2, 0x8585, 0x8685, 0xe5c0, 0x8785, 0xf1ba, 0x8885, 0x8985, 0xc8d8, 0x8a85, 0xadd4, 0x8b85, 0x8c85, 0xe1cf, 0xc9d8, 0x8d85, 0xcad8, 0xc3cf, 0x8e85, 0xf8b3, 0xc7be, 0x8f85, 0x9085, 0x9185, 0x9285, 0xcbd8, 0x9385, 0x9485, 0x9585, 0x9685, 0x9785, 0x9885, 0x9985, 0xccdb, 0x9a85, 0x9b85, 0x9c85, 0x9d85, 0xa5c8, 0x9e85, 0x9f85, 0xa085, 0xd8cf, 0xa185, 0xfec8, 0xceb2, 0xa285, 0xa385, 0xa485, 0xa585, 0xa685, 0xd6d3, 0xe6b2, 0xb0bc, 0xd1d3, 0xabcb, 0xb4b7, 0xa785, 0xa885, 0xa985, 0xa2b7, 0xaa85, 0xab85, 0xe5ca, 0xac85, 0xa1c8, 0xdcca, 0xe4b1, 0xf0d0, 0xad85, 0xd1c5, 0xae85, 0xaf85, 0xb085, 0xc5db, 0xfeb5, 0xb185, 0xb285, 0xdabf, 0xc5b9, 0xe4be, 0xedc1, 0xb385, 0xb6df, 0xb5df, 0xbbd6, 0xd0bd, 0xd9d5, 0xc8b0, 0xa3b6, 0xc9bf, 0xa8cc, 0xb3df, 0xb7ca, 0xd2d3, 0xb485, 0xcfd8, 0xb6d2, 0xc5ba, 0xbecb, 0xbecc, 0xb585, 0xb7df, 0xf0b5, 0xb4df, 0xb685, 0xb785, 0xb885, 0xf5d3, 0xb985, 0xd4b3, 0xf7b8, 0xba85, 0xbadf, 0xbb85, 0xcfba, 0xaabc, 0xf5b5, 0xbc85, 0xaccd, 0xfbc3, 0xf3ba, 0xf4c0, 0xc2cd, 0xf2cf, 0xb8df, 0xc5cf, 0xbd85, 0xc0c2, 0xb9df, 0xf0c2, 0xbe85, 0xbf85, 0xc085, 0xfdbe, 0xc185, 0xdfc1, 0xcccd, 0xf7d2, 0xcdb7, 0xc1df, 0xc285, 0xc4df, 0xc385, 0xc485, 0xf1b7, 0xc9b0, 0xd6b6, 0xd4b7, 0xc585, 0xacba, 0xfdcc, 0xd4bf, 0xb1cb, 0xf4c6, 0xc685, 0xa8d6, 0xc5df, 0xc785, 0xe2ce, 0xb3b3, 0xc885, 0xc985, 0xfcce, 0xb5b4, 0xca85, 0xc7ce, 0xf0ba, 0xcb85, 0xe1ce, 0xcc85, 0xbdd1, 0xcd85, 0xce85, 0xc0df, 0xcf85, 0xd085, 0xf4b4, 0xd185, 0xcab3, 0xd285, 0xe6b8, 0xbbdf, 0xd385, 0xd485, 0xd585, 0xd685, 0xc5c4, 0xd785, 0xbcdf, 0xbddf, 0xbedf, 0xbbc5, 0xbfdf, 0xc2df, 0xb1d4, 0xc3df, 0xd885, 0xbac7, 0xd8ce, 0xd985, 0xda85, 0xdb85, 0xdc85, 0xdd85, 0xd8c4, 0xde85, 0xcadf, 0xdf85, 0xcfdf, 0xe085, 0xdcd6, 0xe185, 0xe285, 0xe385, 0xe485, 0xe585, 0xe685, 0xe785, 0xe885, 0xc9df, 0xdadf, 0xb6ce, 0xe985, 0xc7ba, 0xcedf, 0xc8df, 0xdec5, 0xea85, 0xeb85, 0xebc9, 0xf4ba, 0xfcc3, 0xec85, 0xed85, 0xd7be, 0xee85, 0xc6df, 0xef85, 0xcddf, 0xf085, 0xd8c5, 0xf185, 0xf285, 0xf385, 0xf485, 0xa6d5, 0xcdba, 0xf585, 0xccbe, 0xbdd3, 0xc0b8, 0xf685, 0xe4d6, 0xf785, 0xc7df, 0xbeb9, 0xa7bf, 0xf885, 0xf985, 0xfcc1, 0xcbdf, 0xccdf, 0xfa85, 0xd0df, 0xfb85, 0xfc85, 0xfd85, 0xfe85, 0x4086, 0xdbdf, 0xe5df, 0x4186, 0xd7df, 0xd6df, 0xc9d7, 0xe3df, 0xe4df, 0xebe5, 0xa7d2, 0xd2df, 0x4286, 0xa9bf, 0x4386, 0xdbd4, 0x4486, 0xc8bf, 0xd4df, 0x4586, 0x4686, 0x4786, 0xcccf, 0x4886, 0x4986, 0xdddf, 0x4a86, 0xcad1, 0x4b86, 0xdedf, 0xa7b0, 0xb7c6, 0xd3df, 0x4c86, 0xe5ba, 0x4d86, 0xdfb6, 0xdbcd, 0xfeb9, 0xd5d4, 0x4e86, 0x4f86, 0xdfdf, 0xeccf, 0xa5b0, 0xe7df, 0xd1df, 0xc6d1, 0xd5df, 0xd8df, 0xd9df, 0xdcdf, 0x5086, 0xa9bb, 0x5186, 0xe0df, 0xe1df, 0x5286, 0xe2df, 0xe6df, 0xe8df, 0xb4d3, 0x5386, 0x5486, 0x5586, 0x5686, 0x5786, 0xe7b8, 0xb6c5, 0xeadf, 0xdac9, 0xa8c1, 0xc4c4, 0x5886, 0x5986, 0xdebf, 0xf8cf, 0x5a86, 0x5b86, 0x5c86, 0xdcd5, 0xeedf, 0x5d86, 0x5e86, 0x5f86, 0x6086, 0x6186, 0x6286, 0xb8b2, 0x6386, 0xdfba, 0xecdf, 0x6486, 0xc1db, 0x6586, 0xe4d1, 0x6686, 0x6786, 0x6886, 0x6986, 0xf4cb, 0xbdb4, 0x6a86, 0xa6b0, 0x6b86, 0x6c86, 0x6d86, 0x6e86, 0x6f86, 0xf1df, 0xc6cc, 0xf2df, 0x7086, 0x7186, 0xeddf, 0x7286, 0x7386, 0x7486, 0x7586, 0x7686, 0x7786, 0xe9df, 0x7886, 0x7986, 0x7a86, 0x7b86, 0xebdf, 0x7c86, 0xefdf, 0xf0df, 0xbdbb, 0x7d86, 0x7e86, 0xf3df, 0x8086, 0x8186, 0xf4df, 0x8286, 0xa3bb, 0x8386, 0xdbca, 0xa8ce, 0xa7e0, 0xaab3, 0x8486, 0xa6e0, 0x8586, 0x8686, 0x8786, 0xa1e0, 0x8886, 0x8986, 0x8a86, 0x8b86, 0xfedf, 0x8c86, 0xd9cd, 0xfcdf, 0x8d86, 0xfadf, 0x8e86, 0xd0bf, 0xc4d7, 0x8f86, 0xccc9, 0x9086, 0x9186, 0xf8df, 0xa1b0, 0x9286, 0x9386, 0x9486, 0x9586, 0x9686, 0xfddf, 0x9786, 0x9886, 0x9986, 0x9a86, 0xfbdf, 0xa2e0, 0x9b86, 0x9c86, 0x9d86, 0x9e86, 0x9f86, 0xa8e0, 0xa086, 0xa186, 0xa286, 0xa386, 0xc8b7, 0xa486, 0xa586, 0xa1c6, 0xb6c9, 0xb2c0, 0xf5df, 0xa686, 0xa786, 0xbec5, 0xa886, 0xc4d8, 0xf9df, 0xf6c4, 0xa986, 0xaa86, 0xab86, 0xac86, 0xad86, 0xae86, 0xa3e0, 0xa4e0, 0xa5e0, 0xa5d0, 0xaf86, 0xb086, 0xb4e0, 0xe4cc, 0xb186, 0xb1e0, 0xb286, 0xa6bf, 0xafe0, 0xb9ce, 0xabe0, 0xc6c9, 0xb386, 0xb486, 0xaec0, 0xaee0, 0xedba, 0xb0ba, 0xa9e0, 0xb586, 0xb686, 0xb786, 0xf6df, 0xb886, 0xb3e0, 0xb986, 0xba86, 0xb8e0, 0xbb86, 0xbc86, 0xbd86, 0xadb4, 0xb9e0, 0xbe86, 0xbf86, 0xb2cf, 0xc8ba, 0xc086, 0xb0e0, 0xc186, 0xc286, 0xc386, 0xc486, 0xc586, 0xc686, 0xc786, 0xfad0, 0xc886, 0xc986, 0xca86, 0xcb86, 0xcc86, 0xcd86, 0xce86, 0xcf86, 0xd086, 0xace0, 0xd186, 0xfbd4, 0xd286, 0xf7df, 0xd386, 0xe7c5, 0xd486, 0xade0, 0xd586, 0xf7d3, 0xd686, 0xb6e0, 0xb7e0, 0xd786, 0xd886, 0xd986, 0xda86, 0xdb86, 0xc4e0, 0xe1d0, 0xdc86, 0xdd86, 0xde86, 0xbce0, 0xdf86, 0xe086, 0xc9e0, 0xcae0, 0xe186, 0xe286, 0xe386, 0xbee0, 0xaae0, 0xa4c9, 0xc1e0, 0xe486, 0xb2e0, 0xe586, 0xe686, 0xe786, 0xe886, 0xe986, 0xc8ca, 0xc3e0, 0xea86, 0xb5e0, 0xeb86, 0xcbce, 0xec86, 0xc3cb, 0xcde0, 0xc6e0, 0xc2e0, 0xed86, 0xcbe0, 0xee86, 0xbae0, 0xbfe0, 0xc0e0, 0xef86, 0xf086, 0xc5e0, 0xf186, 0xf286, 0xc7e0, 0xc8e0, 0xf386, 0xcce0, 0xf486, 0xbbe0, 0xf586, 0xf686, 0xf786, 0xf886, 0xf986, 0xd4cb, 0xd5e0, 0xfa86, 0xd6e0, 0xd2e0, 0xfb86, 0xfc86, 0xfd86, 0xfe86, 0x4087, 0x4187, 0xd0e0, 0xcebc, 0x4287, 0x4387, 0xd1e0, 0x4487, 0xc2b8, 0xc5d8, 0x4587, 0x4687, 0x4787, 0x4887, 0x4987, 0x4a87, 0x4b87, 0x4c87, 0xead0, 0x4d87, 0x4e87, 0xefc2, 0x4f87, 0x5087, 0xcfe0, 0xbde0, 0x5187, 0x5287, 0x5387, 0xd4e0, 0xd3e0, 0x5487, 0x5587, 0xd7e0, 0x5687, 0x5787, 0x5887, 0x5987, 0xdce0, 0xd8e0, 0x5a87, 0x5b87, 0x5c87, 0xf6d6, 0xb0b3, 0x5d87, 0xecd7, 0x5e87, 0xbbcb, 0x5f87, 0x6087, 0xdae0, 0x6187, 0xfbce, 0x6287, 0x6387, 0x6487, 0xd9ba, 0x6587, 0x6687, 0x6787, 0x6887, 0x6987, 0x6a87, 0x6b87, 0x6c87, 0x6d87, 0x6e87, 0x6f87, 0x7087, 0xe1e0, 0xdde0, 0xadd2, 0x7187, 0x7287, 0x7387, 0x7487, 0x7587, 0xe2e0, 0x7687, 0x7787, 0xdbe0, 0xd9e0, 0xdfe0, 0x7887, 0x7987, 0xe0e0, 0x7a87, 0x7b87, 0x7c87, 0x7d87, 0x7e87, 0xdee0, 0x8087, 0xe4e0, 0x8187, 0x8287, 0x8387, 0xf7c6, 0xacd8, 0xebd4, 0xe6e0, 0xc9ca, 0x8487, 0x8587, 0x8687, 0x8787, 0xe5e0, 0x8887, 0x8987, 0x8a87, 0x8b87, 0xc1b8, 0x8c87, 0x8d87, 0x8e87, 0x8f87, 0xe7e0, 0xe8e0, 0x9087, 0x9187, 0x9287, 0x9387, 0x9487, 0x9587, 0x9687, 0x9787, 0xe9e0, 0xe3e0, 0x9887, 0x9987, 0x9a87, 0x9b87, 0x9c87, 0x9d87, 0x9e87, 0xbfba, 0xe7cc, 0x9f87, 0xa087, 0xa187, 0xeae0, 0xa287, 0xa387, 0xa487, 0xa587, 0xa687, 0xa787, 0xa887, 0xa987, 0xaa87, 0xab87, 0xac87, 0xad87, 0xae87, 0xaf87, 0xb087, 0xf9cf, 0xb187, 0xb287, 0xb387, 0xb487, 0xb587, 0xb687, 0xb787, 0xb887, 0xb987, 0xba87, 0xbb87, 0xebe0, 0xbc87, 0xbd87, 0xbe87, 0xbf87, 0xc087, 0xc187, 0xc287, 0xc2c8, 0xc387, 0xc487, 0xc587, 0xc687, 0xc0bd, 0xc787, 0xc887, 0xc987, 0xca87, 0xcb87, 0xcc87, 0xcd87, 0xce87, 0xcf87, 0xd087, 0xd187, 0xd287, 0xd387, 0xd2c4, 0xd487, 0xd587, 0xd687, 0xd787, 0xd887, 0xd987, 0xda87, 0xdb87, 0xdc87, 0xece0, 0xdd87, 0xde87, 0xede0, 0xdf87, 0xe087, 0xf4c7, 0xc4cb, 0xe187, 0xeee0, 0xd8bb, 0xb6d8, 0xf2d2, 0xefe0, 0xc5cd, 0xe287, 0xdab6, 0xe387, 0xe487, 0xe587, 0xe687, 0xe787, 0xe887, 0xf1e0, 0xe987, 0xb0d4, 0xea87, 0xeb87, 0xa7c0, 0xd1b4, 0xec87, 0xed87, 0xa7ce, 0xf0e0, 0xee87, 0xef87, 0xf087, 0xf2e0, 0xccb9, 0xf187, 0xf287, 0xfab9, 0xbccd, 0xf3e0, 0xf387, 0xf487, 0xf587, 0xd4c6, 0xf4e0, 0xf687, 0xb2d4, 0xf787, 0xa6c8, 0xf6e0, 0xf5e0, 0xf887, 0xf987, 0xfa87, 0xfb87, 0xfc87, 0xfd87, 0xfe87, 0x4088, 0x4188, 0x4288, 0x4388, 0x4488, 0x4588, 0x4688, 0x4788, 0x4888, 0x4988, 0xf7e0, 0x4a88, 0x4b88, 0xc1cd, 0x4c88, 0x4d88, 0x4e88, 0xa5ca, 0x4f88, 0x5088, 0x5188, 0x5288, 0xdad4, 0xd7db, 0xd9db, 0x5388, 0xd8db, 0xe7b9, 0xdcdb, 0xdddb, 0xd8b5, 0x5488, 0x5588, 0xdadb, 0x5688, 0x5788, 0x5888, 0x5988, 0x5a88, 0xdbdb, 0xa1b3, 0xdfdb, 0x5b88, 0x5c88, 0xf8bb, 0x5d88, 0xb7d6, 0x5e88, 0xe0db, 0x5f88, 0x6088, 0x6188, 0x6288, 0xf9be, 0x6388, 0x6488, 0xbbb7, 0x6588, 0xd0db, 0xaecc, 0xb2bf, 0xb5bb, 0xf8d7, 0xd3bf, 0x6688, 0x6788, 0x6888, 0x6988, 0x6a88, 0xe9bf, 0x6b88, 0x6c88, 0xe1bc, 0xb3cc, 0xdedb, 0xd3b0, 0xebce, 0xd8b7, 0xb9d7, 0xc2c6, 0x6d88, 0x6e88, 0xa4c0, 0x6f88, 0xb9cc, 0x7088, 0xe7db, 0xe1db, 0xbac6, 0xe3db, 0x7188, 0xe8db, 0x7288, 0xf7c5, 0x7388, 0x7488, 0x7588, 0xeadb, 0x7688, 0x7788, 0xe9db, 0xc0bf, 0x7888, 0x7988, 0x7a88, 0xe6db, 0xe5db, 0x7b88, 0x7c88, 0x7d88, 0x7e88, 0x8088, 0xb9b4, 0xacc0, 0xa2c2, 0xe2db, 0xe4db, 0x8188, 0x8288, 0x8388, 0x8488, 0xcdd0, 0xeddb, 0x8588, 0x8688, 0x8788, 0x8888, 0x8988, 0xddc0, 0xf2db, 0x8a88, 0x8b88, 0x8c88, 0x8d88, 0x8e88, 0x8f88, 0x9088, 0xe2b6, 0x9188, 0x9288, 0x9388, 0x9488, 0xf3db, 0xd2db, 0xb8b9, 0xabd4, 0xecdb, 0x9588, 0xd1bf, 0xf0db, 0x9688, 0xd1db, 0x9788, 0xe6b5, 0x9888, 0xebdb, 0xe5bf, 0x9988, 0x9a88, 0x9b88, 0xeedb, 0x9c88, 0xf1db, 0x9d88, 0x9e88, 0x9f88, 0xf9db, 0xa088, 0xa188, 0xa288, 0xa388, 0xa488, 0xa588, 0xa688, 0xa788, 0xa888, 0xa1b9, 0xa3b0, 0xa988, 0xaa88, 0xab88, 0xac88, 0xad88, 0xae88, 0xaf88, 0xf1c2, 0xb088, 0xb188, 0xc7b3, 0xefdb, 0xb288, 0xb388, 0xf8db, 0xb488, 0xd2c6, 0xf4db, 0xb588, 0xb688, 0xf5db, 0xf7db, 0xf6db, 0xb788, 0xb888, 0xfedb, 0xb988, 0xf2d3, 0xbab2, 0xba88, 0xbb88, 0xbc88, 0xfddb, 0xbd88, 0xbe88, 0xbf88, 0xc088, 0xc188, 0xc288, 0xc388, 0xc488, 0xa4dc, 0xc588, 0xfbdb, 0xc688, 0xc788, 0xc888, 0xc988, 0xfadb, 0xca88, 0xcb88, 0xcc88, 0xfcdb, 0xe0c5, 0xf9bb, 0xcd88, 0xce88, 0xa3dc, 0xcf88, 0xd088, 0xa5dc, 0xd188, 0xc3cc, 0xd288, 0xd388, 0xd488, 0xd1b6, 0xc0dd, 0xd588, 0xd688, 0xd788, 0xa1dc, 0xd888, 0xa2dc, 0xd988, 0xda88, 0xdb88, 0xb5c7, 0xdc88, 0xdd88, 0xde88, 0xe9b6, 0xdf88, 0xe088, 0xe188, 0xa7dc, 0xe288, 0xe388, 0xe488, 0xe588, 0xa6dc, 0xe688, 0xa9dc, 0xa4b1, 0xe788, 0xe888, 0xccb5, 0xe988, 0xea88, 0xeb88, 0xec88, 0xed88, 0xb0bf, 0xee88, 0xef88, 0xf088, 0xf188, 0xf288, 0xdfd1, 0xf388, 0xf488, 0xf588, 0xf688, 0xc2b6, 0xf788, 0xf888, 0xf988, 0xfa88, 0xfb88, 0xfc88, 0xfd88, 0xfe88, 0x4089, 0x4189, 0x4289, 0x4389, 0x4489, 0x4589, 0xa8dc, 0x4689, 0x4789, 0x4889, 0x4989, 0x4a89, 0x4b89, 0x4c89, 0xfacb, 0xf3eb, 0x4d89, 0x4e89, 0x4f89, 0xdccb, 0x5089, 0x5189, 0xfecb, 0x5289, 0x5389, 0x5489, 0xc1cc, 0x5589, 0x5689, 0x5789, 0x5889, 0x5989, 0xfbc8, 0x5a89, 0x5b89, 0x5c89, 0x5d89, 0x5e89, 0x5f89, 0xaadc, 0x6089, 0x6189, 0x6289, 0x6389, 0x6489, 0xeecc, 0xabdc, 0x6589, 0x6689, 0x6789, 0x6889, 0x6989, 0x6a89, 0x6b89, 0x6c89, 0x6d89, 0x6e89, 0x6f89, 0x7089, 0x7189, 0x7289, 0x7389, 0x7489, 0x7589, 0xd3db, 0x7689, 0xafdc, 0xacdc, 0x7789, 0xb3be, 0x7889, 0xfbca, 0x7989, 0x7a89, 0x7b89, 0xaddc, 0x7c89, 0x7d89, 0x7e89, 0x8089, 0x8189, 0x8289, 0x8389, 0x8489, 0xcac9, 0xb9c4, 0x8589, 0x8689, 0x8789, 0x8889, 0x8989, 0xbdc7, 0xaedc, 0x8a89, 0x8b89, 0x8c89, 0xf6d4, 0xe6d0, 0x8d89, 0x8e89, 0x8f89, 0x9089, 0x9189, 0x9289, 0x9389, 0x9489, 0xabc4, 0xd5b6, 0x9589, 0x9689, 0x9789, 0x9889, 0x9989, 0x9a89, 0x9b89, 0x9c89, 0x9d89, 0x9e89, 0x9f89, 0xa089, 0xa189, 0xa289, 0xa389, 0xa489, 0xa589, 0xa689, 0xd4db, 0xa789, 0xa889, 0xa989, 0xaa89, 0xdab1, 0xab89, 0xac89, 0xad89, 0xd5db, 0xae89, 0xaf89, 0xb089, 0xb189, 0xb289, 0xb389, 0xb489, 0xb589, 0xb689, 0xb789, 0xb889, 0xd6db, 0xb989, 0xba89, 0xbb89, 0xbeba, 0xbc89, 0xbd89, 0xbe89, 0xbf89, 0xc089, 0xc189, 0xc289, 0xc389, 0xc489, 0xc589, 0xc689, 0xc789, 0xc889, 0xc989, 0xc0c8, 0xca89, 0xcb89, 0xcc89, 0xcd89, 0xce89, 0xcf89, 0xbfca, 0xc9c8, 0xd089, 0xb3d7, 0xd189, 0xf9c9, 0xd289, 0xd389, 0xc7bf, 0xd489, 0xd589, 0xf8ba, 0xd689, 0xd789, 0xbcd2, 0xd889, 0xd989, 0xda89, 0xdb89, 0xdc89, 0xdd89, 0xde89, 0xdf89, 0xbae2, 0xe089, 0xa6b4, 0xe189, 0xe289, 0xb8b1, 0xe389, 0xe489, 0xe589, 0xe689, 0xe789, 0xb4b8, 0xe889, 0xc4cf, 0xe989, 0xea89, 0xeb89, 0xec89, 0xe7d9, 0xa6cf, 0xe2cd, 0xed89, 0xee89, 0xedd9, 0xe0b6, 0xef89, 0xb9d2, 0xf089, 0xf189, 0xbbb9, 0xf289, 0xf389, 0xf489, 0xf589, 0xb9e2, 0xb7e2, 0xf689, 0xf3b4, 0xf789, 0xeccc, 0xabcc, 0xf2b7, 0xf889, 0xb2d8, 0xebd1, 0xbbba, 0xf989, 0xa7ca, 0xfa89, 0xfb89, 0xb7cd, 0xfc89, 0xfd89, 0xc4d2, 0xe4bf, 0xd0bc, 0xe1b6, 0xfe89, 0xc5de, 0x408a, 0x418a, 0x428a, 0x438a, 0xc6de, 0xbcdb, 0x448a, 0xd9d1, 0x458a, 0x468a, 0xe6c6, 0xcec4, 0xeeb7, 0x478a, 0xdcb7, 0x488a, 0x498a, 0xfcbf, 0xe0d7, 0x4a8a, 0xf5c6, 0x4b8a, 0x4c8a, 0xbcb1, 0xc8de, 0xb1bd, 0xd7cc, 0xcade, 0x4d8a, 0xc9de, 0x4e8a, 0x4f8a, 0x508a, 0x518a, 0x528a, 0xecb5, 0x538a, 0xddc9, 0x548a, 0x558a, 0xc2b0, 0x568a, 0x578a, 0x588a, 0x598a, 0x5a8a, 0x5b8a, 0x5c8a, 0x5d8a, 0x5e8a, 0x5f8a, 0x608a, 0x618a, 0x628a, 0xaec5, 0xabc5, 0x638a, 0xccc4, 0x648a, 0xe9bc, 0xfdcb, 0x658a, 0x668a, 0x678a, 0xc3ba, 0x688a, 0x698a, 0x6a8a, 0xf9e5, 0xe7c8, 0xfae5, 0xfdcd, 0x6b8a, 0xb1d7, 0xbeb8, 0xe8c2, 0x6c8a, 0xd1c8, 0x6d8a, 0x6e8a, 0xfbe5, 0x6f8a, 0x708a, 0x718a, 0x728a, 0xcab6, 0xcbbc, 0x738a, 0x748a, 0xfdd1, 0xa1e6, 0x758a, 0xeec3, 0x768a, 0x778a, 0x788a, 0x798a, 0xa4e6, 0x7a8a, 0x7b8a, 0x7c8a, 0x7d8a, 0xfee5, 0xa5e6, 0xd7cd, 0x7e8a, 0x808a, 0xc1b7, 0xfce5, 0xfde5, 0xa3e6, 0x818a, 0x828a, 0xddc4, 0xa8e6, 0x838a, 0x848a, 0xa7e6, 0x858a, 0x868a, 0x878a, 0x888a, 0x898a, 0x8a8a, 0xc3c3, 0x8b8a, 0xdec6, 0x8c8a, 0x8d8a, 0xaae6, 0x8e8a, 0x8f8a, 0x908a, 0x918a, 0x928a, 0x938a, 0x948a, 0xb7c4, 0x958a, 0x968a, 0x978a, 0xa2e6, 0xbcca, 0x988a, 0x998a, 0x9a8a, 0x9b8a, 0xe3bd, 0xc3b9, 0xa6e6, 0xd5d0, 0xafce, 0x9c8a, 0x9d8a, 0xa9e6, 0xb0e6, 0x9e8a, 0xa6d2, 0x9f8a, 0xaabd, 0xade6, 0xa08a, 0xa18a, 0xa28a, 0xa38a, 0xa48a, 0xafe6, 0xa58a, 0xd1c0, 0xa68a, 0xa78a, 0xccd2, 0xa88a, 0xa98a, 0xaa8a, 0xa7bc, 0xab8a, 0xac8a, 0xad8a, 0xae8a, 0xaf8a, 0xb08a, 0xb18a, 0xb28a, 0xb38a, 0xb48a, 0xb58a, 0xb68a, 0xb1e6, 0xb78a, 0xf6d2, 0xb88a, 0xb98a, 0xba8a, 0xcbd7, 0xbb8a, 0xfecd, 0xbc8a, 0xdecd, 0xa6c2, 0xabe6, 0xace6, 0xbfbd, 0xaee6, 0xb3e6, 0xbd8a, 0xbe8a, 0xb2e6, 0xbf8a, 0xc08a, 0xc18a, 0xc28a, 0xb6e6, 0xc38a, 0xb8e6, 0xc48a, 0xc58a, 0xc68a, 0xc78a, 0xefc4, 0xc88a, 0xc98a, 0xca8a, 0xc8c4, 0xcb8a, 0xcc8a, 0xeabe, 0xefc9, 0xcd8a, 0xce8a, 0xb7e6, 0xcf8a, 0xf0b6, 0xd08a, 0xd18a, 0xd28a, 0xe4c3, 0xd38a, 0xd48a, 0xd58a, 0xd68a, 0xd78a, 0xd88a, 0xd98a, 0xe9d3, 0xb4e6, 0xda8a, 0xb5e6, 0xdb8a, 0xa2c8, 0xdc8a, 0xdd8a, 0xde8a, 0xdf8a, 0xe08a, 0xbde6, 0xe18a, 0xe28a, 0xe38a, 0xb9e6, 0xe48a, 0xe58a, 0xe68a, 0xe78a, 0xe88a, 0xc5c6, 0xe98a, 0xea8a, 0xf1cd, 0xbbe6, 0xeb8a, 0xec8a, 0xed8a, 0xee8a, 0xef8a, 0xf08a, 0xf18a, 0xf28a, 0xf38a, 0xf48a, 0xbce6, 0xf58a, 0xf68a, 0xf78a, 0xf88a, 0xe9bb, 0xf98a, 0xfa8a, 0xfb8a, 0xfc8a, 0xfd8a, 0xfe8a, 0x408b, 0xbee6, 0x418b, 0x428b, 0x438b, 0x448b, 0xbae6, 0x458b, 0x468b, 0xb7c0, 0x478b, 0x488b, 0x498b, 0x4a8b, 0x4b8b, 0x4c8b, 0x4d8b, 0x4e8b, 0x4f8b, 0xa4d3, 0xbfe6, 0xf4c9, 0xc3e6, 0x508b, 0x518b, 0xc4e6, 0x528b, 0x538b, 0x548b, 0x558b, 0xf6d0, 0x568b, 0x578b, 0x588b, 0x598b, 0x5a8b, 0x5b8b, 0x5c8b, 0x5d8b, 0x5e8b, 0x5f8b, 0x608b, 0x618b, 0x628b, 0x638b, 0x648b, 0x658b, 0x668b, 0x678b, 0xbdc3, 0x688b, 0x698b, 0x6a8b, 0x6b8b, 0x6c8b, 0x6d8b, 0x6e8b, 0xc4c3, 0xc2e6, 0x6f8b, 0x708b, 0x718b, 0x728b, 0x738b, 0x748b, 0x758b, 0x768b, 0x778b, 0x788b, 0x798b, 0x7a8b, 0x7b8b, 0x7c8b, 0xc1e6, 0x7d8b, 0x7e8b, 0x808b, 0x818b, 0x828b, 0x838b, 0x848b, 0xc7e6, 0xb1cf, 0x858b, 0xf4eb, 0x868b, 0x878b, 0xcae6, 0x888b, 0x898b, 0x8a8b, 0x8b8b, 0x8c8b, 0xc5e6, 0x8d8b, 0x8e8b, 0xdebc, 0xa9c9, 0x8f8b, 0x908b, 0x918b, 0x928b, 0x938b, 0x948b, 0xb5bc, 0x958b, 0x968b, 0xd3cf, 0x978b, 0x988b, 0x998b, 0x9a8b, 0x9b8b, 0xc8e6, 0x9c8b, 0xc9e6, 0x9d8b, 0xcee6, 0x9e8b, 0xd0e6, 0x9f8b, 0xa08b, 0xa18b, 0xd1e6, 0xa28b, 0xa38b, 0xa48b, 0xcbe6, 0xd5b5, 0xa58b, 0xcce6, 0xa68b, 0xa78b, 0xcfe6, 0xa88b, 0xa98b, 0xdbc4, 0xaa8b, 0xc6e6, 0xab8b, 0xac8b, 0xad8b, 0xae8b, 0xaf8b, 0xcde6, 0xb08b, 0xb18b, 0xb28b, 0xb38b, 0xb48b, 0xb58b, 0xb68b, 0xb78b, 0xb88b, 0xb98b, 0xba8b, 0xbb8b, 0xbc8b, 0xbd8b, 0xbe8b, 0xbf8b, 0xc08b, 0xc18b, 0xc28b, 0xc38b, 0xc48b, 0xc58b, 0xc68b, 0xd2e6, 0xc78b, 0xc88b, 0xc98b, 0xca8b, 0xcb8b, 0xcc8b, 0xcd8b, 0xce8b, 0xcf8b, 0xd08b, 0xd18b, 0xd28b, 0xd4e6, 0xd3e6, 0xd38b, 0xd48b, 0xd58b, 0xd68b, 0xd78b, 0xd88b, 0xd98b, 0xda8b, 0xdb8b, 0xdc8b, 0xdd8b, 0xde8b, 0xdf8b, 0xe08b, 0xe18b, 0xe28b, 0xe38b, 0xe48b, 0xe58b, 0xe68b, 0xe78b, 0xe88b, 0xe98b, 0xea8b, 0xeb8b, 0xec8b, 0xd5e6, 0xed8b, 0xf8d9, 0xee8b, 0xef8b, 0xd6e6, 0xf08b, 0xf18b, 0xf28b, 0xf38b, 0xf48b, 0xf58b, 0xf68b, 0xf78b, 0xd7e6, 0xf88b, 0xf98b, 0xfa8b, 0xfb8b, 0xfc8b, 0xfd8b, 0xfe8b, 0x408c, 0x418c, 0x428c, 0x438c, 0x448c, 0x458c, 0x468c, 0x478c, 0xd3d7, 0xdde6, 0x488c, 0xdee6, 0xd7bf, 0xd0d4, 0x498c, 0xd6d7, 0xe6b4, 0xefcb, 0xdae6, 0xc3d8, 0xced7, 0xa2d0, 0x4a8c, 0xcfc3, 0x4b8c, 0x4c8c, 0xdfe6, 0xbebc, 0xc2b9, 0xdbe6, 0xa7d1, 0x4d8c, 0x4e8c, 0xa2ba, 0xcfc2, 0x4f8c, 0xabd8, 0x508c, 0x518c, 0x528c, 0xebca, 0xeee5, 0x538c, 0xdce6, 0x548c, 0xf5b7, 0x558c, 0x568c, 0x578c, 0x588c, 0xe6c8, 0x598c, 0x5a8c, 0xf5c4, 0x5b8c, 0x5c8c, 0xb2e5, 0xfec4, 0x5d8c, 0xfccb, 0xb3e5, 0xacd5, 0x5e8c, 0xeed3, 0xd8ca, 0xb2b0, 0x5f8c, 0xcecb, 0xeacd, 0x608c, 0x618c, 0xeaba, 0x628c, 0x638c, 0x648c, 0xb5e5, 0x658c, 0xb4e5, 0x668c, 0xdad7, 0xd9b9, 0xe6d6, 0xa8b6, 0xf0cd, 0xcbd2, 0xa6b1, 0xb5ca, 0x678c, 0xe8b3, 0xf3c9, 0xcdbf, 0xfbd0, 0xd2ca, 0xb6e5, 0xc2bb, 0x688c, 0x698c, 0x6a8c, 0xdccf, 0xacb9, 0x6b8c, 0x6c8c, 0x6d8c, 0x6e8c, 0xd7d4, 0x6f8c, 0x708c, 0xa6ba, 0xe7d1, 0xfccf, 0xd2bc, 0x718c, 0xb7e5, 0xddc8, 0x728c, 0x738c, 0x748c, 0xedbf, 0xf6b1, 0xdecb, 0x758c, 0x768c, 0xc5bc, 0x778c, 0xc4bc, 0xfad2, 0xdcc3, 0xdcbf, 0x788c, 0x798c, 0x7a8c, 0x7b8c, 0xbbb8, 0x7c8c, 0x7d8c, 0x7e8c, 0xc2c3, 0x808c, 0xaeba, 0xa2d4, 0x818c, 0x828c, 0x838c, 0x848c, 0x858c, 0x868c, 0x878c, 0x888c, 0x898c, 0xdec7, 0xafc4, 0xecb2, 0x8a8c, 0xd1b9, 0x8b8c, 0x8c8c, 0xbbe5, 0xc8c1, 0x8d8c, 0x8e8c, 0xafd5, 0x8f8c, 0x908c, 0x918c, 0x928c, 0x938c, 0xbce5, 0x948c, 0xbee5, 0x958c, 0x968c, 0x978c, 0x988c, 0x998c, 0x9a8c, 0x9b8c, 0xe7b4, 0xd4b6, 0xc2cb, 0xb0d1, 0xbcb5, 0x9c8c, 0x9d8c, 0xd9ca, 0x9e8c, 0xe2b7, 0x9f8c, 0xa08c, 0xe4c9, 0xa18c, 0xabbd, 0xa28c, 0xa38c, 0xbece, 0xf0d7, 0xa48c, 0xa58c, 0xa68c, 0xa78c, 0xa1d0, 0xa88c, 0xd9c9, 0xa98c, 0xaa8c, 0xfbb6, 0xd8e6, 0xe2bc, 0xab8c, 0xbeb3, 0xac8c, 0xd0c9, 0xad8c, 0xd9e6, 0xa2b3, 0xae8c, 0xaf8c, 0xb08c, 0xb18c, 0xccde, 0xb28c, 0xc8d3, 0xcdde, 0xb38c, 0xa2d2, 0xb48c, 0xb58c, 0xb68c, 0xb78c, 0xcede, 0xb88c, 0xb98c, 0xba8c, 0xbb8c, 0xcdbe, 0xbc8c, 0xbd8c, 0xcfde, 0xbe8c, 0xbf8c, 0xc08c, 0xacca, 0xfcd2, 0xdfb3, 0xeae5, 0xe1c4, 0xa1be, 0xb2ce, 0xf2c4, 0xd6be, 0xa8c6, 0xe3b2, 0xc18c, 0xc28c, 0xd3be, 0xc38c, 0xc48c, 0xfcc7, 0xebcc, 0xecbd, 0xddce, 0xc58c, 0xc68c, 0xbaca, 0xc1c6, 0xece5, 0xbcd0, 0xc78c, 0xc88c, 0xc98c, 0xb9d5, 0xca8c, 0xcb8c, 0xcc8c, 0xede5, 0xcd8c, 0xce8c, 0xcf8c, 0xd08c, 0xf4ca, 0xd18c, 0xc0cd, 0xc5c2, 0xd28c, 0xefe5, 0xd38c, 0xc4c2, 0xf0e5, 0xd48c, 0xd58c, 0xd68c, 0xd78c, 0xd88c, 0xd98c, 0xda8c, 0xf8e5, 0xcdcd, 0xdb8c, 0xbdc9, 0xdc8c, 0xdd8c, 0xde8c, 0xdf8c, 0xe08c, 0xe18c, 0xe28c, 0xd9d2, 0xa8e1, 0xe38c, 0xe48c, 0xe58c, 0xe68c, 0xecd3, 0xe78c, 0xeacb, 0xf1c6, 0xe88c, 0xe98c, 0xea8c, 0xeb8c, 0xec8c, 0xace1, 0xed8c, 0xee8c, 0xef8c, 0xa7e1, 0xa9e1, 0xf08c, 0xf18c, 0xaae1, 0xafe1, 0xf28c, 0xf38c, 0xedb2, 0xf48c, 0xabe1, 0xdab8, 0xade1, 0xaee1, 0xb0e1, 0xbab5, 0xb1e1, 0xf58c, 0xf68c, 0xf78c, 0xf88c, 0xf98c, 0xb3e1, 0xb8e1, 0xfa8c, 0xfb8c, 0xfc8c, 0xfd8c, 0xfe8c, 0xd2d1, 0x408d, 0xb6e1, 0xb5e1, 0xebc1, 0x418d, 0x428d, 0x438d, 0xb7e1, 0x448d, 0xc0d4, 0x458d, 0xb2e1, 0x468d, 0xbae1, 0xb6b0, 0x478d, 0x488d, 0x498d, 0x4a8d, 0xb4e1, 0x4b8d, 0xf9bf, 0x4c8d, 0xb9e1, 0x4d8d, 0x4e8d, 0xbbe1, 0x4f8d, 0x508d, 0x518d, 0x528d, 0x538d, 0x548d, 0xbee1, 0x558d, 0x568d, 0x578d, 0x588d, 0x598d, 0x5a8d, 0xbce1, 0x5b8d, 0x5c8d, 0x5d8d, 0x5e8d, 0x5f8d, 0x608d, 0xc5d6, 0x618d, 0x628d, 0x638d, 0x648d, 0x658d, 0x668d, 0x678d, 0xbfcf, 0x688d, 0x698d, 0xbde1, 0xbfe1, 0xcdc2, 0x6a8d, 0xebb6, 0x6b8d, 0xf8d3, 0x6c8d, 0x6d8d, 0xcdc7, 0x6e8d, 0x6f8d, 0xe5b7, 0x708d, 0x718d, 0x728d, 0x738d, 0x748d, 0x758d, 0x768d, 0x778d, 0x788d, 0x798d, 0xfebe, 0x7a8d, 0x7b8d, 0x7c8d, 0x7d8d, 0x7e8d, 0x808d, 0xc0e1, 0xc1e1, 0x818d, 0x828d, 0xc7e1, 0xe7b3, 0x838d, 0x848d, 0x858d, 0x868d, 0x878d, 0x888d, 0xe9c6, 0x898d, 0x8a8d, 0x8b8d, 0x8c8d, 0x8d8d, 0xdeb4, 0x8e8d, 0xc2d1, 0x8f8d, 0x908d, 0x918d, 0x928d, 0xc8e1, 0x938d, 0x948d, 0xc6e1, 0x958d, 0x968d, 0x978d, 0x988d, 0x998d, 0xc5e1, 0x9a8d, 0xc3e1, 0xc2e1, 0x9b8d, 0xc0b1, 0x9c8d, 0x9d8d, 0x9e8d, 0xb8d5, 0xc4e1, 0x9f8d, 0xa08d, 0xa18d, 0xa28d, 0xa38d, 0xcbe1, 0xa48d, 0xa58d, 0xa68d, 0xa78d, 0xa88d, 0xa98d, 0xaa8d, 0xab8d, 0xcce1, 0xcae1, 0xac8d, 0xad8d, 0xae8d, 0xaf8d, 0xb08d, 0xb18d, 0xb28d, 0xb38d, 0xfaef, 0xb48d, 0xb58d, 0xd3e1, 0xd2e1, 0xb6c7, 0xb68d, 0xb78d, 0xb88d, 0xb98d, 0xba8d, 0xbb8d, 0xbc8d, 0xbd8d, 0xbe8d, 0xbf8d, 0xc08d, 0xc9e1, 0xc18d, 0xc28d, 0xcee1, 0xc38d, 0xd0e1, 0xc48d, 0xc58d, 0xc68d, 0xc78d, 0xc88d, 0xc98d, 0xca8d, 0xcb8d, 0xcc8d, 0xcd8d, 0xce8d, 0xd4e1, 0xcf8d, 0xd1e1, 0xcde1, 0xd08d, 0xd18d, 0xcfe1, 0xd28d, 0xd38d, 0xd48d, 0xd58d, 0xd5e1, 0xd68d, 0xd78d, 0xd88d, 0xd98d, 0xda8d, 0xdb8d, 0xdc8d, 0xdd8d, 0xde8d, 0xdf8d, 0xe08d, 0xe18d, 0xe28d, 0xd6e1, 0xe38d, 0xe48d, 0xe58d, 0xe68d, 0xe78d, 0xe88d, 0xe98d, 0xea8d, 0xeb8d, 0xec8d, 0xed8d, 0xee8d, 0xef8d, 0xf08d, 0xf18d, 0xf28d, 0xf38d, 0xf48d, 0xf58d, 0xf68d, 0xf78d, 0xf88d, 0xd7e1, 0xf98d, 0xfa8d, 0xfb8d, 0xd8e1, 0xfc8d, 0xfd8d, 0xfe8d, 0x408e, 0x418e, 0x428e, 0x438e, 0x448e, 0x458e, 0x468e, 0x478e, 0x488e, 0x498e, 0x4a8e, 0x4b8e, 0x4c8e, 0x4d8e, 0x4e8e, 0x4f8e, 0x508e, 0x518e, 0x528e, 0x538e, 0x548e, 0x558e, 0xdae1, 0x568e, 0x578e, 0x588e, 0x598e, 0x5a8e, 0x5b8e, 0x5c8e, 0x5d8e, 0x5e8e, 0x5f8e, 0x608e, 0x618e, 0x628e, 0xdbe1, 0x638e, 0x648e, 0x658e, 0x668e, 0x678e, 0x688e, 0x698e, 0xa1ce, 0x6a8e, 0x6b8e, 0x6c8e, 0x6d8e, 0x6e8e, 0x6f8e, 0x708e, 0x718e, 0x728e, 0x738e, 0x748e, 0x758e, 0x768e, 0xdde7, 0x778e, 0xa8b4, 0xddd6, 0x788e, 0x798e, 0xb2d1, 0xb2b3, 0x7a8e, 0x7b8e, 0xa4b9, 0xf3d7, 0xc9c7, 0xdebe, 0xaeb9, 0x7c8e, 0xd7ce, 0x7d8e, 0x7e8e, 0xeeb2, 0xcfdb, 0x808e, 0xbabc, 0xd1d2, 0xc8cb, 0xcdb0, 0x818e, 0x828e, 0xefcf, 0x838e, 0x848e, 0x858e, 0x868e, 0x878e, 0xe3d9, 0xedbd, 0x888e, 0x898e, 0xd2b1, 0xd0ca, 0xbcb2, 0x8a8e, 0xa7cb, 0xabb7, 0x8b8e, 0xa6ca, 0x8c8e, 0x8d8e, 0x8e8e, 0xa3cf, 0x8f8e, 0x908e, 0xf8e0, 0xcad5, 0xfbe0, 0x918e, 0x928e, 0xfae0, 0xc1c5, 0xfbcc, 0x938e, 0xb1c1, 0xf9e0, 0xe3d6, 0xafb2, 0xc4d6, 0xdbb5, 0x948e, 0x958e, 0x968e, 0x978e, 0x988e, 0x998e, 0x9a8e, 0x9b8e, 0xf8b4, 0xa1d6, 0x9c8e, 0x9d8e, 0x9e8e, 0x9f8e, 0xa08e, 0xafcf, 0xefb0, 0xa18e, 0xa28e, 0xfce0, 0xa38e, 0xa48e, 0xa58e, 0xa68e, 0xa78e, 0xa1e1, 0xa3b3, 0xa88e, 0xa98e, 0xfde0, 0xfee0, 0xb1c3, 0xaa8e, 0xab8e, 0xac8e, 0xad8e, 0xddc3, 0xae8e, 0xa2e1, 0xf9b7, 0xaf8e, 0xb08e, 0xb18e, 0xb28e, 0xb38e, 0xb48e, 0xcfbb, 0xb58e, 0xb68e, 0xb78e, 0xb88e, 0xb98e, 0xba8e, 0xbb8e, 0xa3e1, 0xbbc4, 0xbc8e, 0xbd8e, 0xbe8e, 0xbf8e, 0xc08e, 0xa4e1, 0xc18e, 0xc28e, 0xa5e1, 0xc38e, 0xc48e, 0xa6e1, 0xb1b4, 0xc58e, 0xc68e, 0xc78e, 0xc88e, 0xc98e, 0xca8e, 0xcb8e, 0xcc8e, 0xcd8e, 0xce8e, 0xcf8e, 0xd08e, 0xd18e, 0xd28e, 0xd38e, 0xc9b8, 0xbdc6, 0xeac4, 0xd48e, 0xa2b2, 0xd58e, 0xd2d0, 0xd68e, 0xdbe7, 0xc3bb, 0xd7d3, 0xc4d3, 0xd78e, 0xe3b9, 0xcfe2, 0xd88e, 0xd98e, 0xda8e, 0xafd7, 0xdb8e, 0xecc7, 0xd3b1, 0xdc8e, 0xdd8e, 0xb2b4, 0xd1e2, 0xde8e, 0xdf8e, 0xe08e, 0xf2d0, 0xaec2, 0xd0e2, 0xe18e, 0xe2bf, 0xa6d3, 0xd7b5, 0xd2e2, 0xeab5, 0xe28e, 0xedc3, 0xfdb8, 0xe38e, 0xaeb8, 0xe48e, 0xd3c5, 0xcfb7, 0xd4e2, 0xe58e, 0xe68e, 0xe78e, 0xe88e, 0xd3e2, 0xc8b6, 0xf9d7, 0xe98e, 0xea8e, 0xeb8e, 0xec8e, 0xed8e, 0xa5cd, 0xee8e, 0xef8e, 0xf08e, 0xf18e, 0xf28e, 0xd8e2, 0xf38e, 0xd6e2, 0xfcca, 0xb5bf, 0xb9d3, 0xd5e2, 0xf48e, 0xf58e, 0xf68e, 0xf78e, 0xd7e2, 0xf88e, 0xf98e, 0xfa8e, 0xfb8e, 0xfc8e, 0xfd8e, 0xfe8e, 0x408f, 0x418f, 0x428f, 0xaec1, 0xc8c0, 0x438f, 0x448f, 0x458f, 0x468f, 0x478f, 0x488f, 0xdbe2, 0xdae2, 0xaac0, 0x498f, 0x4a8f, 0xcec1, 0x4b8f, 0x4c8f, 0x4d8f, 0x4e8f, 0xdce2, 0x4f8f, 0x508f, 0x518f, 0x528f, 0x538f, 0x548f, 0x558f, 0x568f, 0x578f, 0x588f, 0x598f, 0x5a8f, 0xdde2, 0x5b8f, 0xdee2, 0x5c8f, 0x5d8f, 0x5e8f, 0x5f8f, 0x608f, 0x618f, 0x628f, 0x638f, 0x648f, 0xc8db, 0x658f, 0xd3d1, 0xa2cd, 0x668f, 0x678f, 0xa8bd, 0x688f, 0x698f, 0x6a8f, 0xc3de, 0xa5d8, 0xaabf, 0xcddb, 0xecd2, 0xfac6, 0xaac5, 0x6b8f, 0x6c8f, 0x6d8f, 0xc4de, 0x6e8f, 0xd7b1, 0xaedf, 0x6f8f, 0x708f, 0x718f, 0xbdca, 0x728f, 0xb1df, 0x738f, 0xadb9, 0x748f, 0xfdd2, 0x758f, 0xa5b8, 0xebba, 0x768f, 0x778f, 0xdab3, 0x788f, 0x798f, 0x7a8f, 0xdcb5, 0xc5d5, 0x7b8f, 0x7c8f, 0x7d8f, 0x7e8f, 0xd6c3, 0xd2cf, 0xa1bb, 0x808f, 0xf3e5, 0xf2e5, 0x818f, 0x828f, 0xf4e5, 0x838f, 0xe4cd, 0x848f, 0xf5c8, 0x858f, 0x868f, 0x878f, 0x888f, 0x898f, 0x8a8f, 0x8b8f, 0xafb5, 0xbfc7, 0x8c8f, 0xf6e5, 0x8d8f, 0x8e8f, 0x8f8f, 0xb0ec, 0x908f, 0x918f, 0x928f, 0x938f, 0x948f, 0x958f, 0x968f, 0x978f, 0x988f, 0x998f, 0x9a8f, 0x9b8f, 0x9c8f, 0x9d8f, 0x9e8f, 0xe6e5, 0x9f8f, 0xe9b9, 0xb1b5, 0xa08f, 0xbcc2, 0xe8e5, 0xe7e5, 0xe9e5, 0xa18f, 0xa28f, 0xa38f, 0xa48f, 0xcdd2, 0xa58f, 0xa68f, 0xa78f, 0xeae1, 0xced0, 0xa88f, 0xaecd, 0xa98f, 0xe5d1, 0xaa8f, 0xab8f, 0xcab2, 0xebb1, 0xac8f, 0xf2b1, 0xedc5, 0xad8f, 0xae8f, 0xc3d5, 0xb0d3, 0xaf8f, 0xdce1, 0xb08f, 0xb18f, 0xb28f, 0xdde1, 0xb38f, 0xdbd2, 0xb48f, 0xb9b3, 0xcbb1, 0xb58f, 0xb68f, 0xb78f, 0xf9cd, 0xf7d5, 0xdee1, 0xb88f, 0xb6be, 0xfdb4, 0xb98f, 0xdfe1, 0xdcba, 0xe0e1, 0xb2bb, 0xc9c2, 0xe1e1, 0xba8f, 0xbb8f, 0xbc8f, 0xecd0, 0xbd8f, 0xbdcd, 0xbe8f, 0xbf8f, 0xe2e1, 0xc08f, 0xc3b5, 0xc7c5, 0xe3e1, 0xc18f, 0xc28f, 0xe4e1, 0xc38f, 0xc48f, 0xc58f, 0xc68f, 0xf9d3, 0xc78f, 0xc88f, 0xc98f, 0xca8f, 0xcb8f, 0xcc8f, 0xe5e1, 0xcd8f, 0xadd1, 0xce8f, 0xcf8f, 0xe6e1, 0xa2ce, 0xd08f, 0xd18f, 0xd28f, 0xd38f, 0xd48f, 0xd58f, 0xe7e1, 0xd68f, 0xc2b5, 0xd78f, 0xd88f, 0xd98f, 0xda8f, 0xe8e1, 0xd5bb, 0xdb8f, 0xdc8f, 0xdd8f, 0xde8f, 0xdf8f, 0xc4d0, 0xe0e2, 0xd8b1, 0xe4d2, 0xe08f, 0xe18f, 0xe1e2, 0xe28f, 0xe38f, 0xc9bc, 0xccc8, 0xe48f, 0xe3e2, 0xfeec, 0xfdec, 0xafdf, 0xe58f, 0xe68f, 0xe78f, 0xe2e2, 0xbed6, 0xfccd, 0xa6c3, 0xe88f, 0xe98f, 0xea8f, 0xc3e3, 0xeb8f, 0xec8f, 0xd2d6, 0xe7e2, 0xed8f, 0xee8f, 0xe8e2, 0xef8f, 0xf08f, 0xc7d3, 0xf18f, 0xf28f, 0xece2, 0xecbf, 0xf38f, 0xede2, 0xe5e2, 0xf48f, 0xf58f, 0xc0b3, 0xf68f, 0xf78f, 0xf88f, 0xeec4, 0xf98f, 0xfa8f, 0xeee2, 0xfb8f, 0xfc8f, 0xc3d0, 0xfd8f, 0xf6ba, 0xe9e2, 0xdeb7, 0xb3bb, 0xaccc, 0xcbcb, 0xe4e2, 0xe6e2, 0xeae2, 0xebe2, 0xfe8f, 0x4090, 0x4190, 0xf7e2, 0x4290, 0x4390, 0xf4e2, 0xf5d4, 0xf3e2, 0x4490, 0x4590, 0xadc5, 0x4690, 0xfad5, 0xc2c5, 0xc0b2, 0x4790, 0x4890, 0xefe2, 0x4990, 0xf2e2, 0xafc1, 0xbccb, 0x4a90, 0x4b90, 0xa1b5, 0xf9e2, 0x4c90, 0x4d90, 0x4e90, 0xb1bc, 0xf1e2, 0xd4d0, 0xb9d4, 0xf5e2, 0xd6b9, 0xf6e2, 0x4f90, 0x5090, 0x5190, 0xd3c7, 0x5290, 0x5390, 0x5490, 0x5590, 0x5690, 0xf0e2, 0x5790, 0x5890, 0x5990, 0x5a90, 0x5b90, 0xdcd7, 0xa1ed, 0x5c90, 0x5d90, 0xf8e2, 0x5e90, 0xa5ed, 0xfee2, 0xd1ca, 0x5f90, 0x6090, 0x6190, 0x6290, 0x6390, 0x6490, 0x6590, 0xb5c1, 0x6690, 0xd0bb, 0x6790, 0x6890, 0xd6bf, 0x6990, 0xe3ba, 0x6a90, 0x6b90, 0xa1cb, 0x6c90, 0x6d90, 0x6e90, 0xa6ed, 0xa3ed, 0x6f90, 0x7090, 0xa2ed, 0x7190, 0x7290, 0x7390, 0x7490, 0xd6bb, 0xa7ed, 0xf4d0, 0x7590, 0x7690, 0xa4ed, 0xdeba, 0xf7b6, 0xa1e3, 0xb2b6, 0xf1cc, 0xa7b9, 0x7790, 0xa2cf, 0xa1c7, 0x7890, 0x7990, 0xd2bf, 0x7a90, 0x7b90, 0xf1b6, 0x7c90, 0xfae2, 0xfbe2, 0xfde2, 0xfce2, 0xd5c4, 0xa2e3, 0x7d90, 0xc1d3, 0x7e90, 0x8090, 0x8190, 0xa7e3, 0xc4c7, 0x8290, 0x8390, 0x8490, 0x8590, 0xa4cf, 0x8690, 0x8790, 0xa9e3, 0xb7ba, 0x8890, 0x8990, 0x8a90, 0x8b90, 0xa8e3, 0x8c90, 0xdabb, 0x8d90, 0xa3e3, 0x8e90, 0x8f90, 0x9090, 0xa4e3, 0xaae3, 0x9190, 0xa6e3, 0x9290, 0xf2ce, 0xc6d3, 0x9390, 0x9490, 0xbcbb, 0x9590, 0x9690, 0xc3d4, 0x9790, 0xfac4, 0x9890, 0x9990, 0xa8ed, 0xfcd0, 0xa5e3, 0x9a90, 0xf5c3, 0x9b90, 0xade3, 0xafb1, 0x9c90, 0xb2e3, 0x9d90, 0x9e90, 0x9f90, 0xc2bc, 0xa090, 0xa190, 0xace3, 0xbfb5, 0xa290, 0xa390, 0xa490, 0xa590, 0xa690, 0xa790, 0xa890, 0xa990, 0xe9c7, 0xb0e3, 0xaa90, 0xab90, 0xac90, 0xaabe, 0xefcd, 0xad90, 0xae90, 0xaf90, 0xb090, 0xb190, 0xf3bb, 0xb290, 0xb390, 0xb490, 0xe8cc, 0xb590, 0xb690, 0xafe3, 0xb790, 0xb1e3, 0xb890, 0xa7cf, 0xaee3, 0xb990, 0xa9ce, 0xddbb, 0xba90, 0xbb90, 0xbc90, 0xbd90, 0xbe90, 0xebb5, 0xe5be, 0xd2b2, 0xcdb3, 0xbf90, 0xb9b1, 0xabe3, 0xd1b2, 0xacb5, 0xdfb9, 0xe8b6, 0xc090, 0xc190, 0xebcf, 0xb7e3, 0xc290, 0xccbb, 0xc390, 0xc490, 0xc7c8, 0xcad0, 0xc590, 0xc690, 0xc790, 0xc890, 0xc990, 0xb8e3, 0xeeb3, 0xca90, 0xcb90, 0xcc90, 0xcd90, 0xa9ed, 0xce90, 0xfad3, 0xe4d3, 0xcf90, 0xd090, 0xd190, 0xaaed, 0xb9e3, 0xe2d2, 0xd290, 0xd390, 0xd490, 0xd590, 0xd690, 0xb5e3, 0xd790, 0xd890, 0xd990, 0xda90, 0xded3, 0xdb90, 0xdc90, 0xdd90, 0xde90, 0xd0b8, 0xb3e3, 0xdf90, 0xe090, 0xb6e3, 0xdfb7, 0xe190, 0xb4e3, 0xa2c0, 0xe290, 0xe390, 0xe490, 0xbae3, 0xe590, 0xe690, 0xe790, 0xe890, 0xe990, 0xea90, 0xeb90, 0xec90, 0xed90, 0xee90, 0xef90, 0xf090, 0xf190, 0xf290, 0xf390, 0xf490, 0xf590, 0xf690, 0xf790, 0xb8d4, 0xf890, 0xf990, 0xfa90, 0xfb90, 0xfc90, 0xfd90, 0xfe90, 0x4091, 0xc8b4, 0x4191, 0xbbe3, 0x4291, 0xc5bb, 0x4391, 0xf7c9, 0x4491, 0x4591, 0xe5c9, 0x4691, 0x4791, 0x4891, 0xbdc4, 0x4991, 0x4a91, 0x4b91, 0x4c91, 0x4d91, 0x4e91, 0x4f91, 0xabed, 0x5091, 0x5191, 0x5291, 0x5391, 0xfdc2, 0x5491, 0x5591, 0x5691, 0x5791, 0xdbbb, 0xaebf, 0x5891, 0x5991, 0x5a91, 0x5b91, 0x5c91, 0x5d91, 0x5e91, 0xbfce, 0x5f91, 0x6091, 0x6191, 0x6291, 0xbce3, 0x6391, 0xb6bf, 0x6491, 0x6591, 0x6691, 0x6791, 0x6891, 0x6991, 0x6a91, 0x6b91, 0x6c91, 0x6d91, 0x6e91, 0x6f91, 0x7091, 0x7191, 0x7291, 0x7391, 0x7491, 0x7591, 0x7691, 0xefb1, 0x7791, 0x7891, 0xf7d4, 0x7991, 0x7a91, 0x7b91, 0x7c91, 0x7d91, 0xbee3, 0x7e91, 0x8091, 0x8191, 0x8291, 0x8391, 0x8491, 0x8591, 0x8691, 0xaded, 0x8791, 0x8891, 0x8991, 0x8a91, 0x8b91, 0x8c91, 0x8d91, 0x8e91, 0x8f91, 0xbfe3, 0xa9ba, 0xaced, 0x9091, 0x9191, 0xbde3, 0x9291, 0x9391, 0x9491, 0x9591, 0x9691, 0x9791, 0x9891, 0x9991, 0x9a91, 0x9b91, 0xc0e3, 0x9c91, 0x9d91, 0x9e91, 0x9f91, 0xa091, 0xa191, 0xb6ba, 0xa291, 0xa391, 0xa491, 0xaeb6, 0xa591, 0xa691, 0xa791, 0xa891, 0xa991, 0xb8d0, 0xaa91, 0xc3b0, 0xaeed, 0xab91, 0xac91, 0xad91, 0xae91, 0xaf91, 0xafed, 0xc1c0, 0xb091, 0xc1e3, 0xb191, 0xb291, 0xb391, 0xb491, 0xb591, 0xb691, 0xb791, 0xb891, 0xb991, 0xba91, 0xbb91, 0xbc91, 0xbd91, 0xbe91, 0xbf91, 0xc091, 0xc191, 0xb3c5, 0xc291, 0xc391, 0xc491, 0xc591, 0xc691, 0xc791, 0xc891, 0xc991, 0xca91, 0xcb91, 0xcc91, 0xcd91, 0xce91, 0xcf91, 0xc2e3, 0xd091, 0xd191, 0xd291, 0xd391, 0xd491, 0xd591, 0xd691, 0xd791, 0xd891, 0xb2dc, 0xd991, 0xda91, 0xdb91, 0xdc91, 0xdd91, 0xde91, 0xb0ed, 0xdf91, 0xeab8, 0xe091, 0xecce, 0xa7ea, 0xe7d0, 0xf9ca, 0xd6c8, 0xb7cf, 0xc9b3, 0xd2ce, 0xe4bd, 0xe191, 0xe291, 0xdee3, 0xf2bb, 0xa8ea, 0xbdd5, 0xe391, 0xddc6, 0xa9ea, 0xe491, 0xe591, 0xe691, 0xaaea, 0xe791, 0xacea, 0xabea, 0xe891, 0xaeea, 0xadea, 0xe991, 0xea91, 0xeb91, 0xec91, 0xd8bd, 0xed91, 0xafea, 0xee91, 0xbec2, 0xef91, 0xf091, 0xf191, 0xf291, 0xc1b4, 0xf7b4, 0xf391, 0xf491, 0xa7bb, 0xf591, 0xf691, 0xf791, 0xf891, 0xf991, 0xe6ec, 0xe5ec, 0xbfb7, 0xf9cb, 0xe2b1, 0xfa91, 0xe7ec, 0xfb91, 0xfc91, 0xfd91, 0xc8c9, 0xe8ec, 0xe9ec, 0xfe91, 0xd6ca, 0xd0de, 0xc5b2, 0xfad4, 0x4092, 0x4192, 0xcbc6, 0xc7b0, 0xf2b4, 0xd3c8, 0x4292, 0x4392, 0x4492, 0xd0cd, 0x4592, 0x4692, 0xb8bf, 0x4792, 0x4892, 0x4992, 0x4a92, 0x4b92, 0x4c92, 0x4d92, 0xdbbf, 0x4e92, 0x4f92, 0xa4c7, 0xb4d6, 0x5092, 0xa9c0, 0xd1de, 0xa8c9, 0xefd1, 0xa4c5, 0xe7b0, 0xb6b3, 0xc5c8, 0x5192, 0x5292, 0xe2b0, 0x5392, 0x5492, 0xf6b7, 0x5592, 0x5692, 0xfac5, 0x5792, 0x5892, 0xf3b6, 0x5992, 0xd2d5, 0xd0b3, 0xbcbc, 0x5a92, 0x5b92, 0x5c92, 0xadb3, 0x5d92, 0x5e92, 0x5f92, 0x6092, 0xf1be, 0xd1b0, 0x6192, 0x6292, 0x6392, 0x6492, 0x6592, 0x6692, 0xd6d2, 0xe3ca, 0xa5d7, 0x6792, 0xb6cd, 0xb6b6, 0xb9bf, 0xdbd5, 0x6892, 0xa7b8, 0xd7c5, 0x6992, 0x6a92, 0x6b92, 0xd2de, 0xd9bf, 0xd5c2, 0xc0c7, 0x6c92, 0xa4bb, 0xa8b1, 0x6d92, 0x6e92, 0xeac5, 0x6f92, 0x7092, 0xfbc5, 0xa7cc, 0x7192, 0x7292, 0x7392, 0x7492, 0xa7b1, 0x7592, 0x7692, 0x7792, 0xd6b5, 0x7892, 0x7992, 0x7a92, 0xa8c4, 0x7b92, 0xd3de, 0xbad1, 0xe9b3, 0x7c92, 0xf2c3, 0x7d92, 0x7e92, 0xf7b7, 0x8092, 0xf4d6, 0xa3b5, 0xf0b2, 0xb4c4, 0xe9c4, 0xadc0, 0xd4de, 0x8192, 0xe8b0, 0xc4c5, 0xe0c1, 0x8292, 0xd5b9, 0x8392, 0xdcbe, 0xd8cd, 0xceb0, 0x8492, 0xcfcd, 0xd6de, 0xd0be, 0xbed7, 0xd5de, 0xd0d5, 0xddb0, 0x8592, 0x8692, 0xe2c4, 0x8792, 0x8892, 0xa3c2, 0xf0bc, 0x8992, 0xb5d3, 0xb9c0, 0xa1c5, 0xa6b2, 0xf1d4, 0x8a92, 0x8b92, 0xa8c0, 0xc3ca, 0xd7de, 0xfcd5, 0x8c92, 0xb0b9, 0x8d92, 0xadc8, 0xa9cb, 0x8e92, 0xd9de, 0xbdbf, 0x8f92, 0x9092, 0x9192, 0x9292, 0xb4c6, 0xa7d7, 0xb0ca, 0xc3c4, 0x9392, 0xd6b3, 0xd2b9, 0x9492, 0x9592, 0x9692, 0x9792, 0xb8d6, 0xfcea, 0xb4b0, 0x9892, 0x9992, 0x9a92, 0x9b92, 0xe6bf, 0x9c92, 0x9d92, 0xf4cc, 0x9e92, 0x9f92, 0xa092, 0xa192, 0xdacd, 0xa292, 0xa392, 0xa492, 0xbfd6, 0xcec2, 0xa592, 0xcece, 0xa2cc, 0xaed0, 0xd3c4, 0xb2b5, 0xd8de, 0xf5d5, 0xb7bc, 0xd3bb, 0xa692, 0xa792, 0xa4b0, 0xa892, 0xb2c5, 0xecb4, 0xa992, 0xaa92, 0xab92, 0xf1d5, 0xac92, 0xad92, 0xfdea, 0xae92, 0xaf92, 0xb092, 0xb192, 0xb292, 0xb392, 0xdade, 0xa6cd, 0xb492, 0xb592, 0xeccd, 0xb692, 0xb792, 0xb892, 0xb992, 0xe6ce, 0xdcde, 0xba92, 0xb1cd, 0xa6c0, 0xbb92, 0xbc92, 0xbdd7, 0xbd92, 0xdbde, 0xc6b0, 0xb4ba, 0xd3c9, 0xf3c4, 0xe8be, 0xbe92, 0xbf92, 0xc092, 0xc192, 0xb6b2, 0xc292, 0xc392, 0xc492, 0xc592, 0xc692, 0xc792, 0xc892, 0xc992, 0xccc0, 0xf0cb, 0xca92, 0xf1bc, 0xbbbb, 0xb7b5, 0xcb92, 0xcc92, 0xcd92, 0xf5c5, 0xce92, 0xe6de, 0xcf92, 0xd092, 0xd192, 0xe3de, 0xddbe, 0xd292, 0xd392, 0xdfde, 0xd492, 0xd592, 0xd692, 0xd792, 0xb7b4, 0xddbd, 0xd892, 0xd992, 0xe0de, 0xedc4, 0xda92, 0xdb92, 0xdc92, 0xdd92, 0xc6cf, 0xde92, 0xe0b5, 0xdf92, 0xe092, 0xe192, 0xe292, 0xdeb6, 0xdaca, 0xf4b5, 0xe5de, 0xe392, 0xc6d5, 0xe492, 0xe1de, 0xcdcc, 0xfec6, 0xe592, 0xc5c5, 0xe692, 0xe792, 0xe892, 0xb4d2, 0xe992, 0xf2be, 0xea92, 0xeb92, 0xec92, 0xed92, 0xee92, 0xef92, 0xf092, 0xd3c2, 0xf192, 0xbdcc, 0xb8b3, 0xf292, 0xd3bd, 0xf392, 0xd8bf, 0xc6cd, 0xdad1, 0xebb4, 0xf492, 0xe4de, 0xddde, 0xe7de, 0xf592, 0xfeea, 0xf692, 0xf792, 0xb0c2, 0xe2de, 0xf892, 0xf992, 0xc0d6, 0xa7b5, 0xfa92, 0xf4b2, 0xfb92, 0xe8de, 0xfc92, 0xf2de, 0xfd92, 0xfe92, 0x4093, 0x4193, 0x4293, 0xedde, 0x4393, 0xf1de, 0x4493, 0x4593, 0xe0c8, 0x4693, 0x4793, 0x4893, 0xe1d7, 0xefde, 0xe8c3, 0xe1cc, 0x4993, 0xe5b2, 0x4a93, 0x4b93, 0x4c93, 0xbed2, 0x4d93, 0x4e93, 0x4f93, 0x5093, 0x5193, 0x5293, 0x5393, 0xeede, 0x5493, 0xebde, 0xd5ce, 0x5593, 0xa7b4, 0x5693, 0x5793, 0x5893, 0x5993, 0x5a93, 0xabbf, 0xbebe, 0x5b93, 0x5c93, 0xd2bd, 0x5d93, 0x5e93, 0x5f93, 0x6093, 0xe9de, 0x6193, 0xaed4, 0x6293, 0xdede, 0x6393, 0xeade, 0x6493, 0x6593, 0x6693, 0x6793, 0xbfc0, 0x6893, 0xecde, 0xf3b2, 0xe9b8, 0xa7c2, 0x6993, 0x6a93, 0xc1bd, 0x6b93, 0x6c93, 0x6d93, 0x6e93, 0x6f93, 0xf5de, 0xf8de, 0x7093, 0x7193, 0xabb2, 0xa4b4, 0x7293, 0x7393, 0xeab4, 0xa6c9, 0x7493, 0x7593, 0x7693, 0x7793, 0x7893, 0x7993, 0xf6de, 0xd1cb, 0x7a93, 0xe3b8, 0x7b93, 0xf7de, 0xfade, 0x7c93, 0x7d93, 0x7e93, 0x8093, 0xf9de, 0x8193, 0x8293, 0x8393, 0xc2cc, 0x8493, 0xe1b0, 0xeeb4, 0x8593, 0x8693, 0x8793, 0x8893, 0x8993, 0x8a93, 0xbae5, 0x8b93, 0x8c93, 0x8d93, 0x8e93, 0x8f93, 0xafd0, 0x9093, 0x9193, 0xebb2, 0x9293, 0xa1eb, 0x9393, 0xf4de, 0x9493, 0x9593, 0xe3c9, 0xf3de, 0xdab0, 0xa1d2, 0xf7b1, 0x9693, 0xafcc, 0x9793, 0x9893, 0x9993, 0x9a93, 0x9b93, 0x9c93, 0x9d93, 0xf0de, 0x9e93, 0xa4cb, 0x9f93, 0xa093, 0xa193, 0xaad5, 0xa293, 0xa393, 0xa493, 0xa593, 0xa693, 0xfbde, 0xa793, 0xa893, 0xa993, 0xaa93, 0xab93, 0xac93, 0xad93, 0xae93, 0xddb4, 0xaf93, 0xa6c4, 0xb093, 0xb193, 0xb293, 0xfdde, 0xb393, 0xb493, 0xb593, 0xb693, 0xb793, 0xb893, 0xb993, 0xba93, 0xbb93, 0xbc93, 0xfec3, 0xa1c4, 0xa1df, 0xbd93, 0xbe93, 0xbf93, 0xc093, 0xc193, 0xc293, 0xc393, 0xccc1, 0xc493, 0xfcde, 0xefbe, 0xc593, 0xb2c6, 0xc693, 0xc793, 0xc893, 0xc993, 0xca93, 0xcb93, 0xcc93, 0xcd93, 0xce93, 0xc5b3, 0xf6c8, 0xcf93, 0xd093, 0xbacb, 0xfede, 0xd193, 0xd293, 0xa4df, 0xd393, 0xd493, 0xd593, 0xd693, 0xb2d7, 0xd793, 0xd893, 0xd993, 0xda93, 0xdb93, 0xb7b3, 0xdc93, 0xdd93, 0xde93, 0xdf93, 0xc3c1, 0xe093, 0xe193, 0xcbc7, 0xa5b2, 0xe9b4, 0xe293, 0xabd7, 0xe393, 0xe493, 0xe593, 0xe693, 0xecc4, 0xe793, 0xa2df, 0xa3df, 0xe893, 0xa5df, 0xe993, 0xb3ba, 0xea93, 0xeb93, 0xec93, 0xa6df, 0xed93, 0xdec0, 0xee93, 0xef93, 0xc3c9, 0xf093, 0xf193, 0xf293, 0xf393, 0xf493, 0xf593, 0xf693, 0xd9b2, 0xe6c7, 0xf793, 0xa7df, 0xf893, 0xdcc7, 0xf993, 0xfa93, 0xfb93, 0xfc93, 0xa8df, 0xa2eb, 0xfd93, 0xfe93, 0x4094, 0x4194, 0x4294, 0xd3cb, 0x4394, 0x4494, 0x4594, 0xaadf, 0x4694, 0xa9df, 0x4794, 0xc1b2, 0x4894, 0x4994, 0x4a94, 0x4b94, 0x4c94, 0x4d94, 0x4e94, 0x4f94, 0x5094, 0x5194, 0x5294, 0x5394, 0x5494, 0x5594, 0x5694, 0x5794, 0x5894, 0x5994, 0x5a94, 0x5b94, 0x5c94, 0x5d94, 0x5e94, 0x5f94, 0x6094, 0xcac5, 0x6194, 0x6294, 0x6394, 0x6494, 0x6594, 0x6694, 0x6794, 0x6894, 0xabdf, 0x6994, 0x6a94, 0x6b94, 0x6c94, 0x6d94, 0x6e94, 0x6f94, 0x7094, 0xdcd4, 0x7194, 0x7294, 0x7394, 0x7494, 0x7594, 0xc1c8, 0x7694, 0x7794, 0x7894, 0x7994, 0x7a94, 0x7b94, 0x7c94, 0x7d94, 0x7e94, 0x8094, 0x8194, 0x8294, 0xacdf, 0x8394, 0x8494, 0x8594, 0x8694, 0x8794, 0xf0be, 0x8894, 0x8994, 0xaddf, 0xa7d6, 0x8a94, 0x8b94, 0x8c94, 0x8d94, 0xb7ea, 0xb6eb, 0xd5ca, 0x8e94, 0xfcd8, 0xc4b8, 0x8f94, 0xa5b9, 0x9094, 0x9194, 0xc5b7, 0xfed5, 0x9294, 0x9394, 0x9494, 0x9594, 0x9694, 0xcab9, 0x9794, 0x9894, 0xa7d0, 0xcdf4, 0x9994, 0x9a94, 0xd0b5, 0x9b94, 0x9c94, 0xf4c3, 0x9d94, 0xc8be, 0x9e94, 0x9f94, 0xa094, 0xb7eb, 0xbdb0, 0xa194, 0xa294, 0xccbd, 0xa394, 0xb2c1, 0xa494, 0xd6b1, 0xa8b3, 0xa594, 0xa694, 0xa794, 0xd2b8, 0xa2c9, 0xa894, 0xa994, 0xd8b6, 0xaa94, 0xab94, 0xac94, 0xad94, 0xb8eb, 0xb4be, 0xae94, 0xaf94, 0xb094, 0xfdca, 0xb194, 0xc3c7, 0xb294, 0xfbd5, 0xb394, 0xb494, 0xf3b7, 0xb594, 0xb694, 0xb794, 0xb894, 0xb994, 0xba94, 0xbb94, 0xbc94, 0xbd94, 0xbe94, 0xbf94, 0xc094, 0xc194, 0xc294, 0xc394, 0xc4ce, 0xc494, 0xc594, 0xc694, 0xabd5, 0xf3b1, 0xc794, 0xc894, 0xc994, 0xb3ec, 0xdfb0, 0xca94, 0xb5ec, 0xcb94, 0xcc94, 0xcd94, 0xb7b6, 0xce94, 0xcfc1, 0xcf94, 0xfaf5, 0xb1d0, 0xd094, 0xd194, 0xe5d5, 0xd294, 0xd3ce, 0xd394, 0xd494, 0xefbd, 0xe2b3, 0xd594, 0xabb8, 0xd694, 0xb6d5, 0xd794, 0xbded, 0xd894, 0xcfb6, 0xd994, 0xb9cb, 0xc2d0, 0xda94, 0xdb94, 0xdc94, 0xdd94, 0xde94, 0xdf94, 0xe094, 0xe194, 0xbdb7, 0xe294, 0xe394, 0xb6ec, 0xa9ca, 0xe494, 0xe594, 0xe694, 0xd4c5, 0xe794, 0xb9ec, 0xb8ec, 0xc3c2, 0xb7ec, 0xe894, 0xe994, 0xea94, 0xeb94, 0xfdd0, 0xbaec, 0xec94, 0xbbec, 0xe5d7, 0xed94, 0xee94, 0xbcec, 0xef94, 0xf094, 0xf194, 0xbdec, 0xecc6, 0xf294, 0xf394, 0xf494, 0xf594, 0xf694, 0xf794, 0xf894, 0xf994, 0xdece, 0xfa94, 0xc8bc, 0xfb94, 0xfc94, 0xd5c8, 0xa9b5, 0xc9be, 0xbcd6, 0xe7d4, 0xfd94, 0xfe94, 0xaed1, 0xf1d0, 0xb8ea, 0xb9ea, 0xbaea, 0xb5ba, 0x4095, 0x4195, 0x4295, 0x4395, 0xb1ca, 0xf5bf, 0x4495, 0x4595, 0xfacd, 0x4695, 0x4795, 0x4895, 0x4995, 0x4a95, 0xc0ea, 0x4b95, 0xbab0, 0xbeea, 0x4c95, 0x4d95, 0xa5c0, 0x4e95, 0x4f95, 0x5095, 0xbbea, 0x5195, 0xfdb2, 0x5295, 0xf7c3, 0xe8bb, 0x5395, 0x5495, 0x5595, 0xd7d2, 0xf4ce, 0xbfea, 0x5695, 0x5795, 0x5895, 0xbcea, 0x5995, 0x5a95, 0x5b95, 0xc3ea, 0x5c95, 0xc7d0, 0xb3d3, 0x5d95, 0x5e95, 0x5f95, 0x6095, 0xbab4, 0x6195, 0xc1c3, 0xf2d7, 0x6295, 0x6395, 0x6495, 0x6595, 0xd1d5, 0x6695, 0xc7ca, 0x6795, 0xc5ea, 0x6895, 0x6995, 0xc4ea, 0xc7ea, 0xc6ea, 0x6a95, 0x6b95, 0x6c95, 0x6d95, 0x6e95, 0xe7d6, 0x6f95, 0xd4cf, 0x7095, 0x7195, 0xcbea, 0x7295, 0xcebb, 0x7395, 0x7495, 0x7595, 0x7695, 0x7795, 0x7895, 0x7995, 0xfabd, 0xcec9, 0x7a95, 0x7b95, 0xccea, 0x7c95, 0x7d95, 0xb9c9, 0xfecf, 0xcaea, 0xced4, 0xcdea, 0xcfea, 0x7e95, 0x8095, 0xedcd, 0x8195, 0x8295, 0x8395, 0x8495, 0xc9ea, 0x8595, 0xceea, 0x8695, 0x8795, 0xeece, 0x8895, 0xdebb, 0x8995, 0xbfb3, 0x8a95, 0x8b95, 0x8c95, 0x8d95, 0x8e95, 0xd5c6, 0xb0be, 0xface, 0x8f95, 0x9095, 0x9195, 0xe7c7, 0x9295, 0xa7be, 0xd0ea, 0x9395, 0x9495, 0xc7d6, 0x9595, 0x9695, 0x9795, 0xc0c1, 0x9895, 0x9995, 0x9a95, 0xddd4, 0x9b95, 0xd1ea, 0x9c95, 0x9d95, 0xbecf, 0x9e95, 0x9f95, 0xa095, 0xa195, 0xd2ea, 0xa295, 0xa395, 0xa495, 0xa595, 0xeeca, 0xa695, 0xa795, 0xa895, 0xa995, 0xafc5, 0xb5b0, 0xaa95, 0xab95, 0xac95, 0xad95, 0xae95, 0xd4ea, 0xaf95, 0xb095, 0xb195, 0xb295, 0xb395, 0xb495, 0xb595, 0xb695, 0xb795, 0xd3ea, 0xdff4, 0xb895, 0xb995, 0xba95, 0xbb95, 0xbc95, 0xbac4, 0xbd95, 0xbe95, 0xbf95, 0xc095, 0xc195, 0xa9b1, 0xc295, 0xc395, 0xc495, 0xc595, 0xdfe5, 0xc695, 0xc795, 0xc895, 0xc995, 0xd5ea, 0xca95, 0xcb95, 0xcc95, 0xcd95, 0xce95, 0xcf95, 0xd095, 0xd195, 0xd295, 0xd395, 0xd495, 0xd595, 0xd695, 0xd795, 0xd895, 0xd995, 0xda95, 0xdb95, 0xdc95, 0xdd95, 0xde95, 0xdf95, 0xe095, 0xe195, 0xe295, 0xe395, 0xefca, 0xe495, 0xd6ea, 0xd7ea, 0xd8c6, 0xe595, 0xe695, 0xe795, 0xe895, 0xe995, 0xea95, 0xeb95, 0xec95, 0xd8ea, 0xed95, 0xee95, 0xd9ea, 0xef95, 0xf095, 0xf195, 0xf295, 0xf395, 0xf495, 0xbbd4, 0xf595, 0xfac7, 0xb7d2, 0xfcb8, 0xf695, 0xf795, 0xc2ea, 0xf895, 0xdcb2, 0xf995, 0xfa95, 0xfcc2, 0xfb95, 0xf8d4, 0xe6cc, 0xeed7, 0xfc95, 0xfd95, 0xfe95, 0x4096, 0x4196, 0x4296, 0x4396, 0xc2d4, 0xd0d3, 0xc3eb, 0xf3c5, 0x4496, 0xfeb7, 0x4596, 0x4696, 0xd4eb, 0x4796, 0x4896, 0x4996, 0xb7cb, 0xdeeb, 0x4a96, 0xcac0, 0x4b96, 0x4c96, 0x4d96, 0xfbcd, 0x4e96, 0xafb3, 0x4f96, 0xdac6, 0x5096, 0x5196, 0x5296, 0x5396, 0x5496, 0x5596, 0xfceb, 0x5696, 0xbec4, 0x5796, 0xb4ce, 0xa9c4, 0xbeb1, 0xfdd4, 0x5896, 0xf5ca, 0x5996, 0xecd6, 0x5a96, 0x5b96, 0xd3c6, 0xe4b6, 0x5c96, 0x5d96, 0x5e96, 0x5f96, 0xfabb, 0x6096, 0x6196, 0xe0d0, 0x6296, 0x6396, 0xb1c9, 0x6496, 0xd3d4, 0xa8c8, 0x6596, 0x6696, 0xcbb8, 0x6796, 0xbee8, 0xbcc9, 0x6896, 0x6996, 0xbbe8, 0x6a96, 0xeec0, 0xd3d0, 0xc4b2, 0xe5b4, 0x6b96, 0xbce8, 0x6c96, 0x6d96, 0xc8d5, 0x6e96, 0x6f96, 0x7096, 0x7196, 0x7296, 0xc5b6, 0x7396, 0xbde8, 0xf8ca, 0xdcb8, 0xf5cc, 0x7496, 0x7596, 0x7696, 0xb4c0, 0x7796, 0x7896, 0xeed1, 0xbfe8, 0xc2e8, 0x7996, 0x7a96, 0xbcba, 0x7b96, 0xadb1, 0xdcbd, 0x7c96, 0xbdea, 0xc3e8, 0x7d96, 0xc6e8, 0x7e96, 0xcbe8, 0x8096, 0x8196, 0x8296, 0x8396, 0xcce8, 0x8496, 0xc9cb, 0xe5b0, 0x8596, 0xabbc, 0x8696, 0x8796, 0xb9b9, 0x8896, 0x8996, 0xc1e8, 0x8a96, 0xf7cd, 0x8b96, 0xcae8, 0x8c96, 0x8d96, 0x8e96, 0x8f96, 0xf6ce, 0x9096, 0x9196, 0x9296, 0x9396, 0xedd5, 0x9496, 0xd6c1, 0xc4e8, 0x9596, 0xb6c3, 0x9696, 0xfbb9, 0xa6d6, 0xc8e8, 0x9796, 0x9896, 0x9996, 0xe0ca, 0xe6d4, 0x9a96, 0xc0e8, 0x9b96, 0xc5e8, 0xc7e8, 0x9c96, 0xb9c7, 0xe3b7, 0x9d96, 0xc9e8, 0x9e96, 0xddbf, 0xd2e8, 0x9f96, 0xa096, 0xd7e8, 0xa196, 0xd5e8, 0xdcbc, 0xcfbc, 0xdbe8, 0xa296, 0xa396, 0xa496, 0xa596, 0xa696, 0xa796, 0xa896, 0xa996, 0xdee8, 0xaa96, 0xdae8, 0xfab1, 0xab96, 0xac96, 0xad96, 0xae96, 0xaf96, 0xb096, 0xb196, 0xb296, 0xb396, 0xb496, 0xd8b0, 0xb3c4, 0xccb8, 0xe2c6, 0xbec8, 0xe1c8, 0xb596, 0xb696, 0xb796, 0xcfe8, 0xd4e8, 0xd6e8, 0xb896, 0xf1b9, 0xd8e8, 0xf5d7, 0xb996, 0xfbc4, 0xba96, 0xdce8, 0xbb96, 0xbc96, 0xe9b2, 0xbd96, 0xbe96, 0xbf96, 0xd1e8, 0xc096, 0xc196, 0xedbc, 0xc296, 0xc396, 0xc2bf, 0xcde8, 0xf9d6, 0xc496, 0xf8c1, 0xf1b2, 0xc596, 0xc696, 0xc796, 0xc896, 0xc996, 0xca96, 0xcb96, 0xcc96, 0xdfe8, 0xcd96, 0xc1ca, 0xd9e8, 0xce96, 0xcf96, 0xd096, 0xd196, 0xa4d5, 0xd296, 0xeab1, 0xbbd5, 0xcee8, 0xd0e8, 0xb0b6, 0xd3e8, 0xd396, 0xdde8, 0xb8c0, 0xd496, 0xf7ca, 0xd596, 0xa8cb, 0xd696, 0xd796, 0xdcc6, 0xf5c0, 0xd896, 0xd996, 0xda96, 0xdb96, 0xdc96, 0xe9e8, 0xdd96, 0xde96, 0xdf96, 0xa3d0, 0xe096, 0xe196, 0xe296, 0xe396, 0xe496, 0xe596, 0xe696, 0xf2e8, 0xead6, 0xe796, 0xe896, 0xe996, 0xea96, 0xeb96, 0xec96, 0xed96, 0xe0e8, 0xe1e8, 0xee96, 0xef96, 0xf096, 0xf9d1, 0xcbba, 0xf9b8, 0xf196, 0xf296, 0xf1b8, 0xd4d4, 0xefe8, 0xf396, 0xeee8, 0xece8, 0xf0b9, 0xd2cc, 0xe6e8, 0xa6ce, 0xf2bf, 0xf496, 0xb8b0, 0xf1e8, 0xf0e8, 0xf596, 0xc0d7, 0xf696, 0xe4e8, 0xf796, 0xa9cd, 0xa3c9, 0xf896, 0xb8bb, 0xdbbd, 0xeae8, 0xf996, 0xfa96, 0xfb96, 0xfc96, 0xfd96, 0xfe96, 0x4097, 0x4197, 0x4297, 0x4397, 0xe2e8, 0xe3e8, 0xe5e8, 0xb5b5, 0xe7e8, 0xc5c7, 0xebe8, 0xede8, 0xb0bd, 0xaed7, 0x4497, 0xf8e8, 0x4597, 0x4697, 0x4797, 0x4897, 0x4997, 0x4a97, 0x4b97, 0x4c97, 0xf5e8, 0x4d97, 0xb0cd, 0xf6e8, 0x4e97, 0x4f97, 0x5097, 0x5197, 0x5297, 0x5397, 0x5497, 0x5597, 0x5697, 0xbac1, 0x5797, 0xe8e8, 0x5897, 0xb7c3, 0xf0b0, 0x5997, 0x5a97, 0x5b97, 0x5c97, 0x5d97, 0x5e97, 0x5f97, 0x6097, 0xf4e8, 0x6197, 0x6297, 0x6397, 0xf7e8, 0x6497, 0x6597, 0x6697, 0xa3b9, 0x6797, 0x6897, 0x6997, 0x6a97, 0x6b97, 0x6c97, 0x6d97, 0x6e97, 0x6f97, 0x7097, 0xd2c9, 0x7197, 0x7297, 0x7397, 0xcec3, 0xe0ce, 0xe6c0, 0x7497, 0x7597, 0x7697, 0x7797, 0xf3cb, 0x7897, 0xddcc, 0xb5d0, 0x7997, 0x7a97, 0xe1ca, 0x7b97, 0xf3e8, 0x7c97, 0x7d97, 0x7e97, 0x8097, 0x8197, 0x8297, 0x8397, 0x8497, 0x8597, 0x8697, 0xecbc, 0x8797, 0xf9e8, 0x8897, 0x8997, 0x8a97, 0x8b97, 0x8c97, 0x8d97, 0xdec3, 0x8e97, 0xe5c6, 0x8f97, 0xf7b9, 0x9097, 0x9197, 0x9297, 0x9397, 0xf4b0, 0x9497, 0x9597, 0xd8d7, 0x9697, 0x9797, 0xacbc, 0x9897, 0xefc5, 0x9997, 0x9a97, 0x9b97, 0x9c97, 0x9d97, 0xc4cc, 0x9e97, 0x9f97, 0xa6e9, 0xa097, 0xa197, 0xa297, 0xa397, 0xa497, 0xa597, 0xa697, 0xa797, 0xa897, 0xa997, 0xadc9, 0xaa97, 0xa2e9, 0xe2c0, 0xab97, 0xac97, 0xad97, 0xc3bf, 0xae97, 0xaf97, 0xb097, 0xfee8, 0xd7b9, 0xb197, 0xfbe8, 0xb297, 0xb397, 0xb497, 0xb597, 0xa4e9, 0xb697, 0xb797, 0xb897, 0xced2, 0xb997, 0xba97, 0xbb97, 0xbc97, 0xbd97, 0xa3e9, 0xbe97, 0xb2d6, 0xb5d7, 0xbf97, 0xa7e9, 0xc097, 0xb7bd, 0xc197, 0xc297, 0xc397, 0xc497, 0xc597, 0xc697, 0xc797, 0xc897, 0xc997, 0xca97, 0xcb97, 0xcc97, 0xfce8, 0xfde8, 0xcd97, 0xce97, 0xcf97, 0xa1e9, 0xd097, 0xd197, 0xd297, 0xd397, 0xd497, 0xd597, 0xd697, 0xd797, 0xd6cd, 0xd897, 0xd997, 0xacd2, 0xda97, 0xdb97, 0xdc97, 0xb2e9, 0xdd97, 0xde97, 0xdf97, 0xe097, 0xa9e9, 0xe197, 0xe297, 0xe397, 0xaab4, 0xe497, 0xbbb4, 0xe597, 0xe697, 0xabe9, 0xe797, 0xe897, 0xe997, 0xea97, 0xeb97, 0xec97, 0xed97, 0xee97, 0xef97, 0xf097, 0xf197, 0xf297, 0xf397, 0xf497, 0xf597, 0xf697, 0xf797, 0xa8d0, 0xf897, 0xf997, 0xa5e9, 0xfa97, 0xfb97, 0xfeb3, 0xfc97, 0xfd97, 0xace9, 0xe3c0, 0xfe97, 0xaae9, 0x4098, 0x4198, 0xb9e9, 0x4298, 0x4398, 0xb8e9, 0x4498, 0x4598, 0x4698, 0x4798, 0xaee9, 0x4898, 0x4998, 0xfae8, 0x4a98, 0x4b98, 0xa8e9, 0x4c98, 0x4d98, 0x4e98, 0x4f98, 0x5098, 0xacbf, 0xb1e9, 0xbae9, 0x5198, 0x5298, 0xa5c2, 0x5398, 0x5498, 0x5598, 0xafe9, 0x5698, 0xc5b8, 0x5798, 0xade9, 0x5898, 0xdcd3, 0xb4e9, 0xb5e9, 0xb7e9, 0x5998, 0x5a98, 0x5b98, 0xc7e9, 0x5c98, 0x5d98, 0x5e98, 0x5f98, 0x6098, 0x6198, 0xc6c0, 0xc5e9, 0x6298, 0x6398, 0xb0e9, 0x6498, 0x6598, 0xbbe9, 0xf1b0, 0x6698, 0x6798, 0x6898, 0x6998, 0x6a98, 0x6b98, 0x6c98, 0x6d98, 0x6e98, 0x6f98, 0xbce9, 0xa5d5, 0x7098, 0x7198, 0xbee9, 0x7298, 0xbfe9, 0x7398, 0x7498, 0x7598, 0xc1e9, 0x7698, 0x7798, 0xf1c1, 0x7898, 0x7998, 0xb6c8, 0x7a98, 0x7b98, 0x7c98, 0xbde9, 0x7d98, 0x7e98, 0x8098, 0x8198, 0x8298, 0xc2e9, 0x8398, 0x8498, 0x8598, 0x8698, 0x8798, 0x8898, 0x8998, 0x8a98, 0xc3e9, 0x8b98, 0xb3e9, 0x8c98, 0xb6e9, 0x8d98, 0xb1bb, 0x8e98, 0x8f98, 0x9098, 0xc0e9, 0x9198, 0x9298, 0x9398, 0x9498, 0x9598, 0x9698, 0xf7bc, 0x9798, 0x9898, 0x9998, 0xc4e9, 0xc6e9, 0x9a98, 0x9b98, 0x9c98, 0x9d98, 0x9e98, 0x9f98, 0xa098, 0xa198, 0xa298, 0xa398, 0xa498, 0xa598, 0xcae9, 0xa698, 0xa798, 0xa898, 0xa998, 0xcee9, 0xaa98, 0xab98, 0xac98, 0xad98, 0xae98, 0xaf98, 0xb098, 0xb198, 0xb298, 0xb398, 0xdbb2, 0xb498, 0xc8e9, 0xb598, 0xb698, 0xb798, 0xb898, 0xb998, 0xba98, 0xbb98, 0xbc98, 0xbd98, 0xbe98, 0xaeb7, 0xbf98, 0xc098, 0xc198, 0xc298, 0xc398, 0xc498, 0xc598, 0xc698, 0xc798, 0xc898, 0xc998, 0xca98, 0xcbe9, 0xcce9, 0xcb98, 0xcc98, 0xcd98, 0xce98, 0xcf98, 0xd098, 0xc1d5, 0xd198, 0xa3c4, 0xd298, 0xd398, 0xd498, 0xd598, 0xd698, 0xd798, 0xd8e9, 0xd898, 0xe1ba, 0xd998, 0xda98, 0xdb98, 0xdc98, 0xc9e9, 0xdd98, 0xa3d3, 0xde98, 0xdf98, 0xe098, 0xd4e9, 0xe198, 0xe298, 0xe398, 0xe498, 0xe598, 0xe698, 0xe798, 0xd7e9, 0xd0e9, 0xe898, 0xe998, 0xea98, 0xeb98, 0xec98, 0xcfe9, 0xed98, 0xee98, 0xc1c7, 0xef98, 0xf098, 0xf198, 0xf298, 0xf398, 0xf498, 0xf598, 0xf698, 0xd2e9, 0xf798, 0xf898, 0xf998, 0xfa98, 0xfb98, 0xfc98, 0xfd98, 0xd9e9, 0xc8b3, 0xfe98, 0xd3e9, 0x4099, 0x4199, 0x4299, 0x4399, 0x4499, 0xf0cf, 0x4599, 0x4699, 0x4799, 0xcde9, 0x4899, 0x4999, 0x4a99, 0x4b99, 0x4c99, 0x4d99, 0x4e99, 0x4f99, 0x5099, 0x5199, 0x5299, 0xf7b3, 0x5399, 0x5499, 0x5599, 0x5699, 0x5799, 0x5899, 0x5999, 0xd6e9, 0x5a99, 0x5b99, 0xdae9, 0x5c99, 0x5d99, 0x5e99, 0xb4cc, 0x5f99, 0x6099, 0x6199, 0xadcf, 0x6299, 0x6399, 0x6499, 0x6599, 0x6699, 0x6799, 0x6899, 0x6999, 0x6a99, 0xd5e9, 0x6b99, 0xdce9, 0xdbe9, 0x6c99, 0x6d99, 0x6e99, 0x6f99, 0x7099, 0xdee9, 0x7199, 0x7299, 0x7399, 0x7499, 0x7599, 0x7699, 0x7799, 0x7899, 0xd1e9, 0x7999, 0x7a99, 0x7b99, 0x7c99, 0x7d99, 0x7e99, 0x8099, 0x8199, 0xdde9, 0x8299, 0xdfe9, 0xcac3, 0x8399, 0x8499, 0x8599, 0x8699, 0x8799, 0x8899, 0x8999, 0x8a99, 0x8b99, 0x8c99, 0x8d99, 0x8e99, 0x8f99, 0x9099, 0x9199, 0x9299, 0x9399, 0x9499, 0x9599, 0x9699, 0x9799, 0x9899, 0x9999, 0x9a99, 0x9b99, 0x9c99, 0x9d99, 0x9e99, 0x9f99, 0xa099, 0xa199, 0xa299, 0xa399, 0xa499, 0xa599, 0xa699, 0xa799, 0xa899, 0xa999, 0xaa99, 0xab99, 0xac99, 0xad99, 0xae99, 0xaf99, 0xb099, 0xb199, 0xb299, 0xb399, 0xb499, 0xb599, 0xb699, 0xb799, 0xb899, 0xb999, 0xba99, 0xbb99, 0xbc99, 0xbd99, 0xbe99, 0xbf99, 0xc099, 0xc199, 0xc299, 0xc399, 0xc499, 0xc599, 0xc699, 0xc799, 0xc899, 0xc999, 0xca99, 0xcb99, 0xcc99, 0xcd99, 0xce99, 0xcf99, 0xd099, 0xd199, 0xd299, 0xd399, 0xd499, 0xd599, 0xd699, 0xd799, 0xd899, 0xd999, 0xda99, 0xdb99, 0xdc99, 0xdd99, 0xde99, 0xdf99, 0xe099, 0xe199, 0xe299, 0xe399, 0xe499, 0xe599, 0xe699, 0xe799, 0xe899, 0xe999, 0xea99, 0xeb99, 0xec99, 0xed99, 0xee99, 0xef99, 0xf099, 0xf199, 0xf299, 0xf399, 0xf499, 0xf599, 0xb7c7, 0xceb4, 0xb6bb, 0xc0d0, 0xa3ec, 0xf699, 0xf799, 0xb7c5, 0xf899, 0xf999, 0xfa99, 0xfb99, 0xfc99, 0xfd99, 0xfe99, 0x409a, 0x419a, 0x429a, 0xfbd3, 0x439a, 0x449a, 0x459a, 0x469a, 0xa4ec, 0x479a, 0xa5ec, 0xdbc6, 0x489a, 0x499a, 0x4a9a, 0xeebf, 0x4b9a, 0x4c9a, 0x4d9a, 0x4e9a, 0xa6ec, 0x4f9a, 0x509a, 0xa7ec, 0xaad0, 0x519a, 0xb8c7, 0x529a, 0x539a, 0xe8b8, 0x549a, 0x559a, 0x569a, 0x579a, 0x589a, 0x599a, 0x5a9a, 0x5b9a, 0x5c9a, 0x5d9a, 0x5e9a, 0x5f9a, 0xa8ec, 0x609a, 0x619a, 0x629a, 0x639a, 0x649a, 0x659a, 0x669a, 0x679a, 0xb9d6, 0xfdd5, 0xcbb4, 0xbdb2, 0xe4ce, 0xe7c6, 0x689a, 0x699a, 0xe1cd, 0x6a9a, 0x6b9a, 0x6c9a, 0x6d9a, 0x6e9a, 0x6f9a, 0x709a, 0x719a, 0x729a, 0x739a, 0x749a, 0x759a, 0x769a, 0x779a, 0xf5b4, 0x789a, 0xc0cb, 0xdfbc, 0x799a, 0x7a9a, 0x7b9a, 0x7c9a, 0xe2e9, 0xe3e9, 0xead1, 0xe5e9, 0x7d9a, 0xf9b4, 0xe4e9, 0x7e9a, 0xb3d1, 0xe2ca, 0xd0b2, 0x809a, 0xe8e9, 0x819a, 0x829a, 0x839a, 0x849a, 0xe6e9, 0xe7e9, 0x859a, 0x869a, 0xb3d6, 0x879a, 0x889a, 0x899a, 0xe9e9, 0xeae9, 0x8a9a, 0x8b9a, 0x8c9a, 0x8d9a, 0x8e9a, 0xebe9, 0x8f9a, 0x909a, 0x919a, 0x929a, 0x939a, 0x949a, 0x959a, 0x969a, 0xece9, 0x979a, 0x989a, 0x999a, 0x9a9a, 0x9b9a, 0x9c9a, 0x9d9a, 0x9e9a, 0xafec, 0xb9c5, 0xceb6, 0x9f9a, 0xf3d2, 0xa09a, 0xa19a, 0xa29a, 0xa39a, 0xa49a, 0xa59a, 0xa69a, 0xeeb5, 0xa79a, 0xd9bb, 0xb1ec, 0xa89a, 0xa99a, 0xe3d2, 0xaa9a, 0xab9a, 0xac9a, 0xad9a, 0xae9a, 0xe3ce, 0xaf9a, 0xb8c4, 0xb09a, 0xbfc3, 0xb19a, 0xb29a, 0xbeb6, 0xb9d8, 0xc8b1, 0xcfb1, 0xd1b1, 0xfec5, 0xb39a, 0xd0b1, 0xb49a, 0xabc3, 0xb59a, 0xb69a, 0xb79a, 0xb89a, 0xb99a, 0xb1d5, 0xba9a, 0xbb9a, 0xbc9a, 0xbd9a, 0xbe9a, 0xbf9a, 0xc09a, 0xc19a, 0xa4eb, 0xc1ba, 0xc29a, 0xc39a, 0xc49a, 0xbacc, 0xc59a, 0xc69a, 0xc79a, 0xa5eb, 0xc89a, 0xa7eb, 0xc99a, 0xca9a, 0xcb9a, 0xa8eb, 0xcc9a, 0xcd9a, 0xce9a, 0xa6eb, 0xcf9a, 0xd09a, 0xd19a, 0xd29a, 0xd39a, 0xd49a, 0xd59a, 0xa9eb, 0xabeb, 0xaaeb, 0xd69a, 0xd79a, 0xd89a, 0xd99a, 0xda9a, 0xaceb, 0xdb9a, 0xcfca, 0xb5d8, 0xf1c3, 0xdc9a, 0xa5c3, 0xf8c6, 0xadeb, 0xcac4, 0xdd9a, 0xaeeb, 0xafeb, 0xb0eb, 0xd5b7, 0xde9a, 0xdf9a, 0xe09a, 0xfab7, 0xe19a, 0xb1eb, 0xe2c7, 0xe29a, 0xb3eb, 0xe39a, 0xa4ba, 0xf5d1, 0xb1b0, 0xb2eb, 0xb4eb, 0xe49a, 0xe59a, 0xe69a, 0xaab5, 0xc8c2, 0xe8c7, 0xe79a, 0xb5eb, 0xe89a, 0xaecb, 0xdfe3, 0xe99a, 0xea9a, 0xc0d3, 0xeb9a, 0xec9a, 0xed9a, 0xee9a, 0xdbd9, 0xef9a, 0xf09a, 0xa1cd, 0xadd6, 0xf3c7, 0xf19a, 0xf29a, 0xf39a, 0xe0d9, 0xe3bb, 0xf49a, 0xbaba, 0xe2e3, 0xf59a, 0xf69a, 0xf79a, 0xf89a, 0xf99a, 0xabcf, 0xfa9a, 0xfb9a, 0xfc9a, 0xe0e3, 0xc7c9, 0xfd9a, 0xb9ba, 0xfe9a, 0x409b, 0x419b, 0xb4d1, 0xe1e3, 0xeac8, 0xafb9, 0xadbd, 0xd8b3, 0xdbce, 0x429b, 0x439b, 0xc0cc, 0x449b, 0x459b, 0x469b, 0xe8e3, 0xe9e3, 0xf4cd, 0x479b, 0x489b, 0x499b, 0x4a9b, 0x4b9b, 0xadcc, 0x4c9b, 0xb3bc, 0x4d9b, 0xeae3, 0x4e9b, 0xebe3, 0x4f9b, 0x509b, 0xdad0, 0x519b, 0x529b, 0x539b, 0xfbc6, 0xdab7, 0x549b, 0x559b, 0xdfc7, 0xcad2, 0xd6ce, 0x569b, 0xe4e3, 0xece3, 0x579b, 0xf2c9, 0xc1b3, 0x589b, 0x599b, 0xe7e3, 0x5a9b, 0x5b9b, 0xe3c6, 0xe5e3, 0x5c9b, 0x5d9b, 0xb3ed, 0xe6e3, 0x5e9b, 0x5f9b, 0x609b, 0x619b, 0xb3c9, 0x629b, 0xe6c5, 0x639b, 0x649b, 0x659b, 0xb5b9, 0x669b, 0xbbc3, 0x679b, 0xe3e3, 0xbdc5, 0xa4c1, 0xd9c2, 0xd7b2, 0x689b, 0xede3, 0xa6bb, 0xadc4, 0x699b, 0xf0e3, 0xdabe, 0x6a9b, 0x6b9b, 0xfbe3, 0xf5e3, 0xd3ba, 0x6c9b, 0x6d9b, 0x6e9b, 0x6f9b, 0xd0b7, 0xcdd3, 0x709b, 0xced6, 0xd3d5, 0xc1b9, 0xb4d5, 0xd8d1, 0x719b, 0x729b, 0x739b, 0x749b, 0xb9d0, 0xf6c7, 0x759b, 0x769b, 0x779b, 0xaac8, 0xb4b2, 0x789b, 0xdac3, 0x799b, 0x7a9b, 0x7b9b, 0xeee3, 0x7c9b, 0x7d9b, 0xfce3, 0xefe3, 0xa8b7, 0xf7e3, 0xf4e3, 0x7e9b, 0x809b, 0x819b, 0xbab7, 0x829b, 0x839b, 0xa2c5, 0x849b, 0xf6e3, 0xddc5, 0xa8b2, 0xfcc6, 0x859b, 0xe0c4, 0x869b, 0x879b, 0xa2d7, 0x889b, 0xe1c0, 0xf9e3, 0x899b, 0x8a9b, 0xfae3, 0xfde3, 0xa9cc, 0xf3e3, 0x8b9b, 0xbed3, 0x8c9b, 0xc3b1, 0xb4ed, 0xf1e3, 0xf2e3, 0x8d9b, 0xf8e3, 0xbad0, 0xc3c6, 0xf3d4, 0xfee3, 0x8e9b, 0x8f9b, 0xe0bd, 0x909b, 0x919b, 0xa7e4, 0x929b, 0x939b, 0xa6e4, 0x949b, 0x959b, 0x969b, 0xf3d1, 0xa3e4, 0x979b, 0xa9e4, 0x989b, 0x999b, 0x9a9b, 0xf7c8, 0x9b9b, 0x9c9b, 0x9d9b, 0x9e9b, 0xb4cf, 0x9f9b, 0xa8e4, 0xaee4, 0xe5c2, 0xa09b, 0xa19b, 0xb4b6, 0xa29b, 0xa39b, 0xa49b, 0xa59b, 0xa69b, 0xa79b, 0xf2bd, 0xa89b, 0xa2e4, 0xa99b, 0xaa9b, 0xe9ba, 0xaae4, 0xab9b, 0xac9b, 0xace4, 0xad9b, 0xae9b, 0xfdb6, 0xded6, 0xb2e4, 0xaf9b, 0xade4, 0xb09b, 0xb19b, 0xb29b, 0xa1e4, 0xb39b, 0xeebb, 0xddcd, 0xa2c7, 0xc9c5, 0xb49b, 0xb59b, 0xf7c1, 0xb69b, 0xa4e4, 0xb79b, 0xb3c7, 0xacbd, 0xbdbd, 0xa5e4, 0xb89b, 0xc7d7, 0xe2b2, 0xb99b, 0xabe4, 0xc3bc, 0xafe4, 0xba9b, 0xebbb, 0xb0e4, 0xa8c5, 0xb1e4, 0xbb9b, 0xbc9b, 0xbd9b, 0xbe9b, 0xe3d5, 0xa3bf, 0xbf9b, 0xbae4, 0xc09b, 0xb7e4, 0xc19b, 0xbbe4, 0xc29b, 0xc39b, 0xbde4, 0xc49b, 0xc59b, 0xd6c6, 0xc69b, 0xc79b, 0xc6ba, 0xcbc0, 0xc89b, 0xc99b, 0xca9b, 0xa1b8, 0xb4e4, 0xcb9b, 0xcc9b, 0xcd9b, 0xce9b, 0xa1d4, 0xcf9b, 0xd09b, 0xa3ba, 0xfebd, 0xd19b, 0xd29b, 0xd39b, 0xbce4, 0xd49b, 0xd59b, 0xd69b, 0xd79b, 0xd89b, 0xbfcd, 0xd99b, 0xda9b, 0xf9c4, 0xdb9b, 0xdc9b, 0xfbcf, 0xe6c9, 0xdd9b, 0xde9b, 0xbfd3, 0xdf9b, 0xd1cf, 0xe09b, 0xe19b, 0xb3e4, 0xe29b, 0xb8e4, 0xb9e4, 0xe9cc, 0xe39b, 0xe49b, 0xe59b, 0xe69b, 0xe79b, 0xcecc, 0xe89b, 0xd4c0, 0xb5e4, 0xb0c1, 0xb6e4, 0xd0ce, 0xe99b, 0xc1bb, 0xd3b5, 0xea9b, 0xf3c8, 0xa7bd, 0xc7d5, 0xacc9, 0xa2b8, 0xcae4, 0xeb9b, 0xec9b, 0xcce4, 0xc4d1, 0xed9b, 0xee9b, 0xbad2, 0xef9b, 0xf09b, 0xadba, 0xf19b, 0xf29b, 0xd4ba, 0xf39b, 0xf49b, 0xf59b, 0xf69b, 0xf79b, 0xf89b, 0xc3e4, 0xedb5, 0xf99b, 0xfa9b, 0xfb9b, 0xcdd7, 0xc0e4, 0xfdcf, 0xbfe4, 0xfc9b, 0xfd9b, 0xfe9b, 0xdcc1, 0xcacc, 0x409c, 0x419c, 0x429c, 0x439c, 0xe7ca, 0x449c, 0x459c, 0x469c, 0x479c, 0xd7c4, 0x489c, 0xd4cc, 0xc8e4, 0x499c, 0x4a9c, 0x4b9c, 0xc7e4, 0xc1e4, 0x4c9c, 0xc4e4, 0xadb5, 0x4d9c, 0x4e9c, 0xd9d3, 0x4f9c, 0xc6e4, 0x509c, 0x519c, 0x529c, 0x539c, 0xf9d2, 0xe3b4, 0x549c, 0xb4bb, 0x559c, 0x569c, 0xeec9, 0x579c, 0xbeb4, 0x589c, 0x599c, 0x5a9c, 0xecbb, 0x5b9c, 0xcdd1, 0x5c9c, 0xedcc, 0xb5ed, 0x5d9c, 0x5e9c, 0x5f9c, 0x609c, 0x619c, 0x629c, 0x639c, 0x649c, 0xe5c7, 0x659c, 0x669c, 0x679c, 0x689c, 0xa8d4, 0x699c, 0xcbe4, 0xd5d7, 0xc2e4, 0x6a9c, 0xa5bd, 0xc5e4, 0x6b9c, 0x6c9c, 0xe6d3, 0x6d9c, 0xc9e4, 0xf8c9, 0x6e9c, 0x6f9c, 0xbee4, 0x709c, 0x719c, 0xe5d3, 0x729c, 0x739c, 0xfec7, 0xc9b6, 0x749c, 0xfcd4, 0xb3b2, 0xd7e4, 0x759c, 0x769c, 0x779c, 0xc2ce, 0x789c, 0xcde4, 0x799c, 0xbcce, 0x7a9c, 0xdbb8, 0x7b9c, 0x7c9c, 0xd6e4, 0x7d9c, 0xcabf, 0x7e9c, 0x809c, 0x819c, 0xced3, 0x829c, 0xecc3, 0x839c, 0x849c, 0x859c, 0x869c, 0x879c, 0x889c, 0x899c, 0x8a9c, 0xc8c5, 0xd8e4, 0x8b9c, 0x8c9c, 0x8d9c, 0x8e9c, 0x8f9c, 0x909c, 0x919c, 0x929c, 0xc4cd, 0xcfe4, 0x939c, 0x949c, 0x959c, 0x969c, 0xd4e4, 0xd5e4, 0x979c, 0xfeba, 0x989c, 0xe6cf, 0x999c, 0x9a9c, 0xbfd5, 0x9b9c, 0x9c9c, 0x9d9c, 0xd2e4, 0x9e9c, 0x9f9c, 0xa09c, 0xa19c, 0xa29c, 0xa39c, 0xa49c, 0xa59c, 0xa69c, 0xa79c, 0xa89c, 0xd0e4, 0xa99c, 0xaa9c, 0xcee4, 0xab9c, 0xac9c, 0xad9c, 0xae9c, 0xaf9c, 0xb09c, 0xb19c, 0xb29c, 0xb39c, 0xb49c, 0xb59c, 0xb69c, 0xb79c, 0xb89c, 0xb99c, 0xe5cd, 0xaaca, 0xba9c, 0xbb9c, 0xbc9c, 0xa3c0, 0xbd9c, 0xa6bd, 0xd3e4, 0xbe9c, 0xbf9c, 0xc8b8, 0xc09c, 0xc19c, 0xc29c, 0xc39c, 0xc49c, 0xe7e4, 0xb4d4, 0xc59c, 0xc69c, 0xc79c, 0xc89c, 0xc99c, 0xca9c, 0xcb9c, 0xdbe4, 0xcc9c, 0xcd9c, 0xce9c, 0xefc1, 0xcf9c, 0xd09c, 0xe9e4, 0xd19c, 0xd29c, 0xe7d2, 0xd39c, 0xd49c, 0xdfe4, 0xd59c, 0xe0e4, 0xd69c, 0xd79c, 0xaacf, 0xd89c, 0xd99c, 0xda9c, 0xdb9c, 0xddcb, 0xdc9c, 0xdae4, 0xd1e4, 0xdd9c, 0xe5e4, 0xde9c, 0xdcc8, 0xe3e4, 0xdf9c, 0xe09c, 0xe7c4, 0xe2e4, 0xe19c, 0xe1e4, 0xe29c, 0xe39c, 0xe49c, 0xfcb3, 0xe8e4, 0xe59c, 0xe69c, 0xe79c, 0xe89c, 0xe1b5, 0xe99c, 0xea9c, 0xeb9c, 0xccd7, 0xec9c, 0xed9c, 0xee9c, 0xe6e4, 0xef9c, 0xacbb, 0xf09c, 0xd2d7, 0xcfcc, 0xf8eb, 0xf19c, 0xe4e4, 0xf29c, 0xf39c, 0xf6b9, 0xf49c, 0xf59c, 0xf69c, 0xcdd6, 0xd9e4, 0xdce4, 0xfac2, 0xdee4, 0xf79c, 0xcbc2, 0xc4c0, 0xd0c2, 0xf89c, 0xf5b1, 0xb2cc, 0xf99c, 0xfa9c, 0xfb9c, 0xfc9c, 0xfd9c, 0xfe9c, 0x409d, 0x419d, 0x429d, 0x439d, 0xceb5, 0x449d, 0x459d, 0x469d, 0x479d, 0xefe4, 0x489d, 0x499d, 0x4a9d, 0x4b9d, 0x4c9d, 0x4d9d, 0x4e9d, 0x4f9d, 0xafc6, 0x509d, 0x519d, 0x529d, 0xe1c6, 0x539d, 0x549d, 0xf5e4, 0x559d, 0x569d, 0x579d, 0x589d, 0x599d, 0xa9c2, 0x5a9d, 0x5b9d, 0x5c9d, 0xecc0, 0xddd1, 0xeee4, 0x5d9d, 0x5e9d, 0x5f9d, 0x609d, 0x619d, 0x629d, 0x639d, 0x649d, 0x659d, 0x669d, 0xaec4, 0x679d, 0x689d, 0x699d, 0xede4, 0x6a9d, 0x6b9d, 0x6c9d, 0x6d9d, 0xf6e4, 0xf4e4, 0xfec2, 0x6e9d, 0xdde4, 0x6f9d, 0xf0e4, 0x709d, 0xfeca, 0x719d, 0xc4d5, 0x729d, 0x739d, 0xf1e4, 0x749d, 0x759d, 0x769d, 0x779d, 0x789d, 0x799d, 0x7a9d, 0xfad1, 0x7b9d, 0x7c9d, 0x7d9d, 0x7e9d, 0x809d, 0x819d, 0x829d, 0xebe4, 0xece4, 0x839d, 0x849d, 0x859d, 0xf2e4, 0x869d, 0xabce, 0x879d, 0x889d, 0x899d, 0x8a9d, 0x8b9d, 0x8c9d, 0x8d9d, 0x8e9d, 0x8f9d, 0x909d, 0xcbc5, 0x919d, 0x929d, 0x939d, 0xb1c7, 0x949d, 0xbac2, 0x959d, 0x969d, 0x979d, 0xeae4, 0x989d, 0x999d, 0x9a9d, 0xcac1, 0x9b9d, 0x9c9d, 0x9d9d, 0x9e9d, 0x9f9d, 0xa09d, 0xb6cc, 0xb1b3, 0xa19d, 0xa29d, 0xa39d, 0xfbe4, 0xa49d, 0xf3e4, 0xa59d, 0xa69d, 0xa79d, 0xfae4, 0xa89d, 0xfde4, 0xa99d, 0xfce4, 0xaa9d, 0xab9d, 0xac9d, 0xad9d, 0xae9d, 0xaf9d, 0xb09d, 0xceb3, 0xb19d, 0xb29d, 0xb39d, 0xbab3, 0xf7e4, 0xb49d, 0xb59d, 0xf9e4, 0xf8e4, 0xecc5, 0xb69d, 0xb79d, 0xb89d, 0xb99d, 0xba9d, 0xbb9d, 0xbc9d, 0xbd9d, 0xbe9d, 0xbf9d, 0xc09d, 0xc19d, 0xc29d, 0xbdc0, 0xc39d, 0xc49d, 0xc59d, 0xc69d, 0xe8d4, 0xc79d, 0xc89d, 0xc99d, 0xca9d, 0xcb9d, 0xa2e5, 0xcc9d, 0xcd9d, 0xce9d, 0xcf9d, 0xd09d, 0xd19d, 0xd29d, 0xd39d, 0xd49d, 0xd59d, 0xd69d, 0xc4b0, 0xd79d, 0xd89d, 0xa4e5, 0xd99d, 0xda9d, 0xa3e5, 0xdb9d, 0xdc9d, 0xdd9d, 0xde9d, 0xdf9d, 0xe09d, 0xa4bc, 0xe19d, 0xa5e5, 0xe29d, 0xe39d, 0xe49d, 0xe59d, 0xe69d, 0xe79d, 0xa1e5, 0xe89d, 0xe99d, 0xea9d, 0xeb9d, 0xec9d, 0xed9d, 0xee9d, 0xfee4, 0xf4b1, 0xef9d, 0xf09d, 0xf19d, 0xf29d, 0xf39d, 0xf49d, 0xf59d, 0xf69d, 0xf79d, 0xf89d, 0xf99d, 0xa8e5, 0xfa9d, 0xa9e5, 0xa6e5, 0xfb9d, 0xfc9d, 0xfd9d, 0xfe9d, 0x409e, 0x419e, 0x429e, 0x439e, 0x449e, 0x459e, 0x469e, 0x479e, 0xa7e5, 0xaae5, 0x489e, 0x499e, 0x4a9e, 0x4b9e, 0x4c9e, 0x4d9e, 0x4e9e, 0x4f9e, 0x509e, 0x519e, 0x529e, 0x539e, 0x549e, 0x559e, 0x569e, 0x579e, 0x589e, 0x599e, 0x5a9e, 0x5b9e, 0x5c9e, 0x5d9e, 0x5e9e, 0x5f9e, 0x609e, 0x619e, 0x629e, 0x639e, 0x649e, 0x659e, 0x669e, 0x679e, 0x689e, 0xd9c6, 0x699e, 0x6a9e, 0x6b9e, 0x6c9e, 0x6d9e, 0x6e9e, 0x6f9e, 0x709e, 0xabe5, 0xade5, 0x719e, 0x729e, 0x739e, 0x749e, 0x759e, 0x769e, 0x779e, 0xace5, 0x789e, 0x799e, 0x7a9e, 0x7b9e, 0x7c9e, 0x7d9e, 0x7e9e, 0x809e, 0x819e, 0x829e, 0x839e, 0x849e, 0x859e, 0x869e, 0x879e, 0x889e, 0x899e, 0xafe5, 0x8a9e, 0x8b9e, 0x8c9e, 0xaee5, 0x8d9e, 0x8e9e, 0x8f9e, 0x909e, 0x919e, 0x929e, 0x939e, 0x949e, 0x959e, 0x969e, 0x979e, 0x989e, 0x999e, 0x9a9e, 0x9b9e, 0x9c9e, 0x9d9e, 0x9e9e, 0xe0b9, 0x9f9e, 0xa09e, 0xb0e5, 0xa19e, 0xa29e, 0xa39e, 0xa49e, 0xa59e, 0xa69e, 0xa79e, 0xa89e, 0xa99e, 0xaa9e, 0xab9e, 0xac9e, 0xad9e, 0xae9e, 0xb1e5, 0xaf9e, 0xb09e, 0xb19e, 0xb29e, 0xb39e, 0xb49e, 0xb59e, 0xb69e, 0xb79e, 0xb89e, 0xb99e, 0xba9e, 0xf0bb, 0xe1ec, 0xf0c3, 0xbb9e, 0xc6b5, 0xd2bb, 0xbc9e, 0xbd9e, 0xbe9e, 0xbf9e, 0xe9c1, 0xeed4, 0xc09e, 0xc4be, 0xc19e, 0xc29e, 0xc39e, 0xc6d7, 0xc49e, 0xd6d4, 0xd3b2, 0xbeec, 0xc59e, 0xc69e, 0xc79e, 0xc89e, 0xc1ea, 0xc99e, 0xca9e, 0xcb9e, 0xafc2, 0xb6b4, 0xcc9e, 0xcd9e, 0xce9e, 0xd7d1, 0xcf9e, 0xd09e, 0xd19e, 0xb4b3, 0xd29e, 0xb2c8, 0xbbbf, 0xc0ec, 0xd39e, 0xd49e, 0xcbd6, 0xd59e, 0xd69e, 0xbfec, 0xc1ec, 0xd79e, 0xd89e, 0xd99e, 0xda9e, 0xdb9e, 0xdc9e, 0xdd9e, 0xde9e, 0xdf9e, 0xe09e, 0xe19e, 0xe29e, 0xe39e, 0xc5ec, 0xe6be, 0xbfcc, 0xdac5, 0xbcbe, 0xe49e, 0xc6ec, 0xe59e, 0xfeb1, 0xe69e, 0xe79e, 0xe89e, 0xc4ec, 0xa8d5, 0xe3b5, 0xe99e, 0xc2ec, 0xb6c1, 0xe3b3, 0xea9e, 0xeb9e, 0xc3ec, 0xb8cb, 0xc3c0, 0xfecc, 0xec9e, 0xed9e, 0xee9e, 0xef9e, 0xd2c1, 0xf09e, 0xc8ec, 0xf19e, 0xf29e, 0xf39e, 0xf49e, 0xf59e, 0xf69e, 0xf79e, 0xf89e, 0xf99e, 0xfa9e, 0xfb9e, 0xfc9e, 0xfd9e, 0xe6ba, 0xd3c0, 0xfe9e, 0xf2d6, 0x409f, 0x419f, 0x429f, 0xccd1, 0x439f, 0x449f, 0x459f, 0x469f, 0xbebf, 0x479f, 0xb3b7, 0xd5c9, 0xc7ec, 0xe2bb, 0x489f, 0xcccc, 0xfdbd, 0xc8c8, 0x499f, 0xa9cf, 0x4a9f, 0x4b9f, 0x4c9f, 0x4d9f, 0x4e9f, 0x4f9f, 0x509f, 0xe9cd, 0x519f, 0xebc5, 0x529f, 0x539f, 0x549f, 0xe9b7, 0x559f, 0x569f, 0x579f, 0x589f, 0x599f, 0x5a9f, 0x5b9f, 0x5c9f, 0x5d9f, 0x5e9f, 0x5f9f, 0xc9d1, 0xb8ba, 0x609f, 0x619f, 0x629f, 0x639f, 0x649f, 0xc9ec, 0x659f, 0x669f, 0xcaec, 0x679f, 0xc0bb, 0xcbec, 0x689f, 0xe2ec, 0xbab1, 0xd9b7, 0x699f, 0x6a9f, 0x6b9f, 0x6c9f, 0x6d9f, 0x6e9f, 0x6f9f, 0x709f, 0x719f, 0x729f, 0x739f, 0xb9bd, 0x749f, 0x759f, 0x769f, 0x779f, 0x789f, 0x799f, 0x7a9f, 0x7b9f, 0xccec, 0xe6d1, 0xcdec, 0x7c9f, 0x7d9f, 0x7e9f, 0x809f, 0xbbc8, 0x819f, 0x829f, 0x839f, 0x849f, 0x859f, 0x869f, 0x879f, 0x889f, 0x899f, 0x8a9f, 0x8b9f, 0x8c9f, 0x8d9f, 0x8e9f, 0xd1ec, 0x8f9f, 0x909f, 0x919f, 0x929f, 0xd3ec, 0x939f, 0xcdbb, 0x949f, 0xe5bc, 0x959f, 0x969f, 0x979f, 0x989f, 0x999f, 0x9a9f, 0x9b9f, 0x9c9f, 0x9d9f, 0x9e9f, 0x9f9f, 0xa09f, 0xa19f, 0xcfec, 0xa29f, 0xb7c9, 0xa39f, 0xa49f, 0xa59f, 0xa69f, 0xa79f, 0xbac3, 0xa89f, 0xe3ec, 0xd5d5, 0xd0ec, 0xa99f, 0xaa9f, 0xab9f, 0xac9f, 0xad9f, 0xf3d6, 0xae9f, 0xaf9f, 0xb09f, 0xd2ec, 0xceec, 0xb19f, 0xb29f, 0xb39f, 0xb49f, 0xd4ec, 0xb59f, 0xd5ec, 0xb69f, 0xb79f, 0xbfc9, 0xb89f, 0xb99f, 0xba9f, 0xbb9f, 0xbc9f, 0xbd9f, 0xa8cf, 0xbe9f, 0xbf9f, 0xc09f, 0xc19f, 0xc29f, 0xdcd0, 0xc39f, 0xc49f, 0xc59f, 0xc69f, 0xacd1, 0xc79f, 0xc89f, 0xc99f, 0xca9f, 0xdbc8, 0xcb9f, 0xcc9f, 0xcd9f, 0xd6ec, 0xf5ce, 0xce9f, 0xcf9f, 0xd09f, 0xd19f, 0xd29f, 0xecca, 0xdaec, 0xd39f, 0xd49f, 0xd59f, 0xd69f, 0xd79f, 0xd89f, 0xd99f, 0xd9ec, 0xda9f, 0xdb9f, 0xdc9f, 0xbeb0, 0xdd9f, 0xde9f, 0xdf9f, 0xe09f, 0xe19f, 0xe29f, 0xd7ec, 0xe39f, 0xd8ec, 0xe49f, 0xe59f, 0xe69f, 0xe4ec, 0xe79f, 0xe89f, 0xe99f, 0xea9f, 0xeb9f, 0xec9f, 0xed9f, 0xee9f, 0xef9f, 0xbcc8, 0xf09f, 0xf19f, 0xf29f, 0xf39f, 0xf49f, 0xf59f, 0xf69f, 0xf79f, 0xf89f, 0xf99f, 0xc7c1, 0xfa9f, 0xfb9f, 0xfc9f, 0xfd9f, 0xfe9f, 0xdcec, 0xe0d1, 0x40a0, 0x41a0, 0x42a0, 0x43a0, 0x44a0, 0x45a0, 0x46a0, 0x47a0, 0x48a0, 0x49a0, 0xdbec, 0x4aa0, 0x4ba0, 0x4ca0, 0x4da0, 0xefd4, 0x4ea0, 0xddec, 0x4fa0, 0x50a0, 0x51a0, 0x52a0, 0x53a0, 0x54a0, 0xc6db, 0x55a0, 0x56a0, 0x57a0, 0x58a0, 0x59a0, 0x5aa0, 0x5ba0, 0x5ca0, 0x5da0, 0x5ea0, 0xdeec, 0x5fa0, 0x60a0, 0x61a0, 0x62a0, 0x63a0, 0x64a0, 0x65a0, 0x66a0, 0x67a0, 0x68a0, 0x69a0, 0x6aa0, 0xacb1, 0x6ba0, 0x6ca0, 0x6da0, 0x6ea0, 0x6fa0, 0x70a0, 0x71a0, 0x72a0, 0x73a0, 0x74a0, 0x75a0, 0x76a0, 0x77a0, 0x78a0, 0x79a0, 0x7aa0, 0x7ba0, 0x7ca0, 0x7da0, 0x7ea0, 0x80a0, 0x81a0, 0xdfec, 0x82a0, 0x83a0, 0x84a0, 0x85a0, 0x86a0, 0x87a0, 0x88a0, 0x89a0, 0x8aa0, 0x8ba0, 0xe0ec, 0x8ca0, 0xa6d7, 0x8da0, 0xc0c5, 0x8ea0, 0x8fa0, 0x90a0, 0xbceb, 0xaeb0, 0x91a0, 0x92a0, 0x93a0, 0xf4be, 0xb8b8, 0xafd2, 0xd6b0, 0xf9b5, 0x94a0, 0xb3d8, 0x95a0, 0xaccb, 0x96a0, 0xdde3, 0x97a0, 0x98a0, 0x99a0, 0x9aa0, 0x9ba0, 0x9ca0, 0x9da0, 0xacc6, 0xe6b0, 0x9ea0, 0x9fa0, 0xa0a0, 0xc6c5, 0xb9eb, 0xa1a0, 0xa2a0, 0xa3a0, 0xa4a0, 0xbaeb, 0xa5a0, 0xa6a0, 0xa7a0, 0xbbeb, 0xa8a0, 0xa9a0, 0xc0d1, 0xaaa0, 0xa3c5, 0xaba0, 0xf2ea, 0xaca0, 0xb2c4, 0xada0, 0xb5c4, 0xcec0, 0xaea0, 0xafa0, 0xb0a0, 0xf3ea, 0xc1c4, 0xb1a0, 0xefce, 0xb2a0, 0xb3a0, 0xb4a0, 0xb5a0, 0xf0ea, 0xf4ea, 0xb6a0, 0xb7a0, 0xfcc9, 0xb8a0, 0xb9a0, 0xa3c7, 0xbaa0, 0xbba0, 0xbca0, 0xd8cc, 0xfece, 0xbda0, 0xbea0, 0xbfa0, 0xf5ea, 0xf6ea, 0xaccf, 0xe7c0, 0xc0a0, 0xc1a0, 0xf7ea, 0xc2a0, 0xc3a0, 0xc4a0, 0xc5a0, 0xc6a0, 0xbfb6, 0xf8ea, 0xc7a0, 0xf9ea, 0xc8a0, 0xfaea, 0xc9a0, 0xcaa0, 0xfbea, 0xcba0, 0xcca0, 0xcda0, 0xcea0, 0xcfa0, 0xd0a0, 0xd1a0, 0xd2a0, 0xd3a0, 0xd4a0, 0xd5a0, 0xd6a0, 0xf1ea, 0xd7a0, 0xd8a0, 0xd9a0, 0xdaa0, 0xdba0, 0xdca0, 0xdda0, 0xdea0, 0xdfa0, 0xe0a0, 0xe1a0, 0xe2a0, 0xaec8, 0xebe1, 0xe3a0, 0xb8b7, 0xece1, 0xe4a0, 0xe5a0, 0xe6a0, 0xede1, 0xe7a0, 0xb4d7, 0xeee1, 0xefe1, 0xccd3, 0xe8a0, 0xe9a0, 0xeaa0, 0xeba0, 0xeca0, 0xeda0, 0xeea0, 0xf1e1, 0xf1bf, 0xf0e1, 0xd2b5, 0xefa0, 0xf0a0, 0xf1a0, 0xb7b1, 0xf2a0, 0xf3a0, 0xf4a0, 0xf5a0, 0xf3e1, 0xf2e1, 0xf6a0, 0xfcba, 0xf7a0, 0xf4e1, 0xf8a0, 0xf9a0, 0xfaa0, 0xfba0, 0xb7b9, 0xfca0, 0xd1be, 0xfda0, 0xfea0, 0x40aa, 0x41aa, 0xfcc4, 0x42aa, 0xddba, 0xc6bd, 0x43aa, 0x44aa, 0x45aa, 0x46aa, 0x47aa, 0x48aa, 0xf5e1, 0xf7e1, 0x49aa, 0x4aaa, 0xc0b6, 0xc1cf, 0xa8ca, 0xf6e1, 0xf8d5, 0xfcd3, 0xf8e1, 0xfce1, 0xf9e1, 0x4baa, 0x4caa, 0xfae1, 0xeac0, 0x4daa, 0xfee1, 0xa1e2, 0xc7c0, 0x4eaa, 0x4faa, 0x50aa, 0x51aa, 0xfbe1, 0x52aa, 0xfde1, 0x53aa, 0x54aa, 0x55aa, 0x56aa, 0x57aa, 0x58aa, 0xa5e2, 0x59aa, 0x5aaa, 0x5baa, 0xd4c1, 0x5caa, 0x5daa, 0x5eaa, 0x5faa, 0xa3e2, 0x60aa, 0xa8e2, 0xfeb2, 0xa2e2, 0x61aa, 0x62aa, 0x63aa, 0xcdc3, 0xc2b2, 0xa7e2, 0xa6e2, 0x64aa, 0x65aa, 0xa4e2, 0xa9e2, 0x66aa, 0x67aa, 0xabe2, 0x68aa, 0x69aa, 0x6aaa, 0xc9d0, 0xedd6, 0xa8c3, 0xace2, 0x6baa, 0xd7cf, 0x6caa, 0x6daa, 0xaee2, 0x6eaa, 0x6faa, 0xefba, 0x70aa, 0x71aa, 0xe0e9, 0xade2, 0xaae2, 0x72aa, 0x73aa, 0x74aa, 0x75aa, 0xabbb, 0xb3d4, 0x76aa, 0x77aa, 0x78aa, 0x79aa, 0x7aaa, 0x7baa, 0x7caa, 0x7daa, 0x7eaa, 0x80aa, 0x81aa, 0x82aa, 0x83aa, 0xb0e2, 0x84aa, 0x85aa, 0xafe2, 0x86aa, 0xe1e9, 0x87aa, 0x88aa, 0x89aa, 0x8aaa, 0xb1e2, 0x8baa, 0x8caa, 0x8daa, 0x8eaa, 0x8faa, 0x90aa, 0x91aa, 0x92aa, 0xb2e2, 0x93aa, 0x94aa, 0x95aa, 0x96aa, 0x97aa, 0x98aa, 0x99aa, 0x9aaa, 0x9baa, 0x9caa, 0x9daa, 0xb3e2, 0xa1cc, 0x9eaa, 0xb4e2, 0x9faa, 0xa0aa, 0x40ab, 0x41ab, 0x42ab, 0x43ab, 0x44ab, 0x45ab, 0x46ab, 0x47ab, 0x48ab, 0x49ab, 0x4aab, 0x4bab, 0xb5e2, 0x4cab, 0x4dab, 0x4eab, 0x4fab, 0x50ab, 0xfed0, 0x51ab, 0x52ab, 0xcac2, 0x53ab, 0xf1d3, 0x54ab, 0xf5cd, 0x55ab, 0x56ab, 0xe0e7, 0x57ab, 0x58ab, 0xe1e7, 0x59ab, 0x5aab, 0x5bab, 0x5cab, 0xc1be, 0x5dab, 0x5eab, 0x5fab, 0x60ab, 0xeac2, 0x61ab, 0x62ab, 0x63ab, 0xe4e7, 0x64ab, 0x65ab, 0xe3e7, 0x66ab, 0x67ab, 0x68ab, 0x69ab, 0x6aab, 0x6bab, 0xe6cd, 0x6cab, 0xb5c3, 0x6dab, 0x6eab, 0xe2e7, 0xb7bb, 0xd6cf, 0x6fab, 0xe1c1, 0xe9e7, 0x70ab, 0x71ab, 0x72ab, 0xe8e7, 0x73ab, 0x74ab, 0xf4e7, 0xa3b2, 0x75ab, 0x76ab, 0x77ab, 0x78ab, 0xeae7, 0x79ab, 0xe6e7, 0x7aab, 0x7bab, 0x7cab, 0x7dab, 0x7eab, 0xece7, 0xebe7, 0xbac9, 0x80ab, 0x81ab, 0xe4d5, 0x82ab, 0xe5e7, 0xa9b7, 0xe7e7, 0x83ab, 0x84ab, 0x85ab, 0x86ab, 0x87ab, 0x88ab, 0x89ab, 0xeee7, 0x8aab, 0x8bab, 0x8cab, 0x8dab, 0xf3e7, 0x8eab, 0xe9d6, 0x8fab, 0x90ab, 0x91ab, 0x92ab, 0xede7, 0x93ab, 0xf2e7, 0x94ab, 0xf1e7, 0x95ab, 0x96ab, 0x97ab, 0xe0b0, 0x98ab, 0x99ab, 0x9aab, 0x9bab, 0xf5e7, 0x9cab, 0x9dab, 0x9eab, 0x9fab, 0xa0ab, 0x40ac, 0x41ac, 0x42ac, 0x43ac, 0x44ac, 0x45ac, 0x46ac, 0x47ac, 0x48ac, 0x49ac, 0x4aac, 0xf2c7, 0x4bac, 0xc5c0, 0xedc0, 0x4cac, 0x4dac, 0xf0c1, 0xf0e7, 0x4eac, 0x4fac, 0x50ac, 0x51ac, 0xf6e7, 0xf6cb, 0x52ac, 0x53ac, 0x54ac, 0x55ac, 0x56ac, 0x57ac, 0x58ac, 0x59ac, 0x5aac, 0xa2e8, 0xa1e8, 0x5bac, 0x5cac, 0x5dac, 0x5eac, 0x5fac, 0x60ac, 0xc1d7, 0x61ac, 0x62ac, 0xfae7, 0xf9e7, 0x63ac, 0xfbe7, 0x64ac, 0xf7e7, 0x65ac, 0xfee7, 0x66ac, 0xfde7, 0x67ac, 0xfce7, 0x68ac, 0x69ac, 0xd5c1, 0xd9c7, 0xfdc5, 0xc3c5, 0x6aac, 0x6bac, 0x6cac, 0x6dac, 0x6eac, 0xedc7, 0x6fac, 0x70ac, 0x71ac, 0x72ac, 0xa3e8, 0x73ac, 0x74ac, 0x75ac, 0x76ac, 0x77ac, 0x78ac, 0x79ac, 0x7aac, 0x7bac, 0x7cac, 0x7dac, 0x7eac, 0x80ac, 0x81ac, 0x82ac, 0x83ac, 0x84ac, 0x85ac, 0x86ac, 0xa6e8, 0x87ac, 0xa5e8, 0x88ac, 0xa7e8, 0xf7ba, 0xf8e7, 0xa4e8, 0x89ac, 0xf0c8, 0xaac9, 0x8aac, 0x8bac, 0x8cac, 0x8dac, 0x8eac, 0x8fac, 0x90ac, 0x91ac, 0x92ac, 0x93ac, 0x94ac, 0x95ac, 0x96ac, 0xa9e8, 0x97ac, 0x98ac, 0xe5b9, 0x99ac, 0x9aac, 0x9bac, 0x9cac, 0x9dac, 0xfed1, 0xa8e8, 0x9eac, 0x9fac, 0xa0ac, 0x40ad, 0x41ad, 0x42ad, 0xaae8, 0x43ad, 0xade8, 0xaee8, 0x44ad, 0xa7c1, 0x45ad, 0x46ad, 0x47ad, 0xafe8, 0x48ad, 0x49ad, 0x4aad, 0xb0e8, 0x4bad, 0x4cad, 0xace8, 0x4dad, 0xb4e8, 0x4ead, 0x4fad, 0x50ad, 0x51ad, 0x52ad, 0x53ad, 0x54ad, 0x55ad, 0x56ad, 0x57ad, 0x58ad, 0xabe8, 0x59ad, 0xb1e8, 0x5aad, 0x5bad, 0x5cad, 0x5dad, 0x5ead, 0x5fad, 0x60ad, 0x61ad, 0xb5e8, 0xb2e8, 0xb3e8, 0x62ad, 0x63ad, 0x64ad, 0x65ad, 0x66ad, 0x67ad, 0x68ad, 0x69ad, 0x6aad, 0x6bad, 0x6cad, 0x6dad, 0x6ead, 0x6fad, 0x70ad, 0x71ad, 0xb7e8, 0x72ad, 0x73ad, 0x74ad, 0x75ad, 0x76ad, 0x77ad, 0x78ad, 0x79ad, 0x7aad, 0x7bad, 0x7cad, 0x7dad, 0x7ead, 0x80ad, 0x81ad, 0x82ad, 0x83ad, 0x84ad, 0x85ad, 0x86ad, 0x87ad, 0x88ad, 0x89ad, 0xb6e8, 0x8aad, 0x8bad, 0x8cad, 0x8dad, 0x8ead, 0x8fad, 0x90ad, 0x91ad, 0x92ad, 0xcfb9, 0x93ad, 0xacf0, 0x94ad, 0xadf0, 0x95ad, 0xb0c6, 0xeab0, 0xbfc8, 0x96ad, 0xdfcd, 0x97ad, 0x98ad, 0x99ad, 0x9aad, 0x9bad, 0x9cad, 0x9dad, 0xcdce, 0xb1ea, 0x9ead, 0x9fad, 0xa0ad, 0x40ae, 0xb2ea, 0x41ae, 0xbfc6, 0xc9b4, 0x42ae, 0x43ae, 0x44ae, 0x45ae, 0x46ae, 0x47ae, 0x48ae, 0xb3ea, 0x49ae, 0x4aae, 0x4bae, 0x4cae, 0xe7d5, 0x4dae, 0x4eae, 0x4fae, 0x50ae, 0x51ae, 0x52ae, 0x53ae, 0x54ae, 0xf9dd, 0x55ae, 0xb4ea, 0x56ae, 0xb5ea, 0x57ae, 0xb6ea, 0x58ae, 0x59ae, 0x5aae, 0x5bae, 0xcab8, 0xb0df, 0xf5c9, 0x5cae, 0xf0cc, 0x5dae, 0x5eae, 0xfac9, 0x5fae, 0x60ae, 0x61ae, 0x62ae, 0x63ae, 0xfbc9, 0x64ae, 0x65ae, 0xc3d3, 0xa6cb, 0x66ae, 0xa6b8, 0xaef0, 0xc2b1, 0x67ae, 0xb8e5, 0xefcc, 0xc9d3, 0xd7bc, 0xeac9, 0x68ae, 0xe7b5, 0x69ae, 0xd0c4, 0xe9b5, 0x6aae, 0xaeee, 0xadbb, 0x6bae, 0x6cae, 0xdee7, 0x6dae, 0xafee, 0x6eae, 0x6fae, 0x70ae, 0x71ae, 0xa9b3, 0x72ae, 0x73ae, 0xb2ee, 0x74ae, 0x75ae, 0xb1ee, 0xe7bd, 0x76ae, 0xb0ee, 0xb7ce, 0x77ae, 0x78ae, 0x79ae, 0x7aae, 0xcfc5, 0x7bae, 0x7cae, 0x7dae, 0x7eae, 0xf4c1, 0xcedb, 0xb3ee, 0xf3d0, 0x80ae, 0x81ae, 0x82ae, 0x83ae, 0x84ae, 0x85ae, 0x86ae, 0x87ae, 0xd4c2, 0xe8c6, 0x88ae, 0x89ae, 0x8aae, 0xacb7, 0x8bae, 0x8cae, 0x8dae, 0x8eae, 0x8fae, 0x90ae, 0x91ae, 0xb4ee, 0x92ae, 0xebb3, 0x93ae, 0x94ae, 0x95ae, 0xfbbb, 0xb5ee, 0x96ae, 0x97ae, 0x98ae, 0x99ae, 0x9aae, 0xdce7, 0x9bae, 0x9cae, 0x9dae, 0xb6ee, 0x9eae, 0x9fae, 0xaebd, 0xa0ae, 0x40af, 0x41af, 0x42af, 0xe2f1, 0x43af, 0x44af, 0x45af, 0xe8ca, 0x46af, 0xc9d2, 0xdaf0, 0x47af, 0xdbf0, 0x48af, 0xdcf0, 0xc6c1, 0x49af, 0xedb8, 0xcebe, 0x4aaf, 0x4baf, 0xdef0, 0x4caf, 0xb1c5, 0xddf0, 0xf1d1, 0x4daf, 0xe0f0, 0xccb0, 0xeabd, 0x4eaf, 0x4faf, 0x50af, 0x51af, 0x52af, 0xdfd2, 0xdff0, 0x53af, 0xafb4, 0xe8b7, 0xe6f0, 0xe5f0, 0xa3c6, 0xe1f0, 0xe2f0, 0xc3b4, 0x54af, 0x55af, 0xe3f0, 0xeed5, 0x56af, 0x57af, 0xdbcc, 0xd2be, 0xb2bc, 0x58af, 0x59af, 0x5aaf, 0xe8f0, 0xe7f0, 0xe4f0, 0xa1b2, 0x5baf, 0xa2d6, 0xb8d3, 0xb7be, 0xacc8, 0x5caf, 0x5daf, 0xeaf0, 0x5eaf, 0x5faf, 0x60af, 0x61af, 0xf7d1, 0x62af, 0xccd6, 0xdbba, 0xe9f0, 0x63af, 0xbbb6, 0x64af, 0x65af, 0xb4cd, 0x66af, 0x67af, 0xa6c6, 0x68af, 0x69af, 0x6aaf, 0xa1c1, 0xebf0, 0xeef0, 0x6baf, 0xedf0, 0xf0f0, 0xecf0, 0x6caf, 0xbebb, 0xeff0, 0x6daf, 0x6eaf, 0x6faf, 0x70af, 0xb5cc, 0xf2f0, 0x71af, 0x72af, 0xd5b3, 0x73af, 0x74af, 0x75af, 0x76af, 0xd4b1, 0x77af, 0x78af, 0xf3f0, 0x79af, 0x7aaf, 0xf4f0, 0xf6f0, 0xe1b4, 0x7baf, 0xf1f0, 0x7caf, 0xf7f0, 0x7daf, 0x7eaf, 0x80af, 0x81af, 0xfaf0, 0x82af, 0xf8f0, 0x83af, 0x84af, 0x85af, 0xf5f0, 0x86af, 0x87af, 0x88af, 0x89af, 0xfdf0, 0x8aaf, 0xf9f0, 0xfcf0, 0xfef0, 0x8baf, 0xa1f1, 0x8caf, 0x8daf, 0x8eaf, 0xc1ce, 0xa4f1, 0x8faf, 0xa3f1, 0x90af, 0xf6c1, 0xfbf0, 0xddca, 0x91af, 0x92af, 0xf1b4, 0xf1b1, 0xb1cc, 0x93af, 0xa6f1, 0x94af, 0x95af, 0xa7f1, 0x96af, 0x97af, 0xacf1, 0xced5, 0xa9f1, 0x98af, 0x99af, 0xb3c8, 0x9aaf, 0x9baf, 0x9caf, 0xa2f1, 0x9daf, 0xabf1, 0xa8f1, 0xa5f1, 0x9eaf, 0x9faf, 0xaaf1, 0xa0af, 0x40b0, 0x41b0, 0x42b0, 0x43b0, 0x44b0, 0x45b0, 0x46b0, 0xa9b0, 0xadf1, 0x47b0, 0x48b0, 0x49b0, 0x4ab0, 0x4bb0, 0x4cb0, 0xaff1, 0x4db0, 0xb1f1, 0x4eb0, 0x4fb0, 0x50b0, 0x51b0, 0x52b0, 0xb0f1, 0x53b0, 0xaef1, 0x54b0, 0x55b0, 0x56b0, 0x57b0, 0xa2d1, 0x58b0, 0x59b0, 0x5ab0, 0x5bb0, 0x5cb0, 0x5db0, 0x5eb0, 0xb2f1, 0x5fb0, 0x60b0, 0x61b0, 0xb3f1, 0x62b0, 0x63b0, 0x64b0, 0x65b0, 0x66b0, 0x67b0, 0x68b0, 0x69b0, 0xefb9, 0x6ab0, 0x6bb0, 0xc7b5, 0x6cb0, 0xd7b0, 0xd9b0, 0x6db0, 0x6eb0, 0x6fb0, 0xedd4, 0x70b0, 0xc4b5, 0x71b0, 0xd4bd, 0xcabb, 0xa7f0, 0x72b0, 0x73b0, 0xdeb8, 0x74b0, 0x75b0, 0xa8f0, 0x76b0, 0x77b0, 0xa8b0, 0x78b0, 0xa9f0, 0x79b0, 0x7ab0, 0xeecd, 0x7bb0, 0x7cb0, 0xaaf0, 0x7db0, 0x7eb0, 0x80b0, 0x81b0, 0x82b0, 0x83b0, 0x84b0, 0x85b0, 0x86b0, 0x87b0, 0xabf0, 0x88b0, 0x89b0, 0x8ab0, 0x8bb0, 0x8cb0, 0x8db0, 0x8eb0, 0x8fb0, 0x90b0, 0xa4c6, 0x91b0, 0x92b0, 0xe5d6, 0xe4f1, 0x93b0, 0xe5f1, 0x94b0, 0x95b0, 0x96b0, 0x97b0, 0x98b0, 0x99b0, 0x9ab0, 0x9bb0, 0x9cb0, 0x9db0, 0xf3c3, 0x9eb0, 0x9fb0, 0xdbd3, 0xa0b0, 0x40b1, 0xd1d6, 0xe8c5, 0x41b1, 0xafd3, 0x42b1, 0xe6d2, 0x43b1, 0x44b1, 0xc1ee, 0xbbb0, 0xb5d5, 0xced1, 0xe0bc, 0xd0ba, 0x45b1, 0xf8bf, 0x46b1, 0xc7b8, 0xc1b5, 0xccc5, 0x47b1, 0x48b1, 0xa2ca, 0x49b1, 0x4ab1, 0x4bb1, 0xcbc3, 0x4cb1, 0x4db1, 0x4eb1, 0x4fb1, 0x50b1, 0xc2ee, 0x51b1, 0x52b1, 0x53b1, 0x54b1, 0x55b1, 0x56b1, 0x57b1, 0x58b1, 0xbfc4, 0xa2b6, 0x59b1, 0xeced, 0xa4c3, 0x5ab1, 0xb1d6, 0x5bb1, 0x5cb1, 0x5db1, 0xe0cf, 0xefed, 0x5eb1, 0x5fb1, 0xcec5, 0x60b1, 0xdcb6, 0x61b1, 0x62b1, 0xa1ca, 0x63b1, 0x64b1, 0xeded, 0x65b1, 0x66b1, 0xf0ed, 0xf1ed, 0xbcc3, 0x67b1, 0xb4bf, 0x68b1, 0xeeed, 0x69b1, 0x6ab1, 0x6bb1, 0x6cb1, 0x6db1, 0x6eb1, 0x6fb1, 0x70b1, 0x71b1, 0x72b1, 0x73b1, 0xf4ed, 0xf2ed, 0x74b1, 0x75b1, 0x76b1, 0x77b1, 0xe6d5, 0xdfc3, 0x78b1, 0xf3ed, 0x79b1, 0x7ab1, 0x7bb1, 0xf6ed, 0x7cb1, 0xa3d5, 0xa3d1, 0x7db1, 0x7eb1, 0x80b1, 0xf5ed, 0x81b1, 0xd0c3, 0x82b1, 0x83b1, 0x84b1, 0x85b1, 0x86b1, 0xf7ed, 0xf4bf, 0xecbe, 0xf8ed, 0x87b1, 0xf7cc, 0x88b1, 0xdbd1, 0x89b1, 0x8ab1, 0x8bb1, 0xc5d7, 0xf6d5, 0x8cb1, 0xfced, 0x8db1, 0x8eb1, 0x8fb1, 0xfbed, 0x90b1, 0x91b1, 0x92b1, 0x93b1, 0x94b1, 0x95b1, 0x96b1, 0x97b1, 0xf9ed, 0xfaed, 0x98b1, 0x99b1, 0x9ab1, 0x9bb1, 0x9cb1, 0x9db1, 0x9eb1, 0x9fb1, 0xfded, 0xa6be, 0xa0b1, 0x40b2, 0x41b2, 0x42b2, 0x43b2, 0xafcb, 0xa1ee, 0xbdb6, 0x44b2, 0xa2ee, 0xc0c4, 0x45b2, 0xfeed, 0x46b2, 0x47b2, 0xdebd, 0xc7b2, 0x48b2, 0x49b2, 0x4ab2, 0x4bb2, 0x4cb2, 0x4db2, 0x4eb2, 0x4fb2, 0x50b2, 0x51b2, 0x52b2, 0x53b2, 0xc3b6, 0x54b2, 0x55b2, 0x56b2, 0xa5ee, 0xbad8, 0xa3ee, 0xa6ee, 0x57b2, 0x58b2, 0x59b2, 0xe9c3, 0xf2b3, 0x5ab2, 0x5bb2, 0x5cb2, 0x5db2, 0x5eb2, 0x5fb2, 0xa7ee, 0xa4ee, 0xb9cf, 0x60b2, 0x61b2, 0xa8ee, 0xf7c2, 0x62b2, 0x63b2, 0x64b2, 0x65b2, 0x66b2, 0x67b2, 0x68b2, 0x69b2, 0x6ab2, 0x6bb2, 0x6cb2, 0x6db2, 0xa9ee, 0xaaee, 0x6eb2, 0xabde, 0x6fb2, 0x70b2, 0xb3c6, 0x71b2, 0xc6c7, 0x72b2, 0xf5d6, 0xc9b5, 0x73b2, 0xb2cb, 0x74b2, 0x75b2, 0x76b2, 0xabee, 0x77b2, 0x78b2, 0xabcd, 0x79b2, 0xacee, 0x7ab2, 0x7bb2, 0x7cb2, 0x7db2, 0x7eb2, 0xb0d5, 0x80b2, 0xadee, 0x81b2, 0xc4f6, 0x82b2, 0x83b2, 0x84b2, 0x85b2, 0x86b2, 0x87b2, 0x88b2, 0x89b2, 0x8ab2, 0x8bb2, 0x8cb2, 0x8db2, 0x8eb2, 0xc7db, 0x8fb2, 0x90b2, 0x91b2, 0x92b2, 0x93b2, 0x94b2, 0x95b2, 0x96b2, 0x97b2, 0xa3b4, 0x98b2, 0x99b2, 0x9ab2, 0xacc3, 0xe6f1, 0x9bb2, 0x9cb2, 0x9db2, 0x9eb2, 0x9fb2, 0xb8ca, 0xd3d2, 0xa0b2, 0xaad6, 0x40b3, 0xf2ef, 0x41b3, 0xd8be, 0x42b3, 0xc3bd, 0xf3ef, 0xccb6, 0xabb0, 0x43b3, 0x44b3, 0x45b3, 0x46b3, 0xafca, 0x47b3, 0x48b3, 0xb6ed, 0x49b3, 0xb7ed, 0x4ab3, 0x4bb3, 0x4cb3, 0x4db3, 0xf9ce, 0xafb7, 0xf3bf, 0xb8ed, 0xebc2, 0xb0c9, 0x4eb3, 0x4fb3, 0x50b3, 0x51b3, 0x52b3, 0x53b3, 0xb9ed, 0x54b3, 0x55b3, 0xf6c6, 0xb3bf, 0x56b3, 0x57b3, 0x58b3, 0xbced, 0xf8c5, 0x59b3, 0xd0d1, 0x5ab3, 0xa9d7, 0xbaed, 0xbbed, 0x5bb3, 0xe2d1, 0x5cb3, 0xbfed, 0xc0ed, 0x5db3, 0xc4ed, 0x5eb3, 0x5fb3, 0x60b3, 0xc8ed, 0x61b3, 0xc6ed, 0xceed, 0xe8d5, 0x62b3, 0xc9ed, 0x63b3, 0x64b3, 0xc7ed, 0xbeed, 0x65b3, 0x66b3, 0xe9c5, 0x67b3, 0x68b3, 0x69b3, 0xc6c6, 0x6ab3, 0x6bb3, 0xe9c9, 0xd2d4, 0xc1ed, 0xc2ed, 0xc3ed, 0xc5ed, 0x6cb3, 0xf9c0, 0x6db3, 0xa1b4, 0x6eb3, 0x6fb3, 0x70b3, 0x71b3, 0xe8b9, 0x72b3, 0xd0ed, 0x73b3, 0x74b3, 0x75b3, 0x76b3, 0xd1ed, 0x77b3, 0xcaed, 0x78b3, 0xcfed, 0x79b3, 0xf8ce, 0x7ab3, 0x7bb3, 0xb6cb, 0xcced, 0xcded, 0x7cb3, 0x7db3, 0x7eb3, 0x80b3, 0x81b3, 0xf5cf, 0x82b3, 0x83b3, 0x84b3, 0x85b3, 0x86b3, 0x87b3, 0x88b3, 0x89b3, 0x8ab3, 0x8bb3, 0x8cb3, 0x8db3, 0xd2ed, 0xf2c1, 0xb2d3, 0xcbed, 0xb7c8, 0x8eb3, 0x8fb3, 0x90b3, 0x91b3, 0x92b3, 0x93b3, 0x94b3, 0x95b3, 0xefbc, 0x96b3, 0x97b3, 0x98b3, 0x99b3, 0xf0c5, 0x9ab3, 0x9bb3, 0x9cb3, 0x9db3, 0x9eb3, 0x9fb3, 0xa0b3, 0x40b4, 0x41b4, 0x42b4, 0xd6ed, 0x43b4, 0xefb5, 0x44b4, 0x45b4, 0xb5c2, 0xadb0, 0xe9cb, 0x46b4, 0x47b4, 0xaeb1, 0x48b4, 0xd4ed, 0x49b4, 0x4ab4, 0x4bb4, 0xebcd, 0xe2b5, 0x4cb4, 0xd5ed, 0xd3ed, 0xd7ed, 0x4db4, 0x4eb4, 0xfab5, 0x4fb4, 0xd8ed, 0x50b4, 0xd9ed, 0x51b4, 0xdced, 0x52b4, 0xccb1, 0x53b4, 0x54b4, 0x55b4, 0x56b4, 0x57b4, 0x58b4, 0x59b4, 0x5ab4, 0xf6c5, 0xeebc, 0xdaed, 0xbccc, 0xeab2, 0x5bb4, 0x5cb4, 0x5db4, 0x5eb4, 0xdbed, 0x5fb4, 0x60b4, 0x61b4, 0x62b4, 0xebc4, 0x63b4, 0x64b4, 0xc5b4, 0x65b4, 0x66b4, 0x67b4, 0xf5b0, 0x68b4, 0x69b4, 0x6ab4, 0xdfed, 0xdac0, 0xe8b4, 0x6bb4, 0x6cb4, 0x6db4, 0x6eb4, 0xcdc5, 0x6fb4, 0x70b4, 0x71b4, 0xdded, 0xc4bf, 0x72b4, 0x73b4, 0x74b4, 0xdeed, 0x75b4, 0x76b4, 0x77b4, 0x78b4, 0x79b4, 0x7ab4, 0x7bb4, 0x7cb4, 0x7db4, 0x7eb4, 0x80b4, 0x81b4, 0x82b4, 0x83b4, 0xa5c4, 0x84b4, 0x85b4, 0x86b4, 0xe0ed, 0x87b4, 0x88b4, 0x89b4, 0x8ab4, 0x8bb4, 0xe1ed, 0x8cb4, 0xe3ed, 0x8db4, 0x8eb4, 0xd7c1, 0x8fb4, 0x90b4, 0xc7bb, 0x91b4, 0x92b4, 0x93b4, 0x94b4, 0x95b4, 0x96b4, 0xb8bd, 0x97b4, 0x98b4, 0x99b4, 0xe2ed, 0x9ab4, 0x9bb4, 0x9cb4, 0x9db4, 0x9eb4, 0x9fb4, 0xa0b4, 0x40b5, 0x41b5, 0x42b5, 0x43b5, 0x44b5, 0x45b5, 0xe4ed, 0x46b5, 0x47b5, 0x48b5, 0x49b5, 0x4ab5, 0x4bb5, 0x4cb5, 0x4db5, 0x4eb5, 0x4fb5, 0xe6ed, 0x50b5, 0x51b5, 0x52b5, 0x53b5, 0x54b5, 0xe5ed, 0x55b5, 0x56b5, 0x57b5, 0x58b5, 0x59b5, 0x5ab5, 0x5bb5, 0x5cb5, 0x5db5, 0x5eb5, 0x5fb5, 0x60b5, 0x61b5, 0x62b5, 0x63b5, 0xe7ed, 0x64b5, 0x65b5, 0x66b5, 0x67b5, 0x68b5, 0xbeca, 0xeaec, 0xf1c0, 0x69b5, 0xe7c9, 0x6ab5, 0xebec, 0xeec6, 0x6bb5, 0x6cb5, 0x6db5, 0x6eb5, 0xecec, 0x6fb5, 0xedc6, 0xedec, 0x70b5, 0x71b5, 0x72b5, 0x73b5, 0x74b5, 0x75b5, 0x76b5, 0x77b5, 0x78b5, 0xf0ec, 0x79b5, 0x7ab5, 0xe6d7, 0xf3ec, 0x7bb5, 0x7cb5, 0xf1ec, 0xeeec, 0xefec, 0xa3d7, 0xf1c9, 0xeecb, 0xf4ec, 0x7db5, 0xf2ec, 0x7eb5, 0x80b5, 0xe9cf, 0x81b5, 0xf6ec, 0xb1c6, 0x82b5, 0x83b5, 0x84b5, 0x85b5, 0xc0bc, 0x86b5, 0xf5ec, 0x87b5, 0x88b5, 0x89b5, 0x8ab5, 0x8bb5, 0x8cb5, 0x8db5, 0xbbb5, 0xf6bb, 0x8eb5, 0xf7ec, 0x8fb5, 0x90b5, 0x91b5, 0x92b5, 0x93b5, 0xf7d9, 0xfbbd, 0x94b5, 0x95b5, 0xbbc2, 0xf8ec, 0x96b5, 0x97b5, 0x98b5, 0x99b5, 0xf9ec, 0x9ab5, 0x9bb5, 0x9cb5, 0x9db5, 0xa3b8, 0x9eb5, 0x9fb5, 0xa0b5, 0x40b6, 0x41b6, 0x42b6, 0x43b6, 0x44b6, 0x45b6, 0x46b6, 0xfaec, 0x47b6, 0x48b6, 0x49b6, 0x4ab6, 0x4bb6, 0x4cb6, 0x4db6, 0x4eb6, 0x4fb6, 0x50b6, 0x51b6, 0x52b6, 0xfbec, 0x53b6, 0x54b6, 0x55b6, 0x56b6, 0x57b6, 0x58b6, 0x59b6, 0x5ab6, 0x5bb6, 0x5cb6, 0x5db6, 0xfcec, 0x5eb6, 0x5fb6, 0x60b6, 0x61b6, 0x62b6, 0xedd3, 0xaed8, 0xebc0, 0x63b6, 0xddc7, 0xccba, 0x64b6, 0xe3d0, 0xbdcb, 0x65b6, 0xbacd, 0x66b6, 0x67b6, 0xd1b8, 0x68b6, 0x69b6, 0xfcb1, 0x6ab6, 0xefc7, 0x6bb6, 0xd6d6, 0x6cb6, 0x6db6, 0x6eb6, 0xc6bf, 0xebc3, 0x6fb6, 0x70b6, 0xf5ef, 0x71b6, 0x72b6, 0xd8c3, 0x73b6, 0x74b6, 0x75b6, 0x76b6, 0x77b6, 0x78b6, 0xe2d7, 0x79b6, 0x7ab6, 0x7bb6, 0xf7ef, 0xd3b3, 0x7cb6, 0xd8c7, 0xedd1, 0x7db6, 0xc8d6, 0x7eb6, 0xf8ef, 0x80b6, 0xf6ef, 0x81b6, 0xfdbb, 0xc6b3, 0x82b6, 0x83b6, 0x84b6, 0x85b6, 0x86b6, 0x87b6, 0x88b6, 0xd5bd, 0x89b6, 0x8ab6, 0xc6d2, 0x8bb6, 0xe0bb, 0x8cb6, 0x8db6, 0xa1cf, 0x8eb6, 0xfcef, 0xfbef, 0x8fb6, 0x90b6, 0xf9ef, 0x91b6, 0x92b6, 0x93b6, 0x94b6, 0xccb3, 0x95b6, 0xd4c9, 0xb0cb, 0x96b6, 0x97b6, 0x98b6, 0x99b6, 0x9ab6, 0xfeef, 0x9bb6, 0x9cb6, 0xdeb0, 0x9db6, 0x9eb6, 0xc9d6, 0x9fb6, 0xa0b6, 0x40b7, 0xfdef, 0x41b7, 0xedb3, 0x42b7, 0x43b7, 0xd5f6, 0x44b7, 0x45b7, 0x46b7, 0x47b7, 0x48b7, 0x49b7, 0x4ab7, 0x4bb7, 0x4cb7, 0x4db7, 0x4eb7, 0x4fb7, 0x50b7, 0x51b7, 0x52b7, 0xc8ce, 0x53b7, 0x54b7, 0x55b7, 0xa2f0, 0x56b7, 0xa1f0, 0x57b7, 0xbeb5, 0xdabc, 0xfcbb, 0x58b7, 0xe5b8, 0x59b7, 0x5ab7, 0x5bb7, 0x5cb7, 0x5db7, 0x5eb7, 0xc2c4, 0x5fb7, 0x60b7, 0x61b7, 0x62b7, 0x63b7, 0x64b7, 0x65b7, 0x66b7, 0x67b7, 0x68b7, 0xa3f0, 0x69b7, 0x6ab7, 0x6bb7, 0x6cb7, 0x6db7, 0xebcb, 0x6eb7, 0x6fb7, 0x70b7, 0x71b7, 0x72b7, 0x73b7, 0x74b7, 0x75b7, 0x76b7, 0x77b7, 0x78b7, 0x79b7, 0x7ab7, 0x7bb7, 0x7cb7, 0x7db7, 0x7eb7, 0x80b7, 0x81b7, 0x82b7, 0x83b7, 0x84b7, 0x85b7, 0x86b7, 0xa6f0, 0x87b7, 0x88b7, 0x89b7, 0xa8d1, 0x8ab7, 0xbfbe, 0xeec7, 0xb6f1, 0xb7f1, 0xd5bf, 0x8bb7, 0x8cb7, 0x8db7, 0x8eb7, 0xa9b4, 0xb8f1, 0xbbcd, 0x8fb7, 0xd4c7, 0xadd5, 0x90b7, 0xb9f1, 0x91b7, 0xbaf1, 0x92b7, 0x93b7, 0x94b7, 0x95b7, 0xcfc7, 0x96b7, 0x97b7, 0x98b7, 0xa4d2, 0xcfd6, 0x99b7, 0x9ab7, 0xbbf1, 0xd1bd, 0xb0b4, 0xbdbe, 0x9bb7, 0x9cb7, 0x9db7, 0xdcb4, 0xd1ce, 0x9eb7, 0xdfbf, 0xbdf1, 0x9fb7, 0xa0b7, 0x40b8, 0x41b8, 0xfabf, 0xbcf1, 0x42b8, 0xbff1, 0x43b8, 0x44b8, 0x45b8, 0xbef1, 0xc0f1, 0x46b8, 0x47b8, 0x48b8, 0x49b8, 0x4ab8, 0xc1f1, 0x4bb8, 0x4cb8, 0x4db8, 0x4eb8, 0x4fb8, 0x50b8, 0x51b8, 0x52b8, 0x53b8, 0x54b8, 0x55b8, 0xfec1, 0x56b8, 0x57b8, 0x58b8, 0x59b8, 0x5ab8, 0x5bb8, 0x5cb8, 0x5db8, 0x5eb8, 0x5fb8, 0x60b8, 0xa2c1, 0x61b8, 0x62b8, 0x63b8, 0x64b8, 0x65b8, 0x66b8, 0x67b8, 0x68b8, 0x69b8, 0x6ab8, 0xfaca, 0x6bb8, 0x6cb8, 0xbed5, 0x6db8, 0x6eb8, 0x6fb8, 0x70b8, 0xbabe, 0xb9be, 0xc2d5, 0x71b8, 0x72b8, 0xa2bf, 0x73b8, 0xafcd, 0xb5f1, 0x74b8, 0x75b8, 0x76b8, 0x77b8, 0x78b8, 0x79b8, 0xdfbd, 0x7ab8, 0xcbb6, 0x7bb8, 0x7cb8, 0x7db8, 0x7eb8, 0x80b8, 0x81b8, 0x82b8, 0x83b8, 0x84b8, 0xf1d6, 0xc3f3, 0x85b8, 0x86b8, 0xc4f3, 0x87b8, 0xcdb8, 0x88b8, 0x89b8, 0x8ab8, 0xc6f3, 0xc7f3, 0x8bb8, 0xcab0, 0x8cb8, 0xc5f3, 0x8db8, 0xc9f3, 0xf1cb, 0x8eb8, 0x8fb8, 0x90b8, 0xcbf3, 0x91b8, 0xa6d0, 0x92b8, 0x93b8, 0xcab1, 0xc8f3, 0x94b8, 0x95b8, 0x96b8, 0xcff3, 0x97b8, 0xd1b5, 0x98b8, 0x99b8, 0xd7f3, 0x9ab8, 0xd2f3, 0x9bb8, 0x9cb8, 0x9db8, 0xd4f3, 0xd3f3, 0xfbb7, 0x9eb8, 0xbfb1, 0x9fb8, 0xcef3, 0xcaf3, 0xdab5, 0xa0b8, 0xd0f3, 0x40b9, 0x41b9, 0xd1f3, 0x42b9, 0xd5f3, 0x43b9, 0x44b9, 0x45b9, 0x46b9, 0xcdf3, 0x47b9, 0xe3bc, 0x48b9, 0xfdc1, 0x49b9, 0xd6f3, 0x4ab9, 0x4bb9, 0x4cb9, 0x4db9, 0x4eb9, 0x4fb9, 0xdaf3, 0x50b9, 0xccf3, 0x51b9, 0xc8b5, 0x52b9, 0xeebd, 0xdcf3, 0x53b9, 0x54b9, 0xa4b7, 0xf0bf, 0xfed6, 0xb2cd, 0x55b9, 0xf0b4, 0x56b9, 0xdfb2, 0x57b9, 0xd8f3, 0x58b9, 0xd9f3, 0xb8c9, 0x59b9, 0xddf3, 0x5ab9, 0x5bb9, 0xdef3, 0x5cb9, 0xe1f3, 0x5db9, 0x5eb9, 0x5fb9, 0x60b9, 0x61b9, 0x62b9, 0x63b9, 0x64b9, 0x65b9, 0x66b9, 0x67b9, 0xdff3, 0x68b9, 0x69b9, 0xe3f3, 0xe2f3, 0x6ab9, 0x6bb9, 0xdbf3, 0x6cb9, 0xeabf, 0x6db9, 0xefb3, 0x6eb9, 0xe0f3, 0x6fb9, 0x70b9, 0xa9c7, 0x71b9, 0xf2bc, 0x72b9, 0x73b9, 0x74b9, 0x75b9, 0xebf3, 0x76b9, 0x77b9, 0x78b9, 0x79b9, 0x7ab9, 0x7bb9, 0x7cb9, 0xbfb9, 0x7db9, 0x7eb9, 0xe4f3, 0x80b9, 0x81b9, 0x82b9, 0xadb2, 0xfebb, 0x83b9, 0xe3cb, 0x84b9, 0x85b9, 0x86b9, 0x87b9, 0xedf3, 0xe9f3, 0x88b9, 0x89b9, 0x8ab9, 0xdcb9, 0xeef3, 0x8bb9, 0x8cb9, 0x8db9, 0xe5f3, 0xe6f3, 0xeaf3, 0xe1c2, 0xecf3, 0xeff3, 0xe8f3, 0xfdbc, 0x8eb9, 0x8fb9, 0x90b9, 0xe4cf, 0x91b9, 0x92b9, 0xf0f3, 0x93b9, 0x94b9, 0x95b9, 0xe7f3, 0x96b9, 0x97b9, 0x98b9, 0x99b9, 0x9ab9, 0x9bb9, 0x9cb9, 0x9db9, 0xf2f3, 0x9eb9, 0x9fb9, 0xa0b9, 0x40ba, 0xadd7, 0xaac6, 0x41ba, 0x42ba, 0x43ba, 0x44ba, 0xf3f3, 0x45ba, 0x46ba, 0x47ba, 0x48ba, 0xf1f3, 0x49ba, 0xa8c2, 0x4aba, 0x4bba, 0x4cba, 0x4dba, 0x4eba, 0xddb8, 0xf5f3, 0x4fba, 0x50ba, 0xf4f3, 0x51ba, 0x52ba, 0x53ba, 0xdbb4, 0x54ba, 0x55ba, 0x56ba, 0xf6f3, 0xf7f3, 0x57ba, 0x58ba, 0x59ba, 0xf8f3, 0x5aba, 0x5bba, 0x5cba, 0xbac0, 0x5dba, 0x5eba, 0xe9c0, 0x5fba, 0x60ba, 0x61ba, 0x62ba, 0x63ba, 0xf1c5, 0x64ba, 0x65ba, 0x66ba, 0x67ba, 0xfbf3, 0x68ba, 0xfaf3, 0x69ba, 0x6aba, 0x6bba, 0x6cba, 0x6dba, 0x6eba, 0x6fba, 0x70ba, 0xd8b4, 0x71ba, 0x72ba, 0x73ba, 0xfef3, 0xf9f3, 0x74ba, 0x75ba, 0xfcf3, 0x76ba, 0x77ba, 0x78ba, 0x79ba, 0x7aba, 0x7bba, 0xfdf3, 0x7cba, 0x7dba, 0x7eba, 0x80ba, 0x81ba, 0x82ba, 0x83ba, 0x84ba, 0xa1f4, 0x85ba, 0x86ba, 0x87ba, 0x88ba, 0x89ba, 0x8aba, 0xa3f4, 0xc9bb, 0x8bba, 0x8cba, 0xa2f4, 0x8dba, 0x8eba, 0x8fba, 0x90ba, 0x91ba, 0x92ba, 0x93ba, 0x94ba, 0x95ba, 0x96ba, 0x97ba, 0x98ba, 0x99ba, 0xa4f4, 0x9aba, 0x9bba, 0x9cba, 0x9dba, 0x9eba, 0x9fba, 0xbeb2, 0xa6f4, 0xa5f4, 0xa0ba, 0x40bb, 0x41bb, 0x42bb, 0x43bb, 0x44bb, 0x45bb, 0x46bb, 0x47bb, 0x48bb, 0x49bb, 0xaebc, 0x4abb, 0x4bbb, 0x4cbb, 0x4dbb, 0x4ebb, 0x4fbb, 0x50bb, 0x51bb, 0x52bb, 0x53bb, 0x54bb, 0x55bb, 0x56bb, 0x57bb, 0x58bb, 0x59bb, 0x5abb, 0x5bbb, 0x5cbb, 0x5dbb, 0x5ebb, 0x5fbb, 0x60bb, 0x61bb, 0x62bb, 0x63bb, 0x64bb, 0x65bb, 0x66bb, 0x67bb, 0x68bb, 0x69bb, 0x6abb, 0x6bbb, 0x6cbb, 0x6dbb, 0x6ebb, 0xd7c3, 0xe1d9, 0x6fbb, 0x70bb, 0x71bb, 0x72bb, 0x73bb, 0x74bb, 0xe0c0, 0xccf4, 0xd1d7, 0x75bb, 0x76bb, 0x77bb, 0x78bb, 0x79bb, 0x7abb, 0x7bbb, 0x7cbb, 0x7dbb, 0x7ebb, 0x80bb, 0xdbb7, 0x81bb, 0x82bb, 0x83bb, 0x84bb, 0x85bb, 0x86bb, 0x87bb, 0xcef4, 0xa3c1, 0x88bb, 0x89bb, 0xc9c6, 0x8abb, 0xd6b4, 0xb3d5, 0x8bbb, 0x8cbb, 0x8dbb, 0xd0f4, 0xcff4, 0xd1f4, 0xdacb, 0x8ebb, 0x8fbb, 0xd2f4, 0x90bb, 0xc1d4, 0xe0d6, 0x91bb, 0x92bb, 0x93bb, 0x94bb, 0xe0b7, 0x95bb, 0x96bb, 0x97bb, 0xb8c1, 0x98bb, 0x99bb, 0xbbc1, 0xd3f4, 0xacbe, 0x9abb, 0x9bbb, 0x9cbb, 0x9dbb, 0x9ebb, 0xe2b4, 0x9fbb, 0xa0bb, 0xd4f4, 0xd5f4, 0xabbe, 0x40bc, 0x41bc, 0xd6f4, 0x42bc, 0x43bc, 0x44bc, 0xdbf4, 0x45bc, 0xd7f4, 0xdaf4, 0x46bc, 0xfdba, 0x47bc, 0xd8f4, 0xd9f4, 0x48bc, 0x49bc, 0x4abc, 0x4bbc, 0x4cbc, 0x4dbc, 0x4ebc, 0xe2b8, 0xc7cc, 0xdcf4, 0x4fbc, 0xdab2, 0x50bc, 0x51bc, 0xd3c3, 0x52bc, 0x53bc, 0xe3d4, 0xb7bf, 0x54bc, 0x55bc, 0x56bc, 0x57bc, 0x58bc, 0x59bc, 0x5abc, 0xddf4, 0x5bbc, 0x5cbc, 0x5dbc, 0x5ebc, 0x5fbc, 0x60bc, 0xb4c5, 0x61bc, 0x62bc, 0x63bc, 0x64bc, 0x65bc, 0x66bc, 0x67bc, 0x68bc, 0xe9f4, 0x69bc, 0x6abc, 0xb5cf, 0x6bbc, 0x6cbc, 0x6dbc, 0x6ebc, 0x6fbc, 0x70bc, 0x71bc, 0x72bc, 0x73bc, 0x74bc, 0x75bc, 0x76bc, 0x77bc, 0x78bc, 0xc9ce, 0x79bc, 0x7abc, 0x7bbc, 0x7cbc, 0x7dbc, 0x7ebc, 0x80bc, 0x81bc, 0x82bc, 0x83bc, 0x84bc, 0x85bc, 0x86bc, 0x87bc, 0x88bc, 0x89bc, 0x8abc, 0x8bbc, 0x8cbc, 0x8dbc, 0x8ebc, 0xd8cb, 0x8fbc, 0xf7cb, 0x90bc, 0x91bc, 0x92bc, 0x93bc, 0xf4bd, 0x94bc, 0x95bc, 0x96bc, 0xcfd7, 0x97bc, 0x98bc, 0x99bc, 0xdbc0, 0x9abc, 0x9bbc, 0x9cbc, 0x9dbc, 0x9ebc, 0x9fbc, 0xa0bc, 0x40bd, 0x41bd, 0x42bd, 0x43bd, 0x44bd, 0x45bd, 0x46bd, 0x47bd, 0x48bd, 0x49bd, 0x4abd, 0x4bbd, 0x4cbd, 0x4dbd, 0x4ebd, 0x4fbd, 0x50bd, 0x51bd, 0x52bd, 0x53bd, 0x54bd, 0x55bd, 0x56bd, 0x57bd, 0x58bd, 0x59bd, 0x5abd, 0x5bbd, 0x5cbd, 0x5dbd, 0x5ebd, 0x5fbd, 0x60bd, 0x61bd, 0x62bd, 0x63bd, 0x64bd, 0x65bd, 0x66bd, 0x67bd, 0x68bd, 0x69bd, 0x6abd, 0x6bbd, 0x6cbd, 0x6dbd, 0x6ebd, 0x6fbd, 0x70bd, 0x71bd, 0x72bd, 0x73bd, 0x74bd, 0x75bd, 0x76bd, 0xf5d0, 0x77bd, 0x78bd, 0x79bd, 0x7abd, 0x7bbd, 0x7cbd, 0x7dbd, 0x7ebd, 0xeaf4, 0x80bd, 0x81bd, 0x82bd, 0x83bd, 0x84bd, 0x85bd, 0x86bd, 0x87bd, 0x88bd, 0x89bd, 0x8abd, 0x8bbd, 0x8cbd, 0x8dbd, 0x8ebd, 0x8fbd, 0x90bd, 0x91bd, 0x92bd, 0x93bd, 0x94bd, 0x95bd, 0x96bd, 0x97bd, 0x98bd, 0x99bd, 0x9abd, 0x9bbd, 0x9cbd, 0x9dbd, 0x9ebd, 0x9fbd, 0xa0bd, 0x40be, 0x41be, 0x42be, 0x43be, 0x44be, 0x45be, 0x46be, 0x47be, 0x48be, 0x49be, 0x4abe, 0x4bbe, 0x4cbe, 0xebf4, 0x4dbe, 0x4ebe, 0x4fbe, 0x50be, 0x51be, 0x52be, 0x53be, 0xecf4, 0x54be, 0x55be, 0x56be, 0x57be, 0x58be, 0x59be, 0x5abe, 0x5bbe, 0x5cbe, 0x5dbe, 0x5ebe, 0x5fbe, 0x60be, 0x61be, 0x62be, 0x63be, 0x64be, 0x65be, 0x66be, 0x67be, 0x68be, 0x69be, 0x6abe, 0x6bbe, 0x6cbe, 0x6dbe, 0x6ebe, 0x6fbe, 0x70be, 0x71be, 0x72be, 0x73be, 0x74be, 0x75be, 0x76be, 0x77be, 0x78be, 0x79be, 0x7abe, 0x7bbe, 0x7cbe, 0x7dbe, 0x7ebe, 0x80be, 0x81be, 0x82be, 0x83be, 0x84be, 0x85be, 0x86be, 0x87be, 0x88be, 0x89be, 0x8abe, 0x8bbe, 0x8cbe, 0x8dbe, 0x8ebe, 0x8fbe, 0x90be, 0x91be, 0x92be, 0x93be, 0x94be, 0x95be, 0x96be, 0x97be, 0x98be, 0x99be, 0x9abe, 0x9bbe, 0x9cbe, 0x9dbe, 0x9ebe, 0x9fbe, 0xa0be, 0x40bf, 0x41bf, 0x42bf, 0x43bf, 0x44bf, 0x45bf, 0x46bf, 0x47bf, 0x48bf, 0x49bf, 0x4abf, 0x4bbf, 0x4cbf, 0x4dbf, 0x4ebf, 0x4fbf, 0x50bf, 0x51bf, 0x52bf, 0x53bf, 0x54bf, 0x55bf, 0x56bf, 0x57bf, 0x58bf, 0x59bf, 0x5abf, 0x5bbf, 0x5cbf, 0x5dbf, 0x5ebf, 0x5fbf, 0x60bf, 0x61bf, 0x62bf, 0x63bf, 0x64bf, 0x65bf, 0x66bf, 0x67bf, 0x68bf, 0x69bf, 0x6abf, 0x6bbf, 0x6cbf, 0x6dbf, 0x6ebf, 0x6fbf, 0x70bf, 0x71bf, 0x72bf, 0x73bf, 0x74bf, 0x75bf, 0x76bf, 0x77bf, 0x78bf, 0x79bf, 0x7abf, 0x7bbf, 0x7cbf, 0x7dbf, 0x7ebf, 0x80bf, 0xe3f7, 0x81bf, 0x82bf, 0x83bf, 0x84bf, 0x85bf, 0xb1b7, 0x86bf, 0x87bf, 0x88bf, 0x89bf, 0x8abf, 0xedf4, 0x8bbf, 0x8cbf, 0x8dbf, 0x8ebf, 0x8fbf, 0x90bf, 0x91bf, 0x92bf, 0x93bf, 0x94bf, 0x95bf, 0x96bf, 0x97bf, 0x98bf, 0x99bf, 0x9abf, 0x9bbf, 0x9cbf, 0x9dbf, 0x9ebf, 0x9fbf, 0xa0bf, 0x40c0, 0x41c0, 0x42c0, 0x43c0, 0x44c0, 0x45c0, 0x46c0, 0x47c0, 0x48c0, 0x49c0, 0x4ac0, 0x4bc0, 0x4cc0, 0x4dc0, 0x4ec0, 0x4fc0, 0x50c0, 0x51c0, 0x52c0, 0x53c0, 0x54c0, 0x55c0, 0x56c0, 0x57c0, 0x58c0, 0x59c0, 0x5ac0, 0x5bc0, 0x5cc0, 0x5dc0, 0x5ec0, 0x5fc0, 0x60c0, 0x61c0, 0x62c0, 0x63c0, 0xebd7, 0x64c0, 0x65c0, 0x66c0, 0x67c0, 0x68c0, 0x69c0, 0x6ac0, 0x6bc0, 0x6cc0, 0x6dc0, 0x6ec0, 0x6fc0, 0x70c0, 0x71c0, 0x72c0, 0x73c0, 0x74c0, 0x75c0, 0x76c0, 0x77c0, 0x78c0, 0x79c0, 0x7ac0, 0x7bc0, 0xeef4, 0x7cc0, 0x7dc0, 0x7ec0, 0xf9e6, 0xc0be, 0xfae6, 0xecba, 0xfbe6, 0xcbcf, 0xfce6, 0xbcd4, 0xb6bc, 0xfde6, 0xfee6, 0xcdbc, 0xd2c8, 0xb3ce, 0xa1e7, 0x80c0, 0xbfb4, 0xa2e7, 0xb4c9, 0xd9b8, 0xc9c4, 0x81c0, 0xddd7, 0xdac2, 0xd7b7, 0xbdd6, 0xc6ce, 0xc4b7, 0x82c0, 0x83c0, 0xa6c5, 0xa3e7, 0xdfcf, 0xa4e7, 0xa5e7, 0xa6e7, 0xb7c1, 0xe9d7, 0xf0c9, 0xb8cf, 0xafd6, 0xd5d6, 0xa7e7, 0xedb0, 0xa8e7, 0xa9e7, 0xdcc9, 0xefd2, 0xadbe, 0xaae7, 0xf3b0, 0xdec8, 0xe1bd, 0xabe7, 0xc6c8, 0x84c0, 0xace7, 0xe6bb, 0xf8b8, 0xa4d1, 0xade7, 0xe7c2, 0xf8be, 0xcabd, 0xb3cd, 0xaee7, 0xafe7, 0xeebe, 0xe5d0, 0x85c0, 0xe7cb, 0xd0cc, 0xccbc, 0xb0e7, 0xa8bc, 0xf7d0, 0xb1e7, 0x86c0, 0xf8d0, 0xb2e7, 0xb3e7, 0xc2b4, 0xb4e7, 0xb5e7, 0xfec9, 0xacce, 0xe0c3, 0xb7e7, 0xc1b1, 0xf1b3, 0x87c0, 0xb8e7, 0xb9e7, 0xdbd7, 0xc0d5, 0xbae7, 0xccc2, 0xbad7, 0xbbe7, 0xbce7, 0xbde7, 0xeabc, 0xe5c3, 0xc2c0, 0xbee7, 0xbfe7, 0xa9bc, 0x88c0, 0xc0e7, 0xc1e7, 0xb6e7, 0xd0b6, 0xc2e7, 0x89c0, 0xc3e7, 0xc4e7, 0xbabb, 0xdeb5, 0xc6c2, 0xe0b1, 0xc5e7, 0xb5d4, 0xc6e7, 0xbfb8, 0xc8e7, 0xc7e7, 0xecb7, 0x8ac0, 0xc9e7, 0xf8b2, 0xcae7, 0xcbe7, 0xcce7, 0xcde7, 0xcee7, 0xcfe7, 0xd0e7, 0xa7d3, 0xf5cb, 0xd1e7, 0xd2e7, 0xd3e7, 0xd4e7, 0xc9c9, 0xd5e7, 0xd6e7, 0xd7e7, 0xd8e7, 0xd9e7, 0xc9bd, 0xdae7, 0xbef3, 0x8bc0, 0xd7b8, 0x8cc0, 0xb1c8, 0x8dc0, 0x8ec0, 0x8fc0, 0x90c0, 0x91c0, 0x92c0, 0x93c0, 0xbff3, 0x94c0, 0xc0f3, 0xc1f3, 0x95c0, 0x96c0, 0x97c0, 0x98c0, 0x99c0, 0x9ac0, 0x9bc0, 0x9cc0, 0x9dc0, 0x9ec0, 0xdeb9, 0xf8cd, 0x9fc0, 0xa0c0, 0xe8d8, 0xb1ba, 0x40c1, 0xdec2, 0xb7ee, 0x41c1, 0xa3b7, 0x42c1, 0x43c1, 0x44c1, 0x45c1, 0xb9ee, 0x46c1, 0xb8ee, 0xd5b0, 0x47c1, 0x48c1, 0x49c1, 0x4ac1, 0x4bc1, 0xbbee, 0xd6d5, 0xefd7, 0x4cc1, 0x4dc1, 0x4ec1, 0xc3d6, 0x4fc1, 0x50c1, 0xbdee, 0xf0ca, 0x51c1, 0xbcee, 0x52c1, 0x53c1, 0x54c1, 0x55c1, 0xbeee, 0x56c1, 0x57c1, 0x58c1, 0x59c1, 0xc0ee, 0x5ac1, 0x5bc1, 0xbfee, 0x5cc1, 0x5dc1, 0x5ec1, 0x5fc1, 0x60c1, 0x61c1, 0x62c1, 0x63c1, 0xf2d1, 0x64c1, 0xbcc7, 0x65c1, 0xc0c3, 0x66c1, 0x67c1, 0x68c1, 0x69c1, 0x6ac1, 0xe1b8, 0x6bc1, 0x6cc1, 0x6dc1, 0x6ec1, 0x6fc1, 0xe7c1, 0x70c1, 0x71c1, 0xc6f4, 0xdfd0, 0xc7f4, 0x72c1, 0xdbcf, 0x73c1, 0x74c1, 0xbac8, 0x75c1, 0x76c1, 0xc8f4, 0x77c1, 0x78c1, 0x79c1, 0x7ac1, 0x7bc1, 0x7cc1, 0x7dc1, 0xc9f4, 0xcaf4, 0x7ec1, 0xcbf4, 0x80c1, 0x81c1, 0x82c1, 0x83c1, 0x84c1, 0xfad9, 0xfeb8, 0x85c1, 0x86c1, 0xf1e5, 0xf0d3, 0x87c1, 0xe0f4, 0x88c1, 0xccce, 0x89c1, 0x8ac1, 0x8bc1, 0xe1b3, 0x8cc1, 0x8dc1, 0x8ec1, 0x8fc1, 0xb4f1, 0x90c1, 0xeed2, 0x91c1, 0xe1f4, 0x92c1, 0x93c1, 0x94c1, 0x95c1, 0x96c1, 0xe8cf, 0xe2f4, 0x97c1, 0x98c1, 0xccc7, 0x99c1, 0x9ac1, 0x9bc1, 0x9cc1, 0x9dc1, 0x9ec1, 0xd4b5, 0xe4b4, 0xe4f4, 0x9fc1, 0xa0c1, 0x40c2, 0xe3f4, 0xe5f4, 0x41c2, 0x42c2, 0xe6f4, 0x43c2, 0x44c2, 0x45c2, 0x46c2, 0xe7f4, 0x47c2, 0xb2ba, 0xbfb0, 0x48c2, 0xe8f4, 0x49c2, 0x4ac2, 0x4bc2, 0x4cc2, 0x4dc2, 0x4ec2, 0x4fc2, 0xadb7, 0xedd2, 0x50c2, 0x51c2, 0x52c2, 0xabd2, 0xcfc0, 0x53c2, 0xbcbf, 0xa3eb, 0xdfd5, 0xc8ea, 0x54c2, 0x55c2, 0x56c2, 0x57c2, 0xf3f1, 0xf8b6, 0xa3cb, 0x58c2, 0x59c2, 0xcdc4, 0x5ac2, 0xe7f1, 0x5bc2, 0xe8f1, 0xfbb8, 0xe9f1, 0xc4ba, 0xc5d4, 0xd2b0, 0x5cc2, 0x5dc2, 0xeaf1, 0x5ec2, 0x5fc2, 0x60c2, 0xebf1, 0x61c2, 0xecf1, 0x62c2, 0x63c2, 0xedf1, 0xeef1, 0xeff1, 0xf1f1, 0xf0f1, 0xd5c5, 0x64c2, 0x65c2, 0x66c2, 0x67c2, 0x68c2, 0x69c2, 0xf2f1, 0x6ac2, 0xfab6, 0x6bc2, 0xf4f1, 0xaed2, 0xc7de, 0xcacb, 0x6cc2, 0x6dc2, 0xdcb3, 0x6ec2, 0xa2b5, 0x6fc2, 0xa2b9, 0x70c2, 0x71c2, 0xf4c4, 0xf5f1, 0x72c2, 0x73c2, 0xf6f1, 0x74c2, 0x75c2, 0x76c2, 0xc4c1, 0xfbc1, 0xb0d6, 0xf7f1, 0x77c2, 0x78c2, 0x79c2, 0x7ac2, 0xf8f1, 0x7bc2, 0xaac1, 0x7cc2, 0x7dc2, 0x7ec2, 0xb8c6, 0x80c2, 0xdbbe, 0x81c2, 0x82c2, 0x83c2, 0x84c2, 0x85c2, 0x86c2, 0x87c2, 0x88c2, 0x89c2, 0x8ac2, 0x8bc2, 0x8cc2, 0x8dc2, 0x8ec2, 0xf9f1, 0xcfb4, 0x8fc2, 0x90c2, 0x91c2, 0x92c2, 0x93c2, 0x94c2, 0xfaf1, 0x95c2, 0x96c2, 0x97c2, 0x98c2, 0x99c2, 0x9ac2, 0x9bc2, 0x9cc2, 0x9dc2, 0x9ec2, 0x9fc2, 0xa0c2, 0x40c3, 0xb2ed, 0xb1ed, 0x41c3, 0x42c3, 0xe0cb, 0xded2, 0x43c3, 0xc1cb, 0xd8d5, 0x44c3, 0xe2c8, 0x45c3, 0xdfc0, 0xa1bc, 0x46c3, 0x47c3, 0x48c3, 0x49c3, 0x4ac3, 0x4bc3, 0xc1eb, 0x4cc3, 0x4dc3, 0xa4d0, 0x4ec3, 0xe2d6, 0x4fc3, 0xc7b6, 0xd8b8, 0xc0eb, 0xceb8, 0x50c3, 0xbfeb, 0xa6b3, 0xc9b9, 0xabd6, 0x51c3, 0xf4b7, 0xcab7, 0x52c3, 0x53c3, 0x54c3, 0xe7bc, 0xbeb7, 0xc6eb, 0x55c3, 0xc7eb, 0xb9b0, 0xcfbf, 0x56c3, 0xc5eb, 0xfdd3, 0x57c3, 0xc8eb, 0x58c3, 0x59c3, 0xc9eb, 0x5ac3, 0x5bc3, 0xceb7, 0x5cc3, 0xc2eb, 0xc4eb, 0xf6c9, 0xd7d6, 0xcdd5, 0xb2d0, 0xcfeb, 0xb8ce, 0xd0eb, 0x5dc3, 0xa8b5, 0x5ec3, 0x5fc3, 0x60c3, 0x61c3, 0x62c3, 0xb3b1, 0xd2eb, 0xa5cc, 0x63c3, 0x64c3, 0x65c3, 0x66c3, 0x67c3, 0x68c3, 0x69c3, 0xd6c5, 0xd3eb, 0x6ac3, 0xd1eb, 0xdfc5, 0xceeb, 0xa4ca, 0xd5eb, 0xfbb0, 0x6bc3, 0x6cc3, 0xfaba, 0x6dc3, 0x6ec3, 0xb7d8, 0xe3f1, 0x6fc3, 0xcaeb, 0xcbeb, 0xcceb, 0xcdeb, 0xd6eb, 0xc0e6, 0xd9eb, 0x70c3, 0xe8bf, 0xc8d2, 0xd7eb, 0xdceb, 0xecb8, 0xd8eb, 0x71c3, 0xbabd, 0x72c3, 0xd8d0, 0x73c3, 0xb7b0, 0x74c3, 0xddeb, 0xdcc4, 0x75c3, 0x76c3, 0x77c3, 0x78c3, 0xacd6, 0x79c3, 0x7ac3, 0x7bc3, 0xe0b4, 0x7cc3, 0x7dc3, 0xf6c2, 0xb9bc, 0x7ec3, 0x80c3, 0xdaeb, 0xdbeb, 0xe0d4, 0xeac6, 0xd4c4, 0xdfeb, 0xa7c5, 0xf5d9, 0x81c3, 0xb1b2, 0x82c3, 0xe4eb, 0x83c3, 0xc5bd, 0x84c3, 0x85c3, 0x86c3, 0xe2eb, 0x87c3, 0x88c3, 0x89c3, 0x8ac3, 0x8bc3, 0x8cc3, 0x8dc3, 0x8ec3, 0x8fc3, 0x90c3, 0x91c3, 0x92c3, 0x93c3, 0xe3eb, 0x94c3, 0x95c3, 0xacb8, 0x96c3, 0xd1cd, 0xe5eb, 0x97c3, 0x98c3, 0x99c3, 0xe1eb, 0x9ac3, 0xb3c1, 0x9bc3, 0x9cc3, 0x9dc3, 0x9ec3, 0x9fc3, 0xa2c6, 0xa0c3, 0x40c4, 0x41c4, 0x42c4, 0x43c4, 0x44c4, 0x45c4, 0xf3cc, 0x46c4, 0xe6eb, 0x47c4, 0xb0c0, 0xb8d2, 0xe7eb, 0x48c4, 0x49c4, 0x4ac4, 0xafb8, 0xadb8, 0x4bc4, 0xe8eb, 0xbbc7, 0xf3cd, 0x4cc4, 0x4dc4, 0x4ec4, 0xeaeb, 0xebeb, 0x4fc4, 0x50c4, 0x51c4, 0x52c4, 0x53c4, 0xedeb, 0x54c4, 0x55c4, 0x56c4, 0x57c4, 0xc8d0, 0x58c4, 0xf2eb, 0x59c4, 0xeeeb, 0x5ac4, 0x5bc4, 0x5cc4, 0xf1eb, 0xf9c8, 0x5dc4, 0xfcd1, 0xeceb, 0x5ec4, 0x5fc4, 0xe9eb, 0x60c4, 0x61c4, 0x62c4, 0x63c4, 0xb9b8, 0xd9cf, 0xe5c4, 0xefeb, 0xf0eb, 0xdacc, 0xc8cd, 0xf2b0, 0x64c4, 0xf6eb, 0x65c4, 0x66c4, 0x67c4, 0x68c4, 0x69c4, 0xf5eb, 0x6ac4, 0xb2b2, 0x6bc4, 0x6cc4, 0x6dc4, 0x6ec4, 0xe0b8, 0x6fc4, 0xf7eb, 0x70c4, 0x71c4, 0x72c4, 0x73c4, 0x74c4, 0x75c4, 0xecb1, 0x76c4, 0x77c4, 0xc5cc, 0xa4c4, 0xa5cf, 0x78c4, 0x79c4, 0x7ac4, 0x7bc4, 0x7cc4, 0xf9eb, 0x7dc4, 0x7ec4, 0xa2ec, 0x80c4, 0xf2c5, 0x81c4, 0xfaeb, 0x82c4, 0x83c4, 0x84c4, 0x85c4, 0x86c4, 0x87c4, 0x88c4, 0x89c4, 0xc5c9, 0x8ac4, 0x8bc4, 0x8cc4, 0x8dc4, 0x8ec4, 0x8fc4, 0xdfe2, 0xfeeb, 0x90c4, 0x91c4, 0x92c4, 0x93c4, 0xcecd, 0xa1ec, 0xdbb1, 0xb7d3, 0x94c4, 0x95c4, 0xdcd2, 0x96c4, 0x97c4, 0x98c4, 0xfdeb, 0x99c4, 0xfbeb, 0x9ac4, 0x9bc4, 0x9cc4, 0x9dc4, 0x9ec4, 0x9fc4, 0xa0c4, 0x40c5, 0x41c5, 0x42c5, 0x43c5, 0x44c5, 0x45c5, 0x46c5, 0x47c5, 0x48c5, 0x49c5, 0x4ac5, 0x4bc5, 0x4cc5, 0x4dc5, 0x4ec5, 0xbcb3, 0x4fc5, 0x50c5, 0x51c5, 0xb0ea, 0x52c5, 0x53c5, 0xd4d7, 0x54c5, 0xabf4, 0xf4b3, 0x55c5, 0x56c5, 0x57c5, 0x58c5, 0x59c5, 0xc1d6, 0xc2d6, 0x5ac5, 0x5bc5, 0x5cc5, 0x5dc5, 0x5ec5, 0x5fc5, 0xe9d5, 0xcabe, 0x60c5, 0xa7f4, 0x61c5, 0xa8d2, 0xa8f4, 0xa9f4, 0x62c5, 0xaaf4, 0xcbbe, 0xdfd3, 0x63c5, 0x64c5, 0x65c5, 0x66c5, 0x67c5, 0xe0c9, 0xe1c9, 0x68c5, 0x69c5, 0xc2f3, 0x6ac5, 0xe6ca, 0x6bc5, 0xf2cc, 0x6cc5, 0x6dc5, 0x6ec5, 0x6fc5, 0x70c5, 0x71c5, 0xb6e2, 0xb4cb, 0x72c5, 0xe8ce, 0xdbd6, 0x73c5, 0xadf4, 0xaef4, 0xaff4, 0x74c5, 0x75c5, 0x76c5, 0x77c5, 0xb2f4, 0x78c5, 0xbdba, 0xb3f4, 0xe3b0, 0xb0f4, 0x79c5, 0xb1f4, 0xa2bd, 0xd5b2, 0x7ac5, 0xb6f4, 0xb7f4, 0xe6b6, 0xb0b2, 0xcfcf, 0xb4f4, 0xacb4, 0x7bc5, 0xb5f4, 0x7cc5, 0x7dc5, 0xb8f4, 0x7ec5, 0x80c5, 0x81c5, 0x82c5, 0x83c5, 0xb9f4, 0x84c5, 0x85c5, 0xa7cd, 0x86c5, 0xbaf4, 0x87c5, 0xbbf4, 0x88c5, 0x89c5, 0x8ac5, 0xbcf4, 0x8bc5, 0x8cc5, 0x8dc5, 0x8ec5, 0x8fc5, 0x90c5, 0x91c5, 0x92c5, 0xd2cb, 0x93c5, 0xbdf4, 0x94c5, 0x95c5, 0x96c5, 0x97c5, 0xbef4, 0x98c5, 0x99c5, 0x9ac5, 0x9bc5, 0x9cc5, 0x9dc5, 0x9ec5, 0x9fc5, 0xbff4, 0xa0c5, 0x40c6, 0x41c6, 0x42c6, 0x43c6, 0xdef4, 0xbcc1, 0xe8bc, 0x44c6, 0xabc9, 0xded1, 0xf5e5, 0x45c6, 0x46c6, 0x47c6, 0x48c6, 0xb3dc, 0xd5d2, 0x49c6, 0x4ac6, 0xb4dc, 0xacb0, 0xb5dc, 0x4bc6, 0x4cc6, 0xdabd, 0x4dc6, 0xb9dc, 0x4ec6, 0x4fc6, 0x50c6, 0xc2d8, 0x51c6, 0xb7dc, 0xf3d3, 0x52c6, 0xd6c9, 0xbadc, 0xb6dc, 0x53c6, 0xbbdc, 0xa2c3, 0x54c6, 0x55c6, 0x56c6, 0x57c6, 0xbcdc, 0xc5dc, 0xbddc, 0x58c6, 0x59c6, 0xdfce, 0xa5d6, 0x5ac6, 0xcfdc, 0x5bc6, 0xcddc, 0x5cc6, 0x5dc6, 0xd2dc, 0xe6bd, 0xabc2, 0x5ec6, 0xb8dc, 0xcbdc, 0xcedc, 0xbedc, 0xd2b7, 0xc5b0, 0xc7dc, 0xbed0, 0xc1dc, 0xa8bb, 0x5fc6, 0xbcb7, 0xccdc, 0x60c6, 0x61c6, 0xc6dc, 0xbfdc, 0xdbc7, 0x62c6, 0x63c6, 0x64c6, 0xbfd1, 0xc0dc, 0x65c6, 0x66c6, 0xcadc, 0x67c6, 0x68c6, 0xd0dc, 0x69c6, 0x6ac6, 0xadce, 0xc2dc, 0x6bc6, 0xc3dc, 0xc8dc, 0xc9dc, 0xd4b2, 0xd1dc, 0xd5cb, 0x6cc6, 0xb7d4, 0xdbdc, 0xdfdc, 0xa6cc, 0xe6dc, 0x6dc6, 0xe7c3, 0xdcdc, 0x6ec6, 0x6fc6, 0xc1bf, 0xd9dc, 0x70c6, 0xfab0, 0xb6b9, 0xe5dc, 0xd3dc, 0x71c6, 0xc4dc, 0xd6dc, 0xf4c8, 0xe0bf, 0x72c6, 0x73c6, 0x74c6, 0x75c6, 0xbbc9, 0x76c6, 0x77c6, 0x78c6, 0xbdb1, 0x79c6, 0xa2d3, 0x7ac6, 0x7bc6, 0xdadc, 0x7cc6, 0x7dc6, 0xd5dc, 0x7ec6, 0xbbc6, 0x80c6, 0xdedc, 0x81c6, 0x82c6, 0x83c6, 0x84c6, 0x85c6, 0xc2d7, 0xafc3, 0xb6b7, 0xd1c7, 0xa9c3, 0xe2dc, 0xd8dc, 0xebdc, 0xd4dc, 0x86c6, 0x87c6, 0xdddc, 0x88c6, 0xa5be, 0xd7dc, 0x89c6, 0xe0dc, 0x8ac6, 0x8bc6, 0xe3dc, 0xe4dc, 0x8cc6, 0xf8dc, 0x8dc6, 0x8ec6, 0xe1dc, 0xa2dd, 0xe7dc, 0x8fc6, 0x90c6, 0x91c6, 0x92c6, 0x93c6, 0x94c6, 0x95c6, 0x96c6, 0x97c6, 0x98c6, 0xebbc, 0xc4b4, 0x99c6, 0x9ac6, 0xa3c3, 0xe7b2, 0xfadc, 0x9bc6, 0xf2dc, 0x9cc6, 0xefdc, 0x9dc6, 0xfcdc, 0xeedc, 0xf0d2, 0xe8b2, 0x9ec6, 0xd7c8, 0xe3c8, 0xfbdc, 0x9fc6, 0xeddc, 0xa0c6, 0x40c7, 0x41c7, 0xf7dc, 0x42c7, 0x43c7, 0xf5dc, 0x44c7, 0x45c7, 0xa3be, 0xf4dc, 0x46c7, 0xddb2, 0x47c7, 0x48c7, 0x49c7, 0x4ac7, 0x4bc7, 0xf3dc, 0xf6bc, 0xe8dc, 0xc4bb, 0x4cc7, 0xf3c0, 0x4dc7, 0x4ec7, 0x4fc7, 0x50c7, 0x51c7, 0xd4bc, 0xe9dc, 0xeadc, 0x52c7, 0xf1dc, 0xf6dc, 0xf9dc, 0xb4b5, 0x53c7, 0xd9c8, 0xe7bb, 0xfedc, 0xfddc, 0xabd3, 0xa1dd, 0xa3dd, 0xa5dd, 0xf1d2, 0xa4dd, 0xa6dd, 0xa7dd, 0xa9d2, 0x54c7, 0x55c7, 0x56c7, 0x57c7, 0x58c7, 0x59c7, 0x5ac7, 0xc9ba, 0xa9dd, 0x5bc7, 0x5cc7, 0xb6dd, 0xb1dd, 0xb4dd, 0x5dc7, 0x5ec7, 0x5fc7, 0x60c7, 0x61c7, 0x62c7, 0x63c7, 0xb0dd, 0xcec6, 0x64c7, 0x65c7, 0xf2c0, 0x66c7, 0x67c7, 0x68c7, 0x69c7, 0xafc9, 0x6ac7, 0x6bc7, 0x6cc7, 0xecdc, 0xaedd, 0x6dc7, 0x6ec7, 0x6fc7, 0x70c7, 0xb7dd, 0x71c7, 0x72c7, 0xf0dc, 0xafdd, 0x73c7, 0xb8dd, 0x74c7, 0xacdd, 0x75c7, 0x76c7, 0x77c7, 0x78c7, 0x79c7, 0x7ac7, 0x7bc7, 0xb9dd, 0xb3dd, 0xaddd, 0xaac4, 0x7cc7, 0x7dc7, 0x7ec7, 0x80c7, 0xa8dd, 0xb3c0, 0xabc1, 0xaadd, 0xabdd, 0x81c7, 0xb2dd, 0xf1bb, 0xb5dd, 0xa8d3, 0xbadd, 0x82c7, 0xbbdd, 0xa7c3, 0x83c7, 0x84c7, 0xd2dd, 0xbcdd, 0x85c7, 0x86c7, 0x87c7, 0xd1dd, 0x88c7, 0xbdb9, 0x89c7, 0x8ac7, 0xd5be, 0x8bc7, 0xfabe, 0x8cc7, 0x8dc7, 0xcaba, 0x8ec7, 0x8fc7, 0x90c7, 0x91c7, 0xcadd, 0x92c7, 0xc5dd, 0x93c7, 0xbfdd, 0x94c7, 0x95c7, 0x96c7, 0xcbb2, 0xc3dd, 0x97c7, 0xcbdd, 0xa4b2, 0xd5dd, 0x98c7, 0x99c7, 0x9ac7, 0xbedd, 0x9bc7, 0x9cc7, 0x9dc7, 0xd0c6, 0xd0dd, 0x9ec7, 0x9fc7, 0xa0c7, 0x40c8, 0x41c8, 0xd4dd, 0xe2c1, 0xc6b7, 0x42c8, 0x43c8, 0x44c8, 0x45c8, 0x46c8, 0xcedd, 0xcfdd, 0x47c8, 0x48c8, 0x49c8, 0xc4dd, 0x4ac8, 0x4bc8, 0x4cc8, 0xbddd, 0x4dc8, 0xcddd, 0xd1cc, 0x4ec8, 0xc9dd, 0x4fc8, 0x50c8, 0x51c8, 0x52c8, 0xc2dd, 0xc8c3, 0xbcc6, 0xaece, 0xccdd, 0x53c8, 0xc8dd, 0x54c8, 0x55c8, 0x56c8, 0x57c8, 0x58c8, 0x59c8, 0xc1dd, 0x5ac8, 0x5bc8, 0x5cc8, 0xc6dd, 0xdcc2, 0x5dc8, 0x5ec8, 0x5fc8, 0x60c8, 0x61c8, 0x62c8, 0xa9d3, 0xaad3, 0xd3dd, 0xf4cf, 0xf8c8, 0x63c8, 0x64c8, 0x65c8, 0x66c8, 0x67c8, 0x68c8, 0x69c8, 0x6ac8, 0xe6dd, 0x6bc8, 0x6cc8, 0x6dc8, 0x6ec8, 0x6fc8, 0x70c8, 0xc7dd, 0x71c8, 0x72c8, 0x73c8, 0xe0dd, 0xe4c2, 0x74c8, 0x75c8, 0x76c8, 0x77c8, 0x78c8, 0x79c8, 0x7ac8, 0x7bc8, 0xe1dd, 0x7cc8, 0x7dc8, 0x7ec8, 0x80c8, 0x81c8, 0x82c8, 0x83c8, 0x84c8, 0x85c8, 0x86c8, 0xd7dd, 0x87c8, 0x88c8, 0x89c8, 0x8ac8, 0x8bc8, 0xf8d6, 0x8cc8, 0xd9dd, 0xd8dd, 0xf0b8, 0xd6dd, 0x8dc8, 0x8ec8, 0x8fc8, 0x90c8, 0xcfc6, 0x91c8, 0xadb6, 0x92c8, 0x93c8, 0x94c8, 0x95c8, 0x96c8, 0xe2dd, 0x97c8, 0xf9ba, 0xe1d4, 0xe7dd, 0x98c8, 0x99c8, 0x9ac8, 0xd0b4, 0x9bc8, 0xdadd, 0x9cc8, 0xfbbf, 0xe3dd, 0x9dc8, 0xdfdd, 0x9ec8, 0xdddd, 0x9fc8, 0xa0c8, 0x40c9, 0x41c9, 0x42c9, 0x43c9, 0x44c9, 0xd9b5, 0x45c9, 0x46c9, 0x47c9, 0x48c9, 0xdbdd, 0xdcdd, 0xdedd, 0x49c9, 0xafbd, 0xe4dd, 0x4ac9, 0xe5dd, 0x4bc9, 0x4cc9, 0x4dc9, 0x4ec9, 0x4fc9, 0x50c9, 0x51c9, 0x52c9, 0xf5dd, 0x53c9, 0xc9c3, 0x54c9, 0x55c9, 0xe2cb, 0x56c9, 0x57c9, 0x58c9, 0x59c9, 0xf2dd, 0x5ac9, 0x5bc9, 0x5cc9, 0x5dc9, 0x5ec9, 0x5fc9, 0x60c9, 0x61c9, 0x62c9, 0x63c9, 0x64c9, 0x65c9, 0x66c9, 0xe1d8, 0x67c9, 0x68c9, 0xd1c6, 0x69c9, 0xf4dd, 0x6ac9, 0x6bc9, 0x6cc9, 0xf4d5, 0xf3dd, 0xf0dd, 0x6dc9, 0x6ec9, 0xecdd, 0x6fc9, 0xefdd, 0x70c9, 0xe8dd, 0x71c9, 0x72c9, 0xeed0, 0x73c9, 0x74c9, 0x75c9, 0x76c9, 0xd8c8, 0xeedd, 0x77c9, 0x78c9, 0xe9dd, 0x79c9, 0x7ac9, 0xeadd, 0xf2cb, 0x7bc9, 0xeddd, 0x7cc9, 0x7dc9, 0xcdb1, 0x7ec9, 0x80c9, 0x81c9, 0x82c9, 0x83c9, 0x84c9, 0xb6c0, 0x85c9, 0xbbbc, 0xf1dd, 0x86c9, 0x87c9, 0xf7dd, 0x88c9, 0xf6dd, 0xebdd, 0x89c9, 0x8ac9, 0x8bc9, 0x8cc9, 0x8dc9, 0xeec5, 0x8ec9, 0x8fc9, 0x90c9, 0xfbdd, 0x91c9, 0x92c9, 0x93c9, 0x94c9, 0x95c9, 0x96c9, 0x97c9, 0x98c9, 0x99c9, 0x9ac9, 0x9bc9, 0xa4de, 0x9cc9, 0x9dc9, 0xa3de, 0x9ec9, 0x9fc9, 0xa0c9, 0x40ca, 0x41ca, 0x42ca, 0x43ca, 0x44ca, 0x45ca, 0x46ca, 0x47ca, 0x48ca, 0xf8dd, 0x49ca, 0x4aca, 0x4bca, 0x4cca, 0xefc3, 0x4dca, 0xfbc2, 0x4eca, 0x4fca, 0x50ca, 0xe1d5, 0x51ca, 0x52ca, 0xb5ce, 0x53ca, 0x54ca, 0x55ca, 0x56ca, 0xfddd, 0x57ca, 0xccb2, 0x58ca, 0x59ca, 0x5aca, 0x5bca, 0x5cca, 0x5dca, 0x5eca, 0x5fca, 0x60ca, 0xe8c4, 0xdfca, 0x61ca, 0x62ca, 0x63ca, 0x64ca, 0x65ca, 0x66ca, 0x67ca, 0x68ca, 0x69ca, 0x6aca, 0xbec7, 0xfadd, 0xfcdd, 0xfedd, 0xa2de, 0xaab0, 0xceb1, 0x6bca, 0x6cca, 0x6dca, 0x6eca, 0x6fca, 0xacde, 0x70ca, 0x71ca, 0x72ca, 0x73ca, 0xa6de, 0xb6bd, 0xefc8, 0x74ca, 0x75ca, 0x76ca, 0x77ca, 0x78ca, 0x79ca, 0x7aca, 0x7bca, 0x7cca, 0x7dca, 0x7eca, 0xa1de, 0x80ca, 0x81ca, 0xa5de, 0x82ca, 0x83ca, 0x84ca, 0x85ca, 0xa9de, 0x86ca, 0x87ca, 0x88ca, 0x89ca, 0x8aca, 0xa8de, 0x8bca, 0x8cca, 0x8dca, 0xa7de, 0x8eca, 0x8fca, 0x90ca, 0x91ca, 0x92ca, 0x93ca, 0x94ca, 0x95ca, 0x96ca, 0xadde, 0x97ca, 0xccd4, 0x98ca, 0x99ca, 0x9aca, 0x9bca, 0xb3de, 0xaade, 0xaede, 0x9cca, 0x9dca, 0xd9c0, 0x9eca, 0x9fca, 0xa0ca, 0x40cb, 0x41cb, 0xa1b1, 0xb6de, 0x42cb, 0xb1de, 0x43cb, 0x44cb, 0x45cb, 0x46cb, 0x47cb, 0x48cb, 0x49cb, 0xb2de, 0x4acb, 0x4bcb, 0x4ccb, 0x4dcb, 0x4ecb, 0x4fcb, 0x50cb, 0x51cb, 0x52cb, 0x53cb, 0x54cb, 0xa6d1, 0xb5de, 0x55cb, 0x56cb, 0x57cb, 0x58cb, 0x59cb, 0x5acb, 0x5bcb, 0xafde, 0x5ccb, 0x5dcb, 0x5ecb, 0xb0de, 0x5fcb, 0xbdd0, 0x60cb, 0x61cb, 0x62cb, 0xb4de, 0xedca, 0xb9de, 0x63cb, 0x64cb, 0x65cb, 0x66cb, 0x67cb, 0x68cb, 0xb8de, 0x69cb, 0xb7de, 0x6acb, 0x6bcb, 0x6ccb, 0x6dcb, 0x6ecb, 0x6fcb, 0x70cb, 0xbbde, 0x71cb, 0x72cb, 0x73cb, 0x74cb, 0x75cb, 0x76cb, 0x77cb, 0xe5bd, 0x78cb, 0x79cb, 0x7acb, 0x7bcb, 0x7ccb, 0xd8b2, 0xeac3, 0x7dcb, 0x7ecb, 0xbade, 0x80cb, 0xbac5, 0x81cb, 0x82cb, 0x83cb, 0x84cb, 0x85cb, 0x86cb, 0xbcde, 0x87cb, 0x88cb, 0x89cb, 0x8acb, 0x8bcb, 0x8ccb, 0x8dcb, 0xd9cc, 0x8ecb, 0x8fcb, 0x90cb, 0x91cb, 0xaab7, 0x92cb, 0x93cb, 0x94cb, 0x95cb, 0x96cb, 0x97cb, 0x98cb, 0x99cb, 0x9acb, 0x9bcb, 0x9ccb, 0x9dcb, 0x9ecb, 0x9fcb, 0xa0cb, 0x40cc, 0x41cc, 0xe5d4, 0x42cc, 0x43cc, 0x44cc, 0xbdde, 0x45cc, 0x46cc, 0x47cc, 0x48cc, 0x49cc, 0xbfde, 0x4acc, 0x4bcc, 0x4ccc, 0x4dcc, 0x4ecc, 0x4fcc, 0x50cc, 0x51cc, 0x52cc, 0x53cc, 0x54cc, 0xa2c4, 0x55cc, 0x56cc, 0x57cc, 0x58cc, 0xc1de, 0x59cc, 0x5acc, 0x5bcc, 0x5ccc, 0x5dcc, 0x5ecc, 0x5fcc, 0x60cc, 0x61cc, 0x62cc, 0x63cc, 0x64cc, 0x65cc, 0x66cc, 0x67cc, 0x68cc, 0xbede, 0x69cc, 0xc0de, 0x6acc, 0x6bcc, 0x6ccc, 0x6dcc, 0x6ecc, 0x6fcc, 0x70cc, 0x71cc, 0x72cc, 0x73cc, 0x74cc, 0x75cc, 0x76cc, 0x77cc, 0xbad5, 0x78cc, 0x79cc, 0x7acc, 0xc2de, 0x7bcc, 0x7ccc, 0x7dcc, 0x7ecc, 0x80cc, 0x81cc, 0x82cc, 0x83cc, 0x84cc, 0x85cc, 0x86cc, 0x87cc, 0x88cc, 0x89cc, 0x8acc, 0x8bcc, 0xaef2, 0xa2bb, 0xb2c2, 0xb0c5, 0xc7c2, 0x8ccc, 0x8dcc, 0xaff2, 0x8ecc, 0x8fcc, 0x90cc, 0x91cc, 0x92cc, 0xe9d0, 0x93cc, 0x94cc, 0x95cc, 0xddd3, 0x96cc, 0x97cc, 0x98cc, 0xbdeb, 0x99cc, 0x9acc, 0x9bcc, 0x9ccc, 0x9dcc, 0x9ecc, 0x9fcc, 0xa0cc, 0xe6b3, 0xb0f2, 0x40cd, 0xb1f2, 0x41cd, 0x42cd, 0xadca, 0x43cd, 0x44cd, 0x45cd, 0x46cd, 0x47cd, 0x48cd, 0x49cd, 0xe7ba, 0xb3f2, 0xb5f2, 0xb4f2, 0xe4cb, 0xbacf, 0xb2f2, 0xb4ca, 0xcfd2, 0xecc2, 0x4acd, 0x4bcd, 0x4ccd, 0x4dcd, 0x4ecd, 0x4fcd, 0x50cd, 0xc3ce, 0xb8f2, 0xf6b0, 0xb7f2, 0x51cd, 0x52cd, 0x53cd, 0x54cd, 0x55cd, 0xbef2, 0x56cd, 0xcfb2, 0x57cd, 0x58cd, 0x59cd, 0x5acd, 0x5bcd, 0x5ccd, 0xc1d1, 0xbaf2, 0x5dcd, 0x5ecd, 0x5fcd, 0x60cd, 0x61cd, 0xbcf2, 0xe9d4, 0x62cd, 0x63cd, 0xbbf2, 0xb6f2, 0xbff2, 0xbdf2, 0x64cd, 0xb9f2, 0x65cd, 0x66cd, 0xc7f2, 0xc4f2, 0xc6f2, 0x67cd, 0x68cd, 0xcaf2, 0xc2f2, 0xc0f2, 0x69cd, 0x6acd, 0x6bcd, 0xc5f2, 0x6ccd, 0x6dcd, 0x6ecd, 0x6fcd, 0x70cd, 0xfbd6, 0x71cd, 0x72cd, 0x73cd, 0xc1f2, 0x74cd, 0xf9c7, 0xdfc9, 0x75cd, 0xc8f2, 0xc6b9, 0xb0b5, 0x76cd, 0x77cd, 0xc3f2, 0xc9f2, 0xd0f2, 0xd6f2, 0x78cd, 0x79cd, 0xd7bb, 0x7acd, 0x7bcd, 0x7ccd, 0xd5f2, 0xdccd, 0x7dcd, 0xebd6, 0x7ecd, 0x80cd, 0xd2f2, 0xd4f2, 0x81cd, 0x82cd, 0x83cd, 0x84cd, 0xf2b8, 0x85cd, 0x86cd, 0x87cd, 0x88cd, 0xcbf2, 0x89cd, 0x8acd, 0x8bcd, 0xcef2, 0xf9c2, 0x8ccd, 0xddd5, 0xccf2, 0xcdf2, 0xcff2, 0xd3f2, 0x8dcd, 0x8ecd, 0x8fcd, 0xd9f2, 0xbcd3, 0x90cd, 0x91cd, 0x92cd, 0x93cd, 0xeab6, 0x94cd, 0xf1ca, 0x95cd, 0xe4b7, 0xd7f2, 0x96cd, 0x97cd, 0x98cd, 0xd8f2, 0xdaf2, 0xddf2, 0xdbf2, 0x99cd, 0x9acd, 0xdcf2, 0x9bcd, 0x9ccd, 0x9dcd, 0x9ecd, 0xd1d1, 0xd1f2, 0x9fcd, 0xc9cd, 0xa0cd, 0xcfce, 0xa9d6, 0x40ce, 0xe3f2, 0x41ce, 0xdbc3, 0x42ce, 0xe0f2, 0x43ce, 0x44ce, 0xafc0, 0xecf2, 0xdef2, 0x45ce, 0xe1f2, 0x46ce, 0x47ce, 0x48ce, 0xe8f2, 0x49ce, 0x4ace, 0x4bce, 0x4cce, 0xe2f2, 0x4dce, 0x4ece, 0xe7f2, 0x4fce, 0x50ce, 0xe6f2, 0x51ce, 0x52ce, 0xe9f2, 0x53ce, 0x54ce, 0x55ce, 0xdff2, 0x56ce, 0x57ce, 0xe4f2, 0xeaf2, 0x58ce, 0x59ce, 0x5ace, 0x5bce, 0x5cce, 0x5dce, 0x5ece, 0xacd3, 0xe5f2, 0xf5b2, 0x5fce, 0x60ce, 0xf2f2, 0x61ce, 0xabd0, 0x62ce, 0x63ce, 0x64ce, 0x65ce, 0xf5f2, 0x66ce, 0x67ce, 0x68ce, 0xc8bb, 0x69ce, 0xf9f2, 0x6ace, 0x6bce, 0x6cce, 0x6dce, 0x6ece, 0x6fce, 0xf0f2, 0x70ce, 0x71ce, 0xf6f2, 0xf8f2, 0xfaf2, 0x72ce, 0x73ce, 0x74ce, 0x75ce, 0x76ce, 0x77ce, 0x78ce, 0x79ce, 0xf3f2, 0x7ace, 0xf1f2, 0x7bce, 0x7cce, 0x7dce, 0xfbba, 0x7ece, 0xfbb5, 0x80ce, 0x81ce, 0x82ce, 0x83ce, 0xeff2, 0xf7f2, 0xedf2, 0xeef2, 0x84ce, 0x85ce, 0x86ce, 0xebf2, 0xa6f3, 0x87ce, 0xa3f3, 0x88ce, 0x89ce, 0xa2f3, 0x8ace, 0x8bce, 0xf4f2, 0x8cce, 0xdac8, 0x8dce, 0x8ece, 0x8fce, 0x90ce, 0x91ce, 0xfbf2, 0x92ce, 0x93ce, 0x94ce, 0xa5f3, 0x95ce, 0x96ce, 0x97ce, 0x98ce, 0x99ce, 0x9ace, 0x9bce, 0xf8c3, 0x9cce, 0x9dce, 0x9ece, 0x9fce, 0xa0ce, 0x40cf, 0x41cf, 0x42cf, 0xfdf2, 0x43cf, 0x44cf, 0xa7f3, 0xa9f3, 0xa4f3, 0x45cf, 0xfcf2, 0x46cf, 0x47cf, 0x48cf, 0xabf3, 0x49cf, 0xaaf3, 0x4acf, 0x4bcf, 0x4ccf, 0x4dcf, 0xddc2, 0x4ecf, 0x4fcf, 0xaef3, 0x50cf, 0x51cf, 0xb0f3, 0x52cf, 0x53cf, 0x54cf, 0x55cf, 0x56cf, 0xa1f3, 0x57cf, 0x58cf, 0x59cf, 0xb1f3, 0xacf3, 0x5acf, 0x5bcf, 0x5ccf, 0x5dcf, 0x5ecf, 0xaff3, 0xfef2, 0xadf3, 0x5fcf, 0x60cf, 0x61cf, 0x62cf, 0x63cf, 0x64cf, 0x65cf, 0xb2f3, 0x66cf, 0x67cf, 0x68cf, 0x69cf, 0xb4f3, 0x6acf, 0x6bcf, 0x6ccf, 0x6dcf, 0xa8f3, 0x6ecf, 0x6fcf, 0x70cf, 0x71cf, 0xb3f3, 0x72cf, 0x73cf, 0x74cf, 0xb5f3, 0x75cf, 0x76cf, 0x77cf, 0x78cf, 0x79cf, 0x7acf, 0x7bcf, 0x7ccf, 0x7dcf, 0x7ecf, 0xb7d0, 0x80cf, 0x81cf, 0x82cf, 0x83cf, 0xb8f3, 0x84cf, 0x85cf, 0x86cf, 0x87cf, 0xf9d9, 0x88cf, 0x89cf, 0x8acf, 0x8bcf, 0x8ccf, 0x8dcf, 0xb9f3, 0x8ecf, 0x8fcf, 0x90cf, 0x91cf, 0x92cf, 0x93cf, 0x94cf, 0x95cf, 0xb7f3, 0x96cf, 0xe4c8, 0xb6f3, 0x97cf, 0x98cf, 0x99cf, 0x9acf, 0xbaf3, 0x9bcf, 0x9ccf, 0x9dcf, 0x9ecf, 0x9fcf, 0xbbf3, 0xc0b4, 0xa0cf, 0x40d0, 0x41d0, 0x42d0, 0x43d0, 0x44d0, 0x45d0, 0x46d0, 0x47d0, 0x48d0, 0x49d0, 0x4ad0, 0x4bd0, 0x4cd0, 0x4dd0, 0xc3ee, 0x4ed0, 0x4fd0, 0x50d0, 0x51d0, 0x52d0, 0x53d0, 0xbcf3, 0x54d0, 0x55d0, 0xbdf3, 0x56d0, 0x57d0, 0x58d0, 0xaad1, 0x59d0, 0x5ad0, 0x5bd0, 0xacf4, 0xc6d0, 0x5cd0, 0x5dd0, 0x5ed0, 0x5fd0, 0x60d0, 0x61d0, 0xd0d0, 0xdcd1, 0x62d0, 0x63d0, 0x64d0, 0x65d0, 0x66d0, 0x67d0, 0xcecf, 0x68d0, 0x69d0, 0xd6bd, 0x6ad0, 0xc3d1, 0x6bd0, 0x6cd0, 0x6dd0, 0x6ed0, 0x6fd0, 0x70d0, 0x71d0, 0xe2ba, 0xe9e1, 0xc2d2, 0xc2f1, 0xb9b2, 0x72d0, 0x73d0, 0xedb1, 0xc3f1, 0x74d0, 0xc0c9, 0xc4b3, 0x75d0, 0xf2d9, 0x76d0, 0xa5cb, 0x77d0, 0xc4f1, 0x78d0, 0x79d0, 0x7ad0, 0x7bd0, 0xd4d6, 0x7cd0, 0x7dd0, 0x7ed0, 0x80d0, 0x81d0, 0xc5f1, 0xc0f4, 0xc6f1, 0x82d0, 0xacd4, 0xc7f1, 0x83d0, 0xc0b0, 0xc1f4, 0x84d0, 0x85d0, 0xc2f4, 0x86d0, 0x87d0, 0xfcb4, 0x88d0, 0xdbc5, 0x89d0, 0x8ad0, 0x8bd0, 0x8cd0, 0xbbcc, 0x8dd0, 0x8ed0, 0x8fd0, 0xe4d0, 0x90d0, 0x91d0, 0x92d0, 0x93d0, 0x94d0, 0xe0cd, 0x95d0, 0x96d0, 0x97d0, 0x98d0, 0x99d0, 0xc8f1, 0x9ad0, 0xf3d9, 0x9bd0, 0x9cd0, 0x9dd0, 0x9ed0, 0x9fd0, 0xa0d0, 0xbbb1, 0x40d1, 0xaecf, 0x41d1, 0x42d1, 0x43d1, 0xa4b8, 0x44d1, 0x45d1, 0x46d1, 0x47d1, 0x48d1, 0xcaf1, 0x49d1, 0x4ad1, 0x4bd1, 0x4cd1, 0xcbf1, 0x4dd1, 0x4ed1, 0x4fd1, 0x50d1, 0xc3b2, 0xd1c1, 0x51d1, 0x52d1, 0xb0d7, 0xc9f1, 0x53d1, 0x54d1, 0xccf1, 0x55d1, 0x56d1, 0x57d1, 0x58d1, 0xcef1, 0x59d1, 0x5ad1, 0x5bd1, 0xf6d9, 0x5cd1, 0xe1d2, 0xa3d4, 0x5dd1, 0x5ed1, 0xc3f4, 0xb9c8, 0x5fd1, 0x60d1, 0x61d1, 0x62d1, 0x63d1, 0xc4f4, 0x64d1, 0x65d1, 0xcdf1, 0xcff1, 0xe3bf, 0xd0f1, 0x66d1, 0x67d1, 0xd4f1, 0x68d1, 0x69d1, 0x6ad1, 0x6bd1, 0x6cd1, 0x6dd1, 0x6ed1, 0xd6f1, 0xd1f1, 0x6fd1, 0xd1c9, 0xe1c5, 0x70d1, 0x71d1, 0x72d1, 0xe3c2, 0xfcb9, 0x73d1, 0x74d1, 0xd3f1, 0x75d1, 0xd5f1, 0x76d1, 0x77d1, 0x78d1, 0xd3b9, 0x79d1, 0x7ad1, 0x7bd1, 0x7cd1, 0x7dd1, 0x7ed1, 0x80d1, 0xdbf1, 0x81d1, 0x82d1, 0x83d1, 0x84d1, 0x85d1, 0xd6ba, 0x86d1, 0xfdb0, 0xd9f1, 0x87d1, 0x88d1, 0x89d1, 0x8ad1, 0x8bd1, 0xd8f1, 0xd2f1, 0xdaf1, 0x8cd1, 0x8dd1, 0x8ed1, 0x8fd1, 0x90d1, 0xd7f1, 0x91d1, 0x92d1, 0x93d1, 0xecc8, 0x94d1, 0x95d1, 0x96d1, 0x97d1, 0xcacd, 0xddf1, 0x98d1, 0x99d1, 0x9ad1, 0x9bd1, 0xbde5, 0x9cd1, 0x9dd1, 0x9ed1, 0xdcf1, 0x9fd1, 0xdef1, 0xa0d1, 0x40d2, 0x41d2, 0x42d2, 0x43d2, 0x44d2, 0x45d2, 0x46d2, 0x47d2, 0x48d2, 0xdff1, 0x49d2, 0x4ad2, 0xe5cf, 0x4bd2, 0x4cd2, 0x4dd2, 0x4ed2, 0x4fd2, 0x50d2, 0x51d2, 0x52d2, 0x53d2, 0x54d2, 0x55d2, 0x56d2, 0x57d2, 0x58d2, 0x59d2, 0x5ad2, 0x5bd2, 0x5cd2, 0x5dd2, 0x5ed2, 0x5fd2, 0x60d2, 0x61d2, 0x62d2, 0x63d2, 0xc5f4, 0xf3bd, 0x64d2, 0x65d2, 0x66d2, 0x67d2, 0x68d2, 0x69d2, 0xe0f1, 0x6ad2, 0x6bd2, 0x6cd2, 0x6dd2, 0x6ed2, 0x6fd2, 0x70d2, 0x71d2, 0x72d2, 0x73d2, 0x74d2, 0x75d2, 0x76d2, 0x77d2, 0x78d2, 0x79d2, 0x7ad2, 0x7bd2, 0x7cd2, 0x7dd2, 0xe1f1, 0x7ed2, 0x80d2, 0x81d2, 0xf7ce, 0x82d2, 0xaad2, 0x83d2, 0xfbf1, 0x84d2, 0x85d2, 0xb2b8, 0x86d2, 0x87d2, 0x88d2, 0x89d2, 0x8ad2, 0x8bd2, 0x8cd2, 0x8dd2, 0x8ed2, 0x8fd2, 0x90d2, 0x91d2, 0x92d2, 0x93d2, 0x94d2, 0x95d2, 0x96d2, 0x97d2, 0x98d2, 0x99d2, 0x9ad2, 0x9bd2, 0x9cd2, 0x9dd2, 0x9ed2, 0x9fd2, 0xa0d2, 0x40d3, 0x41d3, 0x42d3, 0x43d3, 0x44d3, 0x45d3, 0x46d3, 0x47d3, 0x48d3, 0x49d3, 0x4ad3, 0x4bd3, 0x4cd3, 0x4dd3, 0x4ed3, 0x4fd3, 0x50d3, 0x51d3, 0x52d3, 0x53d3, 0x54d3, 0x55d3, 0x56d3, 0x57d3, 0x58d3, 0x59d3, 0x5ad3, 0x5bd3, 0x5cd3, 0x5dd3, 0x5ed3, 0xfbbc, 0xdbb9, 0x5fd3, 0xe6b9, 0xd9c3, 0xd3ca, 0xe8ea, 0xc0c0, 0xf5be, 0xe9ea, 0xeaea, 0xebea, 0x60d3, 0xecea, 0xedea, 0xeeea, 0xefea, 0xc7bd, 0x61d3, 0x62d3, 0x63d3, 0xfbf5, 0x64d3, 0x65d3, 0x66d3, 0xfdf5, 0x67d3, 0xfef5, 0x68d3, 0xfcf5, 0x69d3, 0x6ad3, 0x6bd3, 0x6cd3, 0xe2bd, 0x6dd3, 0xa1f6, 0xa5b4, 0x6ed3, 0x6fd3, 0x70d3, 0x71d3, 0xa2f6, 0x72d3, 0x73d3, 0x74d3, 0xa3f6, 0x75d3, 0x76d3, 0x77d3, 0xb2ec, 0x78d3, 0x79d3, 0x7ad3, 0x7bd3, 0x7cd3, 0x7dd3, 0x7ed3, 0x80d3, 0x81d3, 0x82d3, 0x83d3, 0x84d3, 0xd4d1, 0x85d3, 0x86d3, 0x87d3, 0x88d3, 0x89d3, 0x8ad3, 0xead9, 0x8bd3, 0x8cd3, 0x8dd3, 0x8ed3, 0x8fd3, 0x90d3, 0x91d3, 0x92d3, 0x93d3, 0x94d3, 0x95d3, 0x96d3, 0x97d3, 0x98d3, 0x99d3, 0x9ad3, 0x9bd3, 0x9cd3, 0x9dd3, 0x9ed3, 0x9fd3, 0xa0d3, 0x40d4, 0x41d4, 0x42d4, 0x43d4, 0x44d4, 0x45d4, 0x46d4, 0x47d4, 0x48d4, 0x49d4, 0x4ad4, 0x4bd4, 0x4cd4, 0x4dd4, 0x4ed4, 0x4fd4, 0x50d4, 0x51d4, 0x52d4, 0x53d4, 0x54d4, 0x55d4, 0x56d4, 0x57d4, 0x58d4, 0x59d4, 0x5ad4, 0x5bd4, 0x5cd4, 0x5dd4, 0x5ed4, 0x5fd4, 0xa4f6, 0x60d4, 0x61d4, 0x62d4, 0x63d4, 0x64d4, 0x65d4, 0x66d4, 0x67d4, 0x68d4, 0xbaee, 0x69d4, 0x6ad4, 0x6bd4, 0x6cd4, 0x6dd4, 0x6ed4, 0x6fd4, 0x70d4, 0x71d4, 0x72d4, 0x73d4, 0x74d4, 0x75d4, 0x76d4, 0x77d4, 0x78d4, 0x79d4, 0x7ad4, 0x7bd4, 0x7cd4, 0x7dd4, 0x7ed4, 0x80d4, 0x81d4, 0x82d4, 0x83d4, 0x84d4, 0x85d4, 0x86d4, 0x87d4, 0x88d4, 0x89d4, 0x8ad4, 0x8bd4, 0x8cd4, 0x8dd4, 0x8ed4, 0x8fd4, 0x90d4, 0x91d4, 0x92d4, 0x93d4, 0x94d4, 0x95d4, 0x96d4, 0x97d4, 0x98d4, 0x99d4, 0xb2d5, 0x9ad4, 0x9bd4, 0x9cd4, 0x9dd4, 0x9ed4, 0x9fd4, 0xa0d4, 0x40d5, 0x41d5, 0x42d5, 0x43d5, 0x44d5, 0x45d5, 0x46d5, 0x47d5, 0xfed3, 0xdccc, 0x48d5, 0x49d5, 0x4ad5, 0x4bd5, 0x4cd5, 0x4dd5, 0x4ed5, 0x4fd5, 0xc4ca, 0x50d5, 0x51d5, 0x52d5, 0x53d5, 0x54d5, 0x55d5, 0x56d5, 0x57d5, 0x58d5, 0x59d5, 0x5ad5, 0x5bd5, 0x5cd5, 0x5dd5, 0x5ed5, 0x5fd5, 0x60d5, 0x61d5, 0x62d5, 0x63d5, 0x64d5, 0x65d5, 0x66d5, 0x67d5, 0x68d5, 0x69d5, 0x6ad5, 0x6bd5, 0x6cd5, 0x6dd5, 0x6ed5, 0x6fd5, 0x70d5, 0x71d5, 0x72d5, 0x73d5, 0x74d5, 0x75d5, 0x76d5, 0x77d5, 0x78d5, 0x79d5, 0x7ad5, 0x7bd5, 0x7cd5, 0x7dd5, 0x7ed5, 0x80d5, 0x81d5, 0x82d5, 0x83d5, 0x84d5, 0x85d5, 0x86d5, 0x87d5, 0x88d5, 0x89d5, 0x8ad5, 0x8bd5, 0x8cd5, 0x8dd5, 0x8ed5, 0x8fd5, 0x90d5, 0x91d5, 0x92d5, 0x93d5, 0x94d5, 0x95d5, 0x96d5, 0x97d5, 0x98d5, 0x99d5, 0x9ad5, 0x9bd5, 0x9cd5, 0x9dd5, 0x9ed5, 0x9fd5, 0xa0d5, 0x40d6, 0x41d6, 0x42d6, 0x43d6, 0x44d6, 0x45d6, 0x46d6, 0x47d6, 0x48d6, 0x49d6, 0x4ad6, 0x4bd6, 0x4cd6, 0x4dd6, 0x4ed6, 0x4fd6, 0x50d6, 0x51d6, 0x52d6, 0x53d6, 0x54d6, 0x55d6, 0x56d6, 0x57d6, 0x58d6, 0x59d6, 0x5ad6, 0x5bd6, 0x5cd6, 0x5dd6, 0x5ed6, 0x5fd6, 0x60d6, 0x61d6, 0x62d6, 0xc0e5, 0x63d6, 0x64d6, 0x65d6, 0x66d6, 0x67d6, 0x68d6, 0x69d6, 0x6ad6, 0x6bd6, 0x6cd6, 0x6dd6, 0x6ed6, 0x6fd6, 0x70d6, 0x71d6, 0x72d6, 0x73d6, 0x74d6, 0x75d6, 0x76d6, 0x77d6, 0x78d6, 0x79d6, 0x7ad6, 0x7bd6, 0x7cd6, 0x7dd6, 0x7ed6, 0x80d6, 0x81d6, 0xa5f6, 0x82d6, 0x83d6, 0x84d6, 0x85d6, 0x86d6, 0x87d6, 0x88d6, 0x89d6, 0x8ad6, 0x8bd6, 0x8cd6, 0x8dd6, 0x8ed6, 0x8fd6, 0x90d6, 0x91d6, 0x92d6, 0x93d6, 0x94d6, 0x95d6, 0x96d6, 0x97d6, 0x98d6, 0x99d6, 0x9ad6, 0x9bd6, 0x9cd6, 0x9dd6, 0x9ed6, 0x9fd6, 0xa0d6, 0x40d7, 0x41d7, 0x42d7, 0x43d7, 0x44d7, 0x45d7, 0x46d7, 0x47d7, 0x48d7, 0x49d7, 0x4ad7, 0x4bd7, 0x4cd7, 0x4dd7, 0x4ed7, 0x4fd7, 0x50d7, 0x51d7, 0x52d7, 0x53d7, 0x54d7, 0x55d7, 0x56d7, 0x57d7, 0x58d7, 0x59d7, 0x5ad7, 0x5bd7, 0x5cd7, 0x5dd7, 0x5ed7, 0x5fd7, 0xafbe, 0x60d7, 0x61d7, 0x62d7, 0x63d7, 0x64d7, 0xa9c6, 0x65d7, 0x66d7, 0x67d7, 0x68d7, 0x69d7, 0x6ad7, 0x6bd7, 0x6cd7, 0x6dd7, 0x6ed7, 0x6fd7, 0x70d7, 0x71d7, 0x72d7, 0x73d7, 0x74d7, 0x75d7, 0x76d7, 0x77d7, 0x78d7, 0x79d7, 0x7ad7, 0x7bd7, 0x7cd7, 0x7dd7, 0x7ed7, 0x80d7, 0x81d7, 0x82d7, 0x83d7, 0x84d7, 0x85d7, 0x86d7, 0x87d7, 0x88d7, 0x89d7, 0x8ad7, 0x8bd7, 0x8cd7, 0x8dd7, 0x8ed7, 0x8fd7, 0x90d7, 0x91d7, 0x92d7, 0x93d7, 0x94d7, 0x95d7, 0x96d7, 0x97d7, 0x98d7, 0xa5da, 0xc6bc, 0xa9b6, 0xbcb8, 0xcfc8, 0xa5bc, 0xa6da, 0xa7da, 0xd6cc, 0xc3c8, 0xa8da, 0xfdc6, 0x99d7, 0xb5d1, 0xe9d2, 0xb6d1, 0xc7bc, 0x9ad7, 0xb2bd, 0xe4bb, 0xa9da, 0xaada, 0xc8d1, 0xabda, 0xedd0, 0xefb6, 0xdbc2, 0x9bd7, 0xcfcb, 0xedb7, 0xe8c9, 0xc3b7, 0xf7be, 0xa4d6, 0xacda, 0xadda, 0xc0c6, 0xe7d7, 0xb6ca, 0x9cd7, 0xa9d5, 0xdfcb, 0xefd5, 0xaeda, 0xdfd6, 0xcab4, 0xb0da, 0xafda, 0x9dd7, 0xebd2, 0xb1da, 0xb2da, 0xb3da, 0xd4ca, 0xb4da, 0xabca, 0xb5da, 0xb6da, 0xcfb3, 0xefd6, 0xb7da, 0xb0bb, 0xaeb5, 0xb8da, 0xb9da, 0xeeb9, 0xafd1, 0xe8d2, 0xbada, 0xc3b8, 0xeacf, 0xefb2, 0xbbda, 0xbcda, 0x9ed7, 0xebbd, 0xdcce, 0xefd3, 0xbdda, 0xf3ce, 0xbeda, 0xd5d3, 0xe5bb, 0xbfda, 0xb5cb, 0xd0cb, 0xc0da, 0xebc7, 0xeed6, 0xc1da, 0xb5c5, 0xc1b6, 0xc2da, 0xccb7, 0xcebf, 0xc3da, 0xc4da, 0xadcb, 0xc5da, 0xf7b5, 0xc6da, 0xc2c1, 0xbbd7, 0xc7da, 0xb8cc, 0x9fd7, 0xead2, 0xb1c4, 0xc8da, 0xfdb5, 0xd1bb, 0xc9da, 0xb3d0, 0xcada, 0xcbda, 0xbdce, 0xccda, 0xcdda, 0xceda, 0xf7b2, 0xd1da, 0xcfda, 0xe8d1, 0xd0da, 0xd5c3, 0xd2da, 0xa0d7, 0xd3da, 0xd4da, 0xd5da, 0xbbd0, 0xa5d2, 0xf9b0, 0xd6da, 0xabc7, 0xd7da, 0xf7bd, 0xa1c3, 0xd8da, 0xd9da, 0xfdc3, 0xb7cc, 0xdada, 0xdbda, 0xbec0, 0xd7c6, 0xdcda, 0xddda, 0xb4c7, 0xdeda, 0xdfda, 0xc8b9, 0x40d8, 0x41d8, 0x42d8, 0x43d8, 0x44d8, 0x45d8, 0x46d8, 0x47d8, 0x48d8, 0xedbb, 0x49d8, 0x4ad8, 0x4bd8, 0x4cd8, 0xb9b6, 0xf8f4, 0x4dd8, 0xf9f4, 0x4ed8, 0x4fd8, 0xe3cd, 0x50d8, 0x51d8, 0x52d8, 0x53d8, 0x54d8, 0x55d8, 0x56d8, 0x57d8, 0xb9f5, 0x58d8, 0x59d8, 0x5ad8, 0x5bd8, 0xe0eb, 0x5cd8, 0x5dd8, 0x5ed8, 0x5fd8, 0x60d8, 0x61d8, 0xf3cf, 0xbfbb, 0x62d8, 0x63d8, 0x64d8, 0x65d8, 0x66d8, 0x67d8, 0x68d8, 0xc0ba, 0xa5d4, 0x69d8, 0x6ad8, 0x6bd8, 0x6cd8, 0x6dd8, 0x6ed8, 0x6fd8, 0xd9e1, 0x70d8, 0x71d8, 0x72d8, 0x73d8, 0xf4f5, 0xaab1, 0xf2b2, 0x74d8, 0x75d8, 0x76d8, 0x77d8, 0x78d8, 0x79d8, 0x7ad8, 0xf5f5, 0x7bd8, 0x7cd8, 0xf7f5, 0x7dd8, 0x7ed8, 0x80d8, 0xd1ba, 0xf6f5, 0x81d8, 0xb2c3, 0x82d8, 0x83d8, 0x84d8, 0x85d8, 0x86d8, 0x87d8, 0x88d8, 0xf9f5, 0x89d8, 0x8ad8, 0x8bd8, 0xf8f5, 0x8cd8, 0x8dd8, 0x8ed8, 0x8fd8, 0x90d8, 0x91d8, 0x92d8, 0x93d8, 0x94d8, 0x95d8, 0x96d8, 0x97d8, 0x98d8, 0x99d8, 0x9ad8, 0x9bd8, 0x9cd8, 0x9dd8, 0x9ed8, 0x9fd8, 0xa0d8, 0x40d9, 0x41d9, 0x42d9, 0x43d9, 0x44d9, 0x45d9, 0x46d9, 0x47d9, 0x48d9, 0x49d9, 0x4ad9, 0x4bd9, 0x4cd9, 0x4dd9, 0x4ed9, 0x4fd9, 0x50d9, 0x51d9, 0x52d9, 0x53d9, 0x54d9, 0x55d9, 0x56d9, 0x57d9, 0x58d9, 0x59d9, 0x5ad9, 0x5bd9, 0x5cd9, 0x5dd9, 0x5ed9, 0x5fd9, 0x60d9, 0x61d9, 0x62d9, 0x63d9, 0x64d9, 0x65d9, 0x66d9, 0x67d9, 0x68d9, 0x69d9, 0x6ad9, 0x6bd9, 0x6cd9, 0x6dd9, 0x6ed9, 0x6fd9, 0x70d9, 0x71d9, 0x72d9, 0x73d9, 0x74d9, 0x75d9, 0x76d9, 0x77d9, 0x78d9, 0x79d9, 0x7ad9, 0x7bd9, 0x7cd9, 0x7dd9, 0x7ed9, 0x80d9, 0x81d9, 0x82d9, 0x83d9, 0x84d9, 0x85d9, 0x86d9, 0x87d9, 0x88d9, 0x89d9, 0x8ad9, 0x8bd9, 0x8cd9, 0x8dd9, 0x8ed9, 0x8fd9, 0x90d9, 0x91d9, 0x92d9, 0x93d9, 0x94d9, 0x95d9, 0x96d9, 0x97d9, 0x98d9, 0x99d9, 0x9ad9, 0x9bd9, 0x9cd9, 0x9dd9, 0x9ed9, 0x9fd9, 0xa0d9, 0x40da, 0x41da, 0x42da, 0x43da, 0x44da, 0x45da, 0x46da, 0x47da, 0x48da, 0x49da, 0x4ada, 0x4bda, 0x4cda, 0x4dda, 0x4eda, 0xb4b1, 0xead5, 0xbab8, 0x4fda, 0xb1b9, 0xc6b2, 0xf0d4, 0xcdcf, 0xdcb0, 0xcbd5, 0xf5bb, 0xcad6, 0xb7b7, 0xb0cc, 0xb6c6, 0xe1b1, 0xbab9, 0xfcd6, 0xe1b9, 0xa1b7, 0xfabc, 0xdaea, 0xdbea, 0xf9cc, 0xf3b9, 0xdcea, 0xfbb4, 0xb3c3, 0xd1b7, 0xd8ba, 0xddea, 0xf4d4, 0xdeea, 0xd6bc, 0xdfbb, 0xdfea, 0xdec1, 0xb8c2, 0xdfd4, 0xcad7, 0xe0ea, 0xe1ea, 0xe4ea, 0xe2ea, 0xe3ea, 0xdec9, 0xb3b8, 0xc4b6, 0xe5ea, 0xeaca, 0xcdc9, 0xcdb4, 0x50da, 0x51da, 0xd9e2, 0xe2c5, 0xe6ea, 0xb5c0, 0x52da, 0xb8d7, 0xe7ea, 0xacd7, 0xfcc8, 0xd3d8, 0xcdd8, 0xded4, 0x53da, 0xf9d4, 0xc4c9, 0xaed3, 0xd3b8, 0xe0b3, 0x54da, 0xe2c9, 0xf6f4, 0x55da, 0x56da, 0x57da, 0xd5ba, 0x58da, 0xf7f4, 0x59da, 0x5ada, 0xdfd7, 0x5bda, 0x5cda, 0xf1f4, 0xb0b8, 0xd4d5, 0xcfb8, 0xf0c6, 0x5dda, 0x5eda, 0x5fda, 0x60da, 0x61da, 0x62da, 0x63da, 0x64da, 0x65da, 0xc3b3, 0x66da, 0x67da, 0xf2f4, 0xacb3, 0x68da, 0x69da, 0x6ada, 0x6bda, 0xbdd4, 0xf7c7, 0x6cda, 0x6dda, 0x6eda, 0x6fda, 0x70da, 0xf4f4, 0x71da, 0x72da, 0xf3f4, 0x73da, 0x74da, 0x75da, 0x76da, 0x77da, 0x78da, 0x79da, 0x7ada, 0x7bda, 0x7cda, 0xcbcc, 0x7dda, 0x7eda, 0x80da, 0xa4c8, 0x81da, 0x82da, 0x83da, 0x84da, 0x85da, 0x86da, 0x87da, 0x88da, 0x89da, 0x8ada, 0x8bda, 0x8cda, 0x8dda, 0xf5f4, 0x8eda, 0xe3d7, 0xbfc5, 0xc0f5, 0x8fda, 0x90da, 0xbbf5, 0x91da, 0xc3f5, 0x92da, 0xc2f5, 0x93da, 0xbad6, 0xc1f5, 0x94da, 0x95da, 0x96da, 0xbed4, 0xc4f5, 0x97da, 0xccf5, 0x98da, 0x99da, 0x9ada, 0x9bda, 0xcfb0, 0xf8b5, 0x9cda, 0xc9f5, 0xcaf5, 0x9dda, 0xdcc5, 0x9eda, 0x9fda, 0xa0da, 0x40db, 0xc5f5, 0xc6f5, 0x41db, 0x42db, 0xc7f5, 0xcbf5, 0x43db, 0xe0be, 0xc8f5, 0xfab8, 0x44db, 0x45db, 0x46db, 0xd0f5, 0xd3f5, 0x47db, 0x48db, 0x49db, 0xe7bf, 0x4adb, 0xf2b9, 0xbcf5, 0xcdf5, 0x4bdb, 0x4cdb, 0xb7c2, 0x4ddb, 0x4edb, 0x4fdb, 0xf8cc, 0x50db, 0xf9bc, 0x51db, 0xcef5, 0xcff5, 0xd1f5, 0xe5b6, 0xd2f5, 0x52db, 0xd5f5, 0x53db, 0x54db, 0x55db, 0x56db, 0x57db, 0x58db, 0x59db, 0xbdf5, 0x5adb, 0x5bdb, 0x5cdb, 0xd4f5, 0xbbd3, 0x5ddb, 0xecb3, 0x5edb, 0x5fdb, 0xa4cc, 0x60db, 0x61db, 0x62db, 0x63db, 0xd6f5, 0x64db, 0x65db, 0x66db, 0x67db, 0x68db, 0x69db, 0x6adb, 0x6bdb, 0xd7f5, 0xe1be, 0xd8f5, 0x6cdb, 0x6ddb, 0xdfcc, 0xdbf5, 0x6edb, 0x6fdb, 0x70db, 0x71db, 0x72db, 0xc8b2, 0xd9d7, 0x73db, 0xd9f5, 0x74db, 0xdaf5, 0xdcf5, 0x75db, 0xe2f5, 0x76db, 0x77db, 0x78db, 0xe0f5, 0x79db, 0x7adb, 0x7bdb, 0xdff5, 0xddf5, 0x7cdb, 0x7ddb, 0xe1f5, 0x7edb, 0x80db, 0xdef5, 0xe4f5, 0xe5f5, 0x81db, 0xe3cc, 0x82db, 0x83db, 0xbfe5, 0xb8b5, 0xe3f5, 0xe8f5, 0xa3cc, 0x84db, 0x85db, 0x86db, 0x87db, 0x88db, 0xe6f5, 0xe7f5, 0x89db, 0x8adb, 0x8bdb, 0x8cdb, 0x8ddb, 0x8edb, 0xbef5, 0x8fdb, 0x90db, 0x91db, 0x92db, 0x93db, 0x94db, 0x95db, 0x96db, 0x97db, 0x98db, 0x99db, 0x9adb, 0xc4b1, 0x9bdb, 0x9cdb, 0xbff5, 0x9ddb, 0x9edb, 0xc5b5, 0xe4b2, 0x9fdb, 0xecf5, 0xe9f5, 0xa0db, 0xd7b6, 0x40dc, 0xedf5, 0x41dc, 0xeaf5, 0x42dc, 0x43dc, 0x44dc, 0x45dc, 0x46dc, 0xebf5, 0x47dc, 0x48dc, 0xdab4, 0x49dc, 0xead4, 0x4adc, 0x4bdc, 0x4cdc, 0xeef5, 0x4ddc, 0xf9b3, 0x4edc, 0x4fdc, 0x50dc, 0x51dc, 0x52dc, 0x53dc, 0x54dc, 0xeff5, 0xf1f5, 0x55dc, 0x56dc, 0x57dc, 0xf0f5, 0x58dc, 0x59dc, 0x5adc, 0x5bdc, 0x5cdc, 0x5ddc, 0x5edc, 0xf2f5, 0x5fdc, 0xf3f5, 0x60dc, 0x61dc, 0x62dc, 0x63dc, 0x64dc, 0x65dc, 0x66dc, 0x67dc, 0x68dc, 0x69dc, 0x6adc, 0x6bdc, 0xedc9, 0xaab9, 0x6cdc, 0x6ddc, 0xfbc7, 0x6edc, 0x6fdc, 0xe3b6, 0x70dc, 0x71dc, 0x72dc, 0x73dc, 0x74dc, 0x75dc, 0x76dc, 0xc9cc, 0x77dc, 0x78dc, 0x79dc, 0x7adc, 0x7bdc, 0x7cdc, 0x7ddc, 0x7edc, 0x80dc, 0x81dc, 0x82dc, 0x83dc, 0x84dc, 0x85dc, 0x86dc, 0x87dc, 0x88dc, 0x89dc, 0x8adc, 0xa6ea, 0x8bdc, 0x8cdc, 0x8ddc, 0x8edc, 0x8fdc, 0x90dc, 0x91dc, 0x92dc, 0x93dc, 0x94dc, 0x95dc, 0x96dc, 0x97dc, 0x98dc, 0x99dc, 0x9adc, 0x9bdc, 0x9cdc, 0x9ddc, 0x9edc, 0x9fdc, 0xa0dc, 0x40dd, 0x41dd, 0x42dd, 0x43dd, 0x44dd, 0x45dd, 0x46dd, 0x47dd, 0x48dd, 0x49dd, 0x4add, 0x4bdd, 0x4cdd, 0x4ddd, 0x4edd, 0x4fdd, 0x50dd, 0x51dd, 0x52dd, 0x53dd, 0x54dd, 0x55dd, 0x56dd, 0x57dd, 0x58dd, 0x59dd, 0x5add, 0x5bdd, 0x5cdd, 0x5ddd, 0x5edd, 0x5fdd, 0x60dd, 0x61dd, 0x62dd, 0x63dd, 0x64dd, 0x65dd, 0x66dd, 0x67dd, 0x68dd, 0x69dd, 0x6add, 0x6bdd, 0x6cdd, 0x6ddd, 0x6edd, 0x6fdd, 0x70dd, 0x71dd, 0x72dd, 0x73dd, 0x74dd, 0x75dd, 0x76dd, 0x77dd, 0x78dd, 0x79dd, 0x7add, 0x7bdd, 0x7cdd, 0x7ddd, 0x7edd, 0x80dd, 0x81dd, 0x82dd, 0x83dd, 0x84dd, 0x85dd, 0x86dd, 0x87dd, 0x88dd, 0x89dd, 0x8add, 0x8bdd, 0x8cdd, 0x8ddd, 0x8edd, 0x8fdd, 0x90dd, 0x91dd, 0x92dd, 0x93dd, 0x94dd, 0x95dd, 0x96dd, 0x97dd, 0x98dd, 0x99dd, 0x9add, 0x9bdd, 0x9cdd, 0x9ddd, 0x9edd, 0x9fdd, 0xa0dd, 0x40de, 0x41de, 0x42de, 0x43de, 0x44de, 0x45de, 0x46de, 0x47de, 0x48de, 0x49de, 0x4ade, 0x4bde, 0x4cde, 0x4dde, 0x4ede, 0x4fde, 0x50de, 0x51de, 0x52de, 0x53de, 0x54de, 0x55de, 0x56de, 0x57de, 0x58de, 0x59de, 0x5ade, 0x5bde, 0x5cde, 0x5dde, 0x5ede, 0x5fde, 0x60de, 0xb5b3, 0xfed4, 0xecb9, 0xf9d0, 0x61de, 0xede9, 0xaad7, 0xeee9, 0xd6c2, 0xedc8, 0xe4ba, 0xefe9, 0xf0e9, 0xf1e9, 0xe1d6, 0xf2e9, 0xf3e9, 0xf5e9, 0xf4e9, 0xf6e9, 0xf7e9, 0xe1c7, 0xf8e9, 0xd8d4, 0xf9e9, 0xcebd, 0x62de, 0xfae9, 0xfbe9, 0xcfbd, 0xfce9, 0xa8b8, 0xbec1, 0xfde9, 0xb2b1, 0xd4bb, 0xf5b9, 0xfee9, 0x63de, 0xa1ea, 0xa2ea, 0xa3ea, 0xf8b7, 0xadbc, 0x64de, 0xe4ca, 0xcee0, 0xafd4, 0xbdcf, 0xb7d5, 0xa4ea, 0xded5, 0xa5ea, 0xc1d0, 0xbcb9, 0x65de, 0xc7b4, 0xd9b1, 0x66de, 0x67de, 0x68de, 0xb1c0, 0x69de, 0x6ade, 0x6bde, 0x6cde, 0xe6b1, 0xe7b1, 0x6dde, 0xe8b1, 0x6ede, 0x6fde, 0x70de, 0x71de, 0xbdb3, 0xe8c8, 0x72de, 0x73de, 0x74de, 0x75de, 0xc1e5, 0x76de, 0x77de, 0xdfb1, 0x78de, 0x79de, 0x7ade, 0xc9c1, 0xefb4, 0x7bde, 0x7cde, 0xa8c7, 0xd8d3, 0x7dde, 0xf9c6, 0xb8d1, 0x7ede, 0xfdb9, 0xf5c2, 0x80de, 0x81de, 0x82de, 0x83de, 0x84de, 0xadd3, 0x85de, 0xcbd4, 0xfcbd, 0x86de, 0xc2e5, 0xb5b7, 0xc3e5, 0x87de, 0x88de, 0xb9bb, 0xe2d5, 0x89de, 0xf8bd, 0xb6d4, 0xa5ce, 0xacc1, 0xd9b3, 0x8ade, 0x8bde, 0xf6cc, 0x8cde, 0xc6e5, 0xc4e5, 0xc8e5, 0x8dde, 0xcae5, 0xc7e5, 0xcfb5, 0xc8c6, 0x8ede, 0xfcb5, 0xc5e5, 0x8fde, 0xf6ca, 0x90de, 0x91de, 0xc9e5, 0x92de, 0x93de, 0x94de, 0xd4c3, 0xc5b1, 0xa3bc, 0x95de, 0x96de, 0x97de, 0xb7d7, 0x98de, 0x99de, 0xcbcd, 0xcdcb, 0xcaca, 0xd3cc, 0xcce5, 0xcbe5, 0xe6c4, 0x9ade, 0x9bde, 0xa1d1, 0xb7d1, 0xcde5, 0x9cde, 0xd0e5, 0x9dde, 0xb8cd, 0xf0d6, 0xcfe5, 0xddb5, 0x9ede, 0xbecd, 0x9fde, 0xd1e5, 0xbab6, 0xa0de, 0x40df, 0xa8cd, 0xe4b9, 0x41df, 0xc5ca, 0xd1b3, 0xd9cb, 0xecd4, 0xd2e5, 0xeab7, 0x42df, 0x43df, 0x44df, 0xcee5, 0x45df, 0x46df, 0x47df, 0x48df, 0x49df, 0x4adf, 0xd5e5, 0xfeb4, 0xd6e5, 0x4bdf, 0x4cdf, 0x4ddf, 0x4edf, 0x4fdf, 0xd3e5, 0xd4e5, 0x50df, 0xddd2, 0x51df, 0x52df, 0xdfc2, 0xc6b1, 0x53df, 0xe2d3, 0x54df, 0x55df, 0xddb6, 0xeccb, 0x56df, 0xd7e5, 0x57df, 0x58df, 0xf6d3, 0x59df, 0x5adf, 0x5bdf, 0x5cdf, 0x5ddf, 0xe9b1, 0x5edf, 0xf4b6, 0xdae5, 0xd8e5, 0xd9e5, 0xc0b5, 0x5fdf, 0x60df, 0x61df, 0xc5d2, 0xdce5, 0x62df, 0x63df, 0xdee5, 0x64df, 0x65df, 0x66df, 0x67df, 0x68df, 0x69df, 0xdde5, 0xb2c7, 0x6adf, 0xa3d2, 0x6bdf, 0x6cdf, 0xdbe5, 0x6ddf, 0x6edf, 0x6fdf, 0x70df, 0xe2d4, 0xdad5, 0x71df, 0x72df, 0x73df, 0x74df, 0x75df, 0xe0e5, 0xf1d7, 0x76df, 0x77df, 0x78df, 0x79df, 0x7adf, 0x7bdf, 0x7cdf, 0xe1e5, 0x7ddf, 0xdcb1, 0xfbd1, 0x7edf, 0xe2e5, 0xe4e5, 0x80df, 0x81df, 0x82df, 0x83df, 0xe3e5, 0x84df, 0x85df, 0xe5e5, 0x86df, 0x87df, 0x88df, 0x89df, 0x8adf, 0xd8d2, 0x8bdf, 0xcbb5, 0x8cdf, 0xdfe7, 0x8ddf, 0xf5da, 0x8edf, 0xf8da, 0x8fdf, 0xf6da, 0x90df, 0xf7da, 0x91df, 0x92df, 0x93df, 0xfada, 0xcfd0, 0xc7c4, 0x94df, 0x95df, 0xeeb0, 0x96df, 0x97df, 0x98df, 0xb0d0, 0x99df, 0xf9da, 0x9adf, 0xcad3, 0xaaba, 0xa2db, 0xf1c7, 0x9bdf, 0xfcda, 0xfbda, 0xdbc9, 0xfdda, 0x9cdf, 0xa1db, 0xded7, 0xfeda, 0xdac1, 0x9ddf, 0x9edf, 0xa5db, 0x9fdf, 0xa0df, 0xf4d3, 0x40e0, 0x41e0, 0xa7db, 0xa4db, 0x42e0, 0xa8db, 0x43e0, 0x44e0, 0xbcbd, 0x45e0, 0x46e0, 0x47e0, 0xc9c0, 0xa3db, 0xa6db, 0xa3d6, 0x48e0, 0xa9db, 0x49e0, 0x4ae0, 0x4be0, 0xaddb, 0x4ce0, 0x4de0, 0x4ee0, 0xaedb, 0xacdb, 0xc2ba, 0x4fe0, 0x50e0, 0x51e0, 0xa4bf, 0xabdb, 0x52e0, 0x53e0, 0x54e0, 0xaadb, 0xc7d4, 0xbfb2, 0x55e0, 0x56e0, 0xafdb, 0x57e0, 0xf9b9, 0x58e0, 0xb0db, 0x59e0, 0x5ae0, 0x5be0, 0x5ce0, 0xbbb3, 0x5de0, 0x5ee0, 0x5fe0, 0xa6b5, 0x60e0, 0x61e0, 0x62e0, 0x63e0, 0xbcb6, 0xb1db, 0x64e0, 0x65e0, 0x66e0, 0xf5b6, 0x67e0, 0xb2db, 0x68e0, 0x69e0, 0x6ae0, 0x6be0, 0x6ce0, 0x6de0, 0x6ee0, 0x6fe0, 0x70e0, 0x71e0, 0x72e0, 0x73e0, 0x74e0, 0x75e0, 0x76e0, 0x77e0, 0x78e0, 0x79e0, 0x7ae0, 0x7be0, 0xc9b1, 0x7ce0, 0x7de0, 0x7ee0, 0x80e0, 0xb4db, 0x81e0, 0x82e0, 0x83e0, 0xb3db, 0xb5db, 0x84e0, 0x85e0, 0x86e0, 0x87e0, 0x88e0, 0x89e0, 0x8ae0, 0x8be0, 0x8ce0, 0x8de0, 0x8ee0, 0xb7db, 0x8fe0, 0xb6db, 0x90e0, 0x91e0, 0x92e0, 0x93e0, 0x94e0, 0x95e0, 0x96e0, 0xb8db, 0x97e0, 0x98e0, 0x99e0, 0x9ae0, 0x9be0, 0x9ce0, 0x9de0, 0x9ee0, 0x9fe0, 0xb9db, 0xa0e0, 0x40e1, 0xbadb, 0x41e1, 0x42e1, 0xcfd3, 0xfaf4, 0xf5c7, 0xc3d7, 0xe4c5, 0xfcf4, 0xfdf4, 0xfbf4, 0x43e1, 0xc6be, 0x44e1, 0x45e1, 0x46e1, 0x47e1, 0xefd0, 0x48e1, 0x49e1, 0xd3b7, 0x4ae1, 0x4be1, 0xcdd4, 0xaacc, 0x4ce1, 0x4de1, 0xa2f5, 0xa1f5, 0xa8ba, 0xfef4, 0xd6cb, 0x4ee1, 0x4fe1, 0x50e1, 0xa4f5, 0xd2c0, 0x51e1, 0xeab3, 0x52e1, 0xaacd, 0xa5f5, 0xa3f5, 0xb4bd, 0xa8f5, 0x53e1, 0xa9f5, 0xcdbd, 0xb8c3, 0xe1bf, 0xe1cb, 0xaaf5, 0x54e1, 0x55e1, 0x56e1, 0xa6f5, 0xa7f5, 0xf0c4, 0x57e1, 0x58e1, 0x59e1, 0x5ae1, 0x5be1, 0xacf5, 0x5ce1, 0xbcb4, 0x5de1, 0xedd7, 0x5ee1, 0xd7b4, 0xabf5, 0xaef5, 0x5fe1, 0x60e1, 0xadf5, 0xaff5, 0xd1d0, 0x61e1, 0x62e1, 0x63e1, 0x64e1, 0x65e1, 0x66e1, 0x67e1, 0xd1c3, 0xa9c8, 0x68e1, 0x69e1, 0x6ae1, 0x6be1, 0x6ce1, 0x6de1, 0xb0f5, 0xb1f5, 0x6ee1, 0x6fe1, 0x70e1, 0x71e1, 0x72e1, 0x73e1, 0xb2f5, 0x74e1, 0x75e1, 0xb3f5, 0xb4f5, 0xb5f5, 0x76e1, 0x77e1, 0x78e1, 0x79e1, 0xb7f5, 0xb6f5, 0x7ae1, 0x7be1, 0x7ce1, 0x7de1, 0xb8f5, 0x7ee1, 0x80e1, 0x81e1, 0x82e1, 0x83e1, 0x84e1, 0x85e1, 0x86e1, 0x87e1, 0x88e1, 0x89e1, 0x8ae1, 0xc9b2, 0x8be1, 0xd4d3, 0xcdca, 0x8ce1, 0xefc0, 0xd8d6, 0xb0d2, 0xbfc1, 0x8de1, 0xf0bd, 0x8ee1, 0x8fe1, 0x90e1, 0x91e1, 0x92e1, 0x93e1, 0x94e1, 0x95e1, 0x96e1, 0x97e1, 0xaab8, 0x98e1, 0x99e1, 0x9ae1, 0x9be1, 0x9ce1, 0x9de1, 0x9ee1, 0x9fe1, 0xa0e1, 0x40e2, 0x41e2, 0x42e2, 0x43e2, 0x44e2, 0x45e2, 0x46e2, 0x47e2, 0x48e2, 0x49e2, 0x4ae2, 0x4be2, 0x4ce2, 0x4de2, 0x4ee2, 0x4fe2, 0x50e2, 0x51e2, 0x52e2, 0x53e2, 0x54e2, 0x55e2, 0x56e2, 0x57e2, 0x58e2, 0x59e2, 0x5ae2, 0x5be2, 0x5ce2, 0x5de2, 0x5ee2, 0x5fe2, 0x60e2, 0x61e2, 0x62e2, 0x63e2, 0x64e2, 0x65e2, 0x66e2, 0x67e2, 0x68e2, 0x69e2, 0x6ae2, 0x6be2, 0x6ce2, 0x6de2, 0x6ee2, 0x6fe2, 0x70e2, 0x71e2, 0x72e2, 0x73e2, 0x74e2, 0x75e2, 0x76e2, 0x77e2, 0x78e2, 0x79e2, 0x7ae2, 0x7be2, 0x7ce2, 0x7de2, 0x7ee2, 0x80e2, 0x81e2, 0x82e2, 0x83e2, 0x84e2, 0x85e2, 0x86e2, 0x87e2, 0x88e2, 0x89e2, 0x8ae2, 0x8be2, 0x8ce2, 0x8de2, 0x8ee2, 0x8fe2, 0x90e2, 0x91e2, 0x92e2, 0x93e2, 0x94e2, 0x95e2, 0x96e2, 0x97e2, 0x98e2, 0x99e2, 0x9ae2, 0x9be2, 0x9ce2, 0x9de2, 0x9ee2, 0x9fe2, 0xa0e2, 0x40e3, 0x41e3, 0x42e3, 0x43e3, 0x44e3, 0x45e3, 0x46e3, 0x47e3, 0x48e3, 0x49e3, 0x4ae3, 0x4be3, 0x4ce3, 0x4de3, 0x4ee3, 0x4fe3, 0x50e3, 0x51e3, 0x52e3, 0x53e3, 0x54e3, 0x55e3, 0x56e3, 0x57e3, 0x58e3, 0x59e3, 0x5ae3, 0x5be3, 0x5ce3, 0x5de3, 0x5ee3, 0x5fe3, 0x60e3, 0x61e3, 0x62e3, 0x63e3, 0x64e3, 0x65e3, 0x66e3, 0x67e3, 0x68e3, 0x69e3, 0x6ae3, 0x6be3, 0x6ce3, 0x6de3, 0xf8bc, 0x6ee3, 0x6fe3, 0x70e3, 0x71e3, 0x72e3, 0x73e3, 0x74e3, 0x75e3, 0x76e3, 0x77e3, 0x78e3, 0x79e3, 0x7ae3, 0x7be3, 0x7ce3, 0x7de3, 0x7ee3, 0x80e3, 0x81e3, 0x82e3, 0x83e3, 0x84e3, 0x85e3, 0x86e3, 0x87e3, 0xc6f6, 0x88e3, 0x89e3, 0x8ae3, 0x8be3, 0x8ce3, 0x8de3, 0x8ee3, 0x8fe3, 0x90e3, 0x91e3, 0x92e3, 0x93e3, 0x94e3, 0x95e3, 0x96e3, 0x97e3, 0x98e3, 0x99e3, 0x9ae3, 0x9be3, 0x9ce3, 0x9de3, 0x9ee3, 0x9fe3, 0xa0e3, 0x40e4, 0x41e4, 0x42e4, 0x43e4, 0x44e4, 0x45e4, 0xc7f6, 0x46e4, 0x47e4, 0x48e4, 0x49e4, 0x4ae4, 0x4be4, 0x4ce4, 0x4de4, 0x4ee4, 0x4fe4, 0x50e4, 0x51e4, 0x52e4, 0x53e4, 0x54e4, 0x55e4, 0x56e4, 0x57e4, 0x58e4, 0x59e4, 0x5ae4, 0x5be4, 0x5ce4, 0x5de4, 0x5ee4, 0xc8f6, 0x5fe4, 0x60e4, 0x61e4, 0x62e4, 0x63e4, 0x64e4, 0x65e4, 0x66e4, 0x67e4, 0x68e4, 0x69e4, 0x6ae4, 0x6be4, 0x6ce4, 0x6de4, 0x6ee4, 0x6fe4, 0x70e4, 0x71e4, 0x72e4, 0x73e4, 0x74e4, 0x75e4, 0x76e4, 0x77e4, 0x78e4, 0x79e4, 0x7ae4, 0x7be4, 0x7ce4, 0x7de4, 0x7ee4, 0x80e4, 0x81e4, 0x82e4, 0x83e4, 0x84e4, 0x85e4, 0x86e4, 0x87e4, 0x88e4, 0x89e4, 0x8ae4, 0x8be4, 0x8ce4, 0x8de4, 0x8ee4, 0x8fe4, 0x90e4, 0x91e4, 0x92e4, 0x93e4, 0x94e4, 0x95e4, 0x96e4, 0x97e4, 0x98e4, 0x99e4, 0x9ae4, 0x9be4, 0x9ce4, 0x9de4, 0x9ee4, 0x9fe4, 0xa0e4, 0x40e5, 0x41e5, 0x42e5, 0x43e5, 0x44e5, 0x45e5, 0x46e5, 0x47e5, 0x48e5, 0x49e5, 0x4ae5, 0x4be5, 0x4ce5, 0x4de5, 0x4ee5, 0x4fe5, 0x50e5, 0x51e5, 0x52e5, 0x53e5, 0x54e5, 0x55e5, 0x56e5, 0x57e5, 0x58e5, 0x59e5, 0x5ae5, 0x5be5, 0x5ce5, 0x5de5, 0x5ee5, 0x5fe5, 0x60e5, 0x61e5, 0x62e5, 0x63e5, 0x64e5, 0x65e5, 0x66e5, 0x67e5, 0x68e5, 0x69e5, 0x6ae5, 0x6be5, 0x6ce5, 0x6de5, 0x6ee5, 0x6fe5, 0x70e5, 0x71e5, 0x72e5, 0x73e5, 0xc9f6, 0x74e5, 0x75e5, 0x76e5, 0x77e5, 0x78e5, 0x79e5, 0x7ae5, 0x7be5, 0x7ce5, 0x7de5, 0x7ee5, 0x80e5, 0x81e5, 0x82e5, 0x83e5, 0x84e5, 0x85e5, 0x86e5, 0x87e5, 0x88e5, 0x89e5, 0x8ae5, 0x8be5, 0x8ce5, 0x8de5, 0x8ee5, 0x8fe5, 0x90e5, 0x91e5, 0x92e5, 0x93e5, 0x94e5, 0x95e5, 0x96e5, 0x97e5, 0x98e5, 0x99e5, 0x9ae5, 0x9be5, 0x9ce5, 0x9de5, 0x9ee5, 0x9fe5, 0xcaf6, 0xa0e5, 0x40e6, 0x41e6, 0x42e6, 0x43e6, 0x44e6, 0x45e6, 0x46e6, 0x47e6, 0x48e6, 0x49e6, 0x4ae6, 0x4be6, 0x4ce6, 0x4de6, 0x4ee6, 0x4fe6, 0x50e6, 0x51e6, 0x52e6, 0x53e6, 0x54e6, 0x55e6, 0x56e6, 0x57e6, 0x58e6, 0x59e6, 0x5ae6, 0x5be6, 0x5ce6, 0x5de6, 0x5ee6, 0x5fe6, 0x60e6, 0x61e6, 0x62e6, 0xccf6, 0x63e6, 0x64e6, 0x65e6, 0x66e6, 0x67e6, 0x68e6, 0x69e6, 0x6ae6, 0x6be6, 0x6ce6, 0x6de6, 0x6ee6, 0x6fe6, 0x70e6, 0x71e6, 0x72e6, 0x73e6, 0x74e6, 0x75e6, 0x76e6, 0x77e6, 0x78e6, 0x79e6, 0x7ae6, 0x7be6, 0x7ce6, 0x7de6, 0x7ee6, 0x80e6, 0x81e6, 0x82e6, 0x83e6, 0x84e6, 0x85e6, 0x86e6, 0x87e6, 0x88e6, 0x89e6, 0x8ae6, 0x8be6, 0x8ce6, 0x8de6, 0x8ee6, 0x8fe6, 0x90e6, 0x91e6, 0x92e6, 0x93e6, 0x94e6, 0x95e6, 0x96e6, 0x97e6, 0x98e6, 0x99e6, 0x9ae6, 0x9be6, 0x9ce6, 0x9de6, 0xcbf6, 0x9ee6, 0x9fe6, 0xa0e6, 0x40e7, 0x41e7, 0x42e7, 0x43e7, 0x44e7, 0x45e7, 0x46e7, 0x47e7, 0xe9f7, 0x48e7, 0x49e7, 0x4ae7, 0x4be7, 0x4ce7, 0x4de7, 0x4ee7, 0x4fe7, 0x50e7, 0x51e7, 0x52e7, 0x53e7, 0x54e7, 0x55e7, 0x56e7, 0x57e7, 0x58e7, 0x59e7, 0x5ae7, 0x5be7, 0x5ce7, 0x5de7, 0x5ee7, 0x5fe7, 0x60e7, 0x61e7, 0x62e7, 0x63e7, 0x64e7, 0x65e7, 0x66e7, 0x67e7, 0x68e7, 0x69e7, 0x6ae7, 0x6be7, 0x6ce7, 0x6de7, 0x6ee7, 0x6fe7, 0x70e7, 0x71e7, 0x72e7, 0x73e7, 0x74e7, 0x75e7, 0x76e7, 0x77e7, 0x78e7, 0x79e7, 0x7ae7, 0x7be7, 0x7ce7, 0x7de7, 0x7ee7, 0x80e7, 0x81e7, 0x82e7, 0x83e7, 0x84e7, 0x85e7, 0x86e7, 0x87e7, 0x88e7, 0x89e7, 0x8ae7, 0x8be7, 0x8ce7, 0x8de7, 0x8ee7, 0x8fe7, 0x90e7, 0x91e7, 0x92e7, 0x93e7, 0x94e7, 0x95e7, 0x96e7, 0x97e7, 0x98e7, 0x99e7, 0x9ae7, 0x9be7, 0x9ce7, 0x9de7, 0x9ee7, 0x9fe7, 0xa0e7, 0x40e8, 0x41e8, 0x42e8, 0x43e8, 0x44e8, 0x45e8, 0x46e8, 0x47e8, 0x48e8, 0x49e8, 0x4ae8, 0x4be8, 0x4ce8, 0x4de8, 0x4ee8, 0xcdf6, 0x4fe8, 0x50e8, 0x51e8, 0x52e8, 0x53e8, 0x54e8, 0x55e8, 0x56e8, 0x57e8, 0x58e8, 0x59e8, 0x5ae8, 0x5be8, 0x5ce8, 0x5de8, 0x5ee8, 0x5fe8, 0x60e8, 0x61e8, 0x62e8, 0x63e8, 0x64e8, 0x65e8, 0x66e8, 0x67e8, 0x68e8, 0x69e8, 0x6ae8, 0x6be8, 0x6ce8, 0x6de8, 0x6ee8, 0x6fe8, 0x70e8, 0x71e8, 0x72e8, 0x73e8, 0x74e8, 0x75e8, 0x76e8, 0x77e8, 0x78e8, 0x79e8, 0x7ae8, 0xcef6, 0x7be8, 0x7ce8, 0x7de8, 0x7ee8, 0x80e8, 0x81e8, 0x82e8, 0x83e8, 0x84e8, 0x85e8, 0x86e8, 0x87e8, 0x88e8, 0x89e8, 0x8ae8, 0x8be8, 0x8ce8, 0x8de8, 0x8ee8, 0x8fe8, 0x90e8, 0x91e8, 0x92e8, 0x93e8, 0x94e8, 0xc4ee, 0xc5ee, 0xc6ee, 0xebd5, 0xa4b6, 0xc8ee, 0xc7ee, 0xc9ee, 0xcaee, 0xa5c7, 0xcbee, 0xccee, 0x95e8, 0xb0b7, 0xf6b5, 0xcdee, 0xcfee, 0x96e8, 0xceee, 0x97e8, 0xc6b8, 0xd0ee, 0xd1ee, 0xd2ee, 0xdbb6, 0xaeb3, 0xd3d6, 0xc6c4, 0xb5b1, 0xd6b8, 0xd3ee, 0xd4ee, 0xbfd4, 0xd5c7, 0xfbbe, 0xd9ce, 0xb3b9, 0xd6ee, 0xd5ee, 0xd8ee, 0xd7ee, 0xa5c5, 0xd9ee, 0xdaee, 0xaec7, 0xdbee, 0xafc7, 0xdcee, 0xa7b2, 0xddee, 0xdeee, 0xdfee, 0xe0ee, 0xe1ee, 0xead7, 0xe2ee, 0xe3ee, 0xd8bc, 0xe4ee, 0xcbd3, 0xfacc, 0xacb2, 0xe5c1, 0xe5ee, 0xa6c7, 0xadc3, 0x98e8, 0xe6ee, 0xe7ee, 0xe8ee, 0xe9ee, 0xeaee, 0xebee, 0xecee, 0x99e8, 0xedee, 0xeeee, 0xefee, 0x9ae8, 0x9be8, 0xf0ee, 0xf1ee, 0xf2ee, 0xf4ee, 0xf3ee, 0x9ce8, 0xf5ee, 0xadcd, 0xc1c2, 0xf6ee, 0xf7ee, 0xf8ee, 0xa1d5, 0xf9ee, 0xb3cf, 0xfaee, 0xfbee, 0x9de8, 0xfcee, 0xfdee, 0xa1ef, 0xfeee, 0xa2ef, 0xf5b8, 0xfac3, 0xa3ef, 0xa4ef, 0xc2bd, 0xbfd2, 0xf9b2, 0xa5ef, 0xa6ef, 0xa7ef, 0xf8d2, 0xa8ef, 0xfdd6, 0xa9ef, 0xccc6, 0x9ee8, 0xaaef, 0xabef, 0xb4c1, 0xacef, 0xfacf, 0xf8cb, 0xaeef, 0xadef, 0xfab3, 0xf8b9, 0xafef, 0xb0ef, 0xe2d0, 0xb1ef, 0xb2ef, 0xe6b7, 0xbfd0, 0xb3ef, 0xb4ef, 0xb5ef, 0xf1c8, 0xe0cc, 0xb6ef, 0xb7ef, 0xb8ef, 0xb9ef, 0xbaef, 0xe0d5, 0xbbef, 0xedb4, 0xaac3, 0xbcef, 0x9fe8, 0xbdef, 0xbeef, 0xbfef, 0xa0e8, 0xfdce, 0xc0ef, 0xe0c2, 0xb8b4, 0xb6d7, 0xf5bd, 0x40e9, 0xc7cf, 0xc3ef, 0xc1ef, 0xc2ef, 0xc4ef, 0xa7b6, 0xfcbc, 0xe2be, 0xccc3, 0xc5ef, 0xc6ef, 0x41e9, 0xc7ef, 0xcfef, 0xc8ef, 0xc9ef, 0xcaef, 0xc2c7, 0xf1ef, 0xcdb6, 0xcbef, 0x42e9, 0xccef, 0xcdef, 0xc6b6, 0xbec3, 0xceef, 0x43e9, 0xd0ef, 0xd1ef, 0xd2ef, 0xf2d5, 0x44e9, 0xd3ef, 0xf7c4, 0x45e9, 0xd4ef, 0xf8c4, 0xd5ef, 0xd6ef, 0xe4b8, 0xf7b0, 0xd7ef, 0xd8ef, 0xd9ef, 0x46e9, 0xdaef, 0xdbef, 0xdcef, 0xddef, 0x47e9, 0xdeef, 0xb5be, 0xe1ef, 0xdfef, 0xe0ef, 0x48e9, 0xe2ef, 0xe3ef, 0xcdc1, 0xe4ef, 0xe5ef, 0xe6ef, 0xe7ef, 0xe8ef, 0xe9ef, 0xeaef, 0xebef, 0xecef, 0xd8c0, 0x49e9, 0xedef, 0xadc1, 0xeeef, 0xefef, 0xf0ef, 0x4ae9, 0x4be9, 0xe2cf, 0x4ce9, 0x4de9, 0x4ee9, 0x4fe9, 0x50e9, 0x51e9, 0x52e9, 0x53e9, 0xa4b3, 0x54e9, 0x55e9, 0x56e9, 0x57e9, 0x58e9, 0x59e9, 0x5ae9, 0x5be9, 0x5ce9, 0x5de9, 0x5ee9, 0x5fe9, 0x60e9, 0x61e9, 0x62e9, 0x63e9, 0x64e9, 0x65e9, 0x66e9, 0x67e9, 0x68e9, 0x69e9, 0x6ae9, 0x6be9, 0x6ce9, 0x6de9, 0x6ee9, 0x6fe9, 0x70e9, 0x71e9, 0x72e9, 0x73e9, 0x74e9, 0x75e9, 0x76e9, 0x77e9, 0x78e9, 0x79e9, 0x7ae9, 0x7be9, 0x7ce9, 0x7de9, 0x7ee9, 0x80e9, 0x81e9, 0x82e9, 0x83e9, 0x84e9, 0x85e9, 0x86e9, 0x87e9, 0x88e9, 0x89e9, 0x8ae9, 0x8be9, 0x8ce9, 0x8de9, 0x8ee9, 0x8fe9, 0x90e9, 0x91e9, 0x92e9, 0x93e9, 0x94e9, 0x95e9, 0x96e9, 0x97e9, 0x98e9, 0x99e9, 0x9ae9, 0x9be9, 0x9ce9, 0x9de9, 0x9ee9, 0x9fe9, 0xa0e9, 0x40ea, 0x41ea, 0x42ea, 0x43ea, 0x44ea, 0x45ea, 0x46ea, 0x47ea, 0x48ea, 0x49ea, 0x4aea, 0x4bea, 0x4cea, 0x4dea, 0x4eea, 0x4fea, 0x50ea, 0x51ea, 0x52ea, 0x53ea, 0x54ea, 0x55ea, 0x56ea, 0x57ea, 0x58ea, 0x59ea, 0x5aea, 0x5bea, 0xc5c3, 0xc5e3, 0xc1c9, 0xc6e3, 0x5cea, 0xd5b1, 0xcace, 0xb3b4, 0xf2c8, 0xc7e3, 0xd0cf, 0xc8e3, 0xe4bc, 0xc9e3, 0xcae3, 0xc6c3, 0xa2d5, 0xd6c4, 0xebb9, 0xc5ce, 0xcbe3, 0xf6c3, 0xcce3, 0x5dea, 0xa7b7, 0xf3b8, 0xd2ba, 0xcde3, 0xcee3, 0xc4d4, 0xcfe3, 0x5eea, 0xd0e3, 0xcbd1, 0xd1e3, 0xd2e3, 0xd3e3, 0xd4e3, 0xd6d1, 0xd5e3, 0xfbb2, 0xbbc0, 0xd6e3, 0x5fea, 0xabc0, 0xd7e3, 0xd8e3, 0xd9e3, 0x60ea, 0xdae3, 0xdbe3, 0x61ea, 0xb7b8, 0xe2da, 0x62ea, 0xd3b6, 0x63ea, 0xe4da, 0xe3da, 0x64ea, 0x65ea, 0x66ea, 0x67ea, 0x68ea, 0x69ea, 0x6aea, 0xe6da, 0x6bea, 0x6cea, 0x6dea, 0xeec8, 0x6eea, 0x6fea, 0xe5da, 0xc0b7, 0xf4d1, 0xf5d2, 0xf3d5, 0xd7bd, 0x70ea, 0x71ea, 0x72ea, 0x73ea, 0xe8d7, 0xe8da, 0xe7da, 0x74ea, 0xa2b0, 0xd3cd, 0x75ea, 0xe9da, 0x76ea, 0xbdb8, 0xcabc, 0xbdc2, 0xa4c2, 0xc2b3, 0xeada, 0x77ea, 0xaac2, 0xb0c4, 0xb5bd, 0x78ea, 0x79ea, 0xdecf, 0x7aea, 0x7bea, 0x7cea, 0xebda, 0xc2c9, 0x7dea, 0x7eea, 0x80ea, 0x81ea, 0x82ea, 0xddb1, 0x83ea, 0x84ea, 0x85ea, 0xecda, 0x86ea, 0xb8b6, 0xbad4, 0x87ea, 0xfdb3, 0x88ea, 0x89ea, 0xedda, 0xc9d4, 0xd5cf, 0xe3c5, 0x8aea, 0xeeda, 0x8bea, 0x8cea, 0x8dea, 0x8eea, 0x8fea, 0xefda, 0x90ea, 0xf0da, 0xeac1, 0xd5cc, 0xddcf, 0x91ea, 0x92ea, 0x93ea, 0x94ea, 0x95ea, 0x96ea, 0x97ea, 0x98ea, 0x99ea, 0x9aea, 0x9bea, 0x9cea, 0x9dea, 0xe7d3, 0xa1c2, 0x9eea, 0xf1da, 0x9fea, 0xa0ea, 0xe5cb, 0x40eb, 0xf2da, 0x41eb, 0xe6cb, 0xfed2, 0x42eb, 0x43eb, 0x44eb, 0xf4b8, 0x45eb, 0x46eb, 0xf3da, 0xafb0, 0xb6cf, 0x47eb, 0x48eb, 0xcfd5, 0x49eb, 0x4aeb, 0x4beb, 0x4ceb, 0x4deb, 0x4eeb, 0x4feb, 0x50eb, 0x51eb, 0x52eb, 0xedcb, 0x53eb, 0x54eb, 0x55eb, 0x56eb, 0x57eb, 0x58eb, 0x59eb, 0x5aeb, 0xf4da, 0x5beb, 0x5ceb, 0xc4e3, 0x5deb, 0x5eeb, 0xa5c1, 0x5feb, 0x60eb, 0xbff6, 0x61eb, 0x62eb, 0xc0f6, 0xc1f6, 0xd1c4, 0x63eb, 0xb8c8, 0xe3d1, 0x64eb, 0x65eb, 0xdbd0, 0xc5d1, 0xafbc, 0xcdb9, 0x66eb, 0xf4ef, 0x67eb, 0x68eb, 0xc6b4, 0xbad3, 0xc2f6, 0xfbb3, 0x69eb, 0x6aeb, 0xc3f6, 0x6beb, 0x6ceb, 0xf1b5, 0x6deb, 0x6eeb, 0x6feb, 0x70eb, 0x71eb, 0x72eb, 0x73eb, 0x74eb, 0x75eb, 0x76eb, 0xc5f6, 0x77eb, 0x78eb, 0x79eb, 0x7aeb, 0x7beb, 0x7ceb, 0x7deb, 0xead3, 0xa7f6, 0xa9d1, 0x7eeb, 0x80eb, 0x81eb, 0x82eb, 0xa9f6, 0x83eb, 0x84eb, 0x85eb, 0xa8f6, 0x86eb, 0x87eb, 0xe3c1, 0xd7c0, 0x88eb, 0xa2b1, 0x89eb, 0x8aeb, 0x8beb, 0x8ceb, 0xedce, 0x8deb, 0xe8d0, 0xabf6, 0x8eeb, 0x8feb, 0xf6cf, 0x90eb, 0xaaf6, 0xf0d5, 0xacf6, 0xb9c3, 0x91eb, 0x92eb, 0x93eb, 0xf4bb, 0xaef6, 0xadf6, 0x94eb, 0x95eb, 0x96eb, 0xdec4, 0x97eb, 0x98eb, 0xd8c1, 0x99eb, 0x9aeb, 0x9beb, 0x9ceb, 0x9deb, 0xaacb, 0x9eeb, 0xbccf, 0x9feb, 0xa0eb, 0x40ec, 0x41ec, 0x42ec, 0x43ec, 0x44ec, 0x45ec, 0x46ec, 0x47ec, 0x48ec, 0xaff6, 0x49ec, 0x4aec, 0xb0f6, 0x4bec, 0x4cec, 0xb1f6, 0x4dec, 0xb6c2, 0x4eec, 0x4fec, 0x50ec, 0x51ec, 0x52ec, 0xd4b0, 0xf9c5, 0x53ec, 0x54ec, 0x55ec, 0x56ec, 0xb2f6, 0x57ec, 0x58ec, 0x59ec, 0x5aec, 0x5bec, 0x5cec, 0x5dec, 0x5eec, 0x5fec, 0x60ec, 0x61ec, 0x62ec, 0x63ec, 0x64ec, 0x65ec, 0x66ec, 0x67ec, 0x68ec, 0x69ec, 0xe0c7, 0xa6f6, 0x6aec, 0x6bec, 0xb8be, 0x6cec, 0x6dec, 0xb2be, 0x6eec, 0xe5b5, 0x6fec, 0x70ec, 0xc7b7, 0x71ec, 0xbfbf, 0xd2c3, 0xe6c3, 0x72ec, 0x73ec, 0xccd8, 0x74ec, 0x75ec, 0x76ec, 0xefb8, 0x77ec, 0x78ec, 0x79ec, 0x7aec, 0x7bec, 0x7cec, 0x7dec, 0x7eec, 0x80ec, 0xf9bd, 0xa5d1, 0x81ec, 0xd0b0, 0x82ec, 0x83ec, 0x84ec, 0x85ec, 0x86ec, 0xb0f7, 0x87ec, 0x88ec, 0x89ec, 0x8aec, 0x8bec, 0x8cec, 0x8dec, 0x8eec, 0xb1f7, 0x8fec, 0x90ec, 0x91ec, 0x92ec, 0x93ec, 0xacd0, 0x94ec, 0xb0b0, 0x95ec, 0x96ec, 0x97ec, 0xb2f7, 0xb3f7, 0x98ec, 0xb4f7, 0x99ec, 0x9aec, 0x9bec, 0xcac7, 0x9cec, 0x9dec, 0x9eec, 0x9fec, 0xa0ec, 0x40ed, 0x41ed, 0xcfbe, 0x42ed, 0x43ed, 0xb7f7, 0x44ed, 0x45ed, 0x46ed, 0x47ed, 0x48ed, 0x49ed, 0x4aed, 0xb6f7, 0x4bed, 0xdeb1, 0x4ced, 0xb5f7, 0x4ded, 0x4eed, 0xb8f7, 0x4fed, 0xb9f7, 0x50ed, 0x51ed, 0x52ed, 0x53ed, 0x54ed, 0x55ed, 0x56ed, 0x57ed, 0x58ed, 0x59ed, 0x5aed, 0x5bed, 0x5ced, 0x5ded, 0x5eed, 0x5fed, 0x60ed, 0x61ed, 0x62ed, 0x63ed, 0x64ed, 0x65ed, 0x66ed, 0x67ed, 0x68ed, 0x69ed, 0x6aed, 0x6bed, 0x6ced, 0x6ded, 0x6eed, 0x6fed, 0x70ed, 0x71ed, 0x72ed, 0x73ed, 0x74ed, 0x75ed, 0x76ed, 0x77ed, 0x78ed, 0x79ed, 0x7aed, 0x7bed, 0x7ced, 0x7ded, 0x7eed, 0x80ed, 0x81ed, 0xa4ce, 0xcdc8, 0x82ed, 0xabba, 0xb8e8, 0xb9e8, 0xbae8, 0xc2be, 0x83ed, 0x84ed, 0x85ed, 0x86ed, 0x87ed, 0xf4d2, 0x88ed, 0xcfd4, 0xd8c9, 0x89ed, 0x8aed, 0x8bed, 0x8ced, 0x8ded, 0x8eed, 0x8fed, 0x90ed, 0x91ed, 0x92ed, 0x93ed, 0x94ed, 0x95ed, 0x96ed, 0x97ed, 0x98ed, 0x99ed, 0x9aed, 0x9bed, 0x9ced, 0x9ded, 0x9eed, 0x9fed, 0xa0ed, 0x40ee, 0x41ee, 0x42ee, 0x43ee, 0x44ee, 0x45ee, 0x46ee, 0x47ee, 0x48ee, 0x49ee, 0x4aee, 0x4bee, 0x4cee, 0x4dee, 0x4eee, 0x4fee, 0x50ee, 0x51ee, 0x52ee, 0x53ee, 0x54ee, 0x55ee, 0x56ee, 0x57ee, 0x58ee, 0x59ee, 0x5aee, 0x5bee, 0x5cee, 0x5dee, 0x5eee, 0x5fee, 0x60ee, 0x61ee, 0x62ee, 0x63ee, 0x64ee, 0x65ee, 0x66ee, 0x67ee, 0x68ee, 0x69ee, 0x6aee, 0x6bee, 0x6cee, 0x6dee, 0x6eee, 0x6fee, 0x70ee, 0x71ee, 0x72ee, 0x73ee, 0x74ee, 0x75ee, 0x76ee, 0x77ee, 0x78ee, 0x79ee, 0x7aee, 0x7bee, 0x7cee, 0x7dee, 0x7eee, 0x80ee, 0x81ee, 0x82ee, 0x83ee, 0x84ee, 0x85ee, 0x86ee, 0x87ee, 0x88ee, 0x89ee, 0x8aee, 0x8bee, 0x8cee, 0x8dee, 0x8eee, 0x8fee, 0x90ee, 0x91ee, 0x92ee, 0x93ee, 0x94ee, 0x95ee, 0x96ee, 0x97ee, 0x98ee, 0x99ee, 0x9aee, 0x9bee, 0x9cee, 0x9dee, 0x9eee, 0x9fee, 0xa0ee, 0x40ef, 0x41ef, 0x42ef, 0x43ef, 0x44ef, 0x45ef, 0xb3d2, 0xa5b6, 0xeac7, 0xfcf1, 0xeecf, 0xb3cb, 0xebd0, 0xefe7, 0xe7cd, 0xcbb9, 0xd9b6, 0xfdf1, 0xe4b0, 0xcccb, 0xfef1, 0xa4d4, 0xadc2, 0xecc1, 0xc4c6, 0xb1be, 0xa1f2, 0xd5bc, 0x46ef, 0xa2f2, 0xa3f2, 0x47ef, 0xa4f2, 0xc3d2, 0xb5c6, 0x48ef, 0xc7cd, 0xa5f2, 0x49ef, 0xb1d3, 0xc5bf, 0xe2cc, 0x4aef, 0xa6f2, 0xa7f2, 0xd5d1, 0xeeb6, 0xa8f2, 0xa9f2, 0xdfb5, 0xaaf2, 0xabf2, 0x4bef, 0xfcb2, 0xacf2, 0xadf2, 0xa7c8, 0x4cef, 0x4def, 0x4eef, 0x4fef, 0x50ef, 0x51ef, 0x52ef, 0x53ef, 0x54ef, 0x55ef, 0x56ef, 0x57ef, 0x58ef, 0x59ef, 0x5aef, 0x5bef, 0x5cef, 0x5def, 0x5eef, 0x5fef, 0x60ef, 0x61ef, 0x62ef, 0x63ef, 0x64ef, 0x65ef, 0x66ef, 0x67ef, 0x68ef, 0x69ef, 0x6aef, 0x6bef, 0x6cef, 0x6def, 0x6eef, 0x6fef, 0x70ef, 0x71ef, 0xe7b7, 0x72ef, 0x73ef, 0xa9ec, 0xaaec, 0xabec, 0x74ef, 0xacec, 0x75ef, 0x76ef, 0xaec6, 0xadec, 0xaeec, 0x77ef, 0x78ef, 0x79ef, 0xc9b7, 0xb3ca, 0x7aef, 0x7bef, 0x7cef, 0x7def, 0x7eef, 0x80ef, 0x81ef, 0xb8e2, 0xcff7, 0x82ef, 0x83ef, 0x84ef, 0x85ef, 0x86ef, 0x87ef, 0x88ef, 0x89ef, 0x8aef, 0x8bef, 0x8cef, 0x8def, 0x8eef, 0x8fef, 0x90ef, 0x91ef, 0x92ef, 0x93ef, 0x94ef, 0x95ef, 0x96ef, 0x97ef, 0x98ef, 0x99ef, 0x9aef, 0x9bef, 0x9cef, 0x9def, 0x9eef, 0x9fef, 0xa0ef, 0x40f0, 0x41f0, 0x42f0, 0x43f0, 0x44f0, 0xd0f7, 0x45f0, 0x46f0, 0xcdb2, 0x47f0, 0x48f0, 0x49f0, 0x4af0, 0x4bf0, 0x4cf0, 0x4df0, 0x4ef0, 0x4ff0, 0x50f0, 0x51f0, 0x52f0, 0x53f0, 0x54f0, 0x55f0, 0x56f0, 0x57f0, 0x58f0, 0x59f0, 0x5af0, 0x5bf0, 0x5cf0, 0x5df0, 0x5ef0, 0x5ff0, 0x60f0, 0x61f0, 0x62f0, 0x63f0, 0xd1f7, 0x64f0, 0x65f0, 0x66f0, 0x67f0, 0x68f0, 0x69f0, 0x6af0, 0x6bf0, 0x6cf0, 0x6df0, 0x6ef0, 0x6ff0, 0x70f0, 0x71f0, 0x72f0, 0x73f0, 0x74f0, 0x75f0, 0x76f0, 0x77f0, 0x78f0, 0x79f0, 0x7af0, 0x7bf0, 0x7cf0, 0x7df0, 0x7ef0, 0x80f0, 0x81f0, 0x82f0, 0x83f0, 0x84f0, 0x85f0, 0x86f0, 0x87f0, 0x88f0, 0x89f0, 0xd3f7, 0xd2f7, 0x8af0, 0x8bf0, 0x8cf0, 0x8df0, 0x8ef0, 0x8ff0, 0x90f0, 0x91f0, 0x92f0, 0x93f0, 0x94f0, 0x95f0, 0x96f0, 0xbbe2, 0x97f0, 0xa2bc, 0x98f0, 0xbce2, 0xbde2, 0xbee2, 0xbfe2, 0xc0e2, 0xc1e2, 0xb9b7, 0xfbd2, 0xa4bd, 0xceca, 0xa5b1, 0xc7cb, 0x99f0, 0xc2e2, 0xfcb6, 0xc4c8, 0xc3e2, 0x9af0, 0x9bf0, 0xc8bd, 0x9cf0, 0xfdb1, 0xc4e2, 0x9df0, 0xf6b6, 0xc5e2, 0xd9c4, 0x9ef0, 0x9ff0, 0xc6e2, 0xdacf, 0xddb9, 0xc7e2, 0xa1c0, 0xa0f0, 0xc8e2, 0xf6b2, 0x40f1, 0xc9e2, 0x41f1, 0xf3c1, 0xcae2, 0xcbe2, 0xf8c2, 0xcce2, 0xcde2, 0xcee2, 0xd7ca, 0xb8d8, 0xe5d9, 0xe3cf, 0x42f1, 0x43f1, 0x44f1, 0x45f1, 0x46f1, 0x47f1, 0x48f1, 0x49f1, 0x4af1, 0x4bf1, 0x4cf1, 0xa5f0, 0x4df1, 0x4ef1, 0xb0dc, 0x4ff1, 0x50f1, 0x51f1, 0x52f1, 0x53f1, 0x54f1, 0x55f1, 0x56f1, 0x57f1, 0x58f1, 0x59f1, 0x5af1, 0x5bf1, 0x5cf1, 0x5df1, 0x5ef1, 0x5ff1, 0x60f1, 0x61f1, 0x62f1, 0x63f1, 0x64f1, 0x65f1, 0x66f1, 0x67f1, 0x68f1, 0x69f1, 0x6af1, 0x6bf1, 0x6cf1, 0x6df1, 0x6ef1, 0x6ff1, 0x70f1, 0x71f1, 0x72f1, 0x73f1, 0x74f1, 0x75f1, 0x76f1, 0x77f1, 0x78f1, 0x79f1, 0x7af1, 0x7bf1, 0x7cf1, 0x7df1, 0x7ef1, 0x80f1, 0x81f1, 0x82f1, 0x83f1, 0x84f1, 0x85f1, 0x86f1, 0x87f1, 0x88f1, 0x89f1, 0x8af1, 0x8bf1, 0x8cf1, 0x8df1, 0x8ef1, 0x8ff1, 0x90f1, 0x91f1, 0x92f1, 0x93f1, 0x94f1, 0x95f1, 0x96f1, 0x97f1, 0x98f1, 0x99f1, 0x9af1, 0x9bf1, 0x9cf1, 0x9df1, 0x9ef1, 0x9ff1, 0xa0f1, 0x40f2, 0x41f2, 0x42f2, 0x43f2, 0x44f2, 0x45f2, 0x46f2, 0x47f2, 0x48f2, 0x49f2, 0x4af2, 0x4bf2, 0x4cf2, 0x4df2, 0x4ef2, 0x4ff2, 0x50f2, 0x51f2, 0x52f2, 0x53f2, 0x54f2, 0x55f2, 0x56f2, 0x57f2, 0x58f2, 0x59f2, 0x5af2, 0x5bf2, 0x5cf2, 0x5df2, 0x5ef2, 0x5ff2, 0x60f2, 0x61f2, 0x62f2, 0x63f2, 0x64f2, 0x65f2, 0x66f2, 0x67f2, 0x68f2, 0x69f2, 0x6af2, 0x6bf2, 0x6cf2, 0x6df2, 0x6ef2, 0x6ff2, 0x70f2, 0x71f2, 0x72f2, 0x73f2, 0x74f2, 0x75f2, 0x76f2, 0x77f2, 0x78f2, 0x79f2, 0x7af2, 0x7bf2, 0x7cf2, 0x7df2, 0x7ef2, 0x80f2, 0x81f2, 0x82f2, 0x83f2, 0x84f2, 0x85f2, 0x86f2, 0x87f2, 0x88f2, 0x89f2, 0x8af2, 0x8bf2, 0x8cf2, 0x8df2, 0x8ef2, 0x8ff2, 0x90f2, 0x91f2, 0x92f2, 0x93f2, 0x94f2, 0x95f2, 0x96f2, 0x97f2, 0x98f2, 0x99f2, 0x9af2, 0x9bf2, 0x9cf2, 0x9df2, 0x9ef2, 0x9ff2, 0xa0f2, 0x40f3, 0x41f3, 0x42f3, 0x43f3, 0x44f3, 0x45f3, 0x46f3, 0x47f3, 0x48f3, 0x49f3, 0x4af3, 0x4bf3, 0x4cf3, 0x4df3, 0x4ef3, 0x4ff3, 0x50f3, 0x51f3, 0xedc2, 0xa6d4, 0xd4cd, 0xb1d1, 0xdbb3, 0xfdc7, 0x52f3, 0xb5b2, 0xbfc2, 0xe0e6, 0xbbca, 0xe1e6, 0xe2e6, 0xd4be, 0xe3e6, 0xa4d7, 0xd5cd, 0xe5e6, 0xddbc, 0xe4e6, 0xe6e6, 0xe7e6, 0xeec2, 0x53f3, 0xbebd, 0xe8e6, 0xe6c2, 0xa7ba, 0xe9e6, 0x54f3, 0xeae6, 0xd2b3, 0xe9d1, 0x55f3, 0x56f3, 0xa5bf, 0xebe6, 0xefc6, 0xece6, 0xede6, 0x57f3, 0x58f3, 0xeee6, 0xadc6, 0xefe6, 0x59f3, 0xa7c9, 0xf0e6, 0xf1e6, 0xf2e6, 0xb9e5, 0xf3e6, 0xf4e6, 0xe2c2, 0xf5e6, 0xf6e6, 0xe8d6, 0xf7e6, 0x5af3, 0xf8e6, 0xc7b9, 0x5bf3, 0x5cf3, 0x5df3, 0x5ef3, 0x5ff3, 0x60f3, 0x61f3, 0xbbf7, 0xbaf7, 0x62f3, 0x63f3, 0x64f3, 0x65f3, 0xbef7, 0xbcf7, 0xa1ba, 0x66f3, 0xbff7, 0x67f3, 0xc0f7, 0x68f3, 0x69f3, 0x6af3, 0xc2f7, 0xc1f7, 0xc4f7, 0x6bf3, 0x6cf3, 0xc3f7, 0x6df3, 0x6ef3, 0x6ff3, 0x70f3, 0x71f3, 0xc5f7, 0xc6f7, 0x72f3, 0x73f3, 0x74f3, 0x75f3, 0xc7f7, 0x76f3, 0xe8cb, 0x77f3, 0x78f3, 0x79f3, 0x7af3, 0xdfb8, 0x7bf3, 0x7cf3, 0x7df3, 0x7ef3, 0x80f3, 0x81f3, 0xd4f7, 0x82f3, 0xd5f7, 0x83f3, 0x84f3, 0x85f3, 0x86f3, 0xd6f7, 0x87f3, 0x88f3, 0x89f3, 0x8af3, 0xd8f7, 0x8bf3, 0xdaf7, 0x8cf3, 0xd7f7, 0x8df3, 0x8ef3, 0x8ff3, 0x90f3, 0x91f3, 0x92f3, 0x93f3, 0x94f3, 0x95f3, 0xdbf7, 0x96f3, 0xd9f7, 0x97f3, 0x98f3, 0x99f3, 0x9af3, 0x9bf3, 0x9cf3, 0x9df3, 0xd7d7, 0x9ef3, 0x9ff3, 0xa0f3, 0x40f4, 0xdcf7, 0x41f4, 0x42f4, 0x43f4, 0x44f4, 0x45f4, 0x46f4, 0xddf7, 0x47f4, 0x48f4, 0x49f4, 0xdef7, 0x4af4, 0x4bf4, 0x4cf4, 0x4df4, 0x4ef4, 0x4ff4, 0x50f4, 0x51f4, 0x52f4, 0x53f4, 0x54f4, 0xdff7, 0x55f4, 0x56f4, 0x57f4, 0xe0f7, 0x58f4, 0x59f4, 0x5af4, 0x5bf4, 0x5cf4, 0x5df4, 0x5ef4, 0x5ff4, 0x60f4, 0x61f4, 0x62f4, 0xcbdb, 0x63f4, 0x64f4, 0xaad8, 0x65f4, 0x66f4, 0x67f4, 0x68f4, 0x69f4, 0x6af4, 0x6bf4, 0x6cf4, 0xf7e5, 0xedb9, 0x6df4, 0x6ef4, 0x6ff4, 0x70f4, 0xfdbf, 0xeabb, 0xc9f7, 0xc7c6, 0xc8f7, 0x71f4, 0xcaf7, 0xccf7, 0xcbf7, 0x72f4, 0x73f4, 0x74f4, 0xcdf7, 0x75f4, 0xbace, 0x76f4, 0xcef7, 0x77f4, 0x78f4, 0xa7c4, 0x79f4, 0x7af4, 0x7bf4, 0x7cf4, 0x7df4, 0x7ef4, 0x80f4, 0x81f4, 0x82f4, 0x83f4, 0x84f4, 0x85f4, 0x86f4, 0x87f4, 0x88f4, 0x89f4, 0x8af4, 0x8bf4, 0x8cf4, 0x8df4, 0x8ef4, 0x8ff4, 0x90f4, 0x91f4, 0x92f4, 0x93f4, 0x94f4, 0x95f4, 0x96f4, 0x97f4, 0x98f4, 0x99f4, 0x9af4, 0x9bf4, 0x9cf4, 0x9df4, 0x9ef4, 0x9ff4, 0xa0f4, 0x40f5, 0x41f5, 0x42f5, 0x43f5, 0x44f5, 0x45f5, 0x46f5, 0x47f5, 0x48f5, 0x49f5, 0x4af5, 0x4bf5, 0x4cf5, 0x4df5, 0x4ef5, 0x4ff5, 0x50f5, 0x51f5, 0x52f5, 0x53f5, 0x54f5, 0x55f5, 0x56f5, 0x57f5, 0x58f5, 0x59f5, 0x5af5, 0x5bf5, 0x5cf5, 0x5df5, 0x5ef5, 0x5ff5, 0x60f5, 0x61f5, 0x62f5, 0x63f5, 0x64f5, 0x65f5, 0x66f5, 0x67f5, 0x68f5, 0x69f5, 0x6af5, 0x6bf5, 0x6cf5, 0x6df5, 0x6ef5, 0x6ff5, 0x70f5, 0x71f5, 0x72f5, 0x73f5, 0x74f5, 0x75f5, 0x76f5, 0x77f5, 0x78f5, 0x79f5, 0x7af5, 0x7bf5, 0x7cf5, 0x7df5, 0x7ef5, 0x80f5, 0x81f5, 0x82f5, 0x83f5, 0x84f5, 0x85f5, 0x86f5, 0x87f5, 0x88f5, 0x89f5, 0x8af5, 0x8bf5, 0x8cf5, 0x8df5, 0x8ef5, 0x8ff5, 0x90f5, 0x91f5, 0x92f5, 0x93f5, 0x94f5, 0x95f5, 0x96f5, 0x97f5, 0x98f5, 0x99f5, 0x9af5, 0x9bf5, 0x9cf5, 0x9df5, 0x9ef5, 0x9ff5, 0xa0f5, 0x40f6, 0x41f6, 0x42f6, 0x43f6, 0x44f6, 0x45f6, 0x46f6, 0x47f6, 0x48f6, 0x49f6, 0x4af6, 0x4bf6, 0x4cf6, 0x4df6, 0x4ef6, 0x4ff6, 0x50f6, 0x51f6, 0x52f6, 0x53f6, 0x54f6, 0x55f6, 0x56f6, 0x57f6, 0x58f6, 0x59f6, 0x5af6, 0x5bf6, 0x5cf6, 0x5df6, 0x5ef6, 0x5ff6, 0x60f6, 0x61f6, 0x62f6, 0x63f6, 0x64f6, 0x65f6, 0x66f6, 0x67f6, 0x68f6, 0x69f6, 0x6af6, 0x6bf6, 0x6cf6, 0x6df6, 0x6ef6, 0x6ff6, 0x70f6, 0x71f6, 0x72f6, 0x73f6, 0x74f6, 0x75f6, 0x76f6, 0x77f6, 0x78f6, 0x79f6, 0x7af6, 0x7bf6, 0x7cf6, 0x7df6, 0x7ef6, 0x80f6, 0x81f6, 0x82f6, 0x83f6, 0x84f6, 0x85f6, 0x86f6, 0x87f6, 0x88f6, 0x89f6, 0x8af6, 0x8bf6, 0x8cf6, 0x8df6, 0x8ef6, 0x8ff6, 0x90f6, 0x91f6, 0x92f6, 0x93f6, 0x94f6, 0x95f6, 0x96f6, 0x97f6, 0x98f6, 0x99f6, 0x9af6, 0x9bf6, 0x9cf6, 0x9df6, 0x9ef6, 0x9ff6, 0xa0f6, 0x40f7, 0x41f7, 0x42f7, 0x43f7, 0x44f7, 0x45f7, 0x46f7, 0x47f7, 0x48f7, 0x49f7, 0x4af7, 0x4bf7, 0x4cf7, 0x4df7, 0x4ef7, 0x4ff7, 0x50f7, 0x51f7, 0x52f7, 0x53f7, 0x54f7, 0x55f7, 0x56f7, 0x57f7, 0x58f7, 0x59f7, 0x5af7, 0x5bf7, 0x5cf7, 0x5df7, 0x5ef7, 0x5ff7, 0x60f7, 0x61f7, 0x62f7, 0x63f7, 0x64f7, 0x65f7, 0x66f7, 0x67f7, 0x68f7, 0x69f7, 0x6af7, 0x6bf7, 0x6cf7, 0x6df7, 0x6ef7, 0x6ff7, 0x70f7, 0x71f7, 0x72f7, 0x73f7, 0x74f7, 0x75f7, 0x76f7, 0x77f7, 0x78f7, 0x79f7, 0x7af7, 0x7bf7, 0x7cf7, 0x7df7, 0x7ef7, 0x80f7, 0xe3d3, 0x81f7, 0x82f7, 0xcff6, 0x83f7, 0xb3c2, 0xd0f6, 0x84f7, 0x85f7, 0xd1f6, 0xd2f6, 0xd3f6, 0xd4f6, 0x86f7, 0x87f7, 0xd6f6, 0x88f7, 0xabb1, 0xd7f6, 0x89f7, 0xd8f6, 0xd9f6, 0xdaf6, 0x8af7, 0xdbf6, 0xdcf6, 0x8bf7, 0x8cf7, 0x8df7, 0x8ef7, 0xddf6, 0xdef6, 0xcacf, 0x8ff7, 0xdff6, 0xe0f6, 0xe1f6, 0xe2f6, 0xe3f6, 0xe4f6, 0xf0c0, 0xe5f6, 0xe6f6, 0xe7f6, 0xe8f6, 0xe9f6, 0x90f7, 0xeaf6, 0x91f7, 0xebf6, 0xecf6, 0x92f7, 0xedf6, 0xeef6, 0xeff6, 0xf0f6, 0xf1f6, 0xf2f6, 0xf3f6, 0xf4f6, 0xa8be, 0x93f7, 0xf5f6, 0xf6f6, 0xf7f6, 0xf8f6, 0x94f7, 0x95f7, 0x96f7, 0x97f7, 0x98f7, 0xfac8, 0xf9f6, 0xfaf6, 0xfbf6, 0xfcf6, 0x99f7, 0x9af7, 0xfdf6, 0xfef6, 0xa1f7, 0xa2f7, 0xa3f7, 0xa4f7, 0xa5f7, 0x9bf7, 0x9cf7, 0xa6f7, 0xa7f7, 0xa8f7, 0xeeb1, 0xa9f7, 0xaaf7, 0xabf7, 0x9df7, 0x9ef7, 0xacf7, 0xadf7, 0xdbc1, 0xaef7, 0x9ff7, 0xa0f7, 0xaff7, 0x40f8, 0x41f8, 0x42f8, 0x43f8, 0x44f8, 0x45f8, 0x46f8, 0x47f8, 0x48f8, 0x49f8, 0x4af8, 0x4bf8, 0x4cf8, 0x4df8, 0x4ef8, 0x4ff8, 0x50f8, 0x51f8, 0x52f8, 0x53f8, 0x54f8, 0x55f8, 0x56f8, 0x57f8, 0x58f8, 0x59f8, 0x5af8, 0x5bf8, 0x5cf8, 0x5df8, 0x5ef8, 0x5ff8, 0x60f8, 0x61f8, 0x62f8, 0x63f8, 0x64f8, 0x65f8, 0x66f8, 0x67f8, 0x68f8, 0x69f8, 0x6af8, 0x6bf8, 0x6cf8, 0x6df8, 0x6ef8, 0x6ff8, 0x70f8, 0x71f8, 0x72f8, 0x73f8, 0x74f8, 0x75f8, 0x76f8, 0x77f8, 0x78f8, 0x79f8, 0x7af8, 0x7bf8, 0x7cf8, 0x7df8, 0x7ef8, 0x80f8, 0x81f8, 0x82f8, 0x83f8, 0x84f8, 0x85f8, 0x86f8, 0x87f8, 0x88f8, 0x89f8, 0x8af8, 0x8bf8, 0x8cf8, 0x8df8, 0x8ef8, 0x8ff8, 0x90f8, 0x91f8, 0x92f8, 0x93f8, 0x94f8, 0x95f8, 0x96f8, 0x97f8, 0x98f8, 0x99f8, 0x9af8, 0x9bf8, 0x9cf8, 0x9df8, 0x9ef8, 0x9ff8, 0xa0f8, 0x40f9, 0x41f9, 0x42f9, 0x43f9, 0x44f9, 0x45f9, 0x46f9, 0x47f9, 0x48f9, 0x49f9, 0x4af9, 0x4bf9, 0x4cf9, 0x4df9, 0x4ef9, 0x4ff9, 0x50f9, 0x51f9, 0x52f9, 0x53f9, 0x54f9, 0x55f9, 0x56f9, 0x57f9, 0x58f9, 0x59f9, 0x5af9, 0x5bf9, 0x5cf9, 0x5df9, 0x5ef9, 0x5ff9, 0x60f9, 0x61f9, 0x62f9, 0x63f9, 0x64f9, 0x65f9, 0x66f9, 0x67f9, 0x68f9, 0x69f9, 0x6af9, 0x6bf9, 0x6cf9, 0x6df9, 0x6ef9, 0x6ff9, 0x70f9, 0x71f9, 0x72f9, 0x73f9, 0x74f9, 0x75f9, 0x76f9, 0x77f9, 0x78f9, 0x79f9, 0x7af9, 0x7bf9, 0x7cf9, 0x7df9, 0x7ef9, 0x80f9, 0x81f9, 0x82f9, 0x83f9, 0x84f9, 0x85f9, 0x86f9, 0x87f9, 0x88f9, 0x89f9, 0x8af9, 0x8bf9, 0x8cf9, 0x8df9, 0x8ef9, 0x8ff9, 0x90f9, 0x91f9, 0x92f9, 0x93f9, 0x94f9, 0x95f9, 0x96f9, 0x97f9, 0x98f9, 0x99f9, 0x9af9, 0x9bf9, 0x9cf9, 0x9df9, 0x9ef9, 0x9ff9, 0xa0f9, 0x40fa, 0x41fa, 0x42fa, 0x43fa, 0x44fa, 0x45fa, 0x46fa, 0x47fa, 0x48fa, 0x49fa, 0x4afa, 0x4bfa, 0x4cfa, 0x4dfa, 0x4efa, 0x4ffa, 0x50fa, 0x51fa, 0x52fa, 0x53fa, 0x54fa, 0x55fa, 0x56fa, 0x57fa, 0x58fa, 0x59fa, 0x5afa, 0x5bfa, 0x5cfa, 0x5dfa, 0x5efa, 0x5ffa, 0x60fa, 0x61fa, 0x62fa, 0x63fa, 0x64fa, 0x65fa, 0x66fa, 0x67fa, 0x68fa, 0x69fa, 0x6afa, 0x6bfa, 0x6cfa, 0x6dfa, 0x6efa, 0x6ffa, 0x70fa, 0x71fa, 0x72fa, 0x73fa, 0x74fa, 0x75fa, 0x76fa, 0x77fa, 0x78fa, 0x79fa, 0x7afa, 0x7bfa, 0x7cfa, 0x7dfa, 0x7efa, 0x80fa, 0x81fa, 0x82fa, 0x83fa, 0x84fa, 0x85fa, 0x86fa, 0x87fa, 0x88fa, 0x89fa, 0x8afa, 0x8bfa, 0x8cfa, 0x8dfa, 0x8efa, 0x8ffa, 0x90fa, 0x91fa, 0x92fa, 0x93fa, 0x94fa, 0x95fa, 0x96fa, 0x97fa, 0x98fa, 0x99fa, 0x9afa, 0x9bfa, 0x9cfa, 0x9dfa, 0x9efa, 0x9ffa, 0xa0fa, 0x40fb, 0x41fb, 0x42fb, 0x43fb, 0x44fb, 0x45fb, 0x46fb, 0x47fb, 0x48fb, 0x49fb, 0x4afb, 0x4bfb, 0x4cfb, 0x4dfb, 0x4efb, 0x4ffb, 0x50fb, 0x51fb, 0x52fb, 0x53fb, 0x54fb, 0x55fb, 0x56fb, 0x57fb, 0x58fb, 0x59fb, 0x5afb, 0x5bfb, 0xf1c4, 0xaff0, 0xa6bc, 0xb0f0, 0xf9c3, 0x5cfb, 0xb8c5, 0xbbd1, 0x5dfb, 0xb1f0, 0xb2f0, 0xb3f0, 0xb4f0, 0xb5f0, 0xbcd1, 0x5efb, 0xecd1, 0x5ffb, 0xb7f0, 0xb6f0, 0xa7d4, 0x60fb, 0xd2cd, 0xb8f0, 0xbaf0, 0xb9f0, 0xbbf0, 0xbcf0, 0x61fb, 0x62fb, 0xebb8, 0xbdf0, 0xe8ba, 0x63fb, 0xbef0, 0xbff0, 0xe9be, 0xc0f0, 0xecb6, 0xc1f0, 0xc2f0, 0xc3f0, 0xc4f0, 0xb5c8, 0xc5f0, 0xc6f0, 0x64fb, 0xc7f0, 0xf4c5, 0x65fb, 0xc8f0, 0x66fb, 0x67fb, 0x68fb, 0xc9f0, 0x69fb, 0xcaf0, 0xbdf7, 0x6afb, 0xcbf0, 0xccf0, 0xcdf0, 0x6bfb, 0xcef0, 0x6cfb, 0x6dfb, 0x6efb, 0x6ffb, 0xcff0, 0xd7ba, 0x70fb, 0xd0f0, 0xd1f0, 0xd2f0, 0xd3f0, 0xd4f0, 0xd5f0, 0xd6f0, 0xd8f0, 0x71fb, 0x72fb, 0xa5d3, 0xd7f0, 0x73fb, 0xd9f0, 0x74fb, 0x75fb, 0x76fb, 0x77fb, 0x78fb, 0x79fb, 0x7afb, 0x7bfb, 0x7cfb, 0x7dfb, 0xbaf5, 0xb9c2, 0x7efb, 0x80fb, 0xe4f7, 0x81fb, 0x82fb, 0x83fb, 0x84fb, 0xe5f7, 0xe6f7, 0x85fb, 0x86fb, 0xe7f7, 0x87fb, 0x88fb, 0x89fb, 0x8afb, 0x8bfb, 0x8cfb, 0xe8f7, 0xb4c2, 0x8dfb, 0x8efb, 0x8ffb, 0x90fb, 0x91fb, 0x92fb, 0x93fb, 0x94fb, 0x95fb, 0xeaf7, 0x96fb, 0xebf7, 0x97fb, 0x98fb, 0x99fb, 0x9afb, 0x9bfb, 0x9cfb, 0xf3c2, 0x9dfb, 0x9efb, 0x9ffb, 0xa0fb, 0x40fc, 0x41fc, 0x42fc, 0x43fc, 0x44fc, 0x45fc, 0x46fc, 0x47fc, 0x48fc, 0xf0f4, 0x49fc, 0x4afc, 0x4bfc, 0xeff4, 0x4cfc, 0x4dfc, 0xe9c2, 0x4efc, 0xe1f7, 0xe2f7, 0x4ffc, 0x50fc, 0x51fc, 0x52fc, 0x53fc, 0xc6bb, 0x54fc, 0x55fc, 0x56fc, 0x57fc, 0xe4d9, 0x58fc, 0x59fc, 0x5afc, 0xf2ca, 0xe8c0, 0xa4f0, 0x5bfc, 0xdaba, 0x5cfc, 0x5dfc, 0xadc7, 0x5efc, 0x5ffc, 0x60fc, 0xacc4, 0x61fc, 0x62fc, 0xecf7, 0xedf7, 0xeef7, 0x63fc, 0xf0f7, 0xeff7, 0x64fc, 0xf1f7, 0x65fc, 0x66fc, 0xf4f7, 0x67fc, 0xf3f7, 0x68fc, 0xf2f7, 0xf5f7, 0x69fc, 0x6afc, 0x6bfc, 0x6cfc, 0xf6f7, 0x6dfc, 0x6efc, 0x6ffc, 0x70fc, 0x71fc, 0x72fc, 0x73fc, 0x74fc, 0x75fc, 0xe9ed, 0x76fc, 0xeaed, 0xebed, 0x77fc, 0xbcf6, 0x78fc, 0x79fc, 0x7afc, 0x7bfc, 0x7cfc, 0x7dfc, 0x7efc, 0x80fc, 0x81fc, 0x82fc, 0x83fc, 0x84fc, 0xbdf6, 0x85fc, 0xbef6, 0xa6b6, 0x86fc, 0xbed8, 0x87fc, 0x88fc, 0xc4b9, 0x89fc, 0x8afc, 0x8bfc, 0xbbd8, 0x8cfc, 0xb1dc, 0x8dfc, 0x8efc, 0x8ffc, 0x90fc, 0x91fc, 0x92fc, 0xf3ca, 0x93fc, 0xf7f7, 0x94fc, 0x95fc, 0x96fc, 0x97fc, 0x98fc, 0x99fc, 0x9afc, 0x9bfc, 0x9cfc, 0xf8f7, 0x9dfc, 0x9efc, 0xf9f7, 0x9ffc, 0xa0fc, 0x40fd, 0x41fd, 0x42fd, 0x43fd, 0x44fd, 0xfbf7, 0x45fd, 0xfaf7, 0x46fd, 0xc7b1, 0x47fd, 0xfcf7, 0xfdf7, 0x48fd, 0x49fd, 0x4afd, 0x4bfd, 0x4cfd, 0xfef7, 0x4dfd, 0x4efd, 0x4ffd, 0x50fd, 0x51fd, 0x52fd, 0x53fd, 0x54fd, 0x55fd, 0x56fd, 0x57fd, 0xebc6, 0xb4ec, 0x58fd, 0x59fd, 0x5afd, 0x5bfd, 0x5cfd, 0x5dfd, 0x5efd, 0x5ffd, 0x60fd, 0x61fd, 0x62fd, 0x63fd, 0x64fd, 0x65fd, 0x66fd, 0x67fd, 0x68fd, 0x69fd, 0x6afd, 0x6bfd, 0x6cfd, 0x6dfd, 0x6efd, 0x6ffd, 0x70fd, 0x71fd, 0x72fd, 0x73fd, 0x74fd, 0x75fd, 0x76fd, 0x77fd, 0x78fd, 0x79fd, 0x7afd, 0x7bfd, 0x7cfd, 0x7dfd, 0x7efd, 0x80fd, 0x81fd, 0x82fd, 0x83fd, 0x84fd, 0x85fd, 0xddb3, 0xb3f6, 0x86fd, 0x87fd, 0xb4f6, 0xe4c1, 0xb5f6, 0xb6f6, 0xb7f6, 0xb8f6, 0xb9f6, 0xbaf6, 0xa3c8, 0xbbf6, 0x88fd, 0x89fd, 0x8afd, 0x8bfd, 0x8cfd, 0x8dfd, 0x8efd, 0x8ffd, 0x90fd, 0x91fd, 0x92fd, 0x93fd, 0xfac1, 0xa8b9, 0xe8ed, 0x94fd, 0x95fd, 0x96fd, 0xeab9, 0xdfd9, 0x97fd, 0x98fd, 0x99fd, 0x9afd, 0x9bfd }; const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0xf900[ 320 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9cfd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9dfd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9efd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9ffd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa0fd, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x40fe, 0x41fe, 0x42fe, 0x43fe, 0x001a, 0x44fe, 0x001a, 0x45fe, 0x46fe, 0x001a, 0x001a, 0x001a, 0x47fe, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x48fe, 0x49fe, 0x4afe, 0x001a, 0x4bfe, 0x4cfe, 0x001a, 0x001a, 0x4dfe, 0x4efe, 0x4ffe, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0xfe00[ 512 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x55a9, 0xf2a6, 0x001a, 0xf4a6, 0xf5a6, 0xe0a6, 0xe1a6, 0xf0a6, 0xf1a6, 0xe2a6, 0xe3a6, 0xeea6, 0xefa6, 0xe6a6, 0xe7a6, 0xe4a6, 0xe5a6, 0xe8a6, 0xe9a6, 0xeaa6, 0xeba6, 0x001a, 0x001a, 0x001a, 0x001a, 0x68a9, 0x69a9, 0x6aa9, 0x6ba9, 0x6ca9, 0x6da9, 0x6ea9, 0x6fa9, 0x70a9, 0x71a9, 0x001a, 0x72a9, 0x73a9, 0x74a9, 0x75a9, 0x001a, 0x76a9, 0x77a9, 0x78a9, 0x79a9, 0x7aa9, 0x7ba9, 0x7ca9, 0x7da9, 0x7ea9, 0x80a9, 0x81a9, 0x82a9, 0x83a9, 0x84a9, 0x001a, 0x85a9, 0x86a9, 0x87a9, 0x88a9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1a3, 0xa2a3, 0xa3a3, 0xe7a1, 0xa5a3, 0xa6a3, 0xa7a3, 0xa8a3, 0xa9a3, 0xaaa3, 0xaba3, 0xaca3, 0xada3, 0xaea3, 0xafa3, 0xb0a3, 0xb1a3, 0xb2a3, 0xb3a3, 0xb4a3, 0xb5a3, 0xb6a3, 0xb7a3, 0xb8a3, 0xb9a3, 0xbaa3, 0xbba3, 0xbca3, 0xbda3, 0xbea3, 0xbfa3, 0xc0a3, 0xc1a3, 0xc2a3, 0xc3a3, 0xc4a3, 0xc5a3, 0xc6a3, 0xc7a3, 0xc8a3, 0xc9a3, 0xcaa3, 0xcba3, 0xcca3, 0xcda3, 0xcea3, 0xcfa3, 0xd0a3, 0xd1a3, 0xd2a3, 0xd3a3, 0xd4a3, 0xd5a3, 0xd6a3, 0xd7a3, 0xd8a3, 0xd9a3, 0xdaa3, 0xdba3, 0xdca3, 0xdda3, 0xdea3, 0xdfa3, 0xe0a3, 0xe1a3, 0xe2a3, 0xe3a3, 0xe4a3, 0xe5a3, 0xe6a3, 0xe7a3, 0xe8a3, 0xe9a3, 0xeaa3, 0xeba3, 0xeca3, 0xeda3, 0xeea3, 0xefa3, 0xf0a3, 0xf1a3, 0xf2a3, 0xf3a3, 0xf4a3, 0xf5a3, 0xf6a3, 0xf7a3, 0xf8a3, 0xf9a3, 0xfaa3, 0xfba3, 0xfca3, 0xfda3, 0xaba1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9a1, 0xeaa1, 0x56a9, 0xfea3, 0x57a9, 0xa4a3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; /* Determines the size of a byte stream character from an Unicode character * Adds the size to the byte stream character size value * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_936_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_936_unicode_character_size_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream character size.", function ); return( -1 ); } if( unicode_character < 0x0080 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0480 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2340 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x2440 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2440; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x2440[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fa6 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xf900 ) && ( unicode_character < 0xfa40 ) ) { unicode_character -= 0xf900; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0xf900[ unicode_character ]; } else if( ( unicode_character >= 0xfe00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xfe00; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0xfe00[ unicode_character ]; } byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_character_size += 2; } else { *byte_stream_character_size += 1; } return( 1 ); } /* Copies an Unicode character from a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_936_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_936_copy_from_byte_stream"; uint8_t additional_character = 0; uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } byte_stream_character = byte_stream[ *byte_stream_index ]; if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else if( byte_stream_character == 0x80 ) { *unicode_character = 0x20ac; } else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) { *byte_stream_index += 1; additional_character = byte_stream[ *byte_stream_index ]; if( ( byte_stream_character >= 0x81 ) && ( byte_stream_character <= 0xa0 ) ) { if( additional_character >= 0x40 ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0x81: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8140[ additional_character ]; break; case 0x82: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8240[ additional_character ]; break; case 0x83: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8340[ additional_character ]; break; case 0x84: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8440[ additional_character ]; break; case 0x85: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8540[ additional_character ]; break; case 0x86: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8640[ additional_character ]; break; case 0x87: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8740[ additional_character ]; break; case 0x88: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8840[ additional_character ]; break; case 0x89: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8940[ additional_character ]; break; case 0x8a: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8a40[ additional_character ]; break; case 0x8b: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8b40[ additional_character ]; break; case 0x8c: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8c40[ additional_character ]; break; case 0x8d: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8d40[ additional_character ]; break; case 0x8e: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8e40[ additional_character ]; break; case 0x8f: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8f40[ additional_character ]; break; case 0x90: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9040[ additional_character ]; break; case 0x91: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9140[ additional_character ]; break; case 0x92: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9240[ additional_character ]; break; case 0x93: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9340[ additional_character ]; break; case 0x94: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9440[ additional_character ]; break; case 0x95: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9540[ additional_character ]; break; case 0x96: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9640[ additional_character ]; break; case 0x97: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9740[ additional_character ]; break; case 0x98: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9840[ additional_character ]; break; case 0x99: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9940[ additional_character ]; break; case 0x9a: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9a40[ additional_character ]; break; case 0x9b: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9b40[ additional_character ]; break; case 0x9c: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9c40[ additional_character ]; break; case 0x9d: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9d40[ additional_character ]; break; case 0x9e: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9e40[ additional_character ]; break; case 0x9f: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9f40[ additional_character ]; break; case 0xa0: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa040[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xa1 ) && ( byte_stream_character <= 0xa3 ) ) { if( additional_character >= 0xa0 ) { additional_character -= 0xa0; switch( byte_stream_character ) { case 0xa1: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa1a0[ additional_character ]; break; case 0xa2: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa2a0[ additional_character ]; break; case 0xa3: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa3a0[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xa4 ) && ( byte_stream_character <= 0xa6 ) ) { if( ( additional_character >= 0xa0 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0xa0; switch( byte_stream_character ) { case 0xa4: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa4a0[ additional_character ]; break; case 0xa5: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa5a0[ additional_character ]; break; case 0xa6: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa6a0[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa7 ) { if( ( additional_character >= 0xa0 ) && ( additional_character < 0xc8 ) ) { additional_character -= 0xa0; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7a0[ additional_character ]; } else if( ( additional_character >= 0xd0 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0xd0; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7d0[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa8 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x98 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa840[ additional_character ]; } else if( ( additional_character >= 0xa0 ) && ( additional_character < 0xf0 ) ) { additional_character -= 0xa0; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa8a0[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xa9 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x88 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa940[ additional_character ]; } else if( additional_character == 0x88 ) { *unicode_character = 0xfe6b; } else if( additional_character == 0x96 ) { *unicode_character = 0x3007; } else if( ( additional_character >= 0xa0 ) && ( additional_character < 0xf0 ) ) { additional_character -= 0xa0; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa9a0[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xaa ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaa40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x7371; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xab ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xab40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x73f7; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xac ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xac40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x747a; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xad ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xad40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x74f2; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xae ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xae40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x7587; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xaf ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaf40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x7644; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xb0 ) && ( byte_stream_character <= 0xf7 ) ) { if( additional_character >= 0x40 ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xb0: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb040[ additional_character ]; break; case 0xb1: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb140[ additional_character ]; break; case 0xb2: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb240[ additional_character ]; break; case 0xb3: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb340[ additional_character ]; break; case 0xb4: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb440[ additional_character ]; break; case 0xb5: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb540[ additional_character ]; break; case 0xb6: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb640[ additional_character ]; break; case 0xb7: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb740[ additional_character ]; break; case 0xb8: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb840[ additional_character ]; break; case 0xb9: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb940[ additional_character ]; break; case 0xba: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xba40[ additional_character ]; break; case 0xbb: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbb40[ additional_character ]; break; case 0xbc: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbc40[ additional_character ]; break; case 0xbd: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbd40[ additional_character ]; break; case 0xbe: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbe40[ additional_character ]; break; case 0xbf: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbf40[ additional_character ]; break; case 0xc0: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc040[ additional_character ]; break; case 0xc1: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc140[ additional_character ]; break; case 0xc2: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc240[ additional_character ]; break; case 0xc3: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc340[ additional_character ]; break; case 0xc4: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc440[ additional_character ]; break; case 0xc5: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc540[ additional_character ]; break; case 0xc6: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc640[ additional_character ]; break; case 0xc7: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc740[ additional_character ]; break; case 0xc8: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc840[ additional_character ]; break; case 0xc9: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc940[ additional_character ]; break; case 0xca: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xca40[ additional_character ]; break; case 0xcb: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcb40[ additional_character ]; break; case 0xcc: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcc40[ additional_character ]; break; case 0xcd: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcd40[ additional_character ]; break; case 0xce: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xce40[ additional_character ]; break; case 0xcf: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcf40[ additional_character ]; break; case 0xd0: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd040[ additional_character ]; break; case 0xd1: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd140[ additional_character ]; break; case 0xd2: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd240[ additional_character ]; break; case 0xd3: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd340[ additional_character ]; break; case 0xd4: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd440[ additional_character ]; break; case 0xd5: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd540[ additional_character ]; break; case 0xd6: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd640[ additional_character ]; break; case 0xd7: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd740[ additional_character ]; break; case 0xd8: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd840[ additional_character ]; break; case 0xd9: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd940[ additional_character ]; break; case 0xda: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xda40[ additional_character ]; break; case 0xdb: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdb40[ additional_character ]; break; case 0xdc: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdc40[ additional_character ]; break; case 0xdd: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdd40[ additional_character ]; break; case 0xde: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xde40[ additional_character ]; break; case 0xdf: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdf40[ additional_character ]; break; case 0xe0: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe040[ additional_character ]; break; case 0xe1: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe140[ additional_character ]; break; case 0xe2: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe240[ additional_character ]; break; case 0xe3: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe340[ additional_character ]; break; case 0xe4: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe440[ additional_character ]; break; case 0xe5: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe540[ additional_character ]; break; case 0xe6: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe640[ additional_character ]; break; case 0xe7: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe740[ additional_character ]; break; case 0xe8: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe840[ additional_character ]; break; case 0xe9: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe940[ additional_character ]; break; case 0xea: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xea40[ additional_character ]; break; case 0xeb: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xeb40[ additional_character ]; break; case 0xec: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xec40[ additional_character ]; break; case 0xed: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xed40[ additional_character ]; break; case 0xee: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xee40[ additional_character ]; break; case 0xef: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xef40[ additional_character ]; break; case 0xf0: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf040[ additional_character ]; break; case 0xf1: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf140[ additional_character ]; break; case 0xf2: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf240[ additional_character ]; break; case 0xf3: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf340[ additional_character ]; break; case 0xf4: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf440[ additional_character ]; break; case 0xf5: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf540[ additional_character ]; break; case 0xf6: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf640[ additional_character ]; break; case 0xf7: *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf740[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xf8 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf840[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x9d42; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xf9 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf940[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x9da2; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xfa ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfa40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x9e02; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xfb ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfb40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x9eaa; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xfc ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfc40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0x9f31; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xfd ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa0 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfd40[ additional_character ]; } else if( additional_character == 0xa0 ) { *unicode_character = 0xf9f1; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xfe ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x50 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfe40[ additional_character ]; } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } *byte_stream_index += 1; return( 1 ); } /* Copies an Unicode character to a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_936_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_936_copy_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( unicode_character < 0x0080 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0480 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2340 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x2440 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2440; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x2440[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fa6 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xf900 ) && ( unicode_character < 0xfa40 ) ) { unicode_character -= 0xf900; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0xf900[ unicode_character ]; } else if( ( unicode_character >= 0xfe00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xfe00; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0xfe00[ unicode_character ]; } byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_index += 1; byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); } *byte_stream_index += 1; return( 1 ); } libfsapfs-20190210/libuna/libuna_unicode_character.c0000664000175000017500000041777213430101233024445 0ustar00lordyestalordyesta00000000000000/* * Unicode character functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_base64_stream.h" #include "libuna_codepage_iso_8859_2.h" #include "libuna_codepage_iso_8859_3.h" #include "libuna_codepage_iso_8859_4.h" #include "libuna_codepage_iso_8859_5.h" #include "libuna_codepage_iso_8859_6.h" #include "libuna_codepage_iso_8859_7.h" #include "libuna_codepage_iso_8859_8.h" #include "libuna_codepage_iso_8859_9.h" #include "libuna_codepage_iso_8859_10.h" #include "libuna_codepage_iso_8859_13.h" #include "libuna_codepage_iso_8859_14.h" #include "libuna_codepage_iso_8859_15.h" #include "libuna_codepage_iso_8859_16.h" #include "libuna_codepage_koi8_r.h" #include "libuna_codepage_koi8_u.h" #include "libuna_codepage_windows_874.h" #include "libuna_codepage_windows_932.h" #include "libuna_codepage_windows_936.h" #include "libuna_codepage_windows_949.h" #include "libuna_codepage_windows_950.h" #include "libuna_codepage_windows_1250.h" #include "libuna_codepage_windows_1251.h" #include "libuna_codepage_windows_1252.h" #include "libuna_codepage_windows_1253.h" #include "libuna_codepage_windows_1254.h" #include "libuna_codepage_windows_1255.h" #include "libuna_codepage_windows_1256.h" #include "libuna_codepage_windows_1257.h" #include "libuna_codepage_windows_1258.h" #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_unused.h" /* Valid directly encoded characters: A-Z, a-z, 0-9, '\', '(', ')', ',', '-', '.', '/', ':', '?' * Valid directly encoded whitespace: '\t', '\n', '\r', ' ' * Valid optional directly encoded characters: '!', '"', '#', '$', '%', '&', '*', ';', '<', '=', '>', '@', '[', ']', '^', '_', '`', '{', '|', '}' */ uint8_t libuna_unicode_character_utf7_valid_directly_encoded_character[ 256 ] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; /* Valid UTF-7 base64 characters: A-Z, a-z, 0-9, '+' and '/' */ uint8_t libuna_unicode_character_utf7_valid_base64_character[ 256 ] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; /* Determines the size of a byte stream character from an Unicode character * Adds the size to the byte stream character size value * Returns 1 if successful or -1 on error */ int libuna_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, int codepage, size_t *byte_stream_character_size, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_size_to_byte_stream"; int result = 1; if( byte_stream_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream character size.", function ); return( -1 ); } switch( codepage ) { case LIBUNA_CODEPAGE_ASCII: case LIBUNA_CODEPAGE_ISO_8859_1: case LIBUNA_CODEPAGE_ISO_8859_2: case LIBUNA_CODEPAGE_ISO_8859_3: case LIBUNA_CODEPAGE_ISO_8859_4: case LIBUNA_CODEPAGE_ISO_8859_5: case LIBUNA_CODEPAGE_ISO_8859_6: case LIBUNA_CODEPAGE_ISO_8859_7: case LIBUNA_CODEPAGE_ISO_8859_8: case LIBUNA_CODEPAGE_ISO_8859_9: case LIBUNA_CODEPAGE_ISO_8859_10: case LIBUNA_CODEPAGE_ISO_8859_11: case LIBUNA_CODEPAGE_ISO_8859_13: case LIBUNA_CODEPAGE_ISO_8859_14: case LIBUNA_CODEPAGE_ISO_8859_15: case LIBUNA_CODEPAGE_ISO_8859_16: case LIBUNA_CODEPAGE_KOI8_R: case LIBUNA_CODEPAGE_KOI8_U: case LIBUNA_CODEPAGE_WINDOWS_874: case LIBUNA_CODEPAGE_WINDOWS_1250: case LIBUNA_CODEPAGE_WINDOWS_1251: case LIBUNA_CODEPAGE_WINDOWS_1252: case LIBUNA_CODEPAGE_WINDOWS_1253: case LIBUNA_CODEPAGE_WINDOWS_1254: case LIBUNA_CODEPAGE_WINDOWS_1255: case LIBUNA_CODEPAGE_WINDOWS_1256: case LIBUNA_CODEPAGE_WINDOWS_1257: case LIBUNA_CODEPAGE_WINDOWS_1258: *byte_stream_character_size += 1; break; case LIBUNA_CODEPAGE_WINDOWS_932: result = libuna_codepage_windows_932_unicode_character_size_to_byte_stream( unicode_character, byte_stream_character_size, error ); break; case LIBUNA_CODEPAGE_WINDOWS_936: result = libuna_codepage_windows_936_unicode_character_size_to_byte_stream( unicode_character, byte_stream_character_size, error ); break; case LIBUNA_CODEPAGE_WINDOWS_949: result = libuna_codepage_windows_949_unicode_character_size_to_byte_stream( unicode_character, byte_stream_character_size, error ); break; case LIBUNA_CODEPAGE_WINDOWS_950: result = libuna_codepage_windows_950_unicode_character_size_to_byte_stream( unicode_character, byte_stream_character_size, error ); break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported codepage: %d.", function, codepage ); return( -1 ); } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine byte stream character size.", function ); return( -1 ); } return( result ); } /* Copies an Unicode character from a byte stream * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, int codepage, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_from_byte_stream"; uint8_t byte_stream_character = 0; int result = 1; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } byte_stream_character = byte_stream[ *byte_stream_index ]; switch( codepage ) { case LIBUNA_CODEPAGE_ASCII: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { *unicode_character = 0xfffd; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_1: *unicode_character = byte_stream_character; *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_2: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_2_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_3: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_3_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_4: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_4_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_5: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_5_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_6: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_6_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_7: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_7_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_8: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_8_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_9: if( byte_stream_character < 0xd0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xd0; *unicode_character = libuna_codepage_iso_8859_9_byte_stream_to_unicode_base_0xd0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_10: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_10_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_11: if( byte_stream_character < 0xa1 ) { *unicode_character = byte_stream_character; } else if( byte_stream_character < 0xdb ) { *unicode_character = byte_stream_character + 0x0d60; } else if( byte_stream_character < 0xdf ) { *unicode_character = 0xfffd; } else if( byte_stream_character < 0xfc ) { *unicode_character = byte_stream_character + 0x0d60; } else { *unicode_character = 0xfffd; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_13: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_13_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_14: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_14_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_15: if( ( byte_stream_character >= 0xa0 ) && ( byte_stream_character < 0xc0 ) ) { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_15_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } else { *unicode_character = byte_stream_character; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_16: if( byte_stream_character < 0xa0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xa0; *unicode_character = libuna_codepage_iso_8859_16_byte_stream_to_unicode_base_0xa0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_KOI8_R: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_KOI8_U: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_874: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_932: result = libuna_codepage_windows_932_copy_from_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_936: result = libuna_codepage_windows_936_copy_from_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_949: result = libuna_codepage_windows_949_copy_from_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_950: result = libuna_codepage_windows_950_copy_from_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_1250: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1251: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1252: if( ( byte_stream_character < 0x80 ) || ( byte_stream_character >= 0xa0 ) ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1253: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1254: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else if( byte_stream_character < 0xa0 ) { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } else if( byte_stream_character < 0xd0 ) { *unicode_character = byte_stream_character; } else if( byte_stream_character < 0xe0 ) { byte_stream_character -= 0xd0; *unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ byte_stream_character ]; } else if( byte_stream_character < 0xf0 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0xf0; *unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1255: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1256: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1257: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1258: if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else { byte_stream_character -= 0x80; *unicode_character = libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; } *byte_stream_index += 1; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported codepage: %d.", function, codepage ); return( -1 ); } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } return( result ); } /* Copies an Unicode character to a byte stream * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, int codepage, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_to_byte_stream"; int result = 1; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } switch( codepage ) { case LIBUNA_CODEPAGE_ASCII: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else { byte_stream[ *byte_stream_index ] = 0x1a; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_1: if( unicode_character < 0x0100 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else { byte_stream[ *byte_stream_index ] = 0x1a; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_2: if( unicode_character < 0x00a0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x0120 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x0138 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x0138; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x0138[ unicode_character ]; } else if( ( unicode_character >= 0x02d8 ) && ( unicode_character < 0x02e0 ) ) { unicode_character -= 0x02d8; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_2_unicode_to_byte_stream_base_0x02d8[ unicode_character ]; } else if( unicode_character == 0x02c7 ) { byte_stream[ *byte_stream_index ] = 0xb7; } else { byte_stream[ *byte_stream_index ] = 0x1a; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_3: if( unicode_character < 0x00a0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x0108 ) && ( unicode_character < 0x0110 ) ) { unicode_character -= 0x0108; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0108[ unicode_character ]; } else if( ( unicode_character >= 0x0118 ) && ( unicode_character < 0x0128 ) ) { unicode_character -= 0x0118; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0118[ unicode_character ]; } else if( ( unicode_character >= 0x0130 ) && ( unicode_character < 0x0138 ) ) { unicode_character -= 0x0130; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0130[ unicode_character ]; } else if( ( unicode_character >= 0x0158 ) && ( unicode_character < 0x0160 ) ) { unicode_character -= 0x0158; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0158[ unicode_character ]; } else switch( unicode_character ) { case 0x016c: byte_stream[ *byte_stream_index ] = 0xdd; break; case 0x016d: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x017b: byte_stream[ *byte_stream_index ] = 0xaf; break; case 0x017c: byte_stream[ *byte_stream_index ] = 0xbf; break; case 0x02d8: byte_stream[ *byte_stream_index ] = 0xa2; break; case 0x02d9: byte_stream[ *byte_stream_index ] = 0xff; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_4: if( unicode_character < 0x00a0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x0158 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_4_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x0160 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x0160; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_4_unicode_to_byte_stream_base_0x0160[ unicode_character ]; } else switch( unicode_character ) { case 0x02c7: byte_stream[ *byte_stream_index ] = 0xb7; break; case 0x02d9: byte_stream[ *byte_stream_index ] = 0xff; break; case 0x02db: byte_stream[ *byte_stream_index ] = 0xb2; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_5: if( unicode_character < 0x00a1 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x0400 ) && ( unicode_character < 0x0460 ) ) { unicode_character -= 0x0400; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_5_unicode_to_byte_stream_base_0x0400[ unicode_character ]; } else switch( unicode_character ) { case 0x00a7: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x00ad: byte_stream[ *byte_stream_index ] = 0xad; break; case 0x2116: byte_stream[ *byte_stream_index ] = 0xf0; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_6: if( unicode_character < 0x00a1 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x0618 ) && ( unicode_character < 0x658 ) ) { unicode_character -= 0x0618; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_6_unicode_to_byte_stream_base_0x0618[ unicode_character ]; } else switch( unicode_character ) { case 0x00a4: byte_stream[ *byte_stream_index ] = 0xa4; break; case 0x00ad: byte_stream[ *byte_stream_index ] = 0xad; break; case 0x060c: byte_stream[ *byte_stream_index ] = 0xac; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_7: if( unicode_character < 0x00a0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00b8 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_7_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x0380 ) && ( unicode_character < 0x03d0 ) ) { unicode_character -= 0x0380; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_7_unicode_to_byte_stream_base_0x0380[ unicode_character ]; } else switch( unicode_character ) { case 0x00bb: byte_stream[ *byte_stream_index ] = 0xbb; break; case 0x00bd: byte_stream[ *byte_stream_index ] = 0xbd; break; case 0x037a: byte_stream[ *byte_stream_index ] = 0xaa; break; case 0x2015: byte_stream[ *byte_stream_index ] = 0xaf; break; case 0x2018: byte_stream[ *byte_stream_index ] = 0xa1; break; case 0x2019: byte_stream[ *byte_stream_index ] = 0xa2; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0xa4; break; case 0x20af: byte_stream[ *byte_stream_index ] = 0xa5; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_8: if( unicode_character < 0x00a0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x05d0 ) && ( unicode_character < 0x05f0 ) ) { unicode_character -= 0x05d0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x05d0[ unicode_character ]; } else switch( unicode_character ) { case 0x00d7: byte_stream[ *byte_stream_index ] = 0xaa; break; case 0x00f7: byte_stream[ *byte_stream_index ] = 0xba; break; case 0x200e: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x200f: byte_stream[ *byte_stream_index ] = 0xfe; break; case 0x2017: byte_stream[ *byte_stream_index ] = 0xdf; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_9: if( unicode_character < 0x00d0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00d0 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x00d0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_9_unicode_to_byte_stream_base_0x00d0[ unicode_character ]; } else switch( unicode_character ) { case 0x011e: byte_stream[ *byte_stream_index ] = 0xd0; break; case 0x011f: byte_stream[ *byte_stream_index ] = 0xf0; break; case 0x0130: byte_stream[ *byte_stream_index ] = 0xdd; break; case 0x0131: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x015e: byte_stream[ *byte_stream_index ] = 0xde; break; case 0x015f: byte_stream[ *byte_stream_index ] = 0xfe; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_10: if( unicode_character < 0x00a1 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00c0 ) && ( unicode_character < 0x0150 ) ) { unicode_character -= 0x00c0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_10_unicode_to_byte_stream_base_0x00c0[ unicode_character ]; } else if( ( unicode_character >= 0x0160 ) && ( unicode_character < 0x0170 ) ) { unicode_character -= 0x0160; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_10_unicode_to_byte_stream_base_0x0160[ unicode_character ]; } else switch( unicode_character ) { case 0x00a7: byte_stream[ *byte_stream_index ] = 0xa7; break; case 0x00ad: byte_stream[ *byte_stream_index ] = 0xad; break; case 0x00b0: byte_stream[ *byte_stream_index ] = 0xb0; break; case 0x00b7: byte_stream[ *byte_stream_index ] = 0xb7; break; case 0x0172: byte_stream[ *byte_stream_index ] = 0xd9; break; case 0x0173: byte_stream[ *byte_stream_index ] = 0xf9; break; case 0x017d: byte_stream[ *byte_stream_index ] = 0xac; break; case 0x017e: byte_stream[ *byte_stream_index ] = 0xbc; break; case 0x2015: byte_stream[ *byte_stream_index ] = 0xbd; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_11: if( unicode_character < 0x00a1 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x0e01 ) && ( unicode_character < 0x0e3b ) ) { byte_stream[ *byte_stream_index ] = (uint8_t) ( unicode_character - 0x0d60 ); } else if( ( unicode_character >= 0x0e3f ) && ( unicode_character < 0x0e5c ) ) { byte_stream[ *byte_stream_index ] = (uint8_t) ( unicode_character - 0x0d60 ); } else { byte_stream[ *byte_stream_index ] = 0x1a; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_13: if( unicode_character < 0x00a0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_13_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x2018 ) && ( unicode_character < 0x2020 ) ) { unicode_character -= 0x2018; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_13_unicode_to_byte_stream_base_0x2018[ unicode_character ]; } else { byte_stream[ *byte_stream_index ] = 0x1a; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_14: if( unicode_character < 0x00a1 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00c0 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x00c0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x00c0[ unicode_character ]; } else if( ( unicode_character >= 0x0170 ) && ( unicode_character < 0x0178 ) ) { unicode_character -= 0x0170; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x0170[ unicode_character ]; } else if( ( unicode_character >= 0x1e80 ) && ( unicode_character < 0x1e88 ) ) { unicode_character -= 0x1e80; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x1e80[ unicode_character ]; } else switch( unicode_character ) { case 0x00a3: byte_stream[ *byte_stream_index ] = 0xa3; break; case 0x00a7: byte_stream[ *byte_stream_index ] = 0xa7; break; case 0x00a9: byte_stream[ *byte_stream_index ] = 0xa9; break; case 0x00ad: byte_stream[ *byte_stream_index ] = 0xad; break; case 0x00ae: byte_stream[ *byte_stream_index ] = 0xae; break; case 0x00b6: byte_stream[ *byte_stream_index ] = 0xb6; break; case 0x010a: byte_stream[ *byte_stream_index ] = 0xa4; break; case 0x010b: byte_stream[ *byte_stream_index ] = 0xa5; break; case 0x0120: byte_stream[ *byte_stream_index ] = 0xb2; break; case 0x0121: byte_stream[ *byte_stream_index ] = 0xb3; break; case 0x0178: byte_stream[ *byte_stream_index ] = 0xaf; break; case 0x1e02: byte_stream[ *byte_stream_index ] = 0xa1; break; case 0x1e03: byte_stream[ *byte_stream_index ] = 0xa2; break; case 0x1e0a: byte_stream[ *byte_stream_index ] = 0xa6; break; case 0x1e0b: byte_stream[ *byte_stream_index ] = 0xab; break; case 0x1e1e: byte_stream[ *byte_stream_index ] = 0xb0; break; case 0x1e1f: byte_stream[ *byte_stream_index ] = 0xb1; break; case 0x1e40: byte_stream[ *byte_stream_index ] = 0xb4; break; case 0x1e41: byte_stream[ *byte_stream_index ] = 0xb5; break; case 0x1e56: byte_stream[ *byte_stream_index ] = 0xb7; break; case 0x1e57: byte_stream[ *byte_stream_index ] = 0xb9; break; case 0x1e60: byte_stream[ *byte_stream_index ] = 0xbb; break; case 0x1e61: byte_stream[ *byte_stream_index ] = 0xbf; break; case 0x1e6a: byte_stream[ *byte_stream_index ] = 0xd7; break; case 0x1e6b: byte_stream[ *byte_stream_index ] = 0xf7; break; case 0x1ef2: byte_stream[ *byte_stream_index ] = 0xac; break; case 0x1ef3: byte_stream[ *byte_stream_index ] = 0xbc; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_15: if( unicode_character < 0x00a0 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_15_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( unicode_character < 0x0100 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else switch( unicode_character ) { case 0x0152: byte_stream[ *byte_stream_index ] = 0xbc; break; case 0x0153: byte_stream[ *byte_stream_index ] = 0xbd; break; case 0x0160: byte_stream[ *byte_stream_index ] = 0xa6; break; case 0x0161: byte_stream[ *byte_stream_index ] = 0xa8; break; case 0x0178: byte_stream[ *byte_stream_index ] = 0xbe; break; case 0x017d: byte_stream[ *byte_stream_index ] = 0xb4; break; case 0x017e: byte_stream[ *byte_stream_index ] = 0xb8; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0xa4; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_ISO_8859_16: if( unicode_character < 0x00a1 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a8 ) && ( unicode_character < 0x0108 ) ) { unicode_character -= 0x00a8; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x00a8[ unicode_character ]; } else if( ( unicode_character >= 0x0140 ) && ( unicode_character < 0x0148 ) ) { unicode_character -= 0x0140; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0140[ unicode_character ]; } else if( ( unicode_character >= 0x0150 ) && ( unicode_character < 0x0158 ) ) { unicode_character -= 0x0150; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0150[ unicode_character ]; } else if( ( unicode_character >= 0x0178 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x0178; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0178[ unicode_character ]; } else if( ( unicode_character >= 0x0218 ) && ( unicode_character < 0x0220 ) ) { unicode_character -= 0x0218; byte_stream[ *byte_stream_index ] = libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0218[ unicode_character ]; } else switch( unicode_character ) { case 0x00a7: byte_stream[ *byte_stream_index ] = 0xa7; break; case 0x010c: byte_stream[ *byte_stream_index ] = 0xb2; break; case 0x010d: byte_stream[ *byte_stream_index ] = 0xb9; break; case 0x0110: byte_stream[ *byte_stream_index ] = 0xd0; break; case 0x0111: byte_stream[ *byte_stream_index ] = 0xf0; break; case 0x0118: byte_stream[ *byte_stream_index ] = 0xdd; break; case 0x0119: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x015a: byte_stream[ *byte_stream_index ] = 0xd7; break; case 0x015b: byte_stream[ *byte_stream_index ] = 0xf7; break; case 0x0160: byte_stream[ *byte_stream_index ] = 0xa6; break; case 0x0161: byte_stream[ *byte_stream_index ] = 0xa8; break; case 0x0170: byte_stream[ *byte_stream_index ] = 0xd8; break; case 0x0171: byte_stream[ *byte_stream_index ] = 0xf8; break; case 0x201d: byte_stream[ *byte_stream_index ] = 0xb5; break; case 0x201e: byte_stream[ *byte_stream_index ] = 0xa5; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0xa4; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_KOI8_R: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x0410 ) && ( unicode_character < 0x0450 ) ) { unicode_character -= 0x0410; byte_stream[ *byte_stream_index ] = libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ unicode_character ]; } else if( ( unicode_character >= 0x2550 ) && ( unicode_character < 0x2570 ) ) { unicode_character -= 0x2550; byte_stream[ *byte_stream_index ] = libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ unicode_character ]; } else switch( unicode_character ) { case 0x00a0: byte_stream[ *byte_stream_index ] = 0x9a; break; case 0x00a9: byte_stream[ *byte_stream_index ] = 0xbf; break; case 0x00b0: byte_stream[ *byte_stream_index ] = 0x9c; break; case 0x00b2: byte_stream[ *byte_stream_index ] = 0x9d; break; case 0x00b7: byte_stream[ *byte_stream_index ] = 0x9e; break; case 0x00f7: byte_stream[ *byte_stream_index ] = 0x9f; break; case 0x0401: byte_stream[ *byte_stream_index ] = 0xb3; break; case 0x0451: byte_stream[ *byte_stream_index ] = 0xa3; break; case 0x2219: byte_stream[ *byte_stream_index ] = 0x95; break; case 0x221a: byte_stream[ *byte_stream_index ] = 0x96; break; case 0x2248: byte_stream[ *byte_stream_index ] = 0x97; break; case 0x2264: byte_stream[ *byte_stream_index ] = 0x98; break; case 0x2265: byte_stream[ *byte_stream_index ] = 0x99; break; case 0x2320: byte_stream[ *byte_stream_index ] = 0x93; break; case 0x2321: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x2500: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2502: byte_stream[ *byte_stream_index ] = 0x81; break; case 0x250c: byte_stream[ *byte_stream_index ] = 0x82; break; case 0x2510: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x2514: byte_stream[ *byte_stream_index ] = 0x84; break; case 0x2518: byte_stream[ *byte_stream_index ] = 0x85; break; case 0x251c: byte_stream[ *byte_stream_index ] = 0x86; break; case 0x2524: byte_stream[ *byte_stream_index ] = 0x87; break; case 0x252c: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x2534: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x253c: byte_stream[ *byte_stream_index ] = 0x8a; break; case 0x2580: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x2584: byte_stream[ *byte_stream_index ] = 0x8c; break; case 0x2588: byte_stream[ *byte_stream_index ] = 0x8d; break; case 0x258c: byte_stream[ *byte_stream_index ] = 0x8e; break; case 0x2590: byte_stream[ *byte_stream_index ] = 0x8f; break; case 0x2591: byte_stream[ *byte_stream_index ] = 0x90; break; case 0x2592: byte_stream[ *byte_stream_index ] = 0x91; break; case 0x2593: byte_stream[ *byte_stream_index ] = 0x92; break; case 0x25a0: byte_stream[ *byte_stream_index ] = 0x94; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_KOI8_U: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x0410 ) && ( unicode_character < 0x0450 ) ) { unicode_character -= 0x0410; byte_stream[ *byte_stream_index ] = libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ unicode_character ]; } else if( ( unicode_character >= 0x2550 ) && ( unicode_character < 0x2570 ) ) { unicode_character -= 0x2550; byte_stream[ *byte_stream_index ] = libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ unicode_character ]; } else switch( unicode_character ) { case 0x00a0: byte_stream[ *byte_stream_index ] = 0x9a; break; case 0x00a9: byte_stream[ *byte_stream_index ] = 0xbf; break; case 0x00b0: byte_stream[ *byte_stream_index ] = 0x9c; break; case 0x00b2: byte_stream[ *byte_stream_index ] = 0x9d; break; case 0x00b7: byte_stream[ *byte_stream_index ] = 0x9e; break; case 0x00f7: byte_stream[ *byte_stream_index ] = 0x9f; break; case 0x0401: byte_stream[ *byte_stream_index ] = 0xb3; break; case 0x0404: byte_stream[ *byte_stream_index ] = 0xb4; break; case 0x0406: byte_stream[ *byte_stream_index ] = 0xb6; break; case 0x0407: byte_stream[ *byte_stream_index ] = 0xb7; break; case 0x0451: byte_stream[ *byte_stream_index ] = 0xa3; break; case 0x0454: byte_stream[ *byte_stream_index ] = 0xa4; break; case 0x0456: byte_stream[ *byte_stream_index ] = 0xa6; break; case 0x0457: byte_stream[ *byte_stream_index ] = 0xa7; break; case 0x0490: byte_stream[ *byte_stream_index ] = 0xbd; break; case 0x0491: byte_stream[ *byte_stream_index ] = 0xad; break; case 0x2219: byte_stream[ *byte_stream_index ] = 0x95; break; case 0x221a: byte_stream[ *byte_stream_index ] = 0x96; break; case 0x2248: byte_stream[ *byte_stream_index ] = 0x97; break; case 0x2264: byte_stream[ *byte_stream_index ] = 0x98; break; case 0x2265: byte_stream[ *byte_stream_index ] = 0x99; break; case 0x2320: byte_stream[ *byte_stream_index ] = 0x93; break; case 0x2321: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x2500: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2502: byte_stream[ *byte_stream_index ] = 0x81; break; case 0x250c: byte_stream[ *byte_stream_index ] = 0x82; break; case 0x2510: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x2514: byte_stream[ *byte_stream_index ] = 0x84; break; case 0x2518: byte_stream[ *byte_stream_index ] = 0x85; break; case 0x251c: byte_stream[ *byte_stream_index ] = 0x86; break; case 0x2524: byte_stream[ *byte_stream_index ] = 0x87; break; case 0x252c: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x2534: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x253c: byte_stream[ *byte_stream_index ] = 0x8a; break; case 0x2580: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x2584: byte_stream[ *byte_stream_index ] = 0x8c; break; case 0x2588: byte_stream[ *byte_stream_index ] = 0x8d; break; case 0x258c: byte_stream[ *byte_stream_index ] = 0x8e; break; case 0x2590: byte_stream[ *byte_stream_index ] = 0x8f; break; case 0x2591: byte_stream[ *byte_stream_index ] = 0x90; break; case 0x2592: byte_stream[ *byte_stream_index ] = 0x91; break; case 0x2593: byte_stream[ *byte_stream_index ] = 0x92; break; case 0x25a0: byte_stream[ *byte_stream_index ] = 0x94; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_874: if( ( unicode_character < 0x0080 ) || ( unicode_character == 0x00a0 ) ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x0e00 ) && ( unicode_character < 0x0e60 ) ) { unicode_character -= 0x0e00; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ unicode_character ]; } else if( ( unicode_character >= 0x2018 ) && ( unicode_character < 0x2020 ) ) { unicode_character -= 0x2018; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ unicode_character ]; } else switch( unicode_character ) { case 0x2013: byte_stream[ *byte_stream_index ] = 0x96; break; case 0x2014: byte_stream[ *byte_stream_index ] = 0x97; break; case 0x2022: byte_stream[ *byte_stream_index ] = 0x95; break; case 0x2026: byte_stream[ *byte_stream_index ] = 0x85; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_932: result = libuna_codepage_windows_932_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_936: result = libuna_codepage_windows_936_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_949: result = libuna_codepage_windows_949_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_950: result = libuna_codepage_windows_950_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, byte_stream_index, error ); break; case LIBUNA_CODEPAGE_WINDOWS_1250: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x0120 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x0138 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x0138; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ unicode_character ]; } else if( ( unicode_character >= 0x02d8 ) && ( unicode_character < 0x02e0 ) ) { unicode_character -= 0x02d8; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ unicode_character ]; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else if( ( unicode_character >= 0x2030 ) && ( unicode_character < 0x2040 ) ) { unicode_character -= 0x2030; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ unicode_character ]; } else switch( unicode_character ) { case 0x02c7: byte_stream[ *byte_stream_index ] = 0xa1; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1251: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x0400 ) && ( unicode_character < 0x0460 ) ) { unicode_character -= 0x0400; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ unicode_character ]; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else switch( unicode_character ) { case 0x0490: byte_stream[ *byte_stream_index ] = 0xa5; break; case 0x0491: byte_stream[ *byte_stream_index ] = 0xb4; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x2116: byte_stream[ *byte_stream_index ] = 0xb9; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1252: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x0100 ) ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else switch( unicode_character ) { case 0x0152: byte_stream[ *byte_stream_index ] = 0x8c; break; case 0x0153: byte_stream[ *byte_stream_index ] = 0x9c; break; case 0x0160: byte_stream[ *byte_stream_index ] = 0x8a; break; case 0x0161: byte_stream[ *byte_stream_index ] = 0x9a; break; case 0x0178: byte_stream[ *byte_stream_index ] = 0x9f; break; case 0x017d: byte_stream[ *byte_stream_index ] = 0x8e; break; case 0x017e: byte_stream[ *byte_stream_index ] = 0x9e; break; case 0x0192: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x02c6: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x02dc: byte_stream[ *byte_stream_index ] = 0x98; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1253: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x0380 ) && ( unicode_character < 0x03d0 ) ) { unicode_character -= 0x0380; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ unicode_character ]; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else switch( unicode_character ) { case 0x0192: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1254: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00d0 ) ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00d0 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x00d0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ unicode_character ]; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else switch( unicode_character ) { case 0x011e: byte_stream[ *byte_stream_index ] = 0xd0; break; case 0x011f: byte_stream[ *byte_stream_index ] = 0xf0; break; case 0x0130: byte_stream[ *byte_stream_index ] = 0xdd; break; case 0x0131: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x0152: byte_stream[ *byte_stream_index ] = 0x8c; break; case 0x0153: byte_stream[ *byte_stream_index ] = 0x9c; break; case 0x015e: byte_stream[ *byte_stream_index ] = 0xde; break; case 0x015f: byte_stream[ *byte_stream_index ] = 0xfe; break; case 0x0160: byte_stream[ *byte_stream_index ] = 0x8a; break; case 0x0161: byte_stream[ *byte_stream_index ] = 0x9a; break; case 0x0178: byte_stream[ *byte_stream_index ] = 0x9f; break; case 0x0192: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x02c6: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x02dc: byte_stream[ *byte_stream_index ] = 0x98; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1255: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x05b0 ) && ( unicode_character < 0x05c8 ) ) { unicode_character -= 0x05b0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ unicode_character ]; } else if( ( unicode_character >= 0x05d0 ) && ( unicode_character < 0x05f8 ) ) { unicode_character -= 0x05d0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ unicode_character ]; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else switch( unicode_character ) { case 0x00d7: byte_stream[ *byte_stream_index ] = 0xaa; break; case 0x00f7: byte_stream[ *byte_stream_index ] = 0xba; break; case 0x0192: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x02c6: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x02dc: byte_stream[ *byte_stream_index ] = 0x98; break; case 0x200e: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x200f: byte_stream[ *byte_stream_index ] = 0xfe; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20aa: byte_stream[ *byte_stream_index ] = 0xa4; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1256: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x00e0 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x00e0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ unicode_character ]; } else if( ( unicode_character >= 0x0618 ) && ( unicode_character < 0x0658 ) ) { unicode_character -= 0x0618; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ unicode_character ]; } else if( ( unicode_character >= 0x2008 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2008; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ unicode_character ]; } else switch( unicode_character ) { case 0x00d7: byte_stream[ *byte_stream_index ] = 0xd7; break; case 0x0152: byte_stream[ *byte_stream_index ] = 0x8c; break; case 0x0153: byte_stream[ *byte_stream_index ] = 0x9c; break; case 0x0192: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x02c6: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x060c: byte_stream[ *byte_stream_index ] = 0xa1; break; case 0x0679: byte_stream[ *byte_stream_index ] = 0x8a; break; case 0x067e: byte_stream[ *byte_stream_index ] = 0x81; break; case 0x0686: byte_stream[ *byte_stream_index ] = 0x8d; break; case 0x0688: byte_stream[ *byte_stream_index ] = 0x8f; break; case 0x0691: byte_stream[ *byte_stream_index ] = 0x9a; break; case 0x0698: byte_stream[ *byte_stream_index ] = 0x8e; break; case 0x06a9: byte_stream[ *byte_stream_index ] = 0x98; break; case 0x06af: byte_stream[ *byte_stream_index ] = 0x90; break; case 0x06ba: byte_stream[ *byte_stream_index ] = 0x9f; break; case 0x06be: byte_stream[ *byte_stream_index ] = 0xaa; break; case 0x06c1: byte_stream[ *byte_stream_index ] = 0xc0; break; case 0x06d2: byte_stream[ *byte_stream_index ] = 0xff; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1257: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x0180 ) ) { unicode_character -= 0x00a0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else switch( unicode_character ) { case 0x02c7: byte_stream[ *byte_stream_index ] = 0x8e; break; case 0x02d9: byte_stream[ *byte_stream_index ] = 0xff; break; case 0x02db: byte_stream[ *byte_stream_index ] = 0x9e; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; case LIBUNA_CODEPAGE_WINDOWS_1258: if( unicode_character < 0x0080 ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) { byte_stream[ *byte_stream_index ] = (uint8_t) unicode_character; } else if( ( unicode_character >= 0x00c0 ) && ( unicode_character < 0x0108 ) ) { unicode_character -= 0x00c0; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ unicode_character ]; } else if( ( unicode_character >= 0x2010 ) && ( unicode_character < 0x2028 ) ) { unicode_character -= 0x2010; byte_stream[ *byte_stream_index ] = libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ unicode_character ]; } else switch( unicode_character ) { case 0x0110: byte_stream[ *byte_stream_index ] = 0xd0; break; case 0x0111: byte_stream[ *byte_stream_index ] = 0xf0; break; case 0x0152: byte_stream[ *byte_stream_index ] = 0x8c; break; case 0x0153: byte_stream[ *byte_stream_index ] = 0x9c; break; case 0x0178: byte_stream[ *byte_stream_index ] = 0x9f; break; case 0x0192: byte_stream[ *byte_stream_index ] = 0x83; break; case 0x01a0: byte_stream[ *byte_stream_index ] = 0xd5; break; case 0x01a1: byte_stream[ *byte_stream_index ] = 0xf5; break; case 0x01af: byte_stream[ *byte_stream_index ] = 0xdd; break; case 0x01b0: byte_stream[ *byte_stream_index ] = 0xfd; break; case 0x02c6: byte_stream[ *byte_stream_index ] = 0x88; break; case 0x02dc: byte_stream[ *byte_stream_index ] = 0x98; break; case 0x0300: byte_stream[ *byte_stream_index ] = 0xcc; break; case 0x0301: byte_stream[ *byte_stream_index ] = 0xec; break; case 0x0303: byte_stream[ *byte_stream_index ] = 0xde; break; case 0x0309: byte_stream[ *byte_stream_index ] = 0xd2; break; case 0x0323: byte_stream[ *byte_stream_index ] = 0xf2; break; case 0x2030: byte_stream[ *byte_stream_index ] = 0x89; break; case 0x2039: byte_stream[ *byte_stream_index ] = 0x8b; break; case 0x203a: byte_stream[ *byte_stream_index ] = 0x9b; break; case 0x20ab: byte_stream[ *byte_stream_index ] = 0xfe; break; case 0x20ac: byte_stream[ *byte_stream_index ] = 0x80; break; case 0x2122: byte_stream[ *byte_stream_index ] = 0x99; break; default: byte_stream[ *byte_stream_index ] = 0x1a; break; } *byte_stream_index += 1; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported codepage: %d.", function, codepage ); return( -1 ); } if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy Unicode character to byte stream.", function ); return( -1 ); } return( 1 ); } /* Determines the size of an UTF-7 stream character from an Unicode character * Adds the size to the UTF-7 stream character size value * Returns 1 if successful or -1 on error */ int libuna_unicode_character_size_to_utf7_stream( libuna_unicode_character_t unicode_character, size_t *utf7_stream_character_size, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_size_to_utf7_stream"; libuna_utf16_character_t utf16_surrogate = 0; size_t safe_utf7_stream_character_size = 0; uint32_t base64_triplet = 0; uint32_t safe_utf7_stream_base64_data = 0; uint8_t base64_encode_character = 0; uint8_t byte_bit_shift = 0; uint8_t current_byte = 0; uint8_t number_of_bytes = 0; if( utf7_stream_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream character size.", function ); return( -1 ); } if( utf7_stream_base64_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream base64 data.", function ); return( -1 ); } safe_utf7_stream_character_size = *utf7_stream_character_size; safe_utf7_stream_base64_data = *utf7_stream_base64_data; /* Determine if the Unicode character is valid */ if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) { unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } /* The + character must be escaped */ if( unicode_character == (libuna_unicode_character_t) '+' ) { } /* Allow for the end of string character */ else if( unicode_character == 0 ) { } else if( ( unicode_character >= 256 ) || ( libuna_unicode_character_utf7_valid_directly_encoded_character[ (uint8_t) unicode_character ] == 0 ) ) { base64_encode_character = 1; } if( base64_encode_character == 0 ) { if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { safe_utf7_stream_base64_data = 0; } safe_utf7_stream_character_size += 1; /* The + character must be escaped */ if( unicode_character == (libuna_unicode_character_t) '+' ) { safe_utf7_stream_character_size += 1; } } else { /* Escape the base64 encoded characters with a + */ if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) { safe_utf7_stream_character_size += 1; } /* Otherwise continue the previously base64 encoded characters */ else { base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; if( number_of_bytes > 0 ) { if( safe_utf7_stream_character_size < (size_t) ( number_of_bytes + 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid UTF-7 stream character size value out of bounds.", function ); return( -1 ); } /* Correct the size for the last partial base64 stream */ safe_utf7_stream_character_size -= number_of_bytes + 1; } if( safe_utf7_stream_character_size < 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid UTF-7 stream character size value out of bounds.", function ); return( -1 ); } /* Correct the size for the base64 stream termination character */ safe_utf7_stream_character_size -= 1; } safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { unicode_character -= 0x010000; utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( ( utf16_surrogate >> 8 ) & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { safe_utf7_stream_character_size += 4; number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( utf16_surrogate & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { safe_utf7_stream_character_size += 4; number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } unicode_character = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); } byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( ( unicode_character >> 8 ) & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { safe_utf7_stream_character_size += 4; number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( unicode_character & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { safe_utf7_stream_character_size += 4; number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } /* Terminate the base64 encoded characters */ if( number_of_bytes > 0 ) { safe_utf7_stream_character_size += number_of_bytes + 1; } safe_utf7_stream_character_size += 1; } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; safe_utf7_stream_base64_data |= (uint32_t) current_byte << 28; safe_utf7_stream_base64_data |= (uint32_t) number_of_bytes << 24; safe_utf7_stream_base64_data |= base64_triplet & 0x00ffffff; } *utf7_stream_character_size = safe_utf7_stream_character_size; *utf7_stream_base64_data = safe_utf7_stream_base64_data; return( 1 ); } /* Copies an Unicode character from an UTF-7 stream * The bits of the base64 data contain: * 0 - 23 the base64 triplet * 24 - 25 the number of bytes in the triplet * 26 - 27 unused * 28 - 29 the current byte * 30 unused * 31 flag to indicate the current UTF-7 characters are (modified) base64 encoded * * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_from_utf7_stream( libuna_unicode_character_t *unicode_character, const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf7_stream_index, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_from_utf7_stream"; libuna_utf16_character_t utf16_surrogate = 0; size_t safe_utf7_stream_index = 0; uint32_t base64_triplet = 0; uint32_t safe_utf7_stream_base64_data = 0; uint8_t byte_bit_shift = 0; uint8_t current_byte = 0; uint8_t number_of_bytes = 0; uint8_t padding_size = 0; uint8_t utf7_character_value = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream index.", function ); return( -1 ); } if( *utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-7 stream too small.", function ); return( -1 ); } if( utf7_stream_base64_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 base64 data.", function ); return( -1 ); } safe_utf7_stream_index = *utf7_stream_index; safe_utf7_stream_base64_data = *utf7_stream_base64_data; if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; if( current_byte >= number_of_bytes ) { if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid UTF-7 stream character size value out of bounds.", function ); return( -1 ); } utf7_character_value = utf7_stream[ safe_utf7_stream_index ]; /* Any character not in the modified base64 alphabet terminates the base64 encoded sequence */ if( libuna_unicode_character_utf7_valid_base64_character[ utf7_character_value ] == 0 ) { safe_utf7_stream_base64_data = 0; } } } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) { if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid UTF-7 stream character size value out of bounds.", function ); return( -1 ); } utf7_character_value = utf7_stream[ safe_utf7_stream_index ]; /* Determine if the character is modified base64 encoded * or a + character */ if( utf7_character_value == (uint8_t) '+' ) { if( ( safe_utf7_stream_index + 1 ) >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid UTF-7 stream character size value out of bounds.", function ); return( -1 ); } if( utf7_stream[ safe_utf7_stream_index + 1 ] != (uint8_t) '-' ) { safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; safe_utf7_stream_index++; } } /* Allow for the end of string character */ else if( utf7_character_value == 0 ) { } else if( libuna_unicode_character_utf7_valid_directly_encoded_character[ utf7_character_value ] == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid directly encoded UTF-7 character byte: 0x%02" PRIx8 ".", function, utf7_character_value ); return( -1 ); } } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) { *unicode_character = utf7_stream[ safe_utf7_stream_index++ ]; if( ( *unicode_character == (libuna_unicode_character_t) '+' ) && ( utf7_stream[ safe_utf7_stream_index ] == (uint8_t) '-' ) ) { safe_utf7_stream_index++; } } else if( ( number_of_bytes == 0 ) || ( current_byte >= number_of_bytes ) ) { if( libuna_base64_triplet_copy_from_base64_stream( &base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, &padding_size, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy base64 encoded UTF-7 characters.", function ); return( -1 ); } if( padding_size > 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported padding in base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 3 - padding_size; current_byte = 0; } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { byte_bit_shift = 16 - ( current_byte * 8 ); *unicode_character = ( ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL ) << 8; current_byte += 1; if( current_byte >= number_of_bytes ) { if( libuna_base64_triplet_copy_from_base64_stream( &base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, &padding_size, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy base64 encoded UTF-7 characters.", function ); return( -1 ); } if( padding_size > 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported padding in base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 3 - padding_size; current_byte = 0; } byte_bit_shift = 16 - ( current_byte * 8 ); *unicode_character += ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL; current_byte += 1; if( ( *unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) && ( *unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) { if( current_byte >= number_of_bytes ) { if( libuna_base64_triplet_copy_from_base64_stream( &base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, &padding_size, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy base64 encoded UTF-7 characters.", function ); return( -1 ); } if( padding_size > 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported padding in base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 3 - padding_size; current_byte = 0; } byte_bit_shift = 16 - ( current_byte * 8 ); utf16_surrogate = ( ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL ) << 8; current_byte += 1; if( current_byte >= number_of_bytes ) { if( libuna_base64_triplet_copy_from_base64_stream( &base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, &padding_size, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve base64 encoded UTF-7 characters.", function ); return( -1 ); } if( padding_size > 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported padding in base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 3 - padding_size; current_byte = 0; } byte_bit_shift = 16 - ( current_byte * 8 ); utf16_surrogate += ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL; current_byte += 1; /* Determine if the UTF-16 character is within the low surrogate range */ if( ( utf16_surrogate >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( utf16_surrogate <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { *unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; *unicode_character <<= 10; *unicode_character += utf16_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END; *unicode_character += 0x010000; } else { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } } if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-7 stream too small.", function ); return( -1 ); } if( ( current_byte >= number_of_bytes ) && ( utf7_stream[ safe_utf7_stream_index ] == (uint8_t) '-' ) ) { safe_utf7_stream_base64_data = 0; safe_utf7_stream_index++; } } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; safe_utf7_stream_base64_data |= (uint32_t) current_byte << 28; safe_utf7_stream_base64_data |= (uint32_t) number_of_bytes << 24; safe_utf7_stream_base64_data |= base64_triplet & 0x00ffffff; } *utf7_stream_index = safe_utf7_stream_index; *utf7_stream_base64_data = safe_utf7_stream_base64_data; return( 1 ); } /* Copies an Unicode character into a UTF-7 stream * The bits of the base64 data contain: * 0 - 23 the base64 triplet * 24 - 25 the number of bytes in the triplet * 26 - 27 unused * 28 - 29 the current byte * 30 unused * 31 flag to indicate the current UTF-7 characters are (modified) base64 encoded * * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_to_utf7_stream( libuna_unicode_character_t unicode_character, uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf7_stream_index, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_to_utf7_stream"; libuna_utf16_character_t utf16_surrogate = 0; size_t safe_utf7_stream_index = 0; uint32_t base64_triplet = 0; uint32_t safe_utf7_stream_base64_data = 0; uint8_t base64_encode_character = 0; uint8_t byte_bit_shift = 0; uint8_t current_byte = 0; uint8_t number_of_bytes = 0; if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream index.", function ); return( -1 ); } if( utf7_stream_base64_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream base64 data.", function ); return( -1 ); } safe_utf7_stream_index = *utf7_stream_index; safe_utf7_stream_base64_data = *utf7_stream_base64_data; /* Determine if the Unicode character is valid */ if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) { unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } /* A-Z is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-Z */ if( ( unicode_character >= 0x41 ) && ( unicode_character <= 0x49 ) ) { unicode_character = ( unicode_character - 0x41 ) + (libuna_unicode_character_t) 'A'; } else if( ( unicode_character >= 0x4a ) && ( unicode_character <= 0x52 ) ) { unicode_character = ( unicode_character - 0x4a ) + (libuna_unicode_character_t) 'J'; } else if( ( unicode_character >= 0x53 ) && ( unicode_character <= 0x5a ) ) { unicode_character = ( unicode_character - 0x53 ) + (libuna_unicode_character_t) 'S'; } /* a-z is not a continous range on an EBCDIC based system * it consists of the ranges: a-i, j-r, s-z */ else if( ( unicode_character >= 0x61 ) && ( unicode_character <= 0x69 ) ) { unicode_character = ( unicode_character - 0x61 ) + (libuna_unicode_character_t) 'a'; } else if( ( unicode_character >= 0x6a ) && ( unicode_character <= 0x72 ) ) { unicode_character = ( unicode_character - 0x6a ) + (libuna_unicode_character_t) 'j'; } else if( ( unicode_character >= 0x73 ) && ( unicode_character <= 0x7a ) ) { unicode_character = ( unicode_character - 0x73 ) + (libuna_unicode_character_t) 's'; } /* 0-9 */ else if( ( unicode_character >= 0x30 ) && ( unicode_character <= 0x39 ) ) { unicode_character = ( unicode_character - 0x30 ) + (libuna_unicode_character_t) '0'; } /* The + character must be escaped */ else if( unicode_character == (libuna_unicode_character_t) '+' ) { } /* Allow for the end of string character */ else if( unicode_character == 0 ) { } else if( ( unicode_character >= 256 ) || ( libuna_unicode_character_utf7_valid_directly_encoded_character[ (uint8_t) unicode_character ] == 0 ) ) { base64_encode_character = 1; } if( base64_encode_character == 0 ) { if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { safe_utf7_stream_base64_data = 0; } if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-7 stream too small.", function ); return( -1 ); } utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) unicode_character; /* The + character must be escaped */ if( unicode_character == (libuna_unicode_character_t) '+' ) { if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-7 stream too small.", function ); return( -1 ); } utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '-'; } } else { /* Escape the base64 encoded chracters with a + */ if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) { if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-7 stream too small.", function ); return( -1 ); } utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '+'; } /* Otherwise continue the previously base64 encoded characters */ else { base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; if( number_of_bytes > 0 ) { /* Correct the index for the last partial base64 stream */ safe_utf7_stream_index -= number_of_bytes + 1; } /* Correct the index for the base64 stream termination character */ safe_utf7_stream_index -= 1; } safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { unicode_character -= 0x010000; utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( ( utf16_surrogate >> 8 ) & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { if( libuna_base64_triplet_copy_to_base64_stream( base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, 0, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( utf16_surrogate & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { if( libuna_base64_triplet_copy_to_base64_stream( base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, 0, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } unicode_character = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); } byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( ( unicode_character >> 8 ) & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { if( libuna_base64_triplet_copy_to_base64_stream( base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, 0, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } byte_bit_shift = 16 - ( current_byte * 8 ); base64_triplet += (uint32_t) ( unicode_character & 0xff ) << byte_bit_shift; current_byte += 1; number_of_bytes += 1; if( number_of_bytes == 3 ) { if( libuna_base64_triplet_copy_to_base64_stream( base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, 0, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set base64 encoded UTF-7 characters.", function ); return( -1 ); } number_of_bytes = 0; current_byte = 0; base64_triplet = 0; } /* Terminate the base64 encoded characters */ if( number_of_bytes > 0 ) { if( libuna_base64_triplet_copy_to_base64_stream( base64_triplet, utf7_stream, utf7_stream_size, &safe_utf7_stream_index, 3 - number_of_bytes, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set base64 encoded UTF-7 characters.", function ); return( -1 ); } } if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-7 stream too small.", function ); return( -1 ); } utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '-'; } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; safe_utf7_stream_base64_data |= (uint32_t) current_byte << 28; safe_utf7_stream_base64_data |= (uint32_t) number_of_bytes << 24; safe_utf7_stream_base64_data |= base64_triplet & 0x00ffffff; } *utf7_stream_index = safe_utf7_stream_index; *utf7_stream_base64_data = safe_utf7_stream_base64_data; return( 1 ); } /* Determines the size of an UTF-8 character from an Unicode character * Adds the size to the UTF-8 character size value * Returns 1 if successful or -1 on error */ int libuna_unicode_character_size_to_utf8( libuna_unicode_character_t unicode_character, size_t *utf8_character_size, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_size_to_utf8"; if( utf8_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 character size.", function ); return( -1 ); } if( unicode_character < 0x00000080UL ) { *utf8_character_size += 1; } else if( unicode_character < 0x00000800UL ) { *utf8_character_size += 2; } else if( unicode_character < 0x00010000UL ) { *utf8_character_size += 3; } else if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) { *utf8_character_size += 3; } else { *utf8_character_size += 4; } /* If UTF-8 USC support is needed it should be implemented in * utf8_usc or something, but for now leave this here as a reminder else if( unicode_character < 0x010000 ) { *utf8_character_size += 3; } else if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) { *utf8_character_size += 2; } else if( unicode_character < 0x0200000 ) { *utf8_character_size += 4; } else if( unicode_character < 0x0400000 ) { *utf8_character_size += 5; } else { *utf8_character_size += 6; } */ return( 1 ); } /* Copies an Unicode character from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_from_utf8( libuna_unicode_character_t *unicode_character, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_from_utf8"; uint8_t utf8_character_additional_bytes = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } /* Determine the number of additional bytes of the UTF-8 character */ if( utf8_string[ *utf8_string_index ] < 0xc0 ) { utf8_character_additional_bytes = 0; } else if( utf8_string[ *utf8_string_index ] < 0xe0 ) { utf8_character_additional_bytes = 1; } else if( utf8_string[ *utf8_string_index ] < 0xf0 ) { utf8_character_additional_bytes = 2; } else if( utf8_string[ *utf8_string_index ] < 0xf8 ) { utf8_character_additional_bytes = 3; } else if( utf8_string[ *utf8_string_index ] < 0xfc ) { utf8_character_additional_bytes = 4; } else { utf8_character_additional_bytes = 5; } if( ( *utf8_string_index + utf8_character_additional_bytes + 1 ) > utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-8 character bytes.", function ); return( -1 ); } /* Determine the UTF-8 character and make sure it is valid * Unicode limits the UTF-8 character to consist of a maximum of 4 bytes * while ISO 10646 Universal Character Set (UCS) allows up to 6 bytes */ if( utf8_string[ *utf8_string_index ] > 0xf4 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index ] ); return( -1 ); } *unicode_character = utf8_string[ *utf8_string_index ]; if( utf8_character_additional_bytes == 0 ) { if( ( utf8_string[ *utf8_string_index ] >= 0x80 ) && ( utf8_string[ *utf8_string_index ] < 0xc2 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index ] ); return( -1 ); } } if( utf8_character_additional_bytes >= 1 ) { if( utf8_string[ *utf8_string_index + 1 ] > 0xbf ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 1 ] ); return( -1 ); } if( ( utf8_string[ *utf8_string_index ] == 0xe0 ) && ( utf8_string[ *utf8_string_index + 1 ] < 0xa0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 1 ] ); return( -1 ); } else if( ( utf8_string[ *utf8_string_index ] == 0xed ) && ( utf8_string[ *utf8_string_index + 1 ] > 0x9f ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 1 ] ); return( -1 ); } else if( ( utf8_string[ *utf8_string_index ] == 0xf0 ) && ( utf8_string[ *utf8_string_index + 1 ] < 0x90 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 1 ] ); return( -1 ); } else if( ( utf8_string[ *utf8_string_index ] == 0xf4 ) && ( utf8_string[ *utf8_string_index + 1 ] > 0x8f ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 1 ] ); return( -1 ); } else if( utf8_string[ *utf8_string_index + 1 ] < 0x80 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 1 ] ); return( -1 ); } *unicode_character <<= 6; *unicode_character += utf8_string[ *utf8_string_index + 1 ]; if( utf8_character_additional_bytes == 1 ) { *unicode_character -= 0x03080; } } if( utf8_character_additional_bytes >= 2 ) { if( ( utf8_string[ *utf8_string_index + 2 ] < 0x80 ) || ( utf8_string[ *utf8_string_index + 2 ] > 0xbf ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 3rd UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 2 ] ); return( -1 ); } *unicode_character <<= 6; *unicode_character += utf8_string[ *utf8_string_index + 2 ]; if( utf8_character_additional_bytes == 2 ) { *unicode_character -= 0x0e2080; } } if( utf8_character_additional_bytes >= 3 ) { if( ( utf8_string[ *utf8_string_index + 3 ] < 0x80 ) || ( utf8_string[ *utf8_string_index + 3 ] > 0xbf ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 4th UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 3 ] ); return( -1 ); } *unicode_character <<= 6; *unicode_character += utf8_string[ *utf8_string_index + 3 ]; if( utf8_character_additional_bytes == 3 ) { *unicode_character -= 0x03c82080; } } if( utf8_character_additional_bytes >= 4 ) { if( ( utf8_string[ *utf8_string_index + 4 ] < 0x80 ) || ( utf8_string[ *utf8_string_index + 4 ] > 0xbf ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 5th UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 4 ] ); return( -1 ); } *unicode_character <<= 6; *unicode_character += utf8_string[ *utf8_string_index + 4 ]; if( utf8_character_additional_bytes == 4 ) { *unicode_character -= 0x0fa082080; } } if( utf8_character_additional_bytes == 5 ) { if( ( utf8_string[ *utf8_string_index + 5 ] < 0x80 ) || ( utf8_string[ *utf8_string_index + 5 ] > 0xbf ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 6th UTF-8 character byte: 0x%02" PRIx8 ".", function, utf8_string[ *utf8_string_index + 5 ] ); return( -1 ); } *unicode_character <<= 6; *unicode_character += utf8_string[ *utf8_string_index + 5 ]; *unicode_character -= 0x082082080; } /* Determine if the Unicode character is valid */ if( *unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } *utf8_string_index += 1 + utf8_character_additional_bytes; return( 1 ); } /* Copies an Unicode character into a UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_to_utf8( libuna_unicode_character_t unicode_character, libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_to_utf8"; uint8_t utf8_character_additional_bytes = 0; uint8_t utf8_character_iterator = 0; uint8_t utf8_first_character_mark = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } /* Determine if the Unicode character is valid */ if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) { unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } /* Determine how many UTF-8 character bytes are required */ if( unicode_character < 0x080 ) { utf8_character_additional_bytes = 0; utf8_first_character_mark = 0; } else if( unicode_character < 0x0800 ) { utf8_character_additional_bytes = 1; utf8_first_character_mark = 0x0c0; } else if( unicode_character < 0x010000 ) { utf8_character_additional_bytes = 2; utf8_first_character_mark = 0x0e0; } else if( unicode_character < 0x0200000 ) { utf8_character_additional_bytes = 3; utf8_first_character_mark = 0x0f0; } else if( unicode_character < 0x0400000 ) { utf8_character_additional_bytes = 4; utf8_first_character_mark = 0x0f8; } else { utf8_character_additional_bytes = 5; utf8_first_character_mark = 0x0fc; } /* Convert Unicode character into UTF-8 character bytes */ if( ( *utf8_string_index + utf8_character_additional_bytes ) >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } for( utf8_character_iterator = utf8_character_additional_bytes; utf8_character_iterator > 0; utf8_character_iterator-- ) { utf8_string[ *utf8_string_index + utf8_character_iterator ] = (libuna_utf8_character_t) ( ( unicode_character & 0x0bf ) | 0x080 ); unicode_character >>= 6; } utf8_string[ *utf8_string_index ] = (libuna_utf8_character_t) ( unicode_character | utf8_first_character_mark ); *utf8_string_index += 1 + utf8_character_additional_bytes; return( 1 ); } /* Determines the size of an UTF-16 character from an Unicode character * Adds the size to the UTF-16 character size value * Returns 1 if successful or -1 on error */ int libuna_unicode_character_size_to_utf16( libuna_unicode_character_t unicode_character, size_t *utf16_character_size, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_size_to_utf16"; if( utf16_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 character size.", function ); return( -1 ); } if( ( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) && ( unicode_character <= LIBUNA_UTF16_CHARACTER_MAX ) ) { *utf16_character_size += 2; } else { *utf16_character_size += 1; } return( 1 ); } /* Copies an Unicode character from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_from_utf16( libuna_unicode_character_t *unicode_character, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_from_utf16"; libuna_utf16_character_t utf16_surrogate = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } *unicode_character = utf16_string[ *utf16_string_index ]; *utf16_string_index += 1; /* Determine if the UTF-16 character is within the high surrogate range */ if( ( *unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) && ( *unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: missing surrogate UTF-16 character bytes.", function ); return( -1 ); } utf16_surrogate = utf16_string[ *utf16_string_index ]; *utf16_string_index += 1; /* Determine if the UTF-16 character is within the low surrogate range */ if( ( utf16_surrogate >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( utf16_surrogate <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { *unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; *unicode_character <<= 10; *unicode_character += utf16_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END; *unicode_character += 0x010000; } else { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } } /* Determine if the Unicode character is valid */ else if( ( *unicode_character >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( *unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } return( 1 ); } /* Copies an Unicode character into a UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_to_utf16( libuna_unicode_character_t unicode_character, libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_to_utf16"; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } /* Determine if the Unicode character is valid */ if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) || ( unicode_character > LIBUNA_UTF16_CHARACTER_MAX ) ) { unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } if( unicode_character <= LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { utf16_string[ *utf16_string_index ] = (libuna_utf16_character_t) unicode_character; *utf16_string_index += 1; } else { if( ( *utf16_string_index + 1 ) >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } unicode_character -= 0x010000; utf16_string[ *utf16_string_index ] = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); utf16_string[ *utf16_string_index + 1 ] = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); *utf16_string_index += 2; } return( 1 ); } /* Copies an Unicode character from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_from_utf16_stream( libuna_unicode_character_t *unicode_character, const uint8_t *utf16_stream, size_t utf16_stream_size, size_t *utf16_stream_index, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_from_utf16_stream"; libuna_utf16_character_t utf16_surrogate = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream index.", function ); return( -1 ); } if( ( *utf16_stream_index + 1 ) >= utf16_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 stream too small.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBUNA_ENDIAN_BIG ) { *unicode_character = utf16_stream[ *utf16_stream_index ]; *unicode_character <<= 8; *unicode_character += utf16_stream[ *utf16_stream_index + 1 ]; } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { *unicode_character = utf16_stream[ *utf16_stream_index + 1 ]; *unicode_character <<= 8; *unicode_character += utf16_stream[ *utf16_stream_index ]; } *utf16_stream_index += 2; /* Determine if the UTF-16 character is within the high surrogate range */ if( ( *unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) && ( *unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) { if( ( *utf16_stream_index + 1 ) >= utf16_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: missing surrogate UTF-16 character bytes.", function ); return( -1 ); } if( byte_order == LIBUNA_ENDIAN_BIG ) { utf16_surrogate = utf16_stream[ *utf16_stream_index ]; utf16_surrogate <<= 8; utf16_surrogate += utf16_stream[ *utf16_stream_index + 1 ]; } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { utf16_surrogate = utf16_stream[ *utf16_stream_index + 1 ]; utf16_surrogate <<= 8; utf16_surrogate += utf16_stream[ *utf16_stream_index ]; } *utf16_stream_index += 2; /* Determine if the UTF-16 character is within the low surrogate range */ if( ( utf16_surrogate >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( utf16_surrogate <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { *unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; *unicode_character <<= 10; *unicode_character += utf16_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END; *unicode_character += 0x010000; } else { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } } /* Determine if the Unicode character is valid */ else if( ( *unicode_character >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( *unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } return( 1 ); } /* Copies an Unicode character to an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_to_utf16_stream( libuna_unicode_character_t unicode_character, uint8_t *utf16_stream, size_t utf16_stream_size, size_t *utf16_stream_index, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_to_utf16_stream"; libuna_utf16_character_t utf16_surrogate = 0; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream index.", function ); return( -1 ); } if( ( *utf16_stream_index + 1 ) >= utf16_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 stream too small.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } /* Determine if the Unicode character is valid */ if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) || ( unicode_character > LIBUNA_UTF16_CHARACTER_MAX ) ) { unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } if( unicode_character <= LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { if( byte_order == LIBUNA_ENDIAN_BIG ) { utf16_stream[ *utf16_stream_index + 1 ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf16_stream[ *utf16_stream_index ] = (uint8_t) ( unicode_character & 0xff ); } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { utf16_stream[ *utf16_stream_index ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf16_stream[ *utf16_stream_index + 1 ] = (uint8_t) ( unicode_character & 0xff ); } *utf16_stream_index += 2; } else { if( ( *utf16_stream_index + 3 ) >= utf16_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 stream too small.", function ); return( -1 ); } unicode_character -= 0x010000; utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); if( byte_order == LIBUNA_ENDIAN_BIG ) { utf16_stream[ *utf16_stream_index + 1 ] = (uint8_t) ( utf16_surrogate & 0xff ); utf16_surrogate >>= 8; utf16_stream[ *utf16_stream_index ] = (uint8_t) ( utf16_surrogate & 0xff ); } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { utf16_stream[ *utf16_stream_index ] = (uint8_t) ( utf16_surrogate & 0xff ); utf16_surrogate >>= 8; utf16_stream[ *utf16_stream_index + 1 ] = (uint8_t) ( utf16_surrogate & 0xff ); } *utf16_stream_index += 2; utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); if( byte_order == LIBUNA_ENDIAN_BIG ) { utf16_stream[ *utf16_stream_index + 1 ] = (uint8_t) ( utf16_surrogate & 0xff ); utf16_surrogate >>= 8; utf16_stream[ *utf16_stream_index ] = (uint8_t) ( utf16_surrogate & 0xff ); } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { utf16_stream[ *utf16_stream_index ] = (uint8_t) ( utf16_surrogate & 0xff ); utf16_surrogate >>= 8; utf16_stream[ *utf16_stream_index + 1 ] = (uint8_t) ( utf16_surrogate & 0xff ); } *utf16_stream_index += 2; } return( 1 ); } /* Determines the size of an UTF-32 character from an Unicode character * Adds the size to the UTF-32 character size value * Returns 1 if successful or -1 on error */ int libuna_unicode_character_size_to_utf32( libuna_unicode_character_t unicode_character LIBUNA_ATTRIBUTE_UNUSED, size_t *utf32_character_size, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_size_to_utf32"; LIBUNA_UNREFERENCED_PARAMETER( unicode_character ) if( utf32_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 character size.", function ); return( -1 ); } *utf32_character_size += 1; return( 1 ); } /* Copies an Unicode character from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_from_utf32( libuna_unicode_character_t *unicode_character, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_from_utf32"; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } /* Determine if the Unicode character is valid */ if( ( utf32_string[ *utf32_string_index ] >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( utf32_string[ *utf32_string_index ] <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } else { *unicode_character = utf32_string[ *utf32_string_index ]; } *utf32_string_index += 1; return( 1 ); } /* Copies an Unicode character into a UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_to_utf32( libuna_unicode_character_t unicode_character, libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_string_index, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_to_utf32"; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string index.", function ); return( -1 ); } if( *utf32_string_index >= utf32_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 string too small.", function ); return( -1 ); } /* Determine if the Unicode character is valid */ if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) || ( unicode_character > LIBUNA_UTF32_CHARACTER_MAX ) ) { utf32_string[ *utf32_string_index ] = (libuna_utf32_character_t) LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } else { utf32_string[ *utf32_string_index ] = (libuna_utf32_character_t) unicode_character; } *utf32_string_index += 1; return( 1 ); } /* Copies an Unicode character from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_from_utf32_stream( libuna_unicode_character_t *unicode_character, const uint8_t *utf32_stream, size_t utf32_stream_size, size_t *utf32_stream_index, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_from_utf32_stream"; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream index.", function ); return( -1 ); } if( ( *utf32_stream_index + 3 ) >= utf32_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 stream too small.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBUNA_ENDIAN_BIG ) { *unicode_character = utf32_stream[ *utf32_stream_index ]; *unicode_character <<= 8; *unicode_character += utf32_stream[ *utf32_stream_index + 1 ]; *unicode_character <<= 8; *unicode_character += utf32_stream[ *utf32_stream_index + 2 ]; *unicode_character <<= 8; *unicode_character += utf32_stream[ *utf32_stream_index + 3 ]; } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { *unicode_character = utf32_stream[ *utf32_stream_index + 3 ]; *unicode_character <<= 8; *unicode_character += utf32_stream[ *utf32_stream_index + 2 ]; *unicode_character <<= 8; *unicode_character += utf32_stream[ *utf32_stream_index + 1 ]; *unicode_character <<= 8; *unicode_character += utf32_stream[ *utf32_stream_index ]; } /* Determine if the Unicode character is valid */ if( ( *unicode_character >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( *unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { *unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } *utf32_stream_index += 4; return( 1 ); } /* Copies an Unicode character to an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_unicode_character_copy_to_utf32_stream( libuna_unicode_character_t unicode_character, uint8_t *utf32_stream, size_t utf32_stream_size, size_t *utf32_stream_index, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_unicode_character_copy_to_utf32_stream"; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream index.", function ); return( -1 ); } if( ( *utf32_stream_index + 3 ) >= utf32_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-32 stream too small.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } /* Determine if the Unicode character is valid */ if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) || ( unicode_character > LIBUNA_UTF32_CHARACTER_MAX ) ) { unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; } if( byte_order == LIBUNA_ENDIAN_BIG ) { utf32_stream[ *utf32_stream_index + 3 ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf32_stream[ *utf32_stream_index + 2 ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf32_stream[ *utf32_stream_index + 1 ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf32_stream[ *utf32_stream_index ] = (uint8_t) ( unicode_character & 0xff ); } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { utf32_stream[ *utf32_stream_index ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf32_stream[ *utf32_stream_index + 1 ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf32_stream[ *utf32_stream_index + 2 ] = (uint8_t) ( unicode_character & 0xff ); unicode_character >>= 8; utf32_stream[ *utf32_stream_index + 3 ] = (uint8_t) ( unicode_character & 0xff ); } *utf32_stream_index += 4; return( 1 ); } libfsapfs-20190210/libuna/libuna_utf8_string.c0000664000175000017500000023522613430101233023247 0ustar00lordyestalordyesta00000000000000/* * UTF-8 string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_utf8_string.h" /* Determines the size of an UTF-8 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, int codepage, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_byte_stream"; size_t byte_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string size.", function ); return( -1 ); } *utf8_string_size = 0; if( byte_stream_size == 0 ) { return( 1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf8_string_size += 1; } return( 1 ); } /* Copies an UTF-8 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_copy_from_byte_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_copy_from_byte_stream"; size_t utf8_string_index = 0; if( libuna_utf8_string_with_index_copy_from_byte_stream( utf8_string, utf8_string_size, &utf8_string_index, byte_stream, byte_stream_size, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy byte stream to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-8 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_with_index_copy_from_byte_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_byte_stream"; size_t byte_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing byte stream value.", function ); return( -1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_string, utf8_string_size, utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } utf8_string[ *utf8_string_index ] = 0; *utf8_string_index += 1; } return( 1 ); } /* Compares an UTF-8 string with a byte stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf8_string_compare_with_byte_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_byte_stream"; size_t byte_stream_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t utf8_unicode_character = 0; libuna_unicode_character_t byte_stream_unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing byte stream value.", function ); return( -1 ); } if( utf8_string[ utf8_string_size - 1 ] == 0 ) { utf8_string_size -= 1; } /* Check if the byte stream is terminated with zero bytes */ if( byte_stream[ byte_stream_size - 1 ] == 0 ) { byte_stream_size -= 1; } while( ( utf8_string_index < utf8_string_size ) && ( byte_stream_index < byte_stream_size ) ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &byte_stream_unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } if( utf8_unicode_character < byte_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > byte_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf8_string_index < utf8_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( byte_stream_index < byte_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-8 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_size_from_utf7_stream( const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_utf7_stream"; size_t utf7_stream_index = 0; libuna_unicode_character_t unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string size.", function ); return( -1 ); } *utf8_string_size = 0; if( utf7_stream_size == 0 ) { return( 1 ); } while( utf7_stream_index < utf7_stream_size ) { /* Convert the UTF-7 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf8_string_size += 1; } return( 1 ); } /* Copies an UTF-8 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_copy_from_utf7_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_copy_from_utf7_stream"; size_t utf8_string_index = 0; if( libuna_utf8_string_with_index_copy_from_utf7_stream( utf8_string, utf8_string_size, &utf8_string_index, utf7_stream, utf7_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to UTF-7 stream to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-8 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_with_index_copy_from_utf7_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_utf7_stream"; size_t utf7_stream_index = 0; libuna_unicode_character_t unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-7 stream value.", function ); return( -1 ); } while( utf7_stream_index < utf7_stream_size ) { /* Convert the UTF-7 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_string, utf8_string_size, utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } utf8_string[ *utf8_string_index ] = 0; *utf8_string_index += 1; } return( 1 ); } /* Compares an UTF-8 string with an UTF-7 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf8_string_compare_with_utf7_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_utf7_stream"; size_t utf7_stream_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t utf8_unicode_character = 0; libuna_unicode_character_t utf7_stream_unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-7 stream value.", function ); return( -1 ); } if( utf8_string[ utf8_string_size - 1 ] == 0 ) { utf8_string_size -= 1; } /* Check if the UTF-7 stream is terminated with zero bytes */ if( utf7_stream[ utf7_stream_size - 1 ] == 0 ) { utf7_stream_size -= 1; } while( ( utf8_string_index < utf8_string_size ) && ( utf7_stream_index < utf7_stream_size ) ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the UTF-7 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &utf7_stream_unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } if( utf8_unicode_character < utf7_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > utf7_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf8_string_index < utf8_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf7_stream_index < utf7_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-8 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_size_from_utf8_stream( const uint8_t *utf8_stream, size_t utf8_stream_size, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_utf8_stream"; size_t utf8_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string size.", function ); return( -1 ); } *utf8_string_size = 0; if( utf8_stream_size == 0 ) { return( 1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } while( utf8_stream_index < utf8_stream_size ) { /* Convert the UTF-8 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf8_string_size += 1; } return( 1 ); } /* Copies an UTF-8 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_copy_from_utf8_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_copy_from_utf8_stream"; size_t utf8_string_index = 0; if( libuna_utf8_string_with_index_copy_from_utf8_stream( utf8_string, utf8_string_size, &utf8_string_index, utf8_stream, utf8_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to UTF-8 stream to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-8 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_with_index_copy_from_utf8_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_utf8_stream"; size_t utf8_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 stream value.", function ); return( -1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } while( utf8_stream_index < utf8_stream_size ) { /* Convert the UTF-8 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_string, utf8_string_size, utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } utf8_string[ *utf8_string_index ] = 0; *utf8_string_index += 1; } return( 1 ); } /* Compares an UTF-8 string with an UTF-8 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf8_string_compare_with_utf8_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_utf8_stream"; size_t utf8_stream_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t utf8_unicode_character = 0; libuna_unicode_character_t utf8_stream_unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 stream value.", function ); return( -1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } if( utf8_string[ utf8_string_size - 1 ] == 0 ) { utf8_string_size -= 1; } /* Check if the UTF-8 stream is terminated with zero bytes */ if( utf8_stream[ utf8_stream_size - 1 ] == 0 ) { utf8_stream_size -= 1; } while( ( utf8_string_index < utf8_string_size ) && ( utf8_stream_index < utf8_stream_size ) ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_stream_unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } if( utf8_unicode_character < utf8_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > utf8_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf8_string_index < utf8_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf8_stream_index < utf8_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-8 string from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf8_string_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_utf16"; size_t utf16_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string size.", function ); return( -1 ); } *utf8_string_size = 0; if( utf16_string_size == 0 ) { return( 1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf8_string_size += 1; } return( 1 ); } /* Copies an UTF-8 string from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf8_string_copy_from_utf16( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_copy_from_utf16"; size_t utf8_string_index = 0; if( libuna_utf8_string_with_index_copy_from_utf16( utf8_string, utf8_string_size, &utf8_string_index, utf16_string, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-16 string to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-8 string from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf8_string_with_index_copy_from_utf16( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_utf16"; size_t utf16_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-16 string value.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_string, utf8_string_size, utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } utf8_string[ *utf8_string_index ] = 0; *utf8_string_index += 1; } return( 1 ); } /* Compares an UTF-8 string with an UTF-16 string * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf8_string_compare_with_utf16( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_utf16"; size_t utf16_string_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t utf8_unicode_character = 0; libuna_unicode_character_t utf16_unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-16 string value.", function ); return( -1 ); } if( utf8_string[ utf8_string_size - 1 ] == 0 ) { utf8_string_size -= 1; } if( utf16_string[ utf16_string_size - 1 ] == 0 ) { utf16_string_size -= 1; } while( ( utf8_string_index < utf8_string_size ) && ( utf16_string_index < utf16_string_size ) ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } if( utf8_unicode_character < utf16_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > utf16_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf8_string_index < utf8_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf16_string_index < utf16_string_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-8 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_size_from_utf16_stream( const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_utf16_stream"; size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size % 2 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } if( utf8_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string size.", function ); return( -1 ); } *utf8_string_size = 0; if( utf16_stream_size == 0 ) { return( 1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0xfe ) && ( utf16_stream[ 1 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0xff ) && ( utf16_stream[ 1 ] == 0xfe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf8_string_size += 1; } return( 1 ); } /* Copies an UTF-8 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_copy_from_utf16_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_copy_from_utf16_stream"; size_t utf8_string_index = 0; if( libuna_utf8_string_with_index_copy_from_utf16_stream( utf8_string, utf8_string_size, &utf8_string_index, utf16_stream, utf16_stream_size, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-16 stream to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-8 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_with_index_copy_from_utf16_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_utf16_stream"; size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size == 0 ) || ( ( utf16_stream_size % 2 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0xfe ) && ( utf16_stream[ 1 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0xff ) && ( utf16_stream[ 1 ] == 0xfe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_string, utf8_string_size, utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } utf8_string[ *utf8_string_index ] = 0; *utf8_string_index += 1; } return( 1 ); } /* Compares an UTF-8 string with an UTF-16 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf8_string_compare_with_utf16_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_utf16_stream"; size_t utf16_stream_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t utf8_unicode_character = 0; libuna_unicode_character_t utf16_stream_unicode_character = 0; int read_byte_order = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size == 0 ) || ( ( utf16_stream_size % 2 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0xfe ) && ( utf16_stream[ 1 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0xff ) && ( utf16_stream[ 1 ] == 0xfe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf8_string[ utf8_string_size - 1 ] == 0 ) { utf8_string_size -= 1; } /* Check if the UTF-16 stream is terminated with zero bytes */ if( ( utf16_stream[ utf16_stream_size - 2 ] == 0 ) && ( utf16_stream[ utf16_stream_size - 1 ] == 0 ) ) { utf16_stream_size -= 2; } while( ( utf8_string_index < utf8_string_size ) && ( utf16_stream_index < utf16_stream_size ) ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &utf16_stream_unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } if( utf8_unicode_character < utf16_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > utf16_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf8_string_index < utf8_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf16_stream_index < utf16_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-8 string from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf8_string_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_utf32"; size_t utf32_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string size.", function ); return( -1 ); } *utf8_string_size = 0; if( utf32_string_size == 0 ) { return( 1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf8_string_size += 1; } return( 1 ); } /* Copies an UTF-8 string from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf8_string_copy_from_utf32( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_copy_from_utf32"; size_t utf8_string_index = 0; if( libuna_utf8_string_with_index_copy_from_utf32( utf8_string, utf8_string_size, &utf8_string_index, utf32_string, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-32 string to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-8 string from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf8_string_with_index_copy_from_utf32( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_utf32"; size_t utf32_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-32 string value.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_string, utf8_string_size, utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } utf8_string[ *utf8_string_index ] = 0; *utf8_string_index += 1; } return( 1 ); } /* Compares an UTF-8 string with an UTF-32 string * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf8_string_compare_with_utf32( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_utf32"; size_t utf32_string_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t utf8_unicode_character = 0; libuna_unicode_character_t utf32_unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-32 string value.", function ); return( -1 ); } if( utf8_string[ utf8_string_size - 1 ] == 0 ) { utf8_string_size -= 1; } if( utf32_string[ utf32_string_size - 1 ] == 0 ) { utf32_string_size -= 1; } while( ( utf8_string_index < utf8_string_size ) && ( utf32_string_index < utf32_string_size ) ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &utf32_unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } if( utf8_unicode_character < utf32_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > utf32_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf8_string_index < utf8_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf32_string_index < utf32_string_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-8 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_size_from_utf32_stream( const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_utf32_stream"; size_t utf32_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size % 4 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } if( utf8_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string size.", function ); return( -1 ); } *utf8_string_size = 0; if( utf32_stream_size == 0 ) { return( 1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf8_string_size += 1; } return( 1 ); } /* Copies an UTF-8 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_copy_from_utf32_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_copy_from_utf32_stream"; size_t utf8_string_index = 0; if( libuna_utf8_string_with_index_copy_from_utf32_stream( utf8_string, utf8_string_size, &utf8_string_index, utf32_stream, utf32_stream_size, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-32 stream to UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-8 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf8_string_with_index_copy_from_utf32_stream( libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_utf32_stream"; size_t utf32_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string index.", function ); return( -1 ); } if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size == 0 ) || ( ( utf32_stream_size % 4 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_string, utf8_string_size, utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf8_string_index >= utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 string too small.", function ); return( -1 ); } utf8_string[ *utf8_string_index ] = 0; *utf8_string_index += 1; } return( 1 ); } /* Compares an UTF-8 string with an UTF-32 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf8_string_compare_with_utf32_stream( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_utf32_stream"; size_t utf32_stream_index = 0; size_t utf8_string_index = 0; libuna_unicode_character_t utf8_unicode_character = 0; libuna_unicode_character_t utf32_stream_unicode_character = 0; int read_byte_order = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size == 0 ) || ( ( utf32_stream_size % 4 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf8_string[ utf8_string_size - 1 ] == 0 ) { utf8_string_size -= 1; } /* Check if the UTF-32 stream is terminated with zero bytes */ if( ( utf32_stream[ utf32_stream_size - 4 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 3 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 2 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 1 ] == 0 ) ) { utf32_stream_size -= 1; } while( ( utf8_string_index < utf8_string_size ) && ( utf32_stream_index < utf32_stream_size ) ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &utf32_stream_unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } if( utf8_unicode_character < utf32_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > utf32_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf8_string_index < utf8_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf32_stream_index < utf32_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } libfsapfs-20190210/libuna/libuna_base32_stream.c0000664000175000017500000024046413430101233023425 0ustar00lordyestalordyesta00000000000000/* * Base32 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libuna_base32_stream.h" #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" static uint8_t libuna_base32_quintet_to_character_table[ 32 ] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '2', '3', '4', '5', '6', '7' }; static uint8_t libuna_base32hex_quintet_to_character_table[ 32 ] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V' }; /* Copies a base32 character to a base32 quintet * Returns 1 if successful or -1 on error */ int libuna_base32_character_copy_to_quintet( uint8_t base32_character, uint8_t *base32_quintet, uint32_t base32_variant, libcerror_error_t **error ) { static char *function = "libuna_base32_character_copy_to_quintet"; uint8_t safe_base32_quintet = 0; if( base32_quintet == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 quintet.", function ); return( -1 ); } switch( base32_variant & 0x000f0000UL ) { case LIBUNA_BASE32_VARIANT_ALPHABET_NORMAL: /* A-Z is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-Z */ if( ( base32_character >= (uint8_t) 'A' ) && ( base32_character <= (uint8_t) 'I' ) ) { safe_base32_quintet = base32_character - (uint8_t) 'A'; } else if( ( base32_character >= (uint8_t) 'J' ) && ( base32_character <= (uint8_t) 'R' ) ) { safe_base32_quintet = base32_character - (uint8_t) 'J' + 9; } else if( ( base32_character >= (uint8_t) 'S' ) && ( base32_character <= (uint8_t) 'Z' ) ) { safe_base32_quintet = base32_character - (uint8_t) 'S' + 18; } else if( ( base32_character >= (uint8_t) '2' ) && ( base32_character <= (uint8_t) '7' ) ) { safe_base32_quintet = base32_character - (uint8_t) '2' + 26; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid base32 character: 0x%02" PRIx8 ".", function, base32_character ); return( -1 ); } break; case LIBUNA_BASE32_VARIANT_ALPHABET_HEX: if( ( base32_character >= (uint8_t) '0' ) && ( base32_character <= (uint8_t) '9' ) ) { safe_base32_quintet = base32_character - (uint8_t) '0'; } /* A-V is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-V */ else if( ( base32_character >= (uint8_t) 'A' ) && ( base32_character <= (uint8_t) 'I' ) ) { safe_base32_quintet = base32_character - (uint8_t) 'A' + 10; } else if( ( base32_character >= (uint8_t) 'J' ) && ( base32_character <= (uint8_t) 'R' ) ) { safe_base32_quintet = base32_character - (uint8_t) 'J' + 19; } else if( ( base32_character >= (uint8_t) 'S' ) && ( base32_character <= (uint8_t) 'V' ) ) { safe_base32_quintet = base32_character - (uint8_t) 'S' + 27; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid base32 character: 0x%02" PRIx8 ".", function, base32_character ); return( -1 ); } break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } *base32_quintet = safe_base32_quintet; return( 1 ); } /* Copies a base32 quintuplet from a base32 stream * * The padding size will still be set to indicate the number of * quintets in the quintuplet * * Returns 1 if successful or -1 on error */ int libuna_base32_quintuplet_copy_from_base32_stream( uint64_t *base32_quintuplet, const uint8_t *base32_stream, size_t base32_stream_size, size_t *base32_stream_index, uint8_t *padding_size, uint32_t base32_variant, libcerror_error_t **error ) { static char *function = "libuna_base32_quintuplet_copy_from_base32_stream"; size_t base32_character_size = 0; size_t safe_base32_stream_index = 0; uint64_t safe_base32_quintuplet = 0; uint32_t base32_character1 = 0; uint32_t base32_character2 = 0; uint8_t quintet1 = 0; uint8_t quintet2 = 0; uint8_t quintet3 = 0; uint8_t quintet4 = 0; uint8_t quintet5 = 0; uint8_t quintet6 = 0; uint8_t quintet7 = 0; uint8_t quintet8 = 0; uint8_t safe_padding_size = 0; if( base32_quintuplet == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 quintuplet.", function ); return( -1 ); } if( base32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream.", function ); return( -1 ); } if( base32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base32 stream size value exceeds maximum.", function ); return( -1 ); } if( base32_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream index.", function ); return( -1 ); } if( *base32_stream_index >= base32_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream string too small.", function ); return( -1 ); } if( padding_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid padding size.", function ); return( -1 ); } switch( base32_variant & 0x0f000000UL ) { case LIBUNA_BASE32_VARIANT_PADDING_NONE: case LIBUNA_BASE32_VARIANT_PADDING_OPTIONAL: case LIBUNA_BASE32_VARIANT_PADDING_REQUIRED: break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character_size = 1; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base32_character_size = 2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base32_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } safe_base32_stream_index = *base32_stream_index; if( base32_character_size > ( base32_stream_size - safe_base32_stream_index ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 1st base32 character.", function ); return( -1 ); } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ safe_base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; } safe_base32_stream_index += base32_character_size; if( ( base32_character1 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 1st base32 character.", function ); return( -1 ); } if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character1, &quintet1, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base32 character to 1st quintet.", function ); return( -1 ); } if( base32_character_size > ( base32_stream_size - safe_base32_stream_index ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 2nd base32 character.", function ); return( -1 ); } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ safe_base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; } safe_base32_stream_index += base32_character_size; if( ( base32_character1 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd base32 character.", function ); return( -1 ); } if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character1, &quintet2, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base32 character to 2nd quintet.", function ); return( -1 ); } safe_padding_size = 6; if( ( 2 * base32_character_size ) <= ( base32_stream_size - safe_base32_stream_index ) ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ safe_base32_stream_index ]; base32_character2 = base32_stream[ safe_base32_stream_index + 1 ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; } safe_base32_stream_index += 2 * base32_character_size; if( ( base32_character1 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 3rd base32 character.", function ); return( -1 ); } if( ( base32_character2 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 4th base32 character.", function ); return( -1 ); } if( ( base32_character1 == (uint32_t) '=' ) || ( base32_character2 == (uint32_t) '=' ) ) { if( ( base32_variant & 0x0f000000UL ) == LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: padding where not supposed to - invalid 3rd or 4th base32 character.", function ); return( -1 ); } if( base32_character1 != (uint32_t) '=' ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 3rd base32 character.", function ); return( -1 ); } if( base32_character2 != (uint32_t) '=' ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 4th base32 character.", function ); return( -1 ); } } else { if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character1, &quintet3, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 3rd base32 quintet.", function ); return( -1 ); } if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character2, &quintet4, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 4th base32 quintet.", function ); return( -1 ); } safe_padding_size -= 2; } } else if( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 3rd or 4th base32 character.", function ); return( -1 ); } if( base32_character_size <= ( base32_stream_size - safe_base32_stream_index ) ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ safe_base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; } safe_base32_stream_index += base32_character_size; if( ( base32_character1 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 5th base32 character.", function ); return( -1 ); } if( base32_character1 == (uint32_t) '=' ) { if( ( base32_variant & 0x0f000000UL ) == LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: padding where not supposed to - invalid 5th base32 character.", function ); return( -1 ); } } else { if( safe_padding_size > 4 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: non-padding where not supposed to - invalid 5th base32 character.", function ); return( -1 ); } if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character1, &quintet5, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 5th base32 quintet.", function ); return( -1 ); } safe_padding_size -= 1; } } else if( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 5th base32 character.", function ); return( -1 ); } if( ( 2 * base32_character_size ) <= ( base32_stream_size - safe_base32_stream_index ) ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ safe_base32_stream_index ]; base32_character2 = base32_stream[ safe_base32_stream_index + 1 ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; } safe_base32_stream_index += 2 * base32_character_size; if( ( base32_character1 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 6th base32 character.", function ); return( -1 ); } if( ( base32_character2 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 7th base32 character.", function ); return( -1 ); } if( ( base32_character1 == (uint32_t) '=' ) || ( base32_character2 == (uint32_t) '=' ) ) { if( ( base32_variant & 0x0f000000UL ) == LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: padding where not supposed to - invalid 6th or 7th base32 character.", function ); return( -1 ); } if( base32_character1 != (uint32_t) '=' ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 6th base32 quintet.", function ); return( -1 ); } if( base32_character2 != (uint32_t) '=' ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 7th base32 quintet.", function ); return( -1 ); } } else { if( safe_padding_size > 3 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: non-padding where not supposed to - invalid 6th or 7th base32 character.", function ); return( -1 ); } if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character1, &quintet6, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 6th base32 quintet.", function ); return( -1 ); } if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character2, &quintet7, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 7th base32 quintet.", function ); return( -1 ); } safe_padding_size -= 2; } } else if( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 6th or 7th base32 character.", function ); return( -1 ); } if( base32_character_size <= ( base32_stream_size - safe_base32_stream_index ) ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ safe_base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; } safe_base32_stream_index += base32_character_size; if( ( base32_character1 & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 8th base32 character.", function ); return( -1 ); } if( base32_character1 == (uint32_t) '=' ) { if( ( base32_variant & 0x0f000000UL ) == LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: padding where not supposed to - invalid 8th base32 character.", function ); return( -1 ); } } else { if( safe_padding_size > 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: non-padding where not supposed to - invalid 8th base32 character.", function ); return( -1 ); } if( libuna_base32_character_copy_to_quintet( (uint8_t) base32_character1, &quintet8, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 8th base32 quintet.", function ); return( -1 ); } safe_padding_size -= 1; } } else if( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 8th base32 character.", function ); return( -1 ); } safe_base32_quintuplet = quintet1; safe_base32_quintuplet <<= 5; safe_base32_quintuplet |= quintet2; safe_base32_quintuplet <<= 5; safe_base32_quintuplet |= quintet3; safe_base32_quintuplet <<= 5; safe_base32_quintuplet |= quintet4; safe_base32_quintuplet <<= 5; safe_base32_quintuplet |= quintet5; safe_base32_quintuplet <<= 5; safe_base32_quintuplet |= quintet6; safe_base32_quintuplet <<= 5; safe_base32_quintuplet |= quintet7; safe_base32_quintuplet <<= 5; safe_base32_quintuplet |= quintet8; *base32_stream_index = safe_base32_stream_index; *base32_quintuplet = safe_base32_quintuplet; *padding_size = safe_padding_size; return( 1 ); } /* Copies a base32 quintuplet to a base32 stream * Returns 1 if successful or -1 on error */ int libuna_base32_quintuplet_copy_to_base32_stream( uint64_t base32_quintuplet, uint8_t *base32_stream, size_t base32_stream_size, size_t *base32_stream_index, uint8_t padding_size, uint32_t base32_variant, libcerror_error_t **error ) { uint8_t *quintet_to_character_table = NULL; static char *function = "libuna_base32_quintuplet_copy_to_base32_stream"; size_t base32_character_size = 0; size_t safe_base32_stream_index = 0; uint32_t base32_character1 = 0; uint32_t base32_character2 = 0; uint8_t quintet1 = 0; uint8_t quintet2 = 0; uint8_t quintet3 = 0; uint8_t quintet4 = 0; uint8_t quintet5 = 0; uint8_t quintet6 = 0; uint8_t quintet7 = 0; uint8_t quintet8 = 0; if( base32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream.", function ); return( -1 ); } if( base32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base32 stream size value exceeds maximum.", function ); return( -1 ); } if( base32_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream index.", function ); return( -1 ); } if( *base32_stream_index >= base32_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream string too small.", function ); return( -1 ); } if( padding_size > 6 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid padding size value out of bounds.", function ); return( -1 ); } switch( base32_variant & 0x000f0000UL ) { case LIBUNA_BASE32_VARIANT_ALPHABET_NORMAL: quintet_to_character_table = libuna_base32_quintet_to_character_table; break; case LIBUNA_BASE32_VARIANT_ALPHABET_HEX: quintet_to_character_table = libuna_base32hex_quintet_to_character_table; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } switch( base32_variant & 0x0f000000UL ) { case LIBUNA_BASE32_VARIANT_PADDING_NONE: case LIBUNA_BASE32_VARIANT_PADDING_OPTIONAL: case LIBUNA_BASE32_VARIANT_PADDING_REQUIRED: break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character_size = 1; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base32_character_size = 2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base32_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } safe_base32_stream_index = *base32_stream_index; /* Separate the 3 bytes value into 8 x 5 bit values */ quintet8 = (uint8_t) ( base32_quintuplet & 0x1f ); base32_quintuplet >>= 5; quintet7 = (uint8_t) ( base32_quintuplet & 0x1f ); base32_quintuplet >>= 5; quintet6 = (uint8_t) ( base32_quintuplet & 0x1f ); base32_quintuplet >>= 5; quintet5 = (uint8_t) ( base32_quintuplet & 0x1f ); base32_quintuplet >>= 5; quintet4 = (uint8_t) ( base32_quintuplet & 0x1f ); base32_quintuplet >>= 5; quintet3 = (uint8_t) ( base32_quintuplet & 0x1f ); base32_quintuplet >>= 5; quintet2 = (uint8_t) ( base32_quintuplet & 0x1f ); base32_quintuplet >>= 5; quintet1 = (uint8_t) ( base32_quintuplet & 0x1f ); /* Spread the encoding over 2 characters if 1 byte is available */ if( ( 2 * base32_character_size ) > ( base32_stream_size - safe_base32_stream_index ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream is too small - insufficient space for 1st and 2nd base32 characters.", function ); return( -1 ); } base32_character1 = (uint32_t) quintet_to_character_table[ quintet1 ]; base32_character2 = (uint32_t) quintet_to_character_table[ quintet2 ]; switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_stream[ safe_base32_stream_index ] = (uint8_t) base32_character1; base32_stream[ safe_base32_stream_index + 1 ] = (uint8_t) base32_character2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; } safe_base32_stream_index += 2 * base32_character_size; /* Spread the encoding over 4 characters if 2 bytes are available * Otherwise pad the remaining bytes if required */ if( ( padding_size < 6 ) || ( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) ) { if( ( 2 * base32_character_size ) > ( base32_stream_size - safe_base32_stream_index ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream is too small - insufficient space for 3rd and 4th base32 characters.", function ); return( -1 ); } if( padding_size < 6 ) { base32_character1 = (uint32_t) quintet_to_character_table[ quintet3 ]; base32_character2 = (uint32_t) quintet_to_character_table[ quintet4 ]; } else { base32_character1 = (uint32_t) '='; base32_character2 = (uint32_t) '='; } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_stream[ safe_base32_stream_index ] = (uint8_t) base32_character1; base32_stream[ safe_base32_stream_index + 1 ] = (uint8_t) base32_character2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; } safe_base32_stream_index += 2 * base32_character_size; } /* Spread the encoding over 5 characters if 3 bytes are available * Otherwise pad the remaining bytes if required */ if( ( padding_size < 4 ) || ( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) ) { if( base32_character_size > ( base32_stream_size - safe_base32_stream_index ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream is too small - insufficient space for 5th base32 character.", function ); return( -1 ); } if( padding_size < 4 ) { base32_character1 = (uint32_t) quintet_to_character_table[ quintet5 ]; } else { base32_character1 = (uint32_t) '='; } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_stream[ safe_base32_stream_index ] = (uint8_t) base32_character1; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; } safe_base32_stream_index += base32_character_size; } /* Spread the encoding over 7 characters if 4 bytes are available * Otherwise pad the remaining bytes if required */ if( ( padding_size < 3 ) || ( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) ) { if( ( 2 * base32_character_size ) > ( base32_stream_size - safe_base32_stream_index ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream is too small - insufficient space for 6th and 7th base32 characters.", function ); return( -1 ); } if( padding_size < 3 ) { base32_character1 = (uint32_t) quintet_to_character_table[ quintet6 ]; base32_character2 = (uint32_t) quintet_to_character_table[ quintet7 ]; } else { base32_character1 = (uint32_t) '='; base32_character2 = (uint32_t) '='; } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_stream[ safe_base32_stream_index ] = (uint8_t) base32_character1; base32_stream[ safe_base32_stream_index + 1 ] = (uint8_t) base32_character2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index + 4 ] ), base32_character2 ); break; } safe_base32_stream_index += 2 * base32_character_size; } /* Spread the encoding over 8 characters if 5 bytes are available * Otherwise pad the remaining bytes if required */ if( ( padding_size < 1 ) || ( ( base32_variant & 0x0f000000UL ) != LIBUNA_BASE32_VARIANT_PADDING_NONE ) ) { if( base32_character_size > ( base32_stream_size - safe_base32_stream_index ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream is too small - insufficient space for 8th base32 character.", function ); return( -1 ); } if( padding_size < 1 ) { base32_character1 = (uint32_t) quintet_to_character_table[ quintet8 ]; } else { base32_character1 = (uint32_t) '='; } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_stream[ safe_base32_stream_index ] = (uint8_t) base32_character1; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base32_stream[ safe_base32_stream_index ] ), base32_character1 ); break; } safe_base32_stream_index += base32_character_size; } *base32_stream_index = safe_base32_stream_index; return( 1 ); } /* Copies a base32 quintuplet from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base32_quintuplet_copy_from_byte_stream( uint64_t *base32_quintuplet, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t *padding_size, libcerror_error_t **error ) { static char *function = "libuna_base32_quintuplet_copy_from_byte_stream"; size_t safe_byte_stream_index = 0; uint64_t safe_base32_quintuplet = 0; uint8_t safe_padding_size = 0; if( base32_quintuplet == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 quintuplet.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } if( padding_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid padding size.", function ); return( -1 ); } /* Determine the value of 5 bytes (40 bits) */ safe_byte_stream_index = *byte_stream_index; safe_base32_quintuplet = byte_stream[ safe_byte_stream_index++ ]; safe_padding_size = 6; safe_base32_quintuplet <<= 8; if( safe_byte_stream_index < byte_stream_size ) { safe_base32_quintuplet |= byte_stream[ safe_byte_stream_index++ ]; safe_padding_size -= 2; } safe_base32_quintuplet <<= 8; if( safe_byte_stream_index < byte_stream_size ) { safe_base32_quintuplet |= byte_stream[ safe_byte_stream_index++ ]; safe_padding_size -= 1; } safe_base32_quintuplet <<= 8; if( safe_byte_stream_index < byte_stream_size ) { safe_base32_quintuplet |= byte_stream[ safe_byte_stream_index++ ]; safe_padding_size -= 2; } safe_base32_quintuplet <<= 8; if( safe_byte_stream_index < byte_stream_size ) { safe_base32_quintuplet |= byte_stream[ safe_byte_stream_index++ ]; safe_padding_size -= 1; } *base32_quintuplet = safe_base32_quintuplet; *byte_stream_index = safe_byte_stream_index; *padding_size = safe_padding_size; return( 1 ); } /* Copies a base32 quintuplet to a byte stream * Returns 1 if successful or -1 on error */ int libuna_base32_quintuplet_copy_to_byte_stream( uint64_t base32_quintuplet, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t padding_size, libcerror_error_t **error ) { static char *function = "libuna_base32_quintuplet_copy_to_byte_stream"; size_t safe_byte_stream_index = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } if( padding_size > 6 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid padding size value out of bounds.", function ); return( -1 ); } safe_byte_stream_index = *byte_stream_index; byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( ( base32_quintuplet >> 32 ) & 0xff ); if( padding_size <= 4 ) { if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( ( base32_quintuplet >> 24 ) & 0xff ); } if( padding_size <= 3 ) { if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( ( base32_quintuplet >> 16 ) & 0xff ); } if( padding_size <= 2 ) { if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( ( base32_quintuplet >> 8 ) & 0xff ); } if( padding_size == 0 ) { if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream is too small.", function ); return( -1 ); } byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( base32_quintuplet & 0xff ); } *byte_stream_index = safe_byte_stream_index; return( 1 ); } /* Determines the size of a byte stream from a base32 stream * * LIBUNA_BASE32_FLAG_STRIP_WHITESPACE removes leading space and tab characters, * and trailing space, tab and end of line characters * * Returns 1 if successful or -1 on error */ int libuna_base32_stream_size_to_byte_stream( const uint8_t *base32_stream, size_t base32_stream_size, size_t *byte_stream_size, uint32_t base32_variant, uint8_t flags, libcerror_error_t **error ) { static char *function = "libuna_base32_stream_size_to_byte_stream"; size_t base32_character_size = 0; size_t base32_stream_index = 0; size_t number_of_characters = 0; size_t safe_byte_stream_size = 0; size_t whitespace_size = 0; uint32_t base32_character1 = 0; uint32_t base32_character2 = 0; uint8_t character_limit = 0; uint8_t padding_size = 0; uint8_t strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; if( base32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream.", function ); return( -1 ); } if( base32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base32 stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream size.", function ); return( -1 ); } switch( base32_variant & 0x000000ffUL ) { case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } switch( base32_variant & 0x000f0000UL ) { case LIBUNA_BASE32_VARIANT_ALPHABET_NORMAL: case LIBUNA_BASE32_VARIANT_ALPHABET_HEX: break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character_size = 1; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base32_character_size = 2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base32_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } if( ( flags & ~( LIBUNA_BASE32_FLAG_STRIP_WHITESPACE ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags.", function ); return( -1 ); } /* Ignore trailing whitespace */ if( base32_stream_size > base32_character_size ) { base32_stream_index = base32_stream_size - base32_character_size; whitespace_size = 0; while( base32_stream_index > base32_character_size ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; } base32_stream_index -= base32_character_size; if( ( base32_character1 == (uint32_t) '\n' ) || ( base32_character1 == (uint32_t) '\r' ) ) { whitespace_size += base32_character_size; continue; } else if( ( flags & LIBUNA_BASE32_FLAG_STRIP_WHITESPACE ) == 0 ) { break; } if( ( base32_character1 == (uint32_t) ' ' ) || ( base32_character1 == (uint32_t) '\t' ) || ( base32_character1 == (uint32_t) '\v' ) ) { whitespace_size += base32_character_size; } else { break; } } base32_stream_size -= whitespace_size; } /* Determine and ignore the padding */ if( base32_stream_size > base32_character_size ) { base32_stream_index = base32_stream_size - base32_character_size; while( ( base32_stream_index > base32_character_size ) && ( padding_size <= 6 ) ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; } base32_stream_index -= base32_character_size; if( base32_character1 == (uint32_t) '=' ) { padding_size += 1; } } if( padding_size > 6 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid amount of padding - found more than 6 padding characters.", function ); return( -1 ); } base32_stream_size -= padding_size * base32_character_size; } base32_stream_index = 0; whitespace_size = 0; while( ( base32_stream_index + base32_character_size ) < base32_stream_size ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; } if( ( base32_character1 == (uint32_t) '\n' ) || ( base32_character1 == (uint32_t) '\r' ) ) { if( ( strip_mode != LIBUNA_STRIP_MODE_NON_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { /* Handle multi-character end-of-line */ if( ( base32_stream_index + base32_character_size ) < base32_stream_size ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character2 = base32_stream[ base32_stream_index + 1 ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ base32_stream_index + 4 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ base32_stream_index + 4 ] ), base32_character2 ); break; } if( ( base32_character2 == (uint32_t) '\n' ) || ( base32_character2 == (uint32_t) '\r' ) ) { base32_stream_index += base32_character_size; whitespace_size += base32_character_size; } } strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; } if( ( number_of_characters != 0 ) && ( character_limit != 0 ) ) { if( number_of_characters != (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in line: %" PRIzd " does not match character limit: %" PRIu8 ".", function, number_of_characters, character_limit ); return( -1 ); } number_of_characters = 0; } whitespace_size += base32_character_size; } else if( ( base32_character1 == (uint32_t) ' ' ) || ( base32_character1 == (uint32_t) '\t' ) || ( base32_character1 == (uint32_t) '\v' ) ) { if( ( flags & LIBUNA_BASE32_FLAG_STRIP_WHITESPACE ) == 0 ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_TRAILING_WHITESPACE; } if( ( strip_mode != LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { whitespace_size += base32_character_size; } } } else if( strip_mode == LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } else if( strip_mode == LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { switch( base32_variant & 0x000f0000UL ) { case LIBUNA_BASE32_VARIANT_ALPHABET_NORMAL: /* A-Z is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-Z */ if( ( base32_character1 >= (uint32_t) 'A' ) && ( base32_character1 <= (uint32_t) 'I' ) ) { number_of_characters++; } else if( ( base32_character1 >= (uint32_t) 'J' ) && ( base32_character1 <= (uint32_t) 'R' ) ) { number_of_characters++; } else if( ( base32_character1 >= (uint32_t) 'S' ) && ( base32_character1 <= (uint32_t) 'Z' ) ) { number_of_characters++; } else if( ( base32_character1 >= (uint32_t) '2' ) && ( base32_character1 <= (uint32_t) '7' ) ) { number_of_characters++; } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } break; case LIBUNA_BASE32_VARIANT_ALPHABET_HEX: if( ( base32_character1 >= (uint32_t) '0' ) && ( base32_character1 <= (uint32_t) '9' ) ) { number_of_characters++; } /* A-V is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-V */ else if( ( base32_character1 >= (uint32_t) 'A' ) && ( base32_character1 <= (uint32_t) 'I' ) ) { number_of_characters++; } else if( ( base32_character1 >= (uint32_t) 'J' ) && ( base32_character1 <= (uint32_t) 'R' ) ) { number_of_characters++; } else if( ( base32_character1 >= (uint32_t) 'S' ) && ( base32_character1 <= (uint32_t) 'V' ) ) { number_of_characters++; } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } break; default: strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid character in base32 stream at index: %d.", function, base32_stream_index ); return( -1 ); } base32_stream_index += base32_character_size; } if( character_limit != 0 ) { if( number_of_characters > (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in last line exceed maximum.", function ); return( -1 ); } } base32_stream_size -= whitespace_size; /* Make sure the byte stream is able to hold * at least 5 bytes for each 8 base32 characters */ safe_byte_stream_size = ( base32_stream_size * 5 ) / ( base32_character_size * 8 ); *byte_stream_size = safe_byte_stream_size * base32_character_size; return( 1 ); } /* Copies a byte stream from a base32 stream * * LIBUNA_BASE32_FLAG_STRIP_WHITESPACE removes leading space and tab characters, * and trailing space, tab and end of line characters * * Returns 1 if successful or -1 on error */ int libuna_base32_stream_copy_to_byte_stream( const uint8_t *base32_stream, size_t base32_stream_size, uint8_t *byte_stream, size_t byte_stream_size, uint32_t base32_variant, uint8_t flags, libcerror_error_t **error ) { static char *function = "libuna_base32_stream_copy_to_byte_stream"; size_t base32_character_size = 0; size_t base32_stream_index = 0; size_t byte_stream_index = 0; size_t number_of_characters = 0; size_t whitespace_size = 0; uint64_t base32_quintuplet = 0; uint32_t base32_character1 = 0; uint32_t base32_character2 = 0; uint8_t character_limit = 0; uint8_t padding_size = 0; uint8_t strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; if( base32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream.", function ); return( -1 ); } if( base32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base32 stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } switch( base32_variant & 0x000000ffUL ) { case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character_size = 1; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base32_character_size = 2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base32_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } if( ( flags & ~( LIBUNA_BASE32_FLAG_STRIP_WHITESPACE ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags.", function ); return( -1 ); } /* Ignore trailing whitespace */ if( base32_stream_size > base32_character_size ) { base32_stream_index = base32_stream_size - base32_character_size; whitespace_size = 0; while( base32_stream_index > base32_character_size ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; } base32_stream_index -= base32_character_size; if( ( base32_character1 == (uint32_t) '\n' ) || ( base32_character1 == (uint32_t) '\r' ) ) { whitespace_size += base32_character_size; continue; } else if( ( flags & LIBUNA_BASE32_FLAG_STRIP_WHITESPACE ) == 0 ) { break; } if( ( base32_character1 == (uint32_t) ' ' ) || ( base32_character1 == (uint32_t) '\t' ) || ( base32_character1 == (uint32_t) '\v' ) ) { whitespace_size += base32_character_size; } else { break; } } base32_stream_size -= whitespace_size; } if( ( flags & LIBUNA_BASE32_FLAG_STRIP_WHITESPACE ) == 0 ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } base32_stream_index = 0; while( ( base32_stream_index + base32_character_size ) < base32_stream_size ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character1 = base32_stream[ base32_stream_index ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ base32_stream_index ] ), base32_character1 ); break; } if( ( base32_character1 == (uint32_t) '\n' ) || ( base32_character1 == (uint32_t) '\r' ) ) { if( ( strip_mode != LIBUNA_STRIP_MODE_NON_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { /* Handle multi-character end-of-line */ if( ( base32_stream_index + base32_character_size ) < base32_stream_size ) { switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character2 = base32_stream[ base32_stream_index + 1 ]; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base32_stream[ base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base32_stream[ base32_stream_index + 2 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base32_stream[ base32_stream_index + 4 ] ), base32_character2 ); break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base32_stream[ base32_stream_index + 4 ] ), base32_character2 ); break; } if( ( base32_character2 == (uint32_t) '\n' ) || ( base32_character2 == (uint32_t) '\r' ) ) { base32_stream_index += base32_character_size; } } strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; base32_stream_index += base32_character_size; } if( character_limit != 0 ) { if( number_of_characters != (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in line does not match character limit.", function ); return( -1 ); } number_of_characters = 0; } } else if( ( base32_character1 == (uint32_t) ' ' ) || ( base32_character1 == (uint32_t) '\t' ) || ( base32_character1 == (uint32_t) '\v' ) ) { if( ( flags & LIBUNA_BASE32_FLAG_STRIP_WHITESPACE ) != 0 ) { if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_TRAILING_WHITESPACE; } if( ( strip_mode != LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } base32_stream_index += base32_character_size; } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } else if( strip_mode == LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } else if( strip_mode == LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid character in base32 stream at index: %d.", function, base32_stream_index ); return( -1 ); } if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { if( padding_size > 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 1st base32 quintet.", function ); return( -1 ); } /* Convert the base32 stream into a base32 quintuplet */ if( libuna_base32_quintuplet_copy_from_base32_stream( &base32_quintuplet, base32_stream, base32_stream_size, &base32_stream_index, &padding_size, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base32 quintuplet from base32 stream.", function ); return( -1 ); } /* Convert the base32 quintuplet into a byte stream */ if( libuna_base32_quintuplet_copy_to_byte_stream( base32_quintuplet, byte_stream, byte_stream_size, &byte_stream_index, padding_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base32 quintuplet to byte stream.", function ); return( -1 ); } number_of_characters += 8 - padding_size; } } if( character_limit != 0 ) { if( number_of_characters > (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in last line exceed maximum.", function ); return( -1 ); } } return( 1 ); } /* Determines the size of a base32 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base32_stream_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, size_t *base32_stream_size, uint32_t base32_variant, libcerror_error_t **error ) { static char *function = "libuna_base32_stream_size_from_byte_stream"; size_t base32_character_size = 0; size_t safe_base32_stream_size = 0; size_t whitespace_size = 0; uint8_t character_limit = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( base32_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream size.", function ); return( -1 ); } switch( base32_variant & 0x000000ffUL ) { case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } switch( base32_variant & 0xf0000000UL ) { case LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM: base32_character_size = 1; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base32_character_size = 2; break; case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base32_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } /* Make sure the base32 stream is able to hold * at least 8 base32 characters for each 5 bytes */ safe_base32_stream_size = byte_stream_size / 5; if( ( byte_stream_size % 5 ) != 0 ) { safe_base32_stream_size += 1; } safe_base32_stream_size *= 8; if( character_limit != 0 ) { whitespace_size = safe_base32_stream_size / character_limit; if( ( safe_base32_stream_size % character_limit ) != 0 ) { whitespace_size += 1; } safe_base32_stream_size += whitespace_size; } *base32_stream_size = safe_base32_stream_size * base32_character_size; return( 1 ); } /* Copies a base32 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base32_stream_copy_from_byte_stream( uint8_t *base32_stream, size_t base32_stream_size, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base32_variant, libcerror_error_t **error ) { static char *function = "libuna_base32_stream_copy_from_byte_stream"; size_t base32_stream_index = 0; if( libuna_base32_stream_with_index_copy_from_byte_stream( base32_stream, base32_stream_size, &base32_stream_index, byte_stream, byte_stream_size, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy base32 stream from byte stream.", function ); return( -1 ); } return( 1 ); } /* Copies a base32 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base32_stream_with_index_copy_from_byte_stream( uint8_t *base32_stream, size_t base32_stream_size, size_t *base32_stream_index, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base32_variant, libcerror_error_t **error ) { static char *function = "libuna_base32_stream_with_index_copy_from_byte_stream"; size_t calculated_base32_stream_size = 0; size_t safe_base32_stream_index = 0; size_t byte_stream_index = 0; size_t number_of_characters = 0; size_t whitespace_size = 0; uint64_t base32_quintuplet = 0; uint8_t character_limit = 0; uint8_t padding_size = 0; if( base32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream.", function ); return( -1 ); } if( base32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base32 stream size value exceeds maximum.", function ); return( -1 ); } if( base32_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base32 stream index.", function ); return( -1 ); } if( *base32_stream_index >= base32_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream string too small.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } switch( base32_variant & 0x000000ffUL ) { case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base32 variant.", function ); return( -1 ); } safe_base32_stream_index = *base32_stream_index; /* Make sure the base32 stream is able to hold * at least 8 base32 characters for each 5 bytes */ calculated_base32_stream_size = byte_stream_size / 5; if( ( byte_stream_size % 5 ) != 0 ) { calculated_base32_stream_size += 1; } calculated_base32_stream_size *= 8; if( character_limit != 0 ) { whitespace_size = calculated_base32_stream_size / character_limit; if( ( calculated_base32_stream_size % character_limit ) != 0 ) { whitespace_size += 1; } calculated_base32_stream_size += whitespace_size; } if( base32_stream_size < calculated_base32_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base32 stream is too small.", function ); return( -1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream into a base32 quintuplet */ if( libuna_base32_quintuplet_copy_from_byte_stream( &base32_quintuplet, byte_stream, byte_stream_size, &byte_stream_index, &padding_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base32 quintuplet from byte stream.", function ); return( -1 ); } /* Convert the base32 quintuplet into a base32 stream */ if( libuna_base32_quintuplet_copy_to_base32_stream( base32_quintuplet, base32_stream, base32_stream_size, &safe_base32_stream_index, padding_size, base32_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base32 quintuplet to base32 stream.", function ); return( -1 ); } if( character_limit != 0 ) { number_of_characters += 8; if( number_of_characters >= (size_t) character_limit ) { base32_stream[ safe_base32_stream_index++ ] = (uint8_t) '\n'; number_of_characters = 0; } } } if( character_limit != 0 ) { if( number_of_characters != 0 ) { base32_stream[ safe_base32_stream_index++ ] = (uint8_t) '\n'; } } *base32_stream_index = safe_base32_stream_index; return( 1 ); } libfsapfs-20190210/libuna/libuna_codepage_windows_950.h0000664000175000017500000000356413430101233024714 0ustar00lordyestalordyesta00000000000000/* * Windows 950 codepage (Traditional Chinese) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_950_H ) #define _LIBUNA_CODEPAGE_WINDOWS_950_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_codepage_windows_950_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_950_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_950_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_950_H ) */ libfsapfs-20190210/libuna/libuna_error.h0000664000175000017500000000332713430101233022124 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_INTERNAL_ERROR_H ) #define _LIBUNA_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBUNA ) #include #endif #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBUNA ) LIBUNA_EXTERN \ void libuna_error_free( libuna_error_t **error ); LIBUNA_EXTERN \ int libuna_error_fprint( libuna_error_t *error, FILE *stream ); LIBUNA_EXTERN \ int libuna_error_sprint( libuna_error_t *error, char *string, size_t size ); LIBUNA_EXTERN \ int libuna_error_backtrace_fprint( libuna_error_t *error, FILE *stream ); LIBUNA_EXTERN \ int libuna_error_backtrace_sprint( libuna_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBUNA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_932.h0000664000175000017500000000356313430101233024713 0ustar00lordyestalordyesta00000000000000/* * Windows 932 codepage (Japanese Shift-JIS) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_932_H ) #define _LIBUNA_CODEPAGE_WINDOWS_932_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_codepage_windows_932_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_932_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_932_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_932_H ) */ libfsapfs-20190210/libuna/libuna_utf8_stream.c0000664000175000017500000004314513430101233023231 0ustar00lordyestalordyesta00000000000000/* * UTF-8 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_utf8_stream.h" /* Copies an UTF-8 stream byte order mark (BOM) * Returns 1 if successful or -1 on error */ int libuna_utf8_stream_copy_byte_order_mark( uint8_t *utf8_stream, size_t utf8_stream_size, size_t *utf8_stream_index, libcerror_error_t **error ) { static char *function = "libuna_utf8_stream_copy_byte_order_mark"; if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream index.", function ); return( -1 ); } if( ( *utf8_stream_index + 3 ) > utf8_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 stream too small.", function ); return( -1 ); } utf8_stream[ *utf8_stream_index ] = 0xef; utf8_stream[ *utf8_stream_index + 1 ] = 0xbb; utf8_stream[ *utf8_stream_index + 2 ] = 0xbf; *utf8_stream_index += 3; return( 1 ); } /* Determines the size of an UTF-8 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf8_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_stream_size_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf8_string_index = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf8_stream_size = 3; while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies an UTF-8 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf8_stream_copy_from_utf8( uint8_t *utf8_stream, size_t utf8_stream_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_stream_copy_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf8_stream_index = 0; size_t utf8_string_index = 0; if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size < utf8_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-8 stream is too small.", function ); return( -1 ); } if( libuna_utf8_stream_copy_byte_order_mark( utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-8 byte order mark.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 stream bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-8 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf8_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_stream_size_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf8_stream_size = 3; while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies an UTF-8 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf8_stream_copy_from_utf16( uint8_t *utf8_stream, size_t utf8_stream_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_stream_copy_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; size_t utf8_stream_index = 0; if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf8_stream_copy_byte_order_mark( utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-8 byte order mark.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 stream bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-8 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf8_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_stream_size_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf32_string_index = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf8_stream_size = 3; while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Determine how many UTF-8 character bytes are required */ if( libuna_unicode_character_size_to_utf8( unicode_character, utf8_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-8.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies an UTF-8 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf8_stream_copy_from_utf32( uint8_t *utf8_stream, size_t utf8_stream_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf8_stream_copy_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf32_string_index = 0; size_t utf8_stream_index = 0; if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf8_stream_copy_byte_order_mark( utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-8 byte order mark.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the Unicode character into UTF-8 character bytes */ if( libuna_unicode_character_copy_to_utf8( unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-8 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } libfsapfs-20190210/libuna/libuna_codepage_koi8_r.h0000664000175000017500000000263113430101233024012 0ustar00lordyestalordyesta00000000000000/* * KOI8-R codepage (Russian Cyrillic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_KOI8_R_H ) #define _LIBUNA_CODEPAGE_KOI8_R_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ 64 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ 32 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_KOI8_R_H ) */ libfsapfs-20190210/libuna/libuna_base16_stream.c0000664000175000017500000011504713430101233023425 0ustar00lordyestalordyesta00000000000000/* * Base16 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libuna_base16_stream.h" #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" /* Copies a base16 character from a base16 stream * Returns 1 if successful or -1 on error */ int libuna_base16_character_copy_from_base16_stream( uint32_t *base16_character, const uint8_t *base16_stream, uint32_t base16_variant, libcerror_error_t **error ) { static char *function = "libuna_base16_character_copy_from_base16_stream"; uint32_t safe_base16_character = 0; if( base16_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base16 character.", function ); return( -1 ); } if( base16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base16 stream.", function ); return( -1 ); } switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: safe_base16_character = *base16_stream; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( base16_stream, safe_base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( base16_stream, safe_base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( base16_stream, safe_base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( base16_stream, safe_base16_character ); break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } if( ( safe_base16_character & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid base16 character.", function ); return( -1 ); } *base16_character = safe_base16_character; return( 1 ); } /* Determines the size of a byte stream from a base16 stream * * LIBUNA_BASE16_FLAG_STRIP_WHITESPACE removes leading space and tab characters, * and trailing space, tab and end of line characters * * Returns 1 if successful or -1 on error */ int libuna_base16_stream_size_to_byte_stream( const uint8_t *base16_stream, size_t base16_stream_size, size_t *byte_stream_size, uint32_t base16_variant, uint8_t flags, libcerror_error_t **error ) { static char *function = "libuna_base16_stream_size_to_byte_stream"; size_t base16_character_size = 0; size_t base16_stream_index = 0; size_t number_of_characters = 0; size_t whitespace_size = 0; uint32_t base16_character1 = 0; uint32_t base16_character2 = 0; uint8_t character_case = 0; uint8_t character_limit = 0; uint8_t strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; if( base16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base16 stream.", function ); return( -1 ); } if( base16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base16 stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream size.", function ); return( -1 ); } switch( base16_variant & 0x000000ffUL ) { case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0x000f0000UL ) { case LIBUNA_BASE16_VARIANT_CASE_LOWER: character_case = LIBUNA_CASE_LOWER; break; case LIBUNA_BASE16_VARIANT_CASE_MIXED: character_case = LIBUNA_CASE_MIXED; break; case LIBUNA_BASE16_VARIANT_CASE_UPPER: character_case = LIBUNA_CASE_UPPER; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_character_size = 1; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base16_character_size = 2; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base16_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } if( ( flags & ~( LIBUNA_BASE16_FLAG_STRIP_WHITESPACE ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags.", function ); return( -1 ); } /* Ignore trailing whitespace */ if( base16_stream_size > base16_character_size ) { base16_stream_index = base16_stream_size - base16_character_size; whitespace_size = 0; while( base16_stream_index > base16_character_size ) { if( libuna_base16_character_copy_from_base16_stream( &base16_character1, &( base16_stream[ base16_stream_index ] ), base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base16 character at index: %" PRIzd ".", function, base16_stream_index ); return( -1 ); } base16_stream_index -= base16_character_size; if( ( base16_character1 == (uint32_t) '\n' ) || ( base16_character1 == (uint32_t) '\r' ) ) { whitespace_size += base16_character_size; } else if( ( flags & LIBUNA_BASE16_FLAG_STRIP_WHITESPACE ) == 0 ) { break; } else if( ( base16_character1 == (uint32_t) ' ' ) || ( base16_character1 == (uint32_t) '\t' ) || ( base16_character1 == (uint32_t) '\v' ) ) { whitespace_size += base16_character_size; } else { break; } } base16_stream_size -= whitespace_size; } base16_stream_index = 0; whitespace_size = 0; while( base16_stream_index < base16_stream_size ) { if( libuna_base16_character_copy_from_base16_stream( &base16_character1, &( base16_stream[ base16_stream_index ] ), base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base16 character at index: %" PRIzd ".", function, base16_stream_index ); return( -1 ); } base16_stream_index += base16_character_size; if( ( base16_character1 == (uint32_t) '\n' ) || ( base16_character1 == (uint32_t) '\r' ) ) { if( ( strip_mode != LIBUNA_STRIP_MODE_NON_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { /* Handle multi-character end-of-line */ if( ( base16_stream_index + base16_character_size ) < base16_stream_size ) { if( libuna_base16_character_copy_from_base16_stream( &base16_character2, &( base16_stream[ base16_stream_index + base16_character_size ] ), base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base16 character at index: %" PRIzd ".", function, base16_stream_index ); return( -1 ); } if( ( base16_character2 == (uint32_t) '\n' ) || ( base16_character2 == (uint32_t) '\r' ) ) { base16_stream_index += base16_character_size; whitespace_size += base16_character_size; } } strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; } if( character_limit != 0 ) { if( number_of_characters != (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in line does not match character limit.", function ); return( -1 ); } number_of_characters = 0; } whitespace_size += base16_character_size; } else if( ( base16_character1 == (uint32_t) ' ' ) || ( base16_character1 == (uint32_t) '\t' ) || ( base16_character1 == (uint32_t) '\v' ) ) { if( ( flags & LIBUNA_BASE16_FLAG_STRIP_WHITESPACE ) != 0 ) { if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_TRAILING_WHITESPACE; } if( ( strip_mode != LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { whitespace_size += base16_character_size; } } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } else if( strip_mode == LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } else if( strip_mode == LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { if( ( base16_character1 >= (uint32_t) 'A' ) && ( base16_character1 <= (uint32_t) 'F' ) ) { if( ( character_case != LIBUNA_CASE_MIXED ) && ( character_case != LIBUNA_CASE_UPPER ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } number_of_characters++; } else if( ( base16_character1 >= (uint32_t) 'a' ) && ( base16_character1 <= (uint32_t) 'f' ) ) { if( ( character_case != LIBUNA_CASE_MIXED ) && ( character_case != LIBUNA_CASE_LOWER ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } number_of_characters++; } else if( ( base16_character1 >= (uint32_t) '0' ) && ( base16_character1 <= (uint32_t) '9' ) ) { number_of_characters++; } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid character in base16 stream at index: %" PRIzd ".", function, base16_stream_index - base16_character_size ); return( -1 ); } } if( character_limit != 0 ) { if( number_of_characters > (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in last line exceed maximum.", function ); return( -1 ); } } base16_stream_size -= whitespace_size; /* Make sure the byte stream is able to hold * at least 1 byte for each 2 base16 characters */ base16_character_size *= 2; if( ( base16_stream_size % base16_character_size ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid base16 stream size.", function ); return( -1 ); } base16_stream_size /= base16_character_size; *byte_stream_size = base16_stream_size; return( 1 ); } /* Copies a byte stream from a base16 stream * * LIBUNA_BASE16_FLAG_STRIP_WHITESPACE removes leading space and tab characters, * and trailing space, tab and end of line characters * * Returns 1 if successful or -1 on error */ int libuna_base16_stream_copy_to_byte_stream( const uint8_t *base16_stream, size_t base16_stream_size, uint8_t *byte_stream, size_t byte_stream_size, uint32_t base16_variant, uint8_t flags, libcerror_error_t **error ) { static char *function = "libuna_base16_stream_copy_to_byte_stream"; size_t base16_character_size = 0; size_t base16_stream_index = 0; size_t byte_stream_index = 0; size_t number_of_characters = 0; size_t whitespace_size = 0; uint32_t base16_character1 = 0; uint32_t base16_character2 = 0; uint8_t byte_value = 0; uint8_t character_case = 0; uint8_t character_limit = 0; uint8_t strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; if( base16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base16 stream.", function ); return( -1 ); } if( base16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base16 stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } switch( base16_variant & 0x000000ffUL ) { case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0x000f0000UL ) { case LIBUNA_BASE16_VARIANT_CASE_LOWER: character_case = LIBUNA_CASE_LOWER; break; case LIBUNA_BASE16_VARIANT_CASE_MIXED: character_case = LIBUNA_CASE_MIXED; break; case LIBUNA_BASE16_VARIANT_CASE_UPPER: character_case = LIBUNA_CASE_UPPER; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_character_size = 1; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base16_character_size = 2; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base16_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } if( ( flags & ~( LIBUNA_BASE16_FLAG_STRIP_WHITESPACE ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags.", function ); return( -1 ); } /* Ignore trailing whitespace */ if( base16_stream_size > base16_character_size ) { base16_stream_index = base16_stream_size - base16_character_size; whitespace_size = 0; while( base16_stream_index > base16_character_size ) { if( libuna_base16_character_copy_from_base16_stream( &base16_character1, &( base16_stream[ base16_stream_index ] ), base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base16 character at index: %" PRIzd ".", function, base16_stream_index ); return( -1 ); } base16_stream_index -= base16_character_size; if( ( base16_character1 == (uint32_t) '\n' ) || ( base16_character1 == (uint32_t) '\r' ) ) { whitespace_size += base16_character_size; } else if( ( flags & LIBUNA_BASE16_FLAG_STRIP_WHITESPACE ) == 0 ) { break; } else if( ( base16_character1 == (uint32_t) ' ' ) || ( base16_character1 == (uint32_t) '\t' ) || ( base16_character1 == (uint32_t) '\v' ) ) { whitespace_size += base16_character_size; } else { break; } } base16_stream_size -= whitespace_size; } if( ( flags & LIBUNA_BASE16_FLAG_STRIP_WHITESPACE ) == 0 ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } base16_stream_index = 0; while( base16_stream_index < base16_stream_size ) { if( libuna_base16_character_copy_from_base16_stream( &base16_character1, &( base16_stream[ base16_stream_index ] ), base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base16 character at index: %" PRIzd ".", function, base16_stream_index ); return( -1 ); } base16_stream_index += base16_character_size; if( ( base16_character1 == (uint32_t) '\n' ) || ( base16_character1 == (uint32_t) '\r' ) ) { if( ( strip_mode != LIBUNA_STRIP_MODE_NON_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { /* Handle multi-character end-of-line */ if( ( base16_stream_index + base16_character_size ) < base16_stream_size ) { if( libuna_base16_character_copy_from_base16_stream( &base16_character2, &( base16_stream[ base16_stream_index + base16_character_size ] ), base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base16 character at index: %" PRIzd ".", function, base16_stream_index ); return( -1 ); } if( ( base16_character2 == (uint32_t) '\n' ) || ( base16_character2 == (uint32_t) '\r' ) ) { base16_stream_index += base16_character_size; } } strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; } if( character_limit != 0 ) { if( number_of_characters != (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in line does not match character limit.", function ); return( -1 ); } number_of_characters = 0; } } else if( ( base16_character1 == (uint32_t) ' ' ) || ( base16_character1 == (uint32_t) '\t' ) || ( base16_character1 == (uint32_t) '\v' ) ) { if( ( flags & LIBUNA_BASE16_FLAG_STRIP_WHITESPACE ) != 0 ) { if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_TRAILING_WHITESPACE; } if( ( strip_mode != LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } else if( strip_mode == LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } else if( strip_mode == LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid character in base16 stream at index: %" PRIzd ".", function, base16_stream_index - base16_character_size ); return( -1 ); } if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { byte_value = 0; if( ( base16_character1 >= (uint32_t) 'A' ) && ( base16_character1 <= (uint32_t) 'F' ) ) { if( ( character_case != LIBUNA_CASE_MIXED ) && ( character_case != LIBUNA_CASE_UPPER ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } byte_value = (uint8_t) ( base16_character1 - (uint32_t) 'A' + 10 ); } else if( ( base16_character1 >= (uint32_t) 'a' ) && ( base16_character1 <= (uint32_t) 'f' ) ) { if( ( character_case != LIBUNA_CASE_MIXED ) && ( character_case != LIBUNA_CASE_LOWER ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } byte_value = (uint8_t) ( base16_character1 - (uint32_t) 'a' + 10 ); } else if( ( base16_character1 >= (uint32_t) '0' ) && ( base16_character1 <= (uint32_t) '9' ) ) { byte_value = (uint8_t) ( base16_character1 - (uint32_t) '0' ); } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid base16 character stream at index: %" PRIzd ".", function, base16_stream_index - base16_character_size ); return( -1 ); } byte_value <<= 4; if( libuna_base16_character_copy_from_base16_stream( &base16_character1, &( base16_stream[ base16_stream_index ] ), base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base16 character at index: %" PRIzd ".", function, base16_stream_index ); return( -1 ); } base16_stream_index += base16_character_size; if( ( base16_character1 >= (uint32_t) 'A' ) && ( base16_character1 <= (uint32_t) 'F' ) ) { if( ( character_case != LIBUNA_CASE_MIXED ) && ( character_case != LIBUNA_CASE_UPPER ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } byte_value |= (uint8_t) ( base16_character1 - (uint32_t) 'A' + 10 ); } else if( ( base16_character1 >= (uint32_t) 'a' ) && ( base16_character1 <= (uint32_t) 'f' ) ) { if( ( character_case != LIBUNA_CASE_MIXED ) && ( character_case != LIBUNA_CASE_LOWER ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } byte_value |= (uint8_t) ( base16_character1 - (uint32_t) 'a' + 10 ); } else if( ( base16_character1 >= (uint32_t) '0' ) && ( base16_character1 <= (uint32_t) '9' ) ) { byte_value |= (uint8_t) ( base16_character1 - (uint32_t) '0' ); } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid base16 character stream at index: %" PRIzd ".", function, base16_stream_index - base16_character_size ); return( -1 ); } if( byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream is too small.", function ); return( -1 ); } byte_stream[ byte_stream_index++ ] = byte_value; number_of_characters += 2; } } if( character_limit != 0 ) { if( number_of_characters > (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in last line exceed maximum.", function ); return( -1 ); } } return( 1 ); } /* Determines the size of a base16 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base16_stream_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, size_t *base16_stream_size, uint32_t base16_variant, libcerror_error_t **error ) { static char *function = "libuna_base16_stream_size_from_byte_stream"; size_t base16_character_size = 0; size_t safe_base16_stream_size = 0; size_t whitespace_size = 0; uint8_t character_limit = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( base16_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base16 stream size.", function ); return( -1 ); } switch( base16_variant & 0x000000ffUL ) { case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0x000f0000UL ) { case LIBUNA_BASE16_VARIANT_CASE_LOWER: case LIBUNA_BASE16_VARIANT_CASE_MIXED: case LIBUNA_BASE16_VARIANT_CASE_UPPER: break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_character_size = 1; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base16_character_size = 2; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base16_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } /* The base16 stream contains 2 characters for every byte */ safe_base16_stream_size = byte_stream_size * 2; if( character_limit != 0 ) { whitespace_size = safe_base16_stream_size / character_limit; if( ( safe_base16_stream_size % character_limit ) != 0 ) { whitespace_size += 1; } safe_base16_stream_size += whitespace_size; } *base16_stream_size = safe_base16_stream_size * base16_character_size; return( 1 ); } /* Copies a base16 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base16_stream_copy_from_byte_stream( uint8_t *base16_stream, size_t base16_stream_size, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base16_variant, libcerror_error_t **error ) { static char *function = "libuna_base16_stream_copy_from_byte_stream"; size_t base16_stream_index = 0; if( libuna_base16_stream_with_index_copy_from_byte_stream( base16_stream, base16_stream_size, &base16_stream_index, byte_stream, byte_stream_size, base16_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy base16 stream from byte stream.", function ); return( -1 ); } return( 1 ); } /* Copies a base16 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base16_stream_with_index_copy_from_byte_stream( uint8_t *base16_stream, size_t base16_stream_size, size_t *base16_stream_index, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base16_variant, libcerror_error_t **error ) { static char *function = "libuna_base16_stream_with_index_copy_from_byte_stream"; size_t base16_character_size = 0; size_t byte_stream_index = 0; size_t calculated_base16_stream_size = 0; size_t number_of_characters = 0; size_t safe_base16_stream_index = 0; size_t whitespace_size = 0; uint32_t a_character_value = 0; uint32_t base16_character = 0; uint8_t character_limit = 0; if( base16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base16 stream.", function ); return( -1 ); } if( base16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base16 stream size value exceeds maximum.", function ); return( -1 ); } if( base16_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base16 stream index.", function ); return( -1 ); } if( *base16_stream_index >= base16_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base16 stream string too small.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } switch( base16_variant & 0x000000ffUL ) { case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0x000f0000UL ) { case LIBUNA_BASE16_VARIANT_CASE_LOWER: a_character_value = (uint32_t) 'a' - 10; break; case LIBUNA_BASE16_VARIANT_CASE_MIXED: case LIBUNA_BASE16_VARIANT_CASE_UPPER: a_character_value = (uint32_t) 'A' - 10; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_character_size = 1; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base16_character_size = 2; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base16_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base16 variant.", function ); return( -1 ); } safe_base16_stream_index = *base16_stream_index; /* Make sure the base16 stream is able to hold * at least 2 bytes for each byte */ calculated_base16_stream_size = byte_stream_size * 2; if( character_limit != 0 ) { whitespace_size = calculated_base16_stream_size / character_limit; if( ( calculated_base16_stream_size % character_limit ) != 0 ) { whitespace_size += 1; } calculated_base16_stream_size += whitespace_size; } calculated_base16_stream_size *= base16_character_size; if( base16_stream_size < calculated_base16_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base16 stream is too small.", function ); return( -1 ); } while( byte_stream_index < byte_stream_size ) { base16_character = byte_stream[ byte_stream_index ] >> 4; if( base16_character <= 9 ) { base16_character += (uint32_t) '0'; } else { base16_character += a_character_value; } switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_stream[ safe_base16_stream_index ] = (uint8_t) base16_character; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; } safe_base16_stream_index += base16_character_size; base16_character = byte_stream[ byte_stream_index ] & 0x0f; if( base16_character <= 9 ) { base16_character += (uint32_t) '0'; } else { base16_character += a_character_value; } switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_stream[ safe_base16_stream_index ] = (uint8_t) base16_character; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; } safe_base16_stream_index += base16_character_size; if( character_limit != 0 ) { number_of_characters += 2; if( number_of_characters >= (size_t) character_limit ) { base16_character = (uint32_t) '\n'; switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_stream[ safe_base16_stream_index ] = (uint8_t) base16_character; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; } safe_base16_stream_index += base16_character_size; number_of_characters = 0; } } byte_stream_index++; } if( character_limit != 0 ) { if( number_of_characters != 0 ) { base16_character = (uint32_t) '\n'; switch( base16_variant & 0xf0000000UL ) { case LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM: base16_stream[ safe_base16_stream_index ] = (uint8_t) base16_character; break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; case LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base16_stream[ safe_base16_stream_index ] ), base16_character ); break; } safe_base16_stream_index += base16_character_size; } } *base16_stream_index = safe_base16_stream_index; return( 1 ); } libfsapfs-20190210/libuna/libuna_codepage_windows_1250.h0000664000175000017500000000342013430101233024755 0ustar00lordyestalordyesta00000000000000/* * Windows 1250 codepage (Central European) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1250_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1250_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ 72 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ 8 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ 24 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ 16 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1250_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_16.h0000664000175000017500000000337113430101233024416 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-16 codepage (Latin 10) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_16_H ) #define _LIBUNA_CODEPAGE_ISO_8859_16_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_16_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x00a8[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0140[ 8 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0150[ 8 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0178[ 8 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0218[ 8 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_16_H ) */ libfsapfs-20190210/libuna/libuna_utf16_stream.h0000664000175000017500000000604413430101233023312 0ustar00lordyestalordyesta00000000000000/* * UTF-16 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UTF16_STREAM_H ) #define _LIBUNA_UTF16_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_utf16_stream_copy_byte_order_mark( uint8_t *utf16_stream, size_t utf16_stream_size, size_t *utf16_stream_index, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf16_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_stream_copy_from_utf8( uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_stream_copy_to_utf8 is implemented by * libuna_utf8_string_copy_from_utf16_stream */ LIBUNA_EXTERN \ int libuna_utf16_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_stream_copy_from_utf16( uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_stream_copy_to_utf16 is implemented by * libuna_utf16_string_copy_from_utf16_stream */ LIBUNA_EXTERN \ int libuna_utf16_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf16_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_stream_copy_from_utf32( uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_stream_copy_to_utf32 is implemented by * libuna_utf32_string_copy_from_utf16_stream */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UTF16_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_10.h0000664000175000017500000000266213430101233024412 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-10 codepage (Nordic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_10_H ) #define _LIBUNA_CODEPAGE_ISO_8859_10_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_10_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_10_unicode_to_byte_stream_base_0x00c0[ 144 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_10_unicode_to_byte_stream_base_0x0160[ 16 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_10_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_932.c0000664000175000017500000105716513430101233024716 0ustar00lordyestalordyesta00000000000000/* * Windows 932 codepage (Japanese Shift-JIS) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_932.h" #include "libuna_libcerror.h" #include "libuna_types.h" /* Extended ASCII to Unicode character lookup table for Windows 932 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8140[ 109 ] = { 0x3000, 0x3001, 0x3002, 0xff0c, 0xff0e, 0x30fb, 0xff1a, 0xff1b, 0xff1f, 0xff01, 0x309b, 0x309c, 0x00b4, 0xff40, 0x00a8, 0xff3e, 0xffe3, 0xff3f, 0x30fd, 0x30fe, 0x309d, 0x309e, 0x3003, 0x4edd, 0x3005, 0x3006, 0x3007, 0x30fc, 0x2015, 0x2010, 0xff0f, 0xff3c, 0xff5e, 0x2225, 0xff5c, 0x2026, 0x2025, 0x2018, 0x2019, 0x201c, 0x201d, 0xff08, 0xff09, 0x3014, 0x3015, 0xff3b, 0xff3d, 0xff5b, 0xff5d, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, 0x300d, 0x300e, 0x300f, 0x3010, 0x3011, 0xff0b, 0xff0d, 0x00b1, 0x00d7, 0xfffd, 0x00f7, 0xff1d, 0x2260, 0xff1c, 0xff1e, 0x2266, 0x2267, 0x221e, 0x2234, 0x2642, 0x2640, 0x00b0, 0x2032, 0x2033, 0x2103, 0xffe5, 0xff04, 0xffe0, 0xffe1, 0xff05, 0xff03, 0xff06, 0xff0a, 0xff20, 0x00a7, 0x2606, 0x2605, 0x25cb, 0x25cf, 0x25ce, 0x25c7, 0x25c6, 0x25a1, 0x25a0, 0x25b3, 0x25b2, 0x25bd, 0x25bc, 0x203b, 0x3012, 0x2192, 0x2190, 0x2191, 0x2193, 0x3013 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81b8[ 8 ] = { 0x2208, 0x220b, 0x2286, 0x2287, 0x2282, 0x2283, 0x222a, 0x2229 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81c8[ 7 ] = { 0x2227, 0x2228, 0xffe2, 0x21d2, 0x21d4, 0x2200, 0x2203 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81da[ 15 ] = { 0x2220, 0x22a5, 0x2312, 0x2202, 0x2207, 0x2261, 0x2252, 0x226a, 0x226b, 0x221a, 0x223d, 0x221d, 0x2235, 0x222b, 0x222c }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81f0[ 8 ] = { 0x212b, 0x2030, 0x266f, 0x266d, 0x266a, 0x2020, 0x2021, 0x00b6 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8440[ 33 ] = { 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0401, 0x0416, 0x0417, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8470[ 15 ] = { 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0451, 0x0436, 0x0437, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x849f[ 32 ] = { 0x2500, 0x2502, 0x250c, 0x2510, 0x2518, 0x2514, 0x251c, 0x252c, 0x2524, 0x2534, 0x253c, 0x2501, 0x2503, 0x250f, 0x2513, 0x251b, 0x2517, 0x2523, 0x2533, 0x252b, 0x253b, 0x254b, 0x2520, 0x252f, 0x2528, 0x2537, 0x253f, 0x251d, 0x2530, 0x2525, 0x2538, 0x2542 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x875f[ 23 ] = { 0x3349, 0x3314, 0x3322, 0x334d, 0x3318, 0x3327, 0x3303, 0x3336, 0x3351, 0x3357, 0x330d, 0x3326, 0x3323, 0x332b, 0x334a, 0x333b, 0x339c, 0x339d, 0x339e, 0x338e, 0x338f, 0x33c4, 0x33a1 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8780[ 29 ] = { 0x301d, 0x301f, 0x2116, 0x33cd, 0x2121, 0x32a4, 0x32a5, 0x32a6, 0x32a7, 0x32a8, 0x3231, 0x3232, 0x3239, 0x337e, 0x337d, 0x337c, 0x2252, 0x2261, 0x222b, 0x222e, 0x2211, 0x221a, 0x22a5, 0x2220, 0x221f, 0x22bf, 0x2235, 0x2229, 0x222a }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x889f[ 94 ] = { 0x4e9c, 0x5516, 0x5a03, 0x963f, 0x54c0, 0x611b, 0x6328, 0x59f6, 0x9022, 0x8475, 0x831c, 0x7a50, 0x60aa, 0x63e1, 0x6e25, 0x65ed, 0x8466, 0x82a6, 0x9bf5, 0x6893, 0x5727, 0x65a1, 0x6271, 0x5b9b, 0x59d0, 0x867b, 0x98f4, 0x7d62, 0x7dbe, 0x9b8e, 0x6216, 0x7c9f, 0x88b7, 0x5b89, 0x5eb5, 0x6309, 0x6697, 0x6848, 0x95c7, 0x978d, 0x674f, 0x4ee5, 0x4f0a, 0x4f4d, 0x4f9d, 0x5049, 0x56f2, 0x5937, 0x59d4, 0x5a01, 0x5c09, 0x60df, 0x610f, 0x6170, 0x6613, 0x6905, 0x70ba, 0x754f, 0x7570, 0x79fb, 0x7dad, 0x7def, 0x80c3, 0x840e, 0x8863, 0x8b02, 0x9055, 0x907a, 0x533b, 0x4e95, 0x4ea5, 0x57df, 0x80b2, 0x90c1, 0x78ef, 0x4e00, 0x58f1, 0x6ea2, 0x9038, 0x7a32, 0x8328, 0x828b, 0x9c2f, 0x5141, 0x5370, 0x54bd, 0x54e1, 0x56e0, 0x59fb, 0x5f15, 0x98f2, 0x6deb, 0x80e4, 0x852d }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8940[ 189 ] = { 0x9662, 0x9670, 0x96a0, 0x97fb, 0x540b, 0x53f3, 0x5b87, 0x70cf, 0x7fbd, 0x8fc2, 0x96e8, 0x536f, 0x9d5c, 0x7aba, 0x4e11, 0x7893, 0x81fc, 0x6e26, 0x5618, 0x5504, 0x6b1d, 0x851a, 0x9c3b, 0x59e5, 0x53a9, 0x6d66, 0x74dc, 0x958f, 0x5642, 0x4e91, 0x904b, 0x96f2, 0x834f, 0x990c, 0x53e1, 0x55b6, 0x5b30, 0x5f71, 0x6620, 0x66f3, 0x6804, 0x6c38, 0x6cf3, 0x6d29, 0x745b, 0x76c8, 0x7a4e, 0x9834, 0x82f1, 0x885b, 0x8a60, 0x92ed, 0x6db2, 0x75ab, 0x76ca, 0x99c5, 0x60a6, 0x8b01, 0x8d8a, 0x95b2, 0x698e, 0x53ad, 0x5186, 0xfffd, 0x5712, 0x5830, 0x5944, 0x5bb4, 0x5ef6, 0x6028, 0x63a9, 0x63f4, 0x6cbf, 0x6f14, 0x708e, 0x7114, 0x7159, 0x71d5, 0x733f, 0x7e01, 0x8276, 0x82d1, 0x8597, 0x9060, 0x925b, 0x9d1b, 0x5869, 0x65bc, 0x6c5a, 0x7525, 0x51f9, 0x592e, 0x5965, 0x5f80, 0x5fdc, 0x62bc, 0x65fa, 0x6a2a, 0x6b27, 0x6bb4, 0x738b, 0x7fc1, 0x8956, 0x9d2c, 0x9d0e, 0x9ec4, 0x5ca1, 0x6c96, 0x837b, 0x5104, 0x5c4b, 0x61b6, 0x81c6, 0x6876, 0x7261, 0x4e59, 0x4ffa, 0x5378, 0x6069, 0x6e29, 0x7a4f, 0x97f3, 0x4e0b, 0x5316, 0x4eee, 0x4f55, 0x4f3d, 0x4fa1, 0x4f73, 0x52a0, 0x53ef, 0x5609, 0x590f, 0x5ac1, 0x5bb6, 0x5be1, 0x79d1, 0x6687, 0x679c, 0x67b6, 0x6b4c, 0x6cb3, 0x706b, 0x73c2, 0x798d, 0x79be, 0x7a3c, 0x7b87, 0x82b1, 0x82db, 0x8304, 0x8377, 0x83ef, 0x83d3, 0x8766, 0x8ab2, 0x5629, 0x8ca8, 0x8fe6, 0x904e, 0x971e, 0x868a, 0x4fc4, 0x5ce8, 0x6211, 0x7259, 0x753b, 0x81e5, 0x82bd, 0x86fe, 0x8cc0, 0x96c5, 0x9913, 0x99d5, 0x4ecb, 0x4f1a, 0x89e3, 0x56de, 0x584a, 0x58ca, 0x5efb, 0x5feb, 0x602a, 0x6094, 0x6062, 0x61d0, 0x6212, 0x62d0, 0x6539 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8a40[ 189 ] = { 0x9b41, 0x6666, 0x68b0, 0x6d77, 0x7070, 0x754c, 0x7686, 0x7d75, 0x82a5, 0x87f9, 0x958b, 0x968e, 0x8c9d, 0x51f1, 0x52be, 0x5916, 0x54b3, 0x5bb3, 0x5d16, 0x6168, 0x6982, 0x6daf, 0x788d, 0x84cb, 0x8857, 0x8a72, 0x93a7, 0x9ab8, 0x6d6c, 0x99a8, 0x86d9, 0x57a3, 0x67ff, 0x86ce, 0x920e, 0x5283, 0x5687, 0x5404, 0x5ed3, 0x62e1, 0x64b9, 0x683c, 0x6838, 0x6bbb, 0x7372, 0x78ba, 0x7a6b, 0x899a, 0x89d2, 0x8d6b, 0x8f03, 0x90ed, 0x95a3, 0x9694, 0x9769, 0x5b66, 0x5cb3, 0x697d, 0x984d, 0x984e, 0x639b, 0x7b20, 0x6a2b, 0xfffd, 0x6a7f, 0x68b6, 0x9c0d, 0x6f5f, 0x5272, 0x559d, 0x6070, 0x62ec, 0x6d3b, 0x6e07, 0x6ed1, 0x845b, 0x8910, 0x8f44, 0x4e14, 0x9c39, 0x53f6, 0x691b, 0x6a3a, 0x9784, 0x682a, 0x515c, 0x7ac3, 0x84b2, 0x91dc, 0x938c, 0x565b, 0x9d28, 0x6822, 0x8305, 0x8431, 0x7ca5, 0x5208, 0x82c5, 0x74e6, 0x4e7e, 0x4f83, 0x51a0, 0x5bd2, 0x520a, 0x52d8, 0x52e7, 0x5dfb, 0x559a, 0x582a, 0x59e6, 0x5b8c, 0x5b98, 0x5bdb, 0x5e72, 0x5e79, 0x60a3, 0x611f, 0x6163, 0x61be, 0x63db, 0x6562, 0x67d1, 0x6853, 0x68fa, 0x6b3e, 0x6b53, 0x6c57, 0x6f22, 0x6f97, 0x6f45, 0x74b0, 0x7518, 0x76e3, 0x770b, 0x7aff, 0x7ba1, 0x7c21, 0x7de9, 0x7f36, 0x7ff0, 0x809d, 0x8266, 0x839e, 0x89b3, 0x8acc, 0x8cab, 0x9084, 0x9451, 0x9593, 0x9591, 0x95a2, 0x9665, 0x97d3, 0x9928, 0x8218, 0x4e38, 0x542b, 0x5cb8, 0x5dcc, 0x73a9, 0x764c, 0x773c, 0x5ca9, 0x7feb, 0x8d0b, 0x96c1, 0x9811, 0x9854, 0x9858, 0x4f01, 0x4f0e, 0x5371, 0x559c, 0x5668, 0x57fa, 0x5947, 0x5b09, 0x5bc4, 0x5c90, 0x5e0c, 0x5e7e, 0x5fcc, 0x63ee, 0x673a, 0x65d7, 0x65e2, 0x671f, 0x68cb, 0x68c4 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8b40[ 189 ] = { 0x6a5f, 0x5e30, 0x6bc5, 0x6c17, 0x6c7d, 0x757f, 0x7948, 0x5b63, 0x7a00, 0x7d00, 0x5fbd, 0x898f, 0x8a18, 0x8cb4, 0x8d77, 0x8ecc, 0x8f1d, 0x98e2, 0x9a0e, 0x9b3c, 0x4e80, 0x507d, 0x5100, 0x5993, 0x5b9c, 0x622f, 0x6280, 0x64ec, 0x6b3a, 0x72a0, 0x7591, 0x7947, 0x7fa9, 0x87fb, 0x8abc, 0x8b70, 0x63ac, 0x83ca, 0x97a0, 0x5409, 0x5403, 0x55ab, 0x6854, 0x6a58, 0x8a70, 0x7827, 0x6775, 0x9ecd, 0x5374, 0x5ba2, 0x811a, 0x8650, 0x9006, 0x4e18, 0x4e45, 0x4ec7, 0x4f11, 0x53ca, 0x5438, 0x5bae, 0x5f13, 0x6025, 0x6551, 0xfffd, 0x673d, 0x6c42, 0x6c72, 0x6ce3, 0x7078, 0x7403, 0x7a76, 0x7aae, 0x7b08, 0x7d1a, 0x7cfe, 0x7d66, 0x65e7, 0x725b, 0x53bb, 0x5c45, 0x5de8, 0x62d2, 0x62e0, 0x6319, 0x6e20, 0x865a, 0x8a31, 0x8ddd, 0x92f8, 0x6f01, 0x79a6, 0x9b5a, 0x4ea8, 0x4eab, 0x4eac, 0x4f9b, 0x4fa0, 0x50d1, 0x5147, 0x7af6, 0x5171, 0x51f6, 0x5354, 0x5321, 0x537f, 0x53eb, 0x55ac, 0x5883, 0x5ce1, 0x5f37, 0x5f4a, 0x602f, 0x6050, 0x606d, 0x631f, 0x6559, 0x6a4b, 0x6cc1, 0x72c2, 0x72ed, 0x77ef, 0x80f8, 0x8105, 0x8208, 0x854e, 0x90f7, 0x93e1, 0x97ff, 0x9957, 0x9a5a, 0x4ef0, 0x51dd, 0x5c2d, 0x6681, 0x696d, 0x5c40, 0x66f2, 0x6975, 0x7389, 0x6850, 0x7c81, 0x50c5, 0x52e4, 0x5747, 0x5dfe, 0x9326, 0x65a4, 0x6b23, 0x6b3d, 0x7434, 0x7981, 0x79bd, 0x7b4b, 0x7dca, 0x82b9, 0x83cc, 0x887f, 0x895f, 0x8b39, 0x8fd1, 0x91d1, 0x541f, 0x9280, 0x4e5d, 0x5036, 0x53e5, 0x533a, 0x72d7, 0x7396, 0x77e9, 0x82e6, 0x8eaf, 0x99c6, 0x99c8, 0x99d2, 0x5177, 0x611a, 0x865e, 0x55b0, 0x7a7a, 0x5076, 0x5bd3, 0x9047, 0x9685, 0x4e32, 0x6adb, 0x91e7, 0x5c51, 0x5c48 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8c40[ 189 ] = { 0x6398, 0x7a9f, 0x6c93, 0x9774, 0x8f61, 0x7aaa, 0x718a, 0x9688, 0x7c82, 0x6817, 0x7e70, 0x6851, 0x936c, 0x52f2, 0x541b, 0x85ab, 0x8a13, 0x7fa4, 0x8ecd, 0x90e1, 0x5366, 0x8888, 0x7941, 0x4fc2, 0x50be, 0x5211, 0x5144, 0x5553, 0x572d, 0x73ea, 0x578b, 0x5951, 0x5f62, 0x5f84, 0x6075, 0x6176, 0x6167, 0x61a9, 0x63b2, 0x643a, 0x656c, 0x666f, 0x6842, 0x6e13, 0x7566, 0x7a3d, 0x7cfb, 0x7d4c, 0x7d99, 0x7e4b, 0x7f6b, 0x830e, 0x834a, 0x86cd, 0x8a08, 0x8a63, 0x8b66, 0x8efd, 0x981a, 0x9d8f, 0x82b8, 0x8fce, 0x9be8, 0xfffd, 0x5287, 0x621f, 0x6483, 0x6fc0, 0x9699, 0x6841, 0x5091, 0x6b20, 0x6c7a, 0x6f54, 0x7a74, 0x7d50, 0x8840, 0x8a23, 0x6708, 0x4ef6, 0x5039, 0x5026, 0x5065, 0x517c, 0x5238, 0x5263, 0x55a7, 0x570f, 0x5805, 0x5acc, 0x5efa, 0x61b2, 0x61f8, 0x62f3, 0x6372, 0x691c, 0x6a29, 0x727d, 0x72ac, 0x732e, 0x7814, 0x786f, 0x7d79, 0x770c, 0x80a9, 0x898b, 0x8b19, 0x8ce2, 0x8ed2, 0x9063, 0x9375, 0x967a, 0x9855, 0x9a13, 0x9e78, 0x5143, 0x539f, 0x53b3, 0x5e7b, 0x5f26, 0x6e1b, 0x6e90, 0x7384, 0x73fe, 0x7d43, 0x8237, 0x8a00, 0x8afa, 0x9650, 0x4e4e, 0x500b, 0x53e4, 0x547c, 0x56fa, 0x59d1, 0x5b64, 0x5df1, 0x5eab, 0x5f27, 0x6238, 0x6545, 0x67af, 0x6e56, 0x72d0, 0x7cca, 0x88b4, 0x80a1, 0x80e1, 0x83f0, 0x864e, 0x8a87, 0x8de8, 0x9237, 0x96c7, 0x9867, 0x9f13, 0x4e94, 0x4e92, 0x4f0d, 0x5348, 0x5449, 0x543e, 0x5a2f, 0x5f8c, 0x5fa1, 0x609f, 0x68a7, 0x6a8e, 0x745a, 0x7881, 0x8a9e, 0x8aa4, 0x8b77, 0x9190, 0x4e5e, 0x9bc9, 0x4ea4, 0x4f7c, 0x4faf, 0x5019, 0x5016, 0x5149, 0x516c, 0x529f, 0x52b9, 0x52fe, 0x539a, 0x53e3, 0x5411 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8d40[ 189 ] = { 0x540e, 0x5589, 0x5751, 0x57a2, 0x597d, 0x5b54, 0x5b5d, 0x5b8f, 0x5de5, 0x5de7, 0x5df7, 0x5e78, 0x5e83, 0x5e9a, 0x5eb7, 0x5f18, 0x6052, 0x614c, 0x6297, 0x62d8, 0x63a7, 0x653b, 0x6602, 0x6643, 0x66f4, 0x676d, 0x6821, 0x6897, 0x69cb, 0x6c5f, 0x6d2a, 0x6d69, 0x6e2f, 0x6e9d, 0x7532, 0x7687, 0x786c, 0x7a3f, 0x7ce0, 0x7d05, 0x7d18, 0x7d5e, 0x7db1, 0x8015, 0x8003, 0x80af, 0x80b1, 0x8154, 0x818f, 0x822a, 0x8352, 0x884c, 0x8861, 0x8b1b, 0x8ca2, 0x8cfc, 0x90ca, 0x9175, 0x9271, 0x783f, 0x92fc, 0x95a4, 0x964d, 0xfffd, 0x9805, 0x9999, 0x9ad8, 0x9d3b, 0x525b, 0x52ab, 0x53f7, 0x5408, 0x58d5, 0x62f7, 0x6fe0, 0x8c6a, 0x8f5f, 0x9eb9, 0x514b, 0x523b, 0x544a, 0x56fd, 0x7a40, 0x9177, 0x9d60, 0x9ed2, 0x7344, 0x6f09, 0x8170, 0x7511, 0x5ffd, 0x60da, 0x9aa8, 0x72db, 0x8fbc, 0x6b64, 0x9803, 0x4eca, 0x56f0, 0x5764, 0x58be, 0x5a5a, 0x6068, 0x61c7, 0x660f, 0x6606, 0x6839, 0x68b1, 0x6df7, 0x75d5, 0x7d3a, 0x826e, 0x9b42, 0x4e9b, 0x4f50, 0x53c9, 0x5506, 0x5d6f, 0x5de6, 0x5dee, 0x67fb, 0x6c99, 0x7473, 0x7802, 0x8a50, 0x9396, 0x88df, 0x5750, 0x5ea7, 0x632b, 0x50b5, 0x50ac, 0x518d, 0x6700, 0x54c9, 0x585e, 0x59bb, 0x5bb0, 0x5f69, 0x624d, 0x63a1, 0x683d, 0x6b73, 0x6e08, 0x707d, 0x91c7, 0x7280, 0x7815, 0x7826, 0x796d, 0x658e, 0x7d30, 0x83dc, 0x88c1, 0x8f09, 0x969b, 0x5264, 0x5728, 0x6750, 0x7f6a, 0x8ca1, 0x51b4, 0x5742, 0x962a, 0x583a, 0x698a, 0x80b4, 0x54b2, 0x5d0e, 0x57fc, 0x7895, 0x9dfa, 0x4f5c, 0x524a, 0x548b, 0x643e, 0x6628, 0x6714, 0x67f5, 0x7a84, 0x7b56, 0x7d22, 0x932f, 0x685c, 0x9bad, 0x7b39, 0x5319, 0x518a, 0x5237 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8e40[ 189 ] = { 0x5bdf, 0x62f6, 0x64ae, 0x64e6, 0x672d, 0x6bba, 0x85a9, 0x96d1, 0x7690, 0x9bd6, 0x634c, 0x9306, 0x9bab, 0x76bf, 0x6652, 0x4e09, 0x5098, 0x53c2, 0x5c71, 0x60e8, 0x6492, 0x6563, 0x685f, 0x71e6, 0x73ca, 0x7523, 0x7b97, 0x7e82, 0x8695, 0x8b83, 0x8cdb, 0x9178, 0x9910, 0x65ac, 0x66ab, 0x6b8b, 0x4ed5, 0x4ed4, 0x4f3a, 0x4f7f, 0x523a, 0x53f8, 0x53f2, 0x55e3, 0x56db, 0x58eb, 0x59cb, 0x59c9, 0x59ff, 0x5b50, 0x5c4d, 0x5e02, 0x5e2b, 0x5fd7, 0x601d, 0x6307, 0x652f, 0x5b5c, 0x65af, 0x65bd, 0x65e8, 0x679d, 0x6b62, 0xfffd, 0x6b7b, 0x6c0f, 0x7345, 0x7949, 0x79c1, 0x7cf8, 0x7d19, 0x7d2b, 0x80a2, 0x8102, 0x81f3, 0x8996, 0x8a5e, 0x8a69, 0x8a66, 0x8a8c, 0x8aee, 0x8cc7, 0x8cdc, 0x96cc, 0x98fc, 0x6b6f, 0x4e8b, 0x4f3c, 0x4f8d, 0x5150, 0x5b57, 0x5bfa, 0x6148, 0x6301, 0x6642, 0x6b21, 0x6ecb, 0x6cbb, 0x723e, 0x74bd, 0x75d4, 0x78c1, 0x793a, 0x800c, 0x8033, 0x81ea, 0x8494, 0x8f9e, 0x6c50, 0x9e7f, 0x5f0f, 0x8b58, 0x9d2b, 0x7afa, 0x8ef8, 0x5b8d, 0x96eb, 0x4e03, 0x53f1, 0x57f7, 0x5931, 0x5ac9, 0x5ba4, 0x6089, 0x6e7f, 0x6f06, 0x75be, 0x8cea, 0x5b9f, 0x8500, 0x7be0, 0x5072, 0x67f4, 0x829d, 0x5c61, 0x854a, 0x7e1e, 0x820e, 0x5199, 0x5c04, 0x6368, 0x8d66, 0x659c, 0x716e, 0x793e, 0x7d17, 0x8005, 0x8b1d, 0x8eca, 0x906e, 0x86c7, 0x90aa, 0x501f, 0x52fa, 0x5c3a, 0x6753, 0x707c, 0x7235, 0x914c, 0x91c8, 0x932b, 0x82e5, 0x5bc2, 0x5f31, 0x60f9, 0x4e3b, 0x53d6, 0x5b88, 0x624b, 0x6731, 0x6b8a, 0x72e9, 0x73e0, 0x7a2e, 0x816b, 0x8da3, 0x9152, 0x9996, 0x5112, 0x53d7, 0x546a, 0x5bff, 0x6388, 0x6a39, 0x7dac, 0x9700, 0x56da, 0x53ce, 0x5468 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8f40[ 189 ] = { 0x5b97, 0x5c31, 0x5dde, 0x4fee, 0x6101, 0x62fe, 0x6d32, 0x79c0, 0x79cb, 0x7d42, 0x7e4d, 0x7fd2, 0x81ed, 0x821f, 0x8490, 0x8846, 0x8972, 0x8b90, 0x8e74, 0x8f2f, 0x9031, 0x914b, 0x916c, 0x96c6, 0x919c, 0x4ec0, 0x4f4f, 0x5145, 0x5341, 0x5f93, 0x620e, 0x67d4, 0x6c41, 0x6e0b, 0x7363, 0x7e26, 0x91cd, 0x9283, 0x53d4, 0x5919, 0x5bbf, 0x6dd1, 0x795d, 0x7e2e, 0x7c9b, 0x587e, 0x719f, 0x51fa, 0x8853, 0x8ff0, 0x4fca, 0x5cfb, 0x6625, 0x77ac, 0x7ae3, 0x821c, 0x99ff, 0x51c6, 0x5faa, 0x65ec, 0x696f, 0x6b89, 0x6df3, 0xfffd, 0x6e96, 0x6f64, 0x76fe, 0x7d14, 0x5de1, 0x9075, 0x9187, 0x9806, 0x51e6, 0x521d, 0x6240, 0x6691, 0x66d9, 0x6e1a, 0x5eb6, 0x7dd2, 0x7f72, 0x66f8, 0x85af, 0x85f7, 0x8af8, 0x52a9, 0x53d9, 0x5973, 0x5e8f, 0x5f90, 0x6055, 0x92e4, 0x9664, 0x50b7, 0x511f, 0x52dd, 0x5320, 0x5347, 0x53ec, 0x54e8, 0x5546, 0x5531, 0x5617, 0x5968, 0x59be, 0x5a3c, 0x5bb5, 0x5c06, 0x5c0f, 0x5c11, 0x5c1a, 0x5e84, 0x5e8a, 0x5ee0, 0x5f70, 0x627f, 0x6284, 0x62db, 0x638c, 0x6377, 0x6607, 0x660c, 0x662d, 0x6676, 0x677e, 0x68a2, 0x6a1f, 0x6a35, 0x6cbc, 0x6d88, 0x6e09, 0x6e58, 0x713c, 0x7126, 0x7167, 0x75c7, 0x7701, 0x785d, 0x7901, 0x7965, 0x79f0, 0x7ae0, 0x7b11, 0x7ca7, 0x7d39, 0x8096, 0x83d6, 0x848b, 0x8549, 0x885d, 0x88f3, 0x8a1f, 0x8a3c, 0x8a54, 0x8a73, 0x8c61, 0x8cde, 0x91a4, 0x9266, 0x937e, 0x9418, 0x969c, 0x9798, 0x4e0a, 0x4e08, 0x4e1e, 0x4e57, 0x5197, 0x5270, 0x57ce, 0x5834, 0x58cc, 0x5b22, 0x5e38, 0x60c5, 0x64fe, 0x6761, 0x6756, 0x6d44, 0x72b6, 0x7573, 0x7a63, 0x84b8, 0x8b72, 0x91b8, 0x9320, 0x5631, 0x57f4, 0x98fe }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9040[ 189 ] = { 0x62ed, 0x690d, 0x6b96, 0x71ed, 0x7e54, 0x8077, 0x8272, 0x89e6, 0x98df, 0x8755, 0x8fb1, 0x5c3b, 0x4f38, 0x4fe1, 0x4fb5, 0x5507, 0x5a20, 0x5bdd, 0x5be9, 0x5fc3, 0x614e, 0x632f, 0x65b0, 0x664b, 0x68ee, 0x699b, 0x6d78, 0x6df1, 0x7533, 0x75b9, 0x771f, 0x795e, 0x79e6, 0x7d33, 0x81e3, 0x82af, 0x85aa, 0x89aa, 0x8a3a, 0x8eab, 0x8f9b, 0x9032, 0x91dd, 0x9707, 0x4eba, 0x4ec1, 0x5203, 0x5875, 0x58ec, 0x5c0b, 0x751a, 0x5c3d, 0x814e, 0x8a0a, 0x8fc5, 0x9663, 0x976d, 0x7b25, 0x8acf, 0x9808, 0x9162, 0x56f3, 0x53a8, 0xfffd, 0x9017, 0x5439, 0x5782, 0x5e25, 0x63a8, 0x6c34, 0x708a, 0x7761, 0x7c8b, 0x7fe0, 0x8870, 0x9042, 0x9154, 0x9310, 0x9318, 0x968f, 0x745e, 0x9ac4, 0x5d07, 0x5d69, 0x6570, 0x67a2, 0x8da8, 0x96db, 0x636e, 0x6749, 0x6919, 0x83c5, 0x9817, 0x96c0, 0x88fe, 0x6f84, 0x647a, 0x5bf8, 0x4e16, 0x702c, 0x755d, 0x662f, 0x51c4, 0x5236, 0x52e2, 0x59d3, 0x5f81, 0x6027, 0x6210, 0x653f, 0x6574, 0x661f, 0x6674, 0x68f2, 0x6816, 0x6b63, 0x6e05, 0x7272, 0x751f, 0x76db, 0x7cbe, 0x8056, 0x58f0, 0x88fd, 0x897f, 0x8aa0, 0x8a93, 0x8acb, 0x901d, 0x9192, 0x9752, 0x9759, 0x6589, 0x7a0e, 0x8106, 0x96bb, 0x5e2d, 0x60dc, 0x621a, 0x65a5, 0x6614, 0x6790, 0x77f3, 0x7a4d, 0x7c4d, 0x7e3e, 0x810a, 0x8cac, 0x8d64, 0x8de1, 0x8e5f, 0x78a9, 0x5207, 0x62d9, 0x63a5, 0x6442, 0x6298, 0x8a2d, 0x7a83, 0x7bc0, 0x8aac, 0x96ea, 0x7d76, 0x820c, 0x8749, 0x4ed9, 0x5148, 0x5343, 0x5360, 0x5ba3, 0x5c02, 0x5c16, 0x5ddd, 0x6226, 0x6247, 0x64b0, 0x6813, 0x6834, 0x6cc9, 0x6d45, 0x6d17, 0x67d3, 0x6f5c, 0x714e, 0x717d, 0x65cb, 0x7a7f, 0x7bad, 0x7dda }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9140[ 189 ] = { 0x7e4a, 0x7fa8, 0x817a, 0x821b, 0x8239, 0x85a6, 0x8a6e, 0x8cce, 0x8df5, 0x9078, 0x9077, 0x92ad, 0x9291, 0x9583, 0x9bae, 0x524d, 0x5584, 0x6f38, 0x7136, 0x5168, 0x7985, 0x7e55, 0x81b3, 0x7cce, 0x564c, 0x5851, 0x5ca8, 0x63aa, 0x66fe, 0x66fd, 0x695a, 0x72d9, 0x758f, 0x758e, 0x790e, 0x7956, 0x79df, 0x7c97, 0x7d20, 0x7d44, 0x8607, 0x8a34, 0x963b, 0x9061, 0x9f20, 0x50e7, 0x5275, 0x53cc, 0x53e2, 0x5009, 0x55aa, 0x58ee, 0x594f, 0x723d, 0x5b8b, 0x5c64, 0x531d, 0x60e3, 0x60f3, 0x635c, 0x6383, 0x633f, 0x63bb, 0xfffd, 0x64cd, 0x65e9, 0x66f9, 0x5de3, 0x69cd, 0x69fd, 0x6f15, 0x71e5, 0x4e89, 0x75e9, 0x76f8, 0x7a93, 0x7cdf, 0x7dcf, 0x7d9c, 0x8061, 0x8349, 0x8358, 0x846c, 0x84bc, 0x85fb, 0x88c5, 0x8d70, 0x9001, 0x906d, 0x9397, 0x971c, 0x9a12, 0x50cf, 0x5897, 0x618e, 0x81d3, 0x8535, 0x8d08, 0x9020, 0x4fc3, 0x5074, 0x5247, 0x5373, 0x606f, 0x6349, 0x675f, 0x6e2c, 0x8db3, 0x901f, 0x4fd7, 0x5c5e, 0x8cca, 0x65cf, 0x7d9a, 0x5352, 0x8896, 0x5176, 0x63c3, 0x5b58, 0x5b6b, 0x5c0a, 0x640d, 0x6751, 0x905c, 0x4ed6, 0x591a, 0x592a, 0x6c70, 0x8a51, 0x553e, 0x5815, 0x59a5, 0x60f0, 0x6253, 0x67c1, 0x8235, 0x6955, 0x9640, 0x99c4, 0x9a28, 0x4f53, 0x5806, 0x5bfe, 0x8010, 0x5cb1, 0x5e2f, 0x5f85, 0x6020, 0x614b, 0x6234, 0x66ff, 0x6cf0, 0x6ede, 0x80ce, 0x817f, 0x82d4, 0x888b, 0x8cb8, 0x9000, 0x902e, 0x968a, 0x9edb, 0x9bdb, 0x4ee3, 0x53f0, 0x5927, 0x7b2c, 0x918d, 0x984c, 0x9df9, 0x6edd, 0x7027, 0x5353, 0x5544, 0x5b85, 0x6258, 0x629e, 0x62d3, 0x6ca2, 0x6fef, 0x7422, 0x8a17, 0x9438, 0x6fc1, 0x8afe, 0x8338, 0x51e7, 0x86f8, 0x53ea }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9240[ 189 ] = { 0x53e9, 0x4f46, 0x9054, 0x8fb0, 0x596a, 0x8131, 0x5dfd, 0x7aea, 0x8fbf, 0x68da, 0x8c37, 0x72f8, 0x9c48, 0x6a3d, 0x8ab0, 0x4e39, 0x5358, 0x5606, 0x5766, 0x62c5, 0x63a2, 0x65e6, 0x6b4e, 0x6de1, 0x6e5b, 0x70ad, 0x77ed, 0x7aef, 0x7baa, 0x7dbb, 0x803d, 0x80c6, 0x86cb, 0x8a95, 0x935b, 0x56e3, 0x58c7, 0x5f3e, 0x65ad, 0x6696, 0x6a80, 0x6bb5, 0x7537, 0x8ac7, 0x5024, 0x77e5, 0x5730, 0x5f1b, 0x6065, 0x667a, 0x6c60, 0x75f4, 0x7a1a, 0x7f6e, 0x81f4, 0x8718, 0x9045, 0x99b3, 0x7bc9, 0x755c, 0x7af9, 0x7b51, 0x84c4, 0xfffd, 0x9010, 0x79e9, 0x7a92, 0x8336, 0x5ae1, 0x7740, 0x4e2d, 0x4ef2, 0x5b99, 0x5fe0, 0x62bd, 0x663c, 0x67f1, 0x6ce8, 0x866b, 0x8877, 0x8a3b, 0x914e, 0x92f3, 0x99d0, 0x6a17, 0x7026, 0x732a, 0x82e7, 0x8457, 0x8caf, 0x4e01, 0x5146, 0x51cb, 0x558b, 0x5bf5, 0x5e16, 0x5e33, 0x5e81, 0x5f14, 0x5f35, 0x5f6b, 0x5fb4, 0x61f2, 0x6311, 0x66a2, 0x671d, 0x6f6e, 0x7252, 0x753a, 0x773a, 0x8074, 0x8139, 0x8178, 0x8776, 0x8abf, 0x8adc, 0x8d85, 0x8df3, 0x929a, 0x9577, 0x9802, 0x9ce5, 0x52c5, 0x6357, 0x76f4, 0x6715, 0x6c88, 0x73cd, 0x8cc3, 0x93ae, 0x9673, 0x6d25, 0x589c, 0x690e, 0x69cc, 0x8ffd, 0x939a, 0x75db, 0x901a, 0x585a, 0x6802, 0x63b4, 0x69fb, 0x4f43, 0x6f2c, 0x67d8, 0x8fbb, 0x8526, 0x7db4, 0x9354, 0x693f, 0x6f70, 0x576a, 0x58f7, 0x5b2c, 0x7d2c, 0x722a, 0x540a, 0x91e3, 0x9db4, 0x4ead, 0x4f4e, 0x505c, 0x5075, 0x5243, 0x8c9e, 0x5448, 0x5824, 0x5b9a, 0x5e1d, 0x5e95, 0x5ead, 0x5ef7, 0x5f1f, 0x608c, 0x62b5, 0x633a, 0x63d0, 0x68af, 0x6c40, 0x7887, 0x798e, 0x7a0b, 0x7de0, 0x8247, 0x8a02, 0x8ae6, 0x8e44, 0x9013 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9340[ 189 ] = { 0x90b8, 0x912d, 0x91d8, 0x9f0e, 0x6ce5, 0x6458, 0x64e2, 0x6575, 0x6ef4, 0x7684, 0x7b1b, 0x9069, 0x93d1, 0x6eba, 0x54f2, 0x5fb9, 0x64a4, 0x8f4d, 0x8fed, 0x9244, 0x5178, 0x586b, 0x5929, 0x5c55, 0x5e97, 0x6dfb, 0x7e8f, 0x751c, 0x8cbc, 0x8ee2, 0x985b, 0x70b9, 0x4f1d, 0x6bbf, 0x6fb1, 0x7530, 0x96fb, 0x514e, 0x5410, 0x5835, 0x5857, 0x59ac, 0x5c60, 0x5f92, 0x6597, 0x675c, 0x6e21, 0x767b, 0x83df, 0x8ced, 0x9014, 0x90fd, 0x934d, 0x7825, 0x783a, 0x52aa, 0x5ea6, 0x571f, 0x5974, 0x6012, 0x5012, 0x515a, 0x51ac, 0xfffd, 0x51cd, 0x5200, 0x5510, 0x5854, 0x5858, 0x5957, 0x5b95, 0x5cf6, 0x5d8b, 0x60bc, 0x6295, 0x642d, 0x6771, 0x6843, 0x68bc, 0x68df, 0x76d7, 0x6dd8, 0x6e6f, 0x6d9b, 0x706f, 0x71c8, 0x5f53, 0x75d8, 0x7977, 0x7b49, 0x7b54, 0x7b52, 0x7cd6, 0x7d71, 0x5230, 0x8463, 0x8569, 0x85e4, 0x8a0e, 0x8b04, 0x8c46, 0x8e0f, 0x9003, 0x900f, 0x9419, 0x9676, 0x982d, 0x9a30, 0x95d8, 0x50cd, 0x52d5, 0x540c, 0x5802, 0x5c0e, 0x61a7, 0x649e, 0x6d1e, 0x77b3, 0x7ae5, 0x80f4, 0x8404, 0x9053, 0x9285, 0x5ce0, 0x9d07, 0x533f, 0x5f97, 0x5fb3, 0x6d9c, 0x7279, 0x7763, 0x79bf, 0x7be4, 0x6bd2, 0x72ec, 0x8aad, 0x6803, 0x6a61, 0x51f8, 0x7a81, 0x6934, 0x5c4a, 0x9cf6, 0x82eb, 0x5bc5, 0x9149, 0x701e, 0x5678, 0x5c6f, 0x60c7, 0x6566, 0x6c8c, 0x8c5a, 0x9041, 0x9813, 0x5451, 0x66c7, 0x920d, 0x5948, 0x90a3, 0x5185, 0x4e4d, 0x51ea, 0x8599, 0x8b0e, 0x7058, 0x637a, 0x934b, 0x6962, 0x99b4, 0x7e04, 0x7577, 0x5357, 0x6960, 0x8edf, 0x96e3, 0x6c5d, 0x4e8c, 0x5c3c, 0x5f10, 0x8fe9, 0x5302, 0x8cd1, 0x8089, 0x8679, 0x5eff, 0x65e5, 0x4e73, 0x5165 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9440[ 189 ] = { 0x5982, 0x5c3f, 0x97ee, 0x4efb, 0x598a, 0x5fcd, 0x8a8d, 0x6fe1, 0x79b0, 0x7962, 0x5be7, 0x8471, 0x732b, 0x71b1, 0x5e74, 0x5ff5, 0x637b, 0x649a, 0x71c3, 0x7c98, 0x4e43, 0x5efc, 0x4e4b, 0x57dc, 0x56a2, 0x60a9, 0x6fc3, 0x7d0d, 0x80fd, 0x8133, 0x81bf, 0x8fb2, 0x8997, 0x86a4, 0x5df4, 0x628a, 0x64ad, 0x8987, 0x6777, 0x6ce2, 0x6d3e, 0x7436, 0x7834, 0x5a46, 0x7f75, 0x82ad, 0x99ac, 0x4ff3, 0x5ec3, 0x62dd, 0x6392, 0x6557, 0x676f, 0x76c3, 0x724c, 0x80cc, 0x80ba, 0x8f29, 0x914d, 0x500d, 0x57f9, 0x5a92, 0x6885, 0xfffd, 0x6973, 0x7164, 0x72fd, 0x8cb7, 0x58f2, 0x8ce0, 0x966a, 0x9019, 0x877f, 0x79e4, 0x77e7, 0x8429, 0x4f2f, 0x5265, 0x535a, 0x62cd, 0x67cf, 0x6cca, 0x767d, 0x7b94, 0x7c95, 0x8236, 0x8584, 0x8feb, 0x66dd, 0x6f20, 0x7206, 0x7e1b, 0x83ab, 0x99c1, 0x9ea6, 0x51fd, 0x7bb1, 0x7872, 0x7bb8, 0x8087, 0x7b48, 0x6ae8, 0x5e61, 0x808c, 0x7551, 0x7560, 0x516b, 0x9262, 0x6e8c, 0x767a, 0x9197, 0x9aea, 0x4f10, 0x7f70, 0x629c, 0x7b4f, 0x95a5, 0x9ce9, 0x567a, 0x5859, 0x86e4, 0x96bc, 0x4f34, 0x5224, 0x534a, 0x53cd, 0x53db, 0x5e06, 0x642c, 0x6591, 0x677f, 0x6c3e, 0x6c4e, 0x7248, 0x72af, 0x73ed, 0x7554, 0x7e41, 0x822c, 0x85e9, 0x8ca9, 0x7bc4, 0x91c6, 0x7169, 0x9812, 0x98ef, 0x633d, 0x6669, 0x756a, 0x76e4, 0x78d0, 0x8543, 0x86ee, 0x532a, 0x5351, 0x5426, 0x5983, 0x5e87, 0x5f7c, 0x60b2, 0x6249, 0x6279, 0x62ab, 0x6590, 0x6bd4, 0x6ccc, 0x75b2, 0x76ae, 0x7891, 0x79d8, 0x7dcb, 0x7f77, 0x80a5, 0x88ab, 0x8ab9, 0x8cbb, 0x907f, 0x975e, 0x98db, 0x6a0b, 0x7c38, 0x5099, 0x5c3e, 0x5fae, 0x6787, 0x6bd8, 0x7435, 0x7709, 0x7f8e }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9540[ 189 ] = { 0x9f3b, 0x67ca, 0x7a17, 0x5339, 0x758b, 0x9aed, 0x5f66, 0x819d, 0x83f1, 0x8098, 0x5f3c, 0x5fc5, 0x7562, 0x7b46, 0x903c, 0x6867, 0x59eb, 0x5a9b, 0x7d10, 0x767e, 0x8b2c, 0x4ff5, 0x5f6a, 0x6a19, 0x6c37, 0x6f02, 0x74e2, 0x7968, 0x8868, 0x8a55, 0x8c79, 0x5edf, 0x63cf, 0x75c5, 0x79d2, 0x82d7, 0x9328, 0x92f2, 0x849c, 0x86ed, 0x9c2d, 0x54c1, 0x5f6c, 0x658c, 0x6d5c, 0x7015, 0x8ca7, 0x8cd3, 0x983b, 0x654f, 0x74f6, 0x4e0d, 0x4ed8, 0x57e0, 0x592b, 0x5a66, 0x5bcc, 0x51a8, 0x5e03, 0x5e9c, 0x6016, 0x6276, 0x6577, 0xfffd, 0x65a7, 0x666e, 0x6d6e, 0x7236, 0x7b26, 0x8150, 0x819a, 0x8299, 0x8b5c, 0x8ca0, 0x8ce6, 0x8d74, 0x961c, 0x9644, 0x4fae, 0x64ab, 0x6b66, 0x821e, 0x8461, 0x856a, 0x90e8, 0x5c01, 0x6953, 0x98a8, 0x847a, 0x8557, 0x4f0f, 0x526f, 0x5fa9, 0x5e45, 0x670d, 0x798f, 0x8179, 0x8907, 0x8986, 0x6df5, 0x5f17, 0x6255, 0x6cb8, 0x4ecf, 0x7269, 0x9b92, 0x5206, 0x543b, 0x5674, 0x58b3, 0x61a4, 0x626e, 0x711a, 0x596e, 0x7c89, 0x7cde, 0x7d1b, 0x96f0, 0x6587, 0x805e, 0x4e19, 0x4f75, 0x5175, 0x5840, 0x5e63, 0x5e73, 0x5f0a, 0x67c4, 0x4e26, 0x853d, 0x9589, 0x965b, 0x7c73, 0x9801, 0x50fb, 0x58c1, 0x7656, 0x78a7, 0x5225, 0x77a5, 0x8511, 0x7b86, 0x504f, 0x5909, 0x7247, 0x7bc7, 0x7de8, 0x8fba, 0x8fd4, 0x904d, 0x4fbf, 0x52c9, 0x5a29, 0x5f01, 0x97ad, 0x4fdd, 0x8217, 0x92ea, 0x5703, 0x6355, 0x6b69, 0x752b, 0x88dc, 0x8f14, 0x7a42, 0x52df, 0x5893, 0x6155, 0x620a, 0x66ae, 0x6bcd, 0x7c3f, 0x83e9, 0x5023, 0x4ff8, 0x5305, 0x5446, 0x5831, 0x5949, 0x5b9d, 0x5cf0, 0x5cef, 0x5d29, 0x5e96, 0x62b1, 0x6367, 0x653e, 0x65b9, 0x670b }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9640[ 189 ] = { 0x6cd5, 0x6ce1, 0x70f9, 0x7832, 0x7e2b, 0x80de, 0x82b3, 0x840c, 0x84ec, 0x8702, 0x8912, 0x8a2a, 0x8c4a, 0x90a6, 0x92d2, 0x98fd, 0x9cf3, 0x9d6c, 0x4e4f, 0x4ea1, 0x508d, 0x5256, 0x574a, 0x59a8, 0x5e3d, 0x5fd8, 0x5fd9, 0x623f, 0x66b4, 0x671b, 0x67d0, 0x68d2, 0x5192, 0x7d21, 0x80aa, 0x81a8, 0x8b00, 0x8c8c, 0x8cbf, 0x927e, 0x9632, 0x5420, 0x982c, 0x5317, 0x50d5, 0x535c, 0x58a8, 0x64b2, 0x6734, 0x7267, 0x7766, 0x7a46, 0x91e6, 0x52c3, 0x6ca1, 0x6b86, 0x5800, 0x5e4c, 0x5954, 0x672c, 0x7ffb, 0x51e1, 0x76c6, 0xfffd, 0x6469, 0x78e8, 0x9b54, 0x9ebb, 0x57cb, 0x59b9, 0x6627, 0x679a, 0x6bce, 0x54e9, 0x69d9, 0x5e55, 0x819c, 0x6795, 0x9baa, 0x67fe, 0x9c52, 0x685d, 0x4ea6, 0x4fe3, 0x53c8, 0x62b9, 0x672b, 0x6cab, 0x8fc4, 0x4fad, 0x7e6d, 0x9ebf, 0x4e07, 0x6162, 0x6e80, 0x6f2b, 0x8513, 0x5473, 0x672a, 0x9b45, 0x5df3, 0x7b95, 0x5cac, 0x5bc6, 0x871c, 0x6e4a, 0x84d1, 0x7a14, 0x8108, 0x5999, 0x7c8d, 0x6c11, 0x7720, 0x52d9, 0x5922, 0x7121, 0x725f, 0x77db, 0x9727, 0x9d61, 0x690b, 0x5a7f, 0x5a18, 0x51a5, 0x540d, 0x547d, 0x660e, 0x76df, 0x8ff7, 0x9298, 0x9cf4, 0x59ea, 0x725d, 0x6ec5, 0x514d, 0x68c9, 0x7dbf, 0x7dec, 0x9762, 0x9eba, 0x6478, 0x6a21, 0x8302, 0x5984, 0x5b5f, 0x6bdb, 0x731b, 0x76f2, 0x7db2, 0x8017, 0x8499, 0x5132, 0x6728, 0x9ed9, 0x76ee, 0x6762, 0x52ff, 0x9905, 0x5c24, 0x623b, 0x7c7e, 0x8cb0, 0x554f, 0x60b6, 0x7d0b, 0x9580, 0x5301, 0x4e5f, 0x51b6, 0x591c, 0x723a, 0x8036, 0x91ce, 0x5f25, 0x77e2, 0x5384, 0x5f79, 0x7d04, 0x85ac, 0x8a33, 0x8e8d, 0x9756, 0x67f3, 0x85ae, 0x9453, 0x6109, 0x6108, 0x6cb9, 0x7652 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9740[ 189 ] = { 0x8aed, 0x8f38, 0x552f, 0x4f51, 0x512a, 0x52c7, 0x53cb, 0x5ba5, 0x5e7d, 0x60a0, 0x6182, 0x63d6, 0x6709, 0x67da, 0x6e67, 0x6d8c, 0x7336, 0x7337, 0x7531, 0x7950, 0x88d5, 0x8a98, 0x904a, 0x9091, 0x90f5, 0x96c4, 0x878d, 0x5915, 0x4e88, 0x4f59, 0x4e0e, 0x8a89, 0x8f3f, 0x9810, 0x50ad, 0x5e7c, 0x5996, 0x5bb9, 0x5eb8, 0x63da, 0x63fa, 0x64c1, 0x66dc, 0x694a, 0x69d8, 0x6d0b, 0x6eb6, 0x7194, 0x7528, 0x7aaf, 0x7f8a, 0x8000, 0x8449, 0x84c9, 0x8981, 0x8b21, 0x8e0a, 0x9065, 0x967d, 0x990a, 0x617e, 0x6291, 0x6b32, 0xfffd, 0x6c83, 0x6d74, 0x7fcc, 0x7ffc, 0x6dc0, 0x7f85, 0x87ba, 0x88f8, 0x6765, 0x83b1, 0x983c, 0x96f7, 0x6d1b, 0x7d61, 0x843d, 0x916a, 0x4e71, 0x5375, 0x5d50, 0x6b04, 0x6feb, 0x85cd, 0x862d, 0x89a7, 0x5229, 0x540f, 0x5c65, 0x674e, 0x68a8, 0x7406, 0x7483, 0x75e2, 0x88cf, 0x88e1, 0x91cc, 0x96e2, 0x9678, 0x5f8b, 0x7387, 0x7acb, 0x844e, 0x63a0, 0x7565, 0x5289, 0x6d41, 0x6e9c, 0x7409, 0x7559, 0x786b, 0x7c92, 0x9686, 0x7adc, 0x9f8d, 0x4fb6, 0x616e, 0x65c5, 0x865c, 0x4e86, 0x4eae, 0x50da, 0x4e21, 0x51cc, 0x5bee, 0x6599, 0x6881, 0x6dbc, 0x731f, 0x7642, 0x77ad, 0x7a1c, 0x7ce7, 0x826f, 0x8ad2, 0x907c, 0x91cf, 0x9675, 0x9818, 0x529b, 0x7dd1, 0x502b, 0x5398, 0x6797, 0x6dcb, 0x71d0, 0x7433, 0x81e8, 0x8f2a, 0x96a3, 0x9c57, 0x9e9f, 0x7460, 0x5841, 0x6d99, 0x7d2f, 0x985e, 0x4ee4, 0x4f36, 0x4f8b, 0x51b7, 0x52b1, 0x5dba, 0x601c, 0x73b2, 0x793c, 0x82d3, 0x9234, 0x96b7, 0x96f6, 0x970a, 0x9e97, 0x9f62, 0x66a6, 0x6b74, 0x5217, 0x52a3, 0x70c8, 0x88c2, 0x5ec9, 0x604b, 0x6190, 0x6f23, 0x7149, 0x7c3e, 0x7df4, 0x806f }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9840[ 51 ] = { 0x84ee, 0x9023, 0x932c, 0x5442, 0x9b6f, 0x6ad3, 0x7089, 0x8cc2, 0x8def, 0x9732, 0x52b4, 0x5a41, 0x5eca, 0x5f04, 0x6717, 0x697c, 0x6994, 0x6d6a, 0x6f0f, 0x7262, 0x72fc, 0x7bed, 0x8001, 0x807e, 0x874b, 0x90ce, 0x516d, 0x9e93, 0x7984, 0x808b, 0x9332, 0x8ad6, 0x502d, 0x548c, 0x8a71, 0x6b6a, 0x8cc4, 0x8107, 0x60d1, 0x67a0, 0x9df2, 0x4e99, 0x4e98, 0x9c10, 0x8a6b, 0x85c1, 0x8568, 0x6900, 0x6e7e, 0x7897, 0x8155 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x989f[ 94 ] = { 0x5f0c, 0x4e10, 0x4e15, 0x4e2a, 0x4e31, 0x4e36, 0x4e3c, 0x4e3f, 0x4e42, 0x4e56, 0x4e58, 0x4e82, 0x4e85, 0x8c6b, 0x4e8a, 0x8212, 0x5f0d, 0x4e8e, 0x4e9e, 0x4e9f, 0x4ea0, 0x4ea2, 0x4eb0, 0x4eb3, 0x4eb6, 0x4ece, 0x4ecd, 0x4ec4, 0x4ec6, 0x4ec2, 0x4ed7, 0x4ede, 0x4eed, 0x4edf, 0x4ef7, 0x4f09, 0x4f5a, 0x4f30, 0x4f5b, 0x4f5d, 0x4f57, 0x4f47, 0x4f76, 0x4f88, 0x4f8f, 0x4f98, 0x4f7b, 0x4f69, 0x4f70, 0x4f91, 0x4f6f, 0x4f86, 0x4f96, 0x5118, 0x4fd4, 0x4fdf, 0x4fce, 0x4fd8, 0x4fdb, 0x4fd1, 0x4fda, 0x4fd0, 0x4fe4, 0x4fe5, 0x501a, 0x5028, 0x5014, 0x502a, 0x5025, 0x5005, 0x4f1c, 0x4ff6, 0x5021, 0x5029, 0x502c, 0x4ffe, 0x4fef, 0x5011, 0x5006, 0x5043, 0x5047, 0x6703, 0x5055, 0x5050, 0x5048, 0x505a, 0x5056, 0x506c, 0x5078, 0x5080, 0x509a, 0x5085, 0x50b4, 0x50b2 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9940[ 189 ] = { 0x50c9, 0x50ca, 0x50b3, 0x50c2, 0x50d6, 0x50de, 0x50e5, 0x50ed, 0x50e3, 0x50ee, 0x50f9, 0x50f5, 0x5109, 0x5101, 0x5102, 0x5116, 0x5115, 0x5114, 0x511a, 0x5121, 0x513a, 0x5137, 0x513c, 0x513b, 0x513f, 0x5140, 0x5152, 0x514c, 0x5154, 0x5162, 0x7af8, 0x5169, 0x516a, 0x516e, 0x5180, 0x5182, 0x56d8, 0x518c, 0x5189, 0x518f, 0x5191, 0x5193, 0x5195, 0x5196, 0x51a4, 0x51a6, 0x51a2, 0x51a9, 0x51aa, 0x51ab, 0x51b3, 0x51b1, 0x51b2, 0x51b0, 0x51b5, 0x51bd, 0x51c5, 0x51c9, 0x51db, 0x51e0, 0x8655, 0x51e9, 0x51ed, 0xfffd, 0x51f0, 0x51f5, 0x51fe, 0x5204, 0x520b, 0x5214, 0x520e, 0x5227, 0x522a, 0x522e, 0x5233, 0x5239, 0x524f, 0x5244, 0x524b, 0x524c, 0x525e, 0x5254, 0x526a, 0x5274, 0x5269, 0x5273, 0x527f, 0x527d, 0x528d, 0x5294, 0x5292, 0x5271, 0x5288, 0x5291, 0x8fa8, 0x8fa7, 0x52ac, 0x52ad, 0x52bc, 0x52b5, 0x52c1, 0x52cd, 0x52d7, 0x52de, 0x52e3, 0x52e6, 0x98ed, 0x52e0, 0x52f3, 0x52f5, 0x52f8, 0x52f9, 0x5306, 0x5308, 0x7538, 0x530d, 0x5310, 0x530f, 0x5315, 0x531a, 0x5323, 0x532f, 0x5331, 0x5333, 0x5338, 0x5340, 0x5346, 0x5345, 0x4e17, 0x5349, 0x534d, 0x51d6, 0x535e, 0x5369, 0x536e, 0x5918, 0x537b, 0x5377, 0x5382, 0x5396, 0x53a0, 0x53a6, 0x53a5, 0x53ae, 0x53b0, 0x53b6, 0x53c3, 0x7c12, 0x96d9, 0x53df, 0x66fc, 0x71ee, 0x53ee, 0x53e8, 0x53ed, 0x53fa, 0x5401, 0x543d, 0x5440, 0x542c, 0x542d, 0x543c, 0x542e, 0x5436, 0x5429, 0x541d, 0x544e, 0x548f, 0x5475, 0x548e, 0x545f, 0x5471, 0x5477, 0x5470, 0x5492, 0x547b, 0x5480, 0x5476, 0x5484, 0x5490, 0x5486, 0x54c7, 0x54a2, 0x54b8, 0x54a5, 0x54ac, 0x54c4, 0x54c8, 0x54a8 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9a40[ 189 ] = { 0x54ab, 0x54c2, 0x54a4, 0x54be, 0x54bc, 0x54d8, 0x54e5, 0x54e6, 0x550f, 0x5514, 0x54fd, 0x54ee, 0x54ed, 0x54fa, 0x54e2, 0x5539, 0x5540, 0x5563, 0x554c, 0x552e, 0x555c, 0x5545, 0x5556, 0x5557, 0x5538, 0x5533, 0x555d, 0x5599, 0x5580, 0x54af, 0x558a, 0x559f, 0x557b, 0x557e, 0x5598, 0x559e, 0x55ae, 0x557c, 0x5583, 0x55a9, 0x5587, 0x55a8, 0x55da, 0x55c5, 0x55df, 0x55c4, 0x55dc, 0x55e4, 0x55d4, 0x5614, 0x55f7, 0x5616, 0x55fe, 0x55fd, 0x561b, 0x55f9, 0x564e, 0x5650, 0x71df, 0x5634, 0x5636, 0x5632, 0x5638, 0xfffd, 0x566b, 0x5664, 0x562f, 0x566c, 0x566a, 0x5686, 0x5680, 0x568a, 0x56a0, 0x5694, 0x568f, 0x56a5, 0x56ae, 0x56b6, 0x56b4, 0x56c2, 0x56bc, 0x56c1, 0x56c3, 0x56c0, 0x56c8, 0x56ce, 0x56d1, 0x56d3, 0x56d7, 0x56ee, 0x56f9, 0x5700, 0x56ff, 0x5704, 0x5709, 0x5708, 0x570b, 0x570d, 0x5713, 0x5718, 0x5716, 0x55c7, 0x571c, 0x5726, 0x5737, 0x5738, 0x574e, 0x573b, 0x5740, 0x574f, 0x5769, 0x57c0, 0x5788, 0x5761, 0x577f, 0x5789, 0x5793, 0x57a0, 0x57b3, 0x57a4, 0x57aa, 0x57b0, 0x57c3, 0x57c6, 0x57d4, 0x57d2, 0x57d3, 0x580a, 0x57d6, 0x57e3, 0x580b, 0x5819, 0x581d, 0x5872, 0x5821, 0x5862, 0x584b, 0x5870, 0x6bc0, 0x5852, 0x583d, 0x5879, 0x5885, 0x58b9, 0x589f, 0x58ab, 0x58ba, 0x58de, 0x58bb, 0x58b8, 0x58ae, 0x58c5, 0x58d3, 0x58d1, 0x58d7, 0x58d9, 0x58d8, 0x58e5, 0x58dc, 0x58e4, 0x58df, 0x58ef, 0x58fa, 0x58f9, 0x58fb, 0x58fc, 0x58fd, 0x5902, 0x590a, 0x5910, 0x591b, 0x68a6, 0x5925, 0x592c, 0x592d, 0x5932, 0x5938, 0x593e, 0x7ad2, 0x5955, 0x5950, 0x594e, 0x595a, 0x5958, 0x5962, 0x5960, 0x5967, 0x596c, 0x5969 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9b40[ 189 ] = { 0x5978, 0x5981, 0x599d, 0x4f5e, 0x4fab, 0x59a3, 0x59b2, 0x59c6, 0x59e8, 0x59dc, 0x598d, 0x59d9, 0x59da, 0x5a25, 0x5a1f, 0x5a11, 0x5a1c, 0x5a09, 0x5a1a, 0x5a40, 0x5a6c, 0x5a49, 0x5a35, 0x5a36, 0x5a62, 0x5a6a, 0x5a9a, 0x5abc, 0x5abe, 0x5acb, 0x5ac2, 0x5abd, 0x5ae3, 0x5ad7, 0x5ae6, 0x5ae9, 0x5ad6, 0x5afa, 0x5afb, 0x5b0c, 0x5b0b, 0x5b16, 0x5b32, 0x5ad0, 0x5b2a, 0x5b36, 0x5b3e, 0x5b43, 0x5b45, 0x5b40, 0x5b51, 0x5b55, 0x5b5a, 0x5b5b, 0x5b65, 0x5b69, 0x5b70, 0x5b73, 0x5b75, 0x5b78, 0x6588, 0x5b7a, 0x5b80, 0xfffd, 0x5b83, 0x5ba6, 0x5bb8, 0x5bc3, 0x5bc7, 0x5bc9, 0x5bd4, 0x5bd0, 0x5be4, 0x5be6, 0x5be2, 0x5bde, 0x5be5, 0x5beb, 0x5bf0, 0x5bf6, 0x5bf3, 0x5c05, 0x5c07, 0x5c08, 0x5c0d, 0x5c13, 0x5c20, 0x5c22, 0x5c28, 0x5c38, 0x5c39, 0x5c41, 0x5c46, 0x5c4e, 0x5c53, 0x5c50, 0x5c4f, 0x5b71, 0x5c6c, 0x5c6e, 0x4e62, 0x5c76, 0x5c79, 0x5c8c, 0x5c91, 0x5c94, 0x599b, 0x5cab, 0x5cbb, 0x5cb6, 0x5cbc, 0x5cb7, 0x5cc5, 0x5cbe, 0x5cc7, 0x5cd9, 0x5ce9, 0x5cfd, 0x5cfa, 0x5ced, 0x5d8c, 0x5cea, 0x5d0b, 0x5d15, 0x5d17, 0x5d5c, 0x5d1f, 0x5d1b, 0x5d11, 0x5d14, 0x5d22, 0x5d1a, 0x5d19, 0x5d18, 0x5d4c, 0x5d52, 0x5d4e, 0x5d4b, 0x5d6c, 0x5d73, 0x5d76, 0x5d87, 0x5d84, 0x5d82, 0x5da2, 0x5d9d, 0x5dac, 0x5dae, 0x5dbd, 0x5d90, 0x5db7, 0x5dbc, 0x5dc9, 0x5dcd, 0x5dd3, 0x5dd2, 0x5dd6, 0x5ddb, 0x5deb, 0x5df2, 0x5df5, 0x5e0b, 0x5e1a, 0x5e19, 0x5e11, 0x5e1b, 0x5e36, 0x5e37, 0x5e44, 0x5e43, 0x5e40, 0x5e4e, 0x5e57, 0x5e54, 0x5e5f, 0x5e62, 0x5e64, 0x5e47, 0x5e75, 0x5e76, 0x5e7a, 0x9ebc, 0x5e7f, 0x5ea0, 0x5ec1, 0x5ec2, 0x5ec8, 0x5ed0, 0x5ecf }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9c40[ 189 ] = { 0x5ed6, 0x5ee3, 0x5edd, 0x5eda, 0x5edb, 0x5ee2, 0x5ee1, 0x5ee8, 0x5ee9, 0x5eec, 0x5ef1, 0x5ef3, 0x5ef0, 0x5ef4, 0x5ef8, 0x5efe, 0x5f03, 0x5f09, 0x5f5d, 0x5f5c, 0x5f0b, 0x5f11, 0x5f16, 0x5f29, 0x5f2d, 0x5f38, 0x5f41, 0x5f48, 0x5f4c, 0x5f4e, 0x5f2f, 0x5f51, 0x5f56, 0x5f57, 0x5f59, 0x5f61, 0x5f6d, 0x5f73, 0x5f77, 0x5f83, 0x5f82, 0x5f7f, 0x5f8a, 0x5f88, 0x5f91, 0x5f87, 0x5f9e, 0x5f99, 0x5f98, 0x5fa0, 0x5fa8, 0x5fad, 0x5fbc, 0x5fd6, 0x5ffb, 0x5fe4, 0x5ff8, 0x5ff1, 0x5fdd, 0x60b3, 0x5fff, 0x6021, 0x6060, 0xfffd, 0x6019, 0x6010, 0x6029, 0x600e, 0x6031, 0x601b, 0x6015, 0x602b, 0x6026, 0x600f, 0x603a, 0x605a, 0x6041, 0x606a, 0x6077, 0x605f, 0x604a, 0x6046, 0x604d, 0x6063, 0x6043, 0x6064, 0x6042, 0x606c, 0x606b, 0x6059, 0x6081, 0x608d, 0x60e7, 0x6083, 0x609a, 0x6084, 0x609b, 0x6096, 0x6097, 0x6092, 0x60a7, 0x608b, 0x60e1, 0x60b8, 0x60e0, 0x60d3, 0x60b4, 0x5ff0, 0x60bd, 0x60c6, 0x60b5, 0x60d8, 0x614d, 0x6115, 0x6106, 0x60f6, 0x60f7, 0x6100, 0x60f4, 0x60fa, 0x6103, 0x6121, 0x60fb, 0x60f1, 0x610d, 0x610e, 0x6147, 0x613e, 0x6128, 0x6127, 0x614a, 0x613f, 0x613c, 0x612c, 0x6134, 0x613d, 0x6142, 0x6144, 0x6173, 0x6177, 0x6158, 0x6159, 0x615a, 0x616b, 0x6174, 0x616f, 0x6165, 0x6171, 0x615f, 0x615d, 0x6153, 0x6175, 0x6199, 0x6196, 0x6187, 0x61ac, 0x6194, 0x619a, 0x618a, 0x6191, 0x61ab, 0x61ae, 0x61cc, 0x61ca, 0x61c9, 0x61f7, 0x61c8, 0x61c3, 0x61c6, 0x61ba, 0x61cb, 0x7f79, 0x61cd, 0x61e6, 0x61e3, 0x61f6, 0x61fa, 0x61f4, 0x61ff, 0x61fd, 0x61fc, 0x61fe, 0x6200, 0x6208, 0x6209, 0x620d, 0x620c, 0x6214, 0x621b }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9d40[ 189 ] = { 0x621e, 0x6221, 0x622a, 0x622e, 0x6230, 0x6232, 0x6233, 0x6241, 0x624e, 0x625e, 0x6263, 0x625b, 0x6260, 0x6268, 0x627c, 0x6282, 0x6289, 0x627e, 0x6292, 0x6293, 0x6296, 0x62d4, 0x6283, 0x6294, 0x62d7, 0x62d1, 0x62bb, 0x62cf, 0x62ff, 0x62c6, 0x64d4, 0x62c8, 0x62dc, 0x62cc, 0x62ca, 0x62c2, 0x62c7, 0x629b, 0x62c9, 0x630c, 0x62ee, 0x62f1, 0x6327, 0x6302, 0x6308, 0x62ef, 0x62f5, 0x6350, 0x633e, 0x634d, 0x641c, 0x634f, 0x6396, 0x638e, 0x6380, 0x63ab, 0x6376, 0x63a3, 0x638f, 0x6389, 0x639f, 0x63b5, 0x636b, 0xfffd, 0x6369, 0x63be, 0x63e9, 0x63c0, 0x63c6, 0x63e3, 0x63c9, 0x63d2, 0x63f6, 0x63c4, 0x6416, 0x6434, 0x6406, 0x6413, 0x6426, 0x6436, 0x651d, 0x6417, 0x6428, 0x640f, 0x6467, 0x646f, 0x6476, 0x644e, 0x652a, 0x6495, 0x6493, 0x64a5, 0x64a9, 0x6488, 0x64bc, 0x64da, 0x64d2, 0x64c5, 0x64c7, 0x64bb, 0x64d8, 0x64c2, 0x64f1, 0x64e7, 0x8209, 0x64e0, 0x64e1, 0x62ac, 0x64e3, 0x64ef, 0x652c, 0x64f6, 0x64f4, 0x64f2, 0x64fa, 0x6500, 0x64fd, 0x6518, 0x651c, 0x6505, 0x6524, 0x6523, 0x652b, 0x6534, 0x6535, 0x6537, 0x6536, 0x6538, 0x754b, 0x6548, 0x6556, 0x6555, 0x654d, 0x6558, 0x655e, 0x655d, 0x6572, 0x6578, 0x6582, 0x6583, 0x8b8a, 0x659b, 0x659f, 0x65ab, 0x65b7, 0x65c3, 0x65c6, 0x65c1, 0x65c4, 0x65cc, 0x65d2, 0x65db, 0x65d9, 0x65e0, 0x65e1, 0x65f1, 0x6772, 0x660a, 0x6603, 0x65fb, 0x6773, 0x6635, 0x6636, 0x6634, 0x661c, 0x664f, 0x6644, 0x6649, 0x6641, 0x665e, 0x665d, 0x6664, 0x6667, 0x6668, 0x665f, 0x6662, 0x6670, 0x6683, 0x6688, 0x668e, 0x6689, 0x6684, 0x6698, 0x669d, 0x66c1, 0x66b9, 0x66c9, 0x66be, 0x66bc }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9e40[ 189 ] = { 0x66c4, 0x66b8, 0x66d6, 0x66da, 0x66e0, 0x663f, 0x66e6, 0x66e9, 0x66f0, 0x66f5, 0x66f7, 0x670f, 0x6716, 0x671e, 0x6726, 0x6727, 0x9738, 0x672e, 0x673f, 0x6736, 0x6741, 0x6738, 0x6737, 0x6746, 0x675e, 0x6760, 0x6759, 0x6763, 0x6764, 0x6789, 0x6770, 0x67a9, 0x677c, 0x676a, 0x678c, 0x678b, 0x67a6, 0x67a1, 0x6785, 0x67b7, 0x67ef, 0x67b4, 0x67ec, 0x67b3, 0x67e9, 0x67b8, 0x67e4, 0x67de, 0x67dd, 0x67e2, 0x67ee, 0x67b9, 0x67ce, 0x67c6, 0x67e7, 0x6a9c, 0x681e, 0x6846, 0x6829, 0x6840, 0x684d, 0x6832, 0x684e, 0xfffd, 0x68b3, 0x682b, 0x6859, 0x6863, 0x6877, 0x687f, 0x689f, 0x688f, 0x68ad, 0x6894, 0x689d, 0x689b, 0x6883, 0x6aae, 0x68b9, 0x6874, 0x68b5, 0x68a0, 0x68ba, 0x690f, 0x688d, 0x687e, 0x6901, 0x68ca, 0x6908, 0x68d8, 0x6922, 0x6926, 0x68e1, 0x690c, 0x68cd, 0x68d4, 0x68e7, 0x68d5, 0x6936, 0x6912, 0x6904, 0x68d7, 0x68e3, 0x6925, 0x68f9, 0x68e0, 0x68ef, 0x6928, 0x692a, 0x691a, 0x6923, 0x6921, 0x68c6, 0x6979, 0x6977, 0x695c, 0x6978, 0x696b, 0x6954, 0x697e, 0x696e, 0x6939, 0x6974, 0x693d, 0x6959, 0x6930, 0x6961, 0x695e, 0x695d, 0x6981, 0x696a, 0x69b2, 0x69ae, 0x69d0, 0x69bf, 0x69c1, 0x69d3, 0x69be, 0x69ce, 0x5be8, 0x69ca, 0x69dd, 0x69bb, 0x69c3, 0x69a7, 0x6a2e, 0x6991, 0x69a0, 0x699c, 0x6995, 0x69b4, 0x69de, 0x69e8, 0x6a02, 0x6a1b, 0x69ff, 0x6b0a, 0x69f9, 0x69f2, 0x69e7, 0x6a05, 0x69b1, 0x6a1e, 0x69ed, 0x6a14, 0x69eb, 0x6a0a, 0x6a12, 0x6ac1, 0x6a23, 0x6a13, 0x6a44, 0x6a0c, 0x6a72, 0x6a36, 0x6a78, 0x6a47, 0x6a62, 0x6a59, 0x6a66, 0x6a48, 0x6a38, 0x6a22, 0x6a90, 0x6a8d, 0x6aa0, 0x6a84, 0x6aa2, 0x6aa3 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9f40[ 189 ] = { 0x6a97, 0x8617, 0x6abb, 0x6ac3, 0x6ac2, 0x6ab8, 0x6ab3, 0x6aac, 0x6ade, 0x6ad1, 0x6adf, 0x6aaa, 0x6ada, 0x6aea, 0x6afb, 0x6b05, 0x8616, 0x6afa, 0x6b12, 0x6b16, 0x9b31, 0x6b1f, 0x6b38, 0x6b37, 0x76dc, 0x6b39, 0x98ee, 0x6b47, 0x6b43, 0x6b49, 0x6b50, 0x6b59, 0x6b54, 0x6b5b, 0x6b5f, 0x6b61, 0x6b78, 0x6b79, 0x6b7f, 0x6b80, 0x6b84, 0x6b83, 0x6b8d, 0x6b98, 0x6b95, 0x6b9e, 0x6ba4, 0x6baa, 0x6bab, 0x6baf, 0x6bb2, 0x6bb1, 0x6bb3, 0x6bb7, 0x6bbc, 0x6bc6, 0x6bcb, 0x6bd3, 0x6bdf, 0x6bec, 0x6beb, 0x6bf3, 0x6bef, 0xfffd, 0x9ebe, 0x6c08, 0x6c13, 0x6c14, 0x6c1b, 0x6c24, 0x6c23, 0x6c5e, 0x6c55, 0x6c62, 0x6c6a, 0x6c82, 0x6c8d, 0x6c9a, 0x6c81, 0x6c9b, 0x6c7e, 0x6c68, 0x6c73, 0x6c92, 0x6c90, 0x6cc4, 0x6cf1, 0x6cd3, 0x6cbd, 0x6cd7, 0x6cc5, 0x6cdd, 0x6cae, 0x6cb1, 0x6cbe, 0x6cba, 0x6cdb, 0x6cef, 0x6cd9, 0x6cea, 0x6d1f, 0x884d, 0x6d36, 0x6d2b, 0x6d3d, 0x6d38, 0x6d19, 0x6d35, 0x6d33, 0x6d12, 0x6d0c, 0x6d63, 0x6d93, 0x6d64, 0x6d5a, 0x6d79, 0x6d59, 0x6d8e, 0x6d95, 0x6fe4, 0x6d85, 0x6df9, 0x6e15, 0x6e0a, 0x6db5, 0x6dc7, 0x6de6, 0x6db8, 0x6dc6, 0x6dec, 0x6dde, 0x6dcc, 0x6de8, 0x6dd2, 0x6dc5, 0x6dfa, 0x6dd9, 0x6de4, 0x6dd5, 0x6dea, 0x6dee, 0x6e2d, 0x6e6e, 0x6e2e, 0x6e19, 0x6e72, 0x6e5f, 0x6e3e, 0x6e23, 0x6e6b, 0x6e2b, 0x6e76, 0x6e4d, 0x6e1f, 0x6e43, 0x6e3a, 0x6e4e, 0x6e24, 0x6eff, 0x6e1d, 0x6e38, 0x6e82, 0x6eaa, 0x6e98, 0x6ec9, 0x6eb7, 0x6ed3, 0x6ebd, 0x6eaf, 0x6ec4, 0x6eb2, 0x6ed4, 0x6ed5, 0x6e8f, 0x6ea5, 0x6ec2, 0x6e9f, 0x6f41, 0x6f11, 0x704c, 0x6eec, 0x6ef8, 0x6efe, 0x6f3f, 0x6ef2, 0x6f31, 0x6eef, 0x6f32, 0x6ecc }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe040[ 189 ] = { 0x6f3e, 0x6f13, 0x6ef7, 0x6f86, 0x6f7a, 0x6f78, 0x6f81, 0x6f80, 0x6f6f, 0x6f5b, 0x6ff3, 0x6f6d, 0x6f82, 0x6f7c, 0x6f58, 0x6f8e, 0x6f91, 0x6fc2, 0x6f66, 0x6fb3, 0x6fa3, 0x6fa1, 0x6fa4, 0x6fb9, 0x6fc6, 0x6faa, 0x6fdf, 0x6fd5, 0x6fec, 0x6fd4, 0x6fd8, 0x6ff1, 0x6fee, 0x6fdb, 0x7009, 0x700b, 0x6ffa, 0x7011, 0x7001, 0x700f, 0x6ffe, 0x701b, 0x701a, 0x6f74, 0x701d, 0x7018, 0x701f, 0x7030, 0x703e, 0x7032, 0x7051, 0x7063, 0x7099, 0x7092, 0x70af, 0x70f1, 0x70ac, 0x70b8, 0x70b3, 0x70ae, 0x70df, 0x70cb, 0x70dd, 0xfffd, 0x70d9, 0x7109, 0x70fd, 0x711c, 0x7119, 0x7165, 0x7155, 0x7188, 0x7166, 0x7162, 0x714c, 0x7156, 0x716c, 0x718f, 0x71fb, 0x7184, 0x7195, 0x71a8, 0x71ac, 0x71d7, 0x71b9, 0x71be, 0x71d2, 0x71c9, 0x71d4, 0x71ce, 0x71e0, 0x71ec, 0x71e7, 0x71f5, 0x71fc, 0x71f9, 0x71ff, 0x720d, 0x7210, 0x721b, 0x7228, 0x722d, 0x722c, 0x7230, 0x7232, 0x723b, 0x723c, 0x723f, 0x7240, 0x7246, 0x724b, 0x7258, 0x7274, 0x727e, 0x7282, 0x7281, 0x7287, 0x7292, 0x7296, 0x72a2, 0x72a7, 0x72b9, 0x72b2, 0x72c3, 0x72c6, 0x72c4, 0x72ce, 0x72d2, 0x72e2, 0x72e0, 0x72e1, 0x72f9, 0x72f7, 0x500f, 0x7317, 0x730a, 0x731c, 0x7316, 0x731d, 0x7334, 0x732f, 0x7329, 0x7325, 0x733e, 0x734e, 0x734f, 0x9ed8, 0x7357, 0x736a, 0x7368, 0x7370, 0x7378, 0x7375, 0x737b, 0x737a, 0x73c8, 0x73b3, 0x73ce, 0x73bb, 0x73c0, 0x73e5, 0x73ee, 0x73de, 0x74a2, 0x7405, 0x746f, 0x7425, 0x73f8, 0x7432, 0x743a, 0x7455, 0x743f, 0x745f, 0x7459, 0x7441, 0x745c, 0x7469, 0x7470, 0x7463, 0x746a, 0x7476, 0x747e, 0x748b, 0x749e, 0x74a7, 0x74ca, 0x74cf, 0x74d4, 0x73f1 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe140[ 189 ] = { 0x74e0, 0x74e3, 0x74e7, 0x74e9, 0x74ee, 0x74f2, 0x74f0, 0x74f1, 0x74f8, 0x74f7, 0x7504, 0x7503, 0x7505, 0x750c, 0x750e, 0x750d, 0x7515, 0x7513, 0x751e, 0x7526, 0x752c, 0x753c, 0x7544, 0x754d, 0x754a, 0x7549, 0x755b, 0x7546, 0x755a, 0x7569, 0x7564, 0x7567, 0x756b, 0x756d, 0x7578, 0x7576, 0x7586, 0x7587, 0x7574, 0x758a, 0x7589, 0x7582, 0x7594, 0x759a, 0x759d, 0x75a5, 0x75a3, 0x75c2, 0x75b3, 0x75c3, 0x75b5, 0x75bd, 0x75b8, 0x75bc, 0x75b1, 0x75cd, 0x75ca, 0x75d2, 0x75d9, 0x75e3, 0x75de, 0x75fe, 0x75ff, 0xfffd, 0x75fc, 0x7601, 0x75f0, 0x75fa, 0x75f2, 0x75f3, 0x760b, 0x760d, 0x7609, 0x761f, 0x7627, 0x7620, 0x7621, 0x7622, 0x7624, 0x7634, 0x7630, 0x763b, 0x7647, 0x7648, 0x7646, 0x765c, 0x7658, 0x7661, 0x7662, 0x7668, 0x7669, 0x766a, 0x7667, 0x766c, 0x7670, 0x7672, 0x7676, 0x7678, 0x767c, 0x7680, 0x7683, 0x7688, 0x768b, 0x768e, 0x7696, 0x7693, 0x7699, 0x769a, 0x76b0, 0x76b4, 0x76b8, 0x76b9, 0x76ba, 0x76c2, 0x76cd, 0x76d6, 0x76d2, 0x76de, 0x76e1, 0x76e5, 0x76e7, 0x76ea, 0x862f, 0x76fb, 0x7708, 0x7707, 0x7704, 0x7729, 0x7724, 0x771e, 0x7725, 0x7726, 0x771b, 0x7737, 0x7738, 0x7747, 0x775a, 0x7768, 0x776b, 0x775b, 0x7765, 0x777f, 0x777e, 0x7779, 0x778e, 0x778b, 0x7791, 0x77a0, 0x779e, 0x77b0, 0x77b6, 0x77b9, 0x77bf, 0x77bc, 0x77bd, 0x77bb, 0x77c7, 0x77cd, 0x77d7, 0x77da, 0x77dc, 0x77e3, 0x77ee, 0x77fc, 0x780c, 0x7812, 0x7926, 0x7820, 0x792a, 0x7845, 0x788e, 0x7874, 0x7886, 0x787c, 0x789a, 0x788c, 0x78a3, 0x78b5, 0x78aa, 0x78af, 0x78d1, 0x78c6, 0x78cb, 0x78d4, 0x78be, 0x78bc, 0x78c5, 0x78ca, 0x78ec }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe240[ 189 ] = { 0x78e7, 0x78da, 0x78fd, 0x78f4, 0x7907, 0x7912, 0x7911, 0x7919, 0x792c, 0x792b, 0x7940, 0x7960, 0x7957, 0x795f, 0x795a, 0x7955, 0x7953, 0x797a, 0x797f, 0x798a, 0x799d, 0x79a7, 0x9f4b, 0x79aa, 0x79ae, 0x79b3, 0x79b9, 0x79ba, 0x79c9, 0x79d5, 0x79e7, 0x79ec, 0x79e1, 0x79e3, 0x7a08, 0x7a0d, 0x7a18, 0x7a19, 0x7a20, 0x7a1f, 0x7980, 0x7a31, 0x7a3b, 0x7a3e, 0x7a37, 0x7a43, 0x7a57, 0x7a49, 0x7a61, 0x7a62, 0x7a69, 0x9f9d, 0x7a70, 0x7a79, 0x7a7d, 0x7a88, 0x7a97, 0x7a95, 0x7a98, 0x7a96, 0x7aa9, 0x7ac8, 0x7ab0, 0xfffd, 0x7ab6, 0x7ac5, 0x7ac4, 0x7abf, 0x9083, 0x7ac7, 0x7aca, 0x7acd, 0x7acf, 0x7ad5, 0x7ad3, 0x7ad9, 0x7ada, 0x7add, 0x7ae1, 0x7ae2, 0x7ae6, 0x7aed, 0x7af0, 0x7b02, 0x7b0f, 0x7b0a, 0x7b06, 0x7b33, 0x7b18, 0x7b19, 0x7b1e, 0x7b35, 0x7b28, 0x7b36, 0x7b50, 0x7b7a, 0x7b04, 0x7b4d, 0x7b0b, 0x7b4c, 0x7b45, 0x7b75, 0x7b65, 0x7b74, 0x7b67, 0x7b70, 0x7b71, 0x7b6c, 0x7b6e, 0x7b9d, 0x7b98, 0x7b9f, 0x7b8d, 0x7b9c, 0x7b9a, 0x7b8b, 0x7b92, 0x7b8f, 0x7b5d, 0x7b99, 0x7bcb, 0x7bc1, 0x7bcc, 0x7bcf, 0x7bb4, 0x7bc6, 0x7bdd, 0x7be9, 0x7c11, 0x7c14, 0x7be6, 0x7be5, 0x7c60, 0x7c00, 0x7c07, 0x7c13, 0x7bf3, 0x7bf7, 0x7c17, 0x7c0d, 0x7bf6, 0x7c23, 0x7c27, 0x7c2a, 0x7c1f, 0x7c37, 0x7c2b, 0x7c3d, 0x7c4c, 0x7c43, 0x7c54, 0x7c4f, 0x7c40, 0x7c50, 0x7c58, 0x7c5f, 0x7c64, 0x7c56, 0x7c65, 0x7c6c, 0x7c75, 0x7c83, 0x7c90, 0x7ca4, 0x7cad, 0x7ca2, 0x7cab, 0x7ca1, 0x7ca8, 0x7cb3, 0x7cb2, 0x7cb1, 0x7cae, 0x7cb9, 0x7cbd, 0x7cc0, 0x7cc5, 0x7cc2, 0x7cd8, 0x7cd2, 0x7cdc, 0x7ce2, 0x9b3b, 0x7cef, 0x7cf2, 0x7cf4, 0x7cf6, 0x7cfa, 0x7d06 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe340[ 189 ] = { 0x7d02, 0x7d1c, 0x7d15, 0x7d0a, 0x7d45, 0x7d4b, 0x7d2e, 0x7d32, 0x7d3f, 0x7d35, 0x7d46, 0x7d73, 0x7d56, 0x7d4e, 0x7d72, 0x7d68, 0x7d6e, 0x7d4f, 0x7d63, 0x7d93, 0x7d89, 0x7d5b, 0x7d8f, 0x7d7d, 0x7d9b, 0x7dba, 0x7dae, 0x7da3, 0x7db5, 0x7dc7, 0x7dbd, 0x7dab, 0x7e3d, 0x7da2, 0x7daf, 0x7ddc, 0x7db8, 0x7d9f, 0x7db0, 0x7dd8, 0x7ddd, 0x7de4, 0x7dde, 0x7dfb, 0x7df2, 0x7de1, 0x7e05, 0x7e0a, 0x7e23, 0x7e21, 0x7e12, 0x7e31, 0x7e1f, 0x7e09, 0x7e0b, 0x7e22, 0x7e46, 0x7e66, 0x7e3b, 0x7e35, 0x7e39, 0x7e43, 0x7e37, 0xfffd, 0x7e32, 0x7e3a, 0x7e67, 0x7e5d, 0x7e56, 0x7e5e, 0x7e59, 0x7e5a, 0x7e79, 0x7e6a, 0x7e69, 0x7e7c, 0x7e7b, 0x7e83, 0x7dd5, 0x7e7d, 0x8fae, 0x7e7f, 0x7e88, 0x7e89, 0x7e8c, 0x7e92, 0x7e90, 0x7e93, 0x7e94, 0x7e96, 0x7e8e, 0x7e9b, 0x7e9c, 0x7f38, 0x7f3a, 0x7f45, 0x7f4c, 0x7f4d, 0x7f4e, 0x7f50, 0x7f51, 0x7f55, 0x7f54, 0x7f58, 0x7f5f, 0x7f60, 0x7f68, 0x7f69, 0x7f67, 0x7f78, 0x7f82, 0x7f86, 0x7f83, 0x7f88, 0x7f87, 0x7f8c, 0x7f94, 0x7f9e, 0x7f9d, 0x7f9a, 0x7fa3, 0x7faf, 0x7fb2, 0x7fb9, 0x7fae, 0x7fb6, 0x7fb8, 0x8b71, 0x7fc5, 0x7fc6, 0x7fca, 0x7fd5, 0x7fd4, 0x7fe1, 0x7fe6, 0x7fe9, 0x7ff3, 0x7ff9, 0x98dc, 0x8006, 0x8004, 0x800b, 0x8012, 0x8018, 0x8019, 0x801c, 0x8021, 0x8028, 0x803f, 0x803b, 0x804a, 0x8046, 0x8052, 0x8058, 0x805a, 0x805f, 0x8062, 0x8068, 0x8073, 0x8072, 0x8070, 0x8076, 0x8079, 0x807d, 0x807f, 0x8084, 0x8086, 0x8085, 0x809b, 0x8093, 0x809a, 0x80ad, 0x5190, 0x80ac, 0x80db, 0x80e5, 0x80d9, 0x80dd, 0x80c4, 0x80da, 0x80d6, 0x8109, 0x80ef, 0x80f1, 0x811b, 0x8129, 0x8123, 0x812f, 0x814b }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe440[ 189 ] = { 0x968b, 0x8146, 0x813e, 0x8153, 0x8151, 0x80fc, 0x8171, 0x816e, 0x8165, 0x8166, 0x8174, 0x8183, 0x8188, 0x818a, 0x8180, 0x8182, 0x81a0, 0x8195, 0x81a4, 0x81a3, 0x815f, 0x8193, 0x81a9, 0x81b0, 0x81b5, 0x81be, 0x81b8, 0x81bd, 0x81c0, 0x81c2, 0x81ba, 0x81c9, 0x81cd, 0x81d1, 0x81d9, 0x81d8, 0x81c8, 0x81da, 0x81df, 0x81e0, 0x81e7, 0x81fa, 0x81fb, 0x81fe, 0x8201, 0x8202, 0x8205, 0x8207, 0x820a, 0x820d, 0x8210, 0x8216, 0x8229, 0x822b, 0x8238, 0x8233, 0x8240, 0x8259, 0x8258, 0x825d, 0x825a, 0x825f, 0x8264, 0xfffd, 0x8262, 0x8268, 0x826a, 0x826b, 0x822e, 0x8271, 0x8277, 0x8278, 0x827e, 0x828d, 0x8292, 0x82ab, 0x829f, 0x82bb, 0x82ac, 0x82e1, 0x82e3, 0x82df, 0x82d2, 0x82f4, 0x82f3, 0x82fa, 0x8393, 0x8303, 0x82fb, 0x82f9, 0x82de, 0x8306, 0x82dc, 0x8309, 0x82d9, 0x8335, 0x8334, 0x8316, 0x8332, 0x8331, 0x8340, 0x8339, 0x8350, 0x8345, 0x832f, 0x832b, 0x8317, 0x8318, 0x8385, 0x839a, 0x83aa, 0x839f, 0x83a2, 0x8396, 0x8323, 0x838e, 0x8387, 0x838a, 0x837c, 0x83b5, 0x8373, 0x8375, 0x83a0, 0x8389, 0x83a8, 0x83f4, 0x8413, 0x83eb, 0x83ce, 0x83fd, 0x8403, 0x83d8, 0x840b, 0x83c1, 0x83f7, 0x8407, 0x83e0, 0x83f2, 0x840d, 0x8422, 0x8420, 0x83bd, 0x8438, 0x8506, 0x83fb, 0x846d, 0x842a, 0x843c, 0x855a, 0x8484, 0x8477, 0x846b, 0x84ad, 0x846e, 0x8482, 0x8469, 0x8446, 0x842c, 0x846f, 0x8479, 0x8435, 0x84ca, 0x8462, 0x84b9, 0x84bf, 0x849f, 0x84d9, 0x84cd, 0x84bb, 0x84da, 0x84d0, 0x84c1, 0x84c6, 0x84d6, 0x84a1, 0x8521, 0x84ff, 0x84f4, 0x8517, 0x8518, 0x852c, 0x851f, 0x8515, 0x8514, 0x84fc, 0x8540, 0x8563, 0x8558, 0x8548 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe540[ 189 ] = { 0x8541, 0x8602, 0x854b, 0x8555, 0x8580, 0x85a4, 0x8588, 0x8591, 0x858a, 0x85a8, 0x856d, 0x8594, 0x859b, 0x85ea, 0x8587, 0x859c, 0x8577, 0x857e, 0x8590, 0x85c9, 0x85ba, 0x85cf, 0x85b9, 0x85d0, 0x85d5, 0x85dd, 0x85e5, 0x85dc, 0x85f9, 0x860a, 0x8613, 0x860b, 0x85fe, 0x85fa, 0x8606, 0x8622, 0x861a, 0x8630, 0x863f, 0x864d, 0x4e55, 0x8654, 0x865f, 0x8667, 0x8671, 0x8693, 0x86a3, 0x86a9, 0x86aa, 0x868b, 0x868c, 0x86b6, 0x86af, 0x86c4, 0x86c6, 0x86b0, 0x86c9, 0x8823, 0x86ab, 0x86d4, 0x86de, 0x86e9, 0x86ec, 0xfffd, 0x86df, 0x86db, 0x86ef, 0x8712, 0x8706, 0x8708, 0x8700, 0x8703, 0x86fb, 0x8711, 0x8709, 0x870d, 0x86f9, 0x870a, 0x8734, 0x873f, 0x8737, 0x873b, 0x8725, 0x8729, 0x871a, 0x8760, 0x875f, 0x8778, 0x874c, 0x874e, 0x8774, 0x8757, 0x8768, 0x876e, 0x8759, 0x8753, 0x8763, 0x876a, 0x8805, 0x87a2, 0x879f, 0x8782, 0x87af, 0x87cb, 0x87bd, 0x87c0, 0x87d0, 0x96d6, 0x87ab, 0x87c4, 0x87b3, 0x87c7, 0x87c6, 0x87bb, 0x87ef, 0x87f2, 0x87e0, 0x880f, 0x880d, 0x87fe, 0x87f6, 0x87f7, 0x880e, 0x87d2, 0x8811, 0x8816, 0x8815, 0x8822, 0x8821, 0x8831, 0x8836, 0x8839, 0x8827, 0x883b, 0x8844, 0x8842, 0x8852, 0x8859, 0x885e, 0x8862, 0x886b, 0x8881, 0x887e, 0x889e, 0x8875, 0x887d, 0x88b5, 0x8872, 0x8882, 0x8897, 0x8892, 0x88ae, 0x8899, 0x88a2, 0x888d, 0x88a4, 0x88b0, 0x88bf, 0x88b1, 0x88c3, 0x88c4, 0x88d4, 0x88d8, 0x88d9, 0x88dd, 0x88f9, 0x8902, 0x88fc, 0x88f4, 0x88e8, 0x88f2, 0x8904, 0x890c, 0x890a, 0x8913, 0x8943, 0x891e, 0x8925, 0x892a, 0x892b, 0x8941, 0x8944, 0x893b, 0x8936, 0x8938, 0x894c, 0x891d, 0x8960, 0x895e }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe640[ 189 ] = { 0x8966, 0x8964, 0x896d, 0x896a, 0x896f, 0x8974, 0x8977, 0x897e, 0x8983, 0x8988, 0x898a, 0x8993, 0x8998, 0x89a1, 0x89a9, 0x89a6, 0x89ac, 0x89af, 0x89b2, 0x89ba, 0x89bd, 0x89bf, 0x89c0, 0x89da, 0x89dc, 0x89dd, 0x89e7, 0x89f4, 0x89f8, 0x8a03, 0x8a16, 0x8a10, 0x8a0c, 0x8a1b, 0x8a1d, 0x8a25, 0x8a36, 0x8a41, 0x8a5b, 0x8a52, 0x8a46, 0x8a48, 0x8a7c, 0x8a6d, 0x8a6c, 0x8a62, 0x8a85, 0x8a82, 0x8a84, 0x8aa8, 0x8aa1, 0x8a91, 0x8aa5, 0x8aa6, 0x8a9a, 0x8aa3, 0x8ac4, 0x8acd, 0x8ac2, 0x8ada, 0x8aeb, 0x8af3, 0x8ae7, 0xfffd, 0x8ae4, 0x8af1, 0x8b14, 0x8ae0, 0x8ae2, 0x8af7, 0x8ade, 0x8adb, 0x8b0c, 0x8b07, 0x8b1a, 0x8ae1, 0x8b16, 0x8b10, 0x8b17, 0x8b20, 0x8b33, 0x97ab, 0x8b26, 0x8b2b, 0x8b3e, 0x8b28, 0x8b41, 0x8b4c, 0x8b4f, 0x8b4e, 0x8b49, 0x8b56, 0x8b5b, 0x8b5a, 0x8b6b, 0x8b5f, 0x8b6c, 0x8b6f, 0x8b74, 0x8b7d, 0x8b80, 0x8b8c, 0x8b8e, 0x8b92, 0x8b93, 0x8b96, 0x8b99, 0x8b9a, 0x8c3a, 0x8c41, 0x8c3f, 0x8c48, 0x8c4c, 0x8c4e, 0x8c50, 0x8c55, 0x8c62, 0x8c6c, 0x8c78, 0x8c7a, 0x8c82, 0x8c89, 0x8c85, 0x8c8a, 0x8c8d, 0x8c8e, 0x8c94, 0x8c7c, 0x8c98, 0x621d, 0x8cad, 0x8caa, 0x8cbd, 0x8cb2, 0x8cb3, 0x8cae, 0x8cb6, 0x8cc8, 0x8cc1, 0x8ce4, 0x8ce3, 0x8cda, 0x8cfd, 0x8cfa, 0x8cfb, 0x8d04, 0x8d05, 0x8d0a, 0x8d07, 0x8d0f, 0x8d0d, 0x8d10, 0x9f4e, 0x8d13, 0x8ccd, 0x8d14, 0x8d16, 0x8d67, 0x8d6d, 0x8d71, 0x8d73, 0x8d81, 0x8d99, 0x8dc2, 0x8dbe, 0x8dba, 0x8dcf, 0x8dda, 0x8dd6, 0x8dcc, 0x8ddb, 0x8dcb, 0x8dea, 0x8deb, 0x8ddf, 0x8de3, 0x8dfc, 0x8e08, 0x8e09, 0x8dff, 0x8e1d, 0x8e1e, 0x8e10, 0x8e1f, 0x8e42, 0x8e35, 0x8e30, 0x8e34, 0x8e4a }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe740[ 189 ] = { 0x8e47, 0x8e49, 0x8e4c, 0x8e50, 0x8e48, 0x8e59, 0x8e64, 0x8e60, 0x8e2a, 0x8e63, 0x8e55, 0x8e76, 0x8e72, 0x8e7c, 0x8e81, 0x8e87, 0x8e85, 0x8e84, 0x8e8b, 0x8e8a, 0x8e93, 0x8e91, 0x8e94, 0x8e99, 0x8eaa, 0x8ea1, 0x8eac, 0x8eb0, 0x8ec6, 0x8eb1, 0x8ebe, 0x8ec5, 0x8ec8, 0x8ecb, 0x8edb, 0x8ee3, 0x8efc, 0x8efb, 0x8eeb, 0x8efe, 0x8f0a, 0x8f05, 0x8f15, 0x8f12, 0x8f19, 0x8f13, 0x8f1c, 0x8f1f, 0x8f1b, 0x8f0c, 0x8f26, 0x8f33, 0x8f3b, 0x8f39, 0x8f45, 0x8f42, 0x8f3e, 0x8f4c, 0x8f49, 0x8f46, 0x8f4e, 0x8f57, 0x8f5c, 0xfffd, 0x8f62, 0x8f63, 0x8f64, 0x8f9c, 0x8f9f, 0x8fa3, 0x8fad, 0x8faf, 0x8fb7, 0x8fda, 0x8fe5, 0x8fe2, 0x8fea, 0x8fef, 0x9087, 0x8ff4, 0x9005, 0x8ff9, 0x8ffa, 0x9011, 0x9015, 0x9021, 0x900d, 0x901e, 0x9016, 0x900b, 0x9027, 0x9036, 0x9035, 0x9039, 0x8ff8, 0x904f, 0x9050, 0x9051, 0x9052, 0x900e, 0x9049, 0x903e, 0x9056, 0x9058, 0x905e, 0x9068, 0x906f, 0x9076, 0x96a8, 0x9072, 0x9082, 0x907d, 0x9081, 0x9080, 0x908a, 0x9089, 0x908f, 0x90a8, 0x90af, 0x90b1, 0x90b5, 0x90e2, 0x90e4, 0x6248, 0x90db, 0x9102, 0x9112, 0x9119, 0x9132, 0x9130, 0x914a, 0x9156, 0x9158, 0x9163, 0x9165, 0x9169, 0x9173, 0x9172, 0x918b, 0x9189, 0x9182, 0x91a2, 0x91ab, 0x91af, 0x91aa, 0x91b5, 0x91b4, 0x91ba, 0x91c0, 0x91c1, 0x91c9, 0x91cb, 0x91d0, 0x91d6, 0x91df, 0x91e1, 0x91db, 0x91fc, 0x91f5, 0x91f6, 0x921e, 0x91ff, 0x9214, 0x922c, 0x9215, 0x9211, 0x925e, 0x9257, 0x9245, 0x9249, 0x9264, 0x9248, 0x9295, 0x923f, 0x924b, 0x9250, 0x929c, 0x9296, 0x9293, 0x929b, 0x925a, 0x92cf, 0x92b9, 0x92b7, 0x92e9, 0x930f, 0x92fa, 0x9344, 0x932e }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe840[ 189 ] = { 0x9319, 0x9322, 0x931a, 0x9323, 0x933a, 0x9335, 0x933b, 0x935c, 0x9360, 0x937c, 0x936e, 0x9356, 0x93b0, 0x93ac, 0x93ad, 0x9394, 0x93b9, 0x93d6, 0x93d7, 0x93e8, 0x93e5, 0x93d8, 0x93c3, 0x93dd, 0x93d0, 0x93c8, 0x93e4, 0x941a, 0x9414, 0x9413, 0x9403, 0x9407, 0x9410, 0x9436, 0x942b, 0x9435, 0x9421, 0x943a, 0x9441, 0x9452, 0x9444, 0x945b, 0x9460, 0x9462, 0x945e, 0x946a, 0x9229, 0x9470, 0x9475, 0x9477, 0x947d, 0x945a, 0x947c, 0x947e, 0x9481, 0x947f, 0x9582, 0x9587, 0x958a, 0x9594, 0x9596, 0x9598, 0x9599, 0xfffd, 0x95a0, 0x95a8, 0x95a7, 0x95ad, 0x95bc, 0x95bb, 0x95b9, 0x95be, 0x95ca, 0x6ff6, 0x95c3, 0x95cd, 0x95cc, 0x95d5, 0x95d4, 0x95d6, 0x95dc, 0x95e1, 0x95e5, 0x95e2, 0x9621, 0x9628, 0x962e, 0x962f, 0x9642, 0x964c, 0x964f, 0x964b, 0x9677, 0x965c, 0x965e, 0x965d, 0x965f, 0x9666, 0x9672, 0x966c, 0x968d, 0x9698, 0x9695, 0x9697, 0x96aa, 0x96a7, 0x96b1, 0x96b2, 0x96b0, 0x96b4, 0x96b6, 0x96b8, 0x96b9, 0x96ce, 0x96cb, 0x96c9, 0x96cd, 0x894d, 0x96dc, 0x970d, 0x96d5, 0x96f9, 0x9704, 0x9706, 0x9708, 0x9713, 0x970e, 0x9711, 0x970f, 0x9716, 0x9719, 0x9724, 0x972a, 0x9730, 0x9739, 0x973d, 0x973e, 0x9744, 0x9746, 0x9748, 0x9742, 0x9749, 0x975c, 0x9760, 0x9764, 0x9766, 0x9768, 0x52d2, 0x976b, 0x9771, 0x9779, 0x9785, 0x977c, 0x9781, 0x977a, 0x9786, 0x978b, 0x978f, 0x9790, 0x979c, 0x97a8, 0x97a6, 0x97a3, 0x97b3, 0x97b4, 0x97c3, 0x97c6, 0x97c8, 0x97cb, 0x97dc, 0x97ed, 0x9f4f, 0x97f2, 0x7adf, 0x97f6, 0x97f5, 0x980f, 0x980c, 0x9838, 0x9824, 0x9821, 0x9837, 0x983d, 0x9846, 0x984f, 0x984b, 0x986b, 0x986f, 0x9870 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe940[ 189 ] = { 0x9871, 0x9874, 0x9873, 0x98aa, 0x98af, 0x98b1, 0x98b6, 0x98c4, 0x98c3, 0x98c6, 0x98e9, 0x98eb, 0x9903, 0x9909, 0x9912, 0x9914, 0x9918, 0x9921, 0x991d, 0x991e, 0x9924, 0x9920, 0x992c, 0x992e, 0x993d, 0x993e, 0x9942, 0x9949, 0x9945, 0x9950, 0x994b, 0x9951, 0x9952, 0x994c, 0x9955, 0x9997, 0x9998, 0x99a5, 0x99ad, 0x99ae, 0x99bc, 0x99df, 0x99db, 0x99dd, 0x99d8, 0x99d1, 0x99ed, 0x99ee, 0x99f1, 0x99f2, 0x99fb, 0x99f8, 0x9a01, 0x9a0f, 0x9a05, 0x99e2, 0x9a19, 0x9a2b, 0x9a37, 0x9a45, 0x9a42, 0x9a40, 0x9a43, 0xfffd, 0x9a3e, 0x9a55, 0x9a4d, 0x9a5b, 0x9a57, 0x9a5f, 0x9a62, 0x9a65, 0x9a64, 0x9a69, 0x9a6b, 0x9a6a, 0x9aad, 0x9ab0, 0x9abc, 0x9ac0, 0x9acf, 0x9ad1, 0x9ad3, 0x9ad4, 0x9ade, 0x9adf, 0x9ae2, 0x9ae3, 0x9ae6, 0x9aef, 0x9aeb, 0x9aee, 0x9af4, 0x9af1, 0x9af7, 0x9afb, 0x9b06, 0x9b18, 0x9b1a, 0x9b1f, 0x9b22, 0x9b23, 0x9b25, 0x9b27, 0x9b28, 0x9b29, 0x9b2a, 0x9b2e, 0x9b2f, 0x9b32, 0x9b44, 0x9b43, 0x9b4f, 0x9b4d, 0x9b4e, 0x9b51, 0x9b58, 0x9b74, 0x9b93, 0x9b83, 0x9b91, 0x9b96, 0x9b97, 0x9b9f, 0x9ba0, 0x9ba8, 0x9bb4, 0x9bc0, 0x9bca, 0x9bb9, 0x9bc6, 0x9bcf, 0x9bd1, 0x9bd2, 0x9be3, 0x9be2, 0x9be4, 0x9bd4, 0x9be1, 0x9c3a, 0x9bf2, 0x9bf1, 0x9bf0, 0x9c15, 0x9c14, 0x9c09, 0x9c13, 0x9c0c, 0x9c06, 0x9c08, 0x9c12, 0x9c0a, 0x9c04, 0x9c2e, 0x9c1b, 0x9c25, 0x9c24, 0x9c21, 0x9c30, 0x9c47, 0x9c32, 0x9c46, 0x9c3e, 0x9c5a, 0x9c60, 0x9c67, 0x9c76, 0x9c78, 0x9ce7, 0x9cec, 0x9cf0, 0x9d09, 0x9d08, 0x9ceb, 0x9d03, 0x9d06, 0x9d2a, 0x9d26, 0x9daf, 0x9d23, 0x9d1f, 0x9d44, 0x9d15, 0x9d12, 0x9d41, 0x9d3f, 0x9d3e, 0x9d46, 0x9d48 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xea40[ 101 ] = { 0x9d5d, 0x9d5e, 0x9d64, 0x9d51, 0x9d50, 0x9d59, 0x9d72, 0x9d89, 0x9d87, 0x9dab, 0x9d6f, 0x9d7a, 0x9d9a, 0x9da4, 0x9da9, 0x9db2, 0x9dc4, 0x9dc1, 0x9dbb, 0x9db8, 0x9dba, 0x9dc6, 0x9dcf, 0x9dc2, 0x9dd9, 0x9dd3, 0x9df8, 0x9de6, 0x9ded, 0x9def, 0x9dfd, 0x9e1a, 0x9e1b, 0x9e1e, 0x9e75, 0x9e79, 0x9e7d, 0x9e81, 0x9e88, 0x9e8b, 0x9e8c, 0x9e92, 0x9e95, 0x9e91, 0x9e9d, 0x9ea5, 0x9ea9, 0x9eb8, 0x9eaa, 0x9ead, 0x9761, 0x9ecc, 0x9ece, 0x9ecf, 0x9ed0, 0x9ed4, 0x9edc, 0x9ede, 0x9edd, 0x9ee0, 0x9ee5, 0x9ee8, 0x9eef, 0xfffd, 0x9ef4, 0x9ef6, 0x9ef7, 0x9ef9, 0x9efb, 0x9efc, 0x9efd, 0x9f07, 0x9f08, 0x76b7, 0x9f15, 0x9f21, 0x9f2c, 0x9f3e, 0x9f4a, 0x9f52, 0x9f54, 0x9f63, 0x9f5f, 0x9f60, 0x9f61, 0x9f66, 0x9f67, 0x9f6c, 0x9f6a, 0x9f77, 0x9f72, 0x9f76, 0x9f95, 0x9f9c, 0x9fa0, 0x582f, 0x69c7, 0x9059, 0x7464, 0x51dc, 0x7199 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xed40[ 189 ] = { 0x7e8a, 0x891c, 0x9348, 0x9288, 0x84dc, 0x4fc9, 0x70bb, 0x6631, 0x68c8, 0x92f9, 0x66fb, 0x5f45, 0x4e28, 0x4ee1, 0x4efc, 0x4f00, 0x4f03, 0x4f39, 0x4f56, 0x4f92, 0x4f8a, 0x4f9a, 0x4f94, 0x4fcd, 0x5040, 0x5022, 0x4fff, 0x501e, 0x5046, 0x5070, 0x5042, 0x5094, 0x50f4, 0x50d8, 0x514a, 0x5164, 0x519d, 0x51be, 0x51ec, 0x5215, 0x529c, 0x52a6, 0x52c0, 0x52db, 0x5300, 0x5307, 0x5324, 0x5372, 0x5393, 0x53b2, 0x53dd, 0xfa0e, 0x549c, 0x548a, 0x54a9, 0x54ff, 0x5586, 0x5759, 0x5765, 0x57ac, 0x57c8, 0x57c7, 0xfa0f, 0xfffd, 0xfa10, 0x589e, 0x58b2, 0x590b, 0x5953, 0x595b, 0x595d, 0x5963, 0x59a4, 0x59ba, 0x5b56, 0x5bc0, 0x752f, 0x5bd8, 0x5bec, 0x5c1e, 0x5ca6, 0x5cba, 0x5cf5, 0x5d27, 0x5d53, 0xfa11, 0x5d42, 0x5d6d, 0x5db8, 0x5db9, 0x5dd0, 0x5f21, 0x5f34, 0x5f67, 0x5fb7, 0x5fde, 0x605d, 0x6085, 0x608a, 0x60de, 0x60d5, 0x6120, 0x60f2, 0x6111, 0x6137, 0x6130, 0x6198, 0x6213, 0x62a6, 0x63f5, 0x6460, 0x649d, 0x64ce, 0x654e, 0x6600, 0x6615, 0x663b, 0x6609, 0x662e, 0x661e, 0x6624, 0x6665, 0x6657, 0x6659, 0xfa12, 0x6673, 0x6699, 0x66a0, 0x66b2, 0x66bf, 0x66fa, 0x670e, 0xf929, 0x6766, 0x67bb, 0x6852, 0x67c0, 0x6801, 0x6844, 0x68cf, 0xfa13, 0x6968, 0xfa14, 0x6998, 0x69e2, 0x6a30, 0x6a6b, 0x6a46, 0x6a73, 0x6a7e, 0x6ae2, 0x6ae4, 0x6bd6, 0x6c3f, 0x6c5c, 0x6c86, 0x6c6f, 0x6cda, 0x6d04, 0x6d87, 0x6d6f, 0x6d96, 0x6dac, 0x6dcf, 0x6df8, 0x6df2, 0x6dfc, 0x6e39, 0x6e5c, 0x6e27, 0x6e3c, 0x6ebf, 0x6f88, 0x6fb5, 0x6ff5, 0x7005, 0x7007, 0x7028, 0x7085, 0x70ab, 0x710f, 0x7104, 0x715c, 0x7146, 0x7147, 0xfa15, 0x71c1, 0x71fe, 0x72b1 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xee40[ 189 ] = { 0x72be, 0x7324, 0xfa16, 0x7377, 0x73bd, 0x73c9, 0x73d6, 0x73e3, 0x73d2, 0x7407, 0x73f5, 0x7426, 0x742a, 0x7429, 0x742e, 0x7462, 0x7489, 0x749f, 0x7501, 0x756f, 0x7682, 0x769c, 0x769e, 0x769b, 0x76a6, 0xfa17, 0x7746, 0x52af, 0x7821, 0x784e, 0x7864, 0x787a, 0x7930, 0xfa18, 0xfa19, 0xfa1a, 0x7994, 0xfa1b, 0x799b, 0x7ad1, 0x7ae7, 0xfa1c, 0x7aeb, 0x7b9e, 0xfa1d, 0x7d48, 0x7d5c, 0x7db7, 0x7da0, 0x7dd6, 0x7e52, 0x7f47, 0x7fa1, 0xfa1e, 0x8301, 0x8362, 0x837f, 0x83c7, 0x83f6, 0x8448, 0x84b4, 0x8553, 0x8559, 0xfffd, 0x856b, 0xfa1f, 0x85b0, 0xfa20, 0xfa21, 0x8807, 0x88f5, 0x8a12, 0x8a37, 0x8a79, 0x8aa7, 0x8abe, 0x8adf, 0xfa22, 0x8af6, 0x8b53, 0x8b7f, 0x8cf0, 0x8cf4, 0x8d12, 0x8d76, 0xfa23, 0x8ecf, 0xfa24, 0xfa25, 0x9067, 0x90de, 0xfa26, 0x9115, 0x9127, 0x91da, 0x91d7, 0x91de, 0x91ed, 0x91ee, 0x91e4, 0x91e5, 0x9206, 0x9210, 0x920a, 0x923a, 0x9240, 0x923c, 0x924e, 0x9259, 0x9251, 0x9239, 0x9267, 0x92a7, 0x9277, 0x9278, 0x92e7, 0x92d7, 0x92d9, 0x92d0, 0xfa27, 0x92d5, 0x92e0, 0x92d3, 0x9325, 0x9321, 0x92fb, 0xfa28, 0x931e, 0x92ff, 0x931d, 0x9302, 0x9370, 0x9357, 0x93a4, 0x93c6, 0x93de, 0x93f8, 0x9431, 0x9445, 0x9448, 0x9592, 0xf9dc, 0xfa29, 0x969d, 0x96af, 0x9733, 0x973b, 0x9743, 0x974d, 0x974f, 0x9751, 0x9755, 0x9857, 0x9865, 0xfa2a, 0xfa2b, 0x9927, 0xfa2c, 0x999e, 0x9a4e, 0x9ad9, 0x9adc, 0x9b75, 0x9b72, 0x9b8f, 0x9bb1, 0x9bbb, 0x9c00, 0x9d70, 0x9d6b, 0xfa2d, 0x9e19, 0x9ed1, 0xfffd, 0xfffd, 0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0xffe2, 0xffe4, 0xff07, 0xff02 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfa40[ 189 ] = { 0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, 0x2168, 0x2169, 0xffe2, 0xffe4, 0xff07, 0xff02, 0x3231, 0x2116, 0x2121, 0x2235, 0x7e8a, 0x891c, 0x9348, 0x9288, 0x84dc, 0x4fc9, 0x70bb, 0x6631, 0x68c8, 0x92f9, 0x66fb, 0x5f45, 0x4e28, 0x4ee1, 0x4efc, 0x4f00, 0x4f03, 0x4f39, 0x4f56, 0x4f92, 0x4f8a, 0x4f9a, 0x4f94, 0x4fcd, 0x5040, 0x5022, 0x4fff, 0x501e, 0x5046, 0x5070, 0x5042, 0x5094, 0x50f4, 0x50d8, 0x514a, 0xfffd, 0x5164, 0x519d, 0x51be, 0x51ec, 0x5215, 0x529c, 0x52a6, 0x52c0, 0x52db, 0x5300, 0x5307, 0x5324, 0x5372, 0x5393, 0x53b2, 0x53dd, 0xfa0e, 0x549c, 0x548a, 0x54a9, 0x54ff, 0x5586, 0x5759, 0x5765, 0x57ac, 0x57c8, 0x57c7, 0xfa0f, 0xfa10, 0x589e, 0x58b2, 0x590b, 0x5953, 0x595b, 0x595d, 0x5963, 0x59a4, 0x59ba, 0x5b56, 0x5bc0, 0x752f, 0x5bd8, 0x5bec, 0x5c1e, 0x5ca6, 0x5cba, 0x5cf5, 0x5d27, 0x5d53, 0xfa11, 0x5d42, 0x5d6d, 0x5db8, 0x5db9, 0x5dd0, 0x5f21, 0x5f34, 0x5f67, 0x5fb7, 0x5fde, 0x605d, 0x6085, 0x608a, 0x60de, 0x60d5, 0x6120, 0x60f2, 0x6111, 0x6137, 0x6130, 0x6198, 0x6213, 0x62a6, 0x63f5, 0x6460, 0x649d, 0x64ce, 0x654e, 0x6600, 0x6615, 0x663b, 0x6609, 0x662e, 0x661e, 0x6624, 0x6665, 0x6657, 0x6659, 0xfa12, 0x6673, 0x6699, 0x66a0, 0x66b2, 0x66bf, 0x66fa, 0x670e, 0xf929, 0x6766, 0x67bb, 0x6852, 0x67c0, 0x6801, 0x6844, 0x68cf, 0xfa13, 0x6968, 0xfa14, 0x6998, 0x69e2, 0x6a30, 0x6a6b, 0x6a46, 0x6a73, 0x6a7e, 0x6ae2, 0x6ae4, 0x6bd6, 0x6c3f, 0x6c5c, 0x6c86, 0x6c6f, 0x6cda, 0x6d04, 0x6d87, 0x6d6f }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfb40[ 189 ] = { 0x6d96, 0x6dac, 0x6dcf, 0x6df8, 0x6df2, 0x6dfc, 0x6e39, 0x6e5c, 0x6e27, 0x6e3c, 0x6ebf, 0x6f88, 0x6fb5, 0x6ff5, 0x7005, 0x7007, 0x7028, 0x7085, 0x70ab, 0x710f, 0x7104, 0x715c, 0x7146, 0x7147, 0xfa15, 0x71c1, 0x71fe, 0x72b1, 0x72be, 0x7324, 0xfa16, 0x7377, 0x73bd, 0x73c9, 0x73d6, 0x73e3, 0x73d2, 0x7407, 0x73f5, 0x7426, 0x742a, 0x7429, 0x742e, 0x7462, 0x7489, 0x749f, 0x7501, 0x756f, 0x7682, 0x769c, 0x769e, 0x769b, 0x76a6, 0xfa17, 0x7746, 0x52af, 0x7821, 0x784e, 0x7864, 0x787a, 0x7930, 0xfa18, 0xfa19, 0xfffd, 0xfa1a, 0x7994, 0xfa1b, 0x799b, 0x7ad1, 0x7ae7, 0xfa1c, 0x7aeb, 0x7b9e, 0xfa1d, 0x7d48, 0x7d5c, 0x7db7, 0x7da0, 0x7dd6, 0x7e52, 0x7f47, 0x7fa1, 0xfa1e, 0x8301, 0x8362, 0x837f, 0x83c7, 0x83f6, 0x8448, 0x84b4, 0x8553, 0x8559, 0x856b, 0xfa1f, 0x85b0, 0xfa20, 0xfa21, 0x8807, 0x88f5, 0x8a12, 0x8a37, 0x8a79, 0x8aa7, 0x8abe, 0x8adf, 0xfa22, 0x8af6, 0x8b53, 0x8b7f, 0x8cf0, 0x8cf4, 0x8d12, 0x8d76, 0xfa23, 0x8ecf, 0xfa24, 0xfa25, 0x9067, 0x90de, 0xfa26, 0x9115, 0x9127, 0x91da, 0x91d7, 0x91de, 0x91ed, 0x91ee, 0x91e4, 0x91e5, 0x9206, 0x9210, 0x920a, 0x923a, 0x9240, 0x923c, 0x924e, 0x9259, 0x9251, 0x9239, 0x9267, 0x92a7, 0x9277, 0x9278, 0x92e7, 0x92d7, 0x92d9, 0x92d0, 0xfa27, 0x92d5, 0x92e0, 0x92d3, 0x9325, 0x9321, 0x92fb, 0xfa28, 0x931e, 0x92ff, 0x931d, 0x9302, 0x9370, 0x9357, 0x93a4, 0x93c6, 0x93de, 0x93f8, 0x9431, 0x9445, 0x9448, 0x9592, 0xf9dc, 0xfa29, 0x969d, 0x96af, 0x9733, 0x973b, 0x9743, 0x974d, 0x974f, 0x9751, 0x9755, 0x9857, 0x9865, 0xfa2a, 0xfa2b, 0x9927, 0xfa2c, 0x999e, 0x9a4e, 0x9ad9 }; const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfc40[ 12 ] = { 0x9adc, 0x9b75, 0x9b72, 0x9b8f, 0x9bb1, 0x9bbb, 0x9c00, 0x9d70, 0x9d6b, 0xfa2d, 0x9e19, 0x9ed1 }; /* Unicode to ASCII character lookup table for Windows 932 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x0080[ 128 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9881, 0x4e81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8b81, 0x7d81, 0x001a, 0x001a, 0x4c81, 0x001a, 0xf781, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7e81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8081, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x0380[ 256 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9f83, 0xa083, 0xa183, 0xa283, 0xa383, 0xa483, 0xa583, 0xa683, 0xa783, 0xa883, 0xa983, 0xaa83, 0xab83, 0xac83, 0xad83, 0xae83, 0xaf83, 0x001a, 0xb083, 0xb183, 0xb283, 0xb383, 0xb483, 0xb583, 0xb683, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbf83, 0xc083, 0xc183, 0xc283, 0xc383, 0xc483, 0xc583, 0xc683, 0xc783, 0xc883, 0xc983, 0xca83, 0xcb83, 0xcc83, 0xcd83, 0xce83, 0xcf83, 0x001a, 0xd083, 0xd183, 0xd283, 0xd383, 0xd483, 0xd583, 0xd683, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4684, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4084, 0x4184, 0x4284, 0x4384, 0x4484, 0x4584, 0x4784, 0x4884, 0x4984, 0x4a84, 0x4b84, 0x4c84, 0x4d84, 0x4e84, 0x4f84, 0x5084, 0x5184, 0x5284, 0x5384, 0x5484, 0x5584, 0x5684, 0x5784, 0x5884, 0x5984, 0x5a84, 0x5b84, 0x5c84, 0x5d84, 0x5e84, 0x5f84, 0x6084, 0x7084, 0x7184, 0x7284, 0x7384, 0x7484, 0x7584, 0x7784, 0x7884, 0x7984, 0x7a84, 0x7b84, 0x7c84, 0x7d84, 0x7e84, 0x8084, 0x8184, 0x8284, 0x8384, 0x8484, 0x8584, 0x8684, 0x8784, 0x8884, 0x8984, 0x8a84, 0x8b84, 0x8c84, 0x8d84, 0x8e84, 0x8f84, 0x9084, 0x9184, 0x001a, 0x7684, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x2000[ 832 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5d81, 0x001a, 0x001a, 0x001a, 0x001a, 0x5c81, 0x001a, 0x001a, 0x6581, 0x6681, 0x001a, 0x001a, 0x6781, 0x6881, 0x001a, 0x001a, 0xf581, 0xf681, 0x001a, 0x001a, 0x001a, 0x6481, 0x6381, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf181, 0x001a, 0x8c81, 0x8d81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa681, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8e81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8287, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8487, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf081, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5487, 0x5587, 0x5687, 0x5787, 0x5887, 0x5987, 0x5a87, 0x5b87, 0x5c87, 0x5d87, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xefee, 0xf0ee, 0xf1ee, 0xf2ee, 0xf3ee, 0xf4ee, 0xf5ee, 0xf6ee, 0xf7ee, 0xf8ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa981, 0xaa81, 0xa881, 0xab81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcb81, 0x001a, 0xcc81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcd81, 0x001a, 0xdd81, 0xce81, 0x001a, 0x001a, 0x001a, 0xde81, 0xb881, 0x001a, 0x001a, 0xb981, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9487, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe381, 0x001a, 0x001a, 0xe581, 0x8781, 0x9887, 0xda81, 0x001a, 0x001a, 0x001a, 0x001a, 0x6181, 0x001a, 0xc881, 0xc981, 0xbf81, 0xbe81, 0xe781, 0xe881, 0x001a, 0x9387, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8881, 0xe681, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe481, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe081, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8281, 0xdf81, 0x001a, 0x001a, 0x001a, 0x001a, 0x8581, 0x8681, 0x001a, 0x001a, 0xe181, 0xe281, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbc81, 0xbd81, 0x001a, 0x001a, 0xba81, 0xbb81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdb81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9987, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdc81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x2440[ 576 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4087, 0x4187, 0x4287, 0x4387, 0x4487, 0x4587, 0x4687, 0x4787, 0x4887, 0x4987, 0x4a87, 0x4b87, 0x4c87, 0x4d87, 0x4e87, 0x4f87, 0x5087, 0x5187, 0x5287, 0x5387, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9f84, 0xaa84, 0xa084, 0xab84, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa184, 0x001a, 0x001a, 0xac84, 0xa284, 0x001a, 0x001a, 0xad84, 0xa484, 0x001a, 0x001a, 0xaf84, 0xa384, 0x001a, 0x001a, 0xae84, 0xa584, 0xba84, 0x001a, 0x001a, 0xb584, 0x001a, 0x001a, 0xb084, 0xa784, 0xbc84, 0x001a, 0x001a, 0xb784, 0x001a, 0x001a, 0xb284, 0xa684, 0x001a, 0x001a, 0xb684, 0xbb84, 0x001a, 0x001a, 0xb184, 0xa884, 0x001a, 0x001a, 0xb884, 0xbd84, 0x001a, 0x001a, 0xb384, 0xa984, 0x001a, 0x001a, 0xb984, 0x001a, 0x001a, 0xbe84, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb484, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa181, 0xa081, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa381, 0xa281, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa581, 0xa481, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9f81, 0x9e81, 0x001a, 0x001a, 0x001a, 0x9b81, 0x001a, 0x001a, 0x9d81, 0x9c81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfc81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9a81, 0x9981, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8a81, 0x001a, 0x8981, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf481, 0x001a, 0x001a, 0xf381, 0x001a, 0xf281, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x3000[ 256 ] = { 0x4081, 0x4181, 0x4281, 0x5681, 0x001a, 0x5881, 0x5981, 0x5a81, 0x7181, 0x7281, 0x7381, 0x7481, 0x7581, 0x7681, 0x7781, 0x7881, 0x7981, 0x7a81, 0xa781, 0xac81, 0x6b81, 0x6c81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8087, 0x001a, 0x8187, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9f82, 0xa082, 0xa182, 0xa282, 0xa382, 0xa482, 0xa582, 0xa682, 0xa782, 0xa882, 0xa982, 0xaa82, 0xab82, 0xac82, 0xad82, 0xae82, 0xaf82, 0xb082, 0xb182, 0xb282, 0xb382, 0xb482, 0xb582, 0xb682, 0xb782, 0xb882, 0xb982, 0xba82, 0xbb82, 0xbc82, 0xbd82, 0xbe82, 0xbf82, 0xc082, 0xc182, 0xc282, 0xc382, 0xc482, 0xc582, 0xc682, 0xc782, 0xc882, 0xc982, 0xca82, 0xcb82, 0xcc82, 0xcd82, 0xce82, 0xcf82, 0xd082, 0xd182, 0xd282, 0xd382, 0xd482, 0xd582, 0xd682, 0xd782, 0xd882, 0xd982, 0xda82, 0xdb82, 0xdc82, 0xdd82, 0xde82, 0xdf82, 0xe082, 0xe182, 0xe282, 0xe382, 0xe482, 0xe582, 0xe682, 0xe782, 0xe882, 0xe982, 0xea82, 0xeb82, 0xec82, 0xed82, 0xee82, 0xef82, 0xf082, 0xf182, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4a81, 0x4b81, 0x5481, 0x5581, 0x001a, 0x001a, 0x4083, 0x4183, 0x4283, 0x4383, 0x4483, 0x4583, 0x4683, 0x4783, 0x4883, 0x4983, 0x4a83, 0x4b83, 0x4c83, 0x4d83, 0x4e83, 0x4f83, 0x5083, 0x5183, 0x5283, 0x5383, 0x5483, 0x5583, 0x5683, 0x5783, 0x5883, 0x5983, 0x5a83, 0x5b83, 0x5c83, 0x5d83, 0x5e83, 0x5f83, 0x6083, 0x6183, 0x6283, 0x6383, 0x6483, 0x6583, 0x6683, 0x6783, 0x6883, 0x6983, 0x6a83, 0x6b83, 0x6c83, 0x6d83, 0x6e83, 0x6f83, 0x7083, 0x7183, 0x7283, 0x7383, 0x7483, 0x7583, 0x7683, 0x7783, 0x7883, 0x7983, 0x7a83, 0x7b83, 0x7c83, 0x7d83, 0x7e83, 0x8083, 0x8183, 0x8283, 0x8383, 0x8483, 0x8583, 0x8683, 0x8783, 0x8883, 0x8983, 0x8a83, 0x8b83, 0x8c83, 0x8d83, 0x8e83, 0x8f83, 0x9083, 0x9183, 0x9283, 0x9383, 0x9483, 0x9583, 0x9683, 0x001a, 0x001a, 0x001a, 0x001a, 0x4581, 0x5b81, 0x5281, 0x5381, 0x001a }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x3200[ 512 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8a87, 0x8b87, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8c87, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8587, 0x8687, 0x8787, 0x8887, 0x8987, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6587, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6987, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6087, 0x001a, 0x001a, 0x001a, 0x6387, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6187, 0x6b87, 0x001a, 0x001a, 0x6a87, 0x6487, 0x001a, 0x001a, 0x001a, 0x6c87, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6687, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e87, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5f87, 0x6d87, 0x001a, 0x001a, 0x6287, 0x001a, 0x001a, 0x001a, 0x6787, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6887, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7e87, 0x8f87, 0x8e87, 0x8d87, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7287, 0x7387, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6f87, 0x7087, 0x7187, 0x001a, 0x001a, 0x7587, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7487, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8387, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x4e00[ 22288 ] = { 0xea88, 0x9a92, 0x001a, 0xb58e, 0x001a, 0x001a, 0x001a, 0x9c96, 0xe48f, 0x4f8e, 0xe38f, 0xba89, 0x001a, 0x7395, 0x5e97, 0x001a, 0xa098, 0x4e89, 0x001a, 0x001a, 0x8e8a, 0xa198, 0xa290, 0xc099, 0x758b, 0xb895, 0x001a, 0x001a, 0x001a, 0x001a, 0xe58f, 0x001a, 0x001a, 0xbc97, 0x001a, 0x001a, 0x001a, 0x001a, 0xc095, 0x001a, 0x4ced, 0x001a, 0xa298, 0x001a, 0x001a, 0x8692, 0x001a, 0x001a, 0x001a, 0xa398, 0xf88b, 0x001a, 0x001a, 0x001a, 0xa498, 0x001a, 0xdb8a, 0x4f92, 0x001a, 0xe58e, 0xa598, 0x001a, 0x001a, 0xa698, 0x001a, 0x001a, 0xa798, 0x5494, 0x001a, 0x768b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5694, 0x001a, 0xe193, 0xc18c, 0x5296, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x68e5, 0xa898, 0xe68f, 0xa998, 0xb389, 0x001a, 0x001a, 0x001a, 0xe38b, 0xee8c, 0xe796, 0x001a, 0x001a, 0xa49b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9097, 0x001a, 0xfb93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa38a, 0x001a, 0x548b, 0x001a, 0xaa98, 0x001a, 0x001a, 0xab98, 0xb997, 0x001a, 0x5c97, 0x8891, 0xad98, 0x968e, 0xf193, 0x001a, 0xb098, 0x001a, 0x001a, 0x5d89, 0xdd8c, 0x001a, 0xdc8c, 0xe488, 0x001a, 0x001a, 0x6a98, 0x6998, 0x001a, 0xb18d, 0x9f88, 0x001a, 0xb198, 0xb298, 0xb398, 0x5396, 0xb498, 0x001a, 0xf08c, 0xe588, 0x9296, 0x001a, 0x9c8b, 0x001a, 0x001a, 0x9d8b, 0x9e8b, 0xe092, 0xba97, 0x001a, 0xb598, 0x001a, 0x001a, 0xb698, 0x001a, 0x001a, 0xb798, 0x001a, 0x001a, 0x001a, 0x6c90, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x598f, 0x6d90, 0xbc98, 0x001a, 0xba98, 0x001a, 0xbb98, 0x778b, 0x001a, 0x001a, 0xa18d, 0xee89, 0x001a, 0xb998, 0xb898, 0xa795, 0x001a, 0x001a, 0x001a, 0x001a, 0x658e, 0x648e, 0xbc91, 0xbd98, 0x7495, 0xe590, 0x001a, 0x001a, 0x001a, 0x5781, 0xbe98, 0xc098, 0x001a, 0x4ded, 0x001a, 0xe391, 0xdf97, 0xc888, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbf98, 0xbc89, 0x001a, 0xc28b, 0x001a, 0x8792, 0x001a, 0x001a, 0x001a, 0x8f8c, 0xc198, 0x001a, 0x001a, 0x001a, 0x4394, 0x4eed, 0x001a, 0x001a, 0x001a, 0x4fed, 0xe98a, 0x001a, 0x50ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc298, 0xc988, 0x001a, 0x001a, 0xde8c, 0xea8a, 0x9a95, 0xb094, 0x788b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xef89, 0x001a, 0xe598, 0x6093, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8c94, 0xc498, 0x001a, 0x001a, 0x001a, 0xba94, 0x001a, 0xe097, 0x001a, 0x4c90, 0x51ed, 0x668e, 0x001a, 0x978e, 0xbe89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcf92, 0x001a, 0x001a, 0x4192, 0xc898, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xca88, 0xe192, 0x5a8f, 0xb28d, 0x4397, 0x001a, 0xcc91, 0x001a, 0xbd89, 0x52ed, 0xc798, 0x001a, 0x5d97, 0xc398, 0xc598, 0xec8d, 0xc698, 0x439b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xce98, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd198, 0xcf98, 0x001a, 0x001a, 0xc089, 0x001a, 0xb995, 0xc998, 0x001a, 0x001a, 0x001a, 0x001a, 0xcd98, 0xf18c, 0x001a, 0x001a, 0x678e, 0x001a, 0x001a, 0x001a, 0xa48a, 0x001a, 0x001a, 0xd298, 0x001a, 0xca98, 0x001a, 0x54ed, 0xe197, 0x001a, 0x988e, 0x001a, 0xcb98, 0x001a, 0xd098, 0x53ed, 0x001a, 0x56ed, 0x001a, 0xd398, 0x001a, 0xcc98, 0x001a, 0x55ed, 0x9f8b, 0x001a, 0xcb88, 0x001a, 0x001a, 0xa08b, 0xbf89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x449b, 0x001a, 0x9996, 0x8e95, 0xf28c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4e90, 0xb597, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd695, 0x001a, 0x001a, 0x578c, 0xa391, 0xe289, 0x001a, 0x001a, 0x001a, 0x001a, 0x45ed, 0x728f, 0x001a, 0x001a, 0x57ed, 0xd798, 0x001a, 0xdc98, 0xda98, 0x001a, 0x001a, 0xd598, 0x001a, 0x001a, 0xad91, 0xd898, 0x001a, 0xdb98, 0xd998, 0x001a, 0xdb95, 0x001a, 0xd698, 0x001a, 0x4d90, 0x001a, 0x9396, 0xdd98, 0xde98, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x438f, 0xeb98, 0x001a, 0x001a, 0x001a, 0x6f94, 0x001a, 0x5595, 0xe698, 0x001a, 0xee95, 0x001a, 0xb489, 0x001a, 0x001a, 0x001a, 0xea98, 0x5aed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe498, 0xed98, 0x001a, 0x001a, 0x7191, 0x001a, 0xc28c, 0x001a, 0x7b94, 0x001a, 0xc5e0, 0x001a, 0xec98, 0x7c93, 0x001a, 0xe198, 0x001a, 0xf48c, 0x001a, 0x001a, 0xf38c, 0xdf98, 0x001a, 0x001a, 0x001a, 0x5bed, 0xd88e, 0x001a, 0xe798, 0x59ed, 0xed95, 0x6c92, 0xe398, 0x918c, 0x001a, 0xe098, 0xe898, 0xe298, 0xcf97, 0xe998, 0x6098, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe48b, 0x001a, 0x001a, 0x908c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x58ed, 0x001a, 0x5eed, 0xee98, 0x001a, 0x001a, 0x5ced, 0xef98, 0xf398, 0xcc88, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xce95, 0xf298, 0x001a, 0x001a, 0x001a, 0x001a, 0xf198, 0xf598, 0x001a, 0x001a, 0x001a, 0xf498, 0x001a, 0xe292, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x928c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf698, 0x001a, 0x001a, 0x001a, 0x5ded, 0x001a, 0xc38e, 0x001a, 0xa491, 0xe392, 0xf48b, 0x001a, 0xf798, 0x001a, 0x001a, 0x001a, 0x001a, 0x558b, 0x001a, 0x001a, 0xf898, 0x001a, 0x001a, 0x001a, 0x001a, 0xfa98, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5496, 0x001a, 0x001a, 0x001a, 0x868c, 0x001a, 0x001a, 0x5fed, 0x001a, 0x001a, 0x001a, 0x508e, 0xf594, 0xf998, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc38d, 0x6297, 0x001a, 0x001a, 0x001a, 0x001a, 0xfc98, 0x4299, 0xfb98, 0xc28d, 0x001a, 0x9d8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x588c, 0x001a, 0x001a, 0x001a, 0x4399, 0x001a, 0x001a, 0xcd8b, 0x001a, 0x001a, 0x001a, 0x4099, 0x4199, 0x001a, 0x001a, 0xad93, 0x001a, 0x9c91, 0x001a, 0xa18b, 0x001a, 0x001a, 0x001a, 0x6c96, 0x4499, 0x001a, 0x61ed, 0x001a, 0xbb97, 0x001a, 0x001a, 0x001a, 0x4599, 0x001a, 0x001a, 0x001a, 0x001a, 0x4899, 0x001a, 0x4699, 0x001a, 0x6d91, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4799, 0x4999, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x60ed, 0x4b99, 0x001a, 0x001a, 0x001a, 0x4a99, 0x001a, 0xc695, 0x001a, 0x001a, 0x001a, 0x001a, 0x568b, 0x4d99, 0x4e99, 0x001a, 0xad89, 0x001a, 0x001a, 0x001a, 0x001a, 0x4c99, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf28e, 0x001a, 0x5199, 0x5099, 0x4f99, 0x001a, 0xd498, 0x001a, 0x5299, 0x001a, 0x001a, 0x001a, 0x001a, 0x9e8f, 0x001a, 0x5399, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4497, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd796, 0x001a, 0x001a, 0x001a, 0x001a, 0x5599, 0x001a, 0x001a, 0x5499, 0x5799, 0x5699, 0x001a, 0x001a, 0x5899, 0x5999, 0xf288, 0x001a, 0xb38c, 0x5a8c, 0x5b8f, 0x9b92, 0xa28b, 0xe690, 0xf58c, 0x62ed, 0x8e8d, 0x5b99, 0xc696, 0x6593, 0x001a, 0x998e, 0x001a, 0x5a99, 0x001a, 0x5c99, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7d93, 0x001a, 0x958a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5d99, 0x001a, 0x63ed, 0xfc93, 0x001a, 0x001a, 0x5391, 0x5f99, 0x6099, 0xaa94, 0xf68c, 0x5a98, 0x6199, 0x001a, 0x001a, 0xa48b, 0x001a, 0x001a, 0x001a, 0xba95, 0xb491, 0xef8b, 0x5493, 0x001a, 0x001a, 0x001a, 0x938c, 0x001a, 0x001a, 0x001a, 0x6299, 0x001a, 0x6399, 0x001a, 0x001a, 0xe093, 0x7e89, 0x001a, 0x001a, 0x6699, 0xfb8d, 0x001a, 0x6599, 0xc48d, 0x001a, 0x6799, 0xece3, 0x6899, 0x6096, 0x6999, 0x001a, 0x6a99, 0x6b99, 0xe78f, 0x001a, 0xca8e, 0x001a, 0x001a, 0x001a, 0x64ed, 0x001a, 0x001a, 0xa58a, 0x001a, 0x6e99, 0x001a, 0x6c99, 0xbb96, 0x6d99, 0x001a, 0x7995, 0x6f99, 0x7099, 0x7199, 0x7e93, 0x001a, 0x001a, 0x001a, 0x7599, 0x7399, 0x7499, 0x7299, 0xe18d, 0x7699, 0xe896, 0xe297, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7799, 0x65ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa690, 0x7899, 0x798f, 0x001a, 0x001a, 0x7999, 0x001a, 0x9c92, 0xbd97, 0x8093, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc399, 0x001a, 0x001a, 0x001a, 0x001a, 0x7a99, 0xa3ea, 0xc38b, 0x001a, 0x001a, 0x7b99, 0x7d96, 0x001a, 0x001a, 0x001a, 0x001a, 0x888f, 0xfa91, 0x001a, 0x7d99, 0xe293, 0x001a, 0x66ed, 0x7e99, 0x001a, 0x001a, 0x8099, 0x4d8a, 0x001a, 0x001a, 0x001a, 0x8199, 0xa58b, 0x001a, 0xca93, 0x9a89, 0x6f8f, 0x001a, 0x001a, 0x9f94, 0x8299, 0x001a, 0x8193, 0x001a, 0x001a, 0x6e90, 0x8399, 0x001a, 0xaa95, 0xd890, 0xa08a, 0x001a, 0xa78a, 0x8499, 0x001a, 0x001a, 0x8699, 0x001a, 0x001a, 0x598c, 0x001a, 0x001a, 0x8599, 0x67ed, 0x001a, 0xf197, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x898f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbb94, 0xca95, 0x001a, 0x8799, 0x001a, 0x9897, 0x8899, 0x001a, 0x001a, 0x001a, 0x8999, 0x001a, 0x9e93, 0x001a, 0x001a, 0x8a99, 0x001a, 0x001a, 0xa790, 0xfc8d, 0x948c, 0x8b99, 0x688e, 0x8f8d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe492, 0x8d99, 0x001a, 0x001a, 0xa591, 0x001a, 0x001a, 0xed8d, 0x8e99, 0x8f99, 0x4f91, 0x001a, 0x8c99, 0x001a, 0x001a, 0x001a, 0x001a, 0x9199, 0x001a, 0x5596, 0x001a, 0x001a, 0x001a, 0x001a, 0x848d, 0x001a, 0x001a, 0x9099, 0x001a, 0x001a, 0x001a, 0x001a, 0x958c, 0xdc8d, 0x8d94, 0x001a, 0x001a, 0x001a, 0x9499, 0x9299, 0x001a, 0x001a, 0x001a, 0x001a, 0x9b95, 0xe88f, 0x9b99, 0x848a, 0x9599, 0x9399, 0x6e91, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9799, 0x001a, 0x9699, 0x001a, 0x001a, 0x001a, 0x638a, 0x001a, 0x001a, 0x001a, 0x808c, 0x9c99, 0xab97, 0x001a, 0x001a, 0x001a, 0x9899, 0x001a, 0x001a, 0x001a, 0x9d99, 0x9a99, 0x001a, 0x9999, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcd97, 0x68ed, 0x001a, 0x001a, 0xf78c, 0xc189, 0x001a, 0x001a, 0xf297, 0x001a, 0x001a, 0x69ed, 0x001a, 0x001a, 0x958f, 0x7793, 0x858d, 0xa099, 0xa199, 0x001a, 0x5bee, 0x001a, 0xe397, 0x001a, 0x001a, 0x4a98, 0xa399, 0x001a, 0x001a, 0x001a, 0xf88c, 0x001a, 0x001a, 0xa299, 0x001a, 0x4e8a, 0x001a, 0x6aed, 0xa499, 0x001a, 0x7596, 0x001a, 0xba92, 0x001a, 0x4597, 0x001a, 0xd795, 0x001a, 0x001a, 0x001a, 0xa599, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3e8, 0x001a, 0x001a, 0xae93, 0x001a, 0xa699, 0xa88a, 0xb196, 0x001a, 0x6bed, 0x001a, 0x9f8f, 0xa799, 0xe595, 0xab99, 0x001a, 0xa890, 0xa899, 0xce8b, 0x001a, 0xa999, 0xa98a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4d8c, 0xac99, 0x001a, 0xad99, 0x001a, 0x001a, 0xae99, 0xaf99, 0xd98e, 0x001a, 0x001a, 0x001a, 0xf98c, 0xdc96, 0x6ced, 0xe696, 0xf593, 0x001a, 0x001a, 0xef95, 0xb099, 0x6ded, 0xb199, 0x001a, 0x001a, 0x001a, 0x001a, 0xb399, 0x001a, 0xb599, 0xb499, 0x001a, 0x001a, 0x001a, 0x001a, 0xb699, 0xbb89, 0x6b96, 0x001a, 0xfa8d, 0xb799, 0x001a, 0x001a, 0x7891, 0x001a, 0x001a, 0xa08f, 0xa78b, 0x001a, 0xb899, 0x6eed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd994, 0x001a, 0x001a, 0x001a, 0x001a, 0xb999, 0x001a, 0xba99, 0x001a, 0xbb99, 0x001a, 0x001a, 0x001a, 0x001a, 0xbc99, 0x4395, 0xe68b, 0xe388, 0x001a, 0x001a, 0x001a, 0xbd93, 0xbd99, 0x5c8f, 0x001a, 0xe790, 0x001a, 0xbf99, 0xbe99, 0xa18f, 0xdf8c, 0xc199, 0xbc94, 0x001a, 0x001a, 0xc299, 0x001a, 0x001a, 0x001a, 0xda94, 0xb291, 0xec91, 0xa68b, 0x001a, 0x001a, 0xec93, 0x5092, 0x001a, 0x8e94, 0x001a, 0x6d96, 0x001a, 0xc499, 0x001a, 0xe890, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x548c, 0x001a, 0x001a, 0xc599, 0x001a, 0x001a, 0x001a, 0x001a, 0xc699, 0x4b89, 0xf388, 0xeb8a, 0x6fed, 0xa691, 0x708b, 0x9197, 0x001a, 0xc999, 0xb589, 0x001a, 0x001a, 0xc899, 0x001a, 0x001a, 0x001a, 0xa88b, 0x001a, 0x001a, 0xca99, 0x001a, 0xef96, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x70ed, 0x001a, 0x001a, 0xcb99, 0x001a, 0xd097, 0x001a, 0xfa8c, 0x001a, 0x001a, 0x001a, 0x001a, 0xb48c, 0xcc99, 0x001a, 0x001a, 0x001a, 0x001a, 0xce99, 0xcd99, 0x001a, 0x7e90, 0x5889, 0x001a, 0x001a, 0x001a, 0x7d89, 0xcf99, 0x001a, 0xd099, 0x001a, 0x71ed, 0xb58c, 0x001a, 0x001a, 0xd199, 0x001a, 0x001a, 0x001a, 0x001a, 0x8e8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x518e, 0xd299, 0x001a, 0x001a, 0x001a, 0x001a, 0x9496, 0xb38d, 0x798b, 0x4697, 0x6f91, 0xbd94, 0xfb8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x668f, 0x001a, 0xe68e, 0xf38e, 0x001a, 0x968f, 0x001a, 0xbe94, 0x001a, 0x72ed, 0x001a, 0xd599, 0x001a, 0x6289, 0x7091, 0xfb8c, 0xc38c, 0xe58b, 0x001a, 0x001a, 0xd999, 0x4092, 0xfc91, 0xa98b, 0xa28f, 0xda99, 0xd899, 0xc289, 0xe491, 0xb68e, 0x6a8e, 0x4589, 0x001a, 0x001a, 0x908a, 0x868d, 0x698e, 0x001a, 0xdb99, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdc99, 0x001a, 0x688b, 0x658a, 0x001a, 0x001a, 0x001a, 0x878d, 0x678b, 0xdd92, 0x4489, 0xaf93, 0xbc96, 0x408d, 0x9997, 0x6693, 0xfc8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4e8c, 0x001a, 0xe599, 0x001a, 0xe18b, 0x6996, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdb94, 0x001a, 0x001a, 0xe499, 0x001a, 0xdc8a, 0xdf99, 0xe099, 0xe299, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe399, 0x001a, 0x7a8b, 0x8190, 0x001a, 0xab95, 0xe199, 0xdd99, 0xe18c, 0x001a, 0xde99, 0x001a, 0x4398, 0x001a, 0x001a, 0x001a, 0xf095, 0x001a, 0xe692, 0xe08c, 0x908d, 0x001a, 0x001a, 0x001a, 0xe699, 0x001a, 0x001a, 0xdb93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xea99, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfc8e, 0x001a, 0xf48e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xed99, 0xeb99, 0x001a, 0xa196, 0x001a, 0xe899, 0xf199, 0xec99, 0x001a, 0x001a, 0x001a, 0xef99, 0xc48c, 0xbd96, 0x001a, 0x001a, 0xf099, 0x001a, 0x001a, 0x001a, 0xf299, 0x001a, 0xf499, 0x001a, 0x001a, 0x001a, 0x75ed, 0xee8d, 0x6198, 0x001a, 0xe999, 0xe799, 0xf399, 0x001a, 0xee99, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x74ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf699, 0x001a, 0x429a, 0xf899, 0x001a, 0x001a, 0xfc99, 0x76ed, 0x001a, 0x409a, 0xf999, 0x001a, 0x001a, 0x5d9a, 0x001a, 0x001a, 0xe78d, 0x508a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf799, 0x001a, 0x001a, 0x001a, 0x449a, 0xf488, 0x439a, 0x001a, 0xa388, 0x6995, 0x419a, 0x001a, 0xfa99, 0x001a, 0x001a, 0xf599, 0xfb99, 0xc68d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x459a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf588, 0x4e9a, 0x001a, 0x001a, 0x469a, 0x479a, 0x001a, 0xa38f, 0x8996, 0x001a, 0x001a, 0x001a, 0x4c9a, 0x4b9a, 0x001a, 0x001a, 0x001a, 0x4e93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4d9a, 0x001a, 0x001a, 0x4a9a, 0x001a, 0x77ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x5389, 0x001a, 0xb48d, 0x4f90, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x489a, 0x8293, 0x001a, 0x001a, 0x001a, 0x499a, 0x001a, 0xa088, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x539a, 0x4297, 0x001a, 0xa58f, 0x001a, 0x599a, 0x001a, 0x001a, 0x001a, 0x001a, 0x589a, 0x4f9a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc191, 0x001a, 0x509a, 0x001a, 0x001a, 0x001a, 0xed91, 0x559a, 0xa48f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x529a, 0x001a, 0x001a, 0xe296, 0x001a, 0x001a, 0x001a, 0x5b8c, 0x001a, 0x001a, 0x569a, 0x579a, 0x001a, 0x001a, 0x001a, 0x001a, 0x549a, 0x5a9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x519a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x609a, 0x659a, 0x001a, 0x619a, 0x001a, 0x5c9a, 0x001a, 0x001a, 0x669a, 0x5091, 0x001a, 0x78ed, 0x689a, 0x001a, 0x418d, 0x5e9a, 0x9d92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x629a, 0x5b9a, 0xab8a, 0x001a, 0xec8a, 0x858a, 0x639a, 0x5f9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x968c, 0x699a, 0x679a, 0x7291, 0x698b, 0xaa8b, 0x001a, 0x649a, 0x001a, 0xf28b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6389, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6d9a, 0x6b9a, 0x001a, 0xa59a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x709a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6a9a, 0x001a, 0x6e9a, 0x001a, 0x001a, 0x6c9a, 0x001a, 0x001a, 0x001a, 0x6b8e, 0x6f9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x729a, 0x001a, 0x779a, 0x001a, 0x001a, 0x001a, 0x759a, 0x749a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5192, 0x001a, 0x001a, 0xc389, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x719a, 0x001a, 0x739a, 0xa68f, 0x5289, 0x001a, 0x001a, 0x769a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdc89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x829a, 0x001a, 0xfa8f, 0x7d9a, 0x001a, 0x7b9a, 0x001a, 0x7c9a, 0x001a, 0x7e9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5c89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5891, 0x001a, 0x789a, 0x001a, 0x799a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9a8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x819a, 0x001a, 0x001a, 0x001a, 0xed8a, 0x001a, 0x849a, 0x809a, 0x839a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xac95, 0x001a, 0x001a, 0x001a, 0xd393, 0x001a, 0xb694, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x869a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x859a, 0x648a, 0x001a, 0x001a, 0x879a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8a9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x899a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x889a, 0x001a, 0x5894, 0x001a, 0x001a, 0x8b9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8c9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8e9a, 0x001a, 0x8d9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x909a, 0x001a, 0x001a, 0x001a, 0x939a, 0x919a, 0x8f9a, 0x929a, 0x001a, 0x001a, 0x001a, 0x001a, 0x949a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x959a, 0x001a, 0x001a, 0x969a, 0x001a, 0x979a, 0x001a, 0x001a, 0x001a, 0x989a, 0x6499, 0x001a, 0xfa8e, 0x6c8e, 0x001a, 0x001a, 0xf189, 0x001a, 0xf688, 0x001a, 0x001a, 0x6392, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x999a, 0x001a, 0xa28d, 0x001a, 0xcd88, 0x7d90, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9a9a, 0xc58c, 0x001a, 0x001a, 0x918d, 0x001a, 0x9c9a, 0x9b9a, 0x001a, 0x001a, 0xde95, 0x9d9a, 0x001a, 0x001a, 0x001a, 0x9f9a, 0x9e9a, 0x001a, 0xa09a, 0x001a, 0xa19a, 0x001a, 0x978c, 0x001a, 0x001a, 0x8089, 0xa29a, 0x001a, 0x001a, 0xa49a, 0x001a, 0xa39a, 0x001a, 0x001a, 0x001a, 0xa69a, 0x001a, 0x001a, 0x7993, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa79a, 0xb388, 0xdd8d, 0x001a, 0x001a, 0x001a, 0x001a, 0x5c8c, 0x001a, 0x001a, 0x6e92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa89a, 0xa99a, 0x001a, 0x001a, 0xab9a, 0x001a, 0x001a, 0x001a, 0x001a, 0xac9a, 0x001a, 0xe28d, 0x001a, 0x001a, 0x001a, 0x001a, 0xcf8b, 0x001a, 0x001a, 0x5696, 0x001a, 0x001a, 0x001a, 0xaa9a, 0xad9a, 0xbf8d, 0x428d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x79ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb19a, 0x001a, 0x001a, 0xa38d, 0x7aed, 0x5292, 0x001a, 0x001a, 0xae9a, 0xd892, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb29a, 0x001a, 0x001a, 0x8290, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb09a, 0xb39a, 0x001a, 0x5e8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb49a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb59a, 0x001a, 0x438d, 0x5f8a, 0xb79a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb89a, 0x001a, 0x7bed, 0x001a, 0x001a, 0x001a, 0xb99a, 0x001a, 0x001a, 0xb69a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaf9a, 0x001a, 0x001a, 0xba9a, 0x001a, 0x001a, 0xbb9a, 0x7ded, 0x7ced, 0x001a, 0x001a, 0x8496, 0x001a, 0x001a, 0xe98f, 0x001a, 0x001a, 0x001a, 0xbd9a, 0xbe9a, 0xbc9a, 0x001a, 0xc09a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5794, 0x001a, 0x001a, 0xe688, 0x7595, 0x001a, 0x001a, 0xc19a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfb8f, 0x001a, 0x001a, 0xb78e, 0x001a, 0x7c94, 0xee8a, 0x001a, 0xe98d, 0x001a, 0x001a, 0x001a, 0x7896, 0x001a, 0xb093, 0x001a, 0x001a, 0x988c, 0xcd91, 0x001a, 0x001a, 0x001a, 0xbf9a, 0xc29a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc291, 0x001a, 0x001a, 0x001a, 0xc39a, 0x001a, 0x001a, 0x001a, 0xc49a, 0x001a, 0x001a, 0x001a, 0xc69a, 0x001a, 0x001a, 0xe792, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xac8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9fea, 0x8189, 0xf195, 0x001a, 0x001a, 0xea8f, 0x6793, 0x001a, 0x001a, 0x001a, 0x001a, 0xe48d, 0x001a, 0x001a, 0xcc9a, 0x001a, 0x001a, 0xbb95, 0xdb97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf289, 0xc89a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5991, 0xcb9a, 0x001a, 0x8393, 0x001a, 0x001a, 0x6893, 0x8493, 0xb794, 0xcb92, 0x001a, 0x001a, 0x001a, 0xc78d, 0x001a, 0x001a, 0x001a, 0xc79a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9689, 0x001a, 0x5593, 0x001a, 0x001a, 0x001a, 0x001a, 0xc99a, 0x001a, 0xc59a, 0x001a, 0x001a, 0x6f90, 0x001a, 0x001a, 0x001a, 0xcd9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6d8f, 0x001a, 0x001a, 0x001a, 0x001a, 0xab8b, 0x001a, 0xce9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe695, 0x001a, 0x001a, 0x001a, 0x9d91, 0x001a, 0x001a, 0x001a, 0x001a, 0xc492, 0x001a, 0x81ed, 0xd09a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e96, 0x001a, 0x001a, 0xd19a, 0x001a, 0x001a, 0xd69a, 0x001a, 0x001a, 0x001a, 0x82ed, 0xad95, 0x001a, 0x001a, 0x001a, 0x001a, 0xd59a, 0xcf9a, 0xd29a, 0xd49a, 0x001a, 0x001a, 0xa48d, 0x001a, 0x001a, 0xc795, 0x001a, 0x001a, 0x001a, 0xd79a, 0x001a, 0x6492, 0x001a, 0x001a, 0xf389, 0x001a, 0xeb8f, 0x001a, 0x001a, 0x001a, 0x001a, 0xd99a, 0x001a, 0xd89a, 0x001a, 0x888d, 0x001a, 0xda9a, 0xdc9a, 0xdb9a, 0x001a, 0x001a, 0xde9a, 0x001a, 0xd39a, 0xe09a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf9a, 0xdd9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6d8e, 0x7090, 0x001a, 0x7391, 0xe19a, 0xba90, 0xeb88, 0x8494, 0x001a, 0x001a, 0x001a, 0x001a, 0xd992, 0x001a, 0xe39a, 0xe29a, 0xe49a, 0xe59a, 0xe69a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe79a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcf95, 0xe89a, 0x83ed, 0x001a, 0x001a, 0x001a, 0xc489, 0xe99a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5b97, 0x4f8a, 0x001a, 0xc799, 0x678f, 0xbd91, 0xea9a, 0xe996, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb296, 0x001a, 0x001a, 0xec9a, 0x001a, 0xe591, 0x001a, 0x5693, 0xbe91, 0x7695, 0xed9a, 0xee9a, 0x9b89, 0x001a, 0x001a, 0xb88e, 0xef9a, 0x001a, 0x001a, 0x001a, 0x001a, 0xce88, 0xf09a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf19a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8289, 0x001a, 0x001a, 0xef8a, 0xde93, 0xf295, 0x001a, 0x001a, 0x001a, 0x001a, 0xf59a, 0x7491, 0xf49a, 0x5f8c, 0x001a, 0x84ed, 0x7a96, 0xf39a, 0x001a, 0x8593, 0xf79a, 0x001a, 0xf69a, 0x85ed, 0x001a, 0x86ed, 0x001a, 0x001a, 0xf99a, 0x001a, 0xf89a, 0x87ed, 0x001a, 0x9c89, 0x001a, 0xfa9a, 0xa78f, 0xfc9a, 0x4492, 0x001a, 0xfb9a, 0x001a, 0xb195, 0x001a, 0x001a, 0x001a, 0x001a, 0x978f, 0x7a93, 0x001a, 0x001a, 0x001a, 0x409b, 0x001a, 0x001a, 0x001a, 0x001a, 0x448d, 0x001a, 0x001a, 0x001a, 0x419b, 0x4094, 0xdc94, 0xcf96, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4494, 0x001a, 0x001a, 0x4a9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x578b, 0x001a, 0x001a, 0x6497, 0x001a, 0x001a, 0xad96, 0x001a, 0xaa9b, 0x001a, 0x429b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x459b, 0x88ed, 0xc391, 0x001a, 0x001a, 0x5796, 0x001a, 0x001a, 0x001a, 0x6993, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x469b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8596, 0x89ed, 0xc88d, 0x001a, 0x001a, 0xa88f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x479b, 0x001a, 0x001a, 0x6f8e, 0x001a, 0x6e8e, 0x001a, 0x001a, 0x001a, 0x001a, 0xb788, 0xc68c, 0x001a, 0xa990, 0xcf88, 0x001a, 0x001a, 0x001a, 0x001a, 0x4b9b, 0x4c9b, 0x001a, 0x499b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5789, 0xad8a, 0x001a, 0x489b, 0x001a, 0xc396, 0x5095, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa688, 0x001a, 0x001a, 0x001a, 0x001a, 0xf788, 0x001a, 0x001a, 0x001a, 0x708e, 0x001a, 0xd088, 0x001a, 0xa188, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x519b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4f9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xba96, 0x001a, 0x529b, 0x001a, 0x509b, 0x001a, 0x001a, 0x4e9b, 0x5090, 0x001a, 0x001a, 0x001a, 0x001a, 0x4d9b, 0x001a, 0x001a, 0x001a, 0xd895, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe28c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x569b, 0x579b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa98f, 0x001a, 0x001a, 0x001a, 0x539b, 0x4b98, 0x001a, 0x001a, 0x001a, 0x001a, 0x6b94, 0x001a, 0x001a, 0x559b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa58d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x589b, 0x001a, 0x001a, 0x001a, 0x7795, 0x001a, 0x001a, 0x001a, 0x599b, 0x001a, 0x549b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb996, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7d94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5a9b, 0x5195, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5b9b, 0x5f9b, 0x5c9b, 0x001a, 0x001a, 0xc589, 0x5e9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb98e, 0x001a, 0x5d9b, 0x998c, 0x001a, 0x001a, 0x001a, 0x6b9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x649b, 0x619b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8492, 0x001a, 0x609b, 0x001a, 0x001a, 0x629b, 0x001a, 0x001a, 0x639b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x659b, 0x669b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf08a, 0x001a, 0x689b, 0x679b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x699b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xec8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6c9b, 0x001a, 0xda92, 0x001a, 0x001a, 0x001a, 0x6489, 0x001a, 0x6a9b, 0x001a, 0x001a, 0x001a, 0x6d9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e9b, 0x001a, 0x719b, 0x001a, 0x001a, 0x6f9b, 0x001a, 0x709b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x718e, 0x729b, 0x001a, 0x001a, 0x458d, 0x739b, 0x8aed, 0x9a8e, 0xb691, 0x001a, 0x749b, 0x759b, 0x798e, 0x468d, 0x001a, 0xd096, 0x001a, 0x001a, 0x001a, 0x478b, 0xc78c, 0x769b, 0x778a, 0x001a, 0x001a, 0x779b, 0x001a, 0xb791, 0x001a, 0x001a, 0x001a, 0x001a, 0x789b, 0xa19b, 0x001a, 0x799b, 0x001a, 0x7a9b, 0x001a, 0x001a, 0x7b9b, 0x001a, 0x7d9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7e9b, 0x001a, 0x001a, 0x809b, 0x001a, 0xee91, 0x001a, 0x4689, 0xe78e, 0xc088, 0x001a, 0x7691, 0xae8a, 0xb38e, 0x001a, 0x478d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8693, 0x001a, 0x408f, 0xaf8a, 0x8892, 0xe892, 0xb688, 0x588b, 0xf395, 0x001a, 0xc08e, 0x001a, 0x001a, 0x718b, 0xe990, 0xba8e, 0x4797, 0x819b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7b8b, 0x001a, 0xc98d, 0x001a, 0x001a, 0x518a, 0x8389, 0xaa8f, 0xc689, 0x001a, 0x829b, 0x6597, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x688f, 0x8bed, 0x001a, 0xe28e, 0x839b, 0xf18a, 0xd093, 0xa796, 0x849b, 0x001a, 0x859b, 0x001a, 0x001a, 0x7895, 0x001a, 0x001a, 0x001a, 0x879b, 0x001a, 0xa68a, 0xf58b, 0x869b, 0x001a, 0x001a, 0x001a, 0x8ded, 0x001a, 0x001a, 0xb08a, 0x001a, 0x5190, 0x8b9b, 0x408e, 0x001a, 0xc789, 0x8a9b, 0x001a, 0x889b, 0x8c9b, 0x899b, 0x4a94, 0xcb9e, 0x5290, 0x001a, 0x8d9b, 0x8eed, 0x001a, 0xbe97, 0x001a, 0x8e9b, 0x001a, 0x001a, 0x909b, 0x001a, 0x9e92, 0x8f9b, 0x001a, 0xa190, 0x001a, 0x9b8e, 0x001a, 0x001a, 0x001a, 0xce91, 0xf58e, 0x001a, 0x9595, 0xea90, 0x001a, 0xcb8e, 0x919b, 0xab8f, 0x929b, 0x939b, 0xd188, 0xb891, 0x7190, 0x001a, 0x949b, 0xb193, 0xac8f, 0x001a, 0xad8f, 0x001a, 0x959b, 0x001a, 0x001a, 0xeb90, 0x001a, 0x001a, 0x001a, 0xae8f, 0x001a, 0x001a, 0x001a, 0x8fed, 0x001a, 0x969b, 0x001a, 0x979b, 0x001a, 0xde96, 0x001a, 0x001a, 0x001a, 0x989b, 0x001a, 0x001a, 0x001a, 0x001a, 0xc48b, 0x001a, 0x001a, 0x001a, 0x418f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x999b, 0x9a9b, 0xda8e, 0x4b90, 0xf293, 0x7390, 0xf694, 0x4194, 0xc78b, 0x9b9b, 0x001a, 0x001a, 0x001a, 0x8f8b, 0x9c9b, 0x001a, 0xfc8b, 0x001a, 0xcd93, 0xae89, 0x001a, 0x728e, 0x9d9b, 0xa09b, 0x9f9b, 0xfb8b, 0x001a, 0x9e9b, 0x001a, 0x5793, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xae91, 0x001a, 0x6a93, 0xc68e, 0x001a, 0x001a, 0x7791, 0x9a97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa29b, 0x001a, 0xa39b, 0xd493, 0x001a, 0x528e, 0x001a, 0x001a, 0x001a, 0x001a, 0xa59b, 0x001a, 0x001a, 0xa69b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa79b, 0x001a, 0x001a, 0x001a, 0xf28a, 0xa89b, 0x001a, 0x001a, 0xa99b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaa89, 0x001a, 0x001a, 0x001a, 0x001a, 0x90ed, 0x001a, 0x5a91, 0xe28a, 0x001a, 0xab9b, 0xa696, 0x001a, 0x001a, 0x001a, 0x001a, 0xd091, 0x001a, 0x788a, 0x001a, 0x001a, 0xad9b, 0xaf9b, 0xdd8a, 0x001a, 0x91ed, 0xac9b, 0xae9b, 0x001a, 0xb19b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb09b, 0x001a, 0xb29b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb39b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbb93, 0xac8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe389, 0xb49b, 0xb99b, 0x001a, 0x001a, 0xb79b, 0x001a, 0xf595, 0xf495, 0x001a, 0x001a, 0x001a, 0x001a, 0x92ed, 0x8793, 0x001a, 0x001a, 0x001a, 0xb69b, 0x738f, 0x001a, 0xb59b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9290, 0x001a, 0x001a, 0x001a, 0xba9b, 0x001a, 0x001a, 0xe88d, 0x001a, 0x001a, 0xc09b, 0x001a, 0x001a, 0xc19b, 0xbb9b, 0x528a, 0xbc9b, 0xc59b, 0xc49b, 0xc39b, 0xbf9b, 0x001a, 0x001a, 0x001a, 0xbe9b, 0x001a, 0x001a, 0xc29b, 0x001a, 0x001a, 0x001a, 0x001a, 0x93ed, 0x001a, 0xf695, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x96ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc99b, 0xc69b, 0x001a, 0xc89b, 0x001a, 0x9297, 0x001a, 0xc79b, 0x94ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbd9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9390, 0x001a, 0x001a, 0xca9b, 0x97ed, 0x001a, 0xb58d, 0x001a, 0x001a, 0x001a, 0xcb9b, 0x001a, 0x001a, 0xcc9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcf9b, 0x001a, 0xce9b, 0x001a, 0x001a, 0xcd9b, 0x001a, 0x001a, 0x001a, 0x8893, 0xb89b, 0x001a, 0x001a, 0x001a, 0xd59b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd19b, 0x001a, 0x001a, 0x001a, 0x001a, 0xd09b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd29b, 0x001a, 0xd39b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd69b, 0x98ed, 0x99ed, 0xe497, 0x001a, 0xd79b, 0xd49b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd89b, 0x001a, 0x001a, 0xde8a, 0xd99b, 0x001a, 0x001a, 0x9aed, 0x001a, 0xdb9b, 0xda9b, 0x001a, 0x001a, 0xdc9b, 0x001a, 0x001a, 0x001a, 0x001a, 0xdd9b, 0x001a, 0xec90, 0x428f, 0x001a, 0x001a, 0x848f, 0x001a, 0x8391, 0x001a, 0x488d, 0xb68d, 0x498d, 0x908b, 0x001a, 0x001a, 0xde9b, 0x001a, 0x001a, 0xb78d, 0x001a, 0x001a, 0xc88c, 0xdf9b, 0xa496, 0x6294, 0xe09b, 0x001a, 0x4a8d, 0x001a, 0x001a, 0x001a, 0xaa8a, 0x001a, 0x4692, 0xd08b, 0x001a, 0x001a, 0x001a, 0x738e, 0x7a95, 0x001a, 0x001a, 0xbf94, 0x001a, 0x001a, 0x001a, 0x001a, 0xe19b, 0xf38a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe49b, 0x001a, 0x001a, 0x001a, 0x001a, 0x9f92, 0x001a, 0x001a, 0xe39b, 0xe29b, 0xe59b, 0x001a, 0xe992, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8390, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x748e, 0x001a, 0xc890, 0x001a, 0xd191, 0x418b, 0x001a, 0x001a, 0xa092, 0x001a, 0x001a, 0xe69b, 0xe79b, 0xed8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x5896, 0x001a, 0x001a, 0xea9b, 0x001a, 0x001a, 0xe99b, 0xe89b, 0x9d95, 0x001a, 0xf19b, 0x001a, 0x001a, 0x001a, 0x001a, 0x7996, 0x001a, 0xeb9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xed9b, 0x8b96, 0x001a, 0xec9b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xee9b, 0x001a, 0xa694, 0xef9b, 0xbc95, 0xf09b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb18a, 0xbd95, 0x4e94, 0xf29b, 0xf39b, 0x001a, 0x4b8d, 0xb28a, 0xf49b, 0xb68c, 0x6397, 0x4897, 0xf48a, 0xf69b, 0x001a, 0xa192, 0x001a, 0x4c8d, 0xaf8f, 0x001a, 0x001a, 0xdd94, 0x001a, 0x001a, 0xb08f, 0x001a, 0x001a, 0x001a, 0x001a, 0x988f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xea92, 0xf795, 0x5893, 0x001a, 0x001a, 0x4d8d, 0x001a, 0x7b95, 0x001a, 0x001a, 0x001a, 0xf79b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7893, 0xc08d, 0x001a, 0x001a, 0x001a, 0xc98c, 0x001a, 0xeb92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc188, 0x8e8f, 0x4e8d, 0x6697, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf89b, 0xf99b, 0x7094, 0x001a, 0x001a, 0x001a, 0x001a, 0xfa9b, 0xf597, 0x4c98, 0x001a, 0x001a, 0x001a, 0x001a, 0xfc9b, 0xfb9b, 0x001a, 0x001a, 0x668a, 0x001a, 0x001a, 0x409c, 0x001a, 0x001a, 0x001a, 0x439c, 0x449c, 0x001a, 0x429c, 0x001a, 0x5f95, 0xb18f, 0x469c, 0x459c, 0x419c, 0x001a, 0x001a, 0x001a, 0x001a, 0x479c, 0x489c, 0x001a, 0x001a, 0x499c, 0x001a, 0x001a, 0x001a, 0x4c9c, 0x4a9c, 0x001a, 0x4b9c, 0x4d9c, 0x001a, 0x8489, 0xec92, 0x4e9c, 0x001a, 0x9a8c, 0xf489, 0x5594, 0x001a, 0x4f9c, 0xf993, 0x001a, 0xd995, 0x001a, 0x509c, 0x4d98, 0x001a, 0x001a, 0x001a, 0x001a, 0x519c, 0xbe95, 0x549c, 0x9f98, 0xaf98, 0x001a, 0xae8e, 0xf393, 0x559c, 0x001a, 0x7c8b, 0xa292, 0xf888, 0x569c, 0xa495, 0x4f8d, 0x001a, 0x001a, 0x6f92, 0x001a, 0x001a, 0x001a, 0xed92, 0x001a, 0x9bed, 0x001a, 0x001a, 0x001a, 0xed96, 0xb78c, 0xca8c, 0x001a, 0x579c, 0x001a, 0x001a, 0x001a, 0x589c, 0x001a, 0x5e9c, 0x001a, 0xe38e, 0x001a, 0x001a, 0x9ced, 0xa392, 0x001a, 0xad8b, 0x599c, 0x001a, 0x001a, 0x001a, 0x4a95, 0x001a, 0x6592, 0x001a, 0x001a, 0x5a9c, 0x001a, 0x001a, 0x001a, 0x4bed, 0x001a, 0x001a, 0x5b9c, 0x001a, 0xae8b, 0x001a, 0x5c9c, 0x001a, 0x5d9c, 0x001a, 0x001a, 0x5f9c, 0x001a, 0x9693, 0x001a, 0x001a, 0x609c, 0x619c, 0x001a, 0x629c, 0x001a, 0x001a, 0x539c, 0x529c, 0x001a, 0x001a, 0x001a, 0x639c, 0x608c, 0x001a, 0x001a, 0x001a, 0x4695, 0x9ded, 0x001a, 0xca8d, 0x5695, 0xa492, 0x6a95, 0x649c, 0x001a, 0x001a, 0xb28f, 0x6589, 0x001a, 0x659c, 0x001a, 0x001a, 0x001a, 0x669c, 0x001a, 0xf096, 0x001a, 0x001a, 0xde94, 0x001a, 0x001a, 0x699c, 0x9d89, 0xaa90, 0x689c, 0x679c, 0x618c, 0xd291, 0x001a, 0x6d9c, 0x6b9c, 0x001a, 0x6a9c, 0xa597, 0xe38c, 0x001a, 0x001a, 0x001a, 0x998f, 0x6c9c, 0x6b93, 0x5d8f, 0x001a, 0x001a, 0x001a, 0xbe93, 0x709c, 0x6f9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e9c, 0x001a, 0x719c, 0xe48c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x729c, 0x9c95, 0x7a8f, 0x001a, 0x001a, 0x739c, 0xf794, 0x001a, 0x001a, 0x001a, 0x001a, 0xbf93, 0xa592, 0x001a, 0x001a, 0x9eed, 0x001a, 0x4f93, 0x001a, 0x001a, 0x749c, 0x4a8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5390, 0x001a, 0x4b95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf58a, 0x4594, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x759c, 0x758e, 0x5996, 0x5a96, 0x001a, 0x001a, 0x9e89, 0x7a9c, 0x9fed, 0x001a, 0x8992, 0x001a, 0x001a, 0x001a, 0x779c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf589, 0x001a, 0x001a, 0x001a, 0x001a, 0xab9c, 0x799c, 0x001a, 0x001a, 0x001a, 0x4f94, 0x001a, 0x001a, 0x789c, 0x001a, 0x001a, 0x769c, 0x001a, 0x9a8d, 0x001a, 0x7c9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x839c, 0x899c, 0x819c, 0x001a, 0x7b93, 0x001a, 0x001a, 0x869c, 0x7c95, 0x001a, 0x001a, 0x809c, 0x001a, 0x859c, 0xe597, 0x768e, 0x001a, 0x001a, 0xd391, 0x7d9c, 0x001a, 0x001a, 0x001a, 0x7d8b, 0x889c, 0xab90, 0x8589, 0x829c, 0xf689, 0x879c, 0x001a, 0x001a, 0x001a, 0xaf8b, 0x001a, 0x849c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8a9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8c9c, 0x969c, 0x949c, 0x001a, 0x001a, 0x919c, 0x001a, 0x001a, 0x001a, 0x909c, 0xf697, 0x001a, 0x929c, 0x001a, 0x001a, 0xb08b, 0x001a, 0x508d, 0x001a, 0x001a, 0x9a8f, 0x001a, 0x001a, 0x001a, 0x999c, 0x8b9c, 0x001a, 0x001a, 0xa0ed, 0x001a, 0x8f9c, 0x7e9c, 0x001a, 0xf889, 0x939c, 0x959c, 0x7092, 0x001a, 0x001a, 0xa68d, 0xb689, 0x8d9c, 0x989c, 0x979c, 0xb18b, 0x001a, 0xa791, 0x868a, 0x001a, 0x001a, 0x001a, 0x001a, 0x628c, 0x001a, 0x8e9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9a9c, 0x001a, 0x9d9c, 0x9f9c, 0xa1ed, 0x001a, 0x001a, 0x001a, 0xbb8e, 0xa2ed, 0xa59c, 0xee92, 0x9b9c, 0x001a, 0x001a, 0x001a, 0x001a, 0xa39c, 0x001a, 0xf789, 0x001a, 0xa19c, 0xa29c, 0x001a, 0x001a, 0x9e9c, 0xa09c, 0x001a, 0x001a, 0x001a, 0xe58c, 0x4997, 0x001a, 0x001a, 0xb38a, 0x001a, 0x001a, 0x7889, 0xa49c, 0x001a, 0x5994, 0xab88, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf94, 0x7b9c, 0xaa9c, 0xae9c, 0xe396, 0x001a, 0xa79c, 0x001a, 0x001a, 0x001a, 0x8993, 0xac9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xee8f, 0xad9c, 0xd593, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6698, 0x001a, 0xa99c, 0x001a, 0xa4ed, 0x001a, 0x001a, 0xaf9c, 0x001a, 0x9b8d, 0x001a, 0xc990, 0x001a, 0xa3ed, 0xd288, 0xa89c, 0xa69c, 0x001a, 0x7991, 0x001a, 0x001a, 0x001a, 0x9c9c, 0x538e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc491, 0xbb9c, 0xa6ed, 0x7a91, 0xb69c, 0x001a, 0xb39c, 0xb49c, 0x001a, 0xe48e, 0xb79c, 0xba9c, 0x001a, 0x001a, 0x001a, 0x001a, 0xb59c, 0x448f, 0x001a, 0xb89c, 0x001a, 0x001a, 0xb29c, 0x001a, 0xfa96, 0xf996, 0x001a, 0x001a, 0x001a, 0xbc9c, 0xbd9c, 0xd388, 0x001a, 0xa7ed, 0x001a, 0x001a, 0x001a, 0xb19c, 0x001a, 0x001a, 0x001a, 0x001a, 0xf08b, 0xa488, 0x001a, 0x001a, 0x001a, 0xb48a, 0xa5ed, 0xb99c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc19c, 0xc09c, 0x001a, 0x001a, 0x001a, 0xc59c, 0x001a, 0x001a, 0x001a, 0xa9ed, 0x001a, 0x001a, 0x001a, 0xc69c, 0x001a, 0x001a, 0xa8ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xc49c, 0xc79c, 0xbf9c, 0xc39c, 0x001a, 0x001a, 0xc89c, 0x001a, 0xc99c, 0x001a, 0x001a, 0xbe9c, 0x9c8e, 0x001a, 0xc29c, 0xd491, 0x518d, 0xb09c, 0x5490, 0x001a, 0x001a, 0x001a, 0x001a, 0xd69c, 0x001a, 0xe795, 0x001a, 0x001a, 0xcc9c, 0xcd9c, 0xce9c, 0x001a, 0x001a, 0xd59c, 0x001a, 0xd49c, 0x001a, 0x001a, 0x9d96, 0xb58a, 0x001a, 0xd29c, 0x001a, 0x648c, 0x538a, 0x001a, 0x001a, 0xcf9c, 0x001a, 0x001a, 0xb697, 0xd19c, 0xd488, 0xd39c, 0x001a, 0xca9c, 0xd09c, 0xd79c, 0x638c, 0xcb9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7c97, 0x001a, 0x001a, 0x001a, 0x4a97, 0x001a, 0x001a, 0x001a, 0x001a, 0xda9c, 0x001a, 0x001a, 0xde9c, 0x001a, 0x001a, 0x001a, 0x9e91, 0x001a, 0xf797, 0xdf9c, 0x001a, 0x001a, 0xdc9c, 0x001a, 0xd99c, 0x001a, 0xaaed, 0xd89c, 0xdd9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xae95, 0x001a, 0x001a, 0xb293, 0x001a, 0x658c, 0x001a, 0xe09c, 0xdb9c, 0x001a, 0xe19c, 0x001a, 0x001a, 0x001a, 0x9b8c, 0x001a, 0x001a, 0x001a, 0xaf89, 0x001a, 0x001a, 0x001a, 0xe99c, 0x001a, 0x001a, 0x001a, 0xb68a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe79c, 0x001a, 0x001a, 0xe89c, 0xa78d, 0xe69c, 0xe49c, 0xe39c, 0xea9c, 0xe29c, 0xec9c, 0x001a, 0x001a, 0xf989, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xee9c, 0x001a, 0x001a, 0xed9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa692, 0x001a, 0xf19c, 0x001a, 0xef9c, 0xe59c, 0x9c8c, 0x001a, 0xf09c, 0x001a, 0xf49c, 0xf39c, 0xf59c, 0xf29c, 0xf69c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf79c, 0xf89c, 0xe895, 0x001a, 0xfa9c, 0xf99c, 0x5e8f, 0x001a, 0xac90, 0xe489, 0xfa89, 0xabed, 0xfb9c, 0x001a, 0xbd88, 0x001a, 0x001a, 0x001a, 0xca90, 0xfc9c, 0x001a, 0xc1e6, 0x409d, 0x818c, 0x001a, 0x419d, 0x001a, 0x001a, 0x001a, 0x001a, 0xed90, 0x001a, 0x001a, 0x001a, 0x429d, 0x001a, 0x001a, 0x001a, 0x439d, 0x598b, 0x449d, 0x001a, 0x459d, 0x469d, 0xd591, 0x001a, 0x001a, 0x001a, 0xcb8c, 0x001a, 0x001a, 0xdf96, 0x001a, 0x001a, 0x001a, 0x5b96, 0x8a8f, 0x479d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xee90, 0xbbe7, 0xe094, 0x001a, 0xe88e, 0x001a, 0xcb8d, 0x489d, 0x001a, 0x001a, 0x001a, 0x001a, 0xc591, 0x001a, 0xa595, 0x001a, 0x001a, 0xef91, 0x001a, 0x001a, 0x4b9d, 0x001a, 0x001a, 0x499d, 0x001a, 0x4c9d, 0x001a, 0x001a, 0x4a9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x4d9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaf95, 0x001a, 0x001a, 0xb588, 0x001a, 0x001a, 0x001a, 0x001a, 0x7d95, 0x001a, 0x001a, 0xe194, 0x001a, 0x001a, 0x4e9d, 0x001a, 0x519d, 0xb38f, 0x5a8b, 0x001a, 0x4f9d, 0x569d, 0xb48f, 0x001a, 0x001a, 0x001a, 0x001a, 0x509d, 0x6394, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7d97, 0x529d, 0x539d, 0x579d, 0x8a93, 0x549d, 0x528d, 0xdc90, 0x001a, 0x001a, 0x659d, 0xb294, 0x001a, 0xf091, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaced, 0x001a, 0x001a, 0x001a, 0x001a, 0xe294, 0xab9d, 0x001a, 0x001a, 0x001a, 0x001a, 0xf895, 0x001a, 0x001a, 0x001a, 0xef92, 0x001a, 0x001a, 0x001a, 0x9596, 0x001a, 0x5a9d, 0x9f89, 0x8a92, 0x001a, 0x001a, 0x001a, 0x001a, 0x639d, 0x001a, 0x001a, 0x5392, 0x5d9d, 0x649d, 0x5f9d, 0x669d, 0x629d, 0x001a, 0x619d, 0x8f94, 0x001a, 0x5b9d, 0xfb89, 0x599d, 0x918b, 0xf191, 0x559d, 0x001a, 0x001a, 0x589d, 0x538d, 0xd990, 0x001a, 0xb58f, 0x609d, 0x7194, 0x001a, 0x001a, 0x928b, 0x678a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x878a, 0x4090, 0x689d, 0x6d9d, 0x001a, 0x699d, 0x001a, 0x9d8c, 0x001a, 0x6e9d, 0x418e, 0x898d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x458f, 0x5c9d, 0x001a, 0x9d8e, 0x6b9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x778e, 0x6c9d, 0xc288, 0x001a, 0x001a, 0x679d, 0x001a, 0x001a, 0x001a, 0x001a, 0xa792, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x938b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb28b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6a9d, 0xa588, 0x001a, 0x001a, 0xc18d, 0x001a, 0x001a, 0x001a, 0x5590, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf092, 0x001a, 0x001a, 0xd294, 0x709d, 0x7d91, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa891, 0x001a, 0x001a, 0x4a8e, 0x719d, 0x001a, 0x739d, 0x6f9d, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf95, 0x001a, 0xbb92, 0x001a, 0x001a, 0x001a, 0x001a, 0x7b91, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf995, 0xcc8e, 0x809d, 0x001a, 0x7e9d, 0x001a, 0x001a, 0x9890, 0x001a, 0x001a, 0x001a, 0x9e8c, 0x001a, 0x001a, 0x001a, 0x789d, 0xb78f, 0x001a, 0x001a, 0xe693, 0x5094, 0x001a, 0x001a, 0x001a, 0x001a, 0x769d, 0x001a, 0x001a, 0x7c91, 0x001a, 0x001a, 0x001a, 0x001a, 0xf68e, 0x7b9d, 0x001a, 0x001a, 0xb68f, 0x001a, 0x759d, 0x7a9d, 0x001a, 0x001a, 0x7294, 0x001a, 0x001a, 0x001a, 0x749d, 0x001a, 0x408c, 0x001a, 0x001a, 0x7c8a, 0x001a, 0x001a, 0x001a, 0x7c9d, 0xa997, 0xcc8d, 0x5492, 0x799d, 0x001a, 0xda90, 0x001a, 0x548d, 0x8490, 0x8689, 0x5b91, 0x779d, 0x648b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x668c, 0x001a, 0xcd92, 0x7d9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7e91, 0x001a, 0x001a, 0x819d, 0x001a, 0x839d, 0x001a, 0x001a, 0xb591, 0x899d, 0x001a, 0x849d, 0x001a, 0x001a, 0x869d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6095, 0xf192, 0x001a, 0x879d, 0x001a, 0x001a, 0x001a, 0x4b97, 0x001a, 0x001a, 0x001a, 0x6797, 0xb78a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xac88, 0x001a, 0x859d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x829d, 0x001a, 0x001a, 0x001a, 0x001a, 0xf68a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8789, 0xaded, 0x889d, 0x001a, 0x001a, 0x001a, 0x6897, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8c9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb991, 0x001a, 0x939d, 0x001a, 0x001a, 0x001a, 0x8d9d, 0x001a, 0x001a, 0x8a9d, 0x919d, 0x001a, 0x001a, 0x001a, 0x001a, 0x729d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8e9d, 0x001a, 0x929d, 0x001a, 0x001a, 0x001a, 0xc094, 0x8b93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8b9d, 0x001a, 0x8f9d, 0x001a, 0x001a, 0x001a, 0x678c, 0x001a, 0x001a, 0x001a, 0xef8d, 0x001a, 0x001a, 0x001a, 0xdb90, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x979d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4593, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaeed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x949d, 0x001a, 0x8096, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x959d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x969d, 0x001a, 0xcc96, 0x001a, 0xa090, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x828c, 0x001a, 0x001a, 0x001a, 0x001a, 0x9d9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x548e, 0x9a9d, 0x001a, 0x999d, 0x001a, 0x001a, 0x001a, 0x001a, 0x5194, 0x001a, 0x001a, 0xafed, 0xb393, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5093, 0x9b9d, 0x001a, 0x001a, 0x001a, 0x9c9d, 0x001a, 0x8f95, 0x001a, 0x6494, 0x428e, 0x001a, 0xef90, 0x001a, 0x6f96, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x688a, 0x001a, 0xa39d, 0x9e9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x6997, 0xa59d, 0x001a, 0x001a, 0xa19d, 0x001a, 0xa29d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8091, 0xb0ed, 0x001a, 0x001a, 0x001a, 0xa09d, 0x001a, 0x5e9d, 0x001a, 0x001a, 0x001a, 0xa49d, 0x001a, 0x9f9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa99d, 0xaa9d, 0x4693, 0xac9d, 0x001a, 0x001a, 0x438e, 0xa79d, 0x001a, 0x001a, 0x001a, 0x001a, 0x5b8b, 0x001a, 0x001a, 0xad9d, 0x001a, 0xa69d, 0xb19d, 0x001a, 0xb09d, 0x001a, 0xaf9d, 0x001a, 0x001a, 0x001a, 0xb29d, 0x001a, 0x001a, 0xb49d, 0xef8f, 0x001a, 0xb39d, 0x001a, 0x001a, 0x001a, 0x001a, 0xb79d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb59d, 0x001a, 0x001a, 0x001a, 0xb69d, 0x909d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb99d, 0xb89d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x989d, 0xba9d, 0xae9d, 0x001a, 0x001a, 0x788e, 0x001a, 0x001a, 0x001a, 0x001a, 0xbb9d, 0xbc9d, 0xbe9d, 0xbd9d, 0xbf9d, 0xfc89, 0x001a, 0x558d, 0x001a, 0x001a, 0xfa95, 0xad90, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcc8c, 0x001a, 0x001a, 0xc19d, 0x001a, 0x001a, 0x001a, 0x001a, 0xc49d, 0xb1ed, 0x7195, 0x001a, 0x7e8b, 0x001a, 0x001a, 0x001a, 0xc39d, 0xc29d, 0x7394, 0xc59d, 0xb38b, 0x001a, 0x001a, 0x001a, 0xc79d, 0xc69d, 0x001a, 0x001a, 0x001a, 0xb88a, 0x558e, 0x001a, 0x001a, 0xd693, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x688c, 0x001a, 0x001a, 0x001a, 0x9490, 0x001a, 0xc89d, 0x001a, 0xae90, 0x4793, 0x001a, 0x7e95, 0xc99d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xca9d, 0xcb9d, 0x001a, 0x001a, 0x001a, 0xb695, 0x7c9b, 0xc490, 0x001a, 0x001a, 0x6b95, 0x001a, 0xd68d, 0x001a, 0xe394, 0xc194, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6c93, 0x001a, 0xbf97, 0x001a, 0xcd9d, 0xce8e, 0x001a, 0x001a, 0xce9d, 0x001a, 0xb488, 0x001a, 0x001a, 0xd28b, 0xcb90, 0x001a, 0x8095, 0x001a, 0x001a, 0x001a, 0xcf9d, 0x618e, 0x6692, 0x001a, 0x7a8e, 0x5690, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd09d, 0x001a, 0xfb95, 0x001a, 0x001a, 0x9789, 0x7b8e, 0x001a, 0x001a, 0x001a, 0xd39d, 0x001a, 0xd19d, 0xd49d, 0xb797, 0xd29d, 0x001a, 0x001a, 0x001a, 0x001a, 0xf990, 0xd59d, 0x001a, 0x001a, 0xb091, 0x001a, 0x001a, 0xd69d, 0x001a, 0x001a, 0x001a, 0x001a, 0xf88a, 0x001a, 0xd89d, 0x001a, 0xd79d, 0x001a, 0x001a, 0x001a, 0x001a, 0xd99d, 0xda9d, 0xf98a, 0x001a, 0x001a, 0xfa93, 0x5592, 0x8c8b, 0x7c8e, 0x8191, 0x001a, 0x001a, 0x7b8f, 0xae88, 0x001a, 0x001a, 0x001a, 0xdb9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa089, 0xdf9d, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2ed, 0x001a, 0x568d, 0xde9d, 0x001a, 0x001a, 0xa98d, 0xb88f, 0x001a, 0xb5ed, 0xdd9d, 0x001a, 0xb98f, 0x001a, 0xbe96, 0xa88d, 0x001a, 0x001a, 0x001a, 0xd588, 0xcc90, 0xb3ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe49d, 0x001a, 0xb7ed, 0xaf90, 0x6689, 0x001a, 0x001a, 0x001a, 0xb8ed, 0x748f, 0x001a, 0x8696, 0xf08d, 0x001a, 0x001a, 0x001a, 0x001a, 0xba8f, 0xb6ed, 0xa590, 0x001a, 0x47ed, 0x001a, 0x001a, 0xe39d, 0xe19d, 0xe29d, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4ed, 0x8b92, 0x001a, 0x001a, 0x459e, 0x001a, 0xe89d, 0x9e8e, 0x578d, 0xe69d, 0x001a, 0x001a, 0x001a, 0x001a, 0xe79d, 0x001a, 0x5790, 0x001a, 0x001a, 0x001a, 0xe59d, 0x001a, 0x001a, 0x4e8e, 0x001a, 0x001a, 0x001a, 0x001a, 0xbaed, 0x001a, 0xbbed, 0x001a, 0x001a, 0x001a, 0xea9d, 0xe99d, 0xee9d, 0x001a, 0x001a, 0xef9d, 0x001a, 0xeb9d, 0xb9ed, 0x418a, 0xec9d, 0xed9d, 0xd394, 0x001a, 0x001a, 0x001a, 0x001a, 0x8195, 0x698c, 0xf09d, 0x001a, 0x001a, 0xbded, 0xb090, 0x001a, 0xbb8f, 0x001a, 0x001a, 0x001a, 0x7192, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc58b, 0x001a, 0xf19d, 0xf59d, 0x001a, 0x001a, 0xc989, 0xf29d, 0xf49d, 0x001a, 0x001a, 0x001a, 0x001a, 0xf39d, 0x001a, 0x001a, 0x8b8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x6792, 0xc388, 0xf69d, 0xbeed, 0x001a, 0x001a, 0x001a, 0xf79d, 0x001a, 0x001a, 0xbfed, 0x001a, 0xa892, 0x001a, 0x001a, 0x001a, 0xef97, 0x001a, 0x001a, 0x001a, 0x001a, 0x628e, 0x001a, 0x001a, 0xe995, 0x001a, 0x001a, 0x001a, 0xc0ed, 0x001a, 0x5c96, 0x001a, 0x001a, 0x001a, 0x419e, 0xf99d, 0x001a, 0x001a, 0xfc9d, 0x001a, 0xfb9d, 0xc1ed, 0x001a, 0xf89d, 0x001a, 0x001a, 0x409e, 0x001a, 0x001a, 0xdc93, 0x001a, 0xfa9d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x429e, 0x001a, 0x001a, 0x8c8f, 0x439e, 0x001a, 0x6a97, 0x9894, 0x001a, 0x001a, 0x449e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x469e, 0x001a, 0x001a, 0x479e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x489e, 0x001a, 0xc88b, 0x6789, 0x588d, 0x499e, 0x001a, 0x4a9e, 0x918f, 0x8291, 0xc2ed, 0x4aed, 0xd699, 0x5d91, 0x5c91, 0xd691, 0xc58d, 0x001a, 0x001a, 0xf098, 0x001a, 0x001a, 0x001a, 0x001a, 0x8e8c, 0x4c97, 0x001a, 0xfc95, 0x001a, 0x9e95, 0xc3ed, 0x4b9e, 0x001a, 0x001a, 0x001a, 0x001a, 0xf18d, 0xbd92, 0x4c9e, 0x4e98, 0x001a, 0x001a, 0x001a, 0x5d96, 0x001a, 0xa992, 0x4d9e, 0xfa8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4e9e, 0x4f9e, 0xd896, 0x001a, 0xa296, 0x9696, 0x7b96, 0x448e, 0x519e, 0x001a, 0x001a, 0xe98e, 0x001a, 0x001a, 0x7096, 0x001a, 0x539e, 0x569e, 0x559e, 0x001a, 0xf78a, 0x001a, 0x001a, 0x808b, 0x001a, 0x529e, 0x001a, 0x549e, 0x001a, 0x001a, 0x001a, 0x001a, 0x579e, 0x001a, 0x001a, 0x9990, 0x001a, 0x001a, 0x001a, 0x001a, 0x9b97, 0xc788, 0xde8d, 0xba91, 0x001a, 0xdb8e, 0x001a, 0x001a, 0xf18f, 0x001a, 0x001a, 0x5a9e, 0x001a, 0x001a, 0x6d93, 0x001a, 0x589e, 0xa991, 0x599e, 0xf08f, 0xdb96, 0x5b9e, 0x5c9e, 0x8897, 0xc5ed, 0x001a, 0x001a, 0x001a, 0x619e, 0x001a, 0x001a, 0x598d, 0x001a, 0x7494, 0x5e9e, 0x8c93, 0xdc9d, 0xe09d, 0x001a, 0x6e8b, 0x001a, 0x6694, 0x001a, 0x001a, 0x001a, 0x001a, 0x609e, 0x001a, 0xbc8f, 0xc294, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x669e, 0x001a, 0xf894, 0x001a, 0x5d9e, 0x001a, 0x639e, 0x629e, 0x001a, 0x001a, 0x001a, 0xcd90, 0x001a, 0x001a, 0x001a, 0x001a, 0x8d96, 0x001a, 0xd197, 0x001a, 0x001a, 0x8796, 0x001a, 0xca89, 0x7d8e, 0x001a, 0x001a, 0x6798, 0x659e, 0x9590, 0x001a, 0x001a, 0x001a, 0x649e, 0x001a, 0x001a, 0x5f9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcd8c, 0x001a, 0x001a, 0x001a, 0x6b9e, 0x699e, 0x001a, 0xcb89, 0x679e, 0x6d9e, 0x739e, 0x001a, 0xc6ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8ed, 0xc691, 0x001a, 0x001a, 0xbf95, 0x001a, 0x759e, 0x001a, 0x001a, 0x001a, 0x4195, 0x001a, 0x001a, 0x001a, 0x749e, 0x9094, 0x5e96, 0xb98a, 0x001a, 0xf590, 0x5f8f, 0x001a, 0x001a, 0x001a, 0xd192, 0x001a, 0x4d97, 0x001a, 0x001a, 0x709e, 0x6f9e, 0x001a, 0x001a, 0x001a, 0x719e, 0x001a, 0x6e9e, 0x001a, 0x001a, 0x769e, 0x001a, 0x6c9e, 0x001a, 0x001a, 0x6a9e, 0x001a, 0x729e, 0x689e, 0x001a, 0x8c92, 0x001a, 0xf696, 0xc48e, 0xf28d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb88d, 0x001a, 0x001a, 0x8f96, 0x608a, 0x001a, 0xc9ed, 0xcc92, 0xc893, 0x6889, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf090, 0x001a, 0x001a, 0xb290, 0x498c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x789e, 0x001a, 0x001a, 0x5a8d, 0x9c8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7a9e, 0x948a, 0x819e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7d9e, 0x001a, 0xf190, 0x001a, 0x001a, 0x001a, 0x6a8a, 0xaa8d, 0x001a, 0x001a, 0x698a, 0xcd8d, 0x001a, 0x001a, 0x7b9e, 0x858c, 0x6a8c, 0x8d93, 0xcaed, 0x001a, 0x799e, 0x001a, 0xc488, 0x001a, 0x001a, 0x001a, 0x001a, 0x7c9e, 0x7e9e, 0x001a, 0xcb8b, 0x4b8c, 0xc7ed, 0xba8a, 0x6a8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x829e, 0x001a, 0x001a, 0xf78d, 0x9196, 0x001a, 0x568e, 0x001a, 0x001a, 0x001a, 0x839e, 0x001a, 0x001a, 0x001a, 0x4f95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8f9e, 0x001a, 0xb189, 0x849e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x959e, 0x859e, 0x001a, 0xc097, 0x001a, 0x8c9e, 0x001a, 0x7e94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x949e, 0x001a, 0x879e, 0x001a, 0x001a, 0x001a, 0xb288, 0x899e, 0x001a, 0x001a, 0x5b8d, 0x001a, 0x001a, 0x001a, 0x8b9e, 0x001a, 0x8a9e, 0x001a, 0x869e, 0x919e, 0x001a, 0xbd8f, 0x001a, 0x001a, 0x001a, 0xeb9a, 0xe68c, 0x9c97, 0x001a, 0x001a, 0x001a, 0x001a, 0x889e, 0x001a, 0xf292, 0x428a, 0xab8d, 0x001a, 0x809e, 0x001a, 0x909e, 0x818a, 0x001a, 0x001a, 0x8e9e, 0x929e, 0x001a, 0x8e93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfc8a, 0x001a, 0xb09e, 0x001a, 0x48ed, 0xc796, 0x979e, 0xfb8a, 0x001a, 0x9e9e, 0x001a, 0xcbed, 0x001a, 0x001a, 0x5f96, 0x001a, 0x9f9e, 0xa19e, 0x001a, 0xa59e, 0x999e, 0x001a, 0x4992, 0x001a, 0x001a, 0x001a, 0x001a, 0x8f93, 0xa99e, 0x9c9e, 0x001a, 0xa69e, 0x001a, 0x001a, 0x001a, 0xa09e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5890, 0xaa9e, 0x001a, 0x001a, 0xb190, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa89e, 0xbb8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6f98, 0x969e, 0x001a, 0x001a, 0xa49e, 0xd688, 0x001a, 0x001a, 0x989e, 0x001a, 0x001a, 0xb896, 0x9d9e, 0x4190, 0xc592, 0x939e, 0x001a, 0x001a, 0xa39e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9a90, 0xad9e, 0x918a, 0x9f8c, 0x001a, 0x001a, 0x001a, 0x001a, 0xaf9e, 0x9a9e, 0xae9e, 0x001a, 0xa79e, 0x9b9e, 0x001a, 0xab9e, 0x001a, 0xac9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbd9e, 0x001a, 0x001a, 0x001a, 0xcc93, 0x001a, 0xa29e, 0x001a, 0x001a, 0xb99e, 0x001a, 0x001a, 0x001a, 0xbb9e, 0x001a, 0xd692, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6b97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9695, 0xb69e, 0xc891, 0x001a, 0x001a, 0x001a, 0xbc9e, 0x5e91, 0x001a, 0xb39e, 0xc09e, 0xbf9e, 0x001a, 0xed93, 0xbe9e, 0xe893, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcded, 0x001a, 0xc29e, 0xb59e, 0x001a, 0xc68b, 0xb89e, 0x7c8f, 0x001a, 0x001a, 0x001a, 0x8094, 0xba9e, 0xc98b, 0x001a, 0xb29e, 0xb49e, 0xb19e, 0x001a, 0x001a, 0x4f98, 0x798a, 0xb79e, 0x001a, 0x001a, 0xc19e, 0x548a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe58d, 0x001a, 0x001a, 0x001a, 0x7c89, 0x001a, 0x001a, 0xd29e, 0x001a, 0x001a, 0x5098, 0xd59e, 0x001a, 0x001a, 0xcfed, 0x001a, 0x001a, 0x5990, 0xd49e, 0x001a, 0x001a, 0x001a, 0xd39e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd09e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc49e, 0x001a, 0x001a, 0xe19e, 0xc39e, 0x001a, 0xd69e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xce9e, 0x001a, 0x001a, 0xc99e, 0xc69e, 0x001a, 0xc79e, 0x001a, 0xcf9e, 0x001a, 0x001a, 0x001a, 0xa0ea, 0x001a, 0x001a, 0xcc9e, 0x5c8d, 0xc692, 0x8491, 0xca9e, 0x001a, 0xc59e, 0x001a, 0x001a, 0xc89e, 0x001a, 0x001a, 0x001a, 0x001a, 0x6c97, 0x8a96, 0x001a, 0x001a, 0x001a, 0xcd9e, 0xd79e, 0x001a, 0x001a, 0x001a, 0xd0ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf9e, 0xd89e, 0x001a, 0x001a, 0xe59e, 0x001a, 0xe39e, 0x001a, 0x001a, 0x001a, 0x001a, 0xde9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdd9e, 0x001a, 0xce92, 0x001a, 0x8591, 0x001a, 0xdb9e, 0x001a, 0x001a, 0xd99e, 0x001a, 0x001a, 0xe09e, 0x001a, 0x001a, 0x001a, 0x001a, 0xe69e, 0xf394, 0xec9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe79e, 0xea9e, 0xe49e, 0x001a, 0x001a, 0x9492, 0x001a, 0x5795, 0x001a, 0xda9e, 0x001a, 0x001a, 0xe29e, 0xbe8f, 0x001a, 0xcd96, 0xf69e, 0xe99e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa08c, 0xa189, 0x7e8a, 0x001a, 0x001a, 0xd19e, 0x001a, 0xd1ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xbf8f, 0xee9e, 0x001a, 0xf59e, 0xf78e, 0x928a, 0x001a, 0x001a, 0x4d92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeb9e, 0x001a, 0xd3ed, 0xf09e, 0xf49e, 0x001a, 0x001a, 0xb48b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6b8b, 0xf29e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x408b, 0x001a, 0xc993, 0xf19e, 0x001a, 0x001a, 0x001a, 0xf39e, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xed9e, 0xd4ed, 0x001a, 0x001a, 0x001a, 0x001a, 0xef9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5ed, 0x808a, 0x6892, 0x001a, 0x001a, 0x001a, 0xfa9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf89e, 0xe78c, 0x001a, 0xf79e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x409f, 0x001a, 0x001a, 0x001a, 0x001a, 0x779e, 0x001a, 0x001a, 0x001a, 0xf99e, 0x001a, 0xfb9e, 0xfc9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4b9f, 0x001a, 0x479f, 0x001a, 0x8d9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x469f, 0x001a, 0x001a, 0x001a, 0x001a, 0x459f, 0x001a, 0x001a, 0x429f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe89e, 0x449f, 0x439f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x499f, 0x001a, 0x4598, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4c9f, 0xf98b, 0x001a, 0x001a, 0x489f, 0x4a9f, 0x001a, 0x001a, 0xd6ed, 0x001a, 0xd7ed, 0x001a, 0x001a, 0x001a, 0xa594, 0x001a, 0x4d9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x519f, 0x4e9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9397, 0x4f9f, 0x001a, 0x001a, 0x001a, 0x001a, 0xdc9e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x529f, 0x001a, 0x001a, 0x001a, 0x539f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5489, 0x001a, 0x559f, 0x878c, 0x9f8e, 0x001a, 0xd38b, 0x001a, 0x001a, 0x001a, 0xa289, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7e97, 0x001a, 0x001a, 0x001a, 0x001a, 0x579f, 0x569f, 0x599f, 0x5c8b, 0x001a, 0x001a, 0xd48b, 0xbc8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5c9f, 0x001a, 0x001a, 0x001a, 0x5b9f, 0x001a, 0x5d9f, 0x001a, 0x001a, 0xcc89, 0x001a, 0x5692, 0x001a, 0x5e9f, 0x001a, 0x001a, 0xbd8a, 0x609f, 0x001a, 0x001a, 0x001a, 0x001a, 0x5f9f, 0x001a, 0x619f, 0x001a, 0x001a, 0x001a, 0x629f, 0x001a, 0x639f, 0x7e8e, 0xb390, 0x9f8d, 0x001a, 0x9095, 0x001a, 0x001a, 0xe095, 0x6398, 0x001a, 0x001a, 0x001a, 0x001a, 0x958e, 0x001a, 0x001a, 0x001a, 0xce8d, 0xf097, 0x001a, 0x001a, 0x001a, 0x649f, 0x659f, 0x001a, 0x808e, 0x001a, 0x001a, 0x001a, 0x669f, 0x679f, 0x001a, 0x001a, 0x699f, 0x689f, 0x001a, 0x7796, 0x001a, 0x001a, 0x7d8f, 0xea8e, 0x638e, 0x001a, 0x6a9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6c9f, 0x4290, 0x001a, 0x6b9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6d9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6f9f, 0x709f, 0x001a, 0x001a, 0x001a, 0x719f, 0x001a, 0x739f, 0x729f, 0x749f, 0xa389, 0x6992, 0x001a, 0x759f, 0x001a, 0x001a, 0x458e, 0x6b8a, 0x769f, 0x001a, 0x001a, 0x6193, 0xca9a, 0x001a, 0x001a, 0x001a, 0x001a, 0x428b, 0x779f, 0x001a, 0x001a, 0x001a, 0x001a, 0x789f, 0x001a, 0xea95, 0x8896, 0x001a, 0x001a, 0x001a, 0xc593, 0x799f, 0xe494, 0x001a, 0xd8ed, 0x001a, 0xf994, 0x001a, 0x001a, 0xd196, 0x001a, 0x001a, 0x001a, 0x7a9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7c9f, 0x7b9f, 0x001a, 0x001a, 0x7e9f, 0x001a, 0x001a, 0x001a, 0x7d9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x819f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x818e, 0x001a, 0xaf96, 0x001a, 0x829f, 0x839f, 0x001a, 0x001a, 0x438b, 0x001a, 0x001a, 0x001a, 0x849f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x869f, 0x859f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8590, 0x001a, 0x001a, 0x5895, 0x6989, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc394, 0xd9ed, 0xf392, 0x608f, 0x818b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc494, 0x001a, 0xac8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x889f, 0x001a, 0xbe8a, 0x001a, 0x001a, 0x9889, 0x001a, 0xdaed, 0xf093, 0x879f, 0x5d8d, 0x7292, 0x001a, 0x899f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x919f, 0x001a, 0x8a9f, 0x001a, 0x001a, 0x001a, 0x001a, 0xdced, 0xbf91, 0x001a, 0x828b, 0x929f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x888c, 0x001a, 0x001a, 0x448b, 0x909f, 0x001a, 0x001a, 0x8e9f, 0x8b9f, 0x8097, 0x001a, 0x001a, 0xdbed, 0x001a, 0xbe92, 0x001a, 0x001a, 0x001a, 0xd793, 0x8c9f, 0x001a, 0x001a, 0x949f, 0x001a, 0x939f, 0x428c, 0x001a, 0x001a, 0xab89, 0x001a, 0x001a, 0xb98d, 0x8d9f, 0x8f9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7696, 0xf291, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9796, 0x001a, 0x001a, 0x9c9f, 0x001a, 0x001a, 0x9d9f, 0x001a, 0xcd89, 0x001a, 0x001a, 0x001a, 0x001a, 0xa695, 0xfb96, 0x9f9f, 0xa18e, 0xc08f, 0x989f, 0x9e9f, 0x8889, 0x001a, 0xb58b, 0x001a, 0x001a, 0x959f, 0x9a9f, 0x001a, 0x001a, 0x001a, 0xf290, 0x9194, 0x001a, 0xe594, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x979f, 0x001a, 0x4096, 0x001a, 0x999f, 0x001a, 0xa29f, 0xdded, 0xa09f, 0x001a, 0x9b9f, 0x001a, 0x001a, 0x001a, 0x4196, 0x6794, 0x838b, 0x001a, 0x4493, 0x001a, 0x001a, 0x8d92, 0x001a, 0xa39f, 0x001a, 0x001a, 0x001a, 0x001a, 0xa19f, 0xd791, 0x969f, 0x001a, 0x6a89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdeed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6d97, 0xae9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xad9f, 0x001a, 0x001a, 0x001a, 0x001a, 0xf490, 0x001a, 0xaa9f, 0x001a, 0x8c97, 0x001a, 0x001a, 0xb493, 0xa49f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc392, 0x001a, 0x001a, 0x001a, 0x6b89, 0x5e8d, 0xa79f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x468f, 0xac9f, 0x001a, 0xab9f, 0xa69f, 0x001a, 0xa99f, 0x001a, 0x001a, 0x888a, 0x001a, 0xa89f, 0x6894, 0x001a, 0x001a, 0xac97, 0x001a, 0x001a, 0xf28f, 0xf390, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb49f, 0xb29f, 0x001a, 0x6c95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaf9f, 0xb19f, 0x001a, 0x5989, 0x001a, 0x001a, 0x5f8d, 0x5198, 0x001a, 0x5c8a, 0x001a, 0x8295, 0xe0ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x8197, 0x001a, 0x001a, 0x438a, 0x5a90, 0xb39f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb89f, 0x001a, 0xdfed, 0xc18f, 0x001a, 0x001a, 0x001a, 0x4f97, 0x001a, 0xb59f, 0x001a, 0x001a, 0x001a, 0x001a, 0xb09f, 0x001a, 0xb69f, 0xe1ed, 0x001a, 0x001a, 0xdc97, 0x001a, 0x9393, 0xc093, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2ed, 0x001a, 0x001a, 0x558a, 0x001a, 0x001a, 0x7489, 0x001a, 0x001a, 0xbc9f, 0x001a, 0x001a, 0xbf9f, 0x001a, 0x001a, 0x001a, 0xc197, 0x001a, 0x001a, 0x001a, 0x8497, 0x001a, 0x001a, 0x001a, 0x001a, 0xc69f, 0xc09f, 0xbd9f, 0x001a, 0x001a, 0x001a, 0xd297, 0xc39f, 0x001a, 0x001a, 0xe3ed, 0x001a, 0x698f, 0xc59f, 0x001a, 0x001a, 0xca9f, 0x001a, 0x001a, 0x9193, 0xc89f, 0x001a, 0x001a, 0x001a, 0x001a, 0xc29f, 0x001a, 0x001a, 0x5792, 0x001a, 0x001a, 0xc99f, 0x001a, 0xbe9f, 0x001a, 0xc49f, 0x001a, 0xcb9f, 0xfa88, 0xc19f, 0x001a, 0xcc9f, 0x001a, 0x001a, 0x5b90, 0xe5ed, 0x7e8f, 0x001a, 0xa395, 0x001a, 0xac8d, 0xe4ed, 0xb99f, 0xc79f, 0x5993, 0xe6ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb490, 0x001a, 0x898a, 0xcf8d, 0xc28f, 0xbb9f, 0x618f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6b8c, 0x001a, 0xba9f, 0x001a, 0x001a, 0x001a, 0xd09f, 0x8d8f, 0xb88c, 0x001a, 0xdf9f, 0x001a, 0xd99f, 0x948b, 0x6e93, 0x001a, 0xd49f, 0xdd9f, 0xad88, 0x5189, 0xe9ed, 0x001a, 0xb789, 0x001a, 0xd69f, 0xaa91, 0xcd9f, 0xcf9f, 0x608d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe09f, 0xe7ed, 0xdb9f, 0x001a, 0xeaed, 0x001a, 0xd39f, 0x001a, 0x001a, 0x001a, 0x001a, 0xda9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa996, 0x001a, 0x001a, 0xd89f, 0xdc9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xce8c, 0x001a, 0xc38f, 0x001a, 0x001a, 0x5892, 0xe8ed, 0x001a, 0x001a, 0xd29f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4e97, 0x001a, 0x001a, 0x001a, 0xd59f, 0x001a, 0x001a, 0xce9f, 0x9293, 0x001a, 0x001a, 0xd19f, 0x001a, 0x001a, 0x001a, 0xd79f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7098, 0xbc8e, 0x9e96, 0x001a, 0xe19f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xac94, 0x001a, 0x001a, 0xed9f, 0xb98c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x808f, 0x001a, 0xe39f, 0x001a, 0x001a, 0x001a, 0xad97, 0x618d, 0x001a, 0xf09f, 0x001a, 0x001a, 0xec88, 0x001a, 0x001a, 0xee9f, 0x001a, 0x001a, 0x001a, 0x001a, 0xe29f, 0x001a, 0x001a, 0x001a, 0x001a, 0xe89f, 0x001a, 0x001a, 0xea9f, 0x001a, 0x001a, 0x001a, 0x6e97, 0xe59f, 0x001a, 0x001a, 0x4d93, 0x001a, 0x001a, 0xe79f, 0x001a, 0xebed, 0x001a, 0x001a, 0xef9f, 0x001a, 0xe99f, 0xc596, 0x001a, 0x001a, 0x001a, 0xe49f, 0x001a, 0xa08e, 0xfc9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x8a8a, 0x001a, 0xe69f, 0xeb9f, 0xec9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xea91, 0xd891, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf49f, 0x001a, 0x001a, 0xfa9f, 0x001a, 0x001a, 0xf89f, 0x001a, 0x4893, 0x001a, 0x001a, 0x42e0, 0xf59f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf69f, 0xde9f, 0x001a, 0x998b, 0x5995, 0x001a, 0x001a, 0x001a, 0xbd8e, 0x001a, 0x001a, 0x978d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5298, 0x001a, 0xf29f, 0x001a, 0x41e0, 0x8989, 0x8691, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9994, 0x001a, 0xbf8a, 0xf897, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9f96, 0xd092, 0x001a, 0x001a, 0x001a, 0x001a, 0xf99f, 0xfb9f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5191, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x40e0, 0xf79f, 0x001a, 0xf19f, 0x001a, 0x001a, 0x001a, 0xc18a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x898c, 0x001a, 0x001a, 0x001a, 0x4ee0, 0x001a, 0x001a, 0x49e0, 0xf690, 0x001a, 0x001a, 0x838a, 0x001a, 0x001a, 0x001a, 0x001a, 0x818f, 0x001a, 0x52e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4be0, 0xaa92, 0x48e0, 0xd792, 0x001a, 0x001a, 0x001a, 0x6be0, 0x001a, 0x001a, 0x001a, 0x45e0, 0x001a, 0x44e0, 0x001a, 0x4de0, 0x001a, 0x001a, 0x001a, 0x47e0, 0x46e0, 0x4ce0, 0x001a, 0x9f90, 0x001a, 0x43e0, 0x001a, 0xeced, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4fe0, 0x001a, 0x001a, 0x50e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc08a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x55e0, 0x001a, 0x54e0, 0x56e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x59e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6293, 0x001a, 0x53e0, 0x001a, 0xeded, 0x001a, 0x001a, 0x001a, 0x57e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x838c, 0xf791, 0x51e0, 0x5a94, 0x001a, 0x001a, 0x58e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5de0, 0x5be0, 0x001a, 0x001a, 0x5ee0, 0x001a, 0x001a, 0x61e0, 0x001a, 0x001a, 0x001a, 0x5ae0, 0x8a8d, 0x4794, 0x001a, 0x001a, 0xb79f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9497, 0x5ce0, 0x001a, 0x60e0, 0xf391, 0x001a, 0x5fe0, 0x001a, 0x4ae0, 0x001a, 0xeeed, 0x89e8, 0x001a, 0x001a, 0x001a, 0x64e0, 0x001a, 0x001a, 0x001a, 0x68e0, 0x001a, 0x001a, 0x66e0, 0x001a, 0x001a, 0x001a, 0xefed, 0x001a, 0xf0ed, 0x001a, 0x62e0, 0x001a, 0x63e0, 0x001a, 0x001a, 0x001a, 0x67e0, 0x001a, 0x65e0, 0x001a, 0x001a, 0x001a, 0x6d95, 0x001a, 0x001a, 0x6de0, 0x001a, 0x6ae0, 0x69e0, 0x001a, 0x6ce0, 0xd293, 0x6ee0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9592, 0xeb91, 0xf1ed, 0x001a, 0x001a, 0x001a, 0xa390, 0x001a, 0x001a, 0x001a, 0x6fe0, 0x001a, 0x71e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x70e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf39f, 0x001a, 0x001a, 0x001a, 0x001a, 0x72e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe593, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xce89, 0x001a, 0x001a, 0x001a, 0x9493, 0x448a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x848b, 0x001a, 0x001a, 0x001a, 0xdc8e, 0xd08d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2ed, 0x001a, 0x001a, 0x001a, 0x4698, 0x8690, 0x001a, 0x001a, 0x001a, 0x8a89, 0x001a, 0x001a, 0x001a, 0x75e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x74e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3ed, 0x78e0, 0x5992, 0x7be0, 0x76e0, 0x001a, 0x001a, 0x001a, 0x7ae0, 0x001a, 0x001a, 0x001a, 0x001a, 0x79e0, 0x5f93, 0xd788, 0x46ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf397, 0x001a, 0x001a, 0x7de0, 0x001a, 0x001a, 0x001a, 0x4789, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x80e0, 0x001a, 0x001a, 0x001a, 0x7ee0, 0x001a, 0x7ce0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x77e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4296, 0x001a, 0x001a, 0x001a, 0x82e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x81e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x8b89, 0x001a, 0x001a, 0x001a, 0x001a, 0x84e0, 0xb095, 0x001a, 0x83e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xb396, 0x001a, 0x001a, 0x001a, 0x001a, 0xc58f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5291, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc48f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7ed, 0xf8ed, 0x001a, 0xf997, 0x001a, 0x001a, 0x8ae0, 0x001a, 0xf790, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x86e0, 0x8be0, 0x001a, 0x001a, 0x8c89, 0x001a, 0x001a, 0xf6ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x89e0, 0x001a, 0x8194, 0x85e0, 0x88e0, 0xc68f, 0x001a, 0xcf94, 0x001a, 0x001a, 0x8ce0, 0x001a, 0xcf8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf890, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8fe0, 0x001a, 0x001a, 0x001a, 0x87e0, 0x001a, 0x468c, 0x001a, 0x001a, 0x001a, 0x001a, 0x8de0, 0x001a, 0x001a, 0x001a, 0x001a, 0x6f97, 0x90e0, 0x001a, 0x001a, 0x001a, 0xa4ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x91e0, 0x001a, 0x001a, 0x001a, 0x92e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x4d94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x94e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x95e0, 0x001a, 0x001a, 0xfaed, 0x001a, 0x5294, 0x001a, 0x001a, 0x001a, 0x001a, 0x9593, 0x97e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x99e0, 0x001a, 0xd397, 0x001a, 0x96e0, 0x001a, 0x98e0, 0x8d89, 0x001a, 0x93e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7a9a, 0x9ae0, 0x001a, 0x001a, 0x001a, 0x001a, 0x8791, 0x578e, 0x9ce0, 0x001a, 0x001a, 0x001a, 0x001a, 0x9be0, 0x4390, 0xd799, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9de0, 0x001a, 0x001a, 0x001a, 0x9fe0, 0x001a, 0x8ee0, 0x9ee0, 0x001a, 0xfbed, 0xa0e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9a94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1e0, 0x001a, 0x001a, 0xa2e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e0, 0x001a, 0xdc92, 0x001a, 0xa6e0, 0xa5e0, 0x001a, 0x001a, 0xa7e0, 0x001a, 0xa8e0, 0x001a, 0x001a, 0xdd8e, 0x8395, 0x001a, 0x001a, 0x001a, 0xea96, 0xa9e0, 0xaae0, 0x7591, 0xa28e, 0xabe0, 0xace0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xade0, 0xd095, 0xc594, 0x001a, 0x001a, 0xaee0, 0x7694, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xab92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xafe0, 0xe589, 0x001a, 0x8d8b, 0x001a, 0xc496, 0x001a, 0xb496, 0x001a, 0xb289, 0x5398, 0x001a, 0x001a, 0x001a, 0x001a, 0x7196, 0x001a, 0xa895, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb590, 0x001a, 0xb0e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xc193, 0x001a, 0x001a, 0x001a, 0xa18c, 0xb1e0, 0x001a, 0xd28d, 0xb3e0, 0xb2e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb5e0, 0x001a, 0x001a, 0x001a, 0xb6e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5d8b, 0x001a, 0xb7e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xa28c, 0x001a, 0x001a, 0xc694, 0x001a, 0xfced, 0xbae0, 0x001a, 0x001a, 0x001a, 0xf38f, 0x001a, 0x001a, 0xb9e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x40ee, 0x001a, 0x001a, 0x001a, 0xb68b, 0xbbe0, 0xbde0, 0x001a, 0xbce0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee0, 0x001a, 0xcf8c, 0x001a, 0xbfe0, 0x001a, 0x001a, 0x001a, 0x001a, 0xe78b, 0x001a, 0x5f91, 0x001a, 0x9d8d, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e0, 0xc2e0, 0xc0e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeb8e, 0x001a, 0x001a, 0xc693, 0xb78b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4e0, 0x4b92, 0xc3e0, 0x001a, 0x001a, 0x5498, 0x8294, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc7e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9e0, 0xc6e0, 0x001a, 0x001a, 0x001a, 0xd296, 0xc8e0, 0xcae0, 0x001a, 0xc297, 0x001a, 0x001a, 0x001a, 0x001a, 0x41ee, 0xcee0, 0x001a, 0x001a, 0x001a, 0xcde0, 0x9692, 0x4c94, 0x001a, 0x001a, 0xa38c, 0xcce0, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbe0, 0x001a, 0x5097, 0x5197, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfe0, 0x8e89, 0x001a, 0x001a, 0x001a, 0x001a, 0x968d, 0x828e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0e0, 0xd1e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x628f, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e0, 0x001a, 0xd4e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6e0, 0x001a, 0x6c8a, 0x001a, 0x001a, 0xd8e0, 0x001a, 0x43ee, 0xd7e0, 0x001a, 0xdae0, 0xd9e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xba8c, 0x001a, 0x001a, 0xa697, 0x001a, 0xca8b, 0x001a, 0xa489, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe88b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe697, 0xdce0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdee0, 0x001a, 0x44ee, 0x001a, 0x001a, 0xdfe0, 0x001a, 0xcf89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbe0, 0x45ee, 0x588e, 0x001a, 0x001a, 0xbf92, 0xdde0, 0x001a, 0x001a, 0x001a, 0x48ee, 0x001a, 0x001a, 0x001a, 0x46ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2e0, 0x001a, 0xec8e, 0x001a, 0x001a, 0x47ee, 0x001a, 0xe0e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x5d8c, 0x001a, 0x001a, 0xc794, 0xe1e0, 0x001a, 0x001a, 0xfce0, 0x001a, 0x001a, 0x001a, 0x4aee, 0x001a, 0x001a, 0xe7e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbb8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x858b, 0x001a, 0xe4e0, 0x9d97, 0x49ee, 0x001a, 0xae97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf491, 0x001a, 0x001a, 0xe6e0, 0x4bee, 0x001a, 0x001a, 0x4dee, 0x4cee, 0x001a, 0x001a, 0x001a, 0x4eee, 0x001a, 0x001a, 0x001a, 0xe8e0, 0xd497, 0xd58b, 0xfa94, 0x6994, 0x001a, 0x001a, 0x001a, 0xe9e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xebe0, 0x001a, 0xeee0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeae0, 0x001a, 0x001a, 0x001a, 0xede0, 0xe88c, 0x6c89, 0xefe0, 0x001a, 0x9090, 0xece0, 0xda97, 0x001a, 0x4fee, 0xf2e0, 0xa2ea, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0e0, 0xf3e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e0, 0xf1e0, 0x001a, 0x001a, 0xba8d, 0x001a, 0x001a, 0xf4e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x9e97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50ee, 0x001a, 0xf6e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7e0, 0x51ee, 0x001a, 0x001a, 0xe3e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8e0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc28a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa38e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9e0, 0x001a, 0x001a, 0x001a, 0x001a, 0xfae0, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbe0, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5a89, 0x001a, 0x001a, 0x001a, 0x40e1, 0x001a, 0x5a95, 0x41e1, 0x001a, 0x001a, 0xa28a, 0x42e1, 0x001a, 0x43e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x44e1, 0x001a, 0x46e1, 0x47e1, 0x45e1, 0x001a, 0x001a, 0x001a, 0x7295, 0x49e1, 0x48e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x52ee, 0x001a, 0x4be1, 0x4ae1, 0x4ce1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4de1, 0x4fe1, 0x4ee1, 0x001a, 0x001a, 0x998d, 0x001a, 0x51e1, 0x001a, 0x50e1, 0x001a, 0x001a, 0xc38a, 0x001a, 0x7290, 0x001a, 0x5b93, 0x001a, 0x52e1, 0xb690, 0x001a, 0x001a, 0x001a, 0x598e, 0x001a, 0x9989, 0x53e1, 0x001a, 0x7097, 0x001a, 0x001a, 0xe195, 0x54e1, 0x001a, 0x001a, 0x8ced, 0x6393, 0x5297, 0x628d, 0x5c90, 0x001a, 0x001a, 0x001a, 0x6a92, 0xb299, 0x001a, 0xac92, 0xe689, 0x55e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56e1, 0x001a, 0x5be1, 0x001a, 0x001a, 0x59e1, 0x58e1, 0xc09d, 0x458a, 0x57e1, 0x001a, 0xd888, 0x001a, 0xa894, 0x001a, 0x001a, 0xc894, 0x001a, 0x001a, 0x001a, 0x001a, 0xaf97, 0x5ce1, 0x5ae1, 0x7b92, 0xa490, 0x001a, 0x001a, 0xa994, 0x001a, 0x4c95, 0x001a, 0x5ee1, 0xaa97, 0x6c8c, 0x5fe1, 0x001a, 0x5de1, 0xd494, 0x60e1, 0x001a, 0x61e1, 0x001a, 0x53ee, 0xd988, 0x001a, 0x001a, 0xf48f, 0x66e1, 0x001a, 0x63e1, 0xeb93, 0x62e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x458b, 0x001a, 0x001a, 0x69e1, 0x001a, 0x001a, 0x001a, 0x64e1, 0x65e1, 0x001a, 0x68e1, 0x67e1, 0x4495, 0x001a, 0x001a, 0x6191, 0x6091, 0x001a, 0x5e8b, 0x001a, 0x001a, 0x6ae1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6be1, 0x001a, 0x001a, 0x6ce1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ee1, 0x001a, 0x6de1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7589, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x76e1, 0xe694, 0x70e1, 0x001a, 0x72e1, 0x001a, 0x001a, 0x74e1, 0x5d90, 0x001a, 0x001a, 0x75e1, 0x73e1, 0xbe8e, 0x001a, 0x001a, 0x001a, 0x6fe1, 0x71e1, 0x001a, 0x6195, 0x001a, 0xc78f, 0x001a, 0x001a, 0x78e1, 0x001a, 0x001a, 0x77e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x79e1, 0x001a, 0xa48e, 0xad8d, 0x001a, 0x001a, 0x9793, 0x7ae1, 0x001a, 0xc992, 0x001a, 0x001a, 0x7ce1, 0x001a, 0x001a, 0x001a, 0x9f97, 0x7be1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8991, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x82e1, 0x001a, 0x84e1, 0x85e1, 0x7392, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x83e1, 0x001a, 0x80e1, 0x001a, 0x7de1, 0x7ee1, 0x001a, 0x81e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x88e1, 0x001a, 0x86e1, 0x001a, 0x87e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x89e1, 0x8be1, 0x8ce1, 0x8de1, 0x001a, 0x8ee1, 0x001a, 0x001a, 0x8ae1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x90e1, 0x001a, 0x001a, 0x001a, 0x8fe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x91e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc397, 0x001a, 0x001a, 0x001a, 0x94e1, 0x92e1, 0x93e1, 0x001a, 0x001a, 0x001a, 0xe08a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfc96, 0x001a, 0x001a, 0x001a, 0xc895, 0x001a, 0x96e1, 0x001a, 0x001a, 0x001a, 0x95e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x97e1, 0x98e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x9ce1, 0x99e1, 0x9ae1, 0x9be1, 0x001a, 0x9de1, 0x001a, 0x001a, 0x001a, 0x9ee1, 0x001a, 0x9fe1, 0x001a, 0x001a, 0x001a, 0xa0e1, 0x001a, 0xa1e1, 0x001a, 0xad94, 0x6f93, 0xa2e1, 0x9294, 0x5395, 0x001a, 0xa3e1, 0x001a, 0x54ee, 0xa4e1, 0x4993, 0x001a, 0x468a, 0x638d, 0xa5e1, 0x001a, 0x001a, 0xa6e1, 0x001a, 0x001a, 0xa7e1, 0x001a, 0x488e, 0x001a, 0x001a, 0xa9e1, 0x001a, 0x001a, 0xa8e1, 0x001a, 0x001a, 0xaae1, 0xabe1, 0x57ee, 0x55ee, 0x001a, 0x56ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x58ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe794, 0x001a, 0xace1, 0x001a, 0x001a, 0x001a, 0xade1, 0x001a, 0x001a, 0x89ea, 0xaee1, 0xafe1, 0xb0e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x4d8e, 0x001a, 0x001a, 0xb1e1, 0x7594, 0x001a, 0x001a, 0x7e96, 0x001a, 0x6d89, 0x001a, 0x7689, 0x001a, 0x001a, 0xb2e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e1, 0x001a, 0x001a, 0x001a, 0xb3e1, 0x9093, 0x001a, 0x001a, 0x001a, 0xb790, 0x589f, 0x001a, 0xb5e1, 0xbf96, 0x001a, 0xb6e1, 0x001a, 0xc48a, 0xd594, 0xb7e1, 0x001a, 0xb8e1, 0x001a, 0x001a, 0xb9e1, 0x001a, 0x001a, 0x001a, 0xda96, 0x001a, 0x001a, 0x001a, 0xd396, 0x001a, 0xbc92, 0x001a, 0x001a, 0x001a, 0x8a91, 0x001a, 0x001a, 0xbbe1, 0x001a, 0x001a, 0x828f, 0x001a, 0x001a, 0xc88f, 0x001a, 0x001a, 0xbee1, 0x001a, 0x001a, 0xbde1, 0xbce1, 0xfb94, 0x001a, 0xc58a, 0xa78c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4e1, 0x001a, 0x001a, 0xc1e1, 0x5e90, 0xb096, 0x001a, 0x001a, 0x001a, 0xc0e1, 0xc2e1, 0xc3e1, 0x001a, 0x001a, 0xbfe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5e1, 0xc6e1, 0x001a, 0xad92, 0x001a, 0xe18a, 0x001a, 0x001a, 0x001a, 0x8592, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5aee, 0xc7e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8e1, 0xcbe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8790, 0x001a, 0xc293, 0x001a, 0xcce1, 0x7296, 0x001a, 0xc9e1, 0x001a, 0x001a, 0xcae1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfe1, 0x001a, 0x001a, 0x001a, 0x001a, 0xcee1, 0xcde1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e1, 0x001a, 0x001a, 0xd0e1, 0x001a, 0x001a, 0xd2e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4e1, 0x001a, 0xd3e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xcb95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x758f, 0xc497, 0x001a, 0x001a, 0xd5e1, 0x001a, 0x001a, 0xb593, 0x001a, 0x001a, 0xd6e1, 0x001a, 0x001a, 0xd7e1, 0x001a, 0xdbe1, 0xd9e1, 0xdae1, 0x001a, 0xd8e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdce1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdee1, 0x001a, 0x001a, 0xdfe1, 0xb596, 0xe0e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xee96, 0xe1e1, 0x001a, 0x6d92, 0x001a, 0x8a94, 0x001a, 0xe98b, 0x001a, 0x001a, 0x001a, 0x5a92, 0xe2e1, 0xb88b, 0x001a, 0x001a, 0x001a, 0xce90, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbb8d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e1, 0x001a, 0xa48c, 0xd38d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7e1, 0x5cee, 0x001a, 0x001a, 0x001a, 0x7593, 0xd48d, 0x6d8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4396, 0x001a, 0x6a94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7693, 0x001a, 0x001a, 0x001a, 0x001a, 0x7b8d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5dee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc98f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5eee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb097, 0x648d, 0x001a, 0x001a, 0xa58c, 0x001a, 0x001a, 0xa194, 0x001a, 0xebe1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5fee, 0x001a, 0xede1, 0x001a, 0x001a, 0x001a, 0x001a, 0xe98c, 0x001a, 0x001a, 0x001a, 0x001a, 0xece1, 0xf492, 0x001a, 0x001a, 0x001a, 0x001a, 0xefe1, 0x568a, 0xeae1, 0x001a, 0x001a, 0xe894, 0x001a, 0x4f89, 0x001a, 0xea8d, 0x001a, 0x7198, 0x001a, 0x001a, 0xeee1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0e1, 0x001a, 0x001a, 0x001a, 0xc995, 0x001a, 0xd790, 0xf2e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xf3e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x6d8a, 0x001a, 0xf9e1, 0x001a, 0xf8e1, 0x001a, 0x001a, 0xa58e, 0x001a, 0x001a, 0x001a, 0xfae1, 0xf5e1, 0x001a, 0x001a, 0x001a, 0xfbe1, 0xf6e1, 0x001a, 0x001a, 0x001a, 0x001a, 0xd694, 0xf4e1, 0x001a, 0x001a, 0xf7e1, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x40e2, 0x8196, 0x001a, 0x001a, 0x001a, 0xfce1, 0x001a, 0x001a, 0xe988, 0x001a, 0x001a, 0x001a, 0x001a, 0x43e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x42e2, 0x001a, 0x001a, 0x001a, 0xca8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x44e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6291, 0x001a, 0x001a, 0x46e2, 0x45e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x47e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6e1, 0x001a, 0x001a, 0x001a, 0xe8e1, 0x49e2, 0x48e2, 0x001a, 0x001a, 0x001a, 0x60ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa68e, 0x001a, 0xe797, 0x001a, 0xd08e, 0x001a, 0x4ae2, 0x568c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5f8b, 0x468b, 0x838e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5397, 0x001a, 0x001a, 0x50e2, 0x001a, 0x4fe2, 0x6391, 0x4ce2, 0x001a, 0x001a, 0x4ee2, 0x001a, 0x001a, 0x6a8f, 0x5f90, 0x4de2, 0x4be2, 0x001a, 0x4994, 0x001a, 0x001a, 0xcb8f, 0x001a, 0x001a, 0x5b95, 0x001a, 0x001a, 0x001a, 0x001a, 0xd58d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9893, 0x001a, 0x001a, 0x51e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x52e2, 0x68e2, 0xd68b, 0x001a, 0x001a, 0x5c98, 0x5491, 0x001a, 0x001a, 0x001a, 0x001a, 0x53e2, 0x001a, 0x001a, 0xd089, 0xf592, 0x9f95, 0x001a, 0x001a, 0x001a, 0x001a, 0x64ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x66ee, 0x001a, 0x54e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9a8b, 0x55e2, 0x001a, 0x001a, 0x57e2, 0x001a, 0x001a, 0x001a, 0x58e2, 0x001a, 0x4894, 0x001a, 0x001a, 0x59e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ae2, 0x5be2, 0x001a, 0x001a, 0xd78b, 0xd189, 0xc393, 0x478f, 0x848e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ce2, 0x001a, 0x488f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc889, 0x6295, 0x001a, 0x001a, 0x5de2, 0x001a, 0x001a, 0xe994, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6491, 0x001a, 0x60e2, 0x001a, 0x61e2, 0x8994, 0x001a, 0x6090, 0x5ee2, 0x001a, 0x8192, 0x001a, 0x001a, 0x5fe2, 0x001a, 0x001a, 0x001a, 0xcc8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xda88, 0x001a, 0x001a, 0x001a, 0x001a, 0x488b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62e2, 0x001a, 0x001a, 0xf692, 0x001a, 0x63e2, 0xc590, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xab96, 0x001a, 0x001a, 0x4295, 0x64e2, 0x65e2, 0x7492, 0x001a, 0xc597, 0x001a, 0x001a, 0x67e2, 0x66e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xed8e, 0x001a, 0x001a, 0x69e2, 0xee88, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ce2, 0x001a, 0x001a, 0x001a, 0x6ae2, 0xd289, 0x6d8c, 0x6be2, 0x658d, 0x928d, 0x001a, 0xe495, 0x6de2, 0x001a, 0x001a, 0x7396, 0x001a, 0x001a, 0x6fe2, 0x001a, 0x001a, 0x001a, 0xcf90, 0x6e89, 0xb889, 0xaa88, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ee2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x70e2, 0x71e2, 0xf58f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x72e2, 0x001a, 0x6e8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x74e2, 0x001a, 0x001a, 0x001a, 0x8a8c, 0x001a, 0x868b, 0x001a, 0x001a, 0x75e2, 0xf38b, 0x001a, 0x001a, 0x76e2, 0x001a, 0xfa90, 0x001a, 0xcb93, 0x001a, 0xde90, 0xf38d, 0x001a, 0x001a, 0x001a, 0x77e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8292, 0x8b91, 0x001a, 0x79e2, 0x7be2, 0x78e2, 0x7ae2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x418c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7ce2, 0x458c, 0x001a, 0x001a, 0x001a, 0x878b, 0x7197, 0x7ee2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x80e2, 0x001a, 0x001a, 0x001a, 0x4d89, 0x001a, 0x001a, 0x001a, 0x001a, 0x83e2, 0x001a, 0x001a, 0x001a, 0x968a, 0x82e2, 0x81e2, 0x001a, 0x85e2, 0x7de2, 0x001a, 0x86e2, 0xa797, 0x001a, 0x87e2, 0x001a, 0x88e2, 0x001a, 0x67ee, 0xf29a, 0x8ae2, 0x001a, 0x89e2, 0x001a, 0x001a, 0x001a, 0x8be2, 0x8ce2, 0x001a, 0xb397, 0x8de2, 0x001a, 0xede8, 0xcd8f, 0x8ee2, 0x8fe2, 0x768f, 0x001a, 0xb693, 0x90e2, 0x68ee, 0x001a, 0x001a, 0x4792, 0x6aee, 0x001a, 0x91e2, 0x001a, 0x5b92, 0x92e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa38b, 0x001a, 0x5e99, 0x7c92, 0xb18e, 0x001a, 0x001a, 0x001a, 0x001a, 0xc68a, 0x001a, 0x001a, 0x93e2, 0x001a, 0xa0e2, 0x001a, 0x96e2, 0x001a, 0x888b, 0x001a, 0x95e2, 0xa2e2, 0x001a, 0x001a, 0x001a, 0x94e2, 0x001a, 0xce8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x98e2, 0x99e2, 0x001a, 0x4a93, 0x001a, 0x001a, 0x9ae2, 0x001a, 0x7d8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7990, 0x8495, 0x001a, 0x9ce2, 0x001a, 0x001a, 0x001a, 0xe691, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x97e2, 0x001a, 0x9be2, 0x9de2, 0x001a, 0x001a, 0xf98d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e2, 0x4d95, 0x001a, 0xa494, 0x9993, 0x001a, 0xd88b, 0xa3e2, 0xa1e2, 0x001a, 0xb394, 0x9ee2, 0x7d92, 0x9b93, 0x001a, 0x9a93, 0x001a, 0xf48d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa6e2, 0x001a, 0xa8e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xabe2, 0x001a, 0xace2, 0x001a, 0xa9e2, 0xaae2, 0x001a, 0x001a, 0xa7e2, 0xa5e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x9fe2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcd95, 0xd389, 0x001a, 0x001a, 0x001a, 0xb3e2, 0x001a, 0xb0e2, 0x001a, 0xb5e2, 0x001a, 0x001a, 0xb4e2, 0x001a, 0x9394, 0xa596, 0x001a, 0x5a8e, 0xaee2, 0xb7e2, 0xb2e2, 0x001a, 0xb1e2, 0xade2, 0x6bee, 0xafe2, 0x001a, 0xc78a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5c92, 0x001a, 0x001a, 0xfb90, 0x001a, 0x001a, 0x001a, 0xa094, 0x001a, 0x001a, 0xbce2, 0x001a, 0x001a, 0x001a, 0xa294, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf90, 0xb9e2, 0x001a, 0x001a, 0xcd94, 0x001a, 0xbde2, 0xd195, 0x001a, 0x7a92, 0x001a, 0xb8e2, 0xbae2, 0x001a, 0x001a, 0xbbe2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee2, 0x001a, 0x001a, 0xc28e, 0x001a, 0x001a, 0x001a, 0xc493, 0xc3e2, 0xc2e2, 0x001a, 0x001a, 0xbfe2, 0x001a, 0x001a, 0x001a, 0x5598, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8e2, 0x001a, 0x001a, 0xcce2, 0xc9e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcbe2, 0x001a, 0x001a, 0x001a, 0xc0e2, 0xd399, 0xc7e2, 0xc1e2, 0x001a, 0x001a, 0xcae2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0e2, 0x001a, 0xc88a, 0x001a, 0xcde2, 0x001a, 0x001a, 0x001a, 0xcee2, 0x001a, 0x001a, 0xcfe2, 0xd2e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e2, 0xf494, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3e2, 0xfa97, 0xeb95, 0xd8e2, 0x001a, 0x001a, 0xd5e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4e2, 0xd090, 0x001a, 0xd7e2, 0xd9e2, 0x001a, 0x001a, 0x001a, 0xd6e2, 0x001a, 0xdde2, 0x001a, 0xdae2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdbe2, 0xc4e2, 0x001a, 0x001a, 0x001a, 0xdce2, 0xdee2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdfe2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc495, 0x001a, 0xe0e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe096, 0x001a, 0x001a, 0xcc8b, 0x488c, 0xe1e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb295, 0x001a, 0x8890, 0x001a, 0xae96, 0x001a, 0x001a, 0xe2e2, 0x001a, 0xb197, 0x001a, 0x001a, 0x9494, 0x001a, 0x6591, 0x5394, 0x001a, 0x001a, 0x6c8f, 0x001a, 0x001a, 0x001a, 0xbe88, 0x001a, 0xe7e2, 0xe5e2, 0x001a, 0xe3e2, 0x9f8a, 0x001a, 0xcf8f, 0xe8e2, 0x001a, 0x001a, 0xe6e2, 0x001a, 0xe4e2, 0xece2, 0x001a, 0x001a, 0xebe2, 0xeae2, 0xe9e2, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xede2, 0x001a, 0x001a, 0x001a, 0xeee2, 0xb890, 0x001a, 0xefe2, 0x001a, 0xf1e2, 0x001a, 0x001a, 0xf0e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xd08c, 0x001a, 0x001a, 0x001a, 0x5791, 0x001a, 0x001a, 0x001a, 0xf3e2, 0x001a, 0x001a, 0x001a, 0x9c93, 0x001a, 0xf2e2, 0x001a, 0x001a, 0x001a, 0xf4e2, 0x001a, 0xb395, 0x8c91, 0x668d, 0x001a, 0xf5e2, 0x001a, 0x001a, 0x001a, 0x001a, 0xc697, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7e2, 0x001a, 0x001a, 0xf8e2, 0x001a, 0xf9e2, 0x001a, 0xfae2, 0x001a, 0x858e, 0x001a, 0xfbe2, 0x6e8c, 0x001a, 0x001a, 0x8a8b, 0x001a, 0x498b, 0x001a, 0x40e3, 0x001a, 0xf196, 0x678d, 0xfce2, 0x001a, 0x001a, 0x001a, 0x43e3, 0xe496, 0x001a, 0x5b94, 0x001a, 0x001a, 0x5295, 0x001a, 0x001a, 0x001a, 0x838f, 0x42e3, 0x001a, 0xd18e, 0x688d, 0x868e, 0x898b, 0xb495, 0x41e3, 0x001a, 0x001a, 0x001a, 0x6691, 0x6196, 0xf58d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x878e, 0xdb92, 0x001a, 0x46e3, 0xdd97, 0xd78d, 0x001a, 0x47e3, 0x6190, 0x001a, 0x49e3, 0x001a, 0x001a, 0x001a, 0xd08f, 0xae8d, 0x001a, 0x001a, 0x001a, 0x001a, 0x48e3, 0x001a, 0x001a, 0x498f, 0xbc8c, 0x6791, 0x44e3, 0x4ae3, 0x001a, 0x6dee, 0x001a, 0x001a, 0x45e3, 0x6f8c, 0x001a, 0x4de3, 0x51e3, 0x8b8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ce3, 0x001a, 0x001a, 0x001a, 0x001a, 0x55e3, 0x6eee, 0x001a, 0x698d, 0x001a, 0x001a, 0x8d97, 0xba88, 0x52e3, 0x001a, 0x001a, 0x8b8b, 0x001a, 0x4fe3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50e3, 0x001a, 0x001a, 0x9d93, 0x4ee3, 0x4be3, 0x001a, 0x478a, 0xe290, 0x001a, 0x001a, 0xa68c, 0x001a, 0x001a, 0x001a, 0x57e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x54e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56e3, 0x001a, 0x001a, 0x001a, 0x53e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x708c, 0xb191, 0x58e3, 0x8e91, 0x001a, 0x001a, 0x65e3, 0x70ee, 0x001a, 0x61e3, 0x5be3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5fe3, 0xf88e, 0xdb88, 0x5ae3, 0x62e3, 0x66e3, 0x6a8d, 0xd496, 0x001a, 0xd492, 0x5ce3, 0x001a, 0x6fee, 0x64e3, 0x001a, 0x59e3, 0x5d92, 0x001a, 0x5ee3, 0xbb88, 0xc896, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5de3, 0x001a, 0x001a, 0xd98b, 0xea94, 0x001a, 0x001a, 0x001a, 0x8d91, 0x001a, 0xce97, 0x8f8f, 0x001a, 0x001a, 0x8ee3, 0x71ee, 0x001a, 0x67e3, 0x001a, 0xfc90, 0x001a, 0x63e3, 0x68e3, 0x6ae3, 0x001a, 0xf792, 0x6de3, 0x001a, 0x001a, 0x69e3, 0x001a, 0x001a, 0x001a, 0xd295, 0xc98a, 0x001a, 0x001a, 0xc996, 0x001a, 0x001a, 0xdc88, 0x001a, 0x001a, 0x6ce3, 0x001a, 0xfb97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6be3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8f89, 0x001a, 0x001a, 0xea93, 0x6ee3, 0x001a, 0x001a, 0x001a, 0x75e3, 0x6fe3, 0x76e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x72e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9b94, 0x001a, 0x001a, 0xc88e, 0x74e3, 0x001a, 0x71e3, 0x77e3, 0x70e3, 0x001a, 0x001a, 0x638f, 0x001a, 0x001a, 0x001a, 0x001a, 0x4496, 0x001a, 0x001a, 0x6b8f, 0x001a, 0x001a, 0x73e3, 0x80e3, 0x001a, 0x001a, 0x7be3, 0x001a, 0x7ee3, 0x001a, 0x7ce3, 0x81e3, 0x7ae3, 0x001a, 0x60e3, 0xd190, 0x001a, 0x001a, 0xc994, 0x001a, 0x7de3, 0x001a, 0x001a, 0x78e3, 0x001a, 0x001a, 0x001a, 0x4091, 0x718c, 0x001a, 0x4a8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x72ee, 0x001a, 0x4490, 0x5591, 0x84e3, 0x001a, 0x001a, 0x86e3, 0x87e3, 0x001a, 0x001a, 0x83e3, 0x85e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x79e3, 0x82e3, 0x001a, 0x8ae3, 0x89e3, 0x001a, 0x001a, 0x9a96, 0x001a, 0x001a, 0x4a8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x88e3, 0x001a, 0x8ce3, 0x8be3, 0x8fe3, 0x001a, 0x91e3, 0x001a, 0x001a, 0x5b8e, 0x8de3, 0x001a, 0x001a, 0x001a, 0x001a, 0x92e3, 0x93e3, 0x40ed, 0x001a, 0x94e3, 0x001a, 0x9ae3, 0x5a93, 0x96e3, 0x001a, 0x95e3, 0x97e3, 0x98e3, 0x001a, 0x99e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x9be3, 0x9ce3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xca8a, 0x001a, 0x9de3, 0x001a, 0x9ee3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9fe3, 0x001a, 0x73ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xa0e3, 0xa1e3, 0xa2e3, 0x001a, 0xa3e3, 0xa4e3, 0x001a, 0x001a, 0xa6e3, 0xa5e3, 0x001a, 0x001a, 0xa7e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa8e3, 0xa9e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xace3, 0xaae3, 0xabe3, 0xdf8d, 0x728c, 0x001a, 0x001a, 0x7592, 0x001a, 0xb194, 0x001a, 0x908f, 0x001a, 0x001a, 0x6c94, 0x001a, 0xeb94, 0xade3, 0xeb9c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaee3, 0xb0e3, 0x001a, 0x8597, 0xafe3, 0xb2e3, 0xb1e3, 0x001a, 0x7297, 0x001a, 0xb3e3, 0x001a, 0xfc94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7e3, 0x001a, 0x001a, 0xb6e3, 0xb5e3, 0x001a, 0x001a, 0x74ee, 0x001a, 0xb8e3, 0x518c, 0x001a, 0x001a, 0x001a, 0x4191, 0x608b, 0x001a, 0x001a, 0x001a, 0x001a, 0xbce3, 0xb9e3, 0x001a, 0x001a, 0xbae3, 0x001a, 0x001a, 0x001a, 0xbde3, 0x001a, 0xbee3, 0xbbe3, 0x001a, 0x001a, 0x001a, 0x4889, 0x001a, 0x001a, 0x001a, 0xa589, 0x001a, 0x001a, 0x001a, 0xc0e3, 0xc1e3, 0x001a, 0x001a, 0x001a, 0xc2e3, 0x001a, 0x8297, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4b8f, 0x001a, 0xc4e3, 0xc3e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8990, 0xc5e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xc6e3, 0x001a, 0x001a, 0xc7e3, 0x001a, 0xe38a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcb8a, 0x001a, 0x001a, 0xc8e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9e3, 0x001a, 0x7c96, 0x8397, 0x001a, 0x001a, 0x001a, 0x7397, 0x5698, 0x001a, 0x6c8d, 0xcce3, 0xd28e, 0xcbe3, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde3, 0xa78e, 0x001a, 0x001a, 0x001a, 0xcf91, 0x001a, 0xcee3, 0x001a, 0x001a, 0x6b8d, 0x001a, 0xd596, 0xcfe3, 0xd0e3, 0x001a, 0x001a, 0xd1e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd3e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa88e, 0x001a, 0x001a, 0xeb96, 0x001a, 0x001a, 0x001a, 0x001a, 0xd5e3, 0x001a, 0x5e92, 0x001a, 0xd4e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd7e3, 0x001a, 0x001a, 0x001a, 0xd6e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8e3, 0x001a, 0x001a, 0x001a, 0xb990, 0x001a, 0xd9e3, 0x001a, 0xdae3, 0x001a, 0x001a, 0x001a, 0xb795, 0xdbe3, 0x001a, 0x8f91, 0xdce3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfc97, 0xe0e3, 0x001a, 0xdfe3, 0xdee3, 0xae92, 0x001a, 0xe1e3, 0x4590, 0x001a, 0xe2e3, 0x001a, 0x001a, 0x001a, 0xe3e3, 0x5798, 0xe4e3, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e3, 0xe7e3, 0xe6e3, 0xa394, 0x001a, 0xf793, 0x001a, 0x5d98, 0xa794, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9e3, 0x001a, 0x001a, 0xd18f, 0x001a, 0x4995, 0x001a, 0xeae3, 0xe8e3, 0x001a, 0xcc8a, 0x001a, 0x001a, 0x001a, 0xd28c, 0x888e, 0x001a, 0x001a, 0xec94, 0x001a, 0x001a, 0x001a, 0xa88c, 0x6296, 0x001a, 0xede3, 0xebe3, 0x001a, 0x6d8d, 0x001a, 0x6e8d, 0xe788, 0x001a, 0xe68d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7894, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdd88, 0xf2e3, 0x001a, 0x5f92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7794, 0x001a, 0xd991, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e3, 0x001a, 0x001a, 0xf0e3, 0xf3e3, 0xeee3, 0x001a, 0xf1e3, 0x4596, 0x001a, 0x001a, 0xd38c, 0x001a, 0x001a, 0xfb88, 0xefe3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6e3, 0x001a, 0xf7e3, 0x001a, 0x001a, 0xb793, 0x001a, 0x001a, 0x001a, 0xb98b, 0x001a, 0x001a, 0x001a, 0x45e4, 0x5c94, 0x001a, 0x001a, 0x001a, 0x001a, 0x898e, 0x001a, 0x001a, 0xba8b, 0xc690, 0x6598, 0xac96, 0xf5e3, 0xd290, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x728b, 0xf8e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfae3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9e3, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbe3, 0x001a, 0x4592, 0x001a, 0x5d94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xaf92, 0x001a, 0x001a, 0x001a, 0x001a, 0x42e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41e4, 0x001a, 0x001a, 0x001a, 0x001a, 0xfce3, 0x001a, 0x001a, 0x7490, 0x001a, 0x8595, 0x44e4, 0x001a, 0x43e4, 0x6f8d, 0x7298, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x54e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x48e4, 0x49e4, 0x001a, 0x001a, 0x001a, 0x001a, 0xee8e, 0x001a, 0x001a, 0x47e4, 0x001a, 0x988d, 0x46e4, 0x001a, 0x001a, 0x4ae4, 0x001a, 0x001a, 0x001a, 0xb092, 0xa095, 0x4291, 0x001a, 0x001a, 0x001a, 0x001a, 0xda91, 0x4ee4, 0x001a, 0x4fe4, 0x4be4, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ce4, 0x001a, 0x4de4, 0x001a, 0x001a, 0x001a, 0x001a, 0x708d, 0x001a, 0x001a, 0x001a, 0x55e4, 0x001a, 0x51e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x8695, 0x001a, 0x8c96, 0x4795, 0x001a, 0x001a, 0x50e4, 0x001a, 0x001a, 0x53e4, 0x52e4, 0x001a, 0x001a, 0x001a, 0x6396, 0x56e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x57e4, 0x001a, 0x001a, 0x5691, 0x001a, 0x58e4, 0x001a, 0x001a, 0x5ae4, 0x001a, 0x5ee4, 0x001a, 0x001a, 0x5be4, 0x59e4, 0x5e94, 0x5ce4, 0x001a, 0x5de4, 0x001a, 0x001a, 0x001a, 0xb089, 0x001a, 0x64e4, 0x5fe4, 0x001a, 0x001a, 0x001a, 0x60e4, 0x001a, 0x001a, 0x001a, 0x61e4, 0x001a, 0x9f91, 0x001a, 0x001a, 0x001a, 0x001a, 0x63e4, 0x62e4, 0x65e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x66e4, 0x67e4, 0x001a, 0x001a, 0x6290, 0x001a, 0xe789, 0x001a, 0x68e4, 0xd597, 0x001a, 0xa98e, 0x001a, 0x001a, 0x4c8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8a8e, 0x7692, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x69e4, 0x6ae4, 0x5089, 0x001a, 0x6be4, 0x001a, 0x001a, 0x6ce4, 0x6de4, 0x001a, 0x001a, 0x6ee4, 0x001a, 0x6fe4, 0xbb8b, 0xa89d, 0x70e4, 0x001a, 0xe390, 0x71e4, 0xc98e, 0x001a, 0x72e4, 0x001a, 0xae98, 0x001a, 0x001a, 0x001a, 0x73e4, 0xdc95, 0xda8a, 0x001a, 0x001a, 0x4391, 0x778f, 0x001a, 0x9195, 0x4d8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x74e4, 0x718d, 0x75e4, 0xca94, 0x001a, 0x84e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x77e4, 0x001a, 0xc791, 0x9594, 0xbd8c, 0x76e4, 0x4491, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x78e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf892, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7ae4, 0x79e4, 0x7ce4, 0x001a, 0x001a, 0x7be4, 0x001a, 0x7de4, 0x001a, 0x001a, 0x80e4, 0x001a, 0x7ee4, 0x001a, 0xcd8a, 0x001a, 0x81e4, 0x001a, 0x82e4, 0x83e4, 0x001a, 0x001a, 0xaf8d, 0xc797, 0x001a, 0x85e4, 0x4690, 0x001a, 0x001a, 0x001a, 0x9089, 0x86e4, 0x87e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x88e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf088, 0x001a, 0x89e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x8ae4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8795, 0x001a, 0x001a, 0x001a, 0xc58e, 0x001a, 0x8ce4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x488a, 0xb088, 0x001a, 0x001a, 0x001a, 0x001a, 0x8be4, 0x8ee4, 0x6d94, 0x001a, 0x6390, 0x001a, 0xd489, 0x001a, 0x4696, 0x001a, 0x001a, 0x001a, 0x001a, 0x7c8c, 0xda8b, 0x001a, 0x8de4, 0x001a, 0xe889, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa18a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9189, 0x92e4, 0xe897, 0xdb91, 0x001a, 0x001a, 0x6395, 0x001a, 0x9ee4, 0x001a, 0xd589, 0x9ce4, 0x001a, 0x9ae4, 0x91e4, 0x001a, 0x8fe4, 0x001a, 0x90e4, 0x001a, 0xe18e, 0xea8b, 0x9792, 0x001a, 0x001a, 0x001a, 0xcf93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7089, 0x001a, 0x94e4, 0x93e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x99e4, 0x95e4, 0x98e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x76ee, 0xce96, 0x97e4, 0xd689, 0x9d8a, 0x9be4, 0x001a, 0x001a, 0x9de4, 0x001a, 0x001a, 0x001a, 0x001a, 0x738c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1e4, 0xaae4, 0xabe4, 0x001a, 0x001a, 0x001a, 0xa988, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2e4, 0x001a, 0x001a, 0x001a, 0x001a, 0xef88, 0x001a, 0x001a, 0xa9e4, 0x001a, 0x001a, 0x001a, 0xa8e4, 0x001a, 0xa3e4, 0xa2e4, 0x001a, 0xa0e4, 0x9fe4, 0x8392, 0x001a, 0xf991, 0xa5e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e4, 0x001a, 0x001a, 0x001a, 0x001a, 0xa7e4, 0x001a, 0x001a, 0x001a, 0x9091, 0x748c, 0x001a, 0x001a, 0x001a, 0x001a, 0x6089, 0xa6e4, 0x001a, 0x728d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9191, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x77ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8e4, 0x001a, 0xb9e4, 0x001a, 0xd789, 0x001a, 0x001a, 0x001a, 0xac89, 0xb6e4, 0x001a, 0x001a, 0x78ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xace4, 0x001a, 0xb4e4, 0x001a, 0xbbe4, 0xb5e4, 0x001a, 0x001a, 0x001a, 0xb3e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x96e4, 0x001a, 0x001a, 0xb1e4, 0x001a, 0x001a, 0x001a, 0xade4, 0x001a, 0x001a, 0x001a, 0xce8a, 0xafe4, 0xbae4, 0x001a, 0xb0e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbce4, 0x001a, 0xaee4, 0x9c94, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8997, 0x001a, 0x001a, 0x001a, 0xb7e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde4, 0x001a, 0x001a, 0x001a, 0xc5e4, 0x001a, 0x001a, 0x001a, 0x9b90, 0x001a, 0x79ee, 0x001a, 0x001a, 0x658b, 0x001a, 0xdb8b, 0x001a, 0xc0e4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd989, 0x001a, 0x001a, 0xd28f, 0x001a, 0xc3e4, 0x001a, 0x001a, 0x001a, 0xd88d, 0x001a, 0x001a, 0x7093, 0xc8e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xec95, 0x001a, 0xbfe4, 0x001a, 0x001a, 0x001a, 0xd889, 0xd48c, 0x4895, 0xc9e4, 0x001a, 0xbde4, 0x001a, 0x7aee, 0xc6e4, 0x001a, 0x001a, 0x001a, 0xd0e4, 0x001a, 0xc1e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2e4, 0xb893, 0x001a, 0x001a, 0xc7e4, 0x001a, 0x001a, 0x001a, 0xc4e4, 0x4796, 0xcae4, 0xde88, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcce4, 0x001a, 0xcbe4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8b94, 0xd2e4, 0x001a, 0xdde4, 0x001a, 0x001a, 0x001a, 0x001a, 0x9e8a, 0x001a, 0x001a, 0x001a, 0xe0e4, 0x001a, 0x001a, 0xcee4, 0x001a, 0x001a, 0x001a, 0xd3e4, 0x8e97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdce4, 0x001a, 0x7bee, 0x7497, 0x001a, 0x001a, 0x001a, 0x001a, 0xa897, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9892, 0x001a, 0x001a, 0x001a, 0x8b8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9295, 0xe2e4, 0x9f93, 0x001a, 0x001a, 0xaf88, 0x001a, 0x001a, 0xdbe4, 0x001a, 0xd7e4, 0x9291, 0xd1e4, 0xd9e4, 0xdee4, 0x001a, 0x4b94, 0x001a, 0x001a, 0x001a, 0xa888, 0x001a, 0xd6e4, 0x001a, 0xdfe4, 0x9895, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdae4, 0x001a, 0xd5e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd38f, 0x001a, 0x001a, 0x001a, 0x001a, 0x4e8f, 0x001a, 0x001a, 0x001a, 0xaa8e, 0x001a, 0x001a, 0x001a, 0x001a, 0xd696, 0x001a, 0x001a, 0x6695, 0x001a, 0x001a, 0xe5e4, 0x001a, 0xeee4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd8e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x978a, 0x001a, 0x7cee, 0x001a, 0x001a, 0x001a, 0xf68f, 0xe3e4, 0x001a, 0xe8e4, 0x9391, 0x001a, 0x001a, 0xe4e4, 0x001a, 0xebe4, 0x001a, 0x001a, 0x7e92, 0x001a, 0xece4, 0x001a, 0x001a, 0x7597, 0xe1e4, 0x578a, 0x001a, 0xe7e4, 0x001a, 0x001a, 0xeae4, 0xaa96, 0x001a, 0x001a, 0x001a, 0x001a, 0xede4, 0x001a, 0x001a, 0xe6e4, 0xe9e4, 0x001a, 0x44ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4896, 0x001a, 0x4098, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8e4, 0x001a, 0x001a, 0xf0e4, 0xc18e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfe4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcc95, 0x001a, 0xa096, 0xf7e4, 0xf6e4, 0x001a, 0xf2e4, 0xf3e4, 0x001a, 0x5589, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5e4, 0x001a, 0xefe4, 0x001a, 0x001a, 0x001a, 0x001a, 0xd392, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e4, 0xfc88, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa091, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc195, 0x001a, 0x001a, 0xf9e4, 0x40e5, 0x001a, 0xd794, 0x001a, 0x001a, 0x001a, 0x001a, 0xfce4, 0xd48f, 0xc78e, 0x42e5, 0x001a, 0x001a, 0xbc8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x7dee, 0x001a, 0x43e5, 0x001a, 0x9995, 0xfbe4, 0x7eee, 0xd4e4, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfae4, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e98, 0xa093, 0x9395, 0x80ee, 0x001a, 0x4ae5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x51e5, 0x001a, 0x44e5, 0x001a, 0x001a, 0x001a, 0x9694, 0x001a, 0x001a, 0x4ee5, 0x46e5, 0x001a, 0x48e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x52e5, 0x47e5, 0x001a, 0x001a, 0x4be5, 0x001a, 0x001a, 0x9289, 0x001a, 0xe393, 0x001a, 0x4ce5, 0x4fe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x45e5, 0x001a, 0x4591, 0x001a, 0x49e5, 0x468e, 0x6490, 0x4f8c, 0xf296, 0x001a, 0xf796, 0x928f, 0x82ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56e5, 0x54e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6d98, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x53e5, 0x001a, 0x001a, 0x001a, 0x9597, 0x001a, 0x55e5, 0x57e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x58e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5be5, 0x59e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa193, 0x5ae5, 0x001a, 0x001a, 0x001a, 0xcb94, 0x4de5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x938f, 0x001a, 0x5ce5, 0x61e5, 0x9491, 0x001a, 0x001a, 0x60e5, 0x001a, 0x001a, 0x001a, 0x41e5, 0x001a, 0x001a, 0x001a, 0x62e5, 0x6891, 0x001a, 0x001a, 0x5de5, 0x5fe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ee5, 0x001a, 0x001a, 0x509f, 0x419f, 0x001a, 0x001a, 0x64e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x63e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9697, 0x001a, 0xbae1, 0x65e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x66e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x67e5, 0xd58c, 0x001a, 0x738b, 0x001a, 0x001a, 0x001a, 0x69e5, 0x7c99, 0x001a, 0x001a, 0x001a, 0x001a, 0x958b, 0x001a, 0xb897, 0x001a, 0xf18b, 0x6ae5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6be5, 0x001a, 0x001a, 0x001a, 0x8e92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ce5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf893, 0x001a, 0xb888, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe189, 0x71e5, 0x72e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6de5, 0x001a, 0x5c8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ee5, 0x6194, 0x001a, 0x001a, 0x001a, 0x001a, 0x6fe5, 0x70e5, 0x7ae5, 0x001a, 0x001a, 0x001a, 0x74e5, 0x77e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x75e5, 0x001a, 0x76e5, 0xd68e, 0x001a, 0x78e5, 0x001a, 0x6092, 0x001a, 0x758c, 0x618a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7be5, 0x001a, 0x001a, 0x001a, 0x001a, 0x5e8a, 0x001a, 0x81e5, 0x001a, 0x001a, 0x7ce5, 0x80e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xb894, 0x001a, 0x001a, 0x001a, 0x001a, 0x7de5, 0x001a, 0x001a, 0x7ee5, 0x6795, 0xd894, 0x82e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfb91, 0x8ce5, 0x001a, 0x88e5, 0x001a, 0x001a, 0xe989, 0x001a, 0x86e5, 0x001a, 0x4996, 0x87e5, 0x001a, 0x001a, 0x84e5, 0x001a, 0x85e5, 0x8ae5, 0x8de5, 0x001a, 0x001a, 0x8be5, 0x001a, 0x001a, 0x001a, 0x89e5, 0x83e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7792, 0x001a, 0x94e5, 0x001a, 0xa896, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x92e5, 0x001a, 0x001a, 0x001a, 0x93e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8ee5, 0x001a, 0x001a, 0x90e5, 0x001a, 0x001a, 0x001a, 0x91e5, 0x001a, 0x001a, 0x001a, 0x8fe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe490, 0x001a, 0x5898, 0x98e5, 0x001a, 0x99e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x9fe5, 0x001a, 0x4990, 0x001a, 0x9be5, 0x001a, 0x9ee5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x96e5, 0x95e5, 0x001a, 0x001a, 0xa0e5, 0x001a, 0x001a, 0xda89, 0x001a, 0x9ce5, 0x001a, 0xa1e5, 0x001a, 0x001a, 0x001a, 0x9de5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9ae5, 0x001a, 0xb192, 0x001a, 0x97e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8894, 0x001a, 0x001a, 0xa5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5a97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa4e5, 0x001a, 0x001a, 0xa3e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xace5, 0x001a, 0x001a, 0x001a, 0xa6e5, 0x001a, 0x001a, 0x001a, 0xaee5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8697, 0xb1e5, 0x001a, 0xa8e5, 0x001a, 0x001a, 0xa9e5, 0x001a, 0x001a, 0x001a, 0xade5, 0x001a, 0xb0e5, 0xafe5, 0x001a, 0x001a, 0x001a, 0xa7e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xaae5, 0x001a, 0xbbe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb2e5, 0x001a, 0x001a, 0xb3e5, 0x001a, 0x001a, 0x001a, 0xb8e5, 0xb9e5, 0x001a, 0x498a, 0x001a, 0x618b, 0x001a, 0x001a, 0xb7e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa2e5, 0x001a, 0x85ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6e5, 0xbae5, 0xb5e5, 0x001a, 0xbce5, 0x001a, 0x001a, 0x001a, 0xbee5, 0xbde5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc0e5, 0xbfe5, 0x79e5, 0x001a, 0x001a, 0x001a, 0xc4e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2e5, 0x001a, 0x001a, 0xc3e5, 0x001a, 0xc5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x8c8c, 0x001a, 0xc7e5, 0x001a, 0xc6e5, 0x001a, 0x4f8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x738d, 0xa59f, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8e5, 0x708f, 0x001a, 0x001a, 0x001a, 0x588a, 0x001a, 0xc9e5, 0x001a, 0x7189, 0x001a, 0xd58f, 0xcae5, 0x001a, 0x001a, 0x748d, 0xcbe5, 0xdf88, 0x001a, 0x001a, 0x001a, 0x001a, 0x5c95, 0x001a, 0x001a, 0xcce5, 0x001a, 0x001a, 0x001a, 0x001a, 0x8a90, 0x001a, 0xd3e5, 0x001a, 0x001a, 0xd0e5, 0x001a, 0x8f92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e5, 0xcee5, 0xdc8b, 0x001a, 0xcde5, 0xd4e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x558c, 0x001a, 0x001a, 0xdc91, 0x001a, 0xdae5, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6e5, 0x001a, 0x001a, 0x001a, 0xb391, 0xd5e5, 0x001a, 0xd8e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfe5, 0x001a, 0x001a, 0x001a, 0xd9e5, 0x001a, 0xdbe5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xed94, 0x001a, 0x001a, 0xd7e5, 0x001a, 0xdce5, 0xdee5, 0x001a, 0x001a, 0xd18c, 0xd2e5, 0x001a, 0xbf88, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde5, 0x001a, 0xd98d, 0xf497, 0xdfe5, 0xe0e5, 0x9591, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa097, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1e5, 0x5497, 0x001a, 0x001a, 0xe2e5, 0xe3e5, 0x001a, 0x001a, 0xe295, 0xe4e5, 0x001a, 0xbe8d, 0x001a, 0xa197, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeae5, 0xd68f, 0xe8e5, 0x86ee, 0x001a, 0x001a, 0x8797, 0xe5e5, 0x001a, 0x001a, 0xe7e5, 0xbb90, 0x9e90, 0x001a, 0x001a, 0x001a, 0xe6e5, 0x001a, 0xebe5, 0x001a, 0x001a, 0xa195, 0x001a, 0x001a, 0xede5, 0x001a, 0xece5, 0x001a, 0x001a, 0x001a, 0x8c8a, 0x001a, 0x4a96, 0xeee5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x41ed, 0xfae5, 0xf0e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e5, 0x001a, 0x001a, 0x001a, 0x001a, 0xf2e5, 0xf3e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7e5, 0x001a, 0xf8e5, 0x001a, 0x001a, 0xf6e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e5, 0x001a, 0xefe5, 0xf5e5, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9e5, 0xb5e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa689, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfce5, 0xdd8b, 0xfbe5, 0x001a, 0x001a, 0x001a, 0x41e6, 0x001a, 0x40e6, 0x001a, 0x001a, 0x001a, 0x43e6, 0x001a, 0x001a, 0x42e6, 0x001a, 0x44e6, 0x001a, 0x001a, 0x508f, 0x001a, 0x45e6, 0x001a, 0x001a, 0x46e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x47e6, 0xbc90, 0x001a, 0x7697, 0x001a, 0x48e6, 0x001a, 0x001a, 0xa295, 0x6594, 0x49e6, 0x001a, 0x4ae6, 0xa98c, 0x001a, 0x001a, 0x001a, 0x4b8b, 0x001a, 0x001a, 0x001a, 0x4be6, 0x001a, 0x001a, 0x8b8e, 0x6094, 0x4ce6, 0x001a, 0x6f8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4de6, 0x001a, 0x001a, 0x001a, 0x001a, 0x4fe6, 0x9797, 0x001a, 0x4ee6, 0x6590, 0x001a, 0x50e6, 0x001a, 0x001a, 0x51e6, 0x001a, 0x001a, 0x52e6, 0xcf8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x53e6, 0x001a, 0x001a, 0x54e6, 0x001a, 0x55e6, 0x56e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x708a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x57e6, 0x001a, 0x58e6, 0x59e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf089, 0x001a, 0x001a, 0x4790, 0x5ae6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5be6, 0x001a, 0x001a, 0x001a, 0x5ce6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbe8c, 0x001a, 0xf992, 0x5de6, 0x001a, 0x001a, 0x001a, 0x001a, 0x768c, 0x001a, 0x7590, 0x001a, 0x60e6, 0x001a, 0xa293, 0x001a, 0x5fe6, 0x001a, 0x87ee, 0x508c, 0x001a, 0x001a, 0x5ee6, 0xf591, 0x4c8b, 0x001a, 0x001a, 0x61e6, 0x001a, 0x62e6, 0x001a, 0xd78f, 0x001a, 0x001a, 0x001a, 0x8d8c, 0x001a, 0x63e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x4b96, 0x001a, 0x001a, 0xdd90, 0x001a, 0x001a, 0x001a, 0x968b, 0x001a, 0xf396, 0x6991, 0x001a, 0x64e6, 0x88ee, 0x001a, 0x001a, 0x6690, 0x9092, 0xd88f, 0x001a, 0x001a, 0x001a, 0x001a, 0x65e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x68e6, 0x001a, 0x69e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbc8d, 0xc091, 0x67e6, 0x001a, 0xd98f, 0x5d95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x66e6, 0x001a, 0x001a, 0x8c8e, 0x001a, 0x7289, 0x001a, 0x6de6, 0x778c, 0x001a, 0x001a, 0x8e8e, 0x001a, 0x001a, 0x8d8e, 0x001a, 0x6c98, 0x6ce6, 0x6be6, 0x4691, 0x001a, 0x6c8b, 0x6298, 0x598a, 0xda8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x89ee, 0x001a, 0x001a, 0x6ae6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6fe6, 0x001a, 0x70e6, 0x6ee6, 0x001a, 0xd68c, 0x001a, 0x5f97, 0x001a, 0x001a, 0x8f8e, 0x4694, 0x001a, 0x001a, 0x001a, 0x73e6, 0x001a, 0xbe90, 0x001a, 0x6192, 0x001a, 0x001a, 0x5597, 0x001a, 0x76e6, 0x001a, 0x001a, 0x001a, 0xea8c, 0x001a, 0xbd90, 0x72e6, 0x001a, 0x77e6, 0xeb8c, 0x74e6, 0x75e6, 0x8aee, 0x71e6, 0x001a, 0x001a, 0x001a, 0xe090, 0xc793, 0x001a, 0x001a, 0x4e92, 0x001a, 0xdb89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xee94, 0x001a, 0x001a, 0x628b, 0x001a, 0x8bee, 0xb292, 0x001a, 0x001a, 0x7ae6, 0x001a, 0x78e6, 0x001a, 0x001a, 0x6b92, 0x001a, 0x001a, 0x001a, 0xbf90, 0xd08a, 0x79e6, 0x001a, 0x7a90, 0x001a, 0x001a, 0xc897, 0x001a, 0x001a, 0x001a, 0x5f98, 0x001a, 0x001a, 0x001a, 0x7be6, 0x87e6, 0xb392, 0x001a, 0x86e6, 0x8cee, 0x83e6, 0x8be6, 0x84e6, 0x001a, 0x80e6, 0x001a, 0xfa92, 0x7ee6, 0x001a, 0x001a, 0x001a, 0x7ce6, 0x001a, 0x4097, 0x908e, 0x001a, 0x001a, 0x81e6, 0x001a, 0x7de6, 0x001a, 0x001a, 0x8eee, 0x85e6, 0x948f, 0x001a, 0xbf8c, 0x001a, 0x001a, 0x001a, 0xf891, 0x001a, 0x6496, 0x7989, 0xe088, 0x001a, 0xa393, 0x001a, 0x001a, 0x89e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x88e6, 0x001a, 0xe493, 0x001a, 0x8de6, 0x001a, 0x001a, 0x001a, 0x82e6, 0x001a, 0x8ce6, 0x8ee6, 0x001a, 0xaa8c, 0x8ae6, 0x758d, 0x001a, 0xd38e, 0x001a, 0x001a, 0x8fe6, 0x7797, 0x001a, 0x001a, 0x001a, 0x001a, 0x92e6, 0x001a, 0x95e6, 0x001a, 0x001a, 0x93e6, 0x5495, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x90e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xde8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x94e6, 0x001a, 0x001a, 0x96e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9ae6, 0x001a, 0x001a, 0x97e6, 0x001a, 0x99e6, 0x98e6, 0x001a, 0x001a, 0x001a, 0x8fee, 0x001a, 0x001a, 0x9be6, 0x001a, 0xaf8e, 0x001a, 0x9de6, 0x9ce6, 0x8895, 0x001a, 0x001a, 0x9fe6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x788c, 0x001a, 0x001a, 0x001a, 0x001a, 0x9ee6, 0xa0e6, 0x001a, 0x001a, 0xa1e6, 0x638b, 0xbfe3, 0xf78f, 0x001a, 0xa2e6, 0x001a, 0x001a, 0xec8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e6, 0x001a, 0x90ee, 0xa4e6, 0x001a, 0x001a, 0x5d8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcc9d, 0x001a, 0xa5e6, 0x001a, 0xa6e6, 0x001a, 0x518f, 0x001a, 0xa7e6, 0xa8e6, 0x001a, 0x001a, 0xa9e6, 0x001a, 0x001a, 0xaae6, 0xabe6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4a92, 0x001a, 0x001a, 0xace6, 0x001a, 0x001a, 0x001a, 0x001a, 0xaee6, 0x001a, 0xade6, 0x001a, 0x001a, 0x001a, 0x001a, 0xa493, 0x001a, 0xafe6, 0x001a, 0x4c96, 0x001a, 0xb0e6, 0x001a, 0xb1e6, 0x001a, 0xb2e6, 0x001a, 0x001a, 0x001a, 0x001a, 0xb3e6, 0x001a, 0x001a, 0x001a, 0x001a, 0xd893, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdb8f, 0xb4e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8b8d, 0xac98, 0xb5e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6e6, 0x5e95, 0xb7e6, 0x001a, 0xbfe6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb8e6, 0x001a, 0x001a, 0xbae6, 0x001a, 0x001a, 0x001a, 0xb9e6, 0xbbe6, 0x001a, 0x6596, 0xbce6, 0xbde6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee6, 0x001a, 0x001a, 0x001a, 0xc0e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x4c8a, 0xe592, 0x001a, 0x8995, 0xe08d, 0x768d, 0x001a, 0x001a, 0x001a, 0x001a, 0x6e95, 0xdd89, 0xcc94, 0xc3e6, 0xd18a, 0xd390, 0xc2e6, 0xc7e6, 0x9992, 0xe196, 0x001a, 0xc5e6, 0xc6e6, 0x4d8b, 0x001a, 0xc8e6, 0x8394, 0xdd91, 0x001a, 0x001a, 0xef94, 0x5c93, 0xc4e6, 0x001a, 0x6696, 0xea89, 0xcae6, 0x4798, 0xc092, 0x6498, 0x001a, 0x001a, 0x918e, 0xc9e6, 0x001a, 0xaf91, 0x001a, 0x001a, 0xdae6, 0x4791, 0x001a, 0x001a, 0xf693, 0x001a, 0x6f95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde6, 0x5e8e, 0x928e, 0x001a, 0xdc8f, 0x001a, 0x8594, 0x001a, 0xab8c, 0xcce6, 0xcbe6, 0x001a, 0x8a95, 0x001a, 0x001a, 0x001a, 0xbf8e, 0x001a, 0x001a, 0x7193, 0x001a, 0x001a, 0x91ee, 0x001a, 0x001a, 0x001a, 0x92ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcfe6, 0xd0e6, 0x778d, 0xcee6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd1e6, 0xd2e6, 0x001a, 0xd4e6, 0xa191, 0x001a, 0xd3e6, 0xe48a, 0x001a, 0xd6e6, 0x001a, 0xd5e6, 0xd7e6, 0x001a, 0x93ee, 0xd9e6, 0xdbe6, 0x001a, 0xdce6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd490, 0x001a, 0xcd8e, 0xdde6, 0x001a, 0x001a, 0x001a, 0x718a, 0x001a, 0xdee6, 0x001a, 0x001a, 0x9691, 0xdfe6, 0x001a, 0xe0e6, 0x8b95, 0x001a, 0x94ee, 0x4e8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1e6, 0x001a, 0x001a, 0x001a, 0xb492, 0x001a, 0x001a, 0x001a, 0x001a, 0x7a89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe2e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xef8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x9690, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xab91, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e6, 0x001a, 0x001a, 0x001a, 0xe4e6, 0x001a, 0x001a, 0x001a, 0xe3e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebe6, 0xe9e6, 0x001a, 0x001a, 0xe6e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe8e6, 0x001a, 0x001a, 0x001a, 0xe7e6, 0xeae6, 0x001a, 0x978b, 0x001a, 0xeee6, 0x001a, 0xd590, 0x001a, 0xefe6, 0x001a, 0x001a, 0x001a, 0x001a, 0xd78c, 0x001a, 0xece6, 0xede6, 0x001a, 0x001a, 0x001a, 0x4898, 0x001a, 0x001a, 0x001a, 0xb592, 0x001a, 0x4891, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf0e6, 0x001a, 0x001a, 0xf3e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf1e6, 0xf2e6, 0x7897, 0x001a, 0x001a, 0x001a, 0x001a, 0xa593, 0xf6e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e6, 0xf5e6, 0xf7e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x48e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfae6, 0x001a, 0x001a, 0x001a, 0xfbe6, 0xf9e6, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf8e6, 0x001a, 0xfb92, 0x001a, 0x001a, 0x40e7, 0x44e7, 0x41e7, 0xfce6, 0x001a, 0x42e7, 0x001a, 0x001a, 0x001a, 0x43e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ae7, 0x001a, 0x001a, 0x001a, 0x45e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd690, 0x47e7, 0x001a, 0x001a, 0x49e7, 0x46e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ce7, 0x001a, 0x528f, 0x001a, 0x4be7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4de7, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ee7, 0x001a, 0x001a, 0x51e7, 0x50e7, 0x001a, 0x4fe7, 0x001a, 0x001a, 0x53e7, 0x52e7, 0x001a, 0xf496, 0x001a, 0x001a, 0x001a, 0x55e7, 0x001a, 0x54e7, 0x56e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x57e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x59e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x58e7, 0x6790, 0x5ae7, 0x001a, 0x001a, 0xeb8b, 0x5be7, 0x5de7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ee7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5fe7, 0x5ce7, 0x001a, 0x60e7, 0x001a, 0xd48e, 0x61e7, 0x4f8b, 0x528c, 0x001a, 0x96ee, 0x001a, 0x001a, 0xac8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62e7, 0x001a, 0x001a, 0x001a, 0xee93, 0x001a, 0x001a, 0x5d93, 0x63e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x66e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb28e, 0x001a, 0x001a, 0x65e7, 0x64e7, 0x798c, 0x67e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x728a, 0x001a, 0x69e7, 0x001a, 0x001a, 0x001a, 0xda8d, 0x68e7, 0x001a, 0x71e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6be7, 0x6de7, 0xe395, 0x6ae7, 0x001a, 0x001a, 0x001a, 0x6ce7, 0x001a, 0x70e7, 0x6ee7, 0x508b, 0x001a, 0x6fe7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x72e7, 0x001a, 0x001a, 0x7994, 0xd697, 0x001a, 0x001a, 0x001a, 0x001a, 0x538f, 0x001a, 0x001a, 0x001a, 0x73e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x4197, 0x75e7, 0x001a, 0x74e7, 0x001a, 0x001a, 0x78e7, 0x6097, 0x001a, 0x001a, 0x77e7, 0x001a, 0x8d8a, 0x76e7, 0x7be7, 0x001a, 0x001a, 0x7ae7, 0x001a, 0x001a, 0x79e7, 0x5193, 0x7ce7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7de7, 0x001a, 0x001a, 0x001a, 0x001a, 0x7ee7, 0x001a, 0x001a, 0x8c8d, 0x001a, 0x448c, 0x80e7, 0x81e7, 0x82e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6890, 0x83e7, 0x001a, 0xab8e, 0x84e7, 0x001a, 0x001a, 0x001a, 0x85e7, 0x001a, 0x001a, 0x001a, 0x9f99, 0x9e99, 0x001a, 0x001a, 0x001a, 0x001a, 0x86e7, 0x90e3, 0x87e7, 0x4392, 0x4a90, 0x5f94, 0x001a, 0x001a, 0x001a, 0x001a, 0x88e7, 0x001a, 0x001a, 0xd395, 0xd292, 0x9e8d, 0x001a, 0x001a, 0x4892, 0x001a, 0x001a, 0x4989, 0x001a, 0x9896, 0x7690, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7d8c, 0x001a, 0x001a, 0xdf8b, 0x001a, 0x001a, 0xd495, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x89e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8be7, 0x001a, 0x001a, 0x8ae7, 0xde89, 0x001a, 0x001a, 0xf493, 0x8ce7, 0x9794, 0x001a, 0x5293, 0x001a, 0x8de7, 0x718f, 0x001a, 0x001a, 0x001a, 0x8fe7, 0x001a, 0x001a, 0xc096, 0x9ee7, 0x91e7, 0x92e7, 0x001a, 0x001a, 0xc792, 0x001a, 0x001a, 0xde91, 0x9791, 0x001a, 0xa693, 0x001a, 0x90e7, 0x748b, 0x001a, 0x001a, 0x001a, 0x001a, 0x99e7, 0x001a, 0x96e7, 0xa3e7, 0xa793, 0x8092, 0x93e7, 0x001a, 0xfc92, 0x7293, 0x94e7, 0x98e7, 0x8090, 0x001a, 0x8794, 0xca92, 0x001a, 0x001a, 0xc090, 0x97e7, 0xac91, 0xa291, 0x95e7, 0xa788, 0x4198, 0x001a, 0x001a, 0x001a, 0x9ae7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf91, 0x001a, 0x001a, 0x548f, 0x6990, 0x001a, 0x001a, 0x9ce7, 0x9be7, 0x001a, 0xed88, 0x9de7, 0x001a, 0x001a, 0x4e95, 0x001a, 0xa5e7, 0x001a, 0x001a, 0xd993, 0x8b90, 0x001a, 0x001a, 0x7892, 0x001a, 0xf68b, 0x001a, 0xa4e7, 0x5697, 0x5e89, 0x001a, 0xd595, 0xdf89, 0x9fe7, 0xa0e7, 0xa1e7, 0xa2e7, 0xb993, 0x4292, 0xe188, 0xa6e7, 0x001a, 0xa7e7, 0xa1ea, 0x001a, 0x001a, 0xbb91, 0x001a, 0xa8e7, 0x001a, 0x9389, 0x6b91, 0x001a, 0xad8c, 0x001a, 0x7997, 0x001a, 0x99ee, 0xa9e7, 0x4b93, 0x001a, 0x001a, 0x001a, 0x9891, 0xd58e, 0xaae7, 0x001a, 0x001a, 0xade7, 0x001a, 0x001a, 0x858f, 0xabe7, 0x4a91, 0x4991, 0x001a, 0xe288, 0x001a, 0xc997, 0xafe7, 0x001a, 0xf094, 0xb1e7, 0xb0e7, 0xaee7, 0x84e2, 0xd28a, 0x001a, 0x001a, 0x8ee7, 0x001a, 0xb3e7, 0xb2e7, 0x001a, 0x001a, 0x001a, 0x001a, 0xb4e7, 0x001a, 0x5797, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdf93, 0x001a, 0x001a, 0x4d96, 0x001a, 0xb5e7, 0x001a, 0xd78e, 0x001a, 0x001a, 0x001a, 0x001a, 0xb6e7, 0x001a, 0xb7e7, 0x001a, 0x001a, 0x001a, 0xb8e7, 0x001a, 0x001a, 0x4093, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe888, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x788d, 0x001a, 0x001a, 0x001a, 0x5998, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbce7, 0x001a, 0x001a, 0x9aee, 0x001a, 0x001a, 0x538c, 0xb9e7, 0x001a, 0xbae7, 0x001a, 0x001a, 0x001a, 0x9495, 0x001a, 0x001a, 0x001a, 0x001a, 0x738a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5897, 0x001a, 0xbd8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7393, 0x001a, 0x001a, 0x001a, 0x001a, 0xbde7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbee7, 0x001a, 0x001a, 0x9cee, 0x001a, 0x001a, 0x001a, 0xbfe7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9dee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4193, 0x001a, 0x001a, 0xc1e7, 0x001a, 0xc0e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd193, 0xc2e7, 0x558f, 0xde8e, 0x7a94, 0x9192, 0x001a, 0x001a, 0x001a, 0xf08e, 0x001a, 0x8c90, 0x001a, 0xc3e7, 0x001a, 0xc4e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7c90, 0xc5e7, 0x001a, 0xc6e7, 0x001a, 0x001a, 0x001a, 0xc7e7, 0x8f97, 0x001a, 0x568f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9e7, 0xc8e7, 0x001a, 0x798d, 0x001a, 0x938d, 0x5f8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcce7, 0x001a, 0x001a, 0x001a, 0x001a, 0x868f, 0x001a, 0xcbe7, 0x001a, 0xcae7, 0x001a, 0xe791, 0x001a, 0x001a, 0xed8c, 0x001a, 0xc190, 0x001a, 0x001a, 0x001a, 0x001a, 0xae94, 0x001a, 0x001a, 0x001a, 0x001a, 0x588f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcde7, 0x001a, 0xdd8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0e7, 0xcee7, 0x001a, 0x001a, 0x001a, 0xcfe7, 0x001a, 0x001a, 0x001a, 0x001a, 0xd2e7, 0xd1e7, 0x001a, 0x001a, 0xf88f, 0x001a, 0xd3e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd4e7, 0xd5e7, 0x001a, 0x001a, 0x001a, 0x001a, 0xce94, 0xd18d, 0xdf8e, 0xd6e7, 0x001a, 0xd7e7, 0xa297, 0x648f, 0xec96, 0xca97, 0xd8e7, 0xe08b, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9e7, 0x9fee, 0x4293, 0x001a, 0x9eee, 0xdce7, 0x988a, 0x6a90, 0xa0ee, 0xdae7, 0x001a, 0xdbe7, 0x001a, 0xde92, 0xa3ee, 0xa4ee, 0x7496, 0xfa8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1ee, 0xa2ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdee7, 0xdfe7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde7, 0x001a, 0x001a, 0xe1e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa5ee, 0x001a, 0x001a, 0x001a, 0xa7ee, 0x001a, 0x001a, 0xdd93, 0x628a, 0x001a, 0xa6ee, 0xe5e7, 0x001a, 0x001a, 0xe2e7, 0xe4e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe0e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ee8, 0x001a, 0x001a, 0xe3e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe997, 0x001a, 0x001a, 0xd88c, 0x001a, 0xaeee, 0xa8ee, 0x001a, 0xaaee, 0x001a, 0x001a, 0xede7, 0xa9ee, 0x001a, 0x001a, 0x001a, 0x5393, 0xe8e7, 0x001a, 0x001a, 0xebe7, 0xe9e7, 0x001a, 0xeee7, 0x001a, 0x001a, 0xabee, 0x001a, 0xefe7, 0xadee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7e7, 0x001a, 0xacee, 0xf4e7, 0x9489, 0x001a, 0x001a, 0xe6e7, 0x001a, 0x001a, 0x001a, 0xab94, 0x001a, 0xeae7, 0x001a, 0xde8f, 0xafee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7a8d, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1ee, 0xb2ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6796, 0x001a, 0xe28b, 0x001a, 0x001a, 0x658f, 0x001a, 0xba93, 0x001a, 0x001a, 0x43ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4c91, 0x001a, 0xf2e7, 0x001a, 0xece7, 0xf1e7, 0x001a, 0xc196, 0x001a, 0xb692, 0xf3e7, 0xf0e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb0ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4b91, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7e7, 0x001a, 0xf6e7, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf5e7, 0xb6ee, 0x001a, 0x4e96, 0xbaee, 0x001a, 0xb8ee, 0x001a, 0xb4ee, 0x001a, 0xb5ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb9ee, 0x001a, 0x001a, 0x001a, 0x9b8f, 0x001a, 0x001a, 0xb3ee, 0x001a, 0xf8e7, 0xdd95, 0x001a, 0x001a, 0x7389, 0x001a, 0x001a, 0x001a, 0x001a, 0x6595, 0x9292, 0x001a, 0x001a, 0x001a, 0x001a, 0x988b, 0x49ed, 0xfae7, 0xbdee, 0x7c8d, 0x001a, 0x001a, 0xc0ee, 0x001a, 0x001a, 0xc2ee, 0x001a, 0x001a, 0x001a, 0x4b8e, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9e7, 0x8d90, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8e90, 0x40e8, 0x42e8, 0x001a, 0x001a, 0xc1ee, 0xbfee, 0x001a, 0xf98f, 0xbcee, 0x41e8, 0x43e8, 0x001a, 0xbbee, 0xd18b, 0x001a, 0x6495, 0x001a, 0x001a, 0xe08e, 0x4298, 0x001a, 0xfce7, 0xf68d, 0x001a, 0x001a, 0x5e98, 0x001a, 0x001a, 0x45e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x44e8, 0x46e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xfbe7, 0x001a, 0x001a, 0x001a, 0x42ed, 0x001a, 0x001a, 0xe793, 0x001a, 0x7493, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd592, 0x001a, 0x4be8, 0xc4ee, 0x001a, 0x001a, 0x001a, 0x6292, 0x47e8, 0x001a, 0x001a, 0x001a, 0x48e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4c8c, 0x001a, 0x4ae8, 0x001a, 0xc3ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xae8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x49e8, 0x001a, 0xdf8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x998a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4fe8, 0x001a, 0xbd8d, 0x9991, 0x001a, 0x001a, 0xc892, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5ee, 0x001a, 0x001a, 0x5a8a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4de8, 0x4ee8, 0xc192, 0x001a, 0x4ce8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x50e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56e8, 0x001a, 0x001a, 0xc6ee, 0x001a, 0x59e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x58e8, 0x4c93, 0x001a, 0x001a, 0x001a, 0x001a, 0x51e8, 0x52e8, 0x55e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x57e8, 0xc7ee, 0x001a, 0x001a, 0xbe8b, 0x001a, 0x001a, 0x5ae8, 0x54e8, 0x001a, 0x001a, 0x53e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc8ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5ee8, 0x001a, 0x001a, 0x001a, 0x5fe8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x60e8, 0x001a, 0x001a, 0x5de8, 0x5ce8, 0x001a, 0x001a, 0x001a, 0xe08f, 0xa893, 0x5be8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x64e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc9ee, 0x001a, 0x001a, 0x001a, 0x63e8, 0x61e8, 0x001a, 0xf691, 0x001a, 0x65e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x66e8, 0x001a, 0x001a, 0x68e8, 0xcaee, 0x001a, 0x001a, 0xcbee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd38a, 0x67e8, 0xf896, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73e8, 0x69e8, 0x001a, 0x001a, 0x6ce8, 0x001a, 0x6ae8, 0x001a, 0x6be8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6de8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6fe8, 0x001a, 0x001a, 0x001a, 0x001a, 0x70e8, 0x001a, 0x71e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x74e8, 0x72e8, 0x75e8, 0x77e8, 0x001a, 0x76e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb792, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe596, 0x001a, 0x78e8, 0x4d91, 0x001a, 0x001a, 0x001a, 0x79e8, 0x001a, 0xc295, 0x7ae8, 0x4a8a, 0x001a, 0x001a, 0x001a, 0x5b89, 0x001a, 0xd58a, 0xccee, 0xd48a, 0x7be8, 0x001a, 0x7ce8, 0x001a, 0x7de8, 0x7ee8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x80e8, 0x001a, 0xd68a, 0x748a, 0x7d8d, 0xb494, 0x001a, 0x82e8, 0x81e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x83e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x7b89, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x86e8, 0x001a, 0x85e8, 0x84e8, 0x001a, 0x87e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x8ae8, 0x001a, 0x001a, 0x001a, 0xc588, 0x001a, 0x001a, 0x88e8, 0x001a, 0x8ce8, 0x8be8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8ee8, 0x8de8, 0x8fe8, 0x001a, 0xac93, 0x001a, 0x001a, 0x001a, 0x90e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x91e8, 0x93e8, 0x001a, 0x001a, 0x92e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8c95, 0x001a, 0x001a, 0x001a, 0x001a, 0x94e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x95e8, 0x001a, 0xe38d, 0x001a, 0x001a, 0x001a, 0x96e8, 0x97e8, 0x001a, 0x001a, 0x6896, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6a91, 0x001a, 0x001a, 0x001a, 0xa288, 0xc991, 0x001a, 0x98e8, 0x001a, 0x8d95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9be8, 0x99e8, 0x7e8d, 0x001a, 0x9ae8, 0xc08c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc395, 0x9de8, 0x9fe8, 0x9ee8, 0xa0e8, 0x001a, 0x001a, 0x4089, 0x7790, 0x9c8f, 0xd78a, 0xa1e8, 0x001a, 0x001a, 0x001a, 0x8694, 0x001a, 0xa3e8, 0x001a, 0x001a, 0x001a, 0x4189, 0x001a, 0xa2e8, 0xc292, 0x001a, 0xcb97, 0xa993, 0x9ce8, 0xa497, 0x001a, 0xaf8c, 0x001a, 0x001a, 0x7a97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf78b, 0xb297, 0x001a, 0x478c, 0x001a, 0xe091, 0x40e4, 0x001a, 0xa4e8, 0x4b8a, 0x8f90, 0x001a, 0x001a, 0x001a, 0x001a, 0x758a, 0xa6e8, 0x001a, 0xa7e8, 0xa5e8, 0x848c, 0x001a, 0xdb8d, 0xe18f, 0xcfee, 0x001a, 0x001a, 0x4289, 0x001a, 0x001a, 0xd797, 0x001a, 0x001a, 0x001a, 0xa9e8, 0xace7, 0x001a, 0xa8e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xd0ee, 0xace8, 0xaae8, 0xabe8, 0x001a, 0xade8, 0x001a, 0xaee8, 0xea97, 0xafe8, 0xb0e8, 0x001a, 0xc790, 0xb994, 0x001a, 0x001a, 0x001a, 0x9d90, 0xe58a, 0x001a, 0x001a, 0x5997, 0xeb89, 0x578f, 0xd98c, 0x001a, 0xb3e8, 0x001a, 0xb2e8, 0x938e, 0xb4e8, 0xb1e8, 0x001a, 0x001a, 0x478e, 0x001a, 0x001a, 0x001a, 0xb8e8, 0xabe5, 0x001a, 0x001a, 0xd499, 0x001a, 0x9790, 0xb6e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa397, 0xef93, 0x001a, 0x001a, 0x001a, 0x001a, 0x4a89, 0x001a, 0xe190, 0xb48e, 0x001a, 0x001a, 0x001a, 0x001a, 0xb595, 0x001a, 0x5f89, 0x001a, 0x001a, 0x001a, 0xeb97, 0x8b97, 0x001a, 0xb9e8, 0x001a, 0x6493, 0x001a, 0x001a, 0x001a, 0x001a, 0xf98e, 0x001a, 0x001a, 0x001a, 0xbae8, 0x001a, 0xbbe8, 0x6b90, 0xbce8, 0x001a, 0xec97, 0x001a, 0x001a, 0xb7e8, 0xbee8, 0xc0e8, 0x001a, 0xbfe8, 0x001a, 0xbde8, 0x001a, 0x001a, 0xc1e8, 0x001a, 0x001a, 0xc2e8, 0x001a, 0x001a, 0x9a91, 0x001a, 0xe089, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3e8, 0x001a, 0x001a, 0xb696, 0x001a, 0x001a, 0xc4e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc5e8, 0x001a, 0x4998, 0xd1ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x509e, 0xc6e8, 0x001a, 0xd2ee, 0x001a, 0xc7e8, 0xc8e8, 0x001a, 0x001a, 0x001a, 0xcce8, 0xd3ee, 0xc9e8, 0x001a, 0xcae8, 0x001a, 0xcbe8, 0xcde8, 0x001a, 0x001a, 0x001a, 0xd4ee, 0x001a, 0xd5ee, 0x001a, 0xd6ee, 0xc290, 0x001a, 0x001a, 0xd7ee, 0xf596, 0x001a, 0x001a, 0xc390, 0x001a, 0x001a, 0xcee8, 0x001a, 0xf194, 0x001a, 0xcfe8, 0x72ea, 0xca96, 0x001a, 0xd0e8, 0x001a, 0xd1e8, 0x001a, 0xd2e8, 0x768a, 0x001a, 0xd4e8, 0x001a, 0x7890, 0x001a, 0x001a, 0x001a, 0xd5e8, 0x001a, 0x001a, 0x438c, 0x001a, 0x001a, 0x001a, 0x001a, 0xd6e8, 0xdae8, 0x001a, 0xd8e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9e8, 0x001a, 0x001a, 0x938a, 0xd7e8, 0xdbe8, 0x001a, 0x001a, 0x001a, 0x001a, 0xdce8, 0x001a, 0xc688, 0x001a, 0xdde8, 0xdee8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe28f, 0x001a, 0x001a, 0x001a, 0xdfe8, 0x001a, 0x001a, 0x001a, 0x668b, 0x001a, 0x001a, 0xe2e8, 0x001a, 0x001a, 0xe1e8, 0x001a, 0xe0e8, 0x001a, 0x001a, 0x91e6, 0x001a, 0xda95, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe3e8, 0xe4e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e8, 0x001a, 0x001a, 0xe6e8, 0x001a, 0xe7e8, 0x001a, 0x001a, 0xe8e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd88a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeae8, 0x4294, 0x001a, 0x001a, 0x001a, 0xece8, 0xb989, 0x001a, 0xefe8, 0xeee8, 0x001a, 0x001a, 0x001a, 0x001a, 0x4389, 0x001a, 0x001a, 0x001a, 0xbf8b, 0x001a, 0xc595, 0xb892, 0xa08d, 0x001a, 0x808d, 0x878f, 0x001a, 0x7b90, 0x001a, 0x001a, 0x001a, 0xf1e8, 0x001a, 0x001a, 0xf0e8, 0x6197, 0xe68a, 0xd094, 0xda93, 0x001a, 0x001a, 0x001a, 0x9c90, 0xcc97, 0x001a, 0x7a8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf4e8, 0x001a, 0x001a, 0xf3e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6a96, 0xaa93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6f89, 0x001a, 0x001a, 0xf5e8, 0xf2e8, 0x001a, 0x001a, 0x7095, 0x8a97, 0xf6e8, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf7e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xf9e8, 0xe891, 0x7a8a, 0x7b8a, 0xf8e8, 0x001a, 0x001a, 0x001a, 0x001a, 0xe78a, 0xb08c, 0x001a, 0xd8ee, 0xe88a, 0x001a, 0x001a, 0x5e93, 0x001a, 0x001a, 0xde97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xd9ee, 0x001a, 0xda8c, 0x001a, 0x001a, 0x001a, 0xfae8, 0x001a, 0x001a, 0x001a, 0xfbe8, 0xfce8, 0x40e9, 0x001a, 0x42e9, 0x41e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9795, 0x001a, 0x43e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x44e9, 0x001a, 0x45e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x46e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x48e9, 0x47e9, 0x001a, 0x49e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf294, 0xcae3, 0x001a, 0x001a, 0x4890, 0x001a, 0x001a, 0x518b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ae9, 0x001a, 0x4be9, 0x001a, 0xaa99, 0x5a9f, 0xd194, 0x001a, 0x001a, 0xf988, 0x001a, 0xb988, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x948e, 0x4f96, 0xfc8f, 0x001a, 0x001a, 0x001a, 0x001a, 0x4ce9, 0x001a, 0xdd96, 0x001a, 0x001a, 0x001a, 0x4de9, 0x7b97, 0x001a, 0x6189, 0x001a, 0x001a, 0x001a, 0x608e, 0x001a, 0x4ee9, 0xec89, 0x4fe9, 0x001a, 0x001a, 0x001a, 0x50e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x52e9, 0x53e9, 0x001a, 0x55e9, 0x51e9, 0x001a, 0x001a, 0x54e9, 0x001a, 0x001a, 0xdcee, 0xd98a, 0x001a, 0x001a, 0x001a, 0x56e9, 0x001a, 0x57e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x58e9, 0x59e9, 0x001a, 0x001a, 0x001a, 0x5ae9, 0x001a, 0x001a, 0x5ce9, 0x001a, 0x001a, 0x001a, 0x5be9, 0x001a, 0x5ee9, 0x61e9, 0x001a, 0x001a, 0x001a, 0x5de9, 0x5fe9, 0x60e9, 0x001a, 0x001a, 0x62e9, 0x001a, 0xc08b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf18e, 0x63e9, 0x64e9, 0x818d, 0x001a, 0x001a, 0x001a, 0x001a, 0xdeee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x65e9, 0x001a, 0x001a, 0x5d8a, 0x001a, 0x001a, 0x001a, 0x6e94, 0x66e9, 0x67e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x7992, 0xe993, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x68e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x9d94, 0x001a, 0x001a, 0xca91, 0x7789, 0xec8b, 0x001a, 0xed8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9392, 0x6de9, 0xee8b, 0x001a, 0x001a, 0xed89, 0x001a, 0x001a, 0x6ce9, 0x001a, 0x001a, 0x6ae9, 0x001a, 0x6be9, 0x001a, 0x69e9, 0x001a, 0x001a, 0x77e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6ee9, 0x6fe9, 0x001a, 0x001a, 0x70e9, 0x71e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73e9, 0x001a, 0x001a, 0x72e9, 0x001a, 0x001a, 0x001a, 0x788f, 0x001a, 0x74e9, 0x001a, 0x001a, 0x001a, 0x76e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x528b, 0x75e9, 0x001a, 0x001a, 0x9b91, 0xb18c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x78e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcb91, 0x001a, 0x001a, 0x79e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xab93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7ae9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x80e9, 0x001a, 0x7de9, 0x001a, 0x7ce9, 0x7ee9, 0x001a, 0x7be9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x82e9, 0xdfee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x81e9, 0x001a, 0x84e9, 0x001a, 0x001a, 0xc18b, 0x83e9, 0x001a, 0x001a, 0x001a, 0x85e9, 0x001a, 0x001a, 0x86e9, 0x001a, 0x88e9, 0x87e9, 0x001a, 0x001a, 0x001a, 0x89e9, 0x8be9, 0x8ae9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9c8d, 0x001a, 0x001a, 0x001a, 0x001a, 0x8ce9, 0x001a, 0x001a, 0x8de9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5b8a, 0x001a, 0x001a, 0x001a, 0x8ee9, 0x001a, 0x001a, 0x001a, 0x8fe9, 0x001a, 0x001a, 0x001a, 0x9190, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x90e9, 0x001a, 0x91e9, 0x001a, 0x92e9, 0x93e9, 0x001a, 0x001a, 0x001a, 0x828d, 0xe0ee, 0x001a, 0x001a, 0xe1ee, 0x001a, 0x94e9, 0x95e9, 0x001a, 0x001a, 0x96e9, 0x97e9, 0x001a, 0x001a, 0x98e9, 0x001a, 0x001a, 0x001a, 0xaf94, 0x9ae9, 0x001a, 0x4595, 0x9be9, 0x99e9, 0x001a, 0x9de9, 0x001a, 0x001a, 0x9ce9, 0x001a, 0x001a, 0x9ee9, 0x001a, 0x001a, 0x001a, 0x9fe9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa0e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xa1e9, 0x001a, 0xa2e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xa3e9, 0x001a, 0x001a, 0xa4e9, 0xa5e9, 0x001a, 0xa6e9, 0x001a, 0xa7e9, 0xa8e9, 0xa9e9, 0xaae9, 0x001a, 0x001a, 0x001a, 0xabe9, 0xace9, 0x001a, 0x549f, 0xade9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xf6e2, 0x538b, 0x001a, 0x001a, 0x001a, 0x001a, 0x408a, 0xb08d, 0xafe9, 0xaee9, 0xa396, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb1e9, 0xb2e9, 0xb0e9, 0x001a, 0xb3e9, 0x001a, 0x001a, 0x8296, 0x001a, 0x001a, 0x001a, 0xb4e9, 0x001a, 0x9b8b, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4498, 0x001a, 0x001a, 0xe3ee, 0x001a, 0xb5e9, 0xe2ee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb7e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbc88, 0xe4ee, 0x001a, 0xb8e9, 0xa995, 0xb6e9, 0x001a, 0x001a, 0xb9e9, 0xbae9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbbe9, 0xbce9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xbde9, 0x001a, 0x8e96, 0x4c8e, 0x001a, 0xf88d, 0x4e91, 0x001a, 0x001a, 0xe5ee, 0x001a, 0x001a, 0xbee9, 0x001a, 0x001a, 0x001a, 0x001a, 0xc1e9, 0x001a, 0xe6ee, 0x001a, 0x001a, 0x001a, 0x001a, 0xbfe9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc2e9, 0x001a, 0x001a, 0xef8c, 0xc0e9, 0x001a, 0x001a, 0x001a, 0x001a, 0xc3e9, 0x001a, 0xc4e9, 0xc5e9, 0x001a, 0xc9e9, 0x001a, 0x498e, 0x001a, 0x001a, 0x001a, 0x001a, 0xe291, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcae9, 0xc7e9, 0xc6e9, 0xc8e9, 0x001a, 0x001a, 0x001a, 0x7e8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcee9, 0xcde9, 0xcce9, 0x001a, 0x001a, 0xb188, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe7ee, 0x001a, 0x001a, 0x001a, 0xd8e9, 0x001a, 0xd4e9, 0x001a, 0xd5e9, 0xd1e9, 0xd7e9, 0x001a, 0xd3e9, 0x828a, 0x001a, 0x001a, 0x6b98, 0x001a, 0xd6e9, 0xd2e9, 0xd0e9, 0xcfe9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdae9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xdde9, 0x001a, 0x001a, 0xdce9, 0xdbe9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6895, 0xd9e9, 0xf188, 0xdee9, 0x001a, 0xe0e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8f8a, 0xcbe9, 0x5689, 0x001a, 0x001a, 0xe2e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe1e9, 0xdfe9, 0x4c92, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9096, 0x001a, 0x001a, 0x001a, 0x001a, 0xd897, 0x001a, 0x001a, 0xe3e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe4e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe5e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe6e9, 0x001a, 0xe7e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb992, 0x001a, 0xe8e9, 0x001a, 0xb594, 0x001a, 0xede9, 0xe9e9, 0x001a, 0x001a, 0x001a, 0xeae9, 0x001a, 0x001a, 0x5096, 0xc296, 0x001a, 0xce93, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xeee9, 0x001a, 0x001a, 0xefe9, 0xbc93, 0xece9, 0xebe9, 0x001a, 0x001a, 0x001a, 0x001a, 0xa889, 0x001a, 0x001a, 0x001a, 0xf7e9, 0x001a, 0x001a, 0xf6e9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9589, 0x001a, 0x001a, 0x001a, 0xf4e9, 0x001a, 0x001a, 0x001a, 0xf3e9, 0x001a, 0x001a, 0xf1e9, 0x001a, 0x9b8a, 0x001a, 0xf0e9, 0xb08e, 0xa789, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x838d, 0x001a, 0x001a, 0xfae9, 0xf9e9, 0x001a, 0xf8e9, 0x001a, 0x001a, 0xf5e9, 0x001a, 0xfbe9, 0x001a, 0xfce9, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x44ea, 0x43ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x45ea, 0x001a, 0x001a, 0x4c89, 0x40ea, 0x41ea, 0x001a, 0x948d, 0xb796, 0x001a, 0x001a, 0x42ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xe9ee, 0x5196, 0x001a, 0x001a, 0x4aea, 0xe8ee, 0x001a, 0x46ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4bea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x48ea, 0x001a, 0x47ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7b8c, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4cea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4dea, 0x001a, 0x001a, 0x001a, 0x001a, 0x4eea, 0x001a, 0x49ea, 0x001a, 0x001a, 0x001a, 0xf2e9, 0x001a, 0x001a, 0x4fea, 0x001a, 0xdf92, 0x001a, 0x001a, 0x001a, 0x53ea, 0x001a, 0x54ea, 0x52ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x51ea, 0x57ea, 0x001a, 0x50ea, 0x001a, 0x55ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x56ea, 0x001a, 0x001a, 0x001a, 0x59ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x58ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5bea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5cea, 0x001a, 0x5dea, 0x001a, 0x001a, 0x6898, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x5aea, 0xe991, 0xeb8d, 0x001a, 0x001a, 0x5eea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xebee, 0x5fea, 0x60ea, 0x001a, 0x001a, 0x61ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x62ea, 0x001a, 0x001a, 0xb28c, 0x63ea, 0x001a, 0x001a, 0x001a, 0x64ea, 0x001a, 0xad8e, 0x001a, 0x65ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x66ea, 0x001a, 0x001a, 0x67ea, 0x68ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x6bea, 0x69ea, 0x5b98, 0x001a, 0x6aea, 0x001a, 0xed97, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6cea, 0x001a, 0xd997, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6dea, 0x9e94, 0x001a, 0x001a, 0x6eea, 0x70ea, 0x001a, 0x001a, 0x71ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6fea, 0x8d8d, 0xcb96, 0x8396, 0xf59b, 0x001a, 0x809f, 0x9b96, 0x001a, 0x001a, 0x001a, 0x001a, 0xa989, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73ea, 0x6f8b, 0x74ea, 0x75ea, 0x76ea, 0xecee, 0x958d, 0x001a, 0x77ea, 0x001a, 0x001a, 0x001a, 0xd2e0, 0xd996, 0x001a, 0xe191, 0x78ea, 0x7aea, 0x79ea, 0x001a, 0x7bea, 0x001a, 0x001a, 0x001a, 0x001a, 0x7cea, 0x001a, 0x001a, 0x7dea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x7eea, 0x001a, 0x001a, 0x001a, 0x001a, 0x80ea, 0x001a, 0x81ea, 0x82ea, 0x001a, 0x83ea, 0x001a, 0x84ea, 0x85ea, 0x86ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x87ea, 0x88ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4393, 0x001a, 0x001a, 0x001a, 0x001a, 0xdb8c, 0x001a, 0x8aea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x6c91, 0x8bea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8cea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x4095, 0x001a, 0x001a, 0x8dea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x8eea, 0x56e2, 0x001a, 0x001a, 0xd8e6, 0xebe8, 0x001a, 0x001a, 0x8fea, 0x001a, 0x90ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x92ea, 0x93ea, 0x94ea, 0xee97, 0x91ea, 0x001a, 0x001a, 0x95ea, 0x96ea, 0x001a, 0x001a, 0x98ea, 0x001a, 0x97ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9aea, 0x001a, 0x001a, 0x001a, 0x9bea, 0x99ea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xb497, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9cea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9dea, 0x73e2, 0x001a, 0x001a, 0x9eea, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0xf900[ 320 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xc4ed, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0xcdee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x73ed, 0x7eed, 0x80ed, 0x95ed, 0xbced, 0xcced, 0xceed, 0xf9ed, 0x42ee, 0x59ee, 0x61ee, 0x62ee, 0x63ee, 0x65ee, 0x69ee, 0x6cee, 0x75ee, 0x81ee, 0x83ee, 0x84ee, 0x8dee, 0x95ee, 0x97ee, 0x98ee, 0x9bee, 0xb7ee, 0xbeee, 0xceee, 0xdaee, 0xdbee, 0xddee, 0xeaee, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0xff00[ 256 ] = { 0x001a, 0x4981, 0xfcee, 0x9481, 0x9081, 0x9381, 0x9581, 0xfbee, 0x6981, 0x6a81, 0x9681, 0x7b81, 0x4381, 0x7c81, 0x4481, 0x5e81, 0x4f82, 0x5082, 0x5182, 0x5282, 0x5382, 0x5482, 0x5582, 0x5682, 0x5782, 0x5882, 0x4681, 0x4781, 0x8381, 0x8181, 0x8481, 0x4881, 0x9781, 0x6082, 0x6182, 0x6282, 0x6382, 0x6482, 0x6582, 0x6682, 0x6782, 0x6882, 0x6982, 0x6a82, 0x6b82, 0x6c82, 0x6d82, 0x6e82, 0x6f82, 0x7082, 0x7182, 0x7282, 0x7382, 0x7482, 0x7582, 0x7682, 0x7782, 0x7882, 0x7982, 0x6d81, 0x5f81, 0x6e81, 0x4f81, 0x5181, 0x4d81, 0x8182, 0x8282, 0x8382, 0x8482, 0x8582, 0x8682, 0x8782, 0x8882, 0x8982, 0x8a82, 0x8b82, 0x8c82, 0x8d82, 0x8e82, 0x8f82, 0x9082, 0x9182, 0x9282, 0x9382, 0x9482, 0x9582, 0x9682, 0x9782, 0x9882, 0x9982, 0x9a82, 0x6f81, 0x6281, 0x7081, 0x6081, 0x001a, 0x001a, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7, 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x9181, 0x9281, 0xca81, 0x5081, 0xfaee, 0x8f81, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; /* Determines the size of a byte stream character from an Unicode character * Adds the size to the byte stream character size value * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_932_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_932_unicode_character_size_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream character size.", function ); return( -1 ); } if( unicode_character < 0x0080 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x0380 ) && ( unicode_character < 0x0480 ) ) { unicode_character -= 0x0380; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x0380[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2340 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x2440 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2440; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x2440[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3100 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x3200 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3200; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x3200[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fc0 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xf900 ) && ( unicode_character < 0xfa40 ) ) { unicode_character -= 0xf900; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0xf900[ unicode_character ]; } else if( ( unicode_character >= 0xff00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xff00; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0xff00[ unicode_character ]; } byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_character_size += 2; } else { *byte_stream_character_size += 1; } return( 1 ); } /* Copies an Unicode character from a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_932_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_932_copy_from_byte_stream"; uint8_t additional_character = 0; uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Unicode character.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } byte_stream_character = byte_stream[ *byte_stream_index ]; if( byte_stream_character < 0x80 ) { *unicode_character = byte_stream_character; } else if( ( byte_stream_character >= 0xa1 ) && ( byte_stream_character < 0xe0 ) ) { *unicode_character = 0xff61 + byte_stream_character - 0xa1; } else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) { *byte_stream_index += 1; additional_character = byte_stream[ *byte_stream_index ]; if( byte_stream_character == 0x81 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xad ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8140[ additional_character ]; } else if( ( additional_character >= 0xb8 ) && ( additional_character < 0xc0 ) ) { additional_character -= 0xb8; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81b8[ additional_character ]; } else if( ( additional_character >= 0xc8 ) && ( additional_character < 0xcf ) ) { additional_character -= 0xc8; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81c8[ additional_character ]; } else if( ( additional_character >= 0xda ) && ( additional_character < 0xe9 ) ) { additional_character -= 0xda; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81da[ additional_character ]; } else if( ( additional_character >= 0xf0 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0xf0; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81f0[ additional_character ]; } else if( additional_character == 0xfc ) { *unicode_character = 0x25ef; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0x82 ) { if( ( additional_character >= 0x4f ) && ( additional_character < 0x59 ) ) { *unicode_character = 0xff10 - 0x4f + additional_character; } else if( ( additional_character >= 0x60 ) && ( additional_character < 0x7a ) ) { *unicode_character = 0xff21 - 0x60 + additional_character; } else if( ( additional_character >= 0x81 ) && ( additional_character < 0x9b ) ) { *unicode_character = 0xff41 - 0x81 + additional_character; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xf2 ) ) { *unicode_character = 0x3041 - 0x9f + additional_character; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0x83 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x7f ) ) { *unicode_character = 0x30a1 - 0x40 + additional_character; } else if( ( additional_character >= 0x80 ) && ( additional_character < 0x97 ) ) { *unicode_character = 0x30e0 - 0x80 + additional_character; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xb0 ) ) { *unicode_character = 0x0391 - 0x9f + additional_character; } else if( ( additional_character >= 0xb0 ) && ( additional_character < 0xb7 ) ) { *unicode_character = 0x03a3 - 0xb0 + additional_character; } else if( ( additional_character >= 0xbf ) && ( additional_character < 0xd0 ) ) { *unicode_character = 0x03b1 - 0xbf + additional_character; } else if( ( additional_character >= 0xd0 ) && ( additional_character < 0xd7 ) ) { *unicode_character = 0x03c3 - 0xd0 + additional_character; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0x84 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x61 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8440[ additional_character ]; } else if( ( additional_character >= 0x70 ) && ( additional_character < 0x7f ) ) { additional_character -= 0x70; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8470[ additional_character ]; } else if( ( additional_character >= 0x80 ) && ( additional_character < 0x92 ) ) { *unicode_character = 0x043e - 0x80 + additional_character; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xbf ) ) { additional_character -= 0x9f; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x849f[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0x87 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x54 ) ) { *unicode_character = 0x2460 - 0x40 + additional_character; } else if( ( additional_character >= 0x54 ) && ( additional_character < 0x5e ) ) { *unicode_character = 0x2160 - 0x54 + additional_character; } else if( ( additional_character >= 0x5f ) && ( additional_character < 0x76 ) ) { additional_character -= 0x5f; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x875f[ additional_character ]; } else if( additional_character == 0x7e ) { *unicode_character = 0x337b; } else if( ( additional_character >= 0x80 ) && ( additional_character < 0x9d ) ) { additional_character -= 0x80; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8780[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0x88 ) { if( ( additional_character >= 0x9f ) && ( additional_character < 0xfd ) ) { additional_character -= 0x9f; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x889f[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0x89 ) && ( byte_stream_character <= 0x97 ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xfd ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0x89: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8940[ additional_character ]; break; case 0x8a: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8a40[ additional_character ]; break; case 0x8b: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8b40[ additional_character ]; break; case 0x8c: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8c40[ additional_character ]; break; case 0x8d: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8d40[ additional_character ]; break; case 0x8e: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8e40[ additional_character ]; break; case 0x8f: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8f40[ additional_character ]; break; case 0x90: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9040[ additional_character ]; break; case 0x91: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9140[ additional_character ]; break; case 0x92: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9240[ additional_character ]; break; case 0x93: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9340[ additional_character ]; break; case 0x94: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9440[ additional_character ]; break; case 0x95: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9540[ additional_character ]; break; case 0x96: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9640[ additional_character ]; break; case 0x97: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9740[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0x98 ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x73 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9840[ additional_character ]; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xfd ) ) { additional_character -= 0x9f; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x989f[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0x99 ) && ( byte_stream_character <= 0x9f ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xfd ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0x99: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9940[ additional_character ]; break; case 0x9a: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9a40[ additional_character ]; break; case 0x9b: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9b40[ additional_character ]; break; case 0x9c: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9c40[ additional_character ]; break; case 0x9d: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9d40[ additional_character ]; break; case 0x9e: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9e40[ additional_character ]; break; case 0x9f: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9f40[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xe0 ) && ( byte_stream_character <= 0xe9 ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xfd ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xe0: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe040[ additional_character ]; break; case 0xe1: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe140[ additional_character ]; break; case 0xe2: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe240[ additional_character ]; break; case 0xe3: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe340[ additional_character ]; break; case 0xe4: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe440[ additional_character ]; break; case 0xe5: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe540[ additional_character ]; break; case 0xe6: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe640[ additional_character ]; break; case 0xe7: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe740[ additional_character ]; break; case 0xe8: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe840[ additional_character ]; break; case 0xe9: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe940[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xea ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xa5 ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xea40[ additional_character ]; } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xed ) && ( byte_stream_character <= 0xee ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xfd ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xed: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xed40[ additional_character ]; break; case 0xee: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xee40[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( ( byte_stream_character >= 0xfa ) && ( byte_stream_character <= 0xfb ) ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0xfd ) ) { additional_character -= 0x40; switch( byte_stream_character ) { case 0xfa: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfa40[ additional_character ]; break; case 0xfb: *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfb40[ additional_character ]; break; } } else { *unicode_character = 0xfffd; } } else if( byte_stream_character == 0xfc ) { if( ( additional_character >= 0x40 ) && ( additional_character < 0x4c ) ) { additional_character -= 0x40; *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfc40[ additional_character ]; } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } } else { *unicode_character = 0xfffd; } *byte_stream_index += 1; return( 1 ); } /* Copies an Unicode character to a byte stream * Returns 1 if successful or -1 on error */ int libuna_codepage_windows_932_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ) { static char *function = "libuna_codepage_windows_932_copy_to_byte_stream"; uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream too small.", function ); return( -1 ); } if( unicode_character < 0x0080 ) { byte_stream_value = (uint16_t) unicode_character; } else if( ( unicode_character >= 0x0080 ) && ( unicode_character < 0x0100 ) ) { unicode_character -= 0x0080; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x0080[ unicode_character ]; } else if( ( unicode_character >= 0x0380 ) && ( unicode_character < 0x0480 ) ) { unicode_character -= 0x0380; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x0380[ unicode_character ]; } else if( ( unicode_character >= 0x2000 ) && ( unicode_character < 0x2340 ) ) { unicode_character -= 0x2000; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x2000[ unicode_character ]; } else if( ( unicode_character >= 0x2440 ) && ( unicode_character < 0x2680 ) ) { unicode_character -= 0x2440; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x2440[ unicode_character ]; } else if( ( unicode_character >= 0x3000 ) && ( unicode_character < 0x3100 ) ) { unicode_character -= 0x3000; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x3000[ unicode_character ]; } else if( ( unicode_character >= 0x3200 ) && ( unicode_character < 0x3400 ) ) { unicode_character -= 0x3200; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x3200[ unicode_character ]; } else if( ( unicode_character >= 0x4e00 ) && ( unicode_character < 0x9fc0 ) ) { unicode_character -= 0x4e00; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0x4e00[ unicode_character ]; } else if( ( unicode_character >= 0xf900 ) && ( unicode_character < 0xfa40 ) ) { unicode_character -= 0xf900; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0xf900[ unicode_character ]; } else if( ( unicode_character >= 0xff00 ) && ( unicode_character < 0x10000 ) ) { unicode_character -= 0xff00; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0xff00[ unicode_character ]; } byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); byte_stream_value >>= 8; if( byte_stream_value != 0 ) { *byte_stream_index += 1; byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); } *byte_stream_index += 1; return( 1 ); } libfsapfs-20190210/libuna/libuna_utf8_stream.h0000664000175000017500000000566313430101233023241 0ustar00lordyestalordyesta00000000000000/* * UTF-8 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UTF8_STREAM_H ) #define _LIBUNA_UTF8_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_utf8_stream_copy_byte_order_mark( uint8_t *utf8_stream, size_t utf8_stream_size, size_t *utf8_stream_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_stream_copy_from_utf8( uint8_t *utf8_stream, size_t utf8_stream_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf8_stream_copy_to_utf8 is implemented by * libuna_utf8_string_copy_from_utf8_stream */ LIBUNA_EXTERN \ int libuna_utf8_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_stream_copy_from_utf16( uint8_t *utf8_stream, size_t utf8_stream_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf8_stream_copy_to_utf16 is implemented by * libuna_utf16_string_copy_from_utf8_stream */ LIBUNA_EXTERN \ int libuna_utf8_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf8_stream_copy_from_utf32( uint8_t *utf8_stream, size_t utf8_stream_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf8_stream_copy_to_utf32 is implemented by * libuna_utf32_string_copy_from_utf8_stream */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UTF8_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_url_stream.h0000664000175000017500000000361313430101233023146 0ustar00lordyestalordyesta00000000000000/* * Percent or URL encoded stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_URL_STREAM_H ) #define _LIBUNA_URL_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_url_stream_size_from_byte_stream( uint8_t *byte_stream, size_t byte_stream_size, size_t *url_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_url_stream_copy_from_byte_stream( uint8_t *url_stream, size_t url_stream_size, uint8_t *byte_stream, size_t byte_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_url_stream_size_to_byte_stream( uint8_t *url_stream, size_t url_stream_size, size_t *byte_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_url_stream_copy_to_byte_stream( uint8_t *url_stream, size_t url_stream_size, uint8_t *byte_stream, size_t byte_stream_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_URL_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_949.h0000664000175000017500000000354713430101233024725 0ustar00lordyestalordyesta00000000000000/* * Windows 949 codepage (Korean) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_949_H ) #define _LIBUNA_CODEPAGE_WINDOWS_949_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_codepage_windows_949_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_949_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_codepage_windows_949_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_949_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_8.c0000664000175000017500000000510713430101233024331 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-8 codepage (Hebrew) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_8.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-8 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_8_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0xfffd, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x00d7, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x00b9, 0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2017, 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5, 0x05d6, 0x05d7, 0x05d8, 0x05d9, 0x05da, 0x05db, 0x05dc, 0x05dd, 0x05de, 0x05df, 0x05e0, 0x05e1, 0x05e2, 0x05e3, 0x05e4, 0x05e5, 0x05e6, 0x05e7, 0x05e8, 0x05e9, 0x05ea, 0xfffd, 0xfffd, 0x200e, 0x200f, 0xfffd }; /* Unicode to ASCII character lookup table for ISO 8859-8 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x00a0[ 32 ] = { 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a }; const uint8_t libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x05d0[ 32 ] = { 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_types.h0000664000175000017500000000276313430101233022142 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_INTERNAL_TYPES_H ) #define _LIBUNA_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna * The definitions in are copied here * for local use of libuna */ #if defined( HAVE_LOCAL_LIBUNA ) /* Unicode character definitions */ typedef uint32_t libuna_unicode_character_t; /* UTF-8 character definitions */ typedef uint8_t libuna_utf8_character_t; /* UTF-16 character definitions */ typedef uint16_t libuna_utf16_character_t; /* UTF-32 character definitions */ typedef uint32_t libuna_utf32_character_t; #endif /* defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _LIBUNA_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1252.h0000664000175000017500000000253313430101233024763 0ustar00lordyestalordyesta00000000000000/* * Windows 1252 codepage (Western European/Latin 1) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1252_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1252_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ 24 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1252_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1250.c0000664000175000017500000001033513430101233024753 0ustar00lordyestalordyesta00000000000000/* * Windows 1250 codepage (Central European) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1250.h" /* Extended ASCII to Unicode character lookup table for Windows 1250 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x20ac, 0xfffd, 0x201a, 0xfffd, 0x201e, 0x2026, 0x2020, 0x2021, 0xfffd, 0x2030, 0x0160, 0x2039, 0x015a, 0x0164, 0x017d, 0x0179, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0xfffd, 0x2122, 0x0161, 0x203a, 0x015b, 0x0165, 0x017e, 0x017a, 0x00a0, 0x02c7, 0x02d8, 0x0141, 0x00a4, 0x0104, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x015e, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x017b, 0x00b0, 0x00b1, 0x02db, 0x0142, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x0105, 0x015f, 0x00bb, 0x013d, 0x02dd, 0x013e, 0x017c, 0x0154, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x0139, 0x0106, 0x00c7, 0x010c, 0x00c9, 0x0118, 0x00cb, 0x011a, 0x00cd, 0x00ce, 0x010e, 0x0110, 0x0143, 0x0147, 0x00d3, 0x00d4, 0x0150, 0x00d6, 0x00d7, 0x0158, 0x016e, 0x00da, 0x0170, 0x00dc, 0x00dd, 0x0162, 0x00df, 0x0155, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x013a, 0x0107, 0x00e7, 0x010d, 0x00e9, 0x0119, 0x00eb, 0x011b, 0x00ed, 0x00ee, 0x010f, 0x0111, 0x0144, 0x0148, 0x00f3, 0x00f4, 0x0151, 0x00f6, 0x00f7, 0x0159, 0x016f, 0x00fa, 0x0171, 0x00fc, 0x00fd, 0x0163, 0x02d9 }; /* Unicode to ASCII character lookup table for Windows 1250 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ 128 ] = { 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0xa6, 0xa7, 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, 0xb0, 0xb1, 0x1a, 0x1a, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc1, 0xc2, 0x1a, 0xc4, 0x1a, 0x1a, 0xc7, 0x1a, 0xc9, 0x1a, 0xcb, 0x1a, 0xcd, 0xce, 0x1a, 0x1a, 0x1a, 0x1a, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, 0x1a, 0x1a, 0xda, 0x1a, 0xdc, 0xdd, 0x1a, 0xdf, 0x1a, 0xe1, 0xe2, 0x1a, 0xe4, 0x1a, 0x1a, 0xe7, 0x1a, 0xe9, 0x1a, 0xeb, 0x1a, 0xed, 0xee, 0x1a, 0x1a, 0x1a, 0x1a, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, 0x1a, 0x1a, 0xfa, 0x1a, 0xfc, 0xfd, 0x1a, 0x1a, 0x1a, 0x1a, 0xc3, 0xe3, 0xa5, 0xb9, 0xc6, 0xe6, 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0xcf, 0xef, 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xca, 0xea, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ 72 ] = { 0x1a, 0xc5, 0xe5, 0x1a, 0x1a, 0xbc, 0xbe, 0x1a, 0x1a, 0xa3, 0xb3, 0xd1, 0xf1, 0x1a, 0x1a, 0xd2, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd5, 0xf5, 0x1a, 0x1a, 0xc0, 0xe0, 0x1a, 0x1a, 0xd8, 0xf8, 0x8c, 0x9c, 0x1a, 0x1a, 0xaa, 0xba, 0x8a, 0x9a, 0xde, 0xfe, 0x8d, 0x9d, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, 0xf9, 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x8f, 0x9f, 0xaf, 0xbf, 0x8e, 0x9e, 0x1a }; const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ 8 ] = { 0xa2, 0xff, 0x1a, 0xb2, 0x1a, 0xbd, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ 16 ] = { 0x89, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x8b, 0x9b, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_utf16_string.c0000664000175000017500000022620613430101233023324 0ustar00lordyestalordyesta00000000000000/* * UTF-16 string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_utf16_string.h" /* Determines the size of an UTF-16 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, int codepage, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_byte_stream"; size_t byte_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string size.", function ); return( -1 ); } *utf16_string_size = 0; if( byte_stream_size == 0 ) { return( 1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } /* Determine how many UTF-16 character byte words are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf16_string_size += 1; } return( 1 ); } /* Copies an UTF-16 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_copy_from_byte_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_copy_from_byte_stream"; size_t utf16_string_index = 0; if( libuna_utf16_string_with_index_copy_from_byte_stream( utf16_string, utf16_string_size, &utf16_string_index, byte_stream, byte_stream_size, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy byte stream to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-16 string from a byte stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_with_index_copy_from_byte_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_byte_stream"; size_t byte_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing byte stream value.", function ); return( -1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 character byte words */ if( libuna_unicode_character_copy_to_utf16( unicode_character, utf16_string, utf16_string_size, utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } utf16_string[ *utf16_string_index ] = 0; *utf16_string_index += 1; } return( 1 ); } /* Compares an UTF-16 string with a byte stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf16_string_compare_with_byte_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_compare_with_byte_stream"; size_t byte_stream_index = 0; size_t utf16_string_index = 0; libuna_unicode_character_t utf16_unicode_character = 0; libuna_unicode_character_t byte_stream_unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing byte stream value.", function ); return( -1 ); } if( utf16_string[ utf16_string_size - 1 ] == 0 ) { utf16_string_size -= 1; } /* Check if the byte stream is terminated with zero bytes */ if( byte_stream[ byte_stream_size - 1 ] == 0 ) { byte_stream_size -= 1; } while( ( utf16_string_index < utf16_string_size ) && ( byte_stream_index < byte_stream_size ) ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the byte stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_byte_stream( &byte_stream_unicode_character, byte_stream, byte_stream_size, &byte_stream_index, codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from byte stream.", function ); return( -1 ); } if( utf16_unicode_character < byte_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf16_unicode_character > byte_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf16_string_index < utf16_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( byte_stream_index < byte_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-16 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_size_from_utf7_stream( const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_utf7_stream"; size_t utf7_stream_index = 0; libuna_unicode_character_t unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string size.", function ); return( -1 ); } *utf16_string_size = 0; if( utf7_stream_size == 0 ) { return( 1 ); } while( utf7_stream_index < utf7_stream_size ) { /* Convert the UTF-7 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf16_string_size += 1; } return( 1 ); } /* Copies an UTF-16 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_copy_from_utf7_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_copy_from_utf7_stream"; size_t utf16_string_index = 0; if( libuna_utf16_string_with_index_copy_from_utf7_stream( utf16_string, utf16_string_size, &utf16_string_index, utf7_stream, utf7_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to UTF-7 stream to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-16 string from an UTF-7 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_with_index_copy_from_utf7_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_utf7_stream"; size_t utf7_stream_index = 0; libuna_unicode_character_t unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-7 stream value.", function ); return( -1 ); } while( utf7_stream_index < utf7_stream_size ) { /* Convert the UTF-7 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 character bytes */ if( libuna_unicode_character_copy_to_utf16( unicode_character, utf16_string, utf16_string_size, utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } utf16_string[ *utf16_string_index ] = 0; *utf16_string_index += 1; } return( 1 ); } /* Compares an UTF-16 string with an UTF-7 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf16_string_compare_with_utf7_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_compare_with_utf7_stream"; size_t utf16_string_index = 0; size_t utf7_stream_index = 0; libuna_unicode_character_t utf16_unicode_character = 0; libuna_unicode_character_t utf7_stream_unicode_character = 0; uint32_t utf7_stream_base64_data = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-7 stream value.", function ); return( -1 ); } if( utf16_string[ utf16_string_size - 1 ] == 0 ) { utf16_string_size -= 1; } /* Check if the UTF-7 stream is terminated with zero bytes */ if( utf7_stream[ utf7_stream_size - 1 ] == 0 ) { utf7_stream_size -= 1; } while( ( utf16_string_index < utf16_string_size ) && ( utf7_stream_index < utf7_stream_size ) ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the UTF-7 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf7_stream( &utf7_stream_unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-7 stream.", function ); return( -1 ); } if( utf16_unicode_character < utf7_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf16_unicode_character > utf7_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf16_string_index < utf16_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf7_stream_index < utf7_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-16 string from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf16_string_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_utf8"; size_t utf8_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string size.", function ); return( -1 ); } *utf16_string_size = 0; if( utf8_string_size == 0 ) { return( 1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf16_string_size += 1; } return( 1 ); } /* Copies an UTF-16 string from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf16_string_copy_from_utf8( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_copy_from_utf8"; size_t utf16_string_index = 0; if( libuna_utf16_string_with_index_copy_from_utf8( utf16_string, utf16_string_size, &utf16_string_index, utf8_string, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-8 string to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-16 string from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf16_string_with_index_copy_from_utf8( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_utf8"; size_t utf8_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 string value.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 character bytes */ if( libuna_unicode_character_copy_to_utf16( unicode_character, utf16_string, utf16_string_size, utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } utf16_string[ *utf16_string_index ] = 0; *utf16_string_index += 1; } return( 1 ); } /* Determines the size of an UTF-16 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_size_from_utf8_stream( const uint8_t *utf8_stream, size_t utf8_stream_size, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_utf8_stream"; size_t utf8_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string size.", function ); return( -1 ); } *utf16_string_size = 0; if( utf8_stream_size == 0 ) { return( 1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } while( utf8_stream_index < utf8_stream_size ) { /* Convert the UTF-8 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf16_string_size += 1; } return( 1 ); } /* Copies an UTF-16 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_copy_from_utf8_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_copy_from_utf8_stream"; size_t utf16_string_index = 0; if( libuna_utf16_string_with_index_copy_from_utf8_stream( utf16_string, utf16_string_size, &utf16_string_index, utf8_stream, utf8_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to UTF-8 stream to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-16 string from an UTF-8 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_with_index_copy_from_utf8_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_utf8_stream"; size_t utf8_stream_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 stream value.", function ); return( -1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } while( utf8_stream_index < utf8_stream_size ) { /* Convert the UTF-8 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 character bytes */ if( libuna_unicode_character_copy_to_utf16( unicode_character, utf16_string, utf16_string_size, utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } utf16_string[ *utf16_string_index ] = 0; *utf16_string_index += 1; } return( 1 ); } /* Compares an UTF-16 string with an UTF-8 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf16_string_compare_with_utf8_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_compare_with_utf8_stream"; size_t utf16_string_index = 0; size_t utf8_stream_index = 0; libuna_unicode_character_t utf16_unicode_character = 0; libuna_unicode_character_t utf8_stream_unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 stream.", function ); return( -1 ); } if( utf8_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_stream_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 stream value.", function ); return( -1 ); } /* Check if UTF-8 stream starts with a byte order mark (BOM) */ if( utf8_stream_size >= 3 ) { if( ( utf8_stream[ 0 ] == 0x0ef ) && ( utf8_stream[ 1 ] == 0x0bb ) && ( utf8_stream[ 2 ] == 0x0bf ) ) { utf8_stream_index += 3; } } if( utf16_string[ utf16_string_size - 1 ] == 0 ) { utf16_string_size -= 1; } /* Check if the UTF-8 stream is terminated with zero bytes */ if( utf8_stream[ utf8_stream_size - 1 ] == 0 ) { utf8_stream_size -= 1; } while( ( utf16_string_index < utf16_string_size ) && ( utf8_stream_index < utf8_stream_size ) ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &utf8_stream_unicode_character, utf8_stream, utf8_stream_size, &utf8_stream_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 stream.", function ); return( -1 ); } if( utf16_unicode_character < utf8_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf16_unicode_character > utf8_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf16_string_index < utf16_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf8_stream_index < utf8_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-16 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_size_from_utf16_stream( const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_utf16_stream"; size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size % 2 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } if( utf16_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string size.", function ); return( -1 ); } *utf16_string_size = 0; if( utf16_stream_size == 0 ) { return( 1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0x0ff ) && ( utf16_stream[ 1 ] == 0x0fe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0x0fe ) && ( utf16_stream[ 1 ] == 0x0ff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf16_string_size += 1; } return( 1 ); } /* Copies an UTF-16 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_copy_from_utf16_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_copy_from_utf16_stream"; size_t utf16_string_index = 0; if( libuna_utf16_string_with_index_copy_from_utf16_stream( utf16_string, utf16_string_size, &utf16_string_index, utf16_stream, utf16_stream_size, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-16 stream to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-16 string from an UTF-16 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_with_index_copy_from_utf16_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_utf16_stream"; size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size == 0 ) || ( ( utf16_stream_size % 2 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0x0ff ) && ( utf16_stream[ 1 ] == 0x0fe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0x0fe ) && ( utf16_stream[ 1 ] == 0x0ff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 character bytes */ if( libuna_unicode_character_copy_to_utf16( unicode_character, utf16_string, utf16_string_size, utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } utf16_string[ *utf16_string_index ] = 0; *utf16_string_index += 1; } return( 1 ); } /* Compares an UTF-16 string with an UTF-16 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf16_string_compare_with_utf16_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_compare_with_utf16_stream"; size_t utf16_stream_index = 0; size_t utf16_string_index = 0; libuna_unicode_character_t utf16_unicode_character = 0; libuna_unicode_character_t utf16_stream_unicode_character = 0; int read_byte_order = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf16_stream_size == 0 ) || ( ( utf16_stream_size % 2 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-16 stream value.", function ); return( -1 ); } /* Check if UTF-16 stream is in big or little endian */ if( utf16_stream_size >= 2 ) { if( ( utf16_stream[ 0 ] == 0xfe ) && ( utf16_stream[ 1 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf16_stream_index = 2; } else if( ( utf16_stream[ 0 ] == 0xff ) && ( utf16_stream[ 1 ] == 0xfe ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf16_stream_index = 2; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf16_string[ utf16_string_size - 1 ] == 0 ) { utf16_string_size -= 1; } /* Check if the UTF-16 stream is terminated with zero bytes */ if( ( utf16_stream[ utf16_stream_size - 2 ] == 0 ) && ( utf16_stream[ utf16_stream_size - 1 ] == 0 ) ) { utf16_stream_size -= 2; } while( ( utf16_string_index < utf16_string_size ) && ( utf16_stream_index < utf16_stream_size ) ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the UTF-16 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16_stream( &utf16_stream_unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 stream.", function ); return( -1 ); } if( utf16_unicode_character < utf16_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf16_unicode_character > utf16_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf16_string_index < utf16_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf16_stream_index < utf16_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-16 string from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf16_string_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_utf32"; size_t utf32_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string size.", function ); return( -1 ); } *utf16_string_size = 0; if( utf32_string_size == 0 ) { return( 1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf16_string_size += 1; } return( 1 ); } /* Copies an UTF-16 string from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf16_string_copy_from_utf32( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_copy_from_utf32"; size_t utf16_string_index = 0; if( libuna_utf16_string_with_index_copy_from_utf32( utf16_string, utf16_string_size, &utf16_string_index, utf32_string, utf32_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-32 string to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-16 string from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf16_string_with_index_copy_from_utf32( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_utf32"; size_t utf32_string_index = 0; libuna_unicode_character_t unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-32 string value.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 character bytes */ if( libuna_unicode_character_copy_to_utf16( unicode_character, utf16_string, utf16_string_size, utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } utf16_string[ *utf16_string_index ] = 0; *utf16_string_index += 1; } return( 1 ); } /* Compares an UTF-16 string with an UTF-32 string * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf16_string_compare_with_utf32( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_compare_with_utf32"; size_t utf16_string_index = 0; size_t utf32_string_index = 0; libuna_unicode_character_t utf16_unicode_character = 0; libuna_unicode_character_t utf32_unicode_character = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_string_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-32 string value.", function ); return( -1 ); } if( utf16_string[ utf16_string_size - 1 ] == 0 ) { utf16_string_size -= 1; } if( utf32_string[ utf32_string_size - 1 ] == 0 ) { utf32_string_size -= 1; } while( ( utf16_string_index < utf16_string_size ) && ( utf32_string_index < utf32_string_size ) ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &utf32_unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } if( utf16_unicode_character < utf32_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf16_unicode_character > utf32_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf16_string_index < utf16_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf32_string_index < utf32_string_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Determines the size of an UTF-16 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_size_from_utf32_stream( const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_utf32_stream"; size_t utf32_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size % 4 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } if( utf16_string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string size.", function ); return( -1 ); } *utf16_string_size = 0; if( utf32_stream_size == 0 ) { return( 1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { *utf16_string_size += 1; } return( 1 ); } /* Copies an UTF-16 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_copy_from_utf32_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_copy_from_utf32_stream"; size_t utf16_string_index = 0; if( libuna_utf16_string_with_index_copy_from_utf32_stream( utf16_string, utf16_string_size, &utf16_string_index, utf32_stream, utf32_stream_size, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-32 stream to UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Copies an UTF-16 string from an UTF-32 stream * Returns 1 if successful or -1 on error */ int libuna_utf16_string_with_index_copy_from_utf32_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_utf32_stream"; size_t utf32_stream_index = 0; libuna_unicode_character_t unicode_character = 0; int read_byte_order = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_string_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string index.", function ); return( -1 ); } if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size == 0 ) || ( ( utf32_stream_size % 4 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >=4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 character bytes */ if( libuna_unicode_character_copy_to_utf16( unicode_character, utf16_string, utf16_string_size, utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16.", function ); return( -1 ); } } /* Check if the string is terminated with an end-of-string character */ if( unicode_character != 0 ) { if( *utf16_string_index >= utf16_string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 string too small.", function ); return( -1 ); } utf16_string[ *utf16_string_index ] = 0; *utf16_string_index += 1; } return( 1 ); } /* Compares an UTF-16 string with an UTF-32 stream * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libuna_utf16_string_compare_with_utf32_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf16_string_compare_with_utf32_stream"; size_t utf16_string_index = 0; size_t utf32_stream_index = 0; libuna_unicode_character_t utf16_unicode_character = 0; libuna_unicode_character_t utf32_stream_unicode_character = 0; int read_byte_order = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf32_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 stream.", function ); return( -1 ); } if( utf32_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 stream size value exceeds maximum.", function ); return( -1 ); } if( ( utf32_stream_size == 0 ) || ( ( utf32_stream_size % 4 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing UTF-32 stream value.", function ); return( -1 ); } /* Check if UTF-32 stream is in big or little endian */ if( utf32_stream_size >= 4 ) { if( ( utf32_stream[ 0 ] == 0x00 ) && ( utf32_stream[ 1 ] == 0x00 ) && ( utf32_stream[ 2 ] == 0xfe ) && ( utf32_stream[ 3 ] == 0xff ) ) { read_byte_order = LIBUNA_ENDIAN_BIG; utf32_stream_index = 4; } else if( ( utf32_stream[ 0 ] == 0xff ) && ( utf32_stream[ 1 ] == 0xfe ) && ( utf32_stream[ 2 ] == 0x00 ) && ( utf32_stream[ 3 ] == 0x00 ) ) { read_byte_order = LIBUNA_ENDIAN_LITTLE; utf32_stream_index = 4; } if( byte_order == 0 ) { byte_order = read_byte_order; } } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf16_string[ utf16_string_size - 1 ] == 0 ) { utf16_string_size -= 1; } /* Check if the UTF-32 stream is terminated with zero bytes */ if( ( utf32_stream[ utf32_stream_size - 4 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 3 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 2 ] == 0 ) && ( utf32_stream[ utf32_stream_size - 1 ] == 0 ) ) { utf32_stream_size -= 1; } while( ( utf16_string_index < utf16_string_size ) && ( utf32_stream_index < utf32_stream_size ) ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Convert the UTF-32 stream bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32_stream( &utf32_stream_unicode_character, utf32_stream, utf32_stream_size, &utf32_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 stream.", function ); return( -1 ); } if( utf16_unicode_character < utf32_stream_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf16_unicode_character > utf32_stream_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } /* Check if both strings were entirely processed */ if( utf16_string_index < utf16_string_size ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf32_stream_index < utf32_stream_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } libfsapfs-20190210/libuna/libuna_codepage_iso_8859_5.h0000664000175000017500000000247713430101233024342 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-5 codepage (Cyrillic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_5_H ) #define _LIBUNA_CODEPAGE_ISO_8859_5_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_5_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_5_unicode_to_byte_stream_base_0x0400[ 96 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_5_H ) */ libfsapfs-20190210/libuna/libuna_extern.h0000664000175000017500000000235613430101233022301 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_INTERNAL_EXTERN_H ) #define _LIBUNA_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if !defined( HAVE_LOCAL_LIBUNA ) #include #define LIBUNA_EXTERN_VARIABLE LIBUNA_EXTERN #else #define LIBUNA_EXTERN /* extern */ #define LIBUNA_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _LIBUNA_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_4.h0000664000175000017500000000265313430101233024335 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-4 codepage (Baltic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_4_H ) #define _LIBUNA_CODEPAGE_ISO_8859_4_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_4_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_4_unicode_to_byte_stream_base_0x00a0[ 184 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_4_unicode_to_byte_stream_base_0x0160[ 32 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_4_H ) */ libfsapfs-20190210/libuna/libuna_byte_stream.h0000664000175000017500000000555313430101233023314 0ustar00lordyestalordyesta00000000000000/* * Byte stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_BYTE_STREAM_H ) #define _LIBUNA_BYTE_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_byte_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, int codepage, size_t *byte_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_byte_stream_copy_from_utf8( uint8_t *byte_stream, size_t byte_stream_size, int codepage, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_byte_stream_copy_to_utf8 is implemented by * libuna_utf8_string_copy_from_byte_stream */ LIBUNA_EXTERN \ int libuna_byte_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, int codepage, size_t *byte_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_byte_stream_copy_from_utf16( uint8_t *byte_stream, size_t byte_stream_size, int codepage, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_byte_stream_copy_to_utf16 is implemented by * libuna_utf16_string_copy_from_byte_stream */ LIBUNA_EXTERN \ int libuna_byte_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, int codepage, size_t *byte_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_byte_stream_copy_from_utf32( uint8_t *byte_stream, size_t byte_stream_size, int codepage, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); /* The functionality for libuna_byte_stream_copy_to_utf32 is implemented by * libuna_utf32_string_copy_from_byte_stream */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_BYTE_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_utf16_string.h0000664000175000017500000002136313430101233023326 0ustar00lordyestalordyesta00000000000000/* * UTF-16 string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UTF16_STRING_H ) #define _LIBUNA_UTF16_STRING_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_utf16_string_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, int codepage, size_t *utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_copy_from_byte_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_copy_to_byte_stream is implemented by * libuna_byte_stream_copy_from_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_with_index_copy_from_byte_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_compare_with_byte_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *byte_stream, size_t byte_stream_size, int codepage, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_size_from_utf7_stream( const uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_copy_from_utf7_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_copy_to_utf7_stream is implemented by * libuna_utf7_stream_copy_from_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_with_index_copy_from_utf7_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_compare_with_utf7_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf7_stream, size_t utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_copy_from_utf8( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_copy_to_utf8 is implemented by * libuna_utf8_string_copy_from_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_with_index_copy_from_utf8( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_compare_with_utf8 is implemented by * libuna_utf8_string_compare_with_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_size_from_utf8_stream( const uint8_t *utf16_stream, size_t utf16_stream_size, size_t *utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_copy_from_utf8_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_copy_to_utf8_stream is implemented by * libuna_utf8_stream_copy_from_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_with_index_copy_from_utf8_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_compare_with_utf8_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf8_stream, size_t utf8_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_size_from_utf16_stream( const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, size_t *utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_copy_from_utf16_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_copy_to_utf16_stream is implemented by * libuna_utf16_stream_copy_from_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_with_index_copy_from_utf16_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_compare_with_utf16_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_copy_from_utf32( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_copy_to_utf32 is implemented by * libuna_utf32_string_copy_from_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_with_index_copy_from_utf32( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_compare_with_utf32( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_size_from_utf32_stream( const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, size_t *utf16_string_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_copy_from_utf32_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); /* The functionality for libuna_utf16_string_copy_to_utf32_stream is implemented by * libuna_utf32_stream_copy_from_utf16 */ LIBUNA_EXTERN \ int libuna_utf16_string_with_index_copy_from_utf32_stream( libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_string_index, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf16_string_compare_with_utf32_stream( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, const uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UTF16_STRING_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_4.c0000664000175000017500000000675313430101233024335 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-4 codepage (Baltic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_4.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-4 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_4_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x0104, 0x0138, 0x0156, 0x00a4, 0x0128, 0x013b, 0x00a7, 0x00a8, 0x0160, 0x0112, 0x0122, 0x0166, 0x00ad, 0x017d, 0x00af, 0x00b0, 0x0105, 0x02db, 0x0157, 0x00b4, 0x0129, 0x013c, 0x02c7, 0x00b8, 0x0161, 0x0113, 0x0123, 0x0167, 0x014a, 0x017e, 0x014b, 0x0100, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x012e, 0x010c, 0x00c9, 0x0118, 0x00cb, 0x0116, 0x00cd, 0x00ce, 0x012a, 0x0110, 0x0145, 0x014c, 0x0136, 0x00d4, 0x00d5, 0x00d6, 0x00d7, 0x00d8, 0x0172, 0x00da, 0x00db, 0x00dc, 0x0168, 0x016a, 0x00df, 0x0101, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x012f, 0x010d, 0x00e9, 0x0119, 0x00eb, 0x0117, 0x00ed, 0x00ee, 0x012b, 0x0111, 0x0146, 0x014d, 0x0137, 0x00f4, 0x00f5, 0x00f6, 0x00f7, 0x00f8, 0x0173, 0x00fa, 0x00fb, 0x00fc, 0x0169, 0x016b, 0x02d9 }; /* Unicode to ASCII character lookup table for ISO 8859-4 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_4_unicode_to_byte_stream_base_0x00a0[ 184 ] = { 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0x1a, 0xa7, 0xa8, 0x1a, 0x1a, 0x1a, 0x1a, 0xad, 0x1a, 0xaf, 0xb0, 0x1a, 0x1a, 0x1a, 0xb4, 0x1a, 0x1a, 0x1a, 0xb8, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0x1a, 0x1a, 0xc9, 0x1a, 0xcb, 0x1a, 0xcd, 0xce, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0x1a, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, 0x1a, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0x1a, 0x1a, 0xe9, 0x1a, 0xeb, 0x1a, 0xed, 0xee, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0x1a, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0x1a, 0xc0, 0xe0, 0x1a, 0x1a, 0xa1, 0xb1, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0x1a, 0x1a, 0xd0, 0xf0, 0xaa, 0xba, 0x1a, 0x1a, 0xcc, 0xec, 0xca, 0xea, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xab, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a, 0xa5, 0xb5, 0xcf, 0xef, 0x1a, 0x1a, 0xc7, 0xe7, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd3, 0xf3, 0xa2, 0x1a, 0x1a, 0xa6, 0xb6, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd1, 0xf1, 0x1a, 0x1a, 0x1a, 0xbd, 0xbf, 0xd2, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xa3, 0xb3 }; const uint8_t libuna_codepage_iso_8859_4_unicode_to_byte_stream_base_0x0160[ 32 ] = { 0xa9, 0xb9, 0x1a, 0x1a, 0x1a, 0x1a, 0xac, 0xbc, 0xdd, 0xfd, 0xde, 0xfe, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, 0xf9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xae, 0xbe, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_10.c0000664000175000017500000000623313430101233024403 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-10 codepage (Nordic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_10.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-10 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_10_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x0104, 0x0112, 0x0122, 0x012a, 0x0128, 0x0136, 0x00a7, 0x013b, 0x0110, 0x0160, 0x0166, 0x017d, 0x00ad, 0x016a, 0x014a, 0x00b0, 0x0105, 0x0113, 0x0123, 0x012b, 0x0129, 0x0137, 0x00b7, 0x013c, 0x0111, 0x0161, 0x0167, 0x017e, 0x2015, 0x016b, 0x014b, 0x0100, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x012e, 0x010c, 0x00c9, 0x0118, 0x00cb, 0x0116, 0x00cd, 0x00ce, 0x00cf, 0x00d0, 0x0145, 0x014c, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x0168, 0x00d8, 0x0172, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df, 0x0101, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x012f, 0x010d, 0x00e9, 0x0119, 0x00eb, 0x0117, 0x00ed, 0x00ee, 0x00ef, 0x00f0, 0x0146, 0x014d, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x0169, 0x00f8, 0x0173, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x0138 }; /* Unicode to ASCII character lookup table for ISO 8859-10 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_10_unicode_to_byte_stream_base_0x00c0[ 144 ] = { 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0x1a, 0x1a, 0xc9, 0x1a, 0xcb, 0x1a, 0xcd, 0xce, 0xcf, 0xd0, 0x1a, 0x1a, 0xd3, 0xd4, 0xd5, 0xd6, 0x1a, 0xd8, 0x1a, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0x1a, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0x1a, 0x1a, 0xe9, 0x1a, 0xeb, 0x1a, 0xed, 0xee, 0xef, 0xf0, 0x1a, 0x1a, 0xf3, 0xf4, 0xf5, 0xf6, 0x1a, 0xf8, 0x1a, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0x1a, 0xc0, 0xe0, 0x1a, 0x1a, 0xa1, 0xb1, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0x1a, 0x1a, 0xa9, 0xb9, 0xa2, 0xb2, 0x1a, 0x1a, 0xcc, 0xec, 0xca, 0xea, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xa3, 0xb3, 0x1a, 0x1a, 0x1a, 0x1a, 0xa5, 0xb5, 0xa4, 0xb4, 0x1a, 0x1a, 0xc7, 0xe7, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xa6, 0xb6, 0xff, 0x1a, 0x1a, 0xa8, 0xb8, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd1, 0xf1, 0x1a, 0x1a, 0x1a, 0xaf, 0xbf, 0xd2, 0xf2, 0x1a, 0x1a }; const uint8_t libuna_codepage_iso_8859_10_unicode_to_byte_stream_base_0x0160[ 16 ] = { 0xaa, 0xba, 0x1a, 0x1a, 0x1a, 0x1a, 0xab, 0xbb, 0xd7, 0xf7, 0xae, 0xbe, 0x1a, 0x1a, 0x1a, 0x1a }; libfsapfs-20190210/libuna/Makefile.in0000664000175000017500000013430413430101254021340 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libuna ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libuna_la_LIBADD = am__libuna_la_SOURCES_DIST = libuna_base16_stream.c \ libuna_base16_stream.h libuna_base32_stream.c \ libuna_base32_stream.h libuna_base64_stream.c \ libuna_base64_stream.h libuna_byte_stream.c \ libuna_byte_stream.h libuna_codepage_iso_8859_2.c \ libuna_codepage_iso_8859_2.h libuna_codepage_iso_8859_3.c \ libuna_codepage_iso_8859_3.h libuna_codepage_iso_8859_4.c \ libuna_codepage_iso_8859_4.h libuna_codepage_iso_8859_5.c \ libuna_codepage_iso_8859_5.h libuna_codepage_iso_8859_6.c \ libuna_codepage_iso_8859_6.h libuna_codepage_iso_8859_7.c \ libuna_codepage_iso_8859_7.h libuna_codepage_iso_8859_8.c \ libuna_codepage_iso_8859_8.h libuna_codepage_iso_8859_9.c \ libuna_codepage_iso_8859_9.h libuna_codepage_iso_8859_10.c \ libuna_codepage_iso_8859_10.h libuna_codepage_iso_8859_13.c \ libuna_codepage_iso_8859_13.h libuna_codepage_iso_8859_14.c \ libuna_codepage_iso_8859_14.h libuna_codepage_iso_8859_15.c \ libuna_codepage_iso_8859_15.h libuna_codepage_iso_8859_16.c \ libuna_codepage_iso_8859_16.h libuna_codepage_koi8_r.c \ libuna_codepage_koi8_r.h libuna_codepage_koi8_u.c \ libuna_codepage_koi8_u.h libuna_codepage_windows_874.c \ libuna_codepage_windows_874.h libuna_codepage_windows_932.c \ libuna_codepage_windows_932.h libuna_codepage_windows_936.c \ libuna_codepage_windows_936.h libuna_codepage_windows_949.c \ libuna_codepage_windows_949.h libuna_codepage_windows_950.c \ libuna_codepage_windows_950.h libuna_codepage_windows_1250.c \ libuna_codepage_windows_1250.h libuna_codepage_windows_1251.c \ libuna_codepage_windows_1251.h libuna_codepage_windows_1252.c \ libuna_codepage_windows_1252.h libuna_codepage_windows_1253.c \ libuna_codepage_windows_1253.h libuna_codepage_windows_1254.c \ libuna_codepage_windows_1254.h libuna_codepage_windows_1255.c \ libuna_codepage_windows_1255.h libuna_codepage_windows_1256.c \ libuna_codepage_windows_1256.h libuna_codepage_windows_1257.c \ libuna_codepage_windows_1257.h libuna_codepage_windows_1258.c \ libuna_codepage_windows_1258.h libuna_definitions.h \ libuna_error.c libuna_error.h libuna_extern.h \ libuna_libcerror.h libuna_support.c libuna_support.h \ libuna_types.h libuna_unicode_character.c \ libuna_unicode_character.h libuna_unused.h libuna_url_stream.c \ libuna_url_stream.h libuna_utf16_stream.c \ libuna_utf16_stream.h libuna_utf16_string.c \ libuna_utf16_string.h libuna_utf32_stream.c \ libuna_utf32_stream.h libuna_utf32_string.c \ libuna_utf32_string.h libuna_utf7_stream.c \ libuna_utf7_stream.h libuna_utf8_stream.c libuna_utf8_stream.h \ libuna_utf8_string.c libuna_utf8_string.h @HAVE_LOCAL_LIBUNA_TRUE@am_libuna_la_OBJECTS = \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_base16_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_base32_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_base64_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_byte_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_2.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_3.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_4.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_5.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_6.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_7.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_8.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_9.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_10.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_13.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_14.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_15.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_16.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_r.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_u.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_874.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_932.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_936.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_949.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_950.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1250.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1251.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1252.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1253.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1254.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1255.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1256.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1257.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1258.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_error.lo libuna_support.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_unicode_character.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_url_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf16_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf16_string.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf32_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf32_string.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf7_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf8_stream.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf8_string.lo libuna_la_OBJECTS = $(am_libuna_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBUNA_TRUE@am_libuna_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libuna_base16_stream.Plo \ ./$(DEPDIR)/libuna_base32_stream.Plo \ ./$(DEPDIR)/libuna_base64_stream.Plo \ ./$(DEPDIR)/libuna_byte_stream.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_10.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_13.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_14.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_15.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_16.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_2.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_3.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_4.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_5.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_6.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_7.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_8.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_9.Plo \ ./$(DEPDIR)/libuna_codepage_koi8_r.Plo \ ./$(DEPDIR)/libuna_codepage_koi8_u.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1250.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1251.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1252.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1253.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1254.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1255.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1256.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1257.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1258.Plo \ ./$(DEPDIR)/libuna_codepage_windows_874.Plo \ ./$(DEPDIR)/libuna_codepage_windows_932.Plo \ ./$(DEPDIR)/libuna_codepage_windows_936.Plo \ ./$(DEPDIR)/libuna_codepage_windows_949.Plo \ ./$(DEPDIR)/libuna_codepage_windows_950.Plo \ ./$(DEPDIR)/libuna_error.Plo ./$(DEPDIR)/libuna_support.Plo \ ./$(DEPDIR)/libuna_unicode_character.Plo \ ./$(DEPDIR)/libuna_url_stream.Plo \ ./$(DEPDIR)/libuna_utf16_stream.Plo \ ./$(DEPDIR)/libuna_utf16_string.Plo \ ./$(DEPDIR)/libuna_utf32_stream.Plo \ ./$(DEPDIR)/libuna_utf32_string.Plo \ ./$(DEPDIR)/libuna_utf7_stream.Plo \ ./$(DEPDIR)/libuna_utf8_stream.Plo \ ./$(DEPDIR)/libuna_utf8_string.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libuna_la_SOURCES) DIST_SOURCES = $(am__libuna_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBUNA_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBUNA_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBUNA_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBUNA_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBUNA_TRUE@noinst_LTLIBRARIES = libuna.la @HAVE_LOCAL_LIBUNA_TRUE@libuna_la_SOURCES = \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_base16_stream.c libuna_base16_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_base32_stream.c libuna_base32_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_base64_stream.c libuna_base64_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_byte_stream.c libuna_byte_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_2.c libuna_codepage_iso_8859_2.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_3.c libuna_codepage_iso_8859_3.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_4.c libuna_codepage_iso_8859_4.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_5.c libuna_codepage_iso_8859_5.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_6.c libuna_codepage_iso_8859_6.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_7.c libuna_codepage_iso_8859_7.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_8.c libuna_codepage_iso_8859_8.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_9.c libuna_codepage_iso_8859_9.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_10.c libuna_codepage_iso_8859_10.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_13.c libuna_codepage_iso_8859_13.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_14.c libuna_codepage_iso_8859_14.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_15.c libuna_codepage_iso_8859_15.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_16.c libuna_codepage_iso_8859_16.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_r.c libuna_codepage_koi8_r.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_u.c libuna_codepage_koi8_u.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_874.c libuna_codepage_windows_874.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_932.c libuna_codepage_windows_932.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_936.c libuna_codepage_windows_936.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_949.c libuna_codepage_windows_949.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_950.c libuna_codepage_windows_950.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1250.c libuna_codepage_windows_1250.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1251.c libuna_codepage_windows_1251.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1252.c libuna_codepage_windows_1252.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1253.c libuna_codepage_windows_1253.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1254.c libuna_codepage_windows_1254.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1255.c libuna_codepage_windows_1255.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1256.c libuna_codepage_windows_1256.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1257.c libuna_codepage_windows_1257.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_1258.c libuna_codepage_windows_1258.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_definitions.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_error.c libuna_error.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_extern.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_libcerror.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_support.c libuna_support.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_types.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_unicode_character.c libuna_unicode_character.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_unused.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_url_stream.c libuna_url_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf16_stream.c libuna_utf16_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf16_string.c libuna_utf16_string.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf32_stream.c libuna_utf32_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf32_string.c libuna_utf32_string.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf7_stream.c libuna_utf7_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf8_stream.c libuna_utf8_stream.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_utf8_string.c libuna_utf8_string.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libuna/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libuna/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libuna.la: $(libuna_la_OBJECTS) $(libuna_la_DEPENDENCIES) $(EXTRA_libuna_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libuna_la_rpath) $(libuna_la_OBJECTS) $(libuna_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_base16_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_base32_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_base64_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_byte_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_10.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_13.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_14.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_15.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_16.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_2.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_3.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_4.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_5.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_6.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_7.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_8.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_9.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_koi8_r.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_koi8_u.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1250.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1251.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1252.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1253.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1254.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1255.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1256.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1257.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1258.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_874.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_932.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_936.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_949.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_950.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_unicode_character.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_url_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_utf16_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_utf16_string.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_utf32_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_utf32_string.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_utf7_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_utf8_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_utf8_string.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libuna_base16_stream.Plo -rm -f ./$(DEPDIR)/libuna_base32_stream.Plo -rm -f ./$(DEPDIR)/libuna_base64_stream.Plo -rm -f ./$(DEPDIR)/libuna_byte_stream.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_10.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_13.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_14.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_15.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_16.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_2.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_3.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_4.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_5.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_6.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_7.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_8.Plo -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_9.Plo -rm -f ./$(DEPDIR)/libuna_codepage_koi8_r.Plo -rm -f ./$(DEPDIR)/libuna_codepage_koi8_u.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1250.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1251.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1252.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1253.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1254.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1255.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1256.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1257.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1258.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_874.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_932.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_936.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_949.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_950.Plo -rm -f ./$(DEPDIR)/libuna_error.Plo -rm -f ./$(DEPDIR)/libuna_support.Plo -rm -f ./$(DEPDIR)/libuna_unicode_character.Plo -rm -f ./$(DEPDIR)/libuna_url_stream.Plo -rm -f ./$(DEPDIR)/libuna_utf16_stream.Plo -rm -f ./$(DEPDIR)/libuna_utf16_string.Plo -rm -f ./$(DEPDIR)/libuna_utf32_stream.Plo -rm -f ./$(DEPDIR)/libuna_utf32_string.Plo -rm -f ./$(DEPDIR)/libuna_utf7_stream.Plo -rm -f ./$(DEPDIR)/libuna_utf8_stream.Plo -rm -f ./$(DEPDIR)/libuna_utf8_string.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libuna ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libuna_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libuna/libuna_utf7_stream.h0000664000175000017500000000537213430101233023235 0ustar00lordyestalordyesta00000000000000/* * UTF-7 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UTF7_STREAM_H ) #define _LIBUNA_UTF7_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_utf7_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf7_stream_copy_from_utf8( uint8_t *utf7_stream, size_t utf7_stream_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf7_stream_copy_to_utf8 is implemented by * libuna_utf8_string_copy_from_utf7_stream */ LIBUNA_EXTERN \ int libuna_utf7_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf7_stream_copy_from_utf16( uint8_t *utf7_stream, size_t utf7_stream_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf7_stream_copy_to_utf16 is implemented by * libuna_utf16_string_copy_from_utf7_stream */ LIBUNA_EXTERN \ int libuna_utf7_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf7_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf7_stream_copy_from_utf32( uint8_t *utf7_stream, size_t utf7_stream_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf7_stream_copy_to_utf32 is implemented by * libuna_utf32_string_copy_from_utf7_stream */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UTF7_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_base32_stream.h0000664000175000017500000000717213430101233023427 0ustar00lordyestalordyesta00000000000000/* * Base32 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_BASE32_STREAM_H ) #define _LIBUNA_BASE32_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif int libuna_base32_character_copy_to_quintet( uint8_t base32_character, uint8_t *base32_quintet, uint32_t base32_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_quintuplet_copy_from_base32_stream( uint64_t *base32_quintuplet, const uint8_t *base32_stream, size_t base32_stream_size, size_t *base32_stream_index, uint8_t *padding_size, uint32_t base32_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_quintuplet_copy_to_base32_stream( uint64_t base32_quintuplet, uint8_t *base32_stream, size_t base32_stream_size, size_t *base32_stream_index, uint8_t padding_size, uint32_t base32_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_quintuplet_copy_from_byte_stream( uint64_t *base32_quintuplet, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t *padding_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_quintuplet_copy_to_byte_stream( uint64_t base32_quintuplet, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t padding_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_stream_size_to_byte_stream( const uint8_t *base32_stream, size_t base32_stream_size, size_t *byte_stream_size, uint32_t base32_variant, uint8_t flags, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_stream_copy_to_byte_stream( const uint8_t *base32_stream, size_t base32_stream_size, uint8_t *byte_stream, size_t byte_stream_size, uint32_t base32_variant, uint8_t flags, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_stream_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, size_t *base32_stream_size, uint32_t base32_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_stream_copy_from_byte_stream( uint8_t *base32_stream, size_t base32_stream_size, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base32_variant, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_base32_stream_with_index_copy_from_byte_stream( uint8_t *base32_stream, size_t base32_stream_size, size_t *base32_stream_index, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base32_variant, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_BASE32_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_utf16_stream.c0000664000175000017500000004621513430101233023311 0ustar00lordyestalordyesta00000000000000/* * UTF-16 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_utf16_stream.h" /* Copies an UTF-16 stream byte order mark (BOM) * Returns 1 if successful or -1 on error */ int libuna_utf16_stream_copy_byte_order_mark( uint8_t *utf16_stream, size_t utf16_stream_size, size_t *utf16_stream_index, int byte_order, libcerror_error_t **error ) { static char *function = "libuna_utf16_stream_copy_byte_order_mark"; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream index.", function ); return( -1 ); } if( ( *utf16_stream_index + 2 ) > utf16_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: UTF-16 stream too small.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( byte_order == LIBUNA_ENDIAN_BIG ) { utf16_stream[ *utf16_stream_index ] = 0xfe; utf16_stream[ *utf16_stream_index + 1 ] = 0xff; } else if( byte_order == LIBUNA_ENDIAN_LITTLE ) { utf16_stream[ *utf16_stream_index ] = 0xff; utf16_stream[ *utf16_stream_index + 1 ] = 0xfe; } *utf16_stream_index += 2; return( 1 ); } /* Determines the size of an UTF-16 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf16_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf16_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_stream_size_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf8_string_index = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf16_stream_size = 1; while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Convert the number of characters into bytes */ *utf16_stream_size *= 2; return( 1 ); } /* Copies an UTF-16 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf16_stream_copy_from_utf8( uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_stream_copy_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf16_stream_index = 0; size_t utf8_string_index = 0; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf16_stream_copy_byte_order_mark( utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-16 byte order mark.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 stream bytes */ if( libuna_unicode_character_copy_to_utf16_stream( unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-16 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf16_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf16_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_stream_size_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf16_stream_size = 1; while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Convert the number of characters into bytes */ *utf16_stream_size *= 2; return( 1 ); } /* Copies an UTF-16 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf16_stream_copy_from_utf16( uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_stream_copy_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_stream_index = 0; size_t utf16_string_index = 0; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf16_stream_copy_byte_order_mark( utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-16 byte order mark.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 stream bytes */ if( libuna_unicode_character_copy_to_utf16_stream( unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-16 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf16_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf16_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_stream_size_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf32_string_index = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf16_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream size.", function ); return( -1 ); } /* Add the byte order mark */ *utf16_stream_size += 1; while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Determine how many UTF-16 character bytes are required */ if( libuna_unicode_character_size_to_utf16( unicode_character, utf16_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-16.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } /* Convert the number of characters into bytes */ *utf16_stream_size *= 2; return( 1 ); } /* Copies an UTF-16 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf16_stream_copy_from_utf32( uint8_t *utf16_stream, size_t utf16_stream_size, int byte_order, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf16_stream_copy_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf16_stream_index = 0; size_t utf32_string_index = 0; if( utf16_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 stream.", function ); return( -1 ); } if( utf16_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 stream size value exceeds maximum.", function ); return( -1 ); } if( ( byte_order != LIBUNA_ENDIAN_BIG ) && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported byte order.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( libuna_utf16_stream_copy_byte_order_mark( utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy UTF-16 byte order mark.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-16 stream bytes */ if( libuna_unicode_character_copy_to_utf16_stream( unicode_character, utf16_stream, utf16_stream_size, &utf16_stream_index, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-16 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } libfsapfs-20190210/libuna/libuna_utf7_stream.c0000664000175000017500000003651513430101233023233 0ustar00lordyestalordyesta00000000000000/* * UTF-7 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" #include "libuna_unicode_character.h" #include "libuna_utf7_stream.h" /* Determines the size of an UTF-7 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf7_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf7_stream_size_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf8_string_index = 0; uint32_t utf7_stream_base64_data = 0; if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream size.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8.", function ); return( -1 ); } /* Determine how many UTF-7 character bytes are required */ if( libuna_unicode_character_size_to_utf7_stream( unicode_character, utf7_stream_size, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-7.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies an UTF-7 stream from an UTF-8 string * Returns 1 if successful or -1 on error */ int libuna_utf7_stream_copy_from_utf8( uint8_t *utf7_stream, size_t utf7_stream_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf7_stream_copy_from_utf8"; libuna_unicode_character_t unicode_character = 0; size_t utf7_stream_index = 0; size_t utf8_string_index = 0; uint32_t utf7_stream_base64_data = 0; if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string size value exceeds maximum.", function ); return( -1 ); } while( utf8_string_index < utf8_string_size ) { /* Convert the UTF-8 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_size, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-7 stream bytes */ if( libuna_unicode_character_copy_to_utf7_stream( unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-7 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-7 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf7_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf7_stream_size_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; uint32_t utf7_stream_base64_data = 0; if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream size.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16.", function ); return( -1 ); } /* Determine how many UTF-7 character bytes are required */ if( libuna_unicode_character_size_to_utf7_stream( unicode_character, utf7_stream_size, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-7.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies an UTF-7 stream from an UTF-16 string * Returns 1 if successful or -1 on error */ int libuna_utf7_stream_copy_from_utf16( uint8_t *utf7_stream, size_t utf7_stream_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf7_stream_copy_from_utf16"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; size_t utf7_stream_index = 0; uint32_t utf7_stream_base64_data = 0; if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string size value exceeds maximum.", function ); return( -1 ); } while( utf16_string_index < utf16_string_size ) { /* Convert the UTF-16 string bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_size, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 string.", function ); return( -1 ); } /* Convert the Unicode character into UTF-7 stream bytes */ if( libuna_unicode_character_copy_to_utf7_stream( unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-7 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Determines the size of an UTF-7 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf7_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf7_stream_size, libcerror_error_t **error ) { static char *function = "libuna_utf7_stream_size_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf32_string_index = 0; uint32_t utf7_stream_base64_data = 0; if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } if( utf7_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream size.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Determine how many UTF-7 character bytes are required */ if( libuna_unicode_character_size_to_utf7_stream( unicode_character, utf7_stream_size, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to determine size of Unicode character in UTF-7.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } /* Copies an UTF-7 stream from an UTF-32 string * Returns 1 if successful or -1 on error */ int libuna_utf7_stream_copy_from_utf32( uint8_t *utf7_stream, size_t utf7_stream_size, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ) { static char *function = "libuna_utf7_stream_copy_from_utf32"; libuna_unicode_character_t unicode_character = 0; size_t utf32_string_index = 0; size_t utf7_stream_index = 0; uint32_t utf7_stream_base64_data = 0; if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-7 stream.", function ); return( -1 ); } if( utf7_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-7 stream size value exceeds maximum.", function ); return( -1 ); } if( utf32_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-32 string.", function ); return( -1 ); } if( utf32_string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-32 string size value exceeds maximum.", function ); return( -1 ); } while( utf32_string_index < utf32_string_size ) { /* Convert the UTF-32 character bytes into an Unicode character */ if( libuna_unicode_character_copy_from_utf32( &unicode_character, utf32_string, utf32_string_size, &utf32_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-32.", function ); return( -1 ); } /* Convert the Unicode character into UTF-7 character bytes */ if( libuna_unicode_character_copy_to_utf7_stream( unicode_character, utf7_stream, utf7_stream_size, &utf7_stream_index, &utf7_stream_base64_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character to UTF-7 stream.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } } return( 1 ); } libfsapfs-20190210/libuna/libuna_support.h0000664000175000017500000000232413430101233022503 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_SUPPORT_H ) #define _LIBUNA_SUPPORT_H #include #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBUNA ) LIBUNA_EXTERN \ const char *libuna_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBUNA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_SUPPORT_H ) */ libfsapfs-20190210/libuna/libuna_utf32_stream.h0000664000175000017500000000604413430101233023310 0ustar00lordyestalordyesta00000000000000/* * UTF-32 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_UTF32_STREAM_H ) #define _LIBUNA_UTF32_STREAM_H #include #include #include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN \ int libuna_utf32_stream_copy_byte_order_mark( uint8_t *utf32_stream, size_t utf32_stream_size, size_t *utf32_stream_index, int byte_order, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_stream_size_from_utf8( const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf32_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_stream_copy_from_utf8( uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_stream_copy_to_utf8 is implemented by * libuna_utf8_string_copy_from_utf32_stream */ LIBUNA_EXTERN \ int libuna_utf32_stream_size_from_utf16( const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, size_t *utf32_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_stream_copy_from_utf16( uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, const libuna_utf16_character_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_stream_copy_to_utf16 is implemented by * libuna_utf16_string_copy_from_utf32_stream */ LIBUNA_EXTERN \ int libuna_utf32_stream_size_from_utf32( const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, size_t *utf32_stream_size, libcerror_error_t **error ); LIBUNA_EXTERN \ int libuna_utf32_stream_copy_from_utf32( uint8_t *utf32_stream, size_t utf32_stream_size, int byte_order, const libuna_utf32_character_t *utf32_string, size_t utf32_string_size, libcerror_error_t **error ); /* The functionality for libuna_utf32_stream_copy_to_utf32 is implemented by * libuna_utf32_string_copy_from_utf32_stream */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_UTF32_STREAM_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_3.c0000664000175000017500000000641113430101233024323 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-3 codepage (Latin 3) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_3.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-3 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_3_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x0126, 0x02d8, 0x00a3, 0x00a4, 0xfffd, 0x0124, 0x00a7, 0x00a8, 0x0130, 0x015e, 0x011e, 0x0134, 0x00ad, 0xfffd, 0x017b, 0x00b0, 0x0127, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x0125, 0x00b7, 0x00b8, 0x0131, 0x015f, 0x011f, 0x0135, 0x00bd, 0xfffd, 0x017c, 0x00c0, 0x00c1, 0x00c2, 0xfffd, 0x00c4, 0x010a, 0x0108, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, 0xfffd, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x0120, 0x00d6, 0x00d7, 0x011c, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x016c, 0x015c, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0xfffd, 0x00e4, 0x010b, 0x0109, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0xfffd, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x0121, 0x00f6, 0x00f7, 0x011d, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x016d, 0x015d, 0x02d9 }; /* Unicode to ASCII character lookup table for ISO 8859-3 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x00a0[ 96 ] = { 0xa0, 0x1a, 0x1a, 0xa3, 0xa4, 0x1a, 0x1a, 0xa7, 0xa8, 0x1a, 0x1a, 0x1a, 0x1a, 0xad, 0x1a, 0x1a, 0xb0, 0x1a, 0xb2, 0xb3, 0xb4, 0xb5, 0x1a, 0xb7, 0xb8, 0x1a, 0x1a, 0x1a, 0x1a, 0xbd, 0x1a, 0x1a, 0xc0, 0xc1, 0xc2, 0x1a, 0xc4, 0x1a, 0x1a, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0x1a, 0xd1, 0xd2, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, 0x1a, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, 0xe0, 0xe1, 0xe2, 0x1a, 0xe4, 0x1a, 0x1a, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, 0x1a, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0108[ 8 ] = { 0xc6, 0xe6, 0xc5, 0xe5, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0118[ 16 ] = { 0x1a, 0x1a, 0x1a, 0x1a, 0xd8, 0xf8, 0xab, 0xbb, 0xd5, 0xf5, 0x1a, 0x1a, 0xa6, 0xb6, 0xa1, 0xb1 }; const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0130[ 8 ] = { 0xa9, 0xb9, 0x1a, 0x1a, 0xac, 0xbc, 0x1a, 0x1a }; const uint8_t libuna_codepage_iso_8859_3_unicode_to_byte_stream_base_0x0158[ 8 ] = { 0x1a, 0x1a, 0x1a, 0x1a, 0xde, 0xfe, 0xaa, 0xba }; libfsapfs-20190210/libuna/libuna_definitions.h0000664000175000017500000003313013430101233023301 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_INTERNAL_DEFINITIONS_H ) #define _LIBUNA_INTERNAL_DEFINITIONS_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if !defined( HAVE_LOCAL_LIBUNA ) #include /* The definitions in are copied here * for local use of libuna */ #else #include #define LIBUNA_VERSION 20190102 /* The libuna version string */ #define LIBUNA_VERSION_STRING "20190102" /* The endian definitions */ #define LIBUNA_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG #define LIBUNA_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE /* The codepage definitions */ enum LIBUNA_CODEPAGES { LIBUNA_CODEPAGE_ASCII = 20127, LIBUNA_CODEPAGE_ISO_8859_1 = 28591, LIBUNA_CODEPAGE_ISO_8859_2 = 28592, LIBUNA_CODEPAGE_ISO_8859_3 = 28593, LIBUNA_CODEPAGE_ISO_8859_4 = 28594, LIBUNA_CODEPAGE_ISO_8859_5 = 28595, LIBUNA_CODEPAGE_ISO_8859_6 = 28596, LIBUNA_CODEPAGE_ISO_8859_7 = 28597, LIBUNA_CODEPAGE_ISO_8859_8 = 28598, LIBUNA_CODEPAGE_ISO_8859_9 = 28599, LIBUNA_CODEPAGE_ISO_8859_10 = 28600, LIBUNA_CODEPAGE_ISO_8859_11 = 28601, LIBUNA_CODEPAGE_ISO_8859_13 = 28603, LIBUNA_CODEPAGE_ISO_8859_14 = 28604, LIBUNA_CODEPAGE_ISO_8859_15 = 28605, LIBUNA_CODEPAGE_ISO_8859_16 = 28606, LIBUNA_CODEPAGE_KOI8_R = 20866, LIBUNA_CODEPAGE_KOI8_U = 21866, LIBUNA_CODEPAGE_OEM_437 = 437, LIBUNA_CODEPAGE_OEM_720 = 720, LIBUNA_CODEPAGE_OEM_737 = 737, LIBUNA_CODEPAGE_OEM_775 = 775, LIBUNA_CODEPAGE_OEM_850 = 850, LIBUNA_CODEPAGE_OEM_852 = 852, LIBUNA_CODEPAGE_OEM_855 = 855, LIBUNA_CODEPAGE_OEM_857 = 857, LIBUNA_CODEPAGE_OEM_858 = 858, LIBUNA_CODEPAGE_OEM_862 = 862, LIBUNA_CODEPAGE_OEM_866 = 866, LIBUNA_CODEPAGE_WINDOWS_874 = 874, LIBUNA_CODEPAGE_WINDOWS_932 = 932, LIBUNA_CODEPAGE_WINDOWS_936 = 936, LIBUNA_CODEPAGE_WINDOWS_949 = 949, LIBUNA_CODEPAGE_WINDOWS_950 = 950, LIBUNA_CODEPAGE_WINDOWS_1250 = 1250, LIBUNA_CODEPAGE_WINDOWS_1251 = 1251, LIBUNA_CODEPAGE_WINDOWS_1252 = 1252, LIBUNA_CODEPAGE_WINDOWS_1253 = 1253, LIBUNA_CODEPAGE_WINDOWS_1254 = 1254, LIBUNA_CODEPAGE_WINDOWS_1255 = 1255, LIBUNA_CODEPAGE_WINDOWS_1256 = 1256, LIBUNA_CODEPAGE_WINDOWS_1257 = 1257, LIBUNA_CODEPAGE_WINDOWS_1258 = 1258 }; #define LIBUNA_CODEPAGE_US_ASCII LIBUNA_CODEPAGE_ASCII #define LIBUNA_CODEPAGE_ISO_WESTERN_EUROPEAN LIBUNA_CODEPAGE_ISO_8859_1 #define LIBUNA_CODEPAGE_ISO_CENTRAL_EUROPEAN LIBUNA_CODEPAGE_ISO_8859_2 #define LIBUNA_CODEPAGE_ISO_SOUTH_EUROPEAN LIBUNA_CODEPAGE_ISO_8859_3 #define LIBUNA_CODEPAGE_ISO_NORTH_EUROPEAN LIBUNA_CODEPAGE_ISO_8859_4 #define LIBUNA_CODEPAGE_ISO_CYRILLIC LIBUNA_CODEPAGE_ISO_8859_5 #define LIBUNA_CODEPAGE_ISO_ARABIC LIBUNA_CODEPAGE_ISO_8859_6 #define LIBUNA_CODEPAGE_ISO_GREEK LIBUNA_CODEPAGE_ISO_8859_7 #define LIBUNA_CODEPAGE_ISO_HEBREW LIBUNA_CODEPAGE_ISO_8859_8 #define LIBUNA_CODEPAGE_ISO_TURKISH LIBUNA_CODEPAGE_ISO_8859_9 #define LIBUNA_CODEPAGE_ISO_NORDIC LIBUNA_CODEPAGE_ISO_8859_10 #define LIBUNA_CODEPAGE_ISO_THAI LIBUNA_CODEPAGE_ISO_8859_11 #define LIBUNA_CODEPAGE_ISO_BALTIC LIBUNA_CODEPAGE_ISO_8859_13 #define LIBUNA_CODEPAGE_ISO_CELTIC LIBUNA_CODEPAGE_ISO_8859_14 #define LIBUNA_CODEPAGE_ISO_LATIN_1 LIBUNA_CODEPAGE_ISO_8859_1 #define LIBUNA_CODEPAGE_ISO_LATIN_2 LIBUNA_CODEPAGE_ISO_8859_2 #define LIBUNA_CODEPAGE_ISO_LATIN_3 LIBUNA_CODEPAGE_ISO_8859_3 #define LIBUNA_CODEPAGE_ISO_LATIN_4 LIBUNA_CODEPAGE_ISO_8859_4 #define LIBUNA_CODEPAGE_ISO_LATIN_5 LIBUNA_CODEPAGE_ISO_8859_9 #define LIBUNA_CODEPAGE_ISO_LATIN_6 LIBUNA_CODEPAGE_ISO_8859_10 #define LIBUNA_CODEPAGE_ISO_LATIN_7 LIBUNA_CODEPAGE_ISO_8859_13 #define LIBUNA_CODEPAGE_ISO_LATIN_8 LIBUNA_CODEPAGE_ISO_8859_14 #define LIBUNA_CODEPAGE_ISO_LATIN_9 LIBUNA_CODEPAGE_ISO_8859_15 #define LIBUNA_CODEPAGE_ISO_LATIN_10 LIBUNA_CODEPAGE_ISO_8859_16 #define LIBUNA_CODEPAGE_KOI8_RUSSIAN LIBUNA_CODEPAGE_KOI8_R #define LIBUNA_CODEPAGE_KOI8_UKRAINIAN LIBUNA_CODEPAGE_KOI8_U #define LIBUNA_CODEPAGE_OEM_874 LIBUNA_CODEPAGE_WINDOWS_874 #define LIBUNA_CODEPAGE_OEM_932 LIBUNA_CODEPAGE_WINDOWS_932 #define LIBUNA_CODEPAGE_OEM_936 LIBUNA_CODEPAGE_WINDOWS_936 #define LIBUNA_CODEPAGE_OEM_949 LIBUNA_CODEPAGE_WINDOWS_949 #define LIBUNA_CODEPAGE_OEM_950 LIBUNA_CODEPAGE_WINDOWS_950 #define LIBUNA_CODEPAGE_OEM_1258 LIBUNA_CODEPAGE_WINDOWS_1258 #define LIBUNA_CODEPAGE_OEM_US_ENGLISH LIBUNA_CODEPAGE_OEM_437 #define LIBUNA_CODEPAGE_OEM_ARABIC LIBUNA_CODEPAGE_OEM_720 #define LIBUNA_CODEPAGE_OEM_GREEK LIBUNA_CODEPAGE_OEM_737 #define LIBUNA_CODEPAGE_OEM_BALTIC LIBUNA_CODEPAGE_OEM_775 #define LIBUNA_CODEPAGE_OEM_LATIN_1 LIBUNA_CODEPAGE_OEM_850 #define LIBUNA_CODEPAGE_OEM_LATIN_2 LIBUNA_CODEPAGE_OEM_852 #define LIBUNA_CODEPAGE_OEM_CYRILLIC LIBUNA_CODEPAGE_OEM_855 #define LIBUNA_CODEPAGE_OEM_TURKISH LIBUNA_CODEPAGE_OEM_857 #define LIBUNA_CODEPAGE_OEM_LATIN_1_WITH_EURO LIBUNA_CODEPAGE_OEM_858 #define LIBUNA_CODEPAGE_OEM_HEBREW LIBUNA_CODEPAGE_OEM_862 #define LIBUNA_CODEPAGE_OEM_RUSSIAN LIBUNA_CODEPAGE_OEM_866 #define LIBUNA_CODEPAGE_OEM_THAI LIBUNA_CODEPAGE_WINDOWS_874 #define LIBUNA_CODEPAGE_OEM_JAPANESE LIBUNA_CODEPAGE_WINDOWS_932 #define LIBUNA_CODEPAGE_OEM_CHINESE_SIMPLIFIED LIBUNA_CODEPAGE_WINDOWS_936 #define LIBUNA_CODEPAGE_OEM_KOREAN LIBUNA_CODEPAGE_WINDOWS_949 #define LIBUNA_CODEPAGE_OEM_CHINESE_TRADITIONAL LIBUNA_CODEPAGE_WINDOWS_950 #define LIBUNA_CODEPAGE_OEM_VIETNAMESE LIBUNA_CODEPAGE_WINDOWS_1258 #define LIBUNA_CODEPAGE_WINDOWS_THAI LIBUNA_CODEPAGE_WINDOWS_874 #define LIBUNA_CODEPAGE_WINDOWS_JAPANESE LIBUNA_CODEPAGE_WINDOWS_932 #define LIBUNA_CODEPAGE_WINDOWS_CHINESE_SIMPLIFIED LIBUNA_CODEPAGE_WINDOWS_936 #define LIBUNA_CODEPAGE_WINDOWS_KOREAN LIBUNA_CODEPAGE_WINDOWS_949 #define LIBUNA_CODEPAGE_WINDOWS_CHINESE_TRADITIONAL LIBUNA_CODEPAGE_WINDOWS_950 #define LIBUNA_CODEPAGE_WINDOWS_CENTRAL_EUROPEAN LIBUNA_CODEPAGE_WINDOWS_1250 #define LIBUNA_CODEPAGE_WINDOWS_CYRILLIC LIBUNA_CODEPAGE_WINDOWS_1251 #define LIBUNA_CODEPAGE_WINDOWS_WESTERN_EUROPEAN LIBUNA_CODEPAGE_WINDOWS_1252 #define LIBUNA_CODEPAGE_WINDOWS_GREEK LIBUNA_CODEPAGE_WINDOWS_1253 #define LIBUNA_CODEPAGE_WINDOWS_TURKISH LIBUNA_CODEPAGE_WINDOWS_1254 #define LIBUNA_CODEPAGE_WINDOWS_HEBREW LIBUNA_CODEPAGE_WINDOWS_1255 #define LIBUNA_CODEPAGE_WINDOWS_ARABIC LIBUNA_CODEPAGE_WINDOWS_1256 #define LIBUNA_CODEPAGE_WINDOWS_BALTIC LIBUNA_CODEPAGE_WINDOWS_1257 #define LIBUNA_CODEPAGE_WINDOWS_VIETNAMESE LIBUNA_CODEPAGE_WINDOWS_1258 #define LIBUNA_CODEPAGE_SHIFT_JIS LIBUNA_CODEPAGE_WINDOWS_932 #define LIBUNA_CODEPAGE_GB2312 LIBUNA_CODEPAGE_WINDOWS_936 /* The comparison function definitions */ enum LIBUNA_COMPARE_DEFINITIONS { /* The first string is less than the second string */ LIBUNA_COMPARE_LESS, /* The first and second strings are equal */ LIBUNA_COMPARE_EQUAL, /* The first string is greater than the second string */ LIBUNA_COMPARE_GREATER }; /* Base16 variants * Byte: * 0 - 1 Character limit * 2 - 3 Reserved * 4 Case (0 not supported) * 5 - 6 Reserved * 7 String encoding (0 is byte stream) */ enum LIBUNA_BASE16_VARIANTS { LIBUNA_BASE16_VARIANT_CASE_LOWER = 0x00010000UL, LIBUNA_BASE16_VARIANT_CASE_MIXED = 0x00020000UL, LIBUNA_BASE16_VARIANT_CASE_UPPER = 0x00030000UL, LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_NONE = 0x00000000UL, LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_64 = 0x00000040UL, LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_76 = 0x0000004cUL, LIBUNA_BASE16_VARIANT_ENCODING_UTF16_BIG_ENDIAN = 0x10000000UL, LIBUNA_BASE16_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN = 0x20000000UL, LIBUNA_BASE16_VARIANT_ENCODING_UTF32_BIG_ENDIAN = 0x30000000UL, LIBUNA_BASE16_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN = 0x40000000UL }; #define LIBUNA_BASE16_VARIANT_ENCODING_BYTE_STREAM 0 #define LIBUNA_BASE16_VARIANT_RFC4648 \ LIBUNA_BASE16_VARIANT_CASE_MIXED | LIBUNA_BASE16_VARIANT_CHARACTER_LIMIT_NONE /* Base16 processing flags */ enum LIBUNA_BASE16_FLAGS { LIBUNA_BASE16_FLAG_STRIP_WHITESPACE = 0x01 }; /* Base32 variants * Byte: * 0 - 1 Character limit * 2 - 3 Reserved * 4 Alphabet type (0 not supported) * 5 Reserved * 6 Padding (0 not supported) * 7 String encoding (0 is byte stream) */ enum LIBUNA_BASE32_VARIANTS { LIBUNA_BASE32_VARIANT_ALPHABET_NORMAL = 0x00010000UL, LIBUNA_BASE32_VARIANT_ALPHABET_HEX = 0x00020000UL, LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_NONE = 0x00000000UL, LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_64 = 0x00000040UL, LIBUNA_BASE32_VARIANT_PADDING_NONE = 0x01000000UL, LIBUNA_BASE32_VARIANT_PADDING_OPTIONAL = 0x02000000UL, LIBUNA_BASE32_VARIANT_PADDING_REQUIRED = 0x03000000UL, LIBUNA_BASE32_VARIANT_ENCODING_UTF16_BIG_ENDIAN = 0x10000000UL, LIBUNA_BASE32_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN = 0x20000000UL, LIBUNA_BASE32_VARIANT_ENCODING_UTF32_BIG_ENDIAN = 0x30000000UL, LIBUNA_BASE32_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN = 0x40000000UL }; #define LIBUNA_BASE32_VARIANT_RFC4648 \ LIBUNA_BASE32_VARIANT_ALPHABET_NORMAL | LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_NONE | LIBUNA_BASE32_VARIANT_PADDING_REQUIRED #define LIBUNA_BASE32_VARIANT_HEX \ LIBUNA_BASE32_VARIANT_ALPHABET_HEX | LIBUNA_BASE32_VARIANT_CHARACTER_LIMIT_NONE | LIBUNA_BASE32_VARIANT_PADDING_REQUIRED /* Base32 processing flags */ enum LIBUNA_BASE32_FLAGS { LIBUNA_BASE32_FLAG_STRIP_WHITESPACE = 0x01 }; /* Base64 variants * Byte: * 0 - 1 Character limit * 2 - 3 Reserved * 4 Alphabet type (0 not supported) * 5 Reserved * 6 Padding (0 not supported) * 7 String encoding (0 is byte stream) */ enum LIBUNA_BASE64_VARIANTS { LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL = 0x00010000UL, LIBUNA_BASE64_VARIANT_ALPHABET_URL = 0x00020000UL, LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE = 0x00000000UL, LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_64 = 0x00000040UL, LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_76 = 0x0000004cUL, /* No padding */ LIBUNA_BASE64_VARIANT_PADDING_NONE = 0x01000000UL, /* Padding is optional */ LIBUNA_BASE64_VARIANT_PADDING_OPTIONAL = 0x02000000UL, /* Padding is required */ LIBUNA_BASE64_VARIANT_PADDING_REQUIRED = 0x03000000UL, /* Invalid base64 characters are considered padding */ LIBUNA_BASE64_VARIANT_PADDING_INVALID = 0x04000000UL, LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN = 0x10000000UL, LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN = 0x20000000UL, LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN = 0x30000000UL, LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN = 0x40000000UL }; #define LIBUNA_BASE64_VARIANT_RFC1421 \ LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL | LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_64 | LIBUNA_BASE64_VARIANT_PADDING_REQUIRED #define LIBUNA_BASE64_VARIANT_PEM \ LIBUNA_BASE64_VARIANT_RFC1421 #define LIBUNA_BASE64_VARIANT_RFC1642 \ LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL | LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE | LIBUNA_BASE64_VARIANT_PADDING_NONE #define LIBUNA_BASE64_VARIANT_UTF7 \ LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL | LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE | LIBUNA_BASE64_VARIANT_PADDING_INVALID #define LIBUNA_BASE64_VARIANT_RFC2045 \ LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL | LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_76 | LIBUNA_BASE64_VARIANT_PADDING_REQUIRED #define LIBUNA_BASE64_VARIANT_MIME \ LIBUNA_BASE64_VARIANT_RFC2045 #define LIBUNA_BASE64_VARIANT_URL \ LIBUNA_BASE64_VARIANT_ALPHABET_URL | LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE | LIBUNA_BASE64_VARIANT_PADDING_OPTIONAL /* TODO #define LIBUNA_BASE64_VARIANT_RFC3548 #define LIBUNA_BASE64_VARIANT_RFC4648 */ /* Base64 processing flags */ enum LIBUNA_BASE64_FLAGS { LIBUNA_BASE64_FLAG_STRIP_WHITESPACE = 0x01 }; #endif /* !defined( HAVE_LOCAL_LIBUNA ) */ #define LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM 0 #define LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM 0 /* Character case definitions */ enum LIBUNA_CASE { LIBUNA_CASE_LOWER = (uint8_t) 'l', LIBUNA_CASE_MIXED = (uint8_t) 'm', LIBUNA_CASE_UPPER = (uint8_t) 'u' }; /* Strip mode definitions */ enum LIBUNA_STRIP_MODES { LIBUNA_STRIP_MODE_LEADING_WHITESPACE, LIBUNA_STRIP_MODE_NON_WHITESPACE, LIBUNA_STRIP_MODE_TRAILING_WHITESPACE, LIBUNA_STRIP_MODE_INVALID_CHARACTER }; /* Character definitions */ #define LIBUNA_UNICODE_REPLACEMENT_CHARACTER 0x0000fffdUL #define LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX 0x0000ffffUL #define LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START 0x0000dc00UL #define LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END 0x0000dfffUL #define LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START 0x0000d800UL #define LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END 0x0000dbffUL #define LIBUNA_UNICODE_CHARACTER_MAX 0x0010ffffUL #define LIBUNA_UTF16_CHARACTER_MAX 0x0010ffffUL #define LIBUNA_UTF32_CHARACTER_MAX 0x7fffffffUL #define LIBUNA_ASCII_REPLACEMENT_CHARACTER 0x1a /* UTF-7 definitions */ #define LIBUNA_UTF7_IS_BASE64_ENCODED 0x80000000UL #endif /* !defined( _LIBUNA_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1255.h0000664000175000017500000000322713430101233024767 0ustar00lordyestalordyesta00000000000000/* * Windows 1255 codepage (Hebrew) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1255_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1255_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ 24 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ 40 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ 24 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1255_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_14.c0000664000175000017500000000541113430101233024404 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-14 codepage (Celtic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_14.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-14 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_14_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x1e02, 0x1e03, 0x00a3, 0x010a, 0x010b, 0x1e0a, 0x00a7, 0x1e80, 0x00a9, 0x1e82, 0x1e0b, 0x1ef2, 0x00ad, 0x00ae, 0x0178, 0x1e1e, 0x1e1f, 0x0120, 0x0121, 0x1e40, 0x1e41, 0x00b6, 0x1e56, 0x1e81, 0x1e57, 0x1e83, 0x1e60, 0x1ef3, 0x1e84, 0x1e85, 0x1e61, 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, 0x0174, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x1e6a, 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x0176, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0x0175, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x1e6b, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x0177, 0x00ff }; /* Unicode to ASCII character lookup table for ISO 8859-14 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x00c0[ 64 ] = { 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0x1a, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0x1a, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0x1a, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0x1a, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0x1a, 0xff, }; const uint8_t libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x0170[ 8 ] = { 0x1a, 0x1a, 0x1a, 0x1a, 0xd0, 0xf0, 0xde, 0xfe }; const uint8_t libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x1e80[ 8 ] = { 0xa8, 0xb8, 0xaa, 0xba, 0xbd, 0xbe, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_13.c0000664000175000017500000000712213430101233024404 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-13 codepage (Baltic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_13.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-13 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_13_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x201d, 0x00a2, 0x00a3, 0x00a4, 0x201e, 0x00a6, 0x00a7, 0x00d8, 0x00a9, 0x0156, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00c6, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x201c, 0x00b5, 0x00b6, 0x00b7, 0x00f8, 0x00b9, 0x0157, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00e6, 0x0104, 0x012e, 0x0100, 0x0106, 0x00c4, 0x00c5, 0x0118, 0x0112, 0x010c, 0x00c9, 0x0179, 0x0116, 0x0122, 0x0136, 0x012a, 0x013b, 0x0160, 0x0143, 0x0145, 0x00d3, 0x014c, 0x00d5, 0x00d6, 0x00d7, 0x0172, 0x0141, 0x015a, 0x016a, 0x00dc, 0x017b, 0x017d, 0x00df, 0x0105, 0x012f, 0x0101, 0x0107, 0x00e4, 0x00e5, 0x0119, 0x0113, 0x010d, 0x00e9, 0x017a, 0x0117, 0x0123, 0x0137, 0x012b, 0x013c, 0x0161, 0x0144, 0x0146, 0x00f3, 0x014d, 0x00f5, 0x00f6, 0x00f7, 0x0173, 0x0142, 0x015b, 0x016b, 0x00fc, 0x017c, 0x017e, 0x2019 }; /* Unicode to ASCII character lookup table for ISO 8859-13 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_13_unicode_to_byte_stream_base_0x00a0[ 224 ] = { 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0x1a, 0xa6, 0xa7, 0x1a, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, 0xb0, 0xb1, 0xb2, 0xb3, 0x1a, 0xb5, 0xb6, 0xb7, 0x1a, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc4, 0xc5, 0xaf, 0x1a, 0x1a, 0xc9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd3, 0x1a, 0xd5, 0xd6, 0xd7, 0xa8, 0x1a, 0x1a, 0x1a, 0xdc, 0x1a, 0x1a, 0xdf, 0x1a, 0x1a, 0x1a, 0x1a, 0xe4, 0xe5, 0xbf, 0x1a, 0x1a, 0xe9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xf3, 0x1a, 0xf5, 0xf6, 0xf7, 0xb8, 0x1a, 0x1a, 0x1a, 0xfc, 0x1a, 0x1a, 0x1a, 0xc2, 0xe2, 0x1a, 0x1a, 0xc0, 0xe0, 0xc3, 0xe3, 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0x1a, 0x1a, 0x1a, 0x1a, 0xc7, 0xe7, 0x1a, 0x1a, 0xcb, 0xeb, 0xc6, 0xe6, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xce, 0xee, 0x1a, 0x1a, 0xc1, 0xe1, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xcd, 0xed, 0x1a, 0x1a, 0x1a, 0xcf, 0xef, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, 0xf9, 0xd1, 0xf1, 0xd2, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd4, 0xf4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xaa, 0xba, 0x1a, 0x1a, 0xda, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd8, 0xf8, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xca, 0xea, 0xdd, 0xfd, 0xde, 0xfe, 0x1a }; const uint8_t libuna_codepage_iso_8859_13_unicode_to_byte_stream_base_0x2018[ 8 ] = { 0x1a, 0xff, 0x1a, 0x1a, 0xb4, 0xa1, 0xa5, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_8.h0000664000175000017500000000265213430101233024340 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-8 codepage (Hebrew) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_8_H ) #define _LIBUNA_CODEPAGE_ISO_8859_8_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_8_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x00a0[ 32 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x05d0[ 32 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_8_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_9.c0000664000175000017500000000400713430101233024330 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-9 codepage (Turkish) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_9.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-9 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_9_byte_stream_to_unicode_base_0xd0[ 48 ] = { 0x011e, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7, 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0130, 0x015e, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0x011f, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0131, 0x015f, 0x00ff }; /* Unicode to ASCII character lookup table for ISO 8859-9 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_9_unicode_to_byte_stream_base_0x00d0[ 48 ] = { 0x1a, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff }; libfsapfs-20190210/libuna/libuna_codepage_windows_1254.c0000664000175000017500000000507513430101233024764 0ustar00lordyestalordyesta00000000000000/* * Windows 1254 codepage (Turkish) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1254.h" /* Extended ASCII to Unicode character lookup table for Windows 1254 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ 32 ] = { 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, 0x02c6, 0x2030, 0x0160, 0x2039, 0x0152, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x02dc, 0x2122, 0x0161, 0x203a, 0x0153, 0xfffd, 0xfffd, 0x0178, }; const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ 16 ] = { 0x011e, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7, 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0130, 0x015e, 0x00df, }; const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ 16 ] = { 0x011f, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0131, 0x015f, 0x00ff, }; /* Unicode to ASCII character lookup table for Windows 1254 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ 48 ] = { 0x1a, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff, }; const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a, }; libfsapfs-20190210/libuna/libuna_codepage_windows_1258.c0000664000175000017500000000604313430101233024764 0ustar00lordyestalordyesta00000000000000/* * Windows 1258 codepage (Vietnamese) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_windows_1258.h" /* Extended ASCII to Unicode character lookup table for Windows 1258 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, 0x02c6, 0x2030, 0xfffd, 0x2039, 0x0152, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x02dc, 0x2122, 0xfffd, 0x203a, 0x0153, 0xfffd, 0xfffd, 0x0178, 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0x00c0, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x00c5, 0x00c6, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x0300, 0x00cd, 0x00ce, 0x00cf, 0x0110, 0x00d1, 0x0309, 0x00d3, 0x00d4, 0x01a0, 0x00d6, 0x00d7, 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x01af, 0x0303, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x00e5, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0301, 0x00ed, 0x00ee, 0x00ef, 0x0111, 0x00f1, 0x0323, 0x00f3, 0x00f4, 0x01a1, 0x00f6, 0x00f7, 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x01b0, 0x20ab, 0x00ff }; /* Unicode to ASCII character lookup table for Windows 1258 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ 72 ] = { 0xc0, 0xc1, 0xc2, 0x1a, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0x1a, 0xcd, 0xce, 0xcf, 0x1a, 0xd1, 0x1a, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, 0xe0, 0xe1, 0xe2, 0x1a, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0x1a, 0xed, 0xee, 0xef, 0x1a, 0xf1, 0x1a, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff, 0x1a, 0x1a, 0xc3, 0xe3, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ 24 ] = { 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_15.c0000664000175000017500000000345113430101233024407 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-15 codepage (Latin 9) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_15.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-15 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_15_byte_stream_to_unicode_base_0xa0[ 32 ] = { 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x20ac, 0x00a5, 0x0160, 0x00a7, 0x0161, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x017d, 0x00b5, 0x00b6, 0x00b7, 0x017e, 0x00b9, 0x00ba, 0x00bb, 0x0152, 0x0153, 0x0178, 0x00bf }; /* Unicode to ASCII character lookup table for ISO 8859-15 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_15_unicode_to_byte_stream_base_0x00a0[ 32 ] = { 0xa0, 0xa1, 0xa2, 0xa3, 0x1a, 0xa5, 0x1a, 0xa7, 0x1a, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0x1a, 0xb5, 0xb6, 0xb7, 0x1a, 0xb9, 0xba, 0xbb, 0x1a, 0x1a, 0x1a, 0xbf }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_7.c0000664000175000017500000000547313430101233024336 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-7 codepage (Greek) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_7.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-7 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_7_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x2018, 0x2019, 0x00a3, 0x20ac, 0x20af, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x037a, 0x00ab, 0x00ac, 0x00ad, 0xfffd, 0x2015, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0384, 0x0385, 0x0386, 0x00b7, 0x0388, 0x0389, 0x038a, 0x00bb, 0x038c, 0x00bd, 0x038e, 0x038f, 0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, 0x03a0, 0x03a1, 0xfffd, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, 0x03a8, 0x03a9, 0x03aa, 0x03ab, 0x03ac, 0x03ad, 0x03ae, 0x03af, 0x03b0, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0, 0x03c1, 0x03c2, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8, 0x03c9, 0x03ca, 0x03cb, 0x03cc, 0x03cd, 0x03ce, 0xfffd }; /* Unicode to ASCII character lookup table for ISO 8859-7 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_7_unicode_to_byte_stream_base_0x00a0[ 24 ] = { 0xa0, 0x1a, 0x1a, 0xa3, 0x1a, 0x1a, 0xa6, 0xa7, 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0x1a, 0x1a, 0xb0, 0xb1, 0xb2, 0xb3, 0x1a, 0x1a, 0x1a, 0xb7 }; const uint8_t libuna_codepage_iso_8859_7_unicode_to_byte_stream_base_0x0380[ 80 ] = { 0x1a, 0x1a, 0x1a, 0x1a, 0xb4, 0xb5, 0xb6, 0x1a, 0xb8, 0xb9, 0xba, 0x1a, 0xbc, 0x1a, 0xbe, 0xbf, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0x1a, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_9.h0000664000175000017500000000247613430101233024345 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-9 codepage (Turkish) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_9_H ) #define _LIBUNA_CODEPAGE_ISO_8859_9_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_9_byte_stream_to_unicode_base_0xd0[ 48 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_9_unicode_to_byte_stream_base_0x00d0[ 48 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_9_H ) */ libfsapfs-20190210/libuna/libuna_codepage_windows_1258.h0000664000175000017500000000267513430101233025000 0ustar00lordyestalordyesta00000000000000/* * Windows 1258 codepage (Vietnamese) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_WINDOWS_1258_H ) #define _LIBUNA_CODEPAGE_WINDOWS_1258_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ 128 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ 72 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ 24 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_WINDOWS_1258_H ) */ libfsapfs-20190210/libuna/libuna_base64_stream.c0000664000175000017500000022157213430101233023431 0ustar00lordyestalordyesta00000000000000/* * Base64 stream functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libuna_base64_stream.h" #include "libuna_definitions.h" #include "libuna_libcerror.h" #include "libuna_types.h" static uint8_t libuna_base64_sixtet_to_character_table[ 64 ] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' }; static uint8_t libuna_base64url_sixtet_to_character_table[ 64 ] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_' }; /* Copies a base64 character to a base64 sixtet * Returns 1 if successful, 0 if not a valid base64 character or -1 on error */ int libuna_base64_character_copy_to_sixtet( uint32_t base64_character, uint8_t *base64_sixtet, uint32_t base64_variant, libcerror_error_t **error ) { static char *function = "libuna_base64_character_copy_to_sixtet"; uint32_t safe_base64_sixtet = 0; uint8_t base64_character_62 = 0; uint8_t base64_character_63 = 0; if( base64_sixtet == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 sixtet.", function ); return( -1 ); } switch( base64_variant & 0x000f0000UL ) { case LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL: base64_character_62 = (uint8_t) '+'; base64_character_63 = (uint8_t) '/'; break; case LIBUNA_BASE64_VARIANT_ALPHABET_URL: base64_character_62 = (uint8_t) '-'; base64_character_63 = (uint8_t) '_'; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } if( ( base64_character & 0xffffff00UL ) != 0 ) { return( 0 ); } /* A-Z is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-Z */ if( ( base64_character >= (uint32_t) 'A' ) && ( base64_character <= (uint32_t) 'I' ) ) { safe_base64_sixtet = base64_character - (uint32_t) 'A'; } else if( ( base64_character >= (uint32_t) 'J' ) && ( base64_character <= (uint32_t) 'R' ) ) { safe_base64_sixtet = base64_character - (uint32_t) 'J' + 9; } else if( ( base64_character >= (uint32_t) 'S' ) && ( base64_character <= (uint32_t) 'Z' ) ) { safe_base64_sixtet = base64_character - (uint32_t) 'S' + 18; } /* a-z is not a continous range on an EBCDIC based system * it consists of the ranges: a-i, j-r, s-z */ else if( ( base64_character >= (uint32_t) 'a' ) && ( base64_character <= (uint32_t) 'i' ) ) { safe_base64_sixtet = base64_character - (uint32_t) 'a' + 26; } else if( ( base64_character >= (uint32_t) 'j' ) && ( base64_character <= (uint32_t) 'r' ) ) { safe_base64_sixtet = base64_character - (uint32_t) 'j' + 35; } else if( ( base64_character >= (uint32_t) 's' ) && ( base64_character <= (uint32_t) 'z' ) ) { safe_base64_sixtet = base64_character - (uint32_t) 's' + 44; } else if( ( base64_character >= (uint32_t) '0' ) && ( base64_character <= (uint32_t) '9' ) ) { safe_base64_sixtet = base64_character - (uint32_t) '0' + 52; } else if( base64_character == base64_character_62 ) { safe_base64_sixtet = 62; } else if( base64_character == base64_character_63 ) { safe_base64_sixtet = 63; } else { return( 0 ); } *base64_sixtet = (uint8_t) ( safe_base64_sixtet & 0xff ); return( 1 ); } /* Copies a base64 triplet from a base64 stream * * The padding size will still be set to indicate the number of * sixtets in the triplet * * Returns 1 if successful or -1 on error */ int libuna_base64_triplet_copy_from_base64_stream( uint32_t *base64_triplet, const uint8_t *base64_stream, size_t base64_stream_size, size_t *base64_stream_index, uint8_t *padding_size, uint32_t base64_variant, libcerror_error_t **error ) { static char *function = "libuna_base64_triplet_copy_from_base64_stream"; size_t base64_character_size = 0; size_t safe_base64_stream_index = 0; uint32_t base64_character = 0; uint32_t safe_base64_triplet = 0; uint8_t safe_padding_size = 0; uint8_t sixtet1 = 0; uint8_t sixtet2 = 0; uint8_t sixtet3 = 0; uint8_t sixtet4 = 0; int result = 0; if( base64_triplet == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 triplet.", function ); return( -1 ); } if( base64_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream.", function ); return( -1 ); } if( base64_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base64 stream size value exceeds maximum.", function ); return( -1 ); } if( base64_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream index.", function ); return( -1 ); } if( *base64_stream_index >= base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base64 stream string too small.", function ); return( -1 ); } if( padding_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid padding size.", function ); return( -1 ); } switch( base64_variant & 0x0f000000UL ) { case LIBUNA_BASE64_VARIANT_PADDING_NONE: case LIBUNA_BASE64_VARIANT_PADDING_OPTIONAL: case LIBUNA_BASE64_VARIANT_PADDING_REQUIRED: case LIBUNA_BASE64_VARIANT_PADDING_INVALID: break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character_size = 1; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base64_character_size = 2; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base64_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } safe_base64_stream_index = *base64_stream_index; if( ( safe_base64_stream_index + base64_character_size ) > base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 1st base64 character.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character = base64_stream[ safe_base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; result = libuna_base64_character_copy_to_sixtet( base64_character, &sixtet1, base64_variant, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 character to 1st sixtet.", function ); return( -1 ); } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 1st base64 character.", function ); return( -1 ); } if( ( safe_base64_stream_index + base64_character_size ) > base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 2nd base64 character.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character = base64_stream[ safe_base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; result = libuna_base64_character_copy_to_sixtet( base64_character, &sixtet2, base64_variant, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 character to 2nd sixtet.", function ); return( -1 ); } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 2nd base64 character.", function ); return( -1 ); } safe_padding_size = 2; if( ( safe_base64_stream_index + base64_character_size ) <= base64_stream_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character = base64_stream[ safe_base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; if( ( base64_character & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 3rd base64 character.", function ); return( -1 ); } if( base64_character == (uint32_t) '=' ) { if( ( base64_variant & 0x0f000000UL ) == LIBUNA_BASE64_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: padding where not supposed to - invalid 3rd base64 character.", function ); return( -1 ); } } else { result = libuna_base64_character_copy_to_sixtet( base64_character, &sixtet3, base64_variant, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 character to 3rd sixtet.", function ); return( -1 ); } else if( result == 0 ) { if( ( base64_variant & 0x0f000000UL ) != LIBUNA_BASE64_VARIANT_PADDING_INVALID ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 3rd base64 sixtet.", function ); return( -1 ); } } else { safe_padding_size -= 1; } } } else if( ( base64_variant & 0x0f000000UL ) != LIBUNA_BASE64_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 3rd base64 character.", function ); return( -1 ); } if( ( safe_base64_stream_index + base64_character_size ) <= base64_stream_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character = base64_stream[ safe_base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; if( ( base64_character & 0xffffff00UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 4th base64 character.", function ); return( -1 ); } if( base64_character == (uint32_t) '=' ) { if( ( base64_variant & 0x0f000000UL ) == LIBUNA_BASE64_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: padding where not supposed to - invalid 4th base64 character.", function ); return( -1 ); } } else { result = libuna_base64_character_copy_to_sixtet( base64_character, &sixtet4, base64_variant, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 character to 4th sixtet.", function ); return( -1 ); } else if( result == 0 ) { if( ( base64_variant & 0x0f000000UL ) != LIBUNA_BASE64_VARIANT_PADDING_INVALID ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 4th base64 sixtet.", function ); return( -1 ); } } else { if( safe_padding_size > 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: non-padding where not supposed to - invalid 4th base64 character.", function ); return( -1 ); } safe_padding_size -= 1; } } } else if( ( base64_variant & 0x0f000000UL ) != LIBUNA_BASE64_VARIANT_PADDING_NONE ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: missing 4th base64 character.", function ); return( -1 ); } safe_base64_triplet = sixtet1; safe_base64_triplet <<= 6; safe_base64_triplet |= sixtet2; safe_base64_triplet <<= 6; safe_base64_triplet |= sixtet3; safe_base64_triplet <<= 6; safe_base64_triplet |= sixtet4; *base64_triplet = safe_base64_triplet; *base64_stream_index = safe_base64_stream_index; *padding_size = safe_padding_size; return( 1 ); } /* Copies a base64 triplet to a base64 stream * Returns 1 if successful or -1 on error */ int libuna_base64_triplet_copy_to_base64_stream( uint32_t base64_triplet, uint8_t *base64_stream, size_t base64_stream_size, size_t *base64_stream_index, uint8_t padding_size, uint32_t base64_variant, libcerror_error_t **error ) { uint8_t *sixtet_to_character_table = NULL; static char *function = "libuna_base64_triplet_copy_to_base64_stream"; size_t base64_character_size = 0; size_t safe_base64_stream_index = 0; uint32_t base64_character = 0; uint8_t padding_character = 0; uint8_t sixtet1 = 0; uint8_t sixtet2 = 0; uint8_t sixtet3 = 0; uint8_t sixtet4 = 0; if( base64_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream.", function ); return( -1 ); } if( base64_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base64 stream size value exceeds maximum.", function ); return( -1 ); } if( base64_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream index.", function ); return( -1 ); } if( *base64_stream_index >= base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base64 stream string too small.", function ); return( -1 ); } if( padding_size > 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid padding size value out of bounds.", function ); return( -1 ); } switch( base64_variant & 0x000f0000UL ) { case LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL: sixtet_to_character_table = libuna_base64_sixtet_to_character_table; break; case LIBUNA_BASE64_VARIANT_ALPHABET_URL: sixtet_to_character_table = libuna_base64url_sixtet_to_character_table; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0x0f000000UL ) { case LIBUNA_BASE64_VARIANT_PADDING_NONE: case LIBUNA_BASE64_VARIANT_PADDING_OPTIONAL: case LIBUNA_BASE64_VARIANT_PADDING_INVALID: padding_character = 0; break; case LIBUNA_BASE64_VARIANT_PADDING_REQUIRED: padding_character = (uint8_t) '='; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character_size = 1; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base64_character_size = 2; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base64_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } safe_base64_stream_index = *base64_stream_index; /* Separate the 3 bytes value into 4 x 6 bit values */ sixtet4 = (uint8_t) ( base64_triplet & 0x3f ); base64_triplet >>= 6; sixtet3 = (uint8_t) ( base64_triplet & 0x3f ); base64_triplet >>= 6; sixtet2 = (uint8_t) ( base64_triplet & 0x3f ); base64_triplet >>= 6; sixtet1 = (uint8_t) ( base64_triplet & 0x3f ); /* Spread the encoding over 2 characters if 1 byte is available */ if( ( safe_base64_stream_index + ( base64_character_size * 2 ) ) > base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base64 stream is too small.", function ); return( -1 ); } base64_character = sixtet_to_character_table[ sixtet1 ]; switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_stream[ safe_base64_stream_index ] = (uint8_t) base64_character; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; base64_character = sixtet_to_character_table[ sixtet2 ]; switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_stream[ safe_base64_stream_index ] = (uint8_t) base64_character; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; /* Spread the encoding over 3 characters if 2 bytes are available * Otherwise pad the remaining bytes if required */ if( ( safe_base64_stream_index + base64_character_size ) > base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base64 stream is too small.", function ); return( -1 ); } if( ( padding_size < 2 ) || ( padding_character != 0 ) ) { if( padding_size < 2 ) { base64_character = sixtet_to_character_table[ sixtet3 ]; } else if( padding_character != 0 ) { base64_character = padding_character; } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_stream[ safe_base64_stream_index ] = (uint8_t) base64_character; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; } /* Spread the encoding over 4 characters if 3 bytes are available * Otherwise pad the remaining bytes if required */ if( ( safe_base64_stream_index + base64_character_size ) > base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base64 stream is too small.", function ); return( -1 ); } if( ( padding_size < 1 ) || ( padding_character != 0 ) ) { if( padding_size < 1 ) { base64_character = sixtet_to_character_table[ sixtet4 ]; } else if( padding_character != 0 ) { base64_character = padding_character; } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_stream[ safe_base64_stream_index ] = (uint8_t) base64_character; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; } *base64_stream_index = safe_base64_stream_index; return( 1 ); } /* Copies a base64 triplet from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base64_triplet_copy_from_byte_stream( uint32_t *base64_triplet, const uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t *padding_size, libcerror_error_t **error ) { static char *function = "libuna_base64_triplet_copy_from_byte_stream"; size_t safe_byte_stream_index = 0; uint32_t safe_base64_triplet = 0; uint8_t safe_padding_size = 0; if( base64_triplet == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 triplet.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } if( padding_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid padding size.", function ); return( -1 ); } safe_byte_stream_index = *byte_stream_index; /* Determine the value of 3 bytes (24 bits) */ safe_base64_triplet = byte_stream[ safe_byte_stream_index++ ]; safe_padding_size = 2; safe_base64_triplet <<= 8; if( safe_byte_stream_index < byte_stream_size ) { safe_base64_triplet |= byte_stream[ safe_byte_stream_index++ ]; safe_padding_size -= 1; } safe_base64_triplet <<= 8; if( safe_byte_stream_index < byte_stream_size ) { safe_base64_triplet |= byte_stream[ safe_byte_stream_index++ ]; safe_padding_size -= 1; } *base64_triplet = safe_base64_triplet; *byte_stream_index = safe_byte_stream_index; *padding_size = safe_padding_size; return( 1 ); } /* Copies a base64 triplet to a byte stream * Returns 1 if successful or -1 on error */ int libuna_base64_triplet_copy_to_byte_stream( uint32_t base64_triplet, uint8_t *byte_stream, size_t byte_stream_size, size_t *byte_stream_index, uint8_t padding_size, libcerror_error_t **error ) { static char *function = "libuna_base64_triplet_copy_to_byte_stream"; size_t safe_byte_stream_index = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream index.", function ); return( -1 ); } if( *byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } if( padding_size > 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid padding size value out of bounds.", function ); return( -1 ); } safe_byte_stream_index = *byte_stream_index; byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( ( base64_triplet >> 16 ) & 0xff ); if( padding_size <= 1 ) { if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream string too small.", function ); return( -1 ); } byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( ( base64_triplet >> 8 ) & 0xff ); } if( padding_size == 0 ) { if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: byte stream is too small.", function ); return( -1 ); } byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( base64_triplet & 0xff ); } *byte_stream_index = safe_byte_stream_index; return( 1 ); } /* Determines the size of a byte stream from a base64 stream * * LIBUNA_BASE64_FLAG_STRIP_WHITESPACE removes leading space and tab characters, * and trailing space, tab and end of line characters * * Returns 1 if successful or -1 on error */ int libuna_base64_stream_size_to_byte_stream( const uint8_t *base64_stream, size_t base64_stream_size, size_t *byte_stream_size, uint32_t base64_variant, uint8_t flags, libcerror_error_t **error ) { static char *function = "libuna_base64_stream_size_to_byte_stream"; size_t base64_character_size = 0; size_t base64_stream_index = 0; size_t number_of_characters = 0; size_t safe_byte_stream_size = 0; size_t whitespace_size = 0; uint32_t base64_character1 = 0; uint32_t base64_character2 = 0; uint8_t base64_character_62 = 0; uint8_t base64_character_63 = 0; uint8_t character_limit = 0; uint8_t padding_size = 0; uint8_t strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; if( base64_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream.", function ); return( -1 ); } if( ( base64_stream_size == 0 ) || ( base64_stream_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid base64 stream size value out of bounds.", function ); return( -1 ); } if( byte_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream size.", function ); return( -1 ); } switch( base64_variant & 0x000000ffUL ) { case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0x000f0000UL ) { case LIBUNA_BASE64_VARIANT_ALPHABET_NORMAL: base64_character_62 = (uint8_t) '+'; base64_character_63 = (uint8_t) '/'; break; case LIBUNA_BASE64_VARIANT_ALPHABET_URL: base64_character_62 = (uint8_t) '-'; base64_character_63 = (uint8_t) '_'; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character_size = 1; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base64_character_size = 2; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base64_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } if( base64_stream_size < base64_character_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid base64 stream value too small.", function ); return( -1 ); } if( ( flags & ~( LIBUNA_BASE64_FLAG_STRIP_WHITESPACE ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags.", function ); return( -1 ); } base64_stream_index = base64_stream_size - base64_character_size; whitespace_size = 0; while( base64_stream_index > base64_character_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character1 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; } base64_stream_index -= base64_character_size; if( ( base64_character1 == (uint32_t) '\n' ) || ( base64_character1 == (uint32_t) '\r' ) ) { whitespace_size += base64_character_size; } else if( ( flags & LIBUNA_BASE64_FLAG_STRIP_WHITESPACE ) == 0 ) { break; } else if( ( base64_character1 == (uint32_t) ' ' ) || ( base64_character1 == (uint32_t) '\t' ) || ( base64_character1 == (uint32_t) '\v' ) ) { whitespace_size += base64_character_size; } else { break; } } base64_stream_size -= whitespace_size; base64_stream_index = base64_stream_size - base64_character_size; if( base64_stream_size < base64_character_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid base64 stream value too small.", function ); return( -1 ); } if( base64_stream_index > base64_character_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character1 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; } base64_stream_index -= base64_character_size; if( base64_character1 == (uint32_t) '=' ) { padding_size += 1; } } if( base64_stream_index > base64_character_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character1 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; } base64_stream_index -= base64_character_size; if( base64_character1 == (uint32_t) '=' ) { padding_size += 1; } } if( base64_stream_index > base64_character_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character1 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; } if( base64_character1 == (uint32_t) '=' ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid number of padding bytes.", function ); return( -1 ); } } base64_stream_index = 0; whitespace_size = 0; while( base64_stream_index < ( base64_stream_size - ( padding_size * base64_character_size ) ) ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character1 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; } base64_stream_index += base64_character_size; if( ( base64_character1 == (uint32_t) '\n' ) || ( base64_character1 == (uint32_t) '\r' ) ) { if( ( strip_mode != LIBUNA_STRIP_MODE_NON_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { if( ( base64_stream_index + base64_character_size ) < base64_stream_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character2 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; } if( ( base64_character2 == (uint32_t) '\n' ) || ( base64_character2 == (uint32_t) '\r' ) ) { base64_stream_index += base64_character_size; whitespace_size += base64_character_size; } } strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; } if( ( number_of_characters != 0 ) && ( character_limit != 0 ) ) { if( number_of_characters != (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in line does not match character limit.", function ); return( -1 ); } number_of_characters = 0; } whitespace_size += base64_character_size; } else if( ( base64_character1 == (uint32_t) ' ' ) || ( base64_character1 == (uint32_t) '\t' ) || ( base64_character1 == (uint32_t) '\v' ) ) { if( ( flags & LIBUNA_BASE64_FLAG_STRIP_WHITESPACE ) != 0 ) { if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_TRAILING_WHITESPACE; } if( ( strip_mode != LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { whitespace_size += base64_character_size; } } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } else if( strip_mode == LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } else if( strip_mode == LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { /* A-Z is not a continous range on an EBCDIC based system * it consists of the ranges: A-I, J-R, S-Z */ if( ( base64_character1 >= (uint32_t) 'A' ) && ( base64_character1 <= (uint32_t) 'I' ) ) { number_of_characters++; } else if( ( base64_character1 >= (uint32_t) 'J' ) && ( base64_character1 <= (uint32_t) 'R' ) ) { number_of_characters++; } else if( ( base64_character1 >= (uint32_t) 'S' ) && ( base64_character1 <= (uint32_t) 'Z' ) ) { number_of_characters++; } /* a-z is not a continous range on an EBCDIC based system * it consists of the ranges: a-i, j-r, s-z */ else if( ( base64_character1 >= (uint32_t) 'a' ) && ( base64_character1 <= (uint32_t) 'i' ) ) { number_of_characters++; } else if( ( base64_character1 >= (uint32_t) 'j' ) && ( base64_character1 <= (uint32_t) 'r' ) ) { number_of_characters++; } else if( ( base64_character1 >= (uint32_t) 's' ) && ( base64_character1 <= (uint32_t) 'z' ) ) { number_of_characters++; } else if( ( base64_character1 >= (uint32_t) '0' ) && ( base64_character1 <= (uint32_t) '9' ) ) { number_of_characters++; } else if( ( base64_character1 == (uint32_t) base64_character_62 ) || ( base64_character1 == (uint32_t) base64_character_63 ) ) { number_of_characters++; } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid character in base64 stream at index: %" PRIzd ".", function, base64_stream_index - base64_character_size ); return( -1 ); } } if( character_limit != 0 ) { if( number_of_characters > (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in last line exceed maximum.", function ); return( -1 ); } } base64_stream_size -= whitespace_size; /* Make sure the byte stream is able to hold * at least 3 bytes for each 4 base64 characters */ base64_character_size *= 4; safe_byte_stream_size = base64_stream_size / base64_character_size; if( ( base64_stream_size % base64_character_size ) != 0 ) { safe_byte_stream_size += 1; } safe_byte_stream_size *= 3; /* The padding size contains the number of bytes to correct */ *byte_stream_size = safe_byte_stream_size - padding_size; return( 1 ); } /* Copies a byte stream from a base64 stream * * LIBUNA_BASE64_FLAG_STRIP_WHITESPACE removes leading space and tab characters, * and trailing space, tab and end of line characters * * Returns 1 if successful or -1 on error */ int libuna_base64_stream_copy_to_byte_stream( const uint8_t *base64_stream, size_t base64_stream_size, uint8_t *byte_stream, size_t byte_stream_size, uint32_t base64_variant, uint8_t flags, libcerror_error_t **error ) { static char *function = "libuna_base64_stream_copy_to_byte_stream"; size_t base64_character_size = 0; size_t base64_stream_index = 0; size_t byte_stream_index = 0; size_t number_of_characters = 0; size_t whitespace_size = 0; uint32_t base64_character1 = 0; uint32_t base64_character2 = 0; uint32_t base64_triplet = 0; uint8_t character_limit = 0; uint8_t padding_size = 0; uint8_t strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; if( base64_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream.", function ); return( -1 ); } if( base64_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base64 stream size value exceeds maximum.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } switch( base64_variant & 0x000000ffUL ) { case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character_size = 1; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base64_character_size = 2; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base64_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } if( base64_stream_size < base64_character_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid base64 stream value too small.", function ); return( -1 ); } if( ( flags & ~( LIBUNA_BASE64_FLAG_STRIP_WHITESPACE ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags.", function ); return( -1 ); } base64_stream_index = base64_stream_size - base64_character_size; whitespace_size = 0; while( base64_stream_index > base64_character_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character1 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; } base64_stream_index -= base64_character_size; if( ( base64_character1 == (uint32_t) '\n' ) || ( base64_character1 == (uint32_t) '\r' ) ) { whitespace_size += base64_character_size; } else if( ( flags & LIBUNA_BASE64_FLAG_STRIP_WHITESPACE ) == 0 ) { break; } else if( ( base64_character1 == (uint32_t) ' ' ) || ( base64_character1 == (uint32_t) '\t' ) || ( base64_character1 == (uint32_t) '\v' ) ) { whitespace_size += base64_character_size; } else { break; } } base64_stream_size -= whitespace_size; base64_stream_index = 0; if( ( flags & LIBUNA_BASE64_FLAG_STRIP_WHITESPACE ) == 0 ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } while( base64_stream_index < base64_stream_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character1 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character1 ); break; } base64_stream_index += base64_character_size; if( ( base64_character1 == (uint32_t) '\n' ) || ( base64_character1 == (uint32_t) '\r' ) ) { if( ( strip_mode != LIBUNA_STRIP_MODE_NON_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } else { if( ( base64_stream_index + base64_character_size ) < base64_stream_size ) { switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character2 = base64_stream[ base64_stream_index ]; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_to_uint16_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_to_uint16_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_to_uint32_big_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_to_uint32_little_endian( &( base64_stream[ base64_stream_index ] ), base64_character2 ); break; } if( ( base64_character2 == (uint32_t) '\n' ) || ( base64_character2 == (uint32_t) '\r' ) ) { base64_stream_index += base64_character_size; } } strip_mode = LIBUNA_STRIP_MODE_LEADING_WHITESPACE; } if( character_limit != 0 ) { if( number_of_characters != (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in line does not match character limit.", function ); return( -1 ); } number_of_characters = 0; } } else if( ( base64_character1 == (uint32_t) ' ' ) || ( base64_character1 == (uint32_t) '\t' ) || ( base64_character1 == (uint32_t) '\v' ) ) { if( ( flags & LIBUNA_BASE64_FLAG_STRIP_WHITESPACE ) != 0 ) { if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_TRAILING_WHITESPACE; } if( ( strip_mode != LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) && ( strip_mode != LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } else { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } } else if( strip_mode == LIBUNA_STRIP_MODE_LEADING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_NON_WHITESPACE; } else if( strip_mode == LIBUNA_STRIP_MODE_TRAILING_WHITESPACE ) { strip_mode = LIBUNA_STRIP_MODE_INVALID_CHARACTER; } if( strip_mode == LIBUNA_STRIP_MODE_INVALID_CHARACTER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: invalid character in base64 stream at index: %" PRIzd ".", function, base64_stream_index - base64_character_size ); return( -1 ); } if( strip_mode == LIBUNA_STRIP_MODE_NON_WHITESPACE ) { if( padding_size > 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 1st base64 sixtet.", function ); return( -1 ); } base64_stream_index -= base64_character_size; /* Convert the base64 stream into a base64 triplet */ if( libuna_base64_triplet_copy_from_base64_stream( &base64_triplet, base64_stream, base64_stream_size, &base64_stream_index, &padding_size, base64_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 triplet from base64 stream.", function ); return( -1 ); } /* Convert the base64 triplet into a byte stream */ if( libuna_base64_triplet_copy_to_byte_stream( base64_triplet, byte_stream, byte_stream_size, &byte_stream_index, padding_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 triplet to byte stream.", function ); return( -1 ); } number_of_characters += 4 - padding_size; } } if( character_limit != 0 ) { if( number_of_characters > (size_t) character_limit ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: number of characters in last line exceed maximum.", function ); return( -1 ); } } return( 1 ); } /* Determines the size of a base64 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base64_stream_size_from_byte_stream( const uint8_t *byte_stream, size_t byte_stream_size, size_t *base64_stream_size, uint32_t base64_variant, libcerror_error_t **error ) { static char *function = "libuna_base64_stream_size_from_byte_stream"; size_t base64_character_size = 0; size_t calculated_base64_stream_size = 0; size_t remaining_size = 0; size_t whitespace_size = 0; uint8_t character_limit = 0; uint8_t padding_character = 0; if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } if( base64_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream size.", function ); return( -1 ); } switch( base64_variant & 0x000000ffUL ) { case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0x0f000000UL ) { case LIBUNA_BASE64_VARIANT_PADDING_NONE: padding_character = 0; break; case LIBUNA_BASE64_VARIANT_PADDING_OPTIONAL: padding_character = (uint8_t) '='; break; case LIBUNA_BASE64_VARIANT_PADDING_REQUIRED: padding_character = (uint8_t) '='; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character_size = 1; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base64_character_size = 2; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base64_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } /* Make sure the base64 stream is able to hold * at least 4 base64 characters for each 3 bytes */ calculated_base64_stream_size = ( byte_stream_size / 3 ) * 4; remaining_size = byte_stream_size % 3; if( remaining_size != 0 ) { if( padding_character != 0 ) { calculated_base64_stream_size += 4; } else if( remaining_size == 1 ) { calculated_base64_stream_size += 2; } else if( remaining_size == 2 ) { calculated_base64_stream_size += 3; } } if( character_limit != 0 ) { if( calculated_base64_stream_size > character_limit ) { whitespace_size = calculated_base64_stream_size / character_limit; if( ( calculated_base64_stream_size % character_limit ) != 0 ) { whitespace_size += 1; } calculated_base64_stream_size += whitespace_size; } calculated_base64_stream_size += 1; } calculated_base64_stream_size *= base64_character_size; *base64_stream_size = calculated_base64_stream_size; return( 1 ); } /* Copies a base64 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base64_stream_copy_from_byte_stream( uint8_t *base64_stream, size_t base64_stream_size, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base64_variant, libcerror_error_t **error ) { static char *function = "libuna_base64_stream_copy_from_byte_stream"; size_t base64_stream_index = 0; if( libuna_base64_stream_with_index_copy_from_byte_stream( base64_stream, base64_stream_size, &base64_stream_index, byte_stream, byte_stream_size, base64_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy base64 stream from byte stream.", function ); return( -1 ); } return( 1 ); } /* Copies a base64 stream from a byte stream * Returns 1 if successful or -1 on error */ int libuna_base64_stream_with_index_copy_from_byte_stream( uint8_t *base64_stream, size_t base64_stream_size, size_t *base64_stream_index, const uint8_t *byte_stream, size_t byte_stream_size, uint32_t base64_variant, libcerror_error_t **error ) { static char *function = "libuna_base64_stream_with_index_copy_from_byte_stream"; size_t base64_character_size = 0; size_t calculated_base64_stream_size = 0; size_t byte_stream_index = 0; size_t number_of_characters = 0; size_t remaining_size = 0; size_t safe_base64_stream_index = 0; size_t whitespace_size = 0; uint32_t base64_character = 0; uint32_t base64_triplet = 0; uint8_t character_limit = 0; uint8_t padding_character = 0; uint8_t padding_size = 0; if( base64_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream.", function ); return( -1 ); } if( base64_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid base64 stream size value exceeds maximum.", function ); return( -1 ); } if( base64_stream_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid base64 stream index.", function ); return( -1 ); } if( *base64_stream_index >= base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base64 stream string too small.", function ); return( -1 ); } if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid byte stream.", function ); return( -1 ); } if( byte_stream_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid byte stream size value exceeds maximum.", function ); return( -1 ); } switch( base64_variant & 0x000000ffUL ) { case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_NONE: character_limit = 0; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_64: character_limit = 64; break; case LIBUNA_BASE64_VARIANT_CHARACTER_LIMIT_76: character_limit = 76; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0x0f000000UL ) { case LIBUNA_BASE64_VARIANT_PADDING_NONE: padding_character = 0; break; case LIBUNA_BASE64_VARIANT_PADDING_OPTIONAL: padding_character = (uint8_t) '='; break; case LIBUNA_BASE64_VARIANT_PADDING_REQUIRED: padding_character = (uint8_t) '='; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_character_size = 1; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: base64_character_size = 2; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: base64_character_size = 4; break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported base64 variant.", function ); return( -1 ); } safe_base64_stream_index = *base64_stream_index; /* Make sure the base64 stream is able to hold * at least 4 base64 characters for each 3 bytes */ calculated_base64_stream_size = ( byte_stream_size / 3 ) * 4; remaining_size = byte_stream_size % 3; if( remaining_size != 0 ) { if( padding_character != 0 ) { calculated_base64_stream_size += 4; } else if( remaining_size == 1 ) { calculated_base64_stream_size += 2; } else if( remaining_size == 2 ) { calculated_base64_stream_size += 3; } } if( character_limit != 0 ) { if( calculated_base64_stream_size > character_limit ) { whitespace_size = calculated_base64_stream_size / character_limit; if( ( calculated_base64_stream_size % character_limit ) != 0 ) { whitespace_size += 1; } calculated_base64_stream_size += whitespace_size; } calculated_base64_stream_size += 1; } calculated_base64_stream_size *= base64_character_size; if( base64_stream_size < calculated_base64_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: base64 stream is too small.", function ); return( -1 ); } while( byte_stream_index < byte_stream_size ) { /* Convert the byte stream into a base64 triplet */ if( libuna_base64_triplet_copy_from_byte_stream( &base64_triplet, byte_stream, byte_stream_size, &byte_stream_index, &padding_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 triplet from byte stream.", function ); return( -1 ); } /* Convert the base64 triplet into a base64 stream */ if( libuna_base64_triplet_copy_to_base64_stream( base64_triplet, base64_stream, base64_stream_size, &safe_base64_stream_index, padding_size, base64_variant, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy base64 triplet to base64 stream.", function ); return( -1 ); } if( character_limit != 0 ) { number_of_characters += 4; if( number_of_characters >= (size_t) character_limit ) { base64_character = (uint32_t) '\n'; switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_stream[ safe_base64_stream_index ] = (uint8_t) base64_character; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; number_of_characters = 0; } } } if( character_limit != 0 ) { if( number_of_characters != 0 ) { base64_character = (uint32_t) '\n'; switch( base64_variant & 0xf0000000UL ) { case LIBUNA_BASE64_VARIANT_ENCODING_BYTE_STREAM: base64_stream[ safe_base64_stream_index ] = (uint8_t) base64_character; break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_BIG_ENDIAN: byte_stream_copy_from_uint16_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF16_LITTLE_ENDIAN: byte_stream_copy_from_uint16_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_BIG_ENDIAN: byte_stream_copy_from_uint32_big_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; case LIBUNA_BASE64_VARIANT_ENCODING_UTF32_LITTLE_ENDIAN: byte_stream_copy_from_uint32_little_endian( &( base64_stream[ safe_base64_stream_index ] ), base64_character ); break; } safe_base64_stream_index += base64_character_size; } } *base64_stream_index = safe_base64_stream_index; return( 1 ); } libfsapfs-20190210/libuna/libuna_error.c0000664000175000017500000000550413430101233022116 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libuna_error.h" #include "libuna_libcerror.h" #if !defined( HAVE_LOCAL_LIBUNA ) /* Free an error and its elements */ void libuna_error_free( libuna_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libuna_error_fprint( libuna_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libuna_error_sprint( libuna_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libuna_error_backtrace_fprint( libuna_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libuna_error_backtrace_sprint( libuna_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBUNA ) */ libfsapfs-20190210/libuna/libuna_codepage_koi8_u.c0000664000175000017500000000600013430101233024002 0ustar00lordyestalordyesta00000000000000/* * KOI8-U codepage (Ukrainian Cyrillic) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_koi8_u.h" /* Extended ASCII to Unicode character lookup table for KOI8-U codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ 128 ] = { 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524, 0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590, 0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248, 0x2264, 0x2265, 0x00a0, 0x2321, 0x00b0, 0x00b2, 0x00b7, 0x00f7, 0x2550, 0x2551, 0x2552, 0x0451, 0x0454, 0x2554, 0x0456, 0x0457, 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x0491, 0x255d, 0x255e, 0x255f, 0x2560, 0x2561, 0x0401, 0x0404, 0x2563, 0x0406, 0x0407, 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x0490, 0x256c, 0x00a9, 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, 0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, 0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, 0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a }; /* Unicode to ASCII character lookup table for KOI8-U codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ 64 ] = { 0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, 0xf2, 0xf3, 0xf4, 0xf5, 0xe6, 0xe8, 0xe3, 0xfe, 0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1, 0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde, 0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1 }; const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ 32 ] = { 0xa0, 0xa1, 0xa2, 0x1a, 0xa5, 0x1a, 0x1a, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0x1a, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0x1a, 0xb5, 0x1a, 0x1a, 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0x1a, 0xbe, 0x1a, 0x1a, 0x1a }; libfsapfs-20190210/libuna/libuna_codepage_iso_8859_13.h0000664000175000017500000000266113430101233024414 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-13 codepage (Baltic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_13_H ) #define _LIBUNA_CODEPAGE_ISO_8859_13_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_13_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_13_unicode_to_byte_stream_base_0x00a0[ 224 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_13_unicode_to_byte_stream_base_0x2018[ 8 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_13_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_7.h0000664000175000017500000000265113430101233024336 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-7 codepage (Greek) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_7_H ) #define _LIBUNA_CODEPAGE_ISO_8859_7_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_7_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_7_unicode_to_byte_stream_base_0x00a0[ 24 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_7_unicode_to_byte_stream_base_0x0380[ 80 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_7_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_14.h0000664000175000017500000000303513430101233024411 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-14 codepage (Celtic) functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBUNA_CODEPAGE_ISO_8859_14_H ) #define _LIBUNA_CODEPAGE_ISO_8859_14_H #include #include #include "libuna_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBUNA_EXTERN_VARIABLE \ const uint16_t libuna_codepage_iso_8859_14_byte_stream_to_unicode_base_0xa0[ 96 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x00c0[ 64 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x0170[ 8 ]; LIBUNA_EXTERN_VARIABLE \ const uint8_t libuna_codepage_iso_8859_14_unicode_to_byte_stream_base_0x1e80[ 8 ]; #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBUNA_CODEPAGE_ISO_8859_14_H ) */ libfsapfs-20190210/libuna/libuna_codepage_iso_8859_16.c0000664000175000017500000000634213430101233024412 0ustar00lordyestalordyesta00000000000000/* * ISO 8859-16 codepage (Latin 10) function * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libuna_codepage_iso_8859_16.h" /* Extended ASCII to Unicode character lookup table for ISO 8859-16 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_iso_8859_16_byte_stream_to_unicode_base_0xa0[ 96 ] = { 0x00a0, 0x0104, 0x0105, 0x0141, 0x20ac, 0x201e, 0x0160, 0x00a7, 0x0161, 0x00a9, 0x0218, 0x00ab, 0x0179, 0x00ad, 0x017a, 0x017b, 0x00b0, 0x00b1, 0x010c, 0x0142, 0x017d, 0x201d, 0x00b6, 0x00b7, 0x017e, 0x010d, 0x0219, 0x00bb, 0x0152, 0x0153, 0x0178, 0x017c, 0x00c0, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x0106, 0x00c6, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, 0x0110, 0x0143, 0x00d2, 0x00d3, 0x00d4, 0x0150, 0x00d6, 0x015a, 0x0170, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0118, 0x021a, 0x00df, 0x00e0, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x0107, 0x00e6, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef, 0x0111, 0x0144, 0x00f2, 0x00f3, 0x00f4, 0x0151, 0x00f6, 0x015b, 0x0171, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0119, 0x021b, 0x00ff }; /* Unicode to ASCII character lookup table for ISO 8859-16 codepage * Unknown are filled with the ASCII replacement character 0x1a */ const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x00a8[ 96 ] = { 0x1a, 0xa9, 0x1a, 0xab, 0x1a, 0xad, 0x1a, 0x1a, 0xb0, 0xb1, 0x1a, 0x1a, 0x1a, 0x1a, 0xb6, 0xb7, 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a, 0xc0, 0xc1, 0xc2, 0x1a, 0xc4, 0x1a, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0x1a, 0x1a, 0xd2, 0xd3, 0xd4, 0x1a, 0xd6, 0x1a, 0x1a, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, 0xe0, 0xe1, 0xe2, 0x1a, 0xe4, 0x1a, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0x1a, 0x1a, 0xf2, 0xf3, 0xf4, 0x1a, 0xf6, 0x1a, 0x1a, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff, 0x1a, 0x1a, 0xc3, 0xe3, 0xa1, 0xa2, 0xc5, 0xe5 }; const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0140[ 8 ] = { 0x1a, 0xa3, 0xb3, 0xd1, 0xf1, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0150[ 8 ] = { 0xd5, 0xf5, 0xbc, 0xbd, 0x1a, 0x1a, 0x1a, 0x1a }; const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0178[ 8 ] = { 0xbe, 0xac, 0xae, 0xaf, 0xbf, 0xb4, 0xb8, 0x1a }; const uint8_t libuna_codepage_iso_8859_16_unicode_to_byte_stream_base_0x0218[ 8 ] = { 0xaa, 0xba, 0xde, 0xfe, 0x1a, 0x1a, 0x1a, 0x1a }; libfsapfs-20190210/Makefile.in0000664000175000017500000012510513430101253020064 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = include/libfsapfs/definitions.h \ include/libfsapfs/features.h include/libfsapfs/types.h \ dpkg/changelog libfsapfs.pc libfsapfs.spec CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgconfigdir)" DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libfsapfs.pc.in \ $(srcdir)/libfsapfs.spec.in $(top_srcdir)/dpkg/changelog.in \ $(top_srcdir)/include/libfsapfs/definitions.h.in \ $(top_srcdir)/include/libfsapfs/features.h.in \ $(top_srcdir)/include/libfsapfs/types.h.in ABOUT-NLS AUTHORS \ COPYING ChangeLog INSTALL NEWS README compile config.guess \ config.rpath config.sub install-sh ltmain.sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = \ include \ common \ libcerror \ libcthreads \ libcdata \ libclocale \ libcnotify \ libcsplit \ libuna \ libcfile \ libcpath \ libbfio \ libfcache \ libfdata \ libfdatetime \ libfguid \ libhmac \ libcaes \ libfsapfs \ pyfsapfs \ pyfsapfs-python2 \ pyfsapfs-python3 \ fsapfstools \ po \ manuals \ tests \ msvscpp DPKG_FILES = \ dpkg/changelog \ dpkg/changelog.in \ dpkg/compat \ dpkg/control \ dpkg/copyright \ dpkg/rules \ dpkg/libfsapfs-dev.install \ dpkg/libfsapfs.install \ dpkg/libfsapfs-python.install \ dpkg/libfsapfs-python3.install \ dpkg/libfsapfs-tools.install \ dpkg/source/format GETTEXT_FILES = \ config.rpath \ po/Makevars.in PKGCONFIG_FILES = \ libfsapfs.pc.in SETUP_PY_FILES = \ setup.py SPEC_FILES = \ libfsapfs.spec \ libfsapfs.spec.in EXTRA_DIST = \ $(DPKG_FILES) \ $(GETTEXT_FILES) \ $(PKGCONFIG_FILES) \ $(SETUP_PY_FILES) \ $(SPEC_FILES) MAINTAINERCLEANFILES = \ Makefile.in pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ libfsapfs.pc all: all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): include/libfsapfs/definitions.h: $(top_builddir)/config.status $(top_srcdir)/include/libfsapfs/definitions.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ include/libfsapfs/features.h: $(top_builddir)/config.status $(top_srcdir)/include/libfsapfs/features.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ include/libfsapfs/types.h: $(top_builddir)/config.status $(top_srcdir)/include/libfsapfs/types.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ dpkg/changelog: $(top_builddir)/config.status $(top_srcdir)/dpkg/changelog.in cd $(top_builddir) && $(SHELL) ./config.status $@ libfsapfs.pc: $(top_builddir)/config.status $(srcdir)/libfsapfs.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ libfsapfs.spec: $(top_builddir)/config.status $(srcdir)/libfsapfs.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pkgconfigDATA .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip distcheck distclean distclean-generic \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkgconfigDATA install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-pkgconfigDATA .PRECIOUS: Makefile libtool: @LIBTOOL_DEPS@ cd $(srcdir) && $(SHELL) ./config.status --recheck lib: library library: (cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcthreads && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfcache && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdata && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdatetime && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfguid && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libhmac && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libcaes && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/libfsapfs && $(MAKE) $(AM_MAKEFLAGS)) (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)) distclean: clean /bin/rm -f Makefile /bin/rm -f config.status /bin/rm -f config.cache /bin/rm -f config.log /bin/rm -f libfsapfs.pc /bin/rm -f libfsapfs.spec @for dir in ${subdirs}; do \ (cd $$dir && $(MAKE) distclean) \ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" splint: (cd $(srcdir)/libcerror && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcthreads && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcdata && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libclocale && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcsplit && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcfile && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcpath && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libbfio && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfcache && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdata && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfdatetime && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfguid && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libhmac && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libcaes && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/libfsapfs && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/fsapfstools && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/po && $(MAKE) splint $(AM_MAKEFLAGS)) (cd $(srcdir)/tests && $(MAKE) splint $(AM_MAKEFLAGS)) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/ChangeLog0000664000175000017500000000457713416700346017616 0ustar00lordyestalordyesta00000000000000TODO * B-tree ** Validate (expected) btree level to detect loops - added maximum recursion depth for now * Validate checksum ** B-tree node ** Container key bag ** Volume key bag ** Reaper ** Object map ** Space manager * Container superblock read file IO handle add block size support * use container data block vector in read file IO handle ** Volume superblock ** Container map ** Container key bag? * Handle file size of 0, mapped file size does not support 0 ? * Container data handle add decryption support and use it to read container key bag? * add snapshot support library: * check if data block vector allocated size matches size of file extents * get_extent function, check inode flags and set extent is sparse flag * expose directory entry added time * improve format support ** check for more compression methods ** Add resource fork support ** read zlib compressed resource fork data footer ** Check deflate compressed files edge case where first byte is 0x#f * change container read bootstap as advised in documentation ** read backup container superblocks * API ** separate internal external attribute descriptor and API external descriptor ** Add function to provide volume size ** Add function to provide volume date and time values * optimization ** read inode and extended attributes at once ** cache uncompressed blocks * clean up / restructure ** refactor libfsapfs_encryption_aes_key_unwrap to use encryption context? Python bindings: * add extents object? * add extended_attribute object Tools: * fsapfsinfo tool ** add volume selection via GUID in path ** prompt user for password or recovery password when needed ** print extended attribute values ** handle \r in filename ** print hardlinks for -E option? ** "-E all" instead of using next_object_identifier walk leaf nodes * fsapfsmount tool ** prompt user for password or recovery password when needed ** make symbolic links an absolute path which accounts for mount point ** add owner and group identifier support? ** add support for all volumes ** add volume selection support ** add extended attributes support ** does fuse override file types such as socket? ** dokan add symbolic link support Tests: * add tests for container_key_bag * add tests for volume_key_bag * add tests for key_encrypted_key * add tests for Unicode filenames 20180907 * see `git log' for more recent change log * Initial version based on libfsrefs and libfsntfs libfsapfs-20190210/m4/0000775000175000017500000000000013430101366016340 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/m4/libuna.m40000664000175000017500000005141513374011160020061 0ustar00lordyestalordyesta00000000000000dnl Checks for libuna or required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libuna is available dnl ac_libuna_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBUNA_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libuna" = xno], [ac_cv_libuna=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libuna"], [CFLAGS="$CFLAGS -I${ac_cv_with_libuna}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libuna}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libuna], [1]) ]) ac_cv_libuna=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libuna], [libuna >= 20181006], [ac_cv_libuna=yes], [ac_cv_libuna=check]) ]) AS_IF( [test "x$ac_cv_libuna" = xyes], [ac_cv_libuna_CPPFLAGS="$pkg_cv_libuna_CFLAGS" ac_cv_libuna_LIBADD="$pkg_cv_libuna_LIBS"]) ]) AS_IF( [test "x$ac_cv_libuna" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libuna.h]) AS_IF( [test "x$ac_cv_header_libuna_h" = xno], [ac_cv_libuna=no], [dnl Check for the individual functions ac_cv_libuna=yes AC_CHECK_LIB( una, libuna_get_version, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl Base16 stream functions AC_CHECK_LIB( una, libuna_base16_stream_size_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base16_stream_copy_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base16_stream_size_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base16_stream_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base16_stream_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl Base32 stream functions AC_CHECK_LIB( una, libuna_base32_quintuplet_copy_from_base32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_quintuplet_copy_to_base32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_quintuplet_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_quintuplet_copy_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_stream_size_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_stream_copy_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_stream_size_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_stream_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base32_stream_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl Base64 stream functions AC_CHECK_LIB( una, libuna_base64_triplet_copy_from_base64_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_triplet_copy_to_base64_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_triplet_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_triplet_copy_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_stream_size_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_stream_copy_to_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_stream_size_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_stream_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_base64_stream_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl Byte stream functions AC_CHECK_LIB( una, libuna_byte_stream_size_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_byte_stream_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_byte_stream_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_byte_stream_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_byte_stream_size_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_byte_stream_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl UTF-8 stream functions AC_CHECK_LIB( una, libuna_utf8_stream_size_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_stream_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_stream_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_stream_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_stream_size_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_stream_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl UTF-16 stream functions AC_CHECK_LIB( una, libuna_utf16_stream_size_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_stream_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_stream_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_stream_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_stream_size_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_stream_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl UTF-32 stream functions AC_CHECK_LIB( una, libuna_utf32_stream_size_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_stream_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_stream_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_stream_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_stream_size_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_stream_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl UTF-8 string functions AC_CHECK_LIB( una, libuna_utf8_string_size_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_with_index_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_copy_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_with_index_copy_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_with_index_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_with_index_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_with_index_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_with_index_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl UTF-16 string functions AC_CHECK_LIB( una, libuna_utf16_string_size_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_with_index_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_copy_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_with_index_copy_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_with_index_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_with_index_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_with_index_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_with_index_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) dnl UTF-32 string functions AC_CHECK_LIB( una, libuna_utf32_string_size_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_with_index_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_copy_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_with_index_copy_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_with_index_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_with_index_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( libuna_utf32_string_with_index_copy_from_utf8, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_with_index_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) ac_cv_libuna_LIBADD="-luna"]) ]) AS_IF( [test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect && test "x$ac_cv_libuna" != xyes], [AC_MSG_FAILURE( [unable to find supported libuna in directory: $ac_cv_with_libuna], [1]) ]) ]) AS_IF( [test "x$ac_cv_libuna" = xyes], [AC_DEFINE( [HAVE_LIBUNA], [1], [Define to 1 if you have the `una' library (-luna).]) ]) AS_IF( [test "x$ac_cv_libuna" = xyes], [AC_SUBST( [HAVE_LIBUNA], [1]) ], [AC_SUBST( [HAVE_LIBUNA], [0]) ]) ]) dnl Function to detect if libuna dependencies are available AC_DEFUN([AX_LIBUNA_CHECK_LOCAL], [dnl No additional checks. ac_cv_libuna_CPPFLAGS="-I../libuna"; ac_cv_libuna_LIBADD="../libuna/libuna.la"; ac_cv_libuna=local ]) dnl Function to detect how to enable libuna AC_DEFUN([AX_LIBUNA_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libuna], [libuna], [search for libuna in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBUNA_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libuna" != xyes], [AX_LIBUNA_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBUNA], [1], [Define to 1 if the local version of libuna is used.]) AC_SUBST( [HAVE_LOCAL_LIBUNA], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBUNA], [test "x$ac_cv_libuna" = xlocal]) AS_IF( [test "x$ac_cv_libuna_CPPFLAGS" != "x"], [AC_SUBST( [LIBUNA_CPPFLAGS], [$ac_cv_libuna_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libuna_LIBADD" != "x"], [AC_SUBST( [LIBUNA_LIBADD], [$ac_cv_libuna_LIBADD]) ]) AS_IF( [test "x$ac_cv_libuna" = xyes], [AC_SUBST( [ax_libuna_pc_libs_private], [-luna]) ]) AS_IF( [test "x$ac_cv_libuna" = xyes], [AC_SUBST( [ax_libuna_spec_requires], [libuna]) AC_SUBST( [ax_libuna_spec_build_requires], [libuna-devel]) ]) ]) libfsapfs-20190210/m4/libfuse.m40000664000175000017500000001200313366354746020253 0ustar00lordyestalordyesta00000000000000dnl Functions for libfuse dnl dnl Version: 20180403 dnl Function to detect if libfuse is available dnl ac_libfuse_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBFUSE_CHECK_LIB], [dnl Check if parameters were provided AS_IF( [test "x$ac_cv_with_libfuse" != x && test "x$ac_cv_with_libfuse" != xno && test "x$ac_cv_with_libfuse" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libfuse"], [CFLAGS="$CFLAGS -I${ac_cv_with_libfuse}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfuse}/lib"], [AC_MSG_WARN([no such directory: $ac_cv_with_libfuse]) ]) ]) AS_IF( [test "x$ac_cv_with_libfuse" = xno], [ac_cv_libfuse=no], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [fuse], [fuse >= 2.6], [ac_cv_libfuse=libfuse], [ac_cv_libfuse=no]) ]) AS_IF( [test "x$ac_cv_libfuse" = xlibfuse], [ac_cv_libfuse_CPPFLAGS="$pkg_cv_fuse_CFLAGS" ac_cv_libfuse_LIBADD="$pkg_cv_fuse_LIBS"], [dnl Check for headers AC_CHECK_HEADERS( [fuse.h], [ac_cv_header_fuse_h=yes], [ac_cv_header_fuse_h=no]) dnl libfuse sometimes requires -D_FILE_OFFSET_BITS=64 to be set AS_IF( [test "x$ac_cv_header_fuse_h" = xno], [AS_UNSET([ac_cv_header_fuse_h]) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" AC_CHECK_HEADERS([fuse.h]) ]) AS_IF( [test "x$ac_cv_header_fuse_h" = xno], [ac_cv_libfuse=no], [dnl Check for the individual functions ac_cv_libfuse=libfuse AC_CHECK_LIB( fuse, fuse_daemonize, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) AC_CHECK_LIB( fuse, fuse_destroy, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) AC_CHECK_LIB( fuse, fuse_mount, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) AC_CHECK_LIB( fuse, fuse_new, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) ac_cv_libfuse_LIBADD="-lfuse"; ]) ]) dnl Check for libosxfuse AS_IF( [test "x$ac_cv_with_libfuse" != xno && test "x$ac_cv_header_fuse_h" = xno], [CPPFLAGS="$CPPFLAGS -DFUSE_USE_VERSION=26" AC_CHECK_HEADERS([osxfuse/fuse.h]) dnl libosxfuse sometimes requires -D_FILE_OFFSET_BITS=64 to be set AS_IF( [test "x$ac_cv_header_osxfuse_fuse_h" = xno], [AS_UNSET([ac_cv_header_osxfuse_fuse_h]) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" AC_CHECK_HEADERS([osxfuse/fuse.h]) ]) AS_IF( [test "x$ac_cv_header_osxfuse_fuse_h" = xno], [ac_cv_libfuse=no], [dnl Check for the individual functions ac_cv_libfuse=libosxfuse AC_CHECK_LIB( osxfuse, fuse_daemonize, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) AC_CHECK_LIB( osxfuse, fuse_destroy, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) AC_CHECK_LIB( osxfuse, fuse_mount, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) AC_CHECK_LIB( osxfuse, fuse_new, [ac_cv_libfuse_dummy=yes], [ac_cv_libfuse=no]) ac_cv_libfuse_LIBADD="-losxfuse"; ]) ]) ]) AS_IF( [test "x$ac_cv_libfuse" = xlibfuse], [AC_DEFINE( [HAVE_LIBFUSE], [1], [Define to 1 if you have the 'fuse' library (-lfuse).]) ]) AS_IF( [test "x$ac_cv_libfuse" = xlibosxfuse], [AC_DEFINE( [HAVE_LIBOSXFUSE], [1], [Define to 1 if you have the 'osxfuse' library (-losxfuse).]) ]) AS_IF( [test "x$ac_cv_libfuse" != xno], [AC_SUBST( [HAVE_LIBFUSE], [1]) ], [AC_SUBST( [HAVE_LIBFUSE], [0]) ]) ]) dnl Function to detect how to enable libfuse AC_DEFUN([AX_LIBFUSE_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libfuse], [libfuse], [search for libfuse in includedir and libdir or in the specified DIR, or no if not to use libfuse], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBFUSE_CHECK_LIB AS_IF( [test "x$ac_cv_libfuse_CPPFLAGS" != "x"], [AC_SUBST( [LIBFUSE_CPPFLAGS], [$ac_cv_libfuse_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libfuse_LIBADD" != "x"], [AC_SUBST( [LIBFUSE_LIBADD], [$ac_cv_libfuse_LIBADD]) ]) AS_IF( [test "x$ac_cv_libfuse" = xlibfuse], [AC_SUBST( [ax_libfuse_pc_libs_private], [-lfuse]) ]) AS_IF( [test "x$ac_cv_libfuse" = xlibosxfuse], [AC_SUBST( [ax_libfuse_pc_libs_private], [-losxfuse]) ]) AS_IF( [test "x$ac_cv_libfuse" = xlibfuse], [AC_SUBST( [ax_libfuse_spec_requires], [fuse-libs]) AC_SUBST( [ax_libfuse_spec_build_requires], [fuse-devel]) ]) ]) libfsapfs-20190210/m4/gettext.m40000644000175000017500000003513213344411702020272 0ustar00lordyestalordyesta00000000000000# gettext.m4 serial 63 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) libfsapfs-20190210/m4/tests.m40000664000175000017500000000073713416700343017757 0ustar00lordyestalordyesta00000000000000dnl Functions for testing dnl dnl Version: 20190112 dnl Function to detect if tests dependencies are available AC_DEFUN([AX_TESTS_CHECK_LOCAL], [AC_CHECK_HEADERS([dlfcn.h]) AC_CHECK_FUNCS([fmemopen getopt mkstemp unlink]) AC_CHECK_LIB( dl, dlsym) AS_IF( [test "x$lt_cv_prog_gnu_ld" = xyes && test "x$ac_cv_lib_dl_dlsym" = xyes], [AC_DEFINE( [HAVE_GNU_DL_DLSYM], [1], [Define to 1 if dlsym function is available in GNU dl.]) ]) ]) libfsapfs-20190210/m4/zlib.m40000664000175000017500000001460013374032125017546 0ustar00lordyestalordyesta00000000000000dnl Checks for zlib required headers and functions dnl dnl Version: 20181117 dnl Function to detect if zlib is available AC_DEFUN([AX_ZLIB_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_zlib" = xno], [ac_cv_zlib=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_zlib" != x && test "x$ac_cv_with_zlib" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_zlib"], [CFLAGS="$CFLAGS -I${ac_cv_with_zlib}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_zlib}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_zlib], [1]) ])], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [zlib], [zlib >= 1.2.5], [ac_cv_zlib=zlib], [ac_cv_zlib=no]) ]) AS_IF( [test "x$ac_cv_zlib" = xzlib], [ac_cv_zlib_CPPFLAGS="$pkg_cv_zlib_CFLAGS" ac_cv_zlib_LIBADD="$pkg_cv_zlib_LIBS"]) ]) AS_IF( [test "x$ac_cv_zlib" = xno], [dnl Check for headers AC_CHECK_HEADERS([zlib.h]) AS_IF( [test "x$ac_cv_header_zlib_h" = xno], [ac_cv_zlib=no], [dnl Check for the individual functions ac_cv_zlib=zlib AC_CHECK_LIB( z, zlibVersion, [], [ac_cv_zlib=no]) AS_IF( [test "x$ac_cv_lib_z_zlibVersion" = xno], [AC_MSG_FAILURE( [Missing function: zlibVersion in library: zlib.], [1]) ]) ac_cv_zlib_LIBADD="-lz"; ]) ]) ]) AS_IF( [test "x$ac_cv_zlib" = xzlib], [AC_DEFINE( [HAVE_ZLIB], [1], [Define to 1 if you have the 'zlib' library (-lz).]) ]) AS_IF( [test "x$ac_cv_zlib" != xno], [AC_SUBST( [HAVE_ZLIB], [1]) ], [AC_SUBST( [HAVE_ZLIB], [0]) ]) ]) dnl Function to detect if the adler32 function is available AC_DEFUN([AX_ZLIB_CHECK_ADLER32], [AX_COMMON_ARG_WITH( [adler32], [adler32], [specify which alder32 implementation to use, options: 'auto-detect', 'zlib' or 'local'], [auto-detect], [auto-detect]) AS_IF( [test "x$ac_cv_zlib" != xzlib], [ac_cv_adler32=local], [AC_CHECK_LIB( z, adler32, [ac_zlib_dummy=yes]) AS_IF( [test "x$ac_cv_lib_z_adler32" = xyes], [AS_IF( [test "x$ac_cv_with_adler32" != xzlib && test "x$ac_cv_with_adler32" != xauto-detect], [ac_cv_adler32=local], [AC_DEFINE( [HAVE_ZLIB_ADLER32], [1], [Define to 1 if adler32 funtion is available in zlib.]) ac_cv_adler32=zlib])], [AS_IF( [test "x$ac_cv_with_adler32" = xzlib], [AC_MSG_FAILURE( [Missing function: adler32 in library: zlib.], [1]) ]) ac_cv_adler32=local]) ]) ]) dnl Function to detect if the compress2 function is available AC_DEFUN([AX_ZLIB_CHECK_COMPRESS2], [AS_IF( [test "x$ac_cv_zlib" = xzlib], [AC_CHECK_LIB( z, compress2, [ac_zlib_dummy=yes]) AS_IF( [test "x$ac_cv_lib_z_compress2" = xyes], [AC_DEFINE( [HAVE_ZLIB_COMPRESS2], [1], [Define to 1 if compress2 funtion is available in zlib.]) ]) ]) ]) dnl Function to detect if the compressBound function is available AC_DEFUN([AX_ZLIB_CHECK_COMPRESSBOUND], [AS_IF( [test "x$ac_cv_zlib" = xzlib], [AC_CHECK_LIB( z, compressBound, [ac_zlib_dummy=yes]) AS_IF( [test "x$ac_cv_lib_z_compressBound" = xyes], [AC_DEFINE( [HAVE_ZLIB_COMPRESSBOUND], [1], [Define to 1 if compressBound funtion is available in zlib.]) ]) ]) ]) dnl Function to detect if the inflate functions are available AC_DEFUN([AX_ZLIB_CHECK_INFLATE], [AS_IF( [test "x$ac_cv_zlib" != xzlib], [ac_cv_inflate=local], [AC_CHECK_LIB( z, inflate, [ac_cv_inflate=zlib], [ac_cv_inflate=local]) AC_CHECK_LIB( z, inflateInit2, [ac_zlib_dummy=yes]) dnl Some versions of zlib provide inflateInit2_ instead of inflateInit2 AS_IF( [test "x$ac_cv_lib_z_inflateinit2" = xno], [AC_CHECK_LIB( z, inflateInit2_, [ac_zlib_dummy=yes], [ac_cv_inflate=local]) ]) AC_CHECK_LIB( z, inflateEnd, [ac_zlib_dummy=yes], [ac_cv_inflate=local]) AS_IF( [test "x$ac_cv_inflate" = xzlib], [AC_DEFINE( [HAVE_ZLIB_INFLATE], [1], [Define to 1 if you have the `inflateInit', `inflate', `inflateEnd' functions.]) ]) AS_IF( [test "x$ac_cv_lib_z_inflateinit2" != xno], [AC_DEFINE( [HAVE_ZLIB_INFLATE_INIT2], [1], [Define to 1 if you have the `inflateInit2' function.]) ]) ]) ]) dnl Function to detect if the uncompress function is available AC_DEFUN([AX_ZLIB_CHECK_UNCOMPRESS], [AS_IF( [test "x$ac_cv_zlib" != xzlib], [ac_cv_uncompress=local], [AC_CHECK_LIB( z, uncompress, [ac_cv_uncompress=zlib], [ac_cv_uncompress=local]) AS_IF( [test "x$ac_cv_uncompress" = xzlib], [AC_DEFINE( [HAVE_ZLIB_UNCOMPRESS], [1], [Define to 1 if you have the `uncompress' function.]) ]) ]) ]) dnl Function to detect how to enable zlib AC_DEFUN([AX_ZLIB_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [zlib], [zlib], [search for zlib in includedir and libdir or in the specified DIR, or no if not to use zlib], [auto-detect], [DIR]) dnl Check for a shared library version AX_ZLIB_CHECK_LIB AS_IF( [test "x$ac_cv_zlib_CPPFLAGS" != "x"], [AC_SUBST( [ZLIB_CPPFLAGS], [$ac_cv_zlib_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_zlib_LIBADD" != "x"], [AC_SUBST( [ZLIB_LIBADD], [$ac_cv_zlib_LIBADD]) ]) AS_IF( [test "x$ac_cv_zlib" = xzlib], [AC_SUBST( [ax_zlib_pc_libs_private], [-lz]) ]) AS_IF( [test "x$ac_cv_zlib" = xzlib], [AC_SUBST( [ax_zlib_spec_requires], [zlib]) AC_SUBST( [ax_zlib_spec_build_requires], [zlib-devel]) AC_SUBST( [ax_zlib_static_spec_requires], [zlib-static]) AC_SUBST( [ax_zlib_static_spec_build_requires], [zlib-static]) ]) ]) libfsapfs-20190210/m4/libcaes.m40000664000175000017500000001417213413201371020207 0ustar00lordyestalordyesta00000000000000dnl Checks for libcaes required headers and functions dnl dnl Version: 20190102 dnl Function to detect if libcaes is available dnl ac_libcaes_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCAES_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcaes" = xno], [ac_cv_libcaes=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcaes" != x && test "x$ac_cv_with_libcaes" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcaes"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcaes}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcaes}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcaes], [1]) ]) ac_cv_libcaes=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcaes], [libcaes >= 20161025], [ac_cv_libcaes=yes], [ac_cv_libcaes=check]) ]) AS_IF( [test "x$ac_cv_libcaes" = xyes], [ac_cv_libcaes_CPPFLAGS="$pkg_cv_libcaes_CFLAGS" ac_cv_libcaes_LIBADD="$pkg_cv_libcaes_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcaes" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcaes.h]) AS_IF( [test "x$ac_cv_header_libcaes_h" = xno], [ac_cv_libcaes=no], [dnl Check for the individual functions ac_cv_libcaes=yes AC_CHECK_LIB( caes, libcaes_get_version, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) dnl Context functions AC_CHECK_LIB( caes, libcaes_context_initialize, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) AC_CHECK_LIB( caes, libcaes_context_free, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) AC_CHECK_LIB( caes, libcaes_context_set_key, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) dnl Tweaked context functions AC_CHECK_LIB( caes, libcaes_tweaked_context_initialize, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) AC_CHECK_LIB( caes, libcaes_tweaked_context_free, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) AC_CHECK_LIB( caes, libcaes_tweaked_context_set_keys, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) dnl Crypt functions AC_CHECK_LIB( caes, libcaes_crypt_cbc, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) AC_CHECK_LIB( caes, libcaes_crypt_ccm, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) AC_CHECK_LIB( caes, libcaes_crypt_ecb, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) AC_CHECK_LIB( caes, libcaes_crypt_xts, [ac_cv_libcaes_dummy=yes], [ac_cv_libcaes=no]) ac_cv_libcaes_LIBADD="-lcaes"]) ]) AS_IF( [test "x$ac_cv_with_libcaes" != x && test "x$ac_cv_with_libcaes" != xauto-detect && test "x$ac_cv_libcaes" != xyes], [AC_MSG_FAILURE( [unable to find supported libcaes in directory: $ac_cv_with_libcaes], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcaes" = xyes], [AC_DEFINE( [HAVE_LIBCAES], [1], [Define to 1 if you have the `caes' library (-lcaes).]) ]) AS_IF( [test "x$ac_cv_libcaes" = xyes], [ac_cv_libcaes_aes=libcaes], [ac_cv_libcaes_aes=no]) AS_IF( [test "x$ac_cv_libcaes" = xyes], [AC_SUBST( [HAVE_LIBCAES], [1]) ], [AC_SUBST( [HAVE_LIBCAES], [0]) ]) ]) dnl Function to detect if libcaes dependencies are available AC_DEFUN([AX_LIBCAES_CHECK_LOCAL], [dnl Check for libcrypto (openssl) support AX_LIBCRYPTO_CHECK_ENABLE AS_IF( [test "x$ac_cv_libcrypto" != xno], [AX_LIBCRYPTO_CHECK_AES AX_LIBCRYPTO_CHECK_AES_XTS]) dnl Fallback to local versions if necessary AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_aes_cbc" = xno], [ac_cv_libcaes_aes_cbc=local], [ac_cv_libcaes_aes_cbc=$ac_cv_libcrypto_aes_cbc]) AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno], [ac_cv_libcaes_aes_ecb=local], [ac_cv_libcaes_aes_ecb=$ac_cv_libcrypto_aes_ecb]) AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_aes_xts" = xno], [ac_cv_libcaes_aes_xts=local], [ac_cv_libcaes_aes_xts=$ac_cv_libcrypto_aes_xts]) ac_cv_libcaes_CPPFLAGS="-I../libcaes"; ac_cv_libcaes_LIBADD="../libcaes/libcaes.la"; ac_cv_libcaes=local ]) dnl Function to detect how to enable libcaes AC_DEFUN([AX_LIBCAES_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libcaes], [libcaes], [search for libcaes in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCAES_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcaes" != xyes], [AX_LIBCAES_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCAES], [1], [Define to 1 if the local version of libcaes is used.]) AC_SUBST( [HAVE_LOCAL_LIBCAES], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCAES], [test "x$ac_cv_libcaes" = xlocal]) AS_IF( [test "x$ac_cv_libcaes_CPPFLAGS" != "x"], [AC_SUBST( [LIBCAES_CPPFLAGS], [$ac_cv_libcaes_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcaes_LIBADD" != "x"], [AC_SUBST( [LIBCAES_LIBADD], [$ac_cv_libcaes_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcaes" = xyes], [AC_SUBST( [ax_libcaes_pc_libs_private], [-lcaes]) ]) AS_IF( [test "x$ac_cv_libcaes" = xyes], [AC_SUBST( [ax_libcaes_spec_requires], [libcaes]) AC_SUBST( [ax_libcaes_spec_build_requires], [libcaes-devel]) ]) ]) libfsapfs-20190210/m4/lib-prefix.m40000644000175000017500000002042213344411703020644 0ustar00lordyestalordyesta00000000000000# lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) libfsapfs-20190210/m4/ltoptions.m40000644000175000017500000003426213430101244020635 0ustar00lordyestalordyesta00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) libfsapfs-20190210/m4/libcpath.m40000664000175000017500000002224013374011160020367 0ustar00lordyestalordyesta00000000000000dnl Checks for libcpath required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libcpath is available dnl ac_libcpath_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCPATH_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcpath" = xno], [ac_cv_libcpath=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcpath"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcpath}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcpath}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcpath], [1]) ]) ac_cv_libcpath=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcpath], [libcpath >= 20180716], [ac_cv_libcpath=yes], [ac_cv_libcpath=check]) ]) AS_IF( [test "x$ac_cv_libcpath" = xyes && test "x$ac_cv_enable_wide_character_type" != xno], [AC_CACHE_CHECK( [whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1], [ac_cv_header_libcpath_features_h_have_wide_character_type], [AC_LANG_PUSH(C) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if !defined( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCPATH_HAVE_WIDE_CHARACTER_TYPE not defined #endif]] )], [ac_cv_header_libcpath_features_h_have_wide_character_type=yes], [ac_cv_header_libcpath_features_h_have_wide_character_type=no]) AC_LANG_POP(C)], [ac_cv_header_libcpath_features_h_have_wide_character_type=no]) AS_IF( [test "x$ac_cv_header_libcpath_features_h_have_wide_character_type" = xno], [ac_cv_libcpath=no]) ]) AS_IF( [test "x$ac_cv_libcpath" = xyes], [ac_cv_libcpath_CPPFLAGS="$pkg_cv_libcpath_CFLAGS" ac_cv_libcpath_LIBADD="$pkg_cv_libcpath_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcpath" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcpath.h]) AS_IF( [test "x$ac_cv_header_libcpath_h" = xno], [ac_cv_libcpath=no], [dnl Check for the individual functions ac_cv_libcpath=yes AC_CHECK_LIB( cpath, libcpath_get_version, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) dnl Path functions AC_CHECK_LIB( cpath, libcpath_path_change_directory, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_current_working_directory, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_full_path, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_sanitized_filename, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_sanitized_path, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_join, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_make_directory, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_LIB( cpath, libcpath_path_change_directory_wide, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_current_working_directory_wide, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_full_path_wide, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_sanitized_filename_wide, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_get_sanitized_path_wide, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_join_wide, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) AC_CHECK_LIB( cpath, libcpath_path_make_directory_wide, [ac_cv_libcpath_dummy=yes], [ac_cv_libcpath=no]) ]) ac_cv_libcpath_LIBADD="-lcpath"]) ]) AS_IF( [test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect && test "x$ac_cv_libcpath" != xyes], [AC_MSG_FAILURE( [unable to find supported libcpath in directory: $ac_cv_with_libcpath], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcpath" = xyes], [AC_DEFINE( [HAVE_LIBCPATH], [1], [Define to 1 if you have the `cpath' library (-lcpath).]) ]) AS_IF( [test "x$ac_cv_libcpath" = xyes], [AC_SUBST( [HAVE_LIBCPATH], [1]) ], [AC_SUBST( [HAVE_LIBCPATH], [0]) ]) ]) dnl Function to detect if mkdir is available dnl Also checks how to use mkdir AC_DEFUN([AX_LIBCPATH_CHECK_FUNC_MKDIR], [AC_CHECK_FUNCS([mkdir]) AS_IF( [test "x$ac_cv_func_mkdir" = xyes], [AC_MSG_CHECKING( [how to use mkdir]) SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" AC_LANG_PUSH(C) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[mkdir( "", 0 )]] )], [AC_MSG_RESULT( [with additional mode argument]) ac_cv_cv_mkdir_mode=yes], [ac_cv_cv_mkdir_mode=no]) AS_IF( [test "x$ac_cv_cv_mkdir_mode" = xno], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[mkdir( "" )]] )], [AC_MSG_RESULT( [with single argument]) ac_cv_cv_mkdir=yes], [ac_cv_cv_mkdir=no]) ]) AC_LANG_POP(C) CFLAGS="$SAVE_CFLAGS" AS_IF( [test "x$ac_cv_cv_mkdir_mode" = xno && test "x$ac_cv_cv_mkdir" = xno], [AC_MSG_WARN( [unknown]) ac_cv_func_mkdir=no]) AS_IF( [test "x$ac_cv_func_mkdir" = xyes], [AC_DEFINE( [HAVE_MKDIR], [1], [Define to 1 if you have the mkdir function.]) ]) AS_IF( [test "x$ac_cv_cv_mkdir_mode" = xyes], [AC_DEFINE( [HAVE_MKDIR_MODE], [1], [Define to 1 if you have the mkdir function with a second mode argument.]) ]) ]) AS_IF( [test "x$ac_cv_func_mkdir" = xno], [AC_MSG_FAILURE( [Missing function: mkdir], [1]) ]) ]) dnl Function to detect if libcpath dependencies are available AC_DEFUN([AX_LIBCPATH_CHECK_LOCAL], [dnl Headers included in libcpath/libcpath_path.h AC_CHECK_HEADERS([errno.h sys/stat.h sys/syslimits.h]) dnl Path functions used in libcpath/libcpath_path.h AC_CHECK_FUNCS([chdir getcwd]) AS_IF( [test "x$ac_cv_func_chdir" != xyes], [AC_MSG_FAILURE( [Missing functions: chdir], [1]) ]) AS_IF( [test "x$ac_cv_func_getcwd" != xyes], [AC_MSG_FAILURE( [Missing functions: getcwd], [1]) ]) AX_LIBCPATH_CHECK_FUNC_MKDIR ac_cv_libcpath_CPPFLAGS="-I../libcpath"; ac_cv_libcpath_LIBADD="../libcpath/libcpath.la"; ac_cv_libcpath=local ]) dnl Function to detect how to enable libcpath AC_DEFUN([AX_LIBCPATH_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libcpath], [libcpath], [search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCPATH_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcpath" != xyes], [AX_LIBCPATH_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCPATH], [1], [Define to 1 if the local version of libcpath is used.]) AC_SUBST( [HAVE_LOCAL_LIBCPATH], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCPATH], [test "x$ac_cv_libcpath" = xlocal]) AS_IF( [test "x$ac_cv_libcpath_CPPFLAGS" != "x"], [AC_SUBST( [LIBCPATH_CPPFLAGS], [$ac_cv_libcpath_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcpath_LIBADD" != "x"], [AC_SUBST( [LIBCPATH_LIBADD], [$ac_cv_libcpath_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcpath" = xyes], [AC_SUBST( [ax_libcpath_pc_libs_private], [-lcpath]) ]) AS_IF( [test "x$ac_cv_libcpath" = xyes], [AC_SUBST( [ax_libcpath_spec_requires], [libcpath]) AC_SUBST( [ax_libcpath_spec_build_requires], [libcpath-devel]) ]) ]) libfsapfs-20190210/m4/lib-ld.m40000644000175000017500000000660313344411702017752 0ustar00lordyestalordyesta00000000000000# lib-ld.m4 serial 4 (gettext-0.18) dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT([$LD]) else AC_MSG_RESULT([no]) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) libfsapfs-20190210/m4/libcthreads.m40000664000175000017500000002554513373776326021125 0ustar00lordyestalordyesta00000000000000dnl Checks for libcthreads required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libcthreads is available dnl ac_libcthreads_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCTHREADS_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcthreads" = xno], [ac_cv_libcthreads=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcthreads"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcthreads}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcthreads}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcthreads], [1]) ]) ac_cv_libcthreads=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcthreads], [libcthreads >= 20160404], [ac_cv_libcthreads=yes], [ac_cv_libcthreads=check]) ]) AS_IF( [test "x$ac_cv_libcthreads" = xyes], [ac_cv_libcthreads_CPPFLAGS="$pkg_cv_libcthreads_CFLAGS" ac_cv_libcthreads_LIBADD="$pkg_cv_libcthreads_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcthreads" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcthreads.h]) AS_IF( [test "x$ac_cv_header_libcthreads_h" = xno], [ac_cv_libcthreads=no], [dnl Check for the individual functions ac_cv_libcthreads=yes AC_CHECK_LIB( cthreads, libcthreads_get_version, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Thread functions AC_CHECK_LIB( cthreads, libcthreads_thread_create, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_thread_join, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Thread attributes functions AC_CHECK_LIB( cthreads, libcthreads_thread_attributes_initialize, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_thread_attributes_free, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Condition functions AC_CHECK_LIB( cthreads, libcthreads_condition_initialize, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_condition_free, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_condition_broadcast, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_condition_signal, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_condition_wait, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Lock functions AC_CHECK_LIB( cthreads, libcthreads_lock_initialize, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_lock_free, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_lock_grab, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_lock_release, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Mutex functions AC_CHECK_LIB( cthreads, libcthreads_mutex_initialize, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_mutex_free, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_mutex_grab, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_mutex_try_grab, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_mutex_release, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Read/Write lock functions AC_CHECK_LIB( cthreads, libcthreads_read_write_lock_initialize, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_read_write_lock_free, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_read_write_lock_grab_for_read, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_read_write_lock_grab_for_write, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_read_write_lock_release_for_read, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_read_write_lock_release_for_write, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Queue functions AC_CHECK_LIB( cthreads, libcthreads_queue_initialize, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_queue_free, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_queue_type_pop, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_queue_pop, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_queue_try_push, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_queue_push, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_queue_push_sorted, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) dnl Thread pool functions AC_CHECK_LIB( cthreads, libcthreads_thread_pool_create, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_thread_pool_push, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_thread_pool_push_sorted, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) AC_CHECK_LIB( cthreads, libcthreads_thread_pool_join, [ac_cv_libcthreads_dummy=yes], [ac_cv_libcthreads=no]) ac_cv_libcthreads_LIBADD="-lcthreads"]) ]) AS_IF( [test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect && test "x$ac_cv_libcthreads" != xyes], [AC_MSG_FAILURE( [unable to find supported libcthreads in directory: $ac_cv_with_libcthreads], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcthreads" = xyes], [AC_DEFINE( [HAVE_LIBCTHREADS], [1], [Define to 1 if you have the `cthreads' library (-lcthreads).]) ]) AS_IF( [test "x$ac_cv_libcthreads" = xyes], [ac_cv_libcthreads_multi_threading=libcthreads], [ac_cv_libcthreads_multi_threading=no]) AS_IF( [test "x$ac_cv_libcthreads" = xyes], [AC_SUBST( [HAVE_LIBCTHREADS], [1]) ], [AC_SUBST( [HAVE_LIBCTHREADS], [0]) ]) ]) dnl Function to detect if libcthreads dependencies are available AC_DEFUN([AX_LIBCTHREADS_CHECK_LOCAL], [AS_IF( [test "x$ac_cv_enable_winapi" = xno], [dnl Check for enabling pthread support AX_PTHREAD_CHECK_ENABLE ac_cv_libcthreads_multi_threading=$ac_cv_pthread], [ac_cv_libcthreads_multi_threading="winapi"]) AS_IF( [test "x$ac_cv_libcthreads_multi_threading" != xno], [ac_cv_libcthreads_CPPFLAGS="-I../libcthreads"; ac_cv_libcthreads_LIBADD="../libcthreads/libcthreads.la"; ac_cv_libcthreads=local], [ac_cv_libcthreads=no]) ]) dnl Function to detect how to enable libcthreads AC_DEFUN([AX_LIBCTHREADS_CHECK_ENABLE], [AX_COMMON_ARG_ENABLE( [multi-threading-support], [multi_threading_support], [enable multi-threading support], [yes]) AX_COMMON_ARG_WITH( [libcthreads], [libcthreads], [search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) AS_IF( [test "x$ac_cv_enable_multi_threading_support" = xno], [ac_cv_libcthreads="no" ac_cv_libcthreads_multi_threading="no"], [dnl Check for a shared library version AX_LIBCTHREADS_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcthreads" != xyes], [AX_LIBCTHREADS_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCTHREADS], [1], [Define to 1 if the local version of libcthreads is used.]) AC_SUBST( [HAVE_LOCAL_LIBCTHREADS], [1]) ]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCTHREADS], [test "x$ac_cv_libcthreads" = xlocal]) AS_IF( [test "x$ac_cv_libcthreads_CPPFLAGS" != "x"], [AC_SUBST( [LIBCTHREADS_CPPFLAGS], [$ac_cv_libcthreads_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcthreads_LIBADD" != "x"], [AC_SUBST( [LIBCTHREADS_LIBADD], [$ac_cv_libcthreads_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcthreads" != xno], [AC_DEFINE( [HAVE_MULTI_THREAD_SUPPORT], [1], [Define to 1 if multi thread support should be used.]) AC_SUBST( [HAVE_MULTI_THREAD_SUPPORT], [1]) ], [AC_SUBST( [HAVE_MULTI_THREAD_SUPPORT], [0]) ]) AS_IF( [test "x$ac_cv_libcthreads" = xyes], [AC_SUBST( [ax_libcthreads_pc_libs_private], [-lcthreads]) ]) AS_IF( [test "x$ac_cv_libcthreads" = xyes], [AC_SUBST( [ax_libcthreads_spec_requires], [libcthreads]) AC_SUBST( [ax_libcthreads_spec_build_requires], [libcthreads-devel]) ]) ]) libfsapfs-20190210/m4/lib-link.m40000644000175000017500000010020213344411702020276 0ustar00lordyestalordyesta00000000000000# lib-link.m4 serial 21 (gettext-0.18) dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) libfsapfs-20190210/m4/libhmac.m40000664000175000017500000002017413413201371020203 0ustar00lordyestalordyesta00000000000000dnl Checks for libhmac required headers and functions dnl dnl Version: 20190102 dnl Function to detect if libhmac is available dnl ac_libhmac_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBHMAC_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libhmac" = xno], [ac_cv_libhmac=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libhmac" != x && test "x$ac_cv_with_libhmac" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libhmac"], [CFLAGS="$CFLAGS -I${ac_cv_with_libhmac}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libhmac}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libhmac], [1]) ]) ac_cv_libhmac=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libhmac], [libhmac >= 20160802], [ac_cv_libhmac=yes], [ac_cv_libhmac=check]) ]) AS_IF( [test "x$ac_cv_libhmac" = xyes], [ac_cv_libhmac_CPPFLAGS="$pkg_cv_libhmac_CFLAGS" ac_cv_libhmac_LIBADD="$pkg_cv_libhmac_LIBS"]) ]) AS_IF( [test "x$ac_cv_libhmac" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libhmac.h]) AS_IF( [test "x$ac_cv_header_libhmac_h" = xno], [ac_cv_libhmac=no], [dnl Check for the individual functions ac_cv_libhmac=yes AC_CHECK_LIB( hmac, libhmac_get_version, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) dnl MD5 functions AC_CHECK_LIB( hmac, libhmac_md5_initialize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_md5_update, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_md5_finalize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_md5_free, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) dnl SHA1 functions AC_CHECK_LIB( hmac, libhmac_sha1_initialize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha1_update, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha1_finalize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha1_free, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) dnl SHA224 functions AC_CHECK_LIB( hmac, libhmac_sha224_initialize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha224_update, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha224_finalize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha224_free, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) dnl SHA256 functions AC_CHECK_LIB( hmac, libhmac_sha256_initialize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha256_update, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha256_finalize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha256_free, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) dnl SHA512 functions AC_CHECK_LIB( hmac, libhmac_sha512_initialize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha512_update, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha512_finalize, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) AC_CHECK_LIB( hmac, libhmac_sha512_free, [ac_cv_libhmac_dummy=yes], [ac_cv_libhmac=no]) ac_cv_libhmac_LIBADD="-lhmac"]) ]) AS_IF( [test "x$ac_cv_with_libhmac" != x && test "x$ac_cv_with_libhmac" != xauto-detect && test "x$ac_cv_libhmac" != xyes], [AC_MSG_FAILURE( [unable to find supported libhmac in directory: $ac_cv_with_libhmac], [1]) ]) ]) AS_IF( [test "x$ac_cv_libhmac" = xyes], [AC_DEFINE( [HAVE_LIBHMAC], [1], [Define to 1 if you have the `hmac' library (-lhmac).]) ]) AS_IF( [test "x$ac_cv_libhmac" = xyes], [ac_cv_libhmac_md5=libhmac ac_cv_libhmac_sha1=libhmac ac_cv_libhmac_sha224=libhmac ac_cv_libhmac_sha256=libhmac ac_cv_libhmac_sha512=libhmac], [ac_cv_libhmac_md5=no ac_cv_libhmac_sha1=no ac_cv_libhmac_sha224=no ac_cv_libhmac_sha256=no ac_cv_libhmac_sha512=no]) AS_IF( [test "x$ac_cv_libhmac" = xyes], [AC_SUBST( [HAVE_LIBHMAC], [1]) ], [AC_SUBST( [HAVE_LIBHMAC], [0]) ]) ]) dnl Function to detect if libhmac dependencies are available AC_DEFUN([AX_LIBHMAC_CHECK_LOCAL], [dnl Check for libcrypto (openssl) support AX_LIBCRYPTO_CHECK_ENABLE AS_IF( [test "x$ac_cv_libcrypto" != xno], [AX_LIBCRYPTO_CHECK_MD5 AX_LIBCRYPTO_CHECK_SHA1 AX_LIBCRYPTO_CHECK_SHA224 AX_LIBCRYPTO_CHECK_SHA256 AX_LIBCRYPTO_CHECK_SHA512]) dnl Fallback to local versions if necessary AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_md5" = xno], [ac_cv_libhmac_md5=local], [ac_cv_libhmac_md5=$ac_cv_libcrypto_md5]) AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha1" = xno], [ac_cv_libhmac_sha1=local], [ac_cv_libhmac_sha1=$ac_cv_libcrypto_sha1]) AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha224" = xno], [ac_cv_libhmac_sha224=local], [ac_cv_libhmac_sha224=$ac_cv_libcrypto_sha224]) AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha256" = xno], [ac_cv_libhmac_sha256=local], [ac_cv_libhmac_sha256=$ac_cv_libcrypto_sha256]) AS_IF( [test "x$ac_cv_libcrypto" = xno || test "x$ac_cv_libcrypto_sha512" = xno], [ac_cv_libhmac_sha512=local], [ac_cv_libhmac_sha512=$ac_cv_libcrypto_sha512]) ac_cv_libhmac_CPPFLAGS="-I../libhmac"; ac_cv_libhmac_LIBADD="../libhmac/libhmac.la"; ac_cv_libhmac=local ]) dnl Function to detect how to enable libhmac AC_DEFUN([AX_LIBHMAC_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libhmac], [libhmac], [search for libhmac in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBHMAC_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libhmac" != xyes], [AX_LIBHMAC_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBHMAC], [1], [Define to 1 if the local version of libhmac is used.]) AC_SUBST( [HAVE_LOCAL_LIBHMAC], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBHMAC], [test "x$ac_cv_libhmac" = xlocal]) AS_IF( [test "x$ac_cv_libhmac_CPPFLAGS" != "x"], [AC_SUBST( [LIBHMAC_CPPFLAGS], [$ac_cv_libhmac_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libhmac_LIBADD" != "x"], [AC_SUBST( [LIBHMAC_LIBADD], [$ac_cv_libhmac_LIBADD]) ]) AS_IF( [test "x$ac_cv_libhmac" = xyes], [AC_SUBST( [ax_libhmac_pc_libs_private], [-lhmac]) ]) AS_IF( [test "x$ac_cv_libhmac" = xyes], [AC_SUBST( [ax_libhmac_spec_requires], [libhmac]) AC_SUBST( [ax_libhmac_spec_build_requires], [libhmac-devel]) ]) ]) libfsapfs-20190210/m4/python.m40000644000175000017500000004042413354126627020141 0ustar00lordyestalordyesta00000000000000dnl Functions for Python bindings dnl dnl Version: 20170830 dnl Function to check if the python binary is available dnl "python${PYTHON_VERSION} python python# python#.#" AC_DEFUN([AX_PROG_PYTHON], [AS_IF( [test "x${PYTHON_VERSION}" != x], [ax_python_progs="python${PYTHON_VERSION}"], [ax_python_progs="python python2 python2.7 python2.6 python2.5 python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0"]) AC_CHECK_PROGS( [PYTHON], [$ax_python_progs]) AS_IF( [test "x${PYTHON}" != x], [ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write(sys.version[[:3]])" 2>/dev/null`; AC_SUBST( [PYTHON_VERSION], [$ax_prog_python_version]) ax_prog_python_platform=`${PYTHON} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; AC_SUBST( [PYTHON_PLATFORM], [$ax_prog_python_platform]) ], [AC_MSG_ERROR( [Unable to find python]) ]) AC_SUBST( [PYTHON], [$PYTHON]) ]) dnl Function to check if the python2 binary is available dnl "python2 python2.#" AC_DEFUN([AX_PROG_PYTHON2], [ax_python2_progs="python2 python2.7 python2.6 python2.5" AC_CHECK_PROGS( [PYTHON2], [$ax_python2_progs]) AS_IF( [test "x${PYTHON2}" != x], [ax_prog_python2_version=`${PYTHON2} -c "import sys; sys.stdout.write(sys.version[[:3]])" 2>/dev/null`; AC_SUBST( [PYTHON2_VERSION], [$ax_prog_python2_version]) ax_prog_python2_platform=`${PYTHON2} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; AC_SUBST( [PYTHON2_PLATFORM], [$ax_prog_python2_platform]) ], [AC_MSG_ERROR( [Unable to find python2]) ]) AC_SUBST( [PYTHON2], [$PYTHON2]) ]) dnl Function to check if the python3 binary is available dnl "python3 python3.#" AC_DEFUN([AX_PROG_PYTHON3], [ax_python3_progs="python3 python3.4 python3.3 python3.2 python3.1 python3.0" AC_CHECK_PROGS( [PYTHON3], [$ax_python3_progs]) AS_IF( [test "x${PYTHON3}" != x], [ax_prog_python3_version=`${PYTHON3} -c "import sys; sys.stdout.write(sys.version[[:3]])" 2>/dev/null`; AC_SUBST( [PYTHON3_VERSION], [$ax_prog_python3_version]) ax_prog_python3_platform=`${PYTHON3} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; AC_SUBST( [PYTHON3_PLATFORM], [$ax_prog_python3_platform]) ], [AC_MSG_ERROR( [Unable to find python3]) ]) AC_SUBST( [PYTHON3], [$PYTHON3]) ]) dnl Function to check if the python-config binary is available dnl "python${PYTHON_VERSION}-config python-config" AC_DEFUN([AX_PROG_PYTHON_CONFIG], [AS_IF( [test "x${PYTHON}" != x], [AC_CHECK_PROGS( [PYTHON_CONFIG], [python${PYTHON_VERSION}-config python-config]) ]) AS_IF( [test "x${PYTHON_CONFIG}" = x], [AC_MSG_ERROR( [Unable to find python-config]) ]) AC_SUBST( [PYTHON_CONFIG], [$PYTHON_CONFIG]) ]) dnl Function to check if the python2-config binary is available AC_DEFUN([AX_PROG_PYTHON2_CONFIG], [AS_IF( [test "x${PYTHON2}" != x], [AC_CHECK_PROGS( [PYTHON2_CONFIG], [python2-config]) ]) AS_IF( [test "x${PYTHON2_CONFIG}" = x], [AC_MSG_ERROR( [Unable to find python2-config]) ]) AC_SUBST( [PYTHON2_CONFIG], [$PYTHON2_CONFIG]) ]) dnl Function to check if the python3-config binary is available AC_DEFUN([AX_PROG_PYTHON3_CONFIG], [AS_IF( [test "x${PYTHON3}" != x], [AC_CHECK_PROGS( [PYTHON3_CONFIG], [python3-config]) ]) AS_IF( [test "x${PYTHON3_CONFIG}" = x], [AC_MSG_ERROR( [Unable to find python3-config]) ]) AC_SUBST( [PYTHON3_CONFIG], [$PYTHON3_CONFIG]) ]) dnl Function to detect if a Python build environment is available AC_DEFUN([AX_PYTHON_CHECK], [AX_PROG_PYTHON AX_PROG_PYTHON_CONFIG AS_IF( [test "x${PYTHON_CONFIG}" != x], [dnl Check for Python includes PYTHON_INCLUDES=`${PYTHON_CONFIG} --includes 2>/dev/null`; AC_MSG_CHECKING( [for Python includes]) AC_MSG_RESULT( [$PYTHON_INCLUDES]) dnl Check for Python libraries PYTHON_LDFLAGS=`${PYTHON_CONFIG} --ldflags 2>/dev/null`; AC_MSG_CHECKING( [for Python libraries]) AC_MSG_RESULT( [$PYTHON_LDFLAGS]) dnl For CygWin add the -no-undefined linker flag AS_CASE( [$host_os], [cygwin*],[PYTHON_LDFLAGS="${PYTHON_LDFLAGS} -no-undefined"], [*],[]) dnl Check for the existence of Python.h BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON_INCLUDES}" AC_CHECK_HEADERS( [Python.h], [ac_cv_header_python_h=yes], [ac_cv_header_python_h=no]) CPPFLAGS="${BACKUP_CPPFLAGS}" ]) AS_IF( [test "x${ac_cv_header_python_h}" != xyes], [ac_cv_enable_python=no], [ac_cv_enable_python=$PYTHON_VERSION AC_SUBST( [PYTHON_CPPFLAGS], [$PYTHON_INCLUDES]) AC_SUBST( [PYTHON_LDFLAGS], [$PYTHON_LDFLAGS]) dnl Check for Python prefix AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python_prefix="\${prefix}"], [ax_python_prefix=`${PYTHON_CONFIG} --prefix 2>/dev/null`]) AC_SUBST( [PYTHON_PREFIX], [$ax_python_prefix]) dnl Check for Python exec-prefix AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python_exec_prefix="\${exec_prefix}"], [ax_python_exec_prefix=`${PYTHON_CONFIG} --exec-prefix 2>/dev/null`]) AC_SUBST( [PYTHON_EXEC_PREFIX], [$ax_python_exec_prefix]) dnl Check for Python library directory ax_python_pythondir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; AS_IF( [test "x${ac_cv_with_pythondir}" = x || test "x${ac_cv_with_pythondir}" = xno], [AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python_pythondir="${ax_python_prefix}/${ax_python_pythondir_suffix}"], [ax_python_pythondir=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib() " 2>/dev/null`])], [ax_python_pythondir=$ac_cv_with_pythondir]) AC_SUBST( [pythondir], [$ax_python_pythondir]) dnl Check for Python platform specific library directory ax_python_pyexecdir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python_library_dir=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(True) " 2>/dev/null`; AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python_pyexecdir="${ax_python_exec_prefix}/${ax_python_pyexecdir_suffix}"], [ax_python_pyexecdir=$ax_python_library_dir]) AC_SUBST( [pyexecdir], [$ax_python_pyexecdir]) AC_SUBST( [PYTHON_LIBRARY_DIR], [$ax_python_pyexecdir_suffix]) AC_SUBST( [PYTHON_PACKAGE_DIR], [$ax_python_library_dir]) ]) ]) dnl Function to detect if a Python 2 build environment is available AC_DEFUN([AX_PYTHON2_CHECK], [AX_PROG_PYTHON2 AX_PROG_PYTHON2_CONFIG AS_IF( [test "x${PYTHON2_CONFIG}" != x], [dnl Check for Python 2 includes PYTHON2_INCLUDES=`${PYTHON2_CONFIG} --includes 2>/dev/null`; AC_MSG_CHECKING( [for Python verison 2 includes]) AC_MSG_RESULT( [$PYTHON2_INCLUDES]) dnl Check for Python 2 libraries PYTHON2_LDFLAGS=`${PYTHON2_CONFIG} --ldflags 2>/dev/null`; AC_MSG_CHECKING( [for Python 2 libraries]) AC_MSG_RESULT( [$PYTHON2_LDFLAGS]) dnl For CygWin add the -no-undefined linker flag AS_CASE( [$host_os], [cygwin*],[PYTHON2_LDFLAGS="${PYTHON2_LDFLAGS} -no-undefined"], [*],[]) dnl Check for the existence of Python.h BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON2_INCLUDES}" AC_CHECK_HEADERS( [Python.h], [ac_cv_header_python2_h=yes], [ac_cv_header_python2_h=no]) CPPFLAGS="${BACKUP_CPPFLAGS}" ]) AS_IF( [test "x${ac_cv_header_python2_h}" != xyes], [ac_cv_enable_python2=no], [ac_cv_enable_python2=$PYTHON2_VERSION AC_SUBST( [PYTHON2_CPPFLAGS], [$PYTHON2_INCLUDES]) AC_SUBST( [PYTHON2_LDFLAGS], [$PYTHON2_LDFLAGS]) dnl Check for Python prefix AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python2_prefix="\${prefix}"], [ax_python2_prefix=`${PYTHON2_CONFIG} --prefix 2>/dev/null`]) AC_SUBST( [PYTHON2_PREFIX], [$ax_python2_prefix]) dnl Check for Python exec-prefix AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python2_exec_prefix="\${exec_prefix}"], [ax_python2_exec_prefix=`${PYTHON2_CONFIG} --exec-prefix 2>/dev/null`]) AC_SUBST( [PYTHON2_EXEC_PREFIX], [$ax_python2_exec_prefix]) dnl Check for Python 2 library directory ax_python2_pythondir_suffix=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; AS_IF( [test "x${ac_cv_with_pythondir2}" = x || test "x${ac_cv_with_pythondir2}" = xno], [AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python2_pythondir="${ax_python_prefix}/${ax_python2_pythondir_suffix}"], [ax_python2_pythondir=`${PYTHON2} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib() " 2>/dev/null`])], [ax_python2_pythondir=$ac_cv_with_pythondir2]) AC_SUBST( [pythondir2], [$ax_python2_pythondir]) dnl Check for Python 2 platform specific library directory ax_python2_pyexecdir_suffix=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python2_library_dir=`${PYTHON2} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(True) " 2>/dev/null`; AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python2_pyexecdir="${ax_python2_exec_prefix}/${ax_python2_pyexecdir_suffix}"], [ax_python2_pyexecdir=$ax_python2_library_dir]) AC_SUBST( [pyexecdir2], [$ax_python2_pyexecdir]) AC_SUBST( [PYTHON2_LIBRARY_DIR], [$ax_python2_pyexecdir_suffix]) AC_SUBST( [PYTHON2_PACKAGE_DIR], [$ax_python2_library_dir]) ]) ]) dnl Function to detect if a Python 3 build environment is available AC_DEFUN([AX_PYTHON3_CHECK], [AX_PROG_PYTHON3 AX_PROG_PYTHON3_CONFIG AS_IF( [test "x${PYTHON3_CONFIG}" != x], [dnl Check for Python 3 includes PYTHON3_INCLUDES=`${PYTHON3_CONFIG} --includes 2>/dev/null`; AC_MSG_CHECKING( [for Python verison 3 includes]) AC_MSG_RESULT( [$PYTHON3_INCLUDES]) dnl Check for Python 3 libraries PYTHON3_LDFLAGS=`${PYTHON3_CONFIG} --ldflags 2>/dev/null`; AC_MSG_CHECKING( [for Python 3 libraries]) AC_MSG_RESULT( [$PYTHON3_LDFLAGS]) dnl For CygWin add the -no-undefined linker flag AS_CASE( [$host_os], [cygwin*],[PYTHON3_LDFLAGS="${PYTHON3_LDFLAGS} -no-undefined"], [*],[]) dnl Check for the existence of Python.h BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON3_INCLUDES}" AC_CHECK_HEADERS( [Python.h], [ac_cv_header_python3_h=yes], [ac_cv_header_python3_h=no]) CPPFLAGS="${BACKUP_CPPFLAGS}" ]) AS_IF( [test "x${ac_cv_header_python3_h}" != xyes], [ac_cv_enable_python3=no], [ac_cv_enable_python3=$PYTHON3_VERSION AC_SUBST( [PYTHON3_CPPFLAGS], [$PYTHON3_INCLUDES]) AC_SUBST( [PYTHON3_LDFLAGS], [$PYTHON3_LDFLAGS]) dnl Check for Python prefix AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python3_prefix="\${prefix}"], [ax_python3_prefix=`${PYTHON3_CONFIG} --prefix 2>/dev/null`]) AC_SUBST( [PYTHON3_PREFIX], [$ax_python3_prefix]) dnl Check for Python exec-prefix AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python3_exec_prefix="\${exec_prefix}"], [ax_python3_exec_prefix=`${PYTHON3_CONFIG} --exec-prefix 2>/dev/null`]) AC_SUBST( [PYTHON3_EXEC_PREFIX], [$ax_python3_exec_prefix]) dnl Check for Python 3 library directory ax_python3_pythondir_suffix=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; AS_IF( [test "x${ac_cv_with_pythondir3}" = x || test "x${ac_cv_with_pythondir3}" = xno], [AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python3_pythondir="${ax_python_prefix}/${ax_python3_pythondir_suffix}"], [ax_python3_pythondir=`${PYTHON3} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib() " 2>/dev/null`])], [ax_python3_pythondir=$ac_cv_with_pythondir3]) AC_SUBST( [pythondir3], [$ax_python3_pythondir]) dnl Check for Python 3 platform specific library directory ax_python3_pyexecdir_suffix=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python3_library_dir=`${PYTHON3} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(True) " 2>/dev/null`; AS_IF( [test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno], [ax_python3_pyexecdir="${ax_python3_exec_prefix}/${ax_python3_pyexecdir_suffix}"], [ax_python3_pyexecdir=$ax_python3_library_dir]) AC_SUBST( [pyexecdir3], [$ax_python3_pyexecdir]) AC_SUBST( [PYTHON3_LIBRARY_DIR], [$ax_python3_pyexecdir_suffix]) AC_SUBST( [PYTHON3_PACKAGE_DIR], [$ax_python3_library_dir]) ]) ]) dnl Function to determine the prefix of pythondir AC_DEFUN([AX_PYTHON_CHECK_PYPREFIX], [AX_COMMON_ARG_WITH( [pyprefix], [pyprefix], [use `python-config --prefix' to determine the prefix of pythondir instead of --prefix], [no], [no]) ]) dnl Function to detect if to enable Python AC_DEFUN([AX_PYTHON_CHECK_ENABLE], [AX_PYTHON_CHECK_PYPREFIX AX_COMMON_ARG_ENABLE( [python], [python], [build Python bindings], [no]) AX_COMMON_ARG_WITH( [pythondir], [pythondir], [use to specify the Python directory (pythondir)], [no], [no]) AX_COMMON_ARG_ENABLE( [python2], [python2], [build Python 2 bindings], [no]) AX_COMMON_ARG_WITH( [pythondir2], [pythondir2], [use to specify the Python 2 directory (pythondir2)], [no], [no]) AX_COMMON_ARG_ENABLE( [python3], [python3], [build Python 3 bindings], [no]) AX_COMMON_ARG_WITH( [pythondir3], [pythondir3], [use to specify the Python 3 directory (pythondir3)], [no], [no]) AS_IF( [test "x${ac_cv_enable_python}" != xno], [AX_PYTHON_CHECK]) AS_IF( [test "x${ac_cv_enable_python2}" != xno], [AX_PYTHON2_CHECK]) AS_IF( [test "x${ac_cv_enable_python3}" != xno], [AX_PYTHON3_CHECK]) AM_CONDITIONAL( HAVE_PYTHON, [test "x${ac_cv_enable_python}" != xno]) AM_CONDITIONAL( HAVE_PYTHON2, [test "x${ac_cv_enable_python2}" != xno]) AM_CONDITIONAL( HAVE_PYTHON3, [test "x${ac_cv_enable_python3}" != xno]) AM_CONDITIONAL( HAVE_PYTHON_TESTS, [test "x${ac_cv_enable_python}" != xno || test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno]) AS_IF( [test "x${ac_cv_enable_python}" = xno], [AS_IF( [test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno], [AS_IF( [test "x${ac_cv_enable_python2}" != xno], [ac_cv_enable_python=${ac_cv_enable_python2}], [ac_cv_enable_python=""]) AS_IF( [test "x${ac_cv_enable_python3}" != xno], [AS_IF( [test "x${ac_cv_enable_python}" != x], [ac_cv_enable_python="${ac_cv_enable_python}, "]) ac_cv_enable_python="${ac_cv_enable_python}${ac_cv_enable_python3}"]) ]) ]) ]) ]) libfsapfs-20190210/m4/libtool.m40000644000175000017500000112530613430101243020246 0ustar00lordyestalordyesta00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ]) # serial 58 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the 'libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to 'config.status' so that its # declaration there will have the same value as in 'configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]][[,.]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a[(]lib.so.V[)]' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS libfsapfs-20190210/m4/nls.m40000644000175000017500000000231513344411703017400 0ustar00lordyestalordyesta00000000000000# nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) libfsapfs-20190210/m4/libclocale.m40000664000175000017500000002004313373777010020705 0ustar00lordyestalordyesta00000000000000dnl Checks for libclocale required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libclocale is available dnl ac_libclocale_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCLOCALE_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libclocale" = xno], [ac_cv_libclocale=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libclocale"], [CFLAGS="$CFLAGS -I${ac_cv_with_libclocale}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libclocale}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libclocale], [1]) ]) ac_cv_libclocale=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libclocale], [libclocale >= 20120425], [ac_cv_libclocale=yes], [ac_cv_libclocale=check]) ]) AS_IF( [test "x$ac_cv_libclocale" = xyes && test "x$ac_cv_enable_wide_character_type" != xno], [AC_CACHE_CHECK( [whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1], [ac_cv_header_libclocale_features_h_have_wide_character_type], [AC_LANG_PUSH(C) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if !defined( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE not defined #endif]] )], [ac_cv_header_libclocale_features_h_have_wide_character_type=yes], [ac_cv_header_libclocale_features_h_have_wide_character_type=no]) AC_LANG_POP(C)], [ac_cv_header_libclocale_features_h_have_wide_character_type=no]) AS_IF( [test "x$ac_cv_header_libclocale_features_h_have_wide_character_type" = xno], [ac_cv_libclocale=no]) ]) AS_IF( [test "x$ac_cv_libclocale" = xyes], [ac_cv_libclocale_CPPFLAGS="$pkg_cv_libclocale_CFLAGS" ac_cv_libclocale_LIBADD="$pkg_cv_libclocale_LIBS"]) ]) AS_IF( [test "x$ac_cv_libclocale" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libclocale.h]) AS_IF( [test "x$ac_cv_header_libclocale_h" = xno], [ac_cv_libclocale=no], [dnl Check for the individual functions ac_cv_libclocale=yes AC_CHECK_LIB( clocale, libclocale_get_version, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) dnl Codepage functions AC_CHECK_LIB( clocale, libclocale_codepage, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) AC_CHECK_LIB( clocale, libclocale_codepage_get, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) AC_CHECK_LIB( clocale, libclocale_codepage_set, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) AC_CHECK_LIB( clocale, libclocale_codepage_copy_from_string, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_LIB( clocale, libclocale_codepage_copy_from_string_wide, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) ]) dnl Locale functions AC_CHECK_LIB( clocale, libclocale_locale_get_codepage, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) AC_CHECK_LIB( clocale, libclocale_locale_get_decimal_point, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) dnl Support functions AC_CHECK_LIB( clocale, libclocale_initialize, [ac_cv_libclocale_dummy=yes], [ac_cv_libclocale=no]) ac_cv_libclocale_LIBADD="-lclocale"]) ]) AS_IF( [test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect && test "x$ac_cv_libclocale" != xyes], [AC_MSG_FAILURE( [unable to find supported libclocale in directory: $ac_cv_with_libclocale], [1]) ]) ]) AS_IF( [test "x$ac_cv_libclocale" = xyes], [AC_DEFINE( [HAVE_LIBCLOCALE], [1], [Define to 1 if you have the `clocale' library (-lclocale).]) ]) AS_IF( [test "x$ac_cv_libclocale" = xyes], [AC_SUBST( [HAVE_LIBCLOCALE], [1]) ], [AC_SUBST( [HAVE_LIBCLOCALE], [0]) ]) ]) dnl Function to detect whether nl_langinfo supports CODESET AC_DEFUN([AX_LIBCLOCALE_CHECK_FUNC_LANGINFO_CODESET], [AC_CHECK_FUNCS([nl_langinfo]) AS_IF( [test "x$ac_cv_func_nl_langinfo" = xyes], [AC_CACHE_CHECK( [for nl_langinfo CODESET support], [ac_cv_cv_langinfo_codeset], [AC_LANG_PUSH(C) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[char* charset = nl_langinfo( CODESET );]] )], [ac_cv_cv_langinfo_codeset=yes], [ac_cv_cv_langinfo_codeset=no]) AC_LANG_POP(C) ]) ], [ac_cv_cv_langinfo_codeset=no]) AS_IF( [test "x$ac_cv_cv_langinfo_codeset" = xyes], [AC_DEFINE( [HAVE_LANGINFO_CODESET], [1], [Define if nl_langinfo has CODESET support.]) ]) ]) dnl Function to detect if libclocale dependencies are available AC_DEFUN([AX_LIBCLOCALE_CHECK_LOCAL], [dnl Headers included in libclocale/libclocale_locale.c AC_CHECK_HEADERS([langinfo.h locale.h]) dnl Check for environment functions in libclocale/libclocale_locale.c AC_CHECK_FUNCS([getenv]) AS_IF( [test "x$ac_cv_func_getenv" != xyes], [AC_MSG_FAILURE( [Missing function: getenv], [1]) ]) dnl Check for localization functions in libclocale/libclocale_locale.c AS_IF( [test "x$ac_cv_enable_winapi" = xno], [AC_CHECK_FUNCS([localeconv]) AS_IF( [test "x$ac_cv_func_localeconv" != xyes], [AC_MSG_FAILURE( [Missing function: localeconv], [1]) ]) ]) AC_CHECK_FUNCS([setlocale]) AS_IF( [test "x$ac_cv_func_setlocale" != xyes], [AC_MSG_FAILURE( [Missing function: setlocale], [1]) ]) AX_LIBCLOCALE_CHECK_FUNC_LANGINFO_CODESET ac_cv_libclocale_CPPFLAGS="-I../libclocale"; ac_cv_libclocale_LIBADD="../libclocale/libclocale.la"; ac_cv_libclocale=local ]) dnl Function to detect how to enable libclocale AC_DEFUN([AX_LIBCLOCALE_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libclocale], [libclocale], [search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCLOCALE_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libclocale" != xyes], [AX_LIBCLOCALE_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCLOCALE], [1], [Define to 1 if the local version of libclocale is used.]) AC_SUBST( [HAVE_LOCAL_LIBCLOCALE], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCLOCALE], [test "x$ac_cv_libclocale" = xlocal]) AS_IF( [test "x$ac_cv_libclocale_CPPFLAGS" != "x"], [AC_SUBST( [LIBCLOCALE_CPPFLAGS], [$ac_cv_libclocale_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libclocale_LIBADD" != "x"], [AC_SUBST( [LIBCLOCALE_LIBADD], [$ac_cv_libclocale_LIBADD]) ]) AS_IF( [test "x$ac_cv_libclocale" = xyes], [AC_SUBST( [ax_libclocale_pc_libs_private], [-lclocale]) ]) AS_IF( [test "x$ac_cv_libclocale" = xyes], [AC_SUBST( [ax_libclocale_spec_requires], [libclocale]) AC_SUBST( [ax_libclocale_spec_build_requires], [libclocale-devel]) ]) ]) libfsapfs-20190210/m4/libfdata.m40000664000175000017500000003613513374011160020357 0ustar00lordyestalordyesta00000000000000dnl Functions for libfdata dnl dnl Version: 20181117 dnl Function to detect if libfdata is available dnl ac_libfdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBFDATA_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdata" = xno], [ac_cv_libfdata=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libfdata"], [CFLAGS="$CFLAGS -I${ac_cv_with_libfdata}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfdata}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libfdata], [1]) ]) ac_cv_libfdata=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libfdata], [libfdata >= 20181009], [ac_cv_libfdata=yes], [ac_cv_libfdata=check]) ]) AS_IF( [test "x$ac_cv_libfdata" = xyes], [ac_cv_libfdata_CPPFLAGS="$pkg_cv_libfdata_CFLAGS" ac_cv_libfdata_LIBADD="$pkg_cv_libfdata_LIBS"]) ]) AS_IF( [test "x$ac_cv_libfdata" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libfdata.h]) AS_IF( [test "x$ac_cv_header_libfdata_h" = xno], [ac_cv_libfdata=no], [dnl Check for the individual functions ac_cv_libfdata=yes AC_CHECK_LIB( fdata, libfdata_get_version, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) dnl Area functions AC_CHECK_LIB( fdata, libfdata_area_initialize, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_free, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_clone, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_empty, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_resize, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_get_number_of_segments, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_get_segment_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_set_segment_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_prepend_segment, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_append_segment, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_get_element_data_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_get_element_value_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_set_element_value_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_area_get_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) dnl Balanced tree functions dnl TODO: add functions dnl List functions AC_CHECK_LIB( fdata, libfdata_list_initialize, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_free, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_clone, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_empty, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_resize, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_reverse, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_number_of_elements, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_list_element_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_element_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_set_element_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_prepend_element, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_append_element, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_append_list, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_is_element_set, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_mapped_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_set_mapped_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_mapped_size_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_set_mapped_size_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_element_by_index_with_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_set_element_by_index_with_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_append_element_with_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_element_index_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_list_element_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_element_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_cache_element_value, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_element_value_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_element_value_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_set_element_value_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_set_element_value_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_get_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_element_get_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_element_set_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_element_get_element_value, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_element_set_element_value, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) dnl List element functions AC_CHECK_LIB( fdata, libfdata_list_element_get_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_element_set_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_element_get_element_value, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_list_element_set_element_value, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) dnl Range list functions dnl TODO: add functions dnl Stream functions AC_CHECK_LIB( fdata, libfdata_stream_initialize, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_free, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_clone, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_empty, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_resize, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_reverse, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_get_number_of_segments, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_get_segment_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_set_segment_by_index, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_prepend_segment, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_append_segment, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_set_mapped_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_get_segment_mapped_range, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_get_segment_index_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_get_segment_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_read_buffer, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_read_buffer_at_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_write_buffer, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_seek_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_get_offset, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) AC_CHECK_LIB( fdata, libfdata_stream_get_size, [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) dnl Tree list functions dnl TODO: add functions dnl Vector list functions dnl TODO: add functions ac_cv_libfdata_LIBADD="-lfdata"]) ]) AS_IF( [test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect && test "x$ac_cv_libfdata" != xyes], [AC_MSG_FAILURE( [unable to find supported libfdata in directory: $ac_cv_with_libfdata], [1]) ]) ]) AS_IF( [test "x$ac_cv_libfdata" = xyes], [AC_DEFINE( [HAVE_LIBFDATA], [1], [Define to 1 if you have the `fdata' library (-lfdata).]) ]) AS_IF( [test "x$ac_cv_libfdata" = xyes], [AC_SUBST( [HAVE_LIBFDATA], [1]) ], [AC_SUBST( [HAVE_LIBFDATA], [0]) ]) ]) dnl Function to detect if libfdata dependencies are available AC_DEFUN([AX_LIBFDATA_CHECK_LOCAL], [dnl No additional checks. ac_cv_libfdata_CPPFLAGS="-I../libfdata"; ac_cv_libfdata_LIBADD="../libfdata/libfdata.la"; ac_cv_libfdata=local ]) dnl Function to detect how to enable libfdata AC_DEFUN([AX_LIBFDATA_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libfdata], [libfdata], [search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBFDATA_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libfdata" != xyes], [AX_LIBFDATA_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBFDATA], [1], [Define to 1 if the local version of libfdata is used.]) AC_SUBST( [HAVE_LOCAL_LIBFDATA], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBFDATA], [test "x$ac_cv_libfdata" = xlocal]) AS_IF( [test "x$ac_cv_libfdata_CPPFLAGS" != "x"], [AC_SUBST( [LIBFDATA_CPPFLAGS], [$ac_cv_libfdata_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libfdata_LIBADD" != "x"], [AC_SUBST( [LIBFDATA_LIBADD], [$ac_cv_libfdata_LIBADD]) ]) AS_IF( [test "x$ac_cv_libfdata" = xyes], [AC_SUBST( [ax_libfdata_pc_libs_private], [-lfdata]) ]) AS_IF( [test "x$ac_cv_libfdata" = xyes], [AC_SUBST( [ax_libfdata_spec_requires], [libfdata]) AC_SUBST( [ax_libfdata_spec_build_requires], [libfdata-devel]) ]) ]) libfsapfs-20190210/m4/libfdatetime.m40000664000175000017500000004346613374011160021247 0ustar00lordyestalordyesta00000000000000dnl Checks for libfdatetime required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libfdatetime is available dnl ac_libfdatetime_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBFDATETIME_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdatetime" = xno], [ac_cv_libfdatetime=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libfdatetime"], [CFLAGS="$CFLAGS -I${ac_cv_with_libfdatetime}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfdatetime}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libfdatetime], [1]) ]) ac_cv_libfdatetime=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libfdatetime], [libfdatetime >= 20180910], [ac_cv_libfdatetime=yes], [ac_cv_libfdatetime=check]) ]) AS_IF( [test "x$ac_cv_libfdatetime" = xyes], [ac_cv_libfdatetime_CPPFLAGS="$pkg_cv_libfdatetime_CFLAGS" ac_cv_libfdatetime_LIBADD="$pkg_cv_libfdatetime_LIBS"]) ]) AS_IF( [test "x$ac_cv_libfdatetime" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libfdatetime.h]) AS_IF( [test "x$ac_cv_header_libfdatetime_h" = xno], [ac_cv_libfdatetime=no], [dnl Check for the individual functions ac_cv_libfdatetime=yes AC_CHECK_LIB( fdatetime, libfdatetime_get_version, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) dnl FAT date time functions AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_initialize, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_free, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_from_byte_stream, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_from_32bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_to_32bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_to_utf8_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_to_utf8_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_to_utf16_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_to_utf16_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_to_utf32_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_fat_date_time_copy_to_utf32_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) dnl FILETIME functions AC_CHECK_LIB( fdatetime, libfdatetime_filetime_initialize, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_free, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_from_byte_stream, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_from_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_to_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_to_utf8_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_to_utf8_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_to_utf16_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_to_utf16_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_to_utf32_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_copy_to_utf32_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_filetime_add, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) dnl Floatingtime functions AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_initialize, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_free, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_from_byte_stream, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_from_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_to_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_to_utf8_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_to_utf8_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_to_utf16_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_to_utf16_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_to_utf32_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_floatingtime_copy_to_utf32_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) dnl HFS time functions AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_initialize, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_free, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_from_byte_stream, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_from_32bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_to_32bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_to_utf8_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_to_utf8_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_to_utf16_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_to_utf16_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_to_utf32_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_hfs_time_copy_to_utf32_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) dnl NSF timedate functions AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_initialize, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_free, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_from_byte_stream, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_from_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_to_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_to_utf8_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_to_utf8_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_to_utf16_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_to_utf16_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_to_utf32_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_nsf_timedate_copy_to_utf32_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) dnl POSIX time functions AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_initialize, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_free, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_from_byte_stream, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_from_32bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_32bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_from_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_64bit, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_utf8_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_utf8_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_utf16_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_utf16_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_utf32_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_posix_time_copy_to_utf32_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) dnl Systemtime functions AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_initialize, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_free, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_copy_from_byte_stream, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_copy_to_utf8_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_copy_to_utf8_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_copy_to_utf16_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_copy_to_utf16_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_copy_to_utf32_string, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) AC_CHECK_LIB( fdatetime, libfdatetime_systemetime_copy_to_utf32_string_with_index, [ac_cv_libfdatetime_dummy=yes], [ac_cv_libfdatetime=no]) ac_cv_libfdatetime_LIBADD="-lfdatetime"]) ]) AS_IF( [test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect && test "x$ac_cv_libfdatetime" != xyes], [AC_MSG_FAILURE( [unable to find supported libfdatetime in directory: $ac_cv_with_libfdatetime], [1]) ]) ]) AS_IF( [test "x$ac_cv_libfdatetime" = xyes], [AC_DEFINE( [HAVE_LIBFDATETIME], [1], [Define to 1 if you have the `fdatetime' library (-lfdatetime).]) ]) AS_IF( [test "x$ac_cv_libfdatetime" = xyes], [AC_SUBST( [HAVE_LIBFDATETIME], [1]) ], [AC_SUBST( [HAVE_LIBFDATETIME], [0]) ]) ]) dnl Function to detect if libfdatetime dependencies are available AC_DEFUN([AX_LIBFDATETIME_CHECK_LOCAL], [dnl No additional checks. ac_cv_libfdatetime_CPPFLAGS="-I../libfdatetime"; ac_cv_libfdatetime_LIBADD="../libfdatetime/libfdatetime.la"; ac_cv_libfdatetime=local ]) dnl Function to detect how to enable libfdatetime AC_DEFUN([AX_LIBFDATETIME_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libfdatetime], [libfdatetime], [search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) AX_LIBFDATETIME_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libfdatetime" != xyes], [AX_LIBFDATETIME_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBFDATETIME], [1], [Define to 1 if the local version of libfdatetime is used.]) AC_SUBST( [HAVE_LOCAL_LIBFDATETIME], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBFDATETIME], [test "x$ac_cv_libfdatetime" = xlocal]) AS_IF( [test "x$ac_cv_libfdatetime_CPPFLAGS" != "x"], [AC_SUBST( [LIBFDATETIME_CPPFLAGS], [$ac_cv_libfdatetime_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libfdatetime_LIBADD" != "x"], [AC_SUBST( [LIBFDATETIME_LIBADD], [$ac_cv_libfdatetime_LIBADD]) ]) AS_IF( [test "x$ac_cv_libfdatetime" = xyes], [AC_SUBST( [ax_libfdatetime_pc_libs_private], [-lfdatetime]) ]) AS_IF( [test "x$ac_cv_libfdatetime" = xyes], [AC_SUBST( [ax_libfdatetime_spec_requires], [libfdatetime]) AC_SUBST( [ax_libfdatetime_spec_build_requires], [libfdatetime-devel]) ]) ]) libfsapfs-20190210/m4/libcnotify.m40000664000175000017500000001300313374011160020740 0ustar00lordyestalordyesta00000000000000dnl Checks for libcnotify required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libcnotify is available dnl ac_libcnotify_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCNOTIFY_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcnotify" = xno], [ac_cv_libcnotify=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcnotify"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcnotify}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcnotify}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcnotify], [1]) ]) ac_cv_libcnotify=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcnotify], [libcnotify >= 20120425], [ac_cv_libcnotify=yes], [ac_cv_libcnotify=check]) ]) AS_IF( [test "x$ac_cv_libcnotify" = xyes], [ac_cv_libcnotify_CPPFLAGS="$pkg_cv_libcnotify_CFLAGS" ac_cv_libcnotify_LIBADD="$pkg_cv_libcnotify_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcnotify" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcnotify.h]) AS_IF( [test "x$ac_cv_header_libcnotify_h" = xno], [ac_cv_libcnotify=no], [dnl Check for the individual functions ac_cv_libcnotify=yes AC_CHECK_LIB( cnotify, libcnotify_get_version, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) dnl Print functions AC_CHECK_LIB( cnotify, libcnotify_printf, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) AC_CHECK_LIB( cnotify, libcnotify_print_data, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) AC_CHECK_LIB( cnotify, libcnotify_print_error_backtrace, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) dnl Stream functions AC_CHECK_LIB( cnotify, libcnotify_stream_set, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) AC_CHECK_LIB( cnotify, libcnotify_stream_open, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) AC_CHECK_LIB( cnotify, libcnotify_stream_close, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) dnl Verbose functions AC_CHECK_LIB( cnotify, libcnotify_verbose_set, [ac_cv_libcnotify_dummy=yes], [ac_cv_libcnotify=no]) ac_cv_libcnotify_LIBADD="-lcnotify"]) ]) AS_IF( [test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect && test "x$ac_cv_libcnotify" != xyes], [AC_MSG_FAILURE( [unable to find supported libcnotify in directory: $ac_cv_with_libcnotify], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcnotify" = xyes], [AC_DEFINE( [HAVE_LIBCNOTIFY], [1], [Define to 1 if you have the `cnotify' library (-lcnotify).]) ]) AS_IF( [test "x$ac_cv_libcnotify" = xyes], [AC_SUBST( [HAVE_LIBCNOTIFY], [1]) ], [AC_SUBST( [HAVE_LIBCNOTIFY], [0]) ]) ]) dnl Function to detect if libcnotify dependencies are available AC_DEFUN([AX_LIBCNOTIFY_CHECK_LOCAL], [dnl Headers included in libcnotify/libcnotify_print.c AC_CHECK_HEADERS([stdarg.h varargs.h]) AS_IF( [test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes], [AC_MSG_FAILURE( [Missing headers: stdarg.h and varargs.h], [1]) ]) dnl Headers included in libcnotify/libcnotify_stream.c AC_CHECK_HEADERS([errno.h]) ac_cv_libcnotify_CPPFLAGS="-I../libcnotify"; ac_cv_libcnotify_LIBADD="../libcnotify/libcnotify.la"; ac_cv_libcnotify=local ]) dnl Function to detect how to enable libcnotify AC_DEFUN([AX_LIBCNOTIFY_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libcnotify], [libcnotify], [search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCNOTIFY_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcnotify" != xyes], [AX_LIBCNOTIFY_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCNOTIFY], [1], [Define to 1 if the local version of libcnotify is used.]) AC_SUBST( [HAVE_LOCAL_LIBCNOTIFY], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCNOTIFY], [test "x$ac_cv_libcnotify" = xlocal]) AS_IF( [test "x$ac_cv_libcnotify_CPPFLAGS" != "x"], [AC_SUBST( [LIBCNOTIFY_CPPFLAGS], [$ac_cv_libcnotify_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcnotify_LIBADD" != "x"], [AC_SUBST( [LIBCNOTIFY_LIBADD], [$ac_cv_libcnotify_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcnotify" = xyes], [AC_SUBST( [ax_libcnotify_pc_libs_private], [-lcnotify]) ]) AS_IF( [test "x$ac_cv_libcnotify" = xyes], [AC_SUBST( [ax_libcnotify_spec_requires], [libcnotify]) AC_SUBST( [ax_libcnotify_spec_build_requires], [libcnotify-devel]) ]) ]) libfsapfs-20190210/m4/ltversion.m40000644000175000017500000000127313430101244020623 0ustar00lordyestalordyesta00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 4179 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.6]) m4_define([LT_PACKAGE_REVISION], [2.4.6]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.6' macro_revision='2.4.6' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) libfsapfs-20190210/m4/libcdata.m40000664000175000017500000004041713416700343020357 0ustar00lordyestalordyesta00000000000000dnl Checks for libcdata required headers and functions dnl dnl Version: 20190112 dnl Function to detect if libcdata is available dnl ac_libcdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCDATA_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcdata" = xno], [ac_cv_libcdata=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcdata"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcdata}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcdata}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcdata], [1]) ]) ac_cv_libcdata=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcdata], [libcdata >= 20190112], [ac_cv_libcdata=yes], [ac_cv_libcdata=check]) ]) AS_IF( [test "x$ac_cv_libcdata" = xyes], [ac_cv_libcdata_CPPFLAGS="$pkg_cv_libcdata_CFLAGS" ac_cv_libcdata_LIBADD="$pkg_cv_libcdata_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcdata" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcdata.h]) AS_IF( [test "x$ac_cv_header_libcdata_h" = xno], [ac_cv_libcdata=no], [dnl Check for the individual functions ac_cv_libcdata=yes AC_CHECK_LIB( cdata, libcdata_get_version, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) dnl Array functions AC_CHECK_LIB( cdata, libcdata_array_initialize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_free, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_empty, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_clone, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_resize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_reverse, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_get_number_of_entries, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_get_entry_by_index, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_get_entry_by_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_set_entry_by_index, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_prepend_entry, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_append_entry, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_insert_entry, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_array_remove_entry, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) dnl Balanced tree functions AC_CHECK_LIB( cdata, libfdata_btree_initialize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_btree_free, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_btree_get_number_of_values, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_btree_get_value_by_index, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_btree_get_value_by_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_btree_insert_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_btree_replace_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_btree_remove_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) dnl List functions AC_CHECK_LIB( cdata, libcdata_list_initialize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_free, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_empty, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_clone, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_get_number_of_elements, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_get_first_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_get_last_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_get_element_by_index, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_get_value_by_index, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_prepend_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_prepend_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_append_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_append_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_insert_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_insert_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_remove_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) dnl List element functions AC_CHECK_LIB( cdata, libcdata_list_element_initialize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_free, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_get_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_set_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_get_previous_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_set_previous_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_get_next_element, [ac_cv_libcdata_dummy=yes], AC_CHECK_LIB( cdata, libcdata_list_element_set_next_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_get_elements, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_element_set_elements, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) [ac_cv_libcdata=no]) dnl Range list functions AC_CHECK_LIB( cdata, libcdata_range_list_initialize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_free, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_empty, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_clone, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_get_number_of_elements, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_insert_range, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_insert_range_list, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_remove_range, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_get_range_by_index, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_get_range_at_offset, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_range_is_present, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_get_spanning_range, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) dnl Tree node functions AC_CHECK_LIB( cdata, libcdata_tree_node_initialize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_free, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_empty, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_clone, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_set_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_parent_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_set_parent_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_previous_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_set_previous_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_next_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_set_next_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_nodes, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_set_nodes, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_append_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_append_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_insert_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_insert_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_replace_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_remove_node, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_number_of_sub_nodes, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_sub_node_by_index, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_tree_node_get_leaf_node_list, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) ac_cv_libcdata_LIBADD="-lcdata"]) ]) AS_IF( [test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect && test "x$ac_cv_libcdata" != xyes], [AC_MSG_FAILURE( [unable to find supported libcdata in directory: $ac_cv_with_libcdata], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcdata" = xyes], [AC_DEFINE( [HAVE_LIBCDATA], [1], [Define to 1 if you have the `cdata' library (-lcdata).]) ]) AS_IF( [test "x$ac_cv_libcdata" = xyes], [AC_SUBST( [HAVE_LIBCDATA], [1]) ], [AC_SUBST( [HAVE_LIBCDATA], [0]) ]) ]) dnl Function to detect if libcdata dependencies are available AC_DEFUN([AX_LIBCDATA_CHECK_LOCAL], [dnl No additional checks. ac_cv_libcdata_CPPFLAGS="-I../libcdata"; ac_cv_libcdata_LIBADD="../libcdata/libcdata.la"; ac_cv_libcdata=local ]) dnl Function to detect how to enable libcdata AC_DEFUN([AX_LIBCDATA_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libcdata], [libcdata], [search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCDATA_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcdata" != xyes], [AX_LIBCDATA_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCDATA], [1], [Define to 1 if the local version of libcdata is used.]) AC_SUBST( [HAVE_LOCAL_LIBCDATA], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCDATA], [test "x$ac_cv_libcdata" = xlocal]) AS_IF( [test "x$ac_cv_libcdata_CPPFLAGS" != "x"], [AC_SUBST( [LIBCDATA_CPPFLAGS], [$ac_cv_libcdata_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcdata_LIBADD" != "x"], [AC_SUBST( [LIBCDATA_LIBADD], [$ac_cv_libcdata_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcdata" = xyes], [AC_SUBST( [ax_libcdata_pc_libs_private], [-lcdata]) ]) AS_IF( [test "x$ac_cv_libcdata" = xyes], [AC_SUBST( [ax_libcdata_spec_requires], [libcdata]) AC_SUBST( [ax_libcdata_spec_build_requires], [libcdata-devel]) ]) ]) libfsapfs-20190210/m4/progtest.m40000644000175000017500000000557313344411703020464 0ustar00lordyestalordyesta00000000000000# progtest.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) libfsapfs-20190210/m4/lt~obsolete.m40000644000175000017500000001377413430101244021161 0ustar00lordyestalordyesta00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software # Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) libfsapfs-20190210/m4/libcfile.m40000664000175000017500000002634713374011160020366 0ustar00lordyestalordyesta00000000000000dnl Checks for libcfile required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libcfile is available dnl ac_libcfile_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCFILE_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcfile" = xno], [ac_cv_libcfile=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcfile"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcfile}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcfile}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcfile], [1]) ]) ac_cv_libcfile=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcfile], [libcfile >= 20160409], [ac_cv_libcfile=yes], [ac_cv_libcfile=check]) ]) AS_IF( [test "x$ac_cv_libcfile" = xyes && test "x$ac_cv_enable_wide_character_type" != xno], [AC_CACHE_CHECK( [whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1], [ac_cv_header_libcfile_features_h_have_wide_character_type], [AC_LANG_PUSH(C) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if !defined( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCFILE_HAVE_WIDE_CHARACTER_TYPE not defined #endif]] )], [ac_cv_header_libcfile_features_h_have_wide_character_type=yes], [ac_cv_header_libcfile_features_h_have_wide_character_type=no]) AC_LANG_POP(C)], [ac_cv_header_libcfile_features_h_have_wide_character_type=no]) AS_IF( [test "x$ac_cv_header_libcfile_features_h_have_wide_character_type" = xno], [ac_cv_libcfile=no]) ]) AS_IF( [test "x$ac_cv_libcfile" = xyes], [ac_cv_libcfile_CPPFLAGS="$pkg_cv_libcfile_CFLAGS" ac_cv_libcfile_LIBADD="$pkg_cv_libcfile_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcfile" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcfile.h]) AS_IF( [test "x$ac_cv_header_libcfile_h" = xno], [ac_cv_libcfile=no], [dnl Check for the individual functions ac_cv_libcfile=yes AC_CHECK_LIB( cfile, libcfile_get_version, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) dnl File functions AC_CHECK_LIB( cfile, libcfile_file_initialize, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_free, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_open, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_open_with_error_code, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_close, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_read_buffer, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_read_buffer_with_error_code, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_write_buffer, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_write_buffer_with_error_code, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_seek_offset, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_resize, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_is_open, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_get_offset, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_get_size, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_is_device, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_io_control_read, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_io_control_read_with_error_code, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_LIB( cfile, libcfile_file_open_wide, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_open_wide_with_error_code, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) ]) dnl Support functions AC_CHECK_LIB( cfile, libcfile_file_exists, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_remove, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_LIB( cfile, libcfile_file_exists_wide, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) AC_CHECK_LIB( cfile, libcfile_file_remove_wide, [ac_cv_libcfile_dummy=yes], [ac_cv_libcfile=no]) ]) ac_cv_libcfile_LIBADD="-lcfile"]) ]) AS_IF( [test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect && test "x$ac_cv_libcfile" != xyes], [AC_MSG_FAILURE( [unable to find supported libcfile in directory: $ac_cv_with_libcfile], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcfile" = xyes], [AC_DEFINE( [HAVE_LIBCFILE], [1], [Define to 1 if you have the `cfile' library (-lcfile).]) ]) AS_IF( [test "x$ac_cv_libcfile" = xyes], [AC_SUBST( [HAVE_LIBCFILE], [1]) ], [AC_SUBST( [HAVE_LIBCFILE], [0]) ]) ]) dnl Function to detect if posix_fadvise is available AC_DEFUN([AX_LIBCFILE_CHECK_FUNC_POSIX_FADVISE], [AC_CHECK_FUNCS([posix_fadvise]) AS_IF( [test "x$ac_cv_func_posix_fadvise" = xyes], [AC_MSG_CHECKING( [whether posix_fadvise can be linked]) SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" AC_LANG_PUSH(C) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if !defined( POSIX_FADV_SEQUENTIAL ) #define POSIX_FADV_SEQUENTIAL 2 #endif posix_fadvise( 0, 0, 0, POSIX_FADV_SEQUENTIAL )]] )], [ac_cv_func_posix_fadvise=yes], [ac_cv_func_posix_fadvise=no]) AC_LANG_POP(C) CFLAGS="$SAVE_CFLAGS" AS_IF( [test "x$ac_cv_func_posix_fadvise" = xyes], [AC_MSG_RESULT( [yes]) AC_DEFINE( [HAVE_POSIX_FADVISE], [1], [Define to 1 if you have the posix_fadvise function.]) ], [AC_MSG_RESULT( [no]) ]) ]) ]) dnl Function to detect if libcfile dependencies are available AC_DEFUN([AX_LIBCFILE_CHECK_LOCAL], [dnl Headers included in libcfile/libcfile_file.c and libcfile/libcfile_support.c AC_CHECK_HEADERS([errno.h stdio.h sys/stat.h]) dnl Headers included in libcfile/libcfile_file.c AC_CHECK_HEADERS([cygwin/fs.h fcntl.h linux/fs.h sys/disk.h sys/disklabel.h sys/ioctl.h unistd.h]) dnl File input/output functions used in libcfile/libcfile_file.c AC_CHECK_FUNCS([close fstat ftruncate ioctl lseek open read write]) AS_IF( [test "x$ac_cv_func_close" != xyes], [AC_MSG_FAILURE( [Missing function: close], [1]) ]) AX_LIBCFILE_CHECK_FUNC_POSIX_FADVISE AS_IF( [test "x$ac_cv_func_fstat" != xyes], [AC_MSG_FAILURE( [Missing function: fstat], [1]) ]) AS_IF( [test "x$ac_cv_func_ftruncate" != xyes], [AC_MSG_FAILURE( [Missing function: ftruncate], [1]) ]) AS_IF( [test x"$ac_cv_enable_winapi" = xno], [AS_IF( [test "x$ac_cv_func_ioctl" != xyes], [AC_MSG_FAILURE( [Missing function: ioctl], [1]) ]) ]) AS_IF( [test "x$ac_cv_func_lseek" != xyes], [AC_MSG_FAILURE( [Missing function: lseek], [1]) ]) AS_IF( [test "x$ac_cv_func_open" != xyes], [AC_MSG_FAILURE( [Missing function: open], [1]) ]) AS_IF( [test "x$ac_cv_func_read" != xyes], [AC_MSG_FAILURE( [Missing function: read], [1]) ]) AS_IF( [test "x$ac_cv_func_write" != xyes], [AC_MSG_FAILURE( [Missing function: write], [1]) ]) dnl File input/output functions used in libcfile/libcfile_support.c AC_CHECK_FUNCS([stat unlink]) AS_IF( [test "x$ac_cv_func_stat" != xyes], [AC_MSG_FAILURE( [Missing function: stat], [1]) ]) AS_IF( [test "x$ac_cv_func_unlink" != xyes], [AC_MSG_FAILURE( [Missing function: unlink], [1]) ]) ac_cv_libcfile_CPPFLAGS="-I../libcfile"; ac_cv_libcfile_LIBADD="../libcfile/libcfile.la"; ac_cv_libcfile=local ]) dnl Function to detect how to enable libcfile AC_DEFUN([AX_LIBCFILE_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libcfile], [libcfile], [search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCFILE_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcfile" != xyes], [AX_LIBCFILE_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCFILE], [1], [Define to 1 if the local version of libcfile is used.]) AC_SUBST( [HAVE_LOCAL_LIBCFILE], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCFILE], [test "x$ac_cv_libcfile" = xlocal]) AS_IF( [test "x$ac_cv_libcfile_CPPFLAGS" != "x"], [AC_SUBST( [LIBCFILE_CPPFLAGS], [$ac_cv_libcfile_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcfile_LIBADD" != "x"], [AC_SUBST( [LIBCFILE_LIBADD], [$ac_cv_libcfile_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcfile" = xyes], [AC_SUBST( [ax_libcfile_pc_libs_private], [-lcfile]) ]) AS_IF( [test "x$ac_cv_libcfile" = xyes], [AC_SUBST( [ax_libcfile_spec_requires], [libcfile]) AC_SUBST( [ax_libcfile_spec_build_requires], [libcfile-devel]) ]) ]) libfsapfs-20190210/m4/libcrypto.m40000664000175000017500000005663113413201371020622 0ustar00lordyestalordyesta00000000000000dnl Checks for libcrypto required headers and functions dnl dnl Version: 20190102 dnl Function to detect whether openssl/evp.h can be used in combination with zlib.h AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_ZLIB_COMPATIBILE], [AC_CACHE_CHECK( [if openssl/evp.h can be used in combination with zlib.h], [ac_cv_openssl_evp_zlib_compatible], [AC_LANG_PUSH(C) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[ ]] )], [ac_cv_openssl_evp_zlib_compatible=yes], [ac_cv_openssl_evp_zlib_compatible=no]) AC_LANG_POP(C)]) ]) dnl Function to detect if libcrypto (openssl) EVP functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP], [AC_CHECK_HEADERS([openssl/evp.h]) AS_IF( [test "x$ac_cv_header_openssl_evp_h" = xno], [ac_cv_libcrypto=no ac_cv_libcrypto_evp=no], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_ZLIB_COMPATIBILE AS_IF( [test "x$ac_cv_openssl_evp_zlib_compatible" = xyes], [ac_cv_libcrypto=yes ac_cv_libcrypto_evp=yes], [ac_cv_libcrypto=no ac_cv_libcrypto_evp=no]) ]) ]) dnl Function to detect if libcrypto (openssl) EVP MD functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD], [ac_cv_libcrypto_evp_md=yes AC_CHECK_LIB( crypto, EVP_MD_CTX_new, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_dummy=no]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_MD_CTX_new" = xyes], [dnl Check for the new EVP API functions AC_CHECK_LIB( crypto, EVP_MD_CTX_free, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_md=no]) ], [dnl Check for the old EVP API functions AC_CHECK_LIB( crypto, EVP_MD_CTX_init, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_md=no]) AC_CHECK_LIB( crypto, EVP_MD_CTX_cleanup, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_md=no]) AC_CHECK_LIB( crypto, ERR_remove_thread_state, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_md=no]) ]) AC_CHECK_LIB( crypto, EVP_DigestInit_ex, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_md=no]) AC_CHECK_LIB( crypto, EVP_DigestUpdate, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_md=no]) AC_CHECK_LIB( crypto, EVP_DigestFinal_ex, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_md=no]) AS_IF( [test "x$ac_cv_enable_openssl_evp_md" = xyes && "x$ac_cv_libcrypto_evp_md" = xno], [AC_MSG_FAILURE( [Missing OpenSSL EVP MD support], [1]) ]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_MD_CTX_init" = xyes], [AC_DEFINE( [HAVE_EVP_MD_CTX_INIT], [1], [Define to 1 if you have the `EVP_MD_CTX_init' function".]) ]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_MD_CTX_cleanup" = xyes], [AC_DEFINE( [HAVE_EVP_MD_CTX_CLEANUP], [1], [Define to 1 if you have the `EVP_MD_CTX_cleanup' function".]) ]) ]) dnl Function to detect if openssl EVP MD5 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD5], [AC_CHECK_LIB( crypto, EVP_md5, [ac_cv_libcrypto_md5=libcrypto_evp], [ac_cv_libcrypto_md5=no]) AS_IF( [test "x$ac_cv_libcrypto_md5" = xlibcrypto_evp], [AC_DEFINE( [HAVE_EVP_MD5], [1], [Define to 1 if you have the `EVP_md5' function".]) ]) ]) dnl Function to detect if openssl EVP SHA1 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA1], [AC_CHECK_LIB( crypto, EVP_sha1, [ac_cv_libcrypto_sha1=libcrypto_evp], [ac_cv_libcrypto_sha1=no]) AS_IF( [test "x$ac_cv_libcrypto_sha1" = xlibcrypto_evp], [AC_DEFINE( [HAVE_EVP_SHA1], [1], [Define to 1 if you have the `EVP_sha1' function".]) ]) ]) dnl Function to detect if openssl EVP SHA224 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA224], [AC_CHECK_LIB( crypto, EVP_sha224, [ac_cv_libcrypto_sha224=libcrypto_evp], [ac_cv_libcrypto_sha224=no]) AS_IF( [test "x$ac_cv_libcrypto_sha224" = xlibcrypto_evp], [AC_DEFINE( [HAVE_EVP_SHA224], [1], [Define to 1 if you have the `EVP_sha224' function".]) ]) ]) dnl Function to detect if openssl EVP SHA256 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA256], [AC_CHECK_LIB( crypto, EVP_sha256, [ac_cv_libcrypto_sha256=libcrypto_evp], [ac_cv_libcrypto_sha256=no]) AS_IF( [test "x$ac_cv_libcrypto_sha256" = xlibcrypto_evp], [AC_DEFINE( [HAVE_EVP_SHA256], [1], [Define to 1 if you have the `EVP_sha256' function".]) ]) ]) dnl Function to detect if openssl EVP SHA512 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA512], [AC_CHECK_LIB( crypto, EVP_sha512, [ac_cv_libcrypto_sha512=libcrypto_evp], [ac_cv_libcrypto_sha512=no]) AS_IF( [test "x$ac_cv_libcrypto_sha512" = xlibcrypto_evp], [AC_DEFINE( [HAVE_EVP_SHA512], [1], [Define to 1 if you have the `EVP_sha512' function".]) ]) ]) dnl Function to detect if openssl MD5 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_MD5], [AC_CHECK_HEADERS([openssl/md5.h]) AS_IF( [test "x$ac_cv_header_openssl_md5_h" = xno], [ac_cv_libcrypto_md5=no], [ac_cv_libcrypto_md5=libcrypto AC_CHECK_LIB( crypto, MD5_Init, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_md5=no]) AC_CHECK_LIB( crypto, MD5_Update, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_md5=no]) AC_CHECK_LIB( crypto, MD5_Final, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_md5=no]) ]) AS_IF( [test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_md5" = xlibcrypto], [ac_cv_libcrypto=yes]) ]) dnl Function to detect if openssl SHA1 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_SHA1], [AC_CHECK_HEADERS([openssl/sha.h]) AS_IF( [test "x$ac_cv_header_openssl_sha_h" = xno], [ac_cv_libcrypto_sha1=no], [ac_cv_libcrypto_sha1=libcrypto AC_CHECK_LIB( crypto, SHA1_Init, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha1=no]) AC_CHECK_LIB( crypto, SHA1_Update, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha1=no]) AC_CHECK_LIB( crypto, SHA1_Final, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha1=no]) ]) AS_IF( [test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha1" = xlibcrypto], [ac_cv_libcrypto=yes]) ]) dnl Function to detect if openssl SHA224 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_SHA224], [AC_CHECK_HEADERS([openssl/sha.h]) AS_IF( [test "x$ac_cv_header_openssl_sha_h" = xno], [ac_cv_libcrypto_sha224=no], [ac_cv_libcrypto_sha224=libcrypto AC_CHECK_LIB( crypto, SHA224_Init, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha224=no]) AC_CHECK_LIB( crypto, SHA224_Update, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha224=no]) AC_CHECK_LIB( crypto, SHA224_Final, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha224=no]) ]) AS_IF( [test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha224" = xlibcrypto], [ac_cv_libcrypto=yes]) ]) dnl Function to detect if openssl SHA256 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_SHA256], [AC_CHECK_HEADERS([openssl/sha.h]) AS_IF( [test "x$ac_cv_header_openssl_sha_h" = xno], [ac_cv_libcrypto_sha256=no], [ac_cv_libcrypto_sha256=libcrypto AC_CHECK_LIB( crypto, SHA256_Init, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha256=no]) AC_CHECK_LIB( crypto, SHA256_Update, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha256=no]) AC_CHECK_LIB( crypto, SHA256_Final, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha256=no]) ]) AS_IF( [test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha256" = xlibcrypto], [ac_cv_libcrypto=yes]) ]) dnl Function to detect if openssl SHA512 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_SHA512], [AC_CHECK_HEADERS([openssl/sha.h]) AS_IF( [test "x$ac_cv_header_openssl_sha_h" = xno], [ac_cv_libcrypto_sha512=no], [ac_cv_libcrypto_sha512=libcrypto AC_CHECK_LIB( crypto, SHA512_Init, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha512=no]) AC_CHECK_LIB( crypto, SHA512_Update, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha512=no]) AC_CHECK_LIB( crypto, SHA512_Final, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_sha512=no]) ]) AS_IF( [test "x$ac_cv_libcrypto" = xno && test "x$ac_cv_libcrypto_sha512" = xlibcrypto], [ac_cv_libcrypto=yes]) ]) dnl Function to detect if openssl EVP CIPHER functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_EVP_CIPHER], [ac_cv_libcrypto_evp_cipher=yes dnl Check if all required libcrypto (openssl) EVP CIPHER functions are available AC_CHECK_LIB( crypto, EVP_CIPHER_CTX_new, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_dummy=no]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes], [dnl Check for the new EVP API functions AC_CHECK_LIB( crypto, EVP_CIPHER_CTX_free, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) ], [dnl Check for the old EVP API functions AC_CHECK_LIB( crypto, EVP_CIPHER_CTX_init, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) AC_CHECK_LIB( crypto, EVP_CIPHER_CTX_cleanup, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) AC_CHECK_LIB( crypto, ERR_remove_thread_state, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) ]) AC_CHECK_LIB( crypto, EVP_CIPHER_CTX_set_padding, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) AC_CHECK_LIB( crypto, EVP_CipherInit_ex, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) AC_CHECK_LIB( crypto, EVP_CipherUpdate, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) AC_CHECK_LIB( crypto, EVP_CipherFinal_ex, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_evp_cipher=no]) AS_IF( [test "x$ac_cv_enable_openssl_evp_cipher" = xyes && "x$ac_cv_libcrypto_evp_cipher" = xno], [AC_MSG_FAILURE( [Missing OpenSSL EVP CIPHER support], [1]) ]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_init" = xyes], [AC_DEFINE( [HAVE_EVP_CIPHER_CTX_INIT], [1], [Define to 1 if you have the `EVP_CIPHER_CTX_init' function".]) ]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_cleanup" = xyes], [AC_DEFINE( [HAVE_EVP_CIPHER_CTX_CLEANUP], [1], [Define to 1 if you have the `EVP_CIPHER_CTX_cleanup' function".]) ]) ]) dnl Function to detect if openssl AES-CBC and AES-ECB functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_OPENSSL_AES], [AC_CHECK_HEADERS([openssl/aes.h]) AS_IF( [test "x$ac_cv_header_openssl_aes_h" = xno], [ac_cv_libcrypto_aes_cbc=no ac_cv_libcrypto_aes_ecb=no], [ac_cv_libcrypto_aes_cbc=libcrypto ac_cv_libcrypto_aes_ecb=libcrypto AC_CHECK_LIB( crypto, AES_set_decrypt_key, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_cbc=no, ac_cv_libcrypto_aes_ecb=no]) AC_CHECK_LIB( crypto, AES_set_encrypt_key, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_cbc=no, ac_cv_libcrypto_aes_ecb=no]) AC_CHECK_LIB( crypto, AES_cbc_encrypt, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_cbc=no]) AC_CHECK_LIB( crypto, AES_ecb_encrypt, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_ecb=no]) AS_IF( [test "x$ac_cv_lib_crypto_AES_cbc_encrypt" = xyes], [AC_DEFINE( [HAVE_AES_CBC_ENCRYPT], [1], [Define to 1 if you have the `AES_cbc_encrypt' function".]) ]) AS_IF( [test "x$ac_cv_lib_crypto_AES_ecb_encrypt" = xyes], [AC_DEFINE( [HAVE_AES_ECB_ENCRYPT], [1], [Define to 1 if you have the `AES_ecb_encrypt' function".]) ]) ]) AS_IF( [test "x$ac_cv_libcrypto" = xno], [AS_IF( [test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno], [ac_cv_libcrypto=yes]) ]) dnl ac_cv_libcrypto_aes is deprecated but kept for backwards compatibility AS_IF( [test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno], [ac_cv_libcrypto_aes=no], [ac_cv_libcrypto_aes=libcrypto]) ]) dnl Function to detect if libcrypto (openssl) dependencies are available AC_DEFUN([AX_LIBCRYPTO_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_openssl" = xno], [ac_cv_libcrypto=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_openssl" != x && test "x$ac_cv_with_openssl" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_openssl"], [CFLAGS="$CFLAGS -I${ac_cv_with_openssl}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_openssl}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_openssl], [1]) ])], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [openssl], [openssl >= 1.0], [ac_cv_libcrypto=yes ac_cv_libcrypto_evp=yes], [ac_cv_libcrypto=no ac_cv_libcrypto_evp=no]) ]) AS_IF( [test "x$ac_cv_libcrypto" = xyes], [ac_cv_libcrypto_CPPFLAGS="$pkg_cv_openssl_CFLAGS" ac_cv_libcrypto_LIBADD="$pkg_cv_openssl_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcrypto" != xyes], [dnl Check for headers AC_CHECK_HEADERS([openssl/opensslv.h]) AX_LIBCRYPTO_CHECK_OPENSSL_EVP AS_IF( [test "x$ac_cv_libcrypto_evp" != xyes && test "$ac_cv_header_openssl_opensslv" = xyes], [ac_cv_libcrypto=yes]) ]) dnl Setup libcrypto (openssl) parameters AS_IF( [test "x$ac_cv_libcrypto" = xyes && test "x$ac_cv_libcrypto_evp" = xyes], [AC_DEFINE( [HAVE_OPENSSL_EVP_H], [1], [Define to 1 if you have the header file.]) AC_SUBST( [HAVE_OPENSSL_EVP_H], [1]) ], [AC_SUBST( [HAVE_OPENSSL_EVP_H], [0]) ]) AS_IF( [test "x$ac_cv_libcrypto" != xno], [AC_DEFINE( [HAVE_LIBCRYPTO], [1], [Define to 1 if you have the 'crypto' library (-lcrypto).]) ac_cv_libcrypto_LIBADD="-lcrypto" dnl Enforce the dynamic loader library to be included if available AC_CHECK_LIB( dl, dlopen, [AC_SUBST( [LIBDL_LIBADD], ["-ldl"])], []) ]) ]) ]) dnl Function to detect if libcrypto MD5 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_MD5], [ac_cv_libcrypto_md5=no dnl Check for libcrypto (openssl) EVP MD support AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_libcrypto_evp_md" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD]) dnl Check for libcrypto (openssl) EVP MD5 support AS_IF( [test "x$ac_cv_libcrypto_evp_md" = xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD5]) dnl Check for libcrypto (openssl) MD5 support AS_IF( [test "x$ac_cv_libcrypto_md5" = xno], [AX_LIBCRYPTO_CHECK_OPENSSL_MD5]) ]) dnl Function to detect if libcrypto SHA1 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_SHA1], [ac_cv_libcrypto_sha1=no dnl Check for libcrypto (openssl) EVP MD support AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD]) dnl Check for libcrypto (openssl) EVP SHA1 support AS_IF( [test "x$ac_cv_libcrypto_evp_md" = xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA1]) dnl Check for libcrypto (openssl) SHA1 support AS_IF( [test "x$ac_cv_libcrypto_sha1" = xno], [AX_LIBCRYPTO_CHECK_OPENSSL_SHA1]) ]) dnl Function to detect if libcrypto SHA224 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_SHA224], [ac_cv_libcrypto_sha224=no dnl Check for libcrypto (openssl) EVP MD support AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD]) dnl Check for libcrypto (openssl) EVP SHA224 support AS_IF( [test "x$ac_cv_libcrypto_evp_md" = xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA224]) dnl Check for libcrypto (openssl) SHA224 support AS_IF( [test "x$ac_cv_libcrypto_sha224" = xno], [AX_LIBCRYPTO_CHECK_OPENSSL_SHA224]) ]) dnl Function to detect if libcrypto SHA256 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_SHA256], [ac_cv_libcrypto_sha256=no dnl Check for libcrypto (openssl) EVP MD support AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD]) dnl Check for libcrypto (openssl) EVP SHA256 support AS_IF( [test "x$ac_cv_libcrypto_evp_md" = xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA256]) dnl Check for libcrypto (openssl) SHA256 support AS_IF( [test "x$ac_cv_libcrypto_sha256" = xno], [AX_LIBCRYPTO_CHECK_OPENSSL_SHA256]) ]) dnl Function to detect if libcrypto SHA512 functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_SHA512], [ac_cv_libcrypto_sha512=no dnl Check for libcrypto (openssl) EVP MD support AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_md" != xno && test "x$ac_cv_libcrypto_evp_md" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_MD]) dnl Check for libcrypto (openssl) EVP SHA512 support AS_IF( [test "x$ac_cv_libcrypto_evp_md" = xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_SHA512]) dnl Check for libcrypto (openssl) SHA512 support AS_IF( [test "x$ac_cv_libcrypto_sha512" = xno], [AX_LIBCRYPTO_CHECK_OPENSSL_SHA512]) ]) dnl Function to detect if libcrypto AES-CBC and AES-ECB functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_AES], [dnl Check for libcrypto (openssl) EVP CIPHER AES-CBC and AES-ECB support AX_LIBCRYPTO_CHECK_AES_CBC AX_LIBCRYPTO_CHECK_AES_ECB dnl ac_cv_libcrypto_aes is deprecated but kept for backwards compatibility AS_IF( [test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno], [ac_cv_libcrypto_aes=no], [ac_cv_libcrypto_aes=libcrypto_evp]) dnl Check for libcrypto (openssl) AES-CBC and AES-ECB support AS_IF( [test "x$ac_cv_libcrypto_aes_cbc" = xno || test "x$ac_cv_libcrypto_aes_ecb" = xno], [AX_LIBCRYPTO_CHECK_OPENSSL_AES]) ]) dnl Function to detect if libcrypto AES-CBC functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_AES_CBC], [AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_cipher" != xno && test "x$ac_cv_libcrypto_evp_cipher" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_CIPHER]) AS_IF( [test "x$ac_cv_libcrypto_evp_cipher" != xyes], [ac_cv_libcrypto_aes_cbc=no], [ac_cv_libcrypto_aes_cbc=libcrypto_evp AC_CHECK_LIB( crypto, EVP_aes_128_cbc, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_cbc=no]) AC_CHECK_LIB( crypto, EVP_aes_192_cbc, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_cbc=no]) AC_CHECK_LIB( crypto, EVP_aes_256_cbc, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_cbc=no]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_aes_128_cbc" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_192_cbc" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_256_cbc" = xyes], [AC_DEFINE( [HAVE_EVP_CRYPTO_AES_CBC], [1], [Define to 1 if you have the `EVP_aes_128_cbc', `EVP_aes_192_cbc' and `EVP_aes_256_cbc' functions".]) ]) ]) ]) dnl Function to detect if libcrypto AES-ECB functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_AES_ECB], [AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_cipher" != xno && test "x$ac_cv_libcrypto_evp_cipher" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_CIPHER]) AS_IF( [test "x$ac_cv_libcrypto_evp_cipher" != xyes], [ac_cv_libcrypto_aes_ecb=no], [ac_cv_libcrypto_aes_ecb=libcrypto_evp AC_CHECK_LIB( crypto, EVP_aes_128_ecb, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_ecb=no]) AC_CHECK_LIB( crypto, EVP_aes_192_ecb, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_ecb=no]) AC_CHECK_LIB( crypto, EVP_aes_256_ecb, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_ecb=no]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_aes_128_ecb" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_192_ecb" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_256_ecb" = xyes], [AC_DEFINE( [HAVE_EVP_CRYPTO_AES_ECB], [1], [Define to 1 if you have the `EVP_aes_128_ecb', `EVP_aes_192_ecb' and `EVP_aes_256_ecb' functions".]) ]) ]) ]) dnl Function to detect if libcrypto AES-XTS functions are available AC_DEFUN([AX_LIBCRYPTO_CHECK_AES_XTS], [AS_IF( [test "x$ac_cv_libcrypto_evp" = xyes && test "x$ac_cv_enable_openssl_evp_cipher" != xno && test "x$ac_cv_libcrypto_evp_cipher" != xyes], [AX_LIBCRYPTO_CHECK_OPENSSL_EVP_CIPHER]) AS_IF( [test "x$ac_cv_libcrypto_evp_cipher" != xyes], [ac_cv_libcrypto_aes_xts=no], [ac_cv_libcrypto_aes_xts=libcrypto_evp AC_CHECK_LIB( crypto, EVP_aes_128_xts, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_xts=no]) AC_CHECK_LIB( crypto, EVP_aes_256_xts, [ac_cv_libcrypto_dummy=yes], [ac_cv_libcrypto_aes_xts=no]) AS_IF( [test "x$ac_cv_lib_crypto_EVP_aes_128_xts" = xyes && test "x$ac_cv_lib_crypto_EVP_aes_256_xts" = xyes], [AC_DEFINE( [HAVE_EVP_CRYPTO_AES_XTS], [1], [Define to 1 if you have the `EVP_aes_128_xts' and `EVP_aes_256_xts' functions".]) ]) ]) ]) dnl Function to detect how to enable libcrypto (openssl) AC_DEFUN([AX_LIBCRYPTO_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [openssl], [openssl], [search for OpenSSL in includedir and libdir or in the specified DIR, or no if not to use OpenSSL], [auto-detect], [DIR]) AX_COMMON_ARG_ENABLE( [openssl-evp-cipher], [openssl_evp_cipher], [enable OpenSSL EVP CIPHER support, or no to disable], [auto-detect]) AX_COMMON_ARG_ENABLE( [openssl-evp-md], [openssl_evp_md], [enable OpenSSL EVP MD support, or no to disable], [auto-detect]) dnl Check for a shared library version AX_LIBCRYPTO_CHECK_LIB AS_IF( [test "x$ac_cv_libcrypto_CPPFLAGS" != "x"], [AC_SUBST( [LIBCRYPTO_CPPFLAGS], [$ac_cv_libcrypto_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcrypto_LIBADD" != "x"], [AC_SUBST( [LIBCRYPTO_LIBADD], [$ac_cv_libcrypto_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcrypto" != xno], [AC_SUBST( [ax_libcrypto_pc_libs_private], [-lcrypto]) ]) AS_IF( [test "x$ac_cv_libcrypto" != xno], [AC_SUBST( [ax_libcrypto_spec_requires], [openssl]) AC_SUBST( [ax_libcrypto_spec_build_requires], [openssl-devel]) ]) ]) libfsapfs-20190210/m4/po.m40000644000175000017500000004461613344411703017234 0ustar00lordyestalordyesta00000000000000# po.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <]], [[printf( "%jd" ); ]] )], [ac_cv_cv_have_printf_jd=no], [ac_cv_cv_have_printf_jd=yes]) dnl Second try to see if compilation and linkage with a parameter succeeds AS_IF( [test "x$ac_cv_cv_have_printf_jd" = xyes], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[printf( "%jd", (off_t) 10 ); ]] )], [ac_cv_cv_have_printf_jd=yes], [ac_cv_cv_have_printf_jd=no]) ]) dnl Third try to see if the program runs correctly AS_IF( [test "x$ac_cv_cv_have_printf_jd" = xyes], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[char string[ 3 ]; if( snprintf( string, 3, "%jd", (off_t) 10 ) < 0 ) return( 1 ); if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); ]] )], [ac_cv_cv_have_printf_jd=yes], [ac_cv_cv_have_printf_jd=no], [ac_cv_cv_have_printf_jd=undetermined]) ]) AC_LANG_POP(C) CFLAGS="$SAVE_CFLAGS" AS_IF( [test "x$ac_cv_cv_have_printf_jd" = xyes], [AC_MSG_RESULT( [yes]) AC_DEFINE( [HAVE_PRINTF_JD], [1], [Define to 1 whether printf supports the conversion specifier "%jd".]) ], [AC_MSG_RESULT( [$ac_cv_cv_have_printf_jd]) ]) ]) dnl Function to detect whether printf conversion specifier "%zd" is available AC_DEFUN([AX_COMMON_CHECK_FUNC_PRINTF_ZD], [ AC_MSG_CHECKING( [whether printf supports the conversion specifier "%zd"]) SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" AC_LANG_PUSH(C) dnl First try to see if compilation and linkage without a parameter succeeds AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[printf( "%zd" ); ]] )], [ac_cv_cv_have_printf_zd=no], [ac_cv_cv_have_printf_zd=yes]) dnl Second try to see if compilation and linkage with a parameter succeeds AS_IF( [test "x$ac_cv_cv_have_printf_zd" = xyes], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[printf( "%zd", (size_t) 10 ); ]] )], [ac_cv_cv_have_printf_zd=yes], [ac_cv_cv_have_printf_zd=no]) ]) dnl Third try to see if the program runs correctly AS_IF( [test "x$ac_cv_cv_have_printf_zd" = xyes], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[char string[ 3 ]; if( snprintf( string, 3, "%zd", (size_t) 10 ) < 0 ) return( 1 ); if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); ]] )], [ac_cv_cv_have_printf_zd=yes], [ac_cv_cv_have_printf_zd=no], [ac_cv_cv_have_printf_zd=undetermined]) ]) AC_LANG_POP(C) CFLAGS="$SAVE_CFLAGS" AS_IF( [test "x$ac_cv_cv_have_printf_zd" = xyes], [AC_MSG_RESULT( [yes]) AC_DEFINE( [HAVE_PRINTF_ZD], [1], [Define to 1 whether printf supports the conversion specifier "%zd".]) ], [AC_MSG_RESULT( [$ac_cv_cv_have_printf_zd]) ]) ]) dnl Function to detect if common dependencies are available AC_DEFUN([AX_COMMON_CHECK_LOCAL], [ dnl Headers included in common/common.h AS_IF( [test "x$ac_cv_enable_winapi" = xyes], [AC_CHECK_HEADERS([windows.h]) AS_IF( [test "x$ac_cv_header_windows_h" = xno], [AC_MSG_FAILURE( [Missing header: windows.h header is required to compile with winapi support], [1]) ]) ]) AS_IF( [test "x$ac_cv_enable_winapi" = xno], [AC_CHECK_HEADERS([libintl.h]) ]) dnl Headers included in common/types.h AC_CHECK_HEADERS([limits.h]) dnl Headers included in common/memory.h and common/narrow_string.h AC_CHECK_HEADERS([stdlib.h string.h]) dnl Headers included in common/wide_string.h AC_CHECK_HEADERS([wchar.h wctype.h]) dnl File stream functions used in common/file_stream.h AC_CHECK_FUNCS([fclose feof fgets fopen fread fseeko fseeko64 fwrite vfprintf]) AS_IF( [test "x$ac_cv_func_fclose" != xyes], [AC_MSG_FAILURE( [Missing function: fclose], [1]) ]) AS_IF( [test "x$ac_cv_func_feof" != xyes], [AC_MSG_FAILURE( [Missing function: feof], [1]) ]) AS_IF( [test "x$ac_cv_func_fgets" != xyes], [AC_MSG_FAILURE( [Missing function: fgets], [1]) ]) AS_IF( [test "x$ac_cv_func_fopen" != xyes], [AC_MSG_FAILURE( [Missing function: fopen], [1]) ]) AS_IF( [test "x$ac_cv_func_fread" != xyes], [AC_MSG_FAILURE( [Missing function: fread], [1]) ]) AS_IF( [test "x$ac_cv_func_fseeko" != xyes && test "x$ac_cv_func_fseeko64" != xyes], [AC_MSG_FAILURE( [Missing function: fseeko and fseeko64], [1]) ]) AS_IF( [test "x$ac_cv_func_fwrite" != xyes], [AC_MSG_FAILURE( [Missing function: fwrite], [1]) ]) AS_IF( [test "x$ac_cv_func_vfprintf" != xyes], [AC_MSG_FAILURE( [Missing function: vfprintf], [1]) ]) AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_FUNCS([fgetws]) AS_IF( [test "x$ac_cv_func_fgetws" != xyes], [AC_MSG_FAILURE( [Missing function: fgetws], [1]) ]) ]) dnl Memory functions used in common/memory.h AC_CHECK_FUNCS([free malloc memcmp memcpy memset realloc]) AS_IF( [test "x$ac_cv_func_free" != xyes], [AC_MSG_FAILURE( [Missing function: free], [1]) ]) AS_IF( [test "x$ac_cv_func_malloc" != xyes], [AC_MSG_FAILURE( [Missing function: malloc], [1]) ]) AS_IF( [test "x$ac_cv_func_memcmp" != xyes], [AC_MSG_FAILURE( [Missing function: memcmp], [1]) ]) AS_IF( [test "x$ac_cv_func_memcpy" != xyes], [AC_MSG_FAILURE( [Missing function: memcpy], [1]) ]) AS_IF( [test "x$ac_cv_func_memset" != xyes], [AC_MSG_FAILURE( [Missing function: memset], [1]) ]) AS_IF( [test "x$ac_cv_func_realloc" != xyes], [AC_MSG_FAILURE( [Missing function: realloc], [1]) ]) dnl Narrow character string functions used in common/narrow_string.h AC_CHECK_FUNCS([memchr memrchr snprintf sscanf strcasecmp strchr strlen strncasecmp strncmp strncpy strnicmp strrchr strstr vsnprintf]) AS_IF( [test "x$ac_cv_func_memchr" != xyes && test "x$ac_cv_func_strchr" != xyes], [AC_MSG_FAILURE( [Missing functions: memchr and strchr], [1]) ]) AS_IF( [test "x$ac_cv_func_memcmp" != xyes && test "x$ac_cv_func_strncmp" != xyes], [AC_MSG_FAILURE( [Missing functions: memcmp and strncmp], [1]) ]) AS_IF( [test "x$ac_cv_func_memcpy" != xyes && test "x$ac_cv_func_strncpy" != xyes], [AC_MSG_FAILURE( [Missing functions: memcpy and strncpy], [1]) ]) AS_IF( [test "x$ac_cv_func_memrchr" = xyes], [AC_CHECK_DECLS([memrchr]) AS_IF( [test "x$ac_cv_decl_memrchr" != xyes], [ac_cv_func_memrchr=no]) ]) AS_IF( [test "x$ac_cv_func_memrchr" != xyes && test "x$ac_cv_func_strrchr" != xyes], [AC_MSG_FAILURE( [Missing functions: strrchr and memrchr], [1]) ]) AS_IF( [test "x$ac_cv_func_snprintf" != xyes], [AC_MSG_FAILURE( [Missing function: snprintf], [1]) ]) AS_IF( [test "x$ac_cv_func_sscanf" != xyes], [AC_MSG_FAILURE( [Missing function: sscanf], [1]) ]) AS_IF( [test "x$ac_cv_func_strlen" != xyes], [AC_MSG_FAILURE( [Missing function: strlen], [1]) ]) AS_IF( [test "x$ac_cv_func_strcasecmp" != xyes && test "x$ac_cv_func_strncasecmp" != xyes && test "x$ac_cv_func_strnicmp" != xyes], [AC_MSG_FAILURE( [Missing functions: strncasecmp, strcasecmp and strnicmp], [1]) ]) AS_IF( [test "x$ac_cv_func_strstr" != xyes], [AC_MSG_FAILURE( [Missing function: strstr], [1]) ]) AS_IF( [test "x$ac_cv_func_vsnprintf" != xyes], [AC_MSG_FAILURE( [Missing function: vsnprintf], [1]) ]) dnl Wide character string functions used in common/wide_string.h AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_FUNCS([swprintf towlower wcscasecmp wcschr wcslen wcsncasecmp wcsncmp wcsncpy wcsnicmp wcsrchr wcsstr wmemchr wmemcmp wmemcpy wmemrchr]) AS_IF( [test "x$ac_cv_func_swprintf" != xyes], [AC_MSG_FAILURE( [Missing function: swprintf], [1]) ]) AS_IF( [test "x$ac_cv_func_wmemchr" != xyes && test "x$ac_cv_func_wcschr" != xyes], [AC_MSG_FAILURE( [Missing functions: wmemchr and wcschr], [1]) ]) AS_IF( [test "x$ac_cv_func_wmemcmp" != xyes && test "x$ac_cv_func_wcsncmp" != xyes], [AC_MSG_FAILURE( [Missing functions: wmemcmp and wcsncmp], [1]) ]) AS_IF( [test "x$ac_cv_func_wmemcpy" != xyes && test "x$ac_cv_func_wcsncpy" != xyes], [AC_MSG_FAILURE( [Missing functions: wmemcpy and wcsncpy], [1]) ]) AS_IF( [test "x$ac_cv_func_wmemrchr" != xyes && test "x$ac_cv_func_wcsrchr" != xyes], [AC_MSG_FAILURE( [Missing functions: wmemrchr and wcsrchr], [1]) ]) AS_IF( [test "x$ac_cv_func_wcslen" != xyes], [AC_MSG_FAILURE( [Missing function: wcslen], [1]) ]) AS_IF( [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], [AC_MSG_FAILURE( [Missing functions: wcsncasecmp, wcscasecmp, wcsnicmp and towlower], [1]) ]) AS_IF( [test "x$ac_cv_func_wcsstr" != xyes], [AC_MSG_FAILURE( [Missing function: wcsstr], [1]) ]) ]) dnl Check for printf conversion specifier support AX_COMMON_CHECK_FUNC_PRINTF_JD AX_COMMON_CHECK_FUNC_PRINTF_ZD ]) libfsapfs-20190210/m4/libcerror.m40000664000175000017500000001416113373776331020610 0ustar00lordyestalordyesta00000000000000dnl Checks for libcerror required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libcerror is available dnl ac_libcerror_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCERROR_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcerror" = xno], [ac_cv_libcerror=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcerror"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcerror}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcerror}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcerror], [1]) ]) ac_cv_libcerror=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcerror], [libcerror >= 20120425], [ac_cv_libcerror=yes], [ac_cv_libcerror=check]) ]) AS_IF( [test "x$ac_cv_libcerror" = xyes], [ac_cv_libcerror_CPPFLAGS="$pkg_cv_libcerror_CFLAGS" ac_cv_libcerror_LIBADD="$pkg_cv_libcerror_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcerror" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcerror.h]) AS_IF( [test "x$ac_cv_header_libcerror_h" = xno], [ac_cv_libcerror=no], [dnl Check for the individual functions ac_cv_libcerror=yes AC_CHECK_LIB( cerror, libcerror_get_version, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) dnl Error functions AC_CHECK_LIB( cerror, libcerror_error_free, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) AC_CHECK_LIB( cerror, libcerror_error_set, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) AC_CHECK_LIB( cerror, libcerror_error_matches, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) AC_CHECK_LIB( cerror, libcerror_error_fprint, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) AC_CHECK_LIB( cerror, libcerror_error_sprint, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) AC_CHECK_LIB( cerror, libcerror_error_backtrace_fprint, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) AC_CHECK_LIB( cerror, libcerror_error_backtrace_sprint, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) dnl System error functions AC_CHECK_LIB( cerror, libcerror_system_set_error, [ac_cv_libcerror_dummy=yes], [ac_cv_libcerror=no]) ac_cv_libcerror_LIBADD="-lcerror"]) ]) AS_IF( [test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect && test "x$ac_cv_libcerror" != xyes], [AC_MSG_FAILURE( [unable to find supported libcerror in directory: $ac_cv_with_libcerror], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcerror" = xyes], [AC_DEFINE( [HAVE_LIBCERROR], [1], [Define to 1 if you have the `cerror' library (-lcerror).]) ]) AS_IF( [test "x$ac_cv_libcerror" = xyes], [AC_SUBST( [HAVE_LIBCERROR], [1]) ], [AC_SUBST( [HAVE_LIBCERROR], [0]) ]) ]) dnl Function to detect if libcerror dependencies are available AC_DEFUN([AX_LIBCERROR_CHECK_LOCAL], [dnl Headers included in libcerror/libcerror_error.c AC_CHECK_HEADERS([stdarg.h varargs.h]) AS_IF( [test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes], [AC_MSG_FAILURE( [Missing headers: stdarg.h and varargs.h], [1]) ]) dnl Wide character string functions used in libcerror/libcerror_error.c AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_FUNCS([wcstombs]) AS_IF( [test "x$ac_cv_func_wcstombs" != xyes], [AC_MSG_FAILURE( [Missing function: wcstombs], [1]) ]) ]) dnl Check for error string functions used in libcerror/libcerror_system.c AC_FUNC_STRERROR_R() AS_IF( [test "x$ac_cv_have_decl_strerror_r" != xyes], [AC_CHECK_FUNCS([strerror]) AS_IF( [test "x$ac_cv_func_strerror" != xyes], [AC_MSG_FAILURE( [Missing functions: strerror_r and strerror], [1]) ]) ]) ac_cv_libcerror_CPPFLAGS="-I../libcerror"; ac_cv_libcerror_LIBADD="../libcerror/libcerror.la"; ac_cv_libcerror=local ]) dnl Function to detect how to enable libcerror AC_DEFUN([AX_LIBCERROR_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libcerror], [libcerror], [search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCERROR_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcerror" != xyes], [AX_LIBCERROR_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCERROR], [1], [Define to 1 if the local version of libcerror is used.]) AC_SUBST( [HAVE_LOCAL_LIBCERROR], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCERROR], [test "x$ac_cv_libcerror" = xlocal]) AS_IF( [test "x$ac_cv_libcerror_CPPFLAGS" != "x"], [AC_SUBST( [LIBCERROR_CPPFLAGS], [$ac_cv_libcerror_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcerror_LIBADD" != "x"], [AC_SUBST( [LIBCERROR_LIBADD], [$ac_cv_libcerror_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcerror" = xyes], [AC_SUBST( [ax_libcerror_pc_libs_private], [-lcerror]) ]) AS_IF( [test "x$ac_cv_libcerror" = xyes], [AC_SUBST( [ax_libcerror_spec_requires], [libcerror]) AC_SUBST( [ax_libcerror_spec_build_requires], [libcerror-devel]) ]) ]) libfsapfs-20190210/m4/libfguid.m40000664000175000017500000001300513374011160020365 0ustar00lordyestalordyesta00000000000000dnl Checks for libfguid required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libfguid is available dnl ac_libfguid_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBFGUID_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfguid" = xno], [ac_cv_libfguid=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libfguid"], [CFLAGS="$CFLAGS -I${ac_cv_with_libfguid}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfguid}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libfguid], [1]) ]) ac_cv_libfguid=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libfguid], [libfguid >= 20120426], [ac_cv_libfguid=yes], [ac_cv_libfguid=check]) ]) AS_IF( [test "x$ac_cv_libfguid" = xyes], [ac_cv_libfguid_CPPFLAGS="$pkg_cv_libfguid_CFLAGS" ac_cv_libfguid_LIBADD="$pkg_cv_libfguid_LIBS"]) ]) AS_IF( [test "x$ac_cv_libfguid" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libfguid.h]) AS_IF( [test "x$ac_cv_header_libfguid_h" = xno], [ac_cv_libfguid=no], [dnl Check for the individual functions ac_cv_libfguid=yes AC_CHECK_LIB( fguid, libfguid_get_version, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) dnl Identifier functions AC_CHECK_LIB( fguid, libfguid_identifier_initialize, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_free, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_copy_from_byte_stream, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_get_string_size, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_copy_to_utf8_string, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_copy_to_utf8_string_with_index, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_copy_to_utf16_string, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_copy_to_utf16_string_with_index, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_copy_to_utf32_string, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) AC_CHECK_LIB( fguid, libfguid_identifier_copy_to_utf32_string_with_index, [ac_cv_libfguid_dummy=yes], [ac_cv_libfguid=no]) ac_cv_libfguid_LIBADD="-lfguid"]) ]) AS_IF( [test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect && test "x$ac_cv_libfguid" != xyes], [AC_MSG_FAILURE( [unable to find supported libfguid in directory: $ac_cv_with_libfguid], [1]) ]) ]) AS_IF( [test "x$ac_cv_libfguid" = xyes], [AC_DEFINE( [HAVE_LIBFGUID], [1], [Define to 1 if you have the `fguid' library (-lfguid).]) ]) AS_IF( [test "x$ac_cv_libfguid" = xyes], [AC_SUBST( [HAVE_LIBFGUID], [1]) ], [AC_SUBST( [HAVE_LIBFGUID], [0]) ]) ]) dnl Function to detect if libfguid dependencies are available AC_DEFUN([AX_LIBFGUID_CHECK_LOCAL], [dnl No additional checks. ac_cv_libfguid_CPPFLAGS="-I../libfguid"; ac_cv_libfguid_LIBADD="../libfguid/libfguid.la"; ac_cv_libfguid=local ]) dnl Function to detect how to enable libfguid AC_DEFUN([AX_LIBFGUID_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libfguid], [libfguid], [search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBFGUID_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libfguid" != xyes], [AX_LIBFGUID_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBFGUID], [1], [Define to 1 if the local version of libfguid is used.]) AC_SUBST( [HAVE_LOCAL_LIBFGUID], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBFGUID], [test "x$ac_cv_libfguid" = xlocal]) AS_IF( [test "x$ac_cv_libfguid_CPPFLAGS" != "x"], [AC_SUBST( [LIBFGUID_CPPFLAGS], [$ac_cv_libfguid_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libfguid_LIBADD" != "x"], [AC_SUBST( [LIBFGUID_LIBADD], [$ac_cv_libfguid_LIBADD]) ]) AS_IF( [test "x$ac_cv_libfguid" = xyes], [AC_SUBST( [ax_libfguid_pc_libs_private], [-lfguid]) ]) AS_IF( [test "x$ac_cv_libfguid" = xyes], [AC_SUBST( [ax_libfguid_spec_requires], [libfguid]) AC_SUBST( [ax_libfguid_spec_build_requires], [libfguid-devel]) ]) ]) libfsapfs-20190210/m4/iconv.m40000644000175000017500000001653713344411702017734 0ustar00lordyestalordyesta00000000000000# iconv.m4 serial 11 (gettext-0.18.1) dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi AC_TRY_RUN([ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) fi ]) libfsapfs-20190210/m4/ltsugar.m40000644000175000017500000001044013430101244020253 0ustar00lordyestalordyesta00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59, which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) libfsapfs-20190210/m4/libfcache.m40000664000175000017500000001552613374011160020512 0ustar00lordyestalordyesta00000000000000dnl Checks for libfcache required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libfcache is available dnl ac_libfcache_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBFCACHE_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfcache" = xno], [ac_cv_libfcache=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libfcache"], [CFLAGS="$CFLAGS -I${ac_cv_with_libfcache}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfcache}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libfcache], [1]) ]) ac_cv_libfcache=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libfcache], [libfcache >= 20181010], [ac_cv_libfcache=yes], [ac_cv_libfcache=check]) ]) AS_IF( [test "x$ac_cv_libfcache" = xyes], [ac_cv_libfcache_CPPFLAGS="$pkg_cv_libfcache_CFLAGS" ac_cv_libfcache_LIBADD="$pkg_cv_libfcache_LIBS"]) ]) AS_IF( [test "x$ac_cv_libfcache" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libfcache.h]) AS_IF( [test "x$ac_cv_header_libfcache_h" = xno], [ac_cv_libfcache=no], [dnl Check for the individual functions ac_cv_libfcache=yes AC_CHECK_LIB( fcache, libfcache_get_version, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) dnl Cache functions AC_CHECK_LIB( fcache, libfcache_cache_initialize, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_free, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_clone, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_clear, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_get_number_of_entries, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_get_number_of_cache_values, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_get_value_by_identifier, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_get_value_by_index, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_set_value_by_identifier, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_set_value_by_index, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) dnl Cache value functions AC_CHECK_LIB( fcache, libfcache_cache_value_clear, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_value_get_identifier, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_value_set_identifier, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_value_get_value, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) AC_CHECK_LIB( fcache, libfcache_cache_value_set_value, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) dnl Date time functions AC_CHECK_LIB( fcache, libfcache_date_time_get_timestamp, [ac_cv_libfcache_dummy=yes], [ac_cv_libfcache=no]) ac_cv_libfcache_LIBADD="-lfcache"]) ]) AS_IF( [test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect && test "x$ac_cv_libfcache" != xyes], [AC_MSG_FAILURE( [unable to find supported libfcache in directory: $ac_cv_with_libfcache], [1]) ]) ]) AS_IF( [test "x$ac_cv_libfcache" = xyes], [AC_DEFINE( [HAVE_LIBFCACHE], [1], [Define to 1 if you have the `fcache' library (-lfcache).]) ]) AS_IF( [test "x$ac_cv_libfcache" = xyes], [AC_SUBST( [HAVE_LIBFCACHE], [1]) ], [AC_SUBST( [HAVE_LIBFCACHE], [0]) ]) ]) dnl Function to detect if libfcache dependencies are available AC_DEFUN([AX_LIBFCACHE_CHECK_LOCAL], [dnl Types used in libfcache/libfcache_date_time.h AC_STRUCT_TM dnl Headers included in libfcache/libfcache_date_time.h AC_HEADER_TIME dnl Date and time functions used in libfcache/libfcache_date_time.h AC_CHECK_FUNCS([clock_gettime time]) AS_IF( [test "x$ac_cv_func_time" != xyes], [AC_MSG_FAILURE( [Missing function: time], [1]) ]) ac_cv_libfcache_CPPFLAGS="-I../libfcache"; ac_cv_libfcache_LIBADD="../libfcache/libfcache.la"; ac_cv_libfcache=local ]) dnl Function to detect how to enable libfcache AC_DEFUN([AX_LIBFCACHE_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libfcache], [libfcache], [search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBFCACHE_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libfcache" != xyes], [AX_LIBFCACHE_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBFCACHE], [1], [Define to 1 if the local version of libfcache is used.]) AC_SUBST( [HAVE_LOCAL_LIBFCACHE], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBFCACHE], [test "x$ac_cv_libfcache" = xlocal]) AS_IF( [test "x$ac_cv_libfcache_CPPFLAGS" != "x"], [AC_SUBST( [LIBFCACHE_CPPFLAGS], [$ac_cv_libfcache_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libfcache_LIBADD" != "x"], [AC_SUBST( [LIBFCACHE_LIBADD], [$ac_cv_libfcache_LIBADD]) ]) AS_IF( [test "x$ac_cv_libfcache" = xyes], [AC_SUBST( [ax_libfcache_pc_libs_private], [-lfcache]) ]) AS_IF( [test "x$ac_cv_libfcache" = xyes], [AC_SUBST( [ax_libfcache_spec_requires], [libfcache]) AC_SUBST( [ax_libfcache_spec_build_requires], [libfcache-devel]) ]) ]) libfsapfs-20190210/m4/libcsplit.m40000664000175000017500000001632513374021435020603 0ustar00lordyestalordyesta00000000000000dnl Checks for libcsplit required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libcsplit is available dnl ac_libcsplit_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBCSPLIT_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcsplit" = xno], [ac_cv_libcsplit=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libcsplit"], [CFLAGS="$CFLAGS -I${ac_cv_with_libcsplit}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcsplit}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libcsplit], [1]) ]) ac_cv_libcsplit=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcsplit], [libcsplit >= 20120701], [ac_cv_libcsplit=yes], [ac_cv_libcsplit=check]) ]) AS_IF( [test "x$ac_cv_libcsplit" = xyes && test "x$ac_cv_enable_wide_character_type" != xno], [AC_CACHE_CHECK( [whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1], [ac_cv_header_libcsplit_features_h_have_wide_character_type], [AC_LANG_PUSH(C) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if !defined( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE not defined #endif]] )], [ac_cv_header_libcsplit_features_h_have_wide_character_type=yes], [ac_cv_header_libcsplit_features_h_have_wide_character_type=no]) AC_LANG_POP(C)], [ac_cv_header_libcsplit_features_h_have_wide_character_type=no]) AS_IF( [test "x$ac_cv_header_libcsplit_features_h_have_wide_character_type" = xno], [ac_cv_libcsplit=no]) ]) AS_IF( [test "x$ac_cv_libcsplit" = xyes], [ac_cv_libcsplit_CPPFLAGS="$pkg_cv_libcsplit_CFLAGS" ac_cv_libcsplit_LIBADD="$pkg_cv_libcsplit_LIBS"]) ]) AS_IF( [test "x$ac_cv_libcsplit" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libcsplit.h]) AS_IF( [test "x$ac_cv_header_libcsplit_h" = xno], [ac_cv_libcsplit=no], [dnl Check for the individual functions ac_cv_libcsplit=yes AC_CHECK_LIB( csplit, libcsplit_get_version, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) dnl Narrow string functions AC_CHECK_LIB( csplit, libcsplit_narrow_string_split, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) dnl Narrow split string functions AC_CHECK_LIB( csplit, libcsplit_narrow_split_string_free, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_narrow_split_string_get_string, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_narrow_split_string_get_number_of_segments, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_narrow_split_string_get_segment_by_index, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_narrow_split_string_set_segment_by_index, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) dnl Wide string functions AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_LIB( csplit, libcsplit_wide_string_split, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) dnl Wide split string functions AC_CHECK_LIB( csplit, libcsplit_wide_split_string_free, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_wide_split_string_get_string, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_wide_split_string_get_number_of_segments, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_wide_split_string_get_segment_by_index, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) AC_CHECK_LIB( csplit, libcsplit_wide_split_string_set_segment_by_index, [ac_cv_libcsplit_dummy=yes], [ac_cv_libcsplit=no]) ]) ac_cv_libcsplit_LIBADD="-lcsplit"]) ]) AS_IF( [test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect && test "x$ac_cv_libcsplit" != xyes], [AC_MSG_FAILURE( [unable to find supported libcsplit in directory: $ac_cv_with_libcsplit], [1]) ]) ]) AS_IF( [test "x$ac_cv_libcsplit" = xyes], [AC_DEFINE( [HAVE_LIBCSPLIT], [1], [Define to 1 if you have the `csplit' library (-lcsplit).]) ]) AS_IF( [test "x$ac_cv_libcsplit" = xyes], [AC_SUBST( [HAVE_LIBCSPLIT], [1]) ], [AC_SUBST( [HAVE_LIBCSPLIT], [0]) ]) ]) dnl Function to detect if libcsplit dependencies are available AC_DEFUN([AX_LIBCSPLIT_CHECK_LOCAL], [dnl No additional checks. ac_cv_libcsplit_CPPFLAGS="-I../libcsplit"; ac_cv_libcsplit_LIBADD="../libcsplit/libcsplit.la"; ac_cv_libcsplit=local ]) dnl Function to detect how to enable libcsplit AC_DEFUN([AX_LIBCSPLIT_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libcsplit], [libcsplit], [search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBCSPLIT_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libcsplit" != xyes], [AX_LIBCSPLIT_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBCSPLIT], [1], [Define to 1 if the local version of libcsplit is used.]) AC_SUBST( [HAVE_LOCAL_LIBCSPLIT], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBCSPLIT], [test "x$ac_cv_libcsplit" = xlocal]) AS_IF( [test "x$ac_cv_libcsplit_CPPFLAGS" != "x"], [AC_SUBST( [LIBCSPLIT_CPPFLAGS], [$ac_cv_libcsplit_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libcsplit_LIBADD" != "x"], [AC_SUBST( [LIBCSPLIT_LIBADD], [$ac_cv_libcsplit_LIBADD]) ]) AS_IF( [test "x$ac_cv_libcsplit" = xyes], [AC_SUBST( [ax_libcsplit_pc_libs_private], [-lcsplit]) ]) AS_IF( [test "x$ac_cv_libcsplit" = xyes], [AC_SUBST( [ax_libcsplit_spec_requires], [libcsplit]) AC_SUBST( [ax_libcsplit_spec_build_requires], [libcsplit-devel]) ]) ]) libfsapfs-20190210/m4/intlmacosx.m40000644000175000017500000000457513344411702020776 0ustar00lordyestalordyesta00000000000000# intlmacosx.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) libfsapfs-20190210/m4/types.m40000664000175000017500000000401213344733613017755 0ustar00lordyestalordyesta00000000000000dnl Functions for type definitions dnl dnl Version: 20180727 dnl Function to detect if type definitions are available AC_DEFUN([AX_TYPES_CHECK_LOCAL], [AS_IF( [test "x$ac_cv_enable_winapi" = xyes], [ac_cv_enable_wide_character_type=yes]) AS_IF( [test "x$ac_cv_enable_wide_character_type" = xyes], [AC_DEFINE( [HAVE_WIDE_CHARACTER_TYPE], [1], [Define to 1 if wide character type should be used.]) AC_SUBST( [HAVE_WIDE_CHARACTER_TYPE], [1]) ], [AC_SUBST( [HAVE_WIDE_CHARACTER_TYPE], [0]) ]) AC_CHECK_HEADERS([sys/types.h inttypes.h stdint.h wchar.h]) AS_IF( [test "x$ac_cv_header_sys_types_h" = xyes], [AC_SUBST( [HAVE_SYS_TYPES_H], [1])], [AC_SUBST( [HAVE_SYS_TYPES_H], [0]) ]) AS_IF( [test "x$ac_cv_header_inttypes_h" = xyes], [AC_SUBST( [HAVE_INTTYPES_H], [1])], [AC_SUBST( [HAVE_INTTYPES_H], [0]) ]) AS_IF( [test "x$ac_cv_header_stdint_h" = xyes], [AC_SUBST( [HAVE_STDINT_H], [1])], [AC_SUBST( [HAVE_STDINT_H], [0]) ]) AS_IF( [test "x$ac_cv_header_wchar_h" = xyes], [AC_SUBST( [HAVE_WCHAR_H], [1]) ], [AC_SUBST( [HAVE_WCHAR_H], [0]) ]) AC_TYPE_MODE_T AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_CHECK_TYPE( [size32_t], [AC_SUBST( [HAVE_SIZE32_T], [1])], [AC_SUBST( [HAVE_SIZE32_T], [0]) ]) AC_CHECK_TYPE( [ssize32_t], [AC_SUBST( [HAVE_SSIZE32_T], [1])], [AC_SUBST( [HAVE_SSIZE32_T], [0]) ]) AC_CHECK_TYPE( [size64_t], [AC_SUBST( [HAVE_SIZE64_T], [1])], [AC_SUBST( [HAVE_SIZE64_T], [0]) ]) AC_CHECK_TYPE( [ssize64_t], [AC_SUBST( [HAVE_SSIZE64_T], [1])], [AC_SUBST( [HAVE_SSIZE64_T], [0]) ]) AC_CHECK_TYPE( [off64_t], [AC_SUBST( [HAVE_OFF64_T], [1])], [AC_SUBST( [HAVE_OFF64_T], [0]) ]) AC_CHECK_TYPE([ssize_t]) AC_CHECK_TYPE([u64]) AC_CHECK_SIZEOF([int]) AC_CHECK_SIZEOF([long]) AC_CHECK_SIZEOF([off_t]) AC_CHECK_SIZEOF([size_t]) AS_IF( [test "x$ac_cv_header_wchar_h" = xyes], [AC_CHECK_SIZEOF([wchar_t])]) ]) libfsapfs-20190210/m4/libbfio.m40000664000175000017500000002464513374011160020222 0ustar00lordyestalordyesta00000000000000dnl Checks for libbfio required headers and functions dnl dnl Version: 20181117 dnl Function to detect if libbfio is available dnl ac_libbfio_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments AC_DEFUN([AX_LIBBFIO_CHECK_LIB], [AS_IF( [test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libbfio" = xno], [ac_cv_libbfio=no], [dnl Check if the directory provided as parameter exists AS_IF( [test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect], [AS_IF( [test -d "$ac_cv_with_libbfio"], [CFLAGS="$CFLAGS -I${ac_cv_with_libbfio}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libbfio}/lib"], [AC_MSG_FAILURE( [no such directory: $ac_cv_with_libbfio], [1]) ]) ac_cv_libbfio=check], [dnl Check for a pkg-config file AS_IF( [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libbfio], [libbfio >= 20160108], [ac_cv_libbfio=yes], [ac_cv_libbfio=check]) ]) AS_IF( [test "x$ac_cv_libbfio" = xyes && test "x$ac_cv_enable_wide_character_type" != xno], [AC_CACHE_CHECK( [whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1], [ac_cv_header_libbfio_features_h_have_wide_character_type], [AC_LANG_PUSH(C) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if !defined( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBBFIO_HAVE_WIDE_CHARACTER_TYPE not defined #endif]] )], [ac_cv_header_libbfio_features_h_have_wide_character_type=yes], [ac_cv_header_libbfio_features_h_have_wide_character_type=no]) AC_LANG_POP(C)], [ac_cv_header_libbfio_features_h_have_wide_character_type=no]) AS_IF( [test "x$ac_cv_header_libbfio_features_h_have_wide_character_type" = xno], [ac_cv_libbfio=no]) ]) AS_IF( [test "x$ac_cv_libbfio" = xyes], [ac_cv_libbfio_CPPFLAGS="$pkg_cv_libbfio_CFLAGS" ac_cv_libbfio_LIBADD="$pkg_cv_libbfio_LIBS"]) ]) AS_IF( [test "x$ac_cv_libbfio" = xcheck], [dnl Check for headers AC_CHECK_HEADERS([libbfio.h]) AS_IF( [test "x$ac_cv_header_libbfio_h" = xno], [ac_cv_libbfio=no], [dnl Check for the individual functions ac_cv_libbfio=yes AC_CHECK_LIB( bfio, libbfio_get_version, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) dnl Handle functions AC_CHECK_LIB( bfio, libbfio_handle_free, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_open, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_close, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_exists, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_read_buffer, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_write_buffer, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_seek_offset, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_is_open, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_get_offset, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_get_size, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_set_track_offsets_read, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_get_number_of_offsets_read, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_handle_get_offset_read, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) dnl File functions AC_CHECK_LIB( bfio, libbfio_file_initialize, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_file_get_name_size, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_file_get_name, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_file_set_name, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AS_IF( [test "x$ac_cv_enable_wide_character_type" != xno], [AC_CHECK_LIB( bfio, libbfio_file_get_name_size_wide, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_file_get_name_wide, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_file_set_name_wide, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) ]) dnl Pool functions AC_CHECK_LIB( bfio, libbfio_pool_initialize, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_free, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_clone, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_get_number_of_handles, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_get_handle, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_set_handle, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_append_handle, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_remove_handle, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_get_maximum_number_of_open_handles, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_set_maximum_number_of_open_handles, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_open, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_reopen, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_close, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_close_all, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_read_buffer, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_write_buffer, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_seek_offset, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_get_offset, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) AC_CHECK_LIB( bfio, libbfio_pool_get_size, [ac_cv_libbfio_dummy=yes], [ac_cv_libbfio=no]) ac_cv_libbfio_LIBADD="-lbfio"]) ]) AS_IF( [test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect && test "x$ac_cv_libbfio" != xyes], [AC_MSG_FAILURE( [unable to find supported libbfio in directory: $ac_cv_with_libbfio], [1]) ]) ]) AS_IF( [test "x$ac_cv_libbfio" = xyes], [AC_DEFINE( [HAVE_LIBBFIO], [1], [Define to 1 if you have the `bfio' library (-lbfio).]) ]) AS_IF( [test "x$ac_cv_libbfio" = xyes], [AC_SUBST( [HAVE_LIBBFIO], [1]) ], [AC_SUBST( [HAVE_LIBBFIO], [0]) ]) ]) dnl Function to detect if libbfio dependencies are available AC_DEFUN([AX_LIBBFIO_CHECK_LOCAL], [dnl No additional checks. ac_cv_libbfio_CPPFLAGS="-I../libbfio"; ac_cv_libbfio_LIBADD="../libbfio/libbfio.la"; ac_cv_libbfio=local ]) dnl Function to detect how to enable libbfio AC_DEFUN([AX_LIBBFIO_CHECK_ENABLE], [AX_COMMON_ARG_WITH( [libbfio], [libbfio], [search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version], [auto-detect], [DIR]) dnl Check for a shared library version AX_LIBBFIO_CHECK_LIB dnl Check if the dependencies for the local library version AS_IF( [test "x$ac_cv_libbfio" != xyes], [AX_LIBBFIO_CHECK_LOCAL AC_DEFINE( [HAVE_LOCAL_LIBBFIO], [1], [Define to 1 if the local version of libbfio is used.]) AC_SUBST( [HAVE_LOCAL_LIBBFIO], [1]) ]) AM_CONDITIONAL( [HAVE_LOCAL_LIBBFIO], [test "x$ac_cv_libbfio" = xlocal]) AS_IF( [test "x$ac_cv_libbfio_CPPFLAGS" != "x"], [AC_SUBST( [LIBBFIO_CPPFLAGS], [$ac_cv_libbfio_CPPFLAGS]) ]) AS_IF( [test "x$ac_cv_libbfio_LIBADD" != "x"], [AC_SUBST( [LIBBFIO_LIBADD], [$ac_cv_libbfio_LIBADD]) ]) AS_IF( [test "x$ac_cv_libbfio" = xyes], [AC_SUBST( [ax_libbfio_pc_libs_private], [-lbfio]) ]) AS_IF( [test "x$ac_cv_libbfio" = xyes], [AC_SUBST( [ax_libbfio_spec_requires], [libbfio]) AC_SUBST( [ax_libbfio_spec_build_requires], [libbfio-devel]) ]) ]) libfsapfs-20190210/libcerror/0000775000175000017500000000000013430101367020004 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcerror/libcerror_system.c0000664000175000017500000003615313430101144023540 0ustar00lordyestalordyesta00000000000000/* * System functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_STRING_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #include #elif defined( HAVE_VARARGS_H ) #include #else #error Missing headers stdarg.h and varargs.h #endif #include "libcerror_definitions.h" #include "libcerror_error.h" #include "libcerror_system.h" #include "libcerror_types.h" #if defined( WINAPI ) /* The make language identifier macro for the WINAPI FormatMessage function */ #if !defined( MAKELANGID ) #define MAKELANGID( primary_language_identifier, sub_language_identifier ) \ ( ( ( (WORD) ( sub_language_identifier ) ) << 10 ) | (WORD) ( primary_language_identifier ) ) #endif #if !defined( LANG_NEUTRAL ) #define LANG_NEUTRAL 0 #endif #if !defined( SUBLANG_DEFAULT ) #define SUBLANG_DEFAULT 1 #endif #endif /* defined( WINAPI ) */ #if defined( WINAPI ) && ( WINVER <= 0x0500 ) /* Cross Windows safe version of FormatMessageA * Returns the number of printed characters without the end-of-string character or 0 on error */ DWORD libcerror_FormatMessageA( DWORD flags, LPCVOID source, DWORD message_identifier, DWORD language_identifier, LPCSTR string, DWORD string_size, va_list *argument_list ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD print_count = 0; if( string == NULL ) { return( 0 ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( 0 ); } function = GetProcAddress( library_handle, (LPCSTR) "FormatMessageA" ); if( function != NULL ) { print_count = function( flags, source, message_identifier, language_identifier, string, string_size, argument_list ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { print_count = 0; } return( print_count ); } /* Cross Windows safe version of FormatMessageW * Returns the number of printed characters without the end-of-string character or 0 on error */ DWORD libcerror_FormatMessageW( DWORD flags, LPCVOID source, DWORD message_identifier, DWORD language_identifier, LPWSTR string, DWORD string_size, va_list *argument_list ) { FARPROC function = NULL; HMODULE library_handle = NULL; DWORD print_count = 0; if( string == NULL ) { return( 0 ); } library_handle = LoadLibrary( _SYSTEM_STRING( "kernel32.dll" ) ); if( library_handle == NULL ) { return( 0 ); } function = GetProcAddress( library_handle, (LPCSTR) "FormatMessageW" ); if( function != NULL ) { print_count = function( flags, source, message_identifier, language_identifier, string, string_size, argument_list ); } /* This call should be after using the function * in most cases kernel32.dll will still be available after free */ if( FreeLibrary( library_handle ) != TRUE ) { print_count = 0; } return( print_count ); } #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ #if defined( WINAPI ) #if ( WINVER <= 0x0500 ) #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) #define libcerror_system_FormatMessage libcerror_FormatMessageW #else #define libcerror_system_FormatMessage libcerror_FormatMessageA #endif #else #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) #define libcerror_system_FormatMessage FormatMessageW #else #define libcerror_system_FormatMessage FormatMessageA #endif #endif /* ( WINVER <= 0x0500 ) */ /* Retrieves a descriptive string of the error number * This function uses the WINAPI functions for Windows XP or later * Returns the string_length if successful or -1 on error */ int libcerror_system_copy_string_from_error_number( system_character_t *string, size_t string_size, uint32_t error_number ) { DWORD print_count = 0; if( string == NULL ) { return( -1 ); } if( string_size > (size_t) INT_MAX ) { return( -1 ); } print_count = libcerror_system_FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, (DWORD) error_number, MAKELANGID( LANG_NEUTRAL, SUBLANG_DEFAULT ), string, (DWORD) string_size, NULL ); if( print_count == 0 ) { return( -1 ); } return( (int) print_count ); } #elif defined( HAVE_STRERROR_R ) #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) #error Missing wide character strerror_r function #endif /* Retrieves a descriptive string of the error number * This function uses the POSIX strerror_r function or equivalent * Returns the string_length if successful or -1 on error */ int libcerror_system_copy_string_from_error_number( system_character_t *string, size_t string_size, uint32_t error_number ) { size_t string_length = 0; if( string == NULL ) { return( -1 ); } if( string_size > (size_t) INT_MAX ) { return( -1 ); } #if defined( STRERROR_R_CHAR_P ) if( strerror_r( (int) error_number, string, string_size ) == NULL ) #else if( strerror_r( (int) error_number, string, string_size ) != 0 ) #endif { return( -1 ); } string[ string_size - 1 ] = (system_character_t) 0; string_length = system_string_length( string ); return( (int) string_length ); } #elif defined( HAVE_STRERROR ) #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) #error Missing wide character strerror function #endif /* Retrieves a descriptive string of the error number * This function uses the POSIX strerror function or equivalent * Returns the string_length if successful or -1 on error */ int libcerror_system_copy_string_from_error_number( system_character_t *string, size_t string_size, uint32_t error_number ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) const wchar_t *static_error_string = NULL; #else const char *static_error_string = NULL; #endif size_t static_error_string_length = 0; if( string == NULL ) { return( -1 ); } if( string_size > (size_t) INT_MAX ) { return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) static_error_string = _wcserror( (int) error_number ); #else static_error_string = strerror( (int) error_number ); #endif if( static_error_string == NULL ) { return( -1 ); } static_error_string_length = system_string_length( static_error_string ); if( system_string_copy( string, static_error_string, static_error_string_length ) == NULL ) { return( -1 ); } string[ static_error_string_length ] = 0; return( (int) static_error_string_length ); } #else #error Missing error to string system function #endif #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #define VARARGS( function, error, error_domain, error_code, system_error_code, type, argument ) \ function( error, error_domain, error_code, system_error_code, type argument, ... ) #define VASTART( argument_list, type, name ) \ va_start( argument_list, name ) #define VAEND( argument_list ) \ va_end( argument_list ) #elif defined( HAVE_VARARGS_H ) #define VARARGS( function, error, error_domain, error_code, system_error_code, type, argument ) \ function( error, error_domain, error_code, system_error_code, va_alist ) va_dcl #define VASTART( argument_list, type, name ) \ { type name; va_start( argument_list ); name = va_arg( argument_list, type ) #define VAEND( argument_list ) \ va_end( argument_list ); } #endif /* Sets an error and adds a system specific error string if possible * Creates the error if necessary * The error domain and code are set only the first time and the error message is appended for back tracing */ void VARARGS( libcerror_system_set_error, libcerror_error_t **error, int error_domain, int error_code, uint32_t system_error_code, const char *, format_string ) { va_list argument_list; libcerror_internal_error_t *internal_error = NULL; system_character_t *error_string = NULL; system_character_t *system_format_string = NULL; void *reallocation = NULL; size_t error_string_size = 0; size_t format_string_length = 0; size_t message_size = 0; size_t next_message_size = LIBCERROR_MESSAGE_INCREMENT_SIZE; size_t string_index = 0; int message_index = 0; int print_count = 0; if( error == NULL ) { return; } if( format_string == NULL ) { return; } format_string_length = narrow_string_length( format_string ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) libcerror_error_get_system_format_string( format_string, format_string_length, &system_format_string ); if( system_format_string == NULL ) { return; } #else system_format_string = (system_character_t *) format_string; #endif if( *error == NULL ) { if( libcerror_error_initialize( error, error_domain, error_code ) != 1 ) { goto on_error; } } internal_error = (libcerror_internal_error_t *) *error; if( libcerror_error_resize( internal_error ) != 1 ) { goto on_error; } if( format_string_length > next_message_size ) { next_message_size = ( ( format_string_length / LIBCERROR_MESSAGE_INCREMENT_SIZE ) + 1 ) * LIBCERROR_MESSAGE_INCREMENT_SIZE; } message_index = internal_error->number_of_messages - 1; error_string = internal_error->messages[ message_index ]; do { if( next_message_size >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { next_message_size = LIBCERROR_MESSAGE_MAXIMUM_SIZE; } reallocation = memory_reallocate( error_string, sizeof( system_character_t ) * next_message_size ); if( reallocation == NULL ) { memory_free( error_string ); goto on_error; } error_string = (system_character_t *) reallocation; message_size = next_message_size; /* argument_list cannot be reused in successive calls to vsnprintf */ VASTART( argument_list, const char *, format_string ); print_count = system_string_vsnprintf( error_string, message_size, system_format_string, argument_list ); VAEND( argument_list ); if( print_count <= -1 ) { next_message_size += LIBCERROR_MESSAGE_INCREMENT_SIZE; } else if( ( (size_t) print_count >= message_size ) || ( error_string[ print_count ] != (system_character_t) 0 ) ) { next_message_size = (size_t) ( print_count + 1 ); print_count = -1; } else { error_string_size = (size_t) print_count + 1; } if( message_size >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { break; } } while( print_count <= -1 ); if( message_size >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 4 ] = (system_character_t) '.'; error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 3 ] = (system_character_t) '.'; error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 2 ] = (system_character_t) '.'; error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 1 ] = 0; error_string_size = (size_t) LIBCERROR_MESSAGE_MAXIMUM_SIZE; } internal_error->messages[ message_index ] = error_string; internal_error->sizes[ message_index ] = error_string_size; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) memory_free( system_format_string ); system_format_string = NULL; #endif message_size = internal_error->sizes[ message_index ]; if( message_size < LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { /* TODO move to separate helper function */ string_index = internal_error->sizes[ message_index ] - 1; if( ( internal_error->messages[ message_index ] != NULL ) && ( ( internal_error->messages[ message_index ] )[ string_index - 1 ] == (system_character_t) '.' ) ) { string_index -= 1; } reallocation = memory_reallocate( internal_error->messages[ message_index ], sizeof( system_character_t ) * ( message_size + 13 + 512 ) ); if( reallocation == NULL ) { memory_free( internal_error->messages[ message_index ] ); internal_error->messages[ message_index ] = NULL; goto on_error; } internal_error->messages[ message_index ] = (system_character_t *) reallocation; if( system_string_copy( &( ( internal_error->messages[ message_index ] )[ string_index ] ), _SYSTEM_STRING( " with error: " ), 13 ) == NULL ) { memory_free( internal_error->messages[ message_index ] ); internal_error->messages[ message_index ] = NULL; goto on_error; } internal_error->sizes[ message_index ] += 13; string_index += 13; print_count = libcerror_system_copy_string_from_error_number( &( ( internal_error->messages[ message_index ] )[ string_index ] ), 512, system_error_code ); if( print_count == -1 ) { goto on_error; } message_size += (size_t) print_count; internal_error->sizes[ message_index ] += print_count; } if( internal_error->sizes[ message_index ] >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { internal_error->messages[ message_index ][ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 4 ] = (system_character_t) '.'; internal_error->messages[ message_index ][ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 3 ] = (system_character_t) '.'; internal_error->messages[ message_index ][ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 2 ] = (system_character_t) '.'; internal_error->messages[ message_index ][ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 1 ] = 0; internal_error->sizes[ message_index ] = (size_t) LIBCERROR_MESSAGE_MAXIMUM_SIZE; } return; on_error: #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_format_string != NULL ) { memory_free( system_format_string ); } #endif return; } #undef VARARGS #undef VASTART #undef VAEND libfsapfs-20190210/libcerror/libcerror_error.c0000664000175000017500000004577113430101144023353 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #include #elif defined( HAVE_VARARGS_H ) #include #else #error Missing headers stdarg.h and varargs.h #endif #include #include "libcerror_definitions.h" #include "libcerror_error.h" #include "libcerror_types.h" /* Creates an error * Returns 1 if successful or -1 on error */ int libcerror_error_initialize( libcerror_error_t **error, int error_domain, int error_code ) { libcerror_internal_error_t *internal_error = NULL; if( error == NULL ) { return( -1 ); } if( *error != NULL ) { return( -1 ); } internal_error = memory_allocate_structure( libcerror_internal_error_t ); if( internal_error == NULL ) { return( -1 ); } internal_error->domain = error_domain; internal_error->code = error_code; internal_error->number_of_messages = 0; internal_error->messages = NULL; internal_error->sizes = NULL; *error = (libcerror_error_t *) internal_error; return( 1 ); } /* Free an error and its elements */ void libcerror_error_free( libcerror_error_t **error ) { libcerror_internal_error_t *internal_error = NULL; int message_index = 0; if( error == NULL ) { return; } if( *error != NULL ) { internal_error = (libcerror_internal_error_t *) *error; if( internal_error->messages != NULL ) { for( message_index = 0; message_index < internal_error->number_of_messages; message_index++ ) { if( internal_error->messages[ message_index ] != NULL ) { memory_free( internal_error->messages[ message_index ] ); } } memory_free( internal_error->messages ); } if( internal_error->sizes != NULL ) { memory_free( internal_error->sizes ); } memory_free( *error ); *error = NULL; } } /* Resizes an error * Returns 1 if successful or -1 on error */ int libcerror_error_resize( libcerror_internal_error_t *internal_error ) { void *reallocation = NULL; int message_index = 0; int number_of_messages = 0; if( internal_error == NULL ) { return( -1 ); } message_index = internal_error->number_of_messages; number_of_messages = internal_error->number_of_messages + 1; reallocation = memory_reallocate( internal_error->messages, sizeof( system_character_t * ) * number_of_messages ); if( reallocation == NULL ) { return( -1 ); } internal_error->messages = (system_character_t **) reallocation; internal_error->messages[ message_index ] = NULL; reallocation = memory_reallocate( internal_error->sizes, sizeof( size_t ) * number_of_messages ); if( reallocation == NULL ) { return( -1 ); } internal_error->sizes = (size_t *) reallocation; internal_error->sizes[ message_index ] = 0; internal_error->number_of_messages += 1; return( 1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) /* Retrieves the format string as a system string */ void libcerror_error_get_system_format_string( const char *format_string, size_t format_string_length, system_character_t **system_format_string ) { void *reallocation = NULL; size_t next_format_string_length = 0; int print_count = 0; #if defined( __BORLANDC__ ) || defined( _MSC_VER ) size_t string_index = 0; #endif if( format_string == NULL ) { return; } if( format_string_length > (size_t) SSIZE_MAX ) { return; } if( system_format_string == NULL ) { return; } next_format_string_length = format_string_length + 1; do { if( next_format_string_length >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { next_format_string_length = LIBCERROR_MESSAGE_MAXIMUM_SIZE; } reallocation = memory_reallocate( *system_format_string, sizeof( system_character_t ) * next_format_string_length ); if( reallocation == NULL ) { memory_free( *system_format_string ); *system_format_string = NULL; return; } *system_format_string = (system_character_t *) reallocation; format_string_length = next_format_string_length; #if defined( __BORLANDC__ ) || defined( _MSC_VER ) print_count = wide_string_snwprintf( *system_format_string, format_string_length, L"%S", format_string ); #else print_count = wide_string_snwprintf( *system_format_string, format_string_length, L"%s", format_string ); #endif if( print_count <= -1 ) { next_format_string_length += LIBCERROR_MESSAGE_INCREMENT_SIZE; } else if( ( (size_t) print_count > format_string_length ) || ( ( *system_format_string )[ print_count ] != 0 ) ) { next_format_string_length = (size_t) print_count; print_count = -1; } if( next_format_string_length >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { /* TODO handle similar to error string */ memory_free( *system_format_string ); *system_format_string = NULL; return; } } while( print_count <= -1 ); #if defined( __BORLANDC__ ) || defined( _MSC_VER ) /* Rewrite %s to %S */ string_index = 0; while( string_index < format_string_length ) { if( ( *system_format_string )[ string_index ] == 0 ) { break; } else if( ( *system_format_string )[ string_index ] == (system_character_t) '%' ) { string_index++; if( ( *system_format_string )[ string_index ] == (system_character_t) 's' ) { ( *system_format_string )[ string_index ] = (system_character_t) 'S'; } } string_index++; } #endif /* defined( __BORLANDC__ ) || defined( _MSC_VER ) */ } #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #define VARARGS( function, error, error_domain, error_code, type, argument ) \ function( error, error_domain, error_code, type argument, ... ) #define VASTART( argument_list, type, name ) \ va_start( argument_list, name ) #define VAEND( argument_list ) \ va_end( argument_list ) #elif defined( HAVE_VARARGS_H ) #define VARARGS( function, error, error_domain, error_code, type, argument ) \ function( error, error_domain, error_code, va_alist ) va_dcl #define VASTART( argument_list, type, name ) \ { type name; va_start( argument_list ); name = va_arg( argument_list, type ) #define VAEND( argument_list ) \ va_end( argument_list ); } #endif /* defined( HAVE_STDARG_H ) || defined( WINAPI ) */ /* Sets an error * Creates the error if necessary * The error domain and code are set only the first time and the error message is appended for back tracing */ void VARARGS( libcerror_error_set, libcerror_error_t **error, int error_domain, int error_code, const char *, format_string ) { va_list argument_list; libcerror_internal_error_t *internal_error = NULL; system_character_t *error_string = NULL; system_character_t *system_format_string = NULL; void *reallocation = NULL; size_t error_string_size = 0; size_t format_string_length = 0; size_t message_size = 0; size_t next_message_size = LIBCERROR_MESSAGE_INCREMENT_SIZE; int message_index = 0; int print_count = 0; if( error == NULL ) { return; } if( format_string == NULL ) { return; } format_string_length = narrow_string_length( format_string ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) libcerror_error_get_system_format_string( format_string, format_string_length, &system_format_string ); if( system_format_string == NULL ) { return; } #else system_format_string = (system_character_t *) format_string; #endif if( *error == NULL ) { if( libcerror_error_initialize( error, error_domain, error_code ) != 1 ) { goto on_error; } } internal_error = (libcerror_internal_error_t *) *error; if( libcerror_error_resize( internal_error ) != 1 ) { goto on_error; } if( format_string_length > next_message_size ) { next_message_size = ( ( format_string_length / LIBCERROR_MESSAGE_INCREMENT_SIZE ) + 1 ) * LIBCERROR_MESSAGE_INCREMENT_SIZE; } message_index = internal_error->number_of_messages - 1; error_string = internal_error->messages[ message_index ]; do { if( next_message_size >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { next_message_size = LIBCERROR_MESSAGE_MAXIMUM_SIZE; } reallocation = memory_reallocate( error_string, sizeof( system_character_t ) * next_message_size ); if( reallocation == NULL ) { memory_free( error_string ); goto on_error; } error_string = (system_character_t *) reallocation; message_size = next_message_size; /* argument_list cannot be reused in successive calls to vsnprintf */ VASTART( argument_list, const char *, format_string ); print_count = system_string_vsnprintf( error_string, message_size, system_format_string, argument_list ); VAEND( argument_list ); if( print_count <= -1 ) { next_message_size += LIBCERROR_MESSAGE_INCREMENT_SIZE; } else if( ( (size_t) print_count >= message_size ) || ( error_string[ print_count ] != (system_character_t) 0 ) ) { next_message_size = (size_t) ( print_count + 1 ); print_count = -1; } else { error_string_size = (size_t) print_count + 1; } if( message_size >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { break; } } while( print_count <= -1 ); if( message_size >= LIBCERROR_MESSAGE_MAXIMUM_SIZE ) { error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 4 ] = (system_character_t) '.'; error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 3 ] = (system_character_t) '.'; error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 2 ] = (system_character_t) '.'; error_string[ LIBCERROR_MESSAGE_MAXIMUM_SIZE - 1 ] = 0; error_string_size = (size_t) LIBCERROR_MESSAGE_MAXIMUM_SIZE; } internal_error->messages[ message_index ] = error_string; internal_error->sizes[ message_index ] = error_string_size; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) memory_free( system_format_string ); system_format_string = NULL; #endif return; on_error: #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( system_format_string != NULL ) { memory_free( system_format_string ); } #endif return; } #undef VARARGS #undef VASTART #undef VAEND /* Determines if an error equals a certain error code of a domain * Returns 1 if error matches or 0 if not */ int libcerror_error_matches( libcerror_error_t *error, int error_domain, int error_code ) { if( error == NULL ) { return( 0 ); } if( ( ( (libcerror_internal_error_t *) error )->domain == error_domain ) && ( ( (libcerror_internal_error_t *) error )->code == error_code ) ) { return( 1 ); } return( 0 ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcerror_error_fprint( libcerror_error_t *error, FILE *stream ) { libcerror_internal_error_t *internal_error = NULL; system_character_t *error_string = NULL; int message_index = 0; int print_count = 0; #if defined( WINAPI ) const char *format_string = "%" PRIs_SYSTEM "\r\n"; #else const char *format_string = "%" PRIs_SYSTEM "\n"; #endif if( error == NULL ) { return( -1 ); } internal_error = (libcerror_internal_error_t *) error; if( internal_error->messages == NULL ) { return( -1 ); } if( stream == NULL ) { return( -1 ); } message_index = internal_error->number_of_messages - 1; error_string = internal_error->messages[ message_index ]; if( error_string != NULL ) { print_count = fprintf( stream, format_string, error_string ); if( print_count <= -1 ) { return( -1 ); } } return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcerror_error_sprint( libcerror_error_t *error, char *string, size_t size ) { libcerror_internal_error_t *internal_error = NULL; system_character_t *error_string = NULL; size_t print_count = 0; size_t message_index = 0; #if !defined( HAVE_WIDE_SYSTEM_CHARACTER ) size_t error_string_size = 0; #endif if( error == NULL ) { return( -1 ); } internal_error = (libcerror_internal_error_t *) error; if( internal_error->messages == NULL ) { return( -1 ); } if( internal_error->sizes == NULL ) { return( -1 ); } if( string == NULL ) { return( -1 ); } #if INT_MAX < SSIZE_MAX if( size > (size_t) INT_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { return( -1 ); } message_index = internal_error->number_of_messages - 1; error_string = internal_error->messages[ message_index ]; if( error_string != NULL ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) #if defined( _MSC_VER ) if( wcstombs_s( &print_count, string, size, error_string, _TRUNCATE ) != 0 ) { return( -1 ); } #else print_count = wcstombs( string, error_string, size ); if( print_count == (size_t) -1 ) { return( -1 ); } #endif /* defined( _MSC_VER ) */ if( print_count >= size ) { return( -1 ); } #else error_string_size = internal_error->sizes[ message_index ]; if( size < ( error_string_size + 1 ) ) { return( -1 ); } if( narrow_string_copy( string, error_string, error_string_size ) == NULL ) { return( -1 ); } print_count = error_string_size; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ } if( print_count > (size_t) INT_MAX ) { return( -1 ); } return( (int) print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcerror_error_backtrace_fprint( libcerror_error_t *error, FILE *stream ) { libcerror_internal_error_t *internal_error = NULL; system_character_t *error_string = NULL; int message_index = 0; int print_count = 0; int total_print_count = 0; #if defined( WINAPI ) const char *format_string = "%" PRIs_SYSTEM "\r\n"; #else const char *format_string = "%" PRIs_SYSTEM "\n"; #endif if( error == NULL ) { return( -1 ); } internal_error = (libcerror_internal_error_t *) error; if( internal_error->messages == NULL ) { return( -1 ); } if( stream == NULL ) { return( -1 ); } for( message_index = 0; message_index < internal_error->number_of_messages; message_index++ ) { error_string = internal_error->messages[ message_index ]; if( error_string != NULL ) { print_count = fprintf( stream, format_string, error_string ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; } } return( total_print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcerror_error_backtrace_sprint( libcerror_error_t *error, char *string, size_t size ) { libcerror_internal_error_t *internal_error = NULL; system_character_t *error_string = NULL; size_t string_index = 0; int message_index = 0; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) size_t print_count = 0; #else size_t error_string_size = 0; #endif if( error == NULL ) { return( -1 ); } internal_error = (libcerror_internal_error_t *) error; if( internal_error->messages == NULL ) { return( -1 ); } if( internal_error->sizes == NULL ) { return( -1 ); } if( string == NULL ) { return( -1 ); } #if INT_MAX < SSIZE_MAX if( size > (size_t) INT_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { return( -1 ); } for( message_index = 0; message_index < internal_error->number_of_messages; message_index++ ) { error_string = internal_error->messages[ message_index ]; if( error_string != NULL ) { if( string_index > 0 ) { #if defined( WINAPI ) if( ( string_index + 2 ) >= size ) { return( -1 ); } string[ string_index++ ] = (system_character_t) '\r'; #else if( ( string_index + 1 ) >= size ) { return( -1 ); } #endif /* defined( WINAPI ) */ string[ string_index++ ] = (system_character_t) '\n'; string[ string_index ] = (system_character_t) 0; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) #if defined( _MSC_VER ) if( wcstombs_s( &print_count, &( string[ string_index ] ), size - string_index, error_string, _TRUNCATE ) != 0 ) { return( -1 ); } #else print_count = wcstombs( &( string[ string_index ] ), error_string, size - string_index ); if( print_count == (size_t) -1 ) { return( -1 ); } #endif /*defined( _MSC_VER ) */ string_index += print_count; if( string_index >= size ) { return( -1 ); } if( string[ string_index - 1 ] == 0 ) { string_index--; } #else error_string_size = internal_error->sizes[ message_index ]; if( size < ( string_index + error_string_size + 1 ) ) { return( -1 ); } if( narrow_string_copy( &( string[ string_index ] ), error_string, error_string_size ) == NULL ) { return( -1 ); } string_index += error_string_size - 1; #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ } } string_index++; if( string_index > (size_t) INT_MAX ) { return( -1 ); } return( (int) string_index ); } libfsapfs-20190210/libcerror/libcerror_extern.h0000664000175000017500000000242213430101144023516 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCERROR_INTERNAL_EXTERN_H ) #define _LIBCERROR_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if !defined( HAVE_LOCAL_LIBCERROR ) #include #define LIBCERROR_EXTERN_VARIABLE LIBCERROR_EXTERN #else #define LIBCERROR_EXTERN /* extern */ #define LIBCERROR_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCERROR_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libcerror/Makefile.am0000664000175000017500000000113513430101144022031 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCERROR AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common noinst_LTLIBRARIES = libcerror.la libcerror_la_SOURCES = \ libcerror_definitions.h \ libcerror_extern.h \ libcerror_error.c libcerror_error.h \ libcerror_support.c libcerror_support.h \ libcerror_system.c libcerror_system.h \ libcerror_types.h \ libcerror_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcerror ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcerror_la_SOURCES) libfsapfs-20190210/libcerror/libcerror_error.h0000664000175000017500000000550213430101144023344 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCERROR_INTERNAL_ERROR_H ) #define _LIBCERROR_INTERNAL_ERROR_H #include #include #include #include "libcerror_extern.h" #include "libcerror_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcerror_internal_error libcerror_internal_error_t; struct libcerror_internal_error { /* The error domain */ int domain; /* The error code */ int code; /* The number of messages */ int number_of_messages; /* A dynamic array containing the message strings */ system_character_t **messages; /* A dynamic array containing the message string sizes * without the end-of-string character */ size_t *sizes; }; int libcerror_error_initialize( libcerror_error_t **error, int error_domain, int error_code ); LIBCERROR_EXTERN \ void libcerror_error_free( libcerror_error_t **error ); int libcerror_error_resize( libcerror_internal_error_t *internal_error ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) void libcerror_error_get_system_format_string( const char *format_string, size_t format_string_length, system_character_t **system_format_string ); #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ LIBCERROR_EXTERN \ void libcerror_error_set( libcerror_error_t **error, int error_domain, int error_code, const char *format_string, ... ); LIBCERROR_EXTERN \ int libcerror_error_matches( libcerror_error_t *error, int error_domain, int error_code ); LIBCERROR_EXTERN \ int libcerror_error_fprint( libcerror_error_t *error, FILE *stream ); LIBCERROR_EXTERN \ int libcerror_error_sprint( libcerror_error_t *error, char *string, size_t size ); LIBCERROR_EXTERN \ int libcerror_error_backtrace_fprint( libcerror_error_t *error, FILE *stream ); LIBCERROR_EXTERN \ int libcerror_error_backtrace_sprint( libcerror_error_t *error, char *string, size_t size ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCERROR_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libcerror/libcerror_support.h0000664000175000017500000000233013430101144023723 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCERROR_SUPPORT_H ) #define _LIBCERROR_SUPPORT_H #include #include #include "libcerror_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCERROR ) LIBCERROR_EXTERN \ const char *libcerror_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBCERROR ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCERROR_SUPPORT_H ) */ libfsapfs-20190210/libcerror/libcerror_types.h0000664000175000017500000000276413430101144023366 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCERROR_INTERNAL_TYPES_H ) #define _LIBCERROR_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror * The definitions in are copied here * for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) /* The following type definitions hide internal data structures */ typedef intptr_t libcerror_error_t; /* Currently not supported #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libcerror_error {} libcerror_error_t; #else typedef intptr_t libcerror_error_t; #endif */ #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCERROR_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libcerror/libcerror_definitions.h0000664000175000017500000001671713430101144024540 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCERROR_INTERNAL_DEFINITIONS_H ) #define LIBCERROR_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if !defined( HAVE_LOCAL_LIBCERROR ) #include /* The definitions in are copied here * for local use of libcerror */ #else #define LIBCERROR_VERSION 20181117 /* The libcerror version string */ #define LIBCERROR_VERSION_STRING "20181117" /* The error domains */ enum LIBCERROR_ERROR_DOMAINS { LIBCERROR_ERROR_DOMAIN_ARGUMENTS = (int) 'a', LIBCERROR_ERROR_DOMAIN_CONVERSION = (int) 'c', LIBCERROR_ERROR_DOMAIN_COMPRESSION = (int) 'C', LIBCERROR_ERROR_DOMAIN_ENCRYPTION = (int) 'E', LIBCERROR_ERROR_DOMAIN_IO = (int) 'I', LIBCERROR_ERROR_DOMAIN_INPUT = (int) 'i', LIBCERROR_ERROR_DOMAIN_MEMORY = (int) 'm', LIBCERROR_ERROR_DOMAIN_OUTPUT = (int) 'o', LIBCERROR_ERROR_DOMAIN_RUNTIME = (int) 'r', }; /* The argument error codes * to signify errors regarding arguments passed to a function */ enum LIBCERROR_ARGUMENT_ERROR { LIBCERROR_ARGUMENT_ERROR_GENERIC = 0, /* The argument contains an invalid value */ LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE = 1, /* The argument contains a value less than zero */ LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO = 2, /* The argument contains a value zero or less */ LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS = 3, /* The argument contains a value that exceeds the maximum * for the specific type */ LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM = 4, /* The argument contains a value that is too small */ LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL = 5, /* The argument contains a value that is too large */ LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_LARGE = 6, /* The argument contains a value that is out of bound */ LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS = 7, /* The argument contains a value that is not supported */ LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE = 8, /* The argument contains a value that conficts with another argument */ LIBCERROR_ARGUMENT_ERROR_CONFLICTING_VALUE = 9 }; /* The conversion error codes * to signify errors regarding conversions */ enum LIBCERROR_CONVERSION_ERROR { LIBCERROR_CONVERSION_ERROR_GENERIC = 0, /* The conversion failed on the input */ LIBCERROR_CONVERSION_ERROR_INPUT_FAILED = 1, /* The conversion failed on the output */ LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED = 2 }; /* The compression error codes * to signify errors regarding compression */ enum LIBCERROR_COMPRESSION_ERROR { LIBCERROR_COMPRESSION_ERROR_GENERIC = 0, /* The compression failed */ LIBCERROR_COMPRESSION_ERROR_COMPRESS_FAILED = 1, /* The decompression failed */ LIBCERROR_COMPRESSION_ERROR_DECOMPRESS_FAILED = 2 }; /* The encryption error codes * to signify errors regarding encryption */ enum LIBCERROR_ENCRYPTION_ERROR { LIBCERROR_ENCRYPTION_ERROR_GENERIC = 0, /* The encryption failed */ LIBCERROR_ENCRYPTION_ERROR_ENCRYPT_FAILED = 1, /* The decryption failed */ LIBCERROR_ENCRYPTION_ERROR_DECRYPT_FAILED = 2 }; /* The input/output error codes * to signify errors regarding input/output */ enum LIBCERROR_IO_ERROR { LIBCERROR_IO_ERROR_GENERIC = 0, /* The open failed */ LIBCERROR_IO_ERROR_OPEN_FAILED = 1, /* The close failed */ LIBCERROR_IO_ERROR_CLOSE_FAILED = 2, /* The seek failed */ LIBCERROR_IO_ERROR_SEEK_FAILED = 3, /* The read failed */ LIBCERROR_IO_ERROR_READ_FAILED = 4, /* The write failed */ LIBCERROR_IO_ERROR_WRITE_FAILED = 5, /* Access denied */ LIBCERROR_IO_ERROR_ACCESS_DENIED = 6, /* The resource is invalid i.e. a missing file */ LIBCERROR_IO_ERROR_INVALID_RESOURCE = 7, /* The ioctl failed */ LIBCERROR_IO_ERROR_IOCTL_FAILED = 8, /* The unlink failed */ LIBCERROR_IO_ERROR_UNLINK_FAILED = 9 }; /* The input error codes * to signify errors regarding handing input data */ enum LIBCERROR_INPUT_ERROR { LIBCERROR_INPUT_ERROR_GENERIC = 0, /* The input contains invalid data */ LIBCERROR_INPUT_ERROR_INVALID_DATA = 1, /* The input contains an unsupported signature */ LIBCERROR_INPUT_ERROR_SIGNATURE_MISMATCH = 2, /* A checksum in the input did not match */ LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH = 3, /* A value in the input did not match a previously * read value or calculated value */ LIBCERROR_INPUT_ERROR_VALUE_MISMATCH = 4 }; /* The memory error codes * to signify errors regarding memory */ enum LIBCERROR_MEMORY_ERROR { LIBCERROR_MEMORY_ERROR_GENERIC = 0, /* There is insufficient memory available */ LIBCERROR_MEMORY_ERROR_INSUFFICIENT = 1, /* The memory failed to be copied */ LIBCERROR_MEMORY_ERROR_COPY_FAILED = 2, /* The memory failed to be set */ LIBCERROR_MEMORY_ERROR_SET_FAILED = 3 }; /* The output error codes */ enum LIBCERROR_OUTPUT_ERROR { LIBCERROR_OUTPUT_ERROR_GENERIC = 0, /* There is insuficient space to write the output */ LIBCERROR_OUTPUT_ERROR_INSUFFICIENT_SPACE = 1 }; /* The runtime error codes * to signify errors regarding runtime processing */ enum LIBCERROR_RUNTIME_ERROR { LIBCERROR_RUNTIME_ERROR_GENERIC = 0, /* The value is missing */ LIBCERROR_RUNTIME_ERROR_VALUE_MISSING = 1, /* The value was already set */ LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET = 2, /* The creation and/or initialization of an internal structure failed */ LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED = 3, /* The resize of an internal structure failed */ LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED = 4, /* The free and/or finalization of an internal structure failed */ LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED = 5, /* The value could not be determined */ LIBCERROR_RUNTIME_ERROR_GET_FAILED = 6, /* The value could not be set */ LIBCERROR_RUNTIME_ERROR_SET_FAILED = 7, /* The value could not be appended/prepended */ LIBCERROR_RUNTIME_ERROR_APPEND_FAILED = 8, /* The value could not be copied */ LIBCERROR_RUNTIME_ERROR_COPY_FAILED = 9, /* The value could not be removed */ LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED = 10, /* The value could not be printed */ LIBCERROR_RUNTIME_ERROR_PRINT_FAILED = 11, /* The value was out of bounds */ LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS = 12, /* The value exceeds the maximum for its specific type */ LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM = 13, /* The value is unsupported */ LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE = 14, /* An aborted was requested */ LIBCERROR_RUNTIME_ERROR_ABORT_REQUESTED = 15 }; #endif /* !defined( HAVE_LOCAL_LIBCERROR ) */ #define LIBCERROR_MESSAGE_INCREMENT_SIZE 64 #define LIBCERROR_MESSAGE_MAXIMUM_SIZE 4096 #endif /* !defined( LIBCERROR_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libcerror/libcerror_unused.h0000664000175000017500000000255613430101144023524 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCERROR_INTERNAL_UNUSED_H ) #define _LIBCERROR_INTERNAL_UNUSED_H #include #if !defined( LIBCERROR_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCERROR_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCERROR_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCERROR_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCERROR_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCERROR_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libcerror/Makefile.in0000664000175000017500000007441213430101253022053 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcerror ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcerror_la_LIBADD = am__libcerror_la_SOURCES_DIST = libcerror_definitions.h \ libcerror_extern.h libcerror_error.c libcerror_error.h \ libcerror_support.c libcerror_support.h libcerror_system.c \ libcerror_system.h libcerror_types.h libcerror_unused.h @HAVE_LOCAL_LIBCERROR_TRUE@am_libcerror_la_OBJECTS = \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_error.lo \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_support.lo \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_system.lo libcerror_la_OBJECTS = $(am_libcerror_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCERROR_TRUE@am_libcerror_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcerror_error.Plo \ ./$(DEPDIR)/libcerror_support.Plo \ ./$(DEPDIR)/libcerror_system.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcerror_la_SOURCES) DIST_SOURCES = $(am__libcerror_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCERROR_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCERROR_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCERROR_TRUE@ -I$(top_srcdir)/common @HAVE_LOCAL_LIBCERROR_TRUE@noinst_LTLIBRARIES = libcerror.la @HAVE_LOCAL_LIBCERROR_TRUE@libcerror_la_SOURCES = \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_definitions.h \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_extern.h \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_error.c libcerror_error.h \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_support.c libcerror_support.h \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_system.c libcerror_system.h \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_types.h \ @HAVE_LOCAL_LIBCERROR_TRUE@ libcerror_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcerror/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcerror/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcerror.la: $(libcerror_la_OBJECTS) $(libcerror_la_DEPENDENCIES) $(EXTRA_libcerror_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcerror_la_rpath) $(libcerror_la_OBJECTS) $(libcerror_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcerror_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcerror_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcerror_system.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcerror_error.Plo -rm -f ./$(DEPDIR)/libcerror_support.Plo -rm -f ./$(DEPDIR)/libcerror_system.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcerror ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcerror_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcerror/libcerror_support.c0000664000175000017500000000221013430101144023713 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcerror_definitions.h" #include "libcerror_support.h" #if !defined( HAVE_LOCAL_LIBCERROR ) /* Returns the library version as a string */ const char *libcerror_get_version( void ) { return( (const char *) LIBCERROR_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBCERROR ) */ libfsapfs-20190210/libcerror/libcerror_system.h0000664000175000017500000000375413430101144023546 0ustar00lordyestalordyesta00000000000000/* * System functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCERROR_SYSTEM_H ) #define _LIBCERROR_SYSTEM_H #include #include #include #include "libcerror_extern.h" #include "libcerror_types.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( WINAPI ) && ( WINVER <= 0x0500 ) DWORD libcerror_FormatMessageA( DWORD flags, LPCVOID source, DWORD message_identifier, DWORD language_identifier, LPCSTR string, DWORD string_size, va_list *argument_list ); DWORD libcerror_FormatMessageW( DWORD flags, LPCVOID source, DWORD message_identifier, DWORD language_identifier, LPWSTR string, DWORD string_size, va_list *argument_list ); #endif /* defined( WINAPI ) && ( WINVER <= 0x0500 ) */ int libcerror_system_copy_string_from_error_number( system_character_t *string, size_t string_size, uint32_t error_number ); LIBCERROR_EXTERN \ void libcerror_system_set_error( libcerror_error_t **error, int error_domain, int error_code, uint32_t system_error_code, const char *format_string, ... ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCERROR_SYSTEM_H ) */ libfsapfs-20190210/libcnotify/0000775000175000017500000000000013430101367020163 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcnotify/libcnotify_libcerror.h0000664000175000017500000000252713430101172024541 0ustar00lordyestalordyesta00000000000000/* * The internal libcerror header * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCNOTIFY_LIBCERROR_H ) #define _LIBCNOTIFY_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif #endif libfsapfs-20190210/libcnotify/libcnotify_unused.h0000664000175000017500000000256613430101172024064 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCNOTIFY_INTERNAL_UNUSED_H ) #define _LIBCNOTIFY_INTERNAL_UNUSED_H #include #if !defined( LIBCNOTIFY_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCNOTIFY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCNOTIFY_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCNOTIFY_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCNOTIFY_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCNOTIFY_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libcnotify/libcnotify_support.h0000664000175000017500000000236413430101172024271 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCNOTIFY_SUPPORT_H ) #define _LIBCNOTIFY_SUPPORT_H #include #include #include #include "libcnotify_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCNOTIFY ) LIBCNOTIFY_EXTERN \ const char *libcnotify_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBCNOTIFY ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCNOTIFY_SUPPORT_H ) */ libfsapfs-20190210/libcnotify/libcnotify_support.c0000664000175000017500000000221613430101172024260 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcnotify_definitions.h" #include "libcnotify_support.h" #if !defined( HAVE_LOCAL_LIBCNOTIFY ) /* Returns the library version as a string */ const char *libcnotify_get_version( void ) { return( (const char *) LIBCNOTIFY_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBCNOTIFY ) */ libfsapfs-20190210/libcnotify/Makefile.am0000664000175000017500000000126413430101172022214 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCNOTIFY AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libcnotify.la libcnotify_la_SOURCES = \ libcnotify_definitions.h \ libcnotify_extern.h \ libcnotify_libcerror.h \ libcnotify_print.c libcnotify_print.h \ libcnotify_stream.c libcnotify_stream.h \ libcnotify_support.c libcnotify_support.h \ libcnotify_unused.h \ libcnotify_verbose.c libcnotify_verbose.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcnotify ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcnotify_la_SOURCES) libfsapfs-20190210/libcnotify/libcnotify_print.c0000664000175000017500000001771113430101172023706 0ustar00lordyestalordyesta00000000000000/* * Notification print functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #include #elif defined( HAVE_VARARGS_H ) #include #else #error Missing headers stdarg.h and varargs.h #endif #include "libcnotify_definitions.h" #include "libcnotify_libcerror.h" #include "libcnotify_print.h" #include "libcnotify_stream.h" extern FILE *libcnotify_stream; #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #define VARARGS( function, type, argument ) \ function( type argument, ... ) #define VASTART( argument_list, type, name ) \ va_start( argument_list, name ) #define VAEND( argument_list ) \ va_end( argument_list ) #elif defined( HAVE_VARARGS_H ) #define VARARGS( function, type, argument ) \ function( va_alist ) va_dcl #define VASTART( argument_list, type, name ) \ { type name; va_start( argument_list ); name = va_arg( argument_list, type ) #define VAEND( argument_list ) \ va_end( argument_list ); } #endif /* Print a formatted string on the notify stream * Returns the number of printed characters if successful or -1 on error */ int VARARGS( libcnotify_printf, const char *, format ) { va_list argument_list; int print_count = 0; if( libcnotify_stream == NULL ) { return( 0 ); } VASTART( argument_list, char *, format ); #if defined( HAVE_GLIB_H ) g_logv( G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, argument_list ); #else /* TODO handle narrow and wide streams * for multi platform support */ print_count = file_stream_vfprintf( libcnotify_stream, format, argument_list ); #endif VAEND( argument_list ); if( print_count <= -1 ) { return( -1 ); } return( print_count ); } #undef VARARGS #undef VASTART #undef VAEND /* Prints the data as a character on the notify stream * Returns the number of printed characters if successful or -1 on error */ int libcnotify_print_data_as_character( uint8_t data ) { int print_count = 0; if( ( data >= 0x20 ) && ( data <= 0x7e ) ) { print_count = libcnotify_printf( "%c", (char) data ); } else { print_count = libcnotify_printf( "." ); } return( print_count ); } /* Prints the first 16 bytes of data as a characters on the notify stream * Returns the number of printed characters if successful or -1 on error */ int libcnotify_print_data_as_characters( const uint8_t *data, size_t data_size, size_t data_offset ) { int print_count = 0; int total_print_count = 0; if( data == NULL ) { return( -1 ); } while( data_offset < data_size ) { print_count = libcnotify_print_data_as_character( data[ data_offset++ ] ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; if( ( data_offset % 16 == 0 ) || ( data_offset == data_size ) ) { break; } if( data_offset % 8 == 0 ) { print_count = libcnotify_printf( " " ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; } } return( total_print_count ); } /* Prints the first 16 bytes of data as a hexadecimal values on the notify stream * Returns the number of printed characters if successful or -1 on error */ int libcnotify_print_data_as_hexadecimal( const uint8_t *data, size_t data_size, size_t data_offset ) { int print_count = 0; int total_print_count = 0; if( data == NULL ) { return( -1 ); } while( data_offset < data_size ) { print_count = libcnotify_printf( "%.2" PRIx8 " ", data[ data_offset++ ] ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; if( data_offset % 16 == 0 ) { break; } else if( data_offset % 8 == 0 ) { print_count = libcnotify_printf( " " ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; } } while( data_offset % 16 != 0 ) { data_offset++; print_count = libcnotify_printf( " " ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; if( ( data_offset % 8 == 0 ) && ( data_offset % 16 != 0 ) ) { print_count = libcnotify_printf( " " ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; } } return( total_print_count ); } /* Prints the data on the notify stream * Returns the number of printed characters if successful or -1 on error */ int libcnotify_print_data( const uint8_t *data, size_t data_size, uint8_t print_data_flags ) { size_t data_offset = 0; int in_group = 0; int print_count = 0; int total_print_count = 0; if( libcnotify_stream == NULL ) { return( 0 ); } if( data == NULL ) { return( -1 ); } if( data_size > (size_t) SSIZE_MAX ) { return( -1 ); } while( data_offset < data_size ) { if( ( ( print_data_flags & LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ) != 0 ) && ( data_size >= 32 ) && ( data_offset >= 16 ) && ( data_offset <= ( data_size - 32 ) ) ) { if( ( memory_compare( &( data[ data_offset - 16 ] ), &( data[ data_offset ] ), 16 ) == 0 ) && ( memory_compare( &( data[ data_offset + 16 ] ), &( data[ data_offset ] ), 16 ) == 0 ) ) { if( in_group == 0 ) { print_count = libcnotify_printf( "...\n" ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; in_group = 1; } data_offset += 16; continue; } in_group = 0; } if( data_offset % 16 == 0 ) { print_count = libcnotify_printf( "%.8" PRIzx ": ", data_offset ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; } print_count = libcnotify_print_data_as_hexadecimal( data, data_size, data_offset ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; print_count = libcnotify_printf( " " ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; print_count = libcnotify_print_data_as_characters( data, data_size, data_offset ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; print_count = libcnotify_printf( "\n" ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; data_offset += 16; } print_count = libcnotify_printf( "\n" ); if( print_count <= -1 ) { return( -1 ); } total_print_count += print_count; return( total_print_count ); } /* Prints the backtrace of the error on the notify stream * Returns the number of printed characters if successful or -1 on error */ int libcnotify_print_error_backtrace( libcerror_error_t *error ) { int print_count = 0; if( libcnotify_stream == NULL ) { return( 0 ); } print_count = libcerror_error_backtrace_fprint( error, libcnotify_stream ); return( print_count ); } libfsapfs-20190210/libcnotify/libcnotify_verbose.c0000664000175000017500000000211013430101172024202 0ustar00lordyestalordyesta00000000000000/* * Verbose functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcnotify_verbose.h" /* Value to indicate if the verbose notification is active */ int libcnotify_verbose = 0; /* Sets the verbose notification */ void libcnotify_verbose_set( int verbose ) { libcnotify_verbose = verbose; } libfsapfs-20190210/libcnotify/libcnotify_stream.h0000664000175000017500000000264113430101172024046 0ustar00lordyestalordyesta00000000000000/* * Notification stream functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCNOTIFY_STREAM_H ) #define _LIBCNOTIFY_STREAM_H #include #include #include #include "libcnotify_extern.h" #include "libcnotify_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif LIBCNOTIFY_EXTERN \ int libcnotify_stream_set( FILE *stream, libcerror_error_t **error ); LIBCNOTIFY_EXTERN \ int libcnotify_stream_open( const char *filename, libcerror_error_t **error ); LIBCNOTIFY_EXTERN \ int libcnotify_stream_close( libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCNOTIFY_STREAM_H ) */ libfsapfs-20190210/libcnotify/libcnotify_extern.h0000664000175000017500000000257513430101172024066 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCNOTIFY_INTERNAL_EXTERN_H ) #define _LIBCNOTIFY_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify */ #if !defined( HAVE_LOCAL_LIBCNOTIFY ) /* If libtool DLL support is enabled set LIBCNOTIFY_DLL_EXPORT * before including libcnotify/extern.h */ #if defined( _WIN32 ) && defined( DLL_EXPORT ) #define LIBCNOTIFY_DLL_EXPORT #endif #include #else #define LIBCNOTIFY_EXTERN /* extern */ #endif /* !defined( HAVE_LOCAL_LIBCNOTIFY ) */ #endif /* !defined( _LIBCNOTIFY_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libcnotify/libcnotify_stream.c0000664000175000017500000000766413430101172024053 0ustar00lordyestalordyesta00000000000000/* * Notification stream functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_ERRNO_H ) || defined( WINAPI ) #include #endif #include "libcnotify_libcerror.h" #include "libcnotify_stream.h" /* The notification stream */ FILE *libcnotify_stream = NULL; /* Value to indicate if the notification stream * was opened by the library */ int libcnotify_stream_opened_in_library = 0; /* Set the stream * Returns 1 if successful or -1 on error */ int libcnotify_stream_set( FILE *stream, libcerror_error_t **error ) { static char *function = "libcnotify_stream_set"; if( libcnotify_stream_opened_in_library != 0 ) { if( libcnotify_stream_close( error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to close notify stream.", function ); return( -1 ); } } libcnotify_stream = stream; return( 1 ); } /* Opens the notification stream using a filename * The stream is opened in append mode * Returns 1 if successful or -1 on error */ int libcnotify_stream_open( const char *filename, libcerror_error_t **error ) { static char *function = "libcnotify_stream_open"; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( libcnotify_stream_opened_in_library != 0 ) { if( libcnotify_stream_close( error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to close notify stream.", function ); return( -1 ); } } libcnotify_stream = file_stream_open( filename, FILE_STREAM_OPEN_APPEND ); if( libcnotify_stream == NULL ) { switch( errno ) { case EACCES: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_ACCESS_DENIED, "%s: access denied to file: %s.", function, filename ); break; case ENOENT: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_INVALID_RESOURCE, "%s: no such file: %s.", function, filename ); break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file: %s.", function, filename ); break; } return( -1 ); } libcnotify_stream_opened_in_library = 1; return( 1 ); } /* Closes the notification stream if opened using a filename * Returns 0 if successful or -1 on error */ int libcnotify_stream_close( libcerror_error_t **error ) { static char *function = "libcnotify_stream_close"; if( libcnotify_stream_opened_in_library != 0 ) { if( file_stream_close( libcnotify_stream ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to close stream.", function ); return( -1 ); } libcnotify_stream = NULL; libcnotify_stream_opened_in_library = 0; } return( 0 ); } libfsapfs-20190210/libcnotify/Makefile.in0000664000175000017500000007536013430101254022236 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcnotify ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcnotify_la_LIBADD = am__libcnotify_la_SOURCES_DIST = libcnotify_definitions.h \ libcnotify_extern.h libcnotify_libcerror.h libcnotify_print.c \ libcnotify_print.h libcnotify_stream.c libcnotify_stream.h \ libcnotify_support.c libcnotify_support.h libcnotify_unused.h \ libcnotify_verbose.c libcnotify_verbose.h @HAVE_LOCAL_LIBCNOTIFY_TRUE@am_libcnotify_la_OBJECTS = \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_print.lo \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_stream.lo \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_support.lo \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_verbose.lo libcnotify_la_OBJECTS = $(am_libcnotify_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCNOTIFY_TRUE@am_libcnotify_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcnotify_print.Plo \ ./$(DEPDIR)/libcnotify_stream.Plo \ ./$(DEPDIR)/libcnotify_support.Plo \ ./$(DEPDIR)/libcnotify_verbose.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcnotify_la_SOURCES) DIST_SOURCES = $(am__libcnotify_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCNOTIFY_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBCNOTIFY_TRUE@noinst_LTLIBRARIES = libcnotify.la @HAVE_LOCAL_LIBCNOTIFY_TRUE@libcnotify_la_SOURCES = \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_definitions.h \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_extern.h \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_libcerror.h \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_print.c libcnotify_print.h \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_stream.c libcnotify_stream.h \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_support.c libcnotify_support.h \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_unused.h \ @HAVE_LOCAL_LIBCNOTIFY_TRUE@ libcnotify_verbose.c libcnotify_verbose.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcnotify/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcnotify/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcnotify.la: $(libcnotify_la_OBJECTS) $(libcnotify_la_DEPENDENCIES) $(EXTRA_libcnotify_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcnotify_la_rpath) $(libcnotify_la_OBJECTS) $(libcnotify_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcnotify_print.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcnotify_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcnotify_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcnotify_verbose.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcnotify_print.Plo -rm -f ./$(DEPDIR)/libcnotify_stream.Plo -rm -f ./$(DEPDIR)/libcnotify_support.Plo -rm -f ./$(DEPDIR)/libcnotify_verbose.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcnotify ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcnotify_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcnotify/libcnotify_print.h0000664000175000017500000000327413430101172023712 0ustar00lordyestalordyesta00000000000000/* * Notification print functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCNOTIFY_PRINT_H ) #define _LIBCNOTIFY_PRINT_H #include #include #include "libcnotify_extern.h" #include "libcnotify_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif LIBCNOTIFY_EXTERN \ int libcnotify_printf( const char *format, ... ); int libcnotify_print_data_as_character( uint8_t data ); int libcnotify_print_data_as_characters( const uint8_t *data, size_t data_size, size_t data_offset ); int libcnotify_print_data_as_hexadecimal( const uint8_t *data, size_t data_size, size_t data_offset ); LIBCNOTIFY_EXTERN \ int libcnotify_print_data( const uint8_t *data, size_t data_size, uint8_t print_data_flags ); LIBCNOTIFY_EXTERN \ int libcnotify_print_error_backtrace( libcerror_error_t *error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCNOTIFY_PRINT_H ) */ libfsapfs-20190210/libcnotify/libcnotify_verbose.h0000664000175000017500000000234213430101172024216 0ustar00lordyestalordyesta00000000000000/* * Verbose functions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCNOTIFY_VERBOSE_H ) #define _LIBCNOTIFY_VERBOSE_H #include #include #include "libcnotify_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( __CYGWIN__ ) extern int libcnotify_verbose; #else int libcnotify_verbose; #endif LIBCNOTIFY_EXTERN \ void libcnotify_verbose_set( int verbose ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCNOTIFY_VERBOSE_H ) */ libfsapfs-20190210/libcnotify/libcnotify_definitions.h0000664000175000017500000000273213430101172025067 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2008-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCNOTIFY_INTERNAL_DEFINITIONS_H ) #define LIBCNOTIFY_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify */ #if !defined( HAVE_LOCAL_LIBCNOTIFY ) #include /* The definitions in are copied here * for local use of libcnotify */ #else #define LIBCNOTIFY_VERSION 20180102 /* The libcnotify version string */ #define LIBCNOTIFY_VERSION_STRING "20180102" /* The print data flags */ enum LIBCNOTIFY_NOTIFY_PRINT_DATA_FLAGS { LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA = 0x01, }; #endif /* !defined( HAVE_LOCAL_LIBCNOTIFY ) */ #endif libfsapfs-20190210/ltmain.sh0000644000175000017500000117106713430101243017645 0ustar00lordyestalordyesta00000000000000#! /bin/sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2014-01-03.01 # libtool (GNU libtool) 2.4.6 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . PROGRAM=libtool PACKAGE=libtool VERSION=2.4.6 package_revision=2.4.6 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2015-01-20.17; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # Copyright (C) 2004-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # As a special exception to the GNU General Public License, if you distribute # this file as part of a program or library that is built using GNU Libtool, # you may include this file under the same distribution terms that you use # for the rest of that program. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo 'GREP' >> conftest.nl "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath=$0 # The name of this program. progname=`$ECHO "$progpath" |$SED "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1+=\\ \$func_quote_for_eval_result" }' else func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1=\$$1\\ \$func_quote_for_eval_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_for_eval ARG... # -------------------------- # Aesthetically quote ARGs to be evaled later. # This function returns two values: # i) func_quote_for_eval_result # double-quoted, suitable for a subsequent eval # ii) func_quote_for_eval_unquoted_result # has all characters that are still active within double # quotes backslashified. func_quote_for_eval () { $debug_cmd func_quote_for_eval_unquoted_result= func_quote_for_eval_result= while test 0 -lt $#; do case $1 in *[\\\`\"\$]*) _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; *) _G_unquoted_arg=$1 ;; esac if test -n "$func_quote_for_eval_unquoted_result"; then func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" else func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" fi case $_G_unquoted_arg in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_quoted_arg=\"$_G_unquoted_arg\" ;; *) _G_quoted_arg=$_G_unquoted_arg ;; esac if test -n "$func_quote_for_eval_result"; then func_append func_quote_for_eval_result " $_G_quoted_arg" else func_append func_quote_for_eval_result "$_G_quoted_arg" fi shift done } # func_quote_for_expand ARG # ------------------------- # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { $debug_cmd case $1 in *[\\\`\"]*) _G_arg=`$ECHO "$1" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; *) _G_arg=$1 ;; esac case $_G_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_arg=\"$_G_arg\" ;; esac func_quote_for_expand_result=$_G_arg } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_for_expand "$_G_cmd" eval "func_notquiet $func_quote_for_expand_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_for_expand "$_G_cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # Set a version string for this script. scriptversion=2014-01-07.03; # UTC # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # Copyright (C) 2010-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# warranty; '. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # to the main code. A hook is just a named list of of function, that can # be run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of functions called by FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It is assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook funcions.n" ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do eval $_G_hook '"$@"' # store returned options list back into positional # parameters for next 'cmd' execution. eval _G_hook_result=\$${_G_hook}_result eval set dummy "$_G_hook_result"; shift done func_quote_for_eval ${1+"$@"} func_run_hooks_result=$func_quote_for_eval_result } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list in your hook function, remove any # options that you action, and then pass back the remaining unprocessed # options in '_result', escaped suitably for # 'eval'. Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # func_quote_for_eval ${1+"$@"} # my_options_prep_result=$func_quote_for_eval_result # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # # Note that for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # ;; # *) set dummy "$_G_opt" "$*"; shift; break ;; # esac # done # # func_quote_for_eval ${1+"$@"} # my_silent_option_result=$func_quote_for_eval_result # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # # func_quote_for_eval ${1+"$@"} # my_option_validation_result=$func_quote_for_eval_result # } # func_add_hook func_validate_options my_option_validation # # You'll alse need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd func_options_prep ${1+"$@"} eval func_parse_options \ ${func_options_prep_result+"$func_options_prep_result"} eval func_validate_options \ ${func_parse_options_result+"$func_parse_options_result"} eval func_run_hooks func_options \ ${func_validate_options_result+"$func_validate_options_result"} # save modified positional parameters for caller func_options_result=$func_run_hooks_result } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propogate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before # returning. func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} # save modified positional parameters for caller func_options_prep_result=$func_run_hooks_result } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd func_parse_options_result= # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} # Adjust func_parse_options positional parameters to match eval set dummy "$func_run_hooks_result"; shift # Break out of the loop if we already parsed every option. test $# -gt 0 || break _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) test $# = 0 && func_missing_arg $_G_opt && break case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} func_parse_options_result=$func_quote_for_eval_result } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE # save modified positional parameters for caller func_validate_options_result=$func_run_hooks_result } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables after # splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} test "x$func_split_equals_lhs" = "x$1" \ && func_split_equals_rhs= }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /(C)/!b go :more /\./!{ N s|\n# | | b more } :go /^# Written by /,/# warranty; / { s|^# || s|^# *$|| s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| p } /^# Written by / { s|^# || p } /^warranty; /q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.6' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname (GNU libtool) 2.4.6 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . GNU libtool home page: . General help using GNU software: ." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Pass back the list of options. func_quote_for_eval ${1+"$@"} libtool_options_prep_result=$func_quote_for_eval_result } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} libtool_parse_options_result=$func_quote_for_eval_result } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote_for_eval ${1+"$@"} libtool_validate_options_result=$func_quote_for_eval_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # 'FILE.' does not work on cygwin managed mounts. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # Get the compilation command and the source file. base_compile= srcfile=$nonopt # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg=$arg arg_mode=normal ;; target ) libobj=$arg arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg=$srcfile srcfile=$arg ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix '.c' with the library object suffix, '.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to '-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the '--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the 'install' or 'cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE use a list of object files found in FILE to specify objects -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with '-') are ignored. Every other argument is treated as a filename. Files ending in '.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in '.la', then a libtool library is created, only library objects ('.lo' files) may be specified, and '-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created using 'ar' and 'ranlib', or on Windows using 'lib'. If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir=$absdir # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic=$magic # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the '-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the '$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the '$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the '$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try 'ln -sf' first, because the 'ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext= case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd win32_libid_type=unknown win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" cd "unfat-$$/$darwin_base_archive-$darwin_arch" func_extract_an_archive "`pwd`" "$darwin_base_archive" cd "$darwin_curdir" $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else \$ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ defined __OS2__ # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined HAVE_DOS_BASED_FILE_SYSTEM if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined HAVE_DOS_BASED_FILE_SYSTEM } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = (size_t) (q - p); p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg=$1 shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg=$arg case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ -specs=*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_for_eval "$arg" arg=$func_quote_for_eval_result fi ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib=$searchdir/lib$name$search_ext if test -f "$lib"; then if test .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir=$ladir absdir=$abs_ladir # Remove this search path later func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then # Make sure the rpath contains only unique directories. case $temp_rpath: in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test lib = "$linkmode" && test yes = "$hardcode_into_libs"; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname=$dlname elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; then add=$dir/$linklib case $host in *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; *-*-sysv4*uw2*) add_dir=-L$dir ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir=-L$dir ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library"; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add=$dir/$old_library fi elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib"; then add=$inst_prefix_dir$libdir/$linklib else add=$libdir/$linklib fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir=-L$libdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test prog = "$linkmode"; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test unsupported != "$hardcode_direct"; then test -n "$old_library" && linklib=$old_library compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system cannot link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test yes = "$module"; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names"; then for tmp in $deplibrary_names; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=deplibs fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i= ;; esac if test -n "$i"; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; then # Building a libtool convenience library. # Some compilers have problems with a '.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major=$1 number_minor=$2 number_revision=$3 # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; esac ;; no) current=$1 revision=$2 age=$3 ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring=$verstring_prefix$major.$revision # Add in all the interfaces that we are compatible with. loop=$revision while test 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring=0.0 ;; esac if test no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles=$dlfiles dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles=$dlprefiles dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test yes = "$build_libtool_need_lc"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release= versuffix= major= newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib=$potent_lib while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | $SED 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib=$potent_lib # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test no = "$allow_undefined"; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs=$new_libs # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath=$finalize_shlibpath test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname=$1 shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname=$realname fi if test -z "$dlname"; then dlname=$soname fi lib=$output_objdir/$realname linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS=$save_ifs if test -n "$export_symbols_regex" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs=$IFS; IFS='~' for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs # Restore the uninstalled library and exit if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath=$rpath rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath=$rpath if test -n "$libobjs" && test yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; then # We don't need to create a wrapper script. link_command=$compile_var$compile_command$compile_rpath # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource=$output_path/$objdir/lt-$output_name.c cwrapper=$output_path/$output_name.exe $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj"; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; then if test -z "$install_libdir"; then break fi output=$output_objdir/${outputname}i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic for arg do case $arg in -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: libfsapfs-20190210/compile0000755000175000017500000001632713430101253017400 0ustar00lordyestalordyesta00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2018 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libfsapfs-20190210/config.rpath0000755000175000017500000004401213344411702020331 0ustar00lordyestalordyesta00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case $cc_basename in xlc*) wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux* | k*bsd*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case $cc_basename in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) library_names_spec='$libname.a' ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd1*) ;; freebsd* | dragonfly*) case "$host_os" in freebsd[123]*) library_names_spec='$libname$shrext$versuffix' ;; *) library_names_spec='$libname$shrext' ;; esac ;; gnu*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; nto-qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' < * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBCERROR_H ) #define _LIBFSAPFS_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBFSAPFS_LIBCERROR_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_encryption_context.c0000664000175000017500000004152213426637446026152 0ustar00lordyestalordyesta00000000000000/* * Encryption functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_definitions.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_libcaes.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" /* Creates an encryption context * Make sure the value encryption context is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_encryption_context_initialize( libfsapfs_encryption_context_t **context, uint32_t method, libcerror_error_t **error ) { static char *function = "libfsapfs_encryption_context_initialize"; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid context value already set.", function ); return( -1 ); } if( method != LIBFSAPFS_ENCRYPTION_METHOD_AES_128_XTS ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported method.", function ); return( -1 ); } *context = memory_allocate_structure( libfsapfs_encryption_context_t ); if( *context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create context.", function ); goto on_error; } if( memory_set( *context, 0, sizeof( libfsapfs_encryption_context_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear context.", function ); memory_free( *context ); *context = NULL; return( -1 ); } if( libcaes_tweaked_context_initialize( &( ( *context )->decryption_context ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize decryption context.", function ); goto on_error; } ( *context )->method = method; return( 1 ); on_error: if( *context != NULL ) { if( ( *context )->decryption_context != NULL ) { libcaes_tweaked_context_free( &( ( *context )->decryption_context ), NULL ); } memory_free( *context ); *context = NULL; } return( -1 ); } /* Frees an encryption context * Returns 1 if successful or -1 on error */ int libfsapfs_encryption_context_free( libfsapfs_encryption_context_t **context, libcerror_error_t **error ) { static char *function = "libfsapfs_encryption_context_free"; int result = 1; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( *context != NULL ) { if( libcaes_tweaked_context_free( &( ( *context )->decryption_context ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable free decryption context.", function ); result = -1; } memory_free( *context ); *context = NULL; } return( result ); } /* Sets the de- and encryption keys * Returns 1 if successful or -1 on error */ int libfsapfs_encryption_context_set_keys( libfsapfs_encryption_context_t *context, const uint8_t *key, size_t key_size, const uint8_t *tweak_key, size_t tweak_key_size, libcerror_error_t **error ) { static char *function = "libfsapfs_encryption_context_set_keys"; size_t key_bit_size = 0; size_t key_byte_size = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( key_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid key size value exceeds maximum.", function ); return( -1 ); } if( tweak_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tweak key.", function ); return( -1 ); } if( tweak_key_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid tweak key size value exceeds maximum.", function ); return( -1 ); } if( context->method == LIBFSAPFS_ENCRYPTION_METHOD_AES_128_XTS ) { key_byte_size = 16; } if( key_size < key_byte_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid key value too small.", function ); return( -1 ); } if( tweak_key_size < key_byte_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid tweak key value too small.", function ); return( -1 ); } key_bit_size = key_byte_size * 8; if( libcaes_tweaked_context_set_keys( context->decryption_context, LIBCAES_CRYPT_MODE_DECRYPT, key, key_bit_size, tweak_key, key_bit_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set keys in decryption context.", function ); return( -1 ); } return( 1 ); } /* De- or encrypts a block of data * Returns 1 if successful or -1 on error */ int libfsapfs_encryption_context_crypt( libfsapfs_encryption_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, uint64_t sector_number, uint16_t bytes_per_sector, libcerror_error_t **error ) { uint8_t tweak_value[ 16 ]; static char *function = "libfsapfs_encryption_context_crypt"; size_t data_offset = 0; if( context == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid context.", function ); return( -1 ); } if( mode != LIBFSAPFS_ENCRYPTION_CRYPT_MODE_DECRYPT ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported mode.", function ); return( -1 ); } if( input_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid input data.", function ); return( -1 ); } if( input_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid input data size value exceeds maximum.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( output_data_size < input_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid output data size value smaller than input data size.", function ); return( -1 ); } if( memory_set( tweak_value, 0, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear tweak value.", function ); goto on_error; } for( data_offset = 0; data_offset < input_data_size; data_offset += bytes_per_sector ) { byte_stream_copy_from_uint64_little_endian( tweak_value, sector_number ); if( libcaes_crypt_xts( context->decryption_context, LIBCAES_CRYPT_MODE_DECRYPT, tweak_value, 16, &( input_data[ data_offset ] ), bytes_per_sector, &( output_data[ data_offset ] ), bytes_per_sector, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_DECRYPT_FAILED, "%s: unable to decrypt data.", function ); goto on_error; } sector_number += 1; } return( 1 ); on_error: memory_set( tweak_value, 0, 16 ); return( -1 ); } /* Unwrap data using AES Key Wrap (RFC3394) * Returns 1 if successful or -1 on error */ int libfsapfs_encryption_aes_key_unwrap( const uint8_t *key, size_t key_bit_size, const uint8_t *wrapped_data, size_t wrapped_data_size, uint8_t *unwrapped_data, size_t unwrapped_data_size, libcerror_error_t **error ) { uint8_t block_data[ 16 ]; uint8_t vector_data[ 8 ]; libcaes_context_t *aes_context = NULL; uint8_t *initialization_vector = NULL; static char *function = "libfsapfs_encryption_aes_key_unwrap"; size_t block_offset = 0; size_t number_of_blocks = 0; size_t block_index = 0; int8_t round_index = 0; if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid AES key.", function); return( -1 ); } if( ( key_bit_size != 128 ) && ( key_bit_size != 192 ) && ( key_bit_size != 256 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid AES key length value out of bounds.", function); return( -1 ); } if( wrapped_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid wrapped data.", function); return( -1 ); } if( wrapped_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid wrapped data size value exceeds maximum.", function ); return( -1 ); } if( wrapped_data_size <= 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid wrapped data size value too small.", function); return( -1 ); } if( ( wrapped_data_size % 8 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid wrapped data size value not a multitude of 8.", function); return( -1 ); } if( unwrapped_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid unwrapped data.", function); return( -1 ); } if( unwrapped_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid unwrapped data size value exceeds maximum.", function ); return( -1 ); } if( unwrapped_data_size < wrapped_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid unwrapped data size value too small.", function); return( -1 ); } if( libcaes_context_initialize( &aes_context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize AES context.", function ); goto on_error; } if( libcaes_context_set_key( aes_context, LIBCAES_CRYPT_MODE_DECRYPT, key, key_bit_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set key in AES context.", function ); goto on_error; } if( memory_copy( unwrapped_data, wrapped_data, wrapped_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy wrapped data.", function ); goto on_error; } number_of_blocks = wrapped_data_size / 8; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: number of blocks: %" PRIzd "\n", function, number_of_blocks ); libcnotify_printf( "%s: wrapped data:\n", function ); libcnotify_print_data( wrapped_data, wrapped_data_size, 0 ); } #endif /* TODO make this code more readable */ initialization_vector = unwrapped_data; for( round_index = 5; round_index >= 0; round_index-- ) { for( block_index = number_of_blocks - 1; block_index > 0; block_index-- ) { block_offset = block_index * 8; byte_stream_copy_from_uint64_big_endian( vector_data, (uint64_t) ( round_index * ( number_of_blocks - 1 ) + block_index ) ); vector_data[ 0 ] ^= initialization_vector[ 0 ]; vector_data[ 1 ] ^= initialization_vector[ 1 ]; vector_data[ 2 ] ^= initialization_vector[ 2 ]; vector_data[ 3 ] ^= initialization_vector[ 3 ]; vector_data[ 4 ] ^= initialization_vector[ 4 ]; vector_data[ 5 ] ^= initialization_vector[ 5 ]; vector_data[ 6 ] ^= initialization_vector[ 6 ]; vector_data[ 7 ] ^= initialization_vector[ 7 ]; if( memory_copy( &( block_data[ 0 ] ), vector_data, 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy vector data to block data.", function ); goto on_error; } if( memory_copy( &( block_data[ 8 ] ), &( unwrapped_data[ block_offset ] ), 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy unwrapped data to block data.", function ); goto on_error; } if( libcaes_crypt_ecb( aes_context, LIBCAES_CRYPT_MODE_DECRYPT, block_data, 16, block_data, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_DECRYPT_FAILED, "%s: unable to decrypt block data.", function ); goto on_error; } if( memory_copy( initialization_vector, &( block_data[ 0 ] ), 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to decrypted block data to initialization vector.", function ); goto on_error; } if( memory_copy( &( unwrapped_data[ block_offset ] ), &( block_data[ 8 ] ), 8 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy decrypted block data to unwrapped data.", function ); goto on_error; } } } if( libcaes_context_free( &aes_context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free AES context.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unwrapped data:\n", function ); libcnotify_print_data( unwrapped_data, wrapped_data_size, 0 ); } #endif return( 1 ); on_error: if( aes_context != NULL ) { libcaes_context_free( &aes_context, NULL); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_libcnotify.h0000664000175000017500000000266513426637446024370 0ustar00lordyestalordyesta00000000000000/* * The libcnotify header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBCNOTIFY_H ) #define _LIBFSAPFS_LIBCNOTIFY_H #include /* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify */ #if defined( HAVE_LOCAL_LIBCNOTIFY ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT * before including libcnotify.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCNOTIFY_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */ #endif /* !defined( _LIBFSAPFS_LIBCNOTIFY_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_space_manager.h0000664000175000017500000001341413426637446024316 0ustar00lordyestalordyesta00000000000000/* * The APFS space manager definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_SPACE_MANAGER_H ) #define _FSAPFS_SPACE_MANAGER_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_space_manager fsapfs_space_manager_t; struct fsapfs_space_manager { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* The block size * Consists of 4 bytes */ uint8_t block_size[ 4 ]; /* The number of blocks per chunk * Consists of 4 bytes */ uint8_t blocks_per_chunk[ 4 ]; /* The number of chunks per CIB * Consists of 4 bytes */ uint8_t chunks_per_cib[ 4 ]; /* The number of CIBs per CAB * Consists of 4 bytes */ uint8_t cibs_per_cab[ 4 ]; /* The number of blocks of the main device * Consists of 8 bytes */ uint8_t main_device_number_of_blocks[ 8 ]; /* The number of chunks of the main device * Consists of 8 bytes */ uint8_t main_device_number_of_chunks[ 8 ]; /* The number of CIBs of the main device * Consists of 4 bytes */ uint8_t main_device_number_of_cibs[ 4 ]; /* The number of CABs of the main device * Consists of 4 bytes */ uint8_t main_device_number_of_cabs[ 4 ]; /* The number of unsused blocks of the main device * Consists of 8 bytes */ uint8_t main_device_number_of_unused_blocks[ 8 ]; /* The offset of the main device * Consists of 4 bytes */ uint8_t main_device_offset[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown2[ 8 ]; /* The number of blocks of the tier2 device * Consists of 8 bytes */ uint8_t tier2_device_number_of_blocks[ 8 ]; /* The number of chunks of the tier2 device * Consists of 8 bytes */ uint8_t tier2_device_number_of_chunks[ 8 ]; /* The number of CIBs of the tier2 device * Consists of 4 bytes */ uint8_t tier2_device_number_of_cibs[ 4 ]; /* The number of CABs of the tier2 device * Consists of 4 bytes */ uint8_t tier2_device_number_of_cabs[ 4 ]; /* The number of unsused blocks of the tier2 device * Consists of 8 bytes */ uint8_t tier2_device_number_of_unused_blocks[ 8 ]; /* The offset of the tier2 device * Consists of 4 bytes */ uint8_t tier2_device_offset[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown8[ 4 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown9[ 8 ]; /* The flags * Consists of 4 bytes */ uint8_t flags[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown11[ 4 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown12[ 8 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown13[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown14[ 4 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown15[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown16[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown17[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown18[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown19[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown20[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown21[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown22[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown23[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown24[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown25[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown26[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown27[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown28[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown29[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown30[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown31[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown32[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown33[ 8 ]; /* Unknown * Consists of 2 bytes */ uint8_t unknown34[ 2 ]; /* Unknown * Consists of 2 bytes */ uint8_t unknown35[ 2 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown36[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown37[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown38[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown39[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown40[ 4 ]; /* The main allocation zones * Consists of 8 x 72 bytes */ uint8_t unknown41[ 8 * 72 ]; /* The tier2 allocation zones * Consists of 8 x 72 bytes */ uint8_t unknown42[ 8 * 72 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_SPACE_MANAGER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_btree_entry.c0000664000175000017500000001674213426637446024544 0ustar00lordyestalordyesta00000000000000/* * The B-tree entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_btree.h" #include "fsapfs_object.h" /* Creates a B-tree entry * Make sure the value btree_entry is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_btree_entry_initialize( libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_entry_initialize"; if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( *btree_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid B-tree entry value already set.", function ); return( -1 ); } *btree_entry = memory_allocate_structure( libfsapfs_btree_entry_t ); if( *btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create B-tree entry.", function ); goto on_error; } if( memory_set( *btree_entry, 0, sizeof( libfsapfs_btree_entry_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear B-tree entry.", function ); goto on_error; } return( 1 ); on_error: if( *btree_entry != NULL ) { memory_free( *btree_entry ); *btree_entry = NULL; } return( -1 ); } /* Frees a B-tree entry * Returns 1 if successful or -1 on error */ int libfsapfs_btree_entry_free( libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_entry_free"; if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( *btree_entry != NULL ) { if( ( *btree_entry )->value_data != NULL ) { memory_free( ( *btree_entry )->value_data ); } if( ( *btree_entry )->key_data != NULL ) { memory_free( ( *btree_entry )->key_data ); } memory_free( *btree_entry ); *btree_entry = NULL; } return( 1 ); } /* Sets the key data * Returns 1 if successful or -1 on error */ int libfsapfs_btree_entry_set_key_data( libfsapfs_btree_entry_t *btree_entry, const uint8_t *key_data, size_t key_data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_entry_set_key_data"; if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( btree_entry->key_data != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid B-tree entry - key data value already set.", function ); return( -1 ); } if( key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key data.", function ); return( -1 ); } if( key_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid key data size value exceeds maximum.", function ); return( -1 ); } if( key_data_size > 0 ) { btree_entry->key_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * key_data_size ); if( btree_entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to create key data.", function ); goto on_error; } if( memory_copy( btree_entry->key_data, key_data, key_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key data.", function ); goto on_error; } btree_entry->key_data_size = key_data_size; } return( 1 ); on_error: if( btree_entry->key_data != NULL ) { memory_free( btree_entry->key_data ); btree_entry->key_data = NULL; } btree_entry->key_data_size = 0; return( -1 ); } /* Sets the value data * Returns 1 if successful or -1 on error */ int libfsapfs_btree_entry_set_value_data( libfsapfs_btree_entry_t *btree_entry, const uint8_t *value_data, size_t value_data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_entry_set_value_data"; if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( btree_entry->value_data != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid B-tree entry - value data value already set.", function ); return( -1 ); } if( value_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value data.", function ); return( -1 ); } if( value_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid value data size value exceeds maximum.", function ); return( -1 ); } if( value_data_size > 0 ) { btree_entry->value_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * value_data_size ); if( btree_entry->value_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to create value data.", function ); goto on_error; } if( memory_copy( btree_entry->value_data, value_data, value_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy value data.", function ); goto on_error; } btree_entry->value_data_size = value_data_size; } return( 1 ); on_error: if( btree_entry->value_data != NULL ) { memory_free( btree_entry->value_data ); btree_entry->value_data = NULL; } btree_entry->value_data_size = 0; return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_fusion_middle_tree.c0000664000175000017500000002113113426637446026046 0ustar00lordyestalordyesta00000000000000/* * The Fusion middle tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_fusion_middle_tree.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_fusion_middle_tree.h" /* Creates a Fusion middle tree * Make sure the value fusion_middle_tree is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_fusion_middle_tree_initialize( libfsapfs_fusion_middle_tree_t **fusion_middle_tree, libcerror_error_t **error ) { static char *function = "libfsapfs_fusion_middle_tree_initialize"; if( fusion_middle_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Fusion middle tree.", function ); return( -1 ); } if( *fusion_middle_tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid Fusion middle tree value already set.", function ); return( -1 ); } *fusion_middle_tree = memory_allocate_structure( libfsapfs_fusion_middle_tree_t ); if( *fusion_middle_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create Fusion middle tree.", function ); goto on_error; } if( memory_set( *fusion_middle_tree, 0, sizeof( libfsapfs_fusion_middle_tree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear Fusion middle tree.", function ); goto on_error; } return( 1 ); on_error: if( *fusion_middle_tree != NULL ) { memory_free( *fusion_middle_tree ); *fusion_middle_tree = NULL; } return( -1 ); } /* Frees a Fusion middle tree * Returns 1 if successful or -1 on error */ int libfsapfs_fusion_middle_tree_free( libfsapfs_fusion_middle_tree_t **fusion_middle_tree, libcerror_error_t **error ) { static char *function = "libfsapfs_fusion_middle_tree_free"; if( fusion_middle_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Fusion middle tree.", function ); return( -1 ); } if( *fusion_middle_tree != NULL ) { memory_free( *fusion_middle_tree ); *fusion_middle_tree = NULL; } return( 1 ); } /* Reads the Fusion middle tree * Returns 1 if successful or -1 on error */ int libfsapfs_fusion_middle_tree_read_file_io_handle( libfsapfs_fusion_middle_tree_t *fusion_middle_tree, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { uint8_t fusion_middle_tree_data[ 4096 ]; static char *function = "libfsapfs_fusion_middle_tree_read_file_io_handle"; ssize_t read_count = 0; if( fusion_middle_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Fusion middle tree.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading Fusion middle tree at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek Fusion middle tree offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, fusion_middle_tree_data, 4096, error ); if( read_count != (ssize_t) 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read Fusion middle tree data.", function ); return( -1 ); } if( libfsapfs_fusion_middle_tree_read_data( fusion_middle_tree, fusion_middle_tree_data, 4096, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read Fusion middle tree data.", function ); return( -1 ); } return( 1 ); } /* Reads the Fusion middle tree * Returns 1 if successful or -1 on error */ int libfsapfs_fusion_middle_tree_read_data( libfsapfs_fusion_middle_tree_t *fusion_middle_tree, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_fusion_middle_tree_read_data"; uint32_t object_subtype = 0; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( fusion_middle_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid Fusion middle tree.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_fusion_middle_tree_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: Fusion middle tree data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_fusion_middle_tree_t *) data )->object_type, object_type ); if( object_type != 0x40000002UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_fusion_middle_tree_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000015UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_fusion_middle_tree_t *) data )->object_checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_fusion_middle_tree_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_fusion_middle_tree_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_fusion_middle_tree_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_key_bag_entry.c0000664000175000017500000001753413426637446025044 0ustar00lordyestalordyesta00000000000000/* * The key bag entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_key_bag_entry.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfguid.h" #include "fsapfs_key_bag.h" /* Creates key bag entry * Make sure the value key_bag_entry is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_key_bag_entry_initialize( libfsapfs_key_bag_entry_t **key_bag_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_key_bag_entry_initialize"; if( key_bag_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key bag entry.", function ); return( -1 ); } if( *key_bag_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid key bag entry value already set.", function ); return( -1 ); } *key_bag_entry = memory_allocate_structure( libfsapfs_key_bag_entry_t ); if( *key_bag_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key bag entry.", function ); goto on_error; } if( memory_set( *key_bag_entry, 0, sizeof( libfsapfs_key_bag_entry_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key bag entry.", function ); goto on_error; } return( 1 ); on_error: if( *key_bag_entry != NULL ) { memory_free( *key_bag_entry ); *key_bag_entry = NULL; } return( -1 ); } /* Frees key bag entry * Returns 1 if successful or -1 on error */ int libfsapfs_key_bag_entry_free( libfsapfs_key_bag_entry_t **key_bag_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_key_bag_entry_free"; if( key_bag_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key bag entry.", function ); return( -1 ); } if( *key_bag_entry != NULL ) { if( ( *key_bag_entry )->data != NULL ) { memory_free( ( *key_bag_entry )->data ); } memory_free( *key_bag_entry ); *key_bag_entry = NULL; } return( 1 ); } /* Reads the key bag entry * Returns 1 if successful or -1 on error */ int libfsapfs_key_bag_entry_read_data( libfsapfs_key_bag_entry_t *key_bag_entry, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_key_bag_entry_read_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint32_t value_32bit = 0; #endif if( key_bag_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key bag entry.", function ); return( -1 ); } if( key_bag_entry->data != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid key bag entry - data value already set.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_key_bag_entry_header_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: key bag entry header data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_key_bag_entry_header_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif if( memory_copy( key_bag_entry->identifier, ( (fsapfs_key_bag_entry_header_t *) data )->identifier, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy identifier.", function ); goto on_error; } byte_stream_copy_to_uint16_little_endian( ( (fsapfs_key_bag_entry_header_t *) data )->entry_type, key_bag_entry->type ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_key_bag_entry_header_t *) data )->data_size, key_bag_entry->data_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( libfsapfs_debug_print_guid_value( function, "identifier\t\t\t\t", ( (fsapfs_key_bag_entry_header_t *) data )->identifier, 16, LIBFGUID_ENDIAN_BIG, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print UUID value.", function ); goto on_error; } libcnotify_printf( "%s: entry type\t\t\t\t: %" PRIu16 "\n", function, key_bag_entry->type ); libcnotify_printf( "%s: data size\t\t\t\t: %" PRIu16 "\n", function, key_bag_entry->data_size ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_key_bag_entry_header_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( key_bag_entry->data_size > ( data_size - sizeof( fsapfs_key_bag_entry_header_t ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid entry data size value out of bounds.", function ); goto on_error; } key_bag_entry->data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * key_bag_entry->data_size ); if( key_bag_entry->data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key bag entry data.", function ); goto on_error; } if( memory_copy( key_bag_entry->data, &( data[ sizeof( fsapfs_key_bag_entry_header_t ) ] ), (size_t) key_bag_entry->data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy key bag entry data.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: key bag entry data:\n", function ); libcnotify_print_data( key_bag_entry->data, (size_t) key_bag_entry->data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif key_bag_entry->size = sizeof( fsapfs_key_bag_entry_header_t ) + key_bag_entry->data_size; return( 1 ); on_error: if( key_bag_entry->data != NULL ) { memory_free( key_bag_entry->data ); key_bag_entry->data = NULL; } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_io_handle.h0000664000175000017500000000365513426637446024150 0ustar00lordyestalordyesta00000000000000/* * Input/Output (IO) handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_IO_HANDLE_H ) #define _LIBFSAPFS_IO_HANDLE_H #include #include #include "libfsapfs_libcerror.h" #include "libfsapfs_profiler.h" #if defined( __cplusplus ) extern "C" { #endif extern const char fsapfs_container_signature[ 4 ]; extern const char fsapfs_volume_signature[ 4 ]; typedef struct libfsapfs_io_handle libfsapfs_io_handle_t; struct libfsapfs_io_handle { /* The bytes per sector */ uint16_t bytes_per_sector; /* The block size */ uint32_t block_size; /* The container size */ size64_t container_size; #if defined( HAVE_PROFILER ) /* The profiler */ libfsapfs_profiler_t *profiler; #endif /* Value to indicate if abort was signalled */ int abort; }; int libfsapfs_io_handle_initialize( libfsapfs_io_handle_t **io_handle, libcerror_error_t **error ); int libfsapfs_io_handle_free( libfsapfs_io_handle_t **io_handle, libcerror_error_t **error ); int libfsapfs_io_handle_clear( libfsapfs_io_handle_t *io_handle, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_IO_HANDLE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_profiler.h0000664000175000017500000000407013426637446024040 0ustar00lordyestalordyesta00000000000000/* * The profiler functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_PROFILER_H ) #define _LIBFSAPFS_PROFILER_H #include #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_PROFILER ) typedef struct libfsapfs_profiler libfsapfs_profiler_t; struct libfsapfs_profiler { /* The output stream */ FILE *output_stream; }; int libfsapfs_profiler_initialize( libfsapfs_profiler_t **profiler, libcerror_error_t **error ); int libfsapfs_profiler_free( libfsapfs_profiler_t **profiler, libcerror_error_t **error ); int libfsapfs_profiler_open( libfsapfs_profiler_t *profiler, const char *filename, libcerror_error_t **error ); int libfsapfs_profiler_close( libfsapfs_profiler_t *profiler, libcerror_error_t **error ); int libfsapfs_profiler_start_timing( libfsapfs_profiler_t *profiler, int64_t *start_timestamp, libcerror_error_t **error ); int libfsapfs_profiler_stop_timing( libfsapfs_profiler_t *profiler, int64_t start_timestamp, const char *name, off64_t offset, size64_t size, libcerror_error_t **error ); #endif /* defined( HAVE_PROFILER ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_PROFILER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_checkpoint_map.c0000664000175000017500000003526413426637446025206 0ustar00lordyestalordyesta00000000000000/* * The checkpoint map functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_checkpoint_map.h" #include "libfsapfs_checkpoint_map_entry.h" #include "libfsapfs_checksum.h" #include "libfsapfs_debug.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_checkpoint_map.h" /* Creates a checkpoint map * Make sure the value checkpoint_map is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_checkpoint_map_initialize( libfsapfs_checkpoint_map_t **checkpoint_map, libcerror_error_t **error ) { static char *function = "libfsapfs_checkpoint_map_initialize"; if( checkpoint_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map.", function ); return( -1 ); } if( *checkpoint_map != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid checkpoint map value already set.", function ); return( -1 ); } *checkpoint_map = memory_allocate_structure( libfsapfs_checkpoint_map_t ); if( *checkpoint_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create checkpoint map.", function ); goto on_error; } if( memory_set( *checkpoint_map, 0, sizeof( libfsapfs_checkpoint_map_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear checkpoint map.", function ); memory_free( *checkpoint_map ); *checkpoint_map = NULL; return( -1 ); } if( libcdata_array_initialize( &( ( *checkpoint_map )->entries_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create entries array.", function ); goto on_error; } return( 1 ); on_error: if( *checkpoint_map != NULL ) { memory_free( *checkpoint_map ); *checkpoint_map = NULL; } return( -1 ); } /* Frees a checkpoint map * Returns 1 if successful or -1 on error */ int libfsapfs_checkpoint_map_free( libfsapfs_checkpoint_map_t **checkpoint_map, libcerror_error_t **error ) { static char *function = "libfsapfs_checkpoint_map_free"; int result = 1; if( checkpoint_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map.", function ); return( -1 ); } if( *checkpoint_map != NULL ) { if( libcdata_array_free( &( ( *checkpoint_map )->entries_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_checkpoint_map_entry_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free entries array.", function ); result = -1; } memory_free( *checkpoint_map ); *checkpoint_map = NULL; } return( result ); } /* Reads the checkpoint map * Returns 1 if successful or -1 on error */ int libfsapfs_checkpoint_map_read_file_io_handle( libfsapfs_checkpoint_map_t *checkpoint_map, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { uint8_t checkpoint_map_data[ 4096 ]; static char *function = "libfsapfs_checkpoint_map_read_file_io_handle"; ssize_t read_count = 0; if( checkpoint_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading checkpoint map at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek checkpoint map offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, (uint8_t *) &checkpoint_map_data, 4096, error ); if( read_count != (ssize_t) 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read checkpoint map data.", function ); return( -1 ); } if( libfsapfs_checkpoint_map_read_data( checkpoint_map, (uint8_t *) &checkpoint_map_data, 4096, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read checkpoint map data.", function ); return( -1 ); } return( 1 ); } /* Reads the checkpoint map * Returns 1 if successful or -1 on error */ int libfsapfs_checkpoint_map_read_data( libfsapfs_checkpoint_map_t *checkpoint_map, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { libfsapfs_checkpoint_map_entry_t *map_entry = NULL; static char *function = "libfsapfs_checkpoint_map_read_data"; size_t data_offset = 0; uint64_t calculated_checksum = 0; uint64_t stored_checksum = 0; uint32_t map_entry_index = 0; uint32_t number_of_map_entries = 0; uint32_t object_subtype = 0; uint32_t object_type = 0; int entry_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( checkpoint_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_checkpoint_map_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: checkpoint map data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_checkpoint_map_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_checkpoint_map_t *) data )->object_checksum, stored_checksum ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_t *) data )->object_type, object_type ); if( object_type != 0x4000000cUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); goto on_error; } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); goto on_error; } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_t *) data )->number_of_entries, number_of_map_entries ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, stored_checksum ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_checkpoint_map_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_checkpoint_map_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_t *) data )->flags, value_32bit ); libcnotify_printf( "%s: flags\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libfsapfs_debug_print_checkpoint_flags( value_32bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: number of entries\t\t\t: %" PRIu32 "\n", function, number_of_map_entries ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( libfsapfs_checksum_calculate_fletcher64( &calculated_checksum, &( data[ 8 ] ), data_size - 8, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to calculate Fletcher-64 checksum.", function ); goto on_error; } if( stored_checksum != calculated_checksum ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_INPUT, LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH, "%s: mismatch in checksum ( 0x%08" PRIx64 " != 0x%08" PRIx64 " ).\n", function, stored_checksum, calculated_checksum ); goto on_error; } data_offset = 40; if( number_of_map_entries > 101 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of map entries value out of bounds.", function ); goto on_error; } for( map_entry_index = 0; map_entry_index < number_of_map_entries; map_entry_index++ ) { if( libfsapfs_checkpoint_map_entry_initialize( &map_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create checkpoint map entry.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: entry: %" PRIu32 "\n", function, map_entry_index ); } #endif if( libfsapfs_checkpoint_map_entry_read_data( map_entry, &( data[ data_offset ] ), data_size - data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read checkpoint map entry: %" PRIu32 ".", function, map_entry_index ); goto on_error; } data_offset += sizeof( fsapfs_checkpoint_map_entry_t ); if( libcdata_array_append_entry( checkpoint_map->entries_array, &entry_index, (intptr_t *) map_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append map entry: %" PRIu32 " to array.", function, map_entry_index ); goto on_error; } map_entry = NULL; } return( 1 ); on_error: if( map_entry != NULL ) { libfsapfs_checkpoint_map_entry_free( &map_entry, NULL ); } return( -1 ); } /* Retrieves the physical address of a specific object identifier * Returns 1 if successful, 0 if no such value or -1 on error */ int libfsapfs_checkpoint_map_get_physical_address_by_object_identifier( libfsapfs_checkpoint_map_t *checkpoint_map, uint64_t object_identifier, uint64_t *physical_address, libcerror_error_t **error ) { libfsapfs_checkpoint_map_entry_t *map_entry = NULL; static char *function = "libfsapfs_checkpoint_map_get_physical_address_by_object_identifier"; int entry_index = 0; int number_of_entries = 0; if( checkpoint_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map.", function ); return( -1 ); } if( physical_address == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid physical address.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( checkpoint_map->entries_array, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); return( -1 ); } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libcdata_array_get_entry_by_index( checkpoint_map->entries_array, entry_index, (intptr_t **) &map_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from array.", function, entry_index ); return( -1 ); } if( map_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing entry: %d.", function, entry_index ); return( -1 ); } if( object_identifier == map_entry->object_identifier ) { *physical_address = map_entry->physical_address; return( 1 ); } map_entry = NULL; } return( 0 ); } libfsapfs-20190210/libfsapfs/libfsapfs_volume.h0000664000175000017500000002040513426637447023526 0ustar00lordyestalordyesta00000000000000/* * Volume functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_VOLUME_H ) #define _LIBFSAPFS_VOLUME_H #include #include #include "libfsapfs_container_data_handle.h" #include "libfsapfs_container_key_bag.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_extern.h" #include "libfsapfs_file_system_btree.h" #include "libfsapfs_file_system_data_handle.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcthreads.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_object_map_btree.h" #include "libfsapfs_snapshot_metadata_tree.h" #include "libfsapfs_volume_key_bag.h" #include "libfsapfs_volume_superblock.h" #include "libfsapfs_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_internal_volume libfsapfs_internal_volume_t; struct libfsapfs_internal_volume { /* The volume superblock */ libfsapfs_volume_superblock_t *superblock; /* The container key bag */ libfsapfs_container_key_bag_t *container_key_bag; /* The container data handle */ libfsapfs_container_data_handle_t *container_data_handle; /* The container data block vector */ libfdata_vector_t *container_data_block_vector; /* The object map B-tree */ libfsapfs_object_map_btree_t *object_map_btree; /* The snapshot metadata tree */ libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree; /* The volume key bag */ libfsapfs_volume_key_bag_t *key_bag; /* The encryption context */ libfsapfs_encryption_context_t *encryption_context; /* The file system data handle */ libfsapfs_file_system_data_handle_t *file_system_data_handle; /* The file system data block vector */ libfdata_vector_t *file_system_data_block_vector; /* The file system B-tree */ libfsapfs_file_system_btree_t *file_system_btree; /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* The file IO handle */ libbfio_handle_t *file_io_handle; /* Value to indicate if the file IO handle was created inside the library */ uint8_t file_io_handle_created_in_library; /* Value to indicate if the file IO handle was opened inside the library */ uint8_t file_io_handle_opened_in_library; /* Value to indicate if the volume is locked */ uint8_t is_locked; /* The user password */ uint8_t *user_password; /* The user password size */ size_t user_password_size; /* Value to indicate the user password is set */ uint8_t user_password_is_set; /* The recovery password */ uint8_t *recovery_password; /* The recovery password size */ size_t recovery_password_size; /* Value to indicate the recovery password is set */ uint8_t recovery_password_is_set; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; int libfsapfs_volume_initialize( libfsapfs_volume_t **volume, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, libfsapfs_container_key_bag_t *container_key_bag, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_free( libfsapfs_volume_t **volume, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_signal_abort( libfsapfs_volume_t *volume, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_open( libfsapfs_volume_t *volume, const char *filename, int access_flags, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_wide( libfsapfs_volume_t *volume, const wchar_t *filename, int access_flags, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_file_io_handle( libfsapfs_volume_t *volume, libbfio_handle_t *file_io_handle, int access_flags, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_close( libfsapfs_volume_t *volume, libcerror_error_t **error ); int libfsapfs_internal_volume_open_read( libfsapfs_internal_volume_t *internal_volume, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_internal_volume_unlock( libfsapfs_internal_volume_t *internal_volume, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_unlock( libfsapfs_volume_t *volume, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_size( libfsapfs_volume_t *volume, size64_t *size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_identifier( libfsapfs_volume_t *volume, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf8_name_size( libfsapfs_volume_t *volume, size_t *utf8_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf8_name( libfsapfs_volume_t *volume, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf16_name_size( libfsapfs_volume_t *volume, size_t *utf16_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_utf16_name( libfsapfs_volume_t *volume, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_is_locked( libfsapfs_volume_t *volume, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf8_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf16_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf8_recovery_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_set_utf16_recovery_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_next_file_entry_identifier( libfsapfs_volume_t *volume, uint64_t *identifier, libcerror_error_t **error ); int libfsapfs_internal_volume_get_file_system_btree( libfsapfs_internal_volume_t *internal_volume, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_identifier( libfsapfs_volume_t *volume, uint64_t identifier, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_root_directory( libfsapfs_volume_t *volume, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_utf8_path( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_volume_get_file_entry_by_utf16_path( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_VOLUME_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_name.c0000664000175000017500000105227313426637446023142 0ustar00lordyestalordyesta00000000000000/* * Name functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_WCTYPE_H ) #include #endif #include "libfsapfs_libcerror.h" #include "libfsapfs_libuna.h" #include "libfsapfs_name.h" uint32_t libfsapfs_name_case_folding_mappings_0x00000040[ 528 ] = { /* 0x00000040 */ 0x00000040, /* 0x00000041 */ 0x00000061, /* 0x00000042 */ 0x00000062, /* 0x00000043 */ 0x00000063, /* 0x00000044 */ 0x00000064, /* 0x00000045 */ 0x00000065, /* 0x00000046 */ 0x00000066, /* 0x00000047 */ 0x00000067, /* 0x00000048 */ 0x00000068, /* 0x00000049 */ 0x00000069, /* 0x0000004a */ 0x0000006a, /* 0x0000004b */ 0x0000006b, /* 0x0000004c */ 0x0000006c, /* 0x0000004d */ 0x0000006d, /* 0x0000004e */ 0x0000006e, /* 0x0000004f */ 0x0000006f, /* 0x00000050 */ 0x00000070, /* 0x00000051 */ 0x00000071, /* 0x00000052 */ 0x00000072, /* 0x00000053 */ 0x00000073, /* 0x00000054 */ 0x00000074, /* 0x00000055 */ 0x00000075, /* 0x00000056 */ 0x00000076, /* 0x00000057 */ 0x00000077, /* 0x00000058 */ 0x00000078, /* 0x00000059 */ 0x00000079, /* 0x0000005a */ 0x0000007a, /* 0x0000005b */ 0x0000005b, /* 0x0000005c */ 0x0000005c, /* 0x0000005d */ 0x0000005d, /* 0x0000005e */ 0x0000005e, /* 0x0000005f */ 0x0000005f, /* 0x00000060 */ 0x00000060, /* 0x00000061 */ 0x00000061, /* 0x00000062 */ 0x00000062, /* 0x00000063 */ 0x00000063, /* 0x00000064 */ 0x00000064, /* 0x00000065 */ 0x00000065, /* 0x00000066 */ 0x00000066, /* 0x00000067 */ 0x00000067, /* 0x00000068 */ 0x00000068, /* 0x00000069 */ 0x00000069, /* 0x0000006a */ 0x0000006a, /* 0x0000006b */ 0x0000006b, /* 0x0000006c */ 0x0000006c, /* 0x0000006d */ 0x0000006d, /* 0x0000006e */ 0x0000006e, /* 0x0000006f */ 0x0000006f, /* 0x00000070 */ 0x00000070, /* 0x00000071 */ 0x00000071, /* 0x00000072 */ 0x00000072, /* 0x00000073 */ 0x00000073, /* 0x00000074 */ 0x00000074, /* 0x00000075 */ 0x00000075, /* 0x00000076 */ 0x00000076, /* 0x00000077 */ 0x00000077, /* 0x00000078 */ 0x00000078, /* 0x00000079 */ 0x00000079, /* 0x0000007a */ 0x0000007a, /* 0x0000007b */ 0x0000007b, /* 0x0000007c */ 0x0000007c, /* 0x0000007d */ 0x0000007d, /* 0x0000007e */ 0x0000007e, /* 0x0000007f */ 0x0000007f, /* 0x00000080 */ 0x00000080, /* 0x00000081 */ 0x00000081, /* 0x00000082 */ 0x00000082, /* 0x00000083 */ 0x00000083, /* 0x00000084 */ 0x00000084, /* 0x00000085 */ 0x00000085, /* 0x00000086 */ 0x00000086, /* 0x00000087 */ 0x00000087, /* 0x00000088 */ 0x00000088, /* 0x00000089 */ 0x00000089, /* 0x0000008a */ 0x0000008a, /* 0x0000008b */ 0x0000008b, /* 0x0000008c */ 0x0000008c, /* 0x0000008d */ 0x0000008d, /* 0x0000008e */ 0x0000008e, /* 0x0000008f */ 0x0000008f, /* 0x00000090 */ 0x00000090, /* 0x00000091 */ 0x00000091, /* 0x00000092 */ 0x00000092, /* 0x00000093 */ 0x00000093, /* 0x00000094 */ 0x00000094, /* 0x00000095 */ 0x00000095, /* 0x00000096 */ 0x00000096, /* 0x00000097 */ 0x00000097, /* 0x00000098 */ 0x00000098, /* 0x00000099 */ 0x00000099, /* 0x0000009a */ 0x0000009a, /* 0x0000009b */ 0x0000009b, /* 0x0000009c */ 0x0000009c, /* 0x0000009d */ 0x0000009d, /* 0x0000009e */ 0x0000009e, /* 0x0000009f */ 0x0000009f, /* 0x000000a0 */ 0x000000a0, /* 0x000000a1 */ 0x000000a1, /* 0x000000a2 */ 0x000000a2, /* 0x000000a3 */ 0x000000a3, /* 0x000000a4 */ 0x000000a4, /* 0x000000a5 */ 0x000000a5, /* 0x000000a6 */ 0x000000a6, /* 0x000000a7 */ 0x000000a7, /* 0x000000a8 */ 0x000000a8, /* 0x000000a9 */ 0x000000a9, /* 0x000000aa */ 0x000000aa, /* 0x000000ab */ 0x000000ab, /* 0x000000ac */ 0x000000ac, /* 0x000000ad */ 0x000000ad, /* 0x000000ae */ 0x000000ae, /* 0x000000af */ 0x000000af, /* 0x000000b0 */ 0x000000b0, /* 0x000000b1 */ 0x000000b1, /* 0x000000b2 */ 0x000000b2, /* 0x000000b3 */ 0x000000b3, /* 0x000000b4 */ 0x000000b4, /* 0x000000b5 */ 0x000003bc, /* 0x000000b6 */ 0x000000b6, /* 0x000000b7 */ 0x000000b7, /* 0x000000b8 */ 0x000000b8, /* 0x000000b9 */ 0x000000b9, /* 0x000000ba */ 0x000000ba, /* 0x000000bb */ 0x000000bb, /* 0x000000bc */ 0x000000bc, /* 0x000000bd */ 0x000000bd, /* 0x000000be */ 0x000000be, /* 0x000000bf */ 0x000000bf, /* 0x000000c0 */ 0x000000e0, /* 0x000000c1 */ 0x000000e1, /* 0x000000c2 */ 0x000000e2, /* 0x000000c3 */ 0x000000e3, /* 0x000000c4 */ 0x000000e4, /* 0x000000c5 */ 0x000000e5, /* 0x000000c6 */ 0x000000e6, /* 0x000000c7 */ 0x000000e7, /* 0x000000c8 */ 0x000000e8, /* 0x000000c9 */ 0x000000e9, /* 0x000000ca */ 0x000000ea, /* 0x000000cb */ 0x000000eb, /* 0x000000cc */ 0x000000ec, /* 0x000000cd */ 0x000000ed, /* 0x000000ce */ 0x000000ee, /* 0x000000cf */ 0x000000ef, /* 0x000000d0 */ 0x000000f0, /* 0x000000d1 */ 0x000000f1, /* 0x000000d2 */ 0x000000f2, /* 0x000000d3 */ 0x000000f3, /* 0x000000d4 */ 0x000000f4, /* 0x000000d5 */ 0x000000f5, /* 0x000000d6 */ 0x000000f6, /* 0x000000d7 */ 0x000000d7, /* 0x000000d8 */ 0x000000f8, /* 0x000000d9 */ 0x000000f9, /* 0x000000da */ 0x000000fa, /* 0x000000db */ 0x000000fb, /* 0x000000dc */ 0x000000fc, /* 0x000000dd */ 0x000000fd, /* 0x000000de */ 0x000000fe, /* 0x000000df */ 0x000000df, /* 0x000000e0 */ 0x000000e0, /* 0x000000e1 */ 0x000000e1, /* 0x000000e2 */ 0x000000e2, /* 0x000000e3 */ 0x000000e3, /* 0x000000e4 */ 0x000000e4, /* 0x000000e5 */ 0x000000e5, /* 0x000000e6 */ 0x000000e6, /* 0x000000e7 */ 0x000000e7, /* 0x000000e8 */ 0x000000e8, /* 0x000000e9 */ 0x000000e9, /* 0x000000ea */ 0x000000ea, /* 0x000000eb */ 0x000000eb, /* 0x000000ec */ 0x000000ec, /* 0x000000ed */ 0x000000ed, /* 0x000000ee */ 0x000000ee, /* 0x000000ef */ 0x000000ef, /* 0x000000f0 */ 0x000000f0, /* 0x000000f1 */ 0x000000f1, /* 0x000000f2 */ 0x000000f2, /* 0x000000f3 */ 0x000000f3, /* 0x000000f4 */ 0x000000f4, /* 0x000000f5 */ 0x000000f5, /* 0x000000f6 */ 0x000000f6, /* 0x000000f7 */ 0x000000f7, /* 0x000000f8 */ 0x000000f8, /* 0x000000f9 */ 0x000000f9, /* 0x000000fa */ 0x000000fa, /* 0x000000fb */ 0x000000fb, /* 0x000000fc */ 0x000000fc, /* 0x000000fd */ 0x000000fd, /* 0x000000fe */ 0x000000fe, /* 0x000000ff */ 0x000000ff, /* 0x00000100 */ 0x00000101, /* 0x00000101 */ 0x00000101, /* 0x00000102 */ 0x00000103, /* 0x00000103 */ 0x00000103, /* 0x00000104 */ 0x00000105, /* 0x00000105 */ 0x00000105, /* 0x00000106 */ 0x00000107, /* 0x00000107 */ 0x00000107, /* 0x00000108 */ 0x00000109, /* 0x00000109 */ 0x00000109, /* 0x0000010a */ 0x0000010b, /* 0x0000010b */ 0x0000010b, /* 0x0000010c */ 0x0000010d, /* 0x0000010d */ 0x0000010d, /* 0x0000010e */ 0x0000010f, /* 0x0000010f */ 0x0000010f, /* 0x00000110 */ 0x00000111, /* 0x00000111 */ 0x00000111, /* 0x00000112 */ 0x00000113, /* 0x00000113 */ 0x00000113, /* 0x00000114 */ 0x00000115, /* 0x00000115 */ 0x00000115, /* 0x00000116 */ 0x00000117, /* 0x00000117 */ 0x00000117, /* 0x00000118 */ 0x00000119, /* 0x00000119 */ 0x00000119, /* 0x0000011a */ 0x0000011b, /* 0x0000011b */ 0x0000011b, /* 0x0000011c */ 0x0000011d, /* 0x0000011d */ 0x0000011d, /* 0x0000011e */ 0x0000011f, /* 0x0000011f */ 0x0000011f, /* 0x00000120 */ 0x00000121, /* 0x00000121 */ 0x00000121, /* 0x00000122 */ 0x00000123, /* 0x00000123 */ 0x00000123, /* 0x00000124 */ 0x00000125, /* 0x00000125 */ 0x00000125, /* 0x00000126 */ 0x00000127, /* 0x00000127 */ 0x00000127, /* 0x00000128 */ 0x00000129, /* 0x00000129 */ 0x00000129, /* 0x0000012a */ 0x0000012b, /* 0x0000012b */ 0x0000012b, /* 0x0000012c */ 0x0000012d, /* 0x0000012d */ 0x0000012d, /* 0x0000012e */ 0x0000012f, /* 0x0000012f */ 0x0000012f, /* 0x00000130 */ 0x00000130, /* 0x00000131 */ 0x00000131, /* 0x00000132 */ 0x00000133, /* 0x00000133 */ 0x00000133, /* 0x00000134 */ 0x00000135, /* 0x00000135 */ 0x00000135, /* 0x00000136 */ 0x00000137, /* 0x00000137 */ 0x00000137, /* 0x00000138 */ 0x00000138, /* 0x00000139 */ 0x0000013a, /* 0x0000013a */ 0x0000013a, /* 0x0000013b */ 0x0000013c, /* 0x0000013c */ 0x0000013c, /* 0x0000013d */ 0x0000013e, /* 0x0000013e */ 0x0000013e, /* 0x0000013f */ 0x00000140, /* 0x00000140 */ 0x00000140, /* 0x00000141 */ 0x00000142, /* 0x00000142 */ 0x00000142, /* 0x00000143 */ 0x00000144, /* 0x00000144 */ 0x00000144, /* 0x00000145 */ 0x00000146, /* 0x00000146 */ 0x00000146, /* 0x00000147 */ 0x00000148, /* 0x00000148 */ 0x00000148, /* 0x00000149 */ 0x00000149, /* 0x0000014a */ 0x0000014b, /* 0x0000014b */ 0x0000014b, /* 0x0000014c */ 0x0000014d, /* 0x0000014d */ 0x0000014d, /* 0x0000014e */ 0x0000014f, /* 0x0000014f */ 0x0000014f, /* 0x00000150 */ 0x00000151, /* 0x00000151 */ 0x00000151, /* 0x00000152 */ 0x00000153, /* 0x00000153 */ 0x00000153, /* 0x00000154 */ 0x00000155, /* 0x00000155 */ 0x00000155, /* 0x00000156 */ 0x00000157, /* 0x00000157 */ 0x00000157, /* 0x00000158 */ 0x00000159, /* 0x00000159 */ 0x00000159, /* 0x0000015a */ 0x0000015b, /* 0x0000015b */ 0x0000015b, /* 0x0000015c */ 0x0000015d, /* 0x0000015d */ 0x0000015d, /* 0x0000015e */ 0x0000015f, /* 0x0000015f */ 0x0000015f, /* 0x00000160 */ 0x00000161, /* 0x00000161 */ 0x00000161, /* 0x00000162 */ 0x00000163, /* 0x00000163 */ 0x00000163, /* 0x00000164 */ 0x00000165, /* 0x00000165 */ 0x00000165, /* 0x00000166 */ 0x00000167, /* 0x00000167 */ 0x00000167, /* 0x00000168 */ 0x00000169, /* 0x00000169 */ 0x00000169, /* 0x0000016a */ 0x0000016b, /* 0x0000016b */ 0x0000016b, /* 0x0000016c */ 0x0000016d, /* 0x0000016d */ 0x0000016d, /* 0x0000016e */ 0x0000016f, /* 0x0000016f */ 0x0000016f, /* 0x00000170 */ 0x00000171, /* 0x00000171 */ 0x00000171, /* 0x00000172 */ 0x00000173, /* 0x00000173 */ 0x00000173, /* 0x00000174 */ 0x00000175, /* 0x00000175 */ 0x00000175, /* 0x00000176 */ 0x00000177, /* 0x00000177 */ 0x00000177, /* 0x00000178 */ 0x000000ff, /* 0x00000179 */ 0x0000017a, /* 0x0000017a */ 0x0000017a, /* 0x0000017b */ 0x0000017c, /* 0x0000017c */ 0x0000017c, /* 0x0000017d */ 0x0000017e, /* 0x0000017e */ 0x0000017e, /* 0x0000017f */ 0x00000073, /* 0x00000180 */ 0x00000180, /* 0x00000181 */ 0x00000253, /* 0x00000182 */ 0x00000183, /* 0x00000183 */ 0x00000183, /* 0x00000184 */ 0x00000185, /* 0x00000185 */ 0x00000185, /* 0x00000186 */ 0x00000254, /* 0x00000187 */ 0x00000188, /* 0x00000188 */ 0x00000188, /* 0x00000189 */ 0x00000256, /* 0x0000018a */ 0x00000257, /* 0x0000018b */ 0x0000018c, /* 0x0000018c */ 0x0000018c, /* 0x0000018d */ 0x0000018d, /* 0x0000018e */ 0x000001dd, /* 0x0000018f */ 0x00000259, /* 0x00000190 */ 0x0000025b, /* 0x00000191 */ 0x00000192, /* 0x00000192 */ 0x00000192, /* 0x00000193 */ 0x00000260, /* 0x00000194 */ 0x00000263, /* 0x00000195 */ 0x00000195, /* 0x00000196 */ 0x00000269, /* 0x00000197 */ 0x00000268, /* 0x00000198 */ 0x00000199, /* 0x00000199 */ 0x00000199, /* 0x0000019a */ 0x0000019a, /* 0x0000019b */ 0x0000019b, /* 0x0000019c */ 0x0000026f, /* 0x0000019d */ 0x00000272, /* 0x0000019e */ 0x0000019e, /* 0x0000019f */ 0x00000275, /* 0x000001a0 */ 0x000001a1, /* 0x000001a1 */ 0x000001a1, /* 0x000001a2 */ 0x000001a3, /* 0x000001a3 */ 0x000001a3, /* 0x000001a4 */ 0x000001a5, /* 0x000001a5 */ 0x000001a5, /* 0x000001a6 */ 0x00000280, /* 0x000001a7 */ 0x000001a8, /* 0x000001a8 */ 0x000001a8, /* 0x000001a9 */ 0x00000283, /* 0x000001aa */ 0x000001aa, /* 0x000001ab */ 0x000001ab, /* 0x000001ac */ 0x000001ad, /* 0x000001ad */ 0x000001ad, /* 0x000001ae */ 0x00000288, /* 0x000001af */ 0x000001b0, /* 0x000001b0 */ 0x000001b0, /* 0x000001b1 */ 0x0000028a, /* 0x000001b2 */ 0x0000028b, /* 0x000001b3 */ 0x000001b4, /* 0x000001b4 */ 0x000001b4, /* 0x000001b5 */ 0x000001b6, /* 0x000001b6 */ 0x000001b6, /* 0x000001b7 */ 0x00000292, /* 0x000001b8 */ 0x000001b9, /* 0x000001b9 */ 0x000001b9, /* 0x000001ba */ 0x000001ba, /* 0x000001bb */ 0x000001bb, /* 0x000001bc */ 0x000001bd, /* 0x000001bd */ 0x000001bd, /* 0x000001be */ 0x000001be, /* 0x000001bf */ 0x000001bf, /* 0x000001c0 */ 0x000001c0, /* 0x000001c1 */ 0x000001c1, /* 0x000001c2 */ 0x000001c2, /* 0x000001c3 */ 0x000001c3, /* 0x000001c4 */ 0x000001c6, /* 0x000001c5 */ 0x000001c6, /* 0x000001c6 */ 0x000001c6, /* 0x000001c7 */ 0x000001c9, /* 0x000001c8 */ 0x000001c9, /* 0x000001c9 */ 0x000001c9, /* 0x000001ca */ 0x000001cc, /* 0x000001cb */ 0x000001cc, /* 0x000001cc */ 0x000001cc, /* 0x000001cd */ 0x000001ce, /* 0x000001ce */ 0x000001ce, /* 0x000001cf */ 0x000001d0, /* 0x000001d0 */ 0x000001d0, /* 0x000001d1 */ 0x000001d2, /* 0x000001d2 */ 0x000001d2, /* 0x000001d3 */ 0x000001d4, /* 0x000001d4 */ 0x000001d4, /* 0x000001d5 */ 0x000001d6, /* 0x000001d6 */ 0x000001d6, /* 0x000001d7 */ 0x000001d8, /* 0x000001d8 */ 0x000001d8, /* 0x000001d9 */ 0x000001da, /* 0x000001da */ 0x000001da, /* 0x000001db */ 0x000001dc, /* 0x000001dc */ 0x000001dc, /* 0x000001dd */ 0x000001dd, /* 0x000001de */ 0x000001df, /* 0x000001df */ 0x000001df, /* 0x000001e0 */ 0x000001e1, /* 0x000001e1 */ 0x000001e1, /* 0x000001e2 */ 0x000001e3, /* 0x000001e3 */ 0x000001e3, /* 0x000001e4 */ 0x000001e5, /* 0x000001e5 */ 0x000001e5, /* 0x000001e6 */ 0x000001e7, /* 0x000001e7 */ 0x000001e7, /* 0x000001e8 */ 0x000001e9, /* 0x000001e9 */ 0x000001e9, /* 0x000001ea */ 0x000001eb, /* 0x000001eb */ 0x000001eb, /* 0x000001ec */ 0x000001ed, /* 0x000001ed */ 0x000001ed, /* 0x000001ee */ 0x000001ef, /* 0x000001ef */ 0x000001ef, /* 0x000001f0 */ 0x000001f0, /* 0x000001f1 */ 0x000001f3, /* 0x000001f2 */ 0x000001f3, /* 0x000001f3 */ 0x000001f3, /* 0x000001f4 */ 0x000001f5, /* 0x000001f5 */ 0x000001f5, /* 0x000001f6 */ 0x00000195, /* 0x000001f7 */ 0x000001bf, /* 0x000001f8 */ 0x000001f9, /* 0x000001f9 */ 0x000001f9, /* 0x000001fa */ 0x000001fb, /* 0x000001fb */ 0x000001fb, /* 0x000001fc */ 0x000001fd, /* 0x000001fd */ 0x000001fd, /* 0x000001fe */ 0x000001ff, /* 0x000001ff */ 0x000001ff, /* 0x00000200 */ 0x00000201, /* 0x00000201 */ 0x00000201, /* 0x00000202 */ 0x00000203, /* 0x00000203 */ 0x00000203, /* 0x00000204 */ 0x00000205, /* 0x00000205 */ 0x00000205, /* 0x00000206 */ 0x00000207, /* 0x00000207 */ 0x00000207, /* 0x00000208 */ 0x00000209, /* 0x00000209 */ 0x00000209, /* 0x0000020a */ 0x0000020b, /* 0x0000020b */ 0x0000020b, /* 0x0000020c */ 0x0000020d, /* 0x0000020d */ 0x0000020d, /* 0x0000020e */ 0x0000020f, /* 0x0000020f */ 0x0000020f, /* 0x00000210 */ 0x00000211, /* 0x00000211 */ 0x00000211, /* 0x00000212 */ 0x00000213, /* 0x00000213 */ 0x00000213, /* 0x00000214 */ 0x00000215, /* 0x00000215 */ 0x00000215, /* 0x00000216 */ 0x00000217, /* 0x00000217 */ 0x00000217, /* 0x00000218 */ 0x00000219, /* 0x00000219 */ 0x00000219, /* 0x0000021a */ 0x0000021b, /* 0x0000021b */ 0x0000021b, /* 0x0000021c */ 0x0000021d, /* 0x0000021d */ 0x0000021d, /* 0x0000021e */ 0x0000021f, /* 0x0000021f */ 0x0000021f, /* 0x00000220 */ 0x0000019e, /* 0x00000221 */ 0x00000221, /* 0x00000222 */ 0x00000223, /* 0x00000223 */ 0x00000223, /* 0x00000224 */ 0x00000225, /* 0x00000225 */ 0x00000225, /* 0x00000226 */ 0x00000227, /* 0x00000227 */ 0x00000227, /* 0x00000228 */ 0x00000229, /* 0x00000229 */ 0x00000229, /* 0x0000022a */ 0x0000022b, /* 0x0000022b */ 0x0000022b, /* 0x0000022c */ 0x0000022d, /* 0x0000022d */ 0x0000022d, /* 0x0000022e */ 0x0000022f, /* 0x0000022f */ 0x0000022f, /* 0x00000230 */ 0x00000231, /* 0x00000231 */ 0x00000231, /* 0x00000232 */ 0x00000233, /* 0x00000233 */ 0x00000233, /* 0x00000234 */ 0x00000234, /* 0x00000235 */ 0x00000235, /* 0x00000236 */ 0x00000236, /* 0x00000237 */ 0x00000237, /* 0x00000238 */ 0x00000238, /* 0x00000239 */ 0x00000239, /* 0x0000023a */ 0x00002c65, /* 0x0000023b */ 0x0000023c, /* 0x0000023c */ 0x0000023c, /* 0x0000023d */ 0x0000019a, /* 0x0000023e */ 0x00002c66, /* 0x0000023f */ 0x0000023f, /* 0x00000240 */ 0x00000240, /* 0x00000241 */ 0x00000242, /* 0x00000242 */ 0x00000242, /* 0x00000243 */ 0x00000180, /* 0x00000244 */ 0x00000289, /* 0x00000245 */ 0x0000028c, /* 0x00000246 */ 0x00000247, /* 0x00000247 */ 0x00000247, /* 0x00000248 */ 0x00000249, /* 0x00000249 */ 0x00000249, /* 0x0000024a */ 0x0000024b, /* 0x0000024b */ 0x0000024b, /* 0x0000024c */ 0x0000024d, /* 0x0000024d */ 0x0000024d, /* 0x0000024e */ 0x0000024f, /* 0x0000024f */ 0x0000024f }; uint32_t libfsapfs_name_case_folding_mappings_0x00000340[ 536 ] = { /* 0x00000340 */ 0x00000340, /* 0x00000341 */ 0x00000341, /* 0x00000342 */ 0x00000342, /* 0x00000343 */ 0x00000343, /* 0x00000344 */ 0x00000344, /* 0x00000345 */ 0x000003b9, /* 0x00000346 */ 0x00000346, /* 0x00000347 */ 0x00000347, /* 0x00000348 */ 0x00000348, /* 0x00000349 */ 0x00000349, /* 0x0000034a */ 0x0000034a, /* 0x0000034b */ 0x0000034b, /* 0x0000034c */ 0x0000034c, /* 0x0000034d */ 0x0000034d, /* 0x0000034e */ 0x0000034e, /* 0x0000034f */ 0x0000034f, /* 0x00000350 */ 0x00000350, /* 0x00000351 */ 0x00000351, /* 0x00000352 */ 0x00000352, /* 0x00000353 */ 0x00000353, /* 0x00000354 */ 0x00000354, /* 0x00000355 */ 0x00000355, /* 0x00000356 */ 0x00000356, /* 0x00000357 */ 0x00000357, /* 0x00000358 */ 0x00000358, /* 0x00000359 */ 0x00000359, /* 0x0000035a */ 0x0000035a, /* 0x0000035b */ 0x0000035b, /* 0x0000035c */ 0x0000035c, /* 0x0000035d */ 0x0000035d, /* 0x0000035e */ 0x0000035e, /* 0x0000035f */ 0x0000035f, /* 0x00000360 */ 0x00000360, /* 0x00000361 */ 0x00000361, /* 0x00000362 */ 0x00000362, /* 0x00000363 */ 0x00000363, /* 0x00000364 */ 0x00000364, /* 0x00000365 */ 0x00000365, /* 0x00000366 */ 0x00000366, /* 0x00000367 */ 0x00000367, /* 0x00000368 */ 0x00000368, /* 0x00000369 */ 0x00000369, /* 0x0000036a */ 0x0000036a, /* 0x0000036b */ 0x0000036b, /* 0x0000036c */ 0x0000036c, /* 0x0000036d */ 0x0000036d, /* 0x0000036e */ 0x0000036e, /* 0x0000036f */ 0x0000036f, /* 0x00000370 */ 0x00000371, /* 0x00000371 */ 0x00000371, /* 0x00000372 */ 0x00000373, /* 0x00000373 */ 0x00000373, /* 0x00000374 */ 0x00000374, /* 0x00000375 */ 0x00000375, /* 0x00000376 */ 0x00000377, /* 0x00000377 */ 0x00000377, /* 0x00000378 */ 0x00000378, /* 0x00000379 */ 0x00000379, /* 0x0000037a */ 0x0000037a, /* 0x0000037b */ 0x0000037b, /* 0x0000037c */ 0x0000037c, /* 0x0000037d */ 0x0000037d, /* 0x0000037e */ 0x0000037e, /* 0x0000037f */ 0x000003f3, /* 0x00000380 */ 0x00000380, /* 0x00000381 */ 0x00000381, /* 0x00000382 */ 0x00000382, /* 0x00000383 */ 0x00000383, /* 0x00000384 */ 0x00000384, /* 0x00000385 */ 0x00000385, /* 0x00000386 */ 0x000003ac, /* 0x00000387 */ 0x00000387, /* 0x00000388 */ 0x000003ad, /* 0x00000389 */ 0x000003ae, /* 0x0000038a */ 0x000003af, /* 0x0000038b */ 0x0000038b, /* 0x0000038c */ 0x000003cc, /* 0x0000038d */ 0x0000038d, /* 0x0000038e */ 0x000003cd, /* 0x0000038f */ 0x000003ce, /* 0x00000390 */ 0x00000390, /* 0x00000391 */ 0x000003b1, /* 0x00000392 */ 0x000003b2, /* 0x00000393 */ 0x000003b3, /* 0x00000394 */ 0x000003b4, /* 0x00000395 */ 0x000003b5, /* 0x00000396 */ 0x000003b6, /* 0x00000397 */ 0x000003b7, /* 0x00000398 */ 0x000003b8, /* 0x00000399 */ 0x000003b9, /* 0x0000039a */ 0x000003ba, /* 0x0000039b */ 0x000003bb, /* 0x0000039c */ 0x000003bc, /* 0x0000039d */ 0x000003bd, /* 0x0000039e */ 0x000003be, /* 0x0000039f */ 0x000003bf, /* 0x000003a0 */ 0x000003c0, /* 0x000003a1 */ 0x000003c1, /* 0x000003a2 */ 0x000003a2, /* 0x000003a3 */ 0x000003c3, /* 0x000003a4 */ 0x000003c4, /* 0x000003a5 */ 0x000003c5, /* 0x000003a6 */ 0x000003c6, /* 0x000003a7 */ 0x000003c7, /* 0x000003a8 */ 0x000003c8, /* 0x000003a9 */ 0x000003c9, /* 0x000003aa */ 0x000003ca, /* 0x000003ab */ 0x000003cb, /* 0x000003ac */ 0x000003ac, /* 0x000003ad */ 0x000003ad, /* 0x000003ae */ 0x000003ae, /* 0x000003af */ 0x000003af, /* 0x000003b0 */ 0x000003b0, /* 0x000003b1 */ 0x000003b1, /* 0x000003b2 */ 0x000003b2, /* 0x000003b3 */ 0x000003b3, /* 0x000003b4 */ 0x000003b4, /* 0x000003b5 */ 0x000003b5, /* 0x000003b6 */ 0x000003b6, /* 0x000003b7 */ 0x000003b7, /* 0x000003b8 */ 0x000003b8, /* 0x000003b9 */ 0x000003b9, /* 0x000003ba */ 0x000003ba, /* 0x000003bb */ 0x000003bb, /* 0x000003bc */ 0x000003bc, /* 0x000003bd */ 0x000003bd, /* 0x000003be */ 0x000003be, /* 0x000003bf */ 0x000003bf, /* 0x000003c0 */ 0x000003c0, /* 0x000003c1 */ 0x000003c1, /* 0x000003c2 */ 0x000003c3, /* 0x000003c3 */ 0x000003c3, /* 0x000003c4 */ 0x000003c4, /* 0x000003c5 */ 0x000003c5, /* 0x000003c6 */ 0x000003c6, /* 0x000003c7 */ 0x000003c7, /* 0x000003c8 */ 0x000003c8, /* 0x000003c9 */ 0x000003c9, /* 0x000003ca */ 0x000003ca, /* 0x000003cb */ 0x000003cb, /* 0x000003cc */ 0x000003cc, /* 0x000003cd */ 0x000003cd, /* 0x000003ce */ 0x000003ce, /* 0x000003cf */ 0x000003d7, /* 0x000003d0 */ 0x000003b2, /* 0x000003d1 */ 0x000003b8, /* 0x000003d2 */ 0x000003d2, /* 0x000003d3 */ 0x000003d3, /* 0x000003d4 */ 0x000003d4, /* 0x000003d5 */ 0x000003c6, /* 0x000003d6 */ 0x000003c0, /* 0x000003d7 */ 0x000003d7, /* 0x000003d8 */ 0x000003d9, /* 0x000003d9 */ 0x000003d9, /* 0x000003da */ 0x000003db, /* 0x000003db */ 0x000003db, /* 0x000003dc */ 0x000003dd, /* 0x000003dd */ 0x000003dd, /* 0x000003de */ 0x000003df, /* 0x000003df */ 0x000003df, /* 0x000003e0 */ 0x000003e1, /* 0x000003e1 */ 0x000003e1, /* 0x000003e2 */ 0x000003e3, /* 0x000003e3 */ 0x000003e3, /* 0x000003e4 */ 0x000003e5, /* 0x000003e5 */ 0x000003e5, /* 0x000003e6 */ 0x000003e7, /* 0x000003e7 */ 0x000003e7, /* 0x000003e8 */ 0x000003e9, /* 0x000003e9 */ 0x000003e9, /* 0x000003ea */ 0x000003eb, /* 0x000003eb */ 0x000003eb, /* 0x000003ec */ 0x000003ed, /* 0x000003ed */ 0x000003ed, /* 0x000003ee */ 0x000003ef, /* 0x000003ef */ 0x000003ef, /* 0x000003f0 */ 0x000003ba, /* 0x000003f1 */ 0x000003c1, /* 0x000003f2 */ 0x000003f2, /* 0x000003f3 */ 0x000003f3, /* 0x000003f4 */ 0x000003b8, /* 0x000003f5 */ 0x000003b5, /* 0x000003f6 */ 0x000003f6, /* 0x000003f7 */ 0x000003f8, /* 0x000003f8 */ 0x000003f8, /* 0x000003f9 */ 0x000003f2, /* 0x000003fa */ 0x000003fb, /* 0x000003fb */ 0x000003fb, /* 0x000003fc */ 0x000003fc, /* 0x000003fd */ 0x0000037b, /* 0x000003fe */ 0x0000037c, /* 0x000003ff */ 0x0000037d, /* 0x00000400 */ 0x00000450, /* 0x00000401 */ 0x00000451, /* 0x00000402 */ 0x00000452, /* 0x00000403 */ 0x00000453, /* 0x00000404 */ 0x00000454, /* 0x00000405 */ 0x00000455, /* 0x00000406 */ 0x00000456, /* 0x00000407 */ 0x00000457, /* 0x00000408 */ 0x00000458, /* 0x00000409 */ 0x00000459, /* 0x0000040a */ 0x0000045a, /* 0x0000040b */ 0x0000045b, /* 0x0000040c */ 0x0000045c, /* 0x0000040d */ 0x0000045d, /* 0x0000040e */ 0x0000045e, /* 0x0000040f */ 0x0000045f, /* 0x00000410 */ 0x00000430, /* 0x00000411 */ 0x00000431, /* 0x00000412 */ 0x00000432, /* 0x00000413 */ 0x00000433, /* 0x00000414 */ 0x00000434, /* 0x00000415 */ 0x00000435, /* 0x00000416 */ 0x00000436, /* 0x00000417 */ 0x00000437, /* 0x00000418 */ 0x00000438, /* 0x00000419 */ 0x00000439, /* 0x0000041a */ 0x0000043a, /* 0x0000041b */ 0x0000043b, /* 0x0000041c */ 0x0000043c, /* 0x0000041d */ 0x0000043d, /* 0x0000041e */ 0x0000043e, /* 0x0000041f */ 0x0000043f, /* 0x00000420 */ 0x00000440, /* 0x00000421 */ 0x00000441, /* 0x00000422 */ 0x00000442, /* 0x00000423 */ 0x00000443, /* 0x00000424 */ 0x00000444, /* 0x00000425 */ 0x00000445, /* 0x00000426 */ 0x00000446, /* 0x00000427 */ 0x00000447, /* 0x00000428 */ 0x00000448, /* 0x00000429 */ 0x00000449, /* 0x0000042a */ 0x0000044a, /* 0x0000042b */ 0x0000044b, /* 0x0000042c */ 0x0000044c, /* 0x0000042d */ 0x0000044d, /* 0x0000042e */ 0x0000044e, /* 0x0000042f */ 0x0000044f, /* 0x00000430 */ 0x00000430, /* 0x00000431 */ 0x00000431, /* 0x00000432 */ 0x00000432, /* 0x00000433 */ 0x00000433, /* 0x00000434 */ 0x00000434, /* 0x00000435 */ 0x00000435, /* 0x00000436 */ 0x00000436, /* 0x00000437 */ 0x00000437, /* 0x00000438 */ 0x00000438, /* 0x00000439 */ 0x00000439, /* 0x0000043a */ 0x0000043a, /* 0x0000043b */ 0x0000043b, /* 0x0000043c */ 0x0000043c, /* 0x0000043d */ 0x0000043d, /* 0x0000043e */ 0x0000043e, /* 0x0000043f */ 0x0000043f, /* 0x00000440 */ 0x00000440, /* 0x00000441 */ 0x00000441, /* 0x00000442 */ 0x00000442, /* 0x00000443 */ 0x00000443, /* 0x00000444 */ 0x00000444, /* 0x00000445 */ 0x00000445, /* 0x00000446 */ 0x00000446, /* 0x00000447 */ 0x00000447, /* 0x00000448 */ 0x00000448, /* 0x00000449 */ 0x00000449, /* 0x0000044a */ 0x0000044a, /* 0x0000044b */ 0x0000044b, /* 0x0000044c */ 0x0000044c, /* 0x0000044d */ 0x0000044d, /* 0x0000044e */ 0x0000044e, /* 0x0000044f */ 0x0000044f, /* 0x00000450 */ 0x00000450, /* 0x00000451 */ 0x00000451, /* 0x00000452 */ 0x00000452, /* 0x00000453 */ 0x00000453, /* 0x00000454 */ 0x00000454, /* 0x00000455 */ 0x00000455, /* 0x00000456 */ 0x00000456, /* 0x00000457 */ 0x00000457, /* 0x00000458 */ 0x00000458, /* 0x00000459 */ 0x00000459, /* 0x0000045a */ 0x0000045a, /* 0x0000045b */ 0x0000045b, /* 0x0000045c */ 0x0000045c, /* 0x0000045d */ 0x0000045d, /* 0x0000045e */ 0x0000045e, /* 0x0000045f */ 0x0000045f, /* 0x00000460 */ 0x00000461, /* 0x00000461 */ 0x00000461, /* 0x00000462 */ 0x00000463, /* 0x00000463 */ 0x00000463, /* 0x00000464 */ 0x00000465, /* 0x00000465 */ 0x00000465, /* 0x00000466 */ 0x00000467, /* 0x00000467 */ 0x00000467, /* 0x00000468 */ 0x00000469, /* 0x00000469 */ 0x00000469, /* 0x0000046a */ 0x0000046b, /* 0x0000046b */ 0x0000046b, /* 0x0000046c */ 0x0000046d, /* 0x0000046d */ 0x0000046d, /* 0x0000046e */ 0x0000046f, /* 0x0000046f */ 0x0000046f, /* 0x00000470 */ 0x00000471, /* 0x00000471 */ 0x00000471, /* 0x00000472 */ 0x00000473, /* 0x00000473 */ 0x00000473, /* 0x00000474 */ 0x00000475, /* 0x00000475 */ 0x00000475, /* 0x00000476 */ 0x00000477, /* 0x00000477 */ 0x00000477, /* 0x00000478 */ 0x00000479, /* 0x00000479 */ 0x00000479, /* 0x0000047a */ 0x0000047b, /* 0x0000047b */ 0x0000047b, /* 0x0000047c */ 0x0000047d, /* 0x0000047d */ 0x0000047d, /* 0x0000047e */ 0x0000047f, /* 0x0000047f */ 0x0000047f, /* 0x00000480 */ 0x00000481, /* 0x00000481 */ 0x00000481, /* 0x00000482 */ 0x00000482, /* 0x00000483 */ 0x00000483, /* 0x00000484 */ 0x00000484, /* 0x00000485 */ 0x00000485, /* 0x00000486 */ 0x00000486, /* 0x00000487 */ 0x00000487, /* 0x00000488 */ 0x00000488, /* 0x00000489 */ 0x00000489, /* 0x0000048a */ 0x0000048b, /* 0x0000048b */ 0x0000048b, /* 0x0000048c */ 0x0000048d, /* 0x0000048d */ 0x0000048d, /* 0x0000048e */ 0x0000048f, /* 0x0000048f */ 0x0000048f, /* 0x00000490 */ 0x00000491, /* 0x00000491 */ 0x00000491, /* 0x00000492 */ 0x00000493, /* 0x00000493 */ 0x00000493, /* 0x00000494 */ 0x00000495, /* 0x00000495 */ 0x00000495, /* 0x00000496 */ 0x00000497, /* 0x00000497 */ 0x00000497, /* 0x00000498 */ 0x00000499, /* 0x00000499 */ 0x00000499, /* 0x0000049a */ 0x0000049b, /* 0x0000049b */ 0x0000049b, /* 0x0000049c */ 0x0000049d, /* 0x0000049d */ 0x0000049d, /* 0x0000049e */ 0x0000049f, /* 0x0000049f */ 0x0000049f, /* 0x000004a0 */ 0x000004a1, /* 0x000004a1 */ 0x000004a1, /* 0x000004a2 */ 0x000004a3, /* 0x000004a3 */ 0x000004a3, /* 0x000004a4 */ 0x000004a5, /* 0x000004a5 */ 0x000004a5, /* 0x000004a6 */ 0x000004a7, /* 0x000004a7 */ 0x000004a7, /* 0x000004a8 */ 0x000004a9, /* 0x000004a9 */ 0x000004a9, /* 0x000004aa */ 0x000004ab, /* 0x000004ab */ 0x000004ab, /* 0x000004ac */ 0x000004ad, /* 0x000004ad */ 0x000004ad, /* 0x000004ae */ 0x000004af, /* 0x000004af */ 0x000004af, /* 0x000004b0 */ 0x000004b1, /* 0x000004b1 */ 0x000004b1, /* 0x000004b2 */ 0x000004b3, /* 0x000004b3 */ 0x000004b3, /* 0x000004b4 */ 0x000004b5, /* 0x000004b5 */ 0x000004b5, /* 0x000004b6 */ 0x000004b7, /* 0x000004b7 */ 0x000004b7, /* 0x000004b8 */ 0x000004b9, /* 0x000004b9 */ 0x000004b9, /* 0x000004ba */ 0x000004bb, /* 0x000004bb */ 0x000004bb, /* 0x000004bc */ 0x000004bd, /* 0x000004bd */ 0x000004bd, /* 0x000004be */ 0x000004bf, /* 0x000004bf */ 0x000004bf, /* 0x000004c0 */ 0x000004cf, /* 0x000004c1 */ 0x000004c2, /* 0x000004c2 */ 0x000004c2, /* 0x000004c3 */ 0x000004c4, /* 0x000004c4 */ 0x000004c4, /* 0x000004c5 */ 0x000004c6, /* 0x000004c6 */ 0x000004c6, /* 0x000004c7 */ 0x000004c8, /* 0x000004c8 */ 0x000004c8, /* 0x000004c9 */ 0x000004ca, /* 0x000004ca */ 0x000004ca, /* 0x000004cb */ 0x000004cc, /* 0x000004cc */ 0x000004cc, /* 0x000004cd */ 0x000004ce, /* 0x000004ce */ 0x000004ce, /* 0x000004cf */ 0x000004cf, /* 0x000004d0 */ 0x000004d1, /* 0x000004d1 */ 0x000004d1, /* 0x000004d2 */ 0x000004d3, /* 0x000004d3 */ 0x000004d3, /* 0x000004d4 */ 0x000004d5, /* 0x000004d5 */ 0x000004d5, /* 0x000004d6 */ 0x000004d7, /* 0x000004d7 */ 0x000004d7, /* 0x000004d8 */ 0x000004d9, /* 0x000004d9 */ 0x000004d9, /* 0x000004da */ 0x000004db, /* 0x000004db */ 0x000004db, /* 0x000004dc */ 0x000004dd, /* 0x000004dd */ 0x000004dd, /* 0x000004de */ 0x000004df, /* 0x000004df */ 0x000004df, /* 0x000004e0 */ 0x000004e1, /* 0x000004e1 */ 0x000004e1, /* 0x000004e2 */ 0x000004e3, /* 0x000004e3 */ 0x000004e3, /* 0x000004e4 */ 0x000004e5, /* 0x000004e5 */ 0x000004e5, /* 0x000004e6 */ 0x000004e7, /* 0x000004e7 */ 0x000004e7, /* 0x000004e8 */ 0x000004e9, /* 0x000004e9 */ 0x000004e9, /* 0x000004ea */ 0x000004eb, /* 0x000004eb */ 0x000004eb, /* 0x000004ec */ 0x000004ed, /* 0x000004ed */ 0x000004ed, /* 0x000004ee */ 0x000004ef, /* 0x000004ef */ 0x000004ef, /* 0x000004f0 */ 0x000004f1, /* 0x000004f1 */ 0x000004f1, /* 0x000004f2 */ 0x000004f3, /* 0x000004f3 */ 0x000004f3, /* 0x000004f4 */ 0x000004f5, /* 0x000004f5 */ 0x000004f5, /* 0x000004f6 */ 0x000004f7, /* 0x000004f7 */ 0x000004f7, /* 0x000004f8 */ 0x000004f9, /* 0x000004f9 */ 0x000004f9, /* 0x000004fa */ 0x000004fb, /* 0x000004fb */ 0x000004fb, /* 0x000004fc */ 0x000004fd, /* 0x000004fd */ 0x000004fd, /* 0x000004fe */ 0x000004ff, /* 0x000004ff */ 0x000004ff, /* 0x00000500 */ 0x00000501, /* 0x00000501 */ 0x00000501, /* 0x00000502 */ 0x00000503, /* 0x00000503 */ 0x00000503, /* 0x00000504 */ 0x00000505, /* 0x00000505 */ 0x00000505, /* 0x00000506 */ 0x00000507, /* 0x00000507 */ 0x00000507, /* 0x00000508 */ 0x00000509, /* 0x00000509 */ 0x00000509, /* 0x0000050a */ 0x0000050b, /* 0x0000050b */ 0x0000050b, /* 0x0000050c */ 0x0000050d, /* 0x0000050d */ 0x0000050d, /* 0x0000050e */ 0x0000050f, /* 0x0000050f */ 0x0000050f, /* 0x00000510 */ 0x00000511, /* 0x00000511 */ 0x00000511, /* 0x00000512 */ 0x00000513, /* 0x00000513 */ 0x00000513, /* 0x00000514 */ 0x00000515, /* 0x00000515 */ 0x00000515, /* 0x00000516 */ 0x00000517, /* 0x00000517 */ 0x00000517, /* 0x00000518 */ 0x00000519, /* 0x00000519 */ 0x00000519, /* 0x0000051a */ 0x0000051b, /* 0x0000051b */ 0x0000051b, /* 0x0000051c */ 0x0000051d, /* 0x0000051d */ 0x0000051d, /* 0x0000051e */ 0x0000051f, /* 0x0000051f */ 0x0000051f, /* 0x00000520 */ 0x00000521, /* 0x00000521 */ 0x00000521, /* 0x00000522 */ 0x00000523, /* 0x00000523 */ 0x00000523, /* 0x00000524 */ 0x00000525, /* 0x00000525 */ 0x00000525, /* 0x00000526 */ 0x00000527, /* 0x00000527 */ 0x00000527, /* 0x00000528 */ 0x00000529, /* 0x00000529 */ 0x00000529, /* 0x0000052a */ 0x0000052b, /* 0x0000052b */ 0x0000052b, /* 0x0000052c */ 0x0000052d, /* 0x0000052d */ 0x0000052d, /* 0x0000052e */ 0x0000052f, /* 0x0000052f */ 0x0000052f, /* 0x00000530 */ 0x00000530, /* 0x00000531 */ 0x00000561, /* 0x00000532 */ 0x00000562, /* 0x00000533 */ 0x00000563, /* 0x00000534 */ 0x00000564, /* 0x00000535 */ 0x00000565, /* 0x00000536 */ 0x00000566, /* 0x00000537 */ 0x00000567, /* 0x00000538 */ 0x00000568, /* 0x00000539 */ 0x00000569, /* 0x0000053a */ 0x0000056a, /* 0x0000053b */ 0x0000056b, /* 0x0000053c */ 0x0000056c, /* 0x0000053d */ 0x0000056d, /* 0x0000053e */ 0x0000056e, /* 0x0000053f */ 0x0000056f, /* 0x00000540 */ 0x00000570, /* 0x00000541 */ 0x00000571, /* 0x00000542 */ 0x00000572, /* 0x00000543 */ 0x00000573, /* 0x00000544 */ 0x00000574, /* 0x00000545 */ 0x00000575, /* 0x00000546 */ 0x00000576, /* 0x00000547 */ 0x00000577, /* 0x00000548 */ 0x00000578, /* 0x00000549 */ 0x00000579, /* 0x0000054a */ 0x0000057a, /* 0x0000054b */ 0x0000057b, /* 0x0000054c */ 0x0000057c, /* 0x0000054d */ 0x0000057d, /* 0x0000054e */ 0x0000057e, /* 0x0000054f */ 0x0000057f, /* 0x00000550 */ 0x00000580, /* 0x00000551 */ 0x00000581, /* 0x00000552 */ 0x00000582, /* 0x00000553 */ 0x00000583, /* 0x00000554 */ 0x00000584, /* 0x00000555 */ 0x00000585, /* 0x00000556 */ 0x00000586, /* 0x00000557 */ 0x00000557 }; uint32_t libfsapfs_name_case_folding_mappings_0x000010a0[ 48 ] = { /* 0x000010a0 */ 0x00002d00, /* 0x000010a1 */ 0x00002d01, /* 0x000010a2 */ 0x00002d02, /* 0x000010a3 */ 0x00002d03, /* 0x000010a4 */ 0x00002d04, /* 0x000010a5 */ 0x00002d05, /* 0x000010a6 */ 0x00002d06, /* 0x000010a7 */ 0x00002d07, /* 0x000010a8 */ 0x00002d08, /* 0x000010a9 */ 0x00002d09, /* 0x000010aa */ 0x00002d0a, /* 0x000010ab */ 0x00002d0b, /* 0x000010ac */ 0x00002d0c, /* 0x000010ad */ 0x00002d0d, /* 0x000010ae */ 0x00002d0e, /* 0x000010af */ 0x00002d0f, /* 0x000010b0 */ 0x00002d10, /* 0x000010b1 */ 0x00002d11, /* 0x000010b2 */ 0x00002d12, /* 0x000010b3 */ 0x00002d13, /* 0x000010b4 */ 0x00002d14, /* 0x000010b5 */ 0x00002d15, /* 0x000010b6 */ 0x00002d16, /* 0x000010b7 */ 0x00002d17, /* 0x000010b8 */ 0x00002d18, /* 0x000010b9 */ 0x00002d19, /* 0x000010ba */ 0x00002d1a, /* 0x000010bb */ 0x00002d1b, /* 0x000010bc */ 0x00002d1c, /* 0x000010bd */ 0x00002d1d, /* 0x000010be */ 0x00002d1e, /* 0x000010bf */ 0x00002d1f, /* 0x000010c0 */ 0x00002d20, /* 0x000010c1 */ 0x00002d21, /* 0x000010c2 */ 0x00002d22, /* 0x000010c3 */ 0x00002d23, /* 0x000010c4 */ 0x00002d24, /* 0x000010c5 */ 0x00002d25, /* 0x000010c6 */ 0x000010c6, /* 0x000010c7 */ 0x00002d27, /* 0x000010c8 */ 0x000010c8, /* 0x000010c9 */ 0x000010c9, /* 0x000010ca */ 0x000010ca, /* 0x000010cb */ 0x000010cb, /* 0x000010cc */ 0x000010cc, /* 0x000010cd */ 0x00002d2d, /* 0x000010ce */ 0x000010ce, /* 0x000010cf */ 0x000010cf }; uint32_t libfsapfs_name_case_folding_mappings_0x000013f8[ 8 ] = { /* 0x000013f8 */ 0x000013f0, /* 0x000013f9 */ 0x000013f1, /* 0x000013fa */ 0x000013f2, /* 0x000013fb */ 0x000013f3, /* 0x000013fc */ 0x000013f4, /* 0x000013fd */ 0x000013f5, /* 0x000013fe */ 0x000013fe, /* 0x000013ff */ 0x000013ff }; uint32_t libfsapfs_name_case_folding_mappings_0x00001c80[ 16 ] = { /* 0x00001c80 */ 0x00000432, /* 0x00001c81 */ 0x00000434, /* 0x00001c82 */ 0x0000043e, /* 0x00001c83 */ 0x00000441, /* 0x00001c84 */ 0x00000442, /* 0x00001c85 */ 0x00000442, /* 0x00001c86 */ 0x0000044a, /* 0x00001c87 */ 0x00000463, /* 0x00001c88 */ 0x0000a64b, /* 0x00001c89 */ 0x00001c89, /* 0x00001c8a */ 0x00001c8a, /* 0x00001c8b */ 0x00001c8b, /* 0x00001c8c */ 0x00001c8c, /* 0x00001c8d */ 0x00001c8d, /* 0x00001c8e */ 0x00001c8e, /* 0x00001c8f */ 0x00001c8f }; uint32_t libfsapfs_name_case_folding_mappings_0x00001e00[ 512 ] = { /* 0x00001e00 */ 0x00001e01, /* 0x00001e01 */ 0x00001e01, /* 0x00001e02 */ 0x00001e03, /* 0x00001e03 */ 0x00001e03, /* 0x00001e04 */ 0x00001e05, /* 0x00001e05 */ 0x00001e05, /* 0x00001e06 */ 0x00001e07, /* 0x00001e07 */ 0x00001e07, /* 0x00001e08 */ 0x00001e09, /* 0x00001e09 */ 0x00001e09, /* 0x00001e0a */ 0x00001e0b, /* 0x00001e0b */ 0x00001e0b, /* 0x00001e0c */ 0x00001e0d, /* 0x00001e0d */ 0x00001e0d, /* 0x00001e0e */ 0x00001e0f, /* 0x00001e0f */ 0x00001e0f, /* 0x00001e10 */ 0x00001e11, /* 0x00001e11 */ 0x00001e11, /* 0x00001e12 */ 0x00001e13, /* 0x00001e13 */ 0x00001e13, /* 0x00001e14 */ 0x00001e15, /* 0x00001e15 */ 0x00001e15, /* 0x00001e16 */ 0x00001e17, /* 0x00001e17 */ 0x00001e17, /* 0x00001e18 */ 0x00001e19, /* 0x00001e19 */ 0x00001e19, /* 0x00001e1a */ 0x00001e1b, /* 0x00001e1b */ 0x00001e1b, /* 0x00001e1c */ 0x00001e1d, /* 0x00001e1d */ 0x00001e1d, /* 0x00001e1e */ 0x00001e1f, /* 0x00001e1f */ 0x00001e1f, /* 0x00001e20 */ 0x00001e21, /* 0x00001e21 */ 0x00001e21, /* 0x00001e22 */ 0x00001e23, /* 0x00001e23 */ 0x00001e23, /* 0x00001e24 */ 0x00001e25, /* 0x00001e25 */ 0x00001e25, /* 0x00001e26 */ 0x00001e27, /* 0x00001e27 */ 0x00001e27, /* 0x00001e28 */ 0x00001e29, /* 0x00001e29 */ 0x00001e29, /* 0x00001e2a */ 0x00001e2b, /* 0x00001e2b */ 0x00001e2b, /* 0x00001e2c */ 0x00001e2d, /* 0x00001e2d */ 0x00001e2d, /* 0x00001e2e */ 0x00001e2f, /* 0x00001e2f */ 0x00001e2f, /* 0x00001e30 */ 0x00001e31, /* 0x00001e31 */ 0x00001e31, /* 0x00001e32 */ 0x00001e33, /* 0x00001e33 */ 0x00001e33, /* 0x00001e34 */ 0x00001e35, /* 0x00001e35 */ 0x00001e35, /* 0x00001e36 */ 0x00001e37, /* 0x00001e37 */ 0x00001e37, /* 0x00001e38 */ 0x00001e39, /* 0x00001e39 */ 0x00001e39, /* 0x00001e3a */ 0x00001e3b, /* 0x00001e3b */ 0x00001e3b, /* 0x00001e3c */ 0x00001e3d, /* 0x00001e3d */ 0x00001e3d, /* 0x00001e3e */ 0x00001e3f, /* 0x00001e3f */ 0x00001e3f, /* 0x00001e40 */ 0x00001e41, /* 0x00001e41 */ 0x00001e41, /* 0x00001e42 */ 0x00001e43, /* 0x00001e43 */ 0x00001e43, /* 0x00001e44 */ 0x00001e45, /* 0x00001e45 */ 0x00001e45, /* 0x00001e46 */ 0x00001e47, /* 0x00001e47 */ 0x00001e47, /* 0x00001e48 */ 0x00001e49, /* 0x00001e49 */ 0x00001e49, /* 0x00001e4a */ 0x00001e4b, /* 0x00001e4b */ 0x00001e4b, /* 0x00001e4c */ 0x00001e4d, /* 0x00001e4d */ 0x00001e4d, /* 0x00001e4e */ 0x00001e4f, /* 0x00001e4f */ 0x00001e4f, /* 0x00001e50 */ 0x00001e51, /* 0x00001e51 */ 0x00001e51, /* 0x00001e52 */ 0x00001e53, /* 0x00001e53 */ 0x00001e53, /* 0x00001e54 */ 0x00001e55, /* 0x00001e55 */ 0x00001e55, /* 0x00001e56 */ 0x00001e57, /* 0x00001e57 */ 0x00001e57, /* 0x00001e58 */ 0x00001e59, /* 0x00001e59 */ 0x00001e59, /* 0x00001e5a */ 0x00001e5b, /* 0x00001e5b */ 0x00001e5b, /* 0x00001e5c */ 0x00001e5d, /* 0x00001e5d */ 0x00001e5d, /* 0x00001e5e */ 0x00001e5f, /* 0x00001e5f */ 0x00001e5f, /* 0x00001e60 */ 0x00001e61, /* 0x00001e61 */ 0x00001e61, /* 0x00001e62 */ 0x00001e63, /* 0x00001e63 */ 0x00001e63, /* 0x00001e64 */ 0x00001e65, /* 0x00001e65 */ 0x00001e65, /* 0x00001e66 */ 0x00001e67, /* 0x00001e67 */ 0x00001e67, /* 0x00001e68 */ 0x00001e69, /* 0x00001e69 */ 0x00001e69, /* 0x00001e6a */ 0x00001e6b, /* 0x00001e6b */ 0x00001e6b, /* 0x00001e6c */ 0x00001e6d, /* 0x00001e6d */ 0x00001e6d, /* 0x00001e6e */ 0x00001e6f, /* 0x00001e6f */ 0x00001e6f, /* 0x00001e70 */ 0x00001e71, /* 0x00001e71 */ 0x00001e71, /* 0x00001e72 */ 0x00001e73, /* 0x00001e73 */ 0x00001e73, /* 0x00001e74 */ 0x00001e75, /* 0x00001e75 */ 0x00001e75, /* 0x00001e76 */ 0x00001e77, /* 0x00001e77 */ 0x00001e77, /* 0x00001e78 */ 0x00001e79, /* 0x00001e79 */ 0x00001e79, /* 0x00001e7a */ 0x00001e7b, /* 0x00001e7b */ 0x00001e7b, /* 0x00001e7c */ 0x00001e7d, /* 0x00001e7d */ 0x00001e7d, /* 0x00001e7e */ 0x00001e7f, /* 0x00001e7f */ 0x00001e7f, /* 0x00001e80 */ 0x00001e81, /* 0x00001e81 */ 0x00001e81, /* 0x00001e82 */ 0x00001e83, /* 0x00001e83 */ 0x00001e83, /* 0x00001e84 */ 0x00001e85, /* 0x00001e85 */ 0x00001e85, /* 0x00001e86 */ 0x00001e87, /* 0x00001e87 */ 0x00001e87, /* 0x00001e88 */ 0x00001e89, /* 0x00001e89 */ 0x00001e89, /* 0x00001e8a */ 0x00001e8b, /* 0x00001e8b */ 0x00001e8b, /* 0x00001e8c */ 0x00001e8d, /* 0x00001e8d */ 0x00001e8d, /* 0x00001e8e */ 0x00001e8f, /* 0x00001e8f */ 0x00001e8f, /* 0x00001e90 */ 0x00001e91, /* 0x00001e91 */ 0x00001e91, /* 0x00001e92 */ 0x00001e93, /* 0x00001e93 */ 0x00001e93, /* 0x00001e94 */ 0x00001e95, /* 0x00001e95 */ 0x00001e95, /* 0x00001e96 */ 0x00001e96, /* 0x00001e97 */ 0x00001e97, /* 0x00001e98 */ 0x00001e98, /* 0x00001e99 */ 0x00001e99, /* 0x00001e9a */ 0x00001e9a, /* 0x00001e9b */ 0x00001e61, /* 0x00001e9c */ 0x00001e9c, /* 0x00001e9d */ 0x00001e9d, /* 0x00001e9e */ 0x000000df, /* 0x00001e9f */ 0x00001e9f, /* 0x00001ea0 */ 0x00001ea1, /* 0x00001ea1 */ 0x00001ea1, /* 0x00001ea2 */ 0x00001ea3, /* 0x00001ea3 */ 0x00001ea3, /* 0x00001ea4 */ 0x00001ea5, /* 0x00001ea5 */ 0x00001ea5, /* 0x00001ea6 */ 0x00001ea7, /* 0x00001ea7 */ 0x00001ea7, /* 0x00001ea8 */ 0x00001ea9, /* 0x00001ea9 */ 0x00001ea9, /* 0x00001eaa */ 0x00001eab, /* 0x00001eab */ 0x00001eab, /* 0x00001eac */ 0x00001ead, /* 0x00001ead */ 0x00001ead, /* 0x00001eae */ 0x00001eaf, /* 0x00001eaf */ 0x00001eaf, /* 0x00001eb0 */ 0x00001eb1, /* 0x00001eb1 */ 0x00001eb1, /* 0x00001eb2 */ 0x00001eb3, /* 0x00001eb3 */ 0x00001eb3, /* 0x00001eb4 */ 0x00001eb5, /* 0x00001eb5 */ 0x00001eb5, /* 0x00001eb6 */ 0x00001eb7, /* 0x00001eb7 */ 0x00001eb7, /* 0x00001eb8 */ 0x00001eb9, /* 0x00001eb9 */ 0x00001eb9, /* 0x00001eba */ 0x00001ebb, /* 0x00001ebb */ 0x00001ebb, /* 0x00001ebc */ 0x00001ebd, /* 0x00001ebd */ 0x00001ebd, /* 0x00001ebe */ 0x00001ebf, /* 0x00001ebf */ 0x00001ebf, /* 0x00001ec0 */ 0x00001ec1, /* 0x00001ec1 */ 0x00001ec1, /* 0x00001ec2 */ 0x00001ec3, /* 0x00001ec3 */ 0x00001ec3, /* 0x00001ec4 */ 0x00001ec5, /* 0x00001ec5 */ 0x00001ec5, /* 0x00001ec6 */ 0x00001ec7, /* 0x00001ec7 */ 0x00001ec7, /* 0x00001ec8 */ 0x00001ec9, /* 0x00001ec9 */ 0x00001ec9, /* 0x00001eca */ 0x00001ecb, /* 0x00001ecb */ 0x00001ecb, /* 0x00001ecc */ 0x00001ecd, /* 0x00001ecd */ 0x00001ecd, /* 0x00001ece */ 0x00001ecf, /* 0x00001ecf */ 0x00001ecf, /* 0x00001ed0 */ 0x00001ed1, /* 0x00001ed1 */ 0x00001ed1, /* 0x00001ed2 */ 0x00001ed3, /* 0x00001ed3 */ 0x00001ed3, /* 0x00001ed4 */ 0x00001ed5, /* 0x00001ed5 */ 0x00001ed5, /* 0x00001ed6 */ 0x00001ed7, /* 0x00001ed7 */ 0x00001ed7, /* 0x00001ed8 */ 0x00001ed9, /* 0x00001ed9 */ 0x00001ed9, /* 0x00001eda */ 0x00001edb, /* 0x00001edb */ 0x00001edb, /* 0x00001edc */ 0x00001edd, /* 0x00001edd */ 0x00001edd, /* 0x00001ede */ 0x00001edf, /* 0x00001edf */ 0x00001edf, /* 0x00001ee0 */ 0x00001ee1, /* 0x00001ee1 */ 0x00001ee1, /* 0x00001ee2 */ 0x00001ee3, /* 0x00001ee3 */ 0x00001ee3, /* 0x00001ee4 */ 0x00001ee5, /* 0x00001ee5 */ 0x00001ee5, /* 0x00001ee6 */ 0x00001ee7, /* 0x00001ee7 */ 0x00001ee7, /* 0x00001ee8 */ 0x00001ee9, /* 0x00001ee9 */ 0x00001ee9, /* 0x00001eea */ 0x00001eeb, /* 0x00001eeb */ 0x00001eeb, /* 0x00001eec */ 0x00001eed, /* 0x00001eed */ 0x00001eed, /* 0x00001eee */ 0x00001eef, /* 0x00001eef */ 0x00001eef, /* 0x00001ef0 */ 0x00001ef1, /* 0x00001ef1 */ 0x00001ef1, /* 0x00001ef2 */ 0x00001ef3, /* 0x00001ef3 */ 0x00001ef3, /* 0x00001ef4 */ 0x00001ef5, /* 0x00001ef5 */ 0x00001ef5, /* 0x00001ef6 */ 0x00001ef7, /* 0x00001ef7 */ 0x00001ef7, /* 0x00001ef8 */ 0x00001ef9, /* 0x00001ef9 */ 0x00001ef9, /* 0x00001efa */ 0x00001efb, /* 0x00001efb */ 0x00001efb, /* 0x00001efc */ 0x00001efd, /* 0x00001efd */ 0x00001efd, /* 0x00001efe */ 0x00001eff, /* 0x00001eff */ 0x00001eff, /* 0x00001f00 */ 0x00001f00, /* 0x00001f01 */ 0x00001f01, /* 0x00001f02 */ 0x00001f02, /* 0x00001f03 */ 0x00001f03, /* 0x00001f04 */ 0x00001f04, /* 0x00001f05 */ 0x00001f05, /* 0x00001f06 */ 0x00001f06, /* 0x00001f07 */ 0x00001f07, /* 0x00001f08 */ 0x00001f00, /* 0x00001f09 */ 0x00001f01, /* 0x00001f0a */ 0x00001f02, /* 0x00001f0b */ 0x00001f03, /* 0x00001f0c */ 0x00001f04, /* 0x00001f0d */ 0x00001f05, /* 0x00001f0e */ 0x00001f06, /* 0x00001f0f */ 0x00001f07, /* 0x00001f10 */ 0x00001f10, /* 0x00001f11 */ 0x00001f11, /* 0x00001f12 */ 0x00001f12, /* 0x00001f13 */ 0x00001f13, /* 0x00001f14 */ 0x00001f14, /* 0x00001f15 */ 0x00001f15, /* 0x00001f16 */ 0x00001f16, /* 0x00001f17 */ 0x00001f17, /* 0x00001f18 */ 0x00001f10, /* 0x00001f19 */ 0x00001f11, /* 0x00001f1a */ 0x00001f12, /* 0x00001f1b */ 0x00001f13, /* 0x00001f1c */ 0x00001f14, /* 0x00001f1d */ 0x00001f15, /* 0x00001f1e */ 0x00001f1e, /* 0x00001f1f */ 0x00001f1f, /* 0x00001f20 */ 0x00001f20, /* 0x00001f21 */ 0x00001f21, /* 0x00001f22 */ 0x00001f22, /* 0x00001f23 */ 0x00001f23, /* 0x00001f24 */ 0x00001f24, /* 0x00001f25 */ 0x00001f25, /* 0x00001f26 */ 0x00001f26, /* 0x00001f27 */ 0x00001f27, /* 0x00001f28 */ 0x00001f20, /* 0x00001f29 */ 0x00001f21, /* 0x00001f2a */ 0x00001f22, /* 0x00001f2b */ 0x00001f23, /* 0x00001f2c */ 0x00001f24, /* 0x00001f2d */ 0x00001f25, /* 0x00001f2e */ 0x00001f26, /* 0x00001f2f */ 0x00001f27, /* 0x00001f30 */ 0x00001f30, /* 0x00001f31 */ 0x00001f31, /* 0x00001f32 */ 0x00001f32, /* 0x00001f33 */ 0x00001f33, /* 0x00001f34 */ 0x00001f34, /* 0x00001f35 */ 0x00001f35, /* 0x00001f36 */ 0x00001f36, /* 0x00001f37 */ 0x00001f37, /* 0x00001f38 */ 0x00001f30, /* 0x00001f39 */ 0x00001f31, /* 0x00001f3a */ 0x00001f32, /* 0x00001f3b */ 0x00001f33, /* 0x00001f3c */ 0x00001f34, /* 0x00001f3d */ 0x00001f35, /* 0x00001f3e */ 0x00001f36, /* 0x00001f3f */ 0x00001f37, /* 0x00001f40 */ 0x00001f40, /* 0x00001f41 */ 0x00001f41, /* 0x00001f42 */ 0x00001f42, /* 0x00001f43 */ 0x00001f43, /* 0x00001f44 */ 0x00001f44, /* 0x00001f45 */ 0x00001f45, /* 0x00001f46 */ 0x00001f46, /* 0x00001f47 */ 0x00001f47, /* 0x00001f48 */ 0x00001f40, /* 0x00001f49 */ 0x00001f41, /* 0x00001f4a */ 0x00001f42, /* 0x00001f4b */ 0x00001f43, /* 0x00001f4c */ 0x00001f44, /* 0x00001f4d */ 0x00001f45, /* 0x00001f4e */ 0x00001f4e, /* 0x00001f4f */ 0x00001f4f, /* 0x00001f50 */ 0x00001f50, /* 0x00001f51 */ 0x00001f51, /* 0x00001f52 */ 0x00001f52, /* 0x00001f53 */ 0x00001f53, /* 0x00001f54 */ 0x00001f54, /* 0x00001f55 */ 0x00001f55, /* 0x00001f56 */ 0x00001f56, /* 0x00001f57 */ 0x00001f57, /* 0x00001f58 */ 0x00001f58, /* 0x00001f59 */ 0x00001f51, /* 0x00001f5a */ 0x00001f5a, /* 0x00001f5b */ 0x00001f53, /* 0x00001f5c */ 0x00001f5c, /* 0x00001f5d */ 0x00001f55, /* 0x00001f5e */ 0x00001f5e, /* 0x00001f5f */ 0x00001f57, /* 0x00001f60 */ 0x00001f60, /* 0x00001f61 */ 0x00001f61, /* 0x00001f62 */ 0x00001f62, /* 0x00001f63 */ 0x00001f63, /* 0x00001f64 */ 0x00001f64, /* 0x00001f65 */ 0x00001f65, /* 0x00001f66 */ 0x00001f66, /* 0x00001f67 */ 0x00001f67, /* 0x00001f68 */ 0x00001f60, /* 0x00001f69 */ 0x00001f61, /* 0x00001f6a */ 0x00001f62, /* 0x00001f6b */ 0x00001f63, /* 0x00001f6c */ 0x00001f64, /* 0x00001f6d */ 0x00001f65, /* 0x00001f6e */ 0x00001f66, /* 0x00001f6f */ 0x00001f67, /* 0x00001f70 */ 0x00001f70, /* 0x00001f71 */ 0x00001f71, /* 0x00001f72 */ 0x00001f72, /* 0x00001f73 */ 0x00001f73, /* 0x00001f74 */ 0x00001f74, /* 0x00001f75 */ 0x00001f75, /* 0x00001f76 */ 0x00001f76, /* 0x00001f77 */ 0x00001f77, /* 0x00001f78 */ 0x00001f78, /* 0x00001f79 */ 0x00001f79, /* 0x00001f7a */ 0x00001f7a, /* 0x00001f7b */ 0x00001f7b, /* 0x00001f7c */ 0x00001f7c, /* 0x00001f7d */ 0x00001f7d, /* 0x00001f7e */ 0x00001f7e, /* 0x00001f7f */ 0x00001f7f, /* 0x00001f80 */ 0x00001f80, /* 0x00001f81 */ 0x00001f81, /* 0x00001f82 */ 0x00001f82, /* 0x00001f83 */ 0x00001f83, /* 0x00001f84 */ 0x00001f84, /* 0x00001f85 */ 0x00001f85, /* 0x00001f86 */ 0x00001f86, /* 0x00001f87 */ 0x00001f87, /* 0x00001f88 */ 0x00001f80, /* 0x00001f89 */ 0x00001f81, /* 0x00001f8a */ 0x00001f82, /* 0x00001f8b */ 0x00001f83, /* 0x00001f8c */ 0x00001f84, /* 0x00001f8d */ 0x00001f85, /* 0x00001f8e */ 0x00001f86, /* 0x00001f8f */ 0x00001f87, /* 0x00001f90 */ 0x00001f90, /* 0x00001f91 */ 0x00001f91, /* 0x00001f92 */ 0x00001f92, /* 0x00001f93 */ 0x00001f93, /* 0x00001f94 */ 0x00001f94, /* 0x00001f95 */ 0x00001f95, /* 0x00001f96 */ 0x00001f96, /* 0x00001f97 */ 0x00001f97, /* 0x00001f98 */ 0x00001f90, /* 0x00001f99 */ 0x00001f91, /* 0x00001f9a */ 0x00001f92, /* 0x00001f9b */ 0x00001f93, /* 0x00001f9c */ 0x00001f94, /* 0x00001f9d */ 0x00001f95, /* 0x00001f9e */ 0x00001f96, /* 0x00001f9f */ 0x00001f97, /* 0x00001fa0 */ 0x00001fa0, /* 0x00001fa1 */ 0x00001fa1, /* 0x00001fa2 */ 0x00001fa2, /* 0x00001fa3 */ 0x00001fa3, /* 0x00001fa4 */ 0x00001fa4, /* 0x00001fa5 */ 0x00001fa5, /* 0x00001fa6 */ 0x00001fa6, /* 0x00001fa7 */ 0x00001fa7, /* 0x00001fa8 */ 0x00001fa0, /* 0x00001fa9 */ 0x00001fa1, /* 0x00001faa */ 0x00001fa2, /* 0x00001fab */ 0x00001fa3, /* 0x00001fac */ 0x00001fa4, /* 0x00001fad */ 0x00001fa5, /* 0x00001fae */ 0x00001fa6, /* 0x00001faf */ 0x00001fa7, /* 0x00001fb0 */ 0x00001fb0, /* 0x00001fb1 */ 0x00001fb1, /* 0x00001fb2 */ 0x00001fb2, /* 0x00001fb3 */ 0x00001fb3, /* 0x00001fb4 */ 0x00001fb4, /* 0x00001fb5 */ 0x00001fb5, /* 0x00001fb6 */ 0x00001fb6, /* 0x00001fb7 */ 0x00001fb7, /* 0x00001fb8 */ 0x00001fb0, /* 0x00001fb9 */ 0x00001fb1, /* 0x00001fba */ 0x00001f70, /* 0x00001fbb */ 0x00001f71, /* 0x00001fbc */ 0x00001fb3, /* 0x00001fbd */ 0x00001fbd, /* 0x00001fbe */ 0x000003b9, /* 0x00001fbf */ 0x00001fbf, /* 0x00001fc0 */ 0x00001fc0, /* 0x00001fc1 */ 0x00001fc1, /* 0x00001fc2 */ 0x00001fc2, /* 0x00001fc3 */ 0x00001fc3, /* 0x00001fc4 */ 0x00001fc4, /* 0x00001fc5 */ 0x00001fc5, /* 0x00001fc6 */ 0x00001fc6, /* 0x00001fc7 */ 0x00001fc7, /* 0x00001fc8 */ 0x00001f72, /* 0x00001fc9 */ 0x00001f73, /* 0x00001fca */ 0x00001f74, /* 0x00001fcb */ 0x00001f75, /* 0x00001fcc */ 0x00001fc3, /* 0x00001fcd */ 0x00001fcd, /* 0x00001fce */ 0x00001fce, /* 0x00001fcf */ 0x00001fcf, /* 0x00001fd0 */ 0x00001fd0, /* 0x00001fd1 */ 0x00001fd1, /* 0x00001fd2 */ 0x00001fd2, /* 0x00001fd3 */ 0x00001fd3, /* 0x00001fd4 */ 0x00001fd4, /* 0x00001fd5 */ 0x00001fd5, /* 0x00001fd6 */ 0x00001fd6, /* 0x00001fd7 */ 0x00001fd7, /* 0x00001fd8 */ 0x00001fd0, /* 0x00001fd9 */ 0x00001fd1, /* 0x00001fda */ 0x00001f76, /* 0x00001fdb */ 0x00001f77, /* 0x00001fdc */ 0x00001fdc, /* 0x00001fdd */ 0x00001fdd, /* 0x00001fde */ 0x00001fde, /* 0x00001fdf */ 0x00001fdf, /* 0x00001fe0 */ 0x00001fe0, /* 0x00001fe1 */ 0x00001fe1, /* 0x00001fe2 */ 0x00001fe2, /* 0x00001fe3 */ 0x00001fe3, /* 0x00001fe4 */ 0x00001fe4, /* 0x00001fe5 */ 0x00001fe5, /* 0x00001fe6 */ 0x00001fe6, /* 0x00001fe7 */ 0x00001fe7, /* 0x00001fe8 */ 0x00001fe0, /* 0x00001fe9 */ 0x00001fe1, /* 0x00001fea */ 0x00001f7a, /* 0x00001feb */ 0x00001f7b, /* 0x00001fec */ 0x00001fe5, /* 0x00001fed */ 0x00001fed, /* 0x00001fee */ 0x00001fee, /* 0x00001fef */ 0x00001fef, /* 0x00001ff0 */ 0x00001ff0, /* 0x00001ff1 */ 0x00001ff1, /* 0x00001ff2 */ 0x00001ff2, /* 0x00001ff3 */ 0x00001ff3, /* 0x00001ff4 */ 0x00001ff4, /* 0x00001ff5 */ 0x00001ff5, /* 0x00001ff6 */ 0x00001ff6, /* 0x00001ff7 */ 0x00001ff7, /* 0x00001ff8 */ 0x00001f78, /* 0x00001ff9 */ 0x00001f79, /* 0x00001ffa */ 0x00001f7c, /* 0x00001ffb */ 0x00001f7d, /* 0x00001ffc */ 0x00001ff3, /* 0x00001ffd */ 0x00001ffd, /* 0x00001ffe */ 0x00001ffe, /* 0x00001fff */ 0x00001fff }; uint32_t libfsapfs_name_case_folding_mappings_0x00002120[ 104 ] = { /* 0x00002120 */ 0x00002120, /* 0x00002121 */ 0x00002121, /* 0x00002122 */ 0x00002122, /* 0x00002123 */ 0x00002123, /* 0x00002124 */ 0x00002124, /* 0x00002125 */ 0x00002125, /* 0x00002126 */ 0x000003c9, /* 0x00002127 */ 0x00002127, /* 0x00002128 */ 0x00002128, /* 0x00002129 */ 0x00002129, /* 0x0000212a */ 0x0000006b, /* 0x0000212b */ 0x000000e5, /* 0x0000212c */ 0x0000212c, /* 0x0000212d */ 0x0000212d, /* 0x0000212e */ 0x0000212e, /* 0x0000212f */ 0x0000212f, /* 0x00002130 */ 0x00002130, /* 0x00002131 */ 0x00002131, /* 0x00002132 */ 0x0000214e, /* 0x00002133 */ 0x00002133, /* 0x00002134 */ 0x00002134, /* 0x00002135 */ 0x00002135, /* 0x00002136 */ 0x00002136, /* 0x00002137 */ 0x00002137, /* 0x00002138 */ 0x00002138, /* 0x00002139 */ 0x00002139, /* 0x0000213a */ 0x0000213a, /* 0x0000213b */ 0x0000213b, /* 0x0000213c */ 0x0000213c, /* 0x0000213d */ 0x0000213d, /* 0x0000213e */ 0x0000213e, /* 0x0000213f */ 0x0000213f, /* 0x00002140 */ 0x00002140, /* 0x00002141 */ 0x00002141, /* 0x00002142 */ 0x00002142, /* 0x00002143 */ 0x00002143, /* 0x00002144 */ 0x00002144, /* 0x00002145 */ 0x00002145, /* 0x00002146 */ 0x00002146, /* 0x00002147 */ 0x00002147, /* 0x00002148 */ 0x00002148, /* 0x00002149 */ 0x00002149, /* 0x0000214a */ 0x0000214a, /* 0x0000214b */ 0x0000214b, /* 0x0000214c */ 0x0000214c, /* 0x0000214d */ 0x0000214d, /* 0x0000214e */ 0x0000214e, /* 0x0000214f */ 0x0000214f, /* 0x00002150 */ 0x00002150, /* 0x00002151 */ 0x00002151, /* 0x00002152 */ 0x00002152, /* 0x00002153 */ 0x00002153, /* 0x00002154 */ 0x00002154, /* 0x00002155 */ 0x00002155, /* 0x00002156 */ 0x00002156, /* 0x00002157 */ 0x00002157, /* 0x00002158 */ 0x00002158, /* 0x00002159 */ 0x00002159, /* 0x0000215a */ 0x0000215a, /* 0x0000215b */ 0x0000215b, /* 0x0000215c */ 0x0000215c, /* 0x0000215d */ 0x0000215d, /* 0x0000215e */ 0x0000215e, /* 0x0000215f */ 0x0000215f, /* 0x00002160 */ 0x00002170, /* 0x00002161 */ 0x00002171, /* 0x00002162 */ 0x00002172, /* 0x00002163 */ 0x00002173, /* 0x00002164 */ 0x00002174, /* 0x00002165 */ 0x00002175, /* 0x00002166 */ 0x00002176, /* 0x00002167 */ 0x00002177, /* 0x00002168 */ 0x00002178, /* 0x00002169 */ 0x00002179, /* 0x0000216a */ 0x0000217a, /* 0x0000216b */ 0x0000217b, /* 0x0000216c */ 0x0000217c, /* 0x0000216d */ 0x0000217d, /* 0x0000216e */ 0x0000217e, /* 0x0000216f */ 0x0000217f, /* 0x00002170 */ 0x00002170, /* 0x00002171 */ 0x00002171, /* 0x00002172 */ 0x00002172, /* 0x00002173 */ 0x00002173, /* 0x00002174 */ 0x00002174, /* 0x00002175 */ 0x00002175, /* 0x00002176 */ 0x00002176, /* 0x00002177 */ 0x00002177, /* 0x00002178 */ 0x00002178, /* 0x00002179 */ 0x00002179, /* 0x0000217a */ 0x0000217a, /* 0x0000217b */ 0x0000217b, /* 0x0000217c */ 0x0000217c, /* 0x0000217d */ 0x0000217d, /* 0x0000217e */ 0x0000217e, /* 0x0000217f */ 0x0000217f, /* 0x00002180 */ 0x00002180, /* 0x00002181 */ 0x00002181, /* 0x00002182 */ 0x00002182, /* 0x00002183 */ 0x00002184, /* 0x00002184 */ 0x00002184, /* 0x00002185 */ 0x00002185, /* 0x00002186 */ 0x00002186, /* 0x00002187 */ 0x00002187 }; uint32_t libfsapfs_name_case_folding_mappings_0x000024b0[ 32 ] = { /* 0x000024b0 */ 0x000024b0, /* 0x000024b1 */ 0x000024b1, /* 0x000024b2 */ 0x000024b2, /* 0x000024b3 */ 0x000024b3, /* 0x000024b4 */ 0x000024b4, /* 0x000024b5 */ 0x000024b5, /* 0x000024b6 */ 0x000024d0, /* 0x000024b7 */ 0x000024d1, /* 0x000024b8 */ 0x000024d2, /* 0x000024b9 */ 0x000024d3, /* 0x000024ba */ 0x000024d4, /* 0x000024bb */ 0x000024d5, /* 0x000024bc */ 0x000024d6, /* 0x000024bd */ 0x000024d7, /* 0x000024be */ 0x000024d8, /* 0x000024bf */ 0x000024d9, /* 0x000024c0 */ 0x000024da, /* 0x000024c1 */ 0x000024db, /* 0x000024c2 */ 0x000024dc, /* 0x000024c3 */ 0x000024dd, /* 0x000024c4 */ 0x000024de, /* 0x000024c5 */ 0x000024df, /* 0x000024c6 */ 0x000024e0, /* 0x000024c7 */ 0x000024e1, /* 0x000024c8 */ 0x000024e2, /* 0x000024c9 */ 0x000024e3, /* 0x000024ca */ 0x000024e4, /* 0x000024cb */ 0x000024e5, /* 0x000024cc */ 0x000024e6, /* 0x000024cd */ 0x000024e7, /* 0x000024ce */ 0x000024e8, /* 0x000024cf */ 0x000024e9 }; uint32_t libfsapfs_name_case_folding_mappings_0x00002c00[ 248 ] = { /* 0x00002c00 */ 0x00002c30, /* 0x00002c01 */ 0x00002c31, /* 0x00002c02 */ 0x00002c32, /* 0x00002c03 */ 0x00002c33, /* 0x00002c04 */ 0x00002c34, /* 0x00002c05 */ 0x00002c35, /* 0x00002c06 */ 0x00002c36, /* 0x00002c07 */ 0x00002c37, /* 0x00002c08 */ 0x00002c38, /* 0x00002c09 */ 0x00002c39, /* 0x00002c0a */ 0x00002c3a, /* 0x00002c0b */ 0x00002c3b, /* 0x00002c0c */ 0x00002c3c, /* 0x00002c0d */ 0x00002c3d, /* 0x00002c0e */ 0x00002c3e, /* 0x00002c0f */ 0x00002c3f, /* 0x00002c10 */ 0x00002c40, /* 0x00002c11 */ 0x00002c41, /* 0x00002c12 */ 0x00002c42, /* 0x00002c13 */ 0x00002c43, /* 0x00002c14 */ 0x00002c44, /* 0x00002c15 */ 0x00002c45, /* 0x00002c16 */ 0x00002c46, /* 0x00002c17 */ 0x00002c47, /* 0x00002c18 */ 0x00002c48, /* 0x00002c19 */ 0x00002c49, /* 0x00002c1a */ 0x00002c4a, /* 0x00002c1b */ 0x00002c4b, /* 0x00002c1c */ 0x00002c4c, /* 0x00002c1d */ 0x00002c4d, /* 0x00002c1e */ 0x00002c4e, /* 0x00002c1f */ 0x00002c4f, /* 0x00002c20 */ 0x00002c50, /* 0x00002c21 */ 0x00002c51, /* 0x00002c22 */ 0x00002c52, /* 0x00002c23 */ 0x00002c53, /* 0x00002c24 */ 0x00002c54, /* 0x00002c25 */ 0x00002c55, /* 0x00002c26 */ 0x00002c56, /* 0x00002c27 */ 0x00002c57, /* 0x00002c28 */ 0x00002c58, /* 0x00002c29 */ 0x00002c59, /* 0x00002c2a */ 0x00002c5a, /* 0x00002c2b */ 0x00002c5b, /* 0x00002c2c */ 0x00002c5c, /* 0x00002c2d */ 0x00002c5d, /* 0x00002c2e */ 0x00002c5e, /* 0x00002c2f */ 0x00002c2f, /* 0x00002c30 */ 0x00002c30, /* 0x00002c31 */ 0x00002c31, /* 0x00002c32 */ 0x00002c32, /* 0x00002c33 */ 0x00002c33, /* 0x00002c34 */ 0x00002c34, /* 0x00002c35 */ 0x00002c35, /* 0x00002c36 */ 0x00002c36, /* 0x00002c37 */ 0x00002c37, /* 0x00002c38 */ 0x00002c38, /* 0x00002c39 */ 0x00002c39, /* 0x00002c3a */ 0x00002c3a, /* 0x00002c3b */ 0x00002c3b, /* 0x00002c3c */ 0x00002c3c, /* 0x00002c3d */ 0x00002c3d, /* 0x00002c3e */ 0x00002c3e, /* 0x00002c3f */ 0x00002c3f, /* 0x00002c40 */ 0x00002c40, /* 0x00002c41 */ 0x00002c41, /* 0x00002c42 */ 0x00002c42, /* 0x00002c43 */ 0x00002c43, /* 0x00002c44 */ 0x00002c44, /* 0x00002c45 */ 0x00002c45, /* 0x00002c46 */ 0x00002c46, /* 0x00002c47 */ 0x00002c47, /* 0x00002c48 */ 0x00002c48, /* 0x00002c49 */ 0x00002c49, /* 0x00002c4a */ 0x00002c4a, /* 0x00002c4b */ 0x00002c4b, /* 0x00002c4c */ 0x00002c4c, /* 0x00002c4d */ 0x00002c4d, /* 0x00002c4e */ 0x00002c4e, /* 0x00002c4f */ 0x00002c4f, /* 0x00002c50 */ 0x00002c50, /* 0x00002c51 */ 0x00002c51, /* 0x00002c52 */ 0x00002c52, /* 0x00002c53 */ 0x00002c53, /* 0x00002c54 */ 0x00002c54, /* 0x00002c55 */ 0x00002c55, /* 0x00002c56 */ 0x00002c56, /* 0x00002c57 */ 0x00002c57, /* 0x00002c58 */ 0x00002c58, /* 0x00002c59 */ 0x00002c59, /* 0x00002c5a */ 0x00002c5a, /* 0x00002c5b */ 0x00002c5b, /* 0x00002c5c */ 0x00002c5c, /* 0x00002c5d */ 0x00002c5d, /* 0x00002c5e */ 0x00002c5e, /* 0x00002c5f */ 0x00002c5f, /* 0x00002c60 */ 0x00002c61, /* 0x00002c61 */ 0x00002c61, /* 0x00002c62 */ 0x0000026b, /* 0x00002c63 */ 0x00001d7d, /* 0x00002c64 */ 0x0000027d, /* 0x00002c65 */ 0x00002c65, /* 0x00002c66 */ 0x00002c66, /* 0x00002c67 */ 0x00002c68, /* 0x00002c68 */ 0x00002c68, /* 0x00002c69 */ 0x00002c6a, /* 0x00002c6a */ 0x00002c6a, /* 0x00002c6b */ 0x00002c6c, /* 0x00002c6c */ 0x00002c6c, /* 0x00002c6d */ 0x00000251, /* 0x00002c6e */ 0x00000271, /* 0x00002c6f */ 0x00000250, /* 0x00002c70 */ 0x00000252, /* 0x00002c71 */ 0x00002c71, /* 0x00002c72 */ 0x00002c73, /* 0x00002c73 */ 0x00002c73, /* 0x00002c74 */ 0x00002c74, /* 0x00002c75 */ 0x00002c76, /* 0x00002c76 */ 0x00002c76, /* 0x00002c77 */ 0x00002c77, /* 0x00002c78 */ 0x00002c78, /* 0x00002c79 */ 0x00002c79, /* 0x00002c7a */ 0x00002c7a, /* 0x00002c7b */ 0x00002c7b, /* 0x00002c7c */ 0x00002c7c, /* 0x00002c7d */ 0x00002c7d, /* 0x00002c7e */ 0x0000023f, /* 0x00002c7f */ 0x00000240, /* 0x00002c80 */ 0x00002c81, /* 0x00002c81 */ 0x00002c81, /* 0x00002c82 */ 0x00002c83, /* 0x00002c83 */ 0x00002c83, /* 0x00002c84 */ 0x00002c85, /* 0x00002c85 */ 0x00002c85, /* 0x00002c86 */ 0x00002c87, /* 0x00002c87 */ 0x00002c87, /* 0x00002c88 */ 0x00002c89, /* 0x00002c89 */ 0x00002c89, /* 0x00002c8a */ 0x00002c8b, /* 0x00002c8b */ 0x00002c8b, /* 0x00002c8c */ 0x00002c8d, /* 0x00002c8d */ 0x00002c8d, /* 0x00002c8e */ 0x00002c8f, /* 0x00002c8f */ 0x00002c8f, /* 0x00002c90 */ 0x00002c91, /* 0x00002c91 */ 0x00002c91, /* 0x00002c92 */ 0x00002c93, /* 0x00002c93 */ 0x00002c93, /* 0x00002c94 */ 0x00002c95, /* 0x00002c95 */ 0x00002c95, /* 0x00002c96 */ 0x00002c97, /* 0x00002c97 */ 0x00002c97, /* 0x00002c98 */ 0x00002c99, /* 0x00002c99 */ 0x00002c99, /* 0x00002c9a */ 0x00002c9b, /* 0x00002c9b */ 0x00002c9b, /* 0x00002c9c */ 0x00002c9d, /* 0x00002c9d */ 0x00002c9d, /* 0x00002c9e */ 0x00002c9f, /* 0x00002c9f */ 0x00002c9f, /* 0x00002ca0 */ 0x00002ca1, /* 0x00002ca1 */ 0x00002ca1, /* 0x00002ca2 */ 0x00002ca3, /* 0x00002ca3 */ 0x00002ca3, /* 0x00002ca4 */ 0x00002ca5, /* 0x00002ca5 */ 0x00002ca5, /* 0x00002ca6 */ 0x00002ca7, /* 0x00002ca7 */ 0x00002ca7, /* 0x00002ca8 */ 0x00002ca9, /* 0x00002ca9 */ 0x00002ca9, /* 0x00002caa */ 0x00002cab, /* 0x00002cab */ 0x00002cab, /* 0x00002cac */ 0x00002cad, /* 0x00002cad */ 0x00002cad, /* 0x00002cae */ 0x00002caf, /* 0x00002caf */ 0x00002caf, /* 0x00002cb0 */ 0x00002cb1, /* 0x00002cb1 */ 0x00002cb1, /* 0x00002cb2 */ 0x00002cb3, /* 0x00002cb3 */ 0x00002cb3, /* 0x00002cb4 */ 0x00002cb5, /* 0x00002cb5 */ 0x00002cb5, /* 0x00002cb6 */ 0x00002cb7, /* 0x00002cb7 */ 0x00002cb7, /* 0x00002cb8 */ 0x00002cb9, /* 0x00002cb9 */ 0x00002cb9, /* 0x00002cba */ 0x00002cbb, /* 0x00002cbb */ 0x00002cbb, /* 0x00002cbc */ 0x00002cbd, /* 0x00002cbd */ 0x00002cbd, /* 0x00002cbe */ 0x00002cbf, /* 0x00002cbf */ 0x00002cbf, /* 0x00002cc0 */ 0x00002cc1, /* 0x00002cc1 */ 0x00002cc1, /* 0x00002cc2 */ 0x00002cc3, /* 0x00002cc3 */ 0x00002cc3, /* 0x00002cc4 */ 0x00002cc5, /* 0x00002cc5 */ 0x00002cc5, /* 0x00002cc6 */ 0x00002cc7, /* 0x00002cc7 */ 0x00002cc7, /* 0x00002cc8 */ 0x00002cc9, /* 0x00002cc9 */ 0x00002cc9, /* 0x00002cca */ 0x00002ccb, /* 0x00002ccb */ 0x00002ccb, /* 0x00002ccc */ 0x00002ccd, /* 0x00002ccd */ 0x00002ccd, /* 0x00002cce */ 0x00002ccf, /* 0x00002ccf */ 0x00002ccf, /* 0x00002cd0 */ 0x00002cd1, /* 0x00002cd1 */ 0x00002cd1, /* 0x00002cd2 */ 0x00002cd3, /* 0x00002cd3 */ 0x00002cd3, /* 0x00002cd4 */ 0x00002cd5, /* 0x00002cd5 */ 0x00002cd5, /* 0x00002cd6 */ 0x00002cd7, /* 0x00002cd7 */ 0x00002cd7, /* 0x00002cd8 */ 0x00002cd9, /* 0x00002cd9 */ 0x00002cd9, /* 0x00002cda */ 0x00002cdb, /* 0x00002cdb */ 0x00002cdb, /* 0x00002cdc */ 0x00002cdd, /* 0x00002cdd */ 0x00002cdd, /* 0x00002cde */ 0x00002cdf, /* 0x00002cdf */ 0x00002cdf, /* 0x00002ce0 */ 0x00002ce1, /* 0x00002ce1 */ 0x00002ce1, /* 0x00002ce2 */ 0x00002ce3, /* 0x00002ce3 */ 0x00002ce3, /* 0x00002ce4 */ 0x00002ce4, /* 0x00002ce5 */ 0x00002ce5, /* 0x00002ce6 */ 0x00002ce6, /* 0x00002ce7 */ 0x00002ce7, /* 0x00002ce8 */ 0x00002ce8, /* 0x00002ce9 */ 0x00002ce9, /* 0x00002cea */ 0x00002cea, /* 0x00002ceb */ 0x00002cec, /* 0x00002cec */ 0x00002cec, /* 0x00002ced */ 0x00002cee, /* 0x00002cee */ 0x00002cee, /* 0x00002cef */ 0x00002cef, /* 0x00002cf0 */ 0x00002cf0, /* 0x00002cf1 */ 0x00002cf1, /* 0x00002cf2 */ 0x00002cf3, /* 0x00002cf3 */ 0x00002cf3, /* 0x00002cf4 */ 0x00002cf4, /* 0x00002cf5 */ 0x00002cf5, /* 0x00002cf6 */ 0x00002cf6, /* 0x00002cf7 */ 0x00002cf7 }; uint32_t libfsapfs_name_case_folding_mappings_0x0000a640[ 96 ] = { /* 0x0000a640 */ 0x0000a641, /* 0x0000a641 */ 0x0000a641, /* 0x0000a642 */ 0x0000a643, /* 0x0000a643 */ 0x0000a643, /* 0x0000a644 */ 0x0000a645, /* 0x0000a645 */ 0x0000a645, /* 0x0000a646 */ 0x0000a647, /* 0x0000a647 */ 0x0000a647, /* 0x0000a648 */ 0x0000a649, /* 0x0000a649 */ 0x0000a649, /* 0x0000a64a */ 0x0000a64b, /* 0x0000a64b */ 0x0000a64b, /* 0x0000a64c */ 0x0000a64d, /* 0x0000a64d */ 0x0000a64d, /* 0x0000a64e */ 0x0000a64f, /* 0x0000a64f */ 0x0000a64f, /* 0x0000a650 */ 0x0000a651, /* 0x0000a651 */ 0x0000a651, /* 0x0000a652 */ 0x0000a653, /* 0x0000a653 */ 0x0000a653, /* 0x0000a654 */ 0x0000a655, /* 0x0000a655 */ 0x0000a655, /* 0x0000a656 */ 0x0000a657, /* 0x0000a657 */ 0x0000a657, /* 0x0000a658 */ 0x0000a659, /* 0x0000a659 */ 0x0000a659, /* 0x0000a65a */ 0x0000a65b, /* 0x0000a65b */ 0x0000a65b, /* 0x0000a65c */ 0x0000a65d, /* 0x0000a65d */ 0x0000a65d, /* 0x0000a65e */ 0x0000a65f, /* 0x0000a65f */ 0x0000a65f, /* 0x0000a660 */ 0x0000a661, /* 0x0000a661 */ 0x0000a661, /* 0x0000a662 */ 0x0000a663, /* 0x0000a663 */ 0x0000a663, /* 0x0000a664 */ 0x0000a665, /* 0x0000a665 */ 0x0000a665, /* 0x0000a666 */ 0x0000a667, /* 0x0000a667 */ 0x0000a667, /* 0x0000a668 */ 0x0000a669, /* 0x0000a669 */ 0x0000a669, /* 0x0000a66a */ 0x0000a66b, /* 0x0000a66b */ 0x0000a66b, /* 0x0000a66c */ 0x0000a66d, /* 0x0000a66d */ 0x0000a66d, /* 0x0000a66e */ 0x0000a66e, /* 0x0000a66f */ 0x0000a66f, /* 0x0000a670 */ 0x0000a670, /* 0x0000a671 */ 0x0000a671, /* 0x0000a672 */ 0x0000a672, /* 0x0000a673 */ 0x0000a673, /* 0x0000a674 */ 0x0000a674, /* 0x0000a675 */ 0x0000a675, /* 0x0000a676 */ 0x0000a676, /* 0x0000a677 */ 0x0000a677, /* 0x0000a678 */ 0x0000a678, /* 0x0000a679 */ 0x0000a679, /* 0x0000a67a */ 0x0000a67a, /* 0x0000a67b */ 0x0000a67b, /* 0x0000a67c */ 0x0000a67c, /* 0x0000a67d */ 0x0000a67d, /* 0x0000a67e */ 0x0000a67e, /* 0x0000a67f */ 0x0000a67f, /* 0x0000a680 */ 0x0000a681, /* 0x0000a681 */ 0x0000a681, /* 0x0000a682 */ 0x0000a683, /* 0x0000a683 */ 0x0000a683, /* 0x0000a684 */ 0x0000a685, /* 0x0000a685 */ 0x0000a685, /* 0x0000a686 */ 0x0000a687, /* 0x0000a687 */ 0x0000a687, /* 0x0000a688 */ 0x0000a689, /* 0x0000a689 */ 0x0000a689, /* 0x0000a68a */ 0x0000a68b, /* 0x0000a68b */ 0x0000a68b, /* 0x0000a68c */ 0x0000a68d, /* 0x0000a68d */ 0x0000a68d, /* 0x0000a68e */ 0x0000a68f, /* 0x0000a68f */ 0x0000a68f, /* 0x0000a690 */ 0x0000a691, /* 0x0000a691 */ 0x0000a691, /* 0x0000a692 */ 0x0000a693, /* 0x0000a693 */ 0x0000a693, /* 0x0000a694 */ 0x0000a695, /* 0x0000a695 */ 0x0000a695, /* 0x0000a696 */ 0x0000a697, /* 0x0000a697 */ 0x0000a697, /* 0x0000a698 */ 0x0000a699, /* 0x0000a699 */ 0x0000a699, /* 0x0000a69a */ 0x0000a69b, /* 0x0000a69b */ 0x0000a69b, /* 0x0000a69c */ 0x0000a69c, /* 0x0000a69d */ 0x0000a69d, /* 0x0000a69e */ 0x0000a69e, /* 0x0000a69f */ 0x0000a69f }; uint32_t libfsapfs_name_case_folding_mappings_0x0000a720[ 152 ] = { /* 0x0000a720 */ 0x0000a720, /* 0x0000a721 */ 0x0000a721, /* 0x0000a722 */ 0x0000a723, /* 0x0000a723 */ 0x0000a723, /* 0x0000a724 */ 0x0000a725, /* 0x0000a725 */ 0x0000a725, /* 0x0000a726 */ 0x0000a727, /* 0x0000a727 */ 0x0000a727, /* 0x0000a728 */ 0x0000a729, /* 0x0000a729 */ 0x0000a729, /* 0x0000a72a */ 0x0000a72b, /* 0x0000a72b */ 0x0000a72b, /* 0x0000a72c */ 0x0000a72d, /* 0x0000a72d */ 0x0000a72d, /* 0x0000a72e */ 0x0000a72f, /* 0x0000a72f */ 0x0000a72f, /* 0x0000a730 */ 0x0000a730, /* 0x0000a731 */ 0x0000a731, /* 0x0000a732 */ 0x0000a733, /* 0x0000a733 */ 0x0000a733, /* 0x0000a734 */ 0x0000a735, /* 0x0000a735 */ 0x0000a735, /* 0x0000a736 */ 0x0000a737, /* 0x0000a737 */ 0x0000a737, /* 0x0000a738 */ 0x0000a739, /* 0x0000a739 */ 0x0000a739, /* 0x0000a73a */ 0x0000a73b, /* 0x0000a73b */ 0x0000a73b, /* 0x0000a73c */ 0x0000a73d, /* 0x0000a73d */ 0x0000a73d, /* 0x0000a73e */ 0x0000a73f, /* 0x0000a73f */ 0x0000a73f, /* 0x0000a740 */ 0x0000a741, /* 0x0000a741 */ 0x0000a741, /* 0x0000a742 */ 0x0000a743, /* 0x0000a743 */ 0x0000a743, /* 0x0000a744 */ 0x0000a745, /* 0x0000a745 */ 0x0000a745, /* 0x0000a746 */ 0x0000a747, /* 0x0000a747 */ 0x0000a747, /* 0x0000a748 */ 0x0000a749, /* 0x0000a749 */ 0x0000a749, /* 0x0000a74a */ 0x0000a74b, /* 0x0000a74b */ 0x0000a74b, /* 0x0000a74c */ 0x0000a74d, /* 0x0000a74d */ 0x0000a74d, /* 0x0000a74e */ 0x0000a74f, /* 0x0000a74f */ 0x0000a74f, /* 0x0000a750 */ 0x0000a751, /* 0x0000a751 */ 0x0000a751, /* 0x0000a752 */ 0x0000a753, /* 0x0000a753 */ 0x0000a753, /* 0x0000a754 */ 0x0000a755, /* 0x0000a755 */ 0x0000a755, /* 0x0000a756 */ 0x0000a757, /* 0x0000a757 */ 0x0000a757, /* 0x0000a758 */ 0x0000a759, /* 0x0000a759 */ 0x0000a759, /* 0x0000a75a */ 0x0000a75b, /* 0x0000a75b */ 0x0000a75b, /* 0x0000a75c */ 0x0000a75d, /* 0x0000a75d */ 0x0000a75d, /* 0x0000a75e */ 0x0000a75f, /* 0x0000a75f */ 0x0000a75f, /* 0x0000a760 */ 0x0000a761, /* 0x0000a761 */ 0x0000a761, /* 0x0000a762 */ 0x0000a763, /* 0x0000a763 */ 0x0000a763, /* 0x0000a764 */ 0x0000a765, /* 0x0000a765 */ 0x0000a765, /* 0x0000a766 */ 0x0000a767, /* 0x0000a767 */ 0x0000a767, /* 0x0000a768 */ 0x0000a769, /* 0x0000a769 */ 0x0000a769, /* 0x0000a76a */ 0x0000a76b, /* 0x0000a76b */ 0x0000a76b, /* 0x0000a76c */ 0x0000a76d, /* 0x0000a76d */ 0x0000a76d, /* 0x0000a76e */ 0x0000a76f, /* 0x0000a76f */ 0x0000a76f, /* 0x0000a770 */ 0x0000a770, /* 0x0000a771 */ 0x0000a771, /* 0x0000a772 */ 0x0000a772, /* 0x0000a773 */ 0x0000a773, /* 0x0000a774 */ 0x0000a774, /* 0x0000a775 */ 0x0000a775, /* 0x0000a776 */ 0x0000a776, /* 0x0000a777 */ 0x0000a777, /* 0x0000a778 */ 0x0000a778, /* 0x0000a779 */ 0x0000a77a, /* 0x0000a77a */ 0x0000a77a, /* 0x0000a77b */ 0x0000a77c, /* 0x0000a77c */ 0x0000a77c, /* 0x0000a77d */ 0x00001d79, /* 0x0000a77e */ 0x0000a77f, /* 0x0000a77f */ 0x0000a77f, /* 0x0000a780 */ 0x0000a781, /* 0x0000a781 */ 0x0000a781, /* 0x0000a782 */ 0x0000a783, /* 0x0000a783 */ 0x0000a783, /* 0x0000a784 */ 0x0000a785, /* 0x0000a785 */ 0x0000a785, /* 0x0000a786 */ 0x0000a787, /* 0x0000a787 */ 0x0000a787, /* 0x0000a788 */ 0x0000a788, /* 0x0000a789 */ 0x0000a789, /* 0x0000a78a */ 0x0000a78a, /* 0x0000a78b */ 0x0000a78c, /* 0x0000a78c */ 0x0000a78c, /* 0x0000a78d */ 0x00000265, /* 0x0000a78e */ 0x0000a78e, /* 0x0000a78f */ 0x0000a78f, /* 0x0000a790 */ 0x0000a791, /* 0x0000a791 */ 0x0000a791, /* 0x0000a792 */ 0x0000a793, /* 0x0000a793 */ 0x0000a793, /* 0x0000a794 */ 0x0000a794, /* 0x0000a795 */ 0x0000a795, /* 0x0000a796 */ 0x0000a797, /* 0x0000a797 */ 0x0000a797, /* 0x0000a798 */ 0x0000a799, /* 0x0000a799 */ 0x0000a799, /* 0x0000a79a */ 0x0000a79b, /* 0x0000a79b */ 0x0000a79b, /* 0x0000a79c */ 0x0000a79d, /* 0x0000a79d */ 0x0000a79d, /* 0x0000a79e */ 0x0000a79f, /* 0x0000a79f */ 0x0000a79f, /* 0x0000a7a0 */ 0x0000a7a1, /* 0x0000a7a1 */ 0x0000a7a1, /* 0x0000a7a2 */ 0x0000a7a3, /* 0x0000a7a3 */ 0x0000a7a3, /* 0x0000a7a4 */ 0x0000a7a5, /* 0x0000a7a5 */ 0x0000a7a5, /* 0x0000a7a6 */ 0x0000a7a7, /* 0x0000a7a7 */ 0x0000a7a7, /* 0x0000a7a8 */ 0x0000a7a9, /* 0x0000a7a9 */ 0x0000a7a9, /* 0x0000a7aa */ 0x00000266, /* 0x0000a7ab */ 0x0000025c, /* 0x0000a7ac */ 0x00000261, /* 0x0000a7ad */ 0x0000026c, /* 0x0000a7ae */ 0x0000026a, /* 0x0000a7af */ 0x0000a7af, /* 0x0000a7b0 */ 0x0000029e, /* 0x0000a7b1 */ 0x00000287, /* 0x0000a7b2 */ 0x0000029d, /* 0x0000a7b3 */ 0x0000ab53, /* 0x0000a7b4 */ 0x0000a7b5, /* 0x0000a7b5 */ 0x0000a7b5, /* 0x0000a7b6 */ 0x0000a7b7, /* 0x0000a7b7 */ 0x0000a7b7 }; uint32_t libfsapfs_name_case_folding_mappings_0x0000ab70[ 80 ] = { /* 0x0000ab70 */ 0x000013a0, /* 0x0000ab71 */ 0x000013a1, /* 0x0000ab72 */ 0x000013a2, /* 0x0000ab73 */ 0x000013a3, /* 0x0000ab74 */ 0x000013a4, /* 0x0000ab75 */ 0x000013a5, /* 0x0000ab76 */ 0x000013a6, /* 0x0000ab77 */ 0x000013a7, /* 0x0000ab78 */ 0x000013a8, /* 0x0000ab79 */ 0x000013a9, /* 0x0000ab7a */ 0x000013aa, /* 0x0000ab7b */ 0x000013ab, /* 0x0000ab7c */ 0x000013ac, /* 0x0000ab7d */ 0x000013ad, /* 0x0000ab7e */ 0x000013ae, /* 0x0000ab7f */ 0x000013af, /* 0x0000ab80 */ 0x000013b0, /* 0x0000ab81 */ 0x000013b1, /* 0x0000ab82 */ 0x000013b2, /* 0x0000ab83 */ 0x000013b3, /* 0x0000ab84 */ 0x000013b4, /* 0x0000ab85 */ 0x000013b5, /* 0x0000ab86 */ 0x000013b6, /* 0x0000ab87 */ 0x000013b7, /* 0x0000ab88 */ 0x000013b8, /* 0x0000ab89 */ 0x000013b9, /* 0x0000ab8a */ 0x000013ba, /* 0x0000ab8b */ 0x000013bb, /* 0x0000ab8c */ 0x000013bc, /* 0x0000ab8d */ 0x000013bd, /* 0x0000ab8e */ 0x000013be, /* 0x0000ab8f */ 0x000013bf, /* 0x0000ab90 */ 0x000013c0, /* 0x0000ab91 */ 0x000013c1, /* 0x0000ab92 */ 0x000013c2, /* 0x0000ab93 */ 0x000013c3, /* 0x0000ab94 */ 0x000013c4, /* 0x0000ab95 */ 0x000013c5, /* 0x0000ab96 */ 0x000013c6, /* 0x0000ab97 */ 0x000013c7, /* 0x0000ab98 */ 0x000013c8, /* 0x0000ab99 */ 0x000013c9, /* 0x0000ab9a */ 0x000013ca, /* 0x0000ab9b */ 0x000013cb, /* 0x0000ab9c */ 0x000013cc, /* 0x0000ab9d */ 0x000013cd, /* 0x0000ab9e */ 0x000013ce, /* 0x0000ab9f */ 0x000013cf, /* 0x0000aba0 */ 0x000013d0, /* 0x0000aba1 */ 0x000013d1, /* 0x0000aba2 */ 0x000013d2, /* 0x0000aba3 */ 0x000013d3, /* 0x0000aba4 */ 0x000013d4, /* 0x0000aba5 */ 0x000013d5, /* 0x0000aba6 */ 0x000013d6, /* 0x0000aba7 */ 0x000013d7, /* 0x0000aba8 */ 0x000013d8, /* 0x0000aba9 */ 0x000013d9, /* 0x0000abaa */ 0x000013da, /* 0x0000abab */ 0x000013db, /* 0x0000abac */ 0x000013dc, /* 0x0000abad */ 0x000013dd, /* 0x0000abae */ 0x000013de, /* 0x0000abaf */ 0x000013df, /* 0x0000abb0 */ 0x000013e0, /* 0x0000abb1 */ 0x000013e1, /* 0x0000abb2 */ 0x000013e2, /* 0x0000abb3 */ 0x000013e3, /* 0x0000abb4 */ 0x000013e4, /* 0x0000abb5 */ 0x000013e5, /* 0x0000abb6 */ 0x000013e6, /* 0x0000abb7 */ 0x000013e7, /* 0x0000abb8 */ 0x000013e8, /* 0x0000abb9 */ 0x000013e9, /* 0x0000abba */ 0x000013ea, /* 0x0000abbb */ 0x000013eb, /* 0x0000abbc */ 0x000013ec, /* 0x0000abbd */ 0x000013ed, /* 0x0000abbe */ 0x000013ee, /* 0x0000abbf */ 0x000013ef }; uint32_t libfsapfs_name_case_folding_mappings_0x0000ff20[ 32 ] = { /* 0x0000ff20 */ 0x0000ff20, /* 0x0000ff21 */ 0x0000ff41, /* 0x0000ff22 */ 0x0000ff42, /* 0x0000ff23 */ 0x0000ff43, /* 0x0000ff24 */ 0x0000ff44, /* 0x0000ff25 */ 0x0000ff45, /* 0x0000ff26 */ 0x0000ff46, /* 0x0000ff27 */ 0x0000ff47, /* 0x0000ff28 */ 0x0000ff48, /* 0x0000ff29 */ 0x0000ff49, /* 0x0000ff2a */ 0x0000ff4a, /* 0x0000ff2b */ 0x0000ff4b, /* 0x0000ff2c */ 0x0000ff4c, /* 0x0000ff2d */ 0x0000ff4d, /* 0x0000ff2e */ 0x0000ff4e, /* 0x0000ff2f */ 0x0000ff4f, /* 0x0000ff30 */ 0x0000ff50, /* 0x0000ff31 */ 0x0000ff51, /* 0x0000ff32 */ 0x0000ff52, /* 0x0000ff33 */ 0x0000ff53, /* 0x0000ff34 */ 0x0000ff54, /* 0x0000ff35 */ 0x0000ff55, /* 0x0000ff36 */ 0x0000ff56, /* 0x0000ff37 */ 0x0000ff57, /* 0x0000ff38 */ 0x0000ff58, /* 0x0000ff39 */ 0x0000ff59, /* 0x0000ff3a */ 0x0000ff5a, /* 0x0000ff3b */ 0x0000ff3b, /* 0x0000ff3c */ 0x0000ff3c, /* 0x0000ff3d */ 0x0000ff3d, /* 0x0000ff3e */ 0x0000ff3e, /* 0x0000ff3f */ 0x0000ff3f }; uint32_t libfsapfs_name_case_folding_mappings_0x00010400[ 40 ] = { /* 0x00010400 */ 0x00010428, /* 0x00010401 */ 0x00010429, /* 0x00010402 */ 0x0001042a, /* 0x00010403 */ 0x0001042b, /* 0x00010404 */ 0x0001042c, /* 0x00010405 */ 0x0001042d, /* 0x00010406 */ 0x0001042e, /* 0x00010407 */ 0x0001042f, /* 0x00010408 */ 0x00010430, /* 0x00010409 */ 0x00010431, /* 0x0001040a */ 0x00010432, /* 0x0001040b */ 0x00010433, /* 0x0001040c */ 0x00010434, /* 0x0001040d */ 0x00010435, /* 0x0001040e */ 0x00010436, /* 0x0001040f */ 0x00010437, /* 0x00010410 */ 0x00010438, /* 0x00010411 */ 0x00010439, /* 0x00010412 */ 0x0001043a, /* 0x00010413 */ 0x0001043b, /* 0x00010414 */ 0x0001043c, /* 0x00010415 */ 0x0001043d, /* 0x00010416 */ 0x0001043e, /* 0x00010417 */ 0x0001043f, /* 0x00010418 */ 0x00010440, /* 0x00010419 */ 0x00010441, /* 0x0001041a */ 0x00010442, /* 0x0001041b */ 0x00010443, /* 0x0001041c */ 0x00010444, /* 0x0001041d */ 0x00010445, /* 0x0001041e */ 0x00010446, /* 0x0001041f */ 0x00010447, /* 0x00010420 */ 0x00010448, /* 0x00010421 */ 0x00010449, /* 0x00010422 */ 0x0001044a, /* 0x00010423 */ 0x0001044b, /* 0x00010424 */ 0x0001044c, /* 0x00010425 */ 0x0001044d, /* 0x00010426 */ 0x0001044e, /* 0x00010427 */ 0x0001044f }; uint32_t libfsapfs_name_case_folding_mappings_0x000104b0[ 40 ] = { /* 0x000104b0 */ 0x000104d8, /* 0x000104b1 */ 0x000104d9, /* 0x000104b2 */ 0x000104da, /* 0x000104b3 */ 0x000104db, /* 0x000104b4 */ 0x000104dc, /* 0x000104b5 */ 0x000104dd, /* 0x000104b6 */ 0x000104de, /* 0x000104b7 */ 0x000104df, /* 0x000104b8 */ 0x000104e0, /* 0x000104b9 */ 0x000104e1, /* 0x000104ba */ 0x000104e2, /* 0x000104bb */ 0x000104e3, /* 0x000104bc */ 0x000104e4, /* 0x000104bd */ 0x000104e5, /* 0x000104be */ 0x000104e6, /* 0x000104bf */ 0x000104e7, /* 0x000104c0 */ 0x000104e8, /* 0x000104c1 */ 0x000104e9, /* 0x000104c2 */ 0x000104ea, /* 0x000104c3 */ 0x000104eb, /* 0x000104c4 */ 0x000104ec, /* 0x000104c5 */ 0x000104ed, /* 0x000104c6 */ 0x000104ee, /* 0x000104c7 */ 0x000104ef, /* 0x000104c8 */ 0x000104f0, /* 0x000104c9 */ 0x000104f1, /* 0x000104ca */ 0x000104f2, /* 0x000104cb */ 0x000104f3, /* 0x000104cc */ 0x000104f4, /* 0x000104cd */ 0x000104f5, /* 0x000104ce */ 0x000104f6, /* 0x000104cf */ 0x000104f7, /* 0x000104d0 */ 0x000104f8, /* 0x000104d1 */ 0x000104f9, /* 0x000104d2 */ 0x000104fa, /* 0x000104d3 */ 0x000104fb, /* 0x000104d4 */ 0x000104d4, /* 0x000104d5 */ 0x000104d5, /* 0x000104d6 */ 0x000104d6, /* 0x000104d7 */ 0x000104d7 }; uint32_t libfsapfs_name_case_folding_mappings_0x00010c80[ 56 ] = { /* 0x00010c80 */ 0x00010cc0, /* 0x00010c81 */ 0x00010cc1, /* 0x00010c82 */ 0x00010cc2, /* 0x00010c83 */ 0x00010cc3, /* 0x00010c84 */ 0x00010cc4, /* 0x00010c85 */ 0x00010cc5, /* 0x00010c86 */ 0x00010cc6, /* 0x00010c87 */ 0x00010cc7, /* 0x00010c88 */ 0x00010cc8, /* 0x00010c89 */ 0x00010cc9, /* 0x00010c8a */ 0x00010cca, /* 0x00010c8b */ 0x00010ccb, /* 0x00010c8c */ 0x00010ccc, /* 0x00010c8d */ 0x00010ccd, /* 0x00010c8e */ 0x00010cce, /* 0x00010c8f */ 0x00010ccf, /* 0x00010c90 */ 0x00010cd0, /* 0x00010c91 */ 0x00010cd1, /* 0x00010c92 */ 0x00010cd2, /* 0x00010c93 */ 0x00010cd3, /* 0x00010c94 */ 0x00010cd4, /* 0x00010c95 */ 0x00010cd5, /* 0x00010c96 */ 0x00010cd6, /* 0x00010c97 */ 0x00010cd7, /* 0x00010c98 */ 0x00010cd8, /* 0x00010c99 */ 0x00010cd9, /* 0x00010c9a */ 0x00010cda, /* 0x00010c9b */ 0x00010cdb, /* 0x00010c9c */ 0x00010cdc, /* 0x00010c9d */ 0x00010cdd, /* 0x00010c9e */ 0x00010cde, /* 0x00010c9f */ 0x00010cdf, /* 0x00010ca0 */ 0x00010ce0, /* 0x00010ca1 */ 0x00010ce1, /* 0x00010ca2 */ 0x00010ce2, /* 0x00010ca3 */ 0x00010ce3, /* 0x00010ca4 */ 0x00010ce4, /* 0x00010ca5 */ 0x00010ce5, /* 0x00010ca6 */ 0x00010ce6, /* 0x00010ca7 */ 0x00010ce7, /* 0x00010ca8 */ 0x00010ce8, /* 0x00010ca9 */ 0x00010ce9, /* 0x00010caa */ 0x00010cea, /* 0x00010cab */ 0x00010ceb, /* 0x00010cac */ 0x00010cec, /* 0x00010cad */ 0x00010ced, /* 0x00010cae */ 0x00010cee, /* 0x00010caf */ 0x00010cef, /* 0x00010cb0 */ 0x00010cf0, /* 0x00010cb1 */ 0x00010cf1, /* 0x00010cb2 */ 0x00010cf2, /* 0x00010cb3 */ 0x00010cb3, /* 0x00010cb4 */ 0x00010cb4, /* 0x00010cb5 */ 0x00010cb5, /* 0x00010cb6 */ 0x00010cb6, /* 0x00010cb7 */ 0x00010cb7 }; uint32_t libfsapfs_name_case_folding_mappings_0x000118a0[ 32 ] = { /* 0x000118a0 */ 0x000118c0, /* 0x000118a1 */ 0x000118c1, /* 0x000118a2 */ 0x000118c2, /* 0x000118a3 */ 0x000118c3, /* 0x000118a4 */ 0x000118c4, /* 0x000118a5 */ 0x000118c5, /* 0x000118a6 */ 0x000118c6, /* 0x000118a7 */ 0x000118c7, /* 0x000118a8 */ 0x000118c8, /* 0x000118a9 */ 0x000118c9, /* 0x000118aa */ 0x000118ca, /* 0x000118ab */ 0x000118cb, /* 0x000118ac */ 0x000118cc, /* 0x000118ad */ 0x000118cd, /* 0x000118ae */ 0x000118ce, /* 0x000118af */ 0x000118cf, /* 0x000118b0 */ 0x000118d0, /* 0x000118b1 */ 0x000118d1, /* 0x000118b2 */ 0x000118d2, /* 0x000118b3 */ 0x000118d3, /* 0x000118b4 */ 0x000118d4, /* 0x000118b5 */ 0x000118d5, /* 0x000118b6 */ 0x000118d6, /* 0x000118b7 */ 0x000118d7, /* 0x000118b8 */ 0x000118d8, /* 0x000118b9 */ 0x000118d9, /* 0x000118ba */ 0x000118da, /* 0x000118bb */ 0x000118db, /* 0x000118bc */ 0x000118dc, /* 0x000118bd */ 0x000118dd, /* 0x000118be */ 0x000118de, /* 0x000118bf */ 0x000118df }; uint32_t libfsapfs_name_case_folding_mappings_0x0001e900[ 40 ] = { /* 0x0001e900 */ 0x0001e922, /* 0x0001e901 */ 0x0001e923, /* 0x0001e902 */ 0x0001e924, /* 0x0001e903 */ 0x0001e925, /* 0x0001e904 */ 0x0001e926, /* 0x0001e905 */ 0x0001e927, /* 0x0001e906 */ 0x0001e928, /* 0x0001e907 */ 0x0001e929, /* 0x0001e908 */ 0x0001e92a, /* 0x0001e909 */ 0x0001e92b, /* 0x0001e90a */ 0x0001e92c, /* 0x0001e90b */ 0x0001e92d, /* 0x0001e90c */ 0x0001e92e, /* 0x0001e90d */ 0x0001e92f, /* 0x0001e90e */ 0x0001e930, /* 0x0001e90f */ 0x0001e931, /* 0x0001e910 */ 0x0001e932, /* 0x0001e911 */ 0x0001e933, /* 0x0001e912 */ 0x0001e934, /* 0x0001e913 */ 0x0001e935, /* 0x0001e914 */ 0x0001e936, /* 0x0001e915 */ 0x0001e937, /* 0x0001e916 */ 0x0001e938, /* 0x0001e917 */ 0x0001e939, /* 0x0001e918 */ 0x0001e93a, /* 0x0001e919 */ 0x0001e93b, /* 0x0001e91a */ 0x0001e93c, /* 0x0001e91b */ 0x0001e93d, /* 0x0001e91c */ 0x0001e93e, /* 0x0001e91d */ 0x0001e93f, /* 0x0001e91e */ 0x0001e940, /* 0x0001e91f */ 0x0001e941, /* 0x0001e920 */ 0x0001e942, /* 0x0001e921 */ 0x0001e943, /* 0x0001e922 */ 0x0001e922, /* 0x0001e923 */ 0x0001e923, /* 0x0001e924 */ 0x0001e924, /* 0x0001e925 */ 0x0001e925, /* 0x0001e926 */ 0x0001e926, /* 0x0001e927 */ 0x0001e927 }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000000c0[ 192 ] = { /* 0x000000c0 */ { 2, { 0x00000041, 0x00000300 } }, /* 0x000000c1 */ { 2, { 0x00000041, 0x00000301 } }, /* 0x000000c2 */ { 2, { 0x00000041, 0x00000302 } }, /* 0x000000c3 */ { 2, { 0x00000041, 0x00000303 } }, /* 0x000000c4 */ { 2, { 0x00000041, 0x00000308 } }, /* 0x000000c5 */ { 2, { 0x00000041, 0x0000030a } }, /* 0x000000c6 */ { 1, { 0x000000c6 } }, /* 0x000000c7 */ { 2, { 0x00000043, 0x00000327 } }, /* 0x000000c8 */ { 2, { 0x00000045, 0x00000300 } }, /* 0x000000c9 */ { 2, { 0x00000045, 0x00000301 } }, /* 0x000000ca */ { 2, { 0x00000045, 0x00000302 } }, /* 0x000000cb */ { 2, { 0x00000045, 0x00000308 } }, /* 0x000000cc */ { 2, { 0x00000049, 0x00000300 } }, /* 0x000000cd */ { 2, { 0x00000049, 0x00000301 } }, /* 0x000000ce */ { 2, { 0x00000049, 0x00000302 } }, /* 0x000000cf */ { 2, { 0x00000049, 0x00000308 } }, /* 0x000000d0 */ { 1, { 0x000000d0 } }, /* 0x000000d1 */ { 2, { 0x0000004e, 0x00000303 } }, /* 0x000000d2 */ { 2, { 0x0000004f, 0x00000300 } }, /* 0x000000d3 */ { 2, { 0x0000004f, 0x00000301 } }, /* 0x000000d4 */ { 2, { 0x0000004f, 0x00000302 } }, /* 0x000000d5 */ { 2, { 0x0000004f, 0x00000303 } }, /* 0x000000d6 */ { 2, { 0x0000004f, 0x00000308 } }, /* 0x000000d7 */ { 1, { 0x000000d7 } }, /* 0x000000d8 */ { 1, { 0x000000d8 } }, /* 0x000000d9 */ { 2, { 0x00000055, 0x00000300 } }, /* 0x000000da */ { 2, { 0x00000055, 0x00000301 } }, /* 0x000000db */ { 2, { 0x00000055, 0x00000302 } }, /* 0x000000dc */ { 2, { 0x00000055, 0x00000308 } }, /* 0x000000dd */ { 2, { 0x00000059, 0x00000301 } }, /* 0x000000de */ { 1, { 0x000000de } }, /* 0x000000df */ { 1, { 0x000000df } }, /* 0x000000e0 */ { 2, { 0x00000061, 0x00000300 } }, /* 0x000000e1 */ { 2, { 0x00000061, 0x00000301 } }, /* 0x000000e2 */ { 2, { 0x00000061, 0x00000302 } }, /* 0x000000e3 */ { 2, { 0x00000061, 0x00000303 } }, /* 0x000000e4 */ { 2, { 0x00000061, 0x00000308 } }, /* 0x000000e5 */ { 2, { 0x00000061, 0x0000030a } }, /* 0x000000e6 */ { 1, { 0x000000e6 } }, /* 0x000000e7 */ { 2, { 0x00000063, 0x00000327 } }, /* 0x000000e8 */ { 2, { 0x00000065, 0x00000300 } }, /* 0x000000e9 */ { 2, { 0x00000065, 0x00000301 } }, /* 0x000000ea */ { 2, { 0x00000065, 0x00000302 } }, /* 0x000000eb */ { 2, { 0x00000065, 0x00000308 } }, /* 0x000000ec */ { 2, { 0x00000069, 0x00000300 } }, /* 0x000000ed */ { 2, { 0x00000069, 0x00000301 } }, /* 0x000000ee */ { 2, { 0x00000069, 0x00000302 } }, /* 0x000000ef */ { 2, { 0x00000069, 0x00000308 } }, /* 0x000000f0 */ { 1, { 0x000000f0 } }, /* 0x000000f1 */ { 2, { 0x0000006e, 0x00000303 } }, /* 0x000000f2 */ { 2, { 0x0000006f, 0x00000300 } }, /* 0x000000f3 */ { 2, { 0x0000006f, 0x00000301 } }, /* 0x000000f4 */ { 2, { 0x0000006f, 0x00000302 } }, /* 0x000000f5 */ { 2, { 0x0000006f, 0x00000303 } }, /* 0x000000f6 */ { 2, { 0x0000006f, 0x00000308 } }, /* 0x000000f7 */ { 1, { 0x000000f7 } }, /* 0x000000f8 */ { 1, { 0x000000f8 } }, /* 0x000000f9 */ { 2, { 0x00000075, 0x00000300 } }, /* 0x000000fa */ { 2, { 0x00000075, 0x00000301 } }, /* 0x000000fb */ { 2, { 0x00000075, 0x00000302 } }, /* 0x000000fc */ { 2, { 0x00000075, 0x00000308 } }, /* 0x000000fd */ { 2, { 0x00000079, 0x00000301 } }, /* 0x000000fe */ { 1, { 0x000000fe } }, /* 0x000000ff */ { 2, { 0x00000079, 0x00000308 } }, /* 0x00000100 */ { 2, { 0x00000041, 0x00000304 } }, /* 0x00000101 */ { 2, { 0x00000061, 0x00000304 } }, /* 0x00000102 */ { 2, { 0x00000041, 0x00000306 } }, /* 0x00000103 */ { 2, { 0x00000061, 0x00000306 } }, /* 0x00000104 */ { 2, { 0x00000041, 0x00000328 } }, /* 0x00000105 */ { 2, { 0x00000061, 0x00000328 } }, /* 0x00000106 */ { 2, { 0x00000043, 0x00000301 } }, /* 0x00000107 */ { 2, { 0x00000063, 0x00000301 } }, /* 0x00000108 */ { 2, { 0x00000043, 0x00000302 } }, /* 0x00000109 */ { 2, { 0x00000063, 0x00000302 } }, /* 0x0000010a */ { 2, { 0x00000043, 0x00000307 } }, /* 0x0000010b */ { 2, { 0x00000063, 0x00000307 } }, /* 0x0000010c */ { 2, { 0x00000043, 0x0000030c } }, /* 0x0000010d */ { 2, { 0x00000063, 0x0000030c } }, /* 0x0000010e */ { 2, { 0x00000044, 0x0000030c } }, /* 0x0000010f */ { 2, { 0x00000064, 0x0000030c } }, /* 0x00000110 */ { 1, { 0x00000110 } }, /* 0x00000111 */ { 1, { 0x00000111 } }, /* 0x00000112 */ { 2, { 0x00000045, 0x00000304 } }, /* 0x00000113 */ { 2, { 0x00000065, 0x00000304 } }, /* 0x00000114 */ { 2, { 0x00000045, 0x00000306 } }, /* 0x00000115 */ { 2, { 0x00000065, 0x00000306 } }, /* 0x00000116 */ { 2, { 0x00000045, 0x00000307 } }, /* 0x00000117 */ { 2, { 0x00000065, 0x00000307 } }, /* 0x00000118 */ { 2, { 0x00000045, 0x00000328 } }, /* 0x00000119 */ { 2, { 0x00000065, 0x00000328 } }, /* 0x0000011a */ { 2, { 0x00000045, 0x0000030c } }, /* 0x0000011b */ { 2, { 0x00000065, 0x0000030c } }, /* 0x0000011c */ { 2, { 0x00000047, 0x00000302 } }, /* 0x0000011d */ { 2, { 0x00000067, 0x00000302 } }, /* 0x0000011e */ { 2, { 0x00000047, 0x00000306 } }, /* 0x0000011f */ { 2, { 0x00000067, 0x00000306 } }, /* 0x00000120 */ { 2, { 0x00000047, 0x00000307 } }, /* 0x00000121 */ { 2, { 0x00000067, 0x00000307 } }, /* 0x00000122 */ { 2, { 0x00000047, 0x00000327 } }, /* 0x00000123 */ { 2, { 0x00000067, 0x00000327 } }, /* 0x00000124 */ { 2, { 0x00000048, 0x00000302 } }, /* 0x00000125 */ { 2, { 0x00000068, 0x00000302 } }, /* 0x00000126 */ { 1, { 0x00000126 } }, /* 0x00000127 */ { 1, { 0x00000127 } }, /* 0x00000128 */ { 2, { 0x00000049, 0x00000303 } }, /* 0x00000129 */ { 2, { 0x00000069, 0x00000303 } }, /* 0x0000012a */ { 2, { 0x00000049, 0x00000304 } }, /* 0x0000012b */ { 2, { 0x00000069, 0x00000304 } }, /* 0x0000012c */ { 2, { 0x00000049, 0x00000306 } }, /* 0x0000012d */ { 2, { 0x00000069, 0x00000306 } }, /* 0x0000012e */ { 2, { 0x00000049, 0x00000328 } }, /* 0x0000012f */ { 2, { 0x00000069, 0x00000328 } }, /* 0x00000130 */ { 2, { 0x00000049, 0x00000307 } }, /* 0x00000131 */ { 1, { 0x00000131 } }, /* 0x00000132 */ { 1, { 0x00000132 } }, /* 0x00000133 */ { 1, { 0x00000133 } }, /* 0x00000134 */ { 2, { 0x0000004a, 0x00000302 } }, /* 0x00000135 */ { 2, { 0x0000006a, 0x00000302 } }, /* 0x00000136 */ { 2, { 0x0000004b, 0x00000327 } }, /* 0x00000137 */ { 2, { 0x0000006b, 0x00000327 } }, /* 0x00000138 */ { 1, { 0x00000138 } }, /* 0x00000139 */ { 2, { 0x0000004c, 0x00000301 } }, /* 0x0000013a */ { 2, { 0x0000006c, 0x00000301 } }, /* 0x0000013b */ { 2, { 0x0000004c, 0x00000327 } }, /* 0x0000013c */ { 2, { 0x0000006c, 0x00000327 } }, /* 0x0000013d */ { 2, { 0x0000004c, 0x0000030c } }, /* 0x0000013e */ { 2, { 0x0000006c, 0x0000030c } }, /* 0x0000013f */ { 1, { 0x0000013f } }, /* 0x00000140 */ { 1, { 0x00000140 } }, /* 0x00000141 */ { 1, { 0x00000141 } }, /* 0x00000142 */ { 1, { 0x00000142 } }, /* 0x00000143 */ { 2, { 0x0000004e, 0x00000301 } }, /* 0x00000144 */ { 2, { 0x0000006e, 0x00000301 } }, /* 0x00000145 */ { 2, { 0x0000004e, 0x00000327 } }, /* 0x00000146 */ { 2, { 0x0000006e, 0x00000327 } }, /* 0x00000147 */ { 2, { 0x0000004e, 0x0000030c } }, /* 0x00000148 */ { 2, { 0x0000006e, 0x0000030c } }, /* 0x00000149 */ { 1, { 0x00000149 } }, /* 0x0000014a */ { 1, { 0x0000014a } }, /* 0x0000014b */ { 1, { 0x0000014b } }, /* 0x0000014c */ { 2, { 0x0000004f, 0x00000304 } }, /* 0x0000014d */ { 2, { 0x0000006f, 0x00000304 } }, /* 0x0000014e */ { 2, { 0x0000004f, 0x00000306 } }, /* 0x0000014f */ { 2, { 0x0000006f, 0x00000306 } }, /* 0x00000150 */ { 2, { 0x0000004f, 0x0000030b } }, /* 0x00000151 */ { 2, { 0x0000006f, 0x0000030b } }, /* 0x00000152 */ { 1, { 0x00000152 } }, /* 0x00000153 */ { 1, { 0x00000153 } }, /* 0x00000154 */ { 2, { 0x00000052, 0x00000301 } }, /* 0x00000155 */ { 2, { 0x00000072, 0x00000301 } }, /* 0x00000156 */ { 2, { 0x00000052, 0x00000327 } }, /* 0x00000157 */ { 2, { 0x00000072, 0x00000327 } }, /* 0x00000158 */ { 2, { 0x00000052, 0x0000030c } }, /* 0x00000159 */ { 2, { 0x00000072, 0x0000030c } }, /* 0x0000015a */ { 2, { 0x00000053, 0x00000301 } }, /* 0x0000015b */ { 2, { 0x00000073, 0x00000301 } }, /* 0x0000015c */ { 2, { 0x00000053, 0x00000302 } }, /* 0x0000015d */ { 2, { 0x00000073, 0x00000302 } }, /* 0x0000015e */ { 2, { 0x00000053, 0x00000327 } }, /* 0x0000015f */ { 2, { 0x00000073, 0x00000327 } }, /* 0x00000160 */ { 2, { 0x00000053, 0x0000030c } }, /* 0x00000161 */ { 2, { 0x00000073, 0x0000030c } }, /* 0x00000162 */ { 2, { 0x00000054, 0x00000327 } }, /* 0x00000163 */ { 2, { 0x00000074, 0x00000327 } }, /* 0x00000164 */ { 2, { 0x00000054, 0x0000030c } }, /* 0x00000165 */ { 2, { 0x00000074, 0x0000030c } }, /* 0x00000166 */ { 1, { 0x00000166 } }, /* 0x00000167 */ { 1, { 0x00000167 } }, /* 0x00000168 */ { 2, { 0x00000055, 0x00000303 } }, /* 0x00000169 */ { 2, { 0x00000075, 0x00000303 } }, /* 0x0000016a */ { 2, { 0x00000055, 0x00000304 } }, /* 0x0000016b */ { 2, { 0x00000075, 0x00000304 } }, /* 0x0000016c */ { 2, { 0x00000055, 0x00000306 } }, /* 0x0000016d */ { 2, { 0x00000075, 0x00000306 } }, /* 0x0000016e */ { 2, { 0x00000055, 0x0000030a } }, /* 0x0000016f */ { 2, { 0x00000075, 0x0000030a } }, /* 0x00000170 */ { 2, { 0x00000055, 0x0000030b } }, /* 0x00000171 */ { 2, { 0x00000075, 0x0000030b } }, /* 0x00000172 */ { 2, { 0x00000055, 0x00000328 } }, /* 0x00000173 */ { 2, { 0x00000075, 0x00000328 } }, /* 0x00000174 */ { 2, { 0x00000057, 0x00000302 } }, /* 0x00000175 */ { 2, { 0x00000077, 0x00000302 } }, /* 0x00000176 */ { 2, { 0x00000059, 0x00000302 } }, /* 0x00000177 */ { 2, { 0x00000079, 0x00000302 } }, /* 0x00000178 */ { 2, { 0x00000059, 0x00000308 } }, /* 0x00000179 */ { 2, { 0x0000005a, 0x00000301 } }, /* 0x0000017a */ { 2, { 0x0000007a, 0x00000301 } }, /* 0x0000017b */ { 2, { 0x0000005a, 0x00000307 } }, /* 0x0000017c */ { 2, { 0x0000007a, 0x00000307 } }, /* 0x0000017d */ { 2, { 0x0000005a, 0x0000030c } }, /* 0x0000017e */ { 2, { 0x0000007a, 0x0000030c } }, /* 0x0000017f */ { 1, { 0x0000017f } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000001a0[ 152 ] = { /* 0x000001a0 */ { 2, { 0x0000004f, 0x0000031b } }, /* 0x000001a1 */ { 2, { 0x0000006f, 0x0000031b } }, /* 0x000001a2 */ { 1, { 0x000001a2 } }, /* 0x000001a3 */ { 1, { 0x000001a3 } }, /* 0x000001a4 */ { 1, { 0x000001a4 } }, /* 0x000001a5 */ { 1, { 0x000001a5 } }, /* 0x000001a6 */ { 1, { 0x000001a6 } }, /* 0x000001a7 */ { 1, { 0x000001a7 } }, /* 0x000001a8 */ { 1, { 0x000001a8 } }, /* 0x000001a9 */ { 1, { 0x000001a9 } }, /* 0x000001aa */ { 1, { 0x000001aa } }, /* 0x000001ab */ { 1, { 0x000001ab } }, /* 0x000001ac */ { 1, { 0x000001ac } }, /* 0x000001ad */ { 1, { 0x000001ad } }, /* 0x000001ae */ { 1, { 0x000001ae } }, /* 0x000001af */ { 2, { 0x00000055, 0x0000031b } }, /* 0x000001b0 */ { 2, { 0x00000075, 0x0000031b } }, /* 0x000001b1 */ { 1, { 0x000001b1 } }, /* 0x000001b2 */ { 1, { 0x000001b2 } }, /* 0x000001b3 */ { 1, { 0x000001b3 } }, /* 0x000001b4 */ { 1, { 0x000001b4 } }, /* 0x000001b5 */ { 1, { 0x000001b5 } }, /* 0x000001b6 */ { 1, { 0x000001b6 } }, /* 0x000001b7 */ { 1, { 0x000001b7 } }, /* 0x000001b8 */ { 1, { 0x000001b8 } }, /* 0x000001b9 */ { 1, { 0x000001b9 } }, /* 0x000001ba */ { 1, { 0x000001ba } }, /* 0x000001bb */ { 1, { 0x000001bb } }, /* 0x000001bc */ { 1, { 0x000001bc } }, /* 0x000001bd */ { 1, { 0x000001bd } }, /* 0x000001be */ { 1, { 0x000001be } }, /* 0x000001bf */ { 1, { 0x000001bf } }, /* 0x000001c0 */ { 1, { 0x000001c0 } }, /* 0x000001c1 */ { 1, { 0x000001c1 } }, /* 0x000001c2 */ { 1, { 0x000001c2 } }, /* 0x000001c3 */ { 1, { 0x000001c3 } }, /* 0x000001c4 */ { 1, { 0x000001c4 } }, /* 0x000001c5 */ { 1, { 0x000001c5 } }, /* 0x000001c6 */ { 1, { 0x000001c6 } }, /* 0x000001c7 */ { 1, { 0x000001c7 } }, /* 0x000001c8 */ { 1, { 0x000001c8 } }, /* 0x000001c9 */ { 1, { 0x000001c9 } }, /* 0x000001ca */ { 1, { 0x000001ca } }, /* 0x000001cb */ { 1, { 0x000001cb } }, /* 0x000001cc */ { 1, { 0x000001cc } }, /* 0x000001cd */ { 2, { 0x00000041, 0x0000030c } }, /* 0x000001ce */ { 2, { 0x00000061, 0x0000030c } }, /* 0x000001cf */ { 2, { 0x00000049, 0x0000030c } }, /* 0x000001d0 */ { 2, { 0x00000069, 0x0000030c } }, /* 0x000001d1 */ { 2, { 0x0000004f, 0x0000030c } }, /* 0x000001d2 */ { 2, { 0x0000006f, 0x0000030c } }, /* 0x000001d3 */ { 2, { 0x00000055, 0x0000030c } }, /* 0x000001d4 */ { 2, { 0x00000075, 0x0000030c } }, /* 0x000001d5 */ { 3, { 0x00000055, 0x00000308, 0x00000304 } }, /* 0x000001d6 */ { 3, { 0x00000075, 0x00000308, 0x00000304 } }, /* 0x000001d7 */ { 3, { 0x00000055, 0x00000308, 0x00000301 } }, /* 0x000001d8 */ { 3, { 0x00000075, 0x00000308, 0x00000301 } }, /* 0x000001d9 */ { 3, { 0x00000055, 0x00000308, 0x0000030c } }, /* 0x000001da */ { 3, { 0x00000075, 0x00000308, 0x0000030c } }, /* 0x000001db */ { 3, { 0x00000055, 0x00000308, 0x00000300 } }, /* 0x000001dc */ { 3, { 0x00000075, 0x00000308, 0x00000300 } }, /* 0x000001dd */ { 1, { 0x000001dd } }, /* 0x000001de */ { 3, { 0x00000041, 0x00000308, 0x00000304 } }, /* 0x000001df */ { 3, { 0x00000061, 0x00000308, 0x00000304 } }, /* 0x000001e0 */ { 3, { 0x00000041, 0x00000307, 0x00000304 } }, /* 0x000001e1 */ { 3, { 0x00000061, 0x00000307, 0x00000304 } }, /* 0x000001e2 */ { 2, { 0x000000c6, 0x00000304 } }, /* 0x000001e3 */ { 2, { 0x000000e6, 0x00000304 } }, /* 0x000001e4 */ { 1, { 0x000001e4 } }, /* 0x000001e5 */ { 1, { 0x000001e5 } }, /* 0x000001e6 */ { 2, { 0x00000047, 0x0000030c } }, /* 0x000001e7 */ { 2, { 0x00000067, 0x0000030c } }, /* 0x000001e8 */ { 2, { 0x0000004b, 0x0000030c } }, /* 0x000001e9 */ { 2, { 0x0000006b, 0x0000030c } }, /* 0x000001ea */ { 2, { 0x0000004f, 0x00000328 } }, /* 0x000001eb */ { 2, { 0x0000006f, 0x00000328 } }, /* 0x000001ec */ { 3, { 0x0000004f, 0x00000328, 0x00000304 } }, /* 0x000001ed */ { 3, { 0x0000006f, 0x00000328, 0x00000304 } }, /* 0x000001ee */ { 2, { 0x000001b7, 0x0000030c } }, /* 0x000001ef */ { 2, { 0x00000292, 0x0000030c } }, /* 0x000001f0 */ { 2, { 0x0000006a, 0x0000030c } }, /* 0x000001f1 */ { 1, { 0x000001f1 } }, /* 0x000001f2 */ { 1, { 0x000001f2 } }, /* 0x000001f3 */ { 1, { 0x000001f3 } }, /* 0x000001f4 */ { 2, { 0x00000047, 0x00000301 } }, /* 0x000001f5 */ { 2, { 0x00000067, 0x00000301 } }, /* 0x000001f6 */ { 1, { 0x000001f6 } }, /* 0x000001f7 */ { 1, { 0x000001f7 } }, /* 0x000001f8 */ { 2, { 0x0000004e, 0x00000300 } }, /* 0x000001f9 */ { 2, { 0x0000006e, 0x00000300 } }, /* 0x000001fa */ { 3, { 0x00000041, 0x0000030a, 0x00000301 } }, /* 0x000001fb */ { 3, { 0x00000061, 0x0000030a, 0x00000301 } }, /* 0x000001fc */ { 2, { 0x000000c6, 0x00000301 } }, /* 0x000001fd */ { 2, { 0x000000e6, 0x00000301 } }, /* 0x000001fe */ { 2, { 0x000000d8, 0x00000301 } }, /* 0x000001ff */ { 2, { 0x000000f8, 0x00000301 } }, /* 0x00000200 */ { 2, { 0x00000041, 0x0000030f } }, /* 0x00000201 */ { 2, { 0x00000061, 0x0000030f } }, /* 0x00000202 */ { 2, { 0x00000041, 0x00000311 } }, /* 0x00000203 */ { 2, { 0x00000061, 0x00000311 } }, /* 0x00000204 */ { 2, { 0x00000045, 0x0000030f } }, /* 0x00000205 */ { 2, { 0x00000065, 0x0000030f } }, /* 0x00000206 */ { 2, { 0x00000045, 0x00000311 } }, /* 0x00000207 */ { 2, { 0x00000065, 0x00000311 } }, /* 0x00000208 */ { 2, { 0x00000049, 0x0000030f } }, /* 0x00000209 */ { 2, { 0x00000069, 0x0000030f } }, /* 0x0000020a */ { 2, { 0x00000049, 0x00000311 } }, /* 0x0000020b */ { 2, { 0x00000069, 0x00000311 } }, /* 0x0000020c */ { 2, { 0x0000004f, 0x0000030f } }, /* 0x0000020d */ { 2, { 0x0000006f, 0x0000030f } }, /* 0x0000020e */ { 2, { 0x0000004f, 0x00000311 } }, /* 0x0000020f */ { 2, { 0x0000006f, 0x00000311 } }, /* 0x00000210 */ { 2, { 0x00000052, 0x0000030f } }, /* 0x00000211 */ { 2, { 0x00000072, 0x0000030f } }, /* 0x00000212 */ { 2, { 0x00000052, 0x00000311 } }, /* 0x00000213 */ { 2, { 0x00000072, 0x00000311 } }, /* 0x00000214 */ { 2, { 0x00000055, 0x0000030f } }, /* 0x00000215 */ { 2, { 0x00000075, 0x0000030f } }, /* 0x00000216 */ { 2, { 0x00000055, 0x00000311 } }, /* 0x00000217 */ { 2, { 0x00000075, 0x00000311 } }, /* 0x00000218 */ { 2, { 0x00000053, 0x00000326 } }, /* 0x00000219 */ { 2, { 0x00000073, 0x00000326 } }, /* 0x0000021a */ { 2, { 0x00000054, 0x00000326 } }, /* 0x0000021b */ { 2, { 0x00000074, 0x00000326 } }, /* 0x0000021c */ { 1, { 0x0000021c } }, /* 0x0000021d */ { 1, { 0x0000021d } }, /* 0x0000021e */ { 2, { 0x00000048, 0x0000030c } }, /* 0x0000021f */ { 2, { 0x00000068, 0x0000030c } }, /* 0x00000220 */ { 1, { 0x00000220 } }, /* 0x00000221 */ { 1, { 0x00000221 } }, /* 0x00000222 */ { 1, { 0x00000222 } }, /* 0x00000223 */ { 1, { 0x00000223 } }, /* 0x00000224 */ { 1, { 0x00000224 } }, /* 0x00000225 */ { 1, { 0x00000225 } }, /* 0x00000226 */ { 2, { 0x00000041, 0x00000307 } }, /* 0x00000227 */ { 2, { 0x00000061, 0x00000307 } }, /* 0x00000228 */ { 2, { 0x00000045, 0x00000327 } }, /* 0x00000229 */ { 2, { 0x00000065, 0x00000327 } }, /* 0x0000022a */ { 3, { 0x0000004f, 0x00000308, 0x00000304 } }, /* 0x0000022b */ { 3, { 0x0000006f, 0x00000308, 0x00000304 } }, /* 0x0000022c */ { 3, { 0x0000004f, 0x00000303, 0x00000304 } }, /* 0x0000022d */ { 3, { 0x0000006f, 0x00000303, 0x00000304 } }, /* 0x0000022e */ { 2, { 0x0000004f, 0x00000307 } }, /* 0x0000022f */ { 2, { 0x0000006f, 0x00000307 } }, /* 0x00000230 */ { 3, { 0x0000004f, 0x00000307, 0x00000304 } }, /* 0x00000231 */ { 3, { 0x0000006f, 0x00000307, 0x00000304 } }, /* 0x00000232 */ { 2, { 0x00000059, 0x00000304 } }, /* 0x00000233 */ { 2, { 0x00000079, 0x00000304 } }, /* 0x00000234 */ { 1, { 0x00000234 } }, /* 0x00000235 */ { 1, { 0x00000235 } }, /* 0x00000236 */ { 1, { 0x00000236 } }, /* 0x00000237 */ { 1, { 0x00000237 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000340[ 152 ] = { /* 0x00000340 */ { 1, { 0x00000300 } }, /* 0x00000341 */ { 1, { 0x00000301 } }, /* 0x00000342 */ { 1, { 0x00000342 } }, /* 0x00000343 */ { 1, { 0x00000313 } }, /* 0x00000344 */ { 2, { 0x00000308, 0x00000301 } }, /* 0x00000345 */ { 1, { 0x00000345 } }, /* 0x00000346 */ { 1, { 0x00000346 } }, /* 0x00000347 */ { 1, { 0x00000347 } }, /* 0x00000348 */ { 1, { 0x00000348 } }, /* 0x00000349 */ { 1, { 0x00000349 } }, /* 0x0000034a */ { 1, { 0x0000034a } }, /* 0x0000034b */ { 1, { 0x0000034b } }, /* 0x0000034c */ { 1, { 0x0000034c } }, /* 0x0000034d */ { 1, { 0x0000034d } }, /* 0x0000034e */ { 1, { 0x0000034e } }, /* 0x0000034f */ { 1, { 0x0000034f } }, /* 0x00000350 */ { 1, { 0x00000350 } }, /* 0x00000351 */ { 1, { 0x00000351 } }, /* 0x00000352 */ { 1, { 0x00000352 } }, /* 0x00000353 */ { 1, { 0x00000353 } }, /* 0x00000354 */ { 1, { 0x00000354 } }, /* 0x00000355 */ { 1, { 0x00000355 } }, /* 0x00000356 */ { 1, { 0x00000356 } }, /* 0x00000357 */ { 1, { 0x00000357 } }, /* 0x00000358 */ { 1, { 0x00000358 } }, /* 0x00000359 */ { 1, { 0x00000359 } }, /* 0x0000035a */ { 1, { 0x0000035a } }, /* 0x0000035b */ { 1, { 0x0000035b } }, /* 0x0000035c */ { 1, { 0x0000035c } }, /* 0x0000035d */ { 1, { 0x0000035d } }, /* 0x0000035e */ { 1, { 0x0000035e } }, /* 0x0000035f */ { 1, { 0x0000035f } }, /* 0x00000360 */ { 1, { 0x00000360 } }, /* 0x00000361 */ { 1, { 0x00000361 } }, /* 0x00000362 */ { 1, { 0x00000362 } }, /* 0x00000363 */ { 1, { 0x00000363 } }, /* 0x00000364 */ { 1, { 0x00000364 } }, /* 0x00000365 */ { 1, { 0x00000365 } }, /* 0x00000366 */ { 1, { 0x00000366 } }, /* 0x00000367 */ { 1, { 0x00000367 } }, /* 0x00000368 */ { 1, { 0x00000368 } }, /* 0x00000369 */ { 1, { 0x00000369 } }, /* 0x0000036a */ { 1, { 0x0000036a } }, /* 0x0000036b */ { 1, { 0x0000036b } }, /* 0x0000036c */ { 1, { 0x0000036c } }, /* 0x0000036d */ { 1, { 0x0000036d } }, /* 0x0000036e */ { 1, { 0x0000036e } }, /* 0x0000036f */ { 1, { 0x0000036f } }, /* 0x00000370 */ { 1, { 0x00000370 } }, /* 0x00000371 */ { 1, { 0x00000371 } }, /* 0x00000372 */ { 1, { 0x00000372 } }, /* 0x00000373 */ { 1, { 0x00000373 } }, /* 0x00000374 */ { 1, { 0x000002b9 } }, /* 0x00000375 */ { 1, { 0x00000375 } }, /* 0x00000376 */ { 1, { 0x00000376 } }, /* 0x00000377 */ { 1, { 0x00000377 } }, /* 0x00000378 */ { 1, { 0x00000378 } }, /* 0x00000379 */ { 1, { 0x00000379 } }, /* 0x0000037a */ { 1, { 0x0000037a } }, /* 0x0000037b */ { 1, { 0x0000037b } }, /* 0x0000037c */ { 1, { 0x0000037c } }, /* 0x0000037d */ { 1, { 0x0000037d } }, /* 0x0000037e */ { 1, { 0x0000003b } }, /* 0x0000037f */ { 1, { 0x0000037f } }, /* 0x00000380 */ { 1, { 0x00000380 } }, /* 0x00000381 */ { 1, { 0x00000381 } }, /* 0x00000382 */ { 1, { 0x00000382 } }, /* 0x00000383 */ { 1, { 0x00000383 } }, /* 0x00000384 */ { 1, { 0x00000384 } }, /* 0x00000385 */ { 2, { 0x000000a8, 0x00000301 } }, /* 0x00000386 */ { 2, { 0x00000391, 0x00000301 } }, /* 0x00000387 */ { 1, { 0x000000b7 } }, /* 0x00000388 */ { 2, { 0x00000395, 0x00000301 } }, /* 0x00000389 */ { 2, { 0x00000397, 0x00000301 } }, /* 0x0000038a */ { 2, { 0x00000399, 0x00000301 } }, /* 0x0000038b */ { 1, { 0x0000038b } }, /* 0x0000038c */ { 2, { 0x0000039f, 0x00000301 } }, /* 0x0000038d */ { 1, { 0x0000038d } }, /* 0x0000038e */ { 2, { 0x000003a5, 0x00000301 } }, /* 0x0000038f */ { 2, { 0x000003a9, 0x00000301 } }, /* 0x00000390 */ { 3, { 0x000003b9, 0x00000308, 0x00000301 } }, /* 0x00000391 */ { 1, { 0x00000391 } }, /* 0x00000392 */ { 1, { 0x00000392 } }, /* 0x00000393 */ { 1, { 0x00000393 } }, /* 0x00000394 */ { 1, { 0x00000394 } }, /* 0x00000395 */ { 1, { 0x00000395 } }, /* 0x00000396 */ { 1, { 0x00000396 } }, /* 0x00000397 */ { 1, { 0x00000397 } }, /* 0x00000398 */ { 1, { 0x00000398 } }, /* 0x00000399 */ { 1, { 0x00000399 } }, /* 0x0000039a */ { 1, { 0x0000039a } }, /* 0x0000039b */ { 1, { 0x0000039b } }, /* 0x0000039c */ { 1, { 0x0000039c } }, /* 0x0000039d */ { 1, { 0x0000039d } }, /* 0x0000039e */ { 1, { 0x0000039e } }, /* 0x0000039f */ { 1, { 0x0000039f } }, /* 0x000003a0 */ { 1, { 0x000003a0 } }, /* 0x000003a1 */ { 1, { 0x000003a1 } }, /* 0x000003a2 */ { 1, { 0x000003a2 } }, /* 0x000003a3 */ { 1, { 0x000003a3 } }, /* 0x000003a4 */ { 1, { 0x000003a4 } }, /* 0x000003a5 */ { 1, { 0x000003a5 } }, /* 0x000003a6 */ { 1, { 0x000003a6 } }, /* 0x000003a7 */ { 1, { 0x000003a7 } }, /* 0x000003a8 */ { 1, { 0x000003a8 } }, /* 0x000003a9 */ { 1, { 0x000003a9 } }, /* 0x000003aa */ { 2, { 0x00000399, 0x00000308 } }, /* 0x000003ab */ { 2, { 0x000003a5, 0x00000308 } }, /* 0x000003ac */ { 2, { 0x000003b1, 0x00000301 } }, /* 0x000003ad */ { 2, { 0x000003b5, 0x00000301 } }, /* 0x000003ae */ { 2, { 0x000003b7, 0x00000301 } }, /* 0x000003af */ { 2, { 0x000003b9, 0x00000301 } }, /* 0x000003b0 */ { 3, { 0x000003c5, 0x00000308, 0x00000301 } }, /* 0x000003b1 */ { 1, { 0x000003b1 } }, /* 0x000003b2 */ { 1, { 0x000003b2 } }, /* 0x000003b3 */ { 1, { 0x000003b3 } }, /* 0x000003b4 */ { 1, { 0x000003b4 } }, /* 0x000003b5 */ { 1, { 0x000003b5 } }, /* 0x000003b6 */ { 1, { 0x000003b6 } }, /* 0x000003b7 */ { 1, { 0x000003b7 } }, /* 0x000003b8 */ { 1, { 0x000003b8 } }, /* 0x000003b9 */ { 1, { 0x000003b9 } }, /* 0x000003ba */ { 1, { 0x000003ba } }, /* 0x000003bb */ { 1, { 0x000003bb } }, /* 0x000003bc */ { 1, { 0x000003bc } }, /* 0x000003bd */ { 1, { 0x000003bd } }, /* 0x000003be */ { 1, { 0x000003be } }, /* 0x000003bf */ { 1, { 0x000003bf } }, /* 0x000003c0 */ { 1, { 0x000003c0 } }, /* 0x000003c1 */ { 1, { 0x000003c1 } }, /* 0x000003c2 */ { 1, { 0x000003c2 } }, /* 0x000003c3 */ { 1, { 0x000003c3 } }, /* 0x000003c4 */ { 1, { 0x000003c4 } }, /* 0x000003c5 */ { 1, { 0x000003c5 } }, /* 0x000003c6 */ { 1, { 0x000003c6 } }, /* 0x000003c7 */ { 1, { 0x000003c7 } }, /* 0x000003c8 */ { 1, { 0x000003c8 } }, /* 0x000003c9 */ { 1, { 0x000003c9 } }, /* 0x000003ca */ { 2, { 0x000003b9, 0x00000308 } }, /* 0x000003cb */ { 2, { 0x000003c5, 0x00000308 } }, /* 0x000003cc */ { 2, { 0x000003bf, 0x00000301 } }, /* 0x000003cd */ { 2, { 0x000003c5, 0x00000301 } }, /* 0x000003ce */ { 2, { 0x000003c9, 0x00000301 } }, /* 0x000003cf */ { 1, { 0x000003cf } }, /* 0x000003d0 */ { 1, { 0x000003d0 } }, /* 0x000003d1 */ { 1, { 0x000003d1 } }, /* 0x000003d2 */ { 1, { 0x000003d2 } }, /* 0x000003d3 */ { 2, { 0x000003d2, 0x00000301 } }, /* 0x000003d4 */ { 2, { 0x000003d2, 0x00000308 } }, /* 0x000003d5 */ { 1, { 0x000003d5 } }, /* 0x000003d6 */ { 1, { 0x000003d6 } }, /* 0x000003d7 */ { 1, { 0x000003d7 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000400[ 256 ] = { /* 0x00000400 */ { 2, { 0x00000415, 0x00000300 } }, /* 0x00000401 */ { 2, { 0x00000415, 0x00000308 } }, /* 0x00000402 */ { 1, { 0x00000402 } }, /* 0x00000403 */ { 2, { 0x00000413, 0x00000301 } }, /* 0x00000404 */ { 1, { 0x00000404 } }, /* 0x00000405 */ { 1, { 0x00000405 } }, /* 0x00000406 */ { 1, { 0x00000406 } }, /* 0x00000407 */ { 2, { 0x00000406, 0x00000308 } }, /* 0x00000408 */ { 1, { 0x00000408 } }, /* 0x00000409 */ { 1, { 0x00000409 } }, /* 0x0000040a */ { 1, { 0x0000040a } }, /* 0x0000040b */ { 1, { 0x0000040b } }, /* 0x0000040c */ { 2, { 0x0000041a, 0x00000301 } }, /* 0x0000040d */ { 2, { 0x00000418, 0x00000300 } }, /* 0x0000040e */ { 2, { 0x00000423, 0x00000306 } }, /* 0x0000040f */ { 1, { 0x0000040f } }, /* 0x00000410 */ { 1, { 0x00000410 } }, /* 0x00000411 */ { 1, { 0x00000411 } }, /* 0x00000412 */ { 1, { 0x00000412 } }, /* 0x00000413 */ { 1, { 0x00000413 } }, /* 0x00000414 */ { 1, { 0x00000414 } }, /* 0x00000415 */ { 1, { 0x00000415 } }, /* 0x00000416 */ { 1, { 0x00000416 } }, /* 0x00000417 */ { 1, { 0x00000417 } }, /* 0x00000418 */ { 1, { 0x00000418 } }, /* 0x00000419 */ { 2, { 0x00000418, 0x00000306 } }, /* 0x0000041a */ { 1, { 0x0000041a } }, /* 0x0000041b */ { 1, { 0x0000041b } }, /* 0x0000041c */ { 1, { 0x0000041c } }, /* 0x0000041d */ { 1, { 0x0000041d } }, /* 0x0000041e */ { 1, { 0x0000041e } }, /* 0x0000041f */ { 1, { 0x0000041f } }, /* 0x00000420 */ { 1, { 0x00000420 } }, /* 0x00000421 */ { 1, { 0x00000421 } }, /* 0x00000422 */ { 1, { 0x00000422 } }, /* 0x00000423 */ { 1, { 0x00000423 } }, /* 0x00000424 */ { 1, { 0x00000424 } }, /* 0x00000425 */ { 1, { 0x00000425 } }, /* 0x00000426 */ { 1, { 0x00000426 } }, /* 0x00000427 */ { 1, { 0x00000427 } }, /* 0x00000428 */ { 1, { 0x00000428 } }, /* 0x00000429 */ { 1, { 0x00000429 } }, /* 0x0000042a */ { 1, { 0x0000042a } }, /* 0x0000042b */ { 1, { 0x0000042b } }, /* 0x0000042c */ { 1, { 0x0000042c } }, /* 0x0000042d */ { 1, { 0x0000042d } }, /* 0x0000042e */ { 1, { 0x0000042e } }, /* 0x0000042f */ { 1, { 0x0000042f } }, /* 0x00000430 */ { 1, { 0x00000430 } }, /* 0x00000431 */ { 1, { 0x00000431 } }, /* 0x00000432 */ { 1, { 0x00000432 } }, /* 0x00000433 */ { 1, { 0x00000433 } }, /* 0x00000434 */ { 1, { 0x00000434 } }, /* 0x00000435 */ { 1, { 0x00000435 } }, /* 0x00000436 */ { 1, { 0x00000436 } }, /* 0x00000437 */ { 1, { 0x00000437 } }, /* 0x00000438 */ { 1, { 0x00000438 } }, /* 0x00000439 */ { 2, { 0x00000438, 0x00000306 } }, /* 0x0000043a */ { 1, { 0x0000043a } }, /* 0x0000043b */ { 1, { 0x0000043b } }, /* 0x0000043c */ { 1, { 0x0000043c } }, /* 0x0000043d */ { 1, { 0x0000043d } }, /* 0x0000043e */ { 1, { 0x0000043e } }, /* 0x0000043f */ { 1, { 0x0000043f } }, /* 0x00000440 */ { 1, { 0x00000440 } }, /* 0x00000441 */ { 1, { 0x00000441 } }, /* 0x00000442 */ { 1, { 0x00000442 } }, /* 0x00000443 */ { 1, { 0x00000443 } }, /* 0x00000444 */ { 1, { 0x00000444 } }, /* 0x00000445 */ { 1, { 0x00000445 } }, /* 0x00000446 */ { 1, { 0x00000446 } }, /* 0x00000447 */ { 1, { 0x00000447 } }, /* 0x00000448 */ { 1, { 0x00000448 } }, /* 0x00000449 */ { 1, { 0x00000449 } }, /* 0x0000044a */ { 1, { 0x0000044a } }, /* 0x0000044b */ { 1, { 0x0000044b } }, /* 0x0000044c */ { 1, { 0x0000044c } }, /* 0x0000044d */ { 1, { 0x0000044d } }, /* 0x0000044e */ { 1, { 0x0000044e } }, /* 0x0000044f */ { 1, { 0x0000044f } }, /* 0x00000450 */ { 2, { 0x00000435, 0x00000300 } }, /* 0x00000451 */ { 2, { 0x00000435, 0x00000308 } }, /* 0x00000452 */ { 1, { 0x00000452 } }, /* 0x00000453 */ { 2, { 0x00000433, 0x00000301 } }, /* 0x00000454 */ { 1, { 0x00000454 } }, /* 0x00000455 */ { 1, { 0x00000455 } }, /* 0x00000456 */ { 1, { 0x00000456 } }, /* 0x00000457 */ { 2, { 0x00000456, 0x00000308 } }, /* 0x00000458 */ { 1, { 0x00000458 } }, /* 0x00000459 */ { 1, { 0x00000459 } }, /* 0x0000045a */ { 1, { 0x0000045a } }, /* 0x0000045b */ { 1, { 0x0000045b } }, /* 0x0000045c */ { 2, { 0x0000043a, 0x00000301 } }, /* 0x0000045d */ { 2, { 0x00000438, 0x00000300 } }, /* 0x0000045e */ { 2, { 0x00000443, 0x00000306 } }, /* 0x0000045f */ { 1, { 0x0000045f } }, /* 0x00000460 */ { 1, { 0x00000460 } }, /* 0x00000461 */ { 1, { 0x00000461 } }, /* 0x00000462 */ { 1, { 0x00000462 } }, /* 0x00000463 */ { 1, { 0x00000463 } }, /* 0x00000464 */ { 1, { 0x00000464 } }, /* 0x00000465 */ { 1, { 0x00000465 } }, /* 0x00000466 */ { 1, { 0x00000466 } }, /* 0x00000467 */ { 1, { 0x00000467 } }, /* 0x00000468 */ { 1, { 0x00000468 } }, /* 0x00000469 */ { 1, { 0x00000469 } }, /* 0x0000046a */ { 1, { 0x0000046a } }, /* 0x0000046b */ { 1, { 0x0000046b } }, /* 0x0000046c */ { 1, { 0x0000046c } }, /* 0x0000046d */ { 1, { 0x0000046d } }, /* 0x0000046e */ { 1, { 0x0000046e } }, /* 0x0000046f */ { 1, { 0x0000046f } }, /* 0x00000470 */ { 1, { 0x00000470 } }, /* 0x00000471 */ { 1, { 0x00000471 } }, /* 0x00000472 */ { 1, { 0x00000472 } }, /* 0x00000473 */ { 1, { 0x00000473 } }, /* 0x00000474 */ { 1, { 0x00000474 } }, /* 0x00000475 */ { 1, { 0x00000475 } }, /* 0x00000476 */ { 2, { 0x00000474, 0x0000030f } }, /* 0x00000477 */ { 2, { 0x00000475, 0x0000030f } }, /* 0x00000478 */ { 1, { 0x00000478 } }, /* 0x00000479 */ { 1, { 0x00000479 } }, /* 0x0000047a */ { 1, { 0x0000047a } }, /* 0x0000047b */ { 1, { 0x0000047b } }, /* 0x0000047c */ { 1, { 0x0000047c } }, /* 0x0000047d */ { 1, { 0x0000047d } }, /* 0x0000047e */ { 1, { 0x0000047e } }, /* 0x0000047f */ { 1, { 0x0000047f } }, /* 0x00000480 */ { 1, { 0x00000480 } }, /* 0x00000481 */ { 1, { 0x00000481 } }, /* 0x00000482 */ { 1, { 0x00000482 } }, /* 0x00000483 */ { 1, { 0x00000483 } }, /* 0x00000484 */ { 1, { 0x00000484 } }, /* 0x00000485 */ { 1, { 0x00000485 } }, /* 0x00000486 */ { 1, { 0x00000486 } }, /* 0x00000487 */ { 1, { 0x00000487 } }, /* 0x00000488 */ { 1, { 0x00000488 } }, /* 0x00000489 */ { 1, { 0x00000489 } }, /* 0x0000048a */ { 1, { 0x0000048a } }, /* 0x0000048b */ { 1, { 0x0000048b } }, /* 0x0000048c */ { 1, { 0x0000048c } }, /* 0x0000048d */ { 1, { 0x0000048d } }, /* 0x0000048e */ { 1, { 0x0000048e } }, /* 0x0000048f */ { 1, { 0x0000048f } }, /* 0x00000490 */ { 1, { 0x00000490 } }, /* 0x00000491 */ { 1, { 0x00000491 } }, /* 0x00000492 */ { 1, { 0x00000492 } }, /* 0x00000493 */ { 1, { 0x00000493 } }, /* 0x00000494 */ { 1, { 0x00000494 } }, /* 0x00000495 */ { 1, { 0x00000495 } }, /* 0x00000496 */ { 1, { 0x00000496 } }, /* 0x00000497 */ { 1, { 0x00000497 } }, /* 0x00000498 */ { 1, { 0x00000498 } }, /* 0x00000499 */ { 1, { 0x00000499 } }, /* 0x0000049a */ { 1, { 0x0000049a } }, /* 0x0000049b */ { 1, { 0x0000049b } }, /* 0x0000049c */ { 1, { 0x0000049c } }, /* 0x0000049d */ { 1, { 0x0000049d } }, /* 0x0000049e */ { 1, { 0x0000049e } }, /* 0x0000049f */ { 1, { 0x0000049f } }, /* 0x000004a0 */ { 1, { 0x000004a0 } }, /* 0x000004a1 */ { 1, { 0x000004a1 } }, /* 0x000004a2 */ { 1, { 0x000004a2 } }, /* 0x000004a3 */ { 1, { 0x000004a3 } }, /* 0x000004a4 */ { 1, { 0x000004a4 } }, /* 0x000004a5 */ { 1, { 0x000004a5 } }, /* 0x000004a6 */ { 1, { 0x000004a6 } }, /* 0x000004a7 */ { 1, { 0x000004a7 } }, /* 0x000004a8 */ { 1, { 0x000004a8 } }, /* 0x000004a9 */ { 1, { 0x000004a9 } }, /* 0x000004aa */ { 1, { 0x000004aa } }, /* 0x000004ab */ { 1, { 0x000004ab } }, /* 0x000004ac */ { 1, { 0x000004ac } }, /* 0x000004ad */ { 1, { 0x000004ad } }, /* 0x000004ae */ { 1, { 0x000004ae } }, /* 0x000004af */ { 1, { 0x000004af } }, /* 0x000004b0 */ { 1, { 0x000004b0 } }, /* 0x000004b1 */ { 1, { 0x000004b1 } }, /* 0x000004b2 */ { 1, { 0x000004b2 } }, /* 0x000004b3 */ { 1, { 0x000004b3 } }, /* 0x000004b4 */ { 1, { 0x000004b4 } }, /* 0x000004b5 */ { 1, { 0x000004b5 } }, /* 0x000004b6 */ { 1, { 0x000004b6 } }, /* 0x000004b7 */ { 1, { 0x000004b7 } }, /* 0x000004b8 */ { 1, { 0x000004b8 } }, /* 0x000004b9 */ { 1, { 0x000004b9 } }, /* 0x000004ba */ { 1, { 0x000004ba } }, /* 0x000004bb */ { 1, { 0x000004bb } }, /* 0x000004bc */ { 1, { 0x000004bc } }, /* 0x000004bd */ { 1, { 0x000004bd } }, /* 0x000004be */ { 1, { 0x000004be } }, /* 0x000004bf */ { 1, { 0x000004bf } }, /* 0x000004c0 */ { 1, { 0x000004c0 } }, /* 0x000004c1 */ { 2, { 0x00000416, 0x00000306 } }, /* 0x000004c2 */ { 2, { 0x00000436, 0x00000306 } }, /* 0x000004c3 */ { 1, { 0x000004c3 } }, /* 0x000004c4 */ { 1, { 0x000004c4 } }, /* 0x000004c5 */ { 1, { 0x000004c5 } }, /* 0x000004c6 */ { 1, { 0x000004c6 } }, /* 0x000004c7 */ { 1, { 0x000004c7 } }, /* 0x000004c8 */ { 1, { 0x000004c8 } }, /* 0x000004c9 */ { 1, { 0x000004c9 } }, /* 0x000004ca */ { 1, { 0x000004ca } }, /* 0x000004cb */ { 1, { 0x000004cb } }, /* 0x000004cc */ { 1, { 0x000004cc } }, /* 0x000004cd */ { 1, { 0x000004cd } }, /* 0x000004ce */ { 1, { 0x000004ce } }, /* 0x000004cf */ { 1, { 0x000004cf } }, /* 0x000004d0 */ { 2, { 0x00000410, 0x00000306 } }, /* 0x000004d1 */ { 2, { 0x00000430, 0x00000306 } }, /* 0x000004d2 */ { 2, { 0x00000410, 0x00000308 } }, /* 0x000004d3 */ { 2, { 0x00000430, 0x00000308 } }, /* 0x000004d4 */ { 1, { 0x000004d4 } }, /* 0x000004d5 */ { 1, { 0x000004d5 } }, /* 0x000004d6 */ { 2, { 0x00000415, 0x00000306 } }, /* 0x000004d7 */ { 2, { 0x00000435, 0x00000306 } }, /* 0x000004d8 */ { 1, { 0x000004d8 } }, /* 0x000004d9 */ { 1, { 0x000004d9 } }, /* 0x000004da */ { 2, { 0x000004d8, 0x00000308 } }, /* 0x000004db */ { 2, { 0x000004d9, 0x00000308 } }, /* 0x000004dc */ { 2, { 0x00000416, 0x00000308 } }, /* 0x000004dd */ { 2, { 0x00000436, 0x00000308 } }, /* 0x000004de */ { 2, { 0x00000417, 0x00000308 } }, /* 0x000004df */ { 2, { 0x00000437, 0x00000308 } }, /* 0x000004e0 */ { 1, { 0x000004e0 } }, /* 0x000004e1 */ { 1, { 0x000004e1 } }, /* 0x000004e2 */ { 2, { 0x00000418, 0x00000304 } }, /* 0x000004e3 */ { 2, { 0x00000438, 0x00000304 } }, /* 0x000004e4 */ { 2, { 0x00000418, 0x00000308 } }, /* 0x000004e5 */ { 2, { 0x00000438, 0x00000308 } }, /* 0x000004e6 */ { 2, { 0x0000041e, 0x00000308 } }, /* 0x000004e7 */ { 2, { 0x0000043e, 0x00000308 } }, /* 0x000004e8 */ { 1, { 0x000004e8 } }, /* 0x000004e9 */ { 1, { 0x000004e9 } }, /* 0x000004ea */ { 2, { 0x000004e8, 0x00000308 } }, /* 0x000004eb */ { 2, { 0x000004e9, 0x00000308 } }, /* 0x000004ec */ { 2, { 0x0000042d, 0x00000308 } }, /* 0x000004ed */ { 2, { 0x0000044d, 0x00000308 } }, /* 0x000004ee */ { 2, { 0x00000423, 0x00000304 } }, /* 0x000004ef */ { 2, { 0x00000443, 0x00000304 } }, /* 0x000004f0 */ { 2, { 0x00000423, 0x00000308 } }, /* 0x000004f1 */ { 2, { 0x00000443, 0x00000308 } }, /* 0x000004f2 */ { 2, { 0x00000423, 0x0000030b } }, /* 0x000004f3 */ { 2, { 0x00000443, 0x0000030b } }, /* 0x000004f4 */ { 2, { 0x00000427, 0x00000308 } }, /* 0x000004f5 */ { 2, { 0x00000447, 0x00000308 } }, /* 0x000004f6 */ { 1, { 0x000004f6 } }, /* 0x000004f7 */ { 1, { 0x000004f7 } }, /* 0x000004f8 */ { 2, { 0x0000042b, 0x00000308 } }, /* 0x000004f9 */ { 2, { 0x0000044b, 0x00000308 } }, /* 0x000004fa */ { 1, { 0x000004fa } }, /* 0x000004fb */ { 1, { 0x000004fb } }, /* 0x000004fc */ { 1, { 0x000004fc } }, /* 0x000004fd */ { 1, { 0x000004fd } }, /* 0x000004fe */ { 1, { 0x000004fe } }, /* 0x000004ff */ { 1, { 0x000004ff } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000620[ 184 ] = { /* 0x00000620 */ { 1, { 0x00000620 } }, /* 0x00000621 */ { 1, { 0x00000621 } }, /* 0x00000622 */ { 2, { 0x00000627, 0x00000653 } }, /* 0x00000623 */ { 2, { 0x00000627, 0x00000654 } }, /* 0x00000624 */ { 2, { 0x00000648, 0x00000654 } }, /* 0x00000625 */ { 2, { 0x00000627, 0x00000655 } }, /* 0x00000626 */ { 2, { 0x0000064a, 0x00000654 } }, /* 0x00000627 */ { 1, { 0x00000627 } }, /* 0x00000628 */ { 1, { 0x00000628 } }, /* 0x00000629 */ { 1, { 0x00000629 } }, /* 0x0000062a */ { 1, { 0x0000062a } }, /* 0x0000062b */ { 1, { 0x0000062b } }, /* 0x0000062c */ { 1, { 0x0000062c } }, /* 0x0000062d */ { 1, { 0x0000062d } }, /* 0x0000062e */ { 1, { 0x0000062e } }, /* 0x0000062f */ { 1, { 0x0000062f } }, /* 0x00000630 */ { 1, { 0x00000630 } }, /* 0x00000631 */ { 1, { 0x00000631 } }, /* 0x00000632 */ { 1, { 0x00000632 } }, /* 0x00000633 */ { 1, { 0x00000633 } }, /* 0x00000634 */ { 1, { 0x00000634 } }, /* 0x00000635 */ { 1, { 0x00000635 } }, /* 0x00000636 */ { 1, { 0x00000636 } }, /* 0x00000637 */ { 1, { 0x00000637 } }, /* 0x00000638 */ { 1, { 0x00000638 } }, /* 0x00000639 */ { 1, { 0x00000639 } }, /* 0x0000063a */ { 1, { 0x0000063a } }, /* 0x0000063b */ { 1, { 0x0000063b } }, /* 0x0000063c */ { 1, { 0x0000063c } }, /* 0x0000063d */ { 1, { 0x0000063d } }, /* 0x0000063e */ { 1, { 0x0000063e } }, /* 0x0000063f */ { 1, { 0x0000063f } }, /* 0x00000640 */ { 1, { 0x00000640 } }, /* 0x00000641 */ { 1, { 0x00000641 } }, /* 0x00000642 */ { 1, { 0x00000642 } }, /* 0x00000643 */ { 1, { 0x00000643 } }, /* 0x00000644 */ { 1, { 0x00000644 } }, /* 0x00000645 */ { 1, { 0x00000645 } }, /* 0x00000646 */ { 1, { 0x00000646 } }, /* 0x00000647 */ { 1, { 0x00000647 } }, /* 0x00000648 */ { 1, { 0x00000648 } }, /* 0x00000649 */ { 1, { 0x00000649 } }, /* 0x0000064a */ { 1, { 0x0000064a } }, /* 0x0000064b */ { 1, { 0x0000064b } }, /* 0x0000064c */ { 1, { 0x0000064c } }, /* 0x0000064d */ { 1, { 0x0000064d } }, /* 0x0000064e */ { 1, { 0x0000064e } }, /* 0x0000064f */ { 1, { 0x0000064f } }, /* 0x00000650 */ { 1, { 0x00000650 } }, /* 0x00000651 */ { 1, { 0x00000651 } }, /* 0x00000652 */ { 1, { 0x00000652 } }, /* 0x00000653 */ { 1, { 0x00000653 } }, /* 0x00000654 */ { 1, { 0x00000654 } }, /* 0x00000655 */ { 1, { 0x00000655 } }, /* 0x00000656 */ { 1, { 0x00000656 } }, /* 0x00000657 */ { 1, { 0x00000657 } }, /* 0x00000658 */ { 1, { 0x00000658 } }, /* 0x00000659 */ { 1, { 0x00000659 } }, /* 0x0000065a */ { 1, { 0x0000065a } }, /* 0x0000065b */ { 1, { 0x0000065b } }, /* 0x0000065c */ { 1, { 0x0000065c } }, /* 0x0000065d */ { 1, { 0x0000065d } }, /* 0x0000065e */ { 1, { 0x0000065e } }, /* 0x0000065f */ { 1, { 0x0000065f } }, /* 0x00000660 */ { 1, { 0x00000660 } }, /* 0x00000661 */ { 1, { 0x00000661 } }, /* 0x00000662 */ { 1, { 0x00000662 } }, /* 0x00000663 */ { 1, { 0x00000663 } }, /* 0x00000664 */ { 1, { 0x00000664 } }, /* 0x00000665 */ { 1, { 0x00000665 } }, /* 0x00000666 */ { 1, { 0x00000666 } }, /* 0x00000667 */ { 1, { 0x00000667 } }, /* 0x00000668 */ { 1, { 0x00000668 } }, /* 0x00000669 */ { 1, { 0x00000669 } }, /* 0x0000066a */ { 1, { 0x0000066a } }, /* 0x0000066b */ { 1, { 0x0000066b } }, /* 0x0000066c */ { 1, { 0x0000066c } }, /* 0x0000066d */ { 1, { 0x0000066d } }, /* 0x0000066e */ { 1, { 0x0000066e } }, /* 0x0000066f */ { 1, { 0x0000066f } }, /* 0x00000670 */ { 1, { 0x00000670 } }, /* 0x00000671 */ { 1, { 0x00000671 } }, /* 0x00000672 */ { 1, { 0x00000672 } }, /* 0x00000673 */ { 1, { 0x00000673 } }, /* 0x00000674 */ { 1, { 0x00000674 } }, /* 0x00000675 */ { 1, { 0x00000675 } }, /* 0x00000676 */ { 1, { 0x00000676 } }, /* 0x00000677 */ { 1, { 0x00000677 } }, /* 0x00000678 */ { 1, { 0x00000678 } }, /* 0x00000679 */ { 1, { 0x00000679 } }, /* 0x0000067a */ { 1, { 0x0000067a } }, /* 0x0000067b */ { 1, { 0x0000067b } }, /* 0x0000067c */ { 1, { 0x0000067c } }, /* 0x0000067d */ { 1, { 0x0000067d } }, /* 0x0000067e */ { 1, { 0x0000067e } }, /* 0x0000067f */ { 1, { 0x0000067f } }, /* 0x00000680 */ { 1, { 0x00000680 } }, /* 0x00000681 */ { 1, { 0x00000681 } }, /* 0x00000682 */ { 1, { 0x00000682 } }, /* 0x00000683 */ { 1, { 0x00000683 } }, /* 0x00000684 */ { 1, { 0x00000684 } }, /* 0x00000685 */ { 1, { 0x00000685 } }, /* 0x00000686 */ { 1, { 0x00000686 } }, /* 0x00000687 */ { 1, { 0x00000687 } }, /* 0x00000688 */ { 1, { 0x00000688 } }, /* 0x00000689 */ { 1, { 0x00000689 } }, /* 0x0000068a */ { 1, { 0x0000068a } }, /* 0x0000068b */ { 1, { 0x0000068b } }, /* 0x0000068c */ { 1, { 0x0000068c } }, /* 0x0000068d */ { 1, { 0x0000068d } }, /* 0x0000068e */ { 1, { 0x0000068e } }, /* 0x0000068f */ { 1, { 0x0000068f } }, /* 0x00000690 */ { 1, { 0x00000690 } }, /* 0x00000691 */ { 1, { 0x00000691 } }, /* 0x00000692 */ { 1, { 0x00000692 } }, /* 0x00000693 */ { 1, { 0x00000693 } }, /* 0x00000694 */ { 1, { 0x00000694 } }, /* 0x00000695 */ { 1, { 0x00000695 } }, /* 0x00000696 */ { 1, { 0x00000696 } }, /* 0x00000697 */ { 1, { 0x00000697 } }, /* 0x00000698 */ { 1, { 0x00000698 } }, /* 0x00000699 */ { 1, { 0x00000699 } }, /* 0x0000069a */ { 1, { 0x0000069a } }, /* 0x0000069b */ { 1, { 0x0000069b } }, /* 0x0000069c */ { 1, { 0x0000069c } }, /* 0x0000069d */ { 1, { 0x0000069d } }, /* 0x0000069e */ { 1, { 0x0000069e } }, /* 0x0000069f */ { 1, { 0x0000069f } }, /* 0x000006a0 */ { 1, { 0x000006a0 } }, /* 0x000006a1 */ { 1, { 0x000006a1 } }, /* 0x000006a2 */ { 1, { 0x000006a2 } }, /* 0x000006a3 */ { 1, { 0x000006a3 } }, /* 0x000006a4 */ { 1, { 0x000006a4 } }, /* 0x000006a5 */ { 1, { 0x000006a5 } }, /* 0x000006a6 */ { 1, { 0x000006a6 } }, /* 0x000006a7 */ { 1, { 0x000006a7 } }, /* 0x000006a8 */ { 1, { 0x000006a8 } }, /* 0x000006a9 */ { 1, { 0x000006a9 } }, /* 0x000006aa */ { 1, { 0x000006aa } }, /* 0x000006ab */ { 1, { 0x000006ab } }, /* 0x000006ac */ { 1, { 0x000006ac } }, /* 0x000006ad */ { 1, { 0x000006ad } }, /* 0x000006ae */ { 1, { 0x000006ae } }, /* 0x000006af */ { 1, { 0x000006af } }, /* 0x000006b0 */ { 1, { 0x000006b0 } }, /* 0x000006b1 */ { 1, { 0x000006b1 } }, /* 0x000006b2 */ { 1, { 0x000006b2 } }, /* 0x000006b3 */ { 1, { 0x000006b3 } }, /* 0x000006b4 */ { 1, { 0x000006b4 } }, /* 0x000006b5 */ { 1, { 0x000006b5 } }, /* 0x000006b6 */ { 1, { 0x000006b6 } }, /* 0x000006b7 */ { 1, { 0x000006b7 } }, /* 0x000006b8 */ { 1, { 0x000006b8 } }, /* 0x000006b9 */ { 1, { 0x000006b9 } }, /* 0x000006ba */ { 1, { 0x000006ba } }, /* 0x000006bb */ { 1, { 0x000006bb } }, /* 0x000006bc */ { 1, { 0x000006bc } }, /* 0x000006bd */ { 1, { 0x000006bd } }, /* 0x000006be */ { 1, { 0x000006be } }, /* 0x000006bf */ { 1, { 0x000006bf } }, /* 0x000006c0 */ { 2, { 0x000006d5, 0x00000654 } }, /* 0x000006c1 */ { 1, { 0x000006c1 } }, /* 0x000006c2 */ { 2, { 0x000006c1, 0x00000654 } }, /* 0x000006c3 */ { 1, { 0x000006c3 } }, /* 0x000006c4 */ { 1, { 0x000006c4 } }, /* 0x000006c5 */ { 1, { 0x000006c5 } }, /* 0x000006c6 */ { 1, { 0x000006c6 } }, /* 0x000006c7 */ { 1, { 0x000006c7 } }, /* 0x000006c8 */ { 1, { 0x000006c8 } }, /* 0x000006c9 */ { 1, { 0x000006c9 } }, /* 0x000006ca */ { 1, { 0x000006ca } }, /* 0x000006cb */ { 1, { 0x000006cb } }, /* 0x000006cc */ { 1, { 0x000006cc } }, /* 0x000006cd */ { 1, { 0x000006cd } }, /* 0x000006ce */ { 1, { 0x000006ce } }, /* 0x000006cf */ { 1, { 0x000006cf } }, /* 0x000006d0 */ { 1, { 0x000006d0 } }, /* 0x000006d1 */ { 1, { 0x000006d1 } }, /* 0x000006d2 */ { 1, { 0x000006d2 } }, /* 0x000006d3 */ { 2, { 0x000006d2, 0x00000654 } }, /* 0x000006d4 */ { 1, { 0x000006d4 } }, /* 0x000006d5 */ { 1, { 0x000006d5 } }, /* 0x000006d6 */ { 1, { 0x000006d6 } }, /* 0x000006d7 */ { 1, { 0x000006d7 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000928[ 184 ] = { /* 0x00000928 */ { 1, { 0x00000928 } }, /* 0x00000929 */ { 2, { 0x00000928, 0x0000093c } }, /* 0x0000092a */ { 1, { 0x0000092a } }, /* 0x0000092b */ { 1, { 0x0000092b } }, /* 0x0000092c */ { 1, { 0x0000092c } }, /* 0x0000092d */ { 1, { 0x0000092d } }, /* 0x0000092e */ { 1, { 0x0000092e } }, /* 0x0000092f */ { 1, { 0x0000092f } }, /* 0x00000930 */ { 1, { 0x00000930 } }, /* 0x00000931 */ { 2, { 0x00000930, 0x0000093c } }, /* 0x00000932 */ { 1, { 0x00000932 } }, /* 0x00000933 */ { 1, { 0x00000933 } }, /* 0x00000934 */ { 2, { 0x00000933, 0x0000093c } }, /* 0x00000935 */ { 1, { 0x00000935 } }, /* 0x00000936 */ { 1, { 0x00000936 } }, /* 0x00000937 */ { 1, { 0x00000937 } }, /* 0x00000938 */ { 1, { 0x00000938 } }, /* 0x00000939 */ { 1, { 0x00000939 } }, /* 0x0000093a */ { 1, { 0x0000093a } }, /* 0x0000093b */ { 1, { 0x0000093b } }, /* 0x0000093c */ { 1, { 0x0000093c } }, /* 0x0000093d */ { 1, { 0x0000093d } }, /* 0x0000093e */ { 1, { 0x0000093e } }, /* 0x0000093f */ { 1, { 0x0000093f } }, /* 0x00000940 */ { 1, { 0x00000940 } }, /* 0x00000941 */ { 1, { 0x00000941 } }, /* 0x00000942 */ { 1, { 0x00000942 } }, /* 0x00000943 */ { 1, { 0x00000943 } }, /* 0x00000944 */ { 1, { 0x00000944 } }, /* 0x00000945 */ { 1, { 0x00000945 } }, /* 0x00000946 */ { 1, { 0x00000946 } }, /* 0x00000947 */ { 1, { 0x00000947 } }, /* 0x00000948 */ { 1, { 0x00000948 } }, /* 0x00000949 */ { 1, { 0x00000949 } }, /* 0x0000094a */ { 1, { 0x0000094a } }, /* 0x0000094b */ { 1, { 0x0000094b } }, /* 0x0000094c */ { 1, { 0x0000094c } }, /* 0x0000094d */ { 1, { 0x0000094d } }, /* 0x0000094e */ { 1, { 0x0000094e } }, /* 0x0000094f */ { 1, { 0x0000094f } }, /* 0x00000950 */ { 1, { 0x00000950 } }, /* 0x00000951 */ { 1, { 0x00000951 } }, /* 0x00000952 */ { 1, { 0x00000952 } }, /* 0x00000953 */ { 1, { 0x00000953 } }, /* 0x00000954 */ { 1, { 0x00000954 } }, /* 0x00000955 */ { 1, { 0x00000955 } }, /* 0x00000956 */ { 1, { 0x00000956 } }, /* 0x00000957 */ { 1, { 0x00000957 } }, /* 0x00000958 */ { 2, { 0x00000915, 0x0000093c } }, /* 0x00000959 */ { 2, { 0x00000916, 0x0000093c } }, /* 0x0000095a */ { 2, { 0x00000917, 0x0000093c } }, /* 0x0000095b */ { 2, { 0x0000091c, 0x0000093c } }, /* 0x0000095c */ { 2, { 0x00000921, 0x0000093c } }, /* 0x0000095d */ { 2, { 0x00000922, 0x0000093c } }, /* 0x0000095e */ { 2, { 0x0000092b, 0x0000093c } }, /* 0x0000095f */ { 2, { 0x0000092f, 0x0000093c } }, /* 0x00000960 */ { 1, { 0x00000960 } }, /* 0x00000961 */ { 1, { 0x00000961 } }, /* 0x00000962 */ { 1, { 0x00000962 } }, /* 0x00000963 */ { 1, { 0x00000963 } }, /* 0x00000964 */ { 1, { 0x00000964 } }, /* 0x00000965 */ { 1, { 0x00000965 } }, /* 0x00000966 */ { 1, { 0x00000966 } }, /* 0x00000967 */ { 1, { 0x00000967 } }, /* 0x00000968 */ { 1, { 0x00000968 } }, /* 0x00000969 */ { 1, { 0x00000969 } }, /* 0x0000096a */ { 1, { 0x0000096a } }, /* 0x0000096b */ { 1, { 0x0000096b } }, /* 0x0000096c */ { 1, { 0x0000096c } }, /* 0x0000096d */ { 1, { 0x0000096d } }, /* 0x0000096e */ { 1, { 0x0000096e } }, /* 0x0000096f */ { 1, { 0x0000096f } }, /* 0x00000970 */ { 1, { 0x00000970 } }, /* 0x00000971 */ { 1, { 0x00000971 } }, /* 0x00000972 */ { 1, { 0x00000972 } }, /* 0x00000973 */ { 1, { 0x00000973 } }, /* 0x00000974 */ { 1, { 0x00000974 } }, /* 0x00000975 */ { 1, { 0x00000975 } }, /* 0x00000976 */ { 1, { 0x00000976 } }, /* 0x00000977 */ { 1, { 0x00000977 } }, /* 0x00000978 */ { 1, { 0x00000978 } }, /* 0x00000979 */ { 1, { 0x00000979 } }, /* 0x0000097a */ { 1, { 0x0000097a } }, /* 0x0000097b */ { 1, { 0x0000097b } }, /* 0x0000097c */ { 1, { 0x0000097c } }, /* 0x0000097d */ { 1, { 0x0000097d } }, /* 0x0000097e */ { 1, { 0x0000097e } }, /* 0x0000097f */ { 1, { 0x0000097f } }, /* 0x00000980 */ { 1, { 0x00000980 } }, /* 0x00000981 */ { 1, { 0x00000981 } }, /* 0x00000982 */ { 1, { 0x00000982 } }, /* 0x00000983 */ { 1, { 0x00000983 } }, /* 0x00000984 */ { 1, { 0x00000984 } }, /* 0x00000985 */ { 1, { 0x00000985 } }, /* 0x00000986 */ { 1, { 0x00000986 } }, /* 0x00000987 */ { 1, { 0x00000987 } }, /* 0x00000988 */ { 1, { 0x00000988 } }, /* 0x00000989 */ { 1, { 0x00000989 } }, /* 0x0000098a */ { 1, { 0x0000098a } }, /* 0x0000098b */ { 1, { 0x0000098b } }, /* 0x0000098c */ { 1, { 0x0000098c } }, /* 0x0000098d */ { 1, { 0x0000098d } }, /* 0x0000098e */ { 1, { 0x0000098e } }, /* 0x0000098f */ { 1, { 0x0000098f } }, /* 0x00000990 */ { 1, { 0x00000990 } }, /* 0x00000991 */ { 1, { 0x00000991 } }, /* 0x00000992 */ { 1, { 0x00000992 } }, /* 0x00000993 */ { 1, { 0x00000993 } }, /* 0x00000994 */ { 1, { 0x00000994 } }, /* 0x00000995 */ { 1, { 0x00000995 } }, /* 0x00000996 */ { 1, { 0x00000996 } }, /* 0x00000997 */ { 1, { 0x00000997 } }, /* 0x00000998 */ { 1, { 0x00000998 } }, /* 0x00000999 */ { 1, { 0x00000999 } }, /* 0x0000099a */ { 1, { 0x0000099a } }, /* 0x0000099b */ { 1, { 0x0000099b } }, /* 0x0000099c */ { 1, { 0x0000099c } }, /* 0x0000099d */ { 1, { 0x0000099d } }, /* 0x0000099e */ { 1, { 0x0000099e } }, /* 0x0000099f */ { 1, { 0x0000099f } }, /* 0x000009a0 */ { 1, { 0x000009a0 } }, /* 0x000009a1 */ { 1, { 0x000009a1 } }, /* 0x000009a2 */ { 1, { 0x000009a2 } }, /* 0x000009a3 */ { 1, { 0x000009a3 } }, /* 0x000009a4 */ { 1, { 0x000009a4 } }, /* 0x000009a5 */ { 1, { 0x000009a5 } }, /* 0x000009a6 */ { 1, { 0x000009a6 } }, /* 0x000009a7 */ { 1, { 0x000009a7 } }, /* 0x000009a8 */ { 1, { 0x000009a8 } }, /* 0x000009a9 */ { 1, { 0x000009a9 } }, /* 0x000009aa */ { 1, { 0x000009aa } }, /* 0x000009ab */ { 1, { 0x000009ab } }, /* 0x000009ac */ { 1, { 0x000009ac } }, /* 0x000009ad */ { 1, { 0x000009ad } }, /* 0x000009ae */ { 1, { 0x000009ae } }, /* 0x000009af */ { 1, { 0x000009af } }, /* 0x000009b0 */ { 1, { 0x000009b0 } }, /* 0x000009b1 */ { 1, { 0x000009b1 } }, /* 0x000009b2 */ { 1, { 0x000009b2 } }, /* 0x000009b3 */ { 1, { 0x000009b3 } }, /* 0x000009b4 */ { 1, { 0x000009b4 } }, /* 0x000009b5 */ { 1, { 0x000009b5 } }, /* 0x000009b6 */ { 1, { 0x000009b6 } }, /* 0x000009b7 */ { 1, { 0x000009b7 } }, /* 0x000009b8 */ { 1, { 0x000009b8 } }, /* 0x000009b9 */ { 1, { 0x000009b9 } }, /* 0x000009ba */ { 1, { 0x000009ba } }, /* 0x000009bb */ { 1, { 0x000009bb } }, /* 0x000009bc */ { 1, { 0x000009bc } }, /* 0x000009bd */ { 1, { 0x000009bd } }, /* 0x000009be */ { 1, { 0x000009be } }, /* 0x000009bf */ { 1, { 0x000009bf } }, /* 0x000009c0 */ { 1, { 0x000009c0 } }, /* 0x000009c1 */ { 1, { 0x000009c1 } }, /* 0x000009c2 */ { 1, { 0x000009c2 } }, /* 0x000009c3 */ { 1, { 0x000009c3 } }, /* 0x000009c4 */ { 1, { 0x000009c4 } }, /* 0x000009c5 */ { 1, { 0x000009c5 } }, /* 0x000009c6 */ { 1, { 0x000009c6 } }, /* 0x000009c7 */ { 1, { 0x000009c7 } }, /* 0x000009c8 */ { 1, { 0x000009c8 } }, /* 0x000009c9 */ { 1, { 0x000009c9 } }, /* 0x000009ca */ { 1, { 0x000009ca } }, /* 0x000009cb */ { 2, { 0x000009c7, 0x000009be } }, /* 0x000009cc */ { 2, { 0x000009c7, 0x000009d7 } }, /* 0x000009cd */ { 1, { 0x000009cd } }, /* 0x000009ce */ { 1, { 0x000009ce } }, /* 0x000009cf */ { 1, { 0x000009cf } }, /* 0x000009d0 */ { 1, { 0x000009d0 } }, /* 0x000009d1 */ { 1, { 0x000009d1 } }, /* 0x000009d2 */ { 1, { 0x000009d2 } }, /* 0x000009d3 */ { 1, { 0x000009d3 } }, /* 0x000009d4 */ { 1, { 0x000009d4 } }, /* 0x000009d5 */ { 1, { 0x000009d5 } }, /* 0x000009d6 */ { 1, { 0x000009d6 } }, /* 0x000009d7 */ { 1, { 0x000009d7 } }, /* 0x000009d8 */ { 1, { 0x000009d8 } }, /* 0x000009d9 */ { 1, { 0x000009d9 } }, /* 0x000009da */ { 1, { 0x000009da } }, /* 0x000009db */ { 1, { 0x000009db } }, /* 0x000009dc */ { 2, { 0x000009a1, 0x000009bc } }, /* 0x000009dd */ { 2, { 0x000009a2, 0x000009bc } }, /* 0x000009de */ { 1, { 0x000009de } }, /* 0x000009df */ { 2, { 0x000009af, 0x000009bc } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000a30[ 48 ] = { /* 0x00000a30 */ { 1, { 0x00000a30 } }, /* 0x00000a31 */ { 1, { 0x00000a31 } }, /* 0x00000a32 */ { 1, { 0x00000a32 } }, /* 0x00000a33 */ { 2, { 0x00000a32, 0x00000a3c } }, /* 0x00000a34 */ { 1, { 0x00000a34 } }, /* 0x00000a35 */ { 1, { 0x00000a35 } }, /* 0x00000a36 */ { 2, { 0x00000a38, 0x00000a3c } }, /* 0x00000a37 */ { 1, { 0x00000a37 } }, /* 0x00000a38 */ { 1, { 0x00000a38 } }, /* 0x00000a39 */ { 1, { 0x00000a39 } }, /* 0x00000a3a */ { 1, { 0x00000a3a } }, /* 0x00000a3b */ { 1, { 0x00000a3b } }, /* 0x00000a3c */ { 1, { 0x00000a3c } }, /* 0x00000a3d */ { 1, { 0x00000a3d } }, /* 0x00000a3e */ { 1, { 0x00000a3e } }, /* 0x00000a3f */ { 1, { 0x00000a3f } }, /* 0x00000a40 */ { 1, { 0x00000a40 } }, /* 0x00000a41 */ { 1, { 0x00000a41 } }, /* 0x00000a42 */ { 1, { 0x00000a42 } }, /* 0x00000a43 */ { 1, { 0x00000a43 } }, /* 0x00000a44 */ { 1, { 0x00000a44 } }, /* 0x00000a45 */ { 1, { 0x00000a45 } }, /* 0x00000a46 */ { 1, { 0x00000a46 } }, /* 0x00000a47 */ { 1, { 0x00000a47 } }, /* 0x00000a48 */ { 1, { 0x00000a48 } }, /* 0x00000a49 */ { 1, { 0x00000a49 } }, /* 0x00000a4a */ { 1, { 0x00000a4a } }, /* 0x00000a4b */ { 1, { 0x00000a4b } }, /* 0x00000a4c */ { 1, { 0x00000a4c } }, /* 0x00000a4d */ { 1, { 0x00000a4d } }, /* 0x00000a4e */ { 1, { 0x00000a4e } }, /* 0x00000a4f */ { 1, { 0x00000a4f } }, /* 0x00000a50 */ { 1, { 0x00000a50 } }, /* 0x00000a51 */ { 1, { 0x00000a51 } }, /* 0x00000a52 */ { 1, { 0x00000a52 } }, /* 0x00000a53 */ { 1, { 0x00000a53 } }, /* 0x00000a54 */ { 1, { 0x00000a54 } }, /* 0x00000a55 */ { 1, { 0x00000a55 } }, /* 0x00000a56 */ { 1, { 0x00000a56 } }, /* 0x00000a57 */ { 1, { 0x00000a57 } }, /* 0x00000a58 */ { 1, { 0x00000a58 } }, /* 0x00000a59 */ { 2, { 0x00000a16, 0x00000a3c } }, /* 0x00000a5a */ { 2, { 0x00000a17, 0x00000a3c } }, /* 0x00000a5b */ { 2, { 0x00000a1c, 0x00000a3c } }, /* 0x00000a5c */ { 1, { 0x00000a5c } }, /* 0x00000a5d */ { 1, { 0x00000a5d } }, /* 0x00000a5e */ { 2, { 0x00000a2b, 0x00000a3c } }, /* 0x00000a5f */ { 1, { 0x00000a5f } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000b48[ 136 ] = { /* 0x00000b48 */ { 2, { 0x00000b47, 0x00000b56 } }, /* 0x00000b49 */ { 1, { 0x00000b49 } }, /* 0x00000b4a */ { 1, { 0x00000b4a } }, /* 0x00000b4b */ { 2, { 0x00000b47, 0x00000b3e } }, /* 0x00000b4c */ { 2, { 0x00000b47, 0x00000b57 } }, /* 0x00000b4d */ { 1, { 0x00000b4d } }, /* 0x00000b4e */ { 1, { 0x00000b4e } }, /* 0x00000b4f */ { 1, { 0x00000b4f } }, /* 0x00000b50 */ { 1, { 0x00000b50 } }, /* 0x00000b51 */ { 1, { 0x00000b51 } }, /* 0x00000b52 */ { 1, { 0x00000b52 } }, /* 0x00000b53 */ { 1, { 0x00000b53 } }, /* 0x00000b54 */ { 1, { 0x00000b54 } }, /* 0x00000b55 */ { 1, { 0x00000b55 } }, /* 0x00000b56 */ { 1, { 0x00000b56 } }, /* 0x00000b57 */ { 1, { 0x00000b57 } }, /* 0x00000b58 */ { 1, { 0x00000b58 } }, /* 0x00000b59 */ { 1, { 0x00000b59 } }, /* 0x00000b5a */ { 1, { 0x00000b5a } }, /* 0x00000b5b */ { 1, { 0x00000b5b } }, /* 0x00000b5c */ { 2, { 0x00000b21, 0x00000b3c } }, /* 0x00000b5d */ { 2, { 0x00000b22, 0x00000b3c } }, /* 0x00000b5e */ { 1, { 0x00000b5e } }, /* 0x00000b5f */ { 1, { 0x00000b5f } }, /* 0x00000b60 */ { 1, { 0x00000b60 } }, /* 0x00000b61 */ { 1, { 0x00000b61 } }, /* 0x00000b62 */ { 1, { 0x00000b62 } }, /* 0x00000b63 */ { 1, { 0x00000b63 } }, /* 0x00000b64 */ { 1, { 0x00000b64 } }, /* 0x00000b65 */ { 1, { 0x00000b65 } }, /* 0x00000b66 */ { 1, { 0x00000b66 } }, /* 0x00000b67 */ { 1, { 0x00000b67 } }, /* 0x00000b68 */ { 1, { 0x00000b68 } }, /* 0x00000b69 */ { 1, { 0x00000b69 } }, /* 0x00000b6a */ { 1, { 0x00000b6a } }, /* 0x00000b6b */ { 1, { 0x00000b6b } }, /* 0x00000b6c */ { 1, { 0x00000b6c } }, /* 0x00000b6d */ { 1, { 0x00000b6d } }, /* 0x00000b6e */ { 1, { 0x00000b6e } }, /* 0x00000b6f */ { 1, { 0x00000b6f } }, /* 0x00000b70 */ { 1, { 0x00000b70 } }, /* 0x00000b71 */ { 1, { 0x00000b71 } }, /* 0x00000b72 */ { 1, { 0x00000b72 } }, /* 0x00000b73 */ { 1, { 0x00000b73 } }, /* 0x00000b74 */ { 1, { 0x00000b74 } }, /* 0x00000b75 */ { 1, { 0x00000b75 } }, /* 0x00000b76 */ { 1, { 0x00000b76 } }, /* 0x00000b77 */ { 1, { 0x00000b77 } }, /* 0x00000b78 */ { 1, { 0x00000b78 } }, /* 0x00000b79 */ { 1, { 0x00000b79 } }, /* 0x00000b7a */ { 1, { 0x00000b7a } }, /* 0x00000b7b */ { 1, { 0x00000b7b } }, /* 0x00000b7c */ { 1, { 0x00000b7c } }, /* 0x00000b7d */ { 1, { 0x00000b7d } }, /* 0x00000b7e */ { 1, { 0x00000b7e } }, /* 0x00000b7f */ { 1, { 0x00000b7f } }, /* 0x00000b80 */ { 1, { 0x00000b80 } }, /* 0x00000b81 */ { 1, { 0x00000b81 } }, /* 0x00000b82 */ { 1, { 0x00000b82 } }, /* 0x00000b83 */ { 1, { 0x00000b83 } }, /* 0x00000b84 */ { 1, { 0x00000b84 } }, /* 0x00000b85 */ { 1, { 0x00000b85 } }, /* 0x00000b86 */ { 1, { 0x00000b86 } }, /* 0x00000b87 */ { 1, { 0x00000b87 } }, /* 0x00000b88 */ { 1, { 0x00000b88 } }, /* 0x00000b89 */ { 1, { 0x00000b89 } }, /* 0x00000b8a */ { 1, { 0x00000b8a } }, /* 0x00000b8b */ { 1, { 0x00000b8b } }, /* 0x00000b8c */ { 1, { 0x00000b8c } }, /* 0x00000b8d */ { 1, { 0x00000b8d } }, /* 0x00000b8e */ { 1, { 0x00000b8e } }, /* 0x00000b8f */ { 1, { 0x00000b8f } }, /* 0x00000b90 */ { 1, { 0x00000b90 } }, /* 0x00000b91 */ { 1, { 0x00000b91 } }, /* 0x00000b92 */ { 1, { 0x00000b92 } }, /* 0x00000b93 */ { 1, { 0x00000b93 } }, /* 0x00000b94 */ { 2, { 0x00000b92, 0x00000bd7 } }, /* 0x00000b95 */ { 1, { 0x00000b95 } }, /* 0x00000b96 */ { 1, { 0x00000b96 } }, /* 0x00000b97 */ { 1, { 0x00000b97 } }, /* 0x00000b98 */ { 1, { 0x00000b98 } }, /* 0x00000b99 */ { 1, { 0x00000b99 } }, /* 0x00000b9a */ { 1, { 0x00000b9a } }, /* 0x00000b9b */ { 1, { 0x00000b9b } }, /* 0x00000b9c */ { 1, { 0x00000b9c } }, /* 0x00000b9d */ { 1, { 0x00000b9d } }, /* 0x00000b9e */ { 1, { 0x00000b9e } }, /* 0x00000b9f */ { 1, { 0x00000b9f } }, /* 0x00000ba0 */ { 1, { 0x00000ba0 } }, /* 0x00000ba1 */ { 1, { 0x00000ba1 } }, /* 0x00000ba2 */ { 1, { 0x00000ba2 } }, /* 0x00000ba3 */ { 1, { 0x00000ba3 } }, /* 0x00000ba4 */ { 1, { 0x00000ba4 } }, /* 0x00000ba5 */ { 1, { 0x00000ba5 } }, /* 0x00000ba6 */ { 1, { 0x00000ba6 } }, /* 0x00000ba7 */ { 1, { 0x00000ba7 } }, /* 0x00000ba8 */ { 1, { 0x00000ba8 } }, /* 0x00000ba9 */ { 1, { 0x00000ba9 } }, /* 0x00000baa */ { 1, { 0x00000baa } }, /* 0x00000bab */ { 1, { 0x00000bab } }, /* 0x00000bac */ { 1, { 0x00000bac } }, /* 0x00000bad */ { 1, { 0x00000bad } }, /* 0x00000bae */ { 1, { 0x00000bae } }, /* 0x00000baf */ { 1, { 0x00000baf } }, /* 0x00000bb0 */ { 1, { 0x00000bb0 } }, /* 0x00000bb1 */ { 1, { 0x00000bb1 } }, /* 0x00000bb2 */ { 1, { 0x00000bb2 } }, /* 0x00000bb3 */ { 1, { 0x00000bb3 } }, /* 0x00000bb4 */ { 1, { 0x00000bb4 } }, /* 0x00000bb5 */ { 1, { 0x00000bb5 } }, /* 0x00000bb6 */ { 1, { 0x00000bb6 } }, /* 0x00000bb7 */ { 1, { 0x00000bb7 } }, /* 0x00000bb8 */ { 1, { 0x00000bb8 } }, /* 0x00000bb9 */ { 1, { 0x00000bb9 } }, /* 0x00000bba */ { 1, { 0x00000bba } }, /* 0x00000bbb */ { 1, { 0x00000bbb } }, /* 0x00000bbc */ { 1, { 0x00000bbc } }, /* 0x00000bbd */ { 1, { 0x00000bbd } }, /* 0x00000bbe */ { 1, { 0x00000bbe } }, /* 0x00000bbf */ { 1, { 0x00000bbf } }, /* 0x00000bc0 */ { 1, { 0x00000bc0 } }, /* 0x00000bc1 */ { 1, { 0x00000bc1 } }, /* 0x00000bc2 */ { 1, { 0x00000bc2 } }, /* 0x00000bc3 */ { 1, { 0x00000bc3 } }, /* 0x00000bc4 */ { 1, { 0x00000bc4 } }, /* 0x00000bc5 */ { 1, { 0x00000bc5 } }, /* 0x00000bc6 */ { 1, { 0x00000bc6 } }, /* 0x00000bc7 */ { 1, { 0x00000bc7 } }, /* 0x00000bc8 */ { 1, { 0x00000bc8 } }, /* 0x00000bc9 */ { 1, { 0x00000bc9 } }, /* 0x00000bca */ { 2, { 0x00000bc6, 0x00000bbe } }, /* 0x00000bcb */ { 2, { 0x00000bc7, 0x00000bbe } }, /* 0x00000bcc */ { 2, { 0x00000bc6, 0x00000bd7 } }, /* 0x00000bcd */ { 1, { 0x00000bcd } }, /* 0x00000bce */ { 1, { 0x00000bce } }, /* 0x00000bcf */ { 1, { 0x00000bcf } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000c48[ 136 ] = { /* 0x00000c48 */ { 2, { 0x00000c46, 0x00000c56 } }, /* 0x00000c49 */ { 1, { 0x00000c49 } }, /* 0x00000c4a */ { 1, { 0x00000c4a } }, /* 0x00000c4b */ { 1, { 0x00000c4b } }, /* 0x00000c4c */ { 1, { 0x00000c4c } }, /* 0x00000c4d */ { 1, { 0x00000c4d } }, /* 0x00000c4e */ { 1, { 0x00000c4e } }, /* 0x00000c4f */ { 1, { 0x00000c4f } }, /* 0x00000c50 */ { 1, { 0x00000c50 } }, /* 0x00000c51 */ { 1, { 0x00000c51 } }, /* 0x00000c52 */ { 1, { 0x00000c52 } }, /* 0x00000c53 */ { 1, { 0x00000c53 } }, /* 0x00000c54 */ { 1, { 0x00000c54 } }, /* 0x00000c55 */ { 1, { 0x00000c55 } }, /* 0x00000c56 */ { 1, { 0x00000c56 } }, /* 0x00000c57 */ { 1, { 0x00000c57 } }, /* 0x00000c58 */ { 1, { 0x00000c58 } }, /* 0x00000c59 */ { 1, { 0x00000c59 } }, /* 0x00000c5a */ { 1, { 0x00000c5a } }, /* 0x00000c5b */ { 1, { 0x00000c5b } }, /* 0x00000c5c */ { 1, { 0x00000c5c } }, /* 0x00000c5d */ { 1, { 0x00000c5d } }, /* 0x00000c5e */ { 1, { 0x00000c5e } }, /* 0x00000c5f */ { 1, { 0x00000c5f } }, /* 0x00000c60 */ { 1, { 0x00000c60 } }, /* 0x00000c61 */ { 1, { 0x00000c61 } }, /* 0x00000c62 */ { 1, { 0x00000c62 } }, /* 0x00000c63 */ { 1, { 0x00000c63 } }, /* 0x00000c64 */ { 1, { 0x00000c64 } }, /* 0x00000c65 */ { 1, { 0x00000c65 } }, /* 0x00000c66 */ { 1, { 0x00000c66 } }, /* 0x00000c67 */ { 1, { 0x00000c67 } }, /* 0x00000c68 */ { 1, { 0x00000c68 } }, /* 0x00000c69 */ { 1, { 0x00000c69 } }, /* 0x00000c6a */ { 1, { 0x00000c6a } }, /* 0x00000c6b */ { 1, { 0x00000c6b } }, /* 0x00000c6c */ { 1, { 0x00000c6c } }, /* 0x00000c6d */ { 1, { 0x00000c6d } }, /* 0x00000c6e */ { 1, { 0x00000c6e } }, /* 0x00000c6f */ { 1, { 0x00000c6f } }, /* 0x00000c70 */ { 1, { 0x00000c70 } }, /* 0x00000c71 */ { 1, { 0x00000c71 } }, /* 0x00000c72 */ { 1, { 0x00000c72 } }, /* 0x00000c73 */ { 1, { 0x00000c73 } }, /* 0x00000c74 */ { 1, { 0x00000c74 } }, /* 0x00000c75 */ { 1, { 0x00000c75 } }, /* 0x00000c76 */ { 1, { 0x00000c76 } }, /* 0x00000c77 */ { 1, { 0x00000c77 } }, /* 0x00000c78 */ { 1, { 0x00000c78 } }, /* 0x00000c79 */ { 1, { 0x00000c79 } }, /* 0x00000c7a */ { 1, { 0x00000c7a } }, /* 0x00000c7b */ { 1, { 0x00000c7b } }, /* 0x00000c7c */ { 1, { 0x00000c7c } }, /* 0x00000c7d */ { 1, { 0x00000c7d } }, /* 0x00000c7e */ { 1, { 0x00000c7e } }, /* 0x00000c7f */ { 1, { 0x00000c7f } }, /* 0x00000c80 */ { 1, { 0x00000c80 } }, /* 0x00000c81 */ { 1, { 0x00000c81 } }, /* 0x00000c82 */ { 1, { 0x00000c82 } }, /* 0x00000c83 */ { 1, { 0x00000c83 } }, /* 0x00000c84 */ { 1, { 0x00000c84 } }, /* 0x00000c85 */ { 1, { 0x00000c85 } }, /* 0x00000c86 */ { 1, { 0x00000c86 } }, /* 0x00000c87 */ { 1, { 0x00000c87 } }, /* 0x00000c88 */ { 1, { 0x00000c88 } }, /* 0x00000c89 */ { 1, { 0x00000c89 } }, /* 0x00000c8a */ { 1, { 0x00000c8a } }, /* 0x00000c8b */ { 1, { 0x00000c8b } }, /* 0x00000c8c */ { 1, { 0x00000c8c } }, /* 0x00000c8d */ { 1, { 0x00000c8d } }, /* 0x00000c8e */ { 1, { 0x00000c8e } }, /* 0x00000c8f */ { 1, { 0x00000c8f } }, /* 0x00000c90 */ { 1, { 0x00000c90 } }, /* 0x00000c91 */ { 1, { 0x00000c91 } }, /* 0x00000c92 */ { 1, { 0x00000c92 } }, /* 0x00000c93 */ { 1, { 0x00000c93 } }, /* 0x00000c94 */ { 1, { 0x00000c94 } }, /* 0x00000c95 */ { 1, { 0x00000c95 } }, /* 0x00000c96 */ { 1, { 0x00000c96 } }, /* 0x00000c97 */ { 1, { 0x00000c97 } }, /* 0x00000c98 */ { 1, { 0x00000c98 } }, /* 0x00000c99 */ { 1, { 0x00000c99 } }, /* 0x00000c9a */ { 1, { 0x00000c9a } }, /* 0x00000c9b */ { 1, { 0x00000c9b } }, /* 0x00000c9c */ { 1, { 0x00000c9c } }, /* 0x00000c9d */ { 1, { 0x00000c9d } }, /* 0x00000c9e */ { 1, { 0x00000c9e } }, /* 0x00000c9f */ { 1, { 0x00000c9f } }, /* 0x00000ca0 */ { 1, { 0x00000ca0 } }, /* 0x00000ca1 */ { 1, { 0x00000ca1 } }, /* 0x00000ca2 */ { 1, { 0x00000ca2 } }, /* 0x00000ca3 */ { 1, { 0x00000ca3 } }, /* 0x00000ca4 */ { 1, { 0x00000ca4 } }, /* 0x00000ca5 */ { 1, { 0x00000ca5 } }, /* 0x00000ca6 */ { 1, { 0x00000ca6 } }, /* 0x00000ca7 */ { 1, { 0x00000ca7 } }, /* 0x00000ca8 */ { 1, { 0x00000ca8 } }, /* 0x00000ca9 */ { 1, { 0x00000ca9 } }, /* 0x00000caa */ { 1, { 0x00000caa } }, /* 0x00000cab */ { 1, { 0x00000cab } }, /* 0x00000cac */ { 1, { 0x00000cac } }, /* 0x00000cad */ { 1, { 0x00000cad } }, /* 0x00000cae */ { 1, { 0x00000cae } }, /* 0x00000caf */ { 1, { 0x00000caf } }, /* 0x00000cb0 */ { 1, { 0x00000cb0 } }, /* 0x00000cb1 */ { 1, { 0x00000cb1 } }, /* 0x00000cb2 */ { 1, { 0x00000cb2 } }, /* 0x00000cb3 */ { 1, { 0x00000cb3 } }, /* 0x00000cb4 */ { 1, { 0x00000cb4 } }, /* 0x00000cb5 */ { 1, { 0x00000cb5 } }, /* 0x00000cb6 */ { 1, { 0x00000cb6 } }, /* 0x00000cb7 */ { 1, { 0x00000cb7 } }, /* 0x00000cb8 */ { 1, { 0x00000cb8 } }, /* 0x00000cb9 */ { 1, { 0x00000cb9 } }, /* 0x00000cba */ { 1, { 0x00000cba } }, /* 0x00000cbb */ { 1, { 0x00000cbb } }, /* 0x00000cbc */ { 1, { 0x00000cbc } }, /* 0x00000cbd */ { 1, { 0x00000cbd } }, /* 0x00000cbe */ { 1, { 0x00000cbe } }, /* 0x00000cbf */ { 1, { 0x00000cbf } }, /* 0x00000cc0 */ { 2, { 0x00000cbf, 0x00000cd5 } }, /* 0x00000cc1 */ { 1, { 0x00000cc1 } }, /* 0x00000cc2 */ { 1, { 0x00000cc2 } }, /* 0x00000cc3 */ { 1, { 0x00000cc3 } }, /* 0x00000cc4 */ { 1, { 0x00000cc4 } }, /* 0x00000cc5 */ { 1, { 0x00000cc5 } }, /* 0x00000cc6 */ { 1, { 0x00000cc6 } }, /* 0x00000cc7 */ { 2, { 0x00000cc6, 0x00000cd5 } }, /* 0x00000cc8 */ { 2, { 0x00000cc6, 0x00000cd6 } }, /* 0x00000cc9 */ { 1, { 0x00000cc9 } }, /* 0x00000cca */ { 2, { 0x00000cc6, 0x00000cc2 } }, /* 0x00000ccb */ { 3, { 0x00000cc6, 0x00000cc2, 0x00000cd5 } }, /* 0x00000ccc */ { 1, { 0x00000ccc } }, /* 0x00000ccd */ { 1, { 0x00000ccd } }, /* 0x00000cce */ { 1, { 0x00000cce } }, /* 0x00000ccf */ { 1, { 0x00000ccf } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000d48[ 152 ] = { /* 0x00000d48 */ { 1, { 0x00000d48 } }, /* 0x00000d49 */ { 1, { 0x00000d49 } }, /* 0x00000d4a */ { 2, { 0x00000d46, 0x00000d3e } }, /* 0x00000d4b */ { 2, { 0x00000d47, 0x00000d3e } }, /* 0x00000d4c */ { 2, { 0x00000d46, 0x00000d57 } }, /* 0x00000d4d */ { 1, { 0x00000d4d } }, /* 0x00000d4e */ { 1, { 0x00000d4e } }, /* 0x00000d4f */ { 1, { 0x00000d4f } }, /* 0x00000d50 */ { 1, { 0x00000d50 } }, /* 0x00000d51 */ { 1, { 0x00000d51 } }, /* 0x00000d52 */ { 1, { 0x00000d52 } }, /* 0x00000d53 */ { 1, { 0x00000d53 } }, /* 0x00000d54 */ { 1, { 0x00000d54 } }, /* 0x00000d55 */ { 1, { 0x00000d55 } }, /* 0x00000d56 */ { 1, { 0x00000d56 } }, /* 0x00000d57 */ { 1, { 0x00000d57 } }, /* 0x00000d58 */ { 1, { 0x00000d58 } }, /* 0x00000d59 */ { 1, { 0x00000d59 } }, /* 0x00000d5a */ { 1, { 0x00000d5a } }, /* 0x00000d5b */ { 1, { 0x00000d5b } }, /* 0x00000d5c */ { 1, { 0x00000d5c } }, /* 0x00000d5d */ { 1, { 0x00000d5d } }, /* 0x00000d5e */ { 1, { 0x00000d5e } }, /* 0x00000d5f */ { 1, { 0x00000d5f } }, /* 0x00000d60 */ { 1, { 0x00000d60 } }, /* 0x00000d61 */ { 1, { 0x00000d61 } }, /* 0x00000d62 */ { 1, { 0x00000d62 } }, /* 0x00000d63 */ { 1, { 0x00000d63 } }, /* 0x00000d64 */ { 1, { 0x00000d64 } }, /* 0x00000d65 */ { 1, { 0x00000d65 } }, /* 0x00000d66 */ { 1, { 0x00000d66 } }, /* 0x00000d67 */ { 1, { 0x00000d67 } }, /* 0x00000d68 */ { 1, { 0x00000d68 } }, /* 0x00000d69 */ { 1, { 0x00000d69 } }, /* 0x00000d6a */ { 1, { 0x00000d6a } }, /* 0x00000d6b */ { 1, { 0x00000d6b } }, /* 0x00000d6c */ { 1, { 0x00000d6c } }, /* 0x00000d6d */ { 1, { 0x00000d6d } }, /* 0x00000d6e */ { 1, { 0x00000d6e } }, /* 0x00000d6f */ { 1, { 0x00000d6f } }, /* 0x00000d70 */ { 1, { 0x00000d70 } }, /* 0x00000d71 */ { 1, { 0x00000d71 } }, /* 0x00000d72 */ { 1, { 0x00000d72 } }, /* 0x00000d73 */ { 1, { 0x00000d73 } }, /* 0x00000d74 */ { 1, { 0x00000d74 } }, /* 0x00000d75 */ { 1, { 0x00000d75 } }, /* 0x00000d76 */ { 1, { 0x00000d76 } }, /* 0x00000d77 */ { 1, { 0x00000d77 } }, /* 0x00000d78 */ { 1, { 0x00000d78 } }, /* 0x00000d79 */ { 1, { 0x00000d79 } }, /* 0x00000d7a */ { 1, { 0x00000d7a } }, /* 0x00000d7b */ { 1, { 0x00000d7b } }, /* 0x00000d7c */ { 1, { 0x00000d7c } }, /* 0x00000d7d */ { 1, { 0x00000d7d } }, /* 0x00000d7e */ { 1, { 0x00000d7e } }, /* 0x00000d7f */ { 1, { 0x00000d7f } }, /* 0x00000d80 */ { 1, { 0x00000d80 } }, /* 0x00000d81 */ { 1, { 0x00000d81 } }, /* 0x00000d82 */ { 1, { 0x00000d82 } }, /* 0x00000d83 */ { 1, { 0x00000d83 } }, /* 0x00000d84 */ { 1, { 0x00000d84 } }, /* 0x00000d85 */ { 1, { 0x00000d85 } }, /* 0x00000d86 */ { 1, { 0x00000d86 } }, /* 0x00000d87 */ { 1, { 0x00000d87 } }, /* 0x00000d88 */ { 1, { 0x00000d88 } }, /* 0x00000d89 */ { 1, { 0x00000d89 } }, /* 0x00000d8a */ { 1, { 0x00000d8a } }, /* 0x00000d8b */ { 1, { 0x00000d8b } }, /* 0x00000d8c */ { 1, { 0x00000d8c } }, /* 0x00000d8d */ { 1, { 0x00000d8d } }, /* 0x00000d8e */ { 1, { 0x00000d8e } }, /* 0x00000d8f */ { 1, { 0x00000d8f } }, /* 0x00000d90 */ { 1, { 0x00000d90 } }, /* 0x00000d91 */ { 1, { 0x00000d91 } }, /* 0x00000d92 */ { 1, { 0x00000d92 } }, /* 0x00000d93 */ { 1, { 0x00000d93 } }, /* 0x00000d94 */ { 1, { 0x00000d94 } }, /* 0x00000d95 */ { 1, { 0x00000d95 } }, /* 0x00000d96 */ { 1, { 0x00000d96 } }, /* 0x00000d97 */ { 1, { 0x00000d97 } }, /* 0x00000d98 */ { 1, { 0x00000d98 } }, /* 0x00000d99 */ { 1, { 0x00000d99 } }, /* 0x00000d9a */ { 1, { 0x00000d9a } }, /* 0x00000d9b */ { 1, { 0x00000d9b } }, /* 0x00000d9c */ { 1, { 0x00000d9c } }, /* 0x00000d9d */ { 1, { 0x00000d9d } }, /* 0x00000d9e */ { 1, { 0x00000d9e } }, /* 0x00000d9f */ { 1, { 0x00000d9f } }, /* 0x00000da0 */ { 1, { 0x00000da0 } }, /* 0x00000da1 */ { 1, { 0x00000da1 } }, /* 0x00000da2 */ { 1, { 0x00000da2 } }, /* 0x00000da3 */ { 1, { 0x00000da3 } }, /* 0x00000da4 */ { 1, { 0x00000da4 } }, /* 0x00000da5 */ { 1, { 0x00000da5 } }, /* 0x00000da6 */ { 1, { 0x00000da6 } }, /* 0x00000da7 */ { 1, { 0x00000da7 } }, /* 0x00000da8 */ { 1, { 0x00000da8 } }, /* 0x00000da9 */ { 1, { 0x00000da9 } }, /* 0x00000daa */ { 1, { 0x00000daa } }, /* 0x00000dab */ { 1, { 0x00000dab } }, /* 0x00000dac */ { 1, { 0x00000dac } }, /* 0x00000dad */ { 1, { 0x00000dad } }, /* 0x00000dae */ { 1, { 0x00000dae } }, /* 0x00000daf */ { 1, { 0x00000daf } }, /* 0x00000db0 */ { 1, { 0x00000db0 } }, /* 0x00000db1 */ { 1, { 0x00000db1 } }, /* 0x00000db2 */ { 1, { 0x00000db2 } }, /* 0x00000db3 */ { 1, { 0x00000db3 } }, /* 0x00000db4 */ { 1, { 0x00000db4 } }, /* 0x00000db5 */ { 1, { 0x00000db5 } }, /* 0x00000db6 */ { 1, { 0x00000db6 } }, /* 0x00000db7 */ { 1, { 0x00000db7 } }, /* 0x00000db8 */ { 1, { 0x00000db8 } }, /* 0x00000db9 */ { 1, { 0x00000db9 } }, /* 0x00000dba */ { 1, { 0x00000dba } }, /* 0x00000dbb */ { 1, { 0x00000dbb } }, /* 0x00000dbc */ { 1, { 0x00000dbc } }, /* 0x00000dbd */ { 1, { 0x00000dbd } }, /* 0x00000dbe */ { 1, { 0x00000dbe } }, /* 0x00000dbf */ { 1, { 0x00000dbf } }, /* 0x00000dc0 */ { 1, { 0x00000dc0 } }, /* 0x00000dc1 */ { 1, { 0x00000dc1 } }, /* 0x00000dc2 */ { 1, { 0x00000dc2 } }, /* 0x00000dc3 */ { 1, { 0x00000dc3 } }, /* 0x00000dc4 */ { 1, { 0x00000dc4 } }, /* 0x00000dc5 */ { 1, { 0x00000dc5 } }, /* 0x00000dc6 */ { 1, { 0x00000dc6 } }, /* 0x00000dc7 */ { 1, { 0x00000dc7 } }, /* 0x00000dc8 */ { 1, { 0x00000dc8 } }, /* 0x00000dc9 */ { 1, { 0x00000dc9 } }, /* 0x00000dca */ { 1, { 0x00000dca } }, /* 0x00000dcb */ { 1, { 0x00000dcb } }, /* 0x00000dcc */ { 1, { 0x00000dcc } }, /* 0x00000dcd */ { 1, { 0x00000dcd } }, /* 0x00000dce */ { 1, { 0x00000dce } }, /* 0x00000dcf */ { 1, { 0x00000dcf } }, /* 0x00000dd0 */ { 1, { 0x00000dd0 } }, /* 0x00000dd1 */ { 1, { 0x00000dd1 } }, /* 0x00000dd2 */ { 1, { 0x00000dd2 } }, /* 0x00000dd3 */ { 1, { 0x00000dd3 } }, /* 0x00000dd4 */ { 1, { 0x00000dd4 } }, /* 0x00000dd5 */ { 1, { 0x00000dd5 } }, /* 0x00000dd6 */ { 1, { 0x00000dd6 } }, /* 0x00000dd7 */ { 1, { 0x00000dd7 } }, /* 0x00000dd8 */ { 1, { 0x00000dd8 } }, /* 0x00000dd9 */ { 1, { 0x00000dd9 } }, /* 0x00000dda */ { 2, { 0x00000dd9, 0x00000dca } }, /* 0x00000ddb */ { 1, { 0x00000ddb } }, /* 0x00000ddc */ { 2, { 0x00000dd9, 0x00000dcf } }, /* 0x00000ddd */ { 3, { 0x00000dd9, 0x00000dcf, 0x00000dca } }, /* 0x00000dde */ { 2, { 0x00000dd9, 0x00000ddf } }, /* 0x00000ddf */ { 1, { 0x00000ddf } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000f40[ 232 ] = { /* 0x00000f40 */ { 1, { 0x00000f40 } }, /* 0x00000f41 */ { 1, { 0x00000f41 } }, /* 0x00000f42 */ { 1, { 0x00000f42 } }, /* 0x00000f43 */ { 2, { 0x00000f42, 0x00000fb7 } }, /* 0x00000f44 */ { 1, { 0x00000f44 } }, /* 0x00000f45 */ { 1, { 0x00000f45 } }, /* 0x00000f46 */ { 1, { 0x00000f46 } }, /* 0x00000f47 */ { 1, { 0x00000f47 } }, /* 0x00000f48 */ { 1, { 0x00000f48 } }, /* 0x00000f49 */ { 1, { 0x00000f49 } }, /* 0x00000f4a */ { 1, { 0x00000f4a } }, /* 0x00000f4b */ { 1, { 0x00000f4b } }, /* 0x00000f4c */ { 1, { 0x00000f4c } }, /* 0x00000f4d */ { 2, { 0x00000f4c, 0x00000fb7 } }, /* 0x00000f4e */ { 1, { 0x00000f4e } }, /* 0x00000f4f */ { 1, { 0x00000f4f } }, /* 0x00000f50 */ { 1, { 0x00000f50 } }, /* 0x00000f51 */ { 1, { 0x00000f51 } }, /* 0x00000f52 */ { 2, { 0x00000f51, 0x00000fb7 } }, /* 0x00000f53 */ { 1, { 0x00000f53 } }, /* 0x00000f54 */ { 1, { 0x00000f54 } }, /* 0x00000f55 */ { 1, { 0x00000f55 } }, /* 0x00000f56 */ { 1, { 0x00000f56 } }, /* 0x00000f57 */ { 2, { 0x00000f56, 0x00000fb7 } }, /* 0x00000f58 */ { 1, { 0x00000f58 } }, /* 0x00000f59 */ { 1, { 0x00000f59 } }, /* 0x00000f5a */ { 1, { 0x00000f5a } }, /* 0x00000f5b */ { 1, { 0x00000f5b } }, /* 0x00000f5c */ { 2, { 0x00000f5b, 0x00000fb7 } }, /* 0x00000f5d */ { 1, { 0x00000f5d } }, /* 0x00000f5e */ { 1, { 0x00000f5e } }, /* 0x00000f5f */ { 1, { 0x00000f5f } }, /* 0x00000f60 */ { 1, { 0x00000f60 } }, /* 0x00000f61 */ { 1, { 0x00000f61 } }, /* 0x00000f62 */ { 1, { 0x00000f62 } }, /* 0x00000f63 */ { 1, { 0x00000f63 } }, /* 0x00000f64 */ { 1, { 0x00000f64 } }, /* 0x00000f65 */ { 1, { 0x00000f65 } }, /* 0x00000f66 */ { 1, { 0x00000f66 } }, /* 0x00000f67 */ { 1, { 0x00000f67 } }, /* 0x00000f68 */ { 1, { 0x00000f68 } }, /* 0x00000f69 */ { 2, { 0x00000f40, 0x00000fb5 } }, /* 0x00000f6a */ { 1, { 0x00000f6a } }, /* 0x00000f6b */ { 1, { 0x00000f6b } }, /* 0x00000f6c */ { 1, { 0x00000f6c } }, /* 0x00000f6d */ { 1, { 0x00000f6d } }, /* 0x00000f6e */ { 1, { 0x00000f6e } }, /* 0x00000f6f */ { 1, { 0x00000f6f } }, /* 0x00000f70 */ { 1, { 0x00000f70 } }, /* 0x00000f71 */ { 1, { 0x00000f71 } }, /* 0x00000f72 */ { 1, { 0x00000f72 } }, /* 0x00000f73 */ { 2, { 0x00000f71, 0x00000f72 } }, /* 0x00000f74 */ { 1, { 0x00000f74 } }, /* 0x00000f75 */ { 2, { 0x00000f71, 0x00000f74 } }, /* 0x00000f76 */ { 2, { 0x00000fb2, 0x00000f80 } }, /* 0x00000f77 */ { 1, { 0x00000f77 } }, /* 0x00000f78 */ { 2, { 0x00000fb3, 0x00000f80 } }, /* 0x00000f79 */ { 1, { 0x00000f79 } }, /* 0x00000f7a */ { 1, { 0x00000f7a } }, /* 0x00000f7b */ { 1, { 0x00000f7b } }, /* 0x00000f7c */ { 1, { 0x00000f7c } }, /* 0x00000f7d */ { 1, { 0x00000f7d } }, /* 0x00000f7e */ { 1, { 0x00000f7e } }, /* 0x00000f7f */ { 1, { 0x00000f7f } }, /* 0x00000f80 */ { 1, { 0x00000f80 } }, /* 0x00000f81 */ { 2, { 0x00000f71, 0x00000f80 } }, /* 0x00000f82 */ { 1, { 0x00000f82 } }, /* 0x00000f83 */ { 1, { 0x00000f83 } }, /* 0x00000f84 */ { 1, { 0x00000f84 } }, /* 0x00000f85 */ { 1, { 0x00000f85 } }, /* 0x00000f86 */ { 1, { 0x00000f86 } }, /* 0x00000f87 */ { 1, { 0x00000f87 } }, /* 0x00000f88 */ { 1, { 0x00000f88 } }, /* 0x00000f89 */ { 1, { 0x00000f89 } }, /* 0x00000f8a */ { 1, { 0x00000f8a } }, /* 0x00000f8b */ { 1, { 0x00000f8b } }, /* 0x00000f8c */ { 1, { 0x00000f8c } }, /* 0x00000f8d */ { 1, { 0x00000f8d } }, /* 0x00000f8e */ { 1, { 0x00000f8e } }, /* 0x00000f8f */ { 1, { 0x00000f8f } }, /* 0x00000f90 */ { 1, { 0x00000f90 } }, /* 0x00000f91 */ { 1, { 0x00000f91 } }, /* 0x00000f92 */ { 1, { 0x00000f92 } }, /* 0x00000f93 */ { 2, { 0x00000f92, 0x00000fb7 } }, /* 0x00000f94 */ { 1, { 0x00000f94 } }, /* 0x00000f95 */ { 1, { 0x00000f95 } }, /* 0x00000f96 */ { 1, { 0x00000f96 } }, /* 0x00000f97 */ { 1, { 0x00000f97 } }, /* 0x00000f98 */ { 1, { 0x00000f98 } }, /* 0x00000f99 */ { 1, { 0x00000f99 } }, /* 0x00000f9a */ { 1, { 0x00000f9a } }, /* 0x00000f9b */ { 1, { 0x00000f9b } }, /* 0x00000f9c */ { 1, { 0x00000f9c } }, /* 0x00000f9d */ { 2, { 0x00000f9c, 0x00000fb7 } }, /* 0x00000f9e */ { 1, { 0x00000f9e } }, /* 0x00000f9f */ { 1, { 0x00000f9f } }, /* 0x00000fa0 */ { 1, { 0x00000fa0 } }, /* 0x00000fa1 */ { 1, { 0x00000fa1 } }, /* 0x00000fa2 */ { 2, { 0x00000fa1, 0x00000fb7 } }, /* 0x00000fa3 */ { 1, { 0x00000fa3 } }, /* 0x00000fa4 */ { 1, { 0x00000fa4 } }, /* 0x00000fa5 */ { 1, { 0x00000fa5 } }, /* 0x00000fa6 */ { 1, { 0x00000fa6 } }, /* 0x00000fa7 */ { 2, { 0x00000fa6, 0x00000fb7 } }, /* 0x00000fa8 */ { 1, { 0x00000fa8 } }, /* 0x00000fa9 */ { 1, { 0x00000fa9 } }, /* 0x00000faa */ { 1, { 0x00000faa } }, /* 0x00000fab */ { 1, { 0x00000fab } }, /* 0x00000fac */ { 2, { 0x00000fab, 0x00000fb7 } }, /* 0x00000fad */ { 1, { 0x00000fad } }, /* 0x00000fae */ { 1, { 0x00000fae } }, /* 0x00000faf */ { 1, { 0x00000faf } }, /* 0x00000fb0 */ { 1, { 0x00000fb0 } }, /* 0x00000fb1 */ { 1, { 0x00000fb1 } }, /* 0x00000fb2 */ { 1, { 0x00000fb2 } }, /* 0x00000fb3 */ { 1, { 0x00000fb3 } }, /* 0x00000fb4 */ { 1, { 0x00000fb4 } }, /* 0x00000fb5 */ { 1, { 0x00000fb5 } }, /* 0x00000fb6 */ { 1, { 0x00000fb6 } }, /* 0x00000fb7 */ { 1, { 0x00000fb7 } }, /* 0x00000fb8 */ { 1, { 0x00000fb8 } }, /* 0x00000fb9 */ { 2, { 0x00000f90, 0x00000fb5 } }, /* 0x00000fba */ { 1, { 0x00000fba } }, /* 0x00000fbb */ { 1, { 0x00000fbb } }, /* 0x00000fbc */ { 1, { 0x00000fbc } }, /* 0x00000fbd */ { 1, { 0x00000fbd } }, /* 0x00000fbe */ { 1, { 0x00000fbe } }, /* 0x00000fbf */ { 1, { 0x00000fbf } }, /* 0x00000fc0 */ { 1, { 0x00000fc0 } }, /* 0x00000fc1 */ { 1, { 0x00000fc1 } }, /* 0x00000fc2 */ { 1, { 0x00000fc2 } }, /* 0x00000fc3 */ { 1, { 0x00000fc3 } }, /* 0x00000fc4 */ { 1, { 0x00000fc4 } }, /* 0x00000fc5 */ { 1, { 0x00000fc5 } }, /* 0x00000fc6 */ { 1, { 0x00000fc6 } }, /* 0x00000fc7 */ { 1, { 0x00000fc7 } }, /* 0x00000fc8 */ { 1, { 0x00000fc8 } }, /* 0x00000fc9 */ { 1, { 0x00000fc9 } }, /* 0x00000fca */ { 1, { 0x00000fca } }, /* 0x00000fcb */ { 1, { 0x00000fcb } }, /* 0x00000fcc */ { 1, { 0x00000fcc } }, /* 0x00000fcd */ { 1, { 0x00000fcd } }, /* 0x00000fce */ { 1, { 0x00000fce } }, /* 0x00000fcf */ { 1, { 0x00000fcf } }, /* 0x00000fd0 */ { 1, { 0x00000fd0 } }, /* 0x00000fd1 */ { 1, { 0x00000fd1 } }, /* 0x00000fd2 */ { 1, { 0x00000fd2 } }, /* 0x00000fd3 */ { 1, { 0x00000fd3 } }, /* 0x00000fd4 */ { 1, { 0x00000fd4 } }, /* 0x00000fd5 */ { 1, { 0x00000fd5 } }, /* 0x00000fd6 */ { 1, { 0x00000fd6 } }, /* 0x00000fd7 */ { 1, { 0x00000fd7 } }, /* 0x00000fd8 */ { 1, { 0x00000fd8 } }, /* 0x00000fd9 */ { 1, { 0x00000fd9 } }, /* 0x00000fda */ { 1, { 0x00000fda } }, /* 0x00000fdb */ { 1, { 0x00000fdb } }, /* 0x00000fdc */ { 1, { 0x00000fdc } }, /* 0x00000fdd */ { 1, { 0x00000fdd } }, /* 0x00000fde */ { 1, { 0x00000fde } }, /* 0x00000fdf */ { 1, { 0x00000fdf } }, /* 0x00000fe0 */ { 1, { 0x00000fe0 } }, /* 0x00000fe1 */ { 1, { 0x00000fe1 } }, /* 0x00000fe2 */ { 1, { 0x00000fe2 } }, /* 0x00000fe3 */ { 1, { 0x00000fe3 } }, /* 0x00000fe4 */ { 1, { 0x00000fe4 } }, /* 0x00000fe5 */ { 1, { 0x00000fe5 } }, /* 0x00000fe6 */ { 1, { 0x00000fe6 } }, /* 0x00000fe7 */ { 1, { 0x00000fe7 } }, /* 0x00000fe8 */ { 1, { 0x00000fe8 } }, /* 0x00000fe9 */ { 1, { 0x00000fe9 } }, /* 0x00000fea */ { 1, { 0x00000fea } }, /* 0x00000feb */ { 1, { 0x00000feb } }, /* 0x00000fec */ { 1, { 0x00000fec } }, /* 0x00000fed */ { 1, { 0x00000fed } }, /* 0x00000fee */ { 1, { 0x00000fee } }, /* 0x00000fef */ { 1, { 0x00000fef } }, /* 0x00000ff0 */ { 1, { 0x00000ff0 } }, /* 0x00000ff1 */ { 1, { 0x00000ff1 } }, /* 0x00000ff2 */ { 1, { 0x00000ff2 } }, /* 0x00000ff3 */ { 1, { 0x00000ff3 } }, /* 0x00000ff4 */ { 1, { 0x00000ff4 } }, /* 0x00000ff5 */ { 1, { 0x00000ff5 } }, /* 0x00000ff6 */ { 1, { 0x00000ff6 } }, /* 0x00000ff7 */ { 1, { 0x00000ff7 } }, /* 0x00000ff8 */ { 1, { 0x00000ff8 } }, /* 0x00000ff9 */ { 1, { 0x00000ff9 } }, /* 0x00000ffa */ { 1, { 0x00000ffa } }, /* 0x00000ffb */ { 1, { 0x00000ffb } }, /* 0x00000ffc */ { 1, { 0x00000ffc } }, /* 0x00000ffd */ { 1, { 0x00000ffd } }, /* 0x00000ffe */ { 1, { 0x00000ffe } }, /* 0x00000fff */ { 1, { 0x00000fff } }, /* 0x00001000 */ { 1, { 0x00001000 } }, /* 0x00001001 */ { 1, { 0x00001001 } }, /* 0x00001002 */ { 1, { 0x00001002 } }, /* 0x00001003 */ { 1, { 0x00001003 } }, /* 0x00001004 */ { 1, { 0x00001004 } }, /* 0x00001005 */ { 1, { 0x00001005 } }, /* 0x00001006 */ { 1, { 0x00001006 } }, /* 0x00001007 */ { 1, { 0x00001007 } }, /* 0x00001008 */ { 1, { 0x00001008 } }, /* 0x00001009 */ { 1, { 0x00001009 } }, /* 0x0000100a */ { 1, { 0x0000100a } }, /* 0x0000100b */ { 1, { 0x0000100b } }, /* 0x0000100c */ { 1, { 0x0000100c } }, /* 0x0000100d */ { 1, { 0x0000100d } }, /* 0x0000100e */ { 1, { 0x0000100e } }, /* 0x0000100f */ { 1, { 0x0000100f } }, /* 0x00001010 */ { 1, { 0x00001010 } }, /* 0x00001011 */ { 1, { 0x00001011 } }, /* 0x00001012 */ { 1, { 0x00001012 } }, /* 0x00001013 */ { 1, { 0x00001013 } }, /* 0x00001014 */ { 1, { 0x00001014 } }, /* 0x00001015 */ { 1, { 0x00001015 } }, /* 0x00001016 */ { 1, { 0x00001016 } }, /* 0x00001017 */ { 1, { 0x00001017 } }, /* 0x00001018 */ { 1, { 0x00001018 } }, /* 0x00001019 */ { 1, { 0x00001019 } }, /* 0x0000101a */ { 1, { 0x0000101a } }, /* 0x0000101b */ { 1, { 0x0000101b } }, /* 0x0000101c */ { 1, { 0x0000101c } }, /* 0x0000101d */ { 1, { 0x0000101d } }, /* 0x0000101e */ { 1, { 0x0000101e } }, /* 0x0000101f */ { 1, { 0x0000101f } }, /* 0x00001020 */ { 1, { 0x00001020 } }, /* 0x00001021 */ { 1, { 0x00001021 } }, /* 0x00001022 */ { 1, { 0x00001022 } }, /* 0x00001023 */ { 1, { 0x00001023 } }, /* 0x00001024 */ { 1, { 0x00001024 } }, /* 0x00001025 */ { 1, { 0x00001025 } }, /* 0x00001026 */ { 2, { 0x00001025, 0x0000102e } }, /* 0x00001027 */ { 1, { 0x00001027 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00001b00[ 72 ] = { /* 0x00001b00 */ { 1, { 0x00001b00 } }, /* 0x00001b01 */ { 1, { 0x00001b01 } }, /* 0x00001b02 */ { 1, { 0x00001b02 } }, /* 0x00001b03 */ { 1, { 0x00001b03 } }, /* 0x00001b04 */ { 1, { 0x00001b04 } }, /* 0x00001b05 */ { 1, { 0x00001b05 } }, /* 0x00001b06 */ { 2, { 0x00001b05, 0x00001b35 } }, /* 0x00001b07 */ { 1, { 0x00001b07 } }, /* 0x00001b08 */ { 2, { 0x00001b07, 0x00001b35 } }, /* 0x00001b09 */ { 1, { 0x00001b09 } }, /* 0x00001b0a */ { 2, { 0x00001b09, 0x00001b35 } }, /* 0x00001b0b */ { 1, { 0x00001b0b } }, /* 0x00001b0c */ { 2, { 0x00001b0b, 0x00001b35 } }, /* 0x00001b0d */ { 1, { 0x00001b0d } }, /* 0x00001b0e */ { 2, { 0x00001b0d, 0x00001b35 } }, /* 0x00001b0f */ { 1, { 0x00001b0f } }, /* 0x00001b10 */ { 1, { 0x00001b10 } }, /* 0x00001b11 */ { 1, { 0x00001b11 } }, /* 0x00001b12 */ { 2, { 0x00001b11, 0x00001b35 } }, /* 0x00001b13 */ { 1, { 0x00001b13 } }, /* 0x00001b14 */ { 1, { 0x00001b14 } }, /* 0x00001b15 */ { 1, { 0x00001b15 } }, /* 0x00001b16 */ { 1, { 0x00001b16 } }, /* 0x00001b17 */ { 1, { 0x00001b17 } }, /* 0x00001b18 */ { 1, { 0x00001b18 } }, /* 0x00001b19 */ { 1, { 0x00001b19 } }, /* 0x00001b1a */ { 1, { 0x00001b1a } }, /* 0x00001b1b */ { 1, { 0x00001b1b } }, /* 0x00001b1c */ { 1, { 0x00001b1c } }, /* 0x00001b1d */ { 1, { 0x00001b1d } }, /* 0x00001b1e */ { 1, { 0x00001b1e } }, /* 0x00001b1f */ { 1, { 0x00001b1f } }, /* 0x00001b20 */ { 1, { 0x00001b20 } }, /* 0x00001b21 */ { 1, { 0x00001b21 } }, /* 0x00001b22 */ { 1, { 0x00001b22 } }, /* 0x00001b23 */ { 1, { 0x00001b23 } }, /* 0x00001b24 */ { 1, { 0x00001b24 } }, /* 0x00001b25 */ { 1, { 0x00001b25 } }, /* 0x00001b26 */ { 1, { 0x00001b26 } }, /* 0x00001b27 */ { 1, { 0x00001b27 } }, /* 0x00001b28 */ { 1, { 0x00001b28 } }, /* 0x00001b29 */ { 1, { 0x00001b29 } }, /* 0x00001b2a */ { 1, { 0x00001b2a } }, /* 0x00001b2b */ { 1, { 0x00001b2b } }, /* 0x00001b2c */ { 1, { 0x00001b2c } }, /* 0x00001b2d */ { 1, { 0x00001b2d } }, /* 0x00001b2e */ { 1, { 0x00001b2e } }, /* 0x00001b2f */ { 1, { 0x00001b2f } }, /* 0x00001b30 */ { 1, { 0x00001b30 } }, /* 0x00001b31 */ { 1, { 0x00001b31 } }, /* 0x00001b32 */ { 1, { 0x00001b32 } }, /* 0x00001b33 */ { 1, { 0x00001b33 } }, /* 0x00001b34 */ { 1, { 0x00001b34 } }, /* 0x00001b35 */ { 1, { 0x00001b35 } }, /* 0x00001b36 */ { 1, { 0x00001b36 } }, /* 0x00001b37 */ { 1, { 0x00001b37 } }, /* 0x00001b38 */ { 1, { 0x00001b38 } }, /* 0x00001b39 */ { 1, { 0x00001b39 } }, /* 0x00001b3a */ { 1, { 0x00001b3a } }, /* 0x00001b3b */ { 2, { 0x00001b3a, 0x00001b35 } }, /* 0x00001b3c */ { 1, { 0x00001b3c } }, /* 0x00001b3d */ { 2, { 0x00001b3c, 0x00001b35 } }, /* 0x00001b3e */ { 1, { 0x00001b3e } }, /* 0x00001b3f */ { 1, { 0x00001b3f } }, /* 0x00001b40 */ { 2, { 0x00001b3e, 0x00001b35 } }, /* 0x00001b41 */ { 2, { 0x00001b3f, 0x00001b35 } }, /* 0x00001b42 */ { 1, { 0x00001b42 } }, /* 0x00001b43 */ { 2, { 0x00001b42, 0x00001b35 } }, /* 0x00001b44 */ { 1, { 0x00001b44 } }, /* 0x00001b45 */ { 1, { 0x00001b45 } }, /* 0x00001b46 */ { 1, { 0x00001b46 } }, /* 0x00001b47 */ { 1, { 0x00001b47 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00001e00[ 520 ] = { /* 0x00001e00 */ { 2, { 0x00000041, 0x00000325 } }, /* 0x00001e01 */ { 2, { 0x00000061, 0x00000325 } }, /* 0x00001e02 */ { 2, { 0x00000042, 0x00000307 } }, /* 0x00001e03 */ { 2, { 0x00000062, 0x00000307 } }, /* 0x00001e04 */ { 2, { 0x00000042, 0x00000323 } }, /* 0x00001e05 */ { 2, { 0x00000062, 0x00000323 } }, /* 0x00001e06 */ { 2, { 0x00000042, 0x00000331 } }, /* 0x00001e07 */ { 2, { 0x00000062, 0x00000331 } }, /* 0x00001e08 */ { 3, { 0x00000043, 0x00000327, 0x00000301 } }, /* 0x00001e09 */ { 3, { 0x00000063, 0x00000327, 0x00000301 } }, /* 0x00001e0a */ { 2, { 0x00000044, 0x00000307 } }, /* 0x00001e0b */ { 2, { 0x00000064, 0x00000307 } }, /* 0x00001e0c */ { 2, { 0x00000044, 0x00000323 } }, /* 0x00001e0d */ { 2, { 0x00000064, 0x00000323 } }, /* 0x00001e0e */ { 2, { 0x00000044, 0x00000331 } }, /* 0x00001e0f */ { 2, { 0x00000064, 0x00000331 } }, /* 0x00001e10 */ { 2, { 0x00000044, 0x00000327 } }, /* 0x00001e11 */ { 2, { 0x00000064, 0x00000327 } }, /* 0x00001e12 */ { 2, { 0x00000044, 0x0000032d } }, /* 0x00001e13 */ { 2, { 0x00000064, 0x0000032d } }, /* 0x00001e14 */ { 3, { 0x00000045, 0x00000304, 0x00000300 } }, /* 0x00001e15 */ { 3, { 0x00000065, 0x00000304, 0x00000300 } }, /* 0x00001e16 */ { 3, { 0x00000045, 0x00000304, 0x00000301 } }, /* 0x00001e17 */ { 3, { 0x00000065, 0x00000304, 0x00000301 } }, /* 0x00001e18 */ { 2, { 0x00000045, 0x0000032d } }, /* 0x00001e19 */ { 2, { 0x00000065, 0x0000032d } }, /* 0x00001e1a */ { 2, { 0x00000045, 0x00000330 } }, /* 0x00001e1b */ { 2, { 0x00000065, 0x00000330 } }, /* 0x00001e1c */ { 3, { 0x00000045, 0x00000327, 0x00000306 } }, /* 0x00001e1d */ { 3, { 0x00000065, 0x00000327, 0x00000306 } }, /* 0x00001e1e */ { 2, { 0x00000046, 0x00000307 } }, /* 0x00001e1f */ { 2, { 0x00000066, 0x00000307 } }, /* 0x00001e20 */ { 2, { 0x00000047, 0x00000304 } }, /* 0x00001e21 */ { 2, { 0x00000067, 0x00000304 } }, /* 0x00001e22 */ { 2, { 0x00000048, 0x00000307 } }, /* 0x00001e23 */ { 2, { 0x00000068, 0x00000307 } }, /* 0x00001e24 */ { 2, { 0x00000048, 0x00000323 } }, /* 0x00001e25 */ { 2, { 0x00000068, 0x00000323 } }, /* 0x00001e26 */ { 2, { 0x00000048, 0x00000308 } }, /* 0x00001e27 */ { 2, { 0x00000068, 0x00000308 } }, /* 0x00001e28 */ { 2, { 0x00000048, 0x00000327 } }, /* 0x00001e29 */ { 2, { 0x00000068, 0x00000327 } }, /* 0x00001e2a */ { 2, { 0x00000048, 0x0000032e } }, /* 0x00001e2b */ { 2, { 0x00000068, 0x0000032e } }, /* 0x00001e2c */ { 2, { 0x00000049, 0x00000330 } }, /* 0x00001e2d */ { 2, { 0x00000069, 0x00000330 } }, /* 0x00001e2e */ { 3, { 0x00000049, 0x00000308, 0x00000301 } }, /* 0x00001e2f */ { 3, { 0x00000069, 0x00000308, 0x00000301 } }, /* 0x00001e30 */ { 2, { 0x0000004b, 0x00000301 } }, /* 0x00001e31 */ { 2, { 0x0000006b, 0x00000301 } }, /* 0x00001e32 */ { 2, { 0x0000004b, 0x00000323 } }, /* 0x00001e33 */ { 2, { 0x0000006b, 0x00000323 } }, /* 0x00001e34 */ { 2, { 0x0000004b, 0x00000331 } }, /* 0x00001e35 */ { 2, { 0x0000006b, 0x00000331 } }, /* 0x00001e36 */ { 2, { 0x0000004c, 0x00000323 } }, /* 0x00001e37 */ { 2, { 0x0000006c, 0x00000323 } }, /* 0x00001e38 */ { 3, { 0x0000004c, 0x00000323, 0x00000304 } }, /* 0x00001e39 */ { 3, { 0x0000006c, 0x00000323, 0x00000304 } }, /* 0x00001e3a */ { 2, { 0x0000004c, 0x00000331 } }, /* 0x00001e3b */ { 2, { 0x0000006c, 0x00000331 } }, /* 0x00001e3c */ { 2, { 0x0000004c, 0x0000032d } }, /* 0x00001e3d */ { 2, { 0x0000006c, 0x0000032d } }, /* 0x00001e3e */ { 2, { 0x0000004d, 0x00000301 } }, /* 0x00001e3f */ { 2, { 0x0000006d, 0x00000301 } }, /* 0x00001e40 */ { 2, { 0x0000004d, 0x00000307 } }, /* 0x00001e41 */ { 2, { 0x0000006d, 0x00000307 } }, /* 0x00001e42 */ { 2, { 0x0000004d, 0x00000323 } }, /* 0x00001e43 */ { 2, { 0x0000006d, 0x00000323 } }, /* 0x00001e44 */ { 2, { 0x0000004e, 0x00000307 } }, /* 0x00001e45 */ { 2, { 0x0000006e, 0x00000307 } }, /* 0x00001e46 */ { 2, { 0x0000004e, 0x00000323 } }, /* 0x00001e47 */ { 2, { 0x0000006e, 0x00000323 } }, /* 0x00001e48 */ { 2, { 0x0000004e, 0x00000331 } }, /* 0x00001e49 */ { 2, { 0x0000006e, 0x00000331 } }, /* 0x00001e4a */ { 2, { 0x0000004e, 0x0000032d } }, /* 0x00001e4b */ { 2, { 0x0000006e, 0x0000032d } }, /* 0x00001e4c */ { 3, { 0x0000004f, 0x00000303, 0x00000301 } }, /* 0x00001e4d */ { 3, { 0x0000006f, 0x00000303, 0x00000301 } }, /* 0x00001e4e */ { 3, { 0x0000004f, 0x00000303, 0x00000308 } }, /* 0x00001e4f */ { 3, { 0x0000006f, 0x00000303, 0x00000308 } }, /* 0x00001e50 */ { 3, { 0x0000004f, 0x00000304, 0x00000300 } }, /* 0x00001e51 */ { 3, { 0x0000006f, 0x00000304, 0x00000300 } }, /* 0x00001e52 */ { 3, { 0x0000004f, 0x00000304, 0x00000301 } }, /* 0x00001e53 */ { 3, { 0x0000006f, 0x00000304, 0x00000301 } }, /* 0x00001e54 */ { 2, { 0x00000050, 0x00000301 } }, /* 0x00001e55 */ { 2, { 0x00000070, 0x00000301 } }, /* 0x00001e56 */ { 2, { 0x00000050, 0x00000307 } }, /* 0x00001e57 */ { 2, { 0x00000070, 0x00000307 } }, /* 0x00001e58 */ { 2, { 0x00000052, 0x00000307 } }, /* 0x00001e59 */ { 2, { 0x00000072, 0x00000307 } }, /* 0x00001e5a */ { 2, { 0x00000052, 0x00000323 } }, /* 0x00001e5b */ { 2, { 0x00000072, 0x00000323 } }, /* 0x00001e5c */ { 3, { 0x00000052, 0x00000323, 0x00000304 } }, /* 0x00001e5d */ { 3, { 0x00000072, 0x00000323, 0x00000304 } }, /* 0x00001e5e */ { 2, { 0x00000052, 0x00000331 } }, /* 0x00001e5f */ { 2, { 0x00000072, 0x00000331 } }, /* 0x00001e60 */ { 2, { 0x00000053, 0x00000307 } }, /* 0x00001e61 */ { 2, { 0x00000073, 0x00000307 } }, /* 0x00001e62 */ { 2, { 0x00000053, 0x00000323 } }, /* 0x00001e63 */ { 2, { 0x00000073, 0x00000323 } }, /* 0x00001e64 */ { 3, { 0x00000053, 0x00000301, 0x00000307 } }, /* 0x00001e65 */ { 3, { 0x00000073, 0x00000301, 0x00000307 } }, /* 0x00001e66 */ { 3, { 0x00000053, 0x0000030c, 0x00000307 } }, /* 0x00001e67 */ { 3, { 0x00000073, 0x0000030c, 0x00000307 } }, /* 0x00001e68 */ { 3, { 0x00000053, 0x00000323, 0x00000307 } }, /* 0x00001e69 */ { 3, { 0x00000073, 0x00000323, 0x00000307 } }, /* 0x00001e6a */ { 2, { 0x00000054, 0x00000307 } }, /* 0x00001e6b */ { 2, { 0x00000074, 0x00000307 } }, /* 0x00001e6c */ { 2, { 0x00000054, 0x00000323 } }, /* 0x00001e6d */ { 2, { 0x00000074, 0x00000323 } }, /* 0x00001e6e */ { 2, { 0x00000054, 0x00000331 } }, /* 0x00001e6f */ { 2, { 0x00000074, 0x00000331 } }, /* 0x00001e70 */ { 2, { 0x00000054, 0x0000032d } }, /* 0x00001e71 */ { 2, { 0x00000074, 0x0000032d } }, /* 0x00001e72 */ { 2, { 0x00000055, 0x00000324 } }, /* 0x00001e73 */ { 2, { 0x00000075, 0x00000324 } }, /* 0x00001e74 */ { 2, { 0x00000055, 0x00000330 } }, /* 0x00001e75 */ { 2, { 0x00000075, 0x00000330 } }, /* 0x00001e76 */ { 2, { 0x00000055, 0x0000032d } }, /* 0x00001e77 */ { 2, { 0x00000075, 0x0000032d } }, /* 0x00001e78 */ { 3, { 0x00000055, 0x00000303, 0x00000301 } }, /* 0x00001e79 */ { 3, { 0x00000075, 0x00000303, 0x00000301 } }, /* 0x00001e7a */ { 3, { 0x00000055, 0x00000304, 0x00000308 } }, /* 0x00001e7b */ { 3, { 0x00000075, 0x00000304, 0x00000308 } }, /* 0x00001e7c */ { 2, { 0x00000056, 0x00000303 } }, /* 0x00001e7d */ { 2, { 0x00000076, 0x00000303 } }, /* 0x00001e7e */ { 2, { 0x00000056, 0x00000323 } }, /* 0x00001e7f */ { 2, { 0x00000076, 0x00000323 } }, /* 0x00001e80 */ { 2, { 0x00000057, 0x00000300 } }, /* 0x00001e81 */ { 2, { 0x00000077, 0x00000300 } }, /* 0x00001e82 */ { 2, { 0x00000057, 0x00000301 } }, /* 0x00001e83 */ { 2, { 0x00000077, 0x00000301 } }, /* 0x00001e84 */ { 2, { 0x00000057, 0x00000308 } }, /* 0x00001e85 */ { 2, { 0x00000077, 0x00000308 } }, /* 0x00001e86 */ { 2, { 0x00000057, 0x00000307 } }, /* 0x00001e87 */ { 2, { 0x00000077, 0x00000307 } }, /* 0x00001e88 */ { 2, { 0x00000057, 0x00000323 } }, /* 0x00001e89 */ { 2, { 0x00000077, 0x00000323 } }, /* 0x00001e8a */ { 2, { 0x00000058, 0x00000307 } }, /* 0x00001e8b */ { 2, { 0x00000078, 0x00000307 } }, /* 0x00001e8c */ { 2, { 0x00000058, 0x00000308 } }, /* 0x00001e8d */ { 2, { 0x00000078, 0x00000308 } }, /* 0x00001e8e */ { 2, { 0x00000059, 0x00000307 } }, /* 0x00001e8f */ { 2, { 0x00000079, 0x00000307 } }, /* 0x00001e90 */ { 2, { 0x0000005a, 0x00000302 } }, /* 0x00001e91 */ { 2, { 0x0000007a, 0x00000302 } }, /* 0x00001e92 */ { 2, { 0x0000005a, 0x00000323 } }, /* 0x00001e93 */ { 2, { 0x0000007a, 0x00000323 } }, /* 0x00001e94 */ { 2, { 0x0000005a, 0x00000331 } }, /* 0x00001e95 */ { 2, { 0x0000007a, 0x00000331 } }, /* 0x00001e96 */ { 2, { 0x00000068, 0x00000331 } }, /* 0x00001e97 */ { 2, { 0x00000074, 0x00000308 } }, /* 0x00001e98 */ { 2, { 0x00000077, 0x0000030a } }, /* 0x00001e99 */ { 2, { 0x00000079, 0x0000030a } }, /* 0x00001e9a */ { 1, { 0x00001e9a } }, /* 0x00001e9b */ { 2, { 0x0000017f, 0x00000307 } }, /* 0x00001e9c */ { 1, { 0x00001e9c } }, /* 0x00001e9d */ { 1, { 0x00001e9d } }, /* 0x00001e9e */ { 1, { 0x00001e9e } }, /* 0x00001e9f */ { 1, { 0x00001e9f } }, /* 0x00001ea0 */ { 2, { 0x00000041, 0x00000323 } }, /* 0x00001ea1 */ { 2, { 0x00000061, 0x00000323 } }, /* 0x00001ea2 */ { 2, { 0x00000041, 0x00000309 } }, /* 0x00001ea3 */ { 2, { 0x00000061, 0x00000309 } }, /* 0x00001ea4 */ { 3, { 0x00000041, 0x00000302, 0x00000301 } }, /* 0x00001ea5 */ { 3, { 0x00000061, 0x00000302, 0x00000301 } }, /* 0x00001ea6 */ { 3, { 0x00000041, 0x00000302, 0x00000300 } }, /* 0x00001ea7 */ { 3, { 0x00000061, 0x00000302, 0x00000300 } }, /* 0x00001ea8 */ { 3, { 0x00000041, 0x00000302, 0x00000309 } }, /* 0x00001ea9 */ { 3, { 0x00000061, 0x00000302, 0x00000309 } }, /* 0x00001eaa */ { 3, { 0x00000041, 0x00000302, 0x00000303 } }, /* 0x00001eab */ { 3, { 0x00000061, 0x00000302, 0x00000303 } }, /* 0x00001eac */ { 3, { 0x00000041, 0x00000323, 0x00000302 } }, /* 0x00001ead */ { 3, { 0x00000061, 0x00000323, 0x00000302 } }, /* 0x00001eae */ { 3, { 0x00000041, 0x00000306, 0x00000301 } }, /* 0x00001eaf */ { 3, { 0x00000061, 0x00000306, 0x00000301 } }, /* 0x00001eb0 */ { 3, { 0x00000041, 0x00000306, 0x00000300 } }, /* 0x00001eb1 */ { 3, { 0x00000061, 0x00000306, 0x00000300 } }, /* 0x00001eb2 */ { 3, { 0x00000041, 0x00000306, 0x00000309 } }, /* 0x00001eb3 */ { 3, { 0x00000061, 0x00000306, 0x00000309 } }, /* 0x00001eb4 */ { 3, { 0x00000041, 0x00000306, 0x00000303 } }, /* 0x00001eb5 */ { 3, { 0x00000061, 0x00000306, 0x00000303 } }, /* 0x00001eb6 */ { 3, { 0x00000041, 0x00000323, 0x00000306 } }, /* 0x00001eb7 */ { 3, { 0x00000061, 0x00000323, 0x00000306 } }, /* 0x00001eb8 */ { 2, { 0x00000045, 0x00000323 } }, /* 0x00001eb9 */ { 2, { 0x00000065, 0x00000323 } }, /* 0x00001eba */ { 2, { 0x00000045, 0x00000309 } }, /* 0x00001ebb */ { 2, { 0x00000065, 0x00000309 } }, /* 0x00001ebc */ { 2, { 0x00000045, 0x00000303 } }, /* 0x00001ebd */ { 2, { 0x00000065, 0x00000303 } }, /* 0x00001ebe */ { 3, { 0x00000045, 0x00000302, 0x00000301 } }, /* 0x00001ebf */ { 3, { 0x00000065, 0x00000302, 0x00000301 } }, /* 0x00001ec0 */ { 3, { 0x00000045, 0x00000302, 0x00000300 } }, /* 0x00001ec1 */ { 3, { 0x00000065, 0x00000302, 0x00000300 } }, /* 0x00001ec2 */ { 3, { 0x00000045, 0x00000302, 0x00000309 } }, /* 0x00001ec3 */ { 3, { 0x00000065, 0x00000302, 0x00000309 } }, /* 0x00001ec4 */ { 3, { 0x00000045, 0x00000302, 0x00000303 } }, /* 0x00001ec5 */ { 3, { 0x00000065, 0x00000302, 0x00000303 } }, /* 0x00001ec6 */ { 3, { 0x00000045, 0x00000323, 0x00000302 } }, /* 0x00001ec7 */ { 3, { 0x00000065, 0x00000323, 0x00000302 } }, /* 0x00001ec8 */ { 2, { 0x00000049, 0x00000309 } }, /* 0x00001ec9 */ { 2, { 0x00000069, 0x00000309 } }, /* 0x00001eca */ { 2, { 0x00000049, 0x00000323 } }, /* 0x00001ecb */ { 2, { 0x00000069, 0x00000323 } }, /* 0x00001ecc */ { 2, { 0x0000004f, 0x00000323 } }, /* 0x00001ecd */ { 2, { 0x0000006f, 0x00000323 } }, /* 0x00001ece */ { 2, { 0x0000004f, 0x00000309 } }, /* 0x00001ecf */ { 2, { 0x0000006f, 0x00000309 } }, /* 0x00001ed0 */ { 3, { 0x0000004f, 0x00000302, 0x00000301 } }, /* 0x00001ed1 */ { 3, { 0x0000006f, 0x00000302, 0x00000301 } }, /* 0x00001ed2 */ { 3, { 0x0000004f, 0x00000302, 0x00000300 } }, /* 0x00001ed3 */ { 3, { 0x0000006f, 0x00000302, 0x00000300 } }, /* 0x00001ed4 */ { 3, { 0x0000004f, 0x00000302, 0x00000309 } }, /* 0x00001ed5 */ { 3, { 0x0000006f, 0x00000302, 0x00000309 } }, /* 0x00001ed6 */ { 3, { 0x0000004f, 0x00000302, 0x00000303 } }, /* 0x00001ed7 */ { 3, { 0x0000006f, 0x00000302, 0x00000303 } }, /* 0x00001ed8 */ { 3, { 0x0000004f, 0x00000323, 0x00000302 } }, /* 0x00001ed9 */ { 3, { 0x0000006f, 0x00000323, 0x00000302 } }, /* 0x00001eda */ { 3, { 0x0000004f, 0x0000031b, 0x00000301 } }, /* 0x00001edb */ { 3, { 0x0000006f, 0x0000031b, 0x00000301 } }, /* 0x00001edc */ { 3, { 0x0000004f, 0x0000031b, 0x00000300 } }, /* 0x00001edd */ { 3, { 0x0000006f, 0x0000031b, 0x00000300 } }, /* 0x00001ede */ { 3, { 0x0000004f, 0x0000031b, 0x00000309 } }, /* 0x00001edf */ { 3, { 0x0000006f, 0x0000031b, 0x00000309 } }, /* 0x00001ee0 */ { 3, { 0x0000004f, 0x0000031b, 0x00000303 } }, /* 0x00001ee1 */ { 3, { 0x0000006f, 0x0000031b, 0x00000303 } }, /* 0x00001ee2 */ { 3, { 0x0000004f, 0x0000031b, 0x00000323 } }, /* 0x00001ee3 */ { 3, { 0x0000006f, 0x0000031b, 0x00000323 } }, /* 0x00001ee4 */ { 2, { 0x00000055, 0x00000323 } }, /* 0x00001ee5 */ { 2, { 0x00000075, 0x00000323 } }, /* 0x00001ee6 */ { 2, { 0x00000055, 0x00000309 } }, /* 0x00001ee7 */ { 2, { 0x00000075, 0x00000309 } }, /* 0x00001ee8 */ { 3, { 0x00000055, 0x0000031b, 0x00000301 } }, /* 0x00001ee9 */ { 3, { 0x00000075, 0x0000031b, 0x00000301 } }, /* 0x00001eea */ { 3, { 0x00000055, 0x0000031b, 0x00000300 } }, /* 0x00001eeb */ { 3, { 0x00000075, 0x0000031b, 0x00000300 } }, /* 0x00001eec */ { 3, { 0x00000055, 0x0000031b, 0x00000309 } }, /* 0x00001eed */ { 3, { 0x00000075, 0x0000031b, 0x00000309 } }, /* 0x00001eee */ { 3, { 0x00000055, 0x0000031b, 0x00000303 } }, /* 0x00001eef */ { 3, { 0x00000075, 0x0000031b, 0x00000303 } }, /* 0x00001ef0 */ { 3, { 0x00000055, 0x0000031b, 0x00000323 } }, /* 0x00001ef1 */ { 3, { 0x00000075, 0x0000031b, 0x00000323 } }, /* 0x00001ef2 */ { 2, { 0x00000059, 0x00000300 } }, /* 0x00001ef3 */ { 2, { 0x00000079, 0x00000300 } }, /* 0x00001ef4 */ { 2, { 0x00000059, 0x00000323 } }, /* 0x00001ef5 */ { 2, { 0x00000079, 0x00000323 } }, /* 0x00001ef6 */ { 2, { 0x00000059, 0x00000309 } }, /* 0x00001ef7 */ { 2, { 0x00000079, 0x00000309 } }, /* 0x00001ef8 */ { 2, { 0x00000059, 0x00000303 } }, /* 0x00001ef9 */ { 2, { 0x00000079, 0x00000303 } }, /* 0x00001efa */ { 1, { 0x00001efa } }, /* 0x00001efb */ { 1, { 0x00001efb } }, /* 0x00001efc */ { 1, { 0x00001efc } }, /* 0x00001efd */ { 1, { 0x00001efd } }, /* 0x00001efe */ { 1, { 0x00001efe } }, /* 0x00001eff */ { 1, { 0x00001eff } }, /* 0x00001f00 */ { 2, { 0x000003b1, 0x00000313 } }, /* 0x00001f01 */ { 2, { 0x000003b1, 0x00000314 } }, /* 0x00001f02 */ { 3, { 0x000003b1, 0x00000313, 0x00000300 } }, /* 0x00001f03 */ { 3, { 0x000003b1, 0x00000314, 0x00000300 } }, /* 0x00001f04 */ { 3, { 0x000003b1, 0x00000313, 0x00000301 } }, /* 0x00001f05 */ { 3, { 0x000003b1, 0x00000314, 0x00000301 } }, /* 0x00001f06 */ { 3, { 0x000003b1, 0x00000313, 0x00000342 } }, /* 0x00001f07 */ { 3, { 0x000003b1, 0x00000314, 0x00000342 } }, /* 0x00001f08 */ { 2, { 0x00000391, 0x00000313 } }, /* 0x00001f09 */ { 2, { 0x00000391, 0x00000314 } }, /* 0x00001f0a */ { 3, { 0x00000391, 0x00000313, 0x00000300 } }, /* 0x00001f0b */ { 3, { 0x00000391, 0x00000314, 0x00000300 } }, /* 0x00001f0c */ { 3, { 0x00000391, 0x00000313, 0x00000301 } }, /* 0x00001f0d */ { 3, { 0x00000391, 0x00000314, 0x00000301 } }, /* 0x00001f0e */ { 3, { 0x00000391, 0x00000313, 0x00000342 } }, /* 0x00001f0f */ { 3, { 0x00000391, 0x00000314, 0x00000342 } }, /* 0x00001f10 */ { 2, { 0x000003b5, 0x00000313 } }, /* 0x00001f11 */ { 2, { 0x000003b5, 0x00000314 } }, /* 0x00001f12 */ { 3, { 0x000003b5, 0x00000313, 0x00000300 } }, /* 0x00001f13 */ { 3, { 0x000003b5, 0x00000314, 0x00000300 } }, /* 0x00001f14 */ { 3, { 0x000003b5, 0x00000313, 0x00000301 } }, /* 0x00001f15 */ { 3, { 0x000003b5, 0x00000314, 0x00000301 } }, /* 0x00001f16 */ { 1, { 0x00001f16 } }, /* 0x00001f17 */ { 1, { 0x00001f17 } }, /* 0x00001f18 */ { 2, { 0x00000395, 0x00000313 } }, /* 0x00001f19 */ { 2, { 0x00000395, 0x00000314 } }, /* 0x00001f1a */ { 3, { 0x00000395, 0x00000313, 0x00000300 } }, /* 0x00001f1b */ { 3, { 0x00000395, 0x00000314, 0x00000300 } }, /* 0x00001f1c */ { 3, { 0x00000395, 0x00000313, 0x00000301 } }, /* 0x00001f1d */ { 3, { 0x00000395, 0x00000314, 0x00000301 } }, /* 0x00001f1e */ { 1, { 0x00001f1e } }, /* 0x00001f1f */ { 1, { 0x00001f1f } }, /* 0x00001f20 */ { 2, { 0x000003b7, 0x00000313 } }, /* 0x00001f21 */ { 2, { 0x000003b7, 0x00000314 } }, /* 0x00001f22 */ { 3, { 0x000003b7, 0x00000313, 0x00000300 } }, /* 0x00001f23 */ { 3, { 0x000003b7, 0x00000314, 0x00000300 } }, /* 0x00001f24 */ { 3, { 0x000003b7, 0x00000313, 0x00000301 } }, /* 0x00001f25 */ { 3, { 0x000003b7, 0x00000314, 0x00000301 } }, /* 0x00001f26 */ { 3, { 0x000003b7, 0x00000313, 0x00000342 } }, /* 0x00001f27 */ { 3, { 0x000003b7, 0x00000314, 0x00000342 } }, /* 0x00001f28 */ { 2, { 0x00000397, 0x00000313 } }, /* 0x00001f29 */ { 2, { 0x00000397, 0x00000314 } }, /* 0x00001f2a */ { 3, { 0x00000397, 0x00000313, 0x00000300 } }, /* 0x00001f2b */ { 3, { 0x00000397, 0x00000314, 0x00000300 } }, /* 0x00001f2c */ { 3, { 0x00000397, 0x00000313, 0x00000301 } }, /* 0x00001f2d */ { 3, { 0x00000397, 0x00000314, 0x00000301 } }, /* 0x00001f2e */ { 3, { 0x00000397, 0x00000313, 0x00000342 } }, /* 0x00001f2f */ { 3, { 0x00000397, 0x00000314, 0x00000342 } }, /* 0x00001f30 */ { 2, { 0x000003b9, 0x00000313 } }, /* 0x00001f31 */ { 2, { 0x000003b9, 0x00000314 } }, /* 0x00001f32 */ { 3, { 0x000003b9, 0x00000313, 0x00000300 } }, /* 0x00001f33 */ { 3, { 0x000003b9, 0x00000314, 0x00000300 } }, /* 0x00001f34 */ { 3, { 0x000003b9, 0x00000313, 0x00000301 } }, /* 0x00001f35 */ { 3, { 0x000003b9, 0x00000314, 0x00000301 } }, /* 0x00001f36 */ { 3, { 0x000003b9, 0x00000313, 0x00000342 } }, /* 0x00001f37 */ { 3, { 0x000003b9, 0x00000314, 0x00000342 } }, /* 0x00001f38 */ { 2, { 0x00000399, 0x00000313 } }, /* 0x00001f39 */ { 2, { 0x00000399, 0x00000314 } }, /* 0x00001f3a */ { 3, { 0x00000399, 0x00000313, 0x00000300 } }, /* 0x00001f3b */ { 3, { 0x00000399, 0x00000314, 0x00000300 } }, /* 0x00001f3c */ { 3, { 0x00000399, 0x00000313, 0x00000301 } }, /* 0x00001f3d */ { 3, { 0x00000399, 0x00000314, 0x00000301 } }, /* 0x00001f3e */ { 3, { 0x00000399, 0x00000313, 0x00000342 } }, /* 0x00001f3f */ { 3, { 0x00000399, 0x00000314, 0x00000342 } }, /* 0x00001f40 */ { 2, { 0x000003bf, 0x00000313 } }, /* 0x00001f41 */ { 2, { 0x000003bf, 0x00000314 } }, /* 0x00001f42 */ { 3, { 0x000003bf, 0x00000313, 0x00000300 } }, /* 0x00001f43 */ { 3, { 0x000003bf, 0x00000314, 0x00000300 } }, /* 0x00001f44 */ { 3, { 0x000003bf, 0x00000313, 0x00000301 } }, /* 0x00001f45 */ { 3, { 0x000003bf, 0x00000314, 0x00000301 } }, /* 0x00001f46 */ { 1, { 0x00001f46 } }, /* 0x00001f47 */ { 1, { 0x00001f47 } }, /* 0x00001f48 */ { 2, { 0x0000039f, 0x00000313 } }, /* 0x00001f49 */ { 2, { 0x0000039f, 0x00000314 } }, /* 0x00001f4a */ { 3, { 0x0000039f, 0x00000313, 0x00000300 } }, /* 0x00001f4b */ { 3, { 0x0000039f, 0x00000314, 0x00000300 } }, /* 0x00001f4c */ { 3, { 0x0000039f, 0x00000313, 0x00000301 } }, /* 0x00001f4d */ { 3, { 0x0000039f, 0x00000314, 0x00000301 } }, /* 0x00001f4e */ { 1, { 0x00001f4e } }, /* 0x00001f4f */ { 1, { 0x00001f4f } }, /* 0x00001f50 */ { 2, { 0x000003c5, 0x00000313 } }, /* 0x00001f51 */ { 2, { 0x000003c5, 0x00000314 } }, /* 0x00001f52 */ { 3, { 0x000003c5, 0x00000313, 0x00000300 } }, /* 0x00001f53 */ { 3, { 0x000003c5, 0x00000314, 0x00000300 } }, /* 0x00001f54 */ { 3, { 0x000003c5, 0x00000313, 0x00000301 } }, /* 0x00001f55 */ { 3, { 0x000003c5, 0x00000314, 0x00000301 } }, /* 0x00001f56 */ { 3, { 0x000003c5, 0x00000313, 0x00000342 } }, /* 0x00001f57 */ { 3, { 0x000003c5, 0x00000314, 0x00000342 } }, /* 0x00001f58 */ { 1, { 0x00001f58 } }, /* 0x00001f59 */ { 2, { 0x000003a5, 0x00000314 } }, /* 0x00001f5a */ { 1, { 0x00001f5a } }, /* 0x00001f5b */ { 3, { 0x000003a5, 0x00000314, 0x00000300 } }, /* 0x00001f5c */ { 1, { 0x00001f5c } }, /* 0x00001f5d */ { 3, { 0x000003a5, 0x00000314, 0x00000301 } }, /* 0x00001f5e */ { 1, { 0x00001f5e } }, /* 0x00001f5f */ { 3, { 0x000003a5, 0x00000314, 0x00000342 } }, /* 0x00001f60 */ { 2, { 0x000003c9, 0x00000313 } }, /* 0x00001f61 */ { 2, { 0x000003c9, 0x00000314 } }, /* 0x00001f62 */ { 3, { 0x000003c9, 0x00000313, 0x00000300 } }, /* 0x00001f63 */ { 3, { 0x000003c9, 0x00000314, 0x00000300 } }, /* 0x00001f64 */ { 3, { 0x000003c9, 0x00000313, 0x00000301 } }, /* 0x00001f65 */ { 3, { 0x000003c9, 0x00000314, 0x00000301 } }, /* 0x00001f66 */ { 3, { 0x000003c9, 0x00000313, 0x00000342 } }, /* 0x00001f67 */ { 3, { 0x000003c9, 0x00000314, 0x00000342 } }, /* 0x00001f68 */ { 2, { 0x000003a9, 0x00000313 } }, /* 0x00001f69 */ { 2, { 0x000003a9, 0x00000314 } }, /* 0x00001f6a */ { 3, { 0x000003a9, 0x00000313, 0x00000300 } }, /* 0x00001f6b */ { 3, { 0x000003a9, 0x00000314, 0x00000300 } }, /* 0x00001f6c */ { 3, { 0x000003a9, 0x00000313, 0x00000301 } }, /* 0x00001f6d */ { 3, { 0x000003a9, 0x00000314, 0x00000301 } }, /* 0x00001f6e */ { 3, { 0x000003a9, 0x00000313, 0x00000342 } }, /* 0x00001f6f */ { 3, { 0x000003a9, 0x00000314, 0x00000342 } }, /* 0x00001f70 */ { 2, { 0x000003b1, 0x00000300 } }, /* 0x00001f71 */ { 2, { 0x000003b1, 0x00000301 } }, /* 0x00001f72 */ { 2, { 0x000003b5, 0x00000300 } }, /* 0x00001f73 */ { 2, { 0x000003b5, 0x00000301 } }, /* 0x00001f74 */ { 2, { 0x000003b7, 0x00000300 } }, /* 0x00001f75 */ { 2, { 0x000003b7, 0x00000301 } }, /* 0x00001f76 */ { 2, { 0x000003b9, 0x00000300 } }, /* 0x00001f77 */ { 2, { 0x000003b9, 0x00000301 } }, /* 0x00001f78 */ { 2, { 0x000003bf, 0x00000300 } }, /* 0x00001f79 */ { 2, { 0x000003bf, 0x00000301 } }, /* 0x00001f7a */ { 2, { 0x000003c5, 0x00000300 } }, /* 0x00001f7b */ { 2, { 0x000003c5, 0x00000301 } }, /* 0x00001f7c */ { 2, { 0x000003c9, 0x00000300 } }, /* 0x00001f7d */ { 2, { 0x000003c9, 0x00000301 } }, /* 0x00001f7e */ { 1, { 0x00001f7e } }, /* 0x00001f7f */ { 1, { 0x00001f7f } }, /* 0x00001f80 */ { 3, { 0x000003b1, 0x00000313, 0x00000345 } }, /* 0x00001f81 */ { 3, { 0x000003b1, 0x00000314, 0x00000345 } }, /* 0x00001f82 */ { 4, { 0x000003b1, 0x00000313, 0x00000300, 0x00000345 } }, /* 0x00001f83 */ { 4, { 0x000003b1, 0x00000314, 0x00000300, 0x00000345 } }, /* 0x00001f84 */ { 4, { 0x000003b1, 0x00000313, 0x00000301, 0x00000345 } }, /* 0x00001f85 */ { 4, { 0x000003b1, 0x00000314, 0x00000301, 0x00000345 } }, /* 0x00001f86 */ { 4, { 0x000003b1, 0x00000313, 0x00000342, 0x00000345 } }, /* 0x00001f87 */ { 4, { 0x000003b1, 0x00000314, 0x00000342, 0x00000345 } }, /* 0x00001f88 */ { 3, { 0x00000391, 0x00000313, 0x00000345 } }, /* 0x00001f89 */ { 3, { 0x00000391, 0x00000314, 0x00000345 } }, /* 0x00001f8a */ { 4, { 0x00000391, 0x00000313, 0x00000300, 0x00000345 } }, /* 0x00001f8b */ { 4, { 0x00000391, 0x00000314, 0x00000300, 0x00000345 } }, /* 0x00001f8c */ { 4, { 0x00000391, 0x00000313, 0x00000301, 0x00000345 } }, /* 0x00001f8d */ { 4, { 0x00000391, 0x00000314, 0x00000301, 0x00000345 } }, /* 0x00001f8e */ { 4, { 0x00000391, 0x00000313, 0x00000342, 0x00000345 } }, /* 0x00001f8f */ { 4, { 0x00000391, 0x00000314, 0x00000342, 0x00000345 } }, /* 0x00001f90 */ { 3, { 0x000003b7, 0x00000313, 0x00000345 } }, /* 0x00001f91 */ { 3, { 0x000003b7, 0x00000314, 0x00000345 } }, /* 0x00001f92 */ { 4, { 0x000003b7, 0x00000313, 0x00000300, 0x00000345 } }, /* 0x00001f93 */ { 4, { 0x000003b7, 0x00000314, 0x00000300, 0x00000345 } }, /* 0x00001f94 */ { 4, { 0x000003b7, 0x00000313, 0x00000301, 0x00000345 } }, /* 0x00001f95 */ { 4, { 0x000003b7, 0x00000314, 0x00000301, 0x00000345 } }, /* 0x00001f96 */ { 4, { 0x000003b7, 0x00000313, 0x00000342, 0x00000345 } }, /* 0x00001f97 */ { 4, { 0x000003b7, 0x00000314, 0x00000342, 0x00000345 } }, /* 0x00001f98 */ { 3, { 0x00000397, 0x00000313, 0x00000345 } }, /* 0x00001f99 */ { 3, { 0x00000397, 0x00000314, 0x00000345 } }, /* 0x00001f9a */ { 4, { 0x00000397, 0x00000313, 0x00000300, 0x00000345 } }, /* 0x00001f9b */ { 4, { 0x00000397, 0x00000314, 0x00000300, 0x00000345 } }, /* 0x00001f9c */ { 4, { 0x00000397, 0x00000313, 0x00000301, 0x00000345 } }, /* 0x00001f9d */ { 4, { 0x00000397, 0x00000314, 0x00000301, 0x00000345 } }, /* 0x00001f9e */ { 4, { 0x00000397, 0x00000313, 0x00000342, 0x00000345 } }, /* 0x00001f9f */ { 4, { 0x00000397, 0x00000314, 0x00000342, 0x00000345 } }, /* 0x00001fa0 */ { 3, { 0x000003c9, 0x00000313, 0x00000345 } }, /* 0x00001fa1 */ { 3, { 0x000003c9, 0x00000314, 0x00000345 } }, /* 0x00001fa2 */ { 4, { 0x000003c9, 0x00000313, 0x00000300, 0x00000345 } }, /* 0x00001fa3 */ { 4, { 0x000003c9, 0x00000314, 0x00000300, 0x00000345 } }, /* 0x00001fa4 */ { 4, { 0x000003c9, 0x00000313, 0x00000301, 0x00000345 } }, /* 0x00001fa5 */ { 4, { 0x000003c9, 0x00000314, 0x00000301, 0x00000345 } }, /* 0x00001fa6 */ { 4, { 0x000003c9, 0x00000313, 0x00000342, 0x00000345 } }, /* 0x00001fa7 */ { 4, { 0x000003c9, 0x00000314, 0x00000342, 0x00000345 } }, /* 0x00001fa8 */ { 3, { 0x000003a9, 0x00000313, 0x00000345 } }, /* 0x00001fa9 */ { 3, { 0x000003a9, 0x00000314, 0x00000345 } }, /* 0x00001faa */ { 4, { 0x000003a9, 0x00000313, 0x00000300, 0x00000345 } }, /* 0x00001fab */ { 4, { 0x000003a9, 0x00000314, 0x00000300, 0x00000345 } }, /* 0x00001fac */ { 4, { 0x000003a9, 0x00000313, 0x00000301, 0x00000345 } }, /* 0x00001fad */ { 4, { 0x000003a9, 0x00000314, 0x00000301, 0x00000345 } }, /* 0x00001fae */ { 4, { 0x000003a9, 0x00000313, 0x00000342, 0x00000345 } }, /* 0x00001faf */ { 4, { 0x000003a9, 0x00000314, 0x00000342, 0x00000345 } }, /* 0x00001fb0 */ { 2, { 0x000003b1, 0x00000306 } }, /* 0x00001fb1 */ { 2, { 0x000003b1, 0x00000304 } }, /* 0x00001fb2 */ { 3, { 0x000003b1, 0x00000300, 0x00000345 } }, /* 0x00001fb3 */ { 2, { 0x000003b1, 0x00000345 } }, /* 0x00001fb4 */ { 3, { 0x000003b1, 0x00000301, 0x00000345 } }, /* 0x00001fb5 */ { 1, { 0x00001fb5 } }, /* 0x00001fb6 */ { 2, { 0x000003b1, 0x00000342 } }, /* 0x00001fb7 */ { 3, { 0x000003b1, 0x00000342, 0x00000345 } }, /* 0x00001fb8 */ { 2, { 0x00000391, 0x00000306 } }, /* 0x00001fb9 */ { 2, { 0x00000391, 0x00000304 } }, /* 0x00001fba */ { 2, { 0x00000391, 0x00000300 } }, /* 0x00001fbb */ { 2, { 0x00000391, 0x00000301 } }, /* 0x00001fbc */ { 2, { 0x00000391, 0x00000345 } }, /* 0x00001fbd */ { 1, { 0x00001fbd } }, /* 0x00001fbe */ { 1, { 0x000003b9 } }, /* 0x00001fbf */ { 1, { 0x00001fbf } }, /* 0x00001fc0 */ { 1, { 0x00001fc0 } }, /* 0x00001fc1 */ { 2, { 0x000000a8, 0x00000342 } }, /* 0x00001fc2 */ { 3, { 0x000003b7, 0x00000300, 0x00000345 } }, /* 0x00001fc3 */ { 2, { 0x000003b7, 0x00000345 } }, /* 0x00001fc4 */ { 3, { 0x000003b7, 0x00000301, 0x00000345 } }, /* 0x00001fc5 */ { 1, { 0x00001fc5 } }, /* 0x00001fc6 */ { 2, { 0x000003b7, 0x00000342 } }, /* 0x00001fc7 */ { 3, { 0x000003b7, 0x00000342, 0x00000345 } }, /* 0x00001fc8 */ { 2, { 0x00000395, 0x00000300 } }, /* 0x00001fc9 */ { 2, { 0x00000395, 0x00000301 } }, /* 0x00001fca */ { 2, { 0x00000397, 0x00000300 } }, /* 0x00001fcb */ { 2, { 0x00000397, 0x00000301 } }, /* 0x00001fcc */ { 2, { 0x00000397, 0x00000345 } }, /* 0x00001fcd */ { 2, { 0x00001fbf, 0x00000300 } }, /* 0x00001fce */ { 2, { 0x00001fbf, 0x00000301 } }, /* 0x00001fcf */ { 2, { 0x00001fbf, 0x00000342 } }, /* 0x00001fd0 */ { 2, { 0x000003b9, 0x00000306 } }, /* 0x00001fd1 */ { 2, { 0x000003b9, 0x00000304 } }, /* 0x00001fd2 */ { 3, { 0x000003b9, 0x00000308, 0x00000300 } }, /* 0x00001fd3 */ { 3, { 0x000003b9, 0x00000308, 0x00000301 } }, /* 0x00001fd4 */ { 1, { 0x00001fd4 } }, /* 0x00001fd5 */ { 1, { 0x00001fd5 } }, /* 0x00001fd6 */ { 2, { 0x000003b9, 0x00000342 } }, /* 0x00001fd7 */ { 3, { 0x000003b9, 0x00000308, 0x00000342 } }, /* 0x00001fd8 */ { 2, { 0x00000399, 0x00000306 } }, /* 0x00001fd9 */ { 2, { 0x00000399, 0x00000304 } }, /* 0x00001fda */ { 2, { 0x00000399, 0x00000300 } }, /* 0x00001fdb */ { 2, { 0x00000399, 0x00000301 } }, /* 0x00001fdc */ { 1, { 0x00001fdc } }, /* 0x00001fdd */ { 2, { 0x00001ffe, 0x00000300 } }, /* 0x00001fde */ { 2, { 0x00001ffe, 0x00000301 } }, /* 0x00001fdf */ { 2, { 0x00001ffe, 0x00000342 } }, /* 0x00001fe0 */ { 2, { 0x000003c5, 0x00000306 } }, /* 0x00001fe1 */ { 2, { 0x000003c5, 0x00000304 } }, /* 0x00001fe2 */ { 3, { 0x000003c5, 0x00000308, 0x00000300 } }, /* 0x00001fe3 */ { 3, { 0x000003c5, 0x00000308, 0x00000301 } }, /* 0x00001fe4 */ { 2, { 0x000003c1, 0x00000313 } }, /* 0x00001fe5 */ { 2, { 0x000003c1, 0x00000314 } }, /* 0x00001fe6 */ { 2, { 0x000003c5, 0x00000342 } }, /* 0x00001fe7 */ { 3, { 0x000003c5, 0x00000308, 0x00000342 } }, /* 0x00001fe8 */ { 2, { 0x000003a5, 0x00000306 } }, /* 0x00001fe9 */ { 2, { 0x000003a5, 0x00000304 } }, /* 0x00001fea */ { 2, { 0x000003a5, 0x00000300 } }, /* 0x00001feb */ { 2, { 0x000003a5, 0x00000301 } }, /* 0x00001fec */ { 2, { 0x000003a1, 0x00000314 } }, /* 0x00001fed */ { 2, { 0x000000a8, 0x00000300 } }, /* 0x00001fee */ { 2, { 0x000000a8, 0x00000301 } }, /* 0x00001fef */ { 1, { 0x00000060 } }, /* 0x00001ff0 */ { 1, { 0x00001ff0 } }, /* 0x00001ff1 */ { 1, { 0x00001ff1 } }, /* 0x00001ff2 */ { 3, { 0x000003c9, 0x00000300, 0x00000345 } }, /* 0x00001ff3 */ { 2, { 0x000003c9, 0x00000345 } }, /* 0x00001ff4 */ { 3, { 0x000003c9, 0x00000301, 0x00000345 } }, /* 0x00001ff5 */ { 1, { 0x00001ff5 } }, /* 0x00001ff6 */ { 2, { 0x000003c9, 0x00000342 } }, /* 0x00001ff7 */ { 3, { 0x000003c9, 0x00000342, 0x00000345 } }, /* 0x00001ff8 */ { 2, { 0x0000039f, 0x00000300 } }, /* 0x00001ff9 */ { 2, { 0x0000039f, 0x00000301 } }, /* 0x00001ffa */ { 2, { 0x000003a9, 0x00000300 } }, /* 0x00001ffb */ { 2, { 0x000003a9, 0x00000301 } }, /* 0x00001ffc */ { 2, { 0x000003a9, 0x00000345 } }, /* 0x00001ffd */ { 1, { 0x000000b4 } }, /* 0x00001ffe */ { 1, { 0x00001ffe } }, /* 0x00001fff */ { 1, { 0x00001fff } }, /* 0x00002000 */ { 1, { 0x00002002 } }, /* 0x00002001 */ { 1, { 0x00002003 } }, /* 0x00002002 */ { 1, { 0x00002002 } }, /* 0x00002003 */ { 1, { 0x00002003 } }, /* 0x00002004 */ { 1, { 0x00002004 } }, /* 0x00002005 */ { 1, { 0x00002005 } }, /* 0x00002006 */ { 1, { 0x00002006 } }, /* 0x00002007 */ { 1, { 0x00002007 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00002120[ 176 ] = { /* 0x00002120 */ { 1, { 0x00002120 } }, /* 0x00002121 */ { 1, { 0x00002121 } }, /* 0x00002122 */ { 1, { 0x00002122 } }, /* 0x00002123 */ { 1, { 0x00002123 } }, /* 0x00002124 */ { 1, { 0x00002124 } }, /* 0x00002125 */ { 1, { 0x00002125 } }, /* 0x00002126 */ { 1, { 0x000003a9 } }, /* 0x00002127 */ { 1, { 0x00002127 } }, /* 0x00002128 */ { 1, { 0x00002128 } }, /* 0x00002129 */ { 1, { 0x00002129 } }, /* 0x0000212a */ { 1, { 0x0000004b } }, /* 0x0000212b */ { 2, { 0x00000041, 0x0000030a } }, /* 0x0000212c */ { 1, { 0x0000212c } }, /* 0x0000212d */ { 1, { 0x0000212d } }, /* 0x0000212e */ { 1, { 0x0000212e } }, /* 0x0000212f */ { 1, { 0x0000212f } }, /* 0x00002130 */ { 1, { 0x00002130 } }, /* 0x00002131 */ { 1, { 0x00002131 } }, /* 0x00002132 */ { 1, { 0x00002132 } }, /* 0x00002133 */ { 1, { 0x00002133 } }, /* 0x00002134 */ { 1, { 0x00002134 } }, /* 0x00002135 */ { 1, { 0x00002135 } }, /* 0x00002136 */ { 1, { 0x00002136 } }, /* 0x00002137 */ { 1, { 0x00002137 } }, /* 0x00002138 */ { 1, { 0x00002138 } }, /* 0x00002139 */ { 1, { 0x00002139 } }, /* 0x0000213a */ { 1, { 0x0000213a } }, /* 0x0000213b */ { 1, { 0x0000213b } }, /* 0x0000213c */ { 1, { 0x0000213c } }, /* 0x0000213d */ { 1, { 0x0000213d } }, /* 0x0000213e */ { 1, { 0x0000213e } }, /* 0x0000213f */ { 1, { 0x0000213f } }, /* 0x00002140 */ { 1, { 0x00002140 } }, /* 0x00002141 */ { 1, { 0x00002141 } }, /* 0x00002142 */ { 1, { 0x00002142 } }, /* 0x00002143 */ { 1, { 0x00002143 } }, /* 0x00002144 */ { 1, { 0x00002144 } }, /* 0x00002145 */ { 1, { 0x00002145 } }, /* 0x00002146 */ { 1, { 0x00002146 } }, /* 0x00002147 */ { 1, { 0x00002147 } }, /* 0x00002148 */ { 1, { 0x00002148 } }, /* 0x00002149 */ { 1, { 0x00002149 } }, /* 0x0000214a */ { 1, { 0x0000214a } }, /* 0x0000214b */ { 1, { 0x0000214b } }, /* 0x0000214c */ { 1, { 0x0000214c } }, /* 0x0000214d */ { 1, { 0x0000214d } }, /* 0x0000214e */ { 1, { 0x0000214e } }, /* 0x0000214f */ { 1, { 0x0000214f } }, /* 0x00002150 */ { 1, { 0x00002150 } }, /* 0x00002151 */ { 1, { 0x00002151 } }, /* 0x00002152 */ { 1, { 0x00002152 } }, /* 0x00002153 */ { 1, { 0x00002153 } }, /* 0x00002154 */ { 1, { 0x00002154 } }, /* 0x00002155 */ { 1, { 0x00002155 } }, /* 0x00002156 */ { 1, { 0x00002156 } }, /* 0x00002157 */ { 1, { 0x00002157 } }, /* 0x00002158 */ { 1, { 0x00002158 } }, /* 0x00002159 */ { 1, { 0x00002159 } }, /* 0x0000215a */ { 1, { 0x0000215a } }, /* 0x0000215b */ { 1, { 0x0000215b } }, /* 0x0000215c */ { 1, { 0x0000215c } }, /* 0x0000215d */ { 1, { 0x0000215d } }, /* 0x0000215e */ { 1, { 0x0000215e } }, /* 0x0000215f */ { 1, { 0x0000215f } }, /* 0x00002160 */ { 1, { 0x00002160 } }, /* 0x00002161 */ { 1, { 0x00002161 } }, /* 0x00002162 */ { 1, { 0x00002162 } }, /* 0x00002163 */ { 1, { 0x00002163 } }, /* 0x00002164 */ { 1, { 0x00002164 } }, /* 0x00002165 */ { 1, { 0x00002165 } }, /* 0x00002166 */ { 1, { 0x00002166 } }, /* 0x00002167 */ { 1, { 0x00002167 } }, /* 0x00002168 */ { 1, { 0x00002168 } }, /* 0x00002169 */ { 1, { 0x00002169 } }, /* 0x0000216a */ { 1, { 0x0000216a } }, /* 0x0000216b */ { 1, { 0x0000216b } }, /* 0x0000216c */ { 1, { 0x0000216c } }, /* 0x0000216d */ { 1, { 0x0000216d } }, /* 0x0000216e */ { 1, { 0x0000216e } }, /* 0x0000216f */ { 1, { 0x0000216f } }, /* 0x00002170 */ { 1, { 0x00002170 } }, /* 0x00002171 */ { 1, { 0x00002171 } }, /* 0x00002172 */ { 1, { 0x00002172 } }, /* 0x00002173 */ { 1, { 0x00002173 } }, /* 0x00002174 */ { 1, { 0x00002174 } }, /* 0x00002175 */ { 1, { 0x00002175 } }, /* 0x00002176 */ { 1, { 0x00002176 } }, /* 0x00002177 */ { 1, { 0x00002177 } }, /* 0x00002178 */ { 1, { 0x00002178 } }, /* 0x00002179 */ { 1, { 0x00002179 } }, /* 0x0000217a */ { 1, { 0x0000217a } }, /* 0x0000217b */ { 1, { 0x0000217b } }, /* 0x0000217c */ { 1, { 0x0000217c } }, /* 0x0000217d */ { 1, { 0x0000217d } }, /* 0x0000217e */ { 1, { 0x0000217e } }, /* 0x0000217f */ { 1, { 0x0000217f } }, /* 0x00002180 */ { 1, { 0x00002180 } }, /* 0x00002181 */ { 1, { 0x00002181 } }, /* 0x00002182 */ { 1, { 0x00002182 } }, /* 0x00002183 */ { 1, { 0x00002183 } }, /* 0x00002184 */ { 1, { 0x00002184 } }, /* 0x00002185 */ { 1, { 0x00002185 } }, /* 0x00002186 */ { 1, { 0x00002186 } }, /* 0x00002187 */ { 1, { 0x00002187 } }, /* 0x00002188 */ { 1, { 0x00002188 } }, /* 0x00002189 */ { 1, { 0x00002189 } }, /* 0x0000218a */ { 1, { 0x0000218a } }, /* 0x0000218b */ { 1, { 0x0000218b } }, /* 0x0000218c */ { 1, { 0x0000218c } }, /* 0x0000218d */ { 1, { 0x0000218d } }, /* 0x0000218e */ { 1, { 0x0000218e } }, /* 0x0000218f */ { 1, { 0x0000218f } }, /* 0x00002190 */ { 1, { 0x00002190 } }, /* 0x00002191 */ { 1, { 0x00002191 } }, /* 0x00002192 */ { 1, { 0x00002192 } }, /* 0x00002193 */ { 1, { 0x00002193 } }, /* 0x00002194 */ { 1, { 0x00002194 } }, /* 0x00002195 */ { 1, { 0x00002195 } }, /* 0x00002196 */ { 1, { 0x00002196 } }, /* 0x00002197 */ { 1, { 0x00002197 } }, /* 0x00002198 */ { 1, { 0x00002198 } }, /* 0x00002199 */ { 1, { 0x00002199 } }, /* 0x0000219a */ { 2, { 0x00002190, 0x00000338 } }, /* 0x0000219b */ { 2, { 0x00002192, 0x00000338 } }, /* 0x0000219c */ { 1, { 0x0000219c } }, /* 0x0000219d */ { 1, { 0x0000219d } }, /* 0x0000219e */ { 1, { 0x0000219e } }, /* 0x0000219f */ { 1, { 0x0000219f } }, /* 0x000021a0 */ { 1, { 0x000021a0 } }, /* 0x000021a1 */ { 1, { 0x000021a1 } }, /* 0x000021a2 */ { 1, { 0x000021a2 } }, /* 0x000021a3 */ { 1, { 0x000021a3 } }, /* 0x000021a4 */ { 1, { 0x000021a4 } }, /* 0x000021a5 */ { 1, { 0x000021a5 } }, /* 0x000021a6 */ { 1, { 0x000021a6 } }, /* 0x000021a7 */ { 1, { 0x000021a7 } }, /* 0x000021a8 */ { 1, { 0x000021a8 } }, /* 0x000021a9 */ { 1, { 0x000021a9 } }, /* 0x000021aa */ { 1, { 0x000021aa } }, /* 0x000021ab */ { 1, { 0x000021ab } }, /* 0x000021ac */ { 1, { 0x000021ac } }, /* 0x000021ad */ { 1, { 0x000021ad } }, /* 0x000021ae */ { 2, { 0x00002194, 0x00000338 } }, /* 0x000021af */ { 1, { 0x000021af } }, /* 0x000021b0 */ { 1, { 0x000021b0 } }, /* 0x000021b1 */ { 1, { 0x000021b1 } }, /* 0x000021b2 */ { 1, { 0x000021b2 } }, /* 0x000021b3 */ { 1, { 0x000021b3 } }, /* 0x000021b4 */ { 1, { 0x000021b4 } }, /* 0x000021b5 */ { 1, { 0x000021b5 } }, /* 0x000021b6 */ { 1, { 0x000021b6 } }, /* 0x000021b7 */ { 1, { 0x000021b7 } }, /* 0x000021b8 */ { 1, { 0x000021b8 } }, /* 0x000021b9 */ { 1, { 0x000021b9 } }, /* 0x000021ba */ { 1, { 0x000021ba } }, /* 0x000021bb */ { 1, { 0x000021bb } }, /* 0x000021bc */ { 1, { 0x000021bc } }, /* 0x000021bd */ { 1, { 0x000021bd } }, /* 0x000021be */ { 1, { 0x000021be } }, /* 0x000021bf */ { 1, { 0x000021bf } }, /* 0x000021c0 */ { 1, { 0x000021c0 } }, /* 0x000021c1 */ { 1, { 0x000021c1 } }, /* 0x000021c2 */ { 1, { 0x000021c2 } }, /* 0x000021c3 */ { 1, { 0x000021c3 } }, /* 0x000021c4 */ { 1, { 0x000021c4 } }, /* 0x000021c5 */ { 1, { 0x000021c5 } }, /* 0x000021c6 */ { 1, { 0x000021c6 } }, /* 0x000021c7 */ { 1, { 0x000021c7 } }, /* 0x000021c8 */ { 1, { 0x000021c8 } }, /* 0x000021c9 */ { 1, { 0x000021c9 } }, /* 0x000021ca */ { 1, { 0x000021ca } }, /* 0x000021cb */ { 1, { 0x000021cb } }, /* 0x000021cc */ { 1, { 0x000021cc } }, /* 0x000021cd */ { 2, { 0x000021d0, 0x00000338 } }, /* 0x000021ce */ { 2, { 0x000021d4, 0x00000338 } }, /* 0x000021cf */ { 2, { 0x000021d2, 0x00000338 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00002200[ 304 ] = { /* 0x00002200 */ { 1, { 0x00002200 } }, /* 0x00002201 */ { 1, { 0x00002201 } }, /* 0x00002202 */ { 1, { 0x00002202 } }, /* 0x00002203 */ { 1, { 0x00002203 } }, /* 0x00002204 */ { 2, { 0x00002203, 0x00000338 } }, /* 0x00002205 */ { 1, { 0x00002205 } }, /* 0x00002206 */ { 1, { 0x00002206 } }, /* 0x00002207 */ { 1, { 0x00002207 } }, /* 0x00002208 */ { 1, { 0x00002208 } }, /* 0x00002209 */ { 2, { 0x00002208, 0x00000338 } }, /* 0x0000220a */ { 1, { 0x0000220a } }, /* 0x0000220b */ { 1, { 0x0000220b } }, /* 0x0000220c */ { 2, { 0x0000220b, 0x00000338 } }, /* 0x0000220d */ { 1, { 0x0000220d } }, /* 0x0000220e */ { 1, { 0x0000220e } }, /* 0x0000220f */ { 1, { 0x0000220f } }, /* 0x00002210 */ { 1, { 0x00002210 } }, /* 0x00002211 */ { 1, { 0x00002211 } }, /* 0x00002212 */ { 1, { 0x00002212 } }, /* 0x00002213 */ { 1, { 0x00002213 } }, /* 0x00002214 */ { 1, { 0x00002214 } }, /* 0x00002215 */ { 1, { 0x00002215 } }, /* 0x00002216 */ { 1, { 0x00002216 } }, /* 0x00002217 */ { 1, { 0x00002217 } }, /* 0x00002218 */ { 1, { 0x00002218 } }, /* 0x00002219 */ { 1, { 0x00002219 } }, /* 0x0000221a */ { 1, { 0x0000221a } }, /* 0x0000221b */ { 1, { 0x0000221b } }, /* 0x0000221c */ { 1, { 0x0000221c } }, /* 0x0000221d */ { 1, { 0x0000221d } }, /* 0x0000221e */ { 1, { 0x0000221e } }, /* 0x0000221f */ { 1, { 0x0000221f } }, /* 0x00002220 */ { 1, { 0x00002220 } }, /* 0x00002221 */ { 1, { 0x00002221 } }, /* 0x00002222 */ { 1, { 0x00002222 } }, /* 0x00002223 */ { 1, { 0x00002223 } }, /* 0x00002224 */ { 2, { 0x00002223, 0x00000338 } }, /* 0x00002225 */ { 1, { 0x00002225 } }, /* 0x00002226 */ { 2, { 0x00002225, 0x00000338 } }, /* 0x00002227 */ { 1, { 0x00002227 } }, /* 0x00002228 */ { 1, { 0x00002228 } }, /* 0x00002229 */ { 1, { 0x00002229 } }, /* 0x0000222a */ { 1, { 0x0000222a } }, /* 0x0000222b */ { 1, { 0x0000222b } }, /* 0x0000222c */ { 1, { 0x0000222c } }, /* 0x0000222d */ { 1, { 0x0000222d } }, /* 0x0000222e */ { 1, { 0x0000222e } }, /* 0x0000222f */ { 1, { 0x0000222f } }, /* 0x00002230 */ { 1, { 0x00002230 } }, /* 0x00002231 */ { 1, { 0x00002231 } }, /* 0x00002232 */ { 1, { 0x00002232 } }, /* 0x00002233 */ { 1, { 0x00002233 } }, /* 0x00002234 */ { 1, { 0x00002234 } }, /* 0x00002235 */ { 1, { 0x00002235 } }, /* 0x00002236 */ { 1, { 0x00002236 } }, /* 0x00002237 */ { 1, { 0x00002237 } }, /* 0x00002238 */ { 1, { 0x00002238 } }, /* 0x00002239 */ { 1, { 0x00002239 } }, /* 0x0000223a */ { 1, { 0x0000223a } }, /* 0x0000223b */ { 1, { 0x0000223b } }, /* 0x0000223c */ { 1, { 0x0000223c } }, /* 0x0000223d */ { 1, { 0x0000223d } }, /* 0x0000223e */ { 1, { 0x0000223e } }, /* 0x0000223f */ { 1, { 0x0000223f } }, /* 0x00002240 */ { 1, { 0x00002240 } }, /* 0x00002241 */ { 2, { 0x0000223c, 0x00000338 } }, /* 0x00002242 */ { 1, { 0x00002242 } }, /* 0x00002243 */ { 1, { 0x00002243 } }, /* 0x00002244 */ { 2, { 0x00002243, 0x00000338 } }, /* 0x00002245 */ { 1, { 0x00002245 } }, /* 0x00002246 */ { 1, { 0x00002246 } }, /* 0x00002247 */ { 2, { 0x00002245, 0x00000338 } }, /* 0x00002248 */ { 1, { 0x00002248 } }, /* 0x00002249 */ { 2, { 0x00002248, 0x00000338 } }, /* 0x0000224a */ { 1, { 0x0000224a } }, /* 0x0000224b */ { 1, { 0x0000224b } }, /* 0x0000224c */ { 1, { 0x0000224c } }, /* 0x0000224d */ { 1, { 0x0000224d } }, /* 0x0000224e */ { 1, { 0x0000224e } }, /* 0x0000224f */ { 1, { 0x0000224f } }, /* 0x00002250 */ { 1, { 0x00002250 } }, /* 0x00002251 */ { 1, { 0x00002251 } }, /* 0x00002252 */ { 1, { 0x00002252 } }, /* 0x00002253 */ { 1, { 0x00002253 } }, /* 0x00002254 */ { 1, { 0x00002254 } }, /* 0x00002255 */ { 1, { 0x00002255 } }, /* 0x00002256 */ { 1, { 0x00002256 } }, /* 0x00002257 */ { 1, { 0x00002257 } }, /* 0x00002258 */ { 1, { 0x00002258 } }, /* 0x00002259 */ { 1, { 0x00002259 } }, /* 0x0000225a */ { 1, { 0x0000225a } }, /* 0x0000225b */ { 1, { 0x0000225b } }, /* 0x0000225c */ { 1, { 0x0000225c } }, /* 0x0000225d */ { 1, { 0x0000225d } }, /* 0x0000225e */ { 1, { 0x0000225e } }, /* 0x0000225f */ { 1, { 0x0000225f } }, /* 0x00002260 */ { 2, { 0x0000003d, 0x00000338 } }, /* 0x00002261 */ { 1, { 0x00002261 } }, /* 0x00002262 */ { 2, { 0x00002261, 0x00000338 } }, /* 0x00002263 */ { 1, { 0x00002263 } }, /* 0x00002264 */ { 1, { 0x00002264 } }, /* 0x00002265 */ { 1, { 0x00002265 } }, /* 0x00002266 */ { 1, { 0x00002266 } }, /* 0x00002267 */ { 1, { 0x00002267 } }, /* 0x00002268 */ { 1, { 0x00002268 } }, /* 0x00002269 */ { 1, { 0x00002269 } }, /* 0x0000226a */ { 1, { 0x0000226a } }, /* 0x0000226b */ { 1, { 0x0000226b } }, /* 0x0000226c */ { 1, { 0x0000226c } }, /* 0x0000226d */ { 2, { 0x0000224d, 0x00000338 } }, /* 0x0000226e */ { 2, { 0x0000003c, 0x00000338 } }, /* 0x0000226f */ { 2, { 0x0000003e, 0x00000338 } }, /* 0x00002270 */ { 2, { 0x00002264, 0x00000338 } }, /* 0x00002271 */ { 2, { 0x00002265, 0x00000338 } }, /* 0x00002272 */ { 1, { 0x00002272 } }, /* 0x00002273 */ { 1, { 0x00002273 } }, /* 0x00002274 */ { 2, { 0x00002272, 0x00000338 } }, /* 0x00002275 */ { 2, { 0x00002273, 0x00000338 } }, /* 0x00002276 */ { 1, { 0x00002276 } }, /* 0x00002277 */ { 1, { 0x00002277 } }, /* 0x00002278 */ { 2, { 0x00002276, 0x00000338 } }, /* 0x00002279 */ { 2, { 0x00002277, 0x00000338 } }, /* 0x0000227a */ { 1, { 0x0000227a } }, /* 0x0000227b */ { 1, { 0x0000227b } }, /* 0x0000227c */ { 1, { 0x0000227c } }, /* 0x0000227d */ { 1, { 0x0000227d } }, /* 0x0000227e */ { 1, { 0x0000227e } }, /* 0x0000227f */ { 1, { 0x0000227f } }, /* 0x00002280 */ { 2, { 0x0000227a, 0x00000338 } }, /* 0x00002281 */ { 2, { 0x0000227b, 0x00000338 } }, /* 0x00002282 */ { 1, { 0x00002282 } }, /* 0x00002283 */ { 1, { 0x00002283 } }, /* 0x00002284 */ { 2, { 0x00002282, 0x00000338 } }, /* 0x00002285 */ { 2, { 0x00002283, 0x00000338 } }, /* 0x00002286 */ { 1, { 0x00002286 } }, /* 0x00002287 */ { 1, { 0x00002287 } }, /* 0x00002288 */ { 2, { 0x00002286, 0x00000338 } }, /* 0x00002289 */ { 2, { 0x00002287, 0x00000338 } }, /* 0x0000228a */ { 1, { 0x0000228a } }, /* 0x0000228b */ { 1, { 0x0000228b } }, /* 0x0000228c */ { 1, { 0x0000228c } }, /* 0x0000228d */ { 1, { 0x0000228d } }, /* 0x0000228e */ { 1, { 0x0000228e } }, /* 0x0000228f */ { 1, { 0x0000228f } }, /* 0x00002290 */ { 1, { 0x00002290 } }, /* 0x00002291 */ { 1, { 0x00002291 } }, /* 0x00002292 */ { 1, { 0x00002292 } }, /* 0x00002293 */ { 1, { 0x00002293 } }, /* 0x00002294 */ { 1, { 0x00002294 } }, /* 0x00002295 */ { 1, { 0x00002295 } }, /* 0x00002296 */ { 1, { 0x00002296 } }, /* 0x00002297 */ { 1, { 0x00002297 } }, /* 0x00002298 */ { 1, { 0x00002298 } }, /* 0x00002299 */ { 1, { 0x00002299 } }, /* 0x0000229a */ { 1, { 0x0000229a } }, /* 0x0000229b */ { 1, { 0x0000229b } }, /* 0x0000229c */ { 1, { 0x0000229c } }, /* 0x0000229d */ { 1, { 0x0000229d } }, /* 0x0000229e */ { 1, { 0x0000229e } }, /* 0x0000229f */ { 1, { 0x0000229f } }, /* 0x000022a0 */ { 1, { 0x000022a0 } }, /* 0x000022a1 */ { 1, { 0x000022a1 } }, /* 0x000022a2 */ { 1, { 0x000022a2 } }, /* 0x000022a3 */ { 1, { 0x000022a3 } }, /* 0x000022a4 */ { 1, { 0x000022a4 } }, /* 0x000022a5 */ { 1, { 0x000022a5 } }, /* 0x000022a6 */ { 1, { 0x000022a6 } }, /* 0x000022a7 */ { 1, { 0x000022a7 } }, /* 0x000022a8 */ { 1, { 0x000022a8 } }, /* 0x000022a9 */ { 1, { 0x000022a9 } }, /* 0x000022aa */ { 1, { 0x000022aa } }, /* 0x000022ab */ { 1, { 0x000022ab } }, /* 0x000022ac */ { 2, { 0x000022a2, 0x00000338 } }, /* 0x000022ad */ { 2, { 0x000022a8, 0x00000338 } }, /* 0x000022ae */ { 2, { 0x000022a9, 0x00000338 } }, /* 0x000022af */ { 2, { 0x000022ab, 0x00000338 } }, /* 0x000022b0 */ { 1, { 0x000022b0 } }, /* 0x000022b1 */ { 1, { 0x000022b1 } }, /* 0x000022b2 */ { 1, { 0x000022b2 } }, /* 0x000022b3 */ { 1, { 0x000022b3 } }, /* 0x000022b4 */ { 1, { 0x000022b4 } }, /* 0x000022b5 */ { 1, { 0x000022b5 } }, /* 0x000022b6 */ { 1, { 0x000022b6 } }, /* 0x000022b7 */ { 1, { 0x000022b7 } }, /* 0x000022b8 */ { 1, { 0x000022b8 } }, /* 0x000022b9 */ { 1, { 0x000022b9 } }, /* 0x000022ba */ { 1, { 0x000022ba } }, /* 0x000022bb */ { 1, { 0x000022bb } }, /* 0x000022bc */ { 1, { 0x000022bc } }, /* 0x000022bd */ { 1, { 0x000022bd } }, /* 0x000022be */ { 1, { 0x000022be } }, /* 0x000022bf */ { 1, { 0x000022bf } }, /* 0x000022c0 */ { 1, { 0x000022c0 } }, /* 0x000022c1 */ { 1, { 0x000022c1 } }, /* 0x000022c2 */ { 1, { 0x000022c2 } }, /* 0x000022c3 */ { 1, { 0x000022c3 } }, /* 0x000022c4 */ { 1, { 0x000022c4 } }, /* 0x000022c5 */ { 1, { 0x000022c5 } }, /* 0x000022c6 */ { 1, { 0x000022c6 } }, /* 0x000022c7 */ { 1, { 0x000022c7 } }, /* 0x000022c8 */ { 1, { 0x000022c8 } }, /* 0x000022c9 */ { 1, { 0x000022c9 } }, /* 0x000022ca */ { 1, { 0x000022ca } }, /* 0x000022cb */ { 1, { 0x000022cb } }, /* 0x000022cc */ { 1, { 0x000022cc } }, /* 0x000022cd */ { 1, { 0x000022cd } }, /* 0x000022ce */ { 1, { 0x000022ce } }, /* 0x000022cf */ { 1, { 0x000022cf } }, /* 0x000022d0 */ { 1, { 0x000022d0 } }, /* 0x000022d1 */ { 1, { 0x000022d1 } }, /* 0x000022d2 */ { 1, { 0x000022d2 } }, /* 0x000022d3 */ { 1, { 0x000022d3 } }, /* 0x000022d4 */ { 1, { 0x000022d4 } }, /* 0x000022d5 */ { 1, { 0x000022d5 } }, /* 0x000022d6 */ { 1, { 0x000022d6 } }, /* 0x000022d7 */ { 1, { 0x000022d7 } }, /* 0x000022d8 */ { 1, { 0x000022d8 } }, /* 0x000022d9 */ { 1, { 0x000022d9 } }, /* 0x000022da */ { 1, { 0x000022da } }, /* 0x000022db */ { 1, { 0x000022db } }, /* 0x000022dc */ { 1, { 0x000022dc } }, /* 0x000022dd */ { 1, { 0x000022dd } }, /* 0x000022de */ { 1, { 0x000022de } }, /* 0x000022df */ { 1, { 0x000022df } }, /* 0x000022e0 */ { 2, { 0x0000227c, 0x00000338 } }, /* 0x000022e1 */ { 2, { 0x0000227d, 0x00000338 } }, /* 0x000022e2 */ { 2, { 0x00002291, 0x00000338 } }, /* 0x000022e3 */ { 2, { 0x00002292, 0x00000338 } }, /* 0x000022e4 */ { 1, { 0x000022e4 } }, /* 0x000022e5 */ { 1, { 0x000022e5 } }, /* 0x000022e6 */ { 1, { 0x000022e6 } }, /* 0x000022e7 */ { 1, { 0x000022e7 } }, /* 0x000022e8 */ { 1, { 0x000022e8 } }, /* 0x000022e9 */ { 1, { 0x000022e9 } }, /* 0x000022ea */ { 2, { 0x000022b2, 0x00000338 } }, /* 0x000022eb */ { 2, { 0x000022b3, 0x00000338 } }, /* 0x000022ec */ { 2, { 0x000022b4, 0x00000338 } }, /* 0x000022ed */ { 2, { 0x000022b5, 0x00000338 } }, /* 0x000022ee */ { 1, { 0x000022ee } }, /* 0x000022ef */ { 1, { 0x000022ef } }, /* 0x000022f0 */ { 1, { 0x000022f0 } }, /* 0x000022f1 */ { 1, { 0x000022f1 } }, /* 0x000022f2 */ { 1, { 0x000022f2 } }, /* 0x000022f3 */ { 1, { 0x000022f3 } }, /* 0x000022f4 */ { 1, { 0x000022f4 } }, /* 0x000022f5 */ { 1, { 0x000022f5 } }, /* 0x000022f6 */ { 1, { 0x000022f6 } }, /* 0x000022f7 */ { 1, { 0x000022f7 } }, /* 0x000022f8 */ { 1, { 0x000022f8 } }, /* 0x000022f9 */ { 1, { 0x000022f9 } }, /* 0x000022fa */ { 1, { 0x000022fa } }, /* 0x000022fb */ { 1, { 0x000022fb } }, /* 0x000022fc */ { 1, { 0x000022fc } }, /* 0x000022fd */ { 1, { 0x000022fd } }, /* 0x000022fe */ { 1, { 0x000022fe } }, /* 0x000022ff */ { 1, { 0x000022ff } }, /* 0x00002300 */ { 1, { 0x00002300 } }, /* 0x00002301 */ { 1, { 0x00002301 } }, /* 0x00002302 */ { 1, { 0x00002302 } }, /* 0x00002303 */ { 1, { 0x00002303 } }, /* 0x00002304 */ { 1, { 0x00002304 } }, /* 0x00002305 */ { 1, { 0x00002305 } }, /* 0x00002306 */ { 1, { 0x00002306 } }, /* 0x00002307 */ { 1, { 0x00002307 } }, /* 0x00002308 */ { 1, { 0x00002308 } }, /* 0x00002309 */ { 1, { 0x00002309 } }, /* 0x0000230a */ { 1, { 0x0000230a } }, /* 0x0000230b */ { 1, { 0x0000230b } }, /* 0x0000230c */ { 1, { 0x0000230c } }, /* 0x0000230d */ { 1, { 0x0000230d } }, /* 0x0000230e */ { 1, { 0x0000230e } }, /* 0x0000230f */ { 1, { 0x0000230f } }, /* 0x00002310 */ { 1, { 0x00002310 } }, /* 0x00002311 */ { 1, { 0x00002311 } }, /* 0x00002312 */ { 1, { 0x00002312 } }, /* 0x00002313 */ { 1, { 0x00002313 } }, /* 0x00002314 */ { 1, { 0x00002314 } }, /* 0x00002315 */ { 1, { 0x00002315 } }, /* 0x00002316 */ { 1, { 0x00002316 } }, /* 0x00002317 */ { 1, { 0x00002317 } }, /* 0x00002318 */ { 1, { 0x00002318 } }, /* 0x00002319 */ { 1, { 0x00002319 } }, /* 0x0000231a */ { 1, { 0x0000231a } }, /* 0x0000231b */ { 1, { 0x0000231b } }, /* 0x0000231c */ { 1, { 0x0000231c } }, /* 0x0000231d */ { 1, { 0x0000231d } }, /* 0x0000231e */ { 1, { 0x0000231e } }, /* 0x0000231f */ { 1, { 0x0000231f } }, /* 0x00002320 */ { 1, { 0x00002320 } }, /* 0x00002321 */ { 1, { 0x00002321 } }, /* 0x00002322 */ { 1, { 0x00002322 } }, /* 0x00002323 */ { 1, { 0x00002323 } }, /* 0x00002324 */ { 1, { 0x00002324 } }, /* 0x00002325 */ { 1, { 0x00002325 } }, /* 0x00002326 */ { 1, { 0x00002326 } }, /* 0x00002327 */ { 1, { 0x00002327 } }, /* 0x00002328 */ { 1, { 0x00002328 } }, /* 0x00002329 */ { 1, { 0x00003008 } }, /* 0x0000232a */ { 1, { 0x00003009 } }, /* 0x0000232b */ { 1, { 0x0000232b } }, /* 0x0000232c */ { 1, { 0x0000232c } }, /* 0x0000232d */ { 1, { 0x0000232d } }, /* 0x0000232e */ { 1, { 0x0000232e } }, /* 0x0000232f */ { 1, { 0x0000232f } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00002ad8[ 8 ] = { /* 0x00002ad8 */ { 1, { 0x00002ad8 } }, /* 0x00002ad9 */ { 1, { 0x00002ad9 } }, /* 0x00002ada */ { 1, { 0x00002ada } }, /* 0x00002adb */ { 1, { 0x00002adb } }, /* 0x00002adc */ { 2, { 0x00002add, 0x00000338 } }, /* 0x00002add */ { 1, { 0x00002add } }, /* 0x00002ade */ { 1, { 0x00002ade } }, /* 0x00002adf */ { 1, { 0x00002adf } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00003048[ 184 ] = { /* 0x00003048 */ { 1, { 0x00003048 } }, /* 0x00003049 */ { 1, { 0x00003049 } }, /* 0x0000304a */ { 1, { 0x0000304a } }, /* 0x0000304b */ { 1, { 0x0000304b } }, /* 0x0000304c */ { 2, { 0x0000304b, 0x00003099 } }, /* 0x0000304d */ { 1, { 0x0000304d } }, /* 0x0000304e */ { 2, { 0x0000304d, 0x00003099 } }, /* 0x0000304f */ { 1, { 0x0000304f } }, /* 0x00003050 */ { 2, { 0x0000304f, 0x00003099 } }, /* 0x00003051 */ { 1, { 0x00003051 } }, /* 0x00003052 */ { 2, { 0x00003051, 0x00003099 } }, /* 0x00003053 */ { 1, { 0x00003053 } }, /* 0x00003054 */ { 2, { 0x00003053, 0x00003099 } }, /* 0x00003055 */ { 1, { 0x00003055 } }, /* 0x00003056 */ { 2, { 0x00003055, 0x00003099 } }, /* 0x00003057 */ { 1, { 0x00003057 } }, /* 0x00003058 */ { 2, { 0x00003057, 0x00003099 } }, /* 0x00003059 */ { 1, { 0x00003059 } }, /* 0x0000305a */ { 2, { 0x00003059, 0x00003099 } }, /* 0x0000305b */ { 1, { 0x0000305b } }, /* 0x0000305c */ { 2, { 0x0000305b, 0x00003099 } }, /* 0x0000305d */ { 1, { 0x0000305d } }, /* 0x0000305e */ { 2, { 0x0000305d, 0x00003099 } }, /* 0x0000305f */ { 1, { 0x0000305f } }, /* 0x00003060 */ { 2, { 0x0000305f, 0x00003099 } }, /* 0x00003061 */ { 1, { 0x00003061 } }, /* 0x00003062 */ { 2, { 0x00003061, 0x00003099 } }, /* 0x00003063 */ { 1, { 0x00003063 } }, /* 0x00003064 */ { 1, { 0x00003064 } }, /* 0x00003065 */ { 2, { 0x00003064, 0x00003099 } }, /* 0x00003066 */ { 1, { 0x00003066 } }, /* 0x00003067 */ { 2, { 0x00003066, 0x00003099 } }, /* 0x00003068 */ { 1, { 0x00003068 } }, /* 0x00003069 */ { 2, { 0x00003068, 0x00003099 } }, /* 0x0000306a */ { 1, { 0x0000306a } }, /* 0x0000306b */ { 1, { 0x0000306b } }, /* 0x0000306c */ { 1, { 0x0000306c } }, /* 0x0000306d */ { 1, { 0x0000306d } }, /* 0x0000306e */ { 1, { 0x0000306e } }, /* 0x0000306f */ { 1, { 0x0000306f } }, /* 0x00003070 */ { 2, { 0x0000306f, 0x00003099 } }, /* 0x00003071 */ { 2, { 0x0000306f, 0x0000309a } }, /* 0x00003072 */ { 1, { 0x00003072 } }, /* 0x00003073 */ { 2, { 0x00003072, 0x00003099 } }, /* 0x00003074 */ { 2, { 0x00003072, 0x0000309a } }, /* 0x00003075 */ { 1, { 0x00003075 } }, /* 0x00003076 */ { 2, { 0x00003075, 0x00003099 } }, /* 0x00003077 */ { 2, { 0x00003075, 0x0000309a } }, /* 0x00003078 */ { 1, { 0x00003078 } }, /* 0x00003079 */ { 2, { 0x00003078, 0x00003099 } }, /* 0x0000307a */ { 2, { 0x00003078, 0x0000309a } }, /* 0x0000307b */ { 1, { 0x0000307b } }, /* 0x0000307c */ { 2, { 0x0000307b, 0x00003099 } }, /* 0x0000307d */ { 2, { 0x0000307b, 0x0000309a } }, /* 0x0000307e */ { 1, { 0x0000307e } }, /* 0x0000307f */ { 1, { 0x0000307f } }, /* 0x00003080 */ { 1, { 0x00003080 } }, /* 0x00003081 */ { 1, { 0x00003081 } }, /* 0x00003082 */ { 1, { 0x00003082 } }, /* 0x00003083 */ { 1, { 0x00003083 } }, /* 0x00003084 */ { 1, { 0x00003084 } }, /* 0x00003085 */ { 1, { 0x00003085 } }, /* 0x00003086 */ { 1, { 0x00003086 } }, /* 0x00003087 */ { 1, { 0x00003087 } }, /* 0x00003088 */ { 1, { 0x00003088 } }, /* 0x00003089 */ { 1, { 0x00003089 } }, /* 0x0000308a */ { 1, { 0x0000308a } }, /* 0x0000308b */ { 1, { 0x0000308b } }, /* 0x0000308c */ { 1, { 0x0000308c } }, /* 0x0000308d */ { 1, { 0x0000308d } }, /* 0x0000308e */ { 1, { 0x0000308e } }, /* 0x0000308f */ { 1, { 0x0000308f } }, /* 0x00003090 */ { 1, { 0x00003090 } }, /* 0x00003091 */ { 1, { 0x00003091 } }, /* 0x00003092 */ { 1, { 0x00003092 } }, /* 0x00003093 */ { 1, { 0x00003093 } }, /* 0x00003094 */ { 2, { 0x00003046, 0x00003099 } }, /* 0x00003095 */ { 1, { 0x00003095 } }, /* 0x00003096 */ { 1, { 0x00003096 } }, /* 0x00003097 */ { 1, { 0x00003097 } }, /* 0x00003098 */ { 1, { 0x00003098 } }, /* 0x00003099 */ { 1, { 0x00003099 } }, /* 0x0000309a */ { 1, { 0x0000309a } }, /* 0x0000309b */ { 1, { 0x0000309b } }, /* 0x0000309c */ { 1, { 0x0000309c } }, /* 0x0000309d */ { 1, { 0x0000309d } }, /* 0x0000309e */ { 2, { 0x0000309d, 0x00003099 } }, /* 0x0000309f */ { 1, { 0x0000309f } }, /* 0x000030a0 */ { 1, { 0x000030a0 } }, /* 0x000030a1 */ { 1, { 0x000030a1 } }, /* 0x000030a2 */ { 1, { 0x000030a2 } }, /* 0x000030a3 */ { 1, { 0x000030a3 } }, /* 0x000030a4 */ { 1, { 0x000030a4 } }, /* 0x000030a5 */ { 1, { 0x000030a5 } }, /* 0x000030a6 */ { 1, { 0x000030a6 } }, /* 0x000030a7 */ { 1, { 0x000030a7 } }, /* 0x000030a8 */ { 1, { 0x000030a8 } }, /* 0x000030a9 */ { 1, { 0x000030a9 } }, /* 0x000030aa */ { 1, { 0x000030aa } }, /* 0x000030ab */ { 1, { 0x000030ab } }, /* 0x000030ac */ { 2, { 0x000030ab, 0x00003099 } }, /* 0x000030ad */ { 1, { 0x000030ad } }, /* 0x000030ae */ { 2, { 0x000030ad, 0x00003099 } }, /* 0x000030af */ { 1, { 0x000030af } }, /* 0x000030b0 */ { 2, { 0x000030af, 0x00003099 } }, /* 0x000030b1 */ { 1, { 0x000030b1 } }, /* 0x000030b2 */ { 2, { 0x000030b1, 0x00003099 } }, /* 0x000030b3 */ { 1, { 0x000030b3 } }, /* 0x000030b4 */ { 2, { 0x000030b3, 0x00003099 } }, /* 0x000030b5 */ { 1, { 0x000030b5 } }, /* 0x000030b6 */ { 2, { 0x000030b5, 0x00003099 } }, /* 0x000030b7 */ { 1, { 0x000030b7 } }, /* 0x000030b8 */ { 2, { 0x000030b7, 0x00003099 } }, /* 0x000030b9 */ { 1, { 0x000030b9 } }, /* 0x000030ba */ { 2, { 0x000030b9, 0x00003099 } }, /* 0x000030bb */ { 1, { 0x000030bb } }, /* 0x000030bc */ { 2, { 0x000030bb, 0x00003099 } }, /* 0x000030bd */ { 1, { 0x000030bd } }, /* 0x000030be */ { 2, { 0x000030bd, 0x00003099 } }, /* 0x000030bf */ { 1, { 0x000030bf } }, /* 0x000030c0 */ { 2, { 0x000030bf, 0x00003099 } }, /* 0x000030c1 */ { 1, { 0x000030c1 } }, /* 0x000030c2 */ { 2, { 0x000030c1, 0x00003099 } }, /* 0x000030c3 */ { 1, { 0x000030c3 } }, /* 0x000030c4 */ { 1, { 0x000030c4 } }, /* 0x000030c5 */ { 2, { 0x000030c4, 0x00003099 } }, /* 0x000030c6 */ { 1, { 0x000030c6 } }, /* 0x000030c7 */ { 2, { 0x000030c6, 0x00003099 } }, /* 0x000030c8 */ { 1, { 0x000030c8 } }, /* 0x000030c9 */ { 2, { 0x000030c8, 0x00003099 } }, /* 0x000030ca */ { 1, { 0x000030ca } }, /* 0x000030cb */ { 1, { 0x000030cb } }, /* 0x000030cc */ { 1, { 0x000030cc } }, /* 0x000030cd */ { 1, { 0x000030cd } }, /* 0x000030ce */ { 1, { 0x000030ce } }, /* 0x000030cf */ { 1, { 0x000030cf } }, /* 0x000030d0 */ { 2, { 0x000030cf, 0x00003099 } }, /* 0x000030d1 */ { 2, { 0x000030cf, 0x0000309a } }, /* 0x000030d2 */ { 1, { 0x000030d2 } }, /* 0x000030d3 */ { 2, { 0x000030d2, 0x00003099 } }, /* 0x000030d4 */ { 2, { 0x000030d2, 0x0000309a } }, /* 0x000030d5 */ { 1, { 0x000030d5 } }, /* 0x000030d6 */ { 2, { 0x000030d5, 0x00003099 } }, /* 0x000030d7 */ { 2, { 0x000030d5, 0x0000309a } }, /* 0x000030d8 */ { 1, { 0x000030d8 } }, /* 0x000030d9 */ { 2, { 0x000030d8, 0x00003099 } }, /* 0x000030da */ { 2, { 0x000030d8, 0x0000309a } }, /* 0x000030db */ { 1, { 0x000030db } }, /* 0x000030dc */ { 2, { 0x000030db, 0x00003099 } }, /* 0x000030dd */ { 2, { 0x000030db, 0x0000309a } }, /* 0x000030de */ { 1, { 0x000030de } }, /* 0x000030df */ { 1, { 0x000030df } }, /* 0x000030e0 */ { 1, { 0x000030e0 } }, /* 0x000030e1 */ { 1, { 0x000030e1 } }, /* 0x000030e2 */ { 1, { 0x000030e2 } }, /* 0x000030e3 */ { 1, { 0x000030e3 } }, /* 0x000030e4 */ { 1, { 0x000030e4 } }, /* 0x000030e5 */ { 1, { 0x000030e5 } }, /* 0x000030e6 */ { 1, { 0x000030e6 } }, /* 0x000030e7 */ { 1, { 0x000030e7 } }, /* 0x000030e8 */ { 1, { 0x000030e8 } }, /* 0x000030e9 */ { 1, { 0x000030e9 } }, /* 0x000030ea */ { 1, { 0x000030ea } }, /* 0x000030eb */ { 1, { 0x000030eb } }, /* 0x000030ec */ { 1, { 0x000030ec } }, /* 0x000030ed */ { 1, { 0x000030ed } }, /* 0x000030ee */ { 1, { 0x000030ee } }, /* 0x000030ef */ { 1, { 0x000030ef } }, /* 0x000030f0 */ { 1, { 0x000030f0 } }, /* 0x000030f1 */ { 1, { 0x000030f1 } }, /* 0x000030f2 */ { 1, { 0x000030f2 } }, /* 0x000030f3 */ { 1, { 0x000030f3 } }, /* 0x000030f4 */ { 2, { 0x000030a6, 0x00003099 } }, /* 0x000030f5 */ { 1, { 0x000030f5 } }, /* 0x000030f6 */ { 1, { 0x000030f6 } }, /* 0x000030f7 */ { 2, { 0x000030ef, 0x00003099 } }, /* 0x000030f8 */ { 2, { 0x000030f0, 0x00003099 } }, /* 0x000030f9 */ { 2, { 0x000030f1, 0x00003099 } }, /* 0x000030fa */ { 2, { 0x000030f2, 0x00003099 } }, /* 0x000030fb */ { 1, { 0x000030fb } }, /* 0x000030fc */ { 1, { 0x000030fc } }, /* 0x000030fd */ { 1, { 0x000030fd } }, /* 0x000030fe */ { 2, { 0x000030fd, 0x00003099 } }, /* 0x000030ff */ { 1, { 0x000030ff } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0000f900[ 480 ] = { /* 0x0000f900 */ { 1, { 0x00008c48 } }, /* 0x0000f901 */ { 1, { 0x000066f4 } }, /* 0x0000f902 */ { 1, { 0x00008eca } }, /* 0x0000f903 */ { 1, { 0x00008cc8 } }, /* 0x0000f904 */ { 1, { 0x00006ed1 } }, /* 0x0000f905 */ { 1, { 0x00004e32 } }, /* 0x0000f906 */ { 1, { 0x000053e5 } }, /* 0x0000f907 */ { 1, { 0x00009f9c } }, /* 0x0000f908 */ { 1, { 0x00009f9c } }, /* 0x0000f909 */ { 1, { 0x00005951 } }, /* 0x0000f90a */ { 1, { 0x000091d1 } }, /* 0x0000f90b */ { 1, { 0x00005587 } }, /* 0x0000f90c */ { 1, { 0x00005948 } }, /* 0x0000f90d */ { 1, { 0x000061f6 } }, /* 0x0000f90e */ { 1, { 0x00007669 } }, /* 0x0000f90f */ { 1, { 0x00007f85 } }, /* 0x0000f910 */ { 1, { 0x0000863f } }, /* 0x0000f911 */ { 1, { 0x000087ba } }, /* 0x0000f912 */ { 1, { 0x000088f8 } }, /* 0x0000f913 */ { 1, { 0x0000908f } }, /* 0x0000f914 */ { 1, { 0x00006a02 } }, /* 0x0000f915 */ { 1, { 0x00006d1b } }, /* 0x0000f916 */ { 1, { 0x000070d9 } }, /* 0x0000f917 */ { 1, { 0x000073de } }, /* 0x0000f918 */ { 1, { 0x0000843d } }, /* 0x0000f919 */ { 1, { 0x0000916a } }, /* 0x0000f91a */ { 1, { 0x000099f1 } }, /* 0x0000f91b */ { 1, { 0x00004e82 } }, /* 0x0000f91c */ { 1, { 0x00005375 } }, /* 0x0000f91d */ { 1, { 0x00006b04 } }, /* 0x0000f91e */ { 1, { 0x0000721b } }, /* 0x0000f91f */ { 1, { 0x0000862d } }, /* 0x0000f920 */ { 1, { 0x00009e1e } }, /* 0x0000f921 */ { 1, { 0x00005d50 } }, /* 0x0000f922 */ { 1, { 0x00006feb } }, /* 0x0000f923 */ { 1, { 0x000085cd } }, /* 0x0000f924 */ { 1, { 0x00008964 } }, /* 0x0000f925 */ { 1, { 0x000062c9 } }, /* 0x0000f926 */ { 1, { 0x000081d8 } }, /* 0x0000f927 */ { 1, { 0x0000881f } }, /* 0x0000f928 */ { 1, { 0x00005eca } }, /* 0x0000f929 */ { 1, { 0x00006717 } }, /* 0x0000f92a */ { 1, { 0x00006d6a } }, /* 0x0000f92b */ { 1, { 0x000072fc } }, /* 0x0000f92c */ { 1, { 0x000090ce } }, /* 0x0000f92d */ { 1, { 0x00004f86 } }, /* 0x0000f92e */ { 1, { 0x000051b7 } }, /* 0x0000f92f */ { 1, { 0x000052de } }, /* 0x0000f930 */ { 1, { 0x000064c4 } }, /* 0x0000f931 */ { 1, { 0x00006ad3 } }, /* 0x0000f932 */ { 1, { 0x00007210 } }, /* 0x0000f933 */ { 1, { 0x000076e7 } }, /* 0x0000f934 */ { 1, { 0x00008001 } }, /* 0x0000f935 */ { 1, { 0x00008606 } }, /* 0x0000f936 */ { 1, { 0x0000865c } }, /* 0x0000f937 */ { 1, { 0x00008def } }, /* 0x0000f938 */ { 1, { 0x00009732 } }, /* 0x0000f939 */ { 1, { 0x00009b6f } }, /* 0x0000f93a */ { 1, { 0x00009dfa } }, /* 0x0000f93b */ { 1, { 0x0000788c } }, /* 0x0000f93c */ { 1, { 0x0000797f } }, /* 0x0000f93d */ { 1, { 0x00007da0 } }, /* 0x0000f93e */ { 1, { 0x000083c9 } }, /* 0x0000f93f */ { 1, { 0x00009304 } }, /* 0x0000f940 */ { 1, { 0x00009e7f } }, /* 0x0000f941 */ { 1, { 0x00008ad6 } }, /* 0x0000f942 */ { 1, { 0x000058df } }, /* 0x0000f943 */ { 1, { 0x00005f04 } }, /* 0x0000f944 */ { 1, { 0x00007c60 } }, /* 0x0000f945 */ { 1, { 0x0000807e } }, /* 0x0000f946 */ { 1, { 0x00007262 } }, /* 0x0000f947 */ { 1, { 0x000078ca } }, /* 0x0000f948 */ { 1, { 0x00008cc2 } }, /* 0x0000f949 */ { 1, { 0x000096f7 } }, /* 0x0000f94a */ { 1, { 0x000058d8 } }, /* 0x0000f94b */ { 1, { 0x00005c62 } }, /* 0x0000f94c */ { 1, { 0x00006a13 } }, /* 0x0000f94d */ { 1, { 0x00006dda } }, /* 0x0000f94e */ { 1, { 0x00006f0f } }, /* 0x0000f94f */ { 1, { 0x00007d2f } }, /* 0x0000f950 */ { 1, { 0x00007e37 } }, /* 0x0000f951 */ { 1, { 0x0000964b } }, /* 0x0000f952 */ { 1, { 0x000052d2 } }, /* 0x0000f953 */ { 1, { 0x0000808b } }, /* 0x0000f954 */ { 1, { 0x000051dc } }, /* 0x0000f955 */ { 1, { 0x000051cc } }, /* 0x0000f956 */ { 1, { 0x00007a1c } }, /* 0x0000f957 */ { 1, { 0x00007dbe } }, /* 0x0000f958 */ { 1, { 0x000083f1 } }, /* 0x0000f959 */ { 1, { 0x00009675 } }, /* 0x0000f95a */ { 1, { 0x00008b80 } }, /* 0x0000f95b */ { 1, { 0x000062cf } }, /* 0x0000f95c */ { 1, { 0x00006a02 } }, /* 0x0000f95d */ { 1, { 0x00008afe } }, /* 0x0000f95e */ { 1, { 0x00004e39 } }, /* 0x0000f95f */ { 1, { 0x00005be7 } }, /* 0x0000f960 */ { 1, { 0x00006012 } }, /* 0x0000f961 */ { 1, { 0x00007387 } }, /* 0x0000f962 */ { 1, { 0x00007570 } }, /* 0x0000f963 */ { 1, { 0x00005317 } }, /* 0x0000f964 */ { 1, { 0x000078fb } }, /* 0x0000f965 */ { 1, { 0x00004fbf } }, /* 0x0000f966 */ { 1, { 0x00005fa9 } }, /* 0x0000f967 */ { 1, { 0x00004e0d } }, /* 0x0000f968 */ { 1, { 0x00006ccc } }, /* 0x0000f969 */ { 1, { 0x00006578 } }, /* 0x0000f96a */ { 1, { 0x00007d22 } }, /* 0x0000f96b */ { 1, { 0x000053c3 } }, /* 0x0000f96c */ { 1, { 0x0000585e } }, /* 0x0000f96d */ { 1, { 0x00007701 } }, /* 0x0000f96e */ { 1, { 0x00008449 } }, /* 0x0000f96f */ { 1, { 0x00008aaa } }, /* 0x0000f970 */ { 1, { 0x00006bba } }, /* 0x0000f971 */ { 1, { 0x00008fb0 } }, /* 0x0000f972 */ { 1, { 0x00006c88 } }, /* 0x0000f973 */ { 1, { 0x000062fe } }, /* 0x0000f974 */ { 1, { 0x000082e5 } }, /* 0x0000f975 */ { 1, { 0x000063a0 } }, /* 0x0000f976 */ { 1, { 0x00007565 } }, /* 0x0000f977 */ { 1, { 0x00004eae } }, /* 0x0000f978 */ { 1, { 0x00005169 } }, /* 0x0000f979 */ { 1, { 0x000051c9 } }, /* 0x0000f97a */ { 1, { 0x00006881 } }, /* 0x0000f97b */ { 1, { 0x00007ce7 } }, /* 0x0000f97c */ { 1, { 0x0000826f } }, /* 0x0000f97d */ { 1, { 0x00008ad2 } }, /* 0x0000f97e */ { 1, { 0x000091cf } }, /* 0x0000f97f */ { 1, { 0x000052f5 } }, /* 0x0000f980 */ { 1, { 0x00005442 } }, /* 0x0000f981 */ { 1, { 0x00005973 } }, /* 0x0000f982 */ { 1, { 0x00005eec } }, /* 0x0000f983 */ { 1, { 0x000065c5 } }, /* 0x0000f984 */ { 1, { 0x00006ffe } }, /* 0x0000f985 */ { 1, { 0x0000792a } }, /* 0x0000f986 */ { 1, { 0x000095ad } }, /* 0x0000f987 */ { 1, { 0x00009a6a } }, /* 0x0000f988 */ { 1, { 0x00009e97 } }, /* 0x0000f989 */ { 1, { 0x00009ece } }, /* 0x0000f98a */ { 1, { 0x0000529b } }, /* 0x0000f98b */ { 1, { 0x000066c6 } }, /* 0x0000f98c */ { 1, { 0x00006b77 } }, /* 0x0000f98d */ { 1, { 0x00008f62 } }, /* 0x0000f98e */ { 1, { 0x00005e74 } }, /* 0x0000f98f */ { 1, { 0x00006190 } }, /* 0x0000f990 */ { 1, { 0x00006200 } }, /* 0x0000f991 */ { 1, { 0x0000649a } }, /* 0x0000f992 */ { 1, { 0x00006f23 } }, /* 0x0000f993 */ { 1, { 0x00007149 } }, /* 0x0000f994 */ { 1, { 0x00007489 } }, /* 0x0000f995 */ { 1, { 0x000079ca } }, /* 0x0000f996 */ { 1, { 0x00007df4 } }, /* 0x0000f997 */ { 1, { 0x0000806f } }, /* 0x0000f998 */ { 1, { 0x00008f26 } }, /* 0x0000f999 */ { 1, { 0x000084ee } }, /* 0x0000f99a */ { 1, { 0x00009023 } }, /* 0x0000f99b */ { 1, { 0x0000934a } }, /* 0x0000f99c */ { 1, { 0x00005217 } }, /* 0x0000f99d */ { 1, { 0x000052a3 } }, /* 0x0000f99e */ { 1, { 0x000054bd } }, /* 0x0000f99f */ { 1, { 0x000070c8 } }, /* 0x0000f9a0 */ { 1, { 0x000088c2 } }, /* 0x0000f9a1 */ { 1, { 0x00008aaa } }, /* 0x0000f9a2 */ { 1, { 0x00005ec9 } }, /* 0x0000f9a3 */ { 1, { 0x00005ff5 } }, /* 0x0000f9a4 */ { 1, { 0x0000637b } }, /* 0x0000f9a5 */ { 1, { 0x00006bae } }, /* 0x0000f9a6 */ { 1, { 0x00007c3e } }, /* 0x0000f9a7 */ { 1, { 0x00007375 } }, /* 0x0000f9a8 */ { 1, { 0x00004ee4 } }, /* 0x0000f9a9 */ { 1, { 0x000056f9 } }, /* 0x0000f9aa */ { 1, { 0x00005be7 } }, /* 0x0000f9ab */ { 1, { 0x00005dba } }, /* 0x0000f9ac */ { 1, { 0x0000601c } }, /* 0x0000f9ad */ { 1, { 0x000073b2 } }, /* 0x0000f9ae */ { 1, { 0x00007469 } }, /* 0x0000f9af */ { 1, { 0x00007f9a } }, /* 0x0000f9b0 */ { 1, { 0x00008046 } }, /* 0x0000f9b1 */ { 1, { 0x00009234 } }, /* 0x0000f9b2 */ { 1, { 0x000096f6 } }, /* 0x0000f9b3 */ { 1, { 0x00009748 } }, /* 0x0000f9b4 */ { 1, { 0x00009818 } }, /* 0x0000f9b5 */ { 1, { 0x00004f8b } }, /* 0x0000f9b6 */ { 1, { 0x000079ae } }, /* 0x0000f9b7 */ { 1, { 0x000091b4 } }, /* 0x0000f9b8 */ { 1, { 0x000096b8 } }, /* 0x0000f9b9 */ { 1, { 0x000060e1 } }, /* 0x0000f9ba */ { 1, { 0x00004e86 } }, /* 0x0000f9bb */ { 1, { 0x000050da } }, /* 0x0000f9bc */ { 1, { 0x00005bee } }, /* 0x0000f9bd */ { 1, { 0x00005c3f } }, /* 0x0000f9be */ { 1, { 0x00006599 } }, /* 0x0000f9bf */ { 1, { 0x00006a02 } }, /* 0x0000f9c0 */ { 1, { 0x000071ce } }, /* 0x0000f9c1 */ { 1, { 0x00007642 } }, /* 0x0000f9c2 */ { 1, { 0x000084fc } }, /* 0x0000f9c3 */ { 1, { 0x0000907c } }, /* 0x0000f9c4 */ { 1, { 0x00009f8d } }, /* 0x0000f9c5 */ { 1, { 0x00006688 } }, /* 0x0000f9c6 */ { 1, { 0x0000962e } }, /* 0x0000f9c7 */ { 1, { 0x00005289 } }, /* 0x0000f9c8 */ { 1, { 0x0000677b } }, /* 0x0000f9c9 */ { 1, { 0x000067f3 } }, /* 0x0000f9ca */ { 1, { 0x00006d41 } }, /* 0x0000f9cb */ { 1, { 0x00006e9c } }, /* 0x0000f9cc */ { 1, { 0x00007409 } }, /* 0x0000f9cd */ { 1, { 0x00007559 } }, /* 0x0000f9ce */ { 1, { 0x0000786b } }, /* 0x0000f9cf */ { 1, { 0x00007d10 } }, /* 0x0000f9d0 */ { 1, { 0x0000985e } }, /* 0x0000f9d1 */ { 1, { 0x0000516d } }, /* 0x0000f9d2 */ { 1, { 0x0000622e } }, /* 0x0000f9d3 */ { 1, { 0x00009678 } }, /* 0x0000f9d4 */ { 1, { 0x0000502b } }, /* 0x0000f9d5 */ { 1, { 0x00005d19 } }, /* 0x0000f9d6 */ { 1, { 0x00006dea } }, /* 0x0000f9d7 */ { 1, { 0x00008f2a } }, /* 0x0000f9d8 */ { 1, { 0x00005f8b } }, /* 0x0000f9d9 */ { 1, { 0x00006144 } }, /* 0x0000f9da */ { 1, { 0x00006817 } }, /* 0x0000f9db */ { 1, { 0x00007387 } }, /* 0x0000f9dc */ { 1, { 0x00009686 } }, /* 0x0000f9dd */ { 1, { 0x00005229 } }, /* 0x0000f9de */ { 1, { 0x0000540f } }, /* 0x0000f9df */ { 1, { 0x00005c65 } }, /* 0x0000f9e0 */ { 1, { 0x00006613 } }, /* 0x0000f9e1 */ { 1, { 0x0000674e } }, /* 0x0000f9e2 */ { 1, { 0x000068a8 } }, /* 0x0000f9e3 */ { 1, { 0x00006ce5 } }, /* 0x0000f9e4 */ { 1, { 0x00007406 } }, /* 0x0000f9e5 */ { 1, { 0x000075e2 } }, /* 0x0000f9e6 */ { 1, { 0x00007f79 } }, /* 0x0000f9e7 */ { 1, { 0x000088cf } }, /* 0x0000f9e8 */ { 1, { 0x000088e1 } }, /* 0x0000f9e9 */ { 1, { 0x000091cc } }, /* 0x0000f9ea */ { 1, { 0x000096e2 } }, /* 0x0000f9eb */ { 1, { 0x0000533f } }, /* 0x0000f9ec */ { 1, { 0x00006eba } }, /* 0x0000f9ed */ { 1, { 0x0000541d } }, /* 0x0000f9ee */ { 1, { 0x000071d0 } }, /* 0x0000f9ef */ { 1, { 0x00007498 } }, /* 0x0000f9f0 */ { 1, { 0x000085fa } }, /* 0x0000f9f1 */ { 1, { 0x000096a3 } }, /* 0x0000f9f2 */ { 1, { 0x00009c57 } }, /* 0x0000f9f3 */ { 1, { 0x00009e9f } }, /* 0x0000f9f4 */ { 1, { 0x00006797 } }, /* 0x0000f9f5 */ { 1, { 0x00006dcb } }, /* 0x0000f9f6 */ { 1, { 0x000081e8 } }, /* 0x0000f9f7 */ { 1, { 0x00007acb } }, /* 0x0000f9f8 */ { 1, { 0x00007b20 } }, /* 0x0000f9f9 */ { 1, { 0x00007c92 } }, /* 0x0000f9fa */ { 1, { 0x000072c0 } }, /* 0x0000f9fb */ { 1, { 0x00007099 } }, /* 0x0000f9fc */ { 1, { 0x00008b58 } }, /* 0x0000f9fd */ { 1, { 0x00004ec0 } }, /* 0x0000f9fe */ { 1, { 0x00008336 } }, /* 0x0000f9ff */ { 1, { 0x0000523a } }, /* 0x0000fa00 */ { 1, { 0x00005207 } }, /* 0x0000fa01 */ { 1, { 0x00005ea6 } }, /* 0x0000fa02 */ { 1, { 0x000062d3 } }, /* 0x0000fa03 */ { 1, { 0x00007cd6 } }, /* 0x0000fa04 */ { 1, { 0x00005b85 } }, /* 0x0000fa05 */ { 1, { 0x00006d1e } }, /* 0x0000fa06 */ { 1, { 0x000066b4 } }, /* 0x0000fa07 */ { 1, { 0x00008f3b } }, /* 0x0000fa08 */ { 1, { 0x0000884c } }, /* 0x0000fa09 */ { 1, { 0x0000964d } }, /* 0x0000fa0a */ { 1, { 0x0000898b } }, /* 0x0000fa0b */ { 1, { 0x00005ed3 } }, /* 0x0000fa0c */ { 1, { 0x00005140 } }, /* 0x0000fa0d */ { 1, { 0x000055c0 } }, /* 0x0000fa0e */ { 1, { 0x0000fa0e } }, /* 0x0000fa0f */ { 1, { 0x0000fa0f } }, /* 0x0000fa10 */ { 1, { 0x0000585a } }, /* 0x0000fa11 */ { 1, { 0x0000fa11 } }, /* 0x0000fa12 */ { 1, { 0x00006674 } }, /* 0x0000fa13 */ { 1, { 0x0000fa13 } }, /* 0x0000fa14 */ { 1, { 0x0000fa14 } }, /* 0x0000fa15 */ { 1, { 0x000051de } }, /* 0x0000fa16 */ { 1, { 0x0000732a } }, /* 0x0000fa17 */ { 1, { 0x000076ca } }, /* 0x0000fa18 */ { 1, { 0x0000793c } }, /* 0x0000fa19 */ { 1, { 0x0000795e } }, /* 0x0000fa1a */ { 1, { 0x00007965 } }, /* 0x0000fa1b */ { 1, { 0x0000798f } }, /* 0x0000fa1c */ { 1, { 0x00009756 } }, /* 0x0000fa1d */ { 1, { 0x00007cbe } }, /* 0x0000fa1e */ { 1, { 0x00007fbd } }, /* 0x0000fa1f */ { 1, { 0x0000fa1f } }, /* 0x0000fa20 */ { 1, { 0x00008612 } }, /* 0x0000fa21 */ { 1, { 0x0000fa21 } }, /* 0x0000fa22 */ { 1, { 0x00008af8 } }, /* 0x0000fa23 */ { 1, { 0x0000fa23 } }, /* 0x0000fa24 */ { 1, { 0x0000fa24 } }, /* 0x0000fa25 */ { 1, { 0x00009038 } }, /* 0x0000fa26 */ { 1, { 0x000090fd } }, /* 0x0000fa27 */ { 1, { 0x0000fa27 } }, /* 0x0000fa28 */ { 1, { 0x0000fa28 } }, /* 0x0000fa29 */ { 1, { 0x0000fa29 } }, /* 0x0000fa2a */ { 1, { 0x000098ef } }, /* 0x0000fa2b */ { 1, { 0x000098fc } }, /* 0x0000fa2c */ { 1, { 0x00009928 } }, /* 0x0000fa2d */ { 1, { 0x00009db4 } }, /* 0x0000fa2e */ { 1, { 0x000090de } }, /* 0x0000fa2f */ { 1, { 0x000096b7 } }, /* 0x0000fa30 */ { 1, { 0x00004fae } }, /* 0x0000fa31 */ { 1, { 0x000050e7 } }, /* 0x0000fa32 */ { 1, { 0x0000514d } }, /* 0x0000fa33 */ { 1, { 0x000052c9 } }, /* 0x0000fa34 */ { 1, { 0x000052e4 } }, /* 0x0000fa35 */ { 1, { 0x00005351 } }, /* 0x0000fa36 */ { 1, { 0x0000559d } }, /* 0x0000fa37 */ { 1, { 0x00005606 } }, /* 0x0000fa38 */ { 1, { 0x00005668 } }, /* 0x0000fa39 */ { 1, { 0x00005840 } }, /* 0x0000fa3a */ { 1, { 0x000058a8 } }, /* 0x0000fa3b */ { 1, { 0x00005c64 } }, /* 0x0000fa3c */ { 1, { 0x00005c6e } }, /* 0x0000fa3d */ { 1, { 0x00006094 } }, /* 0x0000fa3e */ { 1, { 0x00006168 } }, /* 0x0000fa3f */ { 1, { 0x0000618e } }, /* 0x0000fa40 */ { 1, { 0x000061f2 } }, /* 0x0000fa41 */ { 1, { 0x0000654f } }, /* 0x0000fa42 */ { 1, { 0x000065e2 } }, /* 0x0000fa43 */ { 1, { 0x00006691 } }, /* 0x0000fa44 */ { 1, { 0x00006885 } }, /* 0x0000fa45 */ { 1, { 0x00006d77 } }, /* 0x0000fa46 */ { 1, { 0x00006e1a } }, /* 0x0000fa47 */ { 1, { 0x00006f22 } }, /* 0x0000fa48 */ { 1, { 0x0000716e } }, /* 0x0000fa49 */ { 1, { 0x0000722b } }, /* 0x0000fa4a */ { 1, { 0x00007422 } }, /* 0x0000fa4b */ { 1, { 0x00007891 } }, /* 0x0000fa4c */ { 1, { 0x0000793e } }, /* 0x0000fa4d */ { 1, { 0x00007949 } }, /* 0x0000fa4e */ { 1, { 0x00007948 } }, /* 0x0000fa4f */ { 1, { 0x00007950 } }, /* 0x0000fa50 */ { 1, { 0x00007956 } }, /* 0x0000fa51 */ { 1, { 0x0000795d } }, /* 0x0000fa52 */ { 1, { 0x0000798d } }, /* 0x0000fa53 */ { 1, { 0x0000798e } }, /* 0x0000fa54 */ { 1, { 0x00007a40 } }, /* 0x0000fa55 */ { 1, { 0x00007a81 } }, /* 0x0000fa56 */ { 1, { 0x00007bc0 } }, /* 0x0000fa57 */ { 1, { 0x00007df4 } }, /* 0x0000fa58 */ { 1, { 0x00007e09 } }, /* 0x0000fa59 */ { 1, { 0x00007e41 } }, /* 0x0000fa5a */ { 1, { 0x00007f72 } }, /* 0x0000fa5b */ { 1, { 0x00008005 } }, /* 0x0000fa5c */ { 1, { 0x000081ed } }, /* 0x0000fa5d */ { 1, { 0x00008279 } }, /* 0x0000fa5e */ { 1, { 0x00008279 } }, /* 0x0000fa5f */ { 1, { 0x00008457 } }, /* 0x0000fa60 */ { 1, { 0x00008910 } }, /* 0x0000fa61 */ { 1, { 0x00008996 } }, /* 0x0000fa62 */ { 1, { 0x00008b01 } }, /* 0x0000fa63 */ { 1, { 0x00008b39 } }, /* 0x0000fa64 */ { 1, { 0x00008cd3 } }, /* 0x0000fa65 */ { 1, { 0x00008d08 } }, /* 0x0000fa66 */ { 1, { 0x00008fb6 } }, /* 0x0000fa67 */ { 1, { 0x00009038 } }, /* 0x0000fa68 */ { 1, { 0x000096e3 } }, /* 0x0000fa69 */ { 1, { 0x000097ff } }, /* 0x0000fa6a */ { 1, { 0x0000983b } }, /* 0x0000fa6b */ { 1, { 0x00006075 } }, /* 0x0000fa6c */ { 1, { 0x000242ee } }, /* 0x0000fa6d */ { 1, { 0x00008218 } }, /* 0x0000fa6e */ { 1, { 0x0000fa6e } }, /* 0x0000fa6f */ { 1, { 0x0000fa6f } }, /* 0x0000fa70 */ { 1, { 0x00004e26 } }, /* 0x0000fa71 */ { 1, { 0x000051b5 } }, /* 0x0000fa72 */ { 1, { 0x00005168 } }, /* 0x0000fa73 */ { 1, { 0x00004f80 } }, /* 0x0000fa74 */ { 1, { 0x00005145 } }, /* 0x0000fa75 */ { 1, { 0x00005180 } }, /* 0x0000fa76 */ { 1, { 0x000052c7 } }, /* 0x0000fa77 */ { 1, { 0x000052fa } }, /* 0x0000fa78 */ { 1, { 0x0000559d } }, /* 0x0000fa79 */ { 1, { 0x00005555 } }, /* 0x0000fa7a */ { 1, { 0x00005599 } }, /* 0x0000fa7b */ { 1, { 0x000055e2 } }, /* 0x0000fa7c */ { 1, { 0x0000585a } }, /* 0x0000fa7d */ { 1, { 0x000058b3 } }, /* 0x0000fa7e */ { 1, { 0x00005944 } }, /* 0x0000fa7f */ { 1, { 0x00005954 } }, /* 0x0000fa80 */ { 1, { 0x00005a62 } }, /* 0x0000fa81 */ { 1, { 0x00005b28 } }, /* 0x0000fa82 */ { 1, { 0x00005ed2 } }, /* 0x0000fa83 */ { 1, { 0x00005ed9 } }, /* 0x0000fa84 */ { 1, { 0x00005f69 } }, /* 0x0000fa85 */ { 1, { 0x00005fad } }, /* 0x0000fa86 */ { 1, { 0x000060d8 } }, /* 0x0000fa87 */ { 1, { 0x0000614e } }, /* 0x0000fa88 */ { 1, { 0x00006108 } }, /* 0x0000fa89 */ { 1, { 0x0000618e } }, /* 0x0000fa8a */ { 1, { 0x00006160 } }, /* 0x0000fa8b */ { 1, { 0x000061f2 } }, /* 0x0000fa8c */ { 1, { 0x00006234 } }, /* 0x0000fa8d */ { 1, { 0x000063c4 } }, /* 0x0000fa8e */ { 1, { 0x0000641c } }, /* 0x0000fa8f */ { 1, { 0x00006452 } }, /* 0x0000fa90 */ { 1, { 0x00006556 } }, /* 0x0000fa91 */ { 1, { 0x00006674 } }, /* 0x0000fa92 */ { 1, { 0x00006717 } }, /* 0x0000fa93 */ { 1, { 0x0000671b } }, /* 0x0000fa94 */ { 1, { 0x00006756 } }, /* 0x0000fa95 */ { 1, { 0x00006b79 } }, /* 0x0000fa96 */ { 1, { 0x00006bba } }, /* 0x0000fa97 */ { 1, { 0x00006d41 } }, /* 0x0000fa98 */ { 1, { 0x00006edb } }, /* 0x0000fa99 */ { 1, { 0x00006ecb } }, /* 0x0000fa9a */ { 1, { 0x00006f22 } }, /* 0x0000fa9b */ { 1, { 0x0000701e } }, /* 0x0000fa9c */ { 1, { 0x0000716e } }, /* 0x0000fa9d */ { 1, { 0x000077a7 } }, /* 0x0000fa9e */ { 1, { 0x00007235 } }, /* 0x0000fa9f */ { 1, { 0x000072af } }, /* 0x0000faa0 */ { 1, { 0x0000732a } }, /* 0x0000faa1 */ { 1, { 0x00007471 } }, /* 0x0000faa2 */ { 1, { 0x00007506 } }, /* 0x0000faa3 */ { 1, { 0x0000753b } }, /* 0x0000faa4 */ { 1, { 0x0000761d } }, /* 0x0000faa5 */ { 1, { 0x0000761f } }, /* 0x0000faa6 */ { 1, { 0x000076ca } }, /* 0x0000faa7 */ { 1, { 0x000076db } }, /* 0x0000faa8 */ { 1, { 0x000076f4 } }, /* 0x0000faa9 */ { 1, { 0x0000774a } }, /* 0x0000faaa */ { 1, { 0x00007740 } }, /* 0x0000faab */ { 1, { 0x000078cc } }, /* 0x0000faac */ { 1, { 0x00007ab1 } }, /* 0x0000faad */ { 1, { 0x00007bc0 } }, /* 0x0000faae */ { 1, { 0x00007c7b } }, /* 0x0000faaf */ { 1, { 0x00007d5b } }, /* 0x0000fab0 */ { 1, { 0x00007df4 } }, /* 0x0000fab1 */ { 1, { 0x00007f3e } }, /* 0x0000fab2 */ { 1, { 0x00008005 } }, /* 0x0000fab3 */ { 1, { 0x00008352 } }, /* 0x0000fab4 */ { 1, { 0x000083ef } }, /* 0x0000fab5 */ { 1, { 0x00008779 } }, /* 0x0000fab6 */ { 1, { 0x00008941 } }, /* 0x0000fab7 */ { 1, { 0x00008986 } }, /* 0x0000fab8 */ { 1, { 0x00008996 } }, /* 0x0000fab9 */ { 1, { 0x00008abf } }, /* 0x0000faba */ { 1, { 0x00008af8 } }, /* 0x0000fabb */ { 1, { 0x00008acb } }, /* 0x0000fabc */ { 1, { 0x00008b01 } }, /* 0x0000fabd */ { 1, { 0x00008afe } }, /* 0x0000fabe */ { 1, { 0x00008aed } }, /* 0x0000fabf */ { 1, { 0x00008b39 } }, /* 0x0000fac0 */ { 1, { 0x00008b8a } }, /* 0x0000fac1 */ { 1, { 0x00008d08 } }, /* 0x0000fac2 */ { 1, { 0x00008f38 } }, /* 0x0000fac3 */ { 1, { 0x00009072 } }, /* 0x0000fac4 */ { 1, { 0x00009199 } }, /* 0x0000fac5 */ { 1, { 0x00009276 } }, /* 0x0000fac6 */ { 1, { 0x0000967c } }, /* 0x0000fac7 */ { 1, { 0x000096e3 } }, /* 0x0000fac8 */ { 1, { 0x00009756 } }, /* 0x0000fac9 */ { 1, { 0x000097db } }, /* 0x0000faca */ { 1, { 0x000097ff } }, /* 0x0000facb */ { 1, { 0x0000980b } }, /* 0x0000facc */ { 1, { 0x0000983b } }, /* 0x0000facd */ { 1, { 0x00009b12 } }, /* 0x0000face */ { 1, { 0x00009f9c } }, /* 0x0000facf */ { 1, { 0x0002284a } }, /* 0x0000fad0 */ { 1, { 0x00022844 } }, /* 0x0000fad1 */ { 1, { 0x000233d5 } }, /* 0x0000fad2 */ { 1, { 0x00003b9d } }, /* 0x0000fad3 */ { 1, { 0x00004018 } }, /* 0x0000fad4 */ { 1, { 0x00004039 } }, /* 0x0000fad5 */ { 1, { 0x00025249 } }, /* 0x0000fad6 */ { 1, { 0x00025cd0 } }, /* 0x0000fad7 */ { 1, { 0x00027ed3 } }, /* 0x0000fad8 */ { 1, { 0x00009f43 } }, /* 0x0000fad9 */ { 1, { 0x00009f8e } }, /* 0x0000fada */ { 1, { 0x0000fada } }, /* 0x0000fadb */ { 1, { 0x0000fadb } }, /* 0x0000fadc */ { 1, { 0x0000fadc } }, /* 0x0000fadd */ { 1, { 0x0000fadd } }, /* 0x0000fade */ { 1, { 0x0000fade } }, /* 0x0000fadf */ { 1, { 0x0000fadf } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0000fb18[ 56 ] = { /* 0x0000fb18 */ { 1, { 0x0000fb18 } }, /* 0x0000fb19 */ { 1, { 0x0000fb19 } }, /* 0x0000fb1a */ { 1, { 0x0000fb1a } }, /* 0x0000fb1b */ { 1, { 0x0000fb1b } }, /* 0x0000fb1c */ { 1, { 0x0000fb1c } }, /* 0x0000fb1d */ { 2, { 0x000005d9, 0x000005b4 } }, /* 0x0000fb1e */ { 1, { 0x0000fb1e } }, /* 0x0000fb1f */ { 2, { 0x000005f2, 0x000005b7 } }, /* 0x0000fb20 */ { 1, { 0x0000fb20 } }, /* 0x0000fb21 */ { 1, { 0x0000fb21 } }, /* 0x0000fb22 */ { 1, { 0x0000fb22 } }, /* 0x0000fb23 */ { 1, { 0x0000fb23 } }, /* 0x0000fb24 */ { 1, { 0x0000fb24 } }, /* 0x0000fb25 */ { 1, { 0x0000fb25 } }, /* 0x0000fb26 */ { 1, { 0x0000fb26 } }, /* 0x0000fb27 */ { 1, { 0x0000fb27 } }, /* 0x0000fb28 */ { 1, { 0x0000fb28 } }, /* 0x0000fb29 */ { 1, { 0x0000fb29 } }, /* 0x0000fb2a */ { 2, { 0x000005e9, 0x000005c1 } }, /* 0x0000fb2b */ { 2, { 0x000005e9, 0x000005c2 } }, /* 0x0000fb2c */ { 3, { 0x000005e9, 0x000005bc, 0x000005c1 } }, /* 0x0000fb2d */ { 3, { 0x000005e9, 0x000005bc, 0x000005c2 } }, /* 0x0000fb2e */ { 2, { 0x000005d0, 0x000005b7 } }, /* 0x0000fb2f */ { 2, { 0x000005d0, 0x000005b8 } }, /* 0x0000fb30 */ { 2, { 0x000005d0, 0x000005bc } }, /* 0x0000fb31 */ { 2, { 0x000005d1, 0x000005bc } }, /* 0x0000fb32 */ { 2, { 0x000005d2, 0x000005bc } }, /* 0x0000fb33 */ { 2, { 0x000005d3, 0x000005bc } }, /* 0x0000fb34 */ { 2, { 0x000005d4, 0x000005bc } }, /* 0x0000fb35 */ { 2, { 0x000005d5, 0x000005bc } }, /* 0x0000fb36 */ { 2, { 0x000005d6, 0x000005bc } }, /* 0x0000fb37 */ { 1, { 0x0000fb37 } }, /* 0x0000fb38 */ { 2, { 0x000005d8, 0x000005bc } }, /* 0x0000fb39 */ { 2, { 0x000005d9, 0x000005bc } }, /* 0x0000fb3a */ { 2, { 0x000005da, 0x000005bc } }, /* 0x0000fb3b */ { 2, { 0x000005db, 0x000005bc } }, /* 0x0000fb3c */ { 2, { 0x000005dc, 0x000005bc } }, /* 0x0000fb3d */ { 1, { 0x0000fb3d } }, /* 0x0000fb3e */ { 2, { 0x000005de, 0x000005bc } }, /* 0x0000fb3f */ { 1, { 0x0000fb3f } }, /* 0x0000fb40 */ { 2, { 0x000005e0, 0x000005bc } }, /* 0x0000fb41 */ { 2, { 0x000005e1, 0x000005bc } }, /* 0x0000fb42 */ { 1, { 0x0000fb42 } }, /* 0x0000fb43 */ { 2, { 0x000005e3, 0x000005bc } }, /* 0x0000fb44 */ { 2, { 0x000005e4, 0x000005bc } }, /* 0x0000fb45 */ { 1, { 0x0000fb45 } }, /* 0x0000fb46 */ { 2, { 0x000005e6, 0x000005bc } }, /* 0x0000fb47 */ { 2, { 0x000005e7, 0x000005bc } }, /* 0x0000fb48 */ { 2, { 0x000005e8, 0x000005bc } }, /* 0x0000fb49 */ { 2, { 0x000005e9, 0x000005bc } }, /* 0x0000fb4a */ { 2, { 0x000005ea, 0x000005bc } }, /* 0x0000fb4b */ { 2, { 0x000005d5, 0x000005b9 } }, /* 0x0000fb4c */ { 2, { 0x000005d1, 0x000005bf } }, /* 0x0000fb4d */ { 2, { 0x000005db, 0x000005bf } }, /* 0x0000fb4e */ { 2, { 0x000005e4, 0x000005bf } }, /* 0x0000fb4f */ { 1, { 0x0000fb4f } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00011098[ 24 ] = { /* 0x00011098 */ { 1, { 0x00011098 } }, /* 0x00011099 */ { 1, { 0x00011099 } }, /* 0x0001109a */ { 2, { 0x00011099, 0x000110ba } }, /* 0x0001109b */ { 1, { 0x0001109b } }, /* 0x0001109c */ { 2, { 0x0001109b, 0x000110ba } }, /* 0x0001109d */ { 1, { 0x0001109d } }, /* 0x0001109e */ { 1, { 0x0001109e } }, /* 0x0001109f */ { 1, { 0x0001109f } }, /* 0x000110a0 */ { 1, { 0x000110a0 } }, /* 0x000110a1 */ { 1, { 0x000110a1 } }, /* 0x000110a2 */ { 1, { 0x000110a2 } }, /* 0x000110a3 */ { 1, { 0x000110a3 } }, /* 0x000110a4 */ { 1, { 0x000110a4 } }, /* 0x000110a5 */ { 1, { 0x000110a5 } }, /* 0x000110a6 */ { 1, { 0x000110a6 } }, /* 0x000110a7 */ { 1, { 0x000110a7 } }, /* 0x000110a8 */ { 1, { 0x000110a8 } }, /* 0x000110a9 */ { 1, { 0x000110a9 } }, /* 0x000110aa */ { 1, { 0x000110aa } }, /* 0x000110ab */ { 2, { 0x000110a5, 0x000110ba } }, /* 0x000110ac */ { 1, { 0x000110ac } }, /* 0x000110ad */ { 1, { 0x000110ad } }, /* 0x000110ae */ { 1, { 0x000110ae } }, /* 0x000110af */ { 1, { 0x000110af } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00011128[ 8 ] = { /* 0x00011128 */ { 1, { 0x00011128 } }, /* 0x00011129 */ { 1, { 0x00011129 } }, /* 0x0001112a */ { 1, { 0x0001112a } }, /* 0x0001112b */ { 1, { 0x0001112b } }, /* 0x0001112c */ { 1, { 0x0001112c } }, /* 0x0001112d */ { 1, { 0x0001112d } }, /* 0x0001112e */ { 2, { 0x00011131, 0x00011127 } }, /* 0x0001112f */ { 2, { 0x00011132, 0x00011127 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00011348[ 8 ] = { /* 0x00011348 */ { 1, { 0x00011348 } }, /* 0x00011349 */ { 1, { 0x00011349 } }, /* 0x0001134a */ { 1, { 0x0001134a } }, /* 0x0001134b */ { 2, { 0x00011347, 0x0001133e } }, /* 0x0001134c */ { 2, { 0x00011347, 0x00011357 } }, /* 0x0001134d */ { 1, { 0x0001134d } }, /* 0x0001134e */ { 1, { 0x0001134e } }, /* 0x0001134f */ { 1, { 0x0001134f } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000114b8[ 8 ] = { /* 0x000114b8 */ { 1, { 0x000114b8 } }, /* 0x000114b9 */ { 1, { 0x000114b9 } }, /* 0x000114ba */ { 1, { 0x000114ba } }, /* 0x000114bb */ { 2, { 0x000114b9, 0x000114ba } }, /* 0x000114bc */ { 2, { 0x000114b9, 0x000114b0 } }, /* 0x000114bd */ { 1, { 0x000114bd } }, /* 0x000114be */ { 2, { 0x000114b9, 0x000114bd } }, /* 0x000114bf */ { 1, { 0x000114bf } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000115b8[ 8 ] = { /* 0x000115b8 */ { 1, { 0x000115b8 } }, /* 0x000115b9 */ { 1, { 0x000115b9 } }, /* 0x000115ba */ { 2, { 0x000115b8, 0x000115af } }, /* 0x000115bb */ { 2, { 0x000115b9, 0x000115af } }, /* 0x000115bc */ { 1, { 0x000115bc } }, /* 0x000115bd */ { 1, { 0x000115bd } }, /* 0x000115be */ { 1, { 0x000115be } }, /* 0x000115bf */ { 1, { 0x000115bf } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0001d158[ 16 ] = { /* 0x0001d158 */ { 1, { 0x0001d158 } }, /* 0x0001d159 */ { 1, { 0x0001d159 } }, /* 0x0001d15a */ { 1, { 0x0001d15a } }, /* 0x0001d15b */ { 1, { 0x0001d15b } }, /* 0x0001d15c */ { 1, { 0x0001d15c } }, /* 0x0001d15d */ { 1, { 0x0001d15d } }, /* 0x0001d15e */ { 2, { 0x0001d157, 0x0001d165 } }, /* 0x0001d15f */ { 2, { 0x0001d158, 0x0001d165 } }, /* 0x0001d160 */ { 3, { 0x0001d158, 0x0001d165, 0x0001d16e } }, /* 0x0001d161 */ { 3, { 0x0001d158, 0x0001d165, 0x0001d16f } }, /* 0x0001d162 */ { 3, { 0x0001d158, 0x0001d165, 0x0001d170 } }, /* 0x0001d163 */ { 3, { 0x0001d158, 0x0001d165, 0x0001d171 } }, /* 0x0001d164 */ { 3, { 0x0001d158, 0x0001d165, 0x0001d172 } }, /* 0x0001d165 */ { 1, { 0x0001d165 } }, /* 0x0001d166 */ { 1, { 0x0001d166 } }, /* 0x0001d167 */ { 1, { 0x0001d167 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0001d1b8[ 16 ] = { /* 0x0001d1b8 */ { 1, { 0x0001d1b8 } }, /* 0x0001d1b9 */ { 1, { 0x0001d1b9 } }, /* 0x0001d1ba */ { 1, { 0x0001d1ba } }, /* 0x0001d1bb */ { 2, { 0x0001d1b9, 0x0001d165 } }, /* 0x0001d1bc */ { 2, { 0x0001d1ba, 0x0001d165 } }, /* 0x0001d1bd */ { 3, { 0x0001d1b9, 0x0001d165, 0x0001d16e } }, /* 0x0001d1be */ { 3, { 0x0001d1ba, 0x0001d165, 0x0001d16e } }, /* 0x0001d1bf */ { 3, { 0x0001d1b9, 0x0001d165, 0x0001d16f } }, /* 0x0001d1c0 */ { 3, { 0x0001d1ba, 0x0001d165, 0x0001d16f } }, /* 0x0001d1c1 */ { 1, { 0x0001d1c1 } }, /* 0x0001d1c2 */ { 1, { 0x0001d1c2 } }, /* 0x0001d1c3 */ { 1, { 0x0001d1c3 } }, /* 0x0001d1c4 */ { 1, { 0x0001d1c4 } }, /* 0x0001d1c5 */ { 1, { 0x0001d1c5 } }, /* 0x0001d1c6 */ { 1, { 0x0001d1c6 } }, /* 0x0001d1c7 */ { 1, { 0x0001d1c7 } } }; libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0002f800[ 544 ] = { /* 0x0002f800 */ { 1, { 0x00004e3d } }, /* 0x0002f801 */ { 1, { 0x00004e38 } }, /* 0x0002f802 */ { 1, { 0x00004e41 } }, /* 0x0002f803 */ { 1, { 0x00020122 } }, /* 0x0002f804 */ { 1, { 0x00004f60 } }, /* 0x0002f805 */ { 1, { 0x00004fae } }, /* 0x0002f806 */ { 1, { 0x00004fbb } }, /* 0x0002f807 */ { 1, { 0x00005002 } }, /* 0x0002f808 */ { 1, { 0x0000507a } }, /* 0x0002f809 */ { 1, { 0x00005099 } }, /* 0x0002f80a */ { 1, { 0x000050e7 } }, /* 0x0002f80b */ { 1, { 0x000050cf } }, /* 0x0002f80c */ { 1, { 0x0000349e } }, /* 0x0002f80d */ { 1, { 0x0002063a } }, /* 0x0002f80e */ { 1, { 0x0000514d } }, /* 0x0002f80f */ { 1, { 0x00005154 } }, /* 0x0002f810 */ { 1, { 0x00005164 } }, /* 0x0002f811 */ { 1, { 0x00005177 } }, /* 0x0002f812 */ { 1, { 0x0002051c } }, /* 0x0002f813 */ { 1, { 0x000034b9 } }, /* 0x0002f814 */ { 1, { 0x00005167 } }, /* 0x0002f815 */ { 1, { 0x0000518d } }, /* 0x0002f816 */ { 1, { 0x0002054b } }, /* 0x0002f817 */ { 1, { 0x00005197 } }, /* 0x0002f818 */ { 1, { 0x000051a4 } }, /* 0x0002f819 */ { 1, { 0x00004ecc } }, /* 0x0002f81a */ { 1, { 0x000051ac } }, /* 0x0002f81b */ { 1, { 0x000051b5 } }, /* 0x0002f81c */ { 1, { 0x000291df } }, /* 0x0002f81d */ { 1, { 0x000051f5 } }, /* 0x0002f81e */ { 1, { 0x00005203 } }, /* 0x0002f81f */ { 1, { 0x000034df } }, /* 0x0002f820 */ { 1, { 0x0000523b } }, /* 0x0002f821 */ { 1, { 0x00005246 } }, /* 0x0002f822 */ { 1, { 0x00005272 } }, /* 0x0002f823 */ { 1, { 0x00005277 } }, /* 0x0002f824 */ { 1, { 0x00003515 } }, /* 0x0002f825 */ { 1, { 0x000052c7 } }, /* 0x0002f826 */ { 1, { 0x000052c9 } }, /* 0x0002f827 */ { 1, { 0x000052e4 } }, /* 0x0002f828 */ { 1, { 0x000052fa } }, /* 0x0002f829 */ { 1, { 0x00005305 } }, /* 0x0002f82a */ { 1, { 0x00005306 } }, /* 0x0002f82b */ { 1, { 0x00005317 } }, /* 0x0002f82c */ { 1, { 0x00005349 } }, /* 0x0002f82d */ { 1, { 0x00005351 } }, /* 0x0002f82e */ { 1, { 0x0000535a } }, /* 0x0002f82f */ { 1, { 0x00005373 } }, /* 0x0002f830 */ { 1, { 0x0000537d } }, /* 0x0002f831 */ { 1, { 0x0000537f } }, /* 0x0002f832 */ { 1, { 0x0000537f } }, /* 0x0002f833 */ { 1, { 0x0000537f } }, /* 0x0002f834 */ { 1, { 0x00020a2c } }, /* 0x0002f835 */ { 1, { 0x00007070 } }, /* 0x0002f836 */ { 1, { 0x000053ca } }, /* 0x0002f837 */ { 1, { 0x000053df } }, /* 0x0002f838 */ { 1, { 0x00020b63 } }, /* 0x0002f839 */ { 1, { 0x000053eb } }, /* 0x0002f83a */ { 1, { 0x000053f1 } }, /* 0x0002f83b */ { 1, { 0x00005406 } }, /* 0x0002f83c */ { 1, { 0x0000549e } }, /* 0x0002f83d */ { 1, { 0x00005438 } }, /* 0x0002f83e */ { 1, { 0x00005448 } }, /* 0x0002f83f */ { 1, { 0x00005468 } }, /* 0x0002f840 */ { 1, { 0x000054a2 } }, /* 0x0002f841 */ { 1, { 0x000054f6 } }, /* 0x0002f842 */ { 1, { 0x00005510 } }, /* 0x0002f843 */ { 1, { 0x00005553 } }, /* 0x0002f844 */ { 1, { 0x00005563 } }, /* 0x0002f845 */ { 1, { 0x00005584 } }, /* 0x0002f846 */ { 1, { 0x00005584 } }, /* 0x0002f847 */ { 1, { 0x00005599 } }, /* 0x0002f848 */ { 1, { 0x000055ab } }, /* 0x0002f849 */ { 1, { 0x000055b3 } }, /* 0x0002f84a */ { 1, { 0x000055c2 } }, /* 0x0002f84b */ { 1, { 0x00005716 } }, /* 0x0002f84c */ { 1, { 0x00005606 } }, /* 0x0002f84d */ { 1, { 0x00005717 } }, /* 0x0002f84e */ { 1, { 0x00005651 } }, /* 0x0002f84f */ { 1, { 0x00005674 } }, /* 0x0002f850 */ { 1, { 0x00005207 } }, /* 0x0002f851 */ { 1, { 0x000058ee } }, /* 0x0002f852 */ { 1, { 0x000057ce } }, /* 0x0002f853 */ { 1, { 0x000057f4 } }, /* 0x0002f854 */ { 1, { 0x0000580d } }, /* 0x0002f855 */ { 1, { 0x0000578b } }, /* 0x0002f856 */ { 1, { 0x00005832 } }, /* 0x0002f857 */ { 1, { 0x00005831 } }, /* 0x0002f858 */ { 1, { 0x000058ac } }, /* 0x0002f859 */ { 1, { 0x000214e4 } }, /* 0x0002f85a */ { 1, { 0x000058f2 } }, /* 0x0002f85b */ { 1, { 0x000058f7 } }, /* 0x0002f85c */ { 1, { 0x00005906 } }, /* 0x0002f85d */ { 1, { 0x0000591a } }, /* 0x0002f85e */ { 1, { 0x00005922 } }, /* 0x0002f85f */ { 1, { 0x00005962 } }, /* 0x0002f860 */ { 1, { 0x000216a8 } }, /* 0x0002f861 */ { 1, { 0x000216ea } }, /* 0x0002f862 */ { 1, { 0x000059ec } }, /* 0x0002f863 */ { 1, { 0x00005a1b } }, /* 0x0002f864 */ { 1, { 0x00005a27 } }, /* 0x0002f865 */ { 1, { 0x000059d8 } }, /* 0x0002f866 */ { 1, { 0x00005a66 } }, /* 0x0002f867 */ { 1, { 0x000036ee } }, /* 0x0002f868 */ { 1, { 0x000036fc } }, /* 0x0002f869 */ { 1, { 0x00005b08 } }, /* 0x0002f86a */ { 1, { 0x00005b3e } }, /* 0x0002f86b */ { 1, { 0x00005b3e } }, /* 0x0002f86c */ { 1, { 0x000219c8 } }, /* 0x0002f86d */ { 1, { 0x00005bc3 } }, /* 0x0002f86e */ { 1, { 0x00005bd8 } }, /* 0x0002f86f */ { 1, { 0x00005be7 } }, /* 0x0002f870 */ { 1, { 0x00005bf3 } }, /* 0x0002f871 */ { 1, { 0x00021b18 } }, /* 0x0002f872 */ { 1, { 0x00005bff } }, /* 0x0002f873 */ { 1, { 0x00005c06 } }, /* 0x0002f874 */ { 1, { 0x00005f53 } }, /* 0x0002f875 */ { 1, { 0x00005c22 } }, /* 0x0002f876 */ { 1, { 0x00003781 } }, /* 0x0002f877 */ { 1, { 0x00005c60 } }, /* 0x0002f878 */ { 1, { 0x00005c6e } }, /* 0x0002f879 */ { 1, { 0x00005cc0 } }, /* 0x0002f87a */ { 1, { 0x00005c8d } }, /* 0x0002f87b */ { 1, { 0x00021de4 } }, /* 0x0002f87c */ { 1, { 0x00005d43 } }, /* 0x0002f87d */ { 1, { 0x00021de6 } }, /* 0x0002f87e */ { 1, { 0x00005d6e } }, /* 0x0002f87f */ { 1, { 0x00005d6b } }, /* 0x0002f880 */ { 1, { 0x00005d7c } }, /* 0x0002f881 */ { 1, { 0x00005de1 } }, /* 0x0002f882 */ { 1, { 0x00005de2 } }, /* 0x0002f883 */ { 1, { 0x0000382f } }, /* 0x0002f884 */ { 1, { 0x00005dfd } }, /* 0x0002f885 */ { 1, { 0x00005e28 } }, /* 0x0002f886 */ { 1, { 0x00005e3d } }, /* 0x0002f887 */ { 1, { 0x00005e69 } }, /* 0x0002f888 */ { 1, { 0x00003862 } }, /* 0x0002f889 */ { 1, { 0x00022183 } }, /* 0x0002f88a */ { 1, { 0x0000387c } }, /* 0x0002f88b */ { 1, { 0x00005eb0 } }, /* 0x0002f88c */ { 1, { 0x00005eb3 } }, /* 0x0002f88d */ { 1, { 0x00005eb6 } }, /* 0x0002f88e */ { 1, { 0x00005eca } }, /* 0x0002f88f */ { 1, { 0x0002a392 } }, /* 0x0002f890 */ { 1, { 0x00005efe } }, /* 0x0002f891 */ { 1, { 0x00022331 } }, /* 0x0002f892 */ { 1, { 0x00022331 } }, /* 0x0002f893 */ { 1, { 0x00008201 } }, /* 0x0002f894 */ { 1, { 0x00005f22 } }, /* 0x0002f895 */ { 1, { 0x00005f22 } }, /* 0x0002f896 */ { 1, { 0x000038c7 } }, /* 0x0002f897 */ { 1, { 0x000232b8 } }, /* 0x0002f898 */ { 1, { 0x000261da } }, /* 0x0002f899 */ { 1, { 0x00005f62 } }, /* 0x0002f89a */ { 1, { 0x00005f6b } }, /* 0x0002f89b */ { 1, { 0x000038e3 } }, /* 0x0002f89c */ { 1, { 0x00005f9a } }, /* 0x0002f89d */ { 1, { 0x00005fcd } }, /* 0x0002f89e */ { 1, { 0x00005fd7 } }, /* 0x0002f89f */ { 1, { 0x00005ff9 } }, /* 0x0002f8a0 */ { 1, { 0x00006081 } }, /* 0x0002f8a1 */ { 1, { 0x0000393a } }, /* 0x0002f8a2 */ { 1, { 0x0000391c } }, /* 0x0002f8a3 */ { 1, { 0x00006094 } }, /* 0x0002f8a4 */ { 1, { 0x000226d4 } }, /* 0x0002f8a5 */ { 1, { 0x000060c7 } }, /* 0x0002f8a6 */ { 1, { 0x00006148 } }, /* 0x0002f8a7 */ { 1, { 0x0000614c } }, /* 0x0002f8a8 */ { 1, { 0x0000614e } }, /* 0x0002f8a9 */ { 1, { 0x0000614c } }, /* 0x0002f8aa */ { 1, { 0x0000617a } }, /* 0x0002f8ab */ { 1, { 0x0000618e } }, /* 0x0002f8ac */ { 1, { 0x000061b2 } }, /* 0x0002f8ad */ { 1, { 0x000061a4 } }, /* 0x0002f8ae */ { 1, { 0x000061af } }, /* 0x0002f8af */ { 1, { 0x000061de } }, /* 0x0002f8b0 */ { 1, { 0x000061f2 } }, /* 0x0002f8b1 */ { 1, { 0x000061f6 } }, /* 0x0002f8b2 */ { 1, { 0x00006210 } }, /* 0x0002f8b3 */ { 1, { 0x0000621b } }, /* 0x0002f8b4 */ { 1, { 0x0000625d } }, /* 0x0002f8b5 */ { 1, { 0x000062b1 } }, /* 0x0002f8b6 */ { 1, { 0x000062d4 } }, /* 0x0002f8b7 */ { 1, { 0x00006350 } }, /* 0x0002f8b8 */ { 1, { 0x00022b0c } }, /* 0x0002f8b9 */ { 1, { 0x0000633d } }, /* 0x0002f8ba */ { 1, { 0x000062fc } }, /* 0x0002f8bb */ { 1, { 0x00006368 } }, /* 0x0002f8bc */ { 1, { 0x00006383 } }, /* 0x0002f8bd */ { 1, { 0x000063e4 } }, /* 0x0002f8be */ { 1, { 0x00022bf1 } }, /* 0x0002f8bf */ { 1, { 0x00006422 } }, /* 0x0002f8c0 */ { 1, { 0x000063c5 } }, /* 0x0002f8c1 */ { 1, { 0x000063a9 } }, /* 0x0002f8c2 */ { 1, { 0x00003a2e } }, /* 0x0002f8c3 */ { 1, { 0x00006469 } }, /* 0x0002f8c4 */ { 1, { 0x0000647e } }, /* 0x0002f8c5 */ { 1, { 0x0000649d } }, /* 0x0002f8c6 */ { 1, { 0x00006477 } }, /* 0x0002f8c7 */ { 1, { 0x00003a6c } }, /* 0x0002f8c8 */ { 1, { 0x0000654f } }, /* 0x0002f8c9 */ { 1, { 0x0000656c } }, /* 0x0002f8ca */ { 1, { 0x0002300a } }, /* 0x0002f8cb */ { 1, { 0x000065e3 } }, /* 0x0002f8cc */ { 1, { 0x000066f8 } }, /* 0x0002f8cd */ { 1, { 0x00006649 } }, /* 0x0002f8ce */ { 1, { 0x00003b19 } }, /* 0x0002f8cf */ { 1, { 0x00006691 } }, /* 0x0002f8d0 */ { 1, { 0x00003b08 } }, /* 0x0002f8d1 */ { 1, { 0x00003ae4 } }, /* 0x0002f8d2 */ { 1, { 0x00005192 } }, /* 0x0002f8d3 */ { 1, { 0x00005195 } }, /* 0x0002f8d4 */ { 1, { 0x00006700 } }, /* 0x0002f8d5 */ { 1, { 0x0000669c } }, /* 0x0002f8d6 */ { 1, { 0x000080ad } }, /* 0x0002f8d7 */ { 1, { 0x000043d9 } }, /* 0x0002f8d8 */ { 1, { 0x00006717 } }, /* 0x0002f8d9 */ { 1, { 0x0000671b } }, /* 0x0002f8da */ { 1, { 0x00006721 } }, /* 0x0002f8db */ { 1, { 0x0000675e } }, /* 0x0002f8dc */ { 1, { 0x00006753 } }, /* 0x0002f8dd */ { 1, { 0x000233c3 } }, /* 0x0002f8de */ { 1, { 0x00003b49 } }, /* 0x0002f8df */ { 1, { 0x000067fa } }, /* 0x0002f8e0 */ { 1, { 0x00006785 } }, /* 0x0002f8e1 */ { 1, { 0x00006852 } }, /* 0x0002f8e2 */ { 1, { 0x00006885 } }, /* 0x0002f8e3 */ { 1, { 0x0002346d } }, /* 0x0002f8e4 */ { 1, { 0x0000688e } }, /* 0x0002f8e5 */ { 1, { 0x0000681f } }, /* 0x0002f8e6 */ { 1, { 0x00006914 } }, /* 0x0002f8e7 */ { 1, { 0x00003b9d } }, /* 0x0002f8e8 */ { 1, { 0x00006942 } }, /* 0x0002f8e9 */ { 1, { 0x000069a3 } }, /* 0x0002f8ea */ { 1, { 0x000069ea } }, /* 0x0002f8eb */ { 1, { 0x00006aa8 } }, /* 0x0002f8ec */ { 1, { 0x000236a3 } }, /* 0x0002f8ed */ { 1, { 0x00006adb } }, /* 0x0002f8ee */ { 1, { 0x00003c18 } }, /* 0x0002f8ef */ { 1, { 0x00006b21 } }, /* 0x0002f8f0 */ { 1, { 0x000238a7 } }, /* 0x0002f8f1 */ { 1, { 0x00006b54 } }, /* 0x0002f8f2 */ { 1, { 0x00003c4e } }, /* 0x0002f8f3 */ { 1, { 0x00006b72 } }, /* 0x0002f8f4 */ { 1, { 0x00006b9f } }, /* 0x0002f8f5 */ { 1, { 0x00006bba } }, /* 0x0002f8f6 */ { 1, { 0x00006bbb } }, /* 0x0002f8f7 */ { 1, { 0x00023a8d } }, /* 0x0002f8f8 */ { 1, { 0x00021d0b } }, /* 0x0002f8f9 */ { 1, { 0x00023afa } }, /* 0x0002f8fa */ { 1, { 0x00006c4e } }, /* 0x0002f8fb */ { 1, { 0x00023cbc } }, /* 0x0002f8fc */ { 1, { 0x00006cbf } }, /* 0x0002f8fd */ { 1, { 0x00006ccd } }, /* 0x0002f8fe */ { 1, { 0x00006c67 } }, /* 0x0002f8ff */ { 1, { 0x00006d16 } }, /* 0x0002f900 */ { 1, { 0x00006d3e } }, /* 0x0002f901 */ { 1, { 0x00006d77 } }, /* 0x0002f902 */ { 1, { 0x00006d41 } }, /* 0x0002f903 */ { 1, { 0x00006d69 } }, /* 0x0002f904 */ { 1, { 0x00006d78 } }, /* 0x0002f905 */ { 1, { 0x00006d85 } }, /* 0x0002f906 */ { 1, { 0x00023d1e } }, /* 0x0002f907 */ { 1, { 0x00006d34 } }, /* 0x0002f908 */ { 1, { 0x00006e2f } }, /* 0x0002f909 */ { 1, { 0x00006e6e } }, /* 0x0002f90a */ { 1, { 0x00003d33 } }, /* 0x0002f90b */ { 1, { 0x00006ecb } }, /* 0x0002f90c */ { 1, { 0x00006ec7 } }, /* 0x0002f90d */ { 1, { 0x00023ed1 } }, /* 0x0002f90e */ { 1, { 0x00006df9 } }, /* 0x0002f90f */ { 1, { 0x00006f6e } }, /* 0x0002f910 */ { 1, { 0x00023f5e } }, /* 0x0002f911 */ { 1, { 0x00023f8e } }, /* 0x0002f912 */ { 1, { 0x00006fc6 } }, /* 0x0002f913 */ { 1, { 0x00007039 } }, /* 0x0002f914 */ { 1, { 0x0000701e } }, /* 0x0002f915 */ { 1, { 0x0000701b } }, /* 0x0002f916 */ { 1, { 0x00003d96 } }, /* 0x0002f917 */ { 1, { 0x0000704a } }, /* 0x0002f918 */ { 1, { 0x0000707d } }, /* 0x0002f919 */ { 1, { 0x00007077 } }, /* 0x0002f91a */ { 1, { 0x000070ad } }, /* 0x0002f91b */ { 1, { 0x00020525 } }, /* 0x0002f91c */ { 1, { 0x00007145 } }, /* 0x0002f91d */ { 1, { 0x00024263 } }, /* 0x0002f91e */ { 1, { 0x0000719c } }, /* 0x0002f91f */ { 1, { 0x000243ab } }, /* 0x0002f920 */ { 1, { 0x00007228 } }, /* 0x0002f921 */ { 1, { 0x00007235 } }, /* 0x0002f922 */ { 1, { 0x00007250 } }, /* 0x0002f923 */ { 1, { 0x00024608 } }, /* 0x0002f924 */ { 1, { 0x00007280 } }, /* 0x0002f925 */ { 1, { 0x00007295 } }, /* 0x0002f926 */ { 1, { 0x00024735 } }, /* 0x0002f927 */ { 1, { 0x00024814 } }, /* 0x0002f928 */ { 1, { 0x0000737a } }, /* 0x0002f929 */ { 1, { 0x0000738b } }, /* 0x0002f92a */ { 1, { 0x00003eac } }, /* 0x0002f92b */ { 1, { 0x000073a5 } }, /* 0x0002f92c */ { 1, { 0x00003eb8 } }, /* 0x0002f92d */ { 1, { 0x00003eb8 } }, /* 0x0002f92e */ { 1, { 0x00007447 } }, /* 0x0002f92f */ { 1, { 0x0000745c } }, /* 0x0002f930 */ { 1, { 0x00007471 } }, /* 0x0002f931 */ { 1, { 0x00007485 } }, /* 0x0002f932 */ { 1, { 0x000074ca } }, /* 0x0002f933 */ { 1, { 0x00003f1b } }, /* 0x0002f934 */ { 1, { 0x00007524 } }, /* 0x0002f935 */ { 1, { 0x00024c36 } }, /* 0x0002f936 */ { 1, { 0x0000753e } }, /* 0x0002f937 */ { 1, { 0x00024c92 } }, /* 0x0002f938 */ { 1, { 0x00007570 } }, /* 0x0002f939 */ { 1, { 0x0002219f } }, /* 0x0002f93a */ { 1, { 0x00007610 } }, /* 0x0002f93b */ { 1, { 0x00024fa1 } }, /* 0x0002f93c */ { 1, { 0x00024fb8 } }, /* 0x0002f93d */ { 1, { 0x00025044 } }, /* 0x0002f93e */ { 1, { 0x00003ffc } }, /* 0x0002f93f */ { 1, { 0x00004008 } }, /* 0x0002f940 */ { 1, { 0x000076f4 } }, /* 0x0002f941 */ { 1, { 0x000250f3 } }, /* 0x0002f942 */ { 1, { 0x000250f2 } }, /* 0x0002f943 */ { 1, { 0x00025119 } }, /* 0x0002f944 */ { 1, { 0x00025133 } }, /* 0x0002f945 */ { 1, { 0x0000771e } }, /* 0x0002f946 */ { 1, { 0x0000771f } }, /* 0x0002f947 */ { 1, { 0x0000771f } }, /* 0x0002f948 */ { 1, { 0x0000774a } }, /* 0x0002f949 */ { 1, { 0x00004039 } }, /* 0x0002f94a */ { 1, { 0x0000778b } }, /* 0x0002f94b */ { 1, { 0x00004046 } }, /* 0x0002f94c */ { 1, { 0x00004096 } }, /* 0x0002f94d */ { 1, { 0x0002541d } }, /* 0x0002f94e */ { 1, { 0x0000784e } }, /* 0x0002f94f */ { 1, { 0x0000788c } }, /* 0x0002f950 */ { 1, { 0x000078cc } }, /* 0x0002f951 */ { 1, { 0x000040e3 } }, /* 0x0002f952 */ { 1, { 0x00025626 } }, /* 0x0002f953 */ { 1, { 0x00007956 } }, /* 0x0002f954 */ { 1, { 0x0002569a } }, /* 0x0002f955 */ { 1, { 0x000256c5 } }, /* 0x0002f956 */ { 1, { 0x0000798f } }, /* 0x0002f957 */ { 1, { 0x000079eb } }, /* 0x0002f958 */ { 1, { 0x0000412f } }, /* 0x0002f959 */ { 1, { 0x00007a40 } }, /* 0x0002f95a */ { 1, { 0x00007a4a } }, /* 0x0002f95b */ { 1, { 0x00007a4f } }, /* 0x0002f95c */ { 1, { 0x0002597c } }, /* 0x0002f95d */ { 1, { 0x00025aa7 } }, /* 0x0002f95e */ { 1, { 0x00025aa7 } }, /* 0x0002f95f */ { 1, { 0x00007aee } }, /* 0x0002f960 */ { 1, { 0x00004202 } }, /* 0x0002f961 */ { 1, { 0x00025bab } }, /* 0x0002f962 */ { 1, { 0x00007bc6 } }, /* 0x0002f963 */ { 1, { 0x00007bc9 } }, /* 0x0002f964 */ { 1, { 0x00004227 } }, /* 0x0002f965 */ { 1, { 0x00025c80 } }, /* 0x0002f966 */ { 1, { 0x00007cd2 } }, /* 0x0002f967 */ { 1, { 0x000042a0 } }, /* 0x0002f968 */ { 1, { 0x00007ce8 } }, /* 0x0002f969 */ { 1, { 0x00007ce3 } }, /* 0x0002f96a */ { 1, { 0x00007d00 } }, /* 0x0002f96b */ { 1, { 0x00025f86 } }, /* 0x0002f96c */ { 1, { 0x00007d63 } }, /* 0x0002f96d */ { 1, { 0x00004301 } }, /* 0x0002f96e */ { 1, { 0x00007dc7 } }, /* 0x0002f96f */ { 1, { 0x00007e02 } }, /* 0x0002f970 */ { 1, { 0x00007e45 } }, /* 0x0002f971 */ { 1, { 0x00004334 } }, /* 0x0002f972 */ { 1, { 0x00026228 } }, /* 0x0002f973 */ { 1, { 0x00026247 } }, /* 0x0002f974 */ { 1, { 0x00004359 } }, /* 0x0002f975 */ { 1, { 0x000262d9 } }, /* 0x0002f976 */ { 1, { 0x00007f7a } }, /* 0x0002f977 */ { 1, { 0x0002633e } }, /* 0x0002f978 */ { 1, { 0x00007f95 } }, /* 0x0002f979 */ { 1, { 0x00007ffa } }, /* 0x0002f97a */ { 1, { 0x00008005 } }, /* 0x0002f97b */ { 1, { 0x000264da } }, /* 0x0002f97c */ { 1, { 0x00026523 } }, /* 0x0002f97d */ { 1, { 0x00008060 } }, /* 0x0002f97e */ { 1, { 0x000265a8 } }, /* 0x0002f97f */ { 1, { 0x00008070 } }, /* 0x0002f980 */ { 1, { 0x0002335f } }, /* 0x0002f981 */ { 1, { 0x000043d5 } }, /* 0x0002f982 */ { 1, { 0x000080b2 } }, /* 0x0002f983 */ { 1, { 0x00008103 } }, /* 0x0002f984 */ { 1, { 0x0000440b } }, /* 0x0002f985 */ { 1, { 0x0000813e } }, /* 0x0002f986 */ { 1, { 0x00005ab5 } }, /* 0x0002f987 */ { 1, { 0x000267a7 } }, /* 0x0002f988 */ { 1, { 0x000267b5 } }, /* 0x0002f989 */ { 1, { 0x00023393 } }, /* 0x0002f98a */ { 1, { 0x0002339c } }, /* 0x0002f98b */ { 1, { 0x00008201 } }, /* 0x0002f98c */ { 1, { 0x00008204 } }, /* 0x0002f98d */ { 1, { 0x00008f9e } }, /* 0x0002f98e */ { 1, { 0x0000446b } }, /* 0x0002f98f */ { 1, { 0x00008291 } }, /* 0x0002f990 */ { 1, { 0x0000828b } }, /* 0x0002f991 */ { 1, { 0x0000829d } }, /* 0x0002f992 */ { 1, { 0x000052b3 } }, /* 0x0002f993 */ { 1, { 0x000082b1 } }, /* 0x0002f994 */ { 1, { 0x000082b3 } }, /* 0x0002f995 */ { 1, { 0x000082bd } }, /* 0x0002f996 */ { 1, { 0x000082e6 } }, /* 0x0002f997 */ { 1, { 0x00026b3c } }, /* 0x0002f998 */ { 1, { 0x000082e5 } }, /* 0x0002f999 */ { 1, { 0x0000831d } }, /* 0x0002f99a */ { 1, { 0x00008363 } }, /* 0x0002f99b */ { 1, { 0x000083ad } }, /* 0x0002f99c */ { 1, { 0x00008323 } }, /* 0x0002f99d */ { 1, { 0x000083bd } }, /* 0x0002f99e */ { 1, { 0x000083e7 } }, /* 0x0002f99f */ { 1, { 0x00008457 } }, /* 0x0002f9a0 */ { 1, { 0x00008353 } }, /* 0x0002f9a1 */ { 1, { 0x000083ca } }, /* 0x0002f9a2 */ { 1, { 0x000083cc } }, /* 0x0002f9a3 */ { 1, { 0x000083dc } }, /* 0x0002f9a4 */ { 1, { 0x00026c36 } }, /* 0x0002f9a5 */ { 1, { 0x00026d6b } }, /* 0x0002f9a6 */ { 1, { 0x00026cd5 } }, /* 0x0002f9a7 */ { 1, { 0x0000452b } }, /* 0x0002f9a8 */ { 1, { 0x000084f1 } }, /* 0x0002f9a9 */ { 1, { 0x000084f3 } }, /* 0x0002f9aa */ { 1, { 0x00008516 } }, /* 0x0002f9ab */ { 1, { 0x000273ca } }, /* 0x0002f9ac */ { 1, { 0x00008564 } }, /* 0x0002f9ad */ { 1, { 0x00026f2c } }, /* 0x0002f9ae */ { 1, { 0x0000455d } }, /* 0x0002f9af */ { 1, { 0x00004561 } }, /* 0x0002f9b0 */ { 1, { 0x00026fb1 } }, /* 0x0002f9b1 */ { 1, { 0x000270d2 } }, /* 0x0002f9b2 */ { 1, { 0x0000456b } }, /* 0x0002f9b3 */ { 1, { 0x00008650 } }, /* 0x0002f9b4 */ { 1, { 0x0000865c } }, /* 0x0002f9b5 */ { 1, { 0x00008667 } }, /* 0x0002f9b6 */ { 1, { 0x00008669 } }, /* 0x0002f9b7 */ { 1, { 0x000086a9 } }, /* 0x0002f9b8 */ { 1, { 0x00008688 } }, /* 0x0002f9b9 */ { 1, { 0x0000870e } }, /* 0x0002f9ba */ { 1, { 0x000086e2 } }, /* 0x0002f9bb */ { 1, { 0x00008779 } }, /* 0x0002f9bc */ { 1, { 0x00008728 } }, /* 0x0002f9bd */ { 1, { 0x0000876b } }, /* 0x0002f9be */ { 1, { 0x00008786 } }, /* 0x0002f9bf */ { 1, { 0x000045d7 } }, /* 0x0002f9c0 */ { 1, { 0x000087e1 } }, /* 0x0002f9c1 */ { 1, { 0x00008801 } }, /* 0x0002f9c2 */ { 1, { 0x000045f9 } }, /* 0x0002f9c3 */ { 1, { 0x00008860 } }, /* 0x0002f9c4 */ { 1, { 0x00008863 } }, /* 0x0002f9c5 */ { 1, { 0x00027667 } }, /* 0x0002f9c6 */ { 1, { 0x000088d7 } }, /* 0x0002f9c7 */ { 1, { 0x000088de } }, /* 0x0002f9c8 */ { 1, { 0x00004635 } }, /* 0x0002f9c9 */ { 1, { 0x000088fa } }, /* 0x0002f9ca */ { 1, { 0x000034bb } }, /* 0x0002f9cb */ { 1, { 0x000278ae } }, /* 0x0002f9cc */ { 1, { 0x00027966 } }, /* 0x0002f9cd */ { 1, { 0x000046be } }, /* 0x0002f9ce */ { 1, { 0x000046c7 } }, /* 0x0002f9cf */ { 1, { 0x00008aa0 } }, /* 0x0002f9d0 */ { 1, { 0x00008aed } }, /* 0x0002f9d1 */ { 1, { 0x00008b8a } }, /* 0x0002f9d2 */ { 1, { 0x00008c55 } }, /* 0x0002f9d3 */ { 1, { 0x00027ca8 } }, /* 0x0002f9d4 */ { 1, { 0x00008cab } }, /* 0x0002f9d5 */ { 1, { 0x00008cc1 } }, /* 0x0002f9d6 */ { 1, { 0x00008d1b } }, /* 0x0002f9d7 */ { 1, { 0x00008d77 } }, /* 0x0002f9d8 */ { 1, { 0x00027f2f } }, /* 0x0002f9d9 */ { 1, { 0x00020804 } }, /* 0x0002f9da */ { 1, { 0x00008dcb } }, /* 0x0002f9db */ { 1, { 0x00008dbc } }, /* 0x0002f9dc */ { 1, { 0x00008df0 } }, /* 0x0002f9dd */ { 1, { 0x000208de } }, /* 0x0002f9de */ { 1, { 0x00008ed4 } }, /* 0x0002f9df */ { 1, { 0x00008f38 } }, /* 0x0002f9e0 */ { 1, { 0x000285d2 } }, /* 0x0002f9e1 */ { 1, { 0x000285ed } }, /* 0x0002f9e2 */ { 1, { 0x00009094 } }, /* 0x0002f9e3 */ { 1, { 0x000090f1 } }, /* 0x0002f9e4 */ { 1, { 0x00009111 } }, /* 0x0002f9e5 */ { 1, { 0x0002872e } }, /* 0x0002f9e6 */ { 1, { 0x0000911b } }, /* 0x0002f9e7 */ { 1, { 0x00009238 } }, /* 0x0002f9e8 */ { 1, { 0x000092d7 } }, /* 0x0002f9e9 */ { 1, { 0x000092d8 } }, /* 0x0002f9ea */ { 1, { 0x0000927c } }, /* 0x0002f9eb */ { 1, { 0x000093f9 } }, /* 0x0002f9ec */ { 1, { 0x00009415 } }, /* 0x0002f9ed */ { 1, { 0x00028bfa } }, /* 0x0002f9ee */ { 1, { 0x0000958b } }, /* 0x0002f9ef */ { 1, { 0x00004995 } }, /* 0x0002f9f0 */ { 1, { 0x000095b7 } }, /* 0x0002f9f1 */ { 1, { 0x00028d77 } }, /* 0x0002f9f2 */ { 1, { 0x000049e6 } }, /* 0x0002f9f3 */ { 1, { 0x000096c3 } }, /* 0x0002f9f4 */ { 1, { 0x00005db2 } }, /* 0x0002f9f5 */ { 1, { 0x00009723 } }, /* 0x0002f9f6 */ { 1, { 0x00029145 } }, /* 0x0002f9f7 */ { 1, { 0x0002921a } }, /* 0x0002f9f8 */ { 1, { 0x00004a6e } }, /* 0x0002f9f9 */ { 1, { 0x00004a76 } }, /* 0x0002f9fa */ { 1, { 0x000097e0 } }, /* 0x0002f9fb */ { 1, { 0x0002940a } }, /* 0x0002f9fc */ { 1, { 0x00004ab2 } }, /* 0x0002f9fd */ { 1, { 0x00029496 } }, /* 0x0002f9fe */ { 1, { 0x0000980b } }, /* 0x0002f9ff */ { 1, { 0x0000980b } }, /* 0x0002fa00 */ { 1, { 0x00009829 } }, /* 0x0002fa01 */ { 1, { 0x000295b6 } }, /* 0x0002fa02 */ { 1, { 0x000098e2 } }, /* 0x0002fa03 */ { 1, { 0x00004b33 } }, /* 0x0002fa04 */ { 1, { 0x00009929 } }, /* 0x0002fa05 */ { 1, { 0x000099a7 } }, /* 0x0002fa06 */ { 1, { 0x000099c2 } }, /* 0x0002fa07 */ { 1, { 0x000099fe } }, /* 0x0002fa08 */ { 1, { 0x00004bce } }, /* 0x0002fa09 */ { 1, { 0x00029b30 } }, /* 0x0002fa0a */ { 1, { 0x00009b12 } }, /* 0x0002fa0b */ { 1, { 0x00009c40 } }, /* 0x0002fa0c */ { 1, { 0x00009cfd } }, /* 0x0002fa0d */ { 1, { 0x00004cce } }, /* 0x0002fa0e */ { 1, { 0x00004ced } }, /* 0x0002fa0f */ { 1, { 0x00009d67 } }, /* 0x0002fa10 */ { 1, { 0x0002a0ce } }, /* 0x0002fa11 */ { 1, { 0x00004cf8 } }, /* 0x0002fa12 */ { 1, { 0x0002a105 } }, /* 0x0002fa13 */ { 1, { 0x0002a20e } }, /* 0x0002fa14 */ { 1, { 0x0002a291 } }, /* 0x0002fa15 */ { 1, { 0x00009ebb } }, /* 0x0002fa16 */ { 1, { 0x00004d56 } }, /* 0x0002fa17 */ { 1, { 0x00009ef9 } }, /* 0x0002fa18 */ { 1, { 0x00009efe } }, /* 0x0002fa19 */ { 1, { 0x00009f05 } }, /* 0x0002fa1a */ { 1, { 0x00009f0f } }, /* 0x0002fa1b */ { 1, { 0x00009f16 } }, /* 0x0002fa1c */ { 1, { 0x00009f3b } }, /* 0x0002fa1d */ { 1, { 0x0002a600 } }, /* 0x0002fa1e */ { 1, { 0x0002fa1e } }, /* 0x0002fa1f */ { 1, { 0x0002fa1f } } }; /* Compares an UTF-8 string with a file entry name * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libfsapfs_name_compare_with_utf8_string( const uint8_t *name, size_t name_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_length, uint8_t use_case_folding, libcerror_error_t **error ) { libfsapfs_name_decomposition_mapping_t name_single_nfd_mapping = { 1, { 0 } }; libfsapfs_name_decomposition_mapping_t utf8_single_nfd_mapping = { 1, { 0 } }; libfsapfs_name_decomposition_mapping_t *name_nfd_mapping = NULL; libfsapfs_name_decomposition_mapping_t *utf8_nfd_mapping = NULL; static char *function = "libfsapfs_name_compare_with_utf8_string"; libuna_unicode_character_t name_unicode_character = 0; libuna_unicode_character_t utf8_unicode_character = 0; size_t name_index = 0; size_t utf8_string_index = 0; uint8_t nfd_character_index = 0; uint8_t number_of_nfd_characters = 0; if( name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 encoded name.", function ); return( -1 ); } if( name_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 encoded name size value exceeds maximum.", function ); return( -1 ); } if( name_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 encoded name value.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string length value exceeds maximum.", function ); return( -1 ); } if( name[ name_size - 1 ] == 0 ) { name_size -= 1; } if( utf8_string[ utf8_string_length - 1 ] == 0 ) { utf8_string_length -= 1; } while( ( name_index < name_size ) && ( utf8_string_index < utf8_string_length ) ) { if( libuna_unicode_character_copy_from_utf8( &name_unicode_character, name, name_size, &name_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 encoded name.", function ); return( -1 ); } if( libuna_unicode_character_copy_from_utf8( &utf8_unicode_character, utf8_string, utf8_string_length, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 string.", function ); return( -1 ); } if( use_case_folding != 0 ) { libfsapfs_name_get_case_folding_mapping( utf8_unicode_character ); libfsapfs_name_get_case_folding_mapping( name_unicode_character ); } libfsapfs_name_get_decomposition_mapping( utf8_unicode_character, utf8_nfd_mapping, utf8_single_nfd_mapping ); libfsapfs_name_get_decomposition_mapping( name_unicode_character, name_nfd_mapping, name_single_nfd_mapping ); if( utf8_nfd_mapping->number_of_characters < name_nfd_mapping->number_of_characters ) { number_of_nfd_characters = utf8_nfd_mapping->number_of_characters; } else { number_of_nfd_characters = name_nfd_mapping->number_of_characters; } for( nfd_character_index = 0; nfd_character_index < number_of_nfd_characters; nfd_character_index++ ) { utf8_unicode_character = utf8_nfd_mapping->characters[ nfd_character_index ]; name_unicode_character = name_nfd_mapping->characters[ nfd_character_index ]; if( utf8_unicode_character < name_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf8_unicode_character > name_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } if( utf8_nfd_mapping->number_of_characters < name_nfd_mapping->number_of_characters ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf8_nfd_mapping->number_of_characters > name_nfd_mapping->number_of_characters ) { return( LIBUNA_COMPARE_LESS ); } } if( utf8_string_index < utf8_string_length ) { return( LIBUNA_COMPARE_GREATER ); } else if( name_index < name_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } /* Compares an UTF-16 string with a file entry name * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libfsapfs_name_compare_with_utf16_string( const uint8_t *name, size_t name_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_length, uint8_t use_case_folding, libcerror_error_t **error ) { libfsapfs_name_decomposition_mapping_t name_single_nfd_mapping = { 1, { 0 } }; libfsapfs_name_decomposition_mapping_t utf16_single_nfd_mapping = { 1, { 0 } }; libfsapfs_name_decomposition_mapping_t *name_nfd_mapping = NULL; libfsapfs_name_decomposition_mapping_t *utf16_nfd_mapping = NULL; static char *function = "libfsapfs_name_compare_with_utf16_string"; libuna_unicode_character_t name_unicode_character = 0; libuna_unicode_character_t utf16_unicode_character = 0; size_t name_index = 0; size_t utf16_string_index = 0; uint8_t nfd_character_index = 0; uint8_t number_of_nfd_characters = 0; if( name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 encoded name.", function ); return( -1 ); } if( name_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 encoded name size value exceeds maximum.", function ); return( -1 ); } if( name_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: missing UTF-8 encoded name value.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string length value exceeds maximum.", function ); return( -1 ); } if( name[ name_size - 1 ] == 0 ) { name_size -= 1; } if( utf16_string[ utf16_string_length - 1 ] == 0 ) { utf16_string_length -= 1; } while( ( name_index < name_size ) && ( utf16_string_index < utf16_string_length ) ) { if( libuna_unicode_character_copy_from_utf8( &name_unicode_character, name, name_size, &name_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 encoded name.", function ); return( -1 ); } if( libuna_unicode_character_copy_from_utf16( &utf16_unicode_character, utf16_string, utf16_string_length, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 string.", function ); return( -1 ); } if( use_case_folding != 0 ) { libfsapfs_name_get_case_folding_mapping( utf16_unicode_character ); libfsapfs_name_get_case_folding_mapping( name_unicode_character ); } libfsapfs_name_get_decomposition_mapping( utf16_unicode_character, utf16_nfd_mapping, utf16_single_nfd_mapping ); libfsapfs_name_get_decomposition_mapping( name_unicode_character, name_nfd_mapping, name_single_nfd_mapping ); if( utf16_nfd_mapping->number_of_characters < name_nfd_mapping->number_of_characters ) { number_of_nfd_characters = utf16_nfd_mapping->number_of_characters; } else { number_of_nfd_characters = name_nfd_mapping->number_of_characters; } for( nfd_character_index = 0; nfd_character_index < number_of_nfd_characters; nfd_character_index++ ) { utf16_unicode_character = utf16_nfd_mapping->characters[ nfd_character_index ]; name_unicode_character = name_nfd_mapping->characters[ nfd_character_index ]; if( utf16_unicode_character < name_unicode_character ) { return( LIBUNA_COMPARE_LESS ); } else if( utf16_unicode_character > name_unicode_character ) { return( LIBUNA_COMPARE_GREATER ); } } if( utf16_nfd_mapping->number_of_characters < name_nfd_mapping->number_of_characters ) { return( LIBUNA_COMPARE_GREATER ); } else if( utf16_nfd_mapping->number_of_characters > name_nfd_mapping->number_of_characters ) { return( LIBUNA_COMPARE_LESS ); } } if( utf16_string_index < utf16_string_length ) { return( LIBUNA_COMPARE_GREATER ); } else if( name_index < name_size ) { return( LIBUNA_COMPARE_LESS ); } return( LIBUNA_COMPARE_EQUAL ); } libfsapfs-20190210/libfsapfs/libfsapfs_volume_key_bag.h0000664000175000017500000000455713426637447025221 0ustar00lordyestalordyesta00000000000000/* * The volume key bag functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_VOLUME_KEY_BAG_H ) #define _LIBFSAPFS_VOLUME_KEY_BAG_H #include #include #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_volume_key_bag libfsapfs_volume_key_bag_t; struct libfsapfs_volume_key_bag { /* The entries array */ libcdata_array_t *entries_array; }; int libfsapfs_volume_key_bag_initialize( libfsapfs_volume_key_bag_t **volume_key_bag, libcerror_error_t **error ); int libfsapfs_volume_key_bag_free( libfsapfs_volume_key_bag_t **volume_key_bag, libcerror_error_t **error ); int libfsapfs_volume_key_bag_read_file_io_handle( libfsapfs_volume_key_bag_t *volume_key_bag, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, off64_t file_offset, size64_t data_size, const uint8_t *volume_identifier, libcerror_error_t **error ); int libfsapfs_volume_key_bag_read_data( libfsapfs_volume_key_bag_t *volume_key_bag, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_volume_key_bag_get_volume_key( libfsapfs_volume_key_bag_t *volume_key_bag, const uint8_t *user_password, size_t user_password_length, const uint8_t *recovery_password, size_t recovery_password_length, uint8_t *key, size_t key_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_VOLUME_KEY_BAG_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_container_data_handle.h0000664000175000017500000000425513426637446026511 0ustar00lordyestalordyesta00000000000000/* * The container data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CONTAINER_DATA_HANDLE_H ) #define _LIBFSAPFS_CONTAINER_DATA_HANDLE_H #include #include #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_container_data_handle libfsapfs_container_data_handle_t; struct libfsapfs_container_data_handle { /* The IO handle */ libfsapfs_io_handle_t *io_handle; }; int libfsapfs_container_data_handle_initialize( libfsapfs_container_data_handle_t **container_data_handle, libfsapfs_io_handle_t *io_handle, libcerror_error_t **error ); int libfsapfs_container_data_handle_free( libfsapfs_container_data_handle_t **container_data_handle, libcerror_error_t **error ); int libfsapfs_container_data_handle_read_data_block( libfsapfs_container_data_handle_t *container_data_handle, libbfio_handle_t *file_io_handle, libfdata_vector_t *vector, libfcache_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CONTAINER_DATA_HANDLE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_checkpoint_map_entry.c0000664000175000017500000001475713426637446026433 0ustar00lordyestalordyesta00000000000000/* * The checkpoint map entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_checkpoint_map_entry.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_checkpoint_map.h" /* Creates checkpoint map entry * Make sure the value checkpoint_map_entry is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_checkpoint_map_entry_initialize( libfsapfs_checkpoint_map_entry_t **checkpoint_map_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_checkpoint_map_entry_initialize"; if( checkpoint_map_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map entry.", function ); return( -1 ); } if( *checkpoint_map_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid checkpoint map entry value already set.", function ); return( -1 ); } *checkpoint_map_entry = memory_allocate_structure( libfsapfs_checkpoint_map_entry_t ); if( *checkpoint_map_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create checkpoint map entry.", function ); goto on_error; } if( memory_set( *checkpoint_map_entry, 0, sizeof( libfsapfs_checkpoint_map_entry_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear checkpoint map entry.", function ); goto on_error; } return( 1 ); on_error: if( *checkpoint_map_entry != NULL ) { memory_free( *checkpoint_map_entry ); *checkpoint_map_entry = NULL; } return( -1 ); } /* Frees checkpoint map entry * Returns 1 if successful or -1 on error */ int libfsapfs_checkpoint_map_entry_free( libfsapfs_checkpoint_map_entry_t **checkpoint_map_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_checkpoint_map_entry_free"; if( checkpoint_map_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map entry.", function ); return( -1 ); } if( *checkpoint_map_entry != NULL ) { memory_free( *checkpoint_map_entry ); *checkpoint_map_entry = NULL; } return( 1 ); } /* Reads the checkpoint map entry * Returns 1 if successful or -1 on error */ int libfsapfs_checkpoint_map_entry_read_data( libfsapfs_checkpoint_map_entry_t *checkpoint_map_entry, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_checkpoint_map_entry_read_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( checkpoint_map_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checkpoint map entry.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_checkpoint_map_entry_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: checkpoint map entry data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_checkpoint_map_entry_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_checkpoint_map_entry_t *) data )->object_identifier, checkpoint_map_entry->object_identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_checkpoint_map_entry_t *) data )->physical_address, checkpoint_map_entry->physical_address ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_entry_t *) data )->object_type, value_32bit ); libcnotify_printf( "%s: object type\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_entry_t *) data )->object_subtype, value_32bit ); libcnotify_printf( "%s: object subtype\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_entry_t *) data )->size, value_32bit ); libcnotify_printf( "%s: size\t\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_checkpoint_map_entry_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_checkpoint_map_entry_t *) data )->file_system_object_identifier, value_64bit ); libcnotify_printf( "%s: file system object identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object identifier\t\t: %" PRIu64 "\n", function, checkpoint_map_entry->object_identifier ); libcnotify_printf( "%s: physical address\t\t: %" PRIu64 "\n", function, checkpoint_map_entry->physical_address ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_object.h0000664000175000017500000000357413426637446023474 0ustar00lordyestalordyesta00000000000000/* * The APFS object functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_OBJECT_H ) #define _LIBFSAPFS_OBJECT_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_object libfsapfs_object_t; struct libfsapfs_object { /* The identifier */ uint64_t identifier; /* The transaction identifier */ uint64_t transaction_identifier; /* The type */ uint32_t type; /* The subtype */ uint32_t subtype; }; int libfsapfs_object_initialize( libfsapfs_object_t **object, libcerror_error_t **error ); int libfsapfs_object_free( libfsapfs_object_t **object, libcerror_error_t **error ); int libfsapfs_object_read_file_io_handle( libfsapfs_object_t *object, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_object_read_data( libfsapfs_object_t *object, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_OBJECT_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_notify.h0000664000175000017500000000311213426637446023522 0ustar00lordyestalordyesta00000000000000/* * Notification functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_NOTIFY_H ) #define _LIBFSAPFS_NOTIFY_H #include #include #include #include "libfsapfs_extern.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFSAPFS ) LIBFSAPFS_EXTERN \ void libfsapfs_notify_set_verbose( int verbose ); LIBFSAPFS_EXTERN \ int libfsapfs_notify_set_stream( FILE *stream, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_notify_stream_open( const char *filename, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_notify_stream_close( libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_NOTIFY_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libfdatetime.h0000664000175000017500000000330313426637446024645 0ustar00lordyestalordyesta00000000000000/* * The libfdatetime header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBFDATETIME_H ) #define _LIBFSAPFS_LIBFDATETIME_H #include /* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime */ #if defined( HAVE_LOCAL_LIBFDATETIME ) #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBFDATETIME_DLL_IMPORT * before including libfdatetime.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBFDATETIME_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFDATETIME ) */ #endif /* !defined( _LIBFSAPFS_LIBFDATETIME_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_deflate.c0000664000175000017500000011732513426637446023625 0ustar00lordyestalordyesta00000000000000/* * Deflate (zlib) (un)compression functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_deflate.h" #include "libfsapfs_libcerror.h" /* Retrieves a value from the bit stream * Returns 1 on success or -1 on error */ int libfsapfs_deflate_bit_stream_get_value( libfsapfs_deflate_bit_stream_t *bit_stream, uint8_t number_of_bits, uint32_t *value_32bit, libcerror_error_t **error ) { static char *function = "libfsapfs_deflate_bit_stream_get_value"; if( bit_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid bit stream.", function ); return( -1 ); } if( number_of_bits > (uint8_t) 32 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid number of bits value exceeds maximum.", function ); return( -1 ); } if( value_32bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 32-bit value.", function ); return( -1 ); } if( number_of_bits == 0 ) { *value_32bit = 0; return( 1 ); } while( bit_stream->bit_buffer_size < number_of_bits ) { if( bit_stream->byte_stream_offset >= bit_stream->byte_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid byte stream value to small.", function ); return( -1 ); } *value_32bit = bit_stream->byte_stream[ bit_stream->byte_stream_offset++ ]; *value_32bit <<= bit_stream->bit_buffer_size; bit_stream->bit_buffer |= *value_32bit; bit_stream->bit_buffer_size += 8; } *value_32bit = bit_stream->bit_buffer & ~( 0xffffffffUL << number_of_bits ); bit_stream->bit_buffer >>= number_of_bits; bit_stream->bit_buffer_size -= number_of_bits; return( 1 ); } /* Constructs the Huffman table * Returns 1 on success, 0 if the table is empty or -1 on error */ int libfsapfs_deflate_huffman_table_construct( libfsapfs_deflate_huffman_table_t *table, const uint16_t *code_sizes_array, int number_of_code_sizes, libcerror_error_t **error ) { int code_offsets_array[ 16 ]; static char *function = "libfsapfs_deflate_huffman_table_construct"; uint16_t code_size = 0; uint8_t bit_index = 0; int code_offset = 0; int left_value = 0; int symbol = 0; if( table == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid table.", function ); return( -1 ); } if( code_sizes_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid code sizes array.", function ); return( -1 ); } if( number_of_code_sizes < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of code sizes value out of bounds.", function ); return( -1 ); } /* TODO hardcoded for now */ table->maximum_number_of_bits = 15; if( table->maximum_number_of_bits > 15 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid table - number of bits values out of bounds.", function ); return( -1 ); } table->number_of_codes = (int) table->maximum_number_of_bits + 1; if( memory_set( &( table->codes_array ), 0, 288 * sizeof( int ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear code counts array.", function ); return( -1 ); } if( memory_set( &( table->code_counts_array ), 0, 16 * sizeof( int ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear code counts array.", function ); return( -1 ); } for( symbol = 0; symbol < number_of_code_sizes; symbol++ ) { code_size = code_sizes_array[ symbol ]; if( code_size > table->number_of_codes ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid symbol: %d code size: %" PRIu16 " value out of bounds.", function, symbol, code_size ); return( -1 ); } table->code_counts_array[ code_size ] += 1; } /* The table has no codes */ if( table->code_counts_array[ 0 ] == number_of_code_sizes ) { return( 0 ); } /* Check if the set of code sizes is incomplete or over-subscribed */ left_value = 1; for( bit_index = 1; bit_index <= table->maximum_number_of_bits; bit_index++ ) { left_value <<= 1; left_value -= table->code_counts_array[ bit_index ]; if( left_value < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: code sizes are over-subscribed.", function ); return( -1 ); } } /* Calculate the offsets for sorting the symbol table */ code_offsets_array[ 0 ] = 0; code_offsets_array[ 1 ] = 0; for( bit_index = 1; bit_index < table->maximum_number_of_bits; bit_index++ ) { code_offsets_array[ bit_index + 1 ] = code_offsets_array[ bit_index ] + table->code_counts_array[ bit_index ]; } for( symbol = 0; symbol < number_of_code_sizes; symbol++ ) { code_size = code_sizes_array[ symbol ]; if( code_size == 0 ) { continue; } code_offset = code_offsets_array[ code_size ]; if( ( code_offset < 0 ) || ( code_offset > number_of_code_sizes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid symbol: %d code offset: %d value out of bounds.", function, symbol, code_offset ); return( -1 ); } code_offsets_array[ code_size ] += 1; table->codes_array[ code_offset ] = symbol; } /* TODO only used by dynamic Huffman if( left_value > 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: code sizes are incomplete.", function ); return( -1 ); } */ return( 1 ); } /* Retrieves a Huffman encoded value from the bit stream * Returns 1 on success or -1 on error */ int libfsapfs_deflate_bit_stream_get_huffman_encoded_value( libfsapfs_deflate_bit_stream_t *bit_stream, libfsapfs_deflate_huffman_table_t *table, uint32_t *value_32bit, libcerror_error_t **error ) { static char *function = "libfsapfs_deflate_bit_stream_get_huffman_encoded_value"; uint32_t bit_buffer = 0; uint8_t bit_index = 0; uint8_t number_of_bits = 0; int code_size_count = 0; int first_huffman_code = 0; int first_index = 0; int huffman_code = 0; int result = 0; if( bit_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid bit stream.", function ); return( -1 ); } if( table == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid table.", function ); return( -1 ); } if( value_32bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid 32-bit value.", function ); return( -1 ); } /* Try to fill the bit buffer with the maximum number of bits */ while( bit_stream->bit_buffer_size < table->maximum_number_of_bits ) { if( bit_stream->byte_stream_offset >= bit_stream->byte_stream_size ) { break; } *value_32bit = bit_stream->byte_stream[ bit_stream->byte_stream_offset++ ]; *value_32bit <<= bit_stream->bit_buffer_size; bit_stream->bit_buffer |= *value_32bit; bit_stream->bit_buffer_size += 8; } if( table->maximum_number_of_bits < bit_stream->bit_buffer_size ) { number_of_bits = table->maximum_number_of_bits; } else { number_of_bits = bit_stream->bit_buffer_size; } bit_buffer = bit_stream->bit_buffer; for( bit_index = 1; bit_index <= number_of_bits; bit_index++ ) { huffman_code <<= 1; huffman_code |= (int) bit_buffer & 0x00000001UL; bit_buffer >>= 1; code_size_count = table->code_counts_array[ bit_index ]; if( ( huffman_code - code_size_count ) < first_huffman_code ) { *value_32bit = table->codes_array[ first_index + ( huffman_code - first_huffman_code ) ]; result = 1; break; } first_huffman_code += code_size_count; first_huffman_code <<= 1; first_index += code_size_count; } if( result != 0 ) { bit_stream->bit_buffer >>= bit_index; bit_stream->bit_buffer_size -= bit_index; } return( result ); } /* Initializes the dynamic Huffman tables * Returns 1 on success or -1 on error */ int libfsapfs_deflate_initialize_dynamic_huffman_tables( libfsapfs_deflate_bit_stream_t *bit_stream, libfsapfs_deflate_huffman_table_t *literals_table, libfsapfs_deflate_huffman_table_t *distances_table, libcerror_error_t **error ) { uint16_t code_size_array[ 316 ]; uint8_t code_sizes_sequence[ 19 ] = { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 }; libfsapfs_deflate_huffman_table_t codes_table; static char *function = "libfsapfs_deflate_initialize_dynamic_huffman_tables"; uint32_t code_size = 0; uint32_t code_size_index = 0; uint32_t code_size_sequence = 0; uint32_t number_of_code_sizes = 0; uint32_t number_of_distance_codes = 0; uint32_t number_of_literal_codes = 0; uint32_t symbol = 0; uint32_t times_to_repeat = 0; if( libfsapfs_deflate_bit_stream_get_value( bit_stream, 14, &number_of_code_sizes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } number_of_literal_codes = number_of_code_sizes & 0x0000001fUL; number_of_code_sizes >>= 5; number_of_distance_codes = number_of_code_sizes & 0x0000001fUL; number_of_code_sizes >>= 5; number_of_literal_codes += 257; if( number_of_literal_codes > 286 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of literal codes value out of bounds.", function ); return( -1 ); } number_of_distance_codes += 1; if( number_of_distance_codes > 30 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of distance codes value out of bounds.", function ); return( -1 ); } number_of_code_sizes += 4; for( code_size_index = 0; code_size_index < number_of_code_sizes; code_size_index++ ) { if( libfsapfs_deflate_bit_stream_get_value( bit_stream, 3, &code_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } code_size_sequence = code_sizes_sequence[ code_size_index ]; code_size_array[ code_size_sequence ] = (uint16_t) code_size; } while( code_size_index < 19 ) { code_size_sequence = code_sizes_sequence[ code_size_index++ ]; code_size_array[ code_size_sequence ] = 0; } if( libfsapfs_deflate_huffman_table_construct( &codes_table, code_size_array, 19, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to construct codes table.", function ); return( -1 ); } number_of_code_sizes = number_of_literal_codes + number_of_distance_codes; code_size_index = 0; while( code_size_index < number_of_code_sizes ) { if( libfsapfs_deflate_bit_stream_get_huffman_encoded_value( bit_stream, &codes_table, &symbol, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve literal value from bit stream.", function ); return( -1 ); } if( symbol < 16 ) { code_size_array[ code_size_index++ ] = (uint16_t) symbol; continue; } code_size = 0; if( symbol == 16 ) { if( code_size_index == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid code size index value out of bounds.", function ); return( -1 ); } code_size = (uint32_t) code_size_array[ code_size_index - 1 ]; if( libfsapfs_deflate_bit_stream_get_value( bit_stream, 2, ×_to_repeat, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } times_to_repeat += 3; } else if( symbol == 17 ) { if( libfsapfs_deflate_bit_stream_get_value( bit_stream, 3, ×_to_repeat, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } times_to_repeat += 3; } else if( symbol == 18 ) { if( libfsapfs_deflate_bit_stream_get_value( bit_stream, 7, ×_to_repeat, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } times_to_repeat += 11; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid code value value out of bounds.", function ); return( -1 ); } if( ( code_size_index + times_to_repeat ) > number_of_code_sizes ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid times to repeat value out of bounds.", function ); return( -1 ); } while( times_to_repeat > 0 ) { code_size_array[ code_size_index++ ] = (uint16_t) code_size; times_to_repeat--; } } if( code_size_array[ 256 ] == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: end-of-block code value missing in literal codes array.", function ); return( -1 ); } if( libfsapfs_deflate_huffman_table_construct( literals_table, code_size_array, number_of_literal_codes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to construct literals table.", function ); return( -1 ); } if( libfsapfs_deflate_huffman_table_construct( distances_table, &( code_size_array[ number_of_literal_codes ] ), number_of_distance_codes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to construct distances table.", function ); return( -1 ); } return( 1 ); } /* Initializes the fixed Huffman tables * Returns 1 on success or -1 on error */ int libfsapfs_deflate_initialize_fixed_huffman_tables( libfsapfs_deflate_huffman_table_t *literals_table, libfsapfs_deflate_huffman_table_t *distances_table, libcerror_error_t **error ) { uint16_t code_size_array[ 318 ]; static char *function = "libfsapfs_deflate_initialize_fixed_huffman_tables"; uint16_t symbol = 0; for( symbol = 0; symbol < 318; symbol++ ) { if( symbol < 144 ) { code_size_array[ symbol ] = 8; } else if( symbol < 256 ) { code_size_array[ symbol ] = 9; } else if( symbol < 280 ) { code_size_array[ symbol ] = 7; } else if( symbol < 288 ) { code_size_array[ symbol ] = 8; } else { code_size_array[ symbol ] = 5; } } if( libfsapfs_deflate_huffman_table_construct( literals_table, code_size_array, 288, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to construct literals table.", function ); return( -1 ); } if( libfsapfs_deflate_huffman_table_construct( distances_table, &( code_size_array[ 288 ] ), 30, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to construct distances table.", function ); return( -1 ); } return( 1 ); } /* Decodes a Huffman compressed block * Returns 1 on success or -1 on error */ int libfsapfs_deflate_decode_huffman( libfsapfs_deflate_bit_stream_t *bit_stream, libfsapfs_deflate_huffman_table_t *literals_table, libfsapfs_deflate_huffman_table_t *distances_table, uint8_t *uncompressed_data, size_t uncompressed_data_size, size_t *uncompressed_data_offset, libcerror_error_t **error ) { uint16_t literal_codes_base[ 29 ] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258 }; uint16_t literal_codes_number_of_extra_bits[ 29 ] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0 }; uint16_t distance_codes_base[ 30 ] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; uint16_t distance_codes_number_of_extra_bits[ 30 ] = { 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; static char *function = "libfsapfs_deflate_decode_huffman"; size_t data_offset = 0; uint32_t code_value = 0; uint32_t extra_bits = 0; uint16_t compression_offset = 0; uint16_t compression_size = 0; uint16_t number_of_extra_bits = 0; if( uncompressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data.", function ); return( -1 ); } if( uncompressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid uncompressed data size value exceeds maximum.", function ); return( -1 ); } if( uncompressed_data_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data offset.", function ); return( -1 ); } data_offset = *uncompressed_data_offset; do { if( libfsapfs_deflate_bit_stream_get_huffman_encoded_value( bit_stream, literals_table, &code_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve listeral value from bit stream.", function ); return( -1 ); } if( code_value < 256 ) { if( data_offset >= uncompressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid uncompressed data value too small.", function ); return( -1 ); } uncompressed_data[ data_offset++ ] = (uint8_t) code_value; } else if( ( code_value > 256 ) && ( code_value < 286 ) ) { code_value -= 257; number_of_extra_bits = literal_codes_number_of_extra_bits[ code_value ]; if( libfsapfs_deflate_bit_stream_get_value( bit_stream, number_of_extra_bits, &extra_bits, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve literal extra value from bit stream.", function ); return( -1 ); } compression_size = literal_codes_base[ code_value ] + (uint16_t) extra_bits; if( libfsapfs_deflate_bit_stream_get_huffman_encoded_value( bit_stream, distances_table, &code_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve distance value from bit stream.", function ); return( -1 ); } number_of_extra_bits = distance_codes_number_of_extra_bits[ code_value ]; if( libfsapfs_deflate_bit_stream_get_value( bit_stream, number_of_extra_bits, &extra_bits, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve distance extra value from bit stream.", function ); return( -1 ); } compression_offset = distance_codes_base[ code_value ] + (uint16_t) extra_bits; if( compression_offset > data_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compression offset value out of bounds.", function ); return( -1 ); } if( ( data_offset + compression_size ) > uncompressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid uncompressed data value too small.", function ); return( -1 ); } while( compression_size > 0 ) { uncompressed_data[ data_offset ] = uncompressed_data[ data_offset - compression_offset ]; data_offset++; compression_size--; } } else if( code_value != 256 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: invalid code value: %" PRIu16 ".", function, code_value ); return( -1 ); } } while( code_value != 256 ); *uncompressed_data_offset = data_offset; return( 1 ); } /* Calculates the little-endian Adler-32 of a buffer * It uses the initial value to calculate a new Adler-32 * Returns 1 if successful or -1 on error */ int libfsapfs_deflate_calculate_adler32( uint32_t *checksum_value, const uint8_t *buffer, size_t size, uint32_t initial_value, libcerror_error_t **error ) { static char *function = "libfsapfs_deflate_calculate_adler32"; size_t buffer_offset = 0; uint32_t lower_word = 0; uint32_t upper_word = 0; uint32_t value_32bit = 0; int block_index = 0; if( checksum_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checksum value.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } lower_word = initial_value & 0xffff; upper_word = ( initial_value >> 16 ) & 0xffff; while( size >= 0x15b0 ) { /* The modulo calculation is needed per 5552 (0x15b0) bytes * 5552 / 16 = 347 */ for( block_index = 0; block_index < 347; block_index++ ) { lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; } /* Optimized equivalent of: * lower_word %= 0xfff1 */ value_32bit = lower_word >> 16; lower_word &= 0x0000ffffUL; lower_word += ( value_32bit << 4 ) - value_32bit; if( lower_word > 65521 ) { value_32bit = lower_word >> 16; lower_word &= 0x0000ffffUL; lower_word += ( value_32bit << 4 ) - value_32bit; } if( lower_word >= 65521 ) { lower_word -= 65521; } /* Optimized equivalent of: * upper_word %= 0xfff1 */ value_32bit = upper_word >> 16; upper_word &= 0x0000ffffUL; upper_word += ( value_32bit << 4 ) - value_32bit; if( upper_word > 65521 ) { value_32bit = upper_word >> 16; upper_word &= 0x0000ffffUL; upper_word += ( value_32bit << 4 ) - value_32bit; } if( upper_word >= 65521 ) { upper_word -= 65521; } size -= 0x15b0; } if( size > 0 ) { while( size > 16 ) { lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; size -= 16; } while( size > 0 ) { lower_word += buffer[ buffer_offset++ ]; upper_word += lower_word; size--; } /* Optimized equivalent of: * lower_word %= 0xfff1 */ value_32bit = lower_word >> 16; lower_word &= 0x0000ffffUL; lower_word += ( value_32bit << 4 ) - value_32bit; if( lower_word > 65521 ) { value_32bit = lower_word >> 16; lower_word &= 0x0000ffffUL; lower_word += ( value_32bit << 4 ) - value_32bit; } if( lower_word >= 65521 ) { lower_word -= 65521; } /* Optimized equivalent of: * upper_word %= 0xfff1 */ value_32bit = upper_word >> 16; upper_word &= 0x0000ffffUL; upper_word += ( value_32bit << 4 ) - value_32bit; if( upper_word > 65521 ) { value_32bit = upper_word >> 16; upper_word &= 0x0000ffffUL; upper_word += ( value_32bit << 4 ) - value_32bit; } if( upper_word >= 65521 ) { upper_word -= 65521; } } *checksum_value = ( upper_word << 16 ) | lower_word; return( 1 ); } /* Decompresses data using zlib compression * Returns 1 on success or -1 on error */ int libfsapfs_deflate_decompress( const uint8_t *compressed_data, size_t compressed_data_size, uint8_t *uncompressed_data, size_t *uncompressed_data_size, libcerror_error_t **error ) { libfsapfs_deflate_bit_stream_t bit_stream; libfsapfs_deflate_huffman_table_t dynamic_huffman_distances_table; libfsapfs_deflate_huffman_table_t dynamic_huffman_literals_table; libfsapfs_deflate_huffman_table_t fixed_huffman_distances_table; libfsapfs_deflate_huffman_table_t fixed_huffman_literals_table; static char *function = "libfsapfs_deflate_decompress"; size_t compressed_data_offset = 0; size_t uncompressed_data_offset = 0; uint32_t block_size = 0; uint32_t block_size_copy = 0; uint32_t compression_window_size = 0; uint32_t calculated_checksum = 0; uint32_t preset_dictionary_identifier = 0; uint32_t stored_checksum = 0; uint32_t value_32bit = 0; uint8_t block_type = 0; uint8_t compression_information = 0; uint8_t compression_method = 0; uint8_t compression_window_bits = 0; uint8_t last_block_flag = 0; uint8_t skip_bits = 0; if( compressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid compressed data.", function ); return( -1 ); } if( compressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid compressed data size value exceeds maximum.", function ); return( -1 ); } if( uncompressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data.", function ); return( -1 ); } if( uncompressed_data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data size.", function ); return( -1 ); } if( *uncompressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid uncompressed data size value exceeds maximum.", function ); return( -1 ); } if( compressed_data_offset >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid compressed data value too small.", function ); return( -1 ); } compression_method = compressed_data[ 0 ] & 0x0f; compression_information = compressed_data[ 0 ] >> 4; /* TODO validate check bits */ if( ( compressed_data[ 1 ] & 0x20 ) != 0 ) { if( compressed_data_size < 6 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid compressed data value too small.", function ); return( -1 ); } byte_stream_copy_to_uint32_big_endian( &( compressed_data[ 2 ] ), preset_dictionary_identifier ); compressed_data_offset += 4; } compressed_data_offset += 2; if( compression_method != 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported compression method: %" PRIu8 ".", function, compression_method ); return( -1 ); } compression_window_bits = (uint8_t) compression_information + 8; compression_window_size = 1UL << compression_window_bits; if( compression_window_size > 32768 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported compression window size: %" PRIu32 ".", function, compression_window_size ); return( -1 ); } if( compressed_data_offset >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid compressed data value too small.", function ); return( -1 ); } bit_stream.byte_stream = compressed_data; bit_stream.byte_stream_size = compressed_data_size; bit_stream.byte_stream_offset = compressed_data_offset; bit_stream.bit_buffer = 0; bit_stream.bit_buffer_size = 0; if( libfsapfs_deflate_initialize_fixed_huffman_tables( &fixed_huffman_literals_table, &fixed_huffman_distances_table, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to construct fixed Huffman tables.", function ); return( -1 ); } /* TODO find optimized solution to read bit stream from bytes */ while( bit_stream.byte_stream_offset < bit_stream.byte_stream_size ) { if( libfsapfs_deflate_bit_stream_get_value( &bit_stream, 3, &value_32bit, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } last_block_flag = (uint8_t) ( value_32bit & 0x00000001UL ); value_32bit >>= 1; block_type = (uint8_t) value_32bit; switch( block_type ) { case LIBFSAPFS_DEFLATE_BLOCK_TYPE_UNCOMPRESSED: /* Ignore the bits in the buffer upto the next byte */ skip_bits = bit_stream.bit_buffer_size & 0x07; if( skip_bits > 0 ) { if( libfsapfs_deflate_bit_stream_get_value( &bit_stream, skip_bits, &value_32bit, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } } if( libfsapfs_deflate_bit_stream_get_value( &bit_stream, 32, &block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from bit stream.", function ); return( -1 ); } block_size_copy = ( block_size >> 16 ) ^ 0x0000ffffUL; block_size &= 0x0000ffffUL; if( block_size != block_size_copy ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_INPUT, LIBCERROR_INPUT_ERROR_VALUE_MISMATCH, "%s: mismatch in block size ( %" PRIu32 " != %" PRIu32 " ).", function, block_size, block_size_copy ); return( -1 ); } if( block_size == 0 ) { break; } if( (size_t) block_size > ( bit_stream.byte_stream_size - bit_stream.byte_stream_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid compressed data value too small.", function ); return( -1 ); } if( (size_t) block_size > ( *uncompressed_data_size - uncompressed_data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid uncompressed data value too small.", function ); return( -1 ); } if( memory_copy( &( uncompressed_data[ uncompressed_data_offset ] ), &( compressed_data[ bit_stream.byte_stream_offset ] ), (size_t) block_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to initialize lz buffer.", function ); return( -1 ); } bit_stream.byte_stream_offset += block_size; uncompressed_data_offset += block_size; /* Flush the bit-stream buffer */ bit_stream.bit_buffer = 0; bit_stream.bit_buffer_size = 0; break; case LIBFSAPFS_DEFLATE_BLOCK_TYPE_HUFFMAN_FIXED: if( libfsapfs_deflate_decode_huffman( &bit_stream, &fixed_huffman_literals_table, &fixed_huffman_distances_table, uncompressed_data, *uncompressed_data_size, &uncompressed_data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to decode fixed Huffman encoded bit stream.", function ); return( -1 ); } break; case LIBFSAPFS_DEFLATE_BLOCK_TYPE_HUFFMAN_DYNAMIC: if( libfsapfs_deflate_initialize_dynamic_huffman_tables( &bit_stream, &dynamic_huffman_literals_table, &dynamic_huffman_distances_table, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to construct dynamic Huffman tables.", function ); return( -1 ); } if( libfsapfs_deflate_decode_huffman( &bit_stream, &dynamic_huffman_literals_table, &dynamic_huffman_distances_table, uncompressed_data, *uncompressed_data_size, &uncompressed_data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to decode dynamic Huffman encoded bit stream.", function ); return( -1 ); } break; case LIBFSAPFS_DEFLATE_BLOCK_TYPE_RESERVED: default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported block type.", function ); return( -1 ); } if( last_block_flag != 0 ) { break; } } if( ( bit_stream.byte_stream_size - bit_stream.byte_stream_offset ) >= 4 ) { while( bit_stream.bit_buffer_size >= 8 ) { bit_stream.byte_stream_offset -= 1; bit_stream.bit_buffer_size -= 8; } byte_stream_copy_to_uint32_big_endian( &( bit_stream.byte_stream[ bit_stream.byte_stream_offset ] ), stored_checksum ); if( libfsapfs_deflate_calculate_adler32( &calculated_checksum, uncompressed_data, uncompressed_data_offset, 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to calculate checksum.", function ); return( -1 ); } if( stored_checksum != calculated_checksum ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_INPUT, LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH, "%s: checksum does not match (stored: 0x%08" PRIx32 ", calculated: 0x%08" PRIx32 ").", function, stored_checksum, calculated_checksum ); return( -1 ); } } *uncompressed_data_size = uncompressed_data_offset; return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_btree_node_header.h0000664000175000017500000000402113426637446025630 0ustar00lordyestalordyesta00000000000000/* * The B-tree node header functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_BTREE_NODE_HEADER_H ) #define _LIBFSAPFS_BTREE_NODE_HEADER_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_btree_node_header libfsapfs_btree_node_header_t; struct libfsapfs_btree_node_header { /* The flags */ uint16_t flags; /* The level */ uint16_t level; /* The number of keys */ uint16_t number_of_keys; /* The entries data offset */ uint16_t entries_data_offset; /* The entries data size */ uint16_t entries_data_size; /* The unused data offset */ uint16_t unused_data_offset; /* The unused data size */ uint16_t unused_data_size; }; int libfsapfs_btree_node_header_initialize( libfsapfs_btree_node_header_t **btree_node_header, libcerror_error_t **error ); int libfsapfs_btree_node_header_free( libfsapfs_btree_node_header_t **btree_node_header, libcerror_error_t **error ); int libfsapfs_btree_node_header_read_data( libfsapfs_btree_node_header_t *btree_node_header, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_BTREE_NODE_HEADER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_key_encrypted_key.h0000664000175000017500000000474613426637446025745 0ustar00lordyestalordyesta00000000000000/* * The key encrypted key (KEK) functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_KEY_ENCRYPTED_KEY_H ) #define _LIBFSAPFS_KEY_ENCRYPTED_KEY_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_key_encrypted_key libfsapfs_key_encrypted_key_t; struct libfsapfs_key_encrypted_key { /* The identifier */ uint8_t identifier[ 16 ]; /* The HMAC */ uint8_t hmac[ 23 ]; /* The number of iterations */ uint64_t number_of_iterations; /* The salt */ uint8_t salt[ 16 ]; /* The encryption method */ uint32_t encryption_method; /* The wrapped key encrypted key (KEK) */ uint8_t wrapped_kek[ 40 ]; }; int libfsapfs_key_encrypted_key_initialize( libfsapfs_key_encrypted_key_t **key_encrypted_key, libcerror_error_t **error ); int libfsapfs_key_encrypted_key_free( libfsapfs_key_encrypted_key_t **key_encrypted_key, libcerror_error_t **error ); int libfsapfs_key_encrypted_key_read_data( libfsapfs_key_encrypted_key_t *key_encrypted_key, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_key_encrypted_key_unlock_with_key( libfsapfs_key_encrypted_key_t *key_encrypted_key, const uint8_t *key, size_t key_size, uint8_t *unlocked_key, size_t unlocked_key_size, libcerror_error_t **error ); int libfsapfs_key_encrypted_key_unlock_with_password( libfsapfs_key_encrypted_key_t *key_encrypted_key, const uint8_t *password, size_t password_length, uint8_t *unlocked_key, size_t unlocked_key_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_KEY_ENCRYPTED_KEY_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_fusion_middle_tree.h0000664000175000017500000000326313426637446025372 0ustar00lordyestalordyesta00000000000000/* * The APFS Fusion middle tree definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_FUSION_MIDDLE_TREE_H ) #define _FSAPFS_FUSION_MIDDLE_TREE_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_fusion_middle_tree fsapfs_fusion_middle_tree_t; struct fsapfs_fusion_middle_tree { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_FUSION_MIDDLE_TREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_key_bag_header.c0000664000175000017500000001351113426637446025122 0ustar00lordyestalordyesta00000000000000/* * The key bag header functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_key_bag_header.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfguid.h" #include "fsapfs_key_bag.h" /* Creates container physical_map_header * Make sure the value key_bag_header is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_key_bag_header_initialize( libfsapfs_key_bag_header_t **key_bag_header, libcerror_error_t **error ) { static char *function = "libfsapfs_key_bag_header_initialize"; if( key_bag_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key bag header.", function ); return( -1 ); } if( *key_bag_header != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid key bag header value already set.", function ); return( -1 ); } *key_bag_header = memory_allocate_structure( libfsapfs_key_bag_header_t ); if( *key_bag_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key bag header.", function ); goto on_error; } if( memory_set( *key_bag_header, 0, sizeof( libfsapfs_key_bag_header_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key bag header.", function ); goto on_error; } return( 1 ); on_error: if( *key_bag_header != NULL ) { memory_free( *key_bag_header ); *key_bag_header = NULL; } return( -1 ); } /* Frees key bag header * Returns 1 if successful or -1 on error */ int libfsapfs_key_bag_header_free( libfsapfs_key_bag_header_t **key_bag_header, libcerror_error_t **error ) { static char *function = "libfsapfs_key_bag_header_free"; if( key_bag_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key bag header.", function ); return( -1 ); } if( *key_bag_header != NULL ) { memory_free( *key_bag_header ); *key_bag_header = NULL; } return( 1 ); } /* Reads the key bag header * Returns 1 if successful or -1 on error */ int libfsapfs_key_bag_header_read_data( libfsapfs_key_bag_header_t *key_bag_header, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_key_bag_header_read_data"; uint16_t format_version = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( key_bag_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key bag header.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_key_bag_header_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: key bag header data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_key_bag_header_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint16_little_endian( ( (fsapfs_key_bag_header_t *) data )->format_version, format_version ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_key_bag_header_t *) data )->number_of_entries, key_bag_header->number_of_entries ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_key_bag_header_t *) data )->data_size, key_bag_header->data_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: format version\t\t\t: %" PRIu16 "\n", function, format_version ); libcnotify_printf( "%s: number of entries\t\t\t: %" PRIu16 "\n", function, key_bag_header->number_of_entries ); libcnotify_printf( "%s: data size\t\t\t\t: %" PRIu32 "\n", function, key_bag_header->data_size ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_key_bag_header_t *) data )->unknown1, value_64bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( format_version != 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported format version: %" PRIu16 ".", function, format_version ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_object_map_descriptor.c0000664000175000017500000001725613426637446026564 0ustar00lordyestalordyesta00000000000000/* * The object map descriptor functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_object_map_descriptor.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_object_map.h" /* Creates physical_map_entry * Make sure the value object_map_descriptor is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_descriptor_initialize( libfsapfs_object_map_descriptor_t **object_map_descriptor, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_descriptor_initialize"; if( object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map descriptor.", function ); return( -1 ); } if( *object_map_descriptor != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid object map descriptor value already set.", function ); return( -1 ); } *object_map_descriptor = memory_allocate_structure( libfsapfs_object_map_descriptor_t ); if( *object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create object map descriptor.", function ); goto on_error; } if( memory_set( *object_map_descriptor, 0, sizeof( libfsapfs_object_map_descriptor_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear object map descriptor.", function ); goto on_error; } return( 1 ); on_error: if( *object_map_descriptor != NULL ) { memory_free( *object_map_descriptor ); *object_map_descriptor = NULL; } return( -1 ); } /* Frees object map descriptor * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_descriptor_free( libfsapfs_object_map_descriptor_t **object_map_descriptor, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_descriptor_free"; if( object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map descriptor.", function ); return( -1 ); } if( *object_map_descriptor != NULL ) { memory_free( *object_map_descriptor ); *object_map_descriptor = NULL; } return( 1 ); } /* Reads the object map descriptor B-tree key data * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_descriptor_read_key_data( libfsapfs_object_map_descriptor_t *object_map_descriptor, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_descriptor_read_key_data"; if( object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map descriptor.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_object_map_btree_key_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object map B-tree key data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_object_map_btree_key_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_btree_key_t *) data )->object_identifier, object_map_descriptor->identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_btree_key_t *) data )->object_transaction_identifier, object_map_descriptor->transaction_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object identifier\t\t: %" PRIu64 "\n", function, object_map_descriptor->identifier ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, object_map_descriptor->transaction_identifier ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } /* Reads the object map descriptor B-tree value data * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_descriptor_read_value_data( libfsapfs_object_map_descriptor_t *object_map_descriptor, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_descriptor_read_value_data"; if( object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map descriptor.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_object_map_btree_value_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object map B-tree value data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_object_map_btree_value_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_btree_value_t *) data )->object_flags, object_map_descriptor->flags ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_btree_value_t *) data )->object_size, object_map_descriptor->size ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_btree_value_t *) data )->object_physical_address, object_map_descriptor->physical_address ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object flags\t\t\t: 0x%04" PRIx32 "\n", function, object_map_descriptor->flags ); libcnotify_printf( "%s: object size\t\t\t: %" PRIu32 "\n", function, object_map_descriptor->size ); libcnotify_printf( "%s: object physical address\t: %" PRIu64 "\n", function, object_map_descriptor->physical_address ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_lzvn.h0000664000175000017500000000246113426637446023211 0ustar00lordyestalordyesta00000000000000/* * LZVN (un)compression functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LZVN_COMPRESSION_H ) #define _LIBFSAPFS_LZVN_COMPRESSION_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int libfsapfs_lzvn_decompress( const uint8_t *compressed_data, size_t compressed_data_size, uint8_t *uncompressed_data, size_t *uncompressed_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_LZVN_COMPRESSION_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_compressed_data_handle.c0000664000175000017500000007574513426637446026702 0ustar00lordyestalordyesta00000000000000/* * The compressed data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_compressed_data_handle.h" #include "libfsapfs_compression.h" #include "libfsapfs_definitions.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_unused.h" #define LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE 65536 /* Creates compressed data handle * Make sure the value data_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_compressed_data_handle_initialize( libfsapfs_compressed_data_handle_t **data_handle, libfdata_stream_t *compressed_data_stream, size64_t uncompressed_data_size, int compression_method, libcerror_error_t **error ) { static char *function = "libfsapfs_compressed_data_handle_initialize"; if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( *data_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid data handle value already set.", function ); return( -1 ); } if( compressed_data_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid compressed data stream.", function ); return( -1 ); } if( ( compression_method != LIBFSAPFS_COMPRESSION_METHOD_DEFLATE ) && ( compression_method != LIBFSAPFS_COMPRESSION_METHOD_LZVN ) && ( compression_method != LIBFSAPFS_COMPRESSION_METHOD_UNKNOWN5 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported compression method.", function ); return( -1 ); } *data_handle = memory_allocate_structure( libfsapfs_compressed_data_handle_t ); if( *data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data handle.", function ); goto on_error; } if( memory_set( *data_handle, 0, sizeof( libfsapfs_compressed_data_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear data handle.", function ); memory_free( *data_handle ); *data_handle = NULL; return( -1 ); } ( *data_handle )->compressed_segment_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * ( LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE + 1 ) ); if( ( *data_handle )->compressed_segment_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create compressed segment data.", function ); goto on_error; } if( compression_method != LIBFSAPFS_COMPRESSION_METHOD_UNKNOWN5 ) { ( *data_handle )->segment_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE ); if( ( *data_handle )->segment_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create segment data.", function ); goto on_error; } } ( *data_handle )->compressed_data_stream = compressed_data_stream; ( *data_handle )->current_compressed_block_index = (uint32_t) -1; ( *data_handle )->uncompressed_data_size = uncompressed_data_size; ( *data_handle )->compression_method = compression_method; return( 1 ); on_error: if( *data_handle != NULL ) { if( ( *data_handle )->segment_data != NULL ) { memory_free( ( *data_handle )->segment_data ); } if( ( *data_handle )->compressed_segment_data != NULL ) { memory_free( ( *data_handle )->compressed_segment_data ); } memory_free( *data_handle ); *data_handle = NULL; } return( -1 ); } /* Frees data handle * Returns 1 if successful or -1 on error */ int libfsapfs_compressed_data_handle_free( libfsapfs_compressed_data_handle_t **data_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_compressed_data_handle_free"; if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( *data_handle != NULL ) { if( ( *data_handle )->segment_data != NULL ) { memory_free( ( *data_handle )->segment_data ); } if( ( *data_handle )->compressed_segment_data != NULL ) { memory_free( ( *data_handle )->compressed_segment_data ); } memory_free( *data_handle ); *data_handle = NULL; } return( 1 ); } /* Determines the compressed block offsets * Returns 1 if successful or -1 on error */ int libfsapfs_compressed_data_handle_get_compressed_block_offsets( libfsapfs_compressed_data_handle_t *data_handle, libbfio_handle_t *file_io_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_compressed_data_handle_get_compressed_block_offsets"; size64_t compressed_data_size = 0; size_t compressed_block_descriptor_size = 0; size_t read_size = 0; size_t segment_data_offset = 0; ssize_t read_count = 0; uint32_t compressed_block_index = 0; uint32_t compressed_block_offset = 0; uint32_t compressed_descriptors_offset = 0; uint32_t compressed_footer_offset = 0; uint32_t compressed_footer_size = 0; uint32_t previous_compressed_block_offset = 0; int compare_result = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint32_t value_32bit = 0; #endif if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( data_handle->compressed_block_offsets != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid data handle - compressed block offsets value already set.", function ); return( -1 ); } if( libfdata_stream_get_size( data_handle->compressed_data_stream, &compressed_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve compressed data size.", function ); goto on_error; } read_count = libfdata_stream_read_buffer_at_offset( data_handle->compressed_data_stream, (intptr_t *) file_io_handle, data_handle->compressed_segment_data, 4, 0, 0, error ); if( read_count != 4 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer at offset: 0 (0x00000000) from data stream.", function ); goto on_error; } compare_result = memory_compare( data_handle->compressed_segment_data, "fpmc", 4 ); if( compare_result == 0 ) { if( compressed_data_size > (size64_t) ( LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE + 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment data size value out of bounds.", function ); goto on_error; } data_handle->number_of_compressed_blocks = 1; } else if( data_handle->compression_method == LIBFSAPFS_COMPRESSION_METHOD_DEFLATE ) { byte_stream_copy_to_uint32_big_endian( data_handle->compressed_segment_data, compressed_descriptors_offset ); if( compressed_descriptors_offset != 0x00000100UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compressed descriptors offset value out of bounds.", function ); goto on_error; } read_size = (size_t) compressed_descriptors_offset + 16 - 4; read_count = libfdata_stream_read_buffer_at_offset( data_handle->compressed_data_stream, (intptr_t *) file_io_handle, &( data_handle->compressed_segment_data[ 4 ] ), read_size, 4, 0, error ); if( read_count != (ssize_t) read_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read compressed header data at offset: 4 (0x00000004) from data stream.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: compressed header data:\n", function ); libcnotify_print_data( data_handle->compressed_segment_data, read_size - 4, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: compressed descriptors offset\t: 0x%08" PRIx32 "\n", function, compressed_descriptors_offset ); byte_stream_copy_to_uint32_big_endian( &( data_handle->compressed_segment_data[ 4 ] ), compressed_footer_offset ); libcnotify_printf( "%s: compressed footer offset\t\t: 0x%08" PRIx32 "\n", function, compressed_footer_offset ); byte_stream_copy_to_uint32_big_endian( &( data_handle->compressed_segment_data[ 8 ] ), value_32bit ); libcnotify_printf( "%s: compressed data size\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_big_endian( &( data_handle->compressed_segment_data[ 12 ] ), compressed_footer_size ); libcnotify_printf( "%s: compressed footer size\t\t: %" PRIu32 "\n", function, compressed_footer_size ); libcnotify_printf( "%s: unknown1:\n", function ); libcnotify_print_data( &( data_handle->compressed_segment_data[ 16 ] ), 240, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); byte_stream_copy_to_uint32_little_endian( &( data_handle->compressed_segment_data[ 256 ] ), value_32bit ); libcnotify_printf( "%s: compressed data size\t\t: %" PRIu32 "\n", function, value_32bit ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ byte_stream_copy_to_uint32_little_endian( &( data_handle->compressed_segment_data[ 260 ] ), data_handle->number_of_compressed_blocks ); if( data_handle->number_of_compressed_blocks > ( (uint32_t) UINT32_MAX / 8 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of compressed blocks value out of bounds.", function ); goto on_error; } segment_data_offset = 264; byte_stream_copy_to_uint32_little_endian( &( data_handle->compressed_segment_data[ segment_data_offset ] ), compressed_block_offset ); segment_data_offset += 4; compressed_descriptors_offset += 4; compressed_block_descriptor_size = 8; } else if( data_handle->compression_method == LIBFSAPFS_COMPRESSION_METHOD_LZVN ) { segment_data_offset = 0; byte_stream_copy_to_uint32_little_endian( &( data_handle->compressed_segment_data[ segment_data_offset ] ), compressed_block_offset ); segment_data_offset += 4; compressed_block_descriptor_size = 4; if( ( compressed_block_offset <= 0x00000004UL ) || ( compressed_block_offset >= ( LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE + 1 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of compressed blocks value out of bounds.", function ); goto on_error; } data_handle->number_of_compressed_blocks = compressed_block_offset / 4; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: number of compressed blocks\t: %" PRIu32 "\n", function, data_handle->number_of_compressed_blocks ); } #endif #if ( SIZEOF_SIZE_T <= 4 ) if( (size_t) data_handle->number_of_compressed_blocks > (size_t) ( SSIZE_MAX - 4 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of compressed blocks value exceeds maximum.", function ); goto on_error; } #endif data_handle->compressed_block_offsets = (uint32_t *) memory_allocate( sizeof( uint32_t ) * ( data_handle->number_of_compressed_blocks + 1 ) ); if( data_handle->compressed_block_offsets == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create compressed block offsets.", function ); goto on_error; } if( compare_result == 0 ) { data_handle->compressed_block_offsets[ compressed_block_index++ ] = 16; previous_compressed_block_offset = 16; } else { read_size = ( (size_t) data_handle->number_of_compressed_blocks - 1 ) * compressed_block_descriptor_size; read_count = libfdata_stream_read_buffer_at_offset( data_handle->compressed_data_stream, (intptr_t *) file_io_handle, &( data_handle->compressed_segment_data[ segment_data_offset ] ), read_size, segment_data_offset, 0, error ); if( read_count != (ssize_t) read_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read compressed block descriptors data at offset: %" PRIzd " (0x%08" PRIzx ") from data stream.", function, segment_data_offset, segment_data_offset ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: compressed block descriptors data:\n", function ); libcnotify_print_data( &( data_handle->compressed_segment_data[ segment_data_offset - compressed_block_descriptor_size ] ), read_size + compressed_block_descriptor_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: compressed block: % 2" PRIu32 " offset\t: 0x%08" PRIx32 " (0x%08" PRIx32 ")\n", function, compressed_block_index, compressed_block_offset, compressed_block_offset + compressed_descriptors_offset ); } #endif if( ( compressed_block_offset <= compressed_block_descriptor_size ) || ( compressed_block_offset >= ( LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE + 1 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compressed block offset: %" PRIu32 " (0x%08" PRIx32 ") value out of bounds.", function, compressed_block_offset, compressed_block_offset ); goto on_error; } compressed_block_offset += compressed_descriptors_offset; data_handle->compressed_block_offsets[ 0 ] = compressed_block_offset; previous_compressed_block_offset = compressed_block_offset; if( data_handle->compression_method == LIBFSAPFS_COMPRESSION_METHOD_DEFLATE ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint32_little_endian( &( data_handle->compressed_segment_data[ segment_data_offset ] ), value_32bit ); libcnotify_printf( "%s: compressed block: % 2" PRIu32 " size\t: %" PRIu32 "\n", function, compressed_block_index, value_32bit ); } #endif segment_data_offset += 4; } for( compressed_block_index = 1; compressed_block_index < data_handle->number_of_compressed_blocks; compressed_block_index++ ) { byte_stream_copy_to_uint32_little_endian( &( data_handle->compressed_segment_data[ segment_data_offset ] ), compressed_block_offset ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: compressed block: % 2" PRIu32 " offset\t: 0x%08" PRIx32 " (0x%08" PRIx32 ")\n", function, compressed_block_index, compressed_block_offset, compressed_block_offset + compressed_descriptors_offset ); } #endif segment_data_offset += 4; compressed_block_offset += compressed_descriptors_offset; if( ( previous_compressed_block_offset > compressed_block_offset ) || ( ( compressed_block_offset - previous_compressed_block_offset ) > (uint32_t) ( LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE + 1 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compressed block offset: %" PRIu32 " (0x%08" PRIx32 ") value out of bounds.", function, compressed_block_offset, compressed_block_offset ); goto on_error; } data_handle->compressed_block_offsets[ compressed_block_index ] = compressed_block_offset; previous_compressed_block_offset = compressed_block_offset; if( data_handle->compression_method == LIBFSAPFS_COMPRESSION_METHOD_DEFLATE ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint32_little_endian( &( data_handle->compressed_segment_data[ segment_data_offset ] ), value_32bit ); libcnotify_printf( "%s: compressed block: % 2" PRIu32 " size\t: %" PRIu32 "\n", function, compressed_block_index, value_32bit ); } #endif segment_data_offset += 4; } } } if( ( previous_compressed_block_offset > compressed_data_size ) || ( ( compressed_data_size - previous_compressed_block_offset ) > (uint32_t) ( LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE + 1 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compressed block offset: %" PRIu32 " (0x%08" PRIx32 ") value out of bounds.", function, previous_compressed_block_offset, previous_compressed_block_offset ); goto on_error; } data_handle->compressed_block_offsets[ compressed_block_index ] = (uint32_t) compressed_data_size; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif if( data_handle->compression_method == LIBFSAPFS_COMPRESSION_METHOD_DEFLATE ) { if( compressed_footer_size > (uint32_t) ( LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE + 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compressed footer size value out of bounds.", function ); goto on_error; } read_count = libfdata_stream_read_buffer_at_offset( data_handle->compressed_data_stream, (intptr_t *) file_io_handle, data_handle->compressed_segment_data, (size_t) compressed_footer_size, (off64_t) compressed_footer_offset, 0, error ); if( read_count != (ssize_t) compressed_footer_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read compressed footer data at offset: %" PRIu32 " (0x08%" PRIx32 ") from data stream.", function, compressed_footer_offset, compressed_footer_offset ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: compressed footer data:\n", function ); libcnotify_print_data( data_handle->compressed_segment_data, (size_t) compressed_footer_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif } else if( data_handle->compression_method == LIBFSAPFS_COMPRESSION_METHOD_UNKNOWN5 ) { if( compressed_data_size > (size64_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compressed data size value out of bounds.", function ); goto on_error; } read_size = (size_t) compressed_data_size - 16; read_count = libfdata_stream_read_buffer_at_offset( data_handle->compressed_data_stream, (intptr_t *) file_io_handle, data_handle->compressed_segment_data, read_size, 16, 0, error ); if( read_count != (ssize_t) read_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read unknown data at offset: 16 (0x00000010) from data stream.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unknown data:\n", function ); libcnotify_print_data( data_handle->compressed_segment_data, read_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif } return( 1 ); on_error: if( data_handle->compressed_block_offsets != NULL ) { memory_free( data_handle->compressed_block_offsets ); data_handle->compressed_block_offsets = NULL; } return( -1 ); } /* Reads data from the current offset into a compressed * Callback for the data stream * Returns the number of bytes read or -1 on error */ ssize_t libfsapfs_compressed_data_handle_read_segment_data( libfsapfs_compressed_data_handle_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index LIBFSAPFS_ATTRIBUTE_UNUSED, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags LIBFSAPFS_ATTRIBUTE_UNUSED, uint8_t read_flags LIBFSAPFS_ATTRIBUTE_UNUSED, libcerror_error_t **error ) { static char *function = "libfsapfs_compressed_data_handle_read_segment_data"; size_t data_offset = 0; size_t read_size = 0; size_t segment_data_offset = 0; ssize_t read_count = 0; off64_t data_stream_offset = 0; off64_t uncompressed_block_offset = 0; uint32_t compressed_block_index = 0; LIBFSAPFS_UNREFERENCED_PARAMETER( file_io_handle ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_file_index ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_flags ) LIBFSAPFS_UNREFERENCED_PARAMETER( read_flags ) if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( segment_index != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( segment_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment data.", function ); return( -1 ); } if( segment_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid segment data size value exceeds maximum.", function ); return( -1 ); } if( data_handle->compressed_block_offsets == NULL ) { if( libfsapfs_compressed_data_handle_get_compressed_block_offsets( data_handle, (libbfio_handle_t *) file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine compressed block offsets.", function ); return( -1 ); } } if( (size64_t) data_handle->current_segment_offset >= data_handle->uncompressed_data_size ) { return( 0 ); } if( data_handle->compression_method == LIBFSAPFS_COMPRESSION_METHOD_UNKNOWN5 ) { if( (size64_t) segment_data_size > ( data_handle->uncompressed_data_size - data_handle->current_segment_offset ) ) { read_size = (size_t) ( data_handle->uncompressed_data_size - data_handle->current_segment_offset ); } else { read_size = segment_data_size; } if( memory_set( segment_data, 0, read_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear segment data.", function ); return( -1 ); } data_handle->current_segment_offset += read_size; return( (ssize_t) read_size ); } compressed_block_index = data_handle->current_segment_offset / LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE; segment_data_offset = 0; data_offset = (size_t) ( data_handle->current_segment_offset % LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE ); while( segment_data_size > 0 ) { if( compressed_block_index >= data_handle->number_of_compressed_blocks ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid compressed block index value out of bounds.", function ); return( -1 ); } if( data_handle->current_compressed_block_index != compressed_block_index ) { data_stream_offset = data_handle->compressed_block_offsets[ compressed_block_index ]; read_size = (size_t) ( data_handle->compressed_block_offsets[ compressed_block_index + 1 ] - data_stream_offset ); read_count = libfdata_stream_read_buffer_at_offset( data_handle->compressed_data_stream, (intptr_t *) file_io_handle, (uint8_t *) data_handle->compressed_segment_data, read_size, data_stream_offset, 0, error ); if( read_count != (ssize_t) read_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer at offset: %" PRIi64 " (0x08%" PRIx64 ") from data stream.", function, data_stream_offset, data_stream_offset ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: compressed block data:\n", function ); libcnotify_print_data( data_handle->compressed_segment_data, read_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif data_handle->segment_data_size = LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE; if( libfsapfs_decompress_data( data_handle->compressed_segment_data, (size_t) read_count, data_handle->compression_method, data_handle->segment_data, &( data_handle->segment_data_size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to decompress data.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: uncompressed block data:\n", function ); libcnotify_print_data( data_handle->segment_data, data_handle->segment_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif uncompressed_block_offset = ( compressed_block_index + 1 ) * LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE; if( ( (size64_t) uncompressed_block_offset < data_handle->uncompressed_data_size ) && ( data_handle->segment_data_size != LIBFSAPFS_COMPRESSED_DATA_HANDLE_BLOCK_SIZE ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid uncompressed segment data size value out of bounds.", function ); return( -1 ); } data_handle->current_compressed_block_index = compressed_block_index; } if( data_offset >= data_handle->segment_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data offset value out of bounds.", function ); return( -1 ); } read_size = data_handle->segment_data_size - data_offset; if( read_size > segment_data_size ) { read_size = segment_data_size; } if( memory_copy( &( segment_data[ segment_data_offset ] ), &( data_handle->segment_data[ data_offset ] ), read_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data.", function ); return( -1 ); } data_offset = 0; segment_data_size -= read_size; segment_data_offset += read_size; compressed_block_index++; } data_handle->current_segment_offset += segment_data_offset; return( (ssize_t) segment_data_offset ); } /* Seeks a certain offset of the data * Callback for the data stream * Returns the offset if seek is successful or -1 on error */ off64_t libfsapfs_compressed_data_handle_seek_segment_offset( libfsapfs_compressed_data_handle_t *data_handle, intptr_t *file_io_handle LIBFSAPFS_ATTRIBUTE_UNUSED, int segment_index, int segment_file_index LIBFSAPFS_ATTRIBUTE_UNUSED, off64_t segment_offset, libcerror_error_t **error ) { static char *function = "libfsapfs_compressed_data_handle_seek_segment_offset"; LIBFSAPFS_UNREFERENCED_PARAMETER( file_io_handle ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_file_index ) if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( segment_index != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( segment_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment offset value out of bounds.", function ); return( -1 ); } data_handle->current_segment_offset = segment_offset; return( segment_offset ); } libfsapfs-20190210/libfsapfs/Makefile.am0000664000175000017500000001215113423376464022044 0ustar00lordyestalordyesta00000000000000AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFCACHE_CPPFLAGS@ \ @LIBFDATA_CPPFLAGS@ \ @LIBFDATETIME_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBCRYPTO_CPPFLAGS@ \ @LIBHMAC_CPPFLAGS@ \ @LIBCAES_CPPFLAGS@ \ @ZLIB_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ \ @LIBFSAPFS_DLL_EXPORT@ lib_LTLIBRARIES = libfsapfs.la libfsapfs_la_SOURCES = \ fsapfs_btree.h \ fsapfs_checkpoint_map.h \ fsapfs_chunk_information_block.h \ fsapfs_container_reaper.h \ fsapfs_container_superblock.h \ fsapfs_extent_reference_tree.h \ fsapfs_file_system.h \ fsapfs_fusion_middle_tree.h \ fsapfs_key_bag.h \ fsapfs_object.h \ fsapfs_object_map.h \ fsapfs_snapshot_metadata.h \ fsapfs_space_manager.h \ fsapfs_volume_superblock.h \ libfsapfs.c \ libfsapfs_btree_entry.c libfsapfs_btree_entry.h \ libfsapfs_btree_footer.c libfsapfs_btree_footer.h \ libfsapfs_btree_node.c libfsapfs_btree_node.h \ libfsapfs_btree_node_header.c libfsapfs_btree_node_header.h \ libfsapfs_buffer_data_handle.c libfsapfs_buffer_data_handle.h \ libfsapfs_checkpoint_map.c libfsapfs_checkpoint_map.h \ libfsapfs_checkpoint_map_entry.c libfsapfs_checkpoint_map_entry.h \ libfsapfs_checksum.c libfsapfs_checksum.h \ libfsapfs_chunk_information_block.c libfsapfs_chunk_information_block.h \ libfsapfs_compressed_data_handle.c libfsapfs_compressed_data_handle.h \ libfsapfs_compression.c libfsapfs_compression.h \ libfsapfs_container.c libfsapfs_container.h \ libfsapfs_container_data_handle.c libfsapfs_container_data_handle.h \ libfsapfs_container_key_bag.c libfsapfs_container_key_bag.h \ libfsapfs_container_reaper.c libfsapfs_container_reaper.h \ libfsapfs_container_superblock.c libfsapfs_container_superblock.h \ libfsapfs_data_block.c libfsapfs_data_block.h \ libfsapfs_data_block_data_handle.c libfsapfs_data_block_data_handle.h \ libfsapfs_data_stream.c libfsapfs_data_stream.h \ libfsapfs_debug.c libfsapfs_debug.h \ libfsapfs_definitions.h \ libfsapfs_deflate.c libfsapfs_deflate.h \ libfsapfs_directory_record.c libfsapfs_directory_record.h \ libfsapfs_error.c libfsapfs_error.h \ libfsapfs_encryption_context.c libfsapfs_encryption_context.h \ libfsapfs_extended_attribute.c libfsapfs_extended_attribute.h \ libfsapfs_extern.h \ libfsapfs_extent_reference_tree.c libfsapfs_extent_reference_tree.h \ libfsapfs_file_entry.c libfsapfs_file_entry.h \ libfsapfs_file_extent.c libfsapfs_file_extent.h \ libfsapfs_file_system_btree.c libfsapfs_file_system_btree.h \ libfsapfs_file_system_data_handle.c libfsapfs_file_system_data_handle.h \ libfsapfs_fusion_middle_tree.c libfsapfs_fusion_middle_tree.h \ libfsapfs_inode.c libfsapfs_inode.h \ libfsapfs_io_handle.c libfsapfs_io_handle.h \ libfsapfs_key_bag_entry.c libfsapfs_key_bag_entry.h \ libfsapfs_key_bag_header.c libfsapfs_key_bag_header.h \ libfsapfs_key_encrypted_key.c libfsapfs_key_encrypted_key.h \ libfsapfs_libbfio.h \ libfsapfs_libcaes.h \ libfsapfs_libcdata.h \ libfsapfs_libcerror.h \ libfsapfs_libclocale.h \ libfsapfs_libcnotify.h \ libfsapfs_libcthreads.h \ libfsapfs_libfcache.h \ libfsapfs_libfdata.h \ libfsapfs_libfdatetime.h \ libfsapfs_libfguid.h \ libfsapfs_libhmac.h \ libfsapfs_libuna.h \ libfsapfs_lzvn.c libfsapfs_lzvn.h \ libfsapfs_name.c libfsapfs_name.h \ libfsapfs_name_hash.c libfsapfs_name_hash.h \ libfsapfs_notify.c libfsapfs_notify.h \ libfsapfs_object.c libfsapfs_object.h \ libfsapfs_object_map.c libfsapfs_object_map.h \ libfsapfs_object_map_btree.c libfsapfs_object_map_btree.h \ libfsapfs_object_map_descriptor.c libfsapfs_object_map_descriptor.h \ libfsapfs_password.c libfsapfs_password.h \ libfsapfs_profiler.c libfsapfs_profiler.h \ libfsapfs_snapshot_metadata.c libfsapfs_snapshot_metadata.h \ libfsapfs_snapshot_metadata_tree.c libfsapfs_snapshot_metadata_tree.h \ libfsapfs_space_manager.c libfsapfs_space_manager.h \ libfsapfs_support.c libfsapfs_support.h \ libfsapfs_types.h \ libfsapfs_unused.h \ libfsapfs_volume.c libfsapfs_volume.h \ libfsapfs_volume_key_bag.c libfsapfs_volume_key_bag.h \ libfsapfs_volume_superblock.c libfsapfs_volume_superblock.h libfsapfs_la_LIBADD = \ @LIBCERROR_LIBADD@ \ @LIBCTHREADS_LIBADD@ \ @LIBCDATA_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBFCACHE_LIBADD@ \ @LIBFDATA_LIBADD@ \ @LIBFDATETIME_LIBADD@ \ @LIBFGUID_LIBADD@ \ @LIBHMAC_LIBADD@ \ @LIBCAES_LIBADD@ \ @LIBCRYPTO_LIBADD@ \ @ZLIB_LIBADD@ \ @LIBDL_LIBADD@ \ @PTHREAD_LIBADD@ libfsapfs_la_LDFLAGS = -no-undefined -version-info 1:0:0 EXTRA_DIST = \ libfsapfs_definitions.h.in \ libfsapfs.rc \ libfsapfs.rc.in MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f libfsapfs_definitions.h /bin/rm -f libfsapfs.rc /bin/rm -f Makefile splint: @echo "Running splint on libfsapfs ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfsapfs_la_SOURCES) libfsapfs-20190210/libfsapfs/libfsapfs_file_system_data_handle.h0000664000175000017500000000500713426637446027046 0ustar00lordyestalordyesta00000000000000/* * The file system data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_FILE_SYSTEM_DATA_HANDLE_H ) #define _LIBFSAPFS_FILE_SYSTEM_DATA_HANDLE_H #include #include #include "libfsapfs_encryption_context.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_file_system_data_handle libfsapfs_file_system_data_handle_t; struct libfsapfs_file_system_data_handle { /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* The encryption context */ libfsapfs_encryption_context_t *encryption_context; /* The file extents */ libcdata_array_t *file_extents; }; int libfsapfs_file_system_data_handle_initialize( libfsapfs_file_system_data_handle_t **file_system_data_handle, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libcdata_array_t *file_extents, libcerror_error_t **error ); int libfsapfs_file_system_data_handle_free( libfsapfs_file_system_data_handle_t **file_system_data_handle, libcerror_error_t **error ); int libfsapfs_file_system_data_handle_read_data_block( libfsapfs_file_system_data_handle_t *file_system_data_handle, libbfio_handle_t *file_io_handle, libfdata_vector_t *vector, libfcache_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_FILE_SYSTEM_DATA_HANDLE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_notify.c0000664000175000017500000000532013426637446023520 0ustar00lordyestalordyesta00000000000000/* * Notification functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_notify.h" #if !defined( HAVE_LOCAL_LIBFSAPFS ) /* Sets the verbose notification */ void libfsapfs_notify_set_verbose( int verbose ) { libcnotify_verbose_set( verbose ); } /* Sets the notification stream * Returns 1 if successful or -1 on error */ int libfsapfs_notify_set_stream( FILE *stream, libcerror_error_t **error ) { static char *function = "libfsapfs_notify_set_stream"; if( libcnotify_stream_set( stream, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set stream.", function ); return( -1 ); } return( 1 ); } /* Opens the notification stream using a filename * The stream is opened in append mode * Returns 1 if successful or -1 on error */ int libfsapfs_notify_stream_open( const char *filename, libcerror_error_t **error ) { static char *function = "libfsapfs_notify_stream_open"; if( libcnotify_stream_open( filename, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open stream.", function ); return( -1 ); } return( 1 ); } /* Closes the notification stream if opened using a filename * Returns 0 if successful or -1 on error */ int libfsapfs_notify_stream_close( libcerror_error_t **error ) { static char *function = "libfsapfs_notify_stream_close"; if( libcnotify_stream_close( error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open stream.", function ); return( -1 ); } return( 0 ); } #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ libfsapfs-20190210/libfsapfs/libfsapfs_buffer_data_handle.h0000664000175000017500000000447113426637446026000 0ustar00lordyestalordyesta00000000000000/* * The buffer data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_BUFFER_DATA_HANDLE_H ) #define _LIBFSAPFS_BUFFER_DATA_HANDLE_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_buffer_data_handle libfsapfs_buffer_data_handle_t; struct libfsapfs_buffer_data_handle { /* The current segment offset */ off64_t current_segment_offset; /* The data */ const uint8_t *data; /* The data size */ size_t data_size; }; int libfsapfs_buffer_data_handle_initialize( libfsapfs_buffer_data_handle_t **data_handle, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_buffer_data_handle_free( libfsapfs_buffer_data_handle_t **data_handle, libcerror_error_t **error ); ssize_t libfsapfs_buffer_data_handle_read_segment_data( libfsapfs_buffer_data_handle_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t read_flags, libcerror_error_t **error ); off64_t libfsapfs_buffer_data_handle_seek_segment_offset( libfsapfs_buffer_data_handle_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, off64_t segment_offset, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_BUFFER_DATA_HANDLE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_checkpoint_map_entry.h0000664000175000017500000000347713426637446026435 0ustar00lordyestalordyesta00000000000000/* * The checkpoint map entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CHECKPOINT_MAP_ENTRY_H ) #define _LIBFSAPFS_CHECKPOINT_MAP_ENTRY_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_checkpoint_map_entry libfsapfs_checkpoint_map_entry_t; struct libfsapfs_checkpoint_map_entry { /* The object identifier */ uint64_t object_identifier; /* The physical address */ uint64_t physical_address; }; int libfsapfs_checkpoint_map_entry_initialize( libfsapfs_checkpoint_map_entry_t **checkpoint_map_entry, libcerror_error_t **error ); int libfsapfs_checkpoint_map_entry_free( libfsapfs_checkpoint_map_entry_t **checkpoint_map_entry, libcerror_error_t **error ); int libfsapfs_checkpoint_map_entry_read_data( libfsapfs_checkpoint_map_entry_t *checkpoint_map_entry, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CHECKPOINT_MAP_ENTRY_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_chunk_information_block.h0000664000175000017500000000332613426637445026420 0ustar00lordyestalordyesta00000000000000/* * The APFS chunk information block definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_CHUNK_INFORMATION_BLOCK_H ) #define _FSAPFS_CHUNK_INFORMATION_BLOCK_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_chunk_information_block fsapfs_chunk_information_block_t; struct fsapfs_chunk_information_block { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_CHUNK_INFORMATION_BLOCK_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_extended_attribute.h0000664000175000017500000001446413426637446026111 0ustar00lordyestalordyesta00000000000000/* * Extended attribute functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_EXTENDED_ATTRIBUTE_H ) #define _LIBFSAPFS_EXTENDED_ATTRIBUTE_H #include #include #include "libfsapfs_encryption_context.h" #include "libfsapfs_extern.h" #include "libfsapfs_file_system_btree.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcthreads.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_internal_extended_attribute libfsapfs_internal_extended_attribute_t; struct libfsapfs_internal_extended_attribute { /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* The file IO handle */ libbfio_handle_t *file_io_handle; /* The encryption context */ libfsapfs_encryption_context_t *encryption_context; /* The file system B-tree */ libfsapfs_file_system_btree_t *file_system_btree; /* The identifier */ uint64_t identifier; /* The name size */ uint16_t name_size; /* The name */ uint8_t *name; /* The data */ uint8_t *data; /* Data stream identifier */ uint64_t data_stream_identifier; /* Data stream size */ uint64_t data_stream_size; /* The file extents */ libcdata_array_t *file_extents; /* The data stream */ libfdata_stream_t *data_stream; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; int libfsapfs_extended_attribute_initialize( libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, libfsapfs_encryption_context_t *encryption_context, libfsapfs_file_system_btree_t *file_system_btree, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_free( libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ); int libfsapfs_internal_extended_attribute_free( libfsapfs_internal_extended_attribute_t **internal_extended_attribute, libcerror_error_t **error ); int libfsapfs_extended_attribute_read_key_data( libfsapfs_extended_attribute_t *extended_attribute, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_extended_attribute_read_value_data( libfsapfs_extended_attribute_t *extended_attribute, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_extended_attribute_get_data_stream( libfsapfs_extended_attribute_t *extended_attribute, libfdata_stream_t **data_stream, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_identifier( libfsapfs_extended_attribute_t *extended_attribute, uint64_t *identifier, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf8_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf8_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf8_name( libfsapfs_extended_attribute_t *extended_attribute, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); int libfsapfs_extended_attribute_compare_name_with_utf8_string( libfsapfs_extended_attribute_t *extended_attribute, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf16_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf16_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_utf16_name( libfsapfs_extended_attribute_t *extended_attribute, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); int libfsapfs_extended_attribute_compare_name_with_utf16_string( libfsapfs_extended_attribute_t *extended_attribute, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ); int libfsapfs_internal_extended_attribute_get_file_extents( libfsapfs_internal_extended_attribute_t *internal_extended_attribute, libcerror_error_t **error ); int libfsapfs_internal_extended_attribute_get_data_stream( libfsapfs_internal_extended_attribute_t *internal_extended_attribute, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ ssize_t libfsapfs_extended_attribute_read_buffer( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ ssize_t libfsapfs_extended_attribute_read_buffer_at_offset( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, off64_t offset, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ off64_t libfsapfs_extended_attribute_seek_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t offset, int whence, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t *offset, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_extended_attribute_get_size( libfsapfs_extended_attribute_t *extended_attribute, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_EXTENDED_ATTRIBUTE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_checksum.c0000664000175000017500000001227613426637446024022 0ustar00lordyestalordyesta00000000000000/* * Checksum functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_libcerror.h" /* Table of CRC-32 values of 8-bit values */ uint32_t libfsapfs_checksum_crc32_table[ 256 ]; /* Value to indicate the CRC-32 table been computed */ int libfsapfs_checksum_crc32_table_computed = 0; /* Initializes the internal CRC-32 table * The table speeds up the CRC-32 calculation */ void libfsapfs_checksum_initialize_crc32_table( uint32_t polynomial ) { uint32_t checksum = 0; uint32_t table_index = 0; uint8_t bit_iterator = 0; for( table_index = 0; table_index < 256; table_index++ ) { checksum = (uint32_t) table_index; for( bit_iterator = 0; bit_iterator < 8; bit_iterator++ ) { if( checksum & 1 ) { checksum = polynomial ^ ( checksum >> 1 ); } else { checksum = checksum >> 1; } } libfsapfs_checksum_crc32_table[ table_index ] = checksum; } libfsapfs_checksum_crc32_table_computed = 1; } /* Calculates the weak CRC-32 checksum of a buffer of data * Returns 1 if successful or -1 on error */ int libfsapfs_checksum_calculate_weak_crc32( uint32_t *checksum, const uint8_t *buffer, size_t size, uint32_t initial_value, libcerror_error_t **error ) { static char *function = "libfsapfs_checkcum_calculate_weak_crc32"; size_t buffer_offset = 0; uint32_t safe_checksum = 0; uint32_t table_index = 0; if( checksum == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checksum.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( libfsapfs_checksum_crc32_table_computed == 0 ) { libfsapfs_checksum_initialize_crc32_table( 0x82f63b78UL ); } safe_checksum = initial_value; for( buffer_offset = 0; buffer_offset < size; buffer_offset++ ) { table_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL; safe_checksum = libfsapfs_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 ); } *checksum = safe_checksum; return( 1 ); } /* Calculates the Fletcher-64 of a buffer of data * Returns 1 if successful or -1 on error */ int libfsapfs_checksum_calculate_fletcher64( uint64_t *checksum, const uint8_t *buffer, size_t size, uint64_t initial_value, libcerror_error_t **error ) { static char *function = "libfsapfs_checksum_calculate_fletcher64"; size_t buffer_offset = 0; uint64_t lower_32bit = 0; uint64_t upper_32bit = 0; uint32_t value_32bit = 0; if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( ( size % 4 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } if( checksum == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid checksum.", function ); return( -1 ); } lower_32bit = initial_value & 0xffffffffUL; upper_32bit = ( initial_value >> 32 ) & 0xffffffffUL; for( buffer_offset = 0; buffer_offset < size; buffer_offset += 4 ) { byte_stream_copy_to_uint32_little_endian( &( buffer[ buffer_offset ] ), value_32bit ); lower_32bit += value_32bit; upper_32bit += lower_32bit; } lower_32bit %= 0xffffffffUL; upper_32bit %= 0xffffffffUL; value_32bit = 0xffffffffUL - ( ( lower_32bit + upper_32bit ) % 0xffffffffUL ); upper_32bit = 0xffffffffUL - ( ( lower_32bit + value_32bit ) % 0xffffffffUL ); *checksum = ( upper_32bit << 32 ) | value_32bit; return( 1 ); } libfsapfs-20190210/libfsapfs/fsapfs_snapshot_metadata.h0000664000175000017500000000440513426637446025230 0ustar00lordyestalordyesta00000000000000/* * The APFS snapshot metadata definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_SNAPSHOT_METADATA_H ) #define _FSAPFS_SNAPSHOT_METADATA_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_snapshot_metadata_btree_key fsapfs_snapshot_metadata_btree_key_t; struct fsapfs_snapshot_metadata_btree_key { /* The key object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; }; typedef struct fsapfs_snapshot_metadata_btree_value fsapfs_snapshot_metadata_btree_value_t; struct fsapfs_snapshot_metadata_btree_value { /* The extent-reference tree object identifier * Consists of 8 bytes */ uint8_t extent_reference_tree_object_identifier[ 8 ]; /* The volume superblock tree object identifier * Consists of 8 bytes */ uint8_t volume_superblock_object_identifier[ 8 ]; /* The creation date and time * Consists of 8 bytes */ uint8_t creation_time[ 8 ]; /* The change date and time * Consists of 8 bytes */ uint8_t change_time[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown1[ 8 ]; /* The extent-reference tree object type * Consists of 8 bytes */ uint8_t extent_reference_tree_object_type[ 4 ]; /* The flags * Consists of 4 bytes */ uint8_t flags[ 4 ]; /* The name size * Consists of 2 bytes */ uint8_t name_size[ 2 ]; /* The name string * Contains an UTF-8 string with end-of-string character */ }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_SNAPSHOT_METADATA_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_volume_superblock.h0000664000175000017500000000702613426637447025763 0ustar00lordyestalordyesta00000000000000/* * The volume superblock functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_VOLUME_SUPERBLOCK_H ) #define _LIBFSAPFS_VOLUME_SUPERBLOCK_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_volume_superblock libfsapfs_volume_superblock_t; struct libfsapfs_volume_superblock { /* The incompatibility features flags */ uint64_t incompatibility_features_flags; /* The object map block number */ uint64_t object_map_block_number; /* The file system root object identifier */ uint64_t file_system_root_object_identifier; /* The extent-reference tree block number */ uint64_t extent_reference_tree_block_number; /* The snapshot metadata tree block number */ uint64_t snapshot_metadata_tree_block_number; /* The next file system object identifier */ uint64_t next_file_system_object_identifier; /* The volume identifier */ uint8_t volume_identifier[ 16 ]; /* The volume flags */ uint64_t volume_flags; /* The volume name */ uint8_t volume_name[ 256 ]; }; int libfsapfs_volume_superblock_initialize( libfsapfs_volume_superblock_t **volume_superblock, libcerror_error_t **error ); int libfsapfs_volume_superblock_free( libfsapfs_volume_superblock_t **volume_superblock, libcerror_error_t **error ); int libfsapfs_volume_superblock_read_file_io_handle( libfsapfs_volume_superblock_t *volume_superblock, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_volume_superblock_read_data( libfsapfs_volume_superblock_t *volume_superblock, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_volume_superblock_get_volume_identifier( libfsapfs_volume_superblock_t *volume_superblock, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ); int libfsapfs_volume_superblock_get_utf8_volume_name_size( libfsapfs_volume_superblock_t *volume_superblock, size_t *utf8_string_size, libcerror_error_t **error ); int libfsapfs_volume_superblock_get_utf8_volume_name( libfsapfs_volume_superblock_t *volume_superblock, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); int libfsapfs_volume_superblock_get_utf16_volume_name_size( libfsapfs_volume_superblock_t *volume_superblock, size_t *utf16_string_size, libcerror_error_t **error ); int libfsapfs_volume_superblock_get_utf16_volume_name( libfsapfs_volume_superblock_t *volume_superblock, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_VOLUME_SUPERBLOCK_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_extent_reference_tree.h0000664000175000017500000000331013426637445026066 0ustar00lordyestalordyesta00000000000000/* * The APFS extent reference tree definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_EXTENT_REFERENCE_TREE_H ) #define _FSAPFS_EXTENT_REFERENCE_TREE_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_extent_reference_tree fsapfs_extent_reference_tree_t; struct fsapfs_extent_reference_tree { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_EXTENT_REFERENCE_TREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_object_map_btree.c0000664000175000017500000007437313426637446025512 0ustar00lordyestalordyesta00000000000000/* * The object map B-tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_btree_node.h" #include "libfsapfs_data_block.h" #include "libfsapfs_definitions.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_object_map_btree.h" #include "libfsapfs_object_map_descriptor.h" #include "fsapfs_object.h" #include "fsapfs_object_map.h" /* Creates a object map B-tree * Make sure the value object_map_btree is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_btree_initialize( libfsapfs_object_map_btree_t **object_map_btree, libfsapfs_io_handle_t *io_handle, libfdata_vector_t *data_block_vector, uint64_t root_node_block_number, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_btree_initialize"; if( object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map B-tree.", function ); return( -1 ); } if( *object_map_btree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid object map B-tree value already set.", function ); return( -1 ); } *object_map_btree = memory_allocate_structure( libfsapfs_object_map_btree_t ); if( *object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create object map B-tree.", function ); goto on_error; } if( memory_set( *object_map_btree, 0, sizeof( libfsapfs_object_map_btree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear object map B-tree.", function ); memory_free( *object_map_btree ); *object_map_btree = NULL; return( -1 ); } if( libfcache_cache_initialize( &( ( *object_map_btree )->data_block_cache ), LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_DATA_BLOCKS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block cache.", function ); goto on_error; } if( libfcache_cache_initialize( &( ( *object_map_btree )->node_cache ), LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_BTREE_NODES, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create node cache.", function ); goto on_error; } ( *object_map_btree )->io_handle = io_handle; ( *object_map_btree )->data_block_vector = data_block_vector; ( *object_map_btree )->root_node_block_number = root_node_block_number; return( 1 ); on_error: if( *object_map_btree != NULL ) { memory_free( *object_map_btree ); *object_map_btree = NULL; } return( -1 ); } /* Frees a object map B-tree * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_btree_free( libfsapfs_object_map_btree_t **object_map_btree, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_btree_free"; int result = 1; if( object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map B-tree.", function ); return( -1 ); } if( *object_map_btree != NULL ) { /* The data_block_vector is referenced and freed elsewhere */ if( libfcache_cache_free( &( ( *object_map_btree )->node_cache ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free node cache.", function ); result = -1; } if( libfcache_cache_free( &( ( *object_map_btree )->data_block_cache ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data block cache.", function ); result = -1; } memory_free( *object_map_btree ); *object_map_btree = NULL; } return( result ); } /* Retrieves the object map B-tree root node * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_btree_get_root_node( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t root_node_block_number, libfsapfs_btree_node_t **root_node, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfsapfs_btree_node_t *node = NULL; libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_object_map_btree_get_root_node"; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map B-tree.", function ); return( -1 ); } if( root_node_block_number > (uint64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid root node block number value out of bounds.", function ); return( -1 ); } if( root_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid root node.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( object_map_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( object_map_btree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ result = libfcache_cache_get_value_by_identifier( object_map_btree->node_cache, 0, (off64_t) root_node_block_number, 0, &cache_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } else if( result == 0 ) { if( libfdata_vector_get_element_value_by_index( object_map_btree->data_block_vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) object_map_btree->data_block_cache, (int) root_node_block_number, (intptr_t **) &data_block, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data block: %" PRIu64 ".", function, root_node_block_number ); goto on_error; } if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 ".", function, root_node_block_number ); goto on_error; } if( libfsapfs_btree_node_initialize( &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree node.", function ); goto on_error; } if( libfsapfs_btree_node_read_data( node, data_block->data, data_block->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node.", function ); goto on_error; } if( node->object_type != 0x40000002UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, node->object_type ); goto on_error; } if( node->object_subtype != 0x0000000bUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, node->object_subtype ); goto on_error; } if( ( ( node->node_header->flags & 0x0001 ) == 0 ) || ( ( node->node_header->flags & 0x0004 ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%04" PRIx16 ".", function, node->node_header->flags ); goto on_error; } if( node->footer->node_size != 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node size value out of bounds.", function ); goto on_error; } if( node->footer->key_size != sizeof( fsapfs_object_map_btree_key_t ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key size value out of bounds.", function ); goto on_error; } if( node->footer->value_size != sizeof( fsapfs_object_map_btree_value_t ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value size value out of bounds.", function ); goto on_error; } if( libfcache_cache_set_value_by_identifier( object_map_btree->node_cache, 0, (off64_t) root_node_block_number, 0, (intptr_t *) node, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache.", function ); goto on_error; } node = NULL; if( libfcache_cache_get_value_by_identifier( object_map_btree->node_cache, 0, (off64_t) root_node_block_number, 0, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } } #if defined( HAVE_PROFILER ) if( object_map_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( object_map_btree->io_handle->profiler, profiler_start_timestamp, function, root_node_block_number * object_map_btree->io_handle->block_size, object_map_btree->io_handle->block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfcache_cache_value_get_value( cache_value, (intptr_t **) root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve root node.", function ); goto on_error; } return( 1 ); on_error: if( node != NULL ) { libfsapfs_btree_node_free( &node, NULL ); } return( -1 ); } /* Retrieves a object map B-tree sub node * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_btree_get_sub_node( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t sub_node_block_number, libfsapfs_btree_node_t **sub_node, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfsapfs_btree_node_t *node = NULL; libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_object_map_btree_get_sub_node"; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map B-tree.", function ); return( -1 ); } if( sub_node_block_number > (uint64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sub node block number value out of bounds.", function ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( object_map_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( object_map_btree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ result = libfcache_cache_get_value_by_identifier( object_map_btree->node_cache, 0, (off64_t) sub_node_block_number, 0, &cache_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } else if( result == 0 ) { if( libfdata_vector_get_element_value_by_index( object_map_btree->data_block_vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) object_map_btree->data_block_cache, (int) sub_node_block_number, (intptr_t **) &data_block, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } if( libfsapfs_btree_node_initialize( &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree node.", function ); goto on_error; } if( libfsapfs_btree_node_read_data( node, data_block->data, data_block->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node.", function ); goto on_error; } if( node->object_type != 0x40000003UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, node->object_type ); goto on_error; } if( node->object_subtype != 0x0000000bUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, node->object_subtype ); goto on_error; } if( ( ( node->node_header->flags & 0x0001 ) != 0 ) || ( ( node->node_header->flags & 0x0004 ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%04" PRIx16 ".", function, node->node_header->flags ); goto on_error; } if( libfcache_cache_set_value_by_identifier( object_map_btree->node_cache, 0, (off64_t) sub_node_block_number, 0, (intptr_t *) node, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache.", function ); goto on_error; } node = NULL; if( libfcache_cache_get_value_by_identifier( object_map_btree->node_cache, 0, (off64_t) sub_node_block_number, 0, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } } #if defined( HAVE_PROFILER ) if( object_map_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( object_map_btree->io_handle->profiler, profiler_start_timestamp, function, sub_node_block_number * object_map_btree->io_handle->block_size, object_map_btree->io_handle->block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfcache_cache_value_get_value( cache_value, (intptr_t **) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node.", function ); goto on_error; } return( 1 ); on_error: if( node != NULL ) { libfsapfs_btree_node_free( &node, NULL ); } return( -1 ); } /* Retrieves an entry for a specific identifier from the object map B-tree node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_object_map_btree_get_entry_from_node_by_identifier( libfsapfs_object_map_btree_t *object_map_btree, libfsapfs_btree_node_t *node, uint64_t object_identifier, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; static char *function = "libfsapfs_object_map_btree_get_entry_from_node_by_identifier"; uint64_t object_map_identifier = 0; int btree_entry_index = 0; int is_leaf_node = 0; int number_of_entries = 0; if( object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map B-tree.", function ); return( -1 ); } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving B-tree entry identifier: %" PRIu64 ".\n", function, object_identifier ); } #endif is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); return( -1 ); } if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); return( -1 ); } for( btree_entry_index = 0; btree_entry_index < number_of_entries; btree_entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, btree_entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); return( -1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, btree_entry_index ); return( -1 ); } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, btree_entry_index ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( entry->key_data, object_map_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 "\n", function, btree_entry_index, object_map_identifier ); } #endif if( object_map_identifier > object_identifier ) { break; } if( is_leaf_node != 0 ) { if( object_map_identifier == object_identifier ) { *btree_entry = entry; return( 1 ); } } else { if( object_map_identifier >= object_identifier ) { if( ( previous_entry == NULL ) || ( object_map_identifier == object_identifier ) ) { previous_entry = entry; } *btree_entry = previous_entry; return( 1 ); } previous_entry = entry; } } if( is_leaf_node == 0 ) { *btree_entry = previous_entry; return( 1 ); } return( 0 ); } /* Retrieves an entry for a specific identifier from the object map B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_object_map_btree_get_entry_by_identifier( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_btree_node_t **btree_node, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_node_t *node = NULL; static char *function = "libfsapfs_object_map_btree_get_entry_by_identifier"; uint64_t sub_node_block_number = 0; int is_leaf_node = 0; int recursion_depth = 0; int result = 0; if( object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map B-tree.", function ); return( -1 ); } if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( libfsapfs_object_map_btree_get_root_node( object_map_btree, file_io_handle, object_map_btree->root_node_block_number, &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); return( -1 ); } do { if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); return( -1 ); } result = libfsapfs_object_map_btree_get_entry_from_node_by_identifier( object_map_btree, node, object_identifier, &entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); return( -1 ); } else if( result == 0 ) { break; } if( is_leaf_node != 0 ) { *btree_node = node; *btree_entry = entry; return( 1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); return( -1 ); } if( entry->value_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry - missing value data.", function ); return( -1 ); } if( entry->value_data_size != 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid B-tree entry - unsupported value data size.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( entry->value_data, sub_node_block_number ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree sub node block number: %" PRIu64 "\n", function, sub_node_block_number ); } #endif node = NULL; if( libfsapfs_object_map_btree_get_sub_node( object_map_btree, file_io_handle, sub_node_block_number, &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); return( -1 ); } recursion_depth++; } while( is_leaf_node == 0 ); return( 0 ); } /* Retrieves the object map descriptor of a specific object identifier * Returns 1 if successful, 0 if no such value or -1 on error */ int libfsapfs_object_map_btree_get_descriptor_by_object_identifier( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_object_map_descriptor_t **descriptor, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_node_t *node = NULL; static char *function = "libfsapfs_object_map_btree_get_descriptor_by_object_identifier"; int result = 0; if( object_map_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map B-tree.", function ); return( -1 ); } if( descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid descriptor.", function ); return( -1 ); } if( *descriptor != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid descriptor value already set.", function ); return( -1 ); } result = libfsapfs_object_map_btree_get_entry_by_identifier( object_map_btree, file_io_handle, object_identifier, &node, &entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree.", function ); goto on_error; } else if( result != 0 ) { if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); goto on_error; } if( libfsapfs_object_map_descriptor_initialize( descriptor, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create object map descriptor.", function ); goto on_error; } if( libfsapfs_object_map_descriptor_read_key_data( *descriptor, entry->key_data, (size_t) entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object map descriptor key data.", function ); goto on_error; } if( libfsapfs_object_map_descriptor_read_value_data( *descriptor, entry->value_data, (size_t) entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object map descriptor value data.", function ); goto on_error; } node = NULL; } return( result ); on_error: if( *descriptor != NULL ) { libfsapfs_object_map_descriptor_free( descriptor, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs.c0000664000175000017500000000345613426637446022140 0ustar00lordyestalordyesta00000000000000/* * Library to access the Apple File System (APFS) format * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #if defined( WINAPI ) #include #endif #include "libfsapfs_unused.h" /* Define HAVE_LOCAL_LIBFSAPFS for local use of libfsapfs */ #if !defined( HAVE_LOCAL_LIBFSAPFS ) #if defined( WINAPI ) && defined( HAVE_DLLMAIN ) #if defined( _MANAGED ) #pragma managed( push, off ) #endif /* Defines the entry point for the DLL */ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) { LIBFSAPFS_UNREFERENCED_PARAMETER( lpvReserved ) switch( fdwReason ) { case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinstDLL ); break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; case DLL_PROCESS_DETACH: break; } return( TRUE ); } /* Function that indicates the library is a DLL * Returns 1 */ int libfsapfs_is_dll( void ) { return( 1 ); } #endif /* defined( WINAPI ) && defined( HAVE_DLLMAIN ) */ #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ libfsapfs-20190210/libfsapfs/libfsapfs_file_entry.h0000664000175000017500000002612713430073163024346 0ustar00lordyestalordyesta00000000000000/* * File entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_FILE_ENTRY_H ) #define _LIBFSAPFS_FILE_ENTRY_H #include #include #include "libfsapfs_directory_record.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_extern.h" #include "libfsapfs_file_system_btree.h" #include "libfsapfs_inode.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcthreads.h" #include "libfsapfs_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_internal_file_entry libfsapfs_internal_file_entry_t; struct libfsapfs_internal_file_entry { /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* The file IO handle */ libbfio_handle_t *file_io_handle; /* The encryption context */ libfsapfs_encryption_context_t *encryption_context; /* The file system B-tree */ libfsapfs_file_system_btree_t *file_system_btree; /* The inode */ libfsapfs_inode_t *inode; /* The directory record */ libfsapfs_directory_record_t *directory_record; /* The extended attributes */ libcdata_array_t *extended_attributes; /* The compressed data extended attribute */ libfsapfs_extended_attribute_t *compressed_data_extended_attribute; /* The resource fork extended attribute */ libfsapfs_extended_attribute_t *resource_fork_extended_attribute; /* The symbolic link extended attribute */ libfsapfs_extended_attribute_t *symbolic_link_extended_attribute; /* The symbolic link data */ uint8_t *symbolic_link_data; /* The symbolic link data size */ size_t symbolic_link_data_size; /* The directory entries */ libcdata_array_t *directory_entries; /* The file size */ size64_t file_size; /* The compression method */ uint32_t compression_method; /* The file extents */ libcdata_array_t *file_extents; /* The data stream */ libfdata_stream_t *data_stream; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; int libfsapfs_file_entry_initialize( libfsapfs_file_entry_t **file_entry, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, libfsapfs_encryption_context_t *encryption_context, libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_inode_t *inode, libfsapfs_directory_record_t *directory_record, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_free( libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *identifier, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_parent_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *parent_identifier, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_parent_file_entry( libfsapfs_file_entry_t *file_entry, libfsapfs_file_entry_t **parent_file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_creation_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_modification_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_access_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_inode_change_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_owner_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *owner_identifier, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_group_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *group_identifier, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_file_mode( libfsapfs_file_entry_t *file_entry, uint16_t *file_mode, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_name( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_name( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); int libfsapfs_internal_file_entry_get_extended_attributes( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ); int libfsapfs_internal_file_entry_get_symbolic_link_data( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf8_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_utf16_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_extended_attributes( libfsapfs_file_entry_t *file_entry, int *number_of_extended_attributes, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_index( libfsapfs_file_entry_t *file_entry, int extended_attribute_index, libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_has_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_has_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ); int libfsapfs_internal_file_entry_get_directory_entries( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_sub_file_entries( libfsapfs_file_entry_t *file_entry, int *number_of_sub_entries, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_index( libfsapfs_file_entry_t *file_entry, int sub_file_entry_index, libfsapfs_file_entry_t **sub_file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **sub_file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_sub_file_entry_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **sub_file_entry, libcerror_error_t **error ); int libfsapfs_internal_file_entry_get_file_extents( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ); int libfsapfs_internal_file_entry_get_data_stream( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ ssize_t libfsapfs_file_entry_read_buffer( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ ssize_t libfsapfs_file_entry_read_buffer_at_offset( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ off64_t libfsapfs_file_entry_seek_offset( libfsapfs_file_entry_t *file_entry, off64_t offset, int whence, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_offset( libfsapfs_file_entry_t *file_entry, off64_t *offset, libcerror_error_t **error ); int libfsapfs_internal_file_entry_get_file_size( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_size( libfsapfs_file_entry_t *file_entry, size64_t *size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_number_of_extents( libfsapfs_file_entry_t *file_entry, int *number_of_extents, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_file_entry_get_extent_by_index( libfsapfs_file_entry_t *file_entry, int extent_index, off64_t *extent_offset, size64_t *extent_size, uint32_t *extent_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_FILE_ENTRY_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_name_hash.h0000664000175000017500000000275013426637446024144 0ustar00lordyestalordyesta00000000000000/* * Name hash functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_NAME_HASH_H ) #define _LIBFSAPFS_NAME_HASH_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int libfsapfs_name_hash_calculate_from_utf8_string( uint32_t *name_hash, const uint8_t *utf8_string, size_t utf8_string_length, uint8_t use_case_folding, libcerror_error_t **error ); int libfsapfs_name_hash_calculate_from_utf16_string( uint32_t *name_hash, const uint16_t *utf16_string, size_t utf16_string_length, uint8_t use_case_folding, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_NAME_HASH_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_container_superblock.h0000664000175000017500000001237313426637445025746 0ustar00lordyestalordyesta00000000000000/* * The APFS container superblock definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_CONTAINER_SUPERBLOCK_H ) #define _FSAPFS_CONTAINER_SUPERBLOCK_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_container_superblock fsapfs_container_superblock_t; struct fsapfs_container_superblock { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* The file system signature * Consists of 4 bytes * Contains: "NXSB" */ uint8_t signature[ 4 ]; /* The block size * Consists of 4 bytes */ uint8_t block_size[ 4 ]; /* The number of block * Consists of 8 bytes */ uint8_t number_of_blocks[ 8 ]; /* Compatible features flags * Consists of 8 bytes */ uint8_t compatible_features_flags[ 8 ]; /* Read only compatible features flags * Consists of 8 bytes */ uint8_t read_only_compatible_features_flags[ 8 ]; /* Incompatible features flags * Consists of 8 bytes */ uint8_t incompatible_features_flags[ 8 ]; /* The container identifier * Consists of 16 bytes * Contains an UUID */ uint8_t container_identifier[ 16 ]; /* The next object identifier * Consists of 8 bytes */ uint8_t next_object_identifier[ 8 ]; /* The next transaction identifier * Consists of 8 bytes */ uint8_t next_transaction_identifier[ 8 ]; /* The checkpoint descriptor area number of blocks * Consists of 4 bytes */ uint8_t checkpoint_descriptor_area_number_of_blocks[ 4 ]; /* The checkpoint data area number of blocks * Consists of 4 bytes */ uint8_t checkpoint_data_area_number_of_blocks[ 4 ]; /* The checkpoint descriptor area block number * Consists of 8 bytes */ uint8_t checkpoint_descriptor_area_block_number[ 8 ]; /* The checkpoint data area block number * Consists of 8 bytes */ uint8_t checkpoint_data_area_block_number[ 8 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown8[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown9[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown10[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown11[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown12[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown13[ 4 ]; /* The space manager object identifier * Consists of 8 bytes */ uint8_t space_manager_object_identifier[ 8 ]; /* The object map block number * Consists of 8 bytes */ uint8_t object_map_block_number[ 8 ]; /* The reaper object identifier * Consists of 8 bytes */ uint8_t reaper_object_identifier[ 8 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown17[ 4 ]; /* The maximum number of volumes * Consists of 4 bytes */ uint8_t maximum_number_of_volumes[ 4 ]; /* The volume object identifiers * Consists of 100 x 8 bytes */ uint8_t volume_object_identifiers[ 800 ]; /* The counters * Consists of 32 x 8 bytes */ uint8_t counters[ 256 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown20[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown21[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown22[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown23[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown24[ 8 ]; /* The Fusion set identifier * Consists of 16 bytes * Contains an UUID */ uint8_t fusion_set_identifier[ 16 ]; /* The key bag block number * Consists of 8 bytes */ uint8_t key_bag_block_number[ 8 ]; /* The key bag number of blocks * Consists of 8 bytes */ uint8_t key_bag_number_of_blocks[ 8 ]; /* Unknown * Consists of 4 x 8 bytes */ uint8_t unknown29[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown30[ 8 ]; /* The Fusion middle tree block number * Consists of 8 bytes */ uint8_t fusion_middle_tree_block_number[ 8 ]; /* The Fusion write-back cache object identifier * Consists of 8 bytes */ uint8_t fusion_write_back_cache_object_identifier[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown33[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown34[ 8 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_CONTAINER_SUPERBLOCK_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_error.h0000664000175000017500000000343413426637446023352 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_INTERNAL_ERROR_H ) #define _LIBFSAPFS_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBFSAPFS ) #include #endif #include "libfsapfs_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFSAPFS ) LIBFSAPFS_EXTERN \ void libfsapfs_error_free( libfsapfs_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_error_fprint( libfsapfs_error_t *error, FILE *stream ); LIBFSAPFS_EXTERN \ int libfsapfs_error_sprint( libfsapfs_error_t *error, char *string, size_t size ); LIBFSAPFS_EXTERN \ int libfsapfs_error_backtrace_fprint( libfsapfs_error_t *error, FILE *stream ); LIBFSAPFS_EXTERN \ int libfsapfs_error_backtrace_sprint( libfsapfs_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_data_block_data_handle.h0000664000175000017500000000567313426637446026617 0ustar00lordyestalordyesta00000000000000/* * The data block data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DATA_BLOCK_DATA_HANDLE_H ) #define _LIBFSAPFS_DATA_BLOCK_DATA_HANDLE_H #include #include #include "libfsapfs_encryption_context.h" #include "libfsapfs_file_system_data_handle.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_data_block_data_handle libfsapfs_data_block_data_handle_t; struct libfsapfs_data_block_data_handle { /* The current segment offset */ off64_t current_segment_offset; /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* The file system data handle */ libfsapfs_file_system_data_handle_t *file_system_data_handle; /* The data block vector */ libfdata_vector_t *data_block_vector; /* The data block cache */ libfcache_cache_t *data_block_cache; }; int libfsapfs_data_block_data_handle_initialize( libfsapfs_data_block_data_handle_t **data_handle, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libcdata_array_t *file_extents, uint8_t is_sparse, libcerror_error_t **error ); int libfsapfs_data_block_data_handle_free( libfsapfs_data_block_data_handle_t **data_handle, libcerror_error_t **error ); ssize_t libfsapfs_data_block_data_handle_read_segment_data( libfsapfs_data_block_data_handle_t *data_handle, libbfio_handle_t *file_io_handle, int segment_index, int segment_file_index, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t read_flags, libcerror_error_t **error ); off64_t libfsapfs_data_block_data_handle_seek_segment_offset( libfsapfs_data_block_data_handle_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, off64_t segment_offset, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_DATA_BLOCK_DATA_HANDLE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_extended_attribute.c0000664000175000017500000014206513426644035026073 0ustar00lordyestalordyesta00000000000000/* * Extended attribute functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_data_stream.h" #include "libfsapfs_debug.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_extended_attribute.h" #include "libfsapfs_file_extent.h" #include "libfsapfs_file_system_btree.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_libfdatetime.h" #include "libfsapfs_libuna.h" #include "fsapfs_file_system.h" /* Creates an extended_attribute * Make sure the value extended_attribute is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_initialize( libfsapfs_extended_attribute_t **extended_attribute, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, libfsapfs_encryption_context_t *encryption_context, libfsapfs_file_system_btree_t *file_system_btree, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_initialize"; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( *extended_attribute != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute value already set.", function ); return( -1 ); } internal_extended_attribute = memory_allocate_structure( libfsapfs_internal_extended_attribute_t ); if( internal_extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create extended attribute.", function ); goto on_error; } if( memory_set( internal_extended_attribute, 0, sizeof( libfsapfs_internal_extended_attribute_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear extended attribute.", function ); memory_free( internal_extended_attribute ); return( -1 ); } internal_extended_attribute->io_handle = io_handle; internal_extended_attribute->file_io_handle = file_io_handle; internal_extended_attribute->encryption_context = encryption_context; internal_extended_attribute->file_system_btree = file_system_btree; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBFSAPFS ) if( libcthreads_read_write_lock_initialize( &( internal_extended_attribute->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *extended_attribute = (libfsapfs_extended_attribute_t *) internal_extended_attribute; return( 1 ); on_error: if( internal_extended_attribute != NULL ) { memory_free( internal_extended_attribute ); } return( -1 ); } /* Frees an extended attribute * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_free( libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ) { static char *function = "libfsapfs_extended_attribute_free"; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( *extended_attribute != NULL ) { *extended_attribute = NULL; } return( 1 ); } /* Frees an extended attribute * Returns 1 if successful or -1 on error */ int libfsapfs_internal_extended_attribute_free( libfsapfs_internal_extended_attribute_t **internal_extended_attribute, libcerror_error_t **error ) { static char *function = "libfsapfs_extended_attribute_free"; int result = 1; if( internal_extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( *internal_extended_attribute != NULL ) { #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBFSAPFS ) if( libcthreads_read_write_lock_free( &( ( *internal_extended_attribute )->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( ( *internal_extended_attribute )->data_stream != NULL ) { if( libfdata_stream_free( &( ( *internal_extended_attribute )->data_stream ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data stream.", function ); result = -1; } } if( ( *internal_extended_attribute )->file_extents != NULL ) { if( libcdata_array_free( &( ( *internal_extended_attribute )->file_extents ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_extent_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file extents array.", function ); result = -1; } } if( ( *internal_extended_attribute )->data != NULL ) { memory_free( ( *internal_extended_attribute )->data ); } if( ( *internal_extended_attribute )->name != NULL ) { memory_free( ( *internal_extended_attribute )->name ); } memory_free( *internal_extended_attribute ); *internal_extended_attribute = NULL; } return( result ); } /* Reads the extended attribute key data * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_read_key_data( libfsapfs_extended_attribute_t *extended_attribute, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_read_key_data"; size_t data_offset = 0; uint16_t name_size = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; if( internal_extended_attribute->name != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute - name value already set.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_key_extended_attribute_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended attribute key data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_key_extended_attribute_t *) data )->name_size, name_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_extended_attribute_t *) data )->file_system_identifier, value_64bit ); libcnotify_printf( "%s: parent identifier\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "%s: name size\t\t\t: %" PRIu16 "\n", function, name_size ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset = sizeof( fsapfs_file_system_btree_key_extended_attribute_t ); if( (size_t) name_size > ( data_size - data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid name size value out of bounds.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: name data:\n", function ); libcnotify_print_data( &( data[ data_offset ] ), (size_t) name_size, 0 ); } #endif internal_extended_attribute->name = (uint8_t *) memory_allocate( sizeof( uint8_t ) * name_size ); if( internal_extended_attribute->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create name.", function ); goto on_error; } internal_extended_attribute->name_size = name_size; if( memory_copy( internal_extended_attribute->name, &( data[ data_offset ] ), name_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy name.", function ); goto on_error; } return( 1 ); on_error: if( internal_extended_attribute->name != NULL ) { memory_free( internal_extended_attribute->name ); internal_extended_attribute->name = NULL; } internal_extended_attribute->name_size = 0; return( -1 ); } /* Reads the extended attribute value data * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_read_value_data( libfsapfs_extended_attribute_t *extended_attribute, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_read_value_data"; const uint8_t *extended_attribute_data = NULL; size_t data_offset = 0; uint16_t extended_attribute_flags = 0; uint16_t extended_attribute_data_size = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; if( internal_extended_attribute->data != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute - data value already set.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_value_extended_attribute_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended attribute value data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_value_extended_attribute_t *) data )->flags, extended_attribute_flags ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_value_extended_attribute_t *) data )->data_size, extended_attribute_data_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: flags\t\t\t: 0x%04" PRIx16 "\n", function, extended_attribute_flags ); libfsapfs_debug_print_extended_attribute_flags( extended_attribute_flags ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: data size\t\t\t: %" PRIu16 "\n", function, extended_attribute_data_size ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset = sizeof( fsapfs_file_system_btree_value_extended_attribute_t ); if( (size_t) extended_attribute_data_size > ( data_size - data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid extended attribute data size value out of bounds.", function ); goto on_error; } extended_attribute_data = &( data[ data_offset ] ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended attribute data:\n", function ); libcnotify_print_data( extended_attribute_data, (size_t) extended_attribute_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif if( ( extended_attribute_flags & 0x0001 ) != 0 ) { if( (size_t) extended_attribute_data_size != sizeof( fsapfs_file_system_extended_attribute_data_stream_t ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported extended attribute data size.", function ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_extended_attribute_data_stream_t *) extended_attribute_data )->data_stream_identifier, internal_extended_attribute->data_stream_identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_extended_attribute_data_stream_t *) extended_attribute_data )->used_size, internal_extended_attribute->data_stream_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: data stream indentifier\t: %" PRIu64 "\n", function, internal_extended_attribute->data_stream_identifier ); libcnotify_printf( "%s: used size\t\t\t: %" PRIu64 "\n", function, internal_extended_attribute->data_stream_size ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_extended_attribute_data_stream_t *) extended_attribute_data )->allocated_size, value_64bit ); libcnotify_printf( "%s: allocated size\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_extended_attribute_data_stream_t *) extended_attribute_data )->encryption_identifier, value_64bit ); libcnotify_printf( "%s: encryption identifier\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_extended_attribute_data_stream_t *) extended_attribute_data )->number_of_bytes_written, value_64bit ); libcnotify_printf( "%s: number of bytes written\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_extended_attribute_data_stream_t *) extended_attribute_data )->number_of_bytes_read, value_64bit ); libcnotify_printf( "%s: number of bytes read\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ } else if( ( extended_attribute_flags & 0x0002 ) != 0 ) { internal_extended_attribute->data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * extended_attribute_data_size ); if( internal_extended_attribute->data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data.", function ); goto on_error; } internal_extended_attribute->data_stream_size = (size64_t) extended_attribute_data_size; if( memory_copy( internal_extended_attribute->data, extended_attribute_data, extended_attribute_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data.", function ); goto on_error; } } return( 1 ); on_error: if( internal_extended_attribute->data != NULL ) { memory_free( internal_extended_attribute->data ); internal_extended_attribute->data = NULL; } internal_extended_attribute->data_stream_size = 0; return( -1 ); } /* Retrieves the data stream * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_get_data_stream( libfsapfs_extended_attribute_t *extended_attribute, libfdata_stream_t **data_stream, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_data_stream"; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; if( data_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data stream.", function ); return( -1 ); } if( internal_extended_attribute->data_stream == NULL ) { if( libfsapfs_internal_extended_attribute_get_data_stream( internal_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); return( -1 ); } } *data_stream = internal_extended_attribute->data_stream; return( 1 ); } /* Retrieves the identifier * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_get_identifier( libfsapfs_extended_attribute_t *extended_attribute, uint64_t *identifier, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_identifier"; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *identifier = internal_extended_attribute->identifier; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_get_utf8_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_utf8_name_size"; int result = 1; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libuna_utf8_string_size_from_utf8_stream( internal_extended_attribute->name, (size_t) internal_extended_attribute->name_size, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_get_utf8_name( libfsapfs_extended_attribute_t *extended_attribute, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_utf8_name"; int result = 1; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libuna_utf8_string_copy_from_utf8_stream( utf8_string, utf8_string_size, internal_extended_attribute->name, (size_t) internal_extended_attribute->name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Compares an UTF-8 string with an extended attribute name * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libfsapfs_extended_attribute_compare_name_with_utf8_string( libfsapfs_extended_attribute_t *extended_attribute, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_compare_name_with_utf8_string"; int result = 0; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; if( internal_extended_attribute->name != NULL ) { result = libuna_utf8_string_compare_with_utf8_stream( utf8_string, utf8_string_length, internal_extended_attribute->name, internal_extended_attribute->name_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name.", function ); return( -1 ); } } return( result ); } /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_get_utf16_name_size( libfsapfs_extended_attribute_t *extended_attribute, size_t *utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_utf16_name_size"; int result = 1; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libuna_utf16_string_size_from_utf8_stream( internal_extended_attribute->name, (size_t) internal_extended_attribute->name_size, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_get_utf16_name( libfsapfs_extended_attribute_t *extended_attribute, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_utf16_name"; int result = 1; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libuna_utf16_string_copy_from_utf8_stream( utf16_string, utf16_string_size, internal_extended_attribute->name, (size_t) internal_extended_attribute->name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Compares an UTF-16 string with an extended attribute name * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libfsapfs_extended_attribute_compare_name_with_utf16_string( libfsapfs_extended_attribute_t *extended_attribute, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_compare_name_with_utf16_string"; int result = 0; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; if( internal_extended_attribute->name != NULL ) { result = libuna_utf16_string_compare_with_utf8_stream( utf16_string, utf16_string_length, internal_extended_attribute->name, internal_extended_attribute->name_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-16 string with name.", function ); return( -1 ); } } return( result ); } /* Determines the file extents * Returns 1 if successful or -1 on error */ int libfsapfs_internal_extended_attribute_get_file_extents( libfsapfs_internal_extended_attribute_t *internal_extended_attribute, libcerror_error_t **error ) { static char *function = "libfsapfs_internal_extended_attribute_get_file_extents"; int result = 0; if( internal_extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( internal_extended_attribute->file_extents != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute - file extents value already set.", function ); return( -1 ); } if( libcdata_array_initialize( &( internal_extended_attribute->file_extents ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file extents array.", function ); goto on_error; } result = libfsapfs_file_system_btree_get_file_extents( internal_extended_attribute->file_system_btree, internal_extended_attribute->file_io_handle, internal_extended_attribute->data_stream_identifier, internal_extended_attribute->file_extents, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extents from file system B-tree.", function ); goto on_error; } return( 1 ); on_error: if( internal_extended_attribute->file_extents != NULL ) { libcdata_array_free( &( internal_extended_attribute->file_extents ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_extent_free, NULL ); } return( -1 ); } /* Determines the data stream * Returns 1 if successful or -1 on error */ int libfsapfs_internal_extended_attribute_get_data_stream( libfsapfs_internal_extended_attribute_t *internal_extended_attribute, libcerror_error_t **error ) { static char *function = "libfsapfs_internal_extended_attribute_get_data_stream"; if( internal_extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( internal_extended_attribute->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid internal extended attribute - missing IO handle.", function ); return( -1 ); } if( internal_extended_attribute->data_stream != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute - data stream value already set.", function ); return( -1 ); } if( internal_extended_attribute->data != NULL ) { if( libfsapfs_data_stream_initialize_from_data( &( internal_extended_attribute->data_stream ), internal_extended_attribute->data, internal_extended_attribute->data_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data stream from data.", function ); goto on_error; } } else { if( internal_extended_attribute->file_extents == NULL ) { if( libfsapfs_internal_extended_attribute_get_file_extents( internal_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file extents.", function ); goto on_error; } } if( libfsapfs_data_stream_initialize_from_file_extents( &( internal_extended_attribute->data_stream ), internal_extended_attribute->io_handle, internal_extended_attribute->encryption_context, internal_extended_attribute->file_extents, internal_extended_attribute->data_stream_size, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data stream from file extents.", function ); goto on_error; } } return( 1 ); on_error: if( internal_extended_attribute->data_stream != NULL ) { libfdata_stream_free( &( internal_extended_attribute->data_stream ), NULL ); } return( -1 ); } /* Reads data at the current offset into a buffer * Returns the number of bytes read or -1 on error */ ssize_t libfsapfs_extended_attribute_read_buffer( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_read_buffer"; ssize_t read_count = 0; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_extended_attribute->data_stream == NULL ) { if( libfsapfs_internal_extended_attribute_get_data_stream( internal_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } read_count = libfdata_stream_read_buffer( internal_extended_attribute->data_stream, (intptr_t *) internal_extended_attribute->file_io_handle, (uint8_t *) buffer, buffer_size, 0, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer from data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( read_count ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, NULL ); #endif return( -1 ); } /* Reads data at a specific offset * Returns the number of bytes read or -1 on error */ ssize_t libfsapfs_extended_attribute_read_buffer_at_offset( libfsapfs_extended_attribute_t *extended_attribute, void *buffer, size_t buffer_size, off64_t offset, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_read_buffer_at_offset"; ssize_t read_count = 0; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_extended_attribute->data_stream == NULL ) { if( libfsapfs_internal_extended_attribute_get_data_stream( internal_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } read_count = libfdata_stream_read_buffer_at_offset( internal_extended_attribute->data_stream, (intptr_t *) internal_extended_attribute->file_io_handle, (uint8_t *) buffer, buffer_size, offset, 0, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer at offset from data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( read_count ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, NULL ); #endif return( -1 ); } /* Seeks a certain offset * Returns the offset if seek is successful or -1 on error */ off64_t libfsapfs_extended_attribute_seek_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t offset, int whence, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_seek_offset"; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_extended_attribute->data_stream == NULL ) { if( libfsapfs_internal_extended_attribute_get_data_stream( internal_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } offset = libfdata_stream_seek_offset( internal_extended_attribute->data_stream, offset, whence, error ); if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset in data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( offset ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the current offset * Returns the offset if successful or -1 on error */ int libfsapfs_extended_attribute_get_offset( libfsapfs_extended_attribute_t *extended_attribute, off64_t *offset, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_offset"; int result = 1; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_extended_attribute->data_stream == NULL ) { if( libfsapfs_internal_extended_attribute_get_data_stream( internal_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } if( libfdata_stream_get_offset( internal_extended_attribute->data_stream, offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve offset from data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the size of the data stream object * Returns 1 if successful or -1 on error */ int libfsapfs_extended_attribute_get_size( libfsapfs_extended_attribute_t *extended_attribute, size64_t *size, libcerror_error_t **error ) { libfsapfs_internal_extended_attribute_t *internal_extended_attribute = NULL; static char *function = "libfsapfs_extended_attribute_get_size"; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } internal_extended_attribute = (libfsapfs_internal_extended_attribute_t *) extended_attribute; if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif *size = internal_extended_attribute->data_stream_size; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_extended_attribute->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_container_superblock.h0000664000175000017500000000657213426637446026442 0ustar00lordyestalordyesta00000000000000/* * The container superblock functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CONTAINER_SUPERBLOCK_H ) #define _LIBFSAPFS_CONTAINER_SUPERBLOCK_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_container_superblock libfsapfs_container_superblock_t; struct libfsapfs_container_superblock { /* The object transaction identifier */ uint64_t object_transaction_identifier; /* The block size */ uint32_t block_size; /* The number of blocks */ uint64_t number_of_blocks; /* The incompatible features flags */ uint64_t incompatible_features_flags; /* The container identifier */ uint8_t container_identifier[ 16 ]; /* The number of blocks of the checkpoint descriptor area */ uint32_t checkpoint_descriptor_area_number_of_blocks; /* The block number of the checkpoint descriptor area */ uint32_t checkpoint_descriptor_area_block_number; /* The space manager object identifier */ uint64_t space_manager_object_identifier; /* The object map block number */ uint64_t object_map_block_number; /* The reaper object identifier */ uint64_t reaper_object_identifier; /* The Fusion set identifier */ uint8_t fusion_set_identifier[ 16 ]; /* The key bag block number */ uint64_t key_bag_block_number; /* The key bag number of blocks */ uint64_t key_bag_number_of_blocks; /* The number of volumes */ int number_of_volumes; /* The volume object identifier */ uint64_t volume_object_identifiers[ 100 ]; /* The Fusion middle tree block number */ uint64_t fusion_middle_tree_block_number; }; int libfsapfs_container_superblock_initialize( libfsapfs_container_superblock_t **container_superblock, libcerror_error_t **error ); int libfsapfs_container_superblock_free( libfsapfs_container_superblock_t **container_superblock, libcerror_error_t **error ); int libfsapfs_container_superblock_read_file_io_handle( libfsapfs_container_superblock_t *container_superblock, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_container_superblock_read_data( libfsapfs_container_superblock_t *container_superblock, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_container_superblock_get_container_identifier( libfsapfs_container_superblock_t *container_superblock, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CONTAINER_SUPERBLOCK_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_support.c0000664000175000017500000004056213426637446023733 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include "libfsapfs_definitions.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libclocale.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_support.h" #if !defined( HAVE_LOCAL_LIBFSAPFS ) /* Returns the library version */ const char *libfsapfs_get_version( void ) { return( (const char *) LIBFSAPFS_VERSION_STRING ); } /* Returns the access flags for reading */ int libfsapfs_get_access_flags_read( void ) { return( (int) LIBFSAPFS_ACCESS_FLAG_READ ); } /* Retrieves the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libfsapfs_get_codepage( int *codepage, libcerror_error_t **error ) { static char *function = "libfsapfs_get_codepage"; if( libclocale_codepage_get( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve codepage.", function ); return( -1 ); } return( 1 ); } /* Sets the narrow system string codepage * A value of 0 represents no codepage, UTF-8 encoding is used instead * Returns 1 if successful or -1 on error */ int libfsapfs_set_codepage( int codepage, libcerror_error_t **error ) { static char *function = "libfsapfs_set_codepage"; if( libclocale_codepage_set( codepage, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set codepage.", function ); return( -1 ); } return( 1 ); } #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ /* Determines if a file contains an APFS container signature * Returns 1 if true, 0 if not or -1 on error */ int libfsapfs_check_container_signature( const char *filename, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; static char *function = "libfsapfs_check_container_signature"; size_t filename_length = 0; int result = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } filename_length = narrow_string_length( filename ); if( filename_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); goto on_error; } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } if( libbfio_file_set_name( file_io_handle, filename, filename_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } result = libfsapfs_check_container_signature_file_io_handle( file_io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to check file signature using a file handle.", function ); goto on_error; } if( libbfio_handle_free( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to free file IO handle.", function ); goto on_error; } return( result ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } /* Determines if a file contains an APFS volume signature * Returns 1 if true, 0 if not or -1 on error */ int libfsapfs_check_volume_signature( const char *filename, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; static char *function = "libfsapfs_check_volume_signature"; size_t filename_length = 0; int result = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } filename_length = narrow_string_length( filename ); if( filename_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); goto on_error; } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } if( libbfio_file_set_name( file_io_handle, filename, filename_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } result = libfsapfs_check_volume_signature_file_io_handle( file_io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to check file signature using a file handle.", function ); goto on_error; } if( libbfio_handle_free( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to free file IO handle.", function ); goto on_error; } return( result ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Determines if a file contains an APFS container signature * Returns 1 if true, 0 if not or -1 on error */ int libfsapfs_check_container_signature_wide( const wchar_t *filename, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; static char *function = "libfsapfs_check_container_signature_wide"; size_t filename_length = 0; int result = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } filename_length = wide_string_length( filename ); if( filename_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); goto on_error; } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } if( libbfio_file_set_name_wide( file_io_handle, filename, filename_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } result = libfsapfs_check_container_signature_file_io_handle( file_io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to check file signature using a file handle.", function ); goto on_error; } if( libbfio_handle_free( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to free file IO handle.", function ); goto on_error; } return( result ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } /* Determines if a file contains an APFS volume signature * Returns 1 if true, 0 if not or -1 on error */ int libfsapfs_check_volume_signature_wide( const wchar_t *filename, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; static char *function = "libfsapfs_check_volume_signature_wide"; size_t filename_length = 0; int result = 0; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } filename_length = wide_string_length( filename ); if( filename_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); goto on_error; } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } if( libbfio_file_set_name_wide( file_io_handle, filename, filename_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } result = libfsapfs_check_volume_signature_file_io_handle( file_io_handle, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to check file signature using a file handle.", function ); goto on_error; } if( libbfio_handle_free( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to free file IO handle.", function ); goto on_error; } return( result ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Determines if a file contains an APFS container signature using a Basic File IO (bfio) handle * Returns 1 if true, 0 if not or -1 on error */ int libfsapfs_check_container_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ) { uint8_t signature[ 36 ]; static char *function = "libfsapfs_check_container_signature_file_io_handle"; ssize_t read_count = 0; int file_io_handle_is_open = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } file_io_handle_is_open = libbfio_handle_is_open( file_io_handle, error ); if( file_io_handle_is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file.", function ); return( -1 ); } else if( file_io_handle_is_open == 0 ) { if( libbfio_handle_open( file_io_handle, LIBBFIO_OPEN_READ, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file.", function ); return( -1 ); } } if( libbfio_handle_seek_offset( file_io_handle, 0, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek file header offset: 0.", function ); if( file_io_handle_is_open == 0 ) { libbfio_handle_close( file_io_handle, error ); } return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, signature, 36, error ); if( read_count != 36 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read signature.", function ); if( file_io_handle_is_open == 0 ) { libbfio_handle_close( file_io_handle, error ); } return( -1 ); } if( file_io_handle_is_open == 0 ) { if( libbfio_handle_close( file_io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close file.", function ); return( -1 ); } } if( memory_compare( fsapfs_container_signature, &( signature[ 32 ] ), 4 ) == 0 ) { return( 1 ); } return( 0 ); } /* Determines if a file contains an APFS volume signature using a Basic File IO (bfio) handle * Returns 1 if true, 0 if not or -1 on error */ int libfsapfs_check_volume_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ) { uint8_t signature[ 36 ]; static char *function = "libfsapfs_check_volume_signature_file_io_handle"; ssize_t read_count = 0; int file_io_handle_is_open = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } file_io_handle_is_open = libbfio_handle_is_open( file_io_handle, error ); if( file_io_handle_is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file.", function ); return( -1 ); } else if( file_io_handle_is_open == 0 ) { if( libbfio_handle_open( file_io_handle, LIBBFIO_OPEN_READ, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file.", function ); return( -1 ); } } if( libbfio_handle_seek_offset( file_io_handle, 0, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek file header offset: 0.", function ); if( file_io_handle_is_open == 0 ) { libbfio_handle_close( file_io_handle, error ); } return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, signature, 36, error ); if( read_count != 36 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read signature.", function ); if( file_io_handle_is_open == 0 ) { libbfio_handle_close( file_io_handle, error ); } return( -1 ); } if( file_io_handle_is_open == 0 ) { if( libbfio_handle_close( file_io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close file.", function ); return( -1 ); } } if( memory_compare( fsapfs_volume_signature, &( signature[ 32 ] ), 4 ) == 0 ) { return( 1 ); } return( 0 ); } libfsapfs-20190210/libfsapfs/libfsapfs_container_key_bag.h0000664000175000017500000000530113426637446025657 0ustar00lordyestalordyesta00000000000000/* * The container key bag functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CONTAINER_KEY_BAG_H ) #define _LIBFSAPFS_CONTAINER_KEY_BAG_H #include #include #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_container_key_bag libfsapfs_container_key_bag_t; struct libfsapfs_container_key_bag { /* The entries array */ libcdata_array_t *entries_array; }; int libfsapfs_container_key_bag_initialize( libfsapfs_container_key_bag_t **container_key_bag, libcerror_error_t **error ); int libfsapfs_container_key_bag_free( libfsapfs_container_key_bag_t **container_key_bag, libcerror_error_t **error ); int libfsapfs_container_key_bag_read_file_io_handle( libfsapfs_container_key_bag_t *container_key_bag, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, off64_t file_offset, size64_t data_size, const uint8_t *container_identifier, libcerror_error_t **error ); int libfsapfs_container_key_bag_read_data( libfsapfs_container_key_bag_t *container_key_bag, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_container_key_bag_get_volume_key_bag_extent_by_identifier( libfsapfs_container_key_bag_t *container_key_bag, const uint8_t *volume_identifier, uint64_t *volume_key_bag_block_number, uint64_t *volume_key_bag_number_of_blocks, libcerror_error_t **error ); int libfsapfs_container_key_bag_get_volume_master_key_by_identifier( libfsapfs_container_key_bag_t *container_key_bag, const uint8_t *volume_identifier, const uint8_t *volume_key, size_t volume_key_size, uint8_t *key, size_t key_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CONTAINER_KEY_BAG_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_extern.h0000664000175000017500000000242213426637446023522 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_INTERNAL_EXTERN_H ) #define _LIBFSAPFS_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBFSAPFS for local use of libfsapfs */ #if !defined( HAVE_LOCAL_LIBFSAPFS ) #include #define LIBFSAPFS_EXTERN_VARIABLE LIBFSAPFS_EXTERN #else #define LIBFSAPFS_EXTERN /* extern */ #define LIBFSAPFS_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ #endif /* !defined( _LIBFSAPFS_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_debug.h0000664000175000017500000000661713426637446023315 0ustar00lordyestalordyesta00000000000000/* * Debug functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DEBUG_H ) #define _LIBFSAPFS_DEBUG_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_DEBUG_OUTPUT ) void libfsapfs_debug_print_btree_flags( uint32_t btree_flags ); void libfsapfs_debug_print_btree_node_flags( uint16_t btree_node_flags ); void libfsapfs_debug_print_checkpoint_flags( uint32_t checkpoint_flags ); void libfsapfs_debug_print_container_compatible_features_flags( uint64_t compatible_features_flags ); void libfsapfs_debug_print_container_incompatible_features_flags( uint64_t incompatible_features_flags ); void libfsapfs_debug_print_container_read_only_compatible_features_flags( uint64_t read_only_compatible_features_flags ); void libfsapfs_debug_print_directory_entry_flags( uint16_t directory_entry_flags ); void libfsapfs_debug_print_extended_attribute_flags( uint16_t extended_attribute_flags ); void libfsapfs_debug_print_extended_field_flags( uint8_t extended_field_flags ); void libfsapfs_debug_print_inode_flags( uint64_t inode_flags ); void libfsapfs_debug_print_volume_compatible_features_flags( uint64_t compatible_features_flags ); void libfsapfs_debug_print_volume_flags( uint64_t volume_flags ); void libfsapfs_debug_print_volume_incompatible_features_flags( uint64_t incompatible_features_flags ); void libfsapfs_debug_print_volume_read_only_compatible_features_flags( uint64_t read_only_compatible_features_flags ); const char *libfsapfs_debug_print_file_system_data_type( uint8_t file_system_data_type ); const char *libfsapfs_debug_print_directory_record_extended_field_type( uint8_t extended_field_type ); const char *libfsapfs_debug_print_inode_extended_field_type( uint8_t extended_field_type ); int libfsapfs_debug_print_posix_time_value( const char *function_name, const char *value_name, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, uint8_t value_type, uint32_t string_format_flags, libcerror_error_t **error ); int libfsapfs_debug_print_guid_value( const char *function_name, const char *value_name, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, uint32_t string_format_flags, libcerror_error_t **error ); int libfsapfs_debug_print_read_offsets( libbfio_handle_t *file_io_handle, libcerror_error_t **error ); #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_DEBUG_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_container_superblock.c0000664000175000017500000006304213426637446026430 0ustar00lordyestalordyesta00000000000000/* * The container superblock functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_checksum.h" #include "libfsapfs_container_superblock.h" #include "libfsapfs_debug.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfguid.h" #include "fsapfs_container_superblock.h" /* Creates a container superblock * Make sure the value container_superblock is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_container_superblock_initialize( libfsapfs_container_superblock_t **container_superblock, libcerror_error_t **error ) { static char *function = "libfsapfs_container_superblock_initialize"; if( container_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container superblock.", function ); return( -1 ); } if( *container_superblock != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container superblock value already set.", function ); return( -1 ); } *container_superblock = memory_allocate_structure( libfsapfs_container_superblock_t ); if( *container_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create container superblock.", function ); goto on_error; } if( memory_set( *container_superblock, 0, sizeof( libfsapfs_container_superblock_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear container superblock.", function ); goto on_error; } return( 1 ); on_error: if( *container_superblock != NULL ) { memory_free( *container_superblock ); *container_superblock = NULL; } return( -1 ); } /* Frees a container superblock * Returns 1 if successful or -1 on error */ int libfsapfs_container_superblock_free( libfsapfs_container_superblock_t **container_superblock, libcerror_error_t **error ) { static char *function = "libfsapfs_container_superblock_free"; if( container_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container superblock.", function ); return( -1 ); } if( *container_superblock != NULL ) { memory_free( *container_superblock ); *container_superblock = NULL; } return( 1 ); } /* Reads the container superblock * Returns 1 if successful or -1 on error */ int libfsapfs_container_superblock_read_file_io_handle( libfsapfs_container_superblock_t *container_superblock, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { uint8_t container_superblock_data[ 4096 ]; static char *function = "libfsapfs_container_superblock_read_file_io_handle"; ssize_t read_count = 0; if( container_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container superblock.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading container superblock at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek container superblock offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, (uint8_t *) &container_superblock_data, 4096, error ); if( read_count != (ssize_t) 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container superblock data.", function ); return( -1 ); } if( libfsapfs_container_superblock_read_data( container_superblock, (uint8_t *) &container_superblock_data, 4096, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container superblock data.", function ); return( -1 ); } return( 1 ); } /* Reads the container superblock * Returns 1 if successful or -1 on error */ int libfsapfs_container_superblock_read_data( libfsapfs_container_superblock_t *container_superblock, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_container_superblock_read_data"; size_t data_offset = 0; uint64_t calculated_checksum = 0; uint64_t stored_checksum = 0; uint64_t volume_object_identifier = 0; uint32_t maximum_number_of_volumes = 0; uint32_t object_subtype = 0; uint32_t object_type = 0; int object_identifier_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; int counter_index = 0; #endif if( container_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container superblock.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_container_superblock_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: container superblock data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_container_superblock_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->object_checksum, stored_checksum ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->object_transaction_identifier, container_superblock->object_transaction_identifier ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->object_type, object_type ); if( object_type != 0x80000001UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } if( memory_compare( ( (fsapfs_container_superblock_t *) data )->signature, fsapfs_container_signature, 4 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid signature.", function ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->block_size, container_superblock->block_size ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->number_of_blocks, container_superblock->number_of_blocks ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->incompatible_features_flags, container_superblock->incompatible_features_flags ); if( memory_copy( container_superblock->container_identifier, ( (fsapfs_container_superblock_t *) data )->container_identifier, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy container identifier.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->space_manager_object_identifier, container_superblock->space_manager_object_identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->object_map_block_number, container_superblock->object_map_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->reaper_object_identifier, container_superblock->reaper_object_identifier ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->maximum_number_of_volumes, maximum_number_of_volumes ); data_offset = 184; for( object_identifier_index = 0; object_identifier_index < 100; object_identifier_index++ ) { byte_stream_copy_to_uint64_little_endian( &( data[ data_offset ] ), volume_object_identifier ); data_offset += 8; container_superblock->volume_object_identifiers[ object_identifier_index ] = volume_object_identifier; /* TODO what about non-consecutive volume object identifiers ?*/ if( volume_object_identifier != 0 ) { container_superblock->number_of_volumes += 1; } } if( memory_copy( container_superblock->fusion_set_identifier, ( (fsapfs_container_superblock_t *) data )->fusion_set_identifier, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy Fusion set identifier.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->key_bag_block_number, container_superblock->key_bag_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->key_bag_number_of_blocks, container_superblock->key_bag_number_of_blocks ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->checkpoint_descriptor_area_number_of_blocks, container_superblock->checkpoint_descriptor_area_number_of_blocks ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->checkpoint_descriptor_area_block_number, container_superblock->checkpoint_descriptor_area_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->fusion_middle_tree_block_number, container_superblock->fusion_middle_tree_block_number ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object checksum\t\t\t\t: 0x%08" PRIx64 "\n", function, stored_checksum ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t\t\t: %" PRIu64 "\n", function, container_superblock->object_transaction_identifier ); libcnotify_printf( "%s: object type\t\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); libcnotify_printf( "%s: signature\t\t\t\t\t: %c%c%c%c\n", function, ( (fsapfs_container_superblock_t *) data )->signature[ 0 ], ( (fsapfs_container_superblock_t *) data )->signature[ 1 ], ( (fsapfs_container_superblock_t *) data )->signature[ 2 ], ( (fsapfs_container_superblock_t *) data )->signature[ 3 ] ); libcnotify_printf( "%s: block size\t\t\t\t\t: %" PRIu32 "\n", function, container_superblock->block_size ); libcnotify_printf( "%s: number of blocks\t\t\t\t: %" PRIu64 "\n", function, container_superblock->number_of_blocks ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->compatible_features_flags, value_64bit ); libcnotify_printf( "%s: compatible features flags\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libfsapfs_debug_print_container_compatible_features_flags( value_64bit ); libcnotify_printf( "\n" ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->read_only_compatible_features_flags, value_64bit ); libcnotify_printf( "%s: read-only compatible features flags\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libfsapfs_debug_print_container_read_only_compatible_features_flags( value_64bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: incompatible features flags\t\t\t: 0x%08" PRIx64 "\n", function, container_superblock->incompatible_features_flags ); libfsapfs_debug_print_container_incompatible_features_flags( container_superblock->incompatible_features_flags ); libcnotify_printf( "\n" ); if( libfsapfs_debug_print_guid_value( function, "container identifier\t\t\t\t", ( (fsapfs_container_superblock_t *) data )->container_identifier, 16, LIBFGUID_ENDIAN_BIG, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print UUID value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->next_object_identifier, value_64bit ); libcnotify_printf( "%s: next object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->next_transaction_identifier, value_64bit ); libcnotify_printf( "%s: next transaction identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: checkpoint descriptor area number of blocks\t: %" PRIu32 "\n", function, container_superblock->checkpoint_descriptor_area_number_of_blocks ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->checkpoint_data_area_number_of_blocks, value_32bit ); libcnotify_printf( "%s: checkpoint data area number of blocks\t\t: %" PRIu32 "\n", function, value_32bit ); libcnotify_printf( "%s: checkpoint descriptor area block number\t: %" PRIu64 "\n", function, container_superblock->checkpoint_descriptor_area_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->checkpoint_data_area_block_number, value_64bit ); libcnotify_printf( "%s: checkpoint data area block number\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown8, value_32bit ); libcnotify_printf( "%s: unknown8\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown9, value_32bit ); libcnotify_printf( "%s: unknown9\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown10, value_32bit ); libcnotify_printf( "%s: unknown10\t\t\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown11, value_32bit ); libcnotify_printf( "%s: unknown11\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown12, value_32bit ); libcnotify_printf( "%s: unknown12\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown13, value_32bit ); libcnotify_printf( "%s: unknown13\t\t\t\t\t: %" PRIu32 "\n", function, value_32bit ); libcnotify_printf( "%s: space manager object identifier\t\t: %" PRIu64 "\n", function, container_superblock->space_manager_object_identifier ); libcnotify_printf( "%s: object map block number\t\t\t: %" PRIu64 "\n", function, container_superblock->object_map_block_number ); libcnotify_printf( "%s: reaper object identifier\t\t\t: %" PRIu64 "\n", function, container_superblock->reaper_object_identifier ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown17, value_32bit ); libcnotify_printf( "%s: unknown17\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "%s: maximum number of volumes\t\t\t: %" PRIu32 "\n", function, maximum_number_of_volumes ); for( object_identifier_index = 0; object_identifier_index < 100; object_identifier_index++ ) { if( container_superblock->volume_object_identifiers[ object_identifier_index ] != 0 ) { libcnotify_printf( "%s: volume object identifier: %d\t\t\t: %" PRIu64 "\n", function, object_identifier_index, container_superblock->volume_object_identifiers[ object_identifier_index ] ); } } for( counter_index = 0; counter_index < 32; counter_index++ ) { byte_stream_copy_to_uint64_little_endian( &( ( (fsapfs_container_superblock_t *) data )->counters[ counter_index * 8 ] ), value_64bit ); if( value_64bit != 0 ) { libcnotify_printf( "%s: counter: %02d\t\t\t\t\t: 0x%08" PRIx64 "\n", function, counter_index, value_64bit ); } } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown20, value_64bit ); libcnotify_printf( "%s: unknown20\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown21, value_64bit ); libcnotify_printf( "%s: unknown21\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown22, value_64bit ); libcnotify_printf( "%s: unknown22\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown23, value_64bit ); libcnotify_printf( "%s: unknown23\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown24, value_64bit ); libcnotify_printf( "%s: unknown24\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); if( libfsapfs_debug_print_guid_value( function, "Fusion set identifier\t\t\t\t", ( (fsapfs_container_superblock_t *) data )->fusion_set_identifier, 16, LIBFGUID_ENDIAN_BIG, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print UUID value.", function ); return( -1 ); } libcnotify_printf( "%s: key bag block number\t\t\t\t: %" PRIu64 "\n", function, container_superblock->key_bag_block_number ); libcnotify_printf( "%s: key bag number of blocks\t\t\t: %" PRIu64 "\n", function, container_superblock->key_bag_number_of_blocks ); libcnotify_printf( "%s: unknown29:\n", function ); libcnotify_print_data( ( (fsapfs_container_superblock_t *) data )->unknown29, 40, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown30, value_64bit ); libcnotify_printf( "%s: unknown30\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "%s: Fusion middle tree block number\t\t: %" PRIu64 "\n", function, container_superblock->fusion_middle_tree_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->fusion_write_back_cache_object_identifier, value_64bit ); libcnotify_printf( "%s: Fusion write-back cache object identifier\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown33, value_64bit ); libcnotify_printf( "%s: unknown33\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_superblock_t *) data )->unknown34, value_64bit ); libcnotify_printf( "%s: unknown34\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( libfsapfs_checksum_calculate_fletcher64( &calculated_checksum, &( data[ 8 ] ), data_size - 8, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to calculate Fletcher-64 checksum.", function ); return( -1 ); } if( stored_checksum != calculated_checksum ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_INPUT, LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH, "%s: mismatch in checksum ( 0x%08" PRIx64 " != 0x%08" PRIx64 " ).\n", function, stored_checksum, calculated_checksum ); return( -1 ); } if( ( container_superblock->incompatible_features_flags & 0x0000000000000001 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported format version 1.", function ); return( -1 ); } if( container_superblock->block_size != 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported block size: %" PRIu32 ".", function, container_superblock->block_size ); return( -1 ); } if( ( container_superblock->checkpoint_descriptor_area_number_of_blocks & 0x80000000UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported checkpoint descriptor area number of blocks - MSB is set.", function ); return( -1 ); } if( container_superblock->checkpoint_descriptor_area_block_number == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported checkpoint descriptor area block number: %" PRIu32 ".", function, container_superblock->checkpoint_descriptor_area_block_number ); return( -1 ); } if( maximum_number_of_volumes > 100 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of volumes value out of bounds.", function ); return( -1 ); } return( 1 ); } /* Retrieves the container identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ int libfsapfs_container_superblock_get_container_identifier( libfsapfs_container_superblock_t *container_superblock, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_container_superblock_get_container_identifier"; if( container_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container superblock.", function ); return( -1 ); } if( uuid_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UUID data.", function ); return( -1 ); } if( ( uuid_data_size < 16 ) || ( uuid_data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid UUID data size value out of bounds.", function ); return( -1 ); } if( memory_copy( uuid_data, container_superblock->container_identifier, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy container identifier.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_container_reaper.h0000664000175000017500000000361713426637446025544 0ustar00lordyestalordyesta00000000000000/* * The container reaper functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CONTAINER_REAPER_H ) #define _LIBFSAPFS_CONTAINER_REAPER_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_container_reaper libfsapfs_container_reaper_t; struct libfsapfs_container_reaper { /* Dummy */ int dummy; }; int libfsapfs_container_reaper_initialize( libfsapfs_container_reaper_t **container_reaper, libcerror_error_t **error ); int libfsapfs_container_reaper_free( libfsapfs_container_reaper_t **container_reaper, libcerror_error_t **error ); int libfsapfs_container_reaper_read_file_io_handle( libfsapfs_container_reaper_t *container_reaper, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_container_reaper_read_data( libfsapfs_container_reaper_t *container_reaper, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CONTAINER_REAPER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libhmac.h0000664000175000017500000000261213426637446023615 0ustar00lordyestalordyesta00000000000000/* * The internal libhmac header * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBHMAC_H ) #define _LIBFSAPFS_LIBHMAC_H #include /* Define HAVE_LOCAL_LIBHMAC for local use of libhmac */ #if defined( HAVE_LOCAL_LIBHMAC ) #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBHMAC_DLL_IMPORT * before including libhmac.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBHMAC_DLL_IMPORT #endif #include #endif #endif libfsapfs-20190210/libfsapfs/libfsapfs_extent_reference_tree.h0000664000175000017500000000375613426637446026574 0ustar00lordyestalordyesta00000000000000/* * The extent reference tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_EXTENT_REFERENCE_TREE_H ) #define _LIBFSAPFS_EXTENT_REFERENCE_TREE_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_extent_reference_tree libfsapfs_extent_reference_tree_t; struct libfsapfs_extent_reference_tree { /* Dummy */ int dummy; }; int libfsapfs_extent_reference_tree_initialize( libfsapfs_extent_reference_tree_t **extent_reference_tree, libcerror_error_t **error ); int libfsapfs_extent_reference_tree_free( libfsapfs_extent_reference_tree_t **extent_reference_tree, libcerror_error_t **error ); int libfsapfs_extent_reference_tree_read_file_io_handle( libfsapfs_extent_reference_tree_t *extent_reference_tree, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_extent_reference_tree_read_data( libfsapfs_extent_reference_tree_t *extent_reference_tree, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_EXTENT_REFERENCE_TREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_file_system_btree.c0000664000175000017500000046720513426637446025732 0ustar00lordyestalordyesta00000000000000/* * The file system B-tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_btree_node.h" #include "libfsapfs_data_block.h" #include "libfsapfs_debug.h" #include "libfsapfs_definitions.h" #include "libfsapfs_directory_record.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_extended_attribute.h" #include "libfsapfs_file_extent.h" #include "libfsapfs_file_system_btree.h" #include "libfsapfs_inode.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_libuna.h" #include "libfsapfs_name_hash.h" #include "libfsapfs_object_map_btree.h" #include "libfsapfs_object_map_descriptor.h" #include "fsapfs_file_system.h" #include "fsapfs_object.h" /* Creates a file system B-tree * Make sure the value file_system_btree is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_file_system_btree_initialize( libfsapfs_file_system_btree_t **file_system_btree, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libfdata_vector_t *data_block_vector, libfsapfs_object_map_btree_t *object_map_btree, uint64_t root_node_block_number, uint8_t use_case_folding, libcerror_error_t **error ) { static char *function = "libfsapfs_file_system_btree_initialize"; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( *file_system_btree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file system B-tree value already set.", function ); return( -1 ); } *file_system_btree = memory_allocate_structure( libfsapfs_file_system_btree_t ); if( *file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file system B-tree.", function ); goto on_error; } if( memory_set( *file_system_btree, 0, sizeof( libfsapfs_file_system_btree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file system B-tree.", function ); memory_free( *file_system_btree ); *file_system_btree = NULL; return( -1 ); } if( libfcache_cache_initialize( &( ( *file_system_btree )->data_block_cache ), LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_DATA_BLOCKS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block cache.", function ); goto on_error; } if( libfcache_cache_initialize( &( ( *file_system_btree )->node_cache ), LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_BTREE_NODES, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create node cache.", function ); goto on_error; } ( *file_system_btree )->io_handle = io_handle; ( *file_system_btree )->encryption_context = encryption_context; ( *file_system_btree )->data_block_vector = data_block_vector; ( *file_system_btree )->object_map_btree = object_map_btree; ( *file_system_btree )->root_node_block_number = root_node_block_number; ( *file_system_btree )->use_case_folding = use_case_folding; return( 1 ); on_error: if( *file_system_btree != NULL ) { memory_free( *file_system_btree ); *file_system_btree = NULL; } return( -1 ); } /* Frees a file system B-tree * Returns 1 if successful or -1 on error */ int libfsapfs_file_system_btree_free( libfsapfs_file_system_btree_t **file_system_btree, libcerror_error_t **error ) { static char *function = "libfsapfs_file_system_btree_free"; int result = 1; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( *file_system_btree != NULL ) { /* The io_handle, data_block_vector iand object_map_btree are referenced and freed elsewhere */ if( libfcache_cache_free( &( ( *file_system_btree )->node_cache ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free node cache.", function ); result = -1; } if( libfcache_cache_free( &( ( *file_system_btree )->data_block_cache ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data block cache.", function ); result = -1; } memory_free( *file_system_btree ); *file_system_btree = NULL; } return( result ); } /* Retrieves the sub node block number from a B-tree entry * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_entry_t *entry, uint64_t *sub_node_block_number, libcerror_error_t **error ) { libfsapfs_object_map_descriptor_t *object_map_descriptor = NULL; static char *function = "libfsapfs_file_system_btree_get_sub_node_block_number_from_entry"; uint64_t sub_node_object_identifier = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( entry->value_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry - missing value data.", function ); return( -1 ); } if( entry->value_data_size != 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid B-tree entry - unsupported value data size.", function ); return( -1 ); } if( sub_node_block_number == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node block number.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( entry->value_data, sub_node_object_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: sub node object identifier: %" PRIu64 "\n", function, sub_node_object_identifier ); } #endif result = libfsapfs_object_map_btree_get_descriptor_by_object_identifier( file_system_btree->object_map_btree, file_io_handle, sub_node_object_identifier, &object_map_descriptor, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve object map descriptor for sub node object identifier: %" PRIu64 ".", function, sub_node_object_identifier ); goto on_error; } else if( result != 0 ) { if( object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid object map descriptor.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: sub node block number: %" PRIu64 "\n", function, object_map_descriptor->physical_address ); } #endif *sub_node_block_number = object_map_descriptor->physical_address; if( libfsapfs_object_map_descriptor_free( &object_map_descriptor, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object map descriptor.", function ); goto on_error; } } return( result ); on_error: if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } return( -1 ); } /* Retrieves the file system B-tree root node * Returns 1 if successful or -1 on error */ int libfsapfs_file_system_btree_get_root_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t root_node_block_number, libfsapfs_btree_node_t **root_node, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfsapfs_btree_node_t *node = NULL; libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_file_system_btree_get_root_node"; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( file_system_btree->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file system B-tree entry - missing IO handle.", function ); return( -1 ); } if( root_node_block_number > (uint64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid root node block number value out of bounds.", function ); return( -1 ); } if( root_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid root node.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( file_system_btree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ result = libfcache_cache_get_value_by_identifier( file_system_btree->node_cache, 0, (off64_t) root_node_block_number, 0, &cache_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } else if( result == 0 ) { if( libfdata_vector_get_element_value_by_index( file_system_btree->data_block_vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) file_system_btree->data_block_cache, (int) root_node_block_number, (intptr_t **) &data_block, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data block: %" PRIu64 ".", function, root_node_block_number ); goto on_error; } if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 ".", function, root_node_block_number ); goto on_error; } if( libfsapfs_btree_node_initialize( &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree node.", function ); goto on_error; } if( libfsapfs_btree_node_read_data( node, data_block->data, data_block->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node.", function ); goto on_error; } if( ( node->object_type != 0x00000002UL ) && ( node->object_type != 0x10000002UL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, node->object_type ); goto on_error; } if( node->object_subtype != 0x0000000eUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, node->object_subtype ); goto on_error; } if( ( ( node->node_header->flags & 0x0001 ) == 0 ) || ( ( node->node_header->flags & 0x0004 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%04" PRIx16 ".", function, ( *root_node )->node_header->flags ); goto on_error; } if( node->footer->node_size != 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node size value out of bounds.", function ); goto on_error; } if( node->footer->key_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key size value out of bounds.", function ); goto on_error; } if( node->footer->value_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value size value out of bounds.", function ); goto on_error; } if( libfcache_cache_set_value_by_identifier( file_system_btree->node_cache, 0, (off64_t) root_node_block_number, 0, (intptr_t *) node, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache.", function ); goto on_error; } node = NULL; if( libfcache_cache_get_value_by_identifier( file_system_btree->node_cache, 0, (off64_t) root_node_block_number, 0, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( file_system_btree->io_handle->profiler, profiler_start_timestamp, function, root_node_block_number * file_system_btree->io_handle->block_size, file_system_btree->io_handle->block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfcache_cache_value_get_value( cache_value, (intptr_t **) root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve root node.", function ); goto on_error; } return( 1 ); on_error: if( node != NULL ) { libfsapfs_btree_node_free( &node, NULL ); } return( -1 ); } /* Retrieves a file system B-tree sub node * Returns 1 if successful or -1 on error */ int libfsapfs_file_system_btree_get_sub_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t sub_node_block_number, libfsapfs_btree_node_t **sub_node, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfsapfs_btree_node_t *node = NULL; libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_file_system_btree_get_sub_node"; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( file_system_btree->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file system B-tree entry - missing IO handle.", function ); return( -1 ); } if( sub_node_block_number > (uint64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sub node block number value out of bounds.", function ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( file_system_btree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ result = libfcache_cache_get_value_by_identifier( file_system_btree->node_cache, 0, (off64_t) sub_node_block_number, 0, &cache_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } else if( result == 0 ) { if( libfdata_vector_get_element_value_by_index( file_system_btree->data_block_vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) file_system_btree->data_block_cache, (int) sub_node_block_number, (intptr_t **) &data_block, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } if( libfsapfs_btree_node_initialize( &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree node.", function ); goto on_error; } if( libfsapfs_btree_node_read_data( node, data_block->data, data_block->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node.", function ); goto on_error; } if( ( node->object_type != 0x00000003UL ) && ( node->object_type != 0x10000003UL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, node->object_type ); goto on_error; } if( node->object_subtype != 0x0000000eUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, node->object_subtype ); goto on_error; } if( ( ( node->node_header->flags & 0x0001 ) != 0 ) || ( ( node->node_header->flags & 0x0004 ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%04" PRIx16 ".", function, node->node_header->flags ); goto on_error; } if( libfcache_cache_set_value_by_identifier( file_system_btree->node_cache, 0, (off64_t) sub_node_block_number, 0, (intptr_t *) node, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache.", function ); goto on_error; } node = NULL; if( libfcache_cache_get_value_by_identifier( file_system_btree->node_cache, 0, (off64_t) sub_node_block_number, 0, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( file_system_btree->io_handle->profiler, profiler_start_timestamp, function, sub_node_block_number * file_system_btree->io_handle->block_size, file_system_btree->io_handle->block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfcache_cache_value_get_value( cache_value, (intptr_t **) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node.", function ); goto on_error; } return( 1 ); on_error: if( node != NULL ) { libfsapfs_btree_node_free( &node, NULL ); } return( -1 ); } /* Retrieves an entry for a specific identifier from the file system B-tree node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_entry_from_node_by_identifier( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t identifier, uint8_t data_type, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; static char *function = "libfsapfs_file_system_btree_get_entry_from_node_by_identifier"; uint64_t file_system_identifier = 0; uint64_t lookup_identifier = 0; uint8_t file_system_data_type = 0; int btree_entry_index = 0; int is_leaf_node = 0; int number_of_entries = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving B-tree entry identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, identifier, data_type, libfsapfs_debug_print_file_system_data_type( data_type ) ); } #endif is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); return( -1 ); } if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); return( -1 ); } lookup_identifier = ( (uint64_t) data_type << 60 ) | identifier; for( btree_entry_index = 0; btree_entry_index < number_of_entries; btree_entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, btree_entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); return( -1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, btree_entry_index ); return( -1 ); } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, btree_entry_index ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( entry->key_data, file_system_identifier ); file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, btree_entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif if( is_leaf_node != 0 ) { if( file_system_identifier == lookup_identifier ) { *btree_entry = entry; return( 1 ); } } else { file_system_identifier &= 0x0fffffffffffffffUL; if( file_system_identifier >= identifier ) { if( ( previous_entry == NULL ) || ( ( file_system_identifier == identifier ) && ( file_system_data_type <= data_type ) ) ) { previous_entry = entry; } *btree_entry = previous_entry; return( 1 ); } previous_entry = entry; } } if( is_leaf_node == 0 ) { *btree_entry = previous_entry; return( 1 ); } return( 0 ); } /* Retrieves an entry for a specific identifier from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_entry_by_identifier( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t identifier, uint8_t data_type, libfsapfs_btree_node_t **btree_node, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_node_t *node = NULL; static char *function = "libfsapfs_file_system_btree_get_entry_by_identifier"; uint64_t sub_node_block_number = 0; int is_leaf_node = 0; int recursion_depth = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); return( -1 ); } do { if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); return( -1 ); } result = libfsapfs_file_system_btree_get_entry_from_node_by_identifier( file_system_btree, node, identifier, data_type, &entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); return( -1 ); } else if( result == 0 ) { break; } if( is_leaf_node != 0 ) { *btree_node = node; *btree_entry = entry; return( 1 ); } if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); return( -1 ); } node = NULL; if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); return( -1 ); } recursion_depth++; } while( is_leaf_node == 0 ); return( 0 ); } /* Retrieves a directory record for an UTF-8 encoded name from the file system B-tree leaf node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf8_name( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_directory_record_t *safe_directory_record = NULL; static char *function = "libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf8_name"; uint64_t file_system_identifier = 0; uint64_t lookup_identifier = 0; int compare_result = 0; int entry_index = 0; int is_leaf_node = 0; int number_of_entries = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t file_system_data_type = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving directory record: %" PRIu64 "\n", function, parent_identifier ); } #endif is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a leaf node.", function ); goto on_error; } if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } lookup_identifier = ( (uint64_t) LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD << 60 ) | parent_identifier; for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, entry_index ); goto on_error; } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) entry->key_data )->file_system_identifier, file_system_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif if( file_system_identifier == lookup_identifier ) { if( libfsapfs_directory_record_initialize( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create directory record.", function ); goto on_error; } if( libfsapfs_directory_record_read_key_data( safe_directory_record, entry->key_data, (size_t) entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record key data.", function ); goto on_error; } compare_result = libfsapfs_directory_record_compare_name_with_utf8_string( safe_directory_record, utf8_string, utf8_string_length, name_hash, file_system_btree->use_case_folding, error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name of directory record.", function ); goto on_error; } else if( compare_result == LIBUNA_COMPARE_EQUAL ) { if( libfsapfs_directory_record_read_value_data( safe_directory_record, entry->value_data, (size_t) entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record value data.", function ); goto on_error; } *directory_record = safe_directory_record; return( 1 ); } if( libfsapfs_directory_record_free( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory record.", function ); goto on_error; } } } return( 0 ); on_error: if( safe_directory_record != NULL ) { libfsapfs_directory_record_free( &safe_directory_record, NULL ); } return( -1 ); } /* Retrieves a directory record for an UTF-8 encoded name from the file system B-tree branch node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf8_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, int recursion_depth, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; libfsapfs_btree_node_t *sub_node = NULL; libfsapfs_directory_record_t *safe_directory_record = NULL; static char *function = "libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf8_name"; uint64_t file_system_identifier = 0; uint64_t sub_node_block_number = 0; uint8_t file_system_data_type = 0; int compare_result = 0; int entry_index = 0; int is_leaf_node = 0; int number_of_entries = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving directory record: %" PRIu64 "\n", function, parent_identifier ); } #endif is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a branch node.", function ); goto on_error; } if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, entry_index ); goto on_error; } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) entry->key_data )->file_system_identifier, file_system_identifier ); file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif file_system_identifier &= 0x0fffffffffffffffUL; if( ( file_system_identifier > parent_identifier ) || ( ( file_system_identifier == parent_identifier ) && ( file_system_data_type > LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD ) ) ) { break; } if( ( file_system_identifier == parent_identifier ) && ( file_system_data_type == LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD ) ) { if( libfsapfs_directory_record_initialize( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create directory record.", function ); goto on_error; } if( libfsapfs_directory_record_read_key_data( safe_directory_record, entry->key_data, (size_t) entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record key data.", function ); goto on_error; } /* The directory records are sorted by case-sensitive name */ compare_result = libfsapfs_directory_record_compare_name_with_utf8_string( safe_directory_record, utf8_string, utf8_string_length, name_hash, 0, error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name of directory record.", function ); goto on_error; } if( libfsapfs_directory_record_free( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory record.", function ); goto on_error; } if( compare_result == LIBUNA_COMPARE_LESS ) { break; } } previous_entry = entry; } if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf8_name( file_system_btree, sub_node, parent_identifier, utf8_string, utf8_string_length, name_hash, directory_record, error ); } else { result = libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf8_name( file_system_btree, file_io_handle, sub_node, parent_identifier, utf8_string, utf8_string_length, name_hash, directory_record, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry by name.", function ); goto on_error; } sub_node = NULL; return( result ); on_error: if( *directory_record != NULL ) { libfsapfs_directory_record_free( directory_record, NULL ); } if( safe_directory_record != NULL ) { libfsapfs_directory_record_free( &safe_directory_record, NULL ); } return( -1 ); } /* Retrieves a directory record for an UTF-16 encoded name from the file system B-tree leaf node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf16_name( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_directory_record_t *safe_directory_record = NULL; static char *function = "libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf16_name"; uint64_t file_system_identifier = 0; uint64_t lookup_identifier = 0; int compare_result = 0; int entry_index = 0; int is_leaf_node = 0; int number_of_entries = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t file_system_data_type = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving directory record: %" PRIu64 "\n", function, parent_identifier ); } #endif is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a leaf node.", function ); goto on_error; } if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } lookup_identifier = ( (uint64_t) LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD << 60 ) | parent_identifier; for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, entry_index ); goto on_error; } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) entry->key_data )->file_system_identifier, file_system_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif if( file_system_identifier == lookup_identifier ) { if( libfsapfs_directory_record_initialize( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create directory record.", function ); goto on_error; } if( libfsapfs_directory_record_read_key_data( safe_directory_record, entry->key_data, (size_t) entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record key data.", function ); goto on_error; } compare_result = libfsapfs_directory_record_compare_name_with_utf16_string( safe_directory_record, utf16_string, utf16_string_length, name_hash, file_system_btree->use_case_folding, error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-16 string with name of directory record.", function ); goto on_error; } else if( compare_result == LIBUNA_COMPARE_EQUAL ) { if( libfsapfs_directory_record_read_value_data( safe_directory_record, entry->value_data, (size_t) entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record value data.", function ); goto on_error; } *directory_record = safe_directory_record; return( 1 ); } if( libfsapfs_directory_record_free( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory record.", function ); goto on_error; } } } return( 0 ); on_error: if( safe_directory_record != NULL ) { libfsapfs_directory_record_free( &safe_directory_record, NULL ); } return( -1 ); } /* Retrieves a directory record for an UTF-16 encoded name from the file system B-tree branch node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf16_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, int recursion_depth, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; libfsapfs_btree_node_t *sub_node = NULL; libfsapfs_directory_record_t *safe_directory_record = NULL; static char *function = "libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf16_name"; uint64_t file_system_identifier = 0; uint64_t sub_node_block_number = 0; uint8_t file_system_data_type = 0; int compare_result = 0; int entry_index = 0; int is_leaf_node = 0; int number_of_entries = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving directory record: %" PRIu64 "\n", function, parent_identifier ); } #endif is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a branch node.", function ); goto on_error; } if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, entry_index ); goto on_error; } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) entry->key_data )->file_system_identifier, file_system_identifier ); file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif file_system_identifier &= 0x0fffffffffffffffUL; if( ( file_system_identifier > parent_identifier ) || ( ( file_system_identifier == parent_identifier ) && ( file_system_data_type > LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD ) ) ) { break; } if( ( file_system_identifier == parent_identifier ) && ( file_system_data_type == LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD ) ) { if( libfsapfs_directory_record_initialize( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create directory record.", function ); goto on_error; } if( libfsapfs_directory_record_read_key_data( safe_directory_record, entry->key_data, (size_t) entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record key data.", function ); goto on_error; } /* The directory records are sorted by case-sensitive name */ compare_result = libfsapfs_directory_record_compare_name_with_utf16_string( safe_directory_record, utf16_string, utf16_string_length, name_hash, 0, error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-16 string with name of directory record.", function ); goto on_error; } if( libfsapfs_directory_record_free( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory record.", function ); goto on_error; } if( compare_result == LIBUNA_COMPARE_LESS ) { break; } } previous_entry = entry; } if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf16_name( file_system_btree, sub_node, parent_identifier, utf16_string, utf16_string_length, name_hash, directory_record, error ); } else { result = libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf16_name( file_system_btree, file_io_handle, sub_node, parent_identifier, utf16_string, utf16_string_length, name_hash, directory_record, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry by name.", function ); goto on_error; } sub_node = NULL; return( result ); on_error: if( *directory_record != NULL ) { libfsapfs_directory_record_free( directory_record, NULL ); } if( safe_directory_record != NULL ) { libfsapfs_directory_record_free( &safe_directory_record, NULL ); } return( -1 ); } /* Retrieves directory entries for a specific parent identifier from the file system B-tree leaf node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_directory_entries_from_leaf_node( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t parent_identifier, libcdata_array_t *directory_entries, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_directory_record_t *directory_record = NULL; static char *function = "libfsapfs_file_system_btree_get_directory_entries_from_leaf_node"; uint64_t file_system_identifier = 0; uint64_t lookup_identifier = 0; int btree_entry_index = 0; int entry_index = 0; int found_directory_entry = 0; int is_leaf_node = 0; int number_of_entries = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t file_system_data_type = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a leaf node.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving directory entries of: %" PRIu64 "\n", function, parent_identifier ); } #endif if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } lookup_identifier = ( (uint64_t) LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD << 60 ) | parent_identifier; for( btree_entry_index = 0; btree_entry_index < number_of_entries; btree_entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, btree_entry_index, &btree_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, btree_entry_index ); goto on_error; } if( btree_entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, btree_entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) btree_entry->key_data )->file_system_identifier, file_system_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, btree_entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif if( ( file_system_identifier & 0x0fffffffffffffffUL ) > parent_identifier ) { break; } if( file_system_identifier != lookup_identifier ) { continue; } if( libfsapfs_directory_record_initialize( &directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create directory record.", function ); goto on_error; } if( libfsapfs_directory_record_read_key_data( directory_record, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record key data.", function ); goto on_error; } if( libfsapfs_directory_record_read_value_data( directory_record, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read directory record value data.", function ); goto on_error; } if( libcdata_array_append_entry( directory_entries, &entry_index, (intptr_t *) directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append directory record to array.", function ); goto on_error; } directory_record = NULL; found_directory_entry = 1; } return( found_directory_entry ); on_error: if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } libcdata_array_empty( directory_entries, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_directory_record_free, NULL ); return( -1 ); } /* Retrieves directory entries for a specific parent identifier from the file system B-tree branch node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_directory_entries_from_branch_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t parent_identifier, libcdata_array_t *directory_entries, int recursion_depth, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; libfsapfs_btree_node_t *sub_node = NULL; static char *function = "libfsapfs_file_system_btree_get_directory_entries_from_branch_node"; uint64_t file_system_identifier = 0; uint64_t sub_node_block_number = 0; uint8_t file_system_data_type = 0; int entry_index = 0; int found_directory_entry = 0; int is_leaf_node = 0; int number_of_entries = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a branch node.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving directory entries of: %" PRIu64 "\n", function, parent_identifier ); } #endif if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, entry_index ); goto on_error; } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) entry->key_data )->file_system_identifier, file_system_identifier ); file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif file_system_identifier &= 0x0fffffffffffffffUL; if( ( file_system_identifier > parent_identifier ) || ( ( file_system_identifier == parent_identifier ) && ( file_system_data_type > LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD ) ) ) { break; } if( ( file_system_identifier == parent_identifier ) && ( file_system_data_type == LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD ) && ( previous_entry != NULL ) ) { if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_entries_from_leaf_node( file_system_btree, sub_node, parent_identifier, directory_entries, error ); } else { result = libfsapfs_file_system_btree_get_directory_entries_from_branch_node( file_system_btree, file_io_handle, sub_node, parent_identifier, directory_entries, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entries: %" PRIu64 " from file system B-tree sub node.", function, parent_identifier ); goto on_error; } else if( result != 0 ) { found_directory_entry = 1; } sub_node = NULL; } previous_entry = entry; } if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_entries_from_leaf_node( file_system_btree, sub_node, parent_identifier, directory_entries, error ); } else { result = libfsapfs_file_system_btree_get_directory_entries_from_branch_node( file_system_btree, file_io_handle, sub_node, parent_identifier, directory_entries, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entries: %" PRIu64 " from file system B-tree sub node.", function, parent_identifier ); goto on_error; } else if( result != 0 ) { found_directory_entry = 1; } return( found_directory_entry ); on_error: libcdata_array_empty( directory_entries, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_directory_record_free, NULL ); return( -1 ); } /* Retrieves directory entries for a specific parent identifier from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_directory_entries( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, libcdata_array_t *directory_entries, libcerror_error_t **error ) { libfsapfs_btree_node_t *root_node = NULL; static char *function = "libfsapfs_file_system_btree_get_directory_entries"; int is_leaf_node = 0; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( file_system_btree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving directory entries of: %" PRIu64 "\n", function, parent_identifier ); } #endif if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); goto on_error; } if( root_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree root node.", function ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( root_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree root node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_entries_from_leaf_node( file_system_btree, root_node, parent_identifier, directory_entries, error ); } else { result = libfsapfs_file_system_btree_get_directory_entries_from_branch_node( file_system_btree, file_io_handle, root_node, parent_identifier, directory_entries, 0, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entries: %" PRIu64 " from file system B-tree root node.", function, parent_identifier ); goto on_error; } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( file_system_btree->io_handle->profiler, profiler_start_timestamp, function, 0, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ return( result ); on_error: libcdata_array_empty( directory_entries, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_directory_record_free, NULL ); return( -1 ); } /* Retrieves extended attributes for a specific identifier from the file system B-tree leaf node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_extended_attributes_from_leaf_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *extended_attributes, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_extended_attribute_t *extended_attribute = NULL; static char *function = "libfsapfs_file_system_btree_get_extended_attributes_from_leaf_node"; uint64_t file_system_identifier = 0; uint64_t lookup_identifier = 0; int btree_entry_index = 0; int entry_index = 0; int found_extended_attribute = 0; int is_leaf_node = 0; int number_of_entries = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t file_system_data_type = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a leaf node.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving extended attributes of: %" PRIu64 "\n", function, identifier ); } #endif if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } lookup_identifier = ( (uint64_t) LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_EXTENDED_ATTRIBUTE << 60 ) | identifier; for( btree_entry_index = 0; btree_entry_index < number_of_entries; btree_entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, btree_entry_index, &btree_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, btree_entry_index ); goto on_error; } if( btree_entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, btree_entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) btree_entry->key_data )->file_system_identifier, file_system_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, btree_entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif if( ( file_system_identifier & 0x0fffffffffffffffUL ) > identifier ) { break; } if( file_system_identifier != lookup_identifier ) { continue; } if( libfsapfs_extended_attribute_initialize( &extended_attribute, file_system_btree->io_handle, file_io_handle, file_system_btree->encryption_context, file_system_btree, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create extended attribute.", function ); goto on_error; } if( libfsapfs_extended_attribute_read_key_data( extended_attribute, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read extended attribute key data.", function ); goto on_error; } if( libfsapfs_extended_attribute_read_value_data( extended_attribute, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read extended attribute value data.", function ); goto on_error; } if( libcdata_array_append_entry( extended_attributes, &entry_index, (intptr_t *) extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append extended attribute to array.", function ); goto on_error; } extended_attribute = NULL; found_extended_attribute = 1; } return( found_extended_attribute ); on_error: if( extended_attribute != NULL ) { libfsapfs_internal_extended_attribute_free( (libfsapfs_internal_extended_attribute_t **) &extended_attribute, NULL ); } libcdata_array_empty( extended_attributes, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_internal_extended_attribute_free, NULL ); return( -1 ); } /* Retrieves extended attributes for a specific identifier from the file system B-tree branch node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_extended_attributes_from_branch_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *extended_attributes, int recursion_depth, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; libfsapfs_btree_node_t *sub_node = NULL; static char *function = "libfsapfs_file_system_btree_get_extended_attributes_from_branch_node"; uint64_t file_system_identifier = 0; uint64_t sub_node_block_number = 0; uint8_t file_system_data_type = 0; int entry_index = 0; int found_extended_attribute = 0; int is_leaf_node = 0; int number_of_entries = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a branch node.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving extended attributes of: %" PRIu64 "\n", function, identifier ); } #endif if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, entry_index ); goto on_error; } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) entry->key_data )->file_system_identifier, file_system_identifier ); file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif file_system_identifier &= 0x0fffffffffffffffUL; if( ( file_system_identifier > identifier ) || ( ( file_system_identifier == identifier ) && ( file_system_data_type > LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_EXTENDED_ATTRIBUTE ) ) ) { break; } if( ( file_system_identifier == identifier ) && ( file_system_data_type == LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_EXTENDED_ATTRIBUTE ) && ( previous_entry != NULL ) ) { if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_extended_attributes_from_leaf_node( file_system_btree, file_io_handle, sub_node, identifier, extended_attributes, error ); } else { result = libfsapfs_file_system_btree_get_extended_attributes_from_branch_node( file_system_btree, file_io_handle, sub_node, identifier, extended_attributes, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attributes: %" PRIu64 " from file system B-tree sub node.", function, identifier ); goto on_error; } else if( result != 0 ) { found_extended_attribute = 1; } sub_node = NULL; } previous_entry = entry; } if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_extended_attributes_from_leaf_node( file_system_btree, file_io_handle, sub_node, identifier, extended_attributes, error ); } else { result = libfsapfs_file_system_btree_get_extended_attributes_from_branch_node( file_system_btree, file_io_handle, sub_node, identifier, extended_attributes, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attributes: %" PRIu64 " from file system B-tree sub node.", function, identifier ); goto on_error; } else if( result != 0 ) { found_extended_attribute = 1; } return( found_extended_attribute ); on_error: libcdata_array_empty( extended_attributes, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_internal_extended_attribute_free, NULL ); return( -1 ); } /* Retrieves extended attributes for a specific identifier from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_extended_attributes( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t identifier, libcdata_array_t *extended_attributes, libcerror_error_t **error ) { libfsapfs_btree_node_t *root_node = NULL; static char *function = "libfsapfs_file_system_btree_get_extended_attributes"; int is_leaf_node = 0; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( file_system_btree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving extended attributes of: %" PRIu64 "\n", function, identifier ); } #endif if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); goto on_error; } if( root_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree root node.", function ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( root_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree root node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_extended_attributes_from_leaf_node( file_system_btree, file_io_handle, root_node, identifier, extended_attributes, error ); } else { result = libfsapfs_file_system_btree_get_extended_attributes_from_branch_node( file_system_btree, file_io_handle, root_node, identifier, extended_attributes, 0, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attributes: %" PRIu64 " from file system B-tree root node.", function, identifier ); goto on_error; } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( file_system_btree->io_handle->profiler, profiler_start_timestamp, function, 0, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ return( result ); on_error: libcdata_array_empty( extended_attributes, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_internal_extended_attribute_free, NULL ); return( -1 ); } /* Retrieves file extents for a specific identifier from the file system B-tree leaf node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_file_extents_from_leaf_node( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *file_extents, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_file_extent_t *file_extent = NULL; static char *function = "libfsapfs_file_system_btree_get_file_extents_from_leaf_node"; uint64_t file_system_identifier = 0; uint64_t lookup_identifier = 0; int btree_entry_index = 0; int entry_index = 0; int found_file_extent = 0; int is_leaf_node = 0; int number_of_entries = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t file_system_data_type = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a leaf node.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving file extents of: %" PRIu64 "\n", function, identifier ); } #endif if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } lookup_identifier = ( (uint64_t) LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_FILE_EXTENT << 60 ) | identifier; for( btree_entry_index = 0; btree_entry_index < number_of_entries; btree_entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, btree_entry_index, &btree_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, btree_entry_index ); goto on_error; } if( btree_entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, btree_entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) btree_entry->key_data )->file_system_identifier, file_system_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, btree_entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif if( ( file_system_identifier & 0x0fffffffffffffffUL ) > identifier ) { break; } if( file_system_identifier != lookup_identifier ) { continue; } if( libfsapfs_file_extent_initialize( &file_extent, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file extent.", function ); goto on_error; } if( libfsapfs_file_extent_read_key_data( file_extent, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read file extent key data.", function ); goto on_error; } if( libfsapfs_file_extent_read_value_data( file_extent, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read file extent value data.", function ); goto on_error; } if( libcdata_array_append_entry( file_extents, &entry_index, (intptr_t *) file_extent, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append file extent to array.", function ); goto on_error; } file_extent = NULL; found_file_extent = 1; } return( found_file_extent ); on_error: if( file_extent != NULL ) { libfsapfs_file_extent_free( &file_extent, NULL ); } libcdata_array_empty( file_extents, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_extent_free, NULL ); return( -1 ); } /* Retrieves file extents for a specific identifier from the file system B-tree branch node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_file_extents_from_branch_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *file_extents, int recursion_depth, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; libfsapfs_btree_node_t *sub_node = NULL; static char *function = "libfsapfs_file_system_btree_get_file_extents_from_branch_node"; uint64_t file_extent_logical_address = 0; uint64_t file_system_identifier = 0; uint64_t sub_node_block_number = 0; uint8_t file_system_data_type = 0; int entry_index = 0; int found_file_extent = 0; int is_leaf_node = 0; int number_of_entries = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); goto on_error; } else if( is_leaf_node != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - not a branch node.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving file extents of: %" PRIu64 "\n", function, identifier ); } #endif if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, entry_index ); goto on_error; } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, entry_index ); goto on_error; } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) entry->key_data )->file_system_identifier, file_system_identifier ); file_system_data_type = (uint8_t) ( file_system_identifier >> 60 ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 ", data type: 0x%" PRIx64 " %s\n", function, entry_index, file_system_identifier & 0x0fffffffffffffffUL, file_system_data_type, libfsapfs_debug_print_file_system_data_type( file_system_data_type ) ); } #endif file_system_identifier &= 0x0fffffffffffffffUL; if( ( file_system_identifier > identifier ) || ( ( file_system_identifier == identifier ) && ( file_system_data_type > LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_FILE_EXTENT ) ) ) { break; } if( ( file_system_identifier == identifier ) && ( file_system_data_type == LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_FILE_EXTENT ) ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_file_extent_t *) entry->key_data )->logical_address, file_extent_logical_address ); } else { file_extent_logical_address = 0; } if( ( file_system_identifier == identifier ) && ( file_system_data_type == LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_FILE_EXTENT ) && ( file_extent_logical_address > 0 ) && ( previous_entry != NULL ) ) { if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_file_extents_from_leaf_node( file_system_btree, sub_node, identifier, file_extents, error ); } else { result = libfsapfs_file_system_btree_get_file_extents_from_branch_node( file_system_btree, file_io_handle, sub_node, identifier, file_extents, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extents: %" PRIu64 " from file system B-tree sub node.", function, identifier ); goto on_error; } else if( result != 0 ) { found_file_extent = 1; } sub_node = NULL; } previous_entry = entry; } /* Fall-through for the last B-Tree entry */ if( libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( file_system_btree, file_io_handle, previous_entry, &sub_node_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine sub node block number.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_sub_node( file_system_btree, file_io_handle, sub_node_block_number, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( sub_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree sub node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_file_extents_from_leaf_node( file_system_btree, sub_node, identifier, file_extents, error ); } else { result = libfsapfs_file_system_btree_get_file_extents_from_branch_node( file_system_btree, file_io_handle, sub_node, identifier, file_extents, recursion_depth + 1, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extents: %" PRIu64 " from file system B-tree sub node.", function, identifier ); goto on_error; } else if( result != 0 ) { found_file_extent = 1; } return( found_file_extent ); on_error: libcdata_array_empty( file_extents, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_extent_free, NULL ); return( -1 ); } /* Retrieves file extents for a specific identifier from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_file_extents( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t identifier, libcdata_array_t *file_extents, libcerror_error_t **error ) { libfsapfs_btree_node_t *root_node = NULL; static char *function = "libfsapfs_file_system_btree_get_file_extents"; int is_leaf_node = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving file extents of: %" PRIu64 "\n", function, identifier ); } #endif if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( root_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree root node is a leaf node.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_file_extents_from_leaf_node( file_system_btree, root_node, identifier, file_extents, error ); } else { result = libfsapfs_file_system_btree_get_file_extents_from_branch_node( file_system_btree, file_io_handle, root_node, identifier, file_extents, 0, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extents: %" PRIu64 " from file system B-tree root node.", function, identifier ); goto on_error; } return( result ); on_error: libcdata_array_empty( file_extents, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_extent_free, NULL ); return( -1 ); } /* Retrieves an inode for a specific identifier from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_inode_by_identifier( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t identifier, libfsapfs_inode_t **inode, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_btree_node_t *btree_node = NULL; static char *function = "libfsapfs_file_system_btree_get_inode_by_identifier"; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( *inode != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid inode value already set.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( file_system_btree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving inode of: %" PRIu64 "\n", function, identifier ); } #endif result = libfsapfs_file_system_btree_get_entry_by_identifier( file_system_btree, file_io_handle, identifier, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_INODE, &btree_node, &btree_entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); goto on_error; } else if( result != 0 ) { if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); goto on_error; } if( libfsapfs_inode_initialize( inode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create inode.", function ); goto on_error; } if( libfsapfs_inode_read_key_data( *inode, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode key data.", function ); goto on_error; } if( libfsapfs_inode_read_value_data( *inode, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode value data.", function ); goto on_error; } btree_node = NULL; } #if defined( HAVE_PROFILER ) if( file_system_btree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( file_system_btree->io_handle->profiler, profiler_start_timestamp, function, 0, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ return( result ); on_error: if( *inode != NULL ) { libfsapfs_inode_free( inode, NULL ); } return( -1 ); } /* Retrieves an inode for an UTF-8 encoded name from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_inode_by_utf8_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_btree_node_t *btree_node = NULL; libfsapfs_btree_node_t *root_node = NULL; static char *function = "libfsapfs_file_system_btree_get_inode_by_utf8_name"; uint64_t lookup_identifier = 0; uint32_t name_hash = 0; int is_leaf_node = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string length value exceeds maximum.", function ); return( -1 ); } if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( *inode != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid inode value already set.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( *directory_record != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid directory record value already set.", function ); return( -1 ); } if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( root_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree root node is a leaf node.", function ); goto on_error; } if( libfsapfs_name_hash_calculate_from_utf8_string( &name_hash, utf8_string, utf8_string_length, file_system_btree->use_case_folding, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine name hash.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf8_name( file_system_btree, root_node, parent_identifier, utf8_string, utf8_string_length, name_hash, directory_record, error ); } else { result = libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf8_name( file_system_btree, file_io_handle, root_node, parent_identifier, utf8_string, utf8_string_length, name_hash, directory_record, 0, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry by name.", function ); goto on_error; } else if( result != 0 ) { if( libfsapfs_directory_record_get_identifier( *directory_record, &lookup_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry identifier.", function ); goto on_error; } } root_node = NULL; if( result != 0 ) { result = libfsapfs_file_system_btree_get_entry_by_identifier( file_system_btree, file_io_handle, lookup_identifier, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_INODE, &btree_node, &btree_entry, error ); if( result != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); goto on_error; } if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); goto on_error; } if( libfsapfs_inode_initialize( inode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create inode.", function ); goto on_error; } if( libfsapfs_inode_read_key_data( *inode, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode key data.", function ); goto on_error; } if( libfsapfs_inode_read_value_data( *inode, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode value data.", function ); goto on_error; } btree_node = NULL; } return( result ); on_error: if( *directory_record != NULL ) { libfsapfs_directory_record_free( directory_record, NULL ); } if( *inode != NULL ) { libfsapfs_inode_free( inode, NULL ); } return( -1 ); } /* Retrieves an inode for an UTF-8 encoded path from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_inode_by_utf8_path( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_btree_node_t *btree_node = NULL; libfsapfs_btree_node_t *root_node = NULL; libfsapfs_directory_record_t *safe_directory_record = NULL; const uint8_t *utf8_string_segment = NULL; static char *function = "libfsapfs_file_system_btree_get_inode_by_utf8_path"; libuna_unicode_character_t unicode_character = 0; size_t utf8_string_index = 0; size_t utf8_string_segment_length = 0; uint64_t lookup_identifier = 0; uint32_t name_hash = 0; int is_leaf_node = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-8 string.", function ); return( -1 ); } if( utf8_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-8 string length value exceeds maximum.", function ); return( -1 ); } if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( *inode != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid inode value already set.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( *directory_record != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid directory record value already set.", function ); return( -1 ); } if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( root_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree root node is a leaf node.", function ); goto on_error; } lookup_identifier = parent_identifier; if( utf8_string_length > 0 ) { /* Ignore a leading separator */ if( utf8_string[ utf8_string_index ] == (uint8_t) LIBFSAPFS_SEPARATOR ) { utf8_string_index++; } } if( ( utf8_string_length == 0 ) || ( utf8_string_length == 1 ) ) { result = 1; } else while( utf8_string_index < utf8_string_length ) { utf8_string_segment = &( utf8_string[ utf8_string_index ] ); utf8_string_segment_length = utf8_string_index; while( utf8_string_index < utf8_string_length ) { if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_length, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-8 string to Unicode character.", function ); goto on_error; } if( ( unicode_character == (libuna_unicode_character_t) LIBFSAPFS_SEPARATOR ) || ( unicode_character == 0 ) ) { utf8_string_segment_length += 1; break; } } utf8_string_segment_length = utf8_string_index - utf8_string_segment_length; if( utf8_string_segment_length == 0 ) { result = 0; } else { if( libfsapfs_name_hash_calculate_from_utf8_string( &name_hash, utf8_string_segment, utf8_string_segment_length, file_system_btree->use_case_folding, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine name hash.", function ); goto on_error; } if( safe_directory_record != NULL ) { if( libfsapfs_directory_record_free( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory record.", function ); goto on_error; } } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf8_name( file_system_btree, root_node, lookup_identifier, utf8_string_segment, utf8_string_segment_length, name_hash, &safe_directory_record, error ); } else { result = libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf8_name( file_system_btree, file_io_handle, root_node, lookup_identifier, utf8_string_segment, utf8_string_segment_length, name_hash, &safe_directory_record, 0, error ); } } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry by name.", function ); goto on_error; } else if( result == 0 ) { break; } if( libfsapfs_directory_record_get_identifier( safe_directory_record, &lookup_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry identifier.", function ); goto on_error; } } root_node = NULL; if( result != 0 ) { result = libfsapfs_file_system_btree_get_entry_by_identifier( file_system_btree, file_io_handle, lookup_identifier, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_INODE, &btree_node, &btree_entry, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); goto on_error; } if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); goto on_error; } if( libfsapfs_inode_initialize( inode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create inode.", function ); goto on_error; } if( libfsapfs_inode_read_key_data( *inode, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode key data.", function ); goto on_error; } if( libfsapfs_inode_read_value_data( *inode, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode value data.", function ); goto on_error; } btree_node = NULL; *directory_record = safe_directory_record; } return( result ); on_error: if( safe_directory_record != NULL ) { libfsapfs_directory_record_free( &safe_directory_record, NULL ); } if( *inode != NULL ) { libfsapfs_inode_free( inode, NULL ); } return( -1 ); } /* Retrieves an inode for an UTF-16 encoded name from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_inode_by_utf16_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_btree_node_t *btree_node = NULL; libfsapfs_btree_node_t *root_node = NULL; static char *function = "libfsapfs_file_system_btree_get_inode_by_utf16_name"; uint64_t lookup_identifier = 0; uint32_t name_hash = 0; int is_leaf_node = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string length value exceeds maximum.", function ); return( -1 ); } if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( *inode != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid inode value already set.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( *directory_record != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid directory record value already set.", function ); return( -1 ); } if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( root_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree root node is a leaf node.", function ); goto on_error; } if( libfsapfs_name_hash_calculate_from_utf16_string( &name_hash, utf16_string, utf16_string_length, file_system_btree->use_case_folding, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine name hash.", function ); goto on_error; } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf16_name( file_system_btree, root_node, parent_identifier, utf16_string, utf16_string_length, name_hash, directory_record, error ); } else { result = libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf16_name( file_system_btree, file_io_handle, root_node, parent_identifier, utf16_string, utf16_string_length, name_hash, directory_record, 0, error ); } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry by name.", function ); goto on_error; } else if( result != 0 ) { if( libfsapfs_directory_record_get_identifier( *directory_record, &lookup_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry identifier.", function ); goto on_error; } } root_node = NULL; if( result != 0 ) { result = libfsapfs_file_system_btree_get_entry_by_identifier( file_system_btree, file_io_handle, lookup_identifier, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_INODE, &btree_node, &btree_entry, error ); if( result != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); goto on_error; } if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); goto on_error; } if( libfsapfs_inode_initialize( inode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create inode.", function ); goto on_error; } if( libfsapfs_inode_read_key_data( *inode, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode key data.", function ); goto on_error; } if( libfsapfs_inode_read_value_data( *inode, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode value data.", function ); goto on_error; } btree_node = NULL; } return( result ); on_error: if( *directory_record != NULL ) { libfsapfs_directory_record_free( directory_record, NULL ); } if( *inode != NULL ) { libfsapfs_inode_free( inode, NULL ); } return( -1 ); } /* Retrieves an inode for an UTF-16 encoded path from the file system B-tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_file_system_btree_get_inode_by_utf16_path( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; libfsapfs_btree_node_t *btree_node = NULL; libfsapfs_btree_node_t *root_node = NULL; libfsapfs_directory_record_t *safe_directory_record = NULL; const uint16_t *utf16_string_segment = NULL; static char *function = "libfsapfs_file_system_btree_get_inode_by_utf16_path"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; size_t utf16_string_segment_length = 0; uint64_t lookup_identifier = 0; uint32_t name_hash = 0; int is_leaf_node = 0; int result = 0; if( file_system_btree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system B-tree.", function ); return( -1 ); } if( utf16_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UTF-16 string.", function ); return( -1 ); } if( utf16_string_length > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid UTF-16 string length value exceeds maximum.", function ); return( -1 ); } if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( *inode != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid inode value already set.", function ); return( -1 ); } if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( *directory_record != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid directory record value already set.", function ); return( -1 ); } if( libfsapfs_file_system_btree_get_root_node( file_system_btree, file_io_handle, file_system_btree->root_node_block_number, &root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); goto on_error; } is_leaf_node = libfsapfs_btree_node_is_leaf_node( root_node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree root node is a leaf node.", function ); goto on_error; } lookup_identifier = parent_identifier; if( utf16_string_length > 0 ) { /* Ignore a leading separator */ if( utf16_string[ utf16_string_index ] == (uint16_t) LIBFSAPFS_SEPARATOR ) { utf16_string_index++; } } if( ( utf16_string_length == 0 ) || ( utf16_string_length == 1 ) ) { result = 1; } else while( utf16_string_index < utf16_string_length ) { utf16_string_segment = &( utf16_string[ utf16_string_index ] ); utf16_string_segment_length = utf16_string_index; while( utf16_string_index < utf16_string_length ) { if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_length, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UTF-16 string to Unicode character.", function ); goto on_error; } if( ( unicode_character == (libuna_unicode_character_t) LIBFSAPFS_SEPARATOR ) || ( unicode_character == 0 ) ) { utf16_string_segment_length += 1; break; } } utf16_string_segment_length = utf16_string_index - utf16_string_segment_length; if( utf16_string_segment_length == 0 ) { result = 0; } else { if( libfsapfs_name_hash_calculate_from_utf16_string( &name_hash, utf16_string_segment, utf16_string_segment_length, file_system_btree->use_case_folding, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine name hash.", function ); goto on_error; } if( safe_directory_record != NULL ) { if( libfsapfs_directory_record_free( &safe_directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory record.", function ); goto on_error; } } if( is_leaf_node != 0 ) { result = libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf16_name( file_system_btree, root_node, lookup_identifier, utf16_string_segment, utf16_string_segment_length, name_hash, &safe_directory_record, error ); } else { result = libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf16_name( file_system_btree, file_io_handle, root_node, lookup_identifier, utf16_string_segment, utf16_string_segment_length, name_hash, &safe_directory_record, 0, error ); } } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry by name.", function ); goto on_error; } else if( result == 0 ) { break; } if( libfsapfs_directory_record_get_identifier( safe_directory_record, &lookup_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry identifier.", function ); goto on_error; } } root_node = NULL; if( result != 0 ) { result = libfsapfs_file_system_btree_get_entry_by_identifier( file_system_btree, file_io_handle, lookup_identifier, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_INODE, &btree_node, &btree_entry, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); goto on_error; } if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node.", function ); goto on_error; } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); goto on_error; } if( libfsapfs_inode_initialize( inode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create inode.", function ); goto on_error; } if( libfsapfs_inode_read_key_data( *inode, btree_entry->key_data, (size_t) btree_entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode key data.", function ); goto on_error; } if( libfsapfs_inode_read_value_data( *inode, btree_entry->value_data, (size_t) btree_entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read inode value data.", function ); goto on_error; } btree_node = NULL; *directory_record = safe_directory_record; } return( result ); on_error: if( safe_directory_record != NULL ) { libfsapfs_directory_record_free( &safe_directory_record, NULL ); } if( *inode != NULL ) { libfsapfs_inode_free( inode, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_btree_node_header.c0000664000175000017500000002032313426637446025626 0ustar00lordyestalordyesta00000000000000/* * The B-tree node header functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_btree_node_header.h" #include "libfsapfs_debug.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_btree.h" #include "fsapfs_object.h" /* Creates a B-tree node header * Make sure the value btree_node_header is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_header_initialize( libfsapfs_btree_node_header_t **btree_node_header, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_header_initialize"; if( btree_node_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node header.", function ); return( -1 ); } if( *btree_node_header != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid B-tree node header value already set.", function ); return( -1 ); } *btree_node_header = memory_allocate_structure( libfsapfs_btree_node_header_t ); if( *btree_node_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create B-tree node header.", function ); goto on_error; } if( memory_set( *btree_node_header, 0, sizeof( libfsapfs_btree_node_header_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear B-tree node header.", function ); goto on_error; } return( 1 ); on_error: if( *btree_node_header != NULL ) { memory_free( *btree_node_header ); *btree_node_header = NULL; } return( -1 ); } /* Frees a B-tree node header * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_header_free( libfsapfs_btree_node_header_t **btree_node_header, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_header_free"; if( btree_node_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node header.", function ); return( -1 ); } if( *btree_node_header != NULL ) { memory_free( *btree_node_header ); *btree_node_header = NULL; } return( 1 ); } /* Reads the B-tree node header * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_header_read_data( libfsapfs_btree_node_header_t *btree_node_header, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_header_read_data"; #if defined( HAVE_DEBUG_OUTPUT ) size_t block_offset = 0; uint16_t value_16bit = 0; #endif if( btree_node_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node header.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_btree_node_header_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree node header data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_btree_node_header_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->flags, btree_node_header->flags ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->level, btree_node_header->level ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_btree_node_header_t *) data )->number_of_keys, btree_node_header->number_of_keys ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->entries_data_offset, btree_node_header->entries_data_offset ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->entries_data_size, btree_node_header->entries_data_size ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->unused_data_offset, btree_node_header->unused_data_offset ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->unused_data_size, btree_node_header->unused_data_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: flags\t\t\t\t: 0x%04" PRIx16 "\n", function, btree_node_header->flags ); libfsapfs_debug_print_btree_node_flags( btree_node_header->flags ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: level\t\t\t\t: %" PRIu16 "\n", function, btree_node_header->level ); libcnotify_printf( "%s: number of keys\t\t\t: %" PRIu32 "\n", function, btree_node_header->number_of_keys ); block_offset = sizeof( fsapfs_object_t ) + sizeof( fsapfs_btree_node_header_t ); libcnotify_printf( "%s: entries data offset\t\t: 0x%04" PRIx16 " (block offset: 0x%04" PRIzx ")\n", function, btree_node_header->entries_data_offset, (size_t) btree_node_header->entries_data_offset + block_offset ); block_offset += btree_node_header->entries_data_offset; libcnotify_printf( "%s: entries data size\t\t: %" PRIu16 " (block offset: 0x%04" PRIzx ")\n", function, btree_node_header->entries_data_size, (size_t) btree_node_header->entries_data_size + block_offset ); block_offset += btree_node_header->entries_data_size; libcnotify_printf( "%s: unused data offset\t\t: 0x%04" PRIx16 " (block offset: 0x%04" PRIzx ")\n", function, btree_node_header->unused_data_offset, (size_t) btree_node_header->unused_data_offset + block_offset ); block_offset += btree_node_header->unused_data_offset; libcnotify_printf( "%s: unused data size\t\t\t: %" PRIu16 " (block offset: 0x%04" PRIzx ")\n", function, btree_node_header->unused_data_size, (size_t) btree_node_header->unused_data_size + block_offset ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->key_free_list_offset, value_16bit ); libcnotify_printf( "%s: key free list offset\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->key_free_list_size, value_16bit ); libcnotify_printf( "%s: key free list size\t\t: %" PRIu16 "\n", function, value_16bit ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->value_free_list_offset, value_16bit ); libcnotify_printf( "%s: value free list offset\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_node_header_t *) data )->value_free_list_size, value_16bit ); libcnotify_printf( "%s: value free list size\t\t: %" PRIu16 "\n", function, value_16bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_libclocale.h0000664000175000017500000000267013426637446024313 0ustar00lordyestalordyesta00000000000000/* * The libclocale header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBCLOCALE_H ) #define _LIBFSAPFS_LIBCLOCALE_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if defined( HAVE_LOCAL_LIBCLOCALE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT * before including libclocale.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCLOCALE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _LIBFSAPFS_LIBCLOCALE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libuna.h0000664000175000017500000000331513426637446023471 0ustar00lordyestalordyesta00000000000000/* * The libuna header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBUNA_H ) #define _LIBFSAPFS_LIBUNA_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if defined( HAVE_LOCAL_LIBUNA ) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT * before including libuna.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBUNA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _LIBFSAPFS_LIBUNA_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_container.h0000664000175000017500000001124313426637446024200 0ustar00lordyestalordyesta00000000000000/* * Container functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CONTAINER_H ) #define _LIBFSAPFS_CONTAINER_H #include #include #include "libfsapfs_checkpoint_map.h" #include "libfsapfs_container_data_handle.h" #include "libfsapfs_container_key_bag.h" #include "libfsapfs_container_superblock.h" #include "libfsapfs_extern.h" #include "libfsapfs_fusion_middle_tree.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcthreads.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_object_map_btree.h" #include "libfsapfs_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_internal_container libfsapfs_internal_container_t; struct libfsapfs_internal_container { /* The container superblock */ libfsapfs_container_superblock_t *superblock; /* The Fusion middle tree */ libfsapfs_fusion_middle_tree_t *fusion_middle_tree; /* The checkpoint map */ libfsapfs_checkpoint_map_t *checkpoint_map; /* The container data handle */ libfsapfs_container_data_handle_t *container_data_handle; /* The data block vector */ libfdata_vector_t *data_block_vector; /* The object map B-tree */ libfsapfs_object_map_btree_t *object_map_btree; /* The container key bag */ libfsapfs_container_key_bag_t *key_bag; /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* The file IO handle */ libbfio_handle_t *file_io_handle; /* Value to indicate if the file IO handle was created inside the library */ uint8_t file_io_handle_created_in_library; /* Value to indicate if the file IO handle was opened inside the library */ uint8_t file_io_handle_opened_in_library; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBFSAPFS_EXTERN \ int libfsapfs_container_initialize( libfsapfs_container_t **container, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_free( libfsapfs_container_t **container, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_signal_abort( libfsapfs_container_t *container, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_open( libfsapfs_container_t *container, const char *filename, int access_flags, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBFSAPFS_EXTERN \ int libfsapfs_container_open_wide( libfsapfs_container_t *container, const wchar_t *filename, int access_flags, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ LIBFSAPFS_EXTERN \ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_close( libfsapfs_container_t *container, libcerror_error_t **error ); int libfsapfs_internal_container_open_read( libfsapfs_internal_container_t *internal_container, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_get_size( libfsapfs_container_t *container, size64_t *size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_get_identifier( libfsapfs_container_t *container, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_get_number_of_volumes( libfsapfs_container_t *container, int *number_of_volumes, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_container_get_volume_by_index( libfsapfs_container_t *container, int volume_index, libfsapfs_volume_t **volume, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CONTAINER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_support.h0000664000175000017500000000463513426637446023741 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_SUPPORT_H ) #define _LIBFSAPFS_SUPPORT_H #include #include #include "libfsapfs_extern.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFSAPFS ) LIBFSAPFS_EXTERN \ const char *libfsapfs_get_version( void ); LIBFSAPFS_EXTERN \ int libfsapfs_get_access_flags_read( void ); LIBFSAPFS_EXTERN \ int libfsapfs_get_codepage( int *codepage, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_set_codepage( int codepage, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature( const char *filename, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature( const char *filename, libcerror_error_t **error ); #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_wide( const wchar_t *filename, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_wide( const wchar_t *filename, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ); LIBFSAPFS_EXTERN \ int libfsapfs_check_volume_signature_file_io_handle( libbfio_handle_t *file_io_handle, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_SUPPORT_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs.rc.in0000664000175000017500000000210213426637447022713 0ustar00lordyestalordyesta00000000000000#include #ifdef GCC_WINDRES VS_VERSION_INFO VERSIONINFO #else VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE #endif FILEVERSION 1,0,0,0 PRODUCTVERSION 1,0,0,0 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS VOS__WINDOWS32 FILETYPE VFT_DLL FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "FileDescription", "Library to access the Apple File System (APFS) format\0" VALUE "FileVersion", "@VERSION@" "\0" VALUE "InternalName", "libfsapfs.dll\0" VALUE "LegalCopyright", "(C) 2018-2019, Joachim Metz \0" VALUE "OriginalFilename", "libfsapfs.dll\0" VALUE "ProductName", "libfsapfs\0" VALUE "ProductVersion", "@VERSION@" "\0" VALUE "Comments", "For more information visit https://github.com/libyal/libfsapfs/\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 1200 END END libfsapfs-20190210/libfsapfs/libfsapfs_file_system_btree.h0000664000175000017500000002354513426637446025732 0ustar00lordyestalordyesta00000000000000/* * The file system B-tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_FILE_SYSTEM_BTREE_H ) #define _LIBFSAPFS_FILE_SYSTEM_BTREE_H #include #include #include "libfsapfs_btree_node.h" #include "libfsapfs_directory_record.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_inode.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_object_map_btree.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_file_system_btree libfsapfs_file_system_btree_t; struct libfsapfs_file_system_btree { /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* The encryption context */ libfsapfs_encryption_context_t *encryption_context; /* The data block vector */ libfdata_vector_t *data_block_vector; /* The data block cache */ libfcache_cache_t *data_block_cache; /* The node cache */ libfcache_cache_t *node_cache; /* The volume object map B-tree */ libfsapfs_object_map_btree_t *object_map_btree; /* The block number of B-tree root node */ uint64_t root_node_block_number; /* Flag to indicate case folding should be used */ uint8_t use_case_folding; }; int libfsapfs_file_system_btree_initialize( libfsapfs_file_system_btree_t **file_system_btree, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libfdata_vector_t *data_block_vector, libfsapfs_object_map_btree_t *object_map_btree, uint64_t root_node_block_number, uint8_t use_case_folding, libcerror_error_t **error ); int libfsapfs_file_system_btree_free( libfsapfs_file_system_btree_t **file_system_btree, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_sub_node_block_number_from_entry( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_entry_t *entry, uint64_t *sub_node_block_number, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_root_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t root_node_block_number, libfsapfs_btree_node_t **root_node, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_sub_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t sub_node_block_number, libfsapfs_btree_node_t **sub_node, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_entry_from_node_by_identifier( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t identifier, uint8_t data_type, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_entry_by_identifier( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t identifier, uint8_t data_type, libfsapfs_btree_node_t **btree_node, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf8_name( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf8_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, int recursion_depth, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_directory_record_from_leaf_node_by_utf16_name( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_directory_record_from_branch_node_by_utf16_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, uint32_t name_hash, libfsapfs_directory_record_t **directory_record, int recursion_depth, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_directory_entries_from_leaf_node( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t parent_identifier, libcdata_array_t *directory_entries, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_directory_entries_from_branch_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t parent_identifier, libcdata_array_t *directory_entries, int recursion_depth, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_directory_entries( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, libcdata_array_t *directory_entries, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_extended_attributes_from_leaf_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *extended_attributes, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_extended_attributes_from_branch_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *extended_attributes, int recursion_depth, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_extended_attributes( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, libcdata_array_t *extended_attributes, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_file_extents_from_leaf_node( libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *file_extents, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_file_extents_from_branch_node( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, libfsapfs_btree_node_t *node, uint64_t identifier, libcdata_array_t *file_extents, int recursion_depth, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_file_extents( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t identifier, libcdata_array_t *file_extents, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_inode_by_identifier( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t identifier, libfsapfs_inode_t **inode, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_inode_by_utf8_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_inode_by_utf8_path( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_inode_by_utf16_name( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); int libfsapfs_file_system_btree_get_inode_by_utf16_path( libfsapfs_file_system_btree_t *file_system_btree, libbfio_handle_t *file_io_handle, uint64_t parent_identifier, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_inode_t **inode, libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_FILE_SYSTEM_BTREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_chunk_information_block.c0000664000175000017500000002164413426637446027106 0ustar00lordyestalordyesta00000000000000/* * The chunk information block functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_chunk_information_block.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_chunk_information_block.h" /* Creates a chunk information block * Make sure the value chunk_information_block is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_chunk_information_block_initialize( libfsapfs_chunk_information_block_t **chunk_information_block, libcerror_error_t **error ) { static char *function = "libfsapfs_chunk_information_block_initialize"; if( chunk_information_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid chunk information block.", function ); return( -1 ); } if( *chunk_information_block != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid chunk information block value already set.", function ); return( -1 ); } *chunk_information_block = memory_allocate_structure( libfsapfs_chunk_information_block_t ); if( *chunk_information_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create chunk information block.", function ); goto on_error; } if( memory_set( *chunk_information_block, 0, sizeof( libfsapfs_chunk_information_block_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear chunk information block.", function ); goto on_error; } return( 1 ); on_error: if( *chunk_information_block != NULL ) { memory_free( *chunk_information_block ); *chunk_information_block = NULL; } return( -1 ); } /* Frees a chunk information block * Returns 1 if successful or -1 on error */ int libfsapfs_chunk_information_block_free( libfsapfs_chunk_information_block_t **chunk_information_block, libcerror_error_t **error ) { static char *function = "libfsapfs_chunk_information_block_free"; if( chunk_information_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid chunk information block.", function ); return( -1 ); } if( *chunk_information_block != NULL ) { memory_free( *chunk_information_block ); *chunk_information_block = NULL; } return( 1 ); } /* Reads the chunk information block * Returns 1 if successful or -1 on error */ int libfsapfs_chunk_information_block_read_file_io_handle( libfsapfs_chunk_information_block_t *chunk_information_block, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { uint8_t chunk_information_block_data[ 4096 ]; static char *function = "libfsapfs_chunk_information_block_read_file_io_handle"; ssize_t read_count = 0; if( chunk_information_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid chunk information block.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading chunk information block at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek chunk information block offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, chunk_information_block_data, 4096, error ); if( read_count != (ssize_t) 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read chunk information block data.", function ); return( -1 ); } if( libfsapfs_chunk_information_block_read_data( chunk_information_block, chunk_information_block_data, 4096, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read chunk information block data.", function ); return( -1 ); } return( 1 ); } /* Reads the chunk information block * Returns 1 if successful or -1 on error */ int libfsapfs_chunk_information_block_read_data( libfsapfs_chunk_information_block_t *chunk_information_block, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_chunk_information_block_read_data"; uint32_t object_subtype = 0; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( chunk_information_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid chunk information block.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_chunk_information_block_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: chunk information block data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_chunk_information_block_t *) data )->object_type, object_type ); if( object_type != 0x40000007UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_chunk_information_block_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_chunk_information_block_t *) data )->object_checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_chunk_information_block_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_chunk_information_block_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_chunk_information_block_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_directory_record.c0000664000175000017500000006746413426637446025573 0ustar00lordyestalordyesta00000000000000/* * Directory record functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_directory_record.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfdatetime.h" #include "libfsapfs_libuna.h" #include "libfsapfs_name.h" #include "fsapfs_file_system.h" /* Creates a directory_record * Make sure the value directory_record is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_initialize( libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_initialize"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( *directory_record != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid directory record value already set.", function ); return( -1 ); } *directory_record = memory_allocate_structure( libfsapfs_directory_record_t ); if( *directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create directory record.", function ); goto on_error; } if( memory_set( *directory_record, 0, sizeof( libfsapfs_directory_record_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear directory record.", function ); goto on_error; } return( 1 ); on_error: if( *directory_record != NULL ) { memory_free( *directory_record ); *directory_record = NULL; } return( -1 ); } /* Frees a directory record * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_free( libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_free"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( *directory_record != NULL ) { if( ( *directory_record )->name != NULL ) { memory_free( ( *directory_record )->name ); } memory_free( *directory_record ); *directory_record = NULL; } return( 1 ); } /* Clones a directory record * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_clone( libfsapfs_directory_record_t **destination_directory_record, libfsapfs_directory_record_t *source_directory_record, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_clone"; if( destination_directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( *destination_directory_record != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination directory record value already set.", function ); return( -1 ); } if( source_directory_record == NULL ) { *destination_directory_record = source_directory_record; return( 1 ); } *destination_directory_record = memory_allocate_structure( libfsapfs_directory_record_t ); if( *destination_directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination directory record.", function ); goto on_error; } if( memory_copy( *destination_directory_record, source_directory_record, sizeof( libfsapfs_directory_record_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to copy source directory record to destination.", function ); ( *destination_directory_record )->name = NULL; goto on_error; } ( *destination_directory_record )->name = (uint8_t *) memory_allocate( sizeof( uint8_t ) * source_directory_record->name_size ); if( ( *destination_directory_record )->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination record name.", function ); ( *destination_directory_record )->name = NULL; goto on_error; } if( memory_copy( ( *destination_directory_record )->name, source_directory_record->name, source_directory_record->name_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy source directory record name to destination.", function ); goto on_error; } return( 1 ); on_error: if( *destination_directory_record != NULL ) { if( ( *destination_directory_record )->name != NULL ) { memory_free( ( *destination_directory_record )->name ); } memory_free( *destination_directory_record ); *destination_directory_record = NULL; } return( -1 ); } /* Reads the directory record key data * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_read_key_data( libfsapfs_directory_record_t *directory_record, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_read_key_data"; size_t data_offset = 0; uint32_t name_hash = 0; uint32_t name_size = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; uint16_t value_16bit = 0; #endif if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( directory_record->name != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid directory record - name value already set.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_key_directory_record_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: directory record key data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* Determine if the directory record key data contains a name or a name and hash based on its size */ byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_key_directory_record_t *) data )->name_size, name_size ); name_size &= 0x000003ffUL; data_offset = sizeof( fsapfs_file_system_btree_key_directory_record_t ); if( name_size < ( data_size - data_offset ) ) { if( data_size < sizeof( fsapfs_file_system_btree_key_directory_record_with_hash_t ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_key_directory_record_with_hash_t *) data )->name_size_and_hash, name_hash ); name_size = name_hash & 0x000003ffUL; name_hash = ( name_hash & 0xfffffc00UL ) >> 10; data_offset = sizeof( fsapfs_file_system_btree_key_directory_record_with_hash_t ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_directory_record_t *) data )->file_system_identifier, value_64bit ); libcnotify_printf( "%s: parent identifier\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); if( name_hash == 0 ) { byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_key_directory_record_t *) data )->name_size, value_16bit ); libcnotify_printf( "%s: name size\t\t\t\t\t: 0x%04" PRIx16 " (size: %" PRIu32 ")\n", function, value_16bit, name_size ); } else { byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_key_directory_record_with_hash_t *) data )->name_size_and_hash, value_32bit ); libcnotify_printf( "%s: name size and hash\t\t\t: 0x%04" PRIx32 " (size: %" PRIu32 ", hash: 0x%06" PRIx32 ")\n", function, value_32bit, name_size, name_hash ); } } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( (size_t) name_size > ( data_size - data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid name size value out of bounds.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: name data:\n", function ); libcnotify_print_data( &( data[ data_offset ] ), (size_t) name_size, 0 ); } #endif directory_record->name = (uint8_t *) memory_allocate( sizeof( uint8_t ) * name_size ); if( directory_record->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create name.", function ); goto on_error; } directory_record->name_size = name_size; if( memory_copy( directory_record->name, &( data[ data_offset ] ), name_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy name.", function ); goto on_error; } directory_record->name_hash = name_hash; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: name\t\t\t\t\t: %s\n", function, directory_record->name ); } #endif return( 1 ); on_error: if( directory_record->name != NULL ) { memory_free( directory_record->name ); directory_record->name = NULL; } directory_record->name_size = 0; return( -1 ); } /* Reads the directory record value data * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_read_value_data( libfsapfs_directory_record_t *directory_record, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_read_value_data"; const uint8_t *value_data = NULL; size_t data_offset = 0; size_t trailing_data_size = 0; size_t value_data_offset = 0; size_t value_data_size = 0; uint16_t extended_field_index = 0; uint16_t number_of_extended_fields = 0; uint8_t extended_field_flags = 0; uint8_t extended_field_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint16_t value_16bit = 0; #endif if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_value_directory_record_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: directory record value data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_directory_record_t *) data )->file_system_identifier, directory_record->identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_directory_record_t *) data )->added_time, directory_record->added_time ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: identifier\t\t\t\t: %" PRIu64 "\n", function, directory_record->identifier ); if( libfsapfs_debug_print_posix_time_value( function, "added time\t\t\t\t", ( (fsapfs_file_system_btree_value_directory_record_t *) data )->added_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_value_directory_record_t *) data )->directory_entry_flags, value_16bit ); libcnotify_printf( "%s: directory entry flags\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); libfsapfs_debug_print_directory_entry_flags( value_16bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( data_size > sizeof( fsapfs_file_system_btree_value_directory_record_t ) ) { data_offset = sizeof( fsapfs_file_system_btree_value_directory_record_t ); if( data_offset > ( data_size - 4 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } byte_stream_copy_to_uint16_little_endian( &( data[ data_offset ] ), number_of_extended_fields ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: number of extended fields\t\t: %" PRIu16 "\n", function, number_of_extended_fields ); byte_stream_copy_to_uint16_little_endian( &( data[ data_offset + 2 ] ), value_16bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset += 4; value_data_offset = data_offset + ( number_of_extended_fields * 4 ); for( extended_field_index = 0; extended_field_index < number_of_extended_fields; extended_field_index++ ) { if( data_offset > ( data_size - 4 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } extended_field_type = data[ data_offset ]; extended_field_flags = data[ data_offset + 1 ]; byte_stream_copy_to_uint16_little_endian( &( data[ data_offset + 2 ] ), value_data_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended field: %" PRIu16 " type\t\t: %" PRIu8 " %s\n", function, extended_field_index, extended_field_type, libfsapfs_debug_print_directory_record_extended_field_type( extended_field_type ) ); libcnotify_printf( "%s: extended field: %" PRIu16 " flags\t\t: 0x%04" PRIx16 "\n", function, extended_field_index, extended_field_flags ); libfsapfs_debug_print_extended_field_flags( extended_field_flags ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: extended field: %" PRIu16 " value data size\t: %" PRIu16 "\n", function, extended_field_index, value_data_size ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset += 4; if( value_data_offset > data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } if( value_data_size > ( data_size - value_data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value data size value out of bounds.", function ); return( -1 ); } value_data = &( data[ value_data_offset ] ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended field: %" PRIu16 " value data:\n", function, extended_field_index ); libcnotify_print_data( value_data, value_data_size, 0 ); } #endif switch( extended_field_type ) { case 1: break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported extended field type: %" PRIu8 ".", function, extended_field_type ); return( -1 ); } value_data_offset += value_data_size; trailing_data_size = value_data_size % 8; if( trailing_data_size > 0 ) { trailing_data_size = 8 - trailing_data_size; if( value_data_offset > ( data_size - trailing_data_size ) ) { trailing_data_size = data_size - value_data_offset; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended field: %" PRIu16 " trailing data:\n", function, extended_field_index ); libcnotify_print_data( &( data[ value_data_offset ] ), trailing_data_size, 0 ); } #endif value_data_offset += trailing_data_size; } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ } return( 1 ); } /* Retrieves the identifier * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_get_identifier( libfsapfs_directory_record_t *directory_record, uint64_t *identifier, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_get_identifier"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } *identifier = directory_record->identifier; return( 1 ); } /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_get_utf8_name_size( libfsapfs_directory_record_t *directory_record, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_get_utf8_name_size"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( libuna_utf8_string_size_from_utf8_stream( directory_record->name, (size_t) directory_record->name_size, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_get_utf8_name( libfsapfs_directory_record_t *directory_record, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_get_utf8_name"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( libuna_utf8_string_copy_from_utf8_stream( utf8_string, utf8_string_size, directory_record->name, (size_t) directory_record->name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Compares an UTF-8 string with a directory record name * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libfsapfs_directory_record_compare_name_with_utf8_string( libfsapfs_directory_record_t *directory_record, const uint8_t *utf8_string, size_t utf8_string_length, uint32_t name_hash, uint8_t use_case_folding, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_compare_name_with_utf8_string"; int result = LIBUNA_COMPARE_EQUAL; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( ( directory_record->name_hash != 0 ) && ( name_hash != 0 ) ) { if( name_hash < directory_record->name_hash ) { return( LIBUNA_COMPARE_LESS ); } else if( name_hash > directory_record->name_hash ) { return( LIBUNA_COMPARE_GREATER ); } } if( directory_record->name != NULL ) { result = libfsapfs_name_compare_with_utf8_string( directory_record->name, directory_record->name_size, utf8_string, utf8_string_length, use_case_folding, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name.", function ); return( -1 ); } } return( result ); } /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_get_utf16_name_size( libfsapfs_directory_record_t *directory_record, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_get_utf16_name_size"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( libuna_utf16_string_size_from_utf8_stream( directory_record->name, (size_t) directory_record->name_size, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_get_utf16_name( libfsapfs_directory_record_t *directory_record, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_get_utf16_name"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( libuna_utf16_string_copy_from_utf8_stream( utf16_string, utf16_string_size, directory_record->name, (size_t) directory_record->name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Compares an UTF-16 string with a directory record name * Returns LIBUNA_COMPARE_LESS, LIBUNA_COMPARE_EQUAL, LIBUNA_COMPARE_GREATER if successful or -1 on error */ int libfsapfs_directory_record_compare_name_with_utf16_string( libfsapfs_directory_record_t *directory_record, const uint16_t *utf16_string, size_t utf16_string_length, uint32_t name_hash, uint8_t use_case_folding, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_compare_name_with_utf16_string"; int result = LIBUNA_COMPARE_EQUAL; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( ( directory_record->name_hash != 0 ) && ( name_hash != 0 ) ) { if( name_hash < directory_record->name_hash ) { return( LIBUNA_COMPARE_LESS ); } else if( name_hash > directory_record->name_hash ) { return( LIBUNA_COMPARE_GREATER ); } } if( directory_record->name != NULL ) { result = libfsapfs_name_compare_with_utf16_string( directory_record->name, directory_record->name_size, utf16_string, utf16_string_length, use_case_folding, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-16 string with name.", function ); return( -1 ); } } return( result ); } /* Retrieves the added time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * Returns 1 if successful or -1 on error */ int libfsapfs_directory_record_get_added_time( libfsapfs_directory_record_t *directory_record, int64_t *posix_time, libcerror_error_t **error ) { static char *function = "libfsapfs_directory_record_get_added_time"; if( directory_record == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid directory record.", function ); return( -1 ); } if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } *posix_time = (int64_t) directory_record->added_time; return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_container.c0000664000175000017500000016024113426637446024176 0ustar00lordyestalordyesta00000000000000/* * Container functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include "libfsapfs_checkpoint_map.h" #include "libfsapfs_container.h" #include "libfsapfs_container_data_handle.h" #include "libfsapfs_container_key_bag.h" #include "libfsapfs_container_reaper.h" #include "libfsapfs_space_manager.h" #include "libfsapfs_container_superblock.h" #include "libfsapfs_debug.h" #include "libfsapfs_definitions.h" #include "libfsapfs_fusion_middle_tree.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libcthreads.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_object.h" #include "libfsapfs_object_map.h" #include "libfsapfs_object_map_btree.h" #include "libfsapfs_object_map_descriptor.h" #include "libfsapfs_volume.h" /* Creates a container * Make sure the value container is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_container_initialize( libfsapfs_container_t **container, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_initialize"; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } if( *container != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container value already set.", function ); return( -1 ); } internal_container = memory_allocate_structure( libfsapfs_internal_container_t ); if( internal_container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create container.", function ); goto on_error; } if( memory_set( internal_container, 0, sizeof( libfsapfs_internal_container_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear container.", function ); goto on_error; } if( libfsapfs_io_handle_initialize( &( internal_container->io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create IO handle.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_initialize( &( internal_container->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *container = (libfsapfs_container_t *) internal_container; return( 1 ); on_error: if( internal_container != NULL ) { memory_free( internal_container ); } return( -1 ); } /* Frees a container * Returns 1 if successful or -1 on error */ int libfsapfs_container_free( libfsapfs_container_t **container, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_free"; int result = 1; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } if( *container != NULL ) { internal_container = (libfsapfs_internal_container_t *) *container; if( internal_container->file_io_handle != NULL ) { if( libfsapfs_container_close( *container, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close container.", function ); result = -1; } } *container = NULL; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_free( &( internal_container->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( libfsapfs_io_handle_free( &( internal_container->io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free IO handle.", function ); result = -1; } memory_free( internal_container ); } return( result ); } /* Signals the container to abort its current activity * Returns 1 if successful or -1 on error */ int libfsapfs_container_signal_abort( libfsapfs_container_t *container, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_signal_abort"; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( internal_container->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container - missing IO handle.", function ); return( -1 ); } internal_container->io_handle->abort = 1; return( 1 ); } /* Opens a container * Returns 1 if successful or -1 on error */ int libfsapfs_container_open( libfsapfs_container_t *container, const char *filename, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_open"; size_t filename_length = 0; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); return( -1 ); } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libbfio_handle_set_track_offsets_read( file_io_handle, 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set track offsets read in file IO handle.", function ); goto on_error; } #endif filename_length = narrow_string_length( filename ); if( libbfio_file_set_name( file_io_handle, filename, filename_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } if( libfsapfs_container_open_file_io_handle( container, file_io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open container: %s.", function, filename ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_container->file_io_handle_created_in_library = 1; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Opens a container * Returns 1 if successful or -1 on error */ int libfsapfs_container_open_wide( libfsapfs_container_t *container, const wchar_t *filename, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_open_wide"; size_t filename_length = 0; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); return( -1 ); } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libbfio_handle_set_track_offsets_read( file_io_handle, 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set track offsets read in file IO handle.", function ); goto on_error; } #endif filename_length = wide_string_length( filename ); if( libbfio_file_set_name_wide( file_io_handle, filename, filename_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } if( libfsapfs_container_open_file_io_handle( container, file_io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open container: %ls.", function, filename ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_container->file_io_handle_created_in_library = 1; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Opens a container using a Basic File IO (bfio) handle * Returns 1 if successful or -1 on error */ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_open_file_io_handle"; int bfio_access_flags = 0; int file_io_handle_is_open = 0; int file_io_handle_opened_in_library = 0; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( internal_container->file_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container - file IO handle already set.", function ); return( -1 ); } if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) != 0 ) { bfio_access_flags = LIBBFIO_ACCESS_FLAG_READ; } file_io_handle_is_open = libbfio_handle_is_open( file_io_handle, error ); if( file_io_handle_is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open container.", function ); goto on_error; } else if( file_io_handle_is_open == 0 ) { if( libbfio_handle_open( file_io_handle, bfio_access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file IO handle.", function ); goto on_error; } file_io_handle_opened_in_library = 1; } if( libfsapfs_internal_container_open_read( internal_container, file_io_handle, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file IO handle.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_container->file_io_handle = file_io_handle; internal_container->file_io_handle_opened_in_library = file_io_handle_opened_in_library; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( file_io_handle_opened_in_library != 0 ) { libbfio_handle_close( file_io_handle, error ); } return( -1 ); } /* Closes a container * Returns 0 if successful or -1 on error */ int libfsapfs_container_close( libfsapfs_container_t *container, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_close"; int result = 0; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( internal_container->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container - missing IO handle.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( internal_container->file_io_handle_created_in_library != 0 ) { if( libfsapfs_debug_print_read_offsets( internal_container->file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print the read offsets.", function ); result = -1; } } } #endif if( internal_container->file_io_handle_opened_in_library != 0 ) { if( libbfio_handle_close( internal_container->file_io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close file IO handle.", function ); result = -1; } internal_container->file_io_handle_opened_in_library = 0; } if( internal_container->file_io_handle_created_in_library != 0 ) { if( libbfio_handle_free( &( internal_container->file_io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file IO handle.", function ); result = -1; } internal_container->file_io_handle_created_in_library = 0; } internal_container->file_io_handle = NULL; if( libfsapfs_io_handle_clear( internal_container->io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clear IO handle.", function ); result = -1; } if( internal_container->superblock != NULL ) { if( libfsapfs_container_superblock_free( &( internal_container->superblock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free container superblock.", function ); result = -1; } } if( internal_container->fusion_middle_tree != NULL ) { if( libfsapfs_fusion_middle_tree_free( &( internal_container->fusion_middle_tree ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free Fusion middle tree.", function ); result = -1; } } if( internal_container->checkpoint_map != NULL ) { if( libfsapfs_checkpoint_map_free( &( internal_container->checkpoint_map ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free checkpoint map.", function ); result = -1; } } if( libfdata_vector_free( &( internal_container->data_block_vector ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data block vector.", function ); result = -1; } if( internal_container->object_map_btree != NULL ) { if( libfsapfs_object_map_btree_free( &( internal_container->object_map_btree ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object map B-tree.", function ); result = -1; } } if( internal_container->key_bag != NULL ) { if( libfsapfs_container_key_bag_free( &( internal_container->key_bag ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key bag.", function ); result = -1; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Opens a container for reading * Returns 1 if successful or -1 on error */ int libfsapfs_internal_container_open_read( libfsapfs_internal_container_t *internal_container, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { libfsapfs_container_data_handle_t *container_data_handle = NULL; libfsapfs_container_superblock_t *container_superblock = NULL; libfsapfs_container_superblock_t *container_superblock_swap = NULL; libfsapfs_object_t *object = NULL; libfsapfs_object_map_t *object_map = NULL; static char *function = "libfsapfs_internal_container_open_read"; uint64_t checkpoint_map_block_number = 0; uint64_t checkpoint_map_transaction_identifier = 0; uint64_t metadata_block_index = 0; int element_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) libfsapfs_checkpoint_map_t *checkpoint_map = NULL; libfsapfs_container_reaper_t *container_reaper = NULL; libfsapfs_space_manager_t *space_manager = NULL; uint64_t reaper_block_number = 0; uint64_t space_manager_block_number = 0; #endif if( internal_container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } if( internal_container->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container - missing IO handle.", function ); return( -1 ); } if( internal_container->superblock != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container - superblock map value already set.", function ); return( -1 ); } if( internal_container->fusion_middle_tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container - Fusion middle tree value already set.", function ); return( -1 ); } if( internal_container->checkpoint_map != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container - checkpoint map value already set.", function ); return( -1 ); } if( internal_container->data_block_vector != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container - data block vector already set.", function ); return( -1 ); } if( internal_container->object_map_btree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container - object map B-tree value already set.", function ); return( -1 ); } if( internal_container->key_bag != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container - key bag value already set.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading container superblock:\n" ); } #endif if( libfsapfs_container_superblock_initialize( &( internal_container->superblock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create container superblock.", function ); goto on_error; } if( libfsapfs_container_superblock_read_file_io_handle( internal_container->superblock, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container superblock at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } internal_container->io_handle->block_size = internal_container->superblock->block_size; internal_container->io_handle->container_size = (size64_t) internal_container->superblock->number_of_blocks * (size64_t) internal_container->io_handle->block_size; #if !defined( HAVE_DEBUG_OUTPUT ) if( ( internal_container->superblock->incompatible_features_flags & 0x0000000000000100UL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: Fusion drive not supported.", function ); return( -1 ); } #endif #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Scanning checkpoint descriptor area:\n" ); } #endif if( libfsapfs_object_initialize( &object, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create object.", function ); goto on_error; } file_offset = internal_container->superblock->checkpoint_descriptor_area_block_number * internal_container->io_handle->block_size; for( metadata_block_index = 0; metadata_block_index <= internal_container->superblock->checkpoint_descriptor_area_number_of_blocks; metadata_block_index++ ) { if( libfsapfs_object_read_file_io_handle( object, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } switch( object->type ) { case 0x4000000c: #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading checkpoint map:\n" ); if( libfsapfs_checkpoint_map_initialize( &checkpoint_map, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create backup checkpoint map.", function ); goto on_error; } if( libfsapfs_checkpoint_map_read_file_io_handle( checkpoint_map, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read backup checkpoint map at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( libfsapfs_checkpoint_map_free( &checkpoint_map, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free backup checkpoint map.", function ); goto on_error; } } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( object->transaction_identifier > checkpoint_map_transaction_identifier ) { checkpoint_map_block_number = internal_container->superblock->checkpoint_descriptor_area_block_number + metadata_block_index; checkpoint_map_transaction_identifier = object->transaction_identifier; } break; case 0x80000001: #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading container superblock:\n" ); } #endif if( libfsapfs_container_superblock_initialize( &container_superblock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create backup container superblock.", function ); goto on_error; } if( libfsapfs_container_superblock_read_file_io_handle( container_superblock, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read backup container superblock at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( container_superblock->object_transaction_identifier > internal_container->superblock->object_transaction_identifier ) { container_superblock_swap = internal_container->superblock; internal_container->superblock = container_superblock; container_superblock = container_superblock_swap; } if( libfsapfs_container_superblock_free( &container_superblock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free backup container superblock.", function ); goto on_error; } break; default: break; } file_offset += internal_container->io_handle->block_size; } if( libfsapfs_object_free( &object, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object.", function ); goto on_error; } if( checkpoint_map_block_number == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing checkpoint map block number.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading checkpoint map:\n" ); } #endif if( libfsapfs_checkpoint_map_initialize( &( internal_container->checkpoint_map ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create checkpoint map.", function ); goto on_error; } file_offset = checkpoint_map_block_number * internal_container->io_handle->block_size; if( libfsapfs_checkpoint_map_read_file_io_handle( internal_container->checkpoint_map, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read checkpoint map at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( internal_container->superblock->fusion_middle_tree_block_number != 0 ) { libcnotify_printf( "Reading Fusion middle tree:\n" ); file_offset = internal_container->superblock->fusion_middle_tree_block_number * internal_container->io_handle->block_size; if( libfsapfs_fusion_middle_tree_initialize( &( internal_container->fusion_middle_tree ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create Fusion middle tree.", function ); goto on_error; } if( libfsapfs_fusion_middle_tree_read_file_io_handle( internal_container->fusion_middle_tree, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read Fusion middle tree at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } } if( internal_container->superblock->space_manager_object_identifier > 0 ) { libcnotify_printf( "Reading space manager:\n" ); if( libfsapfs_checkpoint_map_get_physical_address_by_object_identifier( internal_container->checkpoint_map, internal_container->superblock->space_manager_object_identifier, &space_manager_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine space manager block number from object identifier: 0x08%" PRIx64 ".", function, internal_container->superblock->space_manager_object_identifier ); goto on_error; } file_offset = space_manager_block_number * internal_container->io_handle->block_size; if( libfsapfs_space_manager_initialize( &space_manager, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create space manager.", function ); goto on_error; } if( libfsapfs_space_manager_read_file_io_handle( space_manager, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read space manager at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( libfsapfs_space_manager_free( &space_manager, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free space manager.", function ); goto on_error; } } if( internal_container->superblock->reaper_object_identifier > 0 ) { libcnotify_printf( "Reading reaper:\n" ); if( libfsapfs_checkpoint_map_get_physical_address_by_object_identifier( internal_container->checkpoint_map, internal_container->superblock->reaper_object_identifier, &reaper_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine reaper block number from object identifier: 0x08%" PRIx64 ".", function, internal_container->superblock->reaper_object_identifier ); goto on_error; } file_offset = reaper_block_number * internal_container->io_handle->block_size; if( libfsapfs_container_reaper_initialize( &container_reaper, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create container reaper.", function ); goto on_error; } if( libfsapfs_container_reaper_read_file_io_handle( container_reaper, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container reaper at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( libfsapfs_container_reaper_free( &container_reaper, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free container reaper.", function ); goto on_error; } } } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( libfsapfs_container_data_handle_initialize( &container_data_handle, internal_container->io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create container data handle.", function ); goto on_error; } if( libfdata_vector_initialize( &( internal_container->data_block_vector ), (size64_t) internal_container->io_handle->block_size, (intptr_t *) container_data_handle, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_container_data_handle_free, NULL, (int (*)(intptr_t *, intptr_t *, libfdata_vector_t *, libfdata_cache_t *, int, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libfsapfs_container_data_handle_read_data_block, NULL, LIBFDATA_DATA_HANDLE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block vector.", function ); goto on_error; } internal_container->container_data_handle = container_data_handle; container_data_handle = NULL; if( libfdata_vector_append_segment( internal_container->data_block_vector, &element_index, 0, 0, internal_container->io_handle->container_size, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment to data block vector.", function ); goto on_error; } /* TODO refactor into function to read object map */ if( internal_container->superblock->object_map_block_number == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing object map block number.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading object map:\n" ); } #endif file_offset = internal_container->superblock->object_map_block_number * internal_container->io_handle->block_size; if( libfsapfs_object_map_initialize( &object_map, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create object map.", function ); goto on_error; } if( libfsapfs_object_map_read_file_io_handle( object_map, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object map at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( object_map->btree_block_number == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing object map B-tree block number.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading object map B-tree:\n" ); } #endif if( libfsapfs_object_map_btree_initialize( &( internal_container->object_map_btree ), internal_container->io_handle, internal_container->data_block_vector, object_map->btree_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create object map B-tree.", function ); goto on_error; } if( libfsapfs_object_map_free( &object_map, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object map.", function ); goto on_error; } if( ( internal_container->superblock->key_bag_block_number > 0 ) && ( internal_container->superblock->key_bag_number_of_blocks > 0 ) ) { if( libfsapfs_container_key_bag_initialize( &( internal_container->key_bag ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create container key bag.", function ); goto on_error; } file_offset = internal_container->superblock->key_bag_block_number * internal_container->io_handle->block_size; if( libfsapfs_container_key_bag_read_file_io_handle( internal_container->key_bag, internal_container->io_handle, file_io_handle, file_offset, (size64_t) internal_container->superblock->key_bag_number_of_blocks * internal_container->io_handle->block_size, internal_container->superblock->container_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container key bag at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } } return( 1 ); on_error: if( internal_container->key_bag != NULL ) { libfsapfs_container_key_bag_free( &( internal_container->key_bag ), NULL ); } if( internal_container->object_map_btree != NULL ) { libfsapfs_object_map_btree_free( &( internal_container->object_map_btree ), NULL ); } if( object_map != NULL ) { libfsapfs_object_map_free( &object_map, NULL ); } if( container_data_handle != NULL ) { libfsapfs_container_data_handle_free( &container_data_handle, NULL ); } #if defined( HAVE_DEBUG_OUTPUT ) if( container_reaper != NULL ) { libfsapfs_container_reaper_free( &container_reaper, NULL ); } if( space_manager != NULL ) { libfsapfs_space_manager_free( &space_manager, NULL ); } #endif if( internal_container->checkpoint_map != NULL ) { libfsapfs_checkpoint_map_free( &( internal_container->checkpoint_map ), NULL ); } #if defined( HAVE_DEBUG_OUTPUT ) if( checkpoint_map != NULL ) { libfsapfs_checkpoint_map_free( &checkpoint_map, NULL ); } if( container_superblock != NULL ) { libfsapfs_container_superblock_free( &container_superblock, NULL ); } #endif if( internal_container->fusion_middle_tree != NULL ) { libfsapfs_fusion_middle_tree_free( &( internal_container->fusion_middle_tree ), NULL ); } if( object != NULL ) { libfsapfs_object_free( &object, NULL ); } if( internal_container->superblock != NULL ) { libfsapfs_container_superblock_free( &( internal_container->superblock ), NULL ); } return( -1 ); } /* Retrieves the size * Returns 1 if successful or -1 on error */ int libfsapfs_container_get_size( libfsapfs_container_t *container, size64_t *size, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_get_size"; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( internal_container->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container - missing IO handle.", function ); return( -1 ); } if( internal_container->superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container - missing superblock.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *size = internal_container->io_handle->container_size; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ int libfsapfs_container_get_identifier( libfsapfs_container_t *container, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_get_identifier"; int result = 1; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_container_superblock_get_container_identifier( internal_container->superblock, uuid_data, uuid_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve container identifier.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the number of volumes * Returns 1 if successful or -1 on error */ int libfsapfs_container_get_number_of_volumes( libfsapfs_container_t *container, int *number_of_volumes, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; static char *function = "libfsapfs_container_get_number_of_volumes"; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( internal_container->superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container - missing superblock.", function ); return( -1 ); } if( number_of_volumes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of volumes.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *number_of_volumes = internal_container->superblock->number_of_volumes; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves a specific of volume * The volume reference must be freed after use with libfsapfs_volume_free * Returns 1 if successful or -1 on error */ int libfsapfs_container_get_volume_by_index( libfsapfs_container_t *container, int volume_index, libfsapfs_volume_t **volume, libcerror_error_t **error ) { libfsapfs_internal_container_t *internal_container = NULL; libfsapfs_object_map_descriptor_t *object_map_descriptor = NULL; static char *function = "libfsapfs_container_get_volume_by_index"; off64_t file_offset = 0; if( container == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container.", function ); return( -1 ); } internal_container = (libfsapfs_internal_container_t *) container; if( internal_container->superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container - missing superblock.", function ); return( -1 ); } if( ( volume_index < 0 ) || ( volume_index >= (int) internal_container->superblock->number_of_volumes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid volume index value out of bounds.", function ); return( -1 ); } if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( *volume != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_object_map_btree_get_descriptor_by_object_identifier( internal_container->object_map_btree, internal_container->file_io_handle, internal_container->superblock->volume_object_identifiers[ volume_index ], &object_map_descriptor, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve object map descriptor for volume object identifier: %" PRIu64 ".", function, internal_container->superblock->volume_object_identifiers[ volume_index ] ); goto on_error; } if( object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid object map descriptor.", function ); goto on_error; } if( libfsapfs_volume_initialize( volume, internal_container->io_handle, internal_container->file_io_handle, internal_container->key_bag, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create volume.", function ); goto on_error; } file_offset = (off64_t) ( object_map_descriptor->physical_address * internal_container->io_handle->block_size ); if( libfsapfs_object_map_descriptor_free( &object_map_descriptor, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object map descriptor.", function ); goto on_error; } if( libfsapfs_internal_volume_open_read( (libfsapfs_internal_volume_t *) *volume, internal_container->file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open volume: %d.", function, volume_index ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_container->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); on_error: if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } if( *volume != NULL ) { libfsapfs_volume_free( volume, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_read( internal_container->read_write_lock, NULL ); #endif return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_key_encrypted_key.c0000664000175000017500000006661113426637446025737 0ustar00lordyestalordyesta00000000000000/* * The key encrypted key (KEK) functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_key_encrypted_key.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfguid.h" #include "libfsapfs_libhmac.h" #include "libfsapfs_password.h" #include "fsapfs_key_bag.h" const uint8_t libfsapfs_key_encrypted_key_wrapped_kek_initialization_vector[ 8 ] = { 0xa6, 0xa6, 0xa6, 0xa6, 0xa6, 0xa6, 0xa6, 0xa6 }; /* Creates a key encrypted key * Make sure the value key_encrypted_key is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_key_encrypted_key_initialize( libfsapfs_key_encrypted_key_t **key_encrypted_key, libcerror_error_t **error ) { static char *function = "libfsapfs_key_encrypted_key_initialize"; if( key_encrypted_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key encrypted key.", function ); return( -1 ); } if( *key_encrypted_key != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid key encrypted key value already set.", function ); return( -1 ); } *key_encrypted_key = memory_allocate_structure( libfsapfs_key_encrypted_key_t ); if( *key_encrypted_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create key encrypted key.", function ); goto on_error; } if( memory_set( *key_encrypted_key, 0, sizeof( libfsapfs_key_encrypted_key_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear key encrypted key.", function ); goto on_error; } return( 1 ); on_error: if( *key_encrypted_key != NULL ) { memory_free( *key_encrypted_key ); *key_encrypted_key = NULL; } return( -1 ); } /* Frees key encrypted key * Returns 1 if successful or -1 on error */ int libfsapfs_key_encrypted_key_free( libfsapfs_key_encrypted_key_t **key_encrypted_key, libcerror_error_t **error ) { static char *function = "libfsapfs_key_encrypted_key_free"; if( key_encrypted_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key encrypted key.", function ); return( -1 ); } if( *key_encrypted_key != NULL ) { memory_free( *key_encrypted_key ); *key_encrypted_key = NULL; } return( 1 ); } /* Reads the key encrypted key * Returns 1 if successful or -1 on error */ int libfsapfs_key_encrypted_key_read_data( libfsapfs_key_encrypted_key_t *key_encrypted_key, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { fsapfs_key_bag_kek_metadata_t *kek_metadata = NULL; const uint8_t *wrapped_kek_object_data = NULL; static char *function = "libfsapfs_key_encrypted_key_read_data"; size_t data_offset = 0; uint16_t value_data_size = 0; uint16_t wrapped_kek_object_data_size = 0; uint8_t byte_value = 0; uint8_t value_tag = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint16_t value_16bit = 0; #endif if( key_encrypted_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key encrypted key.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < 2 ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } value_tag = data[ data_offset++ ]; byte_value = data[ data_offset++ ]; if( ( ( byte_value & 0x80 ) != 0 ) && ( byte_value != 0x81 ) && ( byte_value != 0x82 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported object extended value data size: 0x02%" PRIx8 ".", function, byte_value ); return( -1 ); } if( ( byte_value & 0x80 ) == 0 ) { value_data_size = (uint16_t) byte_value; } else if( byte_value == 0x81 ) { value_data_size = (uint16_t) data[ data_offset++ ]; } else if( byte_value == 0x82 ) { byte_stream_copy_to_uint16_little_endian( &( data[ data_offset ] ), value_data_size ); data_offset += 2; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: KEK packed object data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object value tag\t\t\t: 0x%02" PRIx8 "\n", function, value_tag ); libcnotify_printf( "%s: object value data size\t\t: %" PRIu16 "\n", function, value_data_size ); libcnotify_printf( "%s: object value data:\n", function ); libcnotify_print_data( &( data[ data_offset ] ), (size_t) value_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( value_tag != 0x30 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported object value tag: 0x02%" PRIx8 ".", function, value_tag ); return( -1 ); } if( value_data_size > ( data_size - 2 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid object value data size value out of bounds.", function ); return( -1 ); } while( data_offset < data_size ) { value_tag = data[ data_offset++ ]; byte_value = data[ data_offset++ ]; if( ( ( byte_value & 0x80 ) != 0 ) && ( byte_value != 0x81 ) && ( byte_value != 0x82 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported attribute extended value data size: 0x02%" PRIx8 ".", function, byte_value ); return( -1 ); } if( ( byte_value & 0x80 ) == 0 ) { value_data_size = (uint16_t) byte_value; } else if( byte_value == 0x81 ) { value_data_size = (uint16_t) data[ data_offset++ ]; } else if( byte_value == 0x82 ) { byte_stream_copy_to_uint16_little_endian( &( data[ data_offset ] ), value_data_size ); data_offset += 2; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: attribute value tag\t\t: 0x%02" PRIx8 "\n", function, value_tag ); libcnotify_printf( "%s: attribute value data size\t: %" PRIu16 "\n", function, value_data_size ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( value_tag == 0 ) && ( value_data_size == 0 ) ) { break; } if( ( data_offset >= data_size ) || ( value_data_size > ( data_size - data_offset ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: attribute value data:\n", function ); libcnotify_print_data( &( data[ data_offset ] ), (size_t) value_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ switch( value_tag ) { case 0x81: if( value_data_size != 32 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported HMAC attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } if( memory_copy( key_encrypted_key->hmac, &( data[ data_offset ] ), 32 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy HMAC.", function ); return( -1 ); } break; case 0x82: if( value_data_size != 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } break; case 0xa3: if( value_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported wrapped KEK packed object attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } wrapped_kek_object_data = &( data[ data_offset - 2 ] ); wrapped_kek_object_data_size = value_data_size + 2; break; default: break; } data_offset += value_data_size; } if( wrapped_kek_object_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing wrapped KEK packed object.", function ); return( -1 ); } data_offset = 0; value_tag = wrapped_kek_object_data[ data_offset++ ]; byte_value = wrapped_kek_object_data[ data_offset++ ]; if( ( ( byte_value & 0x80 ) != 0 ) && ( byte_value != 0x82 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported object extended value data size: 0x02%" PRIx8 ".", function, byte_value ); return( -1 ); } if( ( byte_value & 0x80 ) == 0 ) { value_data_size = (uint16_t) byte_value; } else if( byte_value == 0x82 ) { byte_stream_copy_to_uint16_little_endian( &( wrapped_kek_object_data[ data_offset ] ), value_data_size ); data_offset += 2; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: wrapped KEK packed object data:\n", function ); libcnotify_print_data( wrapped_kek_object_data, wrapped_kek_object_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object value tag\t\t\t: 0x%02" PRIx8 "\n", function, value_tag ); libcnotify_printf( "%s: object value data size\t\t: %" PRIu16 "\n", function, value_data_size ); libcnotify_printf( "%s: object value data:\n", function ); libcnotify_print_data( &( wrapped_kek_object_data[ data_offset ] ), (size_t) value_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( value_tag != 0xa3 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported object value tag: 0x02%" PRIx8 ".", function, value_tag ); return( -1 ); } if( value_data_size > ( wrapped_kek_object_data_size - 2 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid object value data size value out of bounds.", function ); return( -1 ); } while( data_offset < wrapped_kek_object_data_size ) { value_tag = wrapped_kek_object_data[ data_offset++ ]; byte_value = wrapped_kek_object_data[ data_offset++ ]; if( ( ( byte_value & 0x80 ) != 0 ) && ( byte_value != 0x82 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported attribute extended value data size: 0x02%" PRIx8 ".", function, byte_value ); return( -1 ); } if( ( byte_value & 0x80 ) == 0 ) { value_data_size = (uint16_t) byte_value; } else if( byte_value == 0x82 ) { byte_stream_copy_to_uint16_little_endian( &( wrapped_kek_object_data[ data_offset ] ), value_data_size ); data_offset += 2; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: attribute value tag\t\t: 0x%02" PRIx8 "\n", function, value_tag ); libcnotify_printf( "%s: attribute value data size\t: %" PRIu16 "\n", function, value_data_size ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( value_tag == 0 ) && ( value_data_size == 0 ) ) { break; } if( ( data_offset >= wrapped_kek_object_data_size ) || ( value_data_size > ( wrapped_kek_object_data_size - data_offset ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: attribute value data:\n", function ); libcnotify_print_data( &( wrapped_kek_object_data[ data_offset ] ), (size_t) value_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ switch( value_tag ) { case 0x81: if( value_data_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported identifier attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } if( memory_copy( key_encrypted_key->identifier, &( wrapped_kek_object_data[ data_offset ] ), 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy identifier.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( libfsapfs_debug_print_guid_value( function, "identifier\t\t\t", &( wrapped_kek_object_data[ data_offset ] ), 16, LIBFGUID_ENDIAN_BIG, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print UUID value.", function ); return( -1 ); } libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ break; case 0x82: if( value_data_size != 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported KEK metadata attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } kek_metadata = (fsapfs_key_bag_kek_metadata_t *) &( wrapped_kek_object_data[ data_offset ] ); byte_stream_copy_to_uint32_little_endian( kek_metadata->encryption_method, key_encrypted_key->encryption_method ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: encryption method\t\t: %" PRIu32 "\n", function, key_encrypted_key->encryption_method ); byte_stream_copy_to_uint16_little_endian( kek_metadata->unknown1, value_16bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); libcnotify_printf( "%s: unknown2\t\t\t\t: 0x%02" PRIx8 "\n", function, kek_metadata->unknown2 ); libcnotify_printf( "%s: unknown3\t\t\t\t: 0x%02" PRIx8 "\n", function, kek_metadata->unknown3 ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ break; case 0x83: if( value_data_size != 40 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported wrapped KEK attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } if( memory_copy( key_encrypted_key->wrapped_kek, &( wrapped_kek_object_data[ data_offset ] ), 40 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy wrapped KEK.", function ); return( -1 ); } break; case 0x84: if( ( value_data_size == 0 ) || ( value_data_size > 8 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported number of iteration attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } key_encrypted_key->number_of_iterations = 0; while( value_data_size > 0 ) { key_encrypted_key->number_of_iterations <<= 8; key_encrypted_key->number_of_iterations |= wrapped_kek_object_data[ data_offset++ ]; value_data_size--; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: number of iterations\t\t: %" PRIu32 "\n", function, key_encrypted_key->number_of_iterations ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ break; case 0x85: if( value_data_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported salt attribute value data size: %" PRIu16 ".", function, value_data_size ); return( -1 ); } if( memory_copy( key_encrypted_key->salt, &( wrapped_kek_object_data[ data_offset ] ), 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy salt.", function ); return( -1 ); } break; default: break; } data_offset += value_data_size; } return( 1 ); } /* Unlocks the key encrypted key with a key * Returns 1 if successful, 0 if not or -1 on error */ int libfsapfs_key_encrypted_key_unlock_with_key( libfsapfs_key_encrypted_key_t *key_encrypted_key, const uint8_t *key, size_t key_size, uint8_t *unlocked_key, size_t unlocked_key_size, libcerror_error_t **error ) { uint8_t hash_buffer[ LIBHMAC_SHA256_HASH_SIZE ]; uint8_t wrapped_kek[ 40 ]; static char *function = "libfsapfs_key_encrypted_key_unlock_with_key"; size_t used_kek_data_size = 0; size_t used_key_size = 0; int result = 0; if( key_encrypted_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key encrypted key.", function ); return( -1 ); } if( key_encrypted_key->encryption_method == 0 ) { used_kek_data_size = 40; used_key_size = 32; } else if( key_encrypted_key->encryption_method == 2 ) { used_kek_data_size = 24; used_key_size = 16; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported encryption method.", function ); return( -1 ); } if( key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key.", function ); return( -1 ); } if( key_size != 256 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key size value out of bounds.", function ); return( -1 ); } if( unlocked_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid unlocked key.", function ); return( -1 ); } if( unlocked_key_size != 256 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid unlocked key size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: key:\n", function ); libcnotify_print_data( key, 32, 0 ); } #endif if( libfsapfs_encryption_aes_key_unwrap( key, used_key_size * 8, key_encrypted_key->wrapped_kek, used_kek_data_size, wrapped_kek, used_kek_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to unwrap wrapped KEK with key.", function ); goto on_error; } if( memory_compare( wrapped_kek, libfsapfs_key_encrypted_key_wrapped_kek_initialization_vector, 8 ) == 0 ) { if( memory_copy( unlocked_key, &( wrapped_kek[ 8 ] ), used_key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy unlocked key.", function ); goto on_error; } if( key_encrypted_key->encryption_method == 2 ) { if( memory_copy( &( unlocked_key[ 16 ] ), key_encrypted_key->identifier, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy identifier to unlocked key.", function ); goto on_error; } if( libhmac_sha256_calculate( unlocked_key, 32, hash_buffer, LIBHMAC_SHA256_HASH_SIZE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to calculate SHA-256 of tweak key data.", function ); goto on_error; } if( memory_copy( &( unlocked_key[ 16 ] ), hash_buffer, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy SHA-256 hash to unlocked key.", function ); goto on_error; } memory_set( hash_buffer, 0, LIBHMAC_SHA256_HASH_SIZE ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unlocked key:\n", function ); libcnotify_print_data( unlocked_key, unlocked_key_size / 8, 0 ); } #endif result = 1; } memory_set( wrapped_kek, 0, 40 ); return( result ); on_error: memory_set( wrapped_kek, 0, 40 ); memory_set( hash_buffer, 0, LIBHMAC_SHA256_HASH_SIZE ); return( -1 ); } /* Unlocks the key encrypted key with a password * Returns 1 if successful, 0 if not or -1 on error */ int libfsapfs_key_encrypted_key_unlock_with_password( libfsapfs_key_encrypted_key_t *key_encrypted_key, const uint8_t *password, size_t password_length, uint8_t *unlocked_key, size_t unlocked_key_size, libcerror_error_t **error ) { uint8_t password_key[ 32 ]; uint8_t wrapped_kek[ 40 ]; static char *function = "libfsapfs_key_encrypted_key_unlock_with_password"; size_t password_key_size = 0; size_t used_kek_data_size = 0; int result = 0; if( key_encrypted_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key encrypted key.", function ); return( -1 ); } if( ( key_encrypted_key->encryption_method == 0 ) || ( key_encrypted_key->encryption_method == 16 ) ) { password_key_size = 32; used_kek_data_size = 40; } else if( key_encrypted_key->encryption_method == 2 ) { password_key_size = 16; used_kek_data_size = 24; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported encryption method.", function ); return( -1 ); } if( unlocked_key == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid unlocked key.", function ); return( -1 ); } if( unlocked_key_size != 256 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key size value out of bounds.", function ); return( -1 ); } if( libfsapfs_password_pbkdf2( password, password_length, key_encrypted_key->salt, 16, key_encrypted_key->number_of_iterations, password_key, password_key_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine password key.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: password key:\n", function ); libcnotify_print_data( password_key, password_key_size, 0 ); } #endif if( libfsapfs_encryption_aes_key_unwrap( password_key, password_key_size * 8, key_encrypted_key->wrapped_kek, used_kek_data_size, wrapped_kek, used_kek_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to unwrap wrapped KEK with password.", function ); goto on_error; } memory_set( password_key, 0, 32 ); if( memory_compare( wrapped_kek, libfsapfs_key_encrypted_key_wrapped_kek_initialization_vector, 8 ) == 0 ) { if( memory_copy( unlocked_key, &( wrapped_kek[ 8 ] ), password_key_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy unlocked key.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unlocked key:\n", function ); libcnotify_print_data( unlocked_key, unlocked_key_size / 8, 0 ); } #endif result = 1; } memory_set( wrapped_kek, 0, 40 ); return( result ); on_error: memory_set( wrapped_kek, 0, 40 ); memory_set( password_key, 0, 32 ); return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_data_block_data_handle.c0000664000175000017500000003525513426637446026611 0ustar00lordyestalordyesta00000000000000/* * The data block data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_data_block.h" #include "libfsapfs_data_block_data_handle.h" #include "libfsapfs_definitions.h" #include "libfsapfs_file_extent.h" #include "libfsapfs_file_system_data_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_unused.h" /* Creates data handle * Make sure the value data_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_data_block_data_handle_initialize( libfsapfs_data_block_data_handle_t **data_handle, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libcdata_array_t *file_extents, uint8_t is_sparse, libcerror_error_t **error ) { libfsapfs_file_extent_t *file_extent = NULL; static char *function = "libfsapfs_data_block_data_handle_initialize"; uint64_t logical_offset = 0; uint32_t segment_flags = 0; int extent_index = 0; int number_of_extents = 0; int segment_index = 0; if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( *data_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid data handle value already set.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } *data_handle = memory_allocate_structure( libfsapfs_data_block_data_handle_t ); if( *data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data handle.", function ); goto on_error; } if( memory_set( *data_handle, 0, sizeof( libfsapfs_data_block_data_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear data handle.", function ); memory_free( *data_handle ); *data_handle = NULL; return( -1 ); } if( libfsapfs_file_system_data_handle_initialize( &( ( *data_handle )->file_system_data_handle ), io_handle, encryption_context, file_extents, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file system data handle.", function ); goto on_error; } if( libfdata_vector_initialize( &( ( *data_handle )->data_block_vector ), (size64_t) io_handle->block_size, (intptr_t *) ( *data_handle )->file_system_data_handle, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_system_data_handle_free, NULL, (int (*)(intptr_t *, intptr_t *, libfdata_vector_t *, libfdata_cache_t *, int, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libfsapfs_file_system_data_handle_read_data_block, NULL, LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block vector.", function ); goto on_error; } if( libcdata_array_get_number_of_entries( file_extents, &number_of_extents, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); goto on_error; } for( extent_index = 0; extent_index < number_of_extents; extent_index++ ) { if( libcdata_array_get_entry_by_index( file_extents, extent_index, (intptr_t **) &file_extent, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extent: %d.", function, extent_index ); goto on_error; } if( file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing file extent: %d.", function, extent_index ); goto on_error; } if( ( is_sparse == 0 ) || ( file_extent->physical_block_number != 0 ) ) { if( file_extent->logical_offset != logical_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file extent: %d - logical offset value out of bounds.", function, extent_index ); goto on_error; } } segment_flags = 0; if( ( is_sparse != 0 ) && ( file_extent->physical_block_number == 0 ) ) { segment_flags = LIBFDATA_RANGE_FLAG_IS_SPARSE; } if( libfdata_vector_append_segment( ( *data_handle )->data_block_vector, &segment_index, extent_index, file_extent->physical_block_number * io_handle->block_size, file_extent->data_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append extent: %d as data block vector segment.", function, extent_index ); goto on_error; } logical_offset += file_extent->data_size; } if( libfcache_cache_initialize( &( ( *data_handle )->data_block_cache ), LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_DATA_BLOCKS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block cache.", function ); goto on_error; } ( *data_handle )->io_handle = io_handle; return( 1 ); on_error: if( *data_handle != NULL ) { if( ( *data_handle )->data_block_cache != NULL ) { libfcache_cache_free( &( ( *data_handle )->data_block_cache ), NULL ); } if( ( *data_handle )->data_block_vector != NULL ) { libfdata_vector_free( &( ( *data_handle )->data_block_vector ), NULL ); } if( ( *data_handle )->file_system_data_handle != NULL ) { libfsapfs_file_system_data_handle_free( &( ( *data_handle )->file_system_data_handle ), NULL ); } memory_free( *data_handle ); *data_handle = NULL; } return( -1 ); } /* Frees data handle * Returns 1 if successful or -1 on error */ int libfsapfs_data_block_data_handle_free( libfsapfs_data_block_data_handle_t **data_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_data_block_data_handle_free"; int result = 1; if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( *data_handle != NULL ) { if( libfcache_cache_free( &( ( *data_handle )->data_block_cache ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data block cache.", function ); result = -1; } if( libfdata_vector_free( &( ( *data_handle )->data_block_vector ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data block vector.", function ); result = -1; } if( libfsapfs_file_system_data_handle_free( &( ( *data_handle )->file_system_data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file system data handle.", function ); result = -1; } memory_free( *data_handle ); *data_handle = NULL; } return( result ); } /* Reads data from the current offset into a buffer * Callback for the data stream * Returns the number of bytes read or -1 on error */ ssize_t libfsapfs_data_block_data_handle_read_segment_data( libfsapfs_data_block_data_handle_t *data_handle, libbfio_handle_t *file_io_handle, int segment_index LIBFSAPFS_ATTRIBUTE_UNUSED, int segment_file_index LIBFSAPFS_ATTRIBUTE_UNUSED, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags LIBFSAPFS_ATTRIBUTE_UNUSED, uint8_t read_flags LIBFSAPFS_ATTRIBUTE_UNUSED, libcerror_error_t **error ) { libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_data_block_data_handle_read_segment_data"; size_t data_block_offset = 0; size_t read_size = 0; size_t segment_data_offset = 0; uint64_t block_number = 0; LIBFSAPFS_UNREFERENCED_PARAMETER( segment_index ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_file_index ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_flags ) LIBFSAPFS_UNREFERENCED_PARAMETER( read_flags ) if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( data_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data handle - missing IO handle.", function ); return( -1 ); } if( data_handle->current_segment_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data handle - current segment offset value out of bounds.", function ); return( -1 ); } if( segment_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment data.", function ); return( -1 ); } if( segment_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid segment data size value exceeds maximum.", function ); return( -1 ); } block_number = data_handle->current_segment_offset / data_handle->io_handle->block_size; data_block_offset = data_handle->current_segment_offset % data_handle->io_handle->block_size; while( segment_data_size > 0 ) { if( libfdata_vector_get_element_value_by_index( data_handle->data_block_vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) data_handle->data_block_cache, block_number, (intptr_t **) &data_block, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data block: %" PRIu64 ".", function, block_number ); return( -1 ); } if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 ".", function, block_number ); return( -1 ); } if( data_block->data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 " - missing data.", function, block_number ); return( -1 ); } if( data_block_offset >= data_block->data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data block offset value out of bounds.", function ); return( -1 ); } read_size = data_block->data_size - data_block_offset; if( read_size > segment_data_size ) { read_size = segment_data_size; } if( memory_copy( &( segment_data[ segment_data_offset ] ), &( data_block->data[ data_block_offset ] ), read_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data block: %" PRIu64 " data.", function, block_number ); return( -1 ); } data_block_offset = 0; segment_data_offset += read_size; segment_data_size -= read_size; block_number++; } data_handle->current_segment_offset += segment_data_offset; return( (ssize_t) segment_data_offset ); } /* Seeks a certain offset of the data * Callback for the data stream * Returns the offset if seek is successful or -1 on error */ off64_t libfsapfs_data_block_data_handle_seek_segment_offset( libfsapfs_data_block_data_handle_t *data_handle, intptr_t *file_io_handle LIBFSAPFS_ATTRIBUTE_UNUSED, int segment_index LIBFSAPFS_ATTRIBUTE_UNUSED, int segment_file_index LIBFSAPFS_ATTRIBUTE_UNUSED, off64_t segment_offset, libcerror_error_t **error ) { static char *function = "libfsapfs_data_block_data_handle_seek_segment_offset"; LIBFSAPFS_UNREFERENCED_PARAMETER( file_io_handle ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_index ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_file_index ) if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( segment_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment offset value out of bounds.", function ); return( -1 ); } data_handle->current_segment_offset = segment_offset; return( segment_offset ); } libfsapfs-20190210/libfsapfs/libfsapfs_extent_reference_tree.c0000664000175000017500000002144213426637446026557 0ustar00lordyestalordyesta00000000000000/* * The extent reference tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_extent_reference_tree.h" #include "fsapfs_extent_reference_tree.h" /* Creates a extent reference tree * Make sure the value extent_reference_tree is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_extent_reference_tree_initialize( libfsapfs_extent_reference_tree_t **extent_reference_tree, libcerror_error_t **error ) { static char *function = "libfsapfs_extent_reference_tree_initialize"; if( extent_reference_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extent reference tree.", function ); return( -1 ); } if( *extent_reference_tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extent reference tree value already set.", function ); return( -1 ); } *extent_reference_tree = memory_allocate_structure( libfsapfs_extent_reference_tree_t ); if( *extent_reference_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create extent reference tree.", function ); goto on_error; } if( memory_set( *extent_reference_tree, 0, sizeof( libfsapfs_extent_reference_tree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear extent reference tree.", function ); goto on_error; } return( 1 ); on_error: if( *extent_reference_tree != NULL ) { memory_free( *extent_reference_tree ); *extent_reference_tree = NULL; } return( -1 ); } /* Frees a extent reference tree * Returns 1 if successful or -1 on error */ int libfsapfs_extent_reference_tree_free( libfsapfs_extent_reference_tree_t **extent_reference_tree, libcerror_error_t **error ) { static char *function = "libfsapfs_extent_reference_tree_free"; if( extent_reference_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extent reference tree.", function ); return( -1 ); } if( *extent_reference_tree != NULL ) { memory_free( *extent_reference_tree ); *extent_reference_tree = NULL; } return( 1 ); } /* Reads the extent reference tree * Returns 1 if successful or -1 on error */ int libfsapfs_extent_reference_tree_read_file_io_handle( libfsapfs_extent_reference_tree_t *extent_reference_tree, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { uint8_t extent_reference_tree_data[ 4096 ]; static char *function = "libfsapfs_extent_reference_tree_read_file_io_handle"; ssize_t read_count = 0; if( extent_reference_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extent reference tree.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading extent reference tree at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek extent reference tree offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, extent_reference_tree_data, 4096, error ); if( read_count != (ssize_t) 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read extent reference tree data.", function ); return( -1 ); } if( libfsapfs_extent_reference_tree_read_data( extent_reference_tree, extent_reference_tree_data, 4096, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read extent reference tree data.", function ); return( -1 ); } return( 1 ); } /* Reads the extent reference tree * Returns 1 if successful or -1 on error */ int libfsapfs_extent_reference_tree_read_data( libfsapfs_extent_reference_tree_t *extent_reference_tree, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_extent_reference_tree_read_data"; uint32_t object_subtype = 0; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( extent_reference_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extent reference tree.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_extent_reference_tree_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extent reference tree data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_extent_reference_tree_t *) data )->object_type, object_type ); if( object_type != 0x40000002UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_extent_reference_tree_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x0000000fUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_extent_reference_tree_t *) data )->object_checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_extent_reference_tree_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_extent_reference_tree_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_extent_reference_tree_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_file_system_data_handle.c0000664000175000017500000002303313426637446027040 0ustar00lordyestalordyesta00000000000000/* * The file system data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_data_block.h" #include "libfsapfs_definitions.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_file_extent.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_profiler.h" #include "libfsapfs_unused.h" #include "libfsapfs_file_system_data_handle.h" /* Creates file system data handle * Make sure the value file_system_data_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_file_system_data_handle_initialize( libfsapfs_file_system_data_handle_t **file_system_data_handle, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libcdata_array_t *file_extents, libcerror_error_t **error ) { static char *function = "libfsapfs_file_system_data_handle_initialize"; if( file_system_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system data handle.", function ); return( -1 ); } if( *file_system_data_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file system data handle value already set.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } *file_system_data_handle = memory_allocate_structure( libfsapfs_file_system_data_handle_t ); if( *file_system_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file system data handle.", function ); goto on_error; } if( memory_set( *file_system_data_handle, 0, sizeof( libfsapfs_file_system_data_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file system data handle.", function ); goto on_error; } ( *file_system_data_handle )->io_handle = io_handle; ( *file_system_data_handle )->encryption_context = encryption_context; ( *file_system_data_handle )->file_extents = file_extents; return( 1 ); on_error: if( *file_system_data_handle != NULL ) { memory_free( *file_system_data_handle ); *file_system_data_handle = NULL; } return( -1 ); } /* Frees file system data handle * Returns 1 if successful or -1 on error */ int libfsapfs_file_system_data_handle_free( libfsapfs_file_system_data_handle_t **file_system_data_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_file_system_data_handle_free"; if( file_system_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system data handle.", function ); return( -1 ); } if( *file_system_data_handle != NULL ) { memory_free( *file_system_data_handle ); *file_system_data_handle = NULL; } return( 1 ); } /* Reads a data block * Callback function for a data block vector * Returns 1 if successful or -1 on error */ int libfsapfs_file_system_data_handle_read_data_block( libfsapfs_file_system_data_handle_t *file_system_data_handle, libbfio_handle_t *file_io_handle, libfdata_vector_t *vector, libfcache_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags LIBFSAPFS_ATTRIBUTE_UNUSED, libcerror_error_t **error ) { libfsapfs_data_block_t *data_block = NULL; libfsapfs_file_extent_t *file_extent = NULL; static char *function = "libfsapfs_file_system_data_handle_read_data_block"; uint64_t encryption_identifier = 0; int64_t file_extent_offset = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif LIBFSAPFS_UNREFERENCED_PARAMETER( read_flags ); if( file_system_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system data handle.", function ); return( -1 ); } if( file_system_data_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file system data handle - missing IO handle.", function ); return( -1 ); } if( element_data_size > (size64_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid element data size value exceeds maximum.", function ); return( -1 ); } if( libfsapfs_data_block_initialize( &data_block, (size_t) element_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block.", function ); goto on_error; } #if defined( HAVE_PROFILER ) if( file_system_data_handle->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( file_system_data_handle->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( ( element_data_flags & LIBFDATA_RANGE_FLAG_IS_SPARSE ) != 0 ) { if( libfsapfs_data_block_clear_data( data_block, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to clear data block.", function ); goto on_error; } } else { encryption_identifier = element_data_offset / element_data_size; if( file_system_data_handle->file_extents != NULL ) { if( libcdata_array_get_entry_by_index( file_system_data_handle->file_extents, element_data_file_index, (intptr_t **) &file_extent, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extent: %d.", function, element_data_file_index ); goto on_error; } if( file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing file extent: %d.", function, element_data_file_index ); goto on_error; } file_extent_offset = (int64_t) encryption_identifier - (int64_t) file_extent->physical_block_number; encryption_identifier = file_extent->encryption_identifier + file_extent_offset; } if( libfsapfs_data_block_read( data_block, file_system_data_handle->io_handle, file_system_data_handle->encryption_context, file_io_handle, element_data_offset, encryption_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read data block.", function ); goto on_error; } } #if defined( HAVE_PROFILER ) if( file_system_data_handle->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( file_system_data_handle->io_handle->profiler, profiler_start_timestamp, function, element_data_offset, element_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfdata_vector_set_element_value_by_index( vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) cache, element_index, (intptr_t *) data_block, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_data_block_free, LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data block as element value.", function ); goto on_error; } return( 1 ); on_error: if( data_block != NULL ) { libfsapfs_data_block_free( &data_block, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_buffer_data_handle.c0000664000175000017500000001663413426637446025777 0ustar00lordyestalordyesta00000000000000/* * The buffer data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_buffer_data_handle.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_unused.h" /* Creates buffer data handle * Make sure the value data_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_buffer_data_handle_initialize( libfsapfs_buffer_data_handle_t **data_handle, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_buffer_data_handle_initialize"; if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( *data_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid data handle value already set.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data.", function ); return( -1 ); } if( data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid data size value exceeds maximum.", function ); return( -1 ); } *data_handle = memory_allocate_structure( libfsapfs_buffer_data_handle_t ); if( *data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data handle.", function ); goto on_error; } if( memory_set( *data_handle, 0, sizeof( libfsapfs_buffer_data_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear data handle.", function ); goto on_error; } ( *data_handle )->data = data; ( *data_handle )->data_size = data_size; return( 1 ); on_error: if( *data_handle != NULL ) { memory_free( *data_handle ); *data_handle = NULL; } return( -1 ); } /* Frees data handle * Returns 1 if successful or -1 on error */ int libfsapfs_buffer_data_handle_free( libfsapfs_buffer_data_handle_t **data_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_buffer_data_handle_free"; if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( *data_handle != NULL ) { memory_free( *data_handle ); *data_handle = NULL; } return( 1 ); } /* Reads data from the current offset into a buffer * Callback for the data stream * Returns the number of bytes read or -1 on error */ ssize_t libfsapfs_buffer_data_handle_read_segment_data( libfsapfs_buffer_data_handle_t *data_handle, intptr_t *file_io_handle LIBFSAPFS_ATTRIBUTE_UNUSED, int segment_index, int segment_file_index LIBFSAPFS_ATTRIBUTE_UNUSED, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags LIBFSAPFS_ATTRIBUTE_UNUSED, uint8_t read_flags LIBFSAPFS_ATTRIBUTE_UNUSED, libcerror_error_t **error ) { static char *function = "libfsapfs_buffer_data_handle_read_segment_data"; size_t read_size = 0; LIBFSAPFS_UNREFERENCED_PARAMETER( file_io_handle ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_file_index ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_flags ) LIBFSAPFS_UNREFERENCED_PARAMETER( read_flags ) if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( segment_index != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( segment_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment data.", function ); return( -1 ); } if( segment_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid segment data size value exceeds maximum.", function ); return( -1 ); } if( data_handle->current_segment_offset >= (off64_t) data_handle->data_size ) { return( 0 ); } read_size = data_handle->data_size - (size_t) data_handle->current_segment_offset; if( read_size > segment_data_size ) { read_size = segment_data_size; } if( memory_copy( segment_data, &( data_handle->data[ data_handle->current_segment_offset ] ), read_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy data.", function ); return( -1 ); } data_handle->current_segment_offset += read_size; return( (ssize_t) read_size ); } /* Seeks a certain offset of the data * Callback for the data stream * Returns the offset if seek is successful or -1 on error */ off64_t libfsapfs_buffer_data_handle_seek_segment_offset( libfsapfs_buffer_data_handle_t *data_handle, intptr_t *file_io_handle LIBFSAPFS_ATTRIBUTE_UNUSED, int segment_index, int segment_file_index LIBFSAPFS_ATTRIBUTE_UNUSED, off64_t segment_offset, libcerror_error_t **error ) { static char *function = "libfsapfs_buffer_data_handle_seek_segment_offset"; LIBFSAPFS_UNREFERENCED_PARAMETER( file_io_handle ) LIBFSAPFS_UNREFERENCED_PARAMETER( segment_file_index ) if( data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data handle.", function ); return( -1 ); } if( segment_index != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( segment_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment offset value out of bounds.", function ); return( -1 ); } data_handle->current_segment_offset = segment_offset; return( segment_offset ); } libfsapfs-20190210/libfsapfs/libfsapfs_file_extent.c0000664000175000017500000001720113426637446024517 0ustar00lordyestalordyesta00000000000000/* * File extent functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_file_extent.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfdatetime.h" #include "libfsapfs_libuna.h" #include "fsapfs_file_system.h" /* Creates a file_extent * Make sure the value file_extent is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_file_extent_initialize( libfsapfs_file_extent_t **file_extent, libcerror_error_t **error ) { static char *function = "libfsapfs_file_extent_initialize"; if( file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file extent.", function ); return( -1 ); } if( *file_extent != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file extent value already set.", function ); return( -1 ); } *file_extent = memory_allocate_structure( libfsapfs_file_extent_t ); if( *file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file extent.", function ); goto on_error; } if( memory_set( *file_extent, 0, sizeof( libfsapfs_file_extent_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file extent.", function ); goto on_error; } return( 1 ); on_error: if( *file_extent != NULL ) { memory_free( *file_extent ); *file_extent = NULL; } return( -1 ); } /* Frees a file extent * Returns 1 if successful or -1 on error */ int libfsapfs_file_extent_free( libfsapfs_file_extent_t **file_extent, libcerror_error_t **error ) { static char *function = "libfsapfs_file_extent_free"; if( file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file extent.", function ); return( -1 ); } if( *file_extent != NULL ) { memory_free( *file_extent ); *file_extent = NULL; } return( 1 ); } /* Reads the file extent key data * Returns 1 if successful or -1 on error */ int libfsapfs_file_extent_read_key_data( libfsapfs_file_extent_t *file_extent, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_file_extent_read_key_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file extent.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_key_file_extent_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: file extent key data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_file_extent_t *) data )->logical_address, file_extent->logical_offset ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_file_extent_t *) data )->file_system_identifier, value_64bit ); libcnotify_printf( "%s: identifier\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "%s: logical address\t\t\t: 0x%08" PRIx64 "\n", function, file_extent->logical_offset ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } /* Reads the file extent value data * Returns 1 if successful or -1 on error */ int libfsapfs_file_extent_read_value_data( libfsapfs_file_extent_t *file_extent, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_file_extent_read_value_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file extent.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_value_file_extent_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: file extent value data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_file_extent_t *) data )->data_size_and_flags, file_extent->data_size ); file_extent->data_size &= 0x00ffffffffffffffUL; byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_file_extent_t *) data )->physical_block_number, file_extent->physical_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_file_extent_t *) data )->encryption_identifier, file_extent->encryption_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_file_extent_t *) data )->data_size_and_flags, value_64bit ); libcnotify_printf( "%s: data size and flags\t\t: 0x%08" PRIx64 " (data size: %" PRIu64 ", flags: 0x%02" PRIx64 ")\n", function, value_64bit, file_extent->data_size, value_64bit >> 56 ); libcnotify_printf( "%s: physical block number\t\t: %" PRIu64 "\n", function, file_extent->physical_block_number ); libcnotify_printf( "%s: encryption identifier\t\t: %" PRIu64 "\n", function, file_extent->encryption_identifier ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_libcaes.h0000664000175000017500000000265313426637446023625 0ustar00lordyestalordyesta00000000000000/* * The libcaes header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBCAES_H ) #define _LIBFSAPFS_LIBCAES_H #include /* Define HAVE_LOCAL_LIBCAES for local use of libcaes */ #if defined( HAVE_LOCAL_LIBCAES ) #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCAES_DLL_IMPORT * before including libcaes.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCAES_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCAES ) */ #endif /* !defined( _LIBFSAPFS_LIBCAES_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_key_bag.h0000664000175000017500000000476013426637446023136 0ustar00lordyestalordyesta00000000000000/* * The APFS key bag definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_KEY_BAG_H ) #define _FSAPFS_KEY_BAG_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_key_bag_header fsapfs_key_bag_header_t; struct fsapfs_key_bag_header { /* The format version * Consists of 2 bytes */ uint8_t format_version[ 2 ]; /* The number of entries * Consists of 2 bytes */ uint8_t number_of_entries[ 2 ]; /* The data size * Consists of 4 bytes */ uint8_t data_size[ 4 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown1[ 8 ]; }; typedef struct fsapfs_key_bag_entry_header fsapfs_key_bag_entry_header_t; struct fsapfs_key_bag_entry_header { /* The identifier * Consists of 16 bytes * Contains an UUID */ uint8_t identifier[ 16 ]; /* The entry type * Consists of 2 bytes */ uint8_t entry_type[ 2 ]; /* The entry data size * Consists of 2 bytes */ uint8_t data_size[ 2 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; }; typedef struct fsapfs_key_bag_kek_metadata fsapfs_key_bag_kek_metadata_t; struct fsapfs_key_bag_kek_metadata { /* The encryption method * Consists of 4 bytes */ uint8_t encryption_method[ 4 ]; /* Unknown * Consists of 2 bytes */ uint8_t unknown1[ 2 ]; /* Unknown * Consists of 1 byte */ uint8_t unknown2; /* Unknown * Consists of 1 byte */ uint8_t unknown3; }; typedef struct fsapfs_key_bag_extent fsapfs_key_bag_extent_t; struct fsapfs_key_bag_extent { /* The block number * Consists of 8 bytes */ uint8_t block_number[ 8 ]; /* The number of blocks * Consists of 8 bytes */ uint8_t number_of_blocks[ 8 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_KEY_BAG_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_compression.h0000664000175000017500000000246613426637446024566 0ustar00lordyestalordyesta00000000000000/* * Compression functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_COMPRESSION_H ) #define _LIBFSAPFS_COMPRESSION_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int libfsapfs_decompress_data( const uint8_t *compressed_data, size_t compressed_data_size, int compression_method, uint8_t *uncompressed_data, size_t *uncompressed_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_COMPRESSION_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_snapshot_metadata_tree.c0000664000175000017500000007522713426637446026743 0ustar00lordyestalordyesta00000000000000/* * The snapshot metadata tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_btree_node.h" #include "libfsapfs_data_block.h" #include "libfsapfs_definitions.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_snapshot_metadata.h" #include "libfsapfs_snapshot_metadata_tree.h" #include "fsapfs_object.h" #include "fsapfs_snapshot_metadata.h" /* Creates a snapshot metadata tree * Make sure the value snapshot_metadata_tree is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_tree_initialize( libfsapfs_snapshot_metadata_tree_t **snapshot_metadata_tree, libfsapfs_io_handle_t *io_handle, libfdata_vector_t *data_block_vector, uint64_t root_node_block_number, libcerror_error_t **error ) { static char *function = "libfsapfs_snapshot_metadata_tree_initialize"; if( snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata tree.", function ); return( -1 ); } if( *snapshot_metadata_tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid snapshot metadata tree value already set.", function ); return( -1 ); } *snapshot_metadata_tree = memory_allocate_structure( libfsapfs_snapshot_metadata_tree_t ); if( *snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create snapshot metadata tree.", function ); goto on_error; } if( memory_set( *snapshot_metadata_tree, 0, sizeof( libfsapfs_snapshot_metadata_tree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear snapshot metadata tree.", function ); memory_free( *snapshot_metadata_tree ); *snapshot_metadata_tree = NULL; return( -1 ); } if( libfcache_cache_initialize( &( ( *snapshot_metadata_tree )->data_block_cache ), LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_DATA_BLOCKS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block cache.", function ); goto on_error; } if( libfcache_cache_initialize( &( ( *snapshot_metadata_tree )->node_cache ), LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_BTREE_NODES, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create node cache.", function ); goto on_error; } ( *snapshot_metadata_tree )->io_handle = io_handle; ( *snapshot_metadata_tree )->data_block_vector = data_block_vector; ( *snapshot_metadata_tree )->root_node_block_number = root_node_block_number; return( 1 ); on_error: if( *snapshot_metadata_tree != NULL ) { memory_free( *snapshot_metadata_tree ); *snapshot_metadata_tree = NULL; } return( -1 ); } /* Frees a snapshot metadata tree * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_tree_free( libfsapfs_snapshot_metadata_tree_t **snapshot_metadata_tree, libcerror_error_t **error ) { static char *function = "libfsapfs_snapshot_metadata_tree_free"; int result = 1; if( snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata tree.", function ); return( -1 ); } if( *snapshot_metadata_tree != NULL ) { /* The data_block_vector is referenced and freed elsewhere */ if( libfcache_cache_free( &( ( *snapshot_metadata_tree )->node_cache ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free node cache.", function ); result = -1; } if( libfcache_cache_free( &( ( *snapshot_metadata_tree )->data_block_cache ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data block cache.", function ); result = -1; } memory_free( *snapshot_metadata_tree ); *snapshot_metadata_tree = NULL; } return( result ); } /* Retrieves the snapshot metadata tree root node * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_tree_get_root_node( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t root_node_block_number, libfsapfs_btree_node_t **root_node, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfsapfs_btree_node_t *node = NULL; libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_snapshot_metadata_tree_get_root_node"; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata tree.", function ); return( -1 ); } if( root_node_block_number > (uint64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid root node block number value out of bounds.", function ); return( -1 ); } if( root_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid root node.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( snapshot_metadata_tree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( snapshot_metadata_tree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ result = libfcache_cache_get_value_by_identifier( snapshot_metadata_tree->node_cache, 0, (off64_t) root_node_block_number, 0, &cache_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } else if( result == 0 ) { if( libfdata_vector_get_element_value_by_index( snapshot_metadata_tree->data_block_vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) snapshot_metadata_tree->data_block_cache, (int) root_node_block_number, (intptr_t **) &data_block, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data block: %" PRIu64 ".", function, root_node_block_number ); goto on_error; } if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 ".", function, root_node_block_number ); goto on_error; } if( libfsapfs_btree_node_initialize( &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree node.", function ); goto on_error; } if( libfsapfs_btree_node_read_data( node, data_block->data, data_block->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node.", function ); goto on_error; } if( node->object_type != 0x40000002UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, node->object_type ); goto on_error; } if( node->object_subtype != 0x00000010UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, node->object_subtype ); goto on_error; } if( ( node->node_header->flags & 0x0001 ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%04" PRIx16 ".", function, node->node_header->flags ); goto on_error; } if( node->footer->node_size != 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node size value out of bounds.", function ); goto on_error; } if( node->footer->key_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key size value out of bounds.", function ); goto on_error; } if( node->footer->value_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value size value out of bounds.", function ); goto on_error; } if( libfcache_cache_set_value_by_identifier( snapshot_metadata_tree->node_cache, 0, (off64_t) root_node_block_number, 0, (intptr_t *) node, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache.", function ); goto on_error; } node = NULL; if( libfcache_cache_get_value_by_identifier( snapshot_metadata_tree->node_cache, 0, (off64_t) root_node_block_number, 0, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } } #if defined( HAVE_PROFILER ) if( snapshot_metadata_tree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( snapshot_metadata_tree->io_handle->profiler, profiler_start_timestamp, function, root_node_block_number * snapshot_metadata_tree->io_handle->block_size, snapshot_metadata_tree->io_handle->block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfcache_cache_value_get_value( cache_value, (intptr_t **) root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve root node.", function ); goto on_error; } return( 1 ); on_error: if( node != NULL ) { libfsapfs_btree_node_free( &node, NULL ); } return( -1 ); } /* Retrieves a snapshot metadata tree sub node * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_tree_get_sub_node( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t sub_node_block_number, libfsapfs_btree_node_t **sub_node, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfsapfs_btree_node_t *node = NULL; libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_snapshot_metadata_tree_get_sub_node"; int result = 0; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif if( snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata tree.", function ); return( -1 ); } if( sub_node_block_number > (uint64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sub node block number value out of bounds.", function ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) if( snapshot_metadata_tree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( snapshot_metadata_tree->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ result = libfcache_cache_get_value_by_identifier( snapshot_metadata_tree->node_cache, 0, (off64_t) sub_node_block_number, 0, &cache_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } else if( result == 0 ) { if( libfdata_vector_get_element_value_by_index( snapshot_metadata_tree->data_block_vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) snapshot_metadata_tree->data_block_cache, (int) sub_node_block_number, (intptr_t **) &data_block, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block: %" PRIu64 ".", function, sub_node_block_number ); goto on_error; } if( libfsapfs_btree_node_initialize( &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree node.", function ); goto on_error; } if( libfsapfs_btree_node_read_data( node, data_block->data, data_block->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node.", function ); goto on_error; } if( node->object_type != 0x40000003UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, node->object_type ); goto on_error; } if( node->object_subtype != 0x00000010UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, node->object_subtype ); goto on_error; } if( ( node->node_header->flags & 0x0001 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%04" PRIx16 ".", function, node->node_header->flags ); goto on_error; } if( libfcache_cache_set_value_by_identifier( snapshot_metadata_tree->node_cache, 0, (off64_t) sub_node_block_number, 0, (intptr_t *) node, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache.", function ); goto on_error; } node = NULL; if( libfcache_cache_get_value_by_identifier( snapshot_metadata_tree->node_cache, 0, (off64_t) sub_node_block_number, 0, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); goto on_error; } } #if defined( HAVE_PROFILER ) if( snapshot_metadata_tree->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( snapshot_metadata_tree->io_handle->profiler, profiler_start_timestamp, function, sub_node_block_number * snapshot_metadata_tree->io_handle->block_size, snapshot_metadata_tree->io_handle->block_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfcache_cache_value_get_value( cache_value, (intptr_t **) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node.", function ); goto on_error; } return( 1 ); on_error: if( node != NULL ) { libfsapfs_btree_node_free( &node, NULL ); } return( -1 ); } /* Retrieves an entry for a specific identifier from the snapshot metadata tree node * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_snapshot_metadata_tree_get_entry_from_node_by_identifier( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libfsapfs_btree_node_t *node, uint64_t object_identifier, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_entry_t *previous_entry = NULL; static char *function = "libfsapfs_snapshot_metadata_tree_get_entry_from_node_by_identifier"; uint64_t snapshot_metadata_identifier = 0; int btree_entry_index = 0; int is_leaf_node = 0; int number_of_entries = 0; if( snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata tree.", function ); return( -1 ); } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: retrieving B-tree entry identifier: %" PRIu64 ".\n", function, object_identifier ); } #endif is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); return( -1 ); } if( libfsapfs_btree_node_get_number_of_entries( node, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); return( -1 ); } for( btree_entry_index = 0; btree_entry_index < number_of_entries; btree_entry_index++ ) { if( libfsapfs_btree_node_get_entry_by_index( node, btree_entry_index, &entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from B-tree node.", function ); return( -1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d.", function, btree_entry_index ); return( -1 ); } if( entry->key_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry: %d - missing key data.", function, btree_entry_index ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( entry->key_data, snapshot_metadata_identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree entry: %d, identifier: %" PRIu64 "\n", function, btree_entry_index, snapshot_metadata_identifier ); } #endif if( snapshot_metadata_identifier > object_identifier ) { break; } if( is_leaf_node != 0 ) { if( snapshot_metadata_identifier == object_identifier ) { *btree_entry = entry; return( 1 ); } } else { if( snapshot_metadata_identifier >= object_identifier ) { if( ( previous_entry == NULL ) || ( snapshot_metadata_identifier == object_identifier ) ) { previous_entry = entry; } *btree_entry = previous_entry; return( 1 ); } previous_entry = entry; } } if( is_leaf_node == 0 ) { *btree_entry = previous_entry; return( 1 ); } return( 0 ); } /* Retrieves an entry for a specific identifier from the snapshot metadata tree * Returns 1 if successful, 0 if not found or -1 on error */ int libfsapfs_snapshot_metadata_tree_get_entry_by_identifier( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_btree_node_t **btree_node, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_node_t *node = NULL; static char *function = "libfsapfs_snapshot_metadata_tree_get_entry_by_identifier"; uint64_t sub_node_block_number = 0; int is_leaf_node = 0; int recursion_depth = 0; int result = 0; if( snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata tree.", function ); return( -1 ); } if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( btree_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree entry.", function ); return( -1 ); } if( libfsapfs_snapshot_metadata_tree_get_root_node( snapshot_metadata_tree, file_io_handle, snapshot_metadata_tree->root_node_block_number, &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree root node.", function ); return( -1 ); } do { if( ( recursion_depth < 0 ) || ( recursion_depth > LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid recursion depth value out of bounds.", function ); return( -1 ); } is_leaf_node = libfsapfs_btree_node_is_leaf_node( node, error ); if( is_leaf_node == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if B-tree node is a leaf node.", function ); return( -1 ); } result = libfsapfs_snapshot_metadata_tree_get_entry_from_node_by_identifier( snapshot_metadata_tree, node, object_identifier, &entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree node.", function ); return( -1 ); } else if( result == 0 ) { break; } if( is_leaf_node != 0 ) { *btree_node = node; *btree_entry = entry; return( 1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); return( -1 ); } if( entry->value_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry - missing value data.", function ); return( -1 ); } if( entry->value_data_size != 8 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid B-tree entry - unsupported value data size.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( entry->value_data, sub_node_block_number ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree sub node block number: %" PRIu64 "\n", function, sub_node_block_number ); } #endif node = NULL; if( libfsapfs_snapshot_metadata_tree_get_sub_node( snapshot_metadata_tree, file_io_handle, sub_node_block_number, &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve B-tree sub node from block: %" PRIu64 ".", function, sub_node_block_number ); return( -1 ); } recursion_depth++; } while( is_leaf_node == 0 ); return( 0 ); } /* Retrieves the snapshot metadata of a specific object identifier * Returns 1 if successful, 0 if no such value or -1 on error */ int libfsapfs_snapshot_metadata_tree_get_metadata_by_object_identifier( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_snapshot_metadata_t **metadata, libcerror_error_t **error ) { libfsapfs_btree_entry_t *entry = NULL; libfsapfs_btree_node_t *node = NULL; static char *function = "libfsapfs_snapshot_metadata_tree_get_metadata_by_object_identifier"; int result = 0; if( snapshot_metadata_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata tree.", function ); return( -1 ); } if( metadata == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid metadata.", function ); return( -1 ); } if( *metadata != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid metadata value already set.", function ); return( -1 ); } result = libfsapfs_snapshot_metadata_tree_get_entry_by_identifier( snapshot_metadata_tree, file_io_handle, object_identifier, &node, &entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry from B-tree.", function ); goto on_error; } else if( result != 0 ) { if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node.", function ); goto on_error; } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree entry.", function ); goto on_error; } if( libfsapfs_snapshot_metadata_initialize( metadata, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create snapshot metadata.", function ); goto on_error; } if( libfsapfs_snapshot_metadata_read_key_data( *metadata, entry->key_data, (size_t) entry->key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read snapshot metadata key data.", function ); goto on_error; } if( libfsapfs_snapshot_metadata_read_value_data( *metadata, entry->value_data, (size_t) entry->value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read snapshot metadata value data.", function ); goto on_error; } node = NULL; } return( result ); on_error: if( *metadata != NULL ) { libfsapfs_snapshot_metadata_free( metadata, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_space_manager.h0000664000175000017500000000352613426637446025010 0ustar00lordyestalordyesta00000000000000/* * The space manager functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_SPACE_MANAGER_H ) #define _LIBFSAPFS_SPACE_MANAGER_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_space_manager libfsapfs_space_manager_t; struct libfsapfs_space_manager { /* Dummy */ int dummy; }; int libfsapfs_space_manager_initialize( libfsapfs_space_manager_t **space_manager, libcerror_error_t **error ); int libfsapfs_space_manager_free( libfsapfs_space_manager_t **space_manager, libcerror_error_t **error ); int libfsapfs_space_manager_read_file_io_handle( libfsapfs_space_manager_t *space_manager, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_space_manager_read_data( libfsapfs_space_manager_t *space_manager, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_SPACE_MANAGER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_object_map.h0000664000175000017500000000372613426637446024330 0ustar00lordyestalordyesta00000000000000/* * The object map functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_OBJECT_MAP_H ) #define _LIBFSAPFS_OBJECT_MAP_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_object_map libfsapfs_object_map_t; struct libfsapfs_object_map { /* The number of snapshots */ uint32_t number_of_snapshots; /* The B-tree block number */ uint64_t btree_block_number; /* The snapshots B-tree block number */ uint64_t snapshots_btree_block_number; }; int libfsapfs_object_map_initialize( libfsapfs_object_map_t **object_map, libcerror_error_t **error ); int libfsapfs_object_map_free( libfsapfs_object_map_t **object_map, libcerror_error_t **error ); int libfsapfs_object_map_read_file_io_handle( libfsapfs_object_map_t *object_map, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_object_map_read_data( libfsapfs_object_map_t *object_map, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_OBJECT_MAP_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libbfio.h0000664000175000017500000000325413426637446023627 0ustar00lordyestalordyesta00000000000000/* * The libbfio header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBBFIO_H ) #define _LIBFSAPFS_LIBBFIO_H #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio */ #if defined( HAVE_LOCAL_LIBBFIO ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT * before including libbfio.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBBFIO_DLL_IMPORT #endif #include #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT ) #error Multi-threading support requires libbfio with multi-threading support #endif #endif /* defined( HAVE_LOCAL_LIBBFIO ) */ #endif /* !defined( _LIBFSAPFS_LIBBFIO_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_inode.c0000664000175000017500000010055113426637446023310 0ustar00lordyestalordyesta00000000000000/* * Inode functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_inode.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfdatetime.h" #include "libfsapfs_libuna.h" #include "fsapfs_file_system.h" /* Creates a inode * Make sure the value inode is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_inode_initialize( libfsapfs_inode_t **inode, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_initialize"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( *inode != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid inode value already set.", function ); return( -1 ); } *inode = memory_allocate_structure( libfsapfs_inode_t ); if( *inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create inode.", function ); goto on_error; } if( memory_set( *inode, 0, sizeof( libfsapfs_inode_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear inode.", function ); goto on_error; } return( 1 ); on_error: if( *inode != NULL ) { memory_free( *inode ); *inode = NULL; } return( -1 ); } /* Frees a inode * Returns 1 if successful or -1 on error */ int libfsapfs_inode_free( libfsapfs_inode_t **inode, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_free"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( *inode != NULL ) { if( ( *inode )->name != NULL ) { memory_free( ( *inode )->name ); } memory_free( *inode ); *inode = NULL; } return( 1 ); } /* Reads the inode key data * Returns 1 if successful or -1 on error */ int libfsapfs_inode_read_key_data( libfsapfs_inode_t *inode, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_read_key_data"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_key_common_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: inode key data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_key_common_t *) data )->file_system_identifier, inode->identifier ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: identifier\t\t\t\t: 0x%08" PRIx64 "\n", function, inode->identifier ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ inode->identifier &= (uint64_t) 0x0fffffffffffffffUL; return( 1 ); } /* Reads the inode value data * Returns 1 if successful or -1 on error */ int libfsapfs_inode_read_value_data( libfsapfs_inode_t *inode, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_read_value_data"; const uint8_t *value_data = NULL; size_t data_offset = 0; size_t trailing_data_size = 0; size_t value_data_offset = 0; size_t value_data_size = 0; uint16_t extended_field_index = 0; uint16_t number_of_extended_fields = 0; uint8_t extended_field_flags = 0; uint8_t extended_field_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; uint16_t value_16bit = 0; #endif if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( inode->name != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid inode - name value already set.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_file_system_btree_value_inode_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: inode value data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->parent_identifier, inode->parent_identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->data_stream_identifier, inode->data_stream_identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->modification_time, inode->modification_time ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->creation_time, inode->creation_time ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->inode_change_time, inode->inode_change_time ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->access_time, inode->access_time ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->inode_flags, inode->flags ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->owner_identifier, inode->owner_identifier ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->group_identifier, inode->group_identifier ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->file_mode, inode->file_mode ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: parent identifier\t\t\t: %" PRIu64 "\n", function, inode->parent_identifier ); libcnotify_printf( "%s: data stream identifier\t\t\t: %" PRIu64 "\n", function, inode->data_stream_identifier ); if( libfsapfs_debug_print_posix_time_value( function, "modification time\t\t\t", ( (fsapfs_file_system_btree_value_inode_t *) data )->modification_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } if( libfsapfs_debug_print_posix_time_value( function, "creation time\t\t\t\t", ( (fsapfs_file_system_btree_value_inode_t *) data )->creation_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } if( libfsapfs_debug_print_posix_time_value( function, "inode change time\t\t\t", ( (fsapfs_file_system_btree_value_inode_t *) data )->inode_change_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } if( libfsapfs_debug_print_posix_time_value( function, "access time\t\t\t\t", ( (fsapfs_file_system_btree_value_inode_t *) data )->access_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } libcnotify_printf( "%s: inode flags\t\t\t\t: 0x%08" PRIx64 "\n", function, inode->flags ); libfsapfs_debug_print_inode_flags( inode->flags ); libcnotify_printf( "\n" ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->number_of_children, value_32bit ); libcnotify_printf( "%s: number of children\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->unknown2, value_32bit ); libcnotify_printf( "%s: unknown2\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->bsd_flags, value_32bit ); libcnotify_printf( "%s: BSD flags\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "%s: owner identifier\t\t\t: %" PRIu32 "\n", function, inode->owner_identifier ); libcnotify_printf( "%s: group identifier\t\t\t: %" PRIu32 "\n", function, inode->group_identifier ); libcnotify_printf( "%s: file mode\t\t\t\t: %" PRIo16 "\n", function, inode->file_mode ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->unknown3, value_16bit ); libcnotify_printf( "%s: unknown3\t\t\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_btree_value_inode_t *) data )->unknown4, value_64bit ); libcnotify_printf( "%s: unknown4\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( data_size > sizeof( fsapfs_file_system_btree_value_inode_t ) ) { data_offset = sizeof( fsapfs_file_system_btree_value_inode_t ); if( data_offset > ( data_size - 4 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } byte_stream_copy_to_uint16_little_endian( &( data[ data_offset ] ), number_of_extended_fields ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: number of extended fields\t\t: %" PRIu16 "\n", function, number_of_extended_fields ); byte_stream_copy_to_uint16_little_endian( &( data[ data_offset + 2 ] ), value_16bit ); libcnotify_printf( "%s: extended field value data size\t\t: %" PRIu16 "\n", function, value_16bit ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset += 4; value_data_offset = data_offset + ( number_of_extended_fields * 4 ); for( extended_field_index = 0; extended_field_index < number_of_extended_fields; extended_field_index++ ) { if( data_offset > ( data_size - 4 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } extended_field_type = data[ data_offset ]; extended_field_flags = data[ data_offset + 1 ]; byte_stream_copy_to_uint16_little_endian( &( data[ data_offset + 2 ] ), value_data_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended field: %" PRIu16 " type\t\t\t: %" PRIu8 " %s\n", function, extended_field_index, extended_field_type, libfsapfs_debug_print_inode_extended_field_type( extended_field_type ) ); libcnotify_printf( "%s: extended field: %" PRIu16 " flags\t\t: 0x%02" PRIx8 "\n", function, extended_field_index, extended_field_flags ); libfsapfs_debug_print_extended_field_flags( extended_field_flags ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: extended field: %" PRIu16 " value data size\t: %" PRIu16 "\n", function, extended_field_index, value_data_size ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset += 4; if( value_data_offset > data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } if( value_data_size > ( data_size - value_data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value data size value out of bounds.", function ); return( -1 ); } value_data = &( data[ value_data_offset ] ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended field: %" PRIu16 " value data:\n", function, extended_field_index ); libcnotify_print_data( value_data, value_data_size, 0 ); } #endif switch( extended_field_type ) { case 1: case 2: case 3: case 5: case 7: case 11: case 13: case 14: break; case 4: inode->name = (uint8_t *) memory_allocate( sizeof( uint8_t ) * value_data_size ); if( inode->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create name.", function ); goto on_error; } inode->name_size = value_data_size; if( memory_copy( inode->name, value_data, value_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy name.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: name\t\t\t\t\t: %s\n", function, inode->name ); } #endif break; case 8: byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_data_stream_attribute_t *) value_data )->used_size, inode->data_stream_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: used size\t\t\t\t: %" PRIu64 "\n", function, inode->data_stream_size ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_data_stream_attribute_t *) value_data )->allocated_size, value_64bit ); libcnotify_printf( "%s: allocated size\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_data_stream_attribute_t *) value_data )->encryption_identifier, value_64bit ); libcnotify_printf( "%s: encryption identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_data_stream_attribute_t *) value_data )->number_of_bytes_written, value_64bit ); libcnotify_printf( "%s: number of bytes written\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_data_stream_attribute_t *) value_data )->number_of_bytes_read, value_64bit ); libcnotify_printf( "%s: number of bytes read\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported extended field type: %" PRIu8 ".", function, extended_field_type ); return( -1 ); } value_data_offset += value_data_size; trailing_data_size = value_data_size % 8; if( trailing_data_size > 0 ) { trailing_data_size = 8 - trailing_data_size; if( value_data_offset > ( data_size - trailing_data_size ) ) { trailing_data_size = data_size - value_data_offset; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: extended field: %" PRIu16 " trailing data:\n", function, extended_field_index ); libcnotify_print_data( &( data[ value_data_offset ] ), trailing_data_size, 0 ); } #endif value_data_offset += trailing_data_size; } } } #if defined( HAVE_DEBUG_OUTPUT ) else if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); on_error: if( inode->name != NULL ) { memory_free( inode->name ); inode->name = NULL; } inode->name_size = 0; return( -1 ); } /* Retrieves the identifier * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_identifier( libfsapfs_inode_t *inode, uint64_t *identifier, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_identifier"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } *identifier = inode->identifier; return( 1 ); } /* Retrieves the parent identifier * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_parent_identifier( libfsapfs_inode_t *inode, uint64_t *parent_identifier, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_parent_identifier"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( parent_identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid parent identifier.", function ); return( -1 ); } *parent_identifier = inode->parent_identifier; return( 1 ); } /* Retrieves the creation time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_creation_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_creation_time"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } *posix_time = (int64_t) inode->creation_time; return( 1 ); } /* Retrieves the modification time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_modification_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_modification_time"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } *posix_time = (int64_t) inode->modification_time; return( 1 ); } /* Retrieves the inode change time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_inode_change_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_inode_change_time"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } *posix_time = (int64_t) inode->inode_change_time; return( 1 ); } /* Retrieves the access time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_access_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_access_time"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( posix_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid POSIX time.", function ); return( -1 ); } *posix_time = (int64_t) inode->access_time; return( 1 ); } /* Retrieves the owner identifier * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_owner_identifier( libfsapfs_inode_t *inode, uint32_t *owner_identifier, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_owner_identifier"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( owner_identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid owner identifier.", function ); return( -1 ); } *owner_identifier = inode->owner_identifier; return( 1 ); } /* Retrieves the group identifier * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_group_identifier( libfsapfs_inode_t *inode, uint32_t *group_identifier, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_group_identifier"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( group_identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid group identifier.", function ); return( -1 ); } *group_identifier = inode->group_identifier; return( 1 ); } /* Retrieves the file mode * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_file_mode( libfsapfs_inode_t *inode, uint16_t *file_mode, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_file_mode"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( file_mode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file mode.", function ); return( -1 ); } *file_mode = inode->file_mode; return( 1 ); } /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_utf8_name_size( libfsapfs_inode_t *inode, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_utf8_name_size"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( libuna_utf8_string_size_from_utf8_stream( inode->name, (size_t) inode->name_size, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_utf8_name( libfsapfs_inode_t *inode, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_utf8_name"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( libuna_utf8_string_copy_from_utf8_stream( utf8_string, utf8_string_size, inode->name, (size_t) inode->name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_utf16_name_size( libfsapfs_inode_t *inode, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_utf16_name_size"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( libuna_utf16_string_size_from_utf8_stream( inode->name, (size_t) inode->name_size, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_utf16_name( libfsapfs_inode_t *inode, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_utf16_name"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( libuna_utf16_string_copy_from_utf8_stream( utf16_string, utf16_string_size, inode->name, (size_t) inode->name_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string.", function ); return( -1 ); } return( 1 ); } /* Retrieves the flags * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_flags( libfsapfs_inode_t *inode, uint64_t *flags, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_flags"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( flags == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid flags.", function ); return( -1 ); } *flags = inode->flags; return( 1 ); } /* Retrieves the data stream identifier * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_data_stream_identifier( libfsapfs_inode_t *inode, uint64_t *data_stream_identifier, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_data_stream_identifier"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( data_stream_identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data stream identifier.", function ); return( -1 ); } *data_stream_identifier = inode->data_stream_identifier; return( 1 ); } /* Retrieves the data stream size * Returns 1 if successful or -1 on error */ int libfsapfs_inode_get_data_stream_size( libfsapfs_inode_t *inode, uint64_t *data_stream_size, libcerror_error_t **error ) { static char *function = "libfsapfs_inode_get_data_stream_size"; if( inode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode.", function ); return( -1 ); } if( data_stream_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data stream size.", function ); return( -1 ); } *data_stream_size = inode->data_stream_size; return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_snapshot_metadata_tree.h0000664000175000017500000000714613426637446026743 0ustar00lordyestalordyesta00000000000000/* * The snapshot metadata tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_SNAPSHOT_METADATA_TREE_H ) #define _LIBFSAPFS_SNAPSHOT_METADATA_TREE_H #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_btree_node.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_snapshot_metadata.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_snapshot_metadata_tree libfsapfs_snapshot_metadata_tree_t; struct libfsapfs_snapshot_metadata_tree { /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* Data block vector */ libfdata_vector_t *data_block_vector; /* Data block cache */ libfcache_cache_t *data_block_cache; /* The node cache */ libfcache_cache_t *node_cache; /* Block number of B-tree root node */ uint64_t root_node_block_number; }; int libfsapfs_snapshot_metadata_tree_initialize( libfsapfs_snapshot_metadata_tree_t **snapshot_metadata_tree, libfsapfs_io_handle_t *io_handle, libfdata_vector_t *data_block_vector, uint64_t root_node_block_number, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_tree_free( libfsapfs_snapshot_metadata_tree_t **snapshot_metadata_tree, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_tree_get_root_node( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t root_node_block_number, libfsapfs_btree_node_t **root_node, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_tree_get_sub_node( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t sub_node_block_number, libfsapfs_btree_node_t **sub_node, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_tree_get_entry_from_node_by_identifier( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libfsapfs_btree_node_t *node, uint64_t object_identifier, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_tree_get_entry_by_identifier( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_btree_node_t **btree_node, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_tree_get_metadata_by_object_identifier( libfsapfs_snapshot_metadata_tree_t *snapshot_metadata_tree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_snapshot_metadata_t **metadata, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_SNAPSHOT_METADATA_TREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_checkpoint_map.h0000664000175000017500000000421113426637446025177 0ustar00lordyestalordyesta00000000000000/* * The checkpoint map functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CHECKPOINT_MAP_H ) #define _LIBFSAPFS_CHECKPOINT_MAP_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_checkpoint_map libfsapfs_checkpoint_map_t; struct libfsapfs_checkpoint_map { /* The entries array */ libcdata_array_t *entries_array; }; int libfsapfs_checkpoint_map_initialize( libfsapfs_checkpoint_map_t **checkpoint_map, libcerror_error_t **error ); int libfsapfs_checkpoint_map_free( libfsapfs_checkpoint_map_t **checkpoint_map, libcerror_error_t **error ); int libfsapfs_checkpoint_map_read_file_io_handle( libfsapfs_checkpoint_map_t *checkpoint_map, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_checkpoint_map_read_data( libfsapfs_checkpoint_map_t *checkpoint_map, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_checkpoint_map_get_physical_address_by_object_identifier( libfsapfs_checkpoint_map_t *checkpoint_map, uint64_t object_identifier, uint64_t *physical_address, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CHECKPOINT_MAP_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_snapshot_metadata.h0000664000175000017500000000356313426637446025723 0ustar00lordyestalordyesta00000000000000/* * The snapshot metadata functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_SNAPSHOT_METADATA_H ) #define _LIBFSAPFS_SNAPSHOT_METADATA_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_snapshot_metadata libfsapfs_snapshot_metadata_t; struct libfsapfs_snapshot_metadata { /* Dummy */ int dummy; }; int libfsapfs_snapshot_metadata_initialize( libfsapfs_snapshot_metadata_t **snapshot_metadata, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_free( libfsapfs_snapshot_metadata_t **snapshot_metadata, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_read_key_data( libfsapfs_snapshot_metadata_t *snapshot_metadata, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_snapshot_metadata_read_value_data( libfsapfs_snapshot_metadata_t *snapshot_metadata, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_SNAPSHOT_METADATA_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_volume_superblock.c0000664000175000017500000010557213426637447025763 0ustar00lordyestalordyesta00000000000000/* * The volume superblock functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_checksum.h" #include "libfsapfs_debug.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfdatetime.h" #include "libfsapfs_libfguid.h" #include "libfsapfs_libuna.h" #include "libfsapfs_volume_superblock.h" #include "fsapfs_volume_superblock.h" /* Creates a volume superblock * Make sure the value volume_superblock is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_initialize( libfsapfs_volume_superblock_t **volume_superblock, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblock_initialize"; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( *volume_superblock != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume superblock value already set.", function ); return( -1 ); } *volume_superblock = memory_allocate_structure( libfsapfs_volume_superblock_t ); if( *volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create volume superblock.", function ); goto on_error; } if( memory_set( *volume_superblock, 0, sizeof( libfsapfs_volume_superblock_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear volume superblock.", function ); goto on_error; } return( 1 ); on_error: if( *volume_superblock != NULL ) { memory_free( *volume_superblock ); *volume_superblock = NULL; } return( -1 ); } /* Frees a volume superblock * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_free( libfsapfs_volume_superblock_t **volume_superblock, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblock_free"; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( *volume_superblock != NULL ) { memory_free( *volume_superblock ); *volume_superblock = NULL; } return( 1 ); } /* Reads the volume superblock * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_read_file_io_handle( libfsapfs_volume_superblock_t *volume_superblock, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { uint8_t volume_superblock_data[ 4096 ]; static char *function = "libfsapfs_volume_superblock_read_file_io_handle"; ssize_t read_count = 0; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading volume superblock at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek volume superblock offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, (uint8_t *) &volume_superblock_data, 4096, error ); if( read_count != (ssize_t) 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read volume superblock data.", function ); return( -1 ); } if( libfsapfs_volume_superblock_read_data( volume_superblock, (uint8_t *) &volume_superblock_data, 4096, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read volume superblock data.", function ); return( -1 ); } return( 1 ); } /* Reads the volume superblock * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_read_data( libfsapfs_volume_superblock_t *volume_superblock, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblock_read_data"; uint64_t calculated_checksum = 0; uint64_t stored_checksum = 0; uint32_t object_subtype = 0; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_volume_superblock_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: volume superblock data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_volume_superblock_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->object_checksum, stored_checksum ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->object_type, object_type ); if( object_type != 0x0000000dUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } if( memory_compare( ( (fsapfs_volume_superblock_t *) data )->signature, fsapfs_volume_signature, 4 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid signature.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->incompatible_features_flags, volume_superblock->incompatibility_features_flags ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->object_map_block_number, volume_superblock->object_map_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->file_system_root_object_identifier, volume_superblock->file_system_root_object_identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->extent_reference_tree_block_number, volume_superblock->extent_reference_tree_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->snapshot_metadata_tree_block_number, volume_superblock->snapshot_metadata_tree_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->next_file_system_object_identifier, volume_superblock->next_file_system_object_identifier ); if( memory_copy( volume_superblock->volume_identifier, ( (fsapfs_volume_superblock_t *) data )->volume_identifier, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy volume identifier.", function ); return( -1 ); } /* TODO preserve modification time */ byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->volume_flags, volume_superblock->volume_flags ); if( memory_copy( volume_superblock->volume_name, ( (fsapfs_volume_superblock_t *) data )->volume_name, 256 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy volume name.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object checksum\t\t\t\t: 0x%08" PRIx64 "\n", function, stored_checksum ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); libcnotify_printf( "%s: signature\t\t\t\t: %c%c%c%c\n", function, ( (fsapfs_volume_superblock_t *) data )->signature[ 0 ], ( (fsapfs_volume_superblock_t *) data )->signature[ 1 ], ( (fsapfs_volume_superblock_t *) data )->signature[ 2 ], ( (fsapfs_volume_superblock_t *) data )->signature[ 3 ] ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->compatible_features_flags, value_64bit ); libcnotify_printf( "%s: compatible features flags\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libfsapfs_debug_print_volume_compatible_features_flags( value_64bit ); libcnotify_printf( "\n" ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->read_only_compatible_features_flags, value_64bit ); libcnotify_printf( "%s: read-only compatible features flags\t: 0x%08" PRIx64 "\n", function, value_64bit ); libfsapfs_debug_print_volume_read_only_compatible_features_flags( value_64bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: incompatible features flags\t\t: 0x%08" PRIx64 "\n", function, volume_superblock->incompatibility_features_flags ); libfsapfs_debug_print_volume_incompatible_features_flags( volume_superblock->incompatibility_features_flags ); libcnotify_printf( "\n" ); if( libfsapfs_debug_print_posix_time_value( function, "unknown5\t\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown5, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->number_of_reserved_blocks, value_64bit ); libcnotify_printf( "%s: number of reserved blocks\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->number_of_quota_blocks, value_64bit ); libcnotify_printf( "%s: number of quota blocks\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown8, value_64bit ); libcnotify_printf( "%s: unknown8\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown9, value_64bit ); libcnotify_printf( "%s: unknown9\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown10, value_32bit ); libcnotify_printf( "%s: unknown10\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown11, value_32bit ); libcnotify_printf( "%s: unknown11\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown12, value_32bit ); libcnotify_printf( "%s: unknown12\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->file_system_root_tree_object_type, value_32bit ); libcnotify_printf( "%s: file system root tree object type\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->extent_reference_tree_object_type, value_32bit ); libcnotify_printf( "%s: extent-reference tree object type\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->snapshot_metadata_tree_object_type, value_32bit ); libcnotify_printf( "%s: snapshot metadata tree object type\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "%s: object map block number\t\t\t: %" PRIu64 "\n", function, volume_superblock->object_map_block_number ); libcnotify_printf( "%s: file system root object identifier\t: %" PRIu64 "\n", function, volume_superblock->file_system_root_object_identifier ); libcnotify_printf( "%s: extent-reference tree block number\t: %" PRIu64 "\n", function, volume_superblock->extent_reference_tree_block_number ); libcnotify_printf( "%s: snapshot metadata tree block number\t: %" PRIu64 "\n", function, volume_superblock->snapshot_metadata_tree_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown20, value_64bit ); libcnotify_printf( "%s: unknown20\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown21, value_64bit ); libcnotify_printf( "%s: unknown21\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "%s: next file system object identifier\t: %" PRIu64 "\n", function, volume_superblock->next_file_system_object_identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown23, value_64bit ); libcnotify_printf( "%s: unknown23\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown24, value_64bit ); libcnotify_printf( "%s: unknown24\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown25, value_64bit ); libcnotify_printf( "%s: unknown25\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown26, value_64bit ); libcnotify_printf( "%s: unknown26\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown27, value_64bit ); libcnotify_printf( "%s: unknown27\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown28, value_64bit ); libcnotify_printf( "%s: unknown28\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown29, value_64bit ); libcnotify_printf( "%s: unknown29\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); if( libfsapfs_debug_print_guid_value( function, "volume identifier\t\t\t", ( (fsapfs_volume_superblock_t *) data )->volume_identifier, 16, LIBFGUID_ENDIAN_BIG, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print UUID value.", function ); return( -1 ); } if( libfsapfs_debug_print_posix_time_value( function, "modification time\t\t\t", ( (fsapfs_volume_superblock_t *) data )->modification_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } libcnotify_printf( "%s: volume flags\t\t\t\t: 0x%08" PRIx64 "\n", function, volume_superblock->volume_flags ); libfsapfs_debug_print_volume_flags( volume_superblock->volume_flags ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: unknown32:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown32, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown33\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown33, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown34, value_64bit ); libcnotify_printf( "%s: unknown34\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown35:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown35, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown36\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown36, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown37, value_64bit ); libcnotify_printf( "%s: unknown37\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown38:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown38, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown39\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown39, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown40, value_64bit ); libcnotify_printf( "%s: unknown40\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown41:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown41, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown42\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown42, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown43, value_64bit ); libcnotify_printf( "%s: unknown43\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown44:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown44, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown45\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown45, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown46, value_64bit ); libcnotify_printf( "%s: unknown46\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown47:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown47, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown48\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown48, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown49, value_64bit ); libcnotify_printf( "%s: unknown49\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown50:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown50, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown51\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown51, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown52, value_64bit ); libcnotify_printf( "%s: unknown52\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown53:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown53, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown54\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown54, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown55, value_64bit ); libcnotify_printf( "%s: unknown55\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown56:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown56, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); if( libfsapfs_debug_print_posix_time_value( function, "unknown57\t\t\t\t", ( (fsapfs_volume_superblock_t *) data )->unknown57, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown58, value_64bit ); libcnotify_printf( "%s: unknown58\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: volume name:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->volume_name, 256, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->next_document_identifier, value_32bit ); libcnotify_printf( "%s: next document identifier\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown60, value_32bit ); libcnotify_printf( "%s: unknown60\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_volume_superblock_t *) data )->unknown61, value_64bit ); libcnotify_printf( "%s: unknown61\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "%s: unknown62:\n", function ); libcnotify_print_data( ( (fsapfs_volume_superblock_t *) data )->unknown62, 32, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( libfsapfs_checksum_calculate_fletcher64( &calculated_checksum, &( data[ 8 ] ), data_size - 8, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to calculate Fletcher-64 checksum.", function ); return( -1 ); } if( stored_checksum != calculated_checksum ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_INPUT, LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH, "%s: mismatch in checksum ( 0x%08" PRIx64 " != 0x%08" PRIx64 " ).\n", function, stored_checksum, calculated_checksum ); return( -1 ); } return( 1 ); } /* Retrieves the volume identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_get_volume_identifier( libfsapfs_volume_superblock_t *volume_superblock, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblokc_get_volume_identifier"; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( uuid_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid UUID data.", function ); return( -1 ); } if( ( uuid_data_size < 16 ) || ( uuid_data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid UUID data size value out of bounds.", function ); return( -1 ); } if( memory_copy( uuid_data, volume_superblock->volume_identifier, 16 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy volume identifier.", function ); return( -1 ); } return( 1 ); } /* Retrieves the size of the UTF-8 encoded volume name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_get_utf8_volume_name_size( libfsapfs_volume_superblock_t *volume_superblock, size_t *utf8_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblock_get_utf8_volume_name_size"; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( libuna_utf8_string_size_from_utf8_stream( volume_superblock->volume_name, 256, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the UTF-8 encoded volume name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_get_utf8_volume_name( libfsapfs_volume_superblock_t *volume_superblock, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblock_get_utf8_volume_name"; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( libuna_utf8_string_copy_from_utf8_stream( utf8_string, utf8_string_size, volume_superblock->volume_name, 256, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string.", function ); return( -1 ); } return( 1 ); } /* Retrieves the size of the UTF-16 encoded volume name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_get_utf16_volume_name_size( libfsapfs_volume_superblock_t *volume_superblock, size_t *utf16_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblock_get_utf16_volume_name_size"; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( libuna_utf16_string_size_from_utf8_stream( volume_superblock->volume_name, 256, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size.", function ); return( -1 ); } return( 1 ); } /* Retrieves the UTF-16 encoded volume name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_superblock_get_utf16_volume_name( libfsapfs_volume_superblock_t *volume_superblock, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_superblock_get_utf16_volume_name"; if( volume_superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume superblock.", function ); return( -1 ); } if( libuna_utf16_string_copy_from_utf8_stream( utf16_string, utf16_string_size, volume_superblock->volume_name, 256, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_btree_footer.c0000664000175000017500000001472313426637446024676 0ustar00lordyestalordyesta00000000000000/* * The B-tree footer functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_btree_footer.h" #include "libfsapfs_debug.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_btree.h" /* Creates a B-tree footer * Make sure the value btree_footer is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_btree_footer_initialize( libfsapfs_btree_footer_t **btree_footer, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_footer_initialize"; if( btree_footer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree footer.", function ); return( -1 ); } if( *btree_footer != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid B-tree footer value already set.", function ); return( -1 ); } *btree_footer = memory_allocate_structure( libfsapfs_btree_footer_t ); if( *btree_footer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create B-tree footer.", function ); goto on_error; } if( memory_set( *btree_footer, 0, sizeof( libfsapfs_btree_footer_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear B-tree footer.", function ); goto on_error; } return( 1 ); on_error: if( *btree_footer != NULL ) { memory_free( *btree_footer ); *btree_footer = NULL; } return( -1 ); } /* Frees a B-tree footer * Returns 1 if successful or -1 on error */ int libfsapfs_btree_footer_free( libfsapfs_btree_footer_t **btree_footer, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_footer_free"; if( btree_footer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree footer.", function ); return( -1 ); } if( *btree_footer != NULL ) { memory_free( *btree_footer ); *btree_footer = NULL; } return( 1 ); } /* Reads the B-tree footer * Returns 1 if successful or -1 on error */ int libfsapfs_btree_footer_read_data( libfsapfs_btree_footer_t *btree_footer, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_footer_read_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( btree_footer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree footer.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_btree_footer_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree footer data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_btree_footer_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_btree_footer_t *) data )->node_size, btree_footer->node_size ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_btree_footer_t *) data )->key_size, btree_footer->key_size ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_btree_footer_t *) data )->value_size, btree_footer->value_size ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_btree_footer_t *) data )->maximum_key_size, btree_footer->maximum_key_size ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_btree_footer_t *) data )->maximum_value_size, btree_footer->maximum_value_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint32_little_endian( ( (fsapfs_btree_footer_t *) data )->flags, value_32bit ); libcnotify_printf( "%s: flags\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libfsapfs_debug_print_btree_flags( value_32bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: node size\t\t\t\t: %" PRIu32 "\n", function, btree_footer->node_size ); libcnotify_printf( "%s: key size\t\t\t\t: %" PRIu32 "\n", function, btree_footer->key_size ); libcnotify_printf( "%s: value size\t\t\t\t: %" PRIu32 "\n", function, btree_footer->value_size ); libcnotify_printf( "%s: maximum key size\t\t\t: %" PRIu32 "\n", function, btree_footer->maximum_key_size ); libcnotify_printf( "%s: maximum value size\t\t\t: %" PRIu32 "\n", function, btree_footer->maximum_value_size ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_btree_footer_t *) data )->total_number_of_keys, value_64bit ); libcnotify_printf( "%s: total number of keys\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_btree_footer_t *) data )->total_number_of_nodes, value_64bit ); libcnotify_printf( "%s: total number of nodes\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_btree_node.c0000664000175000017500000005427313426637446024331 0ustar00lordyestalordyesta00000000000000/* * The B-tree node functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_btree_footer.h" #include "libfsapfs_btree_node_header.h" #include "libfsapfs_btree_node.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_btree.h" #include "fsapfs_object.h" #include "fsapfs_object_map.h" /* Creates a B-tree node * Make sure the value btree_node is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_initialize( libfsapfs_btree_node_t **btree_node, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_initialize"; if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( *btree_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid B-tree node value already set.", function ); return( -1 ); } *btree_node = memory_allocate_structure( libfsapfs_btree_node_t ); if( *btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create B-tree node.", function ); goto on_error; } if( memory_set( *btree_node, 0, sizeof( libfsapfs_btree_node_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear B-tree node.", function ); memory_free( *btree_node ); *btree_node = NULL; return( -1 ); } if( libcdata_array_initialize( &( ( *btree_node )->entries_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create entries array.", function ); goto on_error; } return( 1 ); on_error: if( *btree_node != NULL ) { memory_free( *btree_node ); *btree_node = NULL; } return( -1 ); } /* Frees a B-tree node * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_free( libfsapfs_btree_node_t **btree_node, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_free"; int result = 1; if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( *btree_node != NULL ) { if( ( *btree_node )->node_header != NULL ) { if( libfsapfs_btree_node_header_free( &( ( *btree_node )->node_header ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free B-tree node header.", function ); result = -1; } } if( ( *btree_node )->footer != NULL ) { if( libfsapfs_btree_footer_free( &( ( *btree_node )->footer ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free B-tree footer.", function ); result = -1; } } if( libcdata_array_free( &( ( *btree_node )->entries_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_btree_entry_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free entries array.", function ); result = -1; } memory_free( *btree_node ); *btree_node = NULL; } return( result ); } /* Reads the B-tree node * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_read_data( libfsapfs_btree_node_t *btree_node, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { libfsapfs_btree_entry_t *btree_entry = NULL; const uint8_t *btree_node_entry = NULL; static char *function = "libfsapfs_btree_node_read_data"; size_t btree_entry_data_size = 0; size_t data_offset = 0; size_t minimum_data_size = 0; size_t remaining_data_size = 0; uint16_t entries_data_offset = 0; uint16_t footer_offset = 0; uint16_t key_data_offset = 0; uint16_t key_data_size = 0; uint16_t map_entry_index = 0; uint16_t value_data_offset = 0; uint16_t value_data_size = 0; int entry_index = 0; if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( btree_node->node_header != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid B-tree node - node header value already set.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data.", function ); return( -1 ); } minimum_data_size = sizeof( fsapfs_object_t ) + sizeof( fsapfs_btree_node_header_t ) + sizeof( fsapfs_btree_footer_t ); if( ( data_size < minimum_data_size ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree node data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif if( libfsapfs_btree_node_read_object_data( btree_node, data, data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node object data.", function ); goto on_error; } data_offset = sizeof( fsapfs_object_t ); if( libfsapfs_btree_node_header_initialize( &( btree_node->node_header ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree node header.", function ); goto on_error; } if( libfsapfs_btree_node_header_read_data( btree_node->node_header, &( data[ data_offset ] ), sizeof( fsapfs_btree_node_header_t ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree node header.", function ); goto on_error; } data_offset += sizeof( fsapfs_btree_node_header_t ); remaining_data_size = data_size - minimum_data_size; if( btree_node->node_header->entries_data_offset >= remaining_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid entries offset size value out of bounds.", function ); goto on_error; } remaining_data_size -= btree_node->node_header->entries_data_offset; if( btree_node->node_header->entries_data_size > remaining_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid entries data size value out of bounds.", function ); goto on_error; } remaining_data_size -= btree_node->node_header->entries_data_size; if( btree_node->node_header->unused_data_offset >= remaining_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid unused offset size value out of bounds.", function ); goto on_error; } remaining_data_size -= btree_node->node_header->unused_data_offset; /* TODO this check fails on some container if( btree_node->node_header->unused_data_size > remaining_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid unused data size value out of bounds.", function ); goto on_error; } */ /* TODO sanity check other data_offset and data_size values */ footer_offset = (uint16_t) data_size; if( ( btree_node->node_header->flags & 0x0001 ) != 0 ) { if( libfsapfs_btree_footer_initialize( &( btree_node->footer ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree footer.", function ); goto on_error; } if( libfsapfs_btree_footer_read_data( btree_node->footer, &( data[ data_size - sizeof( fsapfs_btree_footer_t ) ] ), sizeof( fsapfs_btree_footer_t ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read B-tree footer.", function ); goto on_error; } footer_offset -= (uint16_t) sizeof( fsapfs_btree_footer_t ); } if( ( btree_node->node_header->flags & 0x0004 ) == 0 ) { btree_entry_data_size = sizeof( fsapfs_btree_variable_size_entry_t ); } else { btree_entry_data_size = sizeof( fsapfs_btree_fixed_size_entry_t ); } if( (size_t) btree_node->node_header->number_of_keys > (size_t) ( btree_node->node_header->entries_data_size / btree_entry_data_size ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of keys value out of bounds.", function ); goto on_error; } data_offset += btree_node->node_header->entries_data_offset; entries_data_offset = btree_node->node_header->entries_data_offset + (uint16_t) ( sizeof( fsapfs_object_t ) + sizeof( fsapfs_btree_node_header_t ) ); for( map_entry_index = 0; map_entry_index < btree_node->node_header->number_of_keys; map_entry_index++ ) { btree_node_entry = &( data[ data_offset ] ); if( ( btree_node->node_header->flags & 0x0004 ) == 0 ) { byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_variable_size_entry_t *) btree_node_entry )->key_data_offset, key_data_offset ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_variable_size_entry_t *) btree_node_entry )->key_data_size, key_data_size ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_variable_size_entry_t *) btree_node_entry )->value_data_offset, value_data_offset ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_variable_size_entry_t *) btree_node_entry )->value_data_size, value_data_size ); } else { byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_fixed_size_entry_t *) btree_node_entry )->key_data_offset, key_data_offset ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_btree_fixed_size_entry_t *) btree_node_entry )->value_data_offset, value_data_offset ); switch( btree_node->object_subtype ) { case 0x0000000bUL: key_data_size = (uint16_t) sizeof( fsapfs_object_map_btree_key_t ); value_data_size = (uint16_t) sizeof( fsapfs_object_map_btree_value_t ); break; default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, btree_node->object_subtype ); goto on_error; } if( ( btree_node->node_header->flags & 0x0002 ) == 0 ) { value_data_size = 8; } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: entry: %03" PRIu16 " key data offset\t\t: 0x%04" PRIx16 " (block offset: 0x%04" PRIzx ")\n", function, map_entry_index, key_data_offset, (size_t) key_data_offset + (size_t) entries_data_offset + (size_t) btree_node->node_header->entries_data_size ); libcnotify_printf( "%s: entry: %03" PRIu16 " key data size\t\t: %" PRIu16 "\n", function, map_entry_index, key_data_size ); libcnotify_printf( "%s: entry: %03" PRIu16 " value data offset\t\t: 0x%04" PRIx16 " (block offset: 0x%04" PRIzx ")\n", function, map_entry_index, value_data_offset, (size_t) footer_offset - (size_t) value_data_offset); libcnotify_printf( "%s: entry: %03" PRIu16 " value data size\t\t: %" PRIu16 "\n", function, map_entry_index, value_data_size ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset += btree_entry_data_size; key_data_offset += entries_data_offset + btree_node->node_header->entries_data_size; if( ( (size_t) key_data_offset > data_size ) || ( (size_t) key_data_size > ( data_size - key_data_offset ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key data offset value out of bounds.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: entry: %03" PRIu16 " key data:\n", function, map_entry_index ); libcnotify_print_data( &( data[ key_data_offset ] ), (size_t) key_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif value_data_offset = footer_offset - value_data_offset; if( ( (size_t) value_data_offset > data_size ) || ( (size_t) value_data_size > ( data_size - value_data_offset ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value data offset value out of bounds.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: entry: %03" PRIu16 " value data:\n", function, map_entry_index ); libcnotify_print_data( &( data[ value_data_offset ] ), (size_t) value_data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif if( libfsapfs_btree_entry_initialize( &btree_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create B-tree entry.", function ); goto on_error; } if( libfsapfs_btree_entry_set_key_data( btree_entry, &( data[ key_data_offset ] ), (size_t) key_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set key data in B-tree entry.", function ); goto on_error; } if( libfsapfs_btree_entry_set_value_data( btree_entry, &( data[ value_data_offset ] ), (size_t) value_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value data in B-tree entry.", function ); goto on_error; } if( libcdata_array_append_entry( btree_node->entries_array, &entry_index, (intptr_t *) btree_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append B-tree entry: %" PRIu32 " to array.", function, map_entry_index ); goto on_error; } btree_entry = NULL; } return( 1 ); on_error: if( btree_entry != NULL ) { libfsapfs_btree_entry_free( &btree_entry, NULL ); } if( btree_node->footer != NULL ) { libfsapfs_btree_footer_free( &( btree_node->footer ), NULL ); } if( btree_node->node_header != NULL ) { libfsapfs_btree_node_header_free( &( btree_node->node_header ), NULL ); } return( -1 ); } /* Reads the B-tree node object * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_read_object_data( libfsapfs_btree_node_t *btree_node, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_read_object_data"; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_object_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: B-tree node object data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_object_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->type, btree_node->object_type ); object_type = btree_node->object_type & 0x0ffffffUL; if( ( object_type != 0x00000002UL ) && ( object_type != 0x00000003UL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, btree_node->object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->subtype, btree_node->object_subtype ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t: 0x%08" PRIx32 "\n", function, btree_node->object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, btree_node->object_subtype ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } /* Determines if the node is a leaf node * Returns 1 if the node is a leaf node, 0 if not or -1 on error */ int libfsapfs_btree_node_is_leaf_node( libfsapfs_btree_node_t *btree_node, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_is_leaf_node"; if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( btree_node->node_header == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid B-tree node - missing node header.", function ); return( -1 ); } return( btree_node->node_header->flags & 0x0002 ); } /* Retrieves the number of B-tree entries * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_get_number_of_entries( libfsapfs_btree_node_t *btree_node, int *number_of_entries, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_get_number_of_entries"; if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( btree_node->entries_array, number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); return( -1 ); } return( 1 ); } /* Retrieves a specific of B-tree entry * Returns 1 if successful or -1 on error */ int libfsapfs_btree_node_get_entry_by_index( libfsapfs_btree_node_t *btree_node, int entry_index, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_btree_node_get_entry_by_index"; if( btree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid B-tree node.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( btree_node->entries_array, entry_index, (intptr_t **) btree_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from array.", function, entry_index ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_data_block.c0000664000175000017500000002325613426637446024303 0ustar00lordyestalordyesta00000000000000/* * Data block functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_definitions.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_data_block.h" /* Creates data block * Make sure the value data_block is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_data_block_initialize( libfsapfs_data_block_t **data_block, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_data_block_initialize"; if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data block.", function ); return( -1 ); } if( *data_block != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid data block value already set.", function ); return( -1 ); } if( data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid data size value exceeds maximum.", function ); return( -1 ); } *data_block = memory_allocate_structure( libfsapfs_data_block_t ); if( *data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data block.", function ); goto on_error; } if( memory_set( *data_block, 0, sizeof( libfsapfs_data_block_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear data block.", function ); memory_free( *data_block ); *data_block = NULL; return( -1 ); } if( data_size > 0 ) { ( *data_block )->data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * data_size ); if( ( *data_block )->data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data.", function ); goto on_error; } ( *data_block )->data_size = data_size; } return( 1 ); on_error: if( *data_block != NULL ) { memory_free( *data_block ); *data_block = NULL; } return( -1 ); } /* Frees data block * Returns 1 if successful or -1 on error */ int libfsapfs_data_block_free( libfsapfs_data_block_t **data_block, libcerror_error_t **error ) { static char *function = "libfsapfs_data_block_free"; int result = 1; if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data block.", function ); return( -1 ); } if( *data_block != NULL ) { if( ( *data_block )->data != NULL ) { if( memory_set( ( *data_block )->data, 0, ( *data_block )->data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear data.", function ); result = -1; } memory_free( ( *data_block )->data ); } memory_free( *data_block ); *data_block = NULL; } return( result ); } /* Clears the data * Returns 1 if successful or -1 on error */ int libfsapfs_data_block_clear_data( libfsapfs_data_block_t *data_block, libcerror_error_t **error ) { static char *function = "libfsapfs_data_block_clear_data"; if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data block.", function ); return( -1 ); } if( data_block->data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block - missing data.", function ); return( -1 ); } if( data_block->data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data block - data size value out of bounds.", function ); return( -1 ); } if( memory_set( data_block->data, 0, data_block->data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear data.", function ); return( -1 ); } return( 1 ); } /* Reads data block * Returns 1 if successful or -1 on error */ int libfsapfs_data_block_read( libfsapfs_data_block_t *data_block, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libbfio_handle_t *file_io_handle, off64_t file_offset, uint64_t encryption_identifier, libcerror_error_t **error ) { uint8_t *read_buffer = NULL; static char *function = "libfsapfs_data_block_read"; ssize_t read_count = 0; if( data_block == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data block.", function ); return( -1 ); } if( data_block->data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data block - missing data.", function ); return( -1 ); } if( data_block->data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data block - data size value out of bounds.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } if( io_handle->bytes_per_sector == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid IO handle - missing bytes per sector.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading data block at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek data block offset: %" PRIi64 ".", function, file_offset ); goto on_error; } if( encryption_context == NULL ) { read_buffer = data_block->data; } else { read_buffer = (uint8_t *) memory_allocate( sizeof( uint8_t ) * data_block->data_size ); if( read_buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create read buffer.", function ); goto on_error; } } read_count = libbfio_handle_read_buffer( file_io_handle, read_buffer, data_block->data_size, error ); if( read_count != (ssize_t) data_block->data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read data block.", function ); goto on_error; } if( encryption_context != NULL ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: encrypted data block:\n", function ); libcnotify_print_data( read_buffer, data_block->data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif encryption_identifier *= data_block->data_size; encryption_identifier /= io_handle->bytes_per_sector; if( libfsapfs_encryption_context_crypt( encryption_context, LIBFSAPFS_ENCRYPTION_CRYPT_MODE_DECRYPT, read_buffer, data_block->data_size, data_block->data, data_block->data_size, encryption_identifier, io_handle->bytes_per_sector, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to decrypt data block.", function ); goto on_error; } memory_free( read_buffer ); read_buffer = NULL; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: data block:\n", function ); libcnotify_print_data( data_block->data, data_block->data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif return( 1 ); on_error: if( ( read_buffer != NULL ) && ( read_buffer != data_block->data ) ) { memory_free( read_buffer ); } return( -1 ); } libfsapfs-20190210/libfsapfs/fsapfs_volume_superblock.h0000664000175000017500000001526413426637446025276 0ustar00lordyestalordyesta00000000000000/* * The APFS volume superblock definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_VOLUME_SUPERBLOCK_H ) #define _FSAPFS_VOLUME_SUPERBLOCK_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_volume_superblock fsapfs_volume_superblock_t; struct fsapfs_volume_superblock { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* The file system signature * Consists of 4 bytes * Contains: "APSB" */ uint8_t signature[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; /* Compatible features flags * Consists of 8 bytes */ uint8_t compatible_features_flags[ 8 ]; /* Read only compatible features flags * Consists of 8 bytes */ uint8_t read_only_compatible_features_flags[ 8 ]; /* Incompatible features flags * Consists of 8 bytes */ uint8_t incompatible_features_flags[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown5[ 8 ]; /* The number of reserved blocks * Consists of 8 bytes */ uint8_t number_of_reserved_blocks[ 8 ]; /* The number of quota blocks * Consists of 8 bytes */ uint8_t number_of_quota_blocks[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown8[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown9[ 8 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown10[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown11[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown12[ 4 ]; /* The file system root tree object type * Consists of 4 bytes */ uint8_t file_system_root_tree_object_type[ 4 ]; /* The extent-reference tree object type * Consists of 8 bytes */ uint8_t extent_reference_tree_object_type[ 4 ]; /* The snapshot metadata tree object type * Consists of 4 bytes */ uint8_t snapshot_metadata_tree_object_type[ 4 ]; /* The object map block number * Consists of 8 bytes */ uint8_t object_map_block_number[ 8 ]; /* The file system root object identifier * Consists of 8 bytes */ uint8_t file_system_root_object_identifier[ 8 ]; /* The extent-reference tree block number * Consists of 8 bytes */ uint8_t extent_reference_tree_block_number[ 8 ]; /* The snapshot metadata tree block number * Consists of 8 bytes */ uint8_t snapshot_metadata_tree_block_number[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown20[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown21[ 8 ]; /* The next file system object identifier * Consists of 8 bytes */ uint8_t next_file_system_object_identifier[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown23[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown24[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown25[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown26[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown27[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown28[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown29[ 8 ]; /* The volume identifier * Consists of 16 bytes * Contains an UUID */ uint8_t volume_identifier[ 16 ]; /* The volume (last) modification date and time * Consists of 8 bytes */ uint8_t modification_time[ 8 ]; /* The volume flags * Consists of 8 bytes */ uint8_t volume_flags[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown32[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown33[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown34[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown35[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown36[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown37[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown38[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown39[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown40[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown41[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown42[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown43[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown44[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown45[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown46[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown47[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown48[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown49[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown50[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown51[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown52[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown53[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown54[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown55[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown56[ 32 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown57[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown58[ 8 ]; /* The volume name * Consists of 256 bytes */ uint8_t volume_name[ 256 ]; /* The next (available) document identifier * Consists of 4 bytes */ uint8_t next_document_identifier[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown60[ 4 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown61[ 8 ]; /* Unknown * Consists of 32 bytes */ uint8_t unknown62[ 32 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_VOLUME_SUPERBLOCK_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_object.c0000664000175000017500000001640013426637446023457 0ustar00lordyestalordyesta00000000000000/* * The APFS object functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_object.h" #include "libfsapfs_debug.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfguid.h" #include "fsapfs_object.h" /* Creates object * Make sure the value object is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_object_initialize( libfsapfs_object_t **object, libcerror_error_t **error ) { static char *function = "libfsapfs_object_initialize"; if( object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object.", function ); return( -1 ); } if( *object != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid object value already set.", function ); return( -1 ); } *object = memory_allocate_structure( libfsapfs_object_t ); if( *object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create object.", function ); goto on_error; } if( memory_set( *object, 0, sizeof( libfsapfs_object_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear object.", function ); goto on_error; } return( 1 ); on_error: if( *object != NULL ) { memory_free( *object ); *object = NULL; } return( -1 ); } /* Frees object * Returns 1 if successful or -1 on error */ int libfsapfs_object_free( libfsapfs_object_t **object, libcerror_error_t **error ) { static char *function = "libfsapfs_object_free"; if( object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object.", function ); return( -1 ); } if( *object != NULL ) { memory_free( *object ); *object = NULL; } return( 1 ); } /* Reads the object * Returns 1 if successful or -1 on error */ int libfsapfs_object_read_file_io_handle( libfsapfs_object_t *object, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { fsapfs_object_t object_data; static char *function = "libfsapfs_object_read_file_io_handle"; ssize_t read_count = 0; if( object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading object at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek object offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, (uint8_t *) &object_data, sizeof( fsapfs_object_t ), error ); if( read_count != (ssize_t) sizeof( fsapfs_object_t ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object data.", function ); return( -1 ); } if( libfsapfs_object_read_data( object, (uint8_t *) &object_data, sizeof( fsapfs_object_t ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object data.", function ); return( -1 ); } return( 1 ); } /* Reads the object * Returns 1 if successful or -1 on error */ int libfsapfs_object_read_data( libfsapfs_object_t *object, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_object_read_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_object_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_object_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->identifier, object->identifier ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->transaction_identifier, object->transaction_identifier ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->type, object->type ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->subtype, object->subtype ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->checksum, value_64bit ); libcnotify_printf( "%s: checksum\t\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "%s: identifier\t\t\t\t\t: %" PRIu64 "\n", function, object->identifier ); libcnotify_printf( "%s: transaction identifier\t\t\t: %" PRIu64 "\n", function, object->transaction_identifier ); libcnotify_printf( "%s: type\t\t\t\t\t: 0x%08" PRIx32 "\n", function, object->type ); libcnotify_printf( "%s: subtype\t\t\t\t\t: 0x%08" PRIx32 "\n", function, object->subtype ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_object_map_btree.h0000664000175000017500000000671313426637446025510 0ustar00lordyestalordyesta00000000000000/* * The object map B-tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_OBJECT_MAP_BTREE_H ) #define _LIBFSAPFS_OBJECT_MAP_BTREE_H #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_btree_node.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_object_map_descriptor.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_object_map_btree libfsapfs_object_map_btree_t; struct libfsapfs_object_map_btree { /* The IO handle */ libfsapfs_io_handle_t *io_handle; /* Data block vector */ libfdata_vector_t *data_block_vector; /* Data block cache */ libfcache_cache_t *data_block_cache; /* The node cache */ libfcache_cache_t *node_cache; /* Block number of B-tree root node */ uint64_t root_node_block_number; }; int libfsapfs_object_map_btree_initialize( libfsapfs_object_map_btree_t **object_map_btree, libfsapfs_io_handle_t *io_handle, libfdata_vector_t *data_block_vector, uint64_t root_node_block_number, libcerror_error_t **error ); int libfsapfs_object_map_btree_free( libfsapfs_object_map_btree_t **object_map_btree, libcerror_error_t **error ); int libfsapfs_object_map_btree_get_root_node( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t root_node_block_number, libfsapfs_btree_node_t **root_node, libcerror_error_t **error ); int libfsapfs_object_map_btree_get_sub_node( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t sub_node_block_number, libfsapfs_btree_node_t **sub_node, libcerror_error_t **error ); int libfsapfs_object_map_btree_get_entry_from_node_by_identifier( libfsapfs_object_map_btree_t *object_map_btree, libfsapfs_btree_node_t *node, uint64_t object_identifier, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_object_map_btree_get_entry_by_identifier( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_btree_node_t **btree_node, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_object_map_btree_get_descriptor_by_object_identifier( libfsapfs_object_map_btree_t *object_map_btree, libbfio_handle_t *file_io_handle, uint64_t object_identifier, libfsapfs_object_map_descriptor_t **descriptor, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_OBJECT_MAP_BTREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libfguid.h0000664000175000017500000000257313426637446024011 0ustar00lordyestalordyesta00000000000000/* * The libfguid header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBFGUID_H ) #define _LIBFSAPFS_LIBFGUID_H #include /* Define HAVE_LOCAL_LIBFGUID for local use of libfguid */ #if defined( HAVE_LOCAL_LIBFGUID ) #include #include #include #else /* If libtool DLL support is enabled set LIBFGUID_DLL_IMPORT * before including libfguid.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBFGUID_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFGUID ) */ #endif /* !defined( _LIBFSAPFS_LIBFGUID_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_inode.h0000664000175000017500000001100713426637446023312 0ustar00lordyestalordyesta00000000000000/* * Inode functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_INODE_H ) #define _LIBFSAPFS_INODE_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_inode libfsapfs_inode_t; struct libfsapfs_inode { /* The identifier */ uint64_t identifier; /* The parent identifier */ uint64_t parent_identifier; /* The modification time */ uint64_t modification_time; /* The creation time */ uint64_t creation_time; /* The inode change time */ uint64_t inode_change_time; /* The access time */ uint64_t access_time; /* The owner identifier */ uint32_t owner_identifier; /* The group identifier */ uint32_t group_identifier; /* The file mode */ uint16_t file_mode; /* The name size */ uint16_t name_size; /* The name */ uint8_t *name; /* The inode flags */ uint64_t flags; /* The data stream identifier */ uint64_t data_stream_identifier; /* The data stream size */ uint64_t data_stream_size; }; int libfsapfs_inode_initialize( libfsapfs_inode_t **inode, libcerror_error_t **error ); int libfsapfs_inode_free( libfsapfs_inode_t **inode, libcerror_error_t **error ); int libfsapfs_inode_read_key_data( libfsapfs_inode_t *inode, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_inode_read_value_data( libfsapfs_inode_t *inode, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_inode_get_identifier( libfsapfs_inode_t *inode, uint64_t *identifier, libcerror_error_t **error ); int libfsapfs_inode_get_parent_identifier( libfsapfs_inode_t *inode, uint64_t *parent_identifier, libcerror_error_t **error ); int libfsapfs_inode_get_creation_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ); int libfsapfs_inode_get_modification_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ); int libfsapfs_inode_get_inode_change_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ); int libfsapfs_inode_get_access_time( libfsapfs_inode_t *inode, int64_t *posix_time, libcerror_error_t **error ); int libfsapfs_inode_get_owner_identifier( libfsapfs_inode_t *inode, uint32_t *owner_identifier, libcerror_error_t **error ); int libfsapfs_inode_get_group_identifier( libfsapfs_inode_t *inode, uint32_t *group_identifier, libcerror_error_t **error ); int libfsapfs_inode_get_file_mode( libfsapfs_inode_t *inode, uint16_t *file_mode, libcerror_error_t **error ); int libfsapfs_inode_get_utf8_name_size( libfsapfs_inode_t *inode, size_t *utf8_string_size, libcerror_error_t **error ); int libfsapfs_inode_get_utf8_name( libfsapfs_inode_t *inode, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); int libfsapfs_inode_get_utf16_name_size( libfsapfs_inode_t *inode, size_t *utf16_string_size, libcerror_error_t **error ); int libfsapfs_inode_get_utf16_name( libfsapfs_inode_t *inode, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); int libfsapfs_inode_get_flags( libfsapfs_inode_t *inode, uint64_t *flags, libcerror_error_t **error ); int libfsapfs_inode_get_data_stream_identifier( libfsapfs_inode_t *inode, uint64_t *data_stream_identifier, libcerror_error_t **error ); int libfsapfs_inode_get_data_stream_size( libfsapfs_inode_t *inode, uint64_t *data_stream_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_INODE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_debug.c0000664000175000017500000004425713426637446023312 0ustar00lordyestalordyesta00000000000000/* * Debug functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_definitions.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfdatetime.h" #include "libfsapfs_libfguid.h" #include "libfsapfs_unused.h" #if defined( HAVE_DEBUG_OUTPUT ) /* Prints the B-tree flags */ void libfsapfs_debug_print_btree_flags( uint32_t btree_flags ) { if( ( btree_flags & 0x00000001 ) != 0 ) { libcnotify_printf( "\t(BTREE_UINT64_KEYS)\n" ); } if( ( btree_flags & 0x00000002 ) != 0 ) { libcnotify_printf( "\t(BTREE_SEQUENTIAL_INSERT)\n" ); } if( ( btree_flags & 0x00000004 ) != 0 ) { libcnotify_printf( "\t(BTREE_ALLOW_GHOSTS)\n" ); } if( ( btree_flags & 0x00000008 ) != 0 ) { libcnotify_printf( "\t(BTREE_EPHEMERAL)\n" ); } if( ( btree_flags & 0x00000010 ) != 0 ) { libcnotify_printf( "\t(BTREE_PHYSICAL)\n" ); } if( ( btree_flags & 0x00000020 ) != 0 ) { libcnotify_printf( "\t(BTREE_NONPERSISTENT)\n" ); } if( ( btree_flags & 0x00000040 ) != 0 ) { libcnotify_printf( "\t(BTREE_KV_NONALIGNED)\n" ); } } /* Prints the B-tree node flags */ void libfsapfs_debug_print_btree_node_flags( uint16_t btree_node_flags ) { if( ( btree_node_flags & 0x0001 ) != 0 ) { libcnotify_printf( "\tIs root (BTNODE_ROOT)\n" ); } if( ( btree_node_flags & 0x0002 ) != 0 ) { libcnotify_printf( "\tIs leaf (BTNODE_LEAF)\n" ); } if( ( btree_node_flags & 0x0004 ) != 0 ) { libcnotify_printf( "\tHas fixed-size entry (BTNODE_FIXED_KV_SIZE)\n" ); } if( ( btree_node_flags & 0x8000 ) != 0 ) { libcnotify_printf( "\tIn transient state (BTNODE_CHECK_KOFF_INVAL)\n" ); } } /* Prints the checkpoint flags */ void libfsapfs_debug_print_checkpoint_flags( uint32_t checkpoint_flags ) { if( ( checkpoint_flags & 0x00000001 ) != 0 ) { libcnotify_printf( "\t(CHECKPOINT_MAP_LAST)\n" ); } } /* Prints the container compatible feature flags */ void libfsapfs_debug_print_container_compatible_features_flags( uint64_t compatible_features_flags ) { if( ( compatible_features_flags & 0x0000000000000001 ) != 0 ) { libcnotify_printf( "\t(NX_FEATURE_DEFRAG)\n" ); } if( ( compatible_features_flags & 0x0000000000000002 ) != 0 ) { libcnotify_printf( "\t(NX_FEATURE_LCFD)\n" ); } } /* Prints the container incompatible feature flags */ void libfsapfs_debug_print_container_incompatible_features_flags( uint64_t incompatible_features_flags ) { if( ( incompatible_features_flags & 0x0000000000000001 ) != 0 ) { libcnotify_printf( "\t(NX_INCOMPAT_VERSION1)\n" ); } if( ( incompatible_features_flags & 0x0000000000000002 ) != 0 ) { libcnotify_printf( "\t(NX_INCOMPAT_VERSION2)\n" ); } if( ( incompatible_features_flags & 0x0000000000000100 ) != 0 ) { libcnotify_printf( "\t(NX_INCOMPAT_FUSION)\n" ); } } /* Prints the container read-only compatible feature flags */ void libfsapfs_debug_print_container_read_only_compatible_features_flags( uint64_t read_only_compatible_features_flags LIBFSAPFS_ATTRIBUTE_UNUSED ) { LIBFSAPFS_UNREFERENCED_PARAMETER( read_only_compatible_features_flags ) /* Currently there are no container read-only compatible feature flags defined */ } /* Prints the directory entry flags */ void libfsapfs_debug_print_directory_entry_flags( uint16_t directory_entry_flags ) { switch( directory_entry_flags & 0x000f ) { case 0x0000: libcnotify_printf( "\t(DT_UNKNOWN)\n" ); break; case 0x0001: libcnotify_printf( "\t(DT_FIFO)\n" ); break; case 0x0002: libcnotify_printf( "\t(DT_CHR)\n" ); break; case 0x0004: libcnotify_printf( "\t(DT_DIR)\n" ); break; case 0x0006: libcnotify_printf( "\t(DT_BLK)\n" ); break; case 0x0008: libcnotify_printf( "\t(DT_REG)\n" ); break; case 0x000a: libcnotify_printf( "\t(DT_LNK)\n" ); break; case 0x000c: libcnotify_printf( "\t(DT_SOCK)\n" ); break; case 0x000e: libcnotify_printf( "\t(DT_WHT)\n" ); break; default: libcnotify_printf( "\tUnknown: 0x%04" PRIx16 "\n", directory_entry_flags & 0x000f ); break; } if( ( directory_entry_flags & 0x0010 ) != 0 ) { libcnotify_printf( "\t(RESERVED_10)\n" ); } } /* Prints the extended attribute flags */ void libfsapfs_debug_print_extended_attribute_flags( uint16_t extended_attribute_flags ) { if( ( extended_attribute_flags & 0x0001 ) != 0 ) { libcnotify_printf( "\t(XATTR_DATA_STREAM)\n" ); } if( ( extended_attribute_flags & 0x0002 ) != 0 ) { libcnotify_printf( "\t(XATTR_DATA_EMBEDDED)\n" ); } if( ( extended_attribute_flags & 0x0004 ) != 0 ) { libcnotify_printf( "\t(XATTR_FILE_SYSTEM_OWNED)\n" ); } if( ( extended_attribute_flags & 0x0008 ) != 0 ) { libcnotify_printf( "\t(XATTR_RESERVED_8)\n" ); } } /* Prints the extended field flags */ void libfsapfs_debug_print_extended_field_flags( uint8_t extended_field_flags ) { if( ( extended_field_flags & 0x01 ) != 0 ) { libcnotify_printf( "\t(XF_DATA_DEPENDENT)\n" ); } if( ( extended_field_flags & 0x02 ) != 0 ) { libcnotify_printf( "\t(XF_DO_NOT_COPY)\n" ); } if( ( extended_field_flags & 0x04 ) != 0 ) { libcnotify_printf( "\t(XF_RESERVED_4)\n" ); } if( ( extended_field_flags & 0x08 ) != 0 ) { libcnotify_printf( "\t(XF_CHILDREN_INHERIT)\n" ); } if( ( extended_field_flags & 0x10 ) != 0 ) { libcnotify_printf( "\t(XF_USER_FIELD)\n" ); } if( ( extended_field_flags & 0x20 ) != 0 ) { libcnotify_printf( "\t(XF_SYSTEM_FIELD)\n" ); } if( ( extended_field_flags & 0x40 ) != 0 ) { libcnotify_printf( "\t(XF_RESERVED_40)\n" ); } if( ( extended_field_flags & 0x80 ) != 0 ) { libcnotify_printf( "\t(XF_RESERVED_80)\n" ); } } /* Prints the inode flags */ void libfsapfs_debug_print_inode_flags( uint64_t inode_flags ) { if( ( inode_flags & 0x00000001 ) != 0 ) { libcnotify_printf( "\t(INODE_IS_APFS_PRIVATE)\n" ); } if( ( inode_flags & 0x00000002 ) != 0 ) { libcnotify_printf( "\t(INODE_MAINTAIN_DIR_STATS)\n" ); } if( ( inode_flags & 0x00000004 ) != 0 ) { libcnotify_printf( "\t(INODE_DIR_STATS_ORIGIN)\n" ); } if( ( inode_flags & 0x00000008 ) != 0 ) { libcnotify_printf( "\t(INODE_PROT_CLASS_EXPLICIT)\n" ); } if( ( inode_flags & 0x00000010 ) != 0 ) { libcnotify_printf( "\t(INODE_WAS_CLONED)\n" ); } if( ( inode_flags & 0x00000020 ) != 0 ) { libcnotify_printf( "\t(INODE_FLAG_UNUSED)\n" ); } if( ( inode_flags & 0x00000040 ) != 0 ) { libcnotify_printf( "\t(INODE_HAS_SECURITY_EA)\n" ); } if( ( inode_flags & 0x00000080 ) != 0 ) { libcnotify_printf( "\t(INODE_BEING_TRUNCATED)\n" ); } if( ( inode_flags & 0x00000100 ) != 0 ) { libcnotify_printf( "\t(INODE_HAS_FINDER_INFO)\n" ); } if( ( inode_flags & 0x00000200 ) != 0 ) { libcnotify_printf( "\t(INODE_IS_SPARSE)\n" ); } if( ( inode_flags & 0x00000400 ) != 0 ) { libcnotify_printf( "\t(INODE_WAS_EVER_CLONED)\n" ); } if( ( inode_flags & 0x00000800 ) != 0 ) { libcnotify_printf( "\t(INODE_ACTIVE_FILE_TRIMMED)\n" ); } if( ( inode_flags & 0x00001000 ) != 0 ) { libcnotify_printf( "\t(INODE_PINNED_TO_MAIN)\n" ); } if( ( inode_flags & 0x00002000 ) != 0 ) { libcnotify_printf( "\t(INODE_PINNED_TO_TIER2)\n" ); } if( ( inode_flags & 0x00004000 ) != 0 ) { libcnotify_printf( "\t(INODE_HAS_RSRC_FORK)\n" ); } if( ( inode_flags & 0x00008000 ) != 0 ) { libcnotify_printf( "\t(INODE_NO_RSRC_FORK)\n" ); } if( ( inode_flags & 0x00010000 ) != 0 ) { libcnotify_printf( "\t(INODE_ALLOCATION_SPILLEDOVER)\n" ); } } /* Prints the volume compatible feature flags */ void libfsapfs_debug_print_volume_compatible_features_flags( uint64_t compatible_features_flags ) { if( ( compatible_features_flags & 0x0000000000000001 ) != 0 ) { libcnotify_printf( "\t(APFS_FEATURE_DEFRAG_PRERELEASE)\n" ); } if( ( compatible_features_flags & 0x0000000000000002 ) != 0 ) { libcnotify_printf( "\t(APFS_FEATURE_HARDLINK_MAP_RECORDS)\n" ); } if( ( compatible_features_flags & 0x0000000000000004 ) != 0 ) { libcnotify_printf( "\t(APFS_FEATURE_DEFRAG)\n" ); } } /* Prints the volume flags */ void libfsapfs_debug_print_volume_flags( uint64_t volume_flags ) { if( ( volume_flags & 0x0000000000000001 ) != 0 ) { libcnotify_printf( "\t(APFS_FS_UNENCRYPTED)\n" ); } if( ( volume_flags & 0x0000000000000002 ) != 0 ) { libcnotify_printf( "\t(APFS_FS_EFFACEABLE)\n" ); } if( ( volume_flags & 0x0000000000000004 ) != 0 ) { libcnotify_printf( "\t(APFS_FS_RESERVED_4)\n" ); } if( ( volume_flags & 0x0000000000000008 ) != 0 ) { libcnotify_printf( "\t(APFS_FS_ONEKEY)\n" ); } if( ( volume_flags & 0x0000000000000010 ) != 0 ) { libcnotify_printf( "\t(APFS_FS_SPILLEDOVER)\n" ); } if( ( volume_flags & 0x0000000000000020 ) != 0 ) { libcnotify_printf( "\t(APFS_FS_RUN_SPILLOVER_CLEANER)\n" ); } } /* Prints the volume incompatible feature flags */ void libfsapfs_debug_print_volume_incompatible_features_flags( uint64_t incompatible_features_flags ) { if( ( incompatible_features_flags & 0x0000000000000001 ) != 0 ) { libcnotify_printf( "\t(APFS_INCOMPAT_CASE_INSENSITIVE)\n" ); } if( ( incompatible_features_flags & 0x0000000000000002 ) != 0 ) { libcnotify_printf( "\t(APFS_INCOMPAT_DATALESS_SNAPS)\n" ); } if( ( incompatible_features_flags & 0x0000000000000004 ) != 0 ) { libcnotify_printf( "\t(APFS_INCOMPAT_ENC_ROLLED)\n" ); } if( ( incompatible_features_flags & 0x0000000000000008 ) != 0 ) { libcnotify_printf( "\t(APFS_INCOMPAT_NORMALIZATION_INSENSITIVE)\n" ); } } /* Prints the volume read-only compatible feature flags */ void libfsapfs_debug_print_volume_read_only_compatible_features_flags( uint64_t read_only_compatible_features_flags LIBFSAPFS_ATTRIBUTE_UNUSED ) { LIBFSAPFS_UNREFERENCED_PARAMETER( read_only_compatible_features_flags ) /* Currently there are no volume read-only compatible feature flags defined */ } /* Prints the file system data type */ const char *libfsapfs_debug_print_file_system_data_type( uint8_t file_system_data_type ) { switch( file_system_data_type ) { case 0: return( "(APFS_TYPE_ANY)" ); case 1: return( "(APFS_TYPE_SNAP_METADATA)" ); case 2: return( "(APFS_TYPE_EXTENT)" ); case 3: return( "(APFS_TYPE_INODE)" ); case 4: return( "(APFS_TYPE_XATTR)" ); case 5: return( "(APFS_TYPE_SIBLING_LINK)" ); case 6: return( "(APFS_TYPE_DSTREAM_ID)" ); case 7: return( "(APFS_TYPE_CRYPTO_STATE)" ); case 8: return( "(APFS_TYPE_FILE_EXTENT)" ); case 9: return( "(APFS_TYPE_DIR_REC)" ); case 10: return( "(APFS_TYPE_DIR_STATS)" ); case 11: return( "(APFS_TYPE_SNAP_NAME)" ); case 12: return( "(APFS_TYPE_SIBLING_MAP)" ); } return( "Unknown" ); } /* Prints the directory record extended field type */ const char *libfsapfs_debug_print_directory_record_extended_field_type( uint8_t extended_field_type ) { switch( extended_field_type ) { case 1: return( "(DREC_EXT_TYPE_SIBLING_ID)" ); } return( "Unknown" ); } /* Prints the inode extended field type */ const char *libfsapfs_debug_print_inode_extended_field_type( uint8_t extended_field_type ) { switch( extended_field_type ) { case 1: return( "(INO_EXT_TYPE_SNAP_XID)" ); case 2: return( "(INO_EXT_TYPE_DELTA_TREE_OID)" ); case 3: return( "(INO_EXT_TYPE_DOCUMENT_ID)" ); case 4: return( "(INO_EXT_TYPE_NAME)" ); case 5: return( "(INO_EXT_TYPE_PREV_FSIZE)" ); case 6: return( "(INO_EXT_TYPE_RESERVED_6)" ); case 7: return( "(INO_EXT_TYPE_FINDER_INFO)" ); case 8: return( "(INO_EXT_TYPE_DSTREAM)" ); case 9: return( "(INO_EXT_TYPE_RESERVED_9)" ); case 10: return( "(INO_EXT_TYPE_DIR_STATS_KEY)" ); case 11: return( "(INO_EXT_TYPE_FS_UUID)" ); case 12: return( "(INO_EXT_TYPE_RESERVED_12)" ); case 13: return( "(INO_EXT_TYPE_SPARSE_BYTES)" ); case 14: return( "(INO_EXT_TYPE_RDEV)" ); } return( "Unknown" ); } /* Prints a POSIX value * Returns 1 if successful or -1 on error */ int libfsapfs_debug_print_posix_time_value( const char *function_name, const char *value_name, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, uint8_t value_type, uint32_t string_format_flags, libcerror_error_t **error ) { char date_time_string[ 32 ]; libfdatetime_posix_time_t *posix_time = NULL; static char *function = "libfsapfs_debug_print_posix_time_value"; if( libfdatetime_posix_time_initialize( &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create POSIX time.", function ); goto on_error; } if( libfdatetime_posix_time_copy_from_byte_stream( posix_time, byte_stream, byte_stream_size, byte_order, value_type, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy byte stream to POSIX time.", function ); goto on_error; } if( libfdatetime_posix_time_copy_to_utf8_string( posix_time, (uint8_t *) date_time_string, 32, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy POSIX time to string.", function ); goto on_error; } libcnotify_printf( "%s: %s: %s UTC\n", function_name, value_name, date_time_string ); if( libfdatetime_posix_time_free( &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free POSIX time.", function ); goto on_error; } return( 1 ); on_error: if( posix_time != NULL ) { libfdatetime_posix_time_free( &posix_time, NULL ); } return( -1 ); } /* Prints a GUID/UUID value * Returns 1 if successful or -1 on error */ int libfsapfs_debug_print_guid_value( const char *function_name, const char *value_name, const uint8_t *byte_stream, size_t byte_stream_size, int byte_order, uint32_t string_format_flags, libcerror_error_t **error ) { system_character_t guid_string[ 48 ]; libfguid_identifier_t *guid = NULL; static char *function = "libfsapfs_debug_print_guid_value"; if( libfguid_identifier_initialize( &guid, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create GUID.", function ); goto on_error; } if( libfguid_identifier_copy_from_byte_stream( guid, byte_stream, byte_stream_size, byte_order, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy byte stream to GUID.", function ); goto on_error; } if( libfguid_identifier_copy_to_utf8_string( guid, (uint8_t *) guid_string, 48, string_format_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy GUID to string.", function ); goto on_error; } libcnotify_printf( "%s: %s: %s\n", function_name, value_name, guid_string ); if( libfguid_identifier_free( &guid, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free GUID.", function ); goto on_error; } return( 1 ); on_error: if( guid != NULL ) { libfguid_identifier_free( &guid, NULL ); } return( -1 ); } /* Prints the read offsets * Returns 1 if successful or -1 on error */ int libfsapfs_debug_print_read_offsets( libbfio_handle_t *file_io_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_debug_print_read_offsets"; off64_t offset = 0; size64_t size = 0; int number_of_offsets = 0; int offset_iterator = 0; if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( libbfio_handle_get_number_of_offsets_read( file_io_handle, &number_of_offsets, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of offsets read.", function ); return( -1 ); } libcnotify_printf( "Offsets read:\n" ); for( offset_iterator = 0; offset_iterator < number_of_offsets; offset_iterator++ ) { if( libbfio_handle_get_offset_read( file_io_handle, offset_iterator, &offset, &size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve offset: %d.", function, ( offset_iterator + 1 ) ); return( -1 ); } libcnotify_printf( "%08" PRIi64 " ( 0x%08" PRIx64 " ) - %08" PRIi64 " ( 0x%08" PRIx64 " ) size: %" PRIu64 "\n", offset, offset, offset + (off64_t) size, offset + (off64_t) size, size ); } libcnotify_printf( "\n" ); return( 1 ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ libfsapfs-20190210/libfsapfs/libfsapfs_snapshot_metadata.c0000664000175000017500000002220613426637446025711 0ustar00lordyestalordyesta00000000000000/* * The snapshot metadata functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_debug.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libfdatetime.h" #include "libfsapfs_snapshot_metadata.h" #include "fsapfs_snapshot_metadata.h" /* Creates physical_map_entry * Make sure the value snapshot_metadata is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_initialize( libfsapfs_snapshot_metadata_t **snapshot_metadata, libcerror_error_t **error ) { static char *function = "libfsapfs_snapshot_metadata_initialize"; if( snapshot_metadata == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata.", function ); return( -1 ); } if( *snapshot_metadata != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid snapshot metadata value already set.", function ); return( -1 ); } *snapshot_metadata = memory_allocate_structure( libfsapfs_snapshot_metadata_t ); if( *snapshot_metadata == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create snapshot metadata.", function ); goto on_error; } if( memory_set( *snapshot_metadata, 0, sizeof( libfsapfs_snapshot_metadata_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear snapshot metadata.", function ); goto on_error; } return( 1 ); on_error: if( *snapshot_metadata != NULL ) { memory_free( *snapshot_metadata ); *snapshot_metadata = NULL; } return( -1 ); } /* Frees snapshot metadata * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_free( libfsapfs_snapshot_metadata_t **snapshot_metadata, libcerror_error_t **error ) { static char *function = "libfsapfs_snapshot_metadata_free"; if( snapshot_metadata == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata.", function ); return( -1 ); } if( *snapshot_metadata != NULL ) { memory_free( *snapshot_metadata ); *snapshot_metadata = NULL; } return( 1 ); } /* Reads the snapshot metadata B-tree key data * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_read_key_data( libfsapfs_snapshot_metadata_t *snapshot_metadata, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_snapshot_metadata_read_key_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( snapshot_metadata == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_snapshot_metadata_btree_key_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: snapshot metadata tree key data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_snapshot_metadata_btree_key_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_snapshot_metadata_btree_key_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } /* Reads the snapshot metadata B-tree value data * Returns 1 if successful or -1 on error */ int libfsapfs_snapshot_metadata_read_value_data( libfsapfs_snapshot_metadata_t *snapshot_metadata, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_snapshot_metadata_read_value_data"; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; uint16_t value_16bit = 0; #endif if( snapshot_metadata == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid snapshot metadata.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_snapshot_metadata_btree_value_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: snapshot metadata tree value data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_snapshot_metadata_btree_value_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint32_little_endian( ( (fsapfs_snapshot_metadata_btree_value_t *) data )->extent_reference_tree_object_identifier, value_64bit ); libcnotify_printf( "%s: extent-reference tree object identifier\t: %" PRIu32 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_snapshot_metadata_btree_value_t *) data )->volume_superblock_object_identifier, value_64bit ); libcnotify_printf( "%s: volume superblock object identifier\t\t\t: %" PRIu32 "\n", function, value_64bit ); if( libfsapfs_debug_print_posix_time_value( function, "creation time\t\t\t\t", ( (fsapfs_snapshot_metadata_btree_value_t *) data )->creation_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } if( libfsapfs_debug_print_posix_time_value( function, "change time\t\t\t\t", ( (fsapfs_snapshot_metadata_btree_value_t *) data )->change_time, 8, LIBFDATETIME_ENDIAN_LITTLE, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_snapshot_metadata_btree_value_t *) data )->extent_reference_tree_object_type, value_32bit ); libcnotify_printf( "%s: extent-reference tree object type\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_snapshot_metadata_btree_value_t *) data )->flags, value_32bit ); libcnotify_printf( "%s: flags\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_snapshot_metadata_btree_value_t *) data )->name_size, value_16bit ); libcnotify_printf( "%s: name size\t\t\t\t\t: size: %" PRIu16 "\n", function, value_16bit ); /* TODO debug print name */ libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_chunk_information_block.h0000664000175000017500000000402413426637446027104 0ustar00lordyestalordyesta00000000000000/* * The chunk information block functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CHUNK_INFORMATION_BLOCK_H ) #define _LIBFSAPFS_CHUNK_INFORMATION_BLOCK_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_chunk_information_block libfsapfs_chunk_information_block_t; struct libfsapfs_chunk_information_block { /* Dummy */ int dummy; }; int libfsapfs_chunk_information_block_initialize( libfsapfs_chunk_information_block_t **chunk_information_block, libcerror_error_t **error ); int libfsapfs_chunk_information_block_free( libfsapfs_chunk_information_block_t **chunk_information_block, libcerror_error_t **error ); int libfsapfs_chunk_information_block_read_file_io_handle( libfsapfs_chunk_information_block_t *chunk_information_block, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_chunk_information_block_read_data( libfsapfs_chunk_information_block_t *chunk_information_block, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CHUNK_INFORMATION_BLOCK_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_object_map_descriptor.h0000664000175000017500000000423413426637446026561 0ustar00lordyestalordyesta00000000000000/* * The object map descriptor functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_OBJECT_MAP_DESCRIPTOR_H ) #define _LIBFSAPFS_OBJECT_MAP_DESCRIPTOR_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_object_map_descriptor libfsapfs_object_map_descriptor_t; struct libfsapfs_object_map_descriptor { /* The identifier */ uint64_t identifier; /* The transaction identifier */ uint64_t transaction_identifier; /* The flags */ uint32_t flags; /* The size */ uint32_t size; /* The physical address */ uint64_t physical_address; }; int libfsapfs_object_map_descriptor_initialize( libfsapfs_object_map_descriptor_t **object_map_descriptor, libcerror_error_t **error ); int libfsapfs_object_map_descriptor_free( libfsapfs_object_map_descriptor_t **object_map_descriptor, libcerror_error_t **error ); int libfsapfs_object_map_descriptor_read_key_data( libfsapfs_object_map_descriptor_t *object_map_descriptor, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_object_map_descriptor_read_value_data( libfsapfs_object_map_descriptor_t *object_map_descriptor, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_OBJECT_MAP_DESCRIPTOR_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_container_key_bag.c0000664000175000017500000006270513426637446025665 0ustar00lordyestalordyesta00000000000000/* * The container key bag functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_checksum.h" #include "libfsapfs_container_key_bag.h" #include "libfsapfs_definitions.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_key_bag_entry.h" #include "libfsapfs_key_bag_header.h" #include "libfsapfs_key_encrypted_key.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_key_bag.h" #include "fsapfs_object.h" /* Creates a container key bag * Make sure the value container_key_bag is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_container_key_bag_initialize( libfsapfs_container_key_bag_t **container_key_bag, libcerror_error_t **error ) { static char *function = "libfsapfs_container_key_bag_initialize"; if( container_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container key bag.", function ); return( -1 ); } if( *container_key_bag != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container key bag value already set.", function ); return( -1 ); } *container_key_bag = memory_allocate_structure( libfsapfs_container_key_bag_t ); if( *container_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create container key bag.", function ); goto on_error; } if( memory_set( *container_key_bag, 0, sizeof( libfsapfs_container_key_bag_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear container key bag.", function ); memory_free( *container_key_bag ); *container_key_bag = NULL; return( -1 ); } if( libcdata_array_initialize( &( ( *container_key_bag )->entries_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create entries array.", function ); goto on_error; } return( 1 ); on_error: if( *container_key_bag != NULL ) { memory_free( *container_key_bag ); *container_key_bag = NULL; } return( -1 ); } /* Frees a container key bag * Returns 1 if successful or -1 on error */ int libfsapfs_container_key_bag_free( libfsapfs_container_key_bag_t **container_key_bag, libcerror_error_t **error ) { static char *function = "libfsapfs_container_key_bag_free"; int result = 1; if( container_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container key bag.", function ); return( -1 ); } if( *container_key_bag != NULL ) { if( libcdata_array_free( &( ( *container_key_bag )->entries_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_key_bag_entry_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free entries array.", function ); result = -1; } memory_free( *container_key_bag ); *container_key_bag = NULL; } return( result ); } /* Reads the container key bag * Returns 1 if successful or -1 on error */ int libfsapfs_container_key_bag_read_file_io_handle( libfsapfs_container_key_bag_t *container_key_bag, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, off64_t file_offset, size64_t data_size, const uint8_t *container_identifier, libcerror_error_t **error ) { libfsapfs_encryption_context_t *encryption_context = NULL; uint8_t *data = NULL; uint8_t *encrypted_data = NULL; static char *function = "libfsapfs_container_key_bag_read_file_io_handle"; ssize_t read_count = 0; if( container_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container key bag.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } if( io_handle->bytes_per_sector == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid IO handle - missing bytes per sector.", function ); return( -1 ); } if( data_size > (size64_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid container key bag size value out of bounds.", function ); return( -1 ); } encrypted_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * data_size ); if( encrypted_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create enrypted data.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading container key bag data at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek encrypted data offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } read_count = libbfio_handle_read_buffer( file_io_handle, encrypted_data, (size_t) data_size, error ); if( read_count != (ssize_t) data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read encrypted data.", function ); goto on_error; } data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * data_size ); if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data.", function ); goto on_error; } if( libfsapfs_encryption_context_initialize( &encryption_context, LIBFSAPFS_ENCRYPTION_METHOD_AES_128_XTS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize encryption context.", function ); goto on_error; } if( libfsapfs_encryption_context_set_keys( encryption_context, container_identifier, 16, container_identifier, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set keys in encryption context.", function ); goto on_error; } if( libfsapfs_encryption_context_crypt( encryption_context, LIBCAES_CRYPT_MODE_DECRYPT, encrypted_data, data_size, data, data_size, (uint64_t) ( file_offset / io_handle->bytes_per_sector ), io_handle->bytes_per_sector, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_DECRYPT_FAILED, "%s: unable to decrypt data.", function ); goto on_error; } if( libfsapfs_encryption_context_free( &encryption_context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free encryption context.", function ); goto on_error; } memory_free( encrypted_data ); encrypted_data = NULL; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unencrypted container key bag data:\n", function ); libcnotify_print_data( data, (size_t) data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif if( libfsapfs_container_key_bag_read_data( container_key_bag, data, (size_t) data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container key bag.", function ); goto on_error; } memory_free( data ); return( 1 ); on_error: if( encryption_context != NULL ) { libfsapfs_encryption_context_free( &encryption_context, NULL ); } if( data != NULL ) { memory_free( data ); } if( encrypted_data != NULL ) { memory_free( encrypted_data ); } return( -1 ); } /* Reads the container key bag * Returns 1 if successful or -1 on error */ int libfsapfs_container_key_bag_read_data( libfsapfs_container_key_bag_t *container_key_bag, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { libfsapfs_key_bag_entry_t *bag_entry = NULL; libfsapfs_key_bag_header_t *bag_header = NULL; static char *function = "libfsapfs_container_key_bag_read_data"; size_t alignment_padding_size = 0; size_t data_offset = 0; uint64_t calculated_checksum = 0; uint64_t object_subtype = 0; uint64_t object_type = 0; uint64_t stored_checksum = 0; uint16_t bag_entry_index = 0; int entry_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( container_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container key bag.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_object_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: container key bag object data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_object_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->checksum, stored_checksum ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->type, object_type ); if( object_type != 0x6b657973UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); goto on_error; } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, stored_checksum ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( libfsapfs_checksum_calculate_fletcher64( &calculated_checksum, &( data[ 8 ] ), data_size - 8, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to calculate Fletcher-64 checksum.", function ); return( -1 ); } if( stored_checksum != calculated_checksum ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_INPUT, LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH, "%s: mismatch in checksum ( 0x%08" PRIx64 " != 0x%08" PRIx64 " ).\n", function, stored_checksum, calculated_checksum ); return( -1 ); } data_offset = sizeof( fsapfs_object_t ); if( libfsapfs_key_bag_header_initialize( &bag_header, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create key bag header.", function ); goto on_error; } if( libfsapfs_key_bag_header_read_data( bag_header, &( data[ data_offset ] ), data_size - data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read key bag header.", function ); goto on_error; } if( (size_t) bag_header->data_size > ( data_size - data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key bag header data size value out of bounds.", function ); goto on_error; } /* TODO bounds check number of entries ? */ data_offset += 16; for( bag_entry_index = 0; bag_entry_index < bag_header->number_of_entries; bag_entry_index++ ) { if( libfsapfs_key_bag_entry_initialize( &bag_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create key bag entry: %" PRIu16 ".", function, bag_entry_index ); goto on_error; } if( libfsapfs_key_bag_entry_read_data( bag_entry, &( data[ data_offset ] ), data_size - data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read key bag entry: %" PRIu16 ".", function, bag_entry_index ); goto on_error; } if( libcdata_array_append_entry( container_key_bag->entries_array, &entry_index, (intptr_t *) bag_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append bag entry: %" PRIu32 " to array.", function, bag_entry_index ); goto on_error; } data_offset += bag_entry->size; bag_entry = NULL; alignment_padding_size = data_offset % 16; if( alignment_padding_size != 0 ) { alignment_padding_size = 16 - alignment_padding_size; if( ( alignment_padding_size > data_size ) || ( data_offset > ( data_size - alignment_padding_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: alignment padding data:\n", function ); libcnotify_print_data( &( data[ data_offset ] ), alignment_padding_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif data_offset += alignment_padding_size; } } if( libfsapfs_key_bag_header_free( &bag_header, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key bag header.", function ); goto on_error; } return( 1 ); on_error: if( bag_entry != NULL ) { libfsapfs_key_bag_entry_free( &bag_entry, NULL ); } if( bag_header != NULL ) { libfsapfs_key_bag_header_free( &bag_header, NULL ); } return( -1 ); } /* Retrieves the volume key extent for a specific volume * Returns 1 if successful, 0 if no such volume or -1 on error */ int libfsapfs_container_key_bag_get_volume_key_bag_extent_by_identifier( libfsapfs_container_key_bag_t *container_key_bag, const uint8_t *volume_identifier, uint64_t *volume_key_bag_block_number, uint64_t *volume_key_bag_number_of_blocks, libcerror_error_t **error ) { libfsapfs_key_bag_entry_t *bag_entry = NULL; static char *function = "libfsapfs_container_key_bag_get_volume_key_bag_extent_by_identifier"; uint64_t block_number = 0; uint64_t number_of_blocks = 0; int entry_index = 0; int number_of_entries = 0; if( container_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container key bag.", function ); return( -1 ); } if( volume_identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume identifier.", function ); return( -1 ); } if( volume_key_bag_block_number == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume key bag block number.", function ); return( -1 ); } if( volume_key_bag_number_of_blocks == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume key bag number of blocks.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( container_key_bag->entries_array, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); return( -1 ); } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libcdata_array_get_entry_by_index( container_key_bag->entries_array, entry_index, (intptr_t **) &bag_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from array.", function, entry_index ); return( -1 ); } if( bag_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing entry: %d.", function, entry_index ); return( -1 ); } if( bag_entry->type != 3 ) { continue; } if( memory_compare( bag_entry->identifier, volume_identifier, 16 ) != 0 ) { continue; } if( bag_entry->data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid entry: %d - missing data.", function, entry_index ); return( -1 ); } if( bag_entry->data_size != 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid entry: %d - unsupported data size.", function, entry_index ); return( -1 ); } byte_stream_copy_to_uint64_little_endian( ( (fsapfs_key_bag_extent_t * ) bag_entry->data )->block_number, block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_key_bag_extent_t * ) bag_entry->data )->number_of_blocks, number_of_blocks ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: key bag extent block number\t: %" PRIu64 "\n", function, block_number ); libcnotify_printf( "%s: key bag extent number of blocks\t: %" PRIu64 "\n", function, number_of_blocks ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ *volume_key_bag_block_number = block_number; *volume_key_bag_number_of_blocks = number_of_blocks; return( 1 ); } return( 0 ); } /* Retrieves the volume master key for a specific volume * Returns 1 if successful, 0 if no such volume or -1 on error */ int libfsapfs_container_key_bag_get_volume_master_key_by_identifier( libfsapfs_container_key_bag_t *container_key_bag, const uint8_t *volume_identifier, const uint8_t *volume_key, size_t volume_key_size, uint8_t *key, size_t key_size, libcerror_error_t **error ) { libfsapfs_key_bag_entry_t *bag_entry = NULL; libfsapfs_key_encrypted_key_t *key_encrypted_key = NULL; static char *function = "libfsapfs_container_key_bag_get_volume_master_key_by_identifier"; int entry_index = 0; int number_of_entries = 0; int result = 0; if( container_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container key bag.", function ); return( -1 ); } if( volume_identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume identifier.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( container_key_bag->entries_array, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); goto on_error; } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libcdata_array_get_entry_by_index( container_key_bag->entries_array, entry_index, (intptr_t **) &bag_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from array.", function, entry_index ); goto on_error; } if( bag_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing entry: %d.", function, entry_index ); goto on_error; } if( bag_entry->type != 2 ) { continue; } if( memory_compare( bag_entry->identifier, volume_identifier, 16 ) != 0 ) { continue; } if( libfsapfs_key_encrypted_key_initialize( &key_encrypted_key, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create key encrypted key.", function ); goto on_error; } if( libfsapfs_key_encrypted_key_read_data( key_encrypted_key, bag_entry->data, (size_t) bag_entry->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read key encrypted key.", function ); goto on_error; } result = libfsapfs_key_encrypted_key_unlock_with_key( key_encrypted_key, volume_key, volume_key_size, key, key_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to unlock key encrypted key with volume key.", function ); goto on_error; } if( libfsapfs_key_encrypted_key_free( &key_encrypted_key, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key encrypted key.", function ); goto on_error; } if( result == 1 ) { break; } } return( result ); on_error: if( key_encrypted_key != NULL ) { libfsapfs_key_encrypted_key_free( &key_encrypted_key, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/fsapfs_container_reaper.h0000664000175000017500000000341013426637445025043 0ustar00lordyestalordyesta00000000000000/* * The APFS container reaper definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_CONTAINER_REAPER_H ) #define _FSAPFS_CONTAINER_REAPER_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_container_reaper fsapfs_container_reaper_t; struct fsapfs_container_reaper { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown1[ 8 ]; /* TODO add more values */ }; /* TODO add more reaper list */ /* TODO add more reaper list entry */ #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_CONTAINER_REAPER_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_checkpoint_map.h0000664000175000017500000000477713426637445024530 0ustar00lordyestalordyesta00000000000000/* * The APFS checkpoint map definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_CHECKPOINT_MAP_H ) #define _FSAPFS_CHECKPOINT_MAP_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_checkpoint_map fsapfs_checkpoint_map_t; struct fsapfs_checkpoint_map { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* The flags * Consists of 4 bytes */ uint8_t flags[ 4 ]; /* The number of entries * Consists of 4 bytes */ uint8_t number_of_entries[ 4 ]; /* The entries array * Consists of 101 x 40 bytes */ uint8_t entries_array[ 4040 ]; }; typedef struct fsapfs_checkpoint_map_entry fsapfs_checkpoint_map_entry_t; struct fsapfs_checkpoint_map_entry { /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* The size * Consists of 4 bytes */ uint8_t size[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; /* The file system object identifier * Consists of 8 bytes */ uint8_t file_system_object_identifier[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The physical address * Consists of 8 bytes */ uint8_t physical_address[ 8 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_CHECKPOINT_MAP_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_key_bag_header.h0000664000175000017500000000332113426637446025125 0ustar00lordyestalordyesta00000000000000/* * The key bag header functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_KEY_BAG_HEADER_H ) #define _LIBFSAPFS_KEY_BAG_HEADER_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_key_bag_header libfsapfs_key_bag_header_t; struct libfsapfs_key_bag_header { /* The number of entries */ uint16_t number_of_entries; /* The data size */ uint32_t data_size; }; int libfsapfs_key_bag_header_initialize( libfsapfs_key_bag_header_t **key_bag_header, libcerror_error_t **error ); int libfsapfs_key_bag_header_free( libfsapfs_key_bag_header_t **key_bag_header, libcerror_error_t **error ); int libfsapfs_key_bag_header_read_data( libfsapfs_key_bag_header_t *key_bag_header, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_KEY_BAG_HEADER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_btree_footer.h0000664000175000017500000000351113426637446024674 0ustar00lordyestalordyesta00000000000000/* * The B-tree footer functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_BTREE_FOOTER_H ) #define _LIBFSAPFS_BTREE_FOOTER_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_btree_footer libfsapfs_btree_footer_t; struct libfsapfs_btree_footer { /* The node size */ uint32_t node_size; /* The key size */ uint32_t key_size; /* The value size */ uint32_t value_size; /* The maximum key size */ uint32_t maximum_key_size; /* The maximum value size */ uint32_t maximum_value_size; }; int libfsapfs_btree_footer_initialize( libfsapfs_btree_footer_t **btree_footer, libcerror_error_t **error ); int libfsapfs_btree_footer_free( libfsapfs_btree_footer_t **btree_footer, libcerror_error_t **error ); int libfsapfs_btree_footer_read_data( libfsapfs_btree_footer_t *btree_footer, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_BTREE_FOOTER_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_space_manager.c0000664000175000017500000004762213426637446025010 0ustar00lordyestalordyesta00000000000000/* * The space manager functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_space_manager.h" #include "fsapfs_space_manager.h" /* Creates a space manager * Make sure the value space_manager is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_space_manager_initialize( libfsapfs_space_manager_t **space_manager, libcerror_error_t **error ) { static char *function = "libfsapfs_space_manager_initialize"; if( space_manager == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid space manager.", function ); return( -1 ); } if( *space_manager != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid space manager value already set.", function ); return( -1 ); } *space_manager = memory_allocate_structure( libfsapfs_space_manager_t ); if( *space_manager == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create space manager.", function ); goto on_error; } if( memory_set( *space_manager, 0, sizeof( libfsapfs_space_manager_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear space manager.", function ); goto on_error; } return( 1 ); on_error: if( *space_manager != NULL ) { memory_free( *space_manager ); *space_manager = NULL; } return( -1 ); } /* Frees a space manager * Returns 1 if successful or -1 on error */ int libfsapfs_space_manager_free( libfsapfs_space_manager_t **space_manager, libcerror_error_t **error ) { static char *function = "libfsapfs_space_manager_free"; if( space_manager == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid space manager.", function ); return( -1 ); } if( *space_manager != NULL ) { memory_free( *space_manager ); *space_manager = NULL; } return( 1 ); } /* Reads the space manager * Returns 1 if successful or -1 on error */ int libfsapfs_space_manager_read_file_io_handle( libfsapfs_space_manager_t *space_manager, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { uint8_t space_manager_data[ 4096 ]; static char *function = "libfsapfs_space_manager_read_file_io_handle"; ssize_t read_count = 0; if( space_manager == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid space manager.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading space manager at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek space manager offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, space_manager_data, 4096, error ); if( read_count != (ssize_t) 4096 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read space manager data.", function ); return( -1 ); } if( libfsapfs_space_manager_read_data( space_manager, space_manager_data, 4096, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read space manager data.", function ); return( -1 ); } return( 1 ); } /* Reads the space manager * Returns 1 if successful or -1 on error */ int libfsapfs_space_manager_read_data( libfsapfs_space_manager_t *space_manager, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_space_manager_read_data"; uint32_t object_subtype = 0; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; uint16_t value_16bit = 0; #endif if( space_manager == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid space manager.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_space_manager_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: space manager data:\n", function ); libcnotify_print_data( data, data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->object_type, object_type ); if( object_type != 0x80000005UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->object_checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->block_size, value_32bit ); libcnotify_printf( "%s: block size\t\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->blocks_per_chunk, value_32bit ); libcnotify_printf( "%s: blocks per chunk\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->chunks_per_cib, value_32bit ); libcnotify_printf( "%s: chunks per CIB\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->cibs_per_cab, value_32bit ); libcnotify_printf( "%s: CIBs per CAB\t\t\t\t: %" PRIu32 "\n", function, value_32bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: main device\n", function ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->main_device_number_of_blocks, value_64bit ); libcnotify_printf( "%s: number of blocks\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->main_device_number_of_chunks, value_64bit ); libcnotify_printf( "%s: number of chunks\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->main_device_number_of_cibs, value_32bit ); libcnotify_printf( "%s: number of CIBs\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->main_device_number_of_cabs, value_32bit ); libcnotify_printf( "%s: number of CABs\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->main_device_number_of_unused_blocks, value_64bit ); libcnotify_printf( "%s: number of unused blocks\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->main_device_offset, value_32bit ); libcnotify_printf( "%s: offset\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown1, value_32bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown2, value_64bit ); libcnotify_printf( "%s: unknown2\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: tier2 device\n", function ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->tier2_device_number_of_blocks, value_64bit ); libcnotify_printf( "%s: number of blocks\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->tier2_device_number_of_chunks, value_64bit ); libcnotify_printf( "%s: number of chunks\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->tier2_device_number_of_cibs, value_32bit ); libcnotify_printf( "%s: number of CIBs\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->tier2_device_number_of_cabs, value_32bit ); libcnotify_printf( "%s: number of CABs\t\t\t: %" PRIu32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->tier2_device_number_of_unused_blocks, value_64bit ); libcnotify_printf( "%s: number of unused blocks\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->tier2_device_offset, value_32bit ); libcnotify_printf( "%s: offset\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown8, value_32bit ); libcnotify_printf( "%s: unknown8\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown9, value_64bit ); libcnotify_printf( "%s: unknown9\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->flags, value_32bit ); libcnotify_printf( "%s: flags\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown11, value_32bit ); libcnotify_printf( "%s: unknown11\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown12, value_64bit ); libcnotify_printf( "%s: unknown12\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown13, value_32bit ); libcnotify_printf( "%s: unknown13\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown14, value_32bit ); libcnotify_printf( "%s: unknown14\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown15, value_64bit ); libcnotify_printf( "%s: unknown15\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown16, value_64bit ); libcnotify_printf( "%s: unknown16\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown17, value_64bit ); libcnotify_printf( "%s: unknown17\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown18, value_64bit ); libcnotify_printf( "%s: unknown18\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: unknown free queue\n", function ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown19, value_64bit ); libcnotify_printf( "%s: unknown19\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown20, value_64bit ); libcnotify_printf( "%s: unknown20\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown21, value_64bit ); libcnotify_printf( "%s: unknown21\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown22, value_64bit ); libcnotify_printf( "%s: unknown22\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown23, value_64bit ); libcnotify_printf( "%s: unknown23\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: main free queue\n", function ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown24, value_64bit ); libcnotify_printf( "%s: unknown24\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown25, value_64bit ); libcnotify_printf( "%s: unknown25\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown26, value_64bit ); libcnotify_printf( "%s: unknown26\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown27, value_64bit ); libcnotify_printf( "%s: unknown27\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown28, value_64bit ); libcnotify_printf( "%s: unknown28\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); libcnotify_printf( "%s: tier2 free queue\n", function ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown29, value_64bit ); libcnotify_printf( "%s: unknown29\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown30, value_64bit ); libcnotify_printf( "%s: unknown30\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown31, value_64bit ); libcnotify_printf( "%s: unknown31\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown32, value_64bit ); libcnotify_printf( "%s: unknown32\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_space_manager_t *) data )->unknown33, value_64bit ); libcnotify_printf( "%s: unknown33\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_space_manager_t *) data )->unknown34, value_16bit ); libcnotify_printf( "%s: unknown34\t\t\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); byte_stream_copy_to_uint16_little_endian( ( (fsapfs_space_manager_t *) data )->unknown35, value_16bit ); libcnotify_printf( "%s: unknown35\t\t\t\t: 0x%04" PRIx16 "\n", function, value_16bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown36, value_32bit ); libcnotify_printf( "%s: unknown36\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown37, value_32bit ); libcnotify_printf( "%s: unknown37\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown38, value_32bit ); libcnotify_printf( "%s: unknown38\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown39, value_32bit ); libcnotify_printf( "%s: unknown39\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_space_manager_t *) data )->unknown40, value_32bit ); libcnotify_printf( "%s: unknown40\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "%s: unknown41:\n", function ); libcnotify_print_data( ( (fsapfs_space_manager_t *) data )->unknown41, 8 * 72, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); libcnotify_printf( "%s: unknown42:\n", function ); libcnotify_print_data( ( (fsapfs_space_manager_t *) data )->unknown42, 8 * 72, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ /* TODO read value at main device offset */ /* TODO read value at tier2 device offset */ return( 1 ); } libfsapfs-20190210/libfsapfs/fsapfs_btree.h0000664000175000017500000000704213426637445022631 0ustar00lordyestalordyesta00000000000000/* * The APFS B-tree definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_BTREE_H ) #define _FSAPFS_BTREE_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_btree_node_header fsapfs_btree_node_header_t; struct fsapfs_btree_node_header { /* The node flags * Consists of 2 bytes */ uint8_t flags[ 2 ]; /* The level * Consists of 2 bytes */ uint8_t level[ 2 ]; /* The number of keys * Consists of 4 bytes */ uint8_t number_of_keys[ 4 ]; /* The entries data offset * Consists of 2 bytes */ uint8_t entries_data_offset[ 2 ]; /* The entries data size * Consists of 2 bytes */ uint8_t entries_data_size[ 2 ]; /* The unused data offset * Consists of 2 bytes */ uint8_t unused_data_offset[ 2 ]; /* The unused data size * Consists of 2 bytes */ uint8_t unused_data_size[ 2 ]; /* The key free list offset * Consists of 2 bytes */ uint8_t key_free_list_offset[ 2 ]; /* The value free list size * Consists of 2 bytes */ uint8_t key_free_list_size[ 2 ]; /* The value free list offset * Consists of 2 bytes */ uint8_t value_free_list_offset[ 2 ]; /* The value free list size * Consists of 2 bytes */ uint8_t value_free_list_size[ 2 ]; }; typedef struct fsapfs_btree_fixed_size_entry fsapfs_btree_fixed_size_entry_t; struct fsapfs_btree_fixed_size_entry { /* The key data offset * Consists of 2 bytes */ uint8_t key_data_offset[ 2 ]; /* The value data offset * Consists of 2 bytes */ uint8_t value_data_offset[ 2 ]; }; typedef struct fsapfs_btree_variable_size_entry fsapfs_btree_variable_size_entry_t; struct fsapfs_btree_variable_size_entry { /* The key data offset * Consists of 2 bytes */ uint8_t key_data_offset[ 2 ]; /* The key data size * Consists of 2 bytes */ uint8_t key_data_size[ 2 ]; /* The value data offset * Consists of 2 bytes */ uint8_t value_data_offset[ 2 ]; /* The value data size * Consists of 2 bytes */ uint8_t value_data_size[ 2 ]; }; typedef struct fsapfs_btree_footer fsapfs_btree_footer_t; struct fsapfs_btree_footer { /* The flags * Consists of 4 bytes */ uint8_t flags[ 4 ]; /* The node size * Consists of 4 bytes */ uint8_t node_size[ 4 ]; /* The key size * Consists of 4 bytes */ uint8_t key_size[ 4 ]; /* The value size * Consists of 4 bytes */ uint8_t value_size[ 4 ]; /* The maximum key size * Consists of 4 bytes */ uint8_t maximum_key_size[ 4 ]; /* The maximum value size * Consists of 4 bytes */ uint8_t maximum_value_size[ 4 ]; /* The total number of keys * Consists of 8 bytes */ uint8_t total_number_of_keys[ 8 ]; /* The total number of nodes * Consists of 8 bytes */ uint8_t total_number_of_nodes[ 8 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_BTREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_container_data_handle.c0000664000175000017500000001734513426637446026510 0ustar00lordyestalordyesta00000000000000/* * The container data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_data_block.h" #include "libfsapfs_definitions.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfcache.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_profiler.h" #include "libfsapfs_unused.h" #include "libfsapfs_container_data_handle.h" /* Creates container data handle * Make sure the value container_data_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_container_data_handle_initialize( libfsapfs_container_data_handle_t **container_data_handle, libfsapfs_io_handle_t *io_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_container_data_handle_initialize"; if( container_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container data handle.", function ); return( -1 ); } if( *container_data_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container data handle value already set.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } *container_data_handle = memory_allocate_structure( libfsapfs_container_data_handle_t ); if( *container_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create container data handle.", function ); goto on_error; } if( memory_set( *container_data_handle, 0, sizeof( libfsapfs_container_data_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear container data handle.", function ); goto on_error; } ( *container_data_handle )->io_handle = io_handle; return( 1 ); on_error: if( *container_data_handle != NULL ) { memory_free( *container_data_handle ); *container_data_handle = NULL; } return( -1 ); } /* Frees container data handle * Returns 1 if successful or -1 on error */ int libfsapfs_container_data_handle_free( libfsapfs_container_data_handle_t **container_data_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_container_data_handle_free"; if( container_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container data handle.", function ); return( -1 ); } if( *container_data_handle != NULL ) { memory_free( *container_data_handle ); *container_data_handle = NULL; } return( 1 ); } /* Reads a data block * Callback function for a data block vector * Returns 1 if successful or -1 on error */ int libfsapfs_container_data_handle_read_data_block( libfsapfs_container_data_handle_t *container_data_handle, libbfio_handle_t *file_io_handle, libfdata_vector_t *vector, libfcache_cache_t *cache, int element_index, int element_data_file_index LIBFSAPFS_ATTRIBUTE_UNUSED, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags LIBFSAPFS_ATTRIBUTE_UNUSED, uint8_t read_flags LIBFSAPFS_ATTRIBUTE_UNUSED, libcerror_error_t **error ) { libfsapfs_data_block_t *data_block = NULL; static char *function = "libfsapfs_container_data_handle_read_data_block"; #if defined( HAVE_PROFILER ) int64_t profiler_start_timestamp = 0; #endif LIBFSAPFS_UNREFERENCED_PARAMETER( element_data_file_index ); LIBFSAPFS_UNREFERENCED_PARAMETER( element_data_flags ); LIBFSAPFS_UNREFERENCED_PARAMETER( read_flags ); if( container_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container data handle.", function ); return( -1 ); } if( container_data_handle->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid container data handle - missing IO handle.", function ); return( -1 ); } if( element_data_size > (size64_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid element data size value exceeds maximum.", function ); return( -1 ); } if( libfsapfs_data_block_initialize( &data_block, (size_t) element_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data block.", function ); goto on_error; } #if defined( HAVE_PROFILER ) if( container_data_handle->io_handle->profiler != NULL ) { if( libfsapfs_profiler_start_timing( container_data_handle->io_handle->profiler, &profiler_start_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to start timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfsapfs_data_block_read( data_block, container_data_handle->io_handle, NULL, file_io_handle, element_data_offset, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read data block.", function ); goto on_error; } #if defined( HAVE_PROFILER ) if( container_data_handle->io_handle->profiler != NULL ) { if( libfsapfs_profiler_stop_timing( container_data_handle->io_handle->profiler, profiler_start_timestamp, function, element_data_offset, element_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to stop timing.", function ); goto on_error; } } #endif /* defined( HAVE_PROFILER ) */ if( libfdata_vector_set_element_value_by_index( vector, (intptr_t *) file_io_handle, (libfdata_cache_t *) cache, element_index, (intptr_t *) data_block, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_data_block_free, LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data block as element value.", function ); goto on_error; } return( 1 ); on_error: if( data_block != NULL ) { libfsapfs_data_block_free( &data_block, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_deflate.h0000664000175000017500000000731513426637446023627 0ustar00lordyestalordyesta00000000000000/* * Deflate (zlib) (un)compression functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DEFLATE_COMPRESSION_H ) #define _LIBFSAPFS_DEFLATE_COMPRESSION_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif /* The block types */ enum LIBFSAPFS_DEFLATE_BLOCK_TYPES { LIBFSAPFS_DEFLATE_BLOCK_TYPE_UNCOMPRESSED = 0x00, LIBFSAPFS_DEFLATE_BLOCK_TYPE_HUFFMAN_FIXED = 0x01, LIBFSAPFS_DEFLATE_BLOCK_TYPE_HUFFMAN_DYNAMIC = 0x02, LIBFSAPFS_DEFLATE_BLOCK_TYPE_RESERVED = 0x03 }; typedef struct libfsapfs_deflate_bit_stream libfsapfs_deflate_bit_stream_t; struct libfsapfs_deflate_bit_stream { /* The byte stream */ const uint8_t *byte_stream; /* The byte stream size */ size_t byte_stream_size; /* The byte stream offset */ size_t byte_stream_offset; /* The bit buffer */ uint32_t bit_buffer; /* The number of bits remaining in the bit buffer */ uint8_t bit_buffer_size; }; typedef struct libfsapfs_deflate_huffman_table libfsapfs_deflate_huffman_table_t; struct libfsapfs_deflate_huffman_table { /* The maximum number of bits representable by the Huffman table */ uint8_t maximum_number_of_bits; /* TODO create initialize and set size? */ /* The codes array */ int codes_array[ 288 ]; /* The code counts array */ int code_counts_array[ 16 ]; /* The number of codes */ int number_of_codes; }; int libfsapfs_deflate_bit_stream_get_value( libfsapfs_deflate_bit_stream_t *bit_stream, uint8_t number_of_bits, uint32_t *value_32bit, libcerror_error_t **error ); int libfsapfs_deflate_huffman_table_construct( libfsapfs_deflate_huffman_table_t *table, const uint16_t *code_sizes_array, int number_of_code_sizes, libcerror_error_t **error ); int libfsapfs_deflate_bit_stream_get_huffman_encoded_value( libfsapfs_deflate_bit_stream_t *bit_stream, libfsapfs_deflate_huffman_table_t *table, uint32_t *value_32bit, libcerror_error_t **error ); int libfsapfs_deflate_bit_stream_get_huffman_encoded_value( libfsapfs_deflate_bit_stream_t *bit_stream, libfsapfs_deflate_huffman_table_t *table, uint32_t *value_32bit, libcerror_error_t **error ); int libfsapfs_deflate_bit_stream_get_huffman_encoded_codes_array( libfsapfs_deflate_bit_stream_t *bit_stream, libfsapfs_deflate_huffman_table_t *code_size_table, uint16_t *codes_array, uint32_t maximum_number_of_codes, uint32_t number_of_codes, libcerror_error_t **error ); int libfsapfs_deflate_calculate_adler32( uint32_t *checksum_value, const uint8_t *buffer, size_t size, uint32_t initial_value, libcerror_error_t **error ); int libfsapfs_deflate_decompress( const uint8_t *compressed_data, size_t compressed_data_size, uint8_t *uncompressed_data, size_t *uncompressed_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_DEFLATE_COMPRESSION_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_volume.c0000664000175000017500000027063713426637447023537 0ustar00lordyestalordyesta00000000000000/* * Volume functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include "libfsapfs_container_data_handle.h" #include "libfsapfs_container_key_bag.h" #include "libfsapfs_debug.h" #include "libfsapfs_definitions.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_extent_reference_tree.h" #include "libfsapfs_file_entry.h" #include "libfsapfs_file_system_btree.h" #include "libfsapfs_file_system_data_handle.h" #include "libfsapfs_inode.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libcthreads.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_libuna.h" #include "libfsapfs_object_map.h" #include "libfsapfs_object_map_btree.h" #include "libfsapfs_object_map_descriptor.h" #include "libfsapfs_snapshot_metadata.h" #include "libfsapfs_snapshot_metadata_tree.h" #include "libfsapfs_volume.h" #include "libfsapfs_volume_key_bag.h" #include "libfsapfs_volume_superblock.h" /* Creates a volume * Make sure the value volume is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_volume_initialize( libfsapfs_volume_t **volume, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, libfsapfs_container_key_bag_t *container_key_bag, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_initialize"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( *volume != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume value already set.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } internal_volume = memory_allocate_structure( libfsapfs_internal_volume_t ); if( internal_volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create volume.", function ); goto on_error; } if( memory_set( internal_volume, 0, sizeof( libfsapfs_internal_volume_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear volume.", function ); goto on_error; } /* TODO clone file_io_handle? */ internal_volume->io_handle = io_handle; internal_volume->file_io_handle = file_io_handle; internal_volume->container_key_bag = container_key_bag; internal_volume->is_locked = 1; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_initialize( &( internal_volume->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *volume = (libfsapfs_volume_t *) internal_volume; return( 1 ); on_error: if( internal_volume != NULL ) { memory_free( internal_volume ); } return( -1 ); } /* Frees a volume * Returns 1 if successful or -1 on error */ int libfsapfs_volume_free( libfsapfs_volume_t **volume, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_free"; int result = 1; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( *volume != NULL ) { internal_volume = (libfsapfs_internal_volume_t *) *volume; if( internal_volume->file_io_handle != NULL ) { if( libfsapfs_volume_close( *volume, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close volume.", function ); result = -1; } } *volume = NULL; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_free( &( internal_volume->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif memory_free( internal_volume ); } return( result ); } /* Signals the volume to abort its current activity * Returns 1 if successful or -1 on error */ int libfsapfs_volume_signal_abort( libfsapfs_volume_t *volume, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_signal_abort"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( internal_volume->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing IO handle.", function ); return( -1 ); } internal_volume->io_handle->abort = 1; return( 1 ); } /* Opens a volume * Returns 1 if successful or -1 on error */ int libfsapfs_volume_open( libfsapfs_volume_t *volume, const char *filename, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_open"; size_t filename_length = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); return( -1 ); } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libbfio_handle_set_track_offsets_read( file_io_handle, 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set track offsets read in file IO handle.", function ); goto on_error; } #endif filename_length = narrow_string_length( filename ); if( libbfio_file_set_name( file_io_handle, filename, filename_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } if( libfsapfs_volume_open_file_io_handle( volume, file_io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open volume: %s.", function, filename ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_volume->file_io_handle_created_in_library = 1; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Opens a volume * Returns 1 if successful or -1 on error */ int libfsapfs_volume_open_wide( libfsapfs_volume_t *volume, const wchar_t *filename, int access_flags, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_open_wide"; size_t filename_length = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); return( -1 ); } if( libbfio_file_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file IO handle.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libbfio_handle_set_track_offsets_read( file_io_handle, 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set track offsets read in file IO handle.", function ); goto on_error; } #endif filename_length = wide_string_length( filename ); if( libbfio_file_set_name_wide( file_io_handle, filename, filename_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set filename in file IO handle.", function ); goto on_error; } if( libfsapfs_volume_open_file_io_handle( volume, file_io_handle, access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open volume: %ls.", function, filename ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_volume->file_io_handle_created_in_library = 1; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ /* Opens a volume using a Basic File IO (bfio) handle * Returns 1 if successful or -1 on error */ int libfsapfs_volume_open_file_io_handle( libfsapfs_volume_t *volume, libbfio_handle_t *file_io_handle, int access_flags, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_open_file_io_handle"; int bfio_access_flags = 0; int file_io_handle_is_open = 0; int file_io_handle_opened_in_library = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( internal_volume->file_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - file IO handle value already set.", function ); return( -1 ); } if( file_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file IO handle.", function ); return( -1 ); } if( ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) == 0 ) && ( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); return( -1 ); } if( ( access_flags & LIBFSAPFS_ACCESS_FLAG_READ ) != 0 ) { bfio_access_flags = LIBBFIO_ACCESS_FLAG_READ; } file_io_handle_is_open = libbfio_handle_is_open( file_io_handle, error ); if( file_io_handle_is_open == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open volume.", function ); goto on_error; } else if( file_io_handle_is_open == 0 ) { if( libbfio_handle_open( file_io_handle, bfio_access_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open file IO handle.", function ); goto on_error; } file_io_handle_opened_in_library = 1; } if( libfsapfs_internal_volume_open_read( internal_volume, file_io_handle, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file IO handle.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif internal_volume->file_io_handle = file_io_handle; internal_volume->file_io_handle_opened_in_library = file_io_handle_opened_in_library; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( file_io_handle_opened_in_library != 0 ) { libbfio_handle_close( file_io_handle, error ); } return( -1 ); } /* Closes a volume * Returns 0 if successful or -1 on error */ int libfsapfs_volume_close( libfsapfs_volume_t *volume, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_close"; int result = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( internal_volume->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing IO handle.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( internal_volume->file_io_handle_created_in_library != 0 ) { if( libfsapfs_debug_print_read_offsets( internal_volume->file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print the read offsets.", function ); result = -1; } } } #endif if( internal_volume->file_io_handle_opened_in_library != 0 ) { if( libbfio_handle_close( internal_volume->file_io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close file IO handle.", function ); result = -1; } internal_volume->file_io_handle_opened_in_library = 0; } if( internal_volume->file_io_handle_created_in_library != 0 ) { if( libbfio_handle_free( &( internal_volume->file_io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file IO handle.", function ); result = -1; } internal_volume->file_io_handle_created_in_library = 0; } internal_volume->file_io_handle = NULL; internal_volume->is_locked = 1; if( internal_volume->user_password != NULL ) { if( memory_set( internal_volume->user_password, 0, internal_volume->user_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear user password.", function ); result = -1; } memory_free( internal_volume->user_password ); internal_volume->user_password = NULL; internal_volume->user_password_size = 0; } if( internal_volume->recovery_password != NULL ) { if( memory_set( internal_volume->recovery_password, 0, internal_volume->recovery_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear recovery password.", function ); result = -1; } memory_free( internal_volume->recovery_password ); internal_volume->recovery_password = NULL; internal_volume->recovery_password_size = 0; } if( internal_volume->superblock != NULL ) { if( libfsapfs_volume_superblock_free( &( internal_volume->superblock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free superblock.", function ); result = -1; } } if( libfdata_vector_free( &( internal_volume->container_data_block_vector ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free container data block vector.", function ); result = -1; } if( internal_volume->object_map_btree != NULL ) { if( libfsapfs_object_map_btree_free( &( internal_volume->object_map_btree ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object map B-tree.", function ); result = -1; } } if( internal_volume->snapshot_metadata_tree != NULL ) { if( libfsapfs_snapshot_metadata_tree_free( &( internal_volume->snapshot_metadata_tree ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free snapshot metadata tree.", function ); result = -1; } } if( internal_volume->key_bag != NULL ) { if( libfsapfs_volume_key_bag_free( &( internal_volume->key_bag ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key bag.", function ); result = -1; } } if( internal_volume->encryption_context != NULL ) { if( libfsapfs_encryption_context_free( &( internal_volume->encryption_context ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free encryption context.", function ); result = -1; } } if( libfdata_vector_free( &( internal_volume->file_system_data_block_vector ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file system data block vector.", function ); result = -1; } if( internal_volume->file_system_btree != NULL ) { if( libfsapfs_file_system_btree_free( &( internal_volume->file_system_btree ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file system B-tree.", function ); result = -1; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Opens a volume for reading * Returns 1 if successful or -1 on error */ int libfsapfs_internal_volume_open_read( libfsapfs_internal_volume_t *internal_volume, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { libfsapfs_container_data_handle_t *container_data_handle = NULL; libfsapfs_file_system_data_handle_t *file_system_data_handle = NULL; libfsapfs_object_map_t *object_map = NULL; static char *function = "libfsapfs_internal_volume_open_read"; uint64_t key_bag_block_number = 0; uint64_t key_bag_number_of_blocks = 0; int element_index = 0; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) libfsapfs_extent_reference_tree_t *extent_reference_tree = NULL; #endif if( internal_volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( internal_volume->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing IO handle.", function ); return( -1 ); } if( internal_volume->superblock != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - superblock map value already set.", function ); return( -1 ); } if( internal_volume->container_data_block_vector != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - container data block vector value already set.", function ); return( -1 ); } if( internal_volume->object_map_btree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - object map B-tree value already set.", function ); return( -1 ); } if( internal_volume->snapshot_metadata_tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - snapshot metadata tree value already set.", function ); return( -1 ); } if( internal_volume->key_bag != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - key bag value already set.", function ); return( -1 ); } if( internal_volume->encryption_context != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - encryption context value already set.", function ); return( -1 ); } if( internal_volume->file_system_data_block_vector != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume - file system data block vector value already set.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading volume superblock:\n" ); } #endif if( libfsapfs_volume_superblock_initialize( &( internal_volume->superblock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create volume superblock.", function ); goto on_error; } if( libfsapfs_volume_superblock_read_file_io_handle( internal_volume->superblock, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read volume superblock at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( libfsapfs_container_data_handle_initialize( &container_data_handle, internal_volume->io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create container data handle.", function ); goto on_error; } if( libfdata_vector_initialize( &( internal_volume->container_data_block_vector ), (size64_t) internal_volume->io_handle->block_size, (intptr_t *) container_data_handle, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_container_data_handle_free, NULL, (int (*)(intptr_t *, intptr_t *, libfdata_vector_t *, libfdata_cache_t *, int, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libfsapfs_container_data_handle_read_data_block, NULL, LIBFDATA_DATA_HANDLE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create container data block vector.", function ); goto on_error; } internal_volume->container_data_handle = container_data_handle; container_data_handle = NULL; if( libfdata_vector_append_segment( internal_volume->container_data_block_vector, &element_index, 0, 0, internal_volume->io_handle->container_size, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment to container data block vector.", function ); goto on_error; } /* TODO refactor into function to read object map */ if( internal_volume->superblock->object_map_block_number == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing object map block number.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading object map:\n" ); } #endif file_offset = internal_volume->superblock->object_map_block_number * internal_volume->io_handle->block_size; if( libfsapfs_object_map_initialize( &object_map, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create object map.", function ); goto on_error; } if( libfsapfs_object_map_read_file_io_handle( object_map, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object map at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( object_map->btree_block_number == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing object map B-tree block number.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "Reading object map B-tree:\n" ); } #endif if( libfsapfs_object_map_btree_initialize( &( internal_volume->object_map_btree ), internal_volume->io_handle, internal_volume->container_data_block_vector, object_map->btree_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create object map B-tree.", function ); goto on_error; } if( libfsapfs_object_map_free( &object_map, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object map.", function ); goto on_error; } internal_volume->is_locked = 0; if( ( internal_volume->container_key_bag != NULL ) && ( ( internal_volume->superblock->volume_flags & 0x00000001UL ) == 0 ) ) { result = libfsapfs_container_key_bag_get_volume_key_bag_extent_by_identifier( internal_volume->container_key_bag, internal_volume->superblock->volume_identifier, &key_bag_block_number, &key_bag_number_of_blocks, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume key bag extent.", function ); goto on_error; } else if( result != 0 ) { if( ( key_bag_block_number == 0 ) || ( key_bag_number_of_blocks == 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid volume key bag extent.", function ); goto on_error; } if( libfsapfs_volume_key_bag_initialize( &( internal_volume->key_bag ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create volume key bag.", function ); goto on_error; } file_offset = key_bag_block_number * internal_volume->io_handle->block_size; if( libfsapfs_volume_key_bag_read_file_io_handle( internal_volume->key_bag, internal_volume->io_handle, file_io_handle, file_offset, (size64_t) key_bag_number_of_blocks * internal_volume->io_handle->block_size, internal_volume->superblock->volume_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read volume key bag at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( libfsapfs_encryption_context_initialize( &( internal_volume->encryption_context ), LIBFSAPFS_ENCRYPTION_METHOD_AES_128_XTS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize encryption context.", function ); goto on_error; } internal_volume->is_locked = 1; } } #if defined( HAVE_DEBUG_OUTPUT ) if( internal_volume->superblock->extent_reference_tree_block_number != 0 ) { if( libfsapfs_extent_reference_tree_initialize( &extent_reference_tree, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create extent reference tree.", function ); goto on_error; } file_offset = internal_volume->superblock->extent_reference_tree_block_number * internal_volume->io_handle->block_size; if( libfsapfs_extent_reference_tree_read_file_io_handle( extent_reference_tree, file_io_handle, file_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read extent reference tree at offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } if( libfsapfs_extent_reference_tree_free( &extent_reference_tree, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free extent reference tree.", function ); goto on_error; } } if( internal_volume->superblock->snapshot_metadata_tree_block_number != 0 ) { if( libfsapfs_snapshot_metadata_tree_initialize( &( internal_volume->snapshot_metadata_tree ), internal_volume->io_handle, internal_volume->container_data_block_vector, internal_volume->superblock->snapshot_metadata_tree_block_number, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create snapshot metadata tree.", function ); goto on_error; } /* TODO free snapshot metadata */ libfsapfs_snapshot_metadata_t *snapshot_metadata = NULL; if( libfsapfs_snapshot_metadata_tree_get_metadata_by_object_identifier( internal_volume->snapshot_metadata_tree, internal_volume->file_io_handle, 10000, &snapshot_metadata, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve snapshot metadata for object identifier: %" PRIu64 ".", function, 10000 ); goto on_error; } } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( internal_volume->superblock->file_system_root_object_identifier == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file system root object identifier - value out of bounds.", function ); goto on_error; } if( libfsapfs_file_system_data_handle_initialize( &file_system_data_handle, internal_volume->io_handle, internal_volume->encryption_context, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file system data handle.", function ); goto on_error; } if( libfdata_vector_initialize( &( internal_volume->file_system_data_block_vector ), (size64_t) internal_volume->io_handle->block_size, (intptr_t *) file_system_data_handle, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_system_data_handle_free, NULL, (int (*)(intptr_t *, intptr_t *, libfdata_vector_t *, libfdata_cache_t *, int, int, off64_t, size64_t, uint32_t, uint8_t, libcerror_error_t **)) &libfsapfs_file_system_data_handle_read_data_block, NULL, LIBFDATA_DATA_HANDLE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file system data block vector.", function ); goto on_error; } internal_volume->file_system_data_handle = file_system_data_handle; file_system_data_handle = NULL; if( libfdata_vector_append_segment( internal_volume->file_system_data_block_vector, &element_index, 0, 0, internal_volume->io_handle->container_size, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment to file system data block vector.", function ); goto on_error; } return( 1 ); on_error: if( internal_volume->file_system_data_block_vector != NULL ) { libfdata_vector_free( &( internal_volume->file_system_data_block_vector ), NULL ); } if( file_system_data_handle != NULL ) { libfsapfs_file_system_data_handle_free( &file_system_data_handle, NULL ); } if( internal_volume->encryption_context != NULL ) { libfsapfs_encryption_context_free( &( internal_volume->encryption_context ), NULL ); } if( internal_volume->key_bag != NULL ) { libfsapfs_volume_key_bag_free( &( internal_volume->key_bag ), NULL ); } if( internal_volume->snapshot_metadata_tree != NULL ) { libfsapfs_snapshot_metadata_tree_free( &( internal_volume->snapshot_metadata_tree ), NULL ); } #if defined( HAVE_DEBUG_OUTPUT ) if( extent_reference_tree != NULL ) { libfsapfs_extent_reference_tree_free( &extent_reference_tree, NULL ); } #endif if( internal_volume->object_map_btree != NULL ) { libfsapfs_object_map_btree_free( &( internal_volume->object_map_btree ), NULL ); } if( object_map != NULL ) { libfsapfs_object_map_free( &object_map, NULL ); } if( internal_volume->container_data_block_vector != NULL ) { libfdata_vector_free( &( internal_volume->container_data_block_vector ), NULL ); } if( container_data_handle != NULL ) { libfsapfs_container_data_handle_free( &container_data_handle, NULL ); } if( internal_volume->superblock != NULL ) { libfsapfs_volume_superblock_free( &( internal_volume->superblock ), NULL ); } return( -1 ); } /* Unlocks an encrypted volume * Returns 1 if the volume is unlocked, 0 if not or -1 on error */ int libfsapfs_internal_volume_unlock( libfsapfs_internal_volume_t *internal_volume, libcerror_error_t **error ) { uint8_t volume_key[ 32 ]; uint8_t volume_master_key[ 32 ]; static char *function = "libfsapfs_internal_volume_unlock"; int result = 0; if( internal_volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( internal_volume->superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing superblock.", function ); return( -1 ); } if( internal_volume->key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing key bag.", function ); return( -1 ); } result = libfsapfs_volume_key_bag_get_volume_key( internal_volume->key_bag, internal_volume->user_password, internal_volume->user_password_size - 1, internal_volume->recovery_password, internal_volume->recovery_password_size - 1, volume_key, 256, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume key using password.", function ); goto on_error; } else if( result != 0 ) { if( libfsapfs_container_key_bag_get_volume_master_key_by_identifier( internal_volume->container_key_bag, internal_volume->superblock->volume_identifier, volume_key, 256, volume_master_key, 256, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume master key.", function ); goto on_error; } memory_set( volume_key, 0, 32 ); if( libfsapfs_encryption_context_set_keys( internal_volume->encryption_context, volume_master_key, 16, &( volume_master_key[ 16 ] ), 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set keys in encryption context.", function ); goto on_error; } memory_set( volume_master_key, 0, 32 ); } if( result != 0 ) { internal_volume->is_locked = 0; } return( result ); on_error: memory_set( volume_master_key, 0, 32 ); memory_set( volume_key, 0, 32 ); return( -1 ); } /* Unlocks the volume * Returns 1 if the volume is unlocked, 0 if not or -1 on error */ int libfsapfs_volume_unlock( libfsapfs_volume_t *volume, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_unlock"; int result = 1; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->is_locked != 0 ) { result = libfsapfs_internal_volume_unlock( internal_volume, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to unlock volume.", function ); result = -1; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the size * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_size( libfsapfs_volume_t *volume, size64_t *size, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_size"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( internal_volume->superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing superblock.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif /* TODO implement */ *size = (size64_t) 0; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( -1 ); } /* Retrieves the identifier * The identifier is an UUID stored in big-endian and is 16 bytes of size * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_identifier( libfsapfs_volume_t *volume, uint8_t *uuid_data, size_t uuid_data_size, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_identifier"; int result = 1; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( internal_volume->superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing superblock.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_volume_superblock_get_volume_identifier( internal_volume->superblock, uuid_data, uuid_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume identifier.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_utf8_name_size( libfsapfs_volume_t *volume, size_t *utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_utf8_name_size"; int result = 1; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_volume_superblock_get_utf8_volume_name_size( internal_volume->superblock, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the UTF-8 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_utf8_name( libfsapfs_volume_t *volume, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_utf8_name"; int result = 1; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_volume_superblock_get_utf8_volume_name( internal_volume->superblock, utf8_string, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_utf16_name_size( libfsapfs_volume_t *volume, size_t *utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_utf16_name_size"; int result = 1; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_volume_superblock_get_utf16_volume_name_size( internal_volume->superblock, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the UTF-16 encoded name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_utf16_name( libfsapfs_volume_t *volume, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_utf16_name"; int result = 1; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_volume_superblock_get_utf16_volume_name( internal_volume->superblock, utf16_string, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Determines if the volume is locked * Returns 1 if locked, 0 if not or -1 on error */ int libfsapfs_volume_is_locked( libfsapfs_volume_t *volume, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_is_locked"; uint8_t is_locked = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif is_locked = internal_volume->is_locked; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( is_locked ); } /* Sets an UTF-8 formatted password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if password is invalid or -1 on error */ int libfsapfs_volume_set_utf8_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_set_utf8_password"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->user_password != NULL ) { if( memory_set( internal_volume->user_password, 0, internal_volume->user_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear user password.", function ); goto on_error; } memory_free( internal_volume->user_password ); internal_volume->user_password = NULL; internal_volume->user_password_size = 0; } internal_volume->user_password_size = 1 + narrow_string_length( (char *) utf8_string ); internal_volume->user_password = (uint8_t *) memory_allocate( sizeof( uint8_t ) * internal_volume->user_password_size ); if( internal_volume->user_password == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to create user password.", function ); goto on_error; } if( memory_copy( internal_volume->user_password, utf8_string, utf8_string_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy user password.", function ); goto on_error; } internal_volume->user_password[ internal_volume->user_password_size - 1 ] = 0; internal_volume->user_password_is_set = 1; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: user password: %s\n", function, internal_volume->user_password ); } #endif #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( internal_volume->user_password != NULL ) { memory_set( internal_volume->user_password, 0, internal_volume->user_password_size ); memory_free( internal_volume->user_password ); internal_volume->user_password = NULL; } internal_volume->user_password_size = 0; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } /* Sets an UTF-16 formatted password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if password is invalid or -1 on error */ int libfsapfs_volume_set_utf16_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_set_utf16_password"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->user_password != NULL ) { if( memory_set( internal_volume->user_password, 0, internal_volume->user_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear user password.", function ); goto on_error; } memory_free( internal_volume->user_password ); internal_volume->user_password = NULL; internal_volume->user_password_size = 0; } if( libuna_utf8_string_size_from_utf16( utf16_string, utf16_string_length, &( internal_volume->user_password_size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set password size.", function ); goto on_error; } internal_volume->user_password_size += 1; internal_volume->user_password = (uint8_t *) memory_allocate( sizeof( uint8_t ) * internal_volume->user_password_size ); if( internal_volume->user_password == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to create user password.", function ); goto on_error; } if( libuna_utf8_string_copy_from_utf16( internal_volume->user_password, internal_volume->user_password_size, utf16_string, utf16_string_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy user password.", function ); goto on_error; } internal_volume->user_password[ internal_volume->user_password_size - 1 ] = 0; internal_volume->user_password_is_set = 1; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: user password: %s\n", function, internal_volume->user_password ); } #endif #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( internal_volume->user_password != NULL ) { memory_set( internal_volume->user_password, 0, internal_volume->user_password_size ); memory_free( internal_volume->user_password ); internal_volume->user_password = NULL; } internal_volume->user_password_size = 0; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } /* Sets an UTF-8 formatted recovery password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if recovery password is invalid or -1 on error */ int libfsapfs_volume_set_utf8_recovery_password( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_set_utf8_recovery_password"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->recovery_password != NULL ) { if( memory_set( internal_volume->recovery_password, 0, internal_volume->recovery_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear recovery password.", function ); goto on_error; } memory_free( internal_volume->recovery_password ); internal_volume->recovery_password = NULL; internal_volume->recovery_password_size = 0; } internal_volume->recovery_password_size = 1 + narrow_string_length( (char *) utf8_string ); internal_volume->recovery_password = (uint8_t *) memory_allocate( sizeof( uint8_t ) * internal_volume->recovery_password_size ); if( internal_volume->recovery_password == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to create recovery password.", function ); goto on_error; } if( memory_copy( internal_volume->recovery_password, utf8_string, utf8_string_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy recovery password.", function ); goto on_error; } internal_volume->recovery_password[ internal_volume->recovery_password_size - 1 ] = 0; internal_volume->recovery_password_is_set = 1; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: recovery password: %s\n", function, internal_volume->recovery_password ); } #endif #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( internal_volume->recovery_password != NULL ) { memory_set( internal_volume->recovery_password, 0, internal_volume->recovery_password_size ); memory_free( internal_volume->recovery_password ); internal_volume->recovery_password = NULL; } internal_volume->recovery_password_size = 0; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } /* Sets an UTF-16 formatted recovery password * This function needs to be used before one of the open or unlock functions * Returns 1 if successful, 0 if recovery password is invalid or -1 on error */ int libfsapfs_volume_set_utf16_recovery_password( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_set_utf16_recovery_password"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->recovery_password != NULL ) { if( memory_set( internal_volume->recovery_password, 0, internal_volume->recovery_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear recovery password.", function ); goto on_error; } memory_free( internal_volume->recovery_password ); internal_volume->recovery_password = NULL; internal_volume->recovery_password_size = 0; } if( libuna_utf8_string_size_from_utf16( utf16_string, utf16_string_length, &( internal_volume->recovery_password_size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set password size.", function ); goto on_error; } internal_volume->recovery_password_size += 1; internal_volume->recovery_password = (uint8_t *) memory_allocate( sizeof( uint8_t ) * internal_volume->recovery_password_size ); if( internal_volume->recovery_password == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to create recovery password.", function ); goto on_error; } if( libuna_utf8_string_copy_from_utf16( internal_volume->recovery_password, internal_volume->recovery_password_size, utf16_string, utf16_string_length, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy recovery password.", function ); goto on_error; } internal_volume->recovery_password[ internal_volume->recovery_password_size - 1 ] = 0; internal_volume->recovery_password_is_set = 1; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: recovery password: %s\n", function, internal_volume->recovery_password ); } #endif #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( internal_volume->recovery_password != NULL ) { memory_set( internal_volume->recovery_password, 0, internal_volume->recovery_password_size ); memory_free( internal_volume->recovery_password ); internal_volume->recovery_password = NULL; } internal_volume->recovery_password_size = 0; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the next file entry identifier * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_next_file_entry_identifier( libfsapfs_volume_t *volume, uint64_t *identifier, libcerror_error_t **error ) { libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_next_file_entry_identifier"; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( identifier == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid identifier.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *identifier = internal_volume->superblock->next_file_system_object_identifier; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Determines the file system B-tree * Returns 1 if successful or -1 on error */ int libfsapfs_internal_volume_get_file_system_btree( libfsapfs_internal_volume_t *internal_volume, libcerror_error_t **error ) { libfsapfs_object_map_descriptor_t *object_map_descriptor = NULL; static char *function = "libfsapfs_internal_volume_get_file_system_btree"; uint8_t use_case_folding = 0; if( internal_volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( internal_volume->superblock == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid volume - missing superblock.", function ); return( -1 ); } if( internal_volume->is_locked != 0 ) { if( libfsapfs_internal_volume_unlock( internal_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to unlock volume.", function ); goto on_error; } } if( libfsapfs_object_map_btree_get_descriptor_by_object_identifier( internal_volume->object_map_btree, internal_volume->file_io_handle, internal_volume->superblock->file_system_root_object_identifier, &object_map_descriptor, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve object map descriptor for file system root object identifier: %" PRIu64 ".", function, internal_volume->superblock->file_system_root_object_identifier ); goto on_error; } if( object_map_descriptor == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid object map descriptor.", function ); goto on_error; } if( ( internal_volume->superblock->incompatibility_features_flags & 0x00000000000000001 ) != 0 ) { use_case_folding = 1; } if( libfsapfs_file_system_btree_initialize( &( internal_volume->file_system_btree ), internal_volume->io_handle, internal_volume->encryption_context, internal_volume->file_system_data_block_vector, internal_volume->object_map_btree, object_map_descriptor->physical_address, use_case_folding, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file system B-tree.", function ); goto on_error; } if( libfsapfs_object_map_descriptor_free( &object_map_descriptor, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free object map descriptor.", function ); goto on_error; } return( 1 ); on_error: if( object_map_descriptor != NULL ) { libfsapfs_object_map_descriptor_free( &object_map_descriptor, NULL ); } if( internal_volume->file_system_btree != NULL ) { libfsapfs_file_system_btree_free( &( internal_volume->file_system_btree ), NULL ); } return( -1 ); } /* Retrieves a specific file entry * Returns 1 if successful, 0 if not available or -1 on error */ int libfsapfs_volume_get_file_entry_by_identifier( libfsapfs_volume_t *volume, uint64_t identifier, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ) { libfsapfs_inode_t *inode = NULL; libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_file_entry_by_identifier"; int result = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->file_system_btree == NULL ) { if( libfsapfs_internal_volume_get_file_system_btree( internal_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file system B-tree.", function ); goto on_error; } } result = libfsapfs_file_system_btree_get_inode_by_identifier( internal_volume->file_system_btree, internal_volume->file_io_handle, identifier, &inode, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode: %" PRIu64 " from file system B-tree.", function, identifier ); goto on_error; } else if( result != 0 ) { if( libfsapfs_file_entry_initialize( file_entry, internal_volume->io_handle, internal_volume->file_io_handle, internal_volume->encryption_context, internal_volume->file_system_btree, inode, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file entry.", function ); goto on_error; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the root directory file entry * Returns 1 if successful or -1 on error */ int libfsapfs_volume_get_root_directory( libfsapfs_volume_t *volume, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ) { libfsapfs_inode_t *inode = NULL; libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_root_directory"; int result = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->file_system_btree == NULL ) { if( libfsapfs_internal_volume_get_file_system_btree( internal_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file system B-tree.", function ); goto on_error; } } result = libfsapfs_file_system_btree_get_inode_by_identifier( internal_volume->file_system_btree, internal_volume->file_io_handle, 2, &inode, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve root directory inode from file system B-tree.", function ); goto on_error; } /* TODO return 0 if no root directory inode */ if( libfsapfs_file_entry_initialize( file_entry, internal_volume->io_handle, internal_volume->file_io_handle, internal_volume->encryption_context, internal_volume->file_system_btree, inode, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file entry.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the file entry for an UTF-8 encoded path * Returns 1 if successful, 0 if no such file entry or -1 on error */ int libfsapfs_volume_get_file_entry_by_utf8_path( libfsapfs_volume_t *volume, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ) { libfsapfs_directory_record_t *directory_record = NULL; libfsapfs_inode_t *inode = NULL; libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_file_entry_by_utf8_path"; int result = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->file_system_btree == NULL ) { if( libfsapfs_internal_volume_get_file_system_btree( internal_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file system B-tree.", function ); goto on_error; } } result = libfsapfs_file_system_btree_get_inode_by_utf8_path( internal_volume->file_system_btree, internal_volume->file_io_handle, 2, utf8_string, utf8_string_length, &inode, &directory_record, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode from file system B-tree.", function ); goto on_error; } else if( result != 0 ) { if( libfsapfs_file_entry_initialize( file_entry, internal_volume->io_handle, internal_volume->file_io_handle, internal_volume->encryption_context, internal_volume->file_system_btree, inode, directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file entry.", function ); goto on_error; } inode = NULL; directory_record = NULL; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: if( *file_entry != NULL ) { libfsapfs_file_entry_free( file_entry, NULL ); } if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the file entry for an UTF-16 encoded path * Returns 1 if successful, 0 if no such file entry or -1 on error */ int libfsapfs_volume_get_file_entry_by_utf16_path( libfsapfs_volume_t *volume, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ) { libfsapfs_directory_record_t *directory_record = NULL; libfsapfs_inode_t *inode = NULL; libfsapfs_internal_volume_t *internal_volume = NULL; static char *function = "libfsapfs_volume_get_file_entry_by_utf16_path"; int result = 0; if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } internal_volume = (libfsapfs_internal_volume_t *) volume; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_volume->file_system_btree == NULL ) { if( libfsapfs_internal_volume_get_file_system_btree( internal_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file system B-tree.", function ); goto on_error; } } result = libfsapfs_file_system_btree_get_inode_by_utf16_path( internal_volume->file_system_btree, internal_volume->file_io_handle, 2, utf16_string, utf16_string_length, &inode, &directory_record, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode from file system B-tree.", function ); goto on_error; } else if( result != 0 ) { if( libfsapfs_file_entry_initialize( file_entry, internal_volume->io_handle, internal_volume->file_io_handle, internal_volume->encryption_context, internal_volume->file_system_btree, inode, directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file entry.", function ); goto on_error; } inode = NULL; directory_record = NULL; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: if( *file_entry != NULL ) { libfsapfs_file_entry_free( file_entry, NULL ); } if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_volume->read_write_lock, NULL ); #endif return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_volume_key_bag.c0000664000175000017500000005126713426637447025214 0ustar00lordyestalordyesta00000000000000/* * The volume key bag functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_definitions.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_key_bag_entry.h" #include "libfsapfs_key_bag_header.h" #include "libfsapfs_key_encrypted_key.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_volume_key_bag.h" #include "fsapfs_key_bag.h" #include "fsapfs_object.h" /* Creates a volume key bag * Make sure the value volume_key_bag is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_volume_key_bag_initialize( libfsapfs_volume_key_bag_t **volume_key_bag, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_key_bag_initialize"; if( volume_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume key bag.", function ); return( -1 ); } if( *volume_key_bag != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume key bag value already set.", function ); return( -1 ); } *volume_key_bag = memory_allocate_structure( libfsapfs_volume_key_bag_t ); if( *volume_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create volume key bag.", function ); goto on_error; } if( memory_set( *volume_key_bag, 0, sizeof( libfsapfs_volume_key_bag_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear volume key bag.", function ); memory_free( *volume_key_bag ); *volume_key_bag = NULL; return( -1 ); } if( libcdata_array_initialize( &( ( *volume_key_bag )->entries_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create entries array.", function ); goto on_error; } return( 1 ); on_error: if( *volume_key_bag != NULL ) { memory_free( *volume_key_bag ); *volume_key_bag = NULL; } return( -1 ); } /* Frees a volume key bag * Returns 1 if successful or -1 on error */ int libfsapfs_volume_key_bag_free( libfsapfs_volume_key_bag_t **volume_key_bag, libcerror_error_t **error ) { static char *function = "libfsapfs_volume_key_bag_free"; int result = 1; if( volume_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume key bag.", function ); return( -1 ); } if( *volume_key_bag != NULL ) { if( libcdata_array_free( &( ( *volume_key_bag )->entries_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_key_bag_entry_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free entries array.", function ); result = -1; } memory_free( *volume_key_bag ); *volume_key_bag = NULL; } return( result ); } /* Reads the volume key bag * Returns 1 if successful or -1 on error */ int libfsapfs_volume_key_bag_read_file_io_handle( libfsapfs_volume_key_bag_t *volume_key_bag, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, off64_t file_offset, size64_t data_size, const uint8_t *volume_identifier, libcerror_error_t **error ) { libfsapfs_encryption_context_t *encryption_context = NULL; uint8_t *data = NULL; uint8_t *encrypted_data = NULL; static char *function = "libfsapfs_volume_key_bag_read_file_io_handle"; ssize_t read_count = 0; if( volume_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume key bag.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } if( io_handle->bytes_per_sector == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid IO handle - missing bytes per sector.", function ); return( -1 ); } if( data_size > (size64_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid volume key bag size value out of bounds.", function ); return( -1 ); } encrypted_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * data_size ); if( encrypted_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create enrypted data.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading volume key bag data at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek encrypted data offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); goto on_error; } read_count = libbfio_handle_read_buffer( file_io_handle, encrypted_data, (size_t) data_size, error ); if( read_count != (ssize_t) data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read encrypted data.", function ); goto on_error; } data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * data_size ); if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data.", function ); goto on_error; } if( libfsapfs_encryption_context_initialize( &encryption_context, LIBFSAPFS_ENCRYPTION_METHOD_AES_128_XTS, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize encryption context.", function ); goto on_error; } if( libfsapfs_encryption_context_set_keys( encryption_context, volume_identifier, 16, volume_identifier, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set keys in encryption context.", function ); goto on_error; } if( libfsapfs_encryption_context_crypt( encryption_context, LIBCAES_CRYPT_MODE_DECRYPT, encrypted_data, data_size, data, data_size, (uint64_t) ( file_offset / io_handle->bytes_per_sector ), io_handle->bytes_per_sector, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_DECRYPT_FAILED, "%s: unable to decrypt data.", function ); goto on_error; } if( libfsapfs_encryption_context_free( &encryption_context, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free encryption context.", function ); goto on_error; } memory_free( encrypted_data ); encrypted_data = NULL; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unencrypted volume key bag data:\n", function ); libcnotify_print_data( data, (size_t) data_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif if( libfsapfs_volume_key_bag_read_data( volume_key_bag, data, (size_t) data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read volume key bag.", function ); goto on_error; } memory_free( data ); return( 1 ); on_error: if( encryption_context != NULL ) { libfsapfs_encryption_context_free( &encryption_context, NULL ); } if( data != NULL ) { memory_free( data ); } if( encrypted_data != NULL ) { memory_free( encrypted_data ); } return( -1 ); } /* Reads the volume key bag * Returns 1 if successful or -1 on error */ int libfsapfs_volume_key_bag_read_data( libfsapfs_volume_key_bag_t *volume_key_bag, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { libfsapfs_key_bag_entry_t *bag_entry = NULL; libfsapfs_key_bag_header_t *bag_header = NULL; static char *function = "libfsapfs_volume_key_bag_read_data"; size_t alignment_padding_size = 0; size_t data_offset = 0; uint64_t object_subtype = 0; uint64_t object_type = 0; uint16_t bag_entry_index = 0; int entry_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( volume_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume key bag.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_object_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: volume key bag object data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_object_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->type, object_type ); if( object_type != 0x72656373 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); goto on_error; } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_t *) data )->subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_t *) data )->transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ data_offset = sizeof( fsapfs_object_t ); if( libfsapfs_key_bag_header_initialize( &bag_header, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create key bag header.", function ); goto on_error; } if( libfsapfs_key_bag_header_read_data( bag_header, &( data[ data_offset ] ), data_size - data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read key bag header.", function ); goto on_error; } if( (size_t) bag_header->data_size > ( data_size - data_offset ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid key bag header data size value out of bounds.", function ); goto on_error; } /* TODO bounds check number of entries ? */ data_offset += 16; for( bag_entry_index = 0; bag_entry_index < bag_header->number_of_entries; bag_entry_index++ ) { if( libfsapfs_key_bag_entry_initialize( &bag_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create key bag entry: %" PRIu16 ".", function, bag_entry_index ); goto on_error; } if( libfsapfs_key_bag_entry_read_data( bag_entry, &( data[ data_offset ] ), data_size - data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read key bag entry: %" PRIu16 ".", function, bag_entry_index ); goto on_error; } if( libcdata_array_append_entry( volume_key_bag->entries_array, &entry_index, (intptr_t *) bag_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append bag entry: %" PRIu32 " to array.", function, bag_entry_index ); goto on_error; } data_offset += bag_entry->size; bag_entry = NULL; alignment_padding_size = data_offset % 16; if( alignment_padding_size != 0 ) { alignment_padding_size = 16 - alignment_padding_size; if( ( alignment_padding_size > data_size ) || ( data_offset > ( data_size - alignment_padding_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: alignment padding data:\n", function ); libcnotify_print_data( &( data[ data_offset ] ), alignment_padding_size, LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif data_offset += alignment_padding_size; } } if( libfsapfs_key_bag_header_free( &bag_header, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key bag header.", function ); goto on_error; } return( 1 ); on_error: if( bag_entry != NULL ) { libfsapfs_key_bag_entry_free( &bag_entry, NULL ); } if( bag_header != NULL ) { libfsapfs_key_bag_header_free( &bag_header, NULL ); } return( -1 ); } /* Retrieves the volume key that can be unlocked * Returns 1 if successful, 0 if no such volume key or -1 on error */ int libfsapfs_volume_key_bag_get_volume_key( libfsapfs_volume_key_bag_t *volume_key_bag, const uint8_t *user_password, size_t user_password_length, const uint8_t *recovery_password, size_t recovery_password_length, uint8_t *key, size_t key_size, libcerror_error_t **error ) { libfsapfs_key_bag_entry_t *bag_entry = NULL; libfsapfs_key_encrypted_key_t *key_encrypted_key = NULL; static char *function = "libfsapfs_volume_key_bag_get_volume_key"; int entry_index = 0; int number_of_entries = 0; int result = 0; if( volume_key_bag == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume key bag.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( volume_key_bag->entries_array, &number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); goto on_error; } for( entry_index = 0; entry_index < number_of_entries; entry_index++ ) { if( libcdata_array_get_entry_by_index( volume_key_bag->entries_array, entry_index, (intptr_t **) &bag_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from array.", function, entry_index ); goto on_error; } if( bag_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing entry: %d.", function, entry_index ); goto on_error; } if( bag_entry->type != 3 ) { continue; } if( libfsapfs_key_encrypted_key_initialize( &key_encrypted_key, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create key encrypted key.", function ); goto on_error; } if( libfsapfs_key_encrypted_key_read_data( key_encrypted_key, bag_entry->data, (size_t) bag_entry->data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read key encrypted key.", function ); goto on_error; } if( user_password != NULL ) { result = libfsapfs_key_encrypted_key_unlock_with_password( key_encrypted_key, user_password, user_password_length, key, key_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to unlock key encrypted key with user password.", function ); goto on_error; } } if( ( result == 0 ) && ( recovery_password != NULL ) ) { result = libfsapfs_key_encrypted_key_unlock_with_password( key_encrypted_key, recovery_password, recovery_password_length, key, key_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to unlock key encrypted key with recovery password.", function ); goto on_error; } } if( libfsapfs_key_encrypted_key_free( &key_encrypted_key, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key encrypted key.", function ); goto on_error; } if( result == 1 ) { break; } } return( result ); on_error: if( key_encrypted_key != NULL ) { libfsapfs_key_encrypted_key_free( &key_encrypted_key, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/Makefile.in0000664000175000017500000014073413430101254022043 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libfsapfs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = libfsapfs_definitions.h libfsapfs.rc CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) libfsapfs_la_DEPENDENCIES = am_libfsapfs_la_OBJECTS = libfsapfs.lo libfsapfs_btree_entry.lo \ libfsapfs_btree_footer.lo libfsapfs_btree_node.lo \ libfsapfs_btree_node_header.lo libfsapfs_buffer_data_handle.lo \ libfsapfs_checkpoint_map.lo libfsapfs_checkpoint_map_entry.lo \ libfsapfs_checksum.lo libfsapfs_chunk_information_block.lo \ libfsapfs_compressed_data_handle.lo libfsapfs_compression.lo \ libfsapfs_container.lo libfsapfs_container_data_handle.lo \ libfsapfs_container_key_bag.lo libfsapfs_container_reaper.lo \ libfsapfs_container_superblock.lo libfsapfs_data_block.lo \ libfsapfs_data_block_data_handle.lo libfsapfs_data_stream.lo \ libfsapfs_debug.lo libfsapfs_deflate.lo \ libfsapfs_directory_record.lo libfsapfs_error.lo \ libfsapfs_encryption_context.lo \ libfsapfs_extended_attribute.lo \ libfsapfs_extent_reference_tree.lo libfsapfs_file_entry.lo \ libfsapfs_file_extent.lo libfsapfs_file_system_btree.lo \ libfsapfs_file_system_data_handle.lo \ libfsapfs_fusion_middle_tree.lo libfsapfs_inode.lo \ libfsapfs_io_handle.lo libfsapfs_key_bag_entry.lo \ libfsapfs_key_bag_header.lo libfsapfs_key_encrypted_key.lo \ libfsapfs_lzvn.lo libfsapfs_name.lo libfsapfs_name_hash.lo \ libfsapfs_notify.lo libfsapfs_object.lo \ libfsapfs_object_map.lo libfsapfs_object_map_btree.lo \ libfsapfs_object_map_descriptor.lo libfsapfs_password.lo \ libfsapfs_profiler.lo libfsapfs_snapshot_metadata.lo \ libfsapfs_snapshot_metadata_tree.lo libfsapfs_space_manager.lo \ libfsapfs_support.lo libfsapfs_volume.lo \ libfsapfs_volume_key_bag.lo libfsapfs_volume_superblock.lo libfsapfs_la_OBJECTS = $(am_libfsapfs_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libfsapfs_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libfsapfs_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libfsapfs.Plo \ ./$(DEPDIR)/libfsapfs_btree_entry.Plo \ ./$(DEPDIR)/libfsapfs_btree_footer.Plo \ ./$(DEPDIR)/libfsapfs_btree_node.Plo \ ./$(DEPDIR)/libfsapfs_btree_node_header.Plo \ ./$(DEPDIR)/libfsapfs_buffer_data_handle.Plo \ ./$(DEPDIR)/libfsapfs_checkpoint_map.Plo \ ./$(DEPDIR)/libfsapfs_checkpoint_map_entry.Plo \ ./$(DEPDIR)/libfsapfs_checksum.Plo \ ./$(DEPDIR)/libfsapfs_chunk_information_block.Plo \ ./$(DEPDIR)/libfsapfs_compressed_data_handle.Plo \ ./$(DEPDIR)/libfsapfs_compression.Plo \ ./$(DEPDIR)/libfsapfs_container.Plo \ ./$(DEPDIR)/libfsapfs_container_data_handle.Plo \ ./$(DEPDIR)/libfsapfs_container_key_bag.Plo \ ./$(DEPDIR)/libfsapfs_container_reaper.Plo \ ./$(DEPDIR)/libfsapfs_container_superblock.Plo \ ./$(DEPDIR)/libfsapfs_data_block.Plo \ ./$(DEPDIR)/libfsapfs_data_block_data_handle.Plo \ ./$(DEPDIR)/libfsapfs_data_stream.Plo \ ./$(DEPDIR)/libfsapfs_debug.Plo \ ./$(DEPDIR)/libfsapfs_deflate.Plo \ ./$(DEPDIR)/libfsapfs_directory_record.Plo \ ./$(DEPDIR)/libfsapfs_encryption_context.Plo \ ./$(DEPDIR)/libfsapfs_error.Plo \ ./$(DEPDIR)/libfsapfs_extended_attribute.Plo \ ./$(DEPDIR)/libfsapfs_extent_reference_tree.Plo \ ./$(DEPDIR)/libfsapfs_file_entry.Plo \ ./$(DEPDIR)/libfsapfs_file_extent.Plo \ ./$(DEPDIR)/libfsapfs_file_system_btree.Plo \ ./$(DEPDIR)/libfsapfs_file_system_data_handle.Plo \ ./$(DEPDIR)/libfsapfs_fusion_middle_tree.Plo \ ./$(DEPDIR)/libfsapfs_inode.Plo \ ./$(DEPDIR)/libfsapfs_io_handle.Plo \ ./$(DEPDIR)/libfsapfs_key_bag_entry.Plo \ ./$(DEPDIR)/libfsapfs_key_bag_header.Plo \ ./$(DEPDIR)/libfsapfs_key_encrypted_key.Plo \ ./$(DEPDIR)/libfsapfs_lzvn.Plo ./$(DEPDIR)/libfsapfs_name.Plo \ ./$(DEPDIR)/libfsapfs_name_hash.Plo \ ./$(DEPDIR)/libfsapfs_notify.Plo \ ./$(DEPDIR)/libfsapfs_object.Plo \ ./$(DEPDIR)/libfsapfs_object_map.Plo \ ./$(DEPDIR)/libfsapfs_object_map_btree.Plo \ ./$(DEPDIR)/libfsapfs_object_map_descriptor.Plo \ ./$(DEPDIR)/libfsapfs_password.Plo \ ./$(DEPDIR)/libfsapfs_profiler.Plo \ ./$(DEPDIR)/libfsapfs_snapshot_metadata.Plo \ ./$(DEPDIR)/libfsapfs_snapshot_metadata_tree.Plo \ ./$(DEPDIR)/libfsapfs_space_manager.Plo \ ./$(DEPDIR)/libfsapfs_support.Plo \ ./$(DEPDIR)/libfsapfs_volume.Plo \ ./$(DEPDIR)/libfsapfs_volume_key_bag.Plo \ ./$(DEPDIR)/libfsapfs_volume_superblock.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libfsapfs_la_SOURCES) DIST_SOURCES = $(libfsapfs_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libfsapfs.rc.in \ $(srcdir)/libfsapfs_definitions.h.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFCACHE_CPPFLAGS@ \ @LIBFDATA_CPPFLAGS@ \ @LIBFDATETIME_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBCRYPTO_CPPFLAGS@ \ @LIBHMAC_CPPFLAGS@ \ @LIBCAES_CPPFLAGS@ \ @ZLIB_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ \ @LIBFSAPFS_DLL_EXPORT@ lib_LTLIBRARIES = libfsapfs.la libfsapfs_la_SOURCES = \ fsapfs_btree.h \ fsapfs_checkpoint_map.h \ fsapfs_chunk_information_block.h \ fsapfs_container_reaper.h \ fsapfs_container_superblock.h \ fsapfs_extent_reference_tree.h \ fsapfs_file_system.h \ fsapfs_fusion_middle_tree.h \ fsapfs_key_bag.h \ fsapfs_object.h \ fsapfs_object_map.h \ fsapfs_snapshot_metadata.h \ fsapfs_space_manager.h \ fsapfs_volume_superblock.h \ libfsapfs.c \ libfsapfs_btree_entry.c libfsapfs_btree_entry.h \ libfsapfs_btree_footer.c libfsapfs_btree_footer.h \ libfsapfs_btree_node.c libfsapfs_btree_node.h \ libfsapfs_btree_node_header.c libfsapfs_btree_node_header.h \ libfsapfs_buffer_data_handle.c libfsapfs_buffer_data_handle.h \ libfsapfs_checkpoint_map.c libfsapfs_checkpoint_map.h \ libfsapfs_checkpoint_map_entry.c libfsapfs_checkpoint_map_entry.h \ libfsapfs_checksum.c libfsapfs_checksum.h \ libfsapfs_chunk_information_block.c libfsapfs_chunk_information_block.h \ libfsapfs_compressed_data_handle.c libfsapfs_compressed_data_handle.h \ libfsapfs_compression.c libfsapfs_compression.h \ libfsapfs_container.c libfsapfs_container.h \ libfsapfs_container_data_handle.c libfsapfs_container_data_handle.h \ libfsapfs_container_key_bag.c libfsapfs_container_key_bag.h \ libfsapfs_container_reaper.c libfsapfs_container_reaper.h \ libfsapfs_container_superblock.c libfsapfs_container_superblock.h \ libfsapfs_data_block.c libfsapfs_data_block.h \ libfsapfs_data_block_data_handle.c libfsapfs_data_block_data_handle.h \ libfsapfs_data_stream.c libfsapfs_data_stream.h \ libfsapfs_debug.c libfsapfs_debug.h \ libfsapfs_definitions.h \ libfsapfs_deflate.c libfsapfs_deflate.h \ libfsapfs_directory_record.c libfsapfs_directory_record.h \ libfsapfs_error.c libfsapfs_error.h \ libfsapfs_encryption_context.c libfsapfs_encryption_context.h \ libfsapfs_extended_attribute.c libfsapfs_extended_attribute.h \ libfsapfs_extern.h \ libfsapfs_extent_reference_tree.c libfsapfs_extent_reference_tree.h \ libfsapfs_file_entry.c libfsapfs_file_entry.h \ libfsapfs_file_extent.c libfsapfs_file_extent.h \ libfsapfs_file_system_btree.c libfsapfs_file_system_btree.h \ libfsapfs_file_system_data_handle.c libfsapfs_file_system_data_handle.h \ libfsapfs_fusion_middle_tree.c libfsapfs_fusion_middle_tree.h \ libfsapfs_inode.c libfsapfs_inode.h \ libfsapfs_io_handle.c libfsapfs_io_handle.h \ libfsapfs_key_bag_entry.c libfsapfs_key_bag_entry.h \ libfsapfs_key_bag_header.c libfsapfs_key_bag_header.h \ libfsapfs_key_encrypted_key.c libfsapfs_key_encrypted_key.h \ libfsapfs_libbfio.h \ libfsapfs_libcaes.h \ libfsapfs_libcdata.h \ libfsapfs_libcerror.h \ libfsapfs_libclocale.h \ libfsapfs_libcnotify.h \ libfsapfs_libcthreads.h \ libfsapfs_libfcache.h \ libfsapfs_libfdata.h \ libfsapfs_libfdatetime.h \ libfsapfs_libfguid.h \ libfsapfs_libhmac.h \ libfsapfs_libuna.h \ libfsapfs_lzvn.c libfsapfs_lzvn.h \ libfsapfs_name.c libfsapfs_name.h \ libfsapfs_name_hash.c libfsapfs_name_hash.h \ libfsapfs_notify.c libfsapfs_notify.h \ libfsapfs_object.c libfsapfs_object.h \ libfsapfs_object_map.c libfsapfs_object_map.h \ libfsapfs_object_map_btree.c libfsapfs_object_map_btree.h \ libfsapfs_object_map_descriptor.c libfsapfs_object_map_descriptor.h \ libfsapfs_password.c libfsapfs_password.h \ libfsapfs_profiler.c libfsapfs_profiler.h \ libfsapfs_snapshot_metadata.c libfsapfs_snapshot_metadata.h \ libfsapfs_snapshot_metadata_tree.c libfsapfs_snapshot_metadata_tree.h \ libfsapfs_space_manager.c libfsapfs_space_manager.h \ libfsapfs_support.c libfsapfs_support.h \ libfsapfs_types.h \ libfsapfs_unused.h \ libfsapfs_volume.c libfsapfs_volume.h \ libfsapfs_volume_key_bag.c libfsapfs_volume_key_bag.h \ libfsapfs_volume_superblock.c libfsapfs_volume_superblock.h libfsapfs_la_LIBADD = \ @LIBCERROR_LIBADD@ \ @LIBCTHREADS_LIBADD@ \ @LIBCDATA_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBFCACHE_LIBADD@ \ @LIBFDATA_LIBADD@ \ @LIBFDATETIME_LIBADD@ \ @LIBFGUID_LIBADD@ \ @LIBHMAC_LIBADD@ \ @LIBCAES_LIBADD@ \ @LIBCRYPTO_LIBADD@ \ @ZLIB_LIBADD@ \ @LIBDL_LIBADD@ \ @PTHREAD_LIBADD@ libfsapfs_la_LDFLAGS = -no-undefined -version-info 1:0:0 EXTRA_DIST = \ libfsapfs_definitions.h.in \ libfsapfs.rc \ libfsapfs.rc.in MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfsapfs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libfsapfs/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): libfsapfs_definitions.h: $(top_builddir)/config.status $(srcdir)/libfsapfs_definitions.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ libfsapfs.rc: $(top_builddir)/config.status $(srcdir)/libfsapfs.rc.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libfsapfs.la: $(libfsapfs_la_OBJECTS) $(libfsapfs_la_DEPENDENCIES) $(EXTRA_libfsapfs_la_DEPENDENCIES) $(AM_V_CCLD)$(libfsapfs_la_LINK) -rpath $(libdir) $(libfsapfs_la_OBJECTS) $(libfsapfs_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_btree_entry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_btree_footer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_btree_node.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_btree_node_header.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_buffer_data_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_checkpoint_map.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_checkpoint_map_entry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_checksum.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_chunk_information_block.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_compressed_data_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_compression.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_container.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_container_data_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_container_key_bag.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_container_reaper.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_container_superblock.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_data_block.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_data_block_data_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_data_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_debug.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_deflate.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_directory_record.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_encryption_context.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_extended_attribute.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_extent_reference_tree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_file_entry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_file_extent.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_file_system_btree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_file_system_data_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_fusion_middle_tree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_inode.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_io_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_key_bag_entry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_key_bag_header.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_key_encrypted_key.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_lzvn.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_name.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_name_hash.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_notify.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_object.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_object_map.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_object_map_btree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_object_map_descriptor.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_password.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_profiler.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_snapshot_metadata.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_snapshot_metadata_tree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_space_manager.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_volume.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_volume_key_bag.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfsapfs_volume_superblock.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfsapfs.Plo -rm -f ./$(DEPDIR)/libfsapfs_btree_entry.Plo -rm -f ./$(DEPDIR)/libfsapfs_btree_footer.Plo -rm -f ./$(DEPDIR)/libfsapfs_btree_node.Plo -rm -f ./$(DEPDIR)/libfsapfs_btree_node_header.Plo -rm -f ./$(DEPDIR)/libfsapfs_buffer_data_handle.Plo -rm -f ./$(DEPDIR)/libfsapfs_checkpoint_map.Plo -rm -f ./$(DEPDIR)/libfsapfs_checkpoint_map_entry.Plo -rm -f ./$(DEPDIR)/libfsapfs_checksum.Plo -rm -f ./$(DEPDIR)/libfsapfs_chunk_information_block.Plo -rm -f ./$(DEPDIR)/libfsapfs_compressed_data_handle.Plo -rm -f ./$(DEPDIR)/libfsapfs_compression.Plo -rm -f ./$(DEPDIR)/libfsapfs_container.Plo -rm -f ./$(DEPDIR)/libfsapfs_container_data_handle.Plo -rm -f ./$(DEPDIR)/libfsapfs_container_key_bag.Plo -rm -f ./$(DEPDIR)/libfsapfs_container_reaper.Plo -rm -f ./$(DEPDIR)/libfsapfs_container_superblock.Plo -rm -f ./$(DEPDIR)/libfsapfs_data_block.Plo -rm -f ./$(DEPDIR)/libfsapfs_data_block_data_handle.Plo -rm -f ./$(DEPDIR)/libfsapfs_data_stream.Plo -rm -f ./$(DEPDIR)/libfsapfs_debug.Plo -rm -f ./$(DEPDIR)/libfsapfs_deflate.Plo -rm -f ./$(DEPDIR)/libfsapfs_directory_record.Plo -rm -f ./$(DEPDIR)/libfsapfs_encryption_context.Plo -rm -f ./$(DEPDIR)/libfsapfs_error.Plo -rm -f ./$(DEPDIR)/libfsapfs_extended_attribute.Plo -rm -f ./$(DEPDIR)/libfsapfs_extent_reference_tree.Plo -rm -f ./$(DEPDIR)/libfsapfs_file_entry.Plo -rm -f ./$(DEPDIR)/libfsapfs_file_extent.Plo -rm -f ./$(DEPDIR)/libfsapfs_file_system_btree.Plo -rm -f ./$(DEPDIR)/libfsapfs_file_system_data_handle.Plo -rm -f ./$(DEPDIR)/libfsapfs_fusion_middle_tree.Plo -rm -f ./$(DEPDIR)/libfsapfs_inode.Plo -rm -f ./$(DEPDIR)/libfsapfs_io_handle.Plo -rm -f ./$(DEPDIR)/libfsapfs_key_bag_entry.Plo -rm -f ./$(DEPDIR)/libfsapfs_key_bag_header.Plo -rm -f ./$(DEPDIR)/libfsapfs_key_encrypted_key.Plo -rm -f ./$(DEPDIR)/libfsapfs_lzvn.Plo -rm -f ./$(DEPDIR)/libfsapfs_name.Plo -rm -f ./$(DEPDIR)/libfsapfs_name_hash.Plo -rm -f ./$(DEPDIR)/libfsapfs_notify.Plo -rm -f ./$(DEPDIR)/libfsapfs_object.Plo -rm -f ./$(DEPDIR)/libfsapfs_object_map.Plo -rm -f ./$(DEPDIR)/libfsapfs_object_map_btree.Plo -rm -f ./$(DEPDIR)/libfsapfs_object_map_descriptor.Plo -rm -f ./$(DEPDIR)/libfsapfs_password.Plo -rm -f ./$(DEPDIR)/libfsapfs_profiler.Plo -rm -f ./$(DEPDIR)/libfsapfs_snapshot_metadata.Plo -rm -f ./$(DEPDIR)/libfsapfs_snapshot_metadata_tree.Plo -rm -f ./$(DEPDIR)/libfsapfs_space_manager.Plo -rm -f ./$(DEPDIR)/libfsapfs_support.Plo -rm -f ./$(DEPDIR)/libfsapfs_volume.Plo -rm -f ./$(DEPDIR)/libfsapfs_volume_key_bag.Plo -rm -f ./$(DEPDIR)/libfsapfs_volume_superblock.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES .PRECIOUS: Makefile distclean: clean /bin/rm -f libfsapfs_definitions.h /bin/rm -f libfsapfs.rc /bin/rm -f Makefile splint: @echo "Running splint on libfsapfs ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfsapfs_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libfsapfs/libfsapfs_error.c0000664000175000017500000000555613426637446023354 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_error.h" #include "libfsapfs_libcerror.h" #if !defined( HAVE_LOCAL_LIBFSAPFS ) /* Free an error and its elements */ void libfsapfs_error_free( libfsapfs_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfsapfs_error_fprint( libfsapfs_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfsapfs_error_sprint( libfsapfs_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfsapfs_error_backtrace_fprint( libfsapfs_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfsapfs_error_backtrace_sprint( libfsapfs_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ libfsapfs-20190210/libfsapfs/libfsapfs_fusion_middle_tree.h0000664000175000017500000000366513426637446026067 0ustar00lordyestalordyesta00000000000000/* * The Fusion middle tree functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_FUSION_MIDDLE_TREE_H ) #define _LIBFSAPFS_FUSION_MIDDLE_TREE_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_fusion_middle_tree libfsapfs_fusion_middle_tree_t; struct libfsapfs_fusion_middle_tree { /* Dummy */ int dummy; }; int libfsapfs_fusion_middle_tree_initialize( libfsapfs_fusion_middle_tree_t **fusion_middle_tree, libcerror_error_t **error ); int libfsapfs_fusion_middle_tree_free( libfsapfs_fusion_middle_tree_t **fusion_middle_tree, libcerror_error_t **error ); int libfsapfs_fusion_middle_tree_read_file_io_handle( libfsapfs_fusion_middle_tree_t *fusion_middle_tree, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ); int libfsapfs_fusion_middle_tree_read_data( libfsapfs_fusion_middle_tree_t *fusion_middle_tree, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_FUSION_MIDDLE_TREE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_container_reaper.c0000664000175000017500000002113613426637446025533 0ustar00lordyestalordyesta00000000000000/* * The container reaper functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_container_reaper.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "fsapfs_container_reaper.h" /* Creates a container reaper * Make sure the value container_reaper is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_container_reaper_initialize( libfsapfs_container_reaper_t **container_reaper, libcerror_error_t **error ) { static char *function = "libfsapfs_container_reaper_initialize"; if( container_reaper == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container reaper.", function ); return( -1 ); } if( *container_reaper != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid container reaper value already set.", function ); return( -1 ); } *container_reaper = memory_allocate_structure( libfsapfs_container_reaper_t ); if( *container_reaper == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create container reaper.", function ); goto on_error; } if( memory_set( *container_reaper, 0, sizeof( libfsapfs_container_reaper_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear container reaper.", function ); goto on_error; } return( 1 ); on_error: if( *container_reaper != NULL ) { memory_free( *container_reaper ); *container_reaper = NULL; } return( -1 ); } /* Frees a container reaper * Returns 1 if successful or -1 on error */ int libfsapfs_container_reaper_free( libfsapfs_container_reaper_t **container_reaper, libcerror_error_t **error ) { static char *function = "libfsapfs_container_reaper_free"; if( container_reaper == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container reaper.", function ); return( -1 ); } if( *container_reaper != NULL ) { memory_free( *container_reaper ); *container_reaper = NULL; } return( 1 ); } /* Reads the container reaper * Returns 1 if successful or -1 on error */ int libfsapfs_container_reaper_read_file_io_handle( libfsapfs_container_reaper_t *container_reaper, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { fsapfs_container_reaper_t container_reaper_data; static char *function = "libfsapfs_container_reaper_read_file_io_handle"; ssize_t read_count = 0; if( container_reaper == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container reaper.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading container reaper at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek container reaper offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, (uint8_t *) &container_reaper_data, sizeof( fsapfs_container_reaper_t ), error ); if( read_count != (ssize_t) sizeof( fsapfs_container_reaper_t ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container reaper data.", function ); return( -1 ); } if( libfsapfs_container_reaper_read_data( container_reaper, (uint8_t *) &container_reaper_data, sizeof( fsapfs_container_reaper_t ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read container reaper data.", function ); return( -1 ); } return( 1 ); } /* Reads the container reaper * Returns 1 if successful or -1 on error */ int libfsapfs_container_reaper_read_data( libfsapfs_container_reaper_t *container_reaper, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_container_reaper_read_data"; uint32_t object_subtype = 0; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; #endif if( container_reaper == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid container reaper.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_container_reaper_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: container reaper data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_container_reaper_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_reaper_t *) data )->object_type, object_type ); if( object_type != 0x80000011UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_container_reaper_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_reaper_t *) data )->object_checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_reaper_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_reaper_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_container_reaper_t *) data )->unknown1, value_64bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_definitions.h.in0000664000175000017500000000626413426637447025146 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_INTERNAL_DEFINITIONS_H ) #define _LIBFSAPFS_INTERNAL_DEFINITIONS_H #include #include #define LIBFSAPFS_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG #define LIBFSAPFS_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE /* Define HAVE_LOCAL_LIBFSAPFS for local use of libfsapfs */ #if !defined( HAVE_LOCAL_LIBFSAPFS ) #include /* The definitions in are copied here * for local use of libfsapfs */ #else #define LIBFSAPFS_VERSION @VERSION@ /* The version string */ #define LIBFSAPFS_VERSION_STRING "@VERSION@" /* The file access * bit 1 set to 1 for read access * bit 2 set to 1 for write access * bit 3-8 not used */ enum LIBFSAPFS_ACCESS_FLAGS { LIBFSAPFS_ACCESS_FLAG_READ = 0x01, /* Reserved: not supported yet */ LIBFSAPFS_ACCESS_FLAG_WRITE = 0x02 }; /* The file access macros */ #define LIBFSAPFS_OPEN_READ ( LIBFSAPFS_ACCESS_FLAG_READ ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_WRITE ( LIBFSAPFS_ACCESS_FLAG_WRITE ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_READ_WRITE ( LIBFSAPFS_ACCESS_FLAG_READ | LIBFSAPFS_ACCESS_FLAG_WRITE ) /* The path segment separator */ #define LIBFSAPFS_SEPARATOR '/' #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ /* The compression methods */ enum LIBFSAPFS_COMPRESSION_METHODS { LIBFSAPFS_COMPRESSION_METHOD_NONE = 0, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE = 1, LIBFSAPFS_COMPRESSION_METHOD_LZVN = 2, LIBFSAPFS_COMPRESSION_METHOD_UNKNOWN5 = 5 }; /* The crypt modes */ enum LIBFSAPFS_ENCRYPTION_CRYPT_MODES { LIBFSAPFS_ENCRYPTION_CRYPT_MODE_DECRYPT = 0, LIBFSAPFS_ENCRYPTION_CRYPT_MODE_ENCRYPT = 1 }; /* The encryption methods */ enum LIBFSAPFS_ENCRYPTION_METHODS { LIBFSAPFS_ENCRYPTION_METHOD_AES_256_XTS = 0, LIBFSAPFS_ENCRYPTION_METHOD_AES_128_XTS = 2 }; /* The file system B-tree data type */ enum LIBFSAPFS_FILE_SYSTEM_DATA_TYPES { LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_INODE = 3, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_EXTENDED_ATTRIBUTE = 4, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_FILE_EXTENT = 8, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD = 9 }; #define LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_BTREE_NODES 8192 #define LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_DATA_BLOCKS 16 #define LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH 256 #endif /* !defined( _LIBFSAPFS_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_btree_entry.h0000664000175000017500000000371013426637446024540 0ustar00lordyestalordyesta00000000000000/* * The B-tree entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_BTREE_ENTRY_H ) #define _LIBFSAPFS_BTREE_ENTRY_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_btree_entry libfsapfs_btree_entry_t; struct libfsapfs_btree_entry { /* The key data */ const uint8_t *key_data; /* The key data size */ size_t key_data_size; /* The value data */ const uint8_t *value_data; /* The value data size */ size_t value_data_size; }; int libfsapfs_btree_entry_initialize( libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_btree_entry_free( libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); int libfsapfs_btree_entry_set_key_data( libfsapfs_btree_entry_t *btree_entry, const uint8_t *key_data, size_t key_data_size, libcerror_error_t **error ); int libfsapfs_btree_entry_set_value_data( libfsapfs_btree_entry_t *btree_entry, const uint8_t *value_data, size_t value_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_BTREE_ENTRY_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_file_entry.c0000664000175000017500000037144313430073155024346 0ustar00lordyestalordyesta00000000000000/* * File entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_data_stream.h" #include "libfsapfs_definitions.h" #include "libfsapfs_directory_record.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_extended_attribute.h" #include "libfsapfs_file_entry.h" #include "libfsapfs_file_extent.h" #include "libfsapfs_file_system_btree.h" #include "libfsapfs_inode.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libcthreads.h" #include "libfsapfs_libfdata.h" #include "libfsapfs_libuna.h" #include "libfsapfs_types.h" #include "fsapfs_file_system.h" /* Creates a file entry * Make sure the value file_entry is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_initialize( libfsapfs_file_entry_t **file_entry, libfsapfs_io_handle_t *io_handle, libbfio_handle_t *file_io_handle, libfsapfs_encryption_context_t *encryption_context, libfsapfs_file_system_btree_t *file_system_btree, libfsapfs_inode_t *inode, libfsapfs_directory_record_t *directory_record, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_initialize"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry value already set.", function ); return( -1 ); } internal_file_entry = memory_allocate_structure( libfsapfs_internal_file_entry_t ); if( internal_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file entry.", function ); goto on_error; } if( memory_set( internal_file_entry, 0, sizeof( libfsapfs_internal_file_entry_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file entry.", function ); memory_free( internal_file_entry ); return( -1 ); } internal_file_entry->io_handle = io_handle; internal_file_entry->file_io_handle = file_io_handle; internal_file_entry->encryption_context = encryption_context; internal_file_entry->file_system_btree = file_system_btree; internal_file_entry->inode = inode; internal_file_entry->directory_record = directory_record; internal_file_entry->file_size = (size64_t) -1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBFSAPFS ) if( libcthreads_read_write_lock_initialize( &( internal_file_entry->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *file_entry = (libfsapfs_file_entry_t *) internal_file_entry; return( 1 ); on_error: if( internal_file_entry != NULL ) { memory_free( internal_file_entry ); } return( -1 ); } /* Frees a file entry * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_free( libfsapfs_file_entry_t **file_entry, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_free"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { internal_file_entry = (libfsapfs_internal_file_entry_t *) *file_entry; *file_entry = NULL; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBFSAPFS ) if( libcthreads_read_write_lock_free( &( internal_file_entry->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif /* The file_io_handle and file_system_btree references are freed elsewhere */ if( internal_file_entry->inode != NULL ) { if( libfsapfs_inode_free( &( internal_file_entry->inode ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free inode.", function ); result = -1; } } if( internal_file_entry->directory_record != NULL ) { if( libfsapfs_directory_record_free( &( internal_file_entry->directory_record ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory record.", function ); result = -1; } } if( internal_file_entry->extended_attributes != NULL ) { if( libcdata_array_free( &( internal_file_entry->extended_attributes ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_internal_extended_attribute_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free extended attributes array.", function ); result = -1; } } if( internal_file_entry->directory_entries != NULL ) { if( libcdata_array_free( &( internal_file_entry->directory_entries ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_directory_record_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free directory entries array.", function ); result = -1; } } if( internal_file_entry->file_extents != NULL ) { if( libcdata_array_free( &( internal_file_entry->file_extents ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_extent_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file extents array.", function ); result = -1; } } if( internal_file_entry->data_stream != NULL ) { if( libfdata_stream_free( &( internal_file_entry->data_stream ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data stream.", function ); result = -1; } } if( internal_file_entry->symbolic_link_data != NULL ) { memory_free( internal_file_entry->symbolic_link_data ); } memory_free( internal_file_entry ); } return( result ); } /* Retrieves the identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *identifier, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_identifier"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_identifier( internal_file_entry->inode, identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the parent identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_parent_identifier( libfsapfs_file_entry_t *file_entry, uint64_t *parent_identifier, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_parent_identifier"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_parent_identifier( internal_file_entry->inode, parent_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve parent identifier.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the parent file entry * Returns 1 if successful, 0 if no such file entry or -1 on error */ int libfsapfs_file_entry_get_parent_file_entry( libfsapfs_file_entry_t *file_entry, libfsapfs_file_entry_t **parent_file_entry, libcerror_error_t **error ) { libfsapfs_inode_t *inode = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_parent_file_entry"; int result = 0; uint64_t file_system_identifier = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( parent_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid parent file entry.", function ); return( -1 ); } if( *parent_file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid parent file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_identifier( internal_file_entry->inode, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier.", function ); goto on_error; } if( file_system_identifier > 2 ) { if( libfsapfs_inode_get_parent_identifier( internal_file_entry->inode, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve parent identifier.", function ); goto on_error; } if( libfsapfs_file_system_btree_get_inode_by_identifier( internal_file_entry->file_system_btree, internal_file_entry->file_io_handle, file_system_identifier, &inode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode: %" PRIu64 " from file system B-tree.", function, file_system_identifier ); goto on_error; } if( libfsapfs_file_entry_initialize( parent_file_entry, internal_file_entry->io_handle, internal_file_entry->file_io_handle, internal_file_entry->encryption_context, internal_file_entry->file_system_btree, inode, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file entry.", function ); goto on_error; } inode = NULL; result = 1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the creation date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_creation_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_creation_time"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_creation_time( internal_file_entry->inode, posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve creation time.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the modification date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_modification_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_modification_time"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_modification_time( internal_file_entry->inode, posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve modification time.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the inode change date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_inode_change_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_inode_change_time"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_inode_change_time( internal_file_entry->inode, posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode change time.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the access date and time * The timestamp is a signed 64-bit POSIX date and time value in number of nano seconds * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_access_time( libfsapfs_file_entry_t *file_entry, int64_t *posix_time, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_access_time"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_access_time( internal_file_entry->inode, posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access time.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the owner identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_owner_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *owner_identifier, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_owner_identifier"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_owner_identifier( internal_file_entry->inode, owner_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve owner identifier.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the group identifier * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_group_identifier( libfsapfs_file_entry_t *file_entry, uint32_t *group_identifier, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_group_identifier"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_group_identifier( internal_file_entry->inode, group_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve group identifier.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the file mode * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_file_mode( libfsapfs_file_entry_t *file_entry, uint16_t *file_mode, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_file_mode"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_file_mode( internal_file_entry->inode, file_mode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file mode.", function ); result = -1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the size of the UTF-8 encoded name * The returned size includes the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_utf8_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf8_name_size"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( internal_file_entry->directory_record != NULL ) { if( libfsapfs_directory_record_get_utf8_name_size( internal_file_entry->directory_record, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size from directory record.", function ); result = -1; } } else { if( libfsapfs_inode_get_utf8_name_size( internal_file_entry->inode, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size from inode.", function ); result = -1; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the UTF-8 encoded name * The size should include the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_utf8_name( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf8_name"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( internal_file_entry->directory_record != NULL ) { if( libfsapfs_directory_record_get_utf8_name( internal_file_entry->directory_record, utf8_string, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string from directory entry.", function ); result = -1; } } else { if( libfsapfs_inode_get_utf8_name( internal_file_entry->inode, utf8_string, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string from inode.", function ); result = -1; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the size of the UTF-16 encoded name * The returned size includes the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_utf16_name_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf16_name_size"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( internal_file_entry->directory_record != NULL ) { if( libfsapfs_directory_record_get_utf16_name_size( internal_file_entry->directory_record, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size from directory record.", function ); result = -1; } } else { if( libfsapfs_inode_get_utf16_name_size( internal_file_entry->inode, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size from inode.", function ); result = -1; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Retrieves the UTF-16 encoded name * The size should include the end of string character * This value is retrieved from the inode * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_utf16_name( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf16_name"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( internal_file_entry->directory_record != NULL ) { if( libfsapfs_directory_record_get_utf16_name( internal_file_entry->directory_record, utf16_string, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string from directory record.", function ); result = -1; } } else { if( libfsapfs_inode_get_utf16_name( internal_file_entry->inode, utf16_string, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string from inode.", function ); result = -1; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_read( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Determines the extended attributes * Returns 1 if successful or -1 on error */ int libfsapfs_internal_file_entry_get_extended_attributes( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ) { libfsapfs_extended_attribute_t *extended_attribute = NULL; static char *function = "libfsapfs_internal_file_entry_get_extended_attributes"; uint64_t file_system_identifier = 0; int extended_attribute_index = 0; int number_of_extended_attributes = 0; int result = 0; if( internal_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( internal_file_entry->extended_attributes != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry - extended attributes value already set.", function ); return( -1 ); } if( libfsapfs_inode_get_identifier( internal_file_entry->inode, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier from inode.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_file_entry->extended_attributes ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create extended attributes array.", function ); goto on_error; } result = libfsapfs_file_system_btree_get_extended_attributes( internal_file_entry->file_system_btree, internal_file_entry->file_io_handle, file_system_identifier, internal_file_entry->extended_attributes, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attributes from file system B-tree.", function ); goto on_error; } if( libcdata_array_get_number_of_entries( internal_file_entry->extended_attributes, &number_of_extended_attributes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from extended attributes array.", function ); return( -1 ); } for( extended_attribute_index = 0; extended_attribute_index < number_of_extended_attributes; extended_attribute_index++ ) { if( libcdata_array_get_entry_by_index( internal_file_entry->extended_attributes, extended_attribute_index, (intptr_t **) &extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute: %d.", function, extended_attribute_index ); return( -1 ); } result = libfsapfs_extended_attribute_compare_name_with_utf8_string( extended_attribute, (uint8_t *) "com.apple.decmpfs", 17, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name of extended attribute.", function ); return( -1 ); } else if( result == LIBUNA_COMPARE_EQUAL ) { internal_file_entry->compressed_data_extended_attribute = extended_attribute; continue; } result = libfsapfs_extended_attribute_compare_name_with_utf8_string( extended_attribute, (uint8_t *) "com.apple.ResourceFork", 22, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name of extended attribute.", function ); return( -1 ); } else if( result == LIBUNA_COMPARE_EQUAL ) { internal_file_entry->resource_fork_extended_attribute = extended_attribute; continue; } result = libfsapfs_extended_attribute_compare_name_with_utf8_string( extended_attribute, (uint8_t *) "com.apple.fs.symlink", 20, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name of extended attribute.", function ); return( -1 ); } else if( result == LIBUNA_COMPARE_EQUAL ) { internal_file_entry->symbolic_link_extended_attribute = extended_attribute; continue; } } return( 1 ); on_error: if( internal_file_entry->extended_attributes != NULL ) { libcdata_array_free( &( internal_file_entry->extended_attributes ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_internal_extended_attribute_free, NULL ); } return( -1 ); } /* Determines the symbolic link data * Returns 1 if successful or -1 on error */ int libfsapfs_internal_file_entry_get_symbolic_link_data( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_internal_file_entry_get_symbolic_link_data"; size64_t extended_attribute_size = 0; ssize_t read_count = 0; if( internal_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( internal_file_entry->symbolic_link_data != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry - symbolic link data value already set.", function ); return( -1 ); } if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); goto on_error; } } if( internal_file_entry->symbolic_link_extended_attribute != NULL ) { if( libfsapfs_extended_attribute_get_size( internal_file_entry->symbolic_link_extended_attribute, &extended_attribute_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute data size.", function ); goto on_error; } if( extended_attribute_size > (size64_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid extended attribute data size value exceeds maximum.", function ); goto on_error; } internal_file_entry->symbolic_link_data = (uint8_t *) memory_allocate( sizeof( uint8_t ) * extended_attribute_size ); if( internal_file_entry->symbolic_link_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create extended attribute data.", function ); goto on_error; } internal_file_entry->symbolic_link_data_size = (size_t) extended_attribute_size; read_count = libfsapfs_extended_attribute_read_buffer_at_offset( internal_file_entry->symbolic_link_extended_attribute, internal_file_entry->symbolic_link_data, internal_file_entry->symbolic_link_data_size, 0, error ); if( read_count != (ssize_t) internal_file_entry->symbolic_link_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read extended attribute data.", function ); goto on_error; } } return( 1 ); on_error: if( internal_file_entry->symbolic_link_data != NULL ) { memory_free( internal_file_entry->symbolic_link_data ); internal_file_entry->symbolic_link_data = NULL; } internal_file_entry->symbolic_link_data_size = 0; return( -1 ); } /* Retrieves the size of the UTF-8 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ int libfsapfs_file_entry_get_utf8_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf8_symbolic_link_target_size"; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->symbolic_link_data == NULL ) { if( libfsapfs_internal_file_entry_get_symbolic_link_data( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine symbolic link data.", function ); goto on_error; } } if( internal_file_entry->symbolic_link_data != NULL ) { if( libuna_utf8_string_size_from_utf8_stream( internal_file_entry->symbolic_link_data, internal_file_entry->symbolic_link_data_size, utf8_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string size.", function ); goto on_error; } result = 1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the UTF-8 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ int libfsapfs_file_entry_get_utf8_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf8_symbolic_link_target"; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->symbolic_link_data == NULL ) { if( libfsapfs_internal_file_entry_get_symbolic_link_data( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine symbolic link data.", function ); goto on_error; } } if( internal_file_entry->symbolic_link_data != NULL ) { if( libuna_utf8_string_copy_from_utf8_stream( utf8_string, utf8_string_size, internal_file_entry->symbolic_link_data, internal_file_entry->symbolic_link_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-8 string.", function ); goto on_error; } result = 1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the size of the UTF-16 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ int libfsapfs_file_entry_get_utf16_symbolic_link_target_size( libfsapfs_file_entry_t *file_entry, size_t *utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf16_symbolic_link_target_size"; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->symbolic_link_data == NULL ) { if( libfsapfs_internal_file_entry_get_symbolic_link_data( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine symbolic link data.", function ); goto on_error; } } if( internal_file_entry->symbolic_link_data != NULL ) { if( libuna_utf16_string_size_from_utf8_stream( internal_file_entry->symbolic_link_data, internal_file_entry->symbolic_link_data_size, utf16_string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string size.", function ); goto on_error; } result = 1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the UTF-16 encoded symbolic link target * The size should include the end of string character * This value is retrieved from the com.apple.fs.symlink extended attribute * Returns 1 if successful, 0 if not available or -1 on error */ int libfsapfs_file_entry_get_utf16_symbolic_link_target( libfsapfs_file_entry_t *file_entry, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_utf16_symbolic_link_target"; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->symbolic_link_data == NULL ) { if( libfsapfs_internal_file_entry_get_symbolic_link_data( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine symbolic link data.", function ); goto on_error; } } if( internal_file_entry->symbolic_link_data != NULL ) { if( libuna_utf16_string_copy_from_utf8_stream( utf16_string, utf16_string_size, internal_file_entry->symbolic_link_data, internal_file_entry->symbolic_link_data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve UTF-16 string.", function ); goto on_error; } result = 1; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the number of extended attributes * Returns 1 if successful, 0 if not available or -1 on error */ int libfsapfs_file_entry_get_number_of_extended_attributes( libfsapfs_file_entry_t *file_entry, int *number_of_extended_attributes, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_number_of_extended_attributes"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_file_entry->extended_attributes, number_of_extended_attributes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from extended attributes array.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the extended attribute for the specific index * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_extended_attribute_by_index( libfsapfs_file_entry_t *file_entry, int extended_attribute_index, libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_extended_attribute_by_index"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( *extended_attribute != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); goto on_error; } } if( libcdata_array_get_entry_by_index( internal_file_entry->extended_attributes, extended_attribute_index, (intptr_t **) extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute: %d.", function, extended_attribute_index ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Determines if there is an extended attribute for an UTF-8 encoded name * Returns 1 if available, 0 if not or -1 on error */ int libfsapfs_file_entry_has_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libcerror_error_t **error ) { libfsapfs_extended_attribute_t *extended_attribute = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_has_extended_attribute_by_utf8_name"; int extended_attribute_index = 0; int number_of_extended_attributes = 0; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_file_entry->extended_attributes, &number_of_extended_attributes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from extended attributes array.", function ); goto on_error; } for( extended_attribute_index = 0; extended_attribute_index < number_of_extended_attributes; extended_attribute_index++ ) { if( libcdata_array_get_entry_by_index( internal_file_entry->extended_attributes, extended_attribute_index, (intptr_t **) &extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute: %d.", function, extended_attribute_index ); goto on_error; } result = libfsapfs_extended_attribute_compare_name_with_utf8_string( extended_attribute, utf8_string, utf8_string_length, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name of extended attribute.", function ); goto on_error; } else if( result == LIBUNA_COMPARE_EQUAL ) { result = 1; break; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Determines if there is an extended attribute for an UTF-8 encoded name * Returns 1 if available, 0 if not or -1 on error */ int libfsapfs_file_entry_has_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libcerror_error_t **error ) { libfsapfs_extended_attribute_t *extended_attribute = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_has_extended_attribute_by_utf16_name"; int extended_attribute_index = 0; int number_of_extended_attributes = 0; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_file_entry->extended_attributes, &number_of_extended_attributes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from extended attributes array.", function ); goto on_error; } for( extended_attribute_index = 0; extended_attribute_index < number_of_extended_attributes; extended_attribute_index++ ) { if( libcdata_array_get_entry_by_index( internal_file_entry->extended_attributes, extended_attribute_index, (intptr_t **) &extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute: %d.", function, extended_attribute_index ); goto on_error; } result = libfsapfs_extended_attribute_compare_name_with_utf16_string( extended_attribute, utf16_string, utf16_string_length, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-16 string with name of extended attribute.", function ); goto on_error; } else if( result == LIBUNA_COMPARE_EQUAL ) { result = 1; break; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the extended attribute for an UTF-8 encoded name * Returns 1 if successful, 0 if no such file entry or -1 on error */ int libfsapfs_file_entry_get_extended_attribute_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ) { libfsapfs_extended_attribute_t *safe_extended_attribute = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_extended_attribute_by_utf8_name"; int extended_attribute_index = 0; int number_of_extended_attributes = 0; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( *extended_attribute != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_file_entry->extended_attributes, &number_of_extended_attributes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from extended attributes array.", function ); goto on_error; } for( extended_attribute_index = 0; extended_attribute_index < number_of_extended_attributes; extended_attribute_index++ ) { if( libcdata_array_get_entry_by_index( internal_file_entry->extended_attributes, extended_attribute_index, (intptr_t **) &safe_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute: %d.", function, extended_attribute_index ); goto on_error; } result = libfsapfs_extended_attribute_compare_name_with_utf8_string( safe_extended_attribute, utf8_string, utf8_string_length, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-8 string with name of extended attribute.", function ); goto on_error; } else if( result == LIBUNA_COMPARE_EQUAL ) { *extended_attribute = safe_extended_attribute; result = 1; break; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the extended attribute for an UTF-16 encoded name * Returns 1 if successful, 0 if no such file entry or -1 on error */ int libfsapfs_file_entry_get_extended_attribute_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_extended_attribute_t **extended_attribute, libcerror_error_t **error ) { libfsapfs_extended_attribute_t *safe_extended_attribute = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_extended_attribute_by_utf16_name"; int extended_attribute_index = 0; int number_of_extended_attributes = 0; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( extended_attribute == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extended attribute.", function ); return( -1 ); } if( *extended_attribute != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid extended attribute value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_file_entry->extended_attributes, &number_of_extended_attributes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from extended attributes array.", function ); goto on_error; } for( extended_attribute_index = 0; extended_attribute_index < number_of_extended_attributes; extended_attribute_index++ ) { if( libcdata_array_get_entry_by_index( internal_file_entry->extended_attributes, extended_attribute_index, (intptr_t **) &safe_extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute: %d.", function, extended_attribute_index ); goto on_error; } result = libfsapfs_extended_attribute_compare_name_with_utf16_string( safe_extended_attribute, utf16_string, utf16_string_length, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compare UTF-16 string with name of extended attribute.", function ); goto on_error; } else if( result == LIBUNA_COMPARE_EQUAL ) { *extended_attribute = safe_extended_attribute; result = 1; break; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Determines the directory entries * Returns 1 if successful or -1 on error */ int libfsapfs_internal_file_entry_get_directory_entries( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_internal_file_entry_get_directory_entries"; uint64_t file_system_identifier = 0; int result = 0; if( internal_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( internal_file_entry->directory_entries != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry - directory entries value already set.", function ); return( -1 ); } if( libfsapfs_inode_get_identifier( internal_file_entry->inode, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier from inode.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_file_entry->directory_entries ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create directory entries array.", function ); goto on_error; } result = libfsapfs_file_system_btree_get_directory_entries( internal_file_entry->file_system_btree, internal_file_entry->file_io_handle, file_system_identifier, internal_file_entry->directory_entries, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entries from file system B-tree.", function ); goto on_error; } return( 1 ); on_error: if( internal_file_entry->directory_entries != NULL ) { libcdata_array_free( &( internal_file_entry->directory_entries ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_directory_record_free, NULL ); } return( -1 ); } /* Retrieves the number of sub file entries * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_number_of_sub_file_entries( libfsapfs_file_entry_t *file_entry, int *number_of_sub_file_entries, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_number_of_sub_file_entries"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->directory_entries == NULL ) { if( libfsapfs_internal_file_entry_get_directory_entries( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine directory entries.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_file_entry->directory_entries, number_of_sub_file_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the sub file entry for the specific index * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_sub_file_entry_by_index( libfsapfs_file_entry_t *file_entry, int sub_file_entry_index, libfsapfs_file_entry_t **sub_file_entry, libcerror_error_t **error ) { libfsapfs_directory_record_t *directory_record = NULL; libfsapfs_directory_record_t *directory_record_copy = NULL; libfsapfs_inode_t *inode = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_sub_file_entry_by_index"; uint64_t file_system_identifier = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( sub_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub file entry.", function ); return( -1 ); } if( *sub_file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sub file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->directory_entries == NULL ) { if( libfsapfs_internal_file_entry_get_directory_entries( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine directory entries.", function ); goto on_error; } } if( libcdata_array_get_entry_by_index( internal_file_entry->directory_entries, sub_file_entry_index, (intptr_t **) &directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve directory entry: %d.", function, sub_file_entry_index ); goto on_error; } if( libfsapfs_directory_record_get_identifier( directory_record, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file system identifier from directory entry: %d.", function, sub_file_entry_index ); goto on_error; } if( libfsapfs_file_system_btree_get_inode_by_identifier( internal_file_entry->file_system_btree, internal_file_entry->file_io_handle, file_system_identifier, &inode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode: %" PRIu64 " from file system B-tree.", function, file_system_identifier ); goto on_error; } if( libfsapfs_directory_record_clone( &directory_record_copy, directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create directory record copy.", function ); goto on_error; } if( libfsapfs_file_entry_initialize( sub_file_entry, internal_file_entry->io_handle, internal_file_entry->file_io_handle, internal_file_entry->encryption_context, internal_file_entry->file_system_btree, inode, directory_record_copy, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file entry.", function ); goto on_error; } inode = NULL; directory_record_copy = NULL; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: if( directory_record_copy != NULL ) { libfsapfs_directory_record_free( &directory_record_copy, NULL ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the sub file entry for an UTF-8 encoded name * Returns 1 if successful, 0 if no such file entry or -1 on error */ int libfsapfs_file_entry_get_sub_file_entry_by_utf8_name( libfsapfs_file_entry_t *file_entry, const uint8_t *utf8_string, size_t utf8_string_length, libfsapfs_file_entry_t **sub_file_entry, libcerror_error_t **error ) { libfsapfs_directory_record_t *directory_record = NULL; libfsapfs_inode_t *inode = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_sub_file_entry_by_utf8_name"; uint64_t file_system_identifier = 0; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( sub_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub file entry.", function ); return( -1 ); } if( *sub_file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sub file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_identifier( internal_file_entry->inode, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier.", function ); goto on_error; } result = libfsapfs_file_system_btree_get_inode_by_utf8_path( internal_file_entry->file_system_btree, internal_file_entry->file_io_handle, file_system_identifier, utf8_string, utf8_string_length, &inode, &directory_record, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode from file system B-tree.", function ); goto on_error; } else if( result != 0 ) { if( libfsapfs_file_entry_initialize( sub_file_entry, internal_file_entry->io_handle, internal_file_entry->file_io_handle, internal_file_entry->encryption_context, internal_file_entry->file_system_btree, inode, directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub file entry.", function ); goto on_error; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the sub file entry for an UTF-16 encoded name * Returns 1 if successful, 0 if no such file entry or -1 on error */ int libfsapfs_file_entry_get_sub_file_entry_by_utf16_name( libfsapfs_file_entry_t *file_entry, const uint16_t *utf16_string, size_t utf16_string_length, libfsapfs_file_entry_t **sub_file_entry, libcerror_error_t **error ) { libfsapfs_directory_record_t *directory_record = NULL; libfsapfs_inode_t *inode = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_sub_file_entry_by_utf16_name"; uint64_t file_system_identifier = 0; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( sub_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub file entry.", function ); return( -1 ); } if( *sub_file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sub file entry value already set.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libfsapfs_inode_get_identifier( internal_file_entry->inode, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier.", function ); goto on_error; } result = libfsapfs_file_system_btree_get_inode_by_utf16_path( internal_file_entry->file_system_btree, internal_file_entry->file_io_handle, file_system_identifier, utf16_string, utf16_string_length, &inode, &directory_record, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode from file system B-tree.", function ); goto on_error; } else if( result != 0 ) { if( libfsapfs_file_entry_initialize( sub_file_entry, internal_file_entry->io_handle, internal_file_entry->file_io_handle, internal_file_entry->encryption_context, internal_file_entry->file_system_btree, inode, directory_record, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub file entry.", function ); goto on_error; } } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: if( directory_record != NULL ) { libfsapfs_directory_record_free( &directory_record, NULL ); } if( inode != NULL ) { libfsapfs_inode_free( &inode, NULL ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Determines the file extents * Returns 1 if successful or -1 on error */ int libfsapfs_internal_file_entry_get_file_extents( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ) { static char *function = "libfsapfs_internal_file_entry_get_file_extents"; uint64_t file_system_identifier = 0; int result = 0; if( internal_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( internal_file_entry->file_extents != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry - file extents value already set.", function ); return( -1 ); } if( libfsapfs_inode_get_data_stream_identifier( internal_file_entry->inode, &file_system_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data stream identifier from inode.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_file_entry->file_extents ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file extents array.", function ); goto on_error; } result = libfsapfs_file_system_btree_get_file_extents( internal_file_entry->file_system_btree, internal_file_entry->file_io_handle, file_system_identifier, internal_file_entry->file_extents, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extents from file system B-tree.", function ); goto on_error; } return( 1 ); on_error: if( internal_file_entry->file_extents != NULL ) { libcdata_array_free( &( internal_file_entry->file_extents ), (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_file_extent_free, NULL ); } return( -1 ); } /* Determines the data stream * Returns 1 if successful or -1 on error */ int libfsapfs_internal_file_entry_get_data_stream( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ) { libfdata_stream_t *compressed_data_stream = NULL; static char *function = "libfsapfs_internal_file_entry_get_data_stream"; uint64_t data_stream_size = 0; uint64_t inode_flags = 0; uint8_t is_sparse = 0; int compression_method = 0; if( internal_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( internal_file_entry->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid internal file entry - missing IO handle.", function ); return( -1 ); } if( internal_file_entry->data_stream != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry - data stream value already set.", function ); return( -1 ); } if( internal_file_entry->file_size == (size64_t) -1 ) { if( libfsapfs_internal_file_entry_get_file_size( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file size.", function ); goto on_error; } } if( ( internal_file_entry->compression_method == 3 ) || ( internal_file_entry->compression_method == 4 ) ) { compression_method = LIBFSAPFS_COMPRESSION_METHOD_DEFLATE; } else if( internal_file_entry->compression_method == 5 ) { compression_method = LIBFSAPFS_COMPRESSION_METHOD_UNKNOWN5; } else if( ( internal_file_entry->compression_method == 7 ) || ( internal_file_entry->compression_method == 8 ) ) { compression_method = LIBFSAPFS_COMPRESSION_METHOD_LZVN; } else if( internal_file_entry->compression_method != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported compression method: %d.", function, internal_file_entry->compression_method ); goto on_error; } if( internal_file_entry->compression_method == 0 ) { if( internal_file_entry->file_extents == NULL ) { if( libfsapfs_internal_file_entry_get_file_extents( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file extents.", function ); goto on_error; } } if( libfsapfs_inode_get_flags( internal_file_entry->inode, &inode_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve flags from inode.", function ); goto on_error; } if( libfsapfs_inode_get_data_stream_size( internal_file_entry->inode, &data_stream_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data stream size from inode.", function ); goto on_error; } is_sparse = (uint8_t) ( ( inode_flags & 0x00000200 ) != 0 ); if( libfsapfs_data_stream_initialize_from_file_extents( &( internal_file_entry->data_stream ), internal_file_entry->io_handle, internal_file_entry->encryption_context, internal_file_entry->file_extents, (size64_t) data_stream_size, is_sparse, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data stream from file extents.", function ); goto on_error; } } else { if( ( internal_file_entry->compression_method == 4 ) || ( internal_file_entry->compression_method == 8 ) ) { if( libfsapfs_extended_attribute_get_data_stream( internal_file_entry->resource_fork_extended_attribute, &compressed_data_stream, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data stream from resource fork extended attribute.", function ); goto on_error; } } else { if( libfsapfs_extended_attribute_get_data_stream( internal_file_entry->compressed_data_extended_attribute, &compressed_data_stream, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data stream from compressed data extended attribute.", function ); goto on_error; } } if( libfsapfs_data_stream_initialize_from_compressed_data_stream( &( internal_file_entry->data_stream ), compressed_data_stream, internal_file_entry->file_size, compression_method, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data stream from compressed data stream.", function ); goto on_error; } } return( 1 ); on_error: if( internal_file_entry->data_stream != NULL ) { libfdata_stream_free( &( internal_file_entry->data_stream ), NULL ); } return( -1 ); } /* Reads data at the current offset into a buffer * Returns the number of bytes read or -1 on error */ ssize_t libfsapfs_file_entry_read_buffer( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_read_buffer"; ssize_t read_count = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->data_stream == NULL ) { if( libfsapfs_internal_file_entry_get_data_stream( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } read_count = libfdata_stream_read_buffer( internal_file_entry->data_stream, (intptr_t *) internal_file_entry->file_io_handle, (uint8_t *) buffer, buffer_size, 0, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer from data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( read_count ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Reads data at a specific offset * Returns the number of bytes read or -1 on error */ ssize_t libfsapfs_file_entry_read_buffer_at_offset( libfsapfs_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_read_buffer_at_offset"; ssize_t read_count = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->data_stream == NULL ) { if( libfsapfs_internal_file_entry_get_data_stream( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } read_count = libfdata_stream_read_buffer_at_offset( internal_file_entry->data_stream, (intptr_t *) internal_file_entry->file_io_handle, (uint8_t *) buffer, buffer_size, offset, 0, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer at offset from data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( read_count ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Seeks a certain offset * Returns the offset if seek is successful or -1 on error */ off64_t libfsapfs_file_entry_seek_offset( libfsapfs_file_entry_t *file_entry, off64_t offset, int whence, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_seek_offset"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->data_stream == NULL ) { if( libfsapfs_internal_file_entry_get_data_stream( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } offset = libfdata_stream_seek_offset( internal_file_entry->data_stream, offset, whence, error ); if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset in data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( offset ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the current offset * Returns the offset if successful or -1 on error */ int libfsapfs_file_entry_get_offset( libfsapfs_file_entry_t *file_entry, off64_t *offset, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_offset"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->data_stream == NULL ) { if( libfsapfs_internal_file_entry_get_data_stream( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine data stream.", function ); goto on_error; } } if( libfdata_stream_get_offset( internal_file_entry->data_stream, offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve offset from data stream.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Determines the file size * Returns 1 if successful or -1 on error */ int libfsapfs_internal_file_entry_get_file_size( libfsapfs_internal_file_entry_t *internal_file_entry, libcerror_error_t **error ) { uint8_t extended_attribute_data[ 16 ]; static char *function = "libfsapfs_internal_file_entry_get_file_size"; ssize_t read_count = 0; if( internal_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( internal_file_entry->file_size != (size64_t) -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry - file size value already set.", function ); return( -1 ); } if( internal_file_entry->extended_attributes == NULL ) { if( libfsapfs_internal_file_entry_get_extended_attributes( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine extended attributes.", function ); return( -1 ); } } if( internal_file_entry->compressed_data_extended_attribute != NULL ) { read_count = libfsapfs_extended_attribute_read_buffer_at_offset( internal_file_entry->compressed_data_extended_attribute, extended_attribute_data, 16, 0, error ); if( read_count != (ssize_t) 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read extended attribute data.", function ); return( -1 ); } if( memory_compare( extended_attribute_data, "fpmc", 4 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid compressed data header signature.", function ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_file_system_extended_attribute_compression_header_t *) extended_attribute_data )->compression_method, internal_file_entry->compression_method ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_file_system_extended_attribute_compression_header_t *) extended_attribute_data )->uncompressed_data_size, internal_file_entry->file_size ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: signature\t\t\t: %c%c%c%c\n", function, extended_attribute_data[ 0 ], extended_attribute_data[ 1 ], extended_attribute_data[ 2 ], extended_attribute_data[ 3 ] ); libcnotify_printf( "%s: compression method\t\t: %" PRIu32 "\n", function, internal_file_entry->compression_method ); libcnotify_printf( "%s: uncompressed data size\t: %" PRIu64 "\n", function, internal_file_entry->file_size ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ } else { if( libfsapfs_inode_get_data_stream_size( internal_file_entry->inode, &( internal_file_entry->file_size ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data stream size from inode.", function ); return( -1 ); } } return( 1 ); } /* Retrieves the size of the data stream object * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_size( libfsapfs_file_entry_t *file_entry, size64_t *size, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_size"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->file_size == (size64_t) -1 ) { if( libfsapfs_internal_file_entry_get_file_size( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file size.", function ); goto on_error; } } *size = internal_file_entry->file_size; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the number of extents * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_number_of_extents( libfsapfs_file_entry_t *file_entry, int *number_of_extents, libcerror_error_t **error ) { libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_number_of_extents"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->file_extents == NULL ) { if( libfsapfs_internal_file_entry_get_file_extents( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file extents.", function ); goto on_error; } } if( libcdata_array_get_number_of_entries( internal_file_entry->file_extents, number_of_extents, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from array.", function ); goto on_error; } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves a specific extent * Returns 1 if successful or -1 on error */ int libfsapfs_file_entry_get_extent_by_index( libfsapfs_file_entry_t *file_entry, int extent_index, off64_t *extent_offset, size64_t *extent_size, uint32_t *extent_flags, libcerror_error_t **error ) { libfsapfs_file_extent_t *file_extent = NULL; libfsapfs_internal_file_entry_t *internal_file_entry = NULL; static char *function = "libfsapfs_file_entry_get_extent_by_index"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } internal_file_entry = (libfsapfs_internal_file_entry_t *) file_entry; if( internal_file_entry->io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid internal file entry - missing IO handle.", function ); return( -1 ); } if( extent_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extent offset.", function ); return( -1 ); } if( extent_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extent size.", function ); return( -1 ); } if( extent_flags == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid extent flags.", function ); return( -1 ); } #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_grab_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_file_entry->file_extents == NULL ) { if( libfsapfs_internal_file_entry_get_file_extents( internal_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine file extents.", function ); goto on_error; } } if( libcdata_array_get_entry_by_index( internal_file_entry->file_extents, extent_index, (intptr_t **) &file_extent, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file extent: %d.", function, extent_index ); goto on_error; } if( file_extent == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing file extent: %d.", function, extent_index ); goto on_error; } *extent_offset = file_extent->physical_block_number * internal_file_entry->io_handle->block_size; *extent_size = file_extent->data_size; *extent_flags = 0; #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) if( libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) libcthreads_read_write_lock_release_for_write( internal_file_entry->read_write_lock, NULL ); #endif return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_encryption_context.h0000664000175000017500000000462513426637446026162 0ustar00lordyestalordyesta00000000000000/* * Encryption functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_ENCRYPTION_H ) #define _LIBFSAPFS_ENCRYPTION_H #include #include #include "libfsapfs_libcaes.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_encryption_context libfsapfs_encryption_context_t; struct libfsapfs_encryption_context { /* The encryption method */ uint32_t method; /* The AES-XTS decryption context */ libcaes_tweaked_context_t *decryption_context; }; int libfsapfs_encryption_context_initialize( libfsapfs_encryption_context_t **context, uint32_t method, libcerror_error_t **error ); int libfsapfs_encryption_context_free( libfsapfs_encryption_context_t **context, libcerror_error_t **error ); int libfsapfs_encryption_context_set_keys( libfsapfs_encryption_context_t *context, const uint8_t *key, size_t key_size, const uint8_t *tweak_key, size_t tweak_key_size, libcerror_error_t **error ); int libfsapfs_encryption_context_crypt( libfsapfs_encryption_context_t *context, int mode, const uint8_t *input_data, size_t input_data_size, uint8_t *output_data, size_t output_data_size, uint64_t sector_number, uint16_t bytes_per_sector, libcerror_error_t **error ); int libfsapfs_encryption_aes_key_unwrap( const uint8_t *key, size_t key_size_bits, const uint8_t *wrapped_data, size_t wrapped_data_size, uint8_t *unwrapped_data, size_t unwrapped_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_ENCRYPTION_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_object_map.h0000664000175000017500000000572413426637446023641 0ustar00lordyestalordyesta00000000000000/* * The APFS object map definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_OBJECT_MAP_H ) #define _FSAPFS_OBJECT_MAP_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_object_map fsapfs_object_map_t; struct fsapfs_object_map { /* The object checksum * Consists of 8 bytes */ uint8_t object_checksum[ 8 ]; /* The object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; /* The object type * Consists of 4 bytes */ uint8_t object_type[ 4 ]; /* The object subtype * Consists of 4 bytes */ uint8_t object_subtype[ 4 ]; /* The flags * Consists of 4 bytes */ uint8_t flags[ 4 ]; /* The number of snapshots * Consists of 4 bytes */ uint8_t number_of_snapshots[ 4 ]; /* The B-tree type * Consists of 4 bytes */ uint8_t btree_type[ 4 ]; /* The snapshots B-tree type * Consists of 4 bytes */ uint8_t snaphots_btree_type[ 4 ]; /* The B-tree block number * Consists of 8 bytes */ uint8_t btree_block_number[ 8 ]; /* The snapshots B-tree block number * Consists of 8 bytes */ uint8_t snapshots_btree_block_number[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown1[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown2[ 8 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown3[ 8 ]; }; typedef struct fsapfs_object_map_btree_key fsapfs_object_map_btree_key_t; struct fsapfs_object_map_btree_key { /* The key object identifier * Consists of 8 bytes */ uint8_t object_identifier[ 8 ]; /* The key object transaction identifier * Consists of 8 bytes */ uint8_t object_transaction_identifier[ 8 ]; }; typedef struct fsapfs_object_map_btree_value fsapfs_object_map_btree_value_t; struct fsapfs_object_map_btree_value { /* The object flags * Consists of 4 bytes */ uint8_t object_flags[ 4 ]; /* The object size * Consists of 4 bytes */ uint8_t object_size[ 4 ]; /* The object physical address * Consists of 8 bytes */ uint8_t object_physical_address[ 8 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_OBJECT_MAP_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_compression.c0000664000175000017500000002171013426637446024552 0ustar00lordyestalordyesta00000000000000/* * Compression functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_ZLIB ) || defined( ZLIB_DLL ) #include #endif #include "libfsapfs_compression.h" #include "libfsapfs_definitions.h" #include "libfsapfs_deflate.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_lzvn.h" /* Decompresses data using the compression method * Returns 1 on success, 0 on failure or -1 on error */ int libfsapfs_decompress_data( const uint8_t *compressed_data, size_t compressed_data_size, int compression_method, uint8_t *uncompressed_data, size_t *uncompressed_data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_decompress_data"; int result = 0; #if ( defined( HAVE_ZLIB ) && defined( HAVE_ZLIB_UNCOMPRESS ) ) || defined( ZLIB_DLL ) uLongf zlib_uncompressed_data_size = 0; #endif if( compressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid compressed data buffer.", function ); return( -1 ); } if( uncompressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data buffer.", function ); return( -1 ); } if( uncompressed_data == compressed_data ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid compressed data buffer equals uncompressed data buffer.", function ); return( -1 ); } if( uncompressed_data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data size.", function ); return( -1 ); } if( compression_method == LIBFSAPFS_COMPRESSION_METHOD_DEFLATE ) { if( ( compressed_data_size >= 1 ) && ( compressed_data[ 0 ] == 0xff ) ) { if( compressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid compressed data size value exceeds maximum.", function ); return( -1 ); } if( *uncompressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid uncompressed data size value exceeds maximum.", function ); return( -1 ); } if( ( compressed_data_size - 1 ) > *uncompressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: compressed data size value exceeds uncompressed data size.", function ); return( -1 ); } *uncompressed_data_size = compressed_data_size - 1; if( memory_copy( uncompressed_data, &( compressed_data[ 1 ] ), *uncompressed_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to compressed to uncompressed data.", function ); return( -1 ); } result = 1; } else { #if ( defined( HAVE_ZLIB ) && defined( HAVE_ZLIB_UNCOMPRESS ) ) || defined( ZLIB_DLL ) if( compressed_data_size > (size_t) ULONG_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid compressed data size value exceeds maximum.", function ); return( -1 ); } if( *uncompressed_data_size > (size_t) ULONG_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid uncompressed data size value exceeds maximum.", function ); return( -1 ); } zlib_uncompressed_data_size = (uLongf) *uncompressed_data_size; result = uncompress( (Bytef *) uncompressed_data, &zlib_uncompressed_data_size, (Bytef *) compressed_data, (uLong) compressed_data_size ); if( result == Z_OK ) { *uncompressed_data_size = (size_t) zlib_uncompressed_data_size; result = 1; } else if( result == Z_DATA_ERROR ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unable to read compressed data: data error.\n", function ); } #endif *uncompressed_data_size = 0; result = -1; } else if( result == Z_BUF_ERROR ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: unable to read compressed data: target buffer too small.\n", function ); } #endif /* Estimate that a factor 2 enlargement should suffice */ *uncompressed_data_size *= 2; result = 0; } else if( result == Z_MEM_ERROR ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to read compressed data: insufficient memory.", function ); *uncompressed_data_size = 0; result = -1; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_COMPRESSION, LIBCERROR_COMPRESSION_ERROR_DECOMPRESS_FAILED, "%s: zlib returned undefined error: %d.", function, result ); *uncompressed_data_size = 0; result = -1; } #else result = libfsapfs_deflate_decompress( compressed_data, compressed_data_size, uncompressed_data, uncompressed_data_size, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to decompress DEFLATE compressed data.", function ); return( -1 ); } #endif /* ( defined( HAVE_ZLIB ) && defined( HAVE_ZLIB_UNCOMPRESS ) ) || defined( ZLIB_DLL ) */ } } else if( compression_method == LIBFSAPFS_COMPRESSION_METHOD_LZVN ) { if( ( compressed_data_size >= 1 ) && ( compressed_data[ 0 ] == 0x06 ) ) { if( compressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid compressed data size value exceeds maximum.", function ); return( -1 ); } if( *uncompressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid uncompressed data size value exceeds maximum.", function ); return( -1 ); } if( ( compressed_data_size - 1 ) > *uncompressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: compressed data size value exceeds uncompressed data size.", function ); return( -1 ); } *uncompressed_data_size = compressed_data_size - 1; if( memory_copy( uncompressed_data, &( compressed_data[ 1 ] ), *uncompressed_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to compressed to uncompressed data.", function ); return( -1 ); } result = 1; } else { result = libfsapfs_lzvn_decompress( compressed_data, compressed_data_size, uncompressed_data, uncompressed_data_size, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ENCRYPTION, LIBCERROR_ENCRYPTION_ERROR_GENERIC, "%s: unable to decompress LZVN compressed data.", function ); return( -1 ); } } } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported compression method.", function ); return( -1 ); } return( result ); } libfsapfs-20190210/libfsapfs/fsapfs_object.h0000664000175000017500000000272713426637446023004 0ustar00lordyestalordyesta00000000000000/* * The APFS object definition * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_OBJECT_H ) #define _FSAPFS_OBJECT_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_object fsapfs_object_t; struct fsapfs_object { /* The checksum * Consists of 8 bytes */ uint8_t checksum[ 8 ]; /* The identifier * Consists of 8 bytes */ uint8_t identifier[ 8 ]; /* The transaction identifier * Consists of 8 bytes */ uint8_t transaction_identifier[ 8 ]; /* The type * Consists of 4 bytes */ uint8_t type[ 4 ]; /* The subtype * Consists of 4 bytes */ uint8_t subtype[ 4 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_OBJECT_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_checksum.h0000664000175000017500000000325113426637446024020 0ustar00lordyestalordyesta00000000000000/* * Checksum functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_CHECKSUM_H ) #define _LIBFSAPFS_CHECKSUM_H #include #include #include "libfsapfs_libcerror.h" #include "libfsapfs_extern.h" #if defined( __cplusplus ) extern "C" { #endif LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_checksum_crc32_table[ 256 ]; LIBFSAPFS_EXTERN_VARIABLE \ int libfsapfs_checksum_crc32_table_computed; void libfsapfs_checksum_initialize_crc32_table( uint32_t polynomial ); int libfsapfs_checksum_calculate_weak_crc32( uint32_t *checksum, const uint8_t *buffer, size_t size, uint32_t initial_value, libcerror_error_t **error ); int libfsapfs_checksum_calculate_fletcher64( uint64_t *checksum, const uint8_t *buffer, size_t size, uint64_t initial_value, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_CHECKSUM_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_password.c0000664000175000017500000002202613426637446024054 0ustar00lordyestalordyesta00000000000000/* * Password functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_definitions.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libhmac.h" #include "libfsapfs_password.h" /* Compute a PBKDF2-derived key from the given input. * Returns 1 if successful or -1 on error */ int libfsapfs_password_pbkdf2( const uint8_t *password, size_t password_size, const uint8_t *salt, size_t salt_size, uint32_t number_of_iterations, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ) { uint8_t hash_buffer[ LIBHMAC_SHA256_HASH_SIZE ]; uint8_t *data_buffer = NULL; uint8_t *output_ptr = NULL; static char *function = "libfsapfs_password_pbkdf2"; size_t block_offset = 0; size_t data_buffer_size = 0; size_t hash_size = LIBHMAC_SHA256_HASH_SIZE; size_t remaining_data_size = 0; uint32_t block_index = 0; uint32_t byte_index = 0; uint32_t number_of_blocks = 0; uint32_t password_iterator = 0; int result = 0; if( password == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid password.", function ); return( -1 ); } if( password_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid password size value exceeds maximum.", function ); return( -1 ); } if( salt == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid salt.", function ); return( -1 ); } if( salt_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid salt size value exceeds maximum.", function ); return( -1 ); } if( number_of_iterations == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid number of iterations value zero or less.", function ); return( -1 ); } if( output_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid output data.", function ); return( -1 ); } if( output_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid output data size value exceeds maximum.", function ); return( -1 ); } if( memory_set( output_data, 0, output_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to clear output data.", function ); goto on_error; } /* TODO add bounds check */ number_of_blocks = output_data_size / hash_size; remaining_data_size = output_data_size - ( number_of_blocks * hash_size ); data_buffer_size = salt_size + 4; data_buffer = (uint8_t *) memory_allocate( sizeof( uint8_t ) * data_buffer_size ); if( data_buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create data buffer.", function ); goto on_error; } if( memory_set( data_buffer, 0, data_buffer_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to clear data buffer.", function ); goto on_error; } if( memory_copy( data_buffer, salt, salt_size ) == NULL) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy salt into data buffer.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: password:\n", function ); libcnotify_print_data( password, password_size, 0 ); libcnotify_printf( "%s: data buffer:\n", function ); libcnotify_print_data( data_buffer, data_buffer_size, 0 ); libcnotify_printf( "%s: number of iterations\t\t\t\t: %" PRIu32 "\n", function, number_of_iterations ); libcnotify_printf( "%s: number of blocks\t\t\t\t: %" PRIu32 "\n", function, number_of_blocks ); libcnotify_printf( "%s: remaining data size\t\t\t\t: %" PRIzd "\n", function, remaining_data_size ); libcnotify_printf( "\n" ); } #endif for( block_index = 0; block_index < number_of_blocks; block_index++ ) { output_ptr = &( output_data[ block_offset ] ); byte_stream_copy_from_uint32_big_endian( &( data_buffer[ salt_size ] ), block_index + 1 ); result = libhmac_sha256_calculate_hmac( password, password_size, data_buffer, data_buffer_size, hash_buffer, hash_size, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compute initial hmac for block %d.", function, block_index ); goto on_error; } if( memory_copy( output_ptr, hash_buffer, hash_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy hash buffer into output data.", function ); goto on_error; } for( password_iterator = 0; password_iterator < number_of_iterations - 1; password_iterator++ ) { result = libhmac_sha256_calculate_hmac( password, password_size, hash_buffer, hash_size, hash_buffer, hash_size, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compute initial hmac for block %d.", function, block_index); goto on_error; } for( byte_index = 0; byte_index < hash_size; byte_index++ ) { output_ptr[ byte_index ] ^= hash_buffer[ byte_index ]; } } block_offset += hash_size; } if( remaining_data_size > 0 ) { output_ptr = &( output_data[ block_offset ] ); byte_stream_copy_from_uint32_big_endian( &( data_buffer[ salt_size ] ), block_index + 1 ); result = libhmac_sha256_calculate_hmac( password, password_size, data_buffer, data_buffer_size, hash_buffer, hash_size, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compute initial hmac for block %d.", function, block_index); goto on_error; } if( memory_copy( output_ptr, hash_buffer, remaining_data_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy hash buffer into output data in last block.", function ); goto on_error; } for( password_iterator = 0; password_iterator < number_of_iterations - 1; password_iterator++ ) { result = libhmac_sha256_calculate_hmac( password, password_size, hash_buffer, hash_size, hash_buffer, hash_size, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GENERIC, "%s: unable to compute initial hmac for block %d.", function, block_index ); goto on_error; } for( byte_index = 0; byte_index < remaining_data_size; byte_index++ ) { output_ptr[ byte_index ] ^= hash_buffer[ byte_index ]; } } } if( data_buffer != NULL ) { memory_free( data_buffer ); } return( 1 ); on_error: if( data_buffer != NULL ) { memory_free( data_buffer ); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_libfdata.h0000664000175000017500000000314513426637446023766 0ustar00lordyestalordyesta00000000000000/* * The libfdata header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBFDATA_H ) #define _LIBFSAPFS_LIBFDATA_H #include /* Define HAVE_LOCAL_LIBFDATA for local use of libfdata */ #if defined( HAVE_LOCAL_LIBFDATA ) #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBFDATA_DLL_IMPORT * before including libfdata.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBFDATA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFDATA ) */ #endif /* !defined( _LIBFSAPFS_LIBFDATA_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libcthreads.h0000664000175000017500000000361613426637446024507 0ustar00lordyestalordyesta00000000000000/* * The libcthreads header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBCTHREADS_H ) #define _LIBFSAPFS_LIBCTHREADS_H #include #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBFSAPFS ) #define HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT #endif #if defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) /* Define HAVE_LOCAL_LIBCTHREADS for local use of libcthreads */ #if defined( HAVE_LOCAL_LIBCTHREADS ) #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCTHREADS_DLL_IMPORT * before including libcthreads.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCTHREADS_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCTHREADS ) */ #endif /* defined( HAVE_LIBFSAPFS_MULTI_THREAD_SUPPORT ) */ #endif /* !defined( _LIBFSAPFS_LIBCTHREADS_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_data_stream.c0000664000175000017500000002165313426637446024503 0ustar00lordyestalordyesta00000000000000/* * Data stream functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libfsapfs_buffer_data_handle.h" #include "libfsapfs_compressed_data_handle.h" #include "libfsapfs_data_block_data_handle.h" #include "libfsapfs_data_stream.h" #include "libfsapfs_encryption_context.h" #include "libfsapfs_file_extent.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libfdata.h" /* Creates data stream from a buffer of data * Make sure the value data_stream is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_data_stream_initialize_from_data( libfdata_stream_t **data_stream, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { libfsapfs_buffer_data_handle_t *data_handle = NULL; static char *function = "libfsapfs_data_stream_initialize_from_data"; int segment_index = 0; if( data_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data stream attribute.", function ); return( -1 ); } if( libfsapfs_buffer_data_handle_initialize( &data_handle, data, data_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create buffer data handle.", function ); goto on_error; } if( libfdata_stream_initialize( data_stream, (intptr_t *) data_handle, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_buffer_data_handle_free, NULL, NULL, (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libfsapfs_buffer_data_handle_read_segment_data, NULL, (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libfsapfs_buffer_data_handle_seek_segment_offset, LIBFDATA_DATA_HANDLE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data stream.", function ); goto on_error; } data_handle = NULL; if( libfdata_stream_append_segment( *data_stream, &segment_index, 0, 0, (size64_t) data_size, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append data stream segment.", function ); goto on_error; } return( 1 ); on_error: if( *data_stream != NULL ) { libfdata_stream_free( data_stream, NULL ); } if( data_handle != NULL ) { libfsapfs_buffer_data_handle_free( &data_handle, NULL ); } return( -1 ); } /* Creates data stream from file extents * Make sure the value data_stream is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_data_stream_initialize_from_file_extents( libfdata_stream_t **data_stream, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libcdata_array_t *file_extents, size64_t data_stream_size, uint8_t is_sparse, libcerror_error_t **error ) { libfsapfs_data_block_data_handle_t *data_handle = NULL; static char *function = "libfsapfs_data_stream_initialize_from_file_extents"; int segment_index = 0; if( data_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data stream attribute.", function ); return( -1 ); } if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } if( libfsapfs_data_block_data_handle_initialize( &data_handle, io_handle, encryption_context, file_extents, is_sparse, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data handle.", function ); goto on_error; } if( libfdata_stream_initialize( data_stream, (intptr_t *) data_handle, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_data_block_data_handle_free, NULL, NULL, (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libfsapfs_data_block_data_handle_read_segment_data, NULL, (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libfsapfs_data_block_data_handle_seek_segment_offset, LIBFDATA_DATA_HANDLE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data stream.", function ); goto on_error; } data_handle = NULL; if( libfdata_stream_append_segment( *data_stream, &segment_index, 0, 0, data_stream_size, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append data stream segment.", function ); goto on_error; } return( 1 ); on_error: if( *data_stream != NULL ) { libfdata_stream_free( data_stream, NULL ); } if( data_handle != NULL ) { libfsapfs_data_block_data_handle_free( &data_handle, NULL ); } return( -1 ); } /* Creates data stream from a compressed data stream * Make sure the value data_stream is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_data_stream_initialize_from_compressed_data_stream( libfdata_stream_t **data_stream, libfdata_stream_t *compressed_data_stream, size64_t uncompressed_data_size, int compression_method, libcerror_error_t **error ) { libfsapfs_compressed_data_handle_t *data_handle = NULL; static char *function = "libfsapfs_data_stream_initialize_from_compressed_data_stream"; int segment_index = 0; if( data_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data stream attribute.", function ); return( -1 ); } if( libfsapfs_compressed_data_handle_initialize( &data_handle, compressed_data_stream, uncompressed_data_size, compression_method, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create compressed data handle.", function ); goto on_error; } if( libfdata_stream_initialize( data_stream, (intptr_t *) data_handle, (int (*)(intptr_t **, libcerror_error_t **)) &libfsapfs_compressed_data_handle_free, NULL, NULL, (ssize_t (*)(intptr_t *, intptr_t *, int, int, uint8_t *, size_t, uint32_t, uint8_t, libcerror_error_t **)) &libfsapfs_compressed_data_handle_read_segment_data, NULL, (off64_t (*)(intptr_t *, intptr_t *, int, int, off64_t, libcerror_error_t **)) &libfsapfs_compressed_data_handle_seek_segment_offset, LIBFDATA_DATA_HANDLE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data stream.", function ); goto on_error; } data_handle = NULL; if( libfdata_stream_append_segment( *data_stream, &segment_index, 0, 0, uncompressed_data_size, LIBFDATA_RANGE_FLAG_IS_COMPRESSED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append data as data stream segment.", function ); goto on_error; } return( 1 ); on_error: if( *data_stream != NULL ) { libfdata_stream_free( data_stream, NULL ); } if( data_handle != NULL ) { libfsapfs_compressed_data_handle_free( &data_handle, NULL ); } return( -1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_password.h0000664000175000017500000000250713426637446024063 0ustar00lordyestalordyesta00000000000000/* * Password functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_PASSWORD_H ) #define _LIBFSAPFS_PASSWORD_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int libfsapfs_password_pbkdf2( const uint8_t *password, size_t password_size, const uint8_t *salt, size_t salt_size, uint32_t number_of_iterations, uint8_t *output_data, size_t output_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_PASSWORD_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_btree_node.h0000664000175000017500000000513413426637446024326 0ustar00lordyestalordyesta00000000000000/* * The B-tree node functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_BTREE_NODE_H ) #define _LIBFSAPFS_BTREE_NODE_H #include #include #include "libfsapfs_btree_entry.h" #include "libfsapfs_btree_footer.h" #include "libfsapfs_btree_node_header.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_btree_node libfsapfs_btree_node_t; struct libfsapfs_btree_node { /* The object type */ uint32_t object_type; /* The object subtype */ uint32_t object_subtype; /* The B-tree header */ libfsapfs_btree_node_header_t *node_header; /* The B-tree footer */ libfsapfs_btree_footer_t *footer; /* The B-tree entries array */ libcdata_array_t *entries_array; }; int libfsapfs_btree_node_initialize( libfsapfs_btree_node_t **btree_node, libcerror_error_t **error ); int libfsapfs_btree_node_free( libfsapfs_btree_node_t **btree_node, libcerror_error_t **error ); int libfsapfs_btree_node_read_data( libfsapfs_btree_node_t *btree_node, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_btree_node_read_object_data( libfsapfs_btree_node_t *btree_node, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_btree_node_is_leaf_node( libfsapfs_btree_node_t *btree_node, libcerror_error_t **error ); int libfsapfs_btree_node_get_number_of_entries( libfsapfs_btree_node_t *btree_node, int *number_of_entries, libcerror_error_t **error ); int libfsapfs_btree_node_get_entry_by_index( libfsapfs_btree_node_t *btree_node, int entry_index, libfsapfs_btree_entry_t **btree_entry, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_BTREE_NODE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_compressed_data_handle.h0000664000175000017500000000637713426637446026702 0ustar00lordyestalordyesta00000000000000/* * The compressed data handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_COMPRESSED_DATA_HANDLE_H ) #define _LIBFSAPFS_COMPRESSED_DATA_HANDLE_H #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libfdata.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_compressed_data_handle libfsapfs_compressed_data_handle_t; struct libfsapfs_compressed_data_handle { /* The current segment offset */ off64_t current_segment_offset; /* The compressed data steam */ libfdata_stream_t *compressed_data_stream; /* The uncompressed data size */ size64_t uncompressed_data_size; /* The compression method */ int compression_method; /* The current compressed block index */ uint32_t current_compressed_block_index; /* The compressed segment data */ uint8_t *compressed_segment_data; /* The (uncompressed) segment data */ uint8_t *segment_data; /* The (uncompressed) segment data size */ size_t segment_data_size; /* The number of compressed blocks */ uint32_t number_of_compressed_blocks; /* The compressed block offsets */ uint32_t *compressed_block_offsets; }; int libfsapfs_compressed_data_handle_initialize( libfsapfs_compressed_data_handle_t **data_handle, libfdata_stream_t *compressed_data_stream, size64_t uncompressed_data_size, int compression_method, libcerror_error_t **error ); int libfsapfs_compressed_data_handle_free( libfsapfs_compressed_data_handle_t **data_handle, libcerror_error_t **error ); int libfsapfs_compressed_data_handle_get_compressed_block_offsets( libfsapfs_compressed_data_handle_t *data_handle, libbfio_handle_t *file_io_handle, libcerror_error_t **error ); ssize_t libfsapfs_compressed_data_handle_read_segment_data( libfsapfs_compressed_data_handle_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t read_flags, libcerror_error_t **error ); off64_t libfsapfs_compressed_data_handle_seek_segment_offset( libfsapfs_compressed_data_handle_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, off64_t segment_offset, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_COMPRESSED_DATA_HANDLE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_types.h0000664000175000017500000000347513426637446023372 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_INTERNAL_TYPES_H ) #define _LIBFSAPFS_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBFSAPFS for local use of libfsapfs * The definitions in are copied here * for local use of libfsapfs */ #if defined( HAVE_LOCAL_LIBFSAPFS ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libfsapfs_container {} libfsapfs_container_t; typedef struct libfsapfs_extended_attribute {} libfsapfs_extended_attribute_t; typedef struct libfsapfs_file_entry {} libfsapfs_file_entry_t; typedef struct libfsapfs_volume {} libfsapfs_volume_t; #else typedef intptr_t libfsapfs_container_t; typedef intptr_t libfsapfs_extended_attribute_t; typedef intptr_t libfsapfs_file_entry_t; typedef intptr_t libfsapfs_volume_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBFSAPFS ) */ #endif /* !defined( _LIBFSAPFS_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libcdata.h0000664000175000017500000000302113426637446023754 0ustar00lordyestalordyesta00000000000000/* * The libcdata header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBCDATA_H ) #define _LIBFSAPFS_LIBCDATA_H #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata */ #if defined( HAVE_LOCAL_LIBCDATA ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCDATA_DLL_IMPORT * before including libcdata.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCDATA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCDATA ) */ #endif /* !defined( _LIBFSAPFS_LIBCDATA_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_lzvn.c0000664000175000017500000005661113426637446023212 0ustar00lordyestalordyesta00000000000000/* * LZVN (un)compression functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_lzvn.h" #include "libfsapfs_libcerror.h" enum LIBFSAPFS_LZVN_OPPCODE_TYPES { LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, LIBFSAPFS_LZVN_OPPCODE_TYPE_END_OF_STREAM, LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_LARGE, LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_LARGE, LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, LIBFSAPFS_LZVN_OPPCODE_TYPE_NONE, }; /* Lookup table to map an oppcode to its type */ uint8_t lzvn_oppcode_types[ 256 ] = { LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x00 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x01 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x02 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x03 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x04 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x05 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_END_OF_STREAM, /* 0x06 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x07 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x08 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x09 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x0a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x0b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x0c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x0d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_NONE, /* 0x0e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x0f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x10 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x11 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x12 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x13 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x14 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x15 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_NONE, /* 0x16 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x17 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x18 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x19 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x1a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x1b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x1c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x1d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x1e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x1f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x20 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x21 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x22 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x23 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x24 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x25 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x26 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x27 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x28 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x29 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x2a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x2b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x2c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x2d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x2e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x2f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x30 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x31 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x32 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x33 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x34 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x35 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x36 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x37 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x38 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x39 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x3a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x3b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x3c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x3d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x3e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x3f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x40 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x41 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x42 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x43 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x44 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x45 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x46 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x47 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x48 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x49 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x4a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x4b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x4c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x4d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x4e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x4f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x50 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x51 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x52 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x53 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x54 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x55 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x56 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x57 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x58 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x59 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x5a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x5b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x5c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x5d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x5e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x5f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x60 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x61 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x62 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x63 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x64 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x65 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x66 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x67 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x68 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x69 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x6a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x6b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x6c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x6d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x6e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x6f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x70 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x71 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x72 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x73 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x74 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x75 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x76 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x77 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x78 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x79 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x7a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x7b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x7c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x7d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x7e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0x7f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x80 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x81 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x82 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x83 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x84 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x85 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x86 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x87 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x88 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x89 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x8a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x8b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x8c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x8d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x8e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x8f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x90 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x91 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x92 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x93 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x94 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x95 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x96 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x97 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x98 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x99 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x9a */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x9b */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x9c */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0x9d */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0x9e */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0x9f */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa0 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa1 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa2 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa3 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa4 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa5 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa6 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa7 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa8 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xa9 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xaa */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xab */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xac */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xad */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xae */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xaf */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb0 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb1 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb2 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb3 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb4 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb5 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb6 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb7 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb8 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xb9 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xba */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xbb */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xbc */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xbd */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xbe */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM, /* 0xbf */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc0 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc1 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc2 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc3 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc4 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc5 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0xc6 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0xc7 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc8 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xc9 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xca */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xcb */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xcc */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL, /* 0xcd */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS, /* 0xce */ LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE, /* 0xcf */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd0 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd1 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd2 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd3 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd4 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd5 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd6 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd7 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd8 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xd9 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xda */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xdb */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xdc */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xdd */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xde */ LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID, /* 0xdf */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_LARGE, /* 0xe0 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe1 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe2 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe3 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe4 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe5 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe6 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe7 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe8 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xe9 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xea */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xeb */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xec */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xed */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xee */ LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL, /* 0xef */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_LARGE, /* 0xf0 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf1 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf2 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf3 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf4 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf5 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf6 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf7 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf8 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xf9 */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xfa */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xfb */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xfc */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xfd */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xfe */ LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL, /* 0xff */ }; /* Decompresses LIBFSAPFS_LZVN compressed data * Returns 1 on success or -1 on error */ int libfsapfs_lzvn_decompress( const uint8_t *compressed_data, size_t compressed_data_size, uint8_t *uncompressed_data, size_t *uncompressed_data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_lzvn_decompress"; size_t compressed_data_offset = 0; size_t match_offset = 0; size_t uncompressed_data_offset = 0; uint16_t distance = 0; uint16_t literal_size = 0; uint16_t match_size = 0; uint8_t oppcode = 0; uint8_t oppcode_type = 0; uint8_t oppcode_value = 0; if( compressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid compressed data.", function ); return( -1 ); } if( compressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid compressed data size value exceeds maximum.", function ); return( -1 ); } if( uncompressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data.", function ); return( -1 ); } if( uncompressed_data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid uncompressed data size.", function ); return( -1 ); } if( *uncompressed_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid uncompressed data size value exceeds maximum.", function ); return( -1 ); } while( compressed_data_offset < compressed_data_size ) { if( uncompressed_data_offset >= *uncompressed_data_size ) { break; } if( compressed_data_offset >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: compressed data size value too small.", function ); return( -1 ); } oppcode = compressed_data[ compressed_data_offset++ ]; oppcode_type = lzvn_oppcode_types[ oppcode ]; literal_size = 0; match_size = 0; switch( oppcode_type ) { case LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_LARGE: if( ( compressed_data_offset + 1 ) >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: compressed data size value too small.", function ); return( -1 ); } oppcode_value = compressed_data[ compressed_data_offset++ ]; literal_size = ( oppcode & 0xc0 ) >> 6; match_size = ( ( oppcode & 0x38 ) >> 3 ) + 3; distance = ( (uint16_t) compressed_data[ compressed_data_offset++ ] << 8 ) | oppcode_value; break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_MEDIUM: if( ( compressed_data_offset + 1 ) >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: compressed data size value too small.", function ); return( -1 ); } oppcode_value = compressed_data[ compressed_data_offset++ ]; literal_size = ( oppcode & 0x18 ) >> 3; match_size = ( ( ( oppcode & 0x07 ) << 2 ) | ( oppcode_value & 0x03 ) ) + 3; distance = ( (uint16_t) compressed_data[ compressed_data_offset++ ] << 6 ) | ( ( oppcode_value & 0xfc ) >> 2 ); break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_PREVIOUS: literal_size = ( oppcode & 0xc0 ) >> 6; match_size = ( ( oppcode & 0x38 ) >> 3 ) + 3; break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_DISTANCE_SMALL: if( compressed_data_offset >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: compressed data size value too small.", function ); return( -1 ); } literal_size = ( oppcode & 0xc0 ) >> 6; match_size = ( ( oppcode & 0x38 ) >> 3 ) + 3; distance = ( (uint16_t) ( oppcode & 0x07 ) << 8 ) | compressed_data[ compressed_data_offset++ ]; break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_LARGE: if( compressed_data_offset >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: compressed data size value too small.", function ); return( -1 ); } literal_size = (uint16_t) compressed_data[ compressed_data_offset++ ] + 16; break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_LITERAL_SMALL: literal_size = oppcode & 0x0f; break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_LARGE: if( compressed_data_offset >= compressed_data_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: compressed data size value too small.", function ); return( -1 ); } match_size = (uint16_t) compressed_data[ compressed_data_offset++ ] + 16; break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_MATCH_SMALL: match_size = oppcode & 0x0f; break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_END_OF_STREAM: case LIBFSAPFS_LZVN_OPPCODE_TYPE_NONE: break; case LIBFSAPFS_LZVN_OPPCODE_TYPE_INVALID: default: libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid oppcode: 0x%02" PRIx8 ".", function, oppcode ); return( -1 ); } if( oppcode_type == LIBFSAPFS_LZVN_OPPCODE_TYPE_END_OF_STREAM ) { break; } if( literal_size > 0 ) { if( ( (size_t) literal_size > compressed_data_size ) || ( compressed_data_offset > ( compressed_data_size - literal_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: literal size value exceeds compressed data size.", function ); return( -1 ); } if( ( (size_t) literal_size > *uncompressed_data_size ) || ( uncompressed_data_offset > ( *uncompressed_data_size - literal_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: literal size value exceeds uncompressed data size.", function ); return( -1 ); } if( memory_copy( &( uncompressed_data[ uncompressed_data_offset ] ), &( compressed_data[ compressed_data_offset ] ), (size_t) literal_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy literal to uncompressed data.", function ); return( -1 ); } compressed_data_offset += (size_t) literal_size; uncompressed_data_offset += (size_t) literal_size; } if( match_size > 0 ) { if( (size_t) distance > uncompressed_data_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: distance value exceeds uncompressed data offset.", function ); return( -1 ); } match_offset = uncompressed_data_offset - distance; if( ( (size_t) match_size > *uncompressed_data_size ) || ( uncompressed_data_offset > ( *uncompressed_data_size - match_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: match size value exceeds uncompressed data size.", function ); return( -1 ); } while( match_size > 0 ) { uncompressed_data[ uncompressed_data_offset++ ] = uncompressed_data[ match_offset++ ]; match_size--; } } } *uncompressed_data_size = uncompressed_data_offset; return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_directory_record.h0000664000175000017500000000741313426637446025564 0ustar00lordyestalordyesta00000000000000/* * Directory record functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DIRECTORY_RECORD_H ) #define _LIBFSAPFS_DIRECTORY_RECORD_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_directory_record libfsapfs_directory_record_t; struct libfsapfs_directory_record { /* Identifier */ uint64_t identifier; /* Name size */ uint16_t name_size; /* Name */ uint8_t *name; /* Name hash */ uint32_t name_hash; /* Added time */ uint64_t added_time; }; int libfsapfs_directory_record_initialize( libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); int libfsapfs_directory_record_free( libfsapfs_directory_record_t **directory_record, libcerror_error_t **error ); int libfsapfs_directory_record_clone( libfsapfs_directory_record_t **destination_directory_record, libfsapfs_directory_record_t *source_directory_record, libcerror_error_t **error ); int libfsapfs_directory_record_read_key_data( libfsapfs_directory_record_t *directory_record, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_directory_record_read_value_data( libfsapfs_directory_record_t *directory_record, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_directory_record_get_identifier( libfsapfs_directory_record_t *directory_record, uint64_t *identifier, libcerror_error_t **error ); int libfsapfs_directory_record_get_utf8_name_size( libfsapfs_directory_record_t *directory_record, size_t *utf8_string_size, libcerror_error_t **error ); int libfsapfs_directory_record_get_utf8_name( libfsapfs_directory_record_t *directory_record, uint8_t *utf8_string, size_t utf8_string_size, libcerror_error_t **error ); int libfsapfs_directory_record_compare_name_with_utf8_string( libfsapfs_directory_record_t *directory_record, const uint8_t *utf8_string, size_t utf8_string_length, uint32_t name_hash, uint8_t use_case_folding, libcerror_error_t **error ); int libfsapfs_directory_record_get_utf16_name_size( libfsapfs_directory_record_t *directory_record, size_t *utf16_string_size, libcerror_error_t **error ); int libfsapfs_directory_record_get_utf16_name( libfsapfs_directory_record_t *directory_record, uint16_t *utf16_string, size_t utf16_string_size, libcerror_error_t **error ); int libfsapfs_directory_record_compare_name_with_utf16_string( libfsapfs_directory_record_t *directory_record, const uint16_t *utf16_string, size_t utf16_string_length, uint32_t name_hash, uint8_t use_case_folding, libcerror_error_t **error ); int libfsapfs_directory_record_get_added_time( libfsapfs_directory_record_t *directory_record, int64_t *posix_time, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_DIRECTORY_RECORD_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_data_block.h0000664000175000017500000000376313426637446024311 0ustar00lordyestalordyesta00000000000000/* * Data block functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DATA_BLOCK_H ) #define _LIBFSAPFS_DATA_BLOCK_H #include #include #include "libfsapfs_encryption_context.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_data_block libfsapfs_data_block_t; struct libfsapfs_data_block { /* The data */ uint8_t *data; /* The data size */ size_t data_size; }; int libfsapfs_data_block_initialize( libfsapfs_data_block_t **data_block, size_t data_size, libcerror_error_t **error ); int libfsapfs_data_block_free( libfsapfs_data_block_t **data_block, libcerror_error_t **error ); int libfsapfs_data_block_clear_data( libfsapfs_data_block_t *data_block, libcerror_error_t **error ); int libfsapfs_data_block_read( libfsapfs_data_block_t *data_block, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libbfio_handle_t *file_io_handle, off64_t file_offset, uint64_t encryption_identifier, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_DATA_BLOCK_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_libfcache.h0000664000175000017500000000264613426637446024125 0ustar00lordyestalordyesta00000000000000/* * The libfcache header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_LIBFCACHE_H ) #define _LIBFSAPFS_LIBFCACHE_H #include /* Define HAVE_LOCAL_LIBFCACHE for local use of libfcache */ #if defined( HAVE_LOCAL_LIBFCACHE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBFCACHE_DLL_IMPORT * before including libfcache.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBFCACHE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFCACHE ) */ #endif /* !defined( _LIBFSAPFS_LIBFCACHE_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs.rc0000664000175000017500000000210013430101272022255 0ustar00lordyestalordyesta00000000000000#include #ifdef GCC_WINDRES VS_VERSION_INFO VERSIONINFO #else VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE #endif FILEVERSION 1,0,0,0 PRODUCTVERSION 1,0,0,0 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS VOS__WINDOWS32 FILETYPE VFT_DLL FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "FileDescription", "Library to access the Apple File System (APFS) format\0" VALUE "FileVersion", "20190210" "\0" VALUE "InternalName", "libfsapfs.dll\0" VALUE "LegalCopyright", "(C) 2018-2019, Joachim Metz \0" VALUE "OriginalFilename", "libfsapfs.dll\0" VALUE "ProductName", "libfsapfs\0" VALUE "ProductVersion", "20190210" "\0" VALUE "Comments", "For more information visit https://github.com/libyal/libfsapfs/\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 1200 END END libfsapfs-20190210/libfsapfs/libfsapfs_object_map.c0000664000175000017500000002404713426637446024322 0ustar00lordyestalordyesta00000000000000/* * The object map functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libfsapfs_libbfio.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_object_map.h" #include "fsapfs_object_map.h" /* Creates a object map * Make sure the value object_map is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_initialize( libfsapfs_object_map_t **object_map, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_initialize"; if( object_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map.", function ); return( -1 ); } if( *object_map != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid object map value already set.", function ); return( -1 ); } *object_map = memory_allocate_structure( libfsapfs_object_map_t ); if( *object_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create object map.", function ); goto on_error; } if( memory_set( *object_map, 0, sizeof( libfsapfs_object_map_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear object map.", function ); goto on_error; } return( 1 ); on_error: if( *object_map != NULL ) { memory_free( *object_map ); *object_map = NULL; } return( -1 ); } /* Frees a object map * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_free( libfsapfs_object_map_t **object_map, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_free"; if( object_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map.", function ); return( -1 ); } if( *object_map != NULL ) { memory_free( *object_map ); *object_map = NULL; } return( 1 ); } /* Reads the object map * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_read_file_io_handle( libfsapfs_object_map_t *object_map, libbfio_handle_t *file_io_handle, off64_t file_offset, libcerror_error_t **error ) { fsapfs_object_map_t object_map_data; static char *function = "libfsapfs_object_map_read_file_io_handle"; ssize_t read_count = 0; if( object_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading object map at offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, file_offset, file_offset ); } #endif if( libbfio_handle_seek_offset( file_io_handle, file_offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek object map offset: %" PRIi64 " (0x%08" PRIx64 ").", function, file_offset, file_offset ); return( -1 ); } read_count = libbfio_handle_read_buffer( file_io_handle, (uint8_t *) &object_map_data, sizeof( fsapfs_object_map_t ), error ); if( read_count != (ssize_t) sizeof( fsapfs_object_map_t ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object map data.", function ); return( -1 ); } if( libfsapfs_object_map_read_data( object_map, (uint8_t *) &object_map_data, sizeof( fsapfs_object_map_t ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read object map data.", function ); return( -1 ); } return( 1 ); } /* Reads the object map * Returns 1 if successful or -1 on error */ int libfsapfs_object_map_read_data( libfsapfs_object_map_t *object_map, const uint8_t *data, size_t data_size, libcerror_error_t **error ) { static char *function = "libfsapfs_object_map_read_data"; uint32_t object_subtype = 0; uint32_t object_type = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint64_t value_64bit = 0; uint32_t value_32bit = 0; #endif if( object_map == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid object map.", function ); return( -1 ); } if( data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid data.", function ); return( -1 ); } if( ( data_size < sizeof( fsapfs_object_map_t ) ) || ( data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid data size value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: object map data:\n", function ); libcnotify_print_data( data, sizeof( fsapfs_object_map_t ), LIBCNOTIFY_PRINT_DATA_FLAG_GROUP_DATA ); } #endif byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_t *) data )->object_type, object_type ); if( object_type != 0x4000000bUL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object type: 0x%08" PRIx32 ".", function, object_type ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_t *) data )->object_subtype, object_subtype ); if( object_subtype != 0x00000000UL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid object subtype: 0x%08" PRIx32 ".", function, object_subtype ); return( -1 ); } byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_t *) data )->number_of_snapshots, object_map->number_of_snapshots ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->btree_block_number, object_map->btree_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->snapshots_btree_block_number, object_map->snapshots_btree_block_number ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->object_checksum, value_64bit ); libcnotify_printf( "%s: object checksum\t\t\t\t: 0x%08" PRIx64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->object_identifier, value_64bit ); libcnotify_printf( "%s: object identifier\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->object_transaction_identifier, value_64bit ); libcnotify_printf( "%s: object transaction identifier\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "%s: object type\t\t\t\t: 0x%08" PRIx32 "\n", function, object_type ); libcnotify_printf( "%s: object subtype\t\t\t\t: 0x%08" PRIx32 "\n", function, object_subtype ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_t *) data )->flags, value_32bit ); libcnotify_printf( "%s: flags\t\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "%s: number of snapshots\t\t\t: %" PRIu32 "\n", function, object_map->number_of_snapshots ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_t *) data )->btree_type, value_32bit ); libcnotify_printf( "%s: B-tree type\t\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); byte_stream_copy_to_uint32_little_endian( ( (fsapfs_object_map_t *) data )->snaphots_btree_type, value_32bit ); libcnotify_printf( "%s: snapshots B-tree type\t\t\t: 0x%08" PRIx32 "\n", function, value_32bit ); libcnotify_printf( "%s: B-tree block number\t\t\t: %" PRIu64 "\n", function, object_map->btree_block_number ); libcnotify_printf( "%s: snapshots B-tree block number\t\t: %" PRIu64 "\n", function, object_map->snapshots_btree_block_number ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->unknown1, value_64bit ); libcnotify_printf( "%s: unknown1\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->unknown2, value_64bit ); libcnotify_printf( "%s: unknown2\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); byte_stream_copy_to_uint64_little_endian( ( (fsapfs_object_map_t *) data )->unknown3, value_64bit ); libcnotify_printf( "%s: unknown3\t\t\t\t: %" PRIu64 "\n", function, value_64bit ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_io_handle.c0000664000175000017500000001304113426637446024131 0ustar00lordyestalordyesta00000000000000/* * Input/Output (IO) handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_io_handle.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_profiler.h" const char fsapfs_container_signature[ 4 ] = "NXSB"; const char fsapfs_volume_signature[ 4 ] = "APSB"; /* Creates an IO handle * Make sure the value io_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_io_handle_initialize( libfsapfs_io_handle_t **io_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_io_handle_initialize"; if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } if( *io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid IO handle value already set.", function ); return( -1 ); } *io_handle = memory_allocate_structure( libfsapfs_io_handle_t ); if( *io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create IO handle.", function ); goto on_error; } if( memory_set( *io_handle, 0, sizeof( libfsapfs_io_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear IO handle.", function ); memory_free( *io_handle ); *io_handle = NULL; return( -1 ); } #if defined( HAVE_PROFILER ) if( libfsapfs_profiler_initialize( &( ( *io_handle )->profiler ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize profiler.", function ); goto on_error; } if( libfsapfs_profiler_open( ( *io_handle )->profiler, "profiler.csv", error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open profiler.", function ); goto on_error; } #endif /* defined( HAVE_PROFILER ) */ ( *io_handle )->bytes_per_sector = 512; ( *io_handle )->block_size = 4096; return( 1 ); on_error: if( *io_handle != NULL ) { #if defined( HAVE_PROFILER ) if( ( *io_handle )->profiler != NULL ) { libfsapfs_profiler_free( &( ( *io_handle )->profiler ), NULL ); } #endif memory_free( *io_handle ); *io_handle = NULL; } return( -1 ); } /* Frees an IO handle * Returns 1 if successful or -1 on error */ int libfsapfs_io_handle_free( libfsapfs_io_handle_t **io_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_io_handle_free"; int result = 1; if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } if( *io_handle != NULL ) { #if defined( HAVE_PROFILER ) if( libfsapfs_profiler_close( ( *io_handle )->profiler, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close profiler.", function ); result = -1; } if( libfsapfs_profiler_free( &( ( *io_handle )->profiler ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free profiler.", function ); result = -1; } #endif /* defined( HAVE_PROFILER ) */ memory_free( *io_handle ); *io_handle = NULL; } return( result ); } /* Clears the IO handle * Returns 1 if successful or -1 on error */ int libfsapfs_io_handle_clear( libfsapfs_io_handle_t *io_handle, libcerror_error_t **error ) { static char *function = "libfsapfs_io_handle_clear"; #if defined( HAVE_PROFILER ) libfsapfs_profiler_t *profiler = NULL; #endif if( io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid IO handle.", function ); return( -1 ); } #if defined( HAVE_PROFILER ) profiler = io_handle->profiler; #endif if( memory_set( io_handle, 0, sizeof( libfsapfs_io_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear IO handle.", function ); return( -1 ); } io_handle->bytes_per_sector = 512; io_handle->block_size = 4096; #if defined( HAVE_PROFILER ) io_handle->profiler = profiler; #endif return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_name.h0000664000175000017500000004135513426637446023145 0ustar00lordyestalordyesta00000000000000/* * Name functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_NAME_H ) #define _LIBFSAPFS_NAME_H #include #include #include "libfsapfs_libcerror.h" #include "libfsapfs_libuna.h" #include "libfsapfs_extern.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_name_decomposition_mapping libfsapfs_name_decomposition_mapping_t; struct libfsapfs_name_decomposition_mapping { /* The number of characters */ uint8_t number_of_characters; /* The characters */ uint32_t characters[ 4 ]; }; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00000040[ 528 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00000340[ 536 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x000010a0[ 48 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x000013f8[ 8 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00001c80[ 16 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00001e00[ 512 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00002120[ 104 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x000024b0[ 32 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00002c00[ 248 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x0000a640[ 96 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x0000a720[ 152 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x0000ab70[ 80 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x0000ff20[ 32 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00010400[ 40 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x000104b0[ 40 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x00010c80[ 56 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x000118a0[ 32 ]; LIBFSAPFS_EXTERN_VARIABLE \ uint32_t libfsapfs_name_case_folding_mappings_0x0001e900[ 40 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000000c0[ 192 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000001a0[ 152 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000340[ 152 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000400[ 256 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000620[ 184 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000928[ 184 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000a30[ 48 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000b48[ 136 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000c48[ 136 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000d48[ 152 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00000f40[ 232 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00001b00[ 72 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00001e00[ 520 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00002120[ 176 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00002200[ 304 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00002ad8[ 8 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00003048[ 184 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0000f900[ 480 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0000fb18[ 56 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00011098[ 24 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00011128[ 8 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x00011348[ 8 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000114b8[ 8 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x000115b8[ 8 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0001d158[ 16 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0001d1b8[ 16 ]; LIBFSAPFS_EXTERN_VARIABLE \ libfsapfs_name_decomposition_mapping_t libfsapfs_name_decomposition_mappings_0x0002f800[ 544 ]; #define libfsapfs_name_get_case_folding_mapping( unicode_character ) \ if( ( unicode_character >= 0x00000040UL ) \ && ( unicode_character <= 0x0000024fUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00000040[ unicode_character - 0x00000040UL ]; \ } \ else if( ( unicode_character >= 0x00000340UL ) \ && ( unicode_character <= 0x00000557UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00000340[ unicode_character - 0x00000340UL ]; \ } \ else if( ( unicode_character >= 0x000010a0UL ) \ && ( unicode_character <= 0x000010cfUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x000010a0[ unicode_character - 0x000010a0UL ]; \ } \ else if( ( unicode_character >= 0x000013f8UL ) \ && ( unicode_character <= 0x000013ffUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x000013f8[ unicode_character - 0x000013f8UL ]; \ } \ else if( ( unicode_character >= 0x00001c80UL ) \ && ( unicode_character <= 0x00001c8fUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00001c80[ unicode_character - 0x00001c80UL ]; \ } \ else if( ( unicode_character >= 0x00001e00UL ) \ && ( unicode_character <= 0x00001fffUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00001e00[ unicode_character - 0x00001e00UL ]; \ } \ else if( ( unicode_character >= 0x00002120UL ) \ && ( unicode_character <= 0x00002187UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00002120[ unicode_character - 0x00002120UL ]; \ } \ else if( ( unicode_character >= 0x000024b0UL ) \ && ( unicode_character <= 0x000024cfUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x000024b0[ unicode_character - 0x000024b0UL ]; \ } \ else if( ( unicode_character >= 0x00002c00UL ) \ && ( unicode_character <= 0x00002cf7UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00002c00[ unicode_character - 0x00002c00UL ]; \ } \ else if( ( unicode_character >= 0x0000a640UL ) \ && ( unicode_character <= 0x0000a69fUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x0000a640[ unicode_character - 0x0000a640UL ]; \ } \ else if( ( unicode_character >= 0x0000a720UL ) \ && ( unicode_character <= 0x0000a7b7UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x0000a720[ unicode_character - 0x0000a720UL ]; \ } \ else if( ( unicode_character >= 0x0000ab70UL ) \ && ( unicode_character <= 0x0000abbf ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x0000ab70[ unicode_character - 0x0000ab70UL ]; \ } \ else if( ( unicode_character >= 0x0000ff20UL ) \ && ( unicode_character <= 0x0000ff3fUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x0000ff20[ unicode_character - 0x0000ff20UL ]; \ } \ else if( ( unicode_character >= 0x00010400UL ) \ && ( unicode_character <= 0x00010427UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00010400[ unicode_character - 0x00010400UL ]; \ } \ else if( ( unicode_character >= 0x000104b0UL ) \ && ( unicode_character <= 0x000104d7UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x000104b0[ unicode_character - 0x000104b0UL ]; \ } \ else if( ( unicode_character >= 0x00010c80UL ) \ && ( unicode_character <= 0x00010cb7UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x00010c80[ unicode_character - 0x00010c80UL ]; \ } \ else if( ( unicode_character >= 0x000118a0UL ) \ && ( unicode_character <= 0x000118bfUL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x000118a0[ unicode_character - 0x000118a0UL ]; \ } \ else if( ( unicode_character >= 0x0001e900UL ) \ && ( unicode_character <= 0x0001e927UL ) ) \ { \ unicode_character = libfsapfs_name_case_folding_mappings_0x0001e900[ unicode_character - 0x0001e900UL ]; \ } #define libfsapfs_name_get_decomposition_mapping( unicode_character, nfd_mapping, single_nfd_mapping ) \ if( ( unicode_character >= 0x000000c0UL ) \ && ( unicode_character <= 0x0000017fUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x000000c0[ unicode_character - 0x000000c0UL ] ); \ } \ else if( ( unicode_character >= 0x000001a0UL ) \ && ( unicode_character <= 0x00000237UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x000001a0[ unicode_character - 0x000001a0UL ] ); \ } \ else if( ( unicode_character >= 0x00000340UL ) \ && ( unicode_character <= 0x000003d7UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000340[ unicode_character - 0x00000340UL ] ); \ } \ else if( ( unicode_character >= 0x00000400UL ) \ && ( unicode_character <= 0x000004ffUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000400[ unicode_character - 0x00000400UL ] ); \ } \ else if( ( unicode_character >= 0x00000620UL ) \ && ( unicode_character <= 0x000006d7UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000620[ unicode_character - 0x00000620UL ] ); \ } \ else if( ( unicode_character >= 0x00000928UL ) \ && ( unicode_character <= 0x000009dfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000928[ unicode_character - 0x00000928UL ] ); \ } \ else if( ( unicode_character >= 0x00000a30UL ) \ && ( unicode_character <= 0x00000a5fUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000a30[ unicode_character - 0x00000a30UL ] ); \ } \ else if( ( unicode_character >= 0x00000b48UL ) \ && ( unicode_character <= 0x00000bcfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000b48[ unicode_character - 0x00000b48UL ] ); \ } \ else if( ( unicode_character >= 0x00000c48UL ) \ && ( unicode_character <= 0x00000ccfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000c48[ unicode_character - 0x00000c48UL ] ); \ } \ else if( ( unicode_character >= 0x00000d48UL ) \ && ( unicode_character <= 0x00000ddfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000d48[ unicode_character - 0x00000d48UL ] ); \ } \ else if( ( unicode_character >= 0x00000f40UL ) \ && ( unicode_character <= 0x00001027UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00000f40[ unicode_character - 0x00000f40UL ] ); \ } \ else if( ( unicode_character >= 0x00001b00UL ) \ && ( unicode_character <= 0x00001b47UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00001b00[ unicode_character - 0x00001b00UL ] ); \ } \ else if( ( unicode_character >= 0x00001e00UL ) \ && ( unicode_character <= 0x00002007UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00001e00[ unicode_character - 0x00001e00UL ] ); \ } \ else if( ( unicode_character >= 0x00002120UL ) \ && ( unicode_character <= 0x000021cfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00002120[ unicode_character - 0x00002120UL ] ); \ } \ else if( ( unicode_character >= 0x00002200UL ) \ && ( unicode_character <= 0x0000232fUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00002200[ unicode_character - 0x00002200UL ] ); \ } \ else if( ( unicode_character >= 0x00002ad8UL ) \ && ( unicode_character <= 0x00002adfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00002ad8[ unicode_character - 0x00002ad8UL ] ); \ } \ else if( ( unicode_character >= 0x00003048UL ) \ && ( unicode_character <= 0x000030ffUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00003048[ unicode_character - 0x00003048UL ] ); \ } \ else if( ( unicode_character >= 0x0000f900UL ) \ && ( unicode_character <= 0x0000fadfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x0000f900[ unicode_character - 0x0000f900UL ] ); \ } \ else if( ( unicode_character >= 0x0000fb18UL ) \ && ( unicode_character <= 0x0000fb4fUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x0000fb18[ unicode_character - 0x0000fb18UL ] ); \ } \ else if( ( unicode_character >= 0x00011098UL ) \ && ( unicode_character <= 0x000110afUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00011098[ unicode_character - 0x00011098UL ] ); \ } \ else if( ( unicode_character >= 0x00011128UL ) \ && ( unicode_character <= 0x0001112fUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00011128[ unicode_character - 0x00011128UL ] ); \ } \ else if( ( unicode_character >= 0x00011348UL ) \ && ( unicode_character <= 0x0001134fUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x00011348[ unicode_character - 0x00011348UL ] ); \ } \ else if( ( unicode_character >= 0x000114b8UL ) \ && ( unicode_character <= 0x000114bfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x000114b8[ unicode_character - 0x000114b8UL ] ); \ } \ else if( ( unicode_character >= 0x000115b8UL ) \ && ( unicode_character <= 0x000115bfUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x000115b8[ unicode_character - 0x000115b8UL ] ); \ } \ else if( ( unicode_character >= 0x0001d158UL ) \ && ( unicode_character <= 0x0001d167UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x0001d158[ unicode_character - 0x0001d158UL ] ); \ } \ else if( ( unicode_character >= 0x0001d1b8UL ) \ && ( unicode_character <= 0x0001d1c7UL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x0001d1b8[ unicode_character - 0x0001d1b8UL ] ); \ } \ else if( ( unicode_character >= 0x0002f800UL ) \ && ( unicode_character <= 0x0002fa1fUL ) ) \ { \ nfd_mapping = &( libfsapfs_name_decomposition_mappings_0x0002f800[ unicode_character - 0x0002f800UL ] ); \ } \ else \ { \ single_nfd_mapping.characters[ 0 ] = unicode_character; \ \ nfd_mapping = &single_nfd_mapping; \ } \ int libfsapfs_name_compare_with_utf8_string( const uint8_t *name, size_t name_size, const libuna_utf8_character_t *utf8_string, size_t utf8_string_length, uint8_t use_case_folding, libcerror_error_t **error ); int libfsapfs_name_compare_with_utf16_string( const uint8_t *name, size_t name_size, const libuna_utf16_character_t *utf16_string, size_t utf16_string_length, uint8_t use_case_folding, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_NAME_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_name_hash.c0000664000175000017500000002426413426637446024143 0ustar00lordyestalordyesta00000000000000/* * Name hash functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfsapfs_checksum.h" #include "libfsapfs_libcerror.h" #include "libfsapfs_libcnotify.h" #include "libfsapfs_libuna.h" #include "libfsapfs_name.h" /* Calculates the name hash of an UTF-8 formatted string * Returns 1 if successful or -1 on error */ int libfsapfs_name_hash_calculate_from_utf8_string( uint32_t *name_hash, const uint8_t *utf8_string, size_t utf8_string_length, uint8_t use_case_folding, libcerror_error_t **error ) { libfsapfs_name_decomposition_mapping_t single_nfd_mapping = { 1, { 0 } }; libfsapfs_name_decomposition_mapping_t *nfd_mapping = NULL; static char *function = "libfsapfs_name_hash_calculate_from_utf8_string"; libuna_unicode_character_t unicode_character = 0; size_t utf8_string_index = 0; uint32_t calculated_checksum = 0; uint32_t checksum_table_index = 0; uint8_t byte_value = 0; uint8_t nfd_character_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t utf32_stream[ 512 ]; size_t utf32_stream_index = 0; #endif if( name_hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid name hash.", function ); return( -1 ); } if( libfsapfs_checksum_crc32_table_computed == 0 ) { libfsapfs_checksum_initialize_crc32_table( 0x82f63b78UL ); } calculated_checksum = 0xffffffffUL; while( utf8_string_index < utf8_string_length ) { if( libuna_unicode_character_copy_from_utf8( &unicode_character, utf8_string, utf8_string_length, &utf8_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-8 string.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } if( use_case_folding != 0 ) { libfsapfs_name_get_case_folding_mapping( unicode_character ); } libfsapfs_name_get_decomposition_mapping( unicode_character, nfd_mapping, single_nfd_mapping ); for( nfd_character_index = 0; nfd_character_index < nfd_mapping->number_of_characters; nfd_character_index++ ) { unicode_character = nfd_mapping->characters[ nfd_character_index ]; byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); unicode_character >>= 8; #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); unicode_character >>= 8; #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); unicode_character >>= 8; #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif } } *name_hash = calculated_checksum & 0x003fffffUL; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: UTF-32 stream data:\n", function ); libcnotify_print_data( utf32_stream, utf32_stream_index, 0 ); libcnotify_printf( "%s: CRC-32 checkum\t\t: 0x%08" PRIx32 "\n", function, calculated_checksum ); libcnotify_printf( "%s: name hash\t\t: 0x%06" PRIx32 "\n", function, *name_hash ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } /* Calculates the name hash of an UTF-16 formatted string * Returns 1 if successful or -1 on error */ int libfsapfs_name_hash_calculate_from_utf16_string( uint32_t *name_hash, const uint16_t *utf16_string, size_t utf16_string_length, uint8_t use_case_folding, libcerror_error_t **error ) { libfsapfs_name_decomposition_mapping_t single_nfd_mapping = { 1, { 0 } }; libfsapfs_name_decomposition_mapping_t *nfd_mapping = NULL; static char *function = "libfsapfs_name_hash_calculate_from_utf16_string"; libuna_unicode_character_t unicode_character = 0; size_t utf16_string_index = 0; uint32_t calculated_checksum = 0; uint32_t checksum_table_index = 0; uint8_t byte_value = 0; uint8_t nfd_character_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t utf32_stream[ 512 ]; size_t utf32_stream_index = 0; #endif if( name_hash == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid name hash.", function ); return( -1 ); } if( libfsapfs_checksum_crc32_table_computed == 0 ) { libfsapfs_checksum_initialize_crc32_table( 0x82f63b78UL ); } calculated_checksum = 0xffffffffUL; while( utf16_string_index < utf16_string_length ) { if( libuna_unicode_character_copy_from_utf16( &unicode_character, utf16_string, utf16_string_length, &utf16_string_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from UTF-16 string.", function ); return( -1 ); } if( unicode_character == 0 ) { break; } if( use_case_folding != 0 ) { libfsapfs_name_get_case_folding_mapping( unicode_character ); } libfsapfs_name_get_decomposition_mapping( unicode_character, nfd_mapping, single_nfd_mapping ); for( nfd_character_index = 0; nfd_character_index < nfd_mapping->number_of_characters; nfd_character_index++ ) { unicode_character = nfd_mapping->characters[ nfd_character_index ]; byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); unicode_character >>= 8; #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); unicode_character >>= 8; #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); unicode_character >>= 8; #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif byte_value = (uint8_t) ( unicode_character & 0x000000ffUL ); checksum_table_index = ( calculated_checksum ^ (uint32_t) byte_value ) & 0x000000ffUL; calculated_checksum = libfsapfs_checksum_crc32_table[ checksum_table_index ] ^ ( calculated_checksum >> 8 ); #if defined( HAVE_DEBUG_OUTPUT ) if( utf32_stream_index < 512 ) { utf32_stream[ utf32_stream_index++ ] = byte_value; } #endif } } *name_hash = calculated_checksum & 0x003fffffUL; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: UTF-32 stream data:\n", function ); libcnotify_print_data( utf32_stream, utf32_stream_index, 0 ); libcnotify_printf( "%s: CRC-32 checkum\t\t: 0x%08" PRIx32 "\n", function, calculated_checksum ); libcnotify_printf( "%s: name hash\t\t: 0x%06" PRIx32 "\n", function, *name_hash ); libcnotify_printf( "\n" ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ return( 1 ); } libfsapfs-20190210/libfsapfs/libfsapfs_profiler.c0000664000175000017500000002011213426637446024026 0ustar00lordyestalordyesta00000000000000/* * The profiler functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( TIME_WITH_SYS_TIME ) #include #include #elif defined( HAVE_SYS_TIME_H ) #include #else #include #endif #include "libfsapfs_libcerror.h" #include "libfsapfs_profiler.h" #if defined( HAVE_PROFILER ) /* Creates a profiler * Make sure the value profiler is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfsapfs_profiler_initialize( libfsapfs_profiler_t **profiler, libcerror_error_t **error ) { static char *function = "libfsapfs_profiler_initialize"; if( profiler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid profiler.", function ); return( -1 ); } if( *profiler != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid profiler value already set.", function ); return( -1 ); } *profiler = memory_allocate_structure( libfsapfs_profiler_t ); if( *profiler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create profiler.", function ); goto on_error; } if( memory_set( *profiler, 0, sizeof( libfsapfs_profiler_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear profiler.", function ); memory_free( *profiler ); *profiler = NULL; return( -1 ); } return( 1 ); on_error: if( *profiler != NULL ) { memory_free( *profiler ); *profiler = NULL; } return( -1 ); } /* Frees a profiler * Returns 1 if successful or -1 on error */ int libfsapfs_profiler_free( libfsapfs_profiler_t **profiler, libcerror_error_t **error ) { static char *function = "libfsapfs_profiler_free"; if( profiler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid profiler.", function ); return( -1 ); } if( *profiler != NULL ) { memory_free( *profiler ); *profiler = NULL; } return( 1 ); } /* Opens the profiler * Returns 1 if successful or -1 on error */ int libfsapfs_profiler_open( libfsapfs_profiler_t *profiler, const char *filename, libcerror_error_t **error ) { static char *function = "libfsapfs_profiler_open"; if( profiler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid profiler.", function ); return( -1 ); } if( profiler->output_stream != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid profiler - output stream value already set.", function ); return( -1 ); } profiler->output_stream = file_stream_open( filename, "w" ); if( profiler->output_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open profiler.", function ); goto on_error; } if( fprintf( profiler->output_stream, "timestamp,name,offset,size,duration\n" ) <= -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write header.", function ); goto on_error; } return( 1 ); on_error: if( profiler->output_stream != NULL ) { file_stream_close( profiler->output_stream ); profiler->output_stream = NULL; } return( -1 ); } /* Closes the profiler * Returns 0 if successful or -1 on error */ int libfsapfs_profiler_close( libfsapfs_profiler_t *profiler, libcerror_error_t **error ) { static char *function = "libfsapfs_profiler_close"; if( profiler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid profiler.", function ); return( -1 ); } if( profiler->output_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid profiler - missing output stream.", function ); return( -1 ); } if( file_stream_close( profiler->output_stream ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close profiler.", function ); return( -1 ); } profiler->output_stream = NULL; return( 0 ); } /* Starts timing * Returns 1 if successful or -1 on error */ int libfsapfs_profiler_start_timing( libfsapfs_profiler_t *profiler, int64_t *start_timestamp, libcerror_error_t **error ) { struct timespec start_time; static char *function = "libfsapfs_profiler_start_timing"; if( profiler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid profiler.", function ); return( -1 ); } if( start_timestamp == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid start timestamp.", function ); return( -1 ); } if( clock_gettime( CLOCK_REALTIME, &start_time ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve start time.", function ); return( -1 ); } *start_timestamp = ( (int64_t) start_time.tv_sec * 1000000000 ) + start_time.tv_nsec; return( 1 ); } /* Stops timing * Returns 1 if successful or -1 on error */ int libfsapfs_profiler_stop_timing( libfsapfs_profiler_t *profiler, int64_t start_timestamp, const char *name, off64_t offset, size64_t size, libcerror_error_t **error ) { struct timespec stop_time; static char *function = "libfsapfs_profiler_start_timing"; int64_t sample_time = 0; if( profiler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid profiler.", function ); return( -1 ); } if( profiler->output_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid profiler - missing output stream.", function ); return( -1 ); } if( clock_gettime( CLOCK_REALTIME, &stop_time ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve stop time.", function ); return( -1 ); } sample_time = ( (int64_t) stop_time.tv_sec * 1000000000 ) + stop_time.tv_nsec; sample_time -= start_timestamp; if( fprintf( profiler->output_stream, "%" PRIi64 ",%s,%" PRIi64 ",%" PRIu64 ",%" PRIi64 "\n", start_timestamp, name, offset, size, sample_time ) <= -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write sample.", function ); return( -1 ); } return( 1 ); } #endif /* defined( HAVE_PROFILER ) */ libfsapfs-20190210/libfsapfs/libfsapfs_key_bag_entry.h0000664000175000017500000000344513426637446025045 0ustar00lordyestalordyesta00000000000000/* * The key bag entry functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_KEY_BAG_ENTRY_H ) #define _LIBFSAPFS_KEY_BAG_ENTRY_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_key_bag_entry libfsapfs_key_bag_entry_t; struct libfsapfs_key_bag_entry { /* The size */ size_t size; /* The identifier */ uint8_t identifier[ 16 ]; /* The entry type */ uint16_t type; /* The data */ uint8_t *data; /* The data size */ uint16_t data_size; }; int libfsapfs_key_bag_entry_initialize( libfsapfs_key_bag_entry_t **key_bag_entry, libcerror_error_t **error ); int libfsapfs_key_bag_entry_free( libfsapfs_key_bag_entry_t **key_bag_entry, libcerror_error_t **error ); int libfsapfs_key_bag_entry_read_data( libfsapfs_key_bag_entry_t *key_bag_entry, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_KEY_BAG_ENTRY_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_definitions.h0000664000175000017500000000626213430101272024510 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_INTERNAL_DEFINITIONS_H ) #define _LIBFSAPFS_INTERNAL_DEFINITIONS_H #include #include #define LIBFSAPFS_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG #define LIBFSAPFS_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE /* Define HAVE_LOCAL_LIBFSAPFS for local use of libfsapfs */ #if !defined( HAVE_LOCAL_LIBFSAPFS ) #include /* The definitions in are copied here * for local use of libfsapfs */ #else #define LIBFSAPFS_VERSION 20190210 /* The version string */ #define LIBFSAPFS_VERSION_STRING "20190210" /* The file access * bit 1 set to 1 for read access * bit 2 set to 1 for write access * bit 3-8 not used */ enum LIBFSAPFS_ACCESS_FLAGS { LIBFSAPFS_ACCESS_FLAG_READ = 0x01, /* Reserved: not supported yet */ LIBFSAPFS_ACCESS_FLAG_WRITE = 0x02 }; /* The file access macros */ #define LIBFSAPFS_OPEN_READ ( LIBFSAPFS_ACCESS_FLAG_READ ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_WRITE ( LIBFSAPFS_ACCESS_FLAG_WRITE ) /* Reserved: not supported yet */ #define LIBFSAPFS_OPEN_READ_WRITE ( LIBFSAPFS_ACCESS_FLAG_READ | LIBFSAPFS_ACCESS_FLAG_WRITE ) /* The path segment separator */ #define LIBFSAPFS_SEPARATOR '/' #endif /* !defined( HAVE_LOCAL_LIBFSAPFS ) */ /* The compression methods */ enum LIBFSAPFS_COMPRESSION_METHODS { LIBFSAPFS_COMPRESSION_METHOD_NONE = 0, LIBFSAPFS_COMPRESSION_METHOD_DEFLATE = 1, LIBFSAPFS_COMPRESSION_METHOD_LZVN = 2, LIBFSAPFS_COMPRESSION_METHOD_UNKNOWN5 = 5 }; /* The crypt modes */ enum LIBFSAPFS_ENCRYPTION_CRYPT_MODES { LIBFSAPFS_ENCRYPTION_CRYPT_MODE_DECRYPT = 0, LIBFSAPFS_ENCRYPTION_CRYPT_MODE_ENCRYPT = 1 }; /* The encryption methods */ enum LIBFSAPFS_ENCRYPTION_METHODS { LIBFSAPFS_ENCRYPTION_METHOD_AES_256_XTS = 0, LIBFSAPFS_ENCRYPTION_METHOD_AES_128_XTS = 2 }; /* The file system B-tree data type */ enum LIBFSAPFS_FILE_SYSTEM_DATA_TYPES { LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_INODE = 3, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_EXTENDED_ATTRIBUTE = 4, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_FILE_EXTENT = 8, LIBFSAPFS_FILE_SYSTEM_DATA_TYPE_DIRECTORY_RECORD = 9 }; #define LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_BTREE_NODES 8192 #define LIBFSAPFS_MAXIMUM_CACHE_ENTRIES_DATA_BLOCKS 16 #define LIBFSAPFS_MAXIMUM_BTREE_NODE_RECURSION_DEPTH 256 #endif /* !defined( _LIBFSAPFS_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libfsapfs/fsapfs_file_system.h0000664000175000017500000001700113426637445024047 0ustar00lordyestalordyesta00000000000000/* * The APFS file system definitions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFS_FILE_SYSTEM_H ) #define _FSAPFS_FILE_SYSTEM_H #include #include #if defined( __cplusplus ) extern "C" { #endif typedef struct fsapfs_file_system_btree_key_common fsapfs_file_system_btree_key_common_t; struct fsapfs_file_system_btree_key_common { /* The file system identifier (FSID) and data type * Consists of 8 bytes */ uint8_t file_system_identifier[ 8 ]; }; typedef struct fsapfs_file_system_btree_key_directory_record fsapfs_file_system_btree_key_directory_record_t; struct fsapfs_file_system_btree_key_directory_record { /* The file system identifier (FSID) and data type * Consists of 8 bytes */ uint8_t file_system_identifier[ 8 ]; /* The name size * Consists of 2 bytes */ uint8_t name_size[ 2 ]; /* The name string * Contains an UTF-8 string with end-of-string character */ }; typedef struct fsapfs_file_system_btree_key_directory_record_with_hash fsapfs_file_system_btree_key_directory_record_with_hash_t; struct fsapfs_file_system_btree_key_directory_record_with_hash { /* The file system identifier (FSID) and data type * Consists of 8 bytes */ uint8_t file_system_identifier[ 8 ]; /* The name size and hash * Consists of 4 bytes */ uint8_t name_size_and_hash[ 4 ]; /* The name string * Contains an UTF-8 string with end-of-string character */ }; typedef struct fsapfs_file_system_btree_key_extended_attribute fsapfs_file_system_btree_key_extended_attribute_t; struct fsapfs_file_system_btree_key_extended_attribute { /* The file system identifier (FSID) and data type * Consists of 8 bytes */ uint8_t file_system_identifier[ 8 ]; /* The name size * Consists of 2 bytes */ uint8_t name_size[ 2 ]; /* The name string * Contains an UTF-8 string with end-of-string character */ }; typedef struct fsapfs_file_system_btree_key_file_extent fsapfs_file_system_btree_key_file_extent_t; struct fsapfs_file_system_btree_key_file_extent { /* The file system identifier (FSID) and data type * Consists of 8 bytes */ uint8_t file_system_identifier[ 8 ]; /* The logical address * Consists of 8 bytes */ uint8_t logical_address[ 8 ]; }; typedef struct fsapfs_file_system_btree_value_directory_record fsapfs_file_system_btree_value_directory_record_t; struct fsapfs_file_system_btree_value_directory_record { /* The file system identifier (FSID) * Consists of 8 bytes */ uint8_t file_system_identifier[ 8 ]; /* The added date and time * Consists of 8 bytes */ uint8_t added_time[ 8 ]; /* The directory entry flags * Consists of 2 bytes */ uint8_t directory_entry_flags[ 2 ]; /* Extended fields */ }; typedef struct fsapfs_file_system_btree_value_extended_attribute fsapfs_file_system_btree_value_extended_attribute_t; struct fsapfs_file_system_btree_value_extended_attribute { /* The flags * Consists of 2 bytes */ uint8_t flags[ 2 ]; /* The data size * Consists of 2 bytes */ uint8_t data_size[ 2 ]; /* The data */ }; typedef struct fsapfs_file_system_extended_attribute_data_stream fsapfs_file_system_extended_attribute_data_stream_t; struct fsapfs_file_system_extended_attribute_data_stream { /* The data stream identifier * Consists of 8 bytes */ uint8_t data_stream_identifier[ 8 ]; /* The used size * Consists of 8 bytes */ uint8_t used_size[ 8 ]; /* The allocated size * Consists of 8 bytes */ uint8_t allocated_size[ 8 ]; /* The encryption identifier * Consists of 8 bytes */ uint8_t encryption_identifier[ 8 ]; /* The number of bytes written * Consists of 8 bytes */ uint8_t number_of_bytes_written[ 8 ]; /* The number of bytes read * Consists of 8 bytes */ uint8_t number_of_bytes_read[ 8 ]; }; typedef struct fsapfs_file_system_extended_attribute_compression_header fsapfs_file_system_extended_attribute_compression_header_t; struct fsapfs_file_system_extended_attribute_compression_header { /* The signature * Consists of 4 bytes */ uint8_t signature[ 4 ]; /* The compression method * Consists of 4 bytes */ uint8_t compression_method[ 4 ]; /* The uncompressed data size * Consists of 8 bytes */ uint8_t uncompressed_data_size[ 8 ]; }; typedef struct fsapfs_file_system_btree_value_file_extent fsapfs_file_system_btree_value_file_extent_t; struct fsapfs_file_system_btree_value_file_extent { /* The data size and flags * Consists of 8 bytes */ uint8_t data_size_and_flags[ 8 ]; /* The physical block number * Consists of 8 bytes */ uint8_t physical_block_number[ 8 ]; /* The encryption identifier * Consists of 8 bytes */ uint8_t encryption_identifier[ 8 ]; }; typedef struct fsapfs_file_system_btree_value_inode fsapfs_file_system_btree_value_inode_t; struct fsapfs_file_system_btree_value_inode { /* The parent file system identifier (FSID) * Consists of 8 bytes */ uint8_t parent_identifier[ 8 ]; /* The data stream file system identifier (FSID) * Consists of 8 bytes */ uint8_t data_stream_identifier[ 8 ]; /* The modification date and time * Consists of 8 bytes */ uint8_t modification_time[ 8 ]; /* The creation date and time * Consists of 8 bytes */ uint8_t creation_time[ 8 ]; /* The inode change date and time * Consists of 8 bytes */ uint8_t inode_change_time[ 8 ]; /* The access date and time * Consists of 8 bytes */ uint8_t access_time[ 8 ]; /* The inode flags * Consists of 8 bytes */ uint8_t inode_flags[ 8 ]; /* The number of children * Consists of 4 bytes */ uint8_t number_of_children[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown1[ 4 ]; /* Unknown * Consists of 4 bytes */ uint8_t unknown2[ 4 ]; /* The BSD flags * Consists of 4 bytes */ uint8_t bsd_flags[ 4 ]; /* The owner user identifier (UID) * Consists of 4 bytes */ uint8_t owner_identifier[ 4 ]; /* The group identifier (GID) * Consists of 4 bytes */ uint8_t group_identifier[ 4 ]; /* The file mode * Consists of 2 bytes */ uint8_t file_mode[ 2 ]; /* Unknown * Consists of 2 bytes */ uint8_t unknown3[ 2 ]; /* Unknown * Consists of 8 bytes */ uint8_t unknown4[ 8 ]; /* Extended fields */ }; typedef struct fsapfs_file_system_data_stream_attribute fsapfs_file_system_data_stream_attribute_t; struct fsapfs_file_system_data_stream_attribute { /* The used size * Consists of 8 bytes */ uint8_t used_size[ 8 ]; /* The allocated size * Consists of 8 bytes */ uint8_t allocated_size[ 8 ]; /* The encryption identifier * Consists of 8 bytes */ uint8_t encryption_identifier[ 8 ]; /* The number of bytes written * Consists of 8 bytes */ uint8_t number_of_bytes_written[ 8 ]; /* The number of bytes read * Consists of 8 bytes */ uint8_t number_of_bytes_read[ 8 ]; }; #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFS_FILE_SYSTEM_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_file_extent.h0000664000175000017500000000371013426637446024524 0ustar00lordyestalordyesta00000000000000/* * File extent functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_FILE_EXTENT_H ) #define _LIBFSAPFS_FILE_EXTENT_H #include #include #include "libfsapfs_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfsapfs_file_extent libfsapfs_file_extent_t; struct libfsapfs_file_extent { /* The logical offset */ uint64_t logical_offset; /* The physical bclock number */ uint64_t physical_block_number; /* Data size */ uint64_t data_size; /* Encryption identifier */ uint64_t encryption_identifier; }; int libfsapfs_file_extent_initialize( libfsapfs_file_extent_t **file_extent, libcerror_error_t **error ); int libfsapfs_file_extent_free( libfsapfs_file_extent_t **file_extent, libcerror_error_t **error ); int libfsapfs_file_extent_read_key_data( libfsapfs_file_extent_t *file_extent, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_file_extent_read_value_data( libfsapfs_file_extent_t *file_extent, const uint8_t *data, size_t data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_FILE_EXTENT_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_unused.h0000664000175000017500000000261213426637446023521 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_UNUSED_H ) #define _LIBFSAPFS_UNUSED_H #include #if !defined( LIBFSAPFS_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBFSAPFS_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBFSAPFS_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBFSAPFS_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBFSAPFS_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBFSAPFS_UNUSED_H ) */ libfsapfs-20190210/libfsapfs/libfsapfs_data_stream.h0000664000175000017500000000363213426637446024505 0ustar00lordyestalordyesta00000000000000/* * Data stream functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFSAPFS_DATA_STREAM_H ) #define _LIBFSAPFS_DATA_STREAM_H #include #include #include "libfsapfs_encryption_context.h" #include "libfsapfs_io_handle.h" #include "libfsapfs_libcdata.h" #include "libfsapfs_libfdata.h" #if defined( __cplusplus ) extern "C" { #endif int libfsapfs_data_stream_initialize_from_data( libfdata_stream_t **data_stream, const uint8_t *data, size_t data_size, libcerror_error_t **error ); int libfsapfs_data_stream_initialize_from_file_extents( libfdata_stream_t **data_stream, libfsapfs_io_handle_t *io_handle, libfsapfs_encryption_context_t *encryption_context, libcdata_array_t *file_extents, size64_t data_stream_size, uint8_t is_sparse, libcerror_error_t **error ); int libfsapfs_data_stream_initialize_from_compressed_data_stream( libfdata_stream_t **data_stream, libfdata_stream_t *compressed_data_stream, size64_t uncompressed_data_size, int compression_method, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFSAPFS_DATA_STREAM_H ) */ libfsapfs-20190210/fsapfstools/0000775000175000017500000000000013430101371020357 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/fsapfstools/mount_file_system.h0000664000175000017500000000600413426637447024324 0ustar00lordyestalordyesta00000000000000/* * Mount file system * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _MOUNT_FILE_SYSTEM_H ) #define _MOUNT_FILE_SYSTEM_H #include #include #include "fsapfstools_libcerror.h" #include "fsapfstools_libfsapfs.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct mount_file_system mount_file_system_t; struct mount_file_system { /* The mounted timestamp */ uint64_t mounted_timestamp; /* The volume */ libfsapfs_volume_t *fsapfs_volume; }; int mount_file_system_initialize( mount_file_system_t **file_system, libcerror_error_t **error ); int mount_file_system_free( mount_file_system_t **file_system, libcerror_error_t **error ); int mount_file_system_signal_abort( mount_file_system_t *file_system, libcerror_error_t **error ); int mount_file_system_set_volume( mount_file_system_t *file_system, libfsapfs_volume_t *fsapfs_volume, libcerror_error_t **error ); int mount_file_system_get_volume( mount_file_system_t *file_system, libfsapfs_volume_t **fsapfs_volume, libcerror_error_t **error ); int mount_file_system_get_mounted_timestamp( mount_file_system_t *file_system, uint64_t *mounted_timestamp, libcerror_error_t **error ); int mount_file_system_get_file_entry_path_from_path( mount_file_system_t *file_system, const system_character_t *path, size_t path_length, system_character_t **file_entry_path, size_t *file_entry_path_size, libcerror_error_t **error ); int mount_file_system_get_file_entry_by_path( mount_file_system_t *file_system, const system_character_t *path, size_t path_length, libfsapfs_file_entry_t **fsapfs_file_entry, libcerror_error_t **error ); int mount_file_system_get_filename_from_name( mount_file_system_t *file_system, const system_character_t *name, size_t name_length, system_character_t **filename, size_t *filename_size, libcerror_error_t **error ); int mount_file_system_get_filename_from_file_entry( mount_file_system_t *file_system, libfsapfs_file_entry_t *fsapfs_file_entry, system_character_t **filename, size_t *filename_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _MOUNT_FILE_SYSTEM_H ) */ libfsapfs-20190210/fsapfstools/info_handle.c0000664000175000017500000022337113426640013023007 0ustar00lordyestalordyesta00000000000000/* * Info handle * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #include #include "fsapfstools_libbfio.h" #include "fsapfstools_libcerror.h" #include "fsapfstools_libclocale.h" #include "fsapfstools_libcnotify.h" #include "fsapfstools_libcpath.h" #include "fsapfstools_libfdatetime.h" #include "fsapfstools_libfguid.h" #include "fsapfstools_libfsapfs.h" #include "info_handle.h" #if !defined( LIBFSAPFS_HAVE_BFIO ) extern \ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ #define INFO_HANDLE_NOTIFY_STREAM stdout /* Copies a string of a decimal value to a 64-bit value * Returns 1 if successful or -1 on error */ int fsapfstools_system_string_copy_from_64_bit_in_decimal( const system_character_t *string, size_t string_size, uint64_t *value_64bit, libcerror_error_t **error ) { static char *function = "fsapfstools_system_string_copy_from_64_bit_in_decimal"; size_t string_index = 0; system_character_t character_value = 0; uint8_t maximum_string_index = 20; int8_t sign = 1; if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string size value exceeds maximum.", function ); return( -1 ); } if( value_64bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value 64-bit.", function ); return( -1 ); } *value_64bit = 0; if( string[ string_index ] == (system_character_t) '-' ) { string_index++; maximum_string_index++; sign = -1; } else if( string[ string_index ] == (system_character_t) '+' ) { string_index++; maximum_string_index++; } while( string_index < string_size ) { if( string[ string_index ] == 0 ) { break; } if( string_index > (size_t) maximum_string_index ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_LARGE, "%s: string too large.", function ); return( -1 ); } *value_64bit *= 10; if( ( string[ string_index ] >= (system_character_t) '0' ) && ( string[ string_index ] <= (system_character_t) '9' ) ) { character_value = (system_character_t) ( string[ string_index ] - (system_character_t) '0' ); } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported character value: %" PRIc_SYSTEM " at index: %d.", function, string[ string_index ], string_index ); return( -1 ); } *value_64bit += character_value; string_index++; } if( sign == -1 ) { *value_64bit *= (uint64_t) -1; } return( 1 ); } /* Creates an info handle * Make sure the value info_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int info_handle_initialize( info_handle_t **info_handle, libcerror_error_t **error ) { static char *function = "info_handle_initialize"; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( *info_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid info handle value already set.", function ); return( -1 ); } *info_handle = memory_allocate_structure( info_handle_t ); if( *info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create info handle.", function ); goto on_error; } if( memory_set( *info_handle, 0, sizeof( info_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear info handle.", function ); goto on_error; } if( libbfio_file_range_initialize( &( ( *info_handle )->input_file_io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize input file IO handle.", function ); goto on_error; } if( libfsapfs_container_initialize( &( ( *info_handle )->input_container ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize input container.", function ); goto on_error; } ( *info_handle )->notify_stream = INFO_HANDLE_NOTIFY_STREAM; return( 1 ); on_error: if( *info_handle != NULL ) { if( ( *info_handle )->bodyfile_stream != NULL ) { file_stream_close( ( *info_handle )->bodyfile_stream ); ( *info_handle )->bodyfile_stream = NULL; } if( ( *info_handle )->input_file_io_handle != NULL ) { libbfio_handle_free( &( ( *info_handle )->input_file_io_handle ), NULL ); } memory_free( *info_handle ); *info_handle = NULL; } return( -1 ); } /* Frees an info handle * Returns 1 if successful or -1 on error */ int info_handle_free( info_handle_t **info_handle, libcerror_error_t **error ) { static char *function = "info_handle_free"; int result = 1; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( *info_handle != NULL ) { if( libfsapfs_container_free( &( ( *info_handle )->input_container ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free input container.", function ); result = -1; } if( libbfio_handle_free( &( ( *info_handle )->input_file_io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free input file IO handle.", function ); result = -1; } if( ( *info_handle )->bodyfile_stream != NULL ) { if( file_stream_close( ( *info_handle )->bodyfile_stream ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close bodyfile stream.", function ); result = -1; } ( *info_handle )->bodyfile_stream = NULL; } if( ( *info_handle )->recovery_password != NULL ) { if( memory_set( ( *info_handle )->recovery_password, 0, ( *info_handle )->recovery_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear recovery password.", function ); result = -1; } memory_free( ( *info_handle )->recovery_password ); ( *info_handle )->recovery_password = NULL; ( *info_handle )->recovery_password_size = 0; } if( ( *info_handle )->user_password != NULL ) { if( memory_set( ( *info_handle )->user_password, 0, ( *info_handle )->user_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear user password.", function ); result = -1; } memory_free( ( *info_handle )->user_password ); ( *info_handle )->user_password = NULL; ( *info_handle )->user_password_size = 0; } memory_free( *info_handle ); *info_handle = NULL; } return( result ); } /* Signals the info handle to abort * Returns 1 if successful or -1 on error */ int info_handle_signal_abort( info_handle_t *info_handle, libcerror_error_t **error ) { static char *function = "info_handle_signal_abort"; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } info_handle->abort = 1; if( info_handle->input_container != NULL ) { if( libfsapfs_container_signal_abort( info_handle->input_container, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to signal input container to abort.", function ); return( -1 ); } } return( 1 ); } /* Sets the bodyfile * Returns 1 if successful or -1 on error */ int info_handle_set_bodyfile( info_handle_t *info_handle, const system_character_t *filename, libcerror_error_t **error ) { static char *function = "info_handle_set_bodyfile"; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( info_handle->bodyfile_stream != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid info handle - bodyfile stream value already set.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } info_handle->bodyfile_stream = file_stream_open( filename, "wb" ); if( info_handle->bodyfile_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open bodyfile stream.", function ); return( -1 ); } return( 1 ); } /* Sets the file system index * Returns 1 if successful or -1 on error */ int info_handle_set_file_system_index( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "info_handle_set_file_system_index"; size_t string_length = 0; uint64_t value_64bit = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } string_length = system_string_length( string ); if( fsapfstools_system_string_copy_from_64_bit_in_decimal( string, string_length + 1, &value_64bit, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy string to 64-bit decimal.", function ); return( -1 ); } if( ( value_64bit == 0 ) || ( value_64bit > 100 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file system index value out of bounds.", function ); return( -1 ); } info_handle->file_system_index = (int) value_64bit; return( 1 ); } /* Sets the password * Returns 1 if successful or -1 on error */ int info_handle_set_password( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "info_handle_set_password"; size_t string_length = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( info_handle->user_password != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid info handle - user password value already set.", function ); return( -1 ); } if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } string_length = system_string_length( string ); info_handle->user_password_size = string_length + 1; info_handle->user_password = system_string_allocate( info_handle->user_password_size ); if( info_handle->user_password == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create user password.", function ); goto on_error; } if( system_string_copy( info_handle->user_password, string, info_handle->user_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy user password.", function ); goto on_error; } return( 1 ); on_error: if( info_handle->user_password != NULL ) { memory_free( info_handle->user_password ); info_handle->user_password = NULL; } info_handle->user_password_size = 0; return( -1 ); } /* Sets the recovery password * Returns 1 if successful or -1 on error */ int info_handle_set_recovery_password( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "info_handle_set_recovery_password"; size_t string_length = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( info_handle->recovery_password != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid info handle - recovery password value already set.", function ); return( -1 ); } if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } string_length = system_string_length( string ); info_handle->recovery_password_size = string_length + 1; info_handle->recovery_password = system_string_allocate( info_handle->recovery_password_size ); if( info_handle->recovery_password == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create recovery password.", function ); goto on_error; } if( system_string_copy( info_handle->recovery_password, string, info_handle->recovery_password_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy recovery password.", function ); goto on_error; } return( 1 ); on_error: if( info_handle->recovery_password != NULL ) { memory_free( info_handle->recovery_password ); info_handle->recovery_password = NULL; } info_handle->recovery_password_size = 0; return( -1 ); } /* Sets the volume offset * Returns 1 if successful or -1 on error */ int info_handle_set_volume_offset( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "info_handle_set_volume_offset"; size_t string_length = 0; uint64_t value_64bit = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } string_length = system_string_length( string ); if( fsapfstools_system_string_copy_from_64_bit_in_decimal( string, string_length + 1, &value_64bit, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy string to 64-bit decimal.", function ); return( -1 ); } info_handle->volume_offset = (off64_t) value_64bit; return( 1 ); } /* Opens the input * Returns 1 if successful or -1 on error */ int info_handle_open_input( info_handle_t *info_handle, const system_character_t *filename, libcerror_error_t **error ) { static char *function = "info_handle_open_input"; size_t filename_length = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } filename_length = system_string_length( filename ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libbfio_file_range_set_name_wide( info_handle->input_file_io_handle, filename, filename_length, error ) != 1 ) #else if( libbfio_file_range_set_name( info_handle->input_file_io_handle, filename, filename_length, error ) != 1 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open set file name.", function ); return( -1 ); } if( libbfio_file_range_set( info_handle->input_file_io_handle, info_handle->volume_offset, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open set volume offset.", function ); return( -1 ); } if( libfsapfs_container_open_file_io_handle( info_handle->input_container, info_handle->input_file_io_handle, LIBFSAPFS_OPEN_READ, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open input container.", function ); return( -1 ); } return( 1 ); } /* Closes the input * Returns the 0 if succesful or -1 on error */ int info_handle_close_input( info_handle_t *info_handle, libcerror_error_t **error ) { static char *function = "info_handle_close_input"; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( libfsapfs_container_close( info_handle->input_container, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close input container.", function ); return( -1 ); } return( 0 ); } /* Retrieves a specific volume from the container * Returns 1 if successful or -1 on error */ int info_handle_get_volume_by_index( info_handle_t *info_handle, int volume_index, libfsapfs_volume_t **volume, libcerror_error_t **error ) { static char *function = "info_handle_get_volume_by_index"; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( *volume != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume value already set.", function ); return( -1 ); } if( libfsapfs_container_get_volume_by_index( info_handle->input_container, volume_index, volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, volume_index ); goto on_error; } if( info_handle->user_password != NULL ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libfsapfs_volume_set_utf16_password( *volume, (uint16_t *) info_handle->user_password, info_handle->user_password_size - 1, error ) != 1 ) #else if( libfsapfs_volume_set_utf8_password( *volume, (uint8_t *) info_handle->user_password, info_handle->user_password_size - 1, error ) != 1 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set password.", function ); goto on_error; } } if( info_handle->recovery_password != NULL ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libfsapfs_volume_set_utf16_recovery_password( *volume, (uint16_t *) info_handle->recovery_password, info_handle->recovery_password_size - 1, error ) != 1 ) #else if( libfsapfs_volume_set_utf8_recovery_password( *volume, (uint8_t *) info_handle->recovery_password, info_handle->recovery_password_size - 1, error ) != 1 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set recovery password.", function ); goto on_error; } } /* TODO call unlock volume */ return( 1 ); on_error: if( *volume != NULL ) { libfsapfs_volume_free( volume, NULL ); } return( -1 ); } /* Prints a POSIX value * Returns 1 if successful or -1 on error */ int info_handle_posix_time_value_fprint( info_handle_t *info_handle, const char *value_name, int64_t value_64bit, libcerror_error_t **error ) { system_character_t date_time_string[ 32 ]; libfdatetime_posix_time_t *posix_time = NULL; static char *function = "info_handle_posix_time_fprint"; int result = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( value_64bit == 0 ) { fprintf( info_handle->notify_stream, "%s: Not set (0)\n", value_name ); } else { if( libfdatetime_posix_time_initialize( &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create POSIX time.", function ); goto on_error; } if( libfdatetime_posix_time_copy_from_64bit( posix_time, (uint64_t) value_64bit, LIBFDATETIME_POSIX_TIME_VALUE_TYPE_NANO_SECONDS_64BIT_SIGNED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy POSIX time from 64-bit.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfdatetime_posix_time_copy_to_utf16_string( posix_time, (uint16_t *) date_time_string, 32, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ); #else result = libfdatetime_posix_time_copy_to_utf8_string( posix_time, (uint8_t *) date_time_string, 32, LIBFDATETIME_STRING_FORMAT_TYPE_ISO8601 | LIBFDATETIME_STRING_FORMAT_FLAG_DATE_TIME_NANO_SECONDS, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to copy POSIX time to string.", function ); goto on_error; } fprintf( info_handle->notify_stream, "%s: %" PRIs_SYSTEM "Z\n", value_name, date_time_string ); if( libfdatetime_posix_time_free( &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free POSIX time.", function ); goto on_error; } } return( 1 ); on_error: if( posix_time != NULL ) { libfdatetime_posix_time_free( &posix_time, NULL ); } return( -1 ); } /* Prints an UUID value * Returns 1 if successful or -1 on error */ int info_handle_uuid_value_fprint( info_handle_t *info_handle, const char *value_name, const uint8_t *uuid_data, libcerror_error_t **error ) { system_character_t uuid_string[ 48 ]; libfguid_identifier_t *uuid = NULL; static char *function = "info_handle_uuid_value_fprint"; int result = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( libfguid_identifier_initialize( &uuid, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create UUID.", function ); goto on_error; } if( libfguid_identifier_copy_from_byte_stream( uuid, uuid_data, 16, LIBFGUID_ENDIAN_BIG, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy byte stream to UUID.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfguid_identifier_copy_to_utf16_string( uuid, (uint16_t *) uuid_string, 48, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, error ); #else result = libfguid_identifier_copy_to_utf8_string( uuid, (uint8_t *) uuid_string, 48, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UUID to string.", function ); goto on_error; } fprintf( info_handle->notify_stream, "%s: %" PRIs_SYSTEM "\n", value_name, uuid_string ); if( libfguid_identifier_free( &uuid, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free UUID.", function ); goto on_error; } return( 1 ); on_error: if( uuid != NULL ) { libfguid_identifier_free( &uuid, NULL ); } return( -1 ); } /* Prints a file entry value * Returns 1 if successful, 0 if not or -1 on error */ int info_handle_file_entry_value_fprint( info_handle_t *info_handle, libfsapfs_file_entry_t *file_entry, const system_character_t *path, libcerror_error_t **error ) { char file_mode_string[ 11 ] = { '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', 0 }; libfsapfs_extended_attribute_t *extended_attribute = NULL; system_character_t *extended_attribute_name = NULL; system_character_t *file_entry_name = NULL; system_character_t *symbolic_link_target = NULL; static char *function = "info_handle_file_entry_value_fprint"; size64_t size = 0; size_t extended_attribute_name_size = 0; size_t file_entry_name_size = 0; size_t symbolic_link_target_size = 0; uint64_t identifier = 0; int64_t access_time = 0; int64_t creation_time = 0; int64_t inode_change_time = 0; int64_t modification_time = 0; uint32_t group_identifier = 0; uint32_t owner_identifier = 0; uint16_t file_mode = 0; int extended_attribute_index = 0; int number_of_extended_attributes = 0; int result = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( libfsapfs_file_entry_get_identifier( file_entry, &identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_name_size( file_entry, &file_entry_name_size, error ); #else result = libfsapfs_file_entry_get_utf8_name_size( file_entry, &file_entry_name_size, error ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry name string size.", function ); goto on_error; } if( ( result == 1 ) && ( file_entry_name_size > 0 ) ) { file_entry_name = system_string_allocate( file_entry_name_size ); if( file_entry_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file entry name string.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_name( file_entry, (uint16_t *) file_entry_name, file_entry_name_size, error ); #else result = libfsapfs_file_entry_get_utf8_name( file_entry, (uint8_t *) file_entry_name, file_entry_name_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry name string.", function ); goto on_error; } } if( libfsapfs_file_entry_get_creation_time( file_entry, &creation_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve creation time.", function ); goto on_error; } if( libfsapfs_file_entry_get_modification_time( file_entry, &modification_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve modification time.", function ); goto on_error; } if( libfsapfs_file_entry_get_inode_change_time( file_entry, &inode_change_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode change time.", function ); goto on_error; } if( libfsapfs_file_entry_get_access_time( file_entry, &access_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access time.", function ); goto on_error; } if( libfsapfs_file_entry_get_owner_identifier( file_entry, &owner_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve owner identifier.", function ); goto on_error; } if( libfsapfs_file_entry_get_group_identifier( file_entry, &group_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve group identifier.", function ); goto on_error; } if( libfsapfs_file_entry_get_file_mode( file_entry, &file_mode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file mode.", function ); goto on_error; } /* TODO move into function */ if( ( file_mode & 0x0001 ) != 0 ) { file_mode_string[ 9 ] = 'x'; } if( ( file_mode & 0x0002 ) != 0 ) { file_mode_string[ 8 ] = 'w'; } if( ( file_mode & 0x0004 ) != 0 ) { file_mode_string[ 7 ] = 'r'; } if( ( file_mode & 0x0008 ) != 0 ) { file_mode_string[ 6 ] = 'x'; } if( ( file_mode & 0x0010 ) != 0 ) { file_mode_string[ 5 ] = 'w'; } if( ( file_mode & 0x0020 ) != 0 ) { file_mode_string[ 4 ] = 'r'; } if( ( file_mode & 0x0040 ) != 0 ) { file_mode_string[ 3 ] = 'x'; } if( ( file_mode & 0x0080 ) != 0 ) { file_mode_string[ 2 ] = 'w'; } if( ( file_mode & 0x0100 ) != 0 ) { file_mode_string[ 1 ] = 'r'; } switch( file_mode & 0xf000 ) { case 0x1000: file_mode_string[ 0 ] = 'p'; break; case 0x2000: file_mode_string[ 0 ] = 'c'; break; case 0x4000: file_mode_string[ 0 ] = 'd'; break; case 0x6000: file_mode_string[ 0 ] = 'b'; break; case 0xa000: file_mode_string[ 0 ] = 'l'; break; case 0xc000: file_mode_string[ 0 ] = 's'; break; default: break; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_symbolic_link_target_size( file_entry, &symbolic_link_target_size, error ); #else result = libfsapfs_file_entry_get_utf8_symbolic_link_target_size( file_entry, &symbolic_link_target_size, error ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve symbolic link target string size.", function ); goto on_error; } else if( result != 0 ) { symbolic_link_target = system_string_allocate( symbolic_link_target_size ); if( symbolic_link_target == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create symbolic link target string.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_symbolic_link_target( file_entry, (uint16_t *) symbolic_link_target, symbolic_link_target_size, error ); #else result = libfsapfs_file_entry_get_utf8_symbolic_link_target( file_entry, (uint8_t *) symbolic_link_target, symbolic_link_target_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve symbolic link target string.", function ); goto on_error; } } if( libfsapfs_file_entry_get_size( file_entry, &size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size.", function ); goto on_error; } if( info_handle->bodyfile_stream != NULL ) { /* Colums in a Sleuthkit 3.x and later bodyfile * MD5|name|inode|mode_as_string|UID|GID|size|atime|mtime|ctime|crtime */ fprintf( info_handle->bodyfile_stream, "0|" ); if( path != NULL ) { fprintf( info_handle->bodyfile_stream, "%" PRIs_SYSTEM "", path ); } if( ( file_entry_name != NULL ) && ( identifier != 2 ) ) { fprintf( info_handle->bodyfile_stream, "%" PRIs_SYSTEM "", file_entry_name ); } fprintf( info_handle->bodyfile_stream, "|%" PRIu64 "|%s|%" PRIu32 "|%" PRIu32 "|%" PRIu64 "|%.9f|%.9f|%.9f|%.9f\n", identifier, file_mode_string, owner_identifier, group_identifier, size, (double) access_time / 1000000000, (double) modification_time / 1000000000, (double) inode_change_time / 1000000000, (double) creation_time / 1000000000 ); } else { fprintf( info_handle->notify_stream, "\tIdentifier\t\t: %" PRIu64 "\n", identifier ); if( file_entry_name != NULL ) { fprintf( info_handle->notify_stream, "\tName\t\t\t: " ); if( path != NULL ) { fprintf( info_handle->notify_stream, "%" PRIs_SYSTEM "", path ); } fprintf( info_handle->notify_stream, "%" PRIs_SYSTEM "\n", file_entry_name ); } fprintf( info_handle->notify_stream, "\tSize\t\t\t: %" PRIu64 "\n", size ); if( info_handle_posix_time_value_fprint( info_handle, "\tCreation time\t\t", creation_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } if( info_handle_posix_time_value_fprint( info_handle, "\tModification time\t", modification_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } if( info_handle_posix_time_value_fprint( info_handle, "\tInode change time\t", inode_change_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } if( info_handle_posix_time_value_fprint( info_handle, "\tAccess time\t\t", access_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print POSIX time value.", function ); goto on_error; } fprintf( info_handle->notify_stream, "\tOwner identifier\t: %" PRIu32 "\n", owner_identifier ); fprintf( info_handle->notify_stream, "\tGroup identifier\t: %" PRIu32 "\n", group_identifier ); fprintf( info_handle->notify_stream, "\tFile mode\t\t: %s (%07" PRIo16 ")\n", file_mode_string, file_mode ); if( symbolic_link_target != NULL ) { fprintf( info_handle->notify_stream, "\tSymbolic link target\t: %" PRIs_SYSTEM "\n", symbolic_link_target ); } if( libfsapfs_file_entry_get_number_of_extended_attributes( file_entry, &number_of_extended_attributes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of extended attributes.", function ); goto on_error; } if( number_of_extended_attributes > 0 ) { fprintf( info_handle->notify_stream, "\tExtended attributes:\n" ); for( extended_attribute_index = 0; extended_attribute_index < number_of_extended_attributes; extended_attribute_index++ ) { if( libfsapfs_file_entry_get_extended_attribute_by_index( file_entry, extended_attribute_index, &extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute: %d.", function, extended_attribute_index ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_extended_attribute_get_utf16_name_size( extended_attribute, &extended_attribute_name_size, error ); #else result = libfsapfs_extended_attribute_get_utf8_name_size( extended_attribute, &extended_attribute_name_size, error ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute name string size.", function ); goto on_error; } fprintf( info_handle->notify_stream, "\t\tAttribute: %d\t: ", extended_attribute_index + 1 ); if( ( result == 1 ) && ( extended_attribute_name_size > 0 ) ) { extended_attribute_name = system_string_allocate( extended_attribute_name_size ); if( extended_attribute_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create extended attribute name string.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_extended_attribute_get_utf16_name( extended_attribute, (uint16_t *) extended_attribute_name, extended_attribute_name_size, error ); #else result = libfsapfs_extended_attribute_get_utf8_name( extended_attribute, (uint8_t *) extended_attribute_name, extended_attribute_name_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve extended attribute name string.", function ); goto on_error; } fprintf( info_handle->notify_stream, "%" PRIs_SYSTEM "", extended_attribute_name ); memory_free( extended_attribute_name ); extended_attribute_name = NULL; } fprintf( info_handle->notify_stream, "\n" ); if( libfsapfs_extended_attribute_free( &extended_attribute, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free extended attribute: %d.", function, extended_attribute_index ); goto on_error; } } } } if( symbolic_link_target != NULL ) { memory_free( symbolic_link_target ); symbolic_link_target = NULL; } if( file_entry_name != NULL ) { memory_free( file_entry_name ); file_entry_name = NULL; } return( 1 ); on_error: if( extended_attribute_name != NULL ) { memory_free( extended_attribute_name ); } if( extended_attribute != NULL ) { libfsapfs_extended_attribute_free( &extended_attribute, NULL ); } if( symbolic_link_target != NULL ) { memory_free( symbolic_link_target ); } if( file_entry_name != NULL ) { memory_free( file_entry_name ); } return( -1 ); } /* Prints file entry information as part of the file system hierarchy * Returns 1 if successful or -1 on error */ int info_handle_file_system_hierarchy_fprint_file_entry( info_handle_t *info_handle, libfsapfs_file_entry_t *file_entry, const system_character_t *path, libcerror_error_t **error ) { libfsapfs_file_entry_t *sub_file_entry = NULL; system_character_t *file_entry_name = NULL; system_character_t *sub_path = NULL; static char *function = "info_handle_file_system_hierarchy_fprint_file_entry"; size_t file_entry_name_size = 0; size_t path_length = 0; size_t sub_path_size = 0; uint64_t identifier = 0; int number_of_sub_file_entries = 0; int result = 0; int sub_file_entry_index = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( libfsapfs_file_entry_get_identifier( file_entry, &identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve identifier.", function ); goto on_error; } if( libfsapfs_file_entry_get_number_of_sub_file_entries( file_entry, &number_of_sub_file_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub file entries.", function ); goto on_error; } path_length = system_string_length( path ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_name_size( file_entry, &file_entry_name_size, error ); #else result = libfsapfs_file_entry_get_utf8_name_size( file_entry, &file_entry_name_size, error ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry name string size.", function ); goto on_error; } if( ( result == 1 ) && ( file_entry_name_size > 0 ) ) { file_entry_name = system_string_allocate( file_entry_name_size ); if( file_entry_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file entry name string.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_name( file_entry, (uint16_t *) file_entry_name, file_entry_name_size, error ); #else result = libfsapfs_file_entry_get_utf8_name( file_entry, (uint8_t *) file_entry_name, file_entry_name_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry name string.", function ); goto on_error; } } if( info_handle->bodyfile_stream != NULL ) { if( info_handle_file_entry_value_fprint( info_handle, file_entry, path, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print file entry.", function ); goto on_error; } } else { /* TODO move into info_handle_file_entry_value_fprint with print name only mode ? */ fprintf( info_handle->notify_stream, "%" PRIs_SYSTEM "", path ); if( ( file_entry_name != NULL ) && ( identifier != 2 ) ) { fprintf( info_handle->notify_stream, "%" PRIs_SYSTEM "", file_entry_name ); } fprintf( info_handle->notify_stream, "\n" ); } if( number_of_sub_file_entries > 0 ) { sub_path_size = path_length + 1; if( ( file_entry_name != NULL ) && ( identifier != 2 ) ) { sub_path_size += file_entry_name_size; } sub_path = system_string_allocate( sub_path_size ); if( sub_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create sub path.", function ); goto on_error; } if( system_string_copy( sub_path, path, path_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy path to sub path.", function ); goto on_error; } if( ( file_entry_name != NULL ) && ( identifier != 2 ) ) { if( system_string_copy( &( sub_path[ path_length ] ), file_entry_name, file_entry_name_size - 1 ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy file entry name to sub path.", function ); goto on_error; } sub_path[ sub_path_size - 2 ] = (system_character_t) LIBFSAPFS_SEPARATOR; } sub_path[ sub_path_size - 1 ] = (system_character_t) 0; for( sub_file_entry_index = 0; sub_file_entry_index < number_of_sub_file_entries; sub_file_entry_index++ ) { if( libfsapfs_file_entry_get_sub_file_entry_by_index( file_entry, sub_file_entry_index, &sub_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d.", function, sub_file_entry_index ); goto on_error; } if( info_handle_file_system_hierarchy_fprint_file_entry( info_handle, sub_file_entry, sub_path, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print file entry: %d information.", function, sub_file_entry_index ); goto on_error; } if( libfsapfs_file_entry_free( &sub_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free sub file entry: %d.", function, sub_file_entry_index ); goto on_error; } } } if( sub_path != NULL ) { memory_free( sub_path ); sub_path = NULL; } if( file_entry_name != NULL ) { memory_free( file_entry_name ); file_entry_name = NULL; } return( 1 ); on_error: if( sub_file_entry != NULL ) { libfsapfs_file_entry_free( &sub_file_entry, NULL ); } if( sub_path != NULL ) { memory_free( sub_path ); } if( file_entry_name != NULL ) { memory_free( file_entry_name ); } return( -1 ); } /* Prints the file system hierarchy information * Returns 1 if successful or -1 on error */ int info_handle_file_system_hierarchy_fprint( info_handle_t *info_handle, libcerror_error_t **error ) { system_character_t uuid_string[ 48 ]; uint8_t uuid_data[ 16 ]; libfguid_identifier_t *uuid = NULL; libfsapfs_file_entry_t *file_entry = NULL; libfsapfs_volume_t *volume = NULL; static char *function = "info_handle_file_system_hierarchy_fprint"; int number_of_volumes = 0; int result = 0; int volume_index = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "Apple File System (APFS) information:\n\n" ); fprintf( info_handle->notify_stream, "File system hierarchy:\n" ); } if( libfsapfs_container_get_number_of_volumes( info_handle->input_container, &number_of_volumes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of volumes.", function ); goto on_error; } if( ( info_handle->file_system_index < 0 ) || ( info_handle->file_system_index > number_of_volumes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file system index value out of bounds.", function ); goto on_error; } for( volume_index = 0; volume_index < number_of_volumes; volume_index++ ) { if( ( info_handle->file_system_index != 0 ) && ( info_handle->file_system_index != ( volume_index + 1 ) ) ) { continue; } if( info_handle_get_volume_by_index( info_handle, volume_index, &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, volume_index ); goto on_error; } if( libfsapfs_volume_get_identifier( volume, uuid_data, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume identifier.", function ); goto on_error; } if( libfguid_identifier_initialize( &uuid, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create UUID.", function ); goto on_error; } if( libfguid_identifier_copy_from_byte_stream( uuid, uuid_data, 16, LIBFGUID_ENDIAN_BIG, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy byte stream to UUID.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfguid_identifier_copy_to_utf16_string( uuid, (uint16_t *) &( uuid_string[ 1 ] ), 48 - 1, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES, error ); #else result = libfguid_identifier_copy_to_utf8_string( uuid, (uint8_t *) &( uuid_string[ 1 ] ), 48 - 1, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE | LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy UUID to string.", function ); goto on_error; } uuid_string[ 0 ] = (system_character_t) LIBFSAPFS_SEPARATOR; uuid_string[ 39 ] = (system_character_t) LIBFSAPFS_SEPARATOR; uuid_string[ 40 ] = (system_character_t) 0; if( libfguid_identifier_free( &uuid, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free UUID.", function ); goto on_error; } if( libfsapfs_volume_get_root_directory( volume, &file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve root directory file entry from volume: %d.", function, volume_index ); goto on_error; } if( info_handle_file_system_hierarchy_fprint_file_entry( info_handle, file_entry, uuid_string, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print root directory file entry information.", function ); goto on_error; } if( libfsapfs_file_entry_free( &file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); goto on_error; } if( libfsapfs_volume_free( &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free volume.", function ); goto on_error; } } if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "\n" ); } return( 1 ); on_error: if( file_entry != NULL ) { libfsapfs_file_entry_free( &file_entry, NULL ); } if( uuid != NULL ) { libfguid_identifier_free( &uuid, NULL ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( -1 ); } /* Prints the file entry information for a specific identifier * Returns 1 if successful, 0 if not or -1 on error */ int info_handle_file_entry_fprint_by_identifier( info_handle_t *info_handle, uint64_t file_system_identifier, libcerror_error_t **error ) { libfsapfs_file_entry_t *file_entry = NULL; libfsapfs_volume_t *volume = NULL; static char *function = "info_handle_file_entry_fprint_by_identifier"; int number_of_volumes = 0; int result = 0; int volume_index = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( libfsapfs_container_get_number_of_volumes( info_handle->input_container, &number_of_volumes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of volumes.", function ); goto on_error; } volume_index = info_handle->file_system_index; if( ( volume_index == 0 ) && ( number_of_volumes == 1 ) ) { volume_index = 1; } if( ( volume_index <= 0 ) || ( volume_index > number_of_volumes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file system index value out of bounds.", function ); goto on_error; } volume_index -= 1; if( info_handle_get_volume_by_index( info_handle, volume_index, &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, volume_index ); goto on_error; } if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "Apple File System (APFS) information:\n\n" ); } result = libfsapfs_volume_get_file_entry_by_identifier( volume, file_system_identifier, &file_entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to retrieve file entry: %" PRIu64 ".", function, file_system_identifier ); goto on_error; } else if( result != 0 ) { if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "File entry:\n" ); } if( info_handle_file_entry_value_fprint( info_handle, file_entry, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print file entry.", function ); goto on_error; } if( libfsapfs_file_entry_free( &file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); goto on_error; } if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "\n" ); } } if( libfsapfs_volume_free( &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free volume.", function ); goto on_error; } return( result ); on_error: if( file_entry != NULL ) { libfsapfs_file_entry_free( &file_entry, NULL ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( -1 ); } /* Prints the file entry information for a specific path * Returns 1 if successful or -1 on error */ int info_handle_file_entry_fprint_by_path( info_handle_t *info_handle, const system_character_t *path, libcerror_error_t **error ) { libfsapfs_file_entry_t *file_entry = NULL; libfsapfs_volume_t *volume = NULL; static char *function = "info_handle_file_entry_fprint_by_path"; size_t path_length = 0; int number_of_volumes = 0; int result = 0; int volume_index = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( libfsapfs_container_get_number_of_volumes( info_handle->input_container, &number_of_volumes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of volumes.", function ); goto on_error; } volume_index = info_handle->file_system_index; if( ( volume_index == 0 ) && ( number_of_volumes == 1 ) ) { volume_index = 1; } if( ( volume_index <= 0 ) || ( volume_index > number_of_volumes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file system index value out of bounds.", function ); goto on_error; } volume_index -= 1; if( info_handle_get_volume_by_index( info_handle, volume_index, &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, 0 ); goto on_error; } path_length = system_string_length( path ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_volume_get_file_entry_by_utf16_path( volume, (uint16_t *) path, path_length, &file_entry, error ); #else result = libfsapfs_volume_get_file_entry_by_utf8_path( volume, (uint8_t *) path, path_length, &file_entry, error ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry.", function ); goto on_error; } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: file entry not found.", function ); goto on_error; } if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "Apple File System (APFS) information:\n\n" ); fprintf( info_handle->notify_stream, "File entry:\n" ); fprintf( info_handle->notify_stream, "\tPath\t\t\t: %" PRIs_SYSTEM "\n", path ); } if( info_handle_file_entry_value_fprint( info_handle, file_entry, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print file entry.", function ); goto on_error; } if( libfsapfs_file_entry_free( &file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); goto on_error; } if( libfsapfs_volume_free( &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free volume.", function ); goto on_error; } if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "\n" ); } return( 1 ); on_error: if( file_entry != NULL ) { libfsapfs_file_entry_free( &file_entry, NULL ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( -1 ); } /* Prints the file entries information * Returns 1 if successful or -1 on error */ int info_handle_file_entries_fprint( info_handle_t *info_handle, libcerror_error_t **error ) { libfsapfs_file_entry_t *file_entry = NULL; libfsapfs_volume_t *volume = NULL; static char *function = "info_handle_file_entries_fprint"; uint64_t file_system_identifier = 0; uint64_t next_file_entry_identifier = 0; int number_of_volumes = 0; int result = 0; int volume_index = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } if( libfsapfs_container_get_number_of_volumes( info_handle->input_container, &number_of_volumes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of volumes.", function ); goto on_error; } volume_index = info_handle->file_system_index; if( ( volume_index == 0 ) && ( number_of_volumes == 1 ) ) { volume_index = 1; } if( ( volume_index <= 0 ) || ( volume_index > number_of_volumes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file system index value out of bounds.", function ); goto on_error; } volume_index -= 1; if( info_handle_get_volume_by_index( info_handle, volume_index, &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, 0 ); goto on_error; } if( libfsapfs_volume_get_next_file_entry_identifier( volume, &next_file_entry_identifier, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next file entry identifier.", function ); goto on_error; } fprintf( info_handle->notify_stream, "Apple File System (APFS) information:\n\n" ); for( file_system_identifier = 0; file_system_identifier < next_file_entry_identifier; file_system_identifier++ ) { result = libfsapfs_volume_get_file_entry_by_identifier( volume, file_system_identifier, &file_entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to retrieve file entry: %" PRIu64 ".", function, file_system_identifier ); goto on_error; } else if( result != 0 ) { if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "File entry:\n" ); } if( info_handle_file_entry_value_fprint( info_handle, file_entry, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print file entry.", function ); goto on_error; } if( libfsapfs_file_entry_free( &file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); goto on_error; } if( info_handle->bodyfile_stream == NULL ) { fprintf( info_handle->notify_stream, "\n" ); } } } if( libfsapfs_volume_free( &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free volume.", function ); goto on_error; } return( 1 ); on_error: if( file_entry != NULL ) { libfsapfs_file_entry_free( &file_entry, NULL ); } if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( -1 ); } /* Prints the volume information * Returns 1 if successful or -1 on error */ int info_handle_volume_fprint( info_handle_t *info_handle, int volume_index, libfsapfs_volume_t *volume, libcerror_error_t **error ) { uint8_t uuid_data[ 16 ]; system_character_t *volume_name = NULL; static char *function = "info_handle_volume_fprint"; size_t volume_name_size = 0; int result = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } fprintf( info_handle->notify_stream, "\nVolume: %d information:\n", volume_index + 1 ); if( libfsapfs_volume_get_identifier( volume, uuid_data, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume identifier.", function ); goto on_error; } if( info_handle_uuid_value_fprint( info_handle, "\tIdentifier\t\t", uuid_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print UUID value.", function ); goto on_error; } fprintf( info_handle->notify_stream, "\tName\t\t\t: " ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_volume_get_utf16_name_size( volume, &volume_name_size, error ); #else result = libfsapfs_volume_get_utf8_name_size( volume, &volume_name_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume name size.", function ); goto on_error; } if( volume_name_size > 0 ) { volume_name = system_string_allocate( volume_name_size ); if( volume_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create volume name string.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_volume_get_utf16_name( volume, (uint16_t *) volume_name, volume_name_size, error ); #else result = libfsapfs_volume_get_utf8_name( volume, (uint8_t *) volume_name, volume_name_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume name.", function ); goto on_error; } fprintf( info_handle->notify_stream, "%" PRIs_SYSTEM "", volume_name ); memory_free( volume_name ); volume_name = NULL; } fprintf( info_handle->notify_stream, "\n" ); /* TODO print additional volume information such as size */ fprintf( info_handle->notify_stream, "\n" ); return( 1 ); on_error: if( volume_name != NULL ) { memory_free( volume_name ); } return( -1 ); } /* Prints the container information * Returns 1 if successful or -1 on error */ int info_handle_container_fprint( info_handle_t *info_handle, libcerror_error_t **error ) { uint8_t uuid_data[ 16 ]; libfsapfs_volume_t *volume = NULL; static char *function = "info_handle_container_fprint"; int number_of_volumes = 0; int volume_index = 0; if( info_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid info handle.", function ); return( -1 ); } fprintf( info_handle->notify_stream, "Apple File System (APFS) information:\n\n" ); fprintf( info_handle->notify_stream, "Container information:\n" ); if( libfsapfs_container_get_identifier( info_handle->input_container, uuid_data, 16, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve container identifier.", function ); goto on_error; } if( info_handle_uuid_value_fprint( info_handle, "\tIdentifier\t\t", uuid_data, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print UUID value.", function ); goto on_error; } /* TODO print additional container information such as size */ if( libfsapfs_container_get_number_of_volumes( info_handle->input_container, &number_of_volumes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of volumes.", function ); goto on_error; } fprintf( info_handle->notify_stream, "\tNumber of volumes\t: %d\n", number_of_volumes ); for( volume_index = 0; volume_index < number_of_volumes; volume_index++ ) { if( info_handle_get_volume_by_index( info_handle, volume_index, &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, volume_index ); goto on_error; } if( info_handle_volume_fprint( info_handle, volume_index, volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_PRINT_FAILED, "%s: unable to print volume: %d.", function, volume_index ); goto on_error; } if( libfsapfs_volume_free( &volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free volume.", function ); goto on_error; } } return( 1 ); on_error: if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( -1 ); } libfsapfs-20190210/fsapfstools/mount_file_system.c0000664000175000017500000007465513426640013024317 0ustar00lordyestalordyesta00000000000000/* * Mount file system * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_SYS_STAT_H ) #include #endif #if defined( TIME_WITH_SYS_TIME ) #include #include #elif defined( HAVE_SYS_TIME_H ) #include #else #include #endif #include "fsapfstools_libcerror.h" #include "fsapfstools_libcpath.h" #include "fsapfstools_libfsapfs.h" #include "fsapfstools_libuna.h" #include "mount_file_system.h" /* Creates a file system * Make sure the value file_system is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int mount_file_system_initialize( mount_file_system_t **file_system, libcerror_error_t **error ) { #if defined( WINAPI ) FILETIME filetime; SYSTEMTIME systemtime; #elif defined( HAVE_CLOCK_GETTIME ) struct timespec time_structure; #endif static char *function = "mount_file_system_initialize"; #if defined( WINAPI ) DWORD error_code = 0; #else int64_t timestamp = 0; #endif if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( *file_system != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file system value already set.", function ); return( -1 ); } *file_system = memory_allocate_structure( mount_file_system_t ); if( *file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file system.", function ); goto on_error; } if( memory_set( *file_system, 0, sizeof( mount_file_system_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file system.", function ); memory_free( *file_system ); *file_system = NULL; return( -1 ); } #if defined( WINAPI ) if( memory_set( &systemtime, 0, sizeof( SYSTEMTIME ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear systemtime.", function ); goto on_error; } GetSystemTime( &systemtime ); if( SystemTimeToFileTime( &systemtime, &filetime ) == 0 ) { error_code = GetLastError(); libcerror_system_set_error( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, error_code, "%s: unable to retrieve FILETIME of current time.", function ); goto on_error; } ( *file_system )->mounted_timestamp = ( (uint64_t) filetime.dwHighDateTime << 32 ) | filetime.dwLowDateTime; #elif defined( HAVE_CLOCK_GETTIME ) if( clock_gettime( CLOCK_REALTIME, &time_structure ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current time structure.", function ); goto on_error; } timestamp = ( (int64_t) time_structure.tv_sec * 1000000000 ) + time_structure.tv_nsec; ( *file_system )->mounted_timestamp = (uint64_t) timestamp; #else timestamp = (int64_t) time( NULL ); if( timestamp == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current time.", function ); goto on_error; } timestamp *= 1000000000; ( *file_system )->mounted_timestamp = (uint64_t) timestamp; #endif /* defined( HAVE_CLOCK_GETTIME ) */ return( 1 ); on_error: if( *file_system != NULL ) { memory_free( *file_system ); *file_system = NULL; } return( -1 ); } /* Frees a file system * Returns 1 if successful or -1 on error */ int mount_file_system_free( mount_file_system_t **file_system, libcerror_error_t **error ) { static char *function = "mount_file_system_free"; int result = 1; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( *file_system != NULL ) { memory_free( *file_system ); *file_system = NULL; } return( result ); } /* Signals the mount volume system to abort * Returns 1 if successful or -1 on error */ int mount_file_system_signal_abort( mount_file_system_t *file_system, libcerror_error_t **error ) { static char *function = "mount_file_system_signal_abort"; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( file_system->fsapfs_volume != NULL ) { if( libfsapfs_volume_signal_abort( file_system->fsapfs_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to signal volume to abort.", function ); return( -1 ); } } return( 1 ); } /* Sets the volume * Returns 1 if successful or -1 on error */ int mount_file_system_set_volume( mount_file_system_t *file_system, libfsapfs_volume_t *fsapfs_volume, libcerror_error_t **error ) { static char *function = "mount_file_system_set_volume"; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } file_system->fsapfs_volume = fsapfs_volume; return( 1 ); } /* Retrieves the volume * Returns 1 if successful or -1 on error */ int mount_file_system_get_volume( mount_file_system_t *file_system, libfsapfs_volume_t **fsapfs_volume, libcerror_error_t **error ) { static char *function = "mount_file_system_get_volume"; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( fsapfs_volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } *fsapfs_volume = file_system->fsapfs_volume; return( 1 ); } /* Retrieves the mounted timestamp * On Windows the timestamp is an unsigned 64-bit FILETIME timestamp * otherwise the timestamp is a signed 64-bit POSIX date and time value in number of nanoseconds * Returns 1 if successful or -1 on error */ int mount_file_system_get_mounted_timestamp( mount_file_system_t *file_system, uint64_t *mounted_timestamp, libcerror_error_t **error ) { static char *function = "mount_file_system_get_mounted_timestamp"; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( mounted_timestamp == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mounted timestamp.", function ); return( -1 ); } *mounted_timestamp = file_system->mounted_timestamp; return( 1 ); } /* Retrieves the file entry path from the path * Returns 1 if successful or -1 on error */ int mount_file_system_get_file_entry_path_from_path( mount_file_system_t *file_system, const system_character_t *path, size_t path_length, system_character_t **file_entry_path, size_t *file_entry_path_size, libcerror_error_t **error ) { system_character_t *safe_file_entry_path = NULL; static char *function = "mount_file_system_get_file_entry_path_from_path"; libuna_unicode_character_t unicode_character = 0; system_character_t character = 0; system_character_t escape_character = 0; system_character_t hex_digit = 0; system_character_t hex_value = 0; size_t file_entry_path_index = 0; size_t path_index = 0; size_t safe_file_entry_path_size = 0; int result = 0; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path length.", function ); return( -1 ); } if( path_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid path length value exceeds maximum.", function ); return( -1 ); } if( file_entry_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry path.", function ); return( -1 ); } if( file_entry_path_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry path size.", function ); return( -1 ); } if( path[ 0 ] != (system_character_t) LIBCPATH_SEPARATOR ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported path - path is not absolute.", function ); return( -1 ); } *file_entry_path = NULL; *file_entry_path_size = 0; safe_file_entry_path_size = path_length + 1; if( safe_file_entry_path_size > (size_t) ( SSIZE_MAX / sizeof( system_character_t ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid file entry path size value exceeds maximum.", function ); goto on_error; } safe_file_entry_path = system_string_allocate( safe_file_entry_path_size ); if( safe_file_entry_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file entry path.", function ); goto on_error; } #if defined( WINAPI ) escape_character = (system_character_t) '^'; #else escape_character = (system_character_t) '\\'; #endif while( path_index < path_length ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libuna_unicode_character_copy_from_utf16( &unicode_character, (libuna_utf16_character_t *) path, path_length, &path_index, error ); #else result = libuna_unicode_character_copy_from_utf8( &unicode_character, (libuna_utf8_character_t *) path, path_length, &path_index, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from path.", function ); goto on_error; } /* On Windows replaces: * ^^ by ^ * ^x5c by \ * ^x## by values <= 0x1f and 0x7f * * On other platforms replaces: * \\ by \ * \x2f by / * \x## by values <= 0x1f and 0x7f * / by \ */ if( unicode_character == (libuna_unicode_character_t) escape_character ) { if( ( path_index + 1 ) > path_length ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid path index value out of bounds.", function ); goto on_error; } character = path[ path_index++ ]; #if defined( WINAPI ) if( ( character != escape_character ) && ( character != (system_character_t) 'X' ) && ( character != (system_character_t) 'x' ) ) #else if( ( character != escape_character ) && ( character != (system_character_t) 'x' ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported path - invalid character: %" PRIc_SYSTEM " after escape character.", function, character ); goto on_error; } if( character == escape_character ) { if( ( file_entry_path_index + 1 ) > safe_file_entry_path_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file entry path index value out of bounds.", function ); goto on_error; } safe_file_entry_path[ file_entry_path_index++ ] = escape_character; } else { if( ( path_index + 2 ) > path_length ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid path index value out of bounds.", function ); goto on_error; } hex_digit = path[ path_index++ ]; if( ( hex_digit >= (system_character_t) '0' ) && ( hex_digit <= (system_character_t) '9' ) ) { hex_value = hex_digit - (system_character_t) '0'; } #if defined( WINAPI ) else if( ( hex_digit >= (system_character_t) 'A' ) && ( hex_digit <= (system_character_t) 'F' ) ) { hex_value = hex_digit - (system_character_t) 'A' + 10; } #endif else if( ( hex_digit >= (system_character_t) 'a' ) && ( hex_digit <= (system_character_t) 'f' ) ) { hex_value = hex_digit - (system_character_t) 'a' + 10; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported path - invalid hexadecimal character: %" PRIc_SYSTEM " after escape character.", function, hex_digit ); goto on_error; } hex_value <<= 4; hex_digit = path[ path_index++ ]; if( ( hex_digit >= (system_character_t) '0' ) && ( hex_digit <= (system_character_t) '9' ) ) { hex_value |= hex_digit - (system_character_t) '0'; } #if defined( WINAPI ) else if( ( hex_digit >= (system_character_t) 'A' ) && ( hex_digit <= (system_character_t) 'F' ) ) { hex_value = hex_digit - (system_character_t) 'A' + 10; } #endif else if( ( hex_digit >= (system_character_t) 'a' ) && ( hex_digit <= (system_character_t) 'f' ) ) { hex_value |= hex_digit - (system_character_t) 'a' + 10; } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported path - invalid hexadecimal character: %" PRIc_SYSTEM " after escape character.", function, hex_digit ); goto on_error; } #if defined( WINAPI ) if( ( hex_value == 0 ) || ( ( hex_value > 0x1f ) && ( hex_value != 0x5c ) && ( hex_value != 0x7f ) ) ) #else if( ( hex_value == 0 ) || ( ( hex_value > 0x1f ) && ( hex_value != 0x2f ) && ( hex_value != 0x7f ) ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid escaped character value out of bounds.", function ); goto on_error; } if( ( file_entry_path_index + 1 ) > safe_file_entry_path_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file entry path index value out of bounds.", function ); goto on_error; } safe_file_entry_path[ file_entry_path_index++ ] = hex_value; } } #if !defined( WINAPI ) else if( unicode_character == (system_character_t) '\\' ) { if( ( file_entry_path_index + 1 ) > safe_file_entry_path_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file entry path index value out of bounds.", function ); goto on_error; } safe_file_entry_path[ file_entry_path_index++ ] = (system_character_t) '\\'; } #endif else { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libuna_unicode_character_copy_to_utf16( unicode_character, (libuna_utf16_character_t *) safe_file_entry_path, safe_file_entry_path_size, &file_entry_path_index, error ); #else result = libuna_unicode_character_copy_to_utf8( unicode_character, (libuna_utf8_character_t *) safe_file_entry_path, safe_file_entry_path_size, &file_entry_path_index, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character to file entry path.", function ); goto on_error; } } } if( file_entry_path_index >= safe_file_entry_path_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file entry path index value out of bounds.", function ); goto on_error; } safe_file_entry_path[ file_entry_path_index ] = 0; *file_entry_path = safe_file_entry_path; *file_entry_path_size = safe_file_entry_path_size; return( 1 ); on_error: if( safe_file_entry_path != NULL ) { memory_free( safe_file_entry_path ); } return( -1 ); } /* Retrieves the file entry of a specific path * Returns 1 if successful, 0 if no such file entry or -1 on error */ int mount_file_system_get_file_entry_by_path( mount_file_system_t *file_system, const system_character_t *path, size_t path_length, libfsapfs_file_entry_t **fsapfs_file_entry, libcerror_error_t **error ) { system_character_t *file_entry_path = NULL; static char *function = "mount_file_system_get_file_entry_by_path"; size_t file_entry_path_length = 0; size_t file_entry_path_size = 0; int result = 0; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( mount_file_system_get_file_entry_path_from_path( file_system, path, path_length, &file_entry_path, &file_entry_path_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry path from path.", function ); goto on_error; } if( file_entry_path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing file entry path.", function ); goto on_error; } /* Need to determine length here since size is based on the worst case */ file_entry_path_length = system_string_length( file_entry_path ); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_volume_get_file_entry_by_utf16_path( file_system->fsapfs_volume, (uint16_t *) file_entry_path, file_entry_path_length, fsapfs_file_entry, error ); #else result = libfsapfs_volume_get_file_entry_by_utf8_path( file_system->fsapfs_volume, (uint8_t *) file_entry_path, file_entry_path_length, fsapfs_file_entry, error ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry ", function ); goto on_error; } memory_free( file_entry_path ); return( result ); on_error: if( file_entry_path != NULL ) { memory_free( file_entry_path ); } return( -1 ); } /* Retrieves a filename from the name * Returns 1 if successful or -1 on error */ int mount_file_system_get_filename_from_name( mount_file_system_t *file_system, const system_character_t *name, size_t name_length, system_character_t **filename, size_t *filename_size, libcerror_error_t **error ) { system_character_t *safe_filename = NULL; static char *function = "mount_file_system_get_filename_from_name"; libuna_unicode_character_t unicode_character = 0; system_character_t escape_character = 0; system_character_t hex_digit = 0; size_t filename_index = 0; size_t name_index = 0; size_t safe_filename_size = 0; int result = 0; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid name.", function ); return( -1 ); } if( name_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid name length value exceeds maximum.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } if( filename_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename size.", function ); return( -1 ); } *filename = NULL; *filename_size = 0; safe_filename_size = ( name_length * 4 ) + 1; if( safe_filename_size > (size_t) ( SSIZE_MAX / sizeof( system_character_t ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid filename size value exceeds maximum.", function ); goto on_error; } safe_filename = system_string_allocate( safe_filename_size ); if( safe_filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create filename.", function ); goto on_error; } #if defined( WINAPI ) escape_character = (system_character_t) '^'; #else escape_character = (system_character_t) '\\'; #endif while( name_index < name_length ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libuna_unicode_character_copy_from_utf16( &unicode_character, (libuna_utf16_character_t *) name, name_length, &name_index, error ); #else result = libuna_unicode_character_copy_from_utf8( &unicode_character, (libuna_utf8_character_t *) name, name_length, &name_index, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character from name.", function ); goto on_error; } if( unicode_character == 0 ) { break; } /* On Windows replaces: * values <= 0x1f and 0x7f by ^x## * \ by ^x5c * ^ by ^^ * * On other platforms replaces: * values <= 0x1f and 0x7f by \x## * / by \x2f * \ by \\ */ #if defined( WINAPI ) if( ( unicode_character <= 0x1f ) || ( unicode_character == 0x5c ) || ( unicode_character == 0x7f ) ) #else if( ( unicode_character <= 0x1f ) || ( unicode_character == 0x2f ) || ( unicode_character == 0x7f ) ) #endif { if( ( filename_index + 4 ) > safe_filename_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid filename index value out of bounds.", function ); goto on_error; } safe_filename[ filename_index++ ] = escape_character; safe_filename[ filename_index++ ] = (system_character_t) 'x'; hex_digit = unicode_character >> 4; if( hex_digit <= 0x09 ) { safe_filename[ filename_index++ ] = (system_character_t) '0' + hex_digit; } else { safe_filename[ filename_index++ ] = (system_character_t) 'a' + hex_digit - 10; } hex_digit = unicode_character & 0x0f; if( hex_digit <= 0x09 ) { safe_filename[ filename_index++ ] = (system_character_t) '0' + hex_digit; } else { safe_filename[ filename_index++ ] = (system_character_t) 'a' + hex_digit - 10; } } else if( unicode_character == (libuna_unicode_character_t) escape_character ) { if( ( filename_index + 2 ) > safe_filename_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid filename index value out of bounds.", function ); goto on_error; } safe_filename[ filename_index++ ] = escape_character; safe_filename[ filename_index++ ] = escape_character; } else { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libuna_unicode_character_copy_to_utf16( unicode_character, (libuna_utf16_character_t *) safe_filename, safe_filename_size, &filename_index, error ); #else result = libuna_unicode_character_copy_to_utf8( unicode_character, (libuna_utf8_character_t *) safe_filename, safe_filename_size, &filename_index, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_CONVERSION, LIBCERROR_CONVERSION_ERROR_INPUT_FAILED, "%s: unable to copy Unicode character to filename.", function ); goto on_error; } } } if( filename_index >= safe_filename_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid filename index value out of bounds.", function ); goto on_error; } safe_filename[ filename_index ] = 0; *filename = safe_filename; *filename_size = safe_filename_size; return( 1 ); on_error: if( safe_filename != NULL ) { memory_free( safe_filename ); } return( -1 ); } /* Retrieves the filename from an file entry * Returns 1 if successful or -1 on error */ int mount_file_system_get_filename_from_file_entry( mount_file_system_t *file_system, libfsapfs_file_entry_t *fsapfs_file_entry, system_character_t **filename, size_t *filename_size, libcerror_error_t **error ) { system_character_t *file_entry_name = NULL; static char *function = "mount_file_system_get_filename_from_file_entry"; size_t file_entry_name_size = 0; int result = 0; if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_name_size( fsapfs_file_entry, &file_entry_name_size, error ); #else result = libfsapfs_file_entry_get_utf8_name_size( fsapfs_file_entry, &file_entry_name_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry name size.", function ); goto on_error; } if( ( file_entry_name_size == 0 ) || ( file_entry_name_size > SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file entry name size value out of bounds.", function ); goto on_error; } file_entry_name = system_string_allocate( file_entry_name_size ); if( file_entry_name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file entry name string.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_name( fsapfs_file_entry, (uint16_t *) file_entry_name, file_entry_name_size, error ); #else result = libfsapfs_file_entry_get_utf8_name( fsapfs_file_entry, (uint8_t *) file_entry_name, file_entry_name_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry name.", function ); goto on_error; } if( mount_file_system_get_filename_from_name( file_system, file_entry_name, file_entry_name_size - 1, filename, filename_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve a filename from the file entry name.", function ); goto on_error; } memory_free( file_entry_name ); return( 1 ); on_error: if( file_entry_name != NULL ) { memory_free( file_entry_name ); } return( -1 ); } libfsapfs-20190210/fsapfstools/fsapfstools_libfguid.h0000664000175000017500000000265013426637447024772 0ustar00lordyestalordyesta00000000000000/* * The libfguid header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBFGUID_H ) #define _FSAPFSTOOLS_LIBFGUID_H #include /* Define HAVE_LOCAL_LIBFGUID for local use of libfguid */ #if defined( HAVE_LOCAL_LIBFGUID ) #include #include #include #else /* If libtool DLL support is enabled set LIBFGUID_DLL_IMPORT * before including libfguid.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBFGUID_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFGUID ) */ #endif /* !defined( _FSAPFSTOOLS_LIBFGUID_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_unused.h0000664000175000017500000000302413426637447024504 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_UNUSED_H ) #define _FSAPFSTOOLS_UNUSED_H #include #if !defined( FSAPFSTOOLS_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define FSAPFSTOOLS_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define FSAPFSTOOLS_ATTRIBUTE_UNUSED #endif /* defined( __GNUC__ ) && __GNUC__ >= 3 */ #endif /* !defined( FSAPFSTOOLS_ATTRIBUTE_UNUSED ) */ #if defined( _MSC_VER ) #define FSAPFSTOOLS_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define FSAPFSTOOLS_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif /* defined( _MSC_VER ) */ #endif /* !defined( _FSAPFSTOOLS_UNUSED_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_libbfio.h0000664000175000017500000000333113426637447024610 0ustar00lordyestalordyesta00000000000000/* * The libbfio header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBBFIO_H ) #define _FSAPFSTOOLS_LIBBFIO_H #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio */ #if defined( HAVE_LOCAL_LIBBFIO ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT * before including libbfio.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBBFIO_DLL_IMPORT #endif #include #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( LIBBFIO_HAVE_MULTI_THREAD_SUPPORT ) #error Multi-threading support requires libbfio with multi-threading support #endif #endif /* defined( HAVE_LOCAL_LIBBFIO ) */ #endif /* !defined( _FSAPFSTOOLS_LIBBFIO_H ) */ libfsapfs-20190210/fsapfstools/mount_fuse.c0000664000175000017500000006752013426640013022727 0ustar00lordyestalordyesta00000000000000/* * Mount tool fuse functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_ERRNO_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_UNISTD_H ) #include #endif #include "fsapfstools_libcerror.h" #include "fsapfstools_libcnotify.h" #include "fsapfstools_libfsapfs.h" #include "fsapfstools_unused.h" #include "mount_fuse.h" #include "mount_handle.h" extern mount_handle_t *fsapfsmount_mount_handle; #if defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) #if ( SIZEOF_OFF_T != 8 ) && ( SIZEOF_OFF_T != 4 ) #error Size of off_t not supported #endif /* Sets the values in a stat info structure * The time values are a signed 64-bit POSIX date and time value in number of nanoseconds * Returns 1 if successful or -1 on error */ int mount_fuse_set_stat_info( struct stat *stat_info, size64_t size, uint16_t file_mode, int64_t access_time, int64_t inode_change_time, int64_t modification_time, libcerror_error_t **error ) { static char *function = "mount_fuse_set_stat_info"; if( stat_info == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stat info.", function ); return( -1 ); } #if SIZEOF_OFF_T <= 4 if( size > (size64_t) UINT32_MAX ) #else if( size > (size64_t) INT64_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } stat_info->st_size = (off_t) size; stat_info->st_mode = file_mode; if( ( file_mode & 0x4000 ) != 0 ) { stat_info->st_nlink = 2; } else { stat_info->st_nlink = 1; } #if defined( HAVE_GETEUID ) stat_info->st_uid = geteuid(); #endif #if defined( HAVE_GETEGID ) stat_info->st_gid = getegid(); #endif stat_info->st_atime = access_time / 1000000000; stat_info->st_ctime = inode_change_time / 1000000000; stat_info->st_mtime = modification_time / 1000000000; #if defined( STAT_HAVE_NSEC ) stat_info->st_atime_nsec = access_time % 1000000000; stat_info->st_ctime_nsec = inode_change_time % 1000000000; stat_info->st_mtime_nsec = modification_time % 1000000000; #endif return( 1 ); } /* Fills a directory entry * Returns 1 if successful or -1 on error */ int mount_fuse_filldir( void *buffer, fuse_fill_dir_t filler, const char *name, struct stat *stat_info, mount_file_entry_t *file_entry, libcerror_error_t **error ) { static char *function = "mount_fuse_filldir"; size64_t file_size = 0; uint64_t access_time = 0; uint64_t inode_change_time = 0; uint64_t modification_time = 0; uint16_t file_mode = 0; if( filler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filler.", function ); return( -1 ); } if( file_entry != NULL ) { if( mount_file_entry_get_size( file_entry, &file_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry size.", function ); return( -1 ); } if( mount_file_entry_get_file_mode( file_entry, &file_mode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file mode.", function ); return( -1 ); } if( mount_file_entry_get_access_time( file_entry, &access_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access time.", function ); return( -1 ); } if( mount_file_entry_get_modification_time( file_entry, &modification_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve modification time.", function ); return( -1 ); } if( mount_file_entry_get_inode_change_time( file_entry, &inode_change_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode change time.", function ); return( -1 ); } } if( memory_set( stat_info, 0, sizeof( struct stat ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear stat info.", function ); return( -1 ); } if( mount_fuse_set_stat_info( stat_info, file_size, file_mode, (int64_t) access_time, (int64_t) inode_change_time, (int64_t) modification_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set stat info.", function ); return( -1 ); } if( filler( buffer, name, stat_info, 0 ) == 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set directory entry.", function ); return( -1 ); } return( 1 ); } /* Opens a file or directory * Returns 0 if successful or a negative errno value otherwise */ int mount_fuse_open( const char *path, struct fuse_file_info *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_fuse_open"; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = -EINVAL; goto on_error; } if( file_info->fh != (uint64_t) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file information - file handle already set.", function ); result = -EINVAL; goto on_error; } if( ( file_info->flags & 0x03 ) != O_RDONLY ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); result = -EACCES; goto on_error; } if( mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, (mount_file_entry_t **) &( file_info->fh ), &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry for path: %s.", function, path ); result = -ENOENT; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } /* Reads a buffer of data at the specified offset * Returns number of bytes read if successful or a negative errno value otherwise */ int mount_fuse_read( const char *path, char *buffer, size_t size, off_t offset, struct fuse_file_info *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_fuse_read"; ssize_t read_count = 0; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } if( size > (size_t) INT_MAX ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); result = -EINVAL; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = -EINVAL; goto on_error; } if( file_info->fh == (uint64_t) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file information - missing file handle.", function ); result = -EINVAL; goto on_error; } read_count = mount_file_entry_read_buffer_at_offset( (mount_file_entry_t *) file_info->fh, (void *) buffer, size, (off64_t) offset, &error ); if( read_count < 0 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file entry.", function ); result = -EIO; goto on_error; } return( (int) read_count ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } /* Releases a file entry * Returns 0 if successful or a negative errno value otherwise */ int mount_fuse_release( const char *path, struct fuse_file_info *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_fuse_release"; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = -EINVAL; goto on_error; } if( file_info->fh != (uint64_t) NULL ) { if( mount_file_entry_free( (mount_file_entry_t **) &( file_info->fh ), &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); result = -ENOENT; goto on_error; } } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } /* Opens a directory * Returns 0 if successful or a negative errno value otherwise */ int mount_fuse_opendir( const char *path, struct fuse_file_info *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_fuse_opendir"; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = -EINVAL; goto on_error; } if( file_info->fh != (uint64_t) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file information - file handle already set.", function ); result = -EINVAL; goto on_error; } if( mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, (mount_file_entry_t **) &( file_info->fh ), &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry for path: %s.", function, path ); result = -ENOENT; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } /* Reads a directory * Returns 0 if successful or a negative errno value otherwise */ int mount_fuse_readdir( const char *path, void *buffer, fuse_fill_dir_t filler, off_t offset FSAPFSTOOLS_ATTRIBUTE_UNUSED, struct fuse_file_info *file_info FSAPFSTOOLS_ATTRIBUTE_UNUSED ) { struct stat *stat_info = NULL; libcerror_error_t *error = NULL; mount_file_entry_t *parent_file_entry = NULL; mount_file_entry_t *sub_file_entry = NULL; static char *function = "mount_fuse_readdir"; char *name = NULL; size_t name_size = 0; int number_of_sub_file_entries = 0; int result = 0; int sub_file_entry_index = 0; FSAPFSTOOLS_UNREFERENCED_PARAMETER( offset ) #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = -EINVAL; goto on_error; } if( file_info->fh == (uint64_t) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file information - missing file handle.", function ); result = -EINVAL; goto on_error; } stat_info = memory_allocate_structure( struct stat ); if( stat_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create stat info.", function ); result = errno; goto on_error; } if( mount_fuse_filldir( buffer, filler, ".", stat_info, (mount_file_entry_t *) file_info->fh, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set self directory entry.", function ); result = -EIO; goto on_error; } result = mount_file_entry_get_parent_file_entry( (mount_file_entry_t *) file_info->fh, &parent_file_entry, &error ); if( result == -1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve parent file entry.", function ); result = -EIO; goto on_error; } if( mount_fuse_filldir( buffer, filler, "..", stat_info, parent_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set parent directory entry.", function ); result = -EIO; goto on_error; } if( mount_file_entry_free( &parent_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free parent file entry.", function ); result = -EIO; goto on_error; } if( mount_file_entry_get_number_of_sub_file_entries( (mount_file_entry_t *) file_info->fh, &number_of_sub_file_entries, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub file entries.", function ); result = -EIO; goto on_error; } for( sub_file_entry_index = 0; sub_file_entry_index < number_of_sub_file_entries; sub_file_entry_index++ ) { if( mount_file_entry_get_sub_file_entry_by_index( (mount_file_entry_t *) file_info->fh, sub_file_entry_index, &sub_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d.", function, sub_file_entry_index ); result = -EIO; goto on_error; } if( mount_file_entry_get_name_size( sub_file_entry, &name_size, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d name size.", function, sub_file_entry_index ); result = -EIO; goto on_error; } name = narrow_string_allocate( name_size ); if( name == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create sub file entry: %d name.", function ); result = -EIO; goto on_error; } if( mount_file_entry_get_name( sub_file_entry, name, name_size, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d name.", function, sub_file_entry_index ); result = -EIO; goto on_error; } if( mount_fuse_filldir( buffer, filler, name, stat_info, sub_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set directory entry.", function ); result = -EIO; goto on_error; } memory_free( name ); name = NULL; if( mount_file_entry_free( &sub_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free sub file entry: %d.", function, sub_file_entry_index ); result = -EIO; goto on_error; } } memory_free( stat_info ); return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } if( name != NULL ) { memory_free( name ); } if( sub_file_entry != NULL ) { mount_file_entry_free( &sub_file_entry, NULL ); } if( parent_file_entry != NULL ) { mount_file_entry_free( &parent_file_entry, NULL ); } if( stat_info != NULL ) { memory_free( stat_info ); } return( result ); } /* Releases a directory entry * Returns 0 if successful or a negative errno value otherwise */ int mount_fuse_releasedir( const char *path, struct fuse_file_info *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_fuse_releasedir"; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = -EINVAL; goto on_error; } if( file_info->fh != (uint64_t) NULL ) { file_info->fh = (uint64_t) NULL; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } /* Retrieves the file stat info * Returns 0 if successful or a negative errno value otherwise */ int mount_fuse_getattr( const char *path, struct stat *stat_info ) { libcerror_error_t *error = NULL; mount_file_entry_t *file_entry = NULL; static char *function = "mount_fuse_getattr"; size64_t file_size = 0; uint64_t access_time = 0; uint64_t inode_change_time = 0; uint64_t modification_time = 0; uint16_t file_mode = 0; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } if( stat_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stat info.", function ); result = -EINVAL; goto on_error; } if( memory_set( stat_info, 0, sizeof( struct stat ) ) == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear stat info.", function ); result = errno; goto on_error; } result = mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, &file_entry, &error ); if( result == -1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value for: %s.", function, path ); result = -ENOENT; goto on_error; } else if( result == 0 ) { return( -ENOENT ); } if( mount_file_entry_get_size( file_entry, &file_size, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry size.", function ); result = -EIO; goto on_error; } if( mount_file_entry_get_file_mode( file_entry, &file_mode, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file mode.", function ); result = -EIO; goto on_error; } if( mount_file_entry_get_access_time( file_entry, &access_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access time.", function ); result = -EIO; goto on_error; } if( mount_file_entry_get_modification_time( file_entry, &modification_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve modification time.", function ); result = -EIO; goto on_error; } if( mount_file_entry_get_inode_change_time( file_entry, &inode_change_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode change time.", function ); result = -EIO; goto on_error; } if( mount_fuse_set_stat_info( stat_info, file_size, file_mode, (int64_t) access_time, (int64_t) inode_change_time, (int64_t) modification_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set stat info.", function ); result = -EIO; goto on_error; } if( mount_file_entry_free( &file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); result = -EIO; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } if( file_entry != NULL ) { mount_file_entry_free( &file_entry, NULL ); } return( result ); } /* Reads the target of a symbolic link * Returns 0 if successful or a negative errno value otherwise */ int mount_fuse_readlink( const char *path, char *buffer, size_t size ) { libcerror_error_t *error = NULL; mount_file_entry_t *file_entry = NULL; static char *function = "mount_fuse_readlink"; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %s\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -EINVAL; goto on_error; } result = mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, &file_entry, &error ); if( result == -1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value for: %s.", function, path ); result = -ENOENT; goto on_error; } else if( result == 0 ) { return( -ENOENT ); } if( mount_file_entry_get_symbolic_link_target( file_entry, buffer, size, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve symbolic link target string.", function ); result = -EIO; goto on_error; } if( mount_file_entry_free( &file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); result = -EIO; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } if( file_entry != NULL ) { mount_file_entry_free( &file_entry, NULL ); } return( result ); } /* Cleans up when fuse is done */ void mount_fuse_destroy( void *private_data FSAPFSTOOLS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "mount_fuse_destroy"; FSAPFSTOOLS_UNREFERENCED_PARAMETER( private_data ) #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s\n", function ); } #endif if( fsapfsmount_mount_handle != NULL ) { if( mount_handle_free( &fsapfsmount_mount_handle, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free mount handle.", function ); goto on_error; } } return; on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return; } #endif /* defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) */ libfsapfs-20190210/fsapfstools/mount_dokan.h0000664000175000017500000001245613426637447023105 0ustar00lordyestalordyesta00000000000000/* * Mount tool dokan functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _MOUNT_DOKAN_H ) #define _MOUNT_DOKAN_H #include #include #if defined( HAVE_LIBDOKAN ) #include #endif #include "fsapfstools_libcerror.h" #include "fsapfstools_libfsapfs.h" #include "mount_file_entry.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_LIBDOKAN ) int mount_dokan_set_file_information( BY_HANDLE_FILE_INFORMATION *file_information, size64_t size, uint16_t file_mode, uint64_t creation_time, uint64_t access_time, uint64_t modification_time, libcerror_error_t **error ); int mount_dokan_set_find_data( WIN32_FIND_DATAW *find_data, size64_t size, uint16_t file_mode, uint64_t creation_time, uint64_t access_time, uint64_t modification_time, libcerror_error_t **error ); int mount_dokan_filldir( PFillFindData fill_find_data, DOKAN_FILE_INFO *file_info, wchar_t *name, size_t name_size, WIN32_FIND_DATAW *find_data, mount_file_entry_t *file_entry, libcerror_error_t **error ); #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) int __stdcall mount_dokan_CreateFile( const wchar_t *path, DWORD desired_access, DWORD share_mode, DWORD creation_disposition, DWORD attribute_flags, DOKAN_FILE_INFO *file_info ); int __stdcall mount_dokan_OpenDirectory( const wchar_t *path, DOKAN_FILE_INFO *file_info ); int __stdcall mount_dokan_CloseFile( const wchar_t *path, DOKAN_FILE_INFO *file_info ); int __stdcall mount_dokan_ReadFile( const wchar_t *path, void *buffer, DWORD number_of_bytes_to_read, DWORD *number_of_bytes_read, LONGLONG offset, DOKAN_FILE_INFO *file_info ); int __stdcall mount_dokan_FindFiles( const wchar_t *path, PFillFindData fill_find_data, DOKAN_FILE_INFO *file_info ); int __stdcall mount_dokan_GetFileInformation( const wchar_t *path, BY_HANDLE_FILE_INFORMATION *file_information, DOKAN_FILE_INFO *file_info ); int __stdcall mount_dokan_GetVolumeInformation( wchar_t *volume_name, DWORD volume_name_size, DWORD *volume_serial_number, DWORD *maximum_filename_length, DWORD *file_system_flags, wchar_t *file_system_name, DWORD file_system_name_size, DOKAN_FILE_INFO *file_info ); int __stdcall mount_dokan_Unmount( DOKAN_FILE_INFO *file_info ); #else NTSTATUS __stdcall mount_dokan_ZwCreateFile( const wchar_t *path, DOKAN_IO_SECURITY_CONTEXT *security_context, ACCESS_MASK desired_access, ULONG file_attributes, ULONG share_access, ULONG creation_disposition, ULONG creation_options, DOKAN_FILE_INFO *file_info ); NTSTATUS __stdcall mount_dokan_CloseFile( const wchar_t *path, DOKAN_FILE_INFO *file_info ); NTSTATUS __stdcall mount_dokan_ReadFile( const wchar_t *path, void *buffer, DWORD number_of_bytes_to_read, DWORD *number_of_bytes_read, LONGLONG offset, DOKAN_FILE_INFO *file_info ); NTSTATUS __stdcall mount_dokan_FindFiles( const wchar_t *path, PFillFindData fill_find_data, DOKAN_FILE_INFO *file_info ); NTSTATUS __stdcall mount_dokan_GetFileInformation( const wchar_t *path, BY_HANDLE_FILE_INFORMATION *file_information, DOKAN_FILE_INFO *file_info ); NTSTATUS __stdcall mount_dokan_GetVolumeInformation( wchar_t *volume_name, DWORD volume_name_size, DWORD *volume_serial_number, DWORD *maximum_filename_length, DWORD *file_system_flags, wchar_t *file_system_name, DWORD file_system_name_size, DOKAN_FILE_INFO *file_info ); #endif /* ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) */ #endif /* defined( HAVE_LIBDOKAN ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _MOUNT_DOKAN_H ) */ libfsapfs-20190210/fsapfstools/mount_file_entry.c0000664000175000017500000006061213426640013024120 0ustar00lordyestalordyesta00000000000000/* * Mount file entry * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_SYS_STAT_H ) #include #endif #include "fsapfstools_libcerror.h" #include "fsapfstools_libfsapfs.h" #include "mount_file_entry.h" #include "mount_file_system.h" #if !defined( S_IFDIR ) #define S_IFDIR 0x4000 #endif #if !defined( S_IFREG ) #define S_IFREG 0x8000 #endif /* Creates a file entry * Make sure the value file_entry is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int mount_file_entry_initialize( mount_file_entry_t **file_entry, mount_file_system_t *file_system, const system_character_t *name, size_t name_length, libfsapfs_file_entry_t *fsapfs_file_entry, libcerror_error_t **error ) { static char *function = "mount_file_entry_initialize"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file entry value already set.", function ); return( -1 ); } if( file_system == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file system.", function ); return( -1 ); } if( name_length > (size_t) ( SSIZE_MAX - 1 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid name length value exceeds maximum.", function ); return( -1 ); } *file_entry = memory_allocate_structure( mount_file_entry_t ); if( *file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file entry.", function ); goto on_error; } if( memory_set( *file_entry, 0, sizeof( mount_file_entry_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file entry.", function ); memory_free( *file_entry ); *file_entry = NULL; return( -1 ); } ( *file_entry )->file_system = file_system; if( name != NULL ) { ( *file_entry )->name = system_string_allocate( name_length + 1 ); if( ( *file_entry )->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create name string.", function ); goto on_error; } if( name_length > 0 ) { if( system_string_copy( ( *file_entry )->name, name, name_length ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy name.", function ); goto on_error; } } ( *file_entry )->name[ name_length ] = 0; ( *file_entry )->name_size = name_length + 1; } ( *file_entry )->fsapfs_file_entry = fsapfs_file_entry; return( 1 ); on_error: if( *file_entry != NULL ) { if( ( *file_entry )->name != NULL ) { memory_free( ( *file_entry )->name ); } memory_free( *file_entry ); *file_entry = NULL; } return( -1 ); } /* Frees a file entry * Returns 1 if successful or -1 on error */ int mount_file_entry_free( mount_file_entry_t **file_entry, libcerror_error_t **error ) { static char *function = "mount_file_entry_free"; int result = 1; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( *file_entry != NULL ) { if( ( *file_entry )->name != NULL ) { memory_free( ( *file_entry )->name ); } if( libfsapfs_file_entry_free( &( ( *file_entry )->fsapfs_file_entry ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); result = -1; } memory_free( *file_entry ); *file_entry = NULL; } return( result ); } /* Retrieves the parent file entry * Returns 1 if successful, 0 if no such file entry or -1 on error */ int mount_file_entry_get_parent_file_entry( mount_file_entry_t *file_entry, mount_file_entry_t **parent_file_entry, libcerror_error_t **error ) { libfsapfs_file_entry_t *parent_fsapfs_file_entry = NULL; system_character_t *filename = NULL; static char *function = "mount_file_entry_get_parent_file_entry"; size_t filename_size = 0; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( parent_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid parent file entry.", function ); return( -1 ); } if( *parent_file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid parent file entry value already set.", function ); return( -1 ); } result = libfsapfs_file_entry_get_parent_file_entry( file_entry->fsapfs_file_entry, &parent_fsapfs_file_entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve parent file entry.", function ); return( -1 ); } else if( result != 0 ) { if( mount_file_system_get_filename_from_file_entry( file_entry->file_system, parent_fsapfs_file_entry, &filename, &filename_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve filename of parent file entry.", function ); goto on_error; } if( mount_file_entry_initialize( parent_file_entry, file_entry->file_system, filename, filename_size - 1, parent_fsapfs_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize parent file entry.", function ); goto on_error; } } if( filename != NULL ) { memory_free( filename ); } return( result ); on_error: if( filename != NULL ) { memory_free( filename ); } if( parent_fsapfs_file_entry != NULL ) { libfsapfs_file_entry_free( &parent_fsapfs_file_entry, NULL ); } return( -1 ); } /* Retrieves the creation date and time * On Windows the timestamp is an unsigned 64-bit FILETIME timestamp * otherwise the timestamp is a signed 64-bit POSIX date and time value in number of nanoseconds * Returns 1 if successful or -1 on error */ int mount_file_entry_get_creation_time( mount_file_entry_t *file_entry, uint64_t *creation_time, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_creation_time"; int64_t posix_time = 0; #if defined( WINAPI ) uint64_t filetime = 0; #endif if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( creation_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid creation time.", function ); return( -1 ); } if( libfsapfs_file_entry_get_creation_time( file_entry->fsapfs_file_entry, &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve creation time from file entry.", function ); return( -1 ); } #if defined( WINAPI ) if( posix_time != 0 ) { /* Convert the POSIX nanoseconds timestamp into a FILETIME timestamp */ filetime = (uint64_t) ( ( posix_time / 100 ) + 116444736000000000L ); } *creation_time = filetime; #else *creation_time = (uint64_t) posix_time; #endif return( 1 ); } /* Retrieves the access date and time * On Windows the timestamp is an unsigned 64-bit FILETIME timestamp * otherwise the timestamp is a signed 64-bit POSIX date and time value in number of nanoseconds * Returns 1 if successful or -1 on error */ int mount_file_entry_get_access_time( mount_file_entry_t *file_entry, uint64_t *access_time, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_access_time"; int64_t posix_time = 0; #if defined( WINAPI ) uint64_t filetime = 0; #endif if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( access_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid access time.", function ); return( -1 ); } if( libfsapfs_file_entry_get_access_time( file_entry->fsapfs_file_entry, &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access time from file entry.", function ); return( -1 ); } #if defined( WINAPI ) if( posix_time != 0 ) { /* Convert the POSIX nanoseconds timestamp into a FILETIME timestamp */ filetime = (uint64_t) ( ( posix_time / 100 ) + 116444736000000000L ); } *access_time = filetime; #else *access_time = (uint64_t) posix_time; #endif return( 1 ); } /* Retrieves the modification date and time * On Windows the timestamp is an unsigned 64-bit FILETIME timestamp * otherwise the timestamp is a signed 64-bit POSIX date and time value in number of nanoseconds * Returns 1 if successful or -1 on error */ int mount_file_entry_get_modification_time( mount_file_entry_t *file_entry, uint64_t *modification_time, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_modification_time"; int64_t posix_time = 0; #if defined( WINAPI ) uint64_t filetime = 0; #endif if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( modification_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid modification time.", function ); return( -1 ); } if( libfsapfs_file_entry_get_modification_time( file_entry->fsapfs_file_entry, &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve modification time from file entry.", function ); return( -1 ); } #if defined( WINAPI ) if( posix_time != 0 ) { /* Convert the POSIX nanoseconds timestamp into a FILETIME timestamp */ filetime = (uint64_t) ( ( posix_time / 100 ) + 116444736000000000L ); } *modification_time = filetime; #else *modification_time = (uint64_t) posix_time; #endif return( 1 ); } /* Retrieves the inode change date and time * On Windows the timestamp is an unsigned 64-bit FILETIME timestamp * otherwise the timestamp is a signed 64-bit POSIX date and time value in number of nanoseconds * Returns 1 if successful or -1 on error */ int mount_file_entry_get_inode_change_time( mount_file_entry_t *file_entry, uint64_t *inode_change_time, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_inode_change_time"; int64_t posix_time = 0; #if defined( WINAPI ) uint64_t filetime = 0; #endif if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( inode_change_time == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid inode change time.", function ); return( -1 ); } if( libfsapfs_file_entry_get_inode_change_time( file_entry->fsapfs_file_entry, &posix_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve inode change time from file entry.", function ); return( -1 ); } #if defined( WINAPI ) if( posix_time != 0 ) { /* Convert the POSIX nanoseconds timestamp into a FILETIME timestamp */ filetime = (uint64_t) ( ( posix_time / 100 ) + 116444736000000000L ); } *inode_change_time = filetime; #else *inode_change_time = (uint64_t) posix_time; #endif return( 1 ); } /* Retrieves the file mode * Returns 1 if successful or -1 on error */ int mount_file_entry_get_file_mode( mount_file_entry_t *file_entry, uint16_t *file_mode, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_file_mode"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( file_mode == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file mode.", function ); return( -1 ); } if( libfsapfs_file_entry_get_file_mode( file_entry->fsapfs_file_entry, file_mode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file mode.", function ); return( -1 ); } /* The APFS file mode matches that of POSIX, with the exception of S_IFWHT */ if( ( *file_mode & 0xf000 ) == 0xe000 ) { *file_mode = S_IFREG | ( *file_mode & 0x0fff ); } return( 1 ); } /* Retrieves the size of the name * The returned size includes the end of string character * Returns 1 if successful or -1 on error */ int mount_file_entry_get_name_size( mount_file_entry_t *file_entry, size_t *string_size, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_name_size"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } *string_size = file_entry->name_size; return( 1 ); } /* Retrieves the name * The size should include the end of string character * Returns 1 if successful or -1 on error */ int mount_file_entry_get_name( mount_file_entry_t *file_entry, system_character_t *string, size_t string_size, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_name"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( file_entry->name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file entry - missing name.", function ); return( -1 ); } if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string size value exceeds maximum.", function ); return( -1 ); } if( string_size < file_entry->name_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, "%s: invalid string size value too small.", function ); return( -1 ); } if( system_string_copy( string, file_entry->name, file_entry->name_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy name.", function ); return( -1 ); } string[ file_entry->name_size - 1 ] = 0; return( 1 ); } /* Retrieves the symbolic link target * The size should include the end of string character * Returns 1 if successful or -1 on error */ int mount_file_entry_get_symbolic_link_target( mount_file_entry_t *file_entry, system_character_t *string, size_t string_size, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_symbolic_link_target"; int result = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) result = libfsapfs_file_entry_get_utf16_symbolic_link_target( file_entry->fsapfs_file_entry, (uint16_t *) string, string_size, error ); #else result = libfsapfs_file_entry_get_utf8_symbolic_link_target( file_entry->fsapfs_file_entry, (uint8_t *) string, string_size, error ); #endif if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve symbolic link target string.", function ); return( -1 ); } return( 1 ); } /* Retrieves the number of sub file entries * Returns 1 if successful or -1 on error */ int mount_file_entry_get_number_of_sub_file_entries( mount_file_entry_t *file_entry, int *number_of_sub_file_entries, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_number_of_sub_file_entries"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( libfsapfs_file_entry_get_number_of_sub_file_entries( file_entry->fsapfs_file_entry, number_of_sub_file_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub file entries.", function ); return( -1 ); } return( 1 ); } /* Retrieves the sub file entry for the specific index * Returns 1 if successful or -1 on error */ int mount_file_entry_get_sub_file_entry_by_index( mount_file_entry_t *file_entry, int sub_file_entry_index, mount_file_entry_t **sub_file_entry, libcerror_error_t **error ) { libfsapfs_file_entry_t *sub_fsapfs_file_entry = NULL; system_character_t *filename = NULL; static char *function = "mount_file_entry_get_sub_file_entry_by_index"; size_t filename_size = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( sub_file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub file entry.", function ); return( -1 ); } if( *sub_file_entry != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sub file entry value already set.", function ); return( -1 ); } if( libfsapfs_file_entry_get_sub_file_entry_by_index( file_entry->fsapfs_file_entry, sub_file_entry_index, &sub_fsapfs_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d.", function, sub_file_entry_index ); goto on_error; } if( mount_file_system_get_filename_from_file_entry( file_entry->file_system, sub_fsapfs_file_entry, &filename, &filename_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve filename of sub file entry: %d.", function, sub_file_entry_index ); goto on_error; } if( mount_file_entry_initialize( sub_file_entry, file_entry->file_system, filename, filename_size - 1, sub_fsapfs_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize sub file entry: %d.", function, sub_file_entry_index ); goto on_error; } if( filename != NULL ) { memory_free( filename ); } return( 1 ); on_error: if( filename != NULL ) { memory_free( filename ); } if( sub_fsapfs_file_entry != NULL ) { libfsapfs_file_entry_free( &sub_fsapfs_file_entry, NULL ); } return( -1 ); } /* Reads data at a specific offset * Returns the number of bytes read or -1 on error */ ssize_t mount_file_entry_read_buffer_at_offset( mount_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libcerror_error_t **error ) { static char *function = "mount_file_entry_read_buffer_at_offset"; ssize_t read_count = 0; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } read_count = libfsapfs_file_entry_read_buffer_at_offset( file_entry->fsapfs_file_entry, buffer, buffer_size, offset, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer at offset: %" PRIi64 " (0x%08" PRIx64 ") from file entry.", function, offset, offset ); return( -1 ); } return( read_count ); } /* Retrieves the size * Returns 1 if successful or -1 on error */ int mount_file_entry_get_size( mount_file_entry_t *file_entry, size64_t *size, libcerror_error_t **error ) { static char *function = "mount_file_entry_get_size"; if( file_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file entry.", function ); return( -1 ); } if( libfsapfs_file_entry_get_size( file_entry->fsapfs_file_entry, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size from file entry.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/fsapfstools/fsapfstools_output.h0000664000175000017500000000271313426637447024545 0ustar00lordyestalordyesta00000000000000/* * Common output functions for the fsapfstools * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_OUTPUT_H ) #define _FSAPFSTOOLS_OUTPUT_H #include #include #include #include "fsapfstools_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif int fsapfstools_output_initialize( int stdio_mode, libcerror_error_t **error ); void fsapfstools_output_copyright_fprint( FILE *stream ); void fsapfstools_output_version_fprint( FILE *stream, const char *program ); void fsapfstools_output_version_detailed_fprint( FILE *stream, const char *program ); #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFSTOOLS_OUTPUT_H ) */ libfsapfs-20190210/fsapfstools/mount_fuse.h0000664000175000017500000000545213426640013022730 0ustar00lordyestalordyesta00000000000000/* * Mount tool fuse functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _MOUNT_FUSE_H ) #define _MOUNT_FUSE_H #include #include #if defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) #define FUSE_USE_VERSION 26 #if defined( HAVE_LIBFUSE ) #include #elif defined( HAVE_LIBOSXFUSE ) #include #endif #endif /* defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) */ #include "fsapfstools_libcerror.h" #include "fsapfstools_libfsapfs.h" #include "mount_file_entry.h" #include "mount_handle.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) int mount_fuse_set_stat_info( struct stat *stat_info, size64_t size, uint16_t file_mode, int64_t access_time, int64_t inode_change_time, int64_t modification_time, libcerror_error_t **error ); int mount_fuse_filldir( void *buffer, fuse_fill_dir_t filler, const char *name, struct stat *stat_info, mount_file_entry_t *file_entry, libcerror_error_t **error ); int mount_fuse_open( const char *path, struct fuse_file_info *file_info ); int mount_fuse_read( const char *path, char *buffer, size_t size, off_t offset, struct fuse_file_info *file_info ); int mount_fuse_release( const char *path, struct fuse_file_info *file_info ); int mount_fuse_opendir( const char *path, struct fuse_file_info *file_info ); int mount_fuse_readdir( const char *path, void *buffer, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *file_info ); int mount_fuse_releasedir( const char *path, struct fuse_file_info *file_info ); int mount_fuse_getattr( const char *path, struct stat *stat_info ); int mount_fuse_readlink( const char *path, char *buffer, size_t size ); void mount_fuse_destroy( void *private_data ); #endif /* defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _MOUNT_FUSE_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_getopt.c0000664000175000017500000001067513426637447024510 0ustar00lordyestalordyesta00000000000000/* * GetOpt functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfstools_getopt.h" #include "fsapfstools_libcnotify.h" #if !defined( HAVE_GETOPT ) /* The option index * Start with argument 1 (argument 0 is the program name) */ int optind = 1; /* The current option argument */ system_character_t *optarg = NULL; /* Value to indicate the current option */ system_integer_t optopt = 0; /* The next option in a group */ system_character_t *next_option = NULL; /* Get the program options * Function for platforms that do not have the getopt function * Returns the option character processed, or -1 on error, * ? if the option was not in the options string, : if the option argument was missing */ system_integer_t fsapfstools_getopt( int argument_count, system_character_t * const argument_values[], const system_character_t *options_string ) { system_character_t *argument_value = NULL; system_character_t *option_value = NULL; static char *function = "fsapfstools_getopt"; size_t options_string_length = 0; if( next_option != NULL ) { argument_value = next_option; next_option = NULL; } else if( optind >= argument_count ) { return( (system_integer_t) -1 ); } else { argument_value = argument_values[ optind ]; /* Check if the argument value is not an empty string */ if( *argument_value == (system_character_t) '\0' ) { return( (system_integer_t) -1 ); } /* Check if the first character is a option marker '-' */ if( *argument_value != (system_character_t) '-' ) { return( (system_integer_t) -1 ); } argument_value++; /* Check if long options are provided '--' */ if( *argument_value == (system_character_t) '-' ) { optind++; return( (system_integer_t) -1 ); } } options_string_length = system_string_length( options_string ); optopt = *argument_value; option_value = system_string_search_character( options_string, optopt, options_string_length ); argument_value++; /* Check if an argument was specified or that the option was not found * in the option string */ if( ( optopt == (system_integer_t) ':' ) || ( option_value == NULL ) ) { if( *argument_value == (system_character_t) '\0' ) { optind++; } if( ( *options_string != (system_character_t) ':' ) && ( optopt != (system_integer_t) '?' ) ) { libcnotify_printf( "%s: no such option: %" PRIc_SYSTEM ".\n", function, optopt ); } return( (system_integer_t) '?' ); } option_value++; /* Check if no option argument is required */ if( *option_value != (system_character_t) ':' ) { optarg = NULL; if( *argument_value == (system_character_t) '\0' ) { optind++; } else { /* Multiple options are grouped */ next_option = argument_value; } } /* Check if the argument is right after the option flag with no space in between */ else if( *argument_value != (system_character_t) '\0' ) { optarg = argument_value; optind++; } else { optind++; /* Check if the argument was provided as the next argument value */ if( argument_count <= optind ) { if( *option_value == ':' ) { return( (system_integer_t) ':' ); } libcnotify_printf( "%s: option: %" PRIc_SYSTEM " requires an argument.\n", function, optopt ); return( (system_integer_t) '?' ); } optarg = argument_values[ optind ]; optind++; } return( optopt ); } #endif /* !defined( HAVE_GETOPT ) */ libfsapfs-20190210/fsapfstools/mount_handle.h0000664000175000017500000000721313426640013023216 0ustar00lordyestalordyesta00000000000000/* * Mount handle * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _MOUNT_HANDLE_H ) #define _MOUNT_HANDLE_H #include #include #include #include "fsapfstools_libbfio.h" #include "fsapfstools_libcerror.h" #include "fsapfstools_libfsapfs.h" #include "mount_file_entry.h" #include "mount_file_system.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct mount_handle mount_handle_t; struct mount_handle { /* The file system */ mount_file_system_t *file_system; /* The file system index */ int file_system_index; /* The container offset */ off64_t container_offset; /* The libbfio file IO handle */ libbfio_handle_t *file_io_handle; /* The password */ const system_character_t *password; /* The password length */ size_t password_length; /* The recovery password */ const system_character_t *recovery_password; /* The recovery password length */ size_t recovery_password_length; /* Value to indicate the mount handle is locked */ int is_locked; /* The notification output stream */ FILE *notify_stream; }; int mount_handle_system_string_copy_from_64_bit_in_decimal( const system_character_t *string, size_t string_size, uint64_t *value_64bit, libcerror_error_t **error ); int mount_handle_initialize( mount_handle_t **mount_handle, libcerror_error_t **error ); int mount_handle_free( mount_handle_t **mount_handle, libcerror_error_t **error ); int mount_handle_signal_abort( mount_handle_t *mount_handle, libcerror_error_t **error ); int mount_handle_set_file_system_index( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ); int mount_handle_set_offset( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ); int mount_handle_set_password( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ); int mount_handle_set_recovery_password( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ); int mount_handle_open( mount_handle_t *mount_handle, const system_character_t *filename, libcerror_error_t **error ); int mount_handle_close( mount_handle_t *mount_handle, libcerror_error_t **error ); int mount_handle_is_locked( mount_handle_t *mount_handle, libcerror_error_t **error ); int mount_handle_get_volume_by_index( mount_handle_t *mount_handle, libfsapfs_container_t *fsapfs_container, int volume_index, libfsapfs_volume_t **fsapfs_volume, libcerror_error_t **error ); int mount_handle_get_file_entry_by_path( mount_handle_t *mount_handle, const system_character_t *path, mount_file_entry_t **file_entry, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _MOUNT_HANDLE_H ) */ libfsapfs-20190210/fsapfstools/Makefile.am0000664000175000017500000000446613413201371022427 0ustar00lordyestalordyesta00000000000000AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFDATETIME_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBFUSE_CPPFLAGS@ \ @LIBFSAPFS_DLL_IMPORT@ AM_LDFLAGS = @STATIC_LDFLAGS@ bin_PROGRAMS = \ fsapfsinfo \ fsapfsmount fsapfsinfo_SOURCES = \ fsapfsinfo.c \ fsapfstools_getopt.c fsapfstools_getopt.h \ fsapfstools_i18n.h \ fsapfstools_libbfio.h \ fsapfstools_libcerror.h \ fsapfstools_libclocale.h \ fsapfstools_libcnotify.h \ fsapfstools_libcpath.h \ fsapfstools_libfdatetime.h \ fsapfstools_libfguid.h \ fsapfstools_libfsapfs.h \ fsapfstools_libuna.h \ fsapfstools_output.c fsapfstools_output.h \ fsapfstools_signal.c fsapfstools_signal.h \ fsapfstools_unused.h \ info_handle.c info_handle.h fsapfsinfo_LDADD = \ @LIBFGUID_LIBADD@ \ @LIBFDATETIME_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ \ @LIBINTL@ fsapfsmount_SOURCES = \ fsapfsmount.c \ fsapfstools_getopt.c fsapfstools_getopt.h \ fsapfstools_i18n.h \ fsapfstools_libbfio.h \ fsapfstools_libcdata.h \ fsapfstools_libcerror.h \ fsapfstools_libclocale.h \ fsapfstools_libcnotify.h \ fsapfstools_libcpath.h \ fsapfstools_libfsapfs.h \ fsapfstools_libuna.h \ fsapfstools_output.c fsapfstools_output.h \ fsapfstools_signal.c fsapfstools_signal.h \ fsapfstools_unused.h \ mount_dokan.c mount_dokan.h \ mount_file_entry.c mount_file_entry.h \ mount_file_system.c mount_file_system.h \ mount_fuse.c mount_fuse.h \ mount_handle.c mount_handle.h fsapfsmount_LDADD = \ @LIBFUSE_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ \ @LIBINTL@ MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on fsapfsinfo ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(fsapfsinfo_SOURCES) libfsapfs-20190210/fsapfstools/mount_handle.c0000664000175000017500000006035313426640013023215 0ustar00lordyestalordyesta00000000000000/* * Mount handle * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #include "fsapfstools_libbfio.h" #include "fsapfstools_libcerror.h" #include "fsapfstools_libcpath.h" #include "fsapfstools_libfsapfs.h" #include "mount_file_entry.h" #include "mount_file_system.h" #include "mount_handle.h" #if !defined( LIBFSAPFS_HAVE_BFIO ) extern \ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ /* Copies a string of a decimal value to a 64-bit value * Returns 1 if successful or -1 on error */ int mount_handle_system_string_copy_from_64_bit_in_decimal( const system_character_t *string, size_t string_size, uint64_t *value_64bit, libcerror_error_t **error ) { static char *function = "mount_handle_system_string_copy_from_64_bit_in_decimal"; system_character_t character_value = 0; size_t string_index = 0; uint8_t maximum_string_index = 20; int8_t sign = 1; if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string size value exceeds maximum.", function ); return( -1 ); } if( value_64bit == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value 64-bit.", function ); return( -1 ); } *value_64bit = 0; if( string[ string_index ] == (system_character_t) '-' ) { string_index++; maximum_string_index++; sign = -1; } else if( string[ string_index ] == (system_character_t) '+' ) { string_index++; maximum_string_index++; } while( string_index < string_size ) { if( string[ string_index ] == 0 ) { break; } if( string_index > (size_t) maximum_string_index ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_LARGE, "%s: string too large.", function ); return( -1 ); } *value_64bit *= 10; if( ( string[ string_index ] >= (system_character_t) '0' ) && ( string[ string_index ] <= (system_character_t) '9' ) ) { character_value = (system_character_t) ( string[ string_index ] - (system_character_t) '0' ); } else { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported character value: %" PRIc_SYSTEM " at index: %d.", function, string[ string_index ], string_index ); return( -1 ); } *value_64bit += character_value; string_index++; } if( sign == -1 ) { *value_64bit *= (uint64_t) -1; } return( 1 ); } /* Creates a mount handle * Make sure the value mount_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int mount_handle_initialize( mount_handle_t **mount_handle, libcerror_error_t **error ) { static char *function = "mount_handle_initialize"; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( *mount_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid mount handle value already set.", function ); return( -1 ); } *mount_handle = memory_allocate_structure( mount_handle_t ); if( *mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create mount handle.", function ); goto on_error; } if( memory_set( *mount_handle, 0, sizeof( mount_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear mount handle.", function ); goto on_error; } if( mount_file_system_initialize( &( ( *mount_handle )->file_system ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize file system.", function ); goto on_error; } return( 1 ); on_error: if( *mount_handle != NULL ) { memory_free( *mount_handle ); *mount_handle = NULL; } return( -1 ); } /* Frees a mount handle * Returns 1 if successful or -1 on error */ int mount_handle_free( mount_handle_t **mount_handle, libcerror_error_t **error ) { static char *function = "mount_handle_free"; int result = 1; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( *mount_handle != NULL ) { if( mount_file_system_free( &( ( *mount_handle )->file_system ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file system.", function ); result = -1; } memory_free( *mount_handle ); *mount_handle = NULL; } return( result ); } /* Signals the mount handle to abort * Returns 1 if successful or -1 on error */ int mount_handle_signal_abort( mount_handle_t *mount_handle, libcerror_error_t **error ) { static char *function = "mount_handle_signal_abort"; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( mount_file_system_signal_abort( mount_handle->file_system, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to signal file system to abort.", function ); return( -1 ); } return( 1 ); } /* Sets the file system index * Returns 1 if successful or -1 on error */ int mount_handle_set_file_system_index( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "mount_handle_set_file_system_index"; size_t string_length = 0; uint64_t value_64bit = 0; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } string_length = system_string_length( string ); if( mount_handle_system_string_copy_from_64_bit_in_decimal( string, string_length + 1, &value_64bit, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy string to 64-bit decimal.", function ); return( -1 ); } if( ( value_64bit == 0 ) || ( value_64bit > 100 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid file system index value out of bounds.", function ); return( -1 ); } mount_handle->file_system_index = (int) value_64bit; return( 1 ); } /* Sets the container offset * Returns 1 if successful or -1 on error */ int mount_handle_set_offset( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "mount_handle_set_offset"; size_t string_length = 0; uint64_t value_64bit = 0; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } string_length = system_string_length( string ); if( mount_handle_system_string_copy_from_64_bit_in_decimal( string, string_length + 1, &value_64bit, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to copy string to 64-bit decimal.", function ); return( -1 ); } mount_handle->container_offset = (off64_t) value_64bit; return( 1 ); } /* Sets the password * Returns 1 if successful or -1 on error */ int mount_handle_set_password( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "mount_handle_set_password"; size_t string_length = 0; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } string_length = system_string_length( string ); mount_handle->password = string; mount_handle->password_length = string_length; return( 1 ); } /* Sets the recovery password * Returns 1 if successful or -1 on error */ int mount_handle_set_recovery_password( mount_handle_t *mount_handle, const system_character_t *string, libcerror_error_t **error ) { static char *function = "mount_handle_set_recovery_password"; size_t string_length = 0; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } string_length = system_string_length( string ); mount_handle->recovery_password = string; mount_handle->recovery_password_length = string_length; return( 1 ); } /* Opens the mount handle * Returns 1 if successful, 0 if not or -1 on error */ int mount_handle_open( mount_handle_t *mount_handle, const system_character_t *filename, libcerror_error_t **error ) { libbfio_handle_t *file_io_handle = NULL; libfsapfs_container_t *fsapfs_container = NULL; libfsapfs_volume_t *fsapfs_volume = NULL; static char *function = "mount_handle_open"; size_t filename_length = 0; int number_of_volumes = 0; int result = 0; int volume_index = 0; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( filename == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid filename.", function ); return( -1 ); } filename_length = system_string_length( filename ); if( libbfio_file_range_initialize( &file_io_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize file IO handle.", function ); goto on_error; } #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libbfio_file_range_set_name_wide( file_io_handle, filename, filename_length, error ) != 1 ) #else if( libbfio_file_range_set_name( file_io_handle, filename, filename_length, error ) != 1 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to set file range name.", function ); goto on_error; } if( libbfio_file_range_set( file_io_handle, mount_handle->container_offset, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to set file range offset.", function ); goto on_error; } if( libfsapfs_container_initialize( &fsapfs_container, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize container.", function ); goto on_error; } result = libfsapfs_container_open_file_io_handle( fsapfs_container, file_io_handle, LIBFSAPFS_OPEN_READ, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open container.", function ); goto on_error; } /* TODO add support for volume selection including all volumes */ if( libfsapfs_container_get_number_of_volumes( fsapfs_container, &number_of_volumes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of volumes from container.", function ); return( -1 ); } volume_index = mount_handle->file_system_index; if( ( volume_index == 0 ) && ( number_of_volumes == 1 ) ) { volume_index = 1; } if( ( volume_index <= 0 ) || ( volume_index > number_of_volumes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid volume index value out of bounds.", function ); return( -1 ); } volume_index -= 1; if( mount_handle_get_volume_by_index( mount_handle, fsapfs_container, volume_index, &fsapfs_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, volume_index ); return( -1 ); } result = libfsapfs_volume_is_locked( fsapfs_volume, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if volume is locked.", function ); goto on_error; } mount_handle->is_locked = result; if( mount_file_system_set_volume( mount_handle->file_system, fsapfs_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set volume in file system.", function ); goto on_error; } mount_handle->file_io_handle = file_io_handle; return( 1 ); on_error: if( fsapfs_volume != NULL ) { libfsapfs_volume_free( &fsapfs_volume, NULL ); } if( fsapfs_container != NULL ) { libfsapfs_container_free( &fsapfs_container, NULL ); } if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( -1 ); } /* Closes the mount handle * Returns the 0 if succesful or -1 on error */ int mount_handle_close( mount_handle_t *mount_handle, libcerror_error_t **error ) { libfsapfs_volume_t *fsapfs_volume = NULL; static char *function = "mount_handle_close"; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( mount_file_system_get_volume( mount_handle->file_system, &fsapfs_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume from file system.", function ); goto on_error; } if( mount_file_system_set_volume( mount_handle->file_system, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set volume in file system.", function ); fsapfs_volume = NULL; goto on_error; } if( libfsapfs_volume_close( fsapfs_volume, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_CLOSE_FAILED, "%s: unable to close volume.", function ); goto on_error; } if( libfsapfs_volume_free( &fsapfs_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free volume.", function ); goto on_error; } if( libbfio_handle_close( mount_handle->file_io_handle, error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to close file IO handle.", function ); goto on_error; } if( libbfio_handle_free( &( mount_handle->file_io_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file IO handle.", function ); goto on_error; } return( 0 ); on_error: if( fsapfs_volume != NULL ) { libfsapfs_volume_free( &fsapfs_volume, NULL ); } return( -1 ); } /* Determine if the mount handle is locked * Returns 1 if locked, 0 if not or -1 on error */ int mount_handle_is_locked( mount_handle_t *mount_handle, libcerror_error_t **error ) { static char *function = "mount_handle_is_locked"; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } return( mount_handle->is_locked ); } /* Retrieves a specific volume from the container * Returns 1 if successful or -1 on error */ int mount_handle_get_volume_by_index( mount_handle_t *mount_handle, libfsapfs_container_t *fsapfs_container, int volume_index, libfsapfs_volume_t **fsapfs_volume, libcerror_error_t **error ) { static char *function = "mount_handle_get_volume_by_index"; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( fsapfs_volume == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid volume.", function ); return( -1 ); } if( *fsapfs_volume != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid volume value already set.", function ); return( -1 ); } if( libfsapfs_container_get_volume_by_index( fsapfs_container, volume_index, fsapfs_volume, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve volume: %d.", function, volume_index ); goto on_error; } if( mount_handle->password != NULL ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libfsapfs_volume_set_utf16_password( *fsapfs_volume, (uint16_t *) mount_handle->password, mount_handle->password_length, error ) != 1 ) #else if( libfsapfs_volume_set_utf8_password( *fsapfs_volume, (uint8_t *) mount_handle->password, mount_handle->password_length, error ) != 1 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set password.", function ); goto on_error; } } if( mount_handle->recovery_password != NULL ) { #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) if( libfsapfs_volume_set_utf16_recovery_password( *fsapfs_volume, (uint16_t *) mount_handle->recovery_password, mount_handle->recovery_password_length, error ) != 1 ) #else if( libfsapfs_volume_set_utf8_recovery_password( *fsapfs_volume, (uint8_t *) mount_handle->recovery_password, mount_handle->recovery_password_length, error ) != 1 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set recovery password.", function ); goto on_error; } } /* TODO call unlock volume */ return( 1 ); on_error: if( *fsapfs_volume != NULL ) { libfsapfs_volume_free( fsapfs_volume, NULL ); } return( -1 ); } /* Retrieves a file entry for a specific path * Returns 1 if successful, 0 if no such file entry or -1 on error */ int mount_handle_get_file_entry_by_path( mount_handle_t *mount_handle, const system_character_t *path, mount_file_entry_t **file_entry, libcerror_error_t **error ) { libfsapfs_file_entry_t *fsapfs_file_entry = NULL; const system_character_t *filename = NULL; static char *function = "mount_handle_get_file_entry_by_path"; size_t filename_length = 0; size_t path_index = 0; size_t path_length = 0; int result = 0; if( mount_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mount handle.", function ); return( -1 ); } if( path == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); return( -1 ); } path_length = system_string_length( path ); if( path_length == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid path length value out of bounds.", function ); goto on_error; } if( ( path_length >= 2 ) && ( path[ path_length - 1 ] == LIBCPATH_SEPARATOR ) ) { path_length--; } path_index = path_length; while( path_index > 0 ) { if( path[ path_index ] == LIBCPATH_SEPARATOR ) { break; } path_index--; } /* Ignore the name of the root item */ if( path_length == 0 ) { filename = _SYSTEM_STRING( "" ); filename_length = 0; } else { filename = &( path[ path_index + 1 ] ); filename_length = path_length - ( path_index + 1 ); } result = mount_file_system_get_file_entry_by_path( mount_handle->file_system, path, path_length, &fsapfs_file_entry, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry.", function ); goto on_error; } else if( result != 0 ) { if( mount_file_entry_initialize( file_entry, mount_handle->file_system, filename, filename_length, fsapfs_file_entry, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize file entry.", function ); goto on_error; } } return( result ); on_error: if( fsapfs_file_entry != NULL ) { libfsapfs_file_entry_free( &fsapfs_file_entry, NULL ); } return( -1 ); } libfsapfs-20190210/fsapfstools/fsapfstools_output.c0000664000175000017500000000775213426637447024550 0ustar00lordyestalordyesta00000000000000/* * Common output functions for the fsapfstools * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "fsapfstools_i18n.h" #include "fsapfstools_libbfio.h" #include "fsapfstools_libcerror.h" #include "fsapfstools_libclocale.h" #include "fsapfstools_libcnotify.h" #include "fsapfstools_libfdatetime.h" #include "fsapfstools_libfsapfs.h" #include "fsapfstools_libuna.h" #include "fsapfstools_output.h" /* Initializes output settings * Returns 1 if successful or -1 on error */ int fsapfstools_output_initialize( int stdio_mode, libcerror_error_t **error ) { static char *function = "fsapfstools_output_initialize"; if( ( stdio_mode != _IOFBF ) && ( stdio_mode != _IOLBF ) && ( stdio_mode != _IONBF ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported standard IO mode.", function ); return( -1 ); } #if !defined( __BORLANDC__ ) if( setvbuf( stdout, NULL, stdio_mode, 0 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set IO mode of stdout.", function ); return( -1 ); } if( setvbuf( stderr, NULL, stdio_mode, 0 ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set IO mode of stderr.", function ); return( -1 ); } #endif /* !defined( __BORLANDC__ ) */ return( 1 ); } /* Prints the copyright information */ void fsapfstools_output_copyright_fprint( FILE *stream ) { if( stream == NULL ) { return; } /* TRANSLATORS: This is a proper name. */ fprintf( stream, _( "Copyright (C) 2018-2019, %s.\n" ), _( "Joachim Metz" ) ); fprintf( stream, _( "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" ) ); /* TRANSLATORS: The placeholder indicates the bug-reporting address * for this package. Please add _another line_ saying * "Report translation bugs to <...>\n" with the address for translation * bugs (typically your translation team's web or email address). */ fprintf( stream, _( "Report bugs to <%s>.\n" ), PACKAGE_BUGREPORT ); } /* Prints the version information */ void fsapfstools_output_version_fprint( FILE *stream, const char *program ) { if( stream == NULL ) { return; } if( program == NULL ) { return; } fprintf( stream, "%s %s\n\n", program, LIBFSAPFS_VERSION_STRING ); } /* Prints the detailed version information */ void fsapfstools_output_version_detailed_fprint( FILE *stream, const char *program ) { if( stream == NULL ) { return; } if( program == NULL ) { return; } fprintf( stream, "%s %s (libfsapfs %s", program, LIBFSAPFS_VERSION_STRING, LIBFSAPFS_VERSION_STRING ); fprintf( stream, ", libuna %s", LIBUNA_VERSION_STRING ); fprintf( stream, ", libbfio %s", LIBBFIO_VERSION_STRING ); fprintf( stream, ", libfdatetime %s", LIBFDATETIME_VERSION_STRING ); fprintf( stream, ")\n\n" ); } libfsapfs-20190210/fsapfstools/fsapfstools_libfsapfs.h0000664000175000017500000000173713426637447025163 0ustar00lordyestalordyesta00000000000000/* * The libfsapfs header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBFSAPFS_H ) #define _FSAPFSTOOLS_LIBFSAPFS_H #include #include #endif /* !defined( _FSAPFSTOOLS_LIBFSAPFS_H ) */ libfsapfs-20190210/fsapfstools/mount_dokan.c0000664000175000017500000011056713426637447023102 0ustar00lordyestalordyesta00000000000000/* * Mount tool dokan functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "fsapfstools_libcerror.h" #include "fsapfstools_libcnotify.h" #include "fsapfstools_libfsapfs.h" #include "fsapfstools_unused.h" #include "mount_dokan.h" #include "mount_file_entry.h" #include "mount_handle.h" extern mount_handle_t *fsapfsmount_mount_handle; #if defined( HAVE_LIBDOKAN ) #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) #define MOUNT_DOKAN_ERROR_BAD_ARGUMENTS -ERROR_BAD_ARGUMENTS #define MOUNT_DOKAN_ERROR_FILE_NOT_FOUND -ERROR_FILE_NOT_FOUND #define MOUNT_DOKAN_ERROR_GENERIC_FAILURE -ERROR_GEN_FAILURE #define MOUNT_DOKAN_ERROR_READ_FAULT -ERROR_READ_FAULT #else #define MOUNT_DOKAN_ERROR_BAD_ARGUMENTS STATUS_UNSUCCESSFUL #define MOUNT_DOKAN_ERROR_FILE_NOT_FOUND STATUS_OBJECT_NAME_NOT_FOUND #define MOUNT_DOKAN_ERROR_GENERIC_FAILURE STATUS_UNSUCCESSFUL #define MOUNT_DOKAN_ERROR_READ_FAULT STATUS_UNEXPECTED_IO_ERROR #endif /* ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) */ /* Sets the values in a file information structure * The time values contain an unsigned 64-bit FILETIME timestamp * Returns 1 if successful or -1 on error */ int mount_dokan_set_file_information( BY_HANDLE_FILE_INFORMATION *file_information, size64_t size, uint16_t file_mode, uint64_t creation_time, uint64_t access_time, uint64_t modification_time, libcerror_error_t **error ) { static char *function = "mount_dokan_set_file_information"; if( file_information == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); return( -1 ); } if( size > 0 ) { file_information->nFileSizeHigh = (DWORD) ( size >> 32 ); file_information->nFileSizeLow = (DWORD) ( size & 0xffffffffUL ); } if( ( file_mode & 0x4000 ) != 0 ) { file_information->dwFileAttributes = FILE_ATTRIBUTE_DIRECTORY; } else { file_information->dwFileAttributes = FILE_ATTRIBUTE_NORMAL; } file_information->ftCreationTime.dwLowDateTime = (uint32_t) ( creation_time & 0x00000000ffffffffULL ); file_information->ftCreationTime.dwHighDateTime = creation_time >> 32; file_information->ftLastAccessTime.dwLowDateTime = (uint32_t) ( access_time & 0x00000000ffffffffULL ); file_information->ftLastAccessTime.dwHighDateTime = access_time >> 32; file_information->ftLastWriteTime.dwLowDateTime = (uint32_t) ( modification_time & 0x00000000ffffffffULL ); file_information->ftLastWriteTime.dwHighDateTime = modification_time >> 32; return( 1 ); } /* Sets the values in a find data structure * The time values contain an unsigned 64-bit FILETIME timestamp * Returns 1 if successful or -1 on error */ int mount_dokan_set_find_data( WIN32_FIND_DATAW *find_data, size64_t size, uint16_t file_mode, uint64_t creation_time, uint64_t access_time, uint64_t modification_time, libcerror_error_t **error ) { static char *function = "mount_dokan_set_find_data"; if( find_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid find data.", function ); return( -1 ); } if( size > 0 ) { find_data->nFileSizeHigh = (DWORD) ( size >> 32 ); find_data->nFileSizeLow = (DWORD) ( size & 0xffffffffUL ); } if( ( file_mode & 0x4000 ) != 0 ) { find_data->dwFileAttributes = FILE_ATTRIBUTE_DIRECTORY; } else { find_data->dwFileAttributes = FILE_ATTRIBUTE_NORMAL; } find_data->ftCreationTime.dwLowDateTime = (uint32_t) ( creation_time & 0x00000000ffffffffULL ); find_data->ftCreationTime.dwHighDateTime = creation_time >> 32; find_data->ftLastAccessTime.dwLowDateTime = (uint32_t) ( access_time & 0x00000000ffffffffULL ); find_data->ftLastAccessTime.dwHighDateTime = access_time >> 32; find_data->ftLastWriteTime.dwLowDateTime = (uint32_t) ( modification_time & 0x00000000ffffffffULL ); find_data->ftLastWriteTime.dwHighDateTime = modification_time >> 32; return( 1 ); } /* Fills a directory entry * Returns 1 if successful or -1 on error */ int mount_dokan_filldir( PFillFindData fill_find_data, DOKAN_FILE_INFO *file_info, wchar_t *name, size_t name_size, WIN32_FIND_DATAW *find_data, mount_file_entry_t *file_entry, libcerror_error_t **error ) { static char *function = "mount_dokan_filldir"; size64_t file_size = 0; uint64_t access_time = 0; uint64_t creation_time = 0; uint64_t modification_time = 0; uint16_t file_mode = 0; if( fill_find_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid fill find data.", function ); return( -1 ); } if( name == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid name.", function ); return( -1 ); } if( name_size > (size_t) MAX_PATH ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid name size value out of bounds.", function ); return( -1 ); } if( file_entry != NULL ) { if( mount_file_entry_get_size( file_entry, &file_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry size.", function ); return( -1 ); } if( mount_file_entry_get_file_mode( file_entry, &file_mode, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file mode.", function ); return( -1 ); } if( mount_file_entry_get_creation_time( file_entry, &creation_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve creation time.", function ); return( -1 ); } if( mount_file_entry_get_access_time( file_entry, &access_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access time.", function ); return( -1 ); } if( mount_file_entry_get_modification_time( file_entry, &modification_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve modification time.", function ); return( -1 ); } } if( memory_set( find_data, 0, sizeof( WIN32_FIND_DATAW ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear find data.", function ); return( -1 ); } if( wide_string_copy( find_data->cFileName, name, name_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy filename.", function ); return( -1 ); } if( name_size <= (size_t) 14 ) { if( wide_string_copy( find_data->cAlternateFileName, name, name_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy alternate filename.", function ); return( -1 ); } } if( mount_dokan_set_find_data( find_data, file_size, file_mode, creation_time, access_time, modification_time, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set find data.", function ); return( -1 ); } if( fill_find_data( find_data, file_info ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set directory entry.", function ); return( -1 ); } return( 1 ); } #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) /* Opens a file or directory * Returns 0 if successful or an error code otherwise */ int __stdcall mount_dokan_CreateFile( const wchar_t *path, DWORD desired_access, DWORD share_mode FSAPFSTOOLS_ATTRIBUTE_UNUSED, DWORD creation_disposition, DWORD attribute_flags FSAPFSTOOLS_ATTRIBUTE_UNUSED, DOKAN_FILE_INFO *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_dokan_CreateFile"; int result = 0; FSAPFSTOOLS_UNREFERENCED_PARAMETER( share_mode ) FSAPFSTOOLS_UNREFERENCED_PARAMETER( attribute_flags ) #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %ls\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = -ERROR_BAD_ARGUMENTS; goto on_error; } if( ( desired_access & GENERIC_WRITE ) != 0 ) { return( -ERROR_WRITE_PROTECT ); } /* Ignore the share_mode */ if( creation_disposition == CREATE_NEW ) { return( -ERROR_FILE_EXISTS ); } else if( creation_disposition == CREATE_ALWAYS ) { return( -ERROR_ALREADY_EXISTS ); } else if( creation_disposition == OPEN_ALWAYS ) { return( -ERROR_FILE_NOT_FOUND ); } else if( creation_disposition == TRUNCATE_EXISTING ) { return( -ERROR_FILE_NOT_FOUND ); } else if( creation_disposition != OPEN_EXISTING ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid creation disposition.", function ); result = -ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = -ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info->Context != (ULONG64) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file information - context already set.", function ); result = -ERROR_BAD_ARGUMENTS; goto on_error; } if( mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, (mount_file_entry_t **) &( file_info->Context ), &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry for path: %ls.", function, path ); result = -ERROR_FILE_NOT_FOUND; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } #else /* Opens a file or directory * Returns 0 if successful or an error code otherwise */ NTSTATUS __stdcall mount_dokan_ZwCreateFile( const wchar_t *path, DOKAN_IO_SECURITY_CONTEXT *security_context FSAPFSTOOLS_ATTRIBUTE_UNUSED, ACCESS_MASK desired_access, ULONG file_attributes FSAPFSTOOLS_ATTRIBUTE_UNUSED, ULONG share_access FSAPFSTOOLS_ATTRIBUTE_UNUSED, ULONG creation_disposition, ULONG creation_options FSAPFSTOOLS_ATTRIBUTE_UNUSED, DOKAN_FILE_INFO *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_dokan_ZwCreateFile"; int result = 0; FSAPFSTOOLS_UNREFERENCED_PARAMETER( security_context ) FSAPFSTOOLS_UNREFERENCED_PARAMETER( file_attributes ) FSAPFSTOOLS_UNREFERENCED_PARAMETER( share_access ) FSAPFSTOOLS_UNREFERENCED_PARAMETER( creation_options ) if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = STATUS_UNSUCCESSFUL; goto on_error; } if( ( desired_access & GENERIC_WRITE ) != 0 ) { return( STATUS_MEDIA_WRITE_PROTECTED ); } /* Ignore the share_mode */ if( creation_disposition == FILE_CREATE ) { return( STATUS_OBJECT_NAME_COLLISION ); } else if( ( creation_disposition != FILE_OPEN ) && ( creation_disposition != FILE_OPEN_IF ) ) { return( STATUS_ACCESS_DENIED ); } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = STATUS_UNSUCCESSFUL; goto on_error; } if( file_info->Context != (ULONG64) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file information - context already set.", function ); result = STATUS_UNSUCCESSFUL; goto on_error; } if( mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, (mount_file_entry_t **) &( file_info->Context ), &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry for path: %ls.", function, path ); result = STATUS_OBJECT_NAME_NOT_FOUND; goto on_error; } return( STATUS_SUCCESS ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } #endif /* ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) */ #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) /* Opens a directory * Returns 0 if successful or an error code otherwise */ int __stdcall mount_dokan_OpenDirectory( const wchar_t *path, DOKAN_FILE_INFO *file_info ) { libcerror_error_t *error = NULL; static char *function = "mount_dokan_OpenDirectory"; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %ls\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info->Context != (ULONG64) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file information - context already set.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, (mount_file_entry_t **) &( file_info->Context ), &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry for path: %ls.", function, path ); result = MOUNT_DOKAN_ERROR_FILE_NOT_FOUND; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } #endif /* ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) */ /* Closes a file or direcotry * Returns 0 if successful or an error code otherwise */ #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) int __stdcall mount_dokan_CloseFile( const wchar_t *path, DOKAN_FILE_INFO *file_info ) #else NTSTATUS __stdcall mount_dokan_CloseFile( const wchar_t *path, DOKAN_FILE_INFO *file_info ) #endif { libcerror_error_t *error = NULL; static char *function = "mount_dokan_CloseFile"; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %ls\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info->Context != (ULONG64) NULL ) { if( mount_file_entry_free( (mount_file_entry_t **) &( file_info->Context ), &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } /* Reads a buffer of data at the specified offset * Returns 0 if successful or an error code otherwise */ #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) int __stdcall mount_dokan_ReadFile( const wchar_t *path, void *buffer, DWORD number_of_bytes_to_read, DWORD *number_of_bytes_read, LONGLONG offset, DOKAN_FILE_INFO *file_info ) #else NTSTATUS __stdcall mount_dokan_ReadFile( const wchar_t *path, void *buffer, DWORD number_of_bytes_to_read, DWORD *number_of_bytes_read, LONGLONG offset, DOKAN_FILE_INFO *file_info ) #endif { libcerror_error_t *error = NULL; static char *function = "mount_dokan_ReadFile"; ssize_t read_count = 0; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %ls\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( number_of_bytes_to_read > (DWORD) INT32_MAX ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid number of bytes to read value exceeds maximum.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( number_of_bytes_read == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of bytes read.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file information.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( file_info->Context == (ULONG64) NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file information - missing context.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } read_count = mount_file_entry_read_buffer_at_offset( (mount_file_entry_t *) file_info->Context, buffer, (size_t) number_of_bytes_to_read, (off64_t) offset, &error ); if( read_count < 0 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from mount handle.", function ); result = MOUNT_DOKAN_ERROR_READ_FAULT; goto on_error; } if( read_count > (size_t) INT32_MAX ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid read count value exceeds maximum.", function ); result = MOUNT_DOKAN_ERROR_READ_FAULT; goto on_error; } /* Dokan does not require the read function to return ERROR_HANDLE_EOF */ *number_of_bytes_read = (DWORD) read_count; return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } /* Reads a directory * Returns 0 if successful or an error code otherwise */ #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) int __stdcall mount_dokan_FindFiles( const wchar_t *path, PFillFindData fill_find_data, DOKAN_FILE_INFO *file_info ) #else NTSTATUS __stdcall mount_dokan_FindFiles( const wchar_t *path, PFillFindData fill_find_data, DOKAN_FILE_INFO *file_info ) #endif { WIN32_FIND_DATAW find_data; libcerror_error_t *error = NULL; mount_file_entry_t *file_entry = NULL; mount_file_entry_t *parent_file_entry = NULL; mount_file_entry_t *sub_file_entry = NULL; wchar_t *name = NULL; static char *function = "mount_dokan_FindFiles"; size_t name_size = 0; int number_of_sub_file_entries = 0; int result = 0; int sub_file_entry_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %ls\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, &file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry for path: %ls.", function, path ); result = MOUNT_DOKAN_ERROR_FILE_NOT_FOUND; goto on_error; } if( mount_dokan_filldir( fill_find_data, file_info, L".", 2, &find_data, file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set find data.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } result = mount_file_entry_get_parent_file_entry( file_entry, &parent_file_entry, &error ); if( result == -1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve parent file entry.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_dokan_filldir( fill_find_data, file_info, L"..", 3, &find_data, parent_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set find data.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_free( &parent_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free parent file entry.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_get_number_of_sub_file_entries( file_entry, &number_of_sub_file_entries, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub file entries.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } for( sub_file_entry_index = 0; sub_file_entry_index < number_of_sub_file_entries; sub_file_entry_index++ ) { if( mount_file_entry_get_sub_file_entry_by_index( file_entry, sub_file_entry_index, &sub_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d.", function, sub_file_entry_index ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_get_name_size( sub_file_entry, &name_size, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d name size.", function, sub_file_entry_index ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } name = wide_string_allocate( name_size ); if( name == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create sub file entry: %d name.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_get_name( sub_file_entry, name, name_size, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub file entry: %d name.", function, sub_file_entry_index ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_dokan_filldir( fill_find_data, file_info, name, name_size, &find_data, sub_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set find data for sub file entry: %d.", function, sub_file_entry_index ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } memory_free( name ); name = NULL; if( mount_file_entry_free( &sub_file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free sub file entry: %d.", function, sub_file_entry_index ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } } if( mount_file_entry_free( &file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } if( name != NULL ) { memory_free( name ); } if( sub_file_entry != NULL ) { mount_file_entry_free( &sub_file_entry, NULL ); } if( parent_file_entry != NULL ) { mount_file_entry_free( &parent_file_entry, NULL ); } if( file_entry != NULL ) { mount_file_entry_free( &file_entry, NULL ); } return( result ); } /* Retrieves the file information * Returns 0 if successful or an error code otherwise */ #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) int __stdcall mount_dokan_GetFileInformation( const wchar_t *path, BY_HANDLE_FILE_INFORMATION *file_information, DOKAN_FILE_INFO *file_info FSAPFSTOOLS_ATTRIBUTE_UNUSED ) #else NTSTATUS __stdcall mount_dokan_GetFileInformation( const wchar_t *path, BY_HANDLE_FILE_INFORMATION *file_information, DOKAN_FILE_INFO *file_info FSAPFSTOOLS_ATTRIBUTE_UNUSED ) #endif { libcerror_error_t *error = NULL; mount_file_entry_t *file_entry = NULL; static char *function = "mount_dokan_GetFileInformation"; size64_t file_size = 0; uint64_t access_time = 0; uint64_t creation_time = 0; uint64_t modification_time = 0; uint16_t file_mode = 0; int result = 0; FSAPFSTOOLS_UNREFERENCED_PARAMETER( file_info ) #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %ls\n", function, path ); } #endif if( path == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid path.", function ); result = MOUNT_DOKAN_ERROR_BAD_ARGUMENTS; goto on_error; } if( mount_handle_get_file_entry_by_path( fsapfsmount_mount_handle, path, &file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry for path: %ls.", function, path ); result = MOUNT_DOKAN_ERROR_FILE_NOT_FOUND; goto on_error; } if( file_entry != NULL ) { if( mount_file_entry_get_size( file_entry, &file_size, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file entry size.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_get_file_mode( file_entry, &file_mode, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve file mode.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_get_creation_time( file_entry, &creation_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve creation time.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_get_access_time( file_entry, &access_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve access time.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_get_modification_time( file_entry, &modification_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve modification time.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } } if( mount_dokan_set_file_information( file_information, file_size, file_mode, creation_time, access_time, modification_time, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set file information.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } if( mount_file_entry_free( &file_entry, &error ) != 1 ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free file entry.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } if( file_entry != NULL ) { mount_file_entry_free( &file_entry, NULL ); } return( result ); } /* Retrieves the volume information * Returns 0 if successful or an error code otherwise */ #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) int __stdcall mount_dokan_GetVolumeInformation( wchar_t *volume_name, DWORD volume_name_size, DWORD *volume_serial_number, DWORD *maximum_filename_length, DWORD *file_system_flags, wchar_t *file_system_name, DWORD file_system_name_size, DOKAN_FILE_INFO *file_info FSAPFSTOOLS_ATTRIBUTE_UNUSED ) #else NTSTATUS __stdcall mount_dokan_GetVolumeInformation( wchar_t *volume_name, DWORD volume_name_size, DWORD *volume_serial_number, DWORD *maximum_filename_length, DWORD *file_system_flags, wchar_t *file_system_name, DWORD file_system_name_size, DOKAN_FILE_INFO *file_info FSAPFSTOOLS_ATTRIBUTE_UNUSED ) #endif { libcerror_error_t *error = NULL; const wchar_t *name = NULL; static char *function = "mount_dokan_GetVolumeInformation"; size_t name_size = 0; int result = 0; FSAPFSTOOLS_UNREFERENCED_PARAMETER( file_info ) #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: %ls\n", function, volume_name ); } #endif name = L"FSAPFS"; name_size = 1 + wide_string_length( name ); if( ( volume_name != NULL ) && ( volume_name_size > (DWORD) name_size ) ) { /* Using wcsncpy seems to cause strange behavior here */ if( memory_copy( volume_name, name, name_size * sizeof( wchar_t ) ) == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy volume name.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } } if( volume_serial_number != NULL ) { /* If this value contains 0 it can crash the system is this an issue in Dokan? */ *volume_serial_number = 0x19831116; } if( maximum_filename_length != NULL ) { *maximum_filename_length = 256; } if( file_system_flags != NULL ) { *file_system_flags = FILE_CASE_SENSITIVE_SEARCH | FILE_CASE_PRESERVED_NAMES | FILE_UNICODE_ON_DISK | FILE_READ_ONLY_VOLUME; } name = L"Dokan"; name_size = 1 + wide_string_length( name ); if( ( file_system_name != NULL ) && ( file_system_name_size > (DWORD) name_size ) ) { /* Using wcsncpy seems to cause strange behavior here */ if( memory_copy( file_system_name, name, name_size * sizeof( wchar_t ) ) == NULL ) { libcerror_error_set( &error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy file system name.", function ); result = MOUNT_DOKAN_ERROR_GENERIC_FAILURE; goto on_error; } } return( 0 ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } return( result ); } #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) /* Unmounts the volume * Returns 0 if successful or an error code otherwise */ int __stdcall mount_dokan_Unmount( DOKAN_FILE_INFO *file_info FSAPFSTOOLS_ATTRIBUTE_UNUSED ) { static char *function = "mount_dokan_Unmount"; FSAPFSTOOLS_UNREFERENCED_PARAMETER( file_info ) #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s\n", function ); } #endif return( 0 ); } #endif /* ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) */ #endif /* defined( HAVE_LIBDOKAN ) */ libfsapfs-20190210/fsapfstools/fsapfstools_libcnotify.h0000664000175000017500000000274213426637447025351 0ustar00lordyestalordyesta00000000000000/* * The libcnotify header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBCNOTIFY_H ) #define _FSAPFSTOOLS_LIBCNOTIFY_H #include /* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify */ #if defined( HAVE_LOCAL_LIBCNOTIFY ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT * before including libcnotify.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBCNOTIFY_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */ #endif /* !defined( _FSAPFSTOOLS_LIBCNOTIFY_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_libcpath.h0000664000175000017500000000260613426637447024774 0ustar00lordyestalordyesta00000000000000/* * The libcpath header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBCPATH_H ) #define _FSAPFSTOOLS_LIBCPATH_H #include /* Define HAVE_LOCAL_LIBCPATH for local use of libcpath */ #if defined( HAVE_LOCAL_LIBCPATH ) #include #include #else /* If libtool DLL support is enabled set LIBCPATH_DLL_IMPORT * before including libcpath.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBCPATH_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCPATH ) */ #endif /* !defined( _FSAPFSTOOLS_LIBCPATH_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_libfdatetime.h0000664000175000017500000000336013426637447025635 0ustar00lordyestalordyesta00000000000000/* * The libfdatetime header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBFDATETIME_H ) #define _FSAPFSTOOLS_LIBFDATETIME_H #include /* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime */ #if defined( HAVE_LOCAL_LIBFDATETIME ) #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBFDATETIME_DLL_IMPORT * before including libfdatetime.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBFDATETIME_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFDATETIME ) */ #endif /* !defined( _FSAPFSTOOLS_LIBFDATETIME_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_signal.c0000664000175000017500000001314513426637447024456 0ustar00lordyestalordyesta00000000000000/* * Signal handling functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_SIGNAL_H ) #include #endif #if defined( _MSC_VER ) #include #endif #include "fsapfstools_libcerror.h" #include "fsapfstools_signal.h" #if defined( WINAPI ) void (*fsapfstools_signal_signal_handler)( fsapfstools_signal_t ) = NULL; /* Signal handler for Ctrl+C or Ctrl+Break signals */ BOOL WINAPI fsapfstools_signal_handler( unsigned long signal ) { static char *function = "fsapfstools_signal_handler"; switch( signal ) { /* use Ctrl+C or Ctrl+Break to simulate SERVICE_CONTROL_STOP in debug mode */ case CTRL_BREAK_EVENT: case CTRL_C_EVENT: if( fsapfstools_signal_signal_handler != NULL ) { fsapfstools_signal_signal_handler( signal ); } return( TRUE ); default: break; } return( FALSE ); } #if defined( _MSC_VER ) /* Initialize memory usage and leakage debugging */ void fsapfstools_signal_initialize_memory_debug( void ) { int flag = 0; /* Get the current state of the flag and store it in a temporary variable */ flag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ); /* Turn on client block identifiers and automatic leak detection */ flag |= ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); /* Set the new state for the flag */ _CrtSetDbgFlag( flag ); } #endif /* defined( _MSC_VER ) */ /* Attaches a signal handler for Ctrl+C or Ctrl+Break signals * Returns 1 if successful or -1 on error */ int fsapfstools_signal_attach( void (*signal_handler)( fsapfstools_signal_t ), libcerror_error_t **error ) { static char *function = "fsapfstools_signal_attach"; if( signal_handler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid signal handler.", function ); return( -1 ); } fsapfstools_signal_signal_handler = signal_handler; if( SetConsoleCtrlHandler( fsapfstools_signal_handler, TRUE ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to attach signal handler.", function ); return( -1 ); } if( SetConsoleCtrlHandler( NULL, FALSE ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to attach break signal.", function ); return( -1 ); } #if defined( _MSC_VER ) fsapfstools_signal_initialize_memory_debug(); #endif SetErrorMode( SEM_FAILCRITICALERRORS ); #if defined( LOCALE_SUPPORT ) /* Allow subsequent threads to have their own locale. * If the application is single threaded this call has * no practical effect. */ _configthreadlocale( _ENABLE_PER_THREAD_LOCALE ); /* Set the current thread locale to the user default * ANSI code page. */ setlocale( LC_ALL, "" ); /* Set the the code page used by multibyte functions * to use the same code page as the previous call to setlocale. */ _setmbcp( _MB_CP_LOCALE ); #endif /* defined( LOCALE_SUPPORT ) */ return( 1 ); } /* Detaches a signal handler for Ctrl+C or Ctrl+Break signals * Returns 1 if successful or -1 on error */ int fsapfstools_signal_detach( libcerror_error_t **error ) { static char *function = "fsapfstools_signal_detach"; if( SetConsoleCtrlHandler( fsapfstools_signal_handler, FALSE ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to detach signal handler.", function ); return( -1 ); } fsapfstools_signal_signal_handler = NULL; return( 1 ); } #else /* Attaches a signal handler for SIGINT * Returns 1 if successful or -1 on error */ int fsapfstools_signal_attach( void (*signal_handler)( fsapfstools_signal_t ), libcerror_error_t **error ) { static char *function = "fsapfstools_signal_attach"; if( signal_handler == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid signal handler.", function ); return( -1 ); } if( signal( SIGINT, signal_handler ) == SIG_ERR ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to attach signal handler.", function ); return( -1 ); } return( 1 ); } /* Detaches a signal handler for SIGINT * Returns 1 if successful or -1 on error */ int fsapfstools_signal_detach( libcerror_error_t **error ) { static char *function = "fsapfstools_signal_detach"; if( signal( SIGINT, SIG_DFL ) == SIG_ERR ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to detach signal handler.", function ); return( -1 ); } return( 1 ); } #endif /* defined( WINAPI ) */ libfsapfs-20190210/fsapfstools/mount_file_entry.h0000664000175000017500000000736713426640013024135 0ustar00lordyestalordyesta00000000000000/* * Mount file entry * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _MOUNT_FILE_ENTRY_H ) #define _MOUNT_FILE_ENTRY_H #include #include #include "fsapfstools_libcerror.h" #include "fsapfstools_libfsapfs.h" #include "mount_file_system.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct mount_file_entry mount_file_entry_t; struct mount_file_entry { /* The file system */ mount_file_system_t *file_system; /* The name */ system_character_t *name; /* The name size */ size_t name_size; /* The file entry */ libfsapfs_file_entry_t *fsapfs_file_entry; }; int mount_file_entry_initialize( mount_file_entry_t **file_entry, mount_file_system_t *file_system, const system_character_t *name, size_t name_length, libfsapfs_file_entry_t *fsapfs_file_entry, libcerror_error_t **error ); int mount_file_entry_free( mount_file_entry_t **file_entry, libcerror_error_t **error ); int mount_file_entry_get_parent_file_entry( mount_file_entry_t *file_entry, mount_file_entry_t **parent_file_entry, libcerror_error_t **error ); int mount_file_entry_get_creation_time( mount_file_entry_t *file_entry, uint64_t *creation_time, libcerror_error_t **error ); int mount_file_entry_get_access_time( mount_file_entry_t *file_entry, uint64_t *access_time, libcerror_error_t **error ); int mount_file_entry_get_modification_time( mount_file_entry_t *file_entry, uint64_t *modification_time, libcerror_error_t **error ); int mount_file_entry_get_inode_change_time( mount_file_entry_t *file_entry, uint64_t *inode_change_time, libcerror_error_t **error ); int mount_file_entry_get_file_mode( mount_file_entry_t *file_entry, uint16_t *file_mode, libcerror_error_t **error ); int mount_file_entry_get_name_size( mount_file_entry_t *file_entry, size_t *string_size, libcerror_error_t **error ); int mount_file_entry_get_name( mount_file_entry_t *file_entry, system_character_t *string, size_t string_size, libcerror_error_t **error ); int mount_file_entry_get_symbolic_link_target( mount_file_entry_t *file_entry, system_character_t *string, size_t string_size, libcerror_error_t **error ); int mount_file_entry_get_number_of_sub_file_entries( mount_file_entry_t *file_entry, int *number_of_sub_entries, libcerror_error_t **error ); int mount_file_entry_get_sub_file_entry_by_index( mount_file_entry_t *file_entry, int sub_file_entry_index, mount_file_entry_t **sub_file_entry, libcerror_error_t **error ); ssize_t mount_file_entry_read_buffer_at_offset( mount_file_entry_t *file_entry, void *buffer, size_t buffer_size, off64_t offset, libcerror_error_t **error ); int mount_file_entry_get_size( mount_file_entry_t *file_entry, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _MOUNT_FILE_ENTRY_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_getopt.h0000664000175000017500000000343413426637447024510 0ustar00lordyestalordyesta00000000000000/* * GetOpt functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_GETOPT_H ) #define _FSAPFSTOOLS_GETOPT_H #include #include /* unistd.h is included here to export getopt, optarg, optind and optopt */ #if defined( HAVE_UNISTD_H ) #include #endif #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_GETOPT ) #define fsapfstools_getopt( argument_count, argument_values, options_string ) \ getopt( argument_count, argument_values, options_string ) #else #if !defined( __CYGWIN__ ) extern int optind; extern system_character_t *optarg; extern system_integer_t optopt; #else int optind; system_character_t *optarg; system_integer_t optopt; #endif /* !defined( __CYGWIN__ ) */ system_integer_t fsapfstools_getopt( int argument_count, system_character_t * const argument_values[], const system_character_t *options_string ); #endif /* defined( HAVE_GETOPT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFSTOOLS_GETOPT_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_signal.h0000664000175000017500000000335713426637447024467 0ustar00lordyestalordyesta00000000000000/* * Signal handling functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_SIGNAL_H ) #define _FSAPFSTOOLS_SIGNAL_H #include #include #include "fsapfstools_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_SIGNAL_H ) && !defined( WINAPI ) #error missing signal functions #endif #if defined( WINAPI ) typedef unsigned long fsapfstools_signal_t; #else typedef int fsapfstools_signal_t; #endif /* defined( WINAPI ) */ #if defined( WINAPI ) BOOL WINAPI fsapfstools_signal_handler( fsapfstools_signal_t signal ); #if defined( _MSC_VER ) void fsapfstools_signal_initialize_memory_debug( void ); #endif /* defined( _MSC_VER ) */ #endif /* defined( WINAPI ) */ int fsapfstools_signal_attach( void (*signal_handler)( fsapfstools_signal_t ), libcerror_error_t **error ); int fsapfstools_signal_detach( libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFSTOOLS_SIGNAL_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_libcdata.h0000664000175000017500000000302713426637447024747 0ustar00lordyestalordyesta00000000000000/* * The libcdata header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBCDATA_H ) #define _FSAPFSTOOLS_LIBCDATA_H #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata */ #if defined( HAVE_LOCAL_LIBCDATA ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCDATA_DLL_IMPORT * before including libcdata.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCDATA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCDATA ) */ #endif /* !defined( _FSAPFSTOOLS_LIBCDATA_H ) */ libfsapfs-20190210/fsapfstools/info_handle.h0000664000175000017500000001163413426640013023011 0ustar00lordyestalordyesta00000000000000/* * Info handle * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _INFO_HANDLE_H ) #define _INFO_HANDLE_H #include #include #include #include "fsapfstools_libbfio.h" #include "fsapfstools_libcerror.h" #include "fsapfstools_libfsapfs.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct info_handle info_handle_t; struct info_handle { /* The file system index */ int file_system_index; /* The recovery password */ system_character_t *recovery_password; /* The recovery password size */ size_t recovery_password_size; /* The user password */ system_character_t *user_password; /* The user password size */ size_t user_password_size; /* The volume offset */ off64_t volume_offset; /* The libbfio input file IO handle */ libbfio_handle_t *input_file_io_handle; /* The libfsapfs input container */ libfsapfs_container_t *input_container; /* The bodyfile output stream */ FILE *bodyfile_stream; /* The notification output stream */ FILE *notify_stream; /* Value to indicate if abort was signalled */ int abort; }; int fsapfstools_system_string_copy_from_64_bit_in_decimal( const system_character_t *string, size_t string_size, uint64_t *value_64bit, libcerror_error_t **error ); int info_handle_initialize( info_handle_t **info_handle, libcerror_error_t **error ); int info_handle_free( info_handle_t **info_handle, libcerror_error_t **error ); int info_handle_signal_abort( info_handle_t *info_handle, libcerror_error_t **error ); int info_handle_set_bodyfile( info_handle_t *info_handle, const system_character_t *filename, libcerror_error_t **error ); int info_handle_set_file_system_index( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ); int info_handle_set_password( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ); int info_handle_set_recovery_password( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ); int info_handle_set_volume_offset( info_handle_t *info_handle, const system_character_t *string, libcerror_error_t **error ); int info_handle_open_input( info_handle_t *info_handle, const system_character_t *filename, libcerror_error_t **error ); int info_handle_close_input( info_handle_t *info_handle, libcerror_error_t **error ); int info_handle_get_volume_by_index( info_handle_t *info_handle, int volume_index, libfsapfs_volume_t **volume, libcerror_error_t **error ); int info_handle_posix_time_value_fprint( info_handle_t *info_handle, const char *value_name, int64_t value_64bit, libcerror_error_t **error ); int info_handle_uuid_value_fprint( info_handle_t *info_handle, const char *value_name, const uint8_t *uuid_data, libcerror_error_t **error ); int info_handle_file_entry_value_fprint( info_handle_t *info_handle, libfsapfs_file_entry_t *file_entry, const system_character_t *path, libcerror_error_t **error ); int info_handle_file_system_hierarchy_fprint_file_entry( info_handle_t *info_handle, libfsapfs_file_entry_t *file_entry, const system_character_t *path, libcerror_error_t **error ); int info_handle_file_system_hierarchy_fprint( info_handle_t *info_handle, libcerror_error_t **error ); int info_handle_file_entry_fprint_by_identifier( info_handle_t *info_handle, uint64_t file_system_identifier, libcerror_error_t **error ); int info_handle_file_entry_fprint_by_path( info_handle_t *info_handle, const system_character_t *path, libcerror_error_t **error ); int info_handle_file_entries_fprint( info_handle_t *info_handle, libcerror_error_t **error ); int info_handle_volume_fprint( info_handle_t *info_handle, int volume_index, libfsapfs_volume_t *volume, libcerror_error_t **error ); int info_handle_container_fprint( info_handle_t *info_handle, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _INFO_HANDLE_H ) */ libfsapfs-20190210/fsapfstools/Makefile.in0000664000175000017500000010606413430101253022432 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = fsapfsinfo$(EXEEXT) fsapfsmount$(EXEEXT) subdir = fsapfstools ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_fsapfsinfo_OBJECTS = fsapfsinfo.$(OBJEXT) \ fsapfstools_getopt.$(OBJEXT) fsapfstools_output.$(OBJEXT) \ fsapfstools_signal.$(OBJEXT) info_handle.$(OBJEXT) fsapfsinfo_OBJECTS = $(am_fsapfsinfo_OBJECTS) fsapfsinfo_DEPENDENCIES = ../libfsapfs/libfsapfs.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = am_fsapfsmount_OBJECTS = fsapfsmount.$(OBJEXT) \ fsapfstools_getopt.$(OBJEXT) fsapfstools_output.$(OBJEXT) \ fsapfstools_signal.$(OBJEXT) mount_dokan.$(OBJEXT) \ mount_file_entry.$(OBJEXT) mount_file_system.$(OBJEXT) \ mount_fuse.$(OBJEXT) mount_handle.$(OBJEXT) fsapfsmount_OBJECTS = $(am_fsapfsmount_OBJECTS) fsapfsmount_DEPENDENCIES = ../libfsapfs/libfsapfs.la AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/fsapfsinfo.Po \ ./$(DEPDIR)/fsapfsmount.Po ./$(DEPDIR)/fsapfstools_getopt.Po \ ./$(DEPDIR)/fsapfstools_output.Po \ ./$(DEPDIR)/fsapfstools_signal.Po ./$(DEPDIR)/info_handle.Po \ ./$(DEPDIR)/mount_dokan.Po ./$(DEPDIR)/mount_file_entry.Po \ ./$(DEPDIR)/mount_file_system.Po ./$(DEPDIR)/mount_fuse.Po \ ./$(DEPDIR)/mount_handle.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(fsapfsinfo_SOURCES) $(fsapfsmount_SOURCES) DIST_SOURCES = $(fsapfsinfo_SOURCES) $(fsapfsmount_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFDATETIME_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBFUSE_CPPFLAGS@ \ @LIBFSAPFS_DLL_IMPORT@ AM_LDFLAGS = @STATIC_LDFLAGS@ fsapfsinfo_SOURCES = \ fsapfsinfo.c \ fsapfstools_getopt.c fsapfstools_getopt.h \ fsapfstools_i18n.h \ fsapfstools_libbfio.h \ fsapfstools_libcerror.h \ fsapfstools_libclocale.h \ fsapfstools_libcnotify.h \ fsapfstools_libcpath.h \ fsapfstools_libfdatetime.h \ fsapfstools_libfguid.h \ fsapfstools_libfsapfs.h \ fsapfstools_libuna.h \ fsapfstools_output.c fsapfstools_output.h \ fsapfstools_signal.c fsapfstools_signal.h \ fsapfstools_unused.h \ info_handle.c info_handle.h fsapfsinfo_LDADD = \ @LIBFGUID_LIBADD@ \ @LIBFDATETIME_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ \ @LIBINTL@ fsapfsmount_SOURCES = \ fsapfsmount.c \ fsapfstools_getopt.c fsapfstools_getopt.h \ fsapfstools_i18n.h \ fsapfstools_libbfio.h \ fsapfstools_libcdata.h \ fsapfstools_libcerror.h \ fsapfstools_libclocale.h \ fsapfstools_libcnotify.h \ fsapfstools_libcpath.h \ fsapfstools_libfsapfs.h \ fsapfstools_libuna.h \ fsapfstools_output.c fsapfstools_output.h \ fsapfstools_signal.c fsapfstools_signal.h \ fsapfstools_unused.h \ mount_dokan.c mount_dokan.h \ mount_file_entry.c mount_file_entry.h \ mount_file_system.c mount_file_system.h \ mount_fuse.c mount_fuse.h \ mount_handle.c mount_handle.h fsapfsmount_LDADD = \ @LIBFUSE_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBCNOTIFY_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCDATA_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCERROR_LIBADD@ \ @LIBINTL@ MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu fsapfstools/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu fsapfstools/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list fsapfsinfo$(EXEEXT): $(fsapfsinfo_OBJECTS) $(fsapfsinfo_DEPENDENCIES) $(EXTRA_fsapfsinfo_DEPENDENCIES) @rm -f fsapfsinfo$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfsinfo_OBJECTS) $(fsapfsinfo_LDADD) $(LIBS) fsapfsmount$(EXEEXT): $(fsapfsmount_OBJECTS) $(fsapfsmount_DEPENDENCIES) $(EXTRA_fsapfsmount_DEPENDENCIES) @rm -f fsapfsmount$(EXEEXT) $(AM_V_CCLD)$(LINK) $(fsapfsmount_OBJECTS) $(fsapfsmount_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfsinfo.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfsmount.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfstools_getopt.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfstools_output.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fsapfstools_signal.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/info_handle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_dokan.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_file_entry.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_file_system.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_fuse.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_handle.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/fsapfsinfo.Po -rm -f ./$(DEPDIR)/fsapfsmount.Po -rm -f ./$(DEPDIR)/fsapfstools_getopt.Po -rm -f ./$(DEPDIR)/fsapfstools_output.Po -rm -f ./$(DEPDIR)/fsapfstools_signal.Po -rm -f ./$(DEPDIR)/info_handle.Po -rm -f ./$(DEPDIR)/mount_dokan.Po -rm -f ./$(DEPDIR)/mount_file_entry.Po -rm -f ./$(DEPDIR)/mount_file_system.Po -rm -f ./$(DEPDIR)/mount_fuse.Po -rm -f ./$(DEPDIR)/mount_handle.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-binPROGRAMS .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on fsapfsinfo ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(fsapfsinfo_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/fsapfstools/fsapfsinfo.c0000664000175000017500000002771213426640013022700 0ustar00lordyestalordyesta00000000000000/* * Shows information obtained from an Apple File System (APFS) * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "fsapfstools_getopt.h" #include "fsapfstools_libcerror.h" #include "fsapfstools_libclocale.h" #include "fsapfstools_libcnotify.h" #include "fsapfstools_libfsapfs.h" #include "fsapfstools_output.h" #include "fsapfstools_signal.h" #include "fsapfstools_unused.h" #include "info_handle.h" enum FSAPFSINFO_MODES { FSAPFSINFO_MODE_CONTAINER, FSAPFSINFO_MODE_FILE_ENTRIES, FSAPFSINFO_MODE_FILE_ENTRY_BY_IDENTIFIER, FSAPFSINFO_MODE_FILE_ENTRY_BY_PATH, FSAPFSINFO_MODE_FILE_SYSTEM_HIERARCHY }; info_handle_t *fsapfsinfo_info_handle = NULL; int fsapfsinfo_abort = 0; /* Prints the executable usage information */ void usage_fprint( FILE *stream ) { if( stream == NULL ) { return; } fprintf( stream, "Use fsapfsinfo to determine information about an Apple\n" " File System (APFS).\n\n" ); fprintf( stream, "Usage: fsapfsinfo [ -B bodyfile ] [ -E identifier ]\n" " [ -f file_system_index ] [ -F path ]\n" " [ -o offset ] [ -p password ]\n" " [ -r password ] [ -hHvV ] source\n\n" ); fprintf( stream, "\tsource: the source file or device\n\n" ); fprintf( stream, "\t-B: output file system information as a bodyfile\n" ); fprintf( stream, "\t-E: show information about a specific file system entry or \"all\"\n" ); fprintf( stream, "\t-f: show information about a specific file system or \"all\"\n" ); fprintf( stream, "\t-F: show information about a specific file entry path\n" ); fprintf( stream, "\t-h: shows this help\n" ); fprintf( stream, "\t-H: shows the file system hierarchy\n" ); fprintf( stream, "\t-o: specify the volume offset\n" ); fprintf( stream, "\t-p: specify the password\n" ); fprintf( stream, "\t-r: specify the recovery password\n" ); fprintf( stream, "\t-v: verbose output to stderr\n" ); fprintf( stream, "\t-V: print version\n" ); } /* Signal handler for fsapfsinfo */ void fsapfsinfo_signal_handler( fsapfstools_signal_t signal FSAPFSTOOLS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "fsapfsinfo_signal_handler"; FSAPFSTOOLS_UNREFERENCED_PARAMETER( signal ) fsapfsinfo_abort = 1; if( fsapfsinfo_info_handle != NULL ) { if( info_handle_signal_abort( fsapfsinfo_info_handle, &error ) != 1 ) { libcnotify_printf( "%s: unable to signal info handle to abort.\n", function ); libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } } /* Force stdin to close otherwise any function reading it will remain blocked */ #if defined( WINAPI ) && !defined( __CYGWIN__ ) if( _close( 0 ) != 0 ) #else if( close( 0 ) != 0 ) #endif { libcnotify_printf( "%s: unable to close stdin.\n", function ); } } /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc, wchar_t * const argv[] ) #else int main( int argc, char * const argv[] ) #endif { libfsapfs_error_t *error = NULL; system_character_t *option_bodyfile = NULL; system_character_t *option_file_entry_identifier = NULL; system_character_t *option_file_entry_path = NULL; system_character_t *option_file_system_index = NULL; system_character_t *option_password = NULL; system_character_t *option_recovery_password = NULL; system_character_t *option_volume_offset = NULL; system_character_t *source = NULL; char *program = "fsapfsinfo"; system_integer_t option = 0; size_t string_length = 0; uint64_t file_entry_identifier = 0; int option_mode = FSAPFSINFO_MODE_CONTAINER; int verbose = 0; libcnotify_stream_set( stderr, NULL ); libcnotify_verbose_set( 1 ); if( libclocale_initialize( "fsapfstools", &error ) != 1 ) { fprintf( stderr, "Unable to initialize locale values.\n" ); goto on_error; } if( fsapfstools_output_initialize( _IONBF, &error ) != 1 ) { fprintf( stderr, "Unable to initialize output settings.\n" ); goto on_error; } fsapfstools_output_version_fprint( stdout, program ); while( ( option = fsapfstools_getopt( argc, argv, _SYSTEM_STRING( "B:E:f:F:hHo:p:r:vV" ) ) ) != (system_integer_t) -1 ) { switch( option ) { case (system_integer_t) '?': default: fprintf( stderr, "Invalid argument: %" PRIs_SYSTEM "\n", argv[ optind - 1 ] ); usage_fprint( stdout ); return( EXIT_FAILURE ); case (system_integer_t) 'B': option_bodyfile = optarg; break; case (system_integer_t) 'E': option_mode = FSAPFSINFO_MODE_FILE_ENTRY_BY_IDENTIFIER; option_file_entry_identifier = optarg; break; case (system_integer_t) 'f': option_file_system_index = optarg; break; case (system_integer_t) 'F': option_mode = FSAPFSINFO_MODE_FILE_ENTRY_BY_PATH; option_file_entry_path = optarg; break; case (system_integer_t) 'h': usage_fprint( stdout ); return( EXIT_SUCCESS ); case (system_integer_t) 'H': option_mode = FSAPFSINFO_MODE_FILE_SYSTEM_HIERARCHY; break; case (system_integer_t) 'o': option_volume_offset = optarg; break; case (system_integer_t) 'p': option_password = optarg; break; case (system_integer_t) 'r': option_recovery_password = optarg; break; case (system_integer_t) 'v': verbose = 1; break; case (system_integer_t) 'V': fsapfstools_output_copyright_fprint( stdout ); return( EXIT_SUCCESS ); } } if( optind == argc ) { fprintf( stderr, "Missing source file or device.\n" ); usage_fprint( stdout ); return( EXIT_FAILURE ); } source = argv[ optind ]; libcnotify_verbose_set( verbose ); libfsapfs_notify_set_stream( stderr, NULL ); libfsapfs_notify_set_verbose( verbose ); if( info_handle_initialize( &fsapfsinfo_info_handle, &error ) != 1 ) { fprintf( stderr, "Unable to initialize info handle.\n" ); goto on_error; } if( option_bodyfile != NULL ) { if( info_handle_set_bodyfile( fsapfsinfo_info_handle, option_bodyfile, &error ) != 1 ) { fprintf( stderr, "Unable to set bodyfile.\n" ); goto on_error; } } if( option_file_system_index != NULL ) { if( info_handle_set_file_system_index( fsapfsinfo_info_handle, option_file_system_index, &error ) != 1 ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); fprintf( stderr, "Unsupported file system index defaulting to: all.\n" ); } } if( option_password != NULL ) { if( info_handle_set_password( fsapfsinfo_info_handle, option_password, &error ) != 1 ) { fprintf( stderr, "Unable to set password.\n" ); goto on_error; } } if( option_recovery_password != NULL ) { if( info_handle_set_recovery_password( fsapfsinfo_info_handle, option_recovery_password, &error ) != 1 ) { fprintf( stderr, "Unable to set recovery password.\n" ); goto on_error; } } if( option_volume_offset != NULL ) { if( info_handle_set_volume_offset( fsapfsinfo_info_handle, option_volume_offset, &error ) != 1 ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); fprintf( stderr, "Unsupported volume offset defaulting to: %" PRIi64 ".\n", fsapfsinfo_info_handle->volume_offset ); } } if( info_handle_open_input( fsapfsinfo_info_handle, source, &error ) != 1 ) { fprintf( stderr, "Unable to open: %" PRIs_SYSTEM ".\n", source ); goto on_error; } if( option_mode == FSAPFSINFO_MODE_FILE_ENTRY_BY_IDENTIFIER ) { if( option_file_entry_identifier == NULL ) { fprintf( stderr, "Mising file entry identifier string.\n" ); goto on_error; } string_length = system_string_length( option_file_entry_identifier ); if( ( string_length == 3 ) && ( system_string_compare( option_file_entry_identifier, _SYSTEM_STRING( "all" ), 3 ) == 0 ) ) { option_mode = FSAPFSINFO_MODE_FILE_ENTRIES; } else if( fsapfstools_system_string_copy_from_64_bit_in_decimal( option_file_entry_identifier, string_length + 1, &file_entry_identifier, &error ) != 1 ) { fprintf( stderr, "Unable to copy file entry identifier string to 64-bit decimal.\n" ); goto on_error; } else if( file_entry_identifier > (uint64_t) 0x0fffffffffffffffUL ) { fprintf( stderr, "Invalid file entry identifier value out of bounds." ); goto on_error; } } switch( option_mode ) { case FSAPFSINFO_MODE_FILE_ENTRIES: if( info_handle_file_entries_fprint( fsapfsinfo_info_handle, &error ) != 1 ) { fprintf( stderr, "Unable to print file entries.\n" ); goto on_error; } break; case FSAPFSINFO_MODE_FILE_ENTRY_BY_IDENTIFIER: if( info_handle_file_entry_fprint_by_identifier( fsapfsinfo_info_handle, file_entry_identifier, &error ) != 1 ) { fprintf( stderr, "Unable to print file entry: %" PRIu64 ".\n", file_entry_identifier ); goto on_error; } break; case FSAPFSINFO_MODE_FILE_ENTRY_BY_PATH: if( info_handle_file_entry_fprint_by_path( fsapfsinfo_info_handle, option_file_entry_path, &error ) != 1 ) { fprintf( stderr, "Unable to print file entry information.\n" ); goto on_error; } break; case FSAPFSINFO_MODE_FILE_SYSTEM_HIERARCHY: if( info_handle_file_system_hierarchy_fprint( fsapfsinfo_info_handle, &error ) != 1 ) { fprintf( stderr, "Unable to print file system hierarchy.\n" ); goto on_error; } break; case FSAPFSINFO_MODE_CONTAINER: default: if( info_handle_container_fprint( fsapfsinfo_info_handle, &error ) != 1 ) { fprintf( stderr, "Unable to print container information.\n" ); goto on_error; } break; } if( info_handle_close_input( fsapfsinfo_info_handle, &error ) != 0 ) { fprintf( stderr, "Unable to close info handle.\n" ); goto on_error; } if( info_handle_free( &fsapfsinfo_info_handle, &error ) != 1 ) { fprintf( stderr, "Unable to free info handle.\n" ); goto on_error; } return( EXIT_SUCCESS ); on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } if( fsapfsinfo_info_handle != NULL ) { info_handle_free( &fsapfsinfo_info_handle, NULL ); } return( EXIT_FAILURE ); } libfsapfs-20190210/fsapfstools/fsapfsmount.c0000664000175000017500000004165113426640013023105 0ustar00lordyestalordyesta00000000000000/* * Mounts an Apple File System (APFS) container * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include #include #if defined( HAVE_IO_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #if defined( HAVE_UNISTD_H ) #include #endif #include "fsapfstools_getopt.h" #include "fsapfstools_i18n.h" #include "fsapfstools_libcerror.h" #include "fsapfstools_libclocale.h" #include "fsapfstools_libcnotify.h" #include "fsapfstools_libfsapfs.h" #include "fsapfstools_output.h" #include "fsapfstools_signal.h" #include "fsapfstools_unused.h" #include "mount_dokan.h" #include "mount_fuse.h" #include "mount_handle.h" mount_handle_t *fsapfsmount_mount_handle = NULL; int fsapfsmount_abort = 0; /* Prints usage information */ void usage_fprint( FILE *stream ) { if( stream == NULL ) { return; } fprintf( stream, "Use fsapfsmount to mount an Apple File System (APFS) container\n\n" ); fprintf( stream, "Usage: fsapfsmount [ -f file_system_index ] [ -o offset ] [ -p password ]\n" " [ -r recovery_password ] [ -X extended_options ]\n" " [ -hvV ] container mount_point\n\n" ); fprintf( stream, "\tcontainer: an Apple File System (APFS) container\n\n" ); fprintf( stream, "\tmount_point: the directory to serve as mount point\n\n" ); fprintf( stream, "\t-f: mounts a specific file system or \"all\"\n" ); fprintf( stream, "\t-h: shows this help\n" ); fprintf( stream, "\t-o: specify the container offset in bytes\n" ); fprintf( stream, "\t-p: specify the password/passphrase\n" ); fprintf( stream, "\t-r: specify the recovery password/passphrase\n" ); fprintf( stream, "\t-v: verbose output to stderr, while fsapfsmount will remain running in the\n" "\t foreground\n" ); fprintf( stream, "\t-V: print version\n" ); fprintf( stream, "\t-X: extended options to pass to sub system\n" ); } /* Signal handler for fsapfsmount */ void fsapfsmount_signal_handler( fsapfstools_signal_t signal FSAPFSTOOLS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "fsapfsmount_signal_handler"; FSAPFSTOOLS_UNREFERENCED_PARAMETER( signal ) fsapfsmount_abort = 1; if( fsapfsmount_mount_handle != NULL ) { if( mount_handle_signal_abort( fsapfsmount_mount_handle, &error ) != 1 ) { libcnotify_printf( "%s: unable to signal mount handle to abort.\n", function ); libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } } /* Force stdin to close otherwise any function reading it will remain blocked */ #if defined( WINAPI ) && !defined( __CYGWIN__ ) if( _close( 0 ) != 0 ) #else if( close( 0 ) != 0 ) #endif { libcnotify_printf( "%s: unable to close stdin.\n", function ); } } /* The main program */ #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) int wmain( int argc, wchar_t * const argv[] ) #else int main( int argc, char * const argv[] ) #endif { libfsapfs_error_t *error = NULL; system_character_t *mount_point = NULL; system_character_t *option_extended_options = NULL; system_character_t *option_file_system_index = NULL; system_character_t *option_offset = NULL; system_character_t *option_password = NULL; system_character_t *option_recovery_password = NULL; system_character_t *source = NULL; char *program = "fsapfsmount"; system_integer_t option = 0; int result = 0; int verbose = 0; #if defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) struct fuse_operations fsapfsmount_fuse_operations; struct fuse_args fsapfsmount_fuse_arguments = FUSE_ARGS_INIT(0, NULL); struct fuse_chan *fsapfsmount_fuse_channel = NULL; struct fuse *fsapfsmount_fuse_handle = NULL; #elif defined( HAVE_LIBDOKAN ) DOKAN_OPERATIONS fsapfsmount_dokan_operations; DOKAN_OPTIONS fsapfsmount_dokan_options; #endif libcnotify_stream_set( stderr, NULL ); libcnotify_verbose_set( 1 ); if( libclocale_initialize( "fsapfstools", &error ) != 1 ) { fprintf( stderr, "Unable to initialize locale values.\n" ); goto on_error; } if( fsapfstools_output_initialize( _IONBF, &error ) != 1 ) { fprintf( stderr, "Unable to initialize output settings.\n" ); goto on_error; } fsapfstools_output_version_fprint( stdout, program ); while( ( option = fsapfstools_getopt( argc, argv, _SYSTEM_STRING( "f:ho:p:r:vVX:" ) ) ) != (system_integer_t) -1 ) { switch( option ) { case (system_integer_t) '?': default: fprintf( stderr, "Invalid argument: %" PRIs_SYSTEM "\n", argv[ optind - 1 ] ); usage_fprint( stdout ); return( EXIT_FAILURE ); case (system_integer_t) 'f': option_file_system_index = optarg; break; case (system_integer_t) 'h': usage_fprint( stdout ); return( EXIT_SUCCESS ); case (system_integer_t) 'o': option_offset = optarg; break; case (system_integer_t) 'p': option_password = optarg; break; case (system_integer_t) 'r': option_recovery_password = optarg; break; case (system_integer_t) 'v': verbose = 1; break; case (system_integer_t) 'V': fsapfstools_output_copyright_fprint( stdout ); return( EXIT_SUCCESS ); case (system_integer_t) 'X': option_extended_options = optarg; break; } } if( optind == argc ) { fprintf( stderr, "Missing source container.\n" ); usage_fprint( stdout ); return( EXIT_FAILURE ); } source = argv[ optind++ ]; if( optind == argc ) { fprintf( stderr, "Missing mount point.\n" ); usage_fprint( stdout ); return( EXIT_FAILURE ); } mount_point = argv[ optind ]; libcnotify_verbose_set( verbose ); libfsapfs_notify_set_stream( stderr, NULL ); libfsapfs_notify_set_verbose( verbose ); if( mount_handle_initialize( &fsapfsmount_mount_handle, &error ) != 1 ) { fprintf( stderr, "Unable to initialize mount handle.\n" ); goto on_error; } if( option_file_system_index != NULL ) { if( mount_handle_set_file_system_index( fsapfsmount_mount_handle, option_file_system_index, &error ) != 1 ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); fprintf( stderr, "Unsupported file system index defaulting to: all.\n" ); } } if( option_offset != NULL ) { if( mount_handle_set_offset( fsapfsmount_mount_handle, option_offset, &error ) != 1 ) { fprintf( stderr, "Unable to set container offset.\n" ); goto on_error; } } if( option_password != NULL ) { if( mount_handle_set_password( fsapfsmount_mount_handle, option_password, &error ) != 1 ) { fprintf( stderr, "Unable to set password.\n" ); goto on_error; } } if( option_recovery_password != NULL ) { if( mount_handle_set_recovery_password( fsapfsmount_mount_handle, option_recovery_password, &error ) != 1 ) { fprintf( stderr, "Unable to set recovery password.\n" ); goto on_error; } } if( mount_handle_open( fsapfsmount_mount_handle, source, &error ) != 1 ) { fprintf( stderr, "Unable to open source container\n" ); goto on_error; } if( mount_handle_is_locked( fsapfsmount_mount_handle, &error ) != 0 ) { fprintf( stderr, "Unable to unlock source container\n" ); goto on_error; } #if defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) if( option_extended_options != NULL ) { /* This argument is required but ignored */ if( fuse_opt_add_arg( &fsapfsmount_fuse_arguments, "" ) != 0 ) { fprintf( stderr, "Unable add fuse arguments.\n" ); goto on_error; } if( fuse_opt_add_arg( &fsapfsmount_fuse_arguments, "-o" ) != 0 ) { fprintf( stderr, "Unable add fuse arguments.\n" ); goto on_error; } if( fuse_opt_add_arg( &fsapfsmount_fuse_arguments, option_extended_options ) != 0 ) { fprintf( stderr, "Unable add fuse arguments.\n" ); goto on_error; } } if( memory_set( &fsapfsmount_fuse_operations, 0, sizeof( struct fuse_operations ) ) == NULL ) { fprintf( stderr, "Unable to clear fuse operations.\n" ); goto on_error; } fsapfsmount_fuse_operations.open = &mount_fuse_open; fsapfsmount_fuse_operations.read = &mount_fuse_read; fsapfsmount_fuse_operations.release = &mount_fuse_release; fsapfsmount_fuse_operations.opendir = &mount_fuse_opendir; fsapfsmount_fuse_operations.readdir = &mount_fuse_readdir; fsapfsmount_fuse_operations.releasedir = &mount_fuse_releasedir; fsapfsmount_fuse_operations.getattr = &mount_fuse_getattr; fsapfsmount_fuse_operations.readlink = &mount_fuse_readlink; fsapfsmount_fuse_operations.destroy = &mount_fuse_destroy; fsapfsmount_fuse_channel = fuse_mount( mount_point, &fsapfsmount_fuse_arguments ); if( fsapfsmount_fuse_channel == NULL ) { fprintf( stderr, "Unable to create fuse channel.\n" ); goto on_error; } fsapfsmount_fuse_handle = fuse_new( fsapfsmount_fuse_channel, &fsapfsmount_fuse_arguments, &fsapfsmount_fuse_operations, sizeof( struct fuse_operations ), fsapfsmount_mount_handle ); if( fsapfsmount_fuse_handle == NULL ) { fprintf( stderr, "Unable to create fuse handle.\n" ); goto on_error; } if( verbose == 0 ) { if( fuse_daemonize( 0 ) != 0 ) { fprintf( stderr, "Unable to daemonize fuse.\n" ); goto on_error; } } result = fuse_loop( fsapfsmount_fuse_handle ); if( result != 0 ) { fprintf( stderr, "Unable to run fuse loop.\n" ); goto on_error; } fuse_destroy( fsapfsmount_fuse_handle ); fuse_opt_free_args( &fsapfsmount_fuse_arguments ); return( EXIT_SUCCESS ); #elif defined( HAVE_LIBDOKAN ) if( memory_set( &fsapfsmount_dokan_operations, 0, sizeof( DOKAN_OPERATIONS ) ) == NULL ) { fprintf( stderr, "Unable to clear dokan operations.\n" ); goto on_error; } if( memory_set( &fsapfsmount_dokan_options, 0, sizeof( DOKAN_OPTIONS ) ) == NULL ) { fprintf( stderr, "Unable to clear dokan options.\n" ); goto on_error; } fsapfsmount_dokan_options.Version = DOKAN_VERSION; fsapfsmount_dokan_options.ThreadCount = 0; fsapfsmount_dokan_options.MountPoint = mount_point; if( verbose != 0 ) { fsapfsmount_dokan_options.Options |= DOKAN_OPTION_STDERR; #if defined( HAVE_DEBUG_OUTPUT ) fsapfsmount_dokan_options.Options |= DOKAN_OPTION_DEBUG; #endif } /* This will only affect the drive properties fsapfsmount_dokan_options.Options |= DOKAN_OPTION_REMOVABLE; */ #if ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) fsapfsmount_dokan_options.Options |= DOKAN_OPTION_KEEP_ALIVE; fsapfsmount_dokan_operations.CreateFile = &mount_dokan_CreateFile; fsapfsmount_dokan_operations.OpenDirectory = &mount_dokan_OpenDirectory; fsapfsmount_dokan_operations.CreateDirectory = NULL; fsapfsmount_dokan_operations.Cleanup = NULL; fsapfsmount_dokan_operations.CloseFile = &mount_dokan_CloseFile; fsapfsmount_dokan_operations.ReadFile = &mount_dokan_ReadFile; fsapfsmount_dokan_operations.WriteFile = NULL; fsapfsmount_dokan_operations.FlushFileBuffers = NULL; fsapfsmount_dokan_operations.GetFileInformation = &mount_dokan_GetFileInformation; fsapfsmount_dokan_operations.FindFiles = &mount_dokan_FindFiles; fsapfsmount_dokan_operations.FindFilesWithPattern = NULL; fsapfsmount_dokan_operations.SetFileAttributes = NULL; fsapfsmount_dokan_operations.SetFileTime = NULL; fsapfsmount_dokan_operations.DeleteFile = NULL; fsapfsmount_dokan_operations.DeleteDirectory = NULL; fsapfsmount_dokan_operations.MoveFile = NULL; fsapfsmount_dokan_operations.SetEndOfFile = NULL; fsapfsmount_dokan_operations.SetAllocationSize = NULL; fsapfsmount_dokan_operations.LockFile = NULL; fsapfsmount_dokan_operations.UnlockFile = NULL; fsapfsmount_dokan_operations.GetFileSecurity = NULL; fsapfsmount_dokan_operations.SetFileSecurity = NULL; fsapfsmount_dokan_operations.GetDiskFreeSpace = NULL; fsapfsmount_dokan_operations.GetVolumeInformation = &mount_dokan_GetVolumeInformation; fsapfsmount_dokan_operations.Unmount = &mount_dokan_Unmount; #else fsapfsmount_dokan_operations.ZwCreateFile = &mount_dokan_ZwCreateFile; fsapfsmount_dokan_operations.Cleanup = NULL; fsapfsmount_dokan_operations.CloseFile = &mount_dokan_CloseFile; fsapfsmount_dokan_operations.ReadFile = &mount_dokan_ReadFile; fsapfsmount_dokan_operations.WriteFile = NULL; fsapfsmount_dokan_operations.FlushFileBuffers = NULL; fsapfsmount_dokan_operations.GetFileInformation = &mount_dokan_GetFileInformation; fsapfsmount_dokan_operations.FindFiles = &mount_dokan_FindFiles; fsapfsmount_dokan_operations.FindFilesWithPattern = NULL; fsapfsmount_dokan_operations.SetFileAttributes = NULL; fsapfsmount_dokan_operations.SetFileTime = NULL; fsapfsmount_dokan_operations.DeleteFile = NULL; fsapfsmount_dokan_operations.DeleteDirectory = NULL; fsapfsmount_dokan_operations.MoveFile = NULL; fsapfsmount_dokan_operations.SetEndOfFile = NULL; fsapfsmount_dokan_operations.SetAllocationSize = NULL; fsapfsmount_dokan_operations.LockFile = NULL; fsapfsmount_dokan_operations.UnlockFile = NULL; fsapfsmount_dokan_operations.GetFileSecurity = NULL; fsapfsmount_dokan_operations.SetFileSecurity = NULL; fsapfsmount_dokan_operations.GetDiskFreeSpace = NULL; fsapfsmount_dokan_operations.GetVolumeInformation = &mount_dokan_GetVolumeInformation; fsapfsmount_dokan_operations.Unmounted = NULL; fsapfsmount_dokan_operations.FindStreams = NULL; fsapfsmount_dokan_operations.Mounted = NULL; #endif /* ( DOKAN_VERSION >= 600 ) && ( DOKAN_VERSION < 800 ) */ result = DokanMain( &fsapfsmount_dokan_options, &fsapfsmount_dokan_operations ); switch( result ) { case DOKAN_SUCCESS: break; case DOKAN_ERROR: fprintf( stderr, "Unable to run dokan main: generic error\n" ); break; case DOKAN_DRIVE_LETTER_ERROR: fprintf( stderr, "Unable to run dokan main: bad drive letter\n" ); break; case DOKAN_DRIVER_INSTALL_ERROR: fprintf( stderr, "Unable to run dokan main: unable to load driver\n" ); break; case DOKAN_START_ERROR: fprintf( stderr, "Unable to run dokan main: driver error\n" ); break; case DOKAN_MOUNT_ERROR: fprintf( stderr, "Unable to run dokan main: unable to assign drive letter\n" ); break; case DOKAN_MOUNT_POINT_ERROR: fprintf( stderr, "Unable to run dokan main: mount point error\n" ); break; default: fprintf( stderr, "Unable to run dokan main: unknown error: %d\n", result ); break; } return( EXIT_SUCCESS ); #else fprintf( stderr, "No sub system to mount APFS format.\n" ); return( EXIT_FAILURE ); #endif /* defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) */ on_error: if( error != NULL ) { libcnotify_print_error_backtrace( error ); libcerror_error_free( &error ); } #if defined( HAVE_LIBFUSE ) || defined( HAVE_LIBOSXFUSE ) if( fsapfsmount_fuse_handle != NULL ) { fuse_destroy( fsapfsmount_fuse_handle ); } fuse_opt_free_args( &fsapfsmount_fuse_arguments ); #endif if( fsapfsmount_mount_handle != NULL ) { mount_handle_free( &fsapfsmount_mount_handle, NULL ); } return( EXIT_FAILURE ); } libfsapfs-20190210/fsapfstools/fsapfstools_libclocale.h0000664000175000017500000000274513426637447025303 0ustar00lordyestalordyesta00000000000000/* * The libclocale header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBCLOCALE_H ) #define _FSAPFSTOOLS_LIBCLOCALE_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if defined( HAVE_LOCAL_LIBCLOCALE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT * before including libclocale.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBCLOCALE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _FSAPFSTOOLS_LIBCLOCALE_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_i18n.h0000664000175000017500000000230213426637447023756 0ustar00lordyestalordyesta00000000000000/* * Internationalization (i18n) functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_I18N_H ) #define _FSAPFSTOOLS_I18N_H #include #if defined( HAVE_LIBINTL_H ) #include #endif #if defined( __cplusplus ) extern "C" { #endif /* TODO for now do nothing i18n-like #define _( string ) \ gettext( string ) */ #define _( string ) \ string #if defined( __cplusplus ) } #endif #endif /* !defined( _FSAPFSTOOLS_I18N_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_libuna.h0000664000175000017500000000337213426637447024461 0ustar00lordyestalordyesta00000000000000/* * The libuna header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBUNA_H ) #define _FSAPFSTOOLS_LIBUNA_H #include /* Define HAVE_LOCAL_LIBUNA for local use of libuna */ #if defined( HAVE_LOCAL_LIBUNA ) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBUNA_DLL_IMPORT * before including libuna.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBUNA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBUNA ) */ #endif /* !defined( _FSAPFSTOOLS_LIBUNA_H ) */ libfsapfs-20190210/fsapfstools/fsapfstools_libcerror.h0000664000175000017500000000272013426637447025166 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _FSAPFSTOOLS_LIBCERROR_H ) #define _FSAPFSTOOLS_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) && !defined( HAVE_STATIC_EXECUTABLES ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _FSAPFSTOOLS_LIBCERROR_H ) */ libfsapfs-20190210/depcomp0000755000175000017500000005602013430101254017372 0ustar00lordyestalordyesta00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2018 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: libfsapfs-20190210/po/0000775000175000017500000000000013430101371016432 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/po/en@quot.header0000644000175000017500000000226313344411002021217 0ustar00lordyestalordyesta00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # libfsapfs-20190210/po/Rules-quot0000644000175000017500000000340013344411002020427 0ustar00lordyestalordyesta00000000000000# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header libfsapfs-20190210/po/POTFILES.in0000664000175000017500000000007313344733613020225 0ustar00lordyestalordyesta00000000000000# List of source files which contain translatable strings. libfsapfs-20190210/po/remove-potcdate.sin0000644000175000017500000000066013344411002022242 0ustar00lordyestalordyesta00000000000000# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } libfsapfs-20190210/po/Makevars.in0000664000175000017500000000342013344733613020550 0ustar00lordyestalordyesta00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = @PACKAGE@ # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Joachim Metz # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = @PACKAGE_BUGREPORT@ # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = libfsapfs-20190210/po/ChangeLog0000664000175000017500000000006213344733613020220 0ustar00lordyestalordyesta000000000000002016-11-09 gettextize libfsapfs-20190210/po/en@boldquot.header0000644000175000017500000000247113344411002022061 0ustar00lordyestalordyesta00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # libfsapfs-20190210/po/quot.sed0000644000175000017500000000023113344411002020110 0ustar00lordyestalordyesta00000000000000s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g libfsapfs-20190210/po/Makevars0000664000175000017500000000342313430101272020130 0ustar00lordyestalordyesta00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = libfsapfs # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Joachim Metz # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = joachim.metz@gmail.com # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = libfsapfs-20190210/po/insert-header.sin0000644000175000017500000000124013344411002021671 0ustar00lordyestalordyesta00000000000000# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } libfsapfs-20190210/po/Makefile.in.in0000644000175000017500000003744213344411002021113 0ustar00lordyestalordyesta00000000000000# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.18 GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: check-macro-version all-@USE_NLS@ all-yes: stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. check-macro-version: @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ package_gnu='GNU '; \ else \ package_gnu=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_gnu}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/po/boldquot.sed0000644000175000017500000000033113344411002020752 0ustar00lordyestalordyesta00000000000000s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g s/“/“/g s/”/”/g s/‘/‘/g s/’/’/g libfsapfs-20190210/pyfsapfs/0000775000175000017500000000000013430101370017646 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/pyfsapfs/pyfsapfs_guid.c0000664000175000017500000000553613426640135022702 0ustar00lordyestalordyesta00000000000000/* * GUID functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "pyfsapfs_error.h" #include "pyfsapfs_guid.h" #include "pyfsapfs_libfguid.h" #include "pyfsapfs_python.h" /* Creates a new string object from a GUID * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_string_new_from_guid( const uint8_t *guid_buffer, size_t guid_buffer_size ) { char guid_string[ 48 ]; libcerror_error_t *error = NULL; libfguid_identifier_t *guid = NULL; PyObject *string_object = NULL; const char *errors = NULL; static char *function = "pyfsapfs_string_new_from_guid"; if( libfguid_identifier_initialize( &guid, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to create GUID.", function ); libcerror_error_free( &error ); goto on_error; } if( libfguid_identifier_copy_from_byte_stream( guid, guid_buffer, guid_buffer_size, LIBFGUID_ENDIAN_BIG, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to copy byte stream to GUID.", function ); libcerror_error_free( &error ); goto on_error; } if( libfguid_identifier_copy_to_utf8_string( guid, (uint8_t *) guid_string, 48, LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to copy GUID to string.", function ); libcerror_error_free( &error ); goto on_error; } if( libfguid_identifier_free( &guid, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to free GUID.", function ); libcerror_error_free( &error ); goto on_error; } /* Pass the string length to PyUnicode_DecodeUTF8 * otherwise it makes the end of string character is part * of the string */ string_object = PyUnicode_DecodeUTF8( guid_string, (Py_ssize_t) 36, errors ); return( string_object ); on_error: if( guid != NULL ) { libfguid_identifier_free( &guid, NULL ); } return( NULL ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_error.h0000664000175000017500000000301713426637447023114 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_ERROR_H ) #define _PYFSAPFS_ERROR_H #include #include #include "pyfsapfs_libcerror.h" #include "pyfsapfs_python.h" #define PYFSAPFS_ERROR_STRING_SIZE 2048 #if defined( __cplusplus ) extern "C" { #endif void pyfsapfs_error_fetch( libcerror_error_t **error, int error_domain, int error_code, const char *format_string, ... ); void pyfsapfs_error_fetch_and_raise( PyObject *exception_object, const char *format_string, ... ); void pyfsapfs_error_raise( libcerror_error_t *error, PyObject *exception_object, const char *format_string, ... ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_ERROR_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_libcerror.h0000664000175000017500000000264013426637447023747 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_LIBCERROR_H ) #define _PYFSAPFS_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _PYFSAPFS_LIBCERROR_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_integer.c0000664000175000017500000002127613426637447023422 0ustar00lordyestalordyesta00000000000000/* * Integer functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "pyfsapfs_error.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_integer.h" #include "pyfsapfs_python.h" /* Creates a new signed integer object from a 64-bit value * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_integer_signed_new_from_64bit( int64_t value_64bit ) { PyObject *integer_object = NULL; static char *function = "pyfsapfs_integer_signed_new_from_64bit"; #if defined( HAVE_LONG_LONG ) if( ( value_64bit < (int64_t) LLONG_MIN ) || ( value_64bit > (int64_t) LLONG_MAX ) ) { PyErr_Format( PyExc_OverflowError, "%s: 64-bit value out of bounds.", function ); return( NULL ); } integer_object = PyLong_FromLongLong( (long long) value_64bit ); #else if( current_offset > (off64_t) LONG_MAX ) { PyErr_Format( PyExc_OverflowError, "%s: 64-bit value out of bounds.", function ); return( NULL ); } integer_object = PyLong_FromLong( (long) value_64bit ); #endif return( integer_object ); } /* Creates a new unsigned integer object from a 64-bit value * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_integer_unsigned_new_from_64bit( uint64_t value_64bit ) { PyObject *integer_object = NULL; static char *function = "pyfsapfs_integer_unsigned_new_from_64bit"; #if defined( HAVE_LONG_LONG ) if( value_64bit > (uint64_t) ULLONG_MAX ) { PyErr_Format( PyExc_OverflowError, "%s: 64-bit value exceeds maximum.", function ); return( NULL ); } integer_object = PyLong_FromUnsignedLongLong( (long long) value_64bit ); #else if( value_64bit > (uint64_t) ULONG_MAX ) { PyErr_Format( PyExc_OverflowError, "%s: 64-bit value exceeds maximum.", function ); return( NULL ); } integer_object = PyLong_FromUnsignedLong( (long) value_64bit ); #endif return( integer_object ); } /* Copies a Python int or long object to a signed 64-bit value * Returns 1 if successful or -1 on error */ int pyfsapfs_integer_signed_copy_to_64bit( PyObject *integer_object, int64_t *value_64bit, libcerror_error_t **error ) { static char *function = "pyfsapfs_integer_signed_copy_to_64bit"; int result = 0; #if defined( HAVE_LONG_LONG ) PY_LONG_LONG long_value = 0; #else long long_value = 0; #endif if( integer_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid integer object.", function ); return( -1 ); } PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyLong_Type ); if( result == -1 ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if integer object is of type long.", function ); return( -1 ); } else if( result != 0 ) { PyErr_Clear(); #if defined( HAVE_LONG_LONG ) long_value = PyLong_AsLongLong( integer_object ); #else long_value = PyLong_AsLong( integer_object ); #endif } #if PY_MAJOR_VERSION < 3 if( result == 0 ) { PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyInt_Type ); if( result == -1 ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if integer object is of type int.", function ); return( -1 ); } else if( result != 0 ) { PyErr_Clear(); long_value = PyInt_AsLong( integer_object ); } } #endif /* PY_MAJOR_VERSION < 3 */ if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unsupported integer object type.", function ); return( -1 ); } if( PyErr_Occurred() ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to convert integer object to long.", function ); return( -1 ); } #if defined( HAVE_LONG_LONG ) && ( SIZEOF_LONG_LONG > 8 ) if( ( long_value < (PY_LONG_LONG) INT64_MIN ) || ( long_value > (PY_LONG_LONG) INT64_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid long value out of bounds.", function ); return( -1 ); } #elif ( SIZEOF_LONG > 8 ) if( ( long_value > (long) INT64_MIN ) || ( long_value > (long) INT64_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid long value out of bounds.", function ); return( -1 ); } #endif *value_64bit = (int64_t) long_value; return( 1 ); } /* Copies a Python int or long object to an unsigned 64-bit value * Returns 1 if successful or -1 on error */ int pyfsapfs_integer_unsigned_copy_to_64bit( PyObject *integer_object, uint64_t *value_64bit, libcerror_error_t **error ) { static char *function = "pyfsapfs_integer_unsigned_copy_to_64bit"; int result = 0; #if defined( HAVE_LONG_LONG ) PY_LONG_LONG long_value = 0; #else long long_value = 0; #endif if( integer_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid integer object.", function ); return( -1 ); } PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyLong_Type ); if( result == -1 ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if integer object is of type long.", function ); return( -1 ); } else if( result != 0 ) { PyErr_Clear(); #if defined( HAVE_LONG_LONG ) long_value = PyLong_AsUnsignedLongLong( integer_object ); #else long_value = PyLong_AsUnsignedLong( integer_object ); #endif } #if PY_MAJOR_VERSION < 3 if( result == 0 ) { PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyInt_Type ); if( result == -1 ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if integer object is of type int.", function ); return( -1 ); } else if( result != 0 ) { PyErr_Clear(); #if defined( HAVE_LONG_LONG ) long_value = PyInt_AsUnsignedLongLongMask( integer_object ); #else long_value = PyInt_AsUnsignedLongMask( integer_object ); #endif } } #endif /* PY_MAJOR_VERSION < 3 */ if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unsupported integer object type.", function ); return( -1 ); } if( PyErr_Occurred() ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to convert integer object to long.", function ); return( -1 ); } #if defined( HAVE_LONG_LONG ) #if ( SIZEOF_LONG_LONG > 8 ) if( ( long_value < (PY_LONG_LONG) 0 ) || ( long_value > (PY_LONG_LONG) UINT64_MAX ) ) #else if( long_value < (PY_LONG_LONG) 0 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid long value out of bounds.", function ); return( -1 ); } #else #if ( SIZEOF_LONG > 8 ) if( ( long_value < (long) 0 ) || ( long_value > (long) UINT64_MAX ) ) #else if( long_value < (PY_LONG_LONG) 0 ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid long value out of bounds.", function ); return( -1 ); } #endif *value_64bit = (uint64_t) long_value; return( 1 ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_container.c0000664000175000017500000005555113426640170023735 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_container_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs_container.h" #include "pyfsapfs_error.h" #include "pyfsapfs_file_object_io_handle.h" #include "pyfsapfs_guid.h" #include "pyfsapfs_integer.h" #include "pyfsapfs_libbfio.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #include "pyfsapfs_unused.h" #include "pyfsapfs_volume.h" #include "pyfsapfs_volumes.h" #if !defined( LIBFSAPFS_HAVE_BFIO ) LIBFSAPFS_EXTERN \ int libfsapfs_container_open_file_io_handle( libfsapfs_container_t *container, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ PyMethodDef pyfsapfs_container_object_methods[] = { { "signal_abort", (PyCFunction) pyfsapfs_container_signal_abort, METH_NOARGS, "signal_abort() -> None\n" "\n" "Signals the container to abort the current activity." }, { "open", (PyCFunction) pyfsapfs_container_open, METH_VARARGS | METH_KEYWORDS, "open(filename, mode='r') -> None\n" "\n" "Opens a container." }, { "open_file_object", (PyCFunction) pyfsapfs_container_open_file_object, METH_VARARGS | METH_KEYWORDS, "open_file_object(file_object, mode='r') -> None\n" "\n" "Opens a container using a file-like object." }, { "close", (PyCFunction) pyfsapfs_container_close, METH_NOARGS, "close() -> None\n" "\n" "Closes a container." }, { "get_size", (PyCFunction) pyfsapfs_container_get_size, METH_NOARGS, "get_size() -> Integer\n" "\n" "Retrieves the size." }, { "get_identifier", (PyCFunction) pyfsapfs_container_get_identifier, METH_NOARGS, "get_identifier() -> Unicode string\n" "\n" "Retrieves the identifier." }, { "get_number_of_volumes", (PyCFunction) pyfsapfs_container_get_number_of_volumes, METH_NOARGS, "get_number_of_volumes() -> Integer\n" "\n" "Retrieves the number of volumes." }, { "get_volume", (PyCFunction) pyfsapfs_container_get_volume, METH_VARARGS | METH_KEYWORDS, "get_volume(volume_index) -> Object\n" "\n" "Retrieves the of volume specified by the index." }, /* Sentinel */ { NULL, NULL, 0, NULL } }; PyGetSetDef pyfsapfs_container_object_get_set_definitions[] = { { "size", (getter) pyfsapfs_container_get_size, (setter) 0, "The size.", NULL }, { "identifier", (getter) pyfsapfs_container_get_identifier, (setter) 0, "The identifier.", NULL }, { "number_of_volumes", (getter) pyfsapfs_container_get_number_of_volumes, (setter) 0, "The number of volumes.", NULL }, { "volumes", (getter) pyfsapfs_container_get_volumes, (setter) 0, "The of volumes.", NULL }, /* Sentinel */ { NULL, NULL, NULL, NULL, NULL } }; PyTypeObject pyfsapfs_container_type_object = { PyVarObject_HEAD_INIT( NULL, 0 ) /* tp_name */ "pyfsapfs.container", /* tp_basicsize */ sizeof( pyfsapfs_container_t ), /* tp_itemsize */ 0, /* tp_dealloc */ (destructor) pyfsapfs_container_free, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ 0, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ Py_TPFLAGS_DEFAULT, /* tp_doc */ "pyfsapfs container object (wraps libfsapfs_container_t)", /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ pyfsapfs_container_object_methods, /* tp_members */ 0, /* tp_getset */ pyfsapfs_container_object_get_set_definitions, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ (initproc) pyfsapfs_container_init, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ NULL, /* tp_mro */ NULL, /* tp_cache */ NULL, /* tp_subclasses */ NULL, /* tp_weaklist */ NULL, /* tp_del */ 0 }; /* Intializes a container object * Returns 0 if successful or -1 on error */ int pyfsapfs_container_init( pyfsapfs_container_t *pyfsapfs_container ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_init"; if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( -1 ); } /* Make sure libfsapfs container is set to NULL */ pyfsapfs_container->container = NULL; pyfsapfs_container->file_io_handle = NULL; if( libfsapfs_container_initialize( &( pyfsapfs_container->container ), &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to initialize container.", function ); libcerror_error_free( &error ); return( -1 ); } return( 0 ); } /* Frees a container object */ void pyfsapfs_container_free( pyfsapfs_container_t *pyfsapfs_container ) { struct _typeobject *ob_type = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_free"; int result = 0; if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return; } ob_type = Py_TYPE( pyfsapfs_container ); if( ob_type == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing ob_type.", function ); return; } if( ob_type->tp_free == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid ob_type - missing tp_free.", function ); return; } if( pyfsapfs_container->container != NULL ) { Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_free( &( pyfsapfs_container->container ), &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to free libfsapfs container.", function ); libcerror_error_free( &error ); } } ob_type->tp_free( (PyObject*) pyfsapfs_container ); } /* Signals the container to abort the current activity * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_signal_abort( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_signal_abort"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_signal_abort( pyfsapfs_container->container, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to signal abort.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } /* Opens a container * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_open( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments, PyObject *keywords ) { PyObject *string_object = NULL; libcerror_error_t *error = NULL; const char *filename_narrow = NULL; static char *function = "pyfsapfs_container_open"; static char *keyword_list[] = { "filename", "mode", NULL }; char *mode = NULL; int result = 0; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) const wchar_t *filename_wide = NULL; #else PyObject *utf8_string_object = NULL; #endif if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } /* Note that PyArg_ParseTupleAndKeywords with "s" will force Unicode strings to be converted to narrow character string. * On Windows the narrow character strings contains an extended ASCII string with a codepage. Hence we get a conversion * exception. This will also fail if the default encoding is not set correctly. We cannot use "u" here either since that * does not allow us to pass non Unicode string objects and Python (at least 2.7) does not seems to automatically upcast them. */ if( PyArg_ParseTupleAndKeywords( arguments, keywords, "O|s", keyword_list, &string_object, &mode ) == 0 ) { return( NULL ); } if( ( mode != NULL ) && ( mode[ 0 ] != 'r' ) ) { PyErr_Format( PyExc_ValueError, "%s: unsupported mode: %s.", function, mode ); return( NULL ); } PyErr_Clear(); result = PyObject_IsInstance( string_object, (PyObject *) &PyUnicode_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if string object is of type Unicode.", function ); return( NULL ); } else if( result != 0 ) { PyErr_Clear(); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) filename_wide = (wchar_t *) PyUnicode_AsUnicode( string_object ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_open_wide( pyfsapfs_container->container, filename_wide, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS #else utf8_string_object = PyUnicode_AsUTF8String( string_object ); if( utf8_string_object == NULL ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to convert Unicode string to UTF-8.", function ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 filename_narrow = PyBytes_AsString( utf8_string_object ); #else filename_narrow = PyString_AsString( utf8_string_object ); #endif Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_open( pyfsapfs_container->container, filename_narrow, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS Py_DecRef( utf8_string_object ); #endif if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to open container.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } PyErr_Clear(); #if PY_MAJOR_VERSION >= 3 result = PyObject_IsInstance( string_object, (PyObject *) &PyBytes_Type ); #else result = PyObject_IsInstance( string_object, (PyObject *) &PyString_Type ); #endif if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if string object is of type string.", function ); return( NULL ); } else if( result != 0 ) { PyErr_Clear(); #if PY_MAJOR_VERSION >= 3 filename_narrow = PyBytes_AsString( string_object ); #else filename_narrow = PyString_AsString( string_object ); #endif Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_open( pyfsapfs_container->container, filename_narrow, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to open container.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } PyErr_Format( PyExc_TypeError, "%s: unsupported string object type.", function ); return( NULL ); } /* Opens a container using a file-like object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_open_file_object( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments, PyObject *keywords ) { PyObject *file_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_open_file_object"; static char *keyword_list[] = { "file_object", "mode", NULL }; char *mode = NULL; int result = 0; if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "O|s", keyword_list, &file_object, &mode ) == 0 ) { return( NULL ); } if( ( mode != NULL ) && ( mode[ 0 ] != 'r' ) ) { PyErr_Format( PyExc_ValueError, "%s: unsupported mode: %s.", function, mode ); return( NULL ); } if( pyfsapfs_container->file_io_handle != NULL ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: invalid container - file IO handle already set.", function ); goto on_error; } if( pyfsapfs_file_object_initialize( &( pyfsapfs_container->file_io_handle ), file_object, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to initialize file IO handle.", function ); libcerror_error_free( &error ); goto on_error; } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_open_file_io_handle( pyfsapfs_container->container, pyfsapfs_container->file_io_handle, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to open container.", function ); libcerror_error_free( &error ); goto on_error; } Py_IncRef( Py_None ); return( Py_None ); on_error: if( pyfsapfs_container->file_io_handle != NULL ) { libbfio_handle_free( &( pyfsapfs_container->file_io_handle ), NULL ); } return( NULL ); } /* Closes a container * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_close( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_close"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_close( pyfsapfs_container->container, &error ); Py_END_ALLOW_THREADS if( result != 0 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to close container.", function ); libcerror_error_free( &error ); return( NULL ); } if( pyfsapfs_container->file_io_handle != NULL ) { Py_BEGIN_ALLOW_THREADS result = libbfio_handle_free( &( pyfsapfs_container->file_io_handle ), &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to free libbfio file IO handle.", function ); libcerror_error_free( &error ); return( NULL ); } } Py_IncRef( Py_None ); return( Py_None ); } /* Retrieves the size * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_get_size( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_get_size"; size64_t size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_get_size( pyfsapfs_container->container, &size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: failed to retrieve size.", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) size ); return( integer_object ); } /* Retrieves the identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_get_identifier( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { uint8_t uuid_data[ 16 ]; PyObject *string_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_get_identifier"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_get_identifier( pyfsapfs_container->container, uuid_data, 16, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve identifier.", function ); libcerror_error_free( &error ); return( NULL ); } string_object = pyfsapfs_string_new_from_guid( uuid_data, 16 ); if( string_object == NULL ) { PyErr_Format( PyExc_IOError, "%s: unable to convert UUID into Unicode object.", function ); return( NULL ); } return( string_object ); } /* Retrieves the number of volumes * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_get_number_of_volumes( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_get_number_of_volumes"; int number_of_volumes = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_get_number_of_volumes( pyfsapfs_container->container, &number_of_volumes, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve number of volumes.", function ); libcerror_error_free( &error ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 integer_object = PyLong_FromLong( (long) number_of_volumes ); #else integer_object = PyInt_FromLong( (long) number_of_volumes ); #endif return( integer_object ); } /* Retrieves a specific of volume by index * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_get_volume_by_index( PyObject *pyfsapfs_container, int volume_index ) { PyObject *volume_object = NULL; libcerror_error_t *error = NULL; libfsapfs_volume_t *volume = NULL; static char *function = "pyfsapfs_container_get_volume_by_index"; int result = 0; if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_get_volume_by_index( ( (pyfsapfs_container_t *) pyfsapfs_container )->container, volume_index, &volume, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve of volume: %d.", function, volume_index ); libcerror_error_free( &error ); goto on_error; } volume_object = pyfsapfs_volume_new( volume, pyfsapfs_container ); if( volume_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create volume object.", function ); goto on_error; } return( volume_object ); on_error: if( volume != NULL ) { libfsapfs_volume_free( &volume, NULL ); } return( NULL ); } /* Retrieves a specific of volume * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_get_volume( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments, PyObject *keywords ) { PyObject *volume_object = NULL; static char *keyword_list[] = { "volume_index", NULL }; int volume_index = 0; if( PyArg_ParseTupleAndKeywords( arguments, keywords, "i", keyword_list, &volume_index ) == 0 ) { return( NULL ); } volume_object = pyfsapfs_container_get_volume_by_index( (PyObject *) pyfsapfs_container, volume_index ); return( volume_object ); } /* Retrieves a sequence and iterator object for the volumes * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_container_get_volumes( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *sequence_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_container_get_volumes"; int number_of_volumes = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_container == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid container.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_container_get_number_of_volumes( pyfsapfs_container->container, &number_of_volumes, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve number of volumes.", function ); libcerror_error_free( &error ); return( NULL ); } sequence_object = pyfsapfs_volumes_new( (PyObject *) pyfsapfs_container, &pyfsapfs_container_get_volume_by_index, number_of_volumes ); if( sequence_object == NULL ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to create sequence object.", function ); return( NULL ); } return( sequence_object ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_volume.h0000664000175000017500000000745213426640135023265 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_volume_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_VOLUME_H ) #define _PYFSAPFS_VOLUME_H #include #include #include "pyfsapfs_libbfio.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_volume pyfsapfs_volume_t; struct pyfsapfs_volume { /* Python object initialization */ PyObject_HEAD /* The libfsapfs volume */ libfsapfs_volume_t *volume; /* The libbfio file IO handle */ libbfio_handle_t *file_io_handle; /* The parent object */ PyObject *parent_object; }; extern PyMethodDef pyfsapfs_volume_object_methods[]; extern PyTypeObject pyfsapfs_volume_type_object; PyObject *pyfsapfs_volume_new( libfsapfs_volume_t *volume, PyObject *parent_object ); int pyfsapfs_volume_init( pyfsapfs_volume_t *pyfsapfs_volume ); void pyfsapfs_volume_free( pyfsapfs_volume_t *pyfsapfs_volume ); PyObject *pyfsapfs_volume_signal_abort( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_open( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_volume_open_file_object( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_volume_close( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_unlock( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_get_size( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_get_identifier( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_get_name( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_is_locked( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_set_password( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_volume_set_recovery_password( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_volume_get_next_file_entry_identifier( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_get_file_entry_by_identifier( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_volume_get_root_directory( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments ); PyObject *pyfsapfs_volume_get_file_entry_by_path( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_VOLUME_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_libclocale.h0000664000175000017500000000266513426637447024064 0ustar00lordyestalordyesta00000000000000/* * The libclocale header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_LIBCLOCALE_H ) #define _PYFSAPFS_LIBCLOCALE_H #include /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale */ #if defined( HAVE_LOCAL_LIBCLOCALE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCLOCALE_DLL_IMPORT * before including libclocale.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCLOCALE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCLOCALE ) */ #endif /* !defined( _PYFSAPFS_LIBCLOCALE_H ) */ libfsapfs-20190210/pyfsapfs/Makefile.am0000664000175000017500000000303613426641445021725 0ustar00lordyestalordyesta00000000000000if HAVE_PYTHON AM_CFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCLOCALE_CPPFLAGS@ \ @LIBCSPLIT_CPPFLAGS@ \ @LIBUNA_CPPFLAGS@ \ @LIBCFILE_CPPFLAGS@ \ @LIBCPATH_CPPFLAGS@ \ @LIBBFIO_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBFSAPFS_DLL_IMPORT@ pyexec_LTLIBRARIES = pyfsapfs.la pyfsapfs_la_SOURCES = \ pyfsapfs.c pyfsapfs.h \ pyfsapfs_container.c pyfsapfs_container.h \ pyfsapfs_datetime.c pyfsapfs_datetime.h \ pyfsapfs_error.c pyfsapfs_error.h \ pyfsapfs_extended_attribute.c pyfsapfs_extended_attribute.h \ pyfsapfs_extended_attributes.c pyfsapfs_extended_attributes.h \ pyfsapfs_file_entries.c pyfsapfs_file_entries.h \ pyfsapfs_file_entry.c pyfsapfs_file_entry.h \ pyfsapfs_file_object_io_handle.c pyfsapfs_file_object_io_handle.h \ pyfsapfs_guid.c pyfsapfs_guid.h \ pyfsapfs_integer.c pyfsapfs_integer.h \ pyfsapfs_libbfio.h \ pyfsapfs_libcerror.h \ pyfsapfs_libclocale.h \ pyfsapfs_libfguid.h \ pyfsapfs_libfsapfs.h \ pyfsapfs_python.h \ pyfsapfs_unused.h \ pyfsapfs_volume.c pyfsapfs_volume.h \ pyfsapfs_volumes.c pyfsapfs_volumes.h pyfsapfs_la_LIBADD = \ @LIBCERROR_LIBADD@ \ ../libfsapfs/libfsapfs.la \ @LIBCDATA_LIBADD@ \ @LIBCLOCALE_LIBADD@ \ @LIBCSPLIT_LIBADD@ \ @LIBUNA_LIBADD@ \ @LIBCFILE_LIBADD@ \ @LIBCPATH_LIBADD@ \ @LIBBFIO_LIBADD@ \ @LIBFGUID_LIBADD@ pyfsapfs_la_CPPFLAGS = $(PYTHON_CPPFLAGS) pyfsapfs_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile libfsapfs-20190210/pyfsapfs/pyfsapfs_extended_attributes.h0000664000175000017500000000514313426637447026033 0ustar00lordyestalordyesta00000000000000/* * Python object definition of the sequence and iterator object of extended attributes * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_EXTENDED_ATTRIBUTES_H ) #define _PYFSAPFS_EXTENDED_ATTRIBUTES_H #include #include #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_extended_attributes pyfsapfs_extended_attributes_t; struct pyfsapfs_extended_attributes { /* Python object initialization */ PyObject_HEAD /* The parent object */ PyObject *parent_object; /* The get item by index callback function */ PyObject* (*get_item_by_index)( PyObject *parent_object, int index ); /* The current index */ int current_index; /* The number of items */ int number_of_items; }; extern PyTypeObject pyfsapfs_extended_attributes_type_object; PyObject *pyfsapfs_extended_attributes_new( PyObject *parent_object, PyObject* (*get_item_by_index)( PyObject *parent_object, int index ), int number_of_items ); int pyfsapfs_extended_attributes_init( pyfsapfs_extended_attributes_t *sequence_object ); void pyfsapfs_extended_attributes_free( pyfsapfs_extended_attributes_t *sequence_object ); Py_ssize_t pyfsapfs_extended_attributes_len( pyfsapfs_extended_attributes_t *sequence_object ); PyObject *pyfsapfs_extended_attributes_getitem( pyfsapfs_extended_attributes_t *sequence_object, Py_ssize_t item_index ); PyObject *pyfsapfs_extended_attributes_iter( pyfsapfs_extended_attributes_t *sequence_object ); PyObject *pyfsapfs_extended_attributes_iternext( pyfsapfs_extended_attributes_t *sequence_object ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_EXTENDED_ATTRIBUTES_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_extended_attribute.h0000664000175000017500000000615513426637447025654 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_extended_attribute_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_EXTENDED_ATTRIBUTE_H ) #define _PYFSAPFS_EXTENDED_ATTRIBUTE_H #include #include #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_extended_attribute pyfsapfs_extended_attribute_t; struct pyfsapfs_extended_attribute { /* Python object initialization */ PyObject_HEAD /* The libfsapfs extended attribute */ libfsapfs_extended_attribute_t *extended_attribute; /* The parent object */ PyObject *parent_object; }; extern PyMethodDef pyfsapfs_extended_attribute_object_methods[]; extern PyTypeObject pyfsapfs_extended_attribute_type_object; PyObject *pyfsapfs_extended_attribute_new( libfsapfs_extended_attribute_t *extended_attribute, PyObject *parent_object ); int pyfsapfs_extended_attribute_init( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute ); void pyfsapfs_extended_attribute_free( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute ); PyObject *pyfsapfs_extended_attribute_get_identifier( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments ); PyObject *pyfsapfs_extended_attribute_get_name( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments ); PyObject *pyfsapfs_extended_attribute_read_buffer( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_extended_attribute_read_buffer_at_offset( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_extended_attribute_seek_offset( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_extended_attribute_get_offset( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments ); PyObject *pyfsapfs_extended_attribute_get_size( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_EXTENDED_ATTRIBUTE_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_extended_attribute.c0000664000175000017500000006110713426637447025645 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_extended_attribute_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs_error.h" #include "pyfsapfs_extended_attribute.h" #include "pyfsapfs_integer.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #include "pyfsapfs_unused.h" PyMethodDef pyfsapfs_extended_attribute_object_methods[] = { { "get_identifier", (PyCFunction) pyfsapfs_extended_attribute_get_identifier, METH_NOARGS, "get_identifier() -> Integer\n" "\n" "Retrieves the identifier." }, { "get_name", (PyCFunction) pyfsapfs_extended_attribute_get_name, METH_NOARGS, "get_name() -> Unicode string\n" "\n" "Retrieves the name." }, { "read_buffer", (PyCFunction) pyfsapfs_extended_attribute_read_buffer, METH_VARARGS | METH_KEYWORDS, "read_buffer(size) -> Binary string\n" "\n" "Reads a buffer of data." }, { "read_buffer_at_offset", (PyCFunction) pyfsapfs_extended_attribute_read_buffer_at_offset, METH_VARARGS | METH_KEYWORDS, "read_buffer_at_offset(size, offset) -> Binary string\n" "\n" "Reads a buffer of data at a specific offset." }, { "seek_offset", (PyCFunction) pyfsapfs_extended_attribute_seek_offset, METH_VARARGS | METH_KEYWORDS, "seek_offset(offset, whence) -> None\n" "\n" "Seeks an offset within the data." }, { "get_offset", (PyCFunction) pyfsapfs_extended_attribute_get_offset, METH_NOARGS, "get_offset() -> Integer\n" "\n" "Retrieves the current offset within the data." }, { "read", (PyCFunction) pyfsapfs_extended_attribute_read_buffer, METH_VARARGS | METH_KEYWORDS, "read(size) -> Binary string\n" "\n" "Reads a buffer of data." }, { "seek", (PyCFunction) pyfsapfs_extended_attribute_seek_offset, METH_VARARGS | METH_KEYWORDS, "seek(offset, whence) -> None\n" "\n" "Seeks an offset within the data." }, { "tell", (PyCFunction) pyfsapfs_extended_attribute_get_offset, METH_NOARGS, "tell() -> Integer\n" "\n" "Retrieves the current offset within the data." }, { "get_size", (PyCFunction) pyfsapfs_extended_attribute_get_size, METH_NOARGS, "get_size() -> Integer\n" "\n" "Retrieves the size of the data stream object." }, /* Sentinel */ { NULL, NULL, 0, NULL } }; PyGetSetDef pyfsapfs_extended_attribute_object_get_set_definitions[] = { { "identifier", (getter) pyfsapfs_extended_attribute_get_identifier, (setter) 0, "The identifier.", NULL }, { "name", (getter) pyfsapfs_extended_attribute_get_name, (setter) 0, "The name.", NULL }, { "size", (getter) pyfsapfs_extended_attribute_get_size, (setter) 0, "The size of the data stream object.", NULL }, /* Sentinel */ { NULL, NULL, NULL, NULL, NULL } }; PyTypeObject pyfsapfs_extended_attribute_type_object = { PyVarObject_HEAD_INIT( NULL, 0 ) /* tp_name */ "pyfsapfs.extended_attribute", /* tp_basicsize */ sizeof( pyfsapfs_extended_attribute_t ), /* tp_itemsize */ 0, /* tp_dealloc */ (destructor) pyfsapfs_extended_attribute_free, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ 0, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ Py_TPFLAGS_DEFAULT, /* tp_doc */ "pyfsapfs extended attribute object (wraps libfsapfs_extended_attribute_t)", /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ pyfsapfs_extended_attribute_object_methods, /* tp_members */ 0, /* tp_getset */ pyfsapfs_extended_attribute_object_get_set_definitions, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ (initproc) pyfsapfs_extended_attribute_init, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ NULL, /* tp_mro */ NULL, /* tp_cache */ NULL, /* tp_subclasses */ NULL, /* tp_weaklist */ NULL, /* tp_del */ 0 }; /* Creates a new extended attribute object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_new( libfsapfs_extended_attribute_t *extended_attribute, PyObject *parent_object ) { pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute = NULL; static char *function = "pyfsapfs_extended_attribute_new"; if( extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } /* PyObject_New does not invoke tp_init */ pyfsapfs_extended_attribute = PyObject_New( struct pyfsapfs_extended_attribute, &pyfsapfs_extended_attribute_type_object ); if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to initialize extended attribute.", function ); goto on_error; } pyfsapfs_extended_attribute->extended_attribute = extended_attribute; pyfsapfs_extended_attribute->parent_object = parent_object; if( pyfsapfs_extended_attribute->parent_object != NULL ) { Py_IncRef( pyfsapfs_extended_attribute->parent_object ); } return( (PyObject *) pyfsapfs_extended_attribute ); on_error: if( pyfsapfs_extended_attribute != NULL ) { Py_DecRef( (PyObject *) pyfsapfs_extended_attribute ); } return( NULL ); } /* Intializes an extended attribute object * Returns 0 if successful or -1 on error */ int pyfsapfs_extended_attribute_init( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute ) { static char *function = "pyfsapfs_extended_attribute_init"; if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( -1 ); } /* Make sure libfsapfs extended attribute is set to NULL */ pyfsapfs_extended_attribute->extended_attribute = NULL; PyErr_Format( PyExc_NotImplementedError, "%s: initialize of extended attribute not supported.", function ); return( -1 ); } /* Frees an extended attribute object */ void pyfsapfs_extended_attribute_free( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute ) { struct _typeobject *ob_type = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_extended_attribute_free"; int result = 0; if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return; } ob_type = Py_TYPE( pyfsapfs_extended_attribute ); if( ob_type == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing ob_type.", function ); return; } if( ob_type->tp_free == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid ob_type - missing tp_free.", function ); return; } if( pyfsapfs_extended_attribute->extended_attribute != NULL ) { Py_BEGIN_ALLOW_THREADS result = libfsapfs_extended_attribute_free( &( pyfsapfs_extended_attribute->extended_attribute ), &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to free libfsapfs extended attribute.", function ); libcerror_error_free( &error ); } } if( pyfsapfs_extended_attribute->parent_object != NULL ) { Py_DecRef( pyfsapfs_extended_attribute->parent_object ); } ob_type->tp_free( (PyObject*) pyfsapfs_extended_attribute ); } /* Retrieves the * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_get_identifier( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_extended_attribute_get_identifier"; uint64_t value_64bit = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_extended_attribute_get_identifier( pyfsapfs_extended_attribute->extended_attribute, &value_64bit, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) value_64bit ); return( integer_object ); } /* Retrieves the * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_get_name( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *string_object = NULL; libcerror_error_t *error = NULL; const char *errors = NULL; static char *function = "pyfsapfs_extended_attribute_get_name"; char *utf8_string = NULL; size_t utf8_string_size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_extended_attribute_get_utf8_name_size( pyfsapfs_extended_attribute->extended_attribute, &utf8_string_size, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to determine size of as UTF-8 string.", function ); libcerror_error_free( &error ); goto on_error; } else if( ( result == 0 ) || ( utf8_string_size == 0 ) ) { Py_IncRef( Py_None ); return( Py_None ); } utf8_string = (char *) PyMem_Malloc( sizeof( char ) * utf8_string_size ); if( utf8_string == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create UTF-8 string.", function ); goto on_error; } Py_BEGIN_ALLOW_THREADS result = libfsapfs_extended_attribute_get_utf8_name( pyfsapfs_extended_attribute->extended_attribute, (uint8_t *) utf8_string, utf8_string_size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve as UTF-8 string.", function ); libcerror_error_free( &error ); goto on_error; } /* Pass the string length to PyUnicode_DecodeUTF8 otherwise it makes * the end of string character is part of the string. */ string_object = PyUnicode_DecodeUTF8( utf8_string, (Py_ssize_t) utf8_string_size - 1, errors ); if( string_object == NULL ) { PyErr_Format( PyExc_IOError, "%s: unable to convert UTF-8 string into Unicode object.", function ); goto on_error; } PyMem_Free( utf8_string ); return( string_object ); on_error: if( utf8_string != NULL ) { PyMem_Free( utf8_string ); } return( NULL ); } /* Reads data at the current offset into a buffer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_read_buffer( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments, PyObject *keywords ) { PyObject *integer_object = NULL; PyObject *string_object = NULL; libcerror_error_t *error = NULL; char *buffer = NULL; static char *function = "pyfsapfs_extended_attribute_read_buffer"; static char *keyword_list[] = { "size", NULL }; ssize_t read_count = 0; int64_t read_size = 0; int result = 0; if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "|O", keyword_list, &integer_object ) == 0 ) { return( NULL ); } if( integer_object == NULL ) { result = 0; } else { result = PyObject_IsInstance( integer_object, (PyObject *) &PyLong_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type long.", function ); return( NULL ); } #if PY_MAJOR_VERSION < 3 else if( result == 0 ) { PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyInt_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type int.", function ); return( NULL ); } } #endif } if( result != 0 ) { if( pyfsapfs_integer_signed_copy_to_64bit( integer_object, &read_size, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to convert integer object into read size.", function ); libcerror_error_free( &error ); return( NULL ); } } else if( ( integer_object == NULL ) || ( integer_object == Py_None ) ) { Py_BEGIN_ALLOW_THREADS result = libfsapfs_extended_attribute_get_size( pyfsapfs_extended_attribute->extended_attribute, (size64_t *) &read_size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve size.", function ); libcerror_error_free( &error ); return( NULL ); } } else { PyErr_Format( PyExc_TypeError, "%s: unsupported integer object type.", function ); return( NULL ); } if( read_size == 0 ) { #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromString( "" ); #else string_object = PyString_FromString( "" ); #endif return( string_object ); } if( read_size < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid read size value less than zero.", function ); return( NULL ); } /* Make sure the data fits into a memory buffer */ if( ( read_size > (int64_t) INT_MAX ) || ( read_size > (int64_t) SSIZE_MAX ) ) { PyErr_Format( PyExc_ValueError, "%s: invalid argument read size value exceeds maximum.", function ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyBytes_AsString( string_object ); #else /* Note that a size of 0 is not supported */ string_object = PyString_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyString_AsString( string_object ); #endif Py_BEGIN_ALLOW_THREADS read_count = libfsapfs_extended_attribute_read_buffer( pyfsapfs_extended_attribute->extended_attribute, (uint8_t *) buffer, (size_t) read_size, &error ); Py_END_ALLOW_THREADS if( read_count == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to read data.", function ); libcerror_error_free( &error ); Py_DecRef( (PyObject *) string_object ); return( NULL ); } /* Need to resize the string here in case read_size was not fully read. */ #if PY_MAJOR_VERSION >= 3 if( _PyBytes_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #else if( _PyString_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #endif { Py_DecRef( (PyObject *) string_object ); return( NULL ); } return( string_object ); } /* Reads data at a specific offset into a buffer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_read_buffer_at_offset( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments, PyObject *keywords ) { PyObject *integer_object = NULL; PyObject *string_object = NULL; libcerror_error_t *error = NULL; char *buffer = NULL; static char *function = "pyfsapfs_extended_attribute_read_buffer_at_offset"; static char *keyword_list[] = { "size", "offset", NULL }; ssize_t read_count = 0; off64_t read_offset = 0; int64_t read_size = 0; int result = 0; if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "OL", keyword_list, &integer_object, &read_offset ) == 0 ) { return( NULL ); } result = PyObject_IsInstance( integer_object, (PyObject *) &PyLong_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type long.", function ); return( NULL ); } #if PY_MAJOR_VERSION < 3 else if( result == 0 ) { PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyInt_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type int.", function ); return( NULL ); } } #endif if( result != 0 ) { if( pyfsapfs_integer_signed_copy_to_64bit( integer_object, &read_size, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to convert integer object into read size.", function ); libcerror_error_free( &error ); return( NULL ); } } else { PyErr_Format( PyExc_TypeError, "%s: unsupported integer object type.", function ); return( NULL ); } if( read_size == 0 ) { #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromString( "" ); #else string_object = PyString_FromString( "" ); #endif return( string_object ); } if( read_size < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid read size value less than zero.", function ); return( NULL ); } /* Make sure the data fits into a memory buffer */ if( ( read_size > (int64_t) INT_MAX ) || ( read_size > (int64_t) SSIZE_MAX ) ) { PyErr_Format( PyExc_ValueError, "%s: invalid argument read size value exceeds maximum.", function ); return( NULL ); } if( read_offset < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid read offset value less than zero.", function ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyBytes_AsString( string_object ); #else /* Note that a size of 0 is not supported */ string_object = PyString_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyString_AsString( string_object ); #endif Py_BEGIN_ALLOW_THREADS read_count = libfsapfs_extended_attribute_read_buffer_at_offset( pyfsapfs_extended_attribute->extended_attribute, (uint8_t *) buffer, (size_t) read_size, (off64_t) read_offset, &error ); Py_END_ALLOW_THREADS if( read_count == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to read data.", function ); libcerror_error_free( &error ); Py_DecRef( (PyObject *) string_object ); return( NULL ); } /* Need to resize the string here in case read_size was not fully read. */ #if PY_MAJOR_VERSION >= 3 if( _PyBytes_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #else if( _PyString_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #endif { Py_DecRef( (PyObject *) string_object ); return( NULL ); } return( string_object ); } /* Seeks a certain offset * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_seek_offset( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments, PyObject *keywords ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_extended_attribute_seek_offset"; static char *keyword_list[] = { "offset", "whence", NULL }; off64_t offset = 0; int whence = 0; if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "L|i", keyword_list, &offset, &whence ) == 0 ) { return( NULL ); } Py_BEGIN_ALLOW_THREADS offset = libfsapfs_extended_attribute_seek_offset( pyfsapfs_extended_attribute->extended_attribute, offset, whence, &error ); Py_END_ALLOW_THREADS if( offset == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to seek offset.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } /* Retrieves the current offset * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_get_offset( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_extended_attribute_get_offset"; off64_t offset = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_extended_attribute_get_offset( pyfsapfs_extended_attribute->extended_attribute, &offset, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve current offset.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } integer_object = pyfsapfs_integer_signed_new_from_64bit( (int64_t) offset ); return( integer_object ); } /* Retrieves the size of the data stream object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attribute_get_size( pyfsapfs_extended_attribute_t *pyfsapfs_extended_attribute, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_extended_attribute_get_size"; size64_t size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_extended_attribute == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid extended attribute.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_extended_attribute_get_size( pyfsapfs_extended_attribute->extended_attribute, &size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: failed to retrieve size of the data stream object.", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) size ); return( integer_object ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_volumes.c0000664000175000017500000002216013426640135023434 0ustar00lordyestalordyesta00000000000000/* * Python object definition of the sequence and iterator object of volumes * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #include "pyfsapfs_volume.h" #include "pyfsapfs_volumes.h" PySequenceMethods pyfsapfs_volumes_sequence_methods = { /* sq_length */ (lenfunc) pyfsapfs_volumes_len, /* sq_concat */ 0, /* sq_repeat */ 0, /* sq_item */ (ssizeargfunc) pyfsapfs_volumes_getitem, /* sq_slice */ 0, /* sq_ass_item */ 0, /* sq_ass_slice */ 0, /* sq_contains */ 0, /* sq_inplace_concat */ 0, /* sq_inplace_repeat */ 0 }; PyTypeObject pyfsapfs_volumes_type_object = { PyVarObject_HEAD_INIT( NULL, 0 ) /* tp_name */ "pyfsapfs.volumes", /* tp_basicsize */ sizeof( pyfsapfs_volumes_t ), /* tp_itemsize */ 0, /* tp_dealloc */ (destructor) pyfsapfs_volumes_free, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ 0, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ &pyfsapfs_volumes_sequence_methods, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_ITER, /* tp_doc */ "pyfsapfs sequence and iterator object of volumes", /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ (getiterfunc) pyfsapfs_volumes_iter, /* tp_iternext */ (iternextfunc) pyfsapfs_volumes_iternext, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ (initproc) pyfsapfs_volumes_init, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ NULL, /* tp_mro */ NULL, /* tp_cache */ NULL, /* tp_subclasses */ NULL, /* tp_weaklist */ NULL, /* tp_del */ 0 }; /* Creates a new volumes sequence and iterator object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volumes_new( PyObject *parent_object, PyObject* (*get_item_by_index)( PyObject *parent_object, int index ), int number_of_items ) { pyfsapfs_volumes_t *sequence_object = NULL; static char *function = "pyfsapfs_volumes_new"; if( parent_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid parent object.", function ); return( NULL ); } if( get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid get item by index function.", function ); return( NULL ); } /* Make sure the volumes values are initialized */ sequence_object = PyObject_New( struct pyfsapfs_volumes, &pyfsapfs_volumes_type_object ); if( sequence_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create sequence object.", function ); goto on_error; } if( pyfsapfs_volumes_init( sequence_object ) != 0 ) { PyErr_Format( PyExc_MemoryError, "%s: unable to initialize sequence object.", function ); goto on_error; } sequence_object->parent_object = parent_object; sequence_object->get_item_by_index = get_item_by_index; sequence_object->number_of_items = number_of_items; Py_IncRef( (PyObject *) sequence_object->parent_object ); return( (PyObject *) sequence_object ); on_error: if( sequence_object != NULL ) { Py_DecRef( (PyObject *) sequence_object ); } return( NULL ); } /* Intializes a volumes sequence and iterator object * Returns 0 if successful or -1 on error */ int pyfsapfs_volumes_init( pyfsapfs_volumes_t *sequence_object ) { static char *function = "pyfsapfs_volumes_init"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( -1 ); } /* Make sure the volumes values are initialized */ sequence_object->parent_object = NULL; sequence_object->get_item_by_index = NULL; sequence_object->current_index = 0; sequence_object->number_of_items = 0; PyErr_Format( PyExc_NotImplementedError, "%s: initialize of volumes not supported.", function ); return( 0 ); } /* Frees a volumes sequence object */ void pyfsapfs_volumes_free( pyfsapfs_volumes_t *sequence_object ) { struct _typeobject *ob_type = NULL; static char *function = "pyfsapfs_volumes_free"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return; } ob_type = Py_TYPE( sequence_object ); if( ob_type == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing ob_type.", function ); return; } if( ob_type->tp_free == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid ob_type - missing tp_free.", function ); return; } if( sequence_object->parent_object != NULL ) { Py_DecRef( (PyObject *) sequence_object->parent_object ); } ob_type->tp_free( (PyObject*) sequence_object ); } /* The volumes len() function */ Py_ssize_t pyfsapfs_volumes_len( pyfsapfs_volumes_t *sequence_object ) { static char *function = "pyfsapfs_volumes_len"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( -1 ); } return( (Py_ssize_t) sequence_object->number_of_items ); } /* The volumes getitem() function */ PyObject *pyfsapfs_volumes_getitem( pyfsapfs_volumes_t *sequence_object, Py_ssize_t item_index ) { PyObject *volume_object = NULL; static char *function = "pyfsapfs_volumes_getitem"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } if( sequence_object->get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - missing get item by index function.", function ); return( NULL ); } if( sequence_object->number_of_items < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid number of items.", function ); return( NULL ); } if( ( item_index < 0 ) || ( item_index >= (Py_ssize_t) sequence_object->number_of_items ) ) { PyErr_Format( PyExc_ValueError, "%s: invalid invalid item index value out of bounds.", function ); return( NULL ); } volume_object = sequence_object->get_item_by_index( sequence_object->parent_object, (int) item_index ); return( volume_object ); } /* The volumes iter() function */ PyObject *pyfsapfs_volumes_iter( pyfsapfs_volumes_t *sequence_object ) { static char *function = "pyfsapfs_volumes_iter"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } Py_IncRef( (PyObject *) sequence_object ); return( (PyObject *) sequence_object ); } /* The volumes iternext() function */ PyObject *pyfsapfs_volumes_iternext( pyfsapfs_volumes_t *sequence_object ) { PyObject *volume_object = NULL; static char *function = "pyfsapfs_volumes_iternext"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } if( sequence_object->get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - missing get item by index function.", function ); return( NULL ); } if( sequence_object->current_index < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid current index.", function ); return( NULL ); } if( sequence_object->number_of_items < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid number of items.", function ); return( NULL ); } if( sequence_object->current_index >= sequence_object->number_of_items ) { PyErr_SetNone( PyExc_StopIteration ); return( NULL ); } volume_object = sequence_object->get_item_by_index( sequence_object->parent_object, sequence_object->current_index ); if( volume_object != NULL ) { sequence_object->current_index++; } return( volume_object ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_file_entries.h0000664000175000017500000000472013426637447024435 0ustar00lordyestalordyesta00000000000000/* * Python object definition of the sequence and iterator object of file entries * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_FILE_ENTRIES_H ) #define _PYFSAPFS_FILE_ENTRIES_H #include #include #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_file_entries pyfsapfs_file_entries_t; struct pyfsapfs_file_entries { /* Python object initialization */ PyObject_HEAD /* The parent object */ PyObject *parent_object; /* The get item by index callback function */ PyObject* (*get_item_by_index)( PyObject *parent_object, int index ); /* The current index */ int current_index; /* The number of items */ int number_of_items; }; extern PyTypeObject pyfsapfs_file_entries_type_object; PyObject *pyfsapfs_file_entries_new( PyObject *parent_object, PyObject* (*get_item_by_index)( PyObject *parent_object, int index ), int number_of_items ); int pyfsapfs_file_entries_init( pyfsapfs_file_entries_t *sequence_object ); void pyfsapfs_file_entries_free( pyfsapfs_file_entries_t *sequence_object ); Py_ssize_t pyfsapfs_file_entries_len( pyfsapfs_file_entries_t *sequence_object ); PyObject *pyfsapfs_file_entries_getitem( pyfsapfs_file_entries_t *sequence_object, Py_ssize_t item_index ); PyObject *pyfsapfs_file_entries_iter( pyfsapfs_file_entries_t *sequence_object ); PyObject *pyfsapfs_file_entries_iternext( pyfsapfs_file_entries_t *sequence_object ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_FILE_ENTRIES_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_file_object_io_handle.h0000664000175000017500000001007613426637447026235 0ustar00lordyestalordyesta00000000000000/* * Python file object IO handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_FILE_OBJECT_IO_HANDLE_H ) #define _PYFSAPFS_FILE_OBJECT_IO_HANDLE_H #include #include #include "pyfsapfs_libbfio.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_file_object_io_handle pyfsapfs_file_object_io_handle_t; struct pyfsapfs_file_object_io_handle { /* The python file (like) object */ PyObject *file_object; /* The access flags */ int access_flags; }; int pyfsapfs_file_object_io_handle_initialize( pyfsapfs_file_object_io_handle_t **file_object_io_handle, PyObject *file_object, libcerror_error_t **error ); int pyfsapfs_file_object_initialize( libbfio_handle_t **handle, PyObject *file_object, libcerror_error_t **error ); int pyfsapfs_file_object_io_handle_free( pyfsapfs_file_object_io_handle_t **file_object_io_handle, libcerror_error_t **error ); int pyfsapfs_file_object_io_handle_clone( pyfsapfs_file_object_io_handle_t **destination_file_object_io_handle, pyfsapfs_file_object_io_handle_t *source_file_object_io_handle, libcerror_error_t **error ); int pyfsapfs_file_object_io_handle_open( pyfsapfs_file_object_io_handle_t *file_object_io_handle, int access_flags, libcerror_error_t **error ); int pyfsapfs_file_object_io_handle_close( pyfsapfs_file_object_io_handle_t *file_object_io_handle, libcerror_error_t **error ); ssize_t pyfsapfs_file_object_read_buffer( PyObject *file_object, uint8_t *buffer, size_t size, libcerror_error_t **error ); ssize_t pyfsapfs_file_object_io_handle_read( pyfsapfs_file_object_io_handle_t *file_object_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ); ssize_t pyfsapfs_file_object_write_buffer( PyObject *file_object, const uint8_t *buffer, size_t size, libcerror_error_t **error ); ssize_t pyfsapfs_file_object_io_handle_write( pyfsapfs_file_object_io_handle_t *file_object_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ); int pyfsapfs_file_object_seek_offset( PyObject *file_object, off64_t offset, int whence, libcerror_error_t **error ); int pyfsapfs_file_object_get_offset( PyObject *file_object, off64_t *offset, libcerror_error_t **error ); off64_t pyfsapfs_file_object_io_handle_seek_offset( pyfsapfs_file_object_io_handle_t *file_object_io_handle, off64_t offset, int whence, libcerror_error_t **error ); int pyfsapfs_file_object_io_handle_exists( pyfsapfs_file_object_io_handle_t *file_object_io_handle, libcerror_error_t **error ); int pyfsapfs_file_object_io_handle_is_open( pyfsapfs_file_object_io_handle_t *file_object_io_handle, libcerror_error_t **error ); int pyfsapfs_file_object_get_size( PyObject *file_object, size64_t *size, libcerror_error_t **error ); int pyfsapfs_file_object_io_handle_get_size( pyfsapfs_file_object_io_handle_t *file_object_io_handle, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_FILE_OBJECT_IO_HANDLE_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_file_entries.c0000664000175000017500000002241113426637447024425 0ustar00lordyestalordyesta00000000000000/* * Python object definition of the sequence and iterator object of file entries * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs_file_entries.h" #include "pyfsapfs_file_entry.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" PySequenceMethods pyfsapfs_file_entries_sequence_methods = { /* sq_length */ (lenfunc) pyfsapfs_file_entries_len, /* sq_concat */ 0, /* sq_repeat */ 0, /* sq_item */ (ssizeargfunc) pyfsapfs_file_entries_getitem, /* sq_slice */ 0, /* sq_ass_item */ 0, /* sq_ass_slice */ 0, /* sq_contains */ 0, /* sq_inplace_concat */ 0, /* sq_inplace_repeat */ 0 }; PyTypeObject pyfsapfs_file_entries_type_object = { PyVarObject_HEAD_INIT( NULL, 0 ) /* tp_name */ "pyfsapfs.file_entries", /* tp_basicsize */ sizeof( pyfsapfs_file_entries_t ), /* tp_itemsize */ 0, /* tp_dealloc */ (destructor) pyfsapfs_file_entries_free, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ 0, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ &pyfsapfs_file_entries_sequence_methods, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_ITER, /* tp_doc */ "pyfsapfs sequence and iterator object of file entries", /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ (getiterfunc) pyfsapfs_file_entries_iter, /* tp_iternext */ (iternextfunc) pyfsapfs_file_entries_iternext, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ (initproc) pyfsapfs_file_entries_init, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ NULL, /* tp_mro */ NULL, /* tp_cache */ NULL, /* tp_subclasses */ NULL, /* tp_weaklist */ NULL, /* tp_del */ 0 }; /* Creates a new file entries sequence and iterator object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entries_new( PyObject *parent_object, PyObject* (*get_item_by_index)( PyObject *parent_object, int index ), int number_of_items ) { pyfsapfs_file_entries_t *sequence_object = NULL; static char *function = "pyfsapfs_file_entries_new"; if( parent_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid parent object.", function ); return( NULL ); } if( get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid get item by index function.", function ); return( NULL ); } /* Make sure the file entries values are initialized */ sequence_object = PyObject_New( struct pyfsapfs_file_entries, &pyfsapfs_file_entries_type_object ); if( sequence_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create sequence object.", function ); goto on_error; } sequence_object->parent_object = parent_object; sequence_object->get_item_by_index = get_item_by_index; sequence_object->current_index = 0; sequence_object->number_of_items = number_of_items; Py_IncRef( (PyObject *) sequence_object->parent_object ); return( (PyObject *) sequence_object ); on_error: if( sequence_object != NULL ) { Py_DecRef( (PyObject *) sequence_object ); } return( NULL ); } /* Intializes a file entries sequence and iterator object * Returns 0 if successful or -1 on error */ int pyfsapfs_file_entries_init( pyfsapfs_file_entries_t *sequence_object ) { static char *function = "pyfsapfs_file_entries_init"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( -1 ); } /* Make sure the file entries values are initialized */ sequence_object->parent_object = NULL; sequence_object->get_item_by_index = NULL; sequence_object->current_index = 0; sequence_object->number_of_items = 0; PyErr_Format( PyExc_NotImplementedError, "%s: initialize of file entries not supported.", function ); return( 0 ); } /* Frees a file entries sequence object */ void pyfsapfs_file_entries_free( pyfsapfs_file_entries_t *sequence_object ) { struct _typeobject *ob_type = NULL; static char *function = "pyfsapfs_file_entries_free"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return; } ob_type = Py_TYPE( sequence_object ); if( ob_type == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing ob_type.", function ); return; } if( ob_type->tp_free == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid ob_type - missing tp_free.", function ); return; } if( sequence_object->parent_object != NULL ) { Py_DecRef( (PyObject *) sequence_object->parent_object ); } ob_type->tp_free( (PyObject*) sequence_object ); } /* The file entries len() function */ Py_ssize_t pyfsapfs_file_entries_len( pyfsapfs_file_entries_t *sequence_object ) { static char *function = "pyfsapfs_file_entries_len"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( -1 ); } return( (Py_ssize_t) sequence_object->number_of_items ); } /* The file entries getitem() function */ PyObject *pyfsapfs_file_entries_getitem( pyfsapfs_file_entries_t *sequence_object, Py_ssize_t item_index ) { PyObject *file_entry_object = NULL; static char *function = "pyfsapfs_file_entries_getitem"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } if( sequence_object->get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - missing get item by index function.", function ); return( NULL ); } if( sequence_object->number_of_items < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid number of items.", function ); return( NULL ); } if( ( item_index < 0 ) || ( item_index >= (Py_ssize_t) sequence_object->number_of_items ) ) { PyErr_Format( PyExc_ValueError, "%s: invalid invalid item index value out of bounds.", function ); return( NULL ); } file_entry_object = sequence_object->get_item_by_index( sequence_object->parent_object, (int) item_index ); return( file_entry_object ); } /* The file entries iter() function */ PyObject *pyfsapfs_file_entries_iter( pyfsapfs_file_entries_t *sequence_object ) { static char *function = "pyfsapfs_file_entries_iter"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } Py_IncRef( (PyObject *) sequence_object ); return( (PyObject *) sequence_object ); } /* The file entries iternext() function */ PyObject *pyfsapfs_file_entries_iternext( pyfsapfs_file_entries_t *sequence_object ) { PyObject *file_entry_object = NULL; static char *function = "pyfsapfs_file_entries_iternext"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } if( sequence_object->get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - missing get item by index function.", function ); return( NULL ); } if( sequence_object->current_index < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid current index.", function ); return( NULL ); } if( sequence_object->number_of_items < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid number of items.", function ); return( NULL ); } if( sequence_object->current_index >= sequence_object->number_of_items ) { PyErr_SetNone( PyExc_StopIteration ); return( NULL ); } file_entry_object = sequence_object->get_item_by_index( sequence_object->parent_object, sequence_object->current_index ); if( file_entry_object != NULL ) { sequence_object->current_index++; } return( file_entry_object ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_volumes.h0000664000175000017500000000454713426637447023466 0ustar00lordyestalordyesta00000000000000/* * Python object definition of the sequence and iterator object of volumes * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_VOLUMES_H ) #define _PYFSAPFS_VOLUMES_H #include #include #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_volumes pyfsapfs_volumes_t; struct pyfsapfs_volumes { /* Python object initialization */ PyObject_HEAD /* The parent object */ PyObject *parent_object; /* The get item by index callback function */ PyObject* (*get_item_by_index)( PyObject *parent_object, int index ); /* The current index */ int current_index; /* The number of items */ int number_of_items; }; extern PyTypeObject pyfsapfs_volumes_type_object; PyObject *pyfsapfs_volumes_new( PyObject *parent_object, PyObject* (*get_item_by_index)( PyObject *parent_object, int index ), int number_of_items ); int pyfsapfs_volumes_init( pyfsapfs_volumes_t *sequence_object ); void pyfsapfs_volumes_free( pyfsapfs_volumes_t *sequence_object ); Py_ssize_t pyfsapfs_volumes_len( pyfsapfs_volumes_t *sequence_object ); PyObject *pyfsapfs_volumes_getitem( pyfsapfs_volumes_t *sequence_object, Py_ssize_t item_index ); PyObject *pyfsapfs_volumes_iter( pyfsapfs_volumes_t *sequence_object ); PyObject *pyfsapfs_volumes_iternext( pyfsapfs_volumes_t *sequence_object ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_VOLUMES_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_file_entry.c0000664000175000017500000021034413430075020024073 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_file_entry_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs_datetime.h" #include "pyfsapfs_error.h" #include "pyfsapfs_extended_attribute.h" #include "pyfsapfs_extended_attributes.h" #include "pyfsapfs_file_entries.h" #include "pyfsapfs_file_entry.h" #include "pyfsapfs_integer.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #include "pyfsapfs_unused.h" PyMethodDef pyfsapfs_file_entry_object_methods[] = { { "get_identifier", (PyCFunction) pyfsapfs_file_entry_get_identifier, METH_NOARGS, "get_identifier() -> Integer\n" "\n" "Retrieves the identifier." }, { "get_parent_identifier", (PyCFunction) pyfsapfs_file_entry_get_parent_identifier, METH_NOARGS, "get_parent_identifier() -> Integer\n" "\n" "Retrieves the parent identifier." }, { "get_creation_time", (PyCFunction) pyfsapfs_file_entry_get_creation_time, METH_NOARGS, "get_creation_time() -> Datetime or None\n" "\n" "Returns the creation date and time." }, { "get_creation_time_as_integer", (PyCFunction) pyfsapfs_file_entry_get_creation_time_as_integer, METH_NOARGS, "get_creation_time_as_integer() -> Integer or None\n" "\n" "Returns the creation date and time as a 64-bit integer containing an APFS timestamp value." }, { "get_modification_time", (PyCFunction) pyfsapfs_file_entry_get_modification_time, METH_NOARGS, "get_modification_time() -> Datetime or None\n" "\n" "Returns the modification date and time." }, { "get_modification_time_as_integer", (PyCFunction) pyfsapfs_file_entry_get_modification_time_as_integer, METH_NOARGS, "get_modification_time_as_integer() -> Integer or None\n" "\n" "Returns the modification date and time as a 64-bit integer containing an APFS timestamp value." }, { "get_access_time", (PyCFunction) pyfsapfs_file_entry_get_access_time, METH_NOARGS, "get_access_time() -> Datetime or None\n" "\n" "Returns the access date and time." }, { "get_access_time_as_integer", (PyCFunction) pyfsapfs_file_entry_get_access_time_as_integer, METH_NOARGS, "get_access_time_as_integer() -> Integer or None\n" "\n" "Returns the access date and time as a 64-bit integer containing an APFS timestamp value." }, { "get_inode_change_time", (PyCFunction) pyfsapfs_file_entry_get_inode_change_time, METH_NOARGS, "get_inode_change_time() -> Datetime or None\n" "\n" "Returns the inode change date and time." }, { "get_inode_change_time_as_integer", (PyCFunction) pyfsapfs_file_entry_get_inode_change_time_as_integer, METH_NOARGS, "get_inode_change_time_as_integer() -> Integer or None\n" "\n" "Returns the inode change date and time as a 64-bit integer containing an APFS timestamp value." }, { "get_owner_identifier", (PyCFunction) pyfsapfs_file_entry_get_owner_identifier, METH_NOARGS, "get_owner_identifier() -> Integer\n" "\n" "Retrieves the owner identifier." }, { "get_group_identifier", (PyCFunction) pyfsapfs_file_entry_get_group_identifier, METH_NOARGS, "get_group_identifier() -> Integer\n" "\n" "Retrieves the group identifier." }, { "get_file_mode", (PyCFunction) pyfsapfs_file_entry_get_file_mode, METH_NOARGS, "get_file_mode() -> Integer\n" "\n" "Retrieves the file mode." }, { "get_name", (PyCFunction) pyfsapfs_file_entry_get_name, METH_NOARGS, "get_name() -> Unicode string\n" "\n" "Retrieves the name." }, { "get_symbolic_link_target", (PyCFunction) pyfsapfs_file_entry_get_symbolic_link_target, METH_NOARGS, "get_symbolic_link_target() -> Unicode string or None\n" "\n" "Returns the symbolic link target." }, { "get_number_of_extended_attributes", (PyCFunction) pyfsapfs_file_entry_get_number_of_extended_attributes, METH_NOARGS, "get_number_of_extended_attributes() -> Integer\n" "\n" "Retrieves the number of extended attributes." }, { "get_extended_attribute", (PyCFunction) pyfsapfs_file_entry_get_extended_attribute, METH_VARARGS | METH_KEYWORDS, "get_extended_attribute(extended_attribute_index) -> Object\n" "\n" "Retrieves the extended attribute specified by the index." }, { "has_extended_attribute_by_name", (PyCFunction) pyfsapfs_file_entry_has_extended_attribute_by_name, METH_VARARGS | METH_KEYWORDS, "has_extended_attribute_by_name(name) -> Boolean\n" "\n" "Determines if there is an extended attribute specified by the name." }, { "get_extended_attribute_by_name", (PyCFunction) pyfsapfs_file_entry_get_extended_attribute_by_name, METH_VARARGS | METH_KEYWORDS, "get_extended_attribute_by_name(name) -> Object or None\n" "\n" "Retrieves an extended attribute specified by the name." }, { "get_number_of_sub_file_entries", (PyCFunction) pyfsapfs_file_entry_get_number_of_sub_file_entries, METH_NOARGS, "get_number_of_sub_file_entries() -> Integer\n" "\n" "Retrieves the number of sub file entries." }, { "get_sub_file_entry", (PyCFunction) pyfsapfs_file_entry_get_sub_file_entry, METH_VARARGS | METH_KEYWORDS, "get_sub_file_entry(sub_file_entry_index) -> Object\n" "\n" "Retrieves the sub file entry specified by the index." }, { "get_sub_file_entry_by_name", (PyCFunction) pyfsapfs_file_entry_get_sub_file_entry_by_name, METH_VARARGS | METH_KEYWORDS, "get_sub_file_entry_by_name(name) -> Object\n" "\n" "Retrieves the sub file entry specified by the name." }, { "read_buffer", (PyCFunction) pyfsapfs_file_entry_read_buffer, METH_VARARGS | METH_KEYWORDS, "read_buffer(size) -> Binary string\n" "\n" "Reads a buffer of data." }, { "read_buffer_at_offset", (PyCFunction) pyfsapfs_file_entry_read_buffer_at_offset, METH_VARARGS | METH_KEYWORDS, "read_buffer_at_offset(size, offset) -> Binary string\n" "\n" "Reads a buffer of data at a specific offset." }, { "seek_offset", (PyCFunction) pyfsapfs_file_entry_seek_offset, METH_VARARGS | METH_KEYWORDS, "seek_offset(offset, whence) -> None\n" "\n" "Seeks an offset within the data." }, { "get_offset", (PyCFunction) pyfsapfs_file_entry_get_offset, METH_NOARGS, "get_offset() -> Integer\n" "\n" "Retrieves the current offset within the data." }, { "read", (PyCFunction) pyfsapfs_file_entry_read_buffer, METH_VARARGS | METH_KEYWORDS, "read(size) -> Binary string\n" "\n" "Reads a buffer of data." }, { "seek", (PyCFunction) pyfsapfs_file_entry_seek_offset, METH_VARARGS | METH_KEYWORDS, "seek(offset, whence) -> None\n" "\n" "Seeks an offset within the data." }, { "tell", (PyCFunction) pyfsapfs_file_entry_get_offset, METH_NOARGS, "tell() -> Integer\n" "\n" "Retrieves the current offset within the data." }, { "get_size", (PyCFunction) pyfsapfs_file_entry_get_size, METH_NOARGS, "get_size() -> Integer\n" "\n" "Retrieves the size." }, { "get_number_of_extents", (PyCFunction) pyfsapfs_file_entry_get_number_of_extents, METH_NOARGS, "get_number_of_extents() -> Integer\n" "\n" "Retrieves the number of extents." }, { "get_extent", (PyCFunction) pyfsapfs_file_entry_get_extent, METH_VARARGS | METH_KEYWORDS, "get_extent(extent_index) -> Integer\n" "\n" "Retrieves the extent specified by the index." }, /* Sentinel */ { NULL, NULL, 0, NULL } }; PyGetSetDef pyfsapfs_file_entry_object_get_set_definitions[] = { { "identifier", (getter) pyfsapfs_file_entry_get_identifier, (setter) 0, "The identifier.", NULL }, { "parent_identifier", (getter) pyfsapfs_file_entry_get_parent_identifier, (setter) 0, "The parent identifier.", NULL }, { "creation_time", (getter) pyfsapfs_file_entry_get_creation_time, (setter) 0, "The creation date and time.", NULL }, { "modification_time", (getter) pyfsapfs_file_entry_get_modification_time, (setter) 0, "The modification date and time.", NULL }, { "access_time", (getter) pyfsapfs_file_entry_get_access_time, (setter) 0, "The access date and time.", NULL }, { "inode_change_time", (getter) pyfsapfs_file_entry_get_inode_change_time, (setter) 0, "The extent.", NULL }, { "owner_identifier", (getter) pyfsapfs_file_entry_get_owner_identifier, (setter) 0, "The owner identifier.", NULL }, { "group_identifier", (getter) pyfsapfs_file_entry_get_group_identifier, (setter) 0, "The group identifier.", NULL }, { "file_mode", (getter) pyfsapfs_file_entry_get_file_mode, (setter) 0, "The file mode.", NULL }, { "name", (getter) pyfsapfs_file_entry_get_name, (setter) 0, "The name.", NULL }, { "symbolic_link_target", (getter) pyfsapfs_file_entry_get_symbolic_link_target, (setter) 0, "The symbolic link target.", NULL }, { "number_of_extended_attributes", (getter) pyfsapfs_file_entry_get_number_of_extended_attributes, (setter) 0, "The number of extended attributes.", NULL }, { "extended_attributes", (getter) pyfsapfs_file_entry_get_extended_attributes, (setter) 0, "The extended attributes.", NULL }, { "number_of_sub_file_entries", (getter) pyfsapfs_file_entry_get_number_of_sub_file_entries, (setter) 0, "The number of sub file entries.", NULL }, { "sub_file_entries", (getter) pyfsapfs_file_entry_get_sub_file_entries, (setter) 0, "The sub file entries.", NULL }, { "size", (getter) pyfsapfs_file_entry_get_size, (setter) 0, "The size.", NULL }, { "number_of_extents", (getter) pyfsapfs_file_entry_get_number_of_extents, (setter) 0, "The number of extents.", NULL }, /* Sentinel */ { NULL, NULL, NULL, NULL, NULL } }; PyTypeObject pyfsapfs_file_entry_type_object = { PyVarObject_HEAD_INIT( NULL, 0 ) /* tp_name */ "pyfsapfs.file_entry", /* tp_basicsize */ sizeof( pyfsapfs_file_entry_t ), /* tp_itemsize */ 0, /* tp_dealloc */ (destructor) pyfsapfs_file_entry_free, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ 0, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ Py_TPFLAGS_DEFAULT, /* tp_doc */ "pyfsapfs file entry object (wraps libfsapfs_file_entry_t)", /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ pyfsapfs_file_entry_object_methods, /* tp_members */ 0, /* tp_getset */ pyfsapfs_file_entry_object_get_set_definitions, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ (initproc) pyfsapfs_file_entry_init, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ NULL, /* tp_mro */ NULL, /* tp_cache */ NULL, /* tp_subclasses */ NULL, /* tp_weaklist */ NULL, /* tp_del */ 0 }; /* Creates a new file entry object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_new( libfsapfs_file_entry_t *file_entry, PyObject *parent_object ) { pyfsapfs_file_entry_t *pyfsapfs_file_entry = NULL; static char *function = "pyfsapfs_file_entry_new"; if( file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } /* PyObject_New does not invoke tp_init */ pyfsapfs_file_entry = PyObject_New( struct pyfsapfs_file_entry, &pyfsapfs_file_entry_type_object ); if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to initialize file entry.", function ); goto on_error; } pyfsapfs_file_entry->file_entry = file_entry; pyfsapfs_file_entry->parent_object = parent_object; if( pyfsapfs_file_entry->parent_object != NULL ) { Py_IncRef( pyfsapfs_file_entry->parent_object ); } return( (PyObject *) pyfsapfs_file_entry ); on_error: if( pyfsapfs_file_entry != NULL ) { Py_DecRef( (PyObject *) pyfsapfs_file_entry ); } return( NULL ); } /* Intializes a file entry object * Returns 0 if successful or -1 on error */ int pyfsapfs_file_entry_init( pyfsapfs_file_entry_t *pyfsapfs_file_entry ) { static char *function = "pyfsapfs_file_entry_init"; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( -1 ); } /* Make sure libfsapfs file entry is set to NULL */ pyfsapfs_file_entry->file_entry = NULL; PyErr_Format( PyExc_NotImplementedError, "%s: initialize of file entry not supported.", function ); return( -1 ); } /* Frees a file entry object */ void pyfsapfs_file_entry_free( pyfsapfs_file_entry_t *pyfsapfs_file_entry ) { struct _typeobject *ob_type = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_free"; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return; } ob_type = Py_TYPE( pyfsapfs_file_entry ); if( ob_type == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing ob_type.", function ); return; } if( ob_type->tp_free == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid ob_type - missing tp_free.", function ); return; } if( pyfsapfs_file_entry->file_entry != NULL ) { Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_free( &( pyfsapfs_file_entry->file_entry ), &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to free libfsapfs file entry.", function ); libcerror_error_free( &error ); } } if( pyfsapfs_file_entry->parent_object != NULL ) { Py_DecRef( pyfsapfs_file_entry->parent_object ); } ob_type->tp_free( (PyObject*) pyfsapfs_file_entry ); } /* Retrieves the identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_identifier"; uint64_t value_64bit = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_identifier( pyfsapfs_file_entry->file_entry, &value_64bit, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve identifier.", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( value_64bit ); return( integer_object ); } /* Retrieves the parent identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_parent_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_parent_identifier"; uint64_t value_64bit = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_parent_identifier( pyfsapfs_file_entry->file_entry, &value_64bit, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve parent identifier.", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( value_64bit ); return( integer_object ); } /* Retrieves the creation date and time * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_creation_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *date_time_object = NULL; static char *function = "pyfsapfs_file_entry_get_creation_time"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_creation_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve creation time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } date_time_object = pyfsapfs_datetime_new_from_posix_time_in_micro_seconds( posix_time / 1000 ); return( date_time_object ); } /* Retrieves the creation date and time as an integer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_creation_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *integer_object = NULL; static char *function = "pyfsapfs_file_entry_get_creation_time_as_integer"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_creation_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve creation time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } integer_object = pyfsapfs_integer_signed_new_from_64bit( posix_time ); return( integer_object ); } /* Retrieves the modification date and time * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_modification_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *date_time_object = NULL; static char *function = "pyfsapfs_file_entry_get_modification_time"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_modification_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve modification time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } date_time_object = pyfsapfs_datetime_new_from_posix_time_in_micro_seconds( posix_time / 1000 ); return( date_time_object ); } /* Retrieves the modification date and time as an integer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_modification_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *integer_object = NULL; static char *function = "pyfsapfs_file_entry_get_modification_time_as_integer"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_modification_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve modification time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } integer_object = pyfsapfs_integer_signed_new_from_64bit( posix_time ); return( integer_object ); } /* Retrieves the access date and time * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_access_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *date_time_object = NULL; static char *function = "pyfsapfs_file_entry_get_access_time"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_access_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve access time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } date_time_object = pyfsapfs_datetime_new_from_posix_time_in_micro_seconds( posix_time / 1000 ); return( date_time_object ); } /* Retrieves the access date and time as an integer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_access_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *integer_object = NULL; static char *function = "pyfsapfs_file_entry_get_access_time_as_integer"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_access_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve access time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } integer_object = pyfsapfs_integer_signed_new_from_64bit( posix_time ); return( integer_object ); } /* Retrieves the inode change date and time * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_inode_change_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *date_time_object = NULL; static char *function = "pyfsapfs_file_entry_get_inode_change_time"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_inode_change_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve inode change time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } date_time_object = pyfsapfs_datetime_new_from_posix_time_in_micro_seconds( posix_time / 1000 ); return( date_time_object ); } /* Retrieves the inode change date and time as an integer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_inode_change_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *integer_object = NULL; static char *function = "pyfsapfs_file_entry_get_inode_change_time_as_integer"; int64_t posix_time = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_inode_change_time( pyfsapfs_file_entry->file_entry, &posix_time, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve inode change time.", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } integer_object = pyfsapfs_integer_signed_new_from_64bit( posix_time ); return( integer_object ); } /* Retrieves the owner identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_owner_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_owner_identifier"; uint32_t value_32bit = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_owner_identifier( pyfsapfs_file_entry->file_entry, &value_32bit, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = PyLong_FromUnsignedLong( (unsigned long) value_32bit ); return( integer_object ); } /* Retrieves the group identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_group_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_group_identifier"; uint32_t value_32bit = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_group_identifier( pyfsapfs_file_entry->file_entry, &value_32bit, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = PyLong_FromUnsignedLong( (unsigned long) value_32bit ); return( integer_object ); } /* Retrieves the file mode * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_file_mode( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_file_mode"; uint16_t file_mode = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_file_mode( pyfsapfs_file_entry->file_entry, &file_mode, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 integer_object = PyLong_FromLong( (long) file_mode ); #else integer_object = PyInt_FromLong( (long) file_mode ); #endif return( integer_object ); } /* Retrieves the name * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *string_object = NULL; libcerror_error_t *error = NULL; const char *errors = NULL; static char *function = "pyfsapfs_file_entry_get_name"; char *utf8_string = NULL; size_t utf8_string_size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_utf8_name_size( pyfsapfs_file_entry->file_entry, &utf8_string_size, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to determine size of as UTF-8 string.", function ); libcerror_error_free( &error ); goto on_error; } else if( ( result == 0 ) || ( utf8_string_size == 0 ) ) { Py_IncRef( Py_None ); return( Py_None ); } utf8_string = (char *) PyMem_Malloc( sizeof( char ) * utf8_string_size ); if( utf8_string == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create UTF-8 string.", function ); goto on_error; } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_utf8_name( pyfsapfs_file_entry->file_entry, (uint8_t *) utf8_string, utf8_string_size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve as UTF-8 string.", function ); libcerror_error_free( &error ); goto on_error; } /* Pass the string length to PyUnicode_DecodeUTF8 otherwise it makes * the end of string character is part of the string. */ string_object = PyUnicode_DecodeUTF8( utf8_string, (Py_ssize_t) utf8_string_size - 1, errors ); if( string_object == NULL ) { PyErr_Format( PyExc_IOError, "%s: unable to convert UTF-8 string into Unicode object.", function ); goto on_error; } PyMem_Free( utf8_string ); return( string_object ); on_error: if( utf8_string != NULL ) { PyMem_Free( utf8_string ); } return( NULL ); } /* Retrieves the symbolic link target * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_symbolic_link_target( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; PyObject *string_object = NULL; const char *errors = NULL; uint8_t *target = NULL; static char *function = "pyfsapfs_file_entry_get_symbolic_link_target"; size_t target_size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_TypeError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_utf8_symbolic_link_target_size( pyfsapfs_file_entry->file_entry, &target_size, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve symbolic link target size.", function ); libcerror_error_free( &error ); goto on_error; } else if( ( result == 0 ) || ( target_size == 0 ) ) { Py_IncRef( Py_None ); return( Py_None ); } target = (uint8_t *) PyMem_Malloc( sizeof( uint8_t ) * target_size ); if( target == NULL ) { PyErr_Format( PyExc_IOError, "%s: unable to create target.", function ); goto on_error; } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_utf8_symbolic_link_target( pyfsapfs_file_entry->file_entry, target, target_size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve symbolic link target.", function ); libcerror_error_free( &error ); goto on_error; } /* Pass the string length to PyUnicode_DecodeUTF8 * otherwise it makes the end of string character is part * of the string */ string_object = PyUnicode_DecodeUTF8( (char *) target, (Py_ssize_t) target_size - 1, errors ); PyMem_Free( target ); return( string_object ); on_error: if( target != NULL ) { PyMem_Free( target ); } return( NULL ); } /* Retrieves the number of extended attributes * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_number_of_extended_attributes( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_number_of_extended_attributes"; int number_of_extended_attributes = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_number_of_extended_attributes( pyfsapfs_file_entry->file_entry, &number_of_extended_attributes, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 integer_object = PyLong_FromLong( (long) number_of_extended_attributes ); #else integer_object = PyInt_FromLong( (long) number_of_extended_attributes ); #endif return( integer_object ); } /* Retrieves a specific extended attribute by index * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_extended_attribute_by_index( PyObject *pyfsapfs_file_entry, int extended_attribute_index ) { PyObject *extended_attribute_object = NULL; libcerror_error_t *error = NULL; libfsapfs_extended_attribute_t *extended_attribute = NULL; static char *function = "pyfsapfs_file_entry_get_extended_attribute_by_index"; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_extended_attribute_by_index( ( (pyfsapfs_file_entry_t *) pyfsapfs_file_entry )->file_entry, extended_attribute_index, &extended_attribute, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve : %d.", function, extended_attribute_index ); libcerror_error_free( &error ); goto on_error; } extended_attribute_object = pyfsapfs_extended_attribute_new( extended_attribute, pyfsapfs_file_entry ); if( extended_attribute_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create extended attribute object.", function ); goto on_error; } return( extended_attribute_object ); on_error: if( extended_attribute != NULL ) { libfsapfs_extended_attribute_free( &extended_attribute, NULL ); } return( NULL ); } /* Retrieves a specific extended attribute * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_extended_attribute( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { PyObject *extended_attribute_object = NULL; static char *keyword_list[] = { "extended_attribute_index", NULL }; int extended_attribute_index = 0; if( PyArg_ParseTupleAndKeywords( arguments, keywords, "i", keyword_list, &extended_attribute_index ) == 0 ) { return( NULL ); } extended_attribute_object = pyfsapfs_file_entry_get_extended_attribute_by_index( (PyObject *) pyfsapfs_file_entry, extended_attribute_index ); return( extended_attribute_object ); } /* Retrieves a sequence and iterator object for the extended attributes * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_extended_attributes( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *sequence_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_extended_attributes"; int number_of_extended_attributes = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_number_of_extended_attributes( pyfsapfs_file_entry->file_entry, &number_of_extended_attributes, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve number of extended attributes.", function ); libcerror_error_free( &error ); return( NULL ); } sequence_object = pyfsapfs_extended_attributes_new( (PyObject *) pyfsapfs_file_entry, &pyfsapfs_file_entry_get_extended_attribute_by_index, number_of_extended_attributes ); if( sequence_object == NULL ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to create sequence object.", function ); return( NULL ); } return( sequence_object ); } /* Determines if there is an extended attribute specified by the name * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_has_extended_attribute_by_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { libcerror_error_t *error = NULL; char *extended_attribute_name = NULL; static char *keyword_list[] = { "extended_attribute_name", NULL }; static char *function = "pyfsapfs_file_entry_has_extended_attribute_by_name"; size_t extended_attribute_name_length = 0; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_TypeError, "%s: invalid file entry.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "s", keyword_list, &extended_attribute_name ) == 0 ) { return( NULL ); } extended_attribute_name_length = narrow_string_length( extended_attribute_name ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_has_extended_attribute_by_utf8_name( pyfsapfs_file_entry->file_entry, (uint8_t *) extended_attribute_name, extended_attribute_name_length, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to determine if extended attribute exists.", function ); libcerror_error_free( &error ); return( NULL ); } /* Check if the extended attribute is present */ if( result != 0 ) { Py_IncRef( (PyObject *) Py_True ); return( Py_True ); } Py_IncRef( (PyObject *) Py_False ); return( Py_False ); } /* Retrieves the extended attribute specified by the name * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_extended_attribute_by_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { libcerror_error_t *error = NULL; libfsapfs_extended_attribute_t *extended_attribute = NULL; PyObject *extended_attribute_object = NULL; char *extended_attribute_name = NULL; static char *keyword_list[] = { "extended_attribute_name", NULL }; static char *function = "pyfsapfs_file_entry_get_extended_attribute_by_name"; size_t extended_attribute_name_length = 0; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_TypeError, "%s: invalid file entry.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "s", keyword_list, &extended_attribute_name ) == 0 ) { goto on_error; } extended_attribute_name_length = narrow_string_length( extended_attribute_name ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_extended_attribute_by_utf8_name( pyfsapfs_file_entry->file_entry, (uint8_t *) extended_attribute_name, extended_attribute_name_length, &extended_attribute, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve extended attribute.", function ); libcerror_error_free( &error ); goto on_error; } /* Check if the extended attribute is present */ else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } extended_attribute_object = pyfsapfs_extended_attribute_new( extended_attribute, (PyObject *) pyfsapfs_file_entry ); if( extended_attribute_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create extended attribute object.", function ); goto on_error; } return( extended_attribute_object ); on_error: if( extended_attribute != NULL ) { libfsapfs_extended_attribute_free( &extended_attribute, NULL ); } return( NULL ); } /* Retrieves the number of sub file entries * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_number_of_sub_file_entries( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_number_of_sub_file_entries"; int number_of_sub_file_entries = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_number_of_sub_file_entries( pyfsapfs_file_entry->file_entry, &number_of_sub_file_entries, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 integer_object = PyLong_FromLong( (long) number_of_sub_file_entries ); #else integer_object = PyInt_FromLong( (long) number_of_sub_file_entries ); #endif return( integer_object ); } /* Retrieves a specific of sub file entry by index * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_sub_file_entry_by_index( PyObject *pyfsapfs_file_entry, int sub_file_entry_index ) { PyObject *file_entry_object = NULL; libcerror_error_t *error = NULL; libfsapfs_file_entry_t *sub_file_entry = NULL; static char *function = "pyfsapfs_file_entry_get_sub_file_entry_by_index"; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_sub_file_entry_by_index( ( (pyfsapfs_file_entry_t *) pyfsapfs_file_entry )->file_entry, sub_file_entry_index, &sub_file_entry, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve sub : %d.", function, sub_file_entry_index ); libcerror_error_free( &error ); goto on_error; } file_entry_object = pyfsapfs_file_entry_new( sub_file_entry, ( (pyfsapfs_file_entry_t *) pyfsapfs_file_entry )->parent_object ); if( file_entry_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create sub file entry object.", function ); goto on_error; } return( file_entry_object ); on_error: if( sub_file_entry != NULL ) { libfsapfs_file_entry_free( &sub_file_entry, NULL ); } return( NULL ); } /* Retrieves a specific of sub file entry * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_sub_file_entry( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { PyObject *file_entry_object = NULL; static char *keyword_list[] = { "sub_file_entry_index", NULL }; int sub_file_entry_index = 0; if( PyArg_ParseTupleAndKeywords( arguments, keywords, "i", keyword_list, &sub_file_entry_index ) == 0 ) { return( NULL ); } file_entry_object = pyfsapfs_file_entry_get_sub_file_entry_by_index( (PyObject *) pyfsapfs_file_entry, sub_file_entry_index ); return( file_entry_object ); } /* Retrieves a sequence and iterator object for the sub file entries * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_sub_file_entries( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *sequence_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_sub_file_entries"; int number_of_sub_file_entries = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_number_of_sub_file_entries( pyfsapfs_file_entry->file_entry, &number_of_sub_file_entries, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve number of sub file entries.", function ); libcerror_error_free( &error ); return( NULL ); } sequence_object = pyfsapfs_file_entries_new( (PyObject *) pyfsapfs_file_entry, &pyfsapfs_file_entry_get_sub_file_entry_by_index, number_of_sub_file_entries ); if( sequence_object == NULL ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to create sequence object.", function ); return( NULL ); } return( sequence_object ); } /* Retrieves the sub specified by the name * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_sub_file_entry_by_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { PyObject *file_entry_object = NULL; libcerror_error_t *error = NULL; libfsapfs_file_entry_t *sub_file_entry = NULL; static char *function = "pyfsapfs_file_entry_get_sub_file_entry_by_name"; static char *keyword_list[] = { "name", NULL }; char *utf8_name = NULL; size_t utf8_name_length = 0; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "s", keyword_list, &utf8_name ) == 0 ) { goto on_error; } utf8_name_length = narrow_string_length( utf8_name ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_sub_file_entry_by_utf8_name( pyfsapfs_file_entry->file_entry, (uint8_t *) utf8_name, utf8_name_length, &sub_file_entry, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve sub .", function ); libcerror_error_free( &error ); goto on_error; } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } file_entry_object = pyfsapfs_file_entry_new( sub_file_entry, pyfsapfs_file_entry->parent_object ); if( file_entry_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create sub file entry object.", function ); goto on_error; } return( file_entry_object ); on_error: if( sub_file_entry != NULL ) { libfsapfs_file_entry_free( &sub_file_entry, NULL ); } return( NULL ); } /* Reads data at the current offset into a buffer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_read_buffer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { PyObject *integer_object = NULL; PyObject *string_object = NULL; libcerror_error_t *error = NULL; char *buffer = NULL; static char *function = "pyfsapfs_file_entry_read_buffer"; static char *keyword_list[] = { "size", NULL }; ssize_t read_count = 0; int64_t read_size = 0; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "|O", keyword_list, &integer_object ) == 0 ) { return( NULL ); } if( integer_object == NULL ) { result = 0; } else { result = PyObject_IsInstance( integer_object, (PyObject *) &PyLong_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type long.", function ); return( NULL ); } #if PY_MAJOR_VERSION < 3 else if( result == 0 ) { PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyInt_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type int.", function ); return( NULL ); } } #endif } if( result != 0 ) { if( pyfsapfs_integer_signed_copy_to_64bit( integer_object, &read_size, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to convert integer object into read size.", function ); libcerror_error_free( &error ); return( NULL ); } } else if( ( integer_object == NULL ) || ( integer_object == Py_None ) ) { Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_size( pyfsapfs_file_entry->file_entry, (size64_t *) &read_size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve size.", function ); libcerror_error_free( &error ); return( NULL ); } } else { PyErr_Format( PyExc_TypeError, "%s: unsupported integer object type.", function ); return( NULL ); } if( read_size == 0 ) { #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromString( "" ); #else string_object = PyString_FromString( "" ); #endif return( string_object ); } if( read_size < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid read size value less than zero.", function ); return( NULL ); } /* Make sure the data fits into a memory buffer */ if( ( read_size > (int64_t) INT_MAX ) || ( read_size > (int64_t) SSIZE_MAX ) ) { PyErr_Format( PyExc_ValueError, "%s: invalid argument read size value exceeds maximum.", function ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyBytes_AsString( string_object ); #else /* Note that a size of 0 is not supported */ string_object = PyString_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyString_AsString( string_object ); #endif Py_BEGIN_ALLOW_THREADS read_count = libfsapfs_file_entry_read_buffer( pyfsapfs_file_entry->file_entry, (uint8_t *) buffer, (size_t) read_size, &error ); Py_END_ALLOW_THREADS if( read_count == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to read data.", function ); libcerror_error_free( &error ); Py_DecRef( (PyObject *) string_object ); return( NULL ); } /* Need to resize the string here in case read_size was not fully read. */ #if PY_MAJOR_VERSION >= 3 if( _PyBytes_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #else if( _PyString_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #endif { Py_DecRef( (PyObject *) string_object ); return( NULL ); } return( string_object ); } /* Reads data at a specific offset into a buffer * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_read_buffer_at_offset( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { PyObject *integer_object = NULL; PyObject *string_object = NULL; libcerror_error_t *error = NULL; char *buffer = NULL; static char *function = "pyfsapfs_file_entry_read_buffer_at_offset"; static char *keyword_list[] = { "size", "offset", NULL }; ssize_t read_count = 0; off64_t read_offset = 0; int64_t read_size = 0; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "OL", keyword_list, &integer_object, &read_offset ) == 0 ) { return( NULL ); } result = PyObject_IsInstance( integer_object, (PyObject *) &PyLong_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type long.", function ); return( NULL ); } #if PY_MAJOR_VERSION < 3 else if( result == 0 ) { PyErr_Clear(); result = PyObject_IsInstance( integer_object, (PyObject *) &PyInt_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if integer object is of type int.", function ); return( NULL ); } } #endif if( result != 0 ) { if( pyfsapfs_integer_signed_copy_to_64bit( integer_object, &read_size, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to convert integer object into read size.", function ); libcerror_error_free( &error ); return( NULL ); } } else { PyErr_Format( PyExc_TypeError, "%s: unsupported integer object type.", function ); return( NULL ); } if( read_size == 0 ) { #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromString( "" ); #else string_object = PyString_FromString( "" ); #endif return( string_object ); } if( read_size < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid read size value less than zero.", function ); return( NULL ); } /* Make sure the data fits into a memory buffer */ if( ( read_size > (int64_t) INT_MAX ) || ( read_size > (int64_t) SSIZE_MAX ) ) { PyErr_Format( PyExc_ValueError, "%s: invalid argument read size value exceeds maximum.", function ); return( NULL ); } if( read_offset < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid read offset value less than zero.", function ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 string_object = PyBytes_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyBytes_AsString( string_object ); #else /* Note that a size of 0 is not supported */ string_object = PyString_FromStringAndSize( NULL, (Py_ssize_t) read_size ); buffer = PyString_AsString( string_object ); #endif Py_BEGIN_ALLOW_THREADS read_count = libfsapfs_file_entry_read_buffer_at_offset( pyfsapfs_file_entry->file_entry, (uint8_t *) buffer, (size_t) read_size, (off64_t) read_offset, &error ); Py_END_ALLOW_THREADS if( read_count == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to read data.", function ); libcerror_error_free( &error ); Py_DecRef( (PyObject *) string_object ); return( NULL ); } /* Need to resize the string here in case read_size was not fully read. */ #if PY_MAJOR_VERSION >= 3 if( _PyBytes_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #else if( _PyString_Resize( &string_object, (Py_ssize_t) read_count ) != 0 ) #endif { Py_DecRef( (PyObject *) string_object ); return( NULL ); } return( string_object ); } /* Seeks a certain offset * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_seek_offset( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_seek_offset"; static char *keyword_list[] = { "offset", "whence", NULL }; off64_t offset = 0; int whence = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "L|i", keyword_list, &offset, &whence ) == 0 ) { return( NULL ); } Py_BEGIN_ALLOW_THREADS offset = libfsapfs_file_entry_seek_offset( pyfsapfs_file_entry->file_entry, offset, whence, &error ); Py_END_ALLOW_THREADS if( offset == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to seek offset.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } /* Retrieves the current offset * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_offset( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_offset"; off64_t offset = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_offset( pyfsapfs_file_entry->file_entry, &offset, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } integer_object = pyfsapfs_integer_signed_new_from_64bit( (int64_t) offset ); return( integer_object ); } /* Retrieves the size * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_size( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_size"; size64_t size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_size( pyfsapfs_file_entry->file_entry, &size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: failed to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) size ); return( integer_object ); } /* Retrieves the number of extents * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_number_of_extents( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_file_entry_get_number_of_extents"; int number_of_extents = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_number_of_extents( pyfsapfs_file_entry->file_entry, &number_of_extents, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve .", function ); libcerror_error_free( &error ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 integer_object = PyLong_FromLong( (long) number_of_extents ); #else integer_object = PyInt_FromLong( (long) number_of_extents ); #endif return( integer_object ); } /* Retrieves a specific extent by index * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_extent_by_index( pyfsapfs_file_entry_t *pyfsapfs_file_entry, int extent_index ) { libcerror_error_t *error = NULL; PyObject *integer_object = NULL; PyObject *tuple_object = NULL; static char *function = "pyfsapfs_file_entry_get_extent_by_index"; off64_t extent_offset = 0; size64_t extent_size = 0; uint32_t extent_flags = 0; int result = 0; if( pyfsapfs_file_entry == NULL ) { PyErr_Format( PyExc_TypeError, "%s: invalid file entry.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_file_entry_get_extent_by_index( pyfsapfs_file_entry->file_entry, extent_index, &extent_offset, &extent_size, &extent_flags, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve extent: %d.", function, extent_index ); libcerror_error_free( &error ); goto on_error; } tuple_object = PyTuple_New( 3 ); integer_object = pyfsapfs_integer_signed_new_from_64bit( (int64_t) extent_offset ); /* Tuple set item does not increment the reference count of the integer object */ if( PyTuple_SetItem( tuple_object, 0, integer_object ) != 0 ) { goto on_error; } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) extent_size ); /* Tuple set item does not increment the reference count of the integer object */ if( PyTuple_SetItem( tuple_object, 1, integer_object ) != 0 ) { goto on_error; } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) extent_flags ); /* Tuple set item does not increment the reference count of the integer object */ if( PyTuple_SetItem( tuple_object, 2, integer_object ) != 0 ) { goto on_error; } return( tuple_object ); on_error: if( integer_object != NULL ) { Py_DecRef( (PyObject *) integer_object ); } if( tuple_object != NULL ) { Py_DecRef( (PyObject *) tuple_object ); } return( NULL ); } /* Retrieves a specific extent * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_file_entry_get_extent( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ) { PyObject *sequence_object = NULL; static char *keyword_list[] = { "extent_index", NULL }; int extent_index = 0; if( PyArg_ParseTupleAndKeywords( arguments, keywords, "i", keyword_list, &extent_index ) == 0 ) { return( NULL ); } sequence_object = pyfsapfs_file_entry_get_extent_by_index( pyfsapfs_file_entry, extent_index ); return( sequence_object ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_unused.h0000664000175000017500000000260213426637447023265 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_UNUSED_H ) #define _PYFSAPFS_UNUSED_H #include #if !defined( PYFSAPFS_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define PYFSAPFS_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define PYFSAPFS_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define PYFSAPFS_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define PYFSAPFS_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _PYFSAPFS_UNUSED_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_file_object_io_handle.c0000664000175000017500000010225613426637447026232 0ustar00lordyestalordyesta00000000000000/* * Python file object IO handle functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "pyfsapfs_error.h" #include "pyfsapfs_file_object_io_handle.h" #include "pyfsapfs_integer.h" #include "pyfsapfs_libbfio.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_python.h" /* Creates a file object IO handle * Make sure the value file_object_io_handle is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int pyfsapfs_file_object_io_handle_initialize( pyfsapfs_file_object_io_handle_t **file_object_io_handle, PyObject *file_object, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_initialize"; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } if( *file_object_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid file object IO handle value already set.", function ); return( -1 ); } if( file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object.", function ); return( -1 ); } *file_object_io_handle = (pyfsapfs_file_object_io_handle_t *) PyMem_Malloc( sizeof( pyfsapfs_file_object_io_handle_t ) ); if( *file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create file object IO handle.", function ); goto on_error; } if( memory_set( *file_object_io_handle, 0, sizeof( pyfsapfs_file_object_io_handle_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear file object IO handle.", function ); goto on_error; } ( *file_object_io_handle )->file_object = file_object; Py_IncRef( ( *file_object_io_handle )->file_object ); return( 1 ); on_error: if( *file_object_io_handle != NULL ) { PyMem_Free( *file_object_io_handle ); *file_object_io_handle = NULL; } return( -1 ); } /* Initializes the file object IO handle * Returns 1 if successful or -1 on error */ int pyfsapfs_file_object_initialize( libbfio_handle_t **handle, PyObject *file_object, libcerror_error_t **error ) { pyfsapfs_file_object_io_handle_t *file_object_io_handle = NULL; static char *function = "pyfsapfs_file_object_initialize"; if( handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid handle.", function ); return( -1 ); } if( *handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid handle value already set.", function ); return( -1 ); } if( pyfsapfs_file_object_io_handle_initialize( &file_object_io_handle, file_object, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file object IO handle.", function ); goto on_error; } if( libbfio_handle_initialize( handle, (intptr_t *) file_object_io_handle, (int (*)(intptr_t **, libcerror_error_t **)) pyfsapfs_file_object_io_handle_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) pyfsapfs_file_object_io_handle_clone, (int (*)(intptr_t *, int, libcerror_error_t **)) pyfsapfs_file_object_io_handle_open, (int (*)(intptr_t *, libcerror_error_t **)) pyfsapfs_file_object_io_handle_close, (ssize_t (*)(intptr_t *, uint8_t *, size_t, libcerror_error_t **)) pyfsapfs_file_object_io_handle_read, (ssize_t (*)(intptr_t *, const uint8_t *, size_t, libcerror_error_t **)) pyfsapfs_file_object_io_handle_write, (off64_t (*)(intptr_t *, off64_t, int, libcerror_error_t **)) pyfsapfs_file_object_io_handle_seek_offset, (int (*)(intptr_t *, libcerror_error_t **)) pyfsapfs_file_object_io_handle_exists, (int (*)(intptr_t *, libcerror_error_t **)) pyfsapfs_file_object_io_handle_is_open, (int (*)(intptr_t *, size64_t *, libcerror_error_t **)) pyfsapfs_file_object_io_handle_get_size, LIBBFIO_FLAG_IO_HANDLE_MANAGED | LIBBFIO_FLAG_IO_HANDLE_CLONE_BY_FUNCTION, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create handle.", function ); goto on_error; } return( 1 ); on_error: if( file_object_io_handle != NULL ) { pyfsapfs_file_object_io_handle_free( &file_object_io_handle, NULL ); } return( -1 ); } /* Frees a file object IO handle * Returns 1 if succesful or -1 on error */ int pyfsapfs_file_object_io_handle_free( pyfsapfs_file_object_io_handle_t **file_object_io_handle, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_free"; PyGILState_STATE gil_state = 0; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } if( *file_object_io_handle != NULL ) { gil_state = PyGILState_Ensure(); Py_DecRef( ( *file_object_io_handle )->file_object ); PyGILState_Release( gil_state ); PyMem_Free( *file_object_io_handle ); *file_object_io_handle = NULL; } return( 1 ); } /* Clones (duplicates) the file object IO handle and its attributes * Returns 1 if succesful or -1 on error */ int pyfsapfs_file_object_io_handle_clone( pyfsapfs_file_object_io_handle_t **destination_file_object_io_handle, pyfsapfs_file_object_io_handle_t *source_file_object_io_handle, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_clone"; if( destination_file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination file object IO handle.", function ); return( -1 ); } if( *destination_file_object_io_handle != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination file object IO handle already set.", function ); return( -1 ); } if( source_file_object_io_handle == NULL ) { *destination_file_object_io_handle = NULL; return( 1 ); } if( pyfsapfs_file_object_io_handle_initialize( destination_file_object_io_handle, source_file_object_io_handle->file_object, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create file object IO handle.", function ); return( -1 ); } if( *destination_file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing destination file object IO handle.", function ); return( -1 ); } return( 1 ); } /* Opens the file object IO handle * Returns 1 if successful or -1 on error */ int pyfsapfs_file_object_io_handle_open( pyfsapfs_file_object_io_handle_t *file_object_io_handle, int access_flags, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_open"; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } if( file_object_io_handle->file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file object IO handle - missing file object.", function ); return( -1 ); } if( ( ( access_flags & LIBBFIO_ACCESS_FLAG_READ ) != 0 ) && ( ( access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported access flags.", function ); return( -1 ); } if( ( access_flags & LIBBFIO_ACCESS_FLAG_WRITE ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: write access currently not supported.", function ); return( -1 ); } /* No need to do anything here, because the file object is already open */ file_object_io_handle->access_flags = access_flags; return( 1 ); } /* Closes the file object IO handle * Returns 0 if successful or -1 on error */ int pyfsapfs_file_object_io_handle_close( pyfsapfs_file_object_io_handle_t *file_object_io_handle, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_close"; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } if( file_object_io_handle->file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file object IO handle - missing file object.", function ); return( -1 ); } /* Do not close the file object, have Python deal with it */ file_object_io_handle->access_flags = 0; return( 0 ); } /* Reads a buffer from the file object * Make sure to hold the GIL state before calling this function * Returns the number of bytes read if successful, or -1 on error */ ssize_t pyfsapfs_file_object_read_buffer( PyObject *file_object, uint8_t *buffer, size_t size, libcerror_error_t **error ) { PyObject *argument_size = NULL; PyObject *method_name = NULL; PyObject *method_result = NULL; static char *function = "pyfsapfs_file_object_read_buffer"; char *safe_buffer = NULL; Py_ssize_t safe_read_count = 0; ssize_t read_count = 0; int result = 0; if( file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size > 0 ) { #if PY_MAJOR_VERSION >= 3 method_name = PyUnicode_FromString( "read" ); #else method_name = PyString_FromString( "read" ); #endif argument_size = PyLong_FromSize_t( size ); PyErr_Clear(); method_result = PyObject_CallMethodObjArgs( file_object, method_name, argument_size, NULL ); if( PyErr_Occurred() ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file object.", function ); goto on_error; } if( method_result == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing method result.", function ); goto on_error; } #if PY_MAJOR_VERSION >= 3 result = PyObject_IsInstance( method_result, (PyObject *) &PyBytes_Type ); #else result = PyObject_IsInstance( method_result, (PyObject *) &PyString_Type ); #endif if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if method result is a binary string object.", function ); goto on_error; } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid method result value is not a binary string object.", function ); goto on_error; } #if PY_MAJOR_VERSION >= 3 result = PyBytes_AsStringAndSize( method_result, &safe_buffer, &safe_read_count ); #else result = PyString_AsStringAndSize( method_result, &safe_buffer, &safe_read_count ); #endif if( result == -1 ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file object.", function ); goto on_error; } if( safe_read_count > (Py_ssize_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid read count value exceeds maximum.", function ); goto on_error; } read_count = (ssize_t) safe_read_count; if( memory_copy( buffer, safe_buffer, read_count ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to data to buffer.", function ); goto on_error; } Py_DecRef( method_result ); Py_DecRef( argument_size ); Py_DecRef( method_name ); } return( read_count ); on_error: if( method_result != NULL ) { Py_DecRef( method_result ); } if( argument_size != NULL ) { Py_DecRef( argument_size ); } if( method_name != NULL ) { Py_DecRef( method_name ); } return( -1 ); } /* Reads a buffer from the file object IO handle * Returns the number of bytes read if successful, or -1 on error */ ssize_t pyfsapfs_file_object_io_handle_read( pyfsapfs_file_object_io_handle_t *file_object_io_handle, uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_read"; PyGILState_STATE gil_state = 0; ssize_t read_count = 0; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } gil_state = PyGILState_Ensure(); read_count = pyfsapfs_file_object_read_buffer( file_object_io_handle->file_object, buffer, size, error ); if( read_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read from file object.", function ); goto on_error; } PyGILState_Release( gil_state ); return( read_count ); on_error: PyGILState_Release( gil_state ); return( -1 ); } /* Writes a buffer to the file object * Make sure to hold the GIL state before calling this function * Returns the number of bytes written if successful, or -1 on error */ ssize_t pyfsapfs_file_object_write_buffer( PyObject *file_object, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { PyObject *argument_string = NULL; PyObject *method_name = NULL; PyObject *method_result = NULL; static char *function = "pyfsapfs_file_object_write_buffer"; if( file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } #if SIZEOF_SIZE_T > SIZEOF_INT if( size > (size_t) INT_MAX ) #else if( size > (size_t) SSIZE_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( size > 0 ) { #if PY_MAJOR_VERSION >= 3 method_name = PyUnicode_FromString( "write" ); #else method_name = PyString_FromString( "write" ); #endif #if PY_MAJOR_VERSION >= 3 argument_string = PyBytes_FromStringAndSize( (char *) buffer, size ); #else argument_string = PyString_FromStringAndSize( (char *) buffer, size ); #endif PyErr_Clear(); method_result = PyObject_CallMethodObjArgs( file_object, method_name, argument_string, NULL ); if( PyErr_Occurred() ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write to file object.", function ); goto on_error; } if( method_result == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing method result.", function ); goto on_error; } Py_DecRef( method_result ); Py_DecRef( argument_string ); Py_DecRef( method_name ); } return( (ssize_t) size ); on_error: if( method_result != NULL ) { Py_DecRef( method_result ); } if( argument_string != NULL ) { Py_DecRef( argument_string ); } if( method_name != NULL ) { Py_DecRef( method_name ); } return( -1 ); } /* Writes a buffer to the file object IO handle * Returns the number of bytes written if successful, or -1 on error */ ssize_t pyfsapfs_file_object_io_handle_write( pyfsapfs_file_object_io_handle_t *file_object_io_handle, const uint8_t *buffer, size_t size, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_write"; PyGILState_STATE gil_state = 0; ssize_t write_count = 0; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } gil_state = PyGILState_Ensure(); write_count = pyfsapfs_file_object_write_buffer( file_object_io_handle->file_object, buffer, size, error ); if( write_count == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write from file object.", function ); goto on_error; } PyGILState_Release( gil_state ); return( write_count ); on_error: PyGILState_Release( gil_state ); return( -1 ); } /* Seeks a certain offset within the file object * Make sure to hold the GIL state before calling this function * Returns 1 if successful or -1 on error */ int pyfsapfs_file_object_seek_offset( PyObject *file_object, off64_t offset, int whence, libcerror_error_t **error ) { PyObject *argument_offset = NULL; PyObject *argument_whence = NULL; PyObject *method_name = NULL; PyObject *method_result = NULL; static char *function = "pyfsapfs_file_object_seek_offset"; if( file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object.", function ); return( -1 ); } #if defined( HAVE_LONG_LONG ) if( offset > (off64_t) INT64_MAX ) #else if( offset > (off64_t) LONG_MAX ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid offset value exceeds maximum.", function ); return( -1 ); } if( ( whence != SEEK_CUR ) && ( whence != SEEK_END ) && ( whence != SEEK_SET ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported whence.", function ); return( -1 ); } #if PY_MAJOR_VERSION >= 3 method_name = PyUnicode_FromString( "seek" ); #else method_name = PyString_FromString( "seek" ); #endif #if defined( HAVE_LONG_LONG ) argument_offset = PyLong_FromLongLong( (PY_LONG_LONG) offset ); #else argument_offset = PyLong_FromLongLong( (long) offset ); #endif #if PY_MAJOR_VERSION >= 3 argument_whence = PyLong_FromLong( (long) whence ); #else argument_whence = PyInt_FromLong( (long) whence ); #endif PyErr_Clear(); method_result = PyObject_CallMethodObjArgs( file_object, method_name, argument_offset, argument_whence, NULL ); if( PyErr_Occurred() ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek in file object.", function ); goto on_error; } if( method_result == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing method result.", function ); goto on_error; } Py_DecRef( method_result ); Py_DecRef( argument_whence ); Py_DecRef( argument_offset ); Py_DecRef( method_name ); return( 1 ); on_error: if( method_result != NULL ) { Py_DecRef( method_result ); } if( argument_whence != NULL ) { Py_DecRef( argument_whence ); } if( argument_offset != NULL ) { Py_DecRef( argument_offset ); } if( method_name != NULL ) { Py_DecRef( method_name ); } return( -1 ); } /* Retrieves the current offset within the file object * Make sure to hold the GIL state before calling this function * Returns 1 if successful or -1 on error */ int pyfsapfs_file_object_get_offset( PyObject *file_object, off64_t *offset, libcerror_error_t **error ) { PyObject *method_name = NULL; PyObject *method_result = NULL; static char *function = "pyfsapfs_file_object_get_offset"; int result = 0; if( file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object.", function ); return( -1 ); } if( offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid offset.", function ); return( -1 ); } #if PY_MAJOR_VERSION >= 3 method_name = PyUnicode_FromString( "get_offset" ); #else method_name = PyString_FromString( "get_offset" ); #endif PyErr_Clear(); /* Determine if the file object has the get_offset method */ result = PyObject_HasAttr( file_object, method_name ); if( result == 0 ) { Py_DecRef( method_name ); /* Fall back to the tell method */ #if PY_MAJOR_VERSION >= 3 method_name = PyUnicode_FromString( "tell" ); #else method_name = PyString_FromString( "tell" ); #endif } PyErr_Clear(); method_result = PyObject_CallMethodObjArgs( file_object, method_name, NULL ); if( PyErr_Occurred() ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current offset in file object.", function ); goto on_error; } if( method_result == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing method result.", function ); goto on_error; } if( pyfsapfs_integer_signed_copy_to_64bit( method_result, offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to convert method result into current offset of file object.", function ); goto on_error; } Py_DecRef( method_result ); Py_DecRef( method_name ); return( 1 ); on_error: if( method_result != NULL ) { Py_DecRef( method_result ); } if( method_name != NULL ) { Py_DecRef( method_name ); } return( -1 ); } /* Seeks a certain offset within the file object IO handle * Returns the offset if the seek is successful or -1 on error */ off64_t pyfsapfs_file_object_io_handle_seek_offset( pyfsapfs_file_object_io_handle_t *file_object_io_handle, off64_t offset, int whence, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_seek_offset"; PyGILState_STATE gil_state = 0; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } gil_state = PyGILState_Ensure(); if( pyfsapfs_file_object_seek_offset( file_object_io_handle->file_object, offset, whence, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek in file object.", function ); goto on_error; } if( pyfsapfs_file_object_get_offset( file_object_io_handle->file_object, &offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to retrieve current offset in file object.", function ); goto on_error; } PyGILState_Release( gil_state ); return( offset ); on_error: PyGILState_Release( gil_state ); return( -1 ); } /* Function to determine if a file exists * Returns 1 if file exists, 0 if not or -1 on error */ int pyfsapfs_file_object_io_handle_exists( pyfsapfs_file_object_io_handle_t *file_object_io_handle, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_exists"; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } if( file_object_io_handle->file_object == NULL ) { return( 0 ); } return( 1 ); } /* Check if the file is open * Returns 1 if open, 0 if not or -1 on error */ int pyfsapfs_file_object_io_handle_is_open( pyfsapfs_file_object_io_handle_t *file_object_io_handle, libcerror_error_t **error ) { static char *function = "pyfsapfs_file_object_io_handle_is_open"; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } if( file_object_io_handle->file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file object IO handle - missing file object.", function ); return( -1 ); } /* As far as BFIO is concerned the file object is always open */ return( 1 ); } /* Retrieves the size of the file object * Make sure to hold the GIL state before calling this function * Returns 1 if successful or -1 on error */ int pyfsapfs_file_object_get_size( PyObject *file_object, size64_t *size, libcerror_error_t **error ) { PyObject *method_name = NULL; PyObject *method_result = NULL; static char *function = "pyfsapfs_file_object_get_size"; if( file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } #if PY_MAJOR_VERSION >= 3 method_name = PyUnicode_FromString( "get_size" ); #else method_name = PyString_FromString( "get_size" ); #endif PyErr_Clear(); method_result = PyObject_CallMethodObjArgs( file_object, method_name, NULL ); if( PyErr_Occurred() ) { pyfsapfs_error_fetch( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size of file object.", function ); goto on_error; } if( method_result == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing method result.", function ); goto on_error; } if( pyfsapfs_integer_unsigned_copy_to_64bit( method_result, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to convert method result into size of file object.", function ); goto on_error; } Py_DecRef( method_result ); Py_DecRef( method_name ); return( 1 ); on_error: if( method_result != NULL ) { Py_DecRef( method_result ); } if( method_name != NULL ) { Py_DecRef( method_name ); } return( -1 ); } /* Retrieves the file size * Returns 1 if successful or -1 on error */ int pyfsapfs_file_object_io_handle_get_size( pyfsapfs_file_object_io_handle_t *file_object_io_handle, size64_t *size, libcerror_error_t **error ) { PyObject *method_name = NULL; static char *function = "pyfsapfs_file_object_io_handle_get_size"; PyGILState_STATE gil_state = 0; off64_t current_offset = 0; int result = 0; if( file_object_io_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file object IO handle.", function ); return( -1 ); } if( file_object_io_handle->file_object == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid file object IO handle - missing file object.", function ); return( -1 ); } gil_state = PyGILState_Ensure(); #if PY_MAJOR_VERSION >= 3 method_name = PyUnicode_FromString( "get_size" ); #else method_name = PyString_FromString( "get_size" ); #endif PyErr_Clear(); /* Determine if the file object has the get_size method */ result = PyObject_HasAttr( file_object_io_handle->file_object, method_name ); if( result != 0 ) { if( pyfsapfs_file_object_get_size( file_object_io_handle->file_object, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size of file object.", function ); goto on_error; } } else { if( pyfsapfs_file_object_get_offset( file_object_io_handle->file_object, ¤t_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve current offset in file object.", function ); goto on_error; } if( pyfsapfs_file_object_seek_offset( file_object_io_handle->file_object, 0, SEEK_END, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek end of file object.", function ); goto on_error; } if( pyfsapfs_file_object_get_offset( file_object_io_handle->file_object, (off64_t *) size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve end offset in file object.", function ); pyfsapfs_file_object_seek_offset( file_object_io_handle->file_object, current_offset, SEEK_SET, NULL ); goto on_error; } if( pyfsapfs_file_object_seek_offset( file_object_io_handle->file_object, current_offset, SEEK_SET, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek current offset in file object.", function ); goto on_error; } } Py_DecRef( method_name ); PyGILState_Release( gil_state ); return( 1 ); on_error: if( method_name != NULL ) { Py_DecRef( method_name ); } PyGILState_Release( gil_state ); return( 1 ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_python.h0000664000175000017500000000346413426637447023312 0ustar00lordyestalordyesta00000000000000/* * The python header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_PYTHON_H ) #define _PYFSAPFS_PYTHON_H #include #if PY_MAJOR_VERSION < 3 /* Fix defines in pyconfig.h */ #undef _POSIX_C_SOURCE #undef _XOPEN_SOURCE /* Fix defines in pyport.h */ #undef HAVE_FSTAT #undef HAVE_STAT #undef HAVE_SSIZE_T #undef HAVE_INT32_T #undef HAVE_UINT32_T #undef HAVE_INT64_T #undef HAVE_UINT64_T #endif /* PY_MAJOR_VERSION < 3 */ #include /* Python compatibility macros */ #if !defined( PyMODINIT_FUNC ) #if PY_MAJOR_VERSION >= 3 #define PyMODINIT_FUNC PyObject * #else #define PyMODINIT_FUNC void #endif #endif /* !defined( PyMODINIT_FUNC ) */ #if !defined( PyVarObject_HEAD_INIT ) #define PyVarObject_HEAD_INIT( type, size ) \ PyObject_HEAD_INIT( type ) \ size, #endif /* !defined( PyVarObject_HEAD_INIT ) */ #if PY_MAJOR_VERSION >= 3 #define Py_TPFLAGS_HAVE_ITER 0 #endif #if !defined( Py_TYPE ) #define Py_TYPE( object ) \ ( ( (PyObject *) object )->ob_type ) #endif /* !defined( Py_TYPE ) */ #endif /* !defined( _PYFSAPFS_PYTHON_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_extended_attributes.c0000664000175000017500000002331313426637447026025 0ustar00lordyestalordyesta00000000000000/* * Python object definition of the sequence and iterator object of extended attributes * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs_extended_attribute.h" #include "pyfsapfs_extended_attributes.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" PySequenceMethods pyfsapfs_extended_attributes_sequence_methods = { /* sq_length */ (lenfunc) pyfsapfs_extended_attributes_len, /* sq_concat */ 0, /* sq_repeat */ 0, /* sq_item */ (ssizeargfunc) pyfsapfs_extended_attributes_getitem, /* sq_slice */ 0, /* sq_ass_item */ 0, /* sq_ass_slice */ 0, /* sq_contains */ 0, /* sq_inplace_concat */ 0, /* sq_inplace_repeat */ 0 }; PyTypeObject pyfsapfs_extended_attributes_type_object = { PyVarObject_HEAD_INIT( NULL, 0 ) /* tp_name */ "pyfsapfs.extended_attributes", /* tp_basicsize */ sizeof( pyfsapfs_extended_attributes_t ), /* tp_itemsize */ 0, /* tp_dealloc */ (destructor) pyfsapfs_extended_attributes_free, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ 0, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ &pyfsapfs_extended_attributes_sequence_methods, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_ITER, /* tp_doc */ "pyfsapfs sequence and iterator object of extended attributes", /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ (getiterfunc) pyfsapfs_extended_attributes_iter, /* tp_iternext */ (iternextfunc) pyfsapfs_extended_attributes_iternext, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ (initproc) pyfsapfs_extended_attributes_init, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ NULL, /* tp_mro */ NULL, /* tp_cache */ NULL, /* tp_subclasses */ NULL, /* tp_weaklist */ NULL, /* tp_del */ 0 }; /* Creates a new extended attributes sequence and iterator object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_extended_attributes_new( PyObject *parent_object, PyObject* (*get_item_by_index)( PyObject *parent_object, int index ), int number_of_items ) { pyfsapfs_extended_attributes_t *sequence_object = NULL; static char *function = "pyfsapfs_extended_attributes_new"; if( parent_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid parent object.", function ); return( NULL ); } if( get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid get item by index function.", function ); return( NULL ); } /* Make sure the extended attributes values are initialized */ sequence_object = PyObject_New( struct pyfsapfs_extended_attributes, &pyfsapfs_extended_attributes_type_object ); if( sequence_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create sequence object.", function ); goto on_error; } sequence_object->parent_object = parent_object; sequence_object->get_item_by_index = get_item_by_index; sequence_object->current_index = 0; sequence_object->number_of_items = number_of_items; Py_IncRef( (PyObject *) sequence_object->parent_object ); return( (PyObject *) sequence_object ); on_error: if( sequence_object != NULL ) { Py_DecRef( (PyObject *) sequence_object ); } return( NULL ); } /* Intializes an extended attributes sequence and iterator object * Returns 0 if successful or -1 on error */ int pyfsapfs_extended_attributes_init( pyfsapfs_extended_attributes_t *sequence_object ) { static char *function = "pyfsapfs_extended_attributes_init"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( -1 ); } /* Make sure the extended attributes values are initialized */ sequence_object->parent_object = NULL; sequence_object->get_item_by_index = NULL; sequence_object->current_index = 0; sequence_object->number_of_items = 0; PyErr_Format( PyExc_NotImplementedError, "%s: initialize of extended attributes not supported.", function ); return( 0 ); } /* Frees an extended attributes sequence object */ void pyfsapfs_extended_attributes_free( pyfsapfs_extended_attributes_t *sequence_object ) { struct _typeobject *ob_type = NULL; static char *function = "pyfsapfs_extended_attributes_free"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return; } ob_type = Py_TYPE( sequence_object ); if( ob_type == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing ob_type.", function ); return; } if( ob_type->tp_free == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid ob_type - missing tp_free.", function ); return; } if( sequence_object->parent_object != NULL ) { Py_DecRef( (PyObject *) sequence_object->parent_object ); } ob_type->tp_free( (PyObject*) sequence_object ); } /* The extended attributes len() function */ Py_ssize_t pyfsapfs_extended_attributes_len( pyfsapfs_extended_attributes_t *sequence_object ) { static char *function = "pyfsapfs_extended_attributes_len"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( -1 ); } return( (Py_ssize_t) sequence_object->number_of_items ); } /* The extended attributes getitem() function */ PyObject *pyfsapfs_extended_attributes_getitem( pyfsapfs_extended_attributes_t *sequence_object, Py_ssize_t item_index ) { PyObject *extended_attribute_object = NULL; static char *function = "pyfsapfs_extended_attributes_getitem"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } if( sequence_object->get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - missing get item by index function.", function ); return( NULL ); } if( sequence_object->number_of_items < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid number of items.", function ); return( NULL ); } if( ( item_index < 0 ) || ( item_index >= (Py_ssize_t) sequence_object->number_of_items ) ) { PyErr_Format( PyExc_ValueError, "%s: invalid invalid item index value out of bounds.", function ); return( NULL ); } extended_attribute_object = sequence_object->get_item_by_index( sequence_object->parent_object, (int) item_index ); return( extended_attribute_object ); } /* The extended attributes iter() function */ PyObject *pyfsapfs_extended_attributes_iter( pyfsapfs_extended_attributes_t *sequence_object ) { static char *function = "pyfsapfs_extended_attributes_iter"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } Py_IncRef( (PyObject *) sequence_object ); return( (PyObject *) sequence_object ); } /* The extended attributes iternext() function */ PyObject *pyfsapfs_extended_attributes_iternext( pyfsapfs_extended_attributes_t *sequence_object ) { PyObject *extended_attribute_object = NULL; static char *function = "pyfsapfs_extended_attributes_iternext"; if( sequence_object == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object.", function ); return( NULL ); } if( sequence_object->get_item_by_index == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - missing get item by index function.", function ); return( NULL ); } if( sequence_object->current_index < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid current index.", function ); return( NULL ); } if( sequence_object->number_of_items < 0 ) { PyErr_Format( PyExc_ValueError, "%s: invalid sequence object - invalid number of items.", function ); return( NULL ); } if( sequence_object->current_index >= sequence_object->number_of_items ) { PyErr_SetNone( PyExc_StopIteration ); return( NULL ); } extended_attribute_object = sequence_object->get_item_by_index( sequence_object->parent_object, sequence_object->current_index ); if( extended_attribute_object != NULL ) { sequence_object->current_index++; } return( extended_attribute_object ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_libbfio.h0000664000175000017500000000277213426637447023400 0ustar00lordyestalordyesta00000000000000/* * The libbfio header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_LIBBFIO_H ) #define _PYFSAPFS_LIBBFIO_H #include /* Define HAVE_LOCAL_LIBBFIO for local use of libbfio */ #if defined( HAVE_LOCAL_LIBBFIO ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBBFIO_DLL_IMPORT * before including libbfio.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBBFIO_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBBFIO ) */ #endif /* !defined( _PYFSAPFS_LIBBFIO_H ) */ libfsapfs-20190210/pyfsapfs/Makefile.in0000664000175000017500000015205313430101254021722 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = pyfsapfs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pyexecdir)" LTLIBRARIES = $(pyexec_LTLIBRARIES) @HAVE_PYTHON_TRUE@pyfsapfs_la_DEPENDENCIES = \ @HAVE_PYTHON_TRUE@ ../libfsapfs/libfsapfs.la am__pyfsapfs_la_SOURCES_DIST = pyfsapfs.c pyfsapfs.h \ pyfsapfs_container.c pyfsapfs_container.h pyfsapfs_datetime.c \ pyfsapfs_datetime.h pyfsapfs_error.c pyfsapfs_error.h \ pyfsapfs_extended_attribute.c pyfsapfs_extended_attribute.h \ pyfsapfs_extended_attributes.c pyfsapfs_extended_attributes.h \ pyfsapfs_file_entries.c pyfsapfs_file_entries.h \ pyfsapfs_file_entry.c pyfsapfs_file_entry.h \ pyfsapfs_file_object_io_handle.c \ pyfsapfs_file_object_io_handle.h pyfsapfs_guid.c \ pyfsapfs_guid.h pyfsapfs_integer.c pyfsapfs_integer.h \ pyfsapfs_libbfio.h pyfsapfs_libcerror.h pyfsapfs_libclocale.h \ pyfsapfs_libfguid.h pyfsapfs_libfsapfs.h pyfsapfs_python.h \ pyfsapfs_unused.h pyfsapfs_volume.c pyfsapfs_volume.h \ pyfsapfs_volumes.c pyfsapfs_volumes.h @HAVE_PYTHON_TRUE@am_pyfsapfs_la_OBJECTS = pyfsapfs_la-pyfsapfs.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_container.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_datetime.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_error.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_extended_attribute.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_extended_attributes.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_file_entries.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_file_entry.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_file_object_io_handle.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_guid.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_integer.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_volume.lo \ @HAVE_PYTHON_TRUE@ pyfsapfs_la-pyfsapfs_volumes.lo pyfsapfs_la_OBJECTS = $(am_pyfsapfs_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = pyfsapfs_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(pyfsapfs_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_PYTHON_TRUE@am_pyfsapfs_la_rpath = -rpath $(pyexecdir) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo \ ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(pyfsapfs_la_SOURCES) DIST_SOURCES = $(am__pyfsapfs_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_PYTHON_TRUE@AM_CFLAGS = \ @HAVE_PYTHON_TRUE@ -I$(top_srcdir)/include \ @HAVE_PYTHON_TRUE@ -I$(top_srcdir)/common \ @HAVE_PYTHON_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBCDATA_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBCLOCALE_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBCSPLIT_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBUNA_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBCFILE_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBCPATH_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBBFIO_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBFGUID_CPPFLAGS@ \ @HAVE_PYTHON_TRUE@ @LIBFSAPFS_DLL_IMPORT@ @HAVE_PYTHON_TRUE@pyexec_LTLIBRARIES = pyfsapfs.la @HAVE_PYTHON_TRUE@pyfsapfs_la_SOURCES = \ @HAVE_PYTHON_TRUE@ pyfsapfs.c pyfsapfs.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_container.c pyfsapfs_container.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_datetime.c pyfsapfs_datetime.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_error.c pyfsapfs_error.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_extended_attribute.c pyfsapfs_extended_attribute.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_extended_attributes.c pyfsapfs_extended_attributes.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_file_entries.c pyfsapfs_file_entries.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_file_entry.c pyfsapfs_file_entry.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_file_object_io_handle.c pyfsapfs_file_object_io_handle.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_guid.c pyfsapfs_guid.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_integer.c pyfsapfs_integer.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_libbfio.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_libcerror.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_libclocale.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_libfguid.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_libfsapfs.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_python.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_unused.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_volume.c pyfsapfs_volume.h \ @HAVE_PYTHON_TRUE@ pyfsapfs_volumes.c pyfsapfs_volumes.h @HAVE_PYTHON_TRUE@pyfsapfs_la_LIBADD = \ @HAVE_PYTHON_TRUE@ @LIBCERROR_LIBADD@ \ @HAVE_PYTHON_TRUE@ ../libfsapfs/libfsapfs.la \ @HAVE_PYTHON_TRUE@ @LIBCDATA_LIBADD@ \ @HAVE_PYTHON_TRUE@ @LIBCLOCALE_LIBADD@ \ @HAVE_PYTHON_TRUE@ @LIBCSPLIT_LIBADD@ \ @HAVE_PYTHON_TRUE@ @LIBUNA_LIBADD@ \ @HAVE_PYTHON_TRUE@ @LIBCFILE_LIBADD@ \ @HAVE_PYTHON_TRUE@ @LIBCPATH_LIBADD@ \ @HAVE_PYTHON_TRUE@ @LIBBFIO_LIBADD@ \ @HAVE_PYTHON_TRUE@ @LIBFGUID_LIBADD@ @HAVE_PYTHON_TRUE@pyfsapfs_la_CPPFLAGS = $(PYTHON_CPPFLAGS) @HAVE_PYTHON_TRUE@pyfsapfs_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pyfsapfs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu pyfsapfs/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pyexecLTLIBRARIES: $(pyexec_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(pyexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pyexecdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pyexecdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pyexecdir)"; \ } uninstall-pyexecLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(pyexec_LTLIBRARIES)'; test -n "$(pyexecdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$f"; \ done clean-pyexecLTLIBRARIES: -test -z "$(pyexec_LTLIBRARIES)" || rm -f $(pyexec_LTLIBRARIES) @list='$(pyexec_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } pyfsapfs.la: $(pyfsapfs_la_OBJECTS) $(pyfsapfs_la_DEPENDENCIES) $(EXTRA_pyfsapfs_la_DEPENDENCIES) $(AM_V_CCLD)$(pyfsapfs_la_LINK) $(am_pyfsapfs_la_rpath) $(pyfsapfs_la_OBJECTS) $(pyfsapfs_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< pyfsapfs_la-pyfsapfs.lo: pyfsapfs.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs.Tpo -c -o pyfsapfs_la-pyfsapfs.lo `test -f 'pyfsapfs.c' || echo '$(srcdir)/'`pyfsapfs.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs.c' object='pyfsapfs_la-pyfsapfs.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs.lo `test -f 'pyfsapfs.c' || echo '$(srcdir)/'`pyfsapfs.c pyfsapfs_la-pyfsapfs_container.lo: pyfsapfs_container.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_container.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Tpo -c -o pyfsapfs_la-pyfsapfs_container.lo `test -f 'pyfsapfs_container.c' || echo '$(srcdir)/'`pyfsapfs_container.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_container.c' object='pyfsapfs_la-pyfsapfs_container.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_container.lo `test -f 'pyfsapfs_container.c' || echo '$(srcdir)/'`pyfsapfs_container.c pyfsapfs_la-pyfsapfs_datetime.lo: pyfsapfs_datetime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_datetime.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Tpo -c -o pyfsapfs_la-pyfsapfs_datetime.lo `test -f 'pyfsapfs_datetime.c' || echo '$(srcdir)/'`pyfsapfs_datetime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_datetime.c' object='pyfsapfs_la-pyfsapfs_datetime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_datetime.lo `test -f 'pyfsapfs_datetime.c' || echo '$(srcdir)/'`pyfsapfs_datetime.c pyfsapfs_la-pyfsapfs_error.lo: pyfsapfs_error.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_error.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Tpo -c -o pyfsapfs_la-pyfsapfs_error.lo `test -f 'pyfsapfs_error.c' || echo '$(srcdir)/'`pyfsapfs_error.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_error.c' object='pyfsapfs_la-pyfsapfs_error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_error.lo `test -f 'pyfsapfs_error.c' || echo '$(srcdir)/'`pyfsapfs_error.c pyfsapfs_la-pyfsapfs_extended_attribute.lo: pyfsapfs_extended_attribute.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_extended_attribute.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Tpo -c -o pyfsapfs_la-pyfsapfs_extended_attribute.lo `test -f 'pyfsapfs_extended_attribute.c' || echo '$(srcdir)/'`pyfsapfs_extended_attribute.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_extended_attribute.c' object='pyfsapfs_la-pyfsapfs_extended_attribute.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_extended_attribute.lo `test -f 'pyfsapfs_extended_attribute.c' || echo '$(srcdir)/'`pyfsapfs_extended_attribute.c pyfsapfs_la-pyfsapfs_extended_attributes.lo: pyfsapfs_extended_attributes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_extended_attributes.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Tpo -c -o pyfsapfs_la-pyfsapfs_extended_attributes.lo `test -f 'pyfsapfs_extended_attributes.c' || echo '$(srcdir)/'`pyfsapfs_extended_attributes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_extended_attributes.c' object='pyfsapfs_la-pyfsapfs_extended_attributes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_extended_attributes.lo `test -f 'pyfsapfs_extended_attributes.c' || echo '$(srcdir)/'`pyfsapfs_extended_attributes.c pyfsapfs_la-pyfsapfs_file_entries.lo: pyfsapfs_file_entries.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_entries.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Tpo -c -o pyfsapfs_la-pyfsapfs_file_entries.lo `test -f 'pyfsapfs_file_entries.c' || echo '$(srcdir)/'`pyfsapfs_file_entries.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_entries.c' object='pyfsapfs_la-pyfsapfs_file_entries.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_entries.lo `test -f 'pyfsapfs_file_entries.c' || echo '$(srcdir)/'`pyfsapfs_file_entries.c pyfsapfs_la-pyfsapfs_file_entry.lo: pyfsapfs_file_entry.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_entry.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Tpo -c -o pyfsapfs_la-pyfsapfs_file_entry.lo `test -f 'pyfsapfs_file_entry.c' || echo '$(srcdir)/'`pyfsapfs_file_entry.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_entry.c' object='pyfsapfs_la-pyfsapfs_file_entry.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_entry.lo `test -f 'pyfsapfs_file_entry.c' || echo '$(srcdir)/'`pyfsapfs_file_entry.c pyfsapfs_la-pyfsapfs_file_object_io_handle.lo: pyfsapfs_file_object_io_handle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_file_object_io_handle.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Tpo -c -o pyfsapfs_la-pyfsapfs_file_object_io_handle.lo `test -f 'pyfsapfs_file_object_io_handle.c' || echo '$(srcdir)/'`pyfsapfs_file_object_io_handle.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_file_object_io_handle.c' object='pyfsapfs_la-pyfsapfs_file_object_io_handle.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_file_object_io_handle.lo `test -f 'pyfsapfs_file_object_io_handle.c' || echo '$(srcdir)/'`pyfsapfs_file_object_io_handle.c pyfsapfs_la-pyfsapfs_guid.lo: pyfsapfs_guid.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_guid.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Tpo -c -o pyfsapfs_la-pyfsapfs_guid.lo `test -f 'pyfsapfs_guid.c' || echo '$(srcdir)/'`pyfsapfs_guid.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_guid.c' object='pyfsapfs_la-pyfsapfs_guid.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_guid.lo `test -f 'pyfsapfs_guid.c' || echo '$(srcdir)/'`pyfsapfs_guid.c pyfsapfs_la-pyfsapfs_integer.lo: pyfsapfs_integer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_integer.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Tpo -c -o pyfsapfs_la-pyfsapfs_integer.lo `test -f 'pyfsapfs_integer.c' || echo '$(srcdir)/'`pyfsapfs_integer.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_integer.c' object='pyfsapfs_la-pyfsapfs_integer.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_integer.lo `test -f 'pyfsapfs_integer.c' || echo '$(srcdir)/'`pyfsapfs_integer.c pyfsapfs_la-pyfsapfs_volume.lo: pyfsapfs_volume.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_volume.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Tpo -c -o pyfsapfs_la-pyfsapfs_volume.lo `test -f 'pyfsapfs_volume.c' || echo '$(srcdir)/'`pyfsapfs_volume.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_volume.c' object='pyfsapfs_la-pyfsapfs_volume.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_volume.lo `test -f 'pyfsapfs_volume.c' || echo '$(srcdir)/'`pyfsapfs_volume.c pyfsapfs_la-pyfsapfs_volumes.lo: pyfsapfs_volumes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT pyfsapfs_la-pyfsapfs_volumes.lo -MD -MP -MF $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Tpo -c -o pyfsapfs_la-pyfsapfs_volumes.lo `test -f 'pyfsapfs_volumes.c' || echo '$(srcdir)/'`pyfsapfs_volumes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Tpo $(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pyfsapfs_volumes.c' object='pyfsapfs_la-pyfsapfs_volumes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pyfsapfs_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o pyfsapfs_la-pyfsapfs_volumes.lo `test -f 'pyfsapfs_volumes.c' || echo '$(srcdir)/'`pyfsapfs_volumes.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(pyexecdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-pyexecLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-pyexecLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_container.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_datetime.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_error.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attribute.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_extended_attributes.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entries.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_entry.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_file_object_io_handle.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_guid.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_integer.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volume.Plo -rm -f ./$(DEPDIR)/pyfsapfs_la-pyfsapfs_volumes.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pyexecLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-pyexecLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am \ install-pyexecLTLIBRARIES install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-pyexecLTLIBRARIES .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/pyfsapfs/pyfsapfs_integer.h0000664000175000017500000000302313426637447023415 0ustar00lordyestalordyesta00000000000000/* * Integer functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_INTEGER_H ) #define _PYFSAPFS_INTEGER_H #include #include #include "pyfsapfs_libcerror.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif PyObject *pyfsapfs_integer_signed_new_from_64bit( int64_t value_64bit ); PyObject *pyfsapfs_integer_unsigned_new_from_64bit( uint64_t value_64bit ); int pyfsapfs_integer_signed_copy_to_64bit( PyObject *integer_object, int64_t *value_64bit, libcerror_error_t **error ); int pyfsapfs_integer_unsigned_copy_to_64bit( PyObject *integer_object, uint64_t *value_64bit, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_INTEGER_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs.h0000664000175000017500000000354713426637447021713 0ustar00lordyestalordyesta00000000000000/* * Python bindings module for libfsapfs (pyfsapfs) * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_H ) #define _PYFSAPFS_H #include #include #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif PyObject *pyfsapfs_get_version( PyObject *self, PyObject *arguments ); PyObject *pyfsapfs_check_container_signature( PyObject *self, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_check_container_signature_file_object( PyObject *self, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_open_new_container( PyObject *self, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_open_new_container_with_file_object( PyObject *self, PyObject *arguments, PyObject *keywords ); #if PY_MAJOR_VERSION >= 3 PyMODINIT_FUNC PyInit_pyfsapfs( void ); #else PyMODINIT_FUNC initpyfsapfs( void ); #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_libfsapfs.h0000664000175000017500000000172713426637447023742 0ustar00lordyestalordyesta00000000000000/* * The internal libfsapfs header * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_LIBFSAPFS_H ) #define _PYFSAPFS_LIBFSAPFS_H #include #include #endif /* !defined( _PYFSAPFS_LIBFSAPFS_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_volume.c0000664000175000017500000010405713426640135023257 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_volume_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs_error.h" #include "pyfsapfs_file_entry.h" #include "pyfsapfs_file_object_io_handle.h" #include "pyfsapfs_guid.h" #include "pyfsapfs_integer.h" #include "pyfsapfs_libbfio.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #include "pyfsapfs_unused.h" #include "pyfsapfs_volume.h" #if !defined( LIBFSAPFS_HAVE_BFIO ) LIBFSAPFS_EXTERN \ int libfsapfs_volume_open_file_io_handle( libfsapfs_volume_t *volume, libbfio_handle_t *file_io_handle, int access_flags, libfsapfs_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ PyMethodDef pyfsapfs_volume_object_methods[] = { { "signal_abort", (PyCFunction) pyfsapfs_volume_signal_abort, METH_NOARGS, "signal_abort() -> None\n" "\n" "Signals the volume to abort the current activity." }, { "open", (PyCFunction) pyfsapfs_volume_open, METH_VARARGS | METH_KEYWORDS, "open(filename, mode='r') -> None\n" "\n" "Opens a volume." }, { "open_file_object", (PyCFunction) pyfsapfs_volume_open_file_object, METH_VARARGS | METH_KEYWORDS, "open_file_object(file_object, mode='r') -> None\n" "\n" "Opens a volume using a file-like object." }, { "close", (PyCFunction) pyfsapfs_volume_close, METH_NOARGS, "close() -> None\n" "\n" "Closes a volume." }, { "unlock", (PyCFunction) pyfsapfs_volume_unlock, METH_NOARGS, "unlock() -> Boolean\n" "\n" "Unlock a volume." }, { "get_size", (PyCFunction) pyfsapfs_volume_get_size, METH_NOARGS, "get_size() -> Integer\n" "\n" "Retrieves the size." }, { "get_identifier", (PyCFunction) pyfsapfs_volume_get_identifier, METH_NOARGS, "get_identifier() -> Unicode string\n" "\n" "Retrieves the identifier." }, { "get_name", (PyCFunction) pyfsapfs_volume_get_name, METH_NOARGS, "get_name() -> Unicode string\n" "\n" "Retrieves the name." }, { "is_locked", (PyCFunction) pyfsapfs_volume_is_locked, METH_NOARGS, "is_locked() -> Boolean or None\n" "\n" "Determines if the volume is locked." }, { "set_password", (PyCFunction) pyfsapfs_volume_set_password, METH_VARARGS | METH_KEYWORDS, "set_password(password) -> None\n" "\n" "Sets the password." }, { "set_recovery_password", (PyCFunction) pyfsapfs_volume_set_recovery_password, METH_VARARGS | METH_KEYWORDS, "set_recovery_password(recovery_password) -> None\n" "\n" "Sets the recovery password." }, { "get_next_file_entry_identifier", (PyCFunction) pyfsapfs_volume_get_next_file_entry_identifier, METH_NOARGS, "get_next_file_entry_identifier() -> Integer\n" "\n" "Retrieves the next file entry identifier." }, { "get_file_entry_by_identifier", (PyCFunction) pyfsapfs_volume_get_file_entry_by_identifier, METH_VARARGS | METH_KEYWORDS, "get_file_entry_by_identifier(identifier) -> Object or None\n" "\n" "Retrieves the file entry specified by the identifier." }, { "get_root_directory", (PyCFunction) pyfsapfs_volume_get_root_directory, METH_NOARGS, "get_root_directory() -> Object\n" "\n" "Retrieves the root directory file entry." }, { "get_file_entry_by_path", (PyCFunction) pyfsapfs_volume_get_file_entry_by_path, METH_VARARGS | METH_KEYWORDS, "get_file_entry_by_path(path) -> Object or None\n" "\n" "Retrieves the file entry for an UTF-8 encoded path specified by the path." }, /* Sentinel */ { NULL, NULL, 0, NULL } }; PyGetSetDef pyfsapfs_volume_object_get_set_definitions[] = { { "size", (getter) pyfsapfs_volume_get_size, (setter) 0, "The size.", NULL }, { "identifier", (getter) pyfsapfs_volume_get_identifier, (setter) 0, "The identifier.", NULL }, { "name", (getter) pyfsapfs_volume_get_name, (setter) 0, "The name.", NULL }, { "next_file_entry_identifier", (getter) pyfsapfs_volume_get_next_file_entry_identifier, (setter) 0, "The next file entry identifier.", NULL }, { "root_directory", (getter) pyfsapfs_volume_get_root_directory, (setter) 0, "The root directory file entry.", NULL }, /* Sentinel */ { NULL, NULL, NULL, NULL, NULL } }; PyTypeObject pyfsapfs_volume_type_object = { PyVarObject_HEAD_INIT( NULL, 0 ) /* tp_name */ "pyfsapfs.volume", /* tp_basicsize */ sizeof( pyfsapfs_volume_t ), /* tp_itemsize */ 0, /* tp_dealloc */ (destructor) pyfsapfs_volume_free, /* tp_print */ 0, /* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ 0, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ Py_TPFLAGS_DEFAULT, /* tp_doc */ "pyfsapfs volume object (wraps libfsapfs_volume_t)", /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ pyfsapfs_volume_object_methods, /* tp_members */ 0, /* tp_getset */ pyfsapfs_volume_object_get_set_definitions, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ (initproc) pyfsapfs_volume_init, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ NULL, /* tp_mro */ NULL, /* tp_cache */ NULL, /* tp_subclasses */ NULL, /* tp_weaklist */ NULL, /* tp_del */ 0 }; /* Creates a new volume object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_new( libfsapfs_volume_t *volume, PyObject *parent_object ) { pyfsapfs_volume_t *pyfsapfs_volume = NULL; static char *function = "pyfsapfs_volume_new"; if( volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } /* PyObject_New does not invoke tp_init */ pyfsapfs_volume = PyObject_New( struct pyfsapfs_volume, &pyfsapfs_volume_type_object ); if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to initialize volume.", function ); goto on_error; } pyfsapfs_volume->volume = volume; pyfsapfs_volume->parent_object = parent_object; if( pyfsapfs_volume->parent_object != NULL ) { Py_IncRef( pyfsapfs_volume->parent_object ); } return( (PyObject *) pyfsapfs_volume ); on_error: if( pyfsapfs_volume != NULL ) { Py_DecRef( (PyObject *) pyfsapfs_volume ); } return( NULL ); } /* Intializes a volume object * Returns 0 if successful or -1 on error */ int pyfsapfs_volume_init( pyfsapfs_volume_t *pyfsapfs_volume ) { static char *function = "pyfsapfs_volume_init"; if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( -1 ); } /* Make sure libfsapfs volume is set to NULL */ pyfsapfs_volume->volume = NULL; PyErr_Format( PyExc_NotImplementedError, "%s: initialize of volume not supported.", function ); return( -1 ); } /* Frees a volume object */ void pyfsapfs_volume_free( pyfsapfs_volume_t *pyfsapfs_volume ) { struct _typeobject *ob_type = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_free"; int result = 0; if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return; } ob_type = Py_TYPE( pyfsapfs_volume ); if( ob_type == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing ob_type.", function ); return; } if( ob_type->tp_free == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid ob_type - missing tp_free.", function ); return; } if( pyfsapfs_volume->volume != NULL ) { Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_free( &( pyfsapfs_volume->volume ), &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to free libfsapfs volume.", function ); libcerror_error_free( &error ); } } if( pyfsapfs_volume->parent_object != NULL ) { Py_DecRef( pyfsapfs_volume->parent_object ); } ob_type->tp_free( (PyObject*) pyfsapfs_volume ); } /* Signals the volume to abort the current activity * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_signal_abort( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_signal_abort"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_signal_abort( pyfsapfs_volume->volume, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to signal abort.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } /* Opens a volume * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_open( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ) { PyObject *string_object = NULL; libcerror_error_t *error = NULL; const char *filename_narrow = NULL; static char *function = "pyfsapfs_volume_open"; static char *keyword_list[] = { "filename", "mode", NULL }; char *mode = NULL; int result = 0; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) const wchar_t *filename_wide = NULL; #else PyObject *utf8_string_object = NULL; #endif if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } /* Note that PyArg_ParseTupleAndKeywords with "s" will force Unicode strings to be converted to narrow character string. * On Windows the narrow character strings contains an extended ASCII string with a codepage. Hence we get a conversion * exception. This will also fail if the default encoding is not set correctly. We cannot use "u" here either since that * does not allow us to pass non Unicode string objects and Python (at least 2.7) does not seems to automatically upcast them. */ if( PyArg_ParseTupleAndKeywords( arguments, keywords, "O|s", keyword_list, &string_object, &mode ) == 0 ) { return( NULL ); } if( ( mode != NULL ) && ( mode[ 0 ] != 'r' ) ) { PyErr_Format( PyExc_ValueError, "%s: unsupported mode: %s.", function, mode ); return( NULL ); } PyErr_Clear(); result = PyObject_IsInstance( string_object, (PyObject *) &PyUnicode_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if string object is of type unicode.", function ); return( NULL ); } else if( result != 0 ) { PyErr_Clear(); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) filename_wide = (wchar_t *) PyUnicode_AsUnicode( string_object ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_open_wide( pyfsapfs_volume->volume, filename_wide, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS #else utf8_string_object = PyUnicode_AsUTF8String( string_object ); if( utf8_string_object == NULL ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to convert unicode string to UTF-8.", function ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 filename_narrow = PyBytes_AsString( utf8_string_object ); #else filename_narrow = PyString_AsString( utf8_string_object ); #endif Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_open( pyfsapfs_volume->volume, filename_narrow, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS Py_DecRef( utf8_string_object ); #endif if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to open volume.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } PyErr_Clear(); #if PY_MAJOR_VERSION >= 3 result = PyObject_IsInstance( string_object, (PyObject *) &PyBytes_Type ); #else result = PyObject_IsInstance( string_object, (PyObject *) &PyString_Type ); #endif if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if string object is of type string.", function ); return( NULL ); } else if( result != 0 ) { PyErr_Clear(); #if PY_MAJOR_VERSION >= 3 filename_narrow = PyBytes_AsString( string_object ); #else filename_narrow = PyString_AsString( string_object ); #endif Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_open( pyfsapfs_volume->volume, filename_narrow, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to open volume.", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } PyErr_Format( PyExc_TypeError, "%s: unsupported string object type.", function ); return( NULL ); } /* Opens a volume using a file-like object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_open_file_object( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ) { PyObject *file_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_open_file_object"; static char *keyword_list[] = { "file_object", "mode", NULL }; char *mode = NULL; int result = 0; if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "O|s", keyword_list, &file_object, &mode ) == 0 ) { return( NULL ); } if( ( mode != NULL ) && ( mode[ 0 ] != 'r' ) ) { PyErr_Format( PyExc_ValueError, "%s: unsupported mode: %s.", function, mode ); return( NULL ); } if( pyfsapfs_volume->file_io_handle != NULL ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: invalid volume - file IO handle already set.", function ); goto on_error; } if( pyfsapfs_file_object_initialize( &( pyfsapfs_volume->file_io_handle ), file_object, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to initialize file IO handle.", function ); libcerror_error_free( &error ); goto on_error; } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_open_file_io_handle( pyfsapfs_volume->volume, pyfsapfs_volume->file_io_handle, LIBFSAPFS_OPEN_READ, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to open volume.", function ); libcerror_error_free( &error ); goto on_error; } Py_IncRef( Py_None ); return( Py_None ); on_error: if( pyfsapfs_volume->file_io_handle != NULL ) { libbfio_handle_free( &( pyfsapfs_volume->file_io_handle ), NULL ); } return( NULL ); } /* Closes a volume * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_close( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_close"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_close( pyfsapfs_volume->volume, &error ); Py_END_ALLOW_THREADS if( result != 0 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to close volume.", function ); libcerror_error_free( &error ); return( NULL ); } if( pyfsapfs_volume->file_io_handle != NULL ) { Py_BEGIN_ALLOW_THREADS result = libbfio_handle_free( &( pyfsapfs_volume->file_io_handle ), &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to free libbfio file IO handle.", function ); libcerror_error_free( &error ); return( NULL ); } } Py_IncRef( Py_None ); return( Py_None ); } /* Unlocks a volume * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_unlock( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_unlock"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_unlock( pyfsapfs_volume->volume, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to unlock volume.", function ); libcerror_error_free( &error ); return( NULL ); } if( result != 0 ) { Py_IncRef( (PyObject *) Py_True ); return( Py_True ); } Py_IncRef( (PyObject *) Py_False ); return( Py_False ); } /* Retrieves the size * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_get_size( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_get_size"; size64_t size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_size( pyfsapfs_volume->volume, &size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: failed to retrieve size.", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) size ); return( integer_object ); } /* Retrieves the identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_get_identifier( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { uint8_t uuid_data[ 16 ]; PyObject *string_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_get_identifier"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_identifier( pyfsapfs_volume->volume, uuid_data, 16, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve identifier.", function ); libcerror_error_free( &error ); return( NULL ); } string_object = pyfsapfs_string_new_from_guid( uuid_data, 16 ); if( string_object == NULL ) { PyErr_Format( PyExc_IOError, "%s: unable to convert UUID into Unicode object.", function ); return( NULL ); } return( string_object ); } /* Retrieves the name * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_get_name( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *string_object = NULL; libcerror_error_t *error = NULL; const char *errors = NULL; static char *function = "pyfsapfs_volume_get_name"; char *utf8_string = NULL; size_t utf8_string_size = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_utf8_name_size( pyfsapfs_volume->volume, &utf8_string_size, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to determine size of as UTF-8 string.", function ); libcerror_error_free( &error ); goto on_error; } else if( ( result == 0 ) || ( utf8_string_size == 0 ) ) { Py_IncRef( Py_None ); return( Py_None ); } utf8_string = (char *) PyMem_Malloc( sizeof( char ) * utf8_string_size ); if( utf8_string == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create UTF-8 string.", function ); goto on_error; } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_utf8_name( pyfsapfs_volume->volume, (uint8_t *) utf8_string, utf8_string_size, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve as UTF-8 string.", function ); libcerror_error_free( &error ); goto on_error; } /* Pass the string length to PyUnicode_DecodeUTF8 otherwise it makes * the end of string character is part of the string. */ string_object = PyUnicode_DecodeUTF8( utf8_string, (Py_ssize_t) utf8_string_size - 1, errors ); if( string_object == NULL ) { PyErr_Format( PyExc_IOError, "%s: unable to convert UTF-8 string into Unicode object.", function ); goto on_error; } PyMem_Free( utf8_string ); return( string_object ); on_error: if( utf8_string != NULL ) { PyMem_Free( utf8_string ); } return( NULL ); } /* Determines if the volume is locked * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_is_locked( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_is_locked"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_is_locked( pyfsapfs_volume->volume, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to determine if volume is UTF-16 encoded name.", function ); libcerror_error_free( &error ); return( NULL ); } if( result != 0 ) { Py_IncRef( (PyObject *) Py_True ); return( Py_True ); } Py_IncRef( (PyObject *) Py_False ); return( Py_False ); } /* Sets the password * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_set_password( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_set_password"; static char *keyword_list[] = { "password", NULL }; char *utf8_string = NULL; size_t utf8_string_length = 0; int result = 0; if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "s", keyword_list, &utf8_string ) == 0 ) { return( NULL ); } if( utf8_string == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid .", function ); return( NULL ); } utf8_string_length = narrow_string_length( utf8_string ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_set_utf8_password( pyfsapfs_volume->volume, (uint8_t *) utf8_string, utf8_string_length, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to set .", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } /* Sets the recovery password * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_set_recovery_password( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ) { libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_set_recovery_password"; static char *keyword_list[] = { "recovery_password", NULL }; char *utf8_string = NULL; size_t utf8_string_length = 0; int result = 0; if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "s", keyword_list, &utf8_string ) == 0 ) { return( NULL ); } if( utf8_string == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid .", function ); return( NULL ); } utf8_string_length = narrow_string_length( utf8_string ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_set_utf8_recovery_password( pyfsapfs_volume->volume, (uint8_t *) utf8_string, utf8_string_length, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to set .", function ); libcerror_error_free( &error ); return( NULL ); } Py_IncRef( Py_None ); return( Py_None ); } /* Retrieves the next file entry identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_get_next_file_entry_identifier( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *integer_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_volume_get_next_file_entry_identifier"; uint64_t value_64bit = 0; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_next_file_entry_identifier( pyfsapfs_volume->volume, &value_64bit, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve next file entry identifier.", function ); libcerror_error_free( &error ); return( NULL ); } integer_object = pyfsapfs_integer_unsigned_new_from_64bit( (uint64_t) value_64bit ); return( integer_object ); } /* Retrieves a specific of file entry by identifier * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_get_file_entry_by_identifier( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ) { PyObject *file_entry_object = NULL; libcerror_error_t *error = NULL; libfsapfs_file_entry_t *file_entry = NULL; static char *function = "pyfsapfs_volume_get_file_entry_by_identifier"; static char *keyword_list[] = { "file_entry_identifier", NULL }; unsigned long long file_entry_identifier = 0; int result = 0; if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "K", keyword_list, &file_entry_identifier ) == 0 ) { return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_file_entry_by_identifier( ( (pyfsapfs_volume_t *) pyfsapfs_volume )->volume, (uint64_t) file_entry_identifier, &file_entry, &error ); Py_END_ALLOW_THREADS if( result != 1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve of file entry: %d.", function, file_entry_identifier ); libcerror_error_free( &error ); goto on_error; } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } file_entry_object = pyfsapfs_file_entry_new( file_entry, (PyObject *) pyfsapfs_volume ); if( file_entry_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create file entry object.", function ); goto on_error; } return( file_entry_object ); on_error: if( file_entry != NULL ) { libfsapfs_file_entry_free( &file_entry, NULL ); } return( NULL ); } /* Retrieves the root directory file entry * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_get_root_directory( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { PyObject *directory_object = NULL; libcerror_error_t *error = NULL; libfsapfs_file_entry_t *root_directory = NULL; static char *function = "pyfsapfs_volume_get_root_directory"; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_root_directory( pyfsapfs_volume->volume, &root_directory, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve root directory file entry.", function ); libcerror_error_free( &error ); goto on_error; } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } directory_object = pyfsapfs_file_entry_new( root_directory, (PyObject *) pyfsapfs_volume ); if( directory_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create root directory file entry object.", function ); goto on_error; } return( directory_object ); on_error: if( root_directory != NULL ) { libfsapfs_file_entry_free( &root_directory, NULL ); } return( NULL ); } /* Retrieves the file entry specified by the path * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_volume_get_file_entry_by_path( pyfsapfs_volume_t *pyfsapfs_volume, PyObject *arguments, PyObject *keywords ) { PyObject *file_entry_object = NULL; libcerror_error_t *error = NULL; libfsapfs_file_entry_t *file_entry = NULL; static char *function = "pyfsapfs_volume_get_file_entry_by_path"; static char *keyword_list[] = { "path", NULL }; char *utf8_path = NULL; size_t utf8_path_length = 0; int result = 0; if( pyfsapfs_volume == NULL ) { PyErr_Format( PyExc_ValueError, "%s: invalid volume.", function ); return( NULL ); } if( PyArg_ParseTupleAndKeywords( arguments, keywords, "s", keyword_list, &utf8_path ) == 0 ) { goto on_error; } utf8_path_length = narrow_string_length( utf8_path ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_volume_get_file_entry_by_utf8_path( pyfsapfs_volume->volume, (uint8_t *) utf8_path, utf8_path_length, &file_entry, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to retrieve file entry for an UTF-8 encoded path.", function ); libcerror_error_free( &error ); goto on_error; } else if( result == 0 ) { Py_IncRef( Py_None ); return( Py_None ); } file_entry_object = pyfsapfs_file_entry_new( file_entry, (PyObject *) pyfsapfs_volume ); if( file_entry_object == NULL ) { PyErr_Format( PyExc_MemoryError, "%s: unable to create file entry object.", function ); goto on_error; } return( file_entry_object ); on_error: if( file_entry != NULL ) { libfsapfs_file_entry_free( &file_entry, NULL ); } return( NULL ); } libfsapfs-20190210/pyfsapfs/pyfsapfs.c0000664000175000017500000003607113426640345021673 0ustar00lordyestalordyesta00000000000000/* * Python bindings module for libfsapfs (pyfsapfs) * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( HAVE_WINAPI ) #include #endif #include "pyfsapfs.h" #include "pyfsapfs_container.h" #include "pyfsapfs_error.h" #include "pyfsapfs_extended_attribute.h" #include "pyfsapfs_extended_attributes.h" #include "pyfsapfs_file_entries.h" #include "pyfsapfs_file_entry.h" #include "pyfsapfs_file_object_io_handle.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #include "pyfsapfs_unused.h" #include "pyfsapfs_volume.h" #include "pyfsapfs_volumes.h" #if !defined( LIBFSAPFS_HAVE_BFIO ) LIBFSAPFS_EXTERN \ int libfsapfs_check_container_signature_file_io_handle( libbfio_handle_t *file_io_handle, libfsapfs_error_t **error ); #endif /* !defined( LIBFSAPFS_HAVE_BFIO ) */ /* The pyfsapfs module methods */ PyMethodDef pyfsapfs_module_methods[] = { { "get_version", (PyCFunction) pyfsapfs_get_version, METH_NOARGS, "get_version() -> String\n" "\n" "Retrieves the version." }, { "check_container_signature", (PyCFunction) pyfsapfs_check_container_signature, METH_VARARGS | METH_KEYWORDS, "check_container_signature(filename) -> Boolean\n" "\n" "Checks if a container has an APFS container signature." }, { "check_container_signature_file_object", (PyCFunction) pyfsapfs_check_container_signature_file_object, METH_VARARGS | METH_KEYWORDS, "check_container_signature_file_object(file_object) -> Boolean\n" "\n" "Checks if a container has an APFS container signature using a file-like object." }, { "open", (PyCFunction) pyfsapfs_open_new_container, METH_VARARGS | METH_KEYWORDS, "open(filename, mode='r') -> Object\n" "\n" "Opens a container." }, { "open_file_object", (PyCFunction) pyfsapfs_open_new_container_with_file_object, METH_VARARGS | METH_KEYWORDS, "open_file_object(file_object, mode='r') -> Object\n" "\n" "Opens a container using a file-like object." }, /* Sentinel */ { NULL, NULL, 0, NULL } }; /* Retrieves the pyfsapfs/libfsapfs version * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_get_version( PyObject *self PYFSAPFS_ATTRIBUTE_UNUSED, PyObject *arguments PYFSAPFS_ATTRIBUTE_UNUSED ) { const char *errors = NULL; const char *version_string = NULL; size_t version_string_length = 0; PYFSAPFS_UNREFERENCED_PARAMETER( self ) PYFSAPFS_UNREFERENCED_PARAMETER( arguments ) Py_BEGIN_ALLOW_THREADS version_string = libfsapfs_get_version(); Py_END_ALLOW_THREADS version_string_length = narrow_string_length( version_string ); /* Pass the string length to PyUnicode_DecodeUTF8 * otherwise it makes the end of string character is part * of the string */ return( PyUnicode_DecodeUTF8( version_string, (Py_ssize_t) version_string_length, errors ) ); } /* Checks if a container has an APFS container signature * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_check_container_signature( PyObject *self PYFSAPFS_ATTRIBUTE_UNUSED, PyObject *arguments, PyObject *keywords ) { PyObject *string_object = NULL; libcerror_error_t *error = NULL; static char *function = "pyfsapfs_check_container_signature"; static char *keyword_list[] = { "filename", NULL }; const char *filename_narrow = NULL; int result = 0; #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) const wchar_t *filename_wide = NULL; #else PyObject *utf8_string_object = NULL; #endif PYFSAPFS_UNREFERENCED_PARAMETER( self ) /* Note that PyArg_ParseTupleAndKeywords with "s" will force Unicode strings to be converted to narrow character string. * On Windows the narrow character strings contains an extended ASCII string with a codepage. Hence we get a conversion * exception. This will also fail if the default encoding is not set correctly. We cannot use "u" here either since that * does not allow us to pass non Unicode string objects and Python (at least 2.7) does not seems to automatically upcast them. */ if( PyArg_ParseTupleAndKeywords( arguments, keywords, "|O", keyword_list, &string_object ) == 0 ) { return( NULL ); } PyErr_Clear(); result = PyObject_IsInstance( string_object, (PyObject *) &PyUnicode_Type ); if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if string object is of type Unicode.", function ); return( NULL ); } else if( result != 0 ) { PyErr_Clear(); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) filename_wide = (wchar_t *) PyUnicode_AsUnicode( string_object ); Py_BEGIN_ALLOW_THREADS result = libfsapfs_check_container_signature_wide( filename_wide, &error ); Py_END_ALLOW_THREADS #else utf8_string_object = PyUnicode_AsUTF8String( string_object ); if( utf8_string_object == NULL ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to convert Unicode string to UTF-8.", function ); return( NULL ); } #if PY_MAJOR_VERSION >= 3 filename_narrow = PyBytes_AsString( utf8_string_object ); #else filename_narrow = PyString_AsString( utf8_string_object ); #endif Py_BEGIN_ALLOW_THREADS result = libfsapfs_check_container_signature( filename_narrow, &error ); Py_END_ALLOW_THREADS Py_DecRef( utf8_string_object ); #endif /* defined( HAVE_WIDE_SYSTEM_CHARACTER ) */ if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to check container signature.", function ); libcerror_error_free( &error ); return( NULL ); } if( result != 0 ) { Py_IncRef( (PyObject *) Py_True ); return( Py_True ); } Py_IncRef( (PyObject *) Py_False ); return( Py_False ); } PyErr_Clear(); #if PY_MAJOR_VERSION >= 3 result = PyObject_IsInstance( string_object, (PyObject *) &PyBytes_Type ); #else result = PyObject_IsInstance( string_object, (PyObject *) &PyString_Type ); #endif if( result == -1 ) { pyfsapfs_error_fetch_and_raise( PyExc_RuntimeError, "%s: unable to determine if string object is of type string.", function ); return( NULL ); } else if( result != 0 ) { PyErr_Clear(); #if PY_MAJOR_VERSION >= 3 filename_narrow = PyBytes_AsString( string_object ); #else filename_narrow = PyString_AsString( string_object ); #endif Py_BEGIN_ALLOW_THREADS result = libfsapfs_check_container_signature( filename_narrow, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to check container signature.", function ); libcerror_error_free( &error ); return( NULL ); } if( result != 0 ) { Py_IncRef( (PyObject *) Py_True ); return( Py_True ); } Py_IncRef( (PyObject *) Py_False ); return( Py_False ); } PyErr_Format( PyExc_TypeError, "%s: unsupported string object type.", function ); return( NULL ); } /* Checks if a container has an APFS container signature using a file-like object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_check_container_signature_file_object( PyObject *self PYFSAPFS_ATTRIBUTE_UNUSED, PyObject *arguments, PyObject *keywords ) { libcerror_error_t *error = NULL; libbfio_handle_t *file_io_handle = NULL; PyObject *file_object = NULL; static char *function = "pyfsapfs_check_container_signature_file_object"; static char *keyword_list[] = { "file_object", NULL }; int result = 0; PYFSAPFS_UNREFERENCED_PARAMETER( self ) if( PyArg_ParseTupleAndKeywords( arguments, keywords, "|O", keyword_list, &file_object ) == 0 ) { return( NULL ); } if( pyfsapfs_file_object_initialize( &file_io_handle, file_object, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to initialize file IO handle.", function ); libcerror_error_free( &error ); goto on_error; } Py_BEGIN_ALLOW_THREADS result = libfsapfs_check_container_signature_file_io_handle( file_io_handle, &error ); Py_END_ALLOW_THREADS if( result == -1 ) { pyfsapfs_error_raise( error, PyExc_IOError, "%s: unable to check container signature.", function ); libcerror_error_free( &error ); goto on_error; } if( libbfio_handle_free( &file_io_handle, &error ) != 1 ) { pyfsapfs_error_raise( error, PyExc_MemoryError, "%s: unable to free file IO handle.", function ); libcerror_error_free( &error ); goto on_error; } if( result != 0 ) { Py_IncRef( (PyObject *) Py_True ); return( Py_True ); } Py_IncRef( (PyObject *) Py_False ); return( Py_False ); on_error: if( file_io_handle != NULL ) { libbfio_handle_free( &file_io_handle, NULL ); } return( NULL ); } /* Creates a new container object and opens it * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_open_new_container( PyObject *self PYFSAPFS_ATTRIBUTE_UNUSED, PyObject *arguments, PyObject *keywords ) { PyObject *pyfsapfs_container = NULL; PYFSAPFS_UNREFERENCED_PARAMETER( self ) pyfsapfs_container_init( (pyfsapfs_container_t *) pyfsapfs_container ); pyfsapfs_container_open( (pyfsapfs_container_t *) pyfsapfs_container, arguments, keywords ); return( pyfsapfs_container ); } /* Creates a new container object and opens it using a file-like object * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_open_new_container_with_file_object( PyObject *self PYFSAPFS_ATTRIBUTE_UNUSED, PyObject *arguments, PyObject *keywords ) { PyObject *pyfsapfs_container = NULL; PYFSAPFS_UNREFERENCED_PARAMETER( self ) pyfsapfs_container_init( (pyfsapfs_container_t *) pyfsapfs_container ); pyfsapfs_container_open_file_object( (pyfsapfs_container_t *) pyfsapfs_container, arguments, keywords ); return( pyfsapfs_container ); } #if PY_MAJOR_VERSION >= 3 /* The pyfsapfs module definition */ PyModuleDef pyfsapfs_module_definition = { PyModuleDef_HEAD_INIT, /* m_name */ "pyfsapfs", /* m_doc */ "Python libfsapfs module (pyfsapfs).", /* m_size */ -1, /* m_methods */ pyfsapfs_module_methods, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL, /* m_free */ NULL, }; #endif /* PY_MAJOR_VERSION >= 3 */ /* Initializes the pyfsapfs module */ #if PY_MAJOR_VERSION >= 3 PyMODINIT_FUNC PyInit_pyfsapfs( void ) #else PyMODINIT_FUNC initpyfsapfs( void ) #endif { PyObject *module = NULL; PyGILState_STATE gil_state = 0; #if defined( HAVE_DEBUG_OUTPUT ) libfsapfs_notify_set_stream( stderr, NULL ); libfsapfs_notify_set_verbose( 1 ); #endif /* Create the module * This function must be called before grabbing the GIL * otherwise the module will segfault on a version mismatch */ #if PY_MAJOR_VERSION >= 3 module = PyModule_Create( &pyfsapfs_module_definition ); #else module = Py_InitModule3( "pyfsapfs", pyfsapfs_module_methods, "Python libfsapfs module (pyfsapfs)." ); #endif if( module == NULL ) { #if PY_MAJOR_VERSION >= 3 return( NULL ); #else return; #endif } PyEval_InitThreads(); gil_state = PyGILState_Ensure(); /* Setup the container type object */ pyfsapfs_container_type_object.tp_new = PyType_GenericNew; if( PyType_Ready( &pyfsapfs_container_type_object ) < 0 ) { goto on_error; } Py_IncRef( (PyObject *) &pyfsapfs_container_type_object ); PyModule_AddObject( module, "container", (PyObject *) &pyfsapfs_container_type_object ); /* Setup the extended_attribute type object */ pyfsapfs_extended_attribute_type_object.tp_new = PyType_GenericNew; if( PyType_Ready( &pyfsapfs_extended_attribute_type_object ) < 0 ) { goto on_error; } Py_IncRef( (PyObject *) &pyfsapfs_extended_attribute_type_object ); PyModule_AddObject( module, "extended_attribute", (PyObject *) &pyfsapfs_extended_attribute_type_object ); /* Setup the extended_attributes type object */ pyfsapfs_extended_attributes_type_object.tp_new = PyType_GenericNew; if( PyType_Ready( &pyfsapfs_extended_attributes_type_object ) < 0 ) { goto on_error; } Py_IncRef( (PyObject *) &pyfsapfs_extended_attributes_type_object ); PyModule_AddObject( module, "extended_attributes", (PyObject *) &pyfsapfs_extended_attributes_type_object ); /* Setup the file_entries type object */ pyfsapfs_file_entries_type_object.tp_new = PyType_GenericNew; if( PyType_Ready( &pyfsapfs_file_entries_type_object ) < 0 ) { goto on_error; } Py_IncRef( (PyObject *) &pyfsapfs_file_entries_type_object ); PyModule_AddObject( module, "file_entries", (PyObject *) &pyfsapfs_file_entries_type_object ); /* Setup the file_entry type object */ pyfsapfs_file_entry_type_object.tp_new = PyType_GenericNew; if( PyType_Ready( &pyfsapfs_file_entry_type_object ) < 0 ) { goto on_error; } Py_IncRef( (PyObject *) &pyfsapfs_file_entry_type_object ); PyModule_AddObject( module, "file_entry", (PyObject *) &pyfsapfs_file_entry_type_object ); /* Setup the volume type object */ pyfsapfs_volume_type_object.tp_new = PyType_GenericNew; if( PyType_Ready( &pyfsapfs_volume_type_object ) < 0 ) { goto on_error; } Py_IncRef( (PyObject *) &pyfsapfs_volume_type_object ); PyModule_AddObject( module, "volume", (PyObject *) &pyfsapfs_volume_type_object ); /* Setup the volumes type object */ pyfsapfs_volumes_type_object.tp_new = PyType_GenericNew; if( PyType_Ready( &pyfsapfs_volumes_type_object ) < 0 ) { goto on_error; } Py_IncRef( (PyObject *) &pyfsapfs_volumes_type_object ); PyModule_AddObject( module, "volumes", (PyObject *) &pyfsapfs_volumes_type_object ); PyGILState_Release( gil_state ); #if PY_MAJOR_VERSION >= 3 return( module ); #else return; #endif on_error: PyGILState_Release( gil_state ); #if PY_MAJOR_VERSION >= 3 return( NULL ); #else return; #endif } libfsapfs-20190210/pyfsapfs/pyfsapfs_container.h0000664000175000017500000000605013426637447023745 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_container_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_CONTAINER_H ) #define _PYFSAPFS_CONTAINER_H #include #include #include "pyfsapfs_libbfio.h" #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_container pyfsapfs_container_t; struct pyfsapfs_container { /* Python object initialization */ PyObject_HEAD /* The libfsapfs container */ libfsapfs_container_t *container; /* The libbfio file IO handle */ libbfio_handle_t *file_io_handle; }; extern PyMethodDef pyfsapfs_container_object_methods[]; extern PyTypeObject pyfsapfs_container_type_object; int pyfsapfs_container_init( pyfsapfs_container_t *pyfsapfs_container ); void pyfsapfs_container_free( pyfsapfs_container_t *pyfsapfs_container ); PyObject *pyfsapfs_container_signal_abort( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments ); PyObject *pyfsapfs_container_open( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_container_open_file_object( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_container_close( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments ); PyObject *pyfsapfs_container_get_size( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments ); PyObject *pyfsapfs_container_get_identifier( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments ); PyObject *pyfsapfs_container_get_number_of_volumes( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments ); PyObject *pyfsapfs_container_get_volume_by_index( PyObject *pyfsapfs_container, int volume_index ); PyObject *pyfsapfs_container_get_volume( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_container_get_volumes( pyfsapfs_container_t *pyfsapfs_container, PyObject *arguments ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_CONTAINER_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_libfguid.h0000664000175000017500000000252313426637447023551 0ustar00lordyestalordyesta00000000000000/* * The libfguid header wrapper * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_LIBFGUID_H ) #define _PYFSAPFS_LIBFGUID_H #include /* Define HAVE_LOCAL_LIBFGUID for local use of libfguid */ #if defined( HAVE_LOCAL_LIBFGUID ) #include #include #include #else /* If libtool DLL support is enabled set LIBFGUID_DLL_IMPORT * before including libfguid.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBFGUID_DLL_IMPORT #endif #include #endif #endif /* !defined( _PYFSAPFS_LIBFGUID_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_datetime.c0000664000175000017500000004426613426640156023554 0ustar00lordyestalordyesta00000000000000/* * Date and time functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "pyfsapfs_datetime.h" #include "pyfsapfs_python.h" #include /* Creates a new datetime object from a FAT date time * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_datetime_new_from_fat_date_time( uint32_t fat_date_time ) { PyObject *datetime_object = NULL; static char *function = "pyfsapfs_datetime_new_from_fat_date_time"; uint16_t year = 0; uint8_t day_of_month = 0; uint8_t days_in_month = 0; uint8_t hours = 0; uint8_t minutes = 0; uint8_t month = 0; uint8_t seconds = 0; /* The day of month is stored in the next 5 bits */ day_of_month = fat_date_time & 0x1f; fat_date_time >>= 5; /* The month is stored in the next 4 bits */ month = fat_date_time & 0x0f; fat_date_time >>= 4; /* The year is stored in the next 7 bits starting at 1980 */ year = 1980 + ( fat_date_time & 0x7f ); fat_date_time >>= 7; /* The number of seconds are stored in the lower 5 bits * in intervals of 2 seconds */ seconds = ( fat_date_time & 0x1f ) * 2; fat_date_time >>= 5; /* The number of minutes are stored in the next 6 bits */ minutes = fat_date_time & 0x3f; fat_date_time >>= 6; /* The number of hours are stored in the next 5 bits */ hours = fat_date_time & 0x1f; /* February (2) */ if( month == 2 ) { if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( month == 4 ) || ( month == 6 ) || ( month == 9 ) || ( month == 11 ) ) { days_in_month = 30; } /* Januari (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( month == 1 ) || ( month == 3 ) || ( month == 5 ) || ( month == 7 ) || ( month == 8 ) || ( month == 10 ) || ( month == 12 ) ) { days_in_month = 31; } else { PyErr_Format( PyExc_IOError, "%s: unsupported month: %" PRIu8 ".", function, month ); return( NULL ); } if( ( day_of_month == 0 ) || ( day_of_month > days_in_month ) ) { PyErr_Format( PyExc_IOError, "%s: unsupported day of month: %" PRIu8 ".", function, day_of_month ); return( NULL ); } PyDateTime_IMPORT; datetime_object = (PyObject *) PyDateTime_FromDateAndTime( (int) year, (int) month, (int) day_of_month, (int) hours, (int) minutes, (int) seconds, 0 ); return( datetime_object ); } /* Creates a new datetime object from a FILETIME * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_datetime_new_from_filetime( uint64_t filetime ) { PyObject *datetime_object = NULL; static char *function = "pyfsapfs_datetime_new_from_filetime"; uint32_t days_in_century = 0; uint32_t micro_seconds = 0; uint16_t days_in_year = 0; uint16_t year = 0; uint8_t day_of_month = 0; uint8_t days_in_month = 0; uint8_t hours = 0; uint8_t minutes = 0; uint8_t month = 0; uint8_t seconds = 0; /* The timestamp is in units of 100 nano seconds correct the value to seconds */ micro_seconds = (uint32_t) ( filetime % 10000000 ) / 10; filetime /= 10000000; /* There are 60 seconds in a minute correct the value to minutes */ seconds = (uint8_t) ( filetime % 60 ); filetime /= 60; /* There are 60 minutes in an hour correct the value to hours */ minutes = (uint8_t) ( filetime % 60 ); filetime /= 60; /* There are 24 hours in a day correct the value to days */ hours = (uint8_t) ( filetime % 24 ); filetime /= 24; /* Add 1 day to compensate that Jan 1 1601 is represented as 0 */ filetime += 1; /* Determine the number of years starting at '1 Jan 1601 00:00:00' * correct the value to days within the year */ year = 1601; if( filetime >= 36159 ) { year = 1700; filetime -= 36159; } while( filetime > 0 ) { if( ( year % 400 ) == 0 ) { days_in_century = 36525; } else { days_in_century = 36524; } if( filetime <= days_in_century ) { break; } filetime -= days_in_century; year += 100; } while( filetime > 0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( filetime <= days_in_year ) { break; } filetime -= days_in_year; year += 1; } /* Determine the month correct the value to days within the month */ month = 1; while( filetime > 0 ) { /* February (2) */ if( month == 2 ) { if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( month == 4 ) || ( month == 6 ) || ( month == 9 ) || ( month == 11 ) ) { days_in_month = 30; } /* Januari (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( month == 1 ) || ( month == 3 ) || ( month == 5 ) || ( month == 7 ) || ( month == 8 ) || ( month == 10 ) || ( month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { PyErr_Format( PyExc_IOError, "%s: unsupported month: %" PRIu8 ".", function, month ); return( NULL ); } if( filetime <= days_in_month ) { break; } filetime -= days_in_month; month += 1; } /* Determine the day */ day_of_month = (uint8_t) filetime; PyDateTime_IMPORT; datetime_object = (PyObject *) PyDateTime_FromDateAndTime( (int) year, (int) month, (int) day_of_month, (int) hours, (int) minutes, (int) seconds, (int) micro_seconds ); return( datetime_object ); } /* Creates a new datetime object from a floatingtime * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_datetime_new_from_floatingtime( uint64_t floatingtime ) { byte_stream_float64_t timestamp; PyObject *datetime_object = NULL; static char *function = "pyfsapfs_datetime_new_from_floatingtime"; uint32_t days_in_century = 0; uint32_t micro_seconds = 0; uint16_t days_in_year = 0; uint16_t year = 0; uint8_t day_of_month = 0; uint8_t days_in_month = 0; uint8_t hours = 0; uint8_t minutes = 0; uint8_t month = 0; uint8_t seconds = 0; timestamp.integer = floatingtime; /* Determine the number of years starting at '30 Dec 1899 00:00:00' * correct the value to days within the year */ year = 1899; if( timestamp.floating_point >= 2 ) { year = 1900; timestamp.floating_point -= 2; } while( timestamp.floating_point > 0 ) { if( ( year % 400 ) == 0 ) { days_in_century = 36525; } else { days_in_century = 36524; } if( timestamp.floating_point <= days_in_century ) { break; } timestamp.floating_point -= days_in_century; year += 100; } while( timestamp.floating_point > 0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( timestamp.floating_point <= days_in_year ) { break; } timestamp.floating_point -= days_in_year; year += 1; } /* Determine the month correct the value to days within the month */ month = 1; while( timestamp.floating_point > 0 ) { /* February (2) */ if( month == 2 ) { if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( month == 4 ) || ( month == 6 ) || ( month == 9 ) || ( month == 11 ) ) { days_in_month = 30; } /* Januari (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( month == 1 ) || ( month == 3 ) || ( month == 5 ) || ( month == 7 ) || ( month == 8 ) || ( month == 10 ) || ( month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { PyErr_Format( PyExc_IOError, "%s: unsupported month: %" PRIu8 ".", function, month ); return( NULL ); } if( timestamp.floating_point <= days_in_month ) { break; } timestamp.floating_point -= days_in_month; month += 1; } /* Determine the day */ day_of_month = (uint8_t) timestamp.floating_point; timestamp.floating_point -= day_of_month; /* There are 24 hours in a day correct the value to hours */ timestamp.floating_point *= 24; hours = (uint8_t) timestamp.floating_point; timestamp.floating_point -= hours; /* There are 60 minutes in an hour correct the value to minutes */ timestamp.floating_point *= 60; minutes = (uint8_t) timestamp.floating_point; timestamp.floating_point -= minutes; /* There are 60 seconds in a minute correct the value to seconds */ timestamp.floating_point *= 60; seconds = (uint8_t) timestamp.floating_point; timestamp.floating_point -= seconds; /* There are 1000 micro seconds in a seconds correct the value to micro seconds */ timestamp.floating_point *= 1000000; micro_seconds = (uint8_t) timestamp.floating_point; timestamp.floating_point -= micro_seconds; PyDateTime_IMPORT; datetime_object = (PyObject *) PyDateTime_FromDateAndTime( (int) year, (int) month, (int) day_of_month, (int) hours, (int) minutes, (int) seconds, (int) micro_seconds ); return( datetime_object ); } /* Creates a new datetime object from a POSIX time * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_datetime_new_from_posix_time( int32_t posix_time ) { PyObject *datetime_object = NULL; static char *function = "pyfsapfs_datetime_new_from_posix_time"; uint16_t days_in_year = 0; uint16_t year = 0; uint8_t day_of_month = 0; uint8_t days_in_month = 0; uint8_t hours = 0; uint8_t minutes = 0; uint8_t month = 0; uint8_t seconds = 0; /* There are 60 seconds in a minute correct the value to minutes */ seconds = posix_time % 60; posix_time /= 60; /* There are 60 minutes in an hour correct the value to hours */ minutes = posix_time % 60; posix_time /= 60; /* There are 24 hours in a day correct the value to days */ hours = posix_time % 24; posix_time /= 24; /* Add 1 day to compensate that Jan 1 1970 is represented as 0 */ posix_time += 1; /* Determine the number of years starting at '1 Jan 1970 00:00:00' * correct the value to days within the year */ year = 1970; if( posix_time >= 10957 ) { year = 2000; posix_time -= 10957; } while( posix_time > 0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( posix_time <= days_in_year ) { break; } posix_time -= days_in_year; year += 1; } /* Determine the month correct the value to days within the month */ month = 1; while( posix_time > 0 ) { /* February (2) */ if( month == 2 ) { if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( month == 4 ) || ( month == 6 ) || ( month == 9 ) || ( month == 11 ) ) { days_in_month = 30; } /* Januari (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( month == 1 ) || ( month == 3 ) || ( month == 5 ) || ( month == 7 ) || ( month == 8 ) || ( month == 10 ) || ( month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { PyErr_Format( PyExc_IOError, "%s: unsupported month: %" PRIu8 ".", function, month ); return( NULL ); } if( posix_time <= days_in_month ) { break; } posix_time -= days_in_month; month += 1; } /* Determine the day */ day_of_month = (uint8_t) posix_time; PyDateTime_IMPORT; datetime_object = (PyObject *) PyDateTime_FromDateAndTime( (int) year, (int) month, (int) day_of_month, (int) hours, (int) minutes, (int) seconds, 0 ); return( datetime_object ); } /* Creates a new datetime object from a POSIX time in micro seconds * Returns a Python object if successful or NULL on error */ PyObject *pyfsapfs_datetime_new_from_posix_time_in_micro_seconds( int64_t posix_time ) { PyObject *datetime_object = NULL; static char *function = "pyfsapfs_datetime_new_from_posix_time_in_micro_seconds"; uint32_t micro_seconds = 0; uint16_t days_in_year = 0; uint16_t year = 0; uint8_t day_of_month = 0; uint8_t days_in_month = 0; uint8_t hours = 0; uint8_t minutes = 0; uint8_t month = 0; uint8_t seconds = 0; /* There are 1000000 micro seconds in a second correct the value to seconds */ micro_seconds = (uint32_t) ( posix_time % 1000000 ); posix_time /= 1000000; /* There are 60 seconds in a minute correct the value to minutes */ seconds = posix_time % 60; posix_time /= 60; /* There are 60 minutes in an hour correct the value to hours */ minutes = posix_time % 60; posix_time /= 60; /* There are 24 hours in a day correct the value to days */ hours = posix_time % 24; posix_time /= 24; /* Add 1 day to compensate that Jan 1 1970 is represented as 0 */ posix_time += 1; /* Determine the number of years starting at '1 Jan 1970 00:00:00' * correct the value to days within the year */ year = 1970; if( posix_time >= 10957 ) { year = 2000; posix_time -= 10957; } while( posix_time > 0 ) { /* Check for a leap year * The year is ( ( dividable by 4 ) and ( not dividable by 100 ) ) or ( dividable by 400 ) */ if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_year = 366; } else { days_in_year = 365; } if( posix_time <= days_in_year ) { break; } posix_time -= days_in_year; year += 1; } /* Determine the month correct the value to days within the month */ month = 1; while( posix_time > 0 ) { /* February (2) */ if( month == 2 ) { if( ( ( ( year % 4 ) == 0 ) && ( ( year % 100 ) != 0 ) ) || ( ( year % 400 ) == 0 ) ) { days_in_month = 29; } else { days_in_month = 28; } } /* April (4), June (6), September (9), November (11) */ else if( ( month == 4 ) || ( month == 6 ) || ( month == 9 ) || ( month == 11 ) ) { days_in_month = 30; } /* Januari (1), March (3), May (5), July (7), August (8), October (10), December (12) */ else if( ( month == 1 ) || ( month == 3 ) || ( month == 5 ) || ( month == 7 ) || ( month == 8 ) || ( month == 10 ) || ( month == 12 ) ) { days_in_month = 31; } /* This should never happen, but just in case */ else { PyErr_Format( PyExc_IOError, "%s: unsupported month: %" PRIu8 ".", function, month ); return( NULL ); } if( posix_time <= days_in_month ) { break; } posix_time -= days_in_month; month += 1; } /* Determine the day */ day_of_month = (uint8_t) posix_time; PyDateTime_IMPORT; datetime_object = (PyObject *) PyDateTime_FromDateAndTime( (int) year, (int) month, (int) day_of_month, (int) hours, (int) minutes, (int) seconds, (int) micro_seconds ); return( datetime_object ); } libfsapfs-20190210/pyfsapfs/pyfsapfs_file_entry.h0000664000175000017500000001543413430066417024115 0ustar00lordyestalordyesta00000000000000/* * Python object wrapper of libfsapfs_file_entry_t * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_FILE_ENTRY_H ) #define _PYFSAPFS_FILE_ENTRY_H #include #include #include "pyfsapfs_libfsapfs.h" #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct pyfsapfs_file_entry pyfsapfs_file_entry_t; struct pyfsapfs_file_entry { /* Python object initialization */ PyObject_HEAD /* The libfsapfs file entry */ libfsapfs_file_entry_t *file_entry; /* The parent object */ PyObject *parent_object; }; extern PyMethodDef pyfsapfs_file_entry_object_methods[]; extern PyTypeObject pyfsapfs_file_entry_type_object; PyObject *pyfsapfs_file_entry_new( libfsapfs_file_entry_t *file_entry, PyObject *parent_object ); int pyfsapfs_file_entry_init( pyfsapfs_file_entry_t *pyfsapfs_file_entry ); void pyfsapfs_file_entry_free( pyfsapfs_file_entry_t *pyfsapfs_file_entry ); PyObject *pyfsapfs_file_entry_get_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_parent_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_creation_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_creation_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_modification_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_modification_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_access_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_access_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_inode_change_time( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_inode_change_time_as_integer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_owner_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_group_identifier( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_file_mode( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_symbolic_link_target( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_number_of_extended_attributes( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_extended_attribute_by_index( PyObject *pyfsapfs_file_entry, int extended_attribute_index ); PyObject *pyfsapfs_file_entry_get_extended_attribute( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_get_extended_attributes( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_has_extended_attribute_by_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_get_extended_attribute_by_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_get_number_of_sub_file_entries( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_sub_file_entry_by_index( PyObject *pyfsapfs_file_entry, int sub_file_entry_index ); PyObject *pyfsapfs_file_entry_get_sub_file_entry( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_get_sub_file_entries( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_sub_file_entry_by_name( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_read_buffer( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_read_buffer_at_offset( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_seek_offset( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); PyObject *pyfsapfs_file_entry_get_offset( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_size( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_number_of_extents( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments ); PyObject *pyfsapfs_file_entry_get_extent_by_index( pyfsapfs_file_entry_t *pyfsapfs_file_entry, int extent_index ); PyObject *pyfsapfs_file_entry_get_extent( pyfsapfs_file_entry_t *pyfsapfs_file_entry, PyObject *arguments, PyObject *keywords ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_FILE_ENTRY_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_error.c0000664000175000017500000002244513426637447023115 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #include #elif defined( HAVE_VARARGS_H ) #include #else #error Missing headers stdarg.h and varargs.h #endif #include "pyfsapfs_error.h" #include "pyfsapfs_libcerror.h" #include "pyfsapfs_python.h" #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #define VARARGS( function, error, error_domain, error_code, type, argument ) \ function( error, error_domain, error_code, type argument, ... ) #define VASTART( argument_list, type, name ) \ va_start( argument_list, name ) #define VAEND( argument_list ) \ va_end( argument_list ) #elif defined( HAVE_VARARGS_H ) #define VARARGS( function, error, error_domain, error_code, type, argument ) \ function( error, error_domain, error_code, va_alist ) va_dcl #define VASTART( argument_list, type, name ) \ { type name; va_start( argument_list ); name = va_arg( argument_list, type ) #define VAEND( argument_list ) \ va_end( argument_list ); } #endif /* Fetches an error */ void VARARGS( pyfsapfs_error_fetch, libcerror_error_t **error, int error_domain, int error_code, const char *, format_string ) { va_list argument_list; char error_string[ PYFSAPFS_ERROR_STRING_SIZE ]; PyObject *exception_traceback = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyObject *string_object = NULL; static char *function = "pyfsapfs_error_fetch"; char *exception_string = NULL; size_t error_string_length = 0; int print_count = 0; #if PY_MAJOR_VERSION >= 3 PyObject *utf8_string_object = NULL; #endif if( format_string == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing format string.", function ); return; } VASTART( argument_list, const char *, format_string ); print_count = PyOS_vsnprintf( error_string, PYFSAPFS_ERROR_STRING_SIZE, format_string, argument_list ); VAEND( argument_list ); if( print_count < 0 ) { PyErr_Format( PyExc_ValueError, "%s: unable to format error string.", function ); return; } error_string_length = narrow_string_length( error_string ); if( ( error_string_length >= 1 ) && ( error_string[ error_string_length - 1 ] == '.' ) ) { error_string[ error_string_length - 1 ] = 0; } PyErr_Fetch( &exception_type, &exception_value, &exception_traceback ); string_object = PyObject_Repr( exception_value ); #if PY_MAJOR_VERSION >= 3 utf8_string_object = PyUnicode_AsUTF8String( string_object ); if( utf8_string_object != NULL ) { exception_string = PyBytes_AsString( utf8_string_object ); } #else exception_string = PyString_AsString( string_object ); #endif if( exception_string != NULL ) { libcerror_error_set( error, error_domain, error_code, "%s with error: %s.", error_string, exception_string ); } else { libcerror_error_set( error, error_domain, error_code, "%s.", error_string ); } #if PY_MAJOR_VERSION >= 3 if( utf8_string_object != NULL ) { Py_DecRef( utf8_string_object ); } #endif Py_DecRef( string_object ); return; } #undef VARARGS #undef VASTART #undef VAEND #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #define VARARGS( function, exception_object, type, argument ) \ function( exception_object, type argument, ... ) #define VASTART( argument_list, type, name ) \ va_start( argument_list, name ) #define VAEND( argument_list ) \ va_end( argument_list ) #elif defined( HAVE_VARARGS_H ) #define VARARGS( function, exception_object, type, argument ) \ function( exception_object, va_alist ) va_dcl #define VASTART( argument_list, type, name ) \ { type name; va_start( argument_list ); name = va_arg( argument_list, type ) #define VAEND( argument_list ) \ va_end( argument_list ); } #endif /* Fetches and raises an error */ void VARARGS( pyfsapfs_error_fetch_and_raise, PyObject *exception_object, const char *, format_string ) { va_list argument_list; char error_string[ PYFSAPFS_ERROR_STRING_SIZE ]; PyObject *exception_traceback = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyObject *string_object = NULL; static char *function = "pyfsapfs_error_fetch_and_raise"; char *exception_string = NULL; size_t error_string_length = 0; int print_count = 0; #if PY_MAJOR_VERSION >= 3 PyObject *utf8_string_object = NULL; #endif if( format_string == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing format string.", function ); return; } VASTART( argument_list, const char *, format_string ); print_count = PyOS_vsnprintf( error_string, PYFSAPFS_ERROR_STRING_SIZE, format_string, argument_list ); VAEND( argument_list ); if( print_count < 0 ) { PyErr_Format( PyExc_ValueError, "%s: unable to format exception string.", function ); return; } error_string_length = narrow_string_length( error_string ); if( ( error_string_length >= 1 ) && ( error_string[ error_string_length - 1 ] == '.' ) ) { error_string[ error_string_length - 1 ] = 0; } PyErr_Fetch( &exception_type, &exception_value, &exception_traceback ); string_object = PyObject_Repr( exception_value ); #if PY_MAJOR_VERSION >= 3 utf8_string_object = PyUnicode_AsUTF8String( string_object ); if( utf8_string_object != NULL ) { exception_string = PyBytes_AsString( utf8_string_object ); } #else exception_string = PyString_AsString( string_object ); #endif if( exception_string != NULL ) { PyErr_Format( exception_object, "%s with error: %s.", error_string, exception_string ); } else { PyErr_Format( exception_object, "%s.", error_string ); } Py_DecRef( string_object ); return; } #undef VARARGS #undef VASTART #undef VAEND #if defined( HAVE_STDARG_H ) || defined( WINAPI ) #define VARARGS( function, error, exception_object, type, argument ) \ function( error, exception_object, type argument, ... ) #define VASTART( argument_list, type, name ) \ va_start( argument_list, name ) #define VAEND( argument_list ) \ va_end( argument_list ) #elif defined( HAVE_VARARGS_H ) #define VARARGS( function, error, exception_object, type, argument ) \ function( error, exception_object, va_alist ) va_dcl #define VASTART( argument_list, type, name ) \ { type name; va_start( argument_list ); name = va_arg( argument_list, type ) #define VAEND( argument_list ) \ va_end( argument_list ); } #endif /* Raises an error */ void VARARGS( pyfsapfs_error_raise, libcerror_error_t *error, PyObject *exception_object, const char *, format_string ) { va_list argument_list; char error_string[ PYFSAPFS_ERROR_STRING_SIZE ]; char exception_string[ PYFSAPFS_ERROR_STRING_SIZE ]; static char *function = "pyfsapfs_error_raise"; size_t error_string_index = 0; int print_count = 0; if( format_string == NULL ) { PyErr_Format( PyExc_ValueError, "%s: missing format string.", function ); return; } VASTART( argument_list, const char *, format_string ); print_count = PyOS_vsnprintf( exception_string, PYFSAPFS_ERROR_STRING_SIZE, format_string, argument_list ); VAEND( argument_list ); if( print_count < 0 ) { PyErr_Format( PyExc_ValueError, "%s: unable to format exception string.", function ); return; } if( error != NULL ) { if( libcerror_error_backtrace_sprint( error, error_string, PYFSAPFS_ERROR_STRING_SIZE ) != -1 ) { while( error_string_index < PYFSAPFS_ERROR_STRING_SIZE ) { if( error_string[ error_string_index ] == 0 ) { break; } if( error_string[ error_string_index ] == '\n' ) { error_string[ error_string_index ] = ' '; } error_string_index++; } if( error_string_index >= PYFSAPFS_ERROR_STRING_SIZE ) { error_string[ PYFSAPFS_ERROR_STRING_SIZE - 1 ] = 0; } PyErr_Format( exception_object, "%s %s", exception_string, error_string ); return; } } PyErr_Format( exception_object, "%s", exception_string ); return; } #undef VARARGS #undef VASTART #undef VAEND libfsapfs-20190210/pyfsapfs/pyfsapfs_datetime.h0000664000175000017500000000276513426640156023557 0ustar00lordyestalordyesta00000000000000/* * Date and time functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_DATETIME_H ) #define _PYFSAPFS_DATETIME_H #include #include #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif PyObject *pyfsapfs_datetime_new_from_fat_date_time( uint32_t fat_date_time ); PyObject *pyfsapfs_datetime_new_from_filetime( uint64_t filetime ); PyObject *pyfsapfs_datetime_new_from_floatingtime( uint64_t floatingtime ); PyObject *pyfsapfs_datetime_new_from_posix_time( int32_t posix_time ); PyObject *pyfsapfs_datetime_new_from_posix_time_in_micro_seconds( int64_t posix_time ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_DATETIME_H ) */ libfsapfs-20190210/pyfsapfs/pyfsapfs_guid.h0000664000175000017500000000223613426637447022715 0ustar00lordyestalordyesta00000000000000/* * GUID functions * * Copyright (C) 2018-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _PYFSAPFS_GUID_H ) #define _PYFSAPFS_GUID_H #include #include #include "pyfsapfs_python.h" #if defined( __cplusplus ) extern "C" { #endif PyObject *pyfsapfs_string_new_from_guid( const uint8_t *guid_buffer, size_t guid_buffer_size ); #if defined( __cplusplus ) } #endif #endif /* !defined( _PYFSAPFS_GUID_H ) */ libfsapfs-20190210/libfdata/0000775000175000017500000000000013430101370017561 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libfdata/libfdata_segments_array.h0000664000175000017500000000533213430101214024603 0ustar00lordyestalordyesta00000000000000/* * The segments array functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_SEGMENTS_ARRAY_H ) #define _LIBFDATA_SEGMENTS_ARRAY_H #include #include #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" int libfdata_segments_array_get_segment_by_index( libcdata_array_t *segments_array, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ); int libfdata_segments_array_set_segment_by_index( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, size64_t *data_size, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); int libfdata_segments_array_prepend_segment( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, size64_t *data_size, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); int libfdata_segments_array_append_segment( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, size64_t *data_size, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); int libfdata_segments_array_calculate_mapped_ranges( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, libcerror_error_t **error ); int libfdata_segments_array_get_data_range_at_offset( libcdata_array_t *segments_array, off64_t value_offset, off64_t *segment_data_offset, libfdata_range_t **segment_data_range, libcerror_error_t **error ); #if defined( __cplusplus ) extern "C" { #endif #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_SEGMENTS_ARRAY_H ) */ libfsapfs-20190210/libfdata/libfdata_cache.c0000664000175000017500000000317413430101214022620 0ustar00lordyestalordyesta00000000000000/* * Cache functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libfdata_cache.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #if !defined( HAVE_LOCAL_LIBFDATA ) /* Creates a cache * Make sure the value cache is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdata_cache_initialize( libfdata_cache_t **cache, int maximum_cache_entries, libcerror_error_t **error ) { return( libfcache_cache_initialize( (libfcache_cache_t **) cache, maximum_cache_entries, error ) ); } /* Frees a cache * Returns 1 if successful or -1 on error */ int libfdata_cache_free( libfdata_cache_t **cache, libcerror_error_t **error ) { return( libfcache_cache_free( (libfcache_cache_t **) cache, error ) ); } #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ libfsapfs-20190210/libfdata/libfdata_support.c0000664000175000017500000000222613430101214023266 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_definitions.h" #include "libfdata_support.h" #if !defined( HAVE_LOCAL_LIBFDATA ) /* Returns the library version as a string */ const char *libfdata_get_version( void ) { return( (const char *) LIBFDATA_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ libfsapfs-20190210/libfdata/libfdata_btree_node.c0000664000175000017500000012735313430101214023671 0ustar00lordyestalordyesta00000000000000/* * The balanced tree node functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_btree_node.h" #include "libfdata_btree_range.h" #include "libfdata_definitions.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_types.h" /* Creates a node * Make sure the value node is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdata_btree_node_initialize( libfdata_btree_node_t **node, int level, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_initialize"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( *node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid node value already set.", function ); return( -1 ); } if( level < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid level value less than zero.", function ); return( -1 ); } internal_tree_node = memory_allocate_structure( libfdata_internal_btree_node_t ); if( internal_tree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create node.", function ); goto on_error; } if( memory_set( internal_tree_node, 0, sizeof( libfdata_internal_btree_node_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear node.", function ); memory_free( internal_tree_node ); return( -1 ); } internal_tree_node->level = level; internal_tree_node->flags = LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; *node = (libfdata_btree_node_t *) internal_tree_node; return( 1 ); on_error: if( internal_tree_node != NULL ) { memory_free( internal_tree_node ); } return( -1 ); } /* Frees a node * Returns 1 if successful or -1 on error */ int libfdata_btree_node_free( libfdata_btree_node_t **node, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_free"; int result = 1; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( *node != NULL ) { internal_tree_node = (libfdata_internal_btree_node_t *) *node; *node = NULL; if( internal_tree_node->sub_node_ranges_array != NULL ) { if( libcdata_array_free( &( internal_tree_node->sub_node_ranges_array ), (int (*)(intptr_t **, libcerror_error_t **error)) &libfdata_btree_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the sub node ranges array.", function ); result = -1; } } if( internal_tree_node->leaf_value_ranges_array != NULL ) { if( libcdata_array_free( &( internal_tree_node->leaf_value_ranges_array ), (int (*)(intptr_t **, libcerror_error_t **error)) &libfdata_btree_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the leaf value ranges array.", function ); result = -1; } } memory_free( internal_tree_node ); } return( result ); } /* Node functions */ /* Retrieves the level * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_level( libfdata_btree_node_t *node, int *level, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_level"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( level == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid level.", function ); return( -1 ); } *level = internal_tree_node->level; return( 1 ); } /* Determines if the node is a branch node * Returns 1 if a branch node, 0 if not or -1 on error */ int libfdata_btree_node_is_branch( libfdata_btree_node_t *node, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_is_branch"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_BTREE_NODE_FLAG_IS_BRANCH ) != 0 ) { return( 1 ); } return( 0 ); } /* Determines if the node is a leaf node * Returns 1 if a leaf node, 0 if not or -1 on error */ int libfdata_btree_node_is_leaf( libfdata_btree_node_t *node, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_is_leaf"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_BTREE_NODE_FLAG_IS_LEAF ) != 0 ) { return( 1 ); } return( 0 ); } /* Determines if the node is a root node * Returns 1 if a root node, 0 if not or -1 on error */ int libfdata_btree_node_is_root( libfdata_btree_node_t *node, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_is_root"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->level == 0 ) { return( 1 ); } return( 0 ); } /* Sub node data range functions */ /* Retrieves the number of sub nodes * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_number_of_sub_nodes( libfdata_btree_node_t *node, int *number_of_sub_nodes, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_number_of_sub_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->sub_node_ranges_array == NULL ) { if( number_of_sub_nodes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of sub nodes.", function ); return( -1 ); } *number_of_sub_nodes = 0; } else { if( libcdata_array_get_number_of_entries( internal_tree_node->sub_node_ranges_array, number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub node ranges array.", function ); return( -1 ); } } return( 1 ); } /* Retrieves a specific sub node data range * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_sub_node_data_range_by_index( libfdata_btree_node_t *node, int sub_node_index, libfdata_btree_range_t **sub_node_data_range, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_sub_node_data_range_by_index"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->sub_node_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing sub node ranges array.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_tree_node->sub_node_ranges_array, sub_node_index, (intptr_t **) sub_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub node ranges array.", function, sub_node_index ); return( -1 ); } return( 1 ); } /* Retrieves a sub node data range for a specific mapped index * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_sub_node_data_range_by_mapped_index( libfdata_btree_node_t *node, int mapped_index, libfdata_btree_range_t **sub_node_data_range, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_sub_node_data_range_by_mapped_index"; int number_of_sub_nodes = 0; int sub_node_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->sub_node_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing sub node ranges array.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - unsupported flags calculate mapped ranges is set.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested index: %d\n", function, mapped_index ); } #endif if( libcdata_array_get_number_of_entries( internal_tree_node->sub_node_ranges_array, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub node ranges array.", function ); return( -1 ); } for( sub_node_index = 0; sub_node_index < number_of_sub_nodes; sub_node_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_node_ranges_array, sub_node_index, (intptr_t **) sub_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub node ranges array.", function, sub_node_index ); return( -1 ); } if( *sub_node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing sub node: %d data range.", function, sub_node_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: mapped range: %d - %d\n", function, ( *sub_node_data_range )->mapped_first_leaf_value_index, ( *sub_node_data_range )->mapped_last_leaf_value_index ); } #endif if( ( mapped_index >= ( *sub_node_data_range )->mapped_first_leaf_value_index ) && ( mapped_index <= ( *sub_node_data_range )->mapped_last_leaf_value_index ) ) { break; } } if( sub_node_index >= number_of_sub_nodes ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node data range.", function ); return( -1 ); } return( 1 ); } /* Retrieves a sub node data range for a specific key * * Uses the key_value_compare_function to determine the similarity of the key values * The key_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_LESS_EQUAL, LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER, * LIBFDATA_COMPARE_GREATER_EQUAL if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libfdata_btree_node_get_sub_node_data_range_by_key( libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *sub_node_index, libfdata_btree_range_t **sub_node_data_range, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_sub_node_data_range_by_key"; int number_of_sub_nodes = 0; int result = 0; int search_node_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->sub_node_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing sub node ranges array.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - unsupported flags calculate mapped ranges is set.", function ); return( -1 ); } if( sub_node_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node index.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( internal_tree_node->sub_node_ranges_array, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub node ranges array.", function ); return( -1 ); } for( search_node_index = 0; search_node_index < number_of_sub_nodes; search_node_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_node_ranges_array, search_node_index, (intptr_t **) sub_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub node ranges array.", function, search_node_index ); return( -1 ); } if( *sub_node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing sub node: %d data range.", function, search_node_index ); return( -1 ); } if( key_value_compare_function == NULL ) { if( key_value == ( *sub_node_data_range )->key_value ) { *sub_node_index = search_node_index; return( 1 ); } } else { result = key_value_compare_function( key_value, ( *sub_node_data_range )->key_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare key value with sub node data range key value: %d.", function, search_node_index ); return( -1 ); } else if( ( result == LIBFDATA_COMPARE_EQUAL ) || ( result == LIBFDATA_COMPARE_GREATER_EQUAL ) || ( result == LIBFDATA_COMPARE_LESS_EQUAL ) ) { *sub_node_index = search_node_index; return( 1 ); } else if( result == LIBFDATA_COMPARE_LESS ) { break; } else if( result != LIBFDATA_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value compare function return value: %d.", function, result ); return( -1 ); } } } *sub_node_data_range = NULL; return( 0 ); } /* Retrieves a specific sub node * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_sub_node_by_index( libfdata_btree_node_t *node, int sub_node_index, int *sub_node_data_file_index, off64_t *sub_node_data_offset, size64_t *sub_node_data_size, uint32_t *sub_node_data_flags, intptr_t **key_value, libcerror_error_t **error ) { libfdata_btree_range_t *data_range = NULL; static char *function = "libfdata_btree_node_get_sub_node_by_index"; if( libfdata_btree_node_get_sub_node_data_range_by_index( node, sub_node_index, &data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node: %d data range.", function, sub_node_index ); return( -1 ); } if( libfdata_btree_range_get( data_range, sub_node_data_file_index, sub_node_data_offset, sub_node_data_size, sub_node_data_flags, key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values from sub node: %d data range.", function, sub_node_index ); return( -1 ); } return( 1 ); } /* Sets the offset and size of a specific sub node * Returns 1 if successful or -1 on error */ int libfdata_btree_node_set_sub_node_by_index( libfdata_btree_node_t *node, int sub_node_index, int sub_node_data_file_index, off64_t sub_node_data_offset, size64_t sub_node_data_size, uint32_t sub_node_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; libfdata_btree_range_t *data_range = NULL; static char *function = "libfdata_btree_node_set_sub_node_by_index"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->sub_node_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sub node index value out of bounds.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_tree_node->sub_node_ranges_array, sub_node_index, (intptr_t **) &data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub node ranges array.", function, sub_node_index ); return( -1 ); } if( libfdata_btree_range_set( data_range, sub_node_data_file_index, sub_node_data_offset, sub_node_data_size, sub_node_data_flags, key_value, free_key_value, key_value_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set sub node: %d data range.", function, sub_node_index ); return( -1 ); } return( 1 ); } /* Appends a sub node offset and size * Returns 1 if successful or -1 on error */ int libfdata_btree_node_append_sub_node( libfdata_btree_node_t *node, int *sub_node_index, int sub_node_data_file_index, off64_t sub_node_data_offset, size64_t sub_node_data_size, uint32_t sub_node_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; libfdata_btree_range_t *data_range = NULL; static char *function = "libfdata_btree_node_append_sub_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_BTREE_NODE_FLAG_IS_LEAF ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - unsupported flags is leaf is set.", function ); return( -1 ); } if( internal_tree_node->sub_node_ranges_array == NULL ) { if( libcdata_array_initialize( &( internal_tree_node->sub_node_ranges_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub node ranges array.", function ); goto on_error; } } if( libfdata_btree_range_initialize( &data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data range.", function ); goto on_error; } if( libfdata_btree_range_set( data_range, sub_node_data_file_index, sub_node_data_offset, sub_node_data_size, sub_node_data_flags, key_value, free_key_value, key_value_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range.", function ); goto on_error; } if( libcdata_array_append_entry( internal_tree_node->sub_node_ranges_array, sub_node_index, (intptr_t *) data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append data range to sub node ranges array.", function ); goto on_error; } internal_tree_node->flags |= LIBFDATA_BTREE_NODE_FLAG_IS_BRANCH; return( 1 ); on_error: if( data_range != NULL ) { libfdata_btree_range_free( &data_range, NULL ); } return( -1 ); } /* Branch leaf values functions */ /* Retrieves the number of leaf values in the branch * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_number_of_leaf_values_in_branch( libfdata_btree_node_t *node, int *number_of_leaf_values, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_number_of_leaf_values_in_branch"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( number_of_leaf_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of leaf values.", function ); return( -1 ); } *number_of_leaf_values = internal_tree_node->branch_number_of_leaf_values; return( 1 ); } /* Leaf value data range functions */ /* Retrieves the number of leaf values * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_number_of_leaf_values( libfdata_btree_node_t *node, int *number_of_leaf_values, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_number_of_leaf_values"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->leaf_value_ranges_array == NULL ) { if( number_of_leaf_values == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of leaf values.", function ); return( -1 ); } *number_of_leaf_values = 0; } else { if( libcdata_array_get_number_of_entries( internal_tree_node->leaf_value_ranges_array, number_of_leaf_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from leaf value ranges array.", function ); return( -1 ); } } return( 1 ); } /* Retrieves a specific leaf value data range * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_leaf_value_data_range_by_index( libfdata_btree_node_t *node, int leaf_value_index, libfdata_btree_range_t **leaf_value_data_range, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_leaf_value_data_range_by_index"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->leaf_value_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing leaf value ranges array.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_tree_node->leaf_value_ranges_array, leaf_value_index, (intptr_t **) leaf_value_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from leaf value ranges array.", function, leaf_value_index ); return( -1 ); } return( 1 ); } /* Retrieves a leaf value data range for a specific mapped index * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_leaf_value_data_range_by_mapped_index( libfdata_btree_node_t *node, int mapped_index, libfdata_btree_range_t **leaf_value_data_range, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_leaf_value_data_range_by_mapped_index"; int number_of_leaf_values = 0; int leaf_value_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->leaf_value_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing leaf value ranges array.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - unsupported flags calculate mapped ranges is set.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested index: %d\n", function, mapped_index ); } #endif if( libcdata_array_get_number_of_entries( internal_tree_node->leaf_value_ranges_array, &number_of_leaf_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from leaf value ranges array.", function ); return( -1 ); } for( leaf_value_index = 0; leaf_value_index < number_of_leaf_values; leaf_value_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->leaf_value_ranges_array, leaf_value_index, (intptr_t **) leaf_value_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from leaf value ranges array.", function, leaf_value_index ); return( -1 ); } if( *leaf_value_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing leaf value: %d data range.", function, leaf_value_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: mapped range: %d\n", function, ( *leaf_value_data_range )->mapped_first_leaf_value_index ); } #endif if( ( mapped_index == ( *leaf_value_data_range )->mapped_first_leaf_value_index ) && ( ( *leaf_value_data_range )->mapped_number_of_leaf_values == 1 ) ) { break; } } if( leaf_value_index >= number_of_leaf_values ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range.", function ); return( -1 ); } return( 1 ); } /* Retrieves a leaf value data range for a specific key * * Uses the key_value_compare_function to determine the similarity of the key values * The key_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libfdata_btree_node_get_leaf_value_data_range_by_key( libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), libfdata_btree_range_t **leaf_value_data_range, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; static char *function = "libfdata_btree_node_get_leaf_value_data_range_by_key"; int number_of_leaf_values = 0; int leaf_value_index = 0; int result = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->leaf_value_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing leaf value ranges array.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - unsupported flags calculate mapped ranges is set.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( internal_tree_node->leaf_value_ranges_array, &number_of_leaf_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from leaf value ranges array.", function ); return( -1 ); } for( leaf_value_index = 0; leaf_value_index < number_of_leaf_values; leaf_value_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->leaf_value_ranges_array, leaf_value_index, (intptr_t **) leaf_value_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from leaf value ranges array.", function, leaf_value_index ); return( -1 ); } if( *leaf_value_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing leaf value: %d data range.", function, leaf_value_index ); return( -1 ); } if( key_value_compare_function == NULL ) { if( key_value == ( *leaf_value_data_range )->key_value ) { return( 1 ); } } else { result = key_value_compare_function( key_value, ( *leaf_value_data_range )->key_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare key value with leaf value data range key value: %d.", function, leaf_value_index ); return( -1 ); } else if( result == LIBFDATA_COMPARE_EQUAL ) { return( 1 ); } else if( result == LIBFDATA_COMPARE_LESS ) { return( 0 ); } else if( result != LIBFDATA_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value compare function return value: %d.", function, result ); return( -1 ); } } } return( 0 ); } /* Retrieves a specific leaf value * Returns 1 if successful or -1 on error */ int libfdata_btree_node_get_leaf_value_by_index( libfdata_btree_node_t *node, int leaf_value_index, int *leaf_value_data_file_index, off64_t *leaf_value_data_offset, size64_t *leaf_value_data_size, uint32_t *leaf_value_data_flags, intptr_t **key_value, libcerror_error_t **error ) { libfdata_btree_range_t *data_range = NULL; static char *function = "libfdata_btree_node_get_leaf_value_by_index"; if( libfdata_btree_node_get_leaf_value_data_range_by_index( node, leaf_value_index, &data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range.", function ); return( -1 ); } if( libfdata_btree_range_get( data_range, leaf_value_data_file_index, leaf_value_data_offset, leaf_value_data_size, leaf_value_data_flags, key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values from leaf value data range.", function ); return( -1 ); } return( 1 ); } /* Retrieves a leaf value for a specific key * * Uses the key_value_compare_function to determine the similarity of the key values * The key_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libfdata_btree_node_get_leaf_value_by_key( libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *leaf_value_data_file_index, off64_t *leaf_value_data_offset, size64_t *leaf_value_data_size, uint32_t *leaf_value_data_flags, libcerror_error_t **error ) { libfdata_btree_range_t *data_range = NULL; intptr_t *data_range_key_value = NULL; static char *function = "libfdata_btree_node_get_leaf_value_by_key"; if( libfdata_btree_node_get_leaf_value_data_range_by_key( node, key_value, key_value_compare_function, &data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range.", function ); return( -1 ); } if( libfdata_btree_range_get( data_range, leaf_value_data_file_index, leaf_value_data_offset, leaf_value_data_size, leaf_value_data_flags, &data_range_key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values from leaf value data range.", function ); return( -1 ); } return( 1 ); } /* Sets the offset and size of a specific leaf value * Returns 1 if successful or -1 on error */ int libfdata_btree_node_set_leaf_value_by_index( libfdata_btree_node_t *node, int leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; libfdata_btree_range_t *data_range = NULL; static char *function = "libfdata_btree_node_set_leaf_value_by_index"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( internal_tree_node->leaf_value_ranges_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid leaf value index value out of bounds.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_tree_node->leaf_value_ranges_array, leaf_value_index, (intptr_t **) &data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from leaf value ranges array.", function, leaf_value_index ); return( -1 ); } if( libfdata_btree_range_set( data_range, leaf_value_data_file_index, leaf_value_data_offset, leaf_value_data_size, leaf_value_data_flags, key_value, free_key_value, key_value_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set leaf value: %d data range.", function, leaf_value_index ); return( -1 ); } return( 1 ); } /* Appends a leaf value offset and size * Returns 1 if successful or -1 on error */ int libfdata_btree_node_append_leaf_value( libfdata_btree_node_t *node, int *leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ) { libfdata_internal_btree_node_t *internal_tree_node = NULL; libfdata_btree_range_t *data_range = NULL; static char *function = "libfdata_btree_node_append_leaf_value"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_btree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_BTREE_NODE_FLAG_IS_BRANCH ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - unsupported flags is branch is set.", function ); return( -1 ); } if( internal_tree_node->leaf_value_ranges_array == NULL ) { if( libcdata_array_initialize( &( internal_tree_node->leaf_value_ranges_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create leaf value ranges array.", function ); goto on_error; } } if( libfdata_btree_range_initialize( &data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data range.", function ); goto on_error; } if( libfdata_btree_range_set( data_range, leaf_value_data_file_index, leaf_value_data_offset, leaf_value_data_size, leaf_value_data_flags, key_value, free_key_value, key_value_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range.", function ); goto on_error; } if( libcdata_array_append_entry( internal_tree_node->leaf_value_ranges_array, leaf_value_index, (intptr_t *) data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append data range to leaf value ranges array.", function ); goto on_error; } internal_tree_node->flags |= LIBFDATA_BTREE_NODE_FLAG_IS_LEAF; return( 1 ); on_error: if( data_range != NULL ) { libfdata_btree_range_free( &data_range, NULL ); } return( -1 ); } libfsapfs-20190210/libfdata/libfdata_list_element.c0000664000175000017500000004560313430101214024244 0ustar00lordyestalordyesta00000000000000/* * The list element functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_definitions.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_libfcache.h" #include "libfdata_list.h" #include "libfdata_list_element.h" #include "libfdata_range.h" #include "libfdata_types.h" /* Creates an element * Make sure the value element is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdata_list_element_initialize( libfdata_list_element_t **element, libfdata_list_t *list, int element_index, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_initialize"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } if( *element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid element value already set.", function ); return( -1 ); } if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( element_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid element index value less than zero.", function ); return( -1 ); } internal_element = memory_allocate_structure( libfdata_internal_list_element_t ); if( internal_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create element.", function ); goto on_error; } if( memory_set( internal_element, 0, sizeof( libfdata_internal_list_element_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear element.", function ); memory_free( internal_element ); return( -1 ); } if( libfdata_range_initialize( &( internal_element->data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create data range.", function ); goto on_error; } if( libfcache_date_time_get_timestamp( &( internal_element->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); goto on_error; } internal_element->list = list; internal_element->element_index = element_index; *element = (libfdata_list_element_t *) internal_element; return( 1 ); on_error: if( internal_element != NULL ) { if( internal_element->data_range != NULL ) { libfdata_range_free( &( internal_element->data_range ), NULL ); } memory_free( internal_element ); } return( -1 ); } /* Frees an element * Returns 1 if successful or -1 on error */ int libfdata_list_element_free( libfdata_list_element_t **element, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_free"; int result = 1; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } if( *element != NULL ) { internal_element = (libfdata_internal_list_element_t *) *element; *element = NULL; if( libfdata_range_free( &( internal_element->data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data range.", function ); result = -1; } memory_free( internal_element ); } return( result ); } /* Clones (duplicates) the element * Returns 1 if successful or -1 on error */ int libfdata_list_element_clone( libfdata_list_element_t **destination_element, libfdata_list_element_t *source_element, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_destination_element = NULL; libfdata_internal_list_element_t *internal_source_element = NULL; static char *function = "libfdata_list_element_clone"; if( destination_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination element.", function ); return( -1 ); } if( *destination_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination element already set.", function ); return( -1 ); } if( source_element == NULL ) { *destination_element = NULL; return( 1 ); } internal_source_element = (libfdata_internal_list_element_t *) source_element; internal_destination_element = memory_allocate_structure( libfdata_internal_list_element_t ); if( internal_destination_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination element.", function ); goto on_error; } if( memory_set( internal_destination_element, 0, sizeof( libfdata_internal_list_element_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination element.", function ); memory_free( internal_destination_element ); return( -1 ); } if( libfdata_range_clone( &( internal_destination_element->data_range ), internal_source_element->data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination data range.", function ); goto on_error; } if( libfcache_date_time_get_timestamp( &( internal_destination_element->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve destination timestamp.", function ); goto on_error; } internal_destination_element->list = internal_source_element->list; internal_destination_element->element_index = internal_source_element->element_index; internal_destination_element->mapped_size = internal_source_element->mapped_size; *destination_element = (libfdata_list_element_t *) internal_destination_element; return( 1 ); on_error: if( internal_destination_element != NULL ) { if( internal_destination_element->data_range != NULL ) { libfdata_range_free( &( internal_destination_element->data_range ), NULL ); } memory_free( internal_destination_element ); } return( -1 ); } /* Retrieves the element index * Returns 1 if successful or -1 on error */ int libfdata_list_element_get_element_index( libfdata_list_element_t *element, int *element_index, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_get_element_index"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } *element_index = internal_element->element_index; return( 1 ); } /* Sets the element index * Returns 1 if successful or -1 on error */ int libfdata_list_element_set_element_index( libfdata_list_element_t *element, int element_index, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_set_element_index"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( element_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid element index value less than zero.", function ); return( -1 ); } internal_element->element_index = element_index; return( 1 ); } /* Retrieves the time stamp * Returns 1 if successful or -1 on error */ int libfdata_list_element_get_timestamp( libfdata_list_element_t *element, int64_t *timestamp, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_get_timestamp"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( timestamp == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid time stamp.", function ); return( -1 ); } *timestamp = internal_element->timestamp; return( 1 ); } /* Data range functions */ /* Retrieves the data range * Returns 1 if successful or -1 on error */ int libfdata_list_element_get_data_range( libfdata_list_element_t *element, int *file_index, off64_t *offset, size64_t *size, uint32_t *flags, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_get_data_range"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( libfdata_range_get( internal_element->data_range, file_index, offset, size, flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range.", function ); return( -1 ); } return( 1 ); } /* Sets the data range * Returns 1 if successful or -1 on error */ int libfdata_list_element_set_data_range( libfdata_list_element_t *element, int file_index, off64_t offset, size64_t size, uint32_t flags, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_set_data_range"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( file_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid file index less than zero.", function ); return( -1 ); } if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid offset value less than zero.", function ); return( -1 ); } if( size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } if( libfdata_range_set( internal_element->data_range, file_index, offset, size, flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range.", function ); return( -1 ); } if( libfcache_date_time_get_timestamp( &( internal_element->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); return( -1 ); } return( 1 ); } /* Mapped range functions */ /* Retrieves the mapped size * Returns 1 if successful, 0 if not set or -1 on error */ int libfdata_list_element_get_mapped_size( libfdata_list_element_t *element, size64_t *mapped_size, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_get_mapped_size"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( mapped_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mapped size.", function ); return( -1 ); } if( ( internal_element->flags & LIBFDATA_LIST_ELEMENT_FLAG_HAS_MAPPED_SIZE ) == 0 ) { return( 0 ); } *mapped_size = internal_element->mapped_size; return( 1 ); } /* Sets the mapped size * Returns 1 if successful or -1 on error */ int libfdata_list_element_set_mapped_size( libfdata_list_element_t *element, size64_t mapped_size, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_set_mapped_size"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( mapped_size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid mapped size value exceeds maximum.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tmapped size: %" PRIu64 "\n", function, internal_element->element_index, mapped_size ); libcnotify_printf( "\n" ); } #endif internal_element->mapped_size = mapped_size; internal_element->flags |= LIBFDATA_LIST_ELEMENT_FLAG_HAS_MAPPED_SIZE; if( libfdata_list_set_calculate_mapped_ranges_flag( internal_element->list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set the calculate mapped ranges flag in list.", function ); return( -1 ); } return( 1 ); } /* Element value functions */ /* Retrieves the element value * Returns 1 if successful or -1 on error */ int libfdata_list_element_get_element_value( libfdata_list_element_t *element, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_get_element_value"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( libfdata_list_get_element_value( internal_element->list, file_io_handle, cache, element, element_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element value.", function ); return( -1 ); } return( 1 ); } /* Sets the element value * * If the flag LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED is set the list element * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_list_element_set_element_value( libfdata_list_element_t *element, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_internal_list_element_t *internal_element = NULL; static char *function = "libfdata_list_element_set_element_value"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } internal_element = (libfdata_internal_list_element_t *) element; if( libfdata_list_set_element_value( internal_element->list, file_io_handle, cache, element, element_value, free_element_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set element value.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfdata/libfdata_mapped_range.h0000664000175000017500000000371513430101214024205 0ustar00lordyestalordyesta00000000000000/* * The (data) mapped range functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_MAPPED_RANGE_H ) #define _LIBFDATA_MAPPED_RANGE_H #include #include #include "libfdata_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_mapped_range libfdata_mapped_range_t; struct libfdata_mapped_range { /* The (start) offset */ off64_t offset; /* The size */ size64_t size; }; int libfdata_mapped_range_initialize( libfdata_mapped_range_t **mapped_range, libcerror_error_t **error ); int libfdata_mapped_range_free( libfdata_mapped_range_t **mapped_range, libcerror_error_t **error ); int libfdata_mapped_range_clone( libfdata_mapped_range_t **destination_mapped_range, libfdata_mapped_range_t *source_mapped_range, libcerror_error_t **error ); int libfdata_mapped_range_get( libfdata_mapped_range_t *mapped_range, off64_t *offset, size64_t *size, libcerror_error_t **error ); int libfdata_mapped_range_set( libfdata_mapped_range_t *mapped_range, off64_t offset, size64_t size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_MAPPED_RANGE_H ) */ libfsapfs-20190210/libfdata/libfdata_extern.h0000664000175000017500000000240613430101214023064 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_EXTERN_H ) #define _LIBFDATA_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBFDATA for local use of libfdata */ #if !defined( HAVE_LOCAL_LIBFDATA ) #include #define LIBFDATA_EXTERN_VARIABLE LIBFDATA_EXTERN #else #define LIBFDATA_EXTERN /* extern */ #define LIBFDATA_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ #endif /* !defined( _LIBFDATA_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libfdata/libfdata_list.c0000664000175000017500000032400313430101214022525 0ustar00lordyestalordyesta00000000000000/* * The list functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_definitions.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_libfcache.h" #include "libfdata_list.h" #include "libfdata_list_element.h" #include "libfdata_mapped_range.h" #include "libfdata_range.h" #include "libfdata_types.h" #include "libfdata_unused.h" /* Creates a list * Make sure the value list is referencing, is set to NULL * * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the list * takes over management of the data handle and the data handle is freed when * no longer needed * * Returns 1 if successful or -1 on error */ int libfdata_list_initialize( libfdata_list_t **list, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_initialize"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( *list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid list value already set.", function ); return( -1 ); } if( ( flags & 0xfe ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%02" PRIx8 ".", function ); return( -1 ); } internal_list = memory_allocate_structure( libfdata_internal_list_t ); if( internal_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create list.", function ); goto on_error; } if( memory_set( internal_list, 0, sizeof( libfdata_internal_list_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear list.", function ); memory_free( internal_list ); return( -1 ); } if( libcdata_array_initialize( &( internal_list->elements_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create elements array.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_list->mapped_ranges_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped ranges array.", function ); goto on_error; } internal_list->flags |= flags; internal_list->data_handle = data_handle; internal_list->free_data_handle = free_data_handle; internal_list->clone_data_handle = clone_data_handle; internal_list->read_element_data = read_element_data; internal_list->write_element_data = write_element_data; *list = (libfdata_list_t *) internal_list; return( 1 ); on_error: if( internal_list != NULL ) { if( internal_list->elements_array != NULL ) { libcdata_array_free( &( internal_list->elements_array ), NULL, NULL ); } memory_free( internal_list ); } return( -1 ); } /* Frees a list * Returns 1 if successful or -1 on error */ int libfdata_list_free( libfdata_list_t **list, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_free"; int result = 1; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( *list != NULL ) { internal_list = (libfdata_internal_list_t *) *list; *list = NULL; if( libcdata_array_free( &( internal_list->elements_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_element_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the elements array.", function ); result = -1; } if( libcdata_array_free( &( internal_list->mapped_ranges_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the mapped ranges array.", function ); result = -1; } if( ( internal_list->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) { if( internal_list->data_handle != NULL ) { if( internal_list->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - missing free data handle function.", function ); result = -1; } else if( internal_list->free_data_handle( &( internal_list->data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data handle.", function ); result = -1; } } } memory_free( internal_list ); } return( result ); } /* Clones (duplicates) the list * Returns 1 if successful or -1 on error */ int libfdata_list_clone( libfdata_list_t **destination_list, libfdata_list_t *source_list, libcerror_error_t **error ) { libfdata_internal_list_t *internal_destination_list = NULL; libfdata_internal_list_t *internal_source_list = NULL; static char *function = "libfdata_list_clone"; if( destination_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination list.", function ); return( -1 ); } if( *destination_list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination list value already set.", function ); return( -1 ); } if( source_list == NULL ) { *destination_list = NULL; return( 1 ); } internal_source_list = (libfdata_internal_list_t *) source_list; internal_destination_list = memory_allocate_structure( libfdata_internal_list_t ); if( internal_destination_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination list.", function ); goto on_error; } if( memory_set( internal_destination_list, 0, sizeof( libfdata_internal_list_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination list.", function ); memory_free( internal_destination_list ); return( -1 ); } if( internal_source_list->data_handle != NULL ) { if( internal_source_list->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source list - missing free data handle function.", function ); goto on_error; } if( internal_source_list->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source list - missing clone data handle function.", function ); goto on_error; } if( internal_source_list->clone_data_handle( &( internal_destination_list->data_handle ), internal_source_list->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to clone data handle.", function ); goto on_error; } } /* TODO set destination list in destination elements */ if( libcdata_array_clone( &( internal_destination_list->elements_array ), internal_source_list->elements_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_element_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_list_element_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination elements array.", function ); goto on_error; } if( libcdata_array_clone( &( internal_destination_list->mapped_ranges_array ), internal_source_list->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_mapped_range_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination mapped ranges array.", function ); goto on_error; } internal_destination_list->flags = internal_source_list->flags | LIBFDATA_DATA_HANDLE_FLAG_MANAGED; internal_destination_list->free_data_handle = internal_source_list->free_data_handle; internal_destination_list->clone_data_handle = internal_source_list->clone_data_handle; internal_destination_list->read_element_data = internal_source_list->read_element_data; internal_destination_list->write_element_data = internal_source_list->write_element_data; *destination_list = (libfdata_list_t *) internal_destination_list; return( 1 ); on_error: if( internal_destination_list != NULL ) { if( internal_destination_list->elements_array != NULL ) { libcdata_array_free( &( internal_destination_list->elements_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_element_free, NULL ); } if( ( internal_destination_list->data_handle != NULL ) && ( internal_source_list->free_data_handle != NULL ) ) { internal_source_list->free_data_handle( &( internal_destination_list->data_handle ), NULL ); } memory_free( internal_destination_list ); } return( -1 ); } /* Sets the calculate mapped ranges flag * Returns 1 if successful or -1 on error */ int libfdata_list_set_calculate_mapped_ranges_flag( libfdata_list_t *list, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_set_calculate_mapped_ranges_flag"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* List elements functions */ /* Empties the list * Returns 1 if successful or -1 on error */ int libfdata_list_empty( libfdata_list_t *list, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_empty"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_empty( internal_list->elements_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_element_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to empty elements array.", function ); return( -1 ); } if( libcdata_array_empty( internal_list->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty mapped ranges array.", function ); return( -1 ); } internal_list->size = 0; return( 1 ); } /* Resizes the list * Returns 1 if successful or -1 on error */ int libfdata_list_resize( libfdata_list_t *list, int number_of_elements, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_resize"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_resize( internal_list->elements_array, number_of_elements, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_element_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize elements array.", function ); return( -1 ); } if( libcdata_array_resize( internal_list->mapped_ranges_array, number_of_elements, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize mapped ranges array.", function ); return( -1 ); } internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Reverses the order of the elements * Returns 1 if successful or -1 on error */ int libfdata_list_reverse( libfdata_list_t *list, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_reverse"; int element_index = 0; int number_of_elements = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_reverse( internal_list->elements_array, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to reverse elements array.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( internal_list->elements_array, &number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from elements array.", function ); return( -1 ); } for( element_index = 0; element_index < number_of_elements; element_index++ ) { if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( libfdata_list_element_set_element_index( list_element, element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set list element: %d index.", function, element_index ); return( -1 ); } } internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Retrieves the number of elements of the list * Returns 1 if successful or -1 on error */ int libfdata_list_get_number_of_elements( libfdata_list_t *list, int *number_of_elements, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_get_number_of_elements"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_number_of_entries( internal_list->elements_array, number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from elements array.", function ); return( -1 ); } return( 1 ); } /* Retrieves a specific list element * Returns 1 if successful or -1 on error */ int libfdata_list_get_list_element_by_index( libfdata_list_t *list, int element_index, libfdata_list_element_t **element, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_get_list_element_by_index"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } internal_list->current_element_index = element_index; return( 1 ); } /* Retrieves the data range of a specific element * Returns 1 if successful or -1 on error */ int libfdata_list_get_element_by_index( libfdata_list_t *list, int element_index, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_get_element_by_index"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( libfdata_list_element_get_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range from list element: %d.", function, element_index ); return( -1 ); } internal_list->current_element_index = element_index; return( 1 ); } /* Sets the data range of a specific element * Returns 1 if successful or -1 on error */ int libfdata_list_set_element_by_index( libfdata_list_t *list, int element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_set_element_by_index"; off64_t previous_element_offset = 0; size64_t mapped_size = 0; size64_t previous_element_size = 0; uint32_t previous_element_flags = 0; int previous_element_file_index = 0; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) off64_t mapped_range_offset = 0; size64_t mapped_range_size = 0; #endif if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( list_element == NULL ) { if( libfdata_list_element_initialize( &list_element, list, element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_list->elements_array, element_index, (intptr_t *) list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in elements array.", function, element_index ); libfdata_list_element_free( &list_element, NULL ); return( -1 ); } } else { result = libfdata_list_element_get_mapped_size( list_element, &mapped_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve mapped size of list element: %d.", function, element_index ); return( -1 ); } else if( result == 0 ) { if( libfdata_list_element_get_data_range( list_element, &previous_element_file_index, &previous_element_offset, &previous_element_size, &previous_element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range of list element: %d.", function, element_index ); return( -1 ); } } } if( libfdata_list_element_set_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range of list element: %d.", function, element_index ); return( -1 ); } /* Make sure the list has a mapped range entry for every element */ if( libcdata_array_get_entry_by_index( internal_list->mapped_ranges_array, element_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, element_index ); return( -1 ); } if( mapped_range == NULL ) { if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_list->mapped_ranges_array, element_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in mapped ranges array.", function, element_index ); libfdata_mapped_range_free( &mapped_range, NULL ); return( -1 ); } internal_list->size += element_size; internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; } /* If the size of the element is mapped or if the element size did not change * there is no need to recalculate the mapped range */ else if( ( mapped_size == 0 ) && ( previous_element_size != element_size ) ) { internal_list->size -= previous_element_size; internal_list->size += element_size; internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, element_index, element_file_index, element_offset, element_offset + element_size, element_size ); if( ( internal_list->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) == 0 ) { if( libfdata_mapped_range_get( mapped_range, &mapped_range_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, element_index ); return( -1 ); } libcnotify_printf( "%s: element: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, element_index, mapped_range_offset, mapped_range_offset + mapped_range_size, mapped_range_size ); } libcnotify_printf( "\n" ); } #endif internal_list->current_element_index = element_index; return( 1 ); } /* Prepends an element data range * Returns 1 if successful or -1 on error */ int libfdata_list_prepend_element( libfdata_list_t *list, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_prepend_element"; off64_t mapped_offset = 0; int element_index = 0; int mapped_range_index = -1; int number_of_elements = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); goto on_error; } mapped_offset = internal_list->mapped_offset + (off64_t) internal_list->size; if( libfdata_mapped_range_set( mapped_range, mapped_offset, element_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped range values.", function ); goto on_error; } if( libcdata_array_append_entry( internal_list->mapped_ranges_array, &mapped_range_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append mapped range to array.", function ); goto on_error; } if( libfdata_list_element_initialize( &list_element, list, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libfdata_list_element_set_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range of list element.", function ); goto on_error; } if( libcdata_array_prepend_entry( internal_list->elements_array, (intptr_t *) list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend list element to elements array.", function ); goto on_error; } mapped_range_index = -1; mapped_range = NULL; if( libcdata_array_get_number_of_entries( internal_list->elements_array, &number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from elements array.", function ); goto on_error; } for( element_index = 0; element_index < number_of_elements; element_index++ ) { if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); list_element = NULL; goto on_error; } if( libfdata_list_element_set_element_index( list_element, element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set list element: %d index.", function, element_index ); list_element = NULL; goto on_error; } } internal_list->current_element_index = 0; internal_list->size += element_size; internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); on_error: if( list_element != NULL ) { libfdata_list_element_free( &list_element, NULL ); } if( mapped_range_index != -1 ) { libcdata_array_set_entry_by_index( internal_list->mapped_ranges_array, mapped_range_index, NULL, NULL ); } if( mapped_range != NULL ) { libfdata_mapped_range_free( &mapped_range, NULL ); } return( -1 ); } /* Appends an element data range * Returns 1 if successful or -1 on error */ int libfdata_list_append_element( libfdata_list_t *list, int *element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_append_element"; off64_t mapped_offset = 0; int mapped_range_index = -1; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); goto on_error; } mapped_offset = internal_list->mapped_offset + (off64_t) internal_list->size; if( libfdata_mapped_range_set( mapped_range, mapped_offset, element_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped range values.", function ); goto on_error; } if( libcdata_array_append_entry( internal_list->mapped_ranges_array, &mapped_range_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append mapped range to array.", function ); goto on_error; } if( libfdata_list_element_initialize( &list_element, list, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libfdata_list_element_set_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range of list element.", function ); goto on_error; } if( libcdata_array_append_entry( internal_list->elements_array, element_index, (intptr_t *) list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append list element to elements array.", function ); goto on_error; } mapped_range_index = -1; mapped_range = NULL; if( libfdata_list_element_set_element_index( list_element, *element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set list element index.", function ); list_element = NULL; goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, *element_index, element_file_index, element_offset, element_offset + element_size, element_size ); libcnotify_printf( "%s: element: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, *element_index, mapped_offset, mapped_offset + element_size, element_size ); libcnotify_printf( "\n" ); } #endif internal_list->current_element_index = *element_index; internal_list->size += element_size; return( 1 ); on_error: if( list_element != NULL ) { libfdata_list_element_free( &list_element, NULL ); } if( mapped_range_index != -1 ) { libcdata_array_set_entry_by_index( internal_list->mapped_ranges_array, mapped_range_index, NULL, NULL ); } if( mapped_range != NULL ) { libfdata_mapped_range_free( &mapped_range, NULL ); } return( -1 ); } /* Appends the element of the source list to the list * The source list is emptied if successful * Returns 1 if successful or -1 on error */ int libfdata_list_append_list( libfdata_list_t *list, libfdata_list_t *source_list, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_internal_list_t *internal_source_list = NULL; libfdata_list_element_t *list_element = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_append_list"; off64_t mapped_range_offset = 0; size64_t mapped_range_size = 0; int element_index = 0; int new_number_of_elements = 0; int number_of_elements = 0; int result = 1; int source_element_index = 0; int source_number_of_elements = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( source_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid source list.", function ); return( -1 ); } internal_source_list = (libfdata_internal_list_t *) source_list; if( ( internal_list->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_list_calculate_mapped_ranges( internal_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges.", function ); goto on_error; } } if( ( internal_source_list->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_list_calculate_mapped_ranges( internal_source_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges of source list.", function ); goto on_error; } } if( ( internal_list->mapped_offset != 0 ) || ( internal_source_list->mapped_offset != 0 ) ) { if( ( (size64_t) internal_list->mapped_offset + internal_list->size ) != (size64_t) internal_source_list->mapped_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid source mapped offset value out of bounds.", function ); goto on_error; } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: appending source list with mapped offset: %" PRIi64 " and size: %" PRIu64 " to list with mapped offset: %" PRIi64 " and size: %" PRIu64 "\n", function, internal_source_list->mapped_offset, internal_source_list->size, internal_list->mapped_offset, internal_list->size ); } #endif if( libcdata_array_get_number_of_entries( internal_list->elements_array, &number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from elements array.", function ); goto on_error; } if( libcdata_array_get_number_of_entries( internal_source_list->elements_array, &source_number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from source list elements array.", function ); goto on_error; } element_index = number_of_elements; new_number_of_elements = number_of_elements + source_number_of_elements; if( libcdata_array_resize( internal_list->elements_array, new_number_of_elements, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_element_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize elements array.", function ); goto on_error; } if( libcdata_array_resize( internal_list->mapped_ranges_array, new_number_of_elements, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize mapped ranges array.", function ); goto on_error; } for( source_element_index = 0; source_element_index < source_number_of_elements; source_element_index++ ) { if( libcdata_array_get_entry_by_index( internal_source_list->elements_array, source_element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from source list elements array.", function, source_element_index ); goto on_error; } if( libcdata_array_set_entry_by_index( internal_list->elements_array, element_index, (intptr_t *) list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in elements array.", function, element_index ); goto on_error; } if( libcdata_array_get_entry_by_index( internal_source_list->mapped_ranges_array, source_element_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from source list mapped ranges array.", function, source_element_index ); goto on_error; } if( libcdata_array_set_entry_by_index( internal_list->mapped_ranges_array, element_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in mapped ranges array.", function, element_index ); goto on_error; } element_index++; } element_index = number_of_elements; number_of_elements = new_number_of_elements; new_number_of_elements = 0; if( libcdata_array_empty( internal_source_list->elements_array, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to empty source list elements array.", function ); result = -1; } if( libcdata_array_empty( internal_source_list->mapped_ranges_array, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to empty source list mapped ranges array.", function ); result = -1; } internal_source_list->size = 0; while( element_index < number_of_elements ) { if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); goto on_error; } ( (libfdata_internal_list_element_t *) list_element )->list = list; ( (libfdata_internal_list_element_t *) list_element )->element_index = element_index; if( libcdata_array_get_entry_by_index( internal_list->mapped_ranges_array, element_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, element_index ); goto on_error; } if( libfdata_mapped_range_get( mapped_range, &mapped_range_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, element_index ); goto on_error; } if( libfdata_mapped_range_set( mapped_range, internal_list->size, mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set values of mapped range: %d.", function, element_index ); goto on_error; } internal_list->size += mapped_range_size; element_index++; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( result ); on_error: if( new_number_of_elements != 0 ) { libcdata_array_resize( internal_list->mapped_ranges_array, number_of_elements, NULL, NULL ); libcdata_array_resize( internal_list->elements_array, number_of_elements, NULL, NULL ); } return( -1 ); } /* Determines if a specific element is set * Returns 1 if element is set, 0 if not or -1 on error */ int libfdata_list_is_element_set( libfdata_list_t *list, int element_index, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_is_element_set"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( list_element == NULL ) { return( 0 ); } internal_list->current_element_index = element_index; return( 1 ); } /* Mapped range functions */ /* Retrieves the mapped offset * Returns 1 if successful, 0 if not set or -1 on error */ int libfdata_list_get_mapped_offset( libfdata_list_t *list, off64_t *mapped_offset, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_get_mapped_offset"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( mapped_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mapped offset.", function ); return( -1 ); } if( ( internal_list->flags & LIBFDATA_LIST_FLAG_HAS_MAPPED_OFFSET ) == 0 ) { return( 0 ); } *mapped_offset = internal_list->mapped_offset; return( 1 ); } /* Sets the mapped offset * Returns 1 if successful or -1 on error */ int libfdata_list_set_mapped_offset( libfdata_list_t *list, off64_t mapped_offset, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_set_mapped_offset"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( mapped_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid offset value out of bounds.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: mapped offset: %" PRIi64 "\n", function, mapped_offset ); libcnotify_printf( "\n" ); } #endif internal_list->mapped_offset = mapped_offset; internal_list->flags |= LIBFDATA_LIST_FLAG_HAS_MAPPED_OFFSET | LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Retrieves the mapped size of a specific element * Returns 1 if successful, 0 if not set or -1 on error */ int libfdata_list_get_mapped_size_by_index( libfdata_list_t *list, int element_index, size64_t *mapped_size, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_get_mapped_size_by_index"; int result = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } result = libfdata_list_element_get_mapped_size( list_element, mapped_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve mapped size of element: %d.", function, element_index ); return( -1 ); } internal_list->current_element_index = element_index; return( result ); } /* Sets the mapped size of a specific element * Returns 1 if successful or -1 on error */ int libfdata_list_set_mapped_size_by_index( libfdata_list_t *list, int element_index, size64_t mapped_size, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_set_mapped_size_by_index"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( libfdata_list_element_set_mapped_size( list_element, mapped_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped size of element: %d.", function, element_index ); return( -1 ); } internal_list->current_element_index = element_index; return( 1 ); } /* Retrieves the data range with its mapped size of a specific element * Returns 1 if successful, 0 if the element has no mapped size or -1 on error */ int libfdata_list_get_element_by_index_with_mapped_size( libfdata_list_t *list, int element_index, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, size64_t *mapped_size, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_get_element_by_index_with_mapped_size"; int result = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( libfdata_list_element_get_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range from list element: %d.", function, element_index ); return( -1 ); } result = libfdata_list_element_get_mapped_size( list_element, mapped_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve mapped size of list element: %d.", function, element_index ); return( -1 ); } internal_list->current_element_index = element_index; return( result ); } /* Sets the data range of a specific element with its mapped size * Returns 1 if successful or -1 on error */ int libfdata_list_set_element_by_index_with_mapped_size( libfdata_list_t *list, int element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, size64_t mapped_size, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_set_element_by_index_with_mapped_size"; off64_t previous_element_offset = 0; size64_t previous_element_size = 0; size64_t previous_mapped_size = 0; uint32_t previous_element_flags = 0; int previous_element_file_index = 0; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) off64_t mapped_range_offset = 0; size64_t mapped_range_size = 0; #endif if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( list_element == NULL ) { if( libfdata_list_element_initialize( &list_element, list, element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_list->elements_array, element_index, (intptr_t *) list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in elements array.", function, element_index ); libfdata_list_element_free( &list_element, NULL ); return( -1 ); } } else { result = libfdata_list_element_get_mapped_size( list_element, &previous_mapped_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve mapped size of list element: %d.", function, element_index ); return( -1 ); } else if( result == 0 ) { if( libfdata_list_element_get_data_range( list_element, &previous_element_file_index, &previous_element_offset, &previous_element_size, &previous_element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range of list element: %d.", function, element_index ); return( -1 ); } } } if( libfdata_list_element_set_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range of list element: %d.", function, element_index ); return( -1 ); } if( libfdata_list_element_set_mapped_size( list_element, mapped_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped size of list element.", function ); return( -1 ); } /* Make sure the list has a mapped range entry for every element */ if( libcdata_array_get_entry_by_index( internal_list->mapped_ranges_array, element_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, element_index ); return( -1 ); } if( mapped_range == NULL ) { if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_list->mapped_ranges_array, element_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in mapped ranges array.", function, element_index ); libfdata_mapped_range_free( &mapped_range, NULL ); return( -1 ); } internal_list->size += mapped_size; internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; } else if( previous_mapped_size != mapped_size ) { if( previous_mapped_size != 0 ) { internal_list->size -= previous_mapped_size; } else { internal_list->size -= previous_element_size; } if( mapped_size != 0 ) { internal_list->size += mapped_size; } else { internal_list->size += element_size; } internal_list->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, element_index, element_file_index, element_offset, element_offset + element_size, element_size ); if( ( internal_list->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) == 0 ) { if( libfdata_mapped_range_get( mapped_range, &mapped_range_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, element_index ); return( -1 ); } libcnotify_printf( "%s: element: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, element_index, mapped_range_offset, mapped_range_offset + mapped_range_size, mapped_range_size ); } libcnotify_printf( "\n" ); } #endif internal_list->current_element_index = element_index; return( 1 ); } /* Appends an element data range with its mapped size * Returns 1 if successful or -1 on error */ int libfdata_list_append_element_with_mapped_size( libfdata_list_t *list, int *element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, size64_t mapped_size, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_append_element_with_mapped_size"; off64_t mapped_offset = 0; int mapped_range_index = -1; uint8_t list_flags = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); goto on_error; } mapped_offset = internal_list->mapped_offset + (off64_t) internal_list->size; if( libfdata_mapped_range_set( mapped_range, mapped_offset, mapped_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped range values.", function ); goto on_error; } if( libcdata_array_append_entry( internal_list->mapped_ranges_array, &mapped_range_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append mapped range to array.", function ); goto on_error; } if( libfdata_list_element_initialize( &list_element, list, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libfdata_list_element_set_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range of list element.", function ); goto on_error; } list_flags = internal_list->flags; if( libfdata_list_element_set_mapped_size( list_element, mapped_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped size of list element.", function ); goto on_error; } /* Setting the mapped size in the list element will set the calculate mapped ranges flag in the list * Reset the flag if it was not set before setting the mapped size in the list element */ if( ( list_flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) == 0 ) { internal_list->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } if( libcdata_array_append_entry( internal_list->elements_array, element_index, (intptr_t *) list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append list element to elements array.", function ); goto on_error; } mapped_range_index = -1; mapped_range = NULL; if( libfdata_list_element_set_element_index( list_element, *element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set list element index.", function ); list_element = NULL; goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, *element_index, element_file_index, element_offset, element_offset + element_size, element_size ); libcnotify_printf( "%s: element: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, *element_index, mapped_offset, mapped_offset + mapped_size, mapped_size ); libcnotify_printf( "\n" ); } #endif internal_list->current_element_index = *element_index; internal_list->size += mapped_size; return( 1 ); on_error: if( list_element != NULL ) { libfdata_list_element_free( &list_element, NULL ); } if( mapped_range_index != -1 ) { libcdata_array_set_entry_by_index( internal_list->mapped_ranges_array, mapped_range_index, NULL, NULL ); } if( mapped_range != NULL ) { libfdata_mapped_range_free( &mapped_range, NULL ); } return( -1 ); } /* Calculates the mapped ranges * Returns 1 if successful or -1 on error */ int libfdata_list_calculate_mapped_ranges( libfdata_internal_list_t *internal_list, libcerror_error_t **error ) { libfdata_list_element_t *list_element = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_calculate_mapped_ranges"; off64_t mapped_offset = 0; off64_t element_offset = 0; size64_t element_size = 0; size64_t mapped_size = 0; uint32_t element_flags = 0; int element_file_index = -1; int element_index = -1; int number_of_elements = 0; int result = 0; if( internal_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( internal_list->elements_array, &number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of elements from elements array.", function ); return( -1 ); } mapped_offset = internal_list->mapped_offset; for( element_index = 0; element_index < number_of_elements; element_index++ ) { if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_list->mapped_ranges_array, element_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, element_index ); return( -1 ); } if( libfdata_list_element_get_data_range( list_element, &element_file_index, &element_offset, &element_size, &element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range of list element: %d.", function, element_index ); return( -1 ); } result = libfdata_list_element_get_mapped_size( list_element, &mapped_size, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve mapped size of list element: %d.", function, element_index ); return( -1 ); } else if( result == 0 ) { mapped_size = element_size; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, element_index, element_file_index, element_offset, element_offset + element_size, element_size ); libcnotify_printf( "%s: element: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, element_index, mapped_offset, mapped_offset + mapped_size, mapped_size ); } #endif if( libfdata_mapped_range_set( mapped_range, mapped_offset, mapped_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped range: %d values.", function, element_index ); return( -1 ); } mapped_offset += (off64_t) mapped_size; } internal_list->size = (size64_t) mapped_offset - internal_list->mapped_offset; internal_list->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( 1 ); } /* Retrieves the element index for a specific offset * The element_data_offset value is set to the offset relative to the start of the element * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_list_get_element_index_at_offset( libfdata_list_t *list, off64_t offset, int *element_index, off64_t *element_data_offset, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_list_get_element_index_at_offset"; off64_t list_offset = 0; off64_t mapped_range_end_offset = 0; off64_t mapped_range_start_offset = 0; size64_t mapped_range_size = 0; int initial_element_index = 0; int number_of_elements = 0; int result = 0; int search_element_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) libfdata_list_element_t *element = NULL; off64_t element_offset = 0; size64_t element_size = 0; uint32_t element_flags = 0; int element_file_index = -1; #endif if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid offset value less than zero.", function ); return( -1 ); } if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } if( element_data_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element data offset.", function ); return( -1 ); } if( ( internal_list->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_list_calculate_mapped_ranges( internal_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges.", function ); return( -1 ); } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested offset: 0x%08" PRIx64 "\n", function, offset ); } #endif if( internal_list->size == 0 ) { return( 0 ); } if( offset < internal_list->mapped_offset ) { return( 0 ); } list_offset = offset - internal_list->mapped_offset; if( (size64_t) list_offset >= internal_list->size ) { return( 0 ); } if( libcdata_array_get_number_of_entries( internal_list->mapped_ranges_array, &number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from mapped ranges array.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: number of elements: %d\n", function, number_of_elements ); } #endif /* This assumes a fairly even distribution of the sizes of the elements */ initial_element_index = (int) ( ( number_of_elements * list_offset ) / internal_list->size ); /* Look for the corresponding element upwards in the array */ for( search_element_index = initial_element_index; search_element_index < number_of_elements; search_element_index++ ) { if( libcdata_array_get_entry_by_index( internal_list->mapped_ranges_array, search_element_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, search_element_index ); return( -1 ); } if( libfdata_mapped_range_get( mapped_range, &mapped_range_start_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, search_element_index ); return( -1 ); } mapped_range_end_offset = mapped_range_start_offset + (off64_t) mapped_range_size; if( mapped_range_end_offset < mapped_range_start_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element: %d - mapped range value out of bounds.", function, search_element_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, search_element_index, mapped_range_start_offset, mapped_range_end_offset, mapped_range_size ); } #endif /* Check if the offset is in the mapped range */ if( ( offset >= mapped_range_start_offset ) && ( offset < mapped_range_end_offset ) ) { offset -= mapped_range_start_offset; break; } /* Check if the offset is out of bounds */ if( offset < mapped_range_start_offset ) { search_element_index = number_of_elements; break; } } if( search_element_index >= number_of_elements ) { /* Look for the corresponding element downwards in the array */ for( search_element_index = initial_element_index; search_element_index >= 0; search_element_index-- ) { if( libcdata_array_get_entry_by_index( internal_list->mapped_ranges_array, search_element_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, search_element_index ); return( -1 ); } if( libfdata_mapped_range_get( mapped_range, &mapped_range_start_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, search_element_index ); return( -1 ); } mapped_range_end_offset = mapped_range_start_offset + (off64_t) mapped_range_size; if( mapped_range_end_offset < mapped_range_start_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element: %d - mapped range value out of bounds.", function, search_element_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: element: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, search_element_index, mapped_range_start_offset, mapped_range_end_offset, mapped_range_size ); } #endif /* Check if the offset is in the mapped range */ if( ( offset >= mapped_range_start_offset ) && ( offset < mapped_range_end_offset ) ) { offset -= mapped_range_start_offset; break; } /* Check if the offset is out of bounds */ if( offset > mapped_range_start_offset ) { search_element_index--; break; } } } if( ( search_element_index >= 0 ) && ( search_element_index < number_of_elements ) ) { if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid offset value out of bounds.", function ); return( -1 ); } *element_data_offset = offset; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( libcdata_array_get_entry_by_index( internal_list->elements_array, search_element_index, (intptr_t **) &element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, search_element_index ); return( -1 ); } if( libfdata_list_element_get_data_range( element, &element_file_index, &element_offset, &element_size, &element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range of list element: %d.", function, search_element_index ); return( -1 ); } libcnotify_printf( "%s: element: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, search_element_index, element_file_index, element_offset, element_offset + element_size, element_size ); } #endif internal_list->current_element_index = search_element_index; result = 1; } if( result == 1 ) { *element_index = search_element_index; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( result ); } /* Retrieves the list element for a specific offset * The element_data_offset value is set to the offset relative to the start of the element * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_list_get_list_element_at_offset( libfdata_list_t *list, off64_t offset, int *element_index, off64_t *element_data_offset, libfdata_list_element_t **element, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_get_list_element_at_offset"; int result = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid offset value less than zero.", function ); return( -1 ); } if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } result = libfdata_list_get_element_index_at_offset( list, offset, element_index, element_data_offset, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element index at offset: 0x%08" PRIx64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { if( libcdata_array_get_entry_by_index( internal_list->elements_array, *element_index, (intptr_t **) element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, *element_index ); return( -1 ); } } return( result ); } /* Retrieves the data range of an element at a specific offset * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_list_get_element_at_offset( libfdata_list_t *list, off64_t offset, int *element_index, off64_t *element_data_offset, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_get_element_at_offset"; int result = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } result = libfdata_list_get_element_index_at_offset( list, offset, element_index, element_data_offset, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element index at offset: 0x%08" PRIx64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { if( libcdata_array_get_entry_by_index( internal_list->elements_array, *element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, *element_index ); return( -1 ); } if( libfdata_list_element_get_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range of list element: %d.", function, *element_index ); return( -1 ); } } return( result ); } /* List element value functions */ /* Caches the element value * Returns 1 if successful or -1 on error */ int libfdata_list_cache_element_value( libfdata_list_t *list, libfdata_cache_t *cache, int element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, int64_t element_timestamp, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_cache_element_value"; int cache_entry_index = -1; int number_of_cache_entries = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( element_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element index value out of bounds.", function ); return( -1 ); } if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } if( internal_list->calculate_cache_entry_index == NULL ) { cache_entry_index = element_index % number_of_cache_entries; } else { cache_entry_index = internal_list->calculate_cache_entry_index( element_index, element_file_index, element_offset, element_size, element_flags, number_of_cache_entries ); } if( libfcache_cache_set_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, element_file_index, element_offset, element_timestamp, element_value, free_element_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache entry: %d.", function, cache_entry_index ); return( -1 ); } return( 1 ); } /* Retrieves the element value * Returns 1 if successful or -1 on error */ int libfdata_list_get_element_value( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_list_element_t *element, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_get_element_value"; size64_t element_size = 0; off64_t cache_value_offset = (off64_t) -1; off64_t element_offset = 0; int64_t cache_value_timestamp = 0; int64_t element_timestamp = 0; uint32_t element_flags = 0; int cache_entry_index = -1; int cache_value_file_index = -1; int element_file_index = -1; int element_index = -1; int number_of_cache_entries = 0; int result = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( internal_list->read_element_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - missing read element data function.", function ); return( -1 ); } if( libfdata_list_element_get_data_range( element, &element_file_index, &element_offset, &element_size, &element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range from list element.", function ); return( -1 ); } if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( libfdata_list_element_get_element_index( element, &element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element index from list element.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } if( ( read_flags & LIBFDATA_READ_FLAG_IGNORE_CACHE ) == 0 ) { if( internal_list->calculate_cache_entry_index == NULL ) { cache_entry_index = element_index % number_of_cache_entries; } else { cache_entry_index = internal_list->calculate_cache_entry_index( element_index, element_file_index, element_offset, element_size, element_flags, number_of_cache_entries ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfdata_list_element_get_timestamp( element, &element_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve time stamp from list element.", function ); return( -1 ); } if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( element_file_index == cache_value_file_index ) && ( element_offset == cache_value_offset ) && ( element_timestamp == cache_value_timestamp ) ) { result = 1; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( result == 0 ) { libcnotify_printf( "%s: cache: 0x%08" PRIjx " miss (%d out of %d)\n", function, (intptr_t) cache, cache_entry_index, number_of_cache_entries ); } else { libcnotify_printf( "%s: cache: 0x%08" PRIjx " hit (%d out of %d)\n", function, (intptr_t) cache, cache_entry_index, number_of_cache_entries ); } } #endif } if( result == 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading element data at offset: %" PRIi64 " (0x%08" PRIx64 ") of size: %" PRIu64 "\n", function, element_offset, element_offset, element_size ); } #endif if( internal_list->read_element_data( internal_list->data_handle, file_io_handle, element, cache, element_file_index, element_offset, element_size, element_flags, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read element data at offset: 0x%08" PRIx64 ".", function, element_offset ); return( -1 ); } if( internal_list->calculate_cache_entry_index == NULL ) { cache_entry_index = element_index % number_of_cache_entries; } else { cache_entry_index = internal_list->calculate_cache_entry_index( element_index, element_file_index, element_offset, element_size, element_flags, number_of_cache_entries ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfdata_list_element_get_timestamp( element, &element_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve time stamp from list element.", function ); return( -1 ); } if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( element_file_index != cache_value_file_index ) || ( element_offset != cache_value_offset ) || ( element_timestamp != cache_value_timestamp ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing cache value.", function ); return( -1 ); } } if( libfcache_cache_value_get_value( cache_value, element_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element value.", function ); return( -1 ); } return( 1 ); } /* Retrieves the value of a specific element * Returns 1 if successful or -1 on error */ int libfdata_list_get_element_value_by_index( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, int element_index, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_get_element_value_by_index"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( libfdata_list_get_element_value( list, file_io_handle, cache, list_element, element_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element value.", function ); return( -1 ); } internal_list->current_element_index = element_index; return( 1 ); } /* Retrieves the value an element at a specific offset * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_list_get_element_value_at_offset( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, int *element_index, off64_t *element_data_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_get_element_value_at_offset"; int result = 0; if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } result = libfdata_list_get_list_element_at_offset( list, offset, element_index, element_data_offset, &list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element at offset: 0x%08" PRIx64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { if( libfdata_list_get_element_value( list, file_io_handle, cache, list_element, element_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element: %d value.", function, *element_index ); return( -1 ); } } return( result ); } /* Sets the value of a specific element * * If the flag LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED is set the list * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_list_set_element_value( libfdata_list_t *list, intptr_t *file_io_handle LIBFDATA_ATTRIBUTE_UNUSED, libfdata_cache_t *cache, libfdata_list_element_t *element, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { static char *function = "libfdata_list_set_element_value"; size64_t element_size = 0; off64_t element_offset = 0; int64_t element_timestamp = 0; uint32_t element_flags = 0; int element_file_index = -1; int element_index = -1; LIBFDATA_UNREFERENCED_PARAMETER( file_io_handle ) if( libfdata_list_element_get_data_range( element, &element_file_index, &element_offset, &element_size, &element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range from list element.", function ); return( -1 ); } if( libfdata_list_element_get_element_index( element, &element_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element index from list element.", function ); return( -1 ); } if( libfdata_list_element_get_timestamp( element, &element_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve time stamp from list element.", function ); return( -1 ); } if( libfdata_list_cache_element_value( list, cache, element_index, element_file_index, element_offset, element_size, element_flags, element_timestamp, element_value, free_element_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to cache element value.", function ); return( -1 ); } return( 1 ); } /* Sets the value of a specific element * * If the flag LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED is set the list * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_list_set_element_value_by_index( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, int element_index, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_set_element_value_by_index"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( libcdata_array_get_entry_by_index( internal_list->elements_array, element_index, (intptr_t **) &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from elements array.", function, element_index ); return( -1 ); } if( libfdata_list_set_element_value( list, file_io_handle, cache, list_element, element_value, free_element_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set element value.", function ); return( -1 ); } internal_list->current_element_index = element_index; return( 1 ); } /* Sets the value of an element at a specific offset * * If the flag LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED is set the list * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_list_set_element_value_at_offset( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_set_element_value_at_offset"; off64_t element_data_offset = 0; int element_index = 0; int result = 0; result = libfdata_list_get_list_element_at_offset( list, offset, &element_index, &element_data_offset, &list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element at offset: 0x%08" PRIx64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { if( libfdata_list_set_element_value( list, file_io_handle, cache, list_element, element_value, free_element_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value of element: %d.", function, element_index ); return( -1 ); } } return( result ); } /* Retrieves the size of the list * Returns 1 if successful or -1 on error */ int libfdata_list_get_size( libfdata_list_t *list, size64_t *size, libcerror_error_t **error ) { libfdata_internal_list_t *internal_list = NULL; static char *function = "libfdata_list_get_size"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libfdata_internal_list_t *) list; if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } if( ( internal_list->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_list_calculate_mapped_ranges( internal_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges.", function ); return( -1 ); } } *size = internal_list->size; return( 1 ); } libfsapfs-20190210/libfdata/libfdata_libcdata.h0000664000175000017500000000301613430101214023320 0ustar00lordyestalordyesta00000000000000/* * The libcdata header wrapper * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_LIBCDATA_H ) #define _LIBFDATA_LIBCDATA_H #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata */ #if defined( HAVE_LOCAL_LIBCDATA ) #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCDATA_DLL_IMPORT * before including libcdata.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCDATA_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCDATA ) */ #endif /* !defined( _LIBFDATA_LIBCDATA_H ) */ libfsapfs-20190210/libfdata/libfdata_notify.h0000664000175000017500000000307313430101214023070 0ustar00lordyestalordyesta00000000000000/* * Notification functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_NOTIFY_H ) #define _LIBFDATA_NOTIFY_H #include #include #include #include "libfdata_extern.h" #include "libfdata_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFDATA ) LIBFDATA_EXTERN \ void libfdata_notify_set_verbose( int verbose ); LIBFDATA_EXTERN \ int libfdata_notify_set_stream( FILE *stream, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_notify_stream_open( const char *filename, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_notify_stream_close( libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_NOTIFY_H ) */ libfsapfs-20190210/libfdata/libfdata_range_list.h0000664000175000017500000001357713430101214023721 0ustar00lordyestalordyesta00000000000000/* * The range list functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_RANGE_LIST_H ) #define _LIBFDATA_INTERNAL_RANGE_LIST_H #include #include #include "libfdata_extern.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_range_list libfdata_internal_range_list_t; struct libfdata_internal_range_list { /* The (list) elements range list */ libcdata_range_list_t *elements_range_list; /* The flags */ uint8_t flags; /* The data handle */ intptr_t *data_handle; /* The free data handle function */ int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ); /* The clone (duplicate) data handle function */ int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ); /* The read element data function */ int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, uint8_t read_flags, libcerror_error_t **error ); /* The write element data function */ int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, uint8_t write_flags, libcerror_error_t **error ); }; LIBFDATA_EXTERN \ int libfdata_range_list_initialize( libfdata_range_list_t **range_list, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_range_list_free( libfdata_range_list_t **range_list, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_range_list_clone( libfdata_range_list_t **destination_range_list, libfdata_range_list_t *source_range_list, libcerror_error_t **error ); /* List elements functions */ LIBFDATA_EXTERN \ int libfdata_range_list_empty( libfdata_range_list_t *range_list, libcerror_error_t **error ); /* Mapped range functions */ LIBFDATA_EXTERN \ int libfdata_range_list_get_list_element_at_offset( libfdata_range_list_t *range_list, off64_t offset, off64_t *element_data_offset, libfdata_list_element_t **element, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_range_list_get_element_at_offset( libfdata_range_list_t *range_list, off64_t offset, off64_t *element_data_offset, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_range_list_insert_element( libfdata_range_list_t *range_list, off64_t offset, size64_t size, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ); /* List element value functions */ LIBFDATA_EXTERN \ int libfdata_range_list_get_element_value_at_offset( libfdata_range_list_t *range_list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, off64_t *element_data_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_range_list_set_element_value_at_offset( libfdata_range_list_t *range_list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_RANGE_LIST_H ) */ libfsapfs-20190210/libfdata/Makefile.am0000664000175000017500000000272213430101214021615 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBFDATA AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @LIBCDATA_CPPFLAGS@ \ @LIBCNOTIFY_CPPFLAGS@ \ @LIBFCACHE_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ noinst_LTLIBRARIES = libfdata.la libfdata_la_SOURCES = \ libfdata_area.c libfdata_area.h \ libfdata_btree.c libfdata_btree.h \ libfdata_btree_node.c libfdata_btree_node.h \ libfdata_btree_range.c libfdata_btree_range.h \ libfdata_cache.c libfdata_cache.h \ libfdata_definitions.h \ libfdata_error.c libfdata_error.h \ libfdata_extern.h \ libfdata_inline.h \ libfdata_libcdata.h \ libfdata_libcerror.h \ libfdata_libcnotify.h \ libfdata_libfcache.h \ libfdata_list.c libfdata_list.h \ libfdata_list_element.c libfdata_list_element.h \ libfdata_mapped_range.c libfdata_mapped_range.h \ libfdata_notify.c libfdata_notify.h \ libfdata_range.c libfdata_range.h \ libfdata_range_list.c libfdata_range_list.h \ libfdata_segments_array.c libfdata_segments_array.h \ libfdata_stream.c libfdata_stream.h \ libfdata_support.c libfdata_support.h \ libfdata_tree.c libfdata_tree.h \ libfdata_tree_node.c libfdata_tree_node.h \ libfdata_types.h \ libfdata_unused.h \ libfdata_vector.c libfdata_vector.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfdata ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfdata_la_SOURCES) libfsapfs-20190210/libfdata/libfdata_error.c0000664000175000017500000000554013430101214022705 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_error.h" #include "libfdata_libcerror.h" #if !defined( HAVE_LOCAL_LIBFDATA ) /* Free an error and its elements */ void libfdata_error_free( libfdata_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfdata_error_fprint( libfdata_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfdata_error_sprint( libfdata_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libfdata_error_backtrace_fprint( libfdata_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libfdata_error_backtrace_sprint( libfdata_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ libfsapfs-20190210/libfdata/libfdata_list.h0000664000175000017500000002756013430101214022542 0ustar00lordyestalordyesta00000000000000/* * The list functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_LIST_H ) #define _LIBFDATA_INTERNAL_LIST_H #include #include #include "libfdata_extern.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_list libfdata_internal_list_t; struct libfdata_internal_list { /* The current (most recently used) element index */ int current_element_index; /* The mapped offset */ off64_t mapped_offset; /* The (list) size */ size64_t size; /* The (list) elements array */ libcdata_array_t *elements_array; /* The mapped ranges array */ libcdata_array_t *mapped_ranges_array; /* The flags */ uint8_t flags; /* The calculate cache entry index value */ int (*calculate_cache_entry_index)( int element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, int number_of_cache_entries ); /* The data handle */ intptr_t *data_handle; /* The free data handle function */ int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ); /* The clone (duplicate) data handle function */ int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ); /* The read element data function */ int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ); /* The write element data function */ int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ); }; LIBFDATA_EXTERN \ int libfdata_list_initialize( libfdata_list_t **list, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_free( libfdata_list_t **list, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_clone( libfdata_list_t **destination_list, libfdata_list_t *source_list, libcerror_error_t **error ); int libfdata_list_set_calculate_mapped_ranges_flag( libfdata_list_t *list, libcerror_error_t **error ); /* List elements functions */ LIBFDATA_EXTERN \ int libfdata_list_empty( libfdata_list_t *list, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_resize( libfdata_list_t *list, int number_of_elements, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_reverse( libfdata_list_t *list, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_number_of_elements( libfdata_list_t *list, int *number_of_elements, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_list_element_by_index( libfdata_list_t *list, int element_index, libfdata_list_element_t **element, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_element_by_index( libfdata_list_t *list, int element_index, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_set_element_by_index( libfdata_list_t *list, int element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_prepend_element( libfdata_list_t *list, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_append_element( libfdata_list_t *list, int *element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_append_list( libfdata_list_t *list, libfdata_list_t *source_list, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_is_element_set( libfdata_list_t *list, int element_index, libcerror_error_t **error ); /* Mapped range functions */ LIBFDATA_EXTERN \ int libfdata_list_get_mapped_offset( libfdata_list_t *list, off64_t *mapped_offset, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_set_mapped_offset( libfdata_list_t *list, off64_t mapped_offset, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_mapped_size_by_index( libfdata_list_t *list, int element_index, size64_t *mapped_size, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_set_mapped_size_by_index( libfdata_list_t *list, int element_index, size64_t mapped_size, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_element_by_index_with_mapped_size( libfdata_list_t *list, int element_index, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, size64_t *mapped_size, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_set_element_by_index_with_mapped_size( libfdata_list_t *list, int element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, size64_t mapped_size, libcerror_error_t **error ); /* TODO libfdata_list_prepend_element_with_mapped_size */ LIBFDATA_EXTERN \ int libfdata_list_append_element_with_mapped_size( libfdata_list_t *list, int *element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, size64_t mapped_size, libcerror_error_t **error ); int libfdata_list_calculate_mapped_ranges( libfdata_internal_list_t *internal_list, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_element_index_at_offset( libfdata_list_t *list, off64_t offset, int *element_index, off64_t *element_data_offset, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_list_element_at_offset( libfdata_list_t *list, off64_t offset, int *element_index, off64_t *element_data_offset, libfdata_list_element_t **element, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_element_at_offset( libfdata_list_t *list, off64_t offset, int *element_index, off64_t *element_data_offset, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, libcerror_error_t **error ); /* TODO add libfdata_list_set_element_at_offset */ /* List element value functions */ LIBFDATA_EXTERN \ int libfdata_list_cache_element_value( libfdata_list_t *list, libfdata_cache_t *cache, int element_index, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, int64_t element_timestamp, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); int libfdata_list_get_element_value( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_list_element_t *element, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_element_value_by_index( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, int element_index, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_get_element_value_at_offset( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, int *element_index, off64_t *element_data_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); int libfdata_list_set_element_value( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_list_element_t *element, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_set_element_value_by_index( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, int element_index, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_set_element_value_at_offset( libfdata_list_t *list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); /* IO functions */ LIBFDATA_EXTERN \ int libfdata_list_get_size( libfdata_list_t *list, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_LIST_H ) */ libfsapfs-20190210/libfdata/libfdata_btree_range.c0000664000175000017500000002155413430101214024034 0ustar00lordyestalordyesta00000000000000/* * The balanced tree range functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_btree_range.h" #include "libfdata_definitions.h" #include "libfdata_libcerror.h" #include "libfdata_range.h" #include "libfdata_types.h" /* Creates a tree range * Make sure the value range is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdata_btree_range_initialize( libfdata_btree_range_t **range, libcerror_error_t **error ) { static char *function = "libfdata_btree_range_initialize"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree range.", function ); return( -1 ); } if( *range != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid tree range value already set.", function ); return( -1 ); } *range = memory_allocate_structure( libfdata_btree_range_t ); if( *range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create tree range.", function ); goto on_error; } if( memory_set( *range, 0, sizeof( libfdata_btree_range_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear tree range.", function ); goto on_error; } ( *range )->file_index = -1; ( *range )->offset = (off64_t) -1; return( 1 ); on_error: if( *range != NULL ) { memory_free( *range ); *range = NULL; } return( -1 ); } /* Frees a tree range * Returns 1 if successful or -1 on error */ int libfdata_btree_range_free( libfdata_btree_range_t **range, libcerror_error_t **error ) { static char *function = "libfdata_btree_range_free"; int result = 1; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree range.", function ); return( -1 ); } if( *range != NULL ) { if( ( *range )->key_value != NULL ) { if( ( ( *range )->key_value_flags & LIBFDATA_KEY_VALUE_FLAG_MANAGED ) != 0 ) { if( ( *range )->free_key_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree range - missing free key value function.", function ); result = -1; } else if( ( *range )->free_key_value( &( ( *range )->key_value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key value.", function ); result = -1; } } } memory_free( *range ); *range = NULL; } return( result ); } /* Clones (duplicates) the range * Returns 1 if successful or -1 on error */ int libfdata_btree_range_clone( libfdata_btree_range_t **destination_range, libfdata_btree_range_t *source_range, libcerror_error_t **error ) { static char *function = "libfdata_btree_range_clone"; if( destination_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination range.", function ); return( -1 ); } if( *destination_range != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination range value already set.", function ); return( -1 ); } if( source_range == NULL ) { *destination_range = NULL; return( 1 ); } *destination_range = memory_allocate_structure( libfdata_btree_range_t ); if( *destination_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination range.", function ); goto on_error; } if( memory_copy( *destination_range, source_range, sizeof( libfdata_btree_range_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy source to destination range.", function ); goto on_error; } ( *destination_range )->key_value = NULL; return( 1 ); on_error: if( *destination_range != NULL ) { memory_free( *destination_range ); *destination_range = NULL; } return( -1 ); } /* Retrieves the tree range values * Returns 1 if successful or -1 on error */ int libfdata_btree_range_get( libfdata_btree_range_t *range, int *data_file_index, off64_t *data_offset, size64_t *data_size, uint32_t *data_flags, intptr_t **key_value, libcerror_error_t **error ) { static char *function = "libfdata_btree_range_get"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree range.", function ); return( -1 ); } if( data_file_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data file index.", function ); return( -1 ); } if( data_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data offset.", function ); return( -1 ); } if( data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data size.", function ); return( -1 ); } if( data_flags == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data flags.", function ); return( -1 ); } if( key_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid key value.", function ); return( -1 ); } *data_file_index = range->file_index; *data_offset = range->offset; *data_size = range->size; *data_flags = range->flags; *key_value = range->key_value; return( 1 ); } /* Sets the tree range values * Returns 1 if successful or -1 on error */ int libfdata_btree_range_set( libfdata_btree_range_t *range, int data_file_index, off64_t data_offset, size64_t data_size, uint32_t data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ) { static char *function = "libfdata_range_set"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree range.", function ); return( -1 ); } if( free_key_value != NULL ) { if( ( range->key_value_flags & LIBFDATA_KEY_VALUE_FLAG_MANAGED ) != 0 ) { if( range->key_value != NULL ) { if( range->free_key_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing free key value function.", function ); return( -1 ); } if( range->free_key_value( &( range->key_value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free key value.", function ); return( -1 ); } } range->key_value_flags &= ~( LIBFDATA_KEY_VALUE_FLAG_MANAGED ); } } range->file_index = data_file_index; range->offset = data_offset; range->size = data_size; range->flags = data_flags; range->key_value = key_value; range->free_key_value = free_key_value; range->key_value_flags |= key_value_flags; return( 1 ); } libfsapfs-20190210/libfdata/libfdata_area.h0000664000175000017500000001624113430101214022471 0ustar00lordyestalordyesta00000000000000/* * The area functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_AREA_H ) #define _LIBFDATA_INTERNAL_AREA_H #include #include #include "libfdata_extern.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_area libfdata_internal_area_t; struct libfdata_internal_area { /* The element data size */ size64_t element_data_size; /* The (area) size */ size64_t size; /* The segments array */ libcdata_array_t *segments_array; /* The mapped ranges array */ libcdata_array_t *mapped_ranges_array; /* The timestamp */ int64_t timestamp; /* The flags */ uint8_t flags; /* The calculate cache entry index value */ int (*calculate_cache_entry_index)( int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, int number_of_cache_entries ); /* The data handle */ intptr_t *data_handle; /* The free data handle function */ int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ); /* The clone (duplicate) data handle function */ int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ); /* The read element data function */ int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_area_t *area, libfdata_cache_t *cache, off64_t element_value_offset, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ); /* The write element data function */ int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_area_t *area, libfdata_cache_t *cache, off64_t element_value_offset, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ); }; LIBFDATA_EXTERN \ int libfdata_area_initialize( libfdata_area_t **area, size64_t element_data_size, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_area_t *area, libfdata_cache_t *cache, off64_t element_value_offset, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_area_t *area, libfdata_cache_t *cache, off64_t element_value_offset, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_free( libfdata_area_t **area, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_clone( libfdata_area_t **destination_area, libfdata_area_t *source_area, libcerror_error_t **error ); /* Segment functions */ LIBFDATA_EXTERN \ int libfdata_area_empty( libfdata_area_t *area, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_resize( libfdata_area_t *area, int number_of_segments, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_get_number_of_segments( libfdata_area_t *area, int *number_of_segments, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_get_segment_by_index( libfdata_area_t *area, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_set_segment_by_index( libfdata_area_t *area, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_prepend_segment( libfdata_area_t *area, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_append_segment( libfdata_area_t *area, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); /* Area element functions */ LIBFDATA_EXTERN \ int libfdata_area_get_element_data_size( libfdata_area_t *area, size64_t *element_data_size, libcerror_error_t **error ); /* Area element value functions */ LIBFDATA_EXTERN \ int libfdata_area_get_element_value_at_offset( libfdata_area_t *area, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t element_value_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_area_set_element_value_at_offset( libfdata_area_t *area, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t element_value_offset, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); /* IO functions */ LIBFDATA_EXTERN \ int libfdata_area_get_size( libfdata_area_t *area, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_AREA_H ) */ libfsapfs-20190210/libfdata/libfdata_tree_node.h0000664000175000017500000002274413430101214023532 0ustar00lordyestalordyesta00000000000000/* * The tree node functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_TREE_NODE_H ) #define _LIBFDATA_INTERNAL_TREE_NODE_H #include #include #include "libfdata_extern.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_range.h" #include "libfdata_tree.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif #define libfdata_tree_node_calculate_branch_node_cache_entry_index( node_offset, number_of_cache_entries ) \ ( number_of_cache_entries > 4 ) ? ( node_offset % ( number_of_cache_entries / 4 ) ) : ( node_offset % number_of_cache_entries ) #define libfdata_tree_node_calculate_leaf_node_cache_entry_index( node_offset, number_of_cache_entries ) \ ( number_of_cache_entries > 4 ) ? ( number_of_cache_entries / 4 ) + ( node_offset % ( ( number_of_cache_entries * 3 ) / 4 ) ) : ( node_offset % number_of_cache_entries ) typedef struct libfdata_internal_tree_node libfdata_internal_tree_node_t; struct libfdata_internal_tree_node { /* The tree reference */ libfdata_tree_t *tree; /* The parent (tree) node reference */ libfdata_tree_node_t *parent_node; /* The node data range */ libfdata_range_t *node_data_range; /* The sub nodes data range */ libfdata_range_t *sub_nodes_data_range; /* The timestamp */ int64_t timestamp; /* The flags */ uint8_t flags; /* The sub nodes (array) */ libcdata_array_t *sub_nodes; /* The number of leaf nodes */ int number_of_leaf_nodes; /* The number of deleted leaf nodes */ int number_of_deleted_leaf_nodes; /* The relative first leaf node index */ int first_leaf_node_index; /* The relative first deleted leaf node index */ int first_deleted_leaf_node_index; }; int libfdata_tree_node_initialize( libfdata_tree_node_t **node, libfdata_tree_t *tree, libfdata_tree_node_t *parent_node, libcerror_error_t **error ); int libfdata_tree_node_free( libfdata_tree_node_t **node, libcerror_error_t **error ); int libfdata_tree_node_free_single( libfdata_tree_node_t **node, libcerror_error_t **error ); int libfdata_tree_node_set_parent_node( libfdata_tree_node_t *node, libfdata_tree_node_t *parent_node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_is_root( libfdata_tree_node_t *node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_get_data_range( libfdata_tree_node_t *node, int *node_file_index, off64_t *node_offset, size64_t *node_size, uint32_t *node_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_data_range( libfdata_tree_node_t *node, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_sub_nodes_data_range_is_set( libfdata_tree_node_t *node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_get_sub_nodes_data_range( libfdata_tree_node_t *node, int *sub_nodes_file_index, off64_t *sub_nodes_offset, size64_t *sub_nodes_size, uint32_t *sub_nodes_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_sub_nodes_data_range( libfdata_tree_node_t *node, int sub_nodes_file_index, off64_t sub_nodes_offset, size64_t sub_nodes_size, uint32_t sub_nodes_flags, libcerror_error_t **error ); int libfdata_tree_node_get_timestamp( libfdata_tree_node_t *node, int64_t *timestamp, libcerror_error_t **error ); int libfdata_tree_node_get_first_leaf_node_index( libfdata_tree_node_t *node, int *first_leaf_node_index, int *deleted_first_leaf_node_index, libcerror_error_t **error ); int libfdata_tree_node_set_first_leaf_node_index( libfdata_tree_node_t *node, int first_leaf_node_index, int deleted_first_leaf_node_index, libcerror_error_t **error ); /* Node value functions */ LIBFDATA_EXTERN \ int libfdata_tree_node_get_node_value( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t **node_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_node_value( libfdata_tree_node_t *node, libfdata_cache_t *cache, intptr_t *node_value, int (*free_node_value)( intptr_t **node_value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); /* Sub node functions */ LIBFDATA_EXTERN \ int libfdata_tree_node_resize_sub_nodes( libfdata_tree_node_t *node, int number_of_sub_nodes, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_get_number_of_sub_nodes( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_sub_nodes, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_get_sub_node_by_index( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int sub_node_index, libfdata_tree_node_t **sub_node, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_sub_node_by_index( libfdata_tree_node_t *node, int sub_node_index, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_append_sub_node( libfdata_tree_node_t *node, int *sub_node_index, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_insert_sub_node( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *sub_node_index, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, int (*node_value_compare_function)( intptr_t *first_node_value, intptr_t *second_node_value, libcerror_error_t **error ), uint8_t insert_flags, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_split_sub_nodes( libfdata_tree_node_t *node, int number_of_splits, libcerror_error_t **error ); /* Deleted node functions */ LIBFDATA_EXTERN \ int libfdata_tree_node_is_deleted( libfdata_tree_node_t *node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_deleted( libfdata_tree_node_t *node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_deleted_sub_node( libfdata_tree_node_t *node, int sub_node_index, libcerror_error_t **error ); /* Leaf node functions */ int libfdata_tree_node_set_calculate_leaf_node_values( libfdata_tree_node_t *node, libcerror_error_t **error ); int libfdata_tree_node_read_leaf_node_values( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_is_leaf( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_leaf( libfdata_tree_node_t *node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_node_set_leaf_sub_node( libfdata_tree_node_t *node, int sub_node_index, libcerror_error_t **error ); int libfdata_tree_node_get_number_of_leaf_nodes( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ); int libfdata_tree_node_get_leaf_node_by_index( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int leaf_node_index, libfdata_tree_node_t **leaf_node, uint8_t read_flags, libcerror_error_t **error ); int libfdata_tree_node_get_number_of_deleted_leaf_nodes( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_deleted_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ); int libfdata_tree_node_get_deleted_leaf_node_by_index( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int deleted_leaf_node_index, libfdata_tree_node_t **deleted_leaf_node, uint8_t read_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_TREE_NODE_H ) */ libfsapfs-20190210/libfdata/libfdata_types.h0000664000175000017500000000457113430101214022730 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_TYPES_H ) #define _LIBFDATA_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBFDATA for local use of libfdata * The definitions in are copied here * for local use of libfdata */ #if defined( HAVE_LOCAL_LIBFDATA ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libfdata_area {} libfdata_area_t; typedef struct libfdata_btree {} libfdata_btree_t; typedef struct libfdata_btree_node {} libfdata_btree_node_t; typedef struct libfdata_cache {} libfdata_cache_t; typedef struct libfdata_list {} libfdata_list_t; typedef struct libfdata_list_element {} libfdata_list_element_t; typedef struct libfdata_range_list {} libfdata_range_list_t; typedef struct libfdata_stream {} libfdata_stream_t; typedef struct libfdata_tree {} libfdata_tree_t; typedef struct libfdata_tree_node {} libfdata_tree_node_t; typedef struct libfdata_vector {} libfdata_vector_t; #else typedef intptr_t libfdata_area_t; typedef intptr_t libfdata_btree_t; typedef intptr_t libfdata_btree_node_t; typedef intptr_t libfdata_cache_t; typedef intptr_t libfdata_list_t; typedef intptr_t libfdata_list_element_t; typedef intptr_t libfdata_range_list_t; typedef intptr_t libfdata_stream_t; typedef intptr_t libfdata_tree_t; typedef intptr_t libfdata_tree_node_t; typedef intptr_t libfdata_vector_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBFDATA ) */ #endif /* !defined( _LIBFDATA_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libfdata/libfdata_area.c0000664000175000017500000011200713430101214022461 0ustar00lordyestalordyesta00000000000000/* * The area functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_area.h" #include "libfdata_definitions.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_libfcache.h" #include "libfdata_mapped_range.h" #include "libfdata_range.h" #include "libfdata_segments_array.h" #include "libfdata_types.h" #include "libfdata_unused.h" /* Creates an area * Make sure the value area is referencing, is set to NULL * * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the area * takes over management of the data handle and the data handle is freed when * no longer needed * * Returns 1 if successful or -1 on error */ int libfdata_area_initialize( libfdata_area_t **area, size64_t element_data_size, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_area_t *area, libfdata_cache_t *cache, off64_t element_value_offset, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_area_t *area, libfdata_cache_t *cache, off64_t element_value_offset, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_initialize"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } if( *area != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid area value already set.", function ); return( -1 ); } if( element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid element data size value zero or less.", function ); return( -1 ); } internal_area = memory_allocate_structure( libfdata_internal_area_t ); if( internal_area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create area.", function ); goto on_error; } if( memory_set( internal_area, 0, sizeof( libfdata_internal_area_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear area.", function ); memory_free( internal_area ); return( -1 ); } if( libcdata_array_initialize( &( internal_area->segments_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segments array.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_area->mapped_ranges_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped ranges array.", function ); goto on_error; } if( libfcache_date_time_get_timestamp( &( internal_area->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); goto on_error; } internal_area->element_data_size = element_data_size; internal_area->flags |= flags; internal_area->data_handle = data_handle; internal_area->free_data_handle = free_data_handle; internal_area->clone_data_handle = clone_data_handle; internal_area->read_element_data = read_element_data; internal_area->write_element_data = write_element_data; *area = (libfdata_area_t *) internal_area; return( 1 ); on_error: if( internal_area != NULL ) { if( internal_area->segments_array != NULL ) { libcdata_array_free( &( internal_area->segments_array ), NULL, NULL ); } memory_free( internal_area ); } return( -1 ); } /* Frees an area * Returns 1 if successful or -1 on error */ int libfdata_area_free( libfdata_area_t **area, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_free"; int result = 1; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } if( *area != NULL ) { internal_area = (libfdata_internal_area_t *) *area; *area = NULL; if( libcdata_array_free( &( internal_area->segments_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free segments array.", function ); result = -1; } if( libcdata_array_free( &( internal_area->mapped_ranges_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free mapped ranges array.", function ); result = -1; } if( ( internal_area->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) { if( internal_area->data_handle != NULL ) { if( internal_area->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid area - missing free data handle function.", function ); result = -1; } else if( internal_area->free_data_handle( &( internal_area->data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data handle.", function ); result = -1; } } } memory_free( internal_area ); } return( result ); } /* Clones (duplicates) the area * Returns 1 if successful or -1 on error */ int libfdata_area_clone( libfdata_area_t **destination_area, libfdata_area_t *source_area, libcerror_error_t **error ) { libfdata_internal_area_t *internal_destination_area = NULL; libfdata_internal_area_t *internal_source_area = NULL; static char *function = "libfdata_area_clone"; if( destination_area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination area.", function ); return( -1 ); } if( *destination_area != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination area value already set.", function ); return( -1 ); } if( source_area == NULL ) { *destination_area = source_area; return( 1 ); } internal_source_area = (libfdata_internal_area_t *) source_area; /* TODO refactor to use libfdata_area_initialize this requires libcdata_array_copy_elements function */ internal_destination_area = memory_allocate_structure( libfdata_internal_area_t ); if( internal_destination_area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination area.", function ); goto on_error; } if( memory_set( internal_destination_area, 0, sizeof( libfdata_internal_area_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination area.", function ); memory_free( internal_destination_area ); return( -1 ); } if( internal_source_area->data_handle != NULL ) { if( internal_source_area->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source area - missing free data handle function.", function ); goto on_error; } if( internal_source_area->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source area - missing clone data handle function.", function ); goto on_error; } if( internal_source_area->clone_data_handle( &( internal_destination_area->data_handle ), internal_source_area->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination data handle.", function ); goto on_error; } } if( libcdata_array_clone( &( internal_destination_area->segments_array ), internal_source_area->segments_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_range_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination segments array.", function ); goto on_error; } if( libcdata_array_clone( &( internal_destination_area->mapped_ranges_array ), internal_source_area->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_mapped_range_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination mapped ranges array.", function ); goto on_error; } internal_destination_area->element_data_size = internal_source_area->element_data_size; internal_destination_area->timestamp = internal_source_area->timestamp; internal_destination_area->flags = internal_source_area->flags | LIBFDATA_DATA_HANDLE_FLAG_MANAGED; internal_destination_area->data_handle = internal_source_area->data_handle; internal_destination_area->free_data_handle = internal_source_area->free_data_handle; internal_destination_area->clone_data_handle = internal_source_area->clone_data_handle; internal_destination_area->read_element_data = internal_source_area->read_element_data; internal_destination_area->write_element_data = internal_source_area->write_element_data; *destination_area = (libfdata_area_t *) internal_destination_area; return( 1 ); on_error: if( internal_destination_area != NULL ) { if( internal_destination_area->segments_array != NULL ) { libcdata_array_free( &( internal_destination_area->segments_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, NULL ); } if( ( internal_destination_area->data_handle != NULL ) && ( internal_source_area->free_data_handle != NULL ) ) { internal_source_area->free_data_handle( &( internal_destination_area->data_handle ), NULL ); } memory_free( internal_destination_area ); } return( -1 ); } /* Segment functions */ /* Empties the area * Returns 1 if successful or -1 on error */ int libfdata_area_empty( libfdata_area_t *area, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_empty"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( libcdata_array_empty( internal_area->segments_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty segments array.", function ); return( -1 ); } if( libcdata_array_empty( internal_area->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty mapped ranges array.", function ); return( -1 ); } internal_area->size = 0; return( 1 ); } /* Resizes the area * Returns 1 if successful or -1 on error */ int libfdata_area_resize( libfdata_area_t *area, int number_of_segments, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_resize"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( libcdata_array_resize( internal_area->segments_array, number_of_segments, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize segments array.", function ); return( -1 ); } if( libcdata_array_resize( internal_area->mapped_ranges_array, number_of_segments, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize mapped ranges array.", function ); return( -1 ); } internal_area->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Retrieves the number of segments of the area * Returns 1 if successful or -1 on error */ int libfdata_area_get_number_of_segments( libfdata_area_t *area, int *number_of_segments, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_get_number_of_segments"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( libcdata_array_get_number_of_entries( internal_area->segments_array, number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from segments array.", function ); return( -1 ); } return( 1 ); } /* Retrieves the offset and size of a specific segment * Returns 1 if successful or -1 on error */ int libfdata_area_get_segment_by_index( libfdata_area_t *area, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_get_segment_by_index"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( libfdata_segments_array_get_segment_by_index( internal_area->segments_array, segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d.", function, segment_index ); return( -1 ); } return( 1 ); } /* Sets the offset and size of a specific segment * Returns 1 if successful or -1 on error */ int libfdata_area_set_segment_by_index( libfdata_area_t *area, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_set_segment_by_index"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( libfdata_segments_array_set_segment_by_index( internal_area->segments_array, internal_area->mapped_ranges_array, &( internal_area->size ), segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set segment: %d.", function, segment_index ); return( -1 ); } internal_area->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Prepends a segment * Returns 1 if successful or -1 on error */ int libfdata_area_prepend_segment( libfdata_area_t *area, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_prepend_segment"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( libfdata_segments_array_prepend_segment( internal_area->segments_array, internal_area->mapped_ranges_array, &( internal_area->size ), segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend segment.", function ); return( -1 ); } internal_area->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Appends a segment * Returns 1 if successful or -1 on error */ int libfdata_area_append_segment( libfdata_area_t *area, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_append_segment"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( libfdata_segments_array_append_segment( internal_area->segments_array, internal_area->mapped_ranges_array, &( internal_area->size ), segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment.", function ); return( -1 ); } internal_area->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Area element functions */ /* Retrieves the element data size of the area * Returns 1 if successful or -1 on error */ int libfdata_area_get_element_data_size( libfdata_area_t *area, size64_t *element_data_size, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_get_element_data_size"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( element_data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element data size.", function ); return( -1 ); } *element_data_size = internal_area->element_data_size; return( 1 ); } /* Area element value functions */ /* Retrieves the value an element at a specific offset * Returns 1 if successful or -1 on error */ int libfdata_area_get_element_value_at_offset( libfdata_area_t *area, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t element_value_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfdata_internal_area_t *internal_area = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_area_get_element_value_at_offset"; off64_t cache_value_offset = (off64_t) -1; off64_t element_data_offset = (off64_t) -1; int64_t cache_value_timestamp = 0; uint32_t element_data_flags = 0; int cache_entry_index = -1; int cache_value_file_index = -1; int element_data_file_index = -1; int element_index = -1; int number_of_cache_entries = 0; int result = 0; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( internal_area->read_element_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid area - missing read element data function.", function ); return( -1 ); } if( internal_area->element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid area - element data size value out of bounds.", function ); return( -1 ); } if( ( internal_area->size == 0 ) || ( internal_area->size > (off64_t) INT64_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid area - size value out of bounds.", function ); return( -1 ); } if( ( (size64_t) element_value_offset > internal_area->size ) || ( (size64_t) element_value_offset > ( internal_area->size - internal_area->element_data_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element value offset value out of bounds.", function ); return( -1 ); } if( libfdata_segments_array_get_data_range_at_offset( internal_area->segments_array, element_value_offset, &element_data_offset, &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment data range for offset: 0x%08" PRIx64 ".", function, element_value_offset ); return( -1 ); } if( segment_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing segment data range.", function ); return( -1 ); } element_data_file_index = segment_data_range->file_index; element_data_offset += segment_data_range->offset; element_data_flags = segment_data_range->flags; if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } element_index = (int) ( element_value_offset / internal_area->element_data_size ); if( ( read_flags & LIBFDATA_READ_FLAG_IGNORE_CACHE ) == 0 ) { if( internal_area->calculate_cache_entry_index == NULL ) { cache_entry_index = element_index % number_of_cache_entries; } else { cache_entry_index = internal_area->calculate_cache_entry_index( element_index, element_data_file_index, element_data_offset, internal_area->element_data_size, element_data_flags, number_of_cache_entries ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( element_data_file_index == cache_value_file_index ) && ( element_data_offset == cache_value_offset ) && ( internal_area->timestamp == cache_value_timestamp ) ) { result = 1; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( result == 0 ) { libcnotify_printf( "%s: cache: 0x%08" PRIjx " miss (%d out of %d)\n", function, (intptr_t) cache, cache_entry_index, number_of_cache_entries ); } else { libcnotify_printf( "%s: cache: 0x%08" PRIjx " hit (%d out of %d)\n", function, (intptr_t) cache, cache_entry_index, number_of_cache_entries ); } } #endif } if( result == 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading element data at offset: %" PRIi64 " (0x%08" PRIx64 ") of size: %" PRIu64 "\n", function, element_data_offset, element_data_offset, internal_area->element_data_size ); } #endif if( internal_area->read_element_data( internal_area->data_handle, file_io_handle, area, cache, element_value_offset, element_data_file_index, element_data_offset, internal_area->element_data_size, element_data_flags, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read element data at offset: 0x%08" PRIx64 ".", function, element_data_offset ); return( -1 ); } if( internal_area->calculate_cache_entry_index == NULL ) { cache_entry_index = element_index % number_of_cache_entries; } else { cache_entry_index = internal_area->calculate_cache_entry_index( element_index, element_data_file_index, element_data_offset, internal_area->element_data_size, element_data_flags, number_of_cache_entries ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( element_data_file_index != cache_value_file_index ) || ( element_data_offset != cache_value_offset ) || ( internal_area->timestamp != cache_value_timestamp ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing cache value.", function ); return( -1 ); } } if( libfcache_cache_value_get_value( cache_value, element_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element value.", function ); return( -1 ); } return( 1 ); } /* Sets the value of a specific element * * If the flag LIBFDATA_AREA_ELEMENT_VALUE_FLAG_MANAGED is set the area * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_area_set_element_value_at_offset( libfdata_area_t *area, intptr_t *file_io_handle LIBFDATA_ATTRIBUTE_UNUSED, libfdata_cache_t *cache, off64_t element_value_offset, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_area_set_element_value_at_offset"; off64_t element_data_offset = (off64_t) -1; uint32_t element_data_flags = 0; int cache_entry_index = -1; int element_data_file_index = -1; int element_index = -1; int number_of_cache_entries = 0; LIBFDATA_UNREFERENCED_PARAMETER( file_io_handle ) if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( internal_area->element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid area - element data size value out of bounds.", function ); return( -1 ); } if( ( internal_area->size == 0 ) || ( internal_area->size > (off64_t) INT64_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid area - size value out of bounds.", function ); return( -1 ); } if( ( (size64_t) element_value_offset > internal_area->size ) || ( (size64_t) element_value_offset > ( internal_area->size - internal_area->element_data_size ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element value offset value out of bounds.", function ); return( -1 ); } if( libfdata_segments_array_get_data_range_at_offset( internal_area->segments_array, element_value_offset, &element_data_offset, &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment data range for offset: 0x%08" PRIx64 ".", function, element_value_offset ); return( -1 ); } if( segment_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing segment data range.", function ); return( -1 ); } element_data_file_index = segment_data_range->file_index; element_data_offset += segment_data_range->offset; element_data_flags = segment_data_range->flags; if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } element_index = (int) ( element_value_offset / internal_area->element_data_size ); if( internal_area->calculate_cache_entry_index == NULL ) { cache_entry_index = element_index % number_of_cache_entries; } else { cache_entry_index = internal_area->calculate_cache_entry_index( element_index, element_data_file_index, element_data_offset, internal_area->element_data_size, element_data_flags, number_of_cache_entries ); } if( libfcache_cache_set_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, element_data_file_index, element_data_offset, internal_area->timestamp, element_value, free_element_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache entry: %d.", function, cache_entry_index ); return( -1 ); } return( 1 ); } /* Retrieves the size * Returns 1 if successful or -1 on error */ int libfdata_area_get_size( libfdata_area_t *area, size64_t *size, libcerror_error_t **error ) { libfdata_internal_area_t *internal_area = NULL; static char *function = "libfdata_area_get_size"; if( area == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid area.", function ); return( -1 ); } internal_area = (libfdata_internal_area_t *) area; if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } if( ( internal_area->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_segments_array_calculate_mapped_ranges( internal_area->segments_array, internal_area->mapped_ranges_array, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges.", function ); return( -1 ); } internal_area->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } *size = internal_area->size; return( 1 ); } libfsapfs-20190210/libfdata/libfdata_range.h0000664000175000017500000000405613430101214022656 0ustar00lordyestalordyesta00000000000000/* * The range functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_RANGE_H ) #define _LIBFDATA_RANGE_H #include #include #include "libfdata_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_range libfdata_range_t; struct libfdata_range { /* The file index */ int file_index; /* The offset */ off64_t offset; /* The size */ size64_t size; /* The flags */ uint32_t flags; }; int libfdata_range_initialize( libfdata_range_t **range, libcerror_error_t **error ); int libfdata_range_free( libfdata_range_t **range, libcerror_error_t **error ); int libfdata_range_clone( libfdata_range_t **destination_range, libfdata_range_t *source_range, libcerror_error_t **error ); int libfdata_range_get( libfdata_range_t *range, int *file_index, off64_t *offset, size64_t *size, uint32_t *flags, libcerror_error_t **error ); int libfdata_range_get_size( libfdata_range_t *range, size64_t *size, libcerror_error_t **error ); int libfdata_range_set( libfdata_range_t *range, int file_index, off64_t offset, size64_t size, uint32_t flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_RANGE_H ) */ libfsapfs-20190210/libfdata/libfdata_vector.c0000664000175000017500000013614413430101214023063 0ustar00lordyestalordyesta00000000000000/* * The vector functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_definitions.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_libfcache.h" #include "libfdata_mapped_range.h" #include "libfdata_range.h" #include "libfdata_segments_array.h" #include "libfdata_types.h" #include "libfdata_unused.h" #include "libfdata_vector.h" /* Creates a vector * Make sure the value vector is referencing, is set to NULL * * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the vector * takes over management of the data handle and the data handle is freed when * no longer needed * * Returns 1 if successful or -1 on error */ int libfdata_vector_initialize( libfdata_vector_t **vector, size64_t element_data_size, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_vector_t *vector, libfdata_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_vector_t *vector, libfdata_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_initialize"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } if( *vector != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid vector value already set.", function ); return( -1 ); } if( element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, "%s: invalid element data size value zero or less.", function ); return( -1 ); } internal_vector = memory_allocate_structure( libfdata_internal_vector_t ); if( internal_vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create vector.", function ); goto on_error; } if( memory_set( internal_vector, 0, sizeof( libfdata_internal_vector_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear vector.", function ); memory_free( internal_vector ); return( -1 ); } if( libcdata_array_initialize( &( internal_vector->segments_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segments array.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_vector->mapped_ranges_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped ranges array.", function ); goto on_error; } if( libfcache_date_time_get_timestamp( &( internal_vector->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); goto on_error; } internal_vector->element_data_size = element_data_size; internal_vector->flags |= flags; internal_vector->data_handle = data_handle; internal_vector->free_data_handle = free_data_handle; internal_vector->clone_data_handle = clone_data_handle; internal_vector->read_element_data = read_element_data; internal_vector->write_element_data = write_element_data; *vector = (libfdata_vector_t *) internal_vector; return( 1 ); on_error: if( internal_vector != NULL ) { if( internal_vector->segments_array != NULL ) { libcdata_array_free( &( internal_vector->segments_array ), NULL, NULL ); } memory_free( internal_vector ); } return( -1 ); } /* Frees a vector * Returns 1 if successful or -1 on error */ int libfdata_vector_free( libfdata_vector_t **vector, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_free"; int result = 1; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } if( *vector != NULL ) { internal_vector = (libfdata_internal_vector_t *) *vector; *vector = NULL; if( libcdata_array_free( &( internal_vector->segments_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the segments array.", function ); result = -1; } if( libcdata_array_free( &( internal_vector->mapped_ranges_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the mapped ranges array.", function ); result = -1; } if( ( internal_vector->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) { if( internal_vector->data_handle != NULL ) { if( internal_vector->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid vector - missing free data handle function.", function ); result = -1; } else if( internal_vector->free_data_handle( &( internal_vector->data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data handle.", function ); result = -1; } } } memory_free( internal_vector ); } return( result ); } /* Clones (duplicates) the vector * Returns 1 if successful or -1 on error */ int libfdata_vector_clone( libfdata_vector_t **destination_vector, libfdata_vector_t *source_vector, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_destination_vector = NULL; libfdata_internal_vector_t *internal_source_vector = NULL; static char *function = "libfdata_vector_clone"; if( destination_vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination vector.", function ); return( -1 ); } if( *destination_vector != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination vector value already set.", function ); return( -1 ); } if( source_vector == NULL ) { *destination_vector = source_vector; return( 1 ); } internal_source_vector = (libfdata_internal_vector_t *) source_vector; internal_destination_vector = memory_allocate_structure( libfdata_internal_vector_t ); if( internal_destination_vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination vector.", function ); goto on_error; } if( memory_set( internal_destination_vector, 0, sizeof( libfdata_internal_vector_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination vector.", function ); memory_free( internal_destination_vector ); return( -1 ); } if( internal_source_vector->data_handle != NULL ) { if( internal_source_vector->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source vector - missing free data handle function.", function ); goto on_error; } if( internal_source_vector->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source vector - missing clone data handle function.", function ); goto on_error; } if( internal_source_vector->clone_data_handle( &( internal_destination_vector->data_handle ), internal_source_vector->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination data handle.", function ); goto on_error; } } if( libcdata_array_clone( &( internal_destination_vector->segments_array ), internal_source_vector->segments_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_range_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination segments array.", function ); goto on_error; } if( libcdata_array_clone( &( internal_destination_vector->mapped_ranges_array ), internal_source_vector->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_mapped_range_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination mapped ranges array.", function ); goto on_error; } internal_destination_vector->element_data_size = internal_source_vector->element_data_size; internal_destination_vector->timestamp = internal_source_vector->timestamp; internal_destination_vector->flags = internal_source_vector->flags | LIBFDATA_DATA_HANDLE_FLAG_MANAGED; internal_destination_vector->data_handle = internal_source_vector->data_handle; internal_destination_vector->free_data_handle = internal_source_vector->free_data_handle; internal_destination_vector->clone_data_handle = internal_source_vector->clone_data_handle; internal_destination_vector->read_element_data = internal_source_vector->read_element_data; internal_destination_vector->write_element_data = internal_source_vector->write_element_data; *destination_vector = (libfdata_vector_t *) internal_destination_vector; return( 1 ); on_error: if( internal_destination_vector != NULL ) { if( internal_destination_vector->segments_array != NULL ) { libcdata_array_free( &( internal_destination_vector->segments_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, NULL ); } if( ( internal_destination_vector->data_handle != NULL ) && ( internal_source_vector->free_data_handle != NULL ) ) { internal_source_vector->free_data_handle( &( internal_destination_vector->data_handle ), NULL ); } memory_free( internal_destination_vector ); } return( -1 ); } /* Segment functions */ /* Empties the vector * Returns 1 if successful or -1 on error */ int libfdata_vector_empty( libfdata_vector_t *vector, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_empty"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( libcdata_array_empty( internal_vector->segments_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty segments array.", function ); return( -1 ); } if( libcdata_array_empty( internal_vector->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty mapped ranges array.", function ); return( -1 ); } internal_vector->size = 0; return( 1 ); } /* Resizes the segments * Returns 1 if successful or -1 on error */ int libfdata_vector_resize( libfdata_vector_t *vector, int number_of_segments, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_resize"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( libcdata_array_resize( internal_vector->segments_array, number_of_segments, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize segments array.", function ); return( -1 ); } if( libcdata_array_resize( internal_vector->mapped_ranges_array, number_of_segments, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize mapped ranges array.", function ); return( -1 ); } internal_vector->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Retrieves the number of segments of the vector * Returns 1 if successful or -1 on error */ int libfdata_vector_get_number_of_segments( libfdata_vector_t *vector, int *number_of_segments, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_get_number_of_segments"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( libcdata_array_get_number_of_entries( internal_vector->segments_array, number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from segments array.", function ); return( -1 ); } return( 1 ); } /* Retrieves the offset and size of a specific segment * Returns 1 if successful or -1 on error */ int libfdata_vector_get_segment_by_index( libfdata_vector_t *vector, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_get_segment_by_index"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( libfdata_segments_array_get_segment_by_index( internal_vector->segments_array, segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d.", function, segment_index ); return( -1 ); } return( 1 ); } /* Sets the offset and size of a specific segment * Returns 1 if successful or -1 on error */ int libfdata_vector_set_segment_by_index( libfdata_vector_t *vector, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_set_segment_by_index"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( libfdata_segments_array_set_segment_by_index( internal_vector->segments_array, internal_vector->mapped_ranges_array, &( internal_vector->size ), segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set segment: %d.", function, segment_index ); return( -1 ); } internal_vector->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Prepends a segment * Returns 1 if successful or -1 on error */ int libfdata_vector_prepend_segment( libfdata_vector_t *vector, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_prepend_segment"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( libfdata_segments_array_prepend_segment( internal_vector->segments_array, internal_vector->mapped_ranges_array, &( internal_vector->size ), segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend segment.", function ); return( -1 ); } internal_vector->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Appends a segment * Returns 1 if successful or -1 on error */ int libfdata_vector_append_segment( libfdata_vector_t *vector, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_append_segment"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( libfdata_segments_array_append_segment( internal_vector->segments_array, internal_vector->mapped_ranges_array, &( internal_vector->size ), segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment.", function ); return( -1 ); } return( 1 ); } /* Vector element functions */ /* Retrieves the element data size of the vector * Returns 1 if successful or -1 on error */ int libfdata_vector_get_element_data_size( libfdata_vector_t *vector, size64_t *element_data_size, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_get_element_data_size"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( element_data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element data size.", function ); return( -1 ); } *element_data_size = internal_vector->element_data_size; return( 1 ); } /* Retrieves the number of elements of the vector * Returns 1 if successful or -1 on error */ int libfdata_vector_get_number_of_elements( libfdata_vector_t *vector, int *number_of_elements, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_get_number_of_elements"; size64_t safe_number_of_elements = 0; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( internal_vector->element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid vector - element data size value out of bounds.", function ); return( -1 ); } if( number_of_elements == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of elements.", function ); return( -1 ); } safe_number_of_elements = internal_vector->size / internal_vector->element_data_size; if( ( internal_vector->size % internal_vector->element_data_size ) != 0 ) { safe_number_of_elements++; } if( safe_number_of_elements > (size64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: number of elements value out of bounds.", function ); return( -1 ); } *number_of_elements = (int) safe_number_of_elements; return( 1 ); } /* Mapped range functions */ /* Retrieves the element index for a specific offset * Returns 1 if successful or -1 on error */ int libfdata_vector_get_element_index_at_offset( libfdata_vector_t *vector, off64_t element_value_offset, int *element_index, off64_t *element_data_offset, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_vector_get_element_index_at_offset"; off64_t mapped_range_end_offset = 0; off64_t mapped_range_start_offset = 0; off64_t segment_data_offset = 0; size64_t mapped_range_size = 0; uint64_t calculated_element_index = 0; int initial_segment_index = 0; int number_of_segments = 0; int segment_index = 0; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) libfdata_range_t *segment_data_range = NULL; off64_t segment_offset = 0; size64_t segment_size = 0; uint32_t segment_flags = 0; int segment_file_index = -1; #endif if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( internal_vector->element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid vector - element data size value out of bounds.", function ); return( -1 ); } if( internal_vector->size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid vector - size value out of bounds.", function ); return( -1 ); } if( element_value_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid element value offset value less than zero.", function ); return( -1 ); } if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } if( element_data_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element data offset.", function ); return( -1 ); } if( ( internal_vector->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_segments_array_calculate_mapped_ranges( internal_vector->segments_array, internal_vector->mapped_ranges_array, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges from segments array.", function ); return( -1 ); } internal_vector->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested offset: 0x%08" PRIx64 "\n", function, element_value_offset ); } #endif if( internal_vector->size == 0 ) { return( 0 ); } if( libcdata_array_get_number_of_entries( internal_vector->mapped_ranges_array, &number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from mapped ranges array.", function ); return( -1 ); } /* This assumes a fairly even distribution of the sizes of the segments */ initial_segment_index = (int) ( ( number_of_segments * element_value_offset ) / internal_vector->size ); /* Look for the corresponding segment upwards in the array */ for( segment_index = initial_segment_index; segment_index < number_of_segments; segment_index++ ) { if( libcdata_array_get_entry_by_index( internal_vector->mapped_ranges_array, segment_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, segment_index ); return( -1 ); } if( libfdata_mapped_range_get( mapped_range, &mapped_range_start_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, segment_index ); return( -1 ); } mapped_range_end_offset = mapped_range_start_offset + (off64_t) mapped_range_size; if( mapped_range_end_offset < mapped_range_start_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment: %d - mapped range value out of bounds.", function, segment_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: segment: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, segment_index, mapped_range_start_offset, mapped_range_end_offset, mapped_range_size ); } #endif /* Check if the element value offset is in the mapped range */ if( ( element_value_offset >= mapped_range_start_offset ) && ( element_value_offset < mapped_range_end_offset ) ) { break; } /* Check if the element value offset is out of bounds */ if( element_value_offset < mapped_range_start_offset ) { segment_index = number_of_segments; break; } } if( segment_index >= number_of_segments ) { /* Look for the corresponding segment downwards in the array */ for( segment_index = initial_segment_index; segment_index >= 0; segment_index-- ) { if( libcdata_array_get_entry_by_index( internal_vector->mapped_ranges_array, segment_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, segment_index ); return( -1 ); } if( libfdata_mapped_range_get( mapped_range, &mapped_range_start_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, segment_index ); return( -1 ); } mapped_range_end_offset = mapped_range_start_offset + (off64_t) mapped_range_size; if( mapped_range_end_offset < mapped_range_start_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment: %d - mapped range value out of bounds.", function, segment_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: segment: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, segment_index, mapped_range_start_offset, mapped_range_end_offset, mapped_range_size ); } #endif /* Check if the element value offset is in the mapped range */ if( ( element_value_offset >= mapped_range_start_offset ) && ( element_value_offset < mapped_range_end_offset ) ) { break; } /* Check if the element value offset is out of bounds */ if( element_value_offset > mapped_range_start_offset ) { segment_index = -1; break; } segment_data_offset += (off64_t) mapped_range_size; } } if( ( segment_index >= 0 ) && ( segment_index < number_of_segments ) ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( libcdata_array_get_entry_by_index( internal_vector->segments_array, segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, segment_index ); return( -1 ); } libcnotify_printf( "%s: segment: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, segment_index, segment_file_index, segment_offset, segment_offset + segment_size, segment_size ); } #endif calculated_element_index = (uint64_t) element_value_offset / internal_vector->element_data_size; if( calculated_element_index > (uint64_t) INT_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid element index value exceeds maximum.", function ); return( -1 ); } /* The element data offset is relative from the start of the vector element not the underlying segment */ *element_index = (int) calculated_element_index; *element_data_offset = element_value_offset % internal_vector->element_data_size; result = 1; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( result ); } /* Vector element value functions */ /* Retrieves the value of a specific element * Returns 1 if successful or -1 on error */ int libfdata_vector_get_element_value_by_index( libfdata_vector_t *vector, intptr_t *file_io_handle, libfdata_cache_t *cache, int element_index, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfdata_internal_vector_t *internal_vector = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_vector_get_element_value_by_index"; off64_t cache_value_offset = (off64_t) -1; off64_t element_data_offset = 0; int64_t cache_value_timestamp = 0; uint32_t element_data_flags = 0; int cache_value_file_index = -1; int element_data_file_index = -1; int result = 0; #if defined( HAVE_DEBUG_OUTPUT ) const char *hit_or_miss = NULL; #endif if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( internal_vector->read_element_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid vector - missing read element data function.", function ); return( -1 ); } if( internal_vector->element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid vector - element data size value out of bounds.", function ); return( -1 ); } if( ( internal_vector->size == 0 ) || ( internal_vector->size > (off64_t) INT64_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid vector - size value out of bounds.", function ); return( -1 ); } if( element_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element index value out of bounds.", function ); return( -1 ); } element_data_offset = (off64_t) ( element_index * internal_vector->element_data_size ); if( (size64_t) element_data_offset > internal_vector->size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element index value out of bounds.", function ); return( -1 ); } if( libfdata_segments_array_get_data_range_at_offset( internal_vector->segments_array, element_data_offset, &element_data_offset, &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment data range for offset: 0x%08" PRIx64 ".", function, element_data_offset ); return( -1 ); } if( segment_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing segment data range.", function ); return( -1 ); } element_data_file_index = segment_data_range->file_index; element_data_offset += segment_data_range->offset; element_data_flags = segment_data_range->flags; if( ( read_flags & LIBFDATA_READ_FLAG_IGNORE_CACHE ) == 0 ) { result = libfcache_cache_get_value_by_identifier( (libfcache_cache_t *) cache, element_data_file_index, element_data_offset, internal_vector->timestamp, &cache_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( result == 0 ) { hit_or_miss = "miss"; } else { hit_or_miss = "hit"; } libcnotify_printf( "%s: cache: 0x%08" PRIjx " %s\n", function, (intptr_t) cache, hit_or_miss ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ } if( result == 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading element data at offset: %" PRIi64 " (0x%08" PRIx64 ") of size: %" PRIu64 "\n", function, element_data_offset, element_data_offset, internal_vector->element_data_size ); } #endif if( internal_vector->read_element_data( internal_vector->data_handle, file_io_handle, vector, cache, element_index, element_data_file_index, element_data_offset, internal_vector->element_data_size, element_data_flags, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read element data at offset: 0x%08" PRIx64 ".", function, element_data_offset ); return( -1 ); } if( libfcache_cache_get_value_by_identifier( (libfcache_cache_t *) cache, element_data_file_index, element_data_offset, internal_vector->timestamp, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from cache.", function ); return( -1 ); } if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } if( ( element_data_file_index != cache_value_file_index ) || ( element_data_offset != cache_value_offset ) || ( internal_vector->timestamp != cache_value_timestamp ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid cache value - identifier value out of bounds.", function ); return( -1 ); } } if( libfcache_cache_value_get_value( cache_value, element_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element value.", function ); return( -1 ); } return( 1 ); } /* Retrieves the value an element at a specific offset * Returns 1 if successful or -1 on error */ int libfdata_vector_get_element_value_at_offset( libfdata_vector_t *vector, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t element_value_offset, off64_t *element_data_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { static char *function = "libfdata_vector_get_element_value_at_offset"; int element_index = 0; if( libfdata_vector_get_element_index_at_offset( vector, element_value_offset, &element_index, element_data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element index at offset: 0x%08" PRIx64 ".", function, element_value_offset ); return( -1 ); } if( libfdata_vector_get_element_value_by_index( vector, file_io_handle, cache, element_index, element_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element: %d value.", function, element_index ); return( -1 ); } return( 1 ); } /* Sets the value of a specific element * * If the flag LIBFDATA_VECTOR_ELEMENT_VALUE_FLAG_MANAGED is set the vector * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_vector_set_element_value_by_index( libfdata_vector_t *vector, intptr_t *file_io_handle LIBFDATA_ATTRIBUTE_UNUSED, libfdata_cache_t *cache, int element_index, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_vector_set_element_value_by_index"; off64_t element_data_offset = 0; LIBFDATA_UNREFERENCED_PARAMETER( file_io_handle ) if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( internal_vector->element_data_size == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid vector - element data size value out of bounds.", function ); return( -1 ); } if( ( internal_vector->size == 0 ) || ( internal_vector->size > (off64_t) INT64_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid vector - size value out of bounds.", function ); return( -1 ); } if( element_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element index value out of bounds.", function ); return( -1 ); } element_data_offset = (off64_t) ( element_index * internal_vector->element_data_size ); if( (size64_t) element_data_offset > internal_vector->size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element index value out of bounds.", function ); return( -1 ); } if( libfdata_segments_array_get_data_range_at_offset( internal_vector->segments_array, element_data_offset, &element_data_offset, &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment data range for offset: 0x%08" PRIx64 ".", function, element_data_offset ); return( -1 ); } if( segment_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing segment data range.", function ); return( -1 ); } element_data_offset += segment_data_range->offset; if( libfcache_cache_set_value_by_identifier( (libfcache_cache_t *) cache, segment_data_range->file_index, element_data_offset, internal_vector->timestamp, element_value, free_element_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache.", function ); return( -1 ); } return( 1 ); } /* Retrieves the size * Returns 1 if successful or -1 on error */ int libfdata_vector_get_size( libfdata_vector_t *vector, size64_t *size, libcerror_error_t **error ) { libfdata_internal_vector_t *internal_vector = NULL; static char *function = "libfdata_vector_get_size"; if( vector == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid vector.", function ); return( -1 ); } internal_vector = (libfdata_internal_vector_t *) vector; if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } if( ( internal_vector->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_segments_array_calculate_mapped_ranges( internal_vector->segments_array, internal_vector->mapped_ranges_array, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges.", function ); return( -1 ); } internal_vector->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } *size = internal_vector->size; return( 1 ); } libfsapfs-20190210/libfdata/libfdata_stream.h0000664000175000017500000002251613430101214023056 0ustar00lordyestalordyesta00000000000000/* * The stream functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_STREAM_H ) #define _LIBFDATA_INTERNAL_STREAM_H #include #include #include "libfdata_extern.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_mapped_range.h" #include "libfdata_range.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_stream libfdata_internal_stream_t; struct libfdata_internal_stream { /* The current segment index */ int current_segment_index; /* The current offset */ off64_t current_offset; /* The (current) segment data offset */ off64_t segment_data_offset; /* The (stream) size */ size64_t size; /* The mapped (stream) size */ size64_t mapped_size; /* The segments array */ libcdata_array_t *segments_array; /* The mapped ranges array */ libcdata_array_t *mapped_ranges_array; /* The flags */ uint8_t flags; /* The data handle */ intptr_t *data_handle; /* The free data handle function */ int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ); /* The clone (duplicate) data handle function */ int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ); /* The create segment function */ int (*create_segment)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ); /* The read segment data function */ ssize_t (*read_segment_data)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t read_flags, libcerror_error_t **error ); /* The write segment data function */ ssize_t (*write_segment_data)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, const uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t write_flags, libcerror_error_t **error ); /* The seek segment offset function */ off64_t (*seek_segment_offset)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, off64_t segment_offset, libcerror_error_t **error ); }; LIBFDATA_EXTERN \ int libfdata_stream_initialize( libfdata_stream_t **stream, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*create_segment)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ), ssize_t (*read_segment_data)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t read_flags, libcerror_error_t **error ), ssize_t (*write_segment_data)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, const uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t write_flags, libcerror_error_t **error ), off64_t (*seek_segment_offset)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, off64_t segment_offset, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_free( libfdata_stream_t **stream, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_clone( libfdata_stream_t **destination_stream, libfdata_stream_t *source_stream, libcerror_error_t **error ); /* Segment functions */ LIBFDATA_EXTERN \ int libfdata_stream_empty( libfdata_stream_t *stream, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_resize( libfdata_stream_t *stream, int number_of_segments, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_reverse( libfdata_stream_t *stream, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_get_number_of_segments( libfdata_stream_t *stream, int *number_of_segments, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_get_segment_by_index( libfdata_stream_t *stream, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_set_segment_by_index( libfdata_stream_t *stream, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_prepend_segment( libfdata_stream_t *stream, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_append_segment( libfdata_stream_t *stream, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_set_mapped_size( libfdata_stream_t *stream, size64_t mapped_size, libcerror_error_t **error ); /* Mapped range functions */ LIBFDATA_EXTERN \ int libfdata_stream_get_segment_mapped_range( libfdata_stream_t *stream, int segment_index, off64_t *mapped_range_offset, size64_t *mapped_range_size, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_get_segment_index_at_offset( libfdata_stream_t *stream, off64_t offset, int *segment_index, off64_t *segment_data_offset, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_get_segment_at_offset( libfdata_stream_t *stream, off64_t offset, int *segment_index, off64_t *segment_data_offset, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ); /* IO functions */ LIBFDATA_EXTERN \ ssize_t libfdata_stream_read_buffer( libfdata_stream_t *stream, intptr_t *file_io_handle, uint8_t *buffer, size_t buffer_size, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ ssize_t libfdata_stream_read_buffer_at_offset( libfdata_stream_t *stream, intptr_t *file_io_handle, uint8_t *buffer, size_t buffer_size, off64_t offset, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ ssize_t libfdata_stream_write_buffer( libfdata_stream_t *stream, intptr_t *file_io_handle, const uint8_t *buffer, size_t buffer_size, uint8_t write_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ off64_t libfdata_stream_seek_offset( libfdata_stream_t *stream, off64_t offset, int whence, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_get_offset( libfdata_stream_t *stream, off64_t *offset, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_stream_get_size( libfdata_stream_t *stream, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_STREAM_H ) */ libfsapfs-20190210/libfdata/libfdata_vector.h0000664000175000017500000001720413430101214023063 0ustar00lordyestalordyesta00000000000000/* * The vector functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_VECTOR_H ) #define _LIBFDATA_INTERNAL_VECTOR_H #include #include #include "libfdata_extern.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_vector libfdata_internal_vector_t; struct libfdata_internal_vector { /* The element data size */ size64_t element_data_size; /* The (vector) size */ size64_t size; /* The segments array */ libcdata_array_t *segments_array; /* The mapped ranges array */ libcdata_array_t *mapped_ranges_array; /* The timestamp */ int64_t timestamp; /* The flags */ uint8_t flags; /* The data handle */ intptr_t *data_handle; /* The free data handle function */ int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ); /* The clone (duplicate) data handle function */ int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ); /* The read element data function */ int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_vector_t *vector, libfdata_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ); /* The write element data function */ int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_vector_t *vector, libfdata_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ); }; LIBFDATA_EXTERN \ int libfdata_vector_initialize( libfdata_vector_t **vector, size64_t element_data_size, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_vector_t *vector, libfdata_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_vector_t *vector, libfdata_cache_t *cache, int element_index, int element_data_file_index, off64_t element_data_offset, size64_t element_data_size, uint32_t element_data_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_free( libfdata_vector_t **vector, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_clone( libfdata_vector_t **destination_vector, libfdata_vector_t *source_vector, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_empty( libfdata_vector_t *vector, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_resize( libfdata_vector_t *vector, int number_of_segments, libcerror_error_t **error ); /* Segment functions */ LIBFDATA_EXTERN \ int libfdata_vector_get_number_of_segments( libfdata_vector_t *vector, int *number_of_segments, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_get_segment_by_index( libfdata_vector_t *vector, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_set_segment_by_index( libfdata_vector_t *vector, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_prepend_segment( libfdata_vector_t *vector, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_append_segment( libfdata_vector_t *vector, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ); /* Vector element functions */ LIBFDATA_EXTERN \ int libfdata_vector_get_element_data_size( libfdata_vector_t *vector, size64_t *element_data_size, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_get_number_of_elements( libfdata_vector_t *vector, int *number_of_elements, libcerror_error_t **error ); /* Mapped range functions */ LIBFDATA_EXTERN \ int libfdata_vector_get_element_index_at_offset( libfdata_vector_t *vector, off64_t element_value_offset, int *element_index, off64_t *element_data_offset, libcerror_error_t **error ); /* Vector element value functions */ LIBFDATA_EXTERN \ int libfdata_vector_get_element_value_by_index( libfdata_vector_t *vector, intptr_t *file_io_handle, libfdata_cache_t *cache, int element_index, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_get_element_value_at_offset( libfdata_vector_t *vector, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t element_value_offset, off64_t *element_data_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_vector_set_element_value_by_index( libfdata_vector_t *vector, intptr_t *file_io_handle, libfdata_cache_t *cache, int element_index, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); /* IO functions */ LIBFDATA_EXTERN \ int libfdata_vector_get_size( libfdata_vector_t *vector, size64_t *size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_VECTOR_H ) */ libfsapfs-20190210/libfdata/libfdata_btree.h0000664000175000017500000002470213430101214022663 0ustar00lordyestalordyesta00000000000000/* * The balanced tree functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_BTREE_H ) #define _LIBFDATA_INTERNAL_BTREE_H #include #include #include "libfdata_btree_node.h" #include "libfdata_btree_range.h" #include "libfdata_extern.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_btree libfdata_internal_btree_t; struct libfdata_internal_btree { /* The root node data range */ libfdata_btree_range_t *root_node_data_range; /* The timestamp */ int64_t timestamp; /* The flags */ uint8_t flags; /* The calculate node cache entry index value */ int (*calculate_node_cache_entry_index)( libfdata_btree_t *tree, libfdata_cache_t *cache, int level, int node_data_file_index, off64_t node_data_offset, size64_t node_data_size, uint32_t node_data_flags, int *cache_entry_index, libcerror_error_t **error ); /* The calculate leaf value cache entry index value */ int (*calculate_leaf_value_cache_entry_index)( libfdata_btree_t *tree, libfdata_cache_t *cache, int leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, int *cache_entry_index, libcerror_error_t **error ); /* The data handle */ intptr_t *data_handle; /* The free data handle function */ int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ); /* The clone (duplicate) data handle function */ int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ); /* The read node function */ int (*read_node)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_btree_node_t *node, int node_data_file_index, off64_t node_data_offset, size64_t node_data_size, uint32_t node_data_flags, intptr_t *key_value, uint8_t read_flags, libcerror_error_t **error ); /* The read leaf value function */ int (*read_leaf_value)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_btree_t *tree, libfdata_cache_t *cache, int leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, intptr_t *key_value, uint8_t read_flags, libcerror_error_t **error ); }; LIBFDATA_EXTERN \ int libfdata_btree_initialize( libfdata_btree_t **tree, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_node)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_btree_node_t *node, int node_data_file_index, off64_t node_data_offset, size64_t node_data_size, uint32_t node_data_flags, intptr_t *key_value, uint8_t read_flags, libcerror_error_t **error ), int (*read_leaf_value)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_btree_t *tree, libfdata_cache_t *cache, int leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, intptr_t *key_value, uint8_t read_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_free( libfdata_btree_t **tree, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_clone( libfdata_btree_t **destination_tree, libfdata_btree_t *source_tree, libcerror_error_t **error ); /* Cache entry functions */ int libfdata_btree_calculate_node_cache_entry_index( libfdata_btree_t *tree, libfdata_cache_t *cache, int level, int node_data_file_index, off64_t node_data_offset, size64_t node_data_size, uint32_t node_data_flags, int *cache_entry_index, libcerror_error_t **error ); int libfdata_btree_calculate_leaf_value_cache_entry_index( libfdata_btree_t *tree, libfdata_cache_t *cache, int leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, int *cache_entry_index, libcerror_error_t **error ); /* Root node functions */ LIBFDATA_EXTERN \ int libfdata_btree_get_root_node( libfdata_btree_t *tree, int *node_data_file_index, off64_t *node_data_offset, size64_t *node_data_size, uint32_t *node_data_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_set_root_node( libfdata_btree_t *tree, int node_data_file_index, off64_t node_data_offset, size64_t node_data_size, uint32_t node_data_flags, libcerror_error_t **error ); /* Leaf value functions */ int libfdata_btree_read_leaf_value( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *leaf_value_data_range, intptr_t **leaf_value, uint8_t read_flags, libcerror_error_t **error ); int libfdata_btree_read_node( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int level, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ); int libfdata_btree_read_sub_tree( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int level, int mapped_first_leaf_value_index, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ); int libfdata_btree_get_leaf_node_by_index( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int level, int leaf_value_index, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ); int libfdata_btree_get_leaf_node_by_key( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int maximum_node_level, int current_node_level, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *node_index, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ); int libfdata_btree_get_next_leaf_node_by_key( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int node_index, libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *next_node_index, libfdata_btree_node_t **next_node, uint8_t read_flags, libcerror_error_t **error ); int libfdata_btree_get_previous_leaf_node_by_key( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int node_index, libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *previous_node_index, libfdata_btree_node_t **previous_node, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_get_number_of_leaf_values( libfdata_btree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_values, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_get_leaf_value_by_index( libfdata_btree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int leaf_value_index, intptr_t **value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_set_leaf_value_by_index( libfdata_btree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int leaf_value_index, intptr_t *leaf_value, int (*free_leaf_value)( intptr_t **leaf_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_get_leaf_value_by_key( libfdata_btree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), uint8_t search_flags, intptr_t **value, uint8_t read_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_BTREE_H ) */ libfsapfs-20190210/libfdata/libfdata_tree.h0000664000175000017500000001471213430101214022521 0ustar00lordyestalordyesta00000000000000/* * The tree functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_TREE_H ) #define _LIBFDATA_INTERNAL_TREE_H #include #include #include "libfdata_extern.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_tree libfdata_internal_tree_t; struct libfdata_internal_tree { /* The root node */ libfdata_tree_node_t *root_node; /* The flags */ uint8_t flags; /* The calculate cache entry index value */ int (*calculate_cache_entry_index)( int node_index, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, int number_of_cache_entries ); /* The data handle */ intptr_t *data_handle; /* The free data handle function */ int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ); /* The clone (duplicate) data handle function */ int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ); /* The read node function */ int (*read_node)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_tree_node_t *node, libfdata_cache_t *cache, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, uint8_t read_flags, libcerror_error_t **error ); /* The read sub nodes function */ int (*read_sub_nodes)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_tree_node_t *node, libfdata_cache_t *cache, int sub_nodes_file_index, off64_t sub_nodes_offset, size64_t sub_nodes_size, uint32_t sub_nodes_flags, uint8_t read_flags, libcerror_error_t **error ); }; LIBFDATA_EXTERN \ int libfdata_tree_initialize( libfdata_tree_t **tree, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_node)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_tree_node_t *node, libfdata_cache_t *cache, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, uint8_t read_flags, libcerror_error_t **error ), int (*read_sub_nodes)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_tree_node_t *node, libfdata_cache_t *cache, int sub_nodes_file_index, off64_t sub_nodes_offset, size64_t sub_nodes_size, uint32_t sub_nodes_flags, uint8_t read_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_free( libfdata_tree_t **tree, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_clone( libfdata_tree_t **destination_tree, libfdata_tree_t *source_tree, libcerror_error_t **error ); /* Node value functions */ int libfdata_tree_get_node_value( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_tree_node_t *node, intptr_t **node_value, uint8_t read_flags, libcerror_error_t **error ); int libfdata_tree_set_node_value( libfdata_tree_t *tree, libfdata_cache_t *cache, libfdata_tree_node_t *node, intptr_t *node_value, int (*free_node_value)( intptr_t **node_value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ); /* Sub node functions */ int libfdata_tree_read_sub_nodes( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_tree_node_t *node, uint8_t read_flags, libcerror_error_t **error ); /* Root node functions */ LIBFDATA_EXTERN \ int libfdata_tree_get_root_node( libfdata_tree_t *tree, libfdata_tree_node_t **root_node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_set_root_node( libfdata_tree_t *tree, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ); /* Leaf node functions */ LIBFDATA_EXTERN \ int libfdata_tree_get_number_of_leaf_nodes( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_get_leaf_node_by_index( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int leaf_node_index, libfdata_tree_node_t **leaf_node, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_get_number_of_deleted_leaf_nodes( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_deleted_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_tree_get_deleted_leaf_node_by_index( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int deleted_leaf_node_index, libfdata_tree_node_t **deleted_leaf_node, uint8_t read_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_TREE_H ) */ libfsapfs-20190210/libfdata/libfdata_support.h0000664000175000017500000000232013430101214023266 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_SUPPORT_H ) #define _LIBFDATA_SUPPORT_H #include #include #include "libfdata_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFDATA ) LIBFDATA_EXTERN \ const char *libfdata_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_SUPPORT_H ) */ libfsapfs-20190210/libfdata/libfdata_libfcache.h0000664000175000017500000000264313430101214023462 0ustar00lordyestalordyesta00000000000000/* * The libfcache header wrapper * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_LIBFCACHE_H ) #define _LIBFDATA_LIBFCACHE_H #include /* Define HAVE_LOCAL_LIBFCACHE for local use of libfcache */ #if defined( HAVE_LOCAL_LIBFCACHE ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBFCACHE_DLL_IMPORT * before including libfcache.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBFCACHE_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBFCACHE ) */ #endif /* !defined( _LIBFDATA_LIBFCACHE_H ) */ libfsapfs-20190210/libfdata/libfdata_libcerror.h0000664000175000017500000000264013430101214023542 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_LIBCERROR_H ) #define _LIBFDATA_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBFDATA_LIBCERROR_H ) */ libfsapfs-20190210/libfdata/libfdata_range_list.c0000664000175000017500000007423513430101214023712 0ustar00lordyestalordyesta00000000000000/* * The range list functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_definitions.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_libfcache.h" #include "libfdata_list.h" #include "libfdata_list_element.h" #include "libfdata_range_list.h" #include "libfdata_types.h" /* Creates a range list * Make sure the value range_list is referencing, is set to NULL * * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the range list * takes over management of the data handle and the data handle is freed when * no longer needed * * Returns 1 if successful or -1 on error */ int libfdata_range_list_initialize( libfdata_range_list_t **range_list, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, uint8_t read_flags, libcerror_error_t **error ), int (*write_element_data)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_list_element_t *list_element, libfdata_cache_t *cache, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, uint8_t write_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libfdata_range_list_initialize"; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( *range_list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid range list value already set.", function ); return( -1 ); } if( ( flags & 0xfe ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%02" PRIx8 ".", function ); return( -1 ); } internal_range_list = memory_allocate_structure( libfdata_internal_range_list_t ); if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create range list.", function ); goto on_error; } if( memory_set( internal_range_list, 0, sizeof( libfdata_internal_range_list_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear range list.", function ); memory_free( internal_range_list ); return( -1 ); } if( libcdata_range_list_initialize( &( internal_range_list->elements_range_list ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create elements range list.", function ); goto on_error; } internal_range_list->flags |= flags; internal_range_list->data_handle = data_handle; internal_range_list->free_data_handle = free_data_handle; internal_range_list->clone_data_handle = clone_data_handle; internal_range_list->read_element_data = read_element_data; internal_range_list->write_element_data = write_element_data; *range_list = (libfdata_range_list_t *) internal_range_list; return( 1 ); on_error: if( internal_range_list != NULL ) { if( internal_range_list->elements_range_list != NULL ) { libcdata_range_list_free( &( internal_range_list->elements_range_list ), NULL, NULL ); } memory_free( internal_range_list ); } return( -1 ); } /* Frees a range list * Returns 1 if successful or -1 on error */ int libfdata_range_list_free( libfdata_range_list_t **range_list, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libfdata_range_list_free"; int result = 1; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( *range_list != NULL ) { internal_range_list = (libfdata_internal_range_list_t *) *range_list; *range_list = NULL; if( libcdata_range_list_free( &( internal_range_list->elements_range_list ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the elements range list.", function ); result = -1; } if( ( internal_range_list->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) { if( internal_range_list->data_handle != NULL ) { if( internal_range_list->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid range list - missing free data handle function.", function ); result = -1; } else if( internal_range_list->free_data_handle( &( internal_range_list->data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data handle.", function ); result = -1; } } } memory_free( internal_range_list ); } return( result ); } /* Clones (duplicates) the range list * Returns 1 if successful or -1 on error */ int libfdata_range_list_clone( libfdata_range_list_t **destination_range_list, libfdata_range_list_t *source_range_list, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_destination_range_list = NULL; libfdata_internal_range_list_t *internal_source_range_list = NULL; static char *function = "libfdata_range_list_clone"; if( destination_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination range list.", function ); return( -1 ); } if( *destination_range_list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination range list value already set.", function ); return( -1 ); } if( source_range_list == NULL ) { *destination_range_list = NULL; return( 1 ); } internal_source_range_list = (libfdata_internal_range_list_t *) source_range_list; internal_destination_range_list = memory_allocate_structure( libfdata_internal_range_list_t ); if( internal_destination_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination range list.", function ); goto on_error; } if( memory_set( internal_destination_range_list, 0, sizeof( libfdata_internal_range_list_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination range list.", function ); memory_free( internal_destination_range_list ); return( -1 ); } if( internal_source_range_list->data_handle != NULL ) { if( internal_source_range_list->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source range list - missing free data handle function.", function ); goto on_error; } if( internal_source_range_list->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source range list - missing clone data handle function.", function ); goto on_error; } if( internal_source_range_list->clone_data_handle( &( internal_destination_range_list->data_handle ), internal_source_range_list->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination data handle.", function ); goto on_error; } } if( libcdata_range_list_clone( &( internal_destination_range_list->elements_range_list ), internal_source_range_list->elements_range_list, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_list_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination elements range list.", function ); goto on_error; } internal_destination_range_list->flags = internal_source_range_list->flags | LIBFDATA_DATA_HANDLE_FLAG_MANAGED; internal_destination_range_list->free_data_handle = internal_source_range_list->free_data_handle; internal_destination_range_list->clone_data_handle = internal_source_range_list->clone_data_handle; internal_destination_range_list->read_element_data = internal_source_range_list->read_element_data; internal_destination_range_list->write_element_data = internal_source_range_list->write_element_data; *destination_range_list = (libfdata_range_list_t *) internal_destination_range_list; return( 1 ); on_error: if( internal_destination_range_list != NULL ) { if( ( internal_destination_range_list->data_handle != NULL ) && ( internal_source_range_list->free_data_handle != NULL ) ) { internal_source_range_list->free_data_handle( &( internal_destination_range_list->data_handle ), NULL ); } memory_free( internal_destination_range_list ); } return( -1 ); } /* List elements functions */ /* Empties the range list * Returns 1 if successful or -1 on error */ int libfdata_range_list_empty( libfdata_range_list_t *range_list, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libfdata_range_list_empty"; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libfdata_internal_range_list_t *) range_list; if( libcdata_range_list_empty( internal_range_list->elements_range_list, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to empty elements range list.", function ); return( -1 ); } return( 1 ); } /* Mapped range functions */ /* Retrieves the list element for a specific offset * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_range_list_get_list_element_at_offset( libfdata_range_list_t *range_list, off64_t offset, off64_t *element_data_offset, libfdata_list_element_t **element, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_range_list = NULL; libfdata_list_t *list = NULL; static char *function = "libfdata_range_list_get_list_element_at_offset"; off64_t mapped_range_offset = 0; size64_t mapped_range_size = 0; int element_index = 0; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libfdata_internal_range_list_t *) range_list; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested offset: 0x%08" PRIx64 "\n", function, offset ); } #endif result = libcdata_range_list_get_range_at_offset( internal_range_list->elements_range_list, (uint64_t) offset, (uint64_t *) &mapped_range_offset, (uint64_t *) &mapped_range_size, (intptr_t **) &list, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range from elements range list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: mapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, mapped_range_offset, mapped_range_offset + mapped_range_size, mapped_range_size ); } #endif result = libfdata_list_get_list_element_at_offset( list, offset, &element_index, element_data_offset, element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element from list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - element missing for offset: %" PRIi64 ".", function, offset ); return( -1 ); } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( result ); } /* Retrieves the data range of an element at a specific offset * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_range_list_get_element_at_offset( libfdata_range_list_t *range_list, off64_t offset, off64_t *element_data_offset, int *element_file_index, off64_t *element_offset, size64_t *element_size, uint32_t *element_flags, libcerror_error_t **error ) { libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_list_get_element_at_offset"; int result = 0; result = libfdata_range_list_get_list_element_at_offset( range_list, offset, element_data_offset, &list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element at offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { if( libfdata_list_element_get_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range of list element at offset: %" PRIi64 ".", function, offset ); return( -1 ); } } return( result ); } /* Inserts an element data range based on its mapped range * Returns 1 if successful or -1 on error */ int libfdata_range_list_insert_element( libfdata_range_list_t *range_list, off64_t offset, size64_t size, int element_file_index, off64_t element_offset, size64_t element_size, uint32_t element_flags, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_range_list = NULL; libfdata_list_t *list = NULL; libfdata_list_element_t *list_element = NULL; static char *function = "libfdata_range_list_insert_element"; off64_t element_data_offset = 0; off64_t mapped_range_offset = 0; size64_t element_mapped_size = 0; size64_t mapped_range_size = 0; int element_index = 0; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libfdata_internal_range_list_t *) range_list; if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid offset value out of bounds.", function ); return( -1 ); } if( size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: file index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, element_file_index, element_offset, element_offset + element_size, element_size ); libcnotify_printf( "%s: requested range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, offset, offset + size, size ); } #endif result = libcdata_range_list_get_range_at_offset( internal_range_list->elements_range_list, (uint64_t) offset, (uint64_t *) &mapped_range_offset, (uint64_t *) &mapped_range_size, (intptr_t **) &list, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range from elements range list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: mapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, mapped_range_offset, mapped_range_offset + mapped_range_size, mapped_range_size ); } #endif result = libfdata_list_get_list_element_at_offset( list, offset, &element_index, &element_data_offset, &list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element from list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - element missing for offset: %" PRIi64 ".", function, offset ); return( -1 ); } if( element_data_offset != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid offset value out of bounds.", function ); return( -1 ); } if( libfdata_list_element_get_mapped_size( list_element, &element_mapped_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve mapped size from list element at offset: %" PRIi64 ".", function, offset ); return( -1 ); } if( size != element_mapped_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid size value out of bounds.", function ); return( -1 ); } if( libfdata_list_element_set_data_range( list_element, element_file_index, element_offset, element_size, element_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set data range in list element at offset: %" PRIi64 ".", function, offset ); return( -1 ); } } else { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: no mapped range found.\n", function ); } #endif if( libfdata_list_initialize( &list, internal_range_list->data_handle, internal_range_list->free_data_handle, internal_range_list->clone_data_handle, internal_range_list->read_element_data, internal_range_list->write_element_data, LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list.", function ); return( -1 ); } if( libfdata_list_set_mapped_offset( list, offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped offset in list.", function ); libfdata_list_free( &list, NULL ); return( -1 ); } if( libfdata_list_append_element_with_mapped_size( list, &element_index, element_file_index, element_offset, element_size, element_flags, size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append element to list.", function ); libfdata_list_free( &list, NULL ); return( -1 ); } if( libcdata_range_list_insert_range( internal_range_list->elements_range_list, (uint64_t) offset, (uint64_t) size, (intptr_t *) list, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_list_free, (int (*)(intptr_t *, intptr_t *, libcerror_error_t **)) &libfdata_list_append_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert range in elements range list.", function ); libfdata_list_free( &list, NULL ); return( -1 ); } list = NULL; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( 1 ); } /* List element value functions */ /* Retrieves the value an element at a specific offset * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_range_list_get_element_value_at_offset( libfdata_range_list_t *range_list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, off64_t *element_data_offset, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_range_list = NULL; libfdata_list_t *list = NULL; static char *function = "libfdata_range_list_get_element_value_at_offset"; off64_t mapped_range_offset = 0; size64_t mapped_range_size = 0; int element_index = 0; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libfdata_internal_range_list_t *) range_list; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested offset: 0x%08" PRIx64 "\n", function, offset ); } #endif result = libcdata_range_list_get_range_at_offset( internal_range_list->elements_range_list, (uint64_t) offset, (uint64_t *) &mapped_range_offset, (uint64_t *) &mapped_range_size, (intptr_t **) &list, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range from elements range list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: mapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, mapped_range_offset, mapped_range_offset + mapped_range_size, mapped_range_size ); } #endif result = libfdata_list_get_element_value_at_offset( list, file_io_handle, cache, offset, &element_index, element_data_offset, element_value, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve element value from list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - element value missing for offset: %" PRIi64 ".", function, offset ); return( -1 ); } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( result ); } /* Sets the value of an element at a specific offset * * If the flag LIBFDATA_RANGE_LIST_VALUE_FLAG_MANAGED is set the list * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_range_list_set_element_value_at_offset( libfdata_range_list_t *range_list, intptr_t *file_io_handle, libfdata_cache_t *cache, off64_t offset, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_internal_range_list_t *internal_range_list = NULL; libfdata_list_t *list = NULL; static char *function = "libfdata_range_list_set_element_value_at_offset"; off64_t mapped_range_offset = 0; size64_t mapped_range_size = 0; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libfdata_internal_range_list_t *) range_list; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested offset: 0x%08" PRIx64 "\n", function, offset ); } #endif result = libcdata_range_list_get_range_at_offset( internal_range_list->elements_range_list, (uint64_t) offset, (uint64_t *) &mapped_range_offset, (uint64_t *) &mapped_range_size, (intptr_t **) &list, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range from elements range list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: mapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, mapped_range_offset, mapped_range_offset + mapped_range_size, mapped_range_size ); } #endif result = libfdata_list_set_element_value_at_offset( list, file_io_handle, cache, offset, element_value, free_element_value, write_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set element value in list for offset: %" PRIi64 ".", function, offset ); return( -1 ); } else if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - element value missing for offset: %" PRIi64 ".", function, offset ); return( -1 ); } } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( result ); } libfsapfs-20190210/libfdata/libfdata_btree_range.h0000664000175000017500000000543513430101214024041 0ustar00lordyestalordyesta00000000000000/* * The balanced tree range functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_BTREE_RANGE_H ) #define _LIBFDATA_BTREE_RANGE_H #include #include #include "libfdata_extern.h" #include "libfdata_libcerror.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_btree_range libfdata_btree_range_t; struct libfdata_btree_range { /* The file index */ int file_index; /* The offset */ off64_t offset; /* The size */ size64_t size; /* The flags */ uint32_t flags; /* The key value */ intptr_t *key_value; /* The free key value function */ int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ); /* The key value flags */ uint8_t key_value_flags; /* The mapped first leaf value index */ int mapped_first_leaf_value_index; /* The mapped last leaf value index */ int mapped_last_leaf_value_index; /* The mapped number of leaf values */ int mapped_number_of_leaf_values; }; int libfdata_btree_range_initialize( libfdata_btree_range_t **range, libcerror_error_t **error ); int libfdata_btree_range_free( libfdata_btree_range_t **range, libcerror_error_t **error ); int libfdata_btree_range_clone( libfdata_btree_range_t **destination_range, libfdata_btree_range_t *source_range, libcerror_error_t **error ); int libfdata_btree_range_get( libfdata_btree_range_t *range, int *data_file_index, off64_t *data_offset, size64_t *data_size, uint32_t *data_flags, intptr_t **key_value, libcerror_error_t **error ); int libfdata_btree_range_set( libfdata_btree_range_t *range, int data_file_index, off64_t data_offset, size64_t data_size, uint32_t data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_BTREE_RANGE_H ) */ libfsapfs-20190210/libfdata/libfdata_tree.c0000664000175000017500000007370613430101214022524 0ustar00lordyestalordyesta00000000000000/* * The tree functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_definitions.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_libfcache.h" #include "libfdata_tree.h" #include "libfdata_tree_node.h" #include "libfdata_types.h" /* Creates a tree * Make sure the value tree is referencing, is set to NULL * * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the tree * takes over management of the data handle and the data handle is freed when * no longer needed * * Returns 1 if successful or -1 on error */ int libfdata_tree_initialize( libfdata_tree_t **tree, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_node)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_tree_node_t *node, libfdata_cache_t *cache, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, uint8_t read_flags, libcerror_error_t **error ), int (*read_sub_nodes)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_tree_node_t *node, libfdata_cache_t *cache, int sub_nodes_file_index, off64_t sub_nodes_offset, size64_t sub_nodes_size, uint32_t sub_nodes_flags, uint8_t read_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_initialize"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( *tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid tree value already set.", function ); return( -1 ); } if( read_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read node function.", function ); return( -1 ); } if( read_sub_nodes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid read sub nodes function.", function ); return( -1 ); } internal_tree = memory_allocate_structure( libfdata_internal_tree_t ); if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create tree.", function ); goto on_error; } if( memory_set( internal_tree, 0, sizeof( libfdata_internal_tree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear tree.", function ); goto on_error; } internal_tree->flags |= flags; internal_tree->data_handle = data_handle; internal_tree->free_data_handle = free_data_handle; internal_tree->clone_data_handle = clone_data_handle; internal_tree->read_node = read_node; internal_tree->read_sub_nodes = read_sub_nodes; *tree = (libfdata_tree_t *) internal_tree; return( 1 ); on_error: if( internal_tree != NULL ) { memory_free( internal_tree ); } return( -1 ); } /* Frees a tree * Returns 1 if successful or -1 on error */ int libfdata_tree_free( libfdata_tree_t **tree, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_free"; int result = 1; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( *tree != NULL ) { internal_tree = (libfdata_internal_tree_t *) *tree; *tree = NULL; if( internal_tree->root_node != NULL ) { if( libfdata_tree_node_free( &( internal_tree->root_node ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free root node.", function ); result = -1; } } if( ( internal_tree->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) { if( internal_tree->data_handle != NULL ) { if( internal_tree->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - missing free data handle function.", function ); result = -1; } else if( internal_tree->free_data_handle( &( internal_tree->data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data handle.", function ); result = -1; } } } memory_free( internal_tree ); } return( result ); } /* Clones (duplicates) the tree * Returns 1 if successful or -1 on error */ int libfdata_tree_clone( libfdata_tree_t **destination_tree, libfdata_tree_t *source_tree, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_source_tree = NULL; libfdata_tree_node_t *source_tree_root_node = NULL; intptr_t *destination_data_handle = NULL; static char *function = "libfdata_tree_clone"; off64_t node_offset = 0; size64_t node_size = 0; uint32_t node_flags = 0; int node_file_index = -1; if( destination_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination tree.", function ); return( -1 ); } if( *destination_tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination tree value already set.", function ); return( -1 ); } if( source_tree == NULL ) { *destination_tree = NULL; return( 1 ); } internal_source_tree = (libfdata_internal_tree_t *) source_tree; if( internal_source_tree->data_handle != NULL ) { if( internal_source_tree->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source tree - missing free data handle function.", function ); goto on_error; } if( internal_source_tree->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source tree - missing clone data handle function.", function ); goto on_error; } if( internal_source_tree->clone_data_handle( &destination_data_handle, internal_source_tree->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to clone data handle.", function ); goto on_error; } } if( libfdata_tree_initialize( destination_tree, destination_data_handle, internal_source_tree->free_data_handle, internal_source_tree->clone_data_handle, internal_source_tree->read_node, internal_source_tree->read_sub_nodes, LIBFDATA_DATA_HANDLE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination tree.", function ); goto on_error; } destination_data_handle = NULL; if( libfdata_tree_get_root_node( source_tree, &source_tree_root_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve source tree root node.", function ); goto on_error; } if( libfdata_tree_node_get_data_range( source_tree_root_node, &node_file_index, &node_offset, &node_size, &node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve source tree root node data range.", function ); goto on_error; } if( libfdata_tree_set_root_node( *destination_tree, node_file_index, node_offset, node_size, node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set destination tree root node.", function ); goto on_error; } /* TODO or clone all the tree nodes ? */ return( 1 ); on_error: if( *destination_tree != NULL ) { libfdata_tree_free( destination_tree, NULL ); } if( destination_data_handle != NULL ) { internal_source_tree->free_data_handle( &destination_data_handle, NULL ); } return( -1 ); } /* Retrieves the node value of the node * Returns 1 if successful or -1 on error */ int libfdata_tree_get_node_value( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_tree_node_t *node, intptr_t **node_value, uint8_t read_flags, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_get_node_value"; size64_t node_size = 0; off64_t cache_value_offset = (off64_t) -1; off64_t node_offset = 0; int64_t cache_value_timestamp = 0; int64_t node_timestamp = 0; uint32_t node_flags = 0; int cache_entry_index = -1; int cache_value_file_index = -1; int node_file_index = -1; int number_of_cache_entries = 0; int result = 0; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( internal_tree->read_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing read node function.", function ); return( -1 ); } if( libfdata_tree_node_get_data_range( node, &node_file_index, &node_offset, &node_size, &node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range from tree node.", function ); return( -1 ); } if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } if( ( read_flags & LIBFDATA_READ_FLAG_IGNORE_CACHE ) == 0 ) { if( ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { cache_entry_index = libfdata_tree_node_calculate_leaf_node_cache_entry_index( node_offset, number_of_cache_entries ); } else { cache_entry_index = libfdata_tree_node_calculate_branch_node_cache_entry_index( node_offset, number_of_cache_entries ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfdata_tree_node_get_timestamp( node, &node_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve time stamp from tree node.", function ); return( -1 ); } if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( node_file_index == cache_value_file_index ) && ( node_offset == cache_value_offset ) && ( node_timestamp == cache_value_timestamp ) ) { result = 1; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( result == 0 ) { libcnotify_printf( "%s: cache: 0x%08" PRIjx " miss (entry: %d, want: %" PRIi64 ", got: %" PRIi64 ")\n", function, (intptr_t) cache, cache_entry_index, node_offset, cache_value_offset ); } else { libcnotify_printf( "%s: cache: 0x%08" PRIjx " hit (entry: %d)\n", function, (intptr_t) cache, cache_entry_index ); } } #endif } if( result == 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading node at offset: %" PRIi64 " (0x%08" PRIx64 ") of size: %" PRIu64 "\n", function, node_offset, node_offset, node_size ); } #endif if( internal_tree->read_node( internal_tree->data_handle, file_io_handle, node, cache, node_file_index, node_offset, node_size, node_flags, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read node at offset: 0x%08" PRIx64 ".", function, node_offset ); return( -1 ); } if( ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { cache_entry_index = libfdata_tree_node_calculate_leaf_node_cache_entry_index( node_offset, number_of_cache_entries ); } else { cache_entry_index = libfdata_tree_node_calculate_branch_node_cache_entry_index( node_offset, number_of_cache_entries ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfdata_tree_node_get_timestamp( node, &node_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve time stamp from tree node.", function ); return( -1 ); } if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( node_file_index != cache_value_file_index ) || ( node_offset != cache_value_offset ) || ( node_timestamp != cache_value_timestamp ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing cache value.", function ); return( -1 ); } } if( libfcache_cache_value_get_value( cache_value, node_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } return( 1 ); } /* Sets the node value of the node * * If the flag LIBFDATA_TREE_NODE_VALUE_FLAG_MANAGED is set the tree * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_tree_set_node_value( libfdata_tree_t *tree, libfdata_cache_t *cache, libfdata_tree_node_t *node, intptr_t *node_value, int (*free_node_value)( intptr_t **node_value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { static char *function = "libfdata_tree_set_node_value"; size64_t node_size = 0; off64_t node_offset = 0; int64_t node_timestamp = 0; uint32_t node_flags = 0; int cache_entry_index = -1; int node_file_index = -1; int number_of_cache_entries = 0; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( libfdata_tree_node_get_data_range( node, &node_file_index, &node_offset, &node_size, &node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range from tree node.", function ); return( -1 ); } if( libfdata_tree_node_get_timestamp( node, &node_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve timestamp from tree node.", function ); return( -1 ); } if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } if( ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { cache_entry_index = libfdata_tree_node_calculate_leaf_node_cache_entry_index( node_offset, number_of_cache_entries ); } else { cache_entry_index = libfdata_tree_node_calculate_branch_node_cache_entry_index( node_offset, number_of_cache_entries ); } if( libfcache_cache_set_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, node_file_index, node_offset, node_timestamp, node_value, free_node_value, flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in cache entry: %d.", function, cache_entry_index ); return( -1 ); } return( 1 ); } /* Reads the sub nodes of the node * Returns 1 if successful or -1 on error */ int libfdata_tree_read_sub_nodes( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_tree_node_t *node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_read_sub_nodes"; off64_t sub_nodes_offset = 0; size64_t sub_nodes_size = 0; uint32_t sub_nodes_flags = 0; int sub_nodes_file_index = -1; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( internal_tree->read_sub_nodes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing read sub nodes function.", function ); return( -1 ); } if( libfdata_tree_node_get_sub_nodes_data_range( node, &sub_nodes_file_index, &sub_nodes_offset, &sub_nodes_size, &sub_nodes_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub nodes data range.", function ); return( -1 ); } if( internal_tree->read_sub_nodes( internal_tree->data_handle, file_io_handle, node, cache, sub_nodes_file_index, sub_nodes_offset, sub_nodes_size, sub_nodes_flags, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read sub nodes at offset: 0x%08" PRIx64 ".", function, sub_nodes_offset ); return( -1 ); } return( 1 ); } /* Retrieves the offset and size of the root node * Returns 1 if successful or -1 on error */ int libfdata_tree_get_root_node( libfdata_tree_t *tree, libfdata_tree_node_t **root_node, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_get_root_node"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( root_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid root node.", function ); return( -1 ); } *root_node = internal_tree->root_node; return( 1 ); } /* Sets the root node * Returns 1 if successful or -1 on error */ int libfdata_tree_set_root_node( libfdata_tree_t *tree, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_set_root_node"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( internal_tree->root_node == NULL ) { if( libfdata_tree_node_initialize( &( internal_tree->root_node ), tree, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create root node.", function ); return( -1 ); } } if( libfdata_tree_node_set_data_range( internal_tree->root_node, node_file_index, node_offset, node_size, node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set root node data range.", function ); return( -1 ); } return( 1 ); } /* Retrieves the number of leaf nodes in the tree * Returns 1 if successful or -1 on error */ int libfdata_tree_get_number_of_leaf_nodes( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_get_number_of_leaf_nodes"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( libfdata_tree_node_get_number_of_leaf_nodes( internal_tree->root_node, file_io_handle, cache, number_of_leaf_nodes, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of leaf nodes from root node.", function ); return( -1 ); } return( 1 ); } /* Retrieves a leaf nodes at a specific index * Returns 1 if successful or -1 on error */ int libfdata_tree_get_leaf_node_by_index( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int leaf_node_index, libfdata_tree_node_t **leaf_node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_get_leaf_node_by_index"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( libfdata_tree_node_get_leaf_node_by_index( internal_tree->root_node, file_io_handle, cache, leaf_node_index, leaf_node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node: %d from root node.", function, leaf_node_index ); return( -1 ); } return( 1 ); } /* Retrieves the number of deleted leaf nodes in the tree * Returns 1 if successful or -1 on error */ int libfdata_tree_get_number_of_deleted_leaf_nodes( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_deleted_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_get_number_of_deleted_leaf_nodes"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( libfdata_tree_node_get_number_of_deleted_leaf_nodes( internal_tree->root_node, file_io_handle, cache, number_of_deleted_leaf_nodes, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of deleted leaf nodes from root node.", function ); return( -1 ); } return( 1 ); } /* Retrieves a deleted leaf nodes at a specific index * Returns 1 if successful or -1 on error */ int libfdata_tree_get_deleted_leaf_node_by_index( libfdata_tree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int deleted_leaf_node_index, libfdata_tree_node_t **deleted_leaf_node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_t *internal_tree = NULL; static char *function = "libfdata_tree_get_deleted_leaf_node_by_index"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_tree_t *) tree; if( libfdata_tree_node_get_deleted_leaf_node_by_index( internal_tree->root_node, file_io_handle, cache, deleted_leaf_node_index, deleted_leaf_node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of deleted leaf node: %d from root node.", function, deleted_leaf_node_index ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfdata/libfdata_tree_node.c0000664000175000017500000024774613430101214023540 0ustar00lordyestalordyesta00000000000000/* * The tree node functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_definitions.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_range.h" #include "libfdata_tree_node.h" #include "libfdata_types.h" /* Creates a node * Make sure the value node is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdata_tree_node_initialize( libfdata_tree_node_t **node, libfdata_tree_t *tree, libfdata_tree_node_t *parent_node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_initialize"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( *node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid node value already set.", function ); return( -1 ); } if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree_node = memory_allocate_structure( libfdata_internal_tree_node_t ); if( internal_tree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create node.", function ); goto on_error; } if( memory_set( internal_tree_node, 0, sizeof( libfdata_internal_tree_node_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear node.", function ); memory_free( internal_tree_node ); return( -1 ); } if( libfdata_range_initialize( &( internal_tree_node->node_data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create node data range.", function ); goto on_error; } if( libfdata_range_initialize( &( internal_tree_node->sub_nodes_data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub nodes data range.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_tree_node->sub_nodes ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub nodes array.", function ); goto on_error; } if( libfcache_date_time_get_timestamp( &( internal_tree_node->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); goto on_error; } internal_tree_node->tree = tree; internal_tree_node->parent_node = parent_node; internal_tree_node->flags = LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; *node = (libfdata_tree_node_t *) internal_tree_node; return( 1 ); on_error: if( internal_tree_node != NULL ) { if( internal_tree_node->sub_nodes != NULL ) { libcdata_array_free( &( internal_tree_node->sub_nodes ), NULL, NULL ); } if( internal_tree_node->sub_nodes_data_range != NULL ) { libfdata_range_free( &( internal_tree_node->sub_nodes_data_range ), NULL ); } if( internal_tree_node->node_data_range != NULL ) { libfdata_range_free( &( internal_tree_node->node_data_range ), NULL ); } memory_free( internal_tree_node ); } return( -1 ); } /* Frees a node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_free( libfdata_tree_node_t **node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_free"; int result = 1; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( *node != NULL ) { internal_tree_node = (libfdata_internal_tree_node_t *) *node; *node = NULL; if( internal_tree_node->node_data_range != NULL ) { if( libfdata_range_free( &( internal_tree_node->node_data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free node data range.", function ); result = -1; } } if( internal_tree_node->sub_nodes_data_range != NULL ) { if( libfdata_range_free( &( internal_tree_node->sub_nodes_data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free sub nodes data range.", function ); result = -1; } } if( libcdata_array_free( &( internal_tree_node->sub_nodes ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the sub nodes array.", function ); result = -1; } memory_free( internal_tree_node ); } return( result ); } /* Frees a node, but not its sub nodes * Returns 1 if successful or -1 on error */ int libfdata_tree_node_free_single( libfdata_tree_node_t **node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_free_single"; int result = 1; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( *node != NULL ) { internal_tree_node = (libfdata_internal_tree_node_t *) node; *node = NULL; if( libcdata_array_free( &( internal_tree_node->sub_nodes ), NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the sub nodes array.", function ); result = -1; } memory_free( internal_tree_node ); } return( result ); } /* Sets the parent node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_parent_node( libfdata_tree_node_t *node, libfdata_tree_node_t *parent_node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_parent_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; internal_tree_node->parent_node = parent_node; return( 1 ); } /* Determines if the node is a root node * Returns 1 if a root node, 0 if not or -1 on error */ int libfdata_tree_node_is_root( libfdata_tree_node_t *node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_is_root"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( internal_tree_node->parent_node == NULL ) { return( 1 ); } return( 0 ); } /* Retrieves the data offset and size * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_data_range( libfdata_tree_node_t *node, int *node_file_index, off64_t *node_offset, size64_t *node_size, uint32_t *node_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_get_data_range"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( libfdata_range_get( internal_tree_node->node_data_range, node_file_index, node_offset, node_size, node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node data range.", function ); return( -1 ); } return( 1 ); } /* Sets the data offset and size * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_data_range( libfdata_tree_node_t *node, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_data_range"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is virtual.", function ); return( -1 ); } if( libfdata_range_set( internal_tree_node->node_data_range, node_file_index, node_offset, node_size, node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set node data range.", function ); return( -1 ); } if( libfcache_date_time_get_timestamp( &( internal_tree_node->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); return( -1 ); } return( 1 ); } /* Determines if the sub nodes data range has been set * Returns 1 if sub nodes have been set, 0 if not or -1 on error */ int libfdata_tree_node_sub_nodes_data_range_is_set( libfdata_tree_node_t *node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_sub_nodes_data_range_is_set"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) { return( 1 ); } return( 0 ); } /* Retrieves the sub nodes data range * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_sub_nodes_data_range( libfdata_tree_node_t *node, int *sub_nodes_file_index, off64_t *sub_nodes_offset, size64_t *sub_nodes_size, uint32_t *sub_nodes_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_get_sub_nodes_data_range"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - sub nodes range has not been set.", function ); return( -1 ); } if( libfdata_range_get( internal_tree_node->sub_nodes_data_range, sub_nodes_file_index, sub_nodes_offset, sub_nodes_size, sub_nodes_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub nodes data range.", function ); return( -1 ); } return( 1 ); } /* Sets the sub nodes data range * The sub nodes data range cannot be set after the sub nodes have been read * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_sub_nodes_data_range( libfdata_tree_node_t *node, int sub_nodes_file_index, off64_t sub_nodes_offset, size64_t sub_nodes_size, uint32_t sub_nodes_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_sub_nodes_data_range"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is virtual.", function ); return( -1 ); } if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is a leaf.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - sub nodes range has already been read.", function ); return( -1 ); } if( libfdata_range_set( internal_tree_node->sub_nodes_data_range, sub_nodes_file_index, sub_nodes_offset, sub_nodes_size, sub_nodes_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set sub nodes data range.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET; return( 1 ); } /* Retrieves the time stamp * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_timestamp( libfdata_tree_node_t *node, int64_t *timestamp, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_get_timestamp"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( timestamp == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node time stamp.", function ); return( -1 ); } *timestamp = internal_tree_node->timestamp; return( 1 ); } /* Retrieves the first leaf node index * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_first_leaf_node_index( libfdata_tree_node_t *node, int *first_leaf_node_index, int *deleted_first_leaf_node_index, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_get_first_leaf_node_index"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( first_leaf_node_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid first leaf node index.", function ); return( -1 ); } if( deleted_first_leaf_node_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid first deleted leaf node index.", function ); return( -1 ); } *first_leaf_node_index = internal_tree_node->first_leaf_node_index; *deleted_first_leaf_node_index = internal_tree_node->first_deleted_leaf_node_index; return( 1 ); } /* Sets the first leaf node index * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_first_leaf_node_index( libfdata_tree_node_t *node, int first_leaf_node_index, int first_deleted_leaf_node_index, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_first_leaf_node_index"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( first_leaf_node_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid first leaf node index value less than zero.", function ); return( -1 ); } if( first_deleted_leaf_node_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid first deleted leaf node index value less than zero.", function ); return( -1 ); } internal_tree_node->first_leaf_node_index = first_leaf_node_index; internal_tree_node->first_deleted_leaf_node_index = first_deleted_leaf_node_index; return( 1 ); } /* Retrieves the node value * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_node_value( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t **node_value, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_get_node_value"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( libfdata_tree_get_node_value( internal_tree_node->tree, file_io_handle, cache, node, node_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; return( 1 ); } /* Sets the node value * * If the flag LIBFDATA_TREE_NODE_VALUE_FLAG_MANAGED is set the node * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_node_value( libfdata_tree_node_t *node, libfdata_cache_t *cache, intptr_t *node_value, int (*free_node_value)( intptr_t **node_value, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_node_value"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( libfdata_tree_set_node_value( internal_tree_node->tree, cache, node, node_value, free_node_value, flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set node value.", function ); return( -1 ); } return( 1 ); } /* Resizes the sub nodes * Returns 1 if successful or -1 on error */ int libfdata_tree_node_resize_sub_nodes( libfdata_tree_node_t *node, int number_of_sub_nodes, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_resize_sub_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is a leaf.", function ); return( -1 ); } if( libcdata_array_resize( internal_tree_node->sub_nodes, number_of_sub_nodes, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize sub nodes array.", function ); return( -1 ); } return( 1 ); } /* Retrieves the number of sub nodes * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_number_of_sub_nodes( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_sub_nodes, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; intptr_t *node_value = NULL; static char *function = "libfdata_tree_node_get_number_of_sub_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) { /* Make sure the node data is read before the sub nodes */ if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) { if( libfdata_tree_get_node_value( internal_tree_node->tree, file_io_handle, cache, node, &node_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; } if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) { if( libfdata_tree_read_sub_nodes( internal_tree_node->tree, file_io_handle, cache, node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read sub nodes.", function ); return( -1 ); } } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; } if( libcdata_array_get_number_of_entries( internal_tree_node->sub_nodes, number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub nodes array.", function ); return( -1 ); } return( 1 ); } /* Retrieves a specific sub node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_sub_node_by_index( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int sub_node_index, libfdata_tree_node_t **sub_node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; intptr_t *node_value = NULL; static char *function = "libfdata_tree_node_get_sub_node_by_index"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is a leaf.", function ); return( -1 ); } if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) { /* Make sure the node data is read before the sub nodes */ if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) { if( libfdata_tree_get_node_value( internal_tree_node->tree, file_io_handle, cache, node, &node_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; } if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) { if( libfdata_tree_read_sub_nodes( internal_tree_node->tree, file_io_handle, cache, node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read sub nodes.", function ); return( -1 ); } } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; } if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); return( -1 ); } return( 1 ); } /* Sets the offset and size of a specific sub node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_sub_node_by_index( libfdata_tree_node_t *node, int sub_node_index, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; static char *function = "libfdata_tree_node_set_sub_node_by_index"; off64_t previous_node_offset = 0; size64_t previous_node_size = 0; uint32_t previous_node_flags = 0; int previous_node_file_index = -1; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is a leaf.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); return( -1 ); } if( sub_node == NULL ) { if( libfdata_tree_node_initialize( &sub_node, internal_tree_node->tree, node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub node.", function ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t *) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set sub node: %d in sub nodes array.", function, sub_node_index ); libfdata_tree_node_free( &sub_node, NULL ); return( -1 ); } } else { if( libfdata_tree_node_get_data_range( sub_node, &previous_node_file_index, &previous_node_offset, &previous_node_size, &previous_node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node: %d data range.", function, sub_node_index ); return( -1 ); } } if( libfdata_tree_node_set_data_range( sub_node, node_file_index, node_offset, node_size, node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set sub node: %d data range.", function, sub_node_index ); return( -1 ); } return( 1 ); } /* Appends a sub node offset and size * Returns 1 if successful or -1 on error */ int libfdata_tree_node_append_sub_node( libfdata_tree_node_t *node, int *sub_node_index, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; static char *function = "libfdata_tree_node_append_sub_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is a leaf.", function ); return( -1 ); } if( libfdata_tree_node_initialize( &sub_node, internal_tree_node->tree, node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub node.", function ); goto on_error; } if( libfdata_tree_node_set_data_range( sub_node, node_file_index, node_offset, node_size, node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set sub node data range.", function ); goto on_error; } if( libcdata_array_append_entry( internal_tree_node->sub_nodes, sub_node_index, (intptr_t *) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append sub node to sub nodes array.", function ); goto on_error; } return( 1 ); on_error: if( sub_node != NULL ) { libfdata_tree_node_free( &sub_node, NULL ); } return( -1 ); } /* Inserts a sub node offset and size * * Uses the node_value_compare_function to determine the order of the sub nodes * The node_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate entry. * Only allowing unique entries can be enforced by setting the flag LIBFDATA_TREE_NODE_INSERT_FLAG_UNIQUE_ENTRIES * * Returns 1 if successful, 0 if the node already exists or -1 on error */ int libfdata_tree_node_insert_sub_node( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *sub_node_index, int node_file_index, off64_t node_offset, size64_t node_size, uint32_t node_flags, int (*node_value_compare_function)( intptr_t *first_node_value, intptr_t *second_node_value, libcerror_error_t **error ), uint8_t insert_flags, uint8_t read_flags, libcerror_error_t **error ) { libfcache_cache_t *insert_cache = NULL; libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *insert_sub_node = NULL; libfdata_tree_node_t *sub_node = NULL; intptr_t *insert_sub_node_value = NULL; intptr_t *sub_node_value = NULL; static char *function = "libfdata_tree_node_insert_sub_node"; int number_of_sub_nodes = 0; int result = 0; int sub_node_iterator = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( sub_node_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node index.", function ); return( -1 ); } if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is a leaf.", function ); return( -1 ); } if( node_value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node value compare function.", function ); return( -1 ); } if( ( insert_flags & ~( LIBFDATA_TREE_NODE_INSERT_FLAG_UNIQUE_SUB_NODE_VALUES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported insert flags: 0x%02" PRIx8 ".", function, insert_flags ); return( -1 ); } if( libfdata_tree_node_initialize( &insert_sub_node, internal_tree_node->tree, node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create insert sub node.", function ); goto on_error; } if( libfdata_tree_node_set_data_range( insert_sub_node, node_file_index, node_offset, node_size, node_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set insert sub node data range.", function ); goto on_error; } if( libcdata_array_get_number_of_entries( internal_tree_node->sub_nodes, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub nodes array.", function ); goto on_error; } if( libfcache_cache_initialize( &insert_cache, 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create insert cache.", function ); goto on_error; } if( libfdata_tree_get_node_value( internal_tree_node->tree, file_io_handle, (libfdata_cache_t *) insert_cache, insert_sub_node, &insert_sub_node_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve insert sub node value.", function ); goto on_error; } for( sub_node_iterator = 0; sub_node_iterator < number_of_sub_nodes; sub_node_iterator++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_iterator, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_iterator ); goto on_error; } if( libfdata_tree_get_node_value( internal_tree_node->tree, file_io_handle, cache, sub_node, &sub_node_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node value: %d.", function, sub_node_iterator ); goto on_error; } result = node_value_compare_function( insert_sub_node_value, sub_node_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare sub node value: %d.", function, sub_node_iterator ); goto on_error; } else if( result == LIBFDATA_COMPARE_EQUAL ) { if( ( insert_flags & LIBFDATA_TREE_NODE_INSERT_FLAG_UNIQUE_SUB_NODE_VALUES ) != 0 ) { if( libfcache_cache_free( &insert_cache, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the insert cache.", function ); goto on_error; } if( libfdata_tree_node_free( &insert_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the insert sub node.", function ); goto on_error; } return( 0 ); } } else if( result == LIBFDATA_COMPARE_LESS ) { break; } else if( result != LIBFDATA_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported node value compare function return value: %d.", function, result ); goto on_error; } } if( libfcache_cache_free( &insert_cache, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the insert cache.", function ); goto on_error; } if( ( number_of_sub_nodes > 0 ) && ( result == LIBCDATA_COMPARE_LESS ) ) { *sub_node_index = sub_node_iterator; if( libcdata_array_resize( internal_tree_node->sub_nodes, number_of_sub_nodes + 1, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize sub nodes array.", function ); goto on_error; } for( sub_node_iterator = number_of_sub_nodes; sub_node_iterator > *sub_node_index; sub_node_iterator-- ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_iterator - 1, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node: %d from sub nodes array.", function, sub_node_iterator - 1 ); goto on_error; } if( libcdata_array_set_entry_by_index( internal_tree_node->sub_nodes, sub_node_iterator, (intptr_t *) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set sub node: %d in sub nodes array.", function, sub_node_iterator ); goto on_error; } } if( libcdata_array_set_entry_by_index( internal_tree_node->sub_nodes, *sub_node_index, (intptr_t *) insert_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set insert sub node: %d in sub nodes array.", function, *sub_node_index ); goto on_error; } } else { *sub_node_index = number_of_sub_nodes; if( libcdata_array_resize( internal_tree_node->sub_nodes, number_of_sub_nodes + 1, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize sub nodes array.", function ); goto on_error; } if( libcdata_array_set_entry_by_index( internal_tree_node->sub_nodes, *sub_node_index, (intptr_t *) insert_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set insert sub node: %d in sub nodes array.", function, *sub_node_index ); goto on_error; } } return( 1 ); on_error: if( insert_cache != NULL ) { libfcache_cache_free( &insert_cache, NULL ); } if( insert_sub_node != NULL ) { libfdata_tree_node_free( &insert_sub_node, NULL ); } return( -1 ); } /* Splits the sub nodes * Returns 1 if successful or -1 on error */ int libfdata_tree_node_split_sub_nodes( libfdata_tree_node_t *node, int number_of_splits, libcerror_error_t **error ) { libcdata_array_t *virtual_sub_nodes_array = NULL; libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; libfdata_tree_node_t *virtual_sub_node = NULL; static char *function = "libfdata_tree_node_split_sub_nodes"; int number_of_split_sub_nodes = 0; int number_of_sub_nodes = 0; int result = 1; int last_sub_node_index = 0; int split_sub_node_index = 0; int sub_node_index = 0; int virtual_sub_node_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - node is a leaf.", function ); return( -1 ); } if( number_of_splits < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid number of splits value less than zero.", function ); return( -1 ); } if( number_of_splits == 0 ) { return( 1 ); } if( libcdata_array_get_number_of_entries( internal_tree_node->sub_nodes, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub nodes array.", function ); return( -1 ); } number_of_split_sub_nodes = number_of_sub_nodes / number_of_splits; if( number_of_split_sub_nodes < 2 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: number of sub nodes too small to split in: %d.", function, number_of_splits ); return( -1 ); } if( libcdata_array_initialize( &virtual_sub_nodes_array, number_of_splits, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create virtual sub nodes array.", function ); return( -1 ); } for( virtual_sub_node_index = 0; virtual_sub_node_index < number_of_splits; virtual_sub_node_index++ ) { if( libfdata_tree_node_initialize( &virtual_sub_node, internal_tree_node->tree, node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create virtual sub node: %d.", function, virtual_sub_node_index ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } ( (libfdata_internal_tree_node_t *) virtual_sub_node )->flags |= LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL; if( libcdata_array_set_entry_by_index( virtual_sub_nodes_array, virtual_sub_node_index, (intptr_t *) virtual_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set virtual sub node: %d in virtual sub nodes array.", function, virtual_sub_node_index ); libfdata_tree_node_free( &virtual_sub_node, NULL ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } last_sub_node_index = ( number_of_split_sub_nodes * ( virtual_sub_node_index + 1 ) ) - 1; if( virtual_sub_node_index == ( number_of_splits - 1 ) ) { last_sub_node_index += number_of_sub_nodes % number_of_splits; } if( last_sub_node_index > number_of_sub_nodes ) { last_sub_node_index = number_of_sub_nodes - 1; } if( libcdata_array_resize( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->sub_nodes, last_sub_node_index + 1 - sub_node_index, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize sub nodes array of virtual sub node: %d.", function, virtual_sub_node_index ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } split_sub_node_index = 0; while( sub_node_index <= last_sub_node_index ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } if( split_sub_node_index == 0 ) { if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing sub node: %d.", function, sub_node_index ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } if( ( (libfdata_internal_tree_node_t *) sub_node )->node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid sub node: %d - missing node data range.", function, sub_node_index ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } /* The node data range of a virtual node cannot be set by the set_data_range function */ if( libfdata_tree_node_get_data_range( sub_node, &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->file_index ), &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->offset ), &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->size ), &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->flags ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set virtual sub node data range.", function ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } } if( libcdata_array_set_entry_by_index( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->sub_nodes, split_sub_node_index, (intptr_t *) sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in sub nodes array of virtual sub node: %d.", function, split_sub_node_index, virtual_sub_node_index ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } if( libfdata_tree_node_set_parent_node( sub_node, virtual_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set parent node in sub node: %d.", function, split_sub_node_index ); libcdata_array_free( &virtual_sub_nodes_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, NULL ); result = -1; break; } sub_node_index++; split_sub_node_index++; } virtual_sub_node = NULL; } if( result != 1 ) { /* Set the parent values in the sub nodes back to their orginal value */ for( sub_node_index = 0; sub_node_index < number_of_sub_nodes; sub_node_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); continue; } if( libfdata_tree_node_set_parent_node( sub_node, node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set parent node in sub node: %d.", function, sub_node_index ); continue; } } return( -1 ); } if( libcdata_array_free( &( internal_tree_node->sub_nodes ), NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the sub nodes array.", function ); result = -1; } internal_tree_node->sub_nodes = virtual_sub_nodes_array; return( result ); } /* Determines if the node is deleted * Returns 1 if deleted, 0 if not or -1 on error */ int libfdata_tree_node_is_deleted( libfdata_tree_node_t *node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_is_deleted"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_DELETED ) != 0 ) ) { return( 1 ); } return( 0 ); } /* Marks a node as deleted * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_deleted( libfdata_tree_node_t *node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_deleted"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; /* TODO add deleted branch node support */ if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: invalid node - currently only deleted leaf nodes are supported.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_IS_DELETED; if( libfdata_tree_node_set_calculate_leaf_node_values( node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set calculate leaf node values.", function ); return( -1 ); } return( 1 ); } /* Makes a deleted node of a specific sub node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_deleted_sub_node( libfdata_tree_node_t *node, int sub_node_index, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; static char *function = "libfdata_tree_node_set_deleted_sub_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing sub node: %d.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_set_deleted( sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set deleted in sub node: %d.", function, sub_node_index ); return( -1 ); } return( 1 ); } /* Sets the flag to calculate the leaf node values and propagates this up to its parent node * Returns 1 if the successful or -1 on error */ int libfdata_tree_node_set_calculate_leaf_node_values( libfdata_tree_node_t *node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_calculate_leaf_node_values"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( internal_tree_node->parent_node != NULL ) { if( libfdata_tree_node_set_calculate_leaf_node_values( internal_tree_node->parent_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set calculate leaf node values in parent node.", function ); return( -1 ); } } internal_tree_node->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Reads the leaf node values * Returns 1 if the successful or -1 on error */ int libfdata_tree_node_read_leaf_node_values( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; intptr_t *node_value = NULL; static char *function = "libfdata_tree_node_read_leaf_node_values"; int number_of_deleted_leaf_nodes = 0; int number_of_leaf_nodes = 0; int number_of_sub_nodes = 0; int result = 0; int sub_node_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) { /* Make sure the node data is read before the sub nodes */ if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) { if( libfdata_tree_get_node_value( internal_tree_node->tree, file_io_handle, cache, node, &node_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; } if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) { if( libfdata_tree_read_sub_nodes( internal_tree_node->tree, file_io_handle, cache, node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read sub nodes.", function ); return( -1 ); } } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; } internal_tree_node->number_of_leaf_nodes = 0; internal_tree_node->number_of_deleted_leaf_nodes = 0; if( libcdata_array_get_number_of_entries( internal_tree_node->sub_nodes, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub nodes array.", function ); return( -1 ); } for( sub_node_index = 0; sub_node_index < number_of_sub_nodes; sub_node_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_get_number_of_leaf_nodes( sub_node, file_io_handle, cache, &number_of_leaf_nodes, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of leaf nodes from sub node: %d.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_get_number_of_deleted_leaf_nodes( sub_node, file_io_handle, cache, &number_of_deleted_leaf_nodes, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of deleted leaf nodes from sub node: %d.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_set_first_leaf_node_index( sub_node, internal_tree_node->number_of_leaf_nodes, internal_tree_node->number_of_deleted_leaf_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set first leaf node index in sub node: %d.", function, sub_node_index ); return( -1 ); } if( ( number_of_leaf_nodes == 0 ) && ( number_of_deleted_leaf_nodes == 0 ) ) { /* It is possible to have branch nodes without leaf nodes */ result = libfdata_tree_node_is_leaf( sub_node, file_io_handle, cache, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if sub node: %d is a leaf.", function, sub_node_index ); return( -1 ); } else if( result != 0 ) { result = libfdata_tree_node_is_deleted( sub_node, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if sub node: %d is deleted.", function, sub_node_index ); return( -1 ); } else if( result == 0 ) { internal_tree_node->number_of_leaf_nodes++; } else { internal_tree_node->number_of_deleted_leaf_nodes++; } } } else { internal_tree_node->number_of_leaf_nodes += number_of_leaf_nodes; internal_tree_node->number_of_deleted_leaf_nodes += number_of_deleted_leaf_nodes; } } return( 1 ); } /* Determines if the node is a leaf node * Returns 1 if a leaf node, 0 if not or -1 on error */ int libfdata_tree_node_is_leaf( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; intptr_t *node_value = NULL; static char *function = "libfdata_tree_node_is_leaf"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) { /* Make sure the node data is read before the sub nodes */ if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) { if( libfdata_tree_get_node_value( internal_tree_node->tree, file_io_handle, cache, node, &node_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; } if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) { if( libfdata_tree_read_sub_nodes( internal_tree_node->tree, file_io_handle, cache, node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read sub nodes.", function ); return( -1 ); } } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; } if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) { return( 1 ); } return( 0 ); } /* Makes a leaf node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_leaf( libfdata_tree_node_t *node, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_set_leaf"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - sub nodes range was set.", function ); return( -1 ); } internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_IS_LEAF; if( libfdata_tree_node_set_calculate_leaf_node_values( node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set calculate leaf node values.", function ); return( -1 ); } return( 1 ); } /* Makes a leaf node of a specific sub node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_set_leaf_sub_node( libfdata_tree_node_t *node, int sub_node_index, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; static char *function = "libfdata_tree_node_set_leaf_sub_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing sub node: %d.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_set_leaf( sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set leaf in sub node: %d.", function, sub_node_index ); return( -1 ); } return( 1 ); } /* Retrieves the number of leaf nodes * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_number_of_leaf_nodes( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_get_number_of_leaf_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( number_of_leaf_nodes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of leaf nodes.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_tree_node_read_leaf_node_values( node, file_io_handle, cache, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } *number_of_leaf_nodes = internal_tree_node->number_of_leaf_nodes; return( 1 ); } /* Retrieves a specific leaf node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_leaf_node_by_index( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int leaf_node_index, libfdata_tree_node_t **leaf_node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; static char *function = "libfdata_tree_node_get_leaf_node_by_index"; int first_deleted_leaf_node_index = 0; int first_leaf_node_index = 0; int number_of_leaf_nodes = 0; int number_of_sub_nodes = 0; int result = 0; int sub_node_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( leaf_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid leaf node.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_tree_node_read_leaf_node_values( node, file_io_handle, cache, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } if( libcdata_array_get_number_of_entries( internal_tree_node->sub_nodes, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub nodes array.", function ); return( -1 ); } for( sub_node_index = 0; sub_node_index < number_of_sub_nodes; sub_node_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_get_number_of_leaf_nodes( sub_node, file_io_handle, cache, &number_of_leaf_nodes, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of leaf nodes from sub node: %d.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_get_first_leaf_node_index( sub_node, &first_leaf_node_index, &first_deleted_leaf_node_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first leaf node index from sub node: %d.", function, sub_node_index ); return( -1 ); } if( number_of_leaf_nodes == 0 ) { /* It is possible to have branch nodes without leaf nodes */ result = libfdata_tree_node_is_leaf( sub_node, file_io_handle, cache, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if sub node: %d is a leaf.", function, sub_node_index ); return( -1 ); } else if( result != 0 ) { result = libfdata_tree_node_is_deleted( sub_node, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if sub node: %d is deleted.", function, sub_node_index ); return( -1 ); } else if( result == 0 ) { if( leaf_node_index == first_leaf_node_index ) { *leaf_node = sub_node; break; } } } } else if( ( leaf_node_index >= first_leaf_node_index ) && ( leaf_node_index < ( first_leaf_node_index + number_of_leaf_nodes ) ) ) { /* Note that the first_leaf_node_index is relative for a branch */ if( libfdata_tree_node_get_leaf_node_by_index( sub_node, file_io_handle, cache, leaf_node_index - first_leaf_node_index, leaf_node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node: %d from sub node: %d.", function, leaf_node_index - first_leaf_node_index, sub_node_index ); return( -1 ); } break; } } if( sub_node_index >= number_of_sub_nodes ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sub node index value out of bounds.", function ); return( -1 ); } return( 1 ); } /* Retrieves the number of deleted leaf nodes * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_number_of_deleted_leaf_nodes( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_deleted_leaf_nodes, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; static char *function = "libfdata_tree_node_get_number_of_deleted_leaf_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( number_of_deleted_leaf_nodes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of deleted leaf nodes.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_tree_node_read_leaf_node_values( node, file_io_handle, cache, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } *number_of_deleted_leaf_nodes = internal_tree_node->number_of_deleted_leaf_nodes; return( 1 ); } /* Retrieves a specific deleted leaf node * Returns 1 if successful or -1 on error */ int libfdata_tree_node_get_deleted_leaf_node_by_index( libfdata_tree_node_t *node, intptr_t *file_io_handle, libfdata_cache_t *cache, int deleted_leaf_node_index, libfdata_tree_node_t **deleted_leaf_node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_tree_node_t *internal_tree_node = NULL; libfdata_tree_node_t *sub_node = NULL; static char *function = "libfdata_tree_node_get_deleted_leaf_node_by_index"; int first_deleted_leaf_node_index = 0; int first_leaf_node_index = 0; int number_of_deleted_leaf_nodes = 0; int number_of_sub_nodes = 0; int result = 0; int sub_node_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_tree_node = (libfdata_internal_tree_node_t *) node; if( deleted_leaf_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid deleted leaf node.", function ); return( -1 ); } if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_tree_node_read_leaf_node_values( node, file_io_handle, cache, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value.", function ); return( -1 ); } internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } if( libcdata_array_get_number_of_entries( internal_tree_node->sub_nodes, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from sub nodes array.", function ); return( -1 ); } for( sub_node_index = 0; sub_node_index < number_of_sub_nodes; sub_node_index++ ) { if( libcdata_array_get_entry_by_index( internal_tree_node->sub_nodes, sub_node_index, (intptr_t **) &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from sub nodes array.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_get_number_of_deleted_leaf_nodes( sub_node, file_io_handle, cache, &number_of_deleted_leaf_nodes, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of leaf nodes from sub node: %d.", function, sub_node_index ); return( -1 ); } if( libfdata_tree_node_get_first_leaf_node_index( sub_node, &first_leaf_node_index, &first_deleted_leaf_node_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first leaf node index from sub node: %d.", function, sub_node_index ); return( -1 ); } if( number_of_deleted_leaf_nodes == 0 ) { /* It is possible to have branch nodes without leaf nodes */ result = libfdata_tree_node_is_leaf( sub_node, file_io_handle, cache, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if sub node: %d is a leaf.", function, sub_node_index ); return( -1 ); } else if( result != 0 ) { result = libfdata_tree_node_is_deleted( sub_node, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if sub node: %d is deleted.", function, sub_node_index ); return( -1 ); } else if( result != 0 ) { if( deleted_leaf_node_index == first_deleted_leaf_node_index ) { *deleted_leaf_node = sub_node; break; } } } } else if( ( deleted_leaf_node_index >= first_deleted_leaf_node_index ) && ( deleted_leaf_node_index < ( first_deleted_leaf_node_index + number_of_deleted_leaf_nodes ) ) ) { /* Note that the first_deleted_leaf_node_index is relative for a branch */ if( libfdata_tree_node_get_deleted_leaf_node_by_index( sub_node, file_io_handle, cache, deleted_leaf_node_index - first_deleted_leaf_node_index, deleted_leaf_node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve deleted leaf node: %d from sub node: %d.", function, deleted_leaf_node_index - first_deleted_leaf_node_index, sub_node_index ); return( -1 ); } break; } } if( sub_node_index >= number_of_sub_nodes ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sub node index value out of bounds.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfdata/libfdata_libcnotify.h0000664000175000017500000000266213430101214023725 0ustar00lordyestalordyesta00000000000000/* * The libcnotify header wrapper * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_LIBCNOTIFY_H ) #define _LIBFDATA_LIBCNOTIFY_H #include /* Define HAVE_LOCAL_LIBCNOTIFY for local use of libcnotify */ #if defined( HAVE_LOCAL_LIBCNOTIFY ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCNOTIFY_DLL_IMPORT * before including libcnotify.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCNOTIFY_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */ #endif /* !defined( _LIBFDATA_LIBCNOTIFY_H ) */ libfsapfs-20190210/libfdata/libfdata_notify.c0000664000175000017500000000530413430101214023062 0ustar00lordyestalordyesta00000000000000/* * Notification functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_STDLIB_H ) || defined( WINAPI ) #include #endif #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_notify.h" #if !defined( HAVE_LOCAL_LIBFDATA ) /* Sets the verbose notification */ void libfdata_notify_set_verbose( int verbose ) { libcnotify_verbose_set( verbose ); } /* Sets the notification stream * Returns 1 if successful or -1 on error */ int libfdata_notify_set_stream( FILE *stream, libcerror_error_t **error ) { static char *function = "libfdata_notify_set_stream"; if( libcnotify_stream_set( stream, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set stream.", function ); return( -1 ); } return( 1 ); } /* Opens the notification stream using a filename * The stream is opened in append mode * Returns 1 if successful or -1 on error */ int libfdata_notify_stream_open( const char *filename, libcerror_error_t **error ) { static char *function = "libfdata_notify_stream_open"; if( libcnotify_stream_open( filename, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open stream.", function ); return( -1 ); } return( 1 ); } /* Closes the notification stream if opened using a filename * Returns 0 if successful or -1 on error */ int libfdata_notify_stream_close( libcerror_error_t **error ) { static char *function = "libfdata_notify_stream_close"; if( libcnotify_stream_close( error ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_OPEN_FAILED, "%s: unable to open stream.", function ); return( -1 ); } return( 0 ); } #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ libfsapfs-20190210/libfdata/libfdata_btree_node.h0000664000175000017500000001672213430101214023673 0ustar00lordyestalordyesta00000000000000/* * The balanced tree node functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_BTREE_NODE_H ) #define _LIBFDATA_INTERNAL_BTREE_NODE_H #include #include #include "libfdata_btree_range.h" #include "libfdata_extern.h" #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_btree_node libfdata_internal_btree_node_t; struct libfdata_internal_btree_node { /* The (node) level */ int level; /* The sub node (data) ranges array */ libcdata_array_t *sub_node_ranges_array; /* The number of leaf values in the branch */ int branch_number_of_leaf_values; /* The leaf value (data) ranges array */ libcdata_array_t *leaf_value_ranges_array; /* The flags */ uint8_t flags; }; int libfdata_btree_node_initialize( libfdata_btree_node_t **node, int level, libcerror_error_t **error ); int libfdata_btree_node_free( libfdata_btree_node_t **node, libcerror_error_t **error ); /* Node functions */ LIBFDATA_EXTERN \ int libfdata_btree_node_get_level( libfdata_btree_node_t *node, int *level, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_is_branch( libfdata_btree_node_t *node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_is_leaf( libfdata_btree_node_t *node, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_is_root( libfdata_btree_node_t *node, libcerror_error_t **error ); /* Sub node data range functions */ LIBFDATA_EXTERN \ int libfdata_btree_node_get_number_of_sub_nodes( libfdata_btree_node_t *node, int *number_of_sub_nodes, libcerror_error_t **error ); int libfdata_btree_node_get_sub_node_data_range_by_index( libfdata_btree_node_t *node, int sub_node_index, libfdata_btree_range_t **sub_node_data_range, libcerror_error_t **error ); int libfdata_btree_node_get_sub_node_data_range_by_mapped_index( libfdata_btree_node_t *node, int mapped_index, libfdata_btree_range_t **sub_node_data_range, libcerror_error_t **error ); int libfdata_btree_node_get_sub_node_data_range_by_key( libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *sub_node_index, libfdata_btree_range_t **sub_node_data_range, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_get_sub_node_by_index( libfdata_btree_node_t *node, int sub_node_index, int *sub_node_data_file_index, off64_t *sub_node_data_offset, size64_t *sub_node_data_size, uint32_t *sub_node_data_flags, intptr_t **key_value, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_set_sub_node_by_index( libfdata_btree_node_t *node, int sub_node_index, int sub_node_data_file_index, off64_t sub_node_data_offset, size64_t sub_node_data_size, uint32_t sub_node_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_append_sub_node( libfdata_btree_node_t *node, int *sub_node_index, int sub_node_data_file_index, off64_t sub_node_data_offset, size64_t sub_node_data_size, uint32_t sub_node_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ); /* Branch leaf values functions */ int libfdata_btree_node_get_number_of_leaf_values_in_branch( libfdata_btree_node_t *node, int *number_of_leaf_values, libcerror_error_t **error ); /* Leaf value data range functions */ LIBFDATA_EXTERN \ int libfdata_btree_node_get_number_of_leaf_values( libfdata_btree_node_t *node, int *number_of_leaf_values, libcerror_error_t **error ); int libfdata_btree_node_get_leaf_value_data_range_by_index( libfdata_btree_node_t *node, int leaf_value_index, libfdata_btree_range_t **leaf_value_data_range, libcerror_error_t **error ); int libfdata_btree_node_get_leaf_value_data_range_by_mapped_index( libfdata_btree_node_t *node, int mapped_index, libfdata_btree_range_t **leaf_value_data_range, libcerror_error_t **error ); int libfdata_btree_node_get_leaf_value_data_range_by_key( libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), libfdata_btree_range_t **leaf_value_data_range, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_get_leaf_value_by_index( libfdata_btree_node_t *node, int leaf_value_index, int *leaf_value_data_file_index, off64_t *leaf_value_data_offset, size64_t *leaf_value_data_size, uint32_t *leaf_value_data_flags, intptr_t **key_value, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_get_leaf_value_by_key( libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *leaf_value_data_file_index, off64_t *leaf_value_data_offset, size64_t *leaf_value_data_size, uint32_t *leaf_value_data_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_set_leaf_value_by_index( libfdata_btree_node_t *node, int leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_btree_node_append_leaf_value( libfdata_btree_node_t *node, int *leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, intptr_t *key_value, int (*free_key_value)( intptr_t **key_value, libcerror_error_t **error ), uint8_t key_value_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_BTREE_NODE_H ) */ libfsapfs-20190210/libfdata/libfdata_list_element.h0000664000175000017500000000761713430101214024254 0ustar00lordyestalordyesta00000000000000/* * The list element functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_LIST_ELEMENT_H ) #define _LIBFDATA_INTERNAL_LIST_ELEMENT_H #include #include #include "libfdata_extern.h" #include "libfdata_libcerror.h" #include "libfdata_libfcache.h" #include "libfdata_range.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libfdata_internal_list_element libfdata_internal_list_element_t; struct libfdata_internal_list_element { /* The list reference */ libfdata_list_t *list; /* The (list) element index */ int element_index; /* The (element) data range */ libfdata_range_t *data_range; /* The (element) mapped size */ size64_t mapped_size; /* The timestamp */ int64_t timestamp; /* The flags */ uint8_t flags; }; int libfdata_list_element_initialize( libfdata_list_element_t **element, libfdata_list_t *list, int element_index, libcerror_error_t **error ); int libfdata_list_element_free( libfdata_list_element_t **element, libcerror_error_t **error ); int libfdata_list_element_clone( libfdata_list_element_t **destination_element, libfdata_list_element_t *source_element, libcerror_error_t **error ); int libfdata_list_element_get_element_index( libfdata_list_element_t *element, int *element_index, libcerror_error_t **error ); int libfdata_list_element_set_element_index( libfdata_list_element_t *element, int element_index, libcerror_error_t **error ); int libfdata_list_element_get_timestamp( libfdata_list_element_t *element, int64_t *timestamp, libcerror_error_t **error ); /* Data range functions */ int libfdata_list_element_get_data_range( libfdata_list_element_t *element, int *file_index, off64_t *offset, size64_t *size, uint32_t *flags, libcerror_error_t **error ); int libfdata_list_element_set_data_range( libfdata_list_element_t *element, int file_index, off64_t offset, size64_t size, uint32_t flags, libcerror_error_t **error ); /* Mapped range functions */ LIBFDATA_EXTERN \ int libfdata_list_element_get_mapped_size( libfdata_list_element_t *element, size64_t *mapped_size, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_element_set_mapped_size( libfdata_list_element_t *element, size64_t mapped_size, libcerror_error_t **error ); /* Element value functions */ LIBFDATA_EXTERN \ int libfdata_list_element_get_element_value( libfdata_list_element_t *element, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t **element_value, uint8_t read_flags, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_list_element_set_element_value( libfdata_list_element_t *element, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t *element_value, int (*free_element_value)( intptr_t **element_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_LIST_ELEMENT_H ) */ libfsapfs-20190210/libfdata/libfdata_inline.h0000664000175000017500000000211713430101214023034 0ustar00lordyestalordyesta00000000000000/* * The internal inline definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_INLINE_H ) #define _LIBFDATA_INTERNAL_INLINE_H #include #if defined( _MSC_VER ) #define LIBFDATA_INLINE _inline #elif defined( __BORLANDC__ ) #define LIBFDATA_INLINE /* inline */ #else #define LIBFDATA_INLINE inline #endif #endif libfsapfs-20190210/libfdata/libfdata_btree.c0000664000175000017500000022427313430101214022663 0ustar00lordyestalordyesta00000000000000/* * The balanced tree functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_btree.h" #include "libfdata_btree_node.h" #include "libfdata_btree_range.h" #include "libfdata_definitions.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_libfcache.h" #include "libfdata_types.h" #include "libfdata_unused.h" /* Creates a tree * Make sure the value tree is referencing, is set to NULL * * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the tree * takes over management of the data handle and the data handle is freed when * no longer needed * * Returns 1 if successful or -1 on error */ int libfdata_btree_initialize( libfdata_btree_t **tree, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*read_node)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_btree_node_t *node, int node_data_file_index, off64_t node_data_offset, size64_t node_data_size, uint32_t node_data_flags, intptr_t *key_value, uint8_t read_flags, libcerror_error_t **error ), int (*read_leaf_value)( intptr_t *data_handle, intptr_t *file_io_handle, libfdata_btree_t *tree, libfdata_cache_t *cache, int leaf_value_index, int leaf_value_data_file_index, off64_t leaf_value_data_offset, size64_t leaf_value_data_size, uint32_t leaf_value_data_flags, intptr_t *key_value, uint8_t read_flags, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_btree_t *internal_tree = NULL; static char *function = "libfdata_btree_initialize"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( *tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid tree value already set.", function ); return( -1 ); } internal_tree = memory_allocate_structure( libfdata_internal_btree_t ); if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create tree.", function ); goto on_error; } if( memory_set( internal_tree, 0, sizeof( libfdata_internal_btree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear tree.", function ); goto on_error; } if( libfdata_btree_range_initialize( &( internal_tree->root_node_data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create root node data range.", function ); goto on_error; } if( libfcache_date_time_get_timestamp( &( internal_tree->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); goto on_error; } internal_tree->flags |= flags; internal_tree->calculate_node_cache_entry_index = &libfdata_btree_calculate_node_cache_entry_index; internal_tree->calculate_leaf_value_cache_entry_index = &libfdata_btree_calculate_leaf_value_cache_entry_index; internal_tree->data_handle = data_handle; internal_tree->free_data_handle = free_data_handle; internal_tree->clone_data_handle = clone_data_handle; internal_tree->read_node = read_node; internal_tree->read_leaf_value = read_leaf_value; *tree = (libfdata_btree_t *) internal_tree; return( 1 ); on_error: if( internal_tree != NULL ) { if( internal_tree->root_node_data_range != NULL ) { libfdata_btree_range_free( &( internal_tree->root_node_data_range ), NULL ); } memory_free( internal_tree ); } return( -1 ); } /* Frees a tree * Returns 1 if successful or -1 on error */ int libfdata_btree_free( libfdata_btree_t **tree, libcerror_error_t **error ) { libfdata_internal_btree_t *internal_tree = NULL; static char *function = "libfdata_btree_free"; int result = 1; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( *tree != NULL ) { internal_tree = (libfdata_internal_btree_t *) *tree; *tree = NULL; if( libfdata_btree_range_free( &( internal_tree->root_node_data_range ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free root node data range.", function ); result = -1; } if( ( internal_tree->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) { if( internal_tree->data_handle != NULL ) { if( internal_tree->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid list - missing free data handle function.", function ); result = -1; } else if( internal_tree->free_data_handle( &( internal_tree->data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data handle.", function ); result = -1; } } } memory_free( internal_tree ); } return( result ); } /* Clones (duplicates) the tree * Returns 1 if successful or -1 on error */ int libfdata_btree_clone( libfdata_btree_t **destination_tree, libfdata_btree_t *source_tree, libcerror_error_t **error ) { libfdata_internal_btree_t *internal_destination_tree = NULL; libfdata_internal_btree_t *internal_source_tree = NULL; intptr_t *destination_data_handle = NULL; static char *function = "libfdata_btree_clone"; if( destination_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination tree.", function ); return( -1 ); } if( *destination_tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination tree value already set.", function ); return( -1 ); } if( source_tree == NULL ) { *destination_tree = NULL; return( 1 ); } internal_source_tree = (libfdata_internal_btree_t *) source_tree; if( internal_source_tree->data_handle != NULL ) { if( internal_source_tree->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source tree - missing free data handle function.", function ); goto on_error; } if( internal_source_tree->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source tree - missing clone data handle function.", function ); goto on_error; } if( internal_source_tree->clone_data_handle( &destination_data_handle, internal_source_tree->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to clone data handle.", function ); goto on_error; } } internal_destination_tree = memory_allocate_structure( libfdata_internal_btree_t ); if( internal_destination_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination tree.", function ); goto on_error; } if( memory_set( internal_destination_tree, 0, sizeof( libfdata_internal_btree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination tree.", function ); memory_free( internal_destination_tree ); return( -1 ); } if( internal_source_tree->data_handle != NULL ) { if( internal_source_tree->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source tree - missing free data handle function.", function ); goto on_error; } if( internal_source_tree->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source tree - missing clone data handle function.", function ); goto on_error; } if( internal_source_tree->clone_data_handle( &( internal_destination_tree->data_handle ), internal_source_tree->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to clone data handle.", function ); goto on_error; } } if( libfdata_btree_range_clone( &( internal_destination_tree->root_node_data_range ), internal_source_tree->root_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination root node data range.", function ); goto on_error; } if( libfcache_date_time_get_timestamp( &( internal_destination_tree->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve destination timestamp.", function ); goto on_error; } *destination_tree = (libfdata_btree_t *) internal_destination_tree; return( 1 ); on_error: if( internal_destination_tree != NULL ) { if( internal_destination_tree->root_node_data_range != NULL ) { libfdata_btree_range_free( &( internal_destination_tree->root_node_data_range ), NULL ); } if( ( internal_destination_tree->data_handle != NULL ) && ( internal_source_tree->free_data_handle != NULL ) ) { internal_source_tree->free_data_handle( &( internal_destination_tree->data_handle ), NULL ); } memory_free( internal_destination_tree ); } return( -1 ); } /* Cache entry functions */ /* Calculated the node cache entry index * Returns 1 if successful or -1 on error */ int libfdata_btree_calculate_node_cache_entry_index( libfdata_btree_t *tree, libfdata_cache_t *cache, int level LIBFDATA_ATTRIBUTE_UNUSED, int node_data_file_index LIBFDATA_ATTRIBUTE_UNUSED, off64_t node_data_offset, size64_t node_data_size LIBFDATA_ATTRIBUTE_UNUSED, uint32_t node_data_flags LIBFDATA_ATTRIBUTE_UNUSED, int *cache_entry_index, libcerror_error_t **error ) { static char *function = "libfdata_btree_calculate_node_cache_entry_index"; int number_of_cache_entries = 0; LIBFDATA_UNREFERENCED_PARAMETER( level ); LIBFDATA_UNREFERENCED_PARAMETER( node_data_file_index ); LIBFDATA_UNREFERENCED_PARAMETER( node_data_size ); LIBFDATA_UNREFERENCED_PARAMETER( node_data_flags ); if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( cache_entry_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache entry index.", function ); return( -1 ); } if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } /* TODO improve cache entry index calculation */ if( number_of_cache_entries <= 4 ) { *cache_entry_index = node_data_offset % number_of_cache_entries; } else if( level == 0 ) { *cache_entry_index = 0; } else { *cache_entry_index = 1; /* Use 3/4 of the cache for the nodes */ number_of_cache_entries = ( ( number_of_cache_entries - 1 ) / 4 ) * 3; *cache_entry_index += node_data_offset % number_of_cache_entries; } return( 1 ); } /* Calculated the leaf value cache entry index * Returns 1 if successful or -1 on error */ int libfdata_btree_calculate_leaf_value_cache_entry_index( libfdata_btree_t *tree, libfdata_cache_t *cache, int leaf_value_index LIBFDATA_ATTRIBUTE_UNUSED, int leaf_value_data_file_index LIBFDATA_ATTRIBUTE_UNUSED, off64_t leaf_value_data_offset, size64_t leaf_value_data_size LIBFDATA_ATTRIBUTE_UNUSED, uint32_t leaf_value_data_flags LIBFDATA_ATTRIBUTE_UNUSED, int *cache_entry_index, libcerror_error_t **error ) { static char *function = "libfdata_btree_calculate_leaf_value_cache_entry_index"; int number_of_cache_entries = 0; LIBFDATA_UNREFERENCED_PARAMETER( leaf_value_index ); LIBFDATA_UNREFERENCED_PARAMETER( leaf_value_data_file_index ); LIBFDATA_UNREFERENCED_PARAMETER( leaf_value_data_size ); LIBFDATA_UNREFERENCED_PARAMETER( leaf_value_data_flags ); if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( cache_entry_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid cache entry index.", function ); return( -1 ); } if( libfcache_cache_get_number_of_entries( (libfcache_cache_t *) cache, &number_of_cache_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of cache entries.", function ); return( -1 ); } if( number_of_cache_entries <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of cache entries value out of bounds.", function ); return( -1 ); } /* TODO improve cache entry index calculation */ if( number_of_cache_entries <= 4 ) { *cache_entry_index = leaf_value_data_offset % number_of_cache_entries; } else { /* Use 1/4 of the cache for the leaf values */ *cache_entry_index = ( ( number_of_cache_entries - 1 ) / 4 ) * 3; number_of_cache_entries = ( number_of_cache_entries - 1 ) / 4; *cache_entry_index += leaf_value_data_offset % number_of_cache_entries; } return( 1 ); } /* Root node functions */ /* Retrieves the root node * Returns 1 if successful or -1 on error */ int libfdata_btree_get_root_node( libfdata_btree_t *tree, int *node_data_file_index, off64_t *node_data_offset, size64_t *node_data_size, uint32_t *node_data_flags, libcerror_error_t **error ) { libfdata_internal_btree_t *internal_tree = NULL; static char *function = "libfdata_btree_get_root_node"; intptr_t *key_value = NULL; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_btree_t *) tree; if( libfdata_btree_range_get( internal_tree->root_node_data_range, node_data_file_index, node_data_offset, node_data_size, node_data_flags, &key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve root node data range.", function ); return( -1 ); } return( 1 ); } /* Sets the root node * Returns 1 if successful or -1 on error */ int libfdata_btree_set_root_node( libfdata_btree_t *tree, int node_data_file_index, off64_t node_data_offset, size64_t node_data_size, uint32_t node_data_flags, libcerror_error_t **error ) { libfdata_internal_btree_t *internal_tree = NULL; intptr_t *key_value = NULL; static char *function = "libfdata_btree_set_root_node"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_btree_t *) tree; if( node_data_file_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid node data file index less than zero.", function ); return( -1 ); } if( node_data_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid node data offset value less than zero.", function ); return( -1 ); } if( node_data_size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid node data size value exceeds maximum.", function ); return( -1 ); } if( libfdata_btree_range_set( internal_tree->root_node_data_range, node_data_file_index, node_data_offset, node_data_size, node_data_flags, key_value, NULL, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set root node data range.", function ); return( -1 ); } if( libfcache_date_time_get_timestamp( &( internal_tree->timestamp ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache timestamp.", function ); return( -1 ); } return( 1 ); } /* Leaf value functions */ /* Reads the leaf value identified by the data range * Returns 1 if successful or -1 on error */ int libfdata_btree_read_leaf_value( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *leaf_value_data_range, intptr_t **leaf_value, uint8_t read_flags, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; intptr_t *key_value = NULL; static char *function = "libfdata_btree_read_leaf_value"; size64_t leaf_value_data_size = 0; off64_t cache_value_offset = 0; off64_t leaf_value_data_offset = 0; int64_t cache_value_timestamp = 0; uint32_t leaf_value_data_flags = 0; int cache_entry_index = -1; int cache_value_file_index = -1; int leaf_value_data_file_index = -1; int leaf_value_index = -1; int result = 0; if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( internal_tree->read_leaf_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing read leaf value function.", function ); return( -1 ); } if( leaf_value_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree leaf value data range.", function ); return( -1 ); } leaf_value_index = leaf_value_data_range->mapped_first_leaf_value_index; if( libfdata_btree_range_get( leaf_value_data_range, &leaf_value_data_file_index, &leaf_value_data_offset, &leaf_value_data_size, &leaf_value_data_flags, &key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range values.", function ); return( -1 ); } if( ( read_flags & LIBFDATA_READ_FLAG_IGNORE_CACHE ) == 0 ) { if( internal_tree->calculate_leaf_value_cache_entry_index( (libfdata_btree_t *) internal_tree, cache, leaf_value_index, leaf_value_data_file_index, leaf_value_data_offset, leaf_value_data_size, leaf_value_data_flags, &cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate cache entry index.", function ); return( -1 ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( leaf_value_data_file_index == cache_value_file_index ) && ( leaf_value_data_offset == cache_value_offset ) && ( internal_tree->timestamp == cache_value_timestamp ) ) { result = 1; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( result == 0 ) { libcnotify_printf( "%s: cache: 0x%08" PRIjx " miss (entry: %d, want: %" PRIi64 ", got: %" PRIi64 ")\n", function, (intptr_t) cache, cache_entry_index, leaf_value_data_offset, cache_value_offset ); } else { libcnotify_printf( "%s: cache: 0x%08" PRIjx " hit (entry: %d)\n", function, (intptr_t) cache, cache_entry_index ); } } #endif } if( result == 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading leaf value at offset: %" PRIi64 " (0x%08" PRIx64 ") of size: %" PRIu64 "\n", function, leaf_value_data_offset, leaf_value_data_offset, leaf_value_data_size ); } #endif if( internal_tree->read_leaf_value( internal_tree->data_handle, file_io_handle, (libfdata_btree_t *) internal_tree, cache, leaf_value_index, leaf_value_data_file_index, leaf_value_data_offset, leaf_value_data_size, leaf_value_data_flags, key_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read leaf value at offset: %" PRIi64 ".", function, leaf_value_data_offset ); return( -1 ); } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); return( -1 ); } if( cache_value != NULL ) { if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); return( -1 ); } } if( ( leaf_value_data_file_index != cache_value_file_index ) || ( leaf_value_data_offset != cache_value_offset ) || ( internal_tree->timestamp != cache_value_timestamp ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing cache value.", function ); return( -1 ); } } if( libfcache_cache_value_get_value( cache_value, leaf_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value.", function ); return( -1 ); } return( 1 ); } /* Reads the node identified by the data range * Returns 1 if successful or -1 on error */ int libfdata_btree_read_node( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int level, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ) { libfcache_cache_value_t *cache_value = NULL; intptr_t *key_value = NULL; static char *function = "libfdata_btree_read_node"; size64_t node_data_size = 0; off64_t cache_value_offset = 0; off64_t node_data_offset = 0; int64_t cache_value_timestamp = 0; uint32_t node_data_flags = 0; int cache_entry_index = -1; int cache_value_file_index = -1; int node_data_file_index = -1; int result = 0; if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( internal_tree->read_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing read node function.", function ); return( -1 ); } if( node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree node data range.", function ); return( -1 ); } if( level < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid level value out of bounds.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } *node = NULL; if( libfdata_btree_range_get( node_data_range, &node_data_file_index, &node_data_offset, &node_data_size, &node_data_flags, &key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node data range values.", function ); goto on_error; } if( ( read_flags & LIBFDATA_READ_FLAG_IGNORE_CACHE ) == 0 ) { if( internal_tree->calculate_node_cache_entry_index( (libfdata_btree_t *) internal_tree, cache, level, node_data_file_index, node_data_offset, node_data_size, node_data_flags, &cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate cache entry index.", function ); goto on_error; } if( libfcache_cache_get_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, &cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache entry: %d from cache.", function, cache_entry_index ); goto on_error; } if( cache_value != NULL ) { if( libfcache_cache_value_get_identifier( cache_value, &cache_value_file_index, &cache_value_offset, &cache_value_timestamp, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve cache value identifier.", function ); goto on_error; } } if( ( node_data_file_index == cache_value_file_index ) && ( node_data_offset == cache_value_offset ) && ( internal_tree->timestamp == cache_value_timestamp ) ) { result = 1; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( result == 0 ) { libcnotify_printf( "%s: cache: 0x%08" PRIjx " miss (entry: %d, want: %" PRIi64 ", got: %" PRIi64 ")\n", function, (intptr_t) cache, cache_entry_index, node_data_offset, cache_value_offset ); } else { libcnotify_printf( "%s: cache: 0x%08" PRIjx " hit (entry: %d)\n", function, (intptr_t) cache, cache_entry_index ); } } #endif } if( result == 0 ) { #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: reading node at offset: %" PRIi64 " (0x%08" PRIx64 ") of size: %" PRIu64 "\n", function, node_data_offset, node_data_offset, node_data_size ); } #endif if( libfdata_btree_node_initialize( node, level, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create node at level: %d.", function, level ); goto on_error; } if( internal_tree->read_node( internal_tree->data_handle, file_io_handle, *node, node_data_file_index, node_data_offset, node_data_size, node_data_flags, key_value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read node at offset: %" PRIi64 ".", function, node_data_offset ); goto on_error; } if( ( read_flags & LIBFDATA_READ_FLAG_NO_CACHE ) == 0 ) { if( internal_tree->calculate_node_cache_entry_index( (libfdata_btree_t *) internal_tree, cache, level, node_data_file_index, node_data_offset, node_data_size, node_data_flags, &cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate cache entry index.", function ); goto on_error; } if( libfcache_cache_set_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, node_data_file_index, node_data_offset, internal_tree->timestamp, (intptr_t *) *node, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set node in cache entry: %d.", function, cache_entry_index ); goto on_error; } } } else { if( libfcache_cache_value_get_value( cache_value, (intptr_t **) node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node value from cache.", function ); *node = NULL; goto on_error; } if( ( read_flags & LIBFDATA_READ_FLAG_NO_CACHE ) != 0 ) { /* Remove the node from the cache */ if( libfcache_cache_value_clear( cache_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to clear cache entry.", function ); *node = NULL; goto on_error; } } } return( 1 ); on_error: if( *node != NULL ) { libfdata_btree_node_free( node, NULL ); } return( -1 ); } /* Reads the sub tree * Returns 1 if successful or -1 on error */ int libfdata_btree_read_sub_tree( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int level, int mapped_first_leaf_value_index, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_range_t *leaf_value_data_range = NULL; libfdata_btree_range_t *sub_node_data_range = NULL; libfdata_btree_node_t *sub_node = NULL; intptr_t *key_value = NULL; static char *function = "libfdata_btree_read_sub_tree"; off64_t node_data_offset = 0; size64_t node_data_size = 0; uint32_t node_data_flags = 0; int branch_number_of_leaf_values = 0; int cache_entry_index = -1; int leaf_value_index = 0; int node_data_file_index = -1; int number_of_leaf_values = 0; int number_of_sub_nodes = 0; int result = 0; int sub_node_index = 0; if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( level < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid level value out of bounds.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); return( -1 ); } /* Note that the node data range can be cached out later in the function. */ if( libfdata_btree_range_get( node_data_range, &node_data_file_index, &node_data_offset, &node_data_size, &node_data_flags, &key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve data range from tree node.", function ); goto on_error; } /* Make sure to not have the node cached here to prevent it from * being freed during recursing the sub tree. */ if( libfdata_btree_read_node( internal_tree, file_io_handle, cache, node_data_range, level, node, read_flags | LIBFDATA_READ_FLAG_NO_CACHE, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read node.", function ); goto on_error; } if( *node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); goto on_error; } if( ( ( (libfdata_internal_btree_node_t *) *node )->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { result = libfdata_btree_node_is_leaf( *node, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if node is a leaf node.", function, sub_node_index ); goto on_error; } else if( result != 0 ) { if( libfdata_btree_node_get_number_of_leaf_values( *node, &number_of_leaf_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of leaf values.", function ); goto on_error; } for( leaf_value_index = 0; leaf_value_index < number_of_leaf_values; leaf_value_index++ ) { if( libfdata_btree_node_get_leaf_value_data_range_by_index( *node, leaf_value_index, &leaf_value_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value: %d data range.", function, leaf_value_index ); goto on_error; } if( leaf_value_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing leaf value: %d data range.", function, leaf_value_index ); goto on_error; } leaf_value_data_range->mapped_first_leaf_value_index = mapped_first_leaf_value_index; leaf_value_data_range->mapped_last_leaf_value_index = -1; leaf_value_data_range->mapped_number_of_leaf_values = 1; mapped_first_leaf_value_index++; } branch_number_of_leaf_values = number_of_leaf_values; /* TODO*/ level++; } else { if( libfdata_btree_node_get_number_of_sub_nodes( *node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); goto on_error; } level++; for( sub_node_index = 0; sub_node_index < number_of_sub_nodes; sub_node_index++ ) { if( libfdata_btree_node_get_sub_node_data_range_by_index( *node, sub_node_index, &sub_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node: %d data range.", function, sub_node_index ); goto on_error; } if( sub_node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing sub node: %d data range.", function, sub_node_index ); goto on_error; } if( libfdata_btree_read_sub_tree( internal_tree, file_io_handle, cache, sub_node_data_range, level, mapped_first_leaf_value_index, &sub_node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read sub node: %d sub tree.", function, sub_node_index ); goto on_error; } if( libfdata_btree_node_get_number_of_leaf_values_in_branch( sub_node, &number_of_leaf_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of leaf values in branch.", function ); goto on_error; } sub_node_data_range->mapped_first_leaf_value_index = mapped_first_leaf_value_index; mapped_first_leaf_value_index += number_of_leaf_values; sub_node_data_range->mapped_last_leaf_value_index = mapped_first_leaf_value_index - 1; sub_node_data_range->mapped_number_of_leaf_values = number_of_leaf_values; branch_number_of_leaf_values += number_of_leaf_values; } } ( (libfdata_internal_btree_node_t *) *node )->branch_number_of_leaf_values = branch_number_of_leaf_values; ( (libfdata_internal_btree_node_t *) *node )->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } if( internal_tree->calculate_node_cache_entry_index( (libfdata_btree_t *) internal_tree, cache, level, node_data_file_index, node_data_offset, node_data_size, node_data_flags, &cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate cache entry index.", function ); goto on_error; } if( libfcache_cache_set_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, node_data_file_index, node_data_offset, internal_tree->timestamp, (intptr_t *) *node, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_btree_node_free, LIBFCACHE_CACHE_VALUE_FLAG_MANAGED, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set node in cache entry: %d.", function, cache_entry_index ); goto on_error; } return( 1 ); on_error: if( *node != NULL ) { libfdata_btree_node_free( node, NULL ); } return( -1 ); } /* Retrieves a leaf node the contains a specific leaf value index * Returns 1 if successful or -1 on error */ int libfdata_btree_get_leaf_node_by_index( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int level, int leaf_value_index, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_range_t *sub_node_data_range = NULL; static char *function = "libfdata_btree_get_leaf_node_by_index"; int result = 0; if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node data range.", function ); return( -1 ); } if( level < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid level value out of bounds.", function ); return( -1 ); } if( leaf_value_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid leaf value index value out of bounds.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); return( -1 ); } if( libfdata_btree_read_sub_tree( internal_tree, file_io_handle, cache, node_data_range, level, node_data_range->mapped_first_leaf_value_index, node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read node sub tree.", function ); return( -1 ); } if( *node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); return( -1 ); } result = libfdata_btree_node_is_leaf( *node, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if node is a leaf node.", function ); return( -1 ); } else if( result != 0 ) { return( 1 ); } if( libfdata_btree_node_get_sub_node_data_range_by_mapped_index( *node, leaf_value_index, &sub_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node data range for leaf value: %d..", function, leaf_value_index ); return( -1 ); } *node = NULL; if( libfdata_btree_get_leaf_node_by_index( internal_tree, file_io_handle, cache, sub_node_data_range, level + 1, leaf_value_index, node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node for leaf value: %d.", function, leaf_value_index ); return( -1 ); } return( 1 ); } /* Retrieves a leaf node for a specific key value * * Uses the key_value_compare_function to determine the similarity of the key values * The key_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_LESS_EQUAL, LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER, * LIBFDATA_COMPARE_GREATER_EQUAL if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libfdata_btree_get_leaf_node_by_key( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int maximum_node_level, int current_node_level, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *node_index, libfdata_btree_node_t **node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_range_t *sub_node_data_range = NULL; static char *function = "libfdata_btree_get_leaf_node_by_key"; int result = 0; int sub_node_index = 0; if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node data range.", function ); return( -1 ); } if( maximum_node_level < -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid maximum node level value out of bounds.", function ); return( -1 ); } if( current_node_level < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid current node level value out of bounds.", function ); return( -1 ); } if( node_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node index.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); return( -1 ); } if( libfdata_btree_read_sub_tree( internal_tree, file_io_handle, cache, node_data_range, current_node_level, node_data_range->mapped_first_leaf_value_index, node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read node sub tree.", function ); return( -1 ); } if( *node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); return( -1 ); } result = libfdata_btree_node_is_leaf( *node, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if node is a leaf node.", function ); return( -1 ); } else if( result != 0 ) { return( 1 ); } if( ( maximum_node_level != LIBFDATA_BTREE_NODE_LEVEL_UNLIMITED ) && ( current_node_level >= maximum_node_level ) ) { return( 1 ); } result = libfdata_btree_node_get_sub_node_data_range_by_key( *node, key_value, key_value_compare_function, &sub_node_index, &sub_node_data_range, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node data range by key.", function ); return( -1 ); } else if( result == 0 ) { return( 0 ); } *node_index = sub_node_index; *node = NULL; result = libfdata_btree_get_leaf_node_by_key( internal_tree, file_io_handle, cache, sub_node_data_range, maximum_node_level, current_node_level + 1, key_value, key_value_compare_function, node_index, node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node by key.", function ); return( -1 ); } return( result ); } /* Retrieves the next leaf node for a specific key value * * This function will try to determine the next node based * on the node_index and node values. * * Uses the key_value_compare_function to determine the similarity of the key values * The key_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_LESS_EQUAL, LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER, * LIBFDATA_COMPARE_GREATER_EQUAL if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libfdata_btree_get_next_leaf_node_by_key( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int node_index, libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *next_node_index, libfdata_btree_node_t **next_node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_node_t *branch_node = NULL; libfdata_btree_range_t *sub_node_data_range = NULL; static char *function = "libfdata_btree_get_next_leaf_node_by_key"; int branch_node_index = 0; int branch_node_level = 0; int node_level = 0; int number_of_sub_nodes = 0; int result = 0; if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( node_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node index value out of bounds.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); return( -1 ); } if( libfdata_btree_node_get_level( node, &node_level, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node level.", function ); return( -1 ); } if( node_level == 0 ) { return( 0 ); } branch_node_level = node_level; while( branch_node_level > 0 ) { branch_node_level--; result = libfdata_btree_get_leaf_node_by_key( internal_tree, file_io_handle, cache, node_data_range, branch_node_level, 0, key_value, key_value_compare_function, &branch_node_index, &branch_node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve branch node at level: %d.", function, branch_node_level ); return( -1 ); } else if( result == 0 ) { return( 0 ); } if( libfdata_btree_node_get_number_of_sub_nodes( branch_node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( ( node_index < 0 ) || ( node_index >= number_of_sub_nodes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node index value out of bounds.", function ); return( -1 ); } node_index++; if( node_index < number_of_sub_nodes ) { if( libfdata_btree_node_get_sub_node_data_range_by_index( branch_node, node_index, &sub_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next sub node: %d data range.", function, node_index ); return( -1 ); } result = libfdata_btree_get_leaf_node_by_key( internal_tree, file_io_handle, cache, sub_node_data_range, LIBFDATA_BTREE_NODE_LEVEL_UNLIMITED, branch_node_level + 1, key_value, key_value_compare_function, next_node_index, next_node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve branch node at level: %d.", function, branch_node_level ); return( -1 ); } return( result ); } /* If no next leaf node is available try the next branch */ node_index = branch_node_index; } return( 0 ); } /* Retrieves the previous leaf node for a specific key value * * This function will try to determine the previous node based * on the node_index and node values. * * Uses the key_value_compare_function to determine the similarity of the key values * The key_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_LESS_EQUAL, LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER, * LIBFDATA_COMPARE_GREATER_EQUAL if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libfdata_btree_get_previous_leaf_node_by_key( libfdata_internal_btree_t *internal_tree, intptr_t *file_io_handle, libfdata_cache_t *cache, libfdata_btree_range_t *node_data_range, int node_index, libfdata_btree_node_t *node, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), int *previous_node_index, libfdata_btree_node_t **previous_node, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_node_t *branch_node = NULL; libfdata_btree_range_t *sub_node_data_range = NULL; static char *function = "libfdata_btree_get_previous_leaf_node_by_key"; int branch_node_index = 0; int branch_node_level = 0; int node_level = 0; int number_of_sub_nodes = 0; int result = 0; if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( node_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node index value out of bounds.", function ); return( -1 ); } if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing node.", function ); return( -1 ); } if( libfdata_btree_node_get_level( node, &node_level, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve node level.", function ); return( -1 ); } if( node_level == 0 ) { return( 0 ); } branch_node_level = node_level; while( branch_node_level > 0 ) { branch_node_level--; result = libfdata_btree_get_leaf_node_by_key( internal_tree, file_io_handle, cache, node_data_range, branch_node_level, 0, key_value, key_value_compare_function, &branch_node_index, &branch_node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve branch node at level: %d.", function, branch_node_level ); return( -1 ); } else if( result == 0 ) { return( 0 ); } if( libfdata_btree_node_get_number_of_sub_nodes( branch_node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( ( node_index < 0 ) || ( node_index >= number_of_sub_nodes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node index value out of bounds.", function ); return( -1 ); } node_index--; if( node_index >= 0 ) { if( libfdata_btree_node_get_sub_node_data_range_by_index( branch_node, node_index, &sub_node_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous sub node: %d data range.", function, node_index ); return( -1 ); } result = libfdata_btree_get_leaf_node_by_key( internal_tree, file_io_handle, cache, sub_node_data_range, LIBFDATA_BTREE_NODE_LEVEL_UNLIMITED, branch_node_level + 1, key_value, key_value_compare_function, previous_node_index, previous_node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve branch node at level: %d.", function, branch_node_level ); return( -1 ); } return( result ); } /* If no previous leaf node is available try the previous branch */ node_index = branch_node_index; } return( 0 ); } /* Retrieves the number of leaf values in the tree * Returns 1 if successful or -1 on error */ int libfdata_btree_get_number_of_leaf_values( libfdata_btree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int *number_of_values, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_node_t *root_node = NULL; libfdata_internal_btree_t *internal_tree = NULL; static char *function = "libfdata_btree_get_number_of_leaf_values"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_btree_t *) tree; if( internal_tree->root_node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing root node data range.", function ); return( -1 ); } if( libfdata_btree_read_sub_tree( internal_tree, file_io_handle, cache, internal_tree->root_node_data_range, 0, 0, &root_node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read root node sub tree.", function ); return( -1 ); } if( libfdata_btree_node_get_number_of_leaf_values_in_branch( root_node, number_of_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of leaf values in branch.", function ); return( -1 ); } return( 1 ); } /* Retrieves a leaf value at a specific index * Returns 1 if successful or -1 on error */ int libfdata_btree_get_leaf_value_by_index( libfdata_btree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, int leaf_value_index, intptr_t **value, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_node_t *node = NULL; libfdata_btree_range_t *leaf_value_data_range = NULL; libfdata_internal_btree_t *internal_tree = NULL; static char *function = "libfdata_btree_get_leaf_value_by_index"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_btree_t *) tree; if( internal_tree->root_node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing root node data range.", function ); return( -1 ); } if( libfdata_btree_get_leaf_node_by_index( internal_tree, file_io_handle, cache, internal_tree->root_node_data_range, 0, leaf_value_index, &node, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node.", function ); return( -1 ); } if( libfdata_btree_node_get_leaf_value_data_range_by_mapped_index( node, leaf_value_index, &leaf_value_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range.", function ); return( -1 ); } if( libfdata_btree_read_leaf_value( internal_tree, file_io_handle, cache, leaf_value_data_range, value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read leaf value.", function ); return( -1 ); } return( 1 ); } /* Sets a specific leaf value * * If the flag LIBFDATA_BTREE_LEAF_VALUE_FLAG_MANAGED is set the vector * takes over management of the value and the value is freed when * no longer needed. * * Returns 1 if successful or -1 on error */ int libfdata_btree_set_leaf_value_by_index( libfdata_btree_t *tree, intptr_t *file_io_handle LIBFDATA_ATTRIBUTE_UNUSED, libfdata_cache_t *cache, int leaf_value_index, intptr_t *leaf_value, int (*free_leaf_value)( intptr_t **leaf_value, libcerror_error_t **error ), uint8_t write_flags, libcerror_error_t **error ) { libfdata_btree_node_t *node = NULL; libfdata_btree_range_t *leaf_value_data_range = NULL; libfdata_internal_btree_t *internal_tree = NULL; intptr_t *key_value = NULL; static char *function = "libfdata_btree_set_leaf_value_by_index"; off64_t leaf_value_data_offset = 0; size64_t leaf_value_data_size = 0; uint32_t leaf_value_data_flags = 0; int cache_entry_index = -1; int leaf_value_data_file_index = -1; LIBFDATA_UNREFERENCED_PARAMETER( file_io_handle ) if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_btree_t *) tree; if( internal_tree->root_node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing root node data range.", function ); return( -1 ); } if( libfdata_btree_get_leaf_node_by_index( internal_tree, file_io_handle, cache, internal_tree->root_node_data_range, 0, leaf_value_index, &node, 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node.", function ); return( -1 ); } if( libfdata_btree_node_get_leaf_value_data_range_by_mapped_index( node, leaf_value_index, &leaf_value_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range.", function ); return( -1 ); } if( libfdata_btree_range_get( leaf_value_data_range, &leaf_value_data_file_index, &leaf_value_data_offset, &leaf_value_data_size, &leaf_value_data_flags, &key_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range values.", function ); return( -1 ); } if( internal_tree->calculate_leaf_value_cache_entry_index( (libfdata_btree_t *) internal_tree, cache, leaf_value_index, leaf_value_data_file_index, leaf_value_data_offset, leaf_value_data_size, leaf_value_data_flags, &cache_entry_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate cache entry index.", function ); return( -1 ); } if( libfcache_cache_set_value_by_index( (libfcache_cache_t *) cache, cache_entry_index, leaf_value_data_file_index, leaf_value_data_offset, internal_tree->timestamp, leaf_value, free_leaf_value, write_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set leaf value in cache entry: %d.", function, cache_entry_index ); return( -1 ); } return( 1 ); } /* Retrieves a leaf value for a specific key value * * Uses the key_value_compare_function to determine the similarity of the key values * The key_value_compare_function should return LIBFDATA_COMPARE_LESS, * LIBFDATA_COMPARE_LESS_EQUAL, LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER, * LIBFDATA_COMPARE_GREATER_EQUAL if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libfdata_btree_get_leaf_value_by_key( libfdata_btree_t *tree, intptr_t *file_io_handle, libfdata_cache_t *cache, intptr_t *key_value, int (*key_value_compare_function)( intptr_t *first_key_value, intptr_t *second_key_value, libcerror_error_t **error ), uint8_t search_flags, intptr_t **value, uint8_t read_flags, libcerror_error_t **error ) { libfdata_btree_node_t *leaf_node = NULL; libfdata_btree_range_t *leaf_value_data_range = NULL; libfdata_internal_btree_t *internal_tree = NULL; static char *function = "libfdata_btree_get_leaf_value_by_key"; int leaf_node_index = 0; int leaf_node_level = 0; int node_index = 0; int result = 0; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libfdata_internal_btree_t *) tree; if( internal_tree->root_node_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid tree - missing root node data range.", function ); return( -1 ); } if( ( search_flags & ~( LIBFDATA_BTREE_SEARCH_FLAG_SCAN_PREVIOUS_NODE | LIBFDATA_BTREE_SEARCH_FLAG_SCAN_NEXT_NODE ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported search flags.", function ); return( -1 ); } result = libfdata_btree_get_leaf_node_by_key( internal_tree, file_io_handle, cache, internal_tree->root_node_data_range, LIBFDATA_BTREE_NODE_LEVEL_UNLIMITED, 0, key_value, key_value_compare_function, &node_index, &leaf_node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node.", function ); return( -1 ); } else if( result == 0 ) { return( 0 ); } if( libfdata_btree_node_get_level( leaf_node, &leaf_node_level, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf node level.", function ); return( -1 ); } result = libfdata_btree_node_get_leaf_value_data_range_by_key( leaf_node, key_value, key_value_compare_function, &leaf_value_data_range, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve leaf value data range.", function ); return( -1 ); } if( ( result == 0 ) && ( ( search_flags & LIBFDATA_BTREE_SEARCH_FLAG_SCAN_PREVIOUS_NODE ) != 0 ) ) { result = libfdata_btree_get_previous_leaf_node_by_key( internal_tree, file_io_handle, cache, internal_tree->root_node_data_range, node_index, leaf_node, key_value, key_value_compare_function, &leaf_node_index, &leaf_node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous leaf node.", function ); return( -1 ); } else if( result != 0 ) { result = libfdata_btree_node_get_leaf_value_data_range_by_key( leaf_node, key_value, key_value_compare_function, &leaf_value_data_range, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous leaf value data range.", function ); return( -1 ); } } } if( ( result == 0 ) && ( ( search_flags & LIBFDATA_BTREE_SEARCH_FLAG_SCAN_NEXT_NODE ) != 0 ) ) { result = libfdata_btree_get_next_leaf_node_by_key( internal_tree, file_io_handle, cache, internal_tree->root_node_data_range, node_index, leaf_node, key_value, key_value_compare_function, &leaf_node_index, &leaf_node, read_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next leaf node.", function ); return( -1 ); } else if( result != 0 ) { result = libfdata_btree_node_get_leaf_value_data_range_by_key( leaf_node, key_value, key_value_compare_function, &leaf_value_data_range, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next leaf value data range.", function ); return( -1 ); } } } if( result != 0 ) { if( libfdata_btree_read_leaf_value( internal_tree, file_io_handle, cache, leaf_value_data_range, value, read_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read leaf value.", function ); return( -1 ); } } return( result ); } libfsapfs-20190210/libfdata/libfdata_unused.h0000664000175000017500000000254613430101214023067 0ustar00lordyestalordyesta00000000000000/* * The internal unused definition * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_UNUSED_H ) #define _LIBFDATA_INTERNAL_UNUSED_H #include #if !defined( LIBFDATA_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBFDATA_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBFDATA_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBFDATA_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBFDATA_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBFDATA_INTERNAL_UNUSED_H ) */ libfsapfs-20190210/libfdata/libfdata_error.h0000664000175000017500000000340513430101214022710 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_ERROR_H ) #define _LIBFDATA_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBFDATA ) #include #endif #include "libfdata_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFDATA ) LIBFDATA_EXTERN \ void libfdata_error_free( libfdata_error_t **error ); LIBFDATA_EXTERN \ int libfdata_error_fprint( libfdata_error_t *error, FILE *stream ); LIBFDATA_EXTERN \ int libfdata_error_sprint( libfdata_error_t *error, char *string, size_t size ); LIBFDATA_EXTERN \ int libfdata_error_backtrace_fprint( libfdata_error_t *error, FILE *stream ); LIBFDATA_EXTERN \ int libfdata_error_backtrace_sprint( libfdata_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libfdata/Makefile.in0000664000175000017500000010733013430101254021633 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libfdata ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libfdata_la_LIBADD = am__libfdata_la_SOURCES_DIST = libfdata_area.c libfdata_area.h \ libfdata_btree.c libfdata_btree.h libfdata_btree_node.c \ libfdata_btree_node.h libfdata_btree_range.c \ libfdata_btree_range.h libfdata_cache.c libfdata_cache.h \ libfdata_definitions.h libfdata_error.c libfdata_error.h \ libfdata_extern.h libfdata_inline.h libfdata_libcdata.h \ libfdata_libcerror.h libfdata_libcnotify.h \ libfdata_libfcache.h libfdata_list.c libfdata_list.h \ libfdata_list_element.c libfdata_list_element.h \ libfdata_mapped_range.c libfdata_mapped_range.h \ libfdata_notify.c libfdata_notify.h libfdata_range.c \ libfdata_range.h libfdata_range_list.c libfdata_range_list.h \ libfdata_segments_array.c libfdata_segments_array.h \ libfdata_stream.c libfdata_stream.h libfdata_support.c \ libfdata_support.h libfdata_tree.c libfdata_tree.h \ libfdata_tree_node.c libfdata_tree_node.h libfdata_types.h \ libfdata_unused.h libfdata_vector.c libfdata_vector.h @HAVE_LOCAL_LIBFDATA_TRUE@am_libfdata_la_OBJECTS = libfdata_area.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_btree.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_btree_node.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_btree_range.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_cache.lo libfdata_error.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_list.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_list_element.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_mapped_range.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_notify.lo libfdata_range.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_range_list.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_segments_array.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_stream.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_support.lo libfdata_tree.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_tree_node.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_vector.lo libfdata_la_OBJECTS = $(am_libfdata_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBFDATA_TRUE@am_libfdata_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libfdata_area.Plo \ ./$(DEPDIR)/libfdata_btree.Plo \ ./$(DEPDIR)/libfdata_btree_node.Plo \ ./$(DEPDIR)/libfdata_btree_range.Plo \ ./$(DEPDIR)/libfdata_cache.Plo ./$(DEPDIR)/libfdata_error.Plo \ ./$(DEPDIR)/libfdata_list.Plo \ ./$(DEPDIR)/libfdata_list_element.Plo \ ./$(DEPDIR)/libfdata_mapped_range.Plo \ ./$(DEPDIR)/libfdata_notify.Plo ./$(DEPDIR)/libfdata_range.Plo \ ./$(DEPDIR)/libfdata_range_list.Plo \ ./$(DEPDIR)/libfdata_segments_array.Plo \ ./$(DEPDIR)/libfdata_stream.Plo \ ./$(DEPDIR)/libfdata_support.Plo ./$(DEPDIR)/libfdata_tree.Plo \ ./$(DEPDIR)/libfdata_tree_node.Plo \ ./$(DEPDIR)/libfdata_vector.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libfdata_la_SOURCES) DIST_SOURCES = $(am__libfdata_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBFDATA_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBFDATA_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBFDATA_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBFDATA_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_LOCAL_LIBFDATA_TRUE@ @LIBCTHREADS_CPPFLAGS@ \ @HAVE_LOCAL_LIBFDATA_TRUE@ @LIBCDATA_CPPFLAGS@ \ @HAVE_LOCAL_LIBFDATA_TRUE@ @LIBCNOTIFY_CPPFLAGS@ \ @HAVE_LOCAL_LIBFDATA_TRUE@ @LIBFCACHE_CPPFLAGS@ \ @HAVE_LOCAL_LIBFDATA_TRUE@ @PTHREAD_CPPFLAGS@ @HAVE_LOCAL_LIBFDATA_TRUE@noinst_LTLIBRARIES = libfdata.la @HAVE_LOCAL_LIBFDATA_TRUE@libfdata_la_SOURCES = \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_area.c libfdata_area.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_btree.c libfdata_btree.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_btree_node.c libfdata_btree_node.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_btree_range.c libfdata_btree_range.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_cache.c libfdata_cache.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_definitions.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_error.c libfdata_error.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_extern.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_inline.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_libcdata.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_libcerror.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_libcnotify.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_libfcache.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_list.c libfdata_list.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_list_element.c libfdata_list_element.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_mapped_range.c libfdata_mapped_range.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_notify.c libfdata_notify.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_range.c libfdata_range.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_range_list.c libfdata_range_list.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_segments_array.c libfdata_segments_array.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_stream.c libfdata_stream.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_support.c libfdata_support.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_tree.c libfdata_tree.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_tree_node.c libfdata_tree_node.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_types.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_unused.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_vector.c libfdata_vector.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfdata/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libfdata/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libfdata.la: $(libfdata_la_OBJECTS) $(libfdata_la_DEPENDENCIES) $(EXTRA_libfdata_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libfdata_la_rpath) $(libfdata_la_OBJECTS) $(libfdata_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_area.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_btree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_btree_node.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_btree_range.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_cache.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_list.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_list_element.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_mapped_range.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_notify.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_range.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_range_list.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_segments_array.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_tree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_tree_node.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_vector.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfdata_area.Plo -rm -f ./$(DEPDIR)/libfdata_btree.Plo -rm -f ./$(DEPDIR)/libfdata_btree_node.Plo -rm -f ./$(DEPDIR)/libfdata_btree_range.Plo -rm -f ./$(DEPDIR)/libfdata_cache.Plo -rm -f ./$(DEPDIR)/libfdata_error.Plo -rm -f ./$(DEPDIR)/libfdata_list.Plo -rm -f ./$(DEPDIR)/libfdata_list_element.Plo -rm -f ./$(DEPDIR)/libfdata_mapped_range.Plo -rm -f ./$(DEPDIR)/libfdata_notify.Plo -rm -f ./$(DEPDIR)/libfdata_range.Plo -rm -f ./$(DEPDIR)/libfdata_range_list.Plo -rm -f ./$(DEPDIR)/libfdata_segments_array.Plo -rm -f ./$(DEPDIR)/libfdata_stream.Plo -rm -f ./$(DEPDIR)/libfdata_support.Plo -rm -f ./$(DEPDIR)/libfdata_tree.Plo -rm -f ./$(DEPDIR)/libfdata_tree_node.Plo -rm -f ./$(DEPDIR)/libfdata_vector.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libfdata ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libfdata_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libfdata/libfdata_cache.h0000664000175000017500000000272513430101214022626 0ustar00lordyestalordyesta00000000000000/* * Cache functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_CACHE_H ) #define _LIBFDATA_INTERNAL_CACHE_H #include #include #include "libfdata_extern.h" #include "libfdata_libcerror.h" #include "libfdata_types.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBFDATA ) LIBFDATA_EXTERN \ int libfdata_cache_initialize( libfdata_cache_t **cache, int maximum_cache_entries, libcerror_error_t **error ); LIBFDATA_EXTERN \ int libfdata_cache_free( libfdata_cache_t **cache, libcerror_error_t **error ); #endif /* !defined( HAVE_LOCAL_LIBFDATA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBFDATA_INTERNAL_CACHE_H ) */ libfsapfs-20190210/libfdata/libfdata_stream.c0000664000175000017500000017550013430101214023053 0ustar00lordyestalordyesta00000000000000/* * The stream functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #if defined( HAVE_UNISTD_H ) #include #endif #include "libfdata_definitions.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_mapped_range.h" #include "libfdata_range.h" #include "libfdata_segments_array.h" #include "libfdata_stream.h" #include "libfdata_types.h" #include "libfdata_unused.h" /* Creates a stream * Make sure the value stream is referencing, is set to NULL * * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the stream * takes over management of the data handle and the data handle is freed when * no longer needed * * Returns 1 if successful or -1 on error */ int libfdata_stream_initialize( libfdata_stream_t **stream, intptr_t *data_handle, int (*free_data_handle)( intptr_t **data_handle, libcerror_error_t **error ), int (*clone_data_handle)( intptr_t **destination_data_handle, intptr_t *source_data_handle, libcerror_error_t **error ), int (*create_segment)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ), ssize_t (*read_segment_data)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t read_flags, libcerror_error_t **error ), ssize_t (*write_segment_data)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, const uint8_t *segment_data, size_t segment_data_size, uint32_t segment_flags, uint8_t write_flags, libcerror_error_t **error ), off64_t (*seek_segment_offset)( intptr_t *data_handle, intptr_t *file_io_handle, int segment_index, int segment_file_index, off64_t segment_offset, libcerror_error_t **error ), uint8_t flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_initialize"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } if( *stream != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid stream value already set.", function ); return( -1 ); } if( ( flags & 0xfe ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%02" PRIx8 ".", function ); return( -1 ); } internal_stream = memory_allocate_structure( libfdata_internal_stream_t ); if( internal_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create stream.", function ); goto on_error; } if( memory_set( internal_stream, 0, sizeof( libfdata_internal_stream_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear stream.", function ); memory_free( internal_stream ); return( -1 ); } if( libcdata_array_initialize( &( internal_stream->segments_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segments array.", function ); goto on_error; } if( libcdata_array_initialize( &( internal_stream->mapped_ranges_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped ranges array.", function ); goto on_error; } internal_stream->flags |= flags; internal_stream->data_handle = data_handle; internal_stream->free_data_handle = free_data_handle; internal_stream->clone_data_handle = clone_data_handle; internal_stream->create_segment = create_segment; internal_stream->read_segment_data = read_segment_data; internal_stream->write_segment_data = write_segment_data; internal_stream->seek_segment_offset = seek_segment_offset; *stream = (libfdata_stream_t *) internal_stream; return( 1 ); on_error: if( internal_stream != NULL ) { if( internal_stream->segments_array != NULL ) { libcdata_array_free( &( internal_stream->segments_array ), NULL, NULL ); } memory_free( internal_stream ); } return( -1 ); } /* Frees a stream * Returns 1 if successful or -1 on error */ int libfdata_stream_free( libfdata_stream_t **stream, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_free"; int result = 1; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } if( *stream != NULL ) { internal_stream = (libfdata_internal_stream_t *) *stream; *stream = NULL; if( libcdata_array_free( &( internal_stream->segments_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the segments array.", function ); result = -1; } if( libcdata_array_free( &( internal_stream->mapped_ranges_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free the mapped ranges array.", function ); result = -1; } if( ( internal_stream->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) { if( internal_stream->data_handle != NULL ) { if( internal_stream->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source stream - missing free data handle function.", function ); result = -1; } else if( internal_stream->free_data_handle( &( internal_stream->data_handle ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free data handle.", function ); result = -1; } } } memory_free( internal_stream ); } return( result ); } /* Clones (duplicates) the stream * Returns 1 if successful or -1 on error */ int libfdata_stream_clone( libfdata_stream_t **destination_stream, libfdata_stream_t *source_stream, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_destination_stream = NULL; libfdata_internal_stream_t *internal_source_stream = NULL; static char *function = "libfdata_stream_clone"; if( destination_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination stream.", function ); return( -1 ); } if( *destination_stream != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: destination stream already set.", function ); return( -1 ); } if( source_stream == NULL ) { *destination_stream = NULL; return( 1 ); } internal_source_stream = (libfdata_internal_stream_t *) source_stream; internal_destination_stream = memory_allocate_structure( libfdata_internal_stream_t ); if( internal_destination_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination stream.", function ); goto on_error; } if( memory_set( internal_destination_stream, 0, sizeof( libfdata_internal_stream_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear destination stream.", function ); memory_free( internal_destination_stream ); return( -1 ); } if( internal_source_stream->data_handle != NULL ) { if( internal_source_stream->free_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source stream - missing free data handle function.", function ); goto on_error; } if( internal_source_stream->clone_data_handle == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid source stream - missing clone data handle function.", function ); goto on_error; } if( internal_source_stream->clone_data_handle( &( internal_destination_stream->data_handle ), internal_source_stream->data_handle, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination data handle.", function ); goto on_error; } } if( libcdata_array_clone( &( internal_destination_stream->segments_array ), internal_source_stream->segments_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_range_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination segments array.", function ); goto on_error; } if( libcdata_array_clone( &( internal_destination_stream->mapped_ranges_array ), internal_source_stream->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, (int (*)(intptr_t **, intptr_t *, libcerror_error_t **)) &libfdata_mapped_range_clone, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination mapped ranges array.", function ); goto on_error; } internal_destination_stream->flags = internal_source_stream->flags | LIBFDATA_DATA_HANDLE_FLAG_MANAGED; internal_destination_stream->free_data_handle = internal_source_stream->free_data_handle; internal_destination_stream->clone_data_handle = internal_source_stream->clone_data_handle; internal_destination_stream->create_segment = internal_source_stream->create_segment; internal_destination_stream->read_segment_data = internal_source_stream->read_segment_data; internal_destination_stream->write_segment_data = internal_source_stream->write_segment_data; internal_destination_stream->seek_segment_offset = internal_source_stream->seek_segment_offset; *destination_stream = (libfdata_stream_t *) internal_destination_stream; return( 1 ); on_error: if( internal_destination_stream != NULL ) { if( internal_destination_stream->segments_array != NULL ) { libcdata_array_free( &( internal_destination_stream->segments_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, NULL ); } if( ( internal_destination_stream->data_handle != NULL ) && ( internal_source_stream->free_data_handle != NULL ) ) { internal_source_stream->free_data_handle( &( internal_destination_stream->data_handle ), NULL ); } memory_free( internal_destination_stream ); } return( -1 ); } /* Segment functions */ /* Empties the stream * Returns 1 if successful or -1 on error */ int libfdata_stream_empty( libfdata_stream_t *stream, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_empty"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libcdata_array_empty( internal_stream->segments_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty segments array.", function ); return( -1 ); } if( libcdata_array_empty( internal_stream->mapped_ranges_array, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty mapped ranges array.", function ); return( -1 ); } internal_stream->size = 0; return( 1 ); } /* Resizes the stream * Returns 1 if successful or -1 on error */ int libfdata_stream_resize( libfdata_stream_t *stream, int number_of_segments, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_resize"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libcdata_array_resize( internal_stream->segments_array, number_of_segments, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize segments array.", function ); return( -1 ); } if( libcdata_array_resize( internal_stream->mapped_ranges_array, number_of_segments, (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_mapped_range_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize mapped ranges array.", function ); return( -1 ); } internal_stream->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Reverses the order of the segments * Returns 1 if successful or -1 on error */ int libfdata_stream_reverse( libfdata_stream_t *stream, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_reverse"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libcdata_array_reverse( internal_stream->segments_array, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to reverse segments array.", function ); return( -1 ); } internal_stream->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Retrieves the number of segments * Returns 1 if successful or -1 on error */ int libfdata_stream_get_number_of_segments( libfdata_stream_t *stream, int *number_of_segments, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_get_number_of_segments"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libcdata_array_get_number_of_entries( internal_stream->segments_array, number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from segments array.", function ); return( -1 ); } return( 1 ); } /* Retrieves a specific segment * Returns 1 if successful or -1 on error */ int libfdata_stream_get_segment_by_index( libfdata_stream_t *stream, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_get_segment_by_index"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libfdata_segments_array_get_segment_by_index( internal_stream->segments_array, segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d.", function, segment_index ); return( -1 ); } return( 1 ); } /* Sets a specific segment * Returns 1 if successful or -1 on error */ int libfdata_stream_set_segment_by_index( libfdata_stream_t *stream, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_set_segment_by_index"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libfdata_segments_array_set_segment_by_index( internal_stream->segments_array, internal_stream->mapped_ranges_array, &( internal_stream->size ), segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set segment: %d.", function, segment_index ); return( -1 ); } internal_stream->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Prepends a segment * Returns 1 if successful or -1 on error */ int libfdata_stream_prepend_segment( libfdata_stream_t *stream, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_prepend_segment"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libfdata_segments_array_prepend_segment( internal_stream->segments_array, internal_stream->mapped_ranges_array, &( internal_stream->size ), segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend segment.", function ); return( -1 ); } internal_stream->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; return( 1 ); } /* Appends a segment * Returns 1 if successful or -1 on error */ int libfdata_stream_append_segment( libfdata_stream_t *stream, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_append_segment"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libfdata_segments_array_append_segment( internal_stream->segments_array, internal_stream->mapped_ranges_array, &( internal_stream->size ), segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment.", function ); return( -1 ); } return( 1 ); } /* Sets the mapped size * The mapped size cannot be larger than the stream size * A value of 0 is equivalent for the stream size * Returns 1 if successful or -1 on error */ int libfdata_stream_set_mapped_size( libfdata_stream_t *stream, size64_t mapped_size, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_set_mapped_size"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( mapped_size > internal_stream->size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid mapped size value out of bounds.", function ); return( -1 ); } internal_stream->mapped_size = mapped_size; return( 1 ); } /* Mapped range functions */ /* Retrieves the mapped range of a specific segment * Returns 1 if successful or -1 on error */ int libfdata_stream_get_segment_mapped_range( libfdata_stream_t *stream, int segment_index, off64_t *mapped_range_offset, size64_t *mapped_range_size, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_stream_get_segment_mapped_range"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( libcdata_array_get_entry_by_index( internal_stream->mapped_ranges_array, segment_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, segment_index ); return( -1 ); } if( libfdata_mapped_range_get( mapped_range, mapped_range_offset, mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, segment_index ); return( -1 ); } return( 1 ); } /* Retrieves the segment index for a specific offset * The segment_data_offset value is set to the offset relative to the start of the segment * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_stream_get_segment_index_at_offset( libfdata_stream_t *stream, off64_t offset, int *segment_index, off64_t *segment_data_offset, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; libfdata_mapped_range_t *mapped_range = NULL; static char *function = "libfdata_stream_get_segment_index_at_offset"; off64_t mapped_range_end_offset = 0; off64_t mapped_range_start_offset = 0; size64_t mapped_range_size = 0; size64_t stream_size = 0; int initial_segment_index = 0; int number_of_segments = 0; int result = 0; int search_segment_index = 0; #if defined( HAVE_DEBUG_OUTPUT ) libfdata_range_t *segment_data_range = NULL; off64_t segment_offset = 0; size64_t segment_size = 0; uint32_t segment_flags = 0; int segment_file_index = -1; #endif if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid offset value less than zero.", function ); return( -1 ); } if( segment_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment index.", function ); return( -1 ); } if( segment_data_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment data offset.", function ); return( -1 ); } if( ( internal_stream->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_segments_array_calculate_mapped_ranges( internal_stream->segments_array, internal_stream->mapped_ranges_array, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges.", function ); return( -1 ); } internal_stream->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: requested offset: 0x%08" PRIx64 "\n", function, offset ); } #endif if( internal_stream->mapped_size != 0 ) { stream_size = internal_stream->mapped_size; } else { stream_size = internal_stream->size; } if( stream_size == 0 ) { return( 0 ); } if( libcdata_array_get_number_of_entries( internal_stream->mapped_ranges_array, &number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from mapped ranges array.", function ); return( -1 ); } /* This assumes a fairly even distribution of the sizes of the segments */ initial_segment_index = (int) ( ( number_of_segments * offset ) / stream_size ); /* Look for the corresponding segment upwards in the array */ for( search_segment_index = initial_segment_index; search_segment_index < number_of_segments; search_segment_index++ ) { if( libcdata_array_get_entry_by_index( internal_stream->mapped_ranges_array, search_segment_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, search_segment_index ); return( -1 ); } if( libfdata_mapped_range_get( mapped_range, &mapped_range_start_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, search_segment_index ); return( -1 ); } mapped_range_end_offset = mapped_range_start_offset + (off64_t) mapped_range_size; if( mapped_range_end_offset < mapped_range_start_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment: %d - mapped range value out of bounds.", function, search_segment_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: segment: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, search_segment_index, mapped_range_start_offset, mapped_range_end_offset, mapped_range_size ); } #endif /* Check if the offset is in the mapped range */ if( ( offset >= mapped_range_start_offset ) && ( offset < mapped_range_end_offset ) ) { offset -= mapped_range_start_offset; break; } /* Check if the offset is out of bounds */ if( offset < mapped_range_start_offset ) { search_segment_index = number_of_segments; break; } } if( search_segment_index >= number_of_segments ) { /* Look for the corresponding segment downwards in the array */ for( search_segment_index = initial_segment_index; search_segment_index >= 0; search_segment_index-- ) { if( libcdata_array_get_entry_by_index( internal_stream->mapped_ranges_array, search_segment_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, search_segment_index ); return( -1 ); } if( libfdata_mapped_range_get( mapped_range, &mapped_range_start_offset, &mapped_range_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to retrieve values from mapped range: %d.", function, search_segment_index ); return( -1 ); } mapped_range_end_offset = mapped_range_start_offset + (off64_t) mapped_range_size; if( mapped_range_end_offset < mapped_range_start_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment: %d - mapped range value out of bounds.", function, search_segment_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: segment: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, search_segment_index, mapped_range_start_offset, mapped_range_end_offset, mapped_range_size ); } #endif /* Check if the offset is in the mapped range */ if( ( offset >= mapped_range_start_offset ) && ( offset < mapped_range_end_offset ) ) { offset -= mapped_range_start_offset; break; } /* Check if the offset is out of bounds */ if( offset > mapped_range_start_offset ) { search_segment_index--; break; } } } if( ( search_segment_index >= 0 ) && ( search_segment_index < number_of_segments ) ) { if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid offset value out of bounds.", function ); return( -1 ); } *segment_data_offset = offset; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { if( libcdata_array_get_entry_by_index( internal_stream->segments_array, search_segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, search_segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, search_segment_index ); return( -1 ); } libcnotify_printf( "%s: segment: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, search_segment_index, segment_file_index, segment_offset, segment_offset + segment_size, segment_size ); } #endif result = 1; } if( result == 1 ) { *segment_index = search_segment_index; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( result ); } /* Retrieves the segment for a specific offset * The segment_data_offset value is set to the offset relative to the start of the segment * Returns 1 if successful, 0 if not or -1 on error */ int libfdata_stream_get_segment_at_offset( libfdata_stream_t *stream, off64_t offset, int *segment_index, off64_t *segment_data_offset, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_stream_get_segment_at_offset"; int result = 0; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( segment_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment index.", function ); return( -1 ); } result = libfdata_stream_get_segment_index_at_offset( stream, offset, segment_index, segment_data_offset, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment index at offset: 0x%08" PRIx64 ".", function, offset ); return( -1 ); } else if( result != 0 ) { if( libcdata_array_get_entry_by_index( internal_stream->segments_array, *segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, *segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, *segment_index ); return( -1 ); } } return( result ); } /* IO functions */ /* Reads data from the current offset into a buffer * Returns the number of bytes read or -1 on error */ ssize_t libfdata_stream_read_buffer( libfdata_stream_t *stream, intptr_t *file_io_handle, uint8_t *buffer, size_t buffer_size, uint8_t read_flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_stream_read_buffer"; off64_t result_offset = 0; off64_t segment_offset = 0; size64_t segment_size = 0; size64_t segment_data_size = 0; size64_t stream_size = 0; size_t buffer_offset = 0; size_t read_size = 0; ssize_t read_count = 0; uint32_t segment_flags = 0; int segment_file_index = 0; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( internal_stream->read_segment_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid stream - missing read segment data function.", function ); return( -1 ); } if( internal_stream->seek_segment_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid stream - missing seek segment offset function.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( buffer_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid buffer size value exceeds maximum.", function ); return( -1 ); } if( internal_stream->current_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid stream - current offset value out of bounds.", function ); return( -1 ); } if( internal_stream->mapped_size != 0 ) { stream_size = internal_stream->mapped_size; } else { stream_size = internal_stream->size; } /* Bail out early for requests to read empty buffers and beyond the end of the stream */ if( ( buffer_size == 0 ) || ( (size64_t) internal_stream->current_offset >= stream_size ) ) { return( 0 ); } if( (size64_t) ( internal_stream->current_offset + buffer_size ) > stream_size ) { buffer_size = (size_t) ( stream_size - internal_stream->current_offset ); } if( libcdata_array_get_entry_by_index( internal_stream->segments_array, internal_stream->current_segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, internal_stream->current_segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, internal_stream->current_segment_index ); return( -1 ); } if( ( internal_stream->segment_data_offset < 0 ) || ( (size64_t) internal_stream->segment_data_offset >= segment_size ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid stream - segment data offset value out of bounds.", function ); return( -1 ); } segment_offset += internal_stream->segment_data_offset; segment_data_size = segment_size - internal_stream->segment_data_offset; result_offset = internal_stream->seek_segment_offset( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, segment_file_index, segment_offset, error ); if( result_offset != segment_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek segment: %d offset: %" PRIi64 ".", function, internal_stream->current_segment_index, segment_offset ); return( -1 ); } while( buffer_size > 0 ) { if( (size64_t) buffer_size <= segment_data_size ) { read_size = buffer_size; } else { read_size = (size_t) segment_data_size; } if( read_size == 0 ) { break; } read_count = internal_stream->read_segment_data( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, segment_file_index, &( buffer[ buffer_offset ]), read_size, segment_flags, read_flags, error ); if( read_count != (ssize_t) read_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read segment: %d data at offset: 0x%08" PRIx64 ".", function, internal_stream->current_segment_index, segment_offset ); return( -1 ); } internal_stream->current_offset += read_size; internal_stream->segment_data_offset += read_size; segment_offset += read_size; segment_data_size -= read_size; buffer_size -= read_size; buffer_offset += read_size; if( (size64_t) internal_stream->current_offset >= stream_size ) { break; } if( (size64_t) internal_stream->segment_data_offset >= segment_size ) { if( (size64_t) internal_stream->segment_data_offset > segment_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid stream - segment data offset value out of bounds.", function ); return( -1 ); } internal_stream->current_segment_index++; internal_stream->segment_data_offset = 0; if( libcdata_array_get_entry_by_index( internal_stream->segments_array, internal_stream->current_segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, internal_stream->current_segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, internal_stream->current_segment_index ); return( -1 ); } segment_data_size = segment_size; result_offset = internal_stream->seek_segment_offset( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, segment_file_index, segment_offset, error ); if( result_offset != segment_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek segment: %d offset: %" PRIi64 ".", function, internal_stream->current_segment_index, segment_offset ); return( -1 ); } } } return( (ssize_t) buffer_offset ); } /* Reads data at a specific offset into a buffer * Returns the number of bytes read or -1 on error */ ssize_t libfdata_stream_read_buffer_at_offset( libfdata_stream_t *stream, intptr_t *file_io_handle, uint8_t *buffer, size_t buffer_size, off64_t offset, uint8_t read_flags, libcerror_error_t **error ) { static char *function = "libfdata_stream_read_buffer_at_offset"; ssize_t read_count = 0; if( libfdata_stream_seek_offset( stream, offset, SEEK_SET, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek offset.", function ); return( -1 ); } read_count = libfdata_stream_read_buffer( stream, file_io_handle, buffer, buffer_size, read_flags, error ); if( read_count < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_READ_FAILED, "%s: unable to read buffer.", function ); return( -1 ); } return( read_count ); } /* Writes data in the buffer to the current offset * Returns the number of bytes written or -1 on error */ ssize_t libfdata_stream_write_buffer( libfdata_stream_t *stream, intptr_t *file_io_handle, const uint8_t *buffer, size_t buffer_size, uint8_t write_flags, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_stream_write_buffer"; off64_t result_offset = 0; off64_t segment_offset = 0; size64_t segment_size = 0; size64_t segment_data_size = 0; size_t buffer_offset = 0; size_t write_size = 0; ssize_t write_count = 0; uint32_t segment_flags = 0; int number_of_segments = 0; int result = 0; int segment_file_index = 0; int segment_index = 0; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( internal_stream->create_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid stream - missing create segment function.", function ); return( -1 ); } if( internal_stream->write_segment_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid stream - missing write segment data function.", function ); return( -1 ); } if( internal_stream->seek_segment_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid stream - missing seek segment offset function.", function ); return( -1 ); } if( buffer == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid buffer.", function ); return( -1 ); } if( buffer_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid buffer size value exceeds maximum.", function ); return( -1 ); } if( internal_stream->current_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid stream - current offset value out of bounds.", function ); return( -1 ); } /* Bail out early for requests to write empty buffers */ if( buffer_size == 0 ) { return( 0 ); } if( libcdata_array_get_number_of_entries( internal_stream->segments_array, &number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from segments array.", function ); return( -1 ); } if( (size64_t) internal_stream->current_offset < internal_stream->size ) { if( libcdata_array_get_entry_by_index( internal_stream->segments_array, internal_stream->current_segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, internal_stream->current_segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, internal_stream->current_segment_index ); return( -1 ); } if( ( internal_stream->segment_data_offset < 0 ) || ( (size64_t) internal_stream->segment_data_offset >= segment_size ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid stream - segment data offset value out of bounds.", function ); return( -1 ); } segment_offset += internal_stream->segment_data_offset; segment_data_size = segment_size - internal_stream->segment_data_offset; } else while( (size64_t) internal_stream->current_offset >= internal_stream->size ) { if( internal_stream->current_segment_index < number_of_segments ) { internal_stream->current_segment_index++; } internal_stream->segment_data_offset = 0; result = internal_stream->create_segment( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segment: %d.", function, internal_stream->current_segment_index ); return( -1 ); } else if( result == 0 ) { return( 0 ); } if( libfdata_stream_append_segment( stream, &segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment to stream.", function ); return( -1 ); } if( internal_stream->current_segment_index != segment_index ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } number_of_segments++; segment_data_size = segment_size; } result_offset = internal_stream->seek_segment_offset( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, segment_file_index, segment_offset, error ); if( result_offset != segment_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek segment: %d offset: %" PRIi64 ".", function, internal_stream->current_segment_index, segment_offset ); return( -1 ); } while( buffer_size > 0 ) { if( (size64_t) buffer_size <= segment_data_size ) { write_size = buffer_size; } else { write_size = (size_t) segment_data_size; } if( write_size == 0 ) { break; } write_count = internal_stream->write_segment_data( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, segment_file_index, &( buffer[ buffer_offset ] ), write_size, segment_flags, write_flags, error ); if( write_count != (ssize_t) write_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_WRITE_FAILED, "%s: unable to write segment: %d data at offset: 0x%08" PRIx64 ".", function, internal_stream->current_segment_index, segment_offset + internal_stream->segment_data_offset ); return( -1 ); } internal_stream->current_offset += write_size; internal_stream->segment_data_offset += write_size; segment_offset += write_size; segment_data_size -= write_size; buffer_size -= write_size; buffer_offset += write_size; if( (size64_t) internal_stream->segment_data_offset >= segment_size ) { if( (size64_t) internal_stream->segment_data_offset > segment_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid stream - segment data offset value out of bounds.", function ); return( -1 ); } internal_stream->current_segment_index++; internal_stream->segment_data_offset = 0; if( internal_stream->current_segment_index < number_of_segments ) { if( libcdata_array_get_entry_by_index( internal_stream->segments_array, internal_stream->current_segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, internal_stream->current_segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, internal_stream->current_segment_index ); return( -1 ); } } else { result = internal_stream->create_segment( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segment: %d.", function, internal_stream->current_segment_index ); return( -1 ); } else if( result == 0 ) { break; } if( libfdata_stream_append_segment( stream, &segment_index, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append segment to stream.", function ); return( -1 ); } if( internal_stream->current_segment_index != segment_index ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } number_of_segments++; } segment_data_size = segment_size; result_offset = internal_stream->seek_segment_offset( internal_stream->data_handle, file_io_handle, internal_stream->current_segment_index, segment_file_index, segment_offset, error ); if( result_offset != segment_offset ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_IO, LIBCERROR_IO_ERROR_SEEK_FAILED, "%s: unable to seek segment: %d offset: %" PRIi64 ".", function, internal_stream->current_segment_index, segment_offset ); return( -1 ); } } } return( (ssize_t) buffer_offset ); } /* Seeks a certain offset of the data * Returns the offset if seek is successful or -1 on error */ off64_t libfdata_stream_seek_offset( libfdata_stream_t *stream, off64_t offset, int whence, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_seek_offset"; off64_t segment_data_offset = 0; size64_t stream_size = 0; int segment_index = 0; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( internal_stream->current_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid stream - current offset value out of bounds.", function ); return( -1 ); } if( ( whence != SEEK_CUR ) && ( whence != SEEK_END ) && ( whence != SEEK_SET ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported whence.", function ); return( -1 ); } if( internal_stream->mapped_size != 0 ) { stream_size = internal_stream->mapped_size; } else { stream_size = internal_stream->size; } if( whence == SEEK_CUR ) { offset += internal_stream->current_offset; } else if( whence == SEEK_END ) { offset += (off64_t) stream_size; } #if defined( HAVE_VERBOSE_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: seeking offset: %" PRIi64 ".\n", function, offset ); } #endif if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: offset value out of bounds.", function ); return( -1 ); } if( offset < (off64_t) stream_size ) { if( libfdata_stream_get_segment_index_at_offset( stream, offset, &segment_index, &segment_data_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment index at offset: 0x%08" PRIx64 ".", function, offset ); return( -1 ); } } else { if( libcdata_array_get_number_of_entries( internal_stream->segments_array, &segment_index, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from segments array.", function ); return( -1 ); } segment_data_offset = 0; } internal_stream->current_segment_index = segment_index; internal_stream->current_offset = offset; internal_stream->segment_data_offset = segment_data_offset; return( offset ); } /* Retrieves the offset * Returns 1 if successful or -1 on error */ int libfdata_stream_get_offset( libfdata_stream_t *stream, off64_t *offset, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_get_data_offset"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid offset.", function ); return( -1 ); } *offset = internal_stream->current_offset; return( 1 ); } /* Retrieves the size * Returns 1 if successful or -1 on error */ int libfdata_stream_get_size( libfdata_stream_t *stream, size64_t *size, libcerror_error_t **error ) { libfdata_internal_stream_t *internal_stream = NULL; static char *function = "libfdata_stream_get_size"; if( stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid stream.", function ); return( -1 ); } internal_stream = (libfdata_internal_stream_t *) stream; if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } if( ( internal_stream->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) { if( libfdata_segments_array_calculate_mapped_ranges( internal_stream->segments_array, internal_stream->mapped_ranges_array, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to calculate mapped ranges.", function ); return( -1 ); } internal_stream->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); } if( internal_stream->mapped_size != 0 ) { *size = internal_stream->mapped_size; } else { *size = internal_stream->size; } return( 1 ); } libfsapfs-20190210/libfdata/libfdata_segments_array.c0000664000175000017500000005143113430101214024577 0ustar00lordyestalordyesta00000000000000/* * The segments array functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_libcdata.h" #include "libfdata_libcerror.h" #include "libfdata_libcnotify.h" #include "libfdata_mapped_range.h" #include "libfdata_range.h" #include "libfdata_segments_array.h" /* Retrieves a specific segment * Returns 1 if successful or -1 on error */ int libfdata_segments_array_get_segment_by_index( libcdata_array_t *segments_array, int segment_index, int *segment_file_index, off64_t *segment_offset, size64_t *segment_size, uint32_t *segment_flags, libcerror_error_t **error ) { libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_segments_array_get_segment_by_index"; if( libcdata_array_get_entry_by_index( segments_array, segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, segment_index ); return( -1 ); } return( 1 ); } /* Sets the offset and size of a specific segment * Returns 1 if successful or -1 on error */ int libfdata_segments_array_set_segment_by_index( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, size64_t *data_size, int segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_mapped_range_t *mapped_range = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_segments_array_set_segment_by_index"; off64_t previous_segment_offset = 0; size64_t previous_segment_size = 0; uint32_t previous_segment_flags = 0; int previous_segment_file_index = 0; if( data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data size.", function ); return( -1 ); } if( segment_file_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment file index value out of bounds.", function ); return( -1 ); } if( segment_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment offset value out of bounds.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( segments_array, segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, segment_index ); return( -1 ); } if( segment_data_range == NULL ) { if( libfdata_range_initialize( &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segment data range.", function ); return( -1 ); } if( libcdata_array_set_entry_by_index( segments_array, segment_index, (intptr_t *) segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d to segments array.", function, segment_index ); libfdata_range_free( &segment_data_range, NULL ); return( -1 ); } } else { if( libfdata_range_get( segment_data_range, &previous_segment_file_index, &previous_segment_offset, &previous_segment_size, &previous_segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, segment_index ); return( -1 ); } *data_size -= previous_segment_size; } if( libfdata_range_set( segment_data_range, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set segment data range values.", function ); return( -1 ); } /* Make sure there is a mapped range entry for every segment */ if( libcdata_array_get_entry_by_index( mapped_ranges_array, segment_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, segment_index ); return( -1 ); } if( mapped_range == NULL ) { if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); return( -1 ); } if( libcdata_array_set_entry_by_index( mapped_ranges_array, segment_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set entry: %d in mapped ranges array.", function, segment_index ); libfdata_mapped_range_free( &mapped_range, NULL ); return( -1 ); } } *data_size += segment_size; return( 1 ); } /* Prepends a segment * Returns 1 if successful or -1 on error */ int libfdata_segments_array_prepend_segment( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, size64_t *data_size, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_mapped_range_t *mapped_range = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_segments_array_prepend_segment"; int mapped_range_index = -1; if( data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data size.", function ); return( -1 ); } if( segment_file_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment file index value out of bounds.", function ); return( -1 ); } if( segment_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment offset value out of bounds.", function ); return( -1 ); } if( segment_size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment size value out of bounds.", function ); return( -1 ); } if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); goto on_error; } if( libfdata_mapped_range_set( mapped_range, (off64_t) *data_size, segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped range values.", function ); goto on_error; } if( libcdata_array_append_entry( mapped_ranges_array, &mapped_range_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append mapped range to array.", function ); goto on_error; } if( libfdata_range_initialize( &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segment data range.", function ); goto on_error; } if( libfdata_range_set( segment_data_range, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set segment data range values.", function ); goto on_error; } if( libcdata_array_prepend_entry( segments_array, (intptr_t *) segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend data range to segments array.", function ); goto on_error; } *data_size += segment_size; return( 1 ); on_error: if( segment_data_range != NULL ) { libfdata_range_free( &segment_data_range, NULL ); } if( mapped_range_index != -1 ) { libcdata_array_set_entry_by_index( mapped_ranges_array, mapped_range_index, NULL, NULL ); } if( mapped_range != NULL ) { libfdata_mapped_range_free( &mapped_range, NULL ); } return( -1 ); } /* Appends a segment * Returns 1 if successful or -1 on error */ int libfdata_segments_array_append_segment( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, size64_t *data_size, int *segment_index, int segment_file_index, off64_t segment_offset, size64_t segment_size, uint32_t segment_flags, libcerror_error_t **error ) { libfdata_mapped_range_t *mapped_range = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_segments_array_append_segment"; int mapped_range_index = -1; if( data_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid data size.", function ); return( -1 ); } if( segment_file_index < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment file index value out of bounds.", function ); return( -1 ); } if( segment_offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment offset value out of bounds.", function ); return( -1 ); } if( libfdata_mapped_range_initialize( &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create mapped range.", function ); goto on_error; } if( libfdata_mapped_range_set( mapped_range, (off64_t) *data_size, segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped range values.", function ); goto on_error; } if( libcdata_array_append_entry( mapped_ranges_array, &mapped_range_index, (intptr_t *) mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append mapped range to array.", function ); goto on_error; } if( libfdata_range_initialize( &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create segment data range.", function ); goto on_error; } if( libfdata_range_set( segment_data_range, segment_file_index, segment_offset, segment_size, segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set segment data range values.", function ); goto on_error; } if( libcdata_array_append_entry( segments_array, segment_index, (intptr_t *) segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append data range to segments array.", function ); goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: segment: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, *segment_index, segment_file_index, segment_offset, segment_offset + segment_size, segment_size ); libcnotify_printf( "%s: segment: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, *segment_index, *data_size, *data_size + segment_size, segment_size ); libcnotify_printf( "\n" ); } #endif *data_size += segment_size; return( 1 ); on_error: if( segment_data_range != NULL ) { libfdata_range_free( &segment_data_range, NULL ); } if( mapped_range_index != -1 ) { libcdata_array_set_entry_by_index( mapped_ranges_array, mapped_range_index, NULL, NULL ); } if( mapped_range != NULL ) { libfdata_mapped_range_free( &mapped_range, NULL ); } return( -1 ); } /* Calculates the mapped ranges from the segments * Returns 1 if successful or -1 on error */ int libfdata_segments_array_calculate_mapped_ranges( libcdata_array_t *segments_array, libcdata_array_t *mapped_ranges_array, libcerror_error_t **error ) { libfdata_mapped_range_t *mapped_range = NULL; libfdata_range_t *segment_data_range = NULL; static char *function = "libfdata_segments_array_calculate_mapped_ranges"; off64_t mapped_offset = 0; off64_t segment_offset = 0; size64_t segment_size = 0; uint32_t segment_flags = 0; int number_of_segments = 0; int segment_file_index = 0; int segment_index = 0; if( libcdata_array_get_number_of_entries( segments_array, &number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of entries from segments array.", function ); return( -1 ); } for( segment_index = 0; segment_index < number_of_segments; segment_index++ ) { if( libcdata_array_get_entry_by_index( segments_array, segment_index, (intptr_t **) &segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from segments array.", function, segment_index ); return( -1 ); } if( libcdata_array_get_entry_by_index( mapped_ranges_array, segment_index, (intptr_t **) &mapped_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve entry: %d from mapped ranges array.", function, segment_index ); return( -1 ); } if( libfdata_range_get( segment_data_range, &segment_file_index, &segment_offset, &segment_size, &segment_flags, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment: %d data range values.", function, segment_index ); return( -1 ); } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "%s: segment: %03d\tfile index: %03d offset: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, segment_index, segment_file_index, segment_offset, segment_offset + segment_size, segment_size ); libcnotify_printf( "%s: segment: %03d\tmapped range: 0x%08" PRIx64 " - 0x%08" PRIx64 " (size: %" PRIu64 ")\n", function, segment_index, mapped_offset, mapped_offset + segment_size, segment_size ); } #endif if( libfdata_mapped_range_set( mapped_range, mapped_offset, segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set mapped range: %d values.", function, segment_index ); return( -1 ); } mapped_offset += (off64_t) segment_size; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( "\n" ); } #endif return( 1 ); } /* Retrieves the segment data range for a specific offset * Returns 1 if successful or -1 on error */ int libfdata_segments_array_get_data_range_at_offset( libcdata_array_t *segments_array, off64_t value_offset, off64_t *segment_data_offset, libfdata_range_t **segment_data_range, libcerror_error_t **error ) { static char *function = "libfdata_segments_array_get_data_range_at_offset"; size64_t segment_size = 0; int number_of_segments = 0; int segment_index = 0; if( segment_data_offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment data offset.", function ); return( -1 ); } if( segment_data_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid segment data range.", function ); return( -1 ); } if( libcdata_array_get_number_of_entries( segments_array, &number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of segments.", function ); return( -1 ); } if( number_of_segments <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of segments value out of bounds.", function ); return( -1 ); } for( segment_index = 0; segment_index < number_of_segments; segment_index++ ) { if( libcdata_array_get_entry_by_index( segments_array, segment_index, (intptr_t **) segment_data_range, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve segment data range: %d from array.", function, segment_index ); return( -1 ); } if( libfdata_range_get_size( *segment_data_range, &segment_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve size from segment data range: %d.", function, segment_index ); return( -1 ); } /* TODO what about compressed data ranges */ if( (size64_t) value_offset < segment_size ) { *segment_data_offset = value_offset; break; } value_offset -= segment_size; } if( segment_index >= number_of_segments ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } return( 1 ); } libfsapfs-20190210/libfdata/libfdata_mapped_range.c0000664000175000017500000001525413430101214024201 0ustar00lordyestalordyesta00000000000000/* * The (data) mapped range functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_libcerror.h" #include "libfdata_mapped_range.h" /* Creates a mapped range * Make sure the value mapped_range is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdata_mapped_range_initialize( libfdata_mapped_range_t **mapped_range, libcerror_error_t **error ) { static char *function = "libfdata_mapped_range_initialize"; if( mapped_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mapped range.", function ); return( -1 ); } if( *mapped_range != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid mapped range value already set.", function ); return( -1 ); } *mapped_range = memory_allocate_structure( libfdata_mapped_range_t ); if( *mapped_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create mapped range.", function ); goto on_error; } if( memory_set( *mapped_range, 0, sizeof( libfdata_mapped_range_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear mapped range.", function ); goto on_error; } ( *mapped_range )->offset = (off64_t) -1; return( 1 ); on_error: if( *mapped_range != NULL ) { memory_free( *mapped_range ); *mapped_range = NULL; } return( -1 ); } /* Frees a mapped range * Returns 1 if successful or -1 on error */ int libfdata_mapped_range_free( libfdata_mapped_range_t **mapped_range, libcerror_error_t **error ) { static char *function = "libfdata_mapped_range_free"; if( mapped_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mapped range.", function ); return( -1 ); } if( *mapped_range != NULL ) { memory_free( *mapped_range ); *mapped_range = NULL; } return( 1 ); } /* Clones (duplicates) the mapped range * Returns 1 if successful or -1 on error */ int libfdata_mapped_range_clone( libfdata_mapped_range_t **destination_mapped_range, libfdata_mapped_range_t *source_mapped_range, libcerror_error_t **error ) { static char *function = "libfdata_mapped_range_clone"; if( destination_mapped_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination mapped range.", function ); return( -1 ); } if( *destination_mapped_range != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination mapped range value already set.", function ); return( -1 ); } if( source_mapped_range == NULL ) { *destination_mapped_range = NULL; return( 1 ); } *destination_mapped_range = memory_allocate_structure( libfdata_mapped_range_t ); if( *destination_mapped_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination mapped range.", function ); goto on_error; } if( memory_copy( *destination_mapped_range, source_mapped_range, sizeof( libfdata_mapped_range_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy source to destination mapped range.", function ); goto on_error; } return( 1 ); on_error: if( *destination_mapped_range != NULL ) { memory_free( *destination_mapped_range ); *destination_mapped_range = NULL; } return( -1 ); } /* Retrieves the mapped range values * Returns 1 if successful or -1 on error */ int libfdata_mapped_range_get( libfdata_mapped_range_t *mapped_range, off64_t *offset, size64_t *size, libcerror_error_t **error ) { static char *function = "libfdata_mapped_range_get"; if( mapped_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mapped range.", function ); return( -1 ); } if( offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid offset.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } *offset = mapped_range->offset; *size = mapped_range->size; return( 1 ); } /* Sets the mapped range values * Returns 1 if successful or -1 on error */ int libfdata_mapped_range_set( libfdata_mapped_range_t *mapped_range, off64_t offset, size64_t size, libcerror_error_t **error ) { static char *function = "libfdata_mapped_range_set"; if( mapped_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid mapped range.", function ); return( -1 ); } if( offset < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid offset value less than zero.", function ); return( -1 ); } if( size > (size64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } mapped_range->offset = offset; mapped_range->size = size; return( 1 ); } libfsapfs-20190210/libfdata/libfdata_definitions.h0000664000175000017500000001550213430101214024073 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBFDATA_INTERNAL_DEFINITIONS_H ) #define _LIBFDATA_INTERNAL_DEFINITIONS_H #include /* Define HAVE_LOCAL_LIBFDATA for local use of libfdata */ #if !defined( HAVE_LOCAL_LIBFDATA ) #include /* The definitions in are copied here * for local use of libfdata */ #else #define LIBFDATA_VERSION 20181124 /* The libfdata version string */ #define LIBFDATA_VERSION_STRING "20181124" /* The library flag definitions */ enum LIBFDATA_FLAGS { /* The data is not managed by the library */ LIBFDATA_FLAG_DATA_NON_MANAGED = 0x00, /* The data is managed by the library */ LIBFDATA_FLAG_DATA_MANAGED = 0x01, /* The mapped ranges need to be calculated */ LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES = 0x80 }; /* The area element value flag definitions */ enum LIBFDATA_AREA_ELEMENT_VALUE_FLAGS { LIBFDATA_AREA_ELEMENT_VALUE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_AREA_ELEMENT_VALUE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The balanced tree leaf value flag definitions */ enum LIBFDATA_BTREE_LEAF_VALUE_FLAGS { LIBFDATA_BTREE_LEAF_VALUE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_BTREE_LEAF_VALUE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The data handle flag definitions */ enum LIBFDATA_DATA_HANDLE_FLAGS { LIBFDATA_DATA_HANDLE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_DATA_HANDLE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The key value flag definitions */ enum LIBFDATA_KEY_VALUE_FLAGS { LIBFDATA_KEY_VALUE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_KEY_VALUE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The list element value flag definitions */ enum LIBFDATA_LIST_ELEMENT_VALUE_FLAGS { LIBFDATA_LIST_ELEMENT_VALUE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_LIST_ELEMENT_VALUE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The range list value flag definitions */ enum LIBFDATA_RANGE_LIST_VALUE_FLAGS { LIBFDATA_RANGE_LIST_VALUE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_RANGE_LIST_VALUE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The tree node value flag definitions */ enum LIBFDATA_TREE_NODE_VALUE_FLAGS { LIBFDATA_TREE_NODE_VALUE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_TREE_NODE_VALUE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The vector element value flag definitions */ enum LIBFDATA_VECTOR_ELEMENT_VALUE_FLAGS { LIBFDATA_VECTOR_ELEMENT_VALUE_FLAG_NON_MANAGED = LIBFDATA_FLAG_DATA_NON_MANAGED, LIBFDATA_VECTOR_ELEMENT_VALUE_FLAG_MANAGED = LIBFDATA_FLAG_DATA_MANAGED }; /* The comparison function definitions */ enum LIBFDATA_COMPARE_DEFINITIONS { /* The first value is less than the second value */ LIBFDATA_COMPARE_LESS, /* The first value is less equal than the second value */ LIBFDATA_COMPARE_LESS_EQUAL, /* The first and second values are equal */ LIBFDATA_COMPARE_EQUAL, /* The first value is greater than the second value */ LIBFDATA_COMPARE_GREATER, /* The first value is greater equal than the second value */ LIBFDATA_COMPARE_GREATER_EQUAL }; /* The range flag definitions */ enum LIBFDATA_RANGE_FLAGS { /* The range is sparse */ LIBFDATA_RANGE_FLAG_IS_SPARSE = 0x00000001UL, /* The range is compressed */ LIBFDATA_RANGE_FLAG_IS_COMPRESSED = 0x00000002UL, /* User defined flags */ LIBFDATA_RANGE_FLAG_USER_DEFINED_1 = 0x00000100UL, LIBFDATA_RANGE_FLAG_USER_DEFINED_2 = 0x00000200UL, LIBFDATA_RANGE_FLAG_USER_DEFINED_3 = 0x00000400UL, LIBFDATA_RANGE_FLAG_USER_DEFINED_4 = 0x00000800UL, LIBFDATA_RANGE_FLAG_USER_DEFINED_5 = 0x00001000UL, LIBFDATA_RANGE_FLAG_USER_DEFINED_6 = 0x00002000UL, LIBFDATA_RANGE_FLAG_USER_DEFINED_7 = 0x00004000UL, LIBFDATA_RANGE_FLAG_USER_DEFINED_8 = 0x00008000UL, }; #define LIBFDATA_RANGE_FLAG_MAXIMUM \ LIBFDATA_RANGE_FLAG_USER_DEFINED_8 /* The read flag definitions */ enum LIBFDATA_READ_FLAGS { /* Flag to indicate cached data should be ignored */ LIBFDATA_READ_FLAG_IGNORE_CACHE = 0x01, /* Internal flag to indicate data should not be cached */ LIBFDATA_READ_FLAG_NO_CACHE = 0x80 }; /* The btree search flag definitions */ enum LIBFDATA_BTREE_SEARCH_FLAGS { /* Flag to additionally scan the previous node */ LIBFDATA_BTREE_SEARCH_FLAG_SCAN_PREVIOUS_NODE = 0x01, /* Flag to additionally scan the next node */ LIBFDATA_BTREE_SEARCH_FLAG_SCAN_NEXT_NODE = 0x02 }; /* The tree node flag definitions */ enum LIBFDATA_TREE_NODE_FLAGS { /* The node is a leaf */ LIBFDATA_TREE_NODE_FLAG_IS_LEAF = 0x02, /* The node is virtual */ LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL = 0x04, /* The node is deleted */ LIBFDATA_TREE_NODE_FLAG_IS_DELETED = 0x08, /* The sub nodes data range was set */ LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET = 0x10, /* The sub nodes have been read */ LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ = 0x20, /* The node data has been read (at least once) */ LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ = 0x40 }; /* The tree node insert flag definitions */ enum LIBFDATA_TREE_NODE_INSERT_FLAGS { /* Allow duplicate sub node values */ LIBFDATA_TREE_NODE_INSERT_FLAG_NON_UNIQUE_SUB_NODE_VALUES = 0x00, /* Only allow unique sub node values, no duplicates */ LIBFDATA_TREE_NODE_INSERT_FLAG_UNIQUE_SUB_NODE_VALUES = 0x01 }; #endif /* The btree node flag definitions */ enum LIBFDATA_BTREE_NODE_FLAGS { /* The node is a branch */ LIBFDATA_BTREE_NODE_FLAG_IS_BRANCH = 0x02, /* The node is a leaf */ LIBFDATA_BTREE_NODE_FLAG_IS_LEAF = 0x04 }; #define LIBFDATA_BTREE_NODE_LEVEL_UNLIMITED -1 /* The list flag definitions */ enum LIBFDATA_LIST_FLAGS { LIBFDATA_LIST_FLAG_HAS_MAPPED_OFFSET = 0x10 }; /* The list element flag definitions */ enum LIBFDATA_LIST_ELEMENT_FLAGS { LIBFDATA_LIST_ELEMENT_FLAG_HAS_MAPPED_SIZE = 0x10 }; #endif libfsapfs-20190210/libfdata/libfdata_range.c0000664000175000017500000001575713430101214022663 0ustar00lordyestalordyesta00000000000000/* * The range functions * * Copyright (C) 2010-2018, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libfdata_libcerror.h" #include "libfdata_range.h" /* Creates a range * Make sure the value range is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libfdata_range_initialize( libfdata_range_t **range, libcerror_error_t **error ) { static char *function = "libfdata_range_initialize"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range.", function ); return( -1 ); } if( *range != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid range value already set.", function ); return( -1 ); } *range = memory_allocate_structure( libfdata_range_t ); if( *range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create range.", function ); goto on_error; } if( memory_set( *range, 0, sizeof( libfdata_range_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear range.", function ); goto on_error; } ( *range )->file_index = -1; ( *range )->offset = (off64_t) -1; return( 1 ); on_error: if( *range != NULL ) { memory_free( *range ); *range = NULL; } return( -1 ); } /* Frees a range * Returns 1 if successful or -1 on error */ int libfdata_range_free( libfdata_range_t **range, libcerror_error_t **error ) { static char *function = "libfdata_range_free"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range.", function ); return( -1 ); } if( *range != NULL ) { memory_free( *range ); *range = NULL; } return( 1 ); } /* Clones (duplicates) the range * Returns 1 if successful or -1 on error */ int libfdata_range_clone( libfdata_range_t **destination_range, libfdata_range_t *source_range, libcerror_error_t **error ) { static char *function = "libfdata_range_clone"; if( destination_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination range.", function ); return( -1 ); } if( *destination_range != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination range value already set.", function ); return( -1 ); } if( source_range == NULL ) { *destination_range = NULL; return( 1 ); } *destination_range = memory_allocate_structure( libfdata_range_t ); if( *destination_range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination range.", function ); goto on_error; } if( memory_copy( *destination_range, source_range, sizeof( libfdata_range_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy source to destination range.", function ); goto on_error; } return( 1 ); on_error: if( *destination_range != NULL ) { memory_free( *destination_range ); *destination_range = NULL; } return( -1 ); } /* Retrieves the range values * Returns 1 if successful or -1 on error */ int libfdata_range_get( libfdata_range_t *range, int *file_index, off64_t *offset, size64_t *size, uint32_t *flags, libcerror_error_t **error ) { static char *function = "libfdata_range_get"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range.", function ); return( -1 ); } if( file_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid file index.", function ); return( -1 ); } if( offset == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid offset.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } if( flags == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid flags.", function ); return( -1 ); } *file_index = range->file_index; *offset = range->offset; *size = range->size; *flags = range->flags; return( 1 ); } /* Retrieves the size * Returns 1 if successful or -1 on error */ int libfdata_range_get_size( libfdata_range_t *range, size64_t *size, libcerror_error_t **error ) { static char *function = "libfdata_range_get_size"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range.", function ); return( -1 ); } if( size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid size.", function ); return( -1 ); } *size = range->size; return( 1 ); } /* Sets the range values * Returns 1 if successful or -1 on error */ int libfdata_range_set( libfdata_range_t *range, int file_index, off64_t offset, size64_t size, uint32_t flags, libcerror_error_t **error ) { static char *function = "libfdata_range_set"; if( range == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range.", function ); return( -1 ); } range->file_index = file_index; range->offset = offset; range->size = size; range->flags = flags; return( 1 ); } libfsapfs-20190210/libcdata/0000775000175000017500000000000013430101367017564 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcdata/libcdata_array.c0000664000175000017500000014112513430101142022664 0ustar00lordyestalordyesta00000000000000/* * Array functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_array.h" #include "libcdata_definitions.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_types.h" /* Creates an array * Make sure the value array is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcdata_array_initialize( libcdata_array_t **array, int number_of_entries, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_initialize"; size_t entries_size = 0; int number_of_allocated_entries = 0; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } if( *array != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid array value already set.", function ); return( -1 ); } if( number_of_entries < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid number of entries value less than zero.", function ); return( -1 ); } internal_array = memory_allocate_structure( libcdata_internal_array_t ); if( internal_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create array.", function ); goto on_error; } if( memory_set( internal_array, 0, sizeof( libcdata_internal_array_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear array.", function ); memory_free( internal_array ); return( -1 ); } /* Pre-allocate in blocks of 16 entries */ if( number_of_entries >= (int) ( INT_MAX - 16 ) ) { number_of_allocated_entries = INT_MAX; } else { number_of_allocated_entries = ( number_of_entries & ~( 15 ) ) + 16; } #if SIZEOF_INT <= SIZEOF_SIZE_T if( (size_t) number_of_allocated_entries > (size_t) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #else if( number_of_allocated_entries > (int) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid number of allocated entries value exceeds maximum.", function ); goto on_error; } entries_size = sizeof( intptr_t * ) * number_of_allocated_entries; if( entries_size > (size_t) LIBCDATA_ARRAY_ENTRIES_MEMORY_LIMIT ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid entries size value exceeds maximum.", function ); goto on_error; } internal_array->entries = (intptr_t **) memory_allocate( entries_size ); if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create array entries.", function ); goto on_error; } if( memory_set( internal_array->entries, 0, entries_size ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear array entries.", function ); goto on_error; } internal_array->number_of_allocated_entries = number_of_allocated_entries; internal_array->number_of_entries = number_of_entries; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_initialize( &( internal_array->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *array = (libcdata_array_t *) internal_array; return( 1 ); on_error: if( internal_array != NULL ) { if( internal_array->entries != NULL ) { memory_free( internal_array->entries ); } memory_free( internal_array ); } return( -1 ); } /* Frees an array * The entries are freed using the entry_free_function * Returns 1 if successful or -1 on error */ int libcdata_array_free( libcdata_array_t **array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_free"; int result = 1; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } if( *array != NULL ) { internal_array = (libcdata_internal_array_t *) *array; *array = NULL; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_free( &( internal_array->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( internal_array->entries != NULL ) { if( libcdata_internal_array_clear( internal_array, entry_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clear array.", function ); result = -1; } memory_free( internal_array->entries ); } memory_free( internal_array ); } return( result ); } /* Empties an array and frees its entries * The entries are freed using the entry_free_function * If the entry_free_function fails for a specific entry it is not freed and kept in the array * * Returns 1 if successful or -1 on error */ int libcdata_array_empty( libcdata_array_t *array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_empty"; int result = 1; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_internal_array_clear( internal_array, entry_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clear array.", function ); result = -1; } else { internal_array->number_of_entries = 0; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Clears an array and frees its entries * The entries are freed using the entry_free_function * If the entry_free_function fails for a specific entry it is not freed and kept in the array * * This function is not multi-thread safe acquire write lock before call * Returns 1 if successful or -1 on error */ int libcdata_internal_array_clear( libcdata_internal_array_t *internal_array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ) { static char *function = "libcdata_internal_array_clear"; int entry_free_result = 0; int entry_iterator = 0; int result = 1; if( internal_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } for( entry_iterator = 0; entry_iterator < internal_array->number_of_entries; entry_iterator++ ) { if( internal_array->entries[ entry_iterator ] != NULL ) { if( entry_free_function == NULL ) { entry_free_result = 1; } else { entry_free_result = entry_free_function( &( internal_array->entries[ entry_iterator ] ), error ); } if( entry_free_result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free array entry: %d.", function, entry_iterator ); result = -1; } else { internal_array->entries[ entry_iterator ] = NULL; } } } return( result ); } /* Clears an array and frees its entries * The entries are freed using the entry_free_function * If the entry_free_function fails for a specific entry it is not freed and kept in the array * * Returns 1 if successful or -1 on error */ int libcdata_array_clear( libcdata_array_t *array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_clear"; int result = 1; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_internal_array_clear( internal_array, entry_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to clear array.", function ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Clones the array and its entries * * The entries are cloned using the entry_clone_function * On error the entries are freed using the entry_free_function * * Returns 1 if successful or -1 on error */ int libcdata_array_clone( libcdata_array_t **destination_array, libcdata_array_t *source_array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), int (*entry_clone_function)( intptr_t **destination_entry, intptr_t *source_entry, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_array_t *internal_destination_array = NULL; libcdata_internal_array_t *internal_source_array = NULL; static char *function = "libcdata_array_clone"; int entry_iterator = 0; if( destination_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination array.", function ); return( -1 ); } if( *destination_array != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination array already set.", function ); return( -1 ); } if( entry_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry free function.", function ); return( -1 ); } if( entry_clone_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry clone function.", function ); return( -1 ); } if( source_array == NULL ) { *destination_array = NULL; return( 1 ); } internal_source_array = (libcdata_internal_array_t *) source_array; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_source_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_array_initialize( (libcdata_array_t **) &internal_destination_array, internal_source_array->number_of_entries, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination array.", function ); goto on_error; } if( internal_destination_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing destination array.", function ); goto on_error; } if( internal_source_array->entries != NULL ) { for( entry_iterator = 0; entry_iterator < internal_source_array->number_of_entries; entry_iterator++ ) { if( internal_source_array->entries[ entry_iterator ] != NULL ) { if( entry_clone_function( &( internal_destination_array->entries[ entry_iterator ] ), internal_source_array->entries[ entry_iterator ], error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination array entry: %d.", function, entry_iterator ); goto on_error; } } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_source_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); libcdata_array_free( (libcdata_array_t **) &internal_destination_array, entry_free_function, NULL ); return( -1 ); } #endif *destination_array = (libcdata_array_t *) internal_destination_array; return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_source_array->read_write_lock, NULL ); #endif if( internal_destination_array != NULL ) { libcdata_array_free( (libcdata_array_t **) &internal_destination_array, entry_free_function, NULL ); } return( -1 ); } /* Resizes an array * This function is not multi-thread safe acquire write lock before call * Returns 1 if successful or -1 on error */ int libcdata_internal_array_resize( libcdata_internal_array_t *internal_array, int number_of_entries, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ) { void *reallocation = NULL; static char *function = "libcdata_internal_array_resize"; size_t entries_size = 0; int entry_iterator = 0; int number_of_allocated_entries = 0; int result = 1; if( internal_array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } if( number_of_entries < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid number of entries value less than zero.", function ); return( -1 ); } if( number_of_entries > internal_array->number_of_allocated_entries ) { /* Pre-allocate in blocks of 16 entries */ if( number_of_entries >= (int) ( INT_MAX - 16 ) ) { number_of_allocated_entries = INT_MAX; } else { number_of_allocated_entries = ( number_of_entries & ~( 15 ) ) + 16; } #if SIZEOF_INT <= SIZEOF_SIZE_T if( (size_t) number_of_allocated_entries > (size_t) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #else if( number_of_allocated_entries > (int) ( SSIZE_MAX / sizeof( intptr_t * ) ) ) #endif { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid number of allocated entries value exceeds maximum.", function ); return( -1 ); } entries_size = sizeof( intptr_t * ) * number_of_allocated_entries; if( entries_size > (size_t) LIBCDATA_ARRAY_ENTRIES_MEMORY_LIMIT ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid entries size value exceeds maximum.", function ); return( -1 ); } reallocation = memory_reallocate( internal_array->entries, entries_size ); if( reallocation == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to resize array entries.", function ); return( -1 ); } internal_array->entries = (intptr_t **) reallocation; /* Cannot use memset reliably here. The loop below will be removed * when memset is used and the code is optimized. Therefore the loop * is not executed when memset fails. */ for( entry_iterator = internal_array->number_of_allocated_entries; entry_iterator < number_of_allocated_entries; entry_iterator++ ) { internal_array->entries[ entry_iterator ] = NULL; } internal_array->number_of_allocated_entries = number_of_allocated_entries; internal_array->number_of_entries = number_of_entries; } else if( number_of_entries > internal_array->number_of_entries ) { internal_array->number_of_entries = number_of_entries; } else if( internal_array->entries != NULL ) { for( entry_iterator = number_of_entries; entry_iterator < internal_array->number_of_entries; entry_iterator++ ) { if( internal_array->entries[ entry_iterator ] != NULL ) { if( entry_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry free function.", function ); return( -1 ); } if( entry_free_function( &( internal_array->entries[ entry_iterator ] ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free array entry: %d.", function, entry_iterator ); result = -1; } internal_array->entries[ entry_iterator ] = NULL; } } internal_array->number_of_entries = number_of_entries; } return( result ); } /* Resizes an array * Returns 1 if successful or -1 on error */ int libcdata_array_resize( libcdata_array_t *array, int number_of_entries, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_resize"; int result = 1; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( libcdata_internal_array_resize( internal_array, number_of_entries, entry_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize array.", function ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); } /* Reverses the order of the entries in the array * Returns 1 if successful or -1 on error */ int libcdata_array_reverse( libcdata_array_t *array, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; intptr_t *entry = NULL; static char *function = "libcdata_array_reverse"; int entry_iterator = 0; int reverse_entry_iterator = 0; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_array->number_of_entries > 1 ) { reverse_entry_iterator = internal_array->number_of_entries - 1; while( entry_iterator < reverse_entry_iterator ) { entry = internal_array->entries[ reverse_entry_iterator ]; internal_array->entries[ reverse_entry_iterator ] = internal_array->entries[ entry_iterator ]; internal_array->entries[ entry_iterator ] = entry; entry_iterator++; reverse_entry_iterator--; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the number of entries in the array * Returns 1 if successful or -1 on error */ int libcdata_array_get_number_of_entries( libcdata_array_t *array, int *number_of_entries, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_get_number_of_entries"; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( number_of_entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of entries.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *number_of_entries = internal_array->number_of_entries; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves a specific entry from the array * Returns 1 if successful or -1 on error */ int libcdata_array_get_entry_by_index( libcdata_array_t *array, int entry_index, intptr_t **entry, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_get_entry_by_index"; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } if( ( entry_index < 0 ) || ( entry_index >= internal_array->number_of_entries ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid entry index value out of bounds.", function ); return( -1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *entry = internal_array->entries[ entry_index ]; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves a specific entry from the array * * Uses the entry_compare_function to determine the similarity of the entries * The entry_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libcdata_array_get_entry_by_value( libcdata_array_t *array, intptr_t *entry, int (*entry_compare_function)( intptr_t *first_entry, intptr_t *second_entry, libcerror_error_t **error ), intptr_t **existing_entry, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_get_entry_by_value"; int compare_result = 0; int entry_index = 0; int result = 0; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } if( entry_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry compare function.", function ); return( -1 ); } if( existing_entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid existing entry.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif for( entry_index = 0; entry_index < internal_array->number_of_entries; entry_index++ ) { compare_result = entry_compare_function( entry, internal_array->entries[ entry_index ], error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare entry: %d.", function, entry_index ); result = -1; break; } else if( compare_result == LIBCDATA_COMPARE_EQUAL ) { *existing_entry = internal_array->entries[ entry_index ]; result = 1; break; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); } /* Sets a specific entry in the array * Returns 1 if successful or -1 on error */ int libcdata_array_set_entry_by_index( libcdata_array_t *array, int entry_index, intptr_t *entry, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_set_entry_by_index"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) intptr_t *backup_entry = NULL; #endif if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } if( ( entry_index < 0 ) || ( entry_index >= internal_array->number_of_entries ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid entry index value out of bounds.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_entry = internal_array->entries[ entry_index ]; #endif internal_array->entries[ entry_index ] = entry; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_array->entries[ entry_index ] = backup_entry; return( -1 ); #endif } /* Prepends an entry * Returns 1 if successful or -1 on error */ int libcdata_array_prepend_entry( libcdata_array_t *array, intptr_t *entry, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_prepend_entry"; int entry_iterator = 0; int result = 0; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif result = libcdata_internal_array_resize( internal_array, internal_array->number_of_entries + 1, NULL, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize array.", function ); result = -1; } else { for( entry_iterator = internal_array->number_of_entries - 1; entry_iterator > 0; entry_iterator-- ) { internal_array->entries[ entry_iterator ] = internal_array->entries[ entry_iterator - 1 ]; } internal_array->entries[ entry_iterator ] = entry; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { for( entry_iterator = 0; entry_iterator < ( internal_array->number_of_entries - 1 ); entry_iterator++ ) { internal_array->entries[ entry_iterator ] = internal_array->entries[ entry_iterator + 1 ]; } internal_array->entries[ entry_iterator ] = NULL; internal_array->number_of_entries -= 1; } return( -1 ); #endif } /* Appends an entry * Sets the entry index to the newly appended entry * Returns 1 if successful or -1 on error */ int libcdata_array_append_entry( libcdata_array_t *array, int *entry_index, intptr_t *entry, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_array_append_entry"; int result = 0; int safe_entry_index = 0; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } if( entry_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry index.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif safe_entry_index = internal_array->number_of_entries; result = libcdata_internal_array_resize( internal_array, internal_array->number_of_entries + 1, NULL, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize array.", function ); result = -1; } else { internal_array->entries[ safe_entry_index ] = entry; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif if( result == 1 ) { *entry_index = safe_entry_index; } return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { internal_array->entries[ safe_entry_index ] = NULL; internal_array->number_of_entries -= 1; } return( -1 ); #endif } /* Inserts an entry in the array * * Uses the entry_compare_function to determine the order of the entries * The entry_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate entry. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * * entry_index is set when the entry was successfully inserted * * Returns 1 if successful, 0 if the entry already exists or -1 on error */ int libcdata_array_insert_entry( libcdata_array_t *array, int *entry_index, intptr_t *entry, int (*entry_compare_function)( intptr_t *first_entry, intptr_t *second_entry, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; static char *function = "libcdata_tree_node_insert_node"; int compare_result = 0; int entry_iterator = 0; int result = 0; int safe_entry_index = 0; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } if( entry_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry index.", function ); return( -1 ); } if( entry_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry compare function.", function ); return( -1 ); } if( ( insert_flags & ~( LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported insert flags: 0x%02" PRIx8 ".", function, insert_flags ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif compare_result = LIBCDATA_COMPARE_GREATER; result = 1; for( entry_iterator = 0; entry_iterator < internal_array->number_of_entries; entry_iterator++ ) { compare_result = entry_compare_function( entry, internal_array->entries[ entry_iterator ], error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare entry: %d.", function, entry_iterator ); result = -1; } else if( compare_result == LIBCDATA_COMPARE_EQUAL ) { if( ( insert_flags & LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) != 0 ) { result = 0; } } else if( compare_result == LIBCDATA_COMPARE_LESS ) { result = 1; break; } else if( compare_result != LIBCDATA_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported entry compare function return value: %d.", function, compare_result ); result = -1; } if( result != 1 ) { break; } } if( result == 1 ) { result = libcdata_internal_array_resize( internal_array, internal_array->number_of_entries + 1, NULL, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, "%s: unable to resize array.", function ); result = -1; } else { safe_entry_index = entry_iterator; if( compare_result == LIBCDATA_COMPARE_LESS ) { for( entry_iterator = internal_array->number_of_entries - 1; entry_iterator > safe_entry_index; entry_iterator-- ) { internal_array->entries[ entry_iterator ] = internal_array->entries[ entry_iterator - 1 ]; } } internal_array->entries[ safe_entry_index ] = entry; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif if( result == 1 ) { *entry_index = safe_entry_index; } return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { for( entry_iterator = safe_entry_index; entry_iterator < ( internal_array->number_of_entries - 1 ); entry_iterator++ ) { internal_array->entries[ entry_iterator ] = internal_array->entries[ entry_iterator + 1 ]; } internal_array->entries[ entry_iterator ] = NULL; internal_array->number_of_entries -= 1; } return( -1 ); #endif } /* Removes an entry * Returns 1 if successful or -1 on error */ int libcdata_array_remove_entry( libcdata_array_t *array, int entry_index, intptr_t **entry, libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; intptr_t *safe_entry = NULL; static char *function = "libcdata_array_remove_entry"; int entry_iterator = 0; if( array == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid array.", function ); return( -1 ); } internal_array = (libcdata_internal_array_t *) array; if( internal_array->entries == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid array - missing entries.", function ); return( -1 ); } if( ( entry_index < 0 ) || ( entry_index >= internal_array->number_of_entries ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid entry index value out of bounds.", function ); return( -1 ); } if( entry == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid entry.", function ); return( -1 ); } *entry = NULL; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif safe_entry = internal_array->entries[ entry_index ]; for( entry_iterator = entry_index; entry_iterator < ( internal_array->number_of_entries - 1 ); entry_iterator++ ) { internal_array->entries[ entry_iterator ] = internal_array->entries[ entry_iterator + 1 ]; } internal_array->entries[ entry_iterator ] = NULL; internal_array->number_of_entries -= 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_array->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif *entry = safe_entry; return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_array->number_of_entries += 1; for( entry_iterator = ( internal_array->number_of_entries - 1 ); entry_iterator > entry_index; entry_iterator-- ) { internal_array->entries[ entry_iterator ] = internal_array->entries[ entry_iterator - 1 ]; } internal_array->entries[ entry_index ] = safe_entry; return( -1 ); #endif } libfsapfs-20190210/libcdata/libcdata_btree_node.c0000664000175000017500000011076213430101142023657 0ustar00lordyestalordyesta00000000000000/* * Balanced tree node functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_array.h" #include "libcdata_btree_node.h" #include "libcdata_btree_values_list.h" #include "libcdata_definitions.h" #include "libcdata_libcerror.h" #include "libcdata_list.h" #include "libcdata_list_element.h" #include "libcdata_tree_node.h" #include "libcdata_types.h" /* Retrieves the sub node for the specific value * * Uses the value_compare_function to determine the similarity of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * If value_compare_function is NULL the pointer of the value is used to check for a match * * Returns 1 if successful, 0 if the value does not exist or -1 on error * If there was no possible sub match values_list_element is set to NULL * it there is a possible sub match values_list_element is set but 0 is returned * If the node is a leaf node sub_node is not set to NULL */ int libcdata_btree_node_get_sub_node_by_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **sub_node, libcdata_list_element_t **values_list_element, libcerror_error_t **error ) { libcdata_list_t *values_list = NULL; libcdata_list_element_t *safe_values_list_element = NULL; libcdata_tree_node_t *safe_sub_node = NULL; intptr_t *values_list_value = NULL; static char *function = "libcdata_btree_node_get_sub_node_by_value"; int number_of_sub_nodes = 0; int number_of_values_list_elements = 0; int result = 0; int sub_node_index = 0; int values_list_element_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node.", function ); return( -1 ); } if( values_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid values list element.", function ); return( -1 ); } *sub_node = NULL; *values_list_element = NULL; if( libcdata_tree_node_get_value( node, (intptr_t **) &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values list.", function ); return( -1 ); } if( values_list != NULL ) { if( libcdata_list_get_number_of_elements( values_list, &number_of_values_list_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of values list elements.", function ); return( -1 ); } } if( libcdata_tree_node_get_number_of_sub_nodes( node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( ( number_of_sub_nodes != 0 ) && ( ( number_of_values_list_elements + 1 ) != number_of_sub_nodes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of values list elements value out of bounds.", function ); return( -1 ); } if( number_of_values_list_elements == 0 ) { return( 0 ); } if( libcdata_list_get_first_element( values_list, &safe_values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first values list element.", function ); return( -1 ); } if( number_of_sub_nodes != 0 ) { if( libcdata_tree_node_get_sub_node_by_index( node, 0, &safe_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node: 0.", function ); return( -1 ); } } for( values_list_element_index = 0; values_list_element_index < number_of_values_list_elements; values_list_element_index++ ) { if( libcdata_list_element_get_value( safe_values_list_element, &values_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from values list element: %d.", function, values_list_element_index ); return( -1 ); } if( values_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid values list element: %d - missing value.", function, values_list_element_index ); return( -1 ); } if( value_compare_function != NULL ) { result = value_compare_function( value, values_list_value, error ); } else if( value == values_list_value ) { result = LIBCDATA_COMPARE_EQUAL; } else { result = LIBCDATA_COMPARE_GREATER; } if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare value with values list value: %d.", function, values_list_element_index ); return( -1 ); } else if( result == LIBCDATA_COMPARE_EQUAL ) { *sub_node = safe_sub_node; *values_list_element = safe_values_list_element; return( 1 ); } else if( result == LIBCDATA_COMPARE_LESS ) { break; } else if( result != LIBCDATA_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value compare function return value: %d.", function, result ); return( -1 ); } if( libcdata_list_element_get_next_element( safe_values_list_element, &safe_values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from values list element: %d.", function, values_list_element_index ); return( -1 ); } if( number_of_sub_nodes != 0 ) { if( libcdata_tree_node_get_next_node( safe_sub_node, &safe_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next node from sub node: %d.", function, sub_node_index ); return( -1 ); } sub_node_index++; } } *sub_node = safe_sub_node; *values_list_element = safe_values_list_element; return( 0 ); } /* Retrieves the upper node for the specific value * * Uses the value_compare_function to determine the similarity of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if the value does not exist or -1 on error */ int libcdata_btree_node_get_upper_node_by_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **upper_node, libcdata_list_element_t **values_list_element, libcerror_error_t **error ) { libcdata_list_element_t *sub_values_list_element = NULL; libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_btree_node_get_upper_node_by_value"; int result = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value compare function.", function ); return( -1 ); } if( upper_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid upper node.", function ); return( -1 ); } if( values_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid values list element.", function ); return( -1 ); } *upper_node = NULL; *values_list_element = NULL; result = libcdata_btree_node_get_sub_node_by_value( node, value, value_compare_function, &sub_node, &sub_values_list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node by value.", function ); return( -1 ); } else if( sub_node != NULL ) { result = libcdata_btree_node_get_upper_node_by_value( sub_node, value, value_compare_function, upper_node, values_list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve upper node in sub node.", function ); return( -1 ); } } else if( result != 0 ) { *values_list_element = sub_values_list_element; } if( *upper_node == NULL ) { *upper_node = node; } return( result ); } /* Appends a value into a tree node * Returns 1 if successful or -1 on error */ int libcdata_btree_node_append_value( libcdata_tree_node_t *node, intptr_t *value, libcerror_error_t **error ) { libcdata_list_t *values_list = NULL; static char *function = "libcdata_btree_node_append_value"; if( libcdata_tree_node_get_value( node, (intptr_t **) &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values list.", function ); return( -1 ); } if( values_list == NULL ) { if( libcdata_list_initialize( &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create values list.", function ); return( -1 ); } if( libcdata_tree_node_set_value( node, (intptr_t *) values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set values list.", function ); libcdata_list_free( &values_list, NULL, NULL ); return( -1 ); } } if( libcdata_list_append_value( values_list, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append value to values list.", function ); return( -1 ); } return( 1 ); } /* Inserts a value into a tree node * The tree node must be the most upper node (leaf) * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if the value already exists or -1 on error */ int libcdata_btree_node_insert_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_list_t *values_list = NULL; static char *function = "libcdata_btree_node_insert_value"; int number_of_sub_nodes = 0; int result = 0; if( libcdata_tree_node_get_number_of_sub_nodes( node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( number_of_sub_nodes != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: cannot insert value in node with sub nodes.", function ); return( -1 ); } if( libcdata_tree_node_get_value( node, (intptr_t **) &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values list.", function ); return( -1 ); } if( values_list == NULL ) { if( libcdata_list_initialize( &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create values list.", function ); return( -1 ); } if( libcdata_tree_node_set_value( node, (intptr_t *) values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set values list.", function ); libcdata_list_free( &values_list, NULL, NULL ); return( -1 ); } } result = libcdata_list_insert_value( values_list, value, value_compare_function, LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert value in values list.", function ); return( -1 ); } return( result ); } /* Replaces a value in the tree node * The tree node must be the most upper node (leaf) in the first call * Returns 1 if successful or -1 on error */ int libcdata_btree_node_replace_value( libcdata_tree_node_t *node, intptr_t *value, intptr_t *replacement_value, libcerror_error_t **error ) { libcdata_list_element_t *values_list_element = NULL; libcdata_tree_node_t *parent_node = NULL; libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_btree_node_replace_value"; int result = 0; if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } if( replacement_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid replacement value.", function ); return( -1 ); } result = libcdata_btree_node_get_sub_node_by_value( node, value, NULL, &sub_node, &values_list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node by value.", function ); return( -1 ); } else if( result != 0 ) { if( libcdata_list_element_set_value( values_list_element, replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in values list element.", function ); return( -1 ); } } if( libcdata_tree_node_get_parent_node( node, &parent_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve parent node.", function ); return( -1 ); } if( parent_node != NULL ) { if( libcdata_btree_node_replace_value( parent_node, value, replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to replace value in parent node.", function ); return( -1 ); } } return( 1 ); } /* Flattens a tree node and its sub node * Returns 1 if successful or -1 on error */ int libcdata_btree_node_flatten_node( libcdata_tree_node_t **node, libcerror_error_t **error ) { libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_btree_node_flatten_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( libcdata_tree_node_get_first_sub_node( *node, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first sub node.", function ); return( -1 ); } if( libcdata_tree_node_remove_node( *node, sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove sub node from node.", function ); return( -1 ); } if( libcdata_tree_node_replace_node( *node, sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to replace node with sub node.", function ); libcdata_tree_node_append_node( *node, sub_node, NULL ); return( -1 ); } if( libcdata_tree_node_free( node, (int (*)(intptr_t **, libcerror_error_t **)) &libcdata_btree_values_list_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free node.", function ); return( -1 ); } *node = sub_node; return( 1 ); } /* Removes a sub node from the B-tree node * Returns 1 if successful or -1 on error */ int libcdata_btree_node_remove_sub_node( libcdata_tree_node_t *node, libcdata_tree_node_t **sub_node, libcerror_error_t **error ) { static char *function = "libcdata_btree_node_remove_sub_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node.", function ); return( -1 ); } if( libcdata_tree_node_remove_node( node, *sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove sub node from node.", function ); return( -1 ); } if( libcdata_tree_node_free( sub_node, (int (*)(intptr_t **, libcerror_error_t **)) &libcdata_btree_values_list_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free sub node.", function ); return( -1 ); } return( 1 ); } /* Removes a value from the tree node * The tree node must be the most upper node (leaf) in the first call * Returns 1 if successful, 0 if no such value or -1 on error */ int libcdata_btree_node_remove_value( libcdata_tree_node_t *node, intptr_t *value, intptr_t *replacement_value, libcerror_error_t **error ) { libcdata_list_t *sub_node_values_list = NULL; libcdata_list_t *values_list = NULL; libcdata_list_element_t *values_list_element = NULL; libcdata_tree_node_t *parent_node = NULL; libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_btree_node_remove_value"; int number_of_sub_nodes = 0; int number_of_values_list_elements = 0; int result = 0; int sub_node_number_of_sub_nodes = 0; int sub_node_number_of_values_list_elements = 0; if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } result = libcdata_btree_node_get_sub_node_by_value( node, value, NULL, &sub_node, &values_list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node by value.", function ); return( -1 ); } if( libcdata_tree_node_get_value( node, (intptr_t **) &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values list.", function ); return( -1 ); } if( libcdata_list_get_number_of_elements( values_list, &number_of_values_list_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of values list elements.", function ); return( -1 ); } if( libcdata_tree_node_get_number_of_sub_nodes( node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( sub_node != NULL ) { if( libcdata_tree_node_get_value( sub_node, (intptr_t **) &sub_node_values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node values list.", function ); return( -1 ); } if( libcdata_list_get_number_of_elements( sub_node_values_list, &sub_node_number_of_values_list_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub node number of values list elements.", function ); return( -1 ); } if( libcdata_tree_node_get_number_of_sub_nodes( sub_node, &sub_node_number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } /* If the sub node is empty remove it */ if( ( sub_node_number_of_sub_nodes == 0 ) && ( sub_node_number_of_values_list_elements == 0 ) ) { if( libcdata_btree_node_remove_sub_node( node, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove remaining sub node from node.", function ); return( -1 ); } if( libcdata_tree_node_get_number_of_sub_nodes( node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( values_list_element == NULL ) { if( libcdata_list_get_last_element( values_list, &values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve last values list element.", function ); return( -1 ); } if( libcdata_list_element_get_value( values_list_element, &replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from last values list element.", function ); return( -1 ); } } if( values_list_element != NULL ) { if( libcdata_btree_values_list_remove_element( values_list, &values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove element from values list.", function ); return( -1 ); } if( libcdata_list_get_number_of_elements( values_list, &number_of_values_list_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of values list elements.", function ); return( -1 ); } } } } if( number_of_sub_nodes != 0 ) { if( ( number_of_values_list_elements + 1 ) != number_of_sub_nodes ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid number of values list elements value out of bounds.", function ); return( -1 ); } /* If one sub node remains flatten the node */ if( number_of_sub_nodes == 1 ) { if( libcdata_btree_node_flatten_node( &node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to flatten node.", function ); return( -1 ); } if( libcdata_tree_node_get_value( node, (intptr_t **) &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values list.", function ); return( -1 ); } } /* If the sub node contains more than one values list elements * use the replacement value determined in the sub node */ else if( values_list_element != NULL ) { if( replacement_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid replacement value.", function ); return( -1 ); } if( libcdata_list_element_set_value( values_list_element, replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in values list element.", function ); return( -1 ); } } } /* In a leaf node remove the values list element from the list */ else if( values_list_element != NULL ) { if( libcdata_btree_values_list_replace_element_with_previous( values_list, &values_list_element, &replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to replace values list element with previous.", function ); return( -1 ); } } if( libcdata_tree_node_get_parent_node( node, &parent_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve parent node.", function ); return( -1 ); } if( parent_node != NULL ) { if( libcdata_btree_node_remove_value( parent_node, value, replacement_value, error ) == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove value from parent node.", function ); return( -1 ); } } return( result ); } /* Splits the node * Returns 1 if successful or -1 on error */ int libcdata_btree_node_split( libcdata_tree_node_t *node, libcerror_error_t **error ) { libcdata_list_t *split_values_list = NULL; libcdata_list_t *values_list = NULL; libcdata_list_element_t *values_list_element = NULL; libcdata_tree_node_t *sub_node = NULL; intptr_t *values_list_value = NULL; static char *function = "libcdata_btree_node_split"; int number_of_split_values_list_elements = 0; int number_of_sub_nodes = 0; int number_of_values_list_elements = 0; int split_values_list_element_index = 0; int sub_node_index = 0; int values_list_element_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( libcdata_tree_node_get_number_of_sub_nodes( node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); goto on_error; } if( number_of_sub_nodes != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: cannot split node with sub nodes.", function ); goto on_error; } if( libcdata_tree_node_get_value( node, (intptr_t **) &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values list.", function ); goto on_error; } /* Split to have about 25 values per sub node */ number_of_split_values_list_elements = 25; if( libcdata_list_initialize( &split_values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create split values list.", function ); goto on_error; } if( libcdata_tree_node_set_value( node, (intptr_t *) split_values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set split values list.", function ); goto on_error; } if( libcdata_list_get_number_of_elements( values_list, &number_of_values_list_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of values list elements.", function ); goto on_error; } if( libcdata_list_get_first_element( values_list, &values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first values list element.", function ); goto on_error; } for( values_list_element_index = 0; values_list_element_index < number_of_values_list_elements; values_list_element_index++ ) { if( libcdata_list_element_get_value( values_list_element, &values_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from values list element: %d.", function, values_list_element_index ); goto on_error; } if( values_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid values list element: %d - missing value.", function, values_list_element_index ); goto on_error; } if( sub_node == NULL ) { if( libcdata_tree_node_initialize( &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub node: %d.", function, sub_node_index ); goto on_error; } } if( libcdata_btree_node_append_value( sub_node, values_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append value: %d to sub node: %d.", function, values_list_element_index, sub_node_index ); goto on_error; } if( values_list_element_index >= split_values_list_element_index ) { if( ( values_list_element_index + 1 ) < number_of_values_list_elements ) { if( libcdata_list_append_value( split_values_list, values_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append value: %d to sub nodes values list.", function, values_list_element_index ); goto on_error; } } split_values_list_element_index += number_of_split_values_list_elements; if( libcdata_tree_node_append_node( node, sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append sub node: %d to node.", function, sub_node_index ); goto on_error; } sub_node = NULL; sub_node_index++; } if( libcdata_list_element_get_next_element( values_list_element, &values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from values list element: %d.", function, values_list_element_index ); goto on_error; } } if( sub_node != NULL ) { if( libcdata_tree_node_append_node( node, sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append sub node: %d to node.", function, sub_node_index ); goto on_error; } sub_node = NULL; sub_node_index++; } split_values_list = NULL; if( libcdata_list_free( &values_list, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free values list.", function ); goto on_error; } return( 1 ); on_error: if( sub_node != NULL ) { libcdata_tree_node_remove_node( node, sub_node, NULL ); libcdata_tree_node_free( &sub_node, NULL, NULL ); } if( split_values_list != NULL ) { libcdata_tree_node_empty( node, NULL, NULL ); libcdata_tree_node_set_value( node, (intptr_t *) values_list, NULL ); libcdata_list_free( &split_values_list, NULL, NULL ); } return( -1 ); } libfsapfs-20190210/libcdata/libcdata_tree_node.c0000664000175000017500000030423113430101142023511 0ustar00lordyestalordyesta00000000000000/* * Tree functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_definitions.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_list.h" #include "libcdata_tree_node.h" #include "libcdata_types.h" /* Creates a tree node * Make sure the value node is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcdata_tree_node_initialize( libcdata_tree_node_t **node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_initialize"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( *node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid node value already set.", function ); return( -1 ); } internal_node = memory_allocate_structure( libcdata_internal_tree_node_t ); if( internal_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create node.", function ); goto on_error; } if( memory_set( internal_node, 0, sizeof( libcdata_internal_tree_node_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear node.", function ); memory_free( internal_node ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_initialize( &( internal_node->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *node = (libcdata_tree_node_t *) internal_node; return( 1 ); on_error: if( internal_node != NULL ) { memory_free( internal_node ); } return( -1 ); } /* Frees a tree node, its sub nodes * Uses the value_free_function to free the value * Returns 1 if successful or -1 on error */ int libcdata_tree_node_free( libcdata_tree_node_t **node, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_free"; int result = 1; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( *node != NULL ) { internal_node = (libcdata_internal_tree_node_t *) *node; if( ( internal_node->parent_node != NULL ) || ( internal_node->previous_node != NULL ) || ( internal_node->next_node != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid node - connected to other nodes.", function ); return( -1 ); } *node = NULL; if( libcdata_tree_node_empty( (libcdata_tree_node_t *) internal_node, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty node.", function ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_free( &( internal_node->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( internal_node->value != NULL ) { if( value_free_function != NULL ) { if( value_free_function( &( internal_node->value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free value.", function ); result = -1; } internal_node->value = NULL; } } memory_free( internal_node ); } return( result ); } /* Empties a tree node and frees its sub nodes * Uses the value_free_function to free the value of the sub nodes * Returns 1 if successful or -1 on error */ int libcdata_tree_node_empty( libcdata_tree_node_t *tree_node, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; libcdata_tree_node_t *next_node = NULL; libcdata_tree_node_t *parent_node = NULL; libcdata_tree_node_t *previous_node = NULL; libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_tree_node_empty"; int number_of_sub_nodes = 0; int result = 1; int sub_node_index = 0; if( tree_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) tree_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif number_of_sub_nodes = internal_node->number_of_sub_nodes; sub_node = internal_node->first_sub_node; for( sub_node_index = 0; sub_node_index < number_of_sub_nodes; sub_node_index++ ) { if( libcdata_tree_node_get_nodes( sub_node, &parent_node, &previous_node, &next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve nodes of sub node: %d.", function, sub_node_index ); goto on_error; } if( previous_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid sub node: %d - previous node is set.", function, sub_node_index ); goto on_error; } internal_node->first_sub_node = next_node; if( internal_node->last_sub_node == sub_node ) { internal_node->last_sub_node = next_node; } internal_node->number_of_sub_nodes -= 1; if( next_node != NULL ) { if( libcdata_tree_node_set_previous_node( next_node, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of sub node: %d.", function, sub_node_index + 1 ); goto on_error; } } if( libcdata_tree_node_set_nodes( sub_node, NULL, NULL, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set nodes of sub node: %d.", function, sub_node_index ); goto on_error; } if( libcdata_tree_node_free( &sub_node, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free sub node: %d.", function, sub_node_index ); result = -1; } sub_node = next_node; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, NULL ); #endif return( -1 ); } /* Clones the tree node and its sub nodes * * The values are cloned using the value_clone_function * On error the values are freed using the value_free_function * * Returns 1 if successful or -1 on error */ int libcdata_tree_node_clone( libcdata_tree_node_t **destination_node, libcdata_tree_node_t *source_node, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_destination_node = NULL; libcdata_internal_tree_node_t *internal_source_node = NULL; libcdata_tree_node_t *destination_sub_node = NULL; libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_tree_node_clone"; int sub_node_index = 0; if( destination_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination tree node.", function ); return( -1 ); } if( *destination_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination tree node already set.", function ); return( -1 ); } if( value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value free function.", function ); return( -1 ); } if( value_clone_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value clone function.", function ); return( -1 ); } if( source_node == NULL ) { *destination_node = NULL; return( 1 ); } internal_source_node = (libcdata_internal_tree_node_t *) source_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_source_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_tree_node_initialize( (libcdata_tree_node_t **) &internal_destination_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination tree node.", function ); goto on_error; } if( internal_destination_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing destination tree node.", function ); goto on_error; } if( value_clone_function( &( internal_destination_node->value ), internal_source_node->value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination tree node value.", function ); goto on_error; } /* Clone the sub nodes */ sub_node = internal_source_node->first_sub_node; for( sub_node_index = 0; sub_node_index < internal_source_node->number_of_sub_nodes; sub_node_index++ ) { if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected in source sub node: %d.", function, sub_node_index ); goto on_error; } if( libcdata_tree_node_clone( &destination_sub_node, sub_node, value_free_function, value_clone_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, "%s: unable to create destination sub node: %d.", function, sub_node_index ); goto on_error; } if( libcdata_internal_tree_node_append_node( internal_destination_node, destination_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append sub node: %d to destination tree node.", function, sub_node_index ); goto on_error; } destination_sub_node = NULL; if( libcdata_tree_node_get_next_node( sub_node, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next node of sub node: %d.", function, sub_node_index ); goto on_error; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_source_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); libcdata_tree_node_free( &destination_sub_node, value_free_function, NULL ); return( -1 ); } #endif *destination_node = (libcdata_tree_node_t *) internal_destination_node; return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_source_node->read_write_lock, NULL ); #endif if( destination_sub_node != NULL ) { libcdata_tree_node_free( &destination_sub_node, value_free_function, NULL ); } if( internal_destination_node != NULL ) { libcdata_tree_node_free( (libcdata_tree_node_t **) &internal_destination_node, value_free_function, NULL ); } return( -1 ); } /* Retrieves the value from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_value( libcdata_tree_node_t *node, intptr_t **value, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_value"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *value = internal_node->value; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the value in the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_set_value( libcdata_tree_node_t *node, intptr_t *value, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_set_value"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) intptr_t *backup_value = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_value = internal_node->value; #endif internal_node->value = value; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_node->value = backup_value; return( -1 ); #endif } /* Retrieves the parent node from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_parent_node( libcdata_tree_node_t *node, libcdata_tree_node_t **parent_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_parent_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( parent_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid parent node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *parent_node = internal_node->parent_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the parent node in the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_set_parent_node( libcdata_tree_node_t *node, libcdata_tree_node_t *parent_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_set_parent_node"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_parent_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_parent_node = internal_node->parent_node; #endif internal_node->parent_node = parent_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_node->parent_node = backup_parent_node; return( -1 ); #endif } /* Retrieves the previous node from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_previous_node( libcdata_tree_node_t *node, libcdata_tree_node_t **previous_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_previous_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( previous_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid previous node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *previous_node = internal_node->previous_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the previous node in the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_set_previous_node( libcdata_tree_node_t *node, libcdata_tree_node_t *previous_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_set_previous_node"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_previous_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_previous_node = internal_node->previous_node; #endif internal_node->previous_node = previous_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_node->previous_node = backup_previous_node; return( -1 ); #endif } /* Retrieves the next node from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_next_node( libcdata_tree_node_t *node, libcdata_tree_node_t **next_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_next_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( next_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid next node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *next_node = internal_node->next_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the next node in the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_set_next_node( libcdata_tree_node_t *node, libcdata_tree_node_t *next_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_set_next_node"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_next_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_next_node = internal_node->next_node ; #endif internal_node->next_node = next_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_node->next_node = backup_next_node; return( -1 ); #endif } /* Retrieves the nodes from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t **parent_node, libcdata_tree_node_t **previous_node, libcdata_tree_node_t **next_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( parent_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid parent node.", function ); return( -1 ); } if( previous_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid previous node.", function ); return( -1 ); } if( next_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid next node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *parent_node = internal_node->parent_node; *previous_node = internal_node->previous_node; *next_node = internal_node->next_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the nodes in the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_set_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t *parent_node, libcdata_tree_node_t *previous_node, libcdata_tree_node_t *next_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_set_nodes"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_next_node = NULL; libcdata_tree_node_t *backup_parent_node = NULL; libcdata_tree_node_t *backup_previous_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_parent_node = internal_node->parent_node; backup_previous_node = internal_node->previous_node; backup_next_node = internal_node->next_node; #endif internal_node->parent_node = parent_node; internal_node->previous_node = previous_node; internal_node->next_node = next_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_node->parent_node = backup_parent_node; internal_node->previous_node = backup_previous_node; internal_node->next_node = backup_next_node; return( -1 ); #endif } /* Retrieves the first sub node from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_first_sub_node( libcdata_tree_node_t *node, libcdata_tree_node_t **first_sub_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_first_sub_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( first_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid first sub node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *first_sub_node = internal_node->first_sub_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the first sub node in the tree node * Returns 1 if successful or -1 on error */ int libcdata_internal_tree_node_set_first_sub_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *first_sub_node, libcerror_error_t **error ) { libcdata_tree_node_t *backup_first_sub_node = NULL; libcdata_tree_node_t *backup_previous_node = NULL; static char *function = "libcdata_internal_tree_node_set_first_sub_node"; if( internal_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( first_sub_node != NULL ) { if( libcdata_tree_node_get_previous_node( first_sub_node, &backup_previous_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous node of sub node.", function ); return( -1 ); } } backup_first_sub_node = internal_node->first_sub_node; if( first_sub_node != NULL ) { if( libcdata_tree_node_set_previous_node( first_sub_node, internal_node->first_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of sub node.", function ); goto on_error; } } if( internal_node->first_sub_node != NULL ) { if( libcdata_tree_node_set_next_node( internal_node->first_sub_node, first_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next node of first sub node.", function ); goto on_error; } } internal_node->first_sub_node = first_sub_node; return( 1 ); on_error: if( first_sub_node != NULL ) { libcdata_tree_node_set_previous_node( first_sub_node, backup_previous_node, NULL ); } if( backup_first_sub_node != NULL ) { libcdata_tree_node_set_next_node( backup_first_sub_node, NULL, NULL ); } internal_node->first_sub_node = backup_first_sub_node; return( -1 ); } /* Retrieves the last sub node from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_last_sub_node( libcdata_tree_node_t *node, libcdata_tree_node_t **last_sub_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_last_sub_node"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( last_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid last sub node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *last_sub_node = internal_node->last_sub_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the last sub node in the tree node * Returns 1 if successful or -1 on error */ int libcdata_internal_tree_node_set_last_sub_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *last_sub_node, libcerror_error_t **error ) { libcdata_tree_node_t *backup_last_sub_node = NULL; libcdata_tree_node_t *backup_previous_node = NULL; static char *function = "libcdata_internal_tree_node_set_last_sub_node"; if( internal_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( last_sub_node != NULL ) { if( libcdata_tree_node_get_previous_node( last_sub_node, &backup_previous_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous node of sub node.", function ); return( -1 ); } } backup_last_sub_node = internal_node->last_sub_node; if( last_sub_node != NULL ) { if( libcdata_tree_node_set_previous_node( last_sub_node, internal_node->last_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of sub node.", function ); goto on_error; } } if( internal_node->last_sub_node != NULL ) { if( libcdata_tree_node_set_next_node( internal_node->last_sub_node, last_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next node of last sub node.", function ); goto on_error; } } internal_node->last_sub_node = last_sub_node; return( 1 ); on_error: if( last_sub_node != NULL ) { libcdata_tree_node_set_previous_node( last_sub_node, backup_previous_node, NULL ); } if( backup_last_sub_node != NULL ) { libcdata_tree_node_set_next_node( backup_last_sub_node, NULL, NULL ); } internal_node->last_sub_node = backup_last_sub_node; return( -1 ); } /* Retrieves the sub nodes from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_sub_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t **first_sub_node, libcdata_tree_node_t **last_sub_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_sub_get_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( first_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid first sub node.", function ); return( -1 ); } if( last_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid last sub node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *first_sub_node = internal_node->first_sub_node; *last_sub_node = internal_node->last_sub_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the sub nodes in the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_set_sub_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t *first_sub_node, libcdata_tree_node_t *last_sub_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_set_sub_nodes"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_first_sub_node = NULL; libcdata_tree_node_t *backup_last_sub_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_sub_node = internal_node->first_sub_node; backup_last_sub_node = internal_node->last_sub_node; #endif internal_node->first_sub_node = first_sub_node; internal_node->last_sub_node = last_sub_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_node->first_sub_node = backup_first_sub_node; internal_node->last_sub_node = backup_last_sub_node; return( -1 ); #endif } /* Appends a sub tree node to the node * Returns 1 if successful or -1 on error */ int libcdata_internal_tree_node_append_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *node_to_append, libcerror_error_t **error ) { libcdata_tree_node_t *to_append_next_node = NULL; libcdata_tree_node_t *to_append_parent_node = NULL; libcdata_tree_node_t *to_append_previous_node = NULL; static char *function = "libcdata_internal_tree_node_append_node"; if( internal_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( node_to_append == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node to append.", function ); return( -1 ); } if( libcdata_tree_node_get_nodes( node_to_append, &to_append_parent_node, &to_append_previous_node, &to_append_next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve nodes of node to append.", function ); return( -1 ); } if( ( to_append_parent_node != NULL ) || ( to_append_previous_node != NULL ) || ( to_append_next_node != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid node to append - node is already part of a tree.", function ); return( -1 ); } if( internal_node->number_of_sub_nodes == 0 ) { if( internal_node->first_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: corruption detected - first sub node already set.", function ); return( -1 ); } if( internal_node->last_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: corruption detected - last sub node already set.", function ); return( -1 ); } internal_node->first_sub_node = node_to_append; internal_node->last_sub_node = node_to_append; } else { if( internal_node->first_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first sub node.", function ); return( -1 ); } if( internal_node->last_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last sub node.", function ); return( -1 ); } if( libcdata_tree_node_set_next_node( internal_node->last_sub_node, node_to_append, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next node of last sub node.", function ); return( -1 ); } if( libcdata_tree_node_set_previous_node( node_to_append, internal_node->last_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of node to append.", function ); return( -1 ); } internal_node->last_sub_node = node_to_append; } if( libcdata_tree_node_set_parent_node( node_to_append, (libcdata_tree_node_t *) internal_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set parent node of node to append.", function ); return( -1 ); } internal_node->number_of_sub_nodes += 1; return( 1 ); } /* Appends a tree node to the node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_append_node( libcdata_tree_node_t *node, libcdata_tree_node_t *node_to_append, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; libcdata_tree_node_t *to_append_next_node = NULL; libcdata_tree_node_t *to_append_parent_node = NULL; libcdata_tree_node_t *to_append_previous_node = NULL; static char *function = "libcdata_tree_node_append_node"; int result = 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_first_sub_node = NULL; libcdata_tree_node_t *backup_last_sub_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( internal_node->number_of_sub_nodes == 0 ) { if( internal_node->first_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - first sub node already set.", function ); return( -1 ); } if( internal_node->last_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - last sub node already set.", function ); return( -1 ); } } else { if( internal_node->first_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first sub node.", function ); return( -1 ); } if( internal_node->last_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last sub node.", function ); return( -1 ); } } if( libcdata_tree_node_get_nodes( node_to_append, &to_append_parent_node, &to_append_previous_node, &to_append_next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve nodes of node to append.", function ); return( -1 ); } if( ( to_append_parent_node != NULL ) || ( to_append_previous_node != NULL ) || ( to_append_next_node != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid node to append - node is already part of a tree.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_sub_node = internal_node->first_sub_node; backup_last_sub_node = internal_node->last_sub_node; #endif result = libcdata_tree_node_set_parent_node( node_to_append, node, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set parent node of node to append.", function ); result = -1; } if( result == 1 ) { result = libcdata_tree_node_set_previous_node( node_to_append, internal_node->last_sub_node, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of node to append.", function ); libcdata_tree_node_set_parent_node( node_to_append, NULL, NULL ); result = -1; } } if( result == 1 ) { if( internal_node->last_sub_node != NULL ) { result = libcdata_tree_node_set_next_node( internal_node->last_sub_node, node_to_append, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next node of last sub node.", function ); libcdata_tree_node_set_parent_node( node_to_append, NULL, NULL ); libcdata_tree_node_set_previous_node( node_to_append, NULL, NULL ); result = -1; } } } if( result == 1 ) { if( internal_node->first_sub_node == NULL ) { internal_node->first_sub_node = node_to_append; } internal_node->last_sub_node = node_to_append; internal_node->number_of_sub_nodes += 1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: libcdata_tree_node_set_parent_node( node_to_append, NULL, NULL ); libcdata_tree_node_set_previous_node( node_to_append, NULL, NULL ); internal_node->first_sub_node = backup_first_sub_node; internal_node->last_sub_node = backup_last_sub_node; internal_node->number_of_sub_nodes -= 1; return( -1 ); #endif } /* Appends a value to the node * Creates a new sub tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_append_value( libcdata_tree_node_t *node, intptr_t *value, libcerror_error_t **error ) { libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_tree_node_append_value"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( libcdata_tree_node_initialize( &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub node.", function ); goto on_error; } if( libcdata_tree_node_set_value( sub_node, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set value in sub node.", function ); goto on_error; } if( libcdata_tree_node_append_node( node, sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append sub node to node.", function ); goto on_error; } return( 1 ); on_error: if( sub_node != NULL ) { libcdata_tree_node_free( &sub_node, NULL, NULL ); } return( -1 ); } /* Retrieves the node which the sub node should be inserted before * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate value. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * * On return sub_node will be set to NULL if the sub node should be inserted at the end of the list. * * Returns 1 if successful, 0 if a sub node containing the value already exists or -1 on error */ int libcdata_internal_tree_node_insert_node_find_sub_node( libcdata_internal_tree_node_t *internal_node, intptr_t *value_to_insert, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, int *sub_node_index, libcdata_tree_node_t **sub_node, libcerror_error_t **error ) { libcdata_tree_node_t *sub_tree_node = NULL; intptr_t *sub_node_value = NULL; static char *function = "libcdata_internal_tree_node_insert_node_find_sub_node"; int compare_result = 0; int result = 1; int safe_sub_node_index = 0; if( internal_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value compare function.", function ); return( -1 ); } if( ( insert_flags & ~( LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported insert flags: 0x%02" PRIx8 ".", function, insert_flags ); return( -1 ); } if( sub_node_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node index.", function ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node.", function ); return( -1 ); } sub_tree_node = internal_node->first_sub_node; for( safe_sub_node_index = 0; safe_sub_node_index < internal_node->number_of_sub_nodes; safe_sub_node_index++ ) { if( libcdata_tree_node_get_value( sub_tree_node, &sub_node_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value of sub node: %d.", function, safe_sub_node_index ); return( -1 ); } compare_result = value_compare_function( value_to_insert, sub_node_value, error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare sub node: %d.", function, safe_sub_node_index ); return( -1 ); } else if( compare_result == LIBCDATA_COMPARE_EQUAL ) { if( ( insert_flags & LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) != 0 ) { result = 0; break; } } else if( compare_result == LIBCDATA_COMPARE_LESS ) { break; } else if( compare_result != LIBCDATA_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value compare function return value: %d.", function, result ); return( -1 ); } if( libcdata_tree_node_get_next_node( sub_tree_node, &sub_tree_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next node of sub node: %d.", function, safe_sub_node_index ); return( -1 ); } } if( ( compare_result == LIBCDATA_COMPARE_EQUAL ) || ( compare_result == LIBCDATA_COMPARE_LESS ) ) { *sub_node_index = safe_sub_node_index; *sub_node = sub_tree_node; } else { *sub_node_index = internal_node->number_of_sub_nodes; *sub_node = NULL; } return( result ); } /* Inserts the node before the sub node * If sub_node is NULL the node is inserted before or as the first sub node in the list * Returns 1 if successful, or -1 on error */ int libcdata_internal_tree_node_insert_node_before_sub_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *sub_node, libcdata_tree_node_t *node_to_insert, libcerror_error_t **error ) { libcdata_tree_node_t *backup_first_sub_node = NULL; libcdata_tree_node_t *backup_last_sub_node = NULL; libcdata_tree_node_t *previous_node = NULL; static char *function = "libcdata_internal_tree_node_insert_node_before_sub_node"; if( internal_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( node_to_insert == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node to insert.", function ); return( -1 ); } backup_first_sub_node = internal_node->first_sub_node; backup_last_sub_node = internal_node->last_sub_node; if( sub_node != NULL ) { if( libcdata_tree_node_get_previous_node( sub_node, &previous_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous node from sub node.", function ); return( -1 ); } } if( internal_node->number_of_sub_nodes == 0 ) { internal_node->first_sub_node = node_to_insert; internal_node->last_sub_node = node_to_insert; } else if( sub_node == NULL ) { if( libcdata_internal_tree_node_set_last_sub_node( internal_node, node_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set last sub node.", function ); goto on_error; } } else { if( libcdata_tree_node_set_nodes( node_to_insert, (libcdata_tree_node_t *) internal_node, previous_node, sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set parent, previous and next node of node to insert.", function ); goto on_error; } if( internal_node->first_sub_node == sub_node ) { internal_node->first_sub_node = node_to_insert; } else { if( libcdata_tree_node_set_next_node( previous_node, node_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next node of previous node.", function ); goto on_error; } } if( libcdata_tree_node_set_previous_node( sub_node, node_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of sub node.", function ); goto on_error; } } if( libcdata_tree_node_set_parent_node( node_to_insert, (libcdata_tree_node_t *) internal_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set parent node of node to insert.", function ); goto on_error; } internal_node->number_of_sub_nodes += 1; return( 1 ); on_error: if( node_to_insert != NULL ) { libcdata_tree_node_set_nodes( node_to_insert, NULL, NULL, NULL, NULL ); } if( previous_node != NULL ) { libcdata_tree_node_set_next_node( previous_node, sub_node, NULL ); } if( sub_node != NULL ) { libcdata_tree_node_set_previous_node( sub_node, previous_node, NULL ); } internal_node->first_sub_node = backup_first_sub_node; internal_node->last_sub_node = backup_last_sub_node; return( -1 ); } /* Inserts a sub node in the node * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate value. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * * Returns 1 if successful, 0 if the node already exists or -1 on error */ int libcdata_tree_node_insert_node( libcdata_tree_node_t *node, libcdata_tree_node_t *node_to_insert, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; libcdata_tree_node_t *next_node = NULL; libcdata_tree_node_t *parent_node = NULL; libcdata_tree_node_t *previous_node = NULL; libcdata_tree_node_t *sub_node = NULL; intptr_t *value_to_insert = NULL; static char *function = "libcdata_tree_node_insert_node"; int result = 1; int sub_node_index = 0; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_first_sub_node = NULL; libcdata_tree_node_t *backup_last_sub_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( internal_node->number_of_sub_nodes == 0 ) { if( internal_node->first_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - first sub node already set.", function ); return( -1 ); } if( internal_node->last_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - last sub node already set.", function ); return( -1 ); } } else { if( internal_node->first_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first sub node.", function ); return( -1 ); } if( internal_node->last_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last sub node.", function ); return( -1 ); } } if( node_to_insert == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node to insert.", function ); return( -1 ); } if( value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value compare function.", function ); return( -1 ); } if( ( insert_flags & ~( LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported insert flags: 0x%02" PRIx8 ".", function, insert_flags ); return( -1 ); } if( libcdata_tree_node_get_nodes( node_to_insert, &parent_node, &previous_node, &next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve nodes of node to insert.", function ); return( -1 ); } if( ( parent_node != NULL ) || ( previous_node != NULL ) || ( next_node != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid node to insert - node is already part of a tree.", function ); return( -1 ); } if( libcdata_tree_node_get_value( node_to_insert, &value_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from node to insert.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_sub_node = internal_node->first_sub_node; backup_last_sub_node = internal_node->last_sub_node; #endif result = libcdata_internal_tree_node_insert_node_find_sub_node( internal_node, value_to_insert, value_compare_function, insert_flags, &sub_node_index, &sub_node, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to find sub node in tree node.", function ); result = -1; } else if( result == 1 ) { if( sub_node != NULL ) { if( libcdata_tree_node_get_nodes( sub_node, &parent_node, &previous_node, &next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve nodes of sub node: %d.", function, sub_node_index ); result = -1; } } if( result == 1 ) { if( libcdata_internal_tree_node_insert_node_before_sub_node( internal_node, sub_node, node_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert node before tree sub node.", function ); result = -1; } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { if( node_to_insert != NULL ) { libcdata_tree_node_set_nodes( node_to_insert, NULL, NULL, NULL, NULL ); } if( previous_node != NULL ) { libcdata_tree_node_set_next_node( previous_node, sub_node, NULL ); } if( sub_node != NULL ) { libcdata_tree_node_set_previous_node( sub_node, previous_node, NULL ); } internal_node->first_sub_node = backup_first_sub_node; internal_node->last_sub_node = backup_last_sub_node; internal_node->number_of_sub_nodes -= 1; } return( -1 ); #endif } /* Inserts a value in the node * * Creates a new sub tree node * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate value. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * * Returns 1 if successful, 0 if the node already exists or -1 on error */ int libcdata_tree_node_insert_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ) { libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_tree_node_insert_value"; int result = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } if( libcdata_tree_node_initialize( &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create sub node.", function ); goto on_error; } if( libcdata_tree_node_set_value( sub_node, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to set value in sub node.", function ); goto on_error; } result = libcdata_tree_node_insert_node( node, sub_node, value_compare_function, insert_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert node.", function ); goto on_error; } else if( result == 0 ) { if( libcdata_tree_node_free( &sub_node, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free sub node.", function ); goto on_error; } } return( result ); on_error: if( sub_node != NULL ) { libcdata_tree_node_free( &sub_node, NULL, NULL ); } return( -1 ); } /* Replaces a tree node with another tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_replace_node( libcdata_tree_node_t *node, libcdata_tree_node_t *replacement_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; libcdata_tree_node_t *backup_parent_first_sub_node = NULL; libcdata_tree_node_t *backup_parent_last_sub_node = NULL; libcdata_tree_node_t *next_node = NULL; libcdata_tree_node_t *parent_first_sub_node = NULL; libcdata_tree_node_t *parent_last_sub_node = NULL; libcdata_tree_node_t *parent_node = NULL; libcdata_tree_node_t *previous_node = NULL; libcdata_tree_node_t *replacement_next_node = NULL; libcdata_tree_node_t *replacement_parent_node = NULL; libcdata_tree_node_t *replacement_previous_node = NULL; static char *function = "libcdata_tree_node_replace_node"; int result = 1; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( replacement_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid replacement node.", function ); return( -1 ); } if( replacement_node == node ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: cannot replace node with itself.", function ); return( -1 ); } if( libcdata_tree_node_get_nodes( replacement_node, &replacement_parent_node, &replacement_previous_node, &replacement_next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve nodes of replacement node.", function ); return( -1 ); } if( ( replacement_parent_node != NULL ) || ( replacement_previous_node != NULL ) || ( replacement_next_node != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid replacement node - already part of a tree.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif parent_node = internal_node->parent_node; previous_node = internal_node->previous_node; next_node = internal_node->next_node; if( parent_node != NULL ) { if( libcdata_tree_node_get_sub_nodes( parent_node, &parent_first_sub_node, &parent_last_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve sub nodes of parent node.", function ); result = -1; } } if( result == 1 ) { if( libcdata_tree_node_set_nodes( replacement_node, parent_node, previous_node, next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set nodes of replacement node.", function ); result = -1; } } if( result == 1 ) { if( parent_node != NULL ) { backup_parent_first_sub_node = parent_first_sub_node; backup_parent_last_sub_node = parent_last_sub_node; if( parent_first_sub_node == node ) { parent_first_sub_node = replacement_node; } if( parent_last_sub_node == node ) { parent_last_sub_node = replacement_node; } if( libcdata_tree_node_set_sub_nodes( parent_node, parent_first_sub_node, parent_last_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set sub nodes of parent node.", function ); libcdata_tree_node_set_nodes( replacement_node, NULL, NULL, NULL, NULL ); result = -1; } } } if( result == 1 ) { if( previous_node != NULL ) { if( libcdata_tree_node_set_next_node( previous_node, replacement_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next node of previous node.", function ); libcdata_tree_node_set_nodes( replacement_node, NULL, NULL, NULL, NULL ); if( parent_node != NULL ) { libcdata_tree_node_set_sub_nodes( parent_node, backup_parent_first_sub_node, backup_parent_last_sub_node, NULL ); } result = -1; } } } if( result == 1 ) { if( next_node != NULL ) { if( libcdata_tree_node_set_previous_node( next_node, replacement_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of next node.", function ); libcdata_tree_node_set_nodes( replacement_node, NULL, NULL, NULL, NULL ); if( parent_node != NULL ) { libcdata_tree_node_set_sub_nodes( parent_node, backup_parent_first_sub_node, backup_parent_last_sub_node, NULL ); } if( previous_node != NULL ) { libcdata_tree_node_set_next_node( previous_node, node, NULL ); } result = -1; } } } if( result == 1 ) { internal_node->parent_node = NULL; internal_node->previous_node = NULL; internal_node->next_node = NULL; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { libcdata_tree_node_set_nodes( replacement_node, NULL, NULL, NULL, NULL ); if( parent_node != NULL ) { libcdata_tree_node_set_sub_nodes( parent_node, backup_parent_first_sub_node, backup_parent_last_sub_node, NULL ); } if( previous_node != NULL ) { libcdata_tree_node_set_next_node( previous_node, node, NULL ); } if( next_node != NULL ) { libcdata_tree_node_set_previous_node( next_node, node, NULL ); } internal_node->parent_node = parent_node; internal_node->previous_node = previous_node; internal_node->next_node = next_node; } return( -1 ); #endif } /* Removes a sub tree node from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_remove_node( libcdata_tree_node_t *node, libcdata_tree_node_t *sub_node_to_remove, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; libcdata_tree_node_t *next_node = NULL; libcdata_tree_node_t *parent_node = NULL; libcdata_tree_node_t *previous_node = NULL; static char *function = "libcdata_tree_node_remove_node"; int result = 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_tree_node_t *backup_first_sub_node = NULL; libcdata_tree_node_t *backup_last_sub_node = NULL; #endif if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( internal_node->number_of_sub_nodes == 0 ) { if( internal_node->first_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - first sub node already set.", function ); return( -1 ); } if( internal_node->last_sub_node != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - last sub node already set.", function ); return( -1 ); } } else { if( internal_node->first_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first sub node.", function ); return( -1 ); } if( internal_node->last_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last sub node.", function ); return( -1 ); } } if( sub_node_to_remove == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node to remove.", function ); return( -1 ); } if( internal_node->number_of_sub_nodes == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing number of sub nodes.", function ); return( -1 ); } if( internal_node->first_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing first sub node.", function ); return( -1 ); } if( internal_node->last_sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing last sub node.", function ); return( -1 ); } if( libcdata_tree_node_get_nodes( sub_node_to_remove, &parent_node, &previous_node, &next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve nodes of node to remove.", function ); return( -1 ); } if( parent_node != node ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid node to remove - parent node mismatch.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_sub_node = internal_node->first_sub_node; backup_last_sub_node = internal_node->last_sub_node; #endif result = libcdata_tree_node_set_nodes( sub_node_to_remove, NULL, NULL, NULL, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set nodes of node to remove.", function ); result = -1; } if( result == 1 ) { if( next_node != NULL ) { if( libcdata_tree_node_set_previous_node( next_node, previous_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous node of next node.", function ); libcdata_tree_node_set_nodes( sub_node_to_remove, parent_node, previous_node, next_node, NULL ); result = -1; } } } if( result == 1 ) { if( previous_node != NULL ) { if( libcdata_tree_node_set_next_node( previous_node, next_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next node of previous node.", function ); libcdata_tree_node_set_nodes( sub_node_to_remove, parent_node, previous_node, next_node, NULL ); if( next_node != NULL ) { libcdata_tree_node_set_previous_node( next_node, sub_node_to_remove, NULL ); } result = -1; } } } if( result == 1 ) { if( internal_node->first_sub_node == sub_node_to_remove ) { internal_node->first_sub_node = next_node; } if( internal_node->last_sub_node == sub_node_to_remove ) { internal_node->last_sub_node = previous_node; } internal_node->number_of_sub_nodes -= 1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { libcdata_tree_node_set_nodes( sub_node_to_remove, parent_node, previous_node, next_node, NULL ); if( next_node != NULL ) { libcdata_tree_node_set_previous_node( next_node, sub_node_to_remove, NULL ); } if( previous_node != NULL ) { libcdata_tree_node_set_next_node( previous_node, sub_node_to_remove, NULL ); } internal_node->first_sub_node = backup_first_sub_node; internal_node->last_sub_node = backup_last_sub_node; internal_node->number_of_sub_nodes += 1; } return( -1 ); #endif } /* Retrieves the number of sub nodes in the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_number_of_sub_nodes( libcdata_tree_node_t *node, int *number_of_sub_nodes, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; static char *function = "libcdata_tree_node_get_number_of_sub_nodes"; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( number_of_sub_nodes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of sub nodes.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *number_of_sub_nodes = internal_node->number_of_sub_nodes; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves a specific sub node from the tree node * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_sub_node_by_index( libcdata_tree_node_t *node, int sub_node_index, libcdata_tree_node_t **sub_node, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; libcdata_tree_node_t *safe_sub_node = NULL; static char *function = "libcdata_tree_node_get_sub_node_by_index"; int result = -1; int sub_node_iterator = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( ( sub_node_index < 0 ) || ( sub_node_index >= internal_node->number_of_sub_nodes ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid sub node index value out of bounds.", function ); return( -1 ); } if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid sub node.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif /* Check if the sub nodes should be searched front to back * or back to front */ if( sub_node_index < ( internal_node->number_of_sub_nodes / 2 ) ) { safe_sub_node = internal_node->first_sub_node; for( sub_node_iterator = 0; sub_node_iterator < internal_node->number_of_sub_nodes; sub_node_iterator++ ) { if( sub_node_iterator == sub_node_index ) { result = 1; break; } if( libcdata_tree_node_get_next_node( safe_sub_node, &safe_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next node of sub node: %d.", function, sub_node_iterator ); goto on_error; } } } else { safe_sub_node = internal_node->last_sub_node; for( sub_node_iterator = ( internal_node->number_of_sub_nodes - 1 ); sub_node_iterator >= 0; sub_node_iterator-- ) { if( sub_node_iterator == sub_node_index ) { result = 1; break; } if( libcdata_tree_node_get_previous_node( safe_sub_node, &safe_sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous node of sub node: %d.", function, sub_node_iterator ); goto on_error; } } } *sub_node = safe_sub_node; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves a list of all the leaf nodes * Returns 1 if successful or -1 on error */ int libcdata_tree_node_get_leaf_node_list( libcdata_tree_node_t *node, libcdata_list_t **leaf_node_list, libcerror_error_t **error ) { libcdata_internal_tree_node_t *internal_node = NULL; libcdata_tree_node_t *sub_node = NULL; static char *function = "libcdata_tree_node_get_leaf_node_list"; int leaf_node_list_created_in_node = 0; int sub_node_index = 0; if( node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid node.", function ); return( -1 ); } internal_node = (libcdata_internal_tree_node_t *) node; if( leaf_node_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid leaf node list.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( *leaf_node_list == NULL ) { if( libcdata_list_initialize( leaf_node_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create leaf node list.", function ); goto on_error; } leaf_node_list_created_in_node = 1; } /* Traverse the sub nodes */ if( internal_node->number_of_sub_nodes == 0 ) { if( internal_node->value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid node - missing value.", function ); goto on_error; } if( libcdata_list_append_value( *leaf_node_list, internal_node->value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append tree node to leaf node list.", function ); goto on_error; } } else { sub_node = internal_node->first_sub_node; for( sub_node_index = 0; sub_node_index < internal_node->number_of_sub_nodes; sub_node_index++ ) { if( sub_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected for sub node: %d.", function, sub_node_index ); goto on_error; } if( libcdata_tree_node_get_leaf_node_list( sub_node, leaf_node_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: unable to traverse sub node: %d.", function, sub_node_index ); goto on_error; } if( libcdata_tree_node_get_next_node( sub_node, &sub_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next node of sub node: %d.", function, sub_node_index ); goto on_error; } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); on_error: if( leaf_node_list_created_in_node != 0 ) { if( *leaf_node_list == NULL ) { libcdata_list_initialize( leaf_node_list, NULL ); } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_node->read_write_lock, NULL ); #endif return( -1 ); } libfsapfs-20190210/libcdata/libcdata_libcthreads.h0000664000175000017500000000360713430101142024041 0ustar00lordyestalordyesta00000000000000/* * The libcthreads header wrapper * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_LIBCTHREADS_H ) #define _LIBCDATA_LIBCTHREADS_H #include #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) #define HAVE_LIBCDATA_MULTI_THREAD_SUPPORT #endif #if defined( HAVE_LIBCDATA_MULTI_THREAD_SUPPORT ) /* Define HAVE_LOCAL_LIBCTHREADS for local use of libcthreads */ #if defined( HAVE_LOCAL_LIBCTHREADS ) #include #include #include #include #include #include #include #include #include #include #else /* If libtool DLL support is enabled set LIBCTHREADS_DLL_IMPORT * before including libcthreads.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCTHREADS_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCTHREADS ) */ #endif /* defined( HAVE_LIBCDATA_MULTI_THREAD_SUPPORT ) */ #endif /* !defined( _LIBCDATA_LIBCTHREADS_H ) */ libfsapfs-20190210/libcdata/libcdata_range_list_value.h0000664000175000017500000000534713430101142025103 0ustar00lordyestalordyesta00000000000000/* * Range list value * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_RANGE_LIST_VALUE_H ) #define _LIBCDATA_RANGE_LIST_VALUE_H #include #include #include "libcdata_extern.h" #include "libcdata_libcerror.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcdata_range_list_value libcdata_range_list_value_t; struct libcdata_range_list_value { /* The (range) start value */ uint64_t start; /* The (range) end */ uint64_t end; /* The (range) size */ uint64_t size; /* The value */ intptr_t *value; }; int libcdata_range_list_value_initialize( libcdata_range_list_value_t **range_list_value, libcerror_error_t **error ); int libcdata_range_list_value_free( libcdata_range_list_value_t **range_list_value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_range_list_value_clone( libcdata_range_list_value_t **destination_range_list_value, libcdata_range_list_value_t *source_range_list_value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_range_list_value_merge( libcdata_range_list_value_t *destination_range_list_value, libcdata_range_list_value_t *source_range_list_value, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_range_list_value_check_range_overlap( libcdata_range_list_value_t *range_list_value, uint64_t range_start, uint64_t range_end, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_RANGE_LIST_VALUE_H ) */ libfsapfs-20190210/libcdata/libcdata_unused.h0000664000175000017500000000260213430101142023052 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_UNUSED_H ) #define _LIBCDATA_UNUSED_H #include #if !defined( LIBCDATA_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCDATA_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCDATA_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCDATA_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCDATA_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCDATA_UNUSED_H ) */ libfsapfs-20190210/libcdata/libcdata_range_list.h0000664000175000017500000002750213430101142023704 0ustar00lordyestalordyesta00000000000000/* * Range list * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_RANGE_LIST_H ) #define _LIBCDATA_RANGE_LIST_H #include #include #include "libcdata_extern.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_range_list_value.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcdata_internal_range_list libcdata_internal_range_list_t; struct libcdata_internal_range_list { /* The number of elements */ int number_of_elements; /* The first element */ libcdata_list_element_t *first_element; /* The last element */ libcdata_list_element_t *last_element; /* The current list element */ libcdata_list_element_t *current_element; /* The current list element index */ int current_element_index; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBCDATA_EXTERN \ int libcdata_range_list_initialize( libcdata_range_list_t **range_list, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_free( libcdata_range_list_t **range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_range_list_free_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t **range_list_element, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_empty( libcdata_range_list_t *range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_clone( libcdata_range_list_t **destination_range_list, libcdata_range_list_t *source_range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_get_number_of_elements( libcdata_range_list_t *range_list, int *number_of_elements, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_get_first_element( libcdata_range_list_t *range_list, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_range_list_set_first_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_get_last_element( libcdata_range_list_t *range_list, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_range_list_set_last_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *element, libcerror_error_t **error ); int libcdata_internal_range_list_append_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *element, libcerror_error_t **error ); int libcdata_internal_range_list_append_value( libcdata_internal_range_list_t *internal_range_list, libcdata_range_list_value_t *value, libcerror_error_t **error ); int libcdata_internal_range_list_remove_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcerror_error_t **error ); int libcdata_internal_range_list_remove_range_value( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t **range_list_element, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_range_list_insert_range_find_element( libcdata_internal_range_list_t *internal_range_list, uint64_t range_start, uint64_t range_end, int *element_index, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_range_list_check_range_overlap( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, libcerror_error_t **error ); int libcdata_internal_range_list_insert_range_before_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, intptr_t *value, libcdata_list_element_t **new_range_list_element, libcerror_error_t **error ); int libcdata_internal_range_list_insert_element_after_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_list_element_t *element, libcerror_error_t **error ); int libcdata_internal_range_list_insert_value_after_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_value_t *value, libcerror_error_t **error ); int libcdata_internal_range_list_merge_range( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, intptr_t *value, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_range_list_merge_overlapping_ranges( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcdata_range_list_t *backup_range_list, libcerror_error_t **error ); int libcdata_internal_range_list_insert_range_merge( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, intptr_t *value, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcdata_range_list_t *backup_range_list, libcerror_error_t **error ); int libcdata_internal_range_list_insert_range_revert_merge( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_t *backup_range_list, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_insert_range( libcdata_range_list_t *range_list, uint64_t range_start, uint64_t range_size, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_insert_range_list( libcdata_range_list_t *range_list, libcdata_range_list_t *source_range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_range_list_remove_shrink_range( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_value_t *range_list_value, uint64_t range_start, uint64_t range_end, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_split_function)( intptr_t **destination_value, intptr_t *source_value, uint64_t split_range_offset, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_range_list_remove_split_range( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_value_t *range_list_value, uint64_t range_start, uint64_t range_end, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_split_function)( intptr_t **destination_value, intptr_t *source_value, uint64_t split_range_offset, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_remove_range( libcdata_range_list_t *range_list, uint64_t range_start, uint64_t range_size, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_split_function)( intptr_t **destination_value, intptr_t *source_value, uint64_t split_range_offset, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_range_list_get_element_by_index( libcdata_internal_range_list_t *internal_range_list, int element_index, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_range_list_get_element_at_offset( libcdata_internal_range_list_t *internal_range_list, uint64_t range_offset, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_range_list_get_value_by_index( libcdata_internal_range_list_t *internal_range_list, int element_index, libcdata_range_list_value_t **range_list_value, libcerror_error_t **error ); int libcdata_internal_range_list_get_value_at_offset( libcdata_internal_range_list_t *internal_range_list, uint64_t range_offset, libcdata_range_list_value_t **range_list_value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_get_range_by_index( libcdata_range_list_t *range_list, int element_index, uint64_t *range_start, uint64_t *range_size, intptr_t **value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_get_range_at_offset( libcdata_range_list_t *range_list, uint64_t range_offset, uint64_t *range_start, uint64_t *range_size, intptr_t **value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_range_is_present( libcdata_range_list_t *range_list, uint64_t range_start, uint64_t range_size, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_range_list_get_spanning_range( libcdata_range_list_t *range_list, uint64_t *range_start, uint64_t *range_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_RANGE_LIST_H ) */ libfsapfs-20190210/libcdata/Makefile.am0000664000175000017500000000210413430101142021604 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCDATA AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ \ @LIBCTHREADS_CPPFLAGS@ \ @PTHREAD_CPPFLAGS@ noinst_LTLIBRARIES = libcdata.la libcdata_la_SOURCES = \ libcdata_array.c libcdata_array.h \ libcdata_btree.c libcdata_btree.h \ libcdata_btree_node.c libcdata_btree_node.h \ libcdata_btree_values_list.c libcdata_btree_values_list.h \ libcdata_definitions.h \ libcdata_error.c libcdata_error.h \ libcdata_extern.h \ libcdata_libcerror.h \ libcdata_libcthreads.h \ libcdata_list.c libcdata_list.h \ libcdata_list_element.c libcdata_list_element.h \ libcdata_range_list.c libcdata_range_list.h \ libcdata_range_list_value.c libcdata_range_list_value.h \ libcdata_support.c libcdata_support.h \ libcdata_tree_node.c libcdata_tree_node.h \ libcdata_types.h \ libcdata_unused.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcdata ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcdata_la_SOURCES) libfsapfs-20190210/libcdata/libcdata_range_list.c0000664000175000017500000034641613430101142023707 0ustar00lordyestalordyesta00000000000000/* * Range list * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_definitions.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_list_element.h" #include "libcdata_range_list.h" #include "libcdata_range_list_value.h" #include "libcdata_types.h" #include "libcdata_unused.h" /* Creates a range list * Make sure the value range_list is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcdata_range_list_initialize( libcdata_range_list_t **range_list, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libcdata_range_list_initialize"; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( *range_list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid range list value already set.", function ); return( -1 ); } internal_range_list = memory_allocate_structure( libcdata_internal_range_list_t ); if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create range list.", function ); goto on_error; } if( memory_set( internal_range_list, 0, sizeof( libcdata_internal_range_list_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear range list.", function ); memory_free( internal_range_list ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_initialize( &( internal_range_list->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *range_list = (libcdata_range_list_t *) internal_range_list; return( 1 ); on_error: if( internal_range_list != NULL ) { memory_free( internal_range_list ); } return( -1 ); } /* Frees a range list including the elements * Uses the value_free_function to free the element value * Returns 1 if successful or -1 on error */ int libcdata_range_list_free( libcdata_range_list_t **range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libcdata_range_list_free"; int result = 1; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( *range_list != NULL ) { internal_range_list = (libcdata_internal_range_list_t *) *range_list; *range_list = NULL; if( libcdata_range_list_empty( (libcdata_range_list_t *) internal_range_list, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty range list.", function ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_free( &( internal_range_list->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif memory_free( internal_range_list ); } return( result ); } /* Frees a range list element * Uses the value_free_function to free the element value * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_free_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t **range_list_element, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_free_element"; int result = 1; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( range_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list element.", function ); return( -1 ); } if( *range_list_element != NULL ) { if( libcdata_list_element_get_value( *range_list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from range list element.", function ); return( -1 ); } if( libcdata_range_list_value_free( &range_list_value, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free range list value.", function ); result = -1; } if( libcdata_list_element_free( range_list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free list element.", function ); result = -1; } } return( result ); } /* Empties a range list and frees the elements * Uses the value_free_function to free the element value * Returns 1 if successful or -1 on error */ int libcdata_range_list_empty( libcdata_range_list_t *range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; libcdata_list_element_t *list_element = NULL; libcdata_list_element_t *next_element = NULL; static char *function = "libcdata_range_list_empty"; int element_index = 0; int number_of_elements = 0; int result = 1; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_range_list->number_of_elements > 0 ) { number_of_elements = internal_range_list->number_of_elements; list_element = internal_range_list->first_element; for( element_index = 0; element_index < number_of_elements; element_index++ ) { if( libcdata_list_element_get_next_element( list_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, element_index ); result = -1; break; } internal_range_list->first_element = next_element; if( internal_range_list->last_element == list_element ) { internal_range_list->last_element = next_element; } internal_range_list->number_of_elements -= 1; if( next_element != NULL ) { if( libcdata_list_element_set_previous_element( next_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of list element: %d.", function, element_index + 1 ); result = -1; } } if( libcdata_list_element_set_next_element( list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of list element: %d.", function, element_index ); result = -1; } if( libcdata_internal_range_list_free_element( internal_range_list, &list_element, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free range list element: %d.", function, element_index ); result = -1; } list_element = next_element; } internal_range_list->current_element = NULL; internal_range_list->current_element_index = 0; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); result = -1; } #endif return( result ); } /* Clones the range list * * The values are cloned using the value_clone_function * On error the values are freed using the value_free_function * * Returns 1 if successful or -1 on error */ int libcdata_range_list_clone( libcdata_range_list_t **destination_range_list, libcdata_range_list_t *source_range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination, intptr_t *source, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_source_list_element = NULL; libcdata_internal_range_list_t *internal_destination_range_list = NULL; libcdata_internal_range_list_t *internal_source_range_list = NULL; libcdata_range_list_value_t *destination_range_list_value = NULL; static char *function = "libcdata_range_list_clone"; int element_index = 0; if( destination_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination range list.", function ); return( -1 ); } if( *destination_range_list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination range list value already set.", function ); return( -1 ); } if( source_range_list == NULL ) { *destination_range_list = NULL; return( 1 ); } internal_source_range_list = (libcdata_internal_range_list_t *) source_range_list; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_source_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_range_list_initialize( (libcdata_range_list_t **) &internal_destination_range_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination range list.", function ); goto on_error; } if( internal_destination_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing destination range list.", function ); goto on_error; } if( internal_source_range_list->first_element != NULL ) { internal_source_list_element = (libcdata_internal_list_element_t *) internal_source_range_list->first_element; for( element_index = 0; element_index < internal_source_range_list->number_of_elements; element_index++ ) { if( internal_source_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing source list element: %d.", function, element_index ); goto on_error; } if( libcdata_range_list_value_clone( &destination_range_list_value, (libcdata_range_list_value_t *) internal_source_list_element->value, value_free_function, value_clone_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination range list value: %d.", function, element_index ); goto on_error; } if( libcdata_internal_range_list_append_value( internal_destination_range_list, destination_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to append value: %d to destination range list.", function, element_index ); goto on_error; } destination_range_list_value = NULL; internal_source_list_element = (libcdata_internal_list_element_t *) internal_source_list_element->next_element; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_source_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); libcdata_range_list_free( (libcdata_range_list_t **) &internal_destination_range_list, value_free_function, NULL ); return( -1 ); } #endif *destination_range_list = (libcdata_range_list_t *) internal_destination_range_list; return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_source_range_list->read_write_lock, NULL ); #endif if( destination_range_list_value != NULL ) { libcdata_range_list_value_free( &destination_range_list_value, value_free_function, NULL ); } if( internal_destination_range_list != NULL ) { libcdata_range_list_free( (libcdata_range_list_t **) &internal_destination_range_list, value_free_function, NULL ); } return( -1 ); } /* Retrieves the number of elements in the range list * Returns 1 if successful or -1 on error */ int libcdata_range_list_get_number_of_elements( libcdata_range_list_t *range_list, int *number_of_elements, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libcdata_range_list_get_number_of_elements"; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( number_of_elements == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of elements.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *number_of_elements = internal_range_list->number_of_elements; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the first elements in the range list * Returns 1 if successful or -1 on error */ int libcdata_range_list_get_first_element( libcdata_range_list_t *range_list, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libcdata_range_list_get_first_element"; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *element = internal_range_list->first_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the first element in the range list * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_set_first_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *element, libcerror_error_t **error ) { libcdata_list_element_t *backup_first_element = NULL; libcdata_list_element_t *backup_next_element = NULL; static char *function = "libcdata_internal_range_list_set_first_element"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( element != NULL ) { if( libcdata_list_element_get_next_element( element, &backup_next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element of element.", function ); return( -1 ); } } backup_first_element = internal_range_list->first_element; if( element != NULL ) { if( libcdata_list_element_set_next_element( element, internal_range_list->first_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of element.", function ); goto on_error; } } if( internal_range_list->first_element != NULL ) { if( libcdata_list_element_set_previous_element( internal_range_list->first_element, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of first element.", function ); goto on_error; } } internal_range_list->first_element = element; return( 1 ); on_error: if( element != NULL ) { libcdata_list_element_set_next_element( element, backup_next_element, NULL ); } if( backup_first_element != NULL ) { libcdata_list_element_set_next_element( backup_first_element, NULL, NULL ); } internal_range_list->first_element = backup_first_element; return( -1 ); } /* Retrieves the last elements in the range list * Returns 1 if successful or -1 on error */ int libcdata_range_list_get_last_element( libcdata_range_list_t *range_list, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libcdata_range_list_get_last_element"; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *element = internal_range_list->last_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the last element in the list * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_set_last_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *element, libcerror_error_t **error ) { libcdata_list_element_t *backup_last_element = NULL; libcdata_list_element_t *backup_previous_element = NULL; static char *function = "libcdata_internal_range_list_set_last_element"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( element != NULL ) { if( libcdata_list_element_get_previous_element( element, &backup_previous_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element of element.", function ); return( -1 ); } } backup_last_element = internal_range_list->last_element; if( element != NULL ) { if( libcdata_list_element_set_previous_element( element, internal_range_list->last_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of element.", function ); goto on_error; } } if( internal_range_list->last_element != NULL ) { if( libcdata_list_element_set_next_element( internal_range_list->last_element, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of last element.", function ); goto on_error; } } internal_range_list->last_element = element; return( 1 ); on_error: if( element != NULL ) { libcdata_list_element_set_previous_element( element, backup_previous_element, NULL ); } if( backup_last_element != NULL ) { libcdata_list_element_set_next_element( backup_last_element, NULL, NULL ); } internal_range_list->last_element = backup_last_element; return( -1 ); } /* Append a list element to the list * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_append_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *element, libcerror_error_t **error ) { static char *function = "libcdata_internal_range_list_append_element"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } if( internal_range_list->first_element == NULL ) { internal_range_list->first_element = element; } if( libcdata_internal_range_list_set_last_element( internal_range_list, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set last element.", function ); return( -1 ); } internal_range_list->number_of_elements += 1; return( 1 ); } /* Append a value to the list * Creates a new list element * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_append_value( libcdata_internal_range_list_t *internal_range_list, libcdata_range_list_value_t *value, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; static char *function = "libcdata_internal_range_list_append_value"; if( libcdata_list_element_initialize( &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libcdata_list_element_set_value( list_element, (intptr_t *) value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to set value of list element.", function ); goto on_error; } if( libcdata_internal_range_list_append_element( internal_range_list, list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append element to range list.", function ); goto on_error; } return( 1 ); on_error: if( list_element != NULL ) { libcdata_list_element_free( &list_element, NULL, NULL ); } return( -1 ); } /* Removes an element from the range list * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_remove_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcerror_error_t **error ) { libcdata_list_element_t *next_element = NULL; libcdata_list_element_t *previous_element = NULL; static char *function = "libcdata_internal_range_list_remove_element"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( libcdata_list_element_get_elements( range_list_element, &previous_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous and next element from range list element.", function ); return( -1 ); } if( range_list_element == internal_range_list->first_element ) { internal_range_list->first_element = next_element; } if( range_list_element == internal_range_list->last_element ) { internal_range_list->last_element = previous_element; } if( next_element != NULL ) { if( libcdata_list_element_set_previous_element( next_element, previous_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of next element.", function ); return( -1 ); } } if( previous_element != NULL ) { if( libcdata_list_element_set_next_element( previous_element, next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of previous element.", function ); return( -1 ); } } if( libcdata_list_element_set_elements( range_list_element, NULL, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous and next element of range list element.", function ); return( -1 ); } internal_range_list->current_element = NULL; internal_range_list->current_element_index = 0; internal_range_list->number_of_elements -= 1; return( 1 ); } /* Removes an element from the range list and frees the element * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_remove_range_value( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t **range_list_element, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_remove_range_value"; int result = 1; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( range_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list element.", function ); return( -1 ); } if( libcdata_internal_range_list_remove_element( internal_range_list, *range_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove range list element.", function ); return( -1 ); } if( libcdata_list_element_get_value( *range_list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range list value from range list element.", function ); return( -1 ); } if( libcdata_list_element_free( range_list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free range list element.", function ); result = -1; } if( libcdata_range_list_value_free( &range_list_value, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free range list value.", function ); result = -1; } return( result ); } /* Retrieves the element which the range should be inserted before or merged within * * On return element will be set to NULL if the range should be inserted at the end of the list. * * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_insert_range_find_element( libcdata_internal_range_list_t *internal_range_list, uint64_t range_start, uint64_t range_end LIBCDATA_ATTRIBUTE_UNUSED, int *element_index, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_list_element_t *current_element = NULL; libcdata_list_element_t *previous_element = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_insert_range_find_element"; int current_element_index = 0; int last_element_index = 0; LIBCDATA_UNREFERENCED_PARAMETER( range_end ) if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } current_element = internal_range_list->last_element; current_element_index = internal_range_list->number_of_elements; if( internal_range_list->number_of_elements > 0 ) { /* Check the last element first, most often the list will be filled linear */ current_element_index--; if( libcdata_list_element_get_value( current_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, current_element_index ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value element: %d.", function, current_element_index ); return( -1 ); } if( range_start > range_list_value->end ) { current_element = NULL; current_element_index++; } else if( internal_range_list->number_of_elements > 1 ) { last_element_index = current_element_index; if( ( current_element_index != internal_range_list->current_element_index ) && ( internal_range_list->current_element != NULL ) ) { /* Check the current element */ current_element = internal_range_list->current_element; current_element_index = internal_range_list->current_element_index; if( libcdata_list_element_get_value( current_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, current_element_index ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value element: %d.", function, current_element_index ); return( -1 ); } } if( range_start > range_list_value->end ) { while( current_element_index < last_element_index ) { if( libcdata_list_element_get_next_element( current_element, ¤t_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, current_element_index ); return( -1 ); } current_element_index++; if( libcdata_list_element_get_value( current_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, current_element_index ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value element: %d.", function, current_element_index ); return( -1 ); } if( range_start <= range_list_value->end ) { break; } } } else { while( current_element_index > 0 ) { previous_element = current_element; if( libcdata_list_element_get_previous_element( current_element, ¤t_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element from list element: %d.", function, current_element_index ); return( -1 ); } current_element_index--; if( libcdata_list_element_get_value( current_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, current_element_index ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value element: %d.", function, current_element_index ); return( -1 ); } if( range_start > range_list_value->end ) { current_element = previous_element; current_element_index++; break; } } } } } if( current_element != NULL ) { internal_range_list->current_element = current_element; internal_range_list->current_element_index = current_element_index; } *element = current_element; *element_index = current_element_index; return( 1 ); } /* Checks if the range overlaps with the value of the range list element * Returns 1 if the range overlaps, 0 if not or -1 on error */ int libcdata_internal_range_list_check_range_overlap( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, libcerror_error_t **error ) { libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_check_range_overlap"; int result = 0; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( range_list_element != NULL ) { if( libcdata_list_element_get_value( range_list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from range list element.", function ); return( -1 ); } result = libcdata_range_list_value_check_range_overlap( range_list_value, range_start, range_end, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if range overlaps with range list value.", function ); return( -1 ); } } return( result ); } /* Inserts the range before the range list element * If range_list_element is NULL the element is inserted before or as the first element in the list * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_insert_range_before_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, intptr_t *value, libcdata_list_element_t **new_range_list_element, libcerror_error_t **error ) { libcdata_list_element_t *backup_first_element = NULL; libcdata_list_element_t *backup_last_element = NULL; libcdata_list_element_t *new_element = NULL; libcdata_list_element_t *previous_element = NULL; libcdata_range_list_value_t *new_range_list_value = NULL; static char *function = "libcdata_internal_range_list_insert_range_before_element"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( new_range_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid new range list element.", function ); return( -1 ); } if( range_list_element != NULL ) { if( libcdata_list_element_get_previous_element( range_list_element, &previous_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element from range list element.", function ); return( -1 ); } } if( libcdata_range_list_value_initialize( &new_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create range list value.", function ); goto on_error; } backup_first_element = internal_range_list->first_element; backup_last_element = internal_range_list->last_element; if( new_range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value.", function ); goto on_error; } new_range_list_value->start = range_start; new_range_list_value->size = range_end - range_start; new_range_list_value->end = range_end; new_range_list_value->value = value; if( libcdata_list_element_initialize( &new_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libcdata_list_element_set_value( new_element, (intptr_t *) new_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in list element.", function ); goto on_error; } if( internal_range_list->number_of_elements == 0 ) { internal_range_list->first_element = new_element; internal_range_list->last_element = new_element; } else if( range_list_element == NULL ) { if( libcdata_internal_range_list_set_last_element( internal_range_list, new_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set last element.", function ); goto on_error; } } else { if( libcdata_list_element_set_elements( new_element, previous_element, range_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous and next element of element.", function ); goto on_error; } if( internal_range_list->first_element == range_list_element ) { internal_range_list->first_element = new_element; } else { if( libcdata_list_element_set_next_element( previous_element, new_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of previous element.", function ); goto on_error; } } if( libcdata_list_element_set_previous_element( range_list_element, new_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of range list element.", function ); goto on_error; } } internal_range_list->current_element = NULL; internal_range_list->current_element_index = 0; internal_range_list->number_of_elements += 1; *new_range_list_element = new_element; return( 1 ); on_error: if( new_element != NULL ) { libcdata_list_element_set_elements( new_element, NULL, NULL, NULL ); libcdata_list_element_free( &new_element, NULL, NULL ); } if( new_range_list_value != NULL ) { libcdata_range_list_value_free( &new_range_list_value, NULL, NULL ); } if( previous_element != NULL ) { libcdata_list_element_set_next_element( previous_element, range_list_element, NULL ); } if( range_list_element != NULL ) { libcdata_list_element_set_previous_element( range_list_element, previous_element, NULL ); } internal_range_list->first_element = backup_first_element; internal_range_list->last_element = backup_last_element; return( -1 ); } /* Inserts the element in the range list after the range list element * If range_list_element is NULL the element is inserted as the first element in the list * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_insert_element_after_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_list_element_t *element, libcerror_error_t **error ) { libcdata_list_element_t *next_element = NULL; libcdata_list_element_t *previous_element = NULL; static char *function = "libcdata_internal_range_list_insert_element_after_element"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( libcdata_list_element_get_elements( element, &previous_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous and next element from list element.", function ); return( -1 ); } if( ( previous_element != NULL ) || ( next_element != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: list element already part of a list.", function ); return( -1 ); } if( internal_range_list->number_of_elements == 0 ) { if( internal_range_list->first_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid range list - first element already set.", function ); return( -1 ); } if( internal_range_list->last_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid range list - last element already set.", function ); return( -1 ); } internal_range_list->first_element = element; internal_range_list->last_element = element; } else { if( internal_range_list->first_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid range list - missing first element.", function ); return( -1 ); } if( internal_range_list->last_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid range list - missing last element.", function ); return( -1 ); } if( range_list_element == NULL ) { if( libcdata_internal_range_list_set_first_element( internal_range_list, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set first element.", function ); return( -1 ); } } else { if( libcdata_list_element_get_next_element( range_list_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from range list element.", function ); return( -1 ); } if( libcdata_list_element_set_elements( element, range_list_element, next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous and next element of list element.", function ); return( -1 ); } if( range_list_element == internal_range_list->last_element ) { internal_range_list->last_element = element; } else if( next_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: invalid range list element - missing next element.", function ); return( -1 ); } else { if( libcdata_list_element_set_previous_element( next_element, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of next element.", function ); return( -1 ); } } if( libcdata_list_element_set_next_element( range_list_element, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of range list element.", function ); return( -1 ); } } } internal_range_list->number_of_elements += 1; return( 1 ); } /* Inserts the range list value in the range list after the range list element * If range_list_element is NULL the value is inserted before the first element in the list * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_insert_value_after_element( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_value_t *value, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; static char *function = "libcdata_internal_range_list_insert_value_after_element"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( libcdata_list_element_initialize( &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libcdata_list_element_set_value( list_element, (intptr_t *) value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set value in list element.", function ); goto on_error; } if( libcdata_internal_range_list_insert_element_after_element( internal_range_list, range_list_element, list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert element after range list element.", function ); goto on_error; } list_element = NULL; return( 1 ); on_error: if( list_element != NULL ) { libcdata_list_element_free( &list_element, NULL, NULL ); } return( -1 ); } /* Merges the range into the range list element * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_merge_range( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, intptr_t *value, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_merge_range"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( libcdata_list_element_get_value( range_list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from range list element.", function ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value.", function ); return( -1 ); } if( range_list_value->value != NULL ) { if( value_merge_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value merge function.", function ); return( -1 ); } } if( range_list_value->value == NULL ) { range_list_value->value = value; } else { if( value_merge_function( range_list_value->value, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to merge value.", function ); return( -1 ); } } if( range_start < range_list_value->start ) { range_list_value->size += range_list_value->start - range_start; range_list_value->start = range_start; } if( range_end > range_list_value->end ) { range_list_value->size += range_end - range_list_value->end; range_list_value->end = range_end; } return( 1 ); } /* Merges successive overlapping ranges * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_merge_overlapping_ranges( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcdata_range_list_t *backup_range_list, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; libcdata_list_element_t *next_element = NULL; libcdata_range_list_value_t *next_range_list_value = NULL; static char *function = "libcdata_internal_range_list_merge_overlapping_ranges"; int result = 0; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( libcdata_list_element_get_next_element( range_list_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from range list element.", function ); return( -1 ); } while( next_element != NULL ) { list_element = next_element; if( libcdata_list_element_get_next_element( list_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element.", function ); return( -1 ); } if( libcdata_list_element_get_value( list_element, (intptr_t **) &next_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from next element.", function ); return( -1 ); } if( next_range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing next range list value.", function ); return( -1 ); } result = libcdata_internal_range_list_check_range_overlap( internal_range_list, range_list_element, next_range_list_value->start, next_range_list_value->end, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if next range overlaps with range list element.", function ); return( -1 ); } else if( result == 0 ) { break; } if( libcdata_internal_range_list_append_value( (libcdata_internal_range_list_t *) backup_range_list, next_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to append value to backup range list.", function ); return( -1 ); } if( libcdata_internal_range_list_remove_element( internal_range_list, list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove list element.", function ); return( -1 ); } if( libcdata_list_element_free( &list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free list element.", function ); return( -1 ); } if( libcdata_internal_range_list_merge_range( internal_range_list, range_list_element, next_range_list_value->start, next_range_list_value->end, next_range_list_value->value, value_merge_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to merge next range with range list element.", function ); return( -1 ); } } return( 1 ); } /* Inserts a range by merging the range into the range list element and successive overlapping ranges * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_insert_range_merge( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, uint64_t range_start, uint64_t range_end, intptr_t *value, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcdata_range_list_t *backup_range_list, libcerror_error_t **error ) { libcdata_range_list_value_t *backup_range_list_value = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_insert_range_merge"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( libcdata_list_element_get_value( range_list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from range list element.", function ); goto on_error; } if( libcdata_range_list_value_initialize( &backup_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create backup range list value.", function ); goto on_error; } backup_range_list_value->start = range_list_value->start; backup_range_list_value->end = range_list_value->end; backup_range_list_value->size = range_list_value->size; if( libcdata_internal_range_list_append_value( (libcdata_internal_range_list_t *) backup_range_list, backup_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to append value to backup range list.", function ); goto on_error; } backup_range_list_value = NULL; if( libcdata_internal_range_list_merge_range( internal_range_list, range_list_element, range_start, range_end, value, value_merge_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to merge range with range list element.", function ); goto on_error; } if( libcdata_internal_range_list_merge_overlapping_ranges( internal_range_list, range_list_element, value_merge_function, backup_range_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to merge range list element with overlapping ranges.", function ); goto on_error; } return( 1 ); on_error: if( backup_range_list_value != NULL ) { libcdata_range_list_value_free( &backup_range_list_value, NULL, NULL ); } return( -1 ); } /* Reverts a previously merge of the range list element and successive overlapping ranges * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_insert_range_revert_merge( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_t *backup_range_list, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_backup_range_list = NULL; libcdata_list_element_t *backup_range_list_element = NULL; libcdata_range_list_value_t *backup_range_list_value = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_insert_range_revert_merge"; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( backup_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid backup range list.", function ); return( -1 ); } internal_backup_range_list = (libcdata_internal_range_list_t *) backup_range_list; if( internal_backup_range_list->first_element == NULL ) { return( 1 ); } if( libcdata_list_element_get_value( internal_backup_range_list->first_element, (intptr_t **) &backup_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from first backup range list element.", function ); return( -1 ); } if( libcdata_list_element_get_value( range_list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from range list element.", function ); return( -1 ); } range_list_value->start = backup_range_list_value->start; range_list_value->end = backup_range_list_value->end; range_list_value->size = backup_range_list_value->size; while( internal_backup_range_list->first_element != NULL ) { if( libcdata_list_element_get_next_element( internal_backup_range_list->first_element, &backup_range_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from first backup range list element.", function ); return( -1 ); } if( backup_range_list_element == NULL ) { break; } if( libcdata_internal_range_list_remove_element( internal_backup_range_list, backup_range_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove backup range list element.", function ); return( -1 ); } if( libcdata_internal_range_list_insert_element_after_element( internal_range_list, range_list_element, backup_range_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert element after range list element.", function ); return( -1 ); } backup_range_list_element = NULL; } return( 1 ); } /* Inserts a range * * The values are merged using the value_merge_function. * If the source value is NULL the merge function is not called. * * After a merge and on error the values are freed using * the value_free_function * * Returns 1 if successful, 0 if the range was merged or -1 on error */ int libcdata_range_list_insert_range( libcdata_range_list_t *range_list, uint64_t range_start, uint64_t range_size, intptr_t *value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; libcdata_list_element_t *list_element = NULL; libcdata_list_element_t *new_element = NULL; libcdata_range_list_t *backup_range_list = NULL; static char *function = "libcdata_range_list_insert_range"; uint64_t range_end = 0; int element_index = 0; int result = 1; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( range_start > (uint64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range start value exceeds maximum.", function ); return( -1 ); } if( range_size > (uint64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range size value exceeds maximum.", function ); return( -1 ); } range_end = range_start + range_size; if( range_end < range_start ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid range end value out of bounds.", function ); return( -1 ); } if( libcdata_range_list_initialize( &backup_range_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create backup range list.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); libcdata_range_list_free( &backup_range_list, NULL, NULL ); return( -1 ); } #endif if( libcdata_internal_range_list_insert_range_find_element( internal_range_list, range_start, range_end, &element_index, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to find element in list.", function ); result = -1; } if( result == 1 ) { result = libcdata_internal_range_list_check_range_overlap( internal_range_list, list_element, range_start, range_end, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to determine if range overlaps with range list element: %d.", function, element_index ); result = -1; } } if( result == 0 ) { result = 1; if( libcdata_internal_range_list_insert_range_before_element( internal_range_list, list_element, range_start, range_end, value, &new_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert range before range list element.", function ); result = -1; } } else if( result != -1 ) { result = 0; if( libcdata_internal_range_list_insert_range_merge( internal_range_list, list_element, range_start, range_end, value, value_merge_function, backup_range_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to merge range with list element: %d.", function, element_index ); result = -1; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif libcdata_range_list_free( &backup_range_list, value_free_function, NULL ); return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 0 ) { libcdata_internal_range_list_insert_range_revert_merge( internal_range_list, list_element, backup_range_list, NULL ); } else if( result == 1 ) { libcdata_internal_range_list_remove_range_value( internal_range_list, &new_element, NULL, NULL ); } libcdata_range_list_free( &backup_range_list, NULL, NULL ); return( -1 ); #endif } /* Inserts a range list * * The values are merged using the value_merge_function. * If the source value is NULL the merge function is not called. * * After a merge and on error the values are freed using * the value_free_function * * The values in the source_range_list are not affected. * * Returns 1 if successful, or -1 on error */ int libcdata_range_list_insert_range_list( libcdata_range_list_t *range_list, libcdata_range_list_t *source_range_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_list_element_t *source_list_element = NULL; libcdata_range_list_value_t *source_range_list_value = NULL; static char *function = "libcdata_range_list_insert_range_list"; int element_index = 0; int number_of_elements = 0; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( source_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid source range list.", function ); return( -1 ); } if( libcdata_range_list_get_number_of_elements( source_range_list, &number_of_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of source list elements.", function ); return( -1 ); } if( libcdata_range_list_get_first_element( source_range_list, &source_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve first element from source list.", function ); return( -1 ); } for( element_index = 0; element_index < number_of_elements; element_index++ ) { if( libcdata_list_element_get_value( source_list_element, (intptr_t **) &source_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from source list element: %d.", function, element_index ); return( -1 ); } result = libcdata_range_list_insert_range( range_list, source_range_list_value->start, source_range_list_value->size, source_range_list_value->value, value_free_function, value_merge_function, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert source range list value: %d to range list.", function, element_index ); return( -1 ); } if( libcdata_list_element_get_next_element( source_list_element, &source_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from source list element: %d.", function, element_index ); return( -1 ); } } return( 1 ); } /* Shrinks a range * * A range that either overlaps the start or the end of the range list element * is removed by shrining the range of the range list element. * * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_remove_shrink_range( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_value_t *range_list_value, uint64_t range_start, uint64_t range_end, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_split_function)( intptr_t **destination_value, intptr_t *source_value, uint64_t split_range_offset, libcerror_error_t **error ), libcerror_error_t **error ) { intptr_t *split_value = NULL; static char *function = "libcdata_internal_range_list_remove_shrink_range"; uint64_t split_offset = 0; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( range_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list element.", function ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list value.", function ); return( -1 ); } if( ( range_start > range_list_value->start ) && ( range_end < range_list_value->end ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid range value out of bounds.", function ); return( -1 ); } if( range_list_value->value != NULL ) { if( value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value free function.", function ); return( -1 ); } if( value_split_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value split function.", function ); return( -1 ); } } if( range_start <= range_list_value->start ) { split_offset = range_end; } else { split_offset = range_start; } if( range_list_value->value != NULL ) { if( value_split_function( &split_value, range_list_value->value, split_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split value range offset: %" PRIu64 ".", function, split_offset ); goto on_error; } if( value_free_function( &( range_list_value->value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to free value.", function ); range_list_value->value = split_value; goto on_error; } range_list_value->value = split_value; } if( split_offset > range_list_value->start ) { range_list_value->start = split_offset; range_list_value->size = range_list_value->end - split_offset; } else { range_list_value->end = split_offset; range_list_value->size = split_offset - range_list_value->start; } return( 1 ); on_error: return( -1 ); } /* Splits a range * * A range that either overlaps a part of the range list element * is removed by splitting the range of the range list element. * * Returns 1 if successful, or -1 on error */ int libcdata_internal_range_list_remove_split_range( libcdata_internal_range_list_t *internal_range_list, libcdata_list_element_t *range_list_element, libcdata_range_list_value_t *range_list_value, uint64_t range_start, uint64_t range_end, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_split_function)( intptr_t **destination_value, intptr_t *source_value, uint64_t split_range_offset, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_range_list_value_t *split_range_list_value = NULL; static char *function = "libcdata_internal_range_list_remove_split_range"; uint64_t split_offset = 0; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( range_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list element.", function ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list value.", function ); return( -1 ); } if( ( range_start <= range_list_value->start ) || ( range_end >= range_list_value->end ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid range value out of bounds.", function ); return( -1 ); } if( range_list_value->value != NULL ) { if( value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value free function.", function ); return( -1 ); } if( value_split_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value split function.", function ); return( -1 ); } } split_offset = range_end; if( libcdata_range_list_value_initialize( &split_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create range list value.", function ); goto on_error; } if( split_range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value.", function ); goto on_error; } if( range_list_value->value != NULL ) { if( value_split_function( &( split_range_list_value->value ), range_list_value->value, split_offset, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split value at range offset: %" PRIu64 ".", function, split_offset ); goto on_error; } } split_range_list_value->start = split_offset; split_range_list_value->size = range_list_value->end - split_offset; split_range_list_value->end = range_list_value->end; range_list_value->size = split_offset - range_list_value->start; range_list_value->end = split_offset; if( libcdata_internal_range_list_insert_value_after_element( internal_range_list, range_list_element, split_range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert range list value after range list element.", function ); goto on_error; } split_range_list_value = NULL; if( libcdata_internal_range_list_remove_shrink_range( internal_range_list, range_list_element, range_list_value, range_start, range_end, value_free_function, value_split_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to shrink range.", function ); goto on_error; } return( 1 ); on_error: if( split_range_list_value != NULL ) { libcdata_range_list_value_free( &split_range_list_value, value_free_function, NULL ); } return( -1 ); } /* Removes a range * * The values are split using the value_merge_function. * If the source value is NULL the split function is not called. * On return destination_value of the value_merge_function * should contain data greater equal to the split_range_offset. * * After a split and on error the values are freed using * the value_free_function * * Returns 1 if successful, or -1 on error */ int libcdata_range_list_remove_range( libcdata_range_list_t *range_list, uint64_t range_start, uint64_t range_size, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_split_function)( intptr_t **destination_value, intptr_t *source_value, uint64_t split_range_offset, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; libcdata_list_element_t *list_element = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_range_list_remove_range"; uint64_t next_range_start = 0; uint64_t range_end = 0; int result = 1; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( range_start > (uint64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range start value exceeds maximum.", function ); return( -1 ); } if( range_size > (uint64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range size value exceeds maximum.", function ); return( -1 ); } range_end = range_start + range_size; if( range_end < range_start ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid range end value out of bounds.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif while( range_start < range_end ) { result = libcdata_internal_range_list_get_element_at_offset( internal_range_list, range_start, &list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve list element for range offset: %" PRIu64 ".", function, range_start ); goto on_error; } else if( result == 0 ) { /* The specified range is not defined in the range list */ if( list_element == NULL ) { break; } } if( libcdata_list_element_get_value( list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element for range offset: %" PRIu64 ".", function, range_start ); goto on_error; } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value element for range offset: %" PRIu64 ".", function, range_start ); goto on_error; } if( result == 0 ) { /* The specified range is not defined in the range list */ if( range_list_value->start >= range_end ) { break; } range_start = range_list_value->start; } next_range_start = range_list_value->end; if( ( range_start <= range_list_value->start ) && ( range_end >= range_list_value->end ) ) { if( libcdata_internal_range_list_remove_range_value( internal_range_list, &list_element, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove range value.", function ); goto on_error; } } else if( ( range_start > range_list_value->start ) && ( range_end < range_list_value->end ) ) { if( libcdata_internal_range_list_remove_split_range( internal_range_list, list_element, range_list_value, range_start, range_end, value_free_function, value_split_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to split range.", function ); goto on_error; } } else { if( libcdata_internal_range_list_remove_shrink_range( internal_range_list, list_element, range_list_value, range_start, range_end, value_free_function, value_split_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to shrink range.", function ); goto on_error; } } range_start = next_range_start; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_write( internal_range_list->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves a specific element from the range list * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_get_element_by_index( libcdata_internal_range_list_t *internal_range_list, int element_index, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_list_element_t *current_element = NULL; static char *function = "libcdata_internal_range_list_get_element_by_index"; int current_element_index = 0; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( ( element_index < 0 ) || ( element_index >= internal_range_list->number_of_elements ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element index value out of bounds.", function ); return( -1 ); } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } current_element = internal_range_list->current_element; current_element_index = internal_range_list->current_element_index; if( ( current_element != NULL ) && ( current_element_index != element_index ) ) { if( element_index < current_element_index ) { if( ( current_element_index - element_index ) < ( internal_range_list->number_of_elements / 2 ) ) { while( current_element_index > element_index ) { if( libcdata_list_element_get_previous_element( current_element, ¤t_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element from list element: %d.", function, current_element_index ); return( -1 ); } current_element_index--; } } } else { if( ( element_index - current_element_index ) < ( internal_range_list->number_of_elements / 2 ) ) { while( current_element_index < element_index ) { if( libcdata_list_element_get_next_element( current_element, ¤t_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, current_element_index ); return( -1 ); } current_element_index++; } } } } if( ( current_element == NULL ) || ( current_element_index != element_index ) ) { if( element_index < ( internal_range_list->number_of_elements / 2 ) ) { current_element = internal_range_list->first_element; for( current_element_index = 0; current_element_index < element_index; current_element_index++ ) { if( libcdata_list_element_get_next_element( current_element, ¤t_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, current_element_index ); return( -1 ); } } } else { current_element = internal_range_list->last_element; for( current_element_index = ( internal_range_list->number_of_elements - 1 ); current_element_index > element_index; current_element_index-- ) { if( libcdata_list_element_get_previous_element( current_element, ¤t_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element from list element: %d.", function, current_element_index ); return( -1 ); } } } } if( current_element != NULL ) { internal_range_list->current_element = current_element; internal_range_list->current_element_index = current_element_index; } *element = current_element; return( 1 ); } /* Retrieves the element that contains the range offset * If the function returns element can be set to contain the element * containing the next range list value. * Returns 1 if successful, 0 if not found or -1 on error */ int libcdata_internal_range_list_get_element_at_offset( libcdata_internal_range_list_t *internal_range_list, uint64_t range_offset, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_list_element_t *range_list_element = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_internal_range_list_get_element_at_offset"; int element_index = 0; if( internal_range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } if( range_offset > (uint64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range offset value exceeds maximum.", function ); return( -1 ); } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } /* TODO add optimization using current element */ range_list_element = internal_range_list->first_element; for( element_index = 0; element_index < internal_range_list->number_of_elements; element_index++ ) { if( libcdata_list_element_get_value( range_list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, element_index ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value element: %d.", function, element_index ); return( -1 ); } if( range_offset < range_list_value->start ) { break; } if( ( range_offset >= range_list_value->start ) && ( range_offset < range_list_value->end ) ) { *element = range_list_element; return( 1 ); } if( libcdata_list_element_get_next_element( range_list_element, &range_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, element_index ); return( -1 ); } } *element = NULL; return( 0 ); } /* Retrieves a specific value from the range list * Returns 1 if successful or -1 on error */ int libcdata_internal_range_list_get_value_by_index( libcdata_internal_range_list_t *internal_range_list, int element_index, libcdata_range_list_value_t **range_list_value, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; static char *function = "libcdata_internal_range_list_get_value_by_index"; if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list value.", function ); return( -1 ); } if( libcdata_internal_range_list_get_element_by_index( internal_range_list, element_index, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve list element: %d.", function, element_index ); return( -1 ); } if( libcdata_list_element_get_value( list_element, (intptr_t **) range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, element_index ); return( -1 ); } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value: %d .", function, element_index ); return( -1 ); } return( 1 ); } /* Retrieves the value that contains the range offset * Returns 1 if successful, 0 if no value was found or -1 on error */ int libcdata_internal_range_list_get_value_at_offset( libcdata_internal_range_list_t *internal_range_list, uint64_t range_offset, libcdata_range_list_value_t **range_list_value, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; static char *function = "libcdata_internal_range_list_get_value_at_offset"; int result = 0; if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list value.", function ); return( -1 ); } result = libcdata_internal_range_list_get_element_at_offset( internal_range_list, range_offset, &list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve list element for range offset: %" PRIu64 ".", function, range_offset ); return( -1 ); } else if( result != 0 ) { if( libcdata_list_element_get_value( list_element, (intptr_t **) range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element for range offset: %" PRIu64 ".", function, range_offset ); return( -1 ); } if( *range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value for range offset: %" PRIu64 ".", function, range_offset ); return( -1 ); } } return( result ); } /* Retrieves a specific range * Returns 1 if successful or -1 on error */ int libcdata_range_list_get_range_by_index( libcdata_range_list_t *range_list, int element_index, uint64_t *range_start, uint64_t *range_size, intptr_t **value, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_range_list_get_range_by_index"; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range start.", function ); return( -1 ); } if( range_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range size.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_internal_range_list_get_value_by_index( internal_range_list, element_index, &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range list value: %d.", function, element_index ); goto on_error; } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value: %d.", function, element_index ); goto on_error; } *range_start = range_list_value->start; *range_size = range_list_value->size; *value = range_list_value->value; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves a range for a specific range offset * Returns 1 if successful, 0 if no range was found or -1 on error */ int libcdata_range_list_get_range_at_offset( libcdata_range_list_t *range_list, uint64_t range_offset, uint64_t *range_start, uint64_t *range_size, intptr_t **value, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_range_list_get_range_at_offset"; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range start.", function ); return( -1 ); } if( range_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range size.", function ); return( -1 ); } if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif result = libcdata_internal_range_list_get_value_at_offset( internal_range_list, range_offset, &range_list_value, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range list value for range offset: %" PRIu64 ".", function, range_offset ); goto on_error; } else if( result != 0 ) { if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value for range offset: %" PRIu64 ".", function, range_offset ); goto on_error; } *range_start = range_list_value->start; *range_size = range_list_value->size; *value = range_list_value->value; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, NULL ); #endif return( -1 ); } /* Determines if a certain range is present * Returns 1 if present, 0 if not present or -1 on error */ int libcdata_range_list_range_is_present( libcdata_range_list_t *range_list, uint64_t range_start, uint64_t range_size, libcerror_error_t **error ) { libcdata_internal_range_list_t *internal_range_list = NULL; libcdata_list_element_t *list_element = NULL; libcdata_range_list_value_t *range_list_value = NULL; static char *function = "libcdata_range_list_range_is_present"; uint64_t range_end = 0; int element_index = 0; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( range_start > (uint64_t) INT64_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid range start value exceeds maximum.", function ); return( -1 ); } if( range_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid size value exceeds maximum.", function ); return( -1 ); } range_end = range_start + range_size; if( range_end < range_start ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid range end value out of bounds.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif /* TODO add optimization using current element */ list_element = internal_range_list->first_element; for( element_index = 0; element_index < internal_range_list->number_of_elements; element_index++ ) { if( libcdata_list_element_get_value( list_element, (intptr_t **) &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, element_index ); goto on_error; } if( range_end < range_list_value->start ) { break; } if( ( range_start >= range_list_value->start ) && ( range_end <= range_list_value->end ) ) { result = 1; break; } if( libcdata_list_element_get_next_element( list_element, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, element_index ); goto on_error; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves the range spanning the ranges in the range list * Returns 1 if present, 0 if not present or -1 on error */ int libcdata_range_list_get_spanning_range( libcdata_range_list_t *range_list, uint64_t *range_start, uint64_t *range_size, libcerror_error_t **error ) { libcdata_range_list_value_t *range_list_value = NULL; libcdata_internal_range_list_t *internal_range_list = NULL; static char *function = "libcdata_range_list_get_spanning_range"; int element_index = 0; int result = 0; if( range_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list.", function ); return( -1 ); } internal_range_list = (libcdata_internal_range_list_t *) range_list; if( range_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range start.", function ); return( -1 ); } if( range_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range size.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( internal_range_list->number_of_elements > 0 ) { if( libcdata_internal_range_list_get_value_by_index( internal_range_list, 0, &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range list value: 0.", function ); goto on_error; } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value: 0.", function ); goto on_error; } *range_start = range_list_value->start; if( internal_range_list->number_of_elements > 1 ) { element_index = internal_range_list->number_of_elements - 1; if( libcdata_internal_range_list_get_value_by_index( internal_range_list, element_index, &range_list_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve range list value: %d.", function, element_index ); goto on_error; } if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing range list value: %d.", function, element_index ); goto on_error; } } *range_size = range_list_value->end - *range_start; result = 1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( result ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_range_list->read_write_lock, NULL ); #endif return( -1 ); } libfsapfs-20190210/libcdata/libcdata_extern.h0000664000175000017500000000240613430101142023056 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_INTERNAL_EXTERN_H ) #define _LIBCDATA_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata */ #if !defined( HAVE_LOCAL_LIBCDATA ) #include #define LIBCDATA_EXTERN_VARIABLE LIBCDATA_EXTERN #else #define LIBCDATA_EXTERN /* extern */ #define LIBCDATA_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBCDATA ) */ #endif /* !defined( _LIBCDATA_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/libcdata/libcdata_support.c0000664000175000017500000000220213430101142023252 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcdata_definitions.h" #include "libcdata_support.h" #if !defined( HAVE_LOCAL_LIBCDATA ) /* Returns the library version as a string */ const char *libcdata_get_version( void ) { return( (const char *) LIBCDATA_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBCDATA ) */ libfsapfs-20190210/libcdata/libcdata_list_element.h0000664000175000017500000000744113430101142024241 0ustar00lordyestalordyesta00000000000000/* * List element functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_LIST_ELEMENT_H ) #define _LIBCDATA_LIST_ELEMENT_H #include #include #include "libcdata_extern.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcdata_internal_list_element libcdata_internal_list_element_t; struct libcdata_internal_list_element { /* The list the element is part of */ intptr_t *parent_list; /* The previous list element */ libcdata_list_element_t *previous_element; /* The next list element */ libcdata_list_element_t *next_element; /* The value */ intptr_t *value; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBCDATA_EXTERN \ int libcdata_list_element_initialize( libcdata_list_element_t **element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_free( libcdata_list_element_t **element, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_list_element_get_parent_list( libcdata_list_element_t *element, intptr_t **parent_list, libcerror_error_t **error ); int libcdata_list_element_set_parent_list( libcdata_list_element_t *element, intptr_t *parent_list, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_get_previous_element( libcdata_list_element_t *element, libcdata_list_element_t **previous_element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_set_previous_element( libcdata_list_element_t *element, libcdata_list_element_t *previous_element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_get_next_element( libcdata_list_element_t *element, libcdata_list_element_t **next_element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_set_next_element( libcdata_list_element_t *element, libcdata_list_element_t *next_element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_get_elements( libcdata_list_element_t *element, libcdata_list_element_t **previous_element, libcdata_list_element_t **next_element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_set_elements( libcdata_list_element_t *element, libcdata_list_element_t *previous_element, libcdata_list_element_t *next_element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_get_value( libcdata_list_element_t *element, intptr_t **value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_element_set_value( libcdata_list_element_t *element, intptr_t *value, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_LIST_ELEMENT_H ) */ libfsapfs-20190210/libcdata/libcdata_btree_values_list.c0000664000175000017500000001220513430101142025255 0ustar00lordyestalordyesta00000000000000/* * Balanced tree values list functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_btree_values_list.h" #include "libcdata_libcerror.h" #include "libcdata_list.h" #include "libcdata_list_element.h" #include "libcdata_types.h" /* Frees a B-tree values list * Returns 1 if successful or -1 on error */ int libcdata_btree_values_list_free( libcdata_list_t **values_list, libcerror_error_t **error ) { static char *function = "libcdata_btree_values_list_free"; int result = 1; if( values_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid values list.", function ); return( -1 ); } if( libcdata_list_free( values_list, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free values list.", function ); result = -1; } return( result ); } /* Removes an element from the values list * Returns 1 if successful or -1 on error */ int libcdata_btree_values_list_remove_element( libcdata_list_t *values_list, libcdata_list_element_t **values_list_element, libcerror_error_t **error ) { static char *function = "libcdata_btree_values_list_remove_element"; if( values_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid values list.", function ); return( -1 ); } if( values_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid values list element.", function ); return( -1 ); } if( libcdata_list_remove_element( values_list, *values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove element from values list.", function ); return( -1 ); } if( libcdata_list_element_free( values_list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free element.", function ); return( -1 ); } return( 1 ); } /* Replaces the values list element with the previous element * If available replacement_value is set to the value of the previous element * Returns 1 if successful or -1 on error */ int libcdata_btree_values_list_replace_element_with_previous( libcdata_list_t *values_list, libcdata_list_element_t **values_list_element, intptr_t **replacement_value, libcerror_error_t **error ) { libcdata_list_element_t *previous_element = NULL; static char *function = "libcdata_btree_values_list_replace_element_with_previous"; if( values_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid values list.", function ); return( -1 ); } if( values_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid values list element.", function ); return( -1 ); } if( libcdata_list_element_get_previous_element( *values_list_element, &previous_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element from values list element.", function ); return( -1 ); } if( previous_element != NULL ) { if( libcdata_list_element_get_value( previous_element, replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from previous element.", function ); return( -1 ); } } if( libcdata_btree_values_list_remove_element( values_list, values_list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove element from values list.", function ); return( -1 ); } *values_list_element = previous_element; return( 1 ); } libfsapfs-20190210/libcdata/libcdata_range_list_value.c0000664000175000017500000002463113430101142025073 0ustar00lordyestalordyesta00000000000000/* * Range list value * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_libcerror.h" #include "libcdata_range_list_value.h" /* Creates a range list value * Make sure the value range_list_value is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcdata_range_list_value_initialize( libcdata_range_list_value_t **range_list_value, libcerror_error_t **error ) { static char *function = "libcdata_range_list_value_initialize"; if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list value.", function ); return( -1 ); } if( *range_list_value != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid range list value value already set.", function ); return( -1 ); } *range_list_value = memory_allocate_structure( libcdata_range_list_value_t ); if( *range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create range list value.", function ); goto on_error; } if( memory_set( *range_list_value, 0, sizeof( libcdata_range_list_value_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear range list value.", function ); goto on_error; } return( 1 ); on_error: if( *range_list_value != NULL ) { memory_free( *range_list_value ); *range_list_value = NULL; } return( -1 ); } /* Frees a range list value * Uses the value_free_function to free the element value * Returns 1 if successful or -1 on error */ int libcdata_range_list_value_free( libcdata_range_list_value_t **range_list_value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { static char *function = "libcdata_range_list_value_free"; int result = 1; if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list value.", function ); return( -1 ); } if( *range_list_value != NULL ) { if( value_free_function != NULL ) { if( value_free_function( &( ( *range_list_value )->value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free value.", function ); result = -1; } } memory_free( *range_list_value ); *range_list_value = NULL; } return( result ); } /* Clones the range list value * * The values are cloned using the value_clone_function * On error the values are freed using the value_free_function * * Returns 1 if successful or -1 on error */ int libcdata_range_list_value_clone( libcdata_range_list_value_t **destination_range_list_value, libcdata_range_list_value_t *source_range_list_value, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ) { static char *function = "libcdata_range_list_value_clone"; if( destination_range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination range list value.", function ); return( -1 ); } if( *destination_range_list_value != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination range list value value already set.", function ); return( -1 ); } if( value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value free function.", function ); return( -1 ); } if( value_clone_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value clone function.", function ); return( -1 ); } if( source_range_list_value == NULL ) { *destination_range_list_value = NULL; return( 1 ); } *destination_range_list_value = memory_allocate_structure( libcdata_range_list_value_t ); if( *destination_range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create destination range list value.", function ); goto on_error; } if( memory_copy( *destination_range_list_value, source_range_list_value, sizeof( libcdata_range_list_value_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, "%s: unable to copy source to destination range list value.", function ); memory_free( *destination_range_list_value ); *destination_range_list_value = NULL; return( -1 ); } ( *destination_range_list_value )->value = NULL; if( value_clone_function( &( ( *destination_range_list_value )->value ), source_range_list_value->value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination value.", function ); goto on_error; } return( 1 ); on_error: if( *destination_range_list_value != NULL ) { if( ( *destination_range_list_value )->value != NULL ) { value_free_function( &( ( *destination_range_list_value )->value ), NULL ); } memory_free( *destination_range_list_value ); *destination_range_list_value = NULL; } return( -1 ); } /* Merges the range list values * * The values are merged using the value_merge_function. * If the source value is NULL the merge function is not called. * * Returns 1 if successful or -1 on error */ int libcdata_range_list_value_merge( libcdata_range_list_value_t *destination_range_list_value, libcdata_range_list_value_t *source_range_list_value, int (*value_merge_function)( intptr_t *destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ) { static char *function = "libcdata_range_list_value_merge"; if( destination_range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination range list value.", function ); return( -1 ); } if( source_range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid source range list value.", function ); return( -1 ); } if( source_range_list_value->value != NULL ) { if( destination_range_list_value->value == NULL ) { destination_range_list_value->value = source_range_list_value->value; } else { if( value_merge_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value merge function.", function ); return( -1 ); } if( value_merge_function( destination_range_list_value->value, source_range_list_value->value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to merge source with destination value.", function ); return( -1 ); } } } if( destination_range_list_value->start > source_range_list_value->start ) { /* Merge a preceding range */ destination_range_list_value->size += destination_range_list_value->start - source_range_list_value->start; destination_range_list_value->start = source_range_list_value->start; } if( destination_range_list_value->end < source_range_list_value->end ) { /* Merge a successive range */ destination_range_list_value->size += source_range_list_value->end - destination_range_list_value->end; destination_range_list_value->end = source_range_list_value->end; } return( 1 ); } /* Checks if the range overlaps with the range list value * Returns 1 if the range overlaps, 0 if not or -1 on error */ int libcdata_range_list_value_check_range_overlap( libcdata_range_list_value_t *range_list_value, uint64_t range_start, uint64_t range_end, libcerror_error_t **error ) { static char *function = "libcdata_range_list_value_check_range_overlap"; if( range_list_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid range list value.", function ); return( -1 ); } /* Check if the range overlaps the existing range entirely */ if( ( range_start < range_list_value->start ) && ( range_end > range_list_value->end ) ) { return( 1 ); } /* Check if the range overlaps at the end of the existing range */ if( ( range_start >= range_list_value->start ) && ( range_start <= range_list_value->end ) ) { return( 1 ); } /* Check if the range overlaps at the beginning of the existing range */ if( ( range_end >= range_list_value->start ) && ( range_end <= range_list_value->end ) ) { return( 1 ); } return( 0 ); } libfsapfs-20190210/libcdata/libcdata_libcerror.h0000664000175000017500000000264013430101142023534 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_LIBCERROR_H ) #define _LIBCDATA_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCDATA_LIBCERROR_H ) */ libfsapfs-20190210/libcdata/libcdata_error.c0000664000175000017500000000554013430101142022677 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_error.h" #include "libcdata_libcerror.h" #if !defined( HAVE_LOCAL_LIBCDATA ) /* Free an error and its elements */ void libcdata_error_free( libcdata_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcdata_error_fprint( libcdata_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcdata_error_sprint( libcdata_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcdata_error_backtrace_fprint( libcdata_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcdata_error_backtrace_sprint( libcdata_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBCDATA ) */ libfsapfs-20190210/libcdata/libcdata_error.h0000664000175000017500000000340513430101142022702 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_INTERNAL_ERROR_H ) #define _LIBCDATA_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBCDATA ) #include #endif #include "libcdata_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCDATA ) LIBCDATA_EXTERN \ void libcdata_error_free( libcdata_error_t **error ); LIBCDATA_EXTERN \ int libcdata_error_fprint( libcdata_error_t *error, FILE *stream ); LIBCDATA_EXTERN \ int libcdata_error_sprint( libcdata_error_t *error, char *string, size_t size ); LIBCDATA_EXTERN \ int libcdata_error_backtrace_fprint( libcdata_error_t *error, FILE *stream ); LIBCDATA_EXTERN \ int libcdata_error_backtrace_sprint( libcdata_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBCDATA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libcdata/libcdata_support.h0000664000175000017500000000232013430101142023260 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_SUPPORT_H ) #define _LIBCDATA_SUPPORT_H #include #include #include "libcdata_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCDATA ) LIBCDATA_EXTERN \ const char *libcdata_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBCDATA ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_SUPPORT_H ) */ libfsapfs-20190210/libcdata/libcdata_btree_node.h0000664000175000017500000000562213430101142023662 0ustar00lordyestalordyesta00000000000000/* * Balanced tree node functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_BTREE_NODE_H ) #define _LIBCDATA_BTREE_NODE_H #include #include #include "libcdata_libcerror.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif int libcdata_btree_node_get_sub_node_by_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **sub_node, libcdata_list_element_t **values_list_element, libcerror_error_t **error ); int libcdata_btree_node_get_upper_node_by_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **upper_node, libcdata_list_element_t **values_list_element, libcerror_error_t **error ); int libcdata_btree_node_append_value( libcdata_tree_node_t *node, intptr_t *value, libcerror_error_t **error ); int libcdata_btree_node_insert_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_btree_node_replace_value( libcdata_tree_node_t *node, intptr_t *value, intptr_t *replacement_value, libcerror_error_t **error ); int libcdata_btree_node_flatten_node( libcdata_tree_node_t **node, libcerror_error_t **error ); int libcdata_btree_node_remove_sub_node( libcdata_tree_node_t *node, libcdata_tree_node_t **sub_node, libcerror_error_t **error ); int libcdata_btree_node_remove_value( libcdata_tree_node_t *node, intptr_t *value, intptr_t *replacement_value, libcerror_error_t **error ); int libcdata_btree_node_split( libcdata_tree_node_t *node, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_BTREE_NODE_H ) */ libfsapfs-20190210/libcdata/libcdata_list.c0000664000175000017500000017732013430101142022527 0ustar00lordyestalordyesta00000000000000/* * List functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_definitions.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_list.h" #include "libcdata_list_element.h" #include "libcdata_types.h" /* Creates a list * Make sure the value list is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcdata_list_initialize( libcdata_list_t **list, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; static char *function = "libcdata_list_initialize"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( *list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid list value already set.", function ); return( -1 ); } internal_list = memory_allocate_structure( libcdata_internal_list_t ); if( internal_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create list.", function ); goto on_error; } if( memory_set( internal_list, 0, sizeof( libcdata_internal_list_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear list.", function ); memory_free( internal_list ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_initialize( &( internal_list->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *list = (libcdata_list_t *) internal_list; return( 1 ); on_error: if( internal_list != NULL ) { memory_free( internal_list ); } return( -1 ); } /* Frees a list including the elements * Uses the value_free_function to free the element value * Returns 1 if successful or -1 on error */ int libcdata_list_free( libcdata_list_t **list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; static char *function = "libcdata_list_free"; int result = 1; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( *list != NULL ) { internal_list = (libcdata_internal_list_t *) *list; *list = NULL; if( libcdata_list_empty( (libcdata_list_t*) internal_list, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to empty list.", function ); result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_free( &( internal_list->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif memory_free( internal_list ); } return( result ); } /* Empties a list and frees the elements * Uses the value_free_function to free the element value * Returns 1 if successful or -1 on error */ int libcdata_list_empty( libcdata_list_t *list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; libcdata_list_element_t *list_element = NULL; libcdata_list_element_t *next_element = NULL; static char *function = "libcdata_list_empty"; int element_index = 0; int number_of_elements = 0; int result = 1; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } #endif if( internal_list->number_of_elements > 0 ) { number_of_elements = internal_list->number_of_elements; list_element = internal_list->first_element; for( element_index = 0; element_index < number_of_elements; element_index++ ) { if( libcdata_list_element_get_next_element( list_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, element_index ); result = -1; break; } internal_list->first_element = next_element; if( internal_list->last_element == list_element ) { internal_list->last_element = next_element; } internal_list->number_of_elements -= 1; if( next_element != NULL ) { if( libcdata_list_element_set_previous_element( next_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of list element: %d.", function, element_index + 1 ); result = -1; } } if( libcdata_list_element_set_next_element( list_element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of list element: %d.", function, element_index ); result = -1; } if( libcdata_list_element_free( &list_element, value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free list element: %d.", function, element_index ); result = -1; } list_element = next_element; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); result = -1; } #endif return( result ); } /* Clones the list and its elements * * The values are cloned using the value_clone_function * On error the values are freed using the value_free_function * * Returns 1 if successful or -1 on error */ int libcdata_list_clone( libcdata_list_t **destination_list, libcdata_list_t *source_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_list_t *internal_destination_list = NULL; libcdata_internal_list_t *internal_source_list = NULL; libcdata_internal_list_element_t *internal_source_list_element = NULL; intptr_t *destination_value = NULL; static char *function = "libcdata_list_clone"; int element_index = 0; if( destination_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid destination list.", function ); return( -1 ); } if( *destination_list != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid destination list already set.", function ); return( -1 ); } if( value_free_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value free function.", function ); return( -1 ); } if( value_clone_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value clone function.", function ); return( -1 ); } if( source_list == NULL ) { *destination_list = NULL; return( 1 ); } internal_source_list = (libcdata_internal_list_t *) source_list; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_source_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( libcdata_list_initialize( (libcdata_list_t **) &internal_destination_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination list.", function ); goto on_error; } if( internal_destination_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing destination list.", function ); goto on_error; } if( internal_source_list->first_element != NULL ) { internal_source_list_element = (libcdata_internal_list_element_t *) internal_source_list->first_element; for( element_index = 0; element_index < internal_source_list->number_of_elements; element_index++ ) { if( internal_source_list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing source list element: %d.", function, element_index ); goto on_error; } if( value_clone_function( &destination_value, internal_source_list_element->value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create destination value: %d.", function, element_index ); goto on_error; } if( libcdata_list_append_value( (libcdata_list_t *) internal_destination_list, destination_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append value: %d to destination list.", function, element_index ); goto on_error; } destination_value = NULL; internal_source_list_element = (libcdata_internal_list_element_t *) internal_source_list_element->next_element; } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_source_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); libcdata_list_free( (libcdata_list_t **) &internal_destination_list, value_free_function, error ); return( -1 ); } #endif *destination_list = (libcdata_list_t *) internal_destination_list; return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_source_list->read_write_lock, NULL ); #endif if( destination_value != NULL ) { value_free_function( &destination_value, NULL ); } if( internal_destination_list != NULL ) { libcdata_list_free( (libcdata_list_t **) &internal_destination_list, value_free_function, error ); } return( -1 ); } /* Retrieves the number of elements in the list * Returns 1 if successful or -1 on error */ int libcdata_list_get_number_of_elements( libcdata_list_t *list, int *number_of_elements, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; static char *function = "libcdata_list_get_number_of_elements"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( number_of_elements == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of elements.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *number_of_elements = internal_list->number_of_elements; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Retrieves the first elements in the list * Returns 1 if successful or -1 on error */ int libcdata_list_get_first_element( libcdata_list_t *list, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; static char *function = "libcdata_list_get_first_element"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *element = internal_list->first_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the first element in the list * Returns 1 if successful or -1 on error */ int libcdata_internal_list_set_first_element( libcdata_internal_list_t *internal_list, libcdata_list_element_t *element, libcerror_error_t **error ) { libcdata_list_element_t *backup_first_element = NULL; static char *function = "libcdata_internal_list_set_first_element"; if( internal_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } backup_first_element = internal_list->first_element; if( element != NULL ) { if( libcdata_list_element_set_next_element( element, internal_list->first_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of element.", function ); goto on_error; } } if( internal_list->first_element != NULL ) { if( libcdata_list_element_set_previous_element( internal_list->first_element, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of first element.", function ); goto on_error; } } internal_list->first_element = element; return( 1 ); on_error: if( element != NULL ) { libcdata_list_element_set_next_element( element, NULL, NULL ); } if( backup_first_element != NULL ) { libcdata_list_element_set_next_element( backup_first_element, NULL, NULL ); } internal_list->first_element = backup_first_element; return( -1 ); } /* Retrieves the last elements in the list * Returns 1 if successful or -1 on error */ int libcdata_list_get_last_element( libcdata_list_t *list, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; static char *function = "libcdata_list_get_last_element"; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *element = internal_list->last_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the last element in the list * Returns 1 if successful or -1 on error */ int libcdata_internal_list_set_last_element( libcdata_internal_list_t *internal_list, libcdata_list_element_t *element, libcerror_error_t **error ) { libcdata_list_element_t *backup_last_element = NULL; static char *function = "libcdata_internal_list_set_last_element"; if( internal_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } backup_last_element = internal_list->last_element; if( element != NULL ) { if( libcdata_list_element_set_previous_element( element, internal_list->last_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of element.", function ); goto on_error; } } if( internal_list->last_element != NULL ) { if( libcdata_list_element_set_next_element( internal_list->last_element, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of last element.", function ); goto on_error; } } internal_list->last_element = element; return( 1 ); on_error: if( element != NULL ) { libcdata_list_element_set_previous_element( element, NULL, NULL ); } if( backup_last_element != NULL ) { libcdata_list_element_set_next_element( backup_last_element, NULL, NULL ); } internal_list->last_element = backup_last_element; return( -1 ); } /* Retrieves a specific element from the list * Returns 1 if successful or -1 on error */ int libcdata_list_get_element_by_index( libcdata_list_t *list, int element_index, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; libcdata_list_element_t *list_element = NULL; static char *function = "libcdata_list_get_element_by_index"; int element_iterator = 0; if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( ( element_index < 0 ) || ( element_index >= internal_list->number_of_elements ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid element index value out of bounds.", function ); return( -1 ); } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif if( element_index < ( internal_list->number_of_elements / 2 ) ) { list_element = internal_list->first_element; for( element_iterator = 0; element_iterator < element_index; element_iterator++ ) { if( list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected in element: %d.", function, element_iterator ); goto on_error; } if( libcdata_list_element_get_next_element( list_element, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, element_index ); goto on_error; } } } else { list_element = internal_list->last_element; for( element_iterator = ( internal_list->number_of_elements - 1 ); element_iterator > element_index; element_iterator-- ) { if( list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected in element: %d.", function, element_iterator ); goto on_error; } if( libcdata_list_element_get_previous_element( list_element, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element from list element: %d.", function, element_index ); goto on_error; } } } if( list_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing list element.", function ); goto on_error; } *element = list_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); on_error: #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcthreads_read_write_lock_release_for_read( internal_list->read_write_lock, NULL ); #endif return( -1 ); } /* Retrieves a specific value from the list * Returns 1 if successful or -1 on error */ int libcdata_list_get_value_by_index( libcdata_list_t *list, int element_index, intptr_t **value, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; static char *function = "libcdata_list_get_value_by_index"; if( libcdata_list_get_element_by_index( list, element_index, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve list element: %d from list.", function, element_index ); return( -1 ); } if( libcdata_list_element_get_value( list_element, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, element_index ); return( -1 ); } return( 1 ); } /* Prepends a list element to the list * Returns 1 if successful or -1 on error */ int libcdata_list_prepend_element( libcdata_list_t *list, libcdata_list_element_t *element, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; libcdata_list_element_t *next_element = NULL; libcdata_list_element_t *previous_element = NULL; static char *function = "libcdata_list_prepend_element"; int result = 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_list_element_t *backup_first_element = NULL; libcdata_list_element_t *backup_last_element = NULL; #endif if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( internal_list->number_of_elements == 0 ) { if( internal_list->first_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - first element already set.", function ); return( -1 ); } if( internal_list->last_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - last element already set.", function ); return( -1 ); } } else { if( internal_list->first_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first element.", function ); return( -1 ); } if( internal_list->last_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last element.", function ); return( -1 ); } } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } if( libcdata_list_element_get_elements( element, &previous_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous and next element from list element.", function ); return( -1 ); } if( ( previous_element != NULL ) || ( next_element != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: list element already part of a list.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_element = internal_list->first_element; backup_last_element = internal_list->last_element; #endif result = libcdata_list_element_set_next_element( element, internal_list->first_element, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of list element.", function ); result = -1; } if( result == 1 ) { if( internal_list->first_element != NULL ) { result = libcdata_list_element_set_previous_element( internal_list->first_element, element, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of first element.", function ); libcdata_list_element_set_next_element( element, NULL, NULL ); result = -1; } } } if( result == 1 ) { internal_list->first_element = element; if( internal_list->last_element == NULL ) { internal_list->last_element = element; } internal_list->number_of_elements += 1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { libcdata_list_element_set_next_element( element, NULL, NULL ); libcdata_list_element_set_previous_element( backup_first_element, NULL, NULL ); internal_list->first_element = backup_first_element; internal_list->last_element = backup_last_element; internal_list->number_of_elements -= 1; } return( -1 ); #endif } /* Prepends a value to the list * Creates a new list element * Returns 1 if successful or -1 on error */ int libcdata_list_prepend_value( libcdata_list_t *list, intptr_t *value, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; static char *function = "libcdata_list_prepend_value"; if( libcdata_list_element_initialize( &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libcdata_list_prepend_element( list, list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to prepend element to list.", function ); goto on_error; } if( libcdata_list_element_set_value( list_element, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to set value of list element.", function ); goto on_error; } return( 1 ); on_error: if( list_element != NULL ) { libcdata_list_element_free( &list_element, NULL, NULL ); } return( -1 ); } /* Appends a list element to the list * Returns 1 if successful or -1 on error */ int libcdata_list_append_element( libcdata_list_t *list, libcdata_list_element_t *element, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; libcdata_list_element_t *next_element = NULL; libcdata_list_element_t *previous_element = NULL; static char *function = "libcdata_list_append_element"; int result = 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_list_element_t *backup_first_element = NULL; libcdata_list_element_t *backup_last_element = NULL; #endif if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( internal_list->number_of_elements == 0 ) { if( internal_list->first_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - first element already set.", function ); return( -1 ); } if( internal_list->last_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - last element already set.", function ); return( -1 ); } } else { if( internal_list->first_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first element.", function ); return( -1 ); } if( internal_list->last_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last element.", function ); return( -1 ); } } if( libcdata_list_element_get_elements( element, &previous_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous and next element from list element.", function ); return( -1 ); } if( ( previous_element != NULL ) || ( next_element != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: list element already part of a list.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_element = internal_list->first_element; backup_last_element = internal_list->last_element; #endif result = libcdata_list_element_set_previous_element( element, internal_list->last_element, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of list element.", function ); result = -1; } if( result == 1 ) { if( internal_list->last_element != NULL ) { result = libcdata_list_element_set_next_element( internal_list->last_element, element, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of last element.", function ); libcdata_list_element_set_previous_element( element, NULL, NULL ); result = -1; } } } if( result == 1 ) { if( internal_list->first_element == NULL ) { internal_list->first_element = element; } internal_list->last_element = element; internal_list->number_of_elements += 1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { libcdata_list_element_set_previous_element( element, NULL, NULL ); libcdata_list_element_set_next_element( backup_last_element, NULL, NULL ); internal_list->first_element = backup_first_element; internal_list->last_element = backup_last_element; internal_list->number_of_elements -= 1; } return( -1 ); #endif } /* Appends a value to the list * Creates a new list element * Returns 1 if successful or -1 on error */ int libcdata_list_append_value( libcdata_list_t *list, intptr_t *value, libcerror_error_t **error ) { libcdata_list_element_t *element = NULL; static char *function = "libcdata_list_append_value"; if( libcdata_list_element_initialize( &element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); goto on_error; } if( libcdata_list_element_set_value( element, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to set value of list element.", function ); goto on_error; } if( libcdata_list_append_element( list, element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append element to list.", function ); goto on_error; } return( 1 ); on_error: if( element != NULL ) { libcdata_list_element_free( &element, NULL, NULL ); } return( -1 ); } /* Retrieves the element which the element should be inserted before * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate value. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * * On return element will be set to NULL if the element should be inserted at the end of the list. * * Returns 1 if successful, 0 if a list element containing the value already exists or -1 on error */ int libcdata_internal_list_insert_element_find_element( libcdata_internal_list_t *internal_list, intptr_t *value_to_insert, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, int *element_index, libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_list_element_t *list_element = NULL; intptr_t *list_element_value = NULL; static char *function = "libcdata_internal_list_insert_element_find_element"; int compare_result = 0; int result = 1; int safe_element_index = 0; if( internal_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value compare function.", function ); return( -1 ); } if( ( insert_flags & ~( LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported insert flags: 0x%02" PRIx8 ".", function, insert_flags ); return( -1 ); } if( element_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element index.", function ); return( -1 ); } if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element.", function ); return( -1 ); } list_element = internal_list->first_element; compare_result = LIBCDATA_COMPARE_GREATER; for( safe_element_index = 0; safe_element_index < internal_list->number_of_elements; safe_element_index++ ) { if( libcdata_list_element_get_value( list_element, &list_element_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from list element: %d.", function, safe_element_index ); return( -1 ); } compare_result = value_compare_function( value_to_insert, list_element_value, error ); if( compare_result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to compare list element: %d.", function, safe_element_index ); return( -1 ); } else if( compare_result == LIBCDATA_COMPARE_EQUAL ) { if( ( insert_flags & LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) != 0 ) { result = 0; break; } } else if( compare_result == LIBCDATA_COMPARE_LESS ) { break; } else if( compare_result != LIBCDATA_COMPARE_GREATER ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported value compare function return value: %d.", function, compare_result ); return( -1 ); } if( libcdata_list_element_get_next_element( list_element, &list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve next element from list element: %d.", function, safe_element_index ); return( -1 ); } } if( ( compare_result == LIBCDATA_COMPARE_EQUAL ) || ( compare_result == LIBCDATA_COMPARE_LESS ) ) { *element_index = safe_element_index; *element = list_element; } else { *element_index = internal_list->number_of_elements; *element = NULL; } return( result ); } /* Inserts the element before the list element * If list_element is NULL the element is inserted before or as the first element in the list * Returns 1 if successful, or -1 on error */ int libcdata_internal_list_insert_element_before_element( libcdata_internal_list_t *internal_list, libcdata_list_element_t *list_element, libcdata_list_element_t *element_to_insert, libcerror_error_t **error ) { libcdata_list_element_t *backup_first_element = NULL; libcdata_list_element_t *backup_last_element = NULL; libcdata_list_element_t *previous_element = NULL; static char *function = "libcdata_internal_list_insert_element_before_element"; if( internal_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } if( element_to_insert == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element to insert.", function ); return( -1 ); } backup_first_element = internal_list->first_element; backup_last_element = internal_list->last_element; if( list_element != NULL ) { if( libcdata_list_element_get_previous_element( list_element, &previous_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous element from list element.", function ); return( -1 ); } } if( internal_list->number_of_elements == 0 ) { internal_list->first_element = element_to_insert; internal_list->last_element = element_to_insert; } else if( list_element == NULL ) { if( libcdata_internal_list_set_last_element( internal_list, element_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set last list element.", function ); goto on_error; } } else { if( libcdata_list_element_set_elements( element_to_insert, previous_element, list_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous and next element of element to insert.", function ); goto on_error; } if( internal_list->first_element == list_element ) { internal_list->first_element = element_to_insert; } else { if( libcdata_list_element_set_next_element( previous_element, element_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of previous list element.", function ); goto on_error; } } if( libcdata_list_element_set_previous_element( list_element, element_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of list element.", function ); goto on_error; } } internal_list->number_of_elements += 1; return( 1 ); on_error: if( element_to_insert != NULL ) { libcdata_list_element_set_elements( element_to_insert, NULL, NULL, NULL ); } if( previous_element != NULL ) { libcdata_list_element_set_next_element( previous_element, list_element, NULL ); } if( list_element != NULL ) { libcdata_list_element_set_previous_element( list_element, previous_element, NULL ); } internal_list->first_element = backup_first_element; internal_list->last_element = backup_last_element; return( -1 ); } /* Inserts a list element into the list * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate value. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * * Returns 1 if successful, 0 if the list element already exists or -1 on error */ int libcdata_list_insert_element( libcdata_list_t *list, libcdata_list_element_t *element_to_insert, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; libcdata_list_element_t *list_element = NULL; libcdata_list_element_t *next_element = NULL; libcdata_list_element_t *previous_element = NULL; intptr_t *value_to_insert = NULL; static char *function = "libcdata_list_insert_element"; int element_index = 0; int result = 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_list_element_t *backup_first_element = NULL; libcdata_list_element_t *backup_last_element = NULL; #endif if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( internal_list->number_of_elements == 0 ) { if( internal_list->first_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - first element already set.", function ); return( -1 ); } if( internal_list->last_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - last element already set.", function ); return( -1 ); } } else { if( internal_list->first_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first element.", function ); return( -1 ); } if( internal_list->last_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last element.", function ); return( -1 ); } } if( element_to_insert == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element to insert.", function ); return( -1 ); } if( value_compare_function == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value compare function.", function ); return( -1 ); } if( ( insert_flags & ~( LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES ) ) != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: unsupported insert flags: 0x%02" PRIx8 ".", function, insert_flags ); return( -1 ); } if( libcdata_list_element_get_elements( element_to_insert, &previous_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous and next element from element to insert.", function ); return( -1 ); } if( ( previous_element != NULL ) || ( next_element != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid element to insert - already part of a list.", function ); return( -1 ); } if( libcdata_list_element_get_value( element_to_insert, &value_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from element to insert.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_element = internal_list->first_element; backup_last_element = internal_list->last_element; #endif result = libcdata_internal_list_insert_element_find_element( internal_list, value_to_insert, value_compare_function, insert_flags, &element_index, &list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to find element in list.", function ); result = -1; } else if( result == 1 ) { if( list_element != NULL ) { if( libcdata_list_element_get_elements( list_element, &previous_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous and next element from list element: %d.", function, element_index ); result = -1; } } if( result == 1 ) { if( libcdata_internal_list_insert_element_before_element( internal_list, list_element, element_to_insert, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert element before list element.", function ); result = -1; } } } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { libcdata_list_element_set_elements( element_to_insert, NULL, NULL, NULL ); if( list_element != NULL ) { libcdata_list_element_set_elements( list_element, previous_element, next_element, NULL ); } else if( backup_last_element != NULL ) { libcdata_list_element_set_next_element( backup_last_element, NULL, NULL ); } internal_list->first_element = backup_first_element; internal_list->last_element = backup_last_element; internal_list->number_of_elements -= 1; } return( -1 ); #endif } /* Inserts a value to the list * * Creates a new list element * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Duplicate entries are allowed by default and inserted after the last duplicate value. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * * Returns 1 if successful, 0 if the list element already exists or -1 on error */ int libcdata_list_insert_value( libcdata_list_t *list, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ) { libcdata_list_element_t *element = NULL; static char *function = "libcdata_list_insert_value"; int result = 1; if( libcdata_list_element_initialize( &element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create list element.", function ); return( -1 ); } if( libcdata_list_element_set_value( element, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to set value of list element.", function ); goto on_error; } result = libcdata_list_insert_element( list, element, value_compare_function, insert_flags, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert element to list.", function ); goto on_error; } else if( result == 0 ) { if( libcdata_list_element_free( &element, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free list element.", function ); goto on_error; } } return( result ); on_error: if( element != NULL ) { libcdata_list_element_free( &element, NULL, NULL ); } return( -1 ); } /* Removes a list element from the list * Returns 1 if successful or -1 on error */ int libcdata_list_remove_element( libcdata_list_t *list, libcdata_list_element_t *element_to_remove, libcerror_error_t **error ) { libcdata_internal_list_t *internal_list = NULL; libcdata_list_element_t *next_element = NULL; libcdata_list_element_t *previous_element = NULL; static char *function = "libcdata_list_remove_element"; int result = 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_list_element_t *backup_first_element = NULL; libcdata_list_element_t *backup_last_element = NULL; #endif if( list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list.", function ); return( -1 ); } internal_list = (libcdata_internal_list_t *) list; if( internal_list->number_of_elements == 0 ) { if( internal_list->first_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - first element already set.", function ); return( -1 ); } if( internal_list->last_element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - last element already set.", function ); return( -1 ); } } else { if( internal_list->first_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing first element.", function ); return( -1 ); } if( internal_list->last_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: corruption detected - missing last element.", function ); return( -1 ); } } if( element_to_remove == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid element to remove.", function ); return( -1 ); } if( libcdata_list_element_get_elements( element_to_remove, &previous_element, &next_element, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve previous and next element from element to remove.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_first_element = internal_list->first_element; backup_last_element = internal_list->last_element; #endif result = libcdata_list_element_set_elements( element_to_remove, NULL, NULL, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous and next element of element to remove.", function ); result = -1; } if( result == 1 ) { if( next_element != NULL ) { result = libcdata_list_element_set_previous_element( next_element, previous_element, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set previous element of next element.", function ); libcdata_list_element_set_elements( element_to_remove, previous_element, next_element, NULL ); result = -1; } } } if( result == 1 ) { if( previous_element != NULL ) { result = libcdata_list_element_set_next_element( previous_element, next_element, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set next element of previous element.", function ); if( next_element != NULL ) { libcdata_list_element_set_previous_element( next_element, element_to_remove, NULL ); } libcdata_list_element_set_elements( element_to_remove, previous_element, next_element, NULL ); result = -1; } } } if( result == 1 ) { if( element_to_remove == internal_list->first_element ) { internal_list->first_element = next_element; } if( element_to_remove == internal_list->last_element ) { internal_list->last_element = previous_element; } internal_list->number_of_elements -= 1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_list->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: if( result == 1 ) { libcdata_list_element_set_elements( element_to_remove, previous_element, next_element, NULL ); if( next_element != NULL ) { libcdata_list_element_set_previous_element( next_element, element_to_remove, NULL ); } if( previous_element != NULL ) { libcdata_list_element_set_next_element( previous_element, element_to_remove, NULL ); } internal_list->first_element = backup_first_element; internal_list->last_element = backup_last_element; internal_list->number_of_elements += 1; } return( -1 ); #endif } libfsapfs-20190210/libcdata/libcdata_tree_node.h0000664000175000017500000002025713430101142023521 0ustar00lordyestalordyesta00000000000000/* * Tree functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_TREE_NODE_H ) #define _LIBCDATA_TREE_NODE_H #include #include #include "libcdata_extern.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcdata_internal_tree_node libcdata_internal_tree_node_t; struct libcdata_internal_tree_node { /* The parent node */ libcdata_tree_node_t *parent_node; /* The previous node */ libcdata_tree_node_t *previous_node; /* The next node */ libcdata_tree_node_t *next_node; /* The first sub node */ libcdata_tree_node_t *first_sub_node; /* The last sub node */ libcdata_tree_node_t *last_sub_node; /* The number of sub nodes */ int number_of_sub_nodes; /* The node value */ intptr_t *value; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBCDATA_EXTERN \ int libcdata_tree_node_initialize( libcdata_tree_node_t **node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_free( libcdata_tree_node_t **node, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_empty( libcdata_tree_node_t *node, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_clone( libcdata_tree_node_t **destination_node, libcdata_tree_node_t *source_node, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_value( libcdata_tree_node_t *node, intptr_t **value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_set_value( libcdata_tree_node_t *node, intptr_t *value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_parent_node( libcdata_tree_node_t *node, libcdata_tree_node_t **parent_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_set_parent_node( libcdata_tree_node_t *node, libcdata_tree_node_t *parent_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_previous_node( libcdata_tree_node_t *node, libcdata_tree_node_t **previous_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_set_previous_node( libcdata_tree_node_t *node, libcdata_tree_node_t *previous_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_next_node( libcdata_tree_node_t *node, libcdata_tree_node_t **next_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_set_next_node( libcdata_tree_node_t *node, libcdata_tree_node_t *next_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t **parent_node, libcdata_tree_node_t **previous_node, libcdata_tree_node_t **next_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_set_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t *parent_node, libcdata_tree_node_t *previous_node, libcdata_tree_node_t *next_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_first_sub_node( libcdata_tree_node_t *node, libcdata_tree_node_t **first_sub_node, libcerror_error_t **error ); int libcdata_internal_tree_node_set_first_sub_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *first_sub_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_last_sub_node( libcdata_tree_node_t *node, libcdata_tree_node_t **last_sub_node, libcerror_error_t **error ); int libcdata_internal_tree_node_set_last_sub_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *last_sub_node, libcerror_error_t **error ); int libcdata_tree_node_get_sub_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t **first_sub_node, libcdata_tree_node_t **last_sub_node, libcerror_error_t **error ); int libcdata_tree_node_set_sub_nodes( libcdata_tree_node_t *node, libcdata_tree_node_t *first_sub_node, libcdata_tree_node_t *last_sub_node, libcerror_error_t **error ); int libcdata_internal_tree_node_append_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *node_to_append, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_append_node( libcdata_tree_node_t *node, libcdata_tree_node_t *node_to_append, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_append_value( libcdata_tree_node_t *node, intptr_t *value, libcerror_error_t **error ); int libcdata_internal_tree_node_insert_node_find_sub_node( libcdata_internal_tree_node_t *internal_node, intptr_t *value_to_insert, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, int *sub_node_index, libcdata_tree_node_t **sub_node, libcerror_error_t **error ); int libcdata_internal_tree_node_insert_node_before_sub_node( libcdata_internal_tree_node_t *internal_node, libcdata_tree_node_t *sub_node, libcdata_tree_node_t *node_to_insert, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_insert_node( libcdata_tree_node_t *node, libcdata_tree_node_t *node_to_insert, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_insert_value( libcdata_tree_node_t *node, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_replace_node( libcdata_tree_node_t *node, libcdata_tree_node_t *replacement_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_remove_node( libcdata_tree_node_t *node, libcdata_tree_node_t *sub_node_to_remove, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_number_of_sub_nodes( libcdata_tree_node_t *node, int *number_of_sub_nodes, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_sub_node_by_index( libcdata_tree_node_t *node, int sub_node_index, libcdata_tree_node_t **sub_node, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_tree_node_get_leaf_node_list( libcdata_tree_node_t *node, libcdata_list_t **leaf_node_list, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_TREE_NODE_H ) */ libfsapfs-20190210/libcdata/libcdata_list.h0000664000175000017500000001312413430101142022523 0ustar00lordyestalordyesta00000000000000/* * List functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_LIST_H ) #define _LIBCDATA_LIST_H #include #include #include "libcdata_extern.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcdata_internal_list libcdata_internal_list_t; struct libcdata_internal_list { /* The number of elements */ int number_of_elements; /* The first element */ libcdata_list_element_t *first_element; /* The last element */ libcdata_list_element_t *last_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBCDATA_EXTERN \ int libcdata_list_initialize( libcdata_list_t **list, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_free( libcdata_list_t **list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_empty( libcdata_list_t *list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_clone( libcdata_list_t **destination_list, libcdata_list_t *source_list, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), int (*value_clone_function)( intptr_t **destination_value, intptr_t *source_value, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_get_number_of_elements( libcdata_list_t *list, int *number_of_elements, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_get_first_element( libcdata_list_t *list, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_list_set_first_element( libcdata_internal_list_t *internal_list, libcdata_list_element_t *element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_get_last_element( libcdata_list_t *list, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_list_set_last_element( libcdata_internal_list_t *internal_list, libcdata_list_element_t *element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_get_element_by_index( libcdata_list_t *list, int element_index, libcdata_list_element_t **element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_get_value_by_index( libcdata_list_t *list, int element_index, intptr_t **value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_prepend_element( libcdata_list_t *list, libcdata_list_element_t *element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_prepend_value( libcdata_list_t *list, intptr_t *value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_append_element( libcdata_list_t *list, libcdata_list_element_t *element, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_append_value( libcdata_list_t *list, intptr_t *value, libcerror_error_t **error ); int libcdata_internal_list_insert_element_find_element( libcdata_internal_list_t *internal_list, intptr_t *value_to_insert, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), uint8_t insert_flags, int *element_index, libcdata_list_element_t **element, libcerror_error_t **error ); int libcdata_internal_list_insert_element_before_element( libcdata_internal_list_t *internal_list, libcdata_list_element_t *list_element, libcdata_list_element_t *element_to_insert, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_insert_element( libcdata_list_t *list, libcdata_list_element_t *element_to_insert, int (*value_compare_function)( intptr_t *first, intptr_t *second, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_insert_value( libcdata_list_t *list, intptr_t *value, int (*value_compare_function)( intptr_t *first, intptr_t *second, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_list_remove_element( libcdata_list_t *list, libcdata_list_element_t *element_to_remove, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_LIST_H ) */ libfsapfs-20190210/libcdata/libcdata_types.h0000664000175000017500000000367213430101142022723 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_INTERNAL_TYPES_H ) #define _LIBCDATA_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata * The definitions in are copied here * for local use of libcdata */ #if defined( HAVE_LOCAL_LIBCDATA ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libcdata_array {} libcdata_array_t; typedef struct libcdata_btree {} libcdata_btree_t; typedef struct libcdata_list {} libcdata_list_t; typedef struct libcdata_list_element {} libcdata_list_element_t; typedef struct libcdata_range_list {} libcdata_range_list_t; typedef struct libcdata_tree_node {} libcdata_tree_node_t; #else typedef intptr_t libcdata_array_t; typedef intptr_t libcdata_btree_t; typedef intptr_t libcdata_list_t; typedef intptr_t libcdata_list_element_t; typedef intptr_t libcdata_range_list_t; typedef intptr_t libcdata_tree_node_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBCDATA ) */ #endif /* !defined( _LIBCDATA_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libcdata/libcdata_list_element.c0000664000175000017500000005645013430101142024240 0ustar00lordyestalordyesta00000000000000/* * List element functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_list_element.h" #include "libcdata_types.h" /* Creates a list element * Make sure the value element is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcdata_list_element_initialize( libcdata_list_element_t **element, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_initialize"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } if( *element != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid element value already set.", function ); return( -1 ); } internal_element = memory_allocate_structure( libcdata_internal_list_element_t ); if( internal_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create list element.", function ); goto on_error; } if( memory_set( internal_element, 0, sizeof( libcdata_internal_list_element_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear list element.", function ); memory_free( internal_element ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_initialize( &( internal_element->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *element = (libcdata_list_element_t *) internal_element; return( 1 ); on_error: if( internal_element != NULL ) { memory_free( internal_element ); } return( -1 ); } /* Frees a list element * Uses the value_free_function to free the element value * Returns 1 if successful or -1 on error */ int libcdata_list_element_free( libcdata_list_element_t **element, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_free"; int result = 1; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } if( *element != NULL ) { internal_element = (libcdata_internal_list_element_t *) *element; if( ( internal_element->previous_element != NULL ) || ( internal_element->next_element != NULL ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: list element part of a list.", function ); return( -1 ); } *element = NULL; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_free( &( internal_element->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( value_free_function != NULL ) { if( value_free_function( &( internal_element->value ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free value.", function ); result = -1; } } memory_free( internal_element ); } return( result ); } /* Retrieves the parent list from the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_get_parent_list( libcdata_list_element_t *element, intptr_t **parent_list, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_get_parent_list"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; if( parent_list == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid parent list.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *parent_list = internal_element->parent_list; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the parent list in the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_set_parent_list( libcdata_list_element_t *element, intptr_t *parent_list, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_set_parent_list"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) intptr_t *backup_parent_list = NULL; #endif if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_parent_list = internal_element->parent_list; #endif internal_element->parent_list = parent_list; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_element->parent_list = backup_parent_list; return( -1 ); #endif } /* Retrieves the previous element from the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_get_previous_element( libcdata_list_element_t *element, libcdata_list_element_t **previous_element, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_get_previous_element"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; if( previous_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid previous element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *previous_element = internal_element->previous_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the previous element in the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_set_previous_element( libcdata_list_element_t *element, libcdata_list_element_t *previous_element, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_set_previous_element"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_list_element_t *backup_previous_element = NULL; #endif if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_previous_element = internal_element->previous_element; #endif internal_element->previous_element = previous_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_element->previous_element = backup_previous_element; return( -1 ); #endif } /* Retrieves the next element from the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_get_next_element( libcdata_list_element_t *element, libcdata_list_element_t **next_element, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_get_next_element"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; if( next_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid next element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *next_element = internal_element->next_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the next element in the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_set_next_element( libcdata_list_element_t *element, libcdata_list_element_t *next_element, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_set_next_element"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_list_element_t *backup_next_element = NULL; #endif if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_next_element = internal_element->next_element; #endif internal_element->next_element = next_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_element->next_element = backup_next_element; return( -1 ); #endif } /* Retrieves the previous and next element from the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_get_elements( libcdata_list_element_t *element, libcdata_list_element_t **previous_element, libcdata_list_element_t **next_element, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_get_elements"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; if( previous_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid previous element.", function ); return( -1 ); } if( next_element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid next element.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *previous_element = internal_element->previous_element; *next_element = internal_element->next_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the previous and next element in the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_set_elements( libcdata_list_element_t *element, libcdata_list_element_t *previous_element, libcdata_list_element_t *next_element, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_set_elements"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) libcdata_list_element_t *backup_next_element = NULL; libcdata_list_element_t *backup_previous_element = NULL; #endif if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_previous_element = internal_element->previous_element; backup_next_element = internal_element->next_element; #endif internal_element->previous_element = previous_element; internal_element->next_element = next_element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_element->previous_element = backup_previous_element; internal_element->next_element = backup_next_element; return( -1 ); #endif } /* Retrieves the value from the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_get_value( libcdata_list_element_t *element, intptr_t **value, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_get_value"; if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; if( value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value.", function ); return( -1 ); } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for reading.", function ); return( -1 ); } #endif *value = internal_element->value; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_read( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for reading.", function ); return( -1 ); } #endif return( 1 ); } /* Sets the value in the list element * Returns 1 if successful or -1 on error */ int libcdata_list_element_set_value( libcdata_list_element_t *element, intptr_t *value, libcerror_error_t **error ) { libcdata_internal_list_element_t *internal_element = NULL; static char *function = "libcdata_list_element_set_value"; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) intptr_t *backup_value = NULL; #endif if( element == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid list element.", function ); return( -1 ); } internal_element = (libcdata_internal_list_element_t *) element; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_grab_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to grab read/write lock for writing.", function ); return( -1 ); } backup_value = internal_element->value; #endif internal_element->value = value; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_release_for_write( internal_element->read_write_lock, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to release read/write lock for writing.", function ); goto on_error; } #endif return( 1 ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) on_error: internal_element->value = backup_value; return( -1 ); #endif } libfsapfs-20190210/libcdata/Makefile.in0000664000175000017500000010237513430101253021633 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcdata ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcdata_la_LIBADD = am__libcdata_la_SOURCES_DIST = libcdata_array.c libcdata_array.h \ libcdata_btree.c libcdata_btree.h libcdata_btree_node.c \ libcdata_btree_node.h libcdata_btree_values_list.c \ libcdata_btree_values_list.h libcdata_definitions.h \ libcdata_error.c libcdata_error.h libcdata_extern.h \ libcdata_libcerror.h libcdata_libcthreads.h libcdata_list.c \ libcdata_list.h libcdata_list_element.c \ libcdata_list_element.h libcdata_range_list.c \ libcdata_range_list.h libcdata_range_list_value.c \ libcdata_range_list_value.h libcdata_support.c \ libcdata_support.h libcdata_tree_node.c libcdata_tree_node.h \ libcdata_types.h libcdata_unused.h @HAVE_LOCAL_LIBCDATA_TRUE@am_libcdata_la_OBJECTS = libcdata_array.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_btree.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_btree_node.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_btree_values_list.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_error.lo libcdata_list.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_list_element.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_range_list.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_range_list_value.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_support.lo \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_tree_node.lo libcdata_la_OBJECTS = $(am_libcdata_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCDATA_TRUE@am_libcdata_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcdata_array.Plo \ ./$(DEPDIR)/libcdata_btree.Plo \ ./$(DEPDIR)/libcdata_btree_node.Plo \ ./$(DEPDIR)/libcdata_btree_values_list.Plo \ ./$(DEPDIR)/libcdata_error.Plo ./$(DEPDIR)/libcdata_list.Plo \ ./$(DEPDIR)/libcdata_list_element.Plo \ ./$(DEPDIR)/libcdata_range_list.Plo \ ./$(DEPDIR)/libcdata_range_list_value.Plo \ ./$(DEPDIR)/libcdata_support.Plo \ ./$(DEPDIR)/libcdata_tree_node.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcdata_la_SOURCES) DIST_SOURCES = $(am__libcdata_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCDATA_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCDATA_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCDATA_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCDATA_TRUE@ @LIBCERROR_CPPFLAGS@ \ @HAVE_LOCAL_LIBCDATA_TRUE@ @LIBCTHREADS_CPPFLAGS@ \ @HAVE_LOCAL_LIBCDATA_TRUE@ @PTHREAD_CPPFLAGS@ @HAVE_LOCAL_LIBCDATA_TRUE@noinst_LTLIBRARIES = libcdata.la @HAVE_LOCAL_LIBCDATA_TRUE@libcdata_la_SOURCES = \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_array.c libcdata_array.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_btree.c libcdata_btree.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_btree_node.c libcdata_btree_node.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_btree_values_list.c libcdata_btree_values_list.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_definitions.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_error.c libcdata_error.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_extern.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_libcerror.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_libcthreads.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_list.c libcdata_list.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_list_element.c libcdata_list_element.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_range_list.c libcdata_range_list.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_range_list_value.c libcdata_range_list_value.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_support.c libcdata_support.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_tree_node.c libcdata_tree_node.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_types.h \ @HAVE_LOCAL_LIBCDATA_TRUE@ libcdata_unused.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcdata/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcdata/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcdata.la: $(libcdata_la_OBJECTS) $(libcdata_la_DEPENDENCIES) $(EXTRA_libcdata_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcdata_la_rpath) $(libcdata_la_OBJECTS) $(libcdata_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_array.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_btree.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_btree_node.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_btree_values_list.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_list.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_list_element.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_range_list.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_range_list_value.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdata_tree_node.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcdata_array.Plo -rm -f ./$(DEPDIR)/libcdata_btree.Plo -rm -f ./$(DEPDIR)/libcdata_btree_node.Plo -rm -f ./$(DEPDIR)/libcdata_btree_values_list.Plo -rm -f ./$(DEPDIR)/libcdata_error.Plo -rm -f ./$(DEPDIR)/libcdata_list.Plo -rm -f ./$(DEPDIR)/libcdata_list_element.Plo -rm -f ./$(DEPDIR)/libcdata_range_list.Plo -rm -f ./$(DEPDIR)/libcdata_range_list_value.Plo -rm -f ./$(DEPDIR)/libcdata_support.Plo -rm -f ./$(DEPDIR)/libcdata_tree_node.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcdata ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcdata_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcdata/libcdata_btree_values_list.h0000664000175000017500000000316213430101142025264 0ustar00lordyestalordyesta00000000000000/* * Balanced tree values list functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_BTREE_VALUES_LIST_H ) #define _LIBCDATA_BTREE_VALUES_LIST_H #include #include #include "libcdata_libcerror.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif int libcdata_btree_values_list_free( libcdata_list_t **values_list, libcerror_error_t **error ); int libcdata_btree_values_list_remove_element( libcdata_list_t *values_list, libcdata_list_element_t **values_list_element, libcerror_error_t **error ); int libcdata_btree_values_list_replace_element_with_previous( libcdata_list_t *values_list, libcdata_list_element_t **values_list_element, intptr_t **replacement_value, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_BTREE_VALUES_LIST_H ) */ libfsapfs-20190210/libcdata/libcdata_array.h0000664000175000017500000001216113430101142022666 0ustar00lordyestalordyesta00000000000000/* * Array functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_ARRAY_H ) #define _LIBCDATA_ARRAY_H #include #include #include "libcdata_extern.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcdata_internal_array libcdata_internal_array_t; struct libcdata_internal_array { /* The number of allocated entries */ int number_of_allocated_entries; /* The number of entries */ int number_of_entries; /* The entries */ intptr_t **entries; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBCDATA_EXTERN \ int libcdata_array_initialize( libcdata_array_t **array, int number_of_entries, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_free( libcdata_array_t **array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_empty( libcdata_array_t *array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_array_clear( libcdata_internal_array_t *internal_array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_clear( libcdata_array_t *array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_clone( libcdata_array_t **destination_array, libcdata_array_t *source_array, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), int (*entry_clone_function)( intptr_t **destination_entry, intptr_t *source_entry, libcerror_error_t **error ), libcerror_error_t **error ); int libcdata_internal_array_resize( libcdata_internal_array_t *internal_array, int number_of_entries, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_resize( libcdata_array_t *array, int number_of_entries, int (*entry_free_function)( intptr_t **entry, libcerror_error_t **error ), libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_reverse( libcdata_array_t *array, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_get_number_of_entries( libcdata_array_t *array, int *number_of_entries, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_get_entry_by_index( libcdata_array_t *array, int entry_index, intptr_t **entry, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_get_entry_by_value( libcdata_array_t *array, intptr_t *entry, int (*entry_compare_function)( intptr_t *first_entry, intptr_t *second_entry, libcerror_error_t **error ), intptr_t **existing_entry, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_set_entry_by_index( libcdata_array_t *array, int entry_index, intptr_t *entry, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_prepend_entry( libcdata_array_t *array, intptr_t *entry, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_append_entry( libcdata_array_t *array, int *entry_index, intptr_t *entry, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_insert_entry( libcdata_array_t *array, int *entry_index, intptr_t *entry, int (*entry_compare_function)( intptr_t *first_entry, intptr_t *second_entry, libcerror_error_t **error ), uint8_t insert_flags, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_array_remove_entry( libcdata_array_t *array, int entry_index, intptr_t **entry, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_ARRAY_H ) */ libfsapfs-20190210/libcdata/libcdata_btree.h0000664000175000017500000000732013430101142022652 0ustar00lordyestalordyesta00000000000000/* * Balanced tree type functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCDATA_BTREE_H ) #define _LIBCDATA_BTREE_H #include #include #include "libcdata_extern.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_types.h" #if defined( __cplusplus ) extern "C" { #endif /* The balanced tree uses the list and tree node * The value of a tree node contains a list where each value in the list corresponds with either a sub node or a leaf value * The values array is used for sequential access to the leaf values */ typedef struct libcdata_internal_btree libcdata_internal_btree_t; struct libcdata_internal_btree { /* The values array */ libcdata_array_t *values_array; /* The root node */ libcdata_tree_node_t *root_node; /* The maximum number of values */ int maximum_number_of_values; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) /* The read/write lock */ libcthreads_read_write_lock_t *read_write_lock; #endif }; LIBCDATA_EXTERN \ int libcdata_btree_initialize( libcdata_btree_t **tree, int maximum_number_of_sub_nodes, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_btree_free( libcdata_btree_t **tree, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ); /* TODO clone function */ LIBCDATA_EXTERN \ int libcdata_btree_get_number_of_values( libcdata_btree_t *tree, int *number_of_values, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_btree_get_value_by_index( libcdata_btree_t *tree, int value_index, intptr_t **value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_btree_get_value_by_value( libcdata_btree_t *tree, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **upper_node, intptr_t **existing_value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_btree_insert_value( libcdata_btree_t *tree, int *value_index, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **upper_node, intptr_t **existing_value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_btree_replace_value( libcdata_btree_t *tree, libcdata_tree_node_t *upper_node, int *value_index, intptr_t *value, int *replacement_value_index, intptr_t *replacement_value, libcerror_error_t **error ); LIBCDATA_EXTERN \ int libcdata_btree_remove_value( libcdata_btree_t *tree, libcdata_tree_node_t *upper_node, int *value_index, intptr_t *value, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCDATA_BTREE_H ) */ libfsapfs-20190210/libcdata/libcdata_definitions.h0000664000175000017500000000410513430101142024062 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCDATA_INTERNAL_DEFINITIONS_H ) #define LIBCDATA_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCDATA for local use of libcdata */ #if !defined( HAVE_LOCAL_LIBCDATA ) #include /* The definitions in are copied here * for local use of libcdata */ #else #define LIBCDATA_VERSION 20190112 /* The libcdata version string */ #define LIBCDATA_VERSION_STRING "20190112" /* The comparison function definitions */ enum LIBCDATA_COMPARE_DEFINITIONS { /* The first value is less than the second value */ LIBCDATA_COMPARE_LESS, /* The first and second values are equal */ LIBCDATA_COMPARE_EQUAL, /* The first value is greater than the second value */ LIBCDATA_COMPARE_GREATER }; /* The insert flag definitions */ enum LIBCDATA_INSERT_FLAGS { /* Allow duplicate entries */ LIBCDATA_INSERT_FLAG_NON_UNIQUE_ENTRIES = 0x00, /* Only allow unique entries, no duplicates */ LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES = 0x01 }; #endif /* !defined( HAVE_LOCAL_LIBCDATA ) */ /* Limiting the maximum size of the array entries to 128 MiB */ #define LIBCDATA_ARRAY_ENTRIES_MEMORY_LIMIT 128 * 1024 * 1024 #endif /* !defined( LIBCDATA_INTERNAL_DEFINITIONS_H ) */ libfsapfs-20190210/libcdata/libcdata_btree.c0000664000175000017500000005333213430101142022651 0ustar00lordyestalordyesta00000000000000/* * Balanced tree type functions * * Copyright (C) 2006-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcdata_array.h" #include "libcdata_btree.h" #include "libcdata_btree_node.h" #include "libcdata_btree_values_list.h" #include "libcdata_definitions.h" #include "libcdata_libcerror.h" #include "libcdata_libcthreads.h" #include "libcdata_list.h" #include "libcdata_list_element.h" #include "libcdata_tree_node.h" #include "libcdata_types.h" /* Creates a tree * Make sure the value tree is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcdata_btree_initialize( libcdata_btree_t **tree, int maximum_number_of_values, libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; static char *function = "libcdata_btree_initialize"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( *tree != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid tree value already set.", function ); return( -1 ); } if( maximum_number_of_values <= 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid maximum number of values value out of bounds.", function ); return( -1 ); } internal_tree = memory_allocate_structure( libcdata_internal_btree_t ); if( internal_tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create tree.", function ); goto on_error; } if( memory_set( internal_tree, 0, sizeof( libcdata_internal_btree_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear tree.", function ); memory_free( internal_tree ); return( -1 ); } if( libcdata_array_initialize( &( internal_tree->values_array ), 0, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create values array.", function ); goto on_error; } if( libcdata_tree_node_initialize( &( internal_tree->root_node ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to create root node.", function ); goto on_error; } internal_tree->maximum_number_of_values = maximum_number_of_values; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_initialize( &( internal_tree->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize read/write lock.", function ); goto on_error; } #endif *tree = (libcdata_btree_t *) internal_tree; return( 1 ); on_error: if( internal_tree != NULL ) { if( internal_tree->values_array != NULL ) { libcdata_array_free( &( internal_tree->values_array ), NULL, NULL ); } memory_free( internal_tree ); } return( -1 ); } /* Frees a tree, its sub nodes * Uses the value_free_function to free the value * Returns 1 if successful or -1 on error */ int libcdata_btree_free( libcdata_btree_t **tree, int (*value_free_function)( intptr_t **value, libcerror_error_t **error ), libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; static char *function = "libcdata_btree_free"; int result = 1; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } if( *tree != NULL ) { internal_tree = (libcdata_internal_btree_t *) *tree; *tree = NULL; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) if( libcthreads_read_write_lock_free( &( internal_tree->read_write_lock ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free read/write lock.", function ); result = -1; } #endif if( libcdata_tree_node_free( &( internal_tree->root_node ), (int (*)(intptr_t **, libcerror_error_t **)) &libcdata_btree_values_list_free, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free root node.", function ); result = -1; } if( libcdata_array_free( &( internal_tree->values_array ), value_free_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, "%s: unable to free values array.", function ); result = -1; } memory_free( internal_tree ); } return( result ); } /* TODO add clone function ? */ /* Retrieves the number of values in the tree * Returns 1 if successful or -1 on error */ int libcdata_btree_get_number_of_values( libcdata_btree_t *tree, int *number_of_values, libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; static char *function = "libcdata_btree_get_number_of_values"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libcdata_internal_btree_t *) tree; if( libcdata_array_get_number_of_entries( internal_tree->values_array, number_of_values, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of values array entries.", function ); return( -1 ); } return( 1 ); } /* Retrieves a specific value * Returns 1 if successful or -1 on error */ int libcdata_btree_get_value_by_index( libcdata_btree_t *tree, int value_index, intptr_t **value, libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; static char *function = "libcdata_btree_get_value_by_index"; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libcdata_internal_btree_t *) tree; if( libcdata_array_get_entry_by_index( internal_tree->values_array, value_index, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value: %d from array.", function, value_index ); return( -1 ); } return( 1 ); } /* Retrieves a value from the tree * * Uses the value_compare_function to determine the similarity of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if no such value or -1 on error */ int libcdata_btree_get_value_by_value( libcdata_btree_t *tree, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **upper_node, intptr_t **existing_value, libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; libcdata_list_element_t *existing_list_element = NULL; static char *function = "libcdata_btree_get_value_by_value"; int result = 0; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libcdata_internal_btree_t *) tree; result = libcdata_btree_node_get_upper_node_by_value( internal_tree->root_node, value, value_compare_function, upper_node, &existing_list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve upper node by value.", function ); return( -1 ); } else if( result != 0 ) { if( libcdata_list_element_get_value( existing_list_element, existing_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from values list element.", function ); return( -1 ); } } else { if( existing_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid existing value.", function ); return( -1 ); } *existing_value = NULL; } return( result ); } /* Inserts a value into a tree * * Uses the value_compare_function to determine the order of the entries * The value_compare_function should return LIBCDATA_COMPARE_LESS, * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error * * Returns 1 if successful, 0 if the value already exists or -1 on error */ int libcdata_btree_insert_value( libcdata_btree_t *tree, int *value_index, intptr_t *value, int (*value_compare_function)( intptr_t *first_value, intptr_t *second_value, libcerror_error_t **error ), libcdata_tree_node_t **upper_node, intptr_t **existing_value, libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; libcdata_list_t *values_list = NULL; libcdata_list_element_t *existing_list_element = NULL; static char *function = "libcdata_btree_insert_value"; int number_of_values_list_elements = 0; int result = 0; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libcdata_internal_btree_t *) tree; if( upper_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid upper node.", function ); return( -1 ); } if( value_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value index.", function ); return( -1 ); } if( existing_value == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid existing value.", function ); return( -1 ); } result = libcdata_btree_node_get_upper_node_by_value( internal_tree->root_node, value, value_compare_function, upper_node, &existing_list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve upper node in root node.", function ); return( -1 ); } else if( result != 0 ) { if( libcdata_list_element_get_value( existing_list_element, existing_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value from values list element.", function ); return( -1 ); } return( 0 ); } *existing_value = NULL; if( libcdata_btree_node_insert_value( *upper_node, value, value_compare_function, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to insert value in upper node.", function ); return( -1 ); } if( libcdata_tree_node_get_value( *upper_node, (intptr_t **) &values_list, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve values list.", function ); return( -1 ); } if( libcdata_list_get_number_of_elements( values_list, &number_of_values_list_elements, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of values list elements.", function ); return( -1 ); } if( number_of_values_list_elements >= internal_tree->maximum_number_of_values ) { if( libcdata_btree_node_split( *upper_node, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to split upper node.", function ); return( -1 ); } /* TODO do merge of upper node with its parent node */ /* TODO loop until number_of_values_list_elements < internal_tree->maximum_number_of_values */ /* Make sure existing list element updated after the split */ result = libcdata_btree_node_get_sub_node_by_value( *upper_node, value, value_compare_function, upper_node, &existing_list_element, error ); if( result == -1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve split sub node by value.", function ); return( -1 ); } result = libcdata_btree_node_get_sub_node_by_value( *upper_node, value, value_compare_function, upper_node, &existing_list_element, error ); if( result != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve split sub node by value.", function ); return( -1 ); } } if( libcdata_array_append_entry( internal_tree->values_array, value_index, value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to append value to values array.", function ); return( -1 ); } return( 1 ); } /* Replaces a value in the tree * Returns 1 if successful or -1 on error */ int libcdata_btree_replace_value( libcdata_btree_t *tree, libcdata_tree_node_t *upper_node, int *value_index, intptr_t *value, int *replacement_value_index, intptr_t *replacement_value, libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; intptr_t *check_value = NULL; static char *function = "libcdata_btree_replace_value"; int number_of_sub_nodes = 0; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libcdata_internal_btree_t *) tree; if( upper_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid upper node.", function ); return( -1 ); } if( value_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value index.", function ); return( -1 ); } if( replacement_value_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value index.", function ); return( -1 ); } if( libcdata_tree_node_get_number_of_sub_nodes( upper_node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( number_of_sub_nodes != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: cannot replace upper node with sub nodes.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_tree->values_array, *value_index, &check_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value: %d from array.", function, *value_index ); return( -1 ); } if( value != check_value ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value: %d value out of bounds.", function, *value_index ); return( -1 ); } if( libcdata_btree_node_replace_value( upper_node, value, replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to replace value: %d.", function, *value_index ); return( -1 ); } if( libcdata_array_set_entry_by_index( internal_tree->values_array, *value_index, replacement_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to set value: %d in values array.", function, *value_index ); return( -1 ); } *replacement_value_index = *value_index; *value_index = -1; return( 1 ); } /* Removes a value from the tree * Returns 1 if successful or -1 on error */ int libcdata_btree_remove_value( libcdata_btree_t *tree, libcdata_tree_node_t *upper_node, int *value_index, intptr_t *value, libcerror_error_t **error ) { libcdata_internal_btree_t *internal_tree = NULL; intptr_t *check_value = NULL; static char *function = "libcdata_btree_remove_value"; int number_of_sub_nodes = 0; if( tree == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid tree.", function ); return( -1 ); } internal_tree = (libcdata_internal_btree_t *) tree; if( upper_node == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid upper node.", function ); return( -1 ); } if( value_index == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid value index.", function ); return( -1 ); } if( libcdata_tree_node_get_number_of_sub_nodes( upper_node, &number_of_sub_nodes, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve number of sub nodes.", function ); return( -1 ); } if( number_of_sub_nodes != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: cannot replace upper node with sub nodes.", function ); return( -1 ); } if( libcdata_array_get_entry_by_index( internal_tree->values_array, *value_index, &check_value, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve value: %d from array.", function, *value_index ); return( -1 ); } if( value != check_value ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid value: %d value out of bounds.", function, *value_index ); return( -1 ); } if( libcdata_btree_node_remove_value( upper_node, value, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_REMOVE_FAILED, "%s: unable to remove value: %d from upper node.", function, *value_index ); return( -1 ); } /* TODO reshuffle values array ? * Better to mark and ignore deleted items, otherwise index values need to be updated as well */ if( libcdata_array_set_entry_by_index( internal_tree->values_array, *value_index, NULL, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, "%s: unable to set value: %d in values array.", function, *value_index ); return( -1 ); } *value_index = -1; return( 1 ); } libfsapfs-20190210/acinclude.m40000664000175000017500000000332413366354746020237 0ustar00lordyestalordyesta00000000000000dnl Checks for required headers and functions dnl dnl Version: 20180907 dnl Function to detect if libfsapfs dependencies are available AC_DEFUN([AX_LIBFSAPFS_CHECK_LOCAL], [dnl Check for internationalization functions in libfsapfs/libfsapfs_i18n.c AC_CHECK_FUNCS([bindtextdomain]) dnl Check if library should be build with verbose output AX_COMMON_CHECK_ENABLE_VERBOSE_OUTPUT dnl Check if library should be build with debug output AX_COMMON_CHECK_ENABLE_DEBUG_OUTPUT dnl Check if DLL support is needed AS_IF( [test "x$enable_shared" = xyes], [AS_CASE( [$host], [*cygwin* | *mingw*], [AC_DEFINE( [HAVE_DLLMAIN], [1], [Define to 1 to enable the DllMain function.]) AC_SUBST( [HAVE_DLLMAIN], [1]) ]) ]) ]) dnl Function to detect if fsapfstools dependencies are available AC_DEFUN([AX_FSAPFSTOOLS_CHECK_LOCAL], [AC_CHECK_HEADERS([signal.h sys/signal.h unistd.h]) AC_CHECK_FUNCS([close getopt setvbuf]) AS_IF( [test "x$ac_cv_func_close" != xyes], [AC_MSG_FAILURE( [Missing function: close], [1]) ]) dnl Headers included in fsapfstools/fsapfsmount.c AC_CHECK_HEADERS([errno.h]) dnl Functions included in fsapfstools/fsapfsmount.c AS_IF( [test "x$ac_cv_enable_winapi" = xno], [AC_CHECK_FUNCS([getegid geteuid]) ]) dnl Check if tools should be build as static executables AX_COMMON_CHECK_ENABLE_STATIC_EXECUTABLES dnl Check if DLL support is needed AS_IF( [test "x$enable_shared" = xyes && test "x$ac_cv_enable_static_executables" = xno], [AS_CASE( [$host], [*cygwin* | *mingw*], [AC_SUBST( [LIBFSAPFS_DLL_IMPORT], ["-DLIBFSAPFS_DLL_IMPORT"]) ]) ]) ]) libfsapfs-20190210/libcsplit/0000775000175000017500000000000013430101367020006 5ustar00lordyestalordyesta00000000000000libfsapfs-20190210/libcsplit/libcsplit_types.h0000664000175000017500000000322113430101176023364 0ustar00lordyestalordyesta00000000000000/* * The internal type definitions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_INTERNAL_TYPES_H ) #define _LIBCSPLIT_INTERNAL_TYPES_H #include #include /* Define HAVE_LOCAL_LIBCSPLIT for local use of libcsplit * The definitions in are copied here * for local use of libcsplit */ #if defined( HAVE_LOCAL_LIBCSPLIT ) /* The following type definitions hide internal data structures */ #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) typedef struct libcsplit_narrow_split_string {} libcsplit_narrow_split_string_t; typedef struct libcsplit_wide_split_string {} libcsplit_wide_split_string_t; #else typedef intptr_t libcsplit_narrow_split_string_t; typedef intptr_t libcsplit_wide_split_string_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ #endif /* defined( HAVE_LOCAL_LIBCSPLIT ) */ #endif /* !defined( _LIBCSPLIT_INTERNAL_TYPES_H ) */ libfsapfs-20190210/libcsplit/libcsplit_wide_string.h0000664000175000017500000000270113430101176024540 0ustar00lordyestalordyesta00000000000000/* * Wide character string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_WIDE_STRING_H ) #define _LIBCSPLIT_WIDE_STRING_H #include #include #include "libcsplit_extern.h" #include "libcsplit_libcerror.h" #include "libcsplit_types.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_WIDE_CHARACTER_TYPE ) LIBCSPLIT_EXTERN \ int libcsplit_wide_string_split( const wchar_t *string, size_t string_size, wchar_t delimiter, libcsplit_wide_split_string_t **split_string, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCSPLIT_WIDE_STRING_H ) */ libfsapfs-20190210/libcsplit/libcsplit_error.h0000664000175000017500000000343413430101176023357 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_INTERNAL_ERROR_H ) #define _LIBCSPLIT_INTERNAL_ERROR_H #include #include #include #if !defined( HAVE_LOCAL_LIBCSPLIT ) #include #endif #include "libcsplit_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCSPLIT ) LIBCSPLIT_EXTERN \ void libcsplit_error_free( libcsplit_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_error_fprint( libcsplit_error_t *error, FILE *stream ); LIBCSPLIT_EXTERN \ int libcsplit_error_sprint( libcsplit_error_t *error, char *string, size_t size ); LIBCSPLIT_EXTERN \ int libcsplit_error_backtrace_fprint( libcsplit_error_t *error, FILE *stream ); LIBCSPLIT_EXTERN \ int libcsplit_error_backtrace_sprint( libcsplit_error_t *error, char *string, size_t size ); #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCSPLIT_INTERNAL_ERROR_H ) */ libfsapfs-20190210/libcsplit/libcsplit_support.h0000664000175000017500000000233013430101176023734 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_SUPPORT_H ) #define _LIBCSPLIT_SUPPORT_H #include #include #include "libcsplit_extern.h" #if defined( __cplusplus ) extern "C" { #endif #if !defined( HAVE_LOCAL_LIBCSPLIT ) LIBCSPLIT_EXTERN \ const char *libcsplit_get_version( void ); #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCSPLIT_SUPPORT_H ) */ libfsapfs-20190210/libcsplit/libcsplit_narrow_split_string.c0000664000175000017500000003313213430101176026330 0ustar00lordyestalordyesta00000000000000/* * Split narrow string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libcsplit_libcerror.h" #include "libcsplit_narrow_split_string.h" #include "libcsplit_types.h" /* Creates a split string * Make sure the value split_string is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcsplit_narrow_split_string_initialize( libcsplit_narrow_split_string_t **split_string, const char *string, size_t string_size, int number_of_segments, libcerror_error_t **error ) { libcsplit_internal_narrow_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_narrow_split_string_initialize"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } if( *split_string != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid split string value already set.", function ); return( -1 ); } if( number_of_segments < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid number of segments less than zero.", function ); return( -1 ); } internal_split_string = memory_allocate_structure( libcsplit_internal_narrow_split_string_t ); if( internal_split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create split string.", function ); goto on_error; } if( memory_set( internal_split_string, 0, sizeof( libcsplit_internal_narrow_split_string_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear split string.", function ); memory_free( internal_split_string ); return( -1 ); } if( ( string != NULL ) && ( string_size > 0 ) ) { internal_split_string->string = narrow_string_allocate( string_size ); if( internal_split_string->string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create string.", function ); goto on_error; } if( memory_copy( internal_split_string->string, string, sizeof( char ) * ( string_size - 1 ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to copy string.", function ); goto on_error; } internal_split_string->string[ string_size - 1 ] = 0; internal_split_string->string_size = string_size; } if( number_of_segments > 0 ) { internal_split_string->segments = (char **) memory_allocate( sizeof( char * ) * number_of_segments ); if( internal_split_string->segments == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create segments.", function ); goto on_error; } if( memory_set( internal_split_string->segments, 0, sizeof( char * ) * number_of_segments ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear segments.", function ); goto on_error; } internal_split_string->segment_sizes = (size_t *) memory_allocate( sizeof( size_t ) * number_of_segments ); if( internal_split_string->segment_sizes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create segment sizes.", function ); goto on_error; } if( memory_set( internal_split_string->segment_sizes, 0, sizeof( size_t ) * number_of_segments ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear segment sizes.", function ); goto on_error; } } internal_split_string->number_of_segments = number_of_segments; *split_string = (libcsplit_narrow_split_string_t *) internal_split_string; return( 1 ); on_error: if( internal_split_string != NULL ) { if( internal_split_string->segment_sizes != NULL ) { memory_free( internal_split_string->segment_sizes ); } if( internal_split_string->segments != NULL ) { memory_free( internal_split_string->segments ); } if( internal_split_string->string != NULL ) { memory_free( internal_split_string->string ); } memory_free( internal_split_string ); } return( -1 ); } /* Frees a split string * Returns 1 if successful or -1 on error */ int libcsplit_narrow_split_string_free( libcsplit_narrow_split_string_t **split_string, libcerror_error_t **error ) { libcsplit_internal_narrow_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_narrow_split_string_free"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } if( *split_string != NULL ) { internal_split_string = (libcsplit_internal_narrow_split_string_t *) *split_string; *split_string = NULL; if( internal_split_string->string != NULL ) { memory_free( internal_split_string->string ); } if( internal_split_string->segments != NULL ) { memory_free( internal_split_string->segments ); } if( internal_split_string->segment_sizes != NULL ) { memory_free( internal_split_string->segment_sizes ); } memory_free( internal_split_string ); } return( 1 ); } /* Retrieves the string * Returns 1 if successful or -1 on error */ int libcsplit_narrow_split_string_get_string( libcsplit_narrow_split_string_t *split_string, char **string, size_t *string_size, libcerror_error_t **error ) { libcsplit_internal_narrow_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_narrow_split_string_get_string"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_narrow_split_string_t *) split_string; if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } *string = internal_split_string->string; *string_size = internal_split_string->string_size; return( 1 ); } /* Retrieves the number of segments * Returns 1 if successful or -1 on error */ int libcsplit_narrow_split_string_get_number_of_segments( libcsplit_narrow_split_string_t *split_string, int *number_of_segments, libcerror_error_t **error ) { libcsplit_internal_narrow_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_narrow_split_string_get_number_of_segments"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_narrow_split_string_t *) split_string; if( number_of_segments == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of segments.", function ); return( -1 ); } *number_of_segments = internal_split_string->number_of_segments; return( 1 ); } /* Retrieves a specific segment * Returns 1 if successful or -1 on error */ int libcsplit_narrow_split_string_get_segment_by_index( libcsplit_narrow_split_string_t *split_string, int segment_index, char **string_segment, size_t *string_segment_size, libcerror_error_t **error ) { libcsplit_internal_narrow_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_narrow_split_string_get_segment_by_index"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_narrow_split_string_t *) split_string; if( ( segment_index < 0 ) || ( segment_index >= internal_split_string->number_of_segments ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string segment.", function ); return( -1 ); } if( string_segment_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string segment size.", function ); return( -1 ); } *string_segment = internal_split_string->segments[ segment_index ]; *string_segment_size = internal_split_string->segment_sizes[ segment_index ]; return( 1 ); } /* Sets a specific segment * Returns 1 if successful or -1 on error */ int libcsplit_narrow_split_string_set_segment_by_index( libcsplit_narrow_split_string_t *split_string, int segment_index, char *string_segment, size_t string_segment_size, libcerror_error_t **error ) { libcsplit_internal_narrow_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_narrow_split_string_set_segment_by_index"; size_t string_segment_offset = 0; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_narrow_split_string_t *) split_string; if( ( segment_index < 0 ) || ( segment_index >= internal_split_string->number_of_segments ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( string_segment_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string segment size value exceeds maximum.", function ); return( -1 ); } if( string_segment == NULL ) { if( string_segment_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment size value out of bounds.", function ); return( -1 ); } } else { if( string_segment < internal_split_string->string ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment value out of bounds.", function ); return( -1 ); } string_segment_offset = (size_t) ( string_segment - internal_split_string->string ); if( string_segment_offset >= internal_split_string->string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment value out of bounds.", function ); return( -1 ); } string_segment_offset += string_segment_size; if( string_segment_offset > internal_split_string->string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment value out of bounds.", function ); return( -1 ); } } internal_split_string->segments[ segment_index ] = string_segment; internal_split_string->segment_sizes[ segment_index ] = string_segment_size; return( 1 ); } libfsapfs-20190210/libcsplit/libcsplit_narrow_split_string.h0000664000175000017500000000544313430101176026341 0ustar00lordyestalordyesta00000000000000/* * Split narrow string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_INTERNAL_NARROW_SPLIT_STRING_H ) #define _LIBCSPLIT_INTERNAL_NARROW_SPLIT_STRING_H #include #include #include "libcsplit_extern.h" #include "libcsplit_libcerror.h" #include "libcsplit_types.h" #if defined( __cplusplus ) extern "C" { #endif typedef struct libcsplit_internal_narrow_split_string libcsplit_internal_narrow_split_string_t; struct libcsplit_internal_narrow_split_string { /* The number of string segments */ int number_of_segments; /* The string */ char *string; /* The string size */ size_t string_size; /* The segments */ char **segments; /* The segment sizes */ size_t *segment_sizes; }; int libcsplit_narrow_split_string_initialize( libcsplit_narrow_split_string_t **split_string, const char *string, size_t string_size, int number_of_segments, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_narrow_split_string_free( libcsplit_narrow_split_string_t **split_string, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_narrow_split_string_get_string( libcsplit_narrow_split_string_t *split_string, char **string, size_t *string_size, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_narrow_split_string_get_number_of_segments( libcsplit_narrow_split_string_t *split_string, int *number_of_segments, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_narrow_split_string_get_segment_by_index( libcsplit_narrow_split_string_t *split_string, int segment_index, char **string_segment, size_t *string_segment_size, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_narrow_split_string_set_segment_by_index( libcsplit_narrow_split_string_t *split_string, int segment_index, char *string_segment, size_t string_segment_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCSPLIT_INTERNAL_NARROW_SPLIT_STRING_H ) */ libfsapfs-20190210/libcsplit/Makefile.am0000664000175000017500000000152113430101176022037 0ustar00lordyestalordyesta00000000000000if HAVE_LOCAL_LIBCSPLIT AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libcsplit.la libcsplit_la_SOURCES = \ libcsplit_definitions.h \ libcsplit_error.c libcsplit_error.h \ libcsplit_extern.h \ libcsplit_narrow_split_string.c libcsplit_narrow_split_string.h \ libcsplit_narrow_string.c libcsplit_narrow_string.h \ libcsplit_libcerror.h \ libcsplit_support.c libcsplit_support.h \ libcsplit_types.h \ libcsplit_unused.h \ libcsplit_wide_split_string.c libcsplit_wide_split_string.h \ libcsplit_wide_string.c libcsplit_wide_string.h endif MAINTAINERCLEANFILES = \ Makefile.in distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcsplit ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcsplit_la_SOURCES) libfsapfs-20190210/libcsplit/libcsplit_wide_split_string.c0000664000175000017500000003317213430101176025754 0ustar00lordyestalordyesta00000000000000/* * Split wide string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include #include "libcsplit_libcerror.h" #include "libcsplit_wide_split_string.h" #include "libcsplit_types.h" #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Creates a split string * Make sure the value split_string is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcsplit_wide_split_string_initialize( libcsplit_wide_split_string_t **split_string, const wchar_t *string, size_t string_size, int number_of_segments, libcerror_error_t **error ) { libcsplit_internal_wide_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_wide_split_string_initialize"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } if( *split_string != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid split string value already set.", function ); return( -1 ); } if( number_of_segments < 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, "%s: invalid number of segments less than zero.", function ); return( -1 ); } internal_split_string = memory_allocate_structure( libcsplit_internal_wide_split_string_t ); if( internal_split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create split string.", function ); goto on_error; } if( memory_set( internal_split_string, 0, sizeof( libcsplit_internal_wide_split_string_t ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear split string.", function ); memory_free( internal_split_string ); return( -1 ); } if( ( string != NULL ) && ( string_size > 0 ) ) { internal_split_string->string = wide_string_allocate( string_size ); if( internal_split_string->string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create string.", function ); goto on_error; } if( memory_copy( internal_split_string->string, string, sizeof( wchar_t ) * ( string_size - 1 ) ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to copy string.", function ); goto on_error; } internal_split_string->string[ string_size - 1 ] = 0; internal_split_string->string_size = string_size; } if( number_of_segments > 0 ) { internal_split_string->segments = (wchar_t **) memory_allocate( sizeof( wchar_t * ) * number_of_segments ); if( internal_split_string->segments == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create segments.", function ); goto on_error; } if( memory_set( internal_split_string->segments, 0, sizeof( wchar_t * ) * number_of_segments ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear segments.", function ); goto on_error; } internal_split_string->segment_sizes = (size_t *) memory_allocate( sizeof( size_t ) * number_of_segments ); if( internal_split_string->segment_sizes == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_INSUFFICIENT, "%s: unable to create segment sizes.", function ); goto on_error; } if( memory_set( internal_split_string->segment_sizes, 0, sizeof( size_t ) * number_of_segments ) == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_SET_FAILED, "%s: unable to clear segment sizes.", function ); goto on_error; } } internal_split_string->number_of_segments = number_of_segments; *split_string = (libcsplit_wide_split_string_t *) internal_split_string; return( 1 ); on_error: if( internal_split_string != NULL ) { if( internal_split_string->segment_sizes != NULL ) { memory_free( internal_split_string->segment_sizes ); } if( internal_split_string->segments != NULL ) { memory_free( internal_split_string->segments ); } if( internal_split_string->string != NULL ) { memory_free( internal_split_string->string ); } memory_free( internal_split_string ); } return( -1 ); } /* Frees a split string * Returns 1 if successful or -1 on error */ int libcsplit_wide_split_string_free( libcsplit_wide_split_string_t **split_string, libcerror_error_t **error ) { libcsplit_internal_wide_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_wide_split_string_free"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } if( *split_string != NULL ) { internal_split_string = (libcsplit_internal_wide_split_string_t *) *split_string; *split_string = NULL; if( internal_split_string->string != NULL ) { memory_free( internal_split_string->string ); } if( internal_split_string->segments != NULL ) { memory_free( internal_split_string->segments ); } if( internal_split_string->segment_sizes != NULL ) { memory_free( internal_split_string->segment_sizes ); } memory_free( internal_split_string ); } return( 1 ); } /* Retrieves the string * Returns 1 if successful or -1 on error */ int libcsplit_wide_split_string_get_string( libcsplit_wide_split_string_t *split_string, wchar_t **string, size_t *string_size, libcerror_error_t **error ) { libcsplit_internal_wide_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_wide_split_string_get_string"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_wide_split_string_t *) split_string; if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string size.", function ); return( -1 ); } *string = internal_split_string->string; *string_size = internal_split_string->string_size; return( 1 ); } /* Retrieves the number of segments * Returns 1 if successful or -1 on error */ int libcsplit_wide_split_string_get_number_of_segments( libcsplit_wide_split_string_t *split_string, int *number_of_segments, libcerror_error_t **error ) { libcsplit_internal_wide_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_wide_split_string_get_number_of_segments"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_wide_split_string_t *) split_string; if( number_of_segments == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid number of segments.", function ); return( -1 ); } *number_of_segments = internal_split_string->number_of_segments; return( 1 ); } /* Retrieves a specific segment * Returns 1 if successful or -1 on error */ int libcsplit_wide_split_string_get_segment_by_index( libcsplit_wide_split_string_t *split_string, int segment_index, wchar_t **string_segment, size_t *string_segment_size, libcerror_error_t **error ) { libcsplit_internal_wide_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_wide_split_string_get_segment_by_index"; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_wide_split_string_t *) split_string; if( ( segment_index < 0 ) || ( segment_index >= internal_split_string->number_of_segments ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( string_segment == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string segment.", function ); return( -1 ); } if( string_segment_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string segment size.", function ); return( -1 ); } *string_segment = internal_split_string->segments[ segment_index ]; *string_segment_size = internal_split_string->segment_sizes[ segment_index ]; return( 1 ); } /* Sets a specific segment * Returns 1 if successful or -1 on error */ int libcsplit_wide_split_string_set_segment_by_index( libcsplit_wide_split_string_t *split_string, int segment_index, wchar_t *string_segment, size_t string_segment_size, libcerror_error_t **error ) { libcsplit_internal_wide_split_string_t *internal_split_string = NULL; static char *function = "libcsplit_wide_split_string_set_segment_by_index"; size_t string_segment_offset = 0; if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } internal_split_string = (libcsplit_internal_wide_split_string_t *) split_string; if( ( segment_index < 0 ) || ( segment_index >= internal_split_string->number_of_segments ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid segment index value out of bounds.", function ); return( -1 ); } if( string_segment_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string segment size value exceeds maximum.", function ); return( -1 ); } if( string_segment == NULL ) { if( string_segment_size != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment size value out of bounds.", function ); return( -1 ); } } else { if( string_segment < internal_split_string->string ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment value out of bounds.", function ); return( -1 ); } string_segment_offset = (size_t) ( string_segment - internal_split_string->string ); if( string_segment_offset >= internal_split_string->string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment value out of bounds.", function ); return( -1 ); } string_segment_offset += string_segment_size; if( string_segment_offset > internal_split_string->string_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string segment value out of bounds.", function ); return( -1 ); } } internal_split_string->segments[ segment_index ] = string_segment; internal_split_string->segment_sizes[ segment_index ] = string_segment_size; return( 1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libcsplit/libcsplit_narrow_string.h0000664000175000017500000000255413430101176025126 0ustar00lordyestalordyesta00000000000000/* * Narrow character string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_NARROW_STRING_H ) #define _LIBCSPLIT_NARROW_STRING_H #include #include #include "libcsplit_extern.h" #include "libcsplit_libcerror.h" #include "libcsplit_types.h" #if defined( __cplusplus ) extern "C" { #endif LIBCSPLIT_EXTERN \ int libcsplit_narrow_string_split( const char *string, size_t string_size, char delimiter, libcsplit_narrow_split_string_t **split_string, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCSPLIT_NARROW_STRING_H ) */ libfsapfs-20190210/libcsplit/libcsplit_unused.h0000664000175000017500000000261213430101176023526 0ustar00lordyestalordyesta00000000000000/* * Definitions to silence compiler warnings about unused function attributes/parameters. * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_UNUSED_H ) #define _LIBCSPLIT_UNUSED_H #include #if !defined( LIBCSPLIT_ATTRIBUTE_UNUSED ) #if defined( __GNUC__ ) && __GNUC__ >= 3 #define LIBCSPLIT_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else #define LIBCSPLIT_ATTRIBUTE_UNUSED #endif #endif #if defined( _MSC_VER ) #define LIBCSPLIT_UNREFERENCED_PARAMETER( parameter ) \ UNREFERENCED_PARAMETER( parameter ); #else #define LIBCSPLIT_UNREFERENCED_PARAMETER( parameter ) \ /* parameter */ #endif #endif /* !defined( _LIBCSPLIT_UNUSED_H ) */ libfsapfs-20190210/libcsplit/libcsplit_wide_string.c0000664000175000017500000001410013430101176024527 0ustar00lordyestalordyesta00000000000000/* * Wide character string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcsplit_libcerror.h" #include "libcsplit_wide_split_string.h" #include "libcsplit_wide_string.h" #include "libcsplit_types.h" #if defined( HAVE_WIDE_CHARACTER_TYPE ) /* Splits a wide character string * Make sure the value split_string is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcsplit_wide_string_split( const wchar_t *string, size_t string_size, wchar_t delimiter, libcsplit_wide_split_string_t **split_string, libcerror_error_t **error ) { wchar_t *segment_start = NULL; wchar_t *segment_end = NULL; wchar_t *string_end = NULL; wchar_t *string_start = NULL; static char *function = "libcsplit_wide_string_split"; ssize_t segment_length = 0; int number_of_segments = 0; int segment_index = 0; if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string size value exceeds maximum.", function ); return( -1 ); } if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } if( *split_string != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid split string already set.", function ); return( -1 ); } /* An empty string has no segments */ if( ( string_size == 0 ) || ( string[ 0 ] == 0 ) ) { return( 1 ); } /* Determine the number of segments */ segment_start = (wchar_t *) string; string_end = (wchar_t *) &( string[ string_size - 1 ] ); do { segment_end = segment_start; while( segment_end <= string_end ) { if( ( segment_end == string_end ) || ( *segment_end == 0 ) ) { segment_end = NULL; break; } else if( *segment_end == delimiter ) { break; } segment_end++; } if( segment_end > string_end ) { break; } segment_index++; if( segment_end == NULL ) { break; } if( segment_end == segment_start ) { segment_start++; } else if( segment_end != string ) { segment_start = segment_end + 1; } } while( segment_end != NULL ); number_of_segments = segment_index; if( libcsplit_wide_split_string_initialize( split_string, string, string_size, number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize split string.", function ); goto on_error; } /* Do not bother with strings that do not need splitting */ if( number_of_segments == 0 ) { return( 1 ); } /* Determine the segments * empty segments are stored as strings only containing the end of character */ if( libcsplit_wide_split_string_get_string( *split_string, &string_start, &string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve split string.", function ); goto on_error; } if( string_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing string start.", function ); goto on_error; } if( string_size < 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string size value out of bounds.", function ); goto on_error; } segment_start = string_start; string_end = &( string_start[ string_size - 1 ] ); for( segment_index = 0; segment_index < number_of_segments; segment_index++ ) { segment_end = segment_start; while( segment_end <= string_end ) { if( ( segment_end == string_end ) || ( *segment_end == 0 ) ) { segment_end = NULL; break; } else if( *segment_end == delimiter ) { break; } segment_end++; } if( segment_end == NULL ) { segment_length = (ssize_t) ( string_end - segment_start ); } else { segment_length = (ssize_t) ( segment_end - segment_start ); } if( segment_length >= 0 ) { segment_start[ segment_length ] = 0; if( libcsplit_wide_split_string_set_segment_by_index( *split_string, segment_index, segment_start, segment_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set split string segment: %d.", function, segment_index ); goto on_error; } } if( segment_end == NULL ) { break; } if( segment_end == string_start ) { segment_start++; } else { segment_start = segment_end + 1; } } return( 1 ); on_error: if( *split_string != NULL ) { libcsplit_wide_split_string_free( split_string, NULL ); } return( -1 ); } #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ libfsapfs-20190210/libcsplit/libcsplit_narrow_string.c0000664000175000017500000001375713430101176025130 0ustar00lordyestalordyesta00000000000000/* * Narrow character string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcsplit_libcerror.h" #include "libcsplit_narrow_split_string.h" #include "libcsplit_narrow_string.h" #include "libcsplit_types.h" /* Splits a narrow character string * Make sure the value split_string is referencing, is set to NULL * Returns 1 if successful or -1 on error */ int libcsplit_narrow_string_split( const char *string, size_t string_size, char delimiter, libcsplit_narrow_split_string_t **split_string, libcerror_error_t **error ) { char *segment_start = NULL; char *segment_end = NULL; char *string_end = NULL; char *string_start = NULL; static char *function = "libcsplit_narrow_string_split"; ssize_t segment_length = 0; int number_of_segments = 0; int segment_index = 0; if( string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid string.", function ); return( -1 ); } if( string_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, "%s: invalid string size value exceeds maximum.", function ); return( -1 ); } if( split_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, "%s: invalid split string.", function ); return( -1 ); } if( *split_string != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, "%s: invalid split string already set.", function ); return( -1 ); } /* An empty string has no segments */ if( ( string_size == 0 ) || ( string[ 0 ] == 0 ) ) { return( 1 ); } /* Determine the number of segments */ segment_start = (char *) string; string_end = (char *) &( string[ string_size - 1 ] ); do { segment_end = segment_start; while( segment_end <= string_end ) { if( ( segment_end == string_end ) || ( *segment_end == 0 ) ) { segment_end = NULL; break; } else if( *segment_end == delimiter ) { break; } segment_end++; } if( segment_end > string_end ) { break; } segment_index++; if( segment_end == NULL ) { break; } if( segment_end == segment_start ) { segment_start++; } else if( segment_end != string ) { segment_start = segment_end + 1; } } while( segment_end != NULL ); number_of_segments = segment_index; if( libcsplit_narrow_split_string_initialize( split_string, string, string_size, number_of_segments, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, "%s: unable to initialize split string.", function ); goto on_error; } /* Do not bother with strings that do not need splitting */ if( number_of_segments == 0 ) { return( 1 ); } /* Determine the segments * empty segments are stored as strings only containing the end of character */ if( libcsplit_narrow_split_string_get_string( *split_string, &string_start, &string_size, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_GET_FAILED, "%s: unable to retrieve split string.", function ); goto on_error; } if( string_start == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, "%s: missing string start.", function ); goto on_error; } if( string_size < 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, "%s: invalid string size value out of bounds.", function ); goto on_error; } segment_start = string_start; string_end = &( string_start[ string_size - 1 ] ); for( segment_index = 0; segment_index < number_of_segments; segment_index++ ) { segment_end = segment_start; while( segment_end <= string_end ) { if( ( segment_end == string_end ) || ( *segment_end == 0 ) ) { segment_end = NULL; break; } else if( *segment_end == delimiter ) { break; } segment_end++; } if( segment_end == NULL ) { segment_length = (ssize_t) ( string_end - segment_start ); } else { segment_length = (ssize_t) ( segment_end - segment_start ); } if( segment_length >= 0 ) { segment_start[ segment_length ] = 0; if( libcsplit_narrow_split_string_set_segment_by_index( *split_string, segment_index, segment_start, segment_length + 1, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, "%s: unable to set split string segment: %d.", function, segment_index ); goto on_error; } } if( segment_end == NULL ) { break; } if( segment_end == string_start ) { segment_start++; } else { segment_start = segment_end + 1; } } return( 1 ); on_error: if( *split_string != NULL ) { libcsplit_narrow_split_string_free( split_string, NULL ); } return( -1 ); } libfsapfs-20190210/libcsplit/Makefile.in0000664000175000017500000007724313430101254022063 0ustar00lordyestalordyesta00000000000000# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = libcsplit ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcaes.m4 \ $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ $(top_srcdir)/m4/libcrypto.m4 $(top_srcdir)/m4/libcsplit.m4 \ $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfuse.m4 \ $(top_srcdir)/m4/libhmac.m4 $(top_srcdir)/m4/libtool.m4 \ $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ $(top_srcdir)/m4/zlib.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcsplit_la_LIBADD = am__libcsplit_la_SOURCES_DIST = libcsplit_definitions.h \ libcsplit_error.c libcsplit_error.h libcsplit_extern.h \ libcsplit_narrow_split_string.c \ libcsplit_narrow_split_string.h libcsplit_narrow_string.c \ libcsplit_narrow_string.h libcsplit_libcerror.h \ libcsplit_support.c libcsplit_support.h libcsplit_types.h \ libcsplit_unused.h libcsplit_wide_split_string.c \ libcsplit_wide_split_string.h libcsplit_wide_string.c \ libcsplit_wide_string.h @HAVE_LOCAL_LIBCSPLIT_TRUE@am_libcsplit_la_OBJECTS = \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_error.lo \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_narrow_split_string.lo \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_narrow_string.lo \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_support.lo \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_wide_split_string.lo \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_wide_string.lo libcsplit_la_OBJECTS = $(am_libcsplit_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = @HAVE_LOCAL_LIBCSPLIT_TRUE@am_libcsplit_la_rpath = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libcsplit_error.Plo \ ./$(DEPDIR)/libcsplit_narrow_split_string.Plo \ ./$(DEPDIR)/libcsplit_narrow_string.Plo \ ./$(DEPDIR)/libcsplit_support.Plo \ ./$(DEPDIR)/libcsplit_wide_split_string.Plo \ ./$(DEPDIR)/libcsplit_wide_string.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcsplit_la_SOURCES) DIST_SOURCES = $(am__libcsplit_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DPKG_DATE = @DPKG_DATE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_DLLMAIN = @HAVE_DLLMAIN@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LIBBFIO = @HAVE_LIBBFIO@ HAVE_LIBCAES = @HAVE_LIBCAES@ HAVE_LIBCDATA = @HAVE_LIBCDATA@ HAVE_LIBCERROR = @HAVE_LIBCERROR@ HAVE_LIBCFILE = @HAVE_LIBCFILE@ HAVE_LIBCLOCALE = @HAVE_LIBCLOCALE@ HAVE_LIBCNOTIFY = @HAVE_LIBCNOTIFY@ HAVE_LIBCPATH = @HAVE_LIBCPATH@ HAVE_LIBCSPLIT = @HAVE_LIBCSPLIT@ HAVE_LIBCTHREADS = @HAVE_LIBCTHREADS@ HAVE_LIBFCACHE = @HAVE_LIBFCACHE@ HAVE_LIBFDATA = @HAVE_LIBFDATA@ HAVE_LIBFDATETIME = @HAVE_LIBFDATETIME@ HAVE_LIBFGUID = @HAVE_LIBFGUID@ HAVE_LIBFUSE = @HAVE_LIBFUSE@ HAVE_LIBHMAC = @HAVE_LIBHMAC@ HAVE_LIBUNA = @HAVE_LIBUNA@ HAVE_LOCAL_LIBBFIO = @HAVE_LOCAL_LIBBFIO@ HAVE_LOCAL_LIBCAES = @HAVE_LOCAL_LIBCAES@ HAVE_LOCAL_LIBCDATA = @HAVE_LOCAL_LIBCDATA@ HAVE_LOCAL_LIBCERROR = @HAVE_LOCAL_LIBCERROR@ HAVE_LOCAL_LIBCFILE = @HAVE_LOCAL_LIBCFILE@ HAVE_LOCAL_LIBCLOCALE = @HAVE_LOCAL_LIBCLOCALE@ HAVE_LOCAL_LIBCNOTIFY = @HAVE_LOCAL_LIBCNOTIFY@ HAVE_LOCAL_LIBCPATH = @HAVE_LOCAL_LIBCPATH@ HAVE_LOCAL_LIBCSPLIT = @HAVE_LOCAL_LIBCSPLIT@ HAVE_LOCAL_LIBCTHREADS = @HAVE_LOCAL_LIBCTHREADS@ HAVE_LOCAL_LIBFCACHE = @HAVE_LOCAL_LIBFCACHE@ HAVE_LOCAL_LIBFDATA = @HAVE_LOCAL_LIBFDATA@ HAVE_LOCAL_LIBFDATETIME = @HAVE_LOCAL_LIBFDATETIME@ HAVE_LOCAL_LIBFGUID = @HAVE_LOCAL_LIBFGUID@ HAVE_LOCAL_LIBHMAC = @HAVE_LOCAL_LIBHMAC@ HAVE_LOCAL_LIBUNA = @HAVE_LOCAL_LIBUNA@ HAVE_MULTI_THREAD_SUPPORT = @HAVE_MULTI_THREAD_SUPPORT@ HAVE_OFF64_T = @HAVE_OFF64_T@ HAVE_OPENSSL_EVP_H = @HAVE_OPENSSL_EVP_H@ HAVE_PTHREAD = @HAVE_PTHREAD@ HAVE_SIZE32_T = @HAVE_SIZE32_T@ HAVE_SIZE64_T = @HAVE_SIZE64_T@ HAVE_SSIZE32_T = @HAVE_SSIZE32_T@ HAVE_SSIZE64_T = @HAVE_SSIZE64_T@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WIDE_CHARACTER_TYPE = @HAVE_WIDE_CHARACTER_TYPE@ HAVE_ZLIB = @HAVE_ZLIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBBFIO_CPPFLAGS = @LIBBFIO_CPPFLAGS@ LIBBFIO_LIBADD = @LIBBFIO_LIBADD@ LIBCAES_CPPFLAGS = @LIBCAES_CPPFLAGS@ LIBCAES_LIBADD = @LIBCAES_LIBADD@ LIBCDATA_CPPFLAGS = @LIBCDATA_CPPFLAGS@ LIBCDATA_LIBADD = @LIBCDATA_LIBADD@ LIBCERROR_CPPFLAGS = @LIBCERROR_CPPFLAGS@ LIBCERROR_LIBADD = @LIBCERROR_LIBADD@ LIBCFILE_CPPFLAGS = @LIBCFILE_CPPFLAGS@ LIBCFILE_LIBADD = @LIBCFILE_LIBADD@ LIBCLOCALE_CPPFLAGS = @LIBCLOCALE_CPPFLAGS@ LIBCLOCALE_LIBADD = @LIBCLOCALE_LIBADD@ LIBCNOTIFY_CPPFLAGS = @LIBCNOTIFY_CPPFLAGS@ LIBCNOTIFY_LIBADD = @LIBCNOTIFY_LIBADD@ LIBCPATH_CPPFLAGS = @LIBCPATH_CPPFLAGS@ LIBCPATH_LIBADD = @LIBCPATH_LIBADD@ LIBCRYPTO_CPPFLAGS = @LIBCRYPTO_CPPFLAGS@ LIBCRYPTO_LIBADD = @LIBCRYPTO_LIBADD@ LIBCSPLIT_CPPFLAGS = @LIBCSPLIT_CPPFLAGS@ LIBCSPLIT_LIBADD = @LIBCSPLIT_LIBADD@ LIBCTHREADS_CPPFLAGS = @LIBCTHREADS_CPPFLAGS@ LIBCTHREADS_LIBADD = @LIBCTHREADS_LIBADD@ LIBDL_LIBADD = @LIBDL_LIBADD@ LIBFCACHE_CPPFLAGS = @LIBFCACHE_CPPFLAGS@ LIBFCACHE_LIBADD = @LIBFCACHE_LIBADD@ LIBFDATA_CPPFLAGS = @LIBFDATA_CPPFLAGS@ LIBFDATA_LIBADD = @LIBFDATA_LIBADD@ LIBFDATETIME_CPPFLAGS = @LIBFDATETIME_CPPFLAGS@ LIBFDATETIME_LIBADD = @LIBFDATETIME_LIBADD@ LIBFGUID_CPPFLAGS = @LIBFGUID_CPPFLAGS@ LIBFGUID_LIBADD = @LIBFGUID_LIBADD@ LIBFSAPFS_DLL_EXPORT = @LIBFSAPFS_DLL_EXPORT@ LIBFSAPFS_DLL_IMPORT = @LIBFSAPFS_DLL_IMPORT@ LIBFUSE_CPPFLAGS = @LIBFUSE_CPPFLAGS@ LIBFUSE_LIBADD = @LIBFUSE_LIBADD@ LIBHMAC_CPPFLAGS = @LIBHMAC_CPPFLAGS@ LIBHMAC_LIBADD = @LIBHMAC_LIBADD@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIBUNA_CPPFLAGS = @LIBUNA_CPPFLAGS@ LIBUNA_LIBADD = @LIBUNA_LIBADD@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG = @PKGCONFIG@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PTHREAD_CPPFLAGS = @PTHREAD_CPPFLAGS@ PTHREAD_LIBADD = @PTHREAD_LIBADD@ PYTHON = @PYTHON@ PYTHON2 = @PYTHON2@ PYTHON2_CONFIG = @PYTHON2_CONFIG@ PYTHON2_CPPFLAGS = @PYTHON2_CPPFLAGS@ PYTHON2_EXEC_PREFIX = @PYTHON2_EXEC_PREFIX@ PYTHON2_LDFLAGS = @PYTHON2_LDFLAGS@ PYTHON2_LIBRARY_DIR = @PYTHON2_LIBRARY_DIR@ PYTHON2_PACKAGE_DIR = @PYTHON2_PACKAGE_DIR@ PYTHON2_PLATFORM = @PYTHON2_PLATFORM@ PYTHON2_PREFIX = @PYTHON2_PREFIX@ PYTHON2_VERSION = @PYTHON2_VERSION@ PYTHON3 = @PYTHON3@ PYTHON3_CONFIG = @PYTHON3_CONFIG@ PYTHON3_CPPFLAGS = @PYTHON3_CPPFLAGS@ PYTHON3_EXEC_PREFIX = @PYTHON3_EXEC_PREFIX@ PYTHON3_LDFLAGS = @PYTHON3_LDFLAGS@ PYTHON3_LIBRARY_DIR = @PYTHON3_LIBRARY_DIR@ PYTHON3_PACKAGE_DIR = @PYTHON3_PACKAGE_DIR@ PYTHON3_PLATFORM = @PYTHON3_PLATFORM@ PYTHON3_PREFIX = @PYTHON3_PREFIX@ PYTHON3_VERSION = @PYTHON3_VERSION@ PYTHON_CONFIG = @PYTHON_CONFIG@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ PYTHON_LIBRARY_DIR = @PYTHON_LIBRARY_DIR@ PYTHON_PACKAGE_DIR = @PYTHON_PACKAGE_DIR@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SPEC_DATE = @SPEC_DATE@ STATIC_LDFLAGS = @STATIC_LDFLAGS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ ZLIB_CPPFLAGS = @ZLIB_CPPFLAGS@ ZLIB_LIBADD = @ZLIB_LIBADD@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ ax_libbfio_pc_libs_private = @ax_libbfio_pc_libs_private@ ax_libbfio_spec_build_requires = @ax_libbfio_spec_build_requires@ ax_libbfio_spec_requires = @ax_libbfio_spec_requires@ ax_libcaes_pc_libs_private = @ax_libcaes_pc_libs_private@ ax_libcaes_spec_build_requires = @ax_libcaes_spec_build_requires@ ax_libcaes_spec_requires = @ax_libcaes_spec_requires@ ax_libcdata_pc_libs_private = @ax_libcdata_pc_libs_private@ ax_libcdata_spec_build_requires = @ax_libcdata_spec_build_requires@ ax_libcdata_spec_requires = @ax_libcdata_spec_requires@ ax_libcerror_pc_libs_private = @ax_libcerror_pc_libs_private@ ax_libcerror_spec_build_requires = @ax_libcerror_spec_build_requires@ ax_libcerror_spec_requires = @ax_libcerror_spec_requires@ ax_libcfile_pc_libs_private = @ax_libcfile_pc_libs_private@ ax_libcfile_spec_build_requires = @ax_libcfile_spec_build_requires@ ax_libcfile_spec_requires = @ax_libcfile_spec_requires@ ax_libclocale_pc_libs_private = @ax_libclocale_pc_libs_private@ ax_libclocale_spec_build_requires = @ax_libclocale_spec_build_requires@ ax_libclocale_spec_requires = @ax_libclocale_spec_requires@ ax_libcnotify_pc_libs_private = @ax_libcnotify_pc_libs_private@ ax_libcnotify_spec_build_requires = @ax_libcnotify_spec_build_requires@ ax_libcnotify_spec_requires = @ax_libcnotify_spec_requires@ ax_libcpath_pc_libs_private = @ax_libcpath_pc_libs_private@ ax_libcpath_spec_build_requires = @ax_libcpath_spec_build_requires@ ax_libcpath_spec_requires = @ax_libcpath_spec_requires@ ax_libcrypto_pc_libs_private = @ax_libcrypto_pc_libs_private@ ax_libcrypto_spec_build_requires = @ax_libcrypto_spec_build_requires@ ax_libcrypto_spec_requires = @ax_libcrypto_spec_requires@ ax_libcsplit_pc_libs_private = @ax_libcsplit_pc_libs_private@ ax_libcsplit_spec_build_requires = @ax_libcsplit_spec_build_requires@ ax_libcsplit_spec_requires = @ax_libcsplit_spec_requires@ ax_libcthreads_pc_libs_private = @ax_libcthreads_pc_libs_private@ ax_libcthreads_spec_build_requires = @ax_libcthreads_spec_build_requires@ ax_libcthreads_spec_requires = @ax_libcthreads_spec_requires@ ax_libfcache_pc_libs_private = @ax_libfcache_pc_libs_private@ ax_libfcache_spec_build_requires = @ax_libfcache_spec_build_requires@ ax_libfcache_spec_requires = @ax_libfcache_spec_requires@ ax_libfdata_pc_libs_private = @ax_libfdata_pc_libs_private@ ax_libfdata_spec_build_requires = @ax_libfdata_spec_build_requires@ ax_libfdata_spec_requires = @ax_libfdata_spec_requires@ ax_libfdatetime_pc_libs_private = @ax_libfdatetime_pc_libs_private@ ax_libfdatetime_spec_build_requires = @ax_libfdatetime_spec_build_requires@ ax_libfdatetime_spec_requires = @ax_libfdatetime_spec_requires@ ax_libfguid_pc_libs_private = @ax_libfguid_pc_libs_private@ ax_libfguid_spec_build_requires = @ax_libfguid_spec_build_requires@ ax_libfguid_spec_requires = @ax_libfguid_spec_requires@ ax_libfuse_pc_libs_private = @ax_libfuse_pc_libs_private@ ax_libfuse_spec_build_requires = @ax_libfuse_spec_build_requires@ ax_libfuse_spec_requires = @ax_libfuse_spec_requires@ ax_libhmac_pc_libs_private = @ax_libhmac_pc_libs_private@ ax_libhmac_spec_build_requires = @ax_libhmac_spec_build_requires@ ax_libhmac_spec_requires = @ax_libhmac_spec_requires@ ax_libuna_pc_libs_private = @ax_libuna_pc_libs_private@ ax_libuna_spec_build_requires = @ax_libuna_spec_build_requires@ ax_libuna_spec_requires = @ax_libuna_spec_requires@ ax_pthread_pc_libs_private = @ax_pthread_pc_libs_private@ ax_zlib_pc_libs_private = @ax_zlib_pc_libs_private@ ax_zlib_spec_build_requires = @ax_zlib_spec_build_requires@ ax_zlib_spec_requires = @ax_zlib_spec_requires@ ax_zlib_static_spec_build_requires = @ax_zlib_static_spec_build_requires@ ax_zlib_static_spec_requires = @ax_zlib_static_spec_requires@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ fuse_CFLAGS = @fuse_CFLAGS@ fuse_LIBS = @fuse_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libbfio_CFLAGS = @libbfio_CFLAGS@ libbfio_LIBS = @libbfio_LIBS@ libcaes_CFLAGS = @libcaes_CFLAGS@ libcaes_LIBS = @libcaes_LIBS@ libcdata_CFLAGS = @libcdata_CFLAGS@ libcdata_LIBS = @libcdata_LIBS@ libcerror_CFLAGS = @libcerror_CFLAGS@ libcerror_LIBS = @libcerror_LIBS@ libcfile_CFLAGS = @libcfile_CFLAGS@ libcfile_LIBS = @libcfile_LIBS@ libclocale_CFLAGS = @libclocale_CFLAGS@ libclocale_LIBS = @libclocale_LIBS@ libcnotify_CFLAGS = @libcnotify_CFLAGS@ libcnotify_LIBS = @libcnotify_LIBS@ libcpath_CFLAGS = @libcpath_CFLAGS@ libcpath_LIBS = @libcpath_LIBS@ libcsplit_CFLAGS = @libcsplit_CFLAGS@ libcsplit_LIBS = @libcsplit_LIBS@ libcthreads_CFLAGS = @libcthreads_CFLAGS@ libcthreads_LIBS = @libcthreads_LIBS@ libdir = @libdir@ libexecdir = @libexecdir@ libfcache_CFLAGS = @libfcache_CFLAGS@ libfcache_LIBS = @libfcache_LIBS@ libfdata_CFLAGS = @libfdata_CFLAGS@ libfdata_LIBS = @libfdata_LIBS@ libfdatetime_CFLAGS = @libfdatetime_CFLAGS@ libfdatetime_LIBS = @libfdatetime_LIBS@ libfguid_CFLAGS = @libfguid_CFLAGS@ libfguid_LIBS = @libfguid_LIBS@ libfsapfs_spec_requires = @libfsapfs_spec_requires@ libfsapfs_spec_tools_build_requires = @libfsapfs_spec_tools_build_requires@ libhmac_CFLAGS = @libhmac_CFLAGS@ libhmac_LIBS = @libhmac_LIBS@ libuna_CFLAGS = @libuna_CFLAGS@ libuna_LIBS = @libuna_LIBS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ openssl_CFLAGS = @openssl_CFLAGS@ openssl_LIBS = @openssl_LIBS@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pyexecdir2 = @pyexecdir2@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ zlib_CFLAGS = @zlib_CFLAGS@ zlib_LIBS = @zlib_LIBS@ @HAVE_LOCAL_LIBCSPLIT_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ -I$(top_srcdir)/common \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBCSPLIT_TRUE@noinst_LTLIBRARIES = libcsplit.la @HAVE_LOCAL_LIBCSPLIT_TRUE@libcsplit_la_SOURCES = \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_definitions.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_error.c libcsplit_error.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_extern.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_narrow_split_string.c libcsplit_narrow_split_string.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_narrow_string.c libcsplit_narrow_string.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_libcerror.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_support.c libcsplit_support.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_types.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_unused.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_wide_split_string.c libcsplit_wide_split_string.h \ @HAVE_LOCAL_LIBCSPLIT_TRUE@ libcsplit_wide_string.c libcsplit_wide_string.h MAINTAINERCLEANFILES = \ Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcsplit/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu libcsplit/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcsplit.la: $(libcsplit_la_OBJECTS) $(libcsplit_la_DEPENDENCIES) $(EXTRA_libcsplit_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(am_libcsplit_la_rpath) $(libcsplit_la_OBJECTS) $(libcsplit_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcsplit_error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcsplit_narrow_split_string.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcsplit_narrow_string.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcsplit_support.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcsplit_wide_split_string.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcsplit_wide_string.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libcsplit_error.Plo -rm -f ./$(DEPDIR)/libcsplit_narrow_split_string.Plo -rm -f ./$(DEPDIR)/libcsplit_narrow_string.Plo -rm -f ./$(DEPDIR)/libcsplit_support.Plo -rm -f ./$(DEPDIR)/libcsplit_wide_split_string.Plo -rm -f ./$(DEPDIR)/libcsplit_wide_string.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile distclean: clean /bin/rm -f Makefile splint: @echo "Running splint on libcsplit ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(libcsplit_la_SOURCES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: libfsapfs-20190210/libcsplit/libcsplit_wide_split_string.h0000664000175000017500000000555213430101176025762 0ustar00lordyestalordyesta00000000000000/* * Split wide string functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_INTERNAL_WIDE_SPLIT_STRING_H ) #define _LIBCSPLIT_INTERNAL_WIDE_SPLIT_STRING_H #include #include #include "libcsplit_extern.h" #include "libcsplit_libcerror.h" #include "libcsplit_types.h" #if defined( __cplusplus ) extern "C" { #endif #if defined( HAVE_WIDE_CHARACTER_TYPE ) typedef struct libcsplit_internal_wide_split_string libcsplit_internal_wide_split_string_t; struct libcsplit_internal_wide_split_string { /* The number of string segments */ int number_of_segments; /* The string */ wchar_t *string; /* The string size */ size_t string_size; /* The segments */ wchar_t **segments; /* The segment sizes */ size_t *segment_sizes; }; int libcsplit_wide_split_string_initialize( libcsplit_wide_split_string_t **split_string, const wchar_t *string, size_t string_size, int number_of_segments, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_wide_split_string_free( libcsplit_wide_split_string_t **split_string, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_wide_split_string_get_string( libcsplit_wide_split_string_t *split_string, wchar_t **string, size_t *string_size, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_wide_split_string_get_number_of_segments( libcsplit_wide_split_string_t *split_string, int *number_of_segments, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_wide_split_string_get_segment_by_index( libcsplit_wide_split_string_t *split_string, int segment_index, wchar_t **string_segment, size_t *string_segment_size, libcerror_error_t **error ); LIBCSPLIT_EXTERN \ int libcsplit_wide_split_string_set_segment_by_index( libcsplit_wide_split_string_t *split_string, int segment_index, wchar_t *string_segment, size_t string_segment_size, libcerror_error_t **error ); #endif /* defined( HAVE_WIDE_CHARACTER_TYPE ) */ #if defined( __cplusplus ) } #endif #endif /* !defined( _LIBCSPLIT_INTERNAL_WIDE_SPLIT_STRING_H ) */ libfsapfs-20190210/libcsplit/libcsplit_definitions.h0000664000175000017500000000252213430101176024536 0ustar00lordyestalordyesta00000000000000/* * The internal definitions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( LIBCSPLIT_INTERNAL_DEFINITIONS_H ) #define LIBCSPLIT_INTERNAL_DEFINITIONS_H #include #include /* Define HAVE_LOCAL_LIBCSPLIT for local use of libcsplit */ #if !defined( HAVE_LOCAL_LIBCSPLIT ) #include /* The definitions in are copied here * for local use of libcsplit */ #else #define LIBCSPLIT_VERSION 20190102 /* The libcsplit version string */ #define LIBCSPLIT_VERSION_STRING "20190102" #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ #endif libfsapfs-20190210/libcsplit/libcsplit_error.c0000664000175000017500000000555613430101176023361 0ustar00lordyestalordyesta00000000000000/* * Error functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include #include "libcsplit_error.h" #include "libcsplit_libcerror.h" #if !defined( HAVE_LOCAL_LIBCSPLIT ) /* Free an error and its elements */ void libcsplit_error_free( libcsplit_error_t **error ) { libcerror_error_free( (libcerror_error_t **) error ); } /* Prints a descriptive string of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcsplit_error_fprint( libcsplit_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a descriptive string of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcsplit_error_sprint( libcsplit_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } /* Prints a backtrace of the error to the stream * Returns the number of printed characters if successful or -1 on error */ int libcsplit_error_backtrace_fprint( libcsplit_error_t *error, FILE *stream ) { int print_count = 0; print_count = libcerror_error_backtrace_fprint( (libcerror_error_t *) error, stream ); return( print_count ); } /* Prints a backtrace of the error to the string * The end-of-string character is not included in the return value * Returns the number of printed characters if successful or -1 on error */ int libcsplit_error_backtrace_sprint( libcsplit_error_t *error, char *string, size_t size ) { int print_count = 0; print_count = libcerror_error_backtrace_sprint( (libcerror_error_t *) error, string, size ); return( print_count ); } #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ libfsapfs-20190210/libcsplit/libcsplit_support.c0000664000175000017500000000221013430101176023724 0ustar00lordyestalordyesta00000000000000/* * Support functions * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #include #include #include "libcsplit_definitions.h" #include "libcsplit_support.h" #if !defined( HAVE_LOCAL_LIBCSPLIT ) /* Returns the library version as a string */ const char *libcsplit_get_version( void ) { return( (const char *) LIBCSPLIT_VERSION_STRING ); } #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ libfsapfs-20190210/libcsplit/libcsplit_libcerror.h0000664000175000017500000000264313430101176024212 0ustar00lordyestalordyesta00000000000000/* * The libcerror header wrapper * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_LIBCERROR_H ) #define _LIBCSPLIT_LIBCERROR_H #include /* Define HAVE_LOCAL_LIBCERROR for local use of libcerror */ #if defined( HAVE_LOCAL_LIBCERROR ) #include #include #include #include #else /* If libtool DLL support is enabled set LIBCERROR_DLL_IMPORT * before including libcerror.h */ #if defined( _WIN32 ) && defined( DLL_IMPORT ) #define LIBCERROR_DLL_IMPORT #endif #include #endif /* defined( HAVE_LOCAL_LIBCERROR ) */ #endif /* !defined( _LIBCSPLIT_LIBCERROR_H ) */ libfsapfs-20190210/libcsplit/libcsplit_extern.h0000664000175000017500000000242213430101176023527 0ustar00lordyestalordyesta00000000000000/* * The internal extern definition * * Copyright (C) 2008-2019, Joachim Metz * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software. If not, see . */ #if !defined( _LIBCSPLIT_INTERNAL_EXTERN_H ) #define _LIBCSPLIT_INTERNAL_EXTERN_H #include /* Define HAVE_LOCAL_LIBCSPLIT for local use of libcsplit */ #if !defined( HAVE_LOCAL_LIBCSPLIT ) #include #define LIBCSPLIT_EXTERN_VARIABLE LIBCSPLIT_EXTERN #else #define LIBCSPLIT_EXTERN /* extern */ #define LIBCSPLIT_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ #endif /* !defined( _LIBCSPLIT_INTERNAL_EXTERN_H ) */ libfsapfs-20190210/configure.ac0000664000175000017500000002143313430066273020320 0ustar00lordyestalordyesta00000000000000AC_PREREQ( 2.59 ) AC_INIT( [libfsapfs], [20190210], [joachim.metz@gmail.com]) AC_CONFIG_SRCDIR( [include/libfsapfs.h.in]) AM_INIT_AUTOMAKE([gnu 1.6 tar-ustar]) AC_CONFIG_MACRO_DIR([m4]) dnl Check for host type AC_CANONICAL_HOST dnl Check for libtool DLL support AC_LIBTOOL_WIN32_DLL dnl Checks for programs AC_PROG_CC AC_PROG_GCC_TRADITIONAL AC_PROG_MAKE_SET AC_PROG_INSTALL dnl Check for libtool AC_PROG_LIBTOOL AC_SUBST(LIBTOOL_DEPS) dnl Check for pkg-config AC_PATH_PROG(PKGCONFIG,[pkg-config]) dnl Support of internationalization (i18n) AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION([0.18.1]) dnl Check for compiler language support AC_C_CONST AC_C_VOLATILE dnl Check for large file support AC_SYS_LARGEFILE dnl Check if shared library support should be disabled AX_COMMON_CHECK_DISABLE_SHARED_LIBS dnl Check if WINAPI support should be enabled AX_COMMON_CHECK_ENABLE_WINAPI dnl Check if wide character type should be enabled AX_COMMON_CHECK_ENABLE_WIDE_CHARACTER_TYPE dnl Check if verbose output should be enabled AX_COMMON_CHECK_ENABLE_VERBOSE_OUTPUT dnl Check if debug output should be enabled AX_COMMON_CHECK_ENABLE_DEBUG_OUTPUT dnl Check for type definitions AX_TYPES_CHECK_LOCAL dnl Check if common required headers and functions are available AX_COMMON_CHECK_LOCAL dnl Check if libcerror or required headers and functions are available AX_LIBCERROR_CHECK_ENABLE dnl Check if libcthreads or required headers and functions are available AX_LIBCTHREADS_CHECK_ENABLE dnl Check if libcdata or required headers and functions are available AX_LIBCDATA_CHECK_ENABLE dnl Check if libclocale or required headers and functions are available AX_LIBCLOCALE_CHECK_ENABLE dnl Check if libcnotify or required headers and functions are available AX_LIBCNOTIFY_CHECK_ENABLE dnl Check if libcsplit or required headers and functions are available AX_LIBCSPLIT_CHECK_ENABLE dnl Check if libuna or required headers and functions are available AX_LIBUNA_CHECK_ENABLE dnl Check if libcfile or required headers and functions are available AX_LIBCFILE_CHECK_ENABLE dnl Check if libcpath or required headers and functions are available AX_LIBCPATH_CHECK_ENABLE dnl Check if libbfio or required headers and functions are available AX_LIBBFIO_CHECK_ENABLE dnl Check if libfcache or required headers and functions are available AX_LIBFCACHE_CHECK_ENABLE dnl Check if libfdata or required headers and functions are available AX_LIBFDATA_CHECK_ENABLE dnl Check if libfdatetime or required headers and functions are available AX_LIBFDATETIME_CHECK_ENABLE dnl Check if libfguid or required headers and functions are available AX_LIBFGUID_CHECK_ENABLE dnl Check if zlib or required headers and functions are available AX_ZLIB_CHECK_ENABLE AX_ZLIB_CHECK_UNCOMPRESS dnl Check if libhmac or required headers and functions are available AX_LIBHMAC_CHECK_ENABLE dnl Check if libcaes or required headers and functions are available AX_LIBCAES_CHECK_ENABLE dnl Check if libfsapfs required headers and functions are available AX_LIBFSAPFS_CHECK_LOCAL dnl Check if libfsapfs Python bindings (pyfsapfs) required headers and functions are available AX_PYTHON_CHECK_ENABLE AS_IF( [test "x${ac_cv_enable_python}" != xno || test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno], [dnl Headers included in pyfsapfs/pyfsapfs_error.c AC_CHECK_HEADERS([stdarg.h varargs.h]) AS_IF( [test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes], [AC_MSG_FAILURE( [Missing headers: stdarg.h and varargs.h], [1]) ]) ]) dnl Check if libfuse or required headers and functions are available AX_LIBFUSE_CHECK_ENABLE dnl Check if fsapfstools required headers and functions are available AX_FSAPFSTOOLS_CHECK_LOCAL dnl Check if tests required headers and functions are available AX_TESTS_CHECK_LOCAL dnl Check if DLL support is needed AS_IF( [test "x$enable_shared" = xyes], [AS_CASE( [$host], [*cygwin* | *mingw* | *msys*], [AC_DEFINE( [HAVE_DLLMAIN], [1], [Define to 1 to enable the DllMain function.]) AC_SUBST( [HAVE_DLLMAIN], [1]) AC_SUBST( [LIBFSAPFS_DLL_EXPORT], ["-DLIBFSAPFS_DLL_EXPORT"]) AC_SUBST( [LIBFSAPFS_DLL_IMPORT], ["-DLIBFSAPFS_DLL_IMPORT"]) ]) ]) dnl Set additional compiler flags CFLAGS="$CFLAGS -Wall"; dnl Check if requires and build requires should be set in spec file AS_IF( [test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcthreads" = xyes || test "x$ac_cv_libcdata" = xyes || test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes || test "x$ac_cv_libbfio" = xyes || test "x$ac_cv_libfcache" = xyes || test "x$ac_cv_libfdata" = xyes || test "x$ac_cv_libfdatetime" = xyes || test "x$ac_cv_libfguid" = xyes || test "x$ac_cv_zlib" != xno || test "x$ac_cv_libhmac" = xyes || test "x$ac_cv_libcaes" = xyes || test "x$ac_cv_libcrypto" != xno], [AC_SUBST( [libfsapfs_spec_requires], [Requires:]) ]) AS_IF( [test "x$ac_cv_libfuse" != xno], [AC_SUBST( [libfsapfs_spec_tools_build_requires], [BuildRequires:]) ]) dnl Set the date for the dpkg files AC_SUBST( [DPKG_DATE], [`date -R 2> /dev/null`]) dnl Set the date for the spec file AC_SUBST( [SPEC_DATE], [`date +"%a %b %e %Y" 2> /dev/null`]) dnl Generate Makefiles AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([include/Makefile]) AC_CONFIG_FILES([common/Makefile]) AC_CONFIG_FILES([libcerror/Makefile]) AC_CONFIG_FILES([libcthreads/Makefile]) AC_CONFIG_FILES([libcdata/Makefile]) AC_CONFIG_FILES([libclocale/Makefile]) AC_CONFIG_FILES([libcnotify/Makefile]) AC_CONFIG_FILES([libcsplit/Makefile]) AC_CONFIG_FILES([libuna/Makefile]) AC_CONFIG_FILES([libcfile/Makefile]) AC_CONFIG_FILES([libcpath/Makefile]) AC_CONFIG_FILES([libbfio/Makefile]) AC_CONFIG_FILES([libfcache/Makefile]) AC_CONFIG_FILES([libfdata/Makefile]) AC_CONFIG_FILES([libfdatetime/Makefile]) AC_CONFIG_FILES([libfguid/Makefile]) AC_CONFIG_FILES([libhmac/Makefile]) AC_CONFIG_FILES([libcaes/Makefile]) AC_CONFIG_FILES([libfsapfs/Makefile]) AC_CONFIG_FILES([pyfsapfs/Makefile]) AC_CONFIG_FILES([pyfsapfs-python2/Makefile]) AC_CONFIG_FILES([pyfsapfs-python3/Makefile]) AC_CONFIG_FILES([fsapfstools/Makefile]) AC_CONFIG_FILES([po/Makefile.in]) AC_CONFIG_FILES([po/Makevars]) AC_CONFIG_FILES([manuals/Makefile]) AC_CONFIG_FILES([tests/Makefile]) AC_CONFIG_FILES([msvscpp/Makefile]) dnl Generate header files AC_CONFIG_FILES([include/libfsapfs.h]) AC_CONFIG_FILES([include/libfsapfs/definitions.h]) AC_CONFIG_FILES([include/libfsapfs/features.h]) AC_CONFIG_FILES([include/libfsapfs/types.h]) AC_CONFIG_FILES([libfsapfs/libfsapfs_definitions.h]) dnl Generate distribution specific files AC_CONFIG_FILES([common/types.h]) AC_CONFIG_FILES([dpkg/changelog]) AC_CONFIG_FILES([libfsapfs/libfsapfs.rc]) AC_CONFIG_FILES([libfsapfs.pc]) AC_CONFIG_FILES([libfsapfs.spec]) dnl Generate a source configuration file AC_CONFIG_HEADERS([common/config.h]) AC_OUTPUT dnl Print a summary AC_MSG_NOTICE([ Building: libcerror support: $ac_cv_libcerror libcthreads support: $ac_cv_libcthreads libcdata support: $ac_cv_libcdata libclocale support: $ac_cv_libclocale libcnotify support: $ac_cv_libcnotify libcsplit support: $ac_cv_libcsplit libuna support: $ac_cv_libuna libcfile support: $ac_cv_libcfile libcpath support: $ac_cv_libcpath libbfio support: $ac_cv_libbfio libfcache support: $ac_cv_libfcache libfdata support: $ac_cv_libfdata libfdatetime support: $ac_cv_libfdatetime libfguid support: $ac_cv_libfguid DEFLATE compression support: $ac_cv_uncompress libhmac support: $ac_cv_libhmac SHA256 support: $ac_cv_libhmac_sha256 libcaes support: $ac_cv_libcaes AES-ECB support: $ac_cv_libcaes_aes_ecb AES-XTS support: $ac_cv_libcaes_aes_xts FUSE support: $ac_cv_libfuse Features: Multi-threading support: $ac_cv_libcthreads_multi_threading Wide character type support: $ac_cv_enable_wide_character_type fsapfstools are build as static executables: $ac_cv_enable_static_executables Python (pyfsapfs) support: $ac_cv_enable_python Verbose output: $ac_cv_enable_verbose_output Debug output: $ac_cv_enable_debug_output ]);